@dwelle/excalidraw 0.4.0-c863147 → 0.4.0-c8d325d
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 +22 -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 +2103 -1697
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +15 -0
- package/package.json +7 -2
- package/types/actions/actionAddToLibrary.d.ts +63 -22
- package/types/actions/actionAlign.d.ts +25 -20
- package/types/actions/actionBoundText.d.ts +46 -18
- package/types/actions/actionCanvas.d.ts +350 -78
- package/types/actions/actionClipboard.d.ts +101 -35
- package/types/actions/actionDeleteSelected.d.ts +57 -19
- package/types/actions/actionDistribute.d.ts +7 -8
- package/types/actions/actionDuplicateSelection.d.ts +0 -1
- package/types/actions/actionElementLock.d.ts +44 -16
- package/types/actions/actionExport.d.ts +198 -72
- package/types/actions/actionFinalize.d.ts +40 -16
- package/types/actions/actionFlip.d.ts +4 -5
- package/types/actions/actionFrame.d.ts +423 -0
- package/types/actions/actionGroup.d.ts +246 -9
- package/types/actions/actionLinearEditor.d.ts +23 -10
- package/types/actions/actionMenu.d.ts +64 -24
- package/types/actions/actionNavigate.d.ts +1 -1
- package/types/actions/actionProperties.d.ts +273 -92
- package/types/actions/actionSelectAll.d.ts +121 -2
- package/types/actions/actionStyles.d.ts +21 -8
- package/types/actions/actionToggleGridMode.d.ts +21 -8
- package/types/actions/actionToggleStats.d.ts +21 -8
- package/types/actions/actionToggleViewMode.d.ts +21 -8
- package/types/actions/actionToggleZenMode.d.ts +21 -8
- package/types/actions/actionZindex.d.ts +4 -4
- package/types/actions/manager.d.ts +1 -1
- package/types/actions/types.d.ts +4 -3
- package/types/appState.d.ts +9 -9
- package/types/clients.d.ts +1 -5
- package/types/clipboard.d.ts +1 -0
- package/types/colors.d.ts +10 -9
- package/types/components/Actions.d.ts +2 -2
- package/types/components/ActiveConfirmDialog.d.ts +1 -21
- package/types/components/App.d.ts +48 -13
- package/types/components/Avatar.d.ts +0 -1
- package/types/components/Button.d.ts +0 -1
- package/types/components/Card.d.ts +0 -1
- package/types/components/ColorPicker/ColorInput.d.ts +1 -1
- package/types/components/ColorPicker/ColorPicker.d.ts +3 -2
- package/types/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/types/components/ColorPicker/Picker.d.ts +4 -2
- package/types/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/types/components/ColorPicker/ShadeList.d.ts +1 -1
- package/types/components/ColorPicker/TopPicks.d.ts +1 -1
- package/types/components/ColorPicker/colorPickerUtils.d.ts +4 -24
- package/types/components/ColorPicker/keyboardNavHandlers.d.ts +8 -4
- package/types/components/DefaultSidebar.d.ts +0 -1
- package/types/components/Dialog.d.ts +3 -4
- package/types/components/EyeDropper.d.ts +17 -0
- package/types/components/FilledButton.d.ts +17 -0
- package/types/components/HintViewer.d.ts +3 -4
- package/types/components/ImageExportDialog.d.ts +3 -4
- package/types/components/JSONExportDialog.d.ts +1 -1
- package/types/components/LayerUI.d.ts +4 -2
- package/types/components/LibraryMenu.d.ts +5 -23
- package/types/components/LibraryMenuHeaderContent.d.ts +0 -1
- package/types/components/LibraryMenuItems.d.ts +3 -1
- package/types/components/LibraryMenuSection.d.ts +9 -3
- package/types/components/LibraryUnit.d.ts +5 -2
- package/types/components/LoadingMessage.d.ts +0 -1
- package/types/components/MobileMenu.d.ts +4 -3
- 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/ProjectName.d.ts +1 -0
- package/types/components/RadioGroup.d.ts +12 -0
- package/types/components/Section.d.ts +1 -1
- package/types/components/Sidebar/Sidebar.d.ts +1 -21
- package/types/components/Sidebar/SidebarTab.d.ts +0 -1
- package/types/components/Sidebar/SidebarTabTrigger.d.ts +0 -1
- package/types/components/Sidebar/SidebarTabTriggers.d.ts +0 -1
- package/types/components/Sidebar/SidebarTabs.d.ts +0 -1
- package/types/components/Stack.d.ts +3 -2
- package/types/components/Switch.d.ts +9 -0
- package/types/components/ToolButton.d.ts +2 -1
- package/types/components/Trans.d.ts +2 -1
- package/types/components/canvases/InteractiveCanvas.d.ts +26 -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 +3 -2
- package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -2
- package/types/components/icons.d.ts +11 -0
- package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -1
- package/types/components/main-menu/MainMenu.d.ts +3 -2
- 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 +32 -8
- package/types/context/tunnels.d.ts +1 -0
- package/types/data/index.d.ts +1 -1
- package/types/data/library.d.ts +3 -45
- package/types/data/transform.d.ts +71 -0
- package/types/data/url.d.ts +7 -0
- package/types/element/Hyperlink.d.ts +31 -14
- package/types/element/binding.d.ts +2 -1
- 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/embeddable.d.ts +153 -0
- package/types/element/index.d.ts +3 -2
- package/types/element/linearElementEditor.d.ts +25 -12
- package/types/element/newElement.d.ts +15 -6
- package/types/element/sizeHelpers.d.ts +8 -1
- package/types/element/textElement.d.ts +5 -7
- package/types/element/textWysiwyg.d.ts +1 -1
- package/types/element/transformHandles.d.ts +10 -3
- package/types/element/typeChecks.d.ts +3 -1
- package/types/element/types.d.ts +19 -3
- package/types/frame.d.ts +40 -0
- package/types/groups.d.ts +14 -11
- package/types/history.d.ts +3 -3
- package/types/hooks/useCreatePortalContainer.d.ts +4 -0
- package/types/hooks/useLibraryItemSvg.d.ts +9 -23
- package/types/hooks/useOutsideClick.d.ts +19 -2
- package/types/hooks/useScrollPosition.d.ts +1 -0
- package/types/i18n.d.ts +5 -2
- package/types/jotai.d.ts +16 -104
- package/types/keys.d.ts +3 -0
- package/types/math.d.ts +1 -0
- package/types/packages/excalidraw/example/initialData.d.ts +182 -64
- package/types/packages/excalidraw/index.d.ts +2 -0
- 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 +26 -26
- package/types/renderer/renderElement.d.ts +15 -19
- package/types/renderer/renderScene.d.ts +19 -27
- package/types/renderer/roundRect.d.ts +1 -1
- package/types/scene/Renderer.d.ts +25 -0
- package/types/scene/Scene.d.ts +23 -1
- package/types/scene/ShapeCache.d.ts +24 -0
- package/types/scene/export.d.ts +11 -152
- package/types/scene/scroll.d.ts +1 -1
- package/types/scene/scrollbars.d.ts +2 -6
- package/types/scene/selection.d.ts +25 -5
- package/types/scene/types.d.ts +43 -32
- package/types/types.d.ts +89 -11
- package/types/utility-types.d.ts +3 -1
- package/types/utils.d.ts +58 -20
- package/types/zindex.d.ts +4 -4
- /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,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { Theme } from "../element/types";
|
|
2
2
|
import "../components/ToolIcon.scss";
|
|
3
3
|
export declare const actionChangeProjectName: {
|
|
4
4
|
name: "changeProjectName";
|
|
@@ -14,6 +14,10 @@ export declare const actionChangeProjectName: {
|
|
|
14
14
|
showWelcomeScreen: boolean;
|
|
15
15
|
isLoading: boolean;
|
|
16
16
|
errorMessage: import("react").ReactNode;
|
|
17
|
+
activeEmbeddable: {
|
|
18
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
19
|
+
state: "active" | "hover";
|
|
20
|
+
} | null;
|
|
17
21
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
18
22
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
19
23
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -21,13 +25,22 @@ export declare const actionChangeProjectName: {
|
|
|
21
25
|
isBindingEnabled: boolean;
|
|
22
26
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
23
27
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
28
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
29
|
+
frameRendering: {
|
|
30
|
+
enabled: boolean;
|
|
31
|
+
name: boolean;
|
|
32
|
+
outline: boolean;
|
|
33
|
+
clip: boolean;
|
|
34
|
+
};
|
|
35
|
+
editingFrame: string | null;
|
|
36
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
24
37
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
25
38
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
26
39
|
activeTool: {
|
|
27
40
|
lastActiveTool: import("../types").LastActiveTool;
|
|
28
41
|
locked: boolean;
|
|
29
42
|
} & ({
|
|
30
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
43
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
31
44
|
customType: null;
|
|
32
45
|
} | {
|
|
33
46
|
type: "custom";
|
|
@@ -71,12 +84,13 @@ export declare const actionChangeProjectName: {
|
|
|
71
84
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
72
85
|
defaultSidebarDockedPreference: boolean;
|
|
73
86
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
74
|
-
selectedElementIds: {
|
|
75
|
-
[id: string]:
|
|
76
|
-
}
|
|
87
|
+
selectedElementIds: Readonly<{
|
|
88
|
+
[id: string]: true;
|
|
89
|
+
}>;
|
|
77
90
|
previousSelectedElementIds: {
|
|
78
|
-
[id: string]:
|
|
91
|
+
[id: string]: true;
|
|
79
92
|
};
|
|
93
|
+
selectedElementsAreBeingDragged: boolean;
|
|
80
94
|
shouldCacheIgnoreZoom: boolean;
|
|
81
95
|
toast: {
|
|
82
96
|
message: string;
|
|
@@ -84,7 +98,7 @@ export declare const actionChangeProjectName: {
|
|
|
84
98
|
duration?: number | undefined;
|
|
85
99
|
} | null;
|
|
86
100
|
zenModeEnabled: boolean;
|
|
87
|
-
theme:
|
|
101
|
+
theme: Theme;
|
|
88
102
|
gridSize: number | null;
|
|
89
103
|
viewModeEnabled: boolean;
|
|
90
104
|
selectedGroupIds: {
|
|
@@ -107,12 +121,12 @@ export declare const actionChangeProjectName: {
|
|
|
107
121
|
data: import("../charts").Spreadsheet;
|
|
108
122
|
};
|
|
109
123
|
pendingImageElementId: string | null;
|
|
110
|
-
showHyperlinkPopup: false | "
|
|
124
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
111
125
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
112
126
|
};
|
|
113
127
|
commitToHistory: false;
|
|
114
128
|
};
|
|
115
|
-
PanelComponent: ({ appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
129
|
+
PanelComponent: ({ appState, updateData, appProps, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
116
130
|
} & {
|
|
117
131
|
keyTest?: undefined;
|
|
118
132
|
};
|
|
@@ -133,6 +147,10 @@ export declare const actionChangeExportScale: {
|
|
|
133
147
|
showWelcomeScreen: boolean;
|
|
134
148
|
isLoading: boolean;
|
|
135
149
|
errorMessage: import("react").ReactNode;
|
|
150
|
+
activeEmbeddable: {
|
|
151
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
152
|
+
state: "active" | "hover";
|
|
153
|
+
} | null;
|
|
136
154
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
137
155
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
138
156
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -140,13 +158,22 @@ export declare const actionChangeExportScale: {
|
|
|
140
158
|
isBindingEnabled: boolean;
|
|
141
159
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
142
160
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
161
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
162
|
+
frameRendering: {
|
|
163
|
+
enabled: boolean;
|
|
164
|
+
name: boolean;
|
|
165
|
+
outline: boolean;
|
|
166
|
+
clip: boolean;
|
|
167
|
+
};
|
|
168
|
+
editingFrame: string | null;
|
|
169
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
143
170
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
144
171
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
145
172
|
activeTool: {
|
|
146
173
|
lastActiveTool: import("../types").LastActiveTool;
|
|
147
174
|
locked: boolean;
|
|
148
175
|
} & ({
|
|
149
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
176
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
150
177
|
customType: null;
|
|
151
178
|
} | {
|
|
152
179
|
type: "custom";
|
|
@@ -190,12 +217,13 @@ export declare const actionChangeExportScale: {
|
|
|
190
217
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
191
218
|
defaultSidebarDockedPreference: boolean;
|
|
192
219
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
193
|
-
selectedElementIds: {
|
|
194
|
-
[id: string]:
|
|
195
|
-
}
|
|
220
|
+
selectedElementIds: Readonly<{
|
|
221
|
+
[id: string]: true;
|
|
222
|
+
}>;
|
|
196
223
|
previousSelectedElementIds: {
|
|
197
|
-
[id: string]:
|
|
224
|
+
[id: string]: true;
|
|
198
225
|
};
|
|
226
|
+
selectedElementsAreBeingDragged: boolean;
|
|
199
227
|
shouldCacheIgnoreZoom: boolean;
|
|
200
228
|
toast: {
|
|
201
229
|
message: string;
|
|
@@ -203,7 +231,7 @@ export declare const actionChangeExportScale: {
|
|
|
203
231
|
duration?: number | undefined;
|
|
204
232
|
} | null;
|
|
205
233
|
zenModeEnabled: boolean;
|
|
206
|
-
theme:
|
|
234
|
+
theme: Theme;
|
|
207
235
|
gridSize: number | null;
|
|
208
236
|
viewModeEnabled: boolean;
|
|
209
237
|
selectedGroupIds: {
|
|
@@ -226,7 +254,7 @@ export declare const actionChangeExportScale: {
|
|
|
226
254
|
data: import("../charts").Spreadsheet;
|
|
227
255
|
};
|
|
228
256
|
pendingImageElementId: string | null;
|
|
229
|
-
showHyperlinkPopup: false | "
|
|
257
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
230
258
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
231
259
|
};
|
|
232
260
|
commitToHistory: false;
|
|
@@ -252,6 +280,10 @@ export declare const actionChangeExportBackground: {
|
|
|
252
280
|
showWelcomeScreen: boolean;
|
|
253
281
|
isLoading: boolean;
|
|
254
282
|
errorMessage: import("react").ReactNode;
|
|
283
|
+
activeEmbeddable: {
|
|
284
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
285
|
+
state: "active" | "hover";
|
|
286
|
+
} | null;
|
|
255
287
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
256
288
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
257
289
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -259,13 +291,22 @@ export declare const actionChangeExportBackground: {
|
|
|
259
291
|
isBindingEnabled: boolean;
|
|
260
292
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
261
293
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
294
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
295
|
+
frameRendering: {
|
|
296
|
+
enabled: boolean;
|
|
297
|
+
name: boolean;
|
|
298
|
+
outline: boolean;
|
|
299
|
+
clip: boolean;
|
|
300
|
+
};
|
|
301
|
+
editingFrame: string | null;
|
|
302
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
262
303
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
263
304
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
264
305
|
activeTool: {
|
|
265
306
|
lastActiveTool: import("../types").LastActiveTool;
|
|
266
307
|
locked: boolean;
|
|
267
308
|
} & ({
|
|
268
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
309
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
269
310
|
customType: null;
|
|
270
311
|
} | {
|
|
271
312
|
type: "custom";
|
|
@@ -309,12 +350,13 @@ export declare const actionChangeExportBackground: {
|
|
|
309
350
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
310
351
|
defaultSidebarDockedPreference: boolean;
|
|
311
352
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
312
|
-
selectedElementIds: {
|
|
313
|
-
[id: string]:
|
|
314
|
-
}
|
|
353
|
+
selectedElementIds: Readonly<{
|
|
354
|
+
[id: string]: true;
|
|
355
|
+
}>;
|
|
315
356
|
previousSelectedElementIds: {
|
|
316
|
-
[id: string]:
|
|
357
|
+
[id: string]: true;
|
|
317
358
|
};
|
|
359
|
+
selectedElementsAreBeingDragged: boolean;
|
|
318
360
|
shouldCacheIgnoreZoom: boolean;
|
|
319
361
|
toast: {
|
|
320
362
|
message: string;
|
|
@@ -322,7 +364,7 @@ export declare const actionChangeExportBackground: {
|
|
|
322
364
|
duration?: number | undefined;
|
|
323
365
|
} | null;
|
|
324
366
|
zenModeEnabled: boolean;
|
|
325
|
-
theme:
|
|
367
|
+
theme: Theme;
|
|
326
368
|
gridSize: number | null;
|
|
327
369
|
viewModeEnabled: boolean;
|
|
328
370
|
selectedGroupIds: {
|
|
@@ -345,7 +387,7 @@ export declare const actionChangeExportBackground: {
|
|
|
345
387
|
data: import("../charts").Spreadsheet;
|
|
346
388
|
};
|
|
347
389
|
pendingImageElementId: string | null;
|
|
348
|
-
showHyperlinkPopup: false | "
|
|
390
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
349
391
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
350
392
|
};
|
|
351
393
|
commitToHistory: false;
|
|
@@ -371,6 +413,10 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
371
413
|
showWelcomeScreen: boolean;
|
|
372
414
|
isLoading: boolean;
|
|
373
415
|
errorMessage: import("react").ReactNode;
|
|
416
|
+
activeEmbeddable: {
|
|
417
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
418
|
+
state: "active" | "hover";
|
|
419
|
+
} | null;
|
|
374
420
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
375
421
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
376
422
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -378,13 +424,22 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
378
424
|
isBindingEnabled: boolean;
|
|
379
425
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
380
426
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
427
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
428
|
+
frameRendering: {
|
|
429
|
+
enabled: boolean;
|
|
430
|
+
name: boolean;
|
|
431
|
+
outline: boolean;
|
|
432
|
+
clip: boolean;
|
|
433
|
+
};
|
|
434
|
+
editingFrame: string | null;
|
|
435
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
381
436
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
382
437
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
383
438
|
activeTool: {
|
|
384
439
|
lastActiveTool: import("../types").LastActiveTool;
|
|
385
440
|
locked: boolean;
|
|
386
441
|
} & ({
|
|
387
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
442
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
388
443
|
customType: null;
|
|
389
444
|
} | {
|
|
390
445
|
type: "custom";
|
|
@@ -428,12 +483,13 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
428
483
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
429
484
|
defaultSidebarDockedPreference: boolean;
|
|
430
485
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
431
|
-
selectedElementIds: {
|
|
432
|
-
[id: string]:
|
|
433
|
-
}
|
|
486
|
+
selectedElementIds: Readonly<{
|
|
487
|
+
[id: string]: true;
|
|
488
|
+
}>;
|
|
434
489
|
previousSelectedElementIds: {
|
|
435
|
-
[id: string]:
|
|
490
|
+
[id: string]: true;
|
|
436
491
|
};
|
|
492
|
+
selectedElementsAreBeingDragged: boolean;
|
|
437
493
|
shouldCacheIgnoreZoom: boolean;
|
|
438
494
|
toast: {
|
|
439
495
|
message: string;
|
|
@@ -441,7 +497,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
441
497
|
duration?: number | undefined;
|
|
442
498
|
} | null;
|
|
443
499
|
zenModeEnabled: boolean;
|
|
444
|
-
theme:
|
|
500
|
+
theme: Theme;
|
|
445
501
|
gridSize: number | null;
|
|
446
502
|
viewModeEnabled: boolean;
|
|
447
503
|
selectedGroupIds: {
|
|
@@ -464,7 +520,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
464
520
|
data: import("../charts").Spreadsheet;
|
|
465
521
|
};
|
|
466
522
|
pendingImageElementId: string | null;
|
|
467
|
-
showHyperlinkPopup: false | "
|
|
523
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
468
524
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
469
525
|
};
|
|
470
526
|
commitToHistory: false;
|
|
@@ -494,6 +550,10 @@ export declare const actionSaveToActiveFile: {
|
|
|
494
550
|
showWelcomeScreen: boolean;
|
|
495
551
|
isLoading: boolean;
|
|
496
552
|
errorMessage: import("react").ReactNode;
|
|
553
|
+
activeEmbeddable: {
|
|
554
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
555
|
+
state: "active" | "hover";
|
|
556
|
+
} | null;
|
|
497
557
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
498
558
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
499
559
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -501,13 +561,22 @@ export declare const actionSaveToActiveFile: {
|
|
|
501
561
|
isBindingEnabled: boolean;
|
|
502
562
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
503
563
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
564
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
565
|
+
frameRendering: {
|
|
566
|
+
enabled: boolean;
|
|
567
|
+
name: boolean;
|
|
568
|
+
outline: boolean;
|
|
569
|
+
clip: boolean;
|
|
570
|
+
};
|
|
571
|
+
editingFrame: string | null;
|
|
572
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
504
573
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
505
574
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
506
575
|
activeTool: {
|
|
507
576
|
lastActiveTool: import("../types").LastActiveTool;
|
|
508
577
|
locked: boolean;
|
|
509
578
|
} & ({
|
|
510
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
579
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
511
580
|
customType: null;
|
|
512
581
|
} | {
|
|
513
582
|
type: "custom";
|
|
@@ -552,15 +621,16 @@ export declare const actionSaveToActiveFile: {
|
|
|
552
621
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
553
622
|
defaultSidebarDockedPreference: boolean;
|
|
554
623
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
555
|
-
selectedElementIds: {
|
|
556
|
-
[id: string]:
|
|
557
|
-
}
|
|
624
|
+
selectedElementIds: Readonly<{
|
|
625
|
+
[id: string]: true;
|
|
626
|
+
}>;
|
|
558
627
|
previousSelectedElementIds: {
|
|
559
|
-
[id: string]:
|
|
628
|
+
[id: string]: true;
|
|
560
629
|
};
|
|
630
|
+
selectedElementsAreBeingDragged: boolean;
|
|
561
631
|
shouldCacheIgnoreZoom: boolean;
|
|
562
632
|
zenModeEnabled: boolean;
|
|
563
|
-
theme:
|
|
633
|
+
theme: Theme;
|
|
564
634
|
gridSize: number | null;
|
|
565
635
|
viewModeEnabled: boolean;
|
|
566
636
|
selectedGroupIds: {
|
|
@@ -582,7 +652,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
582
652
|
data: import("../charts").Spreadsheet;
|
|
583
653
|
};
|
|
584
654
|
pendingImageElementId: string | null;
|
|
585
|
-
showHyperlinkPopup: false | "
|
|
655
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
586
656
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
587
657
|
};
|
|
588
658
|
} | {
|
|
@@ -611,6 +681,10 @@ export declare const actionSaveFileToDisk: {
|
|
|
611
681
|
showWelcomeScreen: boolean;
|
|
612
682
|
isLoading: boolean;
|
|
613
683
|
errorMessage: import("react").ReactNode;
|
|
684
|
+
activeEmbeddable: {
|
|
685
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
686
|
+
state: "active" | "hover";
|
|
687
|
+
} | null;
|
|
614
688
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
615
689
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
616
690
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -618,13 +692,22 @@ export declare const actionSaveFileToDisk: {
|
|
|
618
692
|
isBindingEnabled: boolean;
|
|
619
693
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
620
694
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
695
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
696
|
+
frameRendering: {
|
|
697
|
+
enabled: boolean;
|
|
698
|
+
name: boolean;
|
|
699
|
+
outline: boolean;
|
|
700
|
+
clip: boolean;
|
|
701
|
+
};
|
|
702
|
+
editingFrame: string | null;
|
|
703
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
621
704
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
622
705
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
623
706
|
activeTool: {
|
|
624
707
|
lastActiveTool: import("../types").LastActiveTool;
|
|
625
708
|
locked: boolean;
|
|
626
709
|
} & ({
|
|
627
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
710
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
628
711
|
customType: null;
|
|
629
712
|
} | {
|
|
630
713
|
type: "custom";
|
|
@@ -669,12 +752,13 @@ export declare const actionSaveFileToDisk: {
|
|
|
669
752
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
670
753
|
defaultSidebarDockedPreference: boolean;
|
|
671
754
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
672
|
-
selectedElementIds: {
|
|
673
|
-
[id: string]:
|
|
674
|
-
}
|
|
755
|
+
selectedElementIds: Readonly<{
|
|
756
|
+
[id: string]: true;
|
|
757
|
+
}>;
|
|
675
758
|
previousSelectedElementIds: {
|
|
676
|
-
[id: string]:
|
|
759
|
+
[id: string]: true;
|
|
677
760
|
};
|
|
761
|
+
selectedElementsAreBeingDragged: boolean;
|
|
678
762
|
shouldCacheIgnoreZoom: boolean;
|
|
679
763
|
toast: {
|
|
680
764
|
message: string;
|
|
@@ -682,7 +766,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
682
766
|
duration?: number | undefined;
|
|
683
767
|
} | null;
|
|
684
768
|
zenModeEnabled: boolean;
|
|
685
|
-
theme:
|
|
769
|
+
theme: Theme;
|
|
686
770
|
gridSize: number | null;
|
|
687
771
|
viewModeEnabled: boolean;
|
|
688
772
|
selectedGroupIds: {
|
|
@@ -704,7 +788,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
704
788
|
data: import("../charts").Spreadsheet;
|
|
705
789
|
};
|
|
706
790
|
pendingImageElementId: string | null;
|
|
707
|
-
showHyperlinkPopup: false | "
|
|
791
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
708
792
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
709
793
|
};
|
|
710
794
|
} | {
|
|
@@ -725,18 +809,25 @@ export declare const actionLoadScene: {
|
|
|
725
809
|
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
726
810
|
elements: import("../element/types").ExcalidrawElement[];
|
|
727
811
|
appState: {
|
|
728
|
-
theme:
|
|
812
|
+
theme: Theme;
|
|
729
813
|
name: string;
|
|
730
814
|
activeTool: {
|
|
731
815
|
lastActiveTool: import("../types").LastActiveTool;
|
|
732
816
|
locked: boolean;
|
|
733
817
|
} & ({
|
|
734
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
818
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
735
819
|
customType: null;
|
|
736
820
|
} | {
|
|
737
821
|
type: "custom";
|
|
738
822
|
customType: string;
|
|
739
823
|
});
|
|
824
|
+
toast: {
|
|
825
|
+
message: string;
|
|
826
|
+
closable?: boolean | undefined;
|
|
827
|
+
duration?: number | undefined;
|
|
828
|
+
} | null;
|
|
829
|
+
collaborators: Map<string, import("../types").Collaborator>;
|
|
830
|
+
penMode: boolean;
|
|
740
831
|
contextMenu: {
|
|
741
832
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
742
833
|
top: number;
|
|
@@ -745,6 +836,10 @@ export declare const actionLoadScene: {
|
|
|
745
836
|
showWelcomeScreen: boolean;
|
|
746
837
|
isLoading: boolean;
|
|
747
838
|
errorMessage: import("react").ReactNode;
|
|
839
|
+
activeEmbeddable: {
|
|
840
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
841
|
+
state: "active" | "hover";
|
|
842
|
+
} | null;
|
|
748
843
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
749
844
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
750
845
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -752,9 +847,17 @@ export declare const actionLoadScene: {
|
|
|
752
847
|
isBindingEnabled: boolean;
|
|
753
848
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
754
849
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
850
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
851
|
+
frameRendering: {
|
|
852
|
+
enabled: boolean;
|
|
853
|
+
name: boolean;
|
|
854
|
+
outline: boolean;
|
|
855
|
+
clip: boolean;
|
|
856
|
+
};
|
|
857
|
+
editingFrame: string | null;
|
|
858
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
755
859
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
756
860
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
757
|
-
penMode: boolean;
|
|
758
861
|
penDetected: boolean;
|
|
759
862
|
exportBackground: boolean;
|
|
760
863
|
exportEmbedScene: boolean;
|
|
@@ -792,18 +895,14 @@ export declare const actionLoadScene: {
|
|
|
792
895
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
793
896
|
defaultSidebarDockedPreference: boolean;
|
|
794
897
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
795
|
-
selectedElementIds: {
|
|
796
|
-
[id: string]:
|
|
797
|
-
}
|
|
898
|
+
selectedElementIds: Readonly<{
|
|
899
|
+
[id: string]: true;
|
|
900
|
+
}>;
|
|
798
901
|
previousSelectedElementIds: {
|
|
799
|
-
[id: string]:
|
|
902
|
+
[id: string]: true;
|
|
800
903
|
};
|
|
904
|
+
selectedElementsAreBeingDragged: boolean;
|
|
801
905
|
shouldCacheIgnoreZoom: boolean;
|
|
802
|
-
toast: {
|
|
803
|
-
message: string;
|
|
804
|
-
closable?: boolean | undefined;
|
|
805
|
-
duration?: number | undefined;
|
|
806
|
-
} | null;
|
|
807
906
|
zenModeEnabled: boolean;
|
|
808
907
|
gridSize: number | null;
|
|
809
908
|
viewModeEnabled: boolean;
|
|
@@ -812,7 +911,6 @@ export declare const actionLoadScene: {
|
|
|
812
911
|
};
|
|
813
912
|
editingGroupId: string | null;
|
|
814
913
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
815
|
-
collaborators: Map<string, import("../types").Collaborator>;
|
|
816
914
|
showStats: boolean;
|
|
817
915
|
currentChartType: import("../element/types").ChartType;
|
|
818
916
|
pasteDialog: {
|
|
@@ -823,7 +921,7 @@ export declare const actionLoadScene: {
|
|
|
823
921
|
data: import("../charts").Spreadsheet;
|
|
824
922
|
};
|
|
825
923
|
pendingImageElementId: string | null;
|
|
826
|
-
showHyperlinkPopup: false | "
|
|
924
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
827
925
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
828
926
|
};
|
|
829
927
|
files: import("../types").BinaryFiles;
|
|
@@ -839,6 +937,10 @@ export declare const actionLoadScene: {
|
|
|
839
937
|
} | null;
|
|
840
938
|
showWelcomeScreen: boolean;
|
|
841
939
|
isLoading: boolean;
|
|
940
|
+
activeEmbeddable: {
|
|
941
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
942
|
+
state: "active" | "hover";
|
|
943
|
+
} | null;
|
|
842
944
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
843
945
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
844
946
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -846,13 +948,22 @@ export declare const actionLoadScene: {
|
|
|
846
948
|
isBindingEnabled: boolean;
|
|
847
949
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
848
950
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
951
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
952
|
+
frameRendering: {
|
|
953
|
+
enabled: boolean;
|
|
954
|
+
name: boolean;
|
|
955
|
+
outline: boolean;
|
|
956
|
+
clip: boolean;
|
|
957
|
+
};
|
|
958
|
+
editingFrame: string | null;
|
|
959
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
849
960
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
850
961
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
851
962
|
activeTool: {
|
|
852
963
|
lastActiveTool: import("../types").LastActiveTool;
|
|
853
964
|
locked: boolean;
|
|
854
965
|
} & ({
|
|
855
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
966
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
856
967
|
customType: null;
|
|
857
968
|
} | {
|
|
858
969
|
type: "custom";
|
|
@@ -897,12 +1008,13 @@ export declare const actionLoadScene: {
|
|
|
897
1008
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
898
1009
|
defaultSidebarDockedPreference: boolean;
|
|
899
1010
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
900
|
-
selectedElementIds: {
|
|
901
|
-
[id: string]:
|
|
902
|
-
}
|
|
1011
|
+
selectedElementIds: Readonly<{
|
|
1012
|
+
[id: string]: true;
|
|
1013
|
+
}>;
|
|
903
1014
|
previousSelectedElementIds: {
|
|
904
|
-
[id: string]:
|
|
1015
|
+
[id: string]: true;
|
|
905
1016
|
};
|
|
1017
|
+
selectedElementsAreBeingDragged: boolean;
|
|
906
1018
|
shouldCacheIgnoreZoom: boolean;
|
|
907
1019
|
toast: {
|
|
908
1020
|
message: string;
|
|
@@ -910,7 +1022,7 @@ export declare const actionLoadScene: {
|
|
|
910
1022
|
duration?: number | undefined;
|
|
911
1023
|
} | null;
|
|
912
1024
|
zenModeEnabled: boolean;
|
|
913
|
-
theme:
|
|
1025
|
+
theme: Theme;
|
|
914
1026
|
gridSize: number | null;
|
|
915
1027
|
viewModeEnabled: boolean;
|
|
916
1028
|
selectedGroupIds: {
|
|
@@ -933,7 +1045,7 @@ export declare const actionLoadScene: {
|
|
|
933
1045
|
data: import("../charts").Spreadsheet;
|
|
934
1046
|
};
|
|
935
1047
|
pendingImageElementId: string | null;
|
|
936
|
-
showHyperlinkPopup: false | "
|
|
1048
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
937
1049
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
938
1050
|
};
|
|
939
1051
|
files: import("../types").BinaryFiles;
|
|
@@ -960,6 +1072,10 @@ export declare const actionExportWithDarkMode: {
|
|
|
960
1072
|
showWelcomeScreen: boolean;
|
|
961
1073
|
isLoading: boolean;
|
|
962
1074
|
errorMessage: import("react").ReactNode;
|
|
1075
|
+
activeEmbeddable: {
|
|
1076
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
1077
|
+
state: "active" | "hover";
|
|
1078
|
+
} | null;
|
|
963
1079
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
964
1080
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
965
1081
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -967,13 +1083,22 @@ export declare const actionExportWithDarkMode: {
|
|
|
967
1083
|
isBindingEnabled: boolean;
|
|
968
1084
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
969
1085
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1086
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
1087
|
+
frameRendering: {
|
|
1088
|
+
enabled: boolean;
|
|
1089
|
+
name: boolean;
|
|
1090
|
+
outline: boolean;
|
|
1091
|
+
clip: boolean;
|
|
1092
|
+
};
|
|
1093
|
+
editingFrame: string | null;
|
|
1094
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
970
1095
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
971
1096
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
972
1097
|
activeTool: {
|
|
973
1098
|
lastActiveTool: import("../types").LastActiveTool;
|
|
974
1099
|
locked: boolean;
|
|
975
1100
|
} & ({
|
|
976
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1101
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
977
1102
|
customType: null;
|
|
978
1103
|
} | {
|
|
979
1104
|
type: "custom";
|
|
@@ -1017,12 +1142,13 @@ export declare const actionExportWithDarkMode: {
|
|
|
1017
1142
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1018
1143
|
defaultSidebarDockedPreference: boolean;
|
|
1019
1144
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1020
|
-
selectedElementIds: {
|
|
1021
|
-
[id: string]:
|
|
1022
|
-
}
|
|
1145
|
+
selectedElementIds: Readonly<{
|
|
1146
|
+
[id: string]: true;
|
|
1147
|
+
}>;
|
|
1023
1148
|
previousSelectedElementIds: {
|
|
1024
|
-
[id: string]:
|
|
1149
|
+
[id: string]: true;
|
|
1025
1150
|
};
|
|
1151
|
+
selectedElementsAreBeingDragged: boolean;
|
|
1026
1152
|
shouldCacheIgnoreZoom: boolean;
|
|
1027
1153
|
toast: {
|
|
1028
1154
|
message: string;
|
|
@@ -1030,7 +1156,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1030
1156
|
duration?: number | undefined;
|
|
1031
1157
|
} | null;
|
|
1032
1158
|
zenModeEnabled: boolean;
|
|
1033
|
-
theme:
|
|
1159
|
+
theme: Theme;
|
|
1034
1160
|
gridSize: number | null;
|
|
1035
1161
|
viewModeEnabled: boolean;
|
|
1036
1162
|
selectedGroupIds: {
|
|
@@ -1053,7 +1179,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1053
1179
|
data: import("../charts").Spreadsheet;
|
|
1054
1180
|
};
|
|
1055
1181
|
pendingImageElementId: string | null;
|
|
1056
|
-
showHyperlinkPopup: false | "
|
|
1182
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1057
1183
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1058
1184
|
};
|
|
1059
1185
|
commitToHistory: false;
|