@excalidraw/math 0.18.0-9ba0f5d → 0.18.0-a9ca16e
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 +116 -125
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +1 -1
- package/dist/types/common/debug.d.ts +21 -0
- package/dist/types/common/src/appEventBus.d.ts +27 -0
- package/dist/types/common/src/colors.d.ts +1 -1
- package/dist/types/common/src/constants.d.ts +4 -0
- package/dist/types/common/src/index.d.ts +3 -0
- package/dist/types/common/src/utils.d.ts +4 -7
- package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
- package/dist/types/element/src/Scene.d.ts +2 -0
- package/dist/types/element/src/arrowheads.d.ts +3 -0
- package/dist/types/element/src/arrows/focus.d.ts +27 -0
- package/dist/types/element/src/arrows/helpers.d.ts +5 -0
- package/dist/types/element/src/binding.d.ts +13 -8
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/element/src/collision.d.ts +4 -3
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/elbowArrow.d.ts +2 -0
- package/dist/types/element/src/index.d.ts +3 -0
- package/dist/types/element/src/linearElementEditor.d.ts +5 -0
- package/dist/types/element/src/mutateElement.d.ts +2 -0
- package/dist/types/element/src/selection.d.ts +5 -1
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/textWrapping.d.ts +26 -0
- package/dist/types/element/src/types.d.ts +5 -2
- package/dist/types/element/src/utils.d.ts +5 -3
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +38 -35
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +27 -25
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +157 -145
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +26 -24
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +41 -36
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +9 -12
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +26 -24
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionExport.d.ts +75 -347
- package/dist/types/excalidraw/actions/actionFrame.d.ts +52 -48
- package/dist/types/excalidraw/actions/actionGroup.d.ts +27 -25
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +15 -12
- package/dist/types/excalidraw/actions/actionLink.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionMenu.d.ts +9 -12
- package/dist/types/excalidraw/actions/actionProperties.d.ts +28 -26
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -11
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +9 -12
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/index.d.ts +2 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +9 -7
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +7 -0
- package/dist/types/excalidraw/clipboard.d.ts +6 -7
- package/dist/types/excalidraw/components/App.d.ts +53 -13
- package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
- package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
- package/dist/types/excalidraw/components/Range.d.ts +10 -4
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +2 -6
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +11 -7
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +4 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
- package/dist/types/excalidraw/components/Toast.d.ts +8 -4
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -16
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +3 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +11 -12
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
- package/dist/types/excalidraw/components/icons.d.ts +23 -9
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +17 -0
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -14
- package/dist/types/excalidraw/components/shapes.d.ts +74 -1
- package/dist/types/excalidraw/data/blob.d.ts +45 -44
- package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
- package/dist/types/excalidraw/data/index.d.ts +2 -3
- package/dist/types/excalidraw/data/json.d.ts +37 -28
- package/dist/types/excalidraw/data/resave.d.ts +7 -2
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +93 -16
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +5 -1
- package/dist/types/math/src/point.d.ts +7 -2
- package/dist/types/math/src/types.d.ts +25 -1
- package/package.json +2 -2
- package/dist/types/excalidraw/charts.d.ts +0 -27
- package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
- package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +0 -24
- package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -11
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -84
- package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
- package/dist/types/excalidraw/index.d.ts +0 -46
- package/dist/types/excalidraw/polyfill.d.ts +0 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { Theme } from "@excalidraw/element/types";
|
|
1
|
+
import type { ExcalidrawElement, Theme } from "@excalidraw/element/types";
|
|
2
2
|
import "../components/ToolIcon.scss";
|
|
3
|
-
import type { AppState } from "../types";
|
|
3
|
+
import type { AppClassProperties, AppState, BinaryFiles, ExcalidrawProps } from "../types";
|
|
4
4
|
export declare const actionChangeProjectName: import("./types").Action<string | null> & {
|
|
5
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly
|
|
5
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
6
6
|
};
|
|
7
7
|
export declare const actionChangeExportScale: import("./types").Action<number> & {
|
|
8
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly
|
|
8
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
9
9
|
};
|
|
10
10
|
export declare const actionChangeExportBackground: import("./types").Action<boolean> & {
|
|
11
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly
|
|
11
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
12
12
|
};
|
|
13
13
|
export declare const actionChangeExportEmbedScene: import("./types").Action<boolean> & {
|
|
14
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly
|
|
14
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
15
15
|
};
|
|
16
16
|
export declare const actionSaveToActiveFile: {
|
|
17
17
|
name: "saveToActiveFile";
|
|
@@ -20,166 +20,22 @@ export declare const actionSaveToActiveFile: {
|
|
|
20
20
|
trackEvent: {
|
|
21
21
|
category: "export";
|
|
22
22
|
};
|
|
23
|
-
predicate: (elements: readonly
|
|
24
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app:
|
|
25
|
-
captureUpdate: "
|
|
23
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
24
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => Promise<false | {
|
|
25
|
+
captureUpdate: "NEVER";
|
|
26
26
|
appState: {
|
|
27
|
-
fileHandle:
|
|
27
|
+
fileHandle: FileSystemFileHandle | null;
|
|
28
28
|
toast: {
|
|
29
29
|
message: string;
|
|
30
|
-
|
|
31
|
-
contextMenu: {
|
|
32
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
33
|
-
top: number;
|
|
34
|
-
left: number;
|
|
35
|
-
} | null;
|
|
36
|
-
showWelcomeScreen: boolean;
|
|
37
|
-
isLoading: boolean;
|
|
38
|
-
errorMessage: React.ReactNode;
|
|
39
|
-
activeEmbeddable: {
|
|
40
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
41
|
-
state: "hover" | "active";
|
|
42
|
-
} | null;
|
|
43
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
44
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
45
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
46
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
47
|
-
isBindingEnabled: boolean;
|
|
48
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
49
|
-
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
50
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
51
|
-
frameRendering: {
|
|
52
|
-
enabled: boolean;
|
|
53
|
-
name: boolean;
|
|
54
|
-
outline: boolean;
|
|
55
|
-
clip: boolean;
|
|
56
|
-
};
|
|
57
|
-
editingFrame: string | null;
|
|
58
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
59
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
60
|
-
activeTool: {
|
|
61
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
62
|
-
locked: boolean;
|
|
63
|
-
fromSelection: boolean;
|
|
64
|
-
} & import("../types").ActiveTool;
|
|
65
|
-
preferredSelectionTool: {
|
|
66
|
-
type: "selection" | "lasso";
|
|
67
|
-
initialized: boolean;
|
|
68
|
-
};
|
|
69
|
-
penMode: boolean;
|
|
70
|
-
penDetected: boolean;
|
|
71
|
-
exportBackground: boolean;
|
|
72
|
-
exportEmbedScene: boolean;
|
|
73
|
-
exportWithDarkMode: boolean;
|
|
74
|
-
exportScale: number;
|
|
75
|
-
currentItemStrokeColor: string;
|
|
76
|
-
currentItemBackgroundColor: string;
|
|
77
|
-
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
78
|
-
currentItemStrokeWidth: number;
|
|
79
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
80
|
-
currentItemRoughness: number;
|
|
81
|
-
currentItemOpacity: number;
|
|
82
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
83
|
-
currentItemFontSize: number;
|
|
84
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
85
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
86
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
87
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
88
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
89
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
90
|
-
viewBackgroundColor: string;
|
|
91
|
-
scrollX: number;
|
|
92
|
-
scrollY: number;
|
|
93
|
-
cursorButton: "up" | "down";
|
|
94
|
-
scrolledOutside: boolean;
|
|
95
|
-
name: string | null;
|
|
96
|
-
isResizing: boolean;
|
|
97
|
-
isRotating: boolean;
|
|
98
|
-
zoom: import("../types").Zoom;
|
|
99
|
-
openMenu: "canvas" | null;
|
|
100
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
101
|
-
openSidebar: {
|
|
102
|
-
name: import("../types").SidebarName;
|
|
103
|
-
tab?: import("../types").SidebarTabName;
|
|
104
|
-
} | null;
|
|
105
|
-
openDialog: null | {
|
|
106
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
107
|
-
} | {
|
|
108
|
-
name: "ttd";
|
|
109
|
-
tab: "text-to-diagram" | "mermaid";
|
|
110
|
-
} | {
|
|
111
|
-
name: "commandPalette";
|
|
112
|
-
} | {
|
|
113
|
-
name: "settings";
|
|
114
|
-
} | {
|
|
115
|
-
name: "elementLinkSelector";
|
|
116
|
-
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
30
|
+
duration: number;
|
|
117
31
|
};
|
|
118
|
-
defaultSidebarDockedPreference: boolean;
|
|
119
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
120
|
-
selectedElementIds: Readonly<{
|
|
121
|
-
[id: string]: true;
|
|
122
|
-
}>;
|
|
123
|
-
hoveredElementIds: Readonly<{
|
|
124
|
-
[id: string]: true;
|
|
125
|
-
}>;
|
|
126
|
-
previousSelectedElementIds: {
|
|
127
|
-
[id: string]: true;
|
|
128
|
-
};
|
|
129
|
-
selectedElementsAreBeingDragged: boolean;
|
|
130
|
-
shouldCacheIgnoreZoom: boolean;
|
|
131
|
-
zenModeEnabled: boolean;
|
|
132
|
-
theme: Theme;
|
|
133
|
-
gridSize: number;
|
|
134
|
-
gridStep: number;
|
|
135
|
-
gridModeEnabled: boolean;
|
|
136
|
-
viewModeEnabled: boolean;
|
|
137
|
-
selectedGroupIds: {
|
|
138
|
-
[groupId: string]: boolean;
|
|
139
|
-
};
|
|
140
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
141
|
-
width: number;
|
|
142
|
-
height: number;
|
|
143
|
-
offsetTop: number;
|
|
144
|
-
offsetLeft: number;
|
|
145
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
146
|
-
stats: {
|
|
147
|
-
open: boolean;
|
|
148
|
-
panels: number;
|
|
149
|
-
};
|
|
150
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
151
|
-
pasteDialog: {
|
|
152
|
-
shown: false;
|
|
153
|
-
data: null;
|
|
154
|
-
} | {
|
|
155
|
-
shown: true;
|
|
156
|
-
data: import("../charts").Spreadsheet;
|
|
157
|
-
};
|
|
158
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
159
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
160
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
161
|
-
originSnapOffset: {
|
|
162
|
-
x: number;
|
|
163
|
-
y: number;
|
|
164
|
-
} | null;
|
|
165
|
-
objectsSnapModeEnabled: boolean;
|
|
166
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
167
|
-
followedBy: Set<import("../types").SocketId>;
|
|
168
|
-
isCropping: boolean;
|
|
169
|
-
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
170
|
-
searchMatches: Readonly<{
|
|
171
|
-
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
172
|
-
matches: readonly import("../types").SearchMatch[];
|
|
173
|
-
}> | null;
|
|
174
|
-
activeLockedId: string | null;
|
|
175
|
-
lockedMultiSelections: {
|
|
176
|
-
[groupId: string]: true;
|
|
177
|
-
};
|
|
178
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
179
32
|
};
|
|
180
33
|
} | {
|
|
181
|
-
captureUpdate: "
|
|
182
|
-
appState
|
|
34
|
+
captureUpdate: "NEVER";
|
|
35
|
+
appState: {
|
|
36
|
+
toast: null;
|
|
37
|
+
fileHandle?: undefined;
|
|
38
|
+
};
|
|
183
39
|
}>;
|
|
184
40
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
185
41
|
} & {
|
|
@@ -193,153 +49,23 @@ export declare const actionSaveFileToDisk: {
|
|
|
193
49
|
trackEvent: {
|
|
194
50
|
category: "export";
|
|
195
51
|
};
|
|
196
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app:
|
|
197
|
-
captureUpdate: "
|
|
52
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => Promise<false | {
|
|
53
|
+
captureUpdate: "NEVER";
|
|
198
54
|
appState: {
|
|
199
55
|
openDialog: null;
|
|
200
|
-
fileHandle:
|
|
56
|
+
fileHandle: FileSystemFileHandle | null;
|
|
201
57
|
toast: {
|
|
202
58
|
message: string;
|
|
59
|
+
duration: number;
|
|
203
60
|
};
|
|
204
|
-
contextMenu: {
|
|
205
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
206
|
-
top: number;
|
|
207
|
-
left: number;
|
|
208
|
-
} | null;
|
|
209
|
-
showWelcomeScreen: boolean;
|
|
210
|
-
isLoading: boolean;
|
|
211
|
-
errorMessage: React.ReactNode;
|
|
212
|
-
activeEmbeddable: {
|
|
213
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
214
|
-
state: "hover" | "active";
|
|
215
|
-
} | null;
|
|
216
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
217
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
218
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
219
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
220
|
-
isBindingEnabled: boolean;
|
|
221
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
222
|
-
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
223
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
224
|
-
frameRendering: {
|
|
225
|
-
enabled: boolean;
|
|
226
|
-
name: boolean;
|
|
227
|
-
outline: boolean;
|
|
228
|
-
clip: boolean;
|
|
229
|
-
};
|
|
230
|
-
editingFrame: string | null;
|
|
231
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
232
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
233
|
-
activeTool: {
|
|
234
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
235
|
-
locked: boolean;
|
|
236
|
-
fromSelection: boolean;
|
|
237
|
-
} & import("../types").ActiveTool;
|
|
238
|
-
preferredSelectionTool: {
|
|
239
|
-
type: "selection" | "lasso";
|
|
240
|
-
initialized: boolean;
|
|
241
|
-
};
|
|
242
|
-
penMode: boolean;
|
|
243
|
-
penDetected: boolean;
|
|
244
|
-
exportBackground: boolean;
|
|
245
|
-
exportEmbedScene: boolean;
|
|
246
|
-
exportWithDarkMode: boolean;
|
|
247
|
-
exportScale: number;
|
|
248
|
-
currentItemStrokeColor: string;
|
|
249
|
-
currentItemBackgroundColor: string;
|
|
250
|
-
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
251
|
-
currentItemStrokeWidth: number;
|
|
252
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
253
|
-
currentItemRoughness: number;
|
|
254
|
-
currentItemOpacity: number;
|
|
255
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
256
|
-
currentItemFontSize: number;
|
|
257
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
258
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
259
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
260
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
261
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
262
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
263
|
-
viewBackgroundColor: string;
|
|
264
|
-
scrollX: number;
|
|
265
|
-
scrollY: number;
|
|
266
|
-
cursorButton: "up" | "down";
|
|
267
|
-
scrolledOutside: boolean;
|
|
268
|
-
name: string | null;
|
|
269
|
-
isResizing: boolean;
|
|
270
|
-
isRotating: boolean;
|
|
271
|
-
zoom: import("../types").Zoom;
|
|
272
|
-
openMenu: "canvas" | null;
|
|
273
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
274
|
-
openSidebar: {
|
|
275
|
-
name: import("../types").SidebarName;
|
|
276
|
-
tab?: import("../types").SidebarTabName;
|
|
277
|
-
} | null;
|
|
278
|
-
defaultSidebarDockedPreference: boolean;
|
|
279
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
280
|
-
selectedElementIds: Readonly<{
|
|
281
|
-
[id: string]: true;
|
|
282
|
-
}>;
|
|
283
|
-
hoveredElementIds: Readonly<{
|
|
284
|
-
[id: string]: true;
|
|
285
|
-
}>;
|
|
286
|
-
previousSelectedElementIds: {
|
|
287
|
-
[id: string]: true;
|
|
288
|
-
};
|
|
289
|
-
selectedElementsAreBeingDragged: boolean;
|
|
290
|
-
shouldCacheIgnoreZoom: boolean;
|
|
291
|
-
zenModeEnabled: boolean;
|
|
292
|
-
theme: Theme;
|
|
293
|
-
gridSize: number;
|
|
294
|
-
gridStep: number;
|
|
295
|
-
gridModeEnabled: boolean;
|
|
296
|
-
viewModeEnabled: boolean;
|
|
297
|
-
selectedGroupIds: {
|
|
298
|
-
[groupId: string]: boolean;
|
|
299
|
-
};
|
|
300
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
301
|
-
width: number;
|
|
302
|
-
height: number;
|
|
303
|
-
offsetTop: number;
|
|
304
|
-
offsetLeft: number;
|
|
305
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
306
|
-
stats: {
|
|
307
|
-
open: boolean;
|
|
308
|
-
panels: number;
|
|
309
|
-
};
|
|
310
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
311
|
-
pasteDialog: {
|
|
312
|
-
shown: false;
|
|
313
|
-
data: null;
|
|
314
|
-
} | {
|
|
315
|
-
shown: true;
|
|
316
|
-
data: import("../charts").Spreadsheet;
|
|
317
|
-
};
|
|
318
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
319
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
320
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
321
|
-
originSnapOffset: {
|
|
322
|
-
x: number;
|
|
323
|
-
y: number;
|
|
324
|
-
} | null;
|
|
325
|
-
objectsSnapModeEnabled: boolean;
|
|
326
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
327
|
-
followedBy: Set<import("../types").SocketId>;
|
|
328
|
-
isCropping: boolean;
|
|
329
|
-
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
330
|
-
searchMatches: Readonly<{
|
|
331
|
-
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
332
|
-
matches: readonly import("../types").SearchMatch[];
|
|
333
|
-
}> | null;
|
|
334
|
-
activeLockedId: string | null;
|
|
335
|
-
lockedMultiSelections: {
|
|
336
|
-
[groupId: string]: true;
|
|
337
|
-
};
|
|
338
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
339
61
|
};
|
|
340
62
|
} | {
|
|
341
|
-
captureUpdate: "
|
|
342
|
-
appState
|
|
63
|
+
captureUpdate: "NEVER";
|
|
64
|
+
appState: {
|
|
65
|
+
toast: null;
|
|
66
|
+
openDialog?: undefined;
|
|
67
|
+
fileHandle?: undefined;
|
|
68
|
+
};
|
|
343
69
|
}>;
|
|
344
70
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
345
71
|
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -352,8 +78,8 @@ export declare const actionLoadScene: {
|
|
|
352
78
|
trackEvent: {
|
|
353
79
|
category: "export";
|
|
354
80
|
};
|
|
355
|
-
predicate: (elements: readonly
|
|
356
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app:
|
|
81
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
82
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => Promise<false | {
|
|
357
83
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
358
84
|
appState: {
|
|
359
85
|
viewBackgroundColor: string;
|
|
@@ -380,13 +106,22 @@ export declare const actionLoadScene: {
|
|
|
380
106
|
name: "settings";
|
|
381
107
|
} | {
|
|
382
108
|
name: "elementLinkSelector";
|
|
383
|
-
sourceElementId:
|
|
109
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
110
|
+
} | {
|
|
111
|
+
name: "charts";
|
|
112
|
+
data: import("../charts").Spreadsheet;
|
|
113
|
+
rawText: string;
|
|
384
114
|
};
|
|
385
115
|
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
386
116
|
selectedElementIds: Readonly<{
|
|
387
117
|
[id: string]: true;
|
|
388
118
|
}>;
|
|
389
119
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
120
|
+
activeTool: {
|
|
121
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
122
|
+
locked: boolean;
|
|
123
|
+
fromSelection: boolean;
|
|
124
|
+
} & import("../types").ActiveTool;
|
|
390
125
|
activeEmbeddable: {
|
|
391
126
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
392
127
|
state: "hover" | "active";
|
|
@@ -399,17 +134,21 @@ export declare const actionLoadScene: {
|
|
|
399
134
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
400
135
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
401
136
|
isBindingEnabled: boolean;
|
|
402
|
-
|
|
137
|
+
isMidpointSnappingEnabled: boolean;
|
|
138
|
+
suggestedBinding: {
|
|
139
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
140
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
141
|
+
} | null;
|
|
403
142
|
isRotating: boolean;
|
|
404
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<
|
|
143
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
405
144
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
406
145
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
407
146
|
zenModeEnabled: boolean;
|
|
408
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
147
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
409
148
|
isCropping: boolean;
|
|
410
|
-
croppingElementId:
|
|
149
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
411
150
|
searchMatches: Readonly<{
|
|
412
|
-
focusedId:
|
|
151
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
413
152
|
matches: readonly import("../types").SearchMatch[];
|
|
414
153
|
}> | null;
|
|
415
154
|
activeLockedId: string | null;
|
|
@@ -418,6 +157,7 @@ export declare const actionLoadScene: {
|
|
|
418
157
|
}>;
|
|
419
158
|
shouldCacheIgnoreZoom: boolean;
|
|
420
159
|
exportScale: number;
|
|
160
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
421
161
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
422
162
|
gridSize: number;
|
|
423
163
|
contextMenu: {
|
|
@@ -429,13 +169,9 @@ export declare const actionLoadScene: {
|
|
|
429
169
|
isLoading: boolean;
|
|
430
170
|
errorMessage: React.ReactNode;
|
|
431
171
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
172
|
+
bindingPreference: "enabled" | "disabled";
|
|
432
173
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
433
174
|
editingFrame: string | null;
|
|
434
|
-
activeTool: {
|
|
435
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
436
|
-
locked: boolean;
|
|
437
|
-
fromSelection: boolean;
|
|
438
|
-
} & import("../types").ActiveTool;
|
|
439
175
|
preferredSelectionTool: {
|
|
440
176
|
type: "selection" | "lasso";
|
|
441
177
|
initialized: boolean;
|
|
@@ -447,9 +183,9 @@ export declare const actionLoadScene: {
|
|
|
447
183
|
exportWithDarkMode: boolean;
|
|
448
184
|
currentItemStrokeColor: string;
|
|
449
185
|
currentItemBackgroundColor: string;
|
|
450
|
-
currentItemFillStyle:
|
|
186
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
451
187
|
currentItemStrokeWidth: number;
|
|
452
|
-
currentItemStrokeStyle:
|
|
188
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
453
189
|
currentItemRoughness: number;
|
|
454
190
|
currentItemOpacity: number;
|
|
455
191
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
@@ -459,7 +195,6 @@ export declare const actionLoadScene: {
|
|
|
459
195
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
460
196
|
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
461
197
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
462
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
463
198
|
cursorButton: "up" | "down";
|
|
464
199
|
scrolledOutside: boolean;
|
|
465
200
|
isResizing: boolean;
|
|
@@ -476,25 +211,17 @@ export declare const actionLoadScene: {
|
|
|
476
211
|
};
|
|
477
212
|
selectedElementsAreBeingDragged: boolean;
|
|
478
213
|
toast: {
|
|
479
|
-
message:
|
|
214
|
+
message: React.ReactNode;
|
|
480
215
|
closable?: boolean;
|
|
481
216
|
duration?: number;
|
|
482
217
|
} | null;
|
|
483
218
|
gridStep: number;
|
|
484
219
|
gridModeEnabled: boolean;
|
|
485
|
-
fileHandle:
|
|
220
|
+
fileHandle: FileSystemFileHandle | null;
|
|
486
221
|
stats: {
|
|
487
222
|
open: boolean;
|
|
488
223
|
panels: number;
|
|
489
224
|
};
|
|
490
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
491
|
-
pasteDialog: {
|
|
492
|
-
shown: false;
|
|
493
|
-
data: null;
|
|
494
|
-
} | {
|
|
495
|
-
shown: true;
|
|
496
|
-
data: import("../charts").Spreadsheet;
|
|
497
|
-
};
|
|
498
225
|
showHyperlinkPopup: false | "info" | "editor";
|
|
499
226
|
originSnapOffset: {
|
|
500
227
|
x: number;
|
|
@@ -507,7 +234,7 @@ export declare const actionLoadScene: {
|
|
|
507
234
|
[groupId: string]: true;
|
|
508
235
|
};
|
|
509
236
|
};
|
|
510
|
-
files:
|
|
237
|
+
files: BinaryFiles;
|
|
511
238
|
captureUpdate: "IMMEDIATELY";
|
|
512
239
|
} | {
|
|
513
240
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
@@ -529,8 +256,13 @@ export declare const actionLoadScene: {
|
|
|
529
256
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
530
257
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
531
258
|
isBindingEnabled: boolean;
|
|
259
|
+
bindingPreference: "enabled" | "disabled";
|
|
260
|
+
isMidpointSnappingEnabled: boolean;
|
|
532
261
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
533
|
-
suggestedBinding:
|
|
262
|
+
suggestedBinding: {
|
|
263
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
264
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
265
|
+
} | null;
|
|
534
266
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
535
267
|
frameRendering: {
|
|
536
268
|
enabled: boolean;
|
|
@@ -539,8 +271,8 @@ export declare const actionLoadScene: {
|
|
|
539
271
|
clip: boolean;
|
|
540
272
|
};
|
|
541
273
|
editingFrame: string | null;
|
|
542
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<
|
|
543
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
274
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
275
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
544
276
|
activeTool: {
|
|
545
277
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
546
278
|
locked: boolean;
|
|
@@ -558,9 +290,9 @@ export declare const actionLoadScene: {
|
|
|
558
290
|
exportScale: number;
|
|
559
291
|
currentItemStrokeColor: string;
|
|
560
292
|
currentItemBackgroundColor: string;
|
|
561
|
-
currentItemFillStyle:
|
|
293
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
562
294
|
currentItemStrokeWidth: number;
|
|
563
|
-
currentItemStrokeStyle:
|
|
295
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
564
296
|
currentItemRoughness: number;
|
|
565
297
|
currentItemOpacity: number;
|
|
566
298
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
@@ -597,7 +329,11 @@ export declare const actionLoadScene: {
|
|
|
597
329
|
name: "settings";
|
|
598
330
|
} | {
|
|
599
331
|
name: "elementLinkSelector";
|
|
600
|
-
sourceElementId:
|
|
332
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
333
|
+
} | {
|
|
334
|
+
name: "charts";
|
|
335
|
+
data: import("../charts").Spreadsheet;
|
|
336
|
+
rawText: string;
|
|
601
337
|
};
|
|
602
338
|
defaultSidebarDockedPreference: boolean;
|
|
603
339
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -613,7 +349,7 @@ export declare const actionLoadScene: {
|
|
|
613
349
|
selectedElementsAreBeingDragged: boolean;
|
|
614
350
|
shouldCacheIgnoreZoom: boolean;
|
|
615
351
|
toast: {
|
|
616
|
-
message:
|
|
352
|
+
message: React.ReactNode;
|
|
617
353
|
closable?: boolean;
|
|
618
354
|
duration?: number;
|
|
619
355
|
} | null;
|
|
@@ -631,20 +367,12 @@ export declare const actionLoadScene: {
|
|
|
631
367
|
height: number;
|
|
632
368
|
offsetTop: number;
|
|
633
369
|
offsetLeft: number;
|
|
634
|
-
fileHandle:
|
|
370
|
+
fileHandle: FileSystemFileHandle | null;
|
|
635
371
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
636
372
|
stats: {
|
|
637
373
|
open: boolean;
|
|
638
374
|
panels: number;
|
|
639
375
|
};
|
|
640
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
641
|
-
pasteDialog: {
|
|
642
|
-
shown: false;
|
|
643
|
-
data: null;
|
|
644
|
-
} | {
|
|
645
|
-
shown: true;
|
|
646
|
-
data: import("../charts").Spreadsheet;
|
|
647
|
-
};
|
|
648
376
|
showHyperlinkPopup: false | "info" | "editor";
|
|
649
377
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
650
378
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -656,9 +384,9 @@ export declare const actionLoadScene: {
|
|
|
656
384
|
userToFollow: import("../types").UserToFollow | null;
|
|
657
385
|
followedBy: Set<import("../types").SocketId>;
|
|
658
386
|
isCropping: boolean;
|
|
659
|
-
croppingElementId:
|
|
387
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
660
388
|
searchMatches: Readonly<{
|
|
661
|
-
focusedId:
|
|
389
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
662
390
|
matches: readonly import("../types").SearchMatch[];
|
|
663
391
|
}> | null;
|
|
664
392
|
activeLockedId: string | null;
|
|
@@ -667,7 +395,7 @@ export declare const actionLoadScene: {
|
|
|
667
395
|
};
|
|
668
396
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
669
397
|
};
|
|
670
|
-
files:
|
|
398
|
+
files: BinaryFiles;
|
|
671
399
|
captureUpdate: "EVENTUALLY";
|
|
672
400
|
}>;
|
|
673
401
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -675,5 +403,5 @@ export declare const actionLoadScene: {
|
|
|
675
403
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
676
404
|
};
|
|
677
405
|
export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
|
|
678
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly
|
|
406
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
679
407
|
};
|