@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
@@ -26,7 +26,7 @@ export declare const actionToggleCanvasMenu: {
26
26
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
27
  isBindingEnabled: boolean;
28
28
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
29
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
30
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
31
  frameRendering: {
32
32
  enabled: boolean;
@@ -37,10 +37,11 @@ export declare const actionToggleCanvasMenu: {
37
37
  editingFrame: string | null;
38
38
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
39
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
40
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
41
41
  activeTool: {
42
42
  lastActiveTool: import("../types").ActiveTool | null;
43
43
  locked: boolean;
44
+ fromSelection: boolean;
44
45
  } & import("../types").ActiveTool;
45
46
  penMode: boolean;
46
47
  penDetected: boolean;
@@ -156,8 +157,8 @@ export declare const actionToggleCanvasMenu: {
156
157
  data: import("../charts").Spreadsheet;
157
158
  };
158
159
  pendingImageElementId: string | null;
159
- showHyperlinkPopup: false | "editor" | "info";
160
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
160
+ showHyperlinkPopup: false | "info" | "editor";
161
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
161
162
  snapLines: readonly import("../snapping").SnapLine[];
162
163
  originSnapOffset: {
163
164
  x: number;
@@ -168,16 +169,14 @@ export declare const actionToggleCanvasMenu: {
168
169
  followedBy: Set<import("../types").SocketId>;
169
170
  isCropping: boolean;
170
171
  croppingElementId: string | null;
171
- searchMatches: readonly {
172
- id: string;
173
- focus: boolean;
174
- matchedLines: {
175
- offsetX: number;
176
- offsetY: number;
177
- width: number;
178
- height: number;
179
- }[];
180
- }[];
172
+ searchMatches: Readonly<{
173
+ focusedId: string | null;
174
+ matches: readonly import("../types").SearchMatch[];
175
+ }> | null;
176
+ activeLockedId: string | null;
177
+ lockedMultiSelections: {
178
+ [groupId: string]: true;
179
+ };
181
180
  };
182
181
  captureUpdate: "EVENTUALLY";
183
182
  };
@@ -212,7 +211,7 @@ export declare const actionToggleEditMenu: {
212
211
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
213
212
  isBindingEnabled: boolean;
214
213
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
215
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
214
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
216
215
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
217
216
  frameRendering: {
218
217
  enabled: boolean;
@@ -223,10 +222,11 @@ export declare const actionToggleEditMenu: {
223
222
  editingFrame: string | null;
224
223
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
225
224
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
226
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
225
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
227
226
  activeTool: {
228
227
  lastActiveTool: import("../types").ActiveTool | null;
229
228
  locked: boolean;
229
+ fromSelection: boolean;
230
230
  } & import("../types").ActiveTool;
231
231
  penMode: boolean;
232
232
  penDetected: boolean;
@@ -342,8 +342,8 @@ export declare const actionToggleEditMenu: {
342
342
  data: import("../charts").Spreadsheet;
343
343
  };
344
344
  pendingImageElementId: string | null;
345
- showHyperlinkPopup: false | "editor" | "info";
346
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
345
+ showHyperlinkPopup: false | "info" | "editor";
346
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
347
347
  snapLines: readonly import("../snapping").SnapLine[];
348
348
  originSnapOffset: {
349
349
  x: number;
@@ -354,16 +354,14 @@ export declare const actionToggleEditMenu: {
354
354
  followedBy: Set<import("../types").SocketId>;
355
355
  isCropping: boolean;
356
356
  croppingElementId: string | null;
357
- searchMatches: readonly {
358
- id: string;
359
- focus: boolean;
360
- matchedLines: {
361
- offsetX: number;
362
- offsetY: number;
363
- width: number;
364
- height: number;
365
- }[];
366
- }[];
357
+ searchMatches: Readonly<{
358
+ focusedId: string | null;
359
+ matches: readonly import("../types").SearchMatch[];
360
+ }> | null;
361
+ activeLockedId: string | null;
362
+ lockedMultiSelections: {
363
+ [groupId: string]: true;
364
+ };
367
365
  };
368
366
  captureUpdate: "EVENTUALLY";
369
367
  };
@@ -403,7 +401,7 @@ export declare const actionShortcuts: {
403
401
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
404
402
  isBindingEnabled: boolean;
405
403
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
406
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
404
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
407
405
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
408
406
  frameRendering: {
409
407
  enabled: boolean;
@@ -414,10 +412,11 @@ export declare const actionShortcuts: {
414
412
  editingFrame: string | null;
415
413
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
416
414
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
417
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
415
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
418
416
  activeTool: {
419
417
  lastActiveTool: import("../types").ActiveTool | null;
420
418
  locked: boolean;
419
+ fromSelection: boolean;
421
420
  } & import("../types").ActiveTool;
422
421
  penMode: boolean;
423
422
  penDetected: boolean;
@@ -451,7 +450,7 @@ export declare const actionShortcuts: {
451
450
  zoom: Readonly<{
452
451
  value: import("../types").NormalizedZoomValue;
453
452
  }>;
454
- openMenu: "shape" | "canvas" | null;
453
+ openMenu: "canvas" | "shape" | null;
455
454
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
456
455
  openSidebar: {
457
456
  name: string;
@@ -523,8 +522,8 @@ export declare const actionShortcuts: {
523
522
  data: import("../charts").Spreadsheet;
524
523
  };
525
524
  pendingImageElementId: string | null;
526
- showHyperlinkPopup: false | "editor" | "info";
527
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
525
+ showHyperlinkPopup: false | "info" | "editor";
526
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
528
527
  snapLines: readonly import("../snapping").SnapLine[];
529
528
  originSnapOffset: {
530
529
  x: number;
@@ -535,20 +534,18 @@ export declare const actionShortcuts: {
535
534
  followedBy: Set<import("../types").SocketId>;
536
535
  isCropping: boolean;
537
536
  croppingElementId: string | null;
538
- searchMatches: readonly {
539
- id: string;
540
- focus: boolean;
541
- matchedLines: {
542
- offsetX: number;
543
- offsetY: number;
544
- width: number;
545
- height: number;
546
- }[];
547
- }[];
537
+ searchMatches: Readonly<{
538
+ focusedId: string | null;
539
+ matches: readonly import("../types").SearchMatch[];
540
+ }> | null;
541
+ activeLockedId: string | null;
542
+ lockedMultiSelections: {
543
+ [groupId: string]: true;
544
+ };
548
545
  };
549
546
  captureUpdate: "EVENTUALLY";
550
547
  };
551
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
548
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
552
549
  } & {
553
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
550
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
554
551
  };
@@ -28,7 +28,7 @@ export declare const actionGoToCollaborator: {
28
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
29
  isBindingEnabled: boolean;
30
30
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
31
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
32
32
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
33
  frameRendering: {
34
34
  enabled: boolean;
@@ -39,10 +39,11 @@ export declare const actionGoToCollaborator: {
39
39
  editingFrame: string | null;
40
40
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
41
41
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
42
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
43
43
  activeTool: {
44
44
  lastActiveTool: import("../types").ActiveTool | null;
45
45
  locked: boolean;
46
+ fromSelection: boolean;
46
47
  } & import("../types").ActiveTool;
47
48
  penMode: boolean;
48
49
  penDetected: boolean;
@@ -76,7 +77,7 @@ export declare const actionGoToCollaborator: {
76
77
  zoom: Readonly<{
77
78
  value: import("../types").NormalizedZoomValue;
78
79
  }>;
79
- openMenu: "shape" | "canvas" | null;
80
+ openMenu: "canvas" | "shape" | null;
80
81
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
82
  openSidebar: {
82
83
  name: string;
@@ -159,8 +160,8 @@ export declare const actionGoToCollaborator: {
159
160
  data: import("../charts").Spreadsheet;
160
161
  };
161
162
  pendingImageElementId: string | null;
162
- showHyperlinkPopup: false | "editor" | "info";
163
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
163
+ showHyperlinkPopup: false | "info" | "editor";
164
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
164
165
  snapLines: readonly import("../snapping").SnapLine[];
165
166
  originSnapOffset: {
166
167
  x: number;
@@ -170,16 +171,14 @@ export declare const actionGoToCollaborator: {
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
  captureUpdate: "EVENTUALLY";
185
184
  } | {
@@ -207,7 +206,7 @@ export declare const actionGoToCollaborator: {
207
206
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
208
207
  isBindingEnabled: boolean;
209
208
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
210
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
209
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
211
210
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
212
211
  frameRendering: {
213
212
  enabled: boolean;
@@ -218,10 +217,11 @@ export declare const actionGoToCollaborator: {
218
217
  editingFrame: string | null;
219
218
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
220
219
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
221
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
220
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
222
221
  activeTool: {
223
222
  lastActiveTool: import("../types").ActiveTool | null;
224
223
  locked: boolean;
224
+ fromSelection: boolean;
225
225
  } & import("../types").ActiveTool;
226
226
  penMode: boolean;
227
227
  penDetected: boolean;
@@ -337,8 +337,8 @@ export declare const actionGoToCollaborator: {
337
337
  data: import("../charts").Spreadsheet;
338
338
  };
339
339
  pendingImageElementId: string | null;
340
- showHyperlinkPopup: false | "editor" | "info";
341
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
340
+ showHyperlinkPopup: false | "info" | "editor";
341
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
342
342
  snapLines: readonly import("../snapping").SnapLine[];
343
343
  originSnapOffset: {
344
344
  x: number;
@@ -348,16 +348,14 @@ export declare const actionGoToCollaborator: {
348
348
  followedBy: Set<import("../types").SocketId>;
349
349
  isCropping: boolean;
350
350
  croppingElementId: string | null;
351
- searchMatches: readonly {
352
- id: string;
353
- focus: boolean;
354
- matchedLines: {
355
- offsetX: number;
356
- offsetY: number;
357
- width: number;
358
- height: number;
359
- }[];
360
- }[];
351
+ searchMatches: Readonly<{
352
+ focusedId: string | null;
353
+ matches: readonly import("../types").SearchMatch[];
354
+ }> | null;
355
+ activeLockedId: string | null;
356
+ lockedMultiSelections: {
357
+ [groupId: string]: true;
358
+ };
361
359
  };
362
360
  captureUpdate: "EVENTUALLY";
363
361
  };