@excalidraw/element 0.18.0-4e471c107 → 0.18.0-51ad895

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 (115) hide show
  1. package/dist/dev/index.js +2991 -2061
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +17 -17
  4. package/dist/types/common/src/constants.d.ts +21 -15
  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/Scene.d.ts +6 -2
  10. package/dist/types/element/src/align.d.ts +2 -1
  11. package/dist/types/element/src/binding.d.ts +55 -43
  12. package/dist/types/element/src/bounds.d.ts +1 -1
  13. package/dist/types/element/src/collision.d.ts +6 -2
  14. package/dist/types/element/src/delta.d.ts +16 -4
  15. package/dist/types/element/src/distribute.d.ts +2 -1
  16. package/dist/types/element/src/groups.d.ts +1 -0
  17. package/dist/types/element/src/index.d.ts +1 -3
  18. package/dist/types/element/src/linearElementEditor.d.ts +17 -19
  19. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  20. package/dist/types/element/src/renderElement.d.ts +5 -2
  21. package/dist/types/element/src/resizeTest.d.ts +5 -4
  22. package/dist/types/element/src/store.d.ts +6 -1
  23. package/dist/types/element/src/textElement.d.ts +1 -1
  24. package/dist/types/element/src/transformHandles.d.ts +5 -4
  25. package/dist/types/element/src/typeChecks.d.ts +2 -3
  26. package/dist/types/element/src/types.d.ts +7 -11
  27. package/dist/types/element/src/utils.d.ts +2 -1
  28. package/dist/types/element/src/zindex.d.ts +7 -1
  29. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +34 -16
  30. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  31. package/dist/types/excalidraw/actions/actionBoundText.d.ts +25 -13
  32. package/dist/types/excalidraw/actions/actionCanvas.d.ts +153 -275
  33. package/dist/types/excalidraw/actions/actionClipboard.d.ts +45 -777
  34. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +12 -6
  35. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +45 -29
  36. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  37. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  38. package/dist/types/excalidraw/actions/actionElementLink.d.ts +11 -7
  39. package/dist/types/excalidraw/actions/actionElementLock.d.ts +23 -11
  40. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +12 -6
  41. package/dist/types/excalidraw/actions/actionExport.d.ts +68 -952
  42. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -394
  43. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -2
  44. package/dist/types/excalidraw/actions/actionFrame.d.ts +50 -28
  45. package/dist/types/excalidraw/actions/actionGroup.d.ts +24 -12
  46. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +47 -14
  47. package/dist/types/excalidraw/actions/actionLink.d.ts +9 -3
  48. package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -374
  49. package/dist/types/excalidraw/actions/actionNavigate.d.ts +21 -361
  50. package/dist/types/excalidraw/actions/actionProperties.d.ts +87 -2418
  51. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +12 -6
  52. package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -7
  53. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  54. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +11 -5
  55. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +11 -5
  56. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -6
  57. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  58. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +11 -5
  59. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +11 -5
  60. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +12 -6
  61. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -2
  62. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  63. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  64. package/dist/types/excalidraw/actions/register.d.ts +1 -1
  65. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  66. package/dist/types/excalidraw/appState.d.ts +9 -4
  67. package/dist/types/excalidraw/clipboard.d.ts +64 -1
  68. package/dist/types/excalidraw/components/Actions.d.ts +20 -7
  69. package/dist/types/excalidraw/components/App.d.ts +35 -25
  70. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  71. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  72. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  73. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  74. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
  75. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  76. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  77. package/dist/types/excalidraw/components/FilledButton.d.ts +1 -1
  78. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  79. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  80. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  81. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  82. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  83. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  84. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  85. package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
  86. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  87. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  88. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  89. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  90. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  91. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  92. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
  93. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  94. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  95. package/dist/types/excalidraw/components/icons.d.ts +10 -0
  96. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +13 -1
  97. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
  98. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  99. package/dist/types/excalidraw/data/blob.d.ts +3 -7
  100. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  101. package/dist/types/excalidraw/data/restore.d.ts +7 -2
  102. package/dist/types/excalidraw/data/types.d.ts +4 -1
  103. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  104. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
  105. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  106. package/dist/types/excalidraw/index.d.ts +4 -4
  107. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  108. package/dist/types/excalidraw/renderer/helpers.d.ts +1 -5
  109. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +5 -13
  110. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  111. package/dist/types/excalidraw/scene/types.d.ts +15 -3
  112. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  113. package/dist/types/excalidraw/types.d.ts +37 -24
  114. package/dist/types/math/src/segment.d.ts +1 -0
  115. package/package.json +3 -3
@@ -1,398 +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
- };
45
- suggestedBindings: never[];
46
- };
47
- captureUpdate: "IMMEDIATELY";
48
- } | {
49
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[] | undefined;
50
- appState: {
51
- cursorButton: "up";
52
- editingLinearElement: null;
53
- contextMenu: {
54
- items: import("../components/ContextMenu").ContextMenuItems;
55
- top: number;
56
- left: number;
57
- } | null;
58
- showWelcomeScreen: boolean;
59
- isLoading: boolean;
60
- errorMessage: import("react").ReactNode;
61
- activeEmbeddable: {
62
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
63
- state: "active" | "hover";
64
- } | null;
65
- newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
66
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
67
- multiElement: NonDeleted<ExcalidrawLinearElement> | null;
68
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
69
- isBindingEnabled: boolean;
70
- startBoundElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
71
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
72
- frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
73
- frameRendering: {
74
- enabled: boolean;
75
- name: boolean;
76
- outline: boolean;
77
- clip: boolean;
78
- };
79
- editingFrame: string | null;
80
- elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
81
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
82
- activeTool: {
83
- lastActiveTool: import("../types").ActiveTool | null;
84
- locked: boolean;
85
- fromSelection: boolean;
86
- } & import("../types").ActiveTool;
87
- penMode: boolean;
88
- penDetected: boolean;
89
- exportBackground: boolean;
90
- exportEmbedScene: boolean;
91
- exportWithDarkMode: boolean;
92
- exportScale: number;
93
- currentItemStrokeColor: string;
94
- currentItemBackgroundColor: string;
95
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
96
- currentItemStrokeWidth: number;
97
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
98
- currentItemRoughness: number;
99
- currentItemOpacity: number;
100
- currentItemFontFamily: number;
101
- currentItemFontSize: number;
102
- currentItemTextAlign: string;
103
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
104
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
105
- currentHoveredFontFamily: number | null;
106
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
107
- currentItemArrowType: "round" | "sharp" | "elbow";
108
- viewBackgroundColor: string;
109
- scrollX: number;
110
- scrollY: number;
111
- scrolledOutside: boolean;
112
- name: string | null;
113
- isResizing: boolean;
114
- isRotating: boolean;
115
- zoom: Readonly<{
116
- value: import("../types").NormalizedZoomValue;
117
- }>;
118
- openMenu: "canvas" | "shape" | null;
119
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
120
- openSidebar: {
121
- name: string;
122
- tab?: string | undefined;
123
- } | null;
124
- openDialog: {
125
- name: "imageExport" | "help" | "jsonExport";
126
- } | {
127
- name: "ttd";
128
- tab: "mermaid" | "text-to-diagram";
129
- } | {
130
- name: "commandPalette";
131
- } | {
132
- name: "elementLinkSelector";
133
- sourceElementId: string;
134
- } | null;
135
- defaultSidebarDockedPreference: boolean;
136
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
137
- selectedElementIds: Readonly<{
138
- [id: string]: true;
139
- }>;
140
- hoveredElementIds: Readonly<{
141
- [id: string]: true;
142
- }>;
143
- previousSelectedElementIds: {
144
- [id: string]: true;
145
- };
146
- selectedElementsAreBeingDragged: boolean;
147
- shouldCacheIgnoreZoom: boolean;
148
- toast: {
149
- message: string;
150
- closable?: boolean | undefined;
151
- duration?: number | undefined;
152
- } | null;
153
- zenModeEnabled: boolean;
154
- theme: import("@excalidraw/element/types").Theme;
155
- gridSize: number;
156
- gridStep: number;
157
- gridModeEnabled: boolean;
158
- viewModeEnabled: boolean;
159
- selectedGroupIds: {
160
- [groupId: string]: boolean;
161
- };
162
- editingGroupId: string | null;
163
- width: number;
164
- height: number;
165
- offsetTop: number;
166
- offsetLeft: number;
167
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
168
- collaborators: Map<import("../types").SocketId, Readonly<{
169
- pointer?: import("../types").CollaboratorPointer | undefined;
170
- button?: "up" | "down" | undefined;
171
- selectedElementIds?: Readonly<{
172
- [id: string]: true;
173
- }> | undefined;
174
- username?: string | null | undefined;
175
- userState?: import("@excalidraw/common").UserIdleState | undefined;
176
- color?: {
177
- background: string;
178
- stroke: string;
179
- } | undefined;
180
- avatarUrl?: string | undefined;
181
- id?: string | undefined;
182
- socketId?: import("../types").SocketId | undefined;
183
- isCurrentUser?: boolean | undefined;
184
- isInCall?: boolean | undefined;
185
- isSpeaking?: boolean | undefined;
186
- isMuted?: boolean | undefined;
187
- }>>;
188
- stats: {
189
- open: boolean;
190
- panels: number;
191
- };
192
- currentChartType: import("@excalidraw/element/types").ChartType;
193
- pasteDialog: {
194
- shown: false;
195
- data: null;
196
- } | {
197
- shown: true;
198
- data: import("../charts").Spreadsheet;
199
- };
200
- showHyperlinkPopup: false | "editor" | "info";
201
- selectedLinearElement: LinearElementEditor | null;
202
- snapLines: readonly import("../snapping").SnapLine[];
203
- originSnapOffset: {
204
- x: number;
205
- y: number;
206
- } | null;
207
- objectsSnapModeEnabled: boolean;
208
- userToFollow: import("../types").UserToFollow | null;
209
- followedBy: Set<import("../types").SocketId>;
210
- isCropping: boolean;
211
- croppingElementId: string | null;
212
- searchMatches: Readonly<{
213
- focusedId: string | null;
214
- matches: readonly import("../types").SearchMatch[];
215
- }> | null;
216
- activeLockedId: string | null;
217
- lockedMultiSelections: {
218
- [groupId: string]: true;
219
- };
220
- };
221
- captureUpdate: "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
- editingLinearElement: LinearElementEditor | null;
262
- penMode: boolean;
263
- penDetected: boolean;
264
- exportBackground: boolean;
265
- exportEmbedScene: boolean;
266
- exportWithDarkMode: boolean;
267
- exportScale: number;
268
- currentItemStrokeColor: string;
269
- currentItemBackgroundColor: string;
270
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
271
- currentItemStrokeWidth: number;
272
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
273
- currentItemRoughness: number;
274
- currentItemOpacity: number;
275
- currentItemFontFamily: number;
276
- currentItemFontSize: number;
277
- currentItemTextAlign: string;
278
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
279
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
280
- currentHoveredFontFamily: number | null;
281
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
282
- currentItemArrowType: "round" | "sharp" | "elbow";
283
- viewBackgroundColor: string;
284
- scrollX: number;
285
- scrollY: number;
286
- scrolledOutside: boolean;
287
- name: string | null;
288
- isResizing: boolean;
289
- isRotating: boolean;
290
- zoom: Readonly<{
291
- value: import("../types").NormalizedZoomValue;
292
- }>;
293
- openMenu: "canvas" | "shape" | null;
294
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
295
- openSidebar: {
296
- name: string;
297
- tab?: string | undefined;
298
- } | null;
299
- openDialog: {
300
- name: "imageExport" | "help" | "jsonExport";
301
- } | {
302
- name: "ttd";
303
- tab: "mermaid" | "text-to-diagram";
304
- } | {
305
- name: "commandPalette";
306
- } | {
307
- name: "elementLinkSelector";
308
- sourceElementId: string;
309
- } | null;
310
- defaultSidebarDockedPreference: boolean;
311
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
312
- hoveredElementIds: Readonly<{
313
- [id: string]: true;
314
- }>;
315
- previousSelectedElementIds: {
316
- [id: string]: true;
317
- };
318
- selectedElementsAreBeingDragged: boolean;
319
- shouldCacheIgnoreZoom: boolean;
320
- toast: {
321
- message: string;
322
- closable?: boolean | undefined;
323
- duration?: number | undefined;
324
- } | null;
325
- zenModeEnabled: boolean;
326
- theme: import("@excalidraw/element/types").Theme;
327
- gridSize: number;
328
- gridStep: number;
329
- gridModeEnabled: boolean;
330
- viewModeEnabled: boolean;
331
- selectedGroupIds: {
332
- [groupId: string]: boolean;
333
- };
334
- editingGroupId: string | null;
335
- width: number;
336
- height: number;
337
- offsetTop: number;
338
- offsetLeft: number;
339
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
340
- collaborators: Map<import("../types").SocketId, Readonly<{
341
- pointer?: import("../types").CollaboratorPointer | undefined;
342
- button?: "up" | "down" | undefined;
343
- selectedElementIds?: Readonly<{
344
- [id: string]: true;
345
- }> | undefined;
346
- username?: string | null | undefined;
347
- userState?: import("@excalidraw/common").UserIdleState | undefined;
348
- color?: {
349
- background: string;
350
- stroke: string;
351
- } | undefined;
352
- avatarUrl?: string | undefined;
353
- id?: string | undefined;
354
- socketId?: import("../types").SocketId | undefined;
355
- isCurrentUser?: boolean | undefined;
356
- isInCall?: boolean | undefined;
357
- isSpeaking?: boolean | undefined;
358
- isMuted?: boolean | undefined;
359
- }>>;
360
- stats: {
361
- open: boolean;
362
- panels: number;
363
- };
364
- currentChartType: import("@excalidraw/element/types").ChartType;
365
- pasteDialog: {
366
- shown: false;
367
- data: null;
368
- } | {
369
- shown: true;
370
- data: import("../charts").Spreadsheet;
371
- };
372
- showHyperlinkPopup: false | "editor" | "info";
373
- snapLines: readonly import("../snapping").SnapLine[];
374
- originSnapOffset: {
375
- x: number;
376
- y: number;
377
- } | null;
378
- objectsSnapModeEnabled: boolean;
379
- userToFollow: import("../types").UserToFollow | null;
380
- followedBy: Set<import("../types").SocketId>;
381
- isCropping: boolean;
382
- croppingElementId: string | null;
383
- searchMatches: Readonly<{
384
- focusedId: string | null;
385
- matches: readonly import("../types").SearchMatch[];
386
- }> | null;
387
- activeLockedId: string | null;
388
- lockedMultiSelections: {
389
- [groupId: string]: true;
390
- };
391
- };
392
- captureUpdate: "IMMEDIATELY";
4
+ type FormData = {
5
+ event: PointerEvent;
6
+ sceneCoords: {
7
+ x: number;
8
+ y: number;
393
9
  };
394
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
395
- PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
396
- } & {
397
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
398
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";