@myoc/excalidraw 0.18.18 → 0.18.20
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-5IFOUNFV.js +5684 -0
- package/dist/dev/chunk-5IFOUNFV.js.map +7 -0
- package/dist/dev/{chunk-WUH7JFG4.js → chunk-GR6GZQQD.js} +2 -2
- package/dist/dev/data/{image-BBHDGXQ3.js → image-QMTJGSU7.js} +3 -3
- package/dist/dev/index.css +4 -0
- package/dist/dev/index.css.map +2 -2
- package/dist/dev/index.js +6058 -4026
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-4Z2WWUCC.js → chunk-PPT7KBS3.js} +1 -1
- package/dist/prod/chunk-SHSFPXHA.js +4 -0
- package/dist/prod/data/image-TZAIFXB2.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +24 -17
- 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 +2 -1
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/utils.d.ts +2 -2
- package/dist/types/element/src/Scene.d.ts +1 -1
- package/dist/types/element/src/align.d.ts +2 -1
- package/dist/types/element/src/binding.d.ts +4 -0
- package/dist/types/element/src/bounds.d.ts +3 -1
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/elbowArrow.d.ts +1 -1
- 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/heading.d.ts +2 -2
- package/dist/types/element/src/linearElementEditor.d.ts +3 -5
- package/dist/types/element/src/resizeTest.d.ts +2 -2
- package/dist/types/element/src/selection.d.ts +1 -1
- package/dist/types/element/src/shape.d.ts +2 -2
- package/dist/types/element/src/shapes.d.ts +8 -8
- package/dist/types/element/src/store.d.ts +3 -2
- package/dist/types/element/src/utils.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +12 -15
- package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +8 -10
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +63 -75
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +31 -36
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +4 -5
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +17 -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 +3 -4
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +10 -12
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +4 -5
- package/dist/types/excalidraw/actions/actionExport.d.ts +121 -130
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +11 -12
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +66 -70
- package/dist/types/excalidraw/actions/actionGroup.d.ts +14 -16
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +85 -55
- package/dist/types/excalidraw/actions/actionLink.d.ts +5 -6
- package/dist/types/excalidraw/actions/actionMenu.d.ts +13 -16
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +8 -10
- package/dist/types/excalidraw/actions/actionProperties.d.ts +63 -78
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +7 -8
- package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +8 -9
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +5 -6
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/appState.d.ts +21 -21
- package/dist/types/excalidraw/components/Actions.d.ts +0 -4
- package/dist/types/excalidraw/components/App.d.ts +12 -6
- package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
- package/dist/types/excalidraw/components/shapes.d.ts +1 -1
- package/dist/types/excalidraw/data/blob.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +1 -0
- package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/dist/types/excalidraw/types.d.ts +2 -4
- package/dist/types/math/src/angle.d.ts +1 -1
- package/dist/types/math/src/curve.d.ts +1 -1
- package/dist/types/math/src/ellipse.d.ts +3 -3
- package/dist/types/math/src/point.d.ts +2 -2
- package/dist/types/math/src/polygon.d.ts +2 -2
- package/dist/types/math/src/rectangle.d.ts +2 -0
- package/dist/types/math/src/segment.d.ts +5 -5
- package/dist/types/math/src/utils.d.ts +0 -2
- package/dist/types/utils/src/shape.d.ts +12 -12
- package/package.json +4 -1
- package/dist/dev/chunk-MAGRVBVM.js +0 -23870
- package/dist/dev/chunk-MAGRVBVM.js.map +0 -7
- package/dist/prod/chunk-YBT3HBS6.js +0 -33
- package/dist/prod/data/image-JFILZTP3.js +0 -1
- package/dist/types/excalidraw/visualdebug.d.ts +0 -41
- /package/dist/dev/{chunk-WUH7JFG4.js.map → chunk-GR6GZQQD.js.map} +0 -0
- /package/dist/dev/data/{image-BBHDGXQ3.js.map → image-QMTJGSU7.js.map} +0 -0
|
@@ -41,6 +41,7 @@ export declare const actionFinalize: {
|
|
|
41
41
|
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
42
42
|
elbowed: boolean;
|
|
43
43
|
customLineAngle: number | null;
|
|
44
|
+
isEditing: boolean;
|
|
44
45
|
};
|
|
45
46
|
suggestedBindings: never[];
|
|
46
47
|
};
|
|
@@ -49,7 +50,7 @@ export declare const actionFinalize: {
|
|
|
49
50
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[] | undefined;
|
|
50
51
|
appState: {
|
|
51
52
|
cursorButton: "up";
|
|
52
|
-
|
|
53
|
+
selectedLinearElement: LinearElementEditor;
|
|
53
54
|
contextMenu: {
|
|
54
55
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
55
56
|
top: number;
|
|
@@ -68,7 +69,7 @@ export declare const actionFinalize: {
|
|
|
68
69
|
errorMessage: import("react").ReactNode;
|
|
69
70
|
activeEmbeddable: {
|
|
70
71
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
71
|
-
state: "
|
|
72
|
+
state: "active" | "hover";
|
|
72
73
|
} | null;
|
|
73
74
|
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
74
75
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -112,7 +113,7 @@ export declare const actionFinalize: {
|
|
|
112
113
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
113
114
|
currentHoveredFontFamily: number | null;
|
|
114
115
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
115
|
-
currentItemArrowType: "
|
|
116
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
116
117
|
viewBackgroundColor: string;
|
|
117
118
|
scrollX: number;
|
|
118
119
|
scrollY: number;
|
|
@@ -133,7 +134,7 @@ export declare const actionFinalize: {
|
|
|
133
134
|
name: "imageExport" | "help" | "jsonExport";
|
|
134
135
|
} | {
|
|
135
136
|
name: "ttd";
|
|
136
|
-
tab: "text-to-diagram"
|
|
137
|
+
tab: "mermaid" | "text-to-diagram";
|
|
137
138
|
} | {
|
|
138
139
|
name: "commandPalette";
|
|
139
140
|
} | {
|
|
@@ -205,8 +206,7 @@ export declare const actionFinalize: {
|
|
|
205
206
|
shown: true;
|
|
206
207
|
data: import("../charts").Spreadsheet;
|
|
207
208
|
};
|
|
208
|
-
showHyperlinkPopup: false | "
|
|
209
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
209
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
210
210
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
211
211
|
originSnapOffset: {
|
|
212
212
|
x: number;
|
|
@@ -274,7 +274,6 @@ export declare const actionFinalize: {
|
|
|
274
274
|
};
|
|
275
275
|
editingFrame: string | null;
|
|
276
276
|
elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
|
|
277
|
-
editingLinearElement: LinearElementEditor | null;
|
|
278
277
|
penMode: boolean;
|
|
279
278
|
penDetected: boolean;
|
|
280
279
|
exportBackground: boolean;
|
|
@@ -295,7 +294,7 @@ export declare const actionFinalize: {
|
|
|
295
294
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
296
295
|
currentHoveredFontFamily: number | null;
|
|
297
296
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
298
|
-
currentItemArrowType: "
|
|
297
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
299
298
|
viewBackgroundColor: string;
|
|
300
299
|
scrollX: number;
|
|
301
300
|
scrollY: number;
|
|
@@ -316,7 +315,7 @@ export declare const actionFinalize: {
|
|
|
316
315
|
name: "imageExport" | "help" | "jsonExport";
|
|
317
316
|
} | {
|
|
318
317
|
name: "ttd";
|
|
319
|
-
tab: "text-to-diagram"
|
|
318
|
+
tab: "mermaid" | "text-to-diagram";
|
|
320
319
|
} | {
|
|
321
320
|
name: "commandPalette";
|
|
322
321
|
} | {
|
|
@@ -385,7 +384,7 @@ export declare const actionFinalize: {
|
|
|
385
384
|
shown: true;
|
|
386
385
|
data: import("../charts").Spreadsheet;
|
|
387
386
|
};
|
|
388
|
-
showHyperlinkPopup: false | "
|
|
387
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
389
388
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
390
389
|
originSnapOffset: {
|
|
391
390
|
x: number;
|
|
@@ -407,8 +406,8 @@ export declare const actionFinalize: {
|
|
|
407
406
|
};
|
|
408
407
|
captureUpdate: "IMMEDIATELY";
|
|
409
408
|
};
|
|
410
|
-
keyTest: (event: import("react").KeyboardEvent<Element
|
|
409
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
|
|
411
410
|
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
412
411
|
} & {
|
|
413
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element
|
|
412
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
|
|
414
413
|
};
|
|
@@ -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
|
};
|
|
@@ -29,7 +29,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
29
29
|
errorMessage: import("react").ReactNode;
|
|
30
30
|
activeEmbeddable: {
|
|
31
31
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
32
|
-
state: "
|
|
32
|
+
state: "active" | "hover";
|
|
33
33
|
} | null;
|
|
34
34
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
35
35
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -48,7 +48,6 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
48
48
|
editingFrame: string | null;
|
|
49
49
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
50
50
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
51
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
52
51
|
activeTool: {
|
|
53
52
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
54
53
|
locked: boolean;
|
|
@@ -74,7 +73,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
74
73
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
75
74
|
currentHoveredFontFamily: number | null;
|
|
76
75
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
77
|
-
currentItemArrowType: "
|
|
76
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
78
77
|
viewBackgroundColor: string;
|
|
79
78
|
scrollX: number;
|
|
80
79
|
scrollY: number;
|
|
@@ -96,7 +95,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
96
95
|
name: "imageExport" | "help" | "jsonExport";
|
|
97
96
|
} | {
|
|
98
97
|
name: "ttd";
|
|
99
|
-
tab: "text-to-diagram"
|
|
98
|
+
tab: "mermaid" | "text-to-diagram";
|
|
100
99
|
} | {
|
|
101
100
|
name: "commandPalette";
|
|
102
101
|
} | {
|
|
@@ -165,7 +164,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
165
164
|
shown: true;
|
|
166
165
|
data: import("../charts").Spreadsheet;
|
|
167
166
|
};
|
|
168
|
-
showHyperlinkPopup: false | "
|
|
167
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
169
168
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
170
169
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
171
170
|
originSnapOffset: {
|
|
@@ -226,7 +225,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
226
225
|
errorMessage: import("react").ReactNode;
|
|
227
226
|
activeEmbeddable: {
|
|
228
227
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
229
|
-
state: "
|
|
228
|
+
state: "active" | "hover";
|
|
230
229
|
} | null;
|
|
231
230
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
232
231
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -245,7 +244,6 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
245
244
|
editingFrame: string | null;
|
|
246
245
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
247
246
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
248
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
249
247
|
activeTool: {
|
|
250
248
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
251
249
|
locked: boolean;
|
|
@@ -271,7 +269,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
271
269
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
272
270
|
currentHoveredFontFamily: number | null;
|
|
273
271
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
274
|
-
currentItemArrowType: "
|
|
272
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
275
273
|
viewBackgroundColor: string;
|
|
276
274
|
scrollX: number;
|
|
277
275
|
scrollY: number;
|
|
@@ -293,7 +291,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
293
291
|
name: "imageExport" | "help" | "jsonExport";
|
|
294
292
|
} | {
|
|
295
293
|
name: "ttd";
|
|
296
|
-
tab: "text-to-diagram"
|
|
294
|
+
tab: "mermaid" | "text-to-diagram";
|
|
297
295
|
} | {
|
|
298
296
|
name: "commandPalette";
|
|
299
297
|
} | {
|
|
@@ -362,7 +360,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
362
360
|
shown: true;
|
|
363
361
|
data: import("../charts").Spreadsheet;
|
|
364
362
|
};
|
|
365
|
-
showHyperlinkPopup: false | "
|
|
363
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
366
364
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
367
365
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
368
366
|
originSnapOffset: {
|
|
@@ -427,7 +425,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
427
425
|
errorMessage: import("react").ReactNode;
|
|
428
426
|
activeEmbeddable: {
|
|
429
427
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
430
|
-
state: "
|
|
428
|
+
state: "active" | "hover";
|
|
431
429
|
} | null;
|
|
432
430
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
433
431
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -440,7 +438,6 @@ export declare const actionupdateFrameRendering: {
|
|
|
440
438
|
editingFrame: string | null;
|
|
441
439
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
442
440
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
443
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
444
441
|
activeTool: {
|
|
445
442
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
446
443
|
locked: boolean;
|
|
@@ -466,7 +463,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
466
463
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
467
464
|
currentHoveredFontFamily: number | null;
|
|
468
465
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
469
|
-
currentItemArrowType: "
|
|
466
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
470
467
|
viewBackgroundColor: string;
|
|
471
468
|
scrollX: number;
|
|
472
469
|
scrollY: number;
|
|
@@ -488,7 +485,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
488
485
|
name: "imageExport" | "help" | "jsonExport";
|
|
489
486
|
} | {
|
|
490
487
|
name: "ttd";
|
|
491
|
-
tab: "text-to-diagram"
|
|
488
|
+
tab: "mermaid" | "text-to-diagram";
|
|
492
489
|
} | {
|
|
493
490
|
name: "commandPalette";
|
|
494
491
|
} | {
|
|
@@ -560,7 +557,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
560
557
|
shown: true;
|
|
561
558
|
data: import("../charts").Spreadsheet;
|
|
562
559
|
};
|
|
563
|
-
showHyperlinkPopup: false | "
|
|
560
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
564
561
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
565
562
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
566
563
|
originSnapOffset: {
|
|
@@ -621,7 +618,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
621
618
|
errorMessage: import("react").ReactNode;
|
|
622
619
|
activeEmbeddable: {
|
|
623
620
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
624
|
-
state: "
|
|
621
|
+
state: "active" | "hover";
|
|
625
622
|
} | null;
|
|
626
623
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
627
624
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -640,7 +637,6 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
640
637
|
editingFrame: string | null;
|
|
641
638
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
642
639
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
643
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
644
640
|
penMode: boolean;
|
|
645
641
|
penDetected: boolean;
|
|
646
642
|
exportBackground: boolean;
|
|
@@ -661,7 +657,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
661
657
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
662
658
|
currentHoveredFontFamily: number | null;
|
|
663
659
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
664
|
-
currentItemArrowType: "
|
|
660
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
665
661
|
viewBackgroundColor: string;
|
|
666
662
|
scrollX: number;
|
|
667
663
|
scrollY: number;
|
|
@@ -683,7 +679,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
683
679
|
name: "imageExport" | "help" | "jsonExport";
|
|
684
680
|
} | {
|
|
685
681
|
name: "ttd";
|
|
686
|
-
tab: "text-to-diagram"
|
|
682
|
+
tab: "mermaid" | "text-to-diagram";
|
|
687
683
|
} | {
|
|
688
684
|
name: "commandPalette";
|
|
689
685
|
} | {
|
|
@@ -755,7 +751,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
755
751
|
shown: true;
|
|
756
752
|
data: import("../charts").Spreadsheet;
|
|
757
753
|
};
|
|
758
|
-
showHyperlinkPopup: false | "
|
|
754
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
759
755
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
760
756
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
761
757
|
originSnapOffset: {
|
|
@@ -778,9 +774,9 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
778
774
|
};
|
|
779
775
|
captureUpdate: "EVENTUALLY";
|
|
780
776
|
};
|
|
781
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
777
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => false;
|
|
782
778
|
} & {
|
|
783
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
779
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => false) | undefined;
|
|
784
780
|
};
|
|
785
781
|
export declare const actionWrapSelectionInFrame: {
|
|
786
782
|
name: "wrapSelectionInFrame";
|
|
@@ -817,15 +813,21 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
817
813
|
frameId: string | null;
|
|
818
814
|
boundElements: readonly Readonly<{
|
|
819
815
|
id: string;
|
|
820
|
-
type: "
|
|
816
|
+
type: "arrow" | "text";
|
|
821
817
|
}>[] | null;
|
|
822
818
|
updated: number;
|
|
823
819
|
link: string | null;
|
|
824
820
|
locked: boolean;
|
|
825
821
|
customData?: Record<string, any> | undefined;
|
|
822
|
+
}> & Readonly<{
|
|
823
|
+
type: "line" | "arrow";
|
|
824
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
825
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
826
|
+
startBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
827
|
+
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
828
|
+
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
829
|
+
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
826
830
|
}> & {
|
|
827
|
-
type: "selection";
|
|
828
|
-
} & {
|
|
829
831
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
830
832
|
}) | (Readonly<{
|
|
831
833
|
id: string;
|
|
@@ -854,14 +856,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
854
856
|
frameId: string | null;
|
|
855
857
|
boundElements: readonly Readonly<{
|
|
856
858
|
id: string;
|
|
857
|
-
type: "
|
|
859
|
+
type: "arrow" | "text";
|
|
858
860
|
}>[] | null;
|
|
859
861
|
updated: number;
|
|
860
862
|
link: string | null;
|
|
861
863
|
locked: boolean;
|
|
862
864
|
customData?: Record<string, any> | undefined;
|
|
863
865
|
}> & {
|
|
864
|
-
type: "
|
|
866
|
+
type: "selection";
|
|
865
867
|
} & {
|
|
866
868
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
867
869
|
}) | (Readonly<{
|
|
@@ -891,14 +893,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
891
893
|
frameId: string | null;
|
|
892
894
|
boundElements: readonly Readonly<{
|
|
893
895
|
id: string;
|
|
894
|
-
type: "
|
|
896
|
+
type: "arrow" | "text";
|
|
895
897
|
}>[] | null;
|
|
896
898
|
updated: number;
|
|
897
899
|
link: string | null;
|
|
898
900
|
locked: boolean;
|
|
899
901
|
customData?: Record<string, any> | undefined;
|
|
900
902
|
}> & {
|
|
901
|
-
type: "
|
|
903
|
+
type: "rectangle";
|
|
902
904
|
} & {
|
|
903
905
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
904
906
|
}) | (Readonly<{
|
|
@@ -928,14 +930,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
928
930
|
frameId: string | null;
|
|
929
931
|
boundElements: readonly Readonly<{
|
|
930
932
|
id: string;
|
|
931
|
-
type: "
|
|
933
|
+
type: "arrow" | "text";
|
|
932
934
|
}>[] | null;
|
|
933
935
|
updated: number;
|
|
934
936
|
link: string | null;
|
|
935
937
|
locked: boolean;
|
|
936
938
|
customData?: Record<string, any> | undefined;
|
|
937
939
|
}> & {
|
|
938
|
-
type: "
|
|
940
|
+
type: "diamond";
|
|
939
941
|
} & {
|
|
940
942
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
941
943
|
}) | (Readonly<{
|
|
@@ -965,26 +967,15 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
965
967
|
frameId: string | null;
|
|
966
968
|
boundElements: readonly Readonly<{
|
|
967
969
|
id: string;
|
|
968
|
-
type: "
|
|
970
|
+
type: "arrow" | "text";
|
|
969
971
|
}>[] | null;
|
|
970
972
|
updated: number;
|
|
971
973
|
link: string | null;
|
|
972
974
|
locked: boolean;
|
|
973
975
|
customData?: Record<string, any> | undefined;
|
|
974
|
-
}> & Readonly<{
|
|
975
|
-
type: "text";
|
|
976
|
-
fontSize: number;
|
|
977
|
-
fontFamily: number;
|
|
978
|
-
text: string;
|
|
979
|
-
textAlign: string;
|
|
980
|
-
verticalAlign: string;
|
|
981
|
-
containerId: string | null;
|
|
982
|
-
originalText: string;
|
|
983
|
-
autoResize: boolean;
|
|
984
|
-
lineHeight: number & {
|
|
985
|
-
_brand: "unitlessLineHeight";
|
|
986
|
-
};
|
|
987
976
|
}> & {
|
|
977
|
+
type: "ellipse";
|
|
978
|
+
} & {
|
|
988
979
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
989
980
|
}) | (Readonly<{
|
|
990
981
|
id: string;
|
|
@@ -1013,20 +1004,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1013
1004
|
frameId: string | null;
|
|
1014
1005
|
boundElements: readonly Readonly<{
|
|
1015
1006
|
id: string;
|
|
1016
|
-
type: "
|
|
1007
|
+
type: "arrow" | "text";
|
|
1017
1008
|
}>[] | null;
|
|
1018
1009
|
updated: number;
|
|
1019
1010
|
link: string | null;
|
|
1020
1011
|
locked: boolean;
|
|
1021
1012
|
customData?: Record<string, any> | undefined;
|
|
1022
1013
|
}> & Readonly<{
|
|
1023
|
-
type: "
|
|
1024
|
-
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1025
|
-
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1026
|
-
startBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
1027
|
-
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
1028
|
-
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1029
|
-
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1014
|
+
type: "embeddable";
|
|
1030
1015
|
}> & {
|
|
1031
1016
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1032
1017
|
}) | (Readonly<{
|
|
@@ -1056,18 +1041,17 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1056
1041
|
frameId: string | null;
|
|
1057
1042
|
boundElements: readonly Readonly<{
|
|
1058
1043
|
id: string;
|
|
1059
|
-
type: "
|
|
1044
|
+
type: "arrow" | "text";
|
|
1060
1045
|
}>[] | null;
|
|
1061
1046
|
updated: number;
|
|
1062
1047
|
link: string | null;
|
|
1063
1048
|
locked: boolean;
|
|
1064
1049
|
customData?: Record<string, any> | undefined;
|
|
1065
1050
|
}> & Readonly<{
|
|
1066
|
-
type: "
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1051
|
+
type: "iframe";
|
|
1052
|
+
customData?: {
|
|
1053
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
|
|
1054
|
+
} | undefined;
|
|
1071
1055
|
}> & {
|
|
1072
1056
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1073
1057
|
}) | (Readonly<{
|
|
@@ -1097,7 +1081,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1097
1081
|
frameId: string | null;
|
|
1098
1082
|
boundElements: readonly Readonly<{
|
|
1099
1083
|
id: string;
|
|
1100
|
-
type: "
|
|
1084
|
+
type: "arrow" | "text";
|
|
1101
1085
|
}>[] | null;
|
|
1102
1086
|
updated: number;
|
|
1103
1087
|
link: string | null;
|
|
@@ -1106,7 +1090,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1106
1090
|
}> & Readonly<{
|
|
1107
1091
|
type: "image";
|
|
1108
1092
|
fileId: import("@excalidraw/element/types").FileId | null;
|
|
1109
|
-
status: "
|
|
1093
|
+
status: "pending" | "error" | "saved";
|
|
1110
1094
|
scale: [number, number];
|
|
1111
1095
|
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1112
1096
|
}> & {
|
|
@@ -1138,7 +1122,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1138
1122
|
frameId: string | null;
|
|
1139
1123
|
boundElements: readonly Readonly<{
|
|
1140
1124
|
id: string;
|
|
1141
|
-
type: "
|
|
1125
|
+
type: "arrow" | "text";
|
|
1142
1126
|
}>[] | null;
|
|
1143
1127
|
updated: number;
|
|
1144
1128
|
link: string | null;
|
|
@@ -1176,7 +1160,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1176
1160
|
frameId: string | null;
|
|
1177
1161
|
boundElements: readonly Readonly<{
|
|
1178
1162
|
id: string;
|
|
1179
|
-
type: "
|
|
1163
|
+
type: "arrow" | "text";
|
|
1180
1164
|
}>[] | null;
|
|
1181
1165
|
updated: number;
|
|
1182
1166
|
link: string | null;
|
|
@@ -1214,17 +1198,25 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1214
1198
|
frameId: string | null;
|
|
1215
1199
|
boundElements: readonly Readonly<{
|
|
1216
1200
|
id: string;
|
|
1217
|
-
type: "
|
|
1201
|
+
type: "arrow" | "text";
|
|
1218
1202
|
}>[] | null;
|
|
1219
1203
|
updated: number;
|
|
1220
1204
|
link: string | null;
|
|
1221
1205
|
locked: boolean;
|
|
1222
1206
|
customData?: Record<string, any> | undefined;
|
|
1223
1207
|
}> & Readonly<{
|
|
1224
|
-
type: "
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1208
|
+
type: "text";
|
|
1209
|
+
fontSize: number;
|
|
1210
|
+
fontFamily: number;
|
|
1211
|
+
text: string;
|
|
1212
|
+
textAlign: string;
|
|
1213
|
+
verticalAlign: string;
|
|
1214
|
+
containerId: string | null;
|
|
1215
|
+
originalText: string;
|
|
1216
|
+
autoResize: boolean;
|
|
1217
|
+
lineHeight: number & {
|
|
1218
|
+
_brand: "unitlessLineHeight";
|
|
1219
|
+
};
|
|
1228
1220
|
}> & {
|
|
1229
1221
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1230
1222
|
}) | (Readonly<{
|
|
@@ -1254,14 +1246,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1254
1246
|
frameId: string | null;
|
|
1255
1247
|
boundElements: readonly Readonly<{
|
|
1256
1248
|
id: string;
|
|
1257
|
-
type: "
|
|
1249
|
+
type: "arrow" | "text";
|
|
1258
1250
|
}>[] | null;
|
|
1259
1251
|
updated: number;
|
|
1260
1252
|
link: string | null;
|
|
1261
1253
|
locked: boolean;
|
|
1262
1254
|
customData?: Record<string, any> | undefined;
|
|
1263
1255
|
}> & Readonly<{
|
|
1264
|
-
type: "
|
|
1256
|
+
type: "freedraw";
|
|
1257
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1258
|
+
pressures: readonly number[];
|
|
1259
|
+
simulatePressure: boolean;
|
|
1260
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1265
1261
|
}> & {
|
|
1266
1262
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1267
1263
|
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|