@excalidraw/element 0.18.0-a9ca16e → 0.18.0-abeeaeb
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 +5224 -3095
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +19 -19
- package/dist/types/common/src/colors.d.ts +15 -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/sortElements.d.ts +10 -0
- 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/visualdebug.d.ts +1 -2
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +45 -18
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +30 -12
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +167 -940
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +30 -12
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +15 -6
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +47 -19
- package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionDeselect.d.ts} +29 -35
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +15 -6
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +31 -13
- package/dist/types/excalidraw/actions/actionExport.d.ts +32 -14
- package/dist/types/excalidraw/actions/actionFrame.d.ts +57 -202
- package/dist/types/excalidraw/actions/actionGroup.d.ts +45 -27
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +19 -8
- package/dist/types/excalidraw/actions/actionLink.d.ts +16 -7
- package/dist/types/excalidraw/actions/actionMenu.d.ts +15 -6
- package/dist/types/excalidraw/actions/actionProperties.d.ts +60 -30
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +20 -11
- package/dist/types/excalidraw/actions/actionStyles.d.ts +15 -6
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +16 -7
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +19 -11
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +16 -7
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -7
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +19 -11
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -7
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +17 -8
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -7
- 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 +12 -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 +48 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +30 -0
- package/dist/types/excalidraw/components/App.d.ts +363 -66
- 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/colorPickerUtils.d.ts +1 -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/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 +5 -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/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 +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 +6 -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 +34 -16
- package/dist/types/excalidraw/data/index.d.ts +4 -4
- package/dist/types/excalidraw/data/json.d.ts +23 -14
- 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/lasso/utils.d.ts +2 -0
- 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 +415 -23
- package/dist/types/excalidraw/viewport.d.ts +275 -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 +4 -3
- package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
- 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 -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) => 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;
|
|
@@ -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;
|
|
@@ -151,8 +157,6 @@ export declare const actionGroup: {
|
|
|
151
157
|
y: number;
|
|
152
158
|
} | null;
|
|
153
159
|
objectsSnapModeEnabled: boolean;
|
|
154
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
155
|
-
followedBy: Set<import("../types").SocketId>;
|
|
156
160
|
isCropping: boolean;
|
|
157
161
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
158
162
|
searchMatches: Readonly<{
|
|
@@ -164,11 +168,16 @@ export declare const actionGroup: {
|
|
|
164
168
|
[groupId: string]: true;
|
|
165
169
|
};
|
|
166
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
|
+
};
|
|
167
176
|
};
|
|
168
177
|
elements: OrderedExcalidrawElement[];
|
|
169
178
|
captureUpdate: "IMMEDIATELY";
|
|
170
179
|
};
|
|
171
|
-
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;
|
|
172
181
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
173
182
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
174
183
|
} & {
|
|
@@ -177,19 +186,19 @@ export declare const actionGroup: {
|
|
|
177
186
|
export declare const actionUngroup: {
|
|
178
187
|
name: "ungroup";
|
|
179
188
|
label: string;
|
|
180
|
-
icon: (appState:
|
|
189
|
+
icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
181
190
|
trackEvent: {
|
|
182
191
|
category: "element";
|
|
183
192
|
};
|
|
184
|
-
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
185
|
-
appState: Readonly<AppState>;
|
|
193
|
+
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
194
|
+
appState: Readonly<import("../types").AppState>;
|
|
186
195
|
elements: readonly OrderedExcalidrawElement[];
|
|
187
196
|
captureUpdate: "EVENTUALLY";
|
|
188
197
|
} | {
|
|
189
198
|
appState: {
|
|
190
|
-
editingGroupId: AppState["editingGroupId"];
|
|
191
|
-
selectedElementIds: AppState["selectedElementIds"];
|
|
192
|
-
selectedGroupIds: AppState["selectedGroupIds"];
|
|
199
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
200
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
201
|
+
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
193
202
|
contextMenu: {
|
|
194
203
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
195
204
|
top: number;
|
|
@@ -207,13 +216,17 @@ export declare const actionUngroup: {
|
|
|
207
216
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
208
217
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
209
218
|
isBindingEnabled: boolean;
|
|
219
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
210
220
|
bindingPreference: "enabled" | "disabled";
|
|
211
221
|
isMidpointSnappingEnabled: boolean;
|
|
212
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
213
222
|
suggestedBinding: {
|
|
214
223
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
215
224
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
216
225
|
} | null;
|
|
226
|
+
hoveredArrowTextAnchor: {
|
|
227
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
228
|
+
anchor: "start" | "end" | "label";
|
|
229
|
+
} | null;
|
|
217
230
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
218
231
|
frameRendering: {
|
|
219
232
|
enabled: boolean;
|
|
@@ -221,8 +234,8 @@ export declare const actionUngroup: {
|
|
|
221
234
|
outline: boolean;
|
|
222
235
|
clip: boolean;
|
|
223
236
|
};
|
|
224
|
-
editingFrame:
|
|
225
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
237
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
238
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
226
239
|
editingTextElement: ExcalidrawTextElement | null;
|
|
227
240
|
activeTool: {
|
|
228
241
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -242,9 +255,10 @@ export declare const actionUngroup: {
|
|
|
242
255
|
currentItemStrokeColor: string;
|
|
243
256
|
currentItemBackgroundColor: string;
|
|
244
257
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
245
|
-
|
|
258
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
246
259
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
247
260
|
currentItemRoughness: number;
|
|
261
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
248
262
|
currentItemOpacity: number;
|
|
249
263
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
250
264
|
currentItemFontSize: number;
|
|
@@ -257,6 +271,7 @@ export declare const actionUngroup: {
|
|
|
257
271
|
viewBackgroundColor: string;
|
|
258
272
|
scrollX: number;
|
|
259
273
|
scrollY: number;
|
|
274
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
260
275
|
cursorButton: "up" | "down";
|
|
261
276
|
scrolledOutside: boolean;
|
|
262
277
|
name: string | null;
|
|
@@ -325,8 +340,6 @@ export declare const actionUngroup: {
|
|
|
325
340
|
y: number;
|
|
326
341
|
} | null;
|
|
327
342
|
objectsSnapModeEnabled: boolean;
|
|
328
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
329
|
-
followedBy: Set<import("../types").SocketId>;
|
|
330
343
|
isCropping: boolean;
|
|
331
344
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
332
345
|
searchMatches: Readonly<{
|
|
@@ -338,12 +351,17 @@ export declare const actionUngroup: {
|
|
|
338
351
|
[groupId: string]: true;
|
|
339
352
|
};
|
|
340
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
|
+
};
|
|
341
359
|
};
|
|
342
360
|
elements: OrderedExcalidrawElement[];
|
|
343
361
|
captureUpdate: "IMMEDIATELY";
|
|
344
362
|
};
|
|
345
363
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
346
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
364
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
347
365
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
348
366
|
} & {
|
|
349
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;
|
|
@@ -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;
|
|
@@ -184,8 +191,6 @@ export declare const actionToggleLinearEditor: {
|
|
|
184
191
|
y: number;
|
|
185
192
|
} | null;
|
|
186
193
|
objectsSnapModeEnabled: boolean;
|
|
187
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
188
|
-
followedBy: Set<import("../types").SocketId>;
|
|
189
194
|
isCropping: boolean;
|
|
190
195
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
191
196
|
searchMatches: Readonly<{
|
|
@@ -197,6 +202,11 @@ export declare const actionToggleLinearEditor: {
|
|
|
197
202
|
[groupId: string]: true;
|
|
198
203
|
};
|
|
199
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
|
+
};
|
|
200
210
|
};
|
|
201
211
|
captureUpdate: "IMMEDIATELY";
|
|
202
212
|
};
|
|
@@ -209,7 +219,7 @@ export declare const actionTogglePolygon: {
|
|
|
209
219
|
category: string;
|
|
210
220
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
211
221
|
keywords: string[];
|
|
212
|
-
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";
|
|
213
223
|
trackEvent: {
|
|
214
224
|
category: "element";
|
|
215
225
|
};
|
|
@@ -649,6 +659,7 @@ export declare const actionTogglePolygon: {
|
|
|
649
659
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
650
660
|
pressures: readonly number[];
|
|
651
661
|
simulatePressure: boolean;
|
|
662
|
+
strokeOptions: import("@excalidraw/element/types").StrokeOptions;
|
|
652
663
|
}> & {
|
|
653
664
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
654
665
|
}))[];
|
|
@@ -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;
|
|
@@ -147,8 +153,6 @@ export declare const actionLink: {
|
|
|
147
153
|
y: number;
|
|
148
154
|
} | null;
|
|
149
155
|
objectsSnapModeEnabled: boolean;
|
|
150
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
151
|
-
followedBy: Set<import("../types").SocketId>;
|
|
152
156
|
isCropping: boolean;
|
|
153
157
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
154
158
|
searchMatches: Readonly<{
|
|
@@ -160,6 +164,11 @@ export declare const actionLink: {
|
|
|
160
164
|
[groupId: string]: true;
|
|
161
165
|
};
|
|
162
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
|
+
};
|
|
163
172
|
};
|
|
164
173
|
captureUpdate: "IMMEDIATELY";
|
|
165
174
|
};
|
|
@@ -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;
|
|
@@ -137,8 +143,6 @@ export declare const actionShortcuts: {
|
|
|
137
143
|
y: number;
|
|
138
144
|
} | null;
|
|
139
145
|
objectsSnapModeEnabled: boolean;
|
|
140
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
141
|
-
followedBy: Set<import("../types").SocketId>;
|
|
142
146
|
isCropping: boolean;
|
|
143
147
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
144
148
|
searchMatches: Readonly<{
|
|
@@ -150,6 +154,11 @@ export declare const actionShortcuts: {
|
|
|
150
154
|
[groupId: string]: true;
|
|
151
155
|
};
|
|
152
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
|
+
};
|
|
153
162
|
};
|
|
154
163
|
captureUpdate: "EVENTUALLY";
|
|
155
164
|
};
|