Auto add new widgets for backend nodes

This commit is contained in:
space-nuko
2023-05-04 11:42:21 -05:00
parent 93cf2ed98a
commit 71a3abf518
13 changed files with 150 additions and 101 deletions

View File

@@ -1,4 +1,5 @@
import type { INodeInputSlot } from "@litegraph-ts/core";
import type { ComfyWidgetNode } from "./nodes";
// TODO generalize
export type ComfyInputConfig = {
@@ -12,6 +13,7 @@ export type ComfyInputConfig = {
}
export default interface IComfyInputSlot extends INodeInputSlot {
serialize: boolean
config: ComfyInputConfig // stores range min/max/step, etc.
serialize: boolean,
defaultWidgetNode?: new (name?: string) => ComfyWidgetNode,
config: ComfyInputConfig, // stores range min/max/step, etc.
}