@excalidraw/math 0.18.0-1118751 → 0.18.0-1440f2d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/common/src/constants.d.ts +4 -0
- package/dist/types/common/src/utils.d.ts +12 -1
- package/dist/types/element/src/align.d.ts +4 -1
- package/dist/types/element/src/binding.d.ts +70 -0
- package/dist/types/element/src/bounds.d.ts +10 -2
- package/dist/types/element/src/collision.d.ts +13 -0
- package/dist/types/element/src/cropElement.d.ts +36 -4
- package/dist/types/element/src/delta.d.ts +7 -1
- package/dist/types/element/src/distribute.d.ts +4 -1
- package/dist/types/element/src/dragElements.d.ts +8 -3
- package/dist/types/element/src/elbowArrow.d.ts +5 -0
- package/dist/types/element/src/embeddable.d.ts +2 -1
- package/dist/types/element/src/flowchart.d.ts +1 -7
- package/dist/types/element/src/frame.d.ts +19 -1
- package/dist/types/element/src/groups.d.ts +1 -6
- package/dist/types/element/src/image.d.ts +5 -2
- package/dist/types/element/src/index.d.ts +2 -0
- package/dist/types/element/src/linearElementEditor.d.ts +4 -1
- package/dist/types/element/src/listMarker.d.ts +39 -0
- package/dist/types/element/src/newElement.d.ts +17 -1
- package/dist/types/element/src/renderElement.d.ts +10 -0
- package/dist/types/element/src/renderEnvironment.d.ts +66 -0
- package/dist/types/element/src/resizeElements.d.ts +15 -5
- package/dist/types/element/src/selection.d.ts +1 -7
- package/dist/types/element/src/shape.d.ts +2 -0
- package/dist/types/element/src/stickyNote.d.ts +8 -0
- package/dist/types/element/src/textElement.d.ts +10 -2
- package/dist/types/element/src/textMeasurements.d.ts +15 -11
- package/dist/types/element/src/textWrapping.d.ts +3 -2
- package/dist/types/element/src/transform.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +30 -3
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +56 -214
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +76 -16
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +20 -2
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -564
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +14 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +20 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +27 -9
- package/dist/types/excalidraw/actions/actionFrame.d.ts +71 -528
- package/dist/types/excalidraw/actions/actionGroup.d.ts +22 -4
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionLink.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionProperties.d.ts +20 -2
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +11 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +201 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +198 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -1
- package/dist/types/excalidraw/actions/index.d.ts +3 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +9 -7
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -1
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +6 -5
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -1
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -1
- package/dist/types/excalidraw/charts/index.d.ts +2 -1
- package/dist/types/excalidraw/components/Actions.d.ts +9 -2
- package/dist/types/excalidraw/components/App.arrowText.d.ts +5 -39
- package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
- package/dist/types/excalidraw/components/App.d.ts +79 -264
- package/dist/types/excalidraw/components/App.duplicate.d.ts +52 -2
- package/dist/types/excalidraw/components/App.host.d.ts +102 -0
- package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +8 -0
- package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
- package/dist/types/excalidraw/components/App.selectionTool.d.ts +93 -0
- package/dist/types/excalidraw/components/App.text.d.ts +146 -0
- package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +64 -4
- package/dist/types/excalidraw/components/App.wheel.d.ts +6 -2
- package/dist/types/excalidraw/components/App.wrap.d.ts +31 -0
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -1
- package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
- package/dist/types/excalidraw/components/Minimap/Minimap.d.ts +15 -0
- package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
- package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
- package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
- package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
- package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +16 -0
- package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
- package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +0 -1
- package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +13 -2
- package/dist/types/excalidraw/components/icons.d.ts +1 -0
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -0
- package/dist/types/excalidraw/data/blob.d.ts +34 -16
- package/dist/types/excalidraw/data/index.d.ts +3 -3
- package/dist/types/excalidraw/data/json.d.ts +17 -8
- package/dist/types/excalidraw/fonts/Fonts.d.ts +9 -6
- package/dist/types/excalidraw/history.d.ts +10 -4
- package/dist/types/excalidraw/mermaid.d.ts +7 -0
- package/dist/types/excalidraw/reactUtils.d.ts +1 -1
- package/dist/types/excalidraw/renderer/animation.d.ts +11 -4
- package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
- package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
- package/dist/types/excalidraw/scene/export.d.ts +343 -20
- package/dist/types/excalidraw/scene/types.d.ts +23 -1
- package/dist/types/excalidraw/types.d.ts +83 -14
- package/dist/types/excalidraw/viewport.d.ts +23 -1
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -1
- package/dist/types/utils/src/index.d.ts +3 -1
- package/package.json +2 -2
- package/dist/types/utils/src/export.d.ts +0 -36
|
@@ -1,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,35 +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;
|
|
33
35
|
inputDevice: import("../types").InputDevice;
|
|
34
36
|
suggestedBinding: {
|
|
35
37
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
36
38
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
37
39
|
} | null;
|
|
38
|
-
|
|
40
|
+
textToolHover: {
|
|
41
|
+
type: "text";
|
|
42
|
+
elementId: ExcalidrawElement["id"];
|
|
43
|
+
} | {
|
|
44
|
+
type: "container";
|
|
45
|
+
elementId: ExcalidrawElement["id"];
|
|
46
|
+
} | {
|
|
47
|
+
type: "arrow";
|
|
39
48
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
40
49
|
anchor: "start" | "end" | "label";
|
|
41
50
|
} | null;
|
|
42
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<
|
|
51
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawFrameLikeElement> | null;
|
|
43
52
|
frameRendering: {
|
|
44
53
|
enabled: boolean;
|
|
45
54
|
name: boolean;
|
|
46
55
|
outline: boolean;
|
|
47
56
|
clip: boolean;
|
|
48
57
|
};
|
|
49
|
-
editingFrame:
|
|
50
|
-
elementsToHighlight: readonly
|
|
58
|
+
editingFrame: ExcalidrawFrameLikeElement["id"] | null;
|
|
59
|
+
elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
|
|
51
60
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
52
61
|
activeTool: {
|
|
53
62
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -131,6 +140,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
131
140
|
duration?: number;
|
|
132
141
|
} | null;
|
|
133
142
|
zenModeEnabled: boolean;
|
|
143
|
+
minimapEnabled: boolean;
|
|
134
144
|
theme: import("@excalidraw/element/types").Theme;
|
|
135
145
|
gridSize: number;
|
|
136
146
|
gridStep: number;
|
|
@@ -181,10 +191,10 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
181
191
|
captureUpdate: "IMMEDIATELY";
|
|
182
192
|
} | {
|
|
183
193
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
184
|
-
appState: Readonly<
|
|
194
|
+
appState: Readonly<AppState>;
|
|
185
195
|
captureUpdate: "EVENTUALLY";
|
|
186
196
|
};
|
|
187
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
197
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
188
198
|
} & {
|
|
189
199
|
keyTest?: undefined;
|
|
190
200
|
};
|
|
@@ -194,7 +204,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
194
204
|
trackEvent: {
|
|
195
205
|
category: "history";
|
|
196
206
|
};
|
|
197
|
-
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) => {
|
|
198
208
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
199
209
|
appState: {
|
|
200
210
|
selectedElementIds: {
|
|
@@ -209,35 +219,43 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
209
219
|
isLoading: boolean;
|
|
210
220
|
errorMessage: React.ReactNode;
|
|
211
221
|
activeEmbeddable: {
|
|
212
|
-
element:
|
|
222
|
+
element: NonDeletedExcalidrawElement;
|
|
213
223
|
state: "hover" | "active";
|
|
214
224
|
} | null;
|
|
215
225
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
216
|
-
resizingElement:
|
|
226
|
+
resizingElement: NonDeletedExcalidrawElement | null;
|
|
217
227
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
218
|
-
selectionElement:
|
|
228
|
+
selectionElement: NonDeletedExcalidrawElement | null;
|
|
219
229
|
isBindingEnabled: boolean;
|
|
220
230
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
221
231
|
bindingPreference: "enabled" | "disabled";
|
|
222
232
|
isMidpointSnappingEnabled: boolean;
|
|
233
|
+
showHints: boolean;
|
|
223
234
|
inputDevice: import("../types").InputDevice;
|
|
224
235
|
suggestedBinding: {
|
|
225
236
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
226
237
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
227
238
|
} | null;
|
|
228
|
-
|
|
239
|
+
textToolHover: {
|
|
240
|
+
type: "text";
|
|
241
|
+
elementId: ExcalidrawElement["id"];
|
|
242
|
+
} | {
|
|
243
|
+
type: "container";
|
|
244
|
+
elementId: ExcalidrawElement["id"];
|
|
245
|
+
} | {
|
|
246
|
+
type: "arrow";
|
|
229
247
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
230
248
|
anchor: "start" | "end" | "label";
|
|
231
249
|
} | null;
|
|
232
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<
|
|
250
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawFrameLikeElement> | null;
|
|
233
251
|
frameRendering: {
|
|
234
252
|
enabled: boolean;
|
|
235
253
|
name: boolean;
|
|
236
254
|
outline: boolean;
|
|
237
255
|
clip: boolean;
|
|
238
256
|
};
|
|
239
|
-
editingFrame:
|
|
240
|
-
elementsToHighlight: readonly
|
|
257
|
+
editingFrame: ExcalidrawFrameLikeElement["id"] | null;
|
|
258
|
+
elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
|
|
241
259
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
242
260
|
activeTool: {
|
|
243
261
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -321,6 +339,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
321
339
|
duration?: number;
|
|
322
340
|
} | null;
|
|
323
341
|
zenModeEnabled: boolean;
|
|
342
|
+
minimapEnabled: boolean;
|
|
324
343
|
theme: import("@excalidraw/element/types").Theme;
|
|
325
344
|
gridSize: number;
|
|
326
345
|
gridStep: number;
|
|
@@ -371,10 +390,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
371
390
|
captureUpdate: "IMMEDIATELY";
|
|
372
391
|
} | {
|
|
373
392
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
374
|
-
appState: Readonly<
|
|
393
|
+
appState: Readonly<AppState>;
|
|
375
394
|
captureUpdate: "EVENTUALLY";
|
|
376
395
|
};
|
|
377
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
396
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
378
397
|
} & {
|
|
379
398
|
keyTest?: undefined;
|
|
380
399
|
};
|
|
@@ -385,7 +404,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
385
404
|
trackEvent: {
|
|
386
405
|
category: "canvas";
|
|
387
406
|
};
|
|
388
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<
|
|
407
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
389
408
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
390
409
|
appState: {
|
|
391
410
|
frameRendering: {
|
|
@@ -403,29 +422,37 @@ export declare const actionupdateFrameRendering: {
|
|
|
403
422
|
isLoading: boolean;
|
|
404
423
|
errorMessage: React.ReactNode;
|
|
405
424
|
activeEmbeddable: {
|
|
406
|
-
element:
|
|
425
|
+
element: NonDeletedExcalidrawElement;
|
|
407
426
|
state: "hover" | "active";
|
|
408
427
|
} | null;
|
|
409
428
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
410
|
-
resizingElement:
|
|
429
|
+
resizingElement: NonDeletedExcalidrawElement | null;
|
|
411
430
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
412
|
-
selectionElement:
|
|
431
|
+
selectionElement: NonDeletedExcalidrawElement | null;
|
|
413
432
|
isBindingEnabled: boolean;
|
|
414
433
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
415
434
|
bindingPreference: "enabled" | "disabled";
|
|
416
435
|
isMidpointSnappingEnabled: boolean;
|
|
436
|
+
showHints: boolean;
|
|
417
437
|
inputDevice: import("../types").InputDevice;
|
|
418
438
|
suggestedBinding: {
|
|
419
439
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
420
440
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
421
441
|
} | null;
|
|
422
|
-
|
|
442
|
+
textToolHover: {
|
|
443
|
+
type: "text";
|
|
444
|
+
elementId: ExcalidrawElement["id"];
|
|
445
|
+
} | {
|
|
446
|
+
type: "container";
|
|
447
|
+
elementId: ExcalidrawElement["id"];
|
|
448
|
+
} | {
|
|
449
|
+
type: "arrow";
|
|
423
450
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
424
451
|
anchor: "start" | "end" | "label";
|
|
425
452
|
} | null;
|
|
426
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<
|
|
427
|
-
editingFrame:
|
|
428
|
-
elementsToHighlight: readonly
|
|
453
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawFrameLikeElement> | null;
|
|
454
|
+
editingFrame: ExcalidrawFrameLikeElement["id"] | null;
|
|
455
|
+
elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
|
|
429
456
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
430
457
|
activeTool: {
|
|
431
458
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -512,6 +539,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
512
539
|
duration?: number;
|
|
513
540
|
} | null;
|
|
514
541
|
zenModeEnabled: boolean;
|
|
542
|
+
minimapEnabled: boolean;
|
|
515
543
|
theme: import("@excalidraw/element/types").Theme;
|
|
516
544
|
gridSize: number;
|
|
517
545
|
gridStep: number;
|
|
@@ -565,509 +593,24 @@ export declare const actionupdateFrameRendering: {
|
|
|
565
593
|
} & {
|
|
566
594
|
keyTest?: undefined;
|
|
567
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
|
+
/** wraps the selection in a new frame — edge to edge when it's an image */
|
|
605
|
+
export declare const wrapInFrame: (elements: readonly ExcalidrawElement[], appState: AppState, selectedElements: NonDeletedExcalidrawElement[], app: AppClassProperties) => ActionResult;
|
|
568
606
|
export declare const actionWrapSelectionInFrame: {
|
|
569
607
|
name: "wrapSelectionInFrame";
|
|
570
|
-
label:
|
|
608
|
+
label: (elements: readonly ExcalidrawElement[], appState: Readonly<UIAppState>, app: AppClassProperties) => "labels.removeFrame" | "labels.wrapSelectionInFrame";
|
|
571
609
|
trackEvent: {
|
|
572
610
|
category: "element";
|
|
573
611
|
};
|
|
574
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
575
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<
|
|
576
|
-
elements: ((Readonly<{
|
|
577
|
-
id: string;
|
|
578
|
-
x: number;
|
|
579
|
-
y: number;
|
|
580
|
-
strokeColor: string;
|
|
581
|
-
backgroundColor: string;
|
|
582
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
583
|
-
strokeWidth: number;
|
|
584
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
585
|
-
roundness: null | {
|
|
586
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
587
|
-
value?: number;
|
|
588
|
-
};
|
|
589
|
-
roughness: number;
|
|
590
|
-
opacity: number;
|
|
591
|
-
width: number;
|
|
592
|
-
height: number;
|
|
593
|
-
angle: import("@excalidraw/math").Radians;
|
|
594
|
-
seed: number;
|
|
595
|
-
version: number;
|
|
596
|
-
versionNonce: number;
|
|
597
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
598
|
-
isDeleted: boolean;
|
|
599
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
600
|
-
frameId: string | null;
|
|
601
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
602
|
-
updated: number;
|
|
603
|
-
created: number | null;
|
|
604
|
-
link: string | null;
|
|
605
|
-
locked: boolean;
|
|
606
|
-
customData?: Record<string, any>;
|
|
607
|
-
}> & Readonly<{
|
|
608
|
-
type: "line" | "arrow";
|
|
609
|
-
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
610
|
-
startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
611
|
-
endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
612
|
-
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
613
|
-
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
614
|
-
}> & {
|
|
615
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
616
|
-
}) | (Readonly<{
|
|
617
|
-
id: string;
|
|
618
|
-
x: number;
|
|
619
|
-
y: number;
|
|
620
|
-
strokeColor: string;
|
|
621
|
-
backgroundColor: string;
|
|
622
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
623
|
-
strokeWidth: number;
|
|
624
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
625
|
-
roundness: null | {
|
|
626
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
627
|
-
value?: number;
|
|
628
|
-
};
|
|
629
|
-
roughness: number;
|
|
630
|
-
opacity: number;
|
|
631
|
-
width: number;
|
|
632
|
-
height: number;
|
|
633
|
-
angle: import("@excalidraw/math").Radians;
|
|
634
|
-
seed: number;
|
|
635
|
-
version: number;
|
|
636
|
-
versionNonce: number;
|
|
637
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
638
|
-
isDeleted: boolean;
|
|
639
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
640
|
-
frameId: string | null;
|
|
641
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
642
|
-
updated: number;
|
|
643
|
-
created: number | null;
|
|
644
|
-
link: string | null;
|
|
645
|
-
locked: boolean;
|
|
646
|
-
customData?: Record<string, any>;
|
|
647
|
-
}> & {
|
|
648
|
-
type: "selection";
|
|
649
|
-
} & {
|
|
650
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
651
|
-
}) | (Readonly<{
|
|
652
|
-
id: string;
|
|
653
|
-
x: number;
|
|
654
|
-
y: number;
|
|
655
|
-
strokeColor: string;
|
|
656
|
-
backgroundColor: string;
|
|
657
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
658
|
-
strokeWidth: number;
|
|
659
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
660
|
-
roundness: null | {
|
|
661
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
662
|
-
value?: number;
|
|
663
|
-
};
|
|
664
|
-
roughness: number;
|
|
665
|
-
opacity: number;
|
|
666
|
-
width: number;
|
|
667
|
-
height: number;
|
|
668
|
-
angle: import("@excalidraw/math").Radians;
|
|
669
|
-
seed: number;
|
|
670
|
-
version: number;
|
|
671
|
-
versionNonce: number;
|
|
672
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
673
|
-
isDeleted: boolean;
|
|
674
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
675
|
-
frameId: string | null;
|
|
676
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
677
|
-
updated: number;
|
|
678
|
-
created: number | null;
|
|
679
|
-
link: string | null;
|
|
680
|
-
locked: boolean;
|
|
681
|
-
customData?: Record<string, any>;
|
|
682
|
-
}> & {
|
|
683
|
-
type: "rectangle";
|
|
684
|
-
} & {
|
|
685
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
686
|
-
}) | (Readonly<{
|
|
687
|
-
id: string;
|
|
688
|
-
x: number;
|
|
689
|
-
y: number;
|
|
690
|
-
strokeColor: string;
|
|
691
|
-
backgroundColor: string;
|
|
692
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
693
|
-
strokeWidth: number;
|
|
694
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
695
|
-
roundness: null | {
|
|
696
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
697
|
-
value?: number;
|
|
698
|
-
};
|
|
699
|
-
roughness: number;
|
|
700
|
-
opacity: number;
|
|
701
|
-
width: number;
|
|
702
|
-
height: number;
|
|
703
|
-
angle: import("@excalidraw/math").Radians;
|
|
704
|
-
seed: number;
|
|
705
|
-
version: number;
|
|
706
|
-
versionNonce: number;
|
|
707
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
708
|
-
isDeleted: boolean;
|
|
709
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
710
|
-
frameId: string | null;
|
|
711
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
712
|
-
updated: number;
|
|
713
|
-
created: number | null;
|
|
714
|
-
link: string | null;
|
|
715
|
-
locked: boolean;
|
|
716
|
-
customData?: Record<string, any>;
|
|
717
|
-
}> & Readonly<{
|
|
718
|
-
type: "stickynote";
|
|
719
|
-
baseHeight: number;
|
|
720
|
-
}> & {
|
|
721
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
722
|
-
}) | (Readonly<{
|
|
723
|
-
id: string;
|
|
724
|
-
x: number;
|
|
725
|
-
y: number;
|
|
726
|
-
strokeColor: string;
|
|
727
|
-
backgroundColor: string;
|
|
728
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
729
|
-
strokeWidth: number;
|
|
730
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
731
|
-
roundness: null | {
|
|
732
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
733
|
-
value?: number;
|
|
734
|
-
};
|
|
735
|
-
roughness: number;
|
|
736
|
-
opacity: number;
|
|
737
|
-
width: number;
|
|
738
|
-
height: number;
|
|
739
|
-
angle: import("@excalidraw/math").Radians;
|
|
740
|
-
seed: number;
|
|
741
|
-
version: number;
|
|
742
|
-
versionNonce: number;
|
|
743
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
744
|
-
isDeleted: boolean;
|
|
745
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
746
|
-
frameId: string | null;
|
|
747
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
748
|
-
updated: number;
|
|
749
|
-
created: number | null;
|
|
750
|
-
link: string | null;
|
|
751
|
-
locked: boolean;
|
|
752
|
-
customData?: Record<string, any>;
|
|
753
|
-
}> & {
|
|
754
|
-
type: "diamond";
|
|
755
|
-
} & {
|
|
756
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
757
|
-
}) | (Readonly<{
|
|
758
|
-
id: string;
|
|
759
|
-
x: number;
|
|
760
|
-
y: number;
|
|
761
|
-
strokeColor: string;
|
|
762
|
-
backgroundColor: string;
|
|
763
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
764
|
-
strokeWidth: number;
|
|
765
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
766
|
-
roundness: null | {
|
|
767
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
768
|
-
value?: number;
|
|
769
|
-
};
|
|
770
|
-
roughness: number;
|
|
771
|
-
opacity: number;
|
|
772
|
-
width: number;
|
|
773
|
-
height: number;
|
|
774
|
-
angle: import("@excalidraw/math").Radians;
|
|
775
|
-
seed: number;
|
|
776
|
-
version: number;
|
|
777
|
-
versionNonce: number;
|
|
778
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
779
|
-
isDeleted: boolean;
|
|
780
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
781
|
-
frameId: string | null;
|
|
782
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
783
|
-
updated: number;
|
|
784
|
-
created: number | null;
|
|
785
|
-
link: string | null;
|
|
786
|
-
locked: boolean;
|
|
787
|
-
customData?: Record<string, any>;
|
|
788
|
-
}> & {
|
|
789
|
-
type: "ellipse";
|
|
790
|
-
} & {
|
|
791
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
792
|
-
}) | (Readonly<{
|
|
793
|
-
id: string;
|
|
794
|
-
x: number;
|
|
795
|
-
y: number;
|
|
796
|
-
strokeColor: string;
|
|
797
|
-
backgroundColor: string;
|
|
798
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
799
|
-
strokeWidth: number;
|
|
800
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
801
|
-
roundness: null | {
|
|
802
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
803
|
-
value?: number;
|
|
804
|
-
};
|
|
805
|
-
roughness: number;
|
|
806
|
-
opacity: number;
|
|
807
|
-
width: number;
|
|
808
|
-
height: number;
|
|
809
|
-
angle: import("@excalidraw/math").Radians;
|
|
810
|
-
seed: number;
|
|
811
|
-
version: number;
|
|
812
|
-
versionNonce: number;
|
|
813
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
814
|
-
isDeleted: boolean;
|
|
815
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
816
|
-
frameId: string | null;
|
|
817
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
818
|
-
updated: number;
|
|
819
|
-
created: number | null;
|
|
820
|
-
link: string | null;
|
|
821
|
-
locked: boolean;
|
|
822
|
-
customData?: Record<string, any>;
|
|
823
|
-
}> & Readonly<{
|
|
824
|
-
type: "embeddable";
|
|
825
|
-
}> & {
|
|
826
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
827
|
-
}) | (Readonly<{
|
|
828
|
-
id: string;
|
|
829
|
-
x: number;
|
|
830
|
-
y: number;
|
|
831
|
-
strokeColor: string;
|
|
832
|
-
backgroundColor: string;
|
|
833
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
834
|
-
strokeWidth: number;
|
|
835
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
836
|
-
roundness: null | {
|
|
837
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
838
|
-
value?: number;
|
|
839
|
-
};
|
|
840
|
-
roughness: number;
|
|
841
|
-
opacity: number;
|
|
842
|
-
width: number;
|
|
843
|
-
height: number;
|
|
844
|
-
angle: import("@excalidraw/math").Radians;
|
|
845
|
-
seed: number;
|
|
846
|
-
version: number;
|
|
847
|
-
versionNonce: number;
|
|
848
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
849
|
-
isDeleted: boolean;
|
|
850
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
851
|
-
frameId: string | null;
|
|
852
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
853
|
-
updated: number;
|
|
854
|
-
created: number | null;
|
|
855
|
-
link: string | null;
|
|
856
|
-
locked: boolean;
|
|
857
|
-
customData?: Record<string, any>;
|
|
858
|
-
}> & Readonly<{
|
|
859
|
-
type: "iframe";
|
|
860
|
-
customData?: {
|
|
861
|
-
generationData?: import("@excalidraw/element/types").MagicGenerationData;
|
|
862
|
-
};
|
|
863
|
-
}> & {
|
|
864
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
865
|
-
}) | (Readonly<{
|
|
866
|
-
id: string;
|
|
867
|
-
x: number;
|
|
868
|
-
y: number;
|
|
869
|
-
strokeColor: string;
|
|
870
|
-
backgroundColor: string;
|
|
871
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
872
|
-
strokeWidth: number;
|
|
873
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
874
|
-
roundness: null | {
|
|
875
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
876
|
-
value?: number;
|
|
877
|
-
};
|
|
878
|
-
roughness: number;
|
|
879
|
-
opacity: number;
|
|
880
|
-
width: number;
|
|
881
|
-
height: number;
|
|
882
|
-
angle: import("@excalidraw/math").Radians;
|
|
883
|
-
seed: number;
|
|
884
|
-
version: number;
|
|
885
|
-
versionNonce: number;
|
|
886
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
887
|
-
isDeleted: boolean;
|
|
888
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
889
|
-
frameId: string | null;
|
|
890
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
891
|
-
updated: number;
|
|
892
|
-
created: number | null;
|
|
893
|
-
link: string | null;
|
|
894
|
-
locked: boolean;
|
|
895
|
-
customData?: Record<string, any>;
|
|
896
|
-
}> & Readonly<{
|
|
897
|
-
type: "image";
|
|
898
|
-
fileId: import("@excalidraw/element/types").FileId | null;
|
|
899
|
-
status: "pending" | "saved" | "error";
|
|
900
|
-
scale: [number, number];
|
|
901
|
-
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
902
|
-
}> & {
|
|
903
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
904
|
-
}) | (Readonly<{
|
|
905
|
-
id: string;
|
|
906
|
-
x: number;
|
|
907
|
-
y: number;
|
|
908
|
-
strokeColor: string;
|
|
909
|
-
backgroundColor: string;
|
|
910
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
911
|
-
strokeWidth: number;
|
|
912
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
913
|
-
roundness: null | {
|
|
914
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
915
|
-
value?: number;
|
|
916
|
-
};
|
|
917
|
-
roughness: number;
|
|
918
|
-
opacity: number;
|
|
919
|
-
width: number;
|
|
920
|
-
height: number;
|
|
921
|
-
angle: import("@excalidraw/math").Radians;
|
|
922
|
-
seed: number;
|
|
923
|
-
version: number;
|
|
924
|
-
versionNonce: number;
|
|
925
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
926
|
-
isDeleted: boolean;
|
|
927
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
928
|
-
frameId: string | null;
|
|
929
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
930
|
-
updated: number;
|
|
931
|
-
created: number | null;
|
|
932
|
-
link: string | null;
|
|
933
|
-
locked: boolean;
|
|
934
|
-
customData?: Record<string, any>;
|
|
935
|
-
}> & {
|
|
936
|
-
type: "frame";
|
|
937
|
-
name: string | null;
|
|
938
|
-
} & {
|
|
939
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
940
|
-
}) | (Readonly<{
|
|
941
|
-
id: string;
|
|
942
|
-
x: number;
|
|
943
|
-
y: number;
|
|
944
|
-
strokeColor: string;
|
|
945
|
-
backgroundColor: string;
|
|
946
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
947
|
-
strokeWidth: number;
|
|
948
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
949
|
-
roundness: null | {
|
|
950
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
951
|
-
value?: number;
|
|
952
|
-
};
|
|
953
|
-
roughness: number;
|
|
954
|
-
opacity: number;
|
|
955
|
-
width: number;
|
|
956
|
-
height: number;
|
|
957
|
-
angle: import("@excalidraw/math").Radians;
|
|
958
|
-
seed: number;
|
|
959
|
-
version: number;
|
|
960
|
-
versionNonce: number;
|
|
961
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
962
|
-
isDeleted: boolean;
|
|
963
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
964
|
-
frameId: string | null;
|
|
965
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
966
|
-
updated: number;
|
|
967
|
-
created: number | null;
|
|
968
|
-
link: string | null;
|
|
969
|
-
locked: boolean;
|
|
970
|
-
customData?: Record<string, any>;
|
|
971
|
-
}> & {
|
|
972
|
-
type: "magicframe";
|
|
973
|
-
name: string | null;
|
|
974
|
-
} & {
|
|
975
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
976
|
-
}) | (Readonly<{
|
|
977
|
-
id: string;
|
|
978
|
-
x: number;
|
|
979
|
-
y: number;
|
|
980
|
-
strokeColor: string;
|
|
981
|
-
backgroundColor: string;
|
|
982
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
983
|
-
strokeWidth: number;
|
|
984
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
985
|
-
roundness: null | {
|
|
986
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
987
|
-
value?: number;
|
|
988
|
-
};
|
|
989
|
-
roughness: number;
|
|
990
|
-
opacity: number;
|
|
991
|
-
width: number;
|
|
992
|
-
height: number;
|
|
993
|
-
angle: import("@excalidraw/math").Radians;
|
|
994
|
-
seed: number;
|
|
995
|
-
version: number;
|
|
996
|
-
versionNonce: number;
|
|
997
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
998
|
-
isDeleted: boolean;
|
|
999
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1000
|
-
frameId: string | null;
|
|
1001
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1002
|
-
updated: number;
|
|
1003
|
-
created: number | null;
|
|
1004
|
-
link: string | null;
|
|
1005
|
-
locked: boolean;
|
|
1006
|
-
customData?: Record<string, any>;
|
|
1007
|
-
}> & Readonly<{
|
|
1008
|
-
type: "text";
|
|
1009
|
-
fontSize: number;
|
|
1010
|
-
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1011
|
-
baseFontSize: number | null;
|
|
1012
|
-
text: string;
|
|
1013
|
-
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
1014
|
-
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
1015
|
-
containerId: import("@excalidraw/element/types").ExcalidrawTextContainer["id"] | null;
|
|
1016
|
-
originalText: string;
|
|
1017
|
-
autoResize: boolean;
|
|
1018
|
-
lineHeight: number & {
|
|
1019
|
-
_brand: "unitlessLineHeight";
|
|
1020
|
-
};
|
|
1021
|
-
labelPosition?: number | null;
|
|
1022
|
-
}> & {
|
|
1023
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1024
|
-
}) | (Readonly<{
|
|
1025
|
-
id: string;
|
|
1026
|
-
x: number;
|
|
1027
|
-
y: number;
|
|
1028
|
-
strokeColor: string;
|
|
1029
|
-
backgroundColor: string;
|
|
1030
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1031
|
-
strokeWidth: number;
|
|
1032
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1033
|
-
roundness: null | {
|
|
1034
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
1035
|
-
value?: number;
|
|
1036
|
-
};
|
|
1037
|
-
roughness: number;
|
|
1038
|
-
opacity: number;
|
|
1039
|
-
width: number;
|
|
1040
|
-
height: number;
|
|
1041
|
-
angle: import("@excalidraw/math").Radians;
|
|
1042
|
-
seed: number;
|
|
1043
|
-
version: number;
|
|
1044
|
-
versionNonce: number;
|
|
1045
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1046
|
-
isDeleted: boolean;
|
|
1047
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1048
|
-
frameId: string | null;
|
|
1049
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1050
|
-
updated: number;
|
|
1051
|
-
created: number | null;
|
|
1052
|
-
link: string | null;
|
|
1053
|
-
locked: boolean;
|
|
1054
|
-
customData?: Record<string, any>;
|
|
1055
|
-
}> & Readonly<{
|
|
1056
|
-
type: "freedraw";
|
|
1057
|
-
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1058
|
-
pressures: readonly number[];
|
|
1059
|
-
simulatePressure: boolean;
|
|
1060
|
-
strokeOptions: import("@excalidraw/element/types").StrokeOptions;
|
|
1061
|
-
}> & {
|
|
1062
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1063
|
-
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|
|
1064
|
-
appState: {
|
|
1065
|
-
selectedElementIds: {
|
|
1066
|
-
[x: string]: true;
|
|
1067
|
-
};
|
|
1068
|
-
};
|
|
1069
|
-
captureUpdate: "IMMEDIATELY";
|
|
1070
|
-
};
|
|
612
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
613
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => ActionResult;
|
|
1071
614
|
} & {
|
|
1072
615
|
keyTest?: undefined;
|
|
1073
616
|
};
|