@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,397 +1,14 @@
1
1
  /// <reference types="react" />
2
- import { LinearElementEditor } from "@excalidraw/element";
3
- import type { LocalPoint } from "@excalidraw/math";
4
- import type { ExcalidrawElement, ExcalidrawLinearElement, NonDeleted } from "@excalidraw/element/types";
2
+ import type { ExcalidrawElement } from "@excalidraw/element/types";
5
3
  import type { AppState } from "../types";
6
- export declare const actionFinalize: {
7
- name: "finalize";
8
- label: string;
9
- trackEvent: false;
10
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, data: any, app: import("../types").AppClassProperties) => {
11
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
12
- appState: {
13
- selectedLinearElement: {
14
- selectedPointsIndices: null;
15
- elementId: string & {
16
- _brand: "excalidrawLinearElementId";
17
- };
18
- pointerDownState: Readonly<{
19
- prevSelectedPointsIndices: readonly number[] | null;
20
- lastClickedPoint: number;
21
- lastClickedIsEndPoint: boolean;
22
- origin: Readonly<{
23
- x: number;
24
- y: number;
25
- }> | null;
26
- segmentMidpoint: {
27
- value: import("@excalidraw/math").GlobalPoint | null;
28
- index: number | null;
29
- added: boolean;
30
- };
31
- }>;
32
- isDragging: boolean;
33
- lastUncommittedPoint: LocalPoint | null;
34
- pointerOffset: Readonly<{
35
- x: number;
36
- y: number;
37
- }>;
38
- startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
39
- endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
40
- hoverPointIndex: number;
41
- segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
42
- elbowed: boolean;
43
- customLineAngle: number | null;
44
- isEditing: boolean;
45
- };
46
- suggestedBindings: never[];
47
- };
48
- captureUpdate: "IMMEDIATELY";
49
- } | {
50
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[] | undefined;
51
- appState: {
52
- cursorButton: "up";
53
- selectedLinearElement: LinearElementEditor;
54
- contextMenu: {
55
- items: import("../components/ContextMenu").ContextMenuItems;
56
- top: number;
57
- left: number;
58
- } | null;
59
- showWelcomeScreen: boolean;
60
- isLoading: boolean;
61
- errorMessage: import("react").ReactNode;
62
- activeEmbeddable: {
63
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
64
- state: "active" | "hover";
65
- } | null;
66
- newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
67
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
68
- multiElement: NonDeleted<ExcalidrawLinearElement> | null;
69
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
70
- isBindingEnabled: boolean;
71
- startBoundElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
72
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
73
- frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
74
- frameRendering: {
75
- enabled: boolean;
76
- name: boolean;
77
- outline: boolean;
78
- clip: boolean;
79
- };
80
- editingFrame: string | null;
81
- elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
82
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
83
- activeTool: {
84
- lastActiveTool: import("../types").ActiveTool | null;
85
- locked: boolean;
86
- fromSelection: boolean;
87
- } & import("../types").ActiveTool;
88
- penMode: boolean;
89
- penDetected: boolean;
90
- exportBackground: boolean;
91
- exportEmbedScene: boolean;
92
- exportWithDarkMode: boolean;
93
- exportScale: number;
94
- currentItemStrokeColor: string;
95
- currentItemBackgroundColor: string;
96
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
97
- currentItemStrokeWidth: number;
98
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
99
- currentItemRoughness: number;
100
- currentItemOpacity: number;
101
- currentItemFontFamily: number;
102
- currentItemFontSize: number;
103
- currentItemTextAlign: string;
104
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
105
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
106
- currentHoveredFontFamily: number | null;
107
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
108
- currentItemArrowType: "round" | "sharp" | "elbow";
109
- viewBackgroundColor: string;
110
- scrollX: number;
111
- scrollY: number;
112
- scrolledOutside: boolean;
113
- name: string | null;
114
- isResizing: boolean;
115
- isRotating: boolean;
116
- zoom: Readonly<{
117
- value: import("../types").NormalizedZoomValue;
118
- }>;
119
- openMenu: "canvas" | "shape" | null;
120
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
121
- openSidebar: {
122
- name: string;
123
- tab?: string | undefined;
124
- } | null;
125
- openDialog: {
126
- name: "imageExport" | "help" | "jsonExport";
127
- } | {
128
- name: "ttd";
129
- tab: "mermaid" | "text-to-diagram";
130
- } | {
131
- name: "commandPalette";
132
- } | {
133
- name: "elementLinkSelector";
134
- sourceElementId: string;
135
- } | null;
136
- defaultSidebarDockedPreference: boolean;
137
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
138
- selectedElementIds: Readonly<{
139
- [id: string]: true;
140
- }>;
141
- hoveredElementIds: Readonly<{
142
- [id: string]: true;
143
- }>;
144
- previousSelectedElementIds: {
145
- [id: string]: true;
146
- };
147
- selectedElementsAreBeingDragged: boolean;
148
- shouldCacheIgnoreZoom: boolean;
149
- toast: {
150
- message: string;
151
- closable?: boolean | undefined;
152
- duration?: number | undefined;
153
- } | null;
154
- zenModeEnabled: boolean;
155
- theme: import("@excalidraw/element/types").Theme;
156
- gridSize: number;
157
- gridStep: number;
158
- gridModeEnabled: boolean;
159
- viewModeEnabled: boolean;
160
- selectedGroupIds: {
161
- [groupId: string]: boolean;
162
- };
163
- editingGroupId: string | null;
164
- width: number;
165
- height: number;
166
- offsetTop: number;
167
- offsetLeft: number;
168
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
169
- collaborators: Map<import("../types").SocketId, Readonly<{
170
- pointer?: import("../types").CollaboratorPointer | undefined;
171
- button?: "up" | "down" | undefined;
172
- selectedElementIds?: Readonly<{
173
- [id: string]: true;
174
- }> | undefined;
175
- username?: string | null | undefined;
176
- userState?: import("@excalidraw/common").UserIdleState | undefined;
177
- color?: {
178
- background: string;
179
- stroke: string;
180
- } | undefined;
181
- avatarUrl?: string | undefined;
182
- id?: string | undefined;
183
- socketId?: import("../types").SocketId | undefined;
184
- isCurrentUser?: boolean | undefined;
185
- isInCall?: boolean | undefined;
186
- isSpeaking?: boolean | undefined;
187
- isMuted?: boolean | undefined;
188
- }>>;
189
- stats: {
190
- open: boolean;
191
- panels: number;
192
- };
193
- currentChartType: import("@excalidraw/element/types").ChartType;
194
- pasteDialog: {
195
- shown: false;
196
- data: null;
197
- } | {
198
- shown: true;
199
- data: import("../charts").Spreadsheet;
200
- };
201
- showHyperlinkPopup: false | "editor" | "info";
202
- snapLines: readonly import("../snapping").SnapLine[];
203
- originSnapOffset: {
204
- x: number;
205
- y: number;
206
- } | null;
207
- objectsSnapModeEnabled: boolean;
208
- userToFollow: import("../types").UserToFollow | null;
209
- followedBy: Set<import("../types").SocketId>;
210
- isCropping: boolean;
211
- croppingElementId: string | null;
212
- searchMatches: Readonly<{
213
- focusedId: string | null;
214
- matches: readonly import("../types").SearchMatch[];
215
- }> | null;
216
- activeLockedId: string | null;
217
- lockedMultiSelections: {
218
- [groupId: string]: true;
219
- };
220
- };
221
- captureUpdate: "IMMEDIATELY";
222
- } | {
223
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
224
- appState: {
225
- cursorButton: "up";
226
- activeTool: {
227
- lastActiveTool: import("../types").ActiveTool | null;
228
- locked: boolean;
229
- fromSelection: boolean;
230
- } & import("../types").ActiveTool;
231
- activeEmbeddable: null;
232
- newElement: null;
233
- selectionElement: null;
234
- multiElement: null;
235
- editingTextElement: null;
236
- startBoundElement: null;
237
- suggestedBindings: never[];
238
- selectedElementIds: Readonly<{
239
- [id: string]: true;
240
- }>;
241
- selectedLinearElement: LinearElementEditor | null;
242
- contextMenu: {
243
- items: import("../components/ContextMenu").ContextMenuItems;
244
- top: number;
245
- left: number;
246
- } | null;
247
- showWelcomeScreen: boolean;
248
- isLoading: boolean;
249
- errorMessage: import("react").ReactNode;
250
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
251
- isBindingEnabled: boolean;
252
- frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
253
- frameRendering: {
254
- enabled: boolean;
255
- name: boolean;
256
- outline: boolean;
257
- clip: boolean;
258
- };
259
- editingFrame: string | null;
260
- elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
261
- penMode: boolean;
262
- penDetected: boolean;
263
- exportBackground: boolean;
264
- exportEmbedScene: boolean;
265
- exportWithDarkMode: boolean;
266
- exportScale: number;
267
- currentItemStrokeColor: string;
268
- currentItemBackgroundColor: string;
269
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
270
- currentItemStrokeWidth: number;
271
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
272
- currentItemRoughness: number;
273
- currentItemOpacity: number;
274
- currentItemFontFamily: number;
275
- currentItemFontSize: number;
276
- currentItemTextAlign: string;
277
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
278
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
279
- currentHoveredFontFamily: number | null;
280
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
281
- currentItemArrowType: "round" | "sharp" | "elbow";
282
- viewBackgroundColor: string;
283
- scrollX: number;
284
- scrollY: number;
285
- scrolledOutside: boolean;
286
- name: string | null;
287
- isResizing: boolean;
288
- isRotating: boolean;
289
- zoom: Readonly<{
290
- value: import("../types").NormalizedZoomValue;
291
- }>;
292
- openMenu: "canvas" | "shape" | null;
293
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
294
- openSidebar: {
295
- name: string;
296
- tab?: string | undefined;
297
- } | null;
298
- openDialog: {
299
- name: "imageExport" | "help" | "jsonExport";
300
- } | {
301
- name: "ttd";
302
- tab: "mermaid" | "text-to-diagram";
303
- } | {
304
- name: "commandPalette";
305
- } | {
306
- name: "elementLinkSelector";
307
- sourceElementId: string;
308
- } | null;
309
- defaultSidebarDockedPreference: boolean;
310
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
311
- hoveredElementIds: Readonly<{
312
- [id: string]: true;
313
- }>;
314
- previousSelectedElementIds: {
315
- [id: string]: true;
316
- };
317
- selectedElementsAreBeingDragged: boolean;
318
- shouldCacheIgnoreZoom: boolean;
319
- toast: {
320
- message: string;
321
- closable?: boolean | undefined;
322
- duration?: number | undefined;
323
- } | null;
324
- zenModeEnabled: boolean;
325
- theme: import("@excalidraw/element/types").Theme;
326
- gridSize: number;
327
- gridStep: number;
328
- gridModeEnabled: boolean;
329
- viewModeEnabled: boolean;
330
- selectedGroupIds: {
331
- [groupId: string]: boolean;
332
- };
333
- editingGroupId: string | null;
334
- width: number;
335
- height: number;
336
- offsetTop: number;
337
- offsetLeft: number;
338
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
339
- collaborators: Map<import("../types").SocketId, Readonly<{
340
- pointer?: import("../types").CollaboratorPointer | undefined;
341
- button?: "up" | "down" | undefined;
342
- selectedElementIds?: Readonly<{
343
- [id: string]: true;
344
- }> | undefined;
345
- username?: string | null | undefined;
346
- userState?: import("@excalidraw/common").UserIdleState | undefined;
347
- color?: {
348
- background: string;
349
- stroke: string;
350
- } | undefined;
351
- avatarUrl?: string | undefined;
352
- id?: string | undefined;
353
- socketId?: import("../types").SocketId | undefined;
354
- isCurrentUser?: boolean | undefined;
355
- isInCall?: boolean | undefined;
356
- isSpeaking?: boolean | undefined;
357
- isMuted?: boolean | undefined;
358
- }>>;
359
- stats: {
360
- open: boolean;
361
- panels: number;
362
- };
363
- currentChartType: import("@excalidraw/element/types").ChartType;
364
- pasteDialog: {
365
- shown: false;
366
- data: null;
367
- } | {
368
- shown: true;
369
- data: import("../charts").Spreadsheet;
370
- };
371
- showHyperlinkPopup: false | "editor" | "info";
372
- snapLines: readonly import("../snapping").SnapLine[];
373
- originSnapOffset: {
374
- x: number;
375
- y: number;
376
- } | null;
377
- objectsSnapModeEnabled: boolean;
378
- userToFollow: import("../types").UserToFollow | null;
379
- followedBy: Set<import("../types").SocketId>;
380
- isCropping: boolean;
381
- croppingElementId: string | null;
382
- searchMatches: Readonly<{
383
- focusedId: string | null;
384
- matches: readonly import("../types").SearchMatch[];
385
- }> | null;
386
- activeLockedId: string | null;
387
- lockedMultiSelections: {
388
- [groupId: string]: true;
389
- };
390
- };
391
- captureUpdate: "IMMEDIATELY";
4
+ type FormData = {
5
+ event: PointerEvent;
6
+ sceneCoords: {
7
+ x: number;
8
+ y: number;
392
9
  };
393
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
394
- PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
395
- } & {
396
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
397
10
  };
11
+ export declare const actionFinalize: import("./types").Action<FormData> & {
12
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
13
+ };
14
+ export {};
@@ -8,7 +8,7 @@ export declare const actionFlipHorizontal: {
8
8
  trackEvent: {
9
9
  category: "element";
10
10
  };
11
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
11
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
12
12
  elements: ExcalidrawElement[];
13
13
  appState: Readonly<AppState>;
14
14
  captureUpdate: "IMMEDIATELY";
@@ -24,7 +24,7 @@ export declare const actionFlipVertical: {
24
24
  trackEvent: {
25
25
  category: "element";
26
26
  };
27
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
27
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
28
28
  elements: ExcalidrawElement[];
29
29
  appState: Readonly<AppState>;
30
30
  captureUpdate: "IMMEDIATELY";