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
fbc5e4a03d
commit
b2799d0a15
1 changed files with 3 additions and 0 deletions
|
@ -964,6 +964,9 @@ export const bindPointToSnapToElementOutline = (
|
|||
otherPoint,
|
||||
),
|
||||
),
|
||||
).sort(
|
||||
(g, h) =>
|
||||
pointDistanceSq(g, adjacentPoint) - pointDistanceSq(h, adjacentPoint),
|
||||
)[0];
|
||||
} else {
|
||||
intersection = intersectElementWithLineSegment(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue