Skip to content

Commit

Permalink
fixed floating edges example
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkogo committed Jul 22, 2024
1 parent 0aeede8 commit f25fa21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function getNodeIntersection(intersectionNode, targetNode) {

// returns the position (top,right,bottom or right) passed node compared to the intersection point
function getEdgePosition(node, intersectionPoint) {
const n = { ...node.measured.positionAbsolute, ...node };
const n = { ...node.internals.positionAbsolute, ...node };
const nx = Math.round(n.x);
const ny = Math.round(n.y);
const px = Math.round(intersectionPoint.x);
Expand Down

0 comments on commit f25fa21

Please sign in to comment.