@myoc/math 0.19.505 → 0.19.508
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/index.js +32 -7
- package/dist/dev/index.js.map +2 -2
- package/dist/prod/index.js +1 -1
- package/dist/types/element/src/Scene.d.ts +5 -3
- package/dist/types/element/src/bounds.d.ts +4 -2
- package/dist/types/element/src/duplicate.d.ts +1 -0
- package/dist/types/element/src/frame.d.ts +7 -6
- package/dist/types/element/src/linearElementEditor.d.ts +2 -2
- package/dist/types/element/src/selection.d.ts +2 -2
- package/dist/types/element/src/shape.d.ts +1 -1
- package/dist/types/element/src/typeChecks.d.ts +1 -0
- package/dist/types/element/src/utils.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +11 -11
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +168 -0
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionExport.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionFrame.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionGroup.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionLink.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionProperties.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +3 -5
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +2 -3
- package/dist/types/excalidraw/actions/index.d.ts +1 -0
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +1 -0
- package/dist/types/excalidraw/components/App.d.ts +9 -0
- package/dist/types/excalidraw/components/PublishLibrary.d.ts +3 -2
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -0
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -0
- package/dist/types/excalidraw/data/blob.d.ts +4 -8
- package/dist/types/excalidraw/data/json.d.ts +1 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +425 -19
- package/dist/types/excalidraw/scene/types.d.ts +2 -0
- package/dist/types/excalidraw/types.d.ts +15 -2
- package/dist/types/fractional-indexing/src/index.d.ts +29 -0
- package/dist/types/math/src/constants.d.ts +0 -1
- package/dist/types/math/src/curve.d.ts +4 -1
- package/package.json +4 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppState, InteractiveCanvasAppState } from "@excalidraw/excalidraw/types";
|
|
1
|
+
import type { AppState, BoxSelectionMode, InteractiveCanvasAppState } from "@excalidraw/excalidraw/types";
|
|
2
2
|
import { LinearElementEditor } from "./linearElementEditor";
|
|
3
3
|
import type { ElementsMap, ElementsMapOrArray, ExcalidrawElement, NonDeleted, NonDeletedExcalidrawElement } from "./types";
|
|
4
4
|
/**
|
|
@@ -8,7 +8,7 @@ import type { ElementsMap, ElementsMapOrArray, ExcalidrawElement, NonDeleted, No
|
|
|
8
8
|
* @param selectedElements
|
|
9
9
|
*/
|
|
10
10
|
export declare const excludeElementsInFramesFromSelection: <T extends ExcalidrawElement>(selectedElements: readonly T[]) => T[];
|
|
11
|
-
export declare const getElementsWithinSelection: (elements: readonly NonDeletedExcalidrawElement[], selection: NonDeletedExcalidrawElement, elementsMap: ElementsMap, excludeElementsInFrames?: boolean) => NonDeletedExcalidrawElement[];
|
|
11
|
+
export declare const getElementsWithinSelection: (elements: readonly NonDeletedExcalidrawElement[], selection: NonDeletedExcalidrawElement, elementsMap: ElementsMap, excludeElementsInFrames?: boolean, boxSelectionMode?: BoxSelectionMode) => NonDeletedExcalidrawElement[];
|
|
12
12
|
export declare const getVisibleAndNonSelectedElements: (elements: readonly NonDeletedExcalidrawElement[], selectedElements: readonly NonDeletedExcalidrawElement[], appState: AppState, elementsMap: ElementsMap) => NonDeletedExcalidrawElement[];
|
|
13
13
|
export declare const isSomeElementSelected: {
|
|
14
14
|
(elements: readonly NonDeletedExcalidrawElement[], appState: Pick<AppState, "selectedElementIds">): boolean;
|
|
@@ -27,7 +27,7 @@ export declare class ShapeCache {
|
|
|
27
27
|
} | null) => ((T["type"] extends keyof ElementShapes ? ElementShapes[T["type"]] | undefined : ElementShape | undefined) & {}) | (T["type"] extends keyof ElementShapes ? ElementShapes[T["type"]] : Drawable | null);
|
|
28
28
|
}
|
|
29
29
|
export declare const generateRoughOptions: (element: ExcalidrawElement, continuousPath?: boolean, isDarkMode?: boolean) => Options;
|
|
30
|
-
export declare const generateLinearCollisionShape: (element: ExcalidrawLinearElement | ExcalidrawFreeDrawElement) => {
|
|
30
|
+
export declare const generateLinearCollisionShape: (element: ExcalidrawLinearElement | ExcalidrawFreeDrawElement, elementsMap: ElementsMap) => {
|
|
31
31
|
op: string;
|
|
32
32
|
data: number[];
|
|
33
33
|
}[];
|
|
@@ -52,3 +52,4 @@ export declare const getLinearElementSubType: (element: ExcalidrawLinearElement)
|
|
|
52
52
|
*/
|
|
53
53
|
export declare const isValidPolygon: (points: ExcalidrawLineElement["points"]) => boolean;
|
|
54
54
|
export declare const canBecomePolygon: (points: ExcalidrawLineElement["points"]) => boolean;
|
|
55
|
+
export declare const isEligibleFrameChildType: (type: ElementOrToolType) => boolean;
|
|
@@ -8,7 +8,7 @@ import type { ElementsMap, ExcalidrawArrowElement, ExcalidrawBindableElement, Ex
|
|
|
8
8
|
* @param element The linear element to deconstruct
|
|
9
9
|
* @returns The rotated in components.
|
|
10
10
|
*/
|
|
11
|
-
export declare function deconstructLinearOrFreeDrawElement(element: ExcalidrawLinearElement | ExcalidrawFreeDrawElement): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
|
|
11
|
+
export declare function deconstructLinearOrFreeDrawElement(element: ExcalidrawLinearElement | ExcalidrawFreeDrawElement, elementsMap: ElementsMap): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
|
|
12
12
|
/**
|
|
13
13
|
* Get the building components of a rectanguloid element in the form of
|
|
14
14
|
* line segments and curves **unrotated**.
|
|
@@ -38,9 +38,9 @@ export declare const actionAddToLibrary: {
|
|
|
38
38
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
39
39
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
40
40
|
isBindingEnabled: boolean;
|
|
41
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
41
42
|
bindingPreference: "enabled" | "disabled";
|
|
42
43
|
isMidpointSnappingEnabled: boolean;
|
|
43
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
44
44
|
suggestedBinding: {
|
|
45
45
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
46
46
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -201,9 +201,9 @@ export declare const actionAddToLibrary: {
|
|
|
201
201
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
202
202
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
203
203
|
isBindingEnabled: boolean;
|
|
204
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
204
205
|
bindingPreference: "enabled" | "disabled";
|
|
205
206
|
isMidpointSnappingEnabled: boolean;
|
|
206
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
207
207
|
suggestedBinding: {
|
|
208
208
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
209
209
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -369,9 +369,9 @@ export declare const actionAddToLibrary: {
|
|
|
369
369
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
370
370
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
371
371
|
isBindingEnabled: boolean;
|
|
372
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
372
373
|
bindingPreference: "enabled" | "disabled";
|
|
373
374
|
isMidpointSnappingEnabled: boolean;
|
|
374
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
375
375
|
suggestedBinding: {
|
|
376
376
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
377
377
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -58,9 +58,9 @@ export declare const actionBindText: {
|
|
|
58
58
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
59
59
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
60
60
|
isBindingEnabled: boolean;
|
|
61
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
61
62
|
bindingPreference: "enabled" | "disabled";
|
|
62
63
|
isMidpointSnappingEnabled: boolean;
|
|
63
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
64
64
|
suggestedBinding: {
|
|
65
65
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
66
66
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -238,9 +238,9 @@ export declare const actionWrapTextInContainer: {
|
|
|
238
238
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
239
239
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
240
240
|
isBindingEnabled: boolean;
|
|
241
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
241
242
|
bindingPreference: "enabled" | "disabled";
|
|
242
243
|
isMidpointSnappingEnabled: boolean;
|
|
243
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
244
244
|
suggestedBinding: {
|
|
245
245
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
246
246
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -49,9 +49,9 @@ export declare const actionZoomIn: {
|
|
|
49
49
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
50
50
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
51
51
|
isBindingEnabled: boolean;
|
|
52
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
52
53
|
bindingPreference: "enabled" | "disabled";
|
|
53
54
|
isMidpointSnappingEnabled: boolean;
|
|
54
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
55
55
|
suggestedBinding: {
|
|
56
56
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
57
57
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -233,9 +233,9 @@ export declare const actionZoomOut: {
|
|
|
233
233
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
234
234
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
235
235
|
isBindingEnabled: boolean;
|
|
236
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
236
237
|
bindingPreference: "enabled" | "disabled";
|
|
237
238
|
isMidpointSnappingEnabled: boolean;
|
|
238
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
239
239
|
suggestedBinding: {
|
|
240
240
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
241
241
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -417,9 +417,9 @@ export declare const actionResetZoom: {
|
|
|
417
417
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
418
418
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
419
419
|
isBindingEnabled: boolean;
|
|
420
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
420
421
|
bindingPreference: "enabled" | "disabled";
|
|
421
422
|
isMidpointSnappingEnabled: boolean;
|
|
422
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
423
423
|
suggestedBinding: {
|
|
424
424
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
425
425
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -602,9 +602,9 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
602
602
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
603
603
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
604
604
|
isBindingEnabled: boolean;
|
|
605
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
605
606
|
bindingPreference: "enabled" | "disabled";
|
|
606
607
|
isMidpointSnappingEnabled: boolean;
|
|
607
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
608
608
|
suggestedBinding: {
|
|
609
609
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
610
610
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -783,9 +783,9 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
783
783
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
784
784
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
785
785
|
isBindingEnabled: boolean;
|
|
786
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
786
787
|
bindingPreference: "enabled" | "disabled";
|
|
787
788
|
isMidpointSnappingEnabled: boolean;
|
|
788
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
789
789
|
suggestedBinding: {
|
|
790
790
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
791
791
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -961,9 +961,9 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
961
961
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
962
962
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
963
963
|
isBindingEnabled: boolean;
|
|
964
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
964
965
|
bindingPreference: "enabled" | "disabled";
|
|
965
966
|
isMidpointSnappingEnabled: boolean;
|
|
966
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
967
967
|
suggestedBinding: {
|
|
968
968
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
969
969
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1143,9 +1143,9 @@ export declare const actionZoomToFitSelection: {
|
|
|
1143
1143
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1144
1144
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1145
1145
|
isBindingEnabled: boolean;
|
|
1146
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1146
1147
|
bindingPreference: "enabled" | "disabled";
|
|
1147
1148
|
isMidpointSnappingEnabled: boolean;
|
|
1148
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1149
1149
|
suggestedBinding: {
|
|
1150
1150
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1151
1151
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1326,9 +1326,9 @@ export declare const actionZoomToFit: {
|
|
|
1326
1326
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1327
1327
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1328
1328
|
isBindingEnabled: boolean;
|
|
1329
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1329
1330
|
bindingPreference: "enabled" | "disabled";
|
|
1330
1331
|
isMidpointSnappingEnabled: boolean;
|
|
1331
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1332
1332
|
suggestedBinding: {
|
|
1333
1333
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1334
1334
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1509,9 +1509,9 @@ export declare const actionToggleEraserTool: {
|
|
|
1509
1509
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1510
1510
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1511
1511
|
isBindingEnabled: boolean;
|
|
1512
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1512
1513
|
bindingPreference: "enabled" | "disabled";
|
|
1513
1514
|
isMidpointSnappingEnabled: boolean;
|
|
1514
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1515
1515
|
suggestedBinding: {
|
|
1516
1516
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1517
1517
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1683,9 +1683,9 @@ export declare const actionToggleLassoTool: {
|
|
|
1683
1683
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1684
1684
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1685
1685
|
isBindingEnabled: boolean;
|
|
1686
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1686
1687
|
bindingPreference: "enabled" | "disabled";
|
|
1687
1688
|
isMidpointSnappingEnabled: boolean;
|
|
1688
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1689
1689
|
suggestedBinding: {
|
|
1690
1690
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1691
1691
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1856,9 +1856,9 @@ export declare const actionToggleHandTool: {
|
|
|
1856
1856
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1857
1857
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1858
1858
|
isBindingEnabled: boolean;
|
|
1859
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1859
1860
|
bindingPreference: "enabled" | "disabled";
|
|
1860
1861
|
isMidpointSnappingEnabled: boolean;
|
|
1861
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1862
1862
|
suggestedBinding: {
|
|
1863
1863
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1864
1864
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -39,9 +39,9 @@ export declare const actionPaste: {
|
|
|
39
39
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
40
40
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
isBindingEnabled: boolean;
|
|
42
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
42
43
|
bindingPreference: "enabled" | "disabled";
|
|
43
44
|
isMidpointSnappingEnabled: boolean;
|
|
44
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
45
45
|
suggestedBinding: {
|
|
46
46
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
47
47
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -257,9 +257,9 @@ export declare const actionCopyAsPng: {
|
|
|
257
257
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
258
258
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
259
259
|
isBindingEnabled: boolean;
|
|
260
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
260
261
|
bindingPreference: "enabled" | "disabled";
|
|
261
262
|
isMidpointSnappingEnabled: boolean;
|
|
262
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
263
263
|
suggestedBinding: {
|
|
264
264
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
265
265
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -40,9 +40,9 @@ export declare const actionToggleCropEditor: {
|
|
|
40
40
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
41
41
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
42
42
|
isBindingEnabled: boolean;
|
|
43
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
43
44
|
bindingPreference: "enabled" | "disabled";
|
|
44
45
|
isMidpointSnappingEnabled: boolean;
|
|
45
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
46
46
|
suggestedBinding: {
|
|
47
47
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
48
48
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -41,9 +41,9 @@ export declare const actionDeleteSelected: {
|
|
|
41
41
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
42
42
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
43
|
isBindingEnabled: boolean;
|
|
44
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
44
45
|
bindingPreference: "enabled" | "disabled";
|
|
45
46
|
isMidpointSnappingEnabled: boolean;
|
|
46
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
47
47
|
suggestedBinding: {
|
|
48
48
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
49
49
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -242,9 +242,9 @@ export declare const actionDeleteSelected: {
|
|
|
242
242
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
243
243
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
244
244
|
isBindingEnabled: boolean;
|
|
245
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
245
246
|
bindingPreference: "enabled" | "disabled";
|
|
246
247
|
isMidpointSnappingEnabled: boolean;
|
|
247
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
248
248
|
suggestedBinding: {
|
|
249
249
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
250
250
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -416,9 +416,9 @@ export declare const actionDeleteSelected: {
|
|
|
416
416
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
417
417
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
418
418
|
isBindingEnabled: boolean;
|
|
419
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
419
420
|
bindingPreference: "enabled" | "disabled";
|
|
420
421
|
isMidpointSnappingEnabled: boolean;
|
|
421
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
422
422
|
suggestedBinding: {
|
|
423
423
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
424
424
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import type { AppClassProperties, AppState } from "../types";
|
|
2
|
+
export declare const actionDeselect: {
|
|
3
|
+
name: "deselect";
|
|
4
|
+
label: string;
|
|
5
|
+
trackEvent: false;
|
|
6
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
7
|
+
appState: {
|
|
8
|
+
activeEmbeddable: null;
|
|
9
|
+
activeTool: {
|
|
10
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
11
|
+
locked: boolean;
|
|
12
|
+
fromSelection: boolean;
|
|
13
|
+
} & import("../types").ActiveTool;
|
|
14
|
+
selectedLinearElement: null;
|
|
15
|
+
selectionElement: null;
|
|
16
|
+
showHyperlinkPopup: false;
|
|
17
|
+
suggestedBinding: null;
|
|
18
|
+
frameToHighlight: null;
|
|
19
|
+
editingGroupId: AppState["editingGroupId"];
|
|
20
|
+
selectedElementIds: AppState["selectedElementIds"];
|
|
21
|
+
selectedGroupIds: AppState["selectedGroupIds"];
|
|
22
|
+
contextMenu: {
|
|
23
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
24
|
+
top: number;
|
|
25
|
+
left: number;
|
|
26
|
+
} | null;
|
|
27
|
+
showWelcomeScreen: boolean;
|
|
28
|
+
isLoading: boolean;
|
|
29
|
+
myocSimplifiedMode: boolean;
|
|
30
|
+
dontResizeLimitMBs: number;
|
|
31
|
+
hideMainMenus: boolean;
|
|
32
|
+
wheelZoomsOnDefault?: boolean;
|
|
33
|
+
arrangeConfiguration: {
|
|
34
|
+
algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
|
|
35
|
+
gap: number;
|
|
36
|
+
};
|
|
37
|
+
normaliseConfiguration: {
|
|
38
|
+
mode: import("../types").NormaliseMode;
|
|
39
|
+
metric: import("../types").NormaliseMetric;
|
|
40
|
+
};
|
|
41
|
+
errorMessage: React.ReactNode;
|
|
42
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
43
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
44
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
45
|
+
isBindingEnabled: boolean;
|
|
46
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
47
|
+
bindingPreference: "enabled" | "disabled";
|
|
48
|
+
isMidpointSnappingEnabled: boolean;
|
|
49
|
+
frameRendering: {
|
|
50
|
+
enabled: boolean;
|
|
51
|
+
name: boolean;
|
|
52
|
+
outline: boolean;
|
|
53
|
+
clip: boolean;
|
|
54
|
+
};
|
|
55
|
+
editingFrame: string | null;
|
|
56
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
57
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
58
|
+
preferredSelectionTool: {
|
|
59
|
+
type: "selection" | "lasso";
|
|
60
|
+
initialized: boolean;
|
|
61
|
+
};
|
|
62
|
+
penMode: boolean;
|
|
63
|
+
penDetected: boolean;
|
|
64
|
+
exportBackground: boolean;
|
|
65
|
+
exportEmbedScene: boolean;
|
|
66
|
+
exportWithDarkMode: boolean;
|
|
67
|
+
exportScale: number;
|
|
68
|
+
currentItemStrokeColor: string;
|
|
69
|
+
currentItemBackgroundColor: string;
|
|
70
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
71
|
+
currentItemStrokeWidth: number;
|
|
72
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
73
|
+
currentItemRoughness: number;
|
|
74
|
+
currentItemOpacity: number;
|
|
75
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
76
|
+
currentItemFontSize: number;
|
|
77
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
78
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
79
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
80
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
81
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
82
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
83
|
+
viewBackgroundColor: string;
|
|
84
|
+
scrollX: number;
|
|
85
|
+
scrollY: number;
|
|
86
|
+
cursorButton: "up" | "down";
|
|
87
|
+
scrolledOutside: boolean;
|
|
88
|
+
name: string | null;
|
|
89
|
+
isResizing: boolean;
|
|
90
|
+
isRotating: boolean;
|
|
91
|
+
zoom: import("../types").Zoom;
|
|
92
|
+
openMenu: "canvas" | null;
|
|
93
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
94
|
+
openSidebar: {
|
|
95
|
+
name: import("../types").SidebarName;
|
|
96
|
+
tab?: import("../types").SidebarTabName;
|
|
97
|
+
} | null;
|
|
98
|
+
openDialog: null | {
|
|
99
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
100
|
+
} | {
|
|
101
|
+
name: "commandPalette";
|
|
102
|
+
} | {
|
|
103
|
+
name: "settings";
|
|
104
|
+
} | {
|
|
105
|
+
name: "elementLinkSelector";
|
|
106
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
107
|
+
} | {
|
|
108
|
+
name: "charts";
|
|
109
|
+
data: import("../charts").Spreadsheet;
|
|
110
|
+
rawText: string;
|
|
111
|
+
};
|
|
112
|
+
defaultSidebarDockedPreference: boolean;
|
|
113
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
114
|
+
hoveredElementIds: Readonly<{
|
|
115
|
+
[id: string]: true;
|
|
116
|
+
}>;
|
|
117
|
+
previousSelectedElementIds: {
|
|
118
|
+
[id: string]: true;
|
|
119
|
+
};
|
|
120
|
+
selectedElementsAreBeingDragged: boolean;
|
|
121
|
+
shouldCacheIgnoreZoom: boolean;
|
|
122
|
+
toast: {
|
|
123
|
+
message: React.ReactNode;
|
|
124
|
+
closable?: boolean;
|
|
125
|
+
duration?: number;
|
|
126
|
+
} | null;
|
|
127
|
+
zenModeEnabled: boolean;
|
|
128
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
129
|
+
gridSize: number;
|
|
130
|
+
gridStep: number;
|
|
131
|
+
gridModeEnabled: boolean;
|
|
132
|
+
viewModeEnabled: boolean;
|
|
133
|
+
width: number;
|
|
134
|
+
height: number;
|
|
135
|
+
offsetTop: number;
|
|
136
|
+
offsetLeft: number;
|
|
137
|
+
fileHandle: FileSystemFileHandle | null;
|
|
138
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
139
|
+
stats: {
|
|
140
|
+
open: boolean;
|
|
141
|
+
panels: number;
|
|
142
|
+
};
|
|
143
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
144
|
+
originSnapOffset: {
|
|
145
|
+
x: number;
|
|
146
|
+
y: number;
|
|
147
|
+
} | null;
|
|
148
|
+
objectsSnapModeEnabled: boolean;
|
|
149
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
150
|
+
followedBy: Set<import("../types").SocketId>;
|
|
151
|
+
isCropping: boolean;
|
|
152
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
153
|
+
searchMatches: Readonly<{
|
|
154
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
155
|
+
matches: readonly import("../types").SearchMatch[];
|
|
156
|
+
}> | null;
|
|
157
|
+
activeLockedId: string | null;
|
|
158
|
+
lockedMultiSelections: {
|
|
159
|
+
[groupId: string]: true;
|
|
160
|
+
};
|
|
161
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
162
|
+
};
|
|
163
|
+
captureUpdate: "IMMEDIATELY";
|
|
164
|
+
};
|
|
165
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, _: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: AppClassProperties) => boolean;
|
|
166
|
+
} & {
|
|
167
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, _: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
168
|
+
};
|
|
@@ -69,9 +69,9 @@ export declare const actionLinkToElement: {
|
|
|
69
69
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
70
70
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
71
71
|
isBindingEnabled: boolean;
|
|
72
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
72
73
|
bindingPreference: "enabled" | "disabled";
|
|
73
74
|
isMidpointSnappingEnabled: boolean;
|
|
74
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
75
75
|
suggestedBinding: {
|
|
76
76
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
77
77
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -51,9 +51,9 @@ export declare const actionToggleElementLock: {
|
|
|
51
51
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
52
52
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
53
53
|
isBindingEnabled: boolean;
|
|
54
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
54
55
|
bindingPreference: "enabled" | "disabled";
|
|
55
56
|
isMidpointSnappingEnabled: boolean;
|
|
56
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
57
57
|
suggestedBinding: {
|
|
58
58
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
59
59
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -230,9 +230,9 @@ export declare const actionUnlockAllElements: {
|
|
|
230
230
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
231
231
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
232
232
|
isBindingEnabled: boolean;
|
|
233
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
233
234
|
bindingPreference: "enabled" | "disabled";
|
|
234
235
|
isMidpointSnappingEnabled: boolean;
|
|
235
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
236
236
|
suggestedBinding: {
|
|
237
237
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
238
238
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -42,9 +42,9 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
42
42
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
43
43
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
44
44
|
isBindingEnabled: boolean;
|
|
45
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
45
46
|
bindingPreference: "enabled" | "disabled";
|
|
46
47
|
isMidpointSnappingEnabled: boolean;
|
|
47
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
48
48
|
suggestedBinding: {
|
|
49
49
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
50
50
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -183,8 +183,8 @@ export declare const actionLoadScene: {
|
|
|
183
183
|
};
|
|
184
184
|
errorMessage: React.ReactNode;
|
|
185
185
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
186
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
186
187
|
bindingPreference: "enabled" | "disabled";
|
|
187
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
188
188
|
editingFrame: string | null;
|
|
189
189
|
preferredSelectionTool: {
|
|
190
190
|
type: "selection" | "lasso";
|
|
@@ -277,9 +277,9 @@ export declare const actionLoadScene: {
|
|
|
277
277
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
278
278
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
279
279
|
isBindingEnabled: boolean;
|
|
280
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
280
281
|
bindingPreference: "enabled" | "disabled";
|
|
281
282
|
isMidpointSnappingEnabled: boolean;
|
|
282
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
283
283
|
suggestedBinding: {
|
|
284
284
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
285
285
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -39,9 +39,9 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
39
39
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
40
40
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
isBindingEnabled: boolean;
|
|
42
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
42
43
|
bindingPreference: "enabled" | "disabled";
|
|
43
44
|
isMidpointSnappingEnabled: boolean;
|
|
44
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
45
45
|
suggestedBinding: {
|
|
46
46
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
47
47
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -223,9 +223,9 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
223
223
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
224
224
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
225
225
|
isBindingEnabled: boolean;
|
|
226
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
226
227
|
bindingPreference: "enabled" | "disabled";
|
|
227
228
|
isMidpointSnappingEnabled: boolean;
|
|
228
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
229
229
|
suggestedBinding: {
|
|
230
230
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
231
231
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -411,9 +411,9 @@ export declare const actionupdateFrameRendering: {
|
|
|
411
411
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
412
412
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
413
413
|
isBindingEnabled: boolean;
|
|
414
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
414
415
|
bindingPreference: "enabled" | "disabled";
|
|
415
416
|
isMidpointSnappingEnabled: boolean;
|
|
416
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
417
417
|
suggestedBinding: {
|
|
418
418
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
419
419
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -592,9 +592,9 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
592
592
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
593
593
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
594
594
|
isBindingEnabled: boolean;
|
|
595
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
595
596
|
bindingPreference: "enabled" | "disabled";
|
|
596
597
|
isMidpointSnappingEnabled: boolean;
|
|
597
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
598
598
|
suggestedBinding: {
|
|
599
599
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
600
600
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -45,9 +45,9 @@ export declare const actionGroup: {
|
|
|
45
45
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
46
46
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
47
47
|
isBindingEnabled: boolean;
|
|
48
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
48
49
|
bindingPreference: "enabled" | "disabled";
|
|
49
50
|
isMidpointSnappingEnabled: boolean;
|
|
50
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
51
51
|
suggestedBinding: {
|
|
52
52
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
53
53
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -228,9 +228,9 @@ export declare const actionUngroup: {
|
|
|
228
228
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
229
229
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
230
230
|
isBindingEnabled: boolean;
|
|
231
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
231
232
|
bindingPreference: "enabled" | "disabled";
|
|
232
233
|
isMidpointSnappingEnabled: boolean;
|
|
233
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
234
234
|
suggestedBinding: {
|
|
235
235
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
236
236
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -72,9 +72,9 @@ export declare const actionToggleLinearEditor: {
|
|
|
72
72
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
73
73
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
74
74
|
isBindingEnabled: boolean;
|
|
75
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
75
76
|
bindingPreference: "enabled" | "disabled";
|
|
76
77
|
isMidpointSnappingEnabled: boolean;
|
|
77
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
78
78
|
suggestedBinding: {
|
|
79
79
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
80
80
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|