@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-a30e1b2

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 (279) hide show
  1. package/CHANGELOG.md +11 -11
  2. package/dist/dev/{chunk-LMHBUWQS.js → chunk-CARD3WJZ.js} +10 -4
  3. package/dist/dev/chunk-CARD3WJZ.js.map +7 -0
  4. package/dist/dev/{chunk-3SN6HYVK.js → chunk-ETWEPOFC.js} +15663 -22657
  5. package/dist/dev/chunk-ETWEPOFC.js.map +7 -0
  6. package/dist/dev/chunk-FB2NA5UG.js +4132 -0
  7. package/dist/dev/chunk-FB2NA5UG.js.map +7 -0
  8. package/dist/dev/{chunk-53KHN5WM.js → chunk-RS23HYC4.js} +2 -2
  9. package/dist/dev/{chunk-53KHN5WM.js.map → chunk-RS23HYC4.js.map} +1 -1
  10. package/dist/dev/data/{image-V26YBSDB.js → image-AYLHSOBV.js} +3 -3
  11. package/dist/dev/index.css +3093 -3055
  12. package/dist/dev/index.css.map +3 -3
  13. package/dist/dev/index.js +32056 -23232
  14. package/dist/dev/index.js.map +4 -4
  15. package/dist/dev/locales/{en-OZCJJ2HN.js → en-E3O5XSXJ.js} +2 -2
  16. package/dist/dev/subset-shared.chunk.js +2 -2
  17. package/dist/dev/subset-worker.chunk.js +2 -2
  18. package/dist/prod/chunk-6BSJPDKJ.js +33 -0
  19. package/dist/prod/{chunk-6U3AYISY.js → chunk-FGHASORR.js} +4 -4
  20. package/dist/prod/chunk-LS7FJGPW.js +86 -0
  21. package/dist/prod/{chunk-G5N3DNGT.js → chunk-SBKTMZM7.js} +1 -1
  22. package/dist/prod/data/image-VAYKYPXV.js +1 -0
  23. package/dist/prod/index.css +1 -1
  24. package/dist/prod/index.js +19 -15
  25. package/dist/prod/locales/{en-B4ZKOASM.js → en-44IKVKYT.js} +1 -1
  26. package/dist/prod/subset-shared.chunk.js +1 -1
  27. package/dist/prod/subset-worker.chunk.js +1 -1
  28. package/dist/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
  29. package/dist/types/{excalidraw → common/src}/colors.d.ts +1 -0
  30. package/dist/types/{excalidraw → common/src}/constants.d.ts +11 -6
  31. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  32. package/dist/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +15 -5
  33. package/dist/types/common/src/index.d.ts +12 -0
  34. package/dist/types/{excalidraw → common/src}/points.d.ts +2 -0
  35. package/dist/types/common/src/promise-pool.d.ts +6 -0
  36. package/dist/types/{excalidraw → common/src}/utility-types.d.ts +5 -0
  37. package/dist/types/{excalidraw → common/src}/utils.d.ts +22 -12
  38. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +12 -15
  39. package/dist/types/{excalidraw/scene → element/src}/Shape.d.ts +2 -2
  40. package/dist/types/{excalidraw/scene → element/src}/ShapeCache.d.ts +4 -4
  41. package/dist/types/element/src/align.d.ts +7 -0
  42. package/dist/types/{excalidraw/element → element/src}/binding.d.ts +24 -16
  43. package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +9 -4
  44. package/dist/types/{excalidraw/element → element/src}/collision.d.ts +3 -3
  45. package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
  46. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +41 -36
  47. package/dist/types/{excalidraw → element/src}/distribute.d.ts +1 -1
  48. package/dist/types/{excalidraw/element → element/src}/dragElements.d.ts +5 -4
  49. package/dist/types/element/src/duplicate.d.ts +63 -0
  50. package/dist/types/{excalidraw/element → element/src}/elbowArrow.d.ts +1 -1
  51. package/dist/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
  52. package/dist/types/element/src/embeddable.d.ts +10 -0
  53. package/dist/types/{excalidraw/element → element/src}/flowchart.d.ts +4 -3
  54. package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +5 -2
  55. package/dist/types/{excalidraw → element/src}/frame.d.ts +8 -7
  56. package/dist/types/{excalidraw → element/src}/groups.d.ts +5 -5
  57. package/dist/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
  58. package/dist/types/{excalidraw/element → element/src}/image.d.ts +2 -2
  59. package/dist/types/element/src/index.d.ts +16 -0
  60. package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +16 -20
  61. package/dist/types/{excalidraw/element → element/src}/mutateElement.d.ts +11 -3
  62. package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +4 -44
  63. package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
  64. package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +6 -6
  65. package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
  66. package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +13 -2
  67. package/dist/types/element/src/shapes.d.ts +23 -0
  68. package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
  69. package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +1 -2
  70. package/dist/types/element/src/store.d.ts +227 -0
  71. package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +8 -7
  72. package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +7 -7
  73. package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +5 -2
  74. package/dist/types/{excalidraw/element → element/src}/types.d.ts +9 -2
  75. package/dist/types/element/src/zindex.d.ts +7 -0
  76. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +88 -103
  77. package/dist/types/excalidraw/actions/actionAlign.d.ts +15 -15
  78. package/dist/types/excalidraw/actions/actionBoundText.d.ts +64 -74
  79. package/dist/types/excalidraw/actions/actionCanvas.d.ts +608 -497
  80. package/dist/types/excalidraw/actions/actionClipboard.d.ts +188 -218
  81. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +31 -36
  82. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +89 -104
  83. package/dist/types/excalidraw/actions/actionDistribute.d.ts +7 -7
  84. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +5 -9
  85. package/dist/types/excalidraw/actions/actionElementLink.d.ts +34 -39
  86. package/dist/types/excalidraw/actions/actionElementLock.d.ts +65 -76
  87. package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +31 -46
  88. package/dist/types/excalidraw/actions/actionExport.d.ts +342 -387
  89. package/dist/types/excalidraw/actions/actionFinalize.d.ts +52 -62
  90. package/dist/types/excalidraw/actions/actionFlip.d.ts +7 -7
  91. package/dist/types/excalidraw/actions/actionFrame.d.ts +234 -254
  92. package/dist/types/excalidraw/actions/actionGroup.d.ts +65 -75
  93. package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
  94. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +32 -37
  95. package/dist/types/excalidraw/actions/actionLink.d.ts +34 -39
  96. package/dist/types/excalidraw/actions/actionMenu.d.ts +91 -106
  97. package/dist/types/excalidraw/actions/actionNavigate.d.ts +59 -69
  98. package/dist/types/excalidraw/actions/actionProperties.d.ts +396 -471
  99. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +33 -38
  100. package/dist/types/excalidraw/actions/actionStyles.d.ts +37 -42
  101. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  102. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +33 -38
  103. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +33 -38
  104. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +32 -209
  105. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  106. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +32 -38
  107. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +33 -39
  108. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +33 -39
  109. package/dist/types/excalidraw/actions/actionZindex.d.ts +16 -16
  110. package/dist/types/excalidraw/actions/index.d.ts +1 -0
  111. package/dist/types/excalidraw/actions/manager.d.ts +2 -2
  112. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  113. package/dist/types/excalidraw/actions/types.d.ts +5 -5
  114. package/dist/types/excalidraw/animated-trail.d.ts +7 -1
  115. package/dist/types/excalidraw/appState.d.ts +34 -33
  116. package/dist/types/excalidraw/charts.d.ts +1 -1
  117. package/dist/types/excalidraw/clipboard.d.ts +7 -7
  118. package/dist/types/excalidraw/components/Actions.d.ts +3 -3
  119. package/dist/types/excalidraw/components/App.d.ts +38 -20
  120. package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
  121. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -1
  122. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +4 -4
  123. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  124. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
  125. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
  126. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
  127. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +3 -3
  128. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  129. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
  130. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
  131. package/dist/types/excalidraw/components/ContextMenu.d.ts +2 -2
  132. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +49 -0
  133. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  134. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
  135. package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  136. package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  137. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +5 -4
  138. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  139. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  140. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
  141. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  142. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
  143. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  144. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  145. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  146. package/dist/types/excalidraw/components/IconPicker.d.ts +1 -1
  147. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
  148. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  149. package/dist/types/excalidraw/components/Island.d.ts +1 -1
  150. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
  151. package/dist/types/excalidraw/components/LayerUI.d.ts +3 -3
  152. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  153. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
  154. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +3 -3
  155. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  156. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  157. package/dist/types/excalidraw/components/MagicButton.d.ts +1 -1
  158. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -3
  159. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  160. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  161. package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -1
  162. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  163. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
  164. package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -1
  165. package/dist/types/excalidraw/components/Stack.d.ts +1 -1
  166. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  167. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  168. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  169. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  170. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +3 -3
  171. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
  172. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  173. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +3 -3
  174. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
  175. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  176. package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
  177. package/dist/types/excalidraw/components/Stats/index.d.ts +2 -2
  178. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  179. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  180. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  181. package/dist/types/excalidraw/components/TextField.d.ts +1 -1
  182. package/dist/types/excalidraw/components/Toast.d.ts +1 -1
  183. package/dist/types/excalidraw/components/ToolButton.d.ts +2 -2
  184. package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
  185. package/dist/types/excalidraw/components/UserList.d.ts +1 -1
  186. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
  187. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
  188. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
  189. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  190. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
  191. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  192. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +5 -4
  193. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  194. package/dist/types/excalidraw/components/icons.d.ts +2 -1
  195. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  196. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  197. package/dist/types/excalidraw/components/shapes.d.ts +62 -0
  198. package/dist/types/excalidraw/context/tunnels.d.ts +1 -1
  199. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  200. package/dist/types/excalidraw/data/blob.d.ts +4 -4
  201. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  202. package/dist/types/excalidraw/data/index.d.ts +2 -2
  203. package/dist/types/excalidraw/data/json.d.ts +1 -1
  204. package/dist/types/excalidraw/data/library.d.ts +3 -3
  205. package/dist/types/excalidraw/data/reconcile.d.ts +2 -2
  206. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  207. package/dist/types/excalidraw/data/restore.d.ts +1 -1
  208. package/dist/types/excalidraw/data/transform.d.ts +4 -4
  209. package/dist/types/excalidraw/data/types.d.ts +3 -3
  210. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  211. package/dist/types/excalidraw/eraser/index.d.ts +14 -0
  212. package/dist/types/excalidraw/errors.d.ts +0 -3
  213. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -13
  214. package/dist/types/excalidraw/history.d.ts +15 -23
  215. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  216. package/dist/types/excalidraw/i18n.d.ts +1 -1
  217. package/dist/types/excalidraw/index.d.ts +16 -15
  218. package/dist/types/excalidraw/laser-trails.d.ts +1 -1
  219. package/dist/types/excalidraw/lasso/index.d.ts +15 -0
  220. package/dist/types/excalidraw/lasso/utils.d.ts +12 -0
  221. package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
  222. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
  223. package/dist/types/excalidraw/scene/Renderer.d.ts +3 -3
  224. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  225. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  226. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  227. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  228. package/dist/types/excalidraw/scene/types.d.ts +6 -4
  229. package/dist/types/excalidraw/snapping.d.ts +5 -6
  230. package/dist/types/excalidraw/types.d.ts +31 -18
  231. package/dist/types/excalidraw/visualdebug.d.ts +2 -2
  232. package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +4 -2
  233. package/dist/types/math/{curve.d.ts → src/curve.d.ts} +2 -0
  234. package/dist/types/math/{point.d.ts → src/point.d.ts} +2 -2
  235. package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  236. package/dist/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
  237. package/dist/types/math/{types.d.ts → src/types.d.ts} +1 -0
  238. package/dist/types/math/{vector.d.ts → src/vector.d.ts} +4 -0
  239. package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  240. package/dist/types/utils/{collision.d.ts → src/collision.d.ts} +2 -3
  241. package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
  242. package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  243. package/dist/types/utils/{geometry → src}/shape.d.ts +2 -15
  244. package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  245. package/history.ts +70 -94
  246. package/package.json +16 -4
  247. package/dist/dev/chunk-3SN6HYVK.js.map +0 -7
  248. package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
  249. package/dist/dev/chunk-OKSO7T74.js +0 -4132
  250. package/dist/dev/chunk-OKSO7T74.js.map +0 -7
  251. package/dist/prod/chunk-36CXSE6H.js +0 -34
  252. package/dist/prod/chunk-EIO257PC.js +0 -86
  253. package/dist/prod/data/image-N4WCURRR.js +0 -1
  254. package/dist/types/excalidraw/align.d.ts +0 -7
  255. package/dist/types/excalidraw/element/index.d.ts +0 -26
  256. package/dist/types/excalidraw/shapes.d.ts +0 -85
  257. package/dist/types/excalidraw/store.d.ts +0 -129
  258. package/dist/types/excalidraw/zindex.d.ts +0 -6
  259. package/dist/dev/data/{image-V26YBSDB.js.map → image-AYLHSOBV.js.map} +0 -0
  260. package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-E3O5XSXJ.js.map} +0 -0
  261. package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
  262. package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
  263. package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
  264. package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  265. package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  266. package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +0 -0
  267. package/dist/types/{excalidraw/element → element/src}/distance.d.ts +0 -0
  268. package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  269. package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  270. package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  271. package/dist/types/{excalidraw/element → element/src}/utils.d.ts +1 -1
  272. /package/dist/types/math/{angle.d.ts → src/angle.d.ts} +0 -0
  273. /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  274. /package/dist/types/math/{index.d.ts → src/index.d.ts} +0 -0
  275. /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
  276. /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
  277. /package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
  278. /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  279. /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
@@ -1,14 +1,13 @@
1
1
  /// <reference types="react" />
2
- import type { ExcalidrawElement } from "../element/types";
2
+ import { type SceneBounds } from "@excalidraw/element/bounds";
3
+ import type { ExcalidrawElement } from "@excalidraw/element/types";
3
4
  import type { AppState, Offsets } from "../types";
4
- import type { SceneBounds } from "../element/bounds";
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
- perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
10
+ perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
12
11
  appState: any;
13
12
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
14
13
  };
@@ -19,17 +18,16 @@ export declare const actionChangeViewBackgroundColor: {
19
18
  export declare const actionClearCanvas: {
20
19
  name: "clearCanvas";
21
20
  label: string;
22
- paletteName: string;
23
21
  icon: import("react/jsx-runtime").JSX.Element;
24
22
  trackEvent: {
25
23
  category: "canvas";
26
24
  };
27
25
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
28
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
29
- elements: import("../element/types").OrderedExcalidrawElement[];
26
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
27
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
30
28
  appState: {
31
29
  files: {};
32
- theme: import("../element/types").Theme;
30
+ theme: import("@excalidraw/element/types").Theme;
33
31
  penMode: boolean;
34
32
  penDetected: boolean;
35
33
  exportBackground: boolean;
@@ -51,108 +49,54 @@ 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
- viewModeEnabled: boolean;
56
- zenModeEnabled: boolean;
57
- objectsSnapModeEnabled: boolean;
58
- name: string | null;
59
- currentItemArrowType: "round" | "sharp" | "elbow";
60
- contextMenu: {
61
- items: import("../components/ContextMenu").ContextMenuItems;
62
- top: number;
63
- left: number;
64
- } | null;
65
- showWelcomeScreen: boolean;
66
- isLoading: boolean;
67
- errorMessage: import("react").ReactNode;
68
- activeEmbeddable: {
69
- element: import("../element/types").NonDeletedExcalidrawElement;
70
- state: "hover" | "active";
71
- } | null;
72
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
73
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
74
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
75
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
76
- isBindingEnabled: boolean;
77
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
78
- suggestedBindings: import("../element/binding").SuggestedBinding[];
79
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
54
+ viewBackgroundColor: string;
80
55
  frameRendering: {
81
56
  enabled: boolean;
82
57
  name: boolean;
83
58
  outline: boolean;
84
59
  clip: boolean;
85
60
  };
86
- editingFrame: string | null;
87
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
88
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
89
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
90
- exportWithDarkMode: boolean;
91
- exportScale: number;
92
- currentItemStrokeColor: string;
93
- currentItemBackgroundColor: string;
94
- currentItemFillStyle: import("../element/types").FillStyle;
95
- currentItemStrokeWidth: number;
96
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
97
- currentItemRoughness: number;
98
- currentItemOpacity: number;
99
- currentItemFontFamily: number;
100
- currentItemFontSize: number;
101
- currentItemTextAlign: string;
102
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
103
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
104
- currentHoveredFontFamily: number | null;
105
- currentItemRoundness: import("../element/types").StrokeRoundness;
106
- viewBackgroundColor: string;
107
- scrollX: number;
108
- scrollY: number;
109
- cursorButton: "up" | "down";
110
- scrolledOutside: boolean;
111
- isResizing: boolean;
112
- isRotating: boolean;
61
+ name: string | null;
113
62
  zoom: Readonly<{
114
63
  value: import("../types").NormalizedZoomValue;
115
64
  }>;
116
- openMenu: "canvas" | "shape" | null;
117
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
118
- openSidebar: {
119
- name: string;
120
- tab?: string | undefined;
121
- } | null;
65
+ scrollX: number;
66
+ scrollY: number;
67
+ viewModeEnabled: boolean;
122
68
  openDialog: {
123
69
  name: "imageExport" | "help" | "jsonExport";
124
70
  } | {
125
71
  name: "ttd";
126
- tab: "text-to-diagram" | "mermaid";
72
+ tab: "mermaid" | "text-to-diagram";
127
73
  } | {
128
74
  name: "commandPalette";
129
75
  } | {
130
76
  name: "elementLinkSelector";
131
77
  sourceElementId: string;
132
78
  } | null;
133
- defaultSidebarDockedPreference: boolean;
134
- lastPointerDownWith: import("../element/types").PointerType;
79
+ editingGroupId: string | null;
135
80
  selectedElementIds: Readonly<{
136
81
  [id: string]: true;
137
82
  }>;
138
- hoveredElementIds: Readonly<{
139
- [id: string]: true;
140
- }>;
141
- previousSelectedElementIds: {
142
- [id: string]: true;
143
- };
144
- selectedElementsAreBeingDragged: boolean;
145
- shouldCacheIgnoreZoom: boolean;
146
- toast: {
147
- message: string;
148
- closable?: boolean | undefined;
149
- duration?: number | undefined;
83
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
84
+ pendingImageElementId: string | null;
85
+ activeEmbeddable: {
86
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
87
+ state: "active" | "hover";
150
88
  } | null;
89
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
90
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
151
91
  selectedGroupIds: {
152
92
  [groupId: string]: boolean;
153
93
  };
154
- editingGroupId: string | null;
155
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
94
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
95
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
96
+ isBindingEnabled: boolean;
97
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
98
+ isRotating: boolean;
99
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
156
100
  collaborators: Map<import("../types").SocketId, Readonly<{
157
101
  pointer?: import("../types").CollaboratorPointer | undefined;
158
102
  button?: "up" | "down" | undefined;
@@ -160,7 +104,7 @@ export declare const actionClearCanvas: {
160
104
  [id: string]: true;
161
105
  }> | undefined;
162
106
  username?: string | null | undefined;
163
- userState?: import("../constants").UserIdleState | undefined;
107
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
164
108
  color?: {
165
109
  background: string;
166
110
  stroke: string;
@@ -173,29 +117,78 @@ export declare const actionClearCanvas: {
173
117
  isSpeaking?: boolean | undefined;
174
118
  isMuted?: boolean | undefined;
175
119
  }>>;
176
- currentChartType: import("../element/types").ChartType;
177
- pendingImageElementId: string | null;
178
- showHyperlinkPopup: false | "info" | "editor";
179
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
180
120
  snapLines: readonly import("../snapping").SnapLine[];
121
+ zenModeEnabled: boolean;
122
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
123
+ isCropping: boolean;
124
+ croppingElementId: string | null;
125
+ searchMatches: Readonly<{
126
+ focusedId: string | null;
127
+ matches: readonly import("../types").SearchMatch[];
128
+ }> | null;
129
+ objectsSnapModeEnabled: boolean;
130
+ shouldCacheIgnoreZoom: boolean;
131
+ exportScale: number;
132
+ selectedElementsAreBeingDragged: boolean;
133
+ currentHoveredFontFamily: number | null;
134
+ hoveredElementIds: Readonly<{
135
+ [id: string]: true;
136
+ }>;
137
+ contextMenu: {
138
+ items: import("../components/ContextMenu").ContextMenuItems;
139
+ top: number;
140
+ left: number;
141
+ } | null;
142
+ showWelcomeScreen: boolean;
143
+ isLoading: boolean;
144
+ errorMessage: import("react").ReactNode;
145
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
146
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
147
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
148
+ editingFrame: string | null;
149
+ exportWithDarkMode: boolean;
150
+ currentItemStrokeColor: string;
151
+ currentItemBackgroundColor: string;
152
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
153
+ currentItemStrokeWidth: number;
154
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
155
+ currentItemRoughness: number;
156
+ currentItemOpacity: number;
157
+ currentItemFontFamily: number;
158
+ currentItemFontSize: number;
159
+ currentItemTextAlign: string;
160
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
161
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
162
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
163
+ currentItemArrowType: "round" | "sharp" | "elbow";
164
+ cursorButton: "up" | "down";
165
+ scrolledOutside: boolean;
166
+ isResizing: boolean;
167
+ openMenu: "canvas" | "shape" | null;
168
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
169
+ openSidebar: {
170
+ name: string;
171
+ tab?: string | undefined;
172
+ } | null;
173
+ defaultSidebarDockedPreference: boolean;
174
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
175
+ previousSelectedElementIds: {
176
+ [id: string]: true;
177
+ };
178
+ toast: {
179
+ message: string;
180
+ closable?: boolean | undefined;
181
+ duration?: number | undefined;
182
+ } | null;
183
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
184
+ currentChartType: import("@excalidraw/element/types").ChartType;
185
+ showHyperlinkPopup: false | "editor" | "info";
181
186
  originSnapOffset: {
182
187
  x: number;
183
188
  y: number;
184
189
  } | null;
185
190
  userToFollow: import("../types").UserToFollow | null;
186
191
  followedBy: Set<import("../types").SocketId>;
187
- isCropping: boolean;
188
- croppingElementId: string | null;
189
- searchMatches: readonly {
190
- id: string;
191
- focus: boolean;
192
- matchedLines: {
193
- offsetX: number;
194
- offsetY: number;
195
- width: number;
196
- height: number;
197
- }[];
198
- }[];
199
192
  };
200
193
  captureUpdate: "IMMEDIATELY";
201
194
  };
@@ -210,7 +203,7 @@ export declare const actionZoomIn: {
210
203
  trackEvent: {
211
204
  category: "canvas";
212
205
  };
213
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
206
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
214
207
  appState: {
215
208
  userToFollow: null;
216
209
  scrollX: number;
@@ -227,17 +220,17 @@ export declare const actionZoomIn: {
227
220
  isLoading: boolean;
228
221
  errorMessage: import("react").ReactNode;
229
222
  activeEmbeddable: {
230
- element: import("../element/types").NonDeletedExcalidrawElement;
231
- state: "hover" | "active";
223
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
224
+ state: "active" | "hover";
232
225
  } | null;
233
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
234
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
235
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
236
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
226
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
227
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
228
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
229
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
237
230
  isBindingEnabled: boolean;
238
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
239
- suggestedBindings: import("../element/binding").SuggestedBinding[];
240
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
231
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
232
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
233
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
241
234
  frameRendering: {
242
235
  enabled: boolean;
243
236
  name: boolean;
@@ -245,12 +238,13 @@ export declare const actionZoomIn: {
245
238
  clip: boolean;
246
239
  };
247
240
  editingFrame: string | null;
248
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
249
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
250
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
241
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
242
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
243
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
251
244
  activeTool: {
252
245
  lastActiveTool: import("../types").ActiveTool | null;
253
246
  locked: boolean;
247
+ fromSelection: boolean;
254
248
  } & import("../types").ActiveTool;
255
249
  penMode: boolean;
256
250
  penDetected: boolean;
@@ -260,18 +254,18 @@ export declare const actionZoomIn: {
260
254
  exportScale: number;
261
255
  currentItemStrokeColor: string;
262
256
  currentItemBackgroundColor: string;
263
- currentItemFillStyle: import("../element/types").FillStyle;
257
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
264
258
  currentItemStrokeWidth: number;
265
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
259
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
266
260
  currentItemRoughness: number;
267
261
  currentItemOpacity: number;
268
262
  currentItemFontFamily: number;
269
263
  currentItemFontSize: number;
270
264
  currentItemTextAlign: string;
271
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
272
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
265
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
266
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
273
267
  currentHoveredFontFamily: number | null;
274
- currentItemRoundness: import("../element/types").StrokeRoundness;
268
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
275
269
  currentItemArrowType: "round" | "sharp" | "elbow";
276
270
  viewBackgroundColor: string;
277
271
  cursorButton: "up" | "down";
@@ -289,7 +283,7 @@ export declare const actionZoomIn: {
289
283
  name: "imageExport" | "help" | "jsonExport";
290
284
  } | {
291
285
  name: "ttd";
292
- tab: "text-to-diagram" | "mermaid";
286
+ tab: "mermaid" | "text-to-diagram";
293
287
  } | {
294
288
  name: "commandPalette";
295
289
  } | {
@@ -297,7 +291,7 @@ export declare const actionZoomIn: {
297
291
  sourceElementId: string;
298
292
  } | null;
299
293
  defaultSidebarDockedPreference: boolean;
300
- lastPointerDownWith: import("../element/types").PointerType;
294
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
301
295
  selectedElementIds: Readonly<{
302
296
  [id: string]: true;
303
297
  }>;
@@ -315,7 +309,7 @@ export declare const actionZoomIn: {
315
309
  duration?: number | undefined;
316
310
  } | null;
317
311
  zenModeEnabled: boolean;
318
- theme: import("../element/types").Theme;
312
+ theme: import("@excalidraw/element/types").Theme;
319
313
  gridSize: number;
320
314
  gridStep: number;
321
315
  gridModeEnabled: boolean;
@@ -336,7 +330,7 @@ export declare const actionZoomIn: {
336
330
  [id: string]: true;
337
331
  }> | undefined;
338
332
  username?: string | null | undefined;
339
- userState?: import("../constants").UserIdleState | undefined;
333
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
340
334
  color?: {
341
335
  background: string;
342
336
  stroke: string;
@@ -353,7 +347,7 @@ export declare const actionZoomIn: {
353
347
  open: boolean;
354
348
  panels: number;
355
349
  };
356
- currentChartType: import("../element/types").ChartType;
350
+ currentChartType: import("@excalidraw/element/types").ChartType;
357
351
  pasteDialog: {
358
352
  shown: false;
359
353
  data: null;
@@ -362,8 +356,8 @@ export declare const actionZoomIn: {
362
356
  data: import("../charts").Spreadsheet;
363
357
  };
364
358
  pendingImageElementId: string | null;
365
- showHyperlinkPopup: false | "info" | "editor";
366
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
359
+ showHyperlinkPopup: false | "editor" | "info";
360
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
367
361
  snapLines: readonly import("../snapping").SnapLine[];
368
362
  originSnapOffset: {
369
363
  x: number;
@@ -373,23 +367,17 @@ export declare const actionZoomIn: {
373
367
  followedBy: Set<import("../types").SocketId>;
374
368
  isCropping: boolean;
375
369
  croppingElementId: string | null;
376
- searchMatches: readonly {
377
- id: string;
378
- focus: boolean;
379
- matchedLines: {
380
- offsetX: number;
381
- offsetY: number;
382
- width: number;
383
- height: number;
384
- }[];
385
- }[];
370
+ searchMatches: Readonly<{
371
+ focusedId: string | null;
372
+ matches: readonly import("../types").SearchMatch[];
373
+ }> | null;
386
374
  };
387
375
  captureUpdate: "EVENTUALLY";
388
376
  };
389
377
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
390
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
378
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
391
379
  } & {
392
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
380
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
393
381
  };
394
382
  export declare const actionZoomOut: {
395
383
  name: "zoomOut";
@@ -399,7 +387,7 @@ export declare const actionZoomOut: {
399
387
  trackEvent: {
400
388
  category: "canvas";
401
389
  };
402
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
390
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
403
391
  appState: {
404
392
  userToFollow: null;
405
393
  scrollX: number;
@@ -416,17 +404,17 @@ export declare const actionZoomOut: {
416
404
  isLoading: boolean;
417
405
  errorMessage: import("react").ReactNode;
418
406
  activeEmbeddable: {
419
- element: import("../element/types").NonDeletedExcalidrawElement;
420
- state: "hover" | "active";
407
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
408
+ state: "active" | "hover";
421
409
  } | null;
422
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
423
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
424
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
425
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
410
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
411
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
412
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
413
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
426
414
  isBindingEnabled: boolean;
427
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
428
- suggestedBindings: import("../element/binding").SuggestedBinding[];
429
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
415
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
416
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
417
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
430
418
  frameRendering: {
431
419
  enabled: boolean;
432
420
  name: boolean;
@@ -434,12 +422,13 @@ export declare const actionZoomOut: {
434
422
  clip: boolean;
435
423
  };
436
424
  editingFrame: string | null;
437
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
438
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
439
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
425
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
426
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
427
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
440
428
  activeTool: {
441
429
  lastActiveTool: import("../types").ActiveTool | null;
442
430
  locked: boolean;
431
+ fromSelection: boolean;
443
432
  } & import("../types").ActiveTool;
444
433
  penMode: boolean;
445
434
  penDetected: boolean;
@@ -449,18 +438,18 @@ export declare const actionZoomOut: {
449
438
  exportScale: number;
450
439
  currentItemStrokeColor: string;
451
440
  currentItemBackgroundColor: string;
452
- currentItemFillStyle: import("../element/types").FillStyle;
441
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
453
442
  currentItemStrokeWidth: number;
454
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
443
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
455
444
  currentItemRoughness: number;
456
445
  currentItemOpacity: number;
457
446
  currentItemFontFamily: number;
458
447
  currentItemFontSize: number;
459
448
  currentItemTextAlign: string;
460
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
461
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
449
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
450
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
462
451
  currentHoveredFontFamily: number | null;
463
- currentItemRoundness: import("../element/types").StrokeRoundness;
452
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
464
453
  currentItemArrowType: "round" | "sharp" | "elbow";
465
454
  viewBackgroundColor: string;
466
455
  cursorButton: "up" | "down";
@@ -478,7 +467,7 @@ export declare const actionZoomOut: {
478
467
  name: "imageExport" | "help" | "jsonExport";
479
468
  } | {
480
469
  name: "ttd";
481
- tab: "text-to-diagram" | "mermaid";
470
+ tab: "mermaid" | "text-to-diagram";
482
471
  } | {
483
472
  name: "commandPalette";
484
473
  } | {
@@ -486,7 +475,7 @@ export declare const actionZoomOut: {
486
475
  sourceElementId: string;
487
476
  } | null;
488
477
  defaultSidebarDockedPreference: boolean;
489
- lastPointerDownWith: import("../element/types").PointerType;
478
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
490
479
  selectedElementIds: Readonly<{
491
480
  [id: string]: true;
492
481
  }>;
@@ -504,7 +493,7 @@ export declare const actionZoomOut: {
504
493
  duration?: number | undefined;
505
494
  } | null;
506
495
  zenModeEnabled: boolean;
507
- theme: import("../element/types").Theme;
496
+ theme: import("@excalidraw/element/types").Theme;
508
497
  gridSize: number;
509
498
  gridStep: number;
510
499
  gridModeEnabled: boolean;
@@ -525,7 +514,7 @@ export declare const actionZoomOut: {
525
514
  [id: string]: true;
526
515
  }> | undefined;
527
516
  username?: string | null | undefined;
528
- userState?: import("../constants").UserIdleState | undefined;
517
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
529
518
  color?: {
530
519
  background: string;
531
520
  stroke: string;
@@ -542,7 +531,7 @@ export declare const actionZoomOut: {
542
531
  open: boolean;
543
532
  panels: number;
544
533
  };
545
- currentChartType: import("../element/types").ChartType;
534
+ currentChartType: import("@excalidraw/element/types").ChartType;
546
535
  pasteDialog: {
547
536
  shown: false;
548
537
  data: null;
@@ -551,8 +540,8 @@ export declare const actionZoomOut: {
551
540
  data: import("../charts").Spreadsheet;
552
541
  };
553
542
  pendingImageElementId: string | null;
554
- showHyperlinkPopup: false | "info" | "editor";
555
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
543
+ showHyperlinkPopup: false | "editor" | "info";
544
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
556
545
  snapLines: readonly import("../snapping").SnapLine[];
557
546
  originSnapOffset: {
558
547
  x: number;
@@ -562,23 +551,17 @@ export declare const actionZoomOut: {
562
551
  followedBy: Set<import("../types").SocketId>;
563
552
  isCropping: boolean;
564
553
  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
- }[];
554
+ searchMatches: Readonly<{
555
+ focusedId: string | null;
556
+ matches: readonly import("../types").SearchMatch[];
557
+ }> | null;
575
558
  };
576
559
  captureUpdate: "EVENTUALLY";
577
560
  };
578
561
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
579
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
562
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
580
563
  } & {
581
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
564
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
582
565
  };
583
566
  export declare const actionResetZoom: {
584
567
  name: "resetZoom";
@@ -588,7 +571,7 @@ export declare const actionResetZoom: {
588
571
  trackEvent: {
589
572
  category: "canvas";
590
573
  };
591
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
574
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
592
575
  appState: {
593
576
  userToFollow: null;
594
577
  scrollX: number;
@@ -605,17 +588,17 @@ export declare const actionResetZoom: {
605
588
  isLoading: boolean;
606
589
  errorMessage: import("react").ReactNode;
607
590
  activeEmbeddable: {
608
- element: import("../element/types").NonDeletedExcalidrawElement;
609
- state: "hover" | "active";
591
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
592
+ state: "active" | "hover";
610
593
  } | null;
611
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
612
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
613
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
614
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
594
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
595
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
596
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
597
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
615
598
  isBindingEnabled: boolean;
616
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
617
- suggestedBindings: import("../element/binding").SuggestedBinding[];
618
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
599
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
600
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
601
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
619
602
  frameRendering: {
620
603
  enabled: boolean;
621
604
  name: boolean;
@@ -623,12 +606,13 @@ export declare const actionResetZoom: {
623
606
  clip: boolean;
624
607
  };
625
608
  editingFrame: string | null;
626
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
627
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
628
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
609
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
610
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
611
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
629
612
  activeTool: {
630
613
  lastActiveTool: import("../types").ActiveTool | null;
631
614
  locked: boolean;
615
+ fromSelection: boolean;
632
616
  } & import("../types").ActiveTool;
633
617
  penMode: boolean;
634
618
  penDetected: boolean;
@@ -638,18 +622,18 @@ export declare const actionResetZoom: {
638
622
  exportScale: number;
639
623
  currentItemStrokeColor: string;
640
624
  currentItemBackgroundColor: string;
641
- currentItemFillStyle: import("../element/types").FillStyle;
625
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
642
626
  currentItemStrokeWidth: number;
643
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
627
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
644
628
  currentItemRoughness: number;
645
629
  currentItemOpacity: number;
646
630
  currentItemFontFamily: number;
647
631
  currentItemFontSize: number;
648
632
  currentItemTextAlign: string;
649
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
650
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
633
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
634
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
651
635
  currentHoveredFontFamily: number | null;
652
- currentItemRoundness: import("../element/types").StrokeRoundness;
636
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
653
637
  currentItemArrowType: "round" | "sharp" | "elbow";
654
638
  viewBackgroundColor: string;
655
639
  cursorButton: "up" | "down";
@@ -667,7 +651,7 @@ export declare const actionResetZoom: {
667
651
  name: "imageExport" | "help" | "jsonExport";
668
652
  } | {
669
653
  name: "ttd";
670
- tab: "text-to-diagram" | "mermaid";
654
+ tab: "mermaid" | "text-to-diagram";
671
655
  } | {
672
656
  name: "commandPalette";
673
657
  } | {
@@ -675,7 +659,7 @@ export declare const actionResetZoom: {
675
659
  sourceElementId: string;
676
660
  } | null;
677
661
  defaultSidebarDockedPreference: boolean;
678
- lastPointerDownWith: import("../element/types").PointerType;
662
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
679
663
  selectedElementIds: Readonly<{
680
664
  [id: string]: true;
681
665
  }>;
@@ -693,7 +677,7 @@ export declare const actionResetZoom: {
693
677
  duration?: number | undefined;
694
678
  } | null;
695
679
  zenModeEnabled: boolean;
696
- theme: import("../element/types").Theme;
680
+ theme: import("@excalidraw/element/types").Theme;
697
681
  gridSize: number;
698
682
  gridStep: number;
699
683
  gridModeEnabled: boolean;
@@ -714,7 +698,7 @@ export declare const actionResetZoom: {
714
698
  [id: string]: true;
715
699
  }> | undefined;
716
700
  username?: string | null | undefined;
717
- userState?: import("../constants").UserIdleState | undefined;
701
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
718
702
  color?: {
719
703
  background: string;
720
704
  stroke: string;
@@ -731,7 +715,7 @@ export declare const actionResetZoom: {
731
715
  open: boolean;
732
716
  panels: number;
733
717
  };
734
- currentChartType: import("../element/types").ChartType;
718
+ currentChartType: import("@excalidraw/element/types").ChartType;
735
719
  pasteDialog: {
736
720
  shown: false;
737
721
  data: null;
@@ -740,8 +724,8 @@ export declare const actionResetZoom: {
740
724
  data: import("../charts").Spreadsheet;
741
725
  };
742
726
  pendingImageElementId: string | null;
743
- showHyperlinkPopup: false | "info" | "editor";
744
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
727
+ showHyperlinkPopup: false | "editor" | "info";
728
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
745
729
  snapLines: readonly import("../snapping").SnapLine[];
746
730
  originSnapOffset: {
747
731
  x: number;
@@ -751,23 +735,17 @@ export declare const actionResetZoom: {
751
735
  followedBy: Set<import("../types").SocketId>;
752
736
  isCropping: boolean;
753
737
  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
- }[];
738
+ searchMatches: Readonly<{
739
+ focusedId: string | null;
740
+ matches: readonly import("../types").SearchMatch[];
741
+ }> | null;
764
742
  };
765
743
  captureUpdate: "EVENTUALLY";
766
744
  };
767
745
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
768
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
746
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
769
747
  } & {
770
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
748
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
771
749
  };
772
750
  export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
773
751
  bounds: SceneBounds;
@@ -800,17 +778,17 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
800
778
  isLoading: boolean;
801
779
  errorMessage: import("react").ReactNode;
802
780
  activeEmbeddable: {
803
- element: import("../element/types").NonDeletedExcalidrawElement;
804
- state: "hover" | "active";
781
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
782
+ state: "active" | "hover";
805
783
  } | null;
806
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
807
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
808
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
809
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
784
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
785
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
786
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
787
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
810
788
  isBindingEnabled: boolean;
811
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
812
- suggestedBindings: import("../element/binding").SuggestedBinding[];
813
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
789
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
790
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
791
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
814
792
  frameRendering: {
815
793
  enabled: boolean;
816
794
  name: boolean;
@@ -818,12 +796,13 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
818
796
  clip: boolean;
819
797
  };
820
798
  editingFrame: string | null;
821
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
822
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
823
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
799
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
800
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
801
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
824
802
  activeTool: {
825
803
  lastActiveTool: import("../types").ActiveTool | null;
826
804
  locked: boolean;
805
+ fromSelection: boolean;
827
806
  } & import("../types").ActiveTool;
828
807
  penMode: boolean;
829
808
  penDetected: boolean;
@@ -833,18 +812,18 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
833
812
  exportScale: number;
834
813
  currentItemStrokeColor: string;
835
814
  currentItemBackgroundColor: string;
836
- currentItemFillStyle: import("../element/types").FillStyle;
815
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
837
816
  currentItemStrokeWidth: number;
838
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
817
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
839
818
  currentItemRoughness: number;
840
819
  currentItemOpacity: number;
841
820
  currentItemFontFamily: number;
842
821
  currentItemFontSize: number;
843
822
  currentItemTextAlign: string;
844
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
845
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
823
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
824
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
846
825
  currentHoveredFontFamily: number | null;
847
- currentItemRoundness: import("../element/types").StrokeRoundness;
826
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
848
827
  currentItemArrowType: "round" | "sharp" | "elbow";
849
828
  viewBackgroundColor: string;
850
829
  cursorButton: "up" | "down";
@@ -862,7 +841,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
862
841
  name: "imageExport" | "help" | "jsonExport";
863
842
  } | {
864
843
  name: "ttd";
865
- tab: "text-to-diagram" | "mermaid";
844
+ tab: "mermaid" | "text-to-diagram";
866
845
  } | {
867
846
  name: "commandPalette";
868
847
  } | {
@@ -870,7 +849,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
870
849
  sourceElementId: string;
871
850
  } | null;
872
851
  defaultSidebarDockedPreference: boolean;
873
- lastPointerDownWith: import("../element/types").PointerType;
852
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
874
853
  selectedElementIds: Readonly<{
875
854
  [id: string]: true;
876
855
  }>;
@@ -888,7 +867,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
888
867
  duration?: number | undefined;
889
868
  } | null;
890
869
  zenModeEnabled: boolean;
891
- theme: import("../element/types").Theme;
870
+ theme: import("@excalidraw/element/types").Theme;
892
871
  gridSize: number;
893
872
  gridStep: number;
894
873
  gridModeEnabled: boolean;
@@ -909,7 +888,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
909
888
  [id: string]: true;
910
889
  }> | undefined;
911
890
  username?: string | null | undefined;
912
- userState?: import("../constants").UserIdleState | undefined;
891
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
913
892
  color?: {
914
893
  background: string;
915
894
  stroke: string;
@@ -926,7 +905,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
926
905
  open: boolean;
927
906
  panels: number;
928
907
  };
929
- currentChartType: import("../element/types").ChartType;
908
+ currentChartType: import("@excalidraw/element/types").ChartType;
930
909
  pasteDialog: {
931
910
  shown: false;
932
911
  data: null;
@@ -935,8 +914,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
935
914
  data: import("../charts").Spreadsheet;
936
915
  };
937
916
  pendingImageElementId: string | null;
938
- showHyperlinkPopup: false | "info" | "editor";
939
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
917
+ showHyperlinkPopup: false | "editor" | "info";
918
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
940
919
  snapLines: readonly import("../snapping").SnapLine[];
941
920
  originSnapOffset: {
942
921
  x: number;
@@ -947,16 +926,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
947
926
  followedBy: Set<import("../types").SocketId>;
948
927
  isCropping: boolean;
949
928
  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
- }[];
929
+ searchMatches: Readonly<{
930
+ focusedId: string | null;
931
+ matches: readonly import("../types").SearchMatch[];
932
+ }> | null;
960
933
  };
961
934
  captureUpdate: "EVENTUALLY";
962
935
  };
@@ -991,17 +964,17 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
991
964
  isLoading: boolean;
992
965
  errorMessage: import("react").ReactNode;
993
966
  activeEmbeddable: {
994
- element: import("../element/types").NonDeletedExcalidrawElement;
995
- state: "hover" | "active";
967
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
968
+ state: "active" | "hover";
996
969
  } | null;
997
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
998
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
999
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1000
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
970
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
971
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
972
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
973
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1001
974
  isBindingEnabled: boolean;
1002
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1003
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1004
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
975
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
976
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
977
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1005
978
  frameRendering: {
1006
979
  enabled: boolean;
1007
980
  name: boolean;
@@ -1009,12 +982,13 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1009
982
  clip: boolean;
1010
983
  };
1011
984
  editingFrame: string | null;
1012
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1013
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1014
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
985
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
986
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
987
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1015
988
  activeTool: {
1016
989
  lastActiveTool: import("../types").ActiveTool | null;
1017
990
  locked: boolean;
991
+ fromSelection: boolean;
1018
992
  } & import("../types").ActiveTool;
1019
993
  penMode: boolean;
1020
994
  penDetected: boolean;
@@ -1024,18 +998,18 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1024
998
  exportScale: number;
1025
999
  currentItemStrokeColor: string;
1026
1000
  currentItemBackgroundColor: string;
1027
- currentItemFillStyle: import("../element/types").FillStyle;
1001
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1028
1002
  currentItemStrokeWidth: number;
1029
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1003
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1030
1004
  currentItemRoughness: number;
1031
1005
  currentItemOpacity: number;
1032
1006
  currentItemFontFamily: number;
1033
1007
  currentItemFontSize: number;
1034
1008
  currentItemTextAlign: string;
1035
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1036
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1009
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1010
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1037
1011
  currentHoveredFontFamily: number | null;
1038
- currentItemRoundness: import("../element/types").StrokeRoundness;
1012
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1039
1013
  currentItemArrowType: "round" | "sharp" | "elbow";
1040
1014
  viewBackgroundColor: string;
1041
1015
  cursorButton: "up" | "down";
@@ -1053,7 +1027,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1053
1027
  name: "imageExport" | "help" | "jsonExport";
1054
1028
  } | {
1055
1029
  name: "ttd";
1056
- tab: "text-to-diagram" | "mermaid";
1030
+ tab: "mermaid" | "text-to-diagram";
1057
1031
  } | {
1058
1032
  name: "commandPalette";
1059
1033
  } | {
@@ -1061,7 +1035,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1061
1035
  sourceElementId: string;
1062
1036
  } | null;
1063
1037
  defaultSidebarDockedPreference: boolean;
1064
- lastPointerDownWith: import("../element/types").PointerType;
1038
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1065
1039
  selectedElementIds: Readonly<{
1066
1040
  [id: string]: true;
1067
1041
  }>;
@@ -1079,7 +1053,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1079
1053
  duration?: number | undefined;
1080
1054
  } | null;
1081
1055
  zenModeEnabled: boolean;
1082
- theme: import("../element/types").Theme;
1056
+ theme: import("@excalidraw/element/types").Theme;
1083
1057
  gridSize: number;
1084
1058
  gridStep: number;
1085
1059
  gridModeEnabled: boolean;
@@ -1100,7 +1074,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1100
1074
  [id: string]: true;
1101
1075
  }> | undefined;
1102
1076
  username?: string | null | undefined;
1103
- userState?: import("../constants").UserIdleState | undefined;
1077
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1104
1078
  color?: {
1105
1079
  background: string;
1106
1080
  stroke: string;
@@ -1117,7 +1091,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1117
1091
  open: boolean;
1118
1092
  panels: number;
1119
1093
  };
1120
- currentChartType: import("../element/types").ChartType;
1094
+ currentChartType: import("@excalidraw/element/types").ChartType;
1121
1095
  pasteDialog: {
1122
1096
  shown: false;
1123
1097
  data: null;
@@ -1126,8 +1100,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1126
1100
  data: import("../charts").Spreadsheet;
1127
1101
  };
1128
1102
  pendingImageElementId: string | null;
1129
- showHyperlinkPopup: false | "info" | "editor";
1130
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1103
+ showHyperlinkPopup: false | "editor" | "info";
1104
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1131
1105
  snapLines: readonly import("../snapping").SnapLine[];
1132
1106
  originSnapOffset: {
1133
1107
  x: number;
@@ -1138,16 +1112,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1138
1112
  followedBy: Set<import("../types").SocketId>;
1139
1113
  isCropping: boolean;
1140
1114
  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
- }[];
1115
+ searchMatches: Readonly<{
1116
+ focusedId: string | null;
1117
+ matches: readonly import("../types").SearchMatch[];
1118
+ }> | null;
1151
1119
  };
1152
1120
  captureUpdate: "EVENTUALLY";
1153
1121
  };
@@ -1158,7 +1126,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1158
1126
  trackEvent: {
1159
1127
  category: "canvas";
1160
1128
  };
1161
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1129
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1162
1130
  appState: {
1163
1131
  scrollX: number;
1164
1132
  scrollY: number;
@@ -1174,17 +1142,17 @@ export declare const actionZoomToFitSelectionInViewport: {
1174
1142
  isLoading: boolean;
1175
1143
  errorMessage: import("react").ReactNode;
1176
1144
  activeEmbeddable: {
1177
- element: import("../element/types").NonDeletedExcalidrawElement;
1178
- state: "hover" | "active";
1145
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1146
+ state: "active" | "hover";
1179
1147
  } | null;
1180
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1181
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1182
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1183
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1148
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1149
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1150
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1151
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1184
1152
  isBindingEnabled: boolean;
1185
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1186
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1187
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1153
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1154
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1155
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1188
1156
  frameRendering: {
1189
1157
  enabled: boolean;
1190
1158
  name: boolean;
@@ -1192,12 +1160,13 @@ export declare const actionZoomToFitSelectionInViewport: {
1192
1160
  clip: boolean;
1193
1161
  };
1194
1162
  editingFrame: string | null;
1195
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1196
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1197
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1163
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1164
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1165
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1198
1166
  activeTool: {
1199
1167
  lastActiveTool: import("../types").ActiveTool | null;
1200
1168
  locked: boolean;
1169
+ fromSelection: boolean;
1201
1170
  } & import("../types").ActiveTool;
1202
1171
  penMode: boolean;
1203
1172
  penDetected: boolean;
@@ -1207,18 +1176,18 @@ export declare const actionZoomToFitSelectionInViewport: {
1207
1176
  exportScale: number;
1208
1177
  currentItemStrokeColor: string;
1209
1178
  currentItemBackgroundColor: string;
1210
- currentItemFillStyle: import("../element/types").FillStyle;
1179
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1211
1180
  currentItemStrokeWidth: number;
1212
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1181
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1213
1182
  currentItemRoughness: number;
1214
1183
  currentItemOpacity: number;
1215
1184
  currentItemFontFamily: number;
1216
1185
  currentItemFontSize: number;
1217
1186
  currentItemTextAlign: string;
1218
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1219
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1187
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1188
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1220
1189
  currentHoveredFontFamily: number | null;
1221
- currentItemRoundness: import("../element/types").StrokeRoundness;
1190
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1222
1191
  currentItemArrowType: "round" | "sharp" | "elbow";
1223
1192
  viewBackgroundColor: string;
1224
1193
  cursorButton: "up" | "down";
@@ -1236,7 +1205,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1236
1205
  name: "imageExport" | "help" | "jsonExport";
1237
1206
  } | {
1238
1207
  name: "ttd";
1239
- tab: "text-to-diagram" | "mermaid";
1208
+ tab: "mermaid" | "text-to-diagram";
1240
1209
  } | {
1241
1210
  name: "commandPalette";
1242
1211
  } | {
@@ -1244,7 +1213,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1244
1213
  sourceElementId: string;
1245
1214
  } | null;
1246
1215
  defaultSidebarDockedPreference: boolean;
1247
- lastPointerDownWith: import("../element/types").PointerType;
1216
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1248
1217
  selectedElementIds: Readonly<{
1249
1218
  [id: string]: true;
1250
1219
  }>;
@@ -1262,7 +1231,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1262
1231
  duration?: number | undefined;
1263
1232
  } | null;
1264
1233
  zenModeEnabled: boolean;
1265
- theme: import("../element/types").Theme;
1234
+ theme: import("@excalidraw/element/types").Theme;
1266
1235
  gridSize: number;
1267
1236
  gridStep: number;
1268
1237
  gridModeEnabled: boolean;
@@ -1283,7 +1252,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1283
1252
  [id: string]: true;
1284
1253
  }> | undefined;
1285
1254
  username?: string | null | undefined;
1286
- userState?: import("../constants").UserIdleState | undefined;
1255
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1287
1256
  color?: {
1288
1257
  background: string;
1289
1258
  stroke: string;
@@ -1300,7 +1269,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1300
1269
  open: boolean;
1301
1270
  panels: number;
1302
1271
  };
1303
- currentChartType: import("../element/types").ChartType;
1272
+ currentChartType: import("@excalidraw/element/types").ChartType;
1304
1273
  pasteDialog: {
1305
1274
  shown: false;
1306
1275
  data: null;
@@ -1309,8 +1278,8 @@ export declare const actionZoomToFitSelectionInViewport: {
1309
1278
  data: import("../charts").Spreadsheet;
1310
1279
  };
1311
1280
  pendingImageElementId: string | null;
1312
- showHyperlinkPopup: false | "info" | "editor";
1313
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1281
+ showHyperlinkPopup: false | "editor" | "info";
1282
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1314
1283
  snapLines: readonly import("../snapping").SnapLine[];
1315
1284
  originSnapOffset: {
1316
1285
  x: number;
@@ -1321,22 +1290,16 @@ export declare const actionZoomToFitSelectionInViewport: {
1321
1290
  followedBy: Set<import("../types").SocketId>;
1322
1291
  isCropping: boolean;
1323
1292
  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
- }[];
1293
+ searchMatches: Readonly<{
1294
+ focusedId: string | null;
1295
+ matches: readonly import("../types").SearchMatch[];
1296
+ }> | null;
1334
1297
  };
1335
1298
  captureUpdate: "EVENTUALLY";
1336
1299
  };
1337
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1300
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1338
1301
  } & {
1339
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1302
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1340
1303
  };
1341
1304
  export declare const actionZoomToFitSelection: {
1342
1305
  name: "zoomToFitSelection";
@@ -1345,7 +1308,7 @@ export declare const actionZoomToFitSelection: {
1345
1308
  trackEvent: {
1346
1309
  category: "canvas";
1347
1310
  };
1348
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1311
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1349
1312
  appState: {
1350
1313
  scrollX: number;
1351
1314
  scrollY: number;
@@ -1361,17 +1324,17 @@ export declare const actionZoomToFitSelection: {
1361
1324
  isLoading: boolean;
1362
1325
  errorMessage: import("react").ReactNode;
1363
1326
  activeEmbeddable: {
1364
- element: import("../element/types").NonDeletedExcalidrawElement;
1365
- state: "hover" | "active";
1327
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1328
+ state: "active" | "hover";
1366
1329
  } | null;
1367
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1368
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1369
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1370
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1330
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1331
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1332
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1333
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1371
1334
  isBindingEnabled: boolean;
1372
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1373
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1374
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1335
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1336
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1337
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1375
1338
  frameRendering: {
1376
1339
  enabled: boolean;
1377
1340
  name: boolean;
@@ -1379,12 +1342,13 @@ export declare const actionZoomToFitSelection: {
1379
1342
  clip: boolean;
1380
1343
  };
1381
1344
  editingFrame: string | null;
1382
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1383
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1384
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1345
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1346
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1347
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1385
1348
  activeTool: {
1386
1349
  lastActiveTool: import("../types").ActiveTool | null;
1387
1350
  locked: boolean;
1351
+ fromSelection: boolean;
1388
1352
  } & import("../types").ActiveTool;
1389
1353
  penMode: boolean;
1390
1354
  penDetected: boolean;
@@ -1394,18 +1358,18 @@ export declare const actionZoomToFitSelection: {
1394
1358
  exportScale: number;
1395
1359
  currentItemStrokeColor: string;
1396
1360
  currentItemBackgroundColor: string;
1397
- currentItemFillStyle: import("../element/types").FillStyle;
1361
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1398
1362
  currentItemStrokeWidth: number;
1399
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1363
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1400
1364
  currentItemRoughness: number;
1401
1365
  currentItemOpacity: number;
1402
1366
  currentItemFontFamily: number;
1403
1367
  currentItemFontSize: number;
1404
1368
  currentItemTextAlign: string;
1405
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1406
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1369
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1370
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1407
1371
  currentHoveredFontFamily: number | null;
1408
- currentItemRoundness: import("../element/types").StrokeRoundness;
1372
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1409
1373
  currentItemArrowType: "round" | "sharp" | "elbow";
1410
1374
  viewBackgroundColor: string;
1411
1375
  cursorButton: "up" | "down";
@@ -1423,7 +1387,7 @@ export declare const actionZoomToFitSelection: {
1423
1387
  name: "imageExport" | "help" | "jsonExport";
1424
1388
  } | {
1425
1389
  name: "ttd";
1426
- tab: "text-to-diagram" | "mermaid";
1390
+ tab: "mermaid" | "text-to-diagram";
1427
1391
  } | {
1428
1392
  name: "commandPalette";
1429
1393
  } | {
@@ -1431,7 +1395,7 @@ export declare const actionZoomToFitSelection: {
1431
1395
  sourceElementId: string;
1432
1396
  } | null;
1433
1397
  defaultSidebarDockedPreference: boolean;
1434
- lastPointerDownWith: import("../element/types").PointerType;
1398
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1435
1399
  selectedElementIds: Readonly<{
1436
1400
  [id: string]: true;
1437
1401
  }>;
@@ -1449,7 +1413,7 @@ export declare const actionZoomToFitSelection: {
1449
1413
  duration?: number | undefined;
1450
1414
  } | null;
1451
1415
  zenModeEnabled: boolean;
1452
- theme: import("../element/types").Theme;
1416
+ theme: import("@excalidraw/element/types").Theme;
1453
1417
  gridSize: number;
1454
1418
  gridStep: number;
1455
1419
  gridModeEnabled: boolean;
@@ -1470,7 +1434,7 @@ export declare const actionZoomToFitSelection: {
1470
1434
  [id: string]: true;
1471
1435
  }> | undefined;
1472
1436
  username?: string | null | undefined;
1473
- userState?: import("../constants").UserIdleState | undefined;
1437
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1474
1438
  color?: {
1475
1439
  background: string;
1476
1440
  stroke: string;
@@ -1487,7 +1451,7 @@ export declare const actionZoomToFitSelection: {
1487
1451
  open: boolean;
1488
1452
  panels: number;
1489
1453
  };
1490
- currentChartType: import("../element/types").ChartType;
1454
+ currentChartType: import("@excalidraw/element/types").ChartType;
1491
1455
  pasteDialog: {
1492
1456
  shown: false;
1493
1457
  data: null;
@@ -1496,8 +1460,8 @@ export declare const actionZoomToFitSelection: {
1496
1460
  data: import("../charts").Spreadsheet;
1497
1461
  };
1498
1462
  pendingImageElementId: string | null;
1499
- showHyperlinkPopup: false | "info" | "editor";
1500
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1463
+ showHyperlinkPopup: false | "editor" | "info";
1464
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1501
1465
  snapLines: readonly import("../snapping").SnapLine[];
1502
1466
  originSnapOffset: {
1503
1467
  x: number;
@@ -1508,22 +1472,16 @@ export declare const actionZoomToFitSelection: {
1508
1472
  followedBy: Set<import("../types").SocketId>;
1509
1473
  isCropping: boolean;
1510
1474
  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
- }[];
1475
+ searchMatches: Readonly<{
1476
+ focusedId: string | null;
1477
+ matches: readonly import("../types").SearchMatch[];
1478
+ }> | null;
1521
1479
  };
1522
1480
  captureUpdate: "EVENTUALLY";
1523
1481
  };
1524
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1482
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1525
1483
  } & {
1526
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1484
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1527
1485
  };
1528
1486
  export declare const actionZoomToFit: {
1529
1487
  name: "zoomToFit";
@@ -1533,7 +1491,7 @@ export declare const actionZoomToFit: {
1533
1491
  trackEvent: {
1534
1492
  category: "canvas";
1535
1493
  };
1536
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1494
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1537
1495
  appState: {
1538
1496
  scrollX: number;
1539
1497
  scrollY: number;
@@ -1549,17 +1507,17 @@ export declare const actionZoomToFit: {
1549
1507
  isLoading: boolean;
1550
1508
  errorMessage: import("react").ReactNode;
1551
1509
  activeEmbeddable: {
1552
- element: import("../element/types").NonDeletedExcalidrawElement;
1553
- state: "hover" | "active";
1510
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1511
+ state: "active" | "hover";
1554
1512
  } | null;
1555
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1556
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1557
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1558
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1513
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1514
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1515
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1516
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1559
1517
  isBindingEnabled: boolean;
1560
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1561
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1562
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1518
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1519
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1520
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1563
1521
  frameRendering: {
1564
1522
  enabled: boolean;
1565
1523
  name: boolean;
@@ -1567,12 +1525,13 @@ export declare const actionZoomToFit: {
1567
1525
  clip: boolean;
1568
1526
  };
1569
1527
  editingFrame: string | null;
1570
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1571
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1572
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1528
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1529
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1530
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1573
1531
  activeTool: {
1574
1532
  lastActiveTool: import("../types").ActiveTool | null;
1575
1533
  locked: boolean;
1534
+ fromSelection: boolean;
1576
1535
  } & import("../types").ActiveTool;
1577
1536
  penMode: boolean;
1578
1537
  penDetected: boolean;
@@ -1582,18 +1541,18 @@ export declare const actionZoomToFit: {
1582
1541
  exportScale: number;
1583
1542
  currentItemStrokeColor: string;
1584
1543
  currentItemBackgroundColor: string;
1585
- currentItemFillStyle: import("../element/types").FillStyle;
1544
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1586
1545
  currentItemStrokeWidth: number;
1587
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1546
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1588
1547
  currentItemRoughness: number;
1589
1548
  currentItemOpacity: number;
1590
1549
  currentItemFontFamily: number;
1591
1550
  currentItemFontSize: number;
1592
1551
  currentItemTextAlign: string;
1593
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1594
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1552
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1553
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1595
1554
  currentHoveredFontFamily: number | null;
1596
- currentItemRoundness: import("../element/types").StrokeRoundness;
1555
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1597
1556
  currentItemArrowType: "round" | "sharp" | "elbow";
1598
1557
  viewBackgroundColor: string;
1599
1558
  cursorButton: "up" | "down";
@@ -1611,7 +1570,7 @@ export declare const actionZoomToFit: {
1611
1570
  name: "imageExport" | "help" | "jsonExport";
1612
1571
  } | {
1613
1572
  name: "ttd";
1614
- tab: "text-to-diagram" | "mermaid";
1573
+ tab: "mermaid" | "text-to-diagram";
1615
1574
  } | {
1616
1575
  name: "commandPalette";
1617
1576
  } | {
@@ -1619,7 +1578,7 @@ export declare const actionZoomToFit: {
1619
1578
  sourceElementId: string;
1620
1579
  } | null;
1621
1580
  defaultSidebarDockedPreference: boolean;
1622
- lastPointerDownWith: import("../element/types").PointerType;
1581
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1623
1582
  selectedElementIds: Readonly<{
1624
1583
  [id: string]: true;
1625
1584
  }>;
@@ -1637,7 +1596,7 @@ export declare const actionZoomToFit: {
1637
1596
  duration?: number | undefined;
1638
1597
  } | null;
1639
1598
  zenModeEnabled: boolean;
1640
- theme: import("../element/types").Theme;
1599
+ theme: import("@excalidraw/element/types").Theme;
1641
1600
  gridSize: number;
1642
1601
  gridStep: number;
1643
1602
  gridModeEnabled: boolean;
@@ -1658,7 +1617,7 @@ export declare const actionZoomToFit: {
1658
1617
  [id: string]: true;
1659
1618
  }> | undefined;
1660
1619
  username?: string | null | undefined;
1661
- userState?: import("../constants").UserIdleState | undefined;
1620
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1662
1621
  color?: {
1663
1622
  background: string;
1664
1623
  stroke: string;
@@ -1675,7 +1634,7 @@ export declare const actionZoomToFit: {
1675
1634
  open: boolean;
1676
1635
  panels: number;
1677
1636
  };
1678
- currentChartType: import("../element/types").ChartType;
1637
+ currentChartType: import("@excalidraw/element/types").ChartType;
1679
1638
  pasteDialog: {
1680
1639
  shown: false;
1681
1640
  data: null;
@@ -1684,8 +1643,8 @@ export declare const actionZoomToFit: {
1684
1643
  data: import("../charts").Spreadsheet;
1685
1644
  };
1686
1645
  pendingImageElementId: string | null;
1687
- showHyperlinkPopup: false | "info" | "editor";
1688
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1646
+ showHyperlinkPopup: false | "editor" | "info";
1647
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1689
1648
  snapLines: readonly import("../snapping").SnapLine[];
1690
1649
  originSnapOffset: {
1691
1650
  x: number;
@@ -1696,22 +1655,16 @@ export declare const actionZoomToFit: {
1696
1655
  followedBy: Set<import("../types").SocketId>;
1697
1656
  isCropping: boolean;
1698
1657
  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
- }[];
1658
+ searchMatches: Readonly<{
1659
+ focusedId: string | null;
1660
+ matches: readonly import("../types").SearchMatch[];
1661
+ }> | null;
1709
1662
  };
1710
1663
  captureUpdate: "EVENTUALLY";
1711
1664
  };
1712
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1665
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1713
1666
  } & {
1714
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1667
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1715
1668
  };
1716
1669
  export declare const actionToggleTheme: {
1717
1670
  name: "toggleTheme";
@@ -1722,7 +1675,7 @@ export declare const actionToggleTheme: {
1722
1675
  trackEvent: {
1723
1676
  category: "canvas";
1724
1677
  };
1725
- perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1678
+ perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1726
1679
  appState: {
1727
1680
  theme: any;
1728
1681
  contextMenu: {
@@ -1734,17 +1687,17 @@ export declare const actionToggleTheme: {
1734
1687
  isLoading: boolean;
1735
1688
  errorMessage: import("react").ReactNode;
1736
1689
  activeEmbeddable: {
1737
- element: import("../element/types").NonDeletedExcalidrawElement;
1738
- state: "hover" | "active";
1690
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1691
+ state: "active" | "hover";
1739
1692
  } | null;
1740
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1741
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1742
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1743
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1693
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1694
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1695
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1696
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1744
1697
  isBindingEnabled: boolean;
1745
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1746
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1747
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1698
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1699
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1700
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1748
1701
  frameRendering: {
1749
1702
  enabled: boolean;
1750
1703
  name: boolean;
@@ -1752,12 +1705,13 @@ export declare const actionToggleTheme: {
1752
1705
  clip: boolean;
1753
1706
  };
1754
1707
  editingFrame: string | null;
1755
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1756
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1757
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1708
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1709
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1710
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1758
1711
  activeTool: {
1759
1712
  lastActiveTool: import("../types").ActiveTool | null;
1760
1713
  locked: boolean;
1714
+ fromSelection: boolean;
1761
1715
  } & import("../types").ActiveTool;
1762
1716
  penMode: boolean;
1763
1717
  penDetected: boolean;
@@ -1767,18 +1721,18 @@ export declare const actionToggleTheme: {
1767
1721
  exportScale: number;
1768
1722
  currentItemStrokeColor: string;
1769
1723
  currentItemBackgroundColor: string;
1770
- currentItemFillStyle: import("../element/types").FillStyle;
1724
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1771
1725
  currentItemStrokeWidth: number;
1772
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1726
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1773
1727
  currentItemRoughness: number;
1774
1728
  currentItemOpacity: number;
1775
1729
  currentItemFontFamily: number;
1776
1730
  currentItemFontSize: number;
1777
1731
  currentItemTextAlign: string;
1778
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1779
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1732
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1733
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1780
1734
  currentHoveredFontFamily: number | null;
1781
- currentItemRoundness: import("../element/types").StrokeRoundness;
1735
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1782
1736
  currentItemArrowType: "round" | "sharp" | "elbow";
1783
1737
  viewBackgroundColor: string;
1784
1738
  scrollX: number;
@@ -1801,7 +1755,7 @@ export declare const actionToggleTheme: {
1801
1755
  name: "imageExport" | "help" | "jsonExport";
1802
1756
  } | {
1803
1757
  name: "ttd";
1804
- tab: "text-to-diagram" | "mermaid";
1758
+ tab: "mermaid" | "text-to-diagram";
1805
1759
  } | {
1806
1760
  name: "commandPalette";
1807
1761
  } | {
@@ -1809,7 +1763,7 @@ export declare const actionToggleTheme: {
1809
1763
  sourceElementId: string;
1810
1764
  } | null;
1811
1765
  defaultSidebarDockedPreference: boolean;
1812
- lastPointerDownWith: import("../element/types").PointerType;
1766
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1813
1767
  selectedElementIds: Readonly<{
1814
1768
  [id: string]: true;
1815
1769
  }>;
@@ -1847,7 +1801,7 @@ export declare const actionToggleTheme: {
1847
1801
  [id: string]: true;
1848
1802
  }> | undefined;
1849
1803
  username?: string | null | undefined;
1850
- userState?: import("../constants").UserIdleState | undefined;
1804
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1851
1805
  color?: {
1852
1806
  background: string;
1853
1807
  stroke: string;
@@ -1864,7 +1818,7 @@ export declare const actionToggleTheme: {
1864
1818
  open: boolean;
1865
1819
  panels: number;
1866
1820
  };
1867
- currentChartType: import("../element/types").ChartType;
1821
+ currentChartType: import("@excalidraw/element/types").ChartType;
1868
1822
  pasteDialog: {
1869
1823
  shown: false;
1870
1824
  data: null;
@@ -1873,8 +1827,8 @@ export declare const actionToggleTheme: {
1873
1827
  data: import("../charts").Spreadsheet;
1874
1828
  };
1875
1829
  pendingImageElementId: string | null;
1876
- showHyperlinkPopup: false | "info" | "editor";
1877
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1830
+ showHyperlinkPopup: false | "editor" | "info";
1831
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1878
1832
  snapLines: readonly import("../snapping").SnapLine[];
1879
1833
  originSnapOffset: {
1880
1834
  x: number;
@@ -1885,23 +1839,17 @@ export declare const actionToggleTheme: {
1885
1839
  followedBy: Set<import("../types").SocketId>;
1886
1840
  isCropping: boolean;
1887
1841
  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
- }[];
1842
+ searchMatches: Readonly<{
1843
+ focusedId: string | null;
1844
+ matches: readonly import("../types").SearchMatch[];
1845
+ }> | null;
1898
1846
  };
1899
1847
  captureUpdate: "EVENTUALLY";
1900
1848
  };
1901
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1849
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1902
1850
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1903
1851
  } & {
1904
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1852
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1905
1853
  };
1906
1854
  export declare const actionToggleEraserTool: {
1907
1855
  name: "toggleEraserTool";
@@ -1909,7 +1857,7 @@ export declare const actionToggleEraserTool: {
1909
1857
  trackEvent: {
1910
1858
  category: "toolbar";
1911
1859
  };
1912
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
1860
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
1913
1861
  appState: {
1914
1862
  selectedElementIds: {};
1915
1863
  selectedGroupIds: {};
@@ -1917,6 +1865,7 @@ export declare const actionToggleEraserTool: {
1917
1865
  activeTool: {
1918
1866
  lastActiveTool: import("../types").ActiveTool | null;
1919
1867
  locked: boolean;
1868
+ fromSelection: boolean;
1920
1869
  } & import("../types").ActiveTool;
1921
1870
  contextMenu: {
1922
1871
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -1926,14 +1875,14 @@ export declare const actionToggleEraserTool: {
1926
1875
  showWelcomeScreen: boolean;
1927
1876
  isLoading: boolean;
1928
1877
  errorMessage: import("react").ReactNode;
1929
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1930
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1931
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1932
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1878
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1879
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1880
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1881
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1933
1882
  isBindingEnabled: boolean;
1934
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1935
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1936
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1883
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1884
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1885
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1937
1886
  frameRendering: {
1938
1887
  enabled: boolean;
1939
1888
  name: boolean;
@@ -1941,9 +1890,9 @@ export declare const actionToggleEraserTool: {
1941
1890
  clip: boolean;
1942
1891
  };
1943
1892
  editingFrame: string | null;
1944
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1945
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1946
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1893
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1894
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1895
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1947
1896
  penMode: boolean;
1948
1897
  penDetected: boolean;
1949
1898
  exportBackground: boolean;
@@ -1952,18 +1901,18 @@ export declare const actionToggleEraserTool: {
1952
1901
  exportScale: number;
1953
1902
  currentItemStrokeColor: string;
1954
1903
  currentItemBackgroundColor: string;
1955
- currentItemFillStyle: import("../element/types").FillStyle;
1904
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1956
1905
  currentItemStrokeWidth: number;
1957
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1906
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1958
1907
  currentItemRoughness: number;
1959
1908
  currentItemOpacity: number;
1960
1909
  currentItemFontFamily: number;
1961
1910
  currentItemFontSize: number;
1962
1911
  currentItemTextAlign: string;
1963
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1964
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1912
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1913
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1965
1914
  currentHoveredFontFamily: number | null;
1966
- currentItemRoundness: import("../element/types").StrokeRoundness;
1915
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1967
1916
  currentItemArrowType: "round" | "sharp" | "elbow";
1968
1917
  viewBackgroundColor: string;
1969
1918
  scrollX: number;
@@ -1986,7 +1935,7 @@ export declare const actionToggleEraserTool: {
1986
1935
  name: "imageExport" | "help" | "jsonExport";
1987
1936
  } | {
1988
1937
  name: "ttd";
1989
- tab: "text-to-diagram" | "mermaid";
1938
+ tab: "mermaid" | "text-to-diagram";
1990
1939
  } | {
1991
1940
  name: "commandPalette";
1992
1941
  } | {
@@ -1994,7 +1943,7 @@ export declare const actionToggleEraserTool: {
1994
1943
  sourceElementId: string;
1995
1944
  } | null;
1996
1945
  defaultSidebarDockedPreference: boolean;
1997
- lastPointerDownWith: import("../element/types").PointerType;
1946
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1998
1947
  hoveredElementIds: Readonly<{
1999
1948
  [id: string]: true;
2000
1949
  }>;
@@ -2009,7 +1958,7 @@ export declare const actionToggleEraserTool: {
2009
1958
  duration?: number | undefined;
2010
1959
  } | null;
2011
1960
  zenModeEnabled: boolean;
2012
- theme: import("../element/types").Theme;
1961
+ theme: import("@excalidraw/element/types").Theme;
2013
1962
  gridSize: number;
2014
1963
  gridStep: number;
2015
1964
  gridModeEnabled: boolean;
@@ -2027,7 +1976,7 @@ export declare const actionToggleEraserTool: {
2027
1976
  [id: string]: true;
2028
1977
  }> | undefined;
2029
1978
  username?: string | null | undefined;
2030
- userState?: import("../constants").UserIdleState | undefined;
1979
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2031
1980
  color?: {
2032
1981
  background: string;
2033
1982
  stroke: string;
@@ -2044,7 +1993,7 @@ export declare const actionToggleEraserTool: {
2044
1993
  open: boolean;
2045
1994
  panels: number;
2046
1995
  };
2047
- currentChartType: import("../element/types").ChartType;
1996
+ currentChartType: import("@excalidraw/element/types").ChartType;
2048
1997
  pasteDialog: {
2049
1998
  shown: false;
2050
1999
  data: null;
@@ -2053,8 +2002,8 @@ export declare const actionToggleEraserTool: {
2053
2002
  data: import("../charts").Spreadsheet;
2054
2003
  };
2055
2004
  pendingImageElementId: string | null;
2056
- showHyperlinkPopup: false | "info" | "editor";
2057
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2005
+ showHyperlinkPopup: false | "editor" | "info";
2006
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2058
2007
  snapLines: readonly import("../snapping").SnapLine[];
2059
2008
  originSnapOffset: {
2060
2009
  x: number;
@@ -2065,33 +2014,200 @@ export declare const actionToggleEraserTool: {
2065
2014
  followedBy: Set<import("../types").SocketId>;
2066
2015
  isCropping: boolean;
2067
2016
  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
- }[];
2017
+ searchMatches: Readonly<{
2018
+ focusedId: string | null;
2019
+ matches: readonly import("../types").SearchMatch[];
2020
+ }> | null;
2078
2021
  };
2079
2022
  captureUpdate: "IMMEDIATELY";
2080
2023
  };
2081
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2024
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
2082
2025
  } & {
2083
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2026
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
2027
+ };
2028
+ export declare const actionToggleLassoTool: {
2029
+ name: "toggleLassoTool";
2030
+ label: string;
2031
+ icon: import("react/jsx-runtime").JSX.Element;
2032
+ trackEvent: {
2033
+ category: "toolbar";
2034
+ };
2035
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2036
+ appState: {
2037
+ selectedElementIds: {};
2038
+ selectedGroupIds: {};
2039
+ activeEmbeddable: null;
2040
+ activeTool: {
2041
+ lastActiveTool: import("../types").ActiveTool | null;
2042
+ locked: boolean;
2043
+ fromSelection: boolean;
2044
+ } & import("../types").ActiveTool;
2045
+ contextMenu: {
2046
+ items: import("../components/ContextMenu").ContextMenuItems;
2047
+ top: number;
2048
+ left: number;
2049
+ } | null;
2050
+ showWelcomeScreen: boolean;
2051
+ isLoading: boolean;
2052
+ errorMessage: import("react").ReactNode;
2053
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2054
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2055
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2056
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2057
+ isBindingEnabled: boolean;
2058
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2059
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2060
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2061
+ frameRendering: {
2062
+ enabled: boolean;
2063
+ name: boolean;
2064
+ outline: boolean;
2065
+ clip: boolean;
2066
+ };
2067
+ editingFrame: string | null;
2068
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2069
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2070
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2071
+ penMode: boolean;
2072
+ penDetected: boolean;
2073
+ exportBackground: boolean;
2074
+ exportEmbedScene: boolean;
2075
+ exportWithDarkMode: boolean;
2076
+ exportScale: number;
2077
+ currentItemStrokeColor: string;
2078
+ currentItemBackgroundColor: string;
2079
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2080
+ currentItemStrokeWidth: number;
2081
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2082
+ currentItemRoughness: number;
2083
+ currentItemOpacity: number;
2084
+ currentItemFontFamily: number;
2085
+ currentItemFontSize: number;
2086
+ currentItemTextAlign: string;
2087
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2088
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2089
+ currentHoveredFontFamily: number | null;
2090
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2091
+ currentItemArrowType: "round" | "sharp" | "elbow";
2092
+ viewBackgroundColor: string;
2093
+ scrollX: number;
2094
+ scrollY: number;
2095
+ cursorButton: "up" | "down";
2096
+ scrolledOutside: boolean;
2097
+ name: string | null;
2098
+ isResizing: boolean;
2099
+ isRotating: boolean;
2100
+ zoom: Readonly<{
2101
+ value: import("../types").NormalizedZoomValue;
2102
+ }>;
2103
+ openMenu: "canvas" | "shape" | null;
2104
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2105
+ openSidebar: {
2106
+ name: string;
2107
+ tab?: string | undefined;
2108
+ } | null;
2109
+ openDialog: {
2110
+ name: "imageExport" | "help" | "jsonExport";
2111
+ } | {
2112
+ name: "ttd";
2113
+ tab: "mermaid" | "text-to-diagram";
2114
+ } | {
2115
+ name: "commandPalette";
2116
+ } | {
2117
+ name: "elementLinkSelector";
2118
+ sourceElementId: string;
2119
+ } | null;
2120
+ defaultSidebarDockedPreference: boolean;
2121
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2122
+ hoveredElementIds: Readonly<{
2123
+ [id: string]: true;
2124
+ }>;
2125
+ previousSelectedElementIds: {
2126
+ [id: string]: true;
2127
+ };
2128
+ selectedElementsAreBeingDragged: boolean;
2129
+ shouldCacheIgnoreZoom: boolean;
2130
+ toast: {
2131
+ message: string;
2132
+ closable?: boolean | undefined;
2133
+ duration?: number | undefined;
2134
+ } | null;
2135
+ zenModeEnabled: boolean;
2136
+ theme: import("@excalidraw/element/types").Theme;
2137
+ gridSize: number;
2138
+ gridStep: number;
2139
+ gridModeEnabled: boolean;
2140
+ viewModeEnabled: boolean;
2141
+ editingGroupId: string | null;
2142
+ width: number;
2143
+ height: number;
2144
+ offsetTop: number;
2145
+ offsetLeft: number;
2146
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
2147
+ collaborators: Map<import("../types").SocketId, Readonly<{
2148
+ pointer?: import("../types").CollaboratorPointer | undefined;
2149
+ button?: "up" | "down" | undefined;
2150
+ selectedElementIds?: Readonly<{
2151
+ [id: string]: true;
2152
+ }> | undefined;
2153
+ username?: string | null | undefined;
2154
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2155
+ color?: {
2156
+ background: string;
2157
+ stroke: string;
2158
+ } | undefined;
2159
+ avatarUrl?: string | undefined;
2160
+ id?: string | undefined;
2161
+ socketId?: import("../types").SocketId | undefined;
2162
+ isCurrentUser?: boolean | undefined;
2163
+ isInCall?: boolean | undefined;
2164
+ isSpeaking?: boolean | undefined;
2165
+ isMuted?: boolean | undefined;
2166
+ }>>;
2167
+ stats: {
2168
+ open: boolean;
2169
+ panels: number;
2170
+ };
2171
+ currentChartType: import("@excalidraw/element/types").ChartType;
2172
+ pasteDialog: {
2173
+ shown: false;
2174
+ data: null;
2175
+ } | {
2176
+ shown: true;
2177
+ data: import("../charts").Spreadsheet;
2178
+ };
2179
+ pendingImageElementId: string | null;
2180
+ showHyperlinkPopup: false | "editor" | "info";
2181
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2182
+ snapLines: readonly import("../snapping").SnapLine[];
2183
+ originSnapOffset: {
2184
+ x: number;
2185
+ y: number;
2186
+ } | null;
2187
+ objectsSnapModeEnabled: boolean;
2188
+ userToFollow: import("../types").UserToFollow | null;
2189
+ followedBy: Set<import("../types").SocketId>;
2190
+ isCropping: boolean;
2191
+ croppingElementId: string | null;
2192
+ searchMatches: Readonly<{
2193
+ focusedId: string | null;
2194
+ matches: readonly import("../types").SearchMatch[];
2195
+ }> | null;
2196
+ };
2197
+ captureUpdate: "NEVER";
2198
+ };
2199
+ } & {
2200
+ keyTest?: undefined;
2084
2201
  };
2085
2202
  export declare const actionToggleHandTool: {
2086
2203
  name: "toggleHandTool";
2087
2204
  label: string;
2088
- paletteName: string;
2089
2205
  trackEvent: {
2090
2206
  category: "toolbar";
2091
2207
  };
2092
2208
  icon: import("react/jsx-runtime").JSX.Element;
2093
2209
  viewMode: false;
2094
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2210
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2095
2211
  appState: {
2096
2212
  selectedElementIds: {};
2097
2213
  selectedGroupIds: {};
@@ -2099,6 +2215,7 @@ export declare const actionToggleHandTool: {
2099
2215
  activeTool: {
2100
2216
  lastActiveTool: import("../types").ActiveTool | null;
2101
2217
  locked: boolean;
2218
+ fromSelection: boolean;
2102
2219
  } & import("../types").ActiveTool;
2103
2220
  contextMenu: {
2104
2221
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -2108,14 +2225,14 @@ export declare const actionToggleHandTool: {
2108
2225
  showWelcomeScreen: boolean;
2109
2226
  isLoading: boolean;
2110
2227
  errorMessage: import("react").ReactNode;
2111
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2112
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2113
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
2114
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2228
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2229
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2230
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2231
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2115
2232
  isBindingEnabled: boolean;
2116
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
2117
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2118
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2233
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2234
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2235
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2119
2236
  frameRendering: {
2120
2237
  enabled: boolean;
2121
2238
  name: boolean;
@@ -2123,9 +2240,9 @@ export declare const actionToggleHandTool: {
2123
2240
  clip: boolean;
2124
2241
  };
2125
2242
  editingFrame: string | null;
2126
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2127
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2128
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2243
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2244
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2245
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2129
2246
  penMode: boolean;
2130
2247
  penDetected: boolean;
2131
2248
  exportBackground: boolean;
@@ -2134,18 +2251,18 @@ export declare const actionToggleHandTool: {
2134
2251
  exportScale: number;
2135
2252
  currentItemStrokeColor: string;
2136
2253
  currentItemBackgroundColor: string;
2137
- currentItemFillStyle: import("../element/types").FillStyle;
2254
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2138
2255
  currentItemStrokeWidth: number;
2139
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2256
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2140
2257
  currentItemRoughness: number;
2141
2258
  currentItemOpacity: number;
2142
2259
  currentItemFontFamily: number;
2143
2260
  currentItemFontSize: number;
2144
2261
  currentItemTextAlign: string;
2145
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
2146
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2262
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2263
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2147
2264
  currentHoveredFontFamily: number | null;
2148
- currentItemRoundness: import("../element/types").StrokeRoundness;
2265
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2149
2266
  currentItemArrowType: "round" | "sharp" | "elbow";
2150
2267
  viewBackgroundColor: string;
2151
2268
  scrollX: number;
@@ -2168,7 +2285,7 @@ export declare const actionToggleHandTool: {
2168
2285
  name: "imageExport" | "help" | "jsonExport";
2169
2286
  } | {
2170
2287
  name: "ttd";
2171
- tab: "text-to-diagram" | "mermaid";
2288
+ tab: "mermaid" | "text-to-diagram";
2172
2289
  } | {
2173
2290
  name: "commandPalette";
2174
2291
  } | {
@@ -2176,7 +2293,7 @@ export declare const actionToggleHandTool: {
2176
2293
  sourceElementId: string;
2177
2294
  } | null;
2178
2295
  defaultSidebarDockedPreference: boolean;
2179
- lastPointerDownWith: import("../element/types").PointerType;
2296
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2180
2297
  hoveredElementIds: Readonly<{
2181
2298
  [id: string]: true;
2182
2299
  }>;
@@ -2191,7 +2308,7 @@ export declare const actionToggleHandTool: {
2191
2308
  duration?: number | undefined;
2192
2309
  } | null;
2193
2310
  zenModeEnabled: boolean;
2194
- theme: import("../element/types").Theme;
2311
+ theme: import("@excalidraw/element/types").Theme;
2195
2312
  gridSize: number;
2196
2313
  gridStep: number;
2197
2314
  gridModeEnabled: boolean;
@@ -2209,7 +2326,7 @@ export declare const actionToggleHandTool: {
2209
2326
  [id: string]: true;
2210
2327
  }> | undefined;
2211
2328
  username?: string | null | undefined;
2212
- userState?: import("../constants").UserIdleState | undefined;
2329
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2213
2330
  color?: {
2214
2331
  background: string;
2215
2332
  stroke: string;
@@ -2226,7 +2343,7 @@ export declare const actionToggleHandTool: {
2226
2343
  open: boolean;
2227
2344
  panels: number;
2228
2345
  };
2229
- currentChartType: import("../element/types").ChartType;
2346
+ currentChartType: import("@excalidraw/element/types").ChartType;
2230
2347
  pasteDialog: {
2231
2348
  shown: false;
2232
2349
  data: null;
@@ -2235,8 +2352,8 @@ export declare const actionToggleHandTool: {
2235
2352
  data: import("../charts").Spreadsheet;
2236
2353
  };
2237
2354
  pendingImageElementId: string | null;
2238
- showHyperlinkPopup: false | "info" | "editor";
2239
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2355
+ showHyperlinkPopup: false | "editor" | "info";
2356
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2240
2357
  snapLines: readonly import("../snapping").SnapLine[];
2241
2358
  originSnapOffset: {
2242
2359
  x: number;
@@ -2247,20 +2364,14 @@ export declare const actionToggleHandTool: {
2247
2364
  followedBy: Set<import("../types").SocketId>;
2248
2365
  isCropping: boolean;
2249
2366
  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
- }[];
2367
+ searchMatches: Readonly<{
2368
+ focusedId: string | null;
2369
+ matches: readonly import("../types").SearchMatch[];
2370
+ }> | null;
2260
2371
  };
2261
2372
  captureUpdate: "IMMEDIATELY";
2262
2373
  };
2263
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2374
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
2264
2375
  } & {
2265
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2376
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
2266
2377
  };