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

Method #getMouseOverSlot

src/LGraphNode.ts:3636–3643  ·  view source on GitHub ↗
(slot: INodeSlot)

Source from the content-addressed store, hash-verified

3634 }
3635
3636 #getMouseOverSlot(slot: INodeSlot): INodeSlot | null {
3637 const isInput = isINodeInputSlot(slot)
3638 const mouseOverId = this.mouseOver?.[isInput ? "inputId" : "outputId"] ?? -1
3639 if (mouseOverId === -1) {
3640 return null
3641 }
3642 return isInput ? this.inputs[mouseOverId] : this.outputs[mouseOverId]
3643 }
3644
3645 #isMouseOverSlot(slot: INodeSlot): boolean {
3646 return this.#getMouseOverSlot(slot) === slot

Callers 1

#isMouseOverSlotMethod · 0.95

Calls 1

isINodeInputSlotFunction · 0.90

Tested by

no test coverage detected