|
@@ -100,6 +100,7 @@ import {
|
|
|
isShallowEqual,
|
|
|
arrayToMap,
|
|
|
type EXPORT_IMAGE_TYPES,
|
|
|
+ toLocalPoint,
|
|
|
} from "@excalidraw/common";
|
|
|
|
|
|
import {
|
|
@@ -118,6 +119,8 @@ import {
|
|
|
shouldEnableBindingForPointerEvent,
|
|
|
updateBoundElements,
|
|
|
getSuggestedBindingsForArrows,
|
|
|
+ getOutlineAvoidingPoint,
|
|
|
+ FIXED_BINDING_DISTANCE,
|
|
|
} from "@excalidraw/element/binding";
|
|
|
|
|
|
import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
|
|
@@ -229,6 +232,7 @@ import {
|
|
|
hitElementBoundText,
|
|
|
hitElementBoundingBoxOnly,
|
|
|
hitElementItself,
|
|
|
+ intersectElementWithLineSegment,
|
|
|
} from "@excalidraw/element/collision";
|
|
|
|
|
|
import { getVisibleSceneBounds } from "@excalidraw/element/bounds";
|
|
@@ -329,7 +333,7 @@ import type {
|
|
|
ExcalidrawArrowElement,
|
|
|
} from "@excalidraw/element/types";
|
|
|
|
|
|
-import type { ValueOf } from "@excalidraw/common/utility-types";
|
|
|
+import type { Mutable, ValueOf } from "@excalidraw/common/utility-types";
|
|
|
|
|
|
import {
|
|
|
actionAddToLibrary,
|