@excalidraw/math 0.18.0-2b1c2a9 → 0.18.0-2c3dcc0
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 +8 -2
- package/dist/dev/index.js.map +2 -2
- package/dist/prod/index.js +1 -1
- package/dist/types/common/src/colors.d.ts +3 -0
- package/dist/types/common/src/constants.d.ts +56 -0
- package/dist/types/common/src/keys.d.ts +4 -0
- package/dist/types/common/src/random.d.ts +7 -0
- package/dist/types/common/src/utils.d.ts +12 -1
- package/dist/types/element/src/Scene.d.ts +1 -1
- package/dist/types/element/src/align.d.ts +4 -1
- package/dist/types/element/src/binding.d.ts +75 -7
- package/dist/types/element/src/bounds.d.ts +10 -2
- package/dist/types/element/src/collision.d.ts +21 -5
- package/dist/types/element/src/comparisons.d.ts +5 -3
- package/dist/types/element/src/cropElement.d.ts +36 -4
- package/dist/types/element/src/delta.d.ts +30 -2
- 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/duplicate.d.ts +60 -0
- 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 +6 -8
- package/dist/types/element/src/frame.d.ts +21 -3
- 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 +3 -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/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +40 -3
- package/dist/types/element/src/renderElement.d.ts +31 -4
- 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 +4 -10
- package/dist/types/element/src/shape.d.ts +17 -1
- package/dist/types/element/src/sizeHelpers.d.ts +6 -0
- package/dist/types/element/src/stickyNote.d.ts +191 -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 +30 -7
- package/dist/types/element/src/typeChecks.d.ts +3 -2
- package/dist/types/element/src/types.d.ts +28 -6
- package/dist/types/element/src/utils.d.ts +8 -1
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +48 -3
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +62 -208
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +121 -16
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +32 -2
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -546
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +20 -2
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +32 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +39 -9
- package/dist/types/excalidraw/actions/actionFrame.d.ts +92 -479
- package/dist/types/excalidraw/actions/actionGroup.d.ts +34 -4
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +66 -2
- package/dist/types/excalidraw/actions/actionLink.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionProperties.d.ts +42 -8
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +17 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +17 -2
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +201 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +198 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -1
- package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
- 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 +26 -8
- 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 +10 -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 +129 -218
- package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
- 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 +62 -0
- package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
- package/dist/types/excalidraw/components/App.selectionTool.d.ts +94 -0
- package/dist/types/excalidraw/components/App.text.d.ts +194 -0
- package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
- package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +64 -4
- package/dist/types/excalidraw/components/App.wheel.d.ts +30 -0
- package/dist/types/excalidraw/components/App.wrap.d.ts +39 -0
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
- package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -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/FontPicker/FontPicker.d.ts +4 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
- package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
- package/dist/types/excalidraw/components/IconButton.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/Tools.d.ts +7 -2
- package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
- package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +0 -1
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -0
- 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 +2 -0
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +3 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +2 -2
- package/dist/types/excalidraw/data/blob.d.ts +46 -16
- package/dist/types/excalidraw/data/index.d.ts +3 -3
- package/dist/types/excalidraw/data/json.d.ts +23 -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/renderOverrides.d.ts +9 -0
- package/dist/types/excalidraw/renderer/animation.d.ts +11 -4
- package/dist/types/excalidraw/renderer/helpers.d.ts +18 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
- package/dist/types/excalidraw/scene/Renderer.d.ts +64 -3
- package/dist/types/excalidraw/scene/export.d.ts +343 -20
- package/dist/types/excalidraw/scene/index.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +26 -2
- package/dist/types/excalidraw/types.d.ts +191 -22
- package/dist/types/excalidraw/viewport.d.ts +29 -1
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -1
- package/dist/types/utils/src/index.d.ts +3 -1
- package/dist/types/utils/src/shape.d.ts +2 -2
- package/package.json +2 -2
- package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +0 -31
- package/dist/types/utils/src/export.d.ts +0 -35
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
-
import type {
|
|
1
|
+
import type { ElementsMap, ExcalidrawElement, ExcalidrawFrameLikeElement, NonDeletedExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
+
import type { ActionResult } from "./types";
|
|
3
|
+
import type { AppClassProperties, AppState, UIAppState } from "../types";
|
|
3
4
|
export declare const actionSelectAllElementsInFrame: {
|
|
4
5
|
name: "selectAllElementsInFrame";
|
|
5
6
|
label: string;
|
|
6
7
|
trackEvent: {
|
|
7
8
|
category: "canvas";
|
|
8
9
|
};
|
|
9
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
10
11
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
11
12
|
appState: {
|
|
12
13
|
selectedElementIds: Record<string, true>;
|
|
@@ -19,34 +20,43 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
19
20
|
isLoading: boolean;
|
|
20
21
|
errorMessage: React.ReactNode;
|
|
21
22
|
activeEmbeddable: {
|
|
22
|
-
element:
|
|
23
|
+
element: NonDeletedExcalidrawElement;
|
|
23
24
|
state: "hover" | "active";
|
|
24
25
|
} | null;
|
|
25
26
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
26
|
-
resizingElement:
|
|
27
|
+
resizingElement: NonDeletedExcalidrawElement | null;
|
|
27
28
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
28
|
-
selectionElement:
|
|
29
|
+
selectionElement: NonDeletedExcalidrawElement | null;
|
|
29
30
|
isBindingEnabled: boolean;
|
|
30
31
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
31
32
|
bindingPreference: "enabled" | "disabled";
|
|
32
33
|
isMidpointSnappingEnabled: boolean;
|
|
34
|
+
showHints: boolean;
|
|
35
|
+
inputDevice: import("../types").InputDevice;
|
|
33
36
|
suggestedBinding: {
|
|
34
37
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
35
38
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
36
39
|
} | null;
|
|
37
|
-
|
|
40
|
+
textToolHover: {
|
|
41
|
+
type: "text";
|
|
42
|
+
elementId: ExcalidrawElement["id"];
|
|
43
|
+
} | {
|
|
44
|
+
type: "container";
|
|
45
|
+
elementId: ExcalidrawElement["id"];
|
|
46
|
+
} | {
|
|
47
|
+
type: "arrow";
|
|
38
48
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
39
49
|
anchor: "start" | "end" | "label";
|
|
40
50
|
} | null;
|
|
41
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<
|
|
51
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawFrameLikeElement> | null;
|
|
42
52
|
frameRendering: {
|
|
43
53
|
enabled: boolean;
|
|
44
54
|
name: boolean;
|
|
45
55
|
outline: boolean;
|
|
46
56
|
clip: boolean;
|
|
47
57
|
};
|
|
48
|
-
editingFrame:
|
|
49
|
-
elementsToHighlight: readonly
|
|
58
|
+
editingFrame: ExcalidrawFrameLikeElement["id"] | null;
|
|
59
|
+
elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
|
|
50
60
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
51
61
|
activeTool: {
|
|
52
62
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -64,6 +74,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
64
74
|
exportWithDarkMode: boolean;
|
|
65
75
|
exportScale: number;
|
|
66
76
|
currentItemStrokeColor: string;
|
|
77
|
+
currentItemStickynoteStrokeColor: string;
|
|
78
|
+
currentItemStickynoteBackgroundColor: string;
|
|
67
79
|
currentItemBackgroundColor: string;
|
|
68
80
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
69
81
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -128,6 +140,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
128
140
|
duration?: number;
|
|
129
141
|
} | null;
|
|
130
142
|
zenModeEnabled: boolean;
|
|
143
|
+
minimapEnabled: boolean;
|
|
131
144
|
theme: import("@excalidraw/element/types").Theme;
|
|
132
145
|
gridSize: number;
|
|
133
146
|
gridStep: number;
|
|
@@ -170,15 +183,18 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
170
183
|
elementStroke: readonly string[] | null;
|
|
171
184
|
elementBackground: readonly string[] | null;
|
|
172
185
|
bucketFill: readonly string[] | null;
|
|
186
|
+
stickyNoteStroke: readonly string[] | null;
|
|
187
|
+
stickyNoteBackground: readonly string[] | null;
|
|
173
188
|
};
|
|
189
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
174
190
|
};
|
|
175
191
|
captureUpdate: "IMMEDIATELY";
|
|
176
192
|
} | {
|
|
177
193
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
178
|
-
appState: Readonly<
|
|
194
|
+
appState: Readonly<AppState>;
|
|
179
195
|
captureUpdate: "EVENTUALLY";
|
|
180
196
|
};
|
|
181
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
197
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
182
198
|
} & {
|
|
183
199
|
keyTest?: undefined;
|
|
184
200
|
};
|
|
@@ -188,7 +204,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
188
204
|
trackEvent: {
|
|
189
205
|
category: "history";
|
|
190
206
|
};
|
|
191
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<
|
|
207
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
192
208
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
193
209
|
appState: {
|
|
194
210
|
selectedElementIds: {
|
|
@@ -203,34 +219,43 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
203
219
|
isLoading: boolean;
|
|
204
220
|
errorMessage: React.ReactNode;
|
|
205
221
|
activeEmbeddable: {
|
|
206
|
-
element:
|
|
222
|
+
element: NonDeletedExcalidrawElement;
|
|
207
223
|
state: "hover" | "active";
|
|
208
224
|
} | null;
|
|
209
225
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
210
|
-
resizingElement:
|
|
226
|
+
resizingElement: NonDeletedExcalidrawElement | null;
|
|
211
227
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
212
|
-
selectionElement:
|
|
228
|
+
selectionElement: NonDeletedExcalidrawElement | null;
|
|
213
229
|
isBindingEnabled: boolean;
|
|
214
230
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
215
231
|
bindingPreference: "enabled" | "disabled";
|
|
216
232
|
isMidpointSnappingEnabled: boolean;
|
|
233
|
+
showHints: boolean;
|
|
234
|
+
inputDevice: import("../types").InputDevice;
|
|
217
235
|
suggestedBinding: {
|
|
218
236
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
219
237
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
220
238
|
} | null;
|
|
221
|
-
|
|
239
|
+
textToolHover: {
|
|
240
|
+
type: "text";
|
|
241
|
+
elementId: ExcalidrawElement["id"];
|
|
242
|
+
} | {
|
|
243
|
+
type: "container";
|
|
244
|
+
elementId: ExcalidrawElement["id"];
|
|
245
|
+
} | {
|
|
246
|
+
type: "arrow";
|
|
222
247
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
223
248
|
anchor: "start" | "end" | "label";
|
|
224
249
|
} | null;
|
|
225
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<
|
|
250
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawFrameLikeElement> | null;
|
|
226
251
|
frameRendering: {
|
|
227
252
|
enabled: boolean;
|
|
228
253
|
name: boolean;
|
|
229
254
|
outline: boolean;
|
|
230
255
|
clip: boolean;
|
|
231
256
|
};
|
|
232
|
-
editingFrame:
|
|
233
|
-
elementsToHighlight: readonly
|
|
257
|
+
editingFrame: ExcalidrawFrameLikeElement["id"] | null;
|
|
258
|
+
elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
|
|
234
259
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
235
260
|
activeTool: {
|
|
236
261
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -248,6 +273,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
248
273
|
exportWithDarkMode: boolean;
|
|
249
274
|
exportScale: number;
|
|
250
275
|
currentItemStrokeColor: string;
|
|
276
|
+
currentItemStickynoteStrokeColor: string;
|
|
277
|
+
currentItemStickynoteBackgroundColor: string;
|
|
251
278
|
currentItemBackgroundColor: string;
|
|
252
279
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
253
280
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -312,6 +339,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
312
339
|
duration?: number;
|
|
313
340
|
} | null;
|
|
314
341
|
zenModeEnabled: boolean;
|
|
342
|
+
minimapEnabled: boolean;
|
|
315
343
|
theme: import("@excalidraw/element/types").Theme;
|
|
316
344
|
gridSize: number;
|
|
317
345
|
gridStep: number;
|
|
@@ -354,15 +382,18 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
354
382
|
elementStroke: readonly string[] | null;
|
|
355
383
|
elementBackground: readonly string[] | null;
|
|
356
384
|
bucketFill: readonly string[] | null;
|
|
385
|
+
stickyNoteStroke: readonly string[] | null;
|
|
386
|
+
stickyNoteBackground: readonly string[] | null;
|
|
357
387
|
};
|
|
388
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
358
389
|
};
|
|
359
390
|
captureUpdate: "IMMEDIATELY";
|
|
360
391
|
} | {
|
|
361
392
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
362
|
-
appState: Readonly<
|
|
393
|
+
appState: Readonly<AppState>;
|
|
363
394
|
captureUpdate: "EVENTUALLY";
|
|
364
395
|
};
|
|
365
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
396
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
366
397
|
} & {
|
|
367
398
|
keyTest?: undefined;
|
|
368
399
|
};
|
|
@@ -373,7 +404,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
373
404
|
trackEvent: {
|
|
374
405
|
category: "canvas";
|
|
375
406
|
};
|
|
376
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<
|
|
407
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
377
408
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
378
409
|
appState: {
|
|
379
410
|
frameRendering: {
|
|
@@ -391,28 +422,37 @@ export declare const actionupdateFrameRendering: {
|
|
|
391
422
|
isLoading: boolean;
|
|
392
423
|
errorMessage: React.ReactNode;
|
|
393
424
|
activeEmbeddable: {
|
|
394
|
-
element:
|
|
425
|
+
element: NonDeletedExcalidrawElement;
|
|
395
426
|
state: "hover" | "active";
|
|
396
427
|
} | null;
|
|
397
428
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
398
|
-
resizingElement:
|
|
429
|
+
resizingElement: NonDeletedExcalidrawElement | null;
|
|
399
430
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
400
|
-
selectionElement:
|
|
431
|
+
selectionElement: NonDeletedExcalidrawElement | null;
|
|
401
432
|
isBindingEnabled: boolean;
|
|
402
433
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
403
434
|
bindingPreference: "enabled" | "disabled";
|
|
404
435
|
isMidpointSnappingEnabled: boolean;
|
|
436
|
+
showHints: boolean;
|
|
437
|
+
inputDevice: import("../types").InputDevice;
|
|
405
438
|
suggestedBinding: {
|
|
406
439
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
407
440
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
408
441
|
} | null;
|
|
409
|
-
|
|
442
|
+
textToolHover: {
|
|
443
|
+
type: "text";
|
|
444
|
+
elementId: ExcalidrawElement["id"];
|
|
445
|
+
} | {
|
|
446
|
+
type: "container";
|
|
447
|
+
elementId: ExcalidrawElement["id"];
|
|
448
|
+
} | {
|
|
449
|
+
type: "arrow";
|
|
410
450
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
411
451
|
anchor: "start" | "end" | "label";
|
|
412
452
|
} | null;
|
|
413
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<
|
|
414
|
-
editingFrame:
|
|
415
|
-
elementsToHighlight: readonly
|
|
453
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawFrameLikeElement> | null;
|
|
454
|
+
editingFrame: ExcalidrawFrameLikeElement["id"] | null;
|
|
455
|
+
elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
|
|
416
456
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
417
457
|
activeTool: {
|
|
418
458
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -430,6 +470,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
430
470
|
exportWithDarkMode: boolean;
|
|
431
471
|
exportScale: number;
|
|
432
472
|
currentItemStrokeColor: string;
|
|
473
|
+
currentItemStickynoteStrokeColor: string;
|
|
474
|
+
currentItemStickynoteBackgroundColor: string;
|
|
433
475
|
currentItemBackgroundColor: string;
|
|
434
476
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
435
477
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -497,6 +539,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
497
539
|
duration?: number;
|
|
498
540
|
} | null;
|
|
499
541
|
zenModeEnabled: boolean;
|
|
542
|
+
minimapEnabled: boolean;
|
|
500
543
|
theme: import("@excalidraw/element/types").Theme;
|
|
501
544
|
gridSize: number;
|
|
502
545
|
gridStep: number;
|
|
@@ -539,7 +582,10 @@ export declare const actionupdateFrameRendering: {
|
|
|
539
582
|
elementStroke: readonly string[] | null;
|
|
540
583
|
elementBackground: readonly string[] | null;
|
|
541
584
|
bucketFill: readonly string[] | null;
|
|
585
|
+
stickyNoteStroke: readonly string[] | null;
|
|
586
|
+
stickyNoteBackground: readonly string[] | null;
|
|
542
587
|
};
|
|
588
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
543
589
|
};
|
|
544
590
|
captureUpdate: "EVENTUALLY";
|
|
545
591
|
};
|
|
@@ -547,460 +593,27 @@ export declare const actionupdateFrameRendering: {
|
|
|
547
593
|
} & {
|
|
548
594
|
keyTest?: undefined;
|
|
549
595
|
};
|
|
596
|
+
/**
|
|
597
|
+
* The frame that wrapping the selection removes instead: the one frame the
|
|
598
|
+
* selection holds (along with any of its children), or, with no frame
|
|
599
|
+
* selected, the frame whose children are all selected.
|
|
600
|
+
*/
|
|
601
|
+
export declare const getFrameToUnwrap: (selectedElements: readonly ExcalidrawElement[], elementsMap: ElementsMap) => ExcalidrawFrameLikeElement | null;
|
|
602
|
+
/** removes the frame, keeping its children selected in its place */
|
|
603
|
+
export declare const unwrapFrame: (elements: readonly ExcalidrawElement[], appState: AppState, frame: ExcalidrawFrameLikeElement, app: AppClassProperties) => ActionResult;
|
|
604
|
+
/**
|
|
605
|
+
* Wraps the selection in a new frame, along with the deselected elements
|
|
606
|
+
* within it — edge to edge when it's an image.
|
|
607
|
+
*/
|
|
608
|
+
export declare const wrapInFrame: (elements: readonly ExcalidrawElement[], appState: AppState, selectedElements: NonDeletedExcalidrawElement[], app: AppClassProperties) => ActionResult;
|
|
550
609
|
export declare const actionWrapSelectionInFrame: {
|
|
551
610
|
name: "wrapSelectionInFrame";
|
|
552
|
-
label:
|
|
611
|
+
label: (elements: readonly ExcalidrawElement[], appState: Readonly<UIAppState>, app: AppClassProperties) => "labels.removeFrame" | "labels.wrapSelectionInFrame";
|
|
553
612
|
trackEvent: {
|
|
554
613
|
category: "element";
|
|
555
614
|
};
|
|
556
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
557
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<
|
|
558
|
-
elements: ((Readonly<{
|
|
559
|
-
id: string;
|
|
560
|
-
x: number;
|
|
561
|
-
y: number;
|
|
562
|
-
strokeColor: string;
|
|
563
|
-
backgroundColor: string;
|
|
564
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
565
|
-
strokeWidth: number;
|
|
566
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
567
|
-
roundness: null | {
|
|
568
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
569
|
-
value?: number;
|
|
570
|
-
};
|
|
571
|
-
roughness: number;
|
|
572
|
-
opacity: number;
|
|
573
|
-
width: number;
|
|
574
|
-
height: number;
|
|
575
|
-
angle: import("@excalidraw/math").Radians;
|
|
576
|
-
seed: number;
|
|
577
|
-
version: number;
|
|
578
|
-
versionNonce: number;
|
|
579
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
580
|
-
isDeleted: boolean;
|
|
581
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
582
|
-
frameId: string | null;
|
|
583
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
584
|
-
updated: number;
|
|
585
|
-
link: string | null;
|
|
586
|
-
locked: boolean;
|
|
587
|
-
customData?: Record<string, any>;
|
|
588
|
-
}> & Readonly<{
|
|
589
|
-
type: "line" | "arrow";
|
|
590
|
-
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
591
|
-
startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
592
|
-
endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
593
|
-
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
594
|
-
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
595
|
-
}> & {
|
|
596
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
597
|
-
}) | (Readonly<{
|
|
598
|
-
id: string;
|
|
599
|
-
x: number;
|
|
600
|
-
y: number;
|
|
601
|
-
strokeColor: string;
|
|
602
|
-
backgroundColor: string;
|
|
603
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
604
|
-
strokeWidth: number;
|
|
605
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
606
|
-
roundness: null | {
|
|
607
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
608
|
-
value?: number;
|
|
609
|
-
};
|
|
610
|
-
roughness: number;
|
|
611
|
-
opacity: number;
|
|
612
|
-
width: number;
|
|
613
|
-
height: number;
|
|
614
|
-
angle: import("@excalidraw/math").Radians;
|
|
615
|
-
seed: number;
|
|
616
|
-
version: number;
|
|
617
|
-
versionNonce: number;
|
|
618
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
619
|
-
isDeleted: boolean;
|
|
620
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
621
|
-
frameId: string | null;
|
|
622
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
623
|
-
updated: number;
|
|
624
|
-
link: string | null;
|
|
625
|
-
locked: boolean;
|
|
626
|
-
customData?: Record<string, any>;
|
|
627
|
-
}> & {
|
|
628
|
-
type: "selection";
|
|
629
|
-
} & {
|
|
630
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
631
|
-
}) | (Readonly<{
|
|
632
|
-
id: string;
|
|
633
|
-
x: number;
|
|
634
|
-
y: number;
|
|
635
|
-
strokeColor: string;
|
|
636
|
-
backgroundColor: string;
|
|
637
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
638
|
-
strokeWidth: number;
|
|
639
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
640
|
-
roundness: null | {
|
|
641
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
642
|
-
value?: number;
|
|
643
|
-
};
|
|
644
|
-
roughness: number;
|
|
645
|
-
opacity: number;
|
|
646
|
-
width: number;
|
|
647
|
-
height: number;
|
|
648
|
-
angle: import("@excalidraw/math").Radians;
|
|
649
|
-
seed: number;
|
|
650
|
-
version: number;
|
|
651
|
-
versionNonce: number;
|
|
652
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
653
|
-
isDeleted: boolean;
|
|
654
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
655
|
-
frameId: string | null;
|
|
656
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
657
|
-
updated: number;
|
|
658
|
-
link: string | null;
|
|
659
|
-
locked: boolean;
|
|
660
|
-
customData?: Record<string, any>;
|
|
661
|
-
}> & {
|
|
662
|
-
type: "rectangle";
|
|
663
|
-
} & {
|
|
664
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
665
|
-
}) | (Readonly<{
|
|
666
|
-
id: string;
|
|
667
|
-
x: number;
|
|
668
|
-
y: number;
|
|
669
|
-
strokeColor: string;
|
|
670
|
-
backgroundColor: string;
|
|
671
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
672
|
-
strokeWidth: number;
|
|
673
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
674
|
-
roundness: null | {
|
|
675
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
676
|
-
value?: number;
|
|
677
|
-
};
|
|
678
|
-
roughness: number;
|
|
679
|
-
opacity: number;
|
|
680
|
-
width: number;
|
|
681
|
-
height: number;
|
|
682
|
-
angle: import("@excalidraw/math").Radians;
|
|
683
|
-
seed: number;
|
|
684
|
-
version: number;
|
|
685
|
-
versionNonce: number;
|
|
686
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
687
|
-
isDeleted: boolean;
|
|
688
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
689
|
-
frameId: string | null;
|
|
690
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
691
|
-
updated: number;
|
|
692
|
-
link: string | null;
|
|
693
|
-
locked: boolean;
|
|
694
|
-
customData?: Record<string, any>;
|
|
695
|
-
}> & {
|
|
696
|
-
type: "diamond";
|
|
697
|
-
} & {
|
|
698
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
699
|
-
}) | (Readonly<{
|
|
700
|
-
id: string;
|
|
701
|
-
x: number;
|
|
702
|
-
y: number;
|
|
703
|
-
strokeColor: string;
|
|
704
|
-
backgroundColor: string;
|
|
705
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
706
|
-
strokeWidth: number;
|
|
707
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
708
|
-
roundness: null | {
|
|
709
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
710
|
-
value?: number;
|
|
711
|
-
};
|
|
712
|
-
roughness: number;
|
|
713
|
-
opacity: number;
|
|
714
|
-
width: number;
|
|
715
|
-
height: number;
|
|
716
|
-
angle: import("@excalidraw/math").Radians;
|
|
717
|
-
seed: number;
|
|
718
|
-
version: number;
|
|
719
|
-
versionNonce: number;
|
|
720
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
721
|
-
isDeleted: boolean;
|
|
722
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
723
|
-
frameId: string | null;
|
|
724
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
725
|
-
updated: number;
|
|
726
|
-
link: string | null;
|
|
727
|
-
locked: boolean;
|
|
728
|
-
customData?: Record<string, any>;
|
|
729
|
-
}> & {
|
|
730
|
-
type: "ellipse";
|
|
731
|
-
} & {
|
|
732
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
733
|
-
}) | (Readonly<{
|
|
734
|
-
id: string;
|
|
735
|
-
x: number;
|
|
736
|
-
y: number;
|
|
737
|
-
strokeColor: string;
|
|
738
|
-
backgroundColor: string;
|
|
739
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
740
|
-
strokeWidth: number;
|
|
741
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
742
|
-
roundness: null | {
|
|
743
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
744
|
-
value?: number;
|
|
745
|
-
};
|
|
746
|
-
roughness: number;
|
|
747
|
-
opacity: number;
|
|
748
|
-
width: number;
|
|
749
|
-
height: number;
|
|
750
|
-
angle: import("@excalidraw/math").Radians;
|
|
751
|
-
seed: number;
|
|
752
|
-
version: number;
|
|
753
|
-
versionNonce: number;
|
|
754
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
755
|
-
isDeleted: boolean;
|
|
756
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
757
|
-
frameId: string | null;
|
|
758
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
759
|
-
updated: number;
|
|
760
|
-
link: string | null;
|
|
761
|
-
locked: boolean;
|
|
762
|
-
customData?: Record<string, any>;
|
|
763
|
-
}> & Readonly<{
|
|
764
|
-
type: "embeddable";
|
|
765
|
-
}> & {
|
|
766
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
767
|
-
}) | (Readonly<{
|
|
768
|
-
id: string;
|
|
769
|
-
x: number;
|
|
770
|
-
y: number;
|
|
771
|
-
strokeColor: string;
|
|
772
|
-
backgroundColor: string;
|
|
773
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
774
|
-
strokeWidth: number;
|
|
775
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
776
|
-
roundness: null | {
|
|
777
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
778
|
-
value?: number;
|
|
779
|
-
};
|
|
780
|
-
roughness: number;
|
|
781
|
-
opacity: number;
|
|
782
|
-
width: number;
|
|
783
|
-
height: number;
|
|
784
|
-
angle: import("@excalidraw/math").Radians;
|
|
785
|
-
seed: number;
|
|
786
|
-
version: number;
|
|
787
|
-
versionNonce: number;
|
|
788
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
789
|
-
isDeleted: boolean;
|
|
790
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
791
|
-
frameId: string | null;
|
|
792
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
793
|
-
updated: number;
|
|
794
|
-
link: string | null;
|
|
795
|
-
locked: boolean;
|
|
796
|
-
customData?: Record<string, any>;
|
|
797
|
-
}> & Readonly<{
|
|
798
|
-
type: "iframe";
|
|
799
|
-
customData?: {
|
|
800
|
-
generationData?: import("@excalidraw/element/types").MagicGenerationData;
|
|
801
|
-
};
|
|
802
|
-
}> & {
|
|
803
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
804
|
-
}) | (Readonly<{
|
|
805
|
-
id: string;
|
|
806
|
-
x: number;
|
|
807
|
-
y: number;
|
|
808
|
-
strokeColor: string;
|
|
809
|
-
backgroundColor: string;
|
|
810
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
811
|
-
strokeWidth: number;
|
|
812
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
813
|
-
roundness: null | {
|
|
814
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
815
|
-
value?: number;
|
|
816
|
-
};
|
|
817
|
-
roughness: number;
|
|
818
|
-
opacity: number;
|
|
819
|
-
width: number;
|
|
820
|
-
height: number;
|
|
821
|
-
angle: import("@excalidraw/math").Radians;
|
|
822
|
-
seed: number;
|
|
823
|
-
version: number;
|
|
824
|
-
versionNonce: number;
|
|
825
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
826
|
-
isDeleted: boolean;
|
|
827
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
828
|
-
frameId: string | null;
|
|
829
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
830
|
-
updated: number;
|
|
831
|
-
link: string | null;
|
|
832
|
-
locked: boolean;
|
|
833
|
-
customData?: Record<string, any>;
|
|
834
|
-
}> & Readonly<{
|
|
835
|
-
type: "image";
|
|
836
|
-
fileId: import("@excalidraw/element/types").FileId | null;
|
|
837
|
-
status: "pending" | "saved" | "error";
|
|
838
|
-
scale: [number, number];
|
|
839
|
-
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
840
|
-
}> & {
|
|
841
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
842
|
-
}) | (Readonly<{
|
|
843
|
-
id: string;
|
|
844
|
-
x: number;
|
|
845
|
-
y: number;
|
|
846
|
-
strokeColor: string;
|
|
847
|
-
backgroundColor: string;
|
|
848
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
849
|
-
strokeWidth: number;
|
|
850
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
851
|
-
roundness: null | {
|
|
852
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
853
|
-
value?: number;
|
|
854
|
-
};
|
|
855
|
-
roughness: number;
|
|
856
|
-
opacity: number;
|
|
857
|
-
width: number;
|
|
858
|
-
height: number;
|
|
859
|
-
angle: import("@excalidraw/math").Radians;
|
|
860
|
-
seed: number;
|
|
861
|
-
version: number;
|
|
862
|
-
versionNonce: number;
|
|
863
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
864
|
-
isDeleted: boolean;
|
|
865
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
866
|
-
frameId: string | null;
|
|
867
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
868
|
-
updated: number;
|
|
869
|
-
link: string | null;
|
|
870
|
-
locked: boolean;
|
|
871
|
-
customData?: Record<string, any>;
|
|
872
|
-
}> & {
|
|
873
|
-
type: "frame";
|
|
874
|
-
name: string | null;
|
|
875
|
-
} & {
|
|
876
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
877
|
-
}) | (Readonly<{
|
|
878
|
-
id: string;
|
|
879
|
-
x: number;
|
|
880
|
-
y: number;
|
|
881
|
-
strokeColor: string;
|
|
882
|
-
backgroundColor: string;
|
|
883
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
884
|
-
strokeWidth: number;
|
|
885
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
886
|
-
roundness: null | {
|
|
887
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
888
|
-
value?: number;
|
|
889
|
-
};
|
|
890
|
-
roughness: number;
|
|
891
|
-
opacity: number;
|
|
892
|
-
width: number;
|
|
893
|
-
height: number;
|
|
894
|
-
angle: import("@excalidraw/math").Radians;
|
|
895
|
-
seed: number;
|
|
896
|
-
version: number;
|
|
897
|
-
versionNonce: number;
|
|
898
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
899
|
-
isDeleted: boolean;
|
|
900
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
901
|
-
frameId: string | null;
|
|
902
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
903
|
-
updated: number;
|
|
904
|
-
link: string | null;
|
|
905
|
-
locked: boolean;
|
|
906
|
-
customData?: Record<string, any>;
|
|
907
|
-
}> & {
|
|
908
|
-
type: "magicframe";
|
|
909
|
-
name: string | null;
|
|
910
|
-
} & {
|
|
911
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
912
|
-
}) | (Readonly<{
|
|
913
|
-
id: string;
|
|
914
|
-
x: number;
|
|
915
|
-
y: number;
|
|
916
|
-
strokeColor: string;
|
|
917
|
-
backgroundColor: string;
|
|
918
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
919
|
-
strokeWidth: number;
|
|
920
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
921
|
-
roundness: null | {
|
|
922
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
923
|
-
value?: number;
|
|
924
|
-
};
|
|
925
|
-
roughness: number;
|
|
926
|
-
opacity: number;
|
|
927
|
-
width: number;
|
|
928
|
-
height: number;
|
|
929
|
-
angle: import("@excalidraw/math").Radians;
|
|
930
|
-
seed: number;
|
|
931
|
-
version: number;
|
|
932
|
-
versionNonce: number;
|
|
933
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
934
|
-
isDeleted: boolean;
|
|
935
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
936
|
-
frameId: string | null;
|
|
937
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
938
|
-
updated: number;
|
|
939
|
-
link: string | null;
|
|
940
|
-
locked: boolean;
|
|
941
|
-
customData?: Record<string, any>;
|
|
942
|
-
}> & Readonly<{
|
|
943
|
-
type: "text";
|
|
944
|
-
fontSize: number;
|
|
945
|
-
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
946
|
-
text: string;
|
|
947
|
-
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
948
|
-
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
949
|
-
containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
|
|
950
|
-
originalText: string;
|
|
951
|
-
autoResize: boolean;
|
|
952
|
-
lineHeight: number & {
|
|
953
|
-
_brand: "unitlessLineHeight";
|
|
954
|
-
};
|
|
955
|
-
labelPosition?: number | null;
|
|
956
|
-
}> & {
|
|
957
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
958
|
-
}) | (Readonly<{
|
|
959
|
-
id: string;
|
|
960
|
-
x: number;
|
|
961
|
-
y: number;
|
|
962
|
-
strokeColor: string;
|
|
963
|
-
backgroundColor: string;
|
|
964
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
965
|
-
strokeWidth: number;
|
|
966
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
967
|
-
roundness: null | {
|
|
968
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
969
|
-
value?: number;
|
|
970
|
-
};
|
|
971
|
-
roughness: number;
|
|
972
|
-
opacity: number;
|
|
973
|
-
width: number;
|
|
974
|
-
height: number;
|
|
975
|
-
angle: import("@excalidraw/math").Radians;
|
|
976
|
-
seed: number;
|
|
977
|
-
version: number;
|
|
978
|
-
versionNonce: number;
|
|
979
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
980
|
-
isDeleted: boolean;
|
|
981
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
982
|
-
frameId: string | null;
|
|
983
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
984
|
-
updated: number;
|
|
985
|
-
link: string | null;
|
|
986
|
-
locked: boolean;
|
|
987
|
-
customData?: Record<string, any>;
|
|
988
|
-
}> & Readonly<{
|
|
989
|
-
type: "freedraw";
|
|
990
|
-
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
991
|
-
pressures: readonly number[];
|
|
992
|
-
simulatePressure: boolean;
|
|
993
|
-
strokeOptions: import("@excalidraw/element/types").StrokeOptions;
|
|
994
|
-
}> & {
|
|
995
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
996
|
-
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|
|
997
|
-
appState: {
|
|
998
|
-
selectedElementIds: {
|
|
999
|
-
[x: string]: true;
|
|
1000
|
-
};
|
|
1001
|
-
};
|
|
1002
|
-
captureUpdate: "IMMEDIATELY";
|
|
1003
|
-
};
|
|
615
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
616
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => ActionResult;
|
|
1004
617
|
} & {
|
|
1005
618
|
keyTest?: undefined;
|
|
1006
619
|
};
|