@excalidraw/math 0.18.0-a9ca16e → 0.18.0-ab0255f
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/index.js +297 -99
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +1 -1
- package/dist/types/common/src/colors.d.ts +17 -1
- package/dist/types/common/src/constants.d.ts +12 -7
- package/dist/types/common/src/keys.d.ts +2 -0
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/utils.d.ts +1 -43
- package/dist/types/element/src/Scene.d.ts +6 -4
- package/dist/types/element/src/align.d.ts +2 -2
- package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
- package/dist/types/element/src/arrows/focus.d.ts +5 -2
- package/dist/types/element/src/binding.d.ts +17 -8
- package/dist/types/element/src/bounds.d.ts +22 -7
- package/dist/types/element/src/bucketFill.d.ts +110 -0
- package/dist/types/element/src/collision.d.ts +1 -1
- package/dist/types/element/src/comparisons.d.ts +5 -4
- package/dist/types/element/src/convertToShape.d.ts +23 -0
- package/dist/types/element/src/distribute.d.ts +2 -2
- package/dist/types/element/src/dragElements.d.ts +27 -0
- package/dist/types/element/src/duplicate.d.ts +4 -3
- package/dist/types/element/src/embeddable.d.ts +2 -2
- package/dist/types/element/src/flowchart.d.ts +7 -7
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +9 -8
- package/dist/types/element/src/groups.d.ts +9 -9
- package/dist/types/element/src/index.d.ts +4 -1
- package/dist/types/element/src/linearElementEditor.d.ts +17 -10
- package/dist/types/element/src/newElement.d.ts +14 -0
- package/dist/types/element/src/renderElement.d.ts +0 -3
- package/dist/types/element/src/resizeElements.d.ts +2 -2
- package/dist/types/element/src/selection.d.ts +6 -6
- package/dist/types/element/src/shape.d.ts +13 -1
- package/dist/types/element/src/textElement.d.ts +12 -9
- package/dist/types/element/src/transform.d.ts +2 -2
- package/dist/types/element/src/typeChecks.d.ts +26 -25
- package/dist/types/element/src/types.d.ts +8 -1
- package/dist/types/element/src/utils.d.ts +1 -1
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +30 -12
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +20 -8
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +132 -926
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +20 -8
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +10 -4
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +32 -13
- package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionDeselect.d.ts} +24 -33
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +10 -4
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +21 -9
- package/dist/types/excalidraw/actions/actionExport.d.ts +22 -10
- package/dist/types/excalidraw/actions/actionFrame.d.ts +42 -196
- package/dist/types/excalidraw/actions/actionGroup.d.ts +35 -23
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +14 -6
- package/dist/types/excalidraw/actions/actionLink.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -4
- package/dist/types/excalidraw/actions/actionProperties.d.ts +50 -26
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +15 -9
- package/dist/types/excalidraw/actions/actionStyles.d.ts +10 -4
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +14 -9
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +14 -9
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +11 -5
- package/dist/types/excalidraw/actions/index.d.ts +2 -2
- package/dist/types/excalidraw/actions/manager.d.ts +1 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +8 -4
- package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
- package/dist/types/excalidraw/appState.d.ts +7 -5
- package/dist/types/excalidraw/components/Actions.d.ts +17 -12
- package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/App.arrowText.d.ts +72 -0
- package/dist/types/excalidraw/components/App.bucketFill.d.ts +34 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +31 -0
- package/dist/types/excalidraw/components/App.d.ts +355 -65
- package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
- package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +73 -0
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -3
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +1 -0
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +6 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
- package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/{ToolButton.d.ts → IconButton.d.ts} +16 -19
- package/dist/types/excalidraw/components/Island.d.ts +7 -0
- package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
- package/dist/types/excalidraw/components/LayerUI.d.ts +4 -2
- package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
- package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
- package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
- package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
- package/dist/types/excalidraw/components/Popover.d.ts +1 -3
- package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
- package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
- package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
- package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
- package/dist/types/excalidraw/components/Tools.d.ts +146 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -1
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -0
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
- package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
- package/dist/types/excalidraw/components/icons.d.ts +3 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +8 -4
- package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
- package/dist/types/excalidraw/data/blob.d.ts +24 -12
- package/dist/types/excalidraw/data/index.d.ts +4 -4
- package/dist/types/excalidraw/data/json.d.ts +18 -12
- package/dist/types/excalidraw/data/library.d.ts +1 -1
- package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
- package/dist/types/excalidraw/eraser/index.d.ts +2 -3
- package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
- package/dist/types/excalidraw/lasso/index.d.ts +2 -3
- package/dist/types/excalidraw/renderer/animation.d.ts +5 -1
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -3
- package/dist/types/excalidraw/scene/Renderer.d.ts +426 -19
- package/dist/types/excalidraw/scene/export.d.ts +3 -3
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/types.d.ts +4 -3
- package/dist/types/excalidraw/snapping.d.ts +7 -7
- package/dist/types/excalidraw/types.d.ts +368 -19
- package/dist/types/excalidraw/viewport.d.ts +272 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -3
- package/dist/types/fractional-indexing/src/index.d.ts +29 -0
- package/dist/types/laser-pointer/src/index.d.ts +2 -0
- package/dist/types/laser-pointer/src/math.d.ts +16 -0
- package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
- package/dist/types/laser-pointer/src/state.d.ts +36 -0
- package/dist/types/math/src/constants.d.ts +0 -1
- package/dist/types/math/src/curve.d.ts +4 -1
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/pca.d.ts +79 -0
- package/dist/types/math/src/point.d.ts +1 -0
- package/dist/types/math/src/polygon.d.ts +25 -1
- package/dist/types/utils/src/export.d.ts +3 -3
- package/dist/types/utils/src/index.d.ts +1 -2
- package/package.json +2 -2
- package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
- package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
- package/dist/types/excalidraw/components/shapes.d.ts +0 -263
- package/dist/types/excalidraw/cursor.d.ts +0 -5
- package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
- package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
- package/dist/types/utils/src/bbox.d.ts +0 -9
- package/dist/types/utils/src/withinBounds.d.ts +0 -19
|
@@ -27,13 +27,17 @@ export declare const actionPaste: {
|
|
|
27
27
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
28
28
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
29
|
isBindingEnabled: boolean;
|
|
30
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
30
31
|
bindingPreference: "enabled" | "disabled";
|
|
31
32
|
isMidpointSnappingEnabled: boolean;
|
|
32
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
33
33
|
suggestedBinding: {
|
|
34
34
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
35
35
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
36
36
|
} | null;
|
|
37
|
+
hoveredArrowTextAnchor: {
|
|
38
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
39
|
+
anchor: "start" | "end" | "label";
|
|
40
|
+
} | null;
|
|
37
41
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
38
42
|
frameRendering: {
|
|
39
43
|
enabled: boolean;
|
|
@@ -41,8 +45,8 @@ export declare const actionPaste: {
|
|
|
41
45
|
outline: boolean;
|
|
42
46
|
clip: boolean;
|
|
43
47
|
};
|
|
44
|
-
editingFrame:
|
|
45
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
48
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
49
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
46
50
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
47
51
|
activeTool: {
|
|
48
52
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -62,9 +66,10 @@ export declare const actionPaste: {
|
|
|
62
66
|
currentItemStrokeColor: string;
|
|
63
67
|
currentItemBackgroundColor: string;
|
|
64
68
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
65
|
-
|
|
69
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
66
70
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
67
71
|
currentItemRoughness: number;
|
|
72
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
68
73
|
currentItemOpacity: number;
|
|
69
74
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
70
75
|
currentItemFontSize: number;
|
|
@@ -77,6 +82,7 @@ export declare const actionPaste: {
|
|
|
77
82
|
viewBackgroundColor: string;
|
|
78
83
|
scrollX: number;
|
|
79
84
|
scrollY: number;
|
|
85
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
80
86
|
cursorButton: "up" | "down";
|
|
81
87
|
scrolledOutside: boolean;
|
|
82
88
|
name: string | null;
|
|
@@ -236,13 +242,17 @@ export declare const actionCopyAsPng: {
|
|
|
236
242
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
237
243
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
238
244
|
isBindingEnabled: boolean;
|
|
245
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
239
246
|
bindingPreference: "enabled" | "disabled";
|
|
240
247
|
isMidpointSnappingEnabled: boolean;
|
|
241
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
242
248
|
suggestedBinding: {
|
|
243
249
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
244
250
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
245
251
|
} | null;
|
|
252
|
+
hoveredArrowTextAnchor: {
|
|
253
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
254
|
+
anchor: "start" | "end" | "label";
|
|
255
|
+
} | null;
|
|
246
256
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
247
257
|
frameRendering: {
|
|
248
258
|
enabled: boolean;
|
|
@@ -250,8 +260,8 @@ export declare const actionCopyAsPng: {
|
|
|
250
260
|
outline: boolean;
|
|
251
261
|
clip: boolean;
|
|
252
262
|
};
|
|
253
|
-
editingFrame:
|
|
254
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
263
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
264
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
255
265
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
256
266
|
activeTool: {
|
|
257
267
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -271,9 +281,10 @@ export declare const actionCopyAsPng: {
|
|
|
271
281
|
currentItemStrokeColor: string;
|
|
272
282
|
currentItemBackgroundColor: string;
|
|
273
283
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
274
|
-
|
|
284
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
275
285
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
276
286
|
currentItemRoughness: number;
|
|
287
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
277
288
|
currentItemOpacity: number;
|
|
278
289
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
279
290
|
currentItemFontSize: number;
|
|
@@ -286,6 +297,7 @@ export declare const actionCopyAsPng: {
|
|
|
286
297
|
viewBackgroundColor: string;
|
|
287
298
|
scrollX: number;
|
|
288
299
|
scrollY: number;
|
|
300
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
289
301
|
cursorButton: "up" | "down";
|
|
290
302
|
scrolledOutside: boolean;
|
|
291
303
|
name: string | null;
|
|
@@ -28,13 +28,17 @@ export declare const actionToggleCropEditor: {
|
|
|
28
28
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
29
29
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
30
|
isBindingEnabled: boolean;
|
|
31
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
31
32
|
bindingPreference: "enabled" | "disabled";
|
|
32
33
|
isMidpointSnappingEnabled: boolean;
|
|
33
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
34
|
suggestedBinding: {
|
|
35
35
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
36
36
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
37
37
|
} | null;
|
|
38
|
+
hoveredArrowTextAnchor: {
|
|
39
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
40
|
+
anchor: "start" | "end" | "label";
|
|
41
|
+
} | null;
|
|
38
42
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
39
43
|
frameRendering: {
|
|
40
44
|
enabled: boolean;
|
|
@@ -42,8 +46,8 @@ export declare const actionToggleCropEditor: {
|
|
|
42
46
|
outline: boolean;
|
|
43
47
|
clip: boolean;
|
|
44
48
|
};
|
|
45
|
-
editingFrame:
|
|
46
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
49
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
50
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
47
51
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
48
52
|
activeTool: {
|
|
49
53
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -63,9 +67,10 @@ export declare const actionToggleCropEditor: {
|
|
|
63
67
|
currentItemStrokeColor: string;
|
|
64
68
|
currentItemBackgroundColor: string;
|
|
65
69
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
66
|
-
|
|
70
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
67
71
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
68
72
|
currentItemRoughness: number;
|
|
73
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
69
74
|
currentItemOpacity: number;
|
|
70
75
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
71
76
|
currentItemFontSize: number;
|
|
@@ -78,6 +83,7 @@ export declare const actionToggleCropEditor: {
|
|
|
78
83
|
viewBackgroundColor: string;
|
|
79
84
|
scrollX: number;
|
|
80
85
|
scrollY: number;
|
|
86
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
81
87
|
cursorButton: "up" | "down";
|
|
82
88
|
scrolledOutside: boolean;
|
|
83
89
|
name: string | null;
|
|
@@ -29,13 +29,17 @@ export declare const actionDeleteSelected: {
|
|
|
29
29
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
30
30
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
31
|
isBindingEnabled: boolean;
|
|
32
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
32
33
|
bindingPreference: "enabled" | "disabled";
|
|
33
34
|
isMidpointSnappingEnabled: boolean;
|
|
34
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
35
35
|
suggestedBinding: {
|
|
36
36
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
37
37
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
38
38
|
} | null;
|
|
39
|
+
hoveredArrowTextAnchor: {
|
|
40
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
41
|
+
anchor: "start" | "end" | "label";
|
|
42
|
+
} | null;
|
|
39
43
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
40
44
|
frameRendering: {
|
|
41
45
|
enabled: boolean;
|
|
@@ -43,8 +47,8 @@ export declare const actionDeleteSelected: {
|
|
|
43
47
|
outline: boolean;
|
|
44
48
|
clip: boolean;
|
|
45
49
|
};
|
|
46
|
-
editingFrame:
|
|
47
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
50
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
51
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
48
52
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
49
53
|
activeTool: {
|
|
50
54
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -64,9 +68,10 @@ export declare const actionDeleteSelected: {
|
|
|
64
68
|
currentItemStrokeColor: string;
|
|
65
69
|
currentItemBackgroundColor: string;
|
|
66
70
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
67
|
-
|
|
71
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
68
72
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
69
73
|
currentItemRoughness: number;
|
|
74
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
70
75
|
currentItemOpacity: number;
|
|
71
76
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
72
77
|
currentItemFontSize: number;
|
|
@@ -79,6 +84,7 @@ export declare const actionDeleteSelected: {
|
|
|
79
84
|
viewBackgroundColor: string;
|
|
80
85
|
scrollX: number;
|
|
81
86
|
scrollY: number;
|
|
87
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
82
88
|
cursorButton: "up" | "down";
|
|
83
89
|
scrolledOutside: boolean;
|
|
84
90
|
name: string | null;
|
|
@@ -187,6 +193,7 @@ export declare const actionDeleteSelected: {
|
|
|
187
193
|
};
|
|
188
194
|
arrowStartIsInside: boolean;
|
|
189
195
|
altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
|
|
196
|
+
arrowOtherEndpointInitialBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
190
197
|
}>;
|
|
191
198
|
isDragging: boolean;
|
|
192
199
|
lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
@@ -221,13 +228,17 @@ export declare const actionDeleteSelected: {
|
|
|
221
228
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
222
229
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
223
230
|
isBindingEnabled: boolean;
|
|
231
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
224
232
|
bindingPreference: "enabled" | "disabled";
|
|
225
233
|
isMidpointSnappingEnabled: boolean;
|
|
226
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
227
234
|
suggestedBinding: {
|
|
228
235
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
229
236
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
230
237
|
} | null;
|
|
238
|
+
hoveredArrowTextAnchor: {
|
|
239
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
240
|
+
anchor: "start" | "end" | "label";
|
|
241
|
+
} | null;
|
|
231
242
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
232
243
|
frameRendering: {
|
|
233
244
|
enabled: boolean;
|
|
@@ -235,8 +246,8 @@ export declare const actionDeleteSelected: {
|
|
|
235
246
|
outline: boolean;
|
|
236
247
|
clip: boolean;
|
|
237
248
|
};
|
|
238
|
-
editingFrame:
|
|
239
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
249
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
250
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
240
251
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
241
252
|
activeTool: {
|
|
242
253
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -256,9 +267,10 @@ export declare const actionDeleteSelected: {
|
|
|
256
267
|
currentItemStrokeColor: string;
|
|
257
268
|
currentItemBackgroundColor: string;
|
|
258
269
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
259
|
-
|
|
270
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
260
271
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
261
272
|
currentItemRoughness: number;
|
|
273
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
262
274
|
currentItemOpacity: number;
|
|
263
275
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
264
276
|
currentItemFontSize: number;
|
|
@@ -271,6 +283,7 @@ export declare const actionDeleteSelected: {
|
|
|
271
283
|
viewBackgroundColor: string;
|
|
272
284
|
scrollX: number;
|
|
273
285
|
scrollY: number;
|
|
286
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
274
287
|
cursorButton: "up" | "down";
|
|
275
288
|
scrolledOutside: boolean;
|
|
276
289
|
name: string | null;
|
|
@@ -361,7 +374,7 @@ export declare const actionDeleteSelected: {
|
|
|
361
374
|
};
|
|
362
375
|
captureUpdate: "IMMEDIATELY";
|
|
363
376
|
} | {
|
|
364
|
-
elements:
|
|
377
|
+
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
365
378
|
appState: {
|
|
366
379
|
activeTool: {
|
|
367
380
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -386,13 +399,17 @@ export declare const actionDeleteSelected: {
|
|
|
386
399
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
387
400
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
388
401
|
isBindingEnabled: boolean;
|
|
402
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
389
403
|
bindingPreference: "enabled" | "disabled";
|
|
390
404
|
isMidpointSnappingEnabled: boolean;
|
|
391
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
392
405
|
suggestedBinding: {
|
|
393
406
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
394
407
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
395
408
|
} | null;
|
|
409
|
+
hoveredArrowTextAnchor: {
|
|
410
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
411
|
+
anchor: "start" | "end" | "label";
|
|
412
|
+
} | null;
|
|
396
413
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
397
414
|
frameRendering: {
|
|
398
415
|
enabled: boolean;
|
|
@@ -400,8 +417,8 @@ export declare const actionDeleteSelected: {
|
|
|
400
417
|
outline: boolean;
|
|
401
418
|
clip: boolean;
|
|
402
419
|
};
|
|
403
|
-
editingFrame:
|
|
404
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
420
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
421
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
405
422
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
406
423
|
preferredSelectionTool: {
|
|
407
424
|
type: "selection" | "lasso";
|
|
@@ -416,9 +433,10 @@ export declare const actionDeleteSelected: {
|
|
|
416
433
|
currentItemStrokeColor: string;
|
|
417
434
|
currentItemBackgroundColor: string;
|
|
418
435
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
419
|
-
|
|
436
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
420
437
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
421
438
|
currentItemRoughness: number;
|
|
439
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
422
440
|
currentItemOpacity: number;
|
|
423
441
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
424
442
|
currentItemFontSize: number;
|
|
@@ -431,6 +449,7 @@ export declare const actionDeleteSelected: {
|
|
|
431
449
|
viewBackgroundColor: string;
|
|
432
450
|
scrollX: number;
|
|
433
451
|
scrollY: number;
|
|
452
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
434
453
|
cursorButton: "up" | "down";
|
|
435
454
|
scrolledOutside: boolean;
|
|
436
455
|
name: string | null;
|
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
category: "toolbar";
|
|
5
|
-
};
|
|
6
|
-
target: string;
|
|
1
|
+
import type { AppClassProperties, AppState } from "../types";
|
|
2
|
+
export declare const actionDeselect: {
|
|
3
|
+
name: "deselect";
|
|
7
4
|
label: string;
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
trackEvent: false;
|
|
6
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
10
7
|
appState: {
|
|
8
|
+
activeEmbeddable: null;
|
|
11
9
|
activeTool: {
|
|
12
10
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
13
11
|
locked: boolean;
|
|
14
12
|
fromSelection: boolean;
|
|
15
13
|
} & import("../types").ActiveTool;
|
|
14
|
+
selectedLinearElement: null;
|
|
15
|
+
selectionElement: null;
|
|
16
|
+
showHyperlinkPopup: false;
|
|
17
|
+
suggestedBinding: null;
|
|
18
|
+
hoveredArrowTextAnchor: null;
|
|
19
|
+
frameToHighlight: null;
|
|
20
|
+
editingGroupId: AppState["editingGroupId"];
|
|
21
|
+
selectedElementIds: AppState["selectedElementIds"];
|
|
22
|
+
selectedGroupIds: AppState["selectedGroupIds"];
|
|
16
23
|
contextMenu: {
|
|
17
24
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
18
25
|
top: number;
|
|
@@ -21,31 +28,21 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
21
28
|
showWelcomeScreen: boolean;
|
|
22
29
|
isLoading: boolean;
|
|
23
30
|
errorMessage: React.ReactNode;
|
|
24
|
-
activeEmbeddable: {
|
|
25
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
26
|
-
state: "hover" | "active";
|
|
27
|
-
} | null;
|
|
28
31
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
29
32
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
33
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
31
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
32
34
|
isBindingEnabled: boolean;
|
|
35
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
33
36
|
bindingPreference: "enabled" | "disabled";
|
|
34
37
|
isMidpointSnappingEnabled: boolean;
|
|
35
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
36
|
-
suggestedBinding: {
|
|
37
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
38
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
39
|
-
} | null;
|
|
40
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
41
38
|
frameRendering: {
|
|
42
39
|
enabled: boolean;
|
|
43
40
|
name: boolean;
|
|
44
41
|
outline: boolean;
|
|
45
42
|
clip: boolean;
|
|
46
43
|
};
|
|
47
|
-
editingFrame:
|
|
48
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
44
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
45
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
49
46
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
50
47
|
preferredSelectionTool: {
|
|
51
48
|
type: "selection" | "lasso";
|
|
@@ -60,9 +57,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
60
57
|
currentItemStrokeColor: string;
|
|
61
58
|
currentItemBackgroundColor: string;
|
|
62
59
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
63
|
-
|
|
60
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
64
61
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
65
62
|
currentItemRoughness: number;
|
|
63
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
66
64
|
currentItemOpacity: number;
|
|
67
65
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
68
66
|
currentItemFontSize: number;
|
|
@@ -75,6 +73,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
75
73
|
viewBackgroundColor: string;
|
|
76
74
|
scrollX: number;
|
|
77
75
|
scrollY: number;
|
|
76
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
78
77
|
cursorButton: "up" | "down";
|
|
79
78
|
scrolledOutside: boolean;
|
|
80
79
|
name: string | null;
|
|
@@ -106,9 +105,6 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
106
105
|
};
|
|
107
106
|
defaultSidebarDockedPreference: boolean;
|
|
108
107
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
109
|
-
selectedElementIds: Readonly<{
|
|
110
|
-
[id: string]: true;
|
|
111
|
-
}>;
|
|
112
108
|
hoveredElementIds: Readonly<{
|
|
113
109
|
[id: string]: true;
|
|
114
110
|
}>;
|
|
@@ -128,10 +124,6 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
128
124
|
gridStep: number;
|
|
129
125
|
gridModeEnabled: boolean;
|
|
130
126
|
viewModeEnabled: boolean;
|
|
131
|
-
selectedGroupIds: {
|
|
132
|
-
[groupId: string]: boolean;
|
|
133
|
-
};
|
|
134
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
135
127
|
width: number;
|
|
136
128
|
height: number;
|
|
137
129
|
offsetTop: number;
|
|
@@ -142,8 +134,6 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
142
134
|
open: boolean;
|
|
143
135
|
panels: number;
|
|
144
136
|
};
|
|
145
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
146
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
147
137
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
148
138
|
originSnapOffset: {
|
|
149
139
|
x: number;
|
|
@@ -164,8 +154,9 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
164
154
|
};
|
|
165
155
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
166
156
|
};
|
|
167
|
-
captureUpdate: "
|
|
157
|
+
captureUpdate: "IMMEDIATELY";
|
|
168
158
|
};
|
|
159
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, _: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: AppClassProperties) => boolean;
|
|
169
160
|
} & {
|
|
170
|
-
keyTest?: undefined;
|
|
161
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, _: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
171
162
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
2
1
|
import type { AppClassProperties, AppState } from "../types";
|
|
3
2
|
export declare const distributeHorizontally: {
|
|
4
3
|
name: "distributeHorizontally";
|
|
@@ -8,7 +7,7 @@ export declare const distributeHorizontally: {
|
|
|
8
7
|
};
|
|
9
8
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
10
9
|
appState: Readonly<AppState>;
|
|
11
|
-
elements:
|
|
10
|
+
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
12
11
|
captureUpdate: "IMMEDIATELY";
|
|
13
12
|
};
|
|
14
13
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -24,7 +23,7 @@ export declare const distributeVertically: {
|
|
|
24
23
|
};
|
|
25
24
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
26
25
|
appState: Readonly<AppState>;
|
|
27
|
-
elements:
|
|
26
|
+
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
28
27
|
captureUpdate: "IMMEDIATELY";
|
|
29
28
|
};
|
|
30
29
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -57,13 +57,17 @@ export declare const actionLinkToElement: {
|
|
|
57
57
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
58
58
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
59
59
|
isBindingEnabled: boolean;
|
|
60
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
60
61
|
bindingPreference: "enabled" | "disabled";
|
|
61
62
|
isMidpointSnappingEnabled: boolean;
|
|
62
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
63
63
|
suggestedBinding: {
|
|
64
64
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
65
65
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
66
66
|
} | null;
|
|
67
|
+
hoveredArrowTextAnchor: {
|
|
68
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
69
|
+
anchor: "start" | "end" | "label";
|
|
70
|
+
} | null;
|
|
67
71
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
68
72
|
frameRendering: {
|
|
69
73
|
enabled: boolean;
|
|
@@ -71,8 +75,8 @@ export declare const actionLinkToElement: {
|
|
|
71
75
|
outline: boolean;
|
|
72
76
|
clip: boolean;
|
|
73
77
|
};
|
|
74
|
-
editingFrame:
|
|
75
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
78
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
79
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
76
80
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
77
81
|
activeTool: {
|
|
78
82
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -92,9 +96,10 @@ export declare const actionLinkToElement: {
|
|
|
92
96
|
currentItemStrokeColor: string;
|
|
93
97
|
currentItemBackgroundColor: string;
|
|
94
98
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
95
|
-
|
|
99
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
96
100
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
97
101
|
currentItemRoughness: number;
|
|
102
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
98
103
|
currentItemOpacity: number;
|
|
99
104
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
100
105
|
currentItemFontSize: number;
|
|
@@ -107,6 +112,7 @@ export declare const actionLinkToElement: {
|
|
|
107
112
|
viewBackgroundColor: string;
|
|
108
113
|
scrollX: number;
|
|
109
114
|
scrollY: number;
|
|
115
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
110
116
|
cursorButton: "up" | "down";
|
|
111
117
|
scrolledOutside: boolean;
|
|
112
118
|
name: string | null;
|
|
@@ -2,7 +2,7 @@ import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
|
2
2
|
import type { AppState } from "../types";
|
|
3
3
|
export declare const actionToggleElementLock: {
|
|
4
4
|
name: "toggleElementLock";
|
|
5
|
-
label: (elements: readonly ExcalidrawElement[], appState: Readonly<
|
|
5
|
+
label: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.elementLock.lock" | "labels.elementLock.unlock";
|
|
6
6
|
icon: (appState: import("../types").UIAppState, elements: readonly ExcalidrawElement[]) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
@@ -39,13 +39,17 @@ export declare const actionToggleElementLock: {
|
|
|
39
39
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
40
40
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
isBindingEnabled: boolean;
|
|
42
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
42
43
|
bindingPreference: "enabled" | "disabled";
|
|
43
44
|
isMidpointSnappingEnabled: boolean;
|
|
44
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
45
45
|
suggestedBinding: {
|
|
46
46
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
47
47
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
48
48
|
} | null;
|
|
49
|
+
hoveredArrowTextAnchor: {
|
|
50
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
51
|
+
anchor: "start" | "end" | "label";
|
|
52
|
+
} | null;
|
|
49
53
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
50
54
|
frameRendering: {
|
|
51
55
|
enabled: boolean;
|
|
@@ -53,8 +57,8 @@ export declare const actionToggleElementLock: {
|
|
|
53
57
|
outline: boolean;
|
|
54
58
|
clip: boolean;
|
|
55
59
|
};
|
|
56
|
-
editingFrame:
|
|
57
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
60
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
61
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
58
62
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
59
63
|
activeTool: {
|
|
60
64
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -74,9 +78,10 @@ export declare const actionToggleElementLock: {
|
|
|
74
78
|
currentItemStrokeColor: string;
|
|
75
79
|
currentItemBackgroundColor: string;
|
|
76
80
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
77
|
-
|
|
81
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
78
82
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
79
83
|
currentItemRoughness: number;
|
|
84
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
80
85
|
currentItemOpacity: number;
|
|
81
86
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
82
87
|
currentItemFontSize: number;
|
|
@@ -89,6 +94,7 @@ export declare const actionToggleElementLock: {
|
|
|
89
94
|
viewBackgroundColor: string;
|
|
90
95
|
scrollX: number;
|
|
91
96
|
scrollY: number;
|
|
97
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
92
98
|
cursorButton: "up" | "down";
|
|
93
99
|
scrolledOutside: boolean;
|
|
94
100
|
name: string | null;
|
|
@@ -209,13 +215,17 @@ export declare const actionUnlockAllElements: {
|
|
|
209
215
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
210
216
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
211
217
|
isBindingEnabled: boolean;
|
|
218
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
212
219
|
bindingPreference: "enabled" | "disabled";
|
|
213
220
|
isMidpointSnappingEnabled: boolean;
|
|
214
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
215
221
|
suggestedBinding: {
|
|
216
222
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
217
223
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
218
224
|
} | null;
|
|
225
|
+
hoveredArrowTextAnchor: {
|
|
226
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
227
|
+
anchor: "start" | "end" | "label";
|
|
228
|
+
} | null;
|
|
219
229
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
220
230
|
frameRendering: {
|
|
221
231
|
enabled: boolean;
|
|
@@ -223,8 +233,8 @@ export declare const actionUnlockAllElements: {
|
|
|
223
233
|
outline: boolean;
|
|
224
234
|
clip: boolean;
|
|
225
235
|
};
|
|
226
|
-
editingFrame:
|
|
227
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
236
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
237
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
228
238
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
229
239
|
activeTool: {
|
|
230
240
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -244,9 +254,10 @@ export declare const actionUnlockAllElements: {
|
|
|
244
254
|
currentItemStrokeColor: string;
|
|
245
255
|
currentItemBackgroundColor: string;
|
|
246
256
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
247
|
-
|
|
257
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
248
258
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
249
259
|
currentItemRoughness: number;
|
|
260
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
250
261
|
currentItemOpacity: number;
|
|
251
262
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
252
263
|
currentItemFontSize: number;
|
|
@@ -259,6 +270,7 @@ export declare const actionUnlockAllElements: {
|
|
|
259
270
|
viewBackgroundColor: string;
|
|
260
271
|
scrollX: number;
|
|
261
272
|
scrollY: number;
|
|
273
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
262
274
|
cursorButton: "up" | "down";
|
|
263
275
|
scrolledOutside: boolean;
|
|
264
276
|
name: string | null;
|