mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-12-03 02:54:25 +01:00
@@ -1202,14 +1202,11 @@ export const bindPointToSnapToElementOutline = (
|
|||||||
customIntersector?: LineSegment<GlobalPoint>,
|
customIntersector?: LineSegment<GlobalPoint>,
|
||||||
): GlobalPoint => {
|
): GlobalPoint => {
|
||||||
const elbowed = isElbowArrow(arrowElement);
|
const elbowed = isElbowArrow(arrowElement);
|
||||||
const point =
|
const point = LinearElementEditor.getPointAtIndexGlobalCoordinates(
|
||||||
customIntersector && !elbowed
|
arrowElement,
|
||||||
? customIntersector[0]
|
startOrEnd === "start" ? 0 : -1,
|
||||||
: LinearElementEditor.getPointAtIndexGlobalCoordinates(
|
elementsMap,
|
||||||
arrowElement,
|
);
|
||||||
startOrEnd === "start" ? 0 : -1,
|
|
||||||
elementsMap,
|
|
||||||
);
|
|
||||||
|
|
||||||
if (arrowElement.points.length < 2) {
|
if (arrowElement.points.length < 2) {
|
||||||
// New arrow creation, so no snapping
|
// New arrow creation, so no snapping
|
||||||
|
|||||||
Reference in New Issue
Block a user