@zsviczian/excalidraw 0.11.0-obsidian-24 → 0.12.0-obsidian-1
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 +352 -42
- package/dist/excalidraw.development.js +117 -112
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +2 -1
- package/package.json +22 -24
- package/types/actions/actionAddToLibrary.d.ts +13 -3
- package/types/actions/actionAlign.d.ts +6 -6
- package/types/actions/actionBoundText.d.ts +5 -1
- package/types/actions/actionCanvas.d.ts +52 -16
- package/types/actions/actionClipboard.d.ts +25 -5
- package/types/actions/actionDeleteSelected.d.ts +16 -4
- package/types/actions/actionDistribute.d.ts +2 -2
- package/types/actions/actionDuplicateSelection.d.ts +1 -1
- package/types/actions/actionExport.d.ts +51 -17
- package/types/actions/actionFinalize.d.ts +11 -3
- package/types/actions/actionGroup.d.ts +2 -2
- package/types/actions/actionMenu.d.ts +18 -6
- package/types/actions/actionNavigate.d.ts +1 -2
- package/types/actions/actionProperties.d.ts +78 -26
- package/types/actions/actionSelectAll.d.ts +2 -1
- package/types/actions/actionStyles.d.ts +3 -1
- package/types/actions/actionToggleGridMode.d.ts +5 -1
- package/types/actions/actionToggleStats.d.ts +5 -1
- package/types/actions/actionToggleViewMode.d.ts +5 -1
- package/types/actions/actionToggleZenMode.d.ts +5 -1
- package/types/actions/actionZindex.d.ts +4 -4
- package/types/analytics.d.ts +1 -1
- package/types/appState.d.ts +1 -0
- package/types/clients.d.ts +1 -1
- package/types/components/ActiveFile.d.ts +0 -1
- package/types/components/App.d.ts +8 -3
- package/types/components/ButtonIconSelect.d.ts +0 -1
- package/types/components/Card.d.ts +1 -0
- package/types/components/CheckboxItem.d.ts +1 -0
- package/types/components/ClearCanvas.d.ts +0 -1
- package/types/components/CollabButton.d.ts +0 -1
- package/types/components/ColorPicker.d.ts +0 -1
- package/types/components/ConfirmDialog.d.ts +0 -1
- package/types/components/DarkModeToggle.d.ts +0 -1
- package/types/components/ErrorDialog.d.ts +0 -1
- package/types/components/HelpDialog.d.ts +0 -1
- package/types/components/HelpIcon.d.ts +0 -1
- package/types/components/HintViewer.d.ts +0 -1
- package/types/components/IconPicker.d.ts +0 -1
- package/types/components/ImageExportDialog.d.ts +0 -1
- package/types/components/JSONExportDialog.d.ts +0 -1
- package/types/components/LayerUI.d.ts +1 -4
- package/types/components/LibraryMenu.d.ts +0 -1
- package/types/components/LibraryUnit.d.ts +0 -1
- package/types/components/LockButton.d.ts +0 -1
- package/types/components/MobileMenu.d.ts +1 -2
- package/types/components/Modal.d.ts +2 -2
- package/types/components/PenModeButton.d.ts +0 -1
- package/types/components/ProjectName.d.ts +0 -1
- package/types/components/PublishLibrary.d.ts +0 -1
- package/types/components/Section.d.ts +4 -5
- package/types/components/SidebarLockButton.d.ts +0 -1
- package/types/components/SingleLibraryItem.d.ts +0 -1
- package/types/components/Spinner.d.ts +0 -1
- package/types/components/Toast.d.ts +4 -3
- package/types/constants.d.ts +0 -1
- package/types/data/blob.d.ts +4 -4
- package/types/data/filesystem.d.ts +2 -2
- package/types/data/json.d.ts +1 -1
- package/types/element/Hyperlink.d.ts +6 -2
- package/types/element/binding.d.ts +3 -3
- package/types/element/dragElements.d.ts +1 -1
- package/types/element/index.d.ts +1 -1
- package/types/element/linearElementEditor.d.ts +5 -1
- package/types/element/mutateElement.d.ts +1 -1
- package/types/element/sizeHelpers.d.ts +4 -0
- package/types/element/textElement.d.ts +1 -1
- package/types/element/typeChecks.d.ts +3 -3
- package/types/jotai.d.ts +5 -3
- package/types/keys.d.ts +1 -1
- package/types/packages/excalidraw/example/App.d.ts +0 -1
- package/types/renderer/renderElement.d.ts +1 -1
- package/types/renderer/renderScene.d.ts +9 -1
- package/types/shapes.d.ts +0 -1
- package/types/types.d.ts +8 -2
- package/types/utils.d.ts +7 -5
|
@@ -69,7 +69,11 @@ export declare const actionChangeProjectName: {
|
|
|
69
69
|
};
|
|
70
70
|
shouldCacheIgnoreZoom: boolean;
|
|
71
71
|
showHelpDialog: boolean;
|
|
72
|
-
|
|
72
|
+
toast: {
|
|
73
|
+
message: string;
|
|
74
|
+
closable?: boolean | undefined;
|
|
75
|
+
duration?: number | undefined;
|
|
76
|
+
} | null;
|
|
73
77
|
zenModeEnabled: boolean;
|
|
74
78
|
theme: string;
|
|
75
79
|
gridSize: number | null;
|
|
@@ -107,7 +111,7 @@ export declare const actionChangeProjectName: {
|
|
|
107
111
|
};
|
|
108
112
|
commitToHistory: false;
|
|
109
113
|
};
|
|
110
|
-
PanelComponent: ({ appState, updateData, appProps }: import("
|
|
114
|
+
PanelComponent: ({ appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
111
115
|
} & {
|
|
112
116
|
keyTest?: undefined;
|
|
113
117
|
};
|
|
@@ -183,7 +187,11 @@ export declare const actionChangeExportScale: {
|
|
|
183
187
|
};
|
|
184
188
|
shouldCacheIgnoreZoom: boolean;
|
|
185
189
|
showHelpDialog: boolean;
|
|
186
|
-
|
|
190
|
+
toast: {
|
|
191
|
+
message: string;
|
|
192
|
+
closable?: boolean | undefined;
|
|
193
|
+
duration?: number | undefined;
|
|
194
|
+
} | null;
|
|
187
195
|
zenModeEnabled: boolean;
|
|
188
196
|
theme: string;
|
|
189
197
|
gridSize: number | null;
|
|
@@ -221,7 +229,7 @@ export declare const actionChangeExportScale: {
|
|
|
221
229
|
};
|
|
222
230
|
commitToHistory: false;
|
|
223
231
|
};
|
|
224
|
-
PanelComponent: ({ elements: allElements, appState, updateData }: import("
|
|
232
|
+
PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
225
233
|
} & {
|
|
226
234
|
keyTest?: undefined;
|
|
227
235
|
};
|
|
@@ -297,7 +305,11 @@ export declare const actionChangeExportBackground: {
|
|
|
297
305
|
};
|
|
298
306
|
shouldCacheIgnoreZoom: boolean;
|
|
299
307
|
showHelpDialog: boolean;
|
|
300
|
-
|
|
308
|
+
toast: {
|
|
309
|
+
message: string;
|
|
310
|
+
closable?: boolean | undefined;
|
|
311
|
+
duration?: number | undefined;
|
|
312
|
+
} | null;
|
|
301
313
|
zenModeEnabled: boolean;
|
|
302
314
|
theme: string;
|
|
303
315
|
gridSize: number | null;
|
|
@@ -335,7 +347,7 @@ export declare const actionChangeExportBackground: {
|
|
|
335
347
|
};
|
|
336
348
|
commitToHistory: false;
|
|
337
349
|
};
|
|
338
|
-
PanelComponent: ({ appState, updateData }: import("
|
|
350
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
339
351
|
} & {
|
|
340
352
|
keyTest?: undefined;
|
|
341
353
|
};
|
|
@@ -411,7 +423,11 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
411
423
|
};
|
|
412
424
|
shouldCacheIgnoreZoom: boolean;
|
|
413
425
|
showHelpDialog: boolean;
|
|
414
|
-
|
|
426
|
+
toast: {
|
|
427
|
+
message: string;
|
|
428
|
+
closable?: boolean | undefined;
|
|
429
|
+
duration?: number | undefined;
|
|
430
|
+
} | null;
|
|
415
431
|
zenModeEnabled: boolean;
|
|
416
432
|
theme: string;
|
|
417
433
|
gridSize: number | null;
|
|
@@ -449,7 +465,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
449
465
|
};
|
|
450
466
|
commitToHistory: false;
|
|
451
467
|
};
|
|
452
|
-
PanelComponent: ({ appState, updateData }: import("
|
|
468
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
453
469
|
} & {
|
|
454
470
|
keyTest?: undefined;
|
|
455
471
|
};
|
|
@@ -462,7 +478,9 @@ export declare const actionSaveToActiveFile: {
|
|
|
462
478
|
commitToHistory: false;
|
|
463
479
|
appState: {
|
|
464
480
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
465
|
-
|
|
481
|
+
toast: {
|
|
482
|
+
message: string;
|
|
483
|
+
} | null;
|
|
466
484
|
isLoading: boolean;
|
|
467
485
|
errorMessage: string | null;
|
|
468
486
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -566,7 +584,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
566
584
|
appState?: undefined;
|
|
567
585
|
}>;
|
|
568
586
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
569
|
-
PanelComponent: ({ updateData, appState }: import("
|
|
587
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
570
588
|
} & {
|
|
571
589
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
572
590
|
};
|
|
@@ -643,7 +661,11 @@ export declare const actionSaveFileToDisk: {
|
|
|
643
661
|
};
|
|
644
662
|
shouldCacheIgnoreZoom: boolean;
|
|
645
663
|
showHelpDialog: boolean;
|
|
646
|
-
|
|
664
|
+
toast: {
|
|
665
|
+
message: string;
|
|
666
|
+
closable?: boolean | undefined;
|
|
667
|
+
duration?: number | undefined;
|
|
668
|
+
} | null;
|
|
647
669
|
zenModeEnabled: boolean;
|
|
648
670
|
theme: string;
|
|
649
671
|
gridSize: number | null;
|
|
@@ -683,7 +705,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
683
705
|
appState?: undefined;
|
|
684
706
|
}>;
|
|
685
707
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
686
|
-
PanelComponent: ({ updateData }: import("
|
|
708
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
687
709
|
} & {
|
|
688
710
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
689
711
|
};
|
|
@@ -760,7 +782,11 @@ export declare const actionLoadScene: {
|
|
|
760
782
|
[id: string]: boolean;
|
|
761
783
|
};
|
|
762
784
|
showHelpDialog: boolean;
|
|
763
|
-
|
|
785
|
+
toast: {
|
|
786
|
+
message: string;
|
|
787
|
+
closable?: boolean | undefined;
|
|
788
|
+
duration?: number | undefined;
|
|
789
|
+
} | null;
|
|
764
790
|
zenModeEnabled: boolean;
|
|
765
791
|
gridSize: number | null;
|
|
766
792
|
viewModeEnabled: boolean;
|
|
@@ -860,7 +886,11 @@ export declare const actionLoadScene: {
|
|
|
860
886
|
};
|
|
861
887
|
shouldCacheIgnoreZoom: boolean;
|
|
862
888
|
showHelpDialog: boolean;
|
|
863
|
-
|
|
889
|
+
toast: {
|
|
890
|
+
message: string;
|
|
891
|
+
closable?: boolean | undefined;
|
|
892
|
+
duration?: number | undefined;
|
|
893
|
+
} | null;
|
|
864
894
|
zenModeEnabled: boolean;
|
|
865
895
|
theme: string;
|
|
866
896
|
gridSize: number | null;
|
|
@@ -900,7 +930,7 @@ export declare const actionLoadScene: {
|
|
|
900
930
|
commitToHistory: false;
|
|
901
931
|
}>;
|
|
902
932
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
903
|
-
PanelComponent: ({ updateData, appState }: import("
|
|
933
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
904
934
|
} & {
|
|
905
935
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
906
936
|
};
|
|
@@ -976,7 +1006,11 @@ export declare const actionExportWithDarkMode: {
|
|
|
976
1006
|
};
|
|
977
1007
|
shouldCacheIgnoreZoom: boolean;
|
|
978
1008
|
showHelpDialog: boolean;
|
|
979
|
-
|
|
1009
|
+
toast: {
|
|
1010
|
+
message: string;
|
|
1011
|
+
closable?: boolean | undefined;
|
|
1012
|
+
duration?: number | undefined;
|
|
1013
|
+
} | null;
|
|
980
1014
|
zenModeEnabled: boolean;
|
|
981
1015
|
theme: string;
|
|
982
1016
|
gridSize: number | null;
|
|
@@ -1014,7 +1048,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1014
1048
|
};
|
|
1015
1049
|
commitToHistory: false;
|
|
1016
1050
|
};
|
|
1017
|
-
PanelComponent: ({ appState, updateData }: import("
|
|
1051
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1018
1052
|
} & {
|
|
1019
1053
|
keyTest?: undefined;
|
|
1020
1054
|
};
|
|
@@ -71,7 +71,11 @@ export declare const actionFinalize: {
|
|
|
71
71
|
};
|
|
72
72
|
shouldCacheIgnoreZoom: boolean;
|
|
73
73
|
showHelpDialog: boolean;
|
|
74
|
-
|
|
74
|
+
toast: {
|
|
75
|
+
message: string;
|
|
76
|
+
closable?: boolean | undefined;
|
|
77
|
+
duration?: number | undefined;
|
|
78
|
+
} | null;
|
|
75
79
|
zenModeEnabled: boolean;
|
|
76
80
|
theme: string;
|
|
77
81
|
gridSize: number | null;
|
|
@@ -176,7 +180,11 @@ export declare const actionFinalize: {
|
|
|
176
180
|
};
|
|
177
181
|
shouldCacheIgnoreZoom: boolean;
|
|
178
182
|
showHelpDialog: boolean;
|
|
179
|
-
|
|
183
|
+
toast: {
|
|
184
|
+
message: string;
|
|
185
|
+
closable?: boolean | undefined;
|
|
186
|
+
duration?: number | undefined;
|
|
187
|
+
} | null;
|
|
180
188
|
zenModeEnabled: boolean;
|
|
181
189
|
theme: string;
|
|
182
190
|
gridSize: number | null;
|
|
@@ -214,7 +222,7 @@ export declare const actionFinalize: {
|
|
|
214
222
|
commitToHistory: boolean;
|
|
215
223
|
};
|
|
216
224
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
|
|
217
|
-
PanelComponent: ({ appState, updateData, data }: import("
|
|
225
|
+
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
218
226
|
} & {
|
|
219
227
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
|
|
220
228
|
};
|
|
@@ -18,7 +18,7 @@ export declare const actionGroup: {
|
|
|
18
18
|
contextItemLabel: string;
|
|
19
19
|
contextItemPredicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
20
20
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
21
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
21
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
22
22
|
} & {
|
|
23
23
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
24
24
|
};
|
|
@@ -39,7 +39,7 @@ export declare const actionUngroup: {
|
|
|
39
39
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
40
40
|
contextItemLabel: string;
|
|
41
41
|
contextItemPredicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
42
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
42
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
43
43
|
} & {
|
|
44
44
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
45
45
|
};
|
|
@@ -70,7 +70,11 @@ export declare const actionToggleCanvasMenu: {
|
|
|
70
70
|
};
|
|
71
71
|
shouldCacheIgnoreZoom: boolean;
|
|
72
72
|
showHelpDialog: boolean;
|
|
73
|
-
|
|
73
|
+
toast: {
|
|
74
|
+
message: string;
|
|
75
|
+
closable?: boolean | undefined;
|
|
76
|
+
duration?: number | undefined;
|
|
77
|
+
} | null;
|
|
74
78
|
zenModeEnabled: boolean;
|
|
75
79
|
theme: string;
|
|
76
80
|
gridSize: number | null;
|
|
@@ -108,7 +112,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
108
112
|
};
|
|
109
113
|
commitToHistory: false;
|
|
110
114
|
};
|
|
111
|
-
PanelComponent: ({ appState, updateData }: import("
|
|
115
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
112
116
|
} & {
|
|
113
117
|
keyTest?: undefined;
|
|
114
118
|
};
|
|
@@ -183,7 +187,11 @@ export declare const actionToggleEditMenu: {
|
|
|
183
187
|
};
|
|
184
188
|
shouldCacheIgnoreZoom: boolean;
|
|
185
189
|
showHelpDialog: boolean;
|
|
186
|
-
|
|
190
|
+
toast: {
|
|
191
|
+
message: string;
|
|
192
|
+
closable?: boolean | undefined;
|
|
193
|
+
duration?: number | undefined;
|
|
194
|
+
} | null;
|
|
187
195
|
zenModeEnabled: boolean;
|
|
188
196
|
theme: string;
|
|
189
197
|
gridSize: number | null;
|
|
@@ -221,7 +229,7 @@ export declare const actionToggleEditMenu: {
|
|
|
221
229
|
};
|
|
222
230
|
commitToHistory: false;
|
|
223
231
|
};
|
|
224
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
232
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
225
233
|
} & {
|
|
226
234
|
keyTest?: undefined;
|
|
227
235
|
};
|
|
@@ -310,7 +318,11 @@ export declare const actionShortcuts: {
|
|
|
310
318
|
[id: string]: boolean;
|
|
311
319
|
};
|
|
312
320
|
shouldCacheIgnoreZoom: boolean;
|
|
313
|
-
|
|
321
|
+
toast: {
|
|
322
|
+
message: string;
|
|
323
|
+
closable?: boolean | undefined;
|
|
324
|
+
duration?: number | undefined;
|
|
325
|
+
} | null;
|
|
314
326
|
zenModeEnabled: boolean;
|
|
315
327
|
theme: string;
|
|
316
328
|
gridSize: number | null;
|
|
@@ -348,7 +360,7 @@ export declare const actionShortcuts: {
|
|
|
348
360
|
};
|
|
349
361
|
commitToHistory: false;
|
|
350
362
|
};
|
|
351
|
-
PanelComponent: ({ updateData }: import("
|
|
363
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
352
364
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
353
365
|
} & {
|
|
354
366
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const actionGoToCollaborator: {
|
|
3
2
|
name: "goToCollaborator";
|
|
4
3
|
trackEvent: {
|
|
@@ -8,7 +7,7 @@ export declare const actionGoToCollaborator: {
|
|
|
8
7
|
appState: Readonly<import("../types").AppState>;
|
|
9
8
|
commitToHistory: false;
|
|
10
9
|
};
|
|
11
|
-
PanelComponent: ({ appState, updateData, data }: import("
|
|
10
|
+
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
12
11
|
} & {
|
|
13
12
|
keyTest?: undefined;
|
|
14
13
|
};
|
|
@@ -5,7 +5,7 @@ export declare const actionChangeStrokeColor: {
|
|
|
5
5
|
name: "changeStrokeColor";
|
|
6
6
|
trackEvent: false;
|
|
7
7
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
8
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
8
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
9
9
|
} & {
|
|
10
10
|
keyTest?: undefined;
|
|
11
11
|
};
|
|
@@ -13,7 +13,7 @@ export declare const actionChangeBackgroundColor: {
|
|
|
13
13
|
name: "changeBackgroundColor";
|
|
14
14
|
trackEvent: false;
|
|
15
15
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
16
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
16
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
17
17
|
} & {
|
|
18
18
|
keyTest?: undefined;
|
|
19
19
|
};
|
|
@@ -87,7 +87,11 @@ export declare const actionChangeFillStyle: {
|
|
|
87
87
|
};
|
|
88
88
|
shouldCacheIgnoreZoom: boolean;
|
|
89
89
|
showHelpDialog: boolean;
|
|
90
|
-
|
|
90
|
+
toast: {
|
|
91
|
+
message: string;
|
|
92
|
+
closable?: boolean | undefined;
|
|
93
|
+
duration?: number | undefined;
|
|
94
|
+
} | null;
|
|
91
95
|
zenModeEnabled: boolean;
|
|
92
96
|
theme: string;
|
|
93
97
|
gridSize: number | null;
|
|
@@ -125,7 +129,7 @@ export declare const actionChangeFillStyle: {
|
|
|
125
129
|
};
|
|
126
130
|
commitToHistory: true;
|
|
127
131
|
};
|
|
128
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
132
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
129
133
|
} & {
|
|
130
134
|
keyTest?: undefined;
|
|
131
135
|
};
|
|
@@ -199,7 +203,11 @@ export declare const actionChangeStrokeWidth: {
|
|
|
199
203
|
};
|
|
200
204
|
shouldCacheIgnoreZoom: boolean;
|
|
201
205
|
showHelpDialog: boolean;
|
|
202
|
-
|
|
206
|
+
toast: {
|
|
207
|
+
message: string;
|
|
208
|
+
closable?: boolean | undefined;
|
|
209
|
+
duration?: number | undefined;
|
|
210
|
+
} | null;
|
|
203
211
|
zenModeEnabled: boolean;
|
|
204
212
|
theme: string;
|
|
205
213
|
gridSize: number | null;
|
|
@@ -237,7 +245,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
237
245
|
};
|
|
238
246
|
commitToHistory: true;
|
|
239
247
|
};
|
|
240
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
248
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
241
249
|
} & {
|
|
242
250
|
keyTest?: undefined;
|
|
243
251
|
};
|
|
@@ -311,7 +319,11 @@ export declare const actionChangeSloppiness: {
|
|
|
311
319
|
};
|
|
312
320
|
shouldCacheIgnoreZoom: boolean;
|
|
313
321
|
showHelpDialog: boolean;
|
|
314
|
-
|
|
322
|
+
toast: {
|
|
323
|
+
message: string;
|
|
324
|
+
closable?: boolean | undefined;
|
|
325
|
+
duration?: number | undefined;
|
|
326
|
+
} | null;
|
|
315
327
|
zenModeEnabled: boolean;
|
|
316
328
|
theme: string;
|
|
317
329
|
gridSize: number | null;
|
|
@@ -349,7 +361,7 @@ export declare const actionChangeSloppiness: {
|
|
|
349
361
|
};
|
|
350
362
|
commitToHistory: true;
|
|
351
363
|
};
|
|
352
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
364
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
353
365
|
} & {
|
|
354
366
|
keyTest?: undefined;
|
|
355
367
|
};
|
|
@@ -423,7 +435,11 @@ export declare const actionChangeStrokeStyle: {
|
|
|
423
435
|
};
|
|
424
436
|
shouldCacheIgnoreZoom: boolean;
|
|
425
437
|
showHelpDialog: boolean;
|
|
426
|
-
|
|
438
|
+
toast: {
|
|
439
|
+
message: string;
|
|
440
|
+
closable?: boolean | undefined;
|
|
441
|
+
duration?: number | undefined;
|
|
442
|
+
} | null;
|
|
427
443
|
zenModeEnabled: boolean;
|
|
428
444
|
theme: string;
|
|
429
445
|
gridSize: number | null;
|
|
@@ -461,7 +477,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
461
477
|
};
|
|
462
478
|
commitToHistory: true;
|
|
463
479
|
};
|
|
464
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
480
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
465
481
|
} & {
|
|
466
482
|
keyTest?: undefined;
|
|
467
483
|
};
|
|
@@ -535,7 +551,11 @@ export declare const actionChangeOpacity: {
|
|
|
535
551
|
};
|
|
536
552
|
shouldCacheIgnoreZoom: boolean;
|
|
537
553
|
showHelpDialog: boolean;
|
|
538
|
-
|
|
554
|
+
toast: {
|
|
555
|
+
message: string;
|
|
556
|
+
closable?: boolean | undefined;
|
|
557
|
+
duration?: number | undefined;
|
|
558
|
+
} | null;
|
|
539
559
|
zenModeEnabled: boolean;
|
|
540
560
|
theme: string;
|
|
541
561
|
gridSize: number | null;
|
|
@@ -573,7 +593,7 @@ export declare const actionChangeOpacity: {
|
|
|
573
593
|
};
|
|
574
594
|
commitToHistory: true;
|
|
575
595
|
};
|
|
576
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
596
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
577
597
|
} & {
|
|
578
598
|
keyTest?: undefined;
|
|
579
599
|
};
|
|
@@ -647,7 +667,11 @@ export declare const actionChangeFontSize: {
|
|
|
647
667
|
};
|
|
648
668
|
shouldCacheIgnoreZoom: boolean;
|
|
649
669
|
showHelpDialog: boolean;
|
|
650
|
-
|
|
670
|
+
toast: {
|
|
671
|
+
message: string;
|
|
672
|
+
closable?: boolean | undefined;
|
|
673
|
+
duration?: number | undefined;
|
|
674
|
+
} | null;
|
|
651
675
|
zenModeEnabled: boolean;
|
|
652
676
|
theme: string;
|
|
653
677
|
gridSize: number | null;
|
|
@@ -685,7 +709,7 @@ export declare const actionChangeFontSize: {
|
|
|
685
709
|
};
|
|
686
710
|
commitToHistory: boolean;
|
|
687
711
|
};
|
|
688
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
712
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
689
713
|
} & {
|
|
690
714
|
keyTest?: undefined;
|
|
691
715
|
};
|
|
@@ -759,7 +783,11 @@ export declare const actionDecreaseFontSize: {
|
|
|
759
783
|
};
|
|
760
784
|
shouldCacheIgnoreZoom: boolean;
|
|
761
785
|
showHelpDialog: boolean;
|
|
762
|
-
|
|
786
|
+
toast: {
|
|
787
|
+
message: string;
|
|
788
|
+
closable?: boolean | undefined;
|
|
789
|
+
duration?: number | undefined;
|
|
790
|
+
} | null;
|
|
763
791
|
zenModeEnabled: boolean;
|
|
764
792
|
theme: string;
|
|
765
793
|
gridSize: number | null;
|
|
@@ -871,7 +899,11 @@ export declare const actionIncreaseFontSize: {
|
|
|
871
899
|
};
|
|
872
900
|
shouldCacheIgnoreZoom: boolean;
|
|
873
901
|
showHelpDialog: boolean;
|
|
874
|
-
|
|
902
|
+
toast: {
|
|
903
|
+
message: string;
|
|
904
|
+
closable?: boolean | undefined;
|
|
905
|
+
duration?: number | undefined;
|
|
906
|
+
} | null;
|
|
875
907
|
zenModeEnabled: boolean;
|
|
876
908
|
theme: string;
|
|
877
909
|
gridSize: number | null;
|
|
@@ -983,7 +1015,11 @@ export declare const actionChangeFontFamily: {
|
|
|
983
1015
|
};
|
|
984
1016
|
shouldCacheIgnoreZoom: boolean;
|
|
985
1017
|
showHelpDialog: boolean;
|
|
986
|
-
|
|
1018
|
+
toast: {
|
|
1019
|
+
message: string;
|
|
1020
|
+
closable?: boolean | undefined;
|
|
1021
|
+
duration?: number | undefined;
|
|
1022
|
+
} | null;
|
|
987
1023
|
zenModeEnabled: boolean;
|
|
988
1024
|
theme: string;
|
|
989
1025
|
gridSize: number | null;
|
|
@@ -1021,7 +1057,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1021
1057
|
};
|
|
1022
1058
|
commitToHistory: true;
|
|
1023
1059
|
};
|
|
1024
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
1060
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1025
1061
|
} & {
|
|
1026
1062
|
keyTest?: undefined;
|
|
1027
1063
|
};
|
|
@@ -1095,7 +1131,11 @@ export declare const actionChangeTextAlign: {
|
|
|
1095
1131
|
};
|
|
1096
1132
|
shouldCacheIgnoreZoom: boolean;
|
|
1097
1133
|
showHelpDialog: boolean;
|
|
1098
|
-
|
|
1134
|
+
toast: {
|
|
1135
|
+
message: string;
|
|
1136
|
+
closable?: boolean | undefined;
|
|
1137
|
+
duration?: number | undefined;
|
|
1138
|
+
} | null;
|
|
1099
1139
|
zenModeEnabled: boolean;
|
|
1100
1140
|
theme: string;
|
|
1101
1141
|
gridSize: number | null;
|
|
@@ -1133,7 +1173,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1133
1173
|
};
|
|
1134
1174
|
commitToHistory: true;
|
|
1135
1175
|
};
|
|
1136
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
1176
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1137
1177
|
} & {
|
|
1138
1178
|
keyTest?: undefined;
|
|
1139
1179
|
};
|
|
@@ -1209,7 +1249,11 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1209
1249
|
};
|
|
1210
1250
|
shouldCacheIgnoreZoom: boolean;
|
|
1211
1251
|
showHelpDialog: boolean;
|
|
1212
|
-
|
|
1252
|
+
toast: {
|
|
1253
|
+
message: string;
|
|
1254
|
+
closable?: boolean | undefined;
|
|
1255
|
+
duration?: number | undefined;
|
|
1256
|
+
} | null;
|
|
1213
1257
|
zenModeEnabled: boolean;
|
|
1214
1258
|
theme: string;
|
|
1215
1259
|
gridSize: number | null;
|
|
@@ -1247,7 +1291,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1247
1291
|
};
|
|
1248
1292
|
commitToHistory: true;
|
|
1249
1293
|
};
|
|
1250
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
1294
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1251
1295
|
} & {
|
|
1252
1296
|
keyTest?: undefined;
|
|
1253
1297
|
};
|
|
@@ -1321,7 +1365,11 @@ export declare const actionChangeSharpness: {
|
|
|
1321
1365
|
};
|
|
1322
1366
|
shouldCacheIgnoreZoom: boolean;
|
|
1323
1367
|
showHelpDialog: boolean;
|
|
1324
|
-
|
|
1368
|
+
toast: {
|
|
1369
|
+
message: string;
|
|
1370
|
+
closable?: boolean | undefined;
|
|
1371
|
+
duration?: number | undefined;
|
|
1372
|
+
} | null;
|
|
1325
1373
|
zenModeEnabled: boolean;
|
|
1326
1374
|
theme: string;
|
|
1327
1375
|
gridSize: number | null;
|
|
@@ -1359,7 +1407,7 @@ export declare const actionChangeSharpness: {
|
|
|
1359
1407
|
};
|
|
1360
1408
|
commitToHistory: true;
|
|
1361
1409
|
};
|
|
1362
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
1410
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1363
1411
|
} & {
|
|
1364
1412
|
keyTest?: undefined;
|
|
1365
1413
|
};
|
|
@@ -1436,7 +1484,11 @@ export declare const actionChangeArrowhead: {
|
|
|
1436
1484
|
};
|
|
1437
1485
|
shouldCacheIgnoreZoom: boolean;
|
|
1438
1486
|
showHelpDialog: boolean;
|
|
1439
|
-
|
|
1487
|
+
toast: {
|
|
1488
|
+
message: string;
|
|
1489
|
+
closable?: boolean | undefined;
|
|
1490
|
+
duration?: number | undefined;
|
|
1491
|
+
} | null;
|
|
1440
1492
|
zenModeEnabled: boolean;
|
|
1441
1493
|
theme: string;
|
|
1442
1494
|
gridSize: number | null;
|
|
@@ -1474,7 +1526,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1474
1526
|
};
|
|
1475
1527
|
commitToHistory: true;
|
|
1476
1528
|
};
|
|
1477
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
1529
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1478
1530
|
} & {
|
|
1479
1531
|
keyTest?: undefined;
|
|
1480
1532
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { ExcalidrawElement } from "../element/types";
|
|
2
3
|
export declare const actionSelectAll: {
|
|
3
4
|
name: "selectAll";
|
|
4
5
|
trackEvent: {
|
|
5
6
|
category: "canvas";
|
|
6
7
|
};
|
|
7
|
-
perform: (elements: readonly
|
|
8
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
|
|
8
9
|
appState: import("../types").AppState;
|
|
9
10
|
commitToHistory: true;
|
|
10
11
|
};
|
|
@@ -7,7 +7,9 @@ export declare const actionCopyStyles: {
|
|
|
7
7
|
};
|
|
8
8
|
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
9
9
|
appState: {
|
|
10
|
-
|
|
10
|
+
toast: {
|
|
11
|
+
message: string;
|
|
12
|
+
};
|
|
11
13
|
isLoading: boolean;
|
|
12
14
|
errorMessage: string | null;
|
|
13
15
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -73,7 +73,11 @@ export declare const actionToggleGridMode: {
|
|
|
73
73
|
};
|
|
74
74
|
shouldCacheIgnoreZoom: boolean;
|
|
75
75
|
showHelpDialog: boolean;
|
|
76
|
-
|
|
76
|
+
toast: {
|
|
77
|
+
message: string;
|
|
78
|
+
closable?: boolean | undefined;
|
|
79
|
+
duration?: number | undefined;
|
|
80
|
+
} | null;
|
|
77
81
|
zenModeEnabled: boolean;
|
|
78
82
|
theme: string;
|
|
79
83
|
viewModeEnabled: boolean;
|
|
@@ -71,7 +71,11 @@ export declare const actionToggleStats: {
|
|
|
71
71
|
};
|
|
72
72
|
shouldCacheIgnoreZoom: boolean;
|
|
73
73
|
showHelpDialog: boolean;
|
|
74
|
-
|
|
74
|
+
toast: {
|
|
75
|
+
message: string;
|
|
76
|
+
closable?: boolean | undefined;
|
|
77
|
+
duration?: number | undefined;
|
|
78
|
+
} | null;
|
|
75
79
|
zenModeEnabled: boolean;
|
|
76
80
|
theme: string;
|
|
77
81
|
gridSize: number | null;
|
|
@@ -72,7 +72,11 @@ export declare const actionToggleViewMode: {
|
|
|
72
72
|
};
|
|
73
73
|
shouldCacheIgnoreZoom: boolean;
|
|
74
74
|
showHelpDialog: boolean;
|
|
75
|
-
|
|
75
|
+
toast: {
|
|
76
|
+
message: string;
|
|
77
|
+
closable?: boolean | undefined;
|
|
78
|
+
duration?: number | undefined;
|
|
79
|
+
} | null;
|
|
76
80
|
zenModeEnabled: boolean;
|
|
77
81
|
theme: string;
|
|
78
82
|
gridSize: number | null;
|