@excalidraw/excalidraw 0.17.0-a528769 → 0.17.0-fe75f29
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-assets-dev/{vendor-18203854dd3b1fb2cc41.js → vendor-2466bf62a35e940e8f28.js} +2 -2
- package/dist/excalidraw-with-preact.development.js +371 -74
- package/dist/excalidraw-with-preact.production.min.js +1 -1
- package/dist/excalidraw.development.js +371 -74
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +30 -6
- package/types/actions/actionBoundText.d.ts +20 -4
- package/types/actions/actionCanvas.d.ts +110 -22
- package/types/actions/actionClipboard.d.ts +70 -14
- package/types/actions/actionDeleteSelected.d.ts +30 -6
- package/types/actions/actionElementLock.d.ts +20 -4
- package/types/actions/actionExport.d.ts +86 -22
- package/types/actions/actionFinalize.d.ts +20 -4
- package/types/actions/actionFrame.d.ts +30 -6
- package/types/actions/actionGroup.d.ts +20 -4
- package/types/actions/actionLinearEditor.d.ts +10 -2
- package/types/actions/actionMenu.d.ts +24 -6
- package/types/actions/actionProperties.d.ts +130 -26
- package/types/actions/actionSelectAll.d.ts +10 -2
- package/types/actions/actionStyles.d.ts +10 -2
- package/types/actions/actionToggleGridMode.d.ts +10 -2
- package/types/actions/actionToggleObjectsSnapMode.d.ts +10 -2
- package/types/actions/actionToggleStats.d.ts +10 -2
- package/types/actions/actionToggleViewMode.d.ts +10 -2
- package/types/actions/actionToggleZenMode.d.ts +10 -2
- package/types/appState.d.ts +2 -2
- package/types/components/App.d.ts +27 -6
- package/types/components/Button.d.ts +1 -1
- package/types/components/InlineIcon.d.ts +3 -0
- package/types/components/LayerUI.d.ts +5 -1
- package/types/components/MagicButton.d.ts +9 -0
- package/types/components/MagicSettings.d.ts +8 -0
- package/types/components/Paragraph.d.ts +4 -0
- package/types/components/TTDDialog/MermaidToExcalidraw.d.ts +6 -0
- package/types/components/TTDDialog/TTDDialog.d.ts +29 -0
- package/types/components/TTDDialog/TTDDialogInput.d.ts +9 -0
- package/types/components/TTDDialog/TTDDialogOutput.d.ts +7 -0
- package/types/components/TTDDialog/TTDDialogPanel.d.ts +16 -0
- package/types/components/TTDDialog/TTDDialogPanels.d.ts +4 -0
- package/types/components/TTDDialog/TTDDialogTab.d.ts +7 -0
- package/types/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -0
- package/types/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -0
- package/types/components/TTDDialog/TTDDialogTabs.d.ts +9 -0
- package/types/components/TTDDialog/TTDDialogTrigger.d.ts +8 -0
- package/types/components/TTDDialog/common.d.ts +33 -0
- package/types/components/TextField.d.ts +16 -0
- package/types/components/dropdownMenu/DropdownMenu.d.ts +6 -0
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -0
- package/types/components/icons.d.ts +6 -0
- package/types/components/main-menu/MainMenu.d.ts +6 -0
- package/types/constants.d.ts +24 -2
- package/types/context/tunnels.d.ts +1 -0
- package/types/data/EditorLocalStorage.d.ts +8 -0
- package/types/data/ai/types.d.ts +242 -0
- package/types/data/index.d.ts +3 -3
- package/types/data/magic.d.ts +23 -0
- package/types/data/transform.d.ts +11 -7
- package/types/element/ElementCanvasButtons.d.ts +6 -0
- package/types/element/Hyperlink.d.ts +10 -2
- package/types/element/collision.d.ts +2 -2
- package/types/element/embeddable.d.ts +16 -21
- package/types/element/index.d.ts +3 -4
- package/types/element/linearElementEditor.d.ts +11 -3
- package/types/element/newElement.d.ts +7 -1
- package/types/element/textElement.d.ts +2 -2
- package/types/element/typeChecks.d.ts +9 -6
- package/types/element/types.d.ts +29 -2
- package/types/frame.d.ts +21 -20
- package/types/packages/excalidraw/index.d.ts +2 -0
- package/types/packages/utils.d.ts +2 -2
- package/types/scene/Scene.d.ts +4 -4
- package/types/scene/ShapeCache.d.ts +1 -1
- package/types/scene/comparisons.d.ts +7 -6
- package/types/scene/export.d.ts +3 -3
- package/types/scene/types.d.ts +2 -0
- package/types/shapes.d.ts +1 -1
- package/types/types.d.ts +24 -10
- package/types/utils.d.ts +2 -2
- package/types/components/MermaidToExcalidraw.d.ts +0 -3
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-18203854dd3b1fb2cc41.d.ts → vendor-2466bf62a35e940e8f28.d.ts} +0 -0
|
@@ -25,7 +25,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
25
25
|
isBindingEnabled: boolean;
|
|
26
26
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
27
27
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
28
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
28
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
29
29
|
frameRendering: {
|
|
30
30
|
enabled: boolean;
|
|
31
31
|
name: boolean;
|
|
@@ -75,7 +75,15 @@ export declare const actionToggleCanvasMenu: {
|
|
|
75
75
|
name: string;
|
|
76
76
|
tab?: string | undefined;
|
|
77
77
|
} | null;
|
|
78
|
-
openDialog:
|
|
78
|
+
openDialog: {
|
|
79
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
80
|
+
} | {
|
|
81
|
+
name: "magicSettings";
|
|
82
|
+
source: "tool" | "generation" | "settings";
|
|
83
|
+
} | {
|
|
84
|
+
name: "ttd";
|
|
85
|
+
tab: string;
|
|
86
|
+
} | null;
|
|
79
87
|
defaultSidebarDockedPreference: boolean;
|
|
80
88
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
81
89
|
selectedElementIds: Readonly<{
|
|
@@ -157,7 +165,7 @@ export declare const actionToggleEditMenu: {
|
|
|
157
165
|
isBindingEnabled: boolean;
|
|
158
166
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
159
167
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
160
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
168
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
161
169
|
frameRendering: {
|
|
162
170
|
enabled: boolean;
|
|
163
171
|
name: boolean;
|
|
@@ -207,7 +215,15 @@ export declare const actionToggleEditMenu: {
|
|
|
207
215
|
name: string;
|
|
208
216
|
tab?: string | undefined;
|
|
209
217
|
} | null;
|
|
210
|
-
openDialog:
|
|
218
|
+
openDialog: {
|
|
219
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
220
|
+
} | {
|
|
221
|
+
name: "magicSettings";
|
|
222
|
+
source: "tool" | "generation" | "settings";
|
|
223
|
+
} | {
|
|
224
|
+
name: "ttd";
|
|
225
|
+
tab: string;
|
|
226
|
+
} | null;
|
|
211
227
|
defaultSidebarDockedPreference: boolean;
|
|
212
228
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
213
229
|
selectedElementIds: Readonly<{
|
|
@@ -271,7 +287,9 @@ export declare const actionShortcuts: {
|
|
|
271
287
|
};
|
|
272
288
|
perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, { focusContainer }: import("../types").AppClassProperties) => {
|
|
273
289
|
appState: {
|
|
274
|
-
openDialog:
|
|
290
|
+
openDialog: {
|
|
291
|
+
name: "help";
|
|
292
|
+
} | null;
|
|
275
293
|
contextMenu: {
|
|
276
294
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
277
295
|
top: number;
|
|
@@ -291,7 +309,7 @@ export declare const actionShortcuts: {
|
|
|
291
309
|
isBindingEnabled: boolean;
|
|
292
310
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
293
311
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
294
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
312
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
295
313
|
frameRendering: {
|
|
296
314
|
enabled: boolean;
|
|
297
315
|
name: boolean;
|
|
@@ -44,7 +44,7 @@ export declare const actionChangeFillStyle: {
|
|
|
44
44
|
isBindingEnabled: boolean;
|
|
45
45
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
46
46
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
47
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
47
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
48
48
|
frameRendering: {
|
|
49
49
|
enabled: boolean;
|
|
50
50
|
name: boolean;
|
|
@@ -94,7 +94,15 @@ export declare const actionChangeFillStyle: {
|
|
|
94
94
|
name: string;
|
|
95
95
|
tab?: string | undefined;
|
|
96
96
|
} | null;
|
|
97
|
-
openDialog:
|
|
97
|
+
openDialog: {
|
|
98
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
99
|
+
} | {
|
|
100
|
+
name: "magicSettings";
|
|
101
|
+
source: "tool" | "generation" | "settings";
|
|
102
|
+
} | {
|
|
103
|
+
name: "ttd";
|
|
104
|
+
tab: string;
|
|
105
|
+
} | null;
|
|
98
106
|
defaultSidebarDockedPreference: boolean;
|
|
99
107
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
100
108
|
selectedElementIds: Readonly<{
|
|
@@ -175,7 +183,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
175
183
|
isBindingEnabled: boolean;
|
|
176
184
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
177
185
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
178
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
186
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
179
187
|
frameRendering: {
|
|
180
188
|
enabled: boolean;
|
|
181
189
|
name: boolean;
|
|
@@ -225,7 +233,15 @@ export declare const actionChangeStrokeWidth: {
|
|
|
225
233
|
name: string;
|
|
226
234
|
tab?: string | undefined;
|
|
227
235
|
} | null;
|
|
228
|
-
openDialog:
|
|
236
|
+
openDialog: {
|
|
237
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
238
|
+
} | {
|
|
239
|
+
name: "magicSettings";
|
|
240
|
+
source: "tool" | "generation" | "settings";
|
|
241
|
+
} | {
|
|
242
|
+
name: "ttd";
|
|
243
|
+
tab: string;
|
|
244
|
+
} | null;
|
|
229
245
|
defaultSidebarDockedPreference: boolean;
|
|
230
246
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
231
247
|
selectedElementIds: Readonly<{
|
|
@@ -306,7 +322,7 @@ export declare const actionChangeSloppiness: {
|
|
|
306
322
|
isBindingEnabled: boolean;
|
|
307
323
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
308
324
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
309
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
325
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
310
326
|
frameRendering: {
|
|
311
327
|
enabled: boolean;
|
|
312
328
|
name: boolean;
|
|
@@ -356,7 +372,15 @@ export declare const actionChangeSloppiness: {
|
|
|
356
372
|
name: string;
|
|
357
373
|
tab?: string | undefined;
|
|
358
374
|
} | null;
|
|
359
|
-
openDialog:
|
|
375
|
+
openDialog: {
|
|
376
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
377
|
+
} | {
|
|
378
|
+
name: "magicSettings";
|
|
379
|
+
source: "tool" | "generation" | "settings";
|
|
380
|
+
} | {
|
|
381
|
+
name: "ttd";
|
|
382
|
+
tab: string;
|
|
383
|
+
} | null;
|
|
360
384
|
defaultSidebarDockedPreference: boolean;
|
|
361
385
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
362
386
|
selectedElementIds: Readonly<{
|
|
@@ -437,7 +461,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
437
461
|
isBindingEnabled: boolean;
|
|
438
462
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
439
463
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
440
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
464
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
441
465
|
frameRendering: {
|
|
442
466
|
enabled: boolean;
|
|
443
467
|
name: boolean;
|
|
@@ -487,7 +511,15 @@ export declare const actionChangeStrokeStyle: {
|
|
|
487
511
|
name: string;
|
|
488
512
|
tab?: string | undefined;
|
|
489
513
|
} | null;
|
|
490
|
-
openDialog:
|
|
514
|
+
openDialog: {
|
|
515
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
516
|
+
} | {
|
|
517
|
+
name: "magicSettings";
|
|
518
|
+
source: "tool" | "generation" | "settings";
|
|
519
|
+
} | {
|
|
520
|
+
name: "ttd";
|
|
521
|
+
tab: string;
|
|
522
|
+
} | null;
|
|
491
523
|
defaultSidebarDockedPreference: boolean;
|
|
492
524
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
493
525
|
selectedElementIds: Readonly<{
|
|
@@ -568,7 +600,7 @@ export declare const actionChangeOpacity: {
|
|
|
568
600
|
isBindingEnabled: boolean;
|
|
569
601
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
570
602
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
571
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
603
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
572
604
|
frameRendering: {
|
|
573
605
|
enabled: boolean;
|
|
574
606
|
name: boolean;
|
|
@@ -618,7 +650,15 @@ export declare const actionChangeOpacity: {
|
|
|
618
650
|
name: string;
|
|
619
651
|
tab?: string | undefined;
|
|
620
652
|
} | null;
|
|
621
|
-
openDialog:
|
|
653
|
+
openDialog: {
|
|
654
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
655
|
+
} | {
|
|
656
|
+
name: "magicSettings";
|
|
657
|
+
source: "tool" | "generation" | "settings";
|
|
658
|
+
} | {
|
|
659
|
+
name: "ttd";
|
|
660
|
+
tab: string;
|
|
661
|
+
} | null;
|
|
622
662
|
defaultSidebarDockedPreference: boolean;
|
|
623
663
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
624
664
|
selectedElementIds: Readonly<{
|
|
@@ -699,7 +739,7 @@ export declare const actionChangeFontSize: {
|
|
|
699
739
|
isBindingEnabled: boolean;
|
|
700
740
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
701
741
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
702
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
742
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
703
743
|
frameRendering: {
|
|
704
744
|
enabled: boolean;
|
|
705
745
|
name: boolean;
|
|
@@ -749,7 +789,15 @@ export declare const actionChangeFontSize: {
|
|
|
749
789
|
name: string;
|
|
750
790
|
tab?: string | undefined;
|
|
751
791
|
} | null;
|
|
752
|
-
openDialog:
|
|
792
|
+
openDialog: {
|
|
793
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
794
|
+
} | {
|
|
795
|
+
name: "magicSettings";
|
|
796
|
+
source: "tool" | "generation" | "settings";
|
|
797
|
+
} | {
|
|
798
|
+
name: "ttd";
|
|
799
|
+
tab: string;
|
|
800
|
+
} | null;
|
|
753
801
|
defaultSidebarDockedPreference: boolean;
|
|
754
802
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
755
803
|
selectedElementIds: Readonly<{
|
|
@@ -830,7 +878,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
830
878
|
isBindingEnabled: boolean;
|
|
831
879
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
832
880
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
833
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
881
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
834
882
|
frameRendering: {
|
|
835
883
|
enabled: boolean;
|
|
836
884
|
name: boolean;
|
|
@@ -880,7 +928,15 @@ export declare const actionDecreaseFontSize: {
|
|
|
880
928
|
name: string;
|
|
881
929
|
tab?: string | undefined;
|
|
882
930
|
} | null;
|
|
883
|
-
openDialog:
|
|
931
|
+
openDialog: {
|
|
932
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
933
|
+
} | {
|
|
934
|
+
name: "magicSettings";
|
|
935
|
+
source: "tool" | "generation" | "settings";
|
|
936
|
+
} | {
|
|
937
|
+
name: "ttd";
|
|
938
|
+
tab: string;
|
|
939
|
+
} | null;
|
|
884
940
|
defaultSidebarDockedPreference: boolean;
|
|
885
941
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
886
942
|
selectedElementIds: Readonly<{
|
|
@@ -961,7 +1017,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
961
1017
|
isBindingEnabled: boolean;
|
|
962
1018
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
963
1019
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
964
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
1020
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
965
1021
|
frameRendering: {
|
|
966
1022
|
enabled: boolean;
|
|
967
1023
|
name: boolean;
|
|
@@ -1011,7 +1067,15 @@ export declare const actionIncreaseFontSize: {
|
|
|
1011
1067
|
name: string;
|
|
1012
1068
|
tab?: string | undefined;
|
|
1013
1069
|
} | null;
|
|
1014
|
-
openDialog:
|
|
1070
|
+
openDialog: {
|
|
1071
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1072
|
+
} | {
|
|
1073
|
+
name: "magicSettings";
|
|
1074
|
+
source: "tool" | "generation" | "settings";
|
|
1075
|
+
} | {
|
|
1076
|
+
name: "ttd";
|
|
1077
|
+
tab: string;
|
|
1078
|
+
} | null;
|
|
1015
1079
|
defaultSidebarDockedPreference: boolean;
|
|
1016
1080
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1017
1081
|
selectedElementIds: Readonly<{
|
|
@@ -1092,7 +1156,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1092
1156
|
isBindingEnabled: boolean;
|
|
1093
1157
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1094
1158
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1095
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
1159
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1096
1160
|
frameRendering: {
|
|
1097
1161
|
enabled: boolean;
|
|
1098
1162
|
name: boolean;
|
|
@@ -1142,7 +1206,15 @@ export declare const actionChangeFontFamily: {
|
|
|
1142
1206
|
name: string;
|
|
1143
1207
|
tab?: string | undefined;
|
|
1144
1208
|
} | null;
|
|
1145
|
-
openDialog:
|
|
1209
|
+
openDialog: {
|
|
1210
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1211
|
+
} | {
|
|
1212
|
+
name: "magicSettings";
|
|
1213
|
+
source: "tool" | "generation" | "settings";
|
|
1214
|
+
} | {
|
|
1215
|
+
name: "ttd";
|
|
1216
|
+
tab: string;
|
|
1217
|
+
} | null;
|
|
1146
1218
|
defaultSidebarDockedPreference: boolean;
|
|
1147
1219
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1148
1220
|
selectedElementIds: Readonly<{
|
|
@@ -1223,7 +1295,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1223
1295
|
isBindingEnabled: boolean;
|
|
1224
1296
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1225
1297
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1226
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
1298
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1227
1299
|
frameRendering: {
|
|
1228
1300
|
enabled: boolean;
|
|
1229
1301
|
name: boolean;
|
|
@@ -1273,7 +1345,15 @@ export declare const actionChangeTextAlign: {
|
|
|
1273
1345
|
name: string;
|
|
1274
1346
|
tab?: string | undefined;
|
|
1275
1347
|
} | null;
|
|
1276
|
-
openDialog:
|
|
1348
|
+
openDialog: {
|
|
1349
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1350
|
+
} | {
|
|
1351
|
+
name: "magicSettings";
|
|
1352
|
+
source: "tool" | "generation" | "settings";
|
|
1353
|
+
} | {
|
|
1354
|
+
name: "ttd";
|
|
1355
|
+
tab: string;
|
|
1356
|
+
} | null;
|
|
1277
1357
|
defaultSidebarDockedPreference: boolean;
|
|
1278
1358
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1279
1359
|
selectedElementIds: Readonly<{
|
|
@@ -1355,7 +1435,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1355
1435
|
isBindingEnabled: boolean;
|
|
1356
1436
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1357
1437
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1358
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
1438
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1359
1439
|
frameRendering: {
|
|
1360
1440
|
enabled: boolean;
|
|
1361
1441
|
name: boolean;
|
|
@@ -1406,7 +1486,15 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1406
1486
|
name: string;
|
|
1407
1487
|
tab?: string | undefined;
|
|
1408
1488
|
} | null;
|
|
1409
|
-
openDialog:
|
|
1489
|
+
openDialog: {
|
|
1490
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1491
|
+
} | {
|
|
1492
|
+
name: "magicSettings";
|
|
1493
|
+
source: "tool" | "generation" | "settings";
|
|
1494
|
+
} | {
|
|
1495
|
+
name: "ttd";
|
|
1496
|
+
tab: string;
|
|
1497
|
+
} | null;
|
|
1410
1498
|
defaultSidebarDockedPreference: boolean;
|
|
1411
1499
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1412
1500
|
selectedElementIds: Readonly<{
|
|
@@ -1487,7 +1575,7 @@ export declare const actionChangeRoundness: {
|
|
|
1487
1575
|
isBindingEnabled: boolean;
|
|
1488
1576
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1489
1577
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1490
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
1578
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1491
1579
|
frameRendering: {
|
|
1492
1580
|
enabled: boolean;
|
|
1493
1581
|
name: boolean;
|
|
@@ -1537,7 +1625,15 @@ export declare const actionChangeRoundness: {
|
|
|
1537
1625
|
name: string;
|
|
1538
1626
|
tab?: string | undefined;
|
|
1539
1627
|
} | null;
|
|
1540
|
-
openDialog:
|
|
1628
|
+
openDialog: {
|
|
1629
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1630
|
+
} | {
|
|
1631
|
+
name: "magicSettings";
|
|
1632
|
+
source: "tool" | "generation" | "settings";
|
|
1633
|
+
} | {
|
|
1634
|
+
name: "ttd";
|
|
1635
|
+
tab: string;
|
|
1636
|
+
} | null;
|
|
1541
1637
|
defaultSidebarDockedPreference: boolean;
|
|
1542
1638
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1543
1639
|
selectedElementIds: Readonly<{
|
|
@@ -1620,7 +1716,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1620
1716
|
isBindingEnabled: boolean;
|
|
1621
1717
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1622
1718
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1623
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
1719
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1624
1720
|
frameRendering: {
|
|
1625
1721
|
enabled: boolean;
|
|
1626
1722
|
name: boolean;
|
|
@@ -1671,7 +1767,15 @@ export declare const actionChangeArrowhead: {
|
|
|
1671
1767
|
name: string;
|
|
1672
1768
|
tab?: string | undefined;
|
|
1673
1769
|
} | null;
|
|
1674
|
-
openDialog:
|
|
1770
|
+
openDialog: {
|
|
1771
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1772
|
+
} | {
|
|
1773
|
+
name: "magicSettings";
|
|
1774
|
+
source: "tool" | "generation" | "settings";
|
|
1775
|
+
} | {
|
|
1776
|
+
name: "ttd";
|
|
1777
|
+
tab: string;
|
|
1778
|
+
} | null;
|
|
1675
1779
|
defaultSidebarDockedPreference: boolean;
|
|
1676
1780
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1677
1781
|
selectedElementIds: Readonly<{
|
|
@@ -34,7 +34,7 @@ export declare const actionSelectAll: {
|
|
|
34
34
|
isBindingEnabled: boolean;
|
|
35
35
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
36
36
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
37
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
37
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
38
38
|
frameRendering: {
|
|
39
39
|
enabled: boolean;
|
|
40
40
|
name: boolean;
|
|
@@ -85,7 +85,15 @@ export declare const actionSelectAll: {
|
|
|
85
85
|
name: string;
|
|
86
86
|
tab?: string | undefined;
|
|
87
87
|
} | null;
|
|
88
|
-
openDialog:
|
|
88
|
+
openDialog: {
|
|
89
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
90
|
+
} | {
|
|
91
|
+
name: "magicSettings";
|
|
92
|
+
source: "tool" | "generation" | "settings";
|
|
93
|
+
} | {
|
|
94
|
+
name: "ttd";
|
|
95
|
+
tab: string;
|
|
96
|
+
} | null;
|
|
89
97
|
defaultSidebarDockedPreference: boolean;
|
|
90
98
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
91
99
|
previousSelectedElementIds: {
|
|
@@ -28,7 +28,7 @@ export declare const actionCopyStyles: {
|
|
|
28
28
|
isBindingEnabled: boolean;
|
|
29
29
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
30
30
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
31
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
31
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
32
32
|
frameRendering: {
|
|
33
33
|
enabled: boolean;
|
|
34
34
|
name: boolean;
|
|
@@ -79,7 +79,15 @@ export declare const actionCopyStyles: {
|
|
|
79
79
|
name: string;
|
|
80
80
|
tab?: string | undefined;
|
|
81
81
|
} | null;
|
|
82
|
-
openDialog:
|
|
82
|
+
openDialog: {
|
|
83
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
84
|
+
} | {
|
|
85
|
+
name: "magicSettings";
|
|
86
|
+
source: "tool" | "generation" | "settings";
|
|
87
|
+
} | {
|
|
88
|
+
name: "ttd";
|
|
89
|
+
tab: string;
|
|
90
|
+
} | null;
|
|
83
91
|
defaultSidebarDockedPreference: boolean;
|
|
84
92
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
85
93
|
selectedElementIds: Readonly<{
|
|
@@ -29,7 +29,7 @@ export declare const actionToggleGridMode: {
|
|
|
29
29
|
isBindingEnabled: boolean;
|
|
30
30
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
31
31
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
32
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
32
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
33
33
|
frameRendering: {
|
|
34
34
|
enabled: boolean;
|
|
35
35
|
name: boolean;
|
|
@@ -80,7 +80,15 @@ export declare const actionToggleGridMode: {
|
|
|
80
80
|
name: string;
|
|
81
81
|
tab?: string | undefined;
|
|
82
82
|
} | null;
|
|
83
|
-
openDialog:
|
|
83
|
+
openDialog: {
|
|
84
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
85
|
+
} | {
|
|
86
|
+
name: "magicSettings";
|
|
87
|
+
source: "tool" | "generation" | "settings";
|
|
88
|
+
} | {
|
|
89
|
+
name: "ttd";
|
|
90
|
+
tab: string;
|
|
91
|
+
} | null;
|
|
84
92
|
defaultSidebarDockedPreference: boolean;
|
|
85
93
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
86
94
|
selectedElementIds: Readonly<{
|
|
@@ -28,7 +28,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
28
28
|
isBindingEnabled: boolean;
|
|
29
29
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
30
30
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
31
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
31
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
32
32
|
frameRendering: {
|
|
33
33
|
enabled: boolean;
|
|
34
34
|
name: boolean;
|
|
@@ -79,7 +79,15 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
79
79
|
name: string;
|
|
80
80
|
tab?: string | undefined;
|
|
81
81
|
} | null;
|
|
82
|
-
openDialog:
|
|
82
|
+
openDialog: {
|
|
83
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
84
|
+
} | {
|
|
85
|
+
name: "magicSettings";
|
|
86
|
+
source: "tool" | "generation" | "settings";
|
|
87
|
+
} | {
|
|
88
|
+
name: "ttd";
|
|
89
|
+
tab: string;
|
|
90
|
+
} | null;
|
|
83
91
|
defaultSidebarDockedPreference: boolean;
|
|
84
92
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
85
93
|
selectedElementIds: Readonly<{
|
|
@@ -26,7 +26,7 @@ export declare const actionToggleStats: {
|
|
|
26
26
|
isBindingEnabled: boolean;
|
|
27
27
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
28
28
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
29
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
29
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
30
30
|
frameRendering: {
|
|
31
31
|
enabled: boolean;
|
|
32
32
|
name: boolean;
|
|
@@ -77,7 +77,15 @@ export declare const actionToggleStats: {
|
|
|
77
77
|
name: string;
|
|
78
78
|
tab?: string | undefined;
|
|
79
79
|
} | null;
|
|
80
|
-
openDialog:
|
|
80
|
+
openDialog: {
|
|
81
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
82
|
+
} | {
|
|
83
|
+
name: "magicSettings";
|
|
84
|
+
source: "tool" | "generation" | "settings";
|
|
85
|
+
} | {
|
|
86
|
+
name: "ttd";
|
|
87
|
+
tab: string;
|
|
88
|
+
} | null;
|
|
81
89
|
defaultSidebarDockedPreference: boolean;
|
|
82
90
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
83
91
|
selectedElementIds: Readonly<{
|
|
@@ -27,7 +27,7 @@ export declare const actionToggleViewMode: {
|
|
|
27
27
|
isBindingEnabled: boolean;
|
|
28
28
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
29
29
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
30
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
30
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
31
31
|
frameRendering: {
|
|
32
32
|
enabled: boolean;
|
|
33
33
|
name: boolean;
|
|
@@ -78,7 +78,15 @@ export declare const actionToggleViewMode: {
|
|
|
78
78
|
name: string;
|
|
79
79
|
tab?: string | undefined;
|
|
80
80
|
} | null;
|
|
81
|
-
openDialog:
|
|
81
|
+
openDialog: {
|
|
82
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
83
|
+
} | {
|
|
84
|
+
name: "magicSettings";
|
|
85
|
+
source: "tool" | "generation" | "settings";
|
|
86
|
+
} | {
|
|
87
|
+
name: "ttd";
|
|
88
|
+
tab: string;
|
|
89
|
+
} | null;
|
|
82
90
|
defaultSidebarDockedPreference: boolean;
|
|
83
91
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
84
92
|
selectedElementIds: Readonly<{
|
|
@@ -27,7 +27,7 @@ export declare const actionToggleZenMode: {
|
|
|
27
27
|
isBindingEnabled: boolean;
|
|
28
28
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
29
29
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
30
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").
|
|
30
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
31
31
|
frameRendering: {
|
|
32
32
|
enabled: boolean;
|
|
33
33
|
name: boolean;
|
|
@@ -78,7 +78,15 @@ export declare const actionToggleZenMode: {
|
|
|
78
78
|
name: string;
|
|
79
79
|
tab?: string | undefined;
|
|
80
80
|
} | null;
|
|
81
|
-
openDialog:
|
|
81
|
+
openDialog: {
|
|
82
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
83
|
+
} | {
|
|
84
|
+
name: "magicSettings";
|
|
85
|
+
source: "tool" | "generation" | "settings";
|
|
86
|
+
} | {
|
|
87
|
+
name: "ttd";
|
|
88
|
+
tab: string;
|
|
89
|
+
} | null;
|
|
82
90
|
defaultSidebarDockedPreference: boolean;
|
|
83
91
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
84
92
|
selectedElementIds: Readonly<{
|
package/types/appState.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { AppState, NormalizedZoomValue } from "./types";
|
|
2
2
|
export declare const getDefaultAppState: () => Omit<AppState, "offsetTop" | "offsetLeft" | "width" | "height">;
|
|
3
3
|
export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>) => {
|
|
4
|
+
theme?: import("./element/types").Theme | undefined;
|
|
5
|
+
showWelcomeScreen?: boolean | undefined;
|
|
4
6
|
activeTool?: ({
|
|
5
7
|
lastActiveTool: import("./types").ActiveTool | null;
|
|
6
8
|
locked: boolean;
|
|
7
9
|
} & import("./types").ActiveTool) | undefined;
|
|
8
|
-
showWelcomeScreen?: boolean | undefined;
|
|
9
10
|
penMode?: boolean | undefined;
|
|
10
11
|
penDetected?: boolean | undefined;
|
|
11
12
|
exportBackground?: boolean | undefined;
|
|
@@ -49,7 +50,6 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
49
50
|
} | undefined;
|
|
50
51
|
shouldCacheIgnoreZoom?: boolean | undefined;
|
|
51
52
|
zenModeEnabled?: boolean | undefined;
|
|
52
|
-
theme?: import("./element/types").Theme | undefined;
|
|
53
53
|
gridSize?: number | null | undefined;
|
|
54
54
|
selectedGroupIds?: {
|
|
55
55
|
[groupId: string]: boolean;
|