Skip to content

Commit

Permalink
fix(visible-edges): handle subflows closes #2192
Browse files Browse the repository at this point in the history
  • Loading branch information
moklick committed Jun 21, 2022
1 parent 3d74b51 commit 02e7c90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useVisibleEdges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 02e7c90

Please sign in to comment.