Skip to content

Commit

Permalink
Move widget prop to INodeInputSlot (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Feb 26, 2025
1 parent cdbd089 commit dbe016b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,6 @@ export interface INodeSlot {
locked?: boolean
nameLocked?: boolean
pos?: Point
/**
* A widget that was converted to this input slot.
* For PrimitiveNode, the widget is on output slot to offer type information.
* See https://github.com/Comfy-Org/ComfyUI_frontend/blob/117c8be3a05823b40016781cf9b68129672c9af7/src/extensions/core/widgetInputs.ts
* for more information.
*/
widget?: IWidget

/**
* A layout element that is used internally to position the slot.
* Set by {@link LGraphNode.#layoutSlots}.
Expand All @@ -270,6 +262,10 @@ export interface INodeFlags {
export interface INodeInputSlot extends INodeSlot {
link: LinkId | null
_layoutElement?: LayoutElement<INodeInputSlot>
/**
* A widget that is linked to this input slot.
*/
widget?: IWidget
}

export interface IWidgetInputSlot extends INodeInputSlot {
Expand Down

0 comments on commit dbe016b

Please sign in to comment.