@zsviczian/excalidraw 0.14.0-obsidian → 0.14.2-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 (60) hide show
  1. package/README.md +16 -1823
  2. package/dist/excalidraw.development.js +282 -139
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/dist/excalidraw.production.min.js.LICENSE.txt +20 -0
  5. package/package.json +1 -1
  6. package/types/actions/actionAddToLibrary.d.ts +33 -15
  7. package/types/actions/actionBoundText.d.ts +11 -5
  8. package/types/actions/actionCanvas.d.ts +225 -47
  9. package/types/actions/actionClipboard.d.ts +55 -25
  10. package/types/actions/actionDeleteSelected.d.ts +35 -17
  11. package/types/actions/actionExport.d.ts +99 -45
  12. package/types/actions/actionFinalize.d.ts +22 -10
  13. package/types/actions/actionLinearEditor.d.ts +11 -5
  14. package/types/actions/actionMenu.d.ts +33 -15
  15. package/types/actions/actionProperties.d.ts +143 -65
  16. package/types/actions/actionStyles.d.ts +11 -5
  17. package/types/actions/actionToggleGridMode.d.ts +11 -5
  18. package/types/actions/actionToggleLock.d.ts +11 -5
  19. package/types/actions/actionToggleStats.d.ts +11 -5
  20. package/types/actions/actionToggleViewMode.d.ts +11 -5
  21. package/types/actions/actionToggleZenMode.d.ts +11 -5
  22. package/types/actions/shortcuts.d.ts +1 -1
  23. package/types/actions/types.d.ts +1 -1
  24. package/types/appState.d.ts +8 -6
  25. package/types/components/ActiveConfirmDialog.d.ts +24 -0
  26. package/types/components/App.d.ts +3 -1
  27. package/types/components/HandButton.d.ts +10 -0
  28. package/types/components/LayerUI.d.ts +2 -2
  29. package/types/components/LockButton.d.ts +0 -1
  30. package/types/components/MobileMenu.d.ts +4 -4
  31. package/types/components/ToolButton.d.ts +1 -1
  32. package/types/components/context/tunnels.d.ts +16 -0
  33. package/types/components/dropdownMenu/DropdownMenu.d.ts +7 -5
  34. package/types/components/dropdownMenu/DropdownMenuContent.d.ts +7 -3
  35. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +2 -3
  36. package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +3 -2
  37. package/types/components/dropdownMenu/common.d.ts +6 -0
  38. package/types/components/footer/Footer.d.ts +3 -4
  39. package/types/components/hoc/withInternalFallback.d.ts +4 -0
  40. package/types/components/icons.d.ts +1 -0
  41. package/types/components/main-menu/MainMenu.d.ts +14 -9
  42. package/types/components/welcome-screen/WelcomeScreen.d.ts +2 -2
  43. package/types/constants.d.ts +11 -1
  44. package/types/data/restore.d.ts +8 -2
  45. package/types/element/Hyperlink.d.ts +11 -5
  46. package/types/element/linearElementEditor.d.ts +12 -5
  47. package/types/element/newElement.d.ts +0 -3
  48. package/types/element/sortElements.d.ts +2 -0
  49. package/types/element/textElement.d.ts +9 -8
  50. package/types/element/typeChecks.d.ts +1 -1
  51. package/types/element/types.d.ts +0 -1
  52. package/types/i18n.d.ts +6 -0
  53. package/types/jotai.d.ts +5 -5
  54. package/types/keys.d.ts +0 -3
  55. package/types/math.d.ts +1 -0
  56. package/types/packages/excalidraw/example/App.d.ts +7 -1
  57. package/types/packages/excalidraw/index.d.ts +1 -1
  58. package/types/packages/utils.d.ts +1 -1
  59. package/types/types.d.ts +21 -24
  60. package/types/utils.d.ts +9 -19
@@ -24,16 +24,15 @@ export declare const actionChangeProjectName: {
24
24
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
25
25
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
26
26
  activeTool: {
27
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
28
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
27
+ lastActiveTool: import("../types").LastActiveTool;
29
28
  locked: boolean;
29
+ } & ({
30
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
30
31
  customType: null;
31
32
  } | {
32
33
  type: "custom";
33
34
  customType: string;
34
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
35
- locked: boolean;
36
- };
35
+ });
37
36
  penMode: boolean;
38
37
  penDetected: boolean;
39
38
  exportBackground: boolean;
@@ -84,6 +83,7 @@ export declare const actionChangeProjectName: {
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,12 @@ export declare const actionChangeProjectName: {
113
113
  elementBackground?: string[] | undefined;
114
114
  elementStroke?: string[] | undefined;
115
115
  };
116
+ allowWheelZoom?: boolean | undefined;
117
+ allowPinchZoom?: boolean | undefined;
118
+ pinnedScripts?: string[] | undefined;
119
+ customPens?: any[] | undefined;
120
+ currentStrokeOptions?: any;
121
+ resetCustomPen?: any;
116
122
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
117
123
  };
118
124
  commitToHistory: false;
@@ -148,16 +154,15 @@ export declare const actionChangeExportScale: {
148
154
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
149
155
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
150
156
  activeTool: {
151
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
152
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
157
+ lastActiveTool: import("../types").LastActiveTool;
153
158
  locked: boolean;
159
+ } & ({
160
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
154
161
  customType: null;
155
162
  } | {
156
163
  type: "custom";
157
164
  customType: string;
158
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
159
- locked: boolean;
160
- };
165
+ });
161
166
  penMode: boolean;
162
167
  penDetected: boolean;
163
168
  exportBackground: boolean;
@@ -208,6 +213,7 @@ export declare const actionChangeExportScale: {
208
213
  zenModeEnabled: boolean;
209
214
  theme: string;
210
215
  gridSize: number | null;
216
+ previousGridSize: number | null;
211
217
  viewModeEnabled: boolean;
212
218
  selectedGroupIds: {
213
219
  [groupId: string]: boolean;
@@ -237,6 +243,12 @@ export declare const actionChangeExportScale: {
237
243
  elementBackground?: string[] | undefined;
238
244
  elementStroke?: string[] | undefined;
239
245
  };
246
+ allowWheelZoom?: boolean | undefined;
247
+ allowPinchZoom?: boolean | undefined;
248
+ pinnedScripts?: string[] | undefined;
249
+ customPens?: any[] | undefined;
250
+ currentStrokeOptions?: any;
251
+ resetCustomPen?: any;
240
252
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
241
253
  };
242
254
  commitToHistory: false;
@@ -272,16 +284,15 @@ export declare const actionChangeExportBackground: {
272
284
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
273
285
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
274
286
  activeTool: {
275
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
276
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
287
+ lastActiveTool: import("../types").LastActiveTool;
277
288
  locked: boolean;
289
+ } & ({
290
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
278
291
  customType: null;
279
292
  } | {
280
293
  type: "custom";
281
294
  customType: string;
282
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
283
- locked: boolean;
284
- };
295
+ });
285
296
  penMode: boolean;
286
297
  penDetected: boolean;
287
298
  exportEmbedScene: boolean;
@@ -332,6 +343,7 @@ export declare const actionChangeExportBackground: {
332
343
  zenModeEnabled: boolean;
333
344
  theme: string;
334
345
  gridSize: number | null;
346
+ previousGridSize: number | null;
335
347
  viewModeEnabled: boolean;
336
348
  selectedGroupIds: {
337
349
  [groupId: string]: boolean;
@@ -361,6 +373,12 @@ export declare const actionChangeExportBackground: {
361
373
  elementBackground?: string[] | undefined;
362
374
  elementStroke?: string[] | undefined;
363
375
  };
376
+ allowWheelZoom?: boolean | undefined;
377
+ allowPinchZoom?: boolean | undefined;
378
+ pinnedScripts?: string[] | undefined;
379
+ customPens?: any[] | undefined;
380
+ currentStrokeOptions?: any;
381
+ resetCustomPen?: any;
364
382
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
365
383
  };
366
384
  commitToHistory: false;
@@ -396,16 +414,15 @@ export declare const actionChangeExportEmbedScene: {
396
414
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
397
415
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
398
416
  activeTool: {
399
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
400
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
417
+ lastActiveTool: import("../types").LastActiveTool;
401
418
  locked: boolean;
419
+ } & ({
420
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
402
421
  customType: null;
403
422
  } | {
404
423
  type: "custom";
405
424
  customType: string;
406
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
407
- locked: boolean;
408
- };
425
+ });
409
426
  penMode: boolean;
410
427
  penDetected: boolean;
411
428
  exportBackground: boolean;
@@ -456,6 +473,7 @@ export declare const actionChangeExportEmbedScene: {
456
473
  zenModeEnabled: boolean;
457
474
  theme: string;
458
475
  gridSize: number | null;
476
+ previousGridSize: number | null;
459
477
  viewModeEnabled: boolean;
460
478
  selectedGroupIds: {
461
479
  [groupId: string]: boolean;
@@ -485,6 +503,12 @@ export declare const actionChangeExportEmbedScene: {
485
503
  elementBackground?: string[] | undefined;
486
504
  elementStroke?: string[] | undefined;
487
505
  };
506
+ allowWheelZoom?: boolean | undefined;
507
+ allowPinchZoom?: boolean | undefined;
508
+ pinnedScripts?: string[] | undefined;
509
+ customPens?: any[] | undefined;
510
+ currentStrokeOptions?: any;
511
+ resetCustomPen?: any;
488
512
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
489
513
  };
490
514
  commitToHistory: false;
@@ -524,16 +548,15 @@ export declare const actionSaveToActiveFile: {
524
548
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
525
549
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
526
550
  activeTool: {
527
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
528
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
551
+ lastActiveTool: import("../types").LastActiveTool;
529
552
  locked: boolean;
553
+ } & ({
554
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
530
555
  customType: null;
531
556
  } | {
532
557
  type: "custom";
533
558
  customType: string;
534
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
535
- locked: boolean;
536
- };
559
+ });
537
560
  penMode: boolean;
538
561
  penDetected: boolean;
539
562
  exportBackground: boolean;
@@ -580,6 +603,7 @@ export declare const actionSaveToActiveFile: {
580
603
  zenModeEnabled: boolean;
581
604
  theme: string;
582
605
  gridSize: number | null;
606
+ previousGridSize: number | null;
583
607
  viewModeEnabled: boolean;
584
608
  selectedGroupIds: {
585
609
  [groupId: string]: boolean;
@@ -608,6 +632,12 @@ export declare const actionSaveToActiveFile: {
608
632
  elementBackground?: string[] | undefined;
609
633
  elementStroke?: string[] | undefined;
610
634
  };
635
+ allowWheelZoom?: boolean | undefined;
636
+ allowPinchZoom?: boolean | undefined;
637
+ pinnedScripts?: string[] | undefined;
638
+ customPens?: any[] | undefined;
639
+ currentStrokeOptions?: any;
640
+ resetCustomPen?: any;
611
641
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
612
642
  };
613
643
  } | {
@@ -646,16 +676,15 @@ export declare const actionSaveFileToDisk: {
646
676
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
647
677
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
648
678
  activeTool: {
649
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
650
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
679
+ lastActiveTool: import("../types").LastActiveTool;
651
680
  locked: boolean;
681
+ } & ({
682
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
652
683
  customType: null;
653
684
  } | {
654
685
  type: "custom";
655
686
  customType: string;
656
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
657
- locked: boolean;
658
- };
687
+ });
659
688
  penMode: boolean;
660
689
  penDetected: boolean;
661
690
  exportBackground: boolean;
@@ -707,6 +736,7 @@ export declare const actionSaveFileToDisk: {
707
736
  zenModeEnabled: boolean;
708
737
  theme: string;
709
738
  gridSize: number | null;
739
+ previousGridSize: number | null;
710
740
  viewModeEnabled: boolean;
711
741
  selectedGroupIds: {
712
742
  [groupId: string]: boolean;
@@ -735,6 +765,12 @@ export declare const actionSaveFileToDisk: {
735
765
  elementBackground?: string[] | undefined;
736
766
  elementStroke?: string[] | undefined;
737
767
  };
768
+ allowWheelZoom?: boolean | undefined;
769
+ allowPinchZoom?: boolean | undefined;
770
+ pinnedScripts?: string[] | undefined;
771
+ customPens?: any[] | undefined;
772
+ currentStrokeOptions?: any;
773
+ resetCustomPen?: any;
738
774
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
739
775
  };
740
776
  } | {
@@ -758,16 +794,15 @@ export declare const actionLoadScene: {
758
794
  theme: string;
759
795
  name: string;
760
796
  activeTool: {
761
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
762
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
797
+ lastActiveTool: import("../types").LastActiveTool;
763
798
  locked: boolean;
799
+ } & ({
800
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
764
801
  customType: null;
765
802
  } | {
766
803
  type: "custom";
767
804
  customType: string;
768
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
769
- locked: boolean;
770
- };
805
+ });
771
806
  contextMenu: {
772
807
  items: import("../components/ContextMenu").ContextMenuItems;
773
808
  top: number;
@@ -834,6 +869,7 @@ export declare const actionLoadScene: {
834
869
  } | null;
835
870
  zenModeEnabled: boolean;
836
871
  gridSize: number | null;
872
+ previousGridSize: number | null;
837
873
  viewModeEnabled: boolean;
838
874
  selectedGroupIds: {
839
875
  [groupId: string]: boolean;
@@ -859,6 +895,12 @@ export declare const actionLoadScene: {
859
895
  elementBackground?: string[] | undefined;
860
896
  elementStroke?: string[] | undefined;
861
897
  };
898
+ allowWheelZoom?: boolean | undefined;
899
+ allowPinchZoom?: boolean | undefined;
900
+ pinnedScripts?: string[] | undefined;
901
+ customPens?: any[] | undefined;
902
+ currentStrokeOptions?: any;
903
+ resetCustomPen?: any;
862
904
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
863
905
  };
864
906
  files: import("../types").BinaryFiles;
@@ -884,16 +926,15 @@ export declare const actionLoadScene: {
884
926
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
885
927
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
886
928
  activeTool: {
887
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
888
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
929
+ lastActiveTool: import("../types").LastActiveTool;
889
930
  locked: boolean;
931
+ } & ({
932
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
890
933
  customType: null;
891
934
  } | {
892
935
  type: "custom";
893
936
  customType: string;
894
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
895
- locked: boolean;
896
- };
937
+ });
897
938
  penMode: boolean;
898
939
  penDetected: boolean;
899
940
  exportBackground: boolean;
@@ -945,6 +986,7 @@ export declare const actionLoadScene: {
945
986
  zenModeEnabled: boolean;
946
987
  theme: string;
947
988
  gridSize: number | null;
989
+ previousGridSize: number | null;
948
990
  viewModeEnabled: boolean;
949
991
  selectedGroupIds: {
950
992
  [groupId: string]: boolean;
@@ -974,6 +1016,12 @@ export declare const actionLoadScene: {
974
1016
  elementBackground?: string[] | undefined;
975
1017
  elementStroke?: string[] | undefined;
976
1018
  };
1019
+ allowWheelZoom?: boolean | undefined;
1020
+ allowPinchZoom?: boolean | undefined;
1021
+ pinnedScripts?: string[] | undefined;
1022
+ customPens?: any[] | undefined;
1023
+ currentStrokeOptions?: any;
1024
+ resetCustomPen?: any;
977
1025
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
978
1026
  };
979
1027
  files: import("../types").BinaryFiles;
@@ -1010,16 +1058,15 @@ export declare const actionExportWithDarkMode: {
1010
1058
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1011
1059
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1012
1060
  activeTool: {
1013
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
1014
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
1061
+ lastActiveTool: import("../types").LastActiveTool;
1015
1062
  locked: boolean;
1063
+ } & ({
1064
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1016
1065
  customType: null;
1017
1066
  } | {
1018
1067
  type: "custom";
1019
1068
  customType: string;
1020
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
1021
- locked: boolean;
1022
- };
1069
+ });
1023
1070
  penMode: boolean;
1024
1071
  penDetected: boolean;
1025
1072
  exportBackground: boolean;
@@ -1070,6 +1117,7 @@ export declare const actionExportWithDarkMode: {
1070
1117
  zenModeEnabled: boolean;
1071
1118
  theme: string;
1072
1119
  gridSize: number | null;
1120
+ previousGridSize: number | null;
1073
1121
  viewModeEnabled: boolean;
1074
1122
  selectedGroupIds: {
1075
1123
  [groupId: string]: boolean;
@@ -1099,6 +1147,12 @@ export declare const actionExportWithDarkMode: {
1099
1147
  elementBackground?: string[] | undefined;
1100
1148
  elementStroke?: string[] | undefined;
1101
1149
  };
1150
+ allowWheelZoom?: boolean | undefined;
1151
+ allowPinchZoom?: boolean | undefined;
1152
+ pinnedScripts?: string[] | undefined;
1153
+ customPens?: any[] | undefined;
1154
+ currentStrokeOptions?: any;
1155
+ resetCustomPen?: any;
1102
1156
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1103
1157
  };
1104
1158
  commitToHistory: false;
@@ -26,16 +26,15 @@ export declare const actionFinalize: {
26
26
  suggestedBindings: import("../element/binding").SuggestedBinding[];
27
27
  editingElement: import("../element/types").NonDeletedExcalidrawElement | 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;
@@ -86,6 +85,7 @@ export declare const actionFinalize: {
86
85
  zenModeEnabled: boolean;
87
86
  theme: string;
88
87
  gridSize: number | null;
88
+ previousGridSize: number | null;
89
89
  viewModeEnabled: boolean;
90
90
  selectedGroupIds: {
91
91
  [groupId: string]: boolean;
@@ -115,6 +115,12 @@ export declare const actionFinalize: {
115
115
  elementBackground?: string[] | undefined;
116
116
  elementStroke?: string[] | undefined;
117
117
  };
118
+ allowWheelZoom?: boolean | undefined;
119
+ allowPinchZoom?: boolean | undefined;
120
+ pinnedScripts?: string[] | undefined;
121
+ customPens?: any[] | undefined;
122
+ currentStrokeOptions?: any;
123
+ resetCustomPen?: any;
118
124
  selectedLinearElement: LinearElementEditor | null;
119
125
  };
120
126
  commitToHistory: true;
@@ -123,16 +129,15 @@ export declare const actionFinalize: {
123
129
  appState: {
124
130
  cursorButton: "up";
125
131
  activeTool: {
126
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
127
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
132
+ lastActiveTool: import("../types").LastActiveTool;
128
133
  locked: boolean;
134
+ } & ({
135
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
129
136
  customType: null;
130
137
  } | {
131
138
  type: "custom";
132
139
  customType: string;
133
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
134
- locked: boolean;
135
- };
140
+ });
136
141
  draggingElement: null;
137
142
  multiElement: null;
138
143
  editingElement: null;
@@ -202,6 +207,7 @@ export declare const actionFinalize: {
202
207
  zenModeEnabled: boolean;
203
208
  theme: string;
204
209
  gridSize: number | null;
210
+ previousGridSize: number | null;
205
211
  viewModeEnabled: boolean;
206
212
  selectedGroupIds: {
207
213
  [groupId: string]: boolean;
@@ -230,6 +236,12 @@ export declare const actionFinalize: {
230
236
  elementBackground?: string[] | undefined;
231
237
  elementStroke?: string[] | undefined;
232
238
  };
239
+ allowWheelZoom?: boolean | undefined;
240
+ allowPinchZoom?: boolean | undefined;
241
+ pinnedScripts?: string[] | undefined;
242
+ customPens?: any[] | undefined;
243
+ currentStrokeOptions?: any;
244
+ resetCustomPen?: any;
233
245
  };
234
246
  commitToHistory: boolean;
235
247
  };
@@ -26,16 +26,15 @@ export declare const actionToggleLinearEditor: {
26
26
  suggestedBindings: import("../element/binding").SuggestedBinding[];
27
27
  editingElement: import("../element/types").NonDeletedExcalidrawElement | 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 actionToggleLinearEditor: {
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;
@@ -116,6 +116,12 @@ export declare const actionToggleLinearEditor: {
116
116
  elementBackground?: string[] | undefined;
117
117
  elementStroke?: string[] | undefined;
118
118
  };
119
+ allowWheelZoom?: boolean | undefined;
120
+ allowPinchZoom?: boolean | undefined;
121
+ pinnedScripts?: string[] | undefined;
122
+ customPens?: any[] | undefined;
123
+ currentStrokeOptions?: any;
124
+ resetCustomPen?: any;
119
125
  selectedLinearElement: LinearElementEditor | null;
120
126
  };
121
127
  commitToHistory: false;
@@ -25,16 +25,15 @@ export declare const actionToggleCanvasMenu: {
25
25
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
26
26
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
27
27
  activeTool: {
28
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
29
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
28
+ lastActiveTool: import("../types").LastActiveTool;
30
29
  locked: boolean;
30
+ } & ({
31
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
31
32
  customType: null;
32
33
  } | {
33
34
  type: "custom";
34
35
  customType: string;
35
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
36
- locked: boolean;
37
- };
36
+ });
38
37
  penMode: boolean;
39
38
  penDetected: boolean;
40
39
  exportBackground: boolean;
@@ -85,6 +84,7 @@ export declare const actionToggleCanvasMenu: {
85
84
  zenModeEnabled: boolean;
86
85
  theme: string;
87
86
  gridSize: number | null;
87
+ previousGridSize: number | null;
88
88
  viewModeEnabled: boolean;
89
89
  selectedGroupIds: {
90
90
  [groupId: string]: boolean;
@@ -114,6 +114,12 @@ export declare const actionToggleCanvasMenu: {
114
114
  elementBackground?: string[] | undefined;
115
115
  elementStroke?: string[] | undefined;
116
116
  };
117
+ allowWheelZoom?: boolean | undefined;
118
+ allowPinchZoom?: boolean | undefined;
119
+ pinnedScripts?: string[] | undefined;
120
+ customPens?: any[] | undefined;
121
+ currentStrokeOptions?: any;
122
+ resetCustomPen?: any;
117
123
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
118
124
  };
119
125
  commitToHistory: false;
@@ -148,16 +154,15 @@ export declare const actionToggleEditMenu: {
148
154
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
149
155
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
150
156
  activeTool: {
151
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
152
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
157
+ lastActiveTool: import("../types").LastActiveTool;
153
158
  locked: boolean;
159
+ } & ({
160
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
154
161
  customType: null;
155
162
  } | {
156
163
  type: "custom";
157
164
  customType: string;
158
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
159
- locked: boolean;
160
- };
165
+ });
161
166
  penMode: boolean;
162
167
  penDetected: boolean;
163
168
  exportBackground: boolean;
@@ -208,6 +213,7 @@ export declare const actionToggleEditMenu: {
208
213
  zenModeEnabled: boolean;
209
214
  theme: string;
210
215
  gridSize: number | null;
216
+ previousGridSize: number | null;
211
217
  viewModeEnabled: boolean;
212
218
  selectedGroupIds: {
213
219
  [groupId: string]: boolean;
@@ -237,6 +243,12 @@ export declare const actionToggleEditMenu: {
237
243
  elementBackground?: string[] | undefined;
238
244
  elementStroke?: string[] | undefined;
239
245
  };
246
+ allowWheelZoom?: boolean | undefined;
247
+ allowPinchZoom?: boolean | undefined;
248
+ pinnedScripts?: string[] | undefined;
249
+ customPens?: any[] | undefined;
250
+ currentStrokeOptions?: any;
251
+ resetCustomPen?: any;
240
252
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
241
253
  };
242
254
  commitToHistory: false;
@@ -287,16 +299,15 @@ export declare const actionShortcuts: {
287
299
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
288
300
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
289
301
  activeTool: {
290
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
291
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
302
+ lastActiveTool: import("../types").LastActiveTool;
292
303
  locked: boolean;
304
+ } & ({
305
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
293
306
  customType: null;
294
307
  } | {
295
308
  type: "custom";
296
309
  customType: string;
297
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
298
- locked: boolean;
299
- };
310
+ });
300
311
  penMode: boolean;
301
312
  penDetected: boolean;
302
313
  exportBackground: boolean;
@@ -347,6 +358,7 @@ export declare const actionShortcuts: {
347
358
  zenModeEnabled: boolean;
348
359
  theme: string;
349
360
  gridSize: number | null;
361
+ previousGridSize: number | null;
350
362
  viewModeEnabled: boolean;
351
363
  selectedGroupIds: {
352
364
  [groupId: string]: boolean;
@@ -376,6 +388,12 @@ export declare const actionShortcuts: {
376
388
  elementBackground?: string[] | undefined;
377
389
  elementStroke?: string[] | undefined;
378
390
  };
391
+ allowWheelZoom?: boolean | undefined;
392
+ allowPinchZoom?: boolean | undefined;
393
+ pinnedScripts?: string[] | undefined;
394
+ customPens?: any[] | undefined;
395
+ currentStrokeOptions?: any;
396
+ resetCustomPen?: any;
379
397
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
380
398
  };
381
399
  commitToHistory: false;