mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 10:12:11 +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
|
return
|
||||||
|
|
||||||
const start_dir = startDirection ?? LinkDirection.RIGHT
|
const start_dir = startDirection || LinkDirection.RIGHT
|
||||||
const end_dir = endDirection ?? LinkDirection.LEFT
|
const end_dir = endDirection || LinkDirection.LEFT
|
||||||
|
|
||||||
// Has reroutes
|
// Has reroutes
|
||||||
if (reroutes.length) {
|
if (reroutes.length) {
|
||||||
|
|||||||
@@ -112,8 +112,8 @@ export class LitegraphLinkAdapter {
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Get directions from slots
|
// Get directions from slots
|
||||||
const startDir = sourceSlot.dir ?? LinkDirection.RIGHT
|
const startDir = sourceSlot.dir || LinkDirection.RIGHT
|
||||||
const endDir = targetSlot.dir ?? LinkDirection.LEFT
|
const endDir = targetSlot.dir || LinkDirection.LEFT
|
||||||
|
|
||||||
// Convert to pure render data
|
// Convert to pure render data
|
||||||
const linkData = this.convertToLinkRenderData(
|
const linkData = this.convertToLinkRenderData(
|
||||||
@@ -352,8 +352,8 @@ export class LitegraphLinkAdapter {
|
|||||||
} = {}
|
} = {}
|
||||||
): void {
|
): void {
|
||||||
// Apply same defaults as original renderLink
|
// Apply same defaults as original renderLink
|
||||||
const startDir = start_dir ?? LinkDirection.RIGHT
|
const startDir = start_dir || LinkDirection.RIGHT
|
||||||
const endDir = end_dir ?? LinkDirection.LEFT
|
const endDir = end_dir || LinkDirection.LEFT
|
||||||
|
|
||||||
// Convert flow to boolean
|
// Convert flow to boolean
|
||||||
const flowBool = flow === true || (typeof flow === 'number' && flow > 0)
|
const flowBool = flow === true || (typeof flow === 'number' && flow > 0)
|
||||||
|
|||||||
@@ -93,8 +93,8 @@ export function useLinkLayoutSync() {
|
|||||||
const endPos = getSlotPosition(targetNode, link.target_slot, true)
|
const endPos = getSlotPosition(targetNode, link.target_slot, true)
|
||||||
|
|
||||||
// Get directions
|
// Get directions
|
||||||
const startDir = sourceSlot.dir ?? LinkDirection.RIGHT
|
const startDir = sourceSlot.dir || LinkDirection.RIGHT
|
||||||
const endDir = targetSlot.dir ?? LinkDirection.LEFT
|
const endDir = targetSlot.dir || LinkDirection.LEFT
|
||||||
|
|
||||||
// Get reroutes for this link
|
// Get reroutes for this link
|
||||||
const reroutes = LLink.getReroutes(graph, link)
|
const reroutes = LLink.getReroutes(graph, link)
|
||||||
|
|||||||
Reference in New Issue
Block a user