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

Method selectNode

src/LGraphCanvas.ts:3803–3809  ·  view source on GitHub ↗

@deprecated See LGraphCanvas.select

(node: LGraphNode, add_to_current_selection?: boolean)

Source from the content-addressed store, hash-verified

3801
3802 /** @deprecated See {@link LGraphCanvas.select} */
3803 selectNode(node: LGraphNode, add_to_current_selection?: boolean): void {
3804 if (node == null) {
3805 this.deselectAll()
3806 } else {
3807 this.selectNodes([node], add_to_current_selection)
3808 }
3809 }
3810
3811 get empty(): boolean {
3812 if (!this.graph) throw new NullGraphError()

Callers

nothing calls this directly

Calls 2

deselectAllMethod · 0.95
selectNodesMethod · 0.95

Tested by

no test coverage detected