@excalidraw/excalidraw 0.18.0-195a743 → 0.18.0-1b287a8ba
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/chunk-CBGOW5JB.js +5669 -0
- package/dist/dev/chunk-CBGOW5JB.js.map +7 -0
- package/dist/dev/chunk-CP5DND7P.js +7 -0
- package/dist/dev/chunk-CP5DND7P.js.map +7 -0
- package/dist/dev/{chunk-T3M44BFV.js → chunk-QF5FRM6O.js} +12 -4
- package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
- package/dist/dev/data/{image-TTQKTTOH.js → image-SURZSZNX.js} +3 -3
- package/dist/dev/index.css +89 -22
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +7516 -9372
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-I23TB6DJ.js → en-SMAPCEOQ.js} +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/chunk-A66AFZZU.js +7 -0
- package/dist/prod/chunk-I4UNSFV6.js +12 -0
- package/dist/prod/chunk-IRHK23LL.js +4 -0
- package/dist/prod/data/image-HXEZYJPQ.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +26 -19
- package/dist/prod/locales/{en-TC3OFDA6.js → en-TYY6KWIJ.js} +1 -1
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/src/constants.d.ts +19 -3
- package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
- package/dist/types/common/src/font-metadata.d.ts +4 -2
- package/dist/types/common/src/index.d.ts +1 -0
- package/dist/types/common/src/utility-types.d.ts +5 -0
- package/dist/types/common/src/utils.d.ts +15 -5
- package/dist/types/element/src/Scene.d.ts +4 -4
- package/dist/types/element/src/align.d.ts +3 -2
- package/dist/types/element/src/binding.d.ts +11 -8
- package/dist/types/element/src/bounds.d.ts +12 -4
- package/dist/types/element/src/collision.d.ts +18 -12
- package/dist/types/element/src/cropElement.d.ts +1 -1
- package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +63 -38
- package/dist/types/element/src/distance.d.ts +2 -2
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/dragElements.d.ts +1 -1
- package/dist/types/element/src/flowchart.d.ts +1 -1
- package/dist/types/element/src/fractionalIndex.d.ts +8 -2
- package/dist/types/element/src/frame.d.ts +3 -2
- package/dist/types/element/src/groups.d.ts +1 -0
- package/dist/types/element/src/index.d.ts +43 -2
- package/dist/types/element/src/linearElementEditor.d.ts +15 -29
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +3 -2
- package/dist/types/element/src/resizeElements.d.ts +2 -1
- package/dist/types/element/src/selection.d.ts +0 -5
- package/dist/types/element/src/shape.d.ts +42 -0
- package/dist/types/element/src/sizeHelpers.d.ts +2 -1
- package/dist/types/element/src/store.d.ts +232 -0
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/typeChecks.d.ts +16 -1
- package/dist/types/element/src/types.d.ts +13 -3
- package/dist/types/element/src/utils.d.ts +16 -6
- package/dist/types/element/src/zindex.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +39 -48
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +26 -32
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +173 -212
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +75 -92
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +13 -16
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +34 -42
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +12 -15
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +41 -48
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +13 -16
- package/dist/types/excalidraw/actions/actionExport.d.ts +127 -154
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +69 -35
- package/dist/types/excalidraw/actions/actionFrame.d.ts +99 -111
- package/dist/types/excalidraw/actions/actionGroup.d.ts +26 -32
- package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +505 -15
- package/dist/types/excalidraw/actions/actionLink.d.ts +13 -16
- package/dist/types/excalidraw/actions/actionMenu.d.ts +38 -47
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +26 -32
- package/dist/types/excalidraw/actions/actionProperties.d.ts +186 -223
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +12 -15
- package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -16
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +13 -16
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +13 -16
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +12 -188
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +13 -16
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +13 -16
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +13 -16
- package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/types.d.ts +3 -2
- package/dist/types/excalidraw/appState.d.ts +16 -7
- package/dist/types/excalidraw/components/App.d.ts +18 -20
- package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -28
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
- package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
- package/dist/types/excalidraw/components/Range.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/utils.d.ts +2 -1
- package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +3 -0
- package/dist/types/excalidraw/components/shapes.d.ts +1 -1
- package/dist/types/excalidraw/data/transform.d.ts +1 -1
- package/dist/types/excalidraw/eraser/index.d.ts +0 -2
- package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
- package/dist/types/excalidraw/history.d.ts +30 -22
- package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +10 -9
- package/dist/types/excalidraw/lasso/index.d.ts +1 -0
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
- package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
- package/dist/types/excalidraw/scene/Renderer.d.ts +1 -2
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/snapping.d.ts +2 -2
- package/dist/types/excalidraw/types.d.ts +23 -10
- package/dist/types/math/src/angle.d.ts +2 -0
- package/dist/types/math/src/constants.d.ts +3 -0
- package/dist/types/math/src/curve.d.ts +34 -0
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/point.d.ts +1 -1
- package/dist/types/math/src/rectangle.d.ts +2 -0
- package/dist/types/math/src/vector.d.ts +8 -2
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/index.d.ts +1 -1
- package/dist/types/utils/src/withinBounds.d.ts +1 -1
- package/history.ts +147 -110
- package/package.json +12 -9
- package/dist/dev/chunk-H3EW23X2.js +0 -18294
- package/dist/dev/chunk-H3EW23X2.js.map +0 -7
- package/dist/dev/chunk-T3M44BFV.js.map +0 -7
- package/dist/dev/chunk-WMGEUIQQ.js +0 -7
- package/dist/dev/chunk-WMGEUIQQ.js.map +0 -7
- package/dist/prod/chunk-2Z7RPVPO.js +0 -12
- package/dist/prod/chunk-7M43VNIB.js +0 -33
- package/dist/prod/chunk-GK4XUKZB.js +0 -7
- package/dist/prod/data/image-7YYIWLVQ.js +0 -1
- package/dist/types/element/src/Shape.d.ts +0 -17
- package/dist/types/element/src/ShapeCache.d.ts +0 -25
- package/dist/types/element/src/shapes.d.ts +0 -23
- package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
- package/dist/types/excalidraw/store.d.ts +0 -129
- package/dist/types/excalidraw/visualdebug.d.ts +0 -41
- package/dist/types/utils/src/collision.d.ts +0 -8
- /package/dist/dev/data/{image-TTQKTTOH.js.map → image-SURZSZNX.js.map} +0 -0
- /package/dist/dev/locales/{en-I23TB6DJ.js.map → en-SMAPCEOQ.js.map} +0 -0
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
import { type GlobalPoint } from "@excalidraw/math";
|
|
2
2
|
import type { Curve, LineSegment } from "@excalidraw/math";
|
|
3
|
-
import type {
|
|
3
|
+
import type { Zoom } from "@excalidraw/excalidraw/types";
|
|
4
|
+
import type { ExcalidrawDiamondElement, ExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawLinearElement, ExcalidrawRectanguloidElement } from "./types";
|
|
5
|
+
/**
|
|
6
|
+
* Returns the **rotated** components of freedraw, line or arrow elements.
|
|
7
|
+
*
|
|
8
|
+
* @param element The linear element to deconstruct
|
|
9
|
+
* @returns The rotated in components.
|
|
10
|
+
*/
|
|
11
|
+
export declare function deconstructLinearOrFreeDrawElement(element: ExcalidrawLinearElement | ExcalidrawFreeDrawElement): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
|
|
4
12
|
/**
|
|
5
13
|
* Get the building components of a rectanguloid element in the form of
|
|
6
|
-
* line segments and curves
|
|
14
|
+
* line segments and curves **unrotated**.
|
|
7
15
|
*
|
|
8
16
|
* @param element Target rectanguloid element
|
|
9
17
|
* @param offset Optional offset to expand the rectanguloid shape
|
|
10
|
-
* @returns Tuple of line segments (0) and curves (1)
|
|
18
|
+
* @returns Tuple of **unrotated** line segments (0) and curves (1)
|
|
11
19
|
*/
|
|
12
20
|
export declare function deconstructRectanguloidElement(element: ExcalidrawRectanguloidElement, offset?: number): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
|
|
13
21
|
/**
|
|
14
|
-
* Get the building components of a diamond element
|
|
15
|
-
* line segments and curves as a tuple, in this order.
|
|
22
|
+
* Get the **unrotated** building components of a diamond element
|
|
23
|
+
* in the form of line segments and curves as a tuple, in this order.
|
|
16
24
|
*
|
|
17
25
|
* @param element The element to deconstruct
|
|
18
26
|
* @param offset An optional offset
|
|
19
|
-
* @returns Tuple of line segments (0) and curves (1)
|
|
27
|
+
* @returns Tuple of line **unrotated** segments (0) and curves (1)
|
|
20
28
|
*/
|
|
21
29
|
export declare function deconstructDiamondElement(element: ExcalidrawDiamondElement, offset?: number): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
|
|
30
|
+
export declare const isPathALoop: (points: ExcalidrawLinearElement["points"], zoomValue?: Zoom["value"]) => boolean;
|
|
31
|
+
export declare const getCornerRadius: (x: number, element: ExcalidrawElement) => number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AppState } from "@excalidraw/excalidraw/types";
|
|
2
|
-
import type Scene from "./Scene";
|
|
2
|
+
import type { Scene } from "./Scene";
|
|
3
3
|
import type { ExcalidrawElement } from "./types";
|
|
4
4
|
export declare const moveOneLeft: (allElements: readonly ExcalidrawElement[], appState: AppState, scene: Scene) => readonly ExcalidrawElement[];
|
|
5
5
|
export declare const moveOneRight: (allElements: readonly ExcalidrawElement[], appState: AppState, scene: Scene) => readonly ExcalidrawElement[];
|
|
6
|
-
export declare const moveAllLeft: (allElements: readonly ExcalidrawElement[], appState: AppState) => ExcalidrawElement[] |
|
|
7
|
-
export declare const moveAllRight: (allElements: readonly ExcalidrawElement[], appState: AppState) => ExcalidrawElement[] |
|
|
6
|
+
export declare const moveAllLeft: (allElements: readonly ExcalidrawElement[], appState: AppState) => readonly ExcalidrawElement[] | ExcalidrawElement[];
|
|
7
|
+
export declare const moveAllRight: (allElements: readonly ExcalidrawElement[], appState: AppState) => readonly ExcalidrawElement[] | ExcalidrawElement[];
|
|
@@ -20,7 +20,7 @@ export declare const actionAddToLibrary: {
|
|
|
20
20
|
errorMessage: import("react").ReactNode;
|
|
21
21
|
activeEmbeddable: {
|
|
22
22
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
23
|
-
state: "
|
|
23
|
+
state: "active" | "hover";
|
|
24
24
|
} | null;
|
|
25
25
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
26
26
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -28,7 +28,7 @@ export declare const actionAddToLibrary: {
|
|
|
28
28
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
29
|
isBindingEnabled: boolean;
|
|
30
30
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
31
|
-
suggestedBindings: import("@excalidraw/element
|
|
31
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
32
32
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
33
33
|
frameRendering: {
|
|
34
34
|
enabled: boolean;
|
|
@@ -39,7 +39,7 @@ export declare const actionAddToLibrary: {
|
|
|
39
39
|
editingFrame: string | null;
|
|
40
40
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
41
41
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
42
|
-
editingLinearElement: import("@excalidraw/element
|
|
42
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
43
43
|
activeTool: {
|
|
44
44
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
45
45
|
locked: boolean;
|
|
@@ -87,7 +87,7 @@ export declare const actionAddToLibrary: {
|
|
|
87
87
|
name: "imageExport" | "help" | "jsonExport";
|
|
88
88
|
} | {
|
|
89
89
|
name: "ttd";
|
|
90
|
-
tab: "text-to-diagram"
|
|
90
|
+
tab: "mermaid" | "text-to-diagram";
|
|
91
91
|
} | {
|
|
92
92
|
name: "commandPalette";
|
|
93
93
|
} | {
|
|
@@ -154,9 +154,8 @@ export declare const actionAddToLibrary: {
|
|
|
154
154
|
shown: true;
|
|
155
155
|
data: import("../charts").Spreadsheet;
|
|
156
156
|
};
|
|
157
|
-
pendingImageElementId: string | null;
|
|
158
157
|
showHyperlinkPopup: false | "editor" | "info";
|
|
159
|
-
selectedLinearElement: import("@excalidraw/element
|
|
158
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
160
159
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
161
160
|
originSnapOffset: {
|
|
162
161
|
x: number;
|
|
@@ -167,16 +166,14 @@ export declare const actionAddToLibrary: {
|
|
|
167
166
|
followedBy: Set<import("../types").SocketId>;
|
|
168
167
|
isCropping: boolean;
|
|
169
168
|
croppingElementId: string | null;
|
|
170
|
-
searchMatches:
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}[];
|
|
179
|
-
}[];
|
|
169
|
+
searchMatches: Readonly<{
|
|
170
|
+
focusedId: string | null;
|
|
171
|
+
matches: readonly import("../types").SearchMatch[];
|
|
172
|
+
}> | null;
|
|
173
|
+
activeLockedId: string | null;
|
|
174
|
+
lockedMultiSelections: {
|
|
175
|
+
[groupId: string]: true;
|
|
176
|
+
};
|
|
180
177
|
};
|
|
181
178
|
} | {
|
|
182
179
|
captureUpdate: "EVENTUALLY";
|
|
@@ -191,7 +188,7 @@ export declare const actionAddToLibrary: {
|
|
|
191
188
|
isLoading: boolean;
|
|
192
189
|
activeEmbeddable: {
|
|
193
190
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
194
|
-
state: "
|
|
191
|
+
state: "active" | "hover";
|
|
195
192
|
} | null;
|
|
196
193
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
197
194
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -199,7 +196,7 @@ export declare const actionAddToLibrary: {
|
|
|
199
196
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
200
197
|
isBindingEnabled: boolean;
|
|
201
198
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
202
|
-
suggestedBindings: import("@excalidraw/element
|
|
199
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
203
200
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
204
201
|
frameRendering: {
|
|
205
202
|
enabled: boolean;
|
|
@@ -210,7 +207,7 @@ export declare const actionAddToLibrary: {
|
|
|
210
207
|
editingFrame: string | null;
|
|
211
208
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
212
209
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
213
|
-
editingLinearElement: import("@excalidraw/element
|
|
210
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
214
211
|
activeTool: {
|
|
215
212
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
216
213
|
locked: boolean;
|
|
@@ -258,7 +255,7 @@ export declare const actionAddToLibrary: {
|
|
|
258
255
|
name: "imageExport" | "help" | "jsonExport";
|
|
259
256
|
} | {
|
|
260
257
|
name: "ttd";
|
|
261
|
-
tab: "text-to-diagram"
|
|
258
|
+
tab: "mermaid" | "text-to-diagram";
|
|
262
259
|
} | {
|
|
263
260
|
name: "commandPalette";
|
|
264
261
|
} | {
|
|
@@ -330,9 +327,8 @@ export declare const actionAddToLibrary: {
|
|
|
330
327
|
shown: true;
|
|
331
328
|
data: import("../charts").Spreadsheet;
|
|
332
329
|
};
|
|
333
|
-
pendingImageElementId: string | null;
|
|
334
330
|
showHyperlinkPopup: false | "editor" | "info";
|
|
335
|
-
selectedLinearElement: import("@excalidraw/element
|
|
331
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
336
332
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
337
333
|
originSnapOffset: {
|
|
338
334
|
x: number;
|
|
@@ -343,16 +339,14 @@ export declare const actionAddToLibrary: {
|
|
|
343
339
|
followedBy: Set<import("../types").SocketId>;
|
|
344
340
|
isCropping: boolean;
|
|
345
341
|
croppingElementId: string | null;
|
|
346
|
-
searchMatches:
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
}[];
|
|
355
|
-
}[];
|
|
342
|
+
searchMatches: Readonly<{
|
|
343
|
+
focusedId: string | null;
|
|
344
|
+
matches: readonly import("../types").SearchMatch[];
|
|
345
|
+
}> | null;
|
|
346
|
+
activeLockedId: string | null;
|
|
347
|
+
lockedMultiSelections: {
|
|
348
|
+
[groupId: string]: true;
|
|
349
|
+
};
|
|
356
350
|
};
|
|
357
351
|
}> | {
|
|
358
352
|
captureUpdate: "EVENTUALLY";
|
|
@@ -367,7 +361,7 @@ export declare const actionAddToLibrary: {
|
|
|
367
361
|
isLoading: boolean;
|
|
368
362
|
activeEmbeddable: {
|
|
369
363
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
370
|
-
state: "
|
|
364
|
+
state: "active" | "hover";
|
|
371
365
|
} | null;
|
|
372
366
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
373
367
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -375,7 +369,7 @@ export declare const actionAddToLibrary: {
|
|
|
375
369
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
376
370
|
isBindingEnabled: boolean;
|
|
377
371
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
378
|
-
suggestedBindings: import("@excalidraw/element
|
|
372
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
379
373
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
380
374
|
frameRendering: {
|
|
381
375
|
enabled: boolean;
|
|
@@ -386,7 +380,7 @@ export declare const actionAddToLibrary: {
|
|
|
386
380
|
editingFrame: string | null;
|
|
387
381
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
388
382
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
389
|
-
editingLinearElement: import("@excalidraw/element
|
|
383
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
390
384
|
activeTool: {
|
|
391
385
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
392
386
|
locked: boolean;
|
|
@@ -434,7 +428,7 @@ export declare const actionAddToLibrary: {
|
|
|
434
428
|
name: "imageExport" | "help" | "jsonExport";
|
|
435
429
|
} | {
|
|
436
430
|
name: "ttd";
|
|
437
|
-
tab: "text-to-diagram"
|
|
431
|
+
tab: "mermaid" | "text-to-diagram";
|
|
438
432
|
} | {
|
|
439
433
|
name: "commandPalette";
|
|
440
434
|
} | {
|
|
@@ -506,9 +500,8 @@ export declare const actionAddToLibrary: {
|
|
|
506
500
|
shown: true;
|
|
507
501
|
data: import("../charts").Spreadsheet;
|
|
508
502
|
};
|
|
509
|
-
pendingImageElementId: string | null;
|
|
510
503
|
showHyperlinkPopup: false | "editor" | "info";
|
|
511
|
-
selectedLinearElement: import("@excalidraw/element
|
|
504
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
512
505
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
513
506
|
originSnapOffset: {
|
|
514
507
|
x: number;
|
|
@@ -519,16 +512,14 @@ export declare const actionAddToLibrary: {
|
|
|
519
512
|
followedBy: Set<import("../types").SocketId>;
|
|
520
513
|
isCropping: boolean;
|
|
521
514
|
croppingElementId: string | null;
|
|
522
|
-
searchMatches:
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
}[];
|
|
531
|
-
}[];
|
|
515
|
+
searchMatches: Readonly<{
|
|
516
|
+
focusedId: string | null;
|
|
517
|
+
matches: readonly import("../types").SearchMatch[];
|
|
518
|
+
}> | null;
|
|
519
|
+
activeLockedId: string | null;
|
|
520
|
+
lockedMultiSelections: {
|
|
521
|
+
[groupId: string]: true;
|
|
522
|
+
};
|
|
532
523
|
};
|
|
533
524
|
};
|
|
534
525
|
label: string;
|
|
@@ -40,7 +40,7 @@ export declare const actionBindText: {
|
|
|
40
40
|
errorMessage: import("react").ReactNode;
|
|
41
41
|
activeEmbeddable: {
|
|
42
42
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
43
|
-
state: "
|
|
43
|
+
state: "active" | "hover";
|
|
44
44
|
} | null;
|
|
45
45
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
46
46
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -48,7 +48,7 @@ export declare const actionBindText: {
|
|
|
48
48
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
49
49
|
isBindingEnabled: boolean;
|
|
50
50
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
51
|
-
suggestedBindings: import("@excalidraw/element
|
|
51
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
52
52
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
53
53
|
frameRendering: {
|
|
54
54
|
enabled: boolean;
|
|
@@ -59,7 +59,7 @@ export declare const actionBindText: {
|
|
|
59
59
|
editingFrame: string | null;
|
|
60
60
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
61
61
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
62
|
-
editingLinearElement: import("@excalidraw/element
|
|
62
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
63
63
|
activeTool: {
|
|
64
64
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
65
65
|
locked: boolean;
|
|
@@ -107,7 +107,7 @@ export declare const actionBindText: {
|
|
|
107
107
|
name: "imageExport" | "help" | "jsonExport";
|
|
108
108
|
} | {
|
|
109
109
|
name: "ttd";
|
|
110
|
-
tab: "text-to-diagram"
|
|
110
|
+
tab: "mermaid" | "text-to-diagram";
|
|
111
111
|
} | {
|
|
112
112
|
name: "commandPalette";
|
|
113
113
|
} | {
|
|
@@ -176,9 +176,8 @@ export declare const actionBindText: {
|
|
|
176
176
|
shown: true;
|
|
177
177
|
data: import("../charts").Spreadsheet;
|
|
178
178
|
};
|
|
179
|
-
pendingImageElementId: string | null;
|
|
180
179
|
showHyperlinkPopup: false | "editor" | "info";
|
|
181
|
-
selectedLinearElement: import("@excalidraw/element
|
|
180
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
182
181
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
183
182
|
originSnapOffset: {
|
|
184
183
|
x: number;
|
|
@@ -189,16 +188,14 @@ export declare const actionBindText: {
|
|
|
189
188
|
followedBy: Set<import("../types").SocketId>;
|
|
190
189
|
isCropping: boolean;
|
|
191
190
|
croppingElementId: string | null;
|
|
192
|
-
searchMatches:
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}[];
|
|
201
|
-
}[];
|
|
191
|
+
searchMatches: Readonly<{
|
|
192
|
+
focusedId: string | null;
|
|
193
|
+
matches: readonly import("../types").SearchMatch[];
|
|
194
|
+
}> | null;
|
|
195
|
+
activeLockedId: string | null;
|
|
196
|
+
lockedMultiSelections: {
|
|
197
|
+
[groupId: string]: true;
|
|
198
|
+
};
|
|
202
199
|
};
|
|
203
200
|
captureUpdate: "IMMEDIATELY";
|
|
204
201
|
};
|
|
@@ -228,7 +225,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
228
225
|
errorMessage: import("react").ReactNode;
|
|
229
226
|
activeEmbeddable: {
|
|
230
227
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
231
|
-
state: "
|
|
228
|
+
state: "active" | "hover";
|
|
232
229
|
} | null;
|
|
233
230
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
234
231
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -236,7 +233,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
236
233
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
237
234
|
isBindingEnabled: boolean;
|
|
238
235
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
239
|
-
suggestedBindings: import("@excalidraw/element
|
|
236
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
240
237
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
241
238
|
frameRendering: {
|
|
242
239
|
enabled: boolean;
|
|
@@ -247,7 +244,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
247
244
|
editingFrame: string | null;
|
|
248
245
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
249
246
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
250
|
-
editingLinearElement: import("@excalidraw/element
|
|
247
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
251
248
|
activeTool: {
|
|
252
249
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
253
250
|
locked: boolean;
|
|
@@ -295,7 +292,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
295
292
|
name: "imageExport" | "help" | "jsonExport";
|
|
296
293
|
} | {
|
|
297
294
|
name: "ttd";
|
|
298
|
-
tab: "text-to-diagram"
|
|
295
|
+
tab: "mermaid" | "text-to-diagram";
|
|
299
296
|
} | {
|
|
300
297
|
name: "commandPalette";
|
|
301
298
|
} | {
|
|
@@ -364,9 +361,8 @@ export declare const actionWrapTextInContainer: {
|
|
|
364
361
|
shown: true;
|
|
365
362
|
data: import("../charts").Spreadsheet;
|
|
366
363
|
};
|
|
367
|
-
pendingImageElementId: string | null;
|
|
368
364
|
showHyperlinkPopup: false | "editor" | "info";
|
|
369
|
-
selectedLinearElement: import("@excalidraw/element
|
|
365
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
370
366
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
371
367
|
originSnapOffset: {
|
|
372
368
|
x: number;
|
|
@@ -377,16 +373,14 @@ export declare const actionWrapTextInContainer: {
|
|
|
377
373
|
followedBy: Set<import("../types").SocketId>;
|
|
378
374
|
isCropping: boolean;
|
|
379
375
|
croppingElementId: string | null;
|
|
380
|
-
searchMatches:
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
}[];
|
|
389
|
-
}[];
|
|
376
|
+
searchMatches: Readonly<{
|
|
377
|
+
focusedId: string | null;
|
|
378
|
+
matches: readonly import("../types").SearchMatch[];
|
|
379
|
+
}> | null;
|
|
380
|
+
activeLockedId: string | null;
|
|
381
|
+
lockedMultiSelections: {
|
|
382
|
+
[groupId: string]: true;
|
|
383
|
+
};
|
|
390
384
|
};
|
|
391
385
|
captureUpdate: "IMMEDIATELY";
|
|
392
386
|
};
|