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

Method change

src/LGraph.ts:1185–1191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1183
1184 /* Called when something visually changed (not the graph!) */
1185 change(): void {
1186 if (LiteGraph.debug) {
1187 console.log("Graph changed")
1188 }
1189 this.canvasAction(c => c.setDirty(true, true))
1190 this.on_change?.(this)
1191 }
1192
1193 setDirtyCanvas(fg: boolean, bg?: boolean): void {
1194 this.canvasAction(c => c.setDirty(fg, bg))

Callers 8

clearMethod · 0.95
addMethod · 0.95
removeMethod · 0.95
processMouseDownMethod · 0.80
#processDragZoomMethod · 0.80
processMouseUpMethod · 0.80
processMouseWheelMethod · 0.80
processKeyMethod · 0.80

Calls 2

canvasActionMethod · 0.95
setDirtyMethod · 0.80

Tested by

no test coverage detected