@excalidraw/common 0.18.0-2b0e4c9 → 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 +130 -85
- package/dist/dev/index.js.map +3 -3
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/colors.d.ts +20 -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 +27 -10
- package/dist/types/element/src/newElement.d.ts +15 -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 +11 -7
- 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 +14 -10
- package/dist/types/element/src/textWrapping.d.ts +26 -0
- 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 +15 -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 +48 -21
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +33 -15
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +174 -947
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +32 -14
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +16 -7
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +50 -22
- package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionDeselect.d.ts} +30 -36
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +16 -7
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +33 -15
- package/dist/types/excalidraw/actions/actionExport.d.ts +37 -19
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
- package/dist/types/excalidraw/actions/actionFrame.d.ts +61 -205
- package/dist/types/excalidraw/actions/actionGroup.d.ts +48 -30
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +21 -9
- package/dist/types/excalidraw/actions/actionLink.d.ts +17 -8
- package/dist/types/excalidraw/actions/actionMenu.d.ts +16 -7
- package/dist/types/excalidraw/actions/actionProperties.d.ts +62 -32
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +21 -12
- package/dist/types/excalidraw/actions/actionStyles.d.ts +17 -7
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +17 -8
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +20 -12
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +17 -8
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +17 -8
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +20 -12
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +17 -8
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +18 -9
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +17 -8
- 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 +13 -6
- 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 +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 +391 -68
- 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/Range.d.ts +10 -4
- 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 +4 -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 +42 -24
- package/dist/types/excalidraw/data/index.d.ts +4 -4
- package/dist/types/excalidraw/data/json.d.ts +27 -18
- 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/fonts/Fonts.d.ts +3 -2
- package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
- 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/helpers.d.ts +7 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -3
- package/dist/types/excalidraw/scene/Renderer.d.ts +427 -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/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +436 -24
- package/dist/types/excalidraw/viewport.d.ts +275 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +6 -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 +23 -13
- 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 +2 -1
- 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/dist/types/utils/src/index.d.ts +1 -2
- package/package.json +1 -1
- 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
|
@@ -57,13 +57,17 @@ export declare const actionLinkToElement: {
|
|
|
57
57
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
58
58
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
59
59
|
isBindingEnabled: boolean;
|
|
60
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
60
61
|
bindingPreference: "enabled" | "disabled";
|
|
61
62
|
isMidpointSnappingEnabled: boolean;
|
|
62
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
63
63
|
suggestedBinding: {
|
|
64
64
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
65
65
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
66
66
|
} | null;
|
|
67
|
+
hoveredArrowTextAnchor: {
|
|
68
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
69
|
+
anchor: "start" | "end" | "label";
|
|
70
|
+
} | null;
|
|
67
71
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
68
72
|
frameRendering: {
|
|
69
73
|
enabled: boolean;
|
|
@@ -71,9 +75,9 @@ export declare const actionLinkToElement: {
|
|
|
71
75
|
outline: boolean;
|
|
72
76
|
clip: boolean;
|
|
73
77
|
};
|
|
74
|
-
editingFrame:
|
|
75
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
76
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
78
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
79
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
80
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
77
81
|
activeTool: {
|
|
78
82
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
79
83
|
locked: boolean;
|
|
@@ -92,9 +96,10 @@ export declare const actionLinkToElement: {
|
|
|
92
96
|
currentItemStrokeColor: string;
|
|
93
97
|
currentItemBackgroundColor: string;
|
|
94
98
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
95
|
-
|
|
99
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
96
100
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
97
101
|
currentItemRoughness: number;
|
|
102
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
98
103
|
currentItemOpacity: number;
|
|
99
104
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
100
105
|
currentItemFontSize: number;
|
|
@@ -107,6 +112,7 @@ export declare const actionLinkToElement: {
|
|
|
107
112
|
viewBackgroundColor: string;
|
|
108
113
|
scrollX: number;
|
|
109
114
|
scrollY: number;
|
|
115
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
110
116
|
cursorButton: "up" | "down";
|
|
111
117
|
scrolledOutside: boolean;
|
|
112
118
|
name: string | null;
|
|
@@ -165,8 +171,6 @@ export declare const actionLinkToElement: {
|
|
|
165
171
|
y: number;
|
|
166
172
|
} | null;
|
|
167
173
|
objectsSnapModeEnabled: boolean;
|
|
168
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
169
|
-
followedBy: Set<import("../types").SocketId>;
|
|
170
174
|
isCropping: boolean;
|
|
171
175
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
172
176
|
searchMatches: Readonly<{
|
|
@@ -178,6 +182,11 @@ export declare const actionLinkToElement: {
|
|
|
178
182
|
[groupId: string]: true;
|
|
179
183
|
};
|
|
180
184
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
185
|
+
colorTopPicks: {
|
|
186
|
+
elementStroke: readonly string[] | null;
|
|
187
|
+
elementBackground: readonly string[] | null;
|
|
188
|
+
bucketFill: readonly string[] | null;
|
|
189
|
+
};
|
|
181
190
|
};
|
|
182
191
|
captureUpdate: "IMMEDIATELY";
|
|
183
192
|
elements?: undefined;
|
|
@@ -2,7 +2,7 @@ import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
|
2
2
|
import type { AppState } from "../types";
|
|
3
3
|
export declare const actionToggleElementLock: {
|
|
4
4
|
name: "toggleElementLock";
|
|
5
|
-
label: (elements: readonly ExcalidrawElement[], appState: Readonly<
|
|
5
|
+
label: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.elementLock.lock" | "labels.elementLock.unlock";
|
|
6
6
|
icon: (appState: import("../types").UIAppState, elements: readonly ExcalidrawElement[]) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
@@ -39,13 +39,17 @@ export declare const actionToggleElementLock: {
|
|
|
39
39
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
40
40
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
isBindingEnabled: boolean;
|
|
42
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
42
43
|
bindingPreference: "enabled" | "disabled";
|
|
43
44
|
isMidpointSnappingEnabled: boolean;
|
|
44
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
45
45
|
suggestedBinding: {
|
|
46
46
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
47
47
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
48
48
|
} | null;
|
|
49
|
+
hoveredArrowTextAnchor: {
|
|
50
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
51
|
+
anchor: "start" | "end" | "label";
|
|
52
|
+
} | null;
|
|
49
53
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
50
54
|
frameRendering: {
|
|
51
55
|
enabled: boolean;
|
|
@@ -53,9 +57,9 @@ export declare const actionToggleElementLock: {
|
|
|
53
57
|
outline: boolean;
|
|
54
58
|
clip: boolean;
|
|
55
59
|
};
|
|
56
|
-
editingFrame:
|
|
57
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
58
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
60
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
61
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
62
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
59
63
|
activeTool: {
|
|
60
64
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
61
65
|
locked: boolean;
|
|
@@ -74,9 +78,10 @@ export declare const actionToggleElementLock: {
|
|
|
74
78
|
currentItemStrokeColor: string;
|
|
75
79
|
currentItemBackgroundColor: string;
|
|
76
80
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
77
|
-
|
|
81
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
78
82
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
79
83
|
currentItemRoughness: number;
|
|
84
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
80
85
|
currentItemOpacity: number;
|
|
81
86
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
82
87
|
currentItemFontSize: number;
|
|
@@ -89,6 +94,7 @@ export declare const actionToggleElementLock: {
|
|
|
89
94
|
viewBackgroundColor: string;
|
|
90
95
|
scrollX: number;
|
|
91
96
|
scrollY: number;
|
|
97
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
92
98
|
cursorButton: "up" | "down";
|
|
93
99
|
scrolledOutside: boolean;
|
|
94
100
|
name: string | null;
|
|
@@ -157,8 +163,6 @@ export declare const actionToggleElementLock: {
|
|
|
157
163
|
y: number;
|
|
158
164
|
} | null;
|
|
159
165
|
objectsSnapModeEnabled: boolean;
|
|
160
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
161
|
-
followedBy: Set<import("../types").SocketId>;
|
|
162
166
|
isCropping: boolean;
|
|
163
167
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
164
168
|
searchMatches: Readonly<{
|
|
@@ -166,6 +170,11 @@ export declare const actionToggleElementLock: {
|
|
|
166
170
|
matches: readonly import("../types").SearchMatch[];
|
|
167
171
|
}> | null;
|
|
168
172
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
173
|
+
colorTopPicks: {
|
|
174
|
+
elementStroke: readonly string[] | null;
|
|
175
|
+
elementBackground: readonly string[] | null;
|
|
176
|
+
bucketFill: readonly string[] | null;
|
|
177
|
+
};
|
|
169
178
|
};
|
|
170
179
|
captureUpdate: "IMMEDIATELY";
|
|
171
180
|
};
|
|
@@ -209,13 +218,17 @@ export declare const actionUnlockAllElements: {
|
|
|
209
218
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
210
219
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
211
220
|
isBindingEnabled: boolean;
|
|
221
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
212
222
|
bindingPreference: "enabled" | "disabled";
|
|
213
223
|
isMidpointSnappingEnabled: boolean;
|
|
214
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
215
224
|
suggestedBinding: {
|
|
216
225
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
217
226
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
218
227
|
} | null;
|
|
228
|
+
hoveredArrowTextAnchor: {
|
|
229
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
230
|
+
anchor: "start" | "end" | "label";
|
|
231
|
+
} | null;
|
|
219
232
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
220
233
|
frameRendering: {
|
|
221
234
|
enabled: boolean;
|
|
@@ -223,9 +236,9 @@ export declare const actionUnlockAllElements: {
|
|
|
223
236
|
outline: boolean;
|
|
224
237
|
clip: boolean;
|
|
225
238
|
};
|
|
226
|
-
editingFrame:
|
|
227
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
228
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
239
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
240
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
241
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
229
242
|
activeTool: {
|
|
230
243
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
231
244
|
locked: boolean;
|
|
@@ -244,9 +257,10 @@ export declare const actionUnlockAllElements: {
|
|
|
244
257
|
currentItemStrokeColor: string;
|
|
245
258
|
currentItemBackgroundColor: string;
|
|
246
259
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
247
|
-
|
|
260
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
248
261
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
249
262
|
currentItemRoughness: number;
|
|
263
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
250
264
|
currentItemOpacity: number;
|
|
251
265
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
252
266
|
currentItemFontSize: number;
|
|
@@ -259,6 +273,7 @@ export declare const actionUnlockAllElements: {
|
|
|
259
273
|
viewBackgroundColor: string;
|
|
260
274
|
scrollX: number;
|
|
261
275
|
scrollY: number;
|
|
276
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
262
277
|
cursorButton: "up" | "down";
|
|
263
278
|
scrolledOutside: boolean;
|
|
264
279
|
name: string | null;
|
|
@@ -328,8 +343,6 @@ export declare const actionUnlockAllElements: {
|
|
|
328
343
|
y: number;
|
|
329
344
|
} | null;
|
|
330
345
|
objectsSnapModeEnabled: boolean;
|
|
331
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
332
|
-
followedBy: Set<import("../types").SocketId>;
|
|
333
346
|
isCropping: boolean;
|
|
334
347
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
335
348
|
searchMatches: Readonly<{
|
|
@@ -337,6 +350,11 @@ export declare const actionUnlockAllElements: {
|
|
|
337
350
|
matches: readonly import("../types").SearchMatch[];
|
|
338
351
|
}> | null;
|
|
339
352
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
353
|
+
colorTopPicks: {
|
|
354
|
+
elementStroke: readonly string[] | null;
|
|
355
|
+
elementBackground: readonly string[] | null;
|
|
356
|
+
bucketFill: readonly string[] | null;
|
|
357
|
+
};
|
|
340
358
|
};
|
|
341
359
|
captureUpdate: "IMMEDIATELY";
|
|
342
360
|
};
|
|
@@ -83,6 +83,11 @@ export declare const actionLoadScene: {
|
|
|
83
83
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
84
84
|
appState: {
|
|
85
85
|
viewModeEnabled: boolean;
|
|
86
|
+
activeTool: {
|
|
87
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
88
|
+
locked: boolean;
|
|
89
|
+
fromSelection: boolean;
|
|
90
|
+
} & import("../types").ActiveTool;
|
|
86
91
|
zenModeEnabled: boolean;
|
|
87
92
|
gridModeEnabled: boolean;
|
|
88
93
|
objectsSnapModeEnabled: boolean;
|
|
@@ -90,11 +95,6 @@ export declare const actionLoadScene: {
|
|
|
90
95
|
name: string | null;
|
|
91
96
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
92
97
|
gridSize: number;
|
|
93
|
-
activeTool: {
|
|
94
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
95
|
-
locked: boolean;
|
|
96
|
-
fromSelection: boolean;
|
|
97
|
-
} & import("../types").ActiveTool;
|
|
98
98
|
contextMenu: {
|
|
99
99
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
100
100
|
top: number;
|
|
@@ -112,13 +112,17 @@ export declare const actionLoadScene: {
|
|
|
112
112
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
113
113
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
114
114
|
isBindingEnabled: boolean;
|
|
115
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
115
116
|
bindingPreference: "enabled" | "disabled";
|
|
116
117
|
isMidpointSnappingEnabled: boolean;
|
|
117
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
118
118
|
suggestedBinding: {
|
|
119
119
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
120
120
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
121
121
|
} | null;
|
|
122
|
+
hoveredArrowTextAnchor: {
|
|
123
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
124
|
+
anchor: "start" | "end" | "label";
|
|
125
|
+
} | null;
|
|
122
126
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
123
127
|
frameRendering: {
|
|
124
128
|
enabled: boolean;
|
|
@@ -126,9 +130,9 @@ export declare const actionLoadScene: {
|
|
|
126
130
|
outline: boolean;
|
|
127
131
|
clip: boolean;
|
|
128
132
|
};
|
|
129
|
-
editingFrame:
|
|
130
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
131
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
133
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
134
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
135
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
132
136
|
preferredSelectionTool: {
|
|
133
137
|
type: "selection" | "lasso";
|
|
134
138
|
initialized: boolean;
|
|
@@ -142,9 +146,10 @@ export declare const actionLoadScene: {
|
|
|
142
146
|
currentItemStrokeColor: string;
|
|
143
147
|
currentItemBackgroundColor: string;
|
|
144
148
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
145
|
-
|
|
149
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
146
150
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
147
151
|
currentItemRoughness: number;
|
|
152
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
148
153
|
currentItemOpacity: number;
|
|
149
154
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
150
155
|
currentItemFontSize: number;
|
|
@@ -156,6 +161,7 @@ export declare const actionLoadScene: {
|
|
|
156
161
|
viewBackgroundColor: string;
|
|
157
162
|
scrollX: number;
|
|
158
163
|
scrollY: number;
|
|
164
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
159
165
|
cursorButton: "up" | "down";
|
|
160
166
|
scrolledOutside: boolean;
|
|
161
167
|
isResizing: boolean;
|
|
@@ -220,8 +226,6 @@ export declare const actionLoadScene: {
|
|
|
220
226
|
x: number;
|
|
221
227
|
y: number;
|
|
222
228
|
} | null;
|
|
223
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
224
|
-
followedBy: Set<import("../types").SocketId>;
|
|
225
229
|
isCropping: boolean;
|
|
226
230
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
227
231
|
searchMatches: Readonly<{
|
|
@@ -233,6 +237,11 @@ export declare const actionLoadScene: {
|
|
|
233
237
|
[groupId: string]: true;
|
|
234
238
|
};
|
|
235
239
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
240
|
+
colorTopPicks: {
|
|
241
|
+
elementStroke: readonly string[] | null;
|
|
242
|
+
elementBackground: readonly string[] | null;
|
|
243
|
+
bucketFill: readonly string[] | null;
|
|
244
|
+
};
|
|
236
245
|
};
|
|
237
246
|
files: BinaryFiles;
|
|
238
247
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -256,13 +265,17 @@ export declare const actionLoadScene: {
|
|
|
256
265
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
257
266
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
258
267
|
isBindingEnabled: boolean;
|
|
268
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
259
269
|
bindingPreference: "enabled" | "disabled";
|
|
260
270
|
isMidpointSnappingEnabled: boolean;
|
|
261
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
262
271
|
suggestedBinding: {
|
|
263
272
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
264
273
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
265
274
|
} | null;
|
|
275
|
+
hoveredArrowTextAnchor: {
|
|
276
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
277
|
+
anchor: "start" | "end" | "label";
|
|
278
|
+
} | null;
|
|
266
279
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
267
280
|
frameRendering: {
|
|
268
281
|
enabled: boolean;
|
|
@@ -270,9 +283,9 @@ export declare const actionLoadScene: {
|
|
|
270
283
|
outline: boolean;
|
|
271
284
|
clip: boolean;
|
|
272
285
|
};
|
|
273
|
-
editingFrame:
|
|
274
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
275
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
286
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
287
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
288
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
276
289
|
activeTool: {
|
|
277
290
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
278
291
|
locked: boolean;
|
|
@@ -291,9 +304,10 @@ export declare const actionLoadScene: {
|
|
|
291
304
|
currentItemStrokeColor: string;
|
|
292
305
|
currentItemBackgroundColor: string;
|
|
293
306
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
294
|
-
|
|
307
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
295
308
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
296
309
|
currentItemRoughness: number;
|
|
310
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
297
311
|
currentItemOpacity: number;
|
|
298
312
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
299
313
|
currentItemFontSize: number;
|
|
@@ -306,6 +320,7 @@ export declare const actionLoadScene: {
|
|
|
306
320
|
viewBackgroundColor: string;
|
|
307
321
|
scrollX: number;
|
|
308
322
|
scrollY: number;
|
|
323
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
309
324
|
cursorButton: "up" | "down";
|
|
310
325
|
scrolledOutside: boolean;
|
|
311
326
|
name: string | null;
|
|
@@ -381,8 +396,6 @@ export declare const actionLoadScene: {
|
|
|
381
396
|
y: number;
|
|
382
397
|
} | null;
|
|
383
398
|
objectsSnapModeEnabled: boolean;
|
|
384
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
385
|
-
followedBy: Set<import("../types").SocketId>;
|
|
386
399
|
isCropping: boolean;
|
|
387
400
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
388
401
|
searchMatches: Readonly<{
|
|
@@ -394,6 +407,11 @@ export declare const actionLoadScene: {
|
|
|
394
407
|
[groupId: string]: true;
|
|
395
408
|
};
|
|
396
409
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
410
|
+
colorTopPicks: {
|
|
411
|
+
elementStroke: readonly string[] | null;
|
|
412
|
+
elementBackground: readonly string[] | null;
|
|
413
|
+
bucketFill: readonly string[] | null;
|
|
414
|
+
};
|
|
397
415
|
};
|
|
398
416
|
files: BinaryFiles;
|
|
399
417
|
captureUpdate: "EVENTUALLY";
|
|
@@ -6,6 +6,7 @@ type FormData = {
|
|
|
6
6
|
x: number;
|
|
7
7
|
y: number;
|
|
8
8
|
};
|
|
9
|
+
hitBoundText?: boolean;
|
|
9
10
|
};
|
|
10
11
|
export declare const actionFinalize: import("./types").Action<FormData> & {
|
|
11
12
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|