@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-880dbb25e

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 (298) hide show
  1. package/CHANGELOG.md +11 -11
  2. package/dist/dev/chunk-CP5DND7P.js +7 -0
  3. package/dist/dev/chunk-CP5DND7P.js.map +7 -0
  4. package/dist/dev/chunk-CRKRRBMD.js +5677 -0
  5. package/dist/dev/chunk-CRKRRBMD.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-LMHBUWQS.js → chunk-QF5FRM6O.js} +16 -5
  9. package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
  10. package/dist/dev/data/{image-V26YBSDB.js → image-IWGLHPIX.js} +3 -3
  11. package/dist/dev/index.css +3021 -2942
  12. package/dist/dev/index.css.map +3 -3
  13. package/dist/dev/index.js +30933 -24345
  14. package/dist/dev/index.js.map +4 -4
  15. package/dist/dev/locales/{en-OZCJJ2HN.js → en-SMAPCEOQ.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-A66AFZZU.js +7 -0
  19. package/dist/prod/chunk-HHV2PJKY.js +4 -0
  20. package/dist/prod/chunk-I4UNSFV6.js +12 -0
  21. package/dist/prod/chunk-LS7FJGPW.js +86 -0
  22. package/dist/prod/data/image-4SM4COIL.js +1 -0
  23. package/dist/prod/index.css +1 -1
  24. package/dist/prod/index.js +27 -16
  25. package/dist/prod/locales/{en-B4ZKOASM.js → en-TYY6KWIJ.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 +29 -8
  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 -11
  38. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +19 -18
  39. package/dist/types/element/src/align.d.ts +8 -0
  40. package/dist/types/{excalidraw/element → element/src}/binding.d.ts +30 -19
  41. package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +19 -6
  42. package/dist/types/element/src/collision.d.ts +32 -0
  43. package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
  44. package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +1 -1
  45. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +80 -42
  46. package/dist/types/element/src/distance.d.ts +3 -0
  47. package/dist/types/{excalidraw → element/src}/distribute.d.ts +3 -2
  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 +12 -3
  55. package/dist/types/{excalidraw → element/src}/frame.d.ts +8 -7
  56. package/dist/types/{excalidraw → element/src}/groups.d.ts +6 -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 +57 -0
  60. package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +24 -37
  61. package/dist/types/element/src/mutateElement.d.ts +21 -0
  62. package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +4 -43
  63. package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
  64. package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +7 -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 -7
  67. package/dist/types/element/src/shape.d.ts +42 -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 +3 -3
  70. package/dist/types/element/src/store.d.ts +236 -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 +21 -3
  74. package/dist/types/{excalidraw/element → element/src}/types.d.ts +17 -4
  75. package/dist/types/element/src/utils.d.ts +31 -0
  76. package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
  77. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +97 -106
  78. package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
  79. package/dist/types/excalidraw/actions/actionBoundText.d.ts +70 -76
  80. package/dist/types/excalidraw/actions/actionCanvas.d.ts +627 -490
  81. package/dist/types/excalidraw/actions/actionClipboard.d.ts +206 -222
  82. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +34 -37
  83. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +102 -110
  84. package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
  85. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
  86. package/dist/types/excalidraw/actions/actionElementLink.d.ts +37 -40
  87. package/dist/types/excalidraw/actions/actionElementLock.d.ts +82 -90
  88. package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +34 -47
  89. package/dist/types/excalidraw/actions/actionExport.d.ts +351 -378
  90. package/dist/types/excalidraw/actions/actionFinalize.d.ts +100 -65
  91. package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
  92. package/dist/types/excalidraw/actions/actionFrame.d.ts +252 -264
  93. package/dist/types/excalidraw/actions/actionGroup.d.ts +67 -73
  94. package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
  95. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +561 -40
  96. package/dist/types/excalidraw/actions/actionLink.d.ts +35 -38
  97. package/dist/types/excalidraw/actions/actionMenu.d.ts +98 -107
  98. package/dist/types/excalidraw/actions/actionNavigate.d.ts +65 -71
  99. package/dist/types/excalidraw/actions/actionProperties.d.ts +469 -506
  100. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +35 -38
  101. package/dist/types/excalidraw/actions/actionStyles.d.ts +36 -39
  102. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  103. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +34 -37
  104. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +34 -37
  105. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +33 -208
  106. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  107. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +33 -37
  108. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +34 -38
  109. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +34 -38
  110. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  111. package/dist/types/excalidraw/actions/index.d.ts +1 -0
  112. package/dist/types/excalidraw/actions/manager.d.ts +2 -2
  113. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  114. package/dist/types/excalidraw/actions/types.d.ts +6 -5
  115. package/dist/types/excalidraw/animated-trail.d.ts +7 -1
  116. package/dist/types/excalidraw/appState.d.ts +38 -28
  117. package/dist/types/excalidraw/charts.d.ts +1 -1
  118. package/dist/types/excalidraw/clipboard.d.ts +7 -7
  119. package/dist/types/excalidraw/components/Actions.d.ts +3 -7
  120. package/dist/types/excalidraw/components/App.d.ts +46 -29
  121. package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
  122. package/dist/types/excalidraw/components/ButtonIcon.d.ts +2 -1
  123. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  124. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -5
  125. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  126. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  127. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -5
  128. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -4
  129. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -3
  130. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  131. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +4 -4
  132. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
  133. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
  134. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
  135. package/dist/types/excalidraw/components/ContextMenu.d.ts +2 -2
  136. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  137. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  138. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
  139. package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  140. package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  141. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +5 -4
  142. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  143. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  144. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  145. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
  146. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  147. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
  148. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  149. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  150. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  151. package/dist/types/excalidraw/components/IconPicker.d.ts +1 -1
  152. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
  153. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  154. package/dist/types/excalidraw/components/Island.d.ts +1 -1
  155. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
  156. package/dist/types/excalidraw/components/LayerUI.d.ts +3 -3
  157. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  158. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
  159. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +3 -3
  160. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  161. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  162. package/dist/types/excalidraw/components/MagicButton.d.ts +1 -1
  163. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -3
  164. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  165. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  166. package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -1
  167. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  168. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  169. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  170. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
  171. package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -1
  172. package/dist/types/excalidraw/components/Stack.d.ts +1 -1
  173. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  174. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  175. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  176. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  177. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +14 -4
  178. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
  179. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  180. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +3 -3
  181. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
  182. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  183. package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
  184. package/dist/types/excalidraw/components/Stats/index.d.ts +2 -2
  185. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  186. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  187. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  188. package/dist/types/excalidraw/components/TextField.d.ts +1 -1
  189. package/dist/types/excalidraw/components/Toast.d.ts +1 -1
  190. package/dist/types/excalidraw/components/ToolButton.d.ts +2 -2
  191. package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
  192. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  193. package/dist/types/excalidraw/components/UserList.d.ts +1 -1
  194. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
  195. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
  196. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
  197. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  198. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  200. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +5 -4
  201. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -2
  202. package/dist/types/excalidraw/components/icons.d.ts +5 -1
  203. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  204. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  205. package/dist/types/excalidraw/components/shapes.d.ts +62 -0
  206. package/dist/types/excalidraw/context/tunnels.d.ts +1 -1
  207. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  208. package/dist/types/excalidraw/data/blob.d.ts +4 -4
  209. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  210. package/dist/types/excalidraw/data/index.d.ts +2 -2
  211. package/dist/types/excalidraw/data/json.d.ts +1 -1
  212. package/dist/types/excalidraw/data/library.d.ts +3 -3
  213. package/dist/types/excalidraw/data/reconcile.d.ts +3 -2
  214. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  215. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  216. package/dist/types/excalidraw/data/transform.d.ts +4 -4
  217. package/dist/types/excalidraw/data/types.d.ts +3 -3
  218. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  219. package/dist/types/excalidraw/eraser/index.d.ts +12 -0
  220. package/dist/types/excalidraw/errors.d.ts +0 -3
  221. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -13
  222. package/dist/types/excalidraw/history.d.ts +31 -23
  223. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  224. package/dist/types/excalidraw/i18n.d.ts +1 -1
  225. package/dist/types/excalidraw/index.d.ts +18 -16
  226. package/dist/types/excalidraw/laser-trails.d.ts +1 -1
  227. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  228. package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
  229. package/dist/types/excalidraw/renderer/helpers.d.ts +8 -3
  230. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  231. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
  232. package/dist/types/excalidraw/scene/Renderer.d.ts +3 -4
  233. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  234. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  235. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  236. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  237. package/dist/types/excalidraw/scene/types.d.ts +6 -4
  238. package/dist/types/excalidraw/snapping.d.ts +5 -6
  239. package/dist/types/excalidraw/types.d.ts +45 -25
  240. package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +4 -2
  241. package/dist/types/math/{angle.d.ts → src/angle.d.ts} +2 -0
  242. package/dist/types/math/src/constants.d.ts +3 -0
  243. package/dist/types/math/src/curve.d.ts +74 -0
  244. package/dist/types/math/{index.d.ts → src/index.d.ts} +1 -0
  245. package/dist/types/math/{point.d.ts → src/point.d.ts} +3 -3
  246. package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  247. package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +2 -0
  248. package/dist/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
  249. package/dist/types/math/{types.d.ts → src/types.d.ts} +1 -0
  250. package/dist/types/math/{vector.d.ts → src/vector.d.ts} +8 -2
  251. package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  252. package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
  253. package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  254. package/dist/types/utils/{geometry → src}/shape.d.ts +2 -15
  255. package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  256. package/history.ts +148 -109
  257. package/package.json +25 -10
  258. package/dist/dev/chunk-3SN6HYVK.js +0 -25695
  259. package/dist/dev/chunk-3SN6HYVK.js.map +0 -7
  260. package/dist/dev/chunk-53KHN5WM.js +0 -7
  261. package/dist/dev/chunk-53KHN5WM.js.map +0 -7
  262. package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
  263. package/dist/dev/chunk-OKSO7T74.js +0 -4132
  264. package/dist/dev/chunk-OKSO7T74.js.map +0 -7
  265. package/dist/prod/chunk-36CXSE6H.js +0 -34
  266. package/dist/prod/chunk-6U3AYISY.js +0 -12
  267. package/dist/prod/chunk-EIO257PC.js +0 -86
  268. package/dist/prod/chunk-G5N3DNGT.js +0 -7
  269. package/dist/prod/data/image-N4WCURRR.js +0 -1
  270. package/dist/types/excalidraw/align.d.ts +0 -7
  271. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  272. package/dist/types/excalidraw/element/collision.d.ts +0 -26
  273. package/dist/types/excalidraw/element/distance.d.ts +0 -3
  274. package/dist/types/excalidraw/element/index.d.ts +0 -26
  275. package/dist/types/excalidraw/element/mutateElement.d.ts +0 -13
  276. package/dist/types/excalidraw/element/utils.d.ts +0 -21
  277. package/dist/types/excalidraw/scene/Shape.d.ts +0 -17
  278. package/dist/types/excalidraw/scene/ShapeCache.d.ts +0 -25
  279. package/dist/types/excalidraw/shapes.d.ts +0 -85
  280. package/dist/types/excalidraw/store.d.ts +0 -129
  281. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  282. package/dist/types/math/curve.d.ts +0 -40
  283. package/dist/types/utils/collision.d.ts +0 -9
  284. /package/dist/dev/data/{image-V26YBSDB.js.map → image-IWGLHPIX.js.map} +0 -0
  285. /package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-SMAPCEOQ.js.map} +0 -0
  286. /package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
  287. /package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
  288. /package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
  289. /package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  290. /package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  291. /package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  292. /package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  293. /package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  294. /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  295. /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
  296. /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
  297. /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  298. /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").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,12 @@ 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;
42
41
  activeTool: {
43
42
  lastActiveTool: import("../types").ActiveTool | null;
44
43
  locked: boolean;
44
+ fromSelection: boolean;
45
45
  } & import("../types").ActiveTool;
46
46
  penMode: boolean;
47
47
  penDetected: boolean;
@@ -51,18 +51,18 @@ export declare const actionCopy: {
51
51
  exportScale: number;
52
52
  currentItemStrokeColor: string;
53
53
  currentItemBackgroundColor: string;
54
- currentItemFillStyle: import("../element/types").FillStyle;
54
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
55
55
  currentItemStrokeWidth: number;
56
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
56
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
57
57
  currentItemRoughness: number;
58
58
  currentItemOpacity: number;
59
59
  currentItemFontFamily: number;
60
60
  currentItemFontSize: number;
61
61
  currentItemTextAlign: string;
62
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
63
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
62
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
63
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
64
  currentHoveredFontFamily: number | null;
65
- currentItemRoundness: import("../element/types").StrokeRoundness;
65
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
66
66
  currentItemArrowType: "round" | "sharp" | "elbow";
67
67
  viewBackgroundColor: string;
68
68
  scrollX: number;
@@ -85,7 +85,7 @@ export declare const actionCopy: {
85
85
  name: "imageExport" | "help" | "jsonExport";
86
86
  } | {
87
87
  name: "ttd";
88
- tab: "text-to-diagram" | "mermaid";
88
+ tab: "mermaid" | "text-to-diagram";
89
89
  } | {
90
90
  name: "commandPalette";
91
91
  } | {
@@ -93,7 +93,7 @@ export declare const actionCopy: {
93
93
  sourceElementId: string;
94
94
  } | null;
95
95
  defaultSidebarDockedPreference: boolean;
96
- lastPointerDownWith: import("../element/types").PointerType;
96
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
97
97
  selectedElementIds: Readonly<{
98
98
  [id: string]: true;
99
99
  }>;
@@ -111,7 +111,7 @@ export declare const actionCopy: {
111
111
  duration?: number | undefined;
112
112
  } | null;
113
113
  zenModeEnabled: boolean;
114
- theme: import("../element/types").Theme;
114
+ theme: import("@excalidraw/element/types").Theme;
115
115
  gridSize: number;
116
116
  gridStep: number;
117
117
  gridModeEnabled: boolean;
@@ -132,7 +132,7 @@ export declare const actionCopy: {
132
132
  [id: string]: true;
133
133
  }> | undefined;
134
134
  username?: string | null | undefined;
135
- userState?: import("../constants").UserIdleState | undefined;
135
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
136
136
  color?: {
137
137
  background: string;
138
138
  stroke: string;
@@ -149,7 +149,7 @@ export declare const actionCopy: {
149
149
  open: boolean;
150
150
  panels: number;
151
151
  };
152
- currentChartType: import("../element/types").ChartType;
152
+ currentChartType: import("@excalidraw/element/types").ChartType;
153
153
  pasteDialog: {
154
154
  shown: false;
155
155
  data: null;
@@ -157,9 +157,8 @@ export declare const actionCopy: {
157
157
  shown: true;
158
158
  data: import("../charts").Spreadsheet;
159
159
  };
160
- pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "info" | "editor";
162
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
160
+ showHyperlinkPopup: false | "editor" | "info";
161
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
162
  snapLines: readonly import("../snapping").SnapLine[];
164
163
  originSnapOffset: {
165
164
  x: number;
@@ -170,16 +169,14 @@ export declare const actionCopy: {
170
169
  followedBy: Set<import("../types").SocketId>;
171
170
  isCropping: boolean;
172
171
  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
- }[];
172
+ searchMatches: Readonly<{
173
+ focusedId: string | null;
174
+ matches: readonly import("../types").SearchMatch[];
175
+ }> | null;
176
+ activeLockedId: string | null;
177
+ lockedMultiSelections: {
178
+ [groupId: string]: true;
179
+ };
183
180
  };
184
181
  } | {
185
182
  captureUpdate: "EVENTUALLY";
@@ -195,7 +192,7 @@ export declare const actionPaste: {
195
192
  trackEvent: {
196
193
  category: "element";
197
194
  };
198
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
195
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
199
196
  captureUpdate: "EVENTUALLY";
200
197
  appState: {
201
198
  errorMessage: string;
@@ -207,17 +204,17 @@ export declare const actionPaste: {
207
204
  showWelcomeScreen: boolean;
208
205
  isLoading: boolean;
209
206
  activeEmbeddable: {
210
- element: import("../element/types").NonDeletedExcalidrawElement;
211
- state: "hover" | "active";
207
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
208
+ state: "active" | "hover";
212
209
  } | 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;
210
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
211
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
212
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
213
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
217
214
  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;
215
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
216
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
217
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
221
218
  frameRendering: {
222
219
  enabled: boolean;
223
220
  name: boolean;
@@ -225,12 +222,12 @@ export declare const actionPaste: {
225
222
  clip: boolean;
226
223
  };
227
224
  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;
225
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
226
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
231
227
  activeTool: {
232
228
  lastActiveTool: import("../types").ActiveTool | null;
233
229
  locked: boolean;
230
+ fromSelection: boolean;
234
231
  } & import("../types").ActiveTool;
235
232
  penMode: boolean;
236
233
  penDetected: boolean;
@@ -240,18 +237,18 @@ export declare const actionPaste: {
240
237
  exportScale: number;
241
238
  currentItemStrokeColor: string;
242
239
  currentItemBackgroundColor: string;
243
- currentItemFillStyle: import("../element/types").FillStyle;
240
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
244
241
  currentItemStrokeWidth: number;
245
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
242
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
246
243
  currentItemRoughness: number;
247
244
  currentItemOpacity: number;
248
245
  currentItemFontFamily: number;
249
246
  currentItemFontSize: number;
250
247
  currentItemTextAlign: string;
251
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
252
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
248
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
249
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
253
250
  currentHoveredFontFamily: number | null;
254
- currentItemRoundness: import("../element/types").StrokeRoundness;
251
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
255
252
  currentItemArrowType: "round" | "sharp" | "elbow";
256
253
  viewBackgroundColor: string;
257
254
  scrollX: number;
@@ -274,7 +271,7 @@ export declare const actionPaste: {
274
271
  name: "imageExport" | "help" | "jsonExport";
275
272
  } | {
276
273
  name: "ttd";
277
- tab: "text-to-diagram" | "mermaid";
274
+ tab: "mermaid" | "text-to-diagram";
278
275
  } | {
279
276
  name: "commandPalette";
280
277
  } | {
@@ -282,7 +279,7 @@ export declare const actionPaste: {
282
279
  sourceElementId: string;
283
280
  } | null;
284
281
  defaultSidebarDockedPreference: boolean;
285
- lastPointerDownWith: import("../element/types").PointerType;
282
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
286
283
  selectedElementIds: Readonly<{
287
284
  [id: string]: true;
288
285
  }>;
@@ -300,7 +297,7 @@ export declare const actionPaste: {
300
297
  duration?: number | undefined;
301
298
  } | null;
302
299
  zenModeEnabled: boolean;
303
- theme: import("../element/types").Theme;
300
+ theme: import("@excalidraw/element/types").Theme;
304
301
  gridSize: number;
305
302
  gridStep: number;
306
303
  gridModeEnabled: boolean;
@@ -321,7 +318,7 @@ export declare const actionPaste: {
321
318
  [id: string]: true;
322
319
  }> | undefined;
323
320
  username?: string | null | undefined;
324
- userState?: import("../constants").UserIdleState | undefined;
321
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
325
322
  color?: {
326
323
  background: string;
327
324
  stroke: string;
@@ -338,7 +335,7 @@ export declare const actionPaste: {
338
335
  open: boolean;
339
336
  panels: number;
340
337
  };
341
- currentChartType: import("../element/types").ChartType;
338
+ currentChartType: import("@excalidraw/element/types").ChartType;
342
339
  pasteDialog: {
343
340
  shown: false;
344
341
  data: null;
@@ -346,9 +343,8 @@ export declare const actionPaste: {
346
343
  shown: true;
347
344
  data: import("../charts").Spreadsheet;
348
345
  };
349
- 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 | null;
352
348
  snapLines: readonly import("../snapping").SnapLine[];
353
349
  originSnapOffset: {
354
350
  x: number;
@@ -359,16 +355,14 @@ 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;
362
+ activeLockedId: string | null;
363
+ lockedMultiSelections: {
364
+ [groupId: string]: true;
365
+ };
372
366
  };
373
367
  } | {
374
368
  captureUpdate: "EVENTUALLY";
@@ -385,10 +379,10 @@ export declare const actionCut: {
385
379
  trackEvent: {
386
380
  category: "element";
387
381
  };
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[];
382
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
383
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
390
384
  appState: {
391
- editingLinearElement: null;
385
+ selectedLinearElement: null;
392
386
  contextMenu: {
393
387
  items: import("../components/ContextMenu").ContextMenuItems;
394
388
  top: number;
@@ -398,17 +392,17 @@ export declare const actionCut: {
398
392
  isLoading: boolean;
399
393
  errorMessage: import("react").ReactNode;
400
394
  activeEmbeddable: {
401
- element: import("../element/types").NonDeletedExcalidrawElement;
402
- state: "hover" | "active";
395
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
396
+ state: "active" | "hover";
403
397
  } | 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;
398
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
399
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
400
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
401
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
408
402
  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;
403
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
404
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
405
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
412
406
  frameRendering: {
413
407
  enabled: boolean;
414
408
  name: boolean;
@@ -416,11 +410,12 @@ export declare const actionCut: {
416
410
  clip: boolean;
417
411
  };
418
412
  editingFrame: string | null;
419
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
420
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
413
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
414
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
421
415
  activeTool: {
422
416
  lastActiveTool: import("../types").ActiveTool | null;
423
417
  locked: boolean;
418
+ fromSelection: boolean;
424
419
  } & import("../types").ActiveTool;
425
420
  penMode: boolean;
426
421
  penDetected: boolean;
@@ -430,18 +425,18 @@ export declare const actionCut: {
430
425
  exportScale: number;
431
426
  currentItemStrokeColor: string;
432
427
  currentItemBackgroundColor: string;
433
- currentItemFillStyle: import("../element/types").FillStyle;
428
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
434
429
  currentItemStrokeWidth: number;
435
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
430
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
436
431
  currentItemRoughness: number;
437
432
  currentItemOpacity: number;
438
433
  currentItemFontFamily: number;
439
434
  currentItemFontSize: number;
440
435
  currentItemTextAlign: string;
441
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
442
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
436
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
437
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
443
438
  currentHoveredFontFamily: number | null;
444
- currentItemRoundness: import("../element/types").StrokeRoundness;
439
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
445
440
  currentItemArrowType: "round" | "sharp" | "elbow";
446
441
  viewBackgroundColor: string;
447
442
  scrollX: number;
@@ -464,7 +459,7 @@ export declare const actionCut: {
464
459
  name: "imageExport" | "help" | "jsonExport";
465
460
  } | {
466
461
  name: "ttd";
467
- tab: "text-to-diagram" | "mermaid";
462
+ tab: "mermaid" | "text-to-diagram";
468
463
  } | {
469
464
  name: "commandPalette";
470
465
  } | {
@@ -472,7 +467,7 @@ export declare const actionCut: {
472
467
  sourceElementId: string;
473
468
  } | null;
474
469
  defaultSidebarDockedPreference: boolean;
475
- lastPointerDownWith: import("../element/types").PointerType;
470
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
476
471
  selectedElementIds: Readonly<{
477
472
  [id: string]: true;
478
473
  }>;
@@ -490,7 +485,7 @@ export declare const actionCut: {
490
485
  duration?: number | undefined;
491
486
  } | null;
492
487
  zenModeEnabled: boolean;
493
- theme: import("../element/types").Theme;
488
+ theme: import("@excalidraw/element/types").Theme;
494
489
  gridSize: number;
495
490
  gridStep: number;
496
491
  gridModeEnabled: boolean;
@@ -511,7 +506,7 @@ export declare const actionCut: {
511
506
  [id: string]: true;
512
507
  }> | undefined;
513
508
  username?: string | null | undefined;
514
- userState?: import("../constants").UserIdleState | undefined;
509
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
515
510
  color?: {
516
511
  background: string;
517
512
  stroke: string;
@@ -528,7 +523,7 @@ export declare const actionCut: {
528
523
  open: boolean;
529
524
  panels: number;
530
525
  };
531
- currentChartType: import("../element/types").ChartType;
526
+ currentChartType: import("@excalidraw/element/types").ChartType;
532
527
  pasteDialog: {
533
528
  shown: false;
534
529
  data: null;
@@ -536,9 +531,7 @@ export declare const actionCut: {
536
531
  shown: true;
537
532
  data: import("../charts").Spreadsheet;
538
533
  };
539
- pendingImageElementId: string | null;
540
- showHyperlinkPopup: false | "info" | "editor";
541
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
534
+ showHyperlinkPopup: false | "editor" | "info";
542
535
  snapLines: readonly import("../snapping").SnapLine[];
543
536
  originSnapOffset: {
544
537
  x: number;
@@ -549,25 +542,23 @@ export declare const actionCut: {
549
542
  followedBy: Set<import("../types").SocketId>;
550
543
  isCropping: boolean;
551
544
  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
- }[];
545
+ searchMatches: Readonly<{
546
+ focusedId: string | null;
547
+ matches: readonly import("../types").SearchMatch[];
548
+ }> | null;
549
+ activeLockedId: string | null;
550
+ lockedMultiSelections: {
551
+ [groupId: string]: true;
552
+ };
562
553
  };
563
554
  captureUpdate: "IMMEDIATELY";
564
555
  } | {
565
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
556
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
566
557
  appState: {
567
- editingLinearElement: {
558
+ selectedLinearElement: {
568
559
  selectedPointsIndices: number[];
569
- startBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
570
- endBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
560
+ startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
561
+ endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
571
562
  elementId: string & {
572
563
  _brand: "excalidrawLinearElementId";
573
564
  };
@@ -594,6 +585,8 @@ export declare const actionCut: {
594
585
  hoverPointIndex: number;
595
586
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
596
587
  elbowed: boolean;
588
+ customLineAngle: number | null;
589
+ isEditing: boolean;
597
590
  };
598
591
  contextMenu: {
599
592
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -604,17 +597,17 @@ export declare const actionCut: {
604
597
  isLoading: boolean;
605
598
  errorMessage: import("react").ReactNode;
606
599
  activeEmbeddable: {
607
- element: import("../element/types").NonDeletedExcalidrawElement;
608
- state: "hover" | "active";
600
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
601
+ state: "active" | "hover";
609
602
  } | 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;
603
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
604
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
605
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
606
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
614
607
  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;
608
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
609
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
610
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
618
611
  frameRendering: {
619
612
  enabled: boolean;
620
613
  name: boolean;
@@ -622,11 +615,12 @@ export declare const actionCut: {
622
615
  clip: boolean;
623
616
  };
624
617
  editingFrame: string | null;
625
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
626
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
618
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
619
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
627
620
  activeTool: {
628
621
  lastActiveTool: import("../types").ActiveTool | null;
629
622
  locked: boolean;
623
+ fromSelection: boolean;
630
624
  } & import("../types").ActiveTool;
631
625
  penMode: boolean;
632
626
  penDetected: boolean;
@@ -636,18 +630,18 @@ export declare const actionCut: {
636
630
  exportScale: number;
637
631
  currentItemStrokeColor: string;
638
632
  currentItemBackgroundColor: string;
639
- currentItemFillStyle: import("../element/types").FillStyle;
633
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
640
634
  currentItemStrokeWidth: number;
641
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
635
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
642
636
  currentItemRoughness: number;
643
637
  currentItemOpacity: number;
644
638
  currentItemFontFamily: number;
645
639
  currentItemFontSize: number;
646
640
  currentItemTextAlign: string;
647
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
648
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
641
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
642
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
649
643
  currentHoveredFontFamily: number | null;
650
- currentItemRoundness: import("../element/types").StrokeRoundness;
644
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
651
645
  currentItemArrowType: "round" | "sharp" | "elbow";
652
646
  viewBackgroundColor: string;
653
647
  scrollX: number;
@@ -670,7 +664,7 @@ export declare const actionCut: {
670
664
  name: "imageExport" | "help" | "jsonExport";
671
665
  } | {
672
666
  name: "ttd";
673
- tab: "text-to-diagram" | "mermaid";
667
+ tab: "mermaid" | "text-to-diagram";
674
668
  } | {
675
669
  name: "commandPalette";
676
670
  } | {
@@ -678,7 +672,7 @@ export declare const actionCut: {
678
672
  sourceElementId: string;
679
673
  } | null;
680
674
  defaultSidebarDockedPreference: boolean;
681
- lastPointerDownWith: import("../element/types").PointerType;
675
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
682
676
  selectedElementIds: Readonly<{
683
677
  [id: string]: true;
684
678
  }>;
@@ -696,7 +690,7 @@ export declare const actionCut: {
696
690
  duration?: number | undefined;
697
691
  } | null;
698
692
  zenModeEnabled: boolean;
699
- theme: import("../element/types").Theme;
693
+ theme: import("@excalidraw/element/types").Theme;
700
694
  gridSize: number;
701
695
  gridStep: number;
702
696
  gridModeEnabled: boolean;
@@ -717,7 +711,7 @@ export declare const actionCut: {
717
711
  [id: string]: true;
718
712
  }> | undefined;
719
713
  username?: string | null | undefined;
720
- userState?: import("../constants").UserIdleState | undefined;
714
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
721
715
  color?: {
722
716
  background: string;
723
717
  stroke: string;
@@ -734,7 +728,7 @@ export declare const actionCut: {
734
728
  open: boolean;
735
729
  panels: number;
736
730
  };
737
- currentChartType: import("../element/types").ChartType;
731
+ currentChartType: import("@excalidraw/element/types").ChartType;
738
732
  pasteDialog: {
739
733
  shown: false;
740
734
  data: null;
@@ -742,9 +736,7 @@ export declare const actionCut: {
742
736
  shown: true;
743
737
  data: import("../charts").Spreadsheet;
744
738
  };
745
- pendingImageElementId: string | null;
746
- showHyperlinkPopup: false | "info" | "editor";
747
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
739
+ showHyperlinkPopup: false | "editor" | "info";
748
740
  snapLines: readonly import("../snapping").SnapLine[];
749
741
  originSnapOffset: {
750
742
  x: number;
@@ -755,34 +747,34 @@ export declare const actionCut: {
755
747
  followedBy: Set<import("../types").SocketId>;
756
748
  isCropping: boolean;
757
749
  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
- }[];
750
+ searchMatches: Readonly<{
751
+ focusedId: string | null;
752
+ matches: readonly import("../types").SearchMatch[];
753
+ }> | null;
754
+ activeLockedId: string | null;
755
+ lockedMultiSelections: {
756
+ [groupId: string]: true;
757
+ };
768
758
  };
769
759
  captureUpdate: "IMMEDIATELY";
770
760
  } | {
771
- elements: import("../element/types").ExcalidrawElement[];
761
+ elements: import("@excalidraw/element/types").ExcalidrawElement[];
772
762
  appState: {
773
763
  activeTool: {
774
764
  lastActiveTool: import("../types").ActiveTool | null;
775
765
  locked: boolean;
766
+ fromSelection: boolean;
776
767
  } & import("../types").ActiveTool;
777
768
  multiElement: null;
778
769
  activeEmbeddable: null;
770
+ selectedLinearElement: null;
771
+ editingGroupId: string | null;
779
772
  selectedElementIds: Readonly<{
780
773
  [id: string]: true;
781
774
  }>;
782
775
  selectedGroupIds: {
783
776
  [groupId: string]: boolean;
784
777
  };
785
- editingGroupId: string | null;
786
778
  contextMenu: {
787
779
  items: import("../components/ContextMenu").ContextMenuItems;
788
780
  top: number;
@@ -791,13 +783,13 @@ export declare const actionCut: {
791
783
  showWelcomeScreen: boolean;
792
784
  isLoading: boolean;
793
785
  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;
786
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
787
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
788
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
797
789
  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;
790
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
791
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
792
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
801
793
  frameRendering: {
802
794
  enabled: boolean;
803
795
  name: boolean;
@@ -805,9 +797,8 @@ export declare const actionCut: {
805
797
  clip: boolean;
806
798
  };
807
799
  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;
800
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
801
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
811
802
  penMode: boolean;
812
803
  penDetected: boolean;
813
804
  exportBackground: boolean;
@@ -816,18 +807,18 @@ export declare const actionCut: {
816
807
  exportScale: number;
817
808
  currentItemStrokeColor: string;
818
809
  currentItemBackgroundColor: string;
819
- currentItemFillStyle: import("../element/types").FillStyle;
810
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
820
811
  currentItemStrokeWidth: number;
821
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
812
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
822
813
  currentItemRoughness: number;
823
814
  currentItemOpacity: number;
824
815
  currentItemFontFamily: number;
825
816
  currentItemFontSize: number;
826
817
  currentItemTextAlign: string;
827
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
828
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
818
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
819
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
829
820
  currentHoveredFontFamily: number | null;
830
- currentItemRoundness: import("../element/types").StrokeRoundness;
821
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
831
822
  currentItemArrowType: "round" | "sharp" | "elbow";
832
823
  viewBackgroundColor: string;
833
824
  scrollX: number;
@@ -850,7 +841,7 @@ export declare const actionCut: {
850
841
  name: "imageExport" | "help" | "jsonExport";
851
842
  } | {
852
843
  name: "ttd";
853
- tab: "text-to-diagram" | "mermaid";
844
+ tab: "mermaid" | "text-to-diagram";
854
845
  } | {
855
846
  name: "commandPalette";
856
847
  } | {
@@ -858,7 +849,7 @@ export declare const actionCut: {
858
849
  sourceElementId: string;
859
850
  } | null;
860
851
  defaultSidebarDockedPreference: boolean;
861
- lastPointerDownWith: import("../element/types").PointerType;
852
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
862
853
  hoveredElementIds: Readonly<{
863
854
  [id: string]: true;
864
855
  }>;
@@ -873,7 +864,7 @@ export declare const actionCut: {
873
864
  duration?: number | undefined;
874
865
  } | null;
875
866
  zenModeEnabled: boolean;
876
- theme: import("../element/types").Theme;
867
+ theme: import("@excalidraw/element/types").Theme;
877
868
  gridSize: number;
878
869
  gridStep: number;
879
870
  gridModeEnabled: boolean;
@@ -890,7 +881,7 @@ export declare const actionCut: {
890
881
  [id: string]: true;
891
882
  }> | undefined;
892
883
  username?: string | null | undefined;
893
- userState?: import("../constants").UserIdleState | undefined;
884
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
894
885
  color?: {
895
886
  background: string;
896
887
  stroke: string;
@@ -907,7 +898,7 @@ export declare const actionCut: {
907
898
  open: boolean;
908
899
  panels: number;
909
900
  };
910
- currentChartType: import("../element/types").ChartType;
901
+ currentChartType: import("@excalidraw/element/types").ChartType;
911
902
  pasteDialog: {
912
903
  shown: false;
913
904
  data: null;
@@ -915,9 +906,7 @@ export declare const actionCut: {
915
906
  shown: true;
916
907
  data: import("../charts").Spreadsheet;
917
908
  };
918
- pendingImageElementId: string | null;
919
- showHyperlinkPopup: false | "info" | "editor";
920
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
909
+ showHyperlinkPopup: false | "editor" | "info";
921
910
  snapLines: readonly import("../snapping").SnapLine[];
922
911
  originSnapOffset: {
923
912
  x: number;
@@ -928,16 +917,14 @@ export declare const actionCut: {
928
917
  followedBy: Set<import("../types").SocketId>;
929
918
  isCropping: boolean;
930
919
  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
- }[];
920
+ searchMatches: Readonly<{
921
+ focusedId: string | null;
922
+ matches: readonly import("../types").SearchMatch[];
923
+ }> | null;
924
+ activeLockedId: string | null;
925
+ lockedMultiSelections: {
926
+ [groupId: string]: true;
927
+ };
941
928
  };
942
929
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
943
930
  };
@@ -952,7 +939,7 @@ export declare const actionCopyAsSvg: {
952
939
  trackEvent: {
953
940
  category: "element";
954
941
  };
955
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
942
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
956
943
  captureUpdate: "EVENTUALLY";
957
944
  appState?: undefined;
958
945
  } | {
@@ -970,7 +957,7 @@ export declare const actionCopyAsSvg: {
970
957
  };
971
958
  captureUpdate: "EVENTUALLY";
972
959
  }>;
973
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
960
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
974
961
  keywords: string[];
975
962
  } & {
976
963
  keyTest?: undefined;
@@ -982,7 +969,7 @@ export declare const actionCopyAsPng: {
982
969
  trackEvent: {
983
970
  category: "element";
984
971
  };
985
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
972
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
986
973
  captureUpdate: "EVENTUALLY";
987
974
  appState?: undefined;
988
975
  } | {
@@ -996,17 +983,17 @@ export declare const actionCopyAsPng: {
996
983
  showWelcomeScreen: boolean;
997
984
  isLoading: boolean;
998
985
  activeEmbeddable: {
999
- element: import("../element/types").NonDeletedExcalidrawElement;
1000
- state: "hover" | "active";
986
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
987
+ state: "active" | "hover";
1001
988
  } | 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;
989
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
990
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
991
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
992
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1006
993
  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;
994
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
995
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
996
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1010
997
  frameRendering: {
1011
998
  enabled: boolean;
1012
999
  name: boolean;
@@ -1014,12 +1001,12 @@ export declare const actionCopyAsPng: {
1014
1001
  clip: boolean;
1015
1002
  };
1016
1003
  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;
1004
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1005
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1020
1006
  activeTool: {
1021
1007
  lastActiveTool: import("../types").ActiveTool | null;
1022
1008
  locked: boolean;
1009
+ fromSelection: boolean;
1023
1010
  } & import("../types").ActiveTool;
1024
1011
  penMode: boolean;
1025
1012
  penDetected: boolean;
@@ -1029,18 +1016,18 @@ export declare const actionCopyAsPng: {
1029
1016
  exportScale: number;
1030
1017
  currentItemStrokeColor: string;
1031
1018
  currentItemBackgroundColor: string;
1032
- currentItemFillStyle: import("../element/types").FillStyle;
1019
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1033
1020
  currentItemStrokeWidth: number;
1034
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1021
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1035
1022
  currentItemRoughness: number;
1036
1023
  currentItemOpacity: number;
1037
1024
  currentItemFontFamily: number;
1038
1025
  currentItemFontSize: number;
1039
1026
  currentItemTextAlign: string;
1040
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1041
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1027
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1028
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1042
1029
  currentHoveredFontFamily: number | null;
1043
- currentItemRoundness: import("../element/types").StrokeRoundness;
1030
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1044
1031
  currentItemArrowType: "round" | "sharp" | "elbow";
1045
1032
  viewBackgroundColor: string;
1046
1033
  scrollX: number;
@@ -1063,7 +1050,7 @@ export declare const actionCopyAsPng: {
1063
1050
  name: "imageExport" | "help" | "jsonExport";
1064
1051
  } | {
1065
1052
  name: "ttd";
1066
- tab: "text-to-diagram" | "mermaid";
1053
+ tab: "mermaid" | "text-to-diagram";
1067
1054
  } | {
1068
1055
  name: "commandPalette";
1069
1056
  } | {
@@ -1071,7 +1058,7 @@ export declare const actionCopyAsPng: {
1071
1058
  sourceElementId: string;
1072
1059
  } | null;
1073
1060
  defaultSidebarDockedPreference: boolean;
1074
- lastPointerDownWith: import("../element/types").PointerType;
1061
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1075
1062
  selectedElementIds: Readonly<{
1076
1063
  [id: string]: true;
1077
1064
  }>;
@@ -1089,7 +1076,7 @@ export declare const actionCopyAsPng: {
1089
1076
  duration?: number | undefined;
1090
1077
  } | null;
1091
1078
  zenModeEnabled: boolean;
1092
- theme: import("../element/types").Theme;
1079
+ theme: import("@excalidraw/element/types").Theme;
1093
1080
  gridSize: number;
1094
1081
  gridStep: number;
1095
1082
  gridModeEnabled: boolean;
@@ -1110,7 +1097,7 @@ export declare const actionCopyAsPng: {
1110
1097
  [id: string]: true;
1111
1098
  }> | undefined;
1112
1099
  username?: string | null | undefined;
1113
- userState?: import("../constants").UserIdleState | undefined;
1100
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1114
1101
  color?: {
1115
1102
  background: string;
1116
1103
  stroke: string;
@@ -1127,7 +1114,7 @@ export declare const actionCopyAsPng: {
1127
1114
  open: boolean;
1128
1115
  panels: number;
1129
1116
  };
1130
- currentChartType: import("../element/types").ChartType;
1117
+ currentChartType: import("@excalidraw/element/types").ChartType;
1131
1118
  pasteDialog: {
1132
1119
  shown: false;
1133
1120
  data: null;
@@ -1135,9 +1122,8 @@ export declare const actionCopyAsPng: {
1135
1122
  shown: true;
1136
1123
  data: import("../charts").Spreadsheet;
1137
1124
  };
1138
- pendingImageElementId: string | null;
1139
- showHyperlinkPopup: false | "info" | "editor";
1140
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1125
+ showHyperlinkPopup: false | "editor" | "info";
1126
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1141
1127
  snapLines: readonly import("../snapping").SnapLine[];
1142
1128
  originSnapOffset: {
1143
1129
  x: number;
@@ -1148,20 +1134,18 @@ export declare const actionCopyAsPng: {
1148
1134
  followedBy: Set<import("../types").SocketId>;
1149
1135
  isCropping: boolean;
1150
1136
  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
- }[];
1137
+ searchMatches: Readonly<{
1138
+ focusedId: string | null;
1139
+ matches: readonly import("../types").SearchMatch[];
1140
+ }> | null;
1141
+ activeLockedId: string | null;
1142
+ lockedMultiSelections: {
1143
+ [groupId: string]: true;
1144
+ };
1161
1145
  };
1162
1146
  captureUpdate: "EVENTUALLY";
1163
1147
  }>;
1164
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
1148
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1165
1149
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1166
1150
  keywords: string[];
1167
1151
  } & {
@@ -1173,10 +1157,10 @@ export declare const copyText: {
1173
1157
  trackEvent: {
1174
1158
  category: "element";
1175
1159
  };
1176
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1160
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1177
1161
  captureUpdate: "EVENTUALLY";
1178
1162
  };
1179
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1163
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1180
1164
  keywords: string[];
1181
1165
  } & {
1182
1166
  keyTest?: undefined;