@excalidraw/math 0.18.0-1118751 → 0.18.0-1440f2d
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/dist/types/common/src/constants.d.ts +4 -0
- package/dist/types/common/src/utils.d.ts +12 -1
- package/dist/types/element/src/align.d.ts +4 -1
- package/dist/types/element/src/binding.d.ts +70 -0
- package/dist/types/element/src/bounds.d.ts +10 -2
- package/dist/types/element/src/collision.d.ts +13 -0
- package/dist/types/element/src/cropElement.d.ts +36 -4
- package/dist/types/element/src/delta.d.ts +7 -1
- package/dist/types/element/src/distribute.d.ts +4 -1
- package/dist/types/element/src/dragElements.d.ts +8 -3
- package/dist/types/element/src/elbowArrow.d.ts +5 -0
- package/dist/types/element/src/embeddable.d.ts +2 -1
- package/dist/types/element/src/flowchart.d.ts +1 -7
- package/dist/types/element/src/frame.d.ts +19 -1
- package/dist/types/element/src/groups.d.ts +1 -6
- package/dist/types/element/src/image.d.ts +5 -2
- package/dist/types/element/src/index.d.ts +2 -0
- package/dist/types/element/src/linearElementEditor.d.ts +4 -1
- package/dist/types/element/src/listMarker.d.ts +39 -0
- package/dist/types/element/src/newElement.d.ts +17 -1
- package/dist/types/element/src/renderElement.d.ts +10 -0
- package/dist/types/element/src/renderEnvironment.d.ts +66 -0
- package/dist/types/element/src/resizeElements.d.ts +15 -5
- package/dist/types/element/src/selection.d.ts +1 -7
- package/dist/types/element/src/shape.d.ts +2 -0
- package/dist/types/element/src/stickyNote.d.ts +8 -0
- package/dist/types/element/src/textElement.d.ts +10 -2
- package/dist/types/element/src/textMeasurements.d.ts +15 -11
- package/dist/types/element/src/textWrapping.d.ts +3 -2
- package/dist/types/element/src/transform.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +30 -3
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +56 -214
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +76 -16
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +20 -2
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -564
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +14 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +20 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +27 -9
- package/dist/types/excalidraw/actions/actionFrame.d.ts +71 -528
- package/dist/types/excalidraw/actions/actionGroup.d.ts +22 -4
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionLink.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionProperties.d.ts +20 -2
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +11 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +201 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +198 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -1
- package/dist/types/excalidraw/actions/index.d.ts +3 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +9 -7
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -1
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +6 -5
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -1
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -1
- package/dist/types/excalidraw/charts/index.d.ts +2 -1
- package/dist/types/excalidraw/components/Actions.d.ts +9 -2
- package/dist/types/excalidraw/components/App.arrowText.d.ts +5 -39
- package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
- package/dist/types/excalidraw/components/App.d.ts +79 -264
- package/dist/types/excalidraw/components/App.duplicate.d.ts +52 -2
- package/dist/types/excalidraw/components/App.host.d.ts +102 -0
- package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +8 -0
- package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
- package/dist/types/excalidraw/components/App.selectionTool.d.ts +93 -0
- package/dist/types/excalidraw/components/App.text.d.ts +146 -0
- package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +64 -4
- package/dist/types/excalidraw/components/App.wheel.d.ts +6 -2
- package/dist/types/excalidraw/components/App.wrap.d.ts +31 -0
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -1
- package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
- package/dist/types/excalidraw/components/Minimap/Minimap.d.ts +15 -0
- package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
- package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
- package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
- package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
- package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +16 -0
- package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
- package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +0 -1
- package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +13 -2
- package/dist/types/excalidraw/components/icons.d.ts +1 -0
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -0
- package/dist/types/excalidraw/data/blob.d.ts +34 -16
- package/dist/types/excalidraw/data/index.d.ts +3 -3
- package/dist/types/excalidraw/data/json.d.ts +17 -8
- package/dist/types/excalidraw/fonts/Fonts.d.ts +9 -6
- package/dist/types/excalidraw/history.d.ts +10 -4
- package/dist/types/excalidraw/mermaid.d.ts +7 -0
- package/dist/types/excalidraw/reactUtils.d.ts +1 -1
- package/dist/types/excalidraw/renderer/animation.d.ts +11 -4
- package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
- package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
- package/dist/types/excalidraw/scene/export.d.ts +343 -20
- package/dist/types/excalidraw/scene/types.d.ts +23 -1
- package/dist/types/excalidraw/types.d.ts +83 -14
- package/dist/types/excalidraw/viewport.d.ts +23 -1
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -1
- package/dist/types/utils/src/index.d.ts +3 -1
- package/package.json +2 -2
- package/dist/types/utils/src/export.d.ts +0 -36
|
@@ -1,34 +1,26 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { Scene } from "@excalidraw/element";
|
|
2
|
+
import type { ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextContainer, ExcalidrawTextElement, ExcalidrawTextElementWithContainer, NonDeleted, NonDeletedExcalidrawElement } from "@excalidraw/element/types";
|
|
3
|
+
import type { ActionResult } from "./types";
|
|
4
|
+
import type { AppClassProperties, AppState } from "../types";
|
|
5
|
+
/**
|
|
6
|
+
* Frees the container's text as it rendered: wrapped the same, at a fixed
|
|
7
|
+
* width.
|
|
8
|
+
*/
|
|
9
|
+
export declare const unbindTextFromContainer: (container: ExcalidrawElement, boundTextElement: ExcalidrawTextElementWithContainer, scene: Scene) => void;
|
|
4
10
|
export declare const actionUnbindText: {
|
|
5
11
|
name: "unbindText";
|
|
6
12
|
label: string;
|
|
7
13
|
trackEvent: {
|
|
8
14
|
category: "element";
|
|
9
15
|
};
|
|
10
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app:
|
|
11
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app:
|
|
16
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
17
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
12
18
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
13
|
-
appState: Readonly<AppState>;
|
|
14
|
-
captureUpdate: "IMMEDIATELY";
|
|
15
|
-
};
|
|
16
|
-
} & {
|
|
17
|
-
keyTest?: undefined;
|
|
18
|
-
};
|
|
19
|
-
export declare const actionBindText: {
|
|
20
|
-
name: "bindText";
|
|
21
|
-
label: string;
|
|
22
|
-
trackEvent: {
|
|
23
|
-
category: "element";
|
|
24
|
-
};
|
|
25
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
26
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
27
|
-
elements: ExcalidrawElement[];
|
|
28
19
|
appState: {
|
|
29
|
-
selectedElementIds:
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
selectedElementIds: AppState["selectedElementIds"];
|
|
21
|
+
editingGroupId: AppState["editingGroupId"];
|
|
22
|
+
selectedGroupIds: AppState["selectedGroupIds"];
|
|
23
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
32
24
|
contextMenu: {
|
|
33
25
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
34
26
|
top: number;
|
|
@@ -38,27 +30,35 @@ export declare const actionBindText: {
|
|
|
38
30
|
isLoading: boolean;
|
|
39
31
|
errorMessage: React.ReactNode;
|
|
40
32
|
activeEmbeddable: {
|
|
41
|
-
element:
|
|
33
|
+
element: NonDeletedExcalidrawElement;
|
|
42
34
|
state: "hover" | "active";
|
|
43
35
|
} | null;
|
|
44
|
-
newElement:
|
|
45
|
-
resizingElement:
|
|
46
|
-
multiElement:
|
|
47
|
-
selectionElement:
|
|
36
|
+
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
37
|
+
resizingElement: NonDeletedExcalidrawElement | null;
|
|
38
|
+
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
39
|
+
selectionElement: NonDeletedExcalidrawElement | null;
|
|
48
40
|
isBindingEnabled: boolean;
|
|
49
41
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
50
42
|
bindingPreference: "enabled" | "disabled";
|
|
51
43
|
isMidpointSnappingEnabled: boolean;
|
|
44
|
+
showHints: boolean;
|
|
52
45
|
inputDevice: import("../types").InputDevice;
|
|
53
46
|
suggestedBinding: {
|
|
54
|
-
element:
|
|
47
|
+
element: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
55
48
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
56
49
|
} | null;
|
|
57
|
-
|
|
50
|
+
textToolHover: {
|
|
51
|
+
type: "text";
|
|
52
|
+
elementId: ExcalidrawElement["id"];
|
|
53
|
+
} | {
|
|
54
|
+
type: "container";
|
|
55
|
+
elementId: ExcalidrawElement["id"];
|
|
56
|
+
} | {
|
|
57
|
+
type: "arrow";
|
|
58
58
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
59
59
|
anchor: "start" | "end" | "label";
|
|
60
60
|
} | null;
|
|
61
|
-
frameToHighlight:
|
|
61
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
62
62
|
frameRendering: {
|
|
63
63
|
enabled: boolean;
|
|
64
64
|
name: boolean;
|
|
@@ -66,7 +66,7 @@ export declare const actionBindText: {
|
|
|
66
66
|
clip: boolean;
|
|
67
67
|
};
|
|
68
68
|
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
69
|
-
elementsToHighlight: readonly
|
|
69
|
+
elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
|
|
70
70
|
editingTextElement: ExcalidrawTextElement | null;
|
|
71
71
|
activeTool: {
|
|
72
72
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -150,15 +150,12 @@ export declare const actionBindText: {
|
|
|
150
150
|
duration?: number;
|
|
151
151
|
} | null;
|
|
152
152
|
zenModeEnabled: boolean;
|
|
153
|
+
minimapEnabled: boolean;
|
|
153
154
|
theme: import("@excalidraw/element/types").Theme;
|
|
154
155
|
gridSize: number;
|
|
155
156
|
gridStep: number;
|
|
156
157
|
gridModeEnabled: boolean;
|
|
157
158
|
viewModeEnabled: boolean;
|
|
158
|
-
selectedGroupIds: {
|
|
159
|
-
[groupId: string]: boolean;
|
|
160
|
-
};
|
|
161
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
162
159
|
width: number;
|
|
163
160
|
height: number;
|
|
164
161
|
offsetTop: number;
|
|
@@ -170,7 +167,6 @@ export declare const actionBindText: {
|
|
|
170
167
|
panels: number;
|
|
171
168
|
};
|
|
172
169
|
showHyperlinkPopup: false | "info" | "editor";
|
|
173
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
174
170
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
175
171
|
originSnapOffset: {
|
|
176
172
|
x: number;
|
|
@@ -202,189 +198,35 @@ export declare const actionBindText: {
|
|
|
202
198
|
} & {
|
|
203
199
|
keyTest?: undefined;
|
|
204
200
|
};
|
|
201
|
+
export declare const actionBindText: {
|
|
202
|
+
name: "bindText";
|
|
203
|
+
label: string;
|
|
204
|
+
trackEvent: {
|
|
205
|
+
category: "element";
|
|
206
|
+
};
|
|
207
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
208
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => ActionResult;
|
|
209
|
+
} & {
|
|
210
|
+
keyTest?: undefined;
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* A note and its label share one ink: the text the user styled wins, unless it
|
|
214
|
+
* is transparent (a note's label never is).
|
|
215
|
+
*/
|
|
216
|
+
export declare const getStickyNoteInk: (textElement: ExcalidrawTextElement, container: ExcalidrawElement) => string | null;
|
|
217
|
+
/** binds the text to the (label-less) container, selecting the container */
|
|
218
|
+
export declare const bindTextToContainer: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, textElement: ExcalidrawTextElement, container: NonDeleted<ExcalidrawTextContainer>, app: AppClassProperties) => ActionResult;
|
|
219
|
+
export declare const pushContainerBelowText: (elements: readonly ExcalidrawElement[], container: ExcalidrawElement, textElement: ExcalidrawTextElement) => ExcalidrawElement[];
|
|
205
220
|
export declare const actionWrapTextInContainer: {
|
|
206
221
|
name: "wrapTextInContainer";
|
|
207
222
|
label: string;
|
|
208
223
|
trackEvent: {
|
|
209
224
|
category: "element";
|
|
210
225
|
};
|
|
211
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app:
|
|
212
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app:
|
|
213
|
-
elements: readonly ExcalidrawElement[];
|
|
214
|
-
appState: {
|
|
215
|
-
selectedElementIds: Mutable<Readonly<{
|
|
216
|
-
[id: string]: true;
|
|
217
|
-
}>>;
|
|
218
|
-
contextMenu: {
|
|
219
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
220
|
-
top: number;
|
|
221
|
-
left: number;
|
|
222
|
-
} | null;
|
|
223
|
-
showWelcomeScreen: boolean;
|
|
224
|
-
isLoading: boolean;
|
|
225
|
-
errorMessage: React.ReactNode;
|
|
226
|
-
activeEmbeddable: {
|
|
227
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
228
|
-
state: "hover" | "active";
|
|
229
|
-
} | null;
|
|
230
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
231
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
232
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
233
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
234
|
-
isBindingEnabled: boolean;
|
|
235
|
-
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
236
|
-
bindingPreference: "enabled" | "disabled";
|
|
237
|
-
isMidpointSnappingEnabled: boolean;
|
|
238
|
-
inputDevice: import("../types").InputDevice;
|
|
239
|
-
suggestedBinding: {
|
|
240
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
241
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
242
|
-
} | null;
|
|
243
|
-
hoveredArrowTextAnchor: {
|
|
244
|
-
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
245
|
-
anchor: "start" | "end" | "label";
|
|
246
|
-
} | null;
|
|
247
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
248
|
-
frameRendering: {
|
|
249
|
-
enabled: boolean;
|
|
250
|
-
name: boolean;
|
|
251
|
-
outline: boolean;
|
|
252
|
-
clip: boolean;
|
|
253
|
-
};
|
|
254
|
-
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
255
|
-
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
256
|
-
editingTextElement: ExcalidrawTextElement | null;
|
|
257
|
-
activeTool: {
|
|
258
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
259
|
-
locked: boolean;
|
|
260
|
-
fromSelection: boolean;
|
|
261
|
-
} & import("../types").ActiveTool;
|
|
262
|
-
preferredSelectionTool: {
|
|
263
|
-
type: "selection" | "lasso";
|
|
264
|
-
initialized: boolean;
|
|
265
|
-
};
|
|
266
|
-
penMode: boolean;
|
|
267
|
-
penDetected: boolean;
|
|
268
|
-
exportBackground: boolean;
|
|
269
|
-
exportEmbedScene: boolean;
|
|
270
|
-
exportWithDarkMode: boolean;
|
|
271
|
-
exportScale: number;
|
|
272
|
-
currentItemStrokeColor: string;
|
|
273
|
-
currentItemStickynoteStrokeColor: string;
|
|
274
|
-
currentItemStickynoteBackgroundColor: string;
|
|
275
|
-
currentItemBackgroundColor: string;
|
|
276
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
277
|
-
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
278
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
279
|
-
currentItemRoughness: number;
|
|
280
|
-
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
281
|
-
currentItemOpacity: number;
|
|
282
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
283
|
-
currentItemFontSize: number;
|
|
284
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
285
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
286
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
287
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
288
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
289
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
290
|
-
viewBackgroundColor: string;
|
|
291
|
-
scrollX: number;
|
|
292
|
-
scrollY: number;
|
|
293
|
-
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
294
|
-
cursorButton: "up" | "down";
|
|
295
|
-
scrolledOutside: boolean;
|
|
296
|
-
name: string | null;
|
|
297
|
-
isResizing: boolean;
|
|
298
|
-
isRotating: boolean;
|
|
299
|
-
zoom: import("../types").Zoom;
|
|
300
|
-
openMenu: "canvas" | null;
|
|
301
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
302
|
-
openSidebar: {
|
|
303
|
-
name: import("../types").SidebarName;
|
|
304
|
-
tab?: import("../types").SidebarTabName;
|
|
305
|
-
} | null;
|
|
306
|
-
openDialog: null | {
|
|
307
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
308
|
-
} | {
|
|
309
|
-
name: "ttd";
|
|
310
|
-
tab: "text-to-diagram" | "mermaid";
|
|
311
|
-
} | {
|
|
312
|
-
name: "commandPalette";
|
|
313
|
-
} | {
|
|
314
|
-
name: "settings";
|
|
315
|
-
} | {
|
|
316
|
-
name: "elementLinkSelector";
|
|
317
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
318
|
-
} | {
|
|
319
|
-
name: "charts";
|
|
320
|
-
data: import("../charts").Spreadsheet;
|
|
321
|
-
rawText: string;
|
|
322
|
-
};
|
|
323
|
-
defaultSidebarDockedPreference: boolean;
|
|
324
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
325
|
-
hoveredElementIds: Readonly<{
|
|
326
|
-
[id: string]: true;
|
|
327
|
-
}>;
|
|
328
|
-
previousSelectedElementIds: {
|
|
329
|
-
[id: string]: true;
|
|
330
|
-
};
|
|
331
|
-
selectedElementsAreBeingDragged: boolean;
|
|
332
|
-
shouldCacheIgnoreZoom: boolean;
|
|
333
|
-
toast: {
|
|
334
|
-
message: React.ReactNode;
|
|
335
|
-
closable?: boolean;
|
|
336
|
-
duration?: number;
|
|
337
|
-
} | null;
|
|
338
|
-
zenModeEnabled: boolean;
|
|
339
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
340
|
-
gridSize: number;
|
|
341
|
-
gridStep: number;
|
|
342
|
-
gridModeEnabled: boolean;
|
|
343
|
-
viewModeEnabled: boolean;
|
|
344
|
-
selectedGroupIds: {
|
|
345
|
-
[groupId: string]: boolean;
|
|
346
|
-
};
|
|
347
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
348
|
-
width: number;
|
|
349
|
-
height: number;
|
|
350
|
-
offsetTop: number;
|
|
351
|
-
offsetLeft: number;
|
|
352
|
-
fileHandle: FileSystemFileHandle | null;
|
|
353
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
354
|
-
stats: {
|
|
355
|
-
open: boolean;
|
|
356
|
-
panels: number;
|
|
357
|
-
};
|
|
358
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
359
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
360
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
361
|
-
originSnapOffset: {
|
|
362
|
-
x: number;
|
|
363
|
-
y: number;
|
|
364
|
-
} | null;
|
|
365
|
-
objectsSnapModeEnabled: boolean;
|
|
366
|
-
isCropping: boolean;
|
|
367
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
368
|
-
searchMatches: Readonly<{
|
|
369
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
370
|
-
matches: readonly import("../types").SearchMatch[];
|
|
371
|
-
}> | null;
|
|
372
|
-
activeLockedId: string | null;
|
|
373
|
-
lockedMultiSelections: {
|
|
374
|
-
[groupId: string]: true;
|
|
375
|
-
};
|
|
376
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
377
|
-
colorTopPicks: {
|
|
378
|
-
elementStroke: readonly string[] | null;
|
|
379
|
-
elementBackground: readonly string[] | null;
|
|
380
|
-
bucketFill: readonly string[] | null;
|
|
381
|
-
stickyNoteStroke: readonly string[] | null;
|
|
382
|
-
stickyNoteBackground: readonly string[] | null;
|
|
383
|
-
};
|
|
384
|
-
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
385
|
-
};
|
|
386
|
-
captureUpdate: "IMMEDIATELY";
|
|
387
|
-
};
|
|
226
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
227
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => ActionResult;
|
|
388
228
|
} & {
|
|
389
229
|
keyTest?: undefined;
|
|
390
230
|
};
|
|
231
|
+
/** wraps each (unbound) text in a new container, selecting the containers */
|
|
232
|
+
export declare const wrapTextsInContainers: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, textElements: readonly ExcalidrawTextElement[], app: AppClassProperties) => ActionResult;
|
|
@@ -48,6 +48,11 @@ export declare const actionClearCanvas: {
|
|
|
48
48
|
};
|
|
49
49
|
name: string | null;
|
|
50
50
|
zoom: import("../types").Zoom;
|
|
51
|
+
isBindingEnabled: boolean;
|
|
52
|
+
isMidpointSnappingEnabled: boolean;
|
|
53
|
+
selectedElementIds: Readonly<{
|
|
54
|
+
[id: string]: true;
|
|
55
|
+
}>;
|
|
51
56
|
scrollX: number;
|
|
52
57
|
scrollY: number;
|
|
53
58
|
viewModeEnabled: boolean;
|
|
@@ -69,9 +74,6 @@ export declare const actionClearCanvas: {
|
|
|
69
74
|
rawText: string;
|
|
70
75
|
};
|
|
71
76
|
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
72
|
-
selectedElementIds: Readonly<{
|
|
73
|
-
[id: string]: true;
|
|
74
|
-
}>;
|
|
75
77
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
76
78
|
activeEmbeddable: {
|
|
77
79
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
@@ -84,13 +86,18 @@ export declare const actionClearCanvas: {
|
|
|
84
86
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
85
87
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
86
88
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
87
|
-
isBindingEnabled: boolean;
|
|
88
|
-
isMidpointSnappingEnabled: boolean;
|
|
89
89
|
suggestedBinding: {
|
|
90
90
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
91
91
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
92
92
|
} | null;
|
|
93
|
-
|
|
93
|
+
textToolHover: {
|
|
94
|
+
type: "text";
|
|
95
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
96
|
+
} | {
|
|
97
|
+
type: "container";
|
|
98
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
99
|
+
} | {
|
|
100
|
+
type: "arrow";
|
|
94
101
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
95
102
|
anchor: "start" | "end" | "label";
|
|
96
103
|
} | null;
|
|
@@ -113,7 +120,6 @@ export declare const actionClearCanvas: {
|
|
|
113
120
|
shouldCacheIgnoreZoom: boolean;
|
|
114
121
|
exportScale: number;
|
|
115
122
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
116
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
117
123
|
contextMenu: {
|
|
118
124
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
119
125
|
top: number;
|
|
@@ -125,6 +131,7 @@ export declare const actionClearCanvas: {
|
|
|
125
131
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
126
132
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
127
133
|
bindingPreference: "enabled" | "disabled";
|
|
134
|
+
showHints: boolean;
|
|
128
135
|
inputDevice: import("../types").InputDevice;
|
|
129
136
|
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
130
137
|
preferredSelectionTool: {
|
|
@@ -170,6 +177,7 @@ export declare const actionClearCanvas: {
|
|
|
170
177
|
closable?: boolean;
|
|
171
178
|
duration?: number;
|
|
172
179
|
} | null;
|
|
180
|
+
minimapEnabled: boolean;
|
|
173
181
|
fileHandle: FileSystemFileHandle | null;
|
|
174
182
|
showHyperlinkPopup: false | "info" | "editor";
|
|
175
183
|
originSnapOffset: {
|
|
@@ -180,6 +188,7 @@ export declare const actionClearCanvas: {
|
|
|
180
188
|
lockedMultiSelections: {
|
|
181
189
|
[groupId: string]: true;
|
|
182
190
|
};
|
|
191
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
183
192
|
};
|
|
184
193
|
captureUpdate: "IMMEDIATELY";
|
|
185
194
|
};
|
|
@@ -221,12 +230,20 @@ export declare const actionZoomIn: {
|
|
|
221
230
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
222
231
|
bindingPreference: "enabled" | "disabled";
|
|
223
232
|
isMidpointSnappingEnabled: boolean;
|
|
233
|
+
showHints: boolean;
|
|
224
234
|
inputDevice: import("../types").InputDevice;
|
|
225
235
|
suggestedBinding: {
|
|
226
236
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
227
237
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
228
238
|
} | null;
|
|
229
|
-
|
|
239
|
+
textToolHover: {
|
|
240
|
+
type: "text";
|
|
241
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
242
|
+
} | {
|
|
243
|
+
type: "container";
|
|
244
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
245
|
+
} | {
|
|
246
|
+
type: "arrow";
|
|
230
247
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
231
248
|
anchor: "start" | "end" | "label";
|
|
232
249
|
} | null;
|
|
@@ -322,6 +339,7 @@ export declare const actionZoomIn: {
|
|
|
322
339
|
duration?: number;
|
|
323
340
|
} | null;
|
|
324
341
|
zenModeEnabled: boolean;
|
|
342
|
+
minimapEnabled: boolean;
|
|
325
343
|
theme: import("@excalidraw/element/types").Theme;
|
|
326
344
|
gridSize: number;
|
|
327
345
|
gridStep: number;
|
|
@@ -371,7 +389,6 @@ export declare const actionZoomIn: {
|
|
|
371
389
|
};
|
|
372
390
|
captureUpdate: "EVENTUALLY";
|
|
373
391
|
};
|
|
374
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
375
392
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
376
393
|
} & {
|
|
377
394
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -411,12 +428,20 @@ export declare const actionZoomOut: {
|
|
|
411
428
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
412
429
|
bindingPreference: "enabled" | "disabled";
|
|
413
430
|
isMidpointSnappingEnabled: boolean;
|
|
431
|
+
showHints: boolean;
|
|
414
432
|
inputDevice: import("../types").InputDevice;
|
|
415
433
|
suggestedBinding: {
|
|
416
434
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
417
435
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
418
436
|
} | null;
|
|
419
|
-
|
|
437
|
+
textToolHover: {
|
|
438
|
+
type: "text";
|
|
439
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
440
|
+
} | {
|
|
441
|
+
type: "container";
|
|
442
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
443
|
+
} | {
|
|
444
|
+
type: "arrow";
|
|
420
445
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
421
446
|
anchor: "start" | "end" | "label";
|
|
422
447
|
} | null;
|
|
@@ -512,6 +537,7 @@ export declare const actionZoomOut: {
|
|
|
512
537
|
duration?: number;
|
|
513
538
|
} | null;
|
|
514
539
|
zenModeEnabled: boolean;
|
|
540
|
+
minimapEnabled: boolean;
|
|
515
541
|
theme: import("@excalidraw/element/types").Theme;
|
|
516
542
|
gridSize: number;
|
|
517
543
|
gridStep: number;
|
|
@@ -561,7 +587,6 @@ export declare const actionZoomOut: {
|
|
|
561
587
|
};
|
|
562
588
|
captureUpdate: "EVENTUALLY";
|
|
563
589
|
};
|
|
564
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
565
590
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
566
591
|
} & {
|
|
567
592
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -601,12 +626,20 @@ export declare const actionResetZoom: {
|
|
|
601
626
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
602
627
|
bindingPreference: "enabled" | "disabled";
|
|
603
628
|
isMidpointSnappingEnabled: boolean;
|
|
629
|
+
showHints: boolean;
|
|
604
630
|
inputDevice: import("../types").InputDevice;
|
|
605
631
|
suggestedBinding: {
|
|
606
632
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
607
633
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
608
634
|
} | null;
|
|
609
|
-
|
|
635
|
+
textToolHover: {
|
|
636
|
+
type: "text";
|
|
637
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
638
|
+
} | {
|
|
639
|
+
type: "container";
|
|
640
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
641
|
+
} | {
|
|
642
|
+
type: "arrow";
|
|
610
643
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
611
644
|
anchor: "start" | "end" | "label";
|
|
612
645
|
} | null;
|
|
@@ -702,6 +735,7 @@ export declare const actionResetZoom: {
|
|
|
702
735
|
duration?: number;
|
|
703
736
|
} | null;
|
|
704
737
|
zenModeEnabled: boolean;
|
|
738
|
+
minimapEnabled: boolean;
|
|
705
739
|
theme: import("@excalidraw/element/types").Theme;
|
|
706
740
|
gridSize: number;
|
|
707
741
|
gridStep: number;
|
|
@@ -751,7 +785,6 @@ export declare const actionResetZoom: {
|
|
|
751
785
|
};
|
|
752
786
|
captureUpdate: "EVENTUALLY";
|
|
753
787
|
};
|
|
754
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
755
788
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
756
789
|
} & {
|
|
757
790
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -791,12 +824,20 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
791
824
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
792
825
|
bindingPreference: "enabled" | "disabled";
|
|
793
826
|
isMidpointSnappingEnabled: boolean;
|
|
827
|
+
showHints: boolean;
|
|
794
828
|
inputDevice: import("../types").InputDevice;
|
|
795
829
|
suggestedBinding: {
|
|
796
830
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
797
831
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
798
832
|
} | null;
|
|
799
|
-
|
|
833
|
+
textToolHover: {
|
|
834
|
+
type: "text";
|
|
835
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
836
|
+
} | {
|
|
837
|
+
type: "container";
|
|
838
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
839
|
+
} | {
|
|
840
|
+
type: "arrow";
|
|
800
841
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
801
842
|
anchor: "start" | "end" | "label";
|
|
802
843
|
} | null;
|
|
@@ -892,6 +933,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
892
933
|
duration?: number;
|
|
893
934
|
} | null;
|
|
894
935
|
zenModeEnabled: boolean;
|
|
936
|
+
minimapEnabled: boolean;
|
|
895
937
|
theme: import("@excalidraw/element/types").Theme;
|
|
896
938
|
gridSize: number;
|
|
897
939
|
gridStep: number;
|
|
@@ -980,12 +1022,20 @@ export declare const actionZoomToFitSelection: {
|
|
|
980
1022
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
981
1023
|
bindingPreference: "enabled" | "disabled";
|
|
982
1024
|
isMidpointSnappingEnabled: boolean;
|
|
1025
|
+
showHints: boolean;
|
|
983
1026
|
inputDevice: import("../types").InputDevice;
|
|
984
1027
|
suggestedBinding: {
|
|
985
1028
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
986
1029
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
987
1030
|
} | null;
|
|
988
|
-
|
|
1031
|
+
textToolHover: {
|
|
1032
|
+
type: "text";
|
|
1033
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1034
|
+
} | {
|
|
1035
|
+
type: "container";
|
|
1036
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1037
|
+
} | {
|
|
1038
|
+
type: "arrow";
|
|
989
1039
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
990
1040
|
anchor: "start" | "end" | "label";
|
|
991
1041
|
} | null;
|
|
@@ -1081,6 +1131,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1081
1131
|
duration?: number;
|
|
1082
1132
|
} | null;
|
|
1083
1133
|
zenModeEnabled: boolean;
|
|
1134
|
+
minimapEnabled: boolean;
|
|
1084
1135
|
theme: import("@excalidraw/element/types").Theme;
|
|
1085
1136
|
gridSize: number;
|
|
1086
1137
|
gridStep: number;
|
|
@@ -1169,12 +1220,20 @@ export declare const actionZoomToFit: {
|
|
|
1169
1220
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1170
1221
|
bindingPreference: "enabled" | "disabled";
|
|
1171
1222
|
isMidpointSnappingEnabled: boolean;
|
|
1223
|
+
showHints: boolean;
|
|
1172
1224
|
inputDevice: import("../types").InputDevice;
|
|
1173
1225
|
suggestedBinding: {
|
|
1174
1226
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1175
1227
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1176
1228
|
} | null;
|
|
1177
|
-
|
|
1229
|
+
textToolHover: {
|
|
1230
|
+
type: "text";
|
|
1231
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1232
|
+
} | {
|
|
1233
|
+
type: "container";
|
|
1234
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1235
|
+
} | {
|
|
1236
|
+
type: "arrow";
|
|
1178
1237
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
1179
1238
|
anchor: "start" | "end" | "label";
|
|
1180
1239
|
} | null;
|
|
@@ -1270,6 +1329,7 @@ export declare const actionZoomToFit: {
|
|
|
1270
1329
|
duration?: number;
|
|
1271
1330
|
} | null;
|
|
1272
1331
|
zenModeEnabled: boolean;
|
|
1332
|
+
minimapEnabled: boolean;
|
|
1273
1333
|
theme: import("@excalidraw/element/types").Theme;
|
|
1274
1334
|
gridSize: number;
|
|
1275
1335
|
gridStep: number;
|