@excalidraw/excalidraw 0.18.0-c4c0649 → 0.18.0-c6f8ef9
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/chunk-CP5DND7P.js +7 -0
- package/dist/dev/chunk-CP5DND7P.js.map +7 -0
- package/dist/dev/chunk-CRKRRBMD.js +5677 -0
- package/dist/dev/chunk-CRKRRBMD.js.map +7 -0
- package/dist/dev/{chunk-JCUIYZXF.js → chunk-QF5FRM6O.js} +6 -2
- package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
- package/dist/dev/data/{image-SLEZBMLG.js → image-IWGLHPIX.js} +3 -3
- package/dist/dev/index.css +51 -20
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +6874 -4280
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-ZDTPSZNL.js → en-SMAPCEOQ.js} +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/chunk-A66AFZZU.js +7 -0
- package/dist/prod/chunk-HHV2PJKY.js +4 -0
- package/dist/prod/{chunk-GCFVWREF.js → chunk-I4UNSFV6.js} +4 -4
- package/dist/prod/data/image-4SM4COIL.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +25 -18
- package/dist/prod/locales/{en-MHZ26NAR.js → en-TYY6KWIJ.js} +1 -1
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/src/constants.d.ts +19 -3
- package/dist/types/common/src/utils.d.ts +3 -5
- package/dist/types/element/src/Scene.d.ts +7 -3
- package/dist/types/element/src/align.d.ts +2 -1
- package/dist/types/element/src/binding.d.ts +10 -7
- package/dist/types/element/src/bounds.d.ts +11 -3
- package/dist/types/element/src/collision.d.ts +18 -12
- package/dist/types/element/src/cropElement.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +42 -9
- package/dist/types/element/src/distance.d.ts +2 -2
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/fractionalIndex.d.ts +8 -2
- package/dist/types/element/src/frame.d.ts +2 -2
- package/dist/types/element/src/groups.d.ts +1 -0
- package/dist/types/element/src/index.d.ts +1 -3
- package/dist/types/element/src/linearElementEditor.d.ts +14 -23
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +2 -1
- package/dist/types/element/src/resizeElements.d.ts +1 -0
- package/dist/types/element/src/selection.d.ts +1 -1
- package/dist/types/element/src/shape.d.ts +42 -0
- package/dist/types/element/src/sizeHelpers.d.ts +2 -1
- package/dist/types/element/src/store.d.ts +19 -9
- package/dist/types/element/src/transformHandles.d.ts +4 -4
- package/dist/types/element/src/typeChecks.d.ts +15 -1
- package/dist/types/element/src/types.d.ts +8 -3
- package/dist/types/element/src/utils.d.ts +16 -6
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +21 -15
- package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +14 -10
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +180 -154
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +50 -36
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -5
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +27 -20
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -4
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +29 -26
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -5
- package/dist/types/excalidraw/actions/actionExport.d.ts +147 -129
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +65 -20
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +78 -70
- package/dist/types/excalidraw/actions/actionGroup.d.ts +20 -16
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +533 -7
- package/dist/types/excalidraw/actions/actionLink.d.ts +8 -6
- package/dist/types/excalidraw/actions/actionMenu.d.ts +22 -16
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -10
- package/dist/types/excalidraw/actions/actionProperties.d.ts +119 -81
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -8
- package/dist/types/excalidraw/actions/actionStyles.d.ts +11 -9
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +9 -7
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +9 -7
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +8 -6
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +9 -7
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +9 -7
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +9 -7
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/types.d.ts +2 -1
- package/dist/types/excalidraw/appState.d.ts +29 -20
- package/dist/types/excalidraw/components/Actions.d.ts +0 -4
- package/dist/types/excalidraw/components/App.d.ts +15 -16
- package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
- package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
- package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
- package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -0
- package/dist/types/excalidraw/components/icons.d.ts +2 -0
- package/dist/types/excalidraw/components/shapes.d.ts +1 -1
- package/dist/types/excalidraw/data/blob.d.ts +1 -1
- package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
- package/dist/types/excalidraw/data/restore.d.ts +6 -1
- package/dist/types/excalidraw/eraser/index.d.ts +0 -2
- package/dist/types/excalidraw/history.d.ts +21 -5
- package/dist/types/excalidraw/index.d.ts +2 -1
- package/dist/types/excalidraw/lasso/index.d.ts +1 -0
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
- package/dist/types/excalidraw/renderer/helpers.d.ts +4 -4
- package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +0 -1
- package/dist/types/excalidraw/types.d.ts +15 -8
- package/dist/types/math/src/angle.d.ts +2 -0
- package/dist/types/math/src/constants.d.ts +3 -0
- package/dist/types/math/src/curve.d.ts +32 -0
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/point.d.ts +1 -1
- package/dist/types/math/src/rectangle.d.ts +2 -0
- package/dist/types/math/src/vector.d.ts +4 -2
- package/history.ts +107 -44
- package/package.json +12 -9
- package/dist/dev/chunk-HNRFOURL.js +0 -23482
- package/dist/dev/chunk-HNRFOURL.js.map +0 -7
- package/dist/dev/chunk-JCUIYZXF.js.map +0 -7
- package/dist/dev/chunk-VKWYDXFZ.js +0 -7
- package/dist/dev/chunk-VKWYDXFZ.js.map +0 -7
- package/dist/prod/chunk-G6SRO7HP.js +0 -7
- package/dist/prod/chunk-M3D5LUUK.js +0 -33
- package/dist/prod/data/image-PMKVN4IF.js +0 -1
- package/dist/types/element/src/Shape.d.ts +0 -17
- package/dist/types/element/src/ShapeCache.d.ts +0 -25
- package/dist/types/element/src/shapes.d.ts +0 -23
- package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
- package/dist/types/excalidraw/visualdebug.d.ts +0 -41
- package/dist/types/utils/src/collision.d.ts +0 -8
- /package/dist/dev/data/{image-SLEZBMLG.js.map → image-IWGLHPIX.js.map} +0 -0
- /package/dist/dev/locales/{en-ZDTPSZNL.js.map → en-SMAPCEOQ.js.map} +0 -0
|
@@ -1,15 +1,56 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
|
+
import type { LocalPoint } from "@excalidraw/math";
|
|
4
|
+
import type { ExcalidrawElement, ExcalidrawLinearElement, NonDeleted } from "@excalidraw/element/types";
|
|
3
5
|
import type { AppState } from "../types";
|
|
4
6
|
export declare const actionFinalize: {
|
|
5
7
|
name: "finalize";
|
|
6
8
|
label: string;
|
|
7
9
|
trackEvent: false;
|
|
8
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>,
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, data: any, app: import("../types").AppClassProperties) => {
|
|
11
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
12
|
+
appState: {
|
|
13
|
+
selectedLinearElement: {
|
|
14
|
+
selectedPointsIndices: null;
|
|
15
|
+
elementId: string & {
|
|
16
|
+
_brand: "excalidrawLinearElementId";
|
|
17
|
+
};
|
|
18
|
+
pointerDownState: Readonly<{
|
|
19
|
+
prevSelectedPointsIndices: readonly number[] | null;
|
|
20
|
+
lastClickedPoint: number;
|
|
21
|
+
lastClickedIsEndPoint: boolean;
|
|
22
|
+
origin: Readonly<{
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
}> | null;
|
|
26
|
+
segmentMidpoint: {
|
|
27
|
+
value: import("@excalidraw/math").GlobalPoint | null;
|
|
28
|
+
index: number | null;
|
|
29
|
+
added: boolean;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
isDragging: boolean;
|
|
33
|
+
lastUncommittedPoint: LocalPoint | null;
|
|
34
|
+
pointerOffset: Readonly<{
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
}>;
|
|
38
|
+
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
39
|
+
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
40
|
+
hoverPointIndex: number;
|
|
41
|
+
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
42
|
+
elbowed: boolean;
|
|
43
|
+
customLineAngle: number | null;
|
|
44
|
+
isEditing: boolean;
|
|
45
|
+
};
|
|
46
|
+
suggestedBindings: never[];
|
|
47
|
+
};
|
|
48
|
+
captureUpdate: "IMMEDIATELY";
|
|
49
|
+
} | {
|
|
9
50
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[] | undefined;
|
|
10
51
|
appState: {
|
|
11
52
|
cursorButton: "up";
|
|
12
|
-
|
|
53
|
+
selectedLinearElement: LinearElementEditor;
|
|
13
54
|
contextMenu: {
|
|
14
55
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
15
56
|
top: number;
|
|
@@ -20,16 +61,16 @@ export declare const actionFinalize: {
|
|
|
20
61
|
errorMessage: import("react").ReactNode;
|
|
21
62
|
activeEmbeddable: {
|
|
22
63
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
23
|
-
state: "
|
|
64
|
+
state: "active" | "hover";
|
|
24
65
|
} | null;
|
|
25
|
-
newElement:
|
|
66
|
+
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
26
67
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
27
|
-
multiElement:
|
|
68
|
+
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
28
69
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
70
|
isBindingEnabled: boolean;
|
|
30
|
-
startBoundElement:
|
|
71
|
+
startBoundElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
31
72
|
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
32
|
-
frameToHighlight:
|
|
73
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
33
74
|
frameRendering: {
|
|
34
75
|
enabled: boolean;
|
|
35
76
|
name: boolean;
|
|
@@ -37,7 +78,7 @@ export declare const actionFinalize: {
|
|
|
37
78
|
clip: boolean;
|
|
38
79
|
};
|
|
39
80
|
editingFrame: string | null;
|
|
40
|
-
elementsToHighlight:
|
|
81
|
+
elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
|
|
41
82
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
42
83
|
activeTool: {
|
|
43
84
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -85,7 +126,7 @@ export declare const actionFinalize: {
|
|
|
85
126
|
name: "imageExport" | "help" | "jsonExport";
|
|
86
127
|
} | {
|
|
87
128
|
name: "ttd";
|
|
88
|
-
tab: "text-to-diagram"
|
|
129
|
+
tab: "mermaid" | "text-to-diagram";
|
|
89
130
|
} | {
|
|
90
131
|
name: "commandPalette";
|
|
91
132
|
} | {
|
|
@@ -157,9 +198,7 @@ export declare const actionFinalize: {
|
|
|
157
198
|
shown: true;
|
|
158
199
|
data: import("../charts").Spreadsheet;
|
|
159
200
|
};
|
|
160
|
-
|
|
161
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
162
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
201
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
163
202
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
164
203
|
originSnapOffset: {
|
|
165
204
|
x: number;
|
|
@@ -174,6 +213,10 @@ export declare const actionFinalize: {
|
|
|
174
213
|
focusedId: string | null;
|
|
175
214
|
matches: readonly import("../types").SearchMatch[];
|
|
176
215
|
}> | null;
|
|
216
|
+
activeLockedId: string | null;
|
|
217
|
+
lockedMultiSelections: {
|
|
218
|
+
[groupId: string]: true;
|
|
219
|
+
};
|
|
177
220
|
};
|
|
178
221
|
captureUpdate: "IMMEDIATELY";
|
|
179
222
|
} | {
|
|
@@ -196,7 +239,6 @@ export declare const actionFinalize: {
|
|
|
196
239
|
[id: string]: true;
|
|
197
240
|
}>;
|
|
198
241
|
selectedLinearElement: LinearElementEditor | null;
|
|
199
|
-
pendingImageElementId: null;
|
|
200
242
|
contextMenu: {
|
|
201
243
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
202
244
|
top: number;
|
|
@@ -207,7 +249,7 @@ export declare const actionFinalize: {
|
|
|
207
249
|
errorMessage: import("react").ReactNode;
|
|
208
250
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
209
251
|
isBindingEnabled: boolean;
|
|
210
|
-
frameToHighlight:
|
|
252
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
211
253
|
frameRendering: {
|
|
212
254
|
enabled: boolean;
|
|
213
255
|
name: boolean;
|
|
@@ -215,8 +257,7 @@ export declare const actionFinalize: {
|
|
|
215
257
|
clip: boolean;
|
|
216
258
|
};
|
|
217
259
|
editingFrame: string | null;
|
|
218
|
-
elementsToHighlight:
|
|
219
|
-
editingLinearElement: LinearElementEditor | null;
|
|
260
|
+
elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
|
|
220
261
|
penMode: boolean;
|
|
221
262
|
penDetected: boolean;
|
|
222
263
|
exportBackground: boolean;
|
|
@@ -258,7 +299,7 @@ export declare const actionFinalize: {
|
|
|
258
299
|
name: "imageExport" | "help" | "jsonExport";
|
|
259
300
|
} | {
|
|
260
301
|
name: "ttd";
|
|
261
|
-
tab: "text-to-diagram"
|
|
302
|
+
tab: "mermaid" | "text-to-diagram";
|
|
262
303
|
} | {
|
|
263
304
|
name: "commandPalette";
|
|
264
305
|
} | {
|
|
@@ -327,7 +368,7 @@ export declare const actionFinalize: {
|
|
|
327
368
|
shown: true;
|
|
328
369
|
data: import("../charts").Spreadsheet;
|
|
329
370
|
};
|
|
330
|
-
showHyperlinkPopup: false | "
|
|
371
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
331
372
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
332
373
|
originSnapOffset: {
|
|
333
374
|
x: number;
|
|
@@ -342,11 +383,15 @@ export declare const actionFinalize: {
|
|
|
342
383
|
focusedId: string | null;
|
|
343
384
|
matches: readonly import("../types").SearchMatch[];
|
|
344
385
|
}> | null;
|
|
386
|
+
activeLockedId: string | null;
|
|
387
|
+
lockedMultiSelections: {
|
|
388
|
+
[groupId: string]: true;
|
|
389
|
+
};
|
|
345
390
|
};
|
|
346
391
|
captureUpdate: "IMMEDIATELY";
|
|
347
392
|
};
|
|
348
|
-
keyTest: (event: import("react").KeyboardEvent<Element
|
|
393
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
|
|
349
394
|
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
350
395
|
} & {
|
|
351
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element
|
|
396
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
|
|
352
397
|
};
|
|
@@ -13,9 +13,9 @@ export declare const actionFlipHorizontal: {
|
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
14
|
captureUpdate: "IMMEDIATELY";
|
|
15
15
|
};
|
|
16
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
16
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
17
17
|
} & {
|
|
18
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
18
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
19
19
|
};
|
|
20
20
|
export declare const actionFlipVertical: {
|
|
21
21
|
name: "flipVertical";
|
|
@@ -29,7 +29,7 @@ export declare const actionFlipVertical: {
|
|
|
29
29
|
appState: Readonly<AppState>;
|
|
30
30
|
captureUpdate: "IMMEDIATELY";
|
|
31
31
|
};
|
|
32
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
32
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
33
33
|
} & {
|
|
34
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
34
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
35
35
|
};
|
|
@@ -21,7 +21,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
21
21
|
errorMessage: import("react").ReactNode;
|
|
22
22
|
activeEmbeddable: {
|
|
23
23
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
24
|
-
state: "
|
|
24
|
+
state: "active" | "hover";
|
|
25
25
|
} | null;
|
|
26
26
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
27
27
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -40,7 +40,6 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
40
40
|
editingFrame: string | null;
|
|
41
41
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
42
42
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
44
43
|
activeTool: {
|
|
45
44
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
45
|
locked: boolean;
|
|
@@ -88,7 +87,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
88
87
|
name: "imageExport" | "help" | "jsonExport";
|
|
89
88
|
} | {
|
|
90
89
|
name: "ttd";
|
|
91
|
-
tab: "text-to-diagram"
|
|
90
|
+
tab: "mermaid" | "text-to-diagram";
|
|
92
91
|
} | {
|
|
93
92
|
name: "commandPalette";
|
|
94
93
|
} | {
|
|
@@ -157,8 +156,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
157
156
|
shown: true;
|
|
158
157
|
data: import("../charts").Spreadsheet;
|
|
159
158
|
};
|
|
160
|
-
|
|
161
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
159
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
162
160
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
163
161
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
164
162
|
originSnapOffset: {
|
|
@@ -174,6 +172,10 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
174
172
|
focusedId: string | null;
|
|
175
173
|
matches: readonly import("../types").SearchMatch[];
|
|
176
174
|
}> | null;
|
|
175
|
+
activeLockedId: string | null;
|
|
176
|
+
lockedMultiSelections: {
|
|
177
|
+
[groupId: string]: true;
|
|
178
|
+
};
|
|
177
179
|
};
|
|
178
180
|
captureUpdate: "IMMEDIATELY";
|
|
179
181
|
} | {
|
|
@@ -207,7 +209,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
207
209
|
errorMessage: import("react").ReactNode;
|
|
208
210
|
activeEmbeddable: {
|
|
209
211
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
210
|
-
state: "
|
|
212
|
+
state: "active" | "hover";
|
|
211
213
|
} | null;
|
|
212
214
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
213
215
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -226,7 +228,6 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
226
228
|
editingFrame: string | null;
|
|
227
229
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
228
230
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
229
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
230
231
|
activeTool: {
|
|
231
232
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
232
233
|
locked: boolean;
|
|
@@ -274,7 +275,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
274
275
|
name: "imageExport" | "help" | "jsonExport";
|
|
275
276
|
} | {
|
|
276
277
|
name: "ttd";
|
|
277
|
-
tab: "text-to-diagram"
|
|
278
|
+
tab: "mermaid" | "text-to-diagram";
|
|
278
279
|
} | {
|
|
279
280
|
name: "commandPalette";
|
|
280
281
|
} | {
|
|
@@ -343,8 +344,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
343
344
|
shown: true;
|
|
344
345
|
data: import("../charts").Spreadsheet;
|
|
345
346
|
};
|
|
346
|
-
|
|
347
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
347
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
348
348
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
349
349
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
350
350
|
originSnapOffset: {
|
|
@@ -360,6 +360,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
360
360
|
focusedId: string | null;
|
|
361
361
|
matches: readonly import("../types").SearchMatch[];
|
|
362
362
|
}> | null;
|
|
363
|
+
activeLockedId: string | null;
|
|
364
|
+
lockedMultiSelections: {
|
|
365
|
+
[groupId: string]: true;
|
|
366
|
+
};
|
|
363
367
|
};
|
|
364
368
|
captureUpdate: "IMMEDIATELY";
|
|
365
369
|
} | {
|
|
@@ -397,7 +401,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
397
401
|
errorMessage: import("react").ReactNode;
|
|
398
402
|
activeEmbeddable: {
|
|
399
403
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
400
|
-
state: "
|
|
404
|
+
state: "active" | "hover";
|
|
401
405
|
} | null;
|
|
402
406
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
403
407
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -410,7 +414,6 @@ export declare const actionupdateFrameRendering: {
|
|
|
410
414
|
editingFrame: string | null;
|
|
411
415
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
412
416
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
413
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
414
417
|
activeTool: {
|
|
415
418
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
416
419
|
locked: boolean;
|
|
@@ -458,7 +461,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
458
461
|
name: "imageExport" | "help" | "jsonExport";
|
|
459
462
|
} | {
|
|
460
463
|
name: "ttd";
|
|
461
|
-
tab: "text-to-diagram"
|
|
464
|
+
tab: "mermaid" | "text-to-diagram";
|
|
462
465
|
} | {
|
|
463
466
|
name: "commandPalette";
|
|
464
467
|
} | {
|
|
@@ -530,8 +533,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
530
533
|
shown: true;
|
|
531
534
|
data: import("../charts").Spreadsheet;
|
|
532
535
|
};
|
|
533
|
-
|
|
534
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
536
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
535
537
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
536
538
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
537
539
|
originSnapOffset: {
|
|
@@ -547,6 +549,10 @@ export declare const actionupdateFrameRendering: {
|
|
|
547
549
|
focusedId: string | null;
|
|
548
550
|
matches: readonly import("../types").SearchMatch[];
|
|
549
551
|
}> | null;
|
|
552
|
+
activeLockedId: string | null;
|
|
553
|
+
lockedMultiSelections: {
|
|
554
|
+
[groupId: string]: true;
|
|
555
|
+
};
|
|
550
556
|
};
|
|
551
557
|
captureUpdate: "EVENTUALLY";
|
|
552
558
|
};
|
|
@@ -580,7 +586,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
580
586
|
errorMessage: import("react").ReactNode;
|
|
581
587
|
activeEmbeddable: {
|
|
582
588
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
583
|
-
state: "
|
|
589
|
+
state: "active" | "hover";
|
|
584
590
|
} | null;
|
|
585
591
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
586
592
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -599,7 +605,6 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
599
605
|
editingFrame: string | null;
|
|
600
606
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
601
607
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
602
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
603
608
|
penMode: boolean;
|
|
604
609
|
penDetected: boolean;
|
|
605
610
|
exportBackground: boolean;
|
|
@@ -642,7 +647,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
642
647
|
name: "imageExport" | "help" | "jsonExport";
|
|
643
648
|
} | {
|
|
644
649
|
name: "ttd";
|
|
645
|
-
tab: "text-to-diagram"
|
|
650
|
+
tab: "mermaid" | "text-to-diagram";
|
|
646
651
|
} | {
|
|
647
652
|
name: "commandPalette";
|
|
648
653
|
} | {
|
|
@@ -714,8 +719,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
714
719
|
shown: true;
|
|
715
720
|
data: import("../charts").Spreadsheet;
|
|
716
721
|
};
|
|
717
|
-
|
|
718
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
722
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
719
723
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
720
724
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
721
725
|
originSnapOffset: {
|
|
@@ -731,12 +735,16 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
731
735
|
focusedId: string | null;
|
|
732
736
|
matches: readonly import("../types").SearchMatch[];
|
|
733
737
|
}> | null;
|
|
738
|
+
activeLockedId: string | null;
|
|
739
|
+
lockedMultiSelections: {
|
|
740
|
+
[groupId: string]: true;
|
|
741
|
+
};
|
|
734
742
|
};
|
|
735
743
|
captureUpdate: "EVENTUALLY";
|
|
736
744
|
};
|
|
737
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
745
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
738
746
|
} & {
|
|
739
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
747
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
740
748
|
};
|
|
741
749
|
export declare const actionWrapSelectionInFrame: {
|
|
742
750
|
name: "wrapSelectionInFrame";
|
|
@@ -773,15 +781,21 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
773
781
|
frameId: string | null;
|
|
774
782
|
boundElements: readonly Readonly<{
|
|
775
783
|
id: string;
|
|
776
|
-
type: "
|
|
784
|
+
type: "arrow" | "text";
|
|
777
785
|
}>[] | null;
|
|
778
786
|
updated: number;
|
|
779
787
|
link: string | null;
|
|
780
788
|
locked: boolean;
|
|
781
789
|
customData?: Record<string, any> | undefined;
|
|
790
|
+
}> & Readonly<{
|
|
791
|
+
type: "line" | "arrow";
|
|
792
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
793
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
794
|
+
startBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
795
|
+
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
796
|
+
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
797
|
+
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
782
798
|
}> & {
|
|
783
|
-
type: "selection";
|
|
784
|
-
} & {
|
|
785
799
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
786
800
|
}) | (Readonly<{
|
|
787
801
|
id: string;
|
|
@@ -810,14 +824,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
810
824
|
frameId: string | null;
|
|
811
825
|
boundElements: readonly Readonly<{
|
|
812
826
|
id: string;
|
|
813
|
-
type: "
|
|
827
|
+
type: "arrow" | "text";
|
|
814
828
|
}>[] | null;
|
|
815
829
|
updated: number;
|
|
816
830
|
link: string | null;
|
|
817
831
|
locked: boolean;
|
|
818
832
|
customData?: Record<string, any> | undefined;
|
|
819
833
|
}> & {
|
|
820
|
-
type: "
|
|
834
|
+
type: "selection";
|
|
821
835
|
} & {
|
|
822
836
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
823
837
|
}) | (Readonly<{
|
|
@@ -847,14 +861,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
847
861
|
frameId: string | null;
|
|
848
862
|
boundElements: readonly Readonly<{
|
|
849
863
|
id: string;
|
|
850
|
-
type: "
|
|
864
|
+
type: "arrow" | "text";
|
|
851
865
|
}>[] | null;
|
|
852
866
|
updated: number;
|
|
853
867
|
link: string | null;
|
|
854
868
|
locked: boolean;
|
|
855
869
|
customData?: Record<string, any> | undefined;
|
|
856
870
|
}> & {
|
|
857
|
-
type: "
|
|
871
|
+
type: "rectangle";
|
|
858
872
|
} & {
|
|
859
873
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
860
874
|
}) | (Readonly<{
|
|
@@ -884,14 +898,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
884
898
|
frameId: string | null;
|
|
885
899
|
boundElements: readonly Readonly<{
|
|
886
900
|
id: string;
|
|
887
|
-
type: "
|
|
901
|
+
type: "arrow" | "text";
|
|
888
902
|
}>[] | null;
|
|
889
903
|
updated: number;
|
|
890
904
|
link: string | null;
|
|
891
905
|
locked: boolean;
|
|
892
906
|
customData?: Record<string, any> | undefined;
|
|
893
907
|
}> & {
|
|
894
|
-
type: "
|
|
908
|
+
type: "diamond";
|
|
895
909
|
} & {
|
|
896
910
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
897
911
|
}) | (Readonly<{
|
|
@@ -921,26 +935,15 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
921
935
|
frameId: string | null;
|
|
922
936
|
boundElements: readonly Readonly<{
|
|
923
937
|
id: string;
|
|
924
|
-
type: "
|
|
938
|
+
type: "arrow" | "text";
|
|
925
939
|
}>[] | null;
|
|
926
940
|
updated: number;
|
|
927
941
|
link: string | null;
|
|
928
942
|
locked: boolean;
|
|
929
943
|
customData?: Record<string, any> | undefined;
|
|
930
|
-
}> & Readonly<{
|
|
931
|
-
type: "text";
|
|
932
|
-
fontSize: number;
|
|
933
|
-
fontFamily: number;
|
|
934
|
-
text: string;
|
|
935
|
-
textAlign: string;
|
|
936
|
-
verticalAlign: string;
|
|
937
|
-
containerId: string | null;
|
|
938
|
-
originalText: string;
|
|
939
|
-
autoResize: boolean;
|
|
940
|
-
lineHeight: number & {
|
|
941
|
-
_brand: "unitlessLineHeight";
|
|
942
|
-
};
|
|
943
944
|
}> & {
|
|
945
|
+
type: "ellipse";
|
|
946
|
+
} & {
|
|
944
947
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
945
948
|
}) | (Readonly<{
|
|
946
949
|
id: string;
|
|
@@ -969,20 +972,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
969
972
|
frameId: string | null;
|
|
970
973
|
boundElements: readonly Readonly<{
|
|
971
974
|
id: string;
|
|
972
|
-
type: "
|
|
975
|
+
type: "arrow" | "text";
|
|
973
976
|
}>[] | null;
|
|
974
977
|
updated: number;
|
|
975
978
|
link: string | null;
|
|
976
979
|
locked: boolean;
|
|
977
980
|
customData?: Record<string, any> | undefined;
|
|
978
981
|
}> & Readonly<{
|
|
979
|
-
type: "
|
|
980
|
-
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
981
|
-
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
982
|
-
startBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
983
|
-
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
984
|
-
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
985
|
-
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
982
|
+
type: "embeddable";
|
|
986
983
|
}> & {
|
|
987
984
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
988
985
|
}) | (Readonly<{
|
|
@@ -1012,18 +1009,17 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1012
1009
|
frameId: string | null;
|
|
1013
1010
|
boundElements: readonly Readonly<{
|
|
1014
1011
|
id: string;
|
|
1015
|
-
type: "
|
|
1012
|
+
type: "arrow" | "text";
|
|
1016
1013
|
}>[] | null;
|
|
1017
1014
|
updated: number;
|
|
1018
1015
|
link: string | null;
|
|
1019
1016
|
locked: boolean;
|
|
1020
1017
|
customData?: Record<string, any> | undefined;
|
|
1021
1018
|
}> & Readonly<{
|
|
1022
|
-
type: "
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1019
|
+
type: "iframe";
|
|
1020
|
+
customData?: {
|
|
1021
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
|
|
1022
|
+
} | undefined;
|
|
1027
1023
|
}> & {
|
|
1028
1024
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1029
1025
|
}) | (Readonly<{
|
|
@@ -1053,7 +1049,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1053
1049
|
frameId: string | null;
|
|
1054
1050
|
boundElements: readonly Readonly<{
|
|
1055
1051
|
id: string;
|
|
1056
|
-
type: "
|
|
1052
|
+
type: "arrow" | "text";
|
|
1057
1053
|
}>[] | null;
|
|
1058
1054
|
updated: number;
|
|
1059
1055
|
link: string | null;
|
|
@@ -1062,7 +1058,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1062
1058
|
}> & Readonly<{
|
|
1063
1059
|
type: "image";
|
|
1064
1060
|
fileId: import("@excalidraw/element/types").FileId | null;
|
|
1065
|
-
status: "
|
|
1061
|
+
status: "pending" | "error" | "saved";
|
|
1066
1062
|
scale: [number, number];
|
|
1067
1063
|
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1068
1064
|
}> & {
|
|
@@ -1094,7 +1090,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1094
1090
|
frameId: string | null;
|
|
1095
1091
|
boundElements: readonly Readonly<{
|
|
1096
1092
|
id: string;
|
|
1097
|
-
type: "
|
|
1093
|
+
type: "arrow" | "text";
|
|
1098
1094
|
}>[] | null;
|
|
1099
1095
|
updated: number;
|
|
1100
1096
|
link: string | null;
|
|
@@ -1132,7 +1128,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1132
1128
|
frameId: string | null;
|
|
1133
1129
|
boundElements: readonly Readonly<{
|
|
1134
1130
|
id: string;
|
|
1135
|
-
type: "
|
|
1131
|
+
type: "arrow" | "text";
|
|
1136
1132
|
}>[] | null;
|
|
1137
1133
|
updated: number;
|
|
1138
1134
|
link: string | null;
|
|
@@ -1170,17 +1166,25 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1170
1166
|
frameId: string | null;
|
|
1171
1167
|
boundElements: readonly Readonly<{
|
|
1172
1168
|
id: string;
|
|
1173
|
-
type: "
|
|
1169
|
+
type: "arrow" | "text";
|
|
1174
1170
|
}>[] | null;
|
|
1175
1171
|
updated: number;
|
|
1176
1172
|
link: string | null;
|
|
1177
1173
|
locked: boolean;
|
|
1178
1174
|
customData?: Record<string, any> | undefined;
|
|
1179
1175
|
}> & Readonly<{
|
|
1180
|
-
type: "
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1176
|
+
type: "text";
|
|
1177
|
+
fontSize: number;
|
|
1178
|
+
fontFamily: number;
|
|
1179
|
+
text: string;
|
|
1180
|
+
textAlign: string;
|
|
1181
|
+
verticalAlign: string;
|
|
1182
|
+
containerId: string | null;
|
|
1183
|
+
originalText: string;
|
|
1184
|
+
autoResize: boolean;
|
|
1185
|
+
lineHeight: number & {
|
|
1186
|
+
_brand: "unitlessLineHeight";
|
|
1187
|
+
};
|
|
1184
1188
|
}> & {
|
|
1185
1189
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1186
1190
|
}) | (Readonly<{
|
|
@@ -1210,14 +1214,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1210
1214
|
frameId: string | null;
|
|
1211
1215
|
boundElements: readonly Readonly<{
|
|
1212
1216
|
id: string;
|
|
1213
|
-
type: "
|
|
1217
|
+
type: "arrow" | "text";
|
|
1214
1218
|
}>[] | null;
|
|
1215
1219
|
updated: number;
|
|
1216
1220
|
link: string | null;
|
|
1217
1221
|
locked: boolean;
|
|
1218
1222
|
customData?: Record<string, any> | undefined;
|
|
1219
1223
|
}> & Readonly<{
|
|
1220
|
-
type: "
|
|
1224
|
+
type: "freedraw";
|
|
1225
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1226
|
+
pressures: readonly number[];
|
|
1227
|
+
simulatePressure: boolean;
|
|
1228
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1221
1229
|
}> & {
|
|
1222
1230
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1223
1231
|
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|