@excalidraw/excalidraw 0.18.0-58f7d33 → 0.18.0-6d75c4b34
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-CBGOW5JB.js +5669 -0
- package/dist/dev/chunk-CBGOW5JB.js.map +7 -0
- package/dist/dev/chunk-CP5DND7P.js +7 -0
- package/dist/dev/chunk-CP5DND7P.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-SURZSZNX.js} +3 -3
- package/dist/dev/index.css +100 -22
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +8406 -9312
- 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-IRHK23LL.js +4 -0
- package/dist/prod/data/image-HXEZYJPQ.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 +20 -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 +3 -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} +63 -38
- package/dist/types/element/src/distance.d.ts +2 -2
- 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/index.d.ts +43 -2
- package/dist/types/element/src/linearElementEditor.d.ts +22 -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 +42 -51
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +28 -34
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +188 -227
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +81 -98
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +14 -17
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +37 -45
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +13 -16
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +43 -50
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +14 -17
- package/dist/types/excalidraw/actions/actionExport.d.ts +136 -163
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +71 -37
- package/dist/types/excalidraw/actions/actionFrame.d.ts +103 -115
- package/dist/types/excalidraw/actions/actionGroup.d.ts +28 -34
- package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +506 -16
- package/dist/types/excalidraw/actions/actionLink.d.ts +13 -16
- package/dist/types/excalidraw/actions/actionMenu.d.ts +39 -48
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +27 -33
- package/dist/types/excalidraw/actions/actionProperties.d.ts +203 -240
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +13 -16
- package/dist/types/excalidraw/actions/actionStyles.d.ts +14 -17
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +14 -17
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +14 -17
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +13 -189
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +14 -17
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +14 -17
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +14 -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/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/{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/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 +9 -9
- 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/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 +30 -10
- 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-SURZSZNX.js.map} +0 -0
- /package/dist/dev/locales/{en-CKWC2GMK.js.map → en-SMAPCEOQ.js.map} +0 -0
|
@@ -19,7 +19,7 @@ export declare const actionCopy: {
|
|
|
19
19
|
isLoading: boolean;
|
|
20
20
|
activeEmbeddable: {
|
|
21
21
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
22
|
-
state: "
|
|
22
|
+
state: "active" | "hover";
|
|
23
23
|
} | null;
|
|
24
24
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
25
25
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -27,7 +27,7 @@ export declare const actionCopy: {
|
|
|
27
27
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
28
|
isBindingEnabled: boolean;
|
|
29
29
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
30
|
-
suggestedBindings: import("@excalidraw/element
|
|
30
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
31
31
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
32
32
|
frameRendering: {
|
|
33
33
|
enabled: boolean;
|
|
@@ -38,7 +38,7 @@ export declare const actionCopy: {
|
|
|
38
38
|
editingFrame: string | null;
|
|
39
39
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
40
40
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
|
-
editingLinearElement: import("@excalidraw/element
|
|
41
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
42
42
|
activeTool: {
|
|
43
43
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
44
|
locked: boolean;
|
|
@@ -76,7 +76,7 @@ export declare const actionCopy: {
|
|
|
76
76
|
zoom: Readonly<{
|
|
77
77
|
value: import("../types").NormalizedZoomValue;
|
|
78
78
|
}>;
|
|
79
|
-
openMenu: "
|
|
79
|
+
openMenu: "canvas" | "shape" | null;
|
|
80
80
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
81
81
|
openSidebar: {
|
|
82
82
|
name: string;
|
|
@@ -86,7 +86,7 @@ export declare const actionCopy: {
|
|
|
86
86
|
name: "imageExport" | "help" | "jsonExport";
|
|
87
87
|
} | {
|
|
88
88
|
name: "ttd";
|
|
89
|
-
tab: "text-to-diagram"
|
|
89
|
+
tab: "mermaid" | "text-to-diagram";
|
|
90
90
|
} | {
|
|
91
91
|
name: "commandPalette";
|
|
92
92
|
} | {
|
|
@@ -158,9 +158,8 @@ export declare const actionCopy: {
|
|
|
158
158
|
shown: true;
|
|
159
159
|
data: import("../charts").Spreadsheet;
|
|
160
160
|
};
|
|
161
|
-
pendingImageElementId: string | null;
|
|
162
161
|
showHyperlinkPopup: false | "editor" | "info";
|
|
163
|
-
selectedLinearElement: import("@excalidraw/element
|
|
162
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
164
163
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
165
164
|
originSnapOffset: {
|
|
166
165
|
x: number;
|
|
@@ -171,16 +170,14 @@ export declare const actionCopy: {
|
|
|
171
170
|
followedBy: Set<import("../types").SocketId>;
|
|
172
171
|
isCropping: boolean;
|
|
173
172
|
croppingElementId: string | null;
|
|
174
|
-
searchMatches:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}[];
|
|
183
|
-
}[];
|
|
173
|
+
searchMatches: Readonly<{
|
|
174
|
+
focusedId: string | null;
|
|
175
|
+
matches: readonly import("../types").SearchMatch[];
|
|
176
|
+
}> | null;
|
|
177
|
+
activeLockedId: string | null;
|
|
178
|
+
lockedMultiSelections: {
|
|
179
|
+
[groupId: string]: true;
|
|
180
|
+
};
|
|
184
181
|
};
|
|
185
182
|
} | {
|
|
186
183
|
captureUpdate: "EVENTUALLY";
|
|
@@ -209,7 +206,7 @@ export declare const actionPaste: {
|
|
|
209
206
|
isLoading: boolean;
|
|
210
207
|
activeEmbeddable: {
|
|
211
208
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
212
|
-
state: "
|
|
209
|
+
state: "active" | "hover";
|
|
213
210
|
} | null;
|
|
214
211
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
215
212
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -217,7 +214,7 @@ export declare const actionPaste: {
|
|
|
217
214
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
218
215
|
isBindingEnabled: boolean;
|
|
219
216
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
220
|
-
suggestedBindings: import("@excalidraw/element
|
|
217
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
221
218
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
222
219
|
frameRendering: {
|
|
223
220
|
enabled: boolean;
|
|
@@ -228,7 +225,7 @@ export declare const actionPaste: {
|
|
|
228
225
|
editingFrame: string | null;
|
|
229
226
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
230
227
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
231
|
-
editingLinearElement: import("@excalidraw/element
|
|
228
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
232
229
|
activeTool: {
|
|
233
230
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
234
231
|
locked: boolean;
|
|
@@ -266,7 +263,7 @@ export declare const actionPaste: {
|
|
|
266
263
|
zoom: Readonly<{
|
|
267
264
|
value: import("../types").NormalizedZoomValue;
|
|
268
265
|
}>;
|
|
269
|
-
openMenu: "
|
|
266
|
+
openMenu: "canvas" | "shape" | null;
|
|
270
267
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
271
268
|
openSidebar: {
|
|
272
269
|
name: string;
|
|
@@ -276,7 +273,7 @@ export declare const actionPaste: {
|
|
|
276
273
|
name: "imageExport" | "help" | "jsonExport";
|
|
277
274
|
} | {
|
|
278
275
|
name: "ttd";
|
|
279
|
-
tab: "text-to-diagram"
|
|
276
|
+
tab: "mermaid" | "text-to-diagram";
|
|
280
277
|
} | {
|
|
281
278
|
name: "commandPalette";
|
|
282
279
|
} | {
|
|
@@ -348,9 +345,8 @@ export declare const actionPaste: {
|
|
|
348
345
|
shown: true;
|
|
349
346
|
data: import("../charts").Spreadsheet;
|
|
350
347
|
};
|
|
351
|
-
pendingImageElementId: string | null;
|
|
352
348
|
showHyperlinkPopup: false | "editor" | "info";
|
|
353
|
-
selectedLinearElement: import("@excalidraw/element
|
|
349
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
354
350
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
355
351
|
originSnapOffset: {
|
|
356
352
|
x: number;
|
|
@@ -361,16 +357,14 @@ export declare const actionPaste: {
|
|
|
361
357
|
followedBy: Set<import("../types").SocketId>;
|
|
362
358
|
isCropping: boolean;
|
|
363
359
|
croppingElementId: string | null;
|
|
364
|
-
searchMatches:
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
}[];
|
|
373
|
-
}[];
|
|
360
|
+
searchMatches: Readonly<{
|
|
361
|
+
focusedId: string | null;
|
|
362
|
+
matches: readonly import("../types").SearchMatch[];
|
|
363
|
+
}> | null;
|
|
364
|
+
activeLockedId: string | null;
|
|
365
|
+
lockedMultiSelections: {
|
|
366
|
+
[groupId: string]: true;
|
|
367
|
+
};
|
|
374
368
|
};
|
|
375
369
|
} | {
|
|
376
370
|
captureUpdate: "EVENTUALLY";
|
|
@@ -401,7 +395,7 @@ export declare const actionCut: {
|
|
|
401
395
|
errorMessage: import("react").ReactNode;
|
|
402
396
|
activeEmbeddable: {
|
|
403
397
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
404
|
-
state: "
|
|
398
|
+
state: "active" | "hover";
|
|
405
399
|
} | null;
|
|
406
400
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
407
401
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -409,7 +403,7 @@ export declare const actionCut: {
|
|
|
409
403
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
410
404
|
isBindingEnabled: boolean;
|
|
411
405
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
412
|
-
suggestedBindings: import("@excalidraw/element
|
|
406
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
413
407
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
414
408
|
frameRendering: {
|
|
415
409
|
enabled: boolean;
|
|
@@ -457,7 +451,7 @@ export declare const actionCut: {
|
|
|
457
451
|
zoom: Readonly<{
|
|
458
452
|
value: import("../types").NormalizedZoomValue;
|
|
459
453
|
}>;
|
|
460
|
-
openMenu: "
|
|
454
|
+
openMenu: "canvas" | "shape" | null;
|
|
461
455
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
462
456
|
openSidebar: {
|
|
463
457
|
name: string;
|
|
@@ -467,7 +461,7 @@ export declare const actionCut: {
|
|
|
467
461
|
name: "imageExport" | "help" | "jsonExport";
|
|
468
462
|
} | {
|
|
469
463
|
name: "ttd";
|
|
470
|
-
tab: "text-to-diagram"
|
|
464
|
+
tab: "mermaid" | "text-to-diagram";
|
|
471
465
|
} | {
|
|
472
466
|
name: "commandPalette";
|
|
473
467
|
} | {
|
|
@@ -539,9 +533,8 @@ export declare const actionCut: {
|
|
|
539
533
|
shown: true;
|
|
540
534
|
data: import("../charts").Spreadsheet;
|
|
541
535
|
};
|
|
542
|
-
pendingImageElementId: string | null;
|
|
543
536
|
showHyperlinkPopup: false | "editor" | "info";
|
|
544
|
-
selectedLinearElement: import("@excalidraw/element
|
|
537
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
545
538
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
546
539
|
originSnapOffset: {
|
|
547
540
|
x: number;
|
|
@@ -552,16 +545,14 @@ export declare const actionCut: {
|
|
|
552
545
|
followedBy: Set<import("../types").SocketId>;
|
|
553
546
|
isCropping: boolean;
|
|
554
547
|
croppingElementId: string | null;
|
|
555
|
-
searchMatches:
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
}[];
|
|
564
|
-
}[];
|
|
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
|
+
};
|
|
565
556
|
};
|
|
566
557
|
captureUpdate: "IMMEDIATELY";
|
|
567
558
|
} | {
|
|
@@ -597,6 +588,7 @@ export declare const actionCut: {
|
|
|
597
588
|
hoverPointIndex: number;
|
|
598
589
|
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
599
590
|
elbowed: boolean;
|
|
591
|
+
customLineAngle: number | null;
|
|
600
592
|
};
|
|
601
593
|
contextMenu: {
|
|
602
594
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -608,7 +600,7 @@ export declare const actionCut: {
|
|
|
608
600
|
errorMessage: import("react").ReactNode;
|
|
609
601
|
activeEmbeddable: {
|
|
610
602
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
611
|
-
state: "
|
|
603
|
+
state: "active" | "hover";
|
|
612
604
|
} | null;
|
|
613
605
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
614
606
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -616,7 +608,7 @@ export declare const actionCut: {
|
|
|
616
608
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
617
609
|
isBindingEnabled: boolean;
|
|
618
610
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
619
|
-
suggestedBindings: import("@excalidraw/element
|
|
611
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
620
612
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
621
613
|
frameRendering: {
|
|
622
614
|
enabled: boolean;
|
|
@@ -664,7 +656,7 @@ export declare const actionCut: {
|
|
|
664
656
|
zoom: Readonly<{
|
|
665
657
|
value: import("../types").NormalizedZoomValue;
|
|
666
658
|
}>;
|
|
667
|
-
openMenu: "
|
|
659
|
+
openMenu: "canvas" | "shape" | null;
|
|
668
660
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
669
661
|
openSidebar: {
|
|
670
662
|
name: string;
|
|
@@ -674,7 +666,7 @@ export declare const actionCut: {
|
|
|
674
666
|
name: "imageExport" | "help" | "jsonExport";
|
|
675
667
|
} | {
|
|
676
668
|
name: "ttd";
|
|
677
|
-
tab: "text-to-diagram"
|
|
669
|
+
tab: "mermaid" | "text-to-diagram";
|
|
678
670
|
} | {
|
|
679
671
|
name: "commandPalette";
|
|
680
672
|
} | {
|
|
@@ -746,9 +738,8 @@ export declare const actionCut: {
|
|
|
746
738
|
shown: true;
|
|
747
739
|
data: import("../charts").Spreadsheet;
|
|
748
740
|
};
|
|
749
|
-
pendingImageElementId: string | null;
|
|
750
741
|
showHyperlinkPopup: false | "editor" | "info";
|
|
751
|
-
selectedLinearElement: import("@excalidraw/element
|
|
742
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
752
743
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
753
744
|
originSnapOffset: {
|
|
754
745
|
x: number;
|
|
@@ -759,16 +750,14 @@ export declare const actionCut: {
|
|
|
759
750
|
followedBy: Set<import("../types").SocketId>;
|
|
760
751
|
isCropping: boolean;
|
|
761
752
|
croppingElementId: string | null;
|
|
762
|
-
searchMatches:
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
}[];
|
|
771
|
-
}[];
|
|
753
|
+
searchMatches: Readonly<{
|
|
754
|
+
focusedId: string | null;
|
|
755
|
+
matches: readonly import("../types").SearchMatch[];
|
|
756
|
+
}> | null;
|
|
757
|
+
activeLockedId: string | null;
|
|
758
|
+
lockedMultiSelections: {
|
|
759
|
+
[groupId: string]: true;
|
|
760
|
+
};
|
|
772
761
|
};
|
|
773
762
|
captureUpdate: "IMMEDIATELY";
|
|
774
763
|
} | {
|
|
@@ -802,7 +791,7 @@ export declare const actionCut: {
|
|
|
802
791
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
803
792
|
isBindingEnabled: boolean;
|
|
804
793
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
805
|
-
suggestedBindings: import("@excalidraw/element
|
|
794
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
806
795
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
807
796
|
frameRendering: {
|
|
808
797
|
enabled: boolean;
|
|
@@ -813,7 +802,7 @@ export declare const actionCut: {
|
|
|
813
802
|
editingFrame: string | null;
|
|
814
803
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
815
804
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
816
|
-
editingLinearElement: import("@excalidraw/element
|
|
805
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
817
806
|
penMode: boolean;
|
|
818
807
|
penDetected: boolean;
|
|
819
808
|
exportBackground: boolean;
|
|
@@ -846,7 +835,7 @@ export declare const actionCut: {
|
|
|
846
835
|
zoom: Readonly<{
|
|
847
836
|
value: import("../types").NormalizedZoomValue;
|
|
848
837
|
}>;
|
|
849
|
-
openMenu: "
|
|
838
|
+
openMenu: "canvas" | "shape" | null;
|
|
850
839
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
851
840
|
openSidebar: {
|
|
852
841
|
name: string;
|
|
@@ -856,7 +845,7 @@ export declare const actionCut: {
|
|
|
856
845
|
name: "imageExport" | "help" | "jsonExport";
|
|
857
846
|
} | {
|
|
858
847
|
name: "ttd";
|
|
859
|
-
tab: "text-to-diagram"
|
|
848
|
+
tab: "mermaid" | "text-to-diagram";
|
|
860
849
|
} | {
|
|
861
850
|
name: "commandPalette";
|
|
862
851
|
} | {
|
|
@@ -921,7 +910,6 @@ export declare const actionCut: {
|
|
|
921
910
|
shown: true;
|
|
922
911
|
data: import("../charts").Spreadsheet;
|
|
923
912
|
};
|
|
924
|
-
pendingImageElementId: string | null;
|
|
925
913
|
showHyperlinkPopup: false | "editor" | "info";
|
|
926
914
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
927
915
|
originSnapOffset: {
|
|
@@ -933,16 +921,14 @@ export declare const actionCut: {
|
|
|
933
921
|
followedBy: Set<import("../types").SocketId>;
|
|
934
922
|
isCropping: boolean;
|
|
935
923
|
croppingElementId: string | null;
|
|
936
|
-
searchMatches:
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
}[];
|
|
945
|
-
}[];
|
|
924
|
+
searchMatches: Readonly<{
|
|
925
|
+
focusedId: string | null;
|
|
926
|
+
matches: readonly import("../types").SearchMatch[];
|
|
927
|
+
}> | null;
|
|
928
|
+
activeLockedId: string | null;
|
|
929
|
+
lockedMultiSelections: {
|
|
930
|
+
[groupId: string]: true;
|
|
931
|
+
};
|
|
946
932
|
};
|
|
947
933
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
948
934
|
};
|
|
@@ -1002,7 +988,7 @@ export declare const actionCopyAsPng: {
|
|
|
1002
988
|
isLoading: boolean;
|
|
1003
989
|
activeEmbeddable: {
|
|
1004
990
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1005
|
-
state: "
|
|
991
|
+
state: "active" | "hover";
|
|
1006
992
|
} | null;
|
|
1007
993
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1008
994
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1010,7 +996,7 @@ export declare const actionCopyAsPng: {
|
|
|
1010
996
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1011
997
|
isBindingEnabled: boolean;
|
|
1012
998
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1013
|
-
suggestedBindings: import("@excalidraw/element
|
|
999
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1014
1000
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1015
1001
|
frameRendering: {
|
|
1016
1002
|
enabled: boolean;
|
|
@@ -1021,7 +1007,7 @@ export declare const actionCopyAsPng: {
|
|
|
1021
1007
|
editingFrame: string | null;
|
|
1022
1008
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1023
1009
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1024
|
-
editingLinearElement: import("@excalidraw/element
|
|
1010
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1025
1011
|
activeTool: {
|
|
1026
1012
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1027
1013
|
locked: boolean;
|
|
@@ -1059,7 +1045,7 @@ export declare const actionCopyAsPng: {
|
|
|
1059
1045
|
zoom: Readonly<{
|
|
1060
1046
|
value: import("../types").NormalizedZoomValue;
|
|
1061
1047
|
}>;
|
|
1062
|
-
openMenu: "
|
|
1048
|
+
openMenu: "canvas" | "shape" | null;
|
|
1063
1049
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1064
1050
|
openSidebar: {
|
|
1065
1051
|
name: string;
|
|
@@ -1069,7 +1055,7 @@ export declare const actionCopyAsPng: {
|
|
|
1069
1055
|
name: "imageExport" | "help" | "jsonExport";
|
|
1070
1056
|
} | {
|
|
1071
1057
|
name: "ttd";
|
|
1072
|
-
tab: "text-to-diagram"
|
|
1058
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1073
1059
|
} | {
|
|
1074
1060
|
name: "commandPalette";
|
|
1075
1061
|
} | {
|
|
@@ -1141,9 +1127,8 @@ export declare const actionCopyAsPng: {
|
|
|
1141
1127
|
shown: true;
|
|
1142
1128
|
data: import("../charts").Spreadsheet;
|
|
1143
1129
|
};
|
|
1144
|
-
pendingImageElementId: string | null;
|
|
1145
1130
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1146
|
-
selectedLinearElement: import("@excalidraw/element
|
|
1131
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1147
1132
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1148
1133
|
originSnapOffset: {
|
|
1149
1134
|
x: number;
|
|
@@ -1154,16 +1139,14 @@ export declare const actionCopyAsPng: {
|
|
|
1154
1139
|
followedBy: Set<import("../types").SocketId>;
|
|
1155
1140
|
isCropping: boolean;
|
|
1156
1141
|
croppingElementId: string | null;
|
|
1157
|
-
searchMatches:
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
}[];
|
|
1166
|
-
}[];
|
|
1142
|
+
searchMatches: Readonly<{
|
|
1143
|
+
focusedId: string | null;
|
|
1144
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1145
|
+
}> | null;
|
|
1146
|
+
activeLockedId: string | null;
|
|
1147
|
+
lockedMultiSelections: {
|
|
1148
|
+
[groupId: string]: true;
|
|
1149
|
+
};
|
|
1167
1150
|
};
|
|
1168
1151
|
captureUpdate: "EVENTUALLY";
|
|
1169
1152
|
}>;
|
|
@@ -22,7 +22,7 @@ export declare const actionToggleCropEditor: {
|
|
|
22
22
|
errorMessage: import("react").ReactNode;
|
|
23
23
|
activeEmbeddable: {
|
|
24
24
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
25
|
-
state: "
|
|
25
|
+
state: "active" | "hover";
|
|
26
26
|
} | null;
|
|
27
27
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
28
28
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -30,7 +30,7 @@ export declare const actionToggleCropEditor: {
|
|
|
30
30
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
31
|
isBindingEnabled: boolean;
|
|
32
32
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
33
|
-
suggestedBindings: import("@excalidraw/element
|
|
33
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
34
34
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
35
35
|
frameRendering: {
|
|
36
36
|
enabled: boolean;
|
|
@@ -41,7 +41,7 @@ export declare const actionToggleCropEditor: {
|
|
|
41
41
|
editingFrame: string | null;
|
|
42
42
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
43
43
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
44
|
-
editingLinearElement: import("@excalidraw/element
|
|
44
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
45
45
|
activeTool: {
|
|
46
46
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
47
|
locked: boolean;
|
|
@@ -79,7 +79,7 @@ export declare const actionToggleCropEditor: {
|
|
|
79
79
|
zoom: Readonly<{
|
|
80
80
|
value: import("../types").NormalizedZoomValue;
|
|
81
81
|
}>;
|
|
82
|
-
openMenu: "
|
|
82
|
+
openMenu: "canvas" | "shape" | null;
|
|
83
83
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
84
84
|
openSidebar: {
|
|
85
85
|
name: string;
|
|
@@ -89,7 +89,7 @@ export declare const actionToggleCropEditor: {
|
|
|
89
89
|
name: "imageExport" | "help" | "jsonExport";
|
|
90
90
|
} | {
|
|
91
91
|
name: "ttd";
|
|
92
|
-
tab: "text-to-diagram"
|
|
92
|
+
tab: "mermaid" | "text-to-diagram";
|
|
93
93
|
} | {
|
|
94
94
|
name: "commandPalette";
|
|
95
95
|
} | {
|
|
@@ -161,9 +161,8 @@ export declare const actionToggleCropEditor: {
|
|
|
161
161
|
shown: true;
|
|
162
162
|
data: import("../charts").Spreadsheet;
|
|
163
163
|
};
|
|
164
|
-
pendingImageElementId: string | null;
|
|
165
164
|
showHyperlinkPopup: false | "editor" | "info";
|
|
166
|
-
selectedLinearElement: import("@excalidraw/element
|
|
165
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
167
166
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
168
167
|
originSnapOffset: {
|
|
169
168
|
x: number;
|
|
@@ -172,16 +171,14 @@ export declare const actionToggleCropEditor: {
|
|
|
172
171
|
objectsSnapModeEnabled: boolean;
|
|
173
172
|
userToFollow: import("../types").UserToFollow | null;
|
|
174
173
|
followedBy: Set<import("../types").SocketId>;
|
|
175
|
-
searchMatches:
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}[];
|
|
184
|
-
}[];
|
|
174
|
+
searchMatches: Readonly<{
|
|
175
|
+
focusedId: string | null;
|
|
176
|
+
matches: readonly import("../types").SearchMatch[];
|
|
177
|
+
}> | null;
|
|
178
|
+
activeLockedId: string | null;
|
|
179
|
+
lockedMultiSelections: {
|
|
180
|
+
[groupId: string]: true;
|
|
181
|
+
};
|
|
185
182
|
};
|
|
186
183
|
captureUpdate: "IMMEDIATELY";
|
|
187
184
|
};
|