From f15bc01f99771f5fce01e5764d97fc9e926eb903 Mon Sep 17 00:00:00 2001 From: moklick Date: Thu, 4 Dec 2025 14:11:14 +0100 Subject: [PATCH] chore(edges): cleanup --- packages/system/src/utils/edges/general.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/packages/system/src/utils/edges/general.ts b/packages/system/src/utils/edges/general.ts index c08c8758..dcb39fac 100644 --- a/packages/system/src/utils/edges/general.ts +++ b/packages/system/src/utils/edges/general.ts @@ -1,13 +1,4 @@ -import { - Connection, - InternalNodeBase, - Transform, - errorMessages, - isEdgeBase, - EdgeBase, - ZIndexMode, - isManualZIndexMode, -} from '../..'; +import { Connection, InternalNodeBase, Transform, errorMessages, isEdgeBase, EdgeBase, ZIndexMode } from '../..'; import { getOverlappingArea, boxToRect, nodeToBox, getBoundsOfBoxes, devWarn } from '../general'; // this is used for straight edges and simple smoothstep edges (LTR, RTL, BTT, TTB) @@ -53,9 +44,7 @@ export function getElevatedEdgeZIndex({ elevateOnSelect = false, zIndexMode = 'basic', }: GetEdgeZIndexParams): number { - const manualZIndexMode = isManualZIndexMode(zIndexMode); - - if (manualZIndexMode) { + if (zIndexMode === 'manual') { return zIndex; }