@zsviczian/excalidraw 0.18.0-53 → 0.18.0-55
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/excalidraw.development.js +56 -56
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +2 -2
- package/types/common/src/commonObsidianUtils.d.ts +6 -0
- package/types/common/src/constants.d.ts +1 -0
- package/types/common/src/editorInterface.d.ts +1 -1
- package/types/common/src/index.d.ts +1 -0
- package/types/common/src/utils.d.ts +7 -2
- package/types/common/src/visualdebug.d.ts +1 -1
- package/types/element/src/binding.d.ts +55 -44
- package/types/element/src/collision.d.ts +6 -2
- package/types/element/src/index.d.ts +0 -3
- package/types/element/src/linearElementEditor.d.ts +15 -18
- package/types/element/src/renderElement.d.ts +1 -1
- package/types/element/src/typeChecks.d.ts +2 -3
- package/types/element/src/types.d.ts +7 -11
- package/types/element/src/utils.d.ts +2 -1
- package/types/element/src/zindex.d.ts +7 -1
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +16 -7
- package/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/types/excalidraw/actions/actionBoundText.d.ts +13 -7
- package/types/excalidraw/actions/actionCanvas.d.ts +91 -286
- package/types/excalidraw/actions/actionClipboard.d.ts +34 -941
- package/types/excalidraw/actions/actionCropEditor.d.ts +6 -3
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +23 -16
- package/types/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
- package/types/excalidraw/actions/actionElementLink.d.ts +4 -3
- package/types/excalidraw/actions/actionElementLock.d.ts +11 -5
- package/types/excalidraw/actions/actionEmbeddable.d.ts +6 -3
- package/types/excalidraw/actions/actionExport.d.ts +43 -1149
- package/types/excalidraw/actions/actionFinalize.d.ts +10 -688
- package/types/excalidraw/actions/actionFlip.d.ts +2 -2
- package/types/excalidraw/actions/actionFrame.d.ts +26 -16
- package/types/excalidraw/actions/actionGroup.d.ts +12 -6
- package/types/excalidraw/actions/actionLinearEditor.d.ts +15 -16
- package/types/excalidraw/actions/actionLink.d.ts +5 -2
- package/types/excalidraw/actions/actionMenu.d.ts +3 -2
- package/types/excalidraw/actions/actionNavigate.d.ts +21 -445
- package/types/excalidraw/actions/actionProperties.d.ts +79 -2968
- package/types/excalidraw/actions/actionSelectAll.d.ts +6 -3
- package/types/excalidraw/actions/actionStyles.d.ts +7 -4
- package/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +5 -2
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -2
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +3 -2
- package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/types/excalidraw/actions/actionToggleStats.d.ts +5 -2
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -3
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -2
- package/types/excalidraw/actions/actionTrayMenu.d.ts +5 -2
- package/types/excalidraw/actions/actionZindex.d.ts +2 -2
- package/types/excalidraw/actions/manager.d.ts +1 -1
- package/types/excalidraw/actions/register.d.ts +1 -1
- package/types/excalidraw/actions/types.d.ts +3 -3
- package/types/excalidraw/appState.d.ts +4 -3
- package/types/excalidraw/components/App.d.ts +7 -3
- package/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
- package/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
- package/types/excalidraw/data/restore.d.ts +3 -3
- package/types/excalidraw/index.d.ts +3 -3
- package/types/excalidraw/obsidianUtils.d.ts +0 -5
- package/types/excalidraw/renderer/helpers.d.ts +1 -5
- package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/types/excalidraw/scene/types.d.ts +4 -0
- package/types/excalidraw/types.d.ts +15 -5
|
@@ -1,909 +1,17 @@
|
|
|
1
1
|
import type { Theme } from "@excalidraw/element/types";
|
|
2
2
|
import "../components/ToolIcon.scss";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
showWelcomeScreen: boolean;
|
|
16
|
-
isLoading: boolean;
|
|
17
|
-
errorMessage: import("react").ReactNode;
|
|
18
|
-
activeEmbeddable: {
|
|
19
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
20
|
-
state: "active" | "hover";
|
|
21
|
-
} | null;
|
|
22
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
23
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
24
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
25
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
26
|
-
isBindingEnabled: boolean;
|
|
27
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
28
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
29
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
30
|
-
frameRendering: {
|
|
31
|
-
enabled: boolean;
|
|
32
|
-
name: boolean;
|
|
33
|
-
outline: boolean;
|
|
34
|
-
clip: boolean;
|
|
35
|
-
markerName: boolean;
|
|
36
|
-
markerEnabled: boolean;
|
|
37
|
-
};
|
|
38
|
-
editingFrame: string | null;
|
|
39
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
40
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
|
-
activeTool: {
|
|
42
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
43
|
-
locked: boolean;
|
|
44
|
-
fromSelection: boolean;
|
|
45
|
-
} & import("../types").ActiveTool;
|
|
46
|
-
preferredSelectionTool: {
|
|
47
|
-
type: "selection" | "lasso";
|
|
48
|
-
initialized: boolean;
|
|
49
|
-
};
|
|
50
|
-
penMode: boolean;
|
|
51
|
-
penDetected: boolean;
|
|
52
|
-
exportBackground: boolean;
|
|
53
|
-
exportEmbedScene: boolean;
|
|
54
|
-
exportWithDarkMode: boolean;
|
|
55
|
-
exportScale: number;
|
|
56
|
-
currentItemStrokeColor: string;
|
|
57
|
-
currentItemBackgroundColor: string;
|
|
58
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
59
|
-
currentItemStrokeWidth: number;
|
|
60
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
61
|
-
currentItemRoughness: number;
|
|
62
|
-
currentItemOpacity: number;
|
|
63
|
-
currentItemFontFamily: number;
|
|
64
|
-
currentItemFontSize: number;
|
|
65
|
-
currentItemTextAlign: string;
|
|
66
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
67
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
68
|
-
currentHoveredFontFamily: number | null;
|
|
69
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
70
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
71
|
-
currentItemFrameRole: ("marker" | null) | undefined;
|
|
72
|
-
viewBackgroundColor: string;
|
|
73
|
-
scrollX: number;
|
|
74
|
-
scrollY: number;
|
|
75
|
-
cursorButton: "up" | "down";
|
|
76
|
-
scrolledOutside: boolean;
|
|
77
|
-
isResizing: boolean;
|
|
78
|
-
isRotating: boolean;
|
|
79
|
-
zoom: Readonly<{
|
|
80
|
-
value: import("../types").NormalizedZoomValue;
|
|
81
|
-
}>;
|
|
82
|
-
openMenu: "canvas" | "shape" | null;
|
|
83
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
84
|
-
openSidebar: {
|
|
85
|
-
name: string;
|
|
86
|
-
tab?: string | undefined;
|
|
87
|
-
} | null;
|
|
88
|
-
openDialog: {
|
|
89
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
90
|
-
} | {
|
|
91
|
-
name: "ttd";
|
|
92
|
-
tab: "mermaid" | "text-to-diagram";
|
|
93
|
-
} | {
|
|
94
|
-
name: "commandPalette";
|
|
95
|
-
} | {
|
|
96
|
-
name: "elementLinkSelector";
|
|
97
|
-
sourceElementId: string;
|
|
98
|
-
} | null;
|
|
99
|
-
defaultSidebarDockedPreference: boolean;
|
|
100
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
101
|
-
selectedElementIds: Readonly<{
|
|
102
|
-
[id: string]: true;
|
|
103
|
-
}>;
|
|
104
|
-
hoveredElementIds: Readonly<{
|
|
105
|
-
[id: string]: true;
|
|
106
|
-
}>;
|
|
107
|
-
previousSelectedElementIds: {
|
|
108
|
-
[id: string]: true;
|
|
109
|
-
};
|
|
110
|
-
selectedElementsAreBeingDragged: boolean;
|
|
111
|
-
shouldCacheIgnoreZoom: boolean;
|
|
112
|
-
toast: {
|
|
113
|
-
message: string;
|
|
114
|
-
closable?: boolean | undefined;
|
|
115
|
-
duration?: number | undefined;
|
|
116
|
-
} | null;
|
|
117
|
-
zenModeEnabled: boolean;
|
|
118
|
-
theme: Theme;
|
|
119
|
-
gridSize: number;
|
|
120
|
-
gridStep: number;
|
|
121
|
-
gridModeEnabled: boolean;
|
|
122
|
-
viewModeEnabled: boolean;
|
|
123
|
-
selectedGroupIds: {
|
|
124
|
-
[groupId: string]: boolean;
|
|
125
|
-
};
|
|
126
|
-
editingGroupId: string | null;
|
|
127
|
-
width: number;
|
|
128
|
-
height: number;
|
|
129
|
-
offsetTop: number;
|
|
130
|
-
offsetLeft: number;
|
|
131
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
132
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
133
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
134
|
-
button?: "up" | "down" | undefined;
|
|
135
|
-
selectedElementIds?: Readonly<{
|
|
136
|
-
[id: string]: true;
|
|
137
|
-
}> | undefined;
|
|
138
|
-
username?: string | null | undefined;
|
|
139
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
140
|
-
color?: {
|
|
141
|
-
background: string;
|
|
142
|
-
stroke: string;
|
|
143
|
-
} | undefined;
|
|
144
|
-
avatarUrl?: string | undefined;
|
|
145
|
-
id?: string | undefined;
|
|
146
|
-
socketId?: import("../types").SocketId | undefined;
|
|
147
|
-
isCurrentUser?: boolean | undefined;
|
|
148
|
-
isInCall?: boolean | undefined;
|
|
149
|
-
isSpeaking?: boolean | undefined;
|
|
150
|
-
isMuted?: boolean | undefined;
|
|
151
|
-
}>>;
|
|
152
|
-
stats: {
|
|
153
|
-
open: boolean;
|
|
154
|
-
panels: number;
|
|
155
|
-
};
|
|
156
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
157
|
-
pasteDialog: {
|
|
158
|
-
shown: false;
|
|
159
|
-
data: null;
|
|
160
|
-
} | {
|
|
161
|
-
shown: true;
|
|
162
|
-
data: import("../charts").Spreadsheet;
|
|
163
|
-
};
|
|
164
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
165
|
-
linkOpacity: number;
|
|
166
|
-
colorPalette?: {
|
|
167
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
168
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
169
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
170
|
-
topPicks: {
|
|
171
|
-
canvasBackground: [string, string, string, string, string];
|
|
172
|
-
elementStroke: [string, string, string, string, string];
|
|
173
|
-
elementBackground: [string, string, string, string, string];
|
|
174
|
-
};
|
|
175
|
-
} | undefined;
|
|
176
|
-
allowWheelZoom?: boolean | undefined;
|
|
177
|
-
allowPinchZoom?: boolean | undefined;
|
|
178
|
-
disableContextMenu: boolean;
|
|
179
|
-
pinnedScripts?: string[] | undefined;
|
|
180
|
-
customPens?: any[] | undefined;
|
|
181
|
-
currentStrokeOptions?: any;
|
|
182
|
-
resetCustomPen?: any;
|
|
183
|
-
gridColor: {
|
|
184
|
-
Bold: string;
|
|
185
|
-
Regular: string;
|
|
186
|
-
};
|
|
187
|
-
gridDirection: {
|
|
188
|
-
horizontal: boolean;
|
|
189
|
-
vertical: boolean;
|
|
190
|
-
};
|
|
191
|
-
highlightSearchResult: boolean;
|
|
192
|
-
dynamicStyle: {
|
|
193
|
-
[x: string]: string;
|
|
194
|
-
};
|
|
195
|
-
frameColor: {
|
|
196
|
-
stroke: string;
|
|
197
|
-
fill: string;
|
|
198
|
-
nameColor: string;
|
|
199
|
-
};
|
|
200
|
-
invertBindingBehaviour: boolean;
|
|
201
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
202
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
203
|
-
originSnapOffset: {
|
|
204
|
-
x: number;
|
|
205
|
-
y: number;
|
|
206
|
-
} | null;
|
|
207
|
-
objectsSnapModeEnabled: boolean;
|
|
208
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
209
|
-
followedBy: Set<import("../types").SocketId>;
|
|
210
|
-
isCropping: boolean;
|
|
211
|
-
croppingElementId: string | null;
|
|
212
|
-
searchMatches: Readonly<{
|
|
213
|
-
focusedId: string | null;
|
|
214
|
-
matches: readonly import("../types").SearchMatch[];
|
|
215
|
-
}> | null;
|
|
216
|
-
activeLockedId: string | null;
|
|
217
|
-
lockedMultiSelections: {
|
|
218
|
-
[groupId: string]: true;
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
captureUpdate: "EVENTUALLY";
|
|
222
|
-
};
|
|
223
|
-
PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
224
|
-
} & {
|
|
225
|
-
keyTest?: undefined;
|
|
226
|
-
};
|
|
227
|
-
export declare const actionChangeExportScale: {
|
|
228
|
-
name: "changeExportScale";
|
|
229
|
-
label: string;
|
|
230
|
-
trackEvent: {
|
|
231
|
-
category: "export";
|
|
232
|
-
action: string;
|
|
233
|
-
};
|
|
234
|
-
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
235
|
-
appState: {
|
|
236
|
-
exportScale: any;
|
|
237
|
-
contextMenu: {
|
|
238
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
239
|
-
top: number;
|
|
240
|
-
left: number;
|
|
241
|
-
} | null;
|
|
242
|
-
showWelcomeScreen: boolean;
|
|
243
|
-
isLoading: boolean;
|
|
244
|
-
errorMessage: import("react").ReactNode;
|
|
245
|
-
activeEmbeddable: {
|
|
246
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
247
|
-
state: "active" | "hover";
|
|
248
|
-
} | null;
|
|
249
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
250
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
251
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
252
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
253
|
-
isBindingEnabled: boolean;
|
|
254
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
255
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
256
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
257
|
-
frameRendering: {
|
|
258
|
-
enabled: boolean;
|
|
259
|
-
name: boolean;
|
|
260
|
-
outline: boolean;
|
|
261
|
-
clip: boolean;
|
|
262
|
-
markerName: boolean;
|
|
263
|
-
markerEnabled: boolean;
|
|
264
|
-
};
|
|
265
|
-
editingFrame: string | null;
|
|
266
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
267
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
268
|
-
activeTool: {
|
|
269
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
270
|
-
locked: boolean;
|
|
271
|
-
fromSelection: boolean;
|
|
272
|
-
} & import("../types").ActiveTool;
|
|
273
|
-
preferredSelectionTool: {
|
|
274
|
-
type: "selection" | "lasso";
|
|
275
|
-
initialized: boolean;
|
|
276
|
-
};
|
|
277
|
-
penMode: boolean;
|
|
278
|
-
penDetected: boolean;
|
|
279
|
-
exportBackground: boolean;
|
|
280
|
-
exportEmbedScene: boolean;
|
|
281
|
-
exportWithDarkMode: boolean;
|
|
282
|
-
currentItemStrokeColor: string;
|
|
283
|
-
currentItemBackgroundColor: string;
|
|
284
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
285
|
-
currentItemStrokeWidth: number;
|
|
286
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
287
|
-
currentItemRoughness: number;
|
|
288
|
-
currentItemOpacity: number;
|
|
289
|
-
currentItemFontFamily: number;
|
|
290
|
-
currentItemFontSize: number;
|
|
291
|
-
currentItemTextAlign: string;
|
|
292
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
293
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
294
|
-
currentHoveredFontFamily: number | null;
|
|
295
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
296
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
297
|
-
currentItemFrameRole: ("marker" | null) | undefined;
|
|
298
|
-
viewBackgroundColor: string;
|
|
299
|
-
scrollX: number;
|
|
300
|
-
scrollY: number;
|
|
301
|
-
cursorButton: "up" | "down";
|
|
302
|
-
scrolledOutside: boolean;
|
|
303
|
-
name: string | null;
|
|
304
|
-
isResizing: boolean;
|
|
305
|
-
isRotating: boolean;
|
|
306
|
-
zoom: Readonly<{
|
|
307
|
-
value: import("../types").NormalizedZoomValue;
|
|
308
|
-
}>;
|
|
309
|
-
openMenu: "canvas" | "shape" | null;
|
|
310
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
311
|
-
openSidebar: {
|
|
312
|
-
name: string;
|
|
313
|
-
tab?: string | undefined;
|
|
314
|
-
} | null;
|
|
315
|
-
openDialog: {
|
|
316
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
317
|
-
} | {
|
|
318
|
-
name: "ttd";
|
|
319
|
-
tab: "mermaid" | "text-to-diagram";
|
|
320
|
-
} | {
|
|
321
|
-
name: "commandPalette";
|
|
322
|
-
} | {
|
|
323
|
-
name: "elementLinkSelector";
|
|
324
|
-
sourceElementId: string;
|
|
325
|
-
} | null;
|
|
326
|
-
defaultSidebarDockedPreference: boolean;
|
|
327
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
328
|
-
selectedElementIds: Readonly<{
|
|
329
|
-
[id: string]: true;
|
|
330
|
-
}>;
|
|
331
|
-
hoveredElementIds: Readonly<{
|
|
332
|
-
[id: string]: true;
|
|
333
|
-
}>;
|
|
334
|
-
previousSelectedElementIds: {
|
|
335
|
-
[id: string]: true;
|
|
336
|
-
};
|
|
337
|
-
selectedElementsAreBeingDragged: boolean;
|
|
338
|
-
shouldCacheIgnoreZoom: boolean;
|
|
339
|
-
toast: {
|
|
340
|
-
message: string;
|
|
341
|
-
closable?: boolean | undefined;
|
|
342
|
-
duration?: number | undefined;
|
|
343
|
-
} | null;
|
|
344
|
-
zenModeEnabled: boolean;
|
|
345
|
-
theme: Theme;
|
|
346
|
-
gridSize: number;
|
|
347
|
-
gridStep: number;
|
|
348
|
-
gridModeEnabled: boolean;
|
|
349
|
-
viewModeEnabled: boolean;
|
|
350
|
-
selectedGroupIds: {
|
|
351
|
-
[groupId: string]: boolean;
|
|
352
|
-
};
|
|
353
|
-
editingGroupId: string | null;
|
|
354
|
-
width: number;
|
|
355
|
-
height: number;
|
|
356
|
-
offsetTop: number;
|
|
357
|
-
offsetLeft: number;
|
|
358
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
359
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
360
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
361
|
-
button?: "up" | "down" | undefined;
|
|
362
|
-
selectedElementIds?: Readonly<{
|
|
363
|
-
[id: string]: true;
|
|
364
|
-
}> | undefined;
|
|
365
|
-
username?: string | null | undefined;
|
|
366
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
367
|
-
color?: {
|
|
368
|
-
background: string;
|
|
369
|
-
stroke: string;
|
|
370
|
-
} | undefined;
|
|
371
|
-
avatarUrl?: string | undefined;
|
|
372
|
-
id?: string | undefined;
|
|
373
|
-
socketId?: import("../types").SocketId | undefined;
|
|
374
|
-
isCurrentUser?: boolean | undefined;
|
|
375
|
-
isInCall?: boolean | undefined;
|
|
376
|
-
isSpeaking?: boolean | undefined;
|
|
377
|
-
isMuted?: boolean | undefined;
|
|
378
|
-
}>>;
|
|
379
|
-
stats: {
|
|
380
|
-
open: boolean;
|
|
381
|
-
panels: number;
|
|
382
|
-
};
|
|
383
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
384
|
-
pasteDialog: {
|
|
385
|
-
shown: false;
|
|
386
|
-
data: null;
|
|
387
|
-
} | {
|
|
388
|
-
shown: true;
|
|
389
|
-
data: import("../charts").Spreadsheet;
|
|
390
|
-
};
|
|
391
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
392
|
-
linkOpacity: number;
|
|
393
|
-
colorPalette?: {
|
|
394
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
395
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
396
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
397
|
-
topPicks: {
|
|
398
|
-
canvasBackground: [string, string, string, string, string];
|
|
399
|
-
elementStroke: [string, string, string, string, string];
|
|
400
|
-
elementBackground: [string, string, string, string, string];
|
|
401
|
-
};
|
|
402
|
-
} | undefined;
|
|
403
|
-
allowWheelZoom?: boolean | undefined;
|
|
404
|
-
allowPinchZoom?: boolean | undefined;
|
|
405
|
-
disableContextMenu: boolean;
|
|
406
|
-
pinnedScripts?: string[] | undefined;
|
|
407
|
-
customPens?: any[] | undefined;
|
|
408
|
-
currentStrokeOptions?: any;
|
|
409
|
-
resetCustomPen?: any;
|
|
410
|
-
gridColor: {
|
|
411
|
-
Bold: string;
|
|
412
|
-
Regular: string;
|
|
413
|
-
};
|
|
414
|
-
gridDirection: {
|
|
415
|
-
horizontal: boolean;
|
|
416
|
-
vertical: boolean;
|
|
417
|
-
};
|
|
418
|
-
highlightSearchResult: boolean;
|
|
419
|
-
dynamicStyle: {
|
|
420
|
-
[x: string]: string;
|
|
421
|
-
};
|
|
422
|
-
frameColor: {
|
|
423
|
-
stroke: string;
|
|
424
|
-
fill: string;
|
|
425
|
-
nameColor: string;
|
|
426
|
-
};
|
|
427
|
-
invertBindingBehaviour: boolean;
|
|
428
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
429
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
430
|
-
originSnapOffset: {
|
|
431
|
-
x: number;
|
|
432
|
-
y: number;
|
|
433
|
-
} | null;
|
|
434
|
-
objectsSnapModeEnabled: boolean;
|
|
435
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
436
|
-
followedBy: Set<import("../types").SocketId>;
|
|
437
|
-
isCropping: boolean;
|
|
438
|
-
croppingElementId: string | null;
|
|
439
|
-
searchMatches: Readonly<{
|
|
440
|
-
focusedId: string | null;
|
|
441
|
-
matches: readonly import("../types").SearchMatch[];
|
|
442
|
-
}> | null;
|
|
443
|
-
activeLockedId: string | null;
|
|
444
|
-
lockedMultiSelections: {
|
|
445
|
-
[groupId: string]: true;
|
|
446
|
-
};
|
|
447
|
-
};
|
|
448
|
-
captureUpdate: "EVENTUALLY";
|
|
449
|
-
};
|
|
450
|
-
PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
451
|
-
} & {
|
|
452
|
-
keyTest?: undefined;
|
|
453
|
-
};
|
|
454
|
-
export declare const actionChangeExportBackground: {
|
|
455
|
-
name: "changeExportBackground";
|
|
456
|
-
label: string;
|
|
457
|
-
trackEvent: {
|
|
458
|
-
category: "export";
|
|
459
|
-
action: string;
|
|
460
|
-
};
|
|
461
|
-
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
462
|
-
appState: {
|
|
463
|
-
exportBackground: any;
|
|
464
|
-
contextMenu: {
|
|
465
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
466
|
-
top: number;
|
|
467
|
-
left: number;
|
|
468
|
-
} | null;
|
|
469
|
-
showWelcomeScreen: boolean;
|
|
470
|
-
isLoading: boolean;
|
|
471
|
-
errorMessage: import("react").ReactNode;
|
|
472
|
-
activeEmbeddable: {
|
|
473
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
474
|
-
state: "active" | "hover";
|
|
475
|
-
} | null;
|
|
476
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
477
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
478
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
479
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
480
|
-
isBindingEnabled: boolean;
|
|
481
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
482
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
483
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
484
|
-
frameRendering: {
|
|
485
|
-
enabled: boolean;
|
|
486
|
-
name: boolean;
|
|
487
|
-
outline: boolean;
|
|
488
|
-
clip: boolean;
|
|
489
|
-
markerName: boolean;
|
|
490
|
-
markerEnabled: boolean;
|
|
491
|
-
};
|
|
492
|
-
editingFrame: string | null;
|
|
493
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
494
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
495
|
-
activeTool: {
|
|
496
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
497
|
-
locked: boolean;
|
|
498
|
-
fromSelection: boolean;
|
|
499
|
-
} & import("../types").ActiveTool;
|
|
500
|
-
preferredSelectionTool: {
|
|
501
|
-
type: "selection" | "lasso";
|
|
502
|
-
initialized: boolean;
|
|
503
|
-
};
|
|
504
|
-
penMode: boolean;
|
|
505
|
-
penDetected: boolean;
|
|
506
|
-
exportEmbedScene: boolean;
|
|
507
|
-
exportWithDarkMode: boolean;
|
|
508
|
-
exportScale: number;
|
|
509
|
-
currentItemStrokeColor: string;
|
|
510
|
-
currentItemBackgroundColor: string;
|
|
511
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
512
|
-
currentItemStrokeWidth: number;
|
|
513
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
514
|
-
currentItemRoughness: number;
|
|
515
|
-
currentItemOpacity: number;
|
|
516
|
-
currentItemFontFamily: number;
|
|
517
|
-
currentItemFontSize: number;
|
|
518
|
-
currentItemTextAlign: string;
|
|
519
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
520
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
521
|
-
currentHoveredFontFamily: number | null;
|
|
522
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
523
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
524
|
-
currentItemFrameRole: ("marker" | null) | undefined;
|
|
525
|
-
viewBackgroundColor: string;
|
|
526
|
-
scrollX: number;
|
|
527
|
-
scrollY: number;
|
|
528
|
-
cursorButton: "up" | "down";
|
|
529
|
-
scrolledOutside: boolean;
|
|
530
|
-
name: string | null;
|
|
531
|
-
isResizing: boolean;
|
|
532
|
-
isRotating: boolean;
|
|
533
|
-
zoom: Readonly<{
|
|
534
|
-
value: import("../types").NormalizedZoomValue;
|
|
535
|
-
}>;
|
|
536
|
-
openMenu: "canvas" | "shape" | null;
|
|
537
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
538
|
-
openSidebar: {
|
|
539
|
-
name: string;
|
|
540
|
-
tab?: string | undefined;
|
|
541
|
-
} | null;
|
|
542
|
-
openDialog: {
|
|
543
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
544
|
-
} | {
|
|
545
|
-
name: "ttd";
|
|
546
|
-
tab: "mermaid" | "text-to-diagram";
|
|
547
|
-
} | {
|
|
548
|
-
name: "commandPalette";
|
|
549
|
-
} | {
|
|
550
|
-
name: "elementLinkSelector";
|
|
551
|
-
sourceElementId: string;
|
|
552
|
-
} | null;
|
|
553
|
-
defaultSidebarDockedPreference: boolean;
|
|
554
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
555
|
-
selectedElementIds: Readonly<{
|
|
556
|
-
[id: string]: true;
|
|
557
|
-
}>;
|
|
558
|
-
hoveredElementIds: Readonly<{
|
|
559
|
-
[id: string]: true;
|
|
560
|
-
}>;
|
|
561
|
-
previousSelectedElementIds: {
|
|
562
|
-
[id: string]: true;
|
|
563
|
-
};
|
|
564
|
-
selectedElementsAreBeingDragged: boolean;
|
|
565
|
-
shouldCacheIgnoreZoom: boolean;
|
|
566
|
-
toast: {
|
|
567
|
-
message: string;
|
|
568
|
-
closable?: boolean | undefined;
|
|
569
|
-
duration?: number | undefined;
|
|
570
|
-
} | null;
|
|
571
|
-
zenModeEnabled: boolean;
|
|
572
|
-
theme: Theme;
|
|
573
|
-
gridSize: number;
|
|
574
|
-
gridStep: number;
|
|
575
|
-
gridModeEnabled: boolean;
|
|
576
|
-
viewModeEnabled: boolean;
|
|
577
|
-
selectedGroupIds: {
|
|
578
|
-
[groupId: string]: boolean;
|
|
579
|
-
};
|
|
580
|
-
editingGroupId: string | null;
|
|
581
|
-
width: number;
|
|
582
|
-
height: number;
|
|
583
|
-
offsetTop: number;
|
|
584
|
-
offsetLeft: number;
|
|
585
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
586
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
587
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
588
|
-
button?: "up" | "down" | undefined;
|
|
589
|
-
selectedElementIds?: Readonly<{
|
|
590
|
-
[id: string]: true;
|
|
591
|
-
}> | undefined;
|
|
592
|
-
username?: string | null | undefined;
|
|
593
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
594
|
-
color?: {
|
|
595
|
-
background: string;
|
|
596
|
-
stroke: string;
|
|
597
|
-
} | undefined;
|
|
598
|
-
avatarUrl?: string | undefined;
|
|
599
|
-
id?: string | undefined;
|
|
600
|
-
socketId?: import("../types").SocketId | undefined;
|
|
601
|
-
isCurrentUser?: boolean | undefined;
|
|
602
|
-
isInCall?: boolean | undefined;
|
|
603
|
-
isSpeaking?: boolean | undefined;
|
|
604
|
-
isMuted?: boolean | undefined;
|
|
605
|
-
}>>;
|
|
606
|
-
stats: {
|
|
607
|
-
open: boolean;
|
|
608
|
-
panels: number;
|
|
609
|
-
};
|
|
610
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
611
|
-
pasteDialog: {
|
|
612
|
-
shown: false;
|
|
613
|
-
data: null;
|
|
614
|
-
} | {
|
|
615
|
-
shown: true;
|
|
616
|
-
data: import("../charts").Spreadsheet;
|
|
617
|
-
};
|
|
618
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
619
|
-
linkOpacity: number;
|
|
620
|
-
colorPalette?: {
|
|
621
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
622
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
623
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
624
|
-
topPicks: {
|
|
625
|
-
canvasBackground: [string, string, string, string, string];
|
|
626
|
-
elementStroke: [string, string, string, string, string];
|
|
627
|
-
elementBackground: [string, string, string, string, string];
|
|
628
|
-
};
|
|
629
|
-
} | undefined;
|
|
630
|
-
allowWheelZoom?: boolean | undefined;
|
|
631
|
-
allowPinchZoom?: boolean | undefined;
|
|
632
|
-
disableContextMenu: boolean;
|
|
633
|
-
pinnedScripts?: string[] | undefined;
|
|
634
|
-
customPens?: any[] | undefined;
|
|
635
|
-
currentStrokeOptions?: any;
|
|
636
|
-
resetCustomPen?: any;
|
|
637
|
-
gridColor: {
|
|
638
|
-
Bold: string;
|
|
639
|
-
Regular: string;
|
|
640
|
-
};
|
|
641
|
-
gridDirection: {
|
|
642
|
-
horizontal: boolean;
|
|
643
|
-
vertical: boolean;
|
|
644
|
-
};
|
|
645
|
-
highlightSearchResult: boolean;
|
|
646
|
-
dynamicStyle: {
|
|
647
|
-
[x: string]: string;
|
|
648
|
-
};
|
|
649
|
-
frameColor: {
|
|
650
|
-
stroke: string;
|
|
651
|
-
fill: string;
|
|
652
|
-
nameColor: string;
|
|
653
|
-
};
|
|
654
|
-
invertBindingBehaviour: boolean;
|
|
655
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
656
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
657
|
-
originSnapOffset: {
|
|
658
|
-
x: number;
|
|
659
|
-
y: number;
|
|
660
|
-
} | null;
|
|
661
|
-
objectsSnapModeEnabled: boolean;
|
|
662
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
663
|
-
followedBy: Set<import("../types").SocketId>;
|
|
664
|
-
isCropping: boolean;
|
|
665
|
-
croppingElementId: string | null;
|
|
666
|
-
searchMatches: Readonly<{
|
|
667
|
-
focusedId: string | null;
|
|
668
|
-
matches: readonly import("../types").SearchMatch[];
|
|
669
|
-
}> | null;
|
|
670
|
-
activeLockedId: string | null;
|
|
671
|
-
lockedMultiSelections: {
|
|
672
|
-
[groupId: string]: true;
|
|
673
|
-
};
|
|
674
|
-
};
|
|
675
|
-
captureUpdate: "EVENTUALLY";
|
|
676
|
-
};
|
|
677
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
678
|
-
} & {
|
|
679
|
-
keyTest?: undefined;
|
|
680
|
-
};
|
|
681
|
-
export declare const actionChangeExportEmbedScene: {
|
|
682
|
-
name: "changeExportEmbedScene";
|
|
683
|
-
label: string;
|
|
684
|
-
trackEvent: {
|
|
685
|
-
category: "export";
|
|
686
|
-
action: string;
|
|
687
|
-
};
|
|
688
|
-
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
689
|
-
appState: {
|
|
690
|
-
exportEmbedScene: any;
|
|
691
|
-
contextMenu: {
|
|
692
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
693
|
-
top: number;
|
|
694
|
-
left: number;
|
|
695
|
-
} | null;
|
|
696
|
-
showWelcomeScreen: boolean;
|
|
697
|
-
isLoading: boolean;
|
|
698
|
-
errorMessage: import("react").ReactNode;
|
|
699
|
-
activeEmbeddable: {
|
|
700
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
701
|
-
state: "active" | "hover";
|
|
702
|
-
} | null;
|
|
703
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
704
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
705
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
706
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
707
|
-
isBindingEnabled: boolean;
|
|
708
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
709
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
710
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
711
|
-
frameRendering: {
|
|
712
|
-
enabled: boolean;
|
|
713
|
-
name: boolean;
|
|
714
|
-
outline: boolean;
|
|
715
|
-
clip: boolean;
|
|
716
|
-
markerName: boolean;
|
|
717
|
-
markerEnabled: boolean;
|
|
718
|
-
};
|
|
719
|
-
editingFrame: string | null;
|
|
720
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
721
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
722
|
-
activeTool: {
|
|
723
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
724
|
-
locked: boolean;
|
|
725
|
-
fromSelection: boolean;
|
|
726
|
-
} & import("../types").ActiveTool;
|
|
727
|
-
preferredSelectionTool: {
|
|
728
|
-
type: "selection" | "lasso";
|
|
729
|
-
initialized: boolean;
|
|
730
|
-
};
|
|
731
|
-
penMode: boolean;
|
|
732
|
-
penDetected: boolean;
|
|
733
|
-
exportBackground: boolean;
|
|
734
|
-
exportWithDarkMode: boolean;
|
|
735
|
-
exportScale: number;
|
|
736
|
-
currentItemStrokeColor: string;
|
|
737
|
-
currentItemBackgroundColor: string;
|
|
738
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
739
|
-
currentItemStrokeWidth: number;
|
|
740
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
741
|
-
currentItemRoughness: number;
|
|
742
|
-
currentItemOpacity: number;
|
|
743
|
-
currentItemFontFamily: number;
|
|
744
|
-
currentItemFontSize: number;
|
|
745
|
-
currentItemTextAlign: string;
|
|
746
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
747
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
748
|
-
currentHoveredFontFamily: number | null;
|
|
749
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
750
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
751
|
-
currentItemFrameRole: ("marker" | null) | undefined;
|
|
752
|
-
viewBackgroundColor: string;
|
|
753
|
-
scrollX: number;
|
|
754
|
-
scrollY: number;
|
|
755
|
-
cursorButton: "up" | "down";
|
|
756
|
-
scrolledOutside: boolean;
|
|
757
|
-
name: string | null;
|
|
758
|
-
isResizing: boolean;
|
|
759
|
-
isRotating: boolean;
|
|
760
|
-
zoom: Readonly<{
|
|
761
|
-
value: import("../types").NormalizedZoomValue;
|
|
762
|
-
}>;
|
|
763
|
-
openMenu: "canvas" | "shape" | null;
|
|
764
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
765
|
-
openSidebar: {
|
|
766
|
-
name: string;
|
|
767
|
-
tab?: string | undefined;
|
|
768
|
-
} | null;
|
|
769
|
-
openDialog: {
|
|
770
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
771
|
-
} | {
|
|
772
|
-
name: "ttd";
|
|
773
|
-
tab: "mermaid" | "text-to-diagram";
|
|
774
|
-
} | {
|
|
775
|
-
name: "commandPalette";
|
|
776
|
-
} | {
|
|
777
|
-
name: "elementLinkSelector";
|
|
778
|
-
sourceElementId: string;
|
|
779
|
-
} | null;
|
|
780
|
-
defaultSidebarDockedPreference: boolean;
|
|
781
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
782
|
-
selectedElementIds: Readonly<{
|
|
783
|
-
[id: string]: true;
|
|
784
|
-
}>;
|
|
785
|
-
hoveredElementIds: Readonly<{
|
|
786
|
-
[id: string]: true;
|
|
787
|
-
}>;
|
|
788
|
-
previousSelectedElementIds: {
|
|
789
|
-
[id: string]: true;
|
|
790
|
-
};
|
|
791
|
-
selectedElementsAreBeingDragged: boolean;
|
|
792
|
-
shouldCacheIgnoreZoom: boolean;
|
|
793
|
-
toast: {
|
|
794
|
-
message: string;
|
|
795
|
-
closable?: boolean | undefined;
|
|
796
|
-
duration?: number | undefined;
|
|
797
|
-
} | null;
|
|
798
|
-
zenModeEnabled: boolean;
|
|
799
|
-
theme: Theme;
|
|
800
|
-
gridSize: number;
|
|
801
|
-
gridStep: number;
|
|
802
|
-
gridModeEnabled: boolean;
|
|
803
|
-
viewModeEnabled: boolean;
|
|
804
|
-
selectedGroupIds: {
|
|
805
|
-
[groupId: string]: boolean;
|
|
806
|
-
};
|
|
807
|
-
editingGroupId: string | null;
|
|
808
|
-
width: number;
|
|
809
|
-
height: number;
|
|
810
|
-
offsetTop: number;
|
|
811
|
-
offsetLeft: number;
|
|
812
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
813
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
814
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
815
|
-
button?: "up" | "down" | undefined;
|
|
816
|
-
selectedElementIds?: Readonly<{
|
|
817
|
-
[id: string]: true;
|
|
818
|
-
}> | undefined;
|
|
819
|
-
username?: string | null | undefined;
|
|
820
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
821
|
-
color?: {
|
|
822
|
-
background: string;
|
|
823
|
-
stroke: string;
|
|
824
|
-
} | undefined;
|
|
825
|
-
avatarUrl?: string | undefined;
|
|
826
|
-
id?: string | undefined;
|
|
827
|
-
socketId?: import("../types").SocketId | undefined;
|
|
828
|
-
isCurrentUser?: boolean | undefined;
|
|
829
|
-
isInCall?: boolean | undefined;
|
|
830
|
-
isSpeaking?: boolean | undefined;
|
|
831
|
-
isMuted?: boolean | undefined;
|
|
832
|
-
}>>;
|
|
833
|
-
stats: {
|
|
834
|
-
open: boolean;
|
|
835
|
-
panels: number;
|
|
836
|
-
};
|
|
837
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
838
|
-
pasteDialog: {
|
|
839
|
-
shown: false;
|
|
840
|
-
data: null;
|
|
841
|
-
} | {
|
|
842
|
-
shown: true;
|
|
843
|
-
data: import("../charts").Spreadsheet;
|
|
844
|
-
};
|
|
845
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
846
|
-
linkOpacity: number;
|
|
847
|
-
colorPalette?: {
|
|
848
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
849
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
850
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
851
|
-
topPicks: {
|
|
852
|
-
canvasBackground: [string, string, string, string, string];
|
|
853
|
-
elementStroke: [string, string, string, string, string];
|
|
854
|
-
elementBackground: [string, string, string, string, string];
|
|
855
|
-
};
|
|
856
|
-
} | undefined;
|
|
857
|
-
allowWheelZoom?: boolean | undefined;
|
|
858
|
-
allowPinchZoom?: boolean | undefined;
|
|
859
|
-
disableContextMenu: boolean;
|
|
860
|
-
pinnedScripts?: string[] | undefined;
|
|
861
|
-
customPens?: any[] | undefined;
|
|
862
|
-
currentStrokeOptions?: any;
|
|
863
|
-
resetCustomPen?: any;
|
|
864
|
-
gridColor: {
|
|
865
|
-
Bold: string;
|
|
866
|
-
Regular: string;
|
|
867
|
-
};
|
|
868
|
-
gridDirection: {
|
|
869
|
-
horizontal: boolean;
|
|
870
|
-
vertical: boolean;
|
|
871
|
-
};
|
|
872
|
-
highlightSearchResult: boolean;
|
|
873
|
-
dynamicStyle: {
|
|
874
|
-
[x: string]: string;
|
|
875
|
-
};
|
|
876
|
-
frameColor: {
|
|
877
|
-
stroke: string;
|
|
878
|
-
fill: string;
|
|
879
|
-
nameColor: string;
|
|
880
|
-
};
|
|
881
|
-
invertBindingBehaviour: boolean;
|
|
882
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
883
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
884
|
-
originSnapOffset: {
|
|
885
|
-
x: number;
|
|
886
|
-
y: number;
|
|
887
|
-
} | null;
|
|
888
|
-
objectsSnapModeEnabled: boolean;
|
|
889
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
890
|
-
followedBy: Set<import("../types").SocketId>;
|
|
891
|
-
isCropping: boolean;
|
|
892
|
-
croppingElementId: string | null;
|
|
893
|
-
searchMatches: Readonly<{
|
|
894
|
-
focusedId: string | null;
|
|
895
|
-
matches: readonly import("../types").SearchMatch[];
|
|
896
|
-
}> | null;
|
|
897
|
-
activeLockedId: string | null;
|
|
898
|
-
lockedMultiSelections: {
|
|
899
|
-
[groupId: string]: true;
|
|
900
|
-
};
|
|
901
|
-
};
|
|
902
|
-
captureUpdate: "EVENTUALLY";
|
|
903
|
-
};
|
|
904
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
905
|
-
} & {
|
|
906
|
-
keyTest?: undefined;
|
|
3
|
+
import type { AppState } from "../types";
|
|
4
|
+
export declare const actionChangeProjectName: import("./types").Action<string | null> & {
|
|
5
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
6
|
+
};
|
|
7
|
+
export declare const actionChangeExportScale: import("./types").Action<number> & {
|
|
8
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
9
|
+
};
|
|
10
|
+
export declare const actionChangeExportBackground: import("./types").Action<boolean> & {
|
|
11
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
12
|
+
};
|
|
13
|
+
export declare const actionChangeExportEmbedScene: import("./types").Action<boolean> & {
|
|
14
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
907
15
|
};
|
|
908
16
|
export declare const actionSaveToActiveFile: {
|
|
909
17
|
name: "saveToActiveFile";
|
|
@@ -912,8 +20,8 @@ export declare const actionSaveToActiveFile: {
|
|
|
912
20
|
trackEvent: {
|
|
913
21
|
category: "export";
|
|
914
22
|
};
|
|
915
|
-
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState:
|
|
916
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<
|
|
23
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
24
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
917
25
|
captureUpdate: "EVENTUALLY";
|
|
918
26
|
appState: {
|
|
919
27
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
@@ -938,7 +46,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
938
46
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
939
47
|
isBindingEnabled: boolean;
|
|
940
48
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
941
|
-
|
|
49
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
942
50
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
943
51
|
frameRendering: {
|
|
944
52
|
enabled: boolean;
|
|
@@ -1000,12 +108,14 @@ export declare const actionSaveToActiveFile: {
|
|
|
1000
108
|
tab?: string | undefined;
|
|
1001
109
|
} | null;
|
|
1002
110
|
openDialog: {
|
|
1003
|
-
name: "
|
|
111
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1004
112
|
} | {
|
|
1005
113
|
name: "ttd";
|
|
1006
114
|
tab: "mermaid" | "text-to-diagram";
|
|
1007
115
|
} | {
|
|
1008
116
|
name: "commandPalette";
|
|
117
|
+
} | {
|
|
118
|
+
name: "settings";
|
|
1009
119
|
} | {
|
|
1010
120
|
name: "elementLinkSelector";
|
|
1011
121
|
sourceElementId: string;
|
|
@@ -1125,6 +235,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
1125
235
|
lockedMultiSelections: {
|
|
1126
236
|
[groupId: string]: true;
|
|
1127
237
|
};
|
|
238
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1128
239
|
};
|
|
1129
240
|
} | {
|
|
1130
241
|
captureUpdate: "EVENTUALLY";
|
|
@@ -1142,7 +253,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
1142
253
|
trackEvent: {
|
|
1143
254
|
category: "export";
|
|
1144
255
|
};
|
|
1145
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<
|
|
256
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
1146
257
|
captureUpdate: "EVENTUALLY";
|
|
1147
258
|
appState: {
|
|
1148
259
|
openDialog: null;
|
|
@@ -1168,7 +279,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
1168
279
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1169
280
|
isBindingEnabled: boolean;
|
|
1170
281
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1171
|
-
|
|
282
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1172
283
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1173
284
|
frameRendering: {
|
|
1174
285
|
enabled: boolean;
|
|
@@ -1344,6 +455,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
1344
455
|
lockedMultiSelections: {
|
|
1345
456
|
[groupId: string]: true;
|
|
1346
457
|
};
|
|
458
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1347
459
|
};
|
|
1348
460
|
} | {
|
|
1349
461
|
captureUpdate: "EVENTUALLY";
|
|
@@ -1360,8 +472,8 @@ export declare const actionLoadScene: {
|
|
|
1360
472
|
trackEvent: {
|
|
1361
473
|
category: "export";
|
|
1362
474
|
};
|
|
1363
|
-
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState:
|
|
1364
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<
|
|
475
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
476
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<false | {
|
|
1365
477
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
1366
478
|
appState: {
|
|
1367
479
|
viewBackgroundColor: string;
|
|
@@ -1386,12 +498,14 @@ export declare const actionLoadScene: {
|
|
|
1386
498
|
scrollY: number;
|
|
1387
499
|
viewModeEnabled: boolean;
|
|
1388
500
|
openDialog: {
|
|
1389
|
-
name: "
|
|
501
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1390
502
|
} | {
|
|
1391
503
|
name: "ttd";
|
|
1392
504
|
tab: "mermaid" | "text-to-diagram";
|
|
1393
505
|
} | {
|
|
1394
506
|
name: "commandPalette";
|
|
507
|
+
} | {
|
|
508
|
+
name: "settings";
|
|
1395
509
|
} | {
|
|
1396
510
|
name: "elementLinkSelector";
|
|
1397
511
|
sourceElementId: string;
|
|
@@ -1412,8 +526,9 @@ export declare const actionLoadScene: {
|
|
|
1412
526
|
};
|
|
1413
527
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1414
528
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
529
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1415
530
|
isBindingEnabled: boolean;
|
|
1416
|
-
|
|
531
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1417
532
|
isRotating: boolean;
|
|
1418
533
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1419
534
|
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
@@ -1455,6 +570,13 @@ export declare const actionLoadScene: {
|
|
|
1455
570
|
matches: readonly import("../types").SearchMatch[];
|
|
1456
571
|
}> | null;
|
|
1457
572
|
activeLockedId: string | null;
|
|
573
|
+
hoveredElementIds: Readonly<{
|
|
574
|
+
[id: string]: true;
|
|
575
|
+
}>;
|
|
576
|
+
shouldCacheIgnoreZoom: boolean;
|
|
577
|
+
exportScale: number;
|
|
578
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
579
|
+
gridSize: number;
|
|
1458
580
|
contextMenu: {
|
|
1459
581
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1460
582
|
top: number;
|
|
@@ -1463,7 +585,6 @@ export declare const actionLoadScene: {
|
|
|
1463
585
|
showWelcomeScreen: boolean;
|
|
1464
586
|
isLoading: boolean;
|
|
1465
587
|
errorMessage: import("react").ReactNode;
|
|
1466
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1467
588
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1468
589
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1469
590
|
editingFrame: string | null;
|
|
@@ -1481,7 +602,6 @@ export declare const actionLoadScene: {
|
|
|
1481
602
|
exportBackground: boolean;
|
|
1482
603
|
exportEmbedScene: boolean;
|
|
1483
604
|
exportWithDarkMode: boolean;
|
|
1484
|
-
exportScale: number;
|
|
1485
605
|
currentItemStrokeColor: string;
|
|
1486
606
|
currentItemBackgroundColor: string;
|
|
1487
607
|
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
@@ -1509,20 +629,15 @@ export declare const actionLoadScene: {
|
|
|
1509
629
|
} | null;
|
|
1510
630
|
defaultSidebarDockedPreference: boolean;
|
|
1511
631
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1512
|
-
hoveredElementIds: Readonly<{
|
|
1513
|
-
[id: string]: true;
|
|
1514
|
-
}>;
|
|
1515
632
|
previousSelectedElementIds: {
|
|
1516
633
|
[id: string]: true;
|
|
1517
634
|
};
|
|
1518
635
|
selectedElementsAreBeingDragged: boolean;
|
|
1519
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1520
636
|
toast: {
|
|
1521
637
|
message: string;
|
|
1522
638
|
closable?: boolean | undefined;
|
|
1523
639
|
duration?: number | undefined;
|
|
1524
640
|
} | null;
|
|
1525
|
-
gridSize: number;
|
|
1526
641
|
gridStep: number;
|
|
1527
642
|
gridModeEnabled: boolean;
|
|
1528
643
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
@@ -1595,7 +710,7 @@ export declare const actionLoadScene: {
|
|
|
1595
710
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1596
711
|
isBindingEnabled: boolean;
|
|
1597
712
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1598
|
-
|
|
713
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1599
714
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1600
715
|
frameRendering: {
|
|
1601
716
|
enabled: boolean;
|
|
@@ -1657,12 +772,14 @@ export declare const actionLoadScene: {
|
|
|
1657
772
|
tab?: string | undefined;
|
|
1658
773
|
} | null;
|
|
1659
774
|
openDialog: {
|
|
1660
|
-
name: "
|
|
775
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1661
776
|
} | {
|
|
1662
777
|
name: "ttd";
|
|
1663
778
|
tab: "mermaid" | "text-to-diagram";
|
|
1664
779
|
} | {
|
|
1665
780
|
name: "commandPalette";
|
|
781
|
+
} | {
|
|
782
|
+
name: "settings";
|
|
1666
783
|
} | {
|
|
1667
784
|
name: "elementLinkSelector";
|
|
1668
785
|
sourceElementId: string;
|
|
@@ -1788,6 +905,7 @@ export declare const actionLoadScene: {
|
|
|
1788
905
|
lockedMultiSelections: {
|
|
1789
906
|
[groupId: string]: true;
|
|
1790
907
|
};
|
|
908
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1791
909
|
};
|
|
1792
910
|
files: import("../types").BinaryFiles;
|
|
1793
911
|
captureUpdate: "EVENTUALLY";
|
|
@@ -1796,230 +914,6 @@ export declare const actionLoadScene: {
|
|
|
1796
914
|
} & {
|
|
1797
915
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1798
916
|
};
|
|
1799
|
-
export declare const actionExportWithDarkMode: {
|
|
1800
|
-
|
|
1801
|
-
label: string;
|
|
1802
|
-
trackEvent: {
|
|
1803
|
-
category: "export";
|
|
1804
|
-
action: string;
|
|
1805
|
-
};
|
|
1806
|
-
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
1807
|
-
appState: {
|
|
1808
|
-
exportWithDarkMode: any;
|
|
1809
|
-
contextMenu: {
|
|
1810
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1811
|
-
top: number;
|
|
1812
|
-
left: number;
|
|
1813
|
-
} | null;
|
|
1814
|
-
showWelcomeScreen: boolean;
|
|
1815
|
-
isLoading: boolean;
|
|
1816
|
-
errorMessage: import("react").ReactNode;
|
|
1817
|
-
activeEmbeddable: {
|
|
1818
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1819
|
-
state: "active" | "hover";
|
|
1820
|
-
} | null;
|
|
1821
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1822
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1823
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1824
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1825
|
-
isBindingEnabled: boolean;
|
|
1826
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1827
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1828
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1829
|
-
frameRendering: {
|
|
1830
|
-
enabled: boolean;
|
|
1831
|
-
name: boolean;
|
|
1832
|
-
outline: boolean;
|
|
1833
|
-
clip: boolean;
|
|
1834
|
-
markerName: boolean;
|
|
1835
|
-
markerEnabled: boolean;
|
|
1836
|
-
};
|
|
1837
|
-
editingFrame: string | null;
|
|
1838
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1839
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1840
|
-
activeTool: {
|
|
1841
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1842
|
-
locked: boolean;
|
|
1843
|
-
fromSelection: boolean;
|
|
1844
|
-
} & import("../types").ActiveTool;
|
|
1845
|
-
preferredSelectionTool: {
|
|
1846
|
-
type: "selection" | "lasso";
|
|
1847
|
-
initialized: boolean;
|
|
1848
|
-
};
|
|
1849
|
-
penMode: boolean;
|
|
1850
|
-
penDetected: boolean;
|
|
1851
|
-
exportBackground: boolean;
|
|
1852
|
-
exportEmbedScene: boolean;
|
|
1853
|
-
exportScale: number;
|
|
1854
|
-
currentItemStrokeColor: string;
|
|
1855
|
-
currentItemBackgroundColor: string;
|
|
1856
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1857
|
-
currentItemStrokeWidth: number;
|
|
1858
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1859
|
-
currentItemRoughness: number;
|
|
1860
|
-
currentItemOpacity: number;
|
|
1861
|
-
currentItemFontFamily: number;
|
|
1862
|
-
currentItemFontSize: number;
|
|
1863
|
-
currentItemTextAlign: string;
|
|
1864
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1865
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1866
|
-
currentHoveredFontFamily: number | null;
|
|
1867
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1868
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1869
|
-
currentItemFrameRole: ("marker" | null) | undefined;
|
|
1870
|
-
viewBackgroundColor: string;
|
|
1871
|
-
scrollX: number;
|
|
1872
|
-
scrollY: number;
|
|
1873
|
-
cursorButton: "up" | "down";
|
|
1874
|
-
scrolledOutside: boolean;
|
|
1875
|
-
name: string | null;
|
|
1876
|
-
isResizing: boolean;
|
|
1877
|
-
isRotating: boolean;
|
|
1878
|
-
zoom: Readonly<{
|
|
1879
|
-
value: import("../types").NormalizedZoomValue;
|
|
1880
|
-
}>;
|
|
1881
|
-
openMenu: "canvas" | "shape" | null;
|
|
1882
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1883
|
-
openSidebar: {
|
|
1884
|
-
name: string;
|
|
1885
|
-
tab?: string | undefined;
|
|
1886
|
-
} | null;
|
|
1887
|
-
openDialog: {
|
|
1888
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
1889
|
-
} | {
|
|
1890
|
-
name: "ttd";
|
|
1891
|
-
tab: "mermaid" | "text-to-diagram";
|
|
1892
|
-
} | {
|
|
1893
|
-
name: "commandPalette";
|
|
1894
|
-
} | {
|
|
1895
|
-
name: "elementLinkSelector";
|
|
1896
|
-
sourceElementId: string;
|
|
1897
|
-
} | null;
|
|
1898
|
-
defaultSidebarDockedPreference: boolean;
|
|
1899
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1900
|
-
selectedElementIds: Readonly<{
|
|
1901
|
-
[id: string]: true;
|
|
1902
|
-
}>;
|
|
1903
|
-
hoveredElementIds: Readonly<{
|
|
1904
|
-
[id: string]: true;
|
|
1905
|
-
}>;
|
|
1906
|
-
previousSelectedElementIds: {
|
|
1907
|
-
[id: string]: true;
|
|
1908
|
-
};
|
|
1909
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1910
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1911
|
-
toast: {
|
|
1912
|
-
message: string;
|
|
1913
|
-
closable?: boolean | undefined;
|
|
1914
|
-
duration?: number | undefined;
|
|
1915
|
-
} | null;
|
|
1916
|
-
zenModeEnabled: boolean;
|
|
1917
|
-
theme: Theme;
|
|
1918
|
-
gridSize: number;
|
|
1919
|
-
gridStep: number;
|
|
1920
|
-
gridModeEnabled: boolean;
|
|
1921
|
-
viewModeEnabled: boolean;
|
|
1922
|
-
selectedGroupIds: {
|
|
1923
|
-
[groupId: string]: boolean;
|
|
1924
|
-
};
|
|
1925
|
-
editingGroupId: string | null;
|
|
1926
|
-
width: number;
|
|
1927
|
-
height: number;
|
|
1928
|
-
offsetTop: number;
|
|
1929
|
-
offsetLeft: number;
|
|
1930
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1931
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
1932
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1933
|
-
button?: "up" | "down" | undefined;
|
|
1934
|
-
selectedElementIds?: Readonly<{
|
|
1935
|
-
[id: string]: true;
|
|
1936
|
-
}> | undefined;
|
|
1937
|
-
username?: string | null | undefined;
|
|
1938
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1939
|
-
color?: {
|
|
1940
|
-
background: string;
|
|
1941
|
-
stroke: string;
|
|
1942
|
-
} | undefined;
|
|
1943
|
-
avatarUrl?: string | undefined;
|
|
1944
|
-
id?: string | undefined;
|
|
1945
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1946
|
-
isCurrentUser?: boolean | undefined;
|
|
1947
|
-
isInCall?: boolean | undefined;
|
|
1948
|
-
isSpeaking?: boolean | undefined;
|
|
1949
|
-
isMuted?: boolean | undefined;
|
|
1950
|
-
}>>;
|
|
1951
|
-
stats: {
|
|
1952
|
-
open: boolean;
|
|
1953
|
-
panels: number;
|
|
1954
|
-
};
|
|
1955
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1956
|
-
pasteDialog: {
|
|
1957
|
-
shown: false;
|
|
1958
|
-
data: null;
|
|
1959
|
-
} | {
|
|
1960
|
-
shown: true;
|
|
1961
|
-
data: import("../charts").Spreadsheet;
|
|
1962
|
-
};
|
|
1963
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
1964
|
-
linkOpacity: number;
|
|
1965
|
-
colorPalette?: {
|
|
1966
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1967
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1968
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
1969
|
-
topPicks: {
|
|
1970
|
-
canvasBackground: [string, string, string, string, string];
|
|
1971
|
-
elementStroke: [string, string, string, string, string];
|
|
1972
|
-
elementBackground: [string, string, string, string, string];
|
|
1973
|
-
};
|
|
1974
|
-
} | undefined;
|
|
1975
|
-
allowWheelZoom?: boolean | undefined;
|
|
1976
|
-
allowPinchZoom?: boolean | undefined;
|
|
1977
|
-
disableContextMenu: boolean;
|
|
1978
|
-
pinnedScripts?: string[] | undefined;
|
|
1979
|
-
customPens?: any[] | undefined;
|
|
1980
|
-
currentStrokeOptions?: any;
|
|
1981
|
-
resetCustomPen?: any;
|
|
1982
|
-
gridColor: {
|
|
1983
|
-
Bold: string;
|
|
1984
|
-
Regular: string;
|
|
1985
|
-
};
|
|
1986
|
-
gridDirection: {
|
|
1987
|
-
horizontal: boolean;
|
|
1988
|
-
vertical: boolean;
|
|
1989
|
-
};
|
|
1990
|
-
highlightSearchResult: boolean;
|
|
1991
|
-
dynamicStyle: {
|
|
1992
|
-
[x: string]: string;
|
|
1993
|
-
};
|
|
1994
|
-
frameColor: {
|
|
1995
|
-
stroke: string;
|
|
1996
|
-
fill: string;
|
|
1997
|
-
nameColor: string;
|
|
1998
|
-
};
|
|
1999
|
-
invertBindingBehaviour: boolean;
|
|
2000
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2001
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
2002
|
-
originSnapOffset: {
|
|
2003
|
-
x: number;
|
|
2004
|
-
y: number;
|
|
2005
|
-
} | null;
|
|
2006
|
-
objectsSnapModeEnabled: boolean;
|
|
2007
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
2008
|
-
followedBy: Set<import("../types").SocketId>;
|
|
2009
|
-
isCropping: boolean;
|
|
2010
|
-
croppingElementId: string | null;
|
|
2011
|
-
searchMatches: Readonly<{
|
|
2012
|
-
focusedId: string | null;
|
|
2013
|
-
matches: readonly import("../types").SearchMatch[];
|
|
2014
|
-
}> | null;
|
|
2015
|
-
activeLockedId: string | null;
|
|
2016
|
-
lockedMultiSelections: {
|
|
2017
|
-
[groupId: string]: true;
|
|
2018
|
-
};
|
|
2019
|
-
};
|
|
2020
|
-
captureUpdate: "EVENTUALLY";
|
|
2021
|
-
};
|
|
2022
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2023
|
-
} & {
|
|
2024
|
-
keyTest?: undefined;
|
|
917
|
+
export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
|
|
918
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
2025
919
|
};
|