@excalidraw/excalidraw 0.18.0-58f7d33 → 0.18.0-6d870b1c8
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-D5WIFFIO.js +5678 -0
- package/dist/dev/chunk-D5WIFFIO.js.map +7 -0
- package/dist/dev/{chunk-X3RYHLJU.js → chunk-QF5FRM6O.js} +15 -5
- package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
- package/dist/dev/data/{image-U2IPNUKJ.js → image-WMAXQLTI.js} +3 -3
- package/dist/dev/index.css +104 -22
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +8871 -9726
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-CKWC2GMK.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-I4UNSFV6.js +12 -0
- package/dist/prod/chunk-KK52DCS3.js +4 -0
- package/dist/prod/data/image-U3WTNYT7.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +25 -17
- package/dist/prod/locales/{en-SBO6ZHT2.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 +21 -3
- package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
- package/dist/types/common/src/font-metadata.d.ts +4 -2
- package/dist/types/common/src/index.d.ts +1 -0
- package/dist/types/common/src/utility-types.d.ts +5 -0
- package/dist/types/common/src/utils.d.ts +17 -4
- package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +11 -14
- package/dist/types/element/src/align.d.ts +4 -3
- package/dist/types/element/src/binding.d.ts +26 -16
- package/dist/types/element/src/bounds.d.ts +13 -5
- package/dist/types/element/src/collision.d.ts +18 -12
- package/dist/types/element/src/cropElement.d.ts +1 -1
- package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +74 -39
- 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/dragElements.d.ts +3 -2
- package/dist/types/element/src/duplicate.d.ts +10 -13
- package/dist/types/element/src/elbowArrow.d.ts +1 -1
- package/dist/types/element/src/flowchart.d.ts +3 -2
- package/dist/types/element/src/fractionalIndex.d.ts +9 -3
- package/dist/types/element/src/frame.d.ts +5 -4
- package/dist/types/element/src/groups.d.ts +1 -0
- package/dist/types/element/src/index.d.ts +43 -2
- package/dist/types/element/src/linearElementEditor.d.ts +23 -36
- package/dist/types/element/src/mutateElement.d.ts +11 -3
- package/dist/types/element/src/newElement.d.ts +4 -3
- package/dist/types/element/src/resizeElements.d.ts +5 -4
- package/dist/types/element/src/selection.d.ts +11 -5
- package/dist/types/element/src/shape.d.ts +42 -0
- package/dist/types/element/src/sizeHelpers.d.ts +2 -2
- package/dist/types/element/src/store.d.ts +232 -0
- package/dist/types/element/src/textElement.d.ts +4 -3
- package/dist/types/element/src/typeChecks.d.ts +19 -1
- package/dist/types/element/src/types.d.ts +15 -2
- package/dist/types/element/src/utils.d.ts +16 -6
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +39 -51
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +26 -34
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +175 -227
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +78 -100
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +13 -17
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +39 -50
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +12 -16
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +41 -50
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +13 -17
- package/dist/types/excalidraw/actions/actionExport.d.ts +127 -163
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +73 -40
- package/dist/types/excalidraw/actions/actionFrame.d.ts +99 -115
- package/dist/types/excalidraw/actions/actionGroup.d.ts +26 -34
- package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +538 -18
- package/dist/types/excalidraw/actions/actionLink.d.ts +12 -16
- package/dist/types/excalidraw/actions/actionMenu.d.ts +36 -48
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +25 -33
- package/dist/types/excalidraw/actions/actionProperties.d.ts +203 -255
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +13 -17
- package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -17
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +13 -17
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +13 -17
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +12 -189
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +13 -17
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +13 -17
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +13 -17
- package/dist/types/excalidraw/actions/types.d.ts +4 -3
- package/dist/types/excalidraw/appState.d.ts +19 -10
- package/dist/types/excalidraw/components/Actions.d.ts +0 -4
- package/dist/types/excalidraw/components/App.d.ts +30 -19
- package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
- 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/Range.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
- package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +3 -0
- package/dist/types/excalidraw/components/shapes.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/data/transform.d.ts +1 -1
- package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
- package/dist/types/excalidraw/eraser/index.d.ts +0 -2
- package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
- package/dist/types/excalidraw/history.d.ts +30 -22
- package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +11 -10
- 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 +7 -2
- package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +1 -2
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
- package/dist/types/excalidraw/scene/types.d.ts +2 -0
- package/dist/types/excalidraw/snapping.d.ts +2 -2
- package/dist/types/excalidraw/types.d.ts +34 -14
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
- 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 +34 -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 +8 -2
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/index.d.ts +1 -1
- package/dist/types/utils/src/withinBounds.d.ts +1 -1
- package/history.ts +147 -110
- package/package.json +12 -9
- package/dist/dev/chunk-KKJLIRJU.js +0 -7
- package/dist/dev/chunk-KKJLIRJU.js.map +0 -7
- package/dist/dev/chunk-LEJJ2YZY.js +0 -18711
- package/dist/dev/chunk-LEJJ2YZY.js.map +0 -7
- package/dist/dev/chunk-X3RYHLJU.js.map +0 -7
- package/dist/prod/chunk-IUH5AXLB.js +0 -12
- package/dist/prod/chunk-QUX7WTVH.js +0 -7
- package/dist/prod/chunk-RQK6WG4F.js +0 -33
- package/dist/prod/data/image-UQDATCXC.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/store.d.ts +0 -129
- package/dist/types/excalidraw/visualdebug.d.ts +0 -41
- package/dist/types/utils/src/collision.d.ts +0 -8
- /package/dist/dev/data/{image-U2IPNUKJ.js.map → image-WMAXQLTI.js.map} +0 -0
- /package/dist/dev/locales/{en-CKWC2GMK.js.map → en-SMAPCEOQ.js.map} +0 -0
|
@@ -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;
|
|
@@ -29,7 +29,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
29
29
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
30
|
isBindingEnabled: boolean;
|
|
31
31
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
|
-
suggestedBindings: import("@excalidraw/element
|
|
32
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
33
33
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
34
|
frameRendering: {
|
|
35
35
|
enabled: boolean;
|
|
@@ -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").LinearElementEditor | null;
|
|
44
43
|
activeTool: {
|
|
45
44
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
45
|
locked: boolean;
|
|
@@ -78,7 +77,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
78
77
|
zoom: Readonly<{
|
|
79
78
|
value: import("../types").NormalizedZoomValue;
|
|
80
79
|
}>;
|
|
81
|
-
openMenu: "
|
|
80
|
+
openMenu: "canvas" | "shape" | null;
|
|
82
81
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
83
82
|
openSidebar: {
|
|
84
83
|
name: string;
|
|
@@ -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,9 +156,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
157
156
|
shown: true;
|
|
158
157
|
data: import("../charts").Spreadsheet;
|
|
159
158
|
};
|
|
160
|
-
pendingImageElementId: string | null;
|
|
161
159
|
showHyperlinkPopup: false | "editor" | "info";
|
|
162
|
-
selectedLinearElement: import("@excalidraw/element
|
|
160
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
163
161
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
164
162
|
originSnapOffset: {
|
|
165
163
|
x: number;
|
|
@@ -170,16 +168,14 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
170
168
|
followedBy: Set<import("../types").SocketId>;
|
|
171
169
|
isCropping: boolean;
|
|
172
170
|
croppingElementId: string | null;
|
|
173
|
-
searchMatches:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}[];
|
|
182
|
-
}[];
|
|
171
|
+
searchMatches: Readonly<{
|
|
172
|
+
focusedId: string | null;
|
|
173
|
+
matches: readonly import("../types").SearchMatch[];
|
|
174
|
+
}> | null;
|
|
175
|
+
activeLockedId: string | null;
|
|
176
|
+
lockedMultiSelections: {
|
|
177
|
+
[groupId: string]: true;
|
|
178
|
+
};
|
|
183
179
|
};
|
|
184
180
|
captureUpdate: "IMMEDIATELY";
|
|
185
181
|
} | {
|
|
@@ -213,7 +209,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
213
209
|
errorMessage: import("react").ReactNode;
|
|
214
210
|
activeEmbeddable: {
|
|
215
211
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
216
|
-
state: "
|
|
212
|
+
state: "active" | "hover";
|
|
217
213
|
} | null;
|
|
218
214
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
219
215
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -221,7 +217,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
221
217
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
222
218
|
isBindingEnabled: boolean;
|
|
223
219
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
224
|
-
suggestedBindings: import("@excalidraw/element
|
|
220
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
225
221
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
226
222
|
frameRendering: {
|
|
227
223
|
enabled: boolean;
|
|
@@ -232,7 +228,6 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
232
228
|
editingFrame: string | null;
|
|
233
229
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
234
230
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
235
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
236
231
|
activeTool: {
|
|
237
232
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
238
233
|
locked: boolean;
|
|
@@ -270,7 +265,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
270
265
|
zoom: Readonly<{
|
|
271
266
|
value: import("../types").NormalizedZoomValue;
|
|
272
267
|
}>;
|
|
273
|
-
openMenu: "
|
|
268
|
+
openMenu: "canvas" | "shape" | null;
|
|
274
269
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
275
270
|
openSidebar: {
|
|
276
271
|
name: string;
|
|
@@ -280,7 +275,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
280
275
|
name: "imageExport" | "help" | "jsonExport";
|
|
281
276
|
} | {
|
|
282
277
|
name: "ttd";
|
|
283
|
-
tab: "text-to-diagram"
|
|
278
|
+
tab: "mermaid" | "text-to-diagram";
|
|
284
279
|
} | {
|
|
285
280
|
name: "commandPalette";
|
|
286
281
|
} | {
|
|
@@ -349,9 +344,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
349
344
|
shown: true;
|
|
350
345
|
data: import("../charts").Spreadsheet;
|
|
351
346
|
};
|
|
352
|
-
pendingImageElementId: string | null;
|
|
353
347
|
showHyperlinkPopup: false | "editor" | "info";
|
|
354
|
-
selectedLinearElement: import("@excalidraw/element
|
|
348
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
355
349
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
356
350
|
originSnapOffset: {
|
|
357
351
|
x: number;
|
|
@@ -362,16 +356,14 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
362
356
|
followedBy: Set<import("../types").SocketId>;
|
|
363
357
|
isCropping: boolean;
|
|
364
358
|
croppingElementId: string | null;
|
|
365
|
-
searchMatches:
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
}[];
|
|
374
|
-
}[];
|
|
359
|
+
searchMatches: Readonly<{
|
|
360
|
+
focusedId: string | null;
|
|
361
|
+
matches: readonly import("../types").SearchMatch[];
|
|
362
|
+
}> | null;
|
|
363
|
+
activeLockedId: string | null;
|
|
364
|
+
lockedMultiSelections: {
|
|
365
|
+
[groupId: string]: true;
|
|
366
|
+
};
|
|
375
367
|
};
|
|
376
368
|
captureUpdate: "IMMEDIATELY";
|
|
377
369
|
} | {
|
|
@@ -409,7 +401,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
409
401
|
errorMessage: import("react").ReactNode;
|
|
410
402
|
activeEmbeddable: {
|
|
411
403
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
412
|
-
state: "
|
|
404
|
+
state: "active" | "hover";
|
|
413
405
|
} | null;
|
|
414
406
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
415
407
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -417,12 +409,11 @@ export declare const actionupdateFrameRendering: {
|
|
|
417
409
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
418
410
|
isBindingEnabled: boolean;
|
|
419
411
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
420
|
-
suggestedBindings: import("@excalidraw/element
|
|
412
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
421
413
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
422
414
|
editingFrame: string | null;
|
|
423
415
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
424
416
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
425
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
426
417
|
activeTool: {
|
|
427
418
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
428
419
|
locked: boolean;
|
|
@@ -460,7 +451,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
460
451
|
zoom: Readonly<{
|
|
461
452
|
value: import("../types").NormalizedZoomValue;
|
|
462
453
|
}>;
|
|
463
|
-
openMenu: "
|
|
454
|
+
openMenu: "canvas" | "shape" | null;
|
|
464
455
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
465
456
|
openSidebar: {
|
|
466
457
|
name: string;
|
|
@@ -470,7 +461,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
470
461
|
name: "imageExport" | "help" | "jsonExport";
|
|
471
462
|
} | {
|
|
472
463
|
name: "ttd";
|
|
473
|
-
tab: "text-to-diagram"
|
|
464
|
+
tab: "mermaid" | "text-to-diagram";
|
|
474
465
|
} | {
|
|
475
466
|
name: "commandPalette";
|
|
476
467
|
} | {
|
|
@@ -542,9 +533,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
542
533
|
shown: true;
|
|
543
534
|
data: import("../charts").Spreadsheet;
|
|
544
535
|
};
|
|
545
|
-
pendingImageElementId: string | null;
|
|
546
536
|
showHyperlinkPopup: false | "editor" | "info";
|
|
547
|
-
selectedLinearElement: import("@excalidraw/element
|
|
537
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
548
538
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
549
539
|
originSnapOffset: {
|
|
550
540
|
x: number;
|
|
@@ -555,16 +545,14 @@ export declare const actionupdateFrameRendering: {
|
|
|
555
545
|
followedBy: Set<import("../types").SocketId>;
|
|
556
546
|
isCropping: boolean;
|
|
557
547
|
croppingElementId: string | null;
|
|
558
|
-
searchMatches:
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
}[];
|
|
567
|
-
}[];
|
|
548
|
+
searchMatches: Readonly<{
|
|
549
|
+
focusedId: string | null;
|
|
550
|
+
matches: readonly import("../types").SearchMatch[];
|
|
551
|
+
}> | null;
|
|
552
|
+
activeLockedId: string | null;
|
|
553
|
+
lockedMultiSelections: {
|
|
554
|
+
[groupId: string]: true;
|
|
555
|
+
};
|
|
568
556
|
};
|
|
569
557
|
captureUpdate: "EVENTUALLY";
|
|
570
558
|
};
|
|
@@ -598,7 +586,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
598
586
|
errorMessage: import("react").ReactNode;
|
|
599
587
|
activeEmbeddable: {
|
|
600
588
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
601
|
-
state: "
|
|
589
|
+
state: "active" | "hover";
|
|
602
590
|
} | null;
|
|
603
591
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
604
592
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -606,7 +594,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
606
594
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
607
595
|
isBindingEnabled: boolean;
|
|
608
596
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
609
|
-
suggestedBindings: import("@excalidraw/element
|
|
597
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
610
598
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
611
599
|
frameRendering: {
|
|
612
600
|
enabled: boolean;
|
|
@@ -617,7 +605,6 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
617
605
|
editingFrame: string | null;
|
|
618
606
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
619
607
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
620
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
621
608
|
penMode: boolean;
|
|
622
609
|
penDetected: boolean;
|
|
623
610
|
exportBackground: boolean;
|
|
@@ -650,7 +637,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
650
637
|
zoom: Readonly<{
|
|
651
638
|
value: import("../types").NormalizedZoomValue;
|
|
652
639
|
}>;
|
|
653
|
-
openMenu: "
|
|
640
|
+
openMenu: "canvas" | "shape" | null;
|
|
654
641
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
655
642
|
openSidebar: {
|
|
656
643
|
name: string;
|
|
@@ -660,7 +647,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
660
647
|
name: "imageExport" | "help" | "jsonExport";
|
|
661
648
|
} | {
|
|
662
649
|
name: "ttd";
|
|
663
|
-
tab: "text-to-diagram"
|
|
650
|
+
tab: "mermaid" | "text-to-diagram";
|
|
664
651
|
} | {
|
|
665
652
|
name: "commandPalette";
|
|
666
653
|
} | {
|
|
@@ -732,9 +719,8 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
732
719
|
shown: true;
|
|
733
720
|
data: import("../charts").Spreadsheet;
|
|
734
721
|
};
|
|
735
|
-
pendingImageElementId: string | null;
|
|
736
722
|
showHyperlinkPopup: false | "editor" | "info";
|
|
737
|
-
selectedLinearElement: import("@excalidraw/element
|
|
723
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
738
724
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
739
725
|
originSnapOffset: {
|
|
740
726
|
x: number;
|
|
@@ -745,16 +731,14 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
745
731
|
followedBy: Set<import("../types").SocketId>;
|
|
746
732
|
isCropping: boolean;
|
|
747
733
|
croppingElementId: string | null;
|
|
748
|
-
searchMatches:
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
}[];
|
|
757
|
-
}[];
|
|
734
|
+
searchMatches: Readonly<{
|
|
735
|
+
focusedId: string | null;
|
|
736
|
+
matches: readonly import("../types").SearchMatch[];
|
|
737
|
+
}> | null;
|
|
738
|
+
activeLockedId: string | null;
|
|
739
|
+
lockedMultiSelections: {
|
|
740
|
+
[groupId: string]: true;
|
|
741
|
+
};
|
|
758
742
|
};
|
|
759
743
|
captureUpdate: "EVENTUALLY";
|
|
760
744
|
};
|
|
@@ -797,15 +781,21 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
797
781
|
frameId: string | null;
|
|
798
782
|
boundElements: readonly Readonly<{
|
|
799
783
|
id: string;
|
|
800
|
-
type: "
|
|
784
|
+
type: "arrow" | "text";
|
|
801
785
|
}>[] | null;
|
|
802
786
|
updated: number;
|
|
803
787
|
link: string | null;
|
|
804
788
|
locked: boolean;
|
|
805
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;
|
|
806
798
|
}> & {
|
|
807
|
-
type: "rectangle";
|
|
808
|
-
} & {
|
|
809
799
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
810
800
|
}) | (Readonly<{
|
|
811
801
|
id: string;
|
|
@@ -834,14 +824,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
834
824
|
frameId: string | null;
|
|
835
825
|
boundElements: readonly Readonly<{
|
|
836
826
|
id: string;
|
|
837
|
-
type: "
|
|
827
|
+
type: "arrow" | "text";
|
|
838
828
|
}>[] | null;
|
|
839
829
|
updated: number;
|
|
840
830
|
link: string | null;
|
|
841
831
|
locked: boolean;
|
|
842
832
|
customData?: Record<string, any> | undefined;
|
|
843
833
|
}> & {
|
|
844
|
-
type: "
|
|
834
|
+
type: "selection";
|
|
845
835
|
} & {
|
|
846
836
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
847
837
|
}) | (Readonly<{
|
|
@@ -871,15 +861,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
871
861
|
frameId: string | null;
|
|
872
862
|
boundElements: readonly Readonly<{
|
|
873
863
|
id: string;
|
|
874
|
-
type: "
|
|
864
|
+
type: "arrow" | "text";
|
|
875
865
|
}>[] | null;
|
|
876
866
|
updated: number;
|
|
877
867
|
link: string | null;
|
|
878
868
|
locked: boolean;
|
|
879
869
|
customData?: Record<string, any> | undefined;
|
|
880
870
|
}> & {
|
|
881
|
-
type: "
|
|
882
|
-
name: string | null;
|
|
871
|
+
type: "rectangle";
|
|
883
872
|
} & {
|
|
884
873
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
885
874
|
}) | (Readonly<{
|
|
@@ -909,15 +898,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
909
898
|
frameId: string | null;
|
|
910
899
|
boundElements: readonly Readonly<{
|
|
911
900
|
id: string;
|
|
912
|
-
type: "
|
|
901
|
+
type: "arrow" | "text";
|
|
913
902
|
}>[] | null;
|
|
914
903
|
updated: number;
|
|
915
904
|
link: string | null;
|
|
916
905
|
locked: boolean;
|
|
917
906
|
customData?: Record<string, any> | undefined;
|
|
918
907
|
}> & {
|
|
919
|
-
type: "
|
|
920
|
-
name: string | null;
|
|
908
|
+
type: "diamond";
|
|
921
909
|
} & {
|
|
922
910
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
923
911
|
}) | (Readonly<{
|
|
@@ -947,15 +935,15 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
947
935
|
frameId: string | null;
|
|
948
936
|
boundElements: readonly Readonly<{
|
|
949
937
|
id: string;
|
|
950
|
-
type: "
|
|
938
|
+
type: "arrow" | "text";
|
|
951
939
|
}>[] | null;
|
|
952
940
|
updated: number;
|
|
953
941
|
link: string | null;
|
|
954
942
|
locked: boolean;
|
|
955
943
|
customData?: Record<string, any> | undefined;
|
|
956
|
-
}> & Readonly<{
|
|
957
|
-
type: "embeddable";
|
|
958
944
|
}> & {
|
|
945
|
+
type: "ellipse";
|
|
946
|
+
} & {
|
|
959
947
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
960
948
|
}) | (Readonly<{
|
|
961
949
|
id: string;
|
|
@@ -984,18 +972,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
984
972
|
frameId: string | null;
|
|
985
973
|
boundElements: readonly Readonly<{
|
|
986
974
|
id: string;
|
|
987
|
-
type: "
|
|
975
|
+
type: "arrow" | "text";
|
|
988
976
|
}>[] | null;
|
|
989
977
|
updated: number;
|
|
990
978
|
link: string | null;
|
|
991
979
|
locked: boolean;
|
|
992
980
|
customData?: Record<string, any> | undefined;
|
|
993
981
|
}> & Readonly<{
|
|
994
|
-
type: "
|
|
995
|
-
fileId: import("@excalidraw/element/types").FileId | null;
|
|
996
|
-
status: "pending" | "saved" | "error";
|
|
997
|
-
scale: [number, number];
|
|
998
|
-
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
982
|
+
type: "embeddable";
|
|
999
983
|
}> & {
|
|
1000
984
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1001
985
|
}) | (Readonly<{
|
|
@@ -1025,7 +1009,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1025
1009
|
frameId: string | null;
|
|
1026
1010
|
boundElements: readonly Readonly<{
|
|
1027
1011
|
id: string;
|
|
1028
|
-
type: "
|
|
1012
|
+
type: "arrow" | "text";
|
|
1029
1013
|
}>[] | null;
|
|
1030
1014
|
updated: number;
|
|
1031
1015
|
link: string | null;
|
|
@@ -1065,25 +1049,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1065
1049
|
frameId: string | null;
|
|
1066
1050
|
boundElements: readonly Readonly<{
|
|
1067
1051
|
id: string;
|
|
1068
|
-
type: "
|
|
1052
|
+
type: "arrow" | "text";
|
|
1069
1053
|
}>[] | null;
|
|
1070
1054
|
updated: number;
|
|
1071
1055
|
link: string | null;
|
|
1072
1056
|
locked: boolean;
|
|
1073
1057
|
customData?: Record<string, any> | undefined;
|
|
1074
1058
|
}> & Readonly<{
|
|
1075
|
-
type: "
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
verticalAlign: string;
|
|
1081
|
-
containerId: string | null;
|
|
1082
|
-
originalText: string;
|
|
1083
|
-
autoResize: boolean;
|
|
1084
|
-
lineHeight: number & {
|
|
1085
|
-
_brand: "unitlessLineHeight";
|
|
1086
|
-
};
|
|
1059
|
+
type: "image";
|
|
1060
|
+
fileId: import("@excalidraw/element/types").FileId | null;
|
|
1061
|
+
status: "pending" | "error" | "saved";
|
|
1062
|
+
scale: [number, number];
|
|
1063
|
+
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1087
1064
|
}> & {
|
|
1088
1065
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1089
1066
|
}) | (Readonly<{
|
|
@@ -1113,14 +1090,15 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1113
1090
|
frameId: string | null;
|
|
1114
1091
|
boundElements: readonly Readonly<{
|
|
1115
1092
|
id: string;
|
|
1116
|
-
type: "
|
|
1093
|
+
type: "arrow" | "text";
|
|
1117
1094
|
}>[] | null;
|
|
1118
1095
|
updated: number;
|
|
1119
1096
|
link: string | null;
|
|
1120
1097
|
locked: boolean;
|
|
1121
1098
|
customData?: Record<string, any> | undefined;
|
|
1122
1099
|
}> & {
|
|
1123
|
-
type: "
|
|
1100
|
+
type: "frame";
|
|
1101
|
+
name: string | null;
|
|
1124
1102
|
} & {
|
|
1125
1103
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1126
1104
|
}) | (Readonly<{
|
|
@@ -1150,14 +1128,15 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1150
1128
|
frameId: string | null;
|
|
1151
1129
|
boundElements: readonly Readonly<{
|
|
1152
1130
|
id: string;
|
|
1153
|
-
type: "
|
|
1131
|
+
type: "arrow" | "text";
|
|
1154
1132
|
}>[] | null;
|
|
1155
1133
|
updated: number;
|
|
1156
1134
|
link: string | null;
|
|
1157
1135
|
locked: boolean;
|
|
1158
1136
|
customData?: Record<string, any> | undefined;
|
|
1159
1137
|
}> & {
|
|
1160
|
-
type: "
|
|
1138
|
+
type: "magicframe";
|
|
1139
|
+
name: string | null;
|
|
1161
1140
|
} & {
|
|
1162
1141
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1163
1142
|
}) | (Readonly<{
|
|
@@ -1187,20 +1166,25 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1187
1166
|
frameId: string | null;
|
|
1188
1167
|
boundElements: readonly Readonly<{
|
|
1189
1168
|
id: string;
|
|
1190
|
-
type: "
|
|
1169
|
+
type: "arrow" | "text";
|
|
1191
1170
|
}>[] | null;
|
|
1192
1171
|
updated: number;
|
|
1193
1172
|
link: string | null;
|
|
1194
1173
|
locked: boolean;
|
|
1195
1174
|
customData?: Record<string, any> | undefined;
|
|
1196
1175
|
}> & Readonly<{
|
|
1197
|
-
type: "
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
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
|
+
};
|
|
1204
1188
|
}> & {
|
|
1205
1189
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1206
1190
|
}) | (Readonly<{
|
|
@@ -1230,7 +1214,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1230
1214
|
frameId: string | null;
|
|
1231
1215
|
boundElements: readonly Readonly<{
|
|
1232
1216
|
id: string;
|
|
1233
|
-
type: "
|
|
1217
|
+
type: "arrow" | "text";
|
|
1234
1218
|
}>[] | null;
|
|
1235
1219
|
updated: number;
|
|
1236
1220
|
link: string | null;
|