@excalidraw/excalidraw 0.18.0-432a46e → 0.18.0-508de2f3a

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 (437) hide show
  1. package/dist/dev/chunk-3JWCK6AW.js +5677 -0
  2. package/dist/dev/chunk-3JWCK6AW.js.map +7 -0
  3. package/dist/dev/chunk-BVDPDK7J.js +7 -0
  4. package/dist/dev/chunk-BVDPDK7J.js.map +7 -0
  5. package/dist/dev/{chunk-LMHBUWQS.js → chunk-QF5FRM6O.js} +16 -5
  6. package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
  7. package/dist/dev/data/{image-5HAY2PCR.js → image-CNYZRAWA.js} +3 -3
  8. package/dist/dev/index.css +147 -68
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +9456 -9767
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-OZCJJ2HN.js → en-SMAPCEOQ.js} +2 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/chunk-2HQY2INW.js +4 -0
  16. package/dist/prod/chunk-I4UNSFV6.js +12 -0
  17. package/dist/prod/chunk-XRPJNYI4.js +7 -0
  18. package/dist/prod/data/image-DYRE7ZKS.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +25 -17
  21. package/dist/prod/locales/{en-B4ZKOASM.js → en-TYY6KWIJ.js} +1 -1
  22. package/dist/prod/subset-shared.chunk.js +1 -1
  23. package/dist/prod/subset-worker.chunk.js +1 -1
  24. package/dist/types/{packages/common → common}/src/colors.d.ts +1 -0
  25. package/dist/types/{packages/common → common}/src/constants.d.ts +24 -3
  26. package/dist/types/{packages/excalidraw → common/src}/emitter.d.ts +1 -1
  27. package/dist/types/{packages/common → common}/src/font-metadata.d.ts +4 -2
  28. package/dist/types/{packages/common → common}/src/index.d.ts +1 -0
  29. package/dist/types/{packages/common → common}/src/utility-types.d.ts +5 -0
  30. package/dist/types/{packages/common → common}/src/utils.d.ts +18 -1
  31. package/dist/types/{packages/excalidraw/scene → element/src}/Scene.d.ts +16 -15
  32. package/dist/types/element/src/align.d.ts +8 -0
  33. package/dist/types/{packages/element → element}/src/binding.d.ts +26 -15
  34. package/dist/types/{packages/element → element}/src/bounds.d.ts +18 -5
  35. package/dist/types/element/src/collision.d.ts +32 -0
  36. package/dist/types/{packages/element → element}/src/cropElement.d.ts +1 -1
  37. package/dist/types/{packages/excalidraw/change.d.ts → element/src/delta.d.ts} +78 -40
  38. package/dist/types/element/src/distance.d.ts +3 -0
  39. package/dist/types/{packages/element → element}/src/distribute.d.ts +2 -1
  40. package/dist/types/{packages/element → element}/src/dragElements.d.ts +3 -2
  41. package/dist/types/{packages/element → element}/src/duplicate.d.ts +10 -13
  42. package/dist/types/{packages/element → element}/src/elbowArrow.d.ts +1 -1
  43. package/dist/types/{packages/element → element}/src/flowchart.d.ts +3 -2
  44. package/dist/types/{packages/element → element}/src/fractionalIndex.d.ts +9 -3
  45. package/dist/types/{packages/element → element}/src/frame.d.ts +5 -4
  46. package/dist/types/{packages/element → element}/src/groups.d.ts +1 -0
  47. package/dist/types/{packages/element → element}/src/heading.d.ts +0 -1
  48. package/dist/types/element/src/index.d.ts +57 -0
  49. package/dist/types/{packages/element → element}/src/linearElementEditor.d.ts +23 -36
  50. package/dist/types/{packages/element → element}/src/mutateElement.d.ts +12 -3
  51. package/dist/types/{packages/element → element}/src/newElement.d.ts +4 -3
  52. package/dist/types/{packages/element → element}/src/resizeElements.d.ts +5 -4
  53. package/dist/types/{packages/element → element}/src/selection.d.ts +11 -5
  54. package/dist/types/element/src/shape.d.ts +42 -0
  55. package/dist/types/{packages/element → element}/src/sizeHelpers.d.ts +2 -2
  56. package/dist/types/element/src/store.d.ts +232 -0
  57. package/dist/types/{packages/element → element}/src/textElement.d.ts +5 -3
  58. package/dist/types/{packages/element → element}/src/typeChecks.d.ts +19 -1
  59. package/dist/types/{packages/element → element}/src/types.d.ts +15 -2
  60. package/dist/types/element/src/utils.d.ts +31 -0
  61. package/dist/types/{packages/element → element}/src/zindex.d.ts +1 -1
  62. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionAddToLibrary.d.ts +42 -51
  63. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionBoundText.d.ts +28 -34
  64. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionCanvas.d.ts +351 -214
  65. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionClipboard.d.ts +84 -100
  66. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionCropEditor.d.ts +14 -17
  67. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionDeleteSelected.d.ts +42 -50
  68. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionElementLink.d.ts +13 -16
  69. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionElementLock.d.ts +43 -51
  70. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionEmbeddable.d.ts +14 -17
  71. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionExport.d.ts +136 -163
  72. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionFinalize.d.ts +75 -40
  73. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionFrame.d.ts +103 -115
  74. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionGroup.d.ts +28 -34
  75. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionHistory.d.ts +1 -2
  76. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +713 -0
  77. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionLink.d.ts +13 -16
  78. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionMenu.d.ts +39 -48
  79. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionNavigate.d.ts +27 -33
  80. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionProperties.d.ts +218 -255
  81. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionSelectAll.d.ts +14 -17
  82. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionStyles.d.ts +14 -17
  83. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionToggleGridMode.d.ts +14 -17
  84. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionToggleObjectsSnapMode.d.ts +14 -17
  85. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +182 -0
  86. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  87. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionToggleStats.d.ts +14 -18
  88. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionToggleViewMode.d.ts +14 -18
  89. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionToggleZenMode.d.ts +14 -18
  90. package/dist/types/{packages/excalidraw → excalidraw}/actions/types.d.ts +4 -3
  91. package/dist/types/{packages/excalidraw → excalidraw}/animated-trail.d.ts +7 -1
  92. package/dist/types/{packages/excalidraw → excalidraw}/appState.d.ts +20 -10
  93. package/dist/types/{packages/excalidraw → excalidraw}/components/Actions.d.ts +0 -4
  94. package/dist/types/{packages/excalidraw → excalidraw}/components/App.d.ts +41 -24
  95. package/dist/types/{packages/excalidraw → excalidraw}/components/ButtonIcon.d.ts +1 -0
  96. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/ColorInput.d.ts +2 -1
  97. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/ColorPicker.d.ts +5 -1
  98. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/CustomColorList.d.ts +1 -1
  99. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +7 -0
  100. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/Picker.d.ts +2 -3
  101. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/PickerColorList.d.ts +2 -3
  102. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/ShadeList.d.ts +2 -2
  103. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/TopPicks.d.ts +1 -1
  104. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/colorPickerUtils.d.ts +2 -2
  105. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  106. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  107. package/dist/types/{packages/excalidraw → excalidraw}/components/ElementLinkDialog.d.ts +4 -3
  108. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  109. package/dist/types/{packages/excalidraw/components/ButtonIconSelect.d.ts → excalidraw/components/RadioSelection.d.ts} +1 -1
  110. package/dist/types/excalidraw/components/Range.d.ts +8 -0
  111. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/Angle.d.ts +1 -1
  112. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/CanvasGrid.d.ts +1 -1
  113. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/Collapsible.d.ts +2 -1
  114. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/Dimension.d.ts +1 -1
  115. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/DragInput.d.ts +12 -2
  116. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/FontSize.d.ts +1 -1
  117. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/MultiAngle.d.ts +1 -1
  118. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/MultiDimension.d.ts +1 -1
  119. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/MultiFontSize.d.ts +1 -1
  120. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/MultiPosition.d.ts +1 -1
  121. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/Position.d.ts +1 -1
  122. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/utils.d.ts +4 -11
  123. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  124. package/dist/types/{packages/excalidraw → excalidraw}/components/canvases/InteractiveCanvas.d.ts +1 -0
  125. package/dist/types/{packages/excalidraw → excalidraw}/components/hyperlink/Hyperlink.d.ts +3 -2
  126. package/dist/types/{packages/excalidraw → excalidraw}/components/hyperlink/helpers.d.ts +2 -1
  127. package/dist/types/{packages/excalidraw → excalidraw}/components/icons.d.ts +4 -0
  128. package/dist/types/{packages/excalidraw → excalidraw}/components/shapes.d.ts +1 -1
  129. package/dist/types/{packages/excalidraw → excalidraw}/data/reconcile.d.ts +1 -0
  130. package/dist/types/{packages/excalidraw → excalidraw}/data/restore.d.ts +6 -1
  131. package/dist/types/{packages/excalidraw → excalidraw}/data/transform.d.ts +1 -1
  132. package/dist/types/{packages/excalidraw → excalidraw}/editor-jotai.d.ts +6 -6
  133. package/dist/types/excalidraw/eraser/index.d.ts +12 -0
  134. package/dist/types/{packages/excalidraw → excalidraw}/fonts/Fonts.d.ts +1 -1
  135. package/dist/types/excalidraw/history.d.ts +48 -0
  136. package/dist/types/{packages/excalidraw → excalidraw}/hooks/useEmitter.d.ts +1 -1
  137. package/dist/types/{packages/excalidraw → excalidraw}/index.d.ts +11 -10
  138. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  139. package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
  140. package/dist/types/excalidraw/renderer/helpers.d.ts +18 -0
  141. package/dist/types/excalidraw/renderer/staticScene.d.ts +14 -0
  142. package/dist/types/{packages/excalidraw → excalidraw}/scene/Renderer.d.ts +1 -2
  143. package/dist/types/excalidraw/scene/index.d.ts +4 -0
  144. package/dist/types/{packages/excalidraw → excalidraw}/scene/scrollbars.d.ts +2 -3
  145. package/dist/types/{packages/excalidraw → excalidraw}/scene/types.d.ts +2 -0
  146. package/dist/types/{packages/excalidraw → excalidraw}/snapping.d.ts +2 -2
  147. package/dist/types/{packages/excalidraw → excalidraw}/types.d.ts +38 -15
  148. package/dist/types/{packages/excalidraw → excalidraw}/wysiwyg/textWysiwyg.d.ts +3 -1
  149. package/dist/types/{packages/math → math}/src/angle.d.ts +2 -0
  150. package/dist/types/math/src/constants.d.ts +3 -0
  151. package/dist/types/math/src/curve.d.ts +74 -0
  152. package/dist/types/{packages/math → math}/src/index.d.ts +1 -0
  153. package/dist/types/{packages/math → math}/src/point.d.ts +1 -1
  154. package/dist/types/{packages/math → math}/src/polygon.d.ts +1 -0
  155. package/dist/types/{packages/math → math}/src/rectangle.d.ts +2 -0
  156. package/dist/types/{packages/math → math}/src/segment.d.ts +1 -1
  157. package/dist/types/{packages/math → math}/src/types.d.ts +1 -0
  158. package/dist/types/{packages/math → math}/src/vector.d.ts +8 -2
  159. package/dist/types/{packages/utils → utils}/src/bbox.d.ts +1 -1
  160. package/dist/types/{packages/utils → utils}/src/index.d.ts +1 -1
  161. package/dist/types/{packages/utils → utils}/src/withinBounds.d.ts +1 -1
  162. package/history.ts +146 -109
  163. package/package.json +30 -10
  164. package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
  165. package/dist/dev/chunk-S7W4OWSF.js +0 -18442
  166. package/dist/dev/chunk-S7W4OWSF.js.map +0 -7
  167. package/dist/dev/chunk-ZG3EI5XS.js +0 -7
  168. package/dist/dev/chunk-ZG3EI5XS.js.map +0 -7
  169. package/dist/prod/chunk-6U3AYISY.js +0 -12
  170. package/dist/prod/chunk-LRITYP5X.js +0 -31
  171. package/dist/prod/chunk-U24AOZ3B.js +0 -7
  172. package/dist/prod/data/image-W3GRS73V.js +0 -1
  173. package/dist/types/excalidraw-app/app_constants.d.ts +0 -44
  174. package/dist/types/packages/element/src/Shape.d.ts +0 -17
  175. package/dist/types/packages/element/src/ShapeCache.d.ts +0 -25
  176. package/dist/types/packages/element/src/align.d.ts +0 -7
  177. package/dist/types/packages/element/src/collision.d.ts +0 -26
  178. package/dist/types/packages/element/src/distance.d.ts +0 -3
  179. package/dist/types/packages/element/src/index.d.ts +0 -16
  180. package/dist/types/packages/element/src/shapes.d.ts +0 -23
  181. package/dist/types/packages/element/src/utils.d.ts +0 -21
  182. package/dist/types/packages/excalidraw/actions/actionLinearEditor.d.ts +0 -192
  183. package/dist/types/packages/excalidraw/actions/actionToggleSearchMenu.d.ts +0 -357
  184. package/dist/types/packages/excalidraw/components/ButtonSelect.d.ts +0 -9
  185. package/dist/types/packages/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +0 -8
  186. package/dist/types/packages/excalidraw/components/Range.d.ts +0 -8
  187. package/dist/types/packages/excalidraw/history.d.ts +0 -40
  188. package/dist/types/packages/excalidraw/renderer/helpers.d.ts +0 -13
  189. package/dist/types/packages/excalidraw/renderer/staticScene.d.ts +0 -11
  190. package/dist/types/packages/excalidraw/scene/index.d.ts +0 -4
  191. package/dist/types/packages/excalidraw/store.d.ts +0 -129
  192. package/dist/types/packages/excalidraw/tests/fixtures/diagramFixture.d.ts +0 -504
  193. package/dist/types/packages/excalidraw/tests/fixtures/elementFixture.d.ts +0 -7
  194. package/dist/types/packages/excalidraw/tests/helpers/api.d.ts +0 -89
  195. package/dist/types/packages/excalidraw/tests/helpers/colorize.d.ts +0 -2
  196. package/dist/types/packages/excalidraw/tests/helpers/mocks.d.ts +0 -5
  197. package/dist/types/packages/excalidraw/tests/helpers/polyfills.d.ts +0 -36
  198. package/dist/types/packages/excalidraw/tests/helpers/ui.d.ts +0 -189
  199. package/dist/types/packages/excalidraw/tests/queries/dom.d.ts +0 -2
  200. package/dist/types/packages/excalidraw/tests/queries/toolQueries.d.ts +0 -2
  201. package/dist/types/packages/excalidraw/tests/test-utils.d.ts +0 -139
  202. package/dist/types/packages/excalidraw/visualdebug.d.ts +0 -41
  203. package/dist/types/packages/math/src/curve.d.ts +0 -40
  204. package/dist/types/packages/utils/src/collision.d.ts +0 -8
  205. /package/dist/dev/data/{image-5HAY2PCR.js.map → image-CNYZRAWA.js.map} +0 -0
  206. /package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-SMAPCEOQ.js.map} +0 -0
  207. /package/dist/types/{packages/common → common}/src/binary-heap.d.ts +0 -0
  208. /package/dist/types/{packages/common → common}/src/keys.d.ts +0 -0
  209. /package/dist/types/{packages/common → common}/src/points.d.ts +0 -0
  210. /package/dist/types/{packages/common → common}/src/promise-pool.d.ts +0 -0
  211. /package/dist/types/{packages/common → common}/src/queue.d.ts +0 -0
  212. /package/dist/types/{packages/common → common}/src/random.d.ts +0 -0
  213. /package/dist/types/{packages/common → common}/src/url.d.ts +0 -0
  214. /package/dist/types/{packages/element → element}/src/comparisons.d.ts +0 -0
  215. /package/dist/types/{packages/element → element}/src/containerCache.d.ts +0 -0
  216. /package/dist/types/{packages/element → element}/src/elementLink.d.ts +0 -0
  217. /package/dist/types/{packages/element → element}/src/embeddable.d.ts +0 -0
  218. /package/dist/types/{packages/element → element}/src/image.d.ts +0 -0
  219. /package/dist/types/{packages/element → element}/src/renderElement.d.ts +0 -0
  220. /package/dist/types/{packages/element → element}/src/resizeTest.d.ts +0 -0
  221. /package/dist/types/{packages/element → element}/src/showSelectedShapeActions.d.ts +0 -0
  222. /package/dist/types/{packages/element → element}/src/sortElements.d.ts +0 -0
  223. /package/dist/types/{packages/element → element}/src/textMeasurements.d.ts +0 -0
  224. /package/dist/types/{packages/element → element}/src/textWrapping.d.ts +0 -0
  225. /package/dist/types/{packages/element → element}/src/transformHandles.d.ts +0 -0
  226. /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionAlign.d.ts +0 -0
  227. /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionDistribute.d.ts +0 -0
  228. /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionDuplicateSelection.d.ts +0 -0
  229. /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionFlip.d.ts +0 -0
  230. /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionTextAutoResize.d.ts +0 -0
  231. /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionZindex.d.ts +0 -0
  232. /package/dist/types/{packages/excalidraw → excalidraw}/actions/index.d.ts +0 -0
  233. /package/dist/types/{packages/excalidraw → excalidraw}/actions/manager.d.ts +0 -0
  234. /package/dist/types/{packages/excalidraw → excalidraw}/actions/register.d.ts +0 -0
  235. /package/dist/types/{packages/excalidraw → excalidraw}/actions/shortcuts.d.ts +0 -0
  236. /package/dist/types/{packages/excalidraw → excalidraw}/analytics.d.ts +0 -0
  237. /package/dist/types/{packages/excalidraw → excalidraw}/animation-frame-handler.d.ts +0 -0
  238. /package/dist/types/{packages/excalidraw → excalidraw}/charts.d.ts +0 -0
  239. /package/dist/types/{packages/excalidraw → excalidraw}/clients.d.ts +0 -0
  240. /package/dist/types/{packages/excalidraw → excalidraw}/clipboard.d.ts +0 -0
  241. /package/dist/types/{packages/excalidraw → excalidraw}/components/ActiveConfirmDialog.d.ts +0 -0
  242. /package/dist/types/{packages/excalidraw → excalidraw}/components/Avatar.d.ts +0 -0
  243. /package/dist/types/{packages/excalidraw → excalidraw}/components/BraveMeasureTextError.d.ts +0 -0
  244. /package/dist/types/{packages/excalidraw → excalidraw}/components/Button.d.ts +0 -0
  245. /package/dist/types/{packages/excalidraw → excalidraw}/components/ButtonIconCycle.d.ts +0 -0
  246. /package/dist/types/{packages/excalidraw → excalidraw}/components/ButtonSeparator.d.ts +0 -0
  247. /package/dist/types/{packages/excalidraw → excalidraw}/components/Card.d.ts +0 -0
  248. /package/dist/types/{packages/excalidraw → excalidraw}/components/CheckboxItem.d.ts +0 -0
  249. /package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/PickerHeading.d.ts +0 -0
  250. /package/dist/types/{packages/excalidraw → excalidraw}/components/CommandPalette/CommandPalette.d.ts +0 -0
  251. /package/dist/types/{packages/excalidraw → excalidraw}/components/CommandPalette/defaultCommandPaletteItems.d.ts +0 -0
  252. /package/dist/types/{packages/excalidraw → excalidraw}/components/CommandPalette/types.d.ts +0 -0
  253. /package/dist/types/{packages/excalidraw → excalidraw}/components/ConfirmDialog.d.ts +0 -0
  254. /package/dist/types/{packages/excalidraw → excalidraw}/components/ContextMenu.d.ts +0 -0
  255. /package/dist/types/{packages/excalidraw → excalidraw}/components/DarkModeToggle.d.ts +0 -0
  256. /package/dist/types/{packages/excalidraw → excalidraw}/components/DefaultSidebar.d.ts +0 -0
  257. /package/dist/types/{packages/excalidraw → excalidraw}/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -0
  258. /package/dist/types/{packages/excalidraw → excalidraw}/components/Dialog.d.ts +0 -0
  259. /package/dist/types/{packages/excalidraw → excalidraw}/components/DialogActionButton.d.ts +0 -0
  260. /package/dist/types/{packages/excalidraw → excalidraw}/components/ElementCanvasButtons.d.ts +0 -0
  261. /package/dist/types/{packages/excalidraw → excalidraw}/components/ErrorDialog.d.ts +0 -0
  262. /package/dist/types/{packages/excalidraw → excalidraw}/components/ExcalidrawLogo.d.ts +0 -0
  263. /package/dist/types/{packages/excalidraw → excalidraw}/components/EyeDropper.d.ts +0 -0
  264. /package/dist/types/{packages/excalidraw → excalidraw}/components/FilledButton.d.ts +0 -0
  265. /package/dist/types/{packages/excalidraw → excalidraw}/components/FixedSideContainer.d.ts +0 -0
  266. /package/dist/types/{packages/excalidraw → excalidraw}/components/FollowMode/FollowMode.d.ts +0 -0
  267. /package/dist/types/{packages/excalidraw → excalidraw}/components/FontPicker/FontPicker.d.ts +0 -0
  268. /package/dist/types/{packages/excalidraw → excalidraw}/components/FontPicker/FontPickerList.d.ts +0 -0
  269. /package/dist/types/{packages/excalidraw → excalidraw}/components/FontPicker/FontPickerTrigger.d.ts +0 -0
  270. /package/dist/types/{packages/excalidraw → excalidraw}/components/FontPicker/keyboardNavHandlers.d.ts +0 -0
  271. /package/dist/types/{packages/excalidraw → excalidraw}/components/HandButton.d.ts +0 -0
  272. /package/dist/types/{packages/excalidraw → excalidraw}/components/HelpButton.d.ts +0 -0
  273. /package/dist/types/{packages/excalidraw → excalidraw}/components/HelpDialog.d.ts +0 -0
  274. /package/dist/types/{packages/excalidraw → excalidraw}/components/HintViewer.d.ts +0 -0
  275. /package/dist/types/{packages/excalidraw → excalidraw}/components/IconPicker.d.ts +0 -0
  276. /package/dist/types/{packages/excalidraw → excalidraw}/components/ImageExportDialog.d.ts +0 -0
  277. /package/dist/types/{packages/excalidraw → excalidraw}/components/InitializeApp.d.ts +0 -0
  278. /package/dist/types/{packages/excalidraw → excalidraw}/components/InlineIcon.d.ts +0 -0
  279. /package/dist/types/{packages/excalidraw → excalidraw}/components/Island.d.ts +0 -0
  280. /package/dist/types/{packages/excalidraw → excalidraw}/components/JSONExportDialog.d.ts +0 -0
  281. /package/dist/types/{packages/excalidraw → excalidraw}/components/LaserPointerButton.d.ts +0 -0
  282. /package/dist/types/{packages/excalidraw → excalidraw}/components/LayerUI.d.ts +0 -0
  283. /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenu.d.ts +0 -0
  284. /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenuBrowseButton.d.ts +0 -0
  285. /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenuControlButtons.d.ts +0 -0
  286. /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenuHeaderContent.d.ts +0 -0
  287. /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenuItems.d.ts +0 -0
  288. /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenuSection.d.ts +0 -0
  289. /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryUnit.d.ts +0 -0
  290. /package/dist/types/{packages/excalidraw → excalidraw}/components/LoadingMessage.d.ts +0 -0
  291. /package/dist/types/{packages/excalidraw → excalidraw}/components/LockButton.d.ts +0 -0
  292. /package/dist/types/{packages/excalidraw → excalidraw}/components/MagicButton.d.ts +0 -0
  293. /package/dist/types/{packages/excalidraw → excalidraw}/components/MobileMenu.d.ts +0 -0
  294. /package/dist/types/{packages/excalidraw → excalidraw}/components/Modal.d.ts +0 -0
  295. /package/dist/types/{packages/excalidraw → excalidraw}/components/OverwriteConfirm/OverwriteConfirm.d.ts +0 -0
  296. /package/dist/types/{packages/excalidraw → excalidraw}/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +0 -0
  297. /package/dist/types/{packages/excalidraw → excalidraw}/components/OverwriteConfirm/OverwriteConfirmState.d.ts +0 -0
  298. /package/dist/types/{packages/excalidraw → excalidraw}/components/Paragraph.d.ts +0 -0
  299. /package/dist/types/{packages/excalidraw → excalidraw}/components/PasteChartDialog.d.ts +0 -0
  300. /package/dist/types/{packages/excalidraw → excalidraw}/components/PenModeButton.d.ts +0 -0
  301. /package/dist/types/{packages/excalidraw → excalidraw}/components/Popover.d.ts +0 -0
  302. /package/dist/types/{packages/excalidraw → excalidraw}/components/ProjectName.d.ts +0 -0
  303. /package/dist/types/{packages/excalidraw → excalidraw}/components/PropertiesPopover.d.ts +0 -0
  304. /package/dist/types/{packages/excalidraw → excalidraw}/components/PublishLibrary.d.ts +0 -0
  305. /package/dist/types/{packages/excalidraw → excalidraw}/components/QuickSearch.d.ts +0 -0
  306. /package/dist/types/{packages/excalidraw → excalidraw}/components/RadioGroup.d.ts +0 -0
  307. /package/dist/types/{packages/excalidraw → excalidraw}/components/SVGLayer.d.ts +0 -0
  308. /package/dist/types/{packages/excalidraw → excalidraw}/components/ScrollableList.d.ts +0 -0
  309. /package/dist/types/{packages/excalidraw → excalidraw}/components/SearchMenu.d.ts +0 -0
  310. /package/dist/types/{packages/excalidraw → excalidraw}/components/Section.d.ts +0 -0
  311. /package/dist/types/{packages/excalidraw → excalidraw}/components/ShareableLinkDialog.d.ts +0 -0
  312. /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/Sidebar.d.ts +0 -0
  313. /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarHeader.d.ts +0 -0
  314. /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarTab.d.ts +0 -0
  315. /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarTabTrigger.d.ts +0 -0
  316. /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarTabTriggers.d.ts +0 -0
  317. /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarTabs.d.ts +0 -0
  318. /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarTrigger.d.ts +0 -0
  319. /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/common.d.ts +0 -0
  320. /package/dist/types/{packages/excalidraw → excalidraw}/components/Spinner.d.ts +0 -0
  321. /package/dist/types/{packages/excalidraw → excalidraw}/components/Stack.d.ts +0 -0
  322. /package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/index.d.ts +0 -0
  323. /package/dist/types/{packages/excalidraw → excalidraw}/components/Switch.d.ts +0 -0
  324. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/MermaidToExcalidraw.d.ts +0 -0
  325. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialog.d.ts +0 -0
  326. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogInput.d.ts +0 -0
  327. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogOutput.d.ts +0 -0
  328. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogPanel.d.ts +0 -0
  329. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogPanels.d.ts +0 -0
  330. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +0 -0
  331. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogTab.d.ts +0 -0
  332. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogTabTrigger.d.ts +0 -0
  333. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogTabTriggers.d.ts +0 -0
  334. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogTabs.d.ts +0 -0
  335. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogTrigger.d.ts +0 -0
  336. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/common.d.ts +0 -0
  337. /package/dist/types/{packages/excalidraw → excalidraw}/components/TextField.d.ts +0 -0
  338. /package/dist/types/{packages/excalidraw → excalidraw}/components/Toast.d.ts +0 -0
  339. /package/dist/types/{packages/excalidraw → excalidraw}/components/ToolButton.d.ts +0 -0
  340. /package/dist/types/{packages/excalidraw → excalidraw}/components/Tooltip.d.ts +0 -0
  341. /package/dist/types/{packages/excalidraw → excalidraw}/components/Trans.d.ts +0 -0
  342. /package/dist/types/{packages/excalidraw → excalidraw}/components/UserList.d.ts +0 -0
  343. /package/dist/types/{packages/excalidraw → excalidraw}/components/canvases/NewElementCanvas.d.ts +0 -0
  344. /package/dist/types/{packages/excalidraw → excalidraw}/components/canvases/StaticCanvas.d.ts +0 -0
  345. /package/dist/types/{packages/excalidraw → excalidraw}/components/canvases/index.d.ts +0 -0
  346. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenu.d.ts +0 -0
  347. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuContent.d.ts +0 -0
  348. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuGroup.d.ts +0 -0
  349. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuItem.d.ts +0 -0
  350. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuItemContent.d.ts +0 -0
  351. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -0
  352. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuItemCustom.d.ts +0 -0
  353. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuItemLink.d.ts +0 -0
  354. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuSeparator.d.ts +0 -0
  355. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuTrigger.d.ts +0 -0
  356. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/common.d.ts +0 -0
  357. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/dropdownMenuUtils.d.ts +0 -0
  358. /package/dist/types/{packages/excalidraw → excalidraw}/components/footer/Footer.d.ts +0 -0
  359. /package/dist/types/{packages/excalidraw → excalidraw}/components/footer/FooterCenter.d.ts +0 -0
  360. /package/dist/types/{packages/excalidraw → excalidraw}/components/hoc/withInternalFallback.d.ts +0 -0
  361. /package/dist/types/{packages/excalidraw → excalidraw}/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -0
  362. /package/dist/types/{packages/excalidraw → excalidraw}/components/main-menu/DefaultItems.d.ts +0 -0
  363. /package/dist/types/{packages/excalidraw → excalidraw}/components/main-menu/MainMenu.d.ts +0 -0
  364. /package/dist/types/{packages/excalidraw → excalidraw}/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -0
  365. /package/dist/types/{packages/excalidraw → excalidraw}/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -0
  366. /package/dist/types/{packages/excalidraw → excalidraw}/components/welcome-screen/WelcomeScreen.d.ts +0 -0
  367. /package/dist/types/{packages/excalidraw → excalidraw}/context/tunnels.d.ts +0 -0
  368. /package/dist/types/{packages/excalidraw → excalidraw}/context/ui-appState.d.ts +0 -0
  369. /package/dist/types/{packages/excalidraw → excalidraw}/cursor.d.ts +0 -0
  370. /package/dist/types/{packages/excalidraw → excalidraw}/data/EditorLocalStorage.d.ts +0 -0
  371. /package/dist/types/{packages/excalidraw → excalidraw}/data/ai/types.d.ts +0 -0
  372. /package/dist/types/{packages/excalidraw → excalidraw}/data/blob.d.ts +0 -0
  373. /package/dist/types/{packages/excalidraw → excalidraw}/data/encode.d.ts +0 -0
  374. /package/dist/types/{packages/excalidraw → excalidraw}/data/encryption.d.ts +0 -0
  375. /package/dist/types/{packages/excalidraw → excalidraw}/data/filesystem.d.ts +0 -0
  376. /package/dist/types/{packages/excalidraw → excalidraw}/data/image.d.ts +0 -0
  377. /package/dist/types/{packages/excalidraw → excalidraw}/data/index.d.ts +0 -0
  378. /package/dist/types/{packages/excalidraw → excalidraw}/data/json.d.ts +0 -0
  379. /package/dist/types/{packages/excalidraw → excalidraw}/data/library.d.ts +0 -0
  380. /package/dist/types/{packages/excalidraw → excalidraw}/data/resave.d.ts +0 -0
  381. /package/dist/types/{packages/excalidraw → excalidraw}/data/types.d.ts +0 -0
  382. /package/dist/types/{packages/excalidraw → excalidraw}/deburr.d.ts +0 -0
  383. /package/dist/types/{packages/excalidraw → excalidraw}/errors.d.ts +0 -0
  384. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Cascadia/index.d.ts +0 -0
  385. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/ComicShanns/index.d.ts +0 -0
  386. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Emoji/index.d.ts +0 -0
  387. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/ExcalidrawFontFace.d.ts +0 -0
  388. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Excalifont/index.d.ts +0 -0
  389. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Helvetica/index.d.ts +0 -0
  390. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Liberation/index.d.ts +0 -0
  391. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Lilita/index.d.ts +0 -0
  392. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Nunito/index.d.ts +0 -0
  393. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Virgil/index.d.ts +0 -0
  394. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Xiaolai/index.d.ts +0 -0
  395. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/index.d.ts +0 -0
  396. /package/dist/types/{packages/excalidraw → excalidraw}/gesture.d.ts +0 -0
  397. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useCallbackRefState.d.ts +0 -0
  398. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useCopiedIndicator.d.ts +0 -0
  399. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useCreatePortalContainer.d.ts +0 -0
  400. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useLibraryItemSvg.d.ts +0 -0
  401. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useOutsideClick.d.ts +0 -0
  402. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useScrollPosition.d.ts +0 -0
  403. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useStable.d.ts +0 -0
  404. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useStableCallback.d.ts +0 -0
  405. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useTransition.d.ts +0 -0
  406. /package/dist/types/{packages/excalidraw → excalidraw}/i18n.d.ts +0 -0
  407. /package/dist/types/{packages/excalidraw → excalidraw}/index-node.d.ts +0 -0
  408. /package/dist/types/{packages/excalidraw → excalidraw}/laser-trails.d.ts +0 -0
  409. /package/dist/types/{packages/excalidraw → excalidraw}/mermaid.d.ts +0 -0
  410. /package/dist/types/{packages/excalidraw → excalidraw}/polyfill.d.ts +0 -0
  411. /package/dist/types/{packages/excalidraw → excalidraw}/reactUtils.d.ts +0 -0
  412. /package/dist/types/{packages/excalidraw → excalidraw}/renderer/interactiveScene.d.ts +0 -0
  413. /package/dist/types/{packages/excalidraw → excalidraw}/renderer/renderNewElementScene.d.ts +0 -0
  414. /package/dist/types/{packages/excalidraw → excalidraw}/renderer/renderSnaps.d.ts +0 -0
  415. /package/dist/types/{packages/excalidraw → excalidraw}/renderer/roundRect.d.ts +0 -0
  416. /package/dist/types/{packages/excalidraw → excalidraw}/renderer/staticSvgScene.d.ts +0 -0
  417. /package/dist/types/{packages/excalidraw → excalidraw}/scene/export.d.ts +0 -0
  418. /package/dist/types/{packages/excalidraw → excalidraw}/scene/normalize.d.ts +0 -0
  419. /package/dist/types/{packages/excalidraw → excalidraw}/scene/scroll.d.ts +0 -0
  420. /package/dist/types/{packages/excalidraw → excalidraw}/scene/zoom.d.ts +0 -0
  421. /package/dist/types/{packages/excalidraw → excalidraw}/subset/harfbuzz/harfbuzz-bindings.d.ts +0 -0
  422. /package/dist/types/{packages/excalidraw → excalidraw}/subset/harfbuzz/harfbuzz-loader.d.ts +0 -0
  423. /package/dist/types/{packages/excalidraw → excalidraw}/subset/harfbuzz/harfbuzz-wasm.d.ts +0 -0
  424. /package/dist/types/{packages/excalidraw → excalidraw}/subset/subset-main.d.ts +0 -0
  425. /package/dist/types/{packages/excalidraw → excalidraw}/subset/subset-shared.chunk.d.ts +0 -0
  426. /package/dist/types/{packages/excalidraw → excalidraw}/subset/subset-worker.chunk.d.ts +0 -0
  427. /package/dist/types/{packages/excalidraw → excalidraw}/subset/woff2/woff2-bindings.d.ts +0 -0
  428. /package/dist/types/{packages/excalidraw → excalidraw}/subset/woff2/woff2-loader.d.ts +0 -0
  429. /package/dist/types/{packages/excalidraw → excalidraw}/subset/woff2/woff2-wasm.d.ts +0 -0
  430. /package/dist/types/{packages/excalidraw → excalidraw}/workers.d.ts +0 -0
  431. /package/dist/types/{packages/math → math}/src/ellipse.d.ts +0 -0
  432. /package/dist/types/{packages/math → math}/src/line.d.ts +0 -0
  433. /package/dist/types/{packages/math → math}/src/range.d.ts +0 -0
  434. /package/dist/types/{packages/math → math}/src/triangle.d.ts +0 -0
  435. /package/dist/types/{packages/math → math}/src/utils.d.ts +0 -0
  436. /package/dist/types/{packages/utils → utils}/src/export.d.ts +0 -0
  437. /package/dist/types/{packages/utils → utils}/src/shape.d.ts +0 -0
@@ -1,11 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { type SceneBounds } from "@excalidraw/element/bounds";
2
+ import { type SceneBounds } from "@excalidraw/element";
3
3
  import type { ExcalidrawElement } from "@excalidraw/element/types";
4
4
  import type { AppState, Offsets } from "../types";
5
5
  export declare const actionChangeViewBackgroundColor: {
6
6
  name: "changeViewBackgroundColor";
7
7
  label: string;
8
- paletteName: string;
9
8
  trackEvent: false;
10
9
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
11
10
  perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
@@ -19,7 +18,6 @@ export declare const actionChangeViewBackgroundColor: {
19
18
  export declare const actionClearCanvas: {
20
19
  name: "clearCanvas";
21
20
  label: string;
22
- paletteName: string;
23
21
  icon: import("react/jsx-runtime").JSX.Element;
24
22
  trackEvent: {
25
23
  category: "canvas";
@@ -51,6 +49,7 @@ export declare const actionClearCanvas: {
51
49
  activeTool: {
52
50
  lastActiveTool: import("../types").ActiveTool | null;
53
51
  locked: boolean;
52
+ fromSelection: boolean;
54
53
  } & import("../types").ActiveTool;
55
54
  viewBackgroundColor: string;
56
55
  frameRendering: {
@@ -70,7 +69,7 @@ export declare const actionClearCanvas: {
70
69
  name: "imageExport" | "help" | "jsonExport";
71
70
  } | {
72
71
  name: "ttd";
73
- tab: "text-to-diagram" | "mermaid";
72
+ tab: "mermaid" | "text-to-diagram";
74
73
  } | {
75
74
  name: "commandPalette";
76
75
  } | {
@@ -82,20 +81,18 @@ export declare const actionClearCanvas: {
82
81
  [id: string]: true;
83
82
  }>;
84
83
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
85
- pendingImageElementId: string | null;
86
84
  activeEmbeddable: {
87
85
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
88
- state: "hover" | "active";
86
+ state: "active" | "hover";
89
87
  } | null;
90
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
91
88
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
92
89
  selectedGroupIds: {
93
90
  [groupId: string]: boolean;
94
91
  };
95
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
92
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
96
93
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
97
94
  isBindingEnabled: boolean;
98
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
95
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
99
96
  isRotating: boolean;
100
97
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
101
98
  collaborators: Map<import("../types").SocketId, Readonly<{
@@ -123,24 +120,11 @@ export declare const actionClearCanvas: {
123
120
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
124
121
  isCropping: boolean;
125
122
  croppingElementId: string | null;
126
- searchMatches: readonly {
127
- id: string;
128
- focus: boolean;
129
- matchedLines: {
130
- offsetX: number;
131
- offsetY: number;
132
- width: number;
133
- height: number;
134
- }[];
135
- }[];
136
- objectsSnapModeEnabled: boolean;
137
- shouldCacheIgnoreZoom: boolean;
138
- exportScale: number;
139
- selectedElementsAreBeingDragged: boolean;
140
- currentHoveredFontFamily: number | null;
141
- hoveredElementIds: Readonly<{
142
- [id: string]: true;
143
- }>;
123
+ searchMatches: Readonly<{
124
+ focusedId: string | null;
125
+ matches: readonly import("../types").SearchMatch[];
126
+ }> | null;
127
+ activeLockedId: string | null;
144
128
  contextMenu: {
145
129
  items: import("../components/ContextMenu").ContextMenuItems;
146
130
  top: number;
@@ -154,6 +138,7 @@ export declare const actionClearCanvas: {
154
138
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
155
139
  editingFrame: string | null;
156
140
  exportWithDarkMode: boolean;
141
+ exportScale: number;
157
142
  currentItemStrokeColor: string;
158
143
  currentItemBackgroundColor: string;
159
144
  currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
@@ -166,12 +151,13 @@ export declare const actionClearCanvas: {
166
151
  currentItemTextAlign: string;
167
152
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
168
153
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
154
+ currentHoveredFontFamily: number | null;
169
155
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
170
156
  currentItemArrowType: "round" | "sharp" | "elbow";
171
157
  cursorButton: "up" | "down";
172
158
  scrolledOutside: boolean;
173
159
  isResizing: boolean;
174
- openMenu: "shape" | "canvas" | null;
160
+ openMenu: "canvas" | "shape" | null;
175
161
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
176
162
  openSidebar: {
177
163
  name: string;
@@ -179,9 +165,14 @@ export declare const actionClearCanvas: {
179
165
  } | null;
180
166
  defaultSidebarDockedPreference: boolean;
181
167
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
168
+ hoveredElementIds: Readonly<{
169
+ [id: string]: true;
170
+ }>;
182
171
  previousSelectedElementIds: {
183
172
  [id: string]: true;
184
173
  };
174
+ selectedElementsAreBeingDragged: boolean;
175
+ shouldCacheIgnoreZoom: boolean;
185
176
  toast: {
186
177
  message: string;
187
178
  closable?: boolean | undefined;
@@ -194,8 +185,12 @@ export declare const actionClearCanvas: {
194
185
  x: number;
195
186
  y: number;
196
187
  } | null;
188
+ objectsSnapModeEnabled: boolean;
197
189
  userToFollow: import("../types").UserToFollow | null;
198
190
  followedBy: Set<import("../types").SocketId>;
191
+ lockedMultiSelections: {
192
+ [groupId: string]: true;
193
+ };
199
194
  };
200
195
  captureUpdate: "IMMEDIATELY";
201
196
  };
@@ -228,7 +223,7 @@ export declare const actionZoomIn: {
228
223
  errorMessage: import("react").ReactNode;
229
224
  activeEmbeddable: {
230
225
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
231
- state: "hover" | "active";
226
+ state: "active" | "hover";
232
227
  } | null;
233
228
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
234
229
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -236,7 +231,7 @@ export declare const actionZoomIn: {
236
231
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
237
232
  isBindingEnabled: boolean;
238
233
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
239
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
234
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
240
235
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
241
236
  frameRendering: {
242
237
  enabled: boolean;
@@ -247,10 +242,10 @@ export declare const actionZoomIn: {
247
242
  editingFrame: string | null;
248
243
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
249
244
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
250
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
251
245
  activeTool: {
252
246
  lastActiveTool: import("../types").ActiveTool | null;
253
247
  locked: boolean;
248
+ fromSelection: boolean;
254
249
  } & import("../types").ActiveTool;
255
250
  penMode: boolean;
256
251
  penDetected: boolean;
@@ -279,7 +274,7 @@ export declare const actionZoomIn: {
279
274
  name: string | null;
280
275
  isResizing: boolean;
281
276
  isRotating: boolean;
282
- openMenu: "shape" | "canvas" | null;
277
+ openMenu: "canvas" | "shape" | null;
283
278
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
284
279
  openSidebar: {
285
280
  name: string;
@@ -289,7 +284,7 @@ export declare const actionZoomIn: {
289
284
  name: "imageExport" | "help" | "jsonExport";
290
285
  } | {
291
286
  name: "ttd";
292
- tab: "text-to-diagram" | "mermaid";
287
+ tab: "mermaid" | "text-to-diagram";
293
288
  } | {
294
289
  name: "commandPalette";
295
290
  } | {
@@ -361,9 +356,8 @@ export declare const actionZoomIn: {
361
356
  shown: true;
362
357
  data: import("../charts").Spreadsheet;
363
358
  };
364
- pendingImageElementId: string | null;
365
359
  showHyperlinkPopup: false | "editor" | "info";
366
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
360
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
367
361
  snapLines: readonly import("../snapping").SnapLine[];
368
362
  originSnapOffset: {
369
363
  x: number;
@@ -373,16 +367,14 @@ export declare const actionZoomIn: {
373
367
  followedBy: Set<import("../types").SocketId>;
374
368
  isCropping: boolean;
375
369
  croppingElementId: string | null;
376
- searchMatches: readonly {
377
- id: string;
378
- focus: boolean;
379
- matchedLines: {
380
- offsetX: number;
381
- offsetY: number;
382
- width: number;
383
- height: number;
384
- }[];
385
- }[];
370
+ searchMatches: Readonly<{
371
+ focusedId: string | null;
372
+ matches: readonly import("../types").SearchMatch[];
373
+ }> | null;
374
+ activeLockedId: string | null;
375
+ lockedMultiSelections: {
376
+ [groupId: string]: true;
377
+ };
386
378
  };
387
379
  captureUpdate: "EVENTUALLY";
388
380
  };
@@ -417,7 +409,7 @@ export declare const actionZoomOut: {
417
409
  errorMessage: import("react").ReactNode;
418
410
  activeEmbeddable: {
419
411
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
420
- state: "hover" | "active";
412
+ state: "active" | "hover";
421
413
  } | null;
422
414
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
423
415
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -425,7 +417,7 @@ export declare const actionZoomOut: {
425
417
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
426
418
  isBindingEnabled: boolean;
427
419
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
428
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
420
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
429
421
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
430
422
  frameRendering: {
431
423
  enabled: boolean;
@@ -436,10 +428,10 @@ export declare const actionZoomOut: {
436
428
  editingFrame: string | null;
437
429
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
438
430
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
439
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
440
431
  activeTool: {
441
432
  lastActiveTool: import("../types").ActiveTool | null;
442
433
  locked: boolean;
434
+ fromSelection: boolean;
443
435
  } & import("../types").ActiveTool;
444
436
  penMode: boolean;
445
437
  penDetected: boolean;
@@ -468,7 +460,7 @@ export declare const actionZoomOut: {
468
460
  name: string | null;
469
461
  isResizing: boolean;
470
462
  isRotating: boolean;
471
- openMenu: "shape" | "canvas" | null;
463
+ openMenu: "canvas" | "shape" | null;
472
464
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
473
465
  openSidebar: {
474
466
  name: string;
@@ -478,7 +470,7 @@ export declare const actionZoomOut: {
478
470
  name: "imageExport" | "help" | "jsonExport";
479
471
  } | {
480
472
  name: "ttd";
481
- tab: "text-to-diagram" | "mermaid";
473
+ tab: "mermaid" | "text-to-diagram";
482
474
  } | {
483
475
  name: "commandPalette";
484
476
  } | {
@@ -550,9 +542,8 @@ export declare const actionZoomOut: {
550
542
  shown: true;
551
543
  data: import("../charts").Spreadsheet;
552
544
  };
553
- pendingImageElementId: string | null;
554
545
  showHyperlinkPopup: false | "editor" | "info";
555
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
546
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
556
547
  snapLines: readonly import("../snapping").SnapLine[];
557
548
  originSnapOffset: {
558
549
  x: number;
@@ -562,16 +553,14 @@ export declare const actionZoomOut: {
562
553
  followedBy: Set<import("../types").SocketId>;
563
554
  isCropping: boolean;
564
555
  croppingElementId: string | null;
565
- searchMatches: readonly {
566
- id: string;
567
- focus: boolean;
568
- matchedLines: {
569
- offsetX: number;
570
- offsetY: number;
571
- width: number;
572
- height: number;
573
- }[];
574
- }[];
556
+ searchMatches: Readonly<{
557
+ focusedId: string | null;
558
+ matches: readonly import("../types").SearchMatch[];
559
+ }> | null;
560
+ activeLockedId: string | null;
561
+ lockedMultiSelections: {
562
+ [groupId: string]: true;
563
+ };
575
564
  };
576
565
  captureUpdate: "EVENTUALLY";
577
566
  };
@@ -606,7 +595,7 @@ export declare const actionResetZoom: {
606
595
  errorMessage: import("react").ReactNode;
607
596
  activeEmbeddable: {
608
597
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
609
- state: "hover" | "active";
598
+ state: "active" | "hover";
610
599
  } | null;
611
600
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
612
601
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -614,7 +603,7 @@ export declare const actionResetZoom: {
614
603
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
615
604
  isBindingEnabled: boolean;
616
605
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
617
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
606
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
618
607
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
619
608
  frameRendering: {
620
609
  enabled: boolean;
@@ -625,10 +614,10 @@ export declare const actionResetZoom: {
625
614
  editingFrame: string | null;
626
615
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
627
616
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
628
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
629
617
  activeTool: {
630
618
  lastActiveTool: import("../types").ActiveTool | null;
631
619
  locked: boolean;
620
+ fromSelection: boolean;
632
621
  } & import("../types").ActiveTool;
633
622
  penMode: boolean;
634
623
  penDetected: boolean;
@@ -657,7 +646,7 @@ export declare const actionResetZoom: {
657
646
  name: string | null;
658
647
  isResizing: boolean;
659
648
  isRotating: boolean;
660
- openMenu: "shape" | "canvas" | null;
649
+ openMenu: "canvas" | "shape" | null;
661
650
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
662
651
  openSidebar: {
663
652
  name: string;
@@ -667,7 +656,7 @@ export declare const actionResetZoom: {
667
656
  name: "imageExport" | "help" | "jsonExport";
668
657
  } | {
669
658
  name: "ttd";
670
- tab: "text-to-diagram" | "mermaid";
659
+ tab: "mermaid" | "text-to-diagram";
671
660
  } | {
672
661
  name: "commandPalette";
673
662
  } | {
@@ -739,9 +728,8 @@ export declare const actionResetZoom: {
739
728
  shown: true;
740
729
  data: import("../charts").Spreadsheet;
741
730
  };
742
- pendingImageElementId: string | null;
743
731
  showHyperlinkPopup: false | "editor" | "info";
744
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
732
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
745
733
  snapLines: readonly import("../snapping").SnapLine[];
746
734
  originSnapOffset: {
747
735
  x: number;
@@ -751,16 +739,14 @@ export declare const actionResetZoom: {
751
739
  followedBy: Set<import("../types").SocketId>;
752
740
  isCropping: boolean;
753
741
  croppingElementId: string | null;
754
- searchMatches: readonly {
755
- id: string;
756
- focus: boolean;
757
- matchedLines: {
758
- offsetX: number;
759
- offsetY: number;
760
- width: number;
761
- height: number;
762
- }[];
763
- }[];
742
+ searchMatches: Readonly<{
743
+ focusedId: string | null;
744
+ matches: readonly import("../types").SearchMatch[];
745
+ }> | null;
746
+ activeLockedId: string | null;
747
+ lockedMultiSelections: {
748
+ [groupId: string]: true;
749
+ };
764
750
  };
765
751
  captureUpdate: "EVENTUALLY";
766
752
  };
@@ -801,7 +787,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
801
787
  errorMessage: import("react").ReactNode;
802
788
  activeEmbeddable: {
803
789
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
804
- state: "hover" | "active";
790
+ state: "active" | "hover";
805
791
  } | null;
806
792
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
807
793
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -809,7 +795,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
809
795
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
810
796
  isBindingEnabled: boolean;
811
797
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
812
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
798
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
813
799
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
814
800
  frameRendering: {
815
801
  enabled: boolean;
@@ -820,10 +806,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
820
806
  editingFrame: string | null;
821
807
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
822
808
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
823
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
824
809
  activeTool: {
825
810
  lastActiveTool: import("../types").ActiveTool | null;
826
811
  locked: boolean;
812
+ fromSelection: boolean;
827
813
  } & import("../types").ActiveTool;
828
814
  penMode: boolean;
829
815
  penDetected: boolean;
@@ -852,7 +838,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
852
838
  name: string | null;
853
839
  isResizing: boolean;
854
840
  isRotating: boolean;
855
- openMenu: "shape" | "canvas" | null;
841
+ openMenu: "canvas" | "shape" | null;
856
842
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
857
843
  openSidebar: {
858
844
  name: string;
@@ -862,7 +848,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
862
848
  name: "imageExport" | "help" | "jsonExport";
863
849
  } | {
864
850
  name: "ttd";
865
- tab: "text-to-diagram" | "mermaid";
851
+ tab: "mermaid" | "text-to-diagram";
866
852
  } | {
867
853
  name: "commandPalette";
868
854
  } | {
@@ -934,9 +920,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
934
920
  shown: true;
935
921
  data: import("../charts").Spreadsheet;
936
922
  };
937
- pendingImageElementId: string | null;
938
923
  showHyperlinkPopup: false | "editor" | "info";
939
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
924
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
940
925
  snapLines: readonly import("../snapping").SnapLine[];
941
926
  originSnapOffset: {
942
927
  x: number;
@@ -947,16 +932,14 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
947
932
  followedBy: Set<import("../types").SocketId>;
948
933
  isCropping: boolean;
949
934
  croppingElementId: string | null;
950
- searchMatches: readonly {
951
- id: string;
952
- focus: boolean;
953
- matchedLines: {
954
- offsetX: number;
955
- offsetY: number;
956
- width: number;
957
- height: number;
958
- }[];
959
- }[];
935
+ searchMatches: Readonly<{
936
+ focusedId: string | null;
937
+ matches: readonly import("../types").SearchMatch[];
938
+ }> | null;
939
+ activeLockedId: string | null;
940
+ lockedMultiSelections: {
941
+ [groupId: string]: true;
942
+ };
960
943
  };
961
944
  captureUpdate: "EVENTUALLY";
962
945
  };
@@ -992,7 +975,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
992
975
  errorMessage: import("react").ReactNode;
993
976
  activeEmbeddable: {
994
977
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
995
- state: "hover" | "active";
978
+ state: "active" | "hover";
996
979
  } | null;
997
980
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
998
981
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1000,7 +983,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1000
983
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1001
984
  isBindingEnabled: boolean;
1002
985
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1003
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
986
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1004
987
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1005
988
  frameRendering: {
1006
989
  enabled: boolean;
@@ -1011,10 +994,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1011
994
  editingFrame: string | null;
1012
995
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1013
996
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1014
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1015
997
  activeTool: {
1016
998
  lastActiveTool: import("../types").ActiveTool | null;
1017
999
  locked: boolean;
1000
+ fromSelection: boolean;
1018
1001
  } & import("../types").ActiveTool;
1019
1002
  penMode: boolean;
1020
1003
  penDetected: boolean;
@@ -1043,7 +1026,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1043
1026
  name: string | null;
1044
1027
  isResizing: boolean;
1045
1028
  isRotating: boolean;
1046
- openMenu: "shape" | "canvas" | null;
1029
+ openMenu: "canvas" | "shape" | null;
1047
1030
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1048
1031
  openSidebar: {
1049
1032
  name: string;
@@ -1053,7 +1036,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1053
1036
  name: "imageExport" | "help" | "jsonExport";
1054
1037
  } | {
1055
1038
  name: "ttd";
1056
- tab: "text-to-diagram" | "mermaid";
1039
+ tab: "mermaid" | "text-to-diagram";
1057
1040
  } | {
1058
1041
  name: "commandPalette";
1059
1042
  } | {
@@ -1125,9 +1108,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1125
1108
  shown: true;
1126
1109
  data: import("../charts").Spreadsheet;
1127
1110
  };
1128
- pendingImageElementId: string | null;
1129
1111
  showHyperlinkPopup: false | "editor" | "info";
1130
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1112
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1131
1113
  snapLines: readonly import("../snapping").SnapLine[];
1132
1114
  originSnapOffset: {
1133
1115
  x: number;
@@ -1138,16 +1120,14 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1138
1120
  followedBy: Set<import("../types").SocketId>;
1139
1121
  isCropping: boolean;
1140
1122
  croppingElementId: string | null;
1141
- searchMatches: readonly {
1142
- id: string;
1143
- focus: boolean;
1144
- matchedLines: {
1145
- offsetX: number;
1146
- offsetY: number;
1147
- width: number;
1148
- height: number;
1149
- }[];
1150
- }[];
1123
+ searchMatches: Readonly<{
1124
+ focusedId: string | null;
1125
+ matches: readonly import("../types").SearchMatch[];
1126
+ }> | null;
1127
+ activeLockedId: string | null;
1128
+ lockedMultiSelections: {
1129
+ [groupId: string]: true;
1130
+ };
1151
1131
  };
1152
1132
  captureUpdate: "EVENTUALLY";
1153
1133
  };
@@ -1175,7 +1155,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1175
1155
  errorMessage: import("react").ReactNode;
1176
1156
  activeEmbeddable: {
1177
1157
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1178
- state: "hover" | "active";
1158
+ state: "active" | "hover";
1179
1159
  } | null;
1180
1160
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1181
1161
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1183,7 +1163,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1183
1163
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1184
1164
  isBindingEnabled: boolean;
1185
1165
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1186
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1166
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1187
1167
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1188
1168
  frameRendering: {
1189
1169
  enabled: boolean;
@@ -1194,10 +1174,10 @@ export declare const actionZoomToFitSelectionInViewport: {
1194
1174
  editingFrame: string | null;
1195
1175
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1196
1176
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1197
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1198
1177
  activeTool: {
1199
1178
  lastActiveTool: import("../types").ActiveTool | null;
1200
1179
  locked: boolean;
1180
+ fromSelection: boolean;
1201
1181
  } & import("../types").ActiveTool;
1202
1182
  penMode: boolean;
1203
1183
  penDetected: boolean;
@@ -1226,7 +1206,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1226
1206
  name: string | null;
1227
1207
  isResizing: boolean;
1228
1208
  isRotating: boolean;
1229
- openMenu: "shape" | "canvas" | null;
1209
+ openMenu: "canvas" | "shape" | null;
1230
1210
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1231
1211
  openSidebar: {
1232
1212
  name: string;
@@ -1236,7 +1216,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1236
1216
  name: "imageExport" | "help" | "jsonExport";
1237
1217
  } | {
1238
1218
  name: "ttd";
1239
- tab: "text-to-diagram" | "mermaid";
1219
+ tab: "mermaid" | "text-to-diagram";
1240
1220
  } | {
1241
1221
  name: "commandPalette";
1242
1222
  } | {
@@ -1308,9 +1288,8 @@ export declare const actionZoomToFitSelectionInViewport: {
1308
1288
  shown: true;
1309
1289
  data: import("../charts").Spreadsheet;
1310
1290
  };
1311
- pendingImageElementId: string | null;
1312
1291
  showHyperlinkPopup: false | "editor" | "info";
1313
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1292
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1314
1293
  snapLines: readonly import("../snapping").SnapLine[];
1315
1294
  originSnapOffset: {
1316
1295
  x: number;
@@ -1321,16 +1300,14 @@ export declare const actionZoomToFitSelectionInViewport: {
1321
1300
  followedBy: Set<import("../types").SocketId>;
1322
1301
  isCropping: boolean;
1323
1302
  croppingElementId: string | null;
1324
- searchMatches: readonly {
1325
- id: string;
1326
- focus: boolean;
1327
- matchedLines: {
1328
- offsetX: number;
1329
- offsetY: number;
1330
- width: number;
1331
- height: number;
1332
- }[];
1333
- }[];
1303
+ searchMatches: Readonly<{
1304
+ focusedId: string | null;
1305
+ matches: readonly import("../types").SearchMatch[];
1306
+ }> | null;
1307
+ activeLockedId: string | null;
1308
+ lockedMultiSelections: {
1309
+ [groupId: string]: true;
1310
+ };
1334
1311
  };
1335
1312
  captureUpdate: "EVENTUALLY";
1336
1313
  };
@@ -1362,7 +1339,7 @@ export declare const actionZoomToFitSelection: {
1362
1339
  errorMessage: import("react").ReactNode;
1363
1340
  activeEmbeddable: {
1364
1341
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1365
- state: "hover" | "active";
1342
+ state: "active" | "hover";
1366
1343
  } | null;
1367
1344
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1368
1345
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1370,7 +1347,7 @@ export declare const actionZoomToFitSelection: {
1370
1347
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1371
1348
  isBindingEnabled: boolean;
1372
1349
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1373
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1350
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1374
1351
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1375
1352
  frameRendering: {
1376
1353
  enabled: boolean;
@@ -1381,10 +1358,10 @@ export declare const actionZoomToFitSelection: {
1381
1358
  editingFrame: string | null;
1382
1359
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1383
1360
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1384
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1385
1361
  activeTool: {
1386
1362
  lastActiveTool: import("../types").ActiveTool | null;
1387
1363
  locked: boolean;
1364
+ fromSelection: boolean;
1388
1365
  } & import("../types").ActiveTool;
1389
1366
  penMode: boolean;
1390
1367
  penDetected: boolean;
@@ -1413,7 +1390,7 @@ export declare const actionZoomToFitSelection: {
1413
1390
  name: string | null;
1414
1391
  isResizing: boolean;
1415
1392
  isRotating: boolean;
1416
- openMenu: "shape" | "canvas" | null;
1393
+ openMenu: "canvas" | "shape" | null;
1417
1394
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1418
1395
  openSidebar: {
1419
1396
  name: string;
@@ -1423,7 +1400,7 @@ export declare const actionZoomToFitSelection: {
1423
1400
  name: "imageExport" | "help" | "jsonExport";
1424
1401
  } | {
1425
1402
  name: "ttd";
1426
- tab: "text-to-diagram" | "mermaid";
1403
+ tab: "mermaid" | "text-to-diagram";
1427
1404
  } | {
1428
1405
  name: "commandPalette";
1429
1406
  } | {
@@ -1495,9 +1472,8 @@ export declare const actionZoomToFitSelection: {
1495
1472
  shown: true;
1496
1473
  data: import("../charts").Spreadsheet;
1497
1474
  };
1498
- pendingImageElementId: string | null;
1499
1475
  showHyperlinkPopup: false | "editor" | "info";
1500
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1476
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1501
1477
  snapLines: readonly import("../snapping").SnapLine[];
1502
1478
  originSnapOffset: {
1503
1479
  x: number;
@@ -1508,16 +1484,14 @@ export declare const actionZoomToFitSelection: {
1508
1484
  followedBy: Set<import("../types").SocketId>;
1509
1485
  isCropping: boolean;
1510
1486
  croppingElementId: string | null;
1511
- searchMatches: readonly {
1512
- id: string;
1513
- focus: boolean;
1514
- matchedLines: {
1515
- offsetX: number;
1516
- offsetY: number;
1517
- width: number;
1518
- height: number;
1519
- }[];
1520
- }[];
1487
+ searchMatches: Readonly<{
1488
+ focusedId: string | null;
1489
+ matches: readonly import("../types").SearchMatch[];
1490
+ }> | null;
1491
+ activeLockedId: string | null;
1492
+ lockedMultiSelections: {
1493
+ [groupId: string]: true;
1494
+ };
1521
1495
  };
1522
1496
  captureUpdate: "EVENTUALLY";
1523
1497
  };
@@ -1550,7 +1524,7 @@ export declare const actionZoomToFit: {
1550
1524
  errorMessage: import("react").ReactNode;
1551
1525
  activeEmbeddable: {
1552
1526
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1553
- state: "hover" | "active";
1527
+ state: "active" | "hover";
1554
1528
  } | null;
1555
1529
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1556
1530
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1558,7 +1532,7 @@ export declare const actionZoomToFit: {
1558
1532
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1559
1533
  isBindingEnabled: boolean;
1560
1534
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1561
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1535
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1562
1536
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1563
1537
  frameRendering: {
1564
1538
  enabled: boolean;
@@ -1569,10 +1543,10 @@ export declare const actionZoomToFit: {
1569
1543
  editingFrame: string | null;
1570
1544
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1571
1545
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1572
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1573
1546
  activeTool: {
1574
1547
  lastActiveTool: import("../types").ActiveTool | null;
1575
1548
  locked: boolean;
1549
+ fromSelection: boolean;
1576
1550
  } & import("../types").ActiveTool;
1577
1551
  penMode: boolean;
1578
1552
  penDetected: boolean;
@@ -1601,7 +1575,7 @@ export declare const actionZoomToFit: {
1601
1575
  name: string | null;
1602
1576
  isResizing: boolean;
1603
1577
  isRotating: boolean;
1604
- openMenu: "shape" | "canvas" | null;
1578
+ openMenu: "canvas" | "shape" | null;
1605
1579
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1606
1580
  openSidebar: {
1607
1581
  name: string;
@@ -1611,7 +1585,7 @@ export declare const actionZoomToFit: {
1611
1585
  name: "imageExport" | "help" | "jsonExport";
1612
1586
  } | {
1613
1587
  name: "ttd";
1614
- tab: "text-to-diagram" | "mermaid";
1588
+ tab: "mermaid" | "text-to-diagram";
1615
1589
  } | {
1616
1590
  name: "commandPalette";
1617
1591
  } | {
@@ -1683,9 +1657,8 @@ export declare const actionZoomToFit: {
1683
1657
  shown: true;
1684
1658
  data: import("../charts").Spreadsheet;
1685
1659
  };
1686
- pendingImageElementId: string | null;
1687
1660
  showHyperlinkPopup: false | "editor" | "info";
1688
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1661
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1689
1662
  snapLines: readonly import("../snapping").SnapLine[];
1690
1663
  originSnapOffset: {
1691
1664
  x: number;
@@ -1696,16 +1669,14 @@ export declare const actionZoomToFit: {
1696
1669
  followedBy: Set<import("../types").SocketId>;
1697
1670
  isCropping: boolean;
1698
1671
  croppingElementId: string | null;
1699
- searchMatches: readonly {
1700
- id: string;
1701
- focus: boolean;
1702
- matchedLines: {
1703
- offsetX: number;
1704
- offsetY: number;
1705
- width: number;
1706
- height: number;
1707
- }[];
1708
- }[];
1672
+ searchMatches: Readonly<{
1673
+ focusedId: string | null;
1674
+ matches: readonly import("../types").SearchMatch[];
1675
+ }> | null;
1676
+ activeLockedId: string | null;
1677
+ lockedMultiSelections: {
1678
+ [groupId: string]: true;
1679
+ };
1709
1680
  };
1710
1681
  captureUpdate: "EVENTUALLY";
1711
1682
  };
@@ -1735,7 +1706,7 @@ export declare const actionToggleTheme: {
1735
1706
  errorMessage: import("react").ReactNode;
1736
1707
  activeEmbeddable: {
1737
1708
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1738
- state: "hover" | "active";
1709
+ state: "active" | "hover";
1739
1710
  } | null;
1740
1711
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1741
1712
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1743,7 +1714,7 @@ export declare const actionToggleTheme: {
1743
1714
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1744
1715
  isBindingEnabled: boolean;
1745
1716
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1746
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1717
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1747
1718
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1748
1719
  frameRendering: {
1749
1720
  enabled: boolean;
@@ -1754,10 +1725,10 @@ export declare const actionToggleTheme: {
1754
1725
  editingFrame: string | null;
1755
1726
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1756
1727
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1757
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1758
1728
  activeTool: {
1759
1729
  lastActiveTool: import("../types").ActiveTool | null;
1760
1730
  locked: boolean;
1731
+ fromSelection: boolean;
1761
1732
  } & import("../types").ActiveTool;
1762
1733
  penMode: boolean;
1763
1734
  penDetected: boolean;
@@ -1791,7 +1762,7 @@ export declare const actionToggleTheme: {
1791
1762
  zoom: Readonly<{
1792
1763
  value: import("../types").NormalizedZoomValue;
1793
1764
  }>;
1794
- openMenu: "shape" | "canvas" | null;
1765
+ openMenu: "canvas" | "shape" | null;
1795
1766
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1796
1767
  openSidebar: {
1797
1768
  name: string;
@@ -1801,7 +1772,7 @@ export declare const actionToggleTheme: {
1801
1772
  name: "imageExport" | "help" | "jsonExport";
1802
1773
  } | {
1803
1774
  name: "ttd";
1804
- tab: "text-to-diagram" | "mermaid";
1775
+ tab: "mermaid" | "text-to-diagram";
1805
1776
  } | {
1806
1777
  name: "commandPalette";
1807
1778
  } | {
@@ -1872,9 +1843,8 @@ export declare const actionToggleTheme: {
1872
1843
  shown: true;
1873
1844
  data: import("../charts").Spreadsheet;
1874
1845
  };
1875
- pendingImageElementId: string | null;
1876
1846
  showHyperlinkPopup: false | "editor" | "info";
1877
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1847
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1878
1848
  snapLines: readonly import("../snapping").SnapLine[];
1879
1849
  originSnapOffset: {
1880
1850
  x: number;
@@ -1885,16 +1855,14 @@ export declare const actionToggleTheme: {
1885
1855
  followedBy: Set<import("../types").SocketId>;
1886
1856
  isCropping: boolean;
1887
1857
  croppingElementId: string | null;
1888
- searchMatches: readonly {
1889
- id: string;
1890
- focus: boolean;
1891
- matchedLines: {
1892
- offsetX: number;
1893
- offsetY: number;
1894
- width: number;
1895
- height: number;
1896
- }[];
1897
- }[];
1858
+ searchMatches: Readonly<{
1859
+ focusedId: string | null;
1860
+ matches: readonly import("../types").SearchMatch[];
1861
+ }> | null;
1862
+ activeLockedId: string | null;
1863
+ lockedMultiSelections: {
1864
+ [groupId: string]: true;
1865
+ };
1898
1866
  };
1899
1867
  captureUpdate: "EVENTUALLY";
1900
1868
  };
@@ -1917,6 +1885,7 @@ export declare const actionToggleEraserTool: {
1917
1885
  activeTool: {
1918
1886
  lastActiveTool: import("../types").ActiveTool | null;
1919
1887
  locked: boolean;
1888
+ fromSelection: boolean;
1920
1889
  } & import("../types").ActiveTool;
1921
1890
  contextMenu: {
1922
1891
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -1932,7 +1901,7 @@ export declare const actionToggleEraserTool: {
1932
1901
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1933
1902
  isBindingEnabled: boolean;
1934
1903
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1935
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1904
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1936
1905
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1937
1906
  frameRendering: {
1938
1907
  enabled: boolean;
@@ -1943,7 +1912,6 @@ export declare const actionToggleEraserTool: {
1943
1912
  editingFrame: string | null;
1944
1913
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1945
1914
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1946
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1947
1915
  penMode: boolean;
1948
1916
  penDetected: boolean;
1949
1917
  exportBackground: boolean;
@@ -1976,7 +1944,7 @@ export declare const actionToggleEraserTool: {
1976
1944
  zoom: Readonly<{
1977
1945
  value: import("../types").NormalizedZoomValue;
1978
1946
  }>;
1979
- openMenu: "shape" | "canvas" | null;
1947
+ openMenu: "canvas" | "shape" | null;
1980
1948
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1981
1949
  openSidebar: {
1982
1950
  name: string;
@@ -1986,7 +1954,7 @@ export declare const actionToggleEraserTool: {
1986
1954
  name: "imageExport" | "help" | "jsonExport";
1987
1955
  } | {
1988
1956
  name: "ttd";
1989
- tab: "text-to-diagram" | "mermaid";
1957
+ tab: "mermaid" | "text-to-diagram";
1990
1958
  } | {
1991
1959
  name: "commandPalette";
1992
1960
  } | {
@@ -2052,9 +2020,8 @@ export declare const actionToggleEraserTool: {
2052
2020
  shown: true;
2053
2021
  data: import("../charts").Spreadsheet;
2054
2022
  };
2055
- pendingImageElementId: string | null;
2056
2023
  showHyperlinkPopup: false | "editor" | "info";
2057
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2024
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2058
2025
  snapLines: readonly import("../snapping").SnapLine[];
2059
2026
  originSnapOffset: {
2060
2027
  x: number;
@@ -2065,16 +2032,14 @@ export declare const actionToggleEraserTool: {
2065
2032
  followedBy: Set<import("../types").SocketId>;
2066
2033
  isCropping: boolean;
2067
2034
  croppingElementId: string | null;
2068
- searchMatches: readonly {
2069
- id: string;
2070
- focus: boolean;
2071
- matchedLines: {
2072
- offsetX: number;
2073
- offsetY: number;
2074
- width: number;
2075
- height: number;
2076
- }[];
2077
- }[];
2035
+ searchMatches: Readonly<{
2036
+ focusedId: string | null;
2037
+ matches: readonly import("../types").SearchMatch[];
2038
+ }> | null;
2039
+ activeLockedId: string | null;
2040
+ lockedMultiSelections: {
2041
+ [groupId: string]: true;
2042
+ };
2078
2043
  };
2079
2044
  captureUpdate: "IMMEDIATELY";
2080
2045
  };
@@ -2082,10 +2047,185 @@ export declare const actionToggleEraserTool: {
2082
2047
  } & {
2083
2048
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2084
2049
  };
2050
+ export declare const actionToggleLassoTool: {
2051
+ name: "toggleLassoTool";
2052
+ label: string;
2053
+ icon: import("react/jsx-runtime").JSX.Element;
2054
+ trackEvent: {
2055
+ category: "toolbar";
2056
+ };
2057
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2058
+ appState: {
2059
+ selectedElementIds: {};
2060
+ selectedGroupIds: {};
2061
+ activeEmbeddable: null;
2062
+ activeTool: {
2063
+ lastActiveTool: import("../types").ActiveTool | null;
2064
+ locked: boolean;
2065
+ fromSelection: boolean;
2066
+ } & import("../types").ActiveTool;
2067
+ contextMenu: {
2068
+ items: import("../components/ContextMenu").ContextMenuItems;
2069
+ top: number;
2070
+ left: number;
2071
+ } | null;
2072
+ showWelcomeScreen: boolean;
2073
+ isLoading: boolean;
2074
+ errorMessage: import("react").ReactNode;
2075
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2076
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2077
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2078
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2079
+ isBindingEnabled: boolean;
2080
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2081
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2082
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2083
+ frameRendering: {
2084
+ enabled: boolean;
2085
+ name: boolean;
2086
+ outline: boolean;
2087
+ clip: boolean;
2088
+ };
2089
+ editingFrame: string | null;
2090
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2091
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2092
+ penMode: boolean;
2093
+ penDetected: boolean;
2094
+ exportBackground: boolean;
2095
+ exportEmbedScene: boolean;
2096
+ exportWithDarkMode: boolean;
2097
+ exportScale: number;
2098
+ currentItemStrokeColor: string;
2099
+ currentItemBackgroundColor: string;
2100
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2101
+ currentItemStrokeWidth: number;
2102
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2103
+ currentItemRoughness: number;
2104
+ currentItemOpacity: number;
2105
+ currentItemFontFamily: number;
2106
+ currentItemFontSize: number;
2107
+ currentItemTextAlign: string;
2108
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2109
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2110
+ currentHoveredFontFamily: number | null;
2111
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2112
+ currentItemArrowType: "round" | "sharp" | "elbow";
2113
+ viewBackgroundColor: string;
2114
+ scrollX: number;
2115
+ scrollY: number;
2116
+ cursorButton: "up" | "down";
2117
+ scrolledOutside: boolean;
2118
+ name: string | null;
2119
+ isResizing: boolean;
2120
+ isRotating: boolean;
2121
+ zoom: Readonly<{
2122
+ value: import("../types").NormalizedZoomValue;
2123
+ }>;
2124
+ openMenu: "canvas" | "shape" | null;
2125
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2126
+ openSidebar: {
2127
+ name: string;
2128
+ tab?: string | undefined;
2129
+ } | null;
2130
+ openDialog: {
2131
+ name: "imageExport" | "help" | "jsonExport";
2132
+ } | {
2133
+ name: "ttd";
2134
+ tab: "mermaid" | "text-to-diagram";
2135
+ } | {
2136
+ name: "commandPalette";
2137
+ } | {
2138
+ name: "elementLinkSelector";
2139
+ sourceElementId: string;
2140
+ } | null;
2141
+ defaultSidebarDockedPreference: boolean;
2142
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2143
+ hoveredElementIds: Readonly<{
2144
+ [id: string]: true;
2145
+ }>;
2146
+ previousSelectedElementIds: {
2147
+ [id: string]: true;
2148
+ };
2149
+ selectedElementsAreBeingDragged: boolean;
2150
+ shouldCacheIgnoreZoom: boolean;
2151
+ toast: {
2152
+ message: string;
2153
+ closable?: boolean | undefined;
2154
+ duration?: number | undefined;
2155
+ } | null;
2156
+ zenModeEnabled: boolean;
2157
+ theme: import("@excalidraw/element/types").Theme;
2158
+ gridSize: number;
2159
+ gridStep: number;
2160
+ gridModeEnabled: boolean;
2161
+ viewModeEnabled: boolean;
2162
+ editingGroupId: string | null;
2163
+ width: number;
2164
+ height: number;
2165
+ offsetTop: number;
2166
+ offsetLeft: number;
2167
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
2168
+ collaborators: Map<import("../types").SocketId, Readonly<{
2169
+ pointer?: import("../types").CollaboratorPointer | undefined;
2170
+ button?: "up" | "down" | undefined;
2171
+ selectedElementIds?: Readonly<{
2172
+ [id: string]: true;
2173
+ }> | undefined;
2174
+ username?: string | null | undefined;
2175
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2176
+ color?: {
2177
+ background: string;
2178
+ stroke: string;
2179
+ } | undefined;
2180
+ avatarUrl?: string | undefined;
2181
+ id?: string | undefined;
2182
+ socketId?: import("../types").SocketId | undefined;
2183
+ isCurrentUser?: boolean | undefined;
2184
+ isInCall?: boolean | undefined;
2185
+ isSpeaking?: boolean | undefined;
2186
+ isMuted?: boolean | undefined;
2187
+ }>>;
2188
+ stats: {
2189
+ open: boolean;
2190
+ panels: number;
2191
+ };
2192
+ currentChartType: import("@excalidraw/element/types").ChartType;
2193
+ pasteDialog: {
2194
+ shown: false;
2195
+ data: null;
2196
+ } | {
2197
+ shown: true;
2198
+ data: import("../charts").Spreadsheet;
2199
+ };
2200
+ showHyperlinkPopup: false | "editor" | "info";
2201
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2202
+ snapLines: readonly import("../snapping").SnapLine[];
2203
+ originSnapOffset: {
2204
+ x: number;
2205
+ y: number;
2206
+ } | null;
2207
+ objectsSnapModeEnabled: boolean;
2208
+ userToFollow: import("../types").UserToFollow | null;
2209
+ followedBy: Set<import("../types").SocketId>;
2210
+ isCropping: boolean;
2211
+ croppingElementId: string | null;
2212
+ searchMatches: Readonly<{
2213
+ focusedId: string | null;
2214
+ matches: readonly import("../types").SearchMatch[];
2215
+ }> | null;
2216
+ activeLockedId: string | null;
2217
+ lockedMultiSelections: {
2218
+ [groupId: string]: true;
2219
+ };
2220
+ };
2221
+ captureUpdate: "NEVER";
2222
+ };
2223
+ } & {
2224
+ keyTest?: undefined;
2225
+ };
2085
2226
  export declare const actionToggleHandTool: {
2086
2227
  name: "toggleHandTool";
2087
2228
  label: string;
2088
- paletteName: string;
2089
2229
  trackEvent: {
2090
2230
  category: "toolbar";
2091
2231
  };
@@ -2099,6 +2239,7 @@ export declare const actionToggleHandTool: {
2099
2239
  activeTool: {
2100
2240
  lastActiveTool: import("../types").ActiveTool | null;
2101
2241
  locked: boolean;
2242
+ fromSelection: boolean;
2102
2243
  } & import("../types").ActiveTool;
2103
2244
  contextMenu: {
2104
2245
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -2114,7 +2255,7 @@ export declare const actionToggleHandTool: {
2114
2255
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2115
2256
  isBindingEnabled: boolean;
2116
2257
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2117
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2258
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2118
2259
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2119
2260
  frameRendering: {
2120
2261
  enabled: boolean;
@@ -2125,7 +2266,6 @@ export declare const actionToggleHandTool: {
2125
2266
  editingFrame: string | null;
2126
2267
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2127
2268
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2128
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2129
2269
  penMode: boolean;
2130
2270
  penDetected: boolean;
2131
2271
  exportBackground: boolean;
@@ -2158,7 +2298,7 @@ export declare const actionToggleHandTool: {
2158
2298
  zoom: Readonly<{
2159
2299
  value: import("../types").NormalizedZoomValue;
2160
2300
  }>;
2161
- openMenu: "shape" | "canvas" | null;
2301
+ openMenu: "canvas" | "shape" | null;
2162
2302
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2163
2303
  openSidebar: {
2164
2304
  name: string;
@@ -2168,7 +2308,7 @@ export declare const actionToggleHandTool: {
2168
2308
  name: "imageExport" | "help" | "jsonExport";
2169
2309
  } | {
2170
2310
  name: "ttd";
2171
- tab: "text-to-diagram" | "mermaid";
2311
+ tab: "mermaid" | "text-to-diagram";
2172
2312
  } | {
2173
2313
  name: "commandPalette";
2174
2314
  } | {
@@ -2234,9 +2374,8 @@ export declare const actionToggleHandTool: {
2234
2374
  shown: true;
2235
2375
  data: import("../charts").Spreadsheet;
2236
2376
  };
2237
- pendingImageElementId: string | null;
2238
2377
  showHyperlinkPopup: false | "editor" | "info";
2239
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2378
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2240
2379
  snapLines: readonly import("../snapping").SnapLine[];
2241
2380
  originSnapOffset: {
2242
2381
  x: number;
@@ -2247,16 +2386,14 @@ export declare const actionToggleHandTool: {
2247
2386
  followedBy: Set<import("../types").SocketId>;
2248
2387
  isCropping: boolean;
2249
2388
  croppingElementId: string | null;
2250
- searchMatches: readonly {
2251
- id: string;
2252
- focus: boolean;
2253
- matchedLines: {
2254
- offsetX: number;
2255
- offsetY: number;
2256
- width: number;
2257
- height: number;
2258
- }[];
2259
- }[];
2389
+ searchMatches: Readonly<{
2390
+ focusedId: string | null;
2391
+ matches: readonly import("../types").SearchMatch[];
2392
+ }> | null;
2393
+ activeLockedId: string | null;
2394
+ lockedMultiSelections: {
2395
+ [groupId: string]: true;
2396
+ };
2260
2397
  };
2261
2398
  captureUpdate: "IMMEDIATELY";
2262
2399
  };