@excalidraw/excalidraw 0.18.0-835eb8d → 0.18.0-8608d7b
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-N4PQJPAH.js → chunk-YMRX7R7U.js} +8 -3
- package/dist/dev/chunk-YMRX7R7U.js.map +7 -0
- package/dist/dev/data/{image-RT6RLBUE.js → image-L23D26XS.js} +2 -2
- package/dist/dev/index.css +272 -84
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +2930 -2161
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/chunk-HT4FKTIQ.js +4 -0
- package/dist/prod/data/{image-HPGPBQV2.js → image-NWF7UX55.js} +1 -1
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +20 -20
- package/dist/types/common/src/constants.d.ts +3 -0
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +15 -3
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +10 -2
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +65 -13
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +30 -6
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +15 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +10 -2
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionExport.d.ts +45 -9
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -2
- package/dist/types/excalidraw/actions/actionFrame.d.ts +20 -4
- package/dist/types/excalidraw/actions/actionGroup.d.ts +10 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionLink.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +15 -3
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +10 -2
- package/dist/types/excalidraw/actions/actionProperties.d.ts +76 -16
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -1
- package/dist/types/excalidraw/appState.d.ts +4 -1
- package/dist/types/excalidraw/components/Actions.d.ts +9 -2
- package/dist/types/excalidraw/components/App.d.ts +8 -3
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -1
- 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/ExcalidrawLogo.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +2 -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/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- 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 +0 -1
- package/dist/types/excalidraw/types.d.ts +7 -2
- package/package.json +4 -4
- package/dist/dev/chunk-N4PQJPAH.js.map +0 -7
- package/dist/prod/chunk-SVEJI6WL.js +0 -4
- /package/dist/dev/data/{image-RT6RLBUE.js.map → image-L23D26XS.js.map} +0 -0
|
@@ -72,6 +72,10 @@ export declare const actionChangeFillStyle: {
|
|
|
72
72
|
locked: boolean;
|
|
73
73
|
fromSelection: boolean;
|
|
74
74
|
} & import("../types").ActiveTool;
|
|
75
|
+
preferredSelectionTool: {
|
|
76
|
+
type: "selection" | "lasso";
|
|
77
|
+
initialized: boolean;
|
|
78
|
+
};
|
|
75
79
|
penMode: boolean;
|
|
76
80
|
penDetected: boolean;
|
|
77
81
|
exportBackground: boolean;
|
|
@@ -205,7 +209,7 @@ export declare const actionChangeFillStyle: {
|
|
|
205
209
|
lockedMultiSelections: {
|
|
206
210
|
[groupId: string]: true;
|
|
207
211
|
};
|
|
208
|
-
stylesPanelMode: "compact" | "full";
|
|
212
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
209
213
|
};
|
|
210
214
|
captureUpdate: "IMMEDIATELY";
|
|
211
215
|
};
|
|
@@ -255,6 +259,10 @@ export declare const actionChangeStrokeWidth: {
|
|
|
255
259
|
locked: boolean;
|
|
256
260
|
fromSelection: boolean;
|
|
257
261
|
} & import("../types").ActiveTool;
|
|
262
|
+
preferredSelectionTool: {
|
|
263
|
+
type: "selection" | "lasso";
|
|
264
|
+
initialized: boolean;
|
|
265
|
+
};
|
|
258
266
|
penMode: boolean;
|
|
259
267
|
penDetected: boolean;
|
|
260
268
|
exportBackground: boolean;
|
|
@@ -388,7 +396,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
388
396
|
lockedMultiSelections: {
|
|
389
397
|
[groupId: string]: true;
|
|
390
398
|
};
|
|
391
|
-
stylesPanelMode: "compact" | "full";
|
|
399
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
392
400
|
};
|
|
393
401
|
captureUpdate: "IMMEDIATELY";
|
|
394
402
|
};
|
|
@@ -438,6 +446,10 @@ export declare const actionChangeSloppiness: {
|
|
|
438
446
|
locked: boolean;
|
|
439
447
|
fromSelection: boolean;
|
|
440
448
|
} & import("../types").ActiveTool;
|
|
449
|
+
preferredSelectionTool: {
|
|
450
|
+
type: "selection" | "lasso";
|
|
451
|
+
initialized: boolean;
|
|
452
|
+
};
|
|
441
453
|
penMode: boolean;
|
|
442
454
|
penDetected: boolean;
|
|
443
455
|
exportBackground: boolean;
|
|
@@ -571,7 +583,7 @@ export declare const actionChangeSloppiness: {
|
|
|
571
583
|
lockedMultiSelections: {
|
|
572
584
|
[groupId: string]: true;
|
|
573
585
|
};
|
|
574
|
-
stylesPanelMode: "compact" | "full";
|
|
586
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
575
587
|
};
|
|
576
588
|
captureUpdate: "IMMEDIATELY";
|
|
577
589
|
};
|
|
@@ -621,6 +633,10 @@ export declare const actionChangeStrokeStyle: {
|
|
|
621
633
|
locked: boolean;
|
|
622
634
|
fromSelection: boolean;
|
|
623
635
|
} & import("../types").ActiveTool;
|
|
636
|
+
preferredSelectionTool: {
|
|
637
|
+
type: "selection" | "lasso";
|
|
638
|
+
initialized: boolean;
|
|
639
|
+
};
|
|
624
640
|
penMode: boolean;
|
|
625
641
|
penDetected: boolean;
|
|
626
642
|
exportBackground: boolean;
|
|
@@ -754,7 +770,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
754
770
|
lockedMultiSelections: {
|
|
755
771
|
[groupId: string]: true;
|
|
756
772
|
};
|
|
757
|
-
stylesPanelMode: "compact" | "full";
|
|
773
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
758
774
|
};
|
|
759
775
|
captureUpdate: "IMMEDIATELY";
|
|
760
776
|
};
|
|
@@ -804,6 +820,10 @@ export declare const actionChangeOpacity: {
|
|
|
804
820
|
locked: boolean;
|
|
805
821
|
fromSelection: boolean;
|
|
806
822
|
} & import("../types").ActiveTool;
|
|
823
|
+
preferredSelectionTool: {
|
|
824
|
+
type: "selection" | "lasso";
|
|
825
|
+
initialized: boolean;
|
|
826
|
+
};
|
|
807
827
|
penMode: boolean;
|
|
808
828
|
penDetected: boolean;
|
|
809
829
|
exportBackground: boolean;
|
|
@@ -937,7 +957,7 @@ export declare const actionChangeOpacity: {
|
|
|
937
957
|
lockedMultiSelections: {
|
|
938
958
|
[groupId: string]: true;
|
|
939
959
|
};
|
|
940
|
-
stylesPanelMode: "compact" | "full";
|
|
960
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
941
961
|
};
|
|
942
962
|
captureUpdate: "IMMEDIATELY";
|
|
943
963
|
};
|
|
@@ -987,6 +1007,10 @@ export declare const actionChangeFontSize: {
|
|
|
987
1007
|
locked: boolean;
|
|
988
1008
|
fromSelection: boolean;
|
|
989
1009
|
} & import("../types").ActiveTool;
|
|
1010
|
+
preferredSelectionTool: {
|
|
1011
|
+
type: "selection" | "lasso";
|
|
1012
|
+
initialized: boolean;
|
|
1013
|
+
};
|
|
990
1014
|
penMode: boolean;
|
|
991
1015
|
penDetected: boolean;
|
|
992
1016
|
exportBackground: boolean;
|
|
@@ -1120,7 +1144,7 @@ export declare const actionChangeFontSize: {
|
|
|
1120
1144
|
lockedMultiSelections: {
|
|
1121
1145
|
[groupId: string]: true;
|
|
1122
1146
|
};
|
|
1123
|
-
stylesPanelMode: "compact" | "full";
|
|
1147
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1124
1148
|
};
|
|
1125
1149
|
captureUpdate: "IMMEDIATELY";
|
|
1126
1150
|
};
|
|
@@ -1171,6 +1195,10 @@ export declare const actionDecreaseFontSize: {
|
|
|
1171
1195
|
locked: boolean;
|
|
1172
1196
|
fromSelection: boolean;
|
|
1173
1197
|
} & import("../types").ActiveTool;
|
|
1198
|
+
preferredSelectionTool: {
|
|
1199
|
+
type: "selection" | "lasso";
|
|
1200
|
+
initialized: boolean;
|
|
1201
|
+
};
|
|
1174
1202
|
penMode: boolean;
|
|
1175
1203
|
penDetected: boolean;
|
|
1176
1204
|
exportBackground: boolean;
|
|
@@ -1304,7 +1332,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1304
1332
|
lockedMultiSelections: {
|
|
1305
1333
|
[groupId: string]: true;
|
|
1306
1334
|
};
|
|
1307
|
-
stylesPanelMode: "compact" | "full";
|
|
1335
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1308
1336
|
};
|
|
1309
1337
|
captureUpdate: "IMMEDIATELY";
|
|
1310
1338
|
};
|
|
@@ -1355,6 +1383,10 @@ export declare const actionIncreaseFontSize: {
|
|
|
1355
1383
|
locked: boolean;
|
|
1356
1384
|
fromSelection: boolean;
|
|
1357
1385
|
} & import("../types").ActiveTool;
|
|
1386
|
+
preferredSelectionTool: {
|
|
1387
|
+
type: "selection" | "lasso";
|
|
1388
|
+
initialized: boolean;
|
|
1389
|
+
};
|
|
1358
1390
|
penMode: boolean;
|
|
1359
1391
|
penDetected: boolean;
|
|
1360
1392
|
exportBackground: boolean;
|
|
@@ -1488,7 +1520,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1488
1520
|
lockedMultiSelections: {
|
|
1489
1521
|
[groupId: string]: true;
|
|
1490
1522
|
};
|
|
1491
|
-
stylesPanelMode: "compact" | "full";
|
|
1523
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1492
1524
|
};
|
|
1493
1525
|
captureUpdate: "IMMEDIATELY";
|
|
1494
1526
|
};
|
|
@@ -1539,6 +1571,10 @@ export declare const actionChangeFontFamily: {
|
|
|
1539
1571
|
locked: boolean;
|
|
1540
1572
|
fromSelection: boolean;
|
|
1541
1573
|
} & import("../types").ActiveTool;
|
|
1574
|
+
preferredSelectionTool: {
|
|
1575
|
+
type: "selection" | "lasso";
|
|
1576
|
+
initialized: boolean;
|
|
1577
|
+
};
|
|
1542
1578
|
penMode: boolean;
|
|
1543
1579
|
penDetected: boolean;
|
|
1544
1580
|
exportBackground: boolean;
|
|
@@ -1670,7 +1706,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1670
1706
|
lockedMultiSelections: {
|
|
1671
1707
|
[groupId: string]: true;
|
|
1672
1708
|
};
|
|
1673
|
-
stylesPanelMode: "compact" | "full";
|
|
1709
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1674
1710
|
};
|
|
1675
1711
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
1676
1712
|
} | {
|
|
@@ -1713,6 +1749,10 @@ export declare const actionChangeFontFamily: {
|
|
|
1713
1749
|
locked: boolean;
|
|
1714
1750
|
fromSelection: boolean;
|
|
1715
1751
|
} & import("../types").ActiveTool;
|
|
1752
|
+
preferredSelectionTool: {
|
|
1753
|
+
type: "selection" | "lasso";
|
|
1754
|
+
initialized: boolean;
|
|
1755
|
+
};
|
|
1716
1756
|
penMode: boolean;
|
|
1717
1757
|
penDetected: boolean;
|
|
1718
1758
|
exportBackground: boolean;
|
|
@@ -1844,11 +1884,11 @@ export declare const actionChangeFontFamily: {
|
|
|
1844
1884
|
lockedMultiSelections: {
|
|
1845
1885
|
[groupId: string]: true;
|
|
1846
1886
|
};
|
|
1847
|
-
stylesPanelMode: "compact" | "full";
|
|
1887
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1848
1888
|
};
|
|
1849
1889
|
captureUpdate: "NEVER";
|
|
1850
1890
|
};
|
|
1851
|
-
PanelComponent: ({ elements, appState, app, updateData
|
|
1891
|
+
PanelComponent: ({ elements, appState, app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1852
1892
|
} & {
|
|
1853
1893
|
keyTest?: undefined;
|
|
1854
1894
|
};
|
|
@@ -1894,6 +1934,10 @@ export declare const actionChangeTextAlign: {
|
|
|
1894
1934
|
locked: boolean;
|
|
1895
1935
|
fromSelection: boolean;
|
|
1896
1936
|
} & import("../types").ActiveTool;
|
|
1937
|
+
preferredSelectionTool: {
|
|
1938
|
+
type: "selection" | "lasso";
|
|
1939
|
+
initialized: boolean;
|
|
1940
|
+
};
|
|
1897
1941
|
penMode: boolean;
|
|
1898
1942
|
penDetected: boolean;
|
|
1899
1943
|
exportBackground: boolean;
|
|
@@ -2027,7 +2071,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2027
2071
|
lockedMultiSelections: {
|
|
2028
2072
|
[groupId: string]: true;
|
|
2029
2073
|
};
|
|
2030
|
-
stylesPanelMode: "compact" | "full";
|
|
2074
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
2031
2075
|
};
|
|
2032
2076
|
captureUpdate: "IMMEDIATELY";
|
|
2033
2077
|
};
|
|
@@ -2078,6 +2122,10 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2078
2122
|
locked: boolean;
|
|
2079
2123
|
fromSelection: boolean;
|
|
2080
2124
|
} & import("../types").ActiveTool;
|
|
2125
|
+
preferredSelectionTool: {
|
|
2126
|
+
type: "selection" | "lasso";
|
|
2127
|
+
initialized: boolean;
|
|
2128
|
+
};
|
|
2081
2129
|
penMode: boolean;
|
|
2082
2130
|
penDetected: boolean;
|
|
2083
2131
|
exportBackground: boolean;
|
|
@@ -2212,7 +2260,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2212
2260
|
lockedMultiSelections: {
|
|
2213
2261
|
[groupId: string]: true;
|
|
2214
2262
|
};
|
|
2215
|
-
stylesPanelMode: "compact" | "full";
|
|
2263
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
2216
2264
|
};
|
|
2217
2265
|
captureUpdate: "IMMEDIATELY";
|
|
2218
2266
|
};
|
|
@@ -2262,6 +2310,10 @@ export declare const actionChangeRoundness: {
|
|
|
2262
2310
|
locked: boolean;
|
|
2263
2311
|
fromSelection: boolean;
|
|
2264
2312
|
} & import("../types").ActiveTool;
|
|
2313
|
+
preferredSelectionTool: {
|
|
2314
|
+
type: "selection" | "lasso";
|
|
2315
|
+
initialized: boolean;
|
|
2316
|
+
};
|
|
2265
2317
|
penMode: boolean;
|
|
2266
2318
|
penDetected: boolean;
|
|
2267
2319
|
exportBackground: boolean;
|
|
@@ -2395,7 +2447,7 @@ export declare const actionChangeRoundness: {
|
|
|
2395
2447
|
lockedMultiSelections: {
|
|
2396
2448
|
[groupId: string]: true;
|
|
2397
2449
|
};
|
|
2398
|
-
stylesPanelMode: "compact" | "full";
|
|
2450
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
2399
2451
|
};
|
|
2400
2452
|
captureUpdate: "IMMEDIATELY";
|
|
2401
2453
|
};
|
|
@@ -2447,6 +2499,10 @@ export declare const actionChangeArrowhead: {
|
|
|
2447
2499
|
locked: boolean;
|
|
2448
2500
|
fromSelection: boolean;
|
|
2449
2501
|
} & import("../types").ActiveTool;
|
|
2502
|
+
preferredSelectionTool: {
|
|
2503
|
+
type: "selection" | "lasso";
|
|
2504
|
+
initialized: boolean;
|
|
2505
|
+
};
|
|
2450
2506
|
penMode: boolean;
|
|
2451
2507
|
penDetected: boolean;
|
|
2452
2508
|
exportBackground: boolean;
|
|
@@ -2581,7 +2637,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2581
2637
|
lockedMultiSelections: {
|
|
2582
2638
|
[groupId: string]: true;
|
|
2583
2639
|
};
|
|
2584
|
-
stylesPanelMode: "compact" | "full";
|
|
2640
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
2585
2641
|
};
|
|
2586
2642
|
captureUpdate: "IMMEDIATELY";
|
|
2587
2643
|
};
|
|
@@ -2640,6 +2696,10 @@ export declare const actionChangeArrowType: {
|
|
|
2640
2696
|
locked: boolean;
|
|
2641
2697
|
fromSelection: boolean;
|
|
2642
2698
|
} & import("../types").ActiveTool;
|
|
2699
|
+
preferredSelectionTool: {
|
|
2700
|
+
type: "selection" | "lasso";
|
|
2701
|
+
initialized: boolean;
|
|
2702
|
+
};
|
|
2643
2703
|
penMode: boolean;
|
|
2644
2704
|
penDetected: boolean;
|
|
2645
2705
|
exportBackground: boolean;
|
|
@@ -2773,7 +2833,7 @@ export declare const actionChangeArrowType: {
|
|
|
2773
2833
|
lockedMultiSelections: {
|
|
2774
2834
|
[groupId: string]: true;
|
|
2775
2835
|
};
|
|
2776
|
-
stylesPanelMode: "compact" | "full";
|
|
2836
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
2777
2837
|
};
|
|
2778
2838
|
captureUpdate: "IMMEDIATELY";
|
|
2779
2839
|
};
|
|
@@ -53,6 +53,10 @@ export declare const actionSelectAll: {
|
|
|
53
53
|
locked: boolean;
|
|
54
54
|
fromSelection: boolean;
|
|
55
55
|
} & import("../types").ActiveTool;
|
|
56
|
+
preferredSelectionTool: {
|
|
57
|
+
type: "selection" | "lasso";
|
|
58
|
+
initialized: boolean;
|
|
59
|
+
};
|
|
56
60
|
penMode: boolean;
|
|
57
61
|
penDetected: boolean;
|
|
58
62
|
exportBackground: boolean;
|
|
@@ -179,7 +183,7 @@ export declare const actionSelectAll: {
|
|
|
179
183
|
lockedMultiSelections: {
|
|
180
184
|
[groupId: string]: true;
|
|
181
185
|
};
|
|
182
|
-
stylesPanelMode: "compact" | "full";
|
|
186
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
183
187
|
};
|
|
184
188
|
captureUpdate: "IMMEDIATELY";
|
|
185
189
|
};
|
|
@@ -46,6 +46,10 @@ export declare const actionCopyStyles: {
|
|
|
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;
|
|
@@ -175,7 +179,7 @@ export declare const actionCopyStyles: {
|
|
|
175
179
|
lockedMultiSelections: {
|
|
176
180
|
[groupId: string]: true;
|
|
177
181
|
};
|
|
178
|
-
stylesPanelMode: "compact" | "full";
|
|
182
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
179
183
|
};
|
|
180
184
|
captureUpdate: "EVENTUALLY";
|
|
181
185
|
};
|
|
@@ -48,6 +48,10 @@ export declare const actionToggleGridMode: {
|
|
|
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;
|
|
@@ -180,7 +184,7 @@ export declare const actionToggleGridMode: {
|
|
|
180
184
|
lockedMultiSelections: {
|
|
181
185
|
[groupId: string]: true;
|
|
182
186
|
};
|
|
183
|
-
stylesPanelMode: "compact" | "full";
|
|
187
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
184
188
|
};
|
|
185
189
|
captureUpdate: "EVENTUALLY";
|
|
186
190
|
};
|
|
@@ -46,6 +46,10 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
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;
|
|
@@ -178,7 +182,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
178
182
|
lockedMultiSelections: {
|
|
179
183
|
[groupId: string]: true;
|
|
180
184
|
};
|
|
181
|
-
stylesPanelMode: "compact" | "full";
|
|
185
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
182
186
|
};
|
|
183
187
|
captureUpdate: "EVENTUALLY";
|
|
184
188
|
};
|
|
@@ -52,6 +52,10 @@ export declare const actionToggleSearchMenu: {
|
|
|
52
52
|
locked: boolean;
|
|
53
53
|
fromSelection: boolean;
|
|
54
54
|
} & import("../types").ActiveTool;
|
|
55
|
+
preferredSelectionTool: {
|
|
56
|
+
type: "selection" | "lasso";
|
|
57
|
+
initialized: boolean;
|
|
58
|
+
};
|
|
55
59
|
penMode: boolean;
|
|
56
60
|
penDetected: boolean;
|
|
57
61
|
exportBackground: boolean;
|
|
@@ -171,7 +175,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
171
175
|
lockedMultiSelections: {
|
|
172
176
|
[groupId: string]: true;
|
|
173
177
|
};
|
|
174
|
-
stylesPanelMode: "compact" | "full";
|
|
178
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
175
179
|
};
|
|
176
180
|
captureUpdate: "EVENTUALLY";
|
|
177
181
|
};
|
|
@@ -48,6 +48,10 @@ export declare const actionToggleStats: {
|
|
|
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;
|
|
@@ -178,7 +182,7 @@ export declare const actionToggleStats: {
|
|
|
178
182
|
lockedMultiSelections: {
|
|
179
183
|
[groupId: string]: true;
|
|
180
184
|
};
|
|
181
|
-
stylesPanelMode: "compact" | "full";
|
|
185
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
182
186
|
};
|
|
183
187
|
captureUpdate: "EVENTUALLY";
|
|
184
188
|
};
|
|
@@ -45,6 +45,10 @@ export declare const actionToggleViewMode: {
|
|
|
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;
|
|
@@ -178,7 +182,7 @@ export declare const actionToggleViewMode: {
|
|
|
178
182
|
lockedMultiSelections: {
|
|
179
183
|
[groupId: string]: true;
|
|
180
184
|
};
|
|
181
|
-
stylesPanelMode: "compact" | "full";
|
|
185
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
182
186
|
};
|
|
183
187
|
captureUpdate: "EVENTUALLY";
|
|
184
188
|
};
|
|
@@ -45,6 +45,10 @@ export declare const actionToggleZenMode: {
|
|
|
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;
|
|
@@ -178,7 +182,7 @@ export declare const actionToggleZenMode: {
|
|
|
178
182
|
lockedMultiSelections: {
|
|
179
183
|
[groupId: string]: true;
|
|
180
184
|
};
|
|
181
|
-
stylesPanelMode: "compact" | "full";
|
|
185
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
182
186
|
};
|
|
183
187
|
captureUpdate: "EVENTUALLY";
|
|
184
188
|
};
|
|
@@ -24,6 +24,10 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
24
24
|
locked: boolean;
|
|
25
25
|
fromSelection: boolean;
|
|
26
26
|
} & import("./types").ActiveTool) | undefined;
|
|
27
|
+
preferredSelectionTool?: {
|
|
28
|
+
type: "selection" | "lasso";
|
|
29
|
+
initialized: boolean;
|
|
30
|
+
} | undefined;
|
|
27
31
|
penMode?: boolean | undefined;
|
|
28
32
|
penDetected?: boolean | undefined;
|
|
29
33
|
exportBackground?: boolean | undefined;
|
|
@@ -69,7 +73,6 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
69
73
|
lockedMultiSelections?: {
|
|
70
74
|
[groupId: string]: true;
|
|
71
75
|
} | undefined;
|
|
72
|
-
stylesPanelMode?: "compact" | "full" | undefined;
|
|
73
76
|
};
|
|
74
77
|
export declare const cleanAppStateForExport: (appState: Partial<AppState>) => {
|
|
75
78
|
viewBackgroundColor?: string | undefined;
|
|
@@ -17,9 +17,16 @@ export declare const CompactShapeActions: ({ appState, elementsMap, renderAction
|
|
|
17
17
|
app: AppClassProperties;
|
|
18
18
|
setAppState: React.Component<any, AppState>["setState"];
|
|
19
19
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export declare const
|
|
21
|
-
activeTool: UIAppState["activeTool"];
|
|
20
|
+
export declare const MobileShapeActions: ({ appState, elementsMap, renderAction, app, setAppState, }: {
|
|
22
21
|
appState: UIAppState;
|
|
22
|
+
elementsMap: NonDeletedElementsMap | NonDeletedSceneElementsMap;
|
|
23
|
+
renderAction: ActionManager["renderAction"];
|
|
24
|
+
app: AppClassProperties;
|
|
25
|
+
setAppState: React.Component<any, AppState>["setState"];
|
|
26
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const ShapesSwitcher: ({ activeTool, setAppState, app, UIOptions, }: {
|
|
28
|
+
activeTool: UIAppState["activeTool"];
|
|
29
|
+
setAppState: React.Component<any, AppState>["setState"];
|
|
23
30
|
app: AppClassProperties;
|
|
24
31
|
UIOptions: AppProps["UIOptions"];
|
|
25
32
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -136,7 +136,10 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
136
136
|
};
|
|
137
137
|
};
|
|
138
138
|
hit: {
|
|
139
|
-
element: NonDeleted<ExcalidrawElement> | null;
|
|
139
|
+
element: NonDeleted<ExcalidrawElement> | null; /**
|
|
140
|
+
* Returns gridSize taking into account `gridModeEnabled`.
|
|
141
|
+
* If disabled, returns null.
|
|
142
|
+
*/
|
|
140
143
|
allHitElements: NonDeleted<ExcalidrawElement>[];
|
|
141
144
|
wasAddedToSelection: boolean;
|
|
142
145
|
hasBeenDuplicated: boolean;
|
|
@@ -206,7 +209,10 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
206
209
|
};
|
|
207
210
|
};
|
|
208
211
|
hit: {
|
|
209
|
-
element: NonDeleted<ExcalidrawElement> | null;
|
|
212
|
+
element: NonDeleted<ExcalidrawElement> | null; /**
|
|
213
|
+
* Returns gridSize taking into account `gridModeEnabled`.
|
|
214
|
+
* If disabled, returns null.
|
|
215
|
+
*/
|
|
210
216
|
allHitElements: NonDeleted<ExcalidrawElement>[];
|
|
211
217
|
wasAddedToSelection: boolean;
|
|
212
218
|
hasBeenDuplicated: boolean;
|
|
@@ -245,7 +251,6 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
245
251
|
}>]>;
|
|
246
252
|
missingPointerEventCleanupEmitter: Emitter<[event: PointerEvent | null]>;
|
|
247
253
|
onRemoveEventListenersEmitter: Emitter<[]>;
|
|
248
|
-
defaultSelectionTool: "selection" | "lasso";
|
|
249
254
|
constructor(props: AppProps);
|
|
250
255
|
updateEditorAtom: <Value, Args extends unknown[], Result>(atom: WritableAtom<Value, Args, Result>, ...args: Args) => Result;
|
|
251
256
|
private onWindowMessage;
|
|
@@ -20,5 +20,5 @@ interface ColorPickerProps {
|
|
|
20
20
|
updateData: (formData?: any) => void;
|
|
21
21
|
compactMode?: boolean;
|
|
22
22
|
}
|
|
23
|
-
export declare const ColorPicker: ({ type, color, onChange, label, elements, palette, topPicks, updateData, appState,
|
|
23
|
+
export declare const ColorPicker: ({ type, color, onChange, label, elements, palette, topPicks, updateData, appState, }: ColorPickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export {};
|
|
@@ -10,8 +10,10 @@ interface PickerProps {
|
|
|
10
10
|
palette: ColorPaletteCustom;
|
|
11
11
|
updateData: (formData?: any) => void;
|
|
12
12
|
children?: React.ReactNode;
|
|
13
|
+
showTitle?: boolean;
|
|
13
14
|
onEyeDropperToggle: (force?: boolean) => void;
|
|
14
15
|
onEscape: (event: React.KeyboardEvent | KeyboardEvent) => void;
|
|
16
|
+
showHotKey?: boolean;
|
|
15
17
|
}
|
|
16
18
|
export declare const Picker: React.ForwardRefExoticComponent<PickerProps & React.RefAttributes<unknown>>;
|
|
17
19
|
export {};
|
|
@@ -4,6 +4,7 @@ interface PickerColorListProps {
|
|
|
4
4
|
color: string | null;
|
|
5
5
|
onChange: (color: string) => void;
|
|
6
6
|
activeShade: number;
|
|
7
|
+
showHotKey?: boolean;
|
|
7
8
|
}
|
|
8
|
-
declare const PickerColorList: ({ palette, color, onChange, activeShade, }: PickerColorListProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const PickerColorList: ({ palette, color, onChange, activeShade, showHotKey, }: PickerColorListProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default PickerColorList;
|
|
@@ -3,6 +3,7 @@ interface ShadeListProps {
|
|
|
3
3
|
color: string | null;
|
|
4
4
|
onChange: (color: string) => void;
|
|
5
5
|
palette: ColorPaletteCustom;
|
|
6
|
+
showHotKey?: boolean;
|
|
6
7
|
}
|
|
7
|
-
export declare const ShadeList: ({ color, onChange, palette }: ShadeListProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const ShadeList: ({ color, onChange, palette, showHotKey, }: ShadeListProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import "./ExcalidrawLogo.scss";
|
|
3
|
-
type LogoSize = "xs" | "small" | "normal" | "large" | "custom";
|
|
3
|
+
type LogoSize = "xs" | "small" | "normal" | "large" | "custom" | "mobile";
|
|
4
4
|
interface LogoProps {
|
|
5
5
|
size?: LogoSize;
|
|
6
6
|
withText?: boolean;
|
|
@@ -2,6 +2,7 @@ import type { FontFamilyValues } from "@excalidraw/element/types";
|
|
|
2
2
|
interface FontPickerTriggerProps {
|
|
3
3
|
selectedFontFamily: FontFamilyValues | null;
|
|
4
4
|
isOpened?: boolean;
|
|
5
|
+
compactMode?: boolean;
|
|
5
6
|
}
|
|
6
|
-
export declare const FontPickerTrigger: ({ selectedFontFamily, isOpened, }: FontPickerTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const FontPickerTrigger: ({ selectedFontFamily, isOpened, compactMode, }: FontPickerTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -17,6 +17,7 @@ interface LayerUIProps {
|
|
|
17
17
|
onPenModeToggle: AppClassProperties["togglePenMode"];
|
|
18
18
|
showExitZenModeBtn: boolean;
|
|
19
19
|
langCode: Language["code"];
|
|
20
|
+
renderTopLeftUI?: ExcalidrawProps["renderTopLeftUI"];
|
|
20
21
|
renderTopRightUI?: ExcalidrawProps["renderTopRightUI"];
|
|
21
22
|
renderCustomStats?: ExcalidrawProps["renderCustomStats"];
|
|
22
23
|
UIOptions: AppProps["UIOptions"];
|
|
@@ -27,5 +28,5 @@ interface LayerUIProps {
|
|
|
27
28
|
isCollaborating: boolean;
|
|
28
29
|
generateLinkForSelection?: AppProps["generateLinkForSelection"];
|
|
29
30
|
}
|
|
30
|
-
declare const _default: React.MemoExoticComponent<({ actionManager, appState, files, setAppState, elements, canvas, onLockToggle, onHandToolToggle, onPenModeToggle, showExitZenModeBtn, renderTopRightUI, renderCustomStats, UIOptions, onExportImage, renderWelcomeScreen, children, app, isCollaborating, generateLinkForSelection, }: LayerUIProps) => import("react/jsx-runtime").JSX.Element>;
|
|
31
|
+
declare const _default: React.MemoExoticComponent<({ actionManager, appState, files, setAppState, elements, canvas, onLockToggle, onHandToolToggle, onPenModeToggle, showExitZenModeBtn, renderTopLeftUI, renderTopRightUI, renderCustomStats, UIOptions, onExportImage, renderWelcomeScreen, children, app, isCollaborating, generateLinkForSelection, }: LayerUIProps) => import("react/jsx-runtime").JSX.Element>;
|
|
31
32
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { NonDeletedExcalidrawElement } from "@excalidraw/element/types";
|
|
3
3
|
import type { ActionManager } from "../actions/manager";
|
|
4
|
-
import type { AppClassProperties, AppProps, AppState,
|
|
4
|
+
import type { AppClassProperties, AppProps, AppState, UIAppState } from "../types";
|
|
5
5
|
import type { JSX } from "react";
|
|
6
6
|
type MobileMenuProps = {
|
|
7
7
|
appState: UIAppState;
|
|
@@ -10,16 +10,14 @@ type MobileMenuProps = {
|
|
|
10
10
|
renderImageExportDialog: () => React.ReactNode;
|
|
11
11
|
setAppState: React.Component<any, AppState>["setState"];
|
|
12
12
|
elements: readonly NonDeletedExcalidrawElement[];
|
|
13
|
-
onLockToggle: () => void;
|
|
14
13
|
onHandToolToggle: () => void;
|
|
15
14
|
onPenModeToggle: AppClassProperties["togglePenMode"];
|
|
16
15
|
renderTopRightUI?: (isMobile: boolean, appState: UIAppState) => JSX.Element | null;
|
|
17
|
-
|
|
16
|
+
renderTopLeftUI?: (isMobile: boolean, appState: UIAppState) => JSX.Element | null;
|
|
18
17
|
renderSidebars: () => JSX.Element | null;
|
|
19
|
-
device: Device;
|
|
20
18
|
renderWelcomeScreen: boolean;
|
|
21
19
|
UIOptions: AppProps["UIOptions"];
|
|
22
20
|
app: AppClassProperties;
|
|
23
21
|
};
|
|
24
|
-
export declare const MobileMenu: ({ appState, elements, actionManager, setAppState,
|
|
22
|
+
export declare const MobileMenu: ({ appState, elements, actionManager, setAppState, onHandToolToggle, renderTopLeftUI, renderTopRightUI, renderSidebars, renderWelcomeScreen, UIOptions, app, }: MobileMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
23
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./ToolIcon.scss";
|
|
3
|
+
import "./MobileToolBar.scss";
|
|
4
|
+
import type { AppClassProperties, UIAppState } from "../types";
|
|
5
|
+
type MobileToolBarProps = {
|
|
6
|
+
app: AppClassProperties;
|
|
7
|
+
onHandToolToggle: () => void;
|
|
8
|
+
setAppState: React.Component<any, UIAppState>["setState"];
|
|
9
|
+
};
|
|
10
|
+
export declare const MobileToolBar: ({ app, onHandToolToggle, setAppState, }: MobileToolBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|