@myoc/excalidraw 0.18.16 → 0.18.18
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-3HLOFB5F.js → chunk-MAGRVBVM.js} +13453 -10629
- package/dist/dev/chunk-MAGRVBVM.js.map +7 -0
- package/dist/dev/{chunk-PEI7EPYO.js → chunk-QO4EFL6B.js} +15 -5
- package/dist/dev/chunk-QO4EFL6B.js.map +7 -0
- package/dist/dev/chunk-WUH7JFG4.js +7 -0
- package/dist/dev/chunk-WUH7JFG4.js.map +7 -0
- package/dist/dev/data/{image-XPEIZ6XQ.js → image-BBHDGXQ3.js} +3 -3
- package/dist/dev/index.css +101 -24
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +6587 -7610
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-R455UJTM.js → en-2WXBKZE2.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-4Z2WWUCC.js +7 -0
- package/dist/prod/chunk-KZXLT4YB.js +12 -0
- package/dist/prod/chunk-YBT3HBS6.js +33 -0
- package/dist/prod/data/image-JFILZTP3.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +18 -17
- package/dist/prod/locales/{en-YWERZJD6.js → en-XFR6MADM.js} +1 -1
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/src/constants.d.ts +19 -2
- 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/points.d.ts +1 -1
- package/dist/types/common/src/utility-types.d.ts +5 -0
- package/dist/types/common/src/utils.d.ts +17 -7
- 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/arrange.d.ts +2 -1
- package/dist/types/element/src/binding.d.ts +21 -14
- package/dist/types/element/src/bounds.d.ts +11 -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/elbowArrow.d.ts +2 -2
- 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 +4 -3
- package/dist/types/element/src/heading.d.ts +2 -2
- package/dist/types/element/src/index.d.ts +43 -2
- package/dist/types/element/src/linearElementEditor.d.ts +21 -32
- 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/resizeTest.d.ts +2 -2
- package/dist/types/element/src/selection.d.ts +1 -6
- package/dist/types/element/src/shape.d.ts +42 -0
- package/dist/types/element/src/shapes.d.ts +10 -10
- package/dist/types/element/src/sizeHelpers.d.ts +2 -2
- package/dist/types/element/src/store.d.ts +231 -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 +5 -1
- 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/actionAlign.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +28 -34
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +187 -223
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +87 -104
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +14 -17
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +41 -49
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +14 -17
- 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 +219 -246
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +74 -40
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +100 -112
- package/dist/types/excalidraw/actions/actionGroup.d.ts +34 -40
- 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 +14 -17
- package/dist/types/excalidraw/actions/actionMenu.d.ts +42 -51
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +27 -33
- package/dist/types/excalidraw/actions/actionProperties.d.ts +206 -243
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +16 -19
- package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +18 -21
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -19
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -19
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -200
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -19
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +16 -19
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -19
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/types.d.ts +4 -3
- package/dist/types/excalidraw/appState.d.ts +40 -31
- package/dist/types/excalidraw/components/App.d.ts +15 -17
- 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 +1 -1
- 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/dropdownMenu/common.d.ts +1 -1
- 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/blob.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/snapping.d.ts +2 -2
- package/dist/types/excalidraw/types.d.ts +25 -10
- package/dist/types/excalidraw/visualdebug.d.ts +1 -1
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
- package/dist/types/math/src/angle.d.ts +3 -1
- 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/ellipse.d.ts +3 -3
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/point.d.ts +3 -3
- package/dist/types/math/src/polygon.d.ts +2 -2
- package/dist/types/math/src/segment.d.ts +5 -5
- package/dist/types/math/src/utils.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/shape.d.ts +12 -12
- package/dist/types/utils/src/withinBounds.d.ts +1 -1
- package/history.ts +147 -110
- package/package.json +4 -4
- package/dist/dev/chunk-3HLOFB5F.js.map +0 -7
- package/dist/dev/chunk-PEI7EPYO.js.map +0 -7
- package/dist/dev/chunk-QQGTICP4.js +0 -7
- package/dist/dev/chunk-QQGTICP4.js.map +0 -7
- package/dist/prod/chunk-7HNFGNL7.js +0 -7
- package/dist/prod/chunk-KKQVTSHB.js +0 -33
- package/dist/prod/chunk-KZWZ7WHC.js +0 -12
- package/dist/prod/data/image-QD7FUQED.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/excalidraw/components/ButtonSelect.d.ts +0 -9
- package/dist/types/excalidraw/store.d.ts +0 -129
- package/dist/types/utils/src/collision.d.ts +0 -8
- /package/dist/dev/data/{image-XPEIZ6XQ.js.map → image-BBHDGXQ3.js.map} +0 -0
- /package/dist/dev/locales/{en-R455UJTM.js.map → en-2WXBKZE2.js.map} +0 -0
|
@@ -34,7 +34,7 @@ export declare const actionChangeProjectName: {
|
|
|
34
34
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
35
35
|
isBindingEnabled: boolean;
|
|
36
36
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
37
|
-
suggestedBindings: import("@excalidraw/element
|
|
37
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
38
38
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
39
39
|
frameRendering: {
|
|
40
40
|
enabled: boolean;
|
|
@@ -45,7 +45,7 @@ export declare const actionChangeProjectName: {
|
|
|
45
45
|
editingFrame: string | null;
|
|
46
46
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
47
47
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
48
|
-
editingLinearElement: import("@excalidraw/element
|
|
48
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
49
49
|
activeTool: {
|
|
50
50
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
51
51
|
locked: boolean;
|
|
@@ -71,7 +71,7 @@ export declare const actionChangeProjectName: {
|
|
|
71
71
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
72
72
|
currentHoveredFontFamily: number | null;
|
|
73
73
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
74
|
-
currentItemArrowType: "
|
|
74
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
75
75
|
viewBackgroundColor: string;
|
|
76
76
|
scrollX: number;
|
|
77
77
|
scrollY: number;
|
|
@@ -82,7 +82,7 @@ export declare const actionChangeProjectName: {
|
|
|
82
82
|
zoom: Readonly<{
|
|
83
83
|
value: import("../types").NormalizedZoomValue;
|
|
84
84
|
}>;
|
|
85
|
-
openMenu: "
|
|
85
|
+
openMenu: "canvas" | "shape" | null;
|
|
86
86
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
87
87
|
openSidebar: {
|
|
88
88
|
name: string;
|
|
@@ -164,9 +164,8 @@ export declare const actionChangeProjectName: {
|
|
|
164
164
|
shown: true;
|
|
165
165
|
data: import("../charts").Spreadsheet;
|
|
166
166
|
};
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
167
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
168
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
170
169
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
171
170
|
originSnapOffset: {
|
|
172
171
|
x: number;
|
|
@@ -177,16 +176,14 @@ export declare const actionChangeProjectName: {
|
|
|
177
176
|
followedBy: Set<import("../types").SocketId>;
|
|
178
177
|
isCropping: boolean;
|
|
179
178
|
croppingElementId: string | null;
|
|
180
|
-
searchMatches:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}[];
|
|
189
|
-
}[];
|
|
179
|
+
searchMatches: Readonly<{
|
|
180
|
+
focusedId: string | null;
|
|
181
|
+
matches: readonly import("../types").SearchMatch[];
|
|
182
|
+
}> | null;
|
|
183
|
+
activeLockedId: string | null;
|
|
184
|
+
lockedMultiSelections: {
|
|
185
|
+
[groupId: string]: true;
|
|
186
|
+
};
|
|
190
187
|
};
|
|
191
188
|
captureUpdate: "EVENTUALLY";
|
|
192
189
|
};
|
|
@@ -230,7 +227,7 @@ export declare const actionChangeExportScale: {
|
|
|
230
227
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
231
228
|
isBindingEnabled: boolean;
|
|
232
229
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
233
|
-
suggestedBindings: import("@excalidraw/element
|
|
230
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
234
231
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
235
232
|
frameRendering: {
|
|
236
233
|
enabled: boolean;
|
|
@@ -241,7 +238,7 @@ export declare const actionChangeExportScale: {
|
|
|
241
238
|
editingFrame: string | null;
|
|
242
239
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
243
240
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
244
|
-
editingLinearElement: import("@excalidraw/element
|
|
241
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
245
242
|
activeTool: {
|
|
246
243
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
247
244
|
locked: boolean;
|
|
@@ -266,7 +263,7 @@ export declare const actionChangeExportScale: {
|
|
|
266
263
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
267
264
|
currentHoveredFontFamily: number | null;
|
|
268
265
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
269
|
-
currentItemArrowType: "
|
|
266
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
270
267
|
viewBackgroundColor: string;
|
|
271
268
|
scrollX: number;
|
|
272
269
|
scrollY: number;
|
|
@@ -278,7 +275,7 @@ export declare const actionChangeExportScale: {
|
|
|
278
275
|
zoom: Readonly<{
|
|
279
276
|
value: import("../types").NormalizedZoomValue;
|
|
280
277
|
}>;
|
|
281
|
-
openMenu: "
|
|
278
|
+
openMenu: "canvas" | "shape" | null;
|
|
282
279
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
283
280
|
openSidebar: {
|
|
284
281
|
name: string;
|
|
@@ -360,9 +357,8 @@ export declare const actionChangeExportScale: {
|
|
|
360
357
|
shown: true;
|
|
361
358
|
data: import("../charts").Spreadsheet;
|
|
362
359
|
};
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
360
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
361
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
366
362
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
367
363
|
originSnapOffset: {
|
|
368
364
|
x: number;
|
|
@@ -373,16 +369,14 @@ export declare const actionChangeExportScale: {
|
|
|
373
369
|
followedBy: Set<import("../types").SocketId>;
|
|
374
370
|
isCropping: boolean;
|
|
375
371
|
croppingElementId: string | null;
|
|
376
|
-
searchMatches:
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
}[];
|
|
385
|
-
}[];
|
|
372
|
+
searchMatches: Readonly<{
|
|
373
|
+
focusedId: string | null;
|
|
374
|
+
matches: readonly import("../types").SearchMatch[];
|
|
375
|
+
}> | null;
|
|
376
|
+
activeLockedId: string | null;
|
|
377
|
+
lockedMultiSelections: {
|
|
378
|
+
[groupId: string]: true;
|
|
379
|
+
};
|
|
386
380
|
};
|
|
387
381
|
captureUpdate: "EVENTUALLY";
|
|
388
382
|
};
|
|
@@ -426,7 +420,7 @@ export declare const actionChangeExportBackground: {
|
|
|
426
420
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
427
421
|
isBindingEnabled: boolean;
|
|
428
422
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
429
|
-
suggestedBindings: import("@excalidraw/element
|
|
423
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
430
424
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
431
425
|
frameRendering: {
|
|
432
426
|
enabled: boolean;
|
|
@@ -437,7 +431,7 @@ export declare const actionChangeExportBackground: {
|
|
|
437
431
|
editingFrame: string | null;
|
|
438
432
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
439
433
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
440
|
-
editingLinearElement: import("@excalidraw/element
|
|
434
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
441
435
|
activeTool: {
|
|
442
436
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
443
437
|
locked: boolean;
|
|
@@ -462,7 +456,7 @@ export declare const actionChangeExportBackground: {
|
|
|
462
456
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
463
457
|
currentHoveredFontFamily: number | null;
|
|
464
458
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
465
|
-
currentItemArrowType: "
|
|
459
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
466
460
|
viewBackgroundColor: string;
|
|
467
461
|
scrollX: number;
|
|
468
462
|
scrollY: number;
|
|
@@ -474,7 +468,7 @@ export declare const actionChangeExportBackground: {
|
|
|
474
468
|
zoom: Readonly<{
|
|
475
469
|
value: import("../types").NormalizedZoomValue;
|
|
476
470
|
}>;
|
|
477
|
-
openMenu: "
|
|
471
|
+
openMenu: "canvas" | "shape" | null;
|
|
478
472
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
479
473
|
openSidebar: {
|
|
480
474
|
name: string;
|
|
@@ -556,9 +550,8 @@ export declare const actionChangeExportBackground: {
|
|
|
556
550
|
shown: true;
|
|
557
551
|
data: import("../charts").Spreadsheet;
|
|
558
552
|
};
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
553
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
554
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
562
555
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
563
556
|
originSnapOffset: {
|
|
564
557
|
x: number;
|
|
@@ -569,16 +562,14 @@ export declare const actionChangeExportBackground: {
|
|
|
569
562
|
followedBy: Set<import("../types").SocketId>;
|
|
570
563
|
isCropping: boolean;
|
|
571
564
|
croppingElementId: string | null;
|
|
572
|
-
searchMatches:
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
}[];
|
|
581
|
-
}[];
|
|
565
|
+
searchMatches: Readonly<{
|
|
566
|
+
focusedId: string | null;
|
|
567
|
+
matches: readonly import("../types").SearchMatch[];
|
|
568
|
+
}> | null;
|
|
569
|
+
activeLockedId: string | null;
|
|
570
|
+
lockedMultiSelections: {
|
|
571
|
+
[groupId: string]: true;
|
|
572
|
+
};
|
|
582
573
|
};
|
|
583
574
|
captureUpdate: "EVENTUALLY";
|
|
584
575
|
};
|
|
@@ -622,7 +613,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
622
613
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
623
614
|
isBindingEnabled: boolean;
|
|
624
615
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
625
|
-
suggestedBindings: import("@excalidraw/element
|
|
616
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
626
617
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
627
618
|
frameRendering: {
|
|
628
619
|
enabled: boolean;
|
|
@@ -633,7 +624,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
633
624
|
editingFrame: string | null;
|
|
634
625
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
635
626
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
636
|
-
editingLinearElement: import("@excalidraw/element
|
|
627
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
637
628
|
activeTool: {
|
|
638
629
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
639
630
|
locked: boolean;
|
|
@@ -658,7 +649,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
658
649
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
659
650
|
currentHoveredFontFamily: number | null;
|
|
660
651
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
661
|
-
currentItemArrowType: "
|
|
652
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
662
653
|
viewBackgroundColor: string;
|
|
663
654
|
scrollX: number;
|
|
664
655
|
scrollY: number;
|
|
@@ -670,7 +661,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
670
661
|
zoom: Readonly<{
|
|
671
662
|
value: import("../types").NormalizedZoomValue;
|
|
672
663
|
}>;
|
|
673
|
-
openMenu: "
|
|
664
|
+
openMenu: "canvas" | "shape" | null;
|
|
674
665
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
675
666
|
openSidebar: {
|
|
676
667
|
name: string;
|
|
@@ -752,9 +743,8 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
752
743
|
shown: true;
|
|
753
744
|
data: import("../charts").Spreadsheet;
|
|
754
745
|
};
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
746
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
747
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
758
748
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
759
749
|
originSnapOffset: {
|
|
760
750
|
x: number;
|
|
@@ -765,16 +755,14 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
765
755
|
followedBy: Set<import("../types").SocketId>;
|
|
766
756
|
isCropping: boolean;
|
|
767
757
|
croppingElementId: string | null;
|
|
768
|
-
searchMatches:
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
}[];
|
|
777
|
-
}[];
|
|
758
|
+
searchMatches: Readonly<{
|
|
759
|
+
focusedId: string | null;
|
|
760
|
+
matches: readonly import("../types").SearchMatch[];
|
|
761
|
+
}> | null;
|
|
762
|
+
activeLockedId: string | null;
|
|
763
|
+
lockedMultiSelections: {
|
|
764
|
+
[groupId: string]: true;
|
|
765
|
+
};
|
|
778
766
|
};
|
|
779
767
|
captureUpdate: "EVENTUALLY";
|
|
780
768
|
};
|
|
@@ -823,7 +811,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
823
811
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
824
812
|
isBindingEnabled: boolean;
|
|
825
813
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
826
|
-
suggestedBindings: import("@excalidraw/element
|
|
814
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
827
815
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
828
816
|
frameRendering: {
|
|
829
817
|
enabled: boolean;
|
|
@@ -834,7 +822,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
834
822
|
editingFrame: string | null;
|
|
835
823
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
836
824
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
837
|
-
editingLinearElement: import("@excalidraw/element
|
|
825
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
838
826
|
activeTool: {
|
|
839
827
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
840
828
|
locked: boolean;
|
|
@@ -860,7 +848,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
860
848
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
861
849
|
currentHoveredFontFamily: number | null;
|
|
862
850
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
863
|
-
currentItemArrowType: "
|
|
851
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
864
852
|
viewBackgroundColor: string;
|
|
865
853
|
scrollX: number;
|
|
866
854
|
scrollY: number;
|
|
@@ -872,7 +860,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
872
860
|
zoom: Readonly<{
|
|
873
861
|
value: import("../types").NormalizedZoomValue;
|
|
874
862
|
}>;
|
|
875
|
-
openMenu: "
|
|
863
|
+
openMenu: "canvas" | "shape" | null;
|
|
876
864
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
877
865
|
openSidebar: {
|
|
878
866
|
name: string;
|
|
@@ -948,9 +936,8 @@ export declare const actionSaveToActiveFile: {
|
|
|
948
936
|
shown: true;
|
|
949
937
|
data: import("../charts").Spreadsheet;
|
|
950
938
|
};
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
939
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
940
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
954
941
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
955
942
|
originSnapOffset: {
|
|
956
943
|
x: number;
|
|
@@ -961,24 +948,22 @@ export declare const actionSaveToActiveFile: {
|
|
|
961
948
|
followedBy: Set<import("../types").SocketId>;
|
|
962
949
|
isCropping: boolean;
|
|
963
950
|
croppingElementId: string | null;
|
|
964
|
-
searchMatches:
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
}[];
|
|
973
|
-
}[];
|
|
951
|
+
searchMatches: Readonly<{
|
|
952
|
+
focusedId: string | null;
|
|
953
|
+
matches: readonly import("../types").SearchMatch[];
|
|
954
|
+
}> | null;
|
|
955
|
+
activeLockedId: string | null;
|
|
956
|
+
lockedMultiSelections: {
|
|
957
|
+
[groupId: string]: true;
|
|
958
|
+
};
|
|
974
959
|
};
|
|
975
960
|
} | {
|
|
976
961
|
captureUpdate: "EVENTUALLY";
|
|
977
962
|
appState?: undefined;
|
|
978
963
|
}>;
|
|
979
|
-
keyTest: (event:
|
|
964
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => false;
|
|
980
965
|
} & {
|
|
981
|
-
keyTest?: ((event:
|
|
966
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => false) | undefined;
|
|
982
967
|
};
|
|
983
968
|
export declare const actionSaveFileToDisk: {
|
|
984
969
|
name: "saveFileToDisk";
|
|
@@ -1022,7 +1007,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
1022
1007
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1023
1008
|
isBindingEnabled: boolean;
|
|
1024
1009
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1025
|
-
suggestedBindings: import("@excalidraw/element
|
|
1010
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1026
1011
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1027
1012
|
frameRendering: {
|
|
1028
1013
|
enabled: boolean;
|
|
@@ -1033,7 +1018,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
1033
1018
|
editingFrame: string | null;
|
|
1034
1019
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1035
1020
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1036
|
-
editingLinearElement: import("@excalidraw/element
|
|
1021
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1037
1022
|
activeTool: {
|
|
1038
1023
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1039
1024
|
locked: boolean;
|
|
@@ -1059,7 +1044,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
1059
1044
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1060
1045
|
currentHoveredFontFamily: number | null;
|
|
1061
1046
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1062
|
-
currentItemArrowType: "
|
|
1047
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1063
1048
|
viewBackgroundColor: string;
|
|
1064
1049
|
scrollX: number;
|
|
1065
1050
|
scrollY: number;
|
|
@@ -1071,7 +1056,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
1071
1056
|
zoom: Readonly<{
|
|
1072
1057
|
value: import("../types").NormalizedZoomValue;
|
|
1073
1058
|
}>;
|
|
1074
|
-
openMenu: "
|
|
1059
|
+
openMenu: "canvas" | "shape" | null;
|
|
1075
1060
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1076
1061
|
openSidebar: {
|
|
1077
1062
|
name: string;
|
|
@@ -1136,9 +1121,8 @@ export declare const actionSaveFileToDisk: {
|
|
|
1136
1121
|
shown: true;
|
|
1137
1122
|
data: import("../charts").Spreadsheet;
|
|
1138
1123
|
};
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1124
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1125
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1142
1126
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1143
1127
|
originSnapOffset: {
|
|
1144
1128
|
x: number;
|
|
@@ -1149,25 +1133,23 @@ export declare const actionSaveFileToDisk: {
|
|
|
1149
1133
|
followedBy: Set<import("../types").SocketId>;
|
|
1150
1134
|
isCropping: boolean;
|
|
1151
1135
|
croppingElementId: string | null;
|
|
1152
|
-
searchMatches:
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
}[];
|
|
1161
|
-
}[];
|
|
1136
|
+
searchMatches: Readonly<{
|
|
1137
|
+
focusedId: string | null;
|
|
1138
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1139
|
+
}> | null;
|
|
1140
|
+
activeLockedId: string | null;
|
|
1141
|
+
lockedMultiSelections: {
|
|
1142
|
+
[groupId: string]: true;
|
|
1143
|
+
};
|
|
1162
1144
|
};
|
|
1163
1145
|
} | {
|
|
1164
1146
|
captureUpdate: "EVENTUALLY";
|
|
1165
1147
|
appState?: undefined;
|
|
1166
1148
|
}>;
|
|
1167
|
-
keyTest: (event:
|
|
1149
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1168
1150
|
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1169
1151
|
} & {
|
|
1170
|
-
keyTest?: ((event:
|
|
1152
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1171
1153
|
};
|
|
1172
1154
|
export declare const actionLoadScene: {
|
|
1173
1155
|
name: "loadScene";
|
|
@@ -1179,119 +1161,52 @@ export declare const actionLoadScene: {
|
|
|
1179
1161
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
1180
1162
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
1181
1163
|
appState: {
|
|
1182
|
-
viewBackgroundColor: string;
|
|
1183
|
-
frameRendering: {
|
|
1184
|
-
enabled: boolean;
|
|
1185
|
-
name: boolean;
|
|
1186
|
-
outline: boolean;
|
|
1187
|
-
clip: boolean;
|
|
1188
|
-
};
|
|
1189
|
-
name: string | null;
|
|
1190
|
-
theme: Theme;
|
|
1191
|
-
zoom: Readonly<{
|
|
1192
|
-
value: import("../types").NormalizedZoomValue;
|
|
1193
|
-
}>;
|
|
1194
|
-
scrollX: number;
|
|
1195
|
-
scrollY: number;
|
|
1196
|
-
viewModeEnabled: boolean;
|
|
1197
|
-
openDialog: {
|
|
1198
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
1199
|
-
} | {
|
|
1200
|
-
name: "ttd";
|
|
1201
|
-
tab: "text-to-diagram" | "mermaid";
|
|
1202
|
-
} | {
|
|
1203
|
-
name: "commandPalette";
|
|
1204
|
-
} | {
|
|
1205
|
-
name: "elementLinkSelector";
|
|
1206
|
-
sourceElementId: string;
|
|
1207
|
-
} | null;
|
|
1208
|
-
editingGroupId: string | null;
|
|
1209
|
-
selectedElementIds: Readonly<{
|
|
1210
|
-
[id: string]: true;
|
|
1211
|
-
}>;
|
|
1212
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1213
|
-
pendingImageElementId: string | null;
|
|
1214
|
-
activeEmbeddable: {
|
|
1215
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1216
|
-
state: "hover" | "active";
|
|
1217
|
-
} | null;
|
|
1218
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1219
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1220
|
-
selectedGroupIds: {
|
|
1221
|
-
[groupId: string]: boolean;
|
|
1222
|
-
};
|
|
1223
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1224
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1225
|
-
isBindingEnabled: boolean;
|
|
1226
|
-
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1227
|
-
isRotating: boolean;
|
|
1228
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1229
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
1230
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1231
|
-
button?: "up" | "down" | undefined;
|
|
1232
|
-
selectedElementIds?: Readonly<{
|
|
1233
|
-
[id: string]: true;
|
|
1234
|
-
}> | undefined;
|
|
1235
|
-
username?: string | null | undefined;
|
|
1236
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1237
|
-
color?: {
|
|
1238
|
-
background: string;
|
|
1239
|
-
stroke: string;
|
|
1240
|
-
} | undefined;
|
|
1241
|
-
avatarUrl?: string | undefined;
|
|
1242
|
-
id?: string | undefined;
|
|
1243
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1244
|
-
isCurrentUser?: boolean | undefined;
|
|
1245
|
-
isInCall?: boolean | undefined;
|
|
1246
|
-
isSpeaking?: boolean | undefined;
|
|
1247
|
-
isMuted?: boolean | undefined;
|
|
1248
|
-
}>>;
|
|
1249
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
1250
|
-
zenModeEnabled: boolean;
|
|
1251
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1252
|
-
isCropping: boolean;
|
|
1253
|
-
croppingElementId: string | null;
|
|
1254
|
-
searchMatches: readonly {
|
|
1255
|
-
id: string;
|
|
1256
|
-
focus: boolean;
|
|
1257
|
-
matchedLines: {
|
|
1258
|
-
offsetX: number;
|
|
1259
|
-
offsetY: number;
|
|
1260
|
-
width: number;
|
|
1261
|
-
height: number;
|
|
1262
|
-
}[];
|
|
1263
|
-
}[];
|
|
1264
|
-
gridModeEnabled: boolean;
|
|
1265
|
-
objectsSnapModeEnabled: boolean;
|
|
1266
|
-
wheelZoomsOnDefault?: boolean | undefined;
|
|
1267
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1268
|
-
exportScale: number;
|
|
1269
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1270
|
-
gridSize: number;
|
|
1271
|
-
gridStep: number;
|
|
1272
|
-
currentHoveredFontFamily: number | null;
|
|
1273
|
-
hoveredElementIds: Readonly<{
|
|
1274
|
-
[id: string]: true;
|
|
1275
|
-
}>;
|
|
1276
1164
|
contextMenu: {
|
|
1277
1165
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1278
1166
|
top: number;
|
|
1279
1167
|
left: number;
|
|
1280
1168
|
} | null;
|
|
1169
|
+
stats: {
|
|
1170
|
+
open: boolean;
|
|
1171
|
+
panels: number;
|
|
1172
|
+
};
|
|
1173
|
+
exportWithDarkMode: boolean;
|
|
1174
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1175
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1176
|
+
cursorButton: "up" | "down";
|
|
1177
|
+
scrollX: number;
|
|
1178
|
+
scrollY: number;
|
|
1281
1179
|
showWelcomeScreen: boolean;
|
|
1282
1180
|
isLoading: boolean;
|
|
1283
1181
|
myocSimplifiedMode: boolean;
|
|
1284
1182
|
dontResizeLimitMBs: number;
|
|
1285
1183
|
hideMainMenus: boolean;
|
|
1184
|
+
wheelZoomsOnDefault?: boolean | undefined;
|
|
1286
1185
|
arrangeConfiguration: {
|
|
1287
1186
|
algorithm: "bin-packing";
|
|
1288
1187
|
gap: number;
|
|
1289
1188
|
};
|
|
1290
1189
|
errorMessage: import("react").ReactNode;
|
|
1190
|
+
activeEmbeddable: {
|
|
1191
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1192
|
+
state: "hover" | "active";
|
|
1193
|
+
} | null;
|
|
1291
1194
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1292
1195
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1293
|
-
|
|
1196
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1197
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1198
|
+
isBindingEnabled: boolean;
|
|
1199
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1200
|
+
frameRendering: {
|
|
1201
|
+
enabled: boolean;
|
|
1202
|
+
name: boolean;
|
|
1203
|
+
outline: boolean;
|
|
1204
|
+
clip: boolean;
|
|
1205
|
+
};
|
|
1294
1206
|
editingFrame: string | null;
|
|
1207
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1208
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1209
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1295
1210
|
activeTool: {
|
|
1296
1211
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1297
1212
|
locked: boolean;
|
|
@@ -1301,7 +1216,7 @@ export declare const actionLoadScene: {
|
|
|
1301
1216
|
penDetected: boolean;
|
|
1302
1217
|
exportBackground: boolean;
|
|
1303
1218
|
exportEmbedScene: boolean;
|
|
1304
|
-
|
|
1219
|
+
exportScale: number;
|
|
1305
1220
|
currentItemStrokeColor: string;
|
|
1306
1221
|
currentItemBackgroundColor: string;
|
|
1307
1222
|
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
@@ -1314,32 +1229,83 @@ export declare const actionLoadScene: {
|
|
|
1314
1229
|
currentItemTextAlign: string;
|
|
1315
1230
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1316
1231
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1232
|
+
currentHoveredFontFamily: number | null;
|
|
1317
1233
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1318
|
-
currentItemArrowType: "
|
|
1319
|
-
|
|
1234
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1235
|
+
viewBackgroundColor: string;
|
|
1320
1236
|
scrolledOutside: boolean;
|
|
1237
|
+
name: string | null;
|
|
1321
1238
|
isResizing: boolean;
|
|
1322
|
-
|
|
1239
|
+
isRotating: boolean;
|
|
1240
|
+
zoom: Readonly<{
|
|
1241
|
+
value: import("../types").NormalizedZoomValue;
|
|
1242
|
+
}>;
|
|
1243
|
+
openMenu: "canvas" | "shape" | null;
|
|
1323
1244
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1324
1245
|
openSidebar: {
|
|
1325
1246
|
name: string;
|
|
1326
1247
|
tab?: string | undefined;
|
|
1327
1248
|
} | null;
|
|
1249
|
+
openDialog: {
|
|
1250
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1251
|
+
} | {
|
|
1252
|
+
name: "ttd";
|
|
1253
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1254
|
+
} | {
|
|
1255
|
+
name: "commandPalette";
|
|
1256
|
+
} | {
|
|
1257
|
+
name: "elementLinkSelector";
|
|
1258
|
+
sourceElementId: string;
|
|
1259
|
+
} | null;
|
|
1328
1260
|
defaultSidebarDockedPreference: boolean;
|
|
1329
1261
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1262
|
+
selectedElementIds: Readonly<{
|
|
1263
|
+
[id: string]: true;
|
|
1264
|
+
}>;
|
|
1265
|
+
hoveredElementIds: Readonly<{
|
|
1266
|
+
[id: string]: true;
|
|
1267
|
+
}>;
|
|
1330
1268
|
previousSelectedElementIds: {
|
|
1331
1269
|
[id: string]: true;
|
|
1332
1270
|
};
|
|
1271
|
+
selectedElementsAreBeingDragged: boolean;
|
|
1272
|
+
shouldCacheIgnoreZoom: boolean;
|
|
1333
1273
|
toast: {
|
|
1334
1274
|
message: string;
|
|
1335
1275
|
closable?: boolean | undefined;
|
|
1336
1276
|
duration?: number | undefined;
|
|
1337
1277
|
} | null;
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1278
|
+
zenModeEnabled: boolean;
|
|
1279
|
+
theme: Theme;
|
|
1280
|
+
gridSize: number;
|
|
1281
|
+
gridStep: number;
|
|
1282
|
+
gridModeEnabled: boolean;
|
|
1283
|
+
viewModeEnabled: boolean;
|
|
1284
|
+
selectedGroupIds: {
|
|
1285
|
+
[groupId: string]: boolean;
|
|
1342
1286
|
};
|
|
1287
|
+
editingGroupId: string | null;
|
|
1288
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1289
|
+
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
1290
|
+
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1291
|
+
button?: "up" | "down" | undefined;
|
|
1292
|
+
selectedElementIds?: Readonly<{
|
|
1293
|
+
[id: string]: true;
|
|
1294
|
+
}> | undefined;
|
|
1295
|
+
username?: string | null | undefined;
|
|
1296
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1297
|
+
color?: {
|
|
1298
|
+
background: string;
|
|
1299
|
+
stroke: string;
|
|
1300
|
+
} | undefined;
|
|
1301
|
+
avatarUrl?: string | undefined;
|
|
1302
|
+
id?: string | undefined;
|
|
1303
|
+
socketId?: import("../types").SocketId | undefined;
|
|
1304
|
+
isCurrentUser?: boolean | undefined;
|
|
1305
|
+
isInCall?: boolean | undefined;
|
|
1306
|
+
isSpeaking?: boolean | undefined;
|
|
1307
|
+
isMuted?: boolean | undefined;
|
|
1308
|
+
}>>;
|
|
1343
1309
|
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1344
1310
|
pasteDialog: {
|
|
1345
1311
|
shown: false;
|
|
@@ -1348,13 +1314,26 @@ export declare const actionLoadScene: {
|
|
|
1348
1314
|
shown: true;
|
|
1349
1315
|
data: import("../charts").Spreadsheet;
|
|
1350
1316
|
};
|
|
1351
|
-
showHyperlinkPopup: false | "
|
|
1317
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1318
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1319
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1352
1320
|
originSnapOffset: {
|
|
1353
1321
|
x: number;
|
|
1354
1322
|
y: number;
|
|
1355
1323
|
} | null;
|
|
1324
|
+
objectsSnapModeEnabled: boolean;
|
|
1356
1325
|
userToFollow: import("../types").UserToFollow | null;
|
|
1357
1326
|
followedBy: Set<import("../types").SocketId>;
|
|
1327
|
+
isCropping: boolean;
|
|
1328
|
+
croppingElementId: string | null;
|
|
1329
|
+
searchMatches: Readonly<{
|
|
1330
|
+
focusedId: string | null;
|
|
1331
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1332
|
+
}> | null;
|
|
1333
|
+
activeLockedId: string | null;
|
|
1334
|
+
lockedMultiSelections: {
|
|
1335
|
+
[groupId: string]: true;
|
|
1336
|
+
};
|
|
1358
1337
|
};
|
|
1359
1338
|
files: import("../types").BinaryFiles;
|
|
1360
1339
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -1387,7 +1366,7 @@ export declare const actionLoadScene: {
|
|
|
1387
1366
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1388
1367
|
isBindingEnabled: boolean;
|
|
1389
1368
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1390
|
-
suggestedBindings: import("@excalidraw/element
|
|
1369
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1391
1370
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1392
1371
|
frameRendering: {
|
|
1393
1372
|
enabled: boolean;
|
|
@@ -1398,7 +1377,7 @@ export declare const actionLoadScene: {
|
|
|
1398
1377
|
editingFrame: string | null;
|
|
1399
1378
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1400
1379
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1401
|
-
editingLinearElement: import("@excalidraw/element
|
|
1380
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1402
1381
|
activeTool: {
|
|
1403
1382
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1404
1383
|
locked: boolean;
|
|
@@ -1424,7 +1403,7 @@ export declare const actionLoadScene: {
|
|
|
1424
1403
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1425
1404
|
currentHoveredFontFamily: number | null;
|
|
1426
1405
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1427
|
-
currentItemArrowType: "
|
|
1406
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1428
1407
|
viewBackgroundColor: string;
|
|
1429
1408
|
scrollX: number;
|
|
1430
1409
|
scrollY: number;
|
|
@@ -1436,7 +1415,7 @@ export declare const actionLoadScene: {
|
|
|
1436
1415
|
zoom: Readonly<{
|
|
1437
1416
|
value: import("../types").NormalizedZoomValue;
|
|
1438
1417
|
}>;
|
|
1439
|
-
openMenu: "
|
|
1418
|
+
openMenu: "canvas" | "shape" | null;
|
|
1440
1419
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1441
1420
|
openSidebar: {
|
|
1442
1421
|
name: string;
|
|
@@ -1518,9 +1497,8 @@ export declare const actionLoadScene: {
|
|
|
1518
1497
|
shown: true;
|
|
1519
1498
|
data: import("../charts").Spreadsheet;
|
|
1520
1499
|
};
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1500
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1501
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1524
1502
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1525
1503
|
originSnapOffset: {
|
|
1526
1504
|
x: number;
|
|
@@ -1531,23 +1509,21 @@ export declare const actionLoadScene: {
|
|
|
1531
1509
|
followedBy: Set<import("../types").SocketId>;
|
|
1532
1510
|
isCropping: boolean;
|
|
1533
1511
|
croppingElementId: string | null;
|
|
1534
|
-
searchMatches:
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
}[];
|
|
1543
|
-
}[];
|
|
1512
|
+
searchMatches: Readonly<{
|
|
1513
|
+
focusedId: string | null;
|
|
1514
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1515
|
+
}> | null;
|
|
1516
|
+
activeLockedId: string | null;
|
|
1517
|
+
lockedMultiSelections: {
|
|
1518
|
+
[groupId: string]: true;
|
|
1519
|
+
};
|
|
1544
1520
|
};
|
|
1545
1521
|
files: import("../types").BinaryFiles;
|
|
1546
1522
|
captureUpdate: "EVENTUALLY";
|
|
1547
1523
|
}>;
|
|
1548
|
-
keyTest: (event:
|
|
1524
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1549
1525
|
} & {
|
|
1550
|
-
keyTest?: ((event:
|
|
1526
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1551
1527
|
};
|
|
1552
1528
|
export declare const actionExportWithDarkMode: {
|
|
1553
1529
|
name: "exportWithDarkMode";
|
|
@@ -1585,7 +1561,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1585
1561
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1586
1562
|
isBindingEnabled: boolean;
|
|
1587
1563
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1588
|
-
suggestedBindings: import("@excalidraw/element
|
|
1564
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1589
1565
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1590
1566
|
frameRendering: {
|
|
1591
1567
|
enabled: boolean;
|
|
@@ -1596,7 +1572,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1596
1572
|
editingFrame: string | null;
|
|
1597
1573
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1598
1574
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1599
|
-
editingLinearElement: import("@excalidraw/element
|
|
1575
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1600
1576
|
activeTool: {
|
|
1601
1577
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1602
1578
|
locked: boolean;
|
|
@@ -1621,7 +1597,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1621
1597
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1622
1598
|
currentHoveredFontFamily: number | null;
|
|
1623
1599
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1624
|
-
currentItemArrowType: "
|
|
1600
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1625
1601
|
viewBackgroundColor: string;
|
|
1626
1602
|
scrollX: number;
|
|
1627
1603
|
scrollY: number;
|
|
@@ -1633,7 +1609,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1633
1609
|
zoom: Readonly<{
|
|
1634
1610
|
value: import("../types").NormalizedZoomValue;
|
|
1635
1611
|
}>;
|
|
1636
|
-
openMenu: "
|
|
1612
|
+
openMenu: "canvas" | "shape" | null;
|
|
1637
1613
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1638
1614
|
openSidebar: {
|
|
1639
1615
|
name: string;
|
|
@@ -1715,9 +1691,8 @@ export declare const actionExportWithDarkMode: {
|
|
|
1715
1691
|
shown: true;
|
|
1716
1692
|
data: import("../charts").Spreadsheet;
|
|
1717
1693
|
};
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1694
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1695
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1721
1696
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1722
1697
|
originSnapOffset: {
|
|
1723
1698
|
x: number;
|
|
@@ -1728,16 +1703,14 @@ export declare const actionExportWithDarkMode: {
|
|
|
1728
1703
|
followedBy: Set<import("../types").SocketId>;
|
|
1729
1704
|
isCropping: boolean;
|
|
1730
1705
|
croppingElementId: string | null;
|
|
1731
|
-
searchMatches:
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
}[];
|
|
1740
|
-
}[];
|
|
1706
|
+
searchMatches: Readonly<{
|
|
1707
|
+
focusedId: string | null;
|
|
1708
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1709
|
+
}> | null;
|
|
1710
|
+
activeLockedId: string | null;
|
|
1711
|
+
lockedMultiSelections: {
|
|
1712
|
+
[groupId: string]: true;
|
|
1713
|
+
};
|
|
1741
1714
|
};
|
|
1742
1715
|
captureUpdate: "EVENTUALLY";
|
|
1743
1716
|
};
|