From 02e7c902fe9fe0d7bf47d78231d9d4eb8a5858af Mon Sep 17 00:00:00 2001 From: moklick Date: Tue, 21 Jun 2022 17:41:26 +0200 Subject: [PATCH] fix(visible-edges): handle subflows closes #2192 --- src/hooks/useVisibleEdges.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useVisibleEdges.ts b/src/hooks/useVisibleEdges.ts index 02f4db53..f7b8534a 100644 --- a/src/hooks/useVisibleEdges.ts +++ b/src/hooks/useVisibleEdges.ts @@ -69,8 +69,8 @@ function useVisibleEdges(onlyRenderVisible: boolean, nodeInternals: NodeInternal targetNode?.width && targetNode?.height && isEdgeVisible({ - sourcePos: sourceNode.position || { x: 0, y: 0 }, - targetPos: targetNode.position || { x: 0, y: 0 }, + sourcePos: sourceNode.positionAbsolute || { x: 0, y: 0 }, + targetPos: targetNode.positionAbsolute || { x: 0, y: 0 }, sourceWidth: sourceNode.width, sourceHeight: sourceNode.height, targetWidth: targetNode.width,