Revert "tentatively fix numerical enum bug"

This reverts commit 402f73467f.
This commit is contained in:
Benjamin Lu
2025-09-17 21:00:50 -07:00
parent 402f73467f
commit bcce2c8ab2
3 changed files with 8 additions and 8 deletions

View File

@@ -5763,8 +5763,8 @@ export class LGraphCanvas
)
return
const start_dir = startDirection ?? LinkDirection.RIGHT
const end_dir = endDirection ?? LinkDirection.LEFT
const start_dir = startDirection || LinkDirection.RIGHT
const end_dir = endDirection || LinkDirection.LEFT
// Has reroutes
if (reroutes.length) {

View File

@@ -112,8 +112,8 @@ export class LitegraphLinkAdapter {
)
// Get directions from slots
const startDir = sourceSlot.dir ?? LinkDirection.RIGHT
const endDir = targetSlot.dir ?? LinkDirection.LEFT
const startDir = sourceSlot.dir || LinkDirection.RIGHT
const endDir = targetSlot.dir || LinkDirection.LEFT
// Convert to pure render data
const linkData = this.convertToLinkRenderData(
@@ -352,8 +352,8 @@ export class LitegraphLinkAdapter {
} = {}
): void {
// Apply same defaults as original renderLink
const startDir = start_dir ?? LinkDirection.RIGHT
const endDir = end_dir ?? LinkDirection.LEFT
const startDir = start_dir || LinkDirection.RIGHT
const endDir = end_dir || LinkDirection.LEFT
// Convert flow to boolean
const flowBool = flow === true || (typeof flow === 'number' && flow > 0)

View File

@@ -93,8 +93,8 @@ export function useLinkLayoutSync() {
const endPos = getSlotPosition(targetNode, link.target_slot, true)
// Get directions
const startDir = sourceSlot.dir ?? LinkDirection.RIGHT
const endDir = targetSlot.dir ?? LinkDirection.LEFT
const startDir = sourceSlot.dir || LinkDirection.RIGHT
const endDir = targetSlot.dir || LinkDirection.LEFT
// Get reroutes for this link
const reroutes = LLink.getReroutes(graph, link)