@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,14 @@
1
1
  /// <reference types="react" />
2
+ import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
3
+ import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
2
4
  import type { AppClassProperties, AppState, Primitive } from "../types";
3
- import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
4
- import { LinearElementEditor } from "../element/linearElementEditor";
5
5
  export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
6
6
  export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
7
7
  export declare const actionChangeStrokeColor: {
8
8
  name: "changeStrokeColor";
9
9
  label: string;
10
10
  trackEvent: false;
11
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
11
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
12
12
  PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
13
13
  } & {
14
14
  keyTest?: undefined;
@@ -17,7 +17,7 @@ export declare const actionChangeBackgroundColor: {
17
17
  name: "changeBackgroundColor";
18
18
  label: string;
19
19
  trackEvent: false;
20
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
20
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
21
21
  PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
22
22
  } & {
23
23
  keyTest?: undefined;
@@ -26,7 +26,7 @@ export declare const actionChangeFillStyle: {
26
26
  name: "changeFillStyle";
27
27
  label: string;
28
28
  trackEvent: false;
29
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
29
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
30
30
  elements: ExcalidrawElement[];
31
31
  appState: {
32
32
  currentItemFillStyle: any;
@@ -39,17 +39,17 @@ export declare const actionChangeFillStyle: {
39
39
  isLoading: boolean;
40
40
  errorMessage: import("react").ReactNode;
41
41
  activeEmbeddable: {
42
- element: import("../element/types").NonDeletedExcalidrawElement;
43
- state: "hover" | "active";
42
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
43
+ state: "active" | "hover";
44
44
  } | null;
45
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
46
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
47
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
48
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
45
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
46
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
47
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
48
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
49
49
  isBindingEnabled: boolean;
50
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
51
- suggestedBindings: import("../element/binding").SuggestedBinding[];
52
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
50
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
51
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
52
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
53
53
  frameRendering: {
54
54
  enabled: boolean;
55
55
  name: boolean;
@@ -57,12 +57,13 @@ export declare const actionChangeFillStyle: {
57
57
  clip: boolean;
58
58
  };
59
59
  editingFrame: string | null;
60
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
61
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
60
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
61
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
62
62
  editingLinearElement: LinearElementEditor | null;
63
63
  activeTool: {
64
64
  lastActiveTool: import("../types").ActiveTool | null;
65
65
  locked: boolean;
66
+ fromSelection: boolean;
66
67
  } & import("../types").ActiveTool;
67
68
  penMode: boolean;
68
69
  penDetected: boolean;
@@ -73,7 +74,7 @@ export declare const actionChangeFillStyle: {
73
74
  currentItemStrokeColor: string;
74
75
  currentItemBackgroundColor: string;
75
76
  currentItemStrokeWidth: number;
76
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
77
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
77
78
  currentItemRoughness: number;
78
79
  currentItemOpacity: number;
79
80
  currentItemFontFamily: number;
@@ -82,7 +83,7 @@ export declare const actionChangeFillStyle: {
82
83
  currentItemStartArrowhead: Arrowhead | null;
83
84
  currentItemEndArrowhead: Arrowhead | null;
84
85
  currentHoveredFontFamily: number | null;
85
- currentItemRoundness: import("../element/types").StrokeRoundness;
86
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
86
87
  currentItemArrowType: "round" | "sharp" | "elbow";
87
88
  viewBackgroundColor: string;
88
89
  scrollX: number;
@@ -105,7 +106,7 @@ export declare const actionChangeFillStyle: {
105
106
  name: "imageExport" | "help" | "jsonExport";
106
107
  } | {
107
108
  name: "ttd";
108
- tab: "text-to-diagram" | "mermaid";
109
+ tab: "mermaid" | "text-to-diagram";
109
110
  } | {
110
111
  name: "commandPalette";
111
112
  } | {
@@ -113,7 +114,7 @@ export declare const actionChangeFillStyle: {
113
114
  sourceElementId: string;
114
115
  } | null;
115
116
  defaultSidebarDockedPreference: boolean;
116
- lastPointerDownWith: import("../element/types").PointerType;
117
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
117
118
  selectedElementIds: Readonly<{
118
119
  [id: string]: true;
119
120
  }>;
@@ -131,7 +132,7 @@ export declare const actionChangeFillStyle: {
131
132
  duration?: number | undefined;
132
133
  } | null;
133
134
  zenModeEnabled: boolean;
134
- theme: import("../element/types").Theme;
135
+ theme: import("@excalidraw/element/types").Theme;
135
136
  gridSize: number;
136
137
  gridStep: number;
137
138
  gridModeEnabled: boolean;
@@ -152,7 +153,7 @@ export declare const actionChangeFillStyle: {
152
153
  [id: string]: true;
153
154
  }> | undefined;
154
155
  username?: string | null | undefined;
155
- userState?: import("../constants").UserIdleState | undefined;
156
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
156
157
  color?: {
157
158
  background: string;
158
159
  stroke: string;
@@ -169,7 +170,7 @@ export declare const actionChangeFillStyle: {
169
170
  open: boolean;
170
171
  panels: number;
171
172
  };
172
- currentChartType: import("../element/types").ChartType;
173
+ currentChartType: import("@excalidraw/element/types").ChartType;
173
174
  pasteDialog: {
174
175
  shown: false;
175
176
  data: null;
@@ -178,7 +179,7 @@ export declare const actionChangeFillStyle: {
178
179
  data: import("../charts").Spreadsheet;
179
180
  };
180
181
  pendingImageElementId: string | null;
181
- showHyperlinkPopup: false | "info" | "editor";
182
+ showHyperlinkPopup: false | "editor" | "info";
182
183
  selectedLinearElement: LinearElementEditor | null;
183
184
  snapLines: readonly import("../snapping").SnapLine[];
184
185
  originSnapOffset: {
@@ -190,16 +191,10 @@ export declare const actionChangeFillStyle: {
190
191
  followedBy: Set<import("../types").SocketId>;
191
192
  isCropping: boolean;
192
193
  croppingElementId: string | null;
193
- searchMatches: readonly {
194
- id: string;
195
- focus: boolean;
196
- matchedLines: {
197
- offsetX: number;
198
- offsetY: number;
199
- width: number;
200
- height: number;
201
- }[];
202
- }[];
194
+ searchMatches: Readonly<{
195
+ focusedId: string | null;
196
+ matches: readonly import("../types").SearchMatch[];
197
+ }> | null;
203
198
  };
204
199
  captureUpdate: "IMMEDIATELY";
205
200
  };
@@ -211,7 +206,7 @@ export declare const actionChangeStrokeWidth: {
211
206
  name: "changeStrokeWidth";
212
207
  label: string;
213
208
  trackEvent: false;
214
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
209
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
215
210
  elements: ExcalidrawElement[];
216
211
  appState: {
217
212
  currentItemStrokeWidth: any;
@@ -224,17 +219,17 @@ export declare const actionChangeStrokeWidth: {
224
219
  isLoading: boolean;
225
220
  errorMessage: import("react").ReactNode;
226
221
  activeEmbeddable: {
227
- element: import("../element/types").NonDeletedExcalidrawElement;
228
- state: "hover" | "active";
222
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
223
+ state: "active" | "hover";
229
224
  } | null;
230
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
231
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
232
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
233
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
225
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
226
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
227
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
228
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
234
229
  isBindingEnabled: boolean;
235
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
236
- suggestedBindings: import("../element/binding").SuggestedBinding[];
237
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
230
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
231
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
232
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
238
233
  frameRendering: {
239
234
  enabled: boolean;
240
235
  name: boolean;
@@ -242,12 +237,13 @@ export declare const actionChangeStrokeWidth: {
242
237
  clip: boolean;
243
238
  };
244
239
  editingFrame: string | null;
245
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
246
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
240
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
241
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
247
242
  editingLinearElement: LinearElementEditor | null;
248
243
  activeTool: {
249
244
  lastActiveTool: import("../types").ActiveTool | null;
250
245
  locked: boolean;
246
+ fromSelection: boolean;
251
247
  } & import("../types").ActiveTool;
252
248
  penMode: boolean;
253
249
  penDetected: boolean;
@@ -257,8 +253,8 @@ export declare const actionChangeStrokeWidth: {
257
253
  exportScale: number;
258
254
  currentItemStrokeColor: string;
259
255
  currentItemBackgroundColor: string;
260
- currentItemFillStyle: import("../element/types").FillStyle;
261
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
256
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
257
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
262
258
  currentItemRoughness: number;
263
259
  currentItemOpacity: number;
264
260
  currentItemFontFamily: number;
@@ -267,7 +263,7 @@ export declare const actionChangeStrokeWidth: {
267
263
  currentItemStartArrowhead: Arrowhead | null;
268
264
  currentItemEndArrowhead: Arrowhead | null;
269
265
  currentHoveredFontFamily: number | null;
270
- currentItemRoundness: import("../element/types").StrokeRoundness;
266
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
271
267
  currentItemArrowType: "round" | "sharp" | "elbow";
272
268
  viewBackgroundColor: string;
273
269
  scrollX: number;
@@ -290,7 +286,7 @@ export declare const actionChangeStrokeWidth: {
290
286
  name: "imageExport" | "help" | "jsonExport";
291
287
  } | {
292
288
  name: "ttd";
293
- tab: "text-to-diagram" | "mermaid";
289
+ tab: "mermaid" | "text-to-diagram";
294
290
  } | {
295
291
  name: "commandPalette";
296
292
  } | {
@@ -298,7 +294,7 @@ export declare const actionChangeStrokeWidth: {
298
294
  sourceElementId: string;
299
295
  } | null;
300
296
  defaultSidebarDockedPreference: boolean;
301
- lastPointerDownWith: import("../element/types").PointerType;
297
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
302
298
  selectedElementIds: Readonly<{
303
299
  [id: string]: true;
304
300
  }>;
@@ -316,7 +312,7 @@ export declare const actionChangeStrokeWidth: {
316
312
  duration?: number | undefined;
317
313
  } | null;
318
314
  zenModeEnabled: boolean;
319
- theme: import("../element/types").Theme;
315
+ theme: import("@excalidraw/element/types").Theme;
320
316
  gridSize: number;
321
317
  gridStep: number;
322
318
  gridModeEnabled: boolean;
@@ -337,7 +333,7 @@ export declare const actionChangeStrokeWidth: {
337
333
  [id: string]: true;
338
334
  }> | undefined;
339
335
  username?: string | null | undefined;
340
- userState?: import("../constants").UserIdleState | undefined;
336
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
341
337
  color?: {
342
338
  background: string;
343
339
  stroke: string;
@@ -354,7 +350,7 @@ export declare const actionChangeStrokeWidth: {
354
350
  open: boolean;
355
351
  panels: number;
356
352
  };
357
- currentChartType: import("../element/types").ChartType;
353
+ currentChartType: import("@excalidraw/element/types").ChartType;
358
354
  pasteDialog: {
359
355
  shown: false;
360
356
  data: null;
@@ -363,7 +359,7 @@ export declare const actionChangeStrokeWidth: {
363
359
  data: import("../charts").Spreadsheet;
364
360
  };
365
361
  pendingImageElementId: string | null;
366
- showHyperlinkPopup: false | "info" | "editor";
362
+ showHyperlinkPopup: false | "editor" | "info";
367
363
  selectedLinearElement: LinearElementEditor | null;
368
364
  snapLines: readonly import("../snapping").SnapLine[];
369
365
  originSnapOffset: {
@@ -375,16 +371,10 @@ export declare const actionChangeStrokeWidth: {
375
371
  followedBy: Set<import("../types").SocketId>;
376
372
  isCropping: boolean;
377
373
  croppingElementId: string | null;
378
- searchMatches: readonly {
379
- id: string;
380
- focus: boolean;
381
- matchedLines: {
382
- offsetX: number;
383
- offsetY: number;
384
- width: number;
385
- height: number;
386
- }[];
387
- }[];
374
+ searchMatches: Readonly<{
375
+ focusedId: string | null;
376
+ matches: readonly import("../types").SearchMatch[];
377
+ }> | null;
388
378
  };
389
379
  captureUpdate: "IMMEDIATELY";
390
380
  };
@@ -396,7 +386,7 @@ export declare const actionChangeSloppiness: {
396
386
  name: "changeSloppiness";
397
387
  label: string;
398
388
  trackEvent: false;
399
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
389
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
400
390
  elements: ExcalidrawElement[];
401
391
  appState: {
402
392
  currentItemRoughness: any;
@@ -409,17 +399,17 @@ export declare const actionChangeSloppiness: {
409
399
  isLoading: boolean;
410
400
  errorMessage: import("react").ReactNode;
411
401
  activeEmbeddable: {
412
- element: import("../element/types").NonDeletedExcalidrawElement;
413
- state: "hover" | "active";
402
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
403
+ state: "active" | "hover";
414
404
  } | null;
415
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
416
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
417
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
418
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
405
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
406
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
407
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
408
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
419
409
  isBindingEnabled: boolean;
420
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
421
- suggestedBindings: import("../element/binding").SuggestedBinding[];
422
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
410
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
411
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
412
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
423
413
  frameRendering: {
424
414
  enabled: boolean;
425
415
  name: boolean;
@@ -427,12 +417,13 @@ export declare const actionChangeSloppiness: {
427
417
  clip: boolean;
428
418
  };
429
419
  editingFrame: string | null;
430
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
431
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
420
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
421
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
432
422
  editingLinearElement: LinearElementEditor | null;
433
423
  activeTool: {
434
424
  lastActiveTool: import("../types").ActiveTool | null;
435
425
  locked: boolean;
426
+ fromSelection: boolean;
436
427
  } & import("../types").ActiveTool;
437
428
  penMode: boolean;
438
429
  penDetected: boolean;
@@ -442,9 +433,9 @@ export declare const actionChangeSloppiness: {
442
433
  exportScale: number;
443
434
  currentItemStrokeColor: string;
444
435
  currentItemBackgroundColor: string;
445
- currentItemFillStyle: import("../element/types").FillStyle;
436
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
446
437
  currentItemStrokeWidth: number;
447
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
438
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
448
439
  currentItemOpacity: number;
449
440
  currentItemFontFamily: number;
450
441
  currentItemFontSize: number;
@@ -452,7 +443,7 @@ export declare const actionChangeSloppiness: {
452
443
  currentItemStartArrowhead: Arrowhead | null;
453
444
  currentItemEndArrowhead: Arrowhead | null;
454
445
  currentHoveredFontFamily: number | null;
455
- currentItemRoundness: import("../element/types").StrokeRoundness;
446
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
456
447
  currentItemArrowType: "round" | "sharp" | "elbow";
457
448
  viewBackgroundColor: string;
458
449
  scrollX: number;
@@ -475,7 +466,7 @@ export declare const actionChangeSloppiness: {
475
466
  name: "imageExport" | "help" | "jsonExport";
476
467
  } | {
477
468
  name: "ttd";
478
- tab: "text-to-diagram" | "mermaid";
469
+ tab: "mermaid" | "text-to-diagram";
479
470
  } | {
480
471
  name: "commandPalette";
481
472
  } | {
@@ -483,7 +474,7 @@ export declare const actionChangeSloppiness: {
483
474
  sourceElementId: string;
484
475
  } | null;
485
476
  defaultSidebarDockedPreference: boolean;
486
- lastPointerDownWith: import("../element/types").PointerType;
477
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
487
478
  selectedElementIds: Readonly<{
488
479
  [id: string]: true;
489
480
  }>;
@@ -501,7 +492,7 @@ export declare const actionChangeSloppiness: {
501
492
  duration?: number | undefined;
502
493
  } | null;
503
494
  zenModeEnabled: boolean;
504
- theme: import("../element/types").Theme;
495
+ theme: import("@excalidraw/element/types").Theme;
505
496
  gridSize: number;
506
497
  gridStep: number;
507
498
  gridModeEnabled: boolean;
@@ -522,7 +513,7 @@ export declare const actionChangeSloppiness: {
522
513
  [id: string]: true;
523
514
  }> | undefined;
524
515
  username?: string | null | undefined;
525
- userState?: import("../constants").UserIdleState | undefined;
516
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
526
517
  color?: {
527
518
  background: string;
528
519
  stroke: string;
@@ -539,7 +530,7 @@ export declare const actionChangeSloppiness: {
539
530
  open: boolean;
540
531
  panels: number;
541
532
  };
542
- currentChartType: import("../element/types").ChartType;
533
+ currentChartType: import("@excalidraw/element/types").ChartType;
543
534
  pasteDialog: {
544
535
  shown: false;
545
536
  data: null;
@@ -548,7 +539,7 @@ export declare const actionChangeSloppiness: {
548
539
  data: import("../charts").Spreadsheet;
549
540
  };
550
541
  pendingImageElementId: string | null;
551
- showHyperlinkPopup: false | "info" | "editor";
542
+ showHyperlinkPopup: false | "editor" | "info";
552
543
  selectedLinearElement: LinearElementEditor | null;
553
544
  snapLines: readonly import("../snapping").SnapLine[];
554
545
  originSnapOffset: {
@@ -560,16 +551,10 @@ export declare const actionChangeSloppiness: {
560
551
  followedBy: Set<import("../types").SocketId>;
561
552
  isCropping: boolean;
562
553
  croppingElementId: string | null;
563
- searchMatches: readonly {
564
- id: string;
565
- focus: boolean;
566
- matchedLines: {
567
- offsetX: number;
568
- offsetY: number;
569
- width: number;
570
- height: number;
571
- }[];
572
- }[];
554
+ searchMatches: Readonly<{
555
+ focusedId: string | null;
556
+ matches: readonly import("../types").SearchMatch[];
557
+ }> | null;
573
558
  };
574
559
  captureUpdate: "IMMEDIATELY";
575
560
  };
@@ -581,7 +566,7 @@ export declare const actionChangeStrokeStyle: {
581
566
  name: "changeStrokeStyle";
582
567
  label: string;
583
568
  trackEvent: false;
584
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
569
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
585
570
  elements: ExcalidrawElement[];
586
571
  appState: {
587
572
  currentItemStrokeStyle: any;
@@ -594,17 +579,17 @@ export declare const actionChangeStrokeStyle: {
594
579
  isLoading: boolean;
595
580
  errorMessage: import("react").ReactNode;
596
581
  activeEmbeddable: {
597
- element: import("../element/types").NonDeletedExcalidrawElement;
598
- state: "hover" | "active";
582
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
583
+ state: "active" | "hover";
599
584
  } | null;
600
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
601
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
602
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
603
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
585
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
586
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
587
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
588
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
604
589
  isBindingEnabled: boolean;
605
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
606
- suggestedBindings: import("../element/binding").SuggestedBinding[];
607
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
590
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
591
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
592
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
608
593
  frameRendering: {
609
594
  enabled: boolean;
610
595
  name: boolean;
@@ -612,12 +597,13 @@ export declare const actionChangeStrokeStyle: {
612
597
  clip: boolean;
613
598
  };
614
599
  editingFrame: string | null;
615
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
616
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
600
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
601
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
617
602
  editingLinearElement: LinearElementEditor | null;
618
603
  activeTool: {
619
604
  lastActiveTool: import("../types").ActiveTool | null;
620
605
  locked: boolean;
606
+ fromSelection: boolean;
621
607
  } & import("../types").ActiveTool;
622
608
  penMode: boolean;
623
609
  penDetected: boolean;
@@ -627,7 +613,7 @@ export declare const actionChangeStrokeStyle: {
627
613
  exportScale: number;
628
614
  currentItemStrokeColor: string;
629
615
  currentItemBackgroundColor: string;
630
- currentItemFillStyle: import("../element/types").FillStyle;
616
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
631
617
  currentItemStrokeWidth: number;
632
618
  currentItemRoughness: number;
633
619
  currentItemOpacity: number;
@@ -637,7 +623,7 @@ export declare const actionChangeStrokeStyle: {
637
623
  currentItemStartArrowhead: Arrowhead | null;
638
624
  currentItemEndArrowhead: Arrowhead | null;
639
625
  currentHoveredFontFamily: number | null;
640
- currentItemRoundness: import("../element/types").StrokeRoundness;
626
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
641
627
  currentItemArrowType: "round" | "sharp" | "elbow";
642
628
  viewBackgroundColor: string;
643
629
  scrollX: number;
@@ -660,7 +646,7 @@ export declare const actionChangeStrokeStyle: {
660
646
  name: "imageExport" | "help" | "jsonExport";
661
647
  } | {
662
648
  name: "ttd";
663
- tab: "text-to-diagram" | "mermaid";
649
+ tab: "mermaid" | "text-to-diagram";
664
650
  } | {
665
651
  name: "commandPalette";
666
652
  } | {
@@ -668,7 +654,7 @@ export declare const actionChangeStrokeStyle: {
668
654
  sourceElementId: string;
669
655
  } | null;
670
656
  defaultSidebarDockedPreference: boolean;
671
- lastPointerDownWith: import("../element/types").PointerType;
657
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
672
658
  selectedElementIds: Readonly<{
673
659
  [id: string]: true;
674
660
  }>;
@@ -686,7 +672,7 @@ export declare const actionChangeStrokeStyle: {
686
672
  duration?: number | undefined;
687
673
  } | null;
688
674
  zenModeEnabled: boolean;
689
- theme: import("../element/types").Theme;
675
+ theme: import("@excalidraw/element/types").Theme;
690
676
  gridSize: number;
691
677
  gridStep: number;
692
678
  gridModeEnabled: boolean;
@@ -707,7 +693,7 @@ export declare const actionChangeStrokeStyle: {
707
693
  [id: string]: true;
708
694
  }> | undefined;
709
695
  username?: string | null | undefined;
710
- userState?: import("../constants").UserIdleState | undefined;
696
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
711
697
  color?: {
712
698
  background: string;
713
699
  stroke: string;
@@ -724,7 +710,7 @@ export declare const actionChangeStrokeStyle: {
724
710
  open: boolean;
725
711
  panels: number;
726
712
  };
727
- currentChartType: import("../element/types").ChartType;
713
+ currentChartType: import("@excalidraw/element/types").ChartType;
728
714
  pasteDialog: {
729
715
  shown: false;
730
716
  data: null;
@@ -733,7 +719,7 @@ export declare const actionChangeStrokeStyle: {
733
719
  data: import("../charts").Spreadsheet;
734
720
  };
735
721
  pendingImageElementId: string | null;
736
- showHyperlinkPopup: false | "info" | "editor";
722
+ showHyperlinkPopup: false | "editor" | "info";
737
723
  selectedLinearElement: LinearElementEditor | null;
738
724
  snapLines: readonly import("../snapping").SnapLine[];
739
725
  originSnapOffset: {
@@ -745,16 +731,10 @@ export declare const actionChangeStrokeStyle: {
745
731
  followedBy: Set<import("../types").SocketId>;
746
732
  isCropping: boolean;
747
733
  croppingElementId: string | null;
748
- searchMatches: readonly {
749
- id: string;
750
- focus: boolean;
751
- matchedLines: {
752
- offsetX: number;
753
- offsetY: number;
754
- width: number;
755
- height: number;
756
- }[];
757
- }[];
734
+ searchMatches: Readonly<{
735
+ focusedId: string | null;
736
+ matches: readonly import("../types").SearchMatch[];
737
+ }> | null;
758
738
  };
759
739
  captureUpdate: "IMMEDIATELY";
760
740
  };
@@ -766,7 +746,7 @@ export declare const actionChangeOpacity: {
766
746
  name: "changeOpacity";
767
747
  label: string;
768
748
  trackEvent: false;
769
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
749
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
770
750
  elements: ExcalidrawElement[];
771
751
  appState: {
772
752
  currentItemOpacity: any;
@@ -779,17 +759,17 @@ export declare const actionChangeOpacity: {
779
759
  isLoading: boolean;
780
760
  errorMessage: import("react").ReactNode;
781
761
  activeEmbeddable: {
782
- element: import("../element/types").NonDeletedExcalidrawElement;
783
- state: "hover" | "active";
762
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
763
+ state: "active" | "hover";
784
764
  } | null;
785
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
786
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
787
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
788
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
765
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
766
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
767
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
768
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
789
769
  isBindingEnabled: boolean;
790
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
791
- suggestedBindings: import("../element/binding").SuggestedBinding[];
792
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
770
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
771
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
772
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
793
773
  frameRendering: {
794
774
  enabled: boolean;
795
775
  name: boolean;
@@ -797,12 +777,13 @@ export declare const actionChangeOpacity: {
797
777
  clip: boolean;
798
778
  };
799
779
  editingFrame: string | null;
800
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
801
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
780
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
781
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
802
782
  editingLinearElement: LinearElementEditor | null;
803
783
  activeTool: {
804
784
  lastActiveTool: import("../types").ActiveTool | null;
805
785
  locked: boolean;
786
+ fromSelection: boolean;
806
787
  } & import("../types").ActiveTool;
807
788
  penMode: boolean;
808
789
  penDetected: boolean;
@@ -812,9 +793,9 @@ export declare const actionChangeOpacity: {
812
793
  exportScale: number;
813
794
  currentItemStrokeColor: string;
814
795
  currentItemBackgroundColor: string;
815
- currentItemFillStyle: import("../element/types").FillStyle;
796
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
816
797
  currentItemStrokeWidth: number;
817
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
798
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
818
799
  currentItemRoughness: number;
819
800
  currentItemFontFamily: number;
820
801
  currentItemFontSize: number;
@@ -822,7 +803,7 @@ export declare const actionChangeOpacity: {
822
803
  currentItemStartArrowhead: Arrowhead | null;
823
804
  currentItemEndArrowhead: Arrowhead | null;
824
805
  currentHoveredFontFamily: number | null;
825
- currentItemRoundness: import("../element/types").StrokeRoundness;
806
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
826
807
  currentItemArrowType: "round" | "sharp" | "elbow";
827
808
  viewBackgroundColor: string;
828
809
  scrollX: number;
@@ -845,7 +826,7 @@ export declare const actionChangeOpacity: {
845
826
  name: "imageExport" | "help" | "jsonExport";
846
827
  } | {
847
828
  name: "ttd";
848
- tab: "text-to-diagram" | "mermaid";
829
+ tab: "mermaid" | "text-to-diagram";
849
830
  } | {
850
831
  name: "commandPalette";
851
832
  } | {
@@ -853,7 +834,7 @@ export declare const actionChangeOpacity: {
853
834
  sourceElementId: string;
854
835
  } | null;
855
836
  defaultSidebarDockedPreference: boolean;
856
- lastPointerDownWith: import("../element/types").PointerType;
837
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
857
838
  selectedElementIds: Readonly<{
858
839
  [id: string]: true;
859
840
  }>;
@@ -871,7 +852,7 @@ export declare const actionChangeOpacity: {
871
852
  duration?: number | undefined;
872
853
  } | null;
873
854
  zenModeEnabled: boolean;
874
- theme: import("../element/types").Theme;
855
+ theme: import("@excalidraw/element/types").Theme;
875
856
  gridSize: number;
876
857
  gridStep: number;
877
858
  gridModeEnabled: boolean;
@@ -892,7 +873,7 @@ export declare const actionChangeOpacity: {
892
873
  [id: string]: true;
893
874
  }> | undefined;
894
875
  username?: string | null | undefined;
895
- userState?: import("../constants").UserIdleState | undefined;
876
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
896
877
  color?: {
897
878
  background: string;
898
879
  stroke: string;
@@ -909,7 +890,7 @@ export declare const actionChangeOpacity: {
909
890
  open: boolean;
910
891
  panels: number;
911
892
  };
912
- currentChartType: import("../element/types").ChartType;
893
+ currentChartType: import("@excalidraw/element/types").ChartType;
913
894
  pasteDialog: {
914
895
  shown: false;
915
896
  data: null;
@@ -918,7 +899,7 @@ export declare const actionChangeOpacity: {
918
899
  data: import("../charts").Spreadsheet;
919
900
  };
920
901
  pendingImageElementId: string | null;
921
- showHyperlinkPopup: false | "info" | "editor";
902
+ showHyperlinkPopup: false | "editor" | "info";
922
903
  selectedLinearElement: LinearElementEditor | null;
923
904
  snapLines: readonly import("../snapping").SnapLine[];
924
905
  originSnapOffset: {
@@ -930,16 +911,10 @@ export declare const actionChangeOpacity: {
930
911
  followedBy: Set<import("../types").SocketId>;
931
912
  isCropping: boolean;
932
913
  croppingElementId: string | null;
933
- searchMatches: readonly {
934
- id: string;
935
- focus: boolean;
936
- matchedLines: {
937
- offsetX: number;
938
- offsetY: number;
939
- width: number;
940
- height: number;
941
- }[];
942
- }[];
914
+ searchMatches: Readonly<{
915
+ focusedId: string | null;
916
+ matches: readonly import("../types").SearchMatch[];
917
+ }> | null;
943
918
  };
944
919
  captureUpdate: "IMMEDIATELY";
945
920
  };
@@ -951,7 +926,7 @@ export declare const actionChangeFontSize: {
951
926
  name: "changeFontSize";
952
927
  label: string;
953
928
  trackEvent: false;
954
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
929
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
955
930
  elements: ExcalidrawElement[];
956
931
  appState: {
957
932
  currentItemFontSize: number;
@@ -964,17 +939,17 @@ export declare const actionChangeFontSize: {
964
939
  isLoading: boolean;
965
940
  errorMessage: import("react").ReactNode;
966
941
  activeEmbeddable: {
967
- element: import("../element/types").NonDeletedExcalidrawElement;
968
- state: "hover" | "active";
942
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
943
+ state: "active" | "hover";
969
944
  } | null;
970
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
971
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
972
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
973
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
945
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
946
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
947
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
948
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
974
949
  isBindingEnabled: boolean;
975
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
976
- suggestedBindings: import("../element/binding").SuggestedBinding[];
977
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
950
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
951
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
952
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
978
953
  frameRendering: {
979
954
  enabled: boolean;
980
955
  name: boolean;
@@ -982,12 +957,13 @@ export declare const actionChangeFontSize: {
982
957
  clip: boolean;
983
958
  };
984
959
  editingFrame: string | null;
985
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
986
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
960
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
961
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
987
962
  editingLinearElement: LinearElementEditor | null;
988
963
  activeTool: {
989
964
  lastActiveTool: import("../types").ActiveTool | null;
990
965
  locked: boolean;
966
+ fromSelection: boolean;
991
967
  } & import("../types").ActiveTool;
992
968
  penMode: boolean;
993
969
  penDetected: boolean;
@@ -997,9 +973,9 @@ export declare const actionChangeFontSize: {
997
973
  exportScale: number;
998
974
  currentItemStrokeColor: string;
999
975
  currentItemBackgroundColor: string;
1000
- currentItemFillStyle: import("../element/types").FillStyle;
976
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1001
977
  currentItemStrokeWidth: number;
1002
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
978
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1003
979
  currentItemRoughness: number;
1004
980
  currentItemOpacity: number;
1005
981
  currentItemFontFamily: number;
@@ -1007,7 +983,7 @@ export declare const actionChangeFontSize: {
1007
983
  currentItemStartArrowhead: Arrowhead | null;
1008
984
  currentItemEndArrowhead: Arrowhead | null;
1009
985
  currentHoveredFontFamily: number | null;
1010
- currentItemRoundness: import("../element/types").StrokeRoundness;
986
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1011
987
  currentItemArrowType: "round" | "sharp" | "elbow";
1012
988
  viewBackgroundColor: string;
1013
989
  scrollX: number;
@@ -1030,7 +1006,7 @@ export declare const actionChangeFontSize: {
1030
1006
  name: "imageExport" | "help" | "jsonExport";
1031
1007
  } | {
1032
1008
  name: "ttd";
1033
- tab: "text-to-diagram" | "mermaid";
1009
+ tab: "mermaid" | "text-to-diagram";
1034
1010
  } | {
1035
1011
  name: "commandPalette";
1036
1012
  } | {
@@ -1038,7 +1014,7 @@ export declare const actionChangeFontSize: {
1038
1014
  sourceElementId: string;
1039
1015
  } | null;
1040
1016
  defaultSidebarDockedPreference: boolean;
1041
- lastPointerDownWith: import("../element/types").PointerType;
1017
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1042
1018
  selectedElementIds: Readonly<{
1043
1019
  [id: string]: true;
1044
1020
  }>;
@@ -1056,7 +1032,7 @@ export declare const actionChangeFontSize: {
1056
1032
  duration?: number | undefined;
1057
1033
  } | null;
1058
1034
  zenModeEnabled: boolean;
1059
- theme: import("../element/types").Theme;
1035
+ theme: import("@excalidraw/element/types").Theme;
1060
1036
  gridSize: number;
1061
1037
  gridStep: number;
1062
1038
  gridModeEnabled: boolean;
@@ -1077,7 +1053,7 @@ export declare const actionChangeFontSize: {
1077
1053
  [id: string]: true;
1078
1054
  }> | undefined;
1079
1055
  username?: string | null | undefined;
1080
- userState?: import("../constants").UserIdleState | undefined;
1056
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1081
1057
  color?: {
1082
1058
  background: string;
1083
1059
  stroke: string;
@@ -1094,7 +1070,7 @@ export declare const actionChangeFontSize: {
1094
1070
  open: boolean;
1095
1071
  panels: number;
1096
1072
  };
1097
- currentChartType: import("../element/types").ChartType;
1073
+ currentChartType: import("@excalidraw/element/types").ChartType;
1098
1074
  pasteDialog: {
1099
1075
  shown: false;
1100
1076
  data: null;
@@ -1103,7 +1079,7 @@ export declare const actionChangeFontSize: {
1103
1079
  data: import("../charts").Spreadsheet;
1104
1080
  };
1105
1081
  pendingImageElementId: string | null;
1106
- showHyperlinkPopup: false | "info" | "editor";
1082
+ showHyperlinkPopup: false | "editor" | "info";
1107
1083
  selectedLinearElement: LinearElementEditor | null;
1108
1084
  snapLines: readonly import("../snapping").SnapLine[];
1109
1085
  originSnapOffset: {
@@ -1115,16 +1091,10 @@ export declare const actionChangeFontSize: {
1115
1091
  followedBy: Set<import("../types").SocketId>;
1116
1092
  isCropping: boolean;
1117
1093
  croppingElementId: string | null;
1118
- searchMatches: readonly {
1119
- id: string;
1120
- focus: boolean;
1121
- matchedLines: {
1122
- offsetX: number;
1123
- offsetY: number;
1124
- width: number;
1125
- height: number;
1126
- }[];
1127
- }[];
1094
+ searchMatches: Readonly<{
1095
+ focusedId: string | null;
1096
+ matches: readonly import("../types").SearchMatch[];
1097
+ }> | null;
1128
1098
  };
1129
1099
  captureUpdate: "IMMEDIATELY";
1130
1100
  };
@@ -1137,7 +1107,7 @@ export declare const actionDecreaseFontSize: {
1137
1107
  label: string;
1138
1108
  icon: import("react/jsx-runtime").JSX.Element;
1139
1109
  trackEvent: false;
1140
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1110
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1141
1111
  elements: ExcalidrawElement[];
1142
1112
  appState: {
1143
1113
  currentItemFontSize: number;
@@ -1150,17 +1120,17 @@ export declare const actionDecreaseFontSize: {
1150
1120
  isLoading: boolean;
1151
1121
  errorMessage: import("react").ReactNode;
1152
1122
  activeEmbeddable: {
1153
- element: import("../element/types").NonDeletedExcalidrawElement;
1154
- state: "hover" | "active";
1123
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1124
+ state: "active" | "hover";
1155
1125
  } | null;
1156
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1157
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1158
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1159
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1126
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1127
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1128
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1129
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1160
1130
  isBindingEnabled: boolean;
1161
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1162
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1163
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1131
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1132
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1133
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1164
1134
  frameRendering: {
1165
1135
  enabled: boolean;
1166
1136
  name: boolean;
@@ -1168,12 +1138,13 @@ export declare const actionDecreaseFontSize: {
1168
1138
  clip: boolean;
1169
1139
  };
1170
1140
  editingFrame: string | null;
1171
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1172
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1141
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1142
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1173
1143
  editingLinearElement: LinearElementEditor | null;
1174
1144
  activeTool: {
1175
1145
  lastActiveTool: import("../types").ActiveTool | null;
1176
1146
  locked: boolean;
1147
+ fromSelection: boolean;
1177
1148
  } & import("../types").ActiveTool;
1178
1149
  penMode: boolean;
1179
1150
  penDetected: boolean;
@@ -1183,9 +1154,9 @@ export declare const actionDecreaseFontSize: {
1183
1154
  exportScale: number;
1184
1155
  currentItemStrokeColor: string;
1185
1156
  currentItemBackgroundColor: string;
1186
- currentItemFillStyle: import("../element/types").FillStyle;
1157
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1187
1158
  currentItemStrokeWidth: number;
1188
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1159
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1189
1160
  currentItemRoughness: number;
1190
1161
  currentItemOpacity: number;
1191
1162
  currentItemFontFamily: number;
@@ -1193,7 +1164,7 @@ export declare const actionDecreaseFontSize: {
1193
1164
  currentItemStartArrowhead: Arrowhead | null;
1194
1165
  currentItemEndArrowhead: Arrowhead | null;
1195
1166
  currentHoveredFontFamily: number | null;
1196
- currentItemRoundness: import("../element/types").StrokeRoundness;
1167
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1197
1168
  currentItemArrowType: "round" | "sharp" | "elbow";
1198
1169
  viewBackgroundColor: string;
1199
1170
  scrollX: number;
@@ -1216,7 +1187,7 @@ export declare const actionDecreaseFontSize: {
1216
1187
  name: "imageExport" | "help" | "jsonExport";
1217
1188
  } | {
1218
1189
  name: "ttd";
1219
- tab: "text-to-diagram" | "mermaid";
1190
+ tab: "mermaid" | "text-to-diagram";
1220
1191
  } | {
1221
1192
  name: "commandPalette";
1222
1193
  } | {
@@ -1224,7 +1195,7 @@ export declare const actionDecreaseFontSize: {
1224
1195
  sourceElementId: string;
1225
1196
  } | null;
1226
1197
  defaultSidebarDockedPreference: boolean;
1227
- lastPointerDownWith: import("../element/types").PointerType;
1198
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1228
1199
  selectedElementIds: Readonly<{
1229
1200
  [id: string]: true;
1230
1201
  }>;
@@ -1242,7 +1213,7 @@ export declare const actionDecreaseFontSize: {
1242
1213
  duration?: number | undefined;
1243
1214
  } | null;
1244
1215
  zenModeEnabled: boolean;
1245
- theme: import("../element/types").Theme;
1216
+ theme: import("@excalidraw/element/types").Theme;
1246
1217
  gridSize: number;
1247
1218
  gridStep: number;
1248
1219
  gridModeEnabled: boolean;
@@ -1263,7 +1234,7 @@ export declare const actionDecreaseFontSize: {
1263
1234
  [id: string]: true;
1264
1235
  }> | undefined;
1265
1236
  username?: string | null | undefined;
1266
- userState?: import("../constants").UserIdleState | undefined;
1237
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1267
1238
  color?: {
1268
1239
  background: string;
1269
1240
  stroke: string;
@@ -1280,7 +1251,7 @@ export declare const actionDecreaseFontSize: {
1280
1251
  open: boolean;
1281
1252
  panels: number;
1282
1253
  };
1283
- currentChartType: import("../element/types").ChartType;
1254
+ currentChartType: import("@excalidraw/element/types").ChartType;
1284
1255
  pasteDialog: {
1285
1256
  shown: false;
1286
1257
  data: null;
@@ -1289,7 +1260,7 @@ export declare const actionDecreaseFontSize: {
1289
1260
  data: import("../charts").Spreadsheet;
1290
1261
  };
1291
1262
  pendingImageElementId: string | null;
1292
- showHyperlinkPopup: false | "info" | "editor";
1263
+ showHyperlinkPopup: false | "editor" | "info";
1293
1264
  selectedLinearElement: LinearElementEditor | null;
1294
1265
  snapLines: readonly import("../snapping").SnapLine[];
1295
1266
  originSnapOffset: {
@@ -1301,29 +1272,23 @@ export declare const actionDecreaseFontSize: {
1301
1272
  followedBy: Set<import("../types").SocketId>;
1302
1273
  isCropping: boolean;
1303
1274
  croppingElementId: string | null;
1304
- searchMatches: readonly {
1305
- id: string;
1306
- focus: boolean;
1307
- matchedLines: {
1308
- offsetX: number;
1309
- offsetY: number;
1310
- width: number;
1311
- height: number;
1312
- }[];
1313
- }[];
1275
+ searchMatches: Readonly<{
1276
+ focusedId: string | null;
1277
+ matches: readonly import("../types").SearchMatch[];
1278
+ }> | null;
1314
1279
  };
1315
1280
  captureUpdate: "IMMEDIATELY";
1316
1281
  };
1317
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1282
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1318
1283
  } & {
1319
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1284
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1320
1285
  };
1321
1286
  export declare const actionIncreaseFontSize: {
1322
1287
  name: "increaseFontSize";
1323
1288
  label: string;
1324
1289
  icon: import("react/jsx-runtime").JSX.Element;
1325
1290
  trackEvent: false;
1326
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1291
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1327
1292
  elements: ExcalidrawElement[];
1328
1293
  appState: {
1329
1294
  currentItemFontSize: number;
@@ -1336,17 +1301,17 @@ export declare const actionIncreaseFontSize: {
1336
1301
  isLoading: boolean;
1337
1302
  errorMessage: import("react").ReactNode;
1338
1303
  activeEmbeddable: {
1339
- element: import("../element/types").NonDeletedExcalidrawElement;
1340
- state: "hover" | "active";
1304
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1305
+ state: "active" | "hover";
1341
1306
  } | null;
1342
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1343
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1344
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1345
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1307
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1308
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1309
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1310
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1346
1311
  isBindingEnabled: boolean;
1347
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1348
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1349
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1312
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1313
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1314
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1350
1315
  frameRendering: {
1351
1316
  enabled: boolean;
1352
1317
  name: boolean;
@@ -1354,12 +1319,13 @@ export declare const actionIncreaseFontSize: {
1354
1319
  clip: boolean;
1355
1320
  };
1356
1321
  editingFrame: string | null;
1357
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1358
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1322
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1323
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1359
1324
  editingLinearElement: LinearElementEditor | null;
1360
1325
  activeTool: {
1361
1326
  lastActiveTool: import("../types").ActiveTool | null;
1362
1327
  locked: boolean;
1328
+ fromSelection: boolean;
1363
1329
  } & import("../types").ActiveTool;
1364
1330
  penMode: boolean;
1365
1331
  penDetected: boolean;
@@ -1369,9 +1335,9 @@ export declare const actionIncreaseFontSize: {
1369
1335
  exportScale: number;
1370
1336
  currentItemStrokeColor: string;
1371
1337
  currentItemBackgroundColor: string;
1372
- currentItemFillStyle: import("../element/types").FillStyle;
1338
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1373
1339
  currentItemStrokeWidth: number;
1374
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1340
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1375
1341
  currentItemRoughness: number;
1376
1342
  currentItemOpacity: number;
1377
1343
  currentItemFontFamily: number;
@@ -1379,7 +1345,7 @@ export declare const actionIncreaseFontSize: {
1379
1345
  currentItemStartArrowhead: Arrowhead | null;
1380
1346
  currentItemEndArrowhead: Arrowhead | null;
1381
1347
  currentHoveredFontFamily: number | null;
1382
- currentItemRoundness: import("../element/types").StrokeRoundness;
1348
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1383
1349
  currentItemArrowType: "round" | "sharp" | "elbow";
1384
1350
  viewBackgroundColor: string;
1385
1351
  scrollX: number;
@@ -1402,7 +1368,7 @@ export declare const actionIncreaseFontSize: {
1402
1368
  name: "imageExport" | "help" | "jsonExport";
1403
1369
  } | {
1404
1370
  name: "ttd";
1405
- tab: "text-to-diagram" | "mermaid";
1371
+ tab: "mermaid" | "text-to-diagram";
1406
1372
  } | {
1407
1373
  name: "commandPalette";
1408
1374
  } | {
@@ -1410,7 +1376,7 @@ export declare const actionIncreaseFontSize: {
1410
1376
  sourceElementId: string;
1411
1377
  } | null;
1412
1378
  defaultSidebarDockedPreference: boolean;
1413
- lastPointerDownWith: import("../element/types").PointerType;
1379
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1414
1380
  selectedElementIds: Readonly<{
1415
1381
  [id: string]: true;
1416
1382
  }>;
@@ -1428,7 +1394,7 @@ export declare const actionIncreaseFontSize: {
1428
1394
  duration?: number | undefined;
1429
1395
  } | null;
1430
1396
  zenModeEnabled: boolean;
1431
- theme: import("../element/types").Theme;
1397
+ theme: import("@excalidraw/element/types").Theme;
1432
1398
  gridSize: number;
1433
1399
  gridStep: number;
1434
1400
  gridModeEnabled: boolean;
@@ -1449,7 +1415,7 @@ export declare const actionIncreaseFontSize: {
1449
1415
  [id: string]: true;
1450
1416
  }> | undefined;
1451
1417
  username?: string | null | undefined;
1452
- userState?: import("../constants").UserIdleState | undefined;
1418
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1453
1419
  color?: {
1454
1420
  background: string;
1455
1421
  stroke: string;
@@ -1466,7 +1432,7 @@ export declare const actionIncreaseFontSize: {
1466
1432
  open: boolean;
1467
1433
  panels: number;
1468
1434
  };
1469
- currentChartType: import("../element/types").ChartType;
1435
+ currentChartType: import("@excalidraw/element/types").ChartType;
1470
1436
  pasteDialog: {
1471
1437
  shown: false;
1472
1438
  data: null;
@@ -1475,7 +1441,7 @@ export declare const actionIncreaseFontSize: {
1475
1441
  data: import("../charts").Spreadsheet;
1476
1442
  };
1477
1443
  pendingImageElementId: string | null;
1478
- showHyperlinkPopup: false | "info" | "editor";
1444
+ showHyperlinkPopup: false | "editor" | "info";
1479
1445
  selectedLinearElement: LinearElementEditor | null;
1480
1446
  snapLines: readonly import("../snapping").SnapLine[];
1481
1447
  originSnapOffset: {
@@ -1487,31 +1453,25 @@ export declare const actionIncreaseFontSize: {
1487
1453
  followedBy: Set<import("../types").SocketId>;
1488
1454
  isCropping: boolean;
1489
1455
  croppingElementId: string | null;
1490
- searchMatches: readonly {
1491
- id: string;
1492
- focus: boolean;
1493
- matchedLines: {
1494
- offsetX: number;
1495
- offsetY: number;
1496
- width: number;
1497
- height: number;
1498
- }[];
1499
- }[];
1456
+ searchMatches: Readonly<{
1457
+ focusedId: string | null;
1458
+ matches: readonly import("../types").SearchMatch[];
1459
+ }> | null;
1500
1460
  };
1501
1461
  captureUpdate: "IMMEDIATELY";
1502
1462
  };
1503
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1463
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1504
1464
  } & {
1505
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1465
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1506
1466
  };
1507
1467
  export declare const actionChangeFontFamily: {
1508
1468
  name: "changeFontFamily";
1509
1469
  label: string;
1510
1470
  trackEvent: false;
1511
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1471
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1512
1472
  appState: {
1513
- currentItemFontFamily: number;
1514
1473
  currentHoveredFontFamily: number | null;
1474
+ currentItemFontFamily: number;
1515
1475
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1516
1476
  contextMenu: {
1517
1477
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -1522,17 +1482,17 @@ export declare const actionChangeFontFamily: {
1522
1482
  isLoading: boolean;
1523
1483
  errorMessage: import("react").ReactNode;
1524
1484
  activeEmbeddable: {
1525
- element: import("../element/types").NonDeletedExcalidrawElement;
1526
- state: "hover" | "active";
1485
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1486
+ state: "active" | "hover";
1527
1487
  } | null;
1528
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1529
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1530
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1531
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1488
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1489
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1490
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1491
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1532
1492
  isBindingEnabled: boolean;
1533
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1534
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1535
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1493
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1494
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1495
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1536
1496
  frameRendering: {
1537
1497
  enabled: boolean;
1538
1498
  name: boolean;
@@ -1540,12 +1500,13 @@ export declare const actionChangeFontFamily: {
1540
1500
  clip: boolean;
1541
1501
  };
1542
1502
  editingFrame: string | null;
1543
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1544
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1503
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1504
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1545
1505
  editingLinearElement: LinearElementEditor | null;
1546
1506
  activeTool: {
1547
1507
  lastActiveTool: import("../types").ActiveTool | null;
1548
1508
  locked: boolean;
1509
+ fromSelection: boolean;
1549
1510
  } & import("../types").ActiveTool;
1550
1511
  penMode: boolean;
1551
1512
  penDetected: boolean;
@@ -1555,16 +1516,16 @@ export declare const actionChangeFontFamily: {
1555
1516
  exportScale: number;
1556
1517
  currentItemStrokeColor: string;
1557
1518
  currentItemBackgroundColor: string;
1558
- currentItemFillStyle: import("../element/types").FillStyle;
1519
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1559
1520
  currentItemStrokeWidth: number;
1560
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1521
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1561
1522
  currentItemRoughness: number;
1562
1523
  currentItemOpacity: number;
1563
1524
  currentItemFontSize: number;
1564
1525
  currentItemTextAlign: string;
1565
1526
  currentItemStartArrowhead: Arrowhead | null;
1566
1527
  currentItemEndArrowhead: Arrowhead | null;
1567
- currentItemRoundness: import("../element/types").StrokeRoundness;
1528
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1568
1529
  currentItemArrowType: "round" | "sharp" | "elbow";
1569
1530
  viewBackgroundColor: string;
1570
1531
  scrollX: number;
@@ -1586,7 +1547,7 @@ export declare const actionChangeFontFamily: {
1586
1547
  name: "imageExport" | "help" | "jsonExport";
1587
1548
  } | {
1588
1549
  name: "ttd";
1589
- tab: "text-to-diagram" | "mermaid";
1550
+ tab: "mermaid" | "text-to-diagram";
1590
1551
  } | {
1591
1552
  name: "commandPalette";
1592
1553
  } | {
@@ -1594,7 +1555,7 @@ export declare const actionChangeFontFamily: {
1594
1555
  sourceElementId: string;
1595
1556
  } | null;
1596
1557
  defaultSidebarDockedPreference: boolean;
1597
- lastPointerDownWith: import("../element/types").PointerType;
1558
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1598
1559
  selectedElementIds: Readonly<{
1599
1560
  [id: string]: true;
1600
1561
  }>;
@@ -1612,7 +1573,7 @@ export declare const actionChangeFontFamily: {
1612
1573
  duration?: number | undefined;
1613
1574
  } | null;
1614
1575
  zenModeEnabled: boolean;
1615
- theme: import("../element/types").Theme;
1576
+ theme: import("@excalidraw/element/types").Theme;
1616
1577
  gridSize: number;
1617
1578
  gridStep: number;
1618
1579
  gridModeEnabled: boolean;
@@ -1633,7 +1594,7 @@ export declare const actionChangeFontFamily: {
1633
1594
  [id: string]: true;
1634
1595
  }> | undefined;
1635
1596
  username?: string | null | undefined;
1636
- userState?: import("../constants").UserIdleState | undefined;
1597
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1637
1598
  color?: {
1638
1599
  background: string;
1639
1600
  stroke: string;
@@ -1650,7 +1611,7 @@ export declare const actionChangeFontFamily: {
1650
1611
  open: boolean;
1651
1612
  panels: number;
1652
1613
  };
1653
- currentChartType: import("../element/types").ChartType;
1614
+ currentChartType: import("@excalidraw/element/types").ChartType;
1654
1615
  pasteDialog: {
1655
1616
  shown: false;
1656
1617
  data: null;
@@ -1659,7 +1620,7 @@ export declare const actionChangeFontFamily: {
1659
1620
  data: import("../charts").Spreadsheet;
1660
1621
  };
1661
1622
  pendingImageElementId: string | null;
1662
- showHyperlinkPopup: false | "info" | "editor";
1623
+ showHyperlinkPopup: false | "editor" | "info";
1663
1624
  selectedLinearElement: LinearElementEditor | null;
1664
1625
  snapLines: readonly import("../snapping").SnapLine[];
1665
1626
  originSnapOffset: {
@@ -1671,23 +1632,17 @@ export declare const actionChangeFontFamily: {
1671
1632
  followedBy: Set<import("../types").SocketId>;
1672
1633
  isCropping: boolean;
1673
1634
  croppingElementId: string | null;
1674
- searchMatches: readonly {
1675
- id: string;
1676
- focus: boolean;
1677
- matchedLines: {
1678
- offsetX: number;
1679
- offsetY: number;
1680
- width: number;
1681
- height: number;
1682
- }[];
1683
- }[];
1635
+ searchMatches: Readonly<{
1636
+ focusedId: string | null;
1637
+ matches: readonly import("../types").SearchMatch[];
1638
+ }> | null;
1684
1639
  };
1685
1640
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
1686
1641
  } | {
1687
1642
  elements: ExcalidrawElement[];
1688
1643
  appState: {
1689
- currentItemFontFamily: number;
1690
1644
  currentHoveredFontFamily: number | null;
1645
+ currentItemFontFamily: number;
1691
1646
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1692
1647
  contextMenu: {
1693
1648
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -1698,17 +1653,17 @@ export declare const actionChangeFontFamily: {
1698
1653
  isLoading: boolean;
1699
1654
  errorMessage: import("react").ReactNode;
1700
1655
  activeEmbeddable: {
1701
- element: import("../element/types").NonDeletedExcalidrawElement;
1702
- state: "hover" | "active";
1656
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1657
+ state: "active" | "hover";
1703
1658
  } | null;
1704
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1705
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1706
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1707
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1659
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1660
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1661
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1662
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1708
1663
  isBindingEnabled: boolean;
1709
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1710
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1711
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1664
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1665
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1666
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1712
1667
  frameRendering: {
1713
1668
  enabled: boolean;
1714
1669
  name: boolean;
@@ -1716,12 +1671,13 @@ export declare const actionChangeFontFamily: {
1716
1671
  clip: boolean;
1717
1672
  };
1718
1673
  editingFrame: string | null;
1719
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1720
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1674
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1675
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1721
1676
  editingLinearElement: LinearElementEditor | null;
1722
1677
  activeTool: {
1723
1678
  lastActiveTool: import("../types").ActiveTool | null;
1724
1679
  locked: boolean;
1680
+ fromSelection: boolean;
1725
1681
  } & import("../types").ActiveTool;
1726
1682
  penMode: boolean;
1727
1683
  penDetected: boolean;
@@ -1731,16 +1687,16 @@ export declare const actionChangeFontFamily: {
1731
1687
  exportScale: number;
1732
1688
  currentItemStrokeColor: string;
1733
1689
  currentItemBackgroundColor: string;
1734
- currentItemFillStyle: import("../element/types").FillStyle;
1690
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1735
1691
  currentItemStrokeWidth: number;
1736
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1692
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1737
1693
  currentItemRoughness: number;
1738
1694
  currentItemOpacity: number;
1739
1695
  currentItemFontSize: number;
1740
1696
  currentItemTextAlign: string;
1741
1697
  currentItemStartArrowhead: Arrowhead | null;
1742
1698
  currentItemEndArrowhead: Arrowhead | null;
1743
- currentItemRoundness: import("../element/types").StrokeRoundness;
1699
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1744
1700
  currentItemArrowType: "round" | "sharp" | "elbow";
1745
1701
  viewBackgroundColor: string;
1746
1702
  scrollX: number;
@@ -1762,7 +1718,7 @@ export declare const actionChangeFontFamily: {
1762
1718
  name: "imageExport" | "help" | "jsonExport";
1763
1719
  } | {
1764
1720
  name: "ttd";
1765
- tab: "text-to-diagram" | "mermaid";
1721
+ tab: "mermaid" | "text-to-diagram";
1766
1722
  } | {
1767
1723
  name: "commandPalette";
1768
1724
  } | {
@@ -1770,7 +1726,7 @@ export declare const actionChangeFontFamily: {
1770
1726
  sourceElementId: string;
1771
1727
  } | null;
1772
1728
  defaultSidebarDockedPreference: boolean;
1773
- lastPointerDownWith: import("../element/types").PointerType;
1729
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1774
1730
  selectedElementIds: Readonly<{
1775
1731
  [id: string]: true;
1776
1732
  }>;
@@ -1788,7 +1744,7 @@ export declare const actionChangeFontFamily: {
1788
1744
  duration?: number | undefined;
1789
1745
  } | null;
1790
1746
  zenModeEnabled: boolean;
1791
- theme: import("../element/types").Theme;
1747
+ theme: import("@excalidraw/element/types").Theme;
1792
1748
  gridSize: number;
1793
1749
  gridStep: number;
1794
1750
  gridModeEnabled: boolean;
@@ -1809,7 +1765,7 @@ export declare const actionChangeFontFamily: {
1809
1765
  [id: string]: true;
1810
1766
  }> | undefined;
1811
1767
  username?: string | null | undefined;
1812
- userState?: import("../constants").UserIdleState | undefined;
1768
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1813
1769
  color?: {
1814
1770
  background: string;
1815
1771
  stroke: string;
@@ -1826,7 +1782,7 @@ export declare const actionChangeFontFamily: {
1826
1782
  open: boolean;
1827
1783
  panels: number;
1828
1784
  };
1829
- currentChartType: import("../element/types").ChartType;
1785
+ currentChartType: import("@excalidraw/element/types").ChartType;
1830
1786
  pasteDialog: {
1831
1787
  shown: false;
1832
1788
  data: null;
@@ -1835,7 +1791,7 @@ export declare const actionChangeFontFamily: {
1835
1791
  data: import("../charts").Spreadsheet;
1836
1792
  };
1837
1793
  pendingImageElementId: string | null;
1838
- showHyperlinkPopup: false | "info" | "editor";
1794
+ showHyperlinkPopup: false | "editor" | "info";
1839
1795
  selectedLinearElement: LinearElementEditor | null;
1840
1796
  snapLines: readonly import("../snapping").SnapLine[];
1841
1797
  originSnapOffset: {
@@ -1847,16 +1803,10 @@ export declare const actionChangeFontFamily: {
1847
1803
  followedBy: Set<import("../types").SocketId>;
1848
1804
  isCropping: boolean;
1849
1805
  croppingElementId: string | null;
1850
- searchMatches: readonly {
1851
- id: string;
1852
- focus: boolean;
1853
- matchedLines: {
1854
- offsetX: number;
1855
- offsetY: number;
1856
- width: number;
1857
- height: number;
1858
- }[];
1859
- }[];
1806
+ searchMatches: Readonly<{
1807
+ focusedId: string | null;
1808
+ matches: readonly import("../types").SearchMatch[];
1809
+ }> | null;
1860
1810
  };
1861
1811
  captureUpdate: "NEVER";
1862
1812
  };
@@ -1868,7 +1818,7 @@ export declare const actionChangeTextAlign: {
1868
1818
  name: "changeTextAlign";
1869
1819
  label: string;
1870
1820
  trackEvent: false;
1871
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1821
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1872
1822
  elements: ExcalidrawElement[];
1873
1823
  appState: {
1874
1824
  currentItemTextAlign: any;
@@ -1881,17 +1831,17 @@ export declare const actionChangeTextAlign: {
1881
1831
  isLoading: boolean;
1882
1832
  errorMessage: import("react").ReactNode;
1883
1833
  activeEmbeddable: {
1884
- element: import("../element/types").NonDeletedExcalidrawElement;
1885
- state: "hover" | "active";
1834
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1835
+ state: "active" | "hover";
1886
1836
  } | null;
1887
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1888
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1889
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1890
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1837
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1838
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1839
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1840
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1891
1841
  isBindingEnabled: boolean;
1892
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1893
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1894
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1842
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1843
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1844
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1895
1845
  frameRendering: {
1896
1846
  enabled: boolean;
1897
1847
  name: boolean;
@@ -1899,12 +1849,13 @@ export declare const actionChangeTextAlign: {
1899
1849
  clip: boolean;
1900
1850
  };
1901
1851
  editingFrame: string | null;
1902
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1903
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1852
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1853
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1904
1854
  editingLinearElement: LinearElementEditor | null;
1905
1855
  activeTool: {
1906
1856
  lastActiveTool: import("../types").ActiveTool | null;
1907
1857
  locked: boolean;
1858
+ fromSelection: boolean;
1908
1859
  } & import("../types").ActiveTool;
1909
1860
  penMode: boolean;
1910
1861
  penDetected: boolean;
@@ -1914,9 +1865,9 @@ export declare const actionChangeTextAlign: {
1914
1865
  exportScale: number;
1915
1866
  currentItemStrokeColor: string;
1916
1867
  currentItemBackgroundColor: string;
1917
- currentItemFillStyle: import("../element/types").FillStyle;
1868
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1918
1869
  currentItemStrokeWidth: number;
1919
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1870
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1920
1871
  currentItemRoughness: number;
1921
1872
  currentItemOpacity: number;
1922
1873
  currentItemFontFamily: number;
@@ -1924,7 +1875,7 @@ export declare const actionChangeTextAlign: {
1924
1875
  currentItemStartArrowhead: Arrowhead | null;
1925
1876
  currentItemEndArrowhead: Arrowhead | null;
1926
1877
  currentHoveredFontFamily: number | null;
1927
- currentItemRoundness: import("../element/types").StrokeRoundness;
1878
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1928
1879
  currentItemArrowType: "round" | "sharp" | "elbow";
1929
1880
  viewBackgroundColor: string;
1930
1881
  scrollX: number;
@@ -1947,7 +1898,7 @@ export declare const actionChangeTextAlign: {
1947
1898
  name: "imageExport" | "help" | "jsonExport";
1948
1899
  } | {
1949
1900
  name: "ttd";
1950
- tab: "text-to-diagram" | "mermaid";
1901
+ tab: "mermaid" | "text-to-diagram";
1951
1902
  } | {
1952
1903
  name: "commandPalette";
1953
1904
  } | {
@@ -1955,7 +1906,7 @@ export declare const actionChangeTextAlign: {
1955
1906
  sourceElementId: string;
1956
1907
  } | null;
1957
1908
  defaultSidebarDockedPreference: boolean;
1958
- lastPointerDownWith: import("../element/types").PointerType;
1909
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1959
1910
  selectedElementIds: Readonly<{
1960
1911
  [id: string]: true;
1961
1912
  }>;
@@ -1973,7 +1924,7 @@ export declare const actionChangeTextAlign: {
1973
1924
  duration?: number | undefined;
1974
1925
  } | null;
1975
1926
  zenModeEnabled: boolean;
1976
- theme: import("../element/types").Theme;
1927
+ theme: import("@excalidraw/element/types").Theme;
1977
1928
  gridSize: number;
1978
1929
  gridStep: number;
1979
1930
  gridModeEnabled: boolean;
@@ -1994,7 +1945,7 @@ export declare const actionChangeTextAlign: {
1994
1945
  [id: string]: true;
1995
1946
  }> | undefined;
1996
1947
  username?: string | null | undefined;
1997
- userState?: import("../constants").UserIdleState | undefined;
1948
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1998
1949
  color?: {
1999
1950
  background: string;
2000
1951
  stroke: string;
@@ -2011,7 +1962,7 @@ export declare const actionChangeTextAlign: {
2011
1962
  open: boolean;
2012
1963
  panels: number;
2013
1964
  };
2014
- currentChartType: import("../element/types").ChartType;
1965
+ currentChartType: import("@excalidraw/element/types").ChartType;
2015
1966
  pasteDialog: {
2016
1967
  shown: false;
2017
1968
  data: null;
@@ -2020,7 +1971,7 @@ export declare const actionChangeTextAlign: {
2020
1971
  data: import("../charts").Spreadsheet;
2021
1972
  };
2022
1973
  pendingImageElementId: string | null;
2023
- showHyperlinkPopup: false | "info" | "editor";
1974
+ showHyperlinkPopup: false | "editor" | "info";
2024
1975
  selectedLinearElement: LinearElementEditor | null;
2025
1976
  snapLines: readonly import("../snapping").SnapLine[];
2026
1977
  originSnapOffset: {
@@ -2032,16 +1983,10 @@ export declare const actionChangeTextAlign: {
2032
1983
  followedBy: Set<import("../types").SocketId>;
2033
1984
  isCropping: boolean;
2034
1985
  croppingElementId: string | null;
2035
- searchMatches: readonly {
2036
- id: string;
2037
- focus: boolean;
2038
- matchedLines: {
2039
- offsetX: number;
2040
- offsetY: number;
2041
- width: number;
2042
- height: number;
2043
- }[];
2044
- }[];
1986
+ searchMatches: Readonly<{
1987
+ focusedId: string | null;
1988
+ matches: readonly import("../types").SearchMatch[];
1989
+ }> | null;
2045
1990
  };
2046
1991
  captureUpdate: "IMMEDIATELY";
2047
1992
  };
@@ -2055,7 +2000,7 @@ export declare const actionChangeVerticalAlign: {
2055
2000
  trackEvent: {
2056
2001
  category: "element";
2057
2002
  };
2058
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2003
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2059
2004
  elements: ExcalidrawElement[];
2060
2005
  appState: {
2061
2006
  contextMenu: {
@@ -2067,17 +2012,17 @@ export declare const actionChangeVerticalAlign: {
2067
2012
  isLoading: boolean;
2068
2013
  errorMessage: import("react").ReactNode;
2069
2014
  activeEmbeddable: {
2070
- element: import("../element/types").NonDeletedExcalidrawElement;
2071
- state: "hover" | "active";
2015
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2016
+ state: "active" | "hover";
2072
2017
  } | null;
2073
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2074
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2075
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2076
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2018
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2019
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2020
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2021
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2077
2022
  isBindingEnabled: boolean;
2078
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2079
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2080
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2023
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2024
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2025
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2081
2026
  frameRendering: {
2082
2027
  enabled: boolean;
2083
2028
  name: boolean;
@@ -2085,12 +2030,13 @@ export declare const actionChangeVerticalAlign: {
2085
2030
  clip: boolean;
2086
2031
  };
2087
2032
  editingFrame: string | null;
2088
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2089
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2033
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2034
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2090
2035
  editingLinearElement: LinearElementEditor | null;
2091
2036
  activeTool: {
2092
2037
  lastActiveTool: import("../types").ActiveTool | null;
2093
2038
  locked: boolean;
2039
+ fromSelection: boolean;
2094
2040
  } & import("../types").ActiveTool;
2095
2041
  penMode: boolean;
2096
2042
  penDetected: boolean;
@@ -2100,9 +2046,9 @@ export declare const actionChangeVerticalAlign: {
2100
2046
  exportScale: number;
2101
2047
  currentItemStrokeColor: string;
2102
2048
  currentItemBackgroundColor: string;
2103
- currentItemFillStyle: import("../element/types").FillStyle;
2049
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2104
2050
  currentItemStrokeWidth: number;
2105
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2051
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2106
2052
  currentItemRoughness: number;
2107
2053
  currentItemOpacity: number;
2108
2054
  currentItemFontFamily: number;
@@ -2111,7 +2057,7 @@ export declare const actionChangeVerticalAlign: {
2111
2057
  currentItemStartArrowhead: Arrowhead | null;
2112
2058
  currentItemEndArrowhead: Arrowhead | null;
2113
2059
  currentHoveredFontFamily: number | null;
2114
- currentItemRoundness: import("../element/types").StrokeRoundness;
2060
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2115
2061
  currentItemArrowType: "round" | "sharp" | "elbow";
2116
2062
  viewBackgroundColor: string;
2117
2063
  scrollX: number;
@@ -2134,7 +2080,7 @@ export declare const actionChangeVerticalAlign: {
2134
2080
  name: "imageExport" | "help" | "jsonExport";
2135
2081
  } | {
2136
2082
  name: "ttd";
2137
- tab: "text-to-diagram" | "mermaid";
2083
+ tab: "mermaid" | "text-to-diagram";
2138
2084
  } | {
2139
2085
  name: "commandPalette";
2140
2086
  } | {
@@ -2142,7 +2088,7 @@ export declare const actionChangeVerticalAlign: {
2142
2088
  sourceElementId: string;
2143
2089
  } | null;
2144
2090
  defaultSidebarDockedPreference: boolean;
2145
- lastPointerDownWith: import("../element/types").PointerType;
2091
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2146
2092
  selectedElementIds: Readonly<{
2147
2093
  [id: string]: true;
2148
2094
  }>;
@@ -2160,7 +2106,7 @@ export declare const actionChangeVerticalAlign: {
2160
2106
  duration?: number | undefined;
2161
2107
  } | null;
2162
2108
  zenModeEnabled: boolean;
2163
- theme: import("../element/types").Theme;
2109
+ theme: import("@excalidraw/element/types").Theme;
2164
2110
  gridSize: number;
2165
2111
  gridStep: number;
2166
2112
  gridModeEnabled: boolean;
@@ -2181,7 +2127,7 @@ export declare const actionChangeVerticalAlign: {
2181
2127
  [id: string]: true;
2182
2128
  }> | undefined;
2183
2129
  username?: string | null | undefined;
2184
- userState?: import("../constants").UserIdleState | undefined;
2130
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2185
2131
  color?: {
2186
2132
  background: string;
2187
2133
  stroke: string;
@@ -2198,7 +2144,7 @@ export declare const actionChangeVerticalAlign: {
2198
2144
  open: boolean;
2199
2145
  panels: number;
2200
2146
  };
2201
- currentChartType: import("../element/types").ChartType;
2147
+ currentChartType: import("@excalidraw/element/types").ChartType;
2202
2148
  pasteDialog: {
2203
2149
  shown: false;
2204
2150
  data: null;
@@ -2207,7 +2153,7 @@ export declare const actionChangeVerticalAlign: {
2207
2153
  data: import("../charts").Spreadsheet;
2208
2154
  };
2209
2155
  pendingImageElementId: string | null;
2210
- showHyperlinkPopup: false | "info" | "editor";
2156
+ showHyperlinkPopup: false | "editor" | "info";
2211
2157
  selectedLinearElement: LinearElementEditor | null;
2212
2158
  snapLines: readonly import("../snapping").SnapLine[];
2213
2159
  originSnapOffset: {
@@ -2219,16 +2165,10 @@ export declare const actionChangeVerticalAlign: {
2219
2165
  followedBy: Set<import("../types").SocketId>;
2220
2166
  isCropping: boolean;
2221
2167
  croppingElementId: string | null;
2222
- searchMatches: readonly {
2223
- id: string;
2224
- focus: boolean;
2225
- matchedLines: {
2226
- offsetX: number;
2227
- offsetY: number;
2228
- width: number;
2229
- height: number;
2230
- }[];
2231
- }[];
2168
+ searchMatches: Readonly<{
2169
+ focusedId: string | null;
2170
+ matches: readonly import("../types").SearchMatch[];
2171
+ }> | null;
2232
2172
  };
2233
2173
  captureUpdate: "IMMEDIATELY";
2234
2174
  };
@@ -2240,7 +2180,7 @@ export declare const actionChangeRoundness: {
2240
2180
  name: "changeRoundness";
2241
2181
  label: string;
2242
2182
  trackEvent: false;
2243
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
2183
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
2244
2184
  elements: ExcalidrawElement[];
2245
2185
  appState: {
2246
2186
  currentItemRoundness: any;
@@ -2253,17 +2193,17 @@ export declare const actionChangeRoundness: {
2253
2193
  isLoading: boolean;
2254
2194
  errorMessage: import("react").ReactNode;
2255
2195
  activeEmbeddable: {
2256
- element: import("../element/types").NonDeletedExcalidrawElement;
2257
- state: "hover" | "active";
2196
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2197
+ state: "active" | "hover";
2258
2198
  } | null;
2259
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2260
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2261
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2262
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2199
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2200
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2201
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2202
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2263
2203
  isBindingEnabled: boolean;
2264
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2265
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2266
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2204
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2205
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2206
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2267
2207
  frameRendering: {
2268
2208
  enabled: boolean;
2269
2209
  name: boolean;
@@ -2271,12 +2211,13 @@ export declare const actionChangeRoundness: {
2271
2211
  clip: boolean;
2272
2212
  };
2273
2213
  editingFrame: string | null;
2274
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2275
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2214
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2215
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2276
2216
  editingLinearElement: LinearElementEditor | null;
2277
2217
  activeTool: {
2278
2218
  lastActiveTool: import("../types").ActiveTool | null;
2279
2219
  locked: boolean;
2220
+ fromSelection: boolean;
2280
2221
  } & import("../types").ActiveTool;
2281
2222
  penMode: boolean;
2282
2223
  penDetected: boolean;
@@ -2286,9 +2227,9 @@ export declare const actionChangeRoundness: {
2286
2227
  exportScale: number;
2287
2228
  currentItemStrokeColor: string;
2288
2229
  currentItemBackgroundColor: string;
2289
- currentItemFillStyle: import("../element/types").FillStyle;
2230
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2290
2231
  currentItemStrokeWidth: number;
2291
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2232
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2292
2233
  currentItemRoughness: number;
2293
2234
  currentItemOpacity: number;
2294
2235
  currentItemFontFamily: number;
@@ -2319,7 +2260,7 @@ export declare const actionChangeRoundness: {
2319
2260
  name: "imageExport" | "help" | "jsonExport";
2320
2261
  } | {
2321
2262
  name: "ttd";
2322
- tab: "text-to-diagram" | "mermaid";
2263
+ tab: "mermaid" | "text-to-diagram";
2323
2264
  } | {
2324
2265
  name: "commandPalette";
2325
2266
  } | {
@@ -2327,7 +2268,7 @@ export declare const actionChangeRoundness: {
2327
2268
  sourceElementId: string;
2328
2269
  } | null;
2329
2270
  defaultSidebarDockedPreference: boolean;
2330
- lastPointerDownWith: import("../element/types").PointerType;
2271
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2331
2272
  selectedElementIds: Readonly<{
2332
2273
  [id: string]: true;
2333
2274
  }>;
@@ -2345,7 +2286,7 @@ export declare const actionChangeRoundness: {
2345
2286
  duration?: number | undefined;
2346
2287
  } | null;
2347
2288
  zenModeEnabled: boolean;
2348
- theme: import("../element/types").Theme;
2289
+ theme: import("@excalidraw/element/types").Theme;
2349
2290
  gridSize: number;
2350
2291
  gridStep: number;
2351
2292
  gridModeEnabled: boolean;
@@ -2366,7 +2307,7 @@ export declare const actionChangeRoundness: {
2366
2307
  [id: string]: true;
2367
2308
  }> | undefined;
2368
2309
  username?: string | null | undefined;
2369
- userState?: import("../constants").UserIdleState | undefined;
2310
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2370
2311
  color?: {
2371
2312
  background: string;
2372
2313
  stroke: string;
@@ -2383,7 +2324,7 @@ export declare const actionChangeRoundness: {
2383
2324
  open: boolean;
2384
2325
  panels: number;
2385
2326
  };
2386
- currentChartType: import("../element/types").ChartType;
2327
+ currentChartType: import("@excalidraw/element/types").ChartType;
2387
2328
  pasteDialog: {
2388
2329
  shown: false;
2389
2330
  data: null;
@@ -2392,7 +2333,7 @@ export declare const actionChangeRoundness: {
2392
2333
  data: import("../charts").Spreadsheet;
2393
2334
  };
2394
2335
  pendingImageElementId: string | null;
2395
- showHyperlinkPopup: false | "info" | "editor";
2336
+ showHyperlinkPopup: false | "editor" | "info";
2396
2337
  selectedLinearElement: LinearElementEditor | null;
2397
2338
  snapLines: readonly import("../snapping").SnapLine[];
2398
2339
  originSnapOffset: {
@@ -2404,16 +2345,10 @@ export declare const actionChangeRoundness: {
2404
2345
  followedBy: Set<import("../types").SocketId>;
2405
2346
  isCropping: boolean;
2406
2347
  croppingElementId: string | null;
2407
- searchMatches: readonly {
2408
- id: string;
2409
- focus: boolean;
2410
- matchedLines: {
2411
- offsetX: number;
2412
- offsetY: number;
2413
- width: number;
2414
- height: number;
2415
- }[];
2416
- }[];
2348
+ searchMatches: Readonly<{
2349
+ focusedId: string | null;
2350
+ matches: readonly import("../types").SearchMatch[];
2351
+ }> | null;
2417
2352
  };
2418
2353
  captureUpdate: "IMMEDIATELY";
2419
2354
  };
@@ -2425,7 +2360,7 @@ export declare const actionChangeArrowhead: {
2425
2360
  name: "changeArrowhead";
2426
2361
  label: string;
2427
2362
  trackEvent: false;
2428
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
2363
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
2429
2364
  position: "start" | "end";
2430
2365
  type: Arrowhead;
2431
2366
  }) => {
@@ -2440,17 +2375,17 @@ export declare const actionChangeArrowhead: {
2440
2375
  isLoading: boolean;
2441
2376
  errorMessage: import("react").ReactNode;
2442
2377
  activeEmbeddable: {
2443
- element: import("../element/types").NonDeletedExcalidrawElement;
2444
- state: "hover" | "active";
2378
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2379
+ state: "active" | "hover";
2445
2380
  } | null;
2446
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2447
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2448
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2449
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2381
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2382
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2383
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2384
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2450
2385
  isBindingEnabled: boolean;
2451
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2452
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2453
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2386
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2387
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2388
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2454
2389
  frameRendering: {
2455
2390
  enabled: boolean;
2456
2391
  name: boolean;
@@ -2458,12 +2393,13 @@ export declare const actionChangeArrowhead: {
2458
2393
  clip: boolean;
2459
2394
  };
2460
2395
  editingFrame: string | null;
2461
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2462
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2396
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2397
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2463
2398
  editingLinearElement: LinearElementEditor | null;
2464
2399
  activeTool: {
2465
2400
  lastActiveTool: import("../types").ActiveTool | null;
2466
2401
  locked: boolean;
2402
+ fromSelection: boolean;
2467
2403
  } & import("../types").ActiveTool;
2468
2404
  penMode: boolean;
2469
2405
  penDetected: boolean;
@@ -2473,9 +2409,9 @@ export declare const actionChangeArrowhead: {
2473
2409
  exportScale: number;
2474
2410
  currentItemStrokeColor: string;
2475
2411
  currentItemBackgroundColor: string;
2476
- currentItemFillStyle: import("../element/types").FillStyle;
2412
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2477
2413
  currentItemStrokeWidth: number;
2478
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2414
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2479
2415
  currentItemRoughness: number;
2480
2416
  currentItemOpacity: number;
2481
2417
  currentItemFontFamily: number;
@@ -2484,7 +2420,7 @@ export declare const actionChangeArrowhead: {
2484
2420
  currentItemStartArrowhead: Arrowhead | null;
2485
2421
  currentItemEndArrowhead: Arrowhead | null;
2486
2422
  currentHoveredFontFamily: number | null;
2487
- currentItemRoundness: import("../element/types").StrokeRoundness;
2423
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2488
2424
  currentItemArrowType: "round" | "sharp" | "elbow";
2489
2425
  viewBackgroundColor: string;
2490
2426
  scrollX: number;
@@ -2507,7 +2443,7 @@ export declare const actionChangeArrowhead: {
2507
2443
  name: "imageExport" | "help" | "jsonExport";
2508
2444
  } | {
2509
2445
  name: "ttd";
2510
- tab: "text-to-diagram" | "mermaid";
2446
+ tab: "mermaid" | "text-to-diagram";
2511
2447
  } | {
2512
2448
  name: "commandPalette";
2513
2449
  } | {
@@ -2515,7 +2451,7 @@ export declare const actionChangeArrowhead: {
2515
2451
  sourceElementId: string;
2516
2452
  } | null;
2517
2453
  defaultSidebarDockedPreference: boolean;
2518
- lastPointerDownWith: import("../element/types").PointerType;
2454
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2519
2455
  selectedElementIds: Readonly<{
2520
2456
  [id: string]: true;
2521
2457
  }>;
@@ -2533,7 +2469,7 @@ export declare const actionChangeArrowhead: {
2533
2469
  duration?: number | undefined;
2534
2470
  } | null;
2535
2471
  zenModeEnabled: boolean;
2536
- theme: import("../element/types").Theme;
2472
+ theme: import("@excalidraw/element/types").Theme;
2537
2473
  gridSize: number;
2538
2474
  gridStep: number;
2539
2475
  gridModeEnabled: boolean;
@@ -2554,7 +2490,7 @@ export declare const actionChangeArrowhead: {
2554
2490
  [id: string]: true;
2555
2491
  }> | undefined;
2556
2492
  username?: string | null | undefined;
2557
- userState?: import("../constants").UserIdleState | undefined;
2493
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2558
2494
  color?: {
2559
2495
  background: string;
2560
2496
  stroke: string;
@@ -2571,7 +2507,7 @@ export declare const actionChangeArrowhead: {
2571
2507
  open: boolean;
2572
2508
  panels: number;
2573
2509
  };
2574
- currentChartType: import("../element/types").ChartType;
2510
+ currentChartType: import("@excalidraw/element/types").ChartType;
2575
2511
  pasteDialog: {
2576
2512
  shown: false;
2577
2513
  data: null;
@@ -2580,7 +2516,7 @@ export declare const actionChangeArrowhead: {
2580
2516
  data: import("../charts").Spreadsheet;
2581
2517
  };
2582
2518
  pendingImageElementId: string | null;
2583
- showHyperlinkPopup: false | "info" | "editor";
2519
+ showHyperlinkPopup: false | "editor" | "info";
2584
2520
  selectedLinearElement: LinearElementEditor | null;
2585
2521
  snapLines: readonly import("../snapping").SnapLine[];
2586
2522
  originSnapOffset: {
@@ -2592,16 +2528,10 @@ export declare const actionChangeArrowhead: {
2592
2528
  followedBy: Set<import("../types").SocketId>;
2593
2529
  isCropping: boolean;
2594
2530
  croppingElementId: string | null;
2595
- searchMatches: readonly {
2596
- id: string;
2597
- focus: boolean;
2598
- matchedLines: {
2599
- offsetX: number;
2600
- offsetY: number;
2601
- width: number;
2602
- height: number;
2603
- }[];
2604
- }[];
2531
+ searchMatches: Readonly<{
2532
+ focusedId: string | null;
2533
+ matches: readonly import("../types").SearchMatch[];
2534
+ }> | null;
2605
2535
  };
2606
2536
  captureUpdate: "IMMEDIATELY";
2607
2537
  };
@@ -2613,7 +2543,7 @@ export declare const actionChangeArrowType: {
2613
2543
  name: "changeArrowType";
2614
2544
  label: string;
2615
2545
  trackEvent: false;
2616
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2546
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2617
2547
  elements: ExcalidrawElement[];
2618
2548
  appState: {
2619
2549
  currentItemArrowType: any;
@@ -2626,17 +2556,17 @@ export declare const actionChangeArrowType: {
2626
2556
  isLoading: boolean;
2627
2557
  errorMessage: import("react").ReactNode;
2628
2558
  activeEmbeddable: {
2629
- element: import("../element/types").NonDeletedExcalidrawElement;
2630
- state: "hover" | "active";
2559
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2560
+ state: "active" | "hover";
2631
2561
  } | null;
2632
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2633
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2634
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2635
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2562
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2563
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2564
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2565
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2636
2566
  isBindingEnabled: boolean;
2637
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2638
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2639
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2567
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2568
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2569
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2640
2570
  frameRendering: {
2641
2571
  enabled: boolean;
2642
2572
  name: boolean;
@@ -2644,12 +2574,13 @@ export declare const actionChangeArrowType: {
2644
2574
  clip: boolean;
2645
2575
  };
2646
2576
  editingFrame: string | null;
2647
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2648
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2577
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2578
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2649
2579
  editingLinearElement: LinearElementEditor | null;
2650
2580
  activeTool: {
2651
2581
  lastActiveTool: import("../types").ActiveTool | null;
2652
2582
  locked: boolean;
2583
+ fromSelection: boolean;
2653
2584
  } & import("../types").ActiveTool;
2654
2585
  penMode: boolean;
2655
2586
  penDetected: boolean;
@@ -2659,9 +2590,9 @@ export declare const actionChangeArrowType: {
2659
2590
  exportScale: number;
2660
2591
  currentItemStrokeColor: string;
2661
2592
  currentItemBackgroundColor: string;
2662
- currentItemFillStyle: import("../element/types").FillStyle;
2593
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2663
2594
  currentItemStrokeWidth: number;
2664
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2595
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2665
2596
  currentItemRoughness: number;
2666
2597
  currentItemOpacity: number;
2667
2598
  currentItemFontFamily: number;
@@ -2670,7 +2601,7 @@ export declare const actionChangeArrowType: {
2670
2601
  currentItemStartArrowhead: Arrowhead | null;
2671
2602
  currentItemEndArrowhead: Arrowhead | null;
2672
2603
  currentHoveredFontFamily: number | null;
2673
- currentItemRoundness: import("../element/types").StrokeRoundness;
2604
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2674
2605
  viewBackgroundColor: string;
2675
2606
  scrollX: number;
2676
2607
  scrollY: number;
@@ -2692,7 +2623,7 @@ export declare const actionChangeArrowType: {
2692
2623
  name: "imageExport" | "help" | "jsonExport";
2693
2624
  } | {
2694
2625
  name: "ttd";
2695
- tab: "text-to-diagram" | "mermaid";
2626
+ tab: "mermaid" | "text-to-diagram";
2696
2627
  } | {
2697
2628
  name: "commandPalette";
2698
2629
  } | {
@@ -2700,7 +2631,7 @@ export declare const actionChangeArrowType: {
2700
2631
  sourceElementId: string;
2701
2632
  } | null;
2702
2633
  defaultSidebarDockedPreference: boolean;
2703
- lastPointerDownWith: import("../element/types").PointerType;
2634
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2704
2635
  selectedElementIds: Readonly<{
2705
2636
  [id: string]: true;
2706
2637
  }>;
@@ -2718,7 +2649,7 @@ export declare const actionChangeArrowType: {
2718
2649
  duration?: number | undefined;
2719
2650
  } | null;
2720
2651
  zenModeEnabled: boolean;
2721
- theme: import("../element/types").Theme;
2652
+ theme: import("@excalidraw/element/types").Theme;
2722
2653
  gridSize: number;
2723
2654
  gridStep: number;
2724
2655
  gridModeEnabled: boolean;
@@ -2739,7 +2670,7 @@ export declare const actionChangeArrowType: {
2739
2670
  [id: string]: true;
2740
2671
  }> | undefined;
2741
2672
  username?: string | null | undefined;
2742
- userState?: import("../constants").UserIdleState | undefined;
2673
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2743
2674
  color?: {
2744
2675
  background: string;
2745
2676
  stroke: string;
@@ -2756,7 +2687,7 @@ export declare const actionChangeArrowType: {
2756
2687
  open: boolean;
2757
2688
  panels: number;
2758
2689
  };
2759
- currentChartType: import("../element/types").ChartType;
2690
+ currentChartType: import("@excalidraw/element/types").ChartType;
2760
2691
  pasteDialog: {
2761
2692
  shown: false;
2762
2693
  data: null;
@@ -2765,7 +2696,7 @@ export declare const actionChangeArrowType: {
2765
2696
  data: import("../charts").Spreadsheet;
2766
2697
  };
2767
2698
  pendingImageElementId: string | null;
2768
- showHyperlinkPopup: false | "info" | "editor";
2699
+ showHyperlinkPopup: false | "editor" | "info";
2769
2700
  selectedLinearElement: LinearElementEditor | null;
2770
2701
  snapLines: readonly import("../snapping").SnapLine[];
2771
2702
  originSnapOffset: {
@@ -2777,16 +2708,10 @@ export declare const actionChangeArrowType: {
2777
2708
  followedBy: Set<import("../types").SocketId>;
2778
2709
  isCropping: boolean;
2779
2710
  croppingElementId: string | null;
2780
- searchMatches: readonly {
2781
- id: string;
2782
- focus: boolean;
2783
- matchedLines: {
2784
- offsetX: number;
2785
- offsetY: number;
2786
- width: number;
2787
- height: number;
2788
- }[];
2789
- }[];
2711
+ searchMatches: Readonly<{
2712
+ focusedId: string | null;
2713
+ matches: readonly import("../types").SearchMatch[];
2714
+ }> | null;
2790
2715
  };
2791
2716
  captureUpdate: "IMMEDIATELY";
2792
2717
  };