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

Method getInputOnPos

src/LGraphNode.ts:1975–1977  ·  view source on GitHub ↗

* Returns the input slot at the given position. Uses full 20 height, and approximates the label length. * @param pos The graph co-ordinates to check * @returns The input slot at the given position if found, otherwise `undefined`.

(pos: Point)

Source from the content-addressed store, hash-verified

1973 * @returns The input slot at the given position if found, otherwise `undefined`.
1974 */
1975 getInputOnPos(pos: Point): INodeInputSlot | undefined {
1976 return getNodeInputOnPos(this, pos[0], pos[1])?.input
1977 }
1978
1979 /**
1980 * Returns the output slot at the given position. Uses full 20x20 box for the slot.

Callers 2

getSlotOnPosMethod · 0.95
dropOnNodeMethod · 0.80

Calls 1

getNodeInputOnPosFunction · 0.90

Tested by

no test coverage detected