@excalidraw/common 0.18.0-b7aac689a → 0.18.0-c141960
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/index.js +329 -46
- package/dist/dev/index.js.map +3 -3
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/constants.d.ts +21 -15
- package/dist/types/common/src/editorInterface.d.ts +34 -0
- package/dist/types/common/src/index.d.ts +2 -0
- package/dist/types/common/src/utils.d.ts +9 -3
- package/dist/types/common/src/visualdebug.d.ts +41 -0
- package/dist/types/element/src/Scene.d.ts +6 -2
- package/dist/types/element/src/align.d.ts +2 -1
- package/dist/types/element/src/binding.d.ts +55 -43
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/element/src/collision.d.ts +6 -2
- package/dist/types/element/src/delta.d.ts +16 -4
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/groups.d.ts +1 -0
- package/dist/types/element/src/index.d.ts +1 -3
- package/dist/types/element/src/linearElementEditor.d.ts +17 -19
- package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/dist/types/element/src/renderElement.d.ts +5 -2
- package/dist/types/element/src/resizeTest.d.ts +5 -4
- package/dist/types/element/src/store.d.ts +6 -1
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/transformHandles.d.ts +5 -4
- package/dist/types/element/src/typeChecks.d.ts +2 -3
- package/dist/types/element/src/types.d.ts +7 -11
- package/dist/types/element/src/utils.d.ts +2 -1
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +34 -16
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +25 -13
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +153 -275
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +45 -777
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +45 -29
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +11 -7
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +23 -11
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionExport.d.ts +68 -952
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -394
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionFrame.d.ts +50 -28
- package/dist/types/excalidraw/actions/actionGroup.d.ts +24 -12
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +47 -14
- package/dist/types/excalidraw/actions/actionLink.d.ts +9 -3
- package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -374
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +21 -361
- package/dist/types/excalidraw/actions/actionProperties.d.ts +87 -2418
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -7
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -6
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/index.d.ts +2 -2
- package/dist/types/excalidraw/actions/manager.d.ts +1 -1
- package/dist/types/excalidraw/actions/register.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +4 -4
- package/dist/types/excalidraw/appState.d.ts +9 -4
- package/dist/types/excalidraw/clipboard.d.ts +64 -1
- package/dist/types/excalidraw/components/Actions.d.ts +20 -7
- package/dist/types/excalidraw/components/App.d.ts +35 -25
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
- package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TextField.d.ts +1 -0
- package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +10 -0
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +13 -1
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
- package/dist/types/excalidraw/components/shapes.d.ts +129 -1
- package/dist/types/excalidraw/data/blob.d.ts +3 -7
- package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
- package/dist/types/excalidraw/data/restore.d.ts +7 -2
- package/dist/types/excalidraw/data/types.d.ts +4 -1
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/index.d.ts +4 -4
- package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +2 -6
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +5 -13
- package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/dist/types/excalidraw/scene/types.d.ts +15 -3
- package/dist/types/excalidraw/shortcut.d.ts +1 -0
- package/dist/types/excalidraw/types.d.ts +37 -24
- package/dist/types/math/src/segment.d.ts +1 -0
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export declare const actionToggleCropEditor: {
|
|
|
8
8
|
category: "menu";
|
|
9
9
|
};
|
|
10
10
|
keywords: string[];
|
|
11
|
-
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _:
|
|
11
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): {
|
|
12
12
|
appState: {
|
|
13
13
|
isCropping: false;
|
|
14
14
|
croppingElementId: string;
|
|
@@ -30,7 +30,7 @@ export declare const actionToggleCropEditor: {
|
|
|
30
30
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
31
|
isBindingEnabled: boolean;
|
|
32
32
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
33
|
-
|
|
33
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
34
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
35
35
|
frameRendering: {
|
|
36
36
|
enabled: boolean;
|
|
@@ -41,12 +41,15 @@ export declare const actionToggleCropEditor: {
|
|
|
41
41
|
editingFrame: string | null;
|
|
42
42
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
43
43
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
44
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
45
44
|
activeTool: {
|
|
46
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
46
|
locked: boolean;
|
|
48
47
|
fromSelection: boolean;
|
|
49
48
|
} & import("../types").ActiveTool;
|
|
49
|
+
preferredSelectionTool: {
|
|
50
|
+
type: "selection" | "lasso";
|
|
51
|
+
initialized: boolean;
|
|
52
|
+
};
|
|
50
53
|
penMode: boolean;
|
|
51
54
|
penDetected: boolean;
|
|
52
55
|
exportBackground: boolean;
|
|
@@ -79,8 +82,8 @@ export declare const actionToggleCropEditor: {
|
|
|
79
82
|
zoom: Readonly<{
|
|
80
83
|
value: import("../types").NormalizedZoomValue;
|
|
81
84
|
}>;
|
|
82
|
-
openMenu: "canvas" |
|
|
83
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
85
|
+
openMenu: "canvas" | null;
|
|
86
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
84
87
|
openSidebar: {
|
|
85
88
|
name: string;
|
|
86
89
|
tab?: string | undefined;
|
|
@@ -92,6 +95,8 @@ export declare const actionToggleCropEditor: {
|
|
|
92
95
|
tab: "mermaid" | "text-to-diagram";
|
|
93
96
|
} | {
|
|
94
97
|
name: "commandPalette";
|
|
98
|
+
} | {
|
|
99
|
+
name: "settings";
|
|
95
100
|
} | {
|
|
96
101
|
name: "elementLinkSelector";
|
|
97
102
|
sourceElementId: string;
|
|
@@ -161,7 +166,7 @@ export declare const actionToggleCropEditor: {
|
|
|
161
166
|
shown: true;
|
|
162
167
|
data: import("../charts").Spreadsheet;
|
|
163
168
|
};
|
|
164
|
-
showHyperlinkPopup: false | "
|
|
169
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
165
170
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
166
171
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
167
172
|
originSnapOffset: {
|
|
@@ -179,6 +184,7 @@ export declare const actionToggleCropEditor: {
|
|
|
179
184
|
lockedMultiSelections: {
|
|
180
185
|
[groupId: string]: true;
|
|
181
186
|
};
|
|
187
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
182
188
|
};
|
|
183
189
|
captureUpdate: "IMMEDIATELY";
|
|
184
190
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
2
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
4
3
|
import type { AppClassProperties, AppState } from "../types";
|
|
5
4
|
export declare const actionDeleteSelected: {
|
|
@@ -10,10 +9,10 @@ export declare const actionDeleteSelected: {
|
|
|
10
9
|
category: "element";
|
|
11
10
|
action: string;
|
|
12
11
|
};
|
|
13
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData:
|
|
12
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: unknown, app: AppClassProperties) => false | {
|
|
14
13
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
15
14
|
appState: {
|
|
16
|
-
|
|
15
|
+
selectedLinearElement: null;
|
|
17
16
|
contextMenu: {
|
|
18
17
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
19
18
|
top: number;
|
|
@@ -32,7 +31,7 @@ export declare const actionDeleteSelected: {
|
|
|
32
31
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
33
32
|
isBindingEnabled: boolean;
|
|
34
33
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
35
|
-
|
|
34
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
36
35
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
37
36
|
frameRendering: {
|
|
38
37
|
enabled: boolean;
|
|
@@ -48,6 +47,10 @@ export declare const actionDeleteSelected: {
|
|
|
48
47
|
locked: boolean;
|
|
49
48
|
fromSelection: boolean;
|
|
50
49
|
} & import("../types").ActiveTool;
|
|
50
|
+
preferredSelectionTool: {
|
|
51
|
+
type: "selection" | "lasso";
|
|
52
|
+
initialized: boolean;
|
|
53
|
+
};
|
|
51
54
|
penMode: boolean;
|
|
52
55
|
penDetected: boolean;
|
|
53
56
|
exportBackground: boolean;
|
|
@@ -80,8 +83,8 @@ export declare const actionDeleteSelected: {
|
|
|
80
83
|
zoom: Readonly<{
|
|
81
84
|
value: import("../types").NormalizedZoomValue;
|
|
82
85
|
}>;
|
|
83
|
-
openMenu: "canvas" |
|
|
84
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
86
|
+
openMenu: "canvas" | null;
|
|
87
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
85
88
|
openSidebar: {
|
|
86
89
|
name: string;
|
|
87
90
|
tab?: string | undefined;
|
|
@@ -93,6 +96,8 @@ export declare const actionDeleteSelected: {
|
|
|
93
96
|
tab: "mermaid" | "text-to-diagram";
|
|
94
97
|
} | {
|
|
95
98
|
name: "commandPalette";
|
|
99
|
+
} | {
|
|
100
|
+
name: "settings";
|
|
96
101
|
} | {
|
|
97
102
|
name: "elementLinkSelector";
|
|
98
103
|
sourceElementId: string;
|
|
@@ -162,8 +167,7 @@ export declare const actionDeleteSelected: {
|
|
|
162
167
|
shown: true;
|
|
163
168
|
data: import("../charts").Spreadsheet;
|
|
164
169
|
};
|
|
165
|
-
showHyperlinkPopup: false | "
|
|
166
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
170
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
167
171
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
168
172
|
originSnapOffset: {
|
|
169
173
|
x: number;
|
|
@@ -182,34 +186,32 @@ export declare const actionDeleteSelected: {
|
|
|
182
186
|
lockedMultiSelections: {
|
|
183
187
|
[groupId: string]: true;
|
|
184
188
|
};
|
|
189
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
185
190
|
};
|
|
186
191
|
captureUpdate: "IMMEDIATELY";
|
|
187
192
|
} | {
|
|
188
193
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
189
194
|
appState: {
|
|
190
|
-
|
|
195
|
+
selectedLinearElement: {
|
|
191
196
|
selectedPointsIndices: number[];
|
|
192
|
-
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
193
|
-
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
194
197
|
elementId: string & {
|
|
195
198
|
_brand: "excalidrawLinearElementId";
|
|
196
199
|
};
|
|
197
|
-
|
|
200
|
+
initialState: Readonly<{
|
|
198
201
|
prevSelectedPointsIndices: readonly number[] | null;
|
|
199
202
|
lastClickedPoint: number;
|
|
200
|
-
|
|
201
|
-
origin: Readonly<{
|
|
202
|
-
x: number;
|
|
203
|
-
y: number;
|
|
204
|
-
}> | null;
|
|
203
|
+
origin: Readonly<import("../../math/src").GlobalPoint> | null;
|
|
205
204
|
segmentMidpoint: {
|
|
206
205
|
value: import("../../math/src").GlobalPoint | null;
|
|
207
206
|
index: number | null;
|
|
208
207
|
added: boolean;
|
|
209
208
|
};
|
|
209
|
+
arrowStartIsInside: boolean;
|
|
210
|
+
altFocusPoint: Readonly<import("../../math/src").GlobalPoint> | null;
|
|
210
211
|
}>;
|
|
211
212
|
isDragging: boolean;
|
|
212
213
|
lastUncommittedPoint: import("../../math/src").LocalPoint | null;
|
|
214
|
+
lastCommittedPoint: import("../../math/src").LocalPoint | null;
|
|
213
215
|
pointerOffset: Readonly<{
|
|
214
216
|
x: number;
|
|
215
217
|
y: number;
|
|
@@ -218,6 +220,8 @@ export declare const actionDeleteSelected: {
|
|
|
218
220
|
segmentMidPointHoveredCoords: import("../../math/src").GlobalPoint | null;
|
|
219
221
|
elbowed: boolean;
|
|
220
222
|
customLineAngle: number | null;
|
|
223
|
+
isEditing: boolean;
|
|
224
|
+
pointerDownState: never;
|
|
221
225
|
};
|
|
222
226
|
contextMenu: {
|
|
223
227
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -237,7 +241,7 @@ export declare const actionDeleteSelected: {
|
|
|
237
241
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
238
242
|
isBindingEnabled: boolean;
|
|
239
243
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
240
|
-
|
|
244
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
241
245
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
242
246
|
frameRendering: {
|
|
243
247
|
enabled: boolean;
|
|
@@ -253,6 +257,10 @@ export declare const actionDeleteSelected: {
|
|
|
253
257
|
locked: boolean;
|
|
254
258
|
fromSelection: boolean;
|
|
255
259
|
} & import("../types").ActiveTool;
|
|
260
|
+
preferredSelectionTool: {
|
|
261
|
+
type: "selection" | "lasso";
|
|
262
|
+
initialized: boolean;
|
|
263
|
+
};
|
|
256
264
|
penMode: boolean;
|
|
257
265
|
penDetected: boolean;
|
|
258
266
|
exportBackground: boolean;
|
|
@@ -285,8 +293,8 @@ export declare const actionDeleteSelected: {
|
|
|
285
293
|
zoom: Readonly<{
|
|
286
294
|
value: import("../types").NormalizedZoomValue;
|
|
287
295
|
}>;
|
|
288
|
-
openMenu: "canvas" |
|
|
289
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
296
|
+
openMenu: "canvas" | null;
|
|
297
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
290
298
|
openSidebar: {
|
|
291
299
|
name: string;
|
|
292
300
|
tab?: string | undefined;
|
|
@@ -298,6 +306,8 @@ export declare const actionDeleteSelected: {
|
|
|
298
306
|
tab: "mermaid" | "text-to-diagram";
|
|
299
307
|
} | {
|
|
300
308
|
name: "commandPalette";
|
|
309
|
+
} | {
|
|
310
|
+
name: "settings";
|
|
301
311
|
} | {
|
|
302
312
|
name: "elementLinkSelector";
|
|
303
313
|
sourceElementId: string;
|
|
@@ -367,8 +377,7 @@ export declare const actionDeleteSelected: {
|
|
|
367
377
|
shown: true;
|
|
368
378
|
data: import("../charts").Spreadsheet;
|
|
369
379
|
};
|
|
370
|
-
showHyperlinkPopup: false | "
|
|
371
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
380
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
372
381
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
373
382
|
originSnapOffset: {
|
|
374
383
|
x: number;
|
|
@@ -387,6 +396,7 @@ export declare const actionDeleteSelected: {
|
|
|
387
396
|
lockedMultiSelections: {
|
|
388
397
|
[groupId: string]: true;
|
|
389
398
|
};
|
|
399
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
390
400
|
};
|
|
391
401
|
captureUpdate: "IMMEDIATELY";
|
|
392
402
|
} | {
|
|
@@ -398,6 +408,7 @@ export declare const actionDeleteSelected: {
|
|
|
398
408
|
fromSelection: boolean;
|
|
399
409
|
} & import("../types").ActiveTool;
|
|
400
410
|
multiElement: null;
|
|
411
|
+
newElement: null;
|
|
401
412
|
activeEmbeddable: null;
|
|
402
413
|
selectedLinearElement: null;
|
|
403
414
|
editingGroupId: string | null;
|
|
@@ -415,12 +426,11 @@ export declare const actionDeleteSelected: {
|
|
|
415
426
|
showWelcomeScreen: boolean;
|
|
416
427
|
isLoading: boolean;
|
|
417
428
|
errorMessage: import("react").ReactNode;
|
|
418
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
419
429
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
420
430
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
421
431
|
isBindingEnabled: boolean;
|
|
422
432
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
423
|
-
|
|
433
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
424
434
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
425
435
|
frameRendering: {
|
|
426
436
|
enabled: boolean;
|
|
@@ -431,7 +441,10 @@ export declare const actionDeleteSelected: {
|
|
|
431
441
|
editingFrame: string | null;
|
|
432
442
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
433
443
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
434
|
-
|
|
444
|
+
preferredSelectionTool: {
|
|
445
|
+
type: "selection" | "lasso";
|
|
446
|
+
initialized: boolean;
|
|
447
|
+
};
|
|
435
448
|
penMode: boolean;
|
|
436
449
|
penDetected: boolean;
|
|
437
450
|
exportBackground: boolean;
|
|
@@ -464,8 +477,8 @@ export declare const actionDeleteSelected: {
|
|
|
464
477
|
zoom: Readonly<{
|
|
465
478
|
value: import("../types").NormalizedZoomValue;
|
|
466
479
|
}>;
|
|
467
|
-
openMenu: "canvas" |
|
|
468
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
480
|
+
openMenu: "canvas" | null;
|
|
481
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
469
482
|
openSidebar: {
|
|
470
483
|
name: string;
|
|
471
484
|
tab?: string | undefined;
|
|
@@ -477,6 +490,8 @@ export declare const actionDeleteSelected: {
|
|
|
477
490
|
tab: "mermaid" | "text-to-diagram";
|
|
478
491
|
} | {
|
|
479
492
|
name: "commandPalette";
|
|
493
|
+
} | {
|
|
494
|
+
name: "settings";
|
|
480
495
|
} | {
|
|
481
496
|
name: "elementLinkSelector";
|
|
482
497
|
sourceElementId: string;
|
|
@@ -539,7 +554,7 @@ export declare const actionDeleteSelected: {
|
|
|
539
554
|
shown: true;
|
|
540
555
|
data: import("../charts").Spreadsheet;
|
|
541
556
|
};
|
|
542
|
-
showHyperlinkPopup: false | "
|
|
557
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
543
558
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
544
559
|
originSnapOffset: {
|
|
545
560
|
x: number;
|
|
@@ -558,11 +573,12 @@ export declare const actionDeleteSelected: {
|
|
|
558
573
|
lockedMultiSelections: {
|
|
559
574
|
[groupId: string]: true;
|
|
560
575
|
};
|
|
576
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
561
577
|
};
|
|
562
578
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
563
579
|
};
|
|
564
580
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
565
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
581
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
566
582
|
} & {
|
|
567
583
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
|
|
568
584
|
};
|
|
@@ -7,7 +7,7 @@ export declare const distributeHorizontally: {
|
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
11
11
|
appState: Readonly<AppState>;
|
|
12
12
|
elements: ExcalidrawElement[];
|
|
13
13
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -23,7 +23,7 @@ export declare const distributeVertically: {
|
|
|
23
23
|
trackEvent: {
|
|
24
24
|
category: "element";
|
|
25
25
|
};
|
|
26
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
26
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
27
27
|
appState: Readonly<AppState>;
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
29
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -6,13 +6,13 @@ export declare const actionDuplicateSelection: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData:
|
|
9
|
+
perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: unknown, app: import("../types").AppClassProperties) => false | {
|
|
10
10
|
elements: readonly import("../../element/src/types").OrderedExcalidrawElement[];
|
|
11
11
|
appState: import("../types").AppState;
|
|
12
12
|
captureUpdate: "IMMEDIATELY";
|
|
13
13
|
};
|
|
14
14
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
} & {
|
|
17
17
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
18
18
|
};
|
|
@@ -6,7 +6,7 @@ export declare const actionCopyElementLink: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _:
|
|
9
|
+
perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
10
10
|
appState: {
|
|
11
11
|
toast: {
|
|
12
12
|
message: string;
|
|
@@ -30,7 +30,7 @@ export declare const actionLinkToElement: {
|
|
|
30
30
|
name: "linkToElement";
|
|
31
31
|
label: string;
|
|
32
32
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _:
|
|
33
|
+
perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
34
34
|
elements: readonly import("../../element/src/types").OrderedExcalidrawElement[];
|
|
35
35
|
appState: Readonly<import("../types").AppState>;
|
|
36
36
|
app: import("../types").AppClassProperties;
|
|
@@ -59,7 +59,7 @@ export declare const actionLinkToElement: {
|
|
|
59
59
|
selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
|
|
60
60
|
isBindingEnabled: boolean;
|
|
61
61
|
startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
|
|
62
|
-
|
|
62
|
+
suggestedBinding: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
|
|
63
63
|
frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
|
|
64
64
|
frameRendering: {
|
|
65
65
|
enabled: boolean;
|
|
@@ -70,12 +70,15 @@ export declare const actionLinkToElement: {
|
|
|
70
70
|
editingFrame: string | null;
|
|
71
71
|
elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
|
|
72
72
|
editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
|
|
73
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
74
73
|
activeTool: {
|
|
75
74
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
76
75
|
locked: boolean;
|
|
77
76
|
fromSelection: boolean;
|
|
78
77
|
} & import("../types").ActiveTool;
|
|
78
|
+
preferredSelectionTool: {
|
|
79
|
+
type: "selection" | "lasso";
|
|
80
|
+
initialized: boolean;
|
|
81
|
+
};
|
|
79
82
|
penMode: boolean;
|
|
80
83
|
penDetected: boolean;
|
|
81
84
|
exportBackground: boolean;
|
|
@@ -108,8 +111,8 @@ export declare const actionLinkToElement: {
|
|
|
108
111
|
zoom: Readonly<{
|
|
109
112
|
value: import("../types").NormalizedZoomValue;
|
|
110
113
|
}>;
|
|
111
|
-
openMenu: "canvas" |
|
|
112
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
114
|
+
openMenu: "canvas" | null;
|
|
115
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
113
116
|
openSidebar: {
|
|
114
117
|
name: string;
|
|
115
118
|
tab?: string | undefined;
|
|
@@ -179,7 +182,7 @@ export declare const actionLinkToElement: {
|
|
|
179
182
|
shown: true;
|
|
180
183
|
data: import("../charts").Spreadsheet;
|
|
181
184
|
};
|
|
182
|
-
showHyperlinkPopup: false | "
|
|
185
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
183
186
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
184
187
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
185
188
|
originSnapOffset: {
|
|
@@ -199,6 +202,7 @@ export declare const actionLinkToElement: {
|
|
|
199
202
|
lockedMultiSelections: {
|
|
200
203
|
[groupId: string]: true;
|
|
201
204
|
};
|
|
205
|
+
bindMode: import("../../element/src/types").BindMode;
|
|
202
206
|
};
|
|
203
207
|
captureUpdate: "IMMEDIATELY";
|
|
204
208
|
elements?: undefined;
|
|
@@ -9,7 +9,7 @@ export declare const actionToggleElementLock: {
|
|
|
9
9
|
category: "element";
|
|
10
10
|
};
|
|
11
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>, _:
|
|
12
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => false | {
|
|
13
13
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
14
14
|
appState: {
|
|
15
15
|
selectedElementIds: Readonly<{
|
|
@@ -41,7 +41,7 @@ export declare const actionToggleElementLock: {
|
|
|
41
41
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
42
42
|
isBindingEnabled: boolean;
|
|
43
43
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
44
|
-
|
|
44
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
45
45
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
46
46
|
frameRendering: {
|
|
47
47
|
enabled: boolean;
|
|
@@ -52,12 +52,15 @@ export declare const actionToggleElementLock: {
|
|
|
52
52
|
editingFrame: string | null;
|
|
53
53
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
54
54
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
55
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
56
55
|
activeTool: {
|
|
57
56
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
58
57
|
locked: boolean;
|
|
59
58
|
fromSelection: boolean;
|
|
60
59
|
} & import("../types").ActiveTool;
|
|
60
|
+
preferredSelectionTool: {
|
|
61
|
+
type: "selection" | "lasso";
|
|
62
|
+
initialized: boolean;
|
|
63
|
+
};
|
|
61
64
|
penMode: boolean;
|
|
62
65
|
penDetected: boolean;
|
|
63
66
|
exportBackground: boolean;
|
|
@@ -90,8 +93,8 @@ export declare const actionToggleElementLock: {
|
|
|
90
93
|
zoom: Readonly<{
|
|
91
94
|
value: import("../types").NormalizedZoomValue;
|
|
92
95
|
}>;
|
|
93
|
-
openMenu: "canvas" |
|
|
94
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
96
|
+
openMenu: "canvas" | null;
|
|
97
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
95
98
|
openSidebar: {
|
|
96
99
|
name: string;
|
|
97
100
|
tab?: string | undefined;
|
|
@@ -103,6 +106,8 @@ export declare const actionToggleElementLock: {
|
|
|
103
106
|
tab: "mermaid" | "text-to-diagram";
|
|
104
107
|
} | {
|
|
105
108
|
name: "commandPalette";
|
|
109
|
+
} | {
|
|
110
|
+
name: "settings";
|
|
106
111
|
} | {
|
|
107
112
|
name: "elementLinkSelector";
|
|
108
113
|
sourceElementId: string;
|
|
@@ -166,7 +171,7 @@ export declare const actionToggleElementLock: {
|
|
|
166
171
|
shown: true;
|
|
167
172
|
data: import("../charts").Spreadsheet;
|
|
168
173
|
};
|
|
169
|
-
showHyperlinkPopup: false | "
|
|
174
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
170
175
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
171
176
|
originSnapOffset: {
|
|
172
177
|
x: number;
|
|
@@ -181,6 +186,7 @@ export declare const actionToggleElementLock: {
|
|
|
181
186
|
focusedId: string | null;
|
|
182
187
|
matches: readonly import("../types").SearchMatch[];
|
|
183
188
|
}> | null;
|
|
189
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
184
190
|
};
|
|
185
191
|
captureUpdate: "IMMEDIATELY";
|
|
186
192
|
};
|
|
@@ -225,7 +231,7 @@ export declare const actionUnlockAllElements: {
|
|
|
225
231
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
226
232
|
isBindingEnabled: boolean;
|
|
227
233
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
228
|
-
|
|
234
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
229
235
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
230
236
|
frameRendering: {
|
|
231
237
|
enabled: boolean;
|
|
@@ -236,12 +242,15 @@ export declare const actionUnlockAllElements: {
|
|
|
236
242
|
editingFrame: string | null;
|
|
237
243
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
238
244
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
239
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
240
245
|
activeTool: {
|
|
241
246
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
242
247
|
locked: boolean;
|
|
243
248
|
fromSelection: boolean;
|
|
244
249
|
} & import("../types").ActiveTool;
|
|
250
|
+
preferredSelectionTool: {
|
|
251
|
+
type: "selection" | "lasso";
|
|
252
|
+
initialized: boolean;
|
|
253
|
+
};
|
|
245
254
|
penMode: boolean;
|
|
246
255
|
penDetected: boolean;
|
|
247
256
|
exportBackground: boolean;
|
|
@@ -274,8 +283,8 @@ export declare const actionUnlockAllElements: {
|
|
|
274
283
|
zoom: Readonly<{
|
|
275
284
|
value: import("../types").NormalizedZoomValue;
|
|
276
285
|
}>;
|
|
277
|
-
openMenu: "canvas" |
|
|
278
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
286
|
+
openMenu: "canvas" | null;
|
|
287
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
279
288
|
openSidebar: {
|
|
280
289
|
name: string;
|
|
281
290
|
tab?: string | undefined;
|
|
@@ -287,6 +296,8 @@ export declare const actionUnlockAllElements: {
|
|
|
287
296
|
tab: "mermaid" | "text-to-diagram";
|
|
288
297
|
} | {
|
|
289
298
|
name: "commandPalette";
|
|
299
|
+
} | {
|
|
300
|
+
name: "settings";
|
|
290
301
|
} | {
|
|
291
302
|
name: "elementLinkSelector";
|
|
292
303
|
sourceElementId: string;
|
|
@@ -350,7 +361,7 @@ export declare const actionUnlockAllElements: {
|
|
|
350
361
|
shown: true;
|
|
351
362
|
data: import("../charts").Spreadsheet;
|
|
352
363
|
};
|
|
353
|
-
showHyperlinkPopup: false | "
|
|
364
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
354
365
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
355
366
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
356
367
|
originSnapOffset: {
|
|
@@ -366,6 +377,7 @@ export declare const actionUnlockAllElements: {
|
|
|
366
377
|
focusedId: string | null;
|
|
367
378
|
matches: readonly import("../types").SearchMatch[];
|
|
368
379
|
}> | null;
|
|
380
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
369
381
|
};
|
|
370
382
|
captureUpdate: "IMMEDIATELY";
|
|
371
383
|
};
|
|
@@ -6,7 +6,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
6
6
|
};
|
|
7
7
|
target: string;
|
|
8
8
|
label: string;
|
|
9
|
-
perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _:
|
|
9
|
+
perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
10
10
|
elements: readonly import("../../element/src/types").OrderedExcalidrawElement[];
|
|
11
11
|
appState: {
|
|
12
12
|
activeTool: {
|
|
@@ -32,7 +32,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
32
32
|
selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
|
|
33
33
|
isBindingEnabled: boolean;
|
|
34
34
|
startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
|
|
35
|
-
|
|
35
|
+
suggestedBinding: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
|
|
36
36
|
frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
|
|
37
37
|
frameRendering: {
|
|
38
38
|
enabled: boolean;
|
|
@@ -43,7 +43,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
43
43
|
editingFrame: string | null;
|
|
44
44
|
elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
|
|
45
45
|
editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
|
|
46
|
-
|
|
46
|
+
preferredSelectionTool: {
|
|
47
|
+
type: "selection" | "lasso";
|
|
48
|
+
initialized: boolean;
|
|
49
|
+
};
|
|
47
50
|
penMode: boolean;
|
|
48
51
|
penDetected: boolean;
|
|
49
52
|
exportBackground: boolean;
|
|
@@ -76,8 +79,8 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
76
79
|
zoom: Readonly<{
|
|
77
80
|
value: import("../types").NormalizedZoomValue;
|
|
78
81
|
}>;
|
|
79
|
-
openMenu: "canvas" |
|
|
80
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
82
|
+
openMenu: "canvas" | null;
|
|
83
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
81
84
|
openSidebar: {
|
|
82
85
|
name: string;
|
|
83
86
|
tab?: string | undefined;
|
|
@@ -89,6 +92,8 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
89
92
|
tab: "mermaid" | "text-to-diagram";
|
|
90
93
|
} | {
|
|
91
94
|
name: "commandPalette";
|
|
95
|
+
} | {
|
|
96
|
+
name: "settings";
|
|
92
97
|
} | {
|
|
93
98
|
name: "elementLinkSelector";
|
|
94
99
|
sourceElementId: string;
|
|
@@ -158,7 +163,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
158
163
|
shown: true;
|
|
159
164
|
data: import("../charts").Spreadsheet;
|
|
160
165
|
};
|
|
161
|
-
showHyperlinkPopup: false | "
|
|
166
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
162
167
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
163
168
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
164
169
|
originSnapOffset: {
|
|
@@ -178,6 +183,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
178
183
|
lockedMultiSelections: {
|
|
179
184
|
[groupId: string]: true;
|
|
180
185
|
};
|
|
186
|
+
bindMode: import("../../element/src/types").BindMode;
|
|
181
187
|
};
|
|
182
188
|
captureUpdate: "EVENTUALLY";
|
|
183
189
|
};
|