@excalidraw/excalidraw 0.12.0-76cf560 → 0.12.0-78e254f
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 +2 -0
- package/README.md +56 -12
- package/dist/excalidraw.development.js +87 -43
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +6 -6
- package/types/actions/actionBoundText.d.ts +2 -2
- package/types/actions/actionCanvas.d.ts +16 -16
- package/types/actions/actionClipboard.d.ts +10 -10
- package/types/actions/actionDeleteSelected.d.ts +6 -6
- package/types/actions/actionExport.d.ts +18 -18
- package/types/actions/actionFinalize.d.ts +4 -4
- package/types/actions/actionLinearEditor.d.ts +2 -2
- package/types/actions/actionMenu.d.ts +6 -6
- package/types/actions/actionProperties.d.ts +26 -26
- package/types/actions/actionStyles.d.ts +2 -2
- package/types/actions/actionToggleGridMode.d.ts +2 -2
- package/types/actions/actionToggleLock.d.ts +2 -2
- package/types/actions/actionToggleStats.d.ts +2 -2
- package/types/actions/actionToggleViewMode.d.ts +2 -2
- package/types/actions/actionToggleZenMode.d.ts +2 -2
- package/types/appState.d.ts +2 -2
- package/types/components/App.d.ts +6 -1
- package/types/components/HintViewer.d.ts +3 -2
- package/types/components/LayerUI.d.ts +2 -1
- package/types/components/LibraryMenu.d.ts +14 -5
- package/types/components/LibraryMenuHeaderContent.d.ts +12 -0
- package/types/components/LibraryMenuItems.d.ts +2 -14
- package/types/components/LibraryUnit.d.ts +2 -3
- package/types/components/MobileMenu.d.ts +4 -3
- package/types/components/Sidebar/Sidebar.d.ts +73 -0
- package/types/components/Sidebar/SidebarHeader.d.ts +20 -0
- package/types/components/Sidebar/common.d.ts +15 -0
- package/types/components/hoc/withUpstreamOverride.d.ts +10 -0
- package/types/constants.d.ts +7 -1
- package/types/data/types.d.ts +16 -1
- package/types/element/Hyperlink.d.ts +2 -2
- package/types/element/image.d.ts +1 -1
- package/types/element/linearElementEditor.d.ts +3 -3
- package/types/keys.d.ts +3 -3
- package/types/packages/excalidraw/example/App.d.ts +2 -1
- package/types/packages/excalidraw/example/sidebar/{Sidebar.d.ts → ExampleSidebar.d.ts} +1 -1
- package/types/packages/excalidraw/index.d.ts +1 -0
- package/types/types.d.ts +8 -2
- package/types/components/SidebarLockButton.d.ts +0 -8
package/package.json
CHANGED
|
@@ -64,6 +64,8 @@ export declare const actionAddToLibrary: {
|
|
|
64
64
|
}>;
|
|
65
65
|
openMenu: "canvas" | "shape" | null;
|
|
66
66
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
67
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
68
|
+
isSidebarDocked: boolean;
|
|
67
69
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
68
70
|
selectedElementIds: {
|
|
69
71
|
[id: string]: boolean;
|
|
@@ -85,8 +87,6 @@ export declare const actionAddToLibrary: {
|
|
|
85
87
|
height: number;
|
|
86
88
|
offsetTop: number;
|
|
87
89
|
offsetLeft: number;
|
|
88
|
-
isLibraryOpen: boolean;
|
|
89
|
-
isLibraryMenuDocked: boolean;
|
|
90
90
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
91
91
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
92
92
|
showStats: boolean;
|
|
@@ -160,6 +160,8 @@ export declare const actionAddToLibrary: {
|
|
|
160
160
|
}>;
|
|
161
161
|
openMenu: "canvas" | "shape" | null;
|
|
162
162
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
163
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
164
|
+
isSidebarDocked: boolean;
|
|
163
165
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
164
166
|
selectedElementIds: {
|
|
165
167
|
[id: string]: boolean;
|
|
@@ -186,8 +188,6 @@ export declare const actionAddToLibrary: {
|
|
|
186
188
|
height: number;
|
|
187
189
|
offsetTop: number;
|
|
188
190
|
offsetLeft: number;
|
|
189
|
-
isLibraryOpen: boolean;
|
|
190
|
-
isLibraryMenuDocked: boolean;
|
|
191
191
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
192
192
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
193
193
|
showStats: boolean;
|
|
@@ -261,6 +261,8 @@ export declare const actionAddToLibrary: {
|
|
|
261
261
|
}>;
|
|
262
262
|
openMenu: "canvas" | "shape" | null;
|
|
263
263
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
264
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
265
|
+
isSidebarDocked: boolean;
|
|
264
266
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
265
267
|
selectedElementIds: {
|
|
266
268
|
[id: string]: boolean;
|
|
@@ -287,8 +289,6 @@ export declare const actionAddToLibrary: {
|
|
|
287
289
|
height: number;
|
|
288
290
|
offsetTop: number;
|
|
289
291
|
offsetLeft: number;
|
|
290
|
-
isLibraryOpen: boolean;
|
|
291
|
-
isLibraryMenuDocked: boolean;
|
|
292
292
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
293
293
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
294
294
|
showStats: boolean;
|
|
@@ -81,6 +81,8 @@ export declare const actionBindText: {
|
|
|
81
81
|
}>;
|
|
82
82
|
openMenu: "canvas" | "shape" | null;
|
|
83
83
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
84
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
85
|
+
isSidebarDocked: boolean;
|
|
84
86
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
85
87
|
previousSelectedElementIds: {
|
|
86
88
|
[id: string]: boolean;
|
|
@@ -104,8 +106,6 @@ export declare const actionBindText: {
|
|
|
104
106
|
height: number;
|
|
105
107
|
offsetTop: number;
|
|
106
108
|
offsetLeft: number;
|
|
107
|
-
isLibraryOpen: boolean;
|
|
108
|
-
isLibraryMenuDocked: boolean;
|
|
109
109
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
110
110
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
111
111
|
showStats: boolean;
|
|
@@ -87,6 +87,8 @@ export declare const actionClearCanvas: {
|
|
|
87
87
|
isRotating: boolean;
|
|
88
88
|
openMenu: "canvas" | "shape" | null;
|
|
89
89
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
90
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
91
|
+
isSidebarDocked: boolean;
|
|
90
92
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
91
93
|
selectedElementIds: {
|
|
92
94
|
[id: string]: boolean;
|
|
@@ -106,8 +108,6 @@ export declare const actionClearCanvas: {
|
|
|
106
108
|
[groupId: string]: boolean;
|
|
107
109
|
};
|
|
108
110
|
editingGroupId: string | null;
|
|
109
|
-
isLibraryOpen: boolean;
|
|
110
|
-
isLibraryMenuDocked: boolean;
|
|
111
111
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
112
112
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
113
113
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -183,6 +183,8 @@ export declare const actionZoomIn: {
|
|
|
183
183
|
isRotating: boolean;
|
|
184
184
|
openMenu: "canvas" | "shape" | null;
|
|
185
185
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
186
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
187
|
+
isSidebarDocked: boolean;
|
|
186
188
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
187
189
|
selectedElementIds: {
|
|
188
190
|
[id: string]: boolean;
|
|
@@ -209,8 +211,6 @@ export declare const actionZoomIn: {
|
|
|
209
211
|
height: number;
|
|
210
212
|
offsetTop: number;
|
|
211
213
|
offsetLeft: number;
|
|
212
|
-
isLibraryOpen: boolean;
|
|
213
|
-
isLibraryMenuDocked: boolean;
|
|
214
214
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
215
215
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
216
216
|
showStats: boolean;
|
|
@@ -295,6 +295,8 @@ export declare const actionZoomOut: {
|
|
|
295
295
|
isRotating: boolean;
|
|
296
296
|
openMenu: "canvas" | "shape" | null;
|
|
297
297
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
298
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
299
|
+
isSidebarDocked: boolean;
|
|
298
300
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
299
301
|
selectedElementIds: {
|
|
300
302
|
[id: string]: boolean;
|
|
@@ -321,8 +323,6 @@ export declare const actionZoomOut: {
|
|
|
321
323
|
height: number;
|
|
322
324
|
offsetTop: number;
|
|
323
325
|
offsetLeft: number;
|
|
324
|
-
isLibraryOpen: boolean;
|
|
325
|
-
isLibraryMenuDocked: boolean;
|
|
326
326
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
327
327
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
328
328
|
showStats: boolean;
|
|
@@ -407,6 +407,8 @@ export declare const actionResetZoom: {
|
|
|
407
407
|
isRotating: boolean;
|
|
408
408
|
openMenu: "canvas" | "shape" | null;
|
|
409
409
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
410
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
411
|
+
isSidebarDocked: boolean;
|
|
410
412
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
411
413
|
selectedElementIds: {
|
|
412
414
|
[id: string]: boolean;
|
|
@@ -433,8 +435,6 @@ export declare const actionResetZoom: {
|
|
|
433
435
|
height: number;
|
|
434
436
|
offsetTop: number;
|
|
435
437
|
offsetLeft: number;
|
|
436
|
-
isLibraryOpen: boolean;
|
|
437
|
-
isLibraryMenuDocked: boolean;
|
|
438
438
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
439
439
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
440
440
|
showStats: boolean;
|
|
@@ -519,6 +519,8 @@ export declare const actionZoomToSelected: {
|
|
|
519
519
|
isRotating: boolean;
|
|
520
520
|
openMenu: "canvas" | "shape" | null;
|
|
521
521
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
522
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
523
|
+
isSidebarDocked: boolean;
|
|
522
524
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
523
525
|
selectedElementIds: {
|
|
524
526
|
[id: string]: boolean;
|
|
@@ -545,8 +547,6 @@ export declare const actionZoomToSelected: {
|
|
|
545
547
|
height: number;
|
|
546
548
|
offsetTop: number;
|
|
547
549
|
offsetLeft: number;
|
|
548
|
-
isLibraryOpen: boolean;
|
|
549
|
-
isLibraryMenuDocked: boolean;
|
|
550
550
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
551
551
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
552
552
|
showStats: boolean;
|
|
@@ -630,6 +630,8 @@ export declare const actionZoomToFit: {
|
|
|
630
630
|
isRotating: boolean;
|
|
631
631
|
openMenu: "canvas" | "shape" | null;
|
|
632
632
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
633
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
634
|
+
isSidebarDocked: boolean;
|
|
633
635
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
634
636
|
selectedElementIds: {
|
|
635
637
|
[id: string]: boolean;
|
|
@@ -656,8 +658,6 @@ export declare const actionZoomToFit: {
|
|
|
656
658
|
height: number;
|
|
657
659
|
offsetTop: number;
|
|
658
660
|
offsetLeft: number;
|
|
659
|
-
isLibraryOpen: boolean;
|
|
660
|
-
isLibraryMenuDocked: boolean;
|
|
661
661
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
662
662
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
663
663
|
showStats: boolean;
|
|
@@ -742,6 +742,8 @@ export declare const actionToggleTheme: {
|
|
|
742
742
|
}>;
|
|
743
743
|
openMenu: "canvas" | "shape" | null;
|
|
744
744
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
745
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
746
|
+
isSidebarDocked: boolean;
|
|
745
747
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
746
748
|
selectedElementIds: {
|
|
747
749
|
[id: string]: boolean;
|
|
@@ -767,8 +769,6 @@ export declare const actionToggleTheme: {
|
|
|
767
769
|
height: number;
|
|
768
770
|
offsetTop: number;
|
|
769
771
|
offsetLeft: number;
|
|
770
|
-
isLibraryOpen: boolean;
|
|
771
|
-
isLibraryMenuDocked: boolean;
|
|
772
772
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
773
773
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
774
774
|
showStats: boolean;
|
|
@@ -855,6 +855,8 @@ export declare const actionErase: {
|
|
|
855
855
|
}>;
|
|
856
856
|
openMenu: "canvas" | "shape" | null;
|
|
857
857
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
858
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
859
|
+
isSidebarDocked: boolean;
|
|
858
860
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
859
861
|
previousSelectedElementIds: {
|
|
860
862
|
[id: string]: boolean;
|
|
@@ -875,8 +877,6 @@ export declare const actionErase: {
|
|
|
875
877
|
height: number;
|
|
876
878
|
offsetTop: number;
|
|
877
879
|
offsetLeft: number;
|
|
878
|
-
isLibraryOpen: boolean;
|
|
879
|
-
isLibraryMenuDocked: boolean;
|
|
880
880
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
881
881
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
882
882
|
showStats: boolean;
|
|
@@ -75,6 +75,8 @@ export declare const actionCut: {
|
|
|
75
75
|
}>;
|
|
76
76
|
openMenu: "canvas" | "shape" | null;
|
|
77
77
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
78
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
79
|
+
isSidebarDocked: boolean;
|
|
78
80
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
79
81
|
selectedElementIds: {
|
|
80
82
|
[id: string]: boolean;
|
|
@@ -101,8 +103,6 @@ export declare const actionCut: {
|
|
|
101
103
|
height: number;
|
|
102
104
|
offsetTop: number;
|
|
103
105
|
offsetLeft: number;
|
|
104
|
-
isLibraryOpen: boolean;
|
|
105
|
-
isLibraryMenuDocked: boolean;
|
|
106
106
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
107
107
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
108
108
|
showStats: boolean;
|
|
@@ -196,6 +196,8 @@ export declare const actionCut: {
|
|
|
196
196
|
}>;
|
|
197
197
|
openMenu: "canvas" | "shape" | null;
|
|
198
198
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
199
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
200
|
+
isSidebarDocked: boolean;
|
|
199
201
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
200
202
|
selectedElementIds: {
|
|
201
203
|
[id: string]: boolean;
|
|
@@ -222,8 +224,6 @@ export declare const actionCut: {
|
|
|
222
224
|
height: number;
|
|
223
225
|
offsetTop: number;
|
|
224
226
|
offsetLeft: number;
|
|
225
|
-
isLibraryOpen: boolean;
|
|
226
|
-
isLibraryMenuDocked: boolean;
|
|
227
227
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
228
228
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
229
229
|
showStats: boolean;
|
|
@@ -299,6 +299,8 @@ export declare const actionCut: {
|
|
|
299
299
|
}>;
|
|
300
300
|
openMenu: "canvas" | "shape" | null;
|
|
301
301
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
302
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
303
|
+
isSidebarDocked: boolean;
|
|
302
304
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
303
305
|
previousSelectedElementIds: {
|
|
304
306
|
[id: string]: boolean;
|
|
@@ -322,8 +324,6 @@ export declare const actionCut: {
|
|
|
322
324
|
height: number;
|
|
323
325
|
offsetTop: number;
|
|
324
326
|
offsetLeft: number;
|
|
325
|
-
isLibraryOpen: boolean;
|
|
326
|
-
isLibraryMenuDocked: boolean;
|
|
327
327
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
328
328
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
329
329
|
showStats: boolean;
|
|
@@ -411,6 +411,8 @@ export declare const actionCopyAsSvg: {
|
|
|
411
411
|
}>;
|
|
412
412
|
openMenu: "canvas" | "shape" | null;
|
|
413
413
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
414
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
415
|
+
isSidebarDocked: boolean;
|
|
414
416
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
415
417
|
selectedElementIds: {
|
|
416
418
|
[id: string]: boolean;
|
|
@@ -437,8 +439,6 @@ export declare const actionCopyAsSvg: {
|
|
|
437
439
|
height: number;
|
|
438
440
|
offsetTop: number;
|
|
439
441
|
offsetLeft: number;
|
|
440
|
-
isLibraryOpen: boolean;
|
|
441
|
-
isLibraryMenuDocked: boolean;
|
|
442
442
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
443
443
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
444
444
|
showStats: boolean;
|
|
@@ -525,6 +525,8 @@ export declare const actionCopyAsPng: {
|
|
|
525
525
|
}>;
|
|
526
526
|
openMenu: "canvas" | "shape" | null;
|
|
527
527
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
528
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
529
|
+
isSidebarDocked: boolean;
|
|
528
530
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
529
531
|
selectedElementIds: {
|
|
530
532
|
[id: string]: boolean;
|
|
@@ -551,8 +553,6 @@ export declare const actionCopyAsPng: {
|
|
|
551
553
|
height: number;
|
|
552
554
|
offsetTop: number;
|
|
553
555
|
offsetLeft: number;
|
|
554
|
-
isLibraryOpen: boolean;
|
|
555
|
-
isLibraryMenuDocked: boolean;
|
|
556
556
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
557
557
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
558
558
|
showStats: boolean;
|
|
@@ -66,6 +66,8 @@ export declare const actionDeleteSelected: {
|
|
|
66
66
|
}>;
|
|
67
67
|
openMenu: "canvas" | "shape" | null;
|
|
68
68
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
69
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
70
|
+
isSidebarDocked: boolean;
|
|
69
71
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
70
72
|
selectedElementIds: {
|
|
71
73
|
[id: string]: boolean;
|
|
@@ -92,8 +94,6 @@ export declare const actionDeleteSelected: {
|
|
|
92
94
|
height: number;
|
|
93
95
|
offsetTop: number;
|
|
94
96
|
offsetLeft: number;
|
|
95
|
-
isLibraryOpen: boolean;
|
|
96
|
-
isLibraryMenuDocked: boolean;
|
|
97
97
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
98
98
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
99
99
|
showStats: boolean;
|
|
@@ -187,6 +187,8 @@ export declare const actionDeleteSelected: {
|
|
|
187
187
|
}>;
|
|
188
188
|
openMenu: "canvas" | "shape" | null;
|
|
189
189
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
190
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
191
|
+
isSidebarDocked: boolean;
|
|
190
192
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
191
193
|
selectedElementIds: {
|
|
192
194
|
[id: string]: boolean;
|
|
@@ -213,8 +215,6 @@ export declare const actionDeleteSelected: {
|
|
|
213
215
|
height: number;
|
|
214
216
|
offsetTop: number;
|
|
215
217
|
offsetLeft: number;
|
|
216
|
-
isLibraryOpen: boolean;
|
|
217
|
-
isLibraryMenuDocked: boolean;
|
|
218
218
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
219
219
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
220
220
|
showStats: boolean;
|
|
@@ -290,6 +290,8 @@ export declare const actionDeleteSelected: {
|
|
|
290
290
|
}>;
|
|
291
291
|
openMenu: "canvas" | "shape" | null;
|
|
292
292
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
293
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
294
|
+
isSidebarDocked: boolean;
|
|
293
295
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
294
296
|
previousSelectedElementIds: {
|
|
295
297
|
[id: string]: boolean;
|
|
@@ -313,8 +315,6 @@ export declare const actionDeleteSelected: {
|
|
|
313
315
|
height: number;
|
|
314
316
|
offsetTop: number;
|
|
315
317
|
offsetLeft: number;
|
|
316
|
-
isLibraryOpen: boolean;
|
|
317
|
-
isLibraryMenuDocked: boolean;
|
|
318
318
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
319
319
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
320
320
|
showStats: boolean;
|
|
@@ -60,6 +60,8 @@ export declare const actionChangeProjectName: {
|
|
|
60
60
|
}>;
|
|
61
61
|
openMenu: "canvas" | "shape" | null;
|
|
62
62
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
63
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
64
|
+
isSidebarDocked: boolean;
|
|
63
65
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
64
66
|
selectedElementIds: {
|
|
65
67
|
[id: string]: boolean;
|
|
@@ -86,8 +88,6 @@ export declare const actionChangeProjectName: {
|
|
|
86
88
|
height: number;
|
|
87
89
|
offsetTop: number;
|
|
88
90
|
offsetLeft: number;
|
|
89
|
-
isLibraryOpen: boolean;
|
|
90
|
-
isLibraryMenuDocked: boolean;
|
|
91
91
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
92
92
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
93
93
|
showStats: boolean;
|
|
@@ -172,6 +172,8 @@ export declare const actionChangeExportScale: {
|
|
|
172
172
|
}>;
|
|
173
173
|
openMenu: "canvas" | "shape" | null;
|
|
174
174
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
175
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
176
|
+
isSidebarDocked: boolean;
|
|
175
177
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
176
178
|
selectedElementIds: {
|
|
177
179
|
[id: string]: boolean;
|
|
@@ -198,8 +200,6 @@ export declare const actionChangeExportScale: {
|
|
|
198
200
|
height: number;
|
|
199
201
|
offsetTop: number;
|
|
200
202
|
offsetLeft: number;
|
|
201
|
-
isLibraryOpen: boolean;
|
|
202
|
-
isLibraryMenuDocked: boolean;
|
|
203
203
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
204
204
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
205
205
|
showStats: boolean;
|
|
@@ -284,6 +284,8 @@ export declare const actionChangeExportBackground: {
|
|
|
284
284
|
}>;
|
|
285
285
|
openMenu: "canvas" | "shape" | null;
|
|
286
286
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
287
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
288
|
+
isSidebarDocked: boolean;
|
|
287
289
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
288
290
|
selectedElementIds: {
|
|
289
291
|
[id: string]: boolean;
|
|
@@ -310,8 +312,6 @@ export declare const actionChangeExportBackground: {
|
|
|
310
312
|
height: number;
|
|
311
313
|
offsetTop: number;
|
|
312
314
|
offsetLeft: number;
|
|
313
|
-
isLibraryOpen: boolean;
|
|
314
|
-
isLibraryMenuDocked: boolean;
|
|
315
315
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
316
316
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
317
317
|
showStats: boolean;
|
|
@@ -396,6 +396,8 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
396
396
|
}>;
|
|
397
397
|
openMenu: "canvas" | "shape" | null;
|
|
398
398
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
399
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
400
|
+
isSidebarDocked: boolean;
|
|
399
401
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
400
402
|
selectedElementIds: {
|
|
401
403
|
[id: string]: boolean;
|
|
@@ -422,8 +424,6 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
422
424
|
height: number;
|
|
423
425
|
offsetTop: number;
|
|
424
426
|
offsetLeft: number;
|
|
425
|
-
isLibraryOpen: boolean;
|
|
426
|
-
isLibraryMenuDocked: boolean;
|
|
427
427
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
428
428
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
429
429
|
showStats: boolean;
|
|
@@ -512,6 +512,8 @@ export declare const actionSaveToActiveFile: {
|
|
|
512
512
|
}>;
|
|
513
513
|
openMenu: "canvas" | "shape" | null;
|
|
514
514
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
515
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
516
|
+
isSidebarDocked: boolean;
|
|
515
517
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
516
518
|
selectedElementIds: {
|
|
517
519
|
[id: string]: boolean;
|
|
@@ -533,8 +535,6 @@ export declare const actionSaveToActiveFile: {
|
|
|
533
535
|
height: number;
|
|
534
536
|
offsetTop: number;
|
|
535
537
|
offsetLeft: number;
|
|
536
|
-
isLibraryOpen: boolean;
|
|
537
|
-
isLibraryMenuDocked: boolean;
|
|
538
538
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
539
539
|
showStats: boolean;
|
|
540
540
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -622,6 +622,8 @@ export declare const actionSaveFileToDisk: {
|
|
|
622
622
|
}>;
|
|
623
623
|
openMenu: "canvas" | "shape" | null;
|
|
624
624
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
625
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
626
|
+
isSidebarDocked: boolean;
|
|
625
627
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
626
628
|
selectedElementIds: {
|
|
627
629
|
[id: string]: boolean;
|
|
@@ -648,8 +650,6 @@ export declare const actionSaveFileToDisk: {
|
|
|
648
650
|
height: number;
|
|
649
651
|
offsetTop: number;
|
|
650
652
|
offsetLeft: number;
|
|
651
|
-
isLibraryOpen: boolean;
|
|
652
|
-
isLibraryMenuDocked: boolean;
|
|
653
653
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
654
654
|
showStats: boolean;
|
|
655
655
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -738,6 +738,8 @@ export declare const actionLoadScene: {
|
|
|
738
738
|
isRotating: boolean;
|
|
739
739
|
openMenu: "canvas" | "shape" | null;
|
|
740
740
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
741
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
742
|
+
isSidebarDocked: boolean;
|
|
741
743
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
742
744
|
selectedElementIds: {
|
|
743
745
|
[id: string]: boolean;
|
|
@@ -758,8 +760,6 @@ export declare const actionLoadScene: {
|
|
|
758
760
|
[groupId: string]: boolean;
|
|
759
761
|
};
|
|
760
762
|
editingGroupId: string | null;
|
|
761
|
-
isLibraryOpen: boolean;
|
|
762
|
-
isLibraryMenuDocked: boolean;
|
|
763
763
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
764
764
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
765
765
|
showStats: boolean;
|
|
@@ -835,6 +835,8 @@ export declare const actionLoadScene: {
|
|
|
835
835
|
}>;
|
|
836
836
|
openMenu: "canvas" | "shape" | null;
|
|
837
837
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
838
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
839
|
+
isSidebarDocked: boolean;
|
|
838
840
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
839
841
|
selectedElementIds: {
|
|
840
842
|
[id: string]: boolean;
|
|
@@ -861,8 +863,6 @@ export declare const actionLoadScene: {
|
|
|
861
863
|
height: number;
|
|
862
864
|
offsetTop: number;
|
|
863
865
|
offsetLeft: number;
|
|
864
|
-
isLibraryOpen: boolean;
|
|
865
|
-
isLibraryMenuDocked: boolean;
|
|
866
866
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
867
867
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
868
868
|
showStats: boolean;
|
|
@@ -949,6 +949,8 @@ export declare const actionExportWithDarkMode: {
|
|
|
949
949
|
}>;
|
|
950
950
|
openMenu: "canvas" | "shape" | null;
|
|
951
951
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
952
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
953
|
+
isSidebarDocked: boolean;
|
|
952
954
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
953
955
|
selectedElementIds: {
|
|
954
956
|
[id: string]: boolean;
|
|
@@ -975,8 +977,6 @@ export declare const actionExportWithDarkMode: {
|
|
|
975
977
|
height: number;
|
|
976
978
|
offsetTop: number;
|
|
977
979
|
offsetLeft: number;
|
|
978
|
-
isLibraryOpen: boolean;
|
|
979
|
-
isLibraryMenuDocked: boolean;
|
|
980
980
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
981
981
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
982
982
|
showStats: boolean;
|
|
@@ -62,6 +62,8 @@ export declare const actionFinalize: {
|
|
|
62
62
|
}>;
|
|
63
63
|
openMenu: "canvas" | "shape" | null;
|
|
64
64
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
65
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
66
|
+
isSidebarDocked: boolean;
|
|
65
67
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
66
68
|
selectedElementIds: {
|
|
67
69
|
[id: string]: boolean;
|
|
@@ -88,8 +90,6 @@ export declare const actionFinalize: {
|
|
|
88
90
|
height: number;
|
|
89
91
|
offsetTop: number;
|
|
90
92
|
offsetLeft: number;
|
|
91
|
-
isLibraryOpen: boolean;
|
|
92
|
-
isLibraryMenuDocked: boolean;
|
|
93
93
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
94
94
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
95
95
|
showStats: boolean;
|
|
@@ -169,6 +169,8 @@ export declare const actionFinalize: {
|
|
|
169
169
|
}>;
|
|
170
170
|
openMenu: "canvas" | "shape" | null;
|
|
171
171
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
172
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
173
|
+
isSidebarDocked: boolean;
|
|
172
174
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
173
175
|
previousSelectedElementIds: {
|
|
174
176
|
[id: string]: boolean;
|
|
@@ -192,8 +194,6 @@ export declare const actionFinalize: {
|
|
|
192
194
|
height: number;
|
|
193
195
|
offsetTop: number;
|
|
194
196
|
offsetLeft: number;
|
|
195
|
-
isLibraryOpen: boolean;
|
|
196
|
-
isLibraryMenuDocked: boolean;
|
|
197
197
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
198
198
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
199
199
|
showStats: boolean;
|
|
@@ -63,6 +63,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
63
63
|
}>;
|
|
64
64
|
openMenu: "canvas" | "shape" | null;
|
|
65
65
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
66
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
67
|
+
isSidebarDocked: boolean;
|
|
66
68
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
67
69
|
selectedElementIds: {
|
|
68
70
|
[id: string]: boolean;
|
|
@@ -89,8 +91,6 @@ export declare const actionToggleLinearEditor: {
|
|
|
89
91
|
height: number;
|
|
90
92
|
offsetTop: number;
|
|
91
93
|
offsetLeft: number;
|
|
92
|
-
isLibraryOpen: boolean;
|
|
93
|
-
isLibraryMenuDocked: boolean;
|
|
94
94
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
95
95
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
96
96
|
showStats: boolean;
|
|
@@ -61,6 +61,8 @@ export declare const actionToggleCanvasMenu: {
|
|
|
61
61
|
value: import("../types").NormalizedZoomValue;
|
|
62
62
|
}>;
|
|
63
63
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
64
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
65
|
+
isSidebarDocked: boolean;
|
|
64
66
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
65
67
|
selectedElementIds: {
|
|
66
68
|
[id: string]: boolean;
|
|
@@ -87,8 +89,6 @@ export declare const actionToggleCanvasMenu: {
|
|
|
87
89
|
height: number;
|
|
88
90
|
offsetTop: number;
|
|
89
91
|
offsetLeft: number;
|
|
90
|
-
isLibraryOpen: boolean;
|
|
91
|
-
isLibraryMenuDocked: boolean;
|
|
92
92
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
93
93
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
94
94
|
showStats: boolean;
|
|
@@ -172,6 +172,8 @@ export declare const actionToggleEditMenu: {
|
|
|
172
172
|
value: import("../types").NormalizedZoomValue;
|
|
173
173
|
}>;
|
|
174
174
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
175
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
176
|
+
isSidebarDocked: boolean;
|
|
175
177
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
176
178
|
selectedElementIds: {
|
|
177
179
|
[id: string]: boolean;
|
|
@@ -198,8 +200,6 @@ export declare const actionToggleEditMenu: {
|
|
|
198
200
|
height: number;
|
|
199
201
|
offsetTop: number;
|
|
200
202
|
offsetLeft: number;
|
|
201
|
-
isLibraryOpen: boolean;
|
|
202
|
-
isLibraryMenuDocked: boolean;
|
|
203
203
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
204
204
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
205
205
|
showStats: boolean;
|
|
@@ -298,6 +298,8 @@ export declare const actionShortcuts: {
|
|
|
298
298
|
}>;
|
|
299
299
|
openMenu: "canvas" | "shape" | null;
|
|
300
300
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
301
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
302
|
+
isSidebarDocked: boolean;
|
|
301
303
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
302
304
|
selectedElementIds: {
|
|
303
305
|
[id: string]: boolean;
|
|
@@ -323,8 +325,6 @@ export declare const actionShortcuts: {
|
|
|
323
325
|
height: number;
|
|
324
326
|
offsetTop: number;
|
|
325
327
|
offsetLeft: number;
|
|
326
|
-
isLibraryOpen: boolean;
|
|
327
|
-
isLibraryMenuDocked: boolean;
|
|
328
328
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
329
329
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
330
330
|
showStats: boolean;
|