@excalidraw/math 0.18.0-b1c6bfc → 0.18.0-b2b2815
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.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/duplicate.d.ts +1 -0
- package/dist/types/element/src/frame.d.ts +6 -5
- package/dist/types/element/src/typeChecks.d.ts +1 -0
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +0 -3
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +0 -12
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +0 -3
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionExport.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionFrame.d.ts +0 -4
- package/dist/types/excalidraw/actions/actionGroup.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionLink.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionProperties.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +0 -1
- package/dist/types/excalidraw/components/App.d.ts +9 -0
- 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/shapes.d.ts +7 -0
- package/dist/types/excalidraw/data/blob.d.ts +0 -2
- package/dist/types/excalidraw/data/json.d.ts +0 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +425 -19
- package/dist/types/excalidraw/types.d.ts +5 -2
- package/dist/types/fractional-indexing/src/index.d.ts +29 -0
- package/dist/types/math/src/constants.d.ts +0 -1
- package/package.json +2 -2
|
@@ -115,7 +115,6 @@ export declare const actionClearCanvas: {
|
|
|
115
115
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
116
116
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
117
117
|
bindingPreference: "enabled" | "disabled";
|
|
118
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
119
118
|
editingFrame: string | null;
|
|
120
119
|
preferredSelectionTool: {
|
|
121
120
|
type: "selection" | "lasso";
|
|
@@ -210,7 +209,6 @@ export declare const actionZoomIn: {
|
|
|
210
209
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
211
210
|
bindingPreference: "enabled" | "disabled";
|
|
212
211
|
isMidpointSnappingEnabled: boolean;
|
|
213
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
214
212
|
suggestedBinding: {
|
|
215
213
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
216
214
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -386,7 +384,6 @@ export declare const actionZoomOut: {
|
|
|
386
384
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
387
385
|
bindingPreference: "enabled" | "disabled";
|
|
388
386
|
isMidpointSnappingEnabled: boolean;
|
|
389
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
390
387
|
suggestedBinding: {
|
|
391
388
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
392
389
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -562,7 +559,6 @@ export declare const actionResetZoom: {
|
|
|
562
559
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
563
560
|
bindingPreference: "enabled" | "disabled";
|
|
564
561
|
isMidpointSnappingEnabled: boolean;
|
|
565
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
566
562
|
suggestedBinding: {
|
|
567
563
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
568
564
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -739,7 +735,6 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
739
735
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
740
736
|
bindingPreference: "enabled" | "disabled";
|
|
741
737
|
isMidpointSnappingEnabled: boolean;
|
|
742
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
743
738
|
suggestedBinding: {
|
|
744
739
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
745
740
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -912,7 +907,6 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
912
907
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
913
908
|
bindingPreference: "enabled" | "disabled";
|
|
914
909
|
isMidpointSnappingEnabled: boolean;
|
|
915
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
916
910
|
suggestedBinding: {
|
|
917
911
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
918
912
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1082,7 +1076,6 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1082
1076
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1083
1077
|
bindingPreference: "enabled" | "disabled";
|
|
1084
1078
|
isMidpointSnappingEnabled: boolean;
|
|
1085
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1086
1079
|
suggestedBinding: {
|
|
1087
1080
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1088
1081
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1256,7 +1249,6 @@ export declare const actionZoomToFitSelection: {
|
|
|
1256
1249
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1257
1250
|
bindingPreference: "enabled" | "disabled";
|
|
1258
1251
|
isMidpointSnappingEnabled: boolean;
|
|
1259
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1260
1252
|
suggestedBinding: {
|
|
1261
1253
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1262
1254
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1431,7 +1423,6 @@ export declare const actionZoomToFit: {
|
|
|
1431
1423
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1432
1424
|
bindingPreference: "enabled" | "disabled";
|
|
1433
1425
|
isMidpointSnappingEnabled: boolean;
|
|
1434
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1435
1426
|
suggestedBinding: {
|
|
1436
1427
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1437
1428
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1606,7 +1597,6 @@ export declare const actionToggleEraserTool: {
|
|
|
1606
1597
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1607
1598
|
bindingPreference: "enabled" | "disabled";
|
|
1608
1599
|
isMidpointSnappingEnabled: boolean;
|
|
1609
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1610
1600
|
suggestedBinding: {
|
|
1611
1601
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1612
1602
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1772,7 +1762,6 @@ export declare const actionToggleLassoTool: {
|
|
|
1772
1762
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1773
1763
|
bindingPreference: "enabled" | "disabled";
|
|
1774
1764
|
isMidpointSnappingEnabled: boolean;
|
|
1775
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1776
1765
|
suggestedBinding: {
|
|
1777
1766
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1778
1767
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1937,7 +1926,6 @@ export declare const actionToggleHandTool: {
|
|
|
1937
1926
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1938
1927
|
bindingPreference: "enabled" | "disabled";
|
|
1939
1928
|
isMidpointSnappingEnabled: boolean;
|
|
1940
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1941
1929
|
suggestedBinding: {
|
|
1942
1930
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1943
1931
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -30,7 +30,6 @@ export declare const actionPaste: {
|
|
|
30
30
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
31
31
|
bindingPreference: "enabled" | "disabled";
|
|
32
32
|
isMidpointSnappingEnabled: boolean;
|
|
33
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
33
|
suggestedBinding: {
|
|
35
34
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
36
35
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -240,7 +239,6 @@ export declare const actionCopyAsPng: {
|
|
|
240
239
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
241
240
|
bindingPreference: "enabled" | "disabled";
|
|
242
241
|
isMidpointSnappingEnabled: boolean;
|
|
243
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
244
242
|
suggestedBinding: {
|
|
245
243
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
246
244
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -31,7 +31,6 @@ export declare const actionToggleCropEditor: {
|
|
|
31
31
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
32
32
|
bindingPreference: "enabled" | "disabled";
|
|
33
33
|
isMidpointSnappingEnabled: boolean;
|
|
34
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
35
34
|
suggestedBinding: {
|
|
36
35
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
37
36
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -32,7 +32,6 @@ export declare const actionDeleteSelected: {
|
|
|
32
32
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
33
33
|
bindingPreference: "enabled" | "disabled";
|
|
34
34
|
isMidpointSnappingEnabled: boolean;
|
|
35
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
36
35
|
suggestedBinding: {
|
|
37
36
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
38
37
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -225,7 +224,6 @@ export declare const actionDeleteSelected: {
|
|
|
225
224
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
226
225
|
bindingPreference: "enabled" | "disabled";
|
|
227
226
|
isMidpointSnappingEnabled: boolean;
|
|
228
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
229
227
|
suggestedBinding: {
|
|
230
228
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
231
229
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -391,7 +389,6 @@ export declare const actionDeleteSelected: {
|
|
|
391
389
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
392
390
|
bindingPreference: "enabled" | "disabled";
|
|
393
391
|
isMidpointSnappingEnabled: boolean;
|
|
394
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
395
392
|
suggestedBinding: {
|
|
396
393
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
397
394
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -15,6 +15,7 @@ export declare const actionDeselect: {
|
|
|
15
15
|
selectionElement: null;
|
|
16
16
|
showHyperlinkPopup: false;
|
|
17
17
|
suggestedBinding: null;
|
|
18
|
+
frameToHighlight: null;
|
|
18
19
|
editingGroupId: AppState["editingGroupId"];
|
|
19
20
|
selectedElementIds: AppState["selectedElementIds"];
|
|
20
21
|
selectedGroupIds: AppState["selectedGroupIds"];
|
|
@@ -33,8 +34,6 @@ export declare const actionDeselect: {
|
|
|
33
34
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
34
35
|
bindingPreference: "enabled" | "disabled";
|
|
35
36
|
isMidpointSnappingEnabled: boolean;
|
|
36
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
37
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
38
37
|
frameRendering: {
|
|
39
38
|
enabled: boolean;
|
|
40
39
|
name: boolean;
|
|
@@ -60,7 +60,6 @@ export declare const actionLinkToElement: {
|
|
|
60
60
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
61
61
|
bindingPreference: "enabled" | "disabled";
|
|
62
62
|
isMidpointSnappingEnabled: boolean;
|
|
63
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
64
63
|
suggestedBinding: {
|
|
65
64
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
66
65
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -42,7 +42,6 @@ export declare const actionToggleElementLock: {
|
|
|
42
42
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
43
43
|
bindingPreference: "enabled" | "disabled";
|
|
44
44
|
isMidpointSnappingEnabled: boolean;
|
|
45
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
46
45
|
suggestedBinding: {
|
|
47
46
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
48
47
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -213,7 +212,6 @@ export declare const actionUnlockAllElements: {
|
|
|
213
212
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
214
213
|
bindingPreference: "enabled" | "disabled";
|
|
215
214
|
isMidpointSnappingEnabled: boolean;
|
|
216
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
217
215
|
suggestedBinding: {
|
|
218
216
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
219
217
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -33,7 +33,6 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
33
33
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
34
34
|
bindingPreference: "enabled" | "disabled";
|
|
35
35
|
isMidpointSnappingEnabled: boolean;
|
|
36
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
37
36
|
suggestedBinding: {
|
|
38
37
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
39
38
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -171,7 +171,6 @@ export declare const actionLoadScene: {
|
|
|
171
171
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
172
172
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
173
173
|
bindingPreference: "enabled" | "disabled";
|
|
174
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
175
174
|
editingFrame: string | null;
|
|
176
175
|
preferredSelectionTool: {
|
|
177
176
|
type: "selection" | "lasso";
|
|
@@ -260,7 +259,6 @@ export declare const actionLoadScene: {
|
|
|
260
259
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
261
260
|
bindingPreference: "enabled" | "disabled";
|
|
262
261
|
isMidpointSnappingEnabled: boolean;
|
|
263
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
264
262
|
suggestedBinding: {
|
|
265
263
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
266
264
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -30,7 +30,6 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
30
30
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
31
31
|
bindingPreference: "enabled" | "disabled";
|
|
32
32
|
isMidpointSnappingEnabled: boolean;
|
|
33
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
33
|
suggestedBinding: {
|
|
35
34
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
36
35
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -206,7 +205,6 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
206
205
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
207
206
|
bindingPreference: "enabled" | "disabled";
|
|
208
207
|
isMidpointSnappingEnabled: boolean;
|
|
209
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
210
208
|
suggestedBinding: {
|
|
211
209
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
212
210
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -386,7 +384,6 @@ export declare const actionupdateFrameRendering: {
|
|
|
386
384
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
387
385
|
bindingPreference: "enabled" | "disabled";
|
|
388
386
|
isMidpointSnappingEnabled: boolean;
|
|
389
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
390
387
|
suggestedBinding: {
|
|
391
388
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
392
389
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -559,7 +556,6 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
559
556
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
560
557
|
bindingPreference: "enabled" | "disabled";
|
|
561
558
|
isMidpointSnappingEnabled: boolean;
|
|
562
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
563
559
|
suggestedBinding: {
|
|
564
560
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
565
561
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -36,7 +36,6 @@ export declare const actionGroup: {
|
|
|
36
36
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
37
37
|
bindingPreference: "enabled" | "disabled";
|
|
38
38
|
isMidpointSnappingEnabled: boolean;
|
|
39
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
40
39
|
suggestedBinding: {
|
|
41
40
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
42
41
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -211,7 +210,6 @@ export declare const actionUngroup: {
|
|
|
211
210
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
212
211
|
bindingPreference: "enabled" | "disabled";
|
|
213
212
|
isMidpointSnappingEnabled: boolean;
|
|
214
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
215
213
|
suggestedBinding: {
|
|
216
214
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
217
215
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -63,7 +63,6 @@ export declare const actionToggleLinearEditor: {
|
|
|
63
63
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
64
64
|
bindingPreference: "enabled" | "disabled";
|
|
65
65
|
isMidpointSnappingEnabled: boolean;
|
|
66
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
67
66
|
suggestedBinding: {
|
|
68
67
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
69
68
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -27,7 +27,6 @@ export declare const actionLink: {
|
|
|
27
27
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
28
28
|
bindingPreference: "enabled" | "disabled";
|
|
29
29
|
isMidpointSnappingEnabled: boolean;
|
|
30
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
31
30
|
suggestedBinding: {
|
|
32
31
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
33
32
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -34,7 +34,6 @@ export declare const actionShortcuts: {
|
|
|
34
34
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
35
35
|
bindingPreference: "enabled" | "disabled";
|
|
36
36
|
isMidpointSnappingEnabled: boolean;
|
|
37
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
38
37
|
suggestedBinding: {
|
|
39
38
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
40
39
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -56,7 +56,6 @@ export declare const actionDecreaseFontSize: {
|
|
|
56
56
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
57
57
|
bindingPreference: "enabled" | "disabled";
|
|
58
58
|
isMidpointSnappingEnabled: boolean;
|
|
59
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
60
59
|
suggestedBinding: {
|
|
61
60
|
element: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement>;
|
|
62
61
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -227,7 +226,6 @@ export declare const actionIncreaseFontSize: {
|
|
|
227
226
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
228
227
|
bindingPreference: "enabled" | "disabled";
|
|
229
228
|
isMidpointSnappingEnabled: boolean;
|
|
230
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
231
229
|
suggestedBinding: {
|
|
232
230
|
element: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement>;
|
|
233
231
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -34,7 +34,6 @@ export declare const actionSelectAll: {
|
|
|
34
34
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
35
35
|
bindingPreference: "enabled" | "disabled";
|
|
36
36
|
isMidpointSnappingEnabled: boolean;
|
|
37
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
38
37
|
suggestedBinding: {
|
|
39
38
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
40
39
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -32,7 +32,6 @@ export declare const actionCopyStyles: {
|
|
|
32
32
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
33
33
|
bindingPreference: "enabled" | "disabled";
|
|
34
34
|
isMidpointSnappingEnabled: boolean;
|
|
35
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
36
35
|
suggestedBinding: {
|
|
37
36
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
38
37
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -28,7 +28,6 @@ export declare const actionToggleArrowBinding: {
|
|
|
28
28
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
29
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
30
30
|
isMidpointSnappingEnabled: boolean;
|
|
31
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
31
|
suggestedBinding: {
|
|
33
32
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
34
33
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -33,7 +33,6 @@ export declare const actionToggleGridMode: {
|
|
|
33
33
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
34
34
|
bindingPreference: "enabled" | "disabled";
|
|
35
35
|
isMidpointSnappingEnabled: boolean;
|
|
36
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
37
36
|
suggestedBinding: {
|
|
38
37
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
39
38
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -28,7 +28,6 @@ export declare const actionToggleMidpointSnapping: {
|
|
|
28
28
|
isBindingEnabled: boolean;
|
|
29
29
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
30
30
|
bindingPreference: "enabled" | "disabled";
|
|
31
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
31
|
suggestedBinding: {
|
|
33
32
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
34
33
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -31,7 +31,6 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
31
31
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
32
32
|
bindingPreference: "enabled" | "disabled";
|
|
33
33
|
isMidpointSnappingEnabled: boolean;
|
|
34
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
35
34
|
suggestedBinding: {
|
|
36
35
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
37
36
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -37,7 +37,6 @@ export declare const actionToggleSearchMenu: {
|
|
|
37
37
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
38
38
|
bindingPreference: "enabled" | "disabled";
|
|
39
39
|
isMidpointSnappingEnabled: boolean;
|
|
40
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
41
40
|
suggestedBinding: {
|
|
42
41
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
43
42
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -33,7 +33,6 @@ export declare const actionToggleStats: {
|
|
|
33
33
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
34
34
|
bindingPreference: "enabled" | "disabled";
|
|
35
35
|
isMidpointSnappingEnabled: boolean;
|
|
36
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
37
36
|
suggestedBinding: {
|
|
38
37
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
39
38
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -30,7 +30,6 @@ export declare const actionToggleViewMode: {
|
|
|
30
30
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
31
31
|
bindingPreference: "enabled" | "disabled";
|
|
32
32
|
isMidpointSnappingEnabled: boolean;
|
|
33
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
33
|
suggestedBinding: {
|
|
35
34
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
36
35
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -30,7 +30,6 @@ export declare const actionToggleZenMode: {
|
|
|
30
30
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
31
31
|
bindingPreference: "enabled" | "disabled";
|
|
32
32
|
isMidpointSnappingEnabled: boolean;
|
|
33
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
33
|
suggestedBinding: {
|
|
35
34
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
36
35
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -361,6 +361,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
361
361
|
} | "cursor" | "center";
|
|
362
362
|
retainSeed?: boolean;
|
|
363
363
|
fitToContent?: boolean;
|
|
364
|
+
preserveFrameChildrenOrder?: boolean;
|
|
364
365
|
}) => void;
|
|
365
366
|
private addElementsFromMixedContentPaste;
|
|
366
367
|
private addTextFromPaste;
|
|
@@ -494,7 +495,15 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
494
495
|
private handleCanvasClick;
|
|
495
496
|
private getElementLinkAtPosition;
|
|
496
497
|
private handleElementLinkClick;
|
|
498
|
+
/**
|
|
499
|
+
* finds candidate frame under cursor (when dragging frame children/elements
|
|
500
|
+
* inside frames)
|
|
501
|
+
*/
|
|
497
502
|
private getTopLayerFrameAtSceneCoords;
|
|
503
|
+
private updateFrameToHighlight;
|
|
504
|
+
private maybeUpdateFrameToHighlightOnPointerMove;
|
|
505
|
+
private insertNewElements;
|
|
506
|
+
private insertNewElement;
|
|
498
507
|
private handleCanvasPointerMove;
|
|
499
508
|
private handleEraser;
|
|
500
509
|
private handleTouchMove;
|
|
@@ -11,7 +11,7 @@ type InteractiveCanvasProps = {
|
|
|
11
11
|
visibleElements: readonly NonDeletedExcalidrawElement[];
|
|
12
12
|
selectedElements: readonly NonDeletedExcalidrawElement[];
|
|
13
13
|
allElementsMap: NonDeletedSceneElementsMap;
|
|
14
|
-
|
|
14
|
+
canvasNonce: string;
|
|
15
15
|
selectionNonce: number | undefined;
|
|
16
16
|
scale: number;
|
|
17
17
|
appState: InteractiveCanvasAppState;
|
|
@@ -4,6 +4,7 @@ import type { AppState } from "../../types";
|
|
|
4
4
|
import type { RoughCanvas } from "roughjs/bin/canvas";
|
|
5
5
|
interface NewElementCanvasProps {
|
|
6
6
|
appState: AppState;
|
|
7
|
+
newElement: NonNullable<AppState["newElement"]>;
|
|
7
8
|
elementsMap: RenderableElementsMap;
|
|
8
9
|
allElementsMap: NonDeletedSceneElementsMap;
|
|
9
10
|
scale: number;
|
|
@@ -9,7 +9,7 @@ type StaticCanvasProps = {
|
|
|
9
9
|
elementsMap: RenderableElementsMap;
|
|
10
10
|
allElementsMap: NonDeletedSceneElementsMap;
|
|
11
11
|
visibleElements: readonly NonDeletedExcalidrawElement[];
|
|
12
|
-
|
|
12
|
+
canvasNonce: string;
|
|
13
13
|
selectionNonce: number | undefined;
|
|
14
14
|
scale: number;
|
|
15
15
|
appState: StaticCanvasAppState;
|
|
@@ -169,6 +169,13 @@ export declare const getToolbarTools: (app: AppClassProperties) => readonly [{
|
|
|
169
169
|
readonly fillable: false;
|
|
170
170
|
readonly toolbar: false;
|
|
171
171
|
}] | readonly [{
|
|
172
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
173
|
+
readonly value: "hand";
|
|
174
|
+
readonly key: "h";
|
|
175
|
+
readonly numericKey: null;
|
|
176
|
+
readonly fillable: false;
|
|
177
|
+
readonly toolbar: true;
|
|
178
|
+
}, {
|
|
172
179
|
readonly value: "lasso";
|
|
173
180
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
174
181
|
readonly key: "v";
|
|
@@ -109,7 +109,6 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
109
109
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
110
110
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
111
111
|
bindingPreference: "enabled" | "disabled";
|
|
112
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
113
112
|
editingFrame: string | null;
|
|
114
113
|
preferredSelectionTool: {
|
|
115
114
|
type: "selection" | "lasso";
|
|
@@ -275,7 +274,6 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
275
274
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
276
275
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
277
276
|
bindingPreference: "enabled" | "disabled";
|
|
278
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
279
277
|
editingFrame: string | null;
|
|
280
278
|
preferredSelectionTool: {
|
|
281
279
|
type: "selection" | "lasso";
|
|
@@ -107,7 +107,6 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
|
|
|
107
107
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
108
108
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
109
109
|
bindingPreference: "enabled" | "disabled";
|
|
110
|
-
startBoundElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
111
110
|
editingFrame: string | null;
|
|
112
111
|
preferredSelectionTool: {
|
|
113
112
|
type: "selection" | "lasso";
|