@myoc/math 0.19.521 → 0.19.523
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/dev/index.js +261 -92
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +1 -1
- package/dist/types/common/src/colors.d.ts +14 -0
- package/dist/types/common/src/constants.d.ts +3 -0
- package/dist/types/common/src/keys.d.ts +2 -0
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/utils.d.ts +1 -1
- package/dist/types/element/src/Scene.d.ts +1 -1
- package/dist/types/element/src/align.d.ts +2 -2
- package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
- package/dist/types/element/src/arrows/focus.d.ts +5 -2
- package/dist/types/element/src/binding.d.ts +17 -8
- package/dist/types/element/src/bounds.d.ts +5 -9
- package/dist/types/element/src/bucketFill.d.ts +110 -0
- package/dist/types/element/src/collision.d.ts +1 -1
- package/dist/types/element/src/comparisons.d.ts +4 -4
- package/dist/types/element/src/convertToShape.d.ts +23 -0
- package/dist/types/element/src/distribute.d.ts +2 -2
- package/dist/types/element/src/dragElements.d.ts +27 -0
- package/dist/types/element/src/duplicate.d.ts +3 -3
- package/dist/types/element/src/embeddable.d.ts +2 -2
- package/dist/types/element/src/flowchart.d.ts +7 -7
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +4 -4
- package/dist/types/element/src/groups.d.ts +9 -9
- package/dist/types/element/src/index.d.ts +4 -1
- package/dist/types/element/src/linearElementEditor.d.ts +17 -10
- package/dist/types/element/src/newElement.d.ts +13 -0
- package/dist/types/element/src/renderElement.d.ts +0 -3
- package/dist/types/element/src/resizeElements.d.ts +2 -2
- package/dist/types/element/src/selection.d.ts +5 -5
- package/dist/types/element/src/shape.d.ts +12 -0
- package/dist/types/element/src/sortElements.d.ts +10 -0
- package/dist/types/element/src/textElement.d.ts +12 -9
- package/dist/types/element/src/transform.d.ts +2 -2
- package/dist/types/element/src/typeChecks.d.ts +25 -25
- package/dist/types/element/src/types.d.ts +2 -1
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +24 -8
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +134 -967
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +24 -8
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +12 -4
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +38 -13
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +9 -4
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +12 -4
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +25 -9
- package/dist/types/excalidraw/actions/actionExport.d.ts +26 -10
- package/dist/types/excalidraw/actions/actionFrame.d.ts +47 -205
- package/dist/types/excalidraw/actions/actionGroup.d.ts +39 -23
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +15 -6
- package/dist/types/excalidraw/actions/actionLink.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionMenu.d.ts +12 -4
- package/dist/types/excalidraw/actions/actionProperties.d.ts +43 -24
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +17 -9
- package/dist/types/excalidraw/actions/actionStyles.d.ts +12 -4
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +14 -6
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -9
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -9
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +14 -6
- package/dist/types/excalidraw/actions/index.d.ts +2 -3
- package/dist/types/excalidraw/actions/manager.d.ts +1 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +8 -4
- package/dist/types/excalidraw/appState.d.ts +10 -5
- package/dist/types/excalidraw/components/Actions.d.ts +18 -14
- package/dist/types/excalidraw/components/App.arrowText.d.ts +72 -0
- package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +30 -0
- package/dist/types/excalidraw/components/App.d.ts +389 -61
- package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
- package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +73 -0
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +31 -0
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +1 -1
- package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
- package/dist/types/excalidraw/components/{ToolButton.d.ts → IconButton.d.ts} +16 -19
- package/dist/types/excalidraw/components/Island.d.ts +7 -0
- package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
- package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
- package/dist/types/excalidraw/components/LockButton.d.ts +9 -0
- package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
- package/dist/types/excalidraw/components/{MobileToolBar.d.ts → MobileToolbar.d.ts} +3 -4
- package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
- package/dist/types/excalidraw/components/Popover.d.ts +1 -3
- package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
- package/dist/types/excalidraw/components/Toolbar.d.ts +13 -0
- package/dist/types/excalidraw/components/Tools.d.ts +151 -0
- package/dist/types/excalidraw/components/UserList.d.ts +3 -2
- package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -0
- package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
- package/dist/types/excalidraw/components/icons.d.ts +4 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +0 -2
- package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
- package/dist/types/excalidraw/context/tunnels.d.ts +0 -1
- package/dist/types/excalidraw/data/blob.d.ts +14 -6
- package/dist/types/excalidraw/data/index.d.ts +4 -4
- package/dist/types/excalidraw/data/json.d.ts +20 -12
- package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
- package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +10 -3
- package/dist/types/excalidraw/scene/Renderer.d.ts +11 -11
- package/dist/types/excalidraw/scene/export.d.ts +3 -3
- package/dist/types/excalidraw/scene/index.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +4 -3
- package/dist/types/excalidraw/snapping.d.ts +7 -7
- package/dist/types/excalidraw/types.d.ts +432 -28
- package/dist/types/excalidraw/viewport.d.ts +283 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -3
- package/dist/types/laser-pointer/src/state.d.ts +1 -0
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/pca.d.ts +79 -0
- package/dist/types/math/src/polygon.d.ts +25 -1
- package/dist/types/utils/src/export.d.ts +3 -3
- package/package.json +2 -2
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -180
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +0 -183
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +0 -27
- package/dist/types/excalidraw/components/ElementCanvasButtons.d.ts +0 -7
- package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
- package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
- package/dist/types/excalidraw/components/MagicButton.d.ts +0 -10
- package/dist/types/excalidraw/cursor.d.ts +0 -5
- package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
- package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
- package/dist/types/excalidraw/scroll.d.ts +0 -46
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
|
-
import type { AppState, Offsets } from "../types";
|
|
1
|
+
import type { AppState } from "../types";
|
|
4
2
|
export declare const actionChangeViewBackgroundColor: import("./types").Action<Partial<AppState>> & {
|
|
5
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
3
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
6
4
|
};
|
|
7
5
|
export declare const actionZoomIn: {
|
|
8
6
|
name: "zoomIn";
|
|
9
7
|
label: string;
|
|
10
8
|
viewMode: true;
|
|
9
|
+
navigation: true;
|
|
11
10
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
trackEvent: {
|
|
13
12
|
category: "canvas";
|
|
14
13
|
};
|
|
14
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
15
15
|
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
16
16
|
appState: {
|
|
17
|
-
|
|
17
|
+
zoom: import("../types").Zoom;
|
|
18
18
|
scrollX: number;
|
|
19
19
|
scrollY: number;
|
|
20
|
-
zoom: {
|
|
21
|
-
value: import("../types").NormalizedZoomValue;
|
|
22
|
-
};
|
|
23
20
|
contextMenu: {
|
|
24
21
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
25
22
|
top: number;
|
|
@@ -56,6 +53,10 @@ export declare const actionZoomIn: {
|
|
|
56
53
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
57
54
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
58
55
|
} | null;
|
|
56
|
+
hoveredArrowTextAnchor: {
|
|
57
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
58
|
+
anchor: "start" | "end" | "label";
|
|
59
|
+
} | null;
|
|
59
60
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
60
61
|
frameRendering: {
|
|
61
62
|
enabled: boolean;
|
|
@@ -63,8 +64,8 @@ export declare const actionZoomIn: {
|
|
|
63
64
|
outline: boolean;
|
|
64
65
|
clip: boolean;
|
|
65
66
|
};
|
|
66
|
-
editingFrame:
|
|
67
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
67
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
68
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
68
69
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
69
70
|
activeTool: {
|
|
70
71
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -83,9 +84,9 @@ export declare const actionZoomIn: {
|
|
|
83
84
|
exportScale: number;
|
|
84
85
|
currentItemStrokeColor: string;
|
|
85
86
|
currentItemBackgroundColor: string;
|
|
86
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
87
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
87
88
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
88
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
89
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
89
90
|
currentItemRoughness: number;
|
|
90
91
|
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
91
92
|
currentItemOpacity: number;
|
|
@@ -98,6 +99,7 @@ export declare const actionZoomIn: {
|
|
|
98
99
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
99
100
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
100
101
|
viewBackgroundColor: string;
|
|
102
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
101
103
|
cursorButton: "up" | "down";
|
|
102
104
|
scrolledOutside: boolean;
|
|
103
105
|
name: string | null;
|
|
@@ -115,7 +117,7 @@ export declare const actionZoomIn: {
|
|
|
115
117
|
name: "settings";
|
|
116
118
|
} | {
|
|
117
119
|
name: "elementLinkSelector";
|
|
118
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
120
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
119
121
|
} | {
|
|
120
122
|
name: "charts";
|
|
121
123
|
data: import("../charts").Spreadsheet;
|
|
@@ -168,11 +170,10 @@ export declare const actionZoomIn: {
|
|
|
168
170
|
y: number;
|
|
169
171
|
} | null;
|
|
170
172
|
objectsSnapModeEnabled: boolean;
|
|
171
|
-
followedBy: Set<import("../types").SocketId>;
|
|
172
173
|
isCropping: boolean;
|
|
173
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
174
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
174
175
|
searchMatches: Readonly<{
|
|
175
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
176
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
176
177
|
matches: readonly import("../types").SearchMatch[];
|
|
177
178
|
}> | null;
|
|
178
179
|
activeLockedId: string | null;
|
|
@@ -180,10 +181,15 @@ export declare const actionZoomIn: {
|
|
|
180
181
|
[groupId: string]: true;
|
|
181
182
|
};
|
|
182
183
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
184
|
+
colorTopPicks: {
|
|
185
|
+
elementStroke: readonly string[] | null;
|
|
186
|
+
elementBackground: readonly string[] | null;
|
|
187
|
+
bucketFill: readonly string[] | null;
|
|
188
|
+
};
|
|
183
189
|
};
|
|
184
190
|
captureUpdate: "EVENTUALLY";
|
|
185
191
|
};
|
|
186
|
-
PanelComponent: ({ updateData
|
|
192
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
187
193
|
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
188
194
|
} & {
|
|
189
195
|
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
@@ -193,17 +199,16 @@ export declare const actionZoomOut: {
|
|
|
193
199
|
label: string;
|
|
194
200
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
195
201
|
viewMode: true;
|
|
202
|
+
navigation: true;
|
|
196
203
|
trackEvent: {
|
|
197
204
|
category: "canvas";
|
|
198
205
|
};
|
|
206
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
199
207
|
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
200
208
|
appState: {
|
|
201
|
-
|
|
209
|
+
zoom: import("../types").Zoom;
|
|
202
210
|
scrollX: number;
|
|
203
211
|
scrollY: number;
|
|
204
|
-
zoom: {
|
|
205
|
-
value: import("../types").NormalizedZoomValue;
|
|
206
|
-
};
|
|
207
212
|
contextMenu: {
|
|
208
213
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
209
214
|
top: number;
|
|
@@ -240,6 +245,10 @@ export declare const actionZoomOut: {
|
|
|
240
245
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
241
246
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
242
247
|
} | null;
|
|
248
|
+
hoveredArrowTextAnchor: {
|
|
249
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
250
|
+
anchor: "start" | "end" | "label";
|
|
251
|
+
} | null;
|
|
243
252
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
244
253
|
frameRendering: {
|
|
245
254
|
enabled: boolean;
|
|
@@ -247,8 +256,8 @@ export declare const actionZoomOut: {
|
|
|
247
256
|
outline: boolean;
|
|
248
257
|
clip: boolean;
|
|
249
258
|
};
|
|
250
|
-
editingFrame:
|
|
251
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
259
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
260
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
252
261
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
253
262
|
activeTool: {
|
|
254
263
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -267,9 +276,9 @@ export declare const actionZoomOut: {
|
|
|
267
276
|
exportScale: number;
|
|
268
277
|
currentItemStrokeColor: string;
|
|
269
278
|
currentItemBackgroundColor: string;
|
|
270
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
279
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
271
280
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
272
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
281
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
273
282
|
currentItemRoughness: number;
|
|
274
283
|
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
275
284
|
currentItemOpacity: number;
|
|
@@ -282,6 +291,7 @@ export declare const actionZoomOut: {
|
|
|
282
291
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
283
292
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
284
293
|
viewBackgroundColor: string;
|
|
294
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
285
295
|
cursorButton: "up" | "down";
|
|
286
296
|
scrolledOutside: boolean;
|
|
287
297
|
name: string | null;
|
|
@@ -299,7 +309,7 @@ export declare const actionZoomOut: {
|
|
|
299
309
|
name: "settings";
|
|
300
310
|
} | {
|
|
301
311
|
name: "elementLinkSelector";
|
|
302
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
312
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
303
313
|
} | {
|
|
304
314
|
name: "charts";
|
|
305
315
|
data: import("../charts").Spreadsheet;
|
|
@@ -352,11 +362,10 @@ export declare const actionZoomOut: {
|
|
|
352
362
|
y: number;
|
|
353
363
|
} | null;
|
|
354
364
|
objectsSnapModeEnabled: boolean;
|
|
355
|
-
followedBy: Set<import("../types").SocketId>;
|
|
356
365
|
isCropping: boolean;
|
|
357
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
366
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
358
367
|
searchMatches: Readonly<{
|
|
359
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
368
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
360
369
|
matches: readonly import("../types").SearchMatch[];
|
|
361
370
|
}> | null;
|
|
362
371
|
activeLockedId: string | null;
|
|
@@ -364,10 +373,15 @@ export declare const actionZoomOut: {
|
|
|
364
373
|
[groupId: string]: true;
|
|
365
374
|
};
|
|
366
375
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
376
|
+
colorTopPicks: {
|
|
377
|
+
elementStroke: readonly string[] | null;
|
|
378
|
+
elementBackground: readonly string[] | null;
|
|
379
|
+
bucketFill: readonly string[] | null;
|
|
380
|
+
};
|
|
367
381
|
};
|
|
368
382
|
captureUpdate: "EVENTUALLY";
|
|
369
383
|
};
|
|
370
|
-
PanelComponent: ({ updateData
|
|
384
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
371
385
|
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
372
386
|
} & {
|
|
373
387
|
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
@@ -377,17 +391,16 @@ export declare const actionResetZoom: {
|
|
|
377
391
|
label: string;
|
|
378
392
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
379
393
|
viewMode: true;
|
|
394
|
+
navigation: true;
|
|
380
395
|
trackEvent: {
|
|
381
396
|
category: "canvas";
|
|
382
397
|
};
|
|
398
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
383
399
|
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
384
400
|
appState: {
|
|
385
|
-
|
|
401
|
+
zoom: import("../types").Zoom;
|
|
386
402
|
scrollX: number;
|
|
387
403
|
scrollY: number;
|
|
388
|
-
zoom: {
|
|
389
|
-
value: import("../types").NormalizedZoomValue;
|
|
390
|
-
};
|
|
391
404
|
contextMenu: {
|
|
392
405
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
393
406
|
top: number;
|
|
@@ -424,6 +437,10 @@ export declare const actionResetZoom: {
|
|
|
424
437
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
425
438
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
426
439
|
} | null;
|
|
440
|
+
hoveredArrowTextAnchor: {
|
|
441
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
442
|
+
anchor: "start" | "end" | "label";
|
|
443
|
+
} | null;
|
|
427
444
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
428
445
|
frameRendering: {
|
|
429
446
|
enabled: boolean;
|
|
@@ -431,8 +448,8 @@ export declare const actionResetZoom: {
|
|
|
431
448
|
outline: boolean;
|
|
432
449
|
clip: boolean;
|
|
433
450
|
};
|
|
434
|
-
editingFrame:
|
|
435
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
451
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
452
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
436
453
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
437
454
|
activeTool: {
|
|
438
455
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -451,9 +468,9 @@ export declare const actionResetZoom: {
|
|
|
451
468
|
exportScale: number;
|
|
452
469
|
currentItemStrokeColor: string;
|
|
453
470
|
currentItemBackgroundColor: string;
|
|
454
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
471
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
455
472
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
456
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
473
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
457
474
|
currentItemRoughness: number;
|
|
458
475
|
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
459
476
|
currentItemOpacity: number;
|
|
@@ -466,6 +483,7 @@ export declare const actionResetZoom: {
|
|
|
466
483
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
467
484
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
468
485
|
viewBackgroundColor: string;
|
|
486
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
469
487
|
cursorButton: "up" | "down";
|
|
470
488
|
scrolledOutside: boolean;
|
|
471
489
|
name: string | null;
|
|
@@ -483,7 +501,7 @@ export declare const actionResetZoom: {
|
|
|
483
501
|
name: "settings";
|
|
484
502
|
} | {
|
|
485
503
|
name: "elementLinkSelector";
|
|
486
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
504
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
487
505
|
} | {
|
|
488
506
|
name: "charts";
|
|
489
507
|
data: import("../charts").Spreadsheet;
|
|
@@ -536,11 +554,10 @@ export declare const actionResetZoom: {
|
|
|
536
554
|
y: number;
|
|
537
555
|
} | null;
|
|
538
556
|
objectsSnapModeEnabled: boolean;
|
|
539
|
-
followedBy: Set<import("../types").SocketId>;
|
|
540
557
|
isCropping: boolean;
|
|
541
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
558
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
542
559
|
searchMatches: Readonly<{
|
|
543
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
560
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
544
561
|
matches: readonly import("../types").SearchMatch[];
|
|
545
562
|
}> | null;
|
|
546
563
|
activeLockedId: string | null;
|
|
@@ -548,390 +565,34 @@ export declare const actionResetZoom: {
|
|
|
548
565
|
[groupId: string]: true;
|
|
549
566
|
};
|
|
550
567
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
568
|
+
colorTopPicks: {
|
|
569
|
+
elementStroke: readonly string[] | null;
|
|
570
|
+
elementBackground: readonly string[] | null;
|
|
571
|
+
bucketFill: readonly string[] | null;
|
|
572
|
+
};
|
|
551
573
|
};
|
|
552
574
|
captureUpdate: "EVENTUALLY";
|
|
553
575
|
};
|
|
554
|
-
PanelComponent: ({ updateData
|
|
576
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
555
577
|
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
556
578
|
} & {
|
|
557
579
|
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
558
580
|
};
|
|
559
|
-
export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
|
|
560
|
-
bounds: SceneBounds;
|
|
561
|
-
canvasOffsets?: Offsets;
|
|
562
|
-
appState: Readonly<AppState>;
|
|
563
|
-
/** whether to fit content to viewport (beyond >100%) */
|
|
564
|
-
fitToViewport: boolean;
|
|
565
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
566
|
-
viewportZoomFactor?: number;
|
|
567
|
-
minZoom?: number;
|
|
568
|
-
maxZoom?: number;
|
|
569
|
-
}) => {
|
|
570
|
-
appState: {
|
|
571
|
-
scrollX: number;
|
|
572
|
-
scrollY: number;
|
|
573
|
-
zoom: {
|
|
574
|
-
value: import("../types").NormalizedZoomValue;
|
|
575
|
-
};
|
|
576
|
-
contextMenu: {
|
|
577
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
578
|
-
top: number;
|
|
579
|
-
left: number;
|
|
580
|
-
} | null;
|
|
581
|
-
showWelcomeScreen: boolean;
|
|
582
|
-
isLoading: boolean;
|
|
583
|
-
myocSimplifiedMode: boolean;
|
|
584
|
-
dontResizeLimitMBs: number;
|
|
585
|
-
hideMainMenus: boolean;
|
|
586
|
-
wheelZoomsOnDefault?: boolean;
|
|
587
|
-
arrangeConfiguration: {
|
|
588
|
-
algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
|
|
589
|
-
gap: number;
|
|
590
|
-
};
|
|
591
|
-
normaliseConfiguration: {
|
|
592
|
-
mode: import("../types").NormaliseMode;
|
|
593
|
-
metric: import("../types").NormaliseMetric;
|
|
594
|
-
};
|
|
595
|
-
errorMessage: React.ReactNode;
|
|
596
|
-
activeEmbeddable: {
|
|
597
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
598
|
-
state: "hover" | "active";
|
|
599
|
-
} | null;
|
|
600
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
601
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
602
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
603
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
604
|
-
isBindingEnabled: boolean;
|
|
605
|
-
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
606
|
-
bindingPreference: "enabled" | "disabled";
|
|
607
|
-
isMidpointSnappingEnabled: boolean;
|
|
608
|
-
suggestedBinding: {
|
|
609
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
610
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
611
|
-
} | null;
|
|
612
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
613
|
-
frameRendering: {
|
|
614
|
-
enabled: boolean;
|
|
615
|
-
name: boolean;
|
|
616
|
-
outline: boolean;
|
|
617
|
-
clip: boolean;
|
|
618
|
-
};
|
|
619
|
-
editingFrame: string | null;
|
|
620
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
621
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
622
|
-
activeTool: {
|
|
623
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
624
|
-
locked: boolean;
|
|
625
|
-
fromSelection: boolean;
|
|
626
|
-
} & import("../types").ActiveTool;
|
|
627
|
-
preferredSelectionTool: {
|
|
628
|
-
type: "selection" | "lasso";
|
|
629
|
-
initialized: boolean;
|
|
630
|
-
};
|
|
631
|
-
penMode: boolean;
|
|
632
|
-
penDetected: boolean;
|
|
633
|
-
exportBackground: boolean;
|
|
634
|
-
exportEmbedScene: boolean;
|
|
635
|
-
exportWithDarkMode: boolean;
|
|
636
|
-
exportScale: number;
|
|
637
|
-
currentItemStrokeColor: string;
|
|
638
|
-
currentItemBackgroundColor: string;
|
|
639
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
640
|
-
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
641
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
642
|
-
currentItemRoughness: number;
|
|
643
|
-
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
644
|
-
currentItemOpacity: number;
|
|
645
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
646
|
-
currentItemFontSize: number;
|
|
647
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
648
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
649
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
650
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
651
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
652
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
653
|
-
viewBackgroundColor: string;
|
|
654
|
-
cursorButton: "up" | "down";
|
|
655
|
-
scrolledOutside: boolean;
|
|
656
|
-
name: string | null;
|
|
657
|
-
isResizing: boolean;
|
|
658
|
-
isRotating: boolean;
|
|
659
|
-
openMenu: "canvas" | null;
|
|
660
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
661
|
-
openSidebar: {
|
|
662
|
-
name: import("../types").SidebarName;
|
|
663
|
-
tab?: import("../types").SidebarTabName;
|
|
664
|
-
} | null;
|
|
665
|
-
openDialog: null | {
|
|
666
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
667
|
-
} | {
|
|
668
|
-
name: "settings";
|
|
669
|
-
} | {
|
|
670
|
-
name: "elementLinkSelector";
|
|
671
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
672
|
-
} | {
|
|
673
|
-
name: "charts";
|
|
674
|
-
data: import("../charts").Spreadsheet;
|
|
675
|
-
rawText: string;
|
|
676
|
-
};
|
|
677
|
-
defaultSidebarDockedPreference: boolean;
|
|
678
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
679
|
-
selectedElementIds: Readonly<{
|
|
680
|
-
[id: string]: true;
|
|
681
|
-
}>;
|
|
682
|
-
hoveredElementIds: Readonly<{
|
|
683
|
-
[id: string]: true;
|
|
684
|
-
}>;
|
|
685
|
-
previousSelectedElementIds: {
|
|
686
|
-
[id: string]: true;
|
|
687
|
-
};
|
|
688
|
-
selectedElementsAreBeingDragged: boolean;
|
|
689
|
-
shouldCacheIgnoreZoom: boolean;
|
|
690
|
-
toast: {
|
|
691
|
-
message: React.ReactNode;
|
|
692
|
-
closable?: boolean;
|
|
693
|
-
duration?: number;
|
|
694
|
-
} | null;
|
|
695
|
-
zenModeEnabled: boolean;
|
|
696
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
697
|
-
gridSize: number;
|
|
698
|
-
gridStep: number;
|
|
699
|
-
gridModeEnabled: boolean;
|
|
700
|
-
viewModeEnabled: boolean;
|
|
701
|
-
viewModeOnly: boolean;
|
|
702
|
-
selectedGroupIds: {
|
|
703
|
-
[groupId: string]: boolean;
|
|
704
|
-
};
|
|
705
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
706
|
-
width: number;
|
|
707
|
-
height: number;
|
|
708
|
-
offsetTop: number;
|
|
709
|
-
offsetLeft: number;
|
|
710
|
-
fileHandle: FileSystemFileHandle | null;
|
|
711
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
712
|
-
stats: {
|
|
713
|
-
open: boolean;
|
|
714
|
-
panels: number;
|
|
715
|
-
};
|
|
716
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
717
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
718
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
719
|
-
originSnapOffset: {
|
|
720
|
-
x: number;
|
|
721
|
-
y: number;
|
|
722
|
-
} | null;
|
|
723
|
-
objectsSnapModeEnabled: boolean;
|
|
724
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
725
|
-
followedBy: Set<import("../types").SocketId>;
|
|
726
|
-
isCropping: boolean;
|
|
727
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
728
|
-
searchMatches: Readonly<{
|
|
729
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
730
|
-
matches: readonly import("../types").SearchMatch[];
|
|
731
|
-
}> | null;
|
|
732
|
-
activeLockedId: string | null;
|
|
733
|
-
lockedMultiSelections: {
|
|
734
|
-
[groupId: string]: true;
|
|
735
|
-
};
|
|
736
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
737
|
-
};
|
|
738
|
-
captureUpdate: "EVENTUALLY";
|
|
739
|
-
};
|
|
740
|
-
export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
|
|
741
|
-
canvasOffsets?: Offsets;
|
|
742
|
-
targetElements: readonly ExcalidrawElement[];
|
|
743
|
-
appState: Readonly<AppState>;
|
|
744
|
-
/** whether to fit content to viewport (beyond >100%) */
|
|
745
|
-
fitToViewport: boolean;
|
|
746
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
747
|
-
viewportZoomFactor?: number;
|
|
748
|
-
minZoom?: number;
|
|
749
|
-
maxZoom?: number;
|
|
750
|
-
}) => {
|
|
751
|
-
appState: {
|
|
752
|
-
scrollX: number;
|
|
753
|
-
scrollY: number;
|
|
754
|
-
zoom: {
|
|
755
|
-
value: import("../types").NormalizedZoomValue;
|
|
756
|
-
};
|
|
757
|
-
contextMenu: {
|
|
758
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
759
|
-
top: number;
|
|
760
|
-
left: number;
|
|
761
|
-
} | null;
|
|
762
|
-
showWelcomeScreen: boolean;
|
|
763
|
-
isLoading: boolean;
|
|
764
|
-
myocSimplifiedMode: boolean;
|
|
765
|
-
dontResizeLimitMBs: number;
|
|
766
|
-
hideMainMenus: boolean;
|
|
767
|
-
wheelZoomsOnDefault?: boolean;
|
|
768
|
-
arrangeConfiguration: {
|
|
769
|
-
algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
|
|
770
|
-
gap: number;
|
|
771
|
-
};
|
|
772
|
-
normaliseConfiguration: {
|
|
773
|
-
mode: import("../types").NormaliseMode;
|
|
774
|
-
metric: import("../types").NormaliseMetric;
|
|
775
|
-
};
|
|
776
|
-
errorMessage: React.ReactNode;
|
|
777
|
-
activeEmbeddable: {
|
|
778
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
779
|
-
state: "hover" | "active";
|
|
780
|
-
} | null;
|
|
781
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
782
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
783
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
784
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
785
|
-
isBindingEnabled: boolean;
|
|
786
|
-
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
787
|
-
bindingPreference: "enabled" | "disabled";
|
|
788
|
-
isMidpointSnappingEnabled: boolean;
|
|
789
|
-
suggestedBinding: {
|
|
790
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
791
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
792
|
-
} | null;
|
|
793
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
794
|
-
frameRendering: {
|
|
795
|
-
enabled: boolean;
|
|
796
|
-
name: boolean;
|
|
797
|
-
outline: boolean;
|
|
798
|
-
clip: boolean;
|
|
799
|
-
};
|
|
800
|
-
editingFrame: string | null;
|
|
801
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
802
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
803
|
-
activeTool: {
|
|
804
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
805
|
-
locked: boolean;
|
|
806
|
-
fromSelection: boolean;
|
|
807
|
-
} & import("../types").ActiveTool;
|
|
808
|
-
preferredSelectionTool: {
|
|
809
|
-
type: "selection" | "lasso";
|
|
810
|
-
initialized: boolean;
|
|
811
|
-
};
|
|
812
|
-
penMode: boolean;
|
|
813
|
-
penDetected: boolean;
|
|
814
|
-
exportBackground: boolean;
|
|
815
|
-
exportEmbedScene: boolean;
|
|
816
|
-
exportWithDarkMode: boolean;
|
|
817
|
-
exportScale: number;
|
|
818
|
-
currentItemStrokeColor: string;
|
|
819
|
-
currentItemBackgroundColor: string;
|
|
820
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
821
|
-
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
822
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
823
|
-
currentItemRoughness: number;
|
|
824
|
-
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
825
|
-
currentItemOpacity: number;
|
|
826
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
827
|
-
currentItemFontSize: number;
|
|
828
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
829
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
830
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
831
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
832
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
833
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
834
|
-
viewBackgroundColor: string;
|
|
835
|
-
cursorButton: "up" | "down";
|
|
836
|
-
scrolledOutside: boolean;
|
|
837
|
-
name: string | null;
|
|
838
|
-
isResizing: boolean;
|
|
839
|
-
isRotating: boolean;
|
|
840
|
-
openMenu: "canvas" | null;
|
|
841
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
842
|
-
openSidebar: {
|
|
843
|
-
name: import("../types").SidebarName;
|
|
844
|
-
tab?: import("../types").SidebarTabName;
|
|
845
|
-
} | null;
|
|
846
|
-
openDialog: null | {
|
|
847
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
848
|
-
} | {
|
|
849
|
-
name: "settings";
|
|
850
|
-
} | {
|
|
851
|
-
name: "elementLinkSelector";
|
|
852
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
853
|
-
} | {
|
|
854
|
-
name: "charts";
|
|
855
|
-
data: import("../charts").Spreadsheet;
|
|
856
|
-
rawText: string;
|
|
857
|
-
};
|
|
858
|
-
defaultSidebarDockedPreference: boolean;
|
|
859
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
860
|
-
selectedElementIds: Readonly<{
|
|
861
|
-
[id: string]: true;
|
|
862
|
-
}>;
|
|
863
|
-
hoveredElementIds: Readonly<{
|
|
864
|
-
[id: string]: true;
|
|
865
|
-
}>;
|
|
866
|
-
previousSelectedElementIds: {
|
|
867
|
-
[id: string]: true;
|
|
868
|
-
};
|
|
869
|
-
selectedElementsAreBeingDragged: boolean;
|
|
870
|
-
shouldCacheIgnoreZoom: boolean;
|
|
871
|
-
toast: {
|
|
872
|
-
message: React.ReactNode;
|
|
873
|
-
closable?: boolean;
|
|
874
|
-
duration?: number;
|
|
875
|
-
} | null;
|
|
876
|
-
zenModeEnabled: boolean;
|
|
877
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
878
|
-
gridSize: number;
|
|
879
|
-
gridStep: number;
|
|
880
|
-
gridModeEnabled: boolean;
|
|
881
|
-
viewModeEnabled: boolean;
|
|
882
|
-
viewModeOnly: boolean;
|
|
883
|
-
selectedGroupIds: {
|
|
884
|
-
[groupId: string]: boolean;
|
|
885
|
-
};
|
|
886
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
887
|
-
width: number;
|
|
888
|
-
height: number;
|
|
889
|
-
offsetTop: number;
|
|
890
|
-
offsetLeft: number;
|
|
891
|
-
fileHandle: FileSystemFileHandle | null;
|
|
892
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
893
|
-
stats: {
|
|
894
|
-
open: boolean;
|
|
895
|
-
panels: number;
|
|
896
|
-
};
|
|
897
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
898
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
899
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
900
|
-
originSnapOffset: {
|
|
901
|
-
x: number;
|
|
902
|
-
y: number;
|
|
903
|
-
} | null;
|
|
904
|
-
objectsSnapModeEnabled: boolean;
|
|
905
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
906
|
-
followedBy: Set<import("../types").SocketId>;
|
|
907
|
-
isCropping: boolean;
|
|
908
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
909
|
-
searchMatches: Readonly<{
|
|
910
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
911
|
-
matches: readonly import("../types").SearchMatch[];
|
|
912
|
-
}> | null;
|
|
913
|
-
activeLockedId: string | null;
|
|
914
|
-
lockedMultiSelections: {
|
|
915
|
-
[groupId: string]: true;
|
|
916
|
-
};
|
|
917
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
918
|
-
};
|
|
919
|
-
captureUpdate: "EVENTUALLY";
|
|
920
|
-
};
|
|
921
581
|
export declare const actionZoomToFitSelectionInViewport: {
|
|
922
582
|
name: "zoomToFitSelectionInViewport";
|
|
923
583
|
label: string;
|
|
924
584
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
585
|
+
viewMode: true;
|
|
586
|
+
navigation: true;
|
|
925
587
|
trackEvent: {
|
|
926
588
|
category: "canvas";
|
|
927
589
|
};
|
|
590
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
928
591
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
929
592
|
appState: {
|
|
593
|
+
zoom: import("../types").Zoom;
|
|
930
594
|
scrollX: number;
|
|
931
595
|
scrollY: number;
|
|
932
|
-
zoom: {
|
|
933
|
-
value: import("../types").NormalizedZoomValue;
|
|
934
|
-
};
|
|
935
596
|
contextMenu: {
|
|
936
597
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
937
598
|
top: number;
|
|
@@ -968,6 +629,10 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
968
629
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
969
630
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
970
631
|
} | null;
|
|
632
|
+
hoveredArrowTextAnchor: {
|
|
633
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
634
|
+
anchor: "start" | "end" | "label";
|
|
635
|
+
} | null;
|
|
971
636
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
972
637
|
frameRendering: {
|
|
973
638
|
enabled: boolean;
|
|
@@ -975,8 +640,8 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
975
640
|
outline: boolean;
|
|
976
641
|
clip: boolean;
|
|
977
642
|
};
|
|
978
|
-
editingFrame:
|
|
979
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
643
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
644
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
980
645
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
981
646
|
activeTool: {
|
|
982
647
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -995,9 +660,9 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
995
660
|
exportScale: number;
|
|
996
661
|
currentItemStrokeColor: string;
|
|
997
662
|
currentItemBackgroundColor: string;
|
|
998
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
663
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
999
664
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
1000
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
665
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
1001
666
|
currentItemRoughness: number;
|
|
1002
667
|
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
1003
668
|
currentItemOpacity: number;
|
|
@@ -1010,6 +675,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1010
675
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1011
676
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1012
677
|
viewBackgroundColor: string;
|
|
678
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
1013
679
|
cursorButton: "up" | "down";
|
|
1014
680
|
scrolledOutside: boolean;
|
|
1015
681
|
name: string | null;
|
|
@@ -1027,7 +693,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1027
693
|
name: "settings";
|
|
1028
694
|
} | {
|
|
1029
695
|
name: "elementLinkSelector";
|
|
1030
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
696
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1031
697
|
} | {
|
|
1032
698
|
name: "charts";
|
|
1033
699
|
data: import("../charts").Spreadsheet;
|
|
@@ -1080,12 +746,10 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1080
746
|
y: number;
|
|
1081
747
|
} | null;
|
|
1082
748
|
objectsSnapModeEnabled: boolean;
|
|
1083
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1084
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1085
749
|
isCropping: boolean;
|
|
1086
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
750
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
1087
751
|
searchMatches: Readonly<{
|
|
1088
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
752
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
1089
753
|
matches: readonly import("../types").SearchMatch[];
|
|
1090
754
|
}> | null;
|
|
1091
755
|
activeLockedId: string | null;
|
|
@@ -1093,27 +757,33 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1093
757
|
[groupId: string]: true;
|
|
1094
758
|
};
|
|
1095
759
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
760
|
+
colorTopPicks: {
|
|
761
|
+
elementStroke: readonly string[] | null;
|
|
762
|
+
elementBackground: readonly string[] | null;
|
|
763
|
+
bucketFill: readonly string[] | null;
|
|
764
|
+
};
|
|
1096
765
|
};
|
|
1097
766
|
captureUpdate: "EVENTUALLY";
|
|
1098
767
|
};
|
|
1099
|
-
keyTest:
|
|
768
|
+
keyTest: undefined;
|
|
1100
769
|
} & {
|
|
1101
|
-
keyTest?:
|
|
770
|
+
keyTest?: undefined;
|
|
1102
771
|
};
|
|
1103
772
|
export declare const actionZoomToFitSelection: {
|
|
1104
773
|
name: "zoomToFitSelection";
|
|
1105
774
|
label: string;
|
|
1106
775
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
776
|
+
viewMode: true;
|
|
777
|
+
navigation: true;
|
|
1107
778
|
trackEvent: {
|
|
1108
779
|
category: "canvas";
|
|
1109
780
|
};
|
|
781
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1110
782
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1111
783
|
appState: {
|
|
784
|
+
zoom: import("../types").Zoom;
|
|
1112
785
|
scrollX: number;
|
|
1113
786
|
scrollY: number;
|
|
1114
|
-
zoom: {
|
|
1115
|
-
value: import("../types").NormalizedZoomValue;
|
|
1116
|
-
};
|
|
1117
787
|
contextMenu: {
|
|
1118
788
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1119
789
|
top: number;
|
|
@@ -1150,6 +820,10 @@ export declare const actionZoomToFitSelection: {
|
|
|
1150
820
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1151
821
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1152
822
|
} | null;
|
|
823
|
+
hoveredArrowTextAnchor: {
|
|
824
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
825
|
+
anchor: "start" | "end" | "label";
|
|
826
|
+
} | null;
|
|
1153
827
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1154
828
|
frameRendering: {
|
|
1155
829
|
enabled: boolean;
|
|
@@ -1157,8 +831,8 @@ export declare const actionZoomToFitSelection: {
|
|
|
1157
831
|
outline: boolean;
|
|
1158
832
|
clip: boolean;
|
|
1159
833
|
};
|
|
1160
|
-
editingFrame:
|
|
1161
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
834
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
835
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
1162
836
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1163
837
|
activeTool: {
|
|
1164
838
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -1177,9 +851,9 @@ export declare const actionZoomToFitSelection: {
|
|
|
1177
851
|
exportScale: number;
|
|
1178
852
|
currentItemStrokeColor: string;
|
|
1179
853
|
currentItemBackgroundColor: string;
|
|
1180
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
854
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
1181
855
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
1182
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
856
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
1183
857
|
currentItemRoughness: number;
|
|
1184
858
|
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
1185
859
|
currentItemOpacity: number;
|
|
@@ -1192,6 +866,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1192
866
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1193
867
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1194
868
|
viewBackgroundColor: string;
|
|
869
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
1195
870
|
cursorButton: "up" | "down";
|
|
1196
871
|
scrolledOutside: boolean;
|
|
1197
872
|
name: string | null;
|
|
@@ -1209,7 +884,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1209
884
|
name: "settings";
|
|
1210
885
|
} | {
|
|
1211
886
|
name: "elementLinkSelector";
|
|
1212
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
887
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1213
888
|
} | {
|
|
1214
889
|
name: "charts";
|
|
1215
890
|
data: import("../charts").Spreadsheet;
|
|
@@ -1262,12 +937,10 @@ export declare const actionZoomToFitSelection: {
|
|
|
1262
937
|
y: number;
|
|
1263
938
|
} | null;
|
|
1264
939
|
objectsSnapModeEnabled: boolean;
|
|
1265
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1266
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1267
940
|
isCropping: boolean;
|
|
1268
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
941
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
1269
942
|
searchMatches: Readonly<{
|
|
1270
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
943
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
1271
944
|
matches: readonly import("../types").SearchMatch[];
|
|
1272
945
|
}> | null;
|
|
1273
946
|
activeLockedId: string | null;
|
|
@@ -1275,28 +948,33 @@ export declare const actionZoomToFitSelection: {
|
|
|
1275
948
|
[groupId: string]: true;
|
|
1276
949
|
};
|
|
1277
950
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
951
|
+
colorTopPicks: {
|
|
952
|
+
elementStroke: readonly string[] | null;
|
|
953
|
+
elementBackground: readonly string[] | null;
|
|
954
|
+
bucketFill: readonly string[] | null;
|
|
955
|
+
};
|
|
1278
956
|
};
|
|
1279
957
|
captureUpdate: "EVENTUALLY";
|
|
1280
958
|
};
|
|
1281
|
-
keyTest:
|
|
959
|
+
keyTest: undefined;
|
|
1282
960
|
} & {
|
|
1283
|
-
keyTest?:
|
|
961
|
+
keyTest?: undefined;
|
|
1284
962
|
};
|
|
1285
963
|
export declare const actionZoomToFit: {
|
|
1286
964
|
name: "zoomToFit";
|
|
1287
965
|
label: string;
|
|
1288
966
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
1289
967
|
viewMode: true;
|
|
968
|
+
navigation: true;
|
|
1290
969
|
trackEvent: {
|
|
1291
970
|
category: "canvas";
|
|
1292
971
|
};
|
|
972
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1293
973
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1294
974
|
appState: {
|
|
975
|
+
zoom: import("../types").Zoom;
|
|
1295
976
|
scrollX: number;
|
|
1296
977
|
scrollY: number;
|
|
1297
|
-
zoom: {
|
|
1298
|
-
value: import("../types").NormalizedZoomValue;
|
|
1299
|
-
};
|
|
1300
978
|
contextMenu: {
|
|
1301
979
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1302
980
|
top: number;
|
|
@@ -1333,6 +1011,10 @@ export declare const actionZoomToFit: {
|
|
|
1333
1011
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1334
1012
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1335
1013
|
} | null;
|
|
1014
|
+
hoveredArrowTextAnchor: {
|
|
1015
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
1016
|
+
anchor: "start" | "end" | "label";
|
|
1017
|
+
} | null;
|
|
1336
1018
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1337
1019
|
frameRendering: {
|
|
1338
1020
|
enabled: boolean;
|
|
@@ -1340,8 +1022,8 @@ export declare const actionZoomToFit: {
|
|
|
1340
1022
|
outline: boolean;
|
|
1341
1023
|
clip: boolean;
|
|
1342
1024
|
};
|
|
1343
|
-
editingFrame:
|
|
1344
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
1025
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
1026
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
1345
1027
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1346
1028
|
activeTool: {
|
|
1347
1029
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -1360,9 +1042,9 @@ export declare const actionZoomToFit: {
|
|
|
1360
1042
|
exportScale: number;
|
|
1361
1043
|
currentItemStrokeColor: string;
|
|
1362
1044
|
currentItemBackgroundColor: string;
|
|
1363
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1045
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
1364
1046
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
1365
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1047
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
1366
1048
|
currentItemRoughness: number;
|
|
1367
1049
|
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
1368
1050
|
currentItemOpacity: number;
|
|
@@ -1375,6 +1057,7 @@ export declare const actionZoomToFit: {
|
|
|
1375
1057
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1376
1058
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1377
1059
|
viewBackgroundColor: string;
|
|
1060
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
1378
1061
|
cursorButton: "up" | "down";
|
|
1379
1062
|
scrolledOutside: boolean;
|
|
1380
1063
|
name: string | null;
|
|
@@ -1392,7 +1075,7 @@ export declare const actionZoomToFit: {
|
|
|
1392
1075
|
name: "settings";
|
|
1393
1076
|
} | {
|
|
1394
1077
|
name: "elementLinkSelector";
|
|
1395
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
1078
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1396
1079
|
} | {
|
|
1397
1080
|
name: "charts";
|
|
1398
1081
|
data: import("../charts").Spreadsheet;
|
|
@@ -1445,12 +1128,10 @@ export declare const actionZoomToFit: {
|
|
|
1445
1128
|
y: number;
|
|
1446
1129
|
} | null;
|
|
1447
1130
|
objectsSnapModeEnabled: boolean;
|
|
1448
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1449
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1450
1131
|
isCropping: boolean;
|
|
1451
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1132
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
1452
1133
|
searchMatches: Readonly<{
|
|
1453
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
1134
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
1454
1135
|
matches: readonly import("../types").SearchMatch[];
|
|
1455
1136
|
}> | null;
|
|
1456
1137
|
activeLockedId: string | null;
|
|
@@ -1458,532 +1139,18 @@ export declare const actionZoomToFit: {
|
|
|
1458
1139
|
[groupId: string]: true;
|
|
1459
1140
|
};
|
|
1460
1141
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1142
|
+
colorTopPicks: {
|
|
1143
|
+
elementStroke: readonly string[] | null;
|
|
1144
|
+
elementBackground: readonly string[] | null;
|
|
1145
|
+
bucketFill: readonly string[] | null;
|
|
1146
|
+
};
|
|
1461
1147
|
};
|
|
1462
1148
|
captureUpdate: "EVENTUALLY";
|
|
1463
1149
|
};
|
|
1464
|
-
keyTest:
|
|
1150
|
+
keyTest: undefined;
|
|
1465
1151
|
} & {
|
|
1466
|
-
keyTest?:
|
|
1152
|
+
keyTest?: undefined;
|
|
1467
1153
|
};
|
|
1468
1154
|
export declare const actionToggleTheme: import("./types").Action<import("@excalidraw/element/types").Theme> & {
|
|
1469
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
1470
|
-
};
|
|
1471
|
-
export declare const actionToggleEraserTool: {
|
|
1472
|
-
name: "toggleEraserTool";
|
|
1473
|
-
label: string;
|
|
1474
|
-
trackEvent: {
|
|
1475
|
-
category: "toolbar";
|
|
1476
|
-
};
|
|
1477
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1478
|
-
appState: {
|
|
1479
|
-
selectedElementIds: {};
|
|
1480
|
-
selectedGroupIds: {};
|
|
1481
|
-
activeEmbeddable: null;
|
|
1482
|
-
activeTool: {
|
|
1483
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1484
|
-
locked: boolean;
|
|
1485
|
-
fromSelection: boolean;
|
|
1486
|
-
} & import("../types").ActiveTool;
|
|
1487
|
-
contextMenu: {
|
|
1488
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1489
|
-
top: number;
|
|
1490
|
-
left: number;
|
|
1491
|
-
} | null;
|
|
1492
|
-
showWelcomeScreen: boolean;
|
|
1493
|
-
isLoading: boolean;
|
|
1494
|
-
myocSimplifiedMode: boolean;
|
|
1495
|
-
dontResizeLimitMBs: number;
|
|
1496
|
-
hideMainMenus: boolean;
|
|
1497
|
-
wheelZoomsOnDefault?: boolean;
|
|
1498
|
-
arrangeConfiguration: {
|
|
1499
|
-
algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
|
|
1500
|
-
gap: number;
|
|
1501
|
-
};
|
|
1502
|
-
normaliseConfiguration: {
|
|
1503
|
-
mode: import("../types").NormaliseMode;
|
|
1504
|
-
metric: import("../types").NormaliseMetric;
|
|
1505
|
-
};
|
|
1506
|
-
errorMessage: React.ReactNode;
|
|
1507
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1508
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1509
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1510
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1511
|
-
isBindingEnabled: boolean;
|
|
1512
|
-
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1513
|
-
bindingPreference: "enabled" | "disabled";
|
|
1514
|
-
isMidpointSnappingEnabled: boolean;
|
|
1515
|
-
suggestedBinding: {
|
|
1516
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1517
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1518
|
-
} | null;
|
|
1519
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1520
|
-
frameRendering: {
|
|
1521
|
-
enabled: boolean;
|
|
1522
|
-
name: boolean;
|
|
1523
|
-
outline: boolean;
|
|
1524
|
-
clip: boolean;
|
|
1525
|
-
};
|
|
1526
|
-
editingFrame: string | null;
|
|
1527
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1528
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1529
|
-
preferredSelectionTool: {
|
|
1530
|
-
type: "selection" | "lasso";
|
|
1531
|
-
initialized: boolean;
|
|
1532
|
-
};
|
|
1533
|
-
penMode: boolean;
|
|
1534
|
-
penDetected: boolean;
|
|
1535
|
-
exportBackground: boolean;
|
|
1536
|
-
exportEmbedScene: boolean;
|
|
1537
|
-
exportWithDarkMode: boolean;
|
|
1538
|
-
exportScale: number;
|
|
1539
|
-
currentItemStrokeColor: string;
|
|
1540
|
-
currentItemBackgroundColor: string;
|
|
1541
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1542
|
-
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
1543
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1544
|
-
currentItemRoughness: number;
|
|
1545
|
-
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
1546
|
-
currentItemOpacity: number;
|
|
1547
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1548
|
-
currentItemFontSize: number;
|
|
1549
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1550
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1551
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1552
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1553
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1554
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1555
|
-
viewBackgroundColor: string;
|
|
1556
|
-
scrollX: number;
|
|
1557
|
-
scrollY: number;
|
|
1558
|
-
cursorButton: "up" | "down";
|
|
1559
|
-
scrolledOutside: boolean;
|
|
1560
|
-
name: string | null;
|
|
1561
|
-
isResizing: boolean;
|
|
1562
|
-
isRotating: boolean;
|
|
1563
|
-
zoom: import("../types").Zoom;
|
|
1564
|
-
openMenu: "canvas" | null;
|
|
1565
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1566
|
-
openSidebar: {
|
|
1567
|
-
name: import("../types").SidebarName;
|
|
1568
|
-
tab?: import("../types").SidebarTabName;
|
|
1569
|
-
} | null;
|
|
1570
|
-
openDialog: null | {
|
|
1571
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
1572
|
-
} | {
|
|
1573
|
-
name: "settings";
|
|
1574
|
-
} | {
|
|
1575
|
-
name: "elementLinkSelector";
|
|
1576
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
1577
|
-
} | {
|
|
1578
|
-
name: "charts";
|
|
1579
|
-
data: import("../charts").Spreadsheet;
|
|
1580
|
-
rawText: string;
|
|
1581
|
-
};
|
|
1582
|
-
defaultSidebarDockedPreference: boolean;
|
|
1583
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1584
|
-
hoveredElementIds: Readonly<{
|
|
1585
|
-
[id: string]: true;
|
|
1586
|
-
}>;
|
|
1587
|
-
previousSelectedElementIds: {
|
|
1588
|
-
[id: string]: true;
|
|
1589
|
-
};
|
|
1590
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1591
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1592
|
-
toast: {
|
|
1593
|
-
message: React.ReactNode;
|
|
1594
|
-
closable?: boolean;
|
|
1595
|
-
duration?: number;
|
|
1596
|
-
} | null;
|
|
1597
|
-
zenModeEnabled: boolean;
|
|
1598
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
1599
|
-
gridSize: number;
|
|
1600
|
-
gridStep: number;
|
|
1601
|
-
gridModeEnabled: boolean;
|
|
1602
|
-
viewModeEnabled: boolean;
|
|
1603
|
-
viewModeOnly: boolean;
|
|
1604
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1605
|
-
width: number;
|
|
1606
|
-
height: number;
|
|
1607
|
-
offsetTop: number;
|
|
1608
|
-
offsetLeft: number;
|
|
1609
|
-
fileHandle: FileSystemFileHandle | null;
|
|
1610
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1611
|
-
stats: {
|
|
1612
|
-
open: boolean;
|
|
1613
|
-
panels: number;
|
|
1614
|
-
};
|
|
1615
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
1616
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1617
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
1618
|
-
originSnapOffset: {
|
|
1619
|
-
x: number;
|
|
1620
|
-
y: number;
|
|
1621
|
-
} | null;
|
|
1622
|
-
objectsSnapModeEnabled: boolean;
|
|
1623
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1624
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1625
|
-
isCropping: boolean;
|
|
1626
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1627
|
-
searchMatches: Readonly<{
|
|
1628
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
1629
|
-
matches: readonly import("../types").SearchMatch[];
|
|
1630
|
-
}> | null;
|
|
1631
|
-
activeLockedId: string | null;
|
|
1632
|
-
lockedMultiSelections: {
|
|
1633
|
-
[groupId: string]: true;
|
|
1634
|
-
};
|
|
1635
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1636
|
-
};
|
|
1637
|
-
captureUpdate: "IMMEDIATELY";
|
|
1638
|
-
};
|
|
1639
|
-
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1640
|
-
} & {
|
|
1641
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1642
|
-
};
|
|
1643
|
-
export declare const actionToggleLassoTool: {
|
|
1644
|
-
name: "toggleLassoTool";
|
|
1645
|
-
label: string;
|
|
1646
|
-
icon: import("react/jsx-runtime").JSX.Element;
|
|
1647
|
-
trackEvent: {
|
|
1648
|
-
category: "toolbar";
|
|
1649
|
-
};
|
|
1650
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1651
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1652
|
-
appState: {
|
|
1653
|
-
selectedElementIds: {};
|
|
1654
|
-
selectedGroupIds: {};
|
|
1655
|
-
activeEmbeddable: null;
|
|
1656
|
-
activeTool: {
|
|
1657
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1658
|
-
locked: boolean;
|
|
1659
|
-
fromSelection: boolean;
|
|
1660
|
-
} & import("../types").ActiveTool;
|
|
1661
|
-
contextMenu: {
|
|
1662
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1663
|
-
top: number;
|
|
1664
|
-
left: number;
|
|
1665
|
-
} | null;
|
|
1666
|
-
showWelcomeScreen: boolean;
|
|
1667
|
-
isLoading: boolean;
|
|
1668
|
-
myocSimplifiedMode: boolean;
|
|
1669
|
-
dontResizeLimitMBs: number;
|
|
1670
|
-
hideMainMenus: boolean;
|
|
1671
|
-
wheelZoomsOnDefault?: boolean;
|
|
1672
|
-
arrangeConfiguration: {
|
|
1673
|
-
algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
|
|
1674
|
-
gap: number;
|
|
1675
|
-
};
|
|
1676
|
-
normaliseConfiguration: {
|
|
1677
|
-
mode: import("../types").NormaliseMode;
|
|
1678
|
-
metric: import("../types").NormaliseMetric;
|
|
1679
|
-
};
|
|
1680
|
-
errorMessage: React.ReactNode;
|
|
1681
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1682
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1683
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1684
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1685
|
-
isBindingEnabled: boolean;
|
|
1686
|
-
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1687
|
-
bindingPreference: "enabled" | "disabled";
|
|
1688
|
-
isMidpointSnappingEnabled: boolean;
|
|
1689
|
-
suggestedBinding: {
|
|
1690
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1691
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1692
|
-
} | null;
|
|
1693
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1694
|
-
frameRendering: {
|
|
1695
|
-
enabled: boolean;
|
|
1696
|
-
name: boolean;
|
|
1697
|
-
outline: boolean;
|
|
1698
|
-
clip: boolean;
|
|
1699
|
-
};
|
|
1700
|
-
editingFrame: string | null;
|
|
1701
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1702
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1703
|
-
preferredSelectionTool: {
|
|
1704
|
-
type: "selection" | "lasso";
|
|
1705
|
-
initialized: boolean;
|
|
1706
|
-
};
|
|
1707
|
-
penMode: boolean;
|
|
1708
|
-
penDetected: boolean;
|
|
1709
|
-
exportBackground: boolean;
|
|
1710
|
-
exportEmbedScene: boolean;
|
|
1711
|
-
exportWithDarkMode: boolean;
|
|
1712
|
-
exportScale: number;
|
|
1713
|
-
currentItemStrokeColor: string;
|
|
1714
|
-
currentItemBackgroundColor: string;
|
|
1715
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1716
|
-
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
1717
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1718
|
-
currentItemRoughness: number;
|
|
1719
|
-
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
1720
|
-
currentItemOpacity: number;
|
|
1721
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1722
|
-
currentItemFontSize: number;
|
|
1723
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1724
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1725
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1726
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1727
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1728
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1729
|
-
viewBackgroundColor: string;
|
|
1730
|
-
scrollX: number;
|
|
1731
|
-
scrollY: number;
|
|
1732
|
-
cursorButton: "up" | "down";
|
|
1733
|
-
scrolledOutside: boolean;
|
|
1734
|
-
name: string | null;
|
|
1735
|
-
isResizing: boolean;
|
|
1736
|
-
isRotating: boolean;
|
|
1737
|
-
zoom: import("../types").Zoom;
|
|
1738
|
-
openMenu: "canvas" | null;
|
|
1739
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1740
|
-
openSidebar: {
|
|
1741
|
-
name: import("../types").SidebarName;
|
|
1742
|
-
tab?: import("../types").SidebarTabName;
|
|
1743
|
-
} | null;
|
|
1744
|
-
openDialog: null | {
|
|
1745
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
1746
|
-
} | {
|
|
1747
|
-
name: "settings";
|
|
1748
|
-
} | {
|
|
1749
|
-
name: "elementLinkSelector";
|
|
1750
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
1751
|
-
} | {
|
|
1752
|
-
name: "charts";
|
|
1753
|
-
data: import("../charts").Spreadsheet;
|
|
1754
|
-
rawText: string;
|
|
1755
|
-
};
|
|
1756
|
-
defaultSidebarDockedPreference: boolean;
|
|
1757
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1758
|
-
hoveredElementIds: Readonly<{
|
|
1759
|
-
[id: string]: true;
|
|
1760
|
-
}>;
|
|
1761
|
-
previousSelectedElementIds: {
|
|
1762
|
-
[id: string]: true;
|
|
1763
|
-
};
|
|
1764
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1765
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1766
|
-
toast: {
|
|
1767
|
-
message: React.ReactNode;
|
|
1768
|
-
closable?: boolean;
|
|
1769
|
-
duration?: number;
|
|
1770
|
-
} | null;
|
|
1771
|
-
zenModeEnabled: boolean;
|
|
1772
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
1773
|
-
gridSize: number;
|
|
1774
|
-
gridStep: number;
|
|
1775
|
-
gridModeEnabled: boolean;
|
|
1776
|
-
viewModeEnabled: boolean;
|
|
1777
|
-
viewModeOnly: boolean;
|
|
1778
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1779
|
-
width: number;
|
|
1780
|
-
height: number;
|
|
1781
|
-
offsetTop: number;
|
|
1782
|
-
offsetLeft: number;
|
|
1783
|
-
fileHandle: FileSystemFileHandle | null;
|
|
1784
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1785
|
-
stats: {
|
|
1786
|
-
open: boolean;
|
|
1787
|
-
panels: number;
|
|
1788
|
-
};
|
|
1789
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
1790
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1791
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
1792
|
-
originSnapOffset: {
|
|
1793
|
-
x: number;
|
|
1794
|
-
y: number;
|
|
1795
|
-
} | null;
|
|
1796
|
-
objectsSnapModeEnabled: boolean;
|
|
1797
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1798
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1799
|
-
isCropping: boolean;
|
|
1800
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1801
|
-
searchMatches: Readonly<{
|
|
1802
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
1803
|
-
matches: readonly import("../types").SearchMatch[];
|
|
1804
|
-
}> | null;
|
|
1805
|
-
activeLockedId: string | null;
|
|
1806
|
-
lockedMultiSelections: {
|
|
1807
|
-
[groupId: string]: true;
|
|
1808
|
-
};
|
|
1809
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1810
|
-
};
|
|
1811
|
-
captureUpdate: "NEVER";
|
|
1812
|
-
};
|
|
1813
|
-
} & {
|
|
1814
|
-
keyTest?: undefined;
|
|
1815
|
-
};
|
|
1816
|
-
export declare const actionToggleHandTool: {
|
|
1817
|
-
name: "toggleHandTool";
|
|
1818
|
-
label: string;
|
|
1819
|
-
trackEvent: {
|
|
1820
|
-
category: "toolbar";
|
|
1821
|
-
};
|
|
1822
|
-
icon: import("react/jsx-runtime").JSX.Element;
|
|
1823
|
-
viewMode: false;
|
|
1824
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1825
|
-
appState: {
|
|
1826
|
-
selectedElementIds: {};
|
|
1827
|
-
selectedGroupIds: {};
|
|
1828
|
-
activeEmbeddable: null;
|
|
1829
|
-
activeTool: {
|
|
1830
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1831
|
-
locked: boolean;
|
|
1832
|
-
fromSelection: boolean;
|
|
1833
|
-
} & import("../types").ActiveTool;
|
|
1834
|
-
contextMenu: {
|
|
1835
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1836
|
-
top: number;
|
|
1837
|
-
left: number;
|
|
1838
|
-
} | null;
|
|
1839
|
-
showWelcomeScreen: boolean;
|
|
1840
|
-
isLoading: boolean;
|
|
1841
|
-
myocSimplifiedMode: boolean;
|
|
1842
|
-
dontResizeLimitMBs: number;
|
|
1843
|
-
hideMainMenus: boolean;
|
|
1844
|
-
wheelZoomsOnDefault?: boolean;
|
|
1845
|
-
arrangeConfiguration: {
|
|
1846
|
-
algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
|
|
1847
|
-
gap: number;
|
|
1848
|
-
};
|
|
1849
|
-
normaliseConfiguration: {
|
|
1850
|
-
mode: import("../types").NormaliseMode;
|
|
1851
|
-
metric: import("../types").NormaliseMetric;
|
|
1852
|
-
};
|
|
1853
|
-
errorMessage: React.ReactNode;
|
|
1854
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1855
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1856
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1857
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1858
|
-
isBindingEnabled: boolean;
|
|
1859
|
-
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1860
|
-
bindingPreference: "enabled" | "disabled";
|
|
1861
|
-
isMidpointSnappingEnabled: boolean;
|
|
1862
|
-
suggestedBinding: {
|
|
1863
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1864
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1865
|
-
} | null;
|
|
1866
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1867
|
-
frameRendering: {
|
|
1868
|
-
enabled: boolean;
|
|
1869
|
-
name: boolean;
|
|
1870
|
-
outline: boolean;
|
|
1871
|
-
clip: boolean;
|
|
1872
|
-
};
|
|
1873
|
-
editingFrame: string | null;
|
|
1874
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1875
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1876
|
-
preferredSelectionTool: {
|
|
1877
|
-
type: "selection" | "lasso";
|
|
1878
|
-
initialized: boolean;
|
|
1879
|
-
};
|
|
1880
|
-
penMode: boolean;
|
|
1881
|
-
penDetected: boolean;
|
|
1882
|
-
exportBackground: boolean;
|
|
1883
|
-
exportEmbedScene: boolean;
|
|
1884
|
-
exportWithDarkMode: boolean;
|
|
1885
|
-
exportScale: number;
|
|
1886
|
-
currentItemStrokeColor: string;
|
|
1887
|
-
currentItemBackgroundColor: string;
|
|
1888
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1889
|
-
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
1890
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1891
|
-
currentItemRoughness: number;
|
|
1892
|
-
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
1893
|
-
currentItemOpacity: number;
|
|
1894
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1895
|
-
currentItemFontSize: number;
|
|
1896
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1897
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1898
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1899
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1900
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1901
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1902
|
-
viewBackgroundColor: string;
|
|
1903
|
-
scrollX: number;
|
|
1904
|
-
scrollY: number;
|
|
1905
|
-
cursorButton: "up" | "down";
|
|
1906
|
-
scrolledOutside: boolean;
|
|
1907
|
-
name: string | null;
|
|
1908
|
-
isResizing: boolean;
|
|
1909
|
-
isRotating: boolean;
|
|
1910
|
-
zoom: import("../types").Zoom;
|
|
1911
|
-
openMenu: "canvas" | null;
|
|
1912
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1913
|
-
openSidebar: {
|
|
1914
|
-
name: import("../types").SidebarName;
|
|
1915
|
-
tab?: import("../types").SidebarTabName;
|
|
1916
|
-
} | null;
|
|
1917
|
-
openDialog: null | {
|
|
1918
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
1919
|
-
} | {
|
|
1920
|
-
name: "settings";
|
|
1921
|
-
} | {
|
|
1922
|
-
name: "elementLinkSelector";
|
|
1923
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
1924
|
-
} | {
|
|
1925
|
-
name: "charts";
|
|
1926
|
-
data: import("../charts").Spreadsheet;
|
|
1927
|
-
rawText: string;
|
|
1928
|
-
};
|
|
1929
|
-
defaultSidebarDockedPreference: boolean;
|
|
1930
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1931
|
-
hoveredElementIds: Readonly<{
|
|
1932
|
-
[id: string]: true;
|
|
1933
|
-
}>;
|
|
1934
|
-
previousSelectedElementIds: {
|
|
1935
|
-
[id: string]: true;
|
|
1936
|
-
};
|
|
1937
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1938
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1939
|
-
toast: {
|
|
1940
|
-
message: React.ReactNode;
|
|
1941
|
-
closable?: boolean;
|
|
1942
|
-
duration?: number;
|
|
1943
|
-
} | null;
|
|
1944
|
-
zenModeEnabled: boolean;
|
|
1945
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
1946
|
-
gridSize: number;
|
|
1947
|
-
gridStep: number;
|
|
1948
|
-
gridModeEnabled: boolean;
|
|
1949
|
-
viewModeEnabled: boolean;
|
|
1950
|
-
viewModeOnly: boolean;
|
|
1951
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1952
|
-
width: number;
|
|
1953
|
-
height: number;
|
|
1954
|
-
offsetTop: number;
|
|
1955
|
-
offsetLeft: number;
|
|
1956
|
-
fileHandle: FileSystemFileHandle | null;
|
|
1957
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1958
|
-
stats: {
|
|
1959
|
-
open: boolean;
|
|
1960
|
-
panels: number;
|
|
1961
|
-
};
|
|
1962
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
1963
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1964
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
1965
|
-
originSnapOffset: {
|
|
1966
|
-
x: number;
|
|
1967
|
-
y: number;
|
|
1968
|
-
} | null;
|
|
1969
|
-
objectsSnapModeEnabled: boolean;
|
|
1970
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1971
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1972
|
-
isCropping: boolean;
|
|
1973
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1974
|
-
searchMatches: Readonly<{
|
|
1975
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
1976
|
-
matches: readonly import("../types").SearchMatch[];
|
|
1977
|
-
}> | null;
|
|
1978
|
-
activeLockedId: string | null;
|
|
1979
|
-
lockedMultiSelections: {
|
|
1980
|
-
[groupId: string]: true;
|
|
1981
|
-
};
|
|
1982
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1983
|
-
};
|
|
1984
|
-
captureUpdate: "IMMEDIATELY";
|
|
1985
|
-
};
|
|
1986
|
-
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1987
|
-
} & {
|
|
1988
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1155
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
1989
1156
|
};
|