@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
@@ -6,7 +6,7 @@ export declare const actionCopy: {
6
6
  trackEvent: {
7
7
  category: "element";
8
8
  };
9
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
10
10
  captureUpdate: "EVENTUALLY";
11
11
  appState: {
12
12
  errorMessage: any;
@@ -18,17 +18,17 @@ export declare const actionCopy: {
18
18
  showWelcomeScreen: boolean;
19
19
  isLoading: boolean;
20
20
  activeEmbeddable: {
21
- element: import("../element/types").NonDeletedExcalidrawElement;
22
- state: "hover" | "active";
21
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
22
+ state: "active" | "hover";
23
23
  } | null;
24
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
25
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
26
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
27
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
24
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
25
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
27
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
28
  isBindingEnabled: boolean;
29
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("../element/binding").SuggestedBinding[];
31
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
29
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
31
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
32
32
  frameRendering: {
33
33
  enabled: boolean;
34
34
  name: boolean;
@@ -36,12 +36,13 @@ export declare const actionCopy: {
36
36
  clip: boolean;
37
37
  };
38
38
  editingFrame: string | null;
39
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
40
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
41
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
39
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
40
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
42
42
  activeTool: {
43
43
  lastActiveTool: import("../types").ActiveTool | null;
44
44
  locked: boolean;
45
+ fromSelection: boolean;
45
46
  } & import("../types").ActiveTool;
46
47
  penMode: boolean;
47
48
  penDetected: boolean;
@@ -51,18 +52,18 @@ export declare const actionCopy: {
51
52
  exportScale: number;
52
53
  currentItemStrokeColor: string;
53
54
  currentItemBackgroundColor: string;
54
- currentItemFillStyle: import("../element/types").FillStyle;
55
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
55
56
  currentItemStrokeWidth: number;
56
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
57
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
57
58
  currentItemRoughness: number;
58
59
  currentItemOpacity: number;
59
60
  currentItemFontFamily: number;
60
61
  currentItemFontSize: number;
61
62
  currentItemTextAlign: string;
62
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
63
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
63
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
65
  currentHoveredFontFamily: number | null;
65
- currentItemRoundness: import("../element/types").StrokeRoundness;
66
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
66
67
  currentItemArrowType: "round" | "sharp" | "elbow";
67
68
  viewBackgroundColor: string;
68
69
  scrollX: number;
@@ -85,7 +86,7 @@ export declare const actionCopy: {
85
86
  name: "imageExport" | "help" | "jsonExport";
86
87
  } | {
87
88
  name: "ttd";
88
- tab: "text-to-diagram" | "mermaid";
89
+ tab: "mermaid" | "text-to-diagram";
89
90
  } | {
90
91
  name: "commandPalette";
91
92
  } | {
@@ -93,7 +94,7 @@ export declare const actionCopy: {
93
94
  sourceElementId: string;
94
95
  } | null;
95
96
  defaultSidebarDockedPreference: boolean;
96
- lastPointerDownWith: import("../element/types").PointerType;
97
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
97
98
  selectedElementIds: Readonly<{
98
99
  [id: string]: true;
99
100
  }>;
@@ -111,7 +112,7 @@ export declare const actionCopy: {
111
112
  duration?: number | undefined;
112
113
  } | null;
113
114
  zenModeEnabled: boolean;
114
- theme: import("../element/types").Theme;
115
+ theme: import("@excalidraw/element/types").Theme;
115
116
  gridSize: number;
116
117
  gridStep: number;
117
118
  gridModeEnabled: boolean;
@@ -132,7 +133,7 @@ export declare const actionCopy: {
132
133
  [id: string]: true;
133
134
  }> | undefined;
134
135
  username?: string | null | undefined;
135
- userState?: import("../constants").UserIdleState | undefined;
136
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
136
137
  color?: {
137
138
  background: string;
138
139
  stroke: string;
@@ -149,7 +150,7 @@ export declare const actionCopy: {
149
150
  open: boolean;
150
151
  panels: number;
151
152
  };
152
- currentChartType: import("../element/types").ChartType;
153
+ currentChartType: import("@excalidraw/element/types").ChartType;
153
154
  pasteDialog: {
154
155
  shown: false;
155
156
  data: null;
@@ -158,8 +159,8 @@ export declare const actionCopy: {
158
159
  data: import("../charts").Spreadsheet;
159
160
  };
160
161
  pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "info" | "editor";
162
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
162
+ showHyperlinkPopup: false | "editor" | "info";
163
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
163
164
  snapLines: readonly import("../snapping").SnapLine[];
164
165
  originSnapOffset: {
165
166
  x: number;
@@ -170,16 +171,10 @@ export declare const actionCopy: {
170
171
  followedBy: Set<import("../types").SocketId>;
171
172
  isCropping: boolean;
172
173
  croppingElementId: string | null;
173
- searchMatches: readonly {
174
- id: string;
175
- focus: boolean;
176
- matchedLines: {
177
- offsetX: number;
178
- offsetY: number;
179
- width: number;
180
- height: number;
181
- }[];
182
- }[];
174
+ searchMatches: Readonly<{
175
+ focusedId: string | null;
176
+ matches: readonly import("../types").SearchMatch[];
177
+ }> | null;
183
178
  };
184
179
  } | {
185
180
  captureUpdate: "EVENTUALLY";
@@ -195,7 +190,7 @@ export declare const actionPaste: {
195
190
  trackEvent: {
196
191
  category: "element";
197
192
  };
198
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
193
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
199
194
  captureUpdate: "EVENTUALLY";
200
195
  appState: {
201
196
  errorMessage: string;
@@ -207,17 +202,17 @@ export declare const actionPaste: {
207
202
  showWelcomeScreen: boolean;
208
203
  isLoading: boolean;
209
204
  activeEmbeddable: {
210
- element: import("../element/types").NonDeletedExcalidrawElement;
211
- state: "hover" | "active";
205
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
206
+ state: "active" | "hover";
212
207
  } | null;
213
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
214
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
215
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
216
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
208
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
209
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
210
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
211
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
217
212
  isBindingEnabled: boolean;
218
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
219
- suggestedBindings: import("../element/binding").SuggestedBinding[];
220
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
213
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
214
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
215
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
221
216
  frameRendering: {
222
217
  enabled: boolean;
223
218
  name: boolean;
@@ -225,12 +220,13 @@ export declare const actionPaste: {
225
220
  clip: boolean;
226
221
  };
227
222
  editingFrame: string | null;
228
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
229
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
230
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
223
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
224
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
225
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
231
226
  activeTool: {
232
227
  lastActiveTool: import("../types").ActiveTool | null;
233
228
  locked: boolean;
229
+ fromSelection: boolean;
234
230
  } & import("../types").ActiveTool;
235
231
  penMode: boolean;
236
232
  penDetected: boolean;
@@ -240,18 +236,18 @@ export declare const actionPaste: {
240
236
  exportScale: number;
241
237
  currentItemStrokeColor: string;
242
238
  currentItemBackgroundColor: string;
243
- currentItemFillStyle: import("../element/types").FillStyle;
239
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
244
240
  currentItemStrokeWidth: number;
245
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
241
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
246
242
  currentItemRoughness: number;
247
243
  currentItemOpacity: number;
248
244
  currentItemFontFamily: number;
249
245
  currentItemFontSize: number;
250
246
  currentItemTextAlign: string;
251
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
252
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
247
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
248
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
253
249
  currentHoveredFontFamily: number | null;
254
- currentItemRoundness: import("../element/types").StrokeRoundness;
250
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
255
251
  currentItemArrowType: "round" | "sharp" | "elbow";
256
252
  viewBackgroundColor: string;
257
253
  scrollX: number;
@@ -274,7 +270,7 @@ export declare const actionPaste: {
274
270
  name: "imageExport" | "help" | "jsonExport";
275
271
  } | {
276
272
  name: "ttd";
277
- tab: "text-to-diagram" | "mermaid";
273
+ tab: "mermaid" | "text-to-diagram";
278
274
  } | {
279
275
  name: "commandPalette";
280
276
  } | {
@@ -282,7 +278,7 @@ export declare const actionPaste: {
282
278
  sourceElementId: string;
283
279
  } | null;
284
280
  defaultSidebarDockedPreference: boolean;
285
- lastPointerDownWith: import("../element/types").PointerType;
281
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
286
282
  selectedElementIds: Readonly<{
287
283
  [id: string]: true;
288
284
  }>;
@@ -300,7 +296,7 @@ export declare const actionPaste: {
300
296
  duration?: number | undefined;
301
297
  } | null;
302
298
  zenModeEnabled: boolean;
303
- theme: import("../element/types").Theme;
299
+ theme: import("@excalidraw/element/types").Theme;
304
300
  gridSize: number;
305
301
  gridStep: number;
306
302
  gridModeEnabled: boolean;
@@ -321,7 +317,7 @@ export declare const actionPaste: {
321
317
  [id: string]: true;
322
318
  }> | undefined;
323
319
  username?: string | null | undefined;
324
- userState?: import("../constants").UserIdleState | undefined;
320
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
325
321
  color?: {
326
322
  background: string;
327
323
  stroke: string;
@@ -338,7 +334,7 @@ export declare const actionPaste: {
338
334
  open: boolean;
339
335
  panels: number;
340
336
  };
341
- currentChartType: import("../element/types").ChartType;
337
+ currentChartType: import("@excalidraw/element/types").ChartType;
342
338
  pasteDialog: {
343
339
  shown: false;
344
340
  data: null;
@@ -347,8 +343,8 @@ export declare const actionPaste: {
347
343
  data: import("../charts").Spreadsheet;
348
344
  };
349
345
  pendingImageElementId: string | null;
350
- showHyperlinkPopup: false | "info" | "editor";
351
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
346
+ showHyperlinkPopup: false | "editor" | "info";
347
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
352
348
  snapLines: readonly import("../snapping").SnapLine[];
353
349
  originSnapOffset: {
354
350
  x: number;
@@ -359,16 +355,10 @@ export declare const actionPaste: {
359
355
  followedBy: Set<import("../types").SocketId>;
360
356
  isCropping: boolean;
361
357
  croppingElementId: string | null;
362
- searchMatches: readonly {
363
- id: string;
364
- focus: boolean;
365
- matchedLines: {
366
- offsetX: number;
367
- offsetY: number;
368
- width: number;
369
- height: number;
370
- }[];
371
- }[];
358
+ searchMatches: Readonly<{
359
+ focusedId: string | null;
360
+ matches: readonly import("../types").SearchMatch[];
361
+ }> | null;
372
362
  };
373
363
  } | {
374
364
  captureUpdate: "EVENTUALLY";
@@ -385,8 +375,8 @@ export declare const actionCut: {
385
375
  trackEvent: {
386
376
  category: "element";
387
377
  };
388
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
389
- elements: import("../element/types").OrderedExcalidrawElement[];
378
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
379
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
390
380
  appState: {
391
381
  editingLinearElement: null;
392
382
  contextMenu: {
@@ -398,17 +388,17 @@ export declare const actionCut: {
398
388
  isLoading: boolean;
399
389
  errorMessage: import("react").ReactNode;
400
390
  activeEmbeddable: {
401
- element: import("../element/types").NonDeletedExcalidrawElement;
402
- state: "hover" | "active";
391
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
392
+ state: "active" | "hover";
403
393
  } | null;
404
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
405
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
406
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
407
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
394
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
395
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
396
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
397
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
408
398
  isBindingEnabled: boolean;
409
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
410
- suggestedBindings: import("../element/binding").SuggestedBinding[];
411
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
399
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
400
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
401
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
412
402
  frameRendering: {
413
403
  enabled: boolean;
414
404
  name: boolean;
@@ -416,11 +406,12 @@ export declare const actionCut: {
416
406
  clip: boolean;
417
407
  };
418
408
  editingFrame: string | null;
419
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
420
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
409
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
410
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
421
411
  activeTool: {
422
412
  lastActiveTool: import("../types").ActiveTool | null;
423
413
  locked: boolean;
414
+ fromSelection: boolean;
424
415
  } & import("../types").ActiveTool;
425
416
  penMode: boolean;
426
417
  penDetected: boolean;
@@ -430,18 +421,18 @@ export declare const actionCut: {
430
421
  exportScale: number;
431
422
  currentItemStrokeColor: string;
432
423
  currentItemBackgroundColor: string;
433
- currentItemFillStyle: import("../element/types").FillStyle;
424
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
434
425
  currentItemStrokeWidth: number;
435
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
426
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
436
427
  currentItemRoughness: number;
437
428
  currentItemOpacity: number;
438
429
  currentItemFontFamily: number;
439
430
  currentItemFontSize: number;
440
431
  currentItemTextAlign: string;
441
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
442
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
432
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
433
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
443
434
  currentHoveredFontFamily: number | null;
444
- currentItemRoundness: import("../element/types").StrokeRoundness;
435
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
445
436
  currentItemArrowType: "round" | "sharp" | "elbow";
446
437
  viewBackgroundColor: string;
447
438
  scrollX: number;
@@ -464,7 +455,7 @@ export declare const actionCut: {
464
455
  name: "imageExport" | "help" | "jsonExport";
465
456
  } | {
466
457
  name: "ttd";
467
- tab: "text-to-diagram" | "mermaid";
458
+ tab: "mermaid" | "text-to-diagram";
468
459
  } | {
469
460
  name: "commandPalette";
470
461
  } | {
@@ -472,7 +463,7 @@ export declare const actionCut: {
472
463
  sourceElementId: string;
473
464
  } | null;
474
465
  defaultSidebarDockedPreference: boolean;
475
- lastPointerDownWith: import("../element/types").PointerType;
466
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
476
467
  selectedElementIds: Readonly<{
477
468
  [id: string]: true;
478
469
  }>;
@@ -490,7 +481,7 @@ export declare const actionCut: {
490
481
  duration?: number | undefined;
491
482
  } | null;
492
483
  zenModeEnabled: boolean;
493
- theme: import("../element/types").Theme;
484
+ theme: import("@excalidraw/element/types").Theme;
494
485
  gridSize: number;
495
486
  gridStep: number;
496
487
  gridModeEnabled: boolean;
@@ -511,7 +502,7 @@ export declare const actionCut: {
511
502
  [id: string]: true;
512
503
  }> | undefined;
513
504
  username?: string | null | undefined;
514
- userState?: import("../constants").UserIdleState | undefined;
505
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
515
506
  color?: {
516
507
  background: string;
517
508
  stroke: string;
@@ -528,7 +519,7 @@ export declare const actionCut: {
528
519
  open: boolean;
529
520
  panels: number;
530
521
  };
531
- currentChartType: import("../element/types").ChartType;
522
+ currentChartType: import("@excalidraw/element/types").ChartType;
532
523
  pasteDialog: {
533
524
  shown: false;
534
525
  data: null;
@@ -537,8 +528,8 @@ export declare const actionCut: {
537
528
  data: import("../charts").Spreadsheet;
538
529
  };
539
530
  pendingImageElementId: string | null;
540
- showHyperlinkPopup: false | "info" | "editor";
541
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
531
+ showHyperlinkPopup: false | "editor" | "info";
532
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
542
533
  snapLines: readonly import("../snapping").SnapLine[];
543
534
  originSnapOffset: {
544
535
  x: number;
@@ -549,25 +540,19 @@ export declare const actionCut: {
549
540
  followedBy: Set<import("../types").SocketId>;
550
541
  isCropping: boolean;
551
542
  croppingElementId: string | null;
552
- searchMatches: readonly {
553
- id: string;
554
- focus: boolean;
555
- matchedLines: {
556
- offsetX: number;
557
- offsetY: number;
558
- width: number;
559
- height: number;
560
- }[];
561
- }[];
543
+ searchMatches: Readonly<{
544
+ focusedId: string | null;
545
+ matches: readonly import("../types").SearchMatch[];
546
+ }> | null;
562
547
  };
563
548
  captureUpdate: "IMMEDIATELY";
564
549
  } | {
565
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
550
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
566
551
  appState: {
567
552
  editingLinearElement: {
568
553
  selectedPointsIndices: number[];
569
- startBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
570
- endBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
554
+ startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
555
+ endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
571
556
  elementId: string & {
572
557
  _brand: "excalidrawLinearElementId";
573
558
  };
@@ -604,17 +589,17 @@ export declare const actionCut: {
604
589
  isLoading: boolean;
605
590
  errorMessage: import("react").ReactNode;
606
591
  activeEmbeddable: {
607
- element: import("../element/types").NonDeletedExcalidrawElement;
608
- state: "hover" | "active";
592
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
593
+ state: "active" | "hover";
609
594
  } | null;
610
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
611
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
612
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
613
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
595
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
596
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
597
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
598
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
614
599
  isBindingEnabled: boolean;
615
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
616
- suggestedBindings: import("../element/binding").SuggestedBinding[];
617
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
600
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
601
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
602
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
618
603
  frameRendering: {
619
604
  enabled: boolean;
620
605
  name: boolean;
@@ -622,11 +607,12 @@ export declare const actionCut: {
622
607
  clip: boolean;
623
608
  };
624
609
  editingFrame: string | null;
625
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
626
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
610
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
611
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
627
612
  activeTool: {
628
613
  lastActiveTool: import("../types").ActiveTool | null;
629
614
  locked: boolean;
615
+ fromSelection: boolean;
630
616
  } & import("../types").ActiveTool;
631
617
  penMode: boolean;
632
618
  penDetected: boolean;
@@ -636,18 +622,18 @@ export declare const actionCut: {
636
622
  exportScale: number;
637
623
  currentItemStrokeColor: string;
638
624
  currentItemBackgroundColor: string;
639
- currentItemFillStyle: import("../element/types").FillStyle;
625
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
640
626
  currentItemStrokeWidth: number;
641
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
627
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
642
628
  currentItemRoughness: number;
643
629
  currentItemOpacity: number;
644
630
  currentItemFontFamily: number;
645
631
  currentItemFontSize: number;
646
632
  currentItemTextAlign: string;
647
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
648
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
633
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
634
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
649
635
  currentHoveredFontFamily: number | null;
650
- currentItemRoundness: import("../element/types").StrokeRoundness;
636
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
651
637
  currentItemArrowType: "round" | "sharp" | "elbow";
652
638
  viewBackgroundColor: string;
653
639
  scrollX: number;
@@ -670,7 +656,7 @@ export declare const actionCut: {
670
656
  name: "imageExport" | "help" | "jsonExport";
671
657
  } | {
672
658
  name: "ttd";
673
- tab: "text-to-diagram" | "mermaid";
659
+ tab: "mermaid" | "text-to-diagram";
674
660
  } | {
675
661
  name: "commandPalette";
676
662
  } | {
@@ -678,7 +664,7 @@ export declare const actionCut: {
678
664
  sourceElementId: string;
679
665
  } | null;
680
666
  defaultSidebarDockedPreference: boolean;
681
- lastPointerDownWith: import("../element/types").PointerType;
667
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
682
668
  selectedElementIds: Readonly<{
683
669
  [id: string]: true;
684
670
  }>;
@@ -696,7 +682,7 @@ export declare const actionCut: {
696
682
  duration?: number | undefined;
697
683
  } | null;
698
684
  zenModeEnabled: boolean;
699
- theme: import("../element/types").Theme;
685
+ theme: import("@excalidraw/element/types").Theme;
700
686
  gridSize: number;
701
687
  gridStep: number;
702
688
  gridModeEnabled: boolean;
@@ -717,7 +703,7 @@ export declare const actionCut: {
717
703
  [id: string]: true;
718
704
  }> | undefined;
719
705
  username?: string | null | undefined;
720
- userState?: import("../constants").UserIdleState | undefined;
706
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
721
707
  color?: {
722
708
  background: string;
723
709
  stroke: string;
@@ -734,7 +720,7 @@ export declare const actionCut: {
734
720
  open: boolean;
735
721
  panels: number;
736
722
  };
737
- currentChartType: import("../element/types").ChartType;
723
+ currentChartType: import("@excalidraw/element/types").ChartType;
738
724
  pasteDialog: {
739
725
  shown: false;
740
726
  data: null;
@@ -743,8 +729,8 @@ export declare const actionCut: {
743
729
  data: import("../charts").Spreadsheet;
744
730
  };
745
731
  pendingImageElementId: string | null;
746
- showHyperlinkPopup: false | "info" | "editor";
747
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
732
+ showHyperlinkPopup: false | "editor" | "info";
733
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
748
734
  snapLines: readonly import("../snapping").SnapLine[];
749
735
  originSnapOffset: {
750
736
  x: number;
@@ -755,34 +741,30 @@ export declare const actionCut: {
755
741
  followedBy: Set<import("../types").SocketId>;
756
742
  isCropping: boolean;
757
743
  croppingElementId: string | null;
758
- searchMatches: readonly {
759
- id: string;
760
- focus: boolean;
761
- matchedLines: {
762
- offsetX: number;
763
- offsetY: number;
764
- width: number;
765
- height: number;
766
- }[];
767
- }[];
744
+ searchMatches: Readonly<{
745
+ focusedId: string | null;
746
+ matches: readonly import("../types").SearchMatch[];
747
+ }> | null;
768
748
  };
769
749
  captureUpdate: "IMMEDIATELY";
770
750
  } | {
771
- elements: import("../element/types").ExcalidrawElement[];
751
+ elements: import("@excalidraw/element/types").ExcalidrawElement[];
772
752
  appState: {
773
753
  activeTool: {
774
754
  lastActiveTool: import("../types").ActiveTool | null;
775
755
  locked: boolean;
756
+ fromSelection: boolean;
776
757
  } & import("../types").ActiveTool;
777
758
  multiElement: null;
778
759
  activeEmbeddable: null;
760
+ selectedLinearElement: null;
761
+ editingGroupId: string | null;
779
762
  selectedElementIds: Readonly<{
780
763
  [id: string]: true;
781
764
  }>;
782
765
  selectedGroupIds: {
783
766
  [groupId: string]: boolean;
784
767
  };
785
- editingGroupId: string | null;
786
768
  contextMenu: {
787
769
  items: import("../components/ContextMenu").ContextMenuItems;
788
770
  top: number;
@@ -791,13 +773,13 @@ export declare const actionCut: {
791
773
  showWelcomeScreen: boolean;
792
774
  isLoading: boolean;
793
775
  errorMessage: import("react").ReactNode;
794
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
795
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
796
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
776
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
777
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
778
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
797
779
  isBindingEnabled: boolean;
798
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
799
- suggestedBindings: import("../element/binding").SuggestedBinding[];
800
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
780
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
781
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
782
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
801
783
  frameRendering: {
802
784
  enabled: boolean;
803
785
  name: boolean;
@@ -805,9 +787,9 @@ export declare const actionCut: {
805
787
  clip: boolean;
806
788
  };
807
789
  editingFrame: string | null;
808
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
809
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
810
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
790
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
791
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
792
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
811
793
  penMode: boolean;
812
794
  penDetected: boolean;
813
795
  exportBackground: boolean;
@@ -816,18 +798,18 @@ export declare const actionCut: {
816
798
  exportScale: number;
817
799
  currentItemStrokeColor: string;
818
800
  currentItemBackgroundColor: string;
819
- currentItemFillStyle: import("../element/types").FillStyle;
801
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
820
802
  currentItemStrokeWidth: number;
821
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
803
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
822
804
  currentItemRoughness: number;
823
805
  currentItemOpacity: number;
824
806
  currentItemFontFamily: number;
825
807
  currentItemFontSize: number;
826
808
  currentItemTextAlign: string;
827
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
828
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
809
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
810
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
829
811
  currentHoveredFontFamily: number | null;
830
- currentItemRoundness: import("../element/types").StrokeRoundness;
812
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
831
813
  currentItemArrowType: "round" | "sharp" | "elbow";
832
814
  viewBackgroundColor: string;
833
815
  scrollX: number;
@@ -850,7 +832,7 @@ export declare const actionCut: {
850
832
  name: "imageExport" | "help" | "jsonExport";
851
833
  } | {
852
834
  name: "ttd";
853
- tab: "text-to-diagram" | "mermaid";
835
+ tab: "mermaid" | "text-to-diagram";
854
836
  } | {
855
837
  name: "commandPalette";
856
838
  } | {
@@ -858,7 +840,7 @@ export declare const actionCut: {
858
840
  sourceElementId: string;
859
841
  } | null;
860
842
  defaultSidebarDockedPreference: boolean;
861
- lastPointerDownWith: import("../element/types").PointerType;
843
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
862
844
  hoveredElementIds: Readonly<{
863
845
  [id: string]: true;
864
846
  }>;
@@ -873,7 +855,7 @@ export declare const actionCut: {
873
855
  duration?: number | undefined;
874
856
  } | null;
875
857
  zenModeEnabled: boolean;
876
- theme: import("../element/types").Theme;
858
+ theme: import("@excalidraw/element/types").Theme;
877
859
  gridSize: number;
878
860
  gridStep: number;
879
861
  gridModeEnabled: boolean;
@@ -890,7 +872,7 @@ export declare const actionCut: {
890
872
  [id: string]: true;
891
873
  }> | undefined;
892
874
  username?: string | null | undefined;
893
- userState?: import("../constants").UserIdleState | undefined;
875
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
894
876
  color?: {
895
877
  background: string;
896
878
  stroke: string;
@@ -907,7 +889,7 @@ export declare const actionCut: {
907
889
  open: boolean;
908
890
  panels: number;
909
891
  };
910
- currentChartType: import("../element/types").ChartType;
892
+ currentChartType: import("@excalidraw/element/types").ChartType;
911
893
  pasteDialog: {
912
894
  shown: false;
913
895
  data: null;
@@ -916,8 +898,7 @@ export declare const actionCut: {
916
898
  data: import("../charts").Spreadsheet;
917
899
  };
918
900
  pendingImageElementId: string | null;
919
- showHyperlinkPopup: false | "info" | "editor";
920
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
901
+ showHyperlinkPopup: false | "editor" | "info";
921
902
  snapLines: readonly import("../snapping").SnapLine[];
922
903
  originSnapOffset: {
923
904
  x: number;
@@ -928,22 +909,16 @@ export declare const actionCut: {
928
909
  followedBy: Set<import("../types").SocketId>;
929
910
  isCropping: boolean;
930
911
  croppingElementId: string | null;
931
- searchMatches: readonly {
932
- id: string;
933
- focus: boolean;
934
- matchedLines: {
935
- offsetX: number;
936
- offsetY: number;
937
- width: number;
938
- height: number;
939
- }[];
940
- }[];
912
+ searchMatches: Readonly<{
913
+ focusedId: string | null;
914
+ matches: readonly import("../types").SearchMatch[];
915
+ }> | null;
941
916
  };
942
917
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
943
918
  };
944
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
919
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
945
920
  } & {
946
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
921
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
947
922
  };
948
923
  export declare const actionCopyAsSvg: {
949
924
  name: "copyAsSvg";
@@ -952,7 +927,7 @@ export declare const actionCopyAsSvg: {
952
927
  trackEvent: {
953
928
  category: "element";
954
929
  };
955
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
930
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
956
931
  captureUpdate: "EVENTUALLY";
957
932
  appState?: undefined;
958
933
  } | {
@@ -970,7 +945,7 @@ export declare const actionCopyAsSvg: {
970
945
  };
971
946
  captureUpdate: "EVENTUALLY";
972
947
  }>;
973
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
948
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
974
949
  keywords: string[];
975
950
  } & {
976
951
  keyTest?: undefined;
@@ -982,7 +957,7 @@ export declare const actionCopyAsPng: {
982
957
  trackEvent: {
983
958
  category: "element";
984
959
  };
985
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
960
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
986
961
  captureUpdate: "EVENTUALLY";
987
962
  appState?: undefined;
988
963
  } | {
@@ -996,17 +971,17 @@ export declare const actionCopyAsPng: {
996
971
  showWelcomeScreen: boolean;
997
972
  isLoading: boolean;
998
973
  activeEmbeddable: {
999
- element: import("../element/types").NonDeletedExcalidrawElement;
1000
- state: "hover" | "active";
974
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
975
+ state: "active" | "hover";
1001
976
  } | null;
1002
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1003
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1004
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1005
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
977
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
978
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
979
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
980
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1006
981
  isBindingEnabled: boolean;
1007
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1008
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1009
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
982
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
983
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
984
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1010
985
  frameRendering: {
1011
986
  enabled: boolean;
1012
987
  name: boolean;
@@ -1014,12 +989,13 @@ export declare const actionCopyAsPng: {
1014
989
  clip: boolean;
1015
990
  };
1016
991
  editingFrame: string | null;
1017
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1018
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1019
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
992
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
993
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
994
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1020
995
  activeTool: {
1021
996
  lastActiveTool: import("../types").ActiveTool | null;
1022
997
  locked: boolean;
998
+ fromSelection: boolean;
1023
999
  } & import("../types").ActiveTool;
1024
1000
  penMode: boolean;
1025
1001
  penDetected: boolean;
@@ -1029,18 +1005,18 @@ export declare const actionCopyAsPng: {
1029
1005
  exportScale: number;
1030
1006
  currentItemStrokeColor: string;
1031
1007
  currentItemBackgroundColor: string;
1032
- currentItemFillStyle: import("../element/types").FillStyle;
1008
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1033
1009
  currentItemStrokeWidth: number;
1034
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1010
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1035
1011
  currentItemRoughness: number;
1036
1012
  currentItemOpacity: number;
1037
1013
  currentItemFontFamily: number;
1038
1014
  currentItemFontSize: number;
1039
1015
  currentItemTextAlign: string;
1040
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1041
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1016
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1017
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1042
1018
  currentHoveredFontFamily: number | null;
1043
- currentItemRoundness: import("../element/types").StrokeRoundness;
1019
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1044
1020
  currentItemArrowType: "round" | "sharp" | "elbow";
1045
1021
  viewBackgroundColor: string;
1046
1022
  scrollX: number;
@@ -1063,7 +1039,7 @@ export declare const actionCopyAsPng: {
1063
1039
  name: "imageExport" | "help" | "jsonExport";
1064
1040
  } | {
1065
1041
  name: "ttd";
1066
- tab: "text-to-diagram" | "mermaid";
1042
+ tab: "mermaid" | "text-to-diagram";
1067
1043
  } | {
1068
1044
  name: "commandPalette";
1069
1045
  } | {
@@ -1071,7 +1047,7 @@ export declare const actionCopyAsPng: {
1071
1047
  sourceElementId: string;
1072
1048
  } | null;
1073
1049
  defaultSidebarDockedPreference: boolean;
1074
- lastPointerDownWith: import("../element/types").PointerType;
1050
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1075
1051
  selectedElementIds: Readonly<{
1076
1052
  [id: string]: true;
1077
1053
  }>;
@@ -1089,7 +1065,7 @@ export declare const actionCopyAsPng: {
1089
1065
  duration?: number | undefined;
1090
1066
  } | null;
1091
1067
  zenModeEnabled: boolean;
1092
- theme: import("../element/types").Theme;
1068
+ theme: import("@excalidraw/element/types").Theme;
1093
1069
  gridSize: number;
1094
1070
  gridStep: number;
1095
1071
  gridModeEnabled: boolean;
@@ -1110,7 +1086,7 @@ export declare const actionCopyAsPng: {
1110
1086
  [id: string]: true;
1111
1087
  }> | undefined;
1112
1088
  username?: string | null | undefined;
1113
- userState?: import("../constants").UserIdleState | undefined;
1089
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1114
1090
  color?: {
1115
1091
  background: string;
1116
1092
  stroke: string;
@@ -1127,7 +1103,7 @@ export declare const actionCopyAsPng: {
1127
1103
  open: boolean;
1128
1104
  panels: number;
1129
1105
  };
1130
- currentChartType: import("../element/types").ChartType;
1106
+ currentChartType: import("@excalidraw/element/types").ChartType;
1131
1107
  pasteDialog: {
1132
1108
  shown: false;
1133
1109
  data: null;
@@ -1136,8 +1112,8 @@ export declare const actionCopyAsPng: {
1136
1112
  data: import("../charts").Spreadsheet;
1137
1113
  };
1138
1114
  pendingImageElementId: string | null;
1139
- showHyperlinkPopup: false | "info" | "editor";
1140
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1115
+ showHyperlinkPopup: false | "editor" | "info";
1116
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1141
1117
  snapLines: readonly import("../snapping").SnapLine[];
1142
1118
  originSnapOffset: {
1143
1119
  x: number;
@@ -1148,24 +1124,18 @@ export declare const actionCopyAsPng: {
1148
1124
  followedBy: Set<import("../types").SocketId>;
1149
1125
  isCropping: boolean;
1150
1126
  croppingElementId: string | null;
1151
- searchMatches: readonly {
1152
- id: string;
1153
- focus: boolean;
1154
- matchedLines: {
1155
- offsetX: number;
1156
- offsetY: number;
1157
- width: number;
1158
- height: number;
1159
- }[];
1160
- }[];
1127
+ searchMatches: Readonly<{
1128
+ focusedId: string | null;
1129
+ matches: readonly import("../types").SearchMatch[];
1130
+ }> | null;
1161
1131
  };
1162
1132
  captureUpdate: "EVENTUALLY";
1163
1133
  }>;
1164
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
1165
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1134
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1135
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1166
1136
  keywords: string[];
1167
1137
  } & {
1168
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1138
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1169
1139
  };
1170
1140
  export declare const copyText: {
1171
1141
  name: "copyText";
@@ -1173,10 +1143,10 @@ export declare const copyText: {
1173
1143
  trackEvent: {
1174
1144
  category: "element";
1175
1145
  };
1176
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1146
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1177
1147
  captureUpdate: "EVENTUALLY";
1178
1148
  };
1179
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1149
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1180
1150
  keywords: string[];
1181
1151
  } & {
1182
1152
  keyTest?: undefined;