mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-26 17:54:14 +00:00
Merge pull request #197 from Kidoncio/ts_on_property_changed
TS support about LGraphNode.onPropertyChanged
This commit is contained in:
9
src/litegraph.d.ts
vendored
9
src/litegraph.d.ts
vendored
@@ -1005,6 +1005,15 @@ export declare class LGraphNode {
|
||||
ioSlot: (INodeOutputSlot | INodeInputSlot)
|
||||
): void;
|
||||
|
||||
/**
|
||||
* if returns false, will abort the `LGraphNode.setProperty`
|
||||
* Called when a property is changed
|
||||
* @param property
|
||||
* @param value
|
||||
* @param prevValue
|
||||
*/
|
||||
onPropertyChanged?(property: string, value: any, prevValue: any): void | boolean;
|
||||
|
||||
/** Called by `LGraphCanvas.processContextMenu` */
|
||||
getMenuOptions?(graphCanvas: LGraphCanvas): ContextMenuItem[];
|
||||
getSlotMenuOptions?(slot: INodeSlot): ContextMenuItem[];
|
||||
|
||||
Reference in New Issue
Block a user