@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
|
@@ -35,7 +35,7 @@ export declare const actionCopy: {
|
|
|
35
35
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
36
36
|
isBindingEnabled: boolean;
|
|
37
37
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
38
|
-
suggestedBindings: import("@excalidraw/element
|
|
38
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
39
39
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
40
40
|
frameRendering: {
|
|
41
41
|
enabled: boolean;
|
|
@@ -46,7 +46,7 @@ export declare const actionCopy: {
|
|
|
46
46
|
editingFrame: string | null;
|
|
47
47
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
48
48
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
49
|
-
editingLinearElement: import("@excalidraw/element
|
|
49
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
50
50
|
activeTool: {
|
|
51
51
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
52
52
|
locked: boolean;
|
|
@@ -72,7 +72,7 @@ export declare const actionCopy: {
|
|
|
72
72
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
73
73
|
currentHoveredFontFamily: number | null;
|
|
74
74
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
75
|
-
currentItemArrowType: "
|
|
75
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
76
76
|
viewBackgroundColor: string;
|
|
77
77
|
scrollX: number;
|
|
78
78
|
scrollY: number;
|
|
@@ -84,7 +84,7 @@ export declare const actionCopy: {
|
|
|
84
84
|
zoom: Readonly<{
|
|
85
85
|
value: import("../types").NormalizedZoomValue;
|
|
86
86
|
}>;
|
|
87
|
-
openMenu: "
|
|
87
|
+
openMenu: "canvas" | "shape" | null;
|
|
88
88
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
89
89
|
openSidebar: {
|
|
90
90
|
name: string;
|
|
@@ -166,9 +166,8 @@ export declare const actionCopy: {
|
|
|
166
166
|
shown: true;
|
|
167
167
|
data: import("../charts").Spreadsheet;
|
|
168
168
|
};
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
169
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
170
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
172
171
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
173
172
|
originSnapOffset: {
|
|
174
173
|
x: number;
|
|
@@ -179,16 +178,14 @@ export declare const actionCopy: {
|
|
|
179
178
|
followedBy: Set<import("../types").SocketId>;
|
|
180
179
|
isCropping: boolean;
|
|
181
180
|
croppingElementId: string | null;
|
|
182
|
-
searchMatches:
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}[];
|
|
191
|
-
}[];
|
|
181
|
+
searchMatches: Readonly<{
|
|
182
|
+
focusedId: string | null;
|
|
183
|
+
matches: readonly import("../types").SearchMatch[];
|
|
184
|
+
}> | null;
|
|
185
|
+
activeLockedId: string | null;
|
|
186
|
+
lockedMultiSelections: {
|
|
187
|
+
[groupId: string]: true;
|
|
188
|
+
};
|
|
192
189
|
};
|
|
193
190
|
} | {
|
|
194
191
|
captureUpdate: "EVENTUALLY";
|
|
@@ -233,7 +230,7 @@ export declare const actionPaste: {
|
|
|
233
230
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
234
231
|
isBindingEnabled: boolean;
|
|
235
232
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
236
|
-
suggestedBindings: import("@excalidraw/element
|
|
233
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
237
234
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
238
235
|
frameRendering: {
|
|
239
236
|
enabled: boolean;
|
|
@@ -244,7 +241,7 @@ export declare const actionPaste: {
|
|
|
244
241
|
editingFrame: string | null;
|
|
245
242
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
246
243
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
247
|
-
editingLinearElement: import("@excalidraw/element
|
|
244
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
248
245
|
activeTool: {
|
|
249
246
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
250
247
|
locked: boolean;
|
|
@@ -270,7 +267,7 @@ export declare const actionPaste: {
|
|
|
270
267
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
271
268
|
currentHoveredFontFamily: number | null;
|
|
272
269
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
273
|
-
currentItemArrowType: "
|
|
270
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
274
271
|
viewBackgroundColor: string;
|
|
275
272
|
scrollX: number;
|
|
276
273
|
scrollY: number;
|
|
@@ -282,7 +279,7 @@ export declare const actionPaste: {
|
|
|
282
279
|
zoom: Readonly<{
|
|
283
280
|
value: import("../types").NormalizedZoomValue;
|
|
284
281
|
}>;
|
|
285
|
-
openMenu: "
|
|
282
|
+
openMenu: "canvas" | "shape" | null;
|
|
286
283
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
287
284
|
openSidebar: {
|
|
288
285
|
name: string;
|
|
@@ -364,9 +361,8 @@ export declare const actionPaste: {
|
|
|
364
361
|
shown: true;
|
|
365
362
|
data: import("../charts").Spreadsheet;
|
|
366
363
|
};
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
364
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
365
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
370
366
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
371
367
|
originSnapOffset: {
|
|
372
368
|
x: number;
|
|
@@ -377,16 +373,14 @@ export declare const actionPaste: {
|
|
|
377
373
|
followedBy: Set<import("../types").SocketId>;
|
|
378
374
|
isCropping: boolean;
|
|
379
375
|
croppingElementId: string | null;
|
|
380
|
-
searchMatches:
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
}[];
|
|
389
|
-
}[];
|
|
376
|
+
searchMatches: Readonly<{
|
|
377
|
+
focusedId: string | null;
|
|
378
|
+
matches: readonly import("../types").SearchMatch[];
|
|
379
|
+
}> | null;
|
|
380
|
+
activeLockedId: string | null;
|
|
381
|
+
lockedMultiSelections: {
|
|
382
|
+
[groupId: string]: true;
|
|
383
|
+
};
|
|
390
384
|
};
|
|
391
385
|
} | {
|
|
392
386
|
captureUpdate: "EVENTUALLY";
|
|
@@ -433,7 +427,7 @@ export declare const actionCut: {
|
|
|
433
427
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
434
428
|
isBindingEnabled: boolean;
|
|
435
429
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
436
|
-
suggestedBindings: import("@excalidraw/element
|
|
430
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
437
431
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
438
432
|
frameRendering: {
|
|
439
433
|
enabled: boolean;
|
|
@@ -469,7 +463,7 @@ export declare const actionCut: {
|
|
|
469
463
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
470
464
|
currentHoveredFontFamily: number | null;
|
|
471
465
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
472
|
-
currentItemArrowType: "
|
|
466
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
473
467
|
viewBackgroundColor: string;
|
|
474
468
|
scrollX: number;
|
|
475
469
|
scrollY: number;
|
|
@@ -481,7 +475,7 @@ export declare const actionCut: {
|
|
|
481
475
|
zoom: Readonly<{
|
|
482
476
|
value: import("../types").NormalizedZoomValue;
|
|
483
477
|
}>;
|
|
484
|
-
openMenu: "
|
|
478
|
+
openMenu: "canvas" | "shape" | null;
|
|
485
479
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
486
480
|
openSidebar: {
|
|
487
481
|
name: string;
|
|
@@ -563,9 +557,8 @@ export declare const actionCut: {
|
|
|
563
557
|
shown: true;
|
|
564
558
|
data: import("../charts").Spreadsheet;
|
|
565
559
|
};
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
560
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
561
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
569
562
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
570
563
|
originSnapOffset: {
|
|
571
564
|
x: number;
|
|
@@ -576,16 +569,14 @@ export declare const actionCut: {
|
|
|
576
569
|
followedBy: Set<import("../types").SocketId>;
|
|
577
570
|
isCropping: boolean;
|
|
578
571
|
croppingElementId: string | null;
|
|
579
|
-
searchMatches:
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
}[];
|
|
588
|
-
}[];
|
|
572
|
+
searchMatches: Readonly<{
|
|
573
|
+
focusedId: string | null;
|
|
574
|
+
matches: readonly import("../types").SearchMatch[];
|
|
575
|
+
}> | null;
|
|
576
|
+
activeLockedId: string | null;
|
|
577
|
+
lockedMultiSelections: {
|
|
578
|
+
[groupId: string]: true;
|
|
579
|
+
};
|
|
589
580
|
};
|
|
590
581
|
captureUpdate: "IMMEDIATELY";
|
|
591
582
|
} | {
|
|
@@ -621,6 +612,7 @@ export declare const actionCut: {
|
|
|
621
612
|
hoverPointIndex: number;
|
|
622
613
|
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
623
614
|
elbowed: boolean;
|
|
615
|
+
customLineAngle: number | null;
|
|
624
616
|
};
|
|
625
617
|
contextMenu: {
|
|
626
618
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -648,7 +640,7 @@ export declare const actionCut: {
|
|
|
648
640
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
649
641
|
isBindingEnabled: boolean;
|
|
650
642
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
651
|
-
suggestedBindings: import("@excalidraw/element
|
|
643
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
652
644
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
653
645
|
frameRendering: {
|
|
654
646
|
enabled: boolean;
|
|
@@ -684,7 +676,7 @@ export declare const actionCut: {
|
|
|
684
676
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
685
677
|
currentHoveredFontFamily: number | null;
|
|
686
678
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
687
|
-
currentItemArrowType: "
|
|
679
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
688
680
|
viewBackgroundColor: string;
|
|
689
681
|
scrollX: number;
|
|
690
682
|
scrollY: number;
|
|
@@ -696,7 +688,7 @@ export declare const actionCut: {
|
|
|
696
688
|
zoom: Readonly<{
|
|
697
689
|
value: import("../types").NormalizedZoomValue;
|
|
698
690
|
}>;
|
|
699
|
-
openMenu: "
|
|
691
|
+
openMenu: "canvas" | "shape" | null;
|
|
700
692
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
701
693
|
openSidebar: {
|
|
702
694
|
name: string;
|
|
@@ -778,9 +770,8 @@ export declare const actionCut: {
|
|
|
778
770
|
shown: true;
|
|
779
771
|
data: import("../charts").Spreadsheet;
|
|
780
772
|
};
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
773
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
774
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
784
775
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
785
776
|
originSnapOffset: {
|
|
786
777
|
x: number;
|
|
@@ -791,16 +782,14 @@ export declare const actionCut: {
|
|
|
791
782
|
followedBy: Set<import("../types").SocketId>;
|
|
792
783
|
isCropping: boolean;
|
|
793
784
|
croppingElementId: string | null;
|
|
794
|
-
searchMatches:
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
}[];
|
|
803
|
-
}[];
|
|
785
|
+
searchMatches: Readonly<{
|
|
786
|
+
focusedId: string | null;
|
|
787
|
+
matches: readonly import("../types").SearchMatch[];
|
|
788
|
+
}> | null;
|
|
789
|
+
activeLockedId: string | null;
|
|
790
|
+
lockedMultiSelections: {
|
|
791
|
+
[groupId: string]: true;
|
|
792
|
+
};
|
|
804
793
|
};
|
|
805
794
|
captureUpdate: "IMMEDIATELY";
|
|
806
795
|
} | {
|
|
@@ -814,13 +803,13 @@ export declare const actionCut: {
|
|
|
814
803
|
multiElement: null;
|
|
815
804
|
activeEmbeddable: null;
|
|
816
805
|
selectedLinearElement: null;
|
|
817
|
-
editingGroupId: string | null;
|
|
818
806
|
selectedElementIds: Readonly<{
|
|
819
807
|
[id: string]: true;
|
|
820
808
|
}>;
|
|
821
809
|
selectedGroupIds: {
|
|
822
810
|
[groupId: string]: boolean;
|
|
823
811
|
};
|
|
812
|
+
editingGroupId: string | null;
|
|
824
813
|
contextMenu: {
|
|
825
814
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
826
815
|
top: number;
|
|
@@ -842,7 +831,7 @@ export declare const actionCut: {
|
|
|
842
831
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
843
832
|
isBindingEnabled: boolean;
|
|
844
833
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
845
|
-
suggestedBindings: import("@excalidraw/element
|
|
834
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
846
835
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
847
836
|
frameRendering: {
|
|
848
837
|
enabled: boolean;
|
|
@@ -853,7 +842,7 @@ export declare const actionCut: {
|
|
|
853
842
|
editingFrame: string | null;
|
|
854
843
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
855
844
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
856
|
-
editingLinearElement: import("@excalidraw/element
|
|
845
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
857
846
|
penMode: boolean;
|
|
858
847
|
penDetected: boolean;
|
|
859
848
|
exportBackground: boolean;
|
|
@@ -874,7 +863,7 @@ export declare const actionCut: {
|
|
|
874
863
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
875
864
|
currentHoveredFontFamily: number | null;
|
|
876
865
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
877
|
-
currentItemArrowType: "
|
|
866
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
878
867
|
viewBackgroundColor: string;
|
|
879
868
|
scrollX: number;
|
|
880
869
|
scrollY: number;
|
|
@@ -886,7 +875,7 @@ export declare const actionCut: {
|
|
|
886
875
|
zoom: Readonly<{
|
|
887
876
|
value: import("../types").NormalizedZoomValue;
|
|
888
877
|
}>;
|
|
889
|
-
openMenu: "
|
|
878
|
+
openMenu: "canvas" | "shape" | null;
|
|
890
879
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
891
880
|
openSidebar: {
|
|
892
881
|
name: string;
|
|
@@ -961,8 +950,7 @@ export declare const actionCut: {
|
|
|
961
950
|
shown: true;
|
|
962
951
|
data: import("../charts").Spreadsheet;
|
|
963
952
|
};
|
|
964
|
-
|
|
965
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
953
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
966
954
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
967
955
|
originSnapOffset: {
|
|
968
956
|
x: number;
|
|
@@ -973,22 +961,20 @@ export declare const actionCut: {
|
|
|
973
961
|
followedBy: Set<import("../types").SocketId>;
|
|
974
962
|
isCropping: boolean;
|
|
975
963
|
croppingElementId: string | null;
|
|
976
|
-
searchMatches:
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
}[];
|
|
985
|
-
}[];
|
|
964
|
+
searchMatches: Readonly<{
|
|
965
|
+
focusedId: string | null;
|
|
966
|
+
matches: readonly import("../types").SearchMatch[];
|
|
967
|
+
}> | null;
|
|
968
|
+
activeLockedId: string | null;
|
|
969
|
+
lockedMultiSelections: {
|
|
970
|
+
[groupId: string]: true;
|
|
971
|
+
};
|
|
986
972
|
};
|
|
987
973
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
988
974
|
};
|
|
989
|
-
keyTest: (event:
|
|
975
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
990
976
|
} & {
|
|
991
|
-
keyTest?: ((event:
|
|
977
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
992
978
|
};
|
|
993
979
|
export declare const actionCopyAsSvg: {
|
|
994
980
|
name: "copyAsSvg";
|
|
@@ -1058,7 +1044,7 @@ export declare const actionCopyAsPng: {
|
|
|
1058
1044
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1059
1045
|
isBindingEnabled: boolean;
|
|
1060
1046
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1061
|
-
suggestedBindings: import("@excalidraw/element
|
|
1047
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1062
1048
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1063
1049
|
frameRendering: {
|
|
1064
1050
|
enabled: boolean;
|
|
@@ -1069,7 +1055,7 @@ export declare const actionCopyAsPng: {
|
|
|
1069
1055
|
editingFrame: string | null;
|
|
1070
1056
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1071
1057
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1072
|
-
editingLinearElement: import("@excalidraw/element
|
|
1058
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1073
1059
|
activeTool: {
|
|
1074
1060
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1075
1061
|
locked: boolean;
|
|
@@ -1095,7 +1081,7 @@ export declare const actionCopyAsPng: {
|
|
|
1095
1081
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1096
1082
|
currentHoveredFontFamily: number | null;
|
|
1097
1083
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1098
|
-
currentItemArrowType: "
|
|
1084
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1099
1085
|
viewBackgroundColor: string;
|
|
1100
1086
|
scrollX: number;
|
|
1101
1087
|
scrollY: number;
|
|
@@ -1107,7 +1093,7 @@ export declare const actionCopyAsPng: {
|
|
|
1107
1093
|
zoom: Readonly<{
|
|
1108
1094
|
value: import("../types").NormalizedZoomValue;
|
|
1109
1095
|
}>;
|
|
1110
|
-
openMenu: "
|
|
1096
|
+
openMenu: "canvas" | "shape" | null;
|
|
1111
1097
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1112
1098
|
openSidebar: {
|
|
1113
1099
|
name: string;
|
|
@@ -1189,9 +1175,8 @@ export declare const actionCopyAsPng: {
|
|
|
1189
1175
|
shown: true;
|
|
1190
1176
|
data: import("../charts").Spreadsheet;
|
|
1191
1177
|
};
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1178
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1179
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1195
1180
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1196
1181
|
originSnapOffset: {
|
|
1197
1182
|
x: number;
|
|
@@ -1202,24 +1187,22 @@ export declare const actionCopyAsPng: {
|
|
|
1202
1187
|
followedBy: Set<import("../types").SocketId>;
|
|
1203
1188
|
isCropping: boolean;
|
|
1204
1189
|
croppingElementId: string | null;
|
|
1205
|
-
searchMatches:
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
}[];
|
|
1214
|
-
}[];
|
|
1190
|
+
searchMatches: Readonly<{
|
|
1191
|
+
focusedId: string | null;
|
|
1192
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1193
|
+
}> | null;
|
|
1194
|
+
activeLockedId: string | null;
|
|
1195
|
+
lockedMultiSelections: {
|
|
1196
|
+
[groupId: string]: true;
|
|
1197
|
+
};
|
|
1215
1198
|
};
|
|
1216
1199
|
captureUpdate: "EVENTUALLY";
|
|
1217
1200
|
}>;
|
|
1218
1201
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
|
|
1219
|
-
keyTest: (event:
|
|
1202
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1220
1203
|
keywords: string[];
|
|
1221
1204
|
} & {
|
|
1222
|
-
keyTest?: ((event:
|
|
1205
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1223
1206
|
};
|
|
1224
1207
|
export declare const copyText: {
|
|
1225
1208
|
name: "copyText";
|
|
@@ -38,7 +38,7 @@ export declare const actionToggleCropEditor: {
|
|
|
38
38
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
39
39
|
isBindingEnabled: boolean;
|
|
40
40
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
41
|
-
suggestedBindings: import("@excalidraw/element
|
|
41
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
42
42
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
43
43
|
frameRendering: {
|
|
44
44
|
enabled: boolean;
|
|
@@ -49,7 +49,7 @@ export declare const actionToggleCropEditor: {
|
|
|
49
49
|
editingFrame: string | null;
|
|
50
50
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
51
51
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
52
|
-
editingLinearElement: import("@excalidraw/element
|
|
52
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
53
53
|
activeTool: {
|
|
54
54
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
55
55
|
locked: boolean;
|
|
@@ -75,7 +75,7 @@ export declare const actionToggleCropEditor: {
|
|
|
75
75
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
76
76
|
currentHoveredFontFamily: number | null;
|
|
77
77
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
78
|
-
currentItemArrowType: "
|
|
78
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
79
79
|
viewBackgroundColor: string;
|
|
80
80
|
scrollX: number;
|
|
81
81
|
scrollY: number;
|
|
@@ -87,7 +87,7 @@ export declare const actionToggleCropEditor: {
|
|
|
87
87
|
zoom: Readonly<{
|
|
88
88
|
value: import("../types").NormalizedZoomValue;
|
|
89
89
|
}>;
|
|
90
|
-
openMenu: "
|
|
90
|
+
openMenu: "canvas" | "shape" | null;
|
|
91
91
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
92
92
|
openSidebar: {
|
|
93
93
|
name: string;
|
|
@@ -169,9 +169,8 @@ export declare const actionToggleCropEditor: {
|
|
|
169
169
|
shown: true;
|
|
170
170
|
data: import("../charts").Spreadsheet;
|
|
171
171
|
};
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
172
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
173
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
175
174
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
176
175
|
originSnapOffset: {
|
|
177
176
|
x: number;
|
|
@@ -180,16 +179,14 @@ export declare const actionToggleCropEditor: {
|
|
|
180
179
|
objectsSnapModeEnabled: boolean;
|
|
181
180
|
userToFollow: import("../types").UserToFollow | null;
|
|
182
181
|
followedBy: Set<import("../types").SocketId>;
|
|
183
|
-
searchMatches:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}[];
|
|
192
|
-
}[];
|
|
182
|
+
searchMatches: Readonly<{
|
|
183
|
+
focusedId: string | null;
|
|
184
|
+
matches: readonly import("../types").SearchMatch[];
|
|
185
|
+
}> | null;
|
|
186
|
+
activeLockedId: string | null;
|
|
187
|
+
lockedMultiSelections: {
|
|
188
|
+
[groupId: string]: true;
|
|
189
|
+
};
|
|
193
190
|
};
|
|
194
191
|
captureUpdate: "IMMEDIATELY";
|
|
195
192
|
};
|