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

Method getInputDataByName

src/LGraphNode.ts:1050–1055  ·  view source on GitHub ↗

* Retrieves the input data from one slot using its name instead of slot number * @param slot_name * @param force_update if set to true it will force the connected node of this slot to output data into this link * @returns data or if it is not connected returns null

(slot_name: string, force_update: boolean)

Source from the content-addressed store, hash-verified

1048 * @returns data or if it is not connected returns null
1049 */
1050 getInputDataByName(slot_name: string, force_update: boolean): unknown {
1051 const slot = this.findInputSlot(slot_name)
1052 return slot == -1
1053 ? null
1054 : this.getInputData(slot, force_update)
1055 }
1056
1057 /**
1058 * tells you if there is a connection in one input slot

Callers

nothing calls this directly

Calls 2

findInputSlotMethod · 0.95
getInputDataMethod · 0.95

Tested by

no test coverage detected