@excalidraw/math 0.18.0-1118751 → 0.18.0-1440f2d

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