@@ -750,8 +750,16 @@ const getBindingStrategyForDraggingBindingElementEndpoints_simple = (
|
|||||||
: // NOTE: Can only affect the start point because new arrows always drag the end point
|
: // NOTE: Can only affect the start point because new arrows always drag the end point
|
||||||
opts?.newArrow
|
opts?.newArrow
|
||||||
? appState.selectedLinearElement!.initialState.origin!
|
? appState.selectedLinearElement!.initialState.origin!
|
||||||
: appState.selectedLinearElement?.initialState.altFocusPoint ||
|
: otherBindableElement &&
|
||||||
LinearElementEditor.getPointAtIndexGlobalCoordinates(
|
appState.selectedLinearElement?.initialState
|
||||||
|
?.arrowOtherEndpointInitialBinding?.fixedPoint
|
||||||
|
? getGlobalFixedPointForBindableElement(
|
||||||
|
appState.selectedLinearElement?.initialState
|
||||||
|
.arrowOtherEndpointInitialBinding.fixedPoint,
|
||||||
|
otherBindableElement,
|
||||||
|
elementsMap,
|
||||||
|
)
|
||||||
|
: LinearElementEditor.getPointAtIndexGlobalCoordinates(
|
||||||
arrow,
|
arrow,
|
||||||
0,
|
0,
|
||||||
elementsMap,
|
elementsMap,
|
||||||
@@ -762,8 +770,16 @@ const getBindingStrategyForDraggingBindingElementEndpoints_simple = (
|
|||||||
element: hit,
|
element: hit,
|
||||||
focusPoint: endDragged
|
focusPoint: endDragged
|
||||||
? globalPoint
|
? globalPoint
|
||||||
: appState.selectedLinearElement?.initialState.altFocusPoint ||
|
: otherBindableElement &&
|
||||||
LinearElementEditor.getPointAtIndexGlobalCoordinates(
|
appState.selectedLinearElement?.initialState
|
||||||
|
?.arrowOtherEndpointInitialBinding?.fixedPoint
|
||||||
|
? getGlobalFixedPointForBindableElement(
|
||||||
|
appState.selectedLinearElement?.initialState
|
||||||
|
.arrowOtherEndpointInitialBinding.fixedPoint,
|
||||||
|
otherBindableElement,
|
||||||
|
elementsMap,
|
||||||
|
)
|
||||||
|
: LinearElementEditor.getPointAtIndexGlobalCoordinates(
|
||||||
arrow,
|
arrow,
|
||||||
-1,
|
-1,
|
||||||
elementsMap,
|
elementsMap,
|
||||||
|
|||||||
Reference in New Issue
Block a user