@excalidraw/excalidraw 0.16.1-4c35eba → 0.16.1-aaf73c8
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/CHANGELOG.md +6 -0
- package/dist/excalidraw.development.js +140 -63
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +9 -27
- package/types/actions/actionAlign.d.ts +8 -8
- package/types/actions/actionBoundText.d.ts +6 -18
- package/types/actions/actionCanvas.d.ts +57 -123
- package/types/actions/actionClipboard.d.ts +19 -49
- package/types/actions/actionDeleteSelected.d.ts +11 -29
- package/types/actions/actionDistribute.d.ts +4 -4
- package/types/actions/actionDuplicateSelection.d.ts +2 -2
- package/types/actions/actionElementLock.d.ts +8 -20
- package/types/actions/actionExport.d.ts +42 -96
- package/types/actions/actionFinalize.d.ts +8 -20
- package/types/actions/actionFlip.d.ts +4 -4
- package/types/actions/actionFrame.d.ts +11 -29
- package/types/actions/actionGroup.d.ts +10 -22
- package/types/actions/actionLinearEditor.d.ts +3 -9
- package/types/actions/actionMenu.d.ts +11 -29
- package/types/actions/actionProperties.d.ts +43 -121
- package/types/actions/actionSelectAll.d.ts +5 -11
- package/types/actions/actionStyles.d.ts +7 -13
- package/types/actions/actionToggleGridMode.d.ts +5 -11
- package/types/actions/actionToggleObjectsSnapMode.d.ts +5 -11
- package/types/actions/actionToggleStats.d.ts +5 -11
- package/types/actions/actionToggleViewMode.d.ts +5 -11
- package/types/actions/actionToggleZenMode.d.ts +5 -11
- package/types/actions/actionZindex.d.ts +8 -8
- package/types/appState.d.ts +5 -11
- package/types/components/Actions.d.ts +4 -9
- package/types/components/App.d.ts +15 -5
- package/types/components/LaserTool/LaserPathManager.d.ts +28 -0
- package/types/components/LaserTool/LaserPointerButton.d.ts +10 -0
- package/types/components/LaserTool/LaserTool.d.ts +7 -0
- package/types/components/LayerUI.d.ts +2 -5
- package/types/components/MobileMenu.d.ts +1 -5
- package/types/components/Sidebar/Sidebar.d.ts +1 -1
- package/types/components/Stack.d.ts +2 -2
- package/types/components/dropdownMenu/DropdownMenu.d.ts +6 -3
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +2 -1
- package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -1
- package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +2 -1
- package/types/components/dropdownMenu/common.d.ts +1 -1
- package/types/components/icons.d.ts +2 -0
- package/types/components/main-menu/MainMenu.d.ts +6 -3
- package/types/cursor.d.ts +5 -0
- package/types/element/Hyperlink.d.ts +5 -11
- package/types/element/embeddable.d.ts +3 -9
- package/types/element/linearElementEditor.d.ts +3 -9
- package/types/element/mutateElement.d.ts +1 -1
- package/types/frame.d.ts +5 -0
- package/types/types.d.ts +16 -17
- package/types/utils.d.ts +3 -8
|
@@ -37,15 +37,9 @@ export declare const actionToggleCanvasMenu: {
|
|
|
37
37
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
38
38
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
39
39
|
activeTool: {
|
|
40
|
-
lastActiveTool: import("../types").
|
|
40
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
41
41
|
locked: boolean;
|
|
42
|
-
} & (
|
|
43
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
44
|
-
customType: null;
|
|
45
|
-
} | {
|
|
46
|
-
type: "custom";
|
|
47
|
-
customType: string;
|
|
48
|
-
});
|
|
42
|
+
} & import("../types").ActiveTool;
|
|
49
43
|
penMode: boolean;
|
|
50
44
|
penDetected: boolean;
|
|
51
45
|
exportBackground: boolean;
|
|
@@ -123,7 +117,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
123
117
|
pendingImageElementId: string | null;
|
|
124
118
|
showHyperlinkPopup: false | "editor" | "info";
|
|
125
119
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
126
|
-
snapLines: import("../snapping").SnapLine[];
|
|
120
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
127
121
|
originSnapOffset: {
|
|
128
122
|
x: number;
|
|
129
123
|
y: number;
|
|
@@ -175,15 +169,9 @@ export declare const actionToggleEditMenu: {
|
|
|
175
169
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
176
170
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
177
171
|
activeTool: {
|
|
178
|
-
lastActiveTool: import("../types").
|
|
172
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
179
173
|
locked: boolean;
|
|
180
|
-
} & (
|
|
181
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
182
|
-
customType: null;
|
|
183
|
-
} | {
|
|
184
|
-
type: "custom";
|
|
185
|
-
customType: string;
|
|
186
|
-
});
|
|
174
|
+
} & import("../types").ActiveTool;
|
|
187
175
|
penMode: boolean;
|
|
188
176
|
penDetected: boolean;
|
|
189
177
|
exportBackground: boolean;
|
|
@@ -261,7 +249,7 @@ export declare const actionToggleEditMenu: {
|
|
|
261
249
|
pendingImageElementId: string | null;
|
|
262
250
|
showHyperlinkPopup: false | "editor" | "info";
|
|
263
251
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
264
|
-
snapLines: import("../snapping").SnapLine[];
|
|
252
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
265
253
|
originSnapOffset: {
|
|
266
254
|
x: number;
|
|
267
255
|
y: number;
|
|
@@ -328,15 +316,9 @@ export declare const actionShortcuts: {
|
|
|
328
316
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
329
317
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
330
318
|
activeTool: {
|
|
331
|
-
lastActiveTool: import("../types").
|
|
319
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
332
320
|
locked: boolean;
|
|
333
|
-
} & (
|
|
334
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
335
|
-
customType: null;
|
|
336
|
-
} | {
|
|
337
|
-
type: "custom";
|
|
338
|
-
customType: string;
|
|
339
|
-
});
|
|
321
|
+
} & import("../types").ActiveTool;
|
|
340
322
|
penMode: boolean;
|
|
341
323
|
penDetected: boolean;
|
|
342
324
|
exportBackground: boolean;
|
|
@@ -414,7 +396,7 @@ export declare const actionShortcuts: {
|
|
|
414
396
|
pendingImageElementId: string | null;
|
|
415
397
|
showHyperlinkPopup: false | "editor" | "info";
|
|
416
398
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
417
|
-
snapLines: import("../snapping").SnapLine[];
|
|
399
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
418
400
|
originSnapOffset: {
|
|
419
401
|
x: number;
|
|
420
402
|
y: number;
|
|
@@ -423,7 +405,7 @@ export declare const actionShortcuts: {
|
|
|
423
405
|
};
|
|
424
406
|
commitToHistory: false;
|
|
425
407
|
};
|
|
426
|
-
keyTest: (event:
|
|
408
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
427
409
|
} & {
|
|
428
|
-
keyTest?: ((event:
|
|
410
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
429
411
|
};
|
|
@@ -56,15 +56,9 @@ export declare const actionChangeFillStyle: {
|
|
|
56
56
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
57
57
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
58
58
|
activeTool: {
|
|
59
|
-
lastActiveTool: import("../../src/types").
|
|
59
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
60
60
|
locked: boolean;
|
|
61
|
-
} & (
|
|
62
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
63
|
-
customType: null;
|
|
64
|
-
} | {
|
|
65
|
-
type: "custom";
|
|
66
|
-
customType: string;
|
|
67
|
-
});
|
|
61
|
+
} & import("../../src/types").ActiveTool;
|
|
68
62
|
penMode: boolean;
|
|
69
63
|
penDetected: boolean;
|
|
70
64
|
exportBackground: boolean;
|
|
@@ -142,7 +136,7 @@ export declare const actionChangeFillStyle: {
|
|
|
142
136
|
pendingImageElementId: string | null;
|
|
143
137
|
showHyperlinkPopup: false | "editor" | "info";
|
|
144
138
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
145
|
-
snapLines: import("../snapping").SnapLine[];
|
|
139
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
146
140
|
originSnapOffset: {
|
|
147
141
|
x: number;
|
|
148
142
|
y: number;
|
|
@@ -193,15 +187,9 @@ export declare const actionChangeStrokeWidth: {
|
|
|
193
187
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
194
188
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
195
189
|
activeTool: {
|
|
196
|
-
lastActiveTool: import("../../src/types").
|
|
190
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
197
191
|
locked: boolean;
|
|
198
|
-
} & (
|
|
199
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
200
|
-
customType: null;
|
|
201
|
-
} | {
|
|
202
|
-
type: "custom";
|
|
203
|
-
customType: string;
|
|
204
|
-
});
|
|
192
|
+
} & import("../../src/types").ActiveTool;
|
|
205
193
|
penMode: boolean;
|
|
206
194
|
penDetected: boolean;
|
|
207
195
|
exportBackground: boolean;
|
|
@@ -279,7 +267,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
279
267
|
pendingImageElementId: string | null;
|
|
280
268
|
showHyperlinkPopup: false | "editor" | "info";
|
|
281
269
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
282
|
-
snapLines: import("../snapping").SnapLine[];
|
|
270
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
283
271
|
originSnapOffset: {
|
|
284
272
|
x: number;
|
|
285
273
|
y: number;
|
|
@@ -330,15 +318,9 @@ export declare const actionChangeSloppiness: {
|
|
|
330
318
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
331
319
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
332
320
|
activeTool: {
|
|
333
|
-
lastActiveTool: import("../../src/types").
|
|
321
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
334
322
|
locked: boolean;
|
|
335
|
-
} & (
|
|
336
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
337
|
-
customType: null;
|
|
338
|
-
} | {
|
|
339
|
-
type: "custom";
|
|
340
|
-
customType: string;
|
|
341
|
-
});
|
|
323
|
+
} & import("../../src/types").ActiveTool;
|
|
342
324
|
penMode: boolean;
|
|
343
325
|
penDetected: boolean;
|
|
344
326
|
exportBackground: boolean;
|
|
@@ -416,7 +398,7 @@ export declare const actionChangeSloppiness: {
|
|
|
416
398
|
pendingImageElementId: string | null;
|
|
417
399
|
showHyperlinkPopup: false | "editor" | "info";
|
|
418
400
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
419
|
-
snapLines: import("../snapping").SnapLine[];
|
|
401
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
420
402
|
originSnapOffset: {
|
|
421
403
|
x: number;
|
|
422
404
|
y: number;
|
|
@@ -467,15 +449,9 @@ export declare const actionChangeStrokeStyle: {
|
|
|
467
449
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
468
450
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
469
451
|
activeTool: {
|
|
470
|
-
lastActiveTool: import("../../src/types").
|
|
452
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
471
453
|
locked: boolean;
|
|
472
|
-
} & (
|
|
473
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
474
|
-
customType: null;
|
|
475
|
-
} | {
|
|
476
|
-
type: "custom";
|
|
477
|
-
customType: string;
|
|
478
|
-
});
|
|
454
|
+
} & import("../../src/types").ActiveTool;
|
|
479
455
|
penMode: boolean;
|
|
480
456
|
penDetected: boolean;
|
|
481
457
|
exportBackground: boolean;
|
|
@@ -553,7 +529,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
553
529
|
pendingImageElementId: string | null;
|
|
554
530
|
showHyperlinkPopup: false | "editor" | "info";
|
|
555
531
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
556
|
-
snapLines: import("../snapping").SnapLine[];
|
|
532
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
557
533
|
originSnapOffset: {
|
|
558
534
|
x: number;
|
|
559
535
|
y: number;
|
|
@@ -604,15 +580,9 @@ export declare const actionChangeOpacity: {
|
|
|
604
580
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
605
581
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
606
582
|
activeTool: {
|
|
607
|
-
lastActiveTool: import("../../src/types").
|
|
583
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
608
584
|
locked: boolean;
|
|
609
|
-
} & (
|
|
610
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
611
|
-
customType: null;
|
|
612
|
-
} | {
|
|
613
|
-
type: "custom";
|
|
614
|
-
customType: string;
|
|
615
|
-
});
|
|
585
|
+
} & import("../../src/types").ActiveTool;
|
|
616
586
|
penMode: boolean;
|
|
617
587
|
penDetected: boolean;
|
|
618
588
|
exportBackground: boolean;
|
|
@@ -690,7 +660,7 @@ export declare const actionChangeOpacity: {
|
|
|
690
660
|
pendingImageElementId: string | null;
|
|
691
661
|
showHyperlinkPopup: false | "editor" | "info";
|
|
692
662
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
693
|
-
snapLines: import("../snapping").SnapLine[];
|
|
663
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
694
664
|
originSnapOffset: {
|
|
695
665
|
x: number;
|
|
696
666
|
y: number;
|
|
@@ -741,15 +711,9 @@ export declare const actionChangeFontSize: {
|
|
|
741
711
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
742
712
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
743
713
|
activeTool: {
|
|
744
|
-
lastActiveTool: import("../../src/types").
|
|
714
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
745
715
|
locked: boolean;
|
|
746
|
-
} & (
|
|
747
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
748
|
-
customType: null;
|
|
749
|
-
} | {
|
|
750
|
-
type: "custom";
|
|
751
|
-
customType: string;
|
|
752
|
-
});
|
|
716
|
+
} & import("../../src/types").ActiveTool;
|
|
753
717
|
penMode: boolean;
|
|
754
718
|
penDetected: boolean;
|
|
755
719
|
exportBackground: boolean;
|
|
@@ -827,7 +791,7 @@ export declare const actionChangeFontSize: {
|
|
|
827
791
|
pendingImageElementId: string | null;
|
|
828
792
|
showHyperlinkPopup: false | "editor" | "info";
|
|
829
793
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
830
|
-
snapLines: import("../snapping").SnapLine[];
|
|
794
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
831
795
|
originSnapOffset: {
|
|
832
796
|
x: number;
|
|
833
797
|
y: number;
|
|
@@ -878,15 +842,9 @@ export declare const actionDecreaseFontSize: {
|
|
|
878
842
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
879
843
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
880
844
|
activeTool: {
|
|
881
|
-
lastActiveTool: import("../../src/types").
|
|
845
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
882
846
|
locked: boolean;
|
|
883
|
-
} & (
|
|
884
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
885
|
-
customType: null;
|
|
886
|
-
} | {
|
|
887
|
-
type: "custom";
|
|
888
|
-
customType: string;
|
|
889
|
-
});
|
|
847
|
+
} & import("../../src/types").ActiveTool;
|
|
890
848
|
penMode: boolean;
|
|
891
849
|
penDetected: boolean;
|
|
892
850
|
exportBackground: boolean;
|
|
@@ -964,7 +922,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
964
922
|
pendingImageElementId: string | null;
|
|
965
923
|
showHyperlinkPopup: false | "editor" | "info";
|
|
966
924
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
967
|
-
snapLines: import("../snapping").SnapLine[];
|
|
925
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
968
926
|
originSnapOffset: {
|
|
969
927
|
x: number;
|
|
970
928
|
y: number;
|
|
@@ -973,9 +931,9 @@ export declare const actionDecreaseFontSize: {
|
|
|
973
931
|
};
|
|
974
932
|
commitToHistory: boolean;
|
|
975
933
|
};
|
|
976
|
-
keyTest: (event:
|
|
934
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
977
935
|
} & {
|
|
978
|
-
keyTest?: ((event:
|
|
936
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
979
937
|
};
|
|
980
938
|
export declare const actionIncreaseFontSize: {
|
|
981
939
|
name: "increaseFontSize";
|
|
@@ -1015,15 +973,9 @@ export declare const actionIncreaseFontSize: {
|
|
|
1015
973
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1016
974
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1017
975
|
activeTool: {
|
|
1018
|
-
lastActiveTool: import("../../src/types").
|
|
976
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1019
977
|
locked: boolean;
|
|
1020
|
-
} & (
|
|
1021
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1022
|
-
customType: null;
|
|
1023
|
-
} | {
|
|
1024
|
-
type: "custom";
|
|
1025
|
-
customType: string;
|
|
1026
|
-
});
|
|
978
|
+
} & import("../../src/types").ActiveTool;
|
|
1027
979
|
penMode: boolean;
|
|
1028
980
|
penDetected: boolean;
|
|
1029
981
|
exportBackground: boolean;
|
|
@@ -1101,7 +1053,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1101
1053
|
pendingImageElementId: string | null;
|
|
1102
1054
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1103
1055
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1104
|
-
snapLines: import("../snapping").SnapLine[];
|
|
1056
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1105
1057
|
originSnapOffset: {
|
|
1106
1058
|
x: number;
|
|
1107
1059
|
y: number;
|
|
@@ -1110,9 +1062,9 @@ export declare const actionIncreaseFontSize: {
|
|
|
1110
1062
|
};
|
|
1111
1063
|
commitToHistory: boolean;
|
|
1112
1064
|
};
|
|
1113
|
-
keyTest: (event:
|
|
1065
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1114
1066
|
} & {
|
|
1115
|
-
keyTest?: ((event:
|
|
1067
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1116
1068
|
};
|
|
1117
1069
|
export declare const actionChangeFontFamily: {
|
|
1118
1070
|
name: "changeFontFamily";
|
|
@@ -1152,15 +1104,9 @@ export declare const actionChangeFontFamily: {
|
|
|
1152
1104
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1153
1105
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1154
1106
|
activeTool: {
|
|
1155
|
-
lastActiveTool: import("../../src/types").
|
|
1107
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1156
1108
|
locked: boolean;
|
|
1157
|
-
} & (
|
|
1158
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1159
|
-
customType: null;
|
|
1160
|
-
} | {
|
|
1161
|
-
type: "custom";
|
|
1162
|
-
customType: string;
|
|
1163
|
-
});
|
|
1109
|
+
} & import("../../src/types").ActiveTool;
|
|
1164
1110
|
penMode: boolean;
|
|
1165
1111
|
penDetected: boolean;
|
|
1166
1112
|
exportBackground: boolean;
|
|
@@ -1238,7 +1184,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1238
1184
|
pendingImageElementId: string | null;
|
|
1239
1185
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1240
1186
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1241
|
-
snapLines: import("../snapping").SnapLine[];
|
|
1187
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1242
1188
|
originSnapOffset: {
|
|
1243
1189
|
x: number;
|
|
1244
1190
|
y: number;
|
|
@@ -1289,15 +1235,9 @@ export declare const actionChangeTextAlign: {
|
|
|
1289
1235
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1290
1236
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1291
1237
|
activeTool: {
|
|
1292
|
-
lastActiveTool: import("../../src/types").
|
|
1238
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1293
1239
|
locked: boolean;
|
|
1294
|
-
} & (
|
|
1295
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1296
|
-
customType: null;
|
|
1297
|
-
} | {
|
|
1298
|
-
type: "custom";
|
|
1299
|
-
customType: string;
|
|
1300
|
-
});
|
|
1240
|
+
} & import("../../src/types").ActiveTool;
|
|
1301
1241
|
penMode: boolean;
|
|
1302
1242
|
penDetected: boolean;
|
|
1303
1243
|
exportBackground: boolean;
|
|
@@ -1375,7 +1315,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1375
1315
|
pendingImageElementId: string | null;
|
|
1376
1316
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1377
1317
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1378
|
-
snapLines: import("../snapping").SnapLine[];
|
|
1318
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1379
1319
|
originSnapOffset: {
|
|
1380
1320
|
x: number;
|
|
1381
1321
|
y: number;
|
|
@@ -1427,15 +1367,9 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1427
1367
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1428
1368
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1429
1369
|
activeTool: {
|
|
1430
|
-
lastActiveTool: import("../../src/types").
|
|
1370
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1431
1371
|
locked: boolean;
|
|
1432
|
-
} & (
|
|
1433
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1434
|
-
customType: null;
|
|
1435
|
-
} | {
|
|
1436
|
-
type: "custom";
|
|
1437
|
-
customType: string;
|
|
1438
|
-
});
|
|
1372
|
+
} & import("../../src/types").ActiveTool;
|
|
1439
1373
|
penMode: boolean;
|
|
1440
1374
|
penDetected: boolean;
|
|
1441
1375
|
exportBackground: boolean;
|
|
@@ -1514,7 +1448,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1514
1448
|
pendingImageElementId: string | null;
|
|
1515
1449
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1516
1450
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1517
|
-
snapLines: import("../snapping").SnapLine[];
|
|
1451
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1518
1452
|
originSnapOffset: {
|
|
1519
1453
|
x: number;
|
|
1520
1454
|
y: number;
|
|
@@ -1565,15 +1499,9 @@ export declare const actionChangeRoundness: {
|
|
|
1565
1499
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1566
1500
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1567
1501
|
activeTool: {
|
|
1568
|
-
lastActiveTool: import("../../src/types").
|
|
1502
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1569
1503
|
locked: boolean;
|
|
1570
|
-
} & (
|
|
1571
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1572
|
-
customType: null;
|
|
1573
|
-
} | {
|
|
1574
|
-
type: "custom";
|
|
1575
|
-
customType: string;
|
|
1576
|
-
});
|
|
1504
|
+
} & import("../../src/types").ActiveTool;
|
|
1577
1505
|
penMode: boolean;
|
|
1578
1506
|
penDetected: boolean;
|
|
1579
1507
|
exportBackground: boolean;
|
|
@@ -1651,7 +1579,7 @@ export declare const actionChangeRoundness: {
|
|
|
1651
1579
|
pendingImageElementId: string | null;
|
|
1652
1580
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1653
1581
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1654
|
-
snapLines: import("../snapping").SnapLine[];
|
|
1582
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1655
1583
|
originSnapOffset: {
|
|
1656
1584
|
x: number;
|
|
1657
1585
|
y: number;
|
|
@@ -1704,15 +1632,9 @@ export declare const actionChangeArrowhead: {
|
|
|
1704
1632
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1705
1633
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1706
1634
|
activeTool: {
|
|
1707
|
-
lastActiveTool: import("../../src/types").
|
|
1635
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1708
1636
|
locked: boolean;
|
|
1709
|
-
} & (
|
|
1710
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1711
|
-
customType: null;
|
|
1712
|
-
} | {
|
|
1713
|
-
type: "custom";
|
|
1714
|
-
customType: string;
|
|
1715
|
-
});
|
|
1637
|
+
} & import("../../src/types").ActiveTool;
|
|
1716
1638
|
penMode: boolean;
|
|
1717
1639
|
penDetected: boolean;
|
|
1718
1640
|
exportBackground: boolean;
|
|
@@ -1791,7 +1713,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1791
1713
|
pendingImageElementId: string | null;
|
|
1792
1714
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1793
1715
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1794
|
-
snapLines: import("../snapping").SnapLine[];
|
|
1716
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1795
1717
|
originSnapOffset: {
|
|
1796
1718
|
x: number;
|
|
1797
1719
|
y: number;
|
|
@@ -46,15 +46,9 @@ export declare const actionSelectAll: {
|
|
|
46
46
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
47
47
|
editingLinearElement: LinearElementEditor | null;
|
|
48
48
|
activeTool: {
|
|
49
|
-
lastActiveTool: import("../types").
|
|
49
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
50
50
|
locked: boolean;
|
|
51
|
-
} & (
|
|
52
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
53
|
-
customType: null;
|
|
54
|
-
} | {
|
|
55
|
-
type: "custom";
|
|
56
|
-
customType: string;
|
|
57
|
-
});
|
|
51
|
+
} & import("../types").ActiveTool;
|
|
58
52
|
penMode: boolean;
|
|
59
53
|
penDetected: boolean;
|
|
60
54
|
exportBackground: boolean;
|
|
@@ -125,7 +119,7 @@ export declare const actionSelectAll: {
|
|
|
125
119
|
};
|
|
126
120
|
pendingImageElementId: string | null;
|
|
127
121
|
showHyperlinkPopup: false | "editor" | "info";
|
|
128
|
-
snapLines: import("../snapping").SnapLine[];
|
|
122
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
129
123
|
originSnapOffset: {
|
|
130
124
|
x: number;
|
|
131
125
|
y: number;
|
|
@@ -135,7 +129,7 @@ export declare const actionSelectAll: {
|
|
|
135
129
|
commitToHistory: true;
|
|
136
130
|
};
|
|
137
131
|
contextItemLabel: string;
|
|
138
|
-
keyTest: (event:
|
|
132
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
139
133
|
} & {
|
|
140
|
-
keyTest?: ((event:
|
|
134
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
141
135
|
};
|
|
@@ -40,15 +40,9 @@ export declare const actionCopyStyles: {
|
|
|
40
40
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
42
42
|
activeTool: {
|
|
43
|
-
lastActiveTool: import("../types").
|
|
43
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
44
|
locked: boolean;
|
|
45
|
-
} & (
|
|
46
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
47
|
-
customType: null;
|
|
48
|
-
} | {
|
|
49
|
-
type: "custom";
|
|
50
|
-
customType: string;
|
|
51
|
-
});
|
|
45
|
+
} & import("../types").ActiveTool;
|
|
52
46
|
penMode: boolean;
|
|
53
47
|
penDetected: boolean;
|
|
54
48
|
exportBackground: boolean;
|
|
@@ -122,7 +116,7 @@ export declare const actionCopyStyles: {
|
|
|
122
116
|
pendingImageElementId: string | null;
|
|
123
117
|
showHyperlinkPopup: false | "editor" | "info";
|
|
124
118
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
125
|
-
snapLines: import("../snapping").SnapLine[];
|
|
119
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
126
120
|
originSnapOffset: {
|
|
127
121
|
x: number;
|
|
128
122
|
y: number;
|
|
@@ -132,9 +126,9 @@ export declare const actionCopyStyles: {
|
|
|
132
126
|
commitToHistory: false;
|
|
133
127
|
};
|
|
134
128
|
contextItemLabel: string;
|
|
135
|
-
keyTest: (event:
|
|
129
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
136
130
|
} & {
|
|
137
|
-
keyTest?: ((event:
|
|
131
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
138
132
|
};
|
|
139
133
|
export declare const actionPasteStyles: {
|
|
140
134
|
name: "pasteStyles";
|
|
@@ -149,7 +143,7 @@ export declare const actionPasteStyles: {
|
|
|
149
143
|
commitToHistory: true;
|
|
150
144
|
};
|
|
151
145
|
contextItemLabel: string;
|
|
152
|
-
keyTest: (event:
|
|
146
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
153
147
|
} & {
|
|
154
|
-
keyTest?: ((event:
|
|
148
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
155
149
|
};
|
|
@@ -41,15 +41,9 @@ export declare const actionToggleGridMode: {
|
|
|
41
41
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
42
42
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
43
43
|
activeTool: {
|
|
44
|
-
lastActiveTool: import("../types").
|
|
44
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
45
45
|
locked: boolean;
|
|
46
|
-
} & (
|
|
47
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
48
|
-
customType: null;
|
|
49
|
-
} | {
|
|
50
|
-
type: "custom";
|
|
51
|
-
customType: string;
|
|
52
|
-
});
|
|
46
|
+
} & import("../types").ActiveTool;
|
|
53
47
|
penMode: boolean;
|
|
54
48
|
penDetected: boolean;
|
|
55
49
|
exportBackground: boolean;
|
|
@@ -127,7 +121,7 @@ export declare const actionToggleGridMode: {
|
|
|
127
121
|
pendingImageElementId: string | null;
|
|
128
122
|
showHyperlinkPopup: false | "editor" | "info";
|
|
129
123
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
130
|
-
snapLines: import("../snapping").SnapLine[];
|
|
124
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
131
125
|
originSnapOffset: {
|
|
132
126
|
x: number;
|
|
133
127
|
y: number;
|
|
@@ -138,7 +132,7 @@ export declare const actionToggleGridMode: {
|
|
|
138
132
|
checked: (appState: AppState) => boolean;
|
|
139
133
|
predicate: (element: readonly import("../element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
140
134
|
contextItemLabel: string;
|
|
141
|
-
keyTest: (event:
|
|
135
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
142
136
|
} & {
|
|
143
|
-
keyTest?: ((event:
|
|
137
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
144
138
|
};
|
|
@@ -40,15 +40,9 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
40
40
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
42
42
|
activeTool: {
|
|
43
|
-
lastActiveTool: import("../types").
|
|
43
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
44
|
locked: boolean;
|
|
45
|
-
} & (
|
|
46
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
47
|
-
customType: null;
|
|
48
|
-
} | {
|
|
49
|
-
type: "custom";
|
|
50
|
-
customType: string;
|
|
51
|
-
});
|
|
45
|
+
} & import("../types").ActiveTool;
|
|
52
46
|
penMode: boolean;
|
|
53
47
|
penDetected: boolean;
|
|
54
48
|
exportBackground: boolean;
|
|
@@ -126,7 +120,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
126
120
|
pendingImageElementId: string | null;
|
|
127
121
|
showHyperlinkPopup: false | "editor" | "info";
|
|
128
122
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
129
|
-
snapLines: import("../snapping").SnapLine[];
|
|
123
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
130
124
|
originSnapOffset: {
|
|
131
125
|
x: number;
|
|
132
126
|
y: number;
|
|
@@ -137,7 +131,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
137
131
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
138
132
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
139
133
|
contextItemLabel: string;
|
|
140
|
-
keyTest: (event:
|
|
134
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
141
135
|
} & {
|
|
142
|
-
keyTest?: ((event:
|
|
136
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
143
137
|
};
|