test(edges): zindex in sub flows

This commit is contained in:
moklick
2025-06-26 12:12:13 +02:00
parent 323f07dd01
commit a7abcc0517
5 changed files with 94 additions and 2 deletions

View File

@@ -30,6 +30,11 @@ export type GetEdgeZIndexParams = {
elevateOnSelect?: boolean;
};
/**
* Returns the z-index for an edge based on the node it connects and whether it is selected.
* By default, edges are rendered below nodes. This behaviour is different for edges that are
* connected to nodes with a parent, as they are rendered above the parent node.
*/
export function getElevatedEdgeZIndex({
sourceNode,
targetNode,