chore(edges): cleanup
This commit is contained in:
@@ -1,13 +1,4 @@
|
|||||||
import {
|
import { Connection, InternalNodeBase, Transform, errorMessages, isEdgeBase, EdgeBase, ZIndexMode } from '../..';
|
||||||
Connection,
|
|
||||||
InternalNodeBase,
|
|
||||||
Transform,
|
|
||||||
errorMessages,
|
|
||||||
isEdgeBase,
|
|
||||||
EdgeBase,
|
|
||||||
ZIndexMode,
|
|
||||||
isManualZIndexMode,
|
|
||||||
} from '../..';
|
|
||||||
import { getOverlappingArea, boxToRect, nodeToBox, getBoundsOfBoxes, devWarn } from '../general';
|
import { getOverlappingArea, boxToRect, nodeToBox, getBoundsOfBoxes, devWarn } from '../general';
|
||||||
|
|
||||||
// this is used for straight edges and simple smoothstep edges (LTR, RTL, BTT, TTB)
|
// this is used for straight edges and simple smoothstep edges (LTR, RTL, BTT, TTB)
|
||||||
@@ -53,9 +44,7 @@ export function getElevatedEdgeZIndex({
|
|||||||
elevateOnSelect = false,
|
elevateOnSelect = false,
|
||||||
zIndexMode = 'basic',
|
zIndexMode = 'basic',
|
||||||
}: GetEdgeZIndexParams): number {
|
}: GetEdgeZIndexParams): number {
|
||||||
const manualZIndexMode = isManualZIndexMode(zIndexMode);
|
if (zIndexMode === 'manual') {
|
||||||
|
|
||||||
if (manualZIndexMode) {
|
|
||||||
return zIndex;
|
return zIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user