@dwelle/excalidraw 0.5.0-ff7b5f2db → 0.5.0-ffade30

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 (171) hide show
  1. package/CHANGELOG.md +2385 -0
  2. package/dist/dev/{chunk-56C7N44U.js → chunk-CB6O5JO7.js} +16177 -10984
  3. package/dist/dev/chunk-CB6O5JO7.js.map +7 -0
  4. package/dist/dev/{chunk-DGCWVQGA.js → chunk-JB4JDZ66.js} +15 -4
  5. package/dist/dev/chunk-JB4JDZ66.js.map +7 -0
  6. package/dist/dev/chunk-QXVP5PAI.js +7 -0
  7. package/dist/dev/chunk-QXVP5PAI.js.map +7 -0
  8. package/dist/dev/data/{image-BLSI3C2P.js → image-JTJWA4BG.js} +3 -3
  9. package/dist/dev/index.css +143 -68
  10. package/dist/dev/index.css.map +3 -3
  11. package/dist/dev/index.js +3978 -6519
  12. package/dist/dev/index.js.map +4 -4
  13. package/dist/dev/locales/{en-AAITTNRF.js → en-PIB5PD3P.js} +2 -2
  14. package/dist/dev/subset-shared.chunk.js +1 -1
  15. package/dist/dev/subset-worker.chunk.js +1 -1
  16. package/dist/prod/chunk-JEM5OQGK.js +33 -0
  17. package/dist/prod/chunk-JH36RZFS.js +7 -0
  18. package/dist/prod/{chunk-OV23WS6X.js → chunk-KC3NX2DX.js} +4 -4
  19. package/dist/prod/data/image-UJJWHTZ6.js +1 -0
  20. package/dist/prod/index.css +1 -1
  21. package/dist/prod/index.js +22 -21
  22. package/dist/prod/locales/{en-YOZMX4VX.js → en-RKTHI3YA.js} +1 -1
  23. package/dist/prod/subset-shared.chunk.js +1 -1
  24. package/dist/prod/subset-worker.chunk.js +1 -1
  25. package/dist/types/common/src/colors.d.ts +1 -0
  26. package/dist/types/common/src/constants.d.ts +11 -1
  27. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  28. package/dist/types/common/src/font-metadata.d.ts +4 -2
  29. package/dist/types/common/src/index.d.ts +1 -0
  30. package/dist/types/common/src/utility-types.d.ts +5 -0
  31. package/dist/types/common/src/utils.d.ts +22 -5
  32. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +11 -14
  33. package/dist/types/element/src/ShapeCache.d.ts +1 -1
  34. package/dist/types/element/src/align.d.ts +3 -3
  35. package/dist/types/element/src/binding.d.ts +19 -11
  36. package/dist/types/element/src/bounds.d.ts +7 -2
  37. package/dist/types/element/src/collision.d.ts +1 -1
  38. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
  39. package/dist/types/element/src/dragElements.d.ts +3 -2
  40. package/dist/types/element/src/duplicate.d.ts +10 -13
  41. package/dist/types/element/src/elbowArrow.d.ts +1 -1
  42. package/dist/types/element/src/flowchart.d.ts +3 -2
  43. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  44. package/dist/types/element/src/frame.d.ts +5 -4
  45. package/dist/types/element/src/heading.d.ts +0 -1
  46. package/dist/types/element/src/index.d.ts +45 -2
  47. package/dist/types/element/src/linearElementEditor.d.ts +19 -31
  48. package/dist/types/element/src/mutateElement.d.ts +10 -2
  49. package/dist/types/element/src/newElement.d.ts +4 -3
  50. package/dist/types/element/src/resizeElements.d.ts +4 -4
  51. package/dist/types/element/src/selection.d.ts +11 -5
  52. package/dist/types/element/src/shapes.d.ts +5 -1
  53. package/dist/types/element/src/sizeHelpers.d.ts +1 -1
  54. package/dist/types/element/src/store.d.ts +227 -0
  55. package/dist/types/element/src/textElement.d.ts +5 -3
  56. package/dist/types/element/src/transformHandles.d.ts +4 -4
  57. package/dist/types/element/src/typeChecks.d.ts +15 -1
  58. package/dist/types/element/src/types.d.ts +14 -1
  59. package/dist/types/element/src/zindex.d.ts +1 -1
  60. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +42 -45
  61. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  62. package/dist/types/excalidraw/actions/actionBoundText.d.ts +28 -30
  63. package/dist/types/excalidraw/actions/actionCanvas.d.ts +438 -275
  64. package/dist/types/excalidraw/actions/actionClipboard.d.ts +86 -92
  65. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +14 -15
  66. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +40 -43
  67. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  68. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  69. package/dist/types/excalidraw/actions/actionElementLink.d.ts +14 -15
  70. package/dist/types/excalidraw/actions/actionElementLock.d.ts +43 -47
  71. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +14 -15
  72. package/dist/types/excalidraw/actions/actionExport.d.ts +219 -228
  73. package/dist/types/excalidraw/actions/actionFinalize.d.ts +73 -36
  74. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  75. package/dist/types/excalidraw/actions/actionFrame.d.ts +100 -104
  76. package/dist/types/excalidraw/actions/actionGroup.d.ts +34 -36
  77. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  78. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +506 -14
  79. package/dist/types/excalidraw/actions/actionLink.d.ts +14 -15
  80. package/dist/types/excalidraw/actions/actionMenu.d.ts +42 -45
  81. package/dist/types/excalidraw/actions/actionNavigate.d.ts +27 -29
  82. package/dist/types/excalidraw/actions/actionProperties.d.ts +207 -214
  83. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +16 -17
  84. package/dist/types/excalidraw/actions/actionStyles.d.ts +18 -19
  85. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -17
  86. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -17
  87. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -189
  88. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  89. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -18
  90. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +16 -18
  91. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -18
  92. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  93. package/dist/types/excalidraw/actions/types.d.ts +4 -3
  94. package/dist/types/excalidraw/animated-trail.d.ts +7 -1
  95. package/dist/types/excalidraw/appState.d.ts +40 -30
  96. package/dist/types/excalidraw/components/App.d.ts +30 -12
  97. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  98. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  99. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  100. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  101. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  102. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  103. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  104. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  105. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  106. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +2 -2
  107. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  108. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  109. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  110. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  111. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  112. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  115. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  116. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  117. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  118. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  119. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  120. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  121. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  122. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  123. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  124. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  125. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
  126. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  127. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  128. package/dist/types/excalidraw/components/icons.d.ts +4 -0
  129. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  130. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  131. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  132. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  133. package/dist/types/excalidraw/eraser/index.d.ts +14 -0
  134. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  135. package/dist/types/excalidraw/history.d.ts +14 -22
  136. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  137. package/dist/types/excalidraw/index.d.ts +9 -9
  138. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  139. package/dist/types/excalidraw/lasso/utils.d.ts +12 -0
  140. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -1
  141. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
  142. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  143. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  144. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  145. package/dist/types/excalidraw/scene/types.d.ts +2 -0
  146. package/dist/types/excalidraw/snapping.d.ts +2 -2
  147. package/dist/types/excalidraw/types.d.ts +30 -7
  148. package/dist/types/excalidraw/visualdebug.d.ts +1 -1
  149. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  150. package/dist/types/math/src/curve.d.ts +2 -0
  151. package/dist/types/math/src/point.d.ts +1 -1
  152. package/dist/types/math/src/polygon.d.ts +1 -0
  153. package/dist/types/math/src/segment.d.ts +1 -1
  154. package/dist/types/math/src/types.d.ts +1 -0
  155. package/dist/types/math/src/vector.d.ts +4 -0
  156. package/dist/types/utils/src/bbox.d.ts +1 -1
  157. package/dist/types/utils/src/index.d.ts +1 -1
  158. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  159. package/history.ts +186 -0
  160. package/package.json +9 -4
  161. package/dist/dev/chunk-56C7N44U.js.map +0 -7
  162. package/dist/dev/chunk-DGCWVQGA.js.map +0 -7
  163. package/dist/dev/chunk-HQHB2BE4.js +0 -7
  164. package/dist/dev/chunk-HQHB2BE4.js.map +0 -7
  165. package/dist/prod/chunk-BUJ2ENHZ.js +0 -31
  166. package/dist/prod/chunk-C3FOHAIA.js +0 -7
  167. package/dist/prod/data/image-MI7OQWUS.js +0 -1
  168. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  169. package/dist/types/excalidraw/store.d.ts +0 -129
  170. /package/dist/dev/data/{image-BLSI3C2P.js.map → image-JTJWA4BG.js.map} +0 -0
  171. /package/dist/dev/locales/{en-AAITTNRF.js.map → en-PIB5PD3P.js.map} +0 -0
@@ -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,10 +38,11 @@ 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;
45
+ fromSelection: boolean;
45
46
  } & import("../types").ActiveTool;
46
47
  penMode: boolean;
47
48
  penDetected: boolean;
@@ -75,7 +76,7 @@ export declare const actionCopy: {
75
76
  zoom: Readonly<{
76
77
  value: import("../types").NormalizedZoomValue;
77
78
  }>;
78
- openMenu: "shape" | "canvas" | null;
79
+ openMenu: "canvas" | "shape" | null;
79
80
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
80
81
  openSidebar: {
81
82
  name: string;
@@ -158,8 +159,8 @@ export declare const actionCopy: {
158
159
  data: import("../charts").Spreadsheet;
159
160
  };
160
161
  pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "editor" | "info";
162
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
162
+ showHyperlinkPopup: false | "info" | "editor";
163
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
164
  snapLines: readonly import("../snapping").SnapLine[];
164
165
  originSnapOffset: {
165
166
  x: number;
@@ -170,16 +171,14 @@ export declare const actionCopy: {
170
171
  followedBy: Set<import("../types").SocketId>;
171
172
  isCropping: boolean;
172
173
  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
- }[];
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
+ };
183
182
  };
184
183
  } | {
185
184
  captureUpdate: "EVENTUALLY";
@@ -216,7 +215,7 @@ export declare const actionPaste: {
216
215
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
217
216
  isBindingEnabled: boolean;
218
217
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
219
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
218
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
220
219
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
221
220
  frameRendering: {
222
221
  enabled: boolean;
@@ -227,10 +226,11 @@ export declare const actionPaste: {
227
226
  editingFrame: string | null;
228
227
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
229
228
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
230
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
229
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
231
230
  activeTool: {
232
231
  lastActiveTool: import("../types").ActiveTool | null;
233
232
  locked: boolean;
233
+ fromSelection: boolean;
234
234
  } & import("../types").ActiveTool;
235
235
  penMode: boolean;
236
236
  penDetected: boolean;
@@ -264,7 +264,7 @@ export declare const actionPaste: {
264
264
  zoom: Readonly<{
265
265
  value: import("../types").NormalizedZoomValue;
266
266
  }>;
267
- openMenu: "shape" | "canvas" | null;
267
+ openMenu: "canvas" | "shape" | null;
268
268
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
269
269
  openSidebar: {
270
270
  name: string;
@@ -347,8 +347,8 @@ export declare const actionPaste: {
347
347
  data: import("../charts").Spreadsheet;
348
348
  };
349
349
  pendingImageElementId: string | null;
350
- showHyperlinkPopup: false | "editor" | "info";
351
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
350
+ showHyperlinkPopup: false | "info" | "editor";
351
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
352
352
  snapLines: readonly import("../snapping").SnapLine[];
353
353
  originSnapOffset: {
354
354
  x: number;
@@ -359,16 +359,14 @@ export declare const actionPaste: {
359
359
  followedBy: Set<import("../types").SocketId>;
360
360
  isCropping: boolean;
361
361
  croppingElementId: string | null;
362
- searchMatches: readonly {
363
- id: string;
364
- focus: boolean;
365
- matchedLines: {
366
- offsetX: number;
367
- offsetY: number;
368
- width: number;
369
- height: number;
370
- }[];
371
- }[];
362
+ searchMatches: Readonly<{
363
+ focusedId: string | null;
364
+ matches: readonly import("../types").SearchMatch[];
365
+ }> | null;
366
+ activeLockedId: string | null;
367
+ lockedMultiSelections: {
368
+ [groupId: string]: true;
369
+ };
372
370
  };
373
371
  } | {
374
372
  captureUpdate: "EVENTUALLY";
@@ -407,7 +405,7 @@ export declare const actionCut: {
407
405
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
408
406
  isBindingEnabled: boolean;
409
407
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
410
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
408
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
411
409
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
412
410
  frameRendering: {
413
411
  enabled: boolean;
@@ -421,6 +419,7 @@ export declare const actionCut: {
421
419
  activeTool: {
422
420
  lastActiveTool: import("../types").ActiveTool | null;
423
421
  locked: boolean;
422
+ fromSelection: boolean;
424
423
  } & import("../types").ActiveTool;
425
424
  penMode: boolean;
426
425
  penDetected: boolean;
@@ -454,7 +453,7 @@ export declare const actionCut: {
454
453
  zoom: Readonly<{
455
454
  value: import("../types").NormalizedZoomValue;
456
455
  }>;
457
- openMenu: "shape" | "canvas" | null;
456
+ openMenu: "canvas" | "shape" | null;
458
457
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
459
458
  openSidebar: {
460
459
  name: string;
@@ -537,8 +536,8 @@ export declare const actionCut: {
537
536
  data: import("../charts").Spreadsheet;
538
537
  };
539
538
  pendingImageElementId: string | null;
540
- showHyperlinkPopup: false | "editor" | "info";
541
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
539
+ showHyperlinkPopup: false | "info" | "editor";
540
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
542
541
  snapLines: readonly import("../snapping").SnapLine[];
543
542
  originSnapOffset: {
544
543
  x: number;
@@ -549,16 +548,14 @@ export declare const actionCut: {
549
548
  followedBy: Set<import("../types").SocketId>;
550
549
  isCropping: boolean;
551
550
  croppingElementId: string | null;
552
- searchMatches: readonly {
553
- id: string;
554
- focus: boolean;
555
- matchedLines: {
556
- offsetX: number;
557
- offsetY: number;
558
- width: number;
559
- height: number;
560
- }[];
561
- }[];
551
+ searchMatches: Readonly<{
552
+ focusedId: string | null;
553
+ matches: readonly import("../types").SearchMatch[];
554
+ }> | null;
555
+ activeLockedId: string | null;
556
+ lockedMultiSelections: {
557
+ [groupId: string]: true;
558
+ };
562
559
  };
563
560
  captureUpdate: "IMMEDIATELY";
564
561
  } | {
@@ -613,7 +610,7 @@ export declare const actionCut: {
613
610
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
614
611
  isBindingEnabled: boolean;
615
612
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
616
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
613
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
617
614
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
618
615
  frameRendering: {
619
616
  enabled: boolean;
@@ -627,6 +624,7 @@ export declare const actionCut: {
627
624
  activeTool: {
628
625
  lastActiveTool: import("../types").ActiveTool | null;
629
626
  locked: boolean;
627
+ fromSelection: boolean;
630
628
  } & import("../types").ActiveTool;
631
629
  penMode: boolean;
632
630
  penDetected: boolean;
@@ -660,7 +658,7 @@ export declare const actionCut: {
660
658
  zoom: Readonly<{
661
659
  value: import("../types").NormalizedZoomValue;
662
660
  }>;
663
- openMenu: "shape" | "canvas" | null;
661
+ openMenu: "canvas" | "shape" | null;
664
662
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
665
663
  openSidebar: {
666
664
  name: string;
@@ -743,8 +741,8 @@ export declare const actionCut: {
743
741
  data: import("../charts").Spreadsheet;
744
742
  };
745
743
  pendingImageElementId: string | null;
746
- showHyperlinkPopup: false | "editor" | "info";
747
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
744
+ showHyperlinkPopup: false | "info" | "editor";
745
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
748
746
  snapLines: readonly import("../snapping").SnapLine[];
749
747
  originSnapOffset: {
750
748
  x: number;
@@ -755,16 +753,14 @@ export declare const actionCut: {
755
753
  followedBy: Set<import("../types").SocketId>;
756
754
  isCropping: boolean;
757
755
  croppingElementId: string | null;
758
- searchMatches: readonly {
759
- id: string;
760
- focus: boolean;
761
- matchedLines: {
762
- offsetX: number;
763
- offsetY: number;
764
- width: number;
765
- height: number;
766
- }[];
767
- }[];
756
+ searchMatches: Readonly<{
757
+ focusedId: string | null;
758
+ matches: readonly import("../types").SearchMatch[];
759
+ }> | null;
760
+ activeLockedId: string | null;
761
+ lockedMultiSelections: {
762
+ [groupId: string]: true;
763
+ };
768
764
  };
769
765
  captureUpdate: "IMMEDIATELY";
770
766
  } | {
@@ -773,17 +769,18 @@ export declare const actionCut: {
773
769
  activeTool: {
774
770
  lastActiveTool: import("../types").ActiveTool | null;
775
771
  locked: boolean;
772
+ fromSelection: boolean;
776
773
  } & import("../types").ActiveTool;
777
774
  multiElement: null;
778
775
  activeEmbeddable: null;
779
776
  selectedLinearElement: null;
780
- editingGroupId: string | null;
781
777
  selectedElementIds: Readonly<{
782
778
  [id: string]: true;
783
779
  }>;
784
780
  selectedGroupIds: {
785
781
  [groupId: string]: boolean;
786
782
  };
783
+ editingGroupId: string | null;
787
784
  contextMenu: {
788
785
  items: import("../components/ContextMenu").ContextMenuItems;
789
786
  top: number;
@@ -797,7 +794,7 @@ export declare const actionCut: {
797
794
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
798
795
  isBindingEnabled: boolean;
799
796
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
800
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
797
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
801
798
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
802
799
  frameRendering: {
803
800
  enabled: boolean;
@@ -808,7 +805,7 @@ export declare const actionCut: {
808
805
  editingFrame: string | null;
809
806
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
810
807
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
811
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
808
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
812
809
  penMode: boolean;
813
810
  penDetected: boolean;
814
811
  exportBackground: boolean;
@@ -841,7 +838,7 @@ export declare const actionCut: {
841
838
  zoom: Readonly<{
842
839
  value: import("../types").NormalizedZoomValue;
843
840
  }>;
844
- openMenu: "shape" | "canvas" | null;
841
+ openMenu: "canvas" | "shape" | null;
845
842
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
846
843
  openSidebar: {
847
844
  name: string;
@@ -917,7 +914,7 @@ export declare const actionCut: {
917
914
  data: import("../charts").Spreadsheet;
918
915
  };
919
916
  pendingImageElementId: string | null;
920
- showHyperlinkPopup: false | "editor" | "info";
917
+ showHyperlinkPopup: false | "info" | "editor";
921
918
  snapLines: readonly import("../snapping").SnapLine[];
922
919
  originSnapOffset: {
923
920
  x: number;
@@ -928,22 +925,20 @@ export declare const actionCut: {
928
925
  followedBy: Set<import("../types").SocketId>;
929
926
  isCropping: boolean;
930
927
  croppingElementId: string | null;
931
- searchMatches: readonly {
932
- id: string;
933
- focus: boolean;
934
- matchedLines: {
935
- offsetX: number;
936
- offsetY: number;
937
- width: number;
938
- height: number;
939
- }[];
940
- }[];
928
+ searchMatches: Readonly<{
929
+ focusedId: string | null;
930
+ matches: readonly import("../types").SearchMatch[];
931
+ }> | null;
932
+ activeLockedId: string | null;
933
+ lockedMultiSelections: {
934
+ [groupId: string]: true;
935
+ };
941
936
  };
942
937
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
943
938
  };
944
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
939
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
945
940
  } & {
946
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
941
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
947
942
  };
948
943
  export declare const actionCopyAsSvg: {
949
944
  name: "copyAsSvg";
@@ -1005,7 +1000,7 @@ export declare const actionCopyAsPng: {
1005
1000
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1006
1001
  isBindingEnabled: boolean;
1007
1002
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1008
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1003
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1009
1004
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1010
1005
  frameRendering: {
1011
1006
  enabled: boolean;
@@ -1016,10 +1011,11 @@ export declare const actionCopyAsPng: {
1016
1011
  editingFrame: string | null;
1017
1012
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1018
1013
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1019
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1014
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1020
1015
  activeTool: {
1021
1016
  lastActiveTool: import("../types").ActiveTool | null;
1022
1017
  locked: boolean;
1018
+ fromSelection: boolean;
1023
1019
  } & import("../types").ActiveTool;
1024
1020
  penMode: boolean;
1025
1021
  penDetected: boolean;
@@ -1053,7 +1049,7 @@ export declare const actionCopyAsPng: {
1053
1049
  zoom: Readonly<{
1054
1050
  value: import("../types").NormalizedZoomValue;
1055
1051
  }>;
1056
- openMenu: "shape" | "canvas" | null;
1052
+ openMenu: "canvas" | "shape" | null;
1057
1053
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1058
1054
  openSidebar: {
1059
1055
  name: string;
@@ -1136,8 +1132,8 @@ export declare const actionCopyAsPng: {
1136
1132
  data: import("../charts").Spreadsheet;
1137
1133
  };
1138
1134
  pendingImageElementId: string | null;
1139
- showHyperlinkPopup: false | "editor" | "info";
1140
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1135
+ showHyperlinkPopup: false | "info" | "editor";
1136
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1141
1137
  snapLines: readonly import("../snapping").SnapLine[];
1142
1138
  originSnapOffset: {
1143
1139
  x: number;
@@ -1148,24 +1144,22 @@ export declare const actionCopyAsPng: {
1148
1144
  followedBy: Set<import("../types").SocketId>;
1149
1145
  isCropping: boolean;
1150
1146
  croppingElementId: string | null;
1151
- searchMatches: readonly {
1152
- id: string;
1153
- focus: boolean;
1154
- matchedLines: {
1155
- offsetX: number;
1156
- offsetY: number;
1157
- width: number;
1158
- height: number;
1159
- }[];
1160
- }[];
1147
+ searchMatches: Readonly<{
1148
+ focusedId: string | null;
1149
+ matches: readonly import("../types").SearchMatch[];
1150
+ }> | null;
1151
+ activeLockedId: string | null;
1152
+ lockedMultiSelections: {
1153
+ [groupId: string]: true;
1154
+ };
1161
1155
  };
1162
1156
  captureUpdate: "EVENTUALLY";
1163
1157
  }>;
1164
1158
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1165
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1159
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1166
1160
  keywords: string[];
1167
1161
  } & {
1168
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1162
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1169
1163
  };
1170
1164
  export declare const copyText: {
1171
1165
  name: "copyText";
@@ -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,10 +41,11 @@ 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;
48
+ fromSelection: boolean;
48
49
  } & import("../types").ActiveTool;
49
50
  penMode: boolean;
50
51
  penDetected: boolean;
@@ -78,7 +79,7 @@ export declare const actionToggleCropEditor: {
78
79
  zoom: Readonly<{
79
80
  value: import("../types").NormalizedZoomValue;
80
81
  }>;
81
- openMenu: "shape" | "canvas" | null;
82
+ openMenu: "canvas" | "shape" | null;
82
83
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
83
84
  openSidebar: {
84
85
  name: string;
@@ -161,8 +162,8 @@ export declare const actionToggleCropEditor: {
161
162
  data: import("../charts").Spreadsheet;
162
163
  };
163
164
  pendingImageElementId: string | null;
164
- showHyperlinkPopup: false | "editor" | "info";
165
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
165
+ showHyperlinkPopup: false | "info" | "editor";
166
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
166
167
  snapLines: readonly import("../snapping").SnapLine[];
167
168
  originSnapOffset: {
168
169
  x: number;
@@ -171,16 +172,14 @@ export declare const actionToggleCropEditor: {
171
172
  objectsSnapModeEnabled: boolean;
172
173
  userToFollow: import("../types").UserToFollow | null;
173
174
  followedBy: Set<import("../types").SocketId>;
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
- }[];
175
+ searchMatches: Readonly<{
176
+ focusedId: string | null;
177
+ matches: readonly import("../types").SearchMatch[];
178
+ }> | null;
179
+ activeLockedId: string | null;
180
+ lockedMultiSelections: {
181
+ [groupId: string]: true;
182
+ };
184
183
  };
185
184
  captureUpdate: "IMMEDIATELY";
186
185
  };