MCPcopy Create free account
hub / github.com/Comfy-Org/litegraph.js / beforeChange

Method beforeChange

src/LGraph.ts:1162–1165  ·  view source on GitHub ↗
(info?: LGraphNode)

Source from the content-addressed store, hash-verified

1160
1161 // used for undo, called before any change is made to the graph
1162 beforeChange(info?: LGraphNode): void {
1163 this.onBeforeChange?.(this, info)
1164 this.canvasAction(c => c.onBeforeChange?.(this))
1165 }
1166
1167 // used to resend actions, called after any change is made to the graph
1168 afterChange(info?: LGraphNode | null): void {

Callers 15

removeMethod · 0.95
connectMethod · 0.80
connectSlotsMethod · 0.80
inner_onMenuAddedMethod · 0.80
inner_clickedMethod · 0.80
onMenuNodeCollapseMethod · 0.80
onMenuToggleAdvancedMethod · 0.80
onMenuNodeCloneMethod · 0.80
#processPrimaryButtonMethod · 0.80
#processNodeClickMethod · 0.80
#startDraggingItemsMethod · 0.80
_pasteFromClipboardMethod · 0.80

Calls 1

canvasActionMethod · 0.95

Tested by

no test coverage detected