@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
|
@@ -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,6 @@ 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/linearElementEditor").LinearElementEditor | null;
|
|
42
41
|
activeTool: {
|
|
43
42
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
43
|
locked: boolean;
|
|
@@ -76,7 +75,7 @@ export declare const actionCopy: {
|
|
|
76
75
|
zoom: Readonly<{
|
|
77
76
|
value: import("../types").NormalizedZoomValue;
|
|
78
77
|
}>;
|
|
79
|
-
openMenu: "
|
|
78
|
+
openMenu: "canvas" | "shape" | null;
|
|
80
79
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
81
80
|
openSidebar: {
|
|
82
81
|
name: string;
|
|
@@ -86,7 +85,7 @@ export declare const actionCopy: {
|
|
|
86
85
|
name: "imageExport" | "help" | "jsonExport";
|
|
87
86
|
} | {
|
|
88
87
|
name: "ttd";
|
|
89
|
-
tab: "text-to-diagram"
|
|
88
|
+
tab: "mermaid" | "text-to-diagram";
|
|
90
89
|
} | {
|
|
91
90
|
name: "commandPalette";
|
|
92
91
|
} | {
|
|
@@ -158,9 +157,8 @@ export declare const actionCopy: {
|
|
|
158
157
|
shown: true;
|
|
159
158
|
data: import("../charts").Spreadsheet;
|
|
160
159
|
};
|
|
161
|
-
pendingImageElementId: string | null;
|
|
162
160
|
showHyperlinkPopup: false | "editor" | "info";
|
|
163
|
-
selectedLinearElement: import("@excalidraw/element
|
|
161
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
164
162
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
165
163
|
originSnapOffset: {
|
|
166
164
|
x: number;
|
|
@@ -171,16 +169,14 @@ export declare const actionCopy: {
|
|
|
171
169
|
followedBy: Set<import("../types").SocketId>;
|
|
172
170
|
isCropping: boolean;
|
|
173
171
|
croppingElementId: string | null;
|
|
174
|
-
searchMatches:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}[];
|
|
183
|
-
}[];
|
|
172
|
+
searchMatches: Readonly<{
|
|
173
|
+
focusedId: string | null;
|
|
174
|
+
matches: readonly import("../types").SearchMatch[];
|
|
175
|
+
}> | null;
|
|
176
|
+
activeLockedId: string | null;
|
|
177
|
+
lockedMultiSelections: {
|
|
178
|
+
[groupId: string]: true;
|
|
179
|
+
};
|
|
184
180
|
};
|
|
185
181
|
} | {
|
|
186
182
|
captureUpdate: "EVENTUALLY";
|
|
@@ -209,7 +205,7 @@ export declare const actionPaste: {
|
|
|
209
205
|
isLoading: boolean;
|
|
210
206
|
activeEmbeddable: {
|
|
211
207
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
212
|
-
state: "
|
|
208
|
+
state: "active" | "hover";
|
|
213
209
|
} | null;
|
|
214
210
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
215
211
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -217,7 +213,7 @@ export declare const actionPaste: {
|
|
|
217
213
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
218
214
|
isBindingEnabled: boolean;
|
|
219
215
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
220
|
-
suggestedBindings: import("@excalidraw/element
|
|
216
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
221
217
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
222
218
|
frameRendering: {
|
|
223
219
|
enabled: boolean;
|
|
@@ -228,7 +224,6 @@ export declare const actionPaste: {
|
|
|
228
224
|
editingFrame: string | null;
|
|
229
225
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
230
226
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
231
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
232
227
|
activeTool: {
|
|
233
228
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
234
229
|
locked: boolean;
|
|
@@ -266,7 +261,7 @@ export declare const actionPaste: {
|
|
|
266
261
|
zoom: Readonly<{
|
|
267
262
|
value: import("../types").NormalizedZoomValue;
|
|
268
263
|
}>;
|
|
269
|
-
openMenu: "
|
|
264
|
+
openMenu: "canvas" | "shape" | null;
|
|
270
265
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
271
266
|
openSidebar: {
|
|
272
267
|
name: string;
|
|
@@ -276,7 +271,7 @@ export declare const actionPaste: {
|
|
|
276
271
|
name: "imageExport" | "help" | "jsonExport";
|
|
277
272
|
} | {
|
|
278
273
|
name: "ttd";
|
|
279
|
-
tab: "text-to-diagram"
|
|
274
|
+
tab: "mermaid" | "text-to-diagram";
|
|
280
275
|
} | {
|
|
281
276
|
name: "commandPalette";
|
|
282
277
|
} | {
|
|
@@ -348,9 +343,8 @@ export declare const actionPaste: {
|
|
|
348
343
|
shown: true;
|
|
349
344
|
data: import("../charts").Spreadsheet;
|
|
350
345
|
};
|
|
351
|
-
pendingImageElementId: string | null;
|
|
352
346
|
showHyperlinkPopup: false | "editor" | "info";
|
|
353
|
-
selectedLinearElement: import("@excalidraw/element
|
|
347
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
354
348
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
355
349
|
originSnapOffset: {
|
|
356
350
|
x: number;
|
|
@@ -361,16 +355,14 @@ export declare const actionPaste: {
|
|
|
361
355
|
followedBy: Set<import("../types").SocketId>;
|
|
362
356
|
isCropping: boolean;
|
|
363
357
|
croppingElementId: string | null;
|
|
364
|
-
searchMatches:
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
}[];
|
|
373
|
-
}[];
|
|
358
|
+
searchMatches: Readonly<{
|
|
359
|
+
focusedId: string | null;
|
|
360
|
+
matches: readonly import("../types").SearchMatch[];
|
|
361
|
+
}> | null;
|
|
362
|
+
activeLockedId: string | null;
|
|
363
|
+
lockedMultiSelections: {
|
|
364
|
+
[groupId: string]: true;
|
|
365
|
+
};
|
|
374
366
|
};
|
|
375
367
|
} | {
|
|
376
368
|
captureUpdate: "EVENTUALLY";
|
|
@@ -390,7 +382,7 @@ export declare const actionCut: {
|
|
|
390
382
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
|
|
391
383
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
392
384
|
appState: {
|
|
393
|
-
|
|
385
|
+
selectedLinearElement: null;
|
|
394
386
|
contextMenu: {
|
|
395
387
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
396
388
|
top: number;
|
|
@@ -401,7 +393,7 @@ export declare const actionCut: {
|
|
|
401
393
|
errorMessage: import("react").ReactNode;
|
|
402
394
|
activeEmbeddable: {
|
|
403
395
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
404
|
-
state: "
|
|
396
|
+
state: "active" | "hover";
|
|
405
397
|
} | null;
|
|
406
398
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
407
399
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -409,7 +401,7 @@ export declare const actionCut: {
|
|
|
409
401
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
410
402
|
isBindingEnabled: boolean;
|
|
411
403
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
412
|
-
suggestedBindings: import("@excalidraw/element
|
|
404
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
413
405
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
414
406
|
frameRendering: {
|
|
415
407
|
enabled: boolean;
|
|
@@ -457,7 +449,7 @@ export declare const actionCut: {
|
|
|
457
449
|
zoom: Readonly<{
|
|
458
450
|
value: import("../types").NormalizedZoomValue;
|
|
459
451
|
}>;
|
|
460
|
-
openMenu: "
|
|
452
|
+
openMenu: "canvas" | "shape" | null;
|
|
461
453
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
462
454
|
openSidebar: {
|
|
463
455
|
name: string;
|
|
@@ -467,7 +459,7 @@ export declare const actionCut: {
|
|
|
467
459
|
name: "imageExport" | "help" | "jsonExport";
|
|
468
460
|
} | {
|
|
469
461
|
name: "ttd";
|
|
470
|
-
tab: "text-to-diagram"
|
|
462
|
+
tab: "mermaid" | "text-to-diagram";
|
|
471
463
|
} | {
|
|
472
464
|
name: "commandPalette";
|
|
473
465
|
} | {
|
|
@@ -539,9 +531,7 @@ export declare const actionCut: {
|
|
|
539
531
|
shown: true;
|
|
540
532
|
data: import("../charts").Spreadsheet;
|
|
541
533
|
};
|
|
542
|
-
pendingImageElementId: string | null;
|
|
543
534
|
showHyperlinkPopup: false | "editor" | "info";
|
|
544
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
545
535
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
546
536
|
originSnapOffset: {
|
|
547
537
|
x: number;
|
|
@@ -552,22 +542,20 @@ export declare const actionCut: {
|
|
|
552
542
|
followedBy: Set<import("../types").SocketId>;
|
|
553
543
|
isCropping: boolean;
|
|
554
544
|
croppingElementId: string | null;
|
|
555
|
-
searchMatches:
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
}[];
|
|
564
|
-
}[];
|
|
545
|
+
searchMatches: Readonly<{
|
|
546
|
+
focusedId: string | null;
|
|
547
|
+
matches: readonly import("../types").SearchMatch[];
|
|
548
|
+
}> | null;
|
|
549
|
+
activeLockedId: string | null;
|
|
550
|
+
lockedMultiSelections: {
|
|
551
|
+
[groupId: string]: true;
|
|
552
|
+
};
|
|
565
553
|
};
|
|
566
554
|
captureUpdate: "IMMEDIATELY";
|
|
567
555
|
} | {
|
|
568
556
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
569
557
|
appState: {
|
|
570
|
-
|
|
558
|
+
selectedLinearElement: {
|
|
571
559
|
selectedPointsIndices: number[];
|
|
572
560
|
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
573
561
|
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
@@ -597,6 +585,8 @@ export declare const actionCut: {
|
|
|
597
585
|
hoverPointIndex: number;
|
|
598
586
|
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
599
587
|
elbowed: boolean;
|
|
588
|
+
customLineAngle: number | null;
|
|
589
|
+
isEditing: boolean;
|
|
600
590
|
};
|
|
601
591
|
contextMenu: {
|
|
602
592
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -608,7 +598,7 @@ export declare const actionCut: {
|
|
|
608
598
|
errorMessage: import("react").ReactNode;
|
|
609
599
|
activeEmbeddable: {
|
|
610
600
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
611
|
-
state: "
|
|
601
|
+
state: "active" | "hover";
|
|
612
602
|
} | null;
|
|
613
603
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
614
604
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -616,7 +606,7 @@ export declare const actionCut: {
|
|
|
616
606
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
617
607
|
isBindingEnabled: boolean;
|
|
618
608
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
619
|
-
suggestedBindings: import("@excalidraw/element
|
|
609
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
620
610
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
621
611
|
frameRendering: {
|
|
622
612
|
enabled: boolean;
|
|
@@ -664,7 +654,7 @@ export declare const actionCut: {
|
|
|
664
654
|
zoom: Readonly<{
|
|
665
655
|
value: import("../types").NormalizedZoomValue;
|
|
666
656
|
}>;
|
|
667
|
-
openMenu: "
|
|
657
|
+
openMenu: "canvas" | "shape" | null;
|
|
668
658
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
669
659
|
openSidebar: {
|
|
670
660
|
name: string;
|
|
@@ -674,7 +664,7 @@ export declare const actionCut: {
|
|
|
674
664
|
name: "imageExport" | "help" | "jsonExport";
|
|
675
665
|
} | {
|
|
676
666
|
name: "ttd";
|
|
677
|
-
tab: "text-to-diagram"
|
|
667
|
+
tab: "mermaid" | "text-to-diagram";
|
|
678
668
|
} | {
|
|
679
669
|
name: "commandPalette";
|
|
680
670
|
} | {
|
|
@@ -746,9 +736,7 @@ export declare const actionCut: {
|
|
|
746
736
|
shown: true;
|
|
747
737
|
data: import("../charts").Spreadsheet;
|
|
748
738
|
};
|
|
749
|
-
pendingImageElementId: string | null;
|
|
750
739
|
showHyperlinkPopup: false | "editor" | "info";
|
|
751
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
752
740
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
753
741
|
originSnapOffset: {
|
|
754
742
|
x: number;
|
|
@@ -759,16 +747,14 @@ export declare const actionCut: {
|
|
|
759
747
|
followedBy: Set<import("../types").SocketId>;
|
|
760
748
|
isCropping: boolean;
|
|
761
749
|
croppingElementId: string | null;
|
|
762
|
-
searchMatches:
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
}[];
|
|
771
|
-
}[];
|
|
750
|
+
searchMatches: Readonly<{
|
|
751
|
+
focusedId: string | null;
|
|
752
|
+
matches: readonly import("../types").SearchMatch[];
|
|
753
|
+
}> | null;
|
|
754
|
+
activeLockedId: string | null;
|
|
755
|
+
lockedMultiSelections: {
|
|
756
|
+
[groupId: string]: true;
|
|
757
|
+
};
|
|
772
758
|
};
|
|
773
759
|
captureUpdate: "IMMEDIATELY";
|
|
774
760
|
} | {
|
|
@@ -802,7 +788,7 @@ export declare const actionCut: {
|
|
|
802
788
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
803
789
|
isBindingEnabled: boolean;
|
|
804
790
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
805
|
-
suggestedBindings: import("@excalidraw/element
|
|
791
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
806
792
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
807
793
|
frameRendering: {
|
|
808
794
|
enabled: boolean;
|
|
@@ -813,7 +799,6 @@ export declare const actionCut: {
|
|
|
813
799
|
editingFrame: string | null;
|
|
814
800
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
815
801
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
816
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
817
802
|
penMode: boolean;
|
|
818
803
|
penDetected: boolean;
|
|
819
804
|
exportBackground: boolean;
|
|
@@ -846,7 +831,7 @@ export declare const actionCut: {
|
|
|
846
831
|
zoom: Readonly<{
|
|
847
832
|
value: import("../types").NormalizedZoomValue;
|
|
848
833
|
}>;
|
|
849
|
-
openMenu: "
|
|
834
|
+
openMenu: "canvas" | "shape" | null;
|
|
850
835
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
851
836
|
openSidebar: {
|
|
852
837
|
name: string;
|
|
@@ -856,7 +841,7 @@ export declare const actionCut: {
|
|
|
856
841
|
name: "imageExport" | "help" | "jsonExport";
|
|
857
842
|
} | {
|
|
858
843
|
name: "ttd";
|
|
859
|
-
tab: "text-to-diagram"
|
|
844
|
+
tab: "mermaid" | "text-to-diagram";
|
|
860
845
|
} | {
|
|
861
846
|
name: "commandPalette";
|
|
862
847
|
} | {
|
|
@@ -921,7 +906,6 @@ export declare const actionCut: {
|
|
|
921
906
|
shown: true;
|
|
922
907
|
data: import("../charts").Spreadsheet;
|
|
923
908
|
};
|
|
924
|
-
pendingImageElementId: string | null;
|
|
925
909
|
showHyperlinkPopup: false | "editor" | "info";
|
|
926
910
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
927
911
|
originSnapOffset: {
|
|
@@ -933,16 +917,14 @@ export declare const actionCut: {
|
|
|
933
917
|
followedBy: Set<import("../types").SocketId>;
|
|
934
918
|
isCropping: boolean;
|
|
935
919
|
croppingElementId: string | null;
|
|
936
|
-
searchMatches:
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
}[];
|
|
945
|
-
}[];
|
|
920
|
+
searchMatches: Readonly<{
|
|
921
|
+
focusedId: string | null;
|
|
922
|
+
matches: readonly import("../types").SearchMatch[];
|
|
923
|
+
}> | null;
|
|
924
|
+
activeLockedId: string | null;
|
|
925
|
+
lockedMultiSelections: {
|
|
926
|
+
[groupId: string]: true;
|
|
927
|
+
};
|
|
946
928
|
};
|
|
947
929
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
948
930
|
};
|
|
@@ -1002,7 +984,7 @@ export declare const actionCopyAsPng: {
|
|
|
1002
984
|
isLoading: boolean;
|
|
1003
985
|
activeEmbeddable: {
|
|
1004
986
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1005
|
-
state: "
|
|
987
|
+
state: "active" | "hover";
|
|
1006
988
|
} | null;
|
|
1007
989
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1008
990
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1010,7 +992,7 @@ export declare const actionCopyAsPng: {
|
|
|
1010
992
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1011
993
|
isBindingEnabled: boolean;
|
|
1012
994
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1013
|
-
suggestedBindings: import("@excalidraw/element
|
|
995
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1014
996
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1015
997
|
frameRendering: {
|
|
1016
998
|
enabled: boolean;
|
|
@@ -1021,7 +1003,6 @@ export declare const actionCopyAsPng: {
|
|
|
1021
1003
|
editingFrame: string | null;
|
|
1022
1004
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1023
1005
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1024
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1025
1006
|
activeTool: {
|
|
1026
1007
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1027
1008
|
locked: boolean;
|
|
@@ -1059,7 +1040,7 @@ export declare const actionCopyAsPng: {
|
|
|
1059
1040
|
zoom: Readonly<{
|
|
1060
1041
|
value: import("../types").NormalizedZoomValue;
|
|
1061
1042
|
}>;
|
|
1062
|
-
openMenu: "
|
|
1043
|
+
openMenu: "canvas" | "shape" | null;
|
|
1063
1044
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1064
1045
|
openSidebar: {
|
|
1065
1046
|
name: string;
|
|
@@ -1069,7 +1050,7 @@ export declare const actionCopyAsPng: {
|
|
|
1069
1050
|
name: "imageExport" | "help" | "jsonExport";
|
|
1070
1051
|
} | {
|
|
1071
1052
|
name: "ttd";
|
|
1072
|
-
tab: "text-to-diagram"
|
|
1053
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1073
1054
|
} | {
|
|
1074
1055
|
name: "commandPalette";
|
|
1075
1056
|
} | {
|
|
@@ -1141,9 +1122,8 @@ export declare const actionCopyAsPng: {
|
|
|
1141
1122
|
shown: true;
|
|
1142
1123
|
data: import("../charts").Spreadsheet;
|
|
1143
1124
|
};
|
|
1144
|
-
pendingImageElementId: string | null;
|
|
1145
1125
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1146
|
-
selectedLinearElement: import("@excalidraw/element
|
|
1126
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1147
1127
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1148
1128
|
originSnapOffset: {
|
|
1149
1129
|
x: number;
|
|
@@ -1154,16 +1134,14 @@ export declare const actionCopyAsPng: {
|
|
|
1154
1134
|
followedBy: Set<import("../types").SocketId>;
|
|
1155
1135
|
isCropping: boolean;
|
|
1156
1136
|
croppingElementId: string | null;
|
|
1157
|
-
searchMatches:
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
}[];
|
|
1166
|
-
}[];
|
|
1137
|
+
searchMatches: Readonly<{
|
|
1138
|
+
focusedId: string | null;
|
|
1139
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1140
|
+
}> | null;
|
|
1141
|
+
activeLockedId: string | null;
|
|
1142
|
+
lockedMultiSelections: {
|
|
1143
|
+
[groupId: string]: true;
|
|
1144
|
+
};
|
|
1167
1145
|
};
|
|
1168
1146
|
captureUpdate: "EVENTUALLY";
|
|
1169
1147
|
}>;
|
|
@@ -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,6 @@ 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/linearElementEditor").LinearElementEditor | null;
|
|
45
44
|
activeTool: {
|
|
46
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
46
|
locked: boolean;
|
|
@@ -79,7 +78,7 @@ export declare const actionToggleCropEditor: {
|
|
|
79
78
|
zoom: Readonly<{
|
|
80
79
|
value: import("../types").NormalizedZoomValue;
|
|
81
80
|
}>;
|
|
82
|
-
openMenu: "
|
|
81
|
+
openMenu: "canvas" | "shape" | null;
|
|
83
82
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
84
83
|
openSidebar: {
|
|
85
84
|
name: string;
|
|
@@ -89,7 +88,7 @@ export declare const actionToggleCropEditor: {
|
|
|
89
88
|
name: "imageExport" | "help" | "jsonExport";
|
|
90
89
|
} | {
|
|
91
90
|
name: "ttd";
|
|
92
|
-
tab: "text-to-diagram"
|
|
91
|
+
tab: "mermaid" | "text-to-diagram";
|
|
93
92
|
} | {
|
|
94
93
|
name: "commandPalette";
|
|
95
94
|
} | {
|
|
@@ -161,9 +160,8 @@ export declare const actionToggleCropEditor: {
|
|
|
161
160
|
shown: true;
|
|
162
161
|
data: import("../charts").Spreadsheet;
|
|
163
162
|
};
|
|
164
|
-
pendingImageElementId: string | null;
|
|
165
163
|
showHyperlinkPopup: false | "editor" | "info";
|
|
166
|
-
selectedLinearElement: import("@excalidraw/element
|
|
164
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
167
165
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
168
166
|
originSnapOffset: {
|
|
169
167
|
x: number;
|
|
@@ -172,16 +170,14 @@ export declare const actionToggleCropEditor: {
|
|
|
172
170
|
objectsSnapModeEnabled: boolean;
|
|
173
171
|
userToFollow: import("../types").UserToFollow | null;
|
|
174
172
|
followedBy: Set<import("../types").SocketId>;
|
|
175
|
-
searchMatches:
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}[];
|
|
184
|
-
}[];
|
|
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
|
+
};
|
|
185
181
|
};
|
|
186
182
|
captureUpdate: "IMMEDIATELY";
|
|
187
183
|
};
|