mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-27 02:04:09 +00:00
[Feature] Adds the litegraph knob widget support (#2822)
This commit is contained in:
@@ -47,11 +47,13 @@ export const useIntWidget = () => {
|
||||
const settingStore = useSettingStore()
|
||||
const sliderEnabled = !settingStore.get('Comfy.DisableSliders')
|
||||
const inputOptions = inputData[1] ?? {}
|
||||
const widgetType = sliderEnabled
|
||||
? inputOptions?.display === 'slider'
|
||||
const display_type = inputOptions?.display
|
||||
const widgetType =
|
||||
sliderEnabled && display_type == 'slider'
|
||||
? 'slider'
|
||||
: 'number'
|
||||
: 'number'
|
||||
: display_type == 'knob'
|
||||
? 'knob'
|
||||
: 'number'
|
||||
|
||||
const step = inputOptions.step ?? 1
|
||||
const defaultValue = inputOptions.default ?? 0
|
||||
|
||||
Reference in New Issue
Block a user