@excalidraw/excalidraw 0.18.0-414182f → 0.18.0-4e0441e
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/{chunk-QF5FRM6O.js → chunk-LLUJPE5U.js} +48 -26
- package/dist/dev/chunk-LLUJPE5U.js.map +7 -0
- package/dist/dev/{chunk-WWDIUJ2Q.js → chunk-YMRX7R7U.js} +50 -51
- package/dist/dev/chunk-YMRX7R7U.js.map +7 -0
- package/dist/dev/data/{image-VTYIFRQE.js → image-L23D26XS.js} +2 -2
- package/dist/dev/index.css +989 -592
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +4782 -2938
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-SMAPCEOQ.js → en-YSPYSBUR.js} +4 -2
- package/dist/prod/chunk-HT4FKTIQ.js +4 -0
- package/dist/prod/chunk-RSFMSEP5.js +12 -0
- package/dist/prod/data/{image-YQ6UXXDA.js → image-NWF7UX55.js} +1 -1
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +22 -22
- package/dist/prod/locales/en-SFRQHD7K.js +1 -0
- package/dist/types/common/src/constants.d.ts +11 -1
- package/dist/types/common/src/utils.d.ts +3 -1
- package/dist/types/element/src/renderElement.d.ts +4 -1
- package/dist/types/element/src/transformHandles.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +21 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +14 -4
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +92 -40
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +42 -12
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +21 -6
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +14 -4
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +63 -18
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +14 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +28 -8
- package/dist/types/excalidraw/actions/actionGroup.d.ts +14 -4
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +8 -3
- package/dist/types/excalidraw/actions/actionLink.d.ts +6 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +7 -368
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -4
- package/dist/types/excalidraw/actions/actionProperties.d.ts +122 -38
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +7 -2
- 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 +2 -0
- package/dist/types/excalidraw/components/Actions.d.ts +17 -3
- package/dist/types/excalidraw/components/App.d.ts +1 -2
- 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/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/Popover.d.ts +2 -1
- 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/data/blob.d.ts +2 -2
- 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/shortcut.d.ts +1 -0
- package/dist/types/excalidraw/types.d.ts +10 -3
- package/dist/types/math/src/segment.d.ts +1 -0
- package/package.json +4 -4
- package/dist/dev/chunk-QF5FRM6O.js.map +0 -7
- package/dist/dev/chunk-WWDIUJ2Q.js.map +0 -7
- package/dist/prod/chunk-I4UNSFV6.js +0 -12
- package/dist/prod/chunk-VTWWEYSQ.js +0 -4
- package/dist/prod/locales/en-TYY6KWIJ.js +0 -1
- /package/dist/dev/data/{image-VTYIFRQE.js.map → image-L23D26XS.js.map} +0 -0
- /package/dist/dev/locales/{en-SMAPCEOQ.js.map → en-YSPYSBUR.js.map} +0 -0
|
@@ -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
|
};
|
|
@@ -137,6 +137,10 @@ export declare const actionClearCanvas: {
|
|
|
137
137
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
138
138
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
139
139
|
editingFrame: string | null;
|
|
140
|
+
preferredSelectionTool: {
|
|
141
|
+
type: "selection" | "lasso";
|
|
142
|
+
initialized: boolean;
|
|
143
|
+
};
|
|
140
144
|
exportWithDarkMode: boolean;
|
|
141
145
|
exportScale: number;
|
|
142
146
|
currentItemStrokeColor: string;
|
|
@@ -157,11 +161,10 @@ export declare const actionClearCanvas: {
|
|
|
157
161
|
cursorButton: "up" | "down";
|
|
158
162
|
scrolledOutside: boolean;
|
|
159
163
|
isResizing: boolean;
|
|
160
|
-
openMenu: "canvas" |
|
|
161
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
164
|
+
openMenu: "canvas" | null;
|
|
165
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
162
166
|
openSidebar: {
|
|
163
167
|
name: string;
|
|
164
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
165
168
|
tab?: string | undefined;
|
|
166
169
|
} | null;
|
|
167
170
|
defaultSidebarDockedPreference: boolean;
|
|
@@ -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
|
};
|
|
@@ -248,6 +252,10 @@ export declare const actionZoomIn: {
|
|
|
248
252
|
locked: boolean;
|
|
249
253
|
fromSelection: boolean;
|
|
250
254
|
} & import("../types").ActiveTool;
|
|
255
|
+
preferredSelectionTool: {
|
|
256
|
+
type: "selection" | "lasso";
|
|
257
|
+
initialized: boolean;
|
|
258
|
+
};
|
|
251
259
|
penMode: boolean;
|
|
252
260
|
penDetected: boolean;
|
|
253
261
|
exportBackground: boolean;
|
|
@@ -275,11 +283,10 @@ export declare const actionZoomIn: {
|
|
|
275
283
|
name: string | null;
|
|
276
284
|
isResizing: boolean;
|
|
277
285
|
isRotating: boolean;
|
|
278
|
-
openMenu: "canvas" |
|
|
279
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
286
|
+
openMenu: "canvas" | null;
|
|
287
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
280
288
|
openSidebar: {
|
|
281
289
|
name: string;
|
|
282
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
283
290
|
tab?: string | undefined;
|
|
284
291
|
} | null;
|
|
285
292
|
openDialog: {
|
|
@@ -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
|
};
|
|
@@ -435,6 +443,10 @@ export declare const actionZoomOut: {
|
|
|
435
443
|
locked: boolean;
|
|
436
444
|
fromSelection: boolean;
|
|
437
445
|
} & import("../types").ActiveTool;
|
|
446
|
+
preferredSelectionTool: {
|
|
447
|
+
type: "selection" | "lasso";
|
|
448
|
+
initialized: boolean;
|
|
449
|
+
};
|
|
438
450
|
penMode: boolean;
|
|
439
451
|
penDetected: boolean;
|
|
440
452
|
exportBackground: boolean;
|
|
@@ -462,11 +474,10 @@ export declare const actionZoomOut: {
|
|
|
462
474
|
name: string | null;
|
|
463
475
|
isResizing: boolean;
|
|
464
476
|
isRotating: boolean;
|
|
465
|
-
openMenu: "canvas" |
|
|
466
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
477
|
+
openMenu: "canvas" | null;
|
|
478
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
467
479
|
openSidebar: {
|
|
468
480
|
name: string;
|
|
469
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
470
481
|
tab?: string | undefined;
|
|
471
482
|
} | null;
|
|
472
483
|
openDialog: {
|
|
@@ -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
|
};
|
|
@@ -622,6 +634,10 @@ export declare const actionResetZoom: {
|
|
|
622
634
|
locked: boolean;
|
|
623
635
|
fromSelection: boolean;
|
|
624
636
|
} & import("../types").ActiveTool;
|
|
637
|
+
preferredSelectionTool: {
|
|
638
|
+
type: "selection" | "lasso";
|
|
639
|
+
initialized: boolean;
|
|
640
|
+
};
|
|
625
641
|
penMode: boolean;
|
|
626
642
|
penDetected: boolean;
|
|
627
643
|
exportBackground: boolean;
|
|
@@ -649,11 +665,10 @@ export declare const actionResetZoom: {
|
|
|
649
665
|
name: string | null;
|
|
650
666
|
isResizing: boolean;
|
|
651
667
|
isRotating: boolean;
|
|
652
|
-
openMenu: "canvas" |
|
|
653
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
668
|
+
openMenu: "canvas" | null;
|
|
669
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
654
670
|
openSidebar: {
|
|
655
671
|
name: string;
|
|
656
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
657
672
|
tab?: string | undefined;
|
|
658
673
|
} | null;
|
|
659
674
|
openDialog: {
|
|
@@ -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
|
};
|
|
@@ -815,6 +831,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
815
831
|
locked: boolean;
|
|
816
832
|
fromSelection: boolean;
|
|
817
833
|
} & import("../types").ActiveTool;
|
|
834
|
+
preferredSelectionTool: {
|
|
835
|
+
type: "selection" | "lasso";
|
|
836
|
+
initialized: boolean;
|
|
837
|
+
};
|
|
818
838
|
penMode: boolean;
|
|
819
839
|
penDetected: boolean;
|
|
820
840
|
exportBackground: boolean;
|
|
@@ -842,11 +862,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
842
862
|
name: string | null;
|
|
843
863
|
isResizing: boolean;
|
|
844
864
|
isRotating: boolean;
|
|
845
|
-
openMenu: "canvas" |
|
|
846
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
865
|
+
openMenu: "canvas" | null;
|
|
866
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
847
867
|
openSidebar: {
|
|
848
868
|
name: string;
|
|
849
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
850
869
|
tab?: string | undefined;
|
|
851
870
|
} | null;
|
|
852
871
|
openDialog: {
|
|
@@ -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
|
};
|
|
@@ -1004,6 +1024,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1004
1024
|
locked: boolean;
|
|
1005
1025
|
fromSelection: boolean;
|
|
1006
1026
|
} & import("../types").ActiveTool;
|
|
1027
|
+
preferredSelectionTool: {
|
|
1028
|
+
type: "selection" | "lasso";
|
|
1029
|
+
initialized: boolean;
|
|
1030
|
+
};
|
|
1007
1031
|
penMode: boolean;
|
|
1008
1032
|
penDetected: boolean;
|
|
1009
1033
|
exportBackground: boolean;
|
|
@@ -1031,11 +1055,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1031
1055
|
name: string | null;
|
|
1032
1056
|
isResizing: boolean;
|
|
1033
1057
|
isRotating: boolean;
|
|
1034
|
-
openMenu: "canvas" |
|
|
1035
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1058
|
+
openMenu: "canvas" | null;
|
|
1059
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1036
1060
|
openSidebar: {
|
|
1037
1061
|
name: string;
|
|
1038
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
1039
1062
|
tab?: string | undefined;
|
|
1040
1063
|
} | null;
|
|
1041
1064
|
openDialog: {
|
|
@@ -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
|
};
|
|
@@ -1185,6 +1209,10 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1185
1209
|
locked: boolean;
|
|
1186
1210
|
fromSelection: boolean;
|
|
1187
1211
|
} & import("../types").ActiveTool;
|
|
1212
|
+
preferredSelectionTool: {
|
|
1213
|
+
type: "selection" | "lasso";
|
|
1214
|
+
initialized: boolean;
|
|
1215
|
+
};
|
|
1188
1216
|
penMode: boolean;
|
|
1189
1217
|
penDetected: boolean;
|
|
1190
1218
|
exportBackground: boolean;
|
|
@@ -1212,11 +1240,10 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1212
1240
|
name: string | null;
|
|
1213
1241
|
isResizing: boolean;
|
|
1214
1242
|
isRotating: boolean;
|
|
1215
|
-
openMenu: "canvas" |
|
|
1216
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1243
|
+
openMenu: "canvas" | null;
|
|
1244
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1217
1245
|
openSidebar: {
|
|
1218
1246
|
name: string;
|
|
1219
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
1220
1247
|
tab?: string | undefined;
|
|
1221
1248
|
} | null;
|
|
1222
1249
|
openDialog: {
|
|
@@ -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
|
};
|
|
@@ -1370,6 +1398,10 @@ export declare const actionZoomToFitSelection: {
|
|
|
1370
1398
|
locked: boolean;
|
|
1371
1399
|
fromSelection: boolean;
|
|
1372
1400
|
} & import("../types").ActiveTool;
|
|
1401
|
+
preferredSelectionTool: {
|
|
1402
|
+
type: "selection" | "lasso";
|
|
1403
|
+
initialized: boolean;
|
|
1404
|
+
};
|
|
1373
1405
|
penMode: boolean;
|
|
1374
1406
|
penDetected: boolean;
|
|
1375
1407
|
exportBackground: boolean;
|
|
@@ -1397,11 +1429,10 @@ export declare const actionZoomToFitSelection: {
|
|
|
1397
1429
|
name: string | null;
|
|
1398
1430
|
isResizing: boolean;
|
|
1399
1431
|
isRotating: boolean;
|
|
1400
|
-
openMenu: "canvas" |
|
|
1401
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1432
|
+
openMenu: "canvas" | null;
|
|
1433
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1402
1434
|
openSidebar: {
|
|
1403
1435
|
name: string;
|
|
1404
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
1405
1436
|
tab?: string | undefined;
|
|
1406
1437
|
} | null;
|
|
1407
1438
|
openDialog: {
|
|
@@ -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
|
};
|
|
@@ -1556,6 +1588,10 @@ export declare const actionZoomToFit: {
|
|
|
1556
1588
|
locked: boolean;
|
|
1557
1589
|
fromSelection: boolean;
|
|
1558
1590
|
} & import("../types").ActiveTool;
|
|
1591
|
+
preferredSelectionTool: {
|
|
1592
|
+
type: "selection" | "lasso";
|
|
1593
|
+
initialized: boolean;
|
|
1594
|
+
};
|
|
1559
1595
|
penMode: boolean;
|
|
1560
1596
|
penDetected: boolean;
|
|
1561
1597
|
exportBackground: boolean;
|
|
@@ -1583,11 +1619,10 @@ export declare const actionZoomToFit: {
|
|
|
1583
1619
|
name: string | null;
|
|
1584
1620
|
isResizing: boolean;
|
|
1585
1621
|
isRotating: boolean;
|
|
1586
|
-
openMenu: "canvas" |
|
|
1587
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1622
|
+
openMenu: "canvas" | null;
|
|
1623
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1588
1624
|
openSidebar: {
|
|
1589
1625
|
name: string;
|
|
1590
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
1591
1626
|
tab?: string | undefined;
|
|
1592
1627
|
} | null;
|
|
1593
1628
|
openDialog: {
|
|
@@ -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
|
};
|
|
@@ -1739,6 +1775,10 @@ export declare const actionToggleTheme: {
|
|
|
1739
1775
|
locked: boolean;
|
|
1740
1776
|
fromSelection: boolean;
|
|
1741
1777
|
} & import("../types").ActiveTool;
|
|
1778
|
+
preferredSelectionTool: {
|
|
1779
|
+
type: "selection" | "lasso";
|
|
1780
|
+
initialized: boolean;
|
|
1781
|
+
};
|
|
1742
1782
|
penMode: boolean;
|
|
1743
1783
|
penDetected: boolean;
|
|
1744
1784
|
exportBackground: boolean;
|
|
@@ -1771,11 +1811,10 @@ export declare const actionToggleTheme: {
|
|
|
1771
1811
|
zoom: Readonly<{
|
|
1772
1812
|
value: import("../types").NormalizedZoomValue;
|
|
1773
1813
|
}>;
|
|
1774
|
-
openMenu: "canvas" |
|
|
1775
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1814
|
+
openMenu: "canvas" | null;
|
|
1815
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1776
1816
|
openSidebar: {
|
|
1777
1817
|
name: string;
|
|
1778
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
1779
1818
|
tab?: string | undefined;
|
|
1780
1819
|
} | null;
|
|
1781
1820
|
openDialog: {
|
|
@@ -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
|
};
|
|
@@ -1922,6 +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;
|
|
1965
|
+
preferredSelectionTool: {
|
|
1966
|
+
type: "selection" | "lasso";
|
|
1967
|
+
initialized: boolean;
|
|
1968
|
+
};
|
|
1925
1969
|
penMode: boolean;
|
|
1926
1970
|
penDetected: boolean;
|
|
1927
1971
|
exportBackground: boolean;
|
|
@@ -1954,11 +1998,10 @@ export declare const actionToggleEraserTool: {
|
|
|
1954
1998
|
zoom: Readonly<{
|
|
1955
1999
|
value: import("../types").NormalizedZoomValue;
|
|
1956
2000
|
}>;
|
|
1957
|
-
openMenu: "canvas" |
|
|
1958
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2001
|
+
openMenu: "canvas" | null;
|
|
2002
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1959
2003
|
openSidebar: {
|
|
1960
2004
|
name: string;
|
|
1961
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
1962
2005
|
tab?: string | undefined;
|
|
1963
2006
|
} | null;
|
|
1964
2007
|
openDialog: {
|
|
@@ -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
|
};
|
|
@@ -2101,6 +2145,10 @@ export declare const actionToggleLassoTool: {
|
|
|
2101
2145
|
editingFrame: string | null;
|
|
2102
2146
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2103
2147
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2148
|
+
preferredSelectionTool: {
|
|
2149
|
+
type: "selection" | "lasso";
|
|
2150
|
+
initialized: boolean;
|
|
2151
|
+
};
|
|
2104
2152
|
penMode: boolean;
|
|
2105
2153
|
penDetected: boolean;
|
|
2106
2154
|
exportBackground: boolean;
|
|
@@ -2133,11 +2181,10 @@ 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
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
2141
2188
|
tab?: string | undefined;
|
|
2142
2189
|
} | null;
|
|
2143
2190
|
openDialog: {
|
|
@@ -2230,6 +2277,7 @@ export declare const actionToggleLassoTool: {
|
|
|
2230
2277
|
lockedMultiSelections: {
|
|
2231
2278
|
[groupId: string]: true;
|
|
2232
2279
|
};
|
|
2280
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
2233
2281
|
};
|
|
2234
2282
|
captureUpdate: "NEVER";
|
|
2235
2283
|
};
|
|
@@ -2279,6 +2327,10 @@ export declare const actionToggleHandTool: {
|
|
|
2279
2327
|
editingFrame: string | null;
|
|
2280
2328
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2281
2329
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2330
|
+
preferredSelectionTool: {
|
|
2331
|
+
type: "selection" | "lasso";
|
|
2332
|
+
initialized: boolean;
|
|
2333
|
+
};
|
|
2282
2334
|
penMode: boolean;
|
|
2283
2335
|
penDetected: boolean;
|
|
2284
2336
|
exportBackground: boolean;
|
|
@@ -2311,11 +2363,10 @@ 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
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
2319
2370
|
tab?: string | undefined;
|
|
2320
2371
|
} | null;
|
|
2321
2372
|
openDialog: {
|
|
@@ -2408,6 +2459,7 @@ export declare const actionToggleHandTool: {
|
|
|
2408
2459
|
lockedMultiSelections: {
|
|
2409
2460
|
[groupId: string]: true;
|
|
2410
2461
|
};
|
|
2462
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
2411
2463
|
};
|
|
2412
2464
|
captureUpdate: "IMMEDIATELY";
|
|
2413
2465
|
};
|
|
@@ -43,6 +43,10 @@ export declare const actionCopy: {
|
|
|
43
43
|
locked: boolean;
|
|
44
44
|
fromSelection: boolean;
|
|
45
45
|
} & import("../types").ActiveTool;
|
|
46
|
+
preferredSelectionTool: {
|
|
47
|
+
type: "selection" | "lasso";
|
|
48
|
+
initialized: boolean;
|
|
49
|
+
};
|
|
46
50
|
penMode: boolean;
|
|
47
51
|
penDetected: boolean;
|
|
48
52
|
exportBackground: boolean;
|
|
@@ -75,8 +79,8 @@ export declare const actionCopy: {
|
|
|
75
79
|
zoom: Readonly<{
|
|
76
80
|
value: import("../types").NormalizedZoomValue;
|
|
77
81
|
}>;
|
|
78
|
-
openMenu: "canvas" |
|
|
79
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
82
|
+
openMenu: "canvas" | null;
|
|
83
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
80
84
|
openSidebar: {
|
|
81
85
|
name: string;
|
|
82
86
|
tab?: string | undefined;
|
|
@@ -177,6 +181,7 @@ export declare const actionCopy: {
|
|
|
177
181
|
lockedMultiSelections: {
|
|
178
182
|
[groupId: string]: true;
|
|
179
183
|
};
|
|
184
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
180
185
|
};
|
|
181
186
|
} | {
|
|
182
187
|
captureUpdate: "EVENTUALLY";
|
|
@@ -229,6 +234,10 @@ export declare const actionPaste: {
|
|
|
229
234
|
locked: boolean;
|
|
230
235
|
fromSelection: boolean;
|
|
231
236
|
} & import("../types").ActiveTool;
|
|
237
|
+
preferredSelectionTool: {
|
|
238
|
+
type: "selection" | "lasso";
|
|
239
|
+
initialized: boolean;
|
|
240
|
+
};
|
|
232
241
|
penMode: boolean;
|
|
233
242
|
penDetected: boolean;
|
|
234
243
|
exportBackground: boolean;
|
|
@@ -261,8 +270,8 @@ export declare const actionPaste: {
|
|
|
261
270
|
zoom: Readonly<{
|
|
262
271
|
value: import("../types").NormalizedZoomValue;
|
|
263
272
|
}>;
|
|
264
|
-
openMenu: "canvas" |
|
|
265
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
273
|
+
openMenu: "canvas" | null;
|
|
274
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
266
275
|
openSidebar: {
|
|
267
276
|
name: string;
|
|
268
277
|
tab?: string | undefined;
|
|
@@ -363,6 +372,7 @@ export declare const actionPaste: {
|
|
|
363
372
|
lockedMultiSelections: {
|
|
364
373
|
[groupId: string]: true;
|
|
365
374
|
};
|
|
375
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
366
376
|
};
|
|
367
377
|
} | {
|
|
368
378
|
captureUpdate: "EVENTUALLY";
|
|
@@ -417,6 +427,10 @@ export declare const actionCut: {
|
|
|
417
427
|
locked: boolean;
|
|
418
428
|
fromSelection: boolean;
|
|
419
429
|
} & import("../types").ActiveTool;
|
|
430
|
+
preferredSelectionTool: {
|
|
431
|
+
type: "selection" | "lasso";
|
|
432
|
+
initialized: boolean;
|
|
433
|
+
};
|
|
420
434
|
penMode: boolean;
|
|
421
435
|
penDetected: boolean;
|
|
422
436
|
exportBackground: boolean;
|
|
@@ -449,8 +463,8 @@ export declare const actionCut: {
|
|
|
449
463
|
zoom: Readonly<{
|
|
450
464
|
value: import("../types").NormalizedZoomValue;
|
|
451
465
|
}>;
|
|
452
|
-
openMenu: "canvas" |
|
|
453
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
466
|
+
openMenu: "canvas" | null;
|
|
467
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
454
468
|
openSidebar: {
|
|
455
469
|
name: string;
|
|
456
470
|
tab?: string | undefined;
|
|
@@ -550,6 +564,7 @@ export declare const actionCut: {
|
|
|
550
564
|
lockedMultiSelections: {
|
|
551
565
|
[groupId: string]: true;
|
|
552
566
|
};
|
|
567
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
553
568
|
};
|
|
554
569
|
captureUpdate: "IMMEDIATELY";
|
|
555
570
|
} | {
|
|
@@ -622,6 +637,10 @@ export declare const actionCut: {
|
|
|
622
637
|
locked: boolean;
|
|
623
638
|
fromSelection: boolean;
|
|
624
639
|
} & import("../types").ActiveTool;
|
|
640
|
+
preferredSelectionTool: {
|
|
641
|
+
type: "selection" | "lasso";
|
|
642
|
+
initialized: boolean;
|
|
643
|
+
};
|
|
625
644
|
penMode: boolean;
|
|
626
645
|
penDetected: boolean;
|
|
627
646
|
exportBackground: boolean;
|
|
@@ -654,8 +673,8 @@ export declare const actionCut: {
|
|
|
654
673
|
zoom: Readonly<{
|
|
655
674
|
value: import("../types").NormalizedZoomValue;
|
|
656
675
|
}>;
|
|
657
|
-
openMenu: "canvas" |
|
|
658
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
676
|
+
openMenu: "canvas" | null;
|
|
677
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
659
678
|
openSidebar: {
|
|
660
679
|
name: string;
|
|
661
680
|
tab?: string | undefined;
|
|
@@ -755,6 +774,7 @@ export declare const actionCut: {
|
|
|
755
774
|
lockedMultiSelections: {
|
|
756
775
|
[groupId: string]: true;
|
|
757
776
|
};
|
|
777
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
758
778
|
};
|
|
759
779
|
captureUpdate: "IMMEDIATELY";
|
|
760
780
|
} | {
|
|
@@ -799,6 +819,10 @@ export declare const actionCut: {
|
|
|
799
819
|
editingFrame: string | null;
|
|
800
820
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
801
821
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
822
|
+
preferredSelectionTool: {
|
|
823
|
+
type: "selection" | "lasso";
|
|
824
|
+
initialized: boolean;
|
|
825
|
+
};
|
|
802
826
|
penMode: boolean;
|
|
803
827
|
penDetected: boolean;
|
|
804
828
|
exportBackground: boolean;
|
|
@@ -831,8 +855,8 @@ export declare const actionCut: {
|
|
|
831
855
|
zoom: Readonly<{
|
|
832
856
|
value: import("../types").NormalizedZoomValue;
|
|
833
857
|
}>;
|
|
834
|
-
openMenu: "canvas" |
|
|
835
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
858
|
+
openMenu: "canvas" | null;
|
|
859
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
836
860
|
openSidebar: {
|
|
837
861
|
name: string;
|
|
838
862
|
tab?: string | undefined;
|
|
@@ -925,6 +949,7 @@ export declare const actionCut: {
|
|
|
925
949
|
lockedMultiSelections: {
|
|
926
950
|
[groupId: string]: true;
|
|
927
951
|
};
|
|
952
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
928
953
|
};
|
|
929
954
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
930
955
|
};
|
|
@@ -1008,6 +1033,10 @@ export declare const actionCopyAsPng: {
|
|
|
1008
1033
|
locked: boolean;
|
|
1009
1034
|
fromSelection: boolean;
|
|
1010
1035
|
} & import("../types").ActiveTool;
|
|
1036
|
+
preferredSelectionTool: {
|
|
1037
|
+
type: "selection" | "lasso";
|
|
1038
|
+
initialized: boolean;
|
|
1039
|
+
};
|
|
1011
1040
|
penMode: boolean;
|
|
1012
1041
|
penDetected: boolean;
|
|
1013
1042
|
exportBackground: boolean;
|
|
@@ -1040,8 +1069,8 @@ export declare const actionCopyAsPng: {
|
|
|
1040
1069
|
zoom: Readonly<{
|
|
1041
1070
|
value: import("../types").NormalizedZoomValue;
|
|
1042
1071
|
}>;
|
|
1043
|
-
openMenu: "canvas" |
|
|
1044
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1072
|
+
openMenu: "canvas" | null;
|
|
1073
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1045
1074
|
openSidebar: {
|
|
1046
1075
|
name: string;
|
|
1047
1076
|
tab?: string | undefined;
|
|
@@ -1142,6 +1171,7 @@ export declare const actionCopyAsPng: {
|
|
|
1142
1171
|
lockedMultiSelections: {
|
|
1143
1172
|
[groupId: string]: true;
|
|
1144
1173
|
};
|
|
1174
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1145
1175
|
};
|
|
1146
1176
|
captureUpdate: "EVENTUALLY";
|
|
1147
1177
|
}>;
|
|
@@ -46,6 +46,10 @@ export declare const actionToggleCropEditor: {
|
|
|
46
46
|
locked: boolean;
|
|
47
47
|
fromSelection: boolean;
|
|
48
48
|
} & import("../types").ActiveTool;
|
|
49
|
+
preferredSelectionTool: {
|
|
50
|
+
type: "selection" | "lasso";
|
|
51
|
+
initialized: boolean;
|
|
52
|
+
};
|
|
49
53
|
penMode: boolean;
|
|
50
54
|
penDetected: boolean;
|
|
51
55
|
exportBackground: boolean;
|
|
@@ -78,8 +82,8 @@ export declare const actionToggleCropEditor: {
|
|
|
78
82
|
zoom: Readonly<{
|
|
79
83
|
value: import("../types").NormalizedZoomValue;
|
|
80
84
|
}>;
|
|
81
|
-
openMenu: "canvas" |
|
|
82
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
85
|
+
openMenu: "canvas" | null;
|
|
86
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
83
87
|
openSidebar: {
|
|
84
88
|
name: string;
|
|
85
89
|
tab?: string | undefined;
|
|
@@ -178,6 +182,7 @@ export declare const actionToggleCropEditor: {
|
|
|
178
182
|
lockedMultiSelections: {
|
|
179
183
|
[groupId: string]: true;
|
|
180
184
|
};
|
|
185
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
181
186
|
};
|
|
182
187
|
captureUpdate: "IMMEDIATELY";
|
|
183
188
|
};
|