mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-11 08:00:21 +00:00
Show widget input inplace (#535)
* Show widget input inplace * nit * nit
This commit is contained in:
@@ -45,6 +45,14 @@ export function toNodeSlotClass(slot: INodeSlot): NodeSlot {
|
||||
throw new Error("Invalid slot type")
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether this slot is an input slot and attached to a widget.
|
||||
* @param slot - The slot to check.
|
||||
*/
|
||||
export function isWidgetInputSlot(slot: INodeSlot): boolean {
|
||||
return isINodeInputSlot(slot) && !!slot.widget
|
||||
}
|
||||
|
||||
export abstract class NodeSlot implements INodeSlot {
|
||||
name: string
|
||||
localized_name?: string
|
||||
|
||||
Reference in New Issue
Block a user