fix: Multi-point arrow bound point update (#10831)
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
@@ -1776,10 +1776,13 @@ export const updateBoundPoint = (
|
|||||||
);
|
);
|
||||||
const otherArrowPoint = LinearElementEditor.getPointAtIndexGlobalCoordinates(
|
const otherArrowPoint = LinearElementEditor.getPointAtIndexGlobalCoordinates(
|
||||||
arrow,
|
arrow,
|
||||||
startOrEnd === "startBinding" ? -1 : 0,
|
startOrEnd === "startBinding" ? 1 : -2,
|
||||||
elementsMap,
|
elementsMap,
|
||||||
);
|
);
|
||||||
const otherFocusPointOrArrowPoint = otherFocusPoint || otherArrowPoint;
|
const otherFocusPointOrArrowPoint =
|
||||||
|
arrow.points.length === 2
|
||||||
|
? otherFocusPoint || otherArrowPoint
|
||||||
|
: otherArrowPoint;
|
||||||
const intersector =
|
const intersector =
|
||||||
otherFocusPointOrArrowPoint &&
|
otherFocusPointOrArrowPoint &&
|
||||||
lineSegment(focusPoint, otherFocusPointOrArrowPoint);
|
lineSegment(focusPoint, otherFocusPointOrArrowPoint);
|
||||||
|
|||||||
Reference in New Issue
Block a user