mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Adjusted elbow in-shape binding strategy
This commit is contained in:
parent
dca9fbe306
commit
03b91deb4a
1 changed files with 3 additions and 0 deletions
|
@ -965,6 +965,9 @@ export const bindPointToSnapToElementOutline = (
|
||||||
otherPoint,
|
otherPoint,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
).sort(
|
||||||
|
(g, h) =>
|
||||||
|
pointDistanceSq(g, adjacentPoint) - pointDistanceSq(h, adjacentPoint),
|
||||||
)[0];
|
)[0];
|
||||||
} else {
|
} else {
|
||||||
intersection = intersectElementWithLineSegment(
|
intersection = intersectElementWithLineSegment(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue