File tree Expand file tree Collapse file tree 1 file changed +2
-24
lines changed
src/lib/litegraph/src/canvas Expand file tree Collapse file tree 1 file changed +2
-24
lines changed Original file line number Diff line number Diff line change @@ -73,30 +73,8 @@ export class MovingInputLink extends MovingLinkBase {
73
73
return link
74
74
}
75
75
76
- connectToOutput (
77
- outputNode : LGraphNode ,
78
- output : INodeOutputSlot ,
79
- events : CustomEventTarget < LinkConnectorEventMap >
80
- ) : LLink | null | undefined {
81
- if (
82
- outputNode === this . outputNode &&
83
- output === this . outputSlot &&
84
- this . inputSlot === this . inputNode . inputs [ this . inputIndex ]
85
- ) {
86
- return
87
- }
88
-
89
- const afterRerouteId = this . fromReroute ?. id ?? this . link . parentId
90
-
91
- this . inputNode . disconnectInput ( this . inputIndex , true )
92
- const newLink = outputNode . connectSlots (
93
- output ,
94
- this . inputNode ,
95
- this . inputSlot ,
96
- afterRerouteId
97
- )
98
- if ( newLink ) events . dispatch ( 'input-moved' , this )
99
- return newLink
76
+ connectToOutput ( ) : never {
77
+ throw new Error ( 'MovingInputLink cannot connect to an output.' )
100
78
}
101
79
102
80
connectToSubgraphInput ( ) : void {
You can’t perform that action at this time.
0 commit comments