@excalidraw/math 0.18.0-4ce38fb → 0.18.0-4ce8305

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 (82) hide show
  1. package/dist/types/common/src/utils.d.ts +7 -1
  2. package/dist/types/element/src/align.d.ts +4 -1
  3. package/dist/types/element/src/binding.d.ts +36 -0
  4. package/dist/types/element/src/bounds.d.ts +10 -2
  5. package/dist/types/element/src/collision.d.ts +7 -0
  6. package/dist/types/element/src/cropElement.d.ts +36 -4
  7. package/dist/types/element/src/delta.d.ts +7 -1
  8. package/dist/types/element/src/distribute.d.ts +4 -1
  9. package/dist/types/element/src/dragElements.d.ts +8 -3
  10. package/dist/types/element/src/elbowArrow.d.ts +5 -0
  11. package/dist/types/element/src/embeddable.d.ts +2 -1
  12. package/dist/types/element/src/groups.d.ts +1 -6
  13. package/dist/types/element/src/image.d.ts +5 -2
  14. package/dist/types/element/src/index.d.ts +1 -0
  15. package/dist/types/element/src/linearElementEditor.d.ts +4 -1
  16. package/dist/types/element/src/listMarker.d.ts +7 -2
  17. package/dist/types/element/src/newElement.d.ts +3 -1
  18. package/dist/types/element/src/renderElement.d.ts +10 -0
  19. package/dist/types/element/src/renderEnvironment.d.ts +66 -0
  20. package/dist/types/element/src/resizeElements.d.ts +15 -5
  21. package/dist/types/element/src/selection.d.ts +1 -7
  22. package/dist/types/element/src/shape.d.ts +2 -0
  23. package/dist/types/element/src/stickyNote.d.ts +8 -0
  24. package/dist/types/element/src/textElement.d.ts +3 -2
  25. package/dist/types/element/src/textMeasurements.d.ts +15 -11
  26. package/dist/types/element/src/textWrapping.d.ts +3 -2
  27. package/dist/types/element/src/transform.d.ts +5 -1
  28. package/dist/types/excalidraw/actions/actionBoundText.d.ts +46 -221
  29. package/dist/types/excalidraw/actions/actionCanvas.d.ts +6 -6
  30. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -588
  31. package/dist/types/excalidraw/actions/actionDeselect.d.ts +1 -1
  32. package/dist/types/excalidraw/actions/actionExport.d.ts +7 -7
  33. package/dist/types/excalidraw/actions/actionFrame.d.ts +41 -525
  34. package/dist/types/excalidraw/actions/actionGroup.d.ts +2 -2
  35. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +1 -1
  36. package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
  37. package/dist/types/excalidraw/actions/index.d.ts +1 -0
  38. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  39. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  40. package/dist/types/excalidraw/appState.d.ts +7 -7
  41. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -1
  42. package/dist/types/excalidraw/charts/charts.helpers.d.ts +6 -5
  43. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -1
  44. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -1
  45. package/dist/types/excalidraw/charts/index.d.ts +2 -1
  46. package/dist/types/excalidraw/components/App.d.ts +34 -20
  47. package/dist/types/excalidraw/components/App.host.d.ts +102 -0
  48. package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
  49. package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
  50. package/dist/types/excalidraw/components/App.selectionTool.d.ts +93 -0
  51. package/dist/types/excalidraw/components/App.viewport.d.ts +13 -3
  52. package/dist/types/excalidraw/components/App.wrap.d.ts +31 -0
  53. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -1
  54. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
  55. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
  56. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  57. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
  58. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
  59. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
  60. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
  61. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
  62. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +27 -1
  63. package/dist/types/excalidraw/components/Tooltip.d.ts +11 -1
  64. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +1 -1
  65. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +0 -1
  66. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  67. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +13 -2
  68. package/dist/types/excalidraw/data/blob.d.ts +14 -14
  69. package/dist/types/excalidraw/data/index.d.ts +3 -3
  70. package/dist/types/excalidraw/data/json.d.ts +7 -7
  71. package/dist/types/excalidraw/fonts/Fonts.d.ts +9 -6
  72. package/dist/types/excalidraw/history.d.ts +10 -4
  73. package/dist/types/excalidraw/reactUtils.d.ts +1 -1
  74. package/dist/types/excalidraw/renderer/animation.d.ts +11 -4
  75. package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
  76. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
  77. package/dist/types/excalidraw/scene/export.d.ts +343 -20
  78. package/dist/types/excalidraw/scene/types.d.ts +23 -1
  79. package/dist/types/excalidraw/types.d.ts +49 -1
  80. package/dist/types/utils/src/index.d.ts +3 -1
  81. package/package.json +2 -2
  82. package/dist/types/utils/src/export.d.ts +0 -36
@@ -1,591 +1,7 @@
1
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
2
2
  import type { AppClassProperties, AppState } from "../types";
3
- export declare const actionDeleteSelected: {
4
- name: "deleteSelectedElements";
5
- label: string;
6
- icon: import("react/jsx-runtime").JSX.Element;
7
- trackEvent: {
8
- category: "element";
9
- action: string;
10
- };
11
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: unknown, app: AppClassProperties) => false | {
12
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
13
- appState: {
14
- selectedLinearElement: null;
15
- contextMenu: {
16
- items: import("../components/ContextMenu").ContextMenuItems;
17
- top: number;
18
- left: number;
19
- } | null;
20
- showWelcomeScreen: boolean;
21
- isLoading: boolean;
22
- errorMessage: React.ReactNode;
23
- activeEmbeddable: {
24
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
25
- state: "hover" | "active";
26
- } | null;
27
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
28
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
30
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
- isBindingEnabled: boolean;
32
- boxSelectionMode: import("../types").BoxSelectionMode;
33
- bindingPreference: "enabled" | "disabled";
34
- isMidpointSnappingEnabled: boolean;
35
- showHints: boolean;
36
- inputDevice: import("../types").InputDevice;
37
- suggestedBinding: {
38
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
39
- midPoint?: import("@excalidraw/math").GlobalPoint;
40
- } | null;
41
- textToolHover: {
42
- type: "text";
43
- elementId: ExcalidrawElement["id"];
44
- } | {
45
- type: "container";
46
- elementId: ExcalidrawElement["id"];
47
- } | {
48
- type: "arrow";
49
- elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
50
- anchor: "start" | "end" | "label";
51
- } | null;
52
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
53
- frameRendering: {
54
- enabled: boolean;
55
- name: boolean;
56
- outline: boolean;
57
- clip: boolean;
58
- };
59
- editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
60
- elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
61
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
62
- activeTool: {
63
- lastActiveTool: import("../types").ActiveTool | null;
64
- locked: boolean;
65
- fromSelection: boolean;
66
- } & import("../types").ActiveTool;
67
- preferredSelectionTool: {
68
- type: "selection" | "lasso";
69
- initialized: boolean;
70
- };
71
- penMode: boolean;
72
- penDetected: boolean;
73
- exportBackground: boolean;
74
- exportEmbedScene: boolean;
75
- exportWithDarkMode: boolean;
76
- exportScale: number;
77
- currentItemStrokeColor: string;
78
- currentItemStickynoteStrokeColor: string;
79
- currentItemStickynoteBackgroundColor: string;
80
- currentItemBackgroundColor: string;
81
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
82
- currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
83
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
84
- currentItemRoughness: number;
85
- currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
86
- currentItemOpacity: number;
87
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
88
- currentItemFontSize: number;
89
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
90
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
91
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
92
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
93
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
94
- currentItemArrowType: "sharp" | "round" | "elbow";
95
- viewBackgroundColor: string;
96
- scrollX: number;
97
- scrollY: number;
98
- scrollConstraints: import("../types").ScrollConstraints | null;
99
- cursorButton: "up" | "down";
100
- scrolledOutside: boolean;
101
- name: string | null;
102
- isResizing: boolean;
103
- isRotating: boolean;
104
- zoom: import("../types").Zoom;
105
- openMenu: "canvas" | null;
106
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
107
- openSidebar: {
108
- name: import("../types").SidebarName;
109
- tab?: import("../types").SidebarTabName;
110
- } | null;
111
- openDialog: null | {
112
- name: "imageExport" | "help" | "jsonExport";
113
- } | {
114
- name: "ttd";
115
- tab: "text-to-diagram" | "mermaid";
116
- } | {
117
- name: "commandPalette";
118
- } | {
119
- name: "settings";
120
- } | {
121
- name: "elementLinkSelector";
122
- sourceElementId: ExcalidrawElement["id"];
123
- } | {
124
- name: "charts";
125
- data: import("../charts").Spreadsheet;
126
- rawText: string;
127
- };
128
- defaultSidebarDockedPreference: boolean;
129
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
130
- selectedElementIds: Readonly<{
131
- [id: string]: true;
132
- }>;
133
- hoveredElementIds: Readonly<{
134
- [id: string]: true;
135
- }>;
136
- previousSelectedElementIds: {
137
- [id: string]: true;
138
- };
139
- selectedElementsAreBeingDragged: boolean;
140
- shouldCacheIgnoreZoom: boolean;
141
- toast: {
142
- message: React.ReactNode;
143
- closable?: boolean;
144
- duration?: number;
145
- } | null;
146
- zenModeEnabled: boolean;
147
- theme: import("@excalidraw/element/types").Theme;
148
- gridSize: number;
149
- gridStep: number;
150
- gridModeEnabled: boolean;
151
- viewModeEnabled: boolean;
152
- selectedGroupIds: {
153
- [groupId: string]: boolean;
154
- };
155
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
156
- width: number;
157
- height: number;
158
- offsetTop: number;
159
- offsetLeft: number;
160
- fileHandle: FileSystemFileHandle | null;
161
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
162
- stats: {
163
- open: boolean;
164
- panels: number;
165
- };
166
- showHyperlinkPopup: false | "info" | "editor";
167
- snapLines: readonly import("../snapping").SnapLine[];
168
- originSnapOffset: {
169
- x: number;
170
- y: number;
171
- } | null;
172
- objectsSnapModeEnabled: boolean;
173
- isCropping: boolean;
174
- croppingElementId: ExcalidrawElement["id"] | null;
175
- searchMatches: Readonly<{
176
- focusedId: ExcalidrawElement["id"] | null;
177
- matches: readonly import("../types").SearchMatch[];
178
- }> | null;
179
- activeLockedId: string | null;
180
- lockedMultiSelections: {
181
- [groupId: string]: true;
182
- };
183
- bindMode: import("@excalidraw/element/types").BindMode;
184
- colorTopPicks: {
185
- elementStroke: readonly string[] | null;
186
- elementBackground: readonly string[] | null;
187
- bucketFill: readonly string[] | null;
188
- stickyNoteStroke: readonly string[] | null;
189
- stickyNoteBackground: readonly string[] | null;
190
- };
191
- fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
192
- };
193
- captureUpdate: "IMMEDIATELY";
194
- } | {
195
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
196
- appState: {
197
- selectedLinearElement: {
198
- selectedPointsIndices: number[];
199
- elementId: ExcalidrawElement["id"] & {
200
- _brand: "excalidrawLinearElementId";
201
- };
202
- initialState: Readonly<{
203
- prevSelectedPointsIndices: readonly number[] | null;
204
- lastClickedPoint: number;
205
- origin: Readonly<import("@excalidraw/math").GlobalPoint> | null;
206
- segmentMidpoint: {
207
- value: import("@excalidraw/math").GlobalPoint | null;
208
- index: number | null;
209
- added: boolean;
210
- };
211
- arrowStartIsInside: boolean;
212
- altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
213
- arrowOtherEndpointInitialBinding: import("@excalidraw/element/types").FixedPointBinding | null;
214
- }>;
215
- isDragging: boolean;
216
- lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
217
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
218
- pointerOffset: Readonly<{
219
- x: number;
220
- y: number;
221
- }>;
222
- hoverPointIndex: number;
223
- segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
224
- hoveredFocusPointBinding: "start" | "end" | null;
225
- draggedFocusPointBinding: "start" | "end" | null;
226
- elbowed: boolean;
227
- customLineAngle: number | null;
228
- isEditing: boolean;
229
- pointerDownState: never;
230
- };
231
- contextMenu: {
232
- items: import("../components/ContextMenu").ContextMenuItems;
233
- top: number;
234
- left: number;
235
- } | null;
236
- showWelcomeScreen: boolean;
237
- isLoading: boolean;
238
- errorMessage: React.ReactNode;
239
- activeEmbeddable: {
240
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
241
- state: "hover" | "active";
242
- } | null;
243
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
244
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
245
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
246
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
247
- isBindingEnabled: boolean;
248
- boxSelectionMode: import("../types").BoxSelectionMode;
249
- bindingPreference: "enabled" | "disabled";
250
- isMidpointSnappingEnabled: boolean;
251
- showHints: boolean;
252
- inputDevice: import("../types").InputDevice;
253
- suggestedBinding: {
254
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
255
- midPoint?: import("@excalidraw/math").GlobalPoint;
256
- } | null;
257
- textToolHover: {
258
- type: "text";
259
- elementId: ExcalidrawElement["id"];
260
- } | {
261
- type: "container";
262
- elementId: ExcalidrawElement["id"];
263
- } | {
264
- type: "arrow";
265
- elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
266
- anchor: "start" | "end" | "label";
267
- } | null;
268
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
269
- frameRendering: {
270
- enabled: boolean;
271
- name: boolean;
272
- outline: boolean;
273
- clip: boolean;
274
- };
275
- editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
276
- elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
277
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
278
- activeTool: {
279
- lastActiveTool: import("../types").ActiveTool | null;
280
- locked: boolean;
281
- fromSelection: boolean;
282
- } & import("../types").ActiveTool;
283
- preferredSelectionTool: {
284
- type: "selection" | "lasso";
285
- initialized: boolean;
286
- };
287
- penMode: boolean;
288
- penDetected: boolean;
289
- exportBackground: boolean;
290
- exportEmbedScene: boolean;
291
- exportWithDarkMode: boolean;
292
- exportScale: number;
293
- currentItemStrokeColor: string;
294
- currentItemStickynoteStrokeColor: string;
295
- currentItemStickynoteBackgroundColor: string;
296
- currentItemBackgroundColor: string;
297
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
298
- currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
299
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
300
- currentItemRoughness: number;
301
- currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
302
- currentItemOpacity: number;
303
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
304
- currentItemFontSize: number;
305
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
306
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
307
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
308
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
309
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
310
- currentItemArrowType: "sharp" | "round" | "elbow";
311
- viewBackgroundColor: string;
312
- scrollX: number;
313
- scrollY: number;
314
- scrollConstraints: import("../types").ScrollConstraints | null;
315
- cursorButton: "up" | "down";
316
- scrolledOutside: boolean;
317
- name: string | null;
318
- isResizing: boolean;
319
- isRotating: boolean;
320
- zoom: import("../types").Zoom;
321
- openMenu: "canvas" | null;
322
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
323
- openSidebar: {
324
- name: import("../types").SidebarName;
325
- tab?: import("../types").SidebarTabName;
326
- } | null;
327
- openDialog: null | {
328
- name: "imageExport" | "help" | "jsonExport";
329
- } | {
330
- name: "ttd";
331
- tab: "text-to-diagram" | "mermaid";
332
- } | {
333
- name: "commandPalette";
334
- } | {
335
- name: "settings";
336
- } | {
337
- name: "elementLinkSelector";
338
- sourceElementId: ExcalidrawElement["id"];
339
- } | {
340
- name: "charts";
341
- data: import("../charts").Spreadsheet;
342
- rawText: string;
343
- };
344
- defaultSidebarDockedPreference: boolean;
345
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
346
- selectedElementIds: Readonly<{
347
- [id: string]: true;
348
- }>;
349
- hoveredElementIds: Readonly<{
350
- [id: string]: true;
351
- }>;
352
- previousSelectedElementIds: {
353
- [id: string]: true;
354
- };
355
- selectedElementsAreBeingDragged: boolean;
356
- shouldCacheIgnoreZoom: boolean;
357
- toast: {
358
- message: React.ReactNode;
359
- closable?: boolean;
360
- duration?: number;
361
- } | null;
362
- zenModeEnabled: boolean;
363
- theme: import("@excalidraw/element/types").Theme;
364
- gridSize: number;
365
- gridStep: number;
366
- gridModeEnabled: boolean;
367
- viewModeEnabled: boolean;
368
- selectedGroupIds: {
369
- [groupId: string]: boolean;
370
- };
371
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
372
- width: number;
373
- height: number;
374
- offsetTop: number;
375
- offsetLeft: number;
376
- fileHandle: FileSystemFileHandle | null;
377
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
378
- stats: {
379
- open: boolean;
380
- panels: number;
381
- };
382
- showHyperlinkPopup: false | "info" | "editor";
383
- snapLines: readonly import("../snapping").SnapLine[];
384
- originSnapOffset: {
385
- x: number;
386
- y: number;
387
- } | null;
388
- objectsSnapModeEnabled: boolean;
389
- isCropping: boolean;
390
- croppingElementId: ExcalidrawElement["id"] | null;
391
- searchMatches: Readonly<{
392
- focusedId: ExcalidrawElement["id"] | null;
393
- matches: readonly import("../types").SearchMatch[];
394
- }> | null;
395
- activeLockedId: string | null;
396
- lockedMultiSelections: {
397
- [groupId: string]: true;
398
- };
399
- bindMode: import("@excalidraw/element/types").BindMode;
400
- colorTopPicks: {
401
- elementStroke: readonly string[] | null;
402
- elementBackground: readonly string[] | null;
403
- bucketFill: readonly string[] | null;
404
- stickyNoteStroke: readonly string[] | null;
405
- stickyNoteBackground: readonly string[] | null;
406
- };
407
- fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
408
- };
409
- captureUpdate: "IMMEDIATELY";
410
- } | {
411
- elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
412
- appState: {
413
- activeTool: {
414
- lastActiveTool: import("../types").ActiveTool | null;
415
- locked: boolean;
416
- fromSelection: boolean;
417
- } & import("../types").ActiveTool;
418
- multiElement: null;
419
- newElement: null;
420
- activeEmbeddable: null;
421
- selectedLinearElement: null;
422
- editingGroupId: AppState["editingGroupId"];
423
- selectedElementIds: AppState["selectedElementIds"];
424
- selectedGroupIds: AppState["selectedGroupIds"];
425
- contextMenu: {
426
- items: import("../components/ContextMenu").ContextMenuItems;
427
- top: number;
428
- left: number;
429
- } | null;
430
- showWelcomeScreen: boolean;
431
- isLoading: boolean;
432
- errorMessage: React.ReactNode;
433
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
434
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
435
- isBindingEnabled: boolean;
436
- boxSelectionMode: import("../types").BoxSelectionMode;
437
- bindingPreference: "enabled" | "disabled";
438
- isMidpointSnappingEnabled: boolean;
439
- showHints: boolean;
440
- inputDevice: import("../types").InputDevice;
441
- suggestedBinding: {
442
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
443
- midPoint?: import("@excalidraw/math").GlobalPoint;
444
- } | null;
445
- textToolHover: {
446
- type: "text";
447
- elementId: ExcalidrawElement["id"];
448
- } | {
449
- type: "container";
450
- elementId: ExcalidrawElement["id"];
451
- } | {
452
- type: "arrow";
453
- elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
454
- anchor: "start" | "end" | "label";
455
- } | null;
456
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
457
- frameRendering: {
458
- enabled: boolean;
459
- name: boolean;
460
- outline: boolean;
461
- clip: boolean;
462
- };
463
- editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
464
- elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
465
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
466
- preferredSelectionTool: {
467
- type: "selection" | "lasso";
468
- initialized: boolean;
469
- };
470
- penMode: boolean;
471
- penDetected: boolean;
472
- exportBackground: boolean;
473
- exportEmbedScene: boolean;
474
- exportWithDarkMode: boolean;
475
- exportScale: number;
476
- currentItemStrokeColor: string;
477
- currentItemStickynoteStrokeColor: string;
478
- currentItemStickynoteBackgroundColor: string;
479
- currentItemBackgroundColor: string;
480
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
481
- currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
482
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
483
- currentItemRoughness: number;
484
- currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
485
- currentItemOpacity: number;
486
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
487
- currentItemFontSize: number;
488
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
489
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
490
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
491
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
492
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
493
- currentItemArrowType: "sharp" | "round" | "elbow";
494
- viewBackgroundColor: string;
495
- scrollX: number;
496
- scrollY: number;
497
- scrollConstraints: import("../types").ScrollConstraints | null;
498
- cursorButton: "up" | "down";
499
- scrolledOutside: boolean;
500
- name: string | null;
501
- isResizing: boolean;
502
- isRotating: boolean;
503
- zoom: import("../types").Zoom;
504
- openMenu: "canvas" | null;
505
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
506
- openSidebar: {
507
- name: import("../types").SidebarName;
508
- tab?: import("../types").SidebarTabName;
509
- } | null;
510
- openDialog: null | {
511
- name: "imageExport" | "help" | "jsonExport";
512
- } | {
513
- name: "ttd";
514
- tab: "text-to-diagram" | "mermaid";
515
- } | {
516
- name: "commandPalette";
517
- } | {
518
- name: "settings";
519
- } | {
520
- name: "elementLinkSelector";
521
- sourceElementId: ExcalidrawElement["id"];
522
- } | {
523
- name: "charts";
524
- data: import("../charts").Spreadsheet;
525
- rawText: string;
526
- };
527
- defaultSidebarDockedPreference: boolean;
528
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
529
- hoveredElementIds: Readonly<{
530
- [id: string]: true;
531
- }>;
532
- previousSelectedElementIds: {
533
- [id: string]: true;
534
- };
535
- selectedElementsAreBeingDragged: boolean;
536
- shouldCacheIgnoreZoom: boolean;
537
- toast: {
538
- message: React.ReactNode;
539
- closable?: boolean;
540
- duration?: number;
541
- } | null;
542
- zenModeEnabled: boolean;
543
- theme: import("@excalidraw/element/types").Theme;
544
- gridSize: number;
545
- gridStep: number;
546
- gridModeEnabled: boolean;
547
- viewModeEnabled: boolean;
548
- width: number;
549
- height: number;
550
- offsetTop: number;
551
- offsetLeft: number;
552
- fileHandle: FileSystemFileHandle | null;
553
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
554
- stats: {
555
- open: boolean;
556
- panels: number;
557
- };
558
- showHyperlinkPopup: false | "info" | "editor";
559
- snapLines: readonly import("../snapping").SnapLine[];
560
- originSnapOffset: {
561
- x: number;
562
- y: number;
563
- } | null;
564
- objectsSnapModeEnabled: boolean;
565
- isCropping: boolean;
566
- croppingElementId: ExcalidrawElement["id"] | null;
567
- searchMatches: Readonly<{
568
- focusedId: ExcalidrawElement["id"] | null;
569
- matches: readonly import("../types").SearchMatch[];
570
- }> | null;
571
- activeLockedId: string | null;
572
- lockedMultiSelections: {
573
- [groupId: string]: true;
574
- };
575
- bindMode: import("@excalidraw/element/types").BindMode;
576
- colorTopPicks: {
577
- elementStroke: readonly string[] | null;
578
- elementBackground: readonly string[] | null;
579
- bucketFill: readonly string[] | null;
580
- stickyNoteStroke: readonly string[] | null;
581
- stickyNoteBackground: readonly string[] | null;
582
- };
583
- fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
584
- };
585
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
586
- };
587
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
588
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
589
- } & {
590
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
3
+ export declare const actionDeleteSelected: import("./types").Action<{
4
+ withFrameChildren?: boolean;
5
+ } | null> & {
6
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
591
7
  };
@@ -16,8 +16,8 @@ export declare const actionDeselect: {
16
16
  showHyperlinkPopup: false;
17
17
  suggestedBinding: null;
18
18
  frameToHighlight: null;
19
- editingGroupId: AppState["editingGroupId"];
20
19
  selectedElementIds: AppState["selectedElementIds"];
20
+ editingGroupId: AppState["editingGroupId"];
21
21
  selectedGroupIds: AppState["selectedGroupIds"];
22
22
  contextMenu: {
23
23
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -92,6 +92,11 @@ export declare const actionLoadScene: {
92
92
  };
93
93
  name: string | null;
94
94
  zoom: import("../types").Zoom;
95
+ isBindingEnabled: boolean;
96
+ isMidpointSnappingEnabled: boolean;
97
+ selectedElementIds: Readonly<{
98
+ [id: string]: true;
99
+ }>;
95
100
  scrollX: number;
96
101
  scrollY: number;
97
102
  viewModeEnabled: boolean;
@@ -113,9 +118,6 @@ export declare const actionLoadScene: {
113
118
  rawText: string;
114
119
  };
115
120
  editingGroupId: import("@excalidraw/element/types").GroupId | null;
116
- selectedElementIds: Readonly<{
117
- [id: string]: true;
118
- }>;
119
121
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
120
122
  activeTool: {
121
123
  lastActiveTool: import("../types").ActiveTool | null;
@@ -133,8 +135,6 @@ export declare const actionLoadScene: {
133
135
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
134
136
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
135
137
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
136
- isBindingEnabled: boolean;
137
- isMidpointSnappingEnabled: boolean;
138
138
  gridModeEnabled: boolean;
139
139
  suggestedBinding: {
140
140
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
@@ -170,8 +170,6 @@ export declare const actionLoadScene: {
170
170
  shouldCacheIgnoreZoom: boolean;
171
171
  exportScale: number;
172
172
  currentItemArrowType: "sharp" | "round" | "elbow";
173
- gridSize: number;
174
- bindMode: import("@excalidraw/element/types").BindMode;
175
173
  contextMenu: {
176
174
  items: import("../components/ContextMenu").ContextMenuItems;
177
175
  top: number;
@@ -233,6 +231,7 @@ export declare const actionLoadScene: {
233
231
  closable?: boolean;
234
232
  duration?: number;
235
233
  } | null;
234
+ gridSize: number;
236
235
  gridStep: number;
237
236
  fileHandle: FileSystemFileHandle | null;
238
237
  stats: {
@@ -248,6 +247,7 @@ export declare const actionLoadScene: {
248
247
  lockedMultiSelections: {
249
248
  [groupId: string]: true;
250
249
  };
250
+ bindMode: import("@excalidraw/element/types").BindMode;
251
251
  colorTopPicks: {
252
252
  elementStroke: readonly string[] | null;
253
253
  elementBackground: readonly string[] | null;