This commit is contained in:
Jan Prochazka
2022-01-06 12:10:17 +01:00
parent 75e93ec11e
commit b8ac4a5a06
3 changed files with 34 additions and 23 deletions

View File

@@ -41,7 +41,7 @@
y: (targetRect.top + targetRect.bottom) / 2,
};
arrowPt = intersectLineBox(src, dst, targetRect);
arrowPt = intersectLineBox(src, dst, targetRect)[0];
arrowAngle = Math.atan2(dst.y - src.y, dst.x - src.x);
}