[Feature] Adds the litegraph knob widget support (#2822)

This commit is contained in:
Miguel C
2025-03-03 08:38:57 -06:00
committed by GitHub
parent c997bcdba1
commit 132a0ded09
3 changed files with 13 additions and 9 deletions

View File

@@ -32,7 +32,7 @@ const zNumericInputOptions = zBaseInputOptions.extend({
step: z.number().optional(),
// Note: Many node authors are using INT/FLOAT to pass list of INT/FLOAT.
default: z.union([z.number(), z.array(z.number())]).optional(),
display: z.enum(['slider', 'number']).optional()
display: z.enum(['slider', 'number', 'knob']).optional()
})
const zIntInputOptions = zNumericInputOptions.extend({