@excalidraw/excalidraw 0.18.0-432a46e → 0.18.0-4e0441e

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 (449) hide show
  1. package/dist/dev/chunk-CP5DND7P.js +7 -0
  2. package/dist/dev/chunk-CP5DND7P.js.map +7 -0
  3. package/dist/dev/{chunk-LMHBUWQS.js → chunk-LLUJPE5U.js} +62 -29
  4. package/dist/dev/chunk-LLUJPE5U.js.map +7 -0
  5. package/dist/dev/chunk-YMRX7R7U.js +5671 -0
  6. package/dist/dev/chunk-YMRX7R7U.js.map +7 -0
  7. package/dist/dev/data/{image-5HAY2PCR.js → image-L23D26XS.js} +3 -3
  8. package/dist/dev/index.css +997 -521
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +13994 -12296
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-OZCJJ2HN.js → en-YSPYSBUR.js} +4 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/chunk-A66AFZZU.js +7 -0
  16. package/dist/prod/chunk-HT4FKTIQ.js +4 -0
  17. package/dist/prod/chunk-RSFMSEP5.js +12 -0
  18. package/dist/prod/data/image-NWF7UX55.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-SFRQHD7K.js +1 -0
  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 +47 -7
  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 +21 -2
  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 +19 -6
  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} +77 -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 +58 -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 +11 -3
  51. package/dist/types/{packages/element → element}/src/newElement.d.ts +4 -3
  52. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  53. package/dist/types/{packages/element → element}/src/renderElement.d.ts +4 -1
  54. package/dist/types/{packages/element → element}/src/resizeElements.d.ts +5 -4
  55. package/dist/types/{packages/element → element}/src/selection.d.ts +11 -5
  56. package/dist/types/element/src/shape.d.ts +42 -0
  57. package/dist/types/{packages/element → element}/src/sizeHelpers.d.ts +2 -2
  58. package/dist/types/element/src/store.d.ts +237 -0
  59. package/dist/types/{packages/element → element}/src/textElement.d.ts +5 -3
  60. package/dist/types/{packages/element → element}/src/transformHandles.d.ts +1 -1
  61. package/dist/types/{packages/element → element}/src/typeChecks.d.ts +19 -1
  62. package/dist/types/{packages/element → element}/src/types.d.ts +15 -2
  63. package/dist/types/element/src/utils.d.ts +31 -0
  64. package/dist/types/{packages/element → element}/src/zindex.d.ts +1 -1
  65. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionAddToLibrary.d.ts +60 -54
  66. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionBoundText.d.ts +40 -36
  67. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionCanvas.d.ts +431 -228
  68. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionClipboard.d.ts +120 -106
  69. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionCropEditor.d.ts +20 -18
  70. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionDeleteSelected.d.ts +60 -53
  71. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionElementLink.d.ts +19 -17
  72. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionElementLock.d.ts +55 -53
  73. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionEmbeddable.d.ts +20 -18
  74. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionExport.d.ts +190 -172
  75. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionFinalize.d.ts +87 -42
  76. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionFrame.d.ts +127 -119
  77. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionGroup.d.ts +40 -36
  78. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionHistory.d.ts +1 -2
  79. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +718 -0
  80. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionLink.d.ts +19 -17
  81. package/dist/types/excalidraw/actions/actionMenu.d.ts +184 -0
  82. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionNavigate.d.ts +40 -36
  83. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionProperties.d.ts +320 -273
  84. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionSelectAll.d.ts +20 -18
  85. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionStyles.d.ts +20 -18
  86. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionToggleGridMode.d.ts +20 -18
  87. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionToggleObjectsSnapMode.d.ts +20 -18
  88. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +187 -0
  89. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  90. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionToggleStats.d.ts +20 -19
  91. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionToggleViewMode.d.ts +20 -19
  92. package/dist/types/{packages/excalidraw → excalidraw}/actions/actionToggleZenMode.d.ts +20 -19
  93. package/dist/types/{packages/excalidraw → excalidraw}/actions/index.d.ts +2 -2
  94. package/dist/types/{packages/excalidraw → excalidraw}/actions/types.d.ts +4 -3
  95. package/dist/types/{packages/excalidraw → excalidraw}/animated-trail.d.ts +7 -1
  96. package/dist/types/{packages/excalidraw → excalidraw}/appState.d.ts +24 -10
  97. package/dist/types/excalidraw/clipboard.d.ts +129 -0
  98. package/dist/types/{packages/excalidraw → excalidraw}/components/Actions.d.ts +17 -7
  99. package/dist/types/{packages/excalidraw → excalidraw}/components/App.d.ts +43 -25
  100. package/dist/types/{packages/excalidraw → excalidraw}/components/ButtonIcon.d.ts +1 -0
  101. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/ColorInput.d.ts +2 -1
  102. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/ColorPicker.d.ts +6 -1
  103. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/CustomColorList.d.ts +1 -1
  104. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +7 -0
  105. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/Picker.d.ts +4 -3
  106. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/PickerColorList.d.ts +3 -3
  107. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +9 -0
  108. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/TopPicks.d.ts +1 -1
  109. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/colorPickerUtils.d.ts +2 -2
  110. package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  111. package/dist/types/{packages/excalidraw → excalidraw}/components/CommandPalette/CommandPalette.d.ts +1 -0
  112. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  113. package/dist/types/{packages/excalidraw → excalidraw}/components/ElementLinkDialog.d.ts +4 -3
  114. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  115. package/dist/types/{packages/excalidraw → excalidraw}/components/ExcalidrawLogo.d.ts +1 -1
  116. package/dist/types/{packages/excalidraw → excalidraw}/components/FontPicker/FontPicker.d.ts +2 -1
  117. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +8 -0
  118. package/dist/types/excalidraw/components/InlineIcon.d.ts +5 -0
  119. package/dist/types/{packages/excalidraw → excalidraw}/components/LayerUI.d.ts +2 -1
  120. package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenuSection.d.ts +1 -1
  121. package/dist/types/{packages/excalidraw → excalidraw}/components/MobileMenu.d.ts +3 -5
  122. package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
  123. package/dist/types/{packages/excalidraw → excalidraw}/components/Popover.d.ts +2 -1
  124. package/dist/types/{packages/excalidraw → excalidraw}/components/PropertiesPopover.d.ts +1 -0
  125. package/dist/types/{packages/excalidraw/components/ButtonIconSelect.d.ts → excalidraw/components/RadioSelection.d.ts} +1 -1
  126. package/dist/types/excalidraw/components/Range.d.ts +8 -0
  127. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/Angle.d.ts +1 -1
  128. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/CanvasGrid.d.ts +1 -1
  129. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/Collapsible.d.ts +2 -1
  130. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/Dimension.d.ts +1 -1
  131. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/DragInput.d.ts +12 -2
  132. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/FontSize.d.ts +1 -1
  133. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/MultiAngle.d.ts +1 -1
  134. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/MultiDimension.d.ts +1 -1
  135. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/MultiFontSize.d.ts +1 -1
  136. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/MultiPosition.d.ts +1 -1
  137. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/Position.d.ts +1 -1
  138. package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/utils.d.ts +4 -11
  139. package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  140. package/dist/types/{packages/excalidraw → excalidraw}/components/TextField.d.ts +1 -0
  141. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  142. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  143. package/dist/types/{packages/excalidraw → excalidraw}/components/canvases/InteractiveCanvas.d.ts +1 -0
  144. package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  145. package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  146. package/dist/types/{packages/excalidraw → excalidraw}/components/hyperlink/Hyperlink.d.ts +3 -2
  147. package/dist/types/{packages/excalidraw → excalidraw}/components/hyperlink/helpers.d.ts +2 -1
  148. package/dist/types/{packages/excalidraw → excalidraw}/components/icons.d.ts +9 -0
  149. package/dist/types/excalidraw/components/shapes.d.ts +190 -0
  150. package/dist/types/{packages/excalidraw → excalidraw}/data/blob.d.ts +3 -7
  151. package/dist/types/{packages/excalidraw → excalidraw}/data/reconcile.d.ts +1 -0
  152. package/dist/types/{packages/excalidraw → excalidraw}/data/restore.d.ts +6 -1
  153. package/dist/types/{packages/excalidraw → excalidraw}/data/transform.d.ts +1 -1
  154. package/dist/types/{packages/excalidraw → excalidraw}/data/types.d.ts +4 -1
  155. package/dist/types/{packages/excalidraw → excalidraw}/editor-jotai.d.ts +6 -6
  156. package/dist/types/excalidraw/eraser/index.d.ts +12 -0
  157. package/dist/types/{packages/excalidraw → excalidraw}/fonts/Fonts.d.ts +1 -1
  158. package/dist/types/excalidraw/history.d.ts +48 -0
  159. package/dist/types/{packages/excalidraw → excalidraw}/hooks/useEmitter.d.ts +1 -1
  160. package/dist/types/{packages/excalidraw → excalidraw}/hooks/useLibraryItemSvg.d.ts +1 -1
  161. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  162. package/dist/types/{packages/excalidraw → excalidraw}/index.d.ts +11 -10
  163. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  164. package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
  165. package/dist/types/excalidraw/renderer/helpers.d.ts +18 -0
  166. package/dist/types/excalidraw/renderer/staticScene.d.ts +14 -0
  167. package/dist/types/{packages/excalidraw → excalidraw}/scene/Renderer.d.ts +1 -2
  168. package/dist/types/excalidraw/scene/index.d.ts +4 -0
  169. package/dist/types/{packages/excalidraw → excalidraw}/scene/scrollbars.d.ts +2 -3
  170. package/dist/types/{packages/excalidraw → excalidraw}/scene/types.d.ts +2 -0
  171. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  172. package/dist/types/{packages/excalidraw → excalidraw}/snapping.d.ts +2 -2
  173. package/dist/types/{packages/excalidraw → excalidraw}/types.d.ts +48 -17
  174. package/dist/types/{packages/excalidraw → excalidraw}/wysiwyg/textWysiwyg.d.ts +3 -1
  175. package/dist/types/{packages/math → math}/src/angle.d.ts +2 -0
  176. package/dist/types/math/src/constants.d.ts +3 -0
  177. package/dist/types/math/src/curve.d.ts +74 -0
  178. package/dist/types/{packages/math → math}/src/index.d.ts +1 -0
  179. package/dist/types/{packages/math → math}/src/point.d.ts +1 -1
  180. package/dist/types/{packages/math → math}/src/polygon.d.ts +1 -0
  181. package/dist/types/{packages/math → math}/src/rectangle.d.ts +2 -0
  182. package/dist/types/{packages/math → math}/src/segment.d.ts +2 -1
  183. package/dist/types/{packages/math → math}/src/types.d.ts +1 -0
  184. package/dist/types/{packages/math → math}/src/vector.d.ts +8 -2
  185. package/dist/types/{packages/utils → utils}/src/bbox.d.ts +1 -1
  186. package/dist/types/{packages/utils → utils}/src/index.d.ts +1 -1
  187. package/dist/types/{packages/utils → utils}/src/withinBounds.d.ts +1 -1
  188. package/history.ts +146 -109
  189. package/package.json +31 -11
  190. package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
  191. package/dist/dev/chunk-S7W4OWSF.js +0 -18442
  192. package/dist/dev/chunk-S7W4OWSF.js.map +0 -7
  193. package/dist/dev/chunk-ZG3EI5XS.js +0 -7
  194. package/dist/dev/chunk-ZG3EI5XS.js.map +0 -7
  195. package/dist/prod/chunk-6U3AYISY.js +0 -12
  196. package/dist/prod/chunk-LRITYP5X.js +0 -31
  197. package/dist/prod/chunk-U24AOZ3B.js +0 -7
  198. package/dist/prod/data/image-W3GRS73V.js +0 -1
  199. package/dist/prod/locales/en-B4ZKOASM.js +0 -1
  200. package/dist/types/excalidraw-app/app_constants.d.ts +0 -44
  201. package/dist/types/packages/element/src/Shape.d.ts +0 -17
  202. package/dist/types/packages/element/src/ShapeCache.d.ts +0 -25
  203. package/dist/types/packages/element/src/align.d.ts +0 -7
  204. package/dist/types/packages/element/src/collision.d.ts +0 -26
  205. package/dist/types/packages/element/src/distance.d.ts +0 -3
  206. package/dist/types/packages/element/src/index.d.ts +0 -16
  207. package/dist/types/packages/element/src/shapes.d.ts +0 -23
  208. package/dist/types/packages/element/src/utils.d.ts +0 -21
  209. package/dist/types/packages/excalidraw/actions/actionLinearEditor.d.ts +0 -192
  210. package/dist/types/packages/excalidraw/actions/actionMenu.d.ts +0 -554
  211. package/dist/types/packages/excalidraw/actions/actionToggleSearchMenu.d.ts +0 -357
  212. package/dist/types/packages/excalidraw/clipboard.d.ts +0 -66
  213. package/dist/types/packages/excalidraw/components/ButtonSelect.d.ts +0 -9
  214. package/dist/types/packages/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +0 -8
  215. package/dist/types/packages/excalidraw/components/ColorPicker/ShadeList.d.ts +0 -8
  216. package/dist/types/packages/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +0 -6
  217. package/dist/types/packages/excalidraw/components/InlineIcon.d.ts +0 -3
  218. package/dist/types/packages/excalidraw/components/Range.d.ts +0 -8
  219. package/dist/types/packages/excalidraw/components/shapes.d.ts +0 -62
  220. package/dist/types/packages/excalidraw/history.d.ts +0 -40
  221. package/dist/types/packages/excalidraw/renderer/helpers.d.ts +0 -13
  222. package/dist/types/packages/excalidraw/renderer/staticScene.d.ts +0 -11
  223. package/dist/types/packages/excalidraw/scene/index.d.ts +0 -4
  224. package/dist/types/packages/excalidraw/store.d.ts +0 -129
  225. package/dist/types/packages/excalidraw/tests/fixtures/diagramFixture.d.ts +0 -504
  226. package/dist/types/packages/excalidraw/tests/fixtures/elementFixture.d.ts +0 -7
  227. package/dist/types/packages/excalidraw/tests/helpers/api.d.ts +0 -89
  228. package/dist/types/packages/excalidraw/tests/helpers/colorize.d.ts +0 -2
  229. package/dist/types/packages/excalidraw/tests/helpers/mocks.d.ts +0 -5
  230. package/dist/types/packages/excalidraw/tests/helpers/polyfills.d.ts +0 -36
  231. package/dist/types/packages/excalidraw/tests/helpers/ui.d.ts +0 -189
  232. package/dist/types/packages/excalidraw/tests/queries/dom.d.ts +0 -2
  233. package/dist/types/packages/excalidraw/tests/queries/toolQueries.d.ts +0 -2
  234. package/dist/types/packages/excalidraw/tests/test-utils.d.ts +0 -139
  235. package/dist/types/packages/excalidraw/visualdebug.d.ts +0 -41
  236. package/dist/types/packages/math/src/curve.d.ts +0 -40
  237. package/dist/types/packages/utils/src/collision.d.ts +0 -8
  238. /package/dist/dev/data/{image-5HAY2PCR.js.map → image-L23D26XS.js.map} +0 -0
  239. /package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-YSPYSBUR.js.map} +0 -0
  240. /package/dist/types/{packages/common → common}/src/binary-heap.d.ts +0 -0
  241. /package/dist/types/{packages/common → common}/src/keys.d.ts +0 -0
  242. /package/dist/types/{packages/common → common}/src/points.d.ts +0 -0
  243. /package/dist/types/{packages/common → common}/src/promise-pool.d.ts +0 -0
  244. /package/dist/types/{packages/common → common}/src/queue.d.ts +0 -0
  245. /package/dist/types/{packages/common → common}/src/random.d.ts +0 -0
  246. /package/dist/types/{packages/common → common}/src/url.d.ts +0 -0
  247. /package/dist/types/{packages/element → element}/src/comparisons.d.ts +0 -0
  248. /package/dist/types/{packages/element → element}/src/containerCache.d.ts +0 -0
  249. /package/dist/types/{packages/element → element}/src/elementLink.d.ts +0 -0
  250. /package/dist/types/{packages/element → element}/src/embeddable.d.ts +0 -0
  251. /package/dist/types/{packages/element → element}/src/image.d.ts +0 -0
  252. /package/dist/types/{packages/element → element}/src/resizeTest.d.ts +0 -0
  253. /package/dist/types/{packages/element → element}/src/showSelectedShapeActions.d.ts +0 -0
  254. /package/dist/types/{packages/element → element}/src/sortElements.d.ts +0 -0
  255. /package/dist/types/{packages/element → element}/src/textMeasurements.d.ts +0 -0
  256. /package/dist/types/{packages/element → element}/src/textWrapping.d.ts +0 -0
  257. /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionAlign.d.ts +0 -0
  258. /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionDistribute.d.ts +0 -0
  259. /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionDuplicateSelection.d.ts +0 -0
  260. /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionFlip.d.ts +0 -0
  261. /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionTextAutoResize.d.ts +0 -0
  262. /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionZindex.d.ts +0 -0
  263. /package/dist/types/{packages/excalidraw → excalidraw}/actions/manager.d.ts +0 -0
  264. /package/dist/types/{packages/excalidraw → excalidraw}/actions/register.d.ts +0 -0
  265. /package/dist/types/{packages/excalidraw → excalidraw}/actions/shortcuts.d.ts +0 -0
  266. /package/dist/types/{packages/excalidraw → excalidraw}/analytics.d.ts +0 -0
  267. /package/dist/types/{packages/excalidraw → excalidraw}/animation-frame-handler.d.ts +0 -0
  268. /package/dist/types/{packages/excalidraw → excalidraw}/charts.d.ts +0 -0
  269. /package/dist/types/{packages/excalidraw → excalidraw}/clients.d.ts +0 -0
  270. /package/dist/types/{packages/excalidraw → excalidraw}/components/ActiveConfirmDialog.d.ts +0 -0
  271. /package/dist/types/{packages/excalidraw → excalidraw}/components/Avatar.d.ts +0 -0
  272. /package/dist/types/{packages/excalidraw → excalidraw}/components/BraveMeasureTextError.d.ts +0 -0
  273. /package/dist/types/{packages/excalidraw → excalidraw}/components/Button.d.ts +0 -0
  274. /package/dist/types/{packages/excalidraw → excalidraw}/components/ButtonIconCycle.d.ts +0 -0
  275. /package/dist/types/{packages/excalidraw → excalidraw}/components/ButtonSeparator.d.ts +0 -0
  276. /package/dist/types/{packages/excalidraw → excalidraw}/components/Card.d.ts +0 -0
  277. /package/dist/types/{packages/excalidraw → excalidraw}/components/CheckboxItem.d.ts +0 -0
  278. /package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/PickerHeading.d.ts +0 -0
  279. /package/dist/types/{packages/excalidraw → excalidraw}/components/CommandPalette/defaultCommandPaletteItems.d.ts +0 -0
  280. /package/dist/types/{packages/excalidraw → excalidraw}/components/CommandPalette/types.d.ts +0 -0
  281. /package/dist/types/{packages/excalidraw → excalidraw}/components/ConfirmDialog.d.ts +0 -0
  282. /package/dist/types/{packages/excalidraw → excalidraw}/components/ContextMenu.d.ts +0 -0
  283. /package/dist/types/{packages/excalidraw → excalidraw}/components/DarkModeToggle.d.ts +0 -0
  284. /package/dist/types/{packages/excalidraw → excalidraw}/components/DefaultSidebar.d.ts +0 -0
  285. /package/dist/types/{packages/excalidraw → excalidraw}/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -0
  286. /package/dist/types/{packages/excalidraw → excalidraw}/components/Dialog.d.ts +0 -0
  287. /package/dist/types/{packages/excalidraw → excalidraw}/components/DialogActionButton.d.ts +0 -0
  288. /package/dist/types/{packages/excalidraw → excalidraw}/components/ElementCanvasButtons.d.ts +0 -0
  289. /package/dist/types/{packages/excalidraw → excalidraw}/components/ErrorDialog.d.ts +0 -0
  290. /package/dist/types/{packages/excalidraw → excalidraw}/components/EyeDropper.d.ts +0 -0
  291. /package/dist/types/{packages/excalidraw → excalidraw}/components/FilledButton.d.ts +0 -0
  292. /package/dist/types/{packages/excalidraw → excalidraw}/components/FixedSideContainer.d.ts +0 -0
  293. /package/dist/types/{packages/excalidraw → excalidraw}/components/FollowMode/FollowMode.d.ts +0 -0
  294. /package/dist/types/{packages/excalidraw → excalidraw}/components/FontPicker/FontPickerList.d.ts +0 -0
  295. /package/dist/types/{packages/excalidraw → excalidraw}/components/FontPicker/keyboardNavHandlers.d.ts +0 -0
  296. /package/dist/types/{packages/excalidraw → excalidraw}/components/HandButton.d.ts +0 -0
  297. /package/dist/types/{packages/excalidraw → excalidraw}/components/HelpButton.d.ts +0 -0
  298. /package/dist/types/{packages/excalidraw → excalidraw}/components/HelpDialog.d.ts +0 -0
  299. /package/dist/types/{packages/excalidraw → excalidraw}/components/HintViewer.d.ts +0 -0
  300. /package/dist/types/{packages/excalidraw → excalidraw}/components/IconPicker.d.ts +0 -0
  301. /package/dist/types/{packages/excalidraw → excalidraw}/components/ImageExportDialog.d.ts +0 -0
  302. /package/dist/types/{packages/excalidraw → excalidraw}/components/InitializeApp.d.ts +0 -0
  303. /package/dist/types/{packages/excalidraw → excalidraw}/components/Island.d.ts +0 -0
  304. /package/dist/types/{packages/excalidraw → excalidraw}/components/JSONExportDialog.d.ts +0 -0
  305. /package/dist/types/{packages/excalidraw → excalidraw}/components/LaserPointerButton.d.ts +0 -0
  306. /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenu.d.ts +0 -0
  307. /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenuBrowseButton.d.ts +0 -0
  308. /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenuControlButtons.d.ts +0 -0
  309. /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenuHeaderContent.d.ts +0 -0
  310. /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenuItems.d.ts +0 -0
  311. /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryUnit.d.ts +0 -0
  312. /package/dist/types/{packages/excalidraw → excalidraw}/components/LoadingMessage.d.ts +0 -0
  313. /package/dist/types/{packages/excalidraw → excalidraw}/components/LockButton.d.ts +0 -0
  314. /package/dist/types/{packages/excalidraw → excalidraw}/components/MagicButton.d.ts +0 -0
  315. /package/dist/types/{packages/excalidraw → excalidraw}/components/Modal.d.ts +0 -0
  316. /package/dist/types/{packages/excalidraw → excalidraw}/components/OverwriteConfirm/OverwriteConfirm.d.ts +0 -0
  317. /package/dist/types/{packages/excalidraw → excalidraw}/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +0 -0
  318. /package/dist/types/{packages/excalidraw → excalidraw}/components/OverwriteConfirm/OverwriteConfirmState.d.ts +0 -0
  319. /package/dist/types/{packages/excalidraw → excalidraw}/components/Paragraph.d.ts +0 -0
  320. /package/dist/types/{packages/excalidraw → excalidraw}/components/PasteChartDialog.d.ts +0 -0
  321. /package/dist/types/{packages/excalidraw → excalidraw}/components/PenModeButton.d.ts +0 -0
  322. /package/dist/types/{packages/excalidraw → excalidraw}/components/ProjectName.d.ts +0 -0
  323. /package/dist/types/{packages/excalidraw → excalidraw}/components/PublishLibrary.d.ts +0 -0
  324. /package/dist/types/{packages/excalidraw → excalidraw}/components/QuickSearch.d.ts +0 -0
  325. /package/dist/types/{packages/excalidraw → excalidraw}/components/RadioGroup.d.ts +0 -0
  326. /package/dist/types/{packages/excalidraw → excalidraw}/components/SVGLayer.d.ts +0 -0
  327. /package/dist/types/{packages/excalidraw → excalidraw}/components/ScrollableList.d.ts +0 -0
  328. /package/dist/types/{packages/excalidraw → excalidraw}/components/SearchMenu.d.ts +0 -0
  329. /package/dist/types/{packages/excalidraw → excalidraw}/components/Section.d.ts +0 -0
  330. /package/dist/types/{packages/excalidraw → excalidraw}/components/ShareableLinkDialog.d.ts +0 -0
  331. /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/Sidebar.d.ts +0 -0
  332. /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarHeader.d.ts +0 -0
  333. /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarTab.d.ts +0 -0
  334. /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarTabTrigger.d.ts +0 -0
  335. /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarTabTriggers.d.ts +0 -0
  336. /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarTabs.d.ts +0 -0
  337. /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarTrigger.d.ts +0 -0
  338. /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/common.d.ts +0 -0
  339. /package/dist/types/{packages/excalidraw → excalidraw}/components/Spinner.d.ts +0 -0
  340. /package/dist/types/{packages/excalidraw → excalidraw}/components/Stack.d.ts +0 -0
  341. /package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/index.d.ts +0 -0
  342. /package/dist/types/{packages/excalidraw → excalidraw}/components/Switch.d.ts +0 -0
  343. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/MermaidToExcalidraw.d.ts +0 -0
  344. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialog.d.ts +0 -0
  345. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogInput.d.ts +0 -0
  346. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogOutput.d.ts +0 -0
  347. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogPanel.d.ts +0 -0
  348. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogPanels.d.ts +0 -0
  349. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +0 -0
  350. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogTab.d.ts +0 -0
  351. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogTabTrigger.d.ts +0 -0
  352. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogTabTriggers.d.ts +0 -0
  353. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogTabs.d.ts +0 -0
  354. /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/common.d.ts +0 -0
  355. /package/dist/types/{packages/excalidraw → excalidraw}/components/Toast.d.ts +0 -0
  356. /package/dist/types/{packages/excalidraw → excalidraw}/components/ToolButton.d.ts +0 -0
  357. /package/dist/types/{packages/excalidraw → excalidraw}/components/Tooltip.d.ts +0 -0
  358. /package/dist/types/{packages/excalidraw → excalidraw}/components/Trans.d.ts +0 -0
  359. /package/dist/types/{packages/excalidraw → excalidraw}/components/UserList.d.ts +0 -0
  360. /package/dist/types/{packages/excalidraw → excalidraw}/components/canvases/NewElementCanvas.d.ts +0 -0
  361. /package/dist/types/{packages/excalidraw → excalidraw}/components/canvases/StaticCanvas.d.ts +0 -0
  362. /package/dist/types/{packages/excalidraw → excalidraw}/components/canvases/index.d.ts +0 -0
  363. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuGroup.d.ts +0 -0
  364. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuItem.d.ts +0 -0
  365. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuItemContent.d.ts +0 -0
  366. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -0
  367. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuItemCustom.d.ts +0 -0
  368. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuItemLink.d.ts +0 -0
  369. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuSeparator.d.ts +0 -0
  370. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuTrigger.d.ts +0 -0
  371. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/common.d.ts +0 -0
  372. /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/dropdownMenuUtils.d.ts +0 -0
  373. /package/dist/types/{packages/excalidraw → excalidraw}/components/footer/Footer.d.ts +0 -0
  374. /package/dist/types/{packages/excalidraw → excalidraw}/components/footer/FooterCenter.d.ts +0 -0
  375. /package/dist/types/{packages/excalidraw → excalidraw}/components/hoc/withInternalFallback.d.ts +0 -0
  376. /package/dist/types/{packages/excalidraw → excalidraw}/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -0
  377. /package/dist/types/{packages/excalidraw → excalidraw}/components/main-menu/DefaultItems.d.ts +0 -0
  378. /package/dist/types/{packages/excalidraw → excalidraw}/components/main-menu/MainMenu.d.ts +0 -0
  379. /package/dist/types/{packages/excalidraw → excalidraw}/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -0
  380. /package/dist/types/{packages/excalidraw → excalidraw}/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -0
  381. /package/dist/types/{packages/excalidraw → excalidraw}/components/welcome-screen/WelcomeScreen.d.ts +0 -0
  382. /package/dist/types/{packages/excalidraw → excalidraw}/context/tunnels.d.ts +0 -0
  383. /package/dist/types/{packages/excalidraw → excalidraw}/context/ui-appState.d.ts +0 -0
  384. /package/dist/types/{packages/excalidraw → excalidraw}/cursor.d.ts +0 -0
  385. /package/dist/types/{packages/excalidraw → excalidraw}/data/EditorLocalStorage.d.ts +0 -0
  386. /package/dist/types/{packages/excalidraw → excalidraw}/data/ai/types.d.ts +0 -0
  387. /package/dist/types/{packages/excalidraw → excalidraw}/data/encode.d.ts +0 -0
  388. /package/dist/types/{packages/excalidraw → excalidraw}/data/encryption.d.ts +0 -0
  389. /package/dist/types/{packages/excalidraw → excalidraw}/data/filesystem.d.ts +0 -0
  390. /package/dist/types/{packages/excalidraw → excalidraw}/data/image.d.ts +0 -0
  391. /package/dist/types/{packages/excalidraw → excalidraw}/data/index.d.ts +0 -0
  392. /package/dist/types/{packages/excalidraw → excalidraw}/data/json.d.ts +0 -0
  393. /package/dist/types/{packages/excalidraw → excalidraw}/data/library.d.ts +0 -0
  394. /package/dist/types/{packages/excalidraw → excalidraw}/data/resave.d.ts +0 -0
  395. /package/dist/types/{packages/excalidraw → excalidraw}/deburr.d.ts +0 -0
  396. /package/dist/types/{packages/excalidraw → excalidraw}/errors.d.ts +0 -0
  397. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Cascadia/index.d.ts +0 -0
  398. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/ComicShanns/index.d.ts +0 -0
  399. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Emoji/index.d.ts +0 -0
  400. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/ExcalidrawFontFace.d.ts +0 -0
  401. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Excalifont/index.d.ts +0 -0
  402. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Helvetica/index.d.ts +0 -0
  403. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Liberation/index.d.ts +0 -0
  404. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Lilita/index.d.ts +0 -0
  405. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Nunito/index.d.ts +0 -0
  406. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Virgil/index.d.ts +0 -0
  407. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Xiaolai/index.d.ts +0 -0
  408. /package/dist/types/{packages/excalidraw → excalidraw}/fonts/index.d.ts +0 -0
  409. /package/dist/types/{packages/excalidraw → excalidraw}/gesture.d.ts +0 -0
  410. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useCallbackRefState.d.ts +0 -0
  411. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useCopiedIndicator.d.ts +0 -0
  412. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useCreatePortalContainer.d.ts +0 -0
  413. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useOutsideClick.d.ts +0 -0
  414. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useScrollPosition.d.ts +0 -0
  415. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useStable.d.ts +0 -0
  416. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useStableCallback.d.ts +0 -0
  417. /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useTransition.d.ts +0 -0
  418. /package/dist/types/{packages/excalidraw → excalidraw}/i18n.d.ts +0 -0
  419. /package/dist/types/{packages/excalidraw → excalidraw}/index-node.d.ts +0 -0
  420. /package/dist/types/{packages/excalidraw → excalidraw}/laser-trails.d.ts +0 -0
  421. /package/dist/types/{packages/excalidraw → excalidraw}/mermaid.d.ts +0 -0
  422. /package/dist/types/{packages/excalidraw → excalidraw}/polyfill.d.ts +0 -0
  423. /package/dist/types/{packages/excalidraw → excalidraw}/reactUtils.d.ts +0 -0
  424. /package/dist/types/{packages/excalidraw → excalidraw}/renderer/interactiveScene.d.ts +0 -0
  425. /package/dist/types/{packages/excalidraw → excalidraw}/renderer/renderNewElementScene.d.ts +0 -0
  426. /package/dist/types/{packages/excalidraw → excalidraw}/renderer/renderSnaps.d.ts +0 -0
  427. /package/dist/types/{packages/excalidraw → excalidraw}/renderer/roundRect.d.ts +0 -0
  428. /package/dist/types/{packages/excalidraw → excalidraw}/renderer/staticSvgScene.d.ts +0 -0
  429. /package/dist/types/{packages/excalidraw → excalidraw}/scene/export.d.ts +0 -0
  430. /package/dist/types/{packages/excalidraw → excalidraw}/scene/normalize.d.ts +0 -0
  431. /package/dist/types/{packages/excalidraw → excalidraw}/scene/scroll.d.ts +0 -0
  432. /package/dist/types/{packages/excalidraw → excalidraw}/scene/zoom.d.ts +0 -0
  433. /package/dist/types/{packages/excalidraw → excalidraw}/subset/harfbuzz/harfbuzz-bindings.d.ts +0 -0
  434. /package/dist/types/{packages/excalidraw → excalidraw}/subset/harfbuzz/harfbuzz-loader.d.ts +0 -0
  435. /package/dist/types/{packages/excalidraw → excalidraw}/subset/harfbuzz/harfbuzz-wasm.d.ts +0 -0
  436. /package/dist/types/{packages/excalidraw → excalidraw}/subset/subset-main.d.ts +0 -0
  437. /package/dist/types/{packages/excalidraw → excalidraw}/subset/subset-shared.chunk.d.ts +0 -0
  438. /package/dist/types/{packages/excalidraw → excalidraw}/subset/subset-worker.chunk.d.ts +0 -0
  439. /package/dist/types/{packages/excalidraw → excalidraw}/subset/woff2/woff2-bindings.d.ts +0 -0
  440. /package/dist/types/{packages/excalidraw → excalidraw}/subset/woff2/woff2-loader.d.ts +0 -0
  441. /package/dist/types/{packages/excalidraw → excalidraw}/subset/woff2/woff2-wasm.d.ts +0 -0
  442. /package/dist/types/{packages/excalidraw → excalidraw}/workers.d.ts +0 -0
  443. /package/dist/types/{packages/math → math}/src/ellipse.d.ts +0 -0
  444. /package/dist/types/{packages/math → math}/src/line.d.ts +0 -0
  445. /package/dist/types/{packages/math → math}/src/range.d.ts +0 -0
  446. /package/dist/types/{packages/math → math}/src/triangle.d.ts +0 -0
  447. /package/dist/types/{packages/math → math}/src/utils.d.ts +0 -0
  448. /package/dist/types/{packages/utils → utils}/src/export.d.ts +0 -0
  449. /package/dist/types/{packages/utils → utils}/src/shape.d.ts +0 -0
@@ -1,25 +1,23 @@
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) => {
12
11
  appState: any;
13
12
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
14
13
  };
15
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
14
+ PanelComponent: ({ elements, appState, updateData, appProps, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
16
15
  } & {
17
16
  keyTest?: undefined;
18
17
  };
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;
@@ -153,7 +137,12 @@ export declare const actionClearCanvas: {
153
137
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
154
138
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
155
139
  editingFrame: string | null;
140
+ preferredSelectionTool: {
141
+ type: "selection" | "lasso";
142
+ initialized: boolean;
143
+ };
156
144
  exportWithDarkMode: boolean;
145
+ exportScale: number;
157
146
  currentItemStrokeColor: string;
158
147
  currentItemBackgroundColor: string;
159
148
  currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
@@ -166,22 +155,28 @@ export declare const actionClearCanvas: {
166
155
  currentItemTextAlign: string;
167
156
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
168
157
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
158
+ currentHoveredFontFamily: number | null;
169
159
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
170
160
  currentItemArrowType: "round" | "sharp" | "elbow";
171
161
  cursorButton: "up" | "down";
172
162
  scrolledOutside: boolean;
173
163
  isResizing: boolean;
174
- openMenu: "shape" | "canvas" | null;
175
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
164
+ openMenu: "canvas" | null;
165
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
176
166
  openSidebar: {
177
167
  name: string;
178
168
  tab?: string | undefined;
179
169
  } | null;
180
170
  defaultSidebarDockedPreference: boolean;
181
171
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
172
+ hoveredElementIds: Readonly<{
173
+ [id: string]: true;
174
+ }>;
182
175
  previousSelectedElementIds: {
183
176
  [id: string]: true;
184
177
  };
178
+ selectedElementsAreBeingDragged: boolean;
179
+ shouldCacheIgnoreZoom: boolean;
185
180
  toast: {
186
181
  message: string;
187
182
  closable?: boolean | undefined;
@@ -194,8 +189,13 @@ export declare const actionClearCanvas: {
194
189
  x: number;
195
190
  y: number;
196
191
  } | null;
192
+ objectsSnapModeEnabled: boolean;
197
193
  userToFollow: import("../types").UserToFollow | null;
198
194
  followedBy: Set<import("../types").SocketId>;
195
+ lockedMultiSelections: {
196
+ [groupId: string]: true;
197
+ };
198
+ stylesPanelMode: "compact" | "full" | "mobile";
199
199
  };
200
200
  captureUpdate: "IMMEDIATELY";
201
201
  };
@@ -228,7 +228,7 @@ export declare const actionZoomIn: {
228
228
  errorMessage: import("react").ReactNode;
229
229
  activeEmbeddable: {
230
230
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
231
- state: "hover" | "active";
231
+ state: "active" | "hover";
232
232
  } | null;
233
233
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
234
234
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -236,7 +236,7 @@ export declare const actionZoomIn: {
236
236
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
237
237
  isBindingEnabled: boolean;
238
238
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
239
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
239
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
240
240
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
241
241
  frameRendering: {
242
242
  enabled: boolean;
@@ -247,11 +247,15 @@ export declare const actionZoomIn: {
247
247
  editingFrame: string | null;
248
248
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
249
249
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
250
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
251
250
  activeTool: {
252
251
  lastActiveTool: import("../types").ActiveTool | null;
253
252
  locked: boolean;
253
+ fromSelection: boolean;
254
254
  } & import("../types").ActiveTool;
255
+ preferredSelectionTool: {
256
+ type: "selection" | "lasso";
257
+ initialized: boolean;
258
+ };
255
259
  penMode: boolean;
256
260
  penDetected: boolean;
257
261
  exportBackground: boolean;
@@ -279,8 +283,8 @@ export declare const actionZoomIn: {
279
283
  name: string | null;
280
284
  isResizing: boolean;
281
285
  isRotating: boolean;
282
- openMenu: "shape" | "canvas" | null;
283
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
286
+ openMenu: "canvas" | null;
287
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
284
288
  openSidebar: {
285
289
  name: string;
286
290
  tab?: string | undefined;
@@ -289,7 +293,7 @@ export declare const actionZoomIn: {
289
293
  name: "imageExport" | "help" | "jsonExport";
290
294
  } | {
291
295
  name: "ttd";
292
- tab: "text-to-diagram" | "mermaid";
296
+ tab: "mermaid" | "text-to-diagram";
293
297
  } | {
294
298
  name: "commandPalette";
295
299
  } | {
@@ -361,9 +365,8 @@ export declare const actionZoomIn: {
361
365
  shown: true;
362
366
  data: import("../charts").Spreadsheet;
363
367
  };
364
- pendingImageElementId: string | null;
365
368
  showHyperlinkPopup: false | "editor" | "info";
366
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
369
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
367
370
  snapLines: readonly import("../snapping").SnapLine[];
368
371
  originSnapOffset: {
369
372
  x: number;
@@ -373,16 +376,15 @@ export declare const actionZoomIn: {
373
376
  followedBy: Set<import("../types").SocketId>;
374
377
  isCropping: boolean;
375
378
  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
- }[];
379
+ searchMatches: Readonly<{
380
+ focusedId: string | null;
381
+ matches: readonly import("../types").SearchMatch[];
382
+ }> | null;
383
+ activeLockedId: string | null;
384
+ lockedMultiSelections: {
385
+ [groupId: string]: true;
386
+ };
387
+ stylesPanelMode: "compact" | "full" | "mobile";
386
388
  };
387
389
  captureUpdate: "EVENTUALLY";
388
390
  };
@@ -417,7 +419,7 @@ export declare const actionZoomOut: {
417
419
  errorMessage: import("react").ReactNode;
418
420
  activeEmbeddable: {
419
421
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
420
- state: "hover" | "active";
422
+ state: "active" | "hover";
421
423
  } | null;
422
424
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
423
425
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -425,7 +427,7 @@ export declare const actionZoomOut: {
425
427
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
426
428
  isBindingEnabled: boolean;
427
429
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
428
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
430
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
429
431
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
430
432
  frameRendering: {
431
433
  enabled: boolean;
@@ -436,11 +438,15 @@ export declare const actionZoomOut: {
436
438
  editingFrame: string | null;
437
439
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
438
440
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
439
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
440
441
  activeTool: {
441
442
  lastActiveTool: import("../types").ActiveTool | null;
442
443
  locked: boolean;
444
+ fromSelection: boolean;
443
445
  } & import("../types").ActiveTool;
446
+ preferredSelectionTool: {
447
+ type: "selection" | "lasso";
448
+ initialized: boolean;
449
+ };
444
450
  penMode: boolean;
445
451
  penDetected: boolean;
446
452
  exportBackground: boolean;
@@ -468,8 +474,8 @@ export declare const actionZoomOut: {
468
474
  name: string | null;
469
475
  isResizing: boolean;
470
476
  isRotating: boolean;
471
- openMenu: "shape" | "canvas" | null;
472
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
477
+ openMenu: "canvas" | null;
478
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
473
479
  openSidebar: {
474
480
  name: string;
475
481
  tab?: string | undefined;
@@ -478,7 +484,7 @@ export declare const actionZoomOut: {
478
484
  name: "imageExport" | "help" | "jsonExport";
479
485
  } | {
480
486
  name: "ttd";
481
- tab: "text-to-diagram" | "mermaid";
487
+ tab: "mermaid" | "text-to-diagram";
482
488
  } | {
483
489
  name: "commandPalette";
484
490
  } | {
@@ -550,9 +556,8 @@ export declare const actionZoomOut: {
550
556
  shown: true;
551
557
  data: import("../charts").Spreadsheet;
552
558
  };
553
- pendingImageElementId: string | null;
554
559
  showHyperlinkPopup: false | "editor" | "info";
555
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
560
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
556
561
  snapLines: readonly import("../snapping").SnapLine[];
557
562
  originSnapOffset: {
558
563
  x: number;
@@ -562,16 +567,15 @@ export declare const actionZoomOut: {
562
567
  followedBy: Set<import("../types").SocketId>;
563
568
  isCropping: boolean;
564
569
  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
- }[];
570
+ searchMatches: Readonly<{
571
+ focusedId: string | null;
572
+ matches: readonly import("../types").SearchMatch[];
573
+ }> | null;
574
+ activeLockedId: string | null;
575
+ lockedMultiSelections: {
576
+ [groupId: string]: true;
577
+ };
578
+ stylesPanelMode: "compact" | "full" | "mobile";
575
579
  };
576
580
  captureUpdate: "EVENTUALLY";
577
581
  };
@@ -606,7 +610,7 @@ export declare const actionResetZoom: {
606
610
  errorMessage: import("react").ReactNode;
607
611
  activeEmbeddable: {
608
612
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
609
- state: "hover" | "active";
613
+ state: "active" | "hover";
610
614
  } | null;
611
615
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
612
616
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -614,7 +618,7 @@ export declare const actionResetZoom: {
614
618
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
615
619
  isBindingEnabled: boolean;
616
620
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
617
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
621
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
618
622
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
619
623
  frameRendering: {
620
624
  enabled: boolean;
@@ -625,11 +629,15 @@ export declare const actionResetZoom: {
625
629
  editingFrame: string | null;
626
630
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
627
631
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
628
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
629
632
  activeTool: {
630
633
  lastActiveTool: import("../types").ActiveTool | null;
631
634
  locked: boolean;
635
+ fromSelection: boolean;
632
636
  } & import("../types").ActiveTool;
637
+ preferredSelectionTool: {
638
+ type: "selection" | "lasso";
639
+ initialized: boolean;
640
+ };
633
641
  penMode: boolean;
634
642
  penDetected: boolean;
635
643
  exportBackground: boolean;
@@ -657,8 +665,8 @@ export declare const actionResetZoom: {
657
665
  name: string | null;
658
666
  isResizing: boolean;
659
667
  isRotating: boolean;
660
- openMenu: "shape" | "canvas" | null;
661
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
668
+ openMenu: "canvas" | null;
669
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
662
670
  openSidebar: {
663
671
  name: string;
664
672
  tab?: string | undefined;
@@ -667,7 +675,7 @@ export declare const actionResetZoom: {
667
675
  name: "imageExport" | "help" | "jsonExport";
668
676
  } | {
669
677
  name: "ttd";
670
- tab: "text-to-diagram" | "mermaid";
678
+ tab: "mermaid" | "text-to-diagram";
671
679
  } | {
672
680
  name: "commandPalette";
673
681
  } | {
@@ -739,9 +747,8 @@ export declare const actionResetZoom: {
739
747
  shown: true;
740
748
  data: import("../charts").Spreadsheet;
741
749
  };
742
- pendingImageElementId: string | null;
743
750
  showHyperlinkPopup: false | "editor" | "info";
744
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
751
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
745
752
  snapLines: readonly import("../snapping").SnapLine[];
746
753
  originSnapOffset: {
747
754
  x: number;
@@ -751,16 +758,15 @@ export declare const actionResetZoom: {
751
758
  followedBy: Set<import("../types").SocketId>;
752
759
  isCropping: boolean;
753
760
  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
- }[];
761
+ searchMatches: Readonly<{
762
+ focusedId: string | null;
763
+ matches: readonly import("../types").SearchMatch[];
764
+ }> | null;
765
+ activeLockedId: string | null;
766
+ lockedMultiSelections: {
767
+ [groupId: string]: true;
768
+ };
769
+ stylesPanelMode: "compact" | "full" | "mobile";
764
770
  };
765
771
  captureUpdate: "EVENTUALLY";
766
772
  };
@@ -801,7 +807,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
801
807
  errorMessage: import("react").ReactNode;
802
808
  activeEmbeddable: {
803
809
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
804
- state: "hover" | "active";
810
+ state: "active" | "hover";
805
811
  } | null;
806
812
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
807
813
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -809,7 +815,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
809
815
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
810
816
  isBindingEnabled: boolean;
811
817
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
812
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
818
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
813
819
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
814
820
  frameRendering: {
815
821
  enabled: boolean;
@@ -820,11 +826,15 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
820
826
  editingFrame: string | null;
821
827
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
822
828
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
823
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
824
829
  activeTool: {
825
830
  lastActiveTool: import("../types").ActiveTool | null;
826
831
  locked: boolean;
832
+ fromSelection: boolean;
827
833
  } & import("../types").ActiveTool;
834
+ preferredSelectionTool: {
835
+ type: "selection" | "lasso";
836
+ initialized: boolean;
837
+ };
828
838
  penMode: boolean;
829
839
  penDetected: boolean;
830
840
  exportBackground: boolean;
@@ -852,8 +862,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
852
862
  name: string | null;
853
863
  isResizing: boolean;
854
864
  isRotating: boolean;
855
- openMenu: "shape" | "canvas" | null;
856
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
865
+ openMenu: "canvas" | null;
866
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
857
867
  openSidebar: {
858
868
  name: string;
859
869
  tab?: string | undefined;
@@ -862,7 +872,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
862
872
  name: "imageExport" | "help" | "jsonExport";
863
873
  } | {
864
874
  name: "ttd";
865
- tab: "text-to-diagram" | "mermaid";
875
+ tab: "mermaid" | "text-to-diagram";
866
876
  } | {
867
877
  name: "commandPalette";
868
878
  } | {
@@ -934,9 +944,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
934
944
  shown: true;
935
945
  data: import("../charts").Spreadsheet;
936
946
  };
937
- pendingImageElementId: string | null;
938
947
  showHyperlinkPopup: false | "editor" | "info";
939
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
948
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
940
949
  snapLines: readonly import("../snapping").SnapLine[];
941
950
  originSnapOffset: {
942
951
  x: number;
@@ -947,16 +956,15 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
947
956
  followedBy: Set<import("../types").SocketId>;
948
957
  isCropping: boolean;
949
958
  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
- }[];
959
+ searchMatches: Readonly<{
960
+ focusedId: string | null;
961
+ matches: readonly import("../types").SearchMatch[];
962
+ }> | null;
963
+ activeLockedId: string | null;
964
+ lockedMultiSelections: {
965
+ [groupId: string]: true;
966
+ };
967
+ stylesPanelMode: "compact" | "full" | "mobile";
960
968
  };
961
969
  captureUpdate: "EVENTUALLY";
962
970
  };
@@ -992,7 +1000,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
992
1000
  errorMessage: import("react").ReactNode;
993
1001
  activeEmbeddable: {
994
1002
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
995
- state: "hover" | "active";
1003
+ state: "active" | "hover";
996
1004
  } | null;
997
1005
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
998
1006
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1000,7 +1008,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1000
1008
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1001
1009
  isBindingEnabled: boolean;
1002
1010
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1003
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1011
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1004
1012
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1005
1013
  frameRendering: {
1006
1014
  enabled: boolean;
@@ -1011,11 +1019,15 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1011
1019
  editingFrame: string | null;
1012
1020
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1013
1021
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1014
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1015
1022
  activeTool: {
1016
1023
  lastActiveTool: import("../types").ActiveTool | null;
1017
1024
  locked: boolean;
1025
+ fromSelection: boolean;
1018
1026
  } & import("../types").ActiveTool;
1027
+ preferredSelectionTool: {
1028
+ type: "selection" | "lasso";
1029
+ initialized: boolean;
1030
+ };
1019
1031
  penMode: boolean;
1020
1032
  penDetected: boolean;
1021
1033
  exportBackground: boolean;
@@ -1043,8 +1055,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1043
1055
  name: string | null;
1044
1056
  isResizing: boolean;
1045
1057
  isRotating: boolean;
1046
- openMenu: "shape" | "canvas" | null;
1047
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1058
+ openMenu: "canvas" | null;
1059
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1048
1060
  openSidebar: {
1049
1061
  name: string;
1050
1062
  tab?: string | undefined;
@@ -1053,7 +1065,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1053
1065
  name: "imageExport" | "help" | "jsonExport";
1054
1066
  } | {
1055
1067
  name: "ttd";
1056
- tab: "text-to-diagram" | "mermaid";
1068
+ tab: "mermaid" | "text-to-diagram";
1057
1069
  } | {
1058
1070
  name: "commandPalette";
1059
1071
  } | {
@@ -1125,9 +1137,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1125
1137
  shown: true;
1126
1138
  data: import("../charts").Spreadsheet;
1127
1139
  };
1128
- pendingImageElementId: string | null;
1129
1140
  showHyperlinkPopup: false | "editor" | "info";
1130
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1141
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1131
1142
  snapLines: readonly import("../snapping").SnapLine[];
1132
1143
  originSnapOffset: {
1133
1144
  x: number;
@@ -1138,16 +1149,15 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1138
1149
  followedBy: Set<import("../types").SocketId>;
1139
1150
  isCropping: boolean;
1140
1151
  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
- }[];
1152
+ searchMatches: Readonly<{
1153
+ focusedId: string | null;
1154
+ matches: readonly import("../types").SearchMatch[];
1155
+ }> | null;
1156
+ activeLockedId: string | null;
1157
+ lockedMultiSelections: {
1158
+ [groupId: string]: true;
1159
+ };
1160
+ stylesPanelMode: "compact" | "full" | "mobile";
1151
1161
  };
1152
1162
  captureUpdate: "EVENTUALLY";
1153
1163
  };
@@ -1175,7 +1185,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1175
1185
  errorMessage: import("react").ReactNode;
1176
1186
  activeEmbeddable: {
1177
1187
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1178
- state: "hover" | "active";
1188
+ state: "active" | "hover";
1179
1189
  } | null;
1180
1190
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1181
1191
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1183,7 +1193,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1183
1193
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1184
1194
  isBindingEnabled: boolean;
1185
1195
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1186
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1196
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1187
1197
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1188
1198
  frameRendering: {
1189
1199
  enabled: boolean;
@@ -1194,11 +1204,15 @@ export declare const actionZoomToFitSelectionInViewport: {
1194
1204
  editingFrame: string | null;
1195
1205
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1196
1206
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1197
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1198
1207
  activeTool: {
1199
1208
  lastActiveTool: import("../types").ActiveTool | null;
1200
1209
  locked: boolean;
1210
+ fromSelection: boolean;
1201
1211
  } & import("../types").ActiveTool;
1212
+ preferredSelectionTool: {
1213
+ type: "selection" | "lasso";
1214
+ initialized: boolean;
1215
+ };
1202
1216
  penMode: boolean;
1203
1217
  penDetected: boolean;
1204
1218
  exportBackground: boolean;
@@ -1226,8 +1240,8 @@ export declare const actionZoomToFitSelectionInViewport: {
1226
1240
  name: string | null;
1227
1241
  isResizing: boolean;
1228
1242
  isRotating: boolean;
1229
- openMenu: "shape" | "canvas" | null;
1230
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1243
+ openMenu: "canvas" | null;
1244
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1231
1245
  openSidebar: {
1232
1246
  name: string;
1233
1247
  tab?: string | undefined;
@@ -1236,7 +1250,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1236
1250
  name: "imageExport" | "help" | "jsonExport";
1237
1251
  } | {
1238
1252
  name: "ttd";
1239
- tab: "text-to-diagram" | "mermaid";
1253
+ tab: "mermaid" | "text-to-diagram";
1240
1254
  } | {
1241
1255
  name: "commandPalette";
1242
1256
  } | {
@@ -1308,9 +1322,8 @@ export declare const actionZoomToFitSelectionInViewport: {
1308
1322
  shown: true;
1309
1323
  data: import("../charts").Spreadsheet;
1310
1324
  };
1311
- pendingImageElementId: string | null;
1312
1325
  showHyperlinkPopup: false | "editor" | "info";
1313
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1326
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1314
1327
  snapLines: readonly import("../snapping").SnapLine[];
1315
1328
  originSnapOffset: {
1316
1329
  x: number;
@@ -1321,16 +1334,15 @@ export declare const actionZoomToFitSelectionInViewport: {
1321
1334
  followedBy: Set<import("../types").SocketId>;
1322
1335
  isCropping: boolean;
1323
1336
  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
- }[];
1337
+ searchMatches: Readonly<{
1338
+ focusedId: string | null;
1339
+ matches: readonly import("../types").SearchMatch[];
1340
+ }> | null;
1341
+ activeLockedId: string | null;
1342
+ lockedMultiSelections: {
1343
+ [groupId: string]: true;
1344
+ };
1345
+ stylesPanelMode: "compact" | "full" | "mobile";
1334
1346
  };
1335
1347
  captureUpdate: "EVENTUALLY";
1336
1348
  };
@@ -1362,7 +1374,7 @@ export declare const actionZoomToFitSelection: {
1362
1374
  errorMessage: import("react").ReactNode;
1363
1375
  activeEmbeddable: {
1364
1376
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1365
- state: "hover" | "active";
1377
+ state: "active" | "hover";
1366
1378
  } | null;
1367
1379
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1368
1380
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1370,7 +1382,7 @@ export declare const actionZoomToFitSelection: {
1370
1382
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1371
1383
  isBindingEnabled: boolean;
1372
1384
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1373
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1385
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1374
1386
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1375
1387
  frameRendering: {
1376
1388
  enabled: boolean;
@@ -1381,11 +1393,15 @@ export declare const actionZoomToFitSelection: {
1381
1393
  editingFrame: string | null;
1382
1394
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1383
1395
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1384
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1385
1396
  activeTool: {
1386
1397
  lastActiveTool: import("../types").ActiveTool | null;
1387
1398
  locked: boolean;
1399
+ fromSelection: boolean;
1388
1400
  } & import("../types").ActiveTool;
1401
+ preferredSelectionTool: {
1402
+ type: "selection" | "lasso";
1403
+ initialized: boolean;
1404
+ };
1389
1405
  penMode: boolean;
1390
1406
  penDetected: boolean;
1391
1407
  exportBackground: boolean;
@@ -1413,8 +1429,8 @@ export declare const actionZoomToFitSelection: {
1413
1429
  name: string | null;
1414
1430
  isResizing: boolean;
1415
1431
  isRotating: boolean;
1416
- openMenu: "shape" | "canvas" | null;
1417
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1432
+ openMenu: "canvas" | null;
1433
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1418
1434
  openSidebar: {
1419
1435
  name: string;
1420
1436
  tab?: string | undefined;
@@ -1423,7 +1439,7 @@ export declare const actionZoomToFitSelection: {
1423
1439
  name: "imageExport" | "help" | "jsonExport";
1424
1440
  } | {
1425
1441
  name: "ttd";
1426
- tab: "text-to-diagram" | "mermaid";
1442
+ tab: "mermaid" | "text-to-diagram";
1427
1443
  } | {
1428
1444
  name: "commandPalette";
1429
1445
  } | {
@@ -1495,9 +1511,8 @@ export declare const actionZoomToFitSelection: {
1495
1511
  shown: true;
1496
1512
  data: import("../charts").Spreadsheet;
1497
1513
  };
1498
- pendingImageElementId: string | null;
1499
1514
  showHyperlinkPopup: false | "editor" | "info";
1500
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1515
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1501
1516
  snapLines: readonly import("../snapping").SnapLine[];
1502
1517
  originSnapOffset: {
1503
1518
  x: number;
@@ -1508,16 +1523,15 @@ export declare const actionZoomToFitSelection: {
1508
1523
  followedBy: Set<import("../types").SocketId>;
1509
1524
  isCropping: boolean;
1510
1525
  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
- }[];
1526
+ searchMatches: Readonly<{
1527
+ focusedId: string | null;
1528
+ matches: readonly import("../types").SearchMatch[];
1529
+ }> | null;
1530
+ activeLockedId: string | null;
1531
+ lockedMultiSelections: {
1532
+ [groupId: string]: true;
1533
+ };
1534
+ stylesPanelMode: "compact" | "full" | "mobile";
1521
1535
  };
1522
1536
  captureUpdate: "EVENTUALLY";
1523
1537
  };
@@ -1550,7 +1564,7 @@ export declare const actionZoomToFit: {
1550
1564
  errorMessage: import("react").ReactNode;
1551
1565
  activeEmbeddable: {
1552
1566
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1553
- state: "hover" | "active";
1567
+ state: "active" | "hover";
1554
1568
  } | null;
1555
1569
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1556
1570
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1558,7 +1572,7 @@ export declare const actionZoomToFit: {
1558
1572
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1559
1573
  isBindingEnabled: boolean;
1560
1574
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1561
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1575
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1562
1576
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1563
1577
  frameRendering: {
1564
1578
  enabled: boolean;
@@ -1569,11 +1583,15 @@ export declare const actionZoomToFit: {
1569
1583
  editingFrame: string | null;
1570
1584
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1571
1585
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1572
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1573
1586
  activeTool: {
1574
1587
  lastActiveTool: import("../types").ActiveTool | null;
1575
1588
  locked: boolean;
1589
+ fromSelection: boolean;
1576
1590
  } & import("../types").ActiveTool;
1591
+ preferredSelectionTool: {
1592
+ type: "selection" | "lasso";
1593
+ initialized: boolean;
1594
+ };
1577
1595
  penMode: boolean;
1578
1596
  penDetected: boolean;
1579
1597
  exportBackground: boolean;
@@ -1601,8 +1619,8 @@ export declare const actionZoomToFit: {
1601
1619
  name: string | null;
1602
1620
  isResizing: boolean;
1603
1621
  isRotating: boolean;
1604
- openMenu: "shape" | "canvas" | null;
1605
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1622
+ openMenu: "canvas" | null;
1623
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1606
1624
  openSidebar: {
1607
1625
  name: string;
1608
1626
  tab?: string | undefined;
@@ -1611,7 +1629,7 @@ export declare const actionZoomToFit: {
1611
1629
  name: "imageExport" | "help" | "jsonExport";
1612
1630
  } | {
1613
1631
  name: "ttd";
1614
- tab: "text-to-diagram" | "mermaid";
1632
+ tab: "mermaid" | "text-to-diagram";
1615
1633
  } | {
1616
1634
  name: "commandPalette";
1617
1635
  } | {
@@ -1683,9 +1701,8 @@ export declare const actionZoomToFit: {
1683
1701
  shown: true;
1684
1702
  data: import("../charts").Spreadsheet;
1685
1703
  };
1686
- pendingImageElementId: string | null;
1687
1704
  showHyperlinkPopup: false | "editor" | "info";
1688
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1705
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1689
1706
  snapLines: readonly import("../snapping").SnapLine[];
1690
1707
  originSnapOffset: {
1691
1708
  x: number;
@@ -1696,16 +1713,15 @@ export declare const actionZoomToFit: {
1696
1713
  followedBy: Set<import("../types").SocketId>;
1697
1714
  isCropping: boolean;
1698
1715
  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
- }[];
1716
+ searchMatches: Readonly<{
1717
+ focusedId: string | null;
1718
+ matches: readonly import("../types").SearchMatch[];
1719
+ }> | null;
1720
+ activeLockedId: string | null;
1721
+ lockedMultiSelections: {
1722
+ [groupId: string]: true;
1723
+ };
1724
+ stylesPanelMode: "compact" | "full" | "mobile";
1709
1725
  };
1710
1726
  captureUpdate: "EVENTUALLY";
1711
1727
  };
@@ -1735,7 +1751,7 @@ export declare const actionToggleTheme: {
1735
1751
  errorMessage: import("react").ReactNode;
1736
1752
  activeEmbeddable: {
1737
1753
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1738
- state: "hover" | "active";
1754
+ state: "active" | "hover";
1739
1755
  } | null;
1740
1756
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1741
1757
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1743,7 +1759,7 @@ export declare const actionToggleTheme: {
1743
1759
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1744
1760
  isBindingEnabled: boolean;
1745
1761
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1746
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1762
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1747
1763
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1748
1764
  frameRendering: {
1749
1765
  enabled: boolean;
@@ -1754,11 +1770,15 @@ export declare const actionToggleTheme: {
1754
1770
  editingFrame: string | null;
1755
1771
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1756
1772
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1757
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1758
1773
  activeTool: {
1759
1774
  lastActiveTool: import("../types").ActiveTool | null;
1760
1775
  locked: boolean;
1776
+ fromSelection: boolean;
1761
1777
  } & import("../types").ActiveTool;
1778
+ preferredSelectionTool: {
1779
+ type: "selection" | "lasso";
1780
+ initialized: boolean;
1781
+ };
1762
1782
  penMode: boolean;
1763
1783
  penDetected: boolean;
1764
1784
  exportBackground: boolean;
@@ -1791,8 +1811,8 @@ export declare const actionToggleTheme: {
1791
1811
  zoom: Readonly<{
1792
1812
  value: import("../types").NormalizedZoomValue;
1793
1813
  }>;
1794
- openMenu: "shape" | "canvas" | null;
1795
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1814
+ openMenu: "canvas" | null;
1815
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1796
1816
  openSidebar: {
1797
1817
  name: string;
1798
1818
  tab?: string | undefined;
@@ -1801,7 +1821,7 @@ export declare const actionToggleTheme: {
1801
1821
  name: "imageExport" | "help" | "jsonExport";
1802
1822
  } | {
1803
1823
  name: "ttd";
1804
- tab: "text-to-diagram" | "mermaid";
1824
+ tab: "mermaid" | "text-to-diagram";
1805
1825
  } | {
1806
1826
  name: "commandPalette";
1807
1827
  } | {
@@ -1872,9 +1892,8 @@ export declare const actionToggleTheme: {
1872
1892
  shown: true;
1873
1893
  data: import("../charts").Spreadsheet;
1874
1894
  };
1875
- pendingImageElementId: string | null;
1876
1895
  showHyperlinkPopup: false | "editor" | "info";
1877
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1896
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1878
1897
  snapLines: readonly import("../snapping").SnapLine[];
1879
1898
  originSnapOffset: {
1880
1899
  x: number;
@@ -1885,16 +1904,15 @@ export declare const actionToggleTheme: {
1885
1904
  followedBy: Set<import("../types").SocketId>;
1886
1905
  isCropping: boolean;
1887
1906
  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
- }[];
1907
+ searchMatches: Readonly<{
1908
+ focusedId: string | null;
1909
+ matches: readonly import("../types").SearchMatch[];
1910
+ }> | null;
1911
+ activeLockedId: string | null;
1912
+ lockedMultiSelections: {
1913
+ [groupId: string]: true;
1914
+ };
1915
+ stylesPanelMode: "compact" | "full" | "mobile";
1898
1916
  };
1899
1917
  captureUpdate: "EVENTUALLY";
1900
1918
  };
@@ -1909,7 +1927,7 @@ export declare const actionToggleEraserTool: {
1909
1927
  trackEvent: {
1910
1928
  category: "toolbar";
1911
1929
  };
1912
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
1930
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1913
1931
  appState: {
1914
1932
  selectedElementIds: {};
1915
1933
  selectedGroupIds: {};
@@ -1917,6 +1935,7 @@ export declare const actionToggleEraserTool: {
1917
1935
  activeTool: {
1918
1936
  lastActiveTool: import("../types").ActiveTool | null;
1919
1937
  locked: boolean;
1938
+ fromSelection: boolean;
1920
1939
  } & import("../types").ActiveTool;
1921
1940
  contextMenu: {
1922
1941
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -1932,7 +1951,7 @@ export declare const actionToggleEraserTool: {
1932
1951
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1933
1952
  isBindingEnabled: boolean;
1934
1953
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1935
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1954
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1936
1955
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1937
1956
  frameRendering: {
1938
1957
  enabled: boolean;
@@ -1943,7 +1962,10 @@ export declare const actionToggleEraserTool: {
1943
1962
  editingFrame: string | null;
1944
1963
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1945
1964
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1946
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1965
+ preferredSelectionTool: {
1966
+ type: "selection" | "lasso";
1967
+ initialized: boolean;
1968
+ };
1947
1969
  penMode: boolean;
1948
1970
  penDetected: boolean;
1949
1971
  exportBackground: boolean;
@@ -1976,8 +1998,8 @@ export declare const actionToggleEraserTool: {
1976
1998
  zoom: Readonly<{
1977
1999
  value: import("../types").NormalizedZoomValue;
1978
2000
  }>;
1979
- openMenu: "shape" | "canvas" | null;
1980
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2001
+ openMenu: "canvas" | null;
2002
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1981
2003
  openSidebar: {
1982
2004
  name: string;
1983
2005
  tab?: string | undefined;
@@ -1986,7 +2008,7 @@ export declare const actionToggleEraserTool: {
1986
2008
  name: "imageExport" | "help" | "jsonExport";
1987
2009
  } | {
1988
2010
  name: "ttd";
1989
- tab: "text-to-diagram" | "mermaid";
2011
+ tab: "mermaid" | "text-to-diagram";
1990
2012
  } | {
1991
2013
  name: "commandPalette";
1992
2014
  } | {
@@ -2052,9 +2074,8 @@ export declare const actionToggleEraserTool: {
2052
2074
  shown: true;
2053
2075
  data: import("../charts").Spreadsheet;
2054
2076
  };
2055
- pendingImageElementId: string | null;
2056
2077
  showHyperlinkPopup: false | "editor" | "info";
2057
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2078
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2058
2079
  snapLines: readonly import("../snapping").SnapLine[];
2059
2080
  originSnapOffset: {
2060
2081
  x: number;
@@ -2065,16 +2086,15 @@ export declare const actionToggleEraserTool: {
2065
2086
  followedBy: Set<import("../types").SocketId>;
2066
2087
  isCropping: boolean;
2067
2088
  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
- }[];
2089
+ searchMatches: Readonly<{
2090
+ focusedId: string | null;
2091
+ matches: readonly import("../types").SearchMatch[];
2092
+ }> | null;
2093
+ activeLockedId: string | null;
2094
+ lockedMultiSelections: {
2095
+ [groupId: string]: true;
2096
+ };
2097
+ stylesPanelMode: "compact" | "full" | "mobile";
2078
2098
  };
2079
2099
  captureUpdate: "IMMEDIATELY";
2080
2100
  };
@@ -2082,10 +2102,191 @@ export declare const actionToggleEraserTool: {
2082
2102
  } & {
2083
2103
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2084
2104
  };
2105
+ export declare const actionToggleLassoTool: {
2106
+ name: "toggleLassoTool";
2107
+ label: string;
2108
+ icon: import("react/jsx-runtime").JSX.Element;
2109
+ trackEvent: {
2110
+ category: "toolbar";
2111
+ };
2112
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
2113
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2114
+ appState: {
2115
+ selectedElementIds: {};
2116
+ selectedGroupIds: {};
2117
+ activeEmbeddable: null;
2118
+ activeTool: {
2119
+ lastActiveTool: import("../types").ActiveTool | null;
2120
+ locked: boolean;
2121
+ fromSelection: boolean;
2122
+ } & import("../types").ActiveTool;
2123
+ contextMenu: {
2124
+ items: import("../components/ContextMenu").ContextMenuItems;
2125
+ top: number;
2126
+ left: number;
2127
+ } | null;
2128
+ showWelcomeScreen: boolean;
2129
+ isLoading: boolean;
2130
+ errorMessage: import("react").ReactNode;
2131
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2132
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2133
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2134
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2135
+ isBindingEnabled: boolean;
2136
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2137
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2138
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2139
+ frameRendering: {
2140
+ enabled: boolean;
2141
+ name: boolean;
2142
+ outline: boolean;
2143
+ clip: boolean;
2144
+ };
2145
+ editingFrame: string | null;
2146
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2147
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2148
+ preferredSelectionTool: {
2149
+ type: "selection" | "lasso";
2150
+ initialized: boolean;
2151
+ };
2152
+ penMode: boolean;
2153
+ penDetected: boolean;
2154
+ exportBackground: boolean;
2155
+ exportEmbedScene: boolean;
2156
+ exportWithDarkMode: boolean;
2157
+ exportScale: number;
2158
+ currentItemStrokeColor: string;
2159
+ currentItemBackgroundColor: string;
2160
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2161
+ currentItemStrokeWidth: number;
2162
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2163
+ currentItemRoughness: number;
2164
+ currentItemOpacity: number;
2165
+ currentItemFontFamily: number;
2166
+ currentItemFontSize: number;
2167
+ currentItemTextAlign: string;
2168
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2169
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2170
+ currentHoveredFontFamily: number | null;
2171
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2172
+ currentItemArrowType: "round" | "sharp" | "elbow";
2173
+ viewBackgroundColor: string;
2174
+ scrollX: number;
2175
+ scrollY: number;
2176
+ cursorButton: "up" | "down";
2177
+ scrolledOutside: boolean;
2178
+ name: string | null;
2179
+ isResizing: boolean;
2180
+ isRotating: boolean;
2181
+ zoom: Readonly<{
2182
+ value: import("../types").NormalizedZoomValue;
2183
+ }>;
2184
+ openMenu: "canvas" | null;
2185
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2186
+ openSidebar: {
2187
+ name: string;
2188
+ tab?: string | undefined;
2189
+ } | null;
2190
+ openDialog: {
2191
+ name: "imageExport" | "help" | "jsonExport";
2192
+ } | {
2193
+ name: "ttd";
2194
+ tab: "mermaid" | "text-to-diagram";
2195
+ } | {
2196
+ name: "commandPalette";
2197
+ } | {
2198
+ name: "elementLinkSelector";
2199
+ sourceElementId: string;
2200
+ } | null;
2201
+ defaultSidebarDockedPreference: boolean;
2202
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2203
+ hoveredElementIds: Readonly<{
2204
+ [id: string]: true;
2205
+ }>;
2206
+ previousSelectedElementIds: {
2207
+ [id: string]: true;
2208
+ };
2209
+ selectedElementsAreBeingDragged: boolean;
2210
+ shouldCacheIgnoreZoom: boolean;
2211
+ toast: {
2212
+ message: string;
2213
+ closable?: boolean | undefined;
2214
+ duration?: number | undefined;
2215
+ } | null;
2216
+ zenModeEnabled: boolean;
2217
+ theme: import("@excalidraw/element/types").Theme;
2218
+ gridSize: number;
2219
+ gridStep: number;
2220
+ gridModeEnabled: boolean;
2221
+ viewModeEnabled: boolean;
2222
+ editingGroupId: string | null;
2223
+ width: number;
2224
+ height: number;
2225
+ offsetTop: number;
2226
+ offsetLeft: number;
2227
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
2228
+ collaborators: Map<import("../types").SocketId, Readonly<{
2229
+ pointer?: import("../types").CollaboratorPointer | undefined;
2230
+ button?: "up" | "down" | undefined;
2231
+ selectedElementIds?: Readonly<{
2232
+ [id: string]: true;
2233
+ }> | undefined;
2234
+ username?: string | null | undefined;
2235
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2236
+ color?: {
2237
+ background: string;
2238
+ stroke: string;
2239
+ } | undefined;
2240
+ avatarUrl?: string | undefined;
2241
+ id?: string | undefined;
2242
+ socketId?: import("../types").SocketId | undefined;
2243
+ isCurrentUser?: boolean | undefined;
2244
+ isInCall?: boolean | undefined;
2245
+ isSpeaking?: boolean | undefined;
2246
+ isMuted?: boolean | undefined;
2247
+ }>>;
2248
+ stats: {
2249
+ open: boolean;
2250
+ panels: number;
2251
+ };
2252
+ currentChartType: import("@excalidraw/element/types").ChartType;
2253
+ pasteDialog: {
2254
+ shown: false;
2255
+ data: null;
2256
+ } | {
2257
+ shown: true;
2258
+ data: import("../charts").Spreadsheet;
2259
+ };
2260
+ showHyperlinkPopup: false | "editor" | "info";
2261
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2262
+ snapLines: readonly import("../snapping").SnapLine[];
2263
+ originSnapOffset: {
2264
+ x: number;
2265
+ y: number;
2266
+ } | null;
2267
+ objectsSnapModeEnabled: boolean;
2268
+ userToFollow: import("../types").UserToFollow | null;
2269
+ followedBy: Set<import("../types").SocketId>;
2270
+ isCropping: boolean;
2271
+ croppingElementId: string | null;
2272
+ searchMatches: Readonly<{
2273
+ focusedId: string | null;
2274
+ matches: readonly import("../types").SearchMatch[];
2275
+ }> | null;
2276
+ activeLockedId: string | null;
2277
+ lockedMultiSelections: {
2278
+ [groupId: string]: true;
2279
+ };
2280
+ stylesPanelMode: "compact" | "full" | "mobile";
2281
+ };
2282
+ captureUpdate: "NEVER";
2283
+ };
2284
+ } & {
2285
+ keyTest?: undefined;
2286
+ };
2085
2287
  export declare const actionToggleHandTool: {
2086
2288
  name: "toggleHandTool";
2087
2289
  label: string;
2088
- paletteName: string;
2089
2290
  trackEvent: {
2090
2291
  category: "toolbar";
2091
2292
  };
@@ -2099,6 +2300,7 @@ export declare const actionToggleHandTool: {
2099
2300
  activeTool: {
2100
2301
  lastActiveTool: import("../types").ActiveTool | null;
2101
2302
  locked: boolean;
2303
+ fromSelection: boolean;
2102
2304
  } & import("../types").ActiveTool;
2103
2305
  contextMenu: {
2104
2306
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -2114,7 +2316,7 @@ export declare const actionToggleHandTool: {
2114
2316
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2115
2317
  isBindingEnabled: boolean;
2116
2318
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2117
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2319
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2118
2320
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2119
2321
  frameRendering: {
2120
2322
  enabled: boolean;
@@ -2125,7 +2327,10 @@ export declare const actionToggleHandTool: {
2125
2327
  editingFrame: string | null;
2126
2328
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2127
2329
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2128
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2330
+ preferredSelectionTool: {
2331
+ type: "selection" | "lasso";
2332
+ initialized: boolean;
2333
+ };
2129
2334
  penMode: boolean;
2130
2335
  penDetected: boolean;
2131
2336
  exportBackground: boolean;
@@ -2158,8 +2363,8 @@ export declare const actionToggleHandTool: {
2158
2363
  zoom: Readonly<{
2159
2364
  value: import("../types").NormalizedZoomValue;
2160
2365
  }>;
2161
- openMenu: "shape" | "canvas" | null;
2162
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2366
+ openMenu: "canvas" | null;
2367
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2163
2368
  openSidebar: {
2164
2369
  name: string;
2165
2370
  tab?: string | undefined;
@@ -2168,7 +2373,7 @@ export declare const actionToggleHandTool: {
2168
2373
  name: "imageExport" | "help" | "jsonExport";
2169
2374
  } | {
2170
2375
  name: "ttd";
2171
- tab: "text-to-diagram" | "mermaid";
2376
+ tab: "mermaid" | "text-to-diagram";
2172
2377
  } | {
2173
2378
  name: "commandPalette";
2174
2379
  } | {
@@ -2234,9 +2439,8 @@ export declare const actionToggleHandTool: {
2234
2439
  shown: true;
2235
2440
  data: import("../charts").Spreadsheet;
2236
2441
  };
2237
- pendingImageElementId: string | null;
2238
2442
  showHyperlinkPopup: false | "editor" | "info";
2239
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2443
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2240
2444
  snapLines: readonly import("../snapping").SnapLine[];
2241
2445
  originSnapOffset: {
2242
2446
  x: number;
@@ -2247,16 +2451,15 @@ export declare const actionToggleHandTool: {
2247
2451
  followedBy: Set<import("../types").SocketId>;
2248
2452
  isCropping: boolean;
2249
2453
  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
- }[];
2454
+ searchMatches: Readonly<{
2455
+ focusedId: string | null;
2456
+ matches: readonly import("../types").SearchMatch[];
2457
+ }> | null;
2458
+ activeLockedId: string | null;
2459
+ lockedMultiSelections: {
2460
+ [groupId: string]: true;
2461
+ };
2462
+ stylesPanelMode: "compact" | "full" | "mobile";
2260
2463
  };
2261
2464
  captureUpdate: "IMMEDIATELY";
2262
2465
  };