@excalidraw/element 0.18.0-4e471c107 → 0.18.0-5fffc47
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 +1048 -613
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +14 -14
- package/dist/types/common/src/constants.d.ts +24 -4
- package/dist/types/common/src/utils.d.ts +3 -0
- package/dist/types/element/src/Scene.d.ts +6 -2
- package/dist/types/element/src/align.d.ts +2 -1
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +16 -4
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/groups.d.ts +1 -0
- package/dist/types/element/src/index.d.ts +1 -0
- package/dist/types/element/src/linearElementEditor.d.ts +2 -1
- package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/dist/types/element/src/renderElement.d.ts +4 -1
- package/dist/types/element/src/store.d.ts +6 -1
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +21 -9
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +14 -6
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +94 -41
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +45 -20
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +24 -12
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +14 -6
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionExport.d.ts +63 -27
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +16 -7
- package/dist/types/excalidraw/actions/actionFrame.d.ts +28 -12
- package/dist/types/excalidraw/actions/actionGroup.d.ts +14 -6
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +41 -6
- package/dist/types/excalidraw/actions/actionLink.d.ts +6 -2
- package/dist/types/excalidraw/actions/actionMenu.d.ts +7 -371
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -6
- package/dist/types/excalidraw/actions/actionProperties.d.ts +122 -53
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionStyles.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +7 -3
- package/dist/types/excalidraw/actions/index.d.ts +2 -2
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +5 -1
- package/dist/types/excalidraw/clipboard.d.ts +64 -1
- package/dist/types/excalidraw/components/Actions.d.ts +17 -7
- package/dist/types/excalidraw/components/App.d.ts +10 -8
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -0
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
- package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
- package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TextField.d.ts +1 -0
- package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +5 -0
- package/dist/types/excalidraw/components/shapes.d.ts +129 -1
- package/dist/types/excalidraw/data/blob.d.ts +3 -7
- package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
- package/dist/types/excalidraw/data/restore.d.ts +6 -1
- package/dist/types/excalidraw/data/types.d.ts +4 -1
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/index.d.ts +2 -1
- package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/dist/types/excalidraw/types.d.ts +16 -6
- package/dist/types/math/src/segment.d.ts +1 -0
- package/package.json +3 -3
|
@@ -11,7 +11,7 @@ export declare const actionChangeViewBackgroundColor: {
|
|
|
11
11
|
appState: any;
|
|
12
12
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
13
13
|
};
|
|
14
|
-
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
PanelComponent: ({ elements, appState, updateData, appProps, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
} & {
|
|
16
16
|
keyTest?: undefined;
|
|
17
17
|
};
|
|
@@ -85,7 +85,6 @@ export declare const actionClearCanvas: {
|
|
|
85
85
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
86
86
|
state: "active" | "hover";
|
|
87
87
|
} | null;
|
|
88
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
89
88
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
90
89
|
selectedGroupIds: {
|
|
91
90
|
[groupId: string]: boolean;
|
|
@@ -138,6 +137,10 @@ export declare const actionClearCanvas: {
|
|
|
138
137
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
139
138
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
140
139
|
editingFrame: string | null;
|
|
140
|
+
preferredSelectionTool: {
|
|
141
|
+
type: "selection" | "lasso";
|
|
142
|
+
initialized: boolean;
|
|
143
|
+
};
|
|
141
144
|
exportWithDarkMode: boolean;
|
|
142
145
|
exportScale: number;
|
|
143
146
|
currentItemStrokeColor: string;
|
|
@@ -158,8 +161,8 @@ export declare const actionClearCanvas: {
|
|
|
158
161
|
cursorButton: "up" | "down";
|
|
159
162
|
scrolledOutside: boolean;
|
|
160
163
|
isResizing: boolean;
|
|
161
|
-
openMenu: "canvas" |
|
|
162
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
164
|
+
openMenu: "canvas" | null;
|
|
165
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
163
166
|
openSidebar: {
|
|
164
167
|
name: string;
|
|
165
168
|
tab?: string | undefined;
|
|
@@ -192,6 +195,7 @@ export declare const actionClearCanvas: {
|
|
|
192
195
|
lockedMultiSelections: {
|
|
193
196
|
[groupId: string]: true;
|
|
194
197
|
};
|
|
198
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
195
199
|
};
|
|
196
200
|
captureUpdate: "IMMEDIATELY";
|
|
197
201
|
};
|
|
@@ -243,12 +247,15 @@ export declare const actionZoomIn: {
|
|
|
243
247
|
editingFrame: string | null;
|
|
244
248
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
245
249
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
246
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
247
250
|
activeTool: {
|
|
248
251
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
249
252
|
locked: boolean;
|
|
250
253
|
fromSelection: boolean;
|
|
251
254
|
} & import("../types").ActiveTool;
|
|
255
|
+
preferredSelectionTool: {
|
|
256
|
+
type: "selection" | "lasso";
|
|
257
|
+
initialized: boolean;
|
|
258
|
+
};
|
|
252
259
|
penMode: boolean;
|
|
253
260
|
penDetected: boolean;
|
|
254
261
|
exportBackground: boolean;
|
|
@@ -276,8 +283,8 @@ export declare const actionZoomIn: {
|
|
|
276
283
|
name: string | null;
|
|
277
284
|
isResizing: boolean;
|
|
278
285
|
isRotating: boolean;
|
|
279
|
-
openMenu: "canvas" |
|
|
280
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
286
|
+
openMenu: "canvas" | null;
|
|
287
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
281
288
|
openSidebar: {
|
|
282
289
|
name: string;
|
|
283
290
|
tab?: string | undefined;
|
|
@@ -377,6 +384,7 @@ export declare const actionZoomIn: {
|
|
|
377
384
|
lockedMultiSelections: {
|
|
378
385
|
[groupId: string]: true;
|
|
379
386
|
};
|
|
387
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
380
388
|
};
|
|
381
389
|
captureUpdate: "EVENTUALLY";
|
|
382
390
|
};
|
|
@@ -430,12 +438,15 @@ export declare const actionZoomOut: {
|
|
|
430
438
|
editingFrame: string | null;
|
|
431
439
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
432
440
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
433
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
434
441
|
activeTool: {
|
|
435
442
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
436
443
|
locked: boolean;
|
|
437
444
|
fromSelection: boolean;
|
|
438
445
|
} & import("../types").ActiveTool;
|
|
446
|
+
preferredSelectionTool: {
|
|
447
|
+
type: "selection" | "lasso";
|
|
448
|
+
initialized: boolean;
|
|
449
|
+
};
|
|
439
450
|
penMode: boolean;
|
|
440
451
|
penDetected: boolean;
|
|
441
452
|
exportBackground: boolean;
|
|
@@ -463,8 +474,8 @@ export declare const actionZoomOut: {
|
|
|
463
474
|
name: string | null;
|
|
464
475
|
isResizing: boolean;
|
|
465
476
|
isRotating: boolean;
|
|
466
|
-
openMenu: "canvas" |
|
|
467
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
477
|
+
openMenu: "canvas" | null;
|
|
478
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
468
479
|
openSidebar: {
|
|
469
480
|
name: string;
|
|
470
481
|
tab?: string | undefined;
|
|
@@ -564,6 +575,7 @@ export declare const actionZoomOut: {
|
|
|
564
575
|
lockedMultiSelections: {
|
|
565
576
|
[groupId: string]: true;
|
|
566
577
|
};
|
|
578
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
567
579
|
};
|
|
568
580
|
captureUpdate: "EVENTUALLY";
|
|
569
581
|
};
|
|
@@ -617,12 +629,15 @@ export declare const actionResetZoom: {
|
|
|
617
629
|
editingFrame: string | null;
|
|
618
630
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
619
631
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
620
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
621
632
|
activeTool: {
|
|
622
633
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
623
634
|
locked: boolean;
|
|
624
635
|
fromSelection: boolean;
|
|
625
636
|
} & import("../types").ActiveTool;
|
|
637
|
+
preferredSelectionTool: {
|
|
638
|
+
type: "selection" | "lasso";
|
|
639
|
+
initialized: boolean;
|
|
640
|
+
};
|
|
626
641
|
penMode: boolean;
|
|
627
642
|
penDetected: boolean;
|
|
628
643
|
exportBackground: boolean;
|
|
@@ -650,8 +665,8 @@ export declare const actionResetZoom: {
|
|
|
650
665
|
name: string | null;
|
|
651
666
|
isResizing: boolean;
|
|
652
667
|
isRotating: boolean;
|
|
653
|
-
openMenu: "canvas" |
|
|
654
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
668
|
+
openMenu: "canvas" | null;
|
|
669
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
655
670
|
openSidebar: {
|
|
656
671
|
name: string;
|
|
657
672
|
tab?: string | undefined;
|
|
@@ -751,6 +766,7 @@ export declare const actionResetZoom: {
|
|
|
751
766
|
lockedMultiSelections: {
|
|
752
767
|
[groupId: string]: true;
|
|
753
768
|
};
|
|
769
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
754
770
|
};
|
|
755
771
|
captureUpdate: "EVENTUALLY";
|
|
756
772
|
};
|
|
@@ -810,12 +826,15 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
810
826
|
editingFrame: string | null;
|
|
811
827
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
812
828
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
813
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
814
829
|
activeTool: {
|
|
815
830
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
816
831
|
locked: boolean;
|
|
817
832
|
fromSelection: boolean;
|
|
818
833
|
} & import("../types").ActiveTool;
|
|
834
|
+
preferredSelectionTool: {
|
|
835
|
+
type: "selection" | "lasso";
|
|
836
|
+
initialized: boolean;
|
|
837
|
+
};
|
|
819
838
|
penMode: boolean;
|
|
820
839
|
penDetected: boolean;
|
|
821
840
|
exportBackground: boolean;
|
|
@@ -843,8 +862,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
843
862
|
name: string | null;
|
|
844
863
|
isResizing: boolean;
|
|
845
864
|
isRotating: boolean;
|
|
846
|
-
openMenu: "canvas" |
|
|
847
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
865
|
+
openMenu: "canvas" | null;
|
|
866
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
848
867
|
openSidebar: {
|
|
849
868
|
name: string;
|
|
850
869
|
tab?: string | undefined;
|
|
@@ -945,6 +964,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
945
964
|
lockedMultiSelections: {
|
|
946
965
|
[groupId: string]: true;
|
|
947
966
|
};
|
|
967
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
948
968
|
};
|
|
949
969
|
captureUpdate: "EVENTUALLY";
|
|
950
970
|
};
|
|
@@ -999,12 +1019,15 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
999
1019
|
editingFrame: string | null;
|
|
1000
1020
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1001
1021
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1002
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1003
1022
|
activeTool: {
|
|
1004
1023
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1005
1024
|
locked: boolean;
|
|
1006
1025
|
fromSelection: boolean;
|
|
1007
1026
|
} & import("../types").ActiveTool;
|
|
1027
|
+
preferredSelectionTool: {
|
|
1028
|
+
type: "selection" | "lasso";
|
|
1029
|
+
initialized: boolean;
|
|
1030
|
+
};
|
|
1008
1031
|
penMode: boolean;
|
|
1009
1032
|
penDetected: boolean;
|
|
1010
1033
|
exportBackground: boolean;
|
|
@@ -1032,8 +1055,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1032
1055
|
name: string | null;
|
|
1033
1056
|
isResizing: boolean;
|
|
1034
1057
|
isRotating: boolean;
|
|
1035
|
-
openMenu: "canvas" |
|
|
1036
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1058
|
+
openMenu: "canvas" | null;
|
|
1059
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1037
1060
|
openSidebar: {
|
|
1038
1061
|
name: string;
|
|
1039
1062
|
tab?: string | undefined;
|
|
@@ -1134,6 +1157,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1134
1157
|
lockedMultiSelections: {
|
|
1135
1158
|
[groupId: string]: true;
|
|
1136
1159
|
};
|
|
1160
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1137
1161
|
};
|
|
1138
1162
|
captureUpdate: "EVENTUALLY";
|
|
1139
1163
|
};
|
|
@@ -1180,12 +1204,15 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1180
1204
|
editingFrame: string | null;
|
|
1181
1205
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1182
1206
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1183
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1184
1207
|
activeTool: {
|
|
1185
1208
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1186
1209
|
locked: boolean;
|
|
1187
1210
|
fromSelection: boolean;
|
|
1188
1211
|
} & import("../types").ActiveTool;
|
|
1212
|
+
preferredSelectionTool: {
|
|
1213
|
+
type: "selection" | "lasso";
|
|
1214
|
+
initialized: boolean;
|
|
1215
|
+
};
|
|
1189
1216
|
penMode: boolean;
|
|
1190
1217
|
penDetected: boolean;
|
|
1191
1218
|
exportBackground: boolean;
|
|
@@ -1213,8 +1240,8 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1213
1240
|
name: string | null;
|
|
1214
1241
|
isResizing: boolean;
|
|
1215
1242
|
isRotating: boolean;
|
|
1216
|
-
openMenu: "canvas" |
|
|
1217
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1243
|
+
openMenu: "canvas" | null;
|
|
1244
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1218
1245
|
openSidebar: {
|
|
1219
1246
|
name: string;
|
|
1220
1247
|
tab?: string | undefined;
|
|
@@ -1315,6 +1342,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1315
1342
|
lockedMultiSelections: {
|
|
1316
1343
|
[groupId: string]: true;
|
|
1317
1344
|
};
|
|
1345
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1318
1346
|
};
|
|
1319
1347
|
captureUpdate: "EVENTUALLY";
|
|
1320
1348
|
};
|
|
@@ -1365,12 +1393,15 @@ export declare const actionZoomToFitSelection: {
|
|
|
1365
1393
|
editingFrame: string | null;
|
|
1366
1394
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1367
1395
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1368
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1369
1396
|
activeTool: {
|
|
1370
1397
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1371
1398
|
locked: boolean;
|
|
1372
1399
|
fromSelection: boolean;
|
|
1373
1400
|
} & import("../types").ActiveTool;
|
|
1401
|
+
preferredSelectionTool: {
|
|
1402
|
+
type: "selection" | "lasso";
|
|
1403
|
+
initialized: boolean;
|
|
1404
|
+
};
|
|
1374
1405
|
penMode: boolean;
|
|
1375
1406
|
penDetected: boolean;
|
|
1376
1407
|
exportBackground: boolean;
|
|
@@ -1398,8 +1429,8 @@ export declare const actionZoomToFitSelection: {
|
|
|
1398
1429
|
name: string | null;
|
|
1399
1430
|
isResizing: boolean;
|
|
1400
1431
|
isRotating: boolean;
|
|
1401
|
-
openMenu: "canvas" |
|
|
1402
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1432
|
+
openMenu: "canvas" | null;
|
|
1433
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1403
1434
|
openSidebar: {
|
|
1404
1435
|
name: string;
|
|
1405
1436
|
tab?: string | undefined;
|
|
@@ -1500,6 +1531,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1500
1531
|
lockedMultiSelections: {
|
|
1501
1532
|
[groupId: string]: true;
|
|
1502
1533
|
};
|
|
1534
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1503
1535
|
};
|
|
1504
1536
|
captureUpdate: "EVENTUALLY";
|
|
1505
1537
|
};
|
|
@@ -1551,12 +1583,15 @@ export declare const actionZoomToFit: {
|
|
|
1551
1583
|
editingFrame: string | null;
|
|
1552
1584
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1553
1585
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1554
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1555
1586
|
activeTool: {
|
|
1556
1587
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1557
1588
|
locked: boolean;
|
|
1558
1589
|
fromSelection: boolean;
|
|
1559
1590
|
} & import("../types").ActiveTool;
|
|
1591
|
+
preferredSelectionTool: {
|
|
1592
|
+
type: "selection" | "lasso";
|
|
1593
|
+
initialized: boolean;
|
|
1594
|
+
};
|
|
1560
1595
|
penMode: boolean;
|
|
1561
1596
|
penDetected: boolean;
|
|
1562
1597
|
exportBackground: boolean;
|
|
@@ -1584,8 +1619,8 @@ export declare const actionZoomToFit: {
|
|
|
1584
1619
|
name: string | null;
|
|
1585
1620
|
isResizing: boolean;
|
|
1586
1621
|
isRotating: boolean;
|
|
1587
|
-
openMenu: "canvas" |
|
|
1588
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1622
|
+
openMenu: "canvas" | null;
|
|
1623
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1589
1624
|
openSidebar: {
|
|
1590
1625
|
name: string;
|
|
1591
1626
|
tab?: string | undefined;
|
|
@@ -1686,6 +1721,7 @@ export declare const actionZoomToFit: {
|
|
|
1686
1721
|
lockedMultiSelections: {
|
|
1687
1722
|
[groupId: string]: true;
|
|
1688
1723
|
};
|
|
1724
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1689
1725
|
};
|
|
1690
1726
|
captureUpdate: "EVENTUALLY";
|
|
1691
1727
|
};
|
|
@@ -1734,12 +1770,15 @@ export declare const actionToggleTheme: {
|
|
|
1734
1770
|
editingFrame: string | null;
|
|
1735
1771
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1736
1772
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1737
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1738
1773
|
activeTool: {
|
|
1739
1774
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1740
1775
|
locked: boolean;
|
|
1741
1776
|
fromSelection: boolean;
|
|
1742
1777
|
} & import("../types").ActiveTool;
|
|
1778
|
+
preferredSelectionTool: {
|
|
1779
|
+
type: "selection" | "lasso";
|
|
1780
|
+
initialized: boolean;
|
|
1781
|
+
};
|
|
1743
1782
|
penMode: boolean;
|
|
1744
1783
|
penDetected: boolean;
|
|
1745
1784
|
exportBackground: boolean;
|
|
@@ -1772,8 +1811,8 @@ export declare const actionToggleTheme: {
|
|
|
1772
1811
|
zoom: Readonly<{
|
|
1773
1812
|
value: import("../types").NormalizedZoomValue;
|
|
1774
1813
|
}>;
|
|
1775
|
-
openMenu: "canvas" |
|
|
1776
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1814
|
+
openMenu: "canvas" | null;
|
|
1815
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1777
1816
|
openSidebar: {
|
|
1778
1817
|
name: string;
|
|
1779
1818
|
tab?: string | undefined;
|
|
@@ -1873,6 +1912,7 @@ export declare const actionToggleTheme: {
|
|
|
1873
1912
|
lockedMultiSelections: {
|
|
1874
1913
|
[groupId: string]: true;
|
|
1875
1914
|
};
|
|
1915
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1876
1916
|
};
|
|
1877
1917
|
captureUpdate: "EVENTUALLY";
|
|
1878
1918
|
};
|
|
@@ -1887,7 +1927,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1887
1927
|
trackEvent: {
|
|
1888
1928
|
category: "toolbar";
|
|
1889
1929
|
};
|
|
1890
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState
|
|
1930
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1891
1931
|
appState: {
|
|
1892
1932
|
selectedElementIds: {};
|
|
1893
1933
|
selectedGroupIds: {};
|
|
@@ -1922,7 +1962,10 @@ export declare const actionToggleEraserTool: {
|
|
|
1922
1962
|
editingFrame: string | null;
|
|
1923
1963
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1924
1964
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1925
|
-
|
|
1965
|
+
preferredSelectionTool: {
|
|
1966
|
+
type: "selection" | "lasso";
|
|
1967
|
+
initialized: boolean;
|
|
1968
|
+
};
|
|
1926
1969
|
penMode: boolean;
|
|
1927
1970
|
penDetected: boolean;
|
|
1928
1971
|
exportBackground: boolean;
|
|
@@ -1955,8 +1998,8 @@ export declare const actionToggleEraserTool: {
|
|
|
1955
1998
|
zoom: Readonly<{
|
|
1956
1999
|
value: import("../types").NormalizedZoomValue;
|
|
1957
2000
|
}>;
|
|
1958
|
-
openMenu: "canvas" |
|
|
1959
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2001
|
+
openMenu: "canvas" | null;
|
|
2002
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1960
2003
|
openSidebar: {
|
|
1961
2004
|
name: string;
|
|
1962
2005
|
tab?: string | undefined;
|
|
@@ -2051,6 +2094,7 @@ export declare const actionToggleEraserTool: {
|
|
|
2051
2094
|
lockedMultiSelections: {
|
|
2052
2095
|
[groupId: string]: true;
|
|
2053
2096
|
};
|
|
2097
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
2054
2098
|
};
|
|
2055
2099
|
captureUpdate: "IMMEDIATELY";
|
|
2056
2100
|
};
|
|
@@ -2065,6 +2109,7 @@ export declare const actionToggleLassoTool: {
|
|
|
2065
2109
|
trackEvent: {
|
|
2066
2110
|
category: "toolbar";
|
|
2067
2111
|
};
|
|
2112
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
2068
2113
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
2069
2114
|
appState: {
|
|
2070
2115
|
selectedElementIds: {};
|
|
@@ -2100,7 +2145,10 @@ export declare const actionToggleLassoTool: {
|
|
|
2100
2145
|
editingFrame: string | null;
|
|
2101
2146
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2102
2147
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2103
|
-
|
|
2148
|
+
preferredSelectionTool: {
|
|
2149
|
+
type: "selection" | "lasso";
|
|
2150
|
+
initialized: boolean;
|
|
2151
|
+
};
|
|
2104
2152
|
penMode: boolean;
|
|
2105
2153
|
penDetected: boolean;
|
|
2106
2154
|
exportBackground: boolean;
|
|
@@ -2133,8 +2181,8 @@ export declare const actionToggleLassoTool: {
|
|
|
2133
2181
|
zoom: Readonly<{
|
|
2134
2182
|
value: import("../types").NormalizedZoomValue;
|
|
2135
2183
|
}>;
|
|
2136
|
-
openMenu: "canvas" |
|
|
2137
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2184
|
+
openMenu: "canvas" | null;
|
|
2185
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2138
2186
|
openSidebar: {
|
|
2139
2187
|
name: string;
|
|
2140
2188
|
tab?: string | undefined;
|
|
@@ -2229,6 +2277,7 @@ export declare const actionToggleLassoTool: {
|
|
|
2229
2277
|
lockedMultiSelections: {
|
|
2230
2278
|
[groupId: string]: true;
|
|
2231
2279
|
};
|
|
2280
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
2232
2281
|
};
|
|
2233
2282
|
captureUpdate: "NEVER";
|
|
2234
2283
|
};
|
|
@@ -2278,7 +2327,10 @@ export declare const actionToggleHandTool: {
|
|
|
2278
2327
|
editingFrame: string | null;
|
|
2279
2328
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2280
2329
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2281
|
-
|
|
2330
|
+
preferredSelectionTool: {
|
|
2331
|
+
type: "selection" | "lasso";
|
|
2332
|
+
initialized: boolean;
|
|
2333
|
+
};
|
|
2282
2334
|
penMode: boolean;
|
|
2283
2335
|
penDetected: boolean;
|
|
2284
2336
|
exportBackground: boolean;
|
|
@@ -2311,8 +2363,8 @@ export declare const actionToggleHandTool: {
|
|
|
2311
2363
|
zoom: Readonly<{
|
|
2312
2364
|
value: import("../types").NormalizedZoomValue;
|
|
2313
2365
|
}>;
|
|
2314
|
-
openMenu: "canvas" |
|
|
2315
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2366
|
+
openMenu: "canvas" | null;
|
|
2367
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2316
2368
|
openSidebar: {
|
|
2317
2369
|
name: string;
|
|
2318
2370
|
tab?: string | undefined;
|
|
@@ -2407,6 +2459,7 @@ export declare const actionToggleHandTool: {
|
|
|
2407
2459
|
lockedMultiSelections: {
|
|
2408
2460
|
[groupId: string]: true;
|
|
2409
2461
|
};
|
|
2462
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
2410
2463
|
};
|
|
2411
2464
|
captureUpdate: "IMMEDIATELY";
|
|
2412
2465
|
};
|