@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.
- package/README.md +16 -1823
- package/dist/excalidraw.development.js +282 -139
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +20 -0
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +33 -15
- package/types/actions/actionBoundText.d.ts +11 -5
- package/types/actions/actionCanvas.d.ts +225 -47
- package/types/actions/actionClipboard.d.ts +55 -25
- package/types/actions/actionDeleteSelected.d.ts +35 -17
- package/types/actions/actionExport.d.ts +99 -45
- package/types/actions/actionFinalize.d.ts +22 -10
- package/types/actions/actionLinearEditor.d.ts +11 -5
- package/types/actions/actionMenu.d.ts +33 -15
- package/types/actions/actionProperties.d.ts +143 -65
- package/types/actions/actionStyles.d.ts +11 -5
- package/types/actions/actionToggleGridMode.d.ts +11 -5
- package/types/actions/actionToggleLock.d.ts +11 -5
- package/types/actions/actionToggleStats.d.ts +11 -5
- package/types/actions/actionToggleViewMode.d.ts +11 -5
- package/types/actions/actionToggleZenMode.d.ts +11 -5
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +8 -6
- package/types/components/ActiveConfirmDialog.d.ts +24 -0
- package/types/components/App.d.ts +3 -1
- package/types/components/HandButton.d.ts +10 -0
- package/types/components/LayerUI.d.ts +2 -2
- package/types/components/LockButton.d.ts +0 -1
- package/types/components/MobileMenu.d.ts +4 -4
- package/types/components/ToolButton.d.ts +1 -1
- package/types/components/context/tunnels.d.ts +16 -0
- package/types/components/dropdownMenu/DropdownMenu.d.ts +7 -5
- package/types/components/dropdownMenu/DropdownMenuContent.d.ts +7 -3
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +2 -3
- package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +3 -2
- package/types/components/dropdownMenu/common.d.ts +6 -0
- package/types/components/footer/Footer.d.ts +3 -4
- package/types/components/hoc/withInternalFallback.d.ts +4 -0
- package/types/components/icons.d.ts +1 -0
- package/types/components/main-menu/MainMenu.d.ts +14 -9
- package/types/components/welcome-screen/WelcomeScreen.d.ts +2 -2
- package/types/constants.d.ts +11 -1
- package/types/data/restore.d.ts +8 -2
- package/types/element/Hyperlink.d.ts +11 -5
- package/types/element/linearElementEditor.d.ts +12 -5
- package/types/element/newElement.d.ts +0 -3
- package/types/element/sortElements.d.ts +2 -0
- package/types/element/textElement.d.ts +9 -8
- package/types/element/typeChecks.d.ts +1 -1
- package/types/element/types.d.ts +0 -1
- package/types/i18n.d.ts +6 -0
- package/types/jotai.d.ts +5 -5
- package/types/keys.d.ts +0 -3
- package/types/math.d.ts +1 -0
- package/types/packages/excalidraw/example/App.d.ts +7 -1
- package/types/packages/excalidraw/index.d.ts +1 -1
- package/types/packages/utils.d.ts +1 -1
- package/types/types.d.ts +21 -24
- package/types/utils.d.ts +9 -19
|
@@ -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
|
-
|
|
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
|
-
|
|
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,12 @@ export declare const actionChangeFillStyle: {
|
|
|
131
131
|
elementBackground?: string[] | undefined;
|
|
132
132
|
elementStroke?: string[] | undefined;
|
|
133
133
|
};
|
|
134
|
+
allowWheelZoom?: boolean | undefined;
|
|
135
|
+
allowPinchZoom?: boolean | undefined;
|
|
136
|
+
pinnedScripts?: string[] | undefined;
|
|
137
|
+
customPens?: any[] | undefined;
|
|
138
|
+
currentStrokeOptions?: any;
|
|
139
|
+
resetCustomPen?: any;
|
|
134
140
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
135
141
|
};
|
|
136
142
|
commitToHistory: true;
|
|
@@ -164,16 +170,15 @@ export declare const actionChangeStrokeWidth: {
|
|
|
164
170
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
165
171
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
166
172
|
activeTool: {
|
|
167
|
-
|
|
168
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
173
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
169
174
|
locked: boolean;
|
|
175
|
+
} & ({
|
|
176
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
170
177
|
customType: null;
|
|
171
178
|
} | {
|
|
172
179
|
type: "custom";
|
|
173
180
|
customType: string;
|
|
174
|
-
|
|
175
|
-
locked: boolean;
|
|
176
|
-
};
|
|
181
|
+
});
|
|
177
182
|
penMode: boolean;
|
|
178
183
|
penDetected: boolean;
|
|
179
184
|
exportBackground: boolean;
|
|
@@ -224,6 +229,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
224
229
|
zenModeEnabled: boolean;
|
|
225
230
|
theme: string;
|
|
226
231
|
gridSize: number | null;
|
|
232
|
+
previousGridSize: number | null;
|
|
227
233
|
viewModeEnabled: boolean;
|
|
228
234
|
selectedGroupIds: {
|
|
229
235
|
[groupId: string]: boolean;
|
|
@@ -253,6 +259,12 @@ export declare const actionChangeStrokeWidth: {
|
|
|
253
259
|
elementBackground?: string[] | undefined;
|
|
254
260
|
elementStroke?: string[] | undefined;
|
|
255
261
|
};
|
|
262
|
+
allowWheelZoom?: boolean | undefined;
|
|
263
|
+
allowPinchZoom?: boolean | undefined;
|
|
264
|
+
pinnedScripts?: string[] | undefined;
|
|
265
|
+
customPens?: any[] | undefined;
|
|
266
|
+
currentStrokeOptions?: any;
|
|
267
|
+
resetCustomPen?: any;
|
|
256
268
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
257
269
|
};
|
|
258
270
|
commitToHistory: true;
|
|
@@ -286,16 +298,15 @@ export declare const actionChangeSloppiness: {
|
|
|
286
298
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
287
299
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
288
300
|
activeTool: {
|
|
289
|
-
|
|
290
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
301
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
291
302
|
locked: boolean;
|
|
303
|
+
} & ({
|
|
304
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
292
305
|
customType: null;
|
|
293
306
|
} | {
|
|
294
307
|
type: "custom";
|
|
295
308
|
customType: string;
|
|
296
|
-
|
|
297
|
-
locked: boolean;
|
|
298
|
-
};
|
|
309
|
+
});
|
|
299
310
|
penMode: boolean;
|
|
300
311
|
penDetected: boolean;
|
|
301
312
|
exportBackground: boolean;
|
|
@@ -346,6 +357,7 @@ export declare const actionChangeSloppiness: {
|
|
|
346
357
|
zenModeEnabled: boolean;
|
|
347
358
|
theme: string;
|
|
348
359
|
gridSize: number | null;
|
|
360
|
+
previousGridSize: number | null;
|
|
349
361
|
viewModeEnabled: boolean;
|
|
350
362
|
selectedGroupIds: {
|
|
351
363
|
[groupId: string]: boolean;
|
|
@@ -375,6 +387,12 @@ export declare const actionChangeSloppiness: {
|
|
|
375
387
|
elementBackground?: string[] | undefined;
|
|
376
388
|
elementStroke?: string[] | undefined;
|
|
377
389
|
};
|
|
390
|
+
allowWheelZoom?: boolean | undefined;
|
|
391
|
+
allowPinchZoom?: boolean | undefined;
|
|
392
|
+
pinnedScripts?: string[] | undefined;
|
|
393
|
+
customPens?: any[] | undefined;
|
|
394
|
+
currentStrokeOptions?: any;
|
|
395
|
+
resetCustomPen?: any;
|
|
378
396
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
379
397
|
};
|
|
380
398
|
commitToHistory: true;
|
|
@@ -408,16 +426,15 @@ export declare const actionChangeStrokeStyle: {
|
|
|
408
426
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
409
427
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
410
428
|
activeTool: {
|
|
411
|
-
|
|
412
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
429
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
413
430
|
locked: boolean;
|
|
431
|
+
} & ({
|
|
432
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
414
433
|
customType: null;
|
|
415
434
|
} | {
|
|
416
435
|
type: "custom";
|
|
417
436
|
customType: string;
|
|
418
|
-
|
|
419
|
-
locked: boolean;
|
|
420
|
-
};
|
|
437
|
+
});
|
|
421
438
|
penMode: boolean;
|
|
422
439
|
penDetected: boolean;
|
|
423
440
|
exportBackground: boolean;
|
|
@@ -468,6 +485,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
468
485
|
zenModeEnabled: boolean;
|
|
469
486
|
theme: string;
|
|
470
487
|
gridSize: number | null;
|
|
488
|
+
previousGridSize: number | null;
|
|
471
489
|
viewModeEnabled: boolean;
|
|
472
490
|
selectedGroupIds: {
|
|
473
491
|
[groupId: string]: boolean;
|
|
@@ -497,6 +515,12 @@ export declare const actionChangeStrokeStyle: {
|
|
|
497
515
|
elementBackground?: string[] | undefined;
|
|
498
516
|
elementStroke?: string[] | undefined;
|
|
499
517
|
};
|
|
518
|
+
allowWheelZoom?: boolean | undefined;
|
|
519
|
+
allowPinchZoom?: boolean | undefined;
|
|
520
|
+
pinnedScripts?: string[] | undefined;
|
|
521
|
+
customPens?: any[] | undefined;
|
|
522
|
+
currentStrokeOptions?: any;
|
|
523
|
+
resetCustomPen?: any;
|
|
500
524
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
501
525
|
};
|
|
502
526
|
commitToHistory: true;
|
|
@@ -530,16 +554,15 @@ export declare const actionChangeOpacity: {
|
|
|
530
554
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
531
555
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
532
556
|
activeTool: {
|
|
533
|
-
|
|
534
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
557
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
535
558
|
locked: boolean;
|
|
559
|
+
} & ({
|
|
560
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
536
561
|
customType: null;
|
|
537
562
|
} | {
|
|
538
563
|
type: "custom";
|
|
539
564
|
customType: string;
|
|
540
|
-
|
|
541
|
-
locked: boolean;
|
|
542
|
-
};
|
|
565
|
+
});
|
|
543
566
|
penMode: boolean;
|
|
544
567
|
penDetected: boolean;
|
|
545
568
|
exportBackground: boolean;
|
|
@@ -590,6 +613,7 @@ export declare const actionChangeOpacity: {
|
|
|
590
613
|
zenModeEnabled: boolean;
|
|
591
614
|
theme: string;
|
|
592
615
|
gridSize: number | null;
|
|
616
|
+
previousGridSize: number | null;
|
|
593
617
|
viewModeEnabled: boolean;
|
|
594
618
|
selectedGroupIds: {
|
|
595
619
|
[groupId: string]: boolean;
|
|
@@ -619,6 +643,12 @@ export declare const actionChangeOpacity: {
|
|
|
619
643
|
elementBackground?: string[] | undefined;
|
|
620
644
|
elementStroke?: string[] | undefined;
|
|
621
645
|
};
|
|
646
|
+
allowWheelZoom?: boolean | undefined;
|
|
647
|
+
allowPinchZoom?: boolean | undefined;
|
|
648
|
+
pinnedScripts?: string[] | undefined;
|
|
649
|
+
customPens?: any[] | undefined;
|
|
650
|
+
currentStrokeOptions?: any;
|
|
651
|
+
resetCustomPen?: any;
|
|
622
652
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
623
653
|
};
|
|
624
654
|
commitToHistory: true;
|
|
@@ -652,16 +682,15 @@ export declare const actionChangeFontSize: {
|
|
|
652
682
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
653
683
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
654
684
|
activeTool: {
|
|
655
|
-
|
|
656
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
685
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
657
686
|
locked: boolean;
|
|
687
|
+
} & ({
|
|
688
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
658
689
|
customType: null;
|
|
659
690
|
} | {
|
|
660
691
|
type: "custom";
|
|
661
692
|
customType: string;
|
|
662
|
-
|
|
663
|
-
locked: boolean;
|
|
664
|
-
};
|
|
693
|
+
});
|
|
665
694
|
penMode: boolean;
|
|
666
695
|
penDetected: boolean;
|
|
667
696
|
exportBackground: boolean;
|
|
@@ -712,6 +741,7 @@ export declare const actionChangeFontSize: {
|
|
|
712
741
|
zenModeEnabled: boolean;
|
|
713
742
|
theme: string;
|
|
714
743
|
gridSize: number | null;
|
|
744
|
+
previousGridSize: number | null;
|
|
715
745
|
viewModeEnabled: boolean;
|
|
716
746
|
selectedGroupIds: {
|
|
717
747
|
[groupId: string]: boolean;
|
|
@@ -741,6 +771,12 @@ export declare const actionChangeFontSize: {
|
|
|
741
771
|
elementBackground?: string[] | undefined;
|
|
742
772
|
elementStroke?: string[] | undefined;
|
|
743
773
|
};
|
|
774
|
+
allowWheelZoom?: boolean | undefined;
|
|
775
|
+
allowPinchZoom?: boolean | undefined;
|
|
776
|
+
pinnedScripts?: string[] | undefined;
|
|
777
|
+
customPens?: any[] | undefined;
|
|
778
|
+
currentStrokeOptions?: any;
|
|
779
|
+
resetCustomPen?: any;
|
|
744
780
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
745
781
|
};
|
|
746
782
|
commitToHistory: boolean;
|
|
@@ -774,16 +810,15 @@ export declare const actionDecreaseFontSize: {
|
|
|
774
810
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
775
811
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
776
812
|
activeTool: {
|
|
777
|
-
|
|
778
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
813
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
779
814
|
locked: boolean;
|
|
815
|
+
} & ({
|
|
816
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
780
817
|
customType: null;
|
|
781
818
|
} | {
|
|
782
819
|
type: "custom";
|
|
783
820
|
customType: string;
|
|
784
|
-
|
|
785
|
-
locked: boolean;
|
|
786
|
-
};
|
|
821
|
+
});
|
|
787
822
|
penMode: boolean;
|
|
788
823
|
penDetected: boolean;
|
|
789
824
|
exportBackground: boolean;
|
|
@@ -834,6 +869,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
834
869
|
zenModeEnabled: boolean;
|
|
835
870
|
theme: string;
|
|
836
871
|
gridSize: number | null;
|
|
872
|
+
previousGridSize: number | null;
|
|
837
873
|
viewModeEnabled: boolean;
|
|
838
874
|
selectedGroupIds: {
|
|
839
875
|
[groupId: string]: boolean;
|
|
@@ -863,6 +899,12 @@ export declare const actionDecreaseFontSize: {
|
|
|
863
899
|
elementBackground?: string[] | undefined;
|
|
864
900
|
elementStroke?: string[] | undefined;
|
|
865
901
|
};
|
|
902
|
+
allowWheelZoom?: boolean | undefined;
|
|
903
|
+
allowPinchZoom?: boolean | undefined;
|
|
904
|
+
pinnedScripts?: string[] | undefined;
|
|
905
|
+
customPens?: any[] | undefined;
|
|
906
|
+
currentStrokeOptions?: any;
|
|
907
|
+
resetCustomPen?: any;
|
|
866
908
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
867
909
|
};
|
|
868
910
|
commitToHistory: boolean;
|
|
@@ -896,16 +938,15 @@ export declare const actionIncreaseFontSize: {
|
|
|
896
938
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
897
939
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
898
940
|
activeTool: {
|
|
899
|
-
|
|
900
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
941
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
901
942
|
locked: boolean;
|
|
943
|
+
} & ({
|
|
944
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
902
945
|
customType: null;
|
|
903
946
|
} | {
|
|
904
947
|
type: "custom";
|
|
905
948
|
customType: string;
|
|
906
|
-
|
|
907
|
-
locked: boolean;
|
|
908
|
-
};
|
|
949
|
+
});
|
|
909
950
|
penMode: boolean;
|
|
910
951
|
penDetected: boolean;
|
|
911
952
|
exportBackground: boolean;
|
|
@@ -956,6 +997,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
956
997
|
zenModeEnabled: boolean;
|
|
957
998
|
theme: string;
|
|
958
999
|
gridSize: number | null;
|
|
1000
|
+
previousGridSize: number | null;
|
|
959
1001
|
viewModeEnabled: boolean;
|
|
960
1002
|
selectedGroupIds: {
|
|
961
1003
|
[groupId: string]: boolean;
|
|
@@ -985,6 +1027,12 @@ export declare const actionIncreaseFontSize: {
|
|
|
985
1027
|
elementBackground?: string[] | undefined;
|
|
986
1028
|
elementStroke?: string[] | undefined;
|
|
987
1029
|
};
|
|
1030
|
+
allowWheelZoom?: boolean | undefined;
|
|
1031
|
+
allowPinchZoom?: boolean | undefined;
|
|
1032
|
+
pinnedScripts?: string[] | undefined;
|
|
1033
|
+
customPens?: any[] | undefined;
|
|
1034
|
+
currentStrokeOptions?: any;
|
|
1035
|
+
resetCustomPen?: any;
|
|
988
1036
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
989
1037
|
};
|
|
990
1038
|
commitToHistory: boolean;
|
|
@@ -1018,16 +1066,15 @@ export declare const actionChangeFontFamily: {
|
|
|
1018
1066
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1019
1067
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1020
1068
|
activeTool: {
|
|
1021
|
-
|
|
1022
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
1069
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1023
1070
|
locked: boolean;
|
|
1071
|
+
} & ({
|
|
1072
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1024
1073
|
customType: null;
|
|
1025
1074
|
} | {
|
|
1026
1075
|
type: "custom";
|
|
1027
1076
|
customType: string;
|
|
1028
|
-
|
|
1029
|
-
locked: boolean;
|
|
1030
|
-
};
|
|
1077
|
+
});
|
|
1031
1078
|
penMode: boolean;
|
|
1032
1079
|
penDetected: boolean;
|
|
1033
1080
|
exportBackground: boolean;
|
|
@@ -1078,6 +1125,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1078
1125
|
zenModeEnabled: boolean;
|
|
1079
1126
|
theme: string;
|
|
1080
1127
|
gridSize: number | null;
|
|
1128
|
+
previousGridSize: number | null;
|
|
1081
1129
|
viewModeEnabled: boolean;
|
|
1082
1130
|
selectedGroupIds: {
|
|
1083
1131
|
[groupId: string]: boolean;
|
|
@@ -1107,6 +1155,12 @@ export declare const actionChangeFontFamily: {
|
|
|
1107
1155
|
elementBackground?: string[] | undefined;
|
|
1108
1156
|
elementStroke?: string[] | undefined;
|
|
1109
1157
|
};
|
|
1158
|
+
allowWheelZoom?: boolean | undefined;
|
|
1159
|
+
allowPinchZoom?: boolean | undefined;
|
|
1160
|
+
pinnedScripts?: string[] | undefined;
|
|
1161
|
+
customPens?: any[] | undefined;
|
|
1162
|
+
currentStrokeOptions?: any;
|
|
1163
|
+
resetCustomPen?: any;
|
|
1110
1164
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1111
1165
|
};
|
|
1112
1166
|
commitToHistory: true;
|
|
@@ -1140,16 +1194,15 @@ export declare const actionChangeTextAlign: {
|
|
|
1140
1194
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1141
1195
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1142
1196
|
activeTool: {
|
|
1143
|
-
|
|
1144
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
1197
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1145
1198
|
locked: boolean;
|
|
1199
|
+
} & ({
|
|
1200
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1146
1201
|
customType: null;
|
|
1147
1202
|
} | {
|
|
1148
1203
|
type: "custom";
|
|
1149
1204
|
customType: string;
|
|
1150
|
-
|
|
1151
|
-
locked: boolean;
|
|
1152
|
-
};
|
|
1205
|
+
});
|
|
1153
1206
|
penMode: boolean;
|
|
1154
1207
|
penDetected: boolean;
|
|
1155
1208
|
exportBackground: boolean;
|
|
@@ -1200,6 +1253,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1200
1253
|
zenModeEnabled: boolean;
|
|
1201
1254
|
theme: string;
|
|
1202
1255
|
gridSize: number | null;
|
|
1256
|
+
previousGridSize: number | null;
|
|
1203
1257
|
viewModeEnabled: boolean;
|
|
1204
1258
|
selectedGroupIds: {
|
|
1205
1259
|
[groupId: string]: boolean;
|
|
@@ -1229,6 +1283,12 @@ export declare const actionChangeTextAlign: {
|
|
|
1229
1283
|
elementBackground?: string[] | undefined;
|
|
1230
1284
|
elementStroke?: string[] | undefined;
|
|
1231
1285
|
};
|
|
1286
|
+
allowWheelZoom?: boolean | undefined;
|
|
1287
|
+
allowPinchZoom?: boolean | undefined;
|
|
1288
|
+
pinnedScripts?: string[] | undefined;
|
|
1289
|
+
customPens?: any[] | undefined;
|
|
1290
|
+
currentStrokeOptions?: any;
|
|
1291
|
+
resetCustomPen?: any;
|
|
1232
1292
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1233
1293
|
};
|
|
1234
1294
|
commitToHistory: true;
|
|
@@ -1263,16 +1323,15 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1263
1323
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1264
1324
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1265
1325
|
activeTool: {
|
|
1266
|
-
|
|
1267
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
1326
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1268
1327
|
locked: boolean;
|
|
1328
|
+
} & ({
|
|
1329
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1269
1330
|
customType: null;
|
|
1270
1331
|
} | {
|
|
1271
1332
|
type: "custom";
|
|
1272
1333
|
customType: string;
|
|
1273
|
-
|
|
1274
|
-
locked: boolean;
|
|
1275
|
-
};
|
|
1334
|
+
});
|
|
1276
1335
|
penMode: boolean;
|
|
1277
1336
|
penDetected: boolean;
|
|
1278
1337
|
exportBackground: boolean;
|
|
@@ -1324,6 +1383,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1324
1383
|
zenModeEnabled: boolean;
|
|
1325
1384
|
theme: string;
|
|
1326
1385
|
gridSize: number | null;
|
|
1386
|
+
previousGridSize: number | null;
|
|
1327
1387
|
viewModeEnabled: boolean;
|
|
1328
1388
|
selectedGroupIds: {
|
|
1329
1389
|
[groupId: string]: boolean;
|
|
@@ -1353,6 +1413,12 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1353
1413
|
elementBackground?: string[] | undefined;
|
|
1354
1414
|
elementStroke?: string[] | undefined;
|
|
1355
1415
|
};
|
|
1416
|
+
allowWheelZoom?: boolean | undefined;
|
|
1417
|
+
allowPinchZoom?: boolean | undefined;
|
|
1418
|
+
pinnedScripts?: string[] | undefined;
|
|
1419
|
+
customPens?: any[] | undefined;
|
|
1420
|
+
currentStrokeOptions?: any;
|
|
1421
|
+
resetCustomPen?: any;
|
|
1356
1422
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1357
1423
|
};
|
|
1358
1424
|
commitToHistory: true;
|
|
@@ -1386,16 +1452,15 @@ export declare const actionChangeRoundness: {
|
|
|
1386
1452
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1387
1453
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1388
1454
|
activeTool: {
|
|
1389
|
-
|
|
1390
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
1455
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1391
1456
|
locked: boolean;
|
|
1457
|
+
} & ({
|
|
1458
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1392
1459
|
customType: null;
|
|
1393
1460
|
} | {
|
|
1394
1461
|
type: "custom";
|
|
1395
1462
|
customType: string;
|
|
1396
|
-
|
|
1397
|
-
locked: boolean;
|
|
1398
|
-
};
|
|
1463
|
+
});
|
|
1399
1464
|
penMode: boolean;
|
|
1400
1465
|
penDetected: boolean;
|
|
1401
1466
|
exportBackground: boolean;
|
|
@@ -1446,6 +1511,7 @@ export declare const actionChangeRoundness: {
|
|
|
1446
1511
|
zenModeEnabled: boolean;
|
|
1447
1512
|
theme: string;
|
|
1448
1513
|
gridSize: number | null;
|
|
1514
|
+
previousGridSize: number | null;
|
|
1449
1515
|
viewModeEnabled: boolean;
|
|
1450
1516
|
selectedGroupIds: {
|
|
1451
1517
|
[groupId: string]: boolean;
|
|
@@ -1475,6 +1541,12 @@ export declare const actionChangeRoundness: {
|
|
|
1475
1541
|
elementBackground?: string[] | undefined;
|
|
1476
1542
|
elementStroke?: string[] | undefined;
|
|
1477
1543
|
};
|
|
1544
|
+
allowWheelZoom?: boolean | undefined;
|
|
1545
|
+
allowPinchZoom?: boolean | undefined;
|
|
1546
|
+
pinnedScripts?: string[] | undefined;
|
|
1547
|
+
customPens?: any[] | undefined;
|
|
1548
|
+
currentStrokeOptions?: any;
|
|
1549
|
+
resetCustomPen?: any;
|
|
1478
1550
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1479
1551
|
};
|
|
1480
1552
|
commitToHistory: true;
|
|
@@ -1510,16 +1582,15 @@ export declare const actionChangeArrowhead: {
|
|
|
1510
1582
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1511
1583
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1512
1584
|
activeTool: {
|
|
1513
|
-
|
|
1514
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
1585
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1515
1586
|
locked: boolean;
|
|
1587
|
+
} & ({
|
|
1588
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1516
1589
|
customType: null;
|
|
1517
1590
|
} | {
|
|
1518
1591
|
type: "custom";
|
|
1519
1592
|
customType: string;
|
|
1520
|
-
|
|
1521
|
-
locked: boolean;
|
|
1522
|
-
};
|
|
1593
|
+
});
|
|
1523
1594
|
penMode: boolean;
|
|
1524
1595
|
penDetected: boolean;
|
|
1525
1596
|
exportBackground: boolean;
|
|
@@ -1571,6 +1642,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1571
1642
|
zenModeEnabled: boolean;
|
|
1572
1643
|
theme: string;
|
|
1573
1644
|
gridSize: number | null;
|
|
1645
|
+
previousGridSize: number | null;
|
|
1574
1646
|
viewModeEnabled: boolean;
|
|
1575
1647
|
selectedGroupIds: {
|
|
1576
1648
|
[groupId: string]: boolean;
|
|
@@ -1600,6 +1672,12 @@ export declare const actionChangeArrowhead: {
|
|
|
1600
1672
|
elementBackground?: string[] | undefined;
|
|
1601
1673
|
elementStroke?: string[] | undefined;
|
|
1602
1674
|
};
|
|
1675
|
+
allowWheelZoom?: boolean | undefined;
|
|
1676
|
+
allowPinchZoom?: boolean | undefined;
|
|
1677
|
+
pinnedScripts?: string[] | undefined;
|
|
1678
|
+
customPens?: any[] | undefined;
|
|
1679
|
+
currentStrokeOptions?: any;
|
|
1680
|
+
resetCustomPen?: any;
|
|
1603
1681
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1604
1682
|
};
|
|
1605
1683
|
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
|
-
|
|
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
|
-
|
|
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,12 @@ export declare const actionCopyStyles: {
|
|
|
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;
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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,12 @@ export declare const actionToggleGridMode: {
|
|
|
117
117
|
elementBackground?: string[] | undefined;
|
|
118
118
|
elementStroke?: string[] | undefined;
|
|
119
119
|
};
|
|
120
|
+
allowWheelZoom?: boolean | undefined;
|
|
121
|
+
allowPinchZoom?: boolean | undefined;
|
|
122
|
+
pinnedScripts?: string[] | undefined;
|
|
123
|
+
customPens?: any[] | undefined;
|
|
124
|
+
currentStrokeOptions?: any;
|
|
125
|
+
resetCustomPen?: any;
|
|
120
126
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
121
127
|
};
|
|
122
128
|
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
|
-
|
|
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
|
-
|
|
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,12 @@ export declare const actionToggleLock: {
|
|
|
117
117
|
elementBackground?: string[] | undefined;
|
|
118
118
|
elementStroke?: string[] | undefined;
|
|
119
119
|
};
|
|
120
|
+
allowWheelZoom?: boolean | undefined;
|
|
121
|
+
allowPinchZoom?: boolean | undefined;
|
|
122
|
+
pinnedScripts?: string[] | undefined;
|
|
123
|
+
customPens?: any[] | undefined;
|
|
124
|
+
currentStrokeOptions?: any;
|
|
125
|
+
resetCustomPen?: any;
|
|
120
126
|
};
|
|
121
127
|
commitToHistory: true;
|
|
122
128
|
};
|