@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
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import type { ExcalidrawElement, ExcalidrawTextElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
-
import type { AppClassProperties,
|
|
2
|
+
import type { AppClassProperties, UIAppState } from "../types";
|
|
3
3
|
export declare const actionGroup: {
|
|
4
4
|
name: "group";
|
|
5
5
|
label: string;
|
|
6
|
-
icon: (appState:
|
|
6
|
+
icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
|
-
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
11
|
-
appState: Readonly<AppState>;
|
|
10
|
+
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
11
|
+
appState: Readonly<import("../types").AppState>;
|
|
12
12
|
elements: readonly OrderedExcalidrawElement[];
|
|
13
13
|
captureUpdate: "EVENTUALLY";
|
|
14
14
|
} | {
|
|
15
15
|
appState: {
|
|
16
|
-
editingGroupId: AppState["editingGroupId"];
|
|
17
|
-
selectedElementIds: AppState["selectedElementIds"];
|
|
18
|
-
selectedGroupIds: AppState["selectedGroupIds"];
|
|
16
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
17
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
18
|
+
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
19
19
|
contextMenu: {
|
|
20
20
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
21
21
|
top: number;
|
|
@@ -33,13 +33,17 @@ export declare const actionGroup: {
|
|
|
33
33
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
34
34
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
35
35
|
isBindingEnabled: boolean;
|
|
36
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
36
37
|
bindingPreference: "enabled" | "disabled";
|
|
37
38
|
isMidpointSnappingEnabled: boolean;
|
|
38
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
39
39
|
suggestedBinding: {
|
|
40
40
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
41
41
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
42
42
|
} | null;
|
|
43
|
+
hoveredArrowTextAnchor: {
|
|
44
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
45
|
+
anchor: "start" | "end" | "label";
|
|
46
|
+
} | null;
|
|
43
47
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
44
48
|
frameRendering: {
|
|
45
49
|
enabled: boolean;
|
|
@@ -47,8 +51,8 @@ export declare const actionGroup: {
|
|
|
47
51
|
outline: boolean;
|
|
48
52
|
clip: boolean;
|
|
49
53
|
};
|
|
50
|
-
editingFrame:
|
|
51
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
54
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
55
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
52
56
|
editingTextElement: ExcalidrawTextElement | null;
|
|
53
57
|
activeTool: {
|
|
54
58
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -68,9 +72,10 @@ export declare const actionGroup: {
|
|
|
68
72
|
currentItemStrokeColor: string;
|
|
69
73
|
currentItemBackgroundColor: string;
|
|
70
74
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
71
|
-
|
|
75
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
72
76
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
73
77
|
currentItemRoughness: number;
|
|
78
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
74
79
|
currentItemOpacity: number;
|
|
75
80
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
76
81
|
currentItemFontSize: number;
|
|
@@ -83,6 +88,7 @@ export declare const actionGroup: {
|
|
|
83
88
|
viewBackgroundColor: string;
|
|
84
89
|
scrollX: number;
|
|
85
90
|
scrollY: number;
|
|
91
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
86
92
|
cursorButton: "up" | "down";
|
|
87
93
|
scrolledOutside: boolean;
|
|
88
94
|
name: string | null;
|
|
@@ -168,7 +174,7 @@ export declare const actionGroup: {
|
|
|
168
174
|
elements: OrderedExcalidrawElement[];
|
|
169
175
|
captureUpdate: "IMMEDIATELY";
|
|
170
176
|
};
|
|
171
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
177
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
172
178
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
173
179
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
174
180
|
} & {
|
|
@@ -177,19 +183,19 @@ export declare const actionGroup: {
|
|
|
177
183
|
export declare const actionUngroup: {
|
|
178
184
|
name: "ungroup";
|
|
179
185
|
label: string;
|
|
180
|
-
icon: (appState:
|
|
186
|
+
icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
181
187
|
trackEvent: {
|
|
182
188
|
category: "element";
|
|
183
189
|
};
|
|
184
|
-
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
185
|
-
appState: Readonly<AppState>;
|
|
190
|
+
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
191
|
+
appState: Readonly<import("../types").AppState>;
|
|
186
192
|
elements: readonly OrderedExcalidrawElement[];
|
|
187
193
|
captureUpdate: "EVENTUALLY";
|
|
188
194
|
} | {
|
|
189
195
|
appState: {
|
|
190
|
-
editingGroupId: AppState["editingGroupId"];
|
|
191
|
-
selectedElementIds: AppState["selectedElementIds"];
|
|
192
|
-
selectedGroupIds: AppState["selectedGroupIds"];
|
|
196
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
197
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
198
|
+
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
193
199
|
contextMenu: {
|
|
194
200
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
195
201
|
top: number;
|
|
@@ -207,13 +213,17 @@ export declare const actionUngroup: {
|
|
|
207
213
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
208
214
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
209
215
|
isBindingEnabled: boolean;
|
|
216
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
210
217
|
bindingPreference: "enabled" | "disabled";
|
|
211
218
|
isMidpointSnappingEnabled: boolean;
|
|
212
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
213
219
|
suggestedBinding: {
|
|
214
220
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
215
221
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
216
222
|
} | null;
|
|
223
|
+
hoveredArrowTextAnchor: {
|
|
224
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
225
|
+
anchor: "start" | "end" | "label";
|
|
226
|
+
} | null;
|
|
217
227
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
218
228
|
frameRendering: {
|
|
219
229
|
enabled: boolean;
|
|
@@ -221,8 +231,8 @@ export declare const actionUngroup: {
|
|
|
221
231
|
outline: boolean;
|
|
222
232
|
clip: boolean;
|
|
223
233
|
};
|
|
224
|
-
editingFrame:
|
|
225
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
234
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
235
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
226
236
|
editingTextElement: ExcalidrawTextElement | null;
|
|
227
237
|
activeTool: {
|
|
228
238
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -242,9 +252,10 @@ export declare const actionUngroup: {
|
|
|
242
252
|
currentItemStrokeColor: string;
|
|
243
253
|
currentItemBackgroundColor: string;
|
|
244
254
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
245
|
-
|
|
255
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
246
256
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
247
257
|
currentItemRoughness: number;
|
|
258
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
248
259
|
currentItemOpacity: number;
|
|
249
260
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
250
261
|
currentItemFontSize: number;
|
|
@@ -257,6 +268,7 @@ export declare const actionUngroup: {
|
|
|
257
268
|
viewBackgroundColor: string;
|
|
258
269
|
scrollX: number;
|
|
259
270
|
scrollY: number;
|
|
271
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
260
272
|
cursorButton: "up" | "down";
|
|
261
273
|
scrolledOutside: boolean;
|
|
262
274
|
name: string | null;
|
|
@@ -343,7 +355,7 @@ export declare const actionUngroup: {
|
|
|
343
355
|
captureUpdate: "IMMEDIATELY";
|
|
344
356
|
};
|
|
345
357
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
346
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
358
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
347
359
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
348
360
|
} & {
|
|
349
361
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -2,7 +2,7 @@ import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
|
2
2
|
export declare const actionToggleLinearEditor: {
|
|
3
3
|
name: "toggleLinearEditor";
|
|
4
4
|
category: string;
|
|
5
|
-
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").
|
|
5
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
|
|
6
6
|
keywords: string[];
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
@@ -27,6 +27,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
27
27
|
};
|
|
28
28
|
arrowStartIsInside: boolean;
|
|
29
29
|
altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
|
|
30
|
+
arrowOtherEndpointInitialBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
30
31
|
}>;
|
|
31
32
|
isDragging: boolean;
|
|
32
33
|
lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
@@ -60,13 +61,17 @@ export declare const actionToggleLinearEditor: {
|
|
|
60
61
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
61
62
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
62
63
|
isBindingEnabled: boolean;
|
|
64
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
63
65
|
bindingPreference: "enabled" | "disabled";
|
|
64
66
|
isMidpointSnappingEnabled: boolean;
|
|
65
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
66
67
|
suggestedBinding: {
|
|
67
68
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
68
69
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
69
70
|
} | null;
|
|
71
|
+
hoveredArrowTextAnchor: {
|
|
72
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
73
|
+
anchor: "start" | "end" | "label";
|
|
74
|
+
} | null;
|
|
70
75
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
71
76
|
frameRendering: {
|
|
72
77
|
enabled: boolean;
|
|
@@ -74,8 +79,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
74
79
|
outline: boolean;
|
|
75
80
|
clip: boolean;
|
|
76
81
|
};
|
|
77
|
-
editingFrame:
|
|
78
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
82
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
83
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
79
84
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
80
85
|
activeTool: {
|
|
81
86
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -95,9 +100,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
95
100
|
currentItemStrokeColor: string;
|
|
96
101
|
currentItemBackgroundColor: string;
|
|
97
102
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
98
|
-
|
|
103
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
99
104
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
100
105
|
currentItemRoughness: number;
|
|
106
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
101
107
|
currentItemOpacity: number;
|
|
102
108
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
103
109
|
currentItemFontSize: number;
|
|
@@ -110,6 +116,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
110
116
|
viewBackgroundColor: string;
|
|
111
117
|
scrollX: number;
|
|
112
118
|
scrollY: number;
|
|
119
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
113
120
|
cursorButton: "up" | "down";
|
|
114
121
|
scrolledOutside: boolean;
|
|
115
122
|
name: string | null;
|
|
@@ -209,7 +216,7 @@ export declare const actionTogglePolygon: {
|
|
|
209
216
|
category: string;
|
|
210
217
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
211
218
|
keywords: string[];
|
|
212
|
-
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").
|
|
219
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
|
|
213
220
|
trackEvent: {
|
|
214
221
|
category: "element";
|
|
215
222
|
};
|
|
@@ -649,6 +656,7 @@ export declare const actionTogglePolygon: {
|
|
|
649
656
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
650
657
|
pressures: readonly number[];
|
|
651
658
|
simulatePressure: boolean;
|
|
659
|
+
strokeOptions: import("@excalidraw/element/types").StrokeOptions;
|
|
652
660
|
}> & {
|
|
653
661
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
654
662
|
}))[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const actionLink: {
|
|
2
2
|
name: "hyperlink";
|
|
3
|
-
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").
|
|
3
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
|
|
4
4
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
|
|
6
6
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
@@ -24,13 +24,17 @@ export declare const actionLink: {
|
|
|
24
24
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
25
25
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
26
26
|
isBindingEnabled: boolean;
|
|
27
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
27
28
|
bindingPreference: "enabled" | "disabled";
|
|
28
29
|
isMidpointSnappingEnabled: boolean;
|
|
29
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
30
30
|
suggestedBinding: {
|
|
31
31
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
32
32
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
33
33
|
} | null;
|
|
34
|
+
hoveredArrowTextAnchor: {
|
|
35
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
36
|
+
anchor: "start" | "end" | "label";
|
|
37
|
+
} | null;
|
|
34
38
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
35
39
|
frameRendering: {
|
|
36
40
|
enabled: boolean;
|
|
@@ -38,8 +42,8 @@ export declare const actionLink: {
|
|
|
38
42
|
outline: boolean;
|
|
39
43
|
clip: boolean;
|
|
40
44
|
};
|
|
41
|
-
editingFrame:
|
|
42
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
45
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
46
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
43
47
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
44
48
|
activeTool: {
|
|
45
49
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -59,9 +63,10 @@ export declare const actionLink: {
|
|
|
59
63
|
currentItemStrokeColor: string;
|
|
60
64
|
currentItemBackgroundColor: string;
|
|
61
65
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
62
|
-
|
|
66
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
63
67
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
64
68
|
currentItemRoughness: number;
|
|
69
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
65
70
|
currentItemOpacity: number;
|
|
66
71
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
67
72
|
currentItemFontSize: number;
|
|
@@ -74,6 +79,7 @@ export declare const actionLink: {
|
|
|
74
79
|
viewBackgroundColor: string;
|
|
75
80
|
scrollX: number;
|
|
76
81
|
scrollY: number;
|
|
82
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
77
83
|
cursorButton: "up" | "down";
|
|
78
84
|
scrolledOutside: boolean;
|
|
79
85
|
name: string | null;
|
|
@@ -31,13 +31,17 @@ export declare const actionShortcuts: {
|
|
|
31
31
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
32
32
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
33
33
|
isBindingEnabled: boolean;
|
|
34
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
34
35
|
bindingPreference: "enabled" | "disabled";
|
|
35
36
|
isMidpointSnappingEnabled: boolean;
|
|
36
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
37
37
|
suggestedBinding: {
|
|
38
38
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
39
39
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
40
40
|
} | null;
|
|
41
|
+
hoveredArrowTextAnchor: {
|
|
42
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
43
|
+
anchor: "start" | "end" | "label";
|
|
44
|
+
} | null;
|
|
41
45
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
42
46
|
frameRendering: {
|
|
43
47
|
enabled: boolean;
|
|
@@ -45,8 +49,8 @@ export declare const actionShortcuts: {
|
|
|
45
49
|
outline: boolean;
|
|
46
50
|
clip: boolean;
|
|
47
51
|
};
|
|
48
|
-
editingFrame:
|
|
49
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
52
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
53
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
50
54
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
51
55
|
activeTool: {
|
|
52
56
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -66,9 +70,10 @@ export declare const actionShortcuts: {
|
|
|
66
70
|
currentItemStrokeColor: string;
|
|
67
71
|
currentItemBackgroundColor: string;
|
|
68
72
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
69
|
-
|
|
73
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
70
74
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
71
75
|
currentItemRoughness: number;
|
|
76
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
72
77
|
currentItemOpacity: number;
|
|
73
78
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
74
79
|
currentItemFontSize: number;
|
|
@@ -81,6 +86,7 @@ export declare const actionShortcuts: {
|
|
|
81
86
|
viewBackgroundColor: string;
|
|
82
87
|
scrollX: number;
|
|
83
88
|
scrollY: number;
|
|
89
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
84
90
|
cursorButton: "up" | "down";
|
|
85
91
|
scrolledOutside: boolean;
|
|
86
92
|
name: string | null;
|
|
@@ -1,23 +1,35 @@
|
|
|
1
|
+
import { type StrokeWidthKey } from "@excalidraw/common";
|
|
1
2
|
import { LinearElementEditor } from "@excalidraw/element";
|
|
2
|
-
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, TextAlign } from "@excalidraw/element/types";
|
|
3
|
+
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, StrokeVariability, NonDeleted, NonDeletedExcalidrawElement, TextAlign } from "@excalidraw/element/types";
|
|
3
4
|
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
4
|
-
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element:
|
|
5
|
-
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties,
|
|
5
|
+
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: NonDeletedExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
6
|
+
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties,
|
|
7
|
+
/**
|
|
8
|
+
* input value (usually the element attribute value,
|
|
9
|
+
* but depends on what the action's PanelComponent input expects)
|
|
10
|
+
*/
|
|
11
|
+
getValue: (element: ExcalidrawElement) => T, elementPredicate: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
|
|
6
12
|
export declare const actionChangeStrokeColor: import("./types").Action<Pick<AppState, "currentItemStrokeColor">> & {
|
|
7
13
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
8
14
|
};
|
|
9
15
|
export declare const actionChangeBackgroundColor: import("./types").Action<Pick<AppState, "viewBackgroundColor" | "currentItemBackgroundColor">> & {
|
|
10
16
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
11
17
|
};
|
|
18
|
+
export declare const actionChangeBucketFillBackgroundColor: import("./types").Action<Pick<AppState, "currentItemBackgroundColor">> & {
|
|
19
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
20
|
+
};
|
|
12
21
|
export declare const actionChangeFillStyle: import("./types").Action<import("@excalidraw/element/types").FillStyle> & {
|
|
13
22
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
14
23
|
};
|
|
15
|
-
export declare const actionChangeStrokeWidth: import("./types").Action<
|
|
24
|
+
export declare const actionChangeStrokeWidth: import("./types").Action<StrokeWidthKey> & {
|
|
16
25
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
17
26
|
};
|
|
18
27
|
export declare const actionChangeSloppiness: import("./types").Action<number> & {
|
|
19
28
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
20
29
|
};
|
|
30
|
+
export declare const actionChangeFreedrawMode: import("./types").Action<StrokeVariability> & {
|
|
31
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
32
|
+
};
|
|
21
33
|
export declare const actionChangeStrokeStyle: import("./types").Action<import("@excalidraw/element/types").StrokeStyle> & {
|
|
22
34
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
23
35
|
};
|
|
@@ -45,30 +57,34 @@ export declare const actionDecreaseFontSize: {
|
|
|
45
57
|
isLoading: boolean;
|
|
46
58
|
errorMessage: React.ReactNode;
|
|
47
59
|
activeEmbeddable: {
|
|
48
|
-
element:
|
|
60
|
+
element: NonDeletedExcalidrawElement;
|
|
49
61
|
state: "hover" | "active";
|
|
50
62
|
} | null;
|
|
51
|
-
newElement:
|
|
52
|
-
resizingElement:
|
|
53
|
-
multiElement:
|
|
54
|
-
selectionElement:
|
|
63
|
+
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
64
|
+
resizingElement: NonDeletedExcalidrawElement | null;
|
|
65
|
+
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
66
|
+
selectionElement: NonDeletedExcalidrawElement | null;
|
|
55
67
|
isBindingEnabled: boolean;
|
|
68
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
56
69
|
bindingPreference: "enabled" | "disabled";
|
|
57
70
|
isMidpointSnappingEnabled: boolean;
|
|
58
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
59
71
|
suggestedBinding: {
|
|
60
|
-
element:
|
|
72
|
+
element: NonDeleted<ExcalidrawBindableElement>;
|
|
61
73
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
62
74
|
} | null;
|
|
63
|
-
|
|
75
|
+
hoveredArrowTextAnchor: {
|
|
76
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
77
|
+
anchor: "start" | "end" | "label";
|
|
78
|
+
} | null;
|
|
79
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
64
80
|
frameRendering: {
|
|
65
81
|
enabled: boolean;
|
|
66
82
|
name: boolean;
|
|
67
83
|
outline: boolean;
|
|
68
84
|
clip: boolean;
|
|
69
85
|
};
|
|
70
|
-
editingFrame:
|
|
71
|
-
elementsToHighlight:
|
|
86
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
87
|
+
elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
|
|
72
88
|
editingTextElement: ExcalidrawTextElement | null;
|
|
73
89
|
activeTool: {
|
|
74
90
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -88,9 +104,10 @@ export declare const actionDecreaseFontSize: {
|
|
|
88
104
|
currentItemStrokeColor: string;
|
|
89
105
|
currentItemBackgroundColor: string;
|
|
90
106
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
91
|
-
|
|
107
|
+
currentItemStrokeWidthKey: StrokeWidthKey;
|
|
92
108
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
93
109
|
currentItemRoughness: number;
|
|
110
|
+
currentItemStrokeVariability: StrokeVariability;
|
|
94
111
|
currentItemOpacity: number;
|
|
95
112
|
currentItemFontFamily: FontFamilyValues;
|
|
96
113
|
currentItemTextAlign: TextAlign;
|
|
@@ -102,6 +119,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
102
119
|
viewBackgroundColor: string;
|
|
103
120
|
scrollX: number;
|
|
104
121
|
scrollY: number;
|
|
122
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
105
123
|
cursorButton: "up" | "down";
|
|
106
124
|
scrolledOutside: boolean;
|
|
107
125
|
name: string | null;
|
|
@@ -215,30 +233,34 @@ export declare const actionIncreaseFontSize: {
|
|
|
215
233
|
isLoading: boolean;
|
|
216
234
|
errorMessage: React.ReactNode;
|
|
217
235
|
activeEmbeddable: {
|
|
218
|
-
element:
|
|
236
|
+
element: NonDeletedExcalidrawElement;
|
|
219
237
|
state: "hover" | "active";
|
|
220
238
|
} | null;
|
|
221
|
-
newElement:
|
|
222
|
-
resizingElement:
|
|
223
|
-
multiElement:
|
|
224
|
-
selectionElement:
|
|
239
|
+
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
240
|
+
resizingElement: NonDeletedExcalidrawElement | null;
|
|
241
|
+
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
242
|
+
selectionElement: NonDeletedExcalidrawElement | null;
|
|
225
243
|
isBindingEnabled: boolean;
|
|
244
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
226
245
|
bindingPreference: "enabled" | "disabled";
|
|
227
246
|
isMidpointSnappingEnabled: boolean;
|
|
228
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
229
247
|
suggestedBinding: {
|
|
230
|
-
element:
|
|
248
|
+
element: NonDeleted<ExcalidrawBindableElement>;
|
|
231
249
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
232
250
|
} | null;
|
|
233
|
-
|
|
251
|
+
hoveredArrowTextAnchor: {
|
|
252
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
253
|
+
anchor: "start" | "end" | "label";
|
|
254
|
+
} | null;
|
|
255
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
234
256
|
frameRendering: {
|
|
235
257
|
enabled: boolean;
|
|
236
258
|
name: boolean;
|
|
237
259
|
outline: boolean;
|
|
238
260
|
clip: boolean;
|
|
239
261
|
};
|
|
240
|
-
editingFrame:
|
|
241
|
-
elementsToHighlight:
|
|
262
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
263
|
+
elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
|
|
242
264
|
editingTextElement: ExcalidrawTextElement | null;
|
|
243
265
|
activeTool: {
|
|
244
266
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -258,9 +280,10 @@ export declare const actionIncreaseFontSize: {
|
|
|
258
280
|
currentItemStrokeColor: string;
|
|
259
281
|
currentItemBackgroundColor: string;
|
|
260
282
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
261
|
-
|
|
283
|
+
currentItemStrokeWidthKey: StrokeWidthKey;
|
|
262
284
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
263
285
|
currentItemRoughness: number;
|
|
286
|
+
currentItemStrokeVariability: StrokeVariability;
|
|
264
287
|
currentItemOpacity: number;
|
|
265
288
|
currentItemFontFamily: FontFamilyValues;
|
|
266
289
|
currentItemTextAlign: TextAlign;
|
|
@@ -272,6 +295,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
272
295
|
viewBackgroundColor: string;
|
|
273
296
|
scrollX: number;
|
|
274
297
|
scrollY: number;
|
|
298
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
275
299
|
cursorButton: "up" | "down";
|
|
276
300
|
scrolledOutside: boolean;
|
|
277
301
|
name: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LinearElementEditor } from "@excalidraw/element";
|
|
2
|
-
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
+
import type { ExcalidrawElement, ExcalidrawLinearElement, NonDeleted } from "@excalidraw/element/types";
|
|
3
3
|
export declare const actionSelectAll: {
|
|
4
4
|
name: "selectAll";
|
|
5
5
|
label: string;
|
|
@@ -26,27 +26,31 @@ export declare const actionSelectAll: {
|
|
|
26
26
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
27
27
|
state: "hover" | "active";
|
|
28
28
|
} | null;
|
|
29
|
-
newElement:
|
|
29
|
+
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
30
30
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
|
-
multiElement:
|
|
31
|
+
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
32
32
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
33
33
|
isBindingEnabled: boolean;
|
|
34
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
34
35
|
bindingPreference: "enabled" | "disabled";
|
|
35
36
|
isMidpointSnappingEnabled: boolean;
|
|
36
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
37
37
|
suggestedBinding: {
|
|
38
|
-
element:
|
|
38
|
+
element: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
39
39
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
40
40
|
} | null;
|
|
41
|
-
|
|
41
|
+
hoveredArrowTextAnchor: {
|
|
42
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
43
|
+
anchor: "start" | "end" | "label";
|
|
44
|
+
} | null;
|
|
45
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
42
46
|
frameRendering: {
|
|
43
47
|
enabled: boolean;
|
|
44
48
|
name: boolean;
|
|
45
49
|
outline: boolean;
|
|
46
50
|
clip: boolean;
|
|
47
51
|
};
|
|
48
|
-
editingFrame:
|
|
49
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
52
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
53
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
50
54
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
51
55
|
activeTool: {
|
|
52
56
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -66,9 +70,10 @@ export declare const actionSelectAll: {
|
|
|
66
70
|
currentItemStrokeColor: string;
|
|
67
71
|
currentItemBackgroundColor: string;
|
|
68
72
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
69
|
-
|
|
73
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
70
74
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
71
75
|
currentItemRoughness: number;
|
|
76
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
72
77
|
currentItemOpacity: number;
|
|
73
78
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
74
79
|
currentItemFontSize: number;
|
|
@@ -81,6 +86,7 @@ export declare const actionSelectAll: {
|
|
|
81
86
|
viewBackgroundColor: string;
|
|
82
87
|
scrollX: number;
|
|
83
88
|
scrollY: number;
|
|
89
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
84
90
|
cursorButton: "up" | "down";
|
|
85
91
|
scrolledOutside: boolean;
|
|
86
92
|
name: string | null;
|