fix(visible-edges): handle subflows closes #2192

This commit is contained in:
moklick
2022-06-21 17:41:26 +02:00
parent 3d74b519b5
commit 02e7c902fe
+2 -2
View File
@@ -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,