@excalidraw/excalidraw 0.18.0-58f7d33 → 0.18.0-6d75c4b34

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 (167) hide show
  1. package/dist/dev/chunk-CBGOW5JB.js +5669 -0
  2. package/dist/dev/chunk-CBGOW5JB.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-U2IPNUKJ.js → image-SURZSZNX.js} +3 -3
  8. package/dist/dev/index.css +100 -22
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +8406 -9312
  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-IRHK23LL.js +4 -0
  18. package/dist/prod/data/image-HXEZYJPQ.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 +20 -3
  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 +17 -4
  30. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +11 -14
  31. package/dist/types/element/src/align.d.ts +3 -3
  32. package/dist/types/element/src/binding.d.ts +26 -16
  33. package/dist/types/element/src/bounds.d.ts +13 -5
  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} +63 -38
  37. package/dist/types/element/src/distance.d.ts +2 -2
  38. package/dist/types/element/src/dragElements.d.ts +3 -2
  39. package/dist/types/element/src/duplicate.d.ts +10 -13
  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 +5 -4
  44. package/dist/types/element/src/index.d.ts +43 -2
  45. package/dist/types/element/src/linearElementEditor.d.ts +22 -36
  46. package/dist/types/element/src/mutateElement.d.ts +11 -3
  47. package/dist/types/element/src/newElement.d.ts +4 -3
  48. package/dist/types/element/src/resizeElements.d.ts +5 -4
  49. package/dist/types/element/src/selection.d.ts +11 -5
  50. package/dist/types/element/src/shape.d.ts +42 -0
  51. package/dist/types/element/src/sizeHelpers.d.ts +2 -2
  52. package/dist/types/element/src/store.d.ts +232 -0
  53. package/dist/types/element/src/textElement.d.ts +4 -3
  54. package/dist/types/element/src/typeChecks.d.ts +19 -1
  55. package/dist/types/element/src/types.d.ts +15 -2
  56. package/dist/types/element/src/utils.d.ts +16 -6
  57. package/dist/types/element/src/zindex.d.ts +1 -1
  58. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +42 -51
  59. package/dist/types/excalidraw/actions/actionBoundText.d.ts +28 -34
  60. package/dist/types/excalidraw/actions/actionCanvas.d.ts +188 -227
  61. package/dist/types/excalidraw/actions/actionClipboard.d.ts +81 -98
  62. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +14 -17
  63. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +37 -45
  64. package/dist/types/excalidraw/actions/actionElementLink.d.ts +13 -16
  65. package/dist/types/excalidraw/actions/actionElementLock.d.ts +43 -50
  66. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +14 -17
  67. package/dist/types/excalidraw/actions/actionExport.d.ts +136 -163
  68. package/dist/types/excalidraw/actions/actionFinalize.d.ts +71 -37
  69. package/dist/types/excalidraw/actions/actionFrame.d.ts +103 -115
  70. package/dist/types/excalidraw/actions/actionGroup.d.ts +28 -34
  71. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  72. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +506 -16
  73. package/dist/types/excalidraw/actions/actionLink.d.ts +13 -16
  74. package/dist/types/excalidraw/actions/actionMenu.d.ts +39 -48
  75. package/dist/types/excalidraw/actions/actionNavigate.d.ts +27 -33
  76. package/dist/types/excalidraw/actions/actionProperties.d.ts +203 -240
  77. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +13 -16
  78. package/dist/types/excalidraw/actions/actionStyles.d.ts +14 -17
  79. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +14 -17
  80. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +14 -17
  81. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +13 -189
  82. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  83. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +14 -17
  84. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +14 -17
  85. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +14 -17
  86. package/dist/types/excalidraw/actions/types.d.ts +4 -3
  87. package/dist/types/excalidraw/appState.d.ts +19 -10
  88. package/dist/types/excalidraw/components/App.d.ts +30 -19
  89. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  90. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  91. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  92. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  93. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  94. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  95. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  96. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  97. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  98. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  99. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  100. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  101. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  102. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  103. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  104. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  105. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  106. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  107. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  108. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  109. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  110. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  111. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  112. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  115. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  116. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
  117. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  118. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  119. package/dist/types/excalidraw/components/icons.d.ts +3 -0
  120. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  121. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  122. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  123. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  124. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  125. package/dist/types/excalidraw/history.d.ts +30 -22
  126. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  127. package/dist/types/excalidraw/index.d.ts +9 -9
  128. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  129. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  130. package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
  131. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -2
  132. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  133. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  134. package/dist/types/excalidraw/scene/types.d.ts +2 -0
  135. package/dist/types/excalidraw/snapping.d.ts +2 -2
  136. package/dist/types/excalidraw/types.d.ts +30 -10
  137. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  138. package/dist/types/math/src/angle.d.ts +2 -0
  139. package/dist/types/math/src/constants.d.ts +3 -0
  140. package/dist/types/math/src/curve.d.ts +34 -0
  141. package/dist/types/math/src/index.d.ts +1 -0
  142. package/dist/types/math/src/point.d.ts +1 -1
  143. package/dist/types/math/src/rectangle.d.ts +2 -0
  144. package/dist/types/math/src/vector.d.ts +8 -2
  145. package/dist/types/utils/src/bbox.d.ts +1 -1
  146. package/dist/types/utils/src/index.d.ts +1 -1
  147. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  148. package/history.ts +147 -110
  149. package/package.json +12 -9
  150. package/dist/dev/chunk-KKJLIRJU.js +0 -7
  151. package/dist/dev/chunk-KKJLIRJU.js.map +0 -7
  152. package/dist/dev/chunk-LEJJ2YZY.js +0 -18711
  153. package/dist/dev/chunk-LEJJ2YZY.js.map +0 -7
  154. package/dist/dev/chunk-X3RYHLJU.js.map +0 -7
  155. package/dist/prod/chunk-IUH5AXLB.js +0 -12
  156. package/dist/prod/chunk-QUX7WTVH.js +0 -7
  157. package/dist/prod/chunk-RQK6WG4F.js +0 -33
  158. package/dist/prod/data/image-UQDATCXC.js +0 -1
  159. package/dist/types/element/src/Shape.d.ts +0 -17
  160. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  161. package/dist/types/element/src/shapes.d.ts +0 -23
  162. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  163. package/dist/types/excalidraw/store.d.ts +0 -129
  164. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  165. package/dist/types/utils/src/collision.d.ts +0 -8
  166. /package/dist/dev/data/{image-U2IPNUKJ.js.map → image-SURZSZNX.js.map} +0 -0
  167. /package/dist/dev/locales/{en-CKWC2GMK.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -19,7 +19,7 @@ export declare const actionCopy: {
19
19
  isLoading: boolean;
20
20
  activeEmbeddable: {
21
21
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
22
- state: "hover" | "active";
22
+ state: "active" | "hover";
23
23
  } | null;
24
24
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
25
25
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -27,7 +27,7 @@ export declare const actionCopy: {
27
27
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
28
  isBindingEnabled: boolean;
29
29
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
30
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
31
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
32
32
  frameRendering: {
33
33
  enabled: boolean;
@@ -38,7 +38,7 @@ export declare const actionCopy: {
38
38
  editingFrame: string | null;
39
39
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
40
40
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
41
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
42
42
  activeTool: {
43
43
  lastActiveTool: import("../types").ActiveTool | null;
44
44
  locked: boolean;
@@ -76,7 +76,7 @@ export declare const actionCopy: {
76
76
  zoom: Readonly<{
77
77
  value: import("../types").NormalizedZoomValue;
78
78
  }>;
79
- openMenu: "shape" | "canvas" | null;
79
+ openMenu: "canvas" | "shape" | null;
80
80
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
81
  openSidebar: {
82
82
  name: string;
@@ -86,7 +86,7 @@ export declare const actionCopy: {
86
86
  name: "imageExport" | "help" | "jsonExport";
87
87
  } | {
88
88
  name: "ttd";
89
- tab: "text-to-diagram" | "mermaid";
89
+ tab: "mermaid" | "text-to-diagram";
90
90
  } | {
91
91
  name: "commandPalette";
92
92
  } | {
@@ -158,9 +158,8 @@ export declare const actionCopy: {
158
158
  shown: true;
159
159
  data: import("../charts").Spreadsheet;
160
160
  };
161
- pendingImageElementId: string | null;
162
161
  showHyperlinkPopup: false | "editor" | "info";
163
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
162
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
164
163
  snapLines: readonly import("../snapping").SnapLine[];
165
164
  originSnapOffset: {
166
165
  x: number;
@@ -171,16 +170,14 @@ export declare const actionCopy: {
171
170
  followedBy: Set<import("../types").SocketId>;
172
171
  isCropping: boolean;
173
172
  croppingElementId: string | null;
174
- searchMatches: readonly {
175
- id: string;
176
- focus: boolean;
177
- matchedLines: {
178
- offsetX: number;
179
- offsetY: number;
180
- width: number;
181
- height: number;
182
- }[];
183
- }[];
173
+ searchMatches: Readonly<{
174
+ focusedId: string | null;
175
+ matches: readonly import("../types").SearchMatch[];
176
+ }> | null;
177
+ activeLockedId: string | null;
178
+ lockedMultiSelections: {
179
+ [groupId: string]: true;
180
+ };
184
181
  };
185
182
  } | {
186
183
  captureUpdate: "EVENTUALLY";
@@ -209,7 +206,7 @@ export declare const actionPaste: {
209
206
  isLoading: boolean;
210
207
  activeEmbeddable: {
211
208
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
212
- state: "hover" | "active";
209
+ state: "active" | "hover";
213
210
  } | null;
214
211
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
215
212
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -217,7 +214,7 @@ export declare const actionPaste: {
217
214
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
218
215
  isBindingEnabled: boolean;
219
216
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
220
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
217
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
221
218
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
222
219
  frameRendering: {
223
220
  enabled: boolean;
@@ -228,7 +225,7 @@ export declare const actionPaste: {
228
225
  editingFrame: string | null;
229
226
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
230
227
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
231
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
228
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
232
229
  activeTool: {
233
230
  lastActiveTool: import("../types").ActiveTool | null;
234
231
  locked: boolean;
@@ -266,7 +263,7 @@ export declare const actionPaste: {
266
263
  zoom: Readonly<{
267
264
  value: import("../types").NormalizedZoomValue;
268
265
  }>;
269
- openMenu: "shape" | "canvas" | null;
266
+ openMenu: "canvas" | "shape" | null;
270
267
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
271
268
  openSidebar: {
272
269
  name: string;
@@ -276,7 +273,7 @@ export declare const actionPaste: {
276
273
  name: "imageExport" | "help" | "jsonExport";
277
274
  } | {
278
275
  name: "ttd";
279
- tab: "text-to-diagram" | "mermaid";
276
+ tab: "mermaid" | "text-to-diagram";
280
277
  } | {
281
278
  name: "commandPalette";
282
279
  } | {
@@ -348,9 +345,8 @@ export declare const actionPaste: {
348
345
  shown: true;
349
346
  data: import("../charts").Spreadsheet;
350
347
  };
351
- pendingImageElementId: string | null;
352
348
  showHyperlinkPopup: false | "editor" | "info";
353
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
349
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
354
350
  snapLines: readonly import("../snapping").SnapLine[];
355
351
  originSnapOffset: {
356
352
  x: number;
@@ -361,16 +357,14 @@ export declare const actionPaste: {
361
357
  followedBy: Set<import("../types").SocketId>;
362
358
  isCropping: boolean;
363
359
  croppingElementId: string | null;
364
- searchMatches: readonly {
365
- id: string;
366
- focus: boolean;
367
- matchedLines: {
368
- offsetX: number;
369
- offsetY: number;
370
- width: number;
371
- height: number;
372
- }[];
373
- }[];
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
+ };
374
368
  };
375
369
  } | {
376
370
  captureUpdate: "EVENTUALLY";
@@ -401,7 +395,7 @@ export declare const actionCut: {
401
395
  errorMessage: import("react").ReactNode;
402
396
  activeEmbeddable: {
403
397
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
404
- state: "hover" | "active";
398
+ state: "active" | "hover";
405
399
  } | null;
406
400
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
407
401
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -409,7 +403,7 @@ export declare const actionCut: {
409
403
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
410
404
  isBindingEnabled: boolean;
411
405
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
412
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
406
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
413
407
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
414
408
  frameRendering: {
415
409
  enabled: boolean;
@@ -457,7 +451,7 @@ export declare const actionCut: {
457
451
  zoom: Readonly<{
458
452
  value: import("../types").NormalizedZoomValue;
459
453
  }>;
460
- openMenu: "shape" | "canvas" | null;
454
+ openMenu: "canvas" | "shape" | null;
461
455
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
462
456
  openSidebar: {
463
457
  name: string;
@@ -467,7 +461,7 @@ export declare const actionCut: {
467
461
  name: "imageExport" | "help" | "jsonExport";
468
462
  } | {
469
463
  name: "ttd";
470
- tab: "text-to-diagram" | "mermaid";
464
+ tab: "mermaid" | "text-to-diagram";
471
465
  } | {
472
466
  name: "commandPalette";
473
467
  } | {
@@ -539,9 +533,8 @@ export declare const actionCut: {
539
533
  shown: true;
540
534
  data: import("../charts").Spreadsheet;
541
535
  };
542
- pendingImageElementId: string | null;
543
536
  showHyperlinkPopup: false | "editor" | "info";
544
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
537
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
545
538
  snapLines: readonly import("../snapping").SnapLine[];
546
539
  originSnapOffset: {
547
540
  x: number;
@@ -552,16 +545,14 @@ export declare const actionCut: {
552
545
  followedBy: Set<import("../types").SocketId>;
553
546
  isCropping: boolean;
554
547
  croppingElementId: string | null;
555
- searchMatches: readonly {
556
- id: string;
557
- focus: boolean;
558
- matchedLines: {
559
- offsetX: number;
560
- offsetY: number;
561
- width: number;
562
- height: number;
563
- }[];
564
- }[];
548
+ searchMatches: Readonly<{
549
+ focusedId: string | null;
550
+ matches: readonly import("../types").SearchMatch[];
551
+ }> | null;
552
+ activeLockedId: string | null;
553
+ lockedMultiSelections: {
554
+ [groupId: string]: true;
555
+ };
565
556
  };
566
557
  captureUpdate: "IMMEDIATELY";
567
558
  } | {
@@ -597,6 +588,7 @@ export declare const actionCut: {
597
588
  hoverPointIndex: number;
598
589
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
599
590
  elbowed: boolean;
591
+ customLineAngle: number | null;
600
592
  };
601
593
  contextMenu: {
602
594
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -608,7 +600,7 @@ export declare const actionCut: {
608
600
  errorMessage: import("react").ReactNode;
609
601
  activeEmbeddable: {
610
602
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
611
- state: "hover" | "active";
603
+ state: "active" | "hover";
612
604
  } | null;
613
605
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
614
606
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -616,7 +608,7 @@ export declare const actionCut: {
616
608
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
617
609
  isBindingEnabled: boolean;
618
610
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
619
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
611
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
620
612
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
621
613
  frameRendering: {
622
614
  enabled: boolean;
@@ -664,7 +656,7 @@ export declare const actionCut: {
664
656
  zoom: Readonly<{
665
657
  value: import("../types").NormalizedZoomValue;
666
658
  }>;
667
- openMenu: "shape" | "canvas" | null;
659
+ openMenu: "canvas" | "shape" | null;
668
660
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
669
661
  openSidebar: {
670
662
  name: string;
@@ -674,7 +666,7 @@ export declare const actionCut: {
674
666
  name: "imageExport" | "help" | "jsonExport";
675
667
  } | {
676
668
  name: "ttd";
677
- tab: "text-to-diagram" | "mermaid";
669
+ tab: "mermaid" | "text-to-diagram";
678
670
  } | {
679
671
  name: "commandPalette";
680
672
  } | {
@@ -746,9 +738,8 @@ export declare const actionCut: {
746
738
  shown: true;
747
739
  data: import("../charts").Spreadsheet;
748
740
  };
749
- pendingImageElementId: string | null;
750
741
  showHyperlinkPopup: false | "editor" | "info";
751
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
742
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
752
743
  snapLines: readonly import("../snapping").SnapLine[];
753
744
  originSnapOffset: {
754
745
  x: number;
@@ -759,16 +750,14 @@ export declare const actionCut: {
759
750
  followedBy: Set<import("../types").SocketId>;
760
751
  isCropping: boolean;
761
752
  croppingElementId: string | null;
762
- searchMatches: readonly {
763
- id: string;
764
- focus: boolean;
765
- matchedLines: {
766
- offsetX: number;
767
- offsetY: number;
768
- width: number;
769
- height: number;
770
- }[];
771
- }[];
753
+ searchMatches: Readonly<{
754
+ focusedId: string | null;
755
+ matches: readonly import("../types").SearchMatch[];
756
+ }> | null;
757
+ activeLockedId: string | null;
758
+ lockedMultiSelections: {
759
+ [groupId: string]: true;
760
+ };
772
761
  };
773
762
  captureUpdate: "IMMEDIATELY";
774
763
  } | {
@@ -802,7 +791,7 @@ export declare const actionCut: {
802
791
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
803
792
  isBindingEnabled: boolean;
804
793
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
805
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
794
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
806
795
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
807
796
  frameRendering: {
808
797
  enabled: boolean;
@@ -813,7 +802,7 @@ export declare const actionCut: {
813
802
  editingFrame: string | null;
814
803
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
815
804
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
816
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
805
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
817
806
  penMode: boolean;
818
807
  penDetected: boolean;
819
808
  exportBackground: boolean;
@@ -846,7 +835,7 @@ export declare const actionCut: {
846
835
  zoom: Readonly<{
847
836
  value: import("../types").NormalizedZoomValue;
848
837
  }>;
849
- openMenu: "shape" | "canvas" | null;
838
+ openMenu: "canvas" | "shape" | null;
850
839
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
851
840
  openSidebar: {
852
841
  name: string;
@@ -856,7 +845,7 @@ export declare const actionCut: {
856
845
  name: "imageExport" | "help" | "jsonExport";
857
846
  } | {
858
847
  name: "ttd";
859
- tab: "text-to-diagram" | "mermaid";
848
+ tab: "mermaid" | "text-to-diagram";
860
849
  } | {
861
850
  name: "commandPalette";
862
851
  } | {
@@ -921,7 +910,6 @@ export declare const actionCut: {
921
910
  shown: true;
922
911
  data: import("../charts").Spreadsheet;
923
912
  };
924
- pendingImageElementId: string | null;
925
913
  showHyperlinkPopup: false | "editor" | "info";
926
914
  snapLines: readonly import("../snapping").SnapLine[];
927
915
  originSnapOffset: {
@@ -933,16 +921,14 @@ export declare const actionCut: {
933
921
  followedBy: Set<import("../types").SocketId>;
934
922
  isCropping: boolean;
935
923
  croppingElementId: string | null;
936
- searchMatches: readonly {
937
- id: string;
938
- focus: boolean;
939
- matchedLines: {
940
- offsetX: number;
941
- offsetY: number;
942
- width: number;
943
- height: number;
944
- }[];
945
- }[];
924
+ searchMatches: Readonly<{
925
+ focusedId: string | null;
926
+ matches: readonly import("../types").SearchMatch[];
927
+ }> | null;
928
+ activeLockedId: string | null;
929
+ lockedMultiSelections: {
930
+ [groupId: string]: true;
931
+ };
946
932
  };
947
933
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
948
934
  };
@@ -1002,7 +988,7 @@ export declare const actionCopyAsPng: {
1002
988
  isLoading: boolean;
1003
989
  activeEmbeddable: {
1004
990
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1005
- state: "hover" | "active";
991
+ state: "active" | "hover";
1006
992
  } | null;
1007
993
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1008
994
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1010,7 +996,7 @@ export declare const actionCopyAsPng: {
1010
996
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1011
997
  isBindingEnabled: boolean;
1012
998
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1013
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
999
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1014
1000
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1015
1001
  frameRendering: {
1016
1002
  enabled: boolean;
@@ -1021,7 +1007,7 @@ export declare const actionCopyAsPng: {
1021
1007
  editingFrame: string | null;
1022
1008
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1023
1009
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1024
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1010
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1025
1011
  activeTool: {
1026
1012
  lastActiveTool: import("../types").ActiveTool | null;
1027
1013
  locked: boolean;
@@ -1059,7 +1045,7 @@ export declare const actionCopyAsPng: {
1059
1045
  zoom: Readonly<{
1060
1046
  value: import("../types").NormalizedZoomValue;
1061
1047
  }>;
1062
- openMenu: "shape" | "canvas" | null;
1048
+ openMenu: "canvas" | "shape" | null;
1063
1049
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1064
1050
  openSidebar: {
1065
1051
  name: string;
@@ -1069,7 +1055,7 @@ export declare const actionCopyAsPng: {
1069
1055
  name: "imageExport" | "help" | "jsonExport";
1070
1056
  } | {
1071
1057
  name: "ttd";
1072
- tab: "text-to-diagram" | "mermaid";
1058
+ tab: "mermaid" | "text-to-diagram";
1073
1059
  } | {
1074
1060
  name: "commandPalette";
1075
1061
  } | {
@@ -1141,9 +1127,8 @@ export declare const actionCopyAsPng: {
1141
1127
  shown: true;
1142
1128
  data: import("../charts").Spreadsheet;
1143
1129
  };
1144
- pendingImageElementId: string | null;
1145
1130
  showHyperlinkPopup: false | "editor" | "info";
1146
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1131
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1147
1132
  snapLines: readonly import("../snapping").SnapLine[];
1148
1133
  originSnapOffset: {
1149
1134
  x: number;
@@ -1154,16 +1139,14 @@ export declare const actionCopyAsPng: {
1154
1139
  followedBy: Set<import("../types").SocketId>;
1155
1140
  isCropping: boolean;
1156
1141
  croppingElementId: string | null;
1157
- searchMatches: readonly {
1158
- id: string;
1159
- focus: boolean;
1160
- matchedLines: {
1161
- offsetX: number;
1162
- offsetY: number;
1163
- width: number;
1164
- height: number;
1165
- }[];
1166
- }[];
1142
+ searchMatches: Readonly<{
1143
+ focusedId: string | null;
1144
+ matches: readonly import("../types").SearchMatch[];
1145
+ }> | null;
1146
+ activeLockedId: string | null;
1147
+ lockedMultiSelections: {
1148
+ [groupId: string]: true;
1149
+ };
1167
1150
  };
1168
1151
  captureUpdate: "EVENTUALLY";
1169
1152
  }>;
@@ -22,7 +22,7 @@ export declare const actionToggleCropEditor: {
22
22
  errorMessage: import("react").ReactNode;
23
23
  activeEmbeddable: {
24
24
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
25
- state: "hover" | "active";
25
+ state: "active" | "hover";
26
26
  } | null;
27
27
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
28
28
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -30,7 +30,7 @@ export declare const actionToggleCropEditor: {
30
30
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
31
  isBindingEnabled: boolean;
32
32
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
33
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
33
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
34
34
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
35
35
  frameRendering: {
36
36
  enabled: boolean;
@@ -41,7 +41,7 @@ export declare const actionToggleCropEditor: {
41
41
  editingFrame: string | null;
42
42
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
43
43
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
44
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
44
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
45
45
  activeTool: {
46
46
  lastActiveTool: import("../types").ActiveTool | null;
47
47
  locked: boolean;
@@ -79,7 +79,7 @@ export declare const actionToggleCropEditor: {
79
79
  zoom: Readonly<{
80
80
  value: import("../types").NormalizedZoomValue;
81
81
  }>;
82
- openMenu: "shape" | "canvas" | null;
82
+ openMenu: "canvas" | "shape" | null;
83
83
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
84
84
  openSidebar: {
85
85
  name: string;
@@ -89,7 +89,7 @@ export declare const actionToggleCropEditor: {
89
89
  name: "imageExport" | "help" | "jsonExport";
90
90
  } | {
91
91
  name: "ttd";
92
- tab: "text-to-diagram" | "mermaid";
92
+ tab: "mermaid" | "text-to-diagram";
93
93
  } | {
94
94
  name: "commandPalette";
95
95
  } | {
@@ -161,9 +161,8 @@ export declare const actionToggleCropEditor: {
161
161
  shown: true;
162
162
  data: import("../charts").Spreadsheet;
163
163
  };
164
- pendingImageElementId: string | null;
165
164
  showHyperlinkPopup: false | "editor" | "info";
166
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
165
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
167
166
  snapLines: readonly import("../snapping").SnapLine[];
168
167
  originSnapOffset: {
169
168
  x: number;
@@ -172,16 +171,14 @@ export declare const actionToggleCropEditor: {
172
171
  objectsSnapModeEnabled: boolean;
173
172
  userToFollow: import("../types").UserToFollow | null;
174
173
  followedBy: Set<import("../types").SocketId>;
175
- searchMatches: readonly {
176
- id: string;
177
- focus: boolean;
178
- matchedLines: {
179
- offsetX: number;
180
- offsetY: number;
181
- width: number;
182
- height: number;
183
- }[];
184
- }[];
174
+ searchMatches: Readonly<{
175
+ focusedId: string | null;
176
+ matches: readonly import("../types").SearchMatch[];
177
+ }> | null;
178
+ activeLockedId: string | null;
179
+ lockedMultiSelections: {
180
+ [groupId: string]: true;
181
+ };
185
182
  };
186
183
  captureUpdate: "IMMEDIATELY";
187
184
  };