@zsviczian/excalidraw 0.18.0-52 → 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.
Files changed (69) hide show
  1. package/dist/excalidraw.development.js +81 -59
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +2 -2
  4. package/types/common/src/commonObsidianUtils.d.ts +6 -0
  5. package/types/common/src/constants.d.ts +2 -0
  6. package/types/common/src/editorInterface.d.ts +1 -1
  7. package/types/common/src/index.d.ts +2 -0
  8. package/types/common/src/utils.d.ts +7 -2
  9. package/types/common/src/visualdebug.d.ts +41 -0
  10. package/types/element/src/binding.d.ts +55 -44
  11. package/types/element/src/collision.d.ts +6 -2
  12. package/types/element/src/index.d.ts +0 -3
  13. package/types/element/src/linearElementEditor.d.ts +15 -18
  14. package/types/element/src/renderElement.d.ts +1 -1
  15. package/types/element/src/typeChecks.d.ts +2 -3
  16. package/types/element/src/types.d.ts +7 -11
  17. package/types/element/src/utils.d.ts +2 -1
  18. package/types/element/src/zindex.d.ts +7 -1
  19. package/types/excalidraw/actions/actionAddToLibrary.d.ts +16 -7
  20. package/types/excalidraw/actions/actionAlign.d.ts +6 -6
  21. package/types/excalidraw/actions/actionBoundText.d.ts +13 -7
  22. package/types/excalidraw/actions/actionCanvas.d.ts +91 -286
  23. package/types/excalidraw/actions/actionClipboard.d.ts +34 -941
  24. package/types/excalidraw/actions/actionCropEditor.d.ts +6 -3
  25. package/types/excalidraw/actions/actionDeleteSelected.d.ts +23 -16
  26. package/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  27. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
  28. package/types/excalidraw/actions/actionElementLink.d.ts +4 -3
  29. package/types/excalidraw/actions/actionElementLock.d.ts +11 -5
  30. package/types/excalidraw/actions/actionEmbeddable.d.ts +6 -3
  31. package/types/excalidraw/actions/actionExport.d.ts +43 -1149
  32. package/types/excalidraw/actions/actionFinalize.d.ts +10 -688
  33. package/types/excalidraw/actions/actionFlip.d.ts +2 -2
  34. package/types/excalidraw/actions/actionFrame.d.ts +26 -16
  35. package/types/excalidraw/actions/actionGroup.d.ts +12 -6
  36. package/types/excalidraw/actions/actionLinearEditor.d.ts +15 -16
  37. package/types/excalidraw/actions/actionLink.d.ts +5 -2
  38. package/types/excalidraw/actions/actionMenu.d.ts +3 -2
  39. package/types/excalidraw/actions/actionNavigate.d.ts +21 -445
  40. package/types/excalidraw/actions/actionProperties.d.ts +79 -2968
  41. package/types/excalidraw/actions/actionSelectAll.d.ts +6 -3
  42. package/types/excalidraw/actions/actionStyles.d.ts +7 -4
  43. package/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  44. package/types/excalidraw/actions/actionToggleGridMode.d.ts +5 -2
  45. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -2
  46. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +3 -2
  47. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  48. package/types/excalidraw/actions/actionToggleStats.d.ts +5 -2
  49. package/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -3
  50. package/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -2
  51. package/types/excalidraw/actions/actionTrayMenu.d.ts +5 -2
  52. package/types/excalidraw/actions/actionZindex.d.ts +2 -2
  53. package/types/excalidraw/actions/manager.d.ts +1 -1
  54. package/types/excalidraw/actions/register.d.ts +1 -1
  55. package/types/excalidraw/actions/types.d.ts +3 -3
  56. package/types/excalidraw/appState.d.ts +4 -3
  57. package/types/excalidraw/components/App.d.ts +7 -3
  58. package/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
  59. package/types/excalidraw/components/Stats/utils.d.ts +1 -1
  60. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -2
  61. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
  62. package/types/excalidraw/data/restore.d.ts +3 -3
  63. package/types/excalidraw/index.d.ts +3 -3
  64. package/types/excalidraw/obsidianUtils.d.ts +0 -5
  65. package/types/excalidraw/renderer/animation.d.ts +12 -0
  66. package/types/excalidraw/renderer/helpers.d.ts +1 -5
  67. package/types/excalidraw/renderer/interactiveScene.d.ts +5 -13
  68. package/types/excalidraw/scene/types.d.ts +12 -0
  69. package/types/excalidraw/types.d.ts +15 -5
@@ -1,721 +1,16 @@
1
- export declare const actionCopy: {
2
- name: "copy";
3
- label: string;
4
- icon: import("react/jsx-runtime").JSX.Element;
5
- trackEvent: {
6
- category: "element";
7
- };
8
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
9
- captureUpdate: "EVENTUALLY";
10
- appState: {
11
- errorMessage: any;
12
- contextMenu: {
13
- items: import("../components/ContextMenu").ContextMenuItems;
14
- top: number;
15
- left: number;
16
- } | null;
17
- showWelcomeScreen: boolean;
18
- isLoading: boolean;
19
- activeEmbeddable: {
20
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
- state: "active" | "hover";
22
- } | null;
23
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
25
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
26
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
- isBindingEnabled: boolean;
28
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
- frameRendering: {
32
- enabled: boolean;
33
- name: boolean;
34
- outline: boolean;
35
- clip: boolean;
36
- markerName: boolean;
37
- markerEnabled: boolean;
38
- };
39
- editingFrame: string | null;
40
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
41
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
- activeTool: {
43
- lastActiveTool: import("../types").ActiveTool | null;
44
- locked: boolean;
45
- fromSelection: boolean;
46
- } & import("../types").ActiveTool;
47
- preferredSelectionTool: {
48
- type: "selection" | "lasso";
49
- initialized: boolean;
50
- };
51
- penMode: boolean;
52
- penDetected: boolean;
53
- exportBackground: boolean;
54
- exportEmbedScene: boolean;
55
- exportWithDarkMode: boolean;
56
- exportScale: number;
57
- currentItemStrokeColor: string;
58
- currentItemBackgroundColor: string;
59
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
60
- currentItemStrokeWidth: number;
61
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
62
- currentItemRoughness: number;
63
- currentItemOpacity: number;
64
- currentItemFontFamily: number;
65
- currentItemFontSize: number;
66
- currentItemTextAlign: string;
67
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
68
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
69
- currentHoveredFontFamily: number | null;
70
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
71
- currentItemArrowType: "round" | "sharp" | "elbow";
72
- currentItemFrameRole: ("marker" | null) | undefined;
73
- viewBackgroundColor: string;
74
- scrollX: number;
75
- scrollY: number;
76
- cursorButton: "up" | "down";
77
- scrolledOutside: boolean;
78
- name: string | null;
79
- isResizing: boolean;
80
- isRotating: boolean;
81
- zoom: Readonly<{
82
- value: import("../types").NormalizedZoomValue;
83
- }>;
84
- openMenu: "canvas" | "shape" | null;
85
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
86
- openSidebar: {
87
- name: string;
88
- tab?: string | undefined;
89
- } | null;
90
- openDialog: {
91
- name: "help" | "imageExport" | "jsonExport";
92
- } | {
93
- name: "ttd";
94
- tab: "mermaid" | "text-to-diagram";
95
- } | {
96
- name: "commandPalette";
97
- } | {
98
- name: "elementLinkSelector";
99
- sourceElementId: string;
100
- } | null;
101
- defaultSidebarDockedPreference: boolean;
102
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
103
- selectedElementIds: Readonly<{
104
- [id: string]: true;
105
- }>;
106
- hoveredElementIds: Readonly<{
107
- [id: string]: true;
108
- }>;
109
- previousSelectedElementIds: {
110
- [id: string]: true;
111
- };
112
- selectedElementsAreBeingDragged: boolean;
113
- shouldCacheIgnoreZoom: boolean;
114
- toast: {
115
- message: string;
116
- closable?: boolean | undefined;
117
- duration?: number | undefined;
118
- } | null;
119
- zenModeEnabled: boolean;
120
- theme: import("@excalidraw/element/types").Theme;
121
- gridSize: number;
122
- gridStep: number;
123
- gridModeEnabled: boolean;
124
- viewModeEnabled: boolean;
125
- selectedGroupIds: {
126
- [groupId: string]: boolean;
127
- };
128
- editingGroupId: string | null;
129
- width: number;
130
- height: number;
131
- offsetTop: number;
132
- offsetLeft: number;
133
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
134
- collaborators: Map<import("../types").SocketId, Readonly<{
135
- pointer?: import("../types").CollaboratorPointer | undefined;
136
- button?: "up" | "down" | undefined;
137
- selectedElementIds?: Readonly<{
138
- [id: string]: true;
139
- }> | undefined;
140
- username?: string | null | undefined;
141
- userState?: import("@excalidraw/common").UserIdleState | undefined;
142
- color?: {
143
- background: string;
144
- stroke: string;
145
- } | undefined;
146
- avatarUrl?: string | undefined;
147
- id?: string | undefined;
148
- socketId?: import("../types").SocketId | undefined;
149
- isCurrentUser?: boolean | undefined;
150
- isInCall?: boolean | undefined;
151
- isSpeaking?: boolean | undefined;
152
- isMuted?: boolean | undefined;
153
- }>>;
154
- stats: {
155
- open: boolean;
156
- panels: number;
157
- };
158
- currentChartType: import("@excalidraw/element/types").ChartType;
159
- pasteDialog: {
160
- shown: false;
161
- data: null;
162
- } | {
163
- shown: true;
164
- data: import("../charts").Spreadsheet;
165
- };
166
- showHyperlinkPopup: false | "info" | "editor";
167
- linkOpacity: number;
168
- colorPalette?: {
169
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
170
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
171
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
172
- topPicks: {
173
- canvasBackground: [string, string, string, string, string];
174
- elementStroke: [string, string, string, string, string];
175
- elementBackground: [string, string, string, string, string];
176
- };
177
- } | undefined;
178
- allowWheelZoom?: boolean | undefined;
179
- allowPinchZoom?: boolean | undefined;
180
- disableContextMenu: boolean;
181
- pinnedScripts?: string[] | undefined;
182
- customPens?: any[] | undefined;
183
- currentStrokeOptions?: any;
184
- resetCustomPen?: any;
185
- gridColor: {
186
- Bold: string;
187
- Regular: string;
188
- };
189
- gridDirection: {
190
- horizontal: boolean;
191
- vertical: boolean;
192
- };
193
- highlightSearchResult: boolean;
194
- dynamicStyle: {
195
- [x: string]: string;
196
- };
197
- frameColor: {
198
- stroke: string;
199
- fill: string;
200
- nameColor: string;
201
- };
202
- invertBindingBehaviour: boolean;
203
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
204
- snapLines: readonly import("../snapping").SnapLine[];
205
- originSnapOffset: {
206
- x: number;
207
- y: number;
208
- } | null;
209
- objectsSnapModeEnabled: boolean;
210
- userToFollow: import("../types").UserToFollow | null;
211
- followedBy: Set<import("../types").SocketId>;
212
- isCropping: boolean;
213
- croppingElementId: string | null;
214
- searchMatches: Readonly<{
215
- focusedId: string | null;
216
- matches: readonly import("../types").SearchMatch[];
217
- }> | null;
218
- activeLockedId: string | null;
219
- lockedMultiSelections: {
220
- [groupId: string]: true;
221
- };
222
- };
223
- } | {
224
- captureUpdate: "EVENTUALLY";
225
- appState?: undefined;
226
- }>;
227
- keyTest: undefined;
228
- } & {
229
- keyTest?: undefined;
230
- };
231
- export declare const actionPaste: {
232
- name: "paste";
233
- label: string;
234
- trackEvent: {
235
- category: "element";
236
- };
237
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
238
- captureUpdate: "EVENTUALLY";
239
- appState: {
240
- errorMessage: string;
241
- contextMenu: {
242
- items: import("../components/ContextMenu").ContextMenuItems;
243
- top: number;
244
- left: number;
245
- } | null;
246
- showWelcomeScreen: boolean;
247
- isLoading: boolean;
248
- activeEmbeddable: {
249
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
250
- state: "active" | "hover";
251
- } | null;
252
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
253
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
254
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
255
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
256
- isBindingEnabled: boolean;
257
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
258
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
259
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
260
- frameRendering: {
261
- enabled: boolean;
262
- name: boolean;
263
- outline: boolean;
264
- clip: boolean;
265
- markerName: boolean;
266
- markerEnabled: boolean;
267
- };
268
- editingFrame: string | null;
269
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
270
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
271
- activeTool: {
272
- lastActiveTool: import("../types").ActiveTool | null;
273
- locked: boolean;
274
- fromSelection: boolean;
275
- } & import("../types").ActiveTool;
276
- preferredSelectionTool: {
277
- type: "selection" | "lasso";
278
- initialized: boolean;
279
- };
280
- penMode: boolean;
281
- penDetected: boolean;
282
- exportBackground: boolean;
283
- exportEmbedScene: boolean;
284
- exportWithDarkMode: boolean;
285
- exportScale: number;
286
- currentItemStrokeColor: string;
287
- currentItemBackgroundColor: string;
288
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
289
- currentItemStrokeWidth: number;
290
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
291
- currentItemRoughness: number;
292
- currentItemOpacity: number;
293
- currentItemFontFamily: number;
294
- currentItemFontSize: number;
295
- currentItemTextAlign: string;
296
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
297
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
298
- currentHoveredFontFamily: number | null;
299
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
300
- currentItemArrowType: "round" | "sharp" | "elbow";
301
- currentItemFrameRole: ("marker" | null) | undefined;
302
- viewBackgroundColor: string;
303
- scrollX: number;
304
- scrollY: number;
305
- cursorButton: "up" | "down";
306
- scrolledOutside: boolean;
307
- name: string | null;
308
- isResizing: boolean;
309
- isRotating: boolean;
310
- zoom: Readonly<{
311
- value: import("../types").NormalizedZoomValue;
312
- }>;
313
- openMenu: "canvas" | "shape" | null;
314
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
315
- openSidebar: {
316
- name: string;
317
- tab?: string | undefined;
318
- } | null;
319
- openDialog: {
320
- name: "help" | "imageExport" | "jsonExport";
321
- } | {
322
- name: "ttd";
323
- tab: "mermaid" | "text-to-diagram";
324
- } | {
325
- name: "commandPalette";
326
- } | {
327
- name: "elementLinkSelector";
328
- sourceElementId: string;
329
- } | null;
330
- defaultSidebarDockedPreference: boolean;
331
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
332
- selectedElementIds: Readonly<{
333
- [id: string]: true;
334
- }>;
335
- hoveredElementIds: Readonly<{
336
- [id: string]: true;
337
- }>;
338
- previousSelectedElementIds: {
339
- [id: string]: true;
340
- };
341
- selectedElementsAreBeingDragged: boolean;
342
- shouldCacheIgnoreZoom: boolean;
343
- toast: {
344
- message: string;
345
- closable?: boolean | undefined;
346
- duration?: number | undefined;
347
- } | null;
348
- zenModeEnabled: boolean;
349
- theme: import("@excalidraw/element/types").Theme;
350
- gridSize: number;
351
- gridStep: number;
352
- gridModeEnabled: boolean;
353
- viewModeEnabled: boolean;
354
- selectedGroupIds: {
355
- [groupId: string]: boolean;
356
- };
357
- editingGroupId: string | null;
358
- width: number;
359
- height: number;
360
- offsetTop: number;
361
- offsetLeft: number;
362
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
363
- collaborators: Map<import("../types").SocketId, Readonly<{
364
- pointer?: import("../types").CollaboratorPointer | undefined;
365
- button?: "up" | "down" | undefined;
366
- selectedElementIds?: Readonly<{
367
- [id: string]: true;
368
- }> | undefined;
369
- username?: string | null | undefined;
370
- userState?: import("@excalidraw/common").UserIdleState | undefined;
371
- color?: {
372
- background: string;
373
- stroke: string;
374
- } | undefined;
375
- avatarUrl?: string | undefined;
376
- id?: string | undefined;
377
- socketId?: import("../types").SocketId | undefined;
378
- isCurrentUser?: boolean | undefined;
379
- isInCall?: boolean | undefined;
380
- isSpeaking?: boolean | undefined;
381
- isMuted?: boolean | undefined;
382
- }>>;
383
- stats: {
384
- open: boolean;
385
- panels: number;
386
- };
387
- currentChartType: import("@excalidraw/element/types").ChartType;
388
- pasteDialog: {
389
- shown: false;
390
- data: null;
391
- } | {
392
- shown: true;
393
- data: import("../charts").Spreadsheet;
394
- };
395
- showHyperlinkPopup: false | "info" | "editor";
396
- linkOpacity: number;
397
- colorPalette?: {
398
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
399
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
400
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
401
- topPicks: {
402
- canvasBackground: [string, string, string, string, string];
403
- elementStroke: [string, string, string, string, string];
404
- elementBackground: [string, string, string, string, string];
405
- };
406
- } | undefined;
407
- allowWheelZoom?: boolean | undefined;
408
- allowPinchZoom?: boolean | undefined;
409
- disableContextMenu: boolean;
410
- pinnedScripts?: string[] | undefined;
411
- customPens?: any[] | undefined;
412
- currentStrokeOptions?: any;
413
- resetCustomPen?: any;
414
- gridColor: {
415
- Bold: string;
416
- Regular: string;
417
- };
418
- gridDirection: {
419
- horizontal: boolean;
420
- vertical: boolean;
421
- };
422
- highlightSearchResult: boolean;
423
- dynamicStyle: {
424
- [x: string]: string;
425
- };
426
- frameColor: {
427
- stroke: string;
428
- fill: string;
429
- nameColor: string;
430
- };
431
- invertBindingBehaviour: boolean;
432
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
433
- snapLines: readonly import("../snapping").SnapLine[];
434
- originSnapOffset: {
435
- x: number;
436
- y: number;
437
- } | null;
438
- objectsSnapModeEnabled: boolean;
439
- userToFollow: import("../types").UserToFollow | null;
440
- followedBy: Set<import("../types").SocketId>;
441
- isCropping: boolean;
442
- croppingElementId: string | null;
443
- searchMatches: Readonly<{
444
- focusedId: string | null;
445
- matches: readonly import("../types").SearchMatch[];
446
- }> | null;
447
- activeLockedId: string | null;
448
- lockedMultiSelections: {
449
- [groupId: string]: true;
450
- };
451
- };
452
- } | {
453
- captureUpdate: "EVENTUALLY";
454
- appState?: undefined;
455
- }>;
456
- keyTest: undefined;
457
- } & {
458
- keyTest?: undefined;
459
- };
460
- export declare const actionCut: {
461
- name: "cut";
462
- label: string;
463
- icon: import("react/jsx-runtime").JSX.Element;
464
- trackEvent: {
465
- category: "element";
466
- };
467
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
468
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
469
- appState: {
470
- selectedLinearElement: null;
471
- contextMenu: {
472
- items: import("../components/ContextMenu").ContextMenuItems;
473
- top: number;
474
- left: number;
475
- } | null;
476
- showWelcomeScreen: boolean;
477
- isLoading: boolean;
478
- errorMessage: import("react").ReactNode;
479
- activeEmbeddable: {
480
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
481
- state: "active" | "hover";
482
- } | null;
483
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
484
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
485
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
486
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
487
- isBindingEnabled: boolean;
488
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
489
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
490
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
491
- frameRendering: {
492
- enabled: boolean;
493
- name: boolean;
494
- outline: boolean;
495
- clip: boolean;
496
- markerName: boolean;
497
- markerEnabled: boolean;
498
- };
499
- editingFrame: string | null;
500
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
501
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
502
- activeTool: {
503
- lastActiveTool: import("../types").ActiveTool | null;
504
- locked: boolean;
505
- fromSelection: boolean;
506
- } & import("../types").ActiveTool;
507
- preferredSelectionTool: {
508
- type: "selection" | "lasso";
509
- initialized: boolean;
510
- };
511
- penMode: boolean;
512
- penDetected: boolean;
513
- exportBackground: boolean;
514
- exportEmbedScene: boolean;
515
- exportWithDarkMode: boolean;
516
- exportScale: number;
517
- currentItemStrokeColor: string;
518
- currentItemBackgroundColor: string;
519
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
520
- currentItemStrokeWidth: number;
521
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
522
- currentItemRoughness: number;
523
- currentItemOpacity: number;
524
- currentItemFontFamily: number;
525
- currentItemFontSize: number;
526
- currentItemTextAlign: string;
527
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
528
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
529
- currentHoveredFontFamily: number | null;
530
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
531
- currentItemArrowType: "round" | "sharp" | "elbow";
532
- currentItemFrameRole: ("marker" | null) | undefined;
533
- viewBackgroundColor: string;
534
- scrollX: number;
535
- scrollY: number;
536
- cursorButton: "up" | "down";
537
- scrolledOutside: boolean;
538
- name: string | null;
539
- isResizing: boolean;
540
- isRotating: boolean;
541
- zoom: Readonly<{
542
- value: import("../types").NormalizedZoomValue;
543
- }>;
544
- openMenu: "canvas" | "shape" | null;
545
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
546
- openSidebar: {
547
- name: string;
548
- tab?: string | undefined;
549
- } | null;
550
- openDialog: {
551
- name: "help" | "imageExport" | "jsonExport";
552
- } | {
553
- name: "ttd";
554
- tab: "mermaid" | "text-to-diagram";
555
- } | {
556
- name: "commandPalette";
557
- } | {
558
- name: "elementLinkSelector";
559
- sourceElementId: string;
560
- } | null;
561
- defaultSidebarDockedPreference: boolean;
562
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
563
- selectedElementIds: Readonly<{
564
- [id: string]: true;
565
- }>;
566
- hoveredElementIds: Readonly<{
567
- [id: string]: true;
568
- }>;
569
- previousSelectedElementIds: {
570
- [id: string]: true;
571
- };
572
- selectedElementsAreBeingDragged: boolean;
573
- shouldCacheIgnoreZoom: boolean;
574
- toast: {
575
- message: string;
576
- closable?: boolean | undefined;
577
- duration?: number | undefined;
578
- } | null;
579
- zenModeEnabled: boolean;
580
- theme: import("@excalidraw/element/types").Theme;
581
- gridSize: number;
582
- gridStep: number;
583
- gridModeEnabled: boolean;
584
- viewModeEnabled: boolean;
585
- selectedGroupIds: {
586
- [groupId: string]: boolean;
587
- };
588
- editingGroupId: string | null;
589
- width: number;
590
- height: number;
591
- offsetTop: number;
592
- offsetLeft: number;
593
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
594
- collaborators: Map<import("../types").SocketId, Readonly<{
595
- pointer?: import("../types").CollaboratorPointer | undefined;
596
- button?: "up" | "down" | undefined;
597
- selectedElementIds?: Readonly<{
598
- [id: string]: true;
599
- }> | undefined;
600
- username?: string | null | undefined;
601
- userState?: import("@excalidraw/common").UserIdleState | undefined;
602
- color?: {
603
- background: string;
604
- stroke: string;
605
- } | undefined;
606
- avatarUrl?: string | undefined;
607
- id?: string | undefined;
608
- socketId?: import("../types").SocketId | undefined;
609
- isCurrentUser?: boolean | undefined;
610
- isInCall?: boolean | undefined;
611
- isSpeaking?: boolean | undefined;
612
- isMuted?: boolean | undefined;
613
- }>>;
614
- stats: {
615
- open: boolean;
616
- panels: number;
617
- };
618
- currentChartType: import("@excalidraw/element/types").ChartType;
619
- pasteDialog: {
620
- shown: false;
621
- data: null;
622
- } | {
623
- shown: true;
624
- data: import("../charts").Spreadsheet;
625
- };
626
- showHyperlinkPopup: false | "info" | "editor";
627
- linkOpacity: number;
628
- colorPalette?: {
629
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
630
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
631
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
632
- topPicks: {
633
- canvasBackground: [string, string, string, string, string];
634
- elementStroke: [string, string, string, string, string];
635
- elementBackground: [string, string, string, string, string];
636
- };
637
- } | undefined;
638
- allowWheelZoom?: boolean | undefined;
639
- allowPinchZoom?: boolean | undefined;
640
- disableContextMenu: boolean;
641
- pinnedScripts?: string[] | undefined;
642
- customPens?: any[] | undefined;
643
- currentStrokeOptions?: any;
644
- resetCustomPen?: any;
645
- gridColor: {
646
- Bold: string;
647
- Regular: string;
648
- };
649
- gridDirection: {
650
- horizontal: boolean;
651
- vertical: boolean;
652
- };
653
- highlightSearchResult: boolean;
654
- dynamicStyle: {
655
- [x: string]: string;
656
- };
657
- frameColor: {
658
- stroke: string;
659
- fill: string;
660
- nameColor: string;
661
- };
662
- invertBindingBehaviour: boolean;
663
- snapLines: readonly import("../snapping").SnapLine[];
664
- originSnapOffset: {
665
- x: number;
666
- y: number;
667
- } | null;
668
- objectsSnapModeEnabled: boolean;
669
- userToFollow: import("../types").UserToFollow | null;
670
- followedBy: Set<import("../types").SocketId>;
671
- isCropping: boolean;
672
- croppingElementId: string | null;
673
- searchMatches: Readonly<{
674
- focusedId: string | null;
675
- matches: readonly import("../types").SearchMatch[];
676
- }> | null;
677
- activeLockedId: string | null;
678
- lockedMultiSelections: {
679
- [groupId: string]: true;
680
- };
681
- };
682
- captureUpdate: "IMMEDIATELY";
683
- } | {
684
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
1
+ export declare const actionCopy: import("./types").Action<ClipboardEvent | null> & {
2
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
3
+ };
4
+ export declare const actionPaste: {
5
+ name: "paste";
6
+ label: string;
7
+ trackEvent: {
8
+ category: "element";
9
+ };
10
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: unknown, app: import("../types").AppClassProperties) => Promise<false | {
11
+ captureUpdate: "EVENTUALLY";
685
12
  appState: {
686
- selectedLinearElement: {
687
- selectedPointsIndices: number[];
688
- startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
689
- endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
690
- elementId: string & {
691
- _brand: "excalidrawLinearElementId";
692
- };
693
- pointerDownState: Readonly<{
694
- prevSelectedPointsIndices: readonly number[] | null;
695
- lastClickedPoint: number;
696
- lastClickedIsEndPoint: boolean;
697
- origin: Readonly<{
698
- x: number;
699
- y: number;
700
- }> | null;
701
- segmentMidpoint: {
702
- value: import("@excalidraw/math").GlobalPoint | null;
703
- index: number | null;
704
- added: boolean;
705
- };
706
- }>;
707
- isDragging: boolean;
708
- lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
709
- pointerOffset: Readonly<{
710
- x: number;
711
- y: number;
712
- }>;
713
- hoverPointIndex: number;
714
- segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
715
- elbowed: boolean;
716
- customLineAngle: number | null;
717
- isEditing: boolean;
718
- };
13
+ errorMessage: string;
719
14
  contextMenu: {
720
15
  items: import("../components/ContextMenu").ContextMenuItems;
721
16
  top: number;
@@ -723,7 +18,6 @@ export declare const actionCut: {
723
18
  } | null;
724
19
  showWelcomeScreen: boolean;
725
20
  isLoading: boolean;
726
- errorMessage: import("react").ReactNode;
727
21
  activeEmbeddable: {
728
22
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
729
23
  state: "active" | "hover";
@@ -734,7 +28,7 @@ export declare const actionCut: {
734
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
735
29
  isBindingEnabled: boolean;
736
30
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
737
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
738
32
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
739
33
  frameRendering: {
740
34
  enabled: boolean;
@@ -796,12 +90,14 @@ export declare const actionCut: {
796
90
  tab?: string | undefined;
797
91
  } | null;
798
92
  openDialog: {
799
- name: "help" | "imageExport" | "jsonExport";
93
+ name: "imageExport" | "help" | "jsonExport";
800
94
  } | {
801
95
  name: "ttd";
802
96
  tab: "mermaid" | "text-to-diagram";
803
97
  } | {
804
98
  name: "commandPalette";
99
+ } | {
100
+ name: "settings";
805
101
  } | {
806
102
  name: "elementLinkSelector";
807
103
  sourceElementId: string;
@@ -908,6 +204,7 @@ export declare const actionCut: {
908
204
  nameColor: string;
909
205
  };
910
206
  invertBindingBehaviour: boolean;
207
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
911
208
  snapLines: readonly import("../snapping").SnapLine[];
912
209
  originSnapOffset: {
913
210
  x: number;
@@ -926,225 +223,18 @@ export declare const actionCut: {
926
223
  lockedMultiSelections: {
927
224
  [groupId: string]: true;
928
225
  };
226
+ bindMode: import("@excalidraw/element/types").BindMode;
929
227
  };
930
- captureUpdate: "IMMEDIATELY";
931
228
  } | {
932
- elements: import("@excalidraw/element/types").ExcalidrawElement[];
933
- appState: {
934
- activeTool: {
935
- lastActiveTool: import("../types").ActiveTool | null;
936
- locked: boolean;
937
- fromSelection: boolean;
938
- } & import("../types").ActiveTool;
939
- multiElement: null;
940
- activeEmbeddable: null;
941
- selectedLinearElement: null;
942
- editingGroupId: string | null;
943
- selectedElementIds: Readonly<{
944
- [id: string]: true;
945
- }>;
946
- selectedGroupIds: {
947
- [groupId: string]: boolean;
948
- };
949
- contextMenu: {
950
- items: import("../components/ContextMenu").ContextMenuItems;
951
- top: number;
952
- left: number;
953
- } | null;
954
- showWelcomeScreen: boolean;
955
- isLoading: boolean;
956
- errorMessage: import("react").ReactNode;
957
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
958
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
959
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
960
- isBindingEnabled: boolean;
961
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
962
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
963
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
964
- frameRendering: {
965
- enabled: boolean;
966
- name: boolean;
967
- outline: boolean;
968
- clip: boolean;
969
- markerName: boolean;
970
- markerEnabled: boolean;
971
- };
972
- editingFrame: string | null;
973
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
974
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
975
- preferredSelectionTool: {
976
- type: "selection" | "lasso";
977
- initialized: boolean;
978
- };
979
- penMode: boolean;
980
- penDetected: boolean;
981
- exportBackground: boolean;
982
- exportEmbedScene: boolean;
983
- exportWithDarkMode: boolean;
984
- exportScale: number;
985
- currentItemStrokeColor: string;
986
- currentItemBackgroundColor: string;
987
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
988
- currentItemStrokeWidth: number;
989
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
990
- currentItemRoughness: number;
991
- currentItemOpacity: number;
992
- currentItemFontFamily: number;
993
- currentItemFontSize: number;
994
- currentItemTextAlign: string;
995
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
996
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
997
- currentHoveredFontFamily: number | null;
998
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
999
- currentItemArrowType: "round" | "sharp" | "elbow";
1000
- currentItemFrameRole: ("marker" | null) | undefined;
1001
- viewBackgroundColor: string;
1002
- scrollX: number;
1003
- scrollY: number;
1004
- cursorButton: "up" | "down";
1005
- scrolledOutside: boolean;
1006
- name: string | null;
1007
- isResizing: boolean;
1008
- isRotating: boolean;
1009
- zoom: Readonly<{
1010
- value: import("../types").NormalizedZoomValue;
1011
- }>;
1012
- openMenu: "canvas" | "shape" | null;
1013
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1014
- openSidebar: {
1015
- name: string;
1016
- tab?: string | undefined;
1017
- } | null;
1018
- openDialog: {
1019
- name: "help" | "imageExport" | "jsonExport";
1020
- } | {
1021
- name: "ttd";
1022
- tab: "mermaid" | "text-to-diagram";
1023
- } | {
1024
- name: "commandPalette";
1025
- } | {
1026
- name: "elementLinkSelector";
1027
- sourceElementId: string;
1028
- } | null;
1029
- defaultSidebarDockedPreference: boolean;
1030
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1031
- hoveredElementIds: Readonly<{
1032
- [id: string]: true;
1033
- }>;
1034
- previousSelectedElementIds: {
1035
- [id: string]: true;
1036
- };
1037
- selectedElementsAreBeingDragged: boolean;
1038
- shouldCacheIgnoreZoom: boolean;
1039
- toast: {
1040
- message: string;
1041
- closable?: boolean | undefined;
1042
- duration?: number | undefined;
1043
- } | null;
1044
- zenModeEnabled: boolean;
1045
- theme: import("@excalidraw/element/types").Theme;
1046
- gridSize: number;
1047
- gridStep: number;
1048
- gridModeEnabled: boolean;
1049
- viewModeEnabled: boolean;
1050
- width: number;
1051
- height: number;
1052
- offsetTop: number;
1053
- offsetLeft: number;
1054
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1055
- collaborators: Map<import("../types").SocketId, Readonly<{
1056
- pointer?: import("../types").CollaboratorPointer | undefined;
1057
- button?: "up" | "down" | undefined;
1058
- selectedElementIds?: Readonly<{
1059
- [id: string]: true;
1060
- }> | undefined;
1061
- username?: string | null | undefined;
1062
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1063
- color?: {
1064
- background: string;
1065
- stroke: string;
1066
- } | undefined;
1067
- avatarUrl?: string | undefined;
1068
- id?: string | undefined;
1069
- socketId?: import("../types").SocketId | undefined;
1070
- isCurrentUser?: boolean | undefined;
1071
- isInCall?: boolean | undefined;
1072
- isSpeaking?: boolean | undefined;
1073
- isMuted?: boolean | undefined;
1074
- }>>;
1075
- stats: {
1076
- open: boolean;
1077
- panels: number;
1078
- };
1079
- currentChartType: import("@excalidraw/element/types").ChartType;
1080
- pasteDialog: {
1081
- shown: false;
1082
- data: null;
1083
- } | {
1084
- shown: true;
1085
- data: import("../charts").Spreadsheet;
1086
- };
1087
- showHyperlinkPopup: false | "info" | "editor";
1088
- linkOpacity: number;
1089
- colorPalette?: {
1090
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1091
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1092
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1093
- topPicks: {
1094
- canvasBackground: [string, string, string, string, string];
1095
- elementStroke: [string, string, string, string, string];
1096
- elementBackground: [string, string, string, string, string];
1097
- };
1098
- } | undefined;
1099
- allowWheelZoom?: boolean | undefined;
1100
- allowPinchZoom?: boolean | undefined;
1101
- disableContextMenu: boolean;
1102
- pinnedScripts?: string[] | undefined;
1103
- customPens?: any[] | undefined;
1104
- currentStrokeOptions?: any;
1105
- resetCustomPen?: any;
1106
- gridColor: {
1107
- Bold: string;
1108
- Regular: string;
1109
- };
1110
- gridDirection: {
1111
- horizontal: boolean;
1112
- vertical: boolean;
1113
- };
1114
- highlightSearchResult: boolean;
1115
- dynamicStyle: {
1116
- [x: string]: string;
1117
- };
1118
- frameColor: {
1119
- stroke: string;
1120
- fill: string;
1121
- nameColor: string;
1122
- };
1123
- invertBindingBehaviour: boolean;
1124
- snapLines: readonly import("../snapping").SnapLine[];
1125
- originSnapOffset: {
1126
- x: number;
1127
- y: number;
1128
- } | null;
1129
- objectsSnapModeEnabled: boolean;
1130
- userToFollow: import("../types").UserToFollow | null;
1131
- followedBy: Set<import("../types").SocketId>;
1132
- isCropping: boolean;
1133
- croppingElementId: string | null;
1134
- searchMatches: Readonly<{
1135
- focusedId: string | null;
1136
- matches: readonly import("../types").SearchMatch[];
1137
- }> | null;
1138
- activeLockedId: string | null;
1139
- lockedMultiSelections: {
1140
- [groupId: string]: true;
1141
- };
1142
- };
1143
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
1144
- };
1145
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
229
+ captureUpdate: "EVENTUALLY";
230
+ appState?: undefined;
231
+ }>;
232
+ keyTest: undefined;
1146
233
  } & {
1147
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
234
+ keyTest?: undefined;
235
+ };
236
+ export declare const actionCut: import("./types").Action<ClipboardEvent | null> & {
237
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
1148
238
  };
1149
239
  export declare const actionCopyAsSvg: {
1150
240
  name: "copyAsSvg";
@@ -1153,7 +243,7 @@ export declare const actionCopyAsSvg: {
1153
243
  trackEvent: {
1154
244
  category: "element";
1155
245
  };
1156
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
246
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
1157
247
  captureUpdate: "EVENTUALLY";
1158
248
  appState?: undefined;
1159
249
  } | {
@@ -1183,7 +273,7 @@ export declare const actionCopyAsPng: {
1183
273
  trackEvent: {
1184
274
  category: "element";
1185
275
  };
1186
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
276
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
1187
277
  captureUpdate: "EVENTUALLY";
1188
278
  appState?: undefined;
1189
279
  } | {
@@ -1206,7 +296,7 @@ export declare const actionCopyAsPng: {
1206
296
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1207
297
  isBindingEnabled: boolean;
1208
298
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1209
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
299
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1210
300
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1211
301
  frameRendering: {
1212
302
  enabled: boolean;
@@ -1268,12 +358,14 @@ export declare const actionCopyAsPng: {
1268
358
  tab?: string | undefined;
1269
359
  } | null;
1270
360
  openDialog: {
1271
- name: "help" | "imageExport" | "jsonExport";
361
+ name: "imageExport" | "help" | "jsonExport";
1272
362
  } | {
1273
363
  name: "ttd";
1274
364
  tab: "mermaid" | "text-to-diagram";
1275
365
  } | {
1276
366
  name: "commandPalette";
367
+ } | {
368
+ name: "settings";
1277
369
  } | {
1278
370
  name: "elementLinkSelector";
1279
371
  sourceElementId: string;
@@ -1399,6 +491,7 @@ export declare const actionCopyAsPng: {
1399
491
  lockedMultiSelections: {
1400
492
  [groupId: string]: true;
1401
493
  };
494
+ bindMode: import("@excalidraw/element/types").BindMode;
1402
495
  };
1403
496
  captureUpdate: "EVENTUALLY";
1404
497
  }>;
@@ -1414,7 +507,7 @@ export declare const copyText: {
1414
507
  trackEvent: {
1415
508
  category: "element";
1416
509
  };
1417
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
510
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1418
511
  captureUpdate: "EVENTUALLY";
1419
512
  };
1420
513
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;