@myoc/excalidraw 0.18.16 → 0.18.18

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 (179) hide show
  1. package/dist/dev/{chunk-3HLOFB5F.js → chunk-MAGRVBVM.js} +13453 -10629
  2. package/dist/dev/chunk-MAGRVBVM.js.map +7 -0
  3. package/dist/dev/{chunk-PEI7EPYO.js → chunk-QO4EFL6B.js} +15 -5
  4. package/dist/dev/chunk-QO4EFL6B.js.map +7 -0
  5. package/dist/dev/chunk-WUH7JFG4.js +7 -0
  6. package/dist/dev/chunk-WUH7JFG4.js.map +7 -0
  7. package/dist/dev/data/{image-XPEIZ6XQ.js → image-BBHDGXQ3.js} +3 -3
  8. package/dist/dev/index.css +101 -24
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +6587 -7610
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-R455UJTM.js → en-2WXBKZE2.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-4Z2WWUCC.js +7 -0
  16. package/dist/prod/chunk-KZXLT4YB.js +12 -0
  17. package/dist/prod/chunk-YBT3HBS6.js +33 -0
  18. package/dist/prod/data/image-JFILZTP3.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +18 -17
  21. package/dist/prod/locales/{en-YWERZJD6.js → en-XFR6MADM.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 +19 -2
  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/points.d.ts +1 -1
  29. package/dist/types/common/src/utility-types.d.ts +5 -0
  30. package/dist/types/common/src/utils.d.ts +17 -7
  31. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +11 -14
  32. package/dist/types/element/src/align.d.ts +3 -3
  33. package/dist/types/element/src/arrange.d.ts +2 -1
  34. package/dist/types/element/src/binding.d.ts +21 -14
  35. package/dist/types/element/src/bounds.d.ts +11 -5
  36. package/dist/types/element/src/collision.d.ts +18 -12
  37. package/dist/types/element/src/cropElement.d.ts +1 -1
  38. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +63 -38
  39. package/dist/types/element/src/distance.d.ts +2 -2
  40. package/dist/types/element/src/dragElements.d.ts +3 -2
  41. package/dist/types/element/src/elbowArrow.d.ts +2 -2
  42. package/dist/types/element/src/flowchart.d.ts +3 -2
  43. package/dist/types/element/src/fractionalIndex.d.ts +9 -3
  44. package/dist/types/element/src/frame.d.ts +4 -3
  45. package/dist/types/element/src/heading.d.ts +2 -2
  46. package/dist/types/element/src/index.d.ts +43 -2
  47. package/dist/types/element/src/linearElementEditor.d.ts +21 -32
  48. package/dist/types/element/src/mutateElement.d.ts +11 -3
  49. package/dist/types/element/src/newElement.d.ts +4 -3
  50. package/dist/types/element/src/resizeElements.d.ts +5 -4
  51. package/dist/types/element/src/resizeTest.d.ts +2 -2
  52. package/dist/types/element/src/selection.d.ts +1 -6
  53. package/dist/types/element/src/shape.d.ts +42 -0
  54. package/dist/types/element/src/shapes.d.ts +10 -10
  55. package/dist/types/element/src/sizeHelpers.d.ts +2 -2
  56. package/dist/types/element/src/store.d.ts +231 -0
  57. package/dist/types/element/src/textElement.d.ts +4 -3
  58. package/dist/types/element/src/typeChecks.d.ts +19 -1
  59. package/dist/types/element/src/types.d.ts +15 -2
  60. package/dist/types/element/src/utils.d.ts +5 -1
  61. package/dist/types/element/src/zindex.d.ts +1 -1
  62. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +42 -51
  63. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  64. package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
  65. package/dist/types/excalidraw/actions/actionBoundText.d.ts +28 -34
  66. package/dist/types/excalidraw/actions/actionCanvas.d.ts +187 -223
  67. package/dist/types/excalidraw/actions/actionClipboard.d.ts +87 -104
  68. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +14 -17
  69. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +41 -49
  70. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  71. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  72. package/dist/types/excalidraw/actions/actionElementLink.d.ts +14 -17
  73. package/dist/types/excalidraw/actions/actionElementLock.d.ts +43 -50
  74. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +14 -17
  75. package/dist/types/excalidraw/actions/actionExport.d.ts +219 -246
  76. package/dist/types/excalidraw/actions/actionFinalize.d.ts +74 -40
  77. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  78. package/dist/types/excalidraw/actions/actionFrame.d.ts +100 -112
  79. package/dist/types/excalidraw/actions/actionGroup.d.ts +34 -40
  80. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  81. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +506 -16
  82. package/dist/types/excalidraw/actions/actionLink.d.ts +14 -17
  83. package/dist/types/excalidraw/actions/actionMenu.d.ts +42 -51
  84. package/dist/types/excalidraw/actions/actionNavigate.d.ts +27 -33
  85. package/dist/types/excalidraw/actions/actionProperties.d.ts +206 -243
  86. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +16 -19
  87. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
  88. package/dist/types/excalidraw/actions/actionStyles.d.ts +18 -21
  89. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -19
  90. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -19
  91. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -200
  92. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  93. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -19
  94. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +16 -19
  95. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -19
  96. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  97. package/dist/types/excalidraw/actions/types.d.ts +4 -3
  98. package/dist/types/excalidraw/appState.d.ts +40 -31
  99. package/dist/types/excalidraw/components/App.d.ts +15 -17
  100. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  101. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  102. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  103. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  104. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  105. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  106. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  107. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  108. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  109. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  110. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  111. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  112. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  113. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  114. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  116. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  117. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  118. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  119. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  120. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  121. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  122. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  123. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  124. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  125. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  126. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  127. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  128. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  129. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  130. package/dist/types/excalidraw/components/icons.d.ts +3 -0
  131. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  132. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  133. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  134. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  135. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  136. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  137. package/dist/types/excalidraw/history.d.ts +30 -22
  138. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  139. package/dist/types/excalidraw/index.d.ts +9 -9
  140. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  141. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  142. package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
  143. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -2
  144. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  145. package/dist/types/excalidraw/snapping.d.ts +2 -2
  146. package/dist/types/excalidraw/types.d.ts +25 -10
  147. package/dist/types/excalidraw/visualdebug.d.ts +1 -1
  148. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  149. package/dist/types/math/src/angle.d.ts +3 -1
  150. package/dist/types/math/src/constants.d.ts +3 -0
  151. package/dist/types/math/src/curve.d.ts +34 -0
  152. package/dist/types/math/src/ellipse.d.ts +3 -3
  153. package/dist/types/math/src/index.d.ts +1 -0
  154. package/dist/types/math/src/point.d.ts +3 -3
  155. package/dist/types/math/src/polygon.d.ts +2 -2
  156. package/dist/types/math/src/segment.d.ts +5 -5
  157. package/dist/types/math/src/utils.d.ts +2 -0
  158. package/dist/types/math/src/vector.d.ts +8 -2
  159. package/dist/types/utils/src/bbox.d.ts +1 -1
  160. package/dist/types/utils/src/index.d.ts +1 -1
  161. package/dist/types/utils/src/shape.d.ts +12 -12
  162. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  163. package/history.ts +147 -110
  164. package/package.json +4 -4
  165. package/dist/dev/chunk-3HLOFB5F.js.map +0 -7
  166. package/dist/dev/chunk-PEI7EPYO.js.map +0 -7
  167. package/dist/dev/chunk-QQGTICP4.js +0 -7
  168. package/dist/dev/chunk-QQGTICP4.js.map +0 -7
  169. package/dist/prod/chunk-7HNFGNL7.js +0 -7
  170. package/dist/prod/chunk-KKQVTSHB.js +0 -33
  171. package/dist/prod/chunk-KZWZ7WHC.js +0 -12
  172. package/dist/prod/data/image-QD7FUQED.js +0 -1
  173. package/dist/types/element/src/Shape.d.ts +0 -17
  174. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  175. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  176. package/dist/types/excalidraw/store.d.ts +0 -129
  177. package/dist/types/utils/src/collision.d.ts +0 -8
  178. /package/dist/dev/data/{image-XPEIZ6XQ.js.map → image-BBHDGXQ3.js.map} +0 -0
  179. /package/dist/dev/locales/{en-R455UJTM.js.map → en-2WXBKZE2.js.map} +0 -0
@@ -35,7 +35,7 @@ export declare const actionCopy: {
35
35
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
36
36
  isBindingEnabled: boolean;
37
37
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
38
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
38
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
39
39
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
40
40
  frameRendering: {
41
41
  enabled: boolean;
@@ -46,7 +46,7 @@ export declare const actionCopy: {
46
46
  editingFrame: string | null;
47
47
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
48
48
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
49
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
49
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
50
50
  activeTool: {
51
51
  lastActiveTool: import("../types").ActiveTool | null;
52
52
  locked: boolean;
@@ -72,7 +72,7 @@ export declare const actionCopy: {
72
72
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
73
73
  currentHoveredFontFamily: number | null;
74
74
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
75
- currentItemArrowType: "round" | "sharp" | "elbow";
75
+ currentItemArrowType: "sharp" | "round" | "elbow";
76
76
  viewBackgroundColor: string;
77
77
  scrollX: number;
78
78
  scrollY: number;
@@ -84,7 +84,7 @@ export declare const actionCopy: {
84
84
  zoom: Readonly<{
85
85
  value: import("../types").NormalizedZoomValue;
86
86
  }>;
87
- openMenu: "shape" | "canvas" | null;
87
+ openMenu: "canvas" | "shape" | null;
88
88
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
89
89
  openSidebar: {
90
90
  name: string;
@@ -166,9 +166,8 @@ export declare const actionCopy: {
166
166
  shown: true;
167
167
  data: import("../charts").Spreadsheet;
168
168
  };
169
- pendingImageElementId: string | null;
170
- showHyperlinkPopup: false | "editor" | "info";
171
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
169
+ showHyperlinkPopup: false | "info" | "editor";
170
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
172
171
  snapLines: readonly import("../snapping").SnapLine[];
173
172
  originSnapOffset: {
174
173
  x: number;
@@ -179,16 +178,14 @@ export declare const actionCopy: {
179
178
  followedBy: Set<import("../types").SocketId>;
180
179
  isCropping: boolean;
181
180
  croppingElementId: string | null;
182
- searchMatches: readonly {
183
- id: string;
184
- focus: boolean;
185
- matchedLines: {
186
- offsetX: number;
187
- offsetY: number;
188
- width: number;
189
- height: number;
190
- }[];
191
- }[];
181
+ searchMatches: Readonly<{
182
+ focusedId: string | null;
183
+ matches: readonly import("../types").SearchMatch[];
184
+ }> | null;
185
+ activeLockedId: string | null;
186
+ lockedMultiSelections: {
187
+ [groupId: string]: true;
188
+ };
192
189
  };
193
190
  } | {
194
191
  captureUpdate: "EVENTUALLY";
@@ -233,7 +230,7 @@ export declare const actionPaste: {
233
230
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
234
231
  isBindingEnabled: boolean;
235
232
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
236
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
233
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
237
234
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
238
235
  frameRendering: {
239
236
  enabled: boolean;
@@ -244,7 +241,7 @@ export declare const actionPaste: {
244
241
  editingFrame: string | null;
245
242
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
246
243
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
247
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
244
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
248
245
  activeTool: {
249
246
  lastActiveTool: import("../types").ActiveTool | null;
250
247
  locked: boolean;
@@ -270,7 +267,7 @@ export declare const actionPaste: {
270
267
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
271
268
  currentHoveredFontFamily: number | null;
272
269
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
273
- currentItemArrowType: "round" | "sharp" | "elbow";
270
+ currentItemArrowType: "sharp" | "round" | "elbow";
274
271
  viewBackgroundColor: string;
275
272
  scrollX: number;
276
273
  scrollY: number;
@@ -282,7 +279,7 @@ export declare const actionPaste: {
282
279
  zoom: Readonly<{
283
280
  value: import("../types").NormalizedZoomValue;
284
281
  }>;
285
- openMenu: "shape" | "canvas" | null;
282
+ openMenu: "canvas" | "shape" | null;
286
283
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
287
284
  openSidebar: {
288
285
  name: string;
@@ -364,9 +361,8 @@ export declare const actionPaste: {
364
361
  shown: true;
365
362
  data: import("../charts").Spreadsheet;
366
363
  };
367
- pendingImageElementId: string | null;
368
- showHyperlinkPopup: false | "editor" | "info";
369
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
364
+ showHyperlinkPopup: false | "info" | "editor";
365
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
370
366
  snapLines: readonly import("../snapping").SnapLine[];
371
367
  originSnapOffset: {
372
368
  x: number;
@@ -377,16 +373,14 @@ export declare const actionPaste: {
377
373
  followedBy: Set<import("../types").SocketId>;
378
374
  isCropping: boolean;
379
375
  croppingElementId: string | null;
380
- searchMatches: readonly {
381
- id: string;
382
- focus: boolean;
383
- matchedLines: {
384
- offsetX: number;
385
- offsetY: number;
386
- width: number;
387
- height: number;
388
- }[];
389
- }[];
376
+ searchMatches: Readonly<{
377
+ focusedId: string | null;
378
+ matches: readonly import("../types").SearchMatch[];
379
+ }> | null;
380
+ activeLockedId: string | null;
381
+ lockedMultiSelections: {
382
+ [groupId: string]: true;
383
+ };
390
384
  };
391
385
  } | {
392
386
  captureUpdate: "EVENTUALLY";
@@ -433,7 +427,7 @@ export declare const actionCut: {
433
427
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
434
428
  isBindingEnabled: boolean;
435
429
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
436
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
430
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
437
431
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
438
432
  frameRendering: {
439
433
  enabled: boolean;
@@ -469,7 +463,7 @@ export declare const actionCut: {
469
463
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
470
464
  currentHoveredFontFamily: number | null;
471
465
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
472
- currentItemArrowType: "round" | "sharp" | "elbow";
466
+ currentItemArrowType: "sharp" | "round" | "elbow";
473
467
  viewBackgroundColor: string;
474
468
  scrollX: number;
475
469
  scrollY: number;
@@ -481,7 +475,7 @@ export declare const actionCut: {
481
475
  zoom: Readonly<{
482
476
  value: import("../types").NormalizedZoomValue;
483
477
  }>;
484
- openMenu: "shape" | "canvas" | null;
478
+ openMenu: "canvas" | "shape" | null;
485
479
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
486
480
  openSidebar: {
487
481
  name: string;
@@ -563,9 +557,8 @@ export declare const actionCut: {
563
557
  shown: true;
564
558
  data: import("../charts").Spreadsheet;
565
559
  };
566
- pendingImageElementId: string | null;
567
- showHyperlinkPopup: false | "editor" | "info";
568
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
560
+ showHyperlinkPopup: false | "info" | "editor";
561
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
569
562
  snapLines: readonly import("../snapping").SnapLine[];
570
563
  originSnapOffset: {
571
564
  x: number;
@@ -576,16 +569,14 @@ export declare const actionCut: {
576
569
  followedBy: Set<import("../types").SocketId>;
577
570
  isCropping: boolean;
578
571
  croppingElementId: string | null;
579
- searchMatches: readonly {
580
- id: string;
581
- focus: boolean;
582
- matchedLines: {
583
- offsetX: number;
584
- offsetY: number;
585
- width: number;
586
- height: number;
587
- }[];
588
- }[];
572
+ searchMatches: Readonly<{
573
+ focusedId: string | null;
574
+ matches: readonly import("../types").SearchMatch[];
575
+ }> | null;
576
+ activeLockedId: string | null;
577
+ lockedMultiSelections: {
578
+ [groupId: string]: true;
579
+ };
589
580
  };
590
581
  captureUpdate: "IMMEDIATELY";
591
582
  } | {
@@ -621,6 +612,7 @@ export declare const actionCut: {
621
612
  hoverPointIndex: number;
622
613
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
623
614
  elbowed: boolean;
615
+ customLineAngle: number | null;
624
616
  };
625
617
  contextMenu: {
626
618
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -648,7 +640,7 @@ export declare const actionCut: {
648
640
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
649
641
  isBindingEnabled: boolean;
650
642
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
651
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
643
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
652
644
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
653
645
  frameRendering: {
654
646
  enabled: boolean;
@@ -684,7 +676,7 @@ export declare const actionCut: {
684
676
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
685
677
  currentHoveredFontFamily: number | null;
686
678
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
687
- currentItemArrowType: "round" | "sharp" | "elbow";
679
+ currentItemArrowType: "sharp" | "round" | "elbow";
688
680
  viewBackgroundColor: string;
689
681
  scrollX: number;
690
682
  scrollY: number;
@@ -696,7 +688,7 @@ export declare const actionCut: {
696
688
  zoom: Readonly<{
697
689
  value: import("../types").NormalizedZoomValue;
698
690
  }>;
699
- openMenu: "shape" | "canvas" | null;
691
+ openMenu: "canvas" | "shape" | null;
700
692
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
701
693
  openSidebar: {
702
694
  name: string;
@@ -778,9 +770,8 @@ export declare const actionCut: {
778
770
  shown: true;
779
771
  data: import("../charts").Spreadsheet;
780
772
  };
781
- pendingImageElementId: string | null;
782
- showHyperlinkPopup: false | "editor" | "info";
783
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
773
+ showHyperlinkPopup: false | "info" | "editor";
774
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
784
775
  snapLines: readonly import("../snapping").SnapLine[];
785
776
  originSnapOffset: {
786
777
  x: number;
@@ -791,16 +782,14 @@ export declare const actionCut: {
791
782
  followedBy: Set<import("../types").SocketId>;
792
783
  isCropping: boolean;
793
784
  croppingElementId: string | null;
794
- searchMatches: readonly {
795
- id: string;
796
- focus: boolean;
797
- matchedLines: {
798
- offsetX: number;
799
- offsetY: number;
800
- width: number;
801
- height: number;
802
- }[];
803
- }[];
785
+ searchMatches: Readonly<{
786
+ focusedId: string | null;
787
+ matches: readonly import("../types").SearchMatch[];
788
+ }> | null;
789
+ activeLockedId: string | null;
790
+ lockedMultiSelections: {
791
+ [groupId: string]: true;
792
+ };
804
793
  };
805
794
  captureUpdate: "IMMEDIATELY";
806
795
  } | {
@@ -814,13 +803,13 @@ export declare const actionCut: {
814
803
  multiElement: null;
815
804
  activeEmbeddable: null;
816
805
  selectedLinearElement: null;
817
- editingGroupId: string | null;
818
806
  selectedElementIds: Readonly<{
819
807
  [id: string]: true;
820
808
  }>;
821
809
  selectedGroupIds: {
822
810
  [groupId: string]: boolean;
823
811
  };
812
+ editingGroupId: string | null;
824
813
  contextMenu: {
825
814
  items: import("../components/ContextMenu").ContextMenuItems;
826
815
  top: number;
@@ -842,7 +831,7 @@ export declare const actionCut: {
842
831
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
843
832
  isBindingEnabled: boolean;
844
833
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
845
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
834
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
846
835
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
847
836
  frameRendering: {
848
837
  enabled: boolean;
@@ -853,7 +842,7 @@ export declare const actionCut: {
853
842
  editingFrame: string | null;
854
843
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
855
844
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
856
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
845
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
857
846
  penMode: boolean;
858
847
  penDetected: boolean;
859
848
  exportBackground: boolean;
@@ -874,7 +863,7 @@ export declare const actionCut: {
874
863
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
875
864
  currentHoveredFontFamily: number | null;
876
865
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
877
- currentItemArrowType: "round" | "sharp" | "elbow";
866
+ currentItemArrowType: "sharp" | "round" | "elbow";
878
867
  viewBackgroundColor: string;
879
868
  scrollX: number;
880
869
  scrollY: number;
@@ -886,7 +875,7 @@ export declare const actionCut: {
886
875
  zoom: Readonly<{
887
876
  value: import("../types").NormalizedZoomValue;
888
877
  }>;
889
- openMenu: "shape" | "canvas" | null;
878
+ openMenu: "canvas" | "shape" | null;
890
879
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
891
880
  openSidebar: {
892
881
  name: string;
@@ -961,8 +950,7 @@ export declare const actionCut: {
961
950
  shown: true;
962
951
  data: import("../charts").Spreadsheet;
963
952
  };
964
- pendingImageElementId: string | null;
965
- showHyperlinkPopup: false | "editor" | "info";
953
+ showHyperlinkPopup: false | "info" | "editor";
966
954
  snapLines: readonly import("../snapping").SnapLine[];
967
955
  originSnapOffset: {
968
956
  x: number;
@@ -973,22 +961,20 @@ export declare const actionCut: {
973
961
  followedBy: Set<import("../types").SocketId>;
974
962
  isCropping: boolean;
975
963
  croppingElementId: string | null;
976
- searchMatches: readonly {
977
- id: string;
978
- focus: boolean;
979
- matchedLines: {
980
- offsetX: number;
981
- offsetY: number;
982
- width: number;
983
- height: number;
984
- }[];
985
- }[];
964
+ searchMatches: Readonly<{
965
+ focusedId: string | null;
966
+ matches: readonly import("../types").SearchMatch[];
967
+ }> | null;
968
+ activeLockedId: string | null;
969
+ lockedMultiSelections: {
970
+ [groupId: string]: true;
971
+ };
986
972
  };
987
973
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
988
974
  };
989
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
975
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
990
976
  } & {
991
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
977
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
992
978
  };
993
979
  export declare const actionCopyAsSvg: {
994
980
  name: "copyAsSvg";
@@ -1058,7 +1044,7 @@ export declare const actionCopyAsPng: {
1058
1044
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1059
1045
  isBindingEnabled: boolean;
1060
1046
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1061
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1047
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1062
1048
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1063
1049
  frameRendering: {
1064
1050
  enabled: boolean;
@@ -1069,7 +1055,7 @@ export declare const actionCopyAsPng: {
1069
1055
  editingFrame: string | null;
1070
1056
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1071
1057
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1072
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1058
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1073
1059
  activeTool: {
1074
1060
  lastActiveTool: import("../types").ActiveTool | null;
1075
1061
  locked: boolean;
@@ -1095,7 +1081,7 @@ export declare const actionCopyAsPng: {
1095
1081
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1096
1082
  currentHoveredFontFamily: number | null;
1097
1083
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1098
- currentItemArrowType: "round" | "sharp" | "elbow";
1084
+ currentItemArrowType: "sharp" | "round" | "elbow";
1099
1085
  viewBackgroundColor: string;
1100
1086
  scrollX: number;
1101
1087
  scrollY: number;
@@ -1107,7 +1093,7 @@ export declare const actionCopyAsPng: {
1107
1093
  zoom: Readonly<{
1108
1094
  value: import("../types").NormalizedZoomValue;
1109
1095
  }>;
1110
- openMenu: "shape" | "canvas" | null;
1096
+ openMenu: "canvas" | "shape" | null;
1111
1097
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1112
1098
  openSidebar: {
1113
1099
  name: string;
@@ -1189,9 +1175,8 @@ export declare const actionCopyAsPng: {
1189
1175
  shown: true;
1190
1176
  data: import("../charts").Spreadsheet;
1191
1177
  };
1192
- pendingImageElementId: string | null;
1193
- showHyperlinkPopup: false | "editor" | "info";
1194
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1178
+ showHyperlinkPopup: false | "info" | "editor";
1179
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1195
1180
  snapLines: readonly import("../snapping").SnapLine[];
1196
1181
  originSnapOffset: {
1197
1182
  x: number;
@@ -1202,24 +1187,22 @@ export declare const actionCopyAsPng: {
1202
1187
  followedBy: Set<import("../types").SocketId>;
1203
1188
  isCropping: boolean;
1204
1189
  croppingElementId: string | null;
1205
- searchMatches: readonly {
1206
- id: string;
1207
- focus: boolean;
1208
- matchedLines: {
1209
- offsetX: number;
1210
- offsetY: number;
1211
- width: number;
1212
- height: number;
1213
- }[];
1214
- }[];
1190
+ searchMatches: Readonly<{
1191
+ focusedId: string | null;
1192
+ matches: readonly import("../types").SearchMatch[];
1193
+ }> | null;
1194
+ activeLockedId: string | null;
1195
+ lockedMultiSelections: {
1196
+ [groupId: string]: true;
1197
+ };
1215
1198
  };
1216
1199
  captureUpdate: "EVENTUALLY";
1217
1200
  }>;
1218
1201
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1219
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1202
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1220
1203
  keywords: string[];
1221
1204
  } & {
1222
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1205
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1223
1206
  };
1224
1207
  export declare const copyText: {
1225
1208
  name: "copyText";
@@ -38,7 +38,7 @@ export declare const actionToggleCropEditor: {
38
38
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
39
  isBindingEnabled: boolean;
40
40
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
41
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
41
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
42
42
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
43
43
  frameRendering: {
44
44
  enabled: boolean;
@@ -49,7 +49,7 @@ export declare const actionToggleCropEditor: {
49
49
  editingFrame: string | null;
50
50
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
51
51
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
52
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
52
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
53
53
  activeTool: {
54
54
  lastActiveTool: import("../types").ActiveTool | null;
55
55
  locked: boolean;
@@ -75,7 +75,7 @@ export declare const actionToggleCropEditor: {
75
75
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
76
76
  currentHoveredFontFamily: number | null;
77
77
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
78
- currentItemArrowType: "round" | "sharp" | "elbow";
78
+ currentItemArrowType: "sharp" | "round" | "elbow";
79
79
  viewBackgroundColor: string;
80
80
  scrollX: number;
81
81
  scrollY: number;
@@ -87,7 +87,7 @@ export declare const actionToggleCropEditor: {
87
87
  zoom: Readonly<{
88
88
  value: import("../types").NormalizedZoomValue;
89
89
  }>;
90
- openMenu: "shape" | "canvas" | null;
90
+ openMenu: "canvas" | "shape" | null;
91
91
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
92
92
  openSidebar: {
93
93
  name: string;
@@ -169,9 +169,8 @@ export declare const actionToggleCropEditor: {
169
169
  shown: true;
170
170
  data: import("../charts").Spreadsheet;
171
171
  };
172
- pendingImageElementId: string | null;
173
- showHyperlinkPopup: false | "editor" | "info";
174
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
172
+ showHyperlinkPopup: false | "info" | "editor";
173
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
175
174
  snapLines: readonly import("../snapping").SnapLine[];
176
175
  originSnapOffset: {
177
176
  x: number;
@@ -180,16 +179,14 @@ export declare const actionToggleCropEditor: {
180
179
  objectsSnapModeEnabled: boolean;
181
180
  userToFollow: import("../types").UserToFollow | null;
182
181
  followedBy: Set<import("../types").SocketId>;
183
- searchMatches: readonly {
184
- id: string;
185
- focus: boolean;
186
- matchedLines: {
187
- offsetX: number;
188
- offsetY: number;
189
- width: number;
190
- height: number;
191
- }[];
192
- }[];
182
+ searchMatches: Readonly<{
183
+ focusedId: string | null;
184
+ matches: readonly import("../types").SearchMatch[];
185
+ }> | null;
186
+ activeLockedId: string | null;
187
+ lockedMultiSelections: {
188
+ [groupId: string]: true;
189
+ };
193
190
  };
194
191
  captureUpdate: "IMMEDIATELY";
195
192
  };