fixed z-index ordering issues

This commit is contained in:
peterkogo
2025-04-16 16:02:22 +02:00
parent 3ef63ad10e
commit 201ed30bc6
15 changed files with 290 additions and 202 deletions
+9 -4
View File
@@ -123,6 +123,11 @@
}
}
.xy-flow__edge-wrapper {
position: absolute;
overflow: visible;
}
.xy-flow__edge {
pointer-events: visibleStroke;
@@ -144,10 +149,6 @@
pointer-events: none;
}
&:focus {
outline: 1px solid red !important;
}
&.selected,
&:focus,
&:focus-visible {
@@ -437,3 +438,7 @@ svg.xy-flow__connectionline {
}
}
}
.xy-flow__marker {
position: absolute;
}
+2 -1
View File
@@ -196,8 +196,9 @@ function updateChildNode<NodeType extends NodeBase>(
}
}
const DEFAULT_NODE_Z = 1;
function calculateZ(node: NodeBase, selectedNodeZ: number) {
return (isNumeric(node.zIndex) ? node.zIndex : 0) + (node.selected ? selectedNodeZ : 0);
return (isNumeric(node.zIndex) ? node.zIndex : DEFAULT_NODE_Z) + (node.selected ? selectedNodeZ : DEFAULT_NODE_Z);
}
function calculateChildXYZ<NodeType extends NodeBase>(