@myoc/excalidraw 0.18.16 → 0.18.17
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-3HLOFB5F.js → chunk-FQEIAL75.js} +14723 -9831
- package/dist/dev/chunk-FQEIAL75.js.map +7 -0
- package/dist/dev/{chunk-PEI7EPYO.js → chunk-KJKC5BJI.js} +10 -4
- package/dist/dev/chunk-KJKC5BJI.js.map +7 -0
- package/dist/dev/{chunk-QQGTICP4.js → chunk-XL2I4W52.js} +2 -2
- package/dist/dev/data/{image-XPEIZ6XQ.js → image-WMF622SS.js} +3 -3
- package/dist/dev/index.css +69 -22
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +3099 -6535
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-R455UJTM.js → en-UQFCZXHO.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-7HNFGNL7.js → chunk-5JAQX5EH.js} +1 -1
- package/dist/prod/{chunk-KZWZ7WHC.js → chunk-EJLAYNAE.js} +4 -4
- package/dist/prod/chunk-LSNMPGNI.js +33 -0
- package/dist/prod/data/image-Z433FUMH.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +17 -16
- package/dist/prod/locales/{en-YWERZJD6.js → en-7EHYHCIL.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 +3 -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 +16 -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/arrange.d.ts +2 -1
- package/dist/types/element/src/binding.d.ts +18 -10
- package/dist/types/element/src/bounds.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/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 +4 -3
- package/dist/types/element/src/index.d.ts +45 -2
- package/dist/types/element/src/linearElementEditor.d.ts +14 -18
- package/dist/types/element/src/mutateElement.d.ts +10 -2
- package/dist/types/element/src/newElement.d.ts +3 -3
- package/dist/types/element/src/resizeElements.d.ts +4 -4
- package/dist/types/element/src/selection.d.ts +1 -6
- package/dist/types/element/src/shapes.d.ts +1 -1
- package/dist/types/element/src/sizeHelpers.d.ts +0 -1
- package/dist/types/element/src/store.d.ts +227 -0
- package/dist/types/element/src/textElement.d.ts +4 -3
- package/dist/types/element/src/typeChecks.d.ts +5 -1
- package/dist/types/element/src/types.d.ts +8 -0
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +27 -45
- package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +18 -30
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +127 -199
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +56 -92
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +9 -15
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +25 -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 +9 -15
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +20 -32
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +9 -15
- package/dist/types/excalidraw/actions/actionExport.d.ts +175 -229
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +16 -28
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +80 -104
- package/dist/types/excalidraw/actions/actionGroup.d.ts +24 -36
- package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +8 -14
- package/dist/types/excalidraw/actions/actionLink.d.ts +9 -15
- package/dist/types/excalidraw/actions/actionMenu.d.ts +27 -45
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +17 -29
- package/dist/types/excalidraw/actions/actionProperties.d.ts +123 -213
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +11 -17
- package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -19
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +11 -17
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +11 -17
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +11 -198
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +11 -17
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +11 -17
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +11 -17
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/types.d.ts +3 -3
- package/dist/types/excalidraw/appState.d.ts +30 -30
- package/dist/types/excalidraw/components/App.d.ts +13 -8
- 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/dropdownMenu/common.d.ts +1 -1
- 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 +1 -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/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/renderer/helpers.d.ts +6 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
- 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 +15 -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/curve.d.ts +2 -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 +4 -4
- package/dist/dev/chunk-3HLOFB5F.js.map +0 -7
- package/dist/dev/chunk-PEI7EPYO.js.map +0 -7
- package/dist/prod/chunk-KKQVTSHB.js +0 -33
- package/dist/prod/data/image-QD7FUQED.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/{chunk-QQGTICP4.js.map → chunk-XL2I4W52.js.map} +0 -0
- /package/dist/dev/data/{image-XPEIZ6XQ.js.map → image-WMF622SS.js.map} +0 -0
- /package/dist/dev/locales/{en-R455UJTM.js.map → en-UQFCZXHO.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LinearElementEditor } from "@excalidraw/element
|
|
2
|
+
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
3
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
4
4
|
export declare const actionSelectAll: {
|
|
5
5
|
name: "selectAll";
|
|
@@ -12,13 +12,13 @@ export declare const actionSelectAll: {
|
|
|
12
12
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => false | {
|
|
13
13
|
appState: {
|
|
14
14
|
selectedLinearElement: LinearElementEditor | null;
|
|
15
|
-
editingGroupId: string | null;
|
|
16
15
|
selectedElementIds: Readonly<{
|
|
17
16
|
[id: string]: true;
|
|
18
17
|
}>;
|
|
19
18
|
selectedGroupIds: {
|
|
20
19
|
[groupId: string]: boolean;
|
|
21
20
|
};
|
|
21
|
+
editingGroupId: string | null;
|
|
22
22
|
contextMenu: {
|
|
23
23
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
24
24
|
top: number;
|
|
@@ -45,7 +45,7 @@ export declare const actionSelectAll: {
|
|
|
45
45
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
46
46
|
isBindingEnabled: boolean;
|
|
47
47
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
48
|
-
suggestedBindings: import("@excalidraw/element
|
|
48
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
49
49
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
50
50
|
frameRendering: {
|
|
51
51
|
enabled: boolean;
|
|
@@ -94,7 +94,7 @@ export declare const actionSelectAll: {
|
|
|
94
94
|
zoom: Readonly<{
|
|
95
95
|
value: import("../types").NormalizedZoomValue;
|
|
96
96
|
}>;
|
|
97
|
-
openMenu: "
|
|
97
|
+
openMenu: "canvas" | "shape" | null;
|
|
98
98
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
99
99
|
openSidebar: {
|
|
100
100
|
name: string;
|
|
@@ -170,7 +170,7 @@ export declare const actionSelectAll: {
|
|
|
170
170
|
data: import("../charts").Spreadsheet;
|
|
171
171
|
};
|
|
172
172
|
pendingImageElementId: string | null;
|
|
173
|
-
showHyperlinkPopup: false | "
|
|
173
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
174
174
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
175
175
|
originSnapOffset: {
|
|
176
176
|
x: number;
|
|
@@ -181,20 +181,14 @@ export declare const actionSelectAll: {
|
|
|
181
181
|
followedBy: Set<import("../types").SocketId>;
|
|
182
182
|
isCropping: boolean;
|
|
183
183
|
croppingElementId: string | null;
|
|
184
|
-
searchMatches:
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
offsetX: number;
|
|
189
|
-
offsetY: number;
|
|
190
|
-
width: number;
|
|
191
|
-
height: number;
|
|
192
|
-
}[];
|
|
193
|
-
}[];
|
|
184
|
+
searchMatches: Readonly<{
|
|
185
|
+
focusedId: string | null;
|
|
186
|
+
matches: readonly import("../types").SearchMatch[];
|
|
187
|
+
}> | null;
|
|
194
188
|
};
|
|
195
189
|
captureUpdate: "IMMEDIATELY";
|
|
196
190
|
};
|
|
197
|
-
keyTest: (event:
|
|
191
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
198
192
|
} & {
|
|
199
|
-
keyTest?: ((event:
|
|
193
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
200
194
|
};
|
|
@@ -10,8 +10,8 @@ export declare const actionSmartZoom: {
|
|
|
10
10
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
11
11
|
captureUpdate: "NEVER";
|
|
12
12
|
};
|
|
13
|
-
keyTest: (event:
|
|
13
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
14
14
|
PanelComponent: ({ data, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
} & {
|
|
16
|
-
keyTest?: ((event:
|
|
16
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
17
17
|
};
|
|
@@ -38,7 +38,7 @@ export declare const actionCopyStyles: {
|
|
|
38
38
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
39
39
|
isBindingEnabled: boolean;
|
|
40
40
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
41
|
-
suggestedBindings: import("@excalidraw/element
|
|
41
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
42
42
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
43
43
|
frameRendering: {
|
|
44
44
|
enabled: boolean;
|
|
@@ -49,7 +49,7 @@ export declare const actionCopyStyles: {
|
|
|
49
49
|
editingFrame: string | null;
|
|
50
50
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
51
51
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
52
|
-
editingLinearElement: import("@excalidraw/element
|
|
52
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
53
53
|
activeTool: {
|
|
54
54
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
55
55
|
locked: boolean;
|
|
@@ -87,7 +87,7 @@ export declare const actionCopyStyles: {
|
|
|
87
87
|
zoom: Readonly<{
|
|
88
88
|
value: import("../types").NormalizedZoomValue;
|
|
89
89
|
}>;
|
|
90
|
-
openMenu: "
|
|
90
|
+
openMenu: "canvas" | "shape" | null;
|
|
91
91
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
92
92
|
openSidebar: {
|
|
93
93
|
name: string;
|
|
@@ -165,8 +165,8 @@ export declare const actionCopyStyles: {
|
|
|
165
165
|
data: import("../charts").Spreadsheet;
|
|
166
166
|
};
|
|
167
167
|
pendingImageElementId: string | null;
|
|
168
|
-
showHyperlinkPopup: false | "
|
|
169
|
-
selectedLinearElement: import("@excalidraw/element
|
|
168
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
169
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
170
170
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
171
171
|
originSnapOffset: {
|
|
172
172
|
x: number;
|
|
@@ -177,22 +177,16 @@ export declare const actionCopyStyles: {
|
|
|
177
177
|
followedBy: Set<import("../types").SocketId>;
|
|
178
178
|
isCropping: boolean;
|
|
179
179
|
croppingElementId: string | null;
|
|
180
|
-
searchMatches:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
offsetX: number;
|
|
185
|
-
offsetY: number;
|
|
186
|
-
width: number;
|
|
187
|
-
height: number;
|
|
188
|
-
}[];
|
|
189
|
-
}[];
|
|
180
|
+
searchMatches: Readonly<{
|
|
181
|
+
focusedId: string | null;
|
|
182
|
+
matches: readonly import("../types").SearchMatch[];
|
|
183
|
+
}> | null;
|
|
190
184
|
};
|
|
191
185
|
captureUpdate: "EVENTUALLY";
|
|
192
186
|
};
|
|
193
|
-
keyTest: (event:
|
|
187
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
194
188
|
} & {
|
|
195
|
-
keyTest?: ((event:
|
|
189
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
196
190
|
};
|
|
197
191
|
export declare const actionPasteStyles: {
|
|
198
192
|
name: "pasteStyles";
|
|
@@ -208,7 +202,7 @@ export declare const actionPasteStyles: {
|
|
|
208
202
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
209
203
|
captureUpdate: "IMMEDIATELY";
|
|
210
204
|
};
|
|
211
|
-
keyTest: (event:
|
|
205
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
212
206
|
} & {
|
|
213
|
-
keyTest?: ((event:
|
|
207
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
214
208
|
};
|
|
@@ -40,7 +40,7 @@ export declare const actionToggleGridMode: {
|
|
|
40
40
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
isBindingEnabled: boolean;
|
|
42
42
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
43
|
-
suggestedBindings: import("@excalidraw/element
|
|
43
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
44
44
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
45
45
|
frameRendering: {
|
|
46
46
|
enabled: boolean;
|
|
@@ -51,7 +51,7 @@ export declare const actionToggleGridMode: {
|
|
|
51
51
|
editingFrame: string | null;
|
|
52
52
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
53
53
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
54
|
-
editingLinearElement: import("@excalidraw/element
|
|
54
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
55
55
|
activeTool: {
|
|
56
56
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
57
57
|
locked: boolean;
|
|
@@ -89,7 +89,7 @@ export declare const actionToggleGridMode: {
|
|
|
89
89
|
zoom: Readonly<{
|
|
90
90
|
value: import("../types").NormalizedZoomValue;
|
|
91
91
|
}>;
|
|
92
|
-
openMenu: "
|
|
92
|
+
openMenu: "canvas" | "shape" | null;
|
|
93
93
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
94
94
|
openSidebar: {
|
|
95
95
|
name: string;
|
|
@@ -171,8 +171,8 @@ export declare const actionToggleGridMode: {
|
|
|
171
171
|
data: import("../charts").Spreadsheet;
|
|
172
172
|
};
|
|
173
173
|
pendingImageElementId: string | null;
|
|
174
|
-
showHyperlinkPopup: false | "
|
|
175
|
-
selectedLinearElement: import("@excalidraw/element
|
|
174
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
175
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
176
176
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
177
177
|
originSnapOffset: {
|
|
178
178
|
x: number;
|
|
@@ -182,22 +182,16 @@ export declare const actionToggleGridMode: {
|
|
|
182
182
|
followedBy: Set<import("../types").SocketId>;
|
|
183
183
|
isCropping: boolean;
|
|
184
184
|
croppingElementId: string | null;
|
|
185
|
-
searchMatches:
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
offsetX: number;
|
|
190
|
-
offsetY: number;
|
|
191
|
-
width: number;
|
|
192
|
-
height: number;
|
|
193
|
-
}[];
|
|
194
|
-
}[];
|
|
185
|
+
searchMatches: Readonly<{
|
|
186
|
+
focusedId: string | null;
|
|
187
|
+
matches: readonly import("../types").SearchMatch[];
|
|
188
|
+
}> | null;
|
|
195
189
|
};
|
|
196
190
|
captureUpdate: "EVENTUALLY";
|
|
197
191
|
};
|
|
198
192
|
checked: (appState: AppState) => boolean;
|
|
199
193
|
predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
200
|
-
keyTest: (event:
|
|
194
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
201
195
|
} & {
|
|
202
|
-
keyTest?: ((event:
|
|
196
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
203
197
|
};
|
|
@@ -38,7 +38,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
38
38
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
39
39
|
isBindingEnabled: boolean;
|
|
40
40
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
41
|
-
suggestedBindings: import("@excalidraw/element
|
|
41
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
42
42
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
43
43
|
frameRendering: {
|
|
44
44
|
enabled: boolean;
|
|
@@ -49,7 +49,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
49
49
|
editingFrame: string | null;
|
|
50
50
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
51
51
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
52
|
-
editingLinearElement: import("@excalidraw/element
|
|
52
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
53
53
|
activeTool: {
|
|
54
54
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
55
55
|
locked: boolean;
|
|
@@ -87,7 +87,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
87
87
|
zoom: Readonly<{
|
|
88
88
|
value: import("../types").NormalizedZoomValue;
|
|
89
89
|
}>;
|
|
90
|
-
openMenu: "
|
|
90
|
+
openMenu: "canvas" | "shape" | null;
|
|
91
91
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
92
92
|
openSidebar: {
|
|
93
93
|
name: string;
|
|
@@ -169,8 +169,8 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
169
169
|
data: import("../charts").Spreadsheet;
|
|
170
170
|
};
|
|
171
171
|
pendingImageElementId: string | null;
|
|
172
|
-
showHyperlinkPopup: false | "
|
|
173
|
-
selectedLinearElement: import("@excalidraw/element
|
|
172
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
173
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
174
174
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
175
175
|
originSnapOffset: {
|
|
176
176
|
x: number;
|
|
@@ -180,22 +180,16 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
180
180
|
followedBy: Set<import("../types").SocketId>;
|
|
181
181
|
isCropping: boolean;
|
|
182
182
|
croppingElementId: string | null;
|
|
183
|
-
searchMatches:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
offsetX: number;
|
|
188
|
-
offsetY: number;
|
|
189
|
-
width: number;
|
|
190
|
-
height: number;
|
|
191
|
-
}[];
|
|
192
|
-
}[];
|
|
183
|
+
searchMatches: Readonly<{
|
|
184
|
+
focusedId: string | null;
|
|
185
|
+
matches: readonly import("../types").SearchMatch[];
|
|
186
|
+
}> | null;
|
|
193
187
|
};
|
|
194
188
|
captureUpdate: "EVENTUALLY";
|
|
195
189
|
};
|
|
196
190
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
197
191
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
198
|
-
keyTest: (event:
|
|
192
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
199
193
|
} & {
|
|
200
|
-
keyTest?: ((event:
|
|
194
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
201
195
|
};
|
|
@@ -12,187 +12,6 @@ export declare const actionToggleSearchMenu: {
|
|
|
12
12
|
predicate: (appState: Readonly<AppState>) => boolean;
|
|
13
13
|
};
|
|
14
14
|
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties): false | {
|
|
15
|
-
appState: {
|
|
16
|
-
openSidebar: null;
|
|
17
|
-
contextMenu: {
|
|
18
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
19
|
-
top: number;
|
|
20
|
-
left: number;
|
|
21
|
-
} | null;
|
|
22
|
-
showWelcomeScreen: boolean;
|
|
23
|
-
isLoading: boolean;
|
|
24
|
-
myocSimplifiedMode: boolean;
|
|
25
|
-
dontResizeLimitMBs: number;
|
|
26
|
-
hideMainMenus: boolean;
|
|
27
|
-
wheelZoomsOnDefault?: boolean | undefined;
|
|
28
|
-
arrangeConfiguration: {
|
|
29
|
-
algorithm: "bin-packing";
|
|
30
|
-
gap: number;
|
|
31
|
-
};
|
|
32
|
-
errorMessage: import("react").ReactNode;
|
|
33
|
-
activeEmbeddable: {
|
|
34
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
35
|
-
state: "hover" | "active";
|
|
36
|
-
} | null;
|
|
37
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
38
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
39
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
40
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
|
-
isBindingEnabled: boolean;
|
|
42
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
43
|
-
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
44
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
45
|
-
frameRendering: {
|
|
46
|
-
enabled: boolean;
|
|
47
|
-
name: boolean;
|
|
48
|
-
outline: boolean;
|
|
49
|
-
clip: boolean;
|
|
50
|
-
};
|
|
51
|
-
editingFrame: string | null;
|
|
52
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
53
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
54
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
55
|
-
activeTool: {
|
|
56
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
57
|
-
locked: boolean;
|
|
58
|
-
fromSelection: boolean;
|
|
59
|
-
} & import("../types").ActiveTool;
|
|
60
|
-
penMode: boolean;
|
|
61
|
-
penDetected: boolean;
|
|
62
|
-
exportBackground: boolean;
|
|
63
|
-
exportEmbedScene: boolean;
|
|
64
|
-
exportWithDarkMode: boolean;
|
|
65
|
-
exportScale: number;
|
|
66
|
-
currentItemStrokeColor: string;
|
|
67
|
-
currentItemBackgroundColor: string;
|
|
68
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
69
|
-
currentItemStrokeWidth: number;
|
|
70
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
71
|
-
currentItemRoughness: number;
|
|
72
|
-
currentItemOpacity: number;
|
|
73
|
-
currentItemFontFamily: number;
|
|
74
|
-
currentItemFontSize: number;
|
|
75
|
-
currentItemTextAlign: string;
|
|
76
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
77
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
78
|
-
currentHoveredFontFamily: number | null;
|
|
79
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
80
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
81
|
-
viewBackgroundColor: string;
|
|
82
|
-
scrollX: number;
|
|
83
|
-
scrollY: number;
|
|
84
|
-
cursorButton: "up" | "down";
|
|
85
|
-
scrolledOutside: boolean;
|
|
86
|
-
name: string | null;
|
|
87
|
-
isResizing: boolean;
|
|
88
|
-
isRotating: boolean;
|
|
89
|
-
zoom: Readonly<{
|
|
90
|
-
value: import("../types").NormalizedZoomValue;
|
|
91
|
-
}>;
|
|
92
|
-
openMenu: "shape" | "canvas" | null;
|
|
93
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
94
|
-
openDialog: {
|
|
95
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
96
|
-
} | {
|
|
97
|
-
name: "ttd";
|
|
98
|
-
tab: "text-to-diagram" | "mermaid";
|
|
99
|
-
} | {
|
|
100
|
-
name: "commandPalette";
|
|
101
|
-
} | {
|
|
102
|
-
name: "elementLinkSelector";
|
|
103
|
-
sourceElementId: string;
|
|
104
|
-
} | null;
|
|
105
|
-
defaultSidebarDockedPreference: boolean;
|
|
106
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
107
|
-
selectedElementIds: Readonly<{
|
|
108
|
-
[id: string]: true;
|
|
109
|
-
}>;
|
|
110
|
-
hoveredElementIds: Readonly<{
|
|
111
|
-
[id: string]: true;
|
|
112
|
-
}>;
|
|
113
|
-
previousSelectedElementIds: {
|
|
114
|
-
[id: string]: true;
|
|
115
|
-
};
|
|
116
|
-
selectedElementsAreBeingDragged: boolean;
|
|
117
|
-
shouldCacheIgnoreZoom: boolean;
|
|
118
|
-
toast: {
|
|
119
|
-
message: string;
|
|
120
|
-
closable?: boolean | undefined;
|
|
121
|
-
duration?: number | undefined;
|
|
122
|
-
} | null;
|
|
123
|
-
zenModeEnabled: boolean;
|
|
124
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
125
|
-
gridSize: number;
|
|
126
|
-
gridStep: number;
|
|
127
|
-
gridModeEnabled: boolean;
|
|
128
|
-
viewModeEnabled: boolean;
|
|
129
|
-
selectedGroupIds: {
|
|
130
|
-
[groupId: string]: boolean;
|
|
131
|
-
};
|
|
132
|
-
editingGroupId: string | null;
|
|
133
|
-
width: number;
|
|
134
|
-
height: number;
|
|
135
|
-
offsetTop: number;
|
|
136
|
-
offsetLeft: number;
|
|
137
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
138
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
139
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
140
|
-
button?: "up" | "down" | undefined;
|
|
141
|
-
selectedElementIds?: Readonly<{
|
|
142
|
-
[id: string]: true;
|
|
143
|
-
}> | undefined;
|
|
144
|
-
username?: string | null | undefined;
|
|
145
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
146
|
-
color?: {
|
|
147
|
-
background: string;
|
|
148
|
-
stroke: string;
|
|
149
|
-
} | undefined;
|
|
150
|
-
avatarUrl?: string | undefined;
|
|
151
|
-
id?: string | undefined;
|
|
152
|
-
socketId?: import("../types").SocketId | undefined;
|
|
153
|
-
isCurrentUser?: boolean | undefined;
|
|
154
|
-
isInCall?: boolean | undefined;
|
|
155
|
-
isSpeaking?: boolean | undefined;
|
|
156
|
-
isMuted?: boolean | undefined;
|
|
157
|
-
}>>;
|
|
158
|
-
stats: {
|
|
159
|
-
open: boolean;
|
|
160
|
-
panels: number;
|
|
161
|
-
};
|
|
162
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
163
|
-
pasteDialog: {
|
|
164
|
-
shown: false;
|
|
165
|
-
data: null;
|
|
166
|
-
} | {
|
|
167
|
-
shown: true;
|
|
168
|
-
data: import("../charts").Spreadsheet;
|
|
169
|
-
};
|
|
170
|
-
pendingImageElementId: string | null;
|
|
171
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
172
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
173
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
174
|
-
originSnapOffset: {
|
|
175
|
-
x: number;
|
|
176
|
-
y: number;
|
|
177
|
-
} | null;
|
|
178
|
-
objectsSnapModeEnabled: boolean;
|
|
179
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
180
|
-
followedBy: Set<import("../types").SocketId>;
|
|
181
|
-
isCropping: boolean;
|
|
182
|
-
croppingElementId: string | null;
|
|
183
|
-
searchMatches: readonly {
|
|
184
|
-
id: string;
|
|
185
|
-
focus: boolean;
|
|
186
|
-
matchedLines: {
|
|
187
|
-
offsetX: number;
|
|
188
|
-
offsetY: number;
|
|
189
|
-
width: number;
|
|
190
|
-
height: number;
|
|
191
|
-
}[];
|
|
192
|
-
}[];
|
|
193
|
-
};
|
|
194
|
-
captureUpdate: "EVENTUALLY";
|
|
195
|
-
} | {
|
|
196
15
|
appState: {
|
|
197
16
|
openSidebar: {
|
|
198
17
|
name: "default";
|
|
@@ -225,7 +44,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
225
44
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
226
45
|
isBindingEnabled: boolean;
|
|
227
46
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
228
|
-
suggestedBindings: import("@excalidraw/element
|
|
47
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
229
48
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
230
49
|
frameRendering: {
|
|
231
50
|
enabled: boolean;
|
|
@@ -236,7 +55,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
236
55
|
editingFrame: string | null;
|
|
237
56
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
238
57
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
239
|
-
editingLinearElement: import("@excalidraw/element
|
|
58
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
240
59
|
activeTool: {
|
|
241
60
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
242
61
|
locked: boolean;
|
|
@@ -274,7 +93,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
274
93
|
zoom: Readonly<{
|
|
275
94
|
value: import("../types").NormalizedZoomValue;
|
|
276
95
|
}>;
|
|
277
|
-
openMenu: "
|
|
96
|
+
openMenu: "canvas" | "shape" | null;
|
|
278
97
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
279
98
|
defaultSidebarDockedPreference: boolean;
|
|
280
99
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -342,8 +161,8 @@ export declare const actionToggleSearchMenu: {
|
|
|
342
161
|
data: import("../charts").Spreadsheet;
|
|
343
162
|
};
|
|
344
163
|
pendingImageElementId: string | null;
|
|
345
|
-
showHyperlinkPopup: false | "
|
|
346
|
-
selectedLinearElement: import("@excalidraw/element
|
|
164
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
165
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
347
166
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
348
167
|
originSnapOffset: {
|
|
349
168
|
x: number;
|
|
@@ -354,22 +173,16 @@ export declare const actionToggleSearchMenu: {
|
|
|
354
173
|
followedBy: Set<import("../types").SocketId>;
|
|
355
174
|
isCropping: boolean;
|
|
356
175
|
croppingElementId: string | null;
|
|
357
|
-
searchMatches:
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
offsetX: number;
|
|
362
|
-
offsetY: number;
|
|
363
|
-
width: number;
|
|
364
|
-
height: number;
|
|
365
|
-
}[];
|
|
366
|
-
}[];
|
|
176
|
+
searchMatches: Readonly<{
|
|
177
|
+
focusedId: string | null;
|
|
178
|
+
matches: readonly import("../types").SearchMatch[];
|
|
179
|
+
}> | null;
|
|
367
180
|
};
|
|
368
181
|
captureUpdate: "EVENTUALLY";
|
|
369
182
|
};
|
|
370
183
|
checked: (appState: AppState) => boolean;
|
|
371
184
|
predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
372
|
-
keyTest: (event:
|
|
185
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
373
186
|
} & {
|
|
374
|
-
keyTest?: ((event:
|
|
187
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
375
188
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
+
export declare const actionToggleShapeSwitch: {
|
|
3
|
+
name: "toggleShapeSwitch";
|
|
4
|
+
label: string;
|
|
5
|
+
icon: () => null;
|
|
6
|
+
viewMode: true;
|
|
7
|
+
trackEvent: {
|
|
8
|
+
category: "shape_switch";
|
|
9
|
+
action: string;
|
|
10
|
+
};
|
|
11
|
+
keywords: string[];
|
|
12
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
|
|
13
|
+
captureUpdate: "NEVER";
|
|
14
|
+
};
|
|
15
|
+
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
16
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
17
|
+
} & {
|
|
18
|
+
keyTest?: undefined;
|
|
19
|
+
};
|
|
@@ -40,7 +40,7 @@ export declare const actionToggleStats: {
|
|
|
40
40
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
isBindingEnabled: boolean;
|
|
42
42
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
43
|
-
suggestedBindings: import("@excalidraw/element
|
|
43
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
44
44
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
45
45
|
frameRendering: {
|
|
46
46
|
enabled: boolean;
|
|
@@ -51,7 +51,7 @@ export declare const actionToggleStats: {
|
|
|
51
51
|
editingFrame: string | null;
|
|
52
52
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
53
53
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
54
|
-
editingLinearElement: import("@excalidraw/element
|
|
54
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
55
55
|
activeTool: {
|
|
56
56
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
57
57
|
locked: boolean;
|
|
@@ -89,7 +89,7 @@ export declare const actionToggleStats: {
|
|
|
89
89
|
zoom: Readonly<{
|
|
90
90
|
value: import("../types").NormalizedZoomValue;
|
|
91
91
|
}>;
|
|
92
|
-
openMenu: "
|
|
92
|
+
openMenu: "canvas" | "shape" | null;
|
|
93
93
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
94
94
|
openSidebar: {
|
|
95
95
|
name: string;
|
|
@@ -168,8 +168,8 @@ export declare const actionToggleStats: {
|
|
|
168
168
|
data: import("../charts").Spreadsheet;
|
|
169
169
|
};
|
|
170
170
|
pendingImageElementId: string | null;
|
|
171
|
-
showHyperlinkPopup: false | "
|
|
172
|
-
selectedLinearElement: import("@excalidraw/element
|
|
171
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
172
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
173
173
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
174
174
|
originSnapOffset: {
|
|
175
175
|
x: number;
|
|
@@ -180,21 +180,15 @@ export declare const actionToggleStats: {
|
|
|
180
180
|
followedBy: Set<import("../types").SocketId>;
|
|
181
181
|
isCropping: boolean;
|
|
182
182
|
croppingElementId: string | null;
|
|
183
|
-
searchMatches:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
offsetX: number;
|
|
188
|
-
offsetY: number;
|
|
189
|
-
width: number;
|
|
190
|
-
height: number;
|
|
191
|
-
}[];
|
|
192
|
-
}[];
|
|
183
|
+
searchMatches: Readonly<{
|
|
184
|
+
focusedId: string | null;
|
|
185
|
+
matches: readonly import("../types").SearchMatch[];
|
|
186
|
+
}> | null;
|
|
193
187
|
};
|
|
194
188
|
captureUpdate: "EVENTUALLY";
|
|
195
189
|
};
|
|
196
190
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
197
|
-
keyTest: (event:
|
|
191
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
198
192
|
} & {
|
|
199
|
-
keyTest?: ((event:
|
|
193
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
200
194
|
};
|