mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-26 17:54:14 +00:00
Move linkRenderMode extension to core (#1359)
This commit is contained in:
@@ -8,7 +8,6 @@ import './groupNodeManage'
|
||||
import './groupOptions'
|
||||
import './invertMenuScrolling'
|
||||
import './keybinds'
|
||||
import './linkRenderMode'
|
||||
import './maskeditor'
|
||||
import './nodeTemplates'
|
||||
import './noteNode'
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
import { app, ComfyApp } from '../../scripts/app'
|
||||
import { LiteGraph } from '@comfyorg/litegraph'
|
||||
const id = 'Comfy.LinkRenderMode'
|
||||
const ext = {
|
||||
name: id,
|
||||
async setup(app: ComfyApp) {
|
||||
app.ui.settings.addSetting({
|
||||
id,
|
||||
category: ['Comfy', 'Graph', 'LinkRenderMode'],
|
||||
name: 'Link Render Mode',
|
||||
defaultValue: 2,
|
||||
type: 'combo',
|
||||
options: [
|
||||
{ value: LiteGraph.STRAIGHT_LINK.toString(), text: 'Straight' },
|
||||
{ value: LiteGraph.LINEAR_LINK.toString(), text: 'Linear' },
|
||||
{ value: LiteGraph.SPLINE_LINK.toString(), text: 'Spline' },
|
||||
{ value: LiteGraph.HIDDEN_LINK.toString(), text: 'Hidden' }
|
||||
],
|
||||
onChange(value: number) {
|
||||
app.canvas.links_render_mode = +value
|
||||
app.canvas.setDirty(/* fg */ false, /* bg */ true)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
app.registerExtension(ext)
|
||||
Reference in New Issue
Block a user