@zsviczian/excalidraw 0.14.0-obsidian → 0.14.1-obsidian

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.
Files changed (41) hide show
  1. package/dist/excalidraw.development.js +149 -116
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/actions/actionAddToLibrary.d.ts +21 -15
  5. package/types/actions/actionBoundText.d.ts +7 -5
  6. package/types/actions/actionCanvas.d.ts +185 -47
  7. package/types/actions/actionClipboard.d.ts +35 -25
  8. package/types/actions/actionDeleteSelected.d.ts +21 -15
  9. package/types/actions/actionExport.d.ts +63 -45
  10. package/types/actions/actionFinalize.d.ts +14 -10
  11. package/types/actions/actionLinearEditor.d.ts +7 -5
  12. package/types/actions/actionMenu.d.ts +21 -15
  13. package/types/actions/actionProperties.d.ts +91 -65
  14. package/types/actions/actionStyles.d.ts +7 -5
  15. package/types/actions/actionToggleGridMode.d.ts +7 -5
  16. package/types/actions/actionToggleLock.d.ts +7 -5
  17. package/types/actions/actionToggleStats.d.ts +7 -5
  18. package/types/actions/actionToggleViewMode.d.ts +7 -5
  19. package/types/actions/actionToggleZenMode.d.ts +7 -5
  20. package/types/actions/types.d.ts +1 -1
  21. package/types/appState.d.ts +8 -6
  22. package/types/components/ActiveConfirmDialog.d.ts +24 -0
  23. package/types/components/App.d.ts +1 -0
  24. package/types/components/HandButton.d.ts +10 -0
  25. package/types/components/LayerUI.d.ts +2 -1
  26. package/types/components/LockButton.d.ts +0 -1
  27. package/types/components/MobileMenu.d.ts +2 -1
  28. package/types/components/ToolButton.d.ts +1 -1
  29. package/types/components/dropdownMenu/DropdownMenu.d.ts +7 -5
  30. package/types/components/dropdownMenu/DropdownMenuContent.d.ts +7 -3
  31. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +2 -3
  32. package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +3 -2
  33. package/types/components/dropdownMenu/common.d.ts +6 -0
  34. package/types/components/icons.d.ts +1 -0
  35. package/types/components/main-menu/MainMenu.d.ts +10 -5
  36. package/types/constants.d.ts +6 -1
  37. package/types/element/Hyperlink.d.ts +7 -5
  38. package/types/element/linearElementEditor.d.ts +8 -5
  39. package/types/keys.d.ts +0 -3
  40. package/types/types.d.ts +13 -7
  41. package/types/utils.d.ts +6 -3
@@ -42,16 +42,15 @@ export declare const actionChangeFillStyle: {
42
42
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
43
43
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
44
44
  activeTool: {
45
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
46
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
45
+ lastActiveTool: import("../../src/types").LastActiveTool;
47
46
  locked: boolean;
47
+ } & ({
48
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
48
49
  customType: null;
49
50
  } | {
50
51
  type: "custom";
51
52
  customType: string;
52
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
53
- locked: boolean;
54
- };
53
+ });
55
54
  penMode: boolean;
56
55
  penDetected: boolean;
57
56
  exportBackground: boolean;
@@ -102,6 +101,7 @@ export declare const actionChangeFillStyle: {
102
101
  zenModeEnabled: boolean;
103
102
  theme: string;
104
103
  gridSize: number | null;
104
+ previousGridSize: number | null;
105
105
  viewModeEnabled: boolean;
106
106
  selectedGroupIds: {
107
107
  [groupId: string]: boolean;
@@ -131,6 +131,8 @@ export declare const actionChangeFillStyle: {
131
131
  elementBackground?: string[] | undefined;
132
132
  elementStroke?: string[] | undefined;
133
133
  };
134
+ allowWheelZoom?: boolean | undefined;
135
+ allowPinchZoom?: boolean | undefined;
134
136
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
135
137
  };
136
138
  commitToHistory: true;
@@ -164,16 +166,15 @@ export declare const actionChangeStrokeWidth: {
164
166
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
165
167
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
166
168
  activeTool: {
167
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
168
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
169
+ lastActiveTool: import("../../src/types").LastActiveTool;
169
170
  locked: boolean;
171
+ } & ({
172
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
170
173
  customType: null;
171
174
  } | {
172
175
  type: "custom";
173
176
  customType: string;
174
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
175
- locked: boolean;
176
- };
177
+ });
177
178
  penMode: boolean;
178
179
  penDetected: boolean;
179
180
  exportBackground: boolean;
@@ -224,6 +225,7 @@ export declare const actionChangeStrokeWidth: {
224
225
  zenModeEnabled: boolean;
225
226
  theme: string;
226
227
  gridSize: number | null;
228
+ previousGridSize: number | null;
227
229
  viewModeEnabled: boolean;
228
230
  selectedGroupIds: {
229
231
  [groupId: string]: boolean;
@@ -253,6 +255,8 @@ export declare const actionChangeStrokeWidth: {
253
255
  elementBackground?: string[] | undefined;
254
256
  elementStroke?: string[] | undefined;
255
257
  };
258
+ allowWheelZoom?: boolean | undefined;
259
+ allowPinchZoom?: boolean | undefined;
256
260
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
257
261
  };
258
262
  commitToHistory: true;
@@ -286,16 +290,15 @@ export declare const actionChangeSloppiness: {
286
290
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
287
291
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
288
292
  activeTool: {
289
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
290
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
293
+ lastActiveTool: import("../../src/types").LastActiveTool;
291
294
  locked: boolean;
295
+ } & ({
296
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
292
297
  customType: null;
293
298
  } | {
294
299
  type: "custom";
295
300
  customType: string;
296
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
297
- locked: boolean;
298
- };
301
+ });
299
302
  penMode: boolean;
300
303
  penDetected: boolean;
301
304
  exportBackground: boolean;
@@ -346,6 +349,7 @@ export declare const actionChangeSloppiness: {
346
349
  zenModeEnabled: boolean;
347
350
  theme: string;
348
351
  gridSize: number | null;
352
+ previousGridSize: number | null;
349
353
  viewModeEnabled: boolean;
350
354
  selectedGroupIds: {
351
355
  [groupId: string]: boolean;
@@ -375,6 +379,8 @@ export declare const actionChangeSloppiness: {
375
379
  elementBackground?: string[] | undefined;
376
380
  elementStroke?: string[] | undefined;
377
381
  };
382
+ allowWheelZoom?: boolean | undefined;
383
+ allowPinchZoom?: boolean | undefined;
378
384
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
379
385
  };
380
386
  commitToHistory: true;
@@ -408,16 +414,15 @@ export declare const actionChangeStrokeStyle: {
408
414
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
409
415
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
410
416
  activeTool: {
411
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
412
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
417
+ lastActiveTool: import("../../src/types").LastActiveTool;
413
418
  locked: boolean;
419
+ } & ({
420
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
414
421
  customType: null;
415
422
  } | {
416
423
  type: "custom";
417
424
  customType: string;
418
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
419
- locked: boolean;
420
- };
425
+ });
421
426
  penMode: boolean;
422
427
  penDetected: boolean;
423
428
  exportBackground: boolean;
@@ -468,6 +473,7 @@ export declare const actionChangeStrokeStyle: {
468
473
  zenModeEnabled: boolean;
469
474
  theme: string;
470
475
  gridSize: number | null;
476
+ previousGridSize: number | null;
471
477
  viewModeEnabled: boolean;
472
478
  selectedGroupIds: {
473
479
  [groupId: string]: boolean;
@@ -497,6 +503,8 @@ export declare const actionChangeStrokeStyle: {
497
503
  elementBackground?: string[] | undefined;
498
504
  elementStroke?: string[] | undefined;
499
505
  };
506
+ allowWheelZoom?: boolean | undefined;
507
+ allowPinchZoom?: boolean | undefined;
500
508
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
501
509
  };
502
510
  commitToHistory: true;
@@ -530,16 +538,15 @@ export declare const actionChangeOpacity: {
530
538
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
531
539
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
532
540
  activeTool: {
533
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
534
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
541
+ lastActiveTool: import("../../src/types").LastActiveTool;
535
542
  locked: boolean;
543
+ } & ({
544
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
536
545
  customType: null;
537
546
  } | {
538
547
  type: "custom";
539
548
  customType: string;
540
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
541
- locked: boolean;
542
- };
549
+ });
543
550
  penMode: boolean;
544
551
  penDetected: boolean;
545
552
  exportBackground: boolean;
@@ -590,6 +597,7 @@ export declare const actionChangeOpacity: {
590
597
  zenModeEnabled: boolean;
591
598
  theme: string;
592
599
  gridSize: number | null;
600
+ previousGridSize: number | null;
593
601
  viewModeEnabled: boolean;
594
602
  selectedGroupIds: {
595
603
  [groupId: string]: boolean;
@@ -619,6 +627,8 @@ export declare const actionChangeOpacity: {
619
627
  elementBackground?: string[] | undefined;
620
628
  elementStroke?: string[] | undefined;
621
629
  };
630
+ allowWheelZoom?: boolean | undefined;
631
+ allowPinchZoom?: boolean | undefined;
622
632
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
623
633
  };
624
634
  commitToHistory: true;
@@ -652,16 +662,15 @@ export declare const actionChangeFontSize: {
652
662
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
653
663
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
654
664
  activeTool: {
655
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
656
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
665
+ lastActiveTool: import("../../src/types").LastActiveTool;
657
666
  locked: boolean;
667
+ } & ({
668
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
658
669
  customType: null;
659
670
  } | {
660
671
  type: "custom";
661
672
  customType: string;
662
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
663
- locked: boolean;
664
- };
673
+ });
665
674
  penMode: boolean;
666
675
  penDetected: boolean;
667
676
  exportBackground: boolean;
@@ -712,6 +721,7 @@ export declare const actionChangeFontSize: {
712
721
  zenModeEnabled: boolean;
713
722
  theme: string;
714
723
  gridSize: number | null;
724
+ previousGridSize: number | null;
715
725
  viewModeEnabled: boolean;
716
726
  selectedGroupIds: {
717
727
  [groupId: string]: boolean;
@@ -741,6 +751,8 @@ export declare const actionChangeFontSize: {
741
751
  elementBackground?: string[] | undefined;
742
752
  elementStroke?: string[] | undefined;
743
753
  };
754
+ allowWheelZoom?: boolean | undefined;
755
+ allowPinchZoom?: boolean | undefined;
744
756
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
745
757
  };
746
758
  commitToHistory: boolean;
@@ -774,16 +786,15 @@ export declare const actionDecreaseFontSize: {
774
786
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
775
787
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
776
788
  activeTool: {
777
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
778
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
789
+ lastActiveTool: import("../../src/types").LastActiveTool;
779
790
  locked: boolean;
791
+ } & ({
792
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
780
793
  customType: null;
781
794
  } | {
782
795
  type: "custom";
783
796
  customType: string;
784
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
785
- locked: boolean;
786
- };
797
+ });
787
798
  penMode: boolean;
788
799
  penDetected: boolean;
789
800
  exportBackground: boolean;
@@ -834,6 +845,7 @@ export declare const actionDecreaseFontSize: {
834
845
  zenModeEnabled: boolean;
835
846
  theme: string;
836
847
  gridSize: number | null;
848
+ previousGridSize: number | null;
837
849
  viewModeEnabled: boolean;
838
850
  selectedGroupIds: {
839
851
  [groupId: string]: boolean;
@@ -863,6 +875,8 @@ export declare const actionDecreaseFontSize: {
863
875
  elementBackground?: string[] | undefined;
864
876
  elementStroke?: string[] | undefined;
865
877
  };
878
+ allowWheelZoom?: boolean | undefined;
879
+ allowPinchZoom?: boolean | undefined;
866
880
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
867
881
  };
868
882
  commitToHistory: boolean;
@@ -896,16 +910,15 @@ export declare const actionIncreaseFontSize: {
896
910
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
897
911
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
898
912
  activeTool: {
899
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
900
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
913
+ lastActiveTool: import("../../src/types").LastActiveTool;
901
914
  locked: boolean;
915
+ } & ({
916
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
902
917
  customType: null;
903
918
  } | {
904
919
  type: "custom";
905
920
  customType: string;
906
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
907
- locked: boolean;
908
- };
921
+ });
909
922
  penMode: boolean;
910
923
  penDetected: boolean;
911
924
  exportBackground: boolean;
@@ -956,6 +969,7 @@ export declare const actionIncreaseFontSize: {
956
969
  zenModeEnabled: boolean;
957
970
  theme: string;
958
971
  gridSize: number | null;
972
+ previousGridSize: number | null;
959
973
  viewModeEnabled: boolean;
960
974
  selectedGroupIds: {
961
975
  [groupId: string]: boolean;
@@ -985,6 +999,8 @@ export declare const actionIncreaseFontSize: {
985
999
  elementBackground?: string[] | undefined;
986
1000
  elementStroke?: string[] | undefined;
987
1001
  };
1002
+ allowWheelZoom?: boolean | undefined;
1003
+ allowPinchZoom?: boolean | undefined;
988
1004
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
989
1005
  };
990
1006
  commitToHistory: boolean;
@@ -1018,16 +1034,15 @@ export declare const actionChangeFontFamily: {
1018
1034
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1019
1035
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1020
1036
  activeTool: {
1021
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
1022
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1037
+ lastActiveTool: import("../../src/types").LastActiveTool;
1023
1038
  locked: boolean;
1039
+ } & ({
1040
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1024
1041
  customType: null;
1025
1042
  } | {
1026
1043
  type: "custom";
1027
1044
  customType: string;
1028
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1029
- locked: boolean;
1030
- };
1045
+ });
1031
1046
  penMode: boolean;
1032
1047
  penDetected: boolean;
1033
1048
  exportBackground: boolean;
@@ -1078,6 +1093,7 @@ export declare const actionChangeFontFamily: {
1078
1093
  zenModeEnabled: boolean;
1079
1094
  theme: string;
1080
1095
  gridSize: number | null;
1096
+ previousGridSize: number | null;
1081
1097
  viewModeEnabled: boolean;
1082
1098
  selectedGroupIds: {
1083
1099
  [groupId: string]: boolean;
@@ -1107,6 +1123,8 @@ export declare const actionChangeFontFamily: {
1107
1123
  elementBackground?: string[] | undefined;
1108
1124
  elementStroke?: string[] | undefined;
1109
1125
  };
1126
+ allowWheelZoom?: boolean | undefined;
1127
+ allowPinchZoom?: boolean | undefined;
1110
1128
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1111
1129
  };
1112
1130
  commitToHistory: true;
@@ -1140,16 +1158,15 @@ export declare const actionChangeTextAlign: {
1140
1158
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1141
1159
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1142
1160
  activeTool: {
1143
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
1144
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1161
+ lastActiveTool: import("../../src/types").LastActiveTool;
1145
1162
  locked: boolean;
1163
+ } & ({
1164
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1146
1165
  customType: null;
1147
1166
  } | {
1148
1167
  type: "custom";
1149
1168
  customType: string;
1150
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1151
- locked: boolean;
1152
- };
1169
+ });
1153
1170
  penMode: boolean;
1154
1171
  penDetected: boolean;
1155
1172
  exportBackground: boolean;
@@ -1200,6 +1217,7 @@ export declare const actionChangeTextAlign: {
1200
1217
  zenModeEnabled: boolean;
1201
1218
  theme: string;
1202
1219
  gridSize: number | null;
1220
+ previousGridSize: number | null;
1203
1221
  viewModeEnabled: boolean;
1204
1222
  selectedGroupIds: {
1205
1223
  [groupId: string]: boolean;
@@ -1229,6 +1247,8 @@ export declare const actionChangeTextAlign: {
1229
1247
  elementBackground?: string[] | undefined;
1230
1248
  elementStroke?: string[] | undefined;
1231
1249
  };
1250
+ allowWheelZoom?: boolean | undefined;
1251
+ allowPinchZoom?: boolean | undefined;
1232
1252
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1233
1253
  };
1234
1254
  commitToHistory: true;
@@ -1263,16 +1283,15 @@ export declare const actionChangeVerticalAlign: {
1263
1283
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1264
1284
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1265
1285
  activeTool: {
1266
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
1267
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1286
+ lastActiveTool: import("../../src/types").LastActiveTool;
1268
1287
  locked: boolean;
1288
+ } & ({
1289
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1269
1290
  customType: null;
1270
1291
  } | {
1271
1292
  type: "custom";
1272
1293
  customType: string;
1273
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1274
- locked: boolean;
1275
- };
1294
+ });
1276
1295
  penMode: boolean;
1277
1296
  penDetected: boolean;
1278
1297
  exportBackground: boolean;
@@ -1324,6 +1343,7 @@ export declare const actionChangeVerticalAlign: {
1324
1343
  zenModeEnabled: boolean;
1325
1344
  theme: string;
1326
1345
  gridSize: number | null;
1346
+ previousGridSize: number | null;
1327
1347
  viewModeEnabled: boolean;
1328
1348
  selectedGroupIds: {
1329
1349
  [groupId: string]: boolean;
@@ -1353,6 +1373,8 @@ export declare const actionChangeVerticalAlign: {
1353
1373
  elementBackground?: string[] | undefined;
1354
1374
  elementStroke?: string[] | undefined;
1355
1375
  };
1376
+ allowWheelZoom?: boolean | undefined;
1377
+ allowPinchZoom?: boolean | undefined;
1356
1378
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1357
1379
  };
1358
1380
  commitToHistory: true;
@@ -1386,16 +1408,15 @@ export declare const actionChangeRoundness: {
1386
1408
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1387
1409
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1388
1410
  activeTool: {
1389
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
1390
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1411
+ lastActiveTool: import("../../src/types").LastActiveTool;
1391
1412
  locked: boolean;
1413
+ } & ({
1414
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1392
1415
  customType: null;
1393
1416
  } | {
1394
1417
  type: "custom";
1395
1418
  customType: string;
1396
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1397
- locked: boolean;
1398
- };
1419
+ });
1399
1420
  penMode: boolean;
1400
1421
  penDetected: boolean;
1401
1422
  exportBackground: boolean;
@@ -1446,6 +1467,7 @@ export declare const actionChangeRoundness: {
1446
1467
  zenModeEnabled: boolean;
1447
1468
  theme: string;
1448
1469
  gridSize: number | null;
1470
+ previousGridSize: number | null;
1449
1471
  viewModeEnabled: boolean;
1450
1472
  selectedGroupIds: {
1451
1473
  [groupId: string]: boolean;
@@ -1475,6 +1497,8 @@ export declare const actionChangeRoundness: {
1475
1497
  elementBackground?: string[] | undefined;
1476
1498
  elementStroke?: string[] | undefined;
1477
1499
  };
1500
+ allowWheelZoom?: boolean | undefined;
1501
+ allowPinchZoom?: boolean | undefined;
1478
1502
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1479
1503
  };
1480
1504
  commitToHistory: true;
@@ -1510,16 +1534,15 @@ export declare const actionChangeArrowhead: {
1510
1534
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1511
1535
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1512
1536
  activeTool: {
1513
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
1514
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1537
+ lastActiveTool: import("../../src/types").LastActiveTool;
1515
1538
  locked: boolean;
1539
+ } & ({
1540
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1516
1541
  customType: null;
1517
1542
  } | {
1518
1543
  type: "custom";
1519
1544
  customType: string;
1520
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1521
- locked: boolean;
1522
- };
1545
+ });
1523
1546
  penMode: boolean;
1524
1547
  penDetected: boolean;
1525
1548
  exportBackground: boolean;
@@ -1571,6 +1594,7 @@ export declare const actionChangeArrowhead: {
1571
1594
  zenModeEnabled: boolean;
1572
1595
  theme: string;
1573
1596
  gridSize: number | null;
1597
+ previousGridSize: number | null;
1574
1598
  viewModeEnabled: boolean;
1575
1599
  selectedGroupIds: {
1576
1600
  [groupId: string]: boolean;
@@ -1600,6 +1624,8 @@ export declare const actionChangeArrowhead: {
1600
1624
  elementBackground?: string[] | undefined;
1601
1625
  elementStroke?: string[] | undefined;
1602
1626
  };
1627
+ allowWheelZoom?: boolean | undefined;
1628
+ allowPinchZoom?: boolean | undefined;
1603
1629
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1604
1630
  };
1605
1631
  commitToHistory: true;
@@ -28,16 +28,15 @@ export declare const actionCopyStyles: {
28
28
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
29
29
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
30
30
  activeTool: {
31
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
32
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
31
+ lastActiveTool: import("../types").LastActiveTool;
33
32
  locked: boolean;
33
+ } & ({
34
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
34
35
  customType: null;
35
36
  } | {
36
37
  type: "custom";
37
38
  customType: string;
38
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
39
- locked: boolean;
40
- };
39
+ });
41
40
  penMode: boolean;
42
41
  penDetected: boolean;
43
42
  exportBackground: boolean;
@@ -84,6 +83,7 @@ export declare const actionCopyStyles: {
84
83
  zenModeEnabled: boolean;
85
84
  theme: string;
86
85
  gridSize: number | null;
86
+ previousGridSize: number | null;
87
87
  viewModeEnabled: boolean;
88
88
  selectedGroupIds: {
89
89
  [groupId: string]: boolean;
@@ -113,6 +113,8 @@ export declare const actionCopyStyles: {
113
113
  elementBackground?: string[] | undefined;
114
114
  elementStroke?: string[] | undefined;
115
115
  };
116
+ allowWheelZoom?: boolean | undefined;
117
+ allowPinchZoom?: boolean | undefined;
116
118
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
117
119
  };
118
120
  commitToHistory: false;
@@ -28,16 +28,15 @@ export declare const actionToggleGridMode: {
28
28
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
29
29
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
30
30
  activeTool: {
31
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
32
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
31
+ lastActiveTool: import("../types").LastActiveTool;
33
32
  locked: boolean;
33
+ } & ({
34
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
34
35
  customType: null;
35
36
  } | {
36
37
  type: "custom";
37
38
  customType: string;
38
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
39
- locked: boolean;
40
- };
39
+ });
41
40
  penMode: boolean;
42
41
  penDetected: boolean;
43
42
  exportBackground: boolean;
@@ -88,6 +87,7 @@ export declare const actionToggleGridMode: {
88
87
  } | null;
89
88
  zenModeEnabled: boolean;
90
89
  theme: string;
90
+ previousGridSize: number | null;
91
91
  viewModeEnabled: boolean;
92
92
  selectedGroupIds: {
93
93
  [groupId: string]: boolean;
@@ -117,6 +117,8 @@ export declare const actionToggleGridMode: {
117
117
  elementBackground?: string[] | undefined;
118
118
  elementStroke?: string[] | undefined;
119
119
  };
120
+ allowWheelZoom?: boolean | undefined;
121
+ allowPinchZoom?: boolean | undefined;
120
122
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
121
123
  };
122
124
  commitToHistory: false;
@@ -27,16 +27,15 @@ export declare const actionToggleLock: {
27
27
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
28
28
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
29
29
  activeTool: {
30
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
31
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
30
+ lastActiveTool: import("../types").LastActiveTool;
32
31
  locked: boolean;
32
+ } & ({
33
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
33
34
  customType: null;
34
35
  } | {
35
36
  type: "custom";
36
37
  customType: string;
37
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
38
- locked: boolean;
39
- };
38
+ });
40
39
  penMode: boolean;
41
40
  penDetected: boolean;
42
41
  exportBackground: boolean;
@@ -88,6 +87,7 @@ export declare const actionToggleLock: {
88
87
  zenModeEnabled: boolean;
89
88
  theme: string;
90
89
  gridSize: number | null;
90
+ previousGridSize: number | null;
91
91
  viewModeEnabled: boolean;
92
92
  selectedGroupIds: {
93
93
  [groupId: string]: boolean;
@@ -117,6 +117,8 @@ export declare const actionToggleLock: {
117
117
  elementBackground?: string[] | undefined;
118
118
  elementStroke?: string[] | undefined;
119
119
  };
120
+ allowWheelZoom?: boolean | undefined;
121
+ allowPinchZoom?: boolean | undefined;
120
122
  };
121
123
  commitToHistory: true;
122
124
  };
@@ -26,16 +26,15 @@ export declare const actionToggleStats: {
26
26
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
27
27
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
28
28
  activeTool: {
29
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
30
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
29
+ lastActiveTool: import("../types").LastActiveTool;
31
30
  locked: boolean;
31
+ } & ({
32
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
32
33
  customType: null;
33
34
  } | {
34
35
  type: "custom";
35
36
  customType: string;
36
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
37
- locked: boolean;
38
- };
37
+ });
39
38
  penMode: boolean;
40
39
  penDetected: boolean;
41
40
  exportBackground: boolean;
@@ -87,6 +86,7 @@ export declare const actionToggleStats: {
87
86
  zenModeEnabled: boolean;
88
87
  theme: string;
89
88
  gridSize: number | null;
89
+ previousGridSize: number | null;
90
90
  viewModeEnabled: boolean;
91
91
  selectedGroupIds: {
92
92
  [groupId: string]: boolean;
@@ -115,6 +115,8 @@ export declare const actionToggleStats: {
115
115
  elementBackground?: string[] | undefined;
116
116
  elementStroke?: string[] | undefined;
117
117
  };
118
+ allowWheelZoom?: boolean | undefined;
119
+ allowPinchZoom?: boolean | undefined;
118
120
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
119
121
  };
120
122
  commitToHistory: false;