Adjusted elbow in-shape binding strategy

This commit is contained in:
Mark Tolmacs 2025-03-01 08:35:11 +01:00
parent dca9fbe306
commit 03b91deb4a

View file

@ -965,6 +965,9 @@ export const bindPointToSnapToElementOutline = (
otherPoint,
),
),
).sort(
(g, h) =>
pointDistanceSq(g, adjacentPoint) - pointDistanceSq(h, adjacentPoint),
)[0];
} else {
intersection = intersectElementWithLineSegment(