Move linkRenderMode extension to core (#1359)

This commit is contained in:
Chenlei Hu
2024-10-29 11:00:10 -04:00
committed by GitHub
parent 10f43be911
commit 1f91a88d7b
6 changed files with 25 additions and 30 deletions

View File

@@ -5,6 +5,7 @@ import {
LinkReleaseTriggerMode
} from '@/types/searchBoxTypes'
import type { SettingParams } from '@/types/settingTypes'
import { LiteGraph } from '@comfyorg/litegraph'
export const CORE_SETTINGS: SettingParams[] = [
{
@@ -444,5 +445,18 @@ export const CORE_SETTINGS: SettingParams[] = [
'Recommended for node developers. This will validate all node definitions on startup.',
defaultValue: false,
versionAdded: '1.3.14'
},
{
id: 'Comfy.LinkRenderMode',
category: ['Comfy', 'Graph', 'LinkRenderMode'],
name: 'Link Render Mode',
defaultValue: 2,
type: 'combo',
options: [
{ value: LiteGraph.STRAIGHT_LINK, text: 'Straight' },
{ value: LiteGraph.LINEAR_LINK, text: 'Linear' },
{ value: LiteGraph.SPLINE_LINK, text: 'Spline' },
{ value: LiteGraph.HIDDEN_LINK, text: 'Hidden' }
]
}
]