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

Method getOutputOnPos

src/LGraphNode.ts:1984–1986  ·  view source on GitHub ↗

* Returns the output slot at the given position. Uses full 20x20 box for the slot. * @param pos The graph co-ordinates to check * @returns The output slot at the given position if found, otherwise `undefined`.

(pos: Point)

Source from the content-addressed store, hash-verified

1982 * @returns The output slot at the given position if found, otherwise `undefined`.
1983 */
1984 getOutputOnPos(pos: Point): INodeOutputSlot | undefined {
1985 return getNodeOutputOnPos(this, pos[0], pos[1])?.output
1986 }
1987
1988 /**
1989 * Returns the input or output slot at the given position.

Callers 2

getSlotOnPosMethod · 0.95
dropOnNodeMethod · 0.80

Calls 1

getNodeOutputOnPosFunction · 0.90

Tested by

no test coverage detected