@zsviczian/excalidraw 0.18.0-40 → 0.18.0-42
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/excalidraw.development.js +138 -61
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +0 -2
- package/dist/styles.development.css +522 -205
- package/dist/styles.production.css +18 -16
- package/package.json +1 -1
- package/types/common/src/constants.d.ts +5 -1
- package/types/common/src/utils.d.ts +0 -1
- package/types/element/src/transformHandles.d.ts +1 -1
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +15 -3
- package/types/excalidraw/actions/actionBoundText.d.ts +10 -2
- package/types/excalidraw/actions/actionCanvas.d.ts +75 -15
- package/types/excalidraw/actions/actionClipboard.d.ts +30 -6
- package/types/excalidraw/actions/actionCropEditor.d.ts +5 -1
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +15 -3
- package/types/excalidraw/actions/actionElementLink.d.ts +5 -1
- package/types/excalidraw/actions/actionElementLock.d.ts +10 -2
- package/types/excalidraw/actions/actionEmbeddable.d.ts +5 -1
- package/types/excalidraw/actions/actionExport.d.ts +45 -9
- package/types/excalidraw/actions/actionFinalize.d.ts +15 -3
- package/types/excalidraw/actions/actionFrame.d.ts +20 -4
- package/types/excalidraw/actions/actionGroup.d.ts +10 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +5 -1
- package/types/excalidraw/actions/actionLink.d.ts +5 -1
- package/types/excalidraw/actions/actionMenu.d.ts +7 -449
- package/types/excalidraw/actions/actionNavigate.d.ts +10 -2
- package/types/excalidraw/actions/actionProperties.d.ts +81 -17
- package/types/excalidraw/actions/actionSelectAll.d.ts +5 -1
- package/types/excalidraw/actions/actionStyles.d.ts +5 -1
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +5 -1
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -1
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +5 -1
- package/types/excalidraw/actions/actionToggleStats.d.ts +5 -1
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +5 -1
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -1
- package/types/excalidraw/actions/actionTrayMenu.d.ts +227 -0
- package/types/excalidraw/actions/index.d.ts +2 -1
- package/types/excalidraw/actions/types.d.ts +1 -1
- package/types/excalidraw/appState.d.ts +4 -1
- package/types/excalidraw/components/Actions.d.ts +9 -2
- package/types/excalidraw/components/App.d.ts +0 -1
- package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
- package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
- package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
- package/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
- package/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/types/excalidraw/components/MobileMenu.d.ts +3 -5
- package/types/excalidraw/components/MobileToolBar.d.ts +10 -0
- package/types/excalidraw/components/Popover.d.ts +2 -1
- package/types/excalidraw/components/Section.d.ts +1 -0
- package/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/types/excalidraw/components/TrayMenu.d.ts +25 -0
- package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
- package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
- package/types/excalidraw/components/icons.d.ts +0 -1
- package/types/excalidraw/obsidianUtils.d.ts +3 -2
- package/types/excalidraw/shortcut.d.ts +1 -0
- package/types/excalidraw/types.d.ts +7 -2
package/package.json
CHANGED
|
@@ -90,6 +90,7 @@ export declare const CLASSES: {
|
|
|
90
90
|
SIDEBAR: string;
|
|
91
91
|
SHAPE_ACTIONS_MENU: string;
|
|
92
92
|
SHAPE_ACTIONS_MOBILE_MENU: string;
|
|
93
|
+
SHAPE_ACTIONS_TRAY_MENU: string;
|
|
93
94
|
MOBILE_TOOLBAR: string;
|
|
94
95
|
ZOOM_ACTIONS: string;
|
|
95
96
|
SEARCH_MENU_INPUT_WRAPPER: string;
|
|
@@ -248,7 +249,7 @@ export declare const MQ_MAX_HEIGHT_LANDSCAPE = 500;
|
|
|
248
249
|
export declare const MQ_MIN_TABLET: number;
|
|
249
250
|
export declare const MQ_MAX_TABLET = 1400;
|
|
250
251
|
export declare const MQ_MIN_WIDTH_DESKTOP = 1440;
|
|
251
|
-
export declare const MQ_RIGHT_SIDEBAR_MIN_WIDTH =
|
|
252
|
+
export declare const MQ_RIGHT_SIDEBAR_MIN_WIDTH = 800;
|
|
252
253
|
export declare const MAX_DECIMALS_FOR_SVG_EXPORT = 2;
|
|
253
254
|
export declare const EXPORT_SCALES: number[];
|
|
254
255
|
export declare const DEFAULT_EXPORT_PADDING = 10;
|
|
@@ -368,3 +369,6 @@ export declare enum UserIdleState {
|
|
|
368
369
|
*/
|
|
369
370
|
export declare const LINE_POLYGON_POINT_MERGE_DISTANCE = 20;
|
|
370
371
|
export declare const DOUBLE_TAP_POSITION_THRESHOLD = 35;
|
|
372
|
+
export declare const MOBILE_ACTION_BUTTON_BG: {
|
|
373
|
+
readonly background: "var(--mobile-action-button-bg)";
|
|
374
|
+
};
|
|
@@ -96,7 +96,6 @@ export declare const updateActiveTool: (appState: Pick<AppState, "activeTool">,
|
|
|
96
96
|
export declare const isFullScreen: () => boolean;
|
|
97
97
|
export declare const allowFullScreen: () => Promise<void>;
|
|
98
98
|
export declare const exitFullScreen: () => Promise<void>;
|
|
99
|
-
export declare const getShortcutKey: (shortcut: string) => string;
|
|
100
99
|
export declare const viewportCoordsToSceneCoords: ({ clientX, clientY }: {
|
|
101
100
|
clientX: number;
|
|
102
101
|
clientY: number;
|
|
@@ -52,4 +52,4 @@ export declare const getTransformHandles: (element: ExcalidrawElement, zoom: Zoo
|
|
|
52
52
|
se?: boolean | undefined;
|
|
53
53
|
rotation?: boolean | undefined;
|
|
54
54
|
}) => TransformHandles;
|
|
55
|
-
export declare const
|
|
55
|
+
export declare const hasBoundingBox: (elements: readonly NonDeletedExcalidrawElement[], appState: InteractiveCanvasAppState) => boolean;
|
|
@@ -45,6 +45,10 @@ export declare const actionAddToLibrary: {
|
|
|
45
45
|
locked: boolean;
|
|
46
46
|
fromSelection: boolean;
|
|
47
47
|
} & import("../types").ActiveTool;
|
|
48
|
+
preferredSelectionTool: {
|
|
49
|
+
type: "selection" | "lasso";
|
|
50
|
+
initialized: boolean;
|
|
51
|
+
};
|
|
48
52
|
penMode: boolean;
|
|
49
53
|
penDetected: boolean;
|
|
50
54
|
exportBackground: boolean;
|
|
@@ -211,7 +215,7 @@ export declare const actionAddToLibrary: {
|
|
|
211
215
|
lockedMultiSelections: {
|
|
212
216
|
[groupId: string]: true;
|
|
213
217
|
};
|
|
214
|
-
stylesPanelMode: "compact" | "full";
|
|
218
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
215
219
|
};
|
|
216
220
|
} | {
|
|
217
221
|
captureUpdate: "EVENTUALLY";
|
|
@@ -252,6 +256,10 @@ export declare const actionAddToLibrary: {
|
|
|
252
256
|
locked: boolean;
|
|
253
257
|
fromSelection: boolean;
|
|
254
258
|
} & import("../types").ActiveTool;
|
|
259
|
+
preferredSelectionTool: {
|
|
260
|
+
type: "selection" | "lasso";
|
|
261
|
+
initialized: boolean;
|
|
262
|
+
};
|
|
255
263
|
penMode: boolean;
|
|
256
264
|
penDetected: boolean;
|
|
257
265
|
exportBackground: boolean;
|
|
@@ -423,7 +431,7 @@ export declare const actionAddToLibrary: {
|
|
|
423
431
|
lockedMultiSelections: {
|
|
424
432
|
[groupId: string]: true;
|
|
425
433
|
};
|
|
426
|
-
stylesPanelMode: "compact" | "full";
|
|
434
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
427
435
|
};
|
|
428
436
|
}> | {
|
|
429
437
|
captureUpdate: "EVENTUALLY";
|
|
@@ -464,6 +472,10 @@ export declare const actionAddToLibrary: {
|
|
|
464
472
|
locked: boolean;
|
|
465
473
|
fromSelection: boolean;
|
|
466
474
|
} & import("../types").ActiveTool;
|
|
475
|
+
preferredSelectionTool: {
|
|
476
|
+
type: "selection" | "lasso";
|
|
477
|
+
initialized: boolean;
|
|
478
|
+
};
|
|
467
479
|
penMode: boolean;
|
|
468
480
|
penDetected: boolean;
|
|
469
481
|
exportBackground: boolean;
|
|
@@ -635,7 +647,7 @@ export declare const actionAddToLibrary: {
|
|
|
635
647
|
lockedMultiSelections: {
|
|
636
648
|
[groupId: string]: true;
|
|
637
649
|
};
|
|
638
|
-
stylesPanelMode: "compact" | "full";
|
|
650
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
639
651
|
};
|
|
640
652
|
};
|
|
641
653
|
label: string;
|
|
@@ -65,6 +65,10 @@ export declare const actionBindText: {
|
|
|
65
65
|
locked: boolean;
|
|
66
66
|
fromSelection: boolean;
|
|
67
67
|
} & import("../types").ActiveTool;
|
|
68
|
+
preferredSelectionTool: {
|
|
69
|
+
type: "selection" | "lasso";
|
|
70
|
+
initialized: boolean;
|
|
71
|
+
};
|
|
68
72
|
penMode: boolean;
|
|
69
73
|
penDetected: boolean;
|
|
70
74
|
exportBackground: boolean;
|
|
@@ -233,7 +237,7 @@ export declare const actionBindText: {
|
|
|
233
237
|
lockedMultiSelections: {
|
|
234
238
|
[groupId: string]: true;
|
|
235
239
|
};
|
|
236
|
-
stylesPanelMode: "compact" | "full";
|
|
240
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
237
241
|
};
|
|
238
242
|
captureUpdate: "IMMEDIATELY";
|
|
239
243
|
};
|
|
@@ -289,6 +293,10 @@ export declare const actionWrapTextInContainer: {
|
|
|
289
293
|
locked: boolean;
|
|
290
294
|
fromSelection: boolean;
|
|
291
295
|
} & import("../types").ActiveTool;
|
|
296
|
+
preferredSelectionTool: {
|
|
297
|
+
type: "selection" | "lasso";
|
|
298
|
+
initialized: boolean;
|
|
299
|
+
};
|
|
292
300
|
penMode: boolean;
|
|
293
301
|
penDetected: boolean;
|
|
294
302
|
exportBackground: boolean;
|
|
@@ -457,7 +465,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
457
465
|
lockedMultiSelections: {
|
|
458
466
|
[groupId: string]: true;
|
|
459
467
|
};
|
|
460
|
-
stylesPanelMode: "compact" | "full";
|
|
468
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
461
469
|
};
|
|
462
470
|
captureUpdate: "IMMEDIATELY";
|
|
463
471
|
};
|
|
@@ -167,6 +167,10 @@ export declare const actionClearCanvas: {
|
|
|
167
167
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
168
168
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
169
169
|
editingFrame: string | null;
|
|
170
|
+
preferredSelectionTool: {
|
|
171
|
+
type: "selection" | "lasso";
|
|
172
|
+
initialized: boolean;
|
|
173
|
+
};
|
|
170
174
|
exportWithDarkMode: boolean;
|
|
171
175
|
exportScale: number;
|
|
172
176
|
currentItemStrokeColor: string;
|
|
@@ -229,7 +233,7 @@ export declare const actionClearCanvas: {
|
|
|
229
233
|
lockedMultiSelections: {
|
|
230
234
|
[groupId: string]: true;
|
|
231
235
|
};
|
|
232
|
-
stylesPanelMode: "compact" | "full";
|
|
236
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
233
237
|
};
|
|
234
238
|
captureUpdate: "IMMEDIATELY";
|
|
235
239
|
};
|
|
@@ -288,6 +292,10 @@ export declare const actionZoomIn: {
|
|
|
288
292
|
locked: boolean;
|
|
289
293
|
fromSelection: boolean;
|
|
290
294
|
} & import("../types").ActiveTool;
|
|
295
|
+
preferredSelectionTool: {
|
|
296
|
+
type: "selection" | "lasso";
|
|
297
|
+
initialized: boolean;
|
|
298
|
+
};
|
|
291
299
|
penMode: boolean;
|
|
292
300
|
penDetected: boolean;
|
|
293
301
|
exportBackground: boolean;
|
|
@@ -453,7 +461,7 @@ export declare const actionZoomIn: {
|
|
|
453
461
|
lockedMultiSelections: {
|
|
454
462
|
[groupId: string]: true;
|
|
455
463
|
};
|
|
456
|
-
stylesPanelMode: "compact" | "full";
|
|
464
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
457
465
|
};
|
|
458
466
|
captureUpdate: "EVENTUALLY";
|
|
459
467
|
};
|
|
@@ -514,6 +522,10 @@ export declare const actionZoomOut: {
|
|
|
514
522
|
locked: boolean;
|
|
515
523
|
fromSelection: boolean;
|
|
516
524
|
} & import("../types").ActiveTool;
|
|
525
|
+
preferredSelectionTool: {
|
|
526
|
+
type: "selection" | "lasso";
|
|
527
|
+
initialized: boolean;
|
|
528
|
+
};
|
|
517
529
|
penMode: boolean;
|
|
518
530
|
penDetected: boolean;
|
|
519
531
|
exportBackground: boolean;
|
|
@@ -679,7 +691,7 @@ export declare const actionZoomOut: {
|
|
|
679
691
|
lockedMultiSelections: {
|
|
680
692
|
[groupId: string]: true;
|
|
681
693
|
};
|
|
682
|
-
stylesPanelMode: "compact" | "full";
|
|
694
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
683
695
|
};
|
|
684
696
|
captureUpdate: "EVENTUALLY";
|
|
685
697
|
};
|
|
@@ -740,6 +752,10 @@ export declare const actionResetZoom: {
|
|
|
740
752
|
locked: boolean;
|
|
741
753
|
fromSelection: boolean;
|
|
742
754
|
} & import("../types").ActiveTool;
|
|
755
|
+
preferredSelectionTool: {
|
|
756
|
+
type: "selection" | "lasso";
|
|
757
|
+
initialized: boolean;
|
|
758
|
+
};
|
|
743
759
|
penMode: boolean;
|
|
744
760
|
penDetected: boolean;
|
|
745
761
|
exportBackground: boolean;
|
|
@@ -905,7 +921,7 @@ export declare const actionResetZoom: {
|
|
|
905
921
|
lockedMultiSelections: {
|
|
906
922
|
[groupId: string]: true;
|
|
907
923
|
};
|
|
908
|
-
stylesPanelMode: "compact" | "full";
|
|
924
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
909
925
|
};
|
|
910
926
|
captureUpdate: "EVENTUALLY";
|
|
911
927
|
};
|
|
@@ -972,6 +988,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
972
988
|
locked: boolean;
|
|
973
989
|
fromSelection: boolean;
|
|
974
990
|
} & import("../types").ActiveTool;
|
|
991
|
+
preferredSelectionTool: {
|
|
992
|
+
type: "selection" | "lasso";
|
|
993
|
+
initialized: boolean;
|
|
994
|
+
};
|
|
975
995
|
penMode: boolean;
|
|
976
996
|
penDetected: boolean;
|
|
977
997
|
exportBackground: boolean;
|
|
@@ -1138,7 +1158,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
1138
1158
|
lockedMultiSelections: {
|
|
1139
1159
|
[groupId: string]: true;
|
|
1140
1160
|
};
|
|
1141
|
-
stylesPanelMode: "compact" | "full";
|
|
1161
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
1142
1162
|
};
|
|
1143
1163
|
captureUpdate: "EVENTUALLY";
|
|
1144
1164
|
};
|
|
@@ -1200,6 +1220,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1200
1220
|
locked: boolean;
|
|
1201
1221
|
fromSelection: boolean;
|
|
1202
1222
|
} & import("../types").ActiveTool;
|
|
1223
|
+
preferredSelectionTool: {
|
|
1224
|
+
type: "selection" | "lasso";
|
|
1225
|
+
initialized: boolean;
|
|
1226
|
+
};
|
|
1203
1227
|
penMode: boolean;
|
|
1204
1228
|
penDetected: boolean;
|
|
1205
1229
|
exportBackground: boolean;
|
|
@@ -1366,7 +1390,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1366
1390
|
lockedMultiSelections: {
|
|
1367
1391
|
[groupId: string]: true;
|
|
1368
1392
|
};
|
|
1369
|
-
stylesPanelMode: "compact" | "full";
|
|
1393
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
1370
1394
|
};
|
|
1371
1395
|
captureUpdate: "EVENTUALLY";
|
|
1372
1396
|
};
|
|
@@ -1420,6 +1444,10 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1420
1444
|
locked: boolean;
|
|
1421
1445
|
fromSelection: boolean;
|
|
1422
1446
|
} & import("../types").ActiveTool;
|
|
1447
|
+
preferredSelectionTool: {
|
|
1448
|
+
type: "selection" | "lasso";
|
|
1449
|
+
initialized: boolean;
|
|
1450
|
+
};
|
|
1423
1451
|
penMode: boolean;
|
|
1424
1452
|
penDetected: boolean;
|
|
1425
1453
|
exportBackground: boolean;
|
|
@@ -1586,7 +1614,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1586
1614
|
lockedMultiSelections: {
|
|
1587
1615
|
[groupId: string]: true;
|
|
1588
1616
|
};
|
|
1589
|
-
stylesPanelMode: "compact" | "full";
|
|
1617
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
1590
1618
|
};
|
|
1591
1619
|
captureUpdate: "EVENTUALLY";
|
|
1592
1620
|
};
|
|
@@ -1644,6 +1672,10 @@ export declare const actionZoomToFitSelection: {
|
|
|
1644
1672
|
locked: boolean;
|
|
1645
1673
|
fromSelection: boolean;
|
|
1646
1674
|
} & import("../types").ActiveTool;
|
|
1675
|
+
preferredSelectionTool: {
|
|
1676
|
+
type: "selection" | "lasso";
|
|
1677
|
+
initialized: boolean;
|
|
1678
|
+
};
|
|
1647
1679
|
penMode: boolean;
|
|
1648
1680
|
penDetected: boolean;
|
|
1649
1681
|
exportBackground: boolean;
|
|
@@ -1810,7 +1842,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1810
1842
|
lockedMultiSelections: {
|
|
1811
1843
|
[groupId: string]: true;
|
|
1812
1844
|
};
|
|
1813
|
-
stylesPanelMode: "compact" | "full";
|
|
1845
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
1814
1846
|
};
|
|
1815
1847
|
captureUpdate: "EVENTUALLY";
|
|
1816
1848
|
};
|
|
@@ -1869,6 +1901,10 @@ export declare const actionZoomToFit: {
|
|
|
1869
1901
|
locked: boolean;
|
|
1870
1902
|
fromSelection: boolean;
|
|
1871
1903
|
} & import("../types").ActiveTool;
|
|
1904
|
+
preferredSelectionTool: {
|
|
1905
|
+
type: "selection" | "lasso";
|
|
1906
|
+
initialized: boolean;
|
|
1907
|
+
};
|
|
1872
1908
|
penMode: boolean;
|
|
1873
1909
|
penDetected: boolean;
|
|
1874
1910
|
exportBackground: boolean;
|
|
@@ -2035,7 +2071,7 @@ export declare const actionZoomToFit: {
|
|
|
2035
2071
|
lockedMultiSelections: {
|
|
2036
2072
|
[groupId: string]: true;
|
|
2037
2073
|
};
|
|
2038
|
-
stylesPanelMode: "compact" | "full";
|
|
2074
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
2039
2075
|
};
|
|
2040
2076
|
captureUpdate: "EVENTUALLY";
|
|
2041
2077
|
};
|
|
@@ -2091,6 +2127,10 @@ export declare const actionToggleTheme: {
|
|
|
2091
2127
|
locked: boolean;
|
|
2092
2128
|
fromSelection: boolean;
|
|
2093
2129
|
} & import("../types").ActiveTool;
|
|
2130
|
+
preferredSelectionTool: {
|
|
2131
|
+
type: "selection" | "lasso";
|
|
2132
|
+
initialized: boolean;
|
|
2133
|
+
};
|
|
2094
2134
|
penMode: boolean;
|
|
2095
2135
|
penDetected: boolean;
|
|
2096
2136
|
exportBackground: boolean;
|
|
@@ -2261,7 +2301,7 @@ export declare const actionToggleTheme: {
|
|
|
2261
2301
|
lockedMultiSelections: {
|
|
2262
2302
|
[groupId: string]: true;
|
|
2263
2303
|
};
|
|
2264
|
-
stylesPanelMode: "compact" | "full";
|
|
2304
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
2265
2305
|
};
|
|
2266
2306
|
captureUpdate: "EVENTUALLY";
|
|
2267
2307
|
};
|
|
@@ -2313,6 +2353,10 @@ export declare const actionToggleEraserTool: {
|
|
|
2313
2353
|
editingFrame: string | null;
|
|
2314
2354
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2315
2355
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2356
|
+
preferredSelectionTool: {
|
|
2357
|
+
type: "selection" | "lasso";
|
|
2358
|
+
initialized: boolean;
|
|
2359
|
+
};
|
|
2316
2360
|
penMode: boolean;
|
|
2317
2361
|
penDetected: boolean;
|
|
2318
2362
|
exportBackground: boolean;
|
|
@@ -2478,7 +2522,7 @@ export declare const actionToggleEraserTool: {
|
|
|
2478
2522
|
lockedMultiSelections: {
|
|
2479
2523
|
[groupId: string]: true;
|
|
2480
2524
|
};
|
|
2481
|
-
stylesPanelMode: "compact" | "full";
|
|
2525
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
2482
2526
|
};
|
|
2483
2527
|
captureUpdate: "IMMEDIATELY";
|
|
2484
2528
|
};
|
|
@@ -2531,6 +2575,10 @@ export declare const actionToggleLassoTool: {
|
|
|
2531
2575
|
editingFrame: string | null;
|
|
2532
2576
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2533
2577
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2578
|
+
preferredSelectionTool: {
|
|
2579
|
+
type: "selection" | "lasso";
|
|
2580
|
+
initialized: boolean;
|
|
2581
|
+
};
|
|
2534
2582
|
penMode: boolean;
|
|
2535
2583
|
penDetected: boolean;
|
|
2536
2584
|
exportBackground: boolean;
|
|
@@ -2696,7 +2744,7 @@ export declare const actionToggleLassoTool: {
|
|
|
2696
2744
|
lockedMultiSelections: {
|
|
2697
2745
|
[groupId: string]: true;
|
|
2698
2746
|
};
|
|
2699
|
-
stylesPanelMode: "compact" | "full";
|
|
2747
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
2700
2748
|
};
|
|
2701
2749
|
captureUpdate: "NEVER";
|
|
2702
2750
|
};
|
|
@@ -2748,6 +2796,10 @@ export declare const actionToggleHandTool: {
|
|
|
2748
2796
|
editingFrame: string | null;
|
|
2749
2797
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2750
2798
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2799
|
+
preferredSelectionTool: {
|
|
2800
|
+
type: "selection" | "lasso";
|
|
2801
|
+
initialized: boolean;
|
|
2802
|
+
};
|
|
2751
2803
|
penMode: boolean;
|
|
2752
2804
|
penDetected: boolean;
|
|
2753
2805
|
exportBackground: boolean;
|
|
@@ -2913,7 +2965,7 @@ export declare const actionToggleHandTool: {
|
|
|
2913
2965
|
lockedMultiSelections: {
|
|
2914
2966
|
[groupId: string]: true;
|
|
2915
2967
|
};
|
|
2916
|
-
stylesPanelMode: "compact" | "full";
|
|
2968
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
2917
2969
|
};
|
|
2918
2970
|
captureUpdate: "IMMEDIATELY";
|
|
2919
2971
|
};
|
|
@@ -2964,6 +3016,10 @@ export declare const actionToggleLaserPointer: {
|
|
|
2964
3016
|
editingFrame: string | null;
|
|
2965
3017
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2966
3018
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
3019
|
+
preferredSelectionTool: {
|
|
3020
|
+
type: "selection" | "lasso";
|
|
3021
|
+
initialized: boolean;
|
|
3022
|
+
};
|
|
2967
3023
|
penMode: boolean;
|
|
2968
3024
|
penDetected: boolean;
|
|
2969
3025
|
exportBackground: boolean;
|
|
@@ -3129,7 +3185,7 @@ export declare const actionToggleLaserPointer: {
|
|
|
3129
3185
|
lockedMultiSelections: {
|
|
3130
3186
|
[groupId: string]: true;
|
|
3131
3187
|
};
|
|
3132
|
-
stylesPanelMode: "compact" | "full";
|
|
3188
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
3133
3189
|
};
|
|
3134
3190
|
captureUpdate: "NEVER";
|
|
3135
3191
|
};
|
|
@@ -3182,6 +3238,10 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
3182
3238
|
locked: boolean;
|
|
3183
3239
|
fromSelection: boolean;
|
|
3184
3240
|
} & import("../types").ActiveTool;
|
|
3241
|
+
preferredSelectionTool: {
|
|
3242
|
+
type: "selection" | "lasso";
|
|
3243
|
+
initialized: boolean;
|
|
3244
|
+
};
|
|
3185
3245
|
penMode: boolean;
|
|
3186
3246
|
penDetected: boolean;
|
|
3187
3247
|
exportBackground: boolean;
|
|
@@ -3348,7 +3408,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
3348
3408
|
lockedMultiSelections: {
|
|
3349
3409
|
[groupId: string]: true;
|
|
3350
3410
|
};
|
|
3351
|
-
stylesPanelMode: "compact" | "full";
|
|
3411
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
3352
3412
|
};
|
|
3353
3413
|
commitToHistory: boolean;
|
|
3354
3414
|
};
|
|
@@ -44,6 +44,10 @@ export declare const actionCopy: {
|
|
|
44
44
|
locked: boolean;
|
|
45
45
|
fromSelection: boolean;
|
|
46
46
|
} & import("../types").ActiveTool;
|
|
47
|
+
preferredSelectionTool: {
|
|
48
|
+
type: "selection" | "lasso";
|
|
49
|
+
initialized: boolean;
|
|
50
|
+
};
|
|
47
51
|
penMode: boolean;
|
|
48
52
|
penDetected: boolean;
|
|
49
53
|
exportBackground: boolean;
|
|
@@ -215,7 +219,7 @@ export declare const actionCopy: {
|
|
|
215
219
|
lockedMultiSelections: {
|
|
216
220
|
[groupId: string]: true;
|
|
217
221
|
};
|
|
218
|
-
stylesPanelMode: "compact" | "full";
|
|
222
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
219
223
|
};
|
|
220
224
|
} | {
|
|
221
225
|
captureUpdate: "EVENTUALLY";
|
|
@@ -270,6 +274,10 @@ export declare const actionPaste: {
|
|
|
270
274
|
locked: boolean;
|
|
271
275
|
fromSelection: boolean;
|
|
272
276
|
} & import("../types").ActiveTool;
|
|
277
|
+
preferredSelectionTool: {
|
|
278
|
+
type: "selection" | "lasso";
|
|
279
|
+
initialized: boolean;
|
|
280
|
+
};
|
|
273
281
|
penMode: boolean;
|
|
274
282
|
penDetected: boolean;
|
|
275
283
|
exportBackground: boolean;
|
|
@@ -441,7 +449,7 @@ export declare const actionPaste: {
|
|
|
441
449
|
lockedMultiSelections: {
|
|
442
450
|
[groupId: string]: true;
|
|
443
451
|
};
|
|
444
|
-
stylesPanelMode: "compact" | "full";
|
|
452
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
445
453
|
};
|
|
446
454
|
} | {
|
|
447
455
|
captureUpdate: "EVENTUALLY";
|
|
@@ -498,6 +506,10 @@ export declare const actionCut: {
|
|
|
498
506
|
locked: boolean;
|
|
499
507
|
fromSelection: boolean;
|
|
500
508
|
} & import("../types").ActiveTool;
|
|
509
|
+
preferredSelectionTool: {
|
|
510
|
+
type: "selection" | "lasso";
|
|
511
|
+
initialized: boolean;
|
|
512
|
+
};
|
|
501
513
|
penMode: boolean;
|
|
502
514
|
penDetected: boolean;
|
|
503
515
|
exportBackground: boolean;
|
|
@@ -668,7 +680,7 @@ export declare const actionCut: {
|
|
|
668
680
|
lockedMultiSelections: {
|
|
669
681
|
[groupId: string]: true;
|
|
670
682
|
};
|
|
671
|
-
stylesPanelMode: "compact" | "full";
|
|
683
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
672
684
|
};
|
|
673
685
|
captureUpdate: "IMMEDIATELY";
|
|
674
686
|
} | {
|
|
@@ -743,6 +755,10 @@ export declare const actionCut: {
|
|
|
743
755
|
locked: boolean;
|
|
744
756
|
fromSelection: boolean;
|
|
745
757
|
} & import("../types").ActiveTool;
|
|
758
|
+
preferredSelectionTool: {
|
|
759
|
+
type: "selection" | "lasso";
|
|
760
|
+
initialized: boolean;
|
|
761
|
+
};
|
|
746
762
|
penMode: boolean;
|
|
747
763
|
penDetected: boolean;
|
|
748
764
|
exportBackground: boolean;
|
|
@@ -913,7 +929,7 @@ export declare const actionCut: {
|
|
|
913
929
|
lockedMultiSelections: {
|
|
914
930
|
[groupId: string]: true;
|
|
915
931
|
};
|
|
916
|
-
stylesPanelMode: "compact" | "full";
|
|
932
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
917
933
|
};
|
|
918
934
|
captureUpdate: "IMMEDIATELY";
|
|
919
935
|
} | {
|
|
@@ -960,6 +976,10 @@ export declare const actionCut: {
|
|
|
960
976
|
editingFrame: string | null;
|
|
961
977
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
962
978
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
979
|
+
preferredSelectionTool: {
|
|
980
|
+
type: "selection" | "lasso";
|
|
981
|
+
initialized: boolean;
|
|
982
|
+
};
|
|
963
983
|
penMode: boolean;
|
|
964
984
|
penDetected: boolean;
|
|
965
985
|
exportBackground: boolean;
|
|
@@ -1123,7 +1143,7 @@ export declare const actionCut: {
|
|
|
1123
1143
|
lockedMultiSelections: {
|
|
1124
1144
|
[groupId: string]: true;
|
|
1125
1145
|
};
|
|
1126
|
-
stylesPanelMode: "compact" | "full";
|
|
1146
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
1127
1147
|
};
|
|
1128
1148
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
1129
1149
|
};
|
|
@@ -1209,6 +1229,10 @@ export declare const actionCopyAsPng: {
|
|
|
1209
1229
|
locked: boolean;
|
|
1210
1230
|
fromSelection: boolean;
|
|
1211
1231
|
} & import("../types").ActiveTool;
|
|
1232
|
+
preferredSelectionTool: {
|
|
1233
|
+
type: "selection" | "lasso";
|
|
1234
|
+
initialized: boolean;
|
|
1235
|
+
};
|
|
1212
1236
|
penMode: boolean;
|
|
1213
1237
|
penDetected: boolean;
|
|
1214
1238
|
exportBackground: boolean;
|
|
@@ -1380,7 +1404,7 @@ export declare const actionCopyAsPng: {
|
|
|
1380
1404
|
lockedMultiSelections: {
|
|
1381
1405
|
[groupId: string]: true;
|
|
1382
1406
|
};
|
|
1383
|
-
stylesPanelMode: "compact" | "full";
|
|
1407
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
1384
1408
|
};
|
|
1385
1409
|
captureUpdate: "EVENTUALLY";
|
|
1386
1410
|
}>;
|
|
@@ -47,6 +47,10 @@ export declare const actionToggleCropEditor: {
|
|
|
47
47
|
locked: boolean;
|
|
48
48
|
fromSelection: boolean;
|
|
49
49
|
} & import("../types").ActiveTool;
|
|
50
|
+
preferredSelectionTool: {
|
|
51
|
+
type: "selection" | "lasso";
|
|
52
|
+
initialized: boolean;
|
|
53
|
+
};
|
|
50
54
|
penMode: boolean;
|
|
51
55
|
penDetected: boolean;
|
|
52
56
|
exportBackground: boolean;
|
|
@@ -216,7 +220,7 @@ export declare const actionToggleCropEditor: {
|
|
|
216
220
|
lockedMultiSelections: {
|
|
217
221
|
[groupId: string]: true;
|
|
218
222
|
};
|
|
219
|
-
stylesPanelMode: "compact" | "full";
|
|
223
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
220
224
|
};
|
|
221
225
|
captureUpdate: "IMMEDIATELY";
|
|
222
226
|
};
|
|
@@ -48,6 +48,10 @@ export declare const actionDeleteSelected: {
|
|
|
48
48
|
locked: boolean;
|
|
49
49
|
fromSelection: boolean;
|
|
50
50
|
} & import("../types").ActiveTool;
|
|
51
|
+
preferredSelectionTool: {
|
|
52
|
+
type: "selection" | "lasso";
|
|
53
|
+
initialized: boolean;
|
|
54
|
+
};
|
|
51
55
|
penMode: boolean;
|
|
52
56
|
penDetected: boolean;
|
|
53
57
|
exportBackground: boolean;
|
|
@@ -218,7 +222,7 @@ export declare const actionDeleteSelected: {
|
|
|
218
222
|
lockedMultiSelections: {
|
|
219
223
|
[groupId: string]: true;
|
|
220
224
|
};
|
|
221
|
-
stylesPanelMode: "compact" | "full";
|
|
225
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
222
226
|
};
|
|
223
227
|
captureUpdate: "IMMEDIATELY";
|
|
224
228
|
} | {
|
|
@@ -293,6 +297,10 @@ export declare const actionDeleteSelected: {
|
|
|
293
297
|
locked: boolean;
|
|
294
298
|
fromSelection: boolean;
|
|
295
299
|
} & import("../types").ActiveTool;
|
|
300
|
+
preferredSelectionTool: {
|
|
301
|
+
type: "selection" | "lasso";
|
|
302
|
+
initialized: boolean;
|
|
303
|
+
};
|
|
296
304
|
penMode: boolean;
|
|
297
305
|
penDetected: boolean;
|
|
298
306
|
exportBackground: boolean;
|
|
@@ -463,7 +471,7 @@ export declare const actionDeleteSelected: {
|
|
|
463
471
|
lockedMultiSelections: {
|
|
464
472
|
[groupId: string]: true;
|
|
465
473
|
};
|
|
466
|
-
stylesPanelMode: "compact" | "full";
|
|
474
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
467
475
|
};
|
|
468
476
|
captureUpdate: "IMMEDIATELY";
|
|
469
477
|
} | {
|
|
@@ -510,6 +518,10 @@ export declare const actionDeleteSelected: {
|
|
|
510
518
|
editingFrame: string | null;
|
|
511
519
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
512
520
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
521
|
+
preferredSelectionTool: {
|
|
522
|
+
type: "selection" | "lasso";
|
|
523
|
+
initialized: boolean;
|
|
524
|
+
};
|
|
513
525
|
penMode: boolean;
|
|
514
526
|
penDetected: boolean;
|
|
515
527
|
exportBackground: boolean;
|
|
@@ -673,7 +685,7 @@ export declare const actionDeleteSelected: {
|
|
|
673
685
|
lockedMultiSelections: {
|
|
674
686
|
[groupId: string]: true;
|
|
675
687
|
};
|
|
676
|
-
stylesPanelMode: "compact" | "full";
|
|
688
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
677
689
|
};
|
|
678
690
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
679
691
|
};
|
|
@@ -76,6 +76,10 @@ export declare const actionLinkToElement: {
|
|
|
76
76
|
locked: boolean;
|
|
77
77
|
fromSelection: boolean;
|
|
78
78
|
} & import("../types").ActiveTool;
|
|
79
|
+
preferredSelectionTool: {
|
|
80
|
+
type: "selection" | "lasso";
|
|
81
|
+
initialized: boolean;
|
|
82
|
+
};
|
|
79
83
|
penMode: boolean;
|
|
80
84
|
penDetected: boolean;
|
|
81
85
|
exportBackground: boolean;
|
|
@@ -236,7 +240,7 @@ export declare const actionLinkToElement: {
|
|
|
236
240
|
lockedMultiSelections: {
|
|
237
241
|
[groupId: string]: true;
|
|
238
242
|
};
|
|
239
|
-
stylesPanelMode: "compact" | "full";
|
|
243
|
+
stylesPanelMode: "compact" | "full" | "mobile" | "tray";
|
|
240
244
|
};
|
|
241
245
|
captureUpdate: "IMMEDIATELY";
|
|
242
246
|
elements?: undefined;
|