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

Method setSize

src/LGraphNode.ts:1443–1446  ·  view source on GitHub ↗

* changes node size and triggers callback

(size: Size)

Source from the content-addressed store, hash-verified

1441 * changes node size and triggers callback
1442 */
1443 setSize(size: Size): void {
1444 this.size = size
1445 this.onResize?.(this.size)
1446 }
1447
1448 /**
1449 * Expands the node size to fit its content.

Callers 5

expandToFitContentMethod · 0.95
#arrangeWidgetsMethod · 0.95
fApplyMultiNodeMethod · 0.45
#processNodeClickMethod · 0.45
convertToSubgraphMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected