@excalidraw/math 0.18.0-2b1c2a9 → 0.18.0-2c3dcc0

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