mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 08:30:06 +00:00
Deprecate widgetType:widgetName key in widgets map (#2879)
This commit is contained in:
@@ -278,16 +278,7 @@ export function addValueControlWidgets(
|
||||
return widgets
|
||||
}
|
||||
|
||||
const seedWidget = transformWidgetConstructorV2ToV1((node, inputSpec) => {
|
||||
return useIntWidget()(node, {
|
||||
...inputSpec,
|
||||
control_after_generate: true
|
||||
})
|
||||
})
|
||||
|
||||
export const ComfyWidgets: Record<string, ComfyWidgetConstructor> = {
|
||||
'INT:seed': seedWidget,
|
||||
'INT:noise_seed': seedWidget,
|
||||
INT: transformWidgetConstructorV2ToV1(useIntWidget()),
|
||||
FLOAT: transformWidgetConstructorV2ToV1(useFloatWidget()),
|
||||
BOOLEAN: transformWidgetConstructorV2ToV1(useBooleanWidget()),
|
||||
|
||||
Reference in New Issue
Block a user