@zsviczian/excalidraw 0.11.0-obsidian-21-namedexport → 0.12.0-obsidian-0
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 +186 -149
- 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 +19 -6
- package/types/actions/actionAlign.d.ts +6 -6
- package/types/actions/actionBoundText.d.ts +7 -2
- package/types/actions/actionCanvas.d.ts +70 -25
- package/types/actions/actionClipboard.d.ts +35 -10
- package/types/actions/actionDeleteSelected.d.ts +22 -7
- package/types/actions/actionDistribute.d.ts +2 -2
- package/types/actions/actionDuplicateSelection.d.ts +1 -1
- package/types/actions/actionExport.d.ts +69 -26
- package/types/actions/actionFinalize.d.ts +16 -6
- package/types/actions/actionGroup.d.ts +2 -2
- package/types/actions/actionMenu.d.ts +24 -9
- package/types/actions/actionNavigate.d.ts +1 -2
- package/types/actions/actionProperties.d.ts +104 -39
- package/types/actions/actionSelectAll.d.ts +2 -1
- package/types/actions/actionStyles.d.ts +5 -2
- package/types/actions/actionToggleGridMode.d.ts +7 -2
- package/types/actions/actionToggleStats.d.ts +7 -2
- package/types/actions/actionToggleViewMode.d.ts +7 -2
- package/types/actions/actionToggleZenMode.d.ts +7 -2
- package/types/actions/actionZindex.d.ts +4 -4
- package/types/analytics.d.ts +1 -1
- package/types/appState.d.ts +3 -0
- package/types/clients.d.ts +1 -1
- package/types/components/ActiveFile.d.ts +0 -1
- package/types/components/App.d.ts +17 -8
- 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 +4 -6
- package/types/components/LibraryMenu.d.ts +0 -1
- package/types/components/LibraryMenuItems.d.ts +2 -1
- package/types/components/LibraryUnit.d.ts +0 -1
- package/types/components/LockButton.d.ts +0 -1
- package/types/components/MobileMenu.d.ts +2 -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 +8 -0
- package/types/components/SingleLibraryItem.d.ts +0 -1
- package/types/components/Spinner.d.ts +0 -1
- package/types/components/Stack.d.ts +1 -1
- package/types/components/Toast.d.ts +4 -3
- package/types/constants.d.ts +3 -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 +8 -3
- package/types/element/binding.d.ts +3 -3
- package/types/element/dragElements.d.ts +1 -1
- package/types/element/linearElementEditor.d.ts +7 -2
- package/types/element/mutateElement.d.ts +1 -1
- 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 +21 -12
- package/types/utils.d.ts +8 -5
|
@@ -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;
|
|
@@ -101,6 +105,7 @@ export declare const actionChangeFillStyle: {
|
|
|
101
105
|
offsetTop: number;
|
|
102
106
|
offsetLeft: number;
|
|
103
107
|
isLibraryOpen: boolean;
|
|
108
|
+
isLibraryMenuDocked: boolean;
|
|
104
109
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
105
110
|
collaborators: Map<string, import("../../src/types").Collaborator>;
|
|
106
111
|
showStats: boolean;
|
|
@@ -112,7 +117,7 @@ export declare const actionChangeFillStyle: {
|
|
|
112
117
|
shown: true;
|
|
113
118
|
data: import("../charts").Spreadsheet;
|
|
114
119
|
};
|
|
115
|
-
|
|
120
|
+
pendingImageElementId: string | null;
|
|
116
121
|
showHyperlinkPopup: false | "info" | "editor";
|
|
117
122
|
linkOpacity: number;
|
|
118
123
|
trayModeEnabled: boolean;
|
|
@@ -124,7 +129,7 @@ export declare const actionChangeFillStyle: {
|
|
|
124
129
|
};
|
|
125
130
|
commitToHistory: true;
|
|
126
131
|
};
|
|
127
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
132
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
128
133
|
} & {
|
|
129
134
|
keyTest?: undefined;
|
|
130
135
|
};
|
|
@@ -198,7 +203,11 @@ export declare const actionChangeStrokeWidth: {
|
|
|
198
203
|
};
|
|
199
204
|
shouldCacheIgnoreZoom: boolean;
|
|
200
205
|
showHelpDialog: boolean;
|
|
201
|
-
|
|
206
|
+
toast: {
|
|
207
|
+
message: string;
|
|
208
|
+
closable?: boolean | undefined;
|
|
209
|
+
duration?: number | undefined;
|
|
210
|
+
} | null;
|
|
202
211
|
zenModeEnabled: boolean;
|
|
203
212
|
theme: string;
|
|
204
213
|
gridSize: number | null;
|
|
@@ -212,6 +221,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
212
221
|
offsetTop: number;
|
|
213
222
|
offsetLeft: number;
|
|
214
223
|
isLibraryOpen: boolean;
|
|
224
|
+
isLibraryMenuDocked: boolean;
|
|
215
225
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
216
226
|
collaborators: Map<string, import("../../src/types").Collaborator>;
|
|
217
227
|
showStats: boolean;
|
|
@@ -223,7 +233,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
223
233
|
shown: true;
|
|
224
234
|
data: import("../charts").Spreadsheet;
|
|
225
235
|
};
|
|
226
|
-
|
|
236
|
+
pendingImageElementId: string | null;
|
|
227
237
|
showHyperlinkPopup: false | "info" | "editor";
|
|
228
238
|
linkOpacity: number;
|
|
229
239
|
trayModeEnabled: boolean;
|
|
@@ -235,7 +245,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
235
245
|
};
|
|
236
246
|
commitToHistory: true;
|
|
237
247
|
};
|
|
238
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
248
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
239
249
|
} & {
|
|
240
250
|
keyTest?: undefined;
|
|
241
251
|
};
|
|
@@ -309,7 +319,11 @@ export declare const actionChangeSloppiness: {
|
|
|
309
319
|
};
|
|
310
320
|
shouldCacheIgnoreZoom: boolean;
|
|
311
321
|
showHelpDialog: boolean;
|
|
312
|
-
|
|
322
|
+
toast: {
|
|
323
|
+
message: string;
|
|
324
|
+
closable?: boolean | undefined;
|
|
325
|
+
duration?: number | undefined;
|
|
326
|
+
} | null;
|
|
313
327
|
zenModeEnabled: boolean;
|
|
314
328
|
theme: string;
|
|
315
329
|
gridSize: number | null;
|
|
@@ -323,6 +337,7 @@ export declare const actionChangeSloppiness: {
|
|
|
323
337
|
offsetTop: number;
|
|
324
338
|
offsetLeft: number;
|
|
325
339
|
isLibraryOpen: boolean;
|
|
340
|
+
isLibraryMenuDocked: boolean;
|
|
326
341
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
327
342
|
collaborators: Map<string, import("../../src/types").Collaborator>;
|
|
328
343
|
showStats: boolean;
|
|
@@ -334,7 +349,7 @@ export declare const actionChangeSloppiness: {
|
|
|
334
349
|
shown: true;
|
|
335
350
|
data: import("../charts").Spreadsheet;
|
|
336
351
|
};
|
|
337
|
-
|
|
352
|
+
pendingImageElementId: string | null;
|
|
338
353
|
showHyperlinkPopup: false | "info" | "editor";
|
|
339
354
|
linkOpacity: number;
|
|
340
355
|
trayModeEnabled: boolean;
|
|
@@ -346,7 +361,7 @@ export declare const actionChangeSloppiness: {
|
|
|
346
361
|
};
|
|
347
362
|
commitToHistory: true;
|
|
348
363
|
};
|
|
349
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
364
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
350
365
|
} & {
|
|
351
366
|
keyTest?: undefined;
|
|
352
367
|
};
|
|
@@ -420,7 +435,11 @@ export declare const actionChangeStrokeStyle: {
|
|
|
420
435
|
};
|
|
421
436
|
shouldCacheIgnoreZoom: boolean;
|
|
422
437
|
showHelpDialog: boolean;
|
|
423
|
-
|
|
438
|
+
toast: {
|
|
439
|
+
message: string;
|
|
440
|
+
closable?: boolean | undefined;
|
|
441
|
+
duration?: number | undefined;
|
|
442
|
+
} | null;
|
|
424
443
|
zenModeEnabled: boolean;
|
|
425
444
|
theme: string;
|
|
426
445
|
gridSize: number | null;
|
|
@@ -434,6 +453,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
434
453
|
offsetTop: number;
|
|
435
454
|
offsetLeft: number;
|
|
436
455
|
isLibraryOpen: boolean;
|
|
456
|
+
isLibraryMenuDocked: boolean;
|
|
437
457
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
438
458
|
collaborators: Map<string, import("../../src/types").Collaborator>;
|
|
439
459
|
showStats: boolean;
|
|
@@ -445,7 +465,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
445
465
|
shown: true;
|
|
446
466
|
data: import("../charts").Spreadsheet;
|
|
447
467
|
};
|
|
448
|
-
|
|
468
|
+
pendingImageElementId: string | null;
|
|
449
469
|
showHyperlinkPopup: false | "info" | "editor";
|
|
450
470
|
linkOpacity: number;
|
|
451
471
|
trayModeEnabled: boolean;
|
|
@@ -457,7 +477,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
457
477
|
};
|
|
458
478
|
commitToHistory: true;
|
|
459
479
|
};
|
|
460
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
480
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
461
481
|
} & {
|
|
462
482
|
keyTest?: undefined;
|
|
463
483
|
};
|
|
@@ -531,7 +551,11 @@ export declare const actionChangeOpacity: {
|
|
|
531
551
|
};
|
|
532
552
|
shouldCacheIgnoreZoom: boolean;
|
|
533
553
|
showHelpDialog: boolean;
|
|
534
|
-
|
|
554
|
+
toast: {
|
|
555
|
+
message: string;
|
|
556
|
+
closable?: boolean | undefined;
|
|
557
|
+
duration?: number | undefined;
|
|
558
|
+
} | null;
|
|
535
559
|
zenModeEnabled: boolean;
|
|
536
560
|
theme: string;
|
|
537
561
|
gridSize: number | null;
|
|
@@ -545,6 +569,7 @@ export declare const actionChangeOpacity: {
|
|
|
545
569
|
offsetTop: number;
|
|
546
570
|
offsetLeft: number;
|
|
547
571
|
isLibraryOpen: boolean;
|
|
572
|
+
isLibraryMenuDocked: boolean;
|
|
548
573
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
549
574
|
collaborators: Map<string, import("../../src/types").Collaborator>;
|
|
550
575
|
showStats: boolean;
|
|
@@ -556,7 +581,7 @@ export declare const actionChangeOpacity: {
|
|
|
556
581
|
shown: true;
|
|
557
582
|
data: import("../charts").Spreadsheet;
|
|
558
583
|
};
|
|
559
|
-
|
|
584
|
+
pendingImageElementId: string | null;
|
|
560
585
|
showHyperlinkPopup: false | "info" | "editor";
|
|
561
586
|
linkOpacity: number;
|
|
562
587
|
trayModeEnabled: boolean;
|
|
@@ -568,7 +593,7 @@ export declare const actionChangeOpacity: {
|
|
|
568
593
|
};
|
|
569
594
|
commitToHistory: true;
|
|
570
595
|
};
|
|
571
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
596
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
572
597
|
} & {
|
|
573
598
|
keyTest?: undefined;
|
|
574
599
|
};
|
|
@@ -642,7 +667,11 @@ export declare const actionChangeFontSize: {
|
|
|
642
667
|
};
|
|
643
668
|
shouldCacheIgnoreZoom: boolean;
|
|
644
669
|
showHelpDialog: boolean;
|
|
645
|
-
|
|
670
|
+
toast: {
|
|
671
|
+
message: string;
|
|
672
|
+
closable?: boolean | undefined;
|
|
673
|
+
duration?: number | undefined;
|
|
674
|
+
} | null;
|
|
646
675
|
zenModeEnabled: boolean;
|
|
647
676
|
theme: string;
|
|
648
677
|
gridSize: number | null;
|
|
@@ -656,6 +685,7 @@ export declare const actionChangeFontSize: {
|
|
|
656
685
|
offsetTop: number;
|
|
657
686
|
offsetLeft: number;
|
|
658
687
|
isLibraryOpen: boolean;
|
|
688
|
+
isLibraryMenuDocked: boolean;
|
|
659
689
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
660
690
|
collaborators: Map<string, import("../../src/types").Collaborator>;
|
|
661
691
|
showStats: boolean;
|
|
@@ -667,7 +697,7 @@ export declare const actionChangeFontSize: {
|
|
|
667
697
|
shown: true;
|
|
668
698
|
data: import("../charts").Spreadsheet;
|
|
669
699
|
};
|
|
670
|
-
|
|
700
|
+
pendingImageElementId: string | null;
|
|
671
701
|
showHyperlinkPopup: false | "info" | "editor";
|
|
672
702
|
linkOpacity: number;
|
|
673
703
|
trayModeEnabled: boolean;
|
|
@@ -679,7 +709,7 @@ export declare const actionChangeFontSize: {
|
|
|
679
709
|
};
|
|
680
710
|
commitToHistory: boolean;
|
|
681
711
|
};
|
|
682
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
712
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
683
713
|
} & {
|
|
684
714
|
keyTest?: undefined;
|
|
685
715
|
};
|
|
@@ -753,7 +783,11 @@ export declare const actionDecreaseFontSize: {
|
|
|
753
783
|
};
|
|
754
784
|
shouldCacheIgnoreZoom: boolean;
|
|
755
785
|
showHelpDialog: boolean;
|
|
756
|
-
|
|
786
|
+
toast: {
|
|
787
|
+
message: string;
|
|
788
|
+
closable?: boolean | undefined;
|
|
789
|
+
duration?: number | undefined;
|
|
790
|
+
} | null;
|
|
757
791
|
zenModeEnabled: boolean;
|
|
758
792
|
theme: string;
|
|
759
793
|
gridSize: number | null;
|
|
@@ -767,6 +801,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
767
801
|
offsetTop: number;
|
|
768
802
|
offsetLeft: number;
|
|
769
803
|
isLibraryOpen: boolean;
|
|
804
|
+
isLibraryMenuDocked: boolean;
|
|
770
805
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
771
806
|
collaborators: Map<string, import("../../src/types").Collaborator>;
|
|
772
807
|
showStats: boolean;
|
|
@@ -778,7 +813,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
778
813
|
shown: true;
|
|
779
814
|
data: import("../charts").Spreadsheet;
|
|
780
815
|
};
|
|
781
|
-
|
|
816
|
+
pendingImageElementId: string | null;
|
|
782
817
|
showHyperlinkPopup: false | "info" | "editor";
|
|
783
818
|
linkOpacity: number;
|
|
784
819
|
trayModeEnabled: boolean;
|
|
@@ -864,7 +899,11 @@ export declare const actionIncreaseFontSize: {
|
|
|
864
899
|
};
|
|
865
900
|
shouldCacheIgnoreZoom: boolean;
|
|
866
901
|
showHelpDialog: boolean;
|
|
867
|
-
|
|
902
|
+
toast: {
|
|
903
|
+
message: string;
|
|
904
|
+
closable?: boolean | undefined;
|
|
905
|
+
duration?: number | undefined;
|
|
906
|
+
} | null;
|
|
868
907
|
zenModeEnabled: boolean;
|
|
869
908
|
theme: string;
|
|
870
909
|
gridSize: number | null;
|
|
@@ -878,6 +917,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
878
917
|
offsetTop: number;
|
|
879
918
|
offsetLeft: number;
|
|
880
919
|
isLibraryOpen: boolean;
|
|
920
|
+
isLibraryMenuDocked: boolean;
|
|
881
921
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
882
922
|
collaborators: Map<string, import("../../src/types").Collaborator>;
|
|
883
923
|
showStats: boolean;
|
|
@@ -889,7 +929,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
889
929
|
shown: true;
|
|
890
930
|
data: import("../charts").Spreadsheet;
|
|
891
931
|
};
|
|
892
|
-
|
|
932
|
+
pendingImageElementId: string | null;
|
|
893
933
|
showHyperlinkPopup: false | "info" | "editor";
|
|
894
934
|
linkOpacity: number;
|
|
895
935
|
trayModeEnabled: boolean;
|
|
@@ -975,7 +1015,11 @@ export declare const actionChangeFontFamily: {
|
|
|
975
1015
|
};
|
|
976
1016
|
shouldCacheIgnoreZoom: boolean;
|
|
977
1017
|
showHelpDialog: boolean;
|
|
978
|
-
|
|
1018
|
+
toast: {
|
|
1019
|
+
message: string;
|
|
1020
|
+
closable?: boolean | undefined;
|
|
1021
|
+
duration?: number | undefined;
|
|
1022
|
+
} | null;
|
|
979
1023
|
zenModeEnabled: boolean;
|
|
980
1024
|
theme: string;
|
|
981
1025
|
gridSize: number | null;
|
|
@@ -989,6 +1033,7 @@ export declare const actionChangeFontFamily: {
|
|
|
989
1033
|
offsetTop: number;
|
|
990
1034
|
offsetLeft: number;
|
|
991
1035
|
isLibraryOpen: boolean;
|
|
1036
|
+
isLibraryMenuDocked: boolean;
|
|
992
1037
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
993
1038
|
collaborators: Map<string, import("../../src/types").Collaborator>;
|
|
994
1039
|
showStats: boolean;
|
|
@@ -1000,7 +1045,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1000
1045
|
shown: true;
|
|
1001
1046
|
data: import("../charts").Spreadsheet;
|
|
1002
1047
|
};
|
|
1003
|
-
|
|
1048
|
+
pendingImageElementId: string | null;
|
|
1004
1049
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1005
1050
|
linkOpacity: number;
|
|
1006
1051
|
trayModeEnabled: boolean;
|
|
@@ -1012,7 +1057,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1012
1057
|
};
|
|
1013
1058
|
commitToHistory: true;
|
|
1014
1059
|
};
|
|
1015
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
1060
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1016
1061
|
} & {
|
|
1017
1062
|
keyTest?: undefined;
|
|
1018
1063
|
};
|
|
@@ -1086,7 +1131,11 @@ export declare const actionChangeTextAlign: {
|
|
|
1086
1131
|
};
|
|
1087
1132
|
shouldCacheIgnoreZoom: boolean;
|
|
1088
1133
|
showHelpDialog: boolean;
|
|
1089
|
-
|
|
1134
|
+
toast: {
|
|
1135
|
+
message: string;
|
|
1136
|
+
closable?: boolean | undefined;
|
|
1137
|
+
duration?: number | undefined;
|
|
1138
|
+
} | null;
|
|
1090
1139
|
zenModeEnabled: boolean;
|
|
1091
1140
|
theme: string;
|
|
1092
1141
|
gridSize: number | null;
|
|
@@ -1100,6 +1149,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1100
1149
|
offsetTop: number;
|
|
1101
1150
|
offsetLeft: number;
|
|
1102
1151
|
isLibraryOpen: boolean;
|
|
1152
|
+
isLibraryMenuDocked: boolean;
|
|
1103
1153
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1104
1154
|
collaborators: Map<string, import("../../src/types").Collaborator>;
|
|
1105
1155
|
showStats: boolean;
|
|
@@ -1111,7 +1161,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1111
1161
|
shown: true;
|
|
1112
1162
|
data: import("../charts").Spreadsheet;
|
|
1113
1163
|
};
|
|
1114
|
-
|
|
1164
|
+
pendingImageElementId: string | null;
|
|
1115
1165
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1116
1166
|
linkOpacity: number;
|
|
1117
1167
|
trayModeEnabled: boolean;
|
|
@@ -1123,7 +1173,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1123
1173
|
};
|
|
1124
1174
|
commitToHistory: true;
|
|
1125
1175
|
};
|
|
1126
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
1176
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1127
1177
|
} & {
|
|
1128
1178
|
keyTest?: undefined;
|
|
1129
1179
|
};
|
|
@@ -1199,7 +1249,11 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1199
1249
|
};
|
|
1200
1250
|
shouldCacheIgnoreZoom: boolean;
|
|
1201
1251
|
showHelpDialog: boolean;
|
|
1202
|
-
|
|
1252
|
+
toast: {
|
|
1253
|
+
message: string;
|
|
1254
|
+
closable?: boolean | undefined;
|
|
1255
|
+
duration?: number | undefined;
|
|
1256
|
+
} | null;
|
|
1203
1257
|
zenModeEnabled: boolean;
|
|
1204
1258
|
theme: string;
|
|
1205
1259
|
gridSize: number | null;
|
|
@@ -1213,6 +1267,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1213
1267
|
offsetTop: number;
|
|
1214
1268
|
offsetLeft: number;
|
|
1215
1269
|
isLibraryOpen: boolean;
|
|
1270
|
+
isLibraryMenuDocked: boolean;
|
|
1216
1271
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1217
1272
|
collaborators: Map<string, import("../../src/types").Collaborator>;
|
|
1218
1273
|
showStats: boolean;
|
|
@@ -1224,7 +1279,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1224
1279
|
shown: true;
|
|
1225
1280
|
data: import("../charts").Spreadsheet;
|
|
1226
1281
|
};
|
|
1227
|
-
|
|
1282
|
+
pendingImageElementId: string | null;
|
|
1228
1283
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1229
1284
|
linkOpacity: number;
|
|
1230
1285
|
trayModeEnabled: boolean;
|
|
@@ -1236,7 +1291,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1236
1291
|
};
|
|
1237
1292
|
commitToHistory: true;
|
|
1238
1293
|
};
|
|
1239
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
1294
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1240
1295
|
} & {
|
|
1241
1296
|
keyTest?: undefined;
|
|
1242
1297
|
};
|
|
@@ -1310,7 +1365,11 @@ export declare const actionChangeSharpness: {
|
|
|
1310
1365
|
};
|
|
1311
1366
|
shouldCacheIgnoreZoom: boolean;
|
|
1312
1367
|
showHelpDialog: boolean;
|
|
1313
|
-
|
|
1368
|
+
toast: {
|
|
1369
|
+
message: string;
|
|
1370
|
+
closable?: boolean | undefined;
|
|
1371
|
+
duration?: number | undefined;
|
|
1372
|
+
} | null;
|
|
1314
1373
|
zenModeEnabled: boolean;
|
|
1315
1374
|
theme: string;
|
|
1316
1375
|
gridSize: number | null;
|
|
@@ -1324,6 +1383,7 @@ export declare const actionChangeSharpness: {
|
|
|
1324
1383
|
offsetTop: number;
|
|
1325
1384
|
offsetLeft: number;
|
|
1326
1385
|
isLibraryOpen: boolean;
|
|
1386
|
+
isLibraryMenuDocked: boolean;
|
|
1327
1387
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1328
1388
|
collaborators: Map<string, import("../../src/types").Collaborator>;
|
|
1329
1389
|
showStats: boolean;
|
|
@@ -1335,7 +1395,7 @@ export declare const actionChangeSharpness: {
|
|
|
1335
1395
|
shown: true;
|
|
1336
1396
|
data: import("../charts").Spreadsheet;
|
|
1337
1397
|
};
|
|
1338
|
-
|
|
1398
|
+
pendingImageElementId: string | null;
|
|
1339
1399
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1340
1400
|
linkOpacity: number;
|
|
1341
1401
|
trayModeEnabled: boolean;
|
|
@@ -1347,7 +1407,7 @@ export declare const actionChangeSharpness: {
|
|
|
1347
1407
|
};
|
|
1348
1408
|
commitToHistory: true;
|
|
1349
1409
|
};
|
|
1350
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
1410
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1351
1411
|
} & {
|
|
1352
1412
|
keyTest?: undefined;
|
|
1353
1413
|
};
|
|
@@ -1424,7 +1484,11 @@ export declare const actionChangeArrowhead: {
|
|
|
1424
1484
|
};
|
|
1425
1485
|
shouldCacheIgnoreZoom: boolean;
|
|
1426
1486
|
showHelpDialog: boolean;
|
|
1427
|
-
|
|
1487
|
+
toast: {
|
|
1488
|
+
message: string;
|
|
1489
|
+
closable?: boolean | undefined;
|
|
1490
|
+
duration?: number | undefined;
|
|
1491
|
+
} | null;
|
|
1428
1492
|
zenModeEnabled: boolean;
|
|
1429
1493
|
theme: string;
|
|
1430
1494
|
gridSize: number | null;
|
|
@@ -1438,6 +1502,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1438
1502
|
offsetTop: number;
|
|
1439
1503
|
offsetLeft: number;
|
|
1440
1504
|
isLibraryOpen: boolean;
|
|
1505
|
+
isLibraryMenuDocked: boolean;
|
|
1441
1506
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1442
1507
|
collaborators: Map<string, import("../../src/types").Collaborator>;
|
|
1443
1508
|
showStats: boolean;
|
|
@@ -1449,7 +1514,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1449
1514
|
shown: true;
|
|
1450
1515
|
data: import("../charts").Spreadsheet;
|
|
1451
1516
|
};
|
|
1452
|
-
|
|
1517
|
+
pendingImageElementId: string | null;
|
|
1453
1518
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1454
1519
|
linkOpacity: number;
|
|
1455
1520
|
trayModeEnabled: boolean;
|
|
@@ -1461,7 +1526,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1461
1526
|
};
|
|
1462
1527
|
commitToHistory: true;
|
|
1463
1528
|
};
|
|
1464
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
1529
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1465
1530
|
} & {
|
|
1466
1531
|
keyTest?: undefined;
|
|
1467
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;
|
|
@@ -85,6 +87,7 @@ export declare const actionCopyStyles: {
|
|
|
85
87
|
offsetTop: number;
|
|
86
88
|
offsetLeft: number;
|
|
87
89
|
isLibraryOpen: boolean;
|
|
90
|
+
isLibraryMenuDocked: boolean;
|
|
88
91
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
89
92
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
90
93
|
showStats: boolean;
|
|
@@ -96,7 +99,7 @@ export declare const actionCopyStyles: {
|
|
|
96
99
|
shown: true;
|
|
97
100
|
data: import("../charts").Spreadsheet;
|
|
98
101
|
};
|
|
99
|
-
|
|
102
|
+
pendingImageElementId: string | null;
|
|
100
103
|
showHyperlinkPopup: false | "info" | "editor";
|
|
101
104
|
linkOpacity: number;
|
|
102
105
|
trayModeEnabled: boolean;
|
|
@@ -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;
|
|
@@ -86,6 +90,7 @@ export declare const actionToggleGridMode: {
|
|
|
86
90
|
offsetTop: number;
|
|
87
91
|
offsetLeft: number;
|
|
88
92
|
isLibraryOpen: boolean;
|
|
93
|
+
isLibraryMenuDocked: boolean;
|
|
89
94
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
90
95
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
91
96
|
showStats: boolean;
|
|
@@ -97,7 +102,7 @@ export declare const actionToggleGridMode: {
|
|
|
97
102
|
shown: true;
|
|
98
103
|
data: import("../charts").Spreadsheet;
|
|
99
104
|
};
|
|
100
|
-
|
|
105
|
+
pendingImageElementId: string | null;
|
|
101
106
|
showHyperlinkPopup: false | "info" | "editor";
|
|
102
107
|
linkOpacity: number;
|
|
103
108
|
trayModeEnabled: 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;
|
|
@@ -85,6 +89,7 @@ export declare const actionToggleStats: {
|
|
|
85
89
|
offsetTop: number;
|
|
86
90
|
offsetLeft: number;
|
|
87
91
|
isLibraryOpen: boolean;
|
|
92
|
+
isLibraryMenuDocked: boolean;
|
|
88
93
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
89
94
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
90
95
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -95,7 +100,7 @@ export declare const actionToggleStats: {
|
|
|
95
100
|
shown: true;
|
|
96
101
|
data: import("../charts").Spreadsheet;
|
|
97
102
|
};
|
|
98
|
-
|
|
103
|
+
pendingImageElementId: string | null;
|
|
99
104
|
showHyperlinkPopup: false | "info" | "editor";
|
|
100
105
|
linkOpacity: number;
|
|
101
106
|
trayModeEnabled: boolean;
|
|
@@ -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;
|
|
@@ -85,6 +89,7 @@ export declare const actionToggleViewMode: {
|
|
|
85
89
|
offsetTop: number;
|
|
86
90
|
offsetLeft: number;
|
|
87
91
|
isLibraryOpen: boolean;
|
|
92
|
+
isLibraryMenuDocked: boolean;
|
|
88
93
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
89
94
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
90
95
|
showStats: boolean;
|
|
@@ -96,7 +101,7 @@ export declare const actionToggleViewMode: {
|
|
|
96
101
|
shown: true;
|
|
97
102
|
data: import("../charts").Spreadsheet;
|
|
98
103
|
};
|
|
99
|
-
|
|
104
|
+
pendingImageElementId: string | null;
|
|
100
105
|
showHyperlinkPopup: false | "info" | "editor";
|
|
101
106
|
linkOpacity: number;
|
|
102
107
|
trayModeEnabled: boolean;
|
|
@@ -72,7 +72,11 @@ export declare const actionToggleZenMode: {
|
|
|
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
|
theme: string;
|
|
77
81
|
gridSize: number | null;
|
|
78
82
|
viewModeEnabled: boolean;
|
|
@@ -85,6 +89,7 @@ export declare const actionToggleZenMode: {
|
|
|
85
89
|
offsetTop: number;
|
|
86
90
|
offsetLeft: number;
|
|
87
91
|
isLibraryOpen: boolean;
|
|
92
|
+
isLibraryMenuDocked: boolean;
|
|
88
93
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
89
94
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
90
95
|
showStats: boolean;
|
|
@@ -96,7 +101,7 @@ export declare const actionToggleZenMode: {
|
|
|
96
101
|
shown: true;
|
|
97
102
|
data: import("../charts").Spreadsheet;
|
|
98
103
|
};
|
|
99
|
-
|
|
104
|
+
pendingImageElementId: string | null;
|
|
100
105
|
showHyperlinkPopup: false | "info" | "editor";
|
|
101
106
|
linkOpacity: number;
|
|
102
107
|
trayModeEnabled: boolean;
|