@excalidraw/excalidraw 0.18.0-a5d6939 → 0.18.0-a8acc82

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 (184) hide show
  1. package/dist/dev/chunk-6MX365WZ.js +5666 -0
  2. package/dist/dev/chunk-6MX365WZ.js.map +7 -0
  3. package/dist/dev/chunk-CP5DND7P.js +7 -0
  4. package/dist/dev/chunk-CP5DND7P.js.map +7 -0
  5. package/dist/dev/{chunk-X3RYHLJU.js → chunk-QF5FRM6O.js} +15 -5
  6. package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
  7. package/dist/dev/data/{image-JN3Y4CVN.js → image-GQCFJKGM.js} +3 -3
  8. package/dist/dev/index.css +230 -23
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +10262 -10068
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-CKWC2GMK.js → en-SMAPCEOQ.js} +2 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/chunk-A66AFZZU.js +7 -0
  16. package/dist/prod/chunk-I4UNSFV6.js +12 -0
  17. package/dist/prod/chunk-R2M7VUMD.js +4 -0
  18. package/dist/prod/data/image-JWK7QZ22.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +25 -17
  21. package/dist/prod/locales/{en-SBO6ZHT2.js → en-TYY6KWIJ.js} +1 -1
  22. package/dist/prod/subset-shared.chunk.js +1 -1
  23. package/dist/prod/subset-worker.chunk.js +1 -1
  24. package/dist/types/common/src/constants.d.ts +40 -7
  25. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  26. package/dist/types/common/src/font-metadata.d.ts +4 -2
  27. package/dist/types/common/src/index.d.ts +1 -0
  28. package/dist/types/common/src/utility-types.d.ts +5 -0
  29. package/dist/types/common/src/utils.d.ts +18 -4
  30. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
  31. package/dist/types/element/src/align.d.ts +4 -3
  32. package/dist/types/element/src/binding.d.ts +25 -14
  33. package/dist/types/element/src/bounds.d.ts +14 -6
  34. package/dist/types/element/src/collision.d.ts +18 -12
  35. package/dist/types/element/src/cropElement.d.ts +1 -1
  36. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
  37. package/dist/types/element/src/distance.d.ts +2 -2
  38. package/dist/types/element/src/distribute.d.ts +2 -1
  39. package/dist/types/element/src/dragElements.d.ts +3 -2
  40. package/dist/types/element/src/elbowArrow.d.ts +1 -1
  41. package/dist/types/element/src/flowchart.d.ts +3 -2
  42. package/dist/types/element/src/fractionalIndex.d.ts +9 -3
  43. package/dist/types/element/src/frame.d.ts +4 -3
  44. package/dist/types/element/src/groups.d.ts +1 -0
  45. package/dist/types/element/src/index.d.ts +44 -2
  46. package/dist/types/element/src/linearElementEditor.d.ts +23 -36
  47. package/dist/types/element/src/mutateElement.d.ts +11 -3
  48. package/dist/types/element/src/newElement.d.ts +4 -3
  49. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  50. package/dist/types/element/src/renderElement.d.ts +4 -1
  51. package/dist/types/element/src/resizeElements.d.ts +5 -4
  52. package/dist/types/element/src/selection.d.ts +0 -5
  53. package/dist/types/element/src/shape.d.ts +42 -0
  54. package/dist/types/element/src/sizeHelpers.d.ts +2 -2
  55. package/dist/types/element/src/store.d.ts +237 -0
  56. package/dist/types/element/src/textElement.d.ts +4 -3
  57. package/dist/types/element/src/typeChecks.d.ts +19 -1
  58. package/dist/types/element/src/types.d.ts +15 -2
  59. package/dist/types/element/src/utils.d.ts +16 -6
  60. package/dist/types/element/src/zindex.d.ts +1 -1
  61. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +45 -54
  62. package/dist/types/excalidraw/actions/actionBoundText.d.ts +30 -36
  63. package/dist/types/excalidraw/actions/actionCanvas.d.ts +204 -242
  64. package/dist/types/excalidraw/actions/actionClipboard.d.ts +90 -106
  65. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +15 -18
  66. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +45 -53
  67. package/dist/types/excalidraw/actions/actionElementLink.d.ts +14 -17
  68. package/dist/types/excalidraw/actions/actionElementLock.d.ts +45 -52
  69. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +15 -18
  70. package/dist/types/excalidraw/actions/actionExport.d.ts +145 -172
  71. package/dist/types/excalidraw/actions/actionFinalize.d.ts +77 -42
  72. package/dist/types/excalidraw/actions/actionFrame.d.ts +107 -119
  73. package/dist/types/excalidraw/actions/actionGroup.d.ts +30 -36
  74. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  75. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +541 -20
  76. package/dist/types/excalidraw/actions/actionLink.d.ts +14 -17
  77. package/dist/types/excalidraw/actions/actionMenu.d.ts +42 -51
  78. package/dist/types/excalidraw/actions/actionNavigate.d.ts +29 -35
  79. package/dist/types/excalidraw/actions/actionProperties.d.ts +246 -274
  80. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +15 -18
  81. package/dist/types/excalidraw/actions/actionStyles.d.ts +15 -18
  82. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +15 -18
  83. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +15 -18
  84. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +14 -190
  85. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  86. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +15 -18
  87. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +15 -18
  88. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +15 -18
  89. package/dist/types/excalidraw/actions/index.d.ts +1 -1
  90. package/dist/types/excalidraw/actions/types.d.ts +4 -3
  91. package/dist/types/excalidraw/appState.d.ts +20 -10
  92. package/dist/types/excalidraw/clipboard.d.ts +64 -1
  93. package/dist/types/excalidraw/components/Actions.d.ts +8 -5
  94. package/dist/types/excalidraw/components/App.d.ts +30 -30
  95. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  96. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  97. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +7 -2
  98. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  99. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  100. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  101. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  102. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  103. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  104. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  105. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  106. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  107. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  108. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  109. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
  110. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  111. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  112. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  113. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  116. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  117. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  118. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  119. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  120. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  121. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  122. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  123. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  124. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  125. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  126. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
  127. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  128. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  129. package/dist/types/excalidraw/components/icons.d.ts +9 -0
  130. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  131. package/dist/types/excalidraw/data/blob.d.ts +3 -7
  132. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  133. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  134. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  135. package/dist/types/excalidraw/data/types.d.ts +4 -1
  136. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  137. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  138. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  139. package/dist/types/excalidraw/history.d.ts +30 -22
  140. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  141. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  142. package/dist/types/excalidraw/index.d.ts +11 -10
  143. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  144. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  145. package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
  146. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  147. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -2
  148. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  149. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  150. package/dist/types/excalidraw/scene/types.d.ts +2 -0
  151. package/dist/types/excalidraw/snapping.d.ts +2 -2
  152. package/dist/types/excalidraw/types.d.ts +36 -15
  153. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  154. package/dist/types/math/src/angle.d.ts +2 -0
  155. package/dist/types/math/src/constants.d.ts +3 -0
  156. package/dist/types/math/src/curve.d.ts +34 -0
  157. package/dist/types/math/src/index.d.ts +1 -0
  158. package/dist/types/math/src/point.d.ts +1 -1
  159. package/dist/types/math/src/rectangle.d.ts +2 -0
  160. package/dist/types/math/src/segment.d.ts +1 -0
  161. package/dist/types/math/src/vector.d.ts +8 -2
  162. package/dist/types/utils/src/bbox.d.ts +1 -1
  163. package/dist/types/utils/src/index.d.ts +1 -1
  164. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  165. package/history.ts +146 -109
  166. package/package.json +13 -10
  167. package/dist/dev/chunk-GBJ7S76A.js +0 -18599
  168. package/dist/dev/chunk-GBJ7S76A.js.map +0 -7
  169. package/dist/dev/chunk-GIMGG4AT.js +0 -7
  170. package/dist/dev/chunk-GIMGG4AT.js.map +0 -7
  171. package/dist/dev/chunk-X3RYHLJU.js.map +0 -7
  172. package/dist/prod/chunk-GKI4RZ6C.js +0 -7
  173. package/dist/prod/chunk-IUH5AXLB.js +0 -12
  174. package/dist/prod/chunk-TVF64BAY.js +0 -33
  175. package/dist/prod/data/image-CZ2OEVDB.js +0 -1
  176. package/dist/types/element/src/Shape.d.ts +0 -17
  177. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  178. package/dist/types/element/src/shapes.d.ts +0 -23
  179. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  180. package/dist/types/excalidraw/store.d.ts +0 -129
  181. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  182. package/dist/types/utils/src/collision.d.ts +0 -8
  183. /package/dist/dev/data/{image-JN3Y4CVN.js.map → image-GQCFJKGM.js.map} +0 -0
  184. /package/dist/dev/locales/{en-CKWC2GMK.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -21,7 +21,7 @@ export declare const actionSelectAllElementsInFrame: {
21
21
  errorMessage: import("react").ReactNode;
22
22
  activeEmbeddable: {
23
23
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
24
- state: "hover" | "active";
24
+ state: "active" | "hover";
25
25
  } | null;
26
26
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
27
27
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -29,7 +29,7 @@ export declare const actionSelectAllElementsInFrame: {
29
29
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
30
  isBindingEnabled: boolean;
31
31
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
32
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
33
33
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
34
  frameRendering: {
35
35
  enabled: boolean;
@@ -40,7 +40,6 @@ export declare const actionSelectAllElementsInFrame: {
40
40
  editingFrame: string | null;
41
41
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
42
42
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
44
43
  activeTool: {
45
44
  lastActiveTool: import("../types").ActiveTool | null;
46
45
  locked: boolean;
@@ -78,8 +77,8 @@ export declare const actionSelectAllElementsInFrame: {
78
77
  zoom: Readonly<{
79
78
  value: import("../types").NormalizedZoomValue;
80
79
  }>;
81
- openMenu: "shape" | "canvas" | null;
82
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
80
+ openMenu: "canvas" | "shape" | null;
81
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
83
82
  openSidebar: {
84
83
  name: string;
85
84
  tab?: string | undefined;
@@ -88,7 +87,7 @@ export declare const actionSelectAllElementsInFrame: {
88
87
  name: "imageExport" | "help" | "jsonExport";
89
88
  } | {
90
89
  name: "ttd";
91
- tab: "text-to-diagram" | "mermaid";
90
+ tab: "mermaid" | "text-to-diagram";
92
91
  } | {
93
92
  name: "commandPalette";
94
93
  } | {
@@ -157,9 +156,8 @@ export declare const actionSelectAllElementsInFrame: {
157
156
  shown: true;
158
157
  data: import("../charts").Spreadsheet;
159
158
  };
160
- pendingImageElementId: string | null;
161
159
  showHyperlinkPopup: false | "editor" | "info";
162
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
160
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
161
  snapLines: readonly import("../snapping").SnapLine[];
164
162
  originSnapOffset: {
165
163
  x: number;
@@ -170,16 +168,15 @@ export declare const actionSelectAllElementsInFrame: {
170
168
  followedBy: Set<import("../types").SocketId>;
171
169
  isCropping: boolean;
172
170
  croppingElementId: string | null;
173
- searchMatches: readonly {
174
- id: string;
175
- focus: boolean;
176
- matchedLines: {
177
- offsetX: number;
178
- offsetY: number;
179
- width: number;
180
- height: number;
181
- }[];
182
- }[];
171
+ searchMatches: Readonly<{
172
+ focusedId: string | null;
173
+ matches: readonly import("../types").SearchMatch[];
174
+ }> | null;
175
+ activeLockedId: string | null;
176
+ lockedMultiSelections: {
177
+ [groupId: string]: true;
178
+ };
179
+ stylesPanelMode: "compact" | "full";
183
180
  };
184
181
  captureUpdate: "IMMEDIATELY";
185
182
  } | {
@@ -213,7 +210,7 @@ export declare const actionRemoveAllElementsFromFrame: {
213
210
  errorMessage: import("react").ReactNode;
214
211
  activeEmbeddable: {
215
212
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
216
- state: "hover" | "active";
213
+ state: "active" | "hover";
217
214
  } | null;
218
215
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
219
216
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -221,7 +218,7 @@ export declare const actionRemoveAllElementsFromFrame: {
221
218
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
222
219
  isBindingEnabled: boolean;
223
220
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
224
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
221
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
225
222
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
226
223
  frameRendering: {
227
224
  enabled: boolean;
@@ -232,7 +229,6 @@ export declare const actionRemoveAllElementsFromFrame: {
232
229
  editingFrame: string | null;
233
230
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
234
231
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
235
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
236
232
  activeTool: {
237
233
  lastActiveTool: import("../types").ActiveTool | null;
238
234
  locked: boolean;
@@ -270,8 +266,8 @@ export declare const actionRemoveAllElementsFromFrame: {
270
266
  zoom: Readonly<{
271
267
  value: import("../types").NormalizedZoomValue;
272
268
  }>;
273
- openMenu: "shape" | "canvas" | null;
274
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
269
+ openMenu: "canvas" | "shape" | null;
270
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
275
271
  openSidebar: {
276
272
  name: string;
277
273
  tab?: string | undefined;
@@ -280,7 +276,7 @@ export declare const actionRemoveAllElementsFromFrame: {
280
276
  name: "imageExport" | "help" | "jsonExport";
281
277
  } | {
282
278
  name: "ttd";
283
- tab: "text-to-diagram" | "mermaid";
279
+ tab: "mermaid" | "text-to-diagram";
284
280
  } | {
285
281
  name: "commandPalette";
286
282
  } | {
@@ -349,9 +345,8 @@ export declare const actionRemoveAllElementsFromFrame: {
349
345
  shown: true;
350
346
  data: import("../charts").Spreadsheet;
351
347
  };
352
- pendingImageElementId: string | null;
353
348
  showHyperlinkPopup: false | "editor" | "info";
354
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
349
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
355
350
  snapLines: readonly import("../snapping").SnapLine[];
356
351
  originSnapOffset: {
357
352
  x: number;
@@ -362,16 +357,15 @@ export declare const actionRemoveAllElementsFromFrame: {
362
357
  followedBy: Set<import("../types").SocketId>;
363
358
  isCropping: boolean;
364
359
  croppingElementId: string | null;
365
- searchMatches: readonly {
366
- id: string;
367
- focus: boolean;
368
- matchedLines: {
369
- offsetX: number;
370
- offsetY: number;
371
- width: number;
372
- height: number;
373
- }[];
374
- }[];
360
+ searchMatches: Readonly<{
361
+ focusedId: string | null;
362
+ matches: readonly import("../types").SearchMatch[];
363
+ }> | null;
364
+ activeLockedId: string | null;
365
+ lockedMultiSelections: {
366
+ [groupId: string]: true;
367
+ };
368
+ stylesPanelMode: "compact" | "full";
375
369
  };
376
370
  captureUpdate: "IMMEDIATELY";
377
371
  } | {
@@ -409,7 +403,7 @@ export declare const actionupdateFrameRendering: {
409
403
  errorMessage: import("react").ReactNode;
410
404
  activeEmbeddable: {
411
405
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
412
- state: "hover" | "active";
406
+ state: "active" | "hover";
413
407
  } | null;
414
408
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
415
409
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -417,12 +411,11 @@ export declare const actionupdateFrameRendering: {
417
411
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
418
412
  isBindingEnabled: boolean;
419
413
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
420
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
414
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
421
415
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
422
416
  editingFrame: string | null;
423
417
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
424
418
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
425
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
426
419
  activeTool: {
427
420
  lastActiveTool: import("../types").ActiveTool | null;
428
421
  locked: boolean;
@@ -460,8 +453,8 @@ export declare const actionupdateFrameRendering: {
460
453
  zoom: Readonly<{
461
454
  value: import("../types").NormalizedZoomValue;
462
455
  }>;
463
- openMenu: "shape" | "canvas" | null;
464
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
456
+ openMenu: "canvas" | "shape" | null;
457
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
465
458
  openSidebar: {
466
459
  name: string;
467
460
  tab?: string | undefined;
@@ -470,7 +463,7 @@ export declare const actionupdateFrameRendering: {
470
463
  name: "imageExport" | "help" | "jsonExport";
471
464
  } | {
472
465
  name: "ttd";
473
- tab: "text-to-diagram" | "mermaid";
466
+ tab: "mermaid" | "text-to-diagram";
474
467
  } | {
475
468
  name: "commandPalette";
476
469
  } | {
@@ -542,9 +535,8 @@ export declare const actionupdateFrameRendering: {
542
535
  shown: true;
543
536
  data: import("../charts").Spreadsheet;
544
537
  };
545
- pendingImageElementId: string | null;
546
538
  showHyperlinkPopup: false | "editor" | "info";
547
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
539
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
548
540
  snapLines: readonly import("../snapping").SnapLine[];
549
541
  originSnapOffset: {
550
542
  x: number;
@@ -555,16 +547,15 @@ export declare const actionupdateFrameRendering: {
555
547
  followedBy: Set<import("../types").SocketId>;
556
548
  isCropping: boolean;
557
549
  croppingElementId: string | null;
558
- searchMatches: readonly {
559
- id: string;
560
- focus: boolean;
561
- matchedLines: {
562
- offsetX: number;
563
- offsetY: number;
564
- width: number;
565
- height: number;
566
- }[];
567
- }[];
550
+ searchMatches: Readonly<{
551
+ focusedId: string | null;
552
+ matches: readonly import("../types").SearchMatch[];
553
+ }> | null;
554
+ activeLockedId: string | null;
555
+ lockedMultiSelections: {
556
+ [groupId: string]: true;
557
+ };
558
+ stylesPanelMode: "compact" | "full";
568
559
  };
569
560
  captureUpdate: "EVENTUALLY";
570
561
  };
@@ -598,7 +589,7 @@ export declare const actionSetFrameAsActiveTool: {
598
589
  errorMessage: import("react").ReactNode;
599
590
  activeEmbeddable: {
600
591
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
601
- state: "hover" | "active";
592
+ state: "active" | "hover";
602
593
  } | null;
603
594
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
604
595
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -606,7 +597,7 @@ export declare const actionSetFrameAsActiveTool: {
606
597
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
607
598
  isBindingEnabled: boolean;
608
599
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
609
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
600
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
610
601
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
611
602
  frameRendering: {
612
603
  enabled: boolean;
@@ -617,7 +608,6 @@ export declare const actionSetFrameAsActiveTool: {
617
608
  editingFrame: string | null;
618
609
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
619
610
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
620
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
621
611
  penMode: boolean;
622
612
  penDetected: boolean;
623
613
  exportBackground: boolean;
@@ -650,8 +640,8 @@ export declare const actionSetFrameAsActiveTool: {
650
640
  zoom: Readonly<{
651
641
  value: import("../types").NormalizedZoomValue;
652
642
  }>;
653
- openMenu: "shape" | "canvas" | null;
654
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
643
+ openMenu: "canvas" | "shape" | null;
644
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
655
645
  openSidebar: {
656
646
  name: string;
657
647
  tab?: string | undefined;
@@ -660,7 +650,7 @@ export declare const actionSetFrameAsActiveTool: {
660
650
  name: "imageExport" | "help" | "jsonExport";
661
651
  } | {
662
652
  name: "ttd";
663
- tab: "text-to-diagram" | "mermaid";
653
+ tab: "mermaid" | "text-to-diagram";
664
654
  } | {
665
655
  name: "commandPalette";
666
656
  } | {
@@ -732,9 +722,8 @@ export declare const actionSetFrameAsActiveTool: {
732
722
  shown: true;
733
723
  data: import("../charts").Spreadsheet;
734
724
  };
735
- pendingImageElementId: string | null;
736
725
  showHyperlinkPopup: false | "editor" | "info";
737
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
726
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
738
727
  snapLines: readonly import("../snapping").SnapLine[];
739
728
  originSnapOffset: {
740
729
  x: number;
@@ -745,16 +734,15 @@ export declare const actionSetFrameAsActiveTool: {
745
734
  followedBy: Set<import("../types").SocketId>;
746
735
  isCropping: boolean;
747
736
  croppingElementId: string | null;
748
- searchMatches: readonly {
749
- id: string;
750
- focus: boolean;
751
- matchedLines: {
752
- offsetX: number;
753
- offsetY: number;
754
- width: number;
755
- height: number;
756
- }[];
757
- }[];
737
+ searchMatches: Readonly<{
738
+ focusedId: string | null;
739
+ matches: readonly import("../types").SearchMatch[];
740
+ }> | null;
741
+ activeLockedId: string | null;
742
+ lockedMultiSelections: {
743
+ [groupId: string]: true;
744
+ };
745
+ stylesPanelMode: "compact" | "full";
758
746
  };
759
747
  captureUpdate: "EVENTUALLY";
760
748
  };
@@ -797,15 +785,21 @@ export declare const actionWrapSelectionInFrame: {
797
785
  frameId: string | null;
798
786
  boundElements: readonly Readonly<{
799
787
  id: string;
800
- type: "text" | "arrow";
788
+ type: "arrow" | "text";
801
789
  }>[] | null;
802
790
  updated: number;
803
791
  link: string | null;
804
792
  locked: boolean;
805
793
  customData?: Record<string, any> | undefined;
794
+ }> & Readonly<{
795
+ type: "line" | "arrow";
796
+ points: readonly import("@excalidraw/math").LocalPoint[];
797
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
798
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
799
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
800
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
801
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
806
802
  }> & {
807
- type: "rectangle";
808
- } & {
809
803
  index: import("@excalidraw/element/types").FractionalIndex;
810
804
  }) | (Readonly<{
811
805
  id: string;
@@ -834,14 +828,14 @@ export declare const actionWrapSelectionInFrame: {
834
828
  frameId: string | null;
835
829
  boundElements: readonly Readonly<{
836
830
  id: string;
837
- type: "text" | "arrow";
831
+ type: "arrow" | "text";
838
832
  }>[] | null;
839
833
  updated: number;
840
834
  link: string | null;
841
835
  locked: boolean;
842
836
  customData?: Record<string, any> | undefined;
843
837
  }> & {
844
- type: "diamond";
838
+ type: "selection";
845
839
  } & {
846
840
  index: import("@excalidraw/element/types").FractionalIndex;
847
841
  }) | (Readonly<{
@@ -871,15 +865,14 @@ export declare const actionWrapSelectionInFrame: {
871
865
  frameId: string | null;
872
866
  boundElements: readonly Readonly<{
873
867
  id: string;
874
- type: "text" | "arrow";
868
+ type: "arrow" | "text";
875
869
  }>[] | null;
876
870
  updated: number;
877
871
  link: string | null;
878
872
  locked: boolean;
879
873
  customData?: Record<string, any> | undefined;
880
874
  }> & {
881
- type: "frame";
882
- name: string | null;
875
+ type: "rectangle";
883
876
  } & {
884
877
  index: import("@excalidraw/element/types").FractionalIndex;
885
878
  }) | (Readonly<{
@@ -909,15 +902,14 @@ export declare const actionWrapSelectionInFrame: {
909
902
  frameId: string | null;
910
903
  boundElements: readonly Readonly<{
911
904
  id: string;
912
- type: "text" | "arrow";
905
+ type: "arrow" | "text";
913
906
  }>[] | null;
914
907
  updated: number;
915
908
  link: string | null;
916
909
  locked: boolean;
917
910
  customData?: Record<string, any> | undefined;
918
911
  }> & {
919
- type: "magicframe";
920
- name: string | null;
912
+ type: "diamond";
921
913
  } & {
922
914
  index: import("@excalidraw/element/types").FractionalIndex;
923
915
  }) | (Readonly<{
@@ -947,15 +939,15 @@ export declare const actionWrapSelectionInFrame: {
947
939
  frameId: string | null;
948
940
  boundElements: readonly Readonly<{
949
941
  id: string;
950
- type: "text" | "arrow";
942
+ type: "arrow" | "text";
951
943
  }>[] | null;
952
944
  updated: number;
953
945
  link: string | null;
954
946
  locked: boolean;
955
947
  customData?: Record<string, any> | undefined;
956
- }> & Readonly<{
957
- type: "embeddable";
958
948
  }> & {
949
+ type: "ellipse";
950
+ } & {
959
951
  index: import("@excalidraw/element/types").FractionalIndex;
960
952
  }) | (Readonly<{
961
953
  id: string;
@@ -984,18 +976,14 @@ export declare const actionWrapSelectionInFrame: {
984
976
  frameId: string | null;
985
977
  boundElements: readonly Readonly<{
986
978
  id: string;
987
- type: "text" | "arrow";
979
+ type: "arrow" | "text";
988
980
  }>[] | null;
989
981
  updated: number;
990
982
  link: string | null;
991
983
  locked: boolean;
992
984
  customData?: Record<string, any> | undefined;
993
985
  }> & Readonly<{
994
- type: "image";
995
- fileId: import("@excalidraw/element/types").FileId | null;
996
- status: "pending" | "saved" | "error";
997
- scale: [number, number];
998
- crop: import("@excalidraw/element/types").ImageCrop | null;
986
+ type: "embeddable";
999
987
  }> & {
1000
988
  index: import("@excalidraw/element/types").FractionalIndex;
1001
989
  }) | (Readonly<{
@@ -1025,7 +1013,7 @@ export declare const actionWrapSelectionInFrame: {
1025
1013
  frameId: string | null;
1026
1014
  boundElements: readonly Readonly<{
1027
1015
  id: string;
1028
- type: "text" | "arrow";
1016
+ type: "arrow" | "text";
1029
1017
  }>[] | null;
1030
1018
  updated: number;
1031
1019
  link: string | null;
@@ -1065,25 +1053,18 @@ export declare const actionWrapSelectionInFrame: {
1065
1053
  frameId: string | null;
1066
1054
  boundElements: readonly Readonly<{
1067
1055
  id: string;
1068
- type: "text" | "arrow";
1056
+ type: "arrow" | "text";
1069
1057
  }>[] | null;
1070
1058
  updated: number;
1071
1059
  link: string | null;
1072
1060
  locked: boolean;
1073
1061
  customData?: Record<string, any> | undefined;
1074
1062
  }> & Readonly<{
1075
- type: "text";
1076
- fontSize: number;
1077
- fontFamily: number;
1078
- text: string;
1079
- textAlign: string;
1080
- verticalAlign: string;
1081
- containerId: string | null;
1082
- originalText: string;
1083
- autoResize: boolean;
1084
- lineHeight: number & {
1085
- _brand: "unitlessLineHeight";
1086
- };
1063
+ type: "image";
1064
+ fileId: import("@excalidraw/element/types").FileId | null;
1065
+ status: "pending" | "error" | "saved";
1066
+ scale: [number, number];
1067
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1087
1068
  }> & {
1088
1069
  index: import("@excalidraw/element/types").FractionalIndex;
1089
1070
  }) | (Readonly<{
@@ -1113,14 +1094,15 @@ export declare const actionWrapSelectionInFrame: {
1113
1094
  frameId: string | null;
1114
1095
  boundElements: readonly Readonly<{
1115
1096
  id: string;
1116
- type: "text" | "arrow";
1097
+ type: "arrow" | "text";
1117
1098
  }>[] | null;
1118
1099
  updated: number;
1119
1100
  link: string | null;
1120
1101
  locked: boolean;
1121
1102
  customData?: Record<string, any> | undefined;
1122
1103
  }> & {
1123
- type: "selection";
1104
+ type: "frame";
1105
+ name: string | null;
1124
1106
  } & {
1125
1107
  index: import("@excalidraw/element/types").FractionalIndex;
1126
1108
  }) | (Readonly<{
@@ -1150,14 +1132,15 @@ export declare const actionWrapSelectionInFrame: {
1150
1132
  frameId: string | null;
1151
1133
  boundElements: readonly Readonly<{
1152
1134
  id: string;
1153
- type: "text" | "arrow";
1135
+ type: "arrow" | "text";
1154
1136
  }>[] | null;
1155
1137
  updated: number;
1156
1138
  link: string | null;
1157
1139
  locked: boolean;
1158
1140
  customData?: Record<string, any> | undefined;
1159
1141
  }> & {
1160
- type: "ellipse";
1142
+ type: "magicframe";
1143
+ name: string | null;
1161
1144
  } & {
1162
1145
  index: import("@excalidraw/element/types").FractionalIndex;
1163
1146
  }) | (Readonly<{
@@ -1187,20 +1170,25 @@ export declare const actionWrapSelectionInFrame: {
1187
1170
  frameId: string | null;
1188
1171
  boundElements: readonly Readonly<{
1189
1172
  id: string;
1190
- type: "text" | "arrow";
1173
+ type: "arrow" | "text";
1191
1174
  }>[] | null;
1192
1175
  updated: number;
1193
1176
  link: string | null;
1194
1177
  locked: boolean;
1195
1178
  customData?: Record<string, any> | undefined;
1196
1179
  }> & Readonly<{
1197
- type: "line" | "arrow";
1198
- points: readonly import("@excalidraw/math").LocalPoint[];
1199
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1200
- startBinding: import("@excalidraw/element/types").PointBinding | null;
1201
- endBinding: import("@excalidraw/element/types").PointBinding | null;
1202
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1203
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1180
+ type: "text";
1181
+ fontSize: number;
1182
+ fontFamily: number;
1183
+ text: string;
1184
+ textAlign: string;
1185
+ verticalAlign: string;
1186
+ containerId: string | null;
1187
+ originalText: string;
1188
+ autoResize: boolean;
1189
+ lineHeight: number & {
1190
+ _brand: "unitlessLineHeight";
1191
+ };
1204
1192
  }> & {
1205
1193
  index: import("@excalidraw/element/types").FractionalIndex;
1206
1194
  }) | (Readonly<{
@@ -1230,7 +1218,7 @@ export declare const actionWrapSelectionInFrame: {
1230
1218
  frameId: string | null;
1231
1219
  boundElements: readonly Readonly<{
1232
1220
  id: string;
1233
- type: "text" | "arrow";
1221
+ type: "arrow" | "text";
1234
1222
  }>[] | null;
1235
1223
  updated: number;
1236
1224
  link: string | null;