@dwelle/excalidraw 0.4.0-d68dd48 → 0.4.0-e03b600
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 +30 -0
- package/README.md +4 -0
- package/dist/excalidraw.development.js +1314 -248
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +2 -2
- package/types/actions/actionAddToLibrary.d.ts +36 -12
- package/types/actions/actionAlign.d.ts +6 -0
- package/types/actions/actionBoundText.d.ts +24 -8
- package/types/actions/actionCanvas.d.ts +235 -41
- package/types/actions/actionClipboard.d.ts +60 -20
- package/types/actions/actionDeleteSelected.d.ts +36 -12
- package/types/actions/actionElementLock.d.ts +254 -0
- package/types/actions/actionExport.d.ts +109 -37
- package/types/actions/actionFinalize.d.ts +24 -8
- package/types/actions/actionFlip.d.ts +2 -4
- package/types/actions/actionFrame.d.ts +397 -0
- package/types/actions/actionGroup.d.ts +2 -2
- package/types/actions/actionHistory.d.ts +1 -1
- package/types/actions/actionLinearEditor.d.ts +12 -4
- package/types/actions/actionMenu.d.ts +37 -14
- package/types/actions/actionNavigate.d.ts +1 -1
- package/types/actions/actionProperties.d.ts +158 -54
- package/types/actions/actionStyles.d.ts +12 -4
- package/types/actions/actionToggleGridMode.d.ts +12 -4
- package/types/actions/actionToggleStats.d.ts +12 -4
- package/types/actions/actionToggleViewMode.d.ts +12 -4
- package/types/actions/actionToggleZenMode.d.ts +12 -4
- package/types/actions/actionZindex.d.ts +4 -4
- package/types/actions/index.d.ts +1 -1
- package/types/actions/manager.d.ts +1 -1
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +7 -7
- package/types/appState.d.ts +6 -3
- package/types/charts.d.ts +2 -2
- package/types/clients.d.ts +5 -6
- package/types/clipboard.d.ts +2 -2
- package/types/colors.d.ts +60 -5
- package/types/components/Actions.d.ts +5 -5
- package/types/components/ActiveConfirmDialog.d.ts +1 -21
- package/types/components/App.d.ts +32 -9
- package/types/components/Avatar.d.ts +1 -2
- package/types/components/Button.d.ts +3 -1
- package/types/components/ColorPicker/ColorInput.d.ts +7 -0
- package/types/components/ColorPicker/ColorPicker.d.ts +19 -0
- package/types/components/ColorPicker/CustomColorList.d.ts +8 -0
- package/types/components/ColorPicker/HotkeyLabel.d.ts +8 -0
- package/types/components/ColorPicker/Picker.d.ts +18 -0
- package/types/components/ColorPicker/PickerColorList.d.ts +10 -0
- package/types/components/ColorPicker/PickerHeading.d.ts +5 -0
- package/types/components/ColorPicker/ShadeList.d.ts +8 -0
- package/types/components/ColorPicker/TopPicks.d.ts +9 -0
- package/types/components/ColorPicker/colorPickerUtils.d.ts +21 -0
- package/types/components/ColorPicker/keyboardNavHandlers.d.ts +21 -0
- package/types/components/ContextMenu.d.ts +3 -3
- package/types/components/DefaultSidebar.d.ts +30 -0
- package/types/components/Dialog.d.ts +3 -4
- package/types/components/EyeDropper.d.ts +18 -0
- package/types/components/FilledButton.d.ts +17 -0
- package/types/components/FixedSideContainer.d.ts +1 -1
- package/types/components/HandButton.d.ts +1 -1
- package/types/components/HelpButton.d.ts +1 -1
- package/types/components/HintViewer.d.ts +2 -2
- package/types/components/HomeButton.d.ts +1 -1
- package/types/components/ImageExportDialog.d.ts +8 -13
- package/types/components/Island.d.ts +1 -1
- package/types/components/JSONExportDialog.d.ts +4 -4
- package/types/components/LayerUI.d.ts +4 -10
- package/types/components/LibraryMenu.d.ts +13 -14
- package/types/components/LibraryMenuBrowseButton.d.ts +2 -2
- package/types/components/LibraryMenuControlButtons.d.ts +9 -0
- package/types/components/LibraryMenuHeaderContent.d.ts +11 -28
- package/types/components/LibraryMenuItems.d.ts +6 -7
- package/types/components/LibraryMenuSection.d.ts +22 -0
- package/types/components/LibraryUnit.d.ts +7 -3
- package/types/components/LockButton.d.ts +1 -1
- package/types/components/MobileMenu.d.ts +4 -4
- package/types/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -0
- package/types/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -0
- package/types/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -0
- package/types/components/PasteChartDialog.d.ts +4 -5
- package/types/components/PenModeButton.d.ts +1 -1
- package/types/components/Popover.d.ts +1 -1
- package/types/components/ProjectName.d.ts +2 -1
- package/types/components/PublishLibrary.d.ts +2 -2
- package/types/components/RadioGroup.d.ts +12 -0
- package/types/components/Sidebar/Sidebar.d.ts +66 -63
- package/types/components/Sidebar/SidebarHeader.d.ts +6 -19
- package/types/components/Sidebar/SidebarTab.d.ts +9 -0
- package/types/components/Sidebar/SidebarTabTrigger.d.ts +10 -0
- package/types/components/Sidebar/SidebarTabTriggers.d.ts +7 -0
- package/types/components/Sidebar/SidebarTabs.d.ts +7 -0
- package/types/components/Sidebar/SidebarTrigger.d.ts +6 -0
- package/types/components/Sidebar/common.d.ts +24 -7
- package/types/components/Spinner.d.ts +2 -1
- package/types/components/Stack.d.ts +4 -3
- package/types/components/Stats.d.ts +3 -3
- package/types/components/Switch.d.ts +9 -0
- package/types/components/ToolButton.d.ts +5 -4
- package/types/components/Tooltip.d.ts +1 -1
- package/types/components/Trans.d.ts +8 -0
- package/types/components/dropdownMenu/DropdownMenu.d.ts +3 -2
- package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +4 -2
- package/types/components/footer/Footer.d.ts +2 -2
- package/types/components/icons.d.ts +11 -1
- package/types/components/main-menu/MainMenu.d.ts +3 -2
- package/types/constants.d.ts +42 -6
- package/types/context/tunnels.d.ts +19 -0
- package/types/context/ui-appState.d.ts +4 -0
- package/types/data/blob.d.ts +2 -2
- package/types/data/encode.d.ts +1 -1
- package/types/data/filesystem.d.ts +2 -1
- package/types/data/library.d.ts +3 -45
- package/types/data/restore.d.ts +2 -2
- package/types/data/types.d.ts +3 -5
- package/types/element/Hyperlink.d.ts +14 -6
- package/types/element/binding.d.ts +3 -3
- package/types/element/bounds.d.ts +31 -6
- package/types/element/collision.d.ts +7 -7
- package/types/element/dragElements.d.ts +2 -1
- package/types/element/image.d.ts +11 -1
- package/types/element/index.d.ts +3 -2
- package/types/element/linearElementEditor.d.ts +13 -5
- package/types/element/mutateElement.d.ts +1 -1
- package/types/element/newElement.d.ts +10 -3
- package/types/element/resizeElements.d.ts +1 -0
- package/types/element/showSelectedShapeActions.d.ts +2 -2
- package/types/element/textElement.d.ts +3 -2
- package/types/element/transformHandles.d.ts +12 -5
- package/types/element/typeChecks.d.ts +2 -1
- package/types/element/types.d.ts +40 -35
- package/types/emitter.d.ts +1 -1
- package/types/errors.d.ts +1 -1
- package/types/frame.d.ts +40 -0
- package/types/ga.d.ts +5 -5
- package/types/groups.d.ts +4 -0
- package/types/hooks/useCreatePortalContainer.d.ts +4 -0
- package/types/hooks/useLibraryItemSvg.d.ts +11 -0
- package/types/hooks/useOutsideClick.d.ts +19 -1
- package/types/hooks/useScrollPosition.d.ts +2 -0
- package/types/hooks/useTransition.d.ts +2 -0
- package/types/i18n.d.ts +2 -2
- package/types/jotai.d.ts +16 -104
- package/types/keys.d.ts +2 -1
- package/types/math.d.ts +1 -0
- package/types/packages/excalidraw/example/initialData.d.ts +6 -0
- package/types/packages/excalidraw/index.d.ts +2 -1
- package/types/packages/utils.d.ts +2 -2
- package/types/renderer/renderElement.d.ts +4 -3
- package/types/renderer/renderScene.d.ts +12 -3
- package/types/renderer/roundRect.d.ts +1 -1
- package/types/scene/Scene.d.ts +12 -5
- package/types/scene/export.d.ts +3 -2
- package/types/scene/selection.d.ts +15 -5
- package/types/scene/types.d.ts +4 -4
- package/types/types.d.ts +91 -52
- package/types/utility-types.d.ts +13 -13
- package/types/utils.d.ts +20 -25
- package/types/zindex.d.ts +4 -4
- package/types/actions/actionToggleLock.d.ts +0 -119
- package/types/components/ColorPicker.d.ts +0 -14
- package/types/components/LibraryButton.d.ts +0 -8
- package/types/components/context/tunnels.d.ts +0 -16
- package/types/components/hoc/withUpstreamOverride.d.ts +0 -10
|
@@ -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("./types").PanelComponentProps) => JSX.Element;
|
|
8
|
+
PanelComponent: ({ elements, appState, updateData, appProps }: 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("./types").PanelComponentProps) => JSX.Element;
|
|
16
|
+
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
17
17
|
} & {
|
|
18
18
|
keyTest?: undefined;
|
|
19
19
|
};
|
|
@@ -39,13 +39,17 @@ export declare const actionChangeFillStyle: {
|
|
|
39
39
|
isBindingEnabled: boolean;
|
|
40
40
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
41
41
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
42
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
43
|
+
shouldRenderFrames: boolean;
|
|
44
|
+
editingFrame: string | null;
|
|
45
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
42
46
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
43
47
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
44
48
|
activeTool: {
|
|
45
49
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
46
50
|
locked: boolean;
|
|
47
51
|
} & ({
|
|
48
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
52
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
49
53
|
customType: null;
|
|
50
54
|
} | {
|
|
51
55
|
type: "custom";
|
|
@@ -81,10 +85,13 @@ export declare const actionChangeFillStyle: {
|
|
|
81
85
|
value: import("../../src/types").NormalizedZoomValue;
|
|
82
86
|
}>;
|
|
83
87
|
openMenu: "canvas" | "shape" | null;
|
|
84
|
-
openPopup: "
|
|
85
|
-
openSidebar:
|
|
88
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
89
|
+
openSidebar: {
|
|
90
|
+
name: string;
|
|
91
|
+
tab?: string | undefined;
|
|
92
|
+
} | null;
|
|
86
93
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
87
|
-
|
|
94
|
+
defaultSidebarDockedPreference: boolean;
|
|
88
95
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
89
96
|
selectedElementIds: {
|
|
90
97
|
[id: string]: boolean;
|
|
@@ -92,6 +99,7 @@ export declare const actionChangeFillStyle: {
|
|
|
92
99
|
previousSelectedElementIds: {
|
|
93
100
|
[id: string]: boolean;
|
|
94
101
|
};
|
|
102
|
+
selectedElementsAreBeingDragged: boolean;
|
|
95
103
|
shouldCacheIgnoreZoom: boolean;
|
|
96
104
|
toast: {
|
|
97
105
|
message: string;
|
|
@@ -153,13 +161,17 @@ export declare const actionChangeStrokeWidth: {
|
|
|
153
161
|
isBindingEnabled: boolean;
|
|
154
162
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
155
163
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
164
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
165
|
+
shouldRenderFrames: boolean;
|
|
166
|
+
editingFrame: string | null;
|
|
167
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
156
168
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
157
169
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
158
170
|
activeTool: {
|
|
159
171
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
160
172
|
locked: boolean;
|
|
161
173
|
} & ({
|
|
162
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
174
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
163
175
|
customType: null;
|
|
164
176
|
} | {
|
|
165
177
|
type: "custom";
|
|
@@ -195,10 +207,13 @@ export declare const actionChangeStrokeWidth: {
|
|
|
195
207
|
value: import("../../src/types").NormalizedZoomValue;
|
|
196
208
|
}>;
|
|
197
209
|
openMenu: "canvas" | "shape" | null;
|
|
198
|
-
openPopup: "
|
|
199
|
-
openSidebar:
|
|
210
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
211
|
+
openSidebar: {
|
|
212
|
+
name: string;
|
|
213
|
+
tab?: string | undefined;
|
|
214
|
+
} | null;
|
|
200
215
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
201
|
-
|
|
216
|
+
defaultSidebarDockedPreference: boolean;
|
|
202
217
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
203
218
|
selectedElementIds: {
|
|
204
219
|
[id: string]: boolean;
|
|
@@ -206,6 +221,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
206
221
|
previousSelectedElementIds: {
|
|
207
222
|
[id: string]: boolean;
|
|
208
223
|
};
|
|
224
|
+
selectedElementsAreBeingDragged: boolean;
|
|
209
225
|
shouldCacheIgnoreZoom: boolean;
|
|
210
226
|
toast: {
|
|
211
227
|
message: string;
|
|
@@ -267,13 +283,17 @@ export declare const actionChangeSloppiness: {
|
|
|
267
283
|
isBindingEnabled: boolean;
|
|
268
284
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
269
285
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
286
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
287
|
+
shouldRenderFrames: boolean;
|
|
288
|
+
editingFrame: string | null;
|
|
289
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
270
290
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
271
291
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
272
292
|
activeTool: {
|
|
273
293
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
274
294
|
locked: boolean;
|
|
275
295
|
} & ({
|
|
276
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
296
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
277
297
|
customType: null;
|
|
278
298
|
} | {
|
|
279
299
|
type: "custom";
|
|
@@ -309,10 +329,13 @@ export declare const actionChangeSloppiness: {
|
|
|
309
329
|
value: import("../../src/types").NormalizedZoomValue;
|
|
310
330
|
}>;
|
|
311
331
|
openMenu: "canvas" | "shape" | null;
|
|
312
|
-
openPopup: "
|
|
313
|
-
openSidebar:
|
|
332
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
333
|
+
openSidebar: {
|
|
334
|
+
name: string;
|
|
335
|
+
tab?: string | undefined;
|
|
336
|
+
} | null;
|
|
314
337
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
315
|
-
|
|
338
|
+
defaultSidebarDockedPreference: boolean;
|
|
316
339
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
317
340
|
selectedElementIds: {
|
|
318
341
|
[id: string]: boolean;
|
|
@@ -320,6 +343,7 @@ export declare const actionChangeSloppiness: {
|
|
|
320
343
|
previousSelectedElementIds: {
|
|
321
344
|
[id: string]: boolean;
|
|
322
345
|
};
|
|
346
|
+
selectedElementsAreBeingDragged: boolean;
|
|
323
347
|
shouldCacheIgnoreZoom: boolean;
|
|
324
348
|
toast: {
|
|
325
349
|
message: string;
|
|
@@ -381,13 +405,17 @@ export declare const actionChangeStrokeStyle: {
|
|
|
381
405
|
isBindingEnabled: boolean;
|
|
382
406
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
383
407
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
408
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
409
|
+
shouldRenderFrames: boolean;
|
|
410
|
+
editingFrame: string | null;
|
|
411
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
384
412
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
385
413
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
386
414
|
activeTool: {
|
|
387
415
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
388
416
|
locked: boolean;
|
|
389
417
|
} & ({
|
|
390
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
418
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
391
419
|
customType: null;
|
|
392
420
|
} | {
|
|
393
421
|
type: "custom";
|
|
@@ -423,10 +451,13 @@ export declare const actionChangeStrokeStyle: {
|
|
|
423
451
|
value: import("../../src/types").NormalizedZoomValue;
|
|
424
452
|
}>;
|
|
425
453
|
openMenu: "canvas" | "shape" | null;
|
|
426
|
-
openPopup: "
|
|
427
|
-
openSidebar:
|
|
454
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
455
|
+
openSidebar: {
|
|
456
|
+
name: string;
|
|
457
|
+
tab?: string | undefined;
|
|
458
|
+
} | null;
|
|
428
459
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
429
|
-
|
|
460
|
+
defaultSidebarDockedPreference: boolean;
|
|
430
461
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
431
462
|
selectedElementIds: {
|
|
432
463
|
[id: string]: boolean;
|
|
@@ -434,6 +465,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
434
465
|
previousSelectedElementIds: {
|
|
435
466
|
[id: string]: boolean;
|
|
436
467
|
};
|
|
468
|
+
selectedElementsAreBeingDragged: boolean;
|
|
437
469
|
shouldCacheIgnoreZoom: boolean;
|
|
438
470
|
toast: {
|
|
439
471
|
message: string;
|
|
@@ -495,13 +527,17 @@ export declare const actionChangeOpacity: {
|
|
|
495
527
|
isBindingEnabled: boolean;
|
|
496
528
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
497
529
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
530
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
531
|
+
shouldRenderFrames: boolean;
|
|
532
|
+
editingFrame: string | null;
|
|
533
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
498
534
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
499
535
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
500
536
|
activeTool: {
|
|
501
537
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
502
538
|
locked: boolean;
|
|
503
539
|
} & ({
|
|
504
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
540
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
505
541
|
customType: null;
|
|
506
542
|
} | {
|
|
507
543
|
type: "custom";
|
|
@@ -537,10 +573,13 @@ export declare const actionChangeOpacity: {
|
|
|
537
573
|
value: import("../../src/types").NormalizedZoomValue;
|
|
538
574
|
}>;
|
|
539
575
|
openMenu: "canvas" | "shape" | null;
|
|
540
|
-
openPopup: "
|
|
541
|
-
openSidebar:
|
|
576
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
577
|
+
openSidebar: {
|
|
578
|
+
name: string;
|
|
579
|
+
tab?: string | undefined;
|
|
580
|
+
} | null;
|
|
542
581
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
543
|
-
|
|
582
|
+
defaultSidebarDockedPreference: boolean;
|
|
544
583
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
545
584
|
selectedElementIds: {
|
|
546
585
|
[id: string]: boolean;
|
|
@@ -548,6 +587,7 @@ export declare const actionChangeOpacity: {
|
|
|
548
587
|
previousSelectedElementIds: {
|
|
549
588
|
[id: string]: boolean;
|
|
550
589
|
};
|
|
590
|
+
selectedElementsAreBeingDragged: boolean;
|
|
551
591
|
shouldCacheIgnoreZoom: boolean;
|
|
552
592
|
toast: {
|
|
553
593
|
message: string;
|
|
@@ -609,13 +649,17 @@ export declare const actionChangeFontSize: {
|
|
|
609
649
|
isBindingEnabled: boolean;
|
|
610
650
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
611
651
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
652
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
653
|
+
shouldRenderFrames: boolean;
|
|
654
|
+
editingFrame: string | null;
|
|
655
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
612
656
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
613
657
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
614
658
|
activeTool: {
|
|
615
659
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
616
660
|
locked: boolean;
|
|
617
661
|
} & ({
|
|
618
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
662
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
619
663
|
customType: null;
|
|
620
664
|
} | {
|
|
621
665
|
type: "custom";
|
|
@@ -651,10 +695,13 @@ export declare const actionChangeFontSize: {
|
|
|
651
695
|
value: import("../../src/types").NormalizedZoomValue;
|
|
652
696
|
}>;
|
|
653
697
|
openMenu: "canvas" | "shape" | null;
|
|
654
|
-
openPopup: "
|
|
655
|
-
openSidebar:
|
|
698
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
699
|
+
openSidebar: {
|
|
700
|
+
name: string;
|
|
701
|
+
tab?: string | undefined;
|
|
702
|
+
} | null;
|
|
656
703
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
657
|
-
|
|
704
|
+
defaultSidebarDockedPreference: boolean;
|
|
658
705
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
659
706
|
selectedElementIds: {
|
|
660
707
|
[id: string]: boolean;
|
|
@@ -662,6 +709,7 @@ export declare const actionChangeFontSize: {
|
|
|
662
709
|
previousSelectedElementIds: {
|
|
663
710
|
[id: string]: boolean;
|
|
664
711
|
};
|
|
712
|
+
selectedElementsAreBeingDragged: boolean;
|
|
665
713
|
shouldCacheIgnoreZoom: boolean;
|
|
666
714
|
toast: {
|
|
667
715
|
message: string;
|
|
@@ -723,13 +771,17 @@ export declare const actionDecreaseFontSize: {
|
|
|
723
771
|
isBindingEnabled: boolean;
|
|
724
772
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
725
773
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
774
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
775
|
+
shouldRenderFrames: boolean;
|
|
776
|
+
editingFrame: string | null;
|
|
777
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
726
778
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
727
779
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
728
780
|
activeTool: {
|
|
729
781
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
730
782
|
locked: boolean;
|
|
731
783
|
} & ({
|
|
732
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
784
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
733
785
|
customType: null;
|
|
734
786
|
} | {
|
|
735
787
|
type: "custom";
|
|
@@ -765,10 +817,13 @@ export declare const actionDecreaseFontSize: {
|
|
|
765
817
|
value: import("../../src/types").NormalizedZoomValue;
|
|
766
818
|
}>;
|
|
767
819
|
openMenu: "canvas" | "shape" | null;
|
|
768
|
-
openPopup: "
|
|
769
|
-
openSidebar:
|
|
820
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
821
|
+
openSidebar: {
|
|
822
|
+
name: string;
|
|
823
|
+
tab?: string | undefined;
|
|
824
|
+
} | null;
|
|
770
825
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
771
|
-
|
|
826
|
+
defaultSidebarDockedPreference: boolean;
|
|
772
827
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
773
828
|
selectedElementIds: {
|
|
774
829
|
[id: string]: boolean;
|
|
@@ -776,6 +831,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
776
831
|
previousSelectedElementIds: {
|
|
777
832
|
[id: string]: boolean;
|
|
778
833
|
};
|
|
834
|
+
selectedElementsAreBeingDragged: boolean;
|
|
779
835
|
shouldCacheIgnoreZoom: boolean;
|
|
780
836
|
toast: {
|
|
781
837
|
message: string;
|
|
@@ -837,13 +893,17 @@ export declare const actionIncreaseFontSize: {
|
|
|
837
893
|
isBindingEnabled: boolean;
|
|
838
894
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
839
895
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
896
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
897
|
+
shouldRenderFrames: boolean;
|
|
898
|
+
editingFrame: string | null;
|
|
899
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
840
900
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
841
901
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
842
902
|
activeTool: {
|
|
843
903
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
844
904
|
locked: boolean;
|
|
845
905
|
} & ({
|
|
846
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
906
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
847
907
|
customType: null;
|
|
848
908
|
} | {
|
|
849
909
|
type: "custom";
|
|
@@ -879,10 +939,13 @@ export declare const actionIncreaseFontSize: {
|
|
|
879
939
|
value: import("../../src/types").NormalizedZoomValue;
|
|
880
940
|
}>;
|
|
881
941
|
openMenu: "canvas" | "shape" | null;
|
|
882
|
-
openPopup: "
|
|
883
|
-
openSidebar:
|
|
942
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
943
|
+
openSidebar: {
|
|
944
|
+
name: string;
|
|
945
|
+
tab?: string | undefined;
|
|
946
|
+
} | null;
|
|
884
947
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
885
|
-
|
|
948
|
+
defaultSidebarDockedPreference: boolean;
|
|
886
949
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
887
950
|
selectedElementIds: {
|
|
888
951
|
[id: string]: boolean;
|
|
@@ -890,6 +953,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
890
953
|
previousSelectedElementIds: {
|
|
891
954
|
[id: string]: boolean;
|
|
892
955
|
};
|
|
956
|
+
selectedElementsAreBeingDragged: boolean;
|
|
893
957
|
shouldCacheIgnoreZoom: boolean;
|
|
894
958
|
toast: {
|
|
895
959
|
message: string;
|
|
@@ -951,13 +1015,17 @@ export declare const actionChangeFontFamily: {
|
|
|
951
1015
|
isBindingEnabled: boolean;
|
|
952
1016
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
953
1017
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1018
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
1019
|
+
shouldRenderFrames: boolean;
|
|
1020
|
+
editingFrame: string | null;
|
|
1021
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
954
1022
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
955
1023
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
956
1024
|
activeTool: {
|
|
957
1025
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
958
1026
|
locked: boolean;
|
|
959
1027
|
} & ({
|
|
960
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1028
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
961
1029
|
customType: null;
|
|
962
1030
|
} | {
|
|
963
1031
|
type: "custom";
|
|
@@ -993,10 +1061,13 @@ export declare const actionChangeFontFamily: {
|
|
|
993
1061
|
value: import("../../src/types").NormalizedZoomValue;
|
|
994
1062
|
}>;
|
|
995
1063
|
openMenu: "canvas" | "shape" | null;
|
|
996
|
-
openPopup: "
|
|
997
|
-
openSidebar:
|
|
1064
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1065
|
+
openSidebar: {
|
|
1066
|
+
name: string;
|
|
1067
|
+
tab?: string | undefined;
|
|
1068
|
+
} | null;
|
|
998
1069
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
999
|
-
|
|
1070
|
+
defaultSidebarDockedPreference: boolean;
|
|
1000
1071
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1001
1072
|
selectedElementIds: {
|
|
1002
1073
|
[id: string]: boolean;
|
|
@@ -1004,6 +1075,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1004
1075
|
previousSelectedElementIds: {
|
|
1005
1076
|
[id: string]: boolean;
|
|
1006
1077
|
};
|
|
1078
|
+
selectedElementsAreBeingDragged: boolean;
|
|
1007
1079
|
shouldCacheIgnoreZoom: boolean;
|
|
1008
1080
|
toast: {
|
|
1009
1081
|
message: string;
|
|
@@ -1065,13 +1137,17 @@ export declare const actionChangeTextAlign: {
|
|
|
1065
1137
|
isBindingEnabled: boolean;
|
|
1066
1138
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1067
1139
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1140
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
1141
|
+
shouldRenderFrames: boolean;
|
|
1142
|
+
editingFrame: string | null;
|
|
1143
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1068
1144
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1069
1145
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1070
1146
|
activeTool: {
|
|
1071
1147
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1072
1148
|
locked: boolean;
|
|
1073
1149
|
} & ({
|
|
1074
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1150
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1075
1151
|
customType: null;
|
|
1076
1152
|
} | {
|
|
1077
1153
|
type: "custom";
|
|
@@ -1107,10 +1183,13 @@ export declare const actionChangeTextAlign: {
|
|
|
1107
1183
|
value: import("../../src/types").NormalizedZoomValue;
|
|
1108
1184
|
}>;
|
|
1109
1185
|
openMenu: "canvas" | "shape" | null;
|
|
1110
|
-
openPopup: "
|
|
1111
|
-
openSidebar:
|
|
1186
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1187
|
+
openSidebar: {
|
|
1188
|
+
name: string;
|
|
1189
|
+
tab?: string | undefined;
|
|
1190
|
+
} | null;
|
|
1112
1191
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1113
|
-
|
|
1192
|
+
defaultSidebarDockedPreference: boolean;
|
|
1114
1193
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1115
1194
|
selectedElementIds: {
|
|
1116
1195
|
[id: string]: boolean;
|
|
@@ -1118,6 +1197,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1118
1197
|
previousSelectedElementIds: {
|
|
1119
1198
|
[id: string]: boolean;
|
|
1120
1199
|
};
|
|
1200
|
+
selectedElementsAreBeingDragged: boolean;
|
|
1121
1201
|
shouldCacheIgnoreZoom: boolean;
|
|
1122
1202
|
toast: {
|
|
1123
1203
|
message: string;
|
|
@@ -1180,13 +1260,17 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1180
1260
|
isBindingEnabled: boolean;
|
|
1181
1261
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1182
1262
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1263
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
1264
|
+
shouldRenderFrames: boolean;
|
|
1265
|
+
editingFrame: string | null;
|
|
1266
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1183
1267
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1184
1268
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1185
1269
|
activeTool: {
|
|
1186
1270
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1187
1271
|
locked: boolean;
|
|
1188
1272
|
} & ({
|
|
1189
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1273
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1190
1274
|
customType: null;
|
|
1191
1275
|
} | {
|
|
1192
1276
|
type: "custom";
|
|
@@ -1223,10 +1307,13 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1223
1307
|
value: import("../../src/types").NormalizedZoomValue;
|
|
1224
1308
|
}>;
|
|
1225
1309
|
openMenu: "canvas" | "shape" | null;
|
|
1226
|
-
openPopup: "
|
|
1227
|
-
openSidebar:
|
|
1310
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1311
|
+
openSidebar: {
|
|
1312
|
+
name: string;
|
|
1313
|
+
tab?: string | undefined;
|
|
1314
|
+
} | null;
|
|
1228
1315
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1229
|
-
|
|
1316
|
+
defaultSidebarDockedPreference: boolean;
|
|
1230
1317
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1231
1318
|
selectedElementIds: {
|
|
1232
1319
|
[id: string]: boolean;
|
|
@@ -1234,6 +1321,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1234
1321
|
previousSelectedElementIds: {
|
|
1235
1322
|
[id: string]: boolean;
|
|
1236
1323
|
};
|
|
1324
|
+
selectedElementsAreBeingDragged: boolean;
|
|
1237
1325
|
shouldCacheIgnoreZoom: boolean;
|
|
1238
1326
|
toast: {
|
|
1239
1327
|
message: string;
|
|
@@ -1295,13 +1383,17 @@ export declare const actionChangeRoundness: {
|
|
|
1295
1383
|
isBindingEnabled: boolean;
|
|
1296
1384
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1297
1385
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1386
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
1387
|
+
shouldRenderFrames: boolean;
|
|
1388
|
+
editingFrame: string | null;
|
|
1389
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1298
1390
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1299
1391
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1300
1392
|
activeTool: {
|
|
1301
1393
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1302
1394
|
locked: boolean;
|
|
1303
1395
|
} & ({
|
|
1304
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1396
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1305
1397
|
customType: null;
|
|
1306
1398
|
} | {
|
|
1307
1399
|
type: "custom";
|
|
@@ -1337,10 +1429,13 @@ export declare const actionChangeRoundness: {
|
|
|
1337
1429
|
value: import("../../src/types").NormalizedZoomValue;
|
|
1338
1430
|
}>;
|
|
1339
1431
|
openMenu: "canvas" | "shape" | null;
|
|
1340
|
-
openPopup: "
|
|
1341
|
-
openSidebar:
|
|
1432
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1433
|
+
openSidebar: {
|
|
1434
|
+
name: string;
|
|
1435
|
+
tab?: string | undefined;
|
|
1436
|
+
} | null;
|
|
1342
1437
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1343
|
-
|
|
1438
|
+
defaultSidebarDockedPreference: boolean;
|
|
1344
1439
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1345
1440
|
selectedElementIds: {
|
|
1346
1441
|
[id: string]: boolean;
|
|
@@ -1348,6 +1443,7 @@ export declare const actionChangeRoundness: {
|
|
|
1348
1443
|
previousSelectedElementIds: {
|
|
1349
1444
|
[id: string]: boolean;
|
|
1350
1445
|
};
|
|
1446
|
+
selectedElementsAreBeingDragged: boolean;
|
|
1351
1447
|
shouldCacheIgnoreZoom: boolean;
|
|
1352
1448
|
toast: {
|
|
1353
1449
|
message: string;
|
|
@@ -1411,13 +1507,17 @@ export declare const actionChangeArrowhead: {
|
|
|
1411
1507
|
isBindingEnabled: boolean;
|
|
1412
1508
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1413
1509
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1510
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
1511
|
+
shouldRenderFrames: boolean;
|
|
1512
|
+
editingFrame: string | null;
|
|
1513
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1414
1514
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1415
1515
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1416
1516
|
activeTool: {
|
|
1417
1517
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1418
1518
|
locked: boolean;
|
|
1419
1519
|
} & ({
|
|
1420
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1520
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1421
1521
|
customType: null;
|
|
1422
1522
|
} | {
|
|
1423
1523
|
type: "custom";
|
|
@@ -1454,10 +1554,13 @@ export declare const actionChangeArrowhead: {
|
|
|
1454
1554
|
value: import("../../src/types").NormalizedZoomValue;
|
|
1455
1555
|
}>;
|
|
1456
1556
|
openMenu: "canvas" | "shape" | null;
|
|
1457
|
-
openPopup: "
|
|
1458
|
-
openSidebar:
|
|
1557
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1558
|
+
openSidebar: {
|
|
1559
|
+
name: string;
|
|
1560
|
+
tab?: string | undefined;
|
|
1561
|
+
} | null;
|
|
1459
1562
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1460
|
-
|
|
1563
|
+
defaultSidebarDockedPreference: boolean;
|
|
1461
1564
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1462
1565
|
selectedElementIds: {
|
|
1463
1566
|
[id: string]: boolean;
|
|
@@ -1465,6 +1568,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1465
1568
|
previousSelectedElementIds: {
|
|
1466
1569
|
[id: string]: boolean;
|
|
1467
1570
|
};
|
|
1571
|
+
selectedElementsAreBeingDragged: boolean;
|
|
1468
1572
|
shouldCacheIgnoreZoom: boolean;
|
|
1469
1573
|
toast: {
|
|
1470
1574
|
message: string;
|
|
@@ -25,13 +25,17 @@ export declare const actionCopyStyles: {
|
|
|
25
25
|
isBindingEnabled: boolean;
|
|
26
26
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
27
27
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
28
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
29
|
+
shouldRenderFrames: boolean;
|
|
30
|
+
editingFrame: string | null;
|
|
31
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
28
32
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
29
33
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
30
34
|
activeTool: {
|
|
31
35
|
lastActiveTool: import("../types").LastActiveTool;
|
|
32
36
|
locked: boolean;
|
|
33
37
|
} & ({
|
|
34
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
38
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
35
39
|
customType: null;
|
|
36
40
|
} | {
|
|
37
41
|
type: "custom";
|
|
@@ -68,10 +72,13 @@ export declare const actionCopyStyles: {
|
|
|
68
72
|
value: import("../types").NormalizedZoomValue;
|
|
69
73
|
}>;
|
|
70
74
|
openMenu: "canvas" | "shape" | null;
|
|
71
|
-
openPopup: "
|
|
72
|
-
openSidebar:
|
|
75
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
76
|
+
openSidebar: {
|
|
77
|
+
name: string;
|
|
78
|
+
tab?: string | undefined;
|
|
79
|
+
} | null;
|
|
73
80
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
74
|
-
|
|
81
|
+
defaultSidebarDockedPreference: boolean;
|
|
75
82
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
76
83
|
selectedElementIds: {
|
|
77
84
|
[id: string]: boolean;
|
|
@@ -79,6 +86,7 @@ export declare const actionCopyStyles: {
|
|
|
79
86
|
previousSelectedElementIds: {
|
|
80
87
|
[id: string]: boolean;
|
|
81
88
|
};
|
|
89
|
+
selectedElementsAreBeingDragged: boolean;
|
|
82
90
|
shouldCacheIgnoreZoom: boolean;
|
|
83
91
|
zenModeEnabled: boolean;
|
|
84
92
|
theme: string;
|