Undecsively fix the decisive fix for the numerical enum bug

This commit is contained in:
Benjamin Lu
2025-09-18 12:45:48 -07:00
parent 6eb1f5e9c6
commit 75d3788a86
3 changed files with 7 additions and 7 deletions

View File

@@ -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'

View File

@@ -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
}

View File

@@ -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)
})
})