@excalidraw/math 0.18.0-b9d27d3 → 0.18.0-c141960

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/dev/index.js +58 -61
  2. package/dist/dev/index.js.map +3 -3
  3. package/dist/prod/index.js +1 -1
  4. package/dist/types/common/src/constants.d.ts +9 -13
  5. package/dist/types/common/src/editorInterface.d.ts +34 -0
  6. package/dist/types/common/src/index.d.ts +2 -0
  7. package/dist/types/common/src/utils.d.ts +9 -3
  8. package/dist/types/common/src/visualdebug.d.ts +41 -0
  9. package/dist/types/element/src/binding.d.ts +55 -43
  10. package/dist/types/element/src/collision.d.ts +6 -2
  11. package/dist/types/element/src/index.d.ts +0 -3
  12. package/dist/types/element/src/linearElementEditor.d.ts +15 -18
  13. package/dist/types/element/src/renderElement.d.ts +5 -2
  14. package/dist/types/element/src/resizeTest.d.ts +5 -4
  15. package/dist/types/element/src/transformHandles.d.ts +5 -4
  16. package/dist/types/element/src/typeChecks.d.ts +2 -3
  17. package/dist/types/element/src/types.d.ts +7 -11
  18. package/dist/types/element/src/utils.d.ts +2 -1
  19. package/dist/types/element/src/zindex.d.ts +7 -1
  20. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +34 -13
  21. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  22. package/dist/types/excalidraw/actions/actionBoundText.d.ts +25 -11
  23. package/dist/types/excalidraw/actions/actionCanvas.d.ts +152 -275
  24. package/dist/types/excalidraw/actions/actionClipboard.d.ts +46 -773
  25. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +12 -5
  26. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +42 -23
  27. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  28. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  29. package/dist/types/excalidraw/actions/actionElementLink.d.ts +11 -6
  30. package/dist/types/excalidraw/actions/actionElementLock.d.ts +23 -9
  31. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +12 -5
  32. package/dist/types/excalidraw/actions/actionExport.d.ts +68 -943
  33. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -393
  34. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -2
  35. package/dist/types/excalidraw/actions/actionFrame.d.ts +50 -24
  36. package/dist/types/excalidraw/actions/actionGroup.d.ts +24 -10
  37. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +22 -19
  38. package/dist/types/excalidraw/actions/actionLink.d.ts +9 -2
  39. package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -371
  40. package/dist/types/excalidraw/actions/actionNavigate.d.ts +21 -359
  41. package/dist/types/excalidraw/actions/actionProperties.d.ts +87 -2403
  42. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +12 -5
  43. package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -6
  44. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  45. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +11 -4
  46. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +11 -4
  47. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -5
  48. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  49. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +11 -4
  50. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +11 -4
  51. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +12 -5
  52. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -2
  53. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  54. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  55. package/dist/types/excalidraw/actions/register.d.ts +1 -1
  56. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  57. package/dist/types/excalidraw/appState.d.ts +9 -4
  58. package/dist/types/excalidraw/clipboard.d.ts +2 -0
  59. package/dist/types/excalidraw/components/Actions.d.ts +21 -4
  60. package/dist/types/excalidraw/components/App.d.ts +26 -19
  61. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  62. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  63. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  64. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  65. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
  66. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  67. package/dist/types/excalidraw/components/FilledButton.d.ts +1 -1
  68. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  69. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  70. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  71. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  72. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  73. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  74. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  75. package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
  76. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  77. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  78. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  79. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  80. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  81. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  82. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
  83. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  84. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  85. package/dist/types/excalidraw/components/icons.d.ts +10 -0
  86. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +13 -1
  87. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
  88. package/dist/types/excalidraw/data/blob.d.ts +2 -2
  89. package/dist/types/excalidraw/data/restore.d.ts +3 -3
  90. package/dist/types/excalidraw/data/types.d.ts +4 -1
  91. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  92. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
  93. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  94. package/dist/types/excalidraw/index.d.ts +2 -3
  95. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  96. package/dist/types/excalidraw/renderer/helpers.d.ts +2 -6
  97. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +5 -13
  98. package/dist/types/excalidraw/scene/types.d.ts +15 -3
  99. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  100. package/dist/types/excalidraw/types.d.ts +31 -21
  101. package/dist/types/math/src/segment.d.ts +1 -0
  102. package/package.json +2 -2
@@ -1,593 +1,17 @@
1
1
  /// <reference types="react" />
2
- export declare const actionCopy: {
3
- name: "copy";
4
- label: string;
5
- icon: import("react/jsx-runtime").JSX.Element;
6
- trackEvent: {
7
- category: "element";
8
- };
9
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
10
- captureUpdate: "EVENTUALLY";
11
- appState: {
12
- errorMessage: any;
13
- contextMenu: {
14
- items: import("../components/ContextMenu").ContextMenuItems;
15
- top: number;
16
- left: number;
17
- } | null;
18
- showWelcomeScreen: boolean;
19
- isLoading: boolean;
20
- activeEmbeddable: {
21
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
22
- state: "active" | "hover";
23
- } | null;
24
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
25
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
26
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
27
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
28
- isBindingEnabled: boolean;
29
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
32
- frameRendering: {
33
- enabled: boolean;
34
- name: boolean;
35
- outline: boolean;
36
- clip: boolean;
37
- };
38
- editingFrame: string | null;
39
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
40
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
41
- activeTool: {
42
- lastActiveTool: import("../types").ActiveTool | null;
43
- locked: boolean;
44
- fromSelection: boolean;
45
- } & import("../types").ActiveTool;
46
- penMode: boolean;
47
- penDetected: boolean;
48
- exportBackground: boolean;
49
- exportEmbedScene: boolean;
50
- exportWithDarkMode: boolean;
51
- exportScale: number;
52
- currentItemStrokeColor: string;
53
- currentItemBackgroundColor: string;
54
- currentItemFillStyle: import("../../element/src/types").FillStyle;
55
- currentItemStrokeWidth: number;
56
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
57
- currentItemRoughness: number;
58
- currentItemOpacity: number;
59
- currentItemFontFamily: number;
60
- currentItemFontSize: number;
61
- currentItemTextAlign: string;
62
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
63
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
64
- currentHoveredFontFamily: number | null;
65
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
66
- currentItemArrowType: "round" | "sharp" | "elbow";
67
- viewBackgroundColor: string;
68
- scrollX: number;
69
- scrollY: number;
70
- cursorButton: "up" | "down";
71
- scrolledOutside: boolean;
72
- name: string | null;
73
- isResizing: boolean;
74
- isRotating: boolean;
75
- zoom: Readonly<{
76
- value: import("../types").NormalizedZoomValue;
77
- }>;
78
- openMenu: "canvas" | "shape" | null;
79
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
80
- openSidebar: {
81
- name: string;
82
- tab?: string | undefined;
83
- } | null;
84
- openDialog: {
85
- name: "imageExport" | "help" | "jsonExport";
86
- } | {
87
- name: "ttd";
88
- tab: "mermaid" | "text-to-diagram";
89
- } | {
90
- name: "commandPalette";
91
- } | {
92
- name: "elementLinkSelector";
93
- sourceElementId: string;
94
- } | null;
95
- defaultSidebarDockedPreference: boolean;
96
- lastPointerDownWith: import("../../element/src/types").PointerType;
97
- selectedElementIds: Readonly<{
98
- [id: string]: true;
99
- }>;
100
- hoveredElementIds: Readonly<{
101
- [id: string]: true;
102
- }>;
103
- previousSelectedElementIds: {
104
- [id: string]: true;
105
- };
106
- selectedElementsAreBeingDragged: boolean;
107
- shouldCacheIgnoreZoom: boolean;
108
- toast: {
109
- message: string;
110
- closable?: boolean | undefined;
111
- duration?: number | undefined;
112
- } | null;
113
- zenModeEnabled: boolean;
114
- theme: import("../../element/src/types").Theme;
115
- gridSize: number;
116
- gridStep: number;
117
- gridModeEnabled: boolean;
118
- viewModeEnabled: boolean;
119
- selectedGroupIds: {
120
- [groupId: string]: boolean;
121
- };
122
- editingGroupId: string | null;
123
- width: number;
124
- height: number;
125
- offsetTop: number;
126
- offsetLeft: number;
127
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
128
- collaborators: Map<import("../types").SocketId, Readonly<{
129
- pointer?: import("../types").CollaboratorPointer | undefined;
130
- button?: "up" | "down" | undefined;
131
- selectedElementIds?: Readonly<{
132
- [id: string]: true;
133
- }> | undefined;
134
- username?: string | null | undefined;
135
- userState?: import("@excalidraw/common").UserIdleState | undefined;
136
- color?: {
137
- background: string;
138
- stroke: string;
139
- } | undefined;
140
- avatarUrl?: string | undefined;
141
- id?: string | undefined;
142
- socketId?: import("../types").SocketId | undefined;
143
- isCurrentUser?: boolean | undefined;
144
- isInCall?: boolean | undefined;
145
- isSpeaking?: boolean | undefined;
146
- isMuted?: boolean | undefined;
147
- }>>;
148
- stats: {
149
- open: boolean;
150
- panels: number;
151
- };
152
- currentChartType: import("../../element/src/types").ChartType;
153
- pasteDialog: {
154
- shown: false;
155
- data: null;
156
- } | {
157
- shown: true;
158
- data: import("../charts").Spreadsheet;
159
- };
160
- showHyperlinkPopup: false | "editor" | "info";
161
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
- snapLines: readonly import("../snapping").SnapLine[];
163
- originSnapOffset: {
164
- x: number;
165
- y: number;
166
- } | null;
167
- objectsSnapModeEnabled: boolean;
168
- userToFollow: import("../types").UserToFollow | null;
169
- followedBy: Set<import("../types").SocketId>;
170
- isCropping: boolean;
171
- croppingElementId: string | null;
172
- searchMatches: Readonly<{
173
- focusedId: string | null;
174
- matches: readonly import("../types").SearchMatch[];
175
- }> | null;
176
- activeLockedId: string | null;
177
- lockedMultiSelections: {
178
- [groupId: string]: true;
179
- };
180
- };
181
- } | {
182
- captureUpdate: "EVENTUALLY";
183
- appState?: undefined;
184
- }>;
185
- keyTest: undefined;
186
- } & {
187
- keyTest?: undefined;
188
- };
189
- export declare const actionPaste: {
190
- name: "paste";
191
- label: string;
192
- trackEvent: {
193
- category: "element";
194
- };
195
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
196
- captureUpdate: "EVENTUALLY";
197
- appState: {
198
- errorMessage: string;
199
- contextMenu: {
200
- items: import("../components/ContextMenu").ContextMenuItems;
201
- top: number;
202
- left: number;
203
- } | null;
204
- showWelcomeScreen: boolean;
205
- isLoading: boolean;
206
- activeEmbeddable: {
207
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
208
- state: "active" | "hover";
209
- } | null;
210
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
211
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
212
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
213
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
214
- isBindingEnabled: boolean;
215
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
216
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
217
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
218
- frameRendering: {
219
- enabled: boolean;
220
- name: boolean;
221
- outline: boolean;
222
- clip: boolean;
223
- };
224
- editingFrame: string | null;
225
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
226
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
227
- activeTool: {
228
- lastActiveTool: import("../types").ActiveTool | null;
229
- locked: boolean;
230
- fromSelection: boolean;
231
- } & import("../types").ActiveTool;
232
- penMode: boolean;
233
- penDetected: boolean;
234
- exportBackground: boolean;
235
- exportEmbedScene: boolean;
236
- exportWithDarkMode: boolean;
237
- exportScale: number;
238
- currentItemStrokeColor: string;
239
- currentItemBackgroundColor: string;
240
- currentItemFillStyle: import("../../element/src/types").FillStyle;
241
- currentItemStrokeWidth: number;
242
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
243
- currentItemRoughness: number;
244
- currentItemOpacity: number;
245
- currentItemFontFamily: number;
246
- currentItemFontSize: number;
247
- currentItemTextAlign: string;
248
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
249
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
250
- currentHoveredFontFamily: number | null;
251
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
252
- currentItemArrowType: "round" | "sharp" | "elbow";
253
- viewBackgroundColor: string;
254
- scrollX: number;
255
- scrollY: number;
256
- cursorButton: "up" | "down";
257
- scrolledOutside: boolean;
258
- name: string | null;
259
- isResizing: boolean;
260
- isRotating: boolean;
261
- zoom: Readonly<{
262
- value: import("../types").NormalizedZoomValue;
263
- }>;
264
- openMenu: "canvas" | "shape" | null;
265
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
266
- openSidebar: {
267
- name: string;
268
- tab?: string | undefined;
269
- } | null;
270
- openDialog: {
271
- name: "imageExport" | "help" | "jsonExport";
272
- } | {
273
- name: "ttd";
274
- tab: "mermaid" | "text-to-diagram";
275
- } | {
276
- name: "commandPalette";
277
- } | {
278
- name: "elementLinkSelector";
279
- sourceElementId: string;
280
- } | null;
281
- defaultSidebarDockedPreference: boolean;
282
- lastPointerDownWith: import("../../element/src/types").PointerType;
283
- selectedElementIds: Readonly<{
284
- [id: string]: true;
285
- }>;
286
- hoveredElementIds: Readonly<{
287
- [id: string]: true;
288
- }>;
289
- previousSelectedElementIds: {
290
- [id: string]: true;
291
- };
292
- selectedElementsAreBeingDragged: boolean;
293
- shouldCacheIgnoreZoom: boolean;
294
- toast: {
295
- message: string;
296
- closable?: boolean | undefined;
297
- duration?: number | undefined;
298
- } | null;
299
- zenModeEnabled: boolean;
300
- theme: import("../../element/src/types").Theme;
301
- gridSize: number;
302
- gridStep: number;
303
- gridModeEnabled: boolean;
304
- viewModeEnabled: boolean;
305
- selectedGroupIds: {
306
- [groupId: string]: boolean;
307
- };
308
- editingGroupId: string | null;
309
- width: number;
310
- height: number;
311
- offsetTop: number;
312
- offsetLeft: number;
313
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
314
- collaborators: Map<import("../types").SocketId, Readonly<{
315
- pointer?: import("../types").CollaboratorPointer | undefined;
316
- button?: "up" | "down" | undefined;
317
- selectedElementIds?: Readonly<{
318
- [id: string]: true;
319
- }> | undefined;
320
- username?: string | null | undefined;
321
- userState?: import("@excalidraw/common").UserIdleState | undefined;
322
- color?: {
323
- background: string;
324
- stroke: string;
325
- } | undefined;
326
- avatarUrl?: string | undefined;
327
- id?: string | undefined;
328
- socketId?: import("../types").SocketId | undefined;
329
- isCurrentUser?: boolean | undefined;
330
- isInCall?: boolean | undefined;
331
- isSpeaking?: boolean | undefined;
332
- isMuted?: boolean | undefined;
333
- }>>;
334
- stats: {
335
- open: boolean;
336
- panels: number;
337
- };
338
- currentChartType: import("../../element/src/types").ChartType;
339
- pasteDialog: {
340
- shown: false;
341
- data: null;
342
- } | {
343
- shown: true;
344
- data: import("../charts").Spreadsheet;
345
- };
346
- showHyperlinkPopup: false | "editor" | "info";
347
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
348
- snapLines: readonly import("../snapping").SnapLine[];
349
- originSnapOffset: {
350
- x: number;
351
- y: number;
352
- } | null;
353
- objectsSnapModeEnabled: boolean;
354
- userToFollow: import("../types").UserToFollow | null;
355
- followedBy: Set<import("../types").SocketId>;
356
- isCropping: boolean;
357
- croppingElementId: string | null;
358
- searchMatches: Readonly<{
359
- focusedId: string | null;
360
- matches: readonly import("../types").SearchMatch[];
361
- }> | null;
362
- activeLockedId: string | null;
363
- lockedMultiSelections: {
364
- [groupId: string]: true;
365
- };
366
- };
367
- } | {
368
- captureUpdate: "EVENTUALLY";
369
- appState?: undefined;
370
- }>;
371
- keyTest: undefined;
372
- } & {
373
- keyTest?: undefined;
374
- };
375
- export declare const actionCut: {
376
- name: "cut";
377
- label: string;
378
- icon: import("react/jsx-runtime").JSX.Element;
379
- trackEvent: {
380
- category: "element";
381
- };
382
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
383
- elements: import("../../element/src/types").OrderedExcalidrawElement[];
384
- appState: {
385
- selectedLinearElement: null;
386
- contextMenu: {
387
- items: import("../components/ContextMenu").ContextMenuItems;
388
- top: number;
389
- left: number;
390
- } | null;
391
- showWelcomeScreen: boolean;
392
- isLoading: boolean;
393
- errorMessage: import("react").ReactNode;
394
- activeEmbeddable: {
395
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
396
- state: "active" | "hover";
397
- } | null;
398
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
399
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
400
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
401
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
402
- isBindingEnabled: boolean;
403
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
404
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
405
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
406
- frameRendering: {
407
- enabled: boolean;
408
- name: boolean;
409
- outline: boolean;
410
- clip: boolean;
411
- };
412
- editingFrame: string | null;
413
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
414
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
415
- activeTool: {
416
- lastActiveTool: import("../types").ActiveTool | null;
417
- locked: boolean;
418
- fromSelection: boolean;
419
- } & import("../types").ActiveTool;
420
- penMode: boolean;
421
- penDetected: boolean;
422
- exportBackground: boolean;
423
- exportEmbedScene: boolean;
424
- exportWithDarkMode: boolean;
425
- exportScale: number;
426
- currentItemStrokeColor: string;
427
- currentItemBackgroundColor: string;
428
- currentItemFillStyle: import("../../element/src/types").FillStyle;
429
- currentItemStrokeWidth: number;
430
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
431
- currentItemRoughness: number;
432
- currentItemOpacity: number;
433
- currentItemFontFamily: number;
434
- currentItemFontSize: number;
435
- currentItemTextAlign: string;
436
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
437
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
438
- currentHoveredFontFamily: number | null;
439
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
440
- currentItemArrowType: "round" | "sharp" | "elbow";
441
- viewBackgroundColor: string;
442
- scrollX: number;
443
- scrollY: number;
444
- cursorButton: "up" | "down";
445
- scrolledOutside: boolean;
446
- name: string | null;
447
- isResizing: boolean;
448
- isRotating: boolean;
449
- zoom: Readonly<{
450
- value: import("../types").NormalizedZoomValue;
451
- }>;
452
- openMenu: "canvas" | "shape" | null;
453
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
454
- openSidebar: {
455
- name: string;
456
- tab?: string | undefined;
457
- } | null;
458
- openDialog: {
459
- name: "imageExport" | "help" | "jsonExport";
460
- } | {
461
- name: "ttd";
462
- tab: "mermaid" | "text-to-diagram";
463
- } | {
464
- name: "commandPalette";
465
- } | {
466
- name: "elementLinkSelector";
467
- sourceElementId: string;
468
- } | null;
469
- defaultSidebarDockedPreference: boolean;
470
- lastPointerDownWith: import("../../element/src/types").PointerType;
471
- selectedElementIds: Readonly<{
472
- [id: string]: true;
473
- }>;
474
- hoveredElementIds: Readonly<{
475
- [id: string]: true;
476
- }>;
477
- previousSelectedElementIds: {
478
- [id: string]: true;
479
- };
480
- selectedElementsAreBeingDragged: boolean;
481
- shouldCacheIgnoreZoom: boolean;
482
- toast: {
483
- message: string;
484
- closable?: boolean | undefined;
485
- duration?: number | undefined;
486
- } | null;
487
- zenModeEnabled: boolean;
488
- theme: import("../../element/src/types").Theme;
489
- gridSize: number;
490
- gridStep: number;
491
- gridModeEnabled: boolean;
492
- viewModeEnabled: boolean;
493
- selectedGroupIds: {
494
- [groupId: string]: boolean;
495
- };
496
- editingGroupId: string | null;
497
- width: number;
498
- height: number;
499
- offsetTop: number;
500
- offsetLeft: number;
501
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
502
- collaborators: Map<import("../types").SocketId, Readonly<{
503
- pointer?: import("../types").CollaboratorPointer | undefined;
504
- button?: "up" | "down" | undefined;
505
- selectedElementIds?: Readonly<{
506
- [id: string]: true;
507
- }> | undefined;
508
- username?: string | null | undefined;
509
- userState?: import("@excalidraw/common").UserIdleState | undefined;
510
- color?: {
511
- background: string;
512
- stroke: string;
513
- } | undefined;
514
- avatarUrl?: string | undefined;
515
- id?: string | undefined;
516
- socketId?: import("../types").SocketId | undefined;
517
- isCurrentUser?: boolean | undefined;
518
- isInCall?: boolean | undefined;
519
- isSpeaking?: boolean | undefined;
520
- isMuted?: boolean | undefined;
521
- }>>;
522
- stats: {
523
- open: boolean;
524
- panels: number;
525
- };
526
- currentChartType: import("../../element/src/types").ChartType;
527
- pasteDialog: {
528
- shown: false;
529
- data: null;
530
- } | {
531
- shown: true;
532
- data: import("../charts").Spreadsheet;
533
- };
534
- showHyperlinkPopup: false | "editor" | "info";
535
- snapLines: readonly import("../snapping").SnapLine[];
536
- originSnapOffset: {
537
- x: number;
538
- y: number;
539
- } | null;
540
- objectsSnapModeEnabled: boolean;
541
- userToFollow: import("../types").UserToFollow | null;
542
- followedBy: Set<import("../types").SocketId>;
543
- isCropping: boolean;
544
- croppingElementId: string | null;
545
- searchMatches: Readonly<{
546
- focusedId: string | null;
547
- matches: readonly import("../types").SearchMatch[];
548
- }> | null;
549
- activeLockedId: string | null;
550
- lockedMultiSelections: {
551
- [groupId: string]: true;
552
- };
553
- };
554
- captureUpdate: "IMMEDIATELY";
555
- } | {
556
- elements: readonly import("../../element/src/types").OrderedExcalidrawElement[];
2
+ export declare const actionCopy: import("./types").Action<ClipboardEvent | null> & {
3
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly import("../../element/src/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
4
+ };
5
+ export declare const actionPaste: {
6
+ name: "paste";
7
+ label: string;
8
+ trackEvent: {
9
+ category: "element";
10
+ };
11
+ perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: unknown, app: import("../types").AppClassProperties) => Promise<false | {
12
+ captureUpdate: "EVENTUALLY";
557
13
  appState: {
558
- selectedLinearElement: {
559
- selectedPointsIndices: number[];
560
- startBindingElement: import("../../element/src/types").ExcalidrawBindableElement | "keep" | null;
561
- endBindingElement: import("../../element/src/types").ExcalidrawBindableElement | "keep" | null;
562
- elementId: string & {
563
- _brand: "excalidrawLinearElementId";
564
- };
565
- pointerDownState: Readonly<{
566
- prevSelectedPointsIndices: readonly number[] | null;
567
- lastClickedPoint: number;
568
- lastClickedIsEndPoint: boolean;
569
- origin: Readonly<{
570
- x: number;
571
- y: number;
572
- }> | null;
573
- segmentMidpoint: {
574
- value: import("@excalidraw/math").GlobalPoint | null;
575
- index: number | null;
576
- added: boolean;
577
- };
578
- }>;
579
- isDragging: boolean;
580
- lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
581
- pointerOffset: Readonly<{
582
- x: number;
583
- y: number;
584
- }>;
585
- hoverPointIndex: number;
586
- segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
587
- elbowed: boolean;
588
- customLineAngle: number | null;
589
- isEditing: boolean;
590
- };
14
+ errorMessage: string;
591
15
  contextMenu: {
592
16
  items: import("../components/ContextMenu").ContextMenuItems;
593
17
  top: number;
@@ -595,7 +19,6 @@ export declare const actionCut: {
595
19
  } | null;
596
20
  showWelcomeScreen: boolean;
597
21
  isLoading: boolean;
598
- errorMessage: import("react").ReactNode;
599
22
  activeEmbeddable: {
600
23
  element: import("../../element/src/types").NonDeletedExcalidrawElement;
601
24
  state: "active" | "hover";
@@ -606,7 +29,7 @@ export declare const actionCut: {
606
29
  selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
607
30
  isBindingEnabled: boolean;
608
31
  startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
609
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
32
+ suggestedBinding: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
610
33
  frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
611
34
  frameRendering: {
612
35
  enabled: boolean;
@@ -622,6 +45,10 @@ export declare const actionCut: {
622
45
  locked: boolean;
623
46
  fromSelection: boolean;
624
47
  } & import("../types").ActiveTool;
48
+ preferredSelectionTool: {
49
+ type: "selection" | "lasso";
50
+ initialized: boolean;
51
+ };
625
52
  penMode: boolean;
626
53
  penDetected: boolean;
627
54
  exportBackground: boolean;
@@ -654,8 +81,8 @@ export declare const actionCut: {
654
81
  zoom: Readonly<{
655
82
  value: import("../types").NormalizedZoomValue;
656
83
  }>;
657
- openMenu: "canvas" | "shape" | null;
658
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
84
+ openMenu: "canvas" | null;
85
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
659
86
  openSidebar: {
660
87
  name: string;
661
88
  tab?: string | undefined;
@@ -667,6 +94,8 @@ export declare const actionCut: {
667
94
  tab: "mermaid" | "text-to-diagram";
668
95
  } | {
669
96
  name: "commandPalette";
97
+ } | {
98
+ name: "settings";
670
99
  } | {
671
100
  name: "elementLinkSelector";
672
101
  sourceElementId: string;
@@ -736,7 +165,8 @@ export declare const actionCut: {
736
165
  shown: true;
737
166
  data: import("../charts").Spreadsheet;
738
167
  };
739
- showHyperlinkPopup: false | "editor" | "info";
168
+ showHyperlinkPopup: false | "info" | "editor";
169
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
740
170
  snapLines: readonly import("../snapping").SnapLine[];
741
171
  originSnapOffset: {
742
172
  x: number;
@@ -755,182 +185,18 @@ export declare const actionCut: {
755
185
  lockedMultiSelections: {
756
186
  [groupId: string]: true;
757
187
  };
188
+ bindMode: import("../../element/src/types").BindMode;
758
189
  };
759
- captureUpdate: "IMMEDIATELY";
760
190
  } | {
761
- elements: import("../../element/src/types").ExcalidrawElement[];
762
- appState: {
763
- activeTool: {
764
- lastActiveTool: import("../types").ActiveTool | null;
765
- locked: boolean;
766
- fromSelection: boolean;
767
- } & import("../types").ActiveTool;
768
- multiElement: null;
769
- activeEmbeddable: null;
770
- selectedLinearElement: null;
771
- editingGroupId: string | null;
772
- selectedElementIds: Readonly<{
773
- [id: string]: true;
774
- }>;
775
- selectedGroupIds: {
776
- [groupId: string]: boolean;
777
- };
778
- contextMenu: {
779
- items: import("../components/ContextMenu").ContextMenuItems;
780
- top: number;
781
- left: number;
782
- } | null;
783
- showWelcomeScreen: boolean;
784
- isLoading: boolean;
785
- errorMessage: import("react").ReactNode;
786
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
787
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
788
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
789
- isBindingEnabled: boolean;
790
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
791
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
792
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
793
- frameRendering: {
794
- enabled: boolean;
795
- name: boolean;
796
- outline: boolean;
797
- clip: boolean;
798
- };
799
- editingFrame: string | null;
800
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
801
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
802
- penMode: boolean;
803
- penDetected: boolean;
804
- exportBackground: boolean;
805
- exportEmbedScene: boolean;
806
- exportWithDarkMode: boolean;
807
- exportScale: number;
808
- currentItemStrokeColor: string;
809
- currentItemBackgroundColor: string;
810
- currentItemFillStyle: import("../../element/src/types").FillStyle;
811
- currentItemStrokeWidth: number;
812
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
813
- currentItemRoughness: number;
814
- currentItemOpacity: number;
815
- currentItemFontFamily: number;
816
- currentItemFontSize: number;
817
- currentItemTextAlign: string;
818
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
819
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
820
- currentHoveredFontFamily: number | null;
821
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
822
- currentItemArrowType: "round" | "sharp" | "elbow";
823
- viewBackgroundColor: string;
824
- scrollX: number;
825
- scrollY: number;
826
- cursorButton: "up" | "down";
827
- scrolledOutside: boolean;
828
- name: string | null;
829
- isResizing: boolean;
830
- isRotating: boolean;
831
- zoom: Readonly<{
832
- value: import("../types").NormalizedZoomValue;
833
- }>;
834
- openMenu: "canvas" | "shape" | null;
835
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
836
- openSidebar: {
837
- name: string;
838
- tab?: string | undefined;
839
- } | null;
840
- openDialog: {
841
- name: "imageExport" | "help" | "jsonExport";
842
- } | {
843
- name: "ttd";
844
- tab: "mermaid" | "text-to-diagram";
845
- } | {
846
- name: "commandPalette";
847
- } | {
848
- name: "elementLinkSelector";
849
- sourceElementId: string;
850
- } | null;
851
- defaultSidebarDockedPreference: boolean;
852
- lastPointerDownWith: import("../../element/src/types").PointerType;
853
- hoveredElementIds: Readonly<{
854
- [id: string]: true;
855
- }>;
856
- previousSelectedElementIds: {
857
- [id: string]: true;
858
- };
859
- selectedElementsAreBeingDragged: boolean;
860
- shouldCacheIgnoreZoom: boolean;
861
- toast: {
862
- message: string;
863
- closable?: boolean | undefined;
864
- duration?: number | undefined;
865
- } | null;
866
- zenModeEnabled: boolean;
867
- theme: import("../../element/src/types").Theme;
868
- gridSize: number;
869
- gridStep: number;
870
- gridModeEnabled: boolean;
871
- viewModeEnabled: boolean;
872
- width: number;
873
- height: number;
874
- offsetTop: number;
875
- offsetLeft: number;
876
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
877
- collaborators: Map<import("../types").SocketId, Readonly<{
878
- pointer?: import("../types").CollaboratorPointer | undefined;
879
- button?: "up" | "down" | undefined;
880
- selectedElementIds?: Readonly<{
881
- [id: string]: true;
882
- }> | undefined;
883
- username?: string | null | undefined;
884
- userState?: import("@excalidraw/common").UserIdleState | undefined;
885
- color?: {
886
- background: string;
887
- stroke: string;
888
- } | undefined;
889
- avatarUrl?: string | undefined;
890
- id?: string | undefined;
891
- socketId?: import("../types").SocketId | undefined;
892
- isCurrentUser?: boolean | undefined;
893
- isInCall?: boolean | undefined;
894
- isSpeaking?: boolean | undefined;
895
- isMuted?: boolean | undefined;
896
- }>>;
897
- stats: {
898
- open: boolean;
899
- panels: number;
900
- };
901
- currentChartType: import("../../element/src/types").ChartType;
902
- pasteDialog: {
903
- shown: false;
904
- data: null;
905
- } | {
906
- shown: true;
907
- data: import("../charts").Spreadsheet;
908
- };
909
- showHyperlinkPopup: false | "editor" | "info";
910
- snapLines: readonly import("../snapping").SnapLine[];
911
- originSnapOffset: {
912
- x: number;
913
- y: number;
914
- } | null;
915
- objectsSnapModeEnabled: boolean;
916
- userToFollow: import("../types").UserToFollow | null;
917
- followedBy: Set<import("../types").SocketId>;
918
- isCropping: boolean;
919
- croppingElementId: string | null;
920
- searchMatches: Readonly<{
921
- focusedId: string | null;
922
- matches: readonly import("../types").SearchMatch[];
923
- }> | null;
924
- activeLockedId: string | null;
925
- lockedMultiSelections: {
926
- [groupId: string]: true;
927
- };
928
- };
929
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
930
- };
931
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
191
+ captureUpdate: "EVENTUALLY";
192
+ appState?: undefined;
193
+ }>;
194
+ keyTest: undefined;
932
195
  } & {
933
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
196
+ keyTest?: undefined;
197
+ };
198
+ export declare const actionCut: import("./types").Action<ClipboardEvent | null> & {
199
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly import("../../element/src/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
934
200
  };
935
201
  export declare const actionCopyAsSvg: {
936
202
  name: "copyAsSvg";
@@ -939,7 +205,7 @@ export declare const actionCopyAsSvg: {
939
205
  trackEvent: {
940
206
  category: "element";
941
207
  };
942
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
208
+ perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
943
209
  captureUpdate: "EVENTUALLY";
944
210
  appState?: undefined;
945
211
  } | {
@@ -969,7 +235,7 @@ export declare const actionCopyAsPng: {
969
235
  trackEvent: {
970
236
  category: "element";
971
237
  };
972
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
238
+ perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
973
239
  captureUpdate: "EVENTUALLY";
974
240
  appState?: undefined;
975
241
  } | {
@@ -992,7 +258,7 @@ export declare const actionCopyAsPng: {
992
258
  selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
993
259
  isBindingEnabled: boolean;
994
260
  startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
995
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
261
+ suggestedBinding: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
996
262
  frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
997
263
  frameRendering: {
998
264
  enabled: boolean;
@@ -1008,6 +274,10 @@ export declare const actionCopyAsPng: {
1008
274
  locked: boolean;
1009
275
  fromSelection: boolean;
1010
276
  } & import("../types").ActiveTool;
277
+ preferredSelectionTool: {
278
+ type: "selection" | "lasso";
279
+ initialized: boolean;
280
+ };
1011
281
  penMode: boolean;
1012
282
  penDetected: boolean;
1013
283
  exportBackground: boolean;
@@ -1040,8 +310,8 @@ export declare const actionCopyAsPng: {
1040
310
  zoom: Readonly<{
1041
311
  value: import("../types").NormalizedZoomValue;
1042
312
  }>;
1043
- openMenu: "canvas" | "shape" | null;
1044
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
313
+ openMenu: "canvas" | null;
314
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1045
315
  openSidebar: {
1046
316
  name: string;
1047
317
  tab?: string | undefined;
@@ -1053,6 +323,8 @@ export declare const actionCopyAsPng: {
1053
323
  tab: "mermaid" | "text-to-diagram";
1054
324
  } | {
1055
325
  name: "commandPalette";
326
+ } | {
327
+ name: "settings";
1056
328
  } | {
1057
329
  name: "elementLinkSelector";
1058
330
  sourceElementId: string;
@@ -1122,7 +394,7 @@ export declare const actionCopyAsPng: {
1122
394
  shown: true;
1123
395
  data: import("../charts").Spreadsheet;
1124
396
  };
1125
- showHyperlinkPopup: false | "editor" | "info";
397
+ showHyperlinkPopup: false | "info" | "editor";
1126
398
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1127
399
  snapLines: readonly import("../snapping").SnapLine[];
1128
400
  originSnapOffset: {
@@ -1142,6 +414,7 @@ export declare const actionCopyAsPng: {
1142
414
  lockedMultiSelections: {
1143
415
  [groupId: string]: true;
1144
416
  };
417
+ bindMode: import("../../element/src/types").BindMode;
1145
418
  };
1146
419
  captureUpdate: "EVENTUALLY";
1147
420
  }>;
@@ -1157,7 +430,7 @@ export declare const copyText: {
1157
430
  trackEvent: {
1158
431
  category: "element";
1159
432
  };
1160
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
433
+ perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1161
434
  captureUpdate: "EVENTUALLY";
1162
435
  };
1163
436
  predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;