mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 14:54:37 +00:00
Revert "tentatively fix numerical enum bug"
This reverts commit 402f73467f.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user