@zsviczian/excalidraw 0.18.0-53 → 0.18.0-54
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 +50 -50
- 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,691 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { LocalPoint } from "@excalidraw/math";
|
|
3
|
-
import type { ExcalidrawElement, ExcalidrawLinearElement, NonDeleted } from "@excalidraw/element/types";
|
|
1
|
+
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
4
2
|
import type { AppState } from "../types";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
11
|
-
appState: {
|
|
12
|
-
selectedLinearElement: {
|
|
13
|
-
selectedPointsIndices: null;
|
|
14
|
-
elementId: string & {
|
|
15
|
-
_brand: "excalidrawLinearElementId";
|
|
16
|
-
};
|
|
17
|
-
pointerDownState: Readonly<{
|
|
18
|
-
prevSelectedPointsIndices: readonly number[] | null;
|
|
19
|
-
lastClickedPoint: number;
|
|
20
|
-
lastClickedIsEndPoint: boolean;
|
|
21
|
-
origin: Readonly<{
|
|
22
|
-
x: number;
|
|
23
|
-
y: number;
|
|
24
|
-
}> | null;
|
|
25
|
-
segmentMidpoint: {
|
|
26
|
-
value: import("@excalidraw/math").GlobalPoint | null;
|
|
27
|
-
index: number | null;
|
|
28
|
-
added: boolean;
|
|
29
|
-
};
|
|
30
|
-
}>;
|
|
31
|
-
isDragging: boolean;
|
|
32
|
-
lastUncommittedPoint: LocalPoint | null;
|
|
33
|
-
pointerOffset: Readonly<{
|
|
34
|
-
x: number;
|
|
35
|
-
y: number;
|
|
36
|
-
}>;
|
|
37
|
-
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
38
|
-
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
39
|
-
hoverPointIndex: number;
|
|
40
|
-
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
41
|
-
elbowed: boolean;
|
|
42
|
-
customLineAngle: number | null;
|
|
43
|
-
isEditing: boolean;
|
|
44
|
-
};
|
|
45
|
-
suggestedBindings: never[];
|
|
46
|
-
contextMenu: {
|
|
47
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
48
|
-
top: number;
|
|
49
|
-
left: number;
|
|
50
|
-
} | null;
|
|
51
|
-
showWelcomeScreen: boolean;
|
|
52
|
-
isLoading: boolean;
|
|
53
|
-
errorMessage: import("react").ReactNode;
|
|
54
|
-
activeEmbeddable: {
|
|
55
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
56
|
-
state: "active" | "hover";
|
|
57
|
-
} | null;
|
|
58
|
-
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
59
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
60
|
-
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
61
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
62
|
-
isBindingEnabled: boolean;
|
|
63
|
-
startBoundElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
64
|
-
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
65
|
-
frameRendering: {
|
|
66
|
-
enabled: boolean;
|
|
67
|
-
name: boolean;
|
|
68
|
-
outline: boolean;
|
|
69
|
-
clip: boolean;
|
|
70
|
-
markerName: boolean;
|
|
71
|
-
markerEnabled: boolean;
|
|
72
|
-
};
|
|
73
|
-
editingFrame: string | null;
|
|
74
|
-
elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
|
|
75
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
76
|
-
activeTool: {
|
|
77
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
78
|
-
locked: boolean;
|
|
79
|
-
fromSelection: boolean;
|
|
80
|
-
} & import("../types").ActiveTool;
|
|
81
|
-
preferredSelectionTool: {
|
|
82
|
-
type: "selection" | "lasso";
|
|
83
|
-
initialized: boolean;
|
|
84
|
-
};
|
|
85
|
-
penMode: boolean;
|
|
86
|
-
penDetected: boolean;
|
|
87
|
-
exportBackground: boolean;
|
|
88
|
-
exportEmbedScene: boolean;
|
|
89
|
-
exportWithDarkMode: boolean;
|
|
90
|
-
exportScale: number;
|
|
91
|
-
currentItemStrokeColor: string;
|
|
92
|
-
currentItemBackgroundColor: string;
|
|
93
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
94
|
-
currentItemStrokeWidth: number;
|
|
95
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
96
|
-
currentItemRoughness: number;
|
|
97
|
-
currentItemOpacity: number;
|
|
98
|
-
currentItemFontFamily: number;
|
|
99
|
-
currentItemFontSize: number;
|
|
100
|
-
currentItemTextAlign: string;
|
|
101
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
102
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
103
|
-
currentHoveredFontFamily: number | null;
|
|
104
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
105
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
106
|
-
currentItemFrameRole: ("marker" | null) | undefined;
|
|
107
|
-
viewBackgroundColor: string;
|
|
108
|
-
scrollX: number;
|
|
109
|
-
scrollY: number;
|
|
110
|
-
cursorButton: "up" | "down";
|
|
111
|
-
scrolledOutside: boolean;
|
|
112
|
-
name: string | null;
|
|
113
|
-
isResizing: boolean;
|
|
114
|
-
isRotating: boolean;
|
|
115
|
-
zoom: Readonly<{
|
|
116
|
-
value: import("../types").NormalizedZoomValue;
|
|
117
|
-
}>;
|
|
118
|
-
openMenu: "canvas" | "shape" | null;
|
|
119
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
120
|
-
openSidebar: {
|
|
121
|
-
name: string;
|
|
122
|
-
tab?: string | undefined;
|
|
123
|
-
} | null;
|
|
124
|
-
openDialog: {
|
|
125
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
126
|
-
} | {
|
|
127
|
-
name: "ttd";
|
|
128
|
-
tab: "mermaid" | "text-to-diagram";
|
|
129
|
-
} | {
|
|
130
|
-
name: "commandPalette";
|
|
131
|
-
} | {
|
|
132
|
-
name: "elementLinkSelector";
|
|
133
|
-
sourceElementId: string;
|
|
134
|
-
} | null;
|
|
135
|
-
defaultSidebarDockedPreference: boolean;
|
|
136
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
137
|
-
selectedElementIds: Readonly<{
|
|
138
|
-
[id: string]: true;
|
|
139
|
-
}>;
|
|
140
|
-
hoveredElementIds: Readonly<{
|
|
141
|
-
[id: string]: true;
|
|
142
|
-
}>;
|
|
143
|
-
previousSelectedElementIds: {
|
|
144
|
-
[id: string]: true;
|
|
145
|
-
};
|
|
146
|
-
selectedElementsAreBeingDragged: boolean;
|
|
147
|
-
shouldCacheIgnoreZoom: boolean;
|
|
148
|
-
toast: {
|
|
149
|
-
message: string;
|
|
150
|
-
closable?: boolean | undefined;
|
|
151
|
-
duration?: number | undefined;
|
|
152
|
-
} | null;
|
|
153
|
-
zenModeEnabled: boolean;
|
|
154
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
155
|
-
gridSize: number;
|
|
156
|
-
gridStep: number;
|
|
157
|
-
gridModeEnabled: boolean;
|
|
158
|
-
viewModeEnabled: boolean;
|
|
159
|
-
selectedGroupIds: {
|
|
160
|
-
[groupId: string]: boolean;
|
|
161
|
-
};
|
|
162
|
-
editingGroupId: string | null;
|
|
163
|
-
width: number;
|
|
164
|
-
height: number;
|
|
165
|
-
offsetTop: number;
|
|
166
|
-
offsetLeft: number;
|
|
167
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
168
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
169
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
170
|
-
button?: "up" | "down" | undefined;
|
|
171
|
-
selectedElementIds?: Readonly<{
|
|
172
|
-
[id: string]: true;
|
|
173
|
-
}> | undefined;
|
|
174
|
-
username?: string | null | undefined;
|
|
175
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
176
|
-
color?: {
|
|
177
|
-
background: string;
|
|
178
|
-
stroke: string;
|
|
179
|
-
} | undefined;
|
|
180
|
-
avatarUrl?: string | undefined;
|
|
181
|
-
id?: string | undefined;
|
|
182
|
-
socketId?: import("../types").SocketId | undefined;
|
|
183
|
-
isCurrentUser?: boolean | undefined;
|
|
184
|
-
isInCall?: boolean | undefined;
|
|
185
|
-
isSpeaking?: boolean | undefined;
|
|
186
|
-
isMuted?: boolean | undefined;
|
|
187
|
-
}>>;
|
|
188
|
-
stats: {
|
|
189
|
-
open: boolean;
|
|
190
|
-
panels: number;
|
|
191
|
-
};
|
|
192
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
193
|
-
pasteDialog: {
|
|
194
|
-
shown: false;
|
|
195
|
-
data: null;
|
|
196
|
-
} | {
|
|
197
|
-
shown: true;
|
|
198
|
-
data: import("../charts").Spreadsheet;
|
|
199
|
-
};
|
|
200
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
201
|
-
linkOpacity: number;
|
|
202
|
-
colorPalette?: {
|
|
203
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
204
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
205
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
206
|
-
topPicks: {
|
|
207
|
-
canvasBackground: [string, string, string, string, string];
|
|
208
|
-
elementStroke: [string, string, string, string, string];
|
|
209
|
-
elementBackground: [string, string, string, string, string];
|
|
210
|
-
};
|
|
211
|
-
} | undefined;
|
|
212
|
-
allowWheelZoom?: boolean | undefined;
|
|
213
|
-
allowPinchZoom?: boolean | undefined;
|
|
214
|
-
disableContextMenu: boolean;
|
|
215
|
-
pinnedScripts?: string[] | undefined;
|
|
216
|
-
customPens?: any[] | undefined;
|
|
217
|
-
currentStrokeOptions?: any;
|
|
218
|
-
resetCustomPen?: any;
|
|
219
|
-
gridColor: {
|
|
220
|
-
Bold: string;
|
|
221
|
-
Regular: string;
|
|
222
|
-
};
|
|
223
|
-
gridDirection: {
|
|
224
|
-
horizontal: boolean;
|
|
225
|
-
vertical: boolean;
|
|
226
|
-
};
|
|
227
|
-
highlightSearchResult: boolean;
|
|
228
|
-
dynamicStyle: {
|
|
229
|
-
[x: string]: string;
|
|
230
|
-
};
|
|
231
|
-
frameColor: {
|
|
232
|
-
stroke: string;
|
|
233
|
-
fill: string;
|
|
234
|
-
nameColor: string;
|
|
235
|
-
};
|
|
236
|
-
invertBindingBehaviour: boolean;
|
|
237
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
238
|
-
originSnapOffset: {
|
|
239
|
-
x: number;
|
|
240
|
-
y: number;
|
|
241
|
-
} | null;
|
|
242
|
-
objectsSnapModeEnabled: boolean;
|
|
243
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
244
|
-
followedBy: Set<import("../types").SocketId>;
|
|
245
|
-
isCropping: boolean;
|
|
246
|
-
croppingElementId: string | null;
|
|
247
|
-
searchMatches: Readonly<{
|
|
248
|
-
focusedId: string | null;
|
|
249
|
-
matches: readonly import("../types").SearchMatch[];
|
|
250
|
-
}> | null;
|
|
251
|
-
activeLockedId: string | null;
|
|
252
|
-
lockedMultiSelections: {
|
|
253
|
-
[groupId: string]: true;
|
|
254
|
-
};
|
|
255
|
-
};
|
|
256
|
-
captureUpdate: "IMMEDIATELY";
|
|
257
|
-
} | {
|
|
258
|
-
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[] | undefined;
|
|
259
|
-
appState: {
|
|
260
|
-
cursorButton: "up";
|
|
261
|
-
selectedLinearElement: LinearElementEditor;
|
|
262
|
-
contextMenu: {
|
|
263
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
264
|
-
top: number;
|
|
265
|
-
left: number;
|
|
266
|
-
} | null;
|
|
267
|
-
showWelcomeScreen: boolean;
|
|
268
|
-
isLoading: boolean;
|
|
269
|
-
errorMessage: import("react").ReactNode;
|
|
270
|
-
activeEmbeddable: {
|
|
271
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
272
|
-
state: "active" | "hover";
|
|
273
|
-
} | null;
|
|
274
|
-
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
275
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
276
|
-
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
277
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
278
|
-
isBindingEnabled: boolean;
|
|
279
|
-
startBoundElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
280
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
281
|
-
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
282
|
-
frameRendering: {
|
|
283
|
-
enabled: boolean;
|
|
284
|
-
name: boolean;
|
|
285
|
-
outline: boolean;
|
|
286
|
-
clip: boolean;
|
|
287
|
-
markerName: boolean;
|
|
288
|
-
markerEnabled: boolean;
|
|
289
|
-
};
|
|
290
|
-
editingFrame: string | null;
|
|
291
|
-
elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
|
|
292
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
293
|
-
activeTool: {
|
|
294
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
295
|
-
locked: boolean;
|
|
296
|
-
fromSelection: boolean;
|
|
297
|
-
} & import("../types").ActiveTool;
|
|
298
|
-
preferredSelectionTool: {
|
|
299
|
-
type: "selection" | "lasso";
|
|
300
|
-
initialized: boolean;
|
|
301
|
-
};
|
|
302
|
-
penMode: boolean;
|
|
303
|
-
penDetected: boolean;
|
|
304
|
-
exportBackground: boolean;
|
|
305
|
-
exportEmbedScene: boolean;
|
|
306
|
-
exportWithDarkMode: boolean;
|
|
307
|
-
exportScale: number;
|
|
308
|
-
currentItemStrokeColor: string;
|
|
309
|
-
currentItemBackgroundColor: string;
|
|
310
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
311
|
-
currentItemStrokeWidth: number;
|
|
312
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
313
|
-
currentItemRoughness: number;
|
|
314
|
-
currentItemOpacity: number;
|
|
315
|
-
currentItemFontFamily: number;
|
|
316
|
-
currentItemFontSize: number;
|
|
317
|
-
currentItemTextAlign: string;
|
|
318
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
319
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
320
|
-
currentHoveredFontFamily: number | null;
|
|
321
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
322
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
323
|
-
currentItemFrameRole: ("marker" | null) | undefined;
|
|
324
|
-
viewBackgroundColor: string;
|
|
325
|
-
scrollX: number;
|
|
326
|
-
scrollY: number;
|
|
327
|
-
scrolledOutside: boolean;
|
|
328
|
-
name: string | null;
|
|
329
|
-
isResizing: boolean;
|
|
330
|
-
isRotating: boolean;
|
|
331
|
-
zoom: Readonly<{
|
|
332
|
-
value: import("../types").NormalizedZoomValue;
|
|
333
|
-
}>;
|
|
334
|
-
openMenu: "canvas" | "shape" | null;
|
|
335
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
336
|
-
openSidebar: {
|
|
337
|
-
name: string;
|
|
338
|
-
tab?: string | undefined;
|
|
339
|
-
} | null;
|
|
340
|
-
openDialog: {
|
|
341
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
342
|
-
} | {
|
|
343
|
-
name: "ttd";
|
|
344
|
-
tab: "mermaid" | "text-to-diagram";
|
|
345
|
-
} | {
|
|
346
|
-
name: "commandPalette";
|
|
347
|
-
} | {
|
|
348
|
-
name: "elementLinkSelector";
|
|
349
|
-
sourceElementId: string;
|
|
350
|
-
} | null;
|
|
351
|
-
defaultSidebarDockedPreference: boolean;
|
|
352
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
353
|
-
selectedElementIds: Readonly<{
|
|
354
|
-
[id: string]: true;
|
|
355
|
-
}>;
|
|
356
|
-
hoveredElementIds: Readonly<{
|
|
357
|
-
[id: string]: true;
|
|
358
|
-
}>;
|
|
359
|
-
previousSelectedElementIds: {
|
|
360
|
-
[id: string]: true;
|
|
361
|
-
};
|
|
362
|
-
selectedElementsAreBeingDragged: boolean;
|
|
363
|
-
shouldCacheIgnoreZoom: boolean;
|
|
364
|
-
toast: {
|
|
365
|
-
message: string;
|
|
366
|
-
closable?: boolean | undefined;
|
|
367
|
-
duration?: number | undefined;
|
|
368
|
-
} | null;
|
|
369
|
-
zenModeEnabled: boolean;
|
|
370
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
371
|
-
gridSize: number;
|
|
372
|
-
gridStep: number;
|
|
373
|
-
gridModeEnabled: boolean;
|
|
374
|
-
viewModeEnabled: boolean;
|
|
375
|
-
selectedGroupIds: {
|
|
376
|
-
[groupId: string]: boolean;
|
|
377
|
-
};
|
|
378
|
-
editingGroupId: string | null;
|
|
379
|
-
width: number;
|
|
380
|
-
height: number;
|
|
381
|
-
offsetTop: number;
|
|
382
|
-
offsetLeft: number;
|
|
383
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
384
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
385
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
386
|
-
button?: "up" | "down" | undefined;
|
|
387
|
-
selectedElementIds?: Readonly<{
|
|
388
|
-
[id: string]: true;
|
|
389
|
-
}> | undefined;
|
|
390
|
-
username?: string | null | undefined;
|
|
391
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
392
|
-
color?: {
|
|
393
|
-
background: string;
|
|
394
|
-
stroke: string;
|
|
395
|
-
} | undefined;
|
|
396
|
-
avatarUrl?: string | undefined;
|
|
397
|
-
id?: string | undefined;
|
|
398
|
-
socketId?: import("../types").SocketId | undefined;
|
|
399
|
-
isCurrentUser?: boolean | undefined;
|
|
400
|
-
isInCall?: boolean | undefined;
|
|
401
|
-
isSpeaking?: boolean | undefined;
|
|
402
|
-
isMuted?: boolean | undefined;
|
|
403
|
-
}>>;
|
|
404
|
-
stats: {
|
|
405
|
-
open: boolean;
|
|
406
|
-
panels: number;
|
|
407
|
-
};
|
|
408
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
409
|
-
pasteDialog: {
|
|
410
|
-
shown: false;
|
|
411
|
-
data: null;
|
|
412
|
-
} | {
|
|
413
|
-
shown: true;
|
|
414
|
-
data: import("../charts").Spreadsheet;
|
|
415
|
-
};
|
|
416
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
417
|
-
linkOpacity: number;
|
|
418
|
-
colorPalette?: {
|
|
419
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
420
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
421
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
422
|
-
topPicks: {
|
|
423
|
-
canvasBackground: [string, string, string, string, string];
|
|
424
|
-
elementStroke: [string, string, string, string, string];
|
|
425
|
-
elementBackground: [string, string, string, string, string];
|
|
426
|
-
};
|
|
427
|
-
} | undefined;
|
|
428
|
-
allowWheelZoom?: boolean | undefined;
|
|
429
|
-
allowPinchZoom?: boolean | undefined;
|
|
430
|
-
disableContextMenu: boolean;
|
|
431
|
-
pinnedScripts?: string[] | undefined;
|
|
432
|
-
customPens?: any[] | undefined;
|
|
433
|
-
currentStrokeOptions?: any;
|
|
434
|
-
resetCustomPen?: any;
|
|
435
|
-
gridColor: {
|
|
436
|
-
Bold: string;
|
|
437
|
-
Regular: string;
|
|
438
|
-
};
|
|
439
|
-
gridDirection: {
|
|
440
|
-
horizontal: boolean;
|
|
441
|
-
vertical: boolean;
|
|
442
|
-
};
|
|
443
|
-
highlightSearchResult: boolean;
|
|
444
|
-
dynamicStyle: {
|
|
445
|
-
[x: string]: string;
|
|
446
|
-
};
|
|
447
|
-
frameColor: {
|
|
448
|
-
stroke: string;
|
|
449
|
-
fill: string;
|
|
450
|
-
nameColor: string;
|
|
451
|
-
};
|
|
452
|
-
invertBindingBehaviour: boolean;
|
|
453
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
454
|
-
originSnapOffset: {
|
|
455
|
-
x: number;
|
|
456
|
-
y: number;
|
|
457
|
-
} | null;
|
|
458
|
-
objectsSnapModeEnabled: boolean;
|
|
459
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
460
|
-
followedBy: Set<import("../types").SocketId>;
|
|
461
|
-
isCropping: boolean;
|
|
462
|
-
croppingElementId: string | null;
|
|
463
|
-
searchMatches: Readonly<{
|
|
464
|
-
focusedId: string | null;
|
|
465
|
-
matches: readonly import("../types").SearchMatch[];
|
|
466
|
-
}> | null;
|
|
467
|
-
activeLockedId: string | null;
|
|
468
|
-
lockedMultiSelections: {
|
|
469
|
-
[groupId: string]: true;
|
|
470
|
-
};
|
|
471
|
-
};
|
|
472
|
-
captureUpdate: "IMMEDIATELY";
|
|
473
|
-
} | {
|
|
474
|
-
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
475
|
-
appState: {
|
|
476
|
-
cursorButton: "up";
|
|
477
|
-
activeTool: {
|
|
478
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
479
|
-
locked: boolean;
|
|
480
|
-
fromSelection: boolean;
|
|
481
|
-
} & import("../types").ActiveTool;
|
|
482
|
-
activeEmbeddable: null;
|
|
483
|
-
newElement: null;
|
|
484
|
-
selectionElement: null;
|
|
485
|
-
multiElement: null;
|
|
486
|
-
editingTextElement: null;
|
|
487
|
-
startBoundElement: null;
|
|
488
|
-
suggestedBindings: never[];
|
|
489
|
-
selectedElementIds: Readonly<{
|
|
490
|
-
[id: string]: true;
|
|
491
|
-
}>;
|
|
492
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
493
|
-
contextMenu: {
|
|
494
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
495
|
-
top: number;
|
|
496
|
-
left: number;
|
|
497
|
-
} | null;
|
|
498
|
-
showWelcomeScreen: boolean;
|
|
499
|
-
isLoading: boolean;
|
|
500
|
-
errorMessage: import("react").ReactNode;
|
|
501
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
502
|
-
isBindingEnabled: boolean;
|
|
503
|
-
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
504
|
-
frameRendering: {
|
|
505
|
-
enabled: boolean;
|
|
506
|
-
name: boolean;
|
|
507
|
-
outline: boolean;
|
|
508
|
-
clip: boolean;
|
|
509
|
-
markerName: boolean;
|
|
510
|
-
markerEnabled: boolean;
|
|
511
|
-
};
|
|
512
|
-
editingFrame: string | null;
|
|
513
|
-
elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
|
|
514
|
-
preferredSelectionTool: {
|
|
515
|
-
type: "selection" | "lasso";
|
|
516
|
-
initialized: boolean;
|
|
517
|
-
};
|
|
518
|
-
penMode: boolean;
|
|
519
|
-
penDetected: boolean;
|
|
520
|
-
exportBackground: boolean;
|
|
521
|
-
exportEmbedScene: boolean;
|
|
522
|
-
exportWithDarkMode: boolean;
|
|
523
|
-
exportScale: number;
|
|
524
|
-
currentItemStrokeColor: string;
|
|
525
|
-
currentItemBackgroundColor: string;
|
|
526
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
527
|
-
currentItemStrokeWidth: number;
|
|
528
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
529
|
-
currentItemRoughness: number;
|
|
530
|
-
currentItemOpacity: number;
|
|
531
|
-
currentItemFontFamily: number;
|
|
532
|
-
currentItemFontSize: number;
|
|
533
|
-
currentItemTextAlign: string;
|
|
534
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
535
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
536
|
-
currentHoveredFontFamily: number | null;
|
|
537
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
538
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
539
|
-
currentItemFrameRole: ("marker" | null) | undefined;
|
|
540
|
-
viewBackgroundColor: string;
|
|
541
|
-
scrollX: number;
|
|
542
|
-
scrollY: number;
|
|
543
|
-
scrolledOutside: boolean;
|
|
544
|
-
name: string | null;
|
|
545
|
-
isResizing: boolean;
|
|
546
|
-
isRotating: boolean;
|
|
547
|
-
zoom: Readonly<{
|
|
548
|
-
value: import("../types").NormalizedZoomValue;
|
|
549
|
-
}>;
|
|
550
|
-
openMenu: "canvas" | "shape" | null;
|
|
551
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
552
|
-
openSidebar: {
|
|
553
|
-
name: string;
|
|
554
|
-
tab?: string | undefined;
|
|
555
|
-
} | null;
|
|
556
|
-
openDialog: {
|
|
557
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
558
|
-
} | {
|
|
559
|
-
name: "ttd";
|
|
560
|
-
tab: "mermaid" | "text-to-diagram";
|
|
561
|
-
} | {
|
|
562
|
-
name: "commandPalette";
|
|
563
|
-
} | {
|
|
564
|
-
name: "elementLinkSelector";
|
|
565
|
-
sourceElementId: string;
|
|
566
|
-
} | null;
|
|
567
|
-
defaultSidebarDockedPreference: boolean;
|
|
568
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
569
|
-
hoveredElementIds: Readonly<{
|
|
570
|
-
[id: string]: true;
|
|
571
|
-
}>;
|
|
572
|
-
previousSelectedElementIds: {
|
|
573
|
-
[id: string]: true;
|
|
574
|
-
};
|
|
575
|
-
selectedElementsAreBeingDragged: boolean;
|
|
576
|
-
shouldCacheIgnoreZoom: boolean;
|
|
577
|
-
toast: {
|
|
578
|
-
message: string;
|
|
579
|
-
closable?: boolean | undefined;
|
|
580
|
-
duration?: number | undefined;
|
|
581
|
-
} | null;
|
|
582
|
-
zenModeEnabled: boolean;
|
|
583
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
584
|
-
gridSize: number;
|
|
585
|
-
gridStep: number;
|
|
586
|
-
gridModeEnabled: boolean;
|
|
587
|
-
viewModeEnabled: boolean;
|
|
588
|
-
selectedGroupIds: {
|
|
589
|
-
[groupId: string]: boolean;
|
|
590
|
-
};
|
|
591
|
-
editingGroupId: string | null;
|
|
592
|
-
width: number;
|
|
593
|
-
height: number;
|
|
594
|
-
offsetTop: number;
|
|
595
|
-
offsetLeft: number;
|
|
596
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
597
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
598
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
599
|
-
button?: "up" | "down" | undefined;
|
|
600
|
-
selectedElementIds?: Readonly<{
|
|
601
|
-
[id: string]: true;
|
|
602
|
-
}> | undefined;
|
|
603
|
-
username?: string | null | undefined;
|
|
604
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
605
|
-
color?: {
|
|
606
|
-
background: string;
|
|
607
|
-
stroke: string;
|
|
608
|
-
} | undefined;
|
|
609
|
-
avatarUrl?: string | undefined;
|
|
610
|
-
id?: string | undefined;
|
|
611
|
-
socketId?: import("../types").SocketId | undefined;
|
|
612
|
-
isCurrentUser?: boolean | undefined;
|
|
613
|
-
isInCall?: boolean | undefined;
|
|
614
|
-
isSpeaking?: boolean | undefined;
|
|
615
|
-
isMuted?: boolean | undefined;
|
|
616
|
-
}>>;
|
|
617
|
-
stats: {
|
|
618
|
-
open: boolean;
|
|
619
|
-
panels: number;
|
|
620
|
-
};
|
|
621
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
622
|
-
pasteDialog: {
|
|
623
|
-
shown: false;
|
|
624
|
-
data: null;
|
|
625
|
-
} | {
|
|
626
|
-
shown: true;
|
|
627
|
-
data: import("../charts").Spreadsheet;
|
|
628
|
-
};
|
|
629
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
630
|
-
linkOpacity: number;
|
|
631
|
-
colorPalette?: {
|
|
632
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
633
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
634
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
635
|
-
topPicks: {
|
|
636
|
-
canvasBackground: [string, string, string, string, string];
|
|
637
|
-
elementStroke: [string, string, string, string, string];
|
|
638
|
-
elementBackground: [string, string, string, string, string];
|
|
639
|
-
};
|
|
640
|
-
} | undefined;
|
|
641
|
-
allowWheelZoom?: boolean | undefined;
|
|
642
|
-
allowPinchZoom?: boolean | undefined;
|
|
643
|
-
disableContextMenu: boolean;
|
|
644
|
-
pinnedScripts?: string[] | undefined;
|
|
645
|
-
customPens?: any[] | undefined;
|
|
646
|
-
currentStrokeOptions?: any;
|
|
647
|
-
resetCustomPen?: any;
|
|
648
|
-
gridColor: {
|
|
649
|
-
Bold: string;
|
|
650
|
-
Regular: string;
|
|
651
|
-
};
|
|
652
|
-
gridDirection: {
|
|
653
|
-
horizontal: boolean;
|
|
654
|
-
vertical: boolean;
|
|
655
|
-
};
|
|
656
|
-
highlightSearchResult: boolean;
|
|
657
|
-
dynamicStyle: {
|
|
658
|
-
[x: string]: string;
|
|
659
|
-
};
|
|
660
|
-
frameColor: {
|
|
661
|
-
stroke: string;
|
|
662
|
-
fill: string;
|
|
663
|
-
nameColor: string;
|
|
664
|
-
};
|
|
665
|
-
invertBindingBehaviour: boolean;
|
|
666
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
667
|
-
originSnapOffset: {
|
|
668
|
-
x: number;
|
|
669
|
-
y: number;
|
|
670
|
-
} | null;
|
|
671
|
-
objectsSnapModeEnabled: boolean;
|
|
672
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
673
|
-
followedBy: Set<import("../types").SocketId>;
|
|
674
|
-
isCropping: boolean;
|
|
675
|
-
croppingElementId: string | null;
|
|
676
|
-
searchMatches: Readonly<{
|
|
677
|
-
focusedId: string | null;
|
|
678
|
-
matches: readonly import("../types").SearchMatch[];
|
|
679
|
-
}> | null;
|
|
680
|
-
activeLockedId: string | null;
|
|
681
|
-
lockedMultiSelections: {
|
|
682
|
-
[groupId: string]: true;
|
|
683
|
-
};
|
|
684
|
-
};
|
|
685
|
-
captureUpdate: "IMMEDIATELY";
|
|
3
|
+
type FormData = {
|
|
4
|
+
event: PointerEvent;
|
|
5
|
+
sceneCoords: {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
686
8
|
};
|
|
687
|
-
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
|
|
688
|
-
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
689
|
-
} & {
|
|
690
|
-
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
|
|
691
9
|
};
|
|
10
|
+
export declare const actionFinalize: import("./types").Action<FormData> & {
|
|
11
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
12
|
+
};
|
|
13
|
+
export {};
|