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

Method processSubgraphIONode

src/LGraphCanvas.ts:2149–2157  ·  view source on GitHub ↗
(canvas: LGraphCanvas, ioNode: SubgraphInputNode | SubgraphOutputNode)

Source from the content-addressed store, hash-verified

2147 if (processSubgraphIONode(this, outputNode)) return
2148
2149 function processSubgraphIONode(canvas: LGraphCanvas, ioNode: SubgraphInputNode | SubgraphOutputNode) {
2150 if (!ioNode.containsPoint([x, y])) return false
2151
2152 ioNode.onPointerDown(e, pointer, linkConnector)
2153 pointer.onClick ??= () => canvas.processSelect(ioNode, e)
2154 pointer.onDragStart ??= () => canvas.#startDraggingItems(ioNode, pointer, true)
2155 pointer.onDragEnd ??= eUp => canvas.#processDraggedItems(eUp)
2156 return true
2157 }
2158 }
2159
2160 // Reroutes

Callers

nothing calls this directly

Calls 5

processSelectMethod · 0.80
#startDraggingItemsMethod · 0.80
#processDraggedItemsMethod · 0.80
containsPointMethod · 0.65
onPointerDownMethod · 0.65

Tested by

no test coverage detected