@excalidraw/excalidraw 0.18.0-6fc8502 → 0.18.0-864353b
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-X3RYHLJU.js → chunk-7YMZV3TY.js} +14 -4
- package/dist/dev/chunk-7YMZV3TY.js.map +7 -0
- package/dist/dev/chunk-BBNNHA7I.js +7 -0
- package/dist/dev/chunk-BBNNHA7I.js.map +7 -0
- package/dist/dev/{chunk-KYBDXI6F.js → chunk-LL55DS44.js} +15037 -10099
- package/dist/dev/chunk-LL55DS44.js.map +7 -0
- package/dist/dev/data/{image-NKFINVKH.js → image-OFYK7EOY.js} +3 -3
- package/dist/dev/index.css +100 -22
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +3531 -6486
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-CKWC2GMK.js → en-KIY5SGI3.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-F44EGBV2.js +33 -0
- package/dist/prod/{chunk-IUH5AXLB.js → chunk-OUULIERA.js} +4 -4
- package/dist/prod/chunk-UH6Q3EIV.js +7 -0
- package/dist/prod/data/image-CUOH64HE.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +18 -17
- package/dist/prod/locales/{en-SBO6ZHT2.js → en-GCLCIHXH.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 +11 -1
- 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 +22 -4
- package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +11 -14
- package/dist/types/element/src/ShapeCache.d.ts +1 -1
- package/dist/types/element/src/align.d.ts +3 -3
- package/dist/types/element/src/binding.d.ts +19 -12
- package/dist/types/element/src/bounds.d.ts +2 -2
- package/dist/types/element/src/collision.d.ts +1 -1
- package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
- package/dist/types/element/src/dragElements.d.ts +3 -2
- package/dist/types/element/src/duplicate.d.ts +10 -13
- package/dist/types/element/src/elbowArrow.d.ts +1 -1
- package/dist/types/element/src/flowchart.d.ts +3 -2
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +5 -4
- package/dist/types/element/src/index.d.ts +45 -2
- package/dist/types/element/src/linearElementEditor.d.ts +20 -31
- package/dist/types/element/src/mutateElement.d.ts +10 -2
- package/dist/types/element/src/newElement.d.ts +4 -3
- package/dist/types/element/src/resizeElements.d.ts +4 -4
- package/dist/types/element/src/selection.d.ts +11 -5
- package/dist/types/element/src/shapes.d.ts +5 -1
- package/dist/types/element/src/sizeHelpers.d.ts +2 -2
- package/dist/types/element/src/store.d.ts +227 -0
- package/dist/types/element/src/textElement.d.ts +5 -3
- package/dist/types/element/src/transformHandles.d.ts +4 -4
- package/dist/types/element/src/typeChecks.d.ts +15 -1
- package/dist/types/element/src/types.d.ts +14 -1
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +39 -45
- package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +26 -30
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +262 -288
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +81 -92
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +13 -15
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +38 -43
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +13 -15
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +41 -46
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +13 -15
- package/dist/types/excalidraw/actions/actionExport.d.ts +210 -228
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +72 -36
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +96 -104
- package/dist/types/excalidraw/actions/actionGroup.d.ts +32 -36
- package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +505 -14
- package/dist/types/excalidraw/actions/actionLink.d.ts +13 -15
- package/dist/types/excalidraw/actions/actionMenu.d.ts +39 -45
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +25 -29
- package/dist/types/excalidraw/actions/actionProperties.d.ts +192 -214
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +15 -17
- package/dist/types/excalidraw/actions/actionStyles.d.ts +17 -19
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +15 -17
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +15 -17
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +15 -190
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +15 -17
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +15 -17
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +15 -17
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/types.d.ts +4 -3
- package/dist/types/excalidraw/appState.d.ts +38 -29
- package/dist/types/excalidraw/components/App.d.ts +24 -11
- 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 +23 -0
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
- 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 +1 -1
- 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 +4 -11
- package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- 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/blob.d.ts +1 -1
- package/dist/types/excalidraw/data/transform.d.ts +1 -1
- package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
- package/dist/types/excalidraw/eraser/index.d.ts +14 -0
- package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
- package/dist/types/excalidraw/history.d.ts +14 -22
- package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +9 -9
- package/dist/types/excalidraw/lasso/index.d.ts +1 -0
- package/dist/types/excalidraw/lasso/utils.d.ts +1 -2
- package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
- package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
- package/dist/types/excalidraw/scene/types.d.ts +2 -0
- package/dist/types/excalidraw/snapping.d.ts +2 -2
- package/dist/types/excalidraw/types.d.ts +28 -6
- package/dist/types/excalidraw/visualdebug.d.ts +1 -1
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
- package/dist/types/math/src/angle.d.ts +2 -0
- package/dist/types/math/src/curve.d.ts +2 -0
- package/dist/types/math/src/point.d.ts +1 -1
- package/dist/types/math/src/types.d.ts +1 -0
- package/dist/types/math/src/vector.d.ts +4 -0
- 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 +68 -94
- package/package.json +3 -3
- package/dist/dev/chunk-H7XJ5UVD.js +0 -7
- package/dist/dev/chunk-H7XJ5UVD.js.map +0 -7
- package/dist/dev/chunk-KYBDXI6F.js.map +0 -7
- package/dist/dev/chunk-X3RYHLJU.js.map +0 -7
- package/dist/prod/chunk-CAN5RS4P.js +0 -31
- package/dist/prod/chunk-KJYFYP64.js +0 -7
- package/dist/prod/data/image-5XD47O4X.js +0 -1
- package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
- package/dist/types/excalidraw/store.d.ts +0 -129
- /package/dist/dev/data/{image-NKFINVKH.js.map → image-OFYK7EOY.js.map} +0 -0
- /package/dist/dev/locales/{en-CKWC2GMK.js.map → en-KIY5SGI3.js.map} +0 -0
|
@@ -12,10 +12,10 @@ export declare const distributeHorizontally: {
|
|
|
12
12
|
elements: ExcalidrawElement[];
|
|
13
13
|
captureUpdate: "IMMEDIATELY";
|
|
14
14
|
};
|
|
15
|
-
keyTest: (event:
|
|
15
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
16
16
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
} & {
|
|
18
|
-
keyTest?: ((event:
|
|
18
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
19
19
|
};
|
|
20
20
|
export declare const distributeVertically: {
|
|
21
21
|
name: "distributeVertically";
|
|
@@ -28,8 +28,8 @@ export declare const distributeVertically: {
|
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
29
|
captureUpdate: "IMMEDIATELY";
|
|
30
30
|
};
|
|
31
|
-
keyTest: (event:
|
|
31
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
32
32
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
33
|
} & {
|
|
34
|
-
keyTest?: ((event:
|
|
34
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
35
35
|
};
|
|
@@ -11,8 +11,8 @@ export declare const actionDuplicateSelection: {
|
|
|
11
11
|
appState: import("../types").AppState;
|
|
12
12
|
captureUpdate: "IMMEDIATELY";
|
|
13
13
|
};
|
|
14
|
-
keyTest: (event:
|
|
14
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
15
15
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
} & {
|
|
17
|
-
keyTest?: ((event:
|
|
17
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
18
18
|
};
|
|
@@ -59,7 +59,7 @@ export declare const actionLinkToElement: {
|
|
|
59
59
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
60
60
|
isBindingEnabled: boolean;
|
|
61
61
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
62
|
-
suggestedBindings: import("@excalidraw/element
|
|
62
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
63
63
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
64
64
|
frameRendering: {
|
|
65
65
|
enabled: boolean;
|
|
@@ -70,7 +70,7 @@ export declare const actionLinkToElement: {
|
|
|
70
70
|
editingFrame: string | null;
|
|
71
71
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
72
72
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
73
|
-
editingLinearElement: import("@excalidraw/element
|
|
73
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
74
74
|
activeTool: {
|
|
75
75
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
76
76
|
locked: boolean;
|
|
@@ -108,7 +108,7 @@ export declare const actionLinkToElement: {
|
|
|
108
108
|
zoom: Readonly<{
|
|
109
109
|
value: import("../types").NormalizedZoomValue;
|
|
110
110
|
}>;
|
|
111
|
-
openMenu: "
|
|
111
|
+
openMenu: "canvas" | "shape" | null;
|
|
112
112
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
113
113
|
openSidebar: {
|
|
114
114
|
name: string;
|
|
@@ -180,8 +180,8 @@ export declare const actionLinkToElement: {
|
|
|
180
180
|
data: import("../charts").Spreadsheet;
|
|
181
181
|
};
|
|
182
182
|
pendingImageElementId: string | null;
|
|
183
|
-
showHyperlinkPopup: false | "
|
|
184
|
-
selectedLinearElement: import("@excalidraw/element
|
|
183
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
184
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
185
185
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
186
186
|
originSnapOffset: {
|
|
187
187
|
x: number;
|
|
@@ -192,16 +192,14 @@ export declare const actionLinkToElement: {
|
|
|
192
192
|
followedBy: Set<import("../types").SocketId>;
|
|
193
193
|
isCropping: boolean;
|
|
194
194
|
croppingElementId: string | null;
|
|
195
|
-
searchMatches:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}[];
|
|
204
|
-
}[];
|
|
195
|
+
searchMatches: Readonly<{
|
|
196
|
+
focusedId: string | null;
|
|
197
|
+
matches: readonly import("../types").SearchMatch[];
|
|
198
|
+
}> | null;
|
|
199
|
+
activeLockedId: string | null;
|
|
200
|
+
lockedMultiSelections: {
|
|
201
|
+
[groupId: string]: true;
|
|
202
|
+
};
|
|
205
203
|
};
|
|
206
204
|
captureUpdate: "IMMEDIATELY";
|
|
207
205
|
elements?: undefined;
|
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
|
+
import type { AppState } from "../types";
|
|
3
4
|
export declare const actionToggleElementLock: {
|
|
4
5
|
name: "toggleElementLock";
|
|
5
|
-
label: (elements: readonly ExcalidrawElement[], appState: Readonly<
|
|
6
|
+
label: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.lock" | "labels.elementLock.unlock";
|
|
6
7
|
icon: (appState: import("../types").UIAppState, elements: readonly ExcalidrawElement[]) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
trackEvent: {
|
|
8
9
|
category: "element";
|
|
9
10
|
};
|
|
10
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
11
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<
|
|
11
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
12
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => false | {
|
|
12
13
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
13
14
|
appState: {
|
|
14
|
-
|
|
15
|
+
selectedElementIds: Readonly<{
|
|
16
|
+
[id: string]: true;
|
|
17
|
+
}>;
|
|
18
|
+
selectedGroupIds: {
|
|
19
|
+
[groupId: string]: boolean;
|
|
20
|
+
};
|
|
21
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
22
|
+
lockedMultiSelections: {
|
|
23
|
+
[x: string]: true;
|
|
24
|
+
};
|
|
25
|
+
activeLockedId: string | null;
|
|
15
26
|
contextMenu: {
|
|
16
27
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
17
28
|
top: number;
|
|
@@ -30,7 +41,7 @@ export declare const actionToggleElementLock: {
|
|
|
30
41
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
42
|
isBindingEnabled: boolean;
|
|
32
43
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
33
|
-
suggestedBindings: import("@excalidraw/element
|
|
44
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
34
45
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
35
46
|
frameRendering: {
|
|
36
47
|
enabled: boolean;
|
|
@@ -41,7 +52,7 @@ export declare const actionToggleElementLock: {
|
|
|
41
52
|
editingFrame: string | null;
|
|
42
53
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
43
54
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
44
|
-
editingLinearElement: import("@excalidraw/element
|
|
55
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
45
56
|
activeTool: {
|
|
46
57
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
58
|
locked: boolean;
|
|
@@ -79,7 +90,7 @@ export declare const actionToggleElementLock: {
|
|
|
79
90
|
zoom: Readonly<{
|
|
80
91
|
value: import("../types").NormalizedZoomValue;
|
|
81
92
|
}>;
|
|
82
|
-
openMenu: "
|
|
93
|
+
openMenu: "canvas" | "shape" | null;
|
|
83
94
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
84
95
|
openSidebar: {
|
|
85
96
|
name: string;
|
|
@@ -98,9 +109,6 @@ export declare const actionToggleElementLock: {
|
|
|
98
109
|
} | null;
|
|
99
110
|
defaultSidebarDockedPreference: boolean;
|
|
100
111
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
101
|
-
selectedElementIds: Readonly<{
|
|
102
|
-
[id: string]: true;
|
|
103
|
-
}>;
|
|
104
112
|
hoveredElementIds: Readonly<{
|
|
105
113
|
[id: string]: true;
|
|
106
114
|
}>;
|
|
@@ -120,9 +128,6 @@ export declare const actionToggleElementLock: {
|
|
|
120
128
|
gridStep: number;
|
|
121
129
|
gridModeEnabled: boolean;
|
|
122
130
|
viewModeEnabled: boolean;
|
|
123
|
-
selectedGroupIds: {
|
|
124
|
-
[groupId: string]: boolean;
|
|
125
|
-
};
|
|
126
131
|
editingGroupId: string | null;
|
|
127
132
|
width: number;
|
|
128
133
|
height: number;
|
|
@@ -162,7 +167,7 @@ export declare const actionToggleElementLock: {
|
|
|
162
167
|
data: import("../charts").Spreadsheet;
|
|
163
168
|
};
|
|
164
169
|
pendingImageElementId: string | null;
|
|
165
|
-
showHyperlinkPopup: false | "
|
|
170
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
166
171
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
167
172
|
originSnapOffset: {
|
|
168
173
|
x: number;
|
|
@@ -173,22 +178,16 @@ export declare const actionToggleElementLock: {
|
|
|
173
178
|
followedBy: Set<import("../types").SocketId>;
|
|
174
179
|
isCropping: boolean;
|
|
175
180
|
croppingElementId: string | null;
|
|
176
|
-
searchMatches:
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
offsetX: number;
|
|
181
|
-
offsetY: number;
|
|
182
|
-
width: number;
|
|
183
|
-
height: number;
|
|
184
|
-
}[];
|
|
185
|
-
}[];
|
|
181
|
+
searchMatches: Readonly<{
|
|
182
|
+
focusedId: string | null;
|
|
183
|
+
matches: readonly import("../types").SearchMatch[];
|
|
184
|
+
}> | null;
|
|
186
185
|
};
|
|
187
186
|
captureUpdate: "IMMEDIATELY";
|
|
188
187
|
};
|
|
189
|
-
keyTest: (event:
|
|
188
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
190
189
|
} & {
|
|
191
|
-
keyTest?: ((event:
|
|
190
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
192
191
|
};
|
|
193
192
|
export declare const actionUnlockAllElements: {
|
|
194
193
|
name: "unlockAllElements";
|
|
@@ -197,13 +196,18 @@ export declare const actionUnlockAllElements: {
|
|
|
197
196
|
};
|
|
198
197
|
viewMode: false;
|
|
199
198
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
200
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
201
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<
|
|
199
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
200
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
202
201
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
203
202
|
appState: {
|
|
204
203
|
selectedElementIds: {
|
|
205
204
|
[k: string]: true;
|
|
206
205
|
};
|
|
206
|
+
selectedGroupIds: {
|
|
207
|
+
[groupId: string]: boolean;
|
|
208
|
+
};
|
|
209
|
+
lockedMultiSelections: {};
|
|
210
|
+
activeLockedId: null;
|
|
207
211
|
contextMenu: {
|
|
208
212
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
209
213
|
top: number;
|
|
@@ -222,7 +226,7 @@ export declare const actionUnlockAllElements: {
|
|
|
222
226
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
223
227
|
isBindingEnabled: boolean;
|
|
224
228
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
225
|
-
suggestedBindings: import("@excalidraw/element
|
|
229
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
226
230
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
227
231
|
frameRendering: {
|
|
228
232
|
enabled: boolean;
|
|
@@ -233,7 +237,7 @@ export declare const actionUnlockAllElements: {
|
|
|
233
237
|
editingFrame: string | null;
|
|
234
238
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
235
239
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
236
|
-
editingLinearElement: import("@excalidraw/element
|
|
240
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
237
241
|
activeTool: {
|
|
238
242
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
239
243
|
locked: boolean;
|
|
@@ -271,7 +275,7 @@ export declare const actionUnlockAllElements: {
|
|
|
271
275
|
zoom: Readonly<{
|
|
272
276
|
value: import("../types").NormalizedZoomValue;
|
|
273
277
|
}>;
|
|
274
|
-
openMenu: "
|
|
278
|
+
openMenu: "canvas" | "shape" | null;
|
|
275
279
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
276
280
|
openSidebar: {
|
|
277
281
|
name: string;
|
|
@@ -309,9 +313,6 @@ export declare const actionUnlockAllElements: {
|
|
|
309
313
|
gridStep: number;
|
|
310
314
|
gridModeEnabled: boolean;
|
|
311
315
|
viewModeEnabled: boolean;
|
|
312
|
-
selectedGroupIds: {
|
|
313
|
-
[groupId: string]: boolean;
|
|
314
|
-
};
|
|
315
316
|
editingGroupId: string | null;
|
|
316
317
|
width: number;
|
|
317
318
|
height: number;
|
|
@@ -351,8 +352,8 @@ export declare const actionUnlockAllElements: {
|
|
|
351
352
|
data: import("../charts").Spreadsheet;
|
|
352
353
|
};
|
|
353
354
|
pendingImageElementId: string | null;
|
|
354
|
-
showHyperlinkPopup: false | "
|
|
355
|
-
selectedLinearElement: import("@excalidraw/element
|
|
355
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
356
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
356
357
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
357
358
|
originSnapOffset: {
|
|
358
359
|
x: number;
|
|
@@ -363,16 +364,10 @@ export declare const actionUnlockAllElements: {
|
|
|
363
364
|
followedBy: Set<import("../types").SocketId>;
|
|
364
365
|
isCropping: boolean;
|
|
365
366
|
croppingElementId: string | null;
|
|
366
|
-
searchMatches:
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
offsetX: number;
|
|
371
|
-
offsetY: number;
|
|
372
|
-
width: number;
|
|
373
|
-
height: number;
|
|
374
|
-
}[];
|
|
375
|
-
}[];
|
|
367
|
+
searchMatches: Readonly<{
|
|
368
|
+
focusedId: string | null;
|
|
369
|
+
matches: readonly import("../types").SearchMatch[];
|
|
370
|
+
}> | null;
|
|
376
371
|
};
|
|
377
372
|
captureUpdate: "IMMEDIATELY";
|
|
378
373
|
};
|
|
@@ -32,7 +32,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
32
32
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
33
33
|
isBindingEnabled: boolean;
|
|
34
34
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
35
|
-
suggestedBindings: import("@excalidraw/element
|
|
35
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
36
36
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
37
37
|
frameRendering: {
|
|
38
38
|
enabled: boolean;
|
|
@@ -43,7 +43,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
43
43
|
editingFrame: string | null;
|
|
44
44
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
45
45
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
46
|
-
editingLinearElement: import("@excalidraw/element
|
|
46
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
47
47
|
penMode: boolean;
|
|
48
48
|
penDetected: boolean;
|
|
49
49
|
exportBackground: boolean;
|
|
@@ -76,7 +76,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
76
76
|
zoom: Readonly<{
|
|
77
77
|
value: import("../types").NormalizedZoomValue;
|
|
78
78
|
}>;
|
|
79
|
-
openMenu: "
|
|
79
|
+
openMenu: "canvas" | "shape" | null;
|
|
80
80
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
81
81
|
openSidebar: {
|
|
82
82
|
name: string;
|
|
@@ -159,8 +159,8 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
159
159
|
data: import("../charts").Spreadsheet;
|
|
160
160
|
};
|
|
161
161
|
pendingImageElementId: string | null;
|
|
162
|
-
showHyperlinkPopup: false | "
|
|
163
|
-
selectedLinearElement: import("@excalidraw/element
|
|
162
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
163
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
164
164
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
165
165
|
originSnapOffset: {
|
|
166
166
|
x: number;
|
|
@@ -171,16 +171,14 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
171
171
|
followedBy: Set<import("../types").SocketId>;
|
|
172
172
|
isCropping: boolean;
|
|
173
173
|
croppingElementId: string | null;
|
|
174
|
-
searchMatches:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}[];
|
|
183
|
-
}[];
|
|
174
|
+
searchMatches: Readonly<{
|
|
175
|
+
focusedId: string | null;
|
|
176
|
+
matches: readonly import("../types").SearchMatch[];
|
|
177
|
+
}> | null;
|
|
178
|
+
activeLockedId: string | null;
|
|
179
|
+
lockedMultiSelections: {
|
|
180
|
+
[groupId: string]: true;
|
|
181
|
+
};
|
|
184
182
|
};
|
|
185
183
|
captureUpdate: "EVENTUALLY";
|
|
186
184
|
};
|