[Refactor] Rename to connectSlots (#708)

- Follow-up on #703 
- Changes name to match original intent
This commit is contained in:
filtered
2025-03-05 19:01:26 +11:00
committed by GitHub
parent 493e374b7d
commit 7a2af7008b

View File

@@ -2373,11 +2373,19 @@ export class LGraphNode implements Positionable, IPinnable, IColorable {
}
}
const link = this.connectInternal(output, target_node, input, afterRerouteId)
const link = this.connectSlots(output, target_node, input, afterRerouteId)
return link ?? null
}
connectInternal(
/**
* Connect two slots between two nodes
* @param output The output slot to connect
* @param inputNode The node that the input slot is on
* @param input The input slot to connect
* @param afterRerouteId The reroute ID to use for the link
* @returns The link that was created, or null if the connection was blocked
*/
connectSlots(
output: INodeOutputSlot,
inputNode: LGraphNode,
input: INodeInputSlot,