@excalidraw/element 0.18.0-2a82821 → 0.18.0-2b1c2a9
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 +5570 -3546
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +12 -12
- package/dist/types/common/src/colors.d.ts +19 -0
- package/dist/types/common/src/constants.d.ts +3 -0
- 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 +1 -1
- 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 +5 -9
- 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 +4 -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 +3 -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 +4 -4
- 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 +27 -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 +5 -5
- package/dist/types/element/src/shape.d.ts +12 -0
- package/dist/types/element/src/sortElements.d.ts +10 -0
- package/dist/types/element/src/textElement.d.ts +13 -9
- package/dist/types/element/src/transform.d.ts +2 -2
- package/dist/types/element/src/typeChecks.d.ts +25 -25
- package/dist/types/element/src/types.d.ts +9 -1
- package/dist/types/element/src/utils.d.ts +7 -3
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +36 -12
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +24 -8
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +146 -931
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +24 -8
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +12 -4
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +38 -13
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +9 -4
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +12 -4
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +25 -9
- package/dist/types/excalidraw/actions/actionExport.d.ts +26 -10
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
- package/dist/types/excalidraw/actions/actionFrame.d.ts +48 -197
- package/dist/types/excalidraw/actions/actionGroup.d.ts +39 -23
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +16 -6
- package/dist/types/excalidraw/actions/actionLink.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionMenu.d.ts +12 -4
- package/dist/types/excalidraw/actions/actionProperties.d.ts +43 -24
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +17 -9
- package/dist/types/excalidraw/actions/actionStyles.d.ts +12 -4
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -9
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -9
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +14 -6
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +13 -5
- package/dist/types/excalidraw/actions/index.d.ts +1 -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/appState.d.ts +9 -4
- package/dist/types/excalidraw/components/Actions.d.ts +17 -12
- package/dist/types/excalidraw/components/App.arrowText.d.ts +104 -0
- package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
- package/dist/types/excalidraw/components/App.d.ts +372 -67
- 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 +9 -3
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +31 -0
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +1 -1
- package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
- 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 +5 -2
- 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/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/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/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/UserList.d.ts +3 -2
- package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -0
- 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 +4 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
- 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 +28 -12
- package/dist/types/excalidraw/data/index.d.ts +4 -4
- package/dist/types/excalidraw/data/json.d.ts +20 -12
- package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
- package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -2
- package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
- package/dist/types/excalidraw/renderer/animation.d.ts +1 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +7 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -3
- package/dist/types/excalidraw/scene/Renderer.d.ts +12 -11
- package/dist/types/excalidraw/scene/export.d.ts +3 -3
- package/dist/types/excalidraw/scene/index.d.ts +1 -1
- 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 +410 -20
- package/dist/types/excalidraw/viewport.d.ts +275 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -3
- package/dist/types/laser-pointer/src/state.d.ts +1 -0
- package/dist/types/math/src/curve.d.ts +19 -12
- 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/polygon.d.ts +25 -1
- package/dist/types/math/src/segment.d.ts +6 -0
- package/dist/types/utils/src/export.d.ts +3 -3
- package/package.json +4 -4
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -172
- package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
- 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 -270
- 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
|
@@ -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) => false | {
|
|
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;
|
|
@@ -40,6 +40,10 @@ export declare const actionGroup: {
|
|
|
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;
|
|
@@ -84,6 +88,7 @@ export declare const actionGroup: {
|
|
|
84
88
|
viewBackgroundColor: string;
|
|
85
89
|
scrollX: number;
|
|
86
90
|
scrollY: number;
|
|
91
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
87
92
|
cursorButton: "up" | "down";
|
|
88
93
|
scrolledOutside: boolean;
|
|
89
94
|
name: string | null;
|
|
@@ -152,8 +157,6 @@ export declare const actionGroup: {
|
|
|
152
157
|
y: number;
|
|
153
158
|
} | null;
|
|
154
159
|
objectsSnapModeEnabled: boolean;
|
|
155
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
156
|
-
followedBy: Set<import("../types").SocketId>;
|
|
157
160
|
isCropping: boolean;
|
|
158
161
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
159
162
|
searchMatches: Readonly<{
|
|
@@ -165,11 +168,16 @@ export declare const actionGroup: {
|
|
|
165
168
|
[groupId: string]: true;
|
|
166
169
|
};
|
|
167
170
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
171
|
+
colorTopPicks: {
|
|
172
|
+
elementStroke: readonly string[] | null;
|
|
173
|
+
elementBackground: readonly string[] | null;
|
|
174
|
+
bucketFill: readonly string[] | null;
|
|
175
|
+
};
|
|
168
176
|
};
|
|
169
177
|
elements: OrderedExcalidrawElement[];
|
|
170
178
|
captureUpdate: "IMMEDIATELY";
|
|
171
179
|
};
|
|
172
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
180
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
173
181
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
174
182
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
175
183
|
} & {
|
|
@@ -178,19 +186,19 @@ export declare const actionGroup: {
|
|
|
178
186
|
export declare const actionUngroup: {
|
|
179
187
|
name: "ungroup";
|
|
180
188
|
label: string;
|
|
181
|
-
icon: (appState:
|
|
189
|
+
icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
182
190
|
trackEvent: {
|
|
183
191
|
category: "element";
|
|
184
192
|
};
|
|
185
|
-
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
186
|
-
appState: Readonly<AppState>;
|
|
193
|
+
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
194
|
+
appState: Readonly<import("../types").AppState>;
|
|
187
195
|
elements: readonly OrderedExcalidrawElement[];
|
|
188
196
|
captureUpdate: "EVENTUALLY";
|
|
189
197
|
} | {
|
|
190
198
|
appState: {
|
|
191
|
-
editingGroupId: AppState["editingGroupId"];
|
|
192
|
-
selectedElementIds: AppState["selectedElementIds"];
|
|
193
|
-
selectedGroupIds: AppState["selectedGroupIds"];
|
|
199
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
200
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
201
|
+
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
194
202
|
contextMenu: {
|
|
195
203
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
196
204
|
top: number;
|
|
@@ -215,6 +223,10 @@ export declare const actionUngroup: {
|
|
|
215
223
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
216
224
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
217
225
|
} | null;
|
|
226
|
+
hoveredArrowTextAnchor: {
|
|
227
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
228
|
+
anchor: "start" | "end" | "label";
|
|
229
|
+
} | null;
|
|
218
230
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
219
231
|
frameRendering: {
|
|
220
232
|
enabled: boolean;
|
|
@@ -222,8 +234,8 @@ export declare const actionUngroup: {
|
|
|
222
234
|
outline: boolean;
|
|
223
235
|
clip: boolean;
|
|
224
236
|
};
|
|
225
|
-
editingFrame:
|
|
226
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
237
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
238
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
227
239
|
editingTextElement: ExcalidrawTextElement | null;
|
|
228
240
|
activeTool: {
|
|
229
241
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -259,6 +271,7 @@ export declare const actionUngroup: {
|
|
|
259
271
|
viewBackgroundColor: string;
|
|
260
272
|
scrollX: number;
|
|
261
273
|
scrollY: number;
|
|
274
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
262
275
|
cursorButton: "up" | "down";
|
|
263
276
|
scrolledOutside: boolean;
|
|
264
277
|
name: string | null;
|
|
@@ -327,8 +340,6 @@ export declare const actionUngroup: {
|
|
|
327
340
|
y: number;
|
|
328
341
|
} | null;
|
|
329
342
|
objectsSnapModeEnabled: boolean;
|
|
330
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
331
|
-
followedBy: Set<import("../types").SocketId>;
|
|
332
343
|
isCropping: boolean;
|
|
333
344
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
334
345
|
searchMatches: Readonly<{
|
|
@@ -340,12 +351,17 @@ export declare const actionUngroup: {
|
|
|
340
351
|
[groupId: string]: true;
|
|
341
352
|
};
|
|
342
353
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
354
|
+
colorTopPicks: {
|
|
355
|
+
elementStroke: readonly string[] | null;
|
|
356
|
+
elementBackground: readonly string[] | null;
|
|
357
|
+
bucketFill: readonly string[] | null;
|
|
358
|
+
};
|
|
343
359
|
};
|
|
344
360
|
elements: OrderedExcalidrawElement[];
|
|
345
361
|
captureUpdate: "IMMEDIATELY";
|
|
346
362
|
};
|
|
347
363
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
348
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
364
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
349
365
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
350
366
|
} & {
|
|
351
367
|
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;
|
|
@@ -67,6 +68,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
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;
|
|
@@ -111,6 +116,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
111
116
|
viewBackgroundColor: string;
|
|
112
117
|
scrollX: number;
|
|
113
118
|
scrollY: number;
|
|
119
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
114
120
|
cursorButton: "up" | "down";
|
|
115
121
|
scrolledOutside: boolean;
|
|
116
122
|
name: string | null;
|
|
@@ -185,8 +191,6 @@ export declare const actionToggleLinearEditor: {
|
|
|
185
191
|
y: number;
|
|
186
192
|
} | null;
|
|
187
193
|
objectsSnapModeEnabled: boolean;
|
|
188
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
189
|
-
followedBy: Set<import("../types").SocketId>;
|
|
190
194
|
isCropping: boolean;
|
|
191
195
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
192
196
|
searchMatches: Readonly<{
|
|
@@ -198,6 +202,11 @@ export declare const actionToggleLinearEditor: {
|
|
|
198
202
|
[groupId: string]: true;
|
|
199
203
|
};
|
|
200
204
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
205
|
+
colorTopPicks: {
|
|
206
|
+
elementStroke: readonly string[] | null;
|
|
207
|
+
elementBackground: readonly string[] | null;
|
|
208
|
+
bucketFill: readonly string[] | null;
|
|
209
|
+
};
|
|
201
210
|
};
|
|
202
211
|
captureUpdate: "IMMEDIATELY";
|
|
203
212
|
};
|
|
@@ -210,7 +219,7 @@ export declare const actionTogglePolygon: {
|
|
|
210
219
|
category: string;
|
|
211
220
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
212
221
|
keywords: string[];
|
|
213
|
-
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").
|
|
222
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
|
|
214
223
|
trackEvent: {
|
|
215
224
|
category: "element";
|
|
216
225
|
};
|
|
@@ -613,6 +622,7 @@ export declare const actionTogglePolygon: {
|
|
|
613
622
|
lineHeight: number & {
|
|
614
623
|
_brand: "unitlessLineHeight";
|
|
615
624
|
};
|
|
625
|
+
labelPosition?: number | null;
|
|
616
626
|
}> & {
|
|
617
627
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
618
628
|
}) | (Readonly<{
|
|
@@ -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[];
|
|
@@ -31,6 +31,10 @@ export declare const actionLink: {
|
|
|
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;
|
|
@@ -75,6 +79,7 @@ export declare const actionLink: {
|
|
|
75
79
|
viewBackgroundColor: string;
|
|
76
80
|
scrollX: number;
|
|
77
81
|
scrollY: number;
|
|
82
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
78
83
|
cursorButton: "up" | "down";
|
|
79
84
|
scrolledOutside: boolean;
|
|
80
85
|
name: string | null;
|
|
@@ -148,8 +153,6 @@ export declare const actionLink: {
|
|
|
148
153
|
y: number;
|
|
149
154
|
} | null;
|
|
150
155
|
objectsSnapModeEnabled: boolean;
|
|
151
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
152
|
-
followedBy: Set<import("../types").SocketId>;
|
|
153
156
|
isCropping: boolean;
|
|
154
157
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
155
158
|
searchMatches: Readonly<{
|
|
@@ -161,6 +164,11 @@ export declare const actionLink: {
|
|
|
161
164
|
[groupId: string]: true;
|
|
162
165
|
};
|
|
163
166
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
167
|
+
colorTopPicks: {
|
|
168
|
+
elementStroke: readonly string[] | null;
|
|
169
|
+
elementBackground: readonly string[] | null;
|
|
170
|
+
bucketFill: readonly string[] | null;
|
|
171
|
+
};
|
|
164
172
|
};
|
|
165
173
|
captureUpdate: "IMMEDIATELY";
|
|
166
174
|
};
|
|
@@ -38,6 +38,10 @@ export declare const actionShortcuts: {
|
|
|
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;
|
|
@@ -82,6 +86,7 @@ export declare const actionShortcuts: {
|
|
|
82
86
|
viewBackgroundColor: string;
|
|
83
87
|
scrollX: number;
|
|
84
88
|
scrollY: number;
|
|
89
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
85
90
|
cursorButton: "up" | "down";
|
|
86
91
|
scrolledOutside: boolean;
|
|
87
92
|
name: string | null;
|
|
@@ -138,8 +143,6 @@ export declare const actionShortcuts: {
|
|
|
138
143
|
y: number;
|
|
139
144
|
} | null;
|
|
140
145
|
objectsSnapModeEnabled: boolean;
|
|
141
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
142
|
-
followedBy: Set<import("../types").SocketId>;
|
|
143
146
|
isCropping: boolean;
|
|
144
147
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
145
148
|
searchMatches: Readonly<{
|
|
@@ -151,6 +154,11 @@ export declare const actionShortcuts: {
|
|
|
151
154
|
[groupId: string]: true;
|
|
152
155
|
};
|
|
153
156
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
157
|
+
colorTopPicks: {
|
|
158
|
+
elementStroke: readonly string[] | null;
|
|
159
|
+
elementBackground: readonly string[] | null;
|
|
160
|
+
bucketFill: readonly string[] | null;
|
|
161
|
+
};
|
|
154
162
|
};
|
|
155
163
|
captureUpdate: "EVENTUALLY";
|
|
156
164
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type StrokeWidthKey } from "@excalidraw/common";
|
|
2
2
|
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
|
-
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, StrokeVariability, TextAlign } from "@excalidraw/element/types";
|
|
3
|
+
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, StrokeVariability, NonDeleted, NonDeletedExcalidrawElement, TextAlign } from "@excalidraw/element/types";
|
|
4
4
|
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
5
|
-
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element:
|
|
5
|
+
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: NonDeletedExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
6
6
|
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties,
|
|
7
7
|
/**
|
|
8
8
|
* input value (usually the element attribute value,
|
|
@@ -15,6 +15,9 @@ export declare const actionChangeStrokeColor: import("./types").Action<Pick<AppS
|
|
|
15
15
|
export declare const actionChangeBackgroundColor: import("./types").Action<Pick<AppState, "viewBackgroundColor" | "currentItemBackgroundColor">> & {
|
|
16
16
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
17
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
|
+
};
|
|
18
21
|
export declare const actionChangeFillStyle: import("./types").Action<import("@excalidraw/element/types").FillStyle> & {
|
|
19
22
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
20
23
|
};
|
|
@@ -54,30 +57,34 @@ export declare const actionDecreaseFontSize: {
|
|
|
54
57
|
isLoading: boolean;
|
|
55
58
|
errorMessage: React.ReactNode;
|
|
56
59
|
activeEmbeddable: {
|
|
57
|
-
element:
|
|
60
|
+
element: NonDeletedExcalidrawElement;
|
|
58
61
|
state: "hover" | "active";
|
|
59
62
|
} | null;
|
|
60
|
-
newElement:
|
|
61
|
-
resizingElement:
|
|
62
|
-
multiElement:
|
|
63
|
-
selectionElement:
|
|
63
|
+
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
64
|
+
resizingElement: NonDeletedExcalidrawElement | null;
|
|
65
|
+
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
66
|
+
selectionElement: NonDeletedExcalidrawElement | null;
|
|
64
67
|
isBindingEnabled: boolean;
|
|
65
68
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
66
69
|
bindingPreference: "enabled" | "disabled";
|
|
67
70
|
isMidpointSnappingEnabled: boolean;
|
|
68
71
|
suggestedBinding: {
|
|
69
|
-
element:
|
|
72
|
+
element: NonDeleted<ExcalidrawBindableElement>;
|
|
70
73
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
71
74
|
} | null;
|
|
72
|
-
|
|
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;
|
|
73
80
|
frameRendering: {
|
|
74
81
|
enabled: boolean;
|
|
75
82
|
name: boolean;
|
|
76
83
|
outline: boolean;
|
|
77
84
|
clip: boolean;
|
|
78
85
|
};
|
|
79
|
-
editingFrame:
|
|
80
|
-
elementsToHighlight:
|
|
86
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
87
|
+
elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
|
|
81
88
|
editingTextElement: ExcalidrawTextElement | null;
|
|
82
89
|
activeTool: {
|
|
83
90
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -112,6 +119,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
112
119
|
viewBackgroundColor: string;
|
|
113
120
|
scrollX: number;
|
|
114
121
|
scrollY: number;
|
|
122
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
115
123
|
cursorButton: "up" | "down";
|
|
116
124
|
scrolledOutside: boolean;
|
|
117
125
|
name: string | null;
|
|
@@ -187,8 +195,6 @@ export declare const actionDecreaseFontSize: {
|
|
|
187
195
|
y: number;
|
|
188
196
|
} | null;
|
|
189
197
|
objectsSnapModeEnabled: boolean;
|
|
190
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
191
|
-
followedBy: Set<import("../types").SocketId>;
|
|
192
198
|
isCropping: boolean;
|
|
193
199
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
194
200
|
searchMatches: Readonly<{
|
|
@@ -200,6 +206,11 @@ export declare const actionDecreaseFontSize: {
|
|
|
200
206
|
[groupId: string]: true;
|
|
201
207
|
};
|
|
202
208
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
209
|
+
colorTopPicks: {
|
|
210
|
+
elementStroke: readonly string[] | null;
|
|
211
|
+
elementBackground: readonly string[] | null;
|
|
212
|
+
bucketFill: readonly string[] | null;
|
|
213
|
+
};
|
|
203
214
|
};
|
|
204
215
|
captureUpdate: "IMMEDIATELY";
|
|
205
216
|
};
|
|
@@ -225,30 +236,34 @@ export declare const actionIncreaseFontSize: {
|
|
|
225
236
|
isLoading: boolean;
|
|
226
237
|
errorMessage: React.ReactNode;
|
|
227
238
|
activeEmbeddable: {
|
|
228
|
-
element:
|
|
239
|
+
element: NonDeletedExcalidrawElement;
|
|
229
240
|
state: "hover" | "active";
|
|
230
241
|
} | null;
|
|
231
|
-
newElement:
|
|
232
|
-
resizingElement:
|
|
233
|
-
multiElement:
|
|
234
|
-
selectionElement:
|
|
242
|
+
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
243
|
+
resizingElement: NonDeletedExcalidrawElement | null;
|
|
244
|
+
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
245
|
+
selectionElement: NonDeletedExcalidrawElement | null;
|
|
235
246
|
isBindingEnabled: boolean;
|
|
236
247
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
237
248
|
bindingPreference: "enabled" | "disabled";
|
|
238
249
|
isMidpointSnappingEnabled: boolean;
|
|
239
250
|
suggestedBinding: {
|
|
240
|
-
element:
|
|
251
|
+
element: NonDeleted<ExcalidrawBindableElement>;
|
|
241
252
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
242
253
|
} | null;
|
|
243
|
-
|
|
254
|
+
hoveredArrowTextAnchor: {
|
|
255
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
256
|
+
anchor: "start" | "end" | "label";
|
|
257
|
+
} | null;
|
|
258
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
244
259
|
frameRendering: {
|
|
245
260
|
enabled: boolean;
|
|
246
261
|
name: boolean;
|
|
247
262
|
outline: boolean;
|
|
248
263
|
clip: boolean;
|
|
249
264
|
};
|
|
250
|
-
editingFrame:
|
|
251
|
-
elementsToHighlight:
|
|
265
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
266
|
+
elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
|
|
252
267
|
editingTextElement: ExcalidrawTextElement | null;
|
|
253
268
|
activeTool: {
|
|
254
269
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -283,6 +298,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
283
298
|
viewBackgroundColor: string;
|
|
284
299
|
scrollX: number;
|
|
285
300
|
scrollY: number;
|
|
301
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
286
302
|
cursorButton: "up" | "down";
|
|
287
303
|
scrolledOutside: boolean;
|
|
288
304
|
name: string | null;
|
|
@@ -358,8 +374,6 @@ export declare const actionIncreaseFontSize: {
|
|
|
358
374
|
y: number;
|
|
359
375
|
} | null;
|
|
360
376
|
objectsSnapModeEnabled: boolean;
|
|
361
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
362
|
-
followedBy: Set<import("../types").SocketId>;
|
|
363
377
|
isCropping: boolean;
|
|
364
378
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
365
379
|
searchMatches: Readonly<{
|
|
@@ -371,6 +385,11 @@ export declare const actionIncreaseFontSize: {
|
|
|
371
385
|
[groupId: string]: true;
|
|
372
386
|
};
|
|
373
387
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
388
|
+
colorTopPicks: {
|
|
389
|
+
elementStroke: readonly string[] | null;
|
|
390
|
+
elementBackground: readonly string[] | null;
|
|
391
|
+
bucketFill: readonly string[] | null;
|
|
392
|
+
};
|
|
374
393
|
};
|
|
375
394
|
captureUpdate: "IMMEDIATELY";
|
|
376
395
|
};
|
|
@@ -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
34
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
35
35
|
bindingPreference: "enabled" | "disabled";
|
|
36
36
|
isMidpointSnappingEnabled: boolean;
|
|
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;
|
|
@@ -82,6 +86,7 @@ export declare const actionSelectAll: {
|
|
|
82
86
|
viewBackgroundColor: string;
|
|
83
87
|
scrollX: number;
|
|
84
88
|
scrollY: number;
|
|
89
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
85
90
|
cursorButton: "up" | "down";
|
|
86
91
|
scrolledOutside: boolean;
|
|
87
92
|
name: string | null;
|
|
@@ -149,8 +154,6 @@ export declare const actionSelectAll: {
|
|
|
149
154
|
y: number;
|
|
150
155
|
} | null;
|
|
151
156
|
objectsSnapModeEnabled: boolean;
|
|
152
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
153
|
-
followedBy: Set<import("../types").SocketId>;
|
|
154
157
|
isCropping: boolean;
|
|
155
158
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
156
159
|
searchMatches: Readonly<{
|
|
@@ -162,6 +165,11 @@ export declare const actionSelectAll: {
|
|
|
162
165
|
[groupId: string]: true;
|
|
163
166
|
};
|
|
164
167
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
168
|
+
colorTopPicks: {
|
|
169
|
+
elementStroke: readonly string[] | null;
|
|
170
|
+
elementBackground: readonly string[] | null;
|
|
171
|
+
bucketFill: readonly string[] | null;
|
|
172
|
+
};
|
|
165
173
|
};
|
|
166
174
|
captureUpdate: "IMMEDIATELY";
|
|
167
175
|
};
|