Compare commits

...

1 Commits

Author SHA1 Message Date
Mark Tolmacs 424e5e5026 feat(arrow): Second-to-last point force bound endpoint inside
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2026-02-18 17:20:36 +00:00
+7 -1
View File
@@ -1774,9 +1774,15 @@ export const updateBoundPoint = (
startOrEnd === "startBinding" ? "endBinding" : "startBinding",
elementsMap,
);
const adjacentPointIndex =
startOrEnd === "startBinding" ? 1 : arrow.points.length - 2;
const otherArrowPoint = LinearElementEditor.getPointAtIndexGlobalCoordinates(
arrow,
startOrEnd === "startBinding" ? -1 : 0,
arrow.points.length > 2
? adjacentPointIndex
: startOrEnd === "startBinding"
? -1
: 0,
elementsMap,
);
const otherFocusPointOrArrowPoint = otherFocusPoint || otherArrowPoint;