mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 14:54:37 +00:00
Undecsively fix the decisive fix for the numerical enum bug
This commit is contained in:
@@ -330,7 +330,7 @@ export class LinkConnector {
|
||||
network.outputNode,
|
||||
output
|
||||
)
|
||||
renderLink.fromDirection = LinkDirection.CENTER
|
||||
renderLink.fromDirection = LinkDirection.NONE
|
||||
renderLinks.push(renderLink)
|
||||
|
||||
continue
|
||||
@@ -486,7 +486,7 @@ export class LinkConnector {
|
||||
input,
|
||||
reroute
|
||||
)
|
||||
renderLink.fromDirection = LinkDirection.CENTER
|
||||
renderLink.fromDirection = LinkDirection.NONE
|
||||
this.renderLinks.push(renderLink)
|
||||
|
||||
this.state.connectingTo = 'input'
|
||||
@@ -513,7 +513,7 @@ export class LinkConnector {
|
||||
outputSlot,
|
||||
reroute
|
||||
)
|
||||
renderLink.fromDirection = LinkDirection.CENTER
|
||||
renderLink.fromDirection = LinkDirection.NONE
|
||||
this.renderLinks.push(renderLink)
|
||||
|
||||
this.state.connectingTo = 'input'
|
||||
@@ -550,7 +550,7 @@ export class LinkConnector {
|
||||
output,
|
||||
reroute
|
||||
)
|
||||
renderLink.fromDirection = LinkDirection.CENTER
|
||||
renderLink.fromDirection = LinkDirection.NONE
|
||||
this.renderLinks.push(renderLink)
|
||||
|
||||
this.state.connectingTo = 'output'
|
||||
@@ -600,7 +600,7 @@ export class LinkConnector {
|
||||
|
||||
const reroute = network.getReroute(linkSegment.parentId)
|
||||
const renderLink = new ToInputRenderLink(network, node, slot, reroute)
|
||||
renderLink.fromDirection = LinkDirection.CENTER
|
||||
renderLink.fromDirection = LinkDirection.NONE
|
||||
this.renderLinks.push(renderLink)
|
||||
|
||||
state.connectingTo = 'input'
|
||||
|
||||
@@ -36,7 +36,7 @@ export class MovingInputLink extends MovingLinkBase {
|
||||
this.node = this.outputNode
|
||||
this.fromSlot = this.outputSlot
|
||||
this.fromPos = fromReroute?.pos ?? this.outputPos
|
||||
this.fromDirection = LinkDirection.CENTER
|
||||
this.fromDirection = LinkDirection.NONE
|
||||
this.fromSlotIndex = this.outputIndex
|
||||
}
|
||||
|
||||
|
||||
@@ -241,7 +241,7 @@ describe('LinkConnector', () => {
|
||||
expect(renderLink.node).toEqual(originNode)
|
||||
expect(renderLink.fromSlot).toEqual(output)
|
||||
expect(renderLink.fromReroute).toEqual(reroute)
|
||||
expect(renderLink.fromDirection).toEqual(LinkDirection.CENTER)
|
||||
expect(renderLink.fromDirection).toEqual(LinkDirection.NONE)
|
||||
expect(renderLink.network).toEqual(network)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user