@dwelle/excalidraw 0.4.0-8a7de60 → 0.4.0-92bc9f4
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 +271 -1
- package/README.md +4 -0
- package/dist/excalidraw-assets/{vendor-2002fe1b8862917b36c1.js → vendor-d415b28e9024dee4bb1b.js} +2 -2
- package/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.js → vendor-a14cd58fa2db417e42b2.js} +6 -6
- package/dist/excalidraw.development.js +2932 -1613
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +8 -3
- package/types/actions/actionAddToLibrary.d.ts +102 -52
- package/types/actions/actionAlign.d.ts +33 -28
- package/types/actions/actionBoundText.d.ts +72 -38
- package/types/actions/actionCanvas.d.ts +497 -195
- package/types/actions/actionClipboard.d.ts +170 -89
- package/types/actions/actionDeleteSelected.d.ts +98 -51
- package/types/actions/actionDistribute.d.ts +11 -12
- package/types/actions/actionDuplicateSelection.d.ts +2 -3
- package/types/actions/actionElementLock.d.ts +271 -0
- package/types/actions/actionExport.d.ts +358 -205
- package/types/actions/actionFinalize.d.ts +68 -38
- package/types/actions/actionFlip.d.ts +8 -11
- package/types/actions/actionFrame.d.ts +423 -0
- package/types/actions/actionGroup.d.ts +250 -13
- package/types/actions/actionHistory.d.ts +1 -1
- package/types/actions/actionLinearEditor.d.ts +36 -20
- package/types/actions/actionMenu.d.ts +105 -56
- package/types/actions/actionNavigate.d.ts +1 -1
- package/types/actions/actionProperties.d.ts +450 -228
- package/types/actions/actionSelectAll.d.ts +123 -4
- package/types/actions/actionStyles.d.ts +38 -22
- package/types/actions/actionToggleGridMode.d.ts +36 -20
- package/types/actions/{actionToggleLock.d.ts → actionToggleObjectsSnapMode.d.ts} +48 -30
- package/types/actions/actionToggleStats.d.ts +36 -20
- package/types/actions/actionToggleViewMode.d.ts +36 -20
- package/types/actions/actionToggleZenMode.d.ts +36 -20
- package/types/actions/actionZindex.d.ts +12 -12
- package/types/actions/index.d.ts +2 -1
- package/types/actions/manager.d.ts +1 -1
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +10 -9
- package/types/appState.d.ts +15 -17
- package/types/charts.d.ts +2 -2
- package/types/clients.d.ts +5 -6
- package/types/clipboard.d.ts +1 -0
- package/types/colors.d.ts +60 -5
- package/types/components/Actions.d.ts +7 -8
- package/types/components/ActiveConfirmDialog.d.ts +1 -21
- package/types/components/App.d.ts +76 -32
- package/types/components/Avatar.d.ts +1 -2
- package/types/components/Button.d.ts +3 -2
- package/types/components/Card.d.ts +0 -1
- package/types/components/ColorPicker/ColorInput.d.ts +9 -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 +20 -0
- package/types/components/ContextMenu.d.ts +3 -3
- package/types/components/DefaultSidebar.d.ts +29 -0
- package/types/components/Dialog.d.ts +3 -4
- package/types/components/ExcalidrawLogo.d.ts +15 -0
- package/types/components/EyeDropper.d.ts +28 -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 +4 -5
- 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 +5 -5
- package/types/components/LaserTool/LaserPathManager.d.ts +28 -0
- package/types/components/LaserTool/LaserPointerButton.d.ts +10 -0
- package/types/components/LaserTool/LaserTool.d.ts +7 -0
- package/types/components/LayerUI.d.ts +9 -11
- 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 +10 -28
- package/types/components/LibraryMenuItems.d.ts +6 -7
- package/types/components/LibraryMenuSection.d.ts +22 -0
- package/types/components/LibraryUnit.d.ts +6 -3
- package/types/components/LoadingMessage.d.ts +0 -1
- package/types/components/LockButton.d.ts +1 -1
- package/types/components/MobileMenu.d.ts +7 -6
- 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/Section.d.ts +1 -1
- 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 +8 -0
- package/types/components/Sidebar/SidebarTabTrigger.d.ts +9 -0
- package/types/components/Sidebar/SidebarTabTriggers.d.ts +6 -0
- package/types/components/Sidebar/SidebarTabs.d.ts +6 -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 +9 -0
- package/types/components/canvases/InteractiveCanvas.d.ts +27 -0
- package/types/components/canvases/StaticCanvas.d.ts +18 -0
- package/types/components/canvases/index.d.ts +3 -0
- package/types/components/dropdownMenu/DropdownMenu.d.ts +9 -5
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +2 -1
- package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -1
- package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +2 -1
- package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -2
- package/types/components/dropdownMenu/common.d.ts +1 -1
- package/types/components/footer/Footer.d.ts +2 -2
- package/types/components/icons.d.ts +14 -1
- package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -1
- package/types/components/main-menu/MainMenu.d.ts +9 -5
- package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -1
- package/types/components/welcome-screen/WelcomeScreen.d.ts +0 -1
- package/types/constants.d.ts +46 -3
- package/types/context/tunnels.d.ts +19 -0
- package/types/context/ui-appState.d.ts +4 -0
- package/types/data/encode.d.ts +1 -1
- package/types/data/filesystem.d.ts +1 -1
- package/types/data/library.d.ts +3 -45
- package/types/data/restore.d.ts +2 -2
- package/types/data/transform.d.ts +71 -0
- package/types/data/types.d.ts +3 -5
- package/types/data/url.d.ts +7 -0
- package/types/element/Hyperlink.d.ts +47 -27
- package/types/element/binding.d.ts +4 -3
- package/types/element/bounds.d.ts +30 -6
- package/types/element/collision.d.ts +7 -7
- package/types/element/dragElements.d.ts +12 -2
- package/types/element/embeddable.d.ts +153 -0
- package/types/element/index.d.ts +3 -2
- package/types/element/linearElementEditor.d.ts +39 -23
- package/types/element/mutateElement.d.ts +1 -1
- package/types/element/newElement.d.ts +15 -6
- package/types/element/resizeElements.d.ts +3 -2
- package/types/element/showSelectedShapeActions.d.ts +2 -2
- package/types/element/sizeHelpers.d.ts +8 -1
- package/types/element/textElement.d.ts +6 -8
- package/types/element/textWysiwyg.d.ts +1 -1
- package/types/element/transformHandles.d.ts +15 -8
- package/types/element/typeChecks.d.ts +3 -1
- package/types/element/types.d.ts +51 -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 +15 -11
- package/types/history.d.ts +3 -3
- package/types/hooks/useCreatePortalContainer.d.ts +4 -0
- package/types/hooks/useLibraryItemSvg.d.ts +11 -0
- package/types/hooks/useOutsideClick.d.ts +19 -2
- package/types/hooks/useScrollPosition.d.ts +1 -0
- package/types/hooks/useStable.d.ts +1 -0
- package/types/hooks/useTransition.d.ts +2 -0
- package/types/i18n.d.ts +7 -4
- package/types/jotai.d.ts +16 -104
- package/types/keys.d.ts +5 -1
- package/types/math.d.ts +3 -0
- package/types/packages/excalidraw/example/initialData.d.ts +182 -64
- package/types/packages/excalidraw/index.d.ts +5 -2
- package/types/packages/excalidraw/webpack.dev.config.d.ts +5 -2
- package/types/packages/excalidraw/webpack.prod.config.d.ts +3 -0
- package/types/packages/utils.d.ts +5 -2
- package/types/renderer/renderElement.d.ts +11 -22
- package/types/renderer/renderScene.d.ts +19 -27
- package/types/renderer/renderSnaps.d.ts +2 -0
- package/types/renderer/roundRect.d.ts +1 -1
- package/types/scene/Renderer.d.ts +25 -0
- package/types/scene/Scene.d.ts +27 -5
- package/types/scene/Shape.d.ts +12 -0
- package/types/scene/ShapeCache.d.ts +20 -0
- package/types/scene/export.d.ts +37 -11
- package/types/scene/scroll.d.ts +1 -1
- package/types/scene/scrollbars.d.ts +2 -6
- package/types/scene/selection.d.ts +27 -6
- package/types/scene/types.d.ts +69 -34
- package/types/snapping.d.ts +108 -0
- package/types/types.d.ts +177 -65
- package/types/utility-types.d.ts +16 -14
- package/types/utils.d.ts +66 -27
- package/types/zindex.d.ts +4 -4
- 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
- /package/dist/excalidraw-assets/{vendor-2002fe1b8862917b36c1.js.LICENSE.txt → vendor-d415b28e9024dee4bb1b.js.LICENSE.txt} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/{vendor-2002fe1b8862917b36c1.d.ts → vendor-d415b28e9024dee4bb1b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.d.ts → vendor-a14cd58fa2db417e42b2.d.ts} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
|
|
3
2
|
import { AppState } from "../types";
|
|
3
|
+
import { Mutable } from "../utility-types";
|
|
4
4
|
export declare const actionUnbindText: {
|
|
5
5
|
name: "unbindText";
|
|
6
6
|
contextItemLabel: string;
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
11
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState
|
|
10
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
11
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
12
12
|
elements: readonly ExcalidrawElement[];
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
14
|
commitToHistory: true;
|
|
@@ -22,8 +22,8 @@ export declare const actionBindText: {
|
|
|
22
22
|
trackEvent: {
|
|
23
23
|
category: "element";
|
|
24
24
|
};
|
|
25
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
26
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState
|
|
25
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
26
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
27
27
|
elements: ExcalidrawElement[];
|
|
28
28
|
appState: {
|
|
29
29
|
selectedElementIds: {
|
|
@@ -37,6 +37,10 @@ export declare const actionBindText: {
|
|
|
37
37
|
showWelcomeScreen: boolean;
|
|
38
38
|
isLoading: boolean;
|
|
39
39
|
errorMessage: import("react").ReactNode;
|
|
40
|
+
activeEmbeddable: {
|
|
41
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
42
|
+
state: "active" | "hover";
|
|
43
|
+
} | null;
|
|
40
44
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
41
45
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
42
46
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
@@ -44,18 +48,21 @@ export declare const actionBindText: {
|
|
|
44
48
|
isBindingEnabled: boolean;
|
|
45
49
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
46
50
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
51
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
52
|
+
frameRendering: {
|
|
53
|
+
enabled: boolean;
|
|
54
|
+
name: boolean;
|
|
55
|
+
outline: boolean;
|
|
56
|
+
clip: boolean;
|
|
57
|
+
};
|
|
58
|
+
editingFrame: string | null;
|
|
59
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
47
60
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
48
61
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
49
62
|
activeTool: {
|
|
50
|
-
lastActiveTool: import("../types").
|
|
63
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
51
64
|
locked: boolean;
|
|
52
|
-
} & (
|
|
53
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
54
|
-
customType: null;
|
|
55
|
-
} | {
|
|
56
|
-
type: "custom";
|
|
57
|
-
customType: string;
|
|
58
|
-
});
|
|
65
|
+
} & import("../types").ActiveTool;
|
|
59
66
|
penMode: boolean;
|
|
60
67
|
penDetected: boolean;
|
|
61
68
|
exportBackground: boolean;
|
|
@@ -87,14 +94,18 @@ export declare const actionBindText: {
|
|
|
87
94
|
value: import("../types").NormalizedZoomValue;
|
|
88
95
|
}>;
|
|
89
96
|
openMenu: "canvas" | "shape" | null;
|
|
90
|
-
openPopup: "
|
|
91
|
-
openSidebar:
|
|
97
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
98
|
+
openSidebar: {
|
|
99
|
+
name: string;
|
|
100
|
+
tab?: string | undefined;
|
|
101
|
+
} | null;
|
|
92
102
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
93
|
-
|
|
103
|
+
defaultSidebarDockedPreference: boolean;
|
|
94
104
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
95
105
|
previousSelectedElementIds: {
|
|
96
|
-
[id: string]:
|
|
106
|
+
[id: string]: true;
|
|
97
107
|
};
|
|
108
|
+
selectedElementsAreBeingDragged: boolean;
|
|
98
109
|
shouldCacheIgnoreZoom: boolean;
|
|
99
110
|
toast: {
|
|
100
111
|
message: string;
|
|
@@ -102,7 +113,7 @@ export declare const actionBindText: {
|
|
|
102
113
|
duration?: number | undefined;
|
|
103
114
|
} | null;
|
|
104
115
|
zenModeEnabled: boolean;
|
|
105
|
-
theme:
|
|
116
|
+
theme: import("../element/types").Theme;
|
|
106
117
|
gridSize: number | null;
|
|
107
118
|
viewModeEnabled: boolean;
|
|
108
119
|
selectedGroupIds: {
|
|
@@ -125,8 +136,14 @@ export declare const actionBindText: {
|
|
|
125
136
|
data: import("../charts").Spreadsheet;
|
|
126
137
|
};
|
|
127
138
|
pendingImageElementId: string | null;
|
|
128
|
-
showHyperlinkPopup: false | "
|
|
139
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
129
140
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
141
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
142
|
+
originSnapOffset: {
|
|
143
|
+
x: number;
|
|
144
|
+
y: number;
|
|
145
|
+
} | null;
|
|
146
|
+
objectsSnapModeEnabled: boolean;
|
|
130
147
|
};
|
|
131
148
|
commitToHistory: true;
|
|
132
149
|
};
|
|
@@ -139,13 +156,13 @@ export declare const actionWrapTextInContainer: {
|
|
|
139
156
|
trackEvent: {
|
|
140
157
|
category: "element";
|
|
141
158
|
};
|
|
142
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
143
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState
|
|
159
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
160
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
144
161
|
elements: readonly ExcalidrawElement[];
|
|
145
162
|
appState: {
|
|
146
|
-
selectedElementIds: {
|
|
147
|
-
[id: string]:
|
|
148
|
-
}
|
|
163
|
+
selectedElementIds: Mutable<Readonly<{
|
|
164
|
+
[id: string]: true;
|
|
165
|
+
}>>;
|
|
149
166
|
contextMenu: {
|
|
150
167
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
151
168
|
top: number;
|
|
@@ -154,6 +171,10 @@ export declare const actionWrapTextInContainer: {
|
|
|
154
171
|
showWelcomeScreen: boolean;
|
|
155
172
|
isLoading: boolean;
|
|
156
173
|
errorMessage: import("react").ReactNode;
|
|
174
|
+
activeEmbeddable: {
|
|
175
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
176
|
+
state: "active" | "hover";
|
|
177
|
+
} | null;
|
|
157
178
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
158
179
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
159
180
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
@@ -161,18 +182,21 @@ export declare const actionWrapTextInContainer: {
|
|
|
161
182
|
isBindingEnabled: boolean;
|
|
162
183
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
163
184
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
185
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
186
|
+
frameRendering: {
|
|
187
|
+
enabled: boolean;
|
|
188
|
+
name: boolean;
|
|
189
|
+
outline: boolean;
|
|
190
|
+
clip: boolean;
|
|
191
|
+
};
|
|
192
|
+
editingFrame: string | null;
|
|
193
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
164
194
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
165
195
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
166
196
|
activeTool: {
|
|
167
|
-
lastActiveTool: import("../types").
|
|
197
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
168
198
|
locked: boolean;
|
|
169
|
-
} & (
|
|
170
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
171
|
-
customType: null;
|
|
172
|
-
} | {
|
|
173
|
-
type: "custom";
|
|
174
|
-
customType: string;
|
|
175
|
-
});
|
|
199
|
+
} & import("../types").ActiveTool;
|
|
176
200
|
penMode: boolean;
|
|
177
201
|
penDetected: boolean;
|
|
178
202
|
exportBackground: boolean;
|
|
@@ -204,14 +228,18 @@ export declare const actionWrapTextInContainer: {
|
|
|
204
228
|
value: import("../types").NormalizedZoomValue;
|
|
205
229
|
}>;
|
|
206
230
|
openMenu: "canvas" | "shape" | null;
|
|
207
|
-
openPopup: "
|
|
208
|
-
openSidebar:
|
|
231
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
232
|
+
openSidebar: {
|
|
233
|
+
name: string;
|
|
234
|
+
tab?: string | undefined;
|
|
235
|
+
} | null;
|
|
209
236
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
210
|
-
|
|
237
|
+
defaultSidebarDockedPreference: boolean;
|
|
211
238
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
212
239
|
previousSelectedElementIds: {
|
|
213
|
-
[id: string]:
|
|
240
|
+
[id: string]: true;
|
|
214
241
|
};
|
|
242
|
+
selectedElementsAreBeingDragged: boolean;
|
|
215
243
|
shouldCacheIgnoreZoom: boolean;
|
|
216
244
|
toast: {
|
|
217
245
|
message: string;
|
|
@@ -219,7 +247,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
219
247
|
duration?: number | undefined;
|
|
220
248
|
} | null;
|
|
221
249
|
zenModeEnabled: boolean;
|
|
222
|
-
theme:
|
|
250
|
+
theme: import("../element/types").Theme;
|
|
223
251
|
gridSize: number | null;
|
|
224
252
|
viewModeEnabled: boolean;
|
|
225
253
|
selectedGroupIds: {
|
|
@@ -242,8 +270,14 @@ export declare const actionWrapTextInContainer: {
|
|
|
242
270
|
data: import("../charts").Spreadsheet;
|
|
243
271
|
};
|
|
244
272
|
pendingImageElementId: string | null;
|
|
245
|
-
showHyperlinkPopup: false | "
|
|
273
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
246
274
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
275
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
276
|
+
originSnapOffset: {
|
|
277
|
+
x: number;
|
|
278
|
+
y: number;
|
|
279
|
+
} | null;
|
|
280
|
+
objectsSnapModeEnabled: boolean;
|
|
247
281
|
};
|
|
248
282
|
commitToHistory: true;
|
|
249
283
|
};
|