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

Method getInputPos

src/LGraphNode.ts:3043–3045  ·  view source on GitHub ↗

* Gets the position of an input slot, in graph co-ordinates. * * This method is preferred over the legacy getConnectionPos method. * @param slot Input slot index * @returns Position of the input slot

(slot: number)

Source from the content-addressed store, hash-verified

3041 * @returns Position of the input slot
3042 */
3043 getInputPos(slot: number): Point {
3044 return this.getInputSlotPos(this.inputs[slot])
3045 }
3046
3047 /**
3048 * Gets the position of an input slot, in graph co-ordinates.

Callers 14

getSlotInPositionMethod · 0.95
#measureSlotMethod · 0.95
mockedInputDropEventFunction · 0.80
LGraphNode.test.tsFile · 0.80
getNextPosFunction · 0.80
#processNodeClickMethod · 0.80
#processMiddleButtonMethod · 0.80
drawConnectionsMethod · 0.80
#renderFloatingLinksMethod · 0.80
constructorFunction · 0.80
getNodeInputOnPosFunction · 0.80

Calls 1

getInputSlotPosMethod · 0.95

Tested by 1

mockedInputDropEventFunction · 0.64