add onNodeUpdated event in LGraph

This commit is contained in:
dmx
2024-11-03 09:44:48 +04:00
parent 79c53e0095
commit c8bac1aa40
2 changed files with 13 additions and 6 deletions

View File

@@ -355,6 +355,7 @@ export class LGraphCanvas {
onShowNodePanel?: (n: LGraphNode) => void
onNodeSelected?: (node: LGraphNode) => void
onNodeDeselected?: (node: LGraphNode) => void
onNodeUpdated?: (node: LGraphNode) => void
onRender?: (canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D) => void
/** Implement this function to allow conversion of widget types to input types, e.g. number -> INT or FLOAT for widget link validation checks */
getWidgetLinkType?: (widget: IWidget, node: LGraphNode) => string | null | undefined