mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 02:32:18 +00:00
those who know cont
This commit is contained in:
@@ -73,30 +73,8 @@ export class MovingInputLink extends MovingLinkBase {
|
|||||||
return link
|
return link
|
||||||
}
|
}
|
||||||
|
|
||||||
connectToOutput(
|
connectToOutput(): never {
|
||||||
outputNode: LGraphNode,
|
throw new Error('MovingInputLink cannot connect to an output.')
|
||||||
output: INodeOutputSlot,
|
|
||||||
events: CustomEventTarget<LinkConnectorEventMap>
|
|
||||||
): LLink | null | undefined {
|
|
||||||
if (
|
|
||||||
outputNode === this.outputNode &&
|
|
||||||
output === this.outputSlot &&
|
|
||||||
this.inputSlot === this.inputNode.inputs[this.inputIndex]
|
|
||||||
) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
const afterRerouteId = this.fromReroute?.id ?? this.link.parentId
|
|
||||||
|
|
||||||
this.inputNode.disconnectInput(this.inputIndex, true)
|
|
||||||
const newLink = outputNode.connectSlots(
|
|
||||||
output,
|
|
||||||
this.inputNode,
|
|
||||||
this.inputSlot,
|
|
||||||
afterRerouteId
|
|
||||||
)
|
|
||||||
if (newLink) events.dispatch('input-moved', this)
|
|
||||||
return newLink
|
|
||||||
}
|
}
|
||||||
|
|
||||||
connectToSubgraphInput(): void {
|
connectToSubgraphInput(): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user