@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-8608d7b

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 (306) 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-FB2NA5UG.js +4132 -0
  5. package/dist/dev/chunk-FB2NA5UG.js.map +7 -0
  6. package/dist/dev/{chunk-LMHBUWQS.js → chunk-PWQMCSHA.js} +27 -8
  7. package/dist/dev/chunk-PWQMCSHA.js.map +7 -0
  8. package/dist/dev/chunk-YMRX7R7U.js +5671 -0
  9. package/dist/dev/chunk-YMRX7R7U.js.map +7 -0
  10. package/dist/dev/data/{image-V26YBSDB.js → image-L23D26XS.js} +3 -3
  11. package/dist/dev/index.css +3945 -3493
  12. package/dist/dev/index.css.map +3 -3
  13. package/dist/dev/index.js +33090 -24527
  14. package/dist/dev/index.js.map +4 -4
  15. package/dist/dev/locales/{en-OZCJJ2HN.js → en-V3NQTBPG.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-GF46JCB3.js +12 -0
  20. package/dist/prod/chunk-HT4FKTIQ.js +4 -0
  21. package/dist/prod/chunk-LS7FJGPW.js +86 -0
  22. package/dist/prod/data/image-NWF7UX55.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-LQE6K457.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 +52 -12
  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 +25 -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 +20 -7
  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} +78 -41
  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 +58 -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/element/src/positionElementsOnGrid.d.ts +2 -0
  64. package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +6 -3
  65. package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +7 -6
  66. package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
  67. package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +13 -7
  68. package/dist/types/element/src/shape.d.ts +42 -0
  69. package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
  70. package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +3 -3
  71. package/dist/types/element/src/store.d.ts +237 -0
  72. package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +8 -7
  73. package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +7 -7
  74. package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +21 -3
  75. package/dist/types/{excalidraw/element → element/src}/types.d.ts +17 -4
  76. package/dist/types/element/src/utils.d.ts +31 -0
  77. package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
  78. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +115 -109
  79. package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
  80. package/dist/types/excalidraw/actions/actionBoundText.d.ts +82 -78
  81. package/dist/types/excalidraw/actions/actionCanvas.d.ts +705 -502
  82. package/dist/types/excalidraw/actions/actionClipboard.d.ts +242 -228
  83. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +40 -38
  84. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +120 -113
  85. package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
  86. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
  87. package/dist/types/excalidraw/actions/actionElementLink.d.ts +43 -41
  88. package/dist/types/excalidraw/actions/actionElementLock.d.ts +94 -92
  89. package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +40 -48
  90. package/dist/types/excalidraw/actions/actionExport.d.ts +405 -387
  91. package/dist/types/excalidraw/actions/actionFinalize.d.ts +112 -67
  92. package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
  93. package/dist/types/excalidraw/actions/actionFrame.d.ts +276 -268
  94. package/dist/types/excalidraw/actions/actionGroup.d.ts +79 -75
  95. package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
  96. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +568 -42
  97. package/dist/types/excalidraw/actions/actionLink.d.ts +41 -39
  98. package/dist/types/excalidraw/actions/actionMenu.d.ts +116 -110
  99. package/dist/types/excalidraw/actions/actionNavigate.d.ts +77 -73
  100. package/dist/types/excalidraw/actions/actionProperties.d.ts +571 -524
  101. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +41 -39
  102. package/dist/types/excalidraw/actions/actionStyles.d.ts +42 -40
  103. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  104. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +40 -38
  105. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +40 -38
  106. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +39 -209
  107. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  108. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +39 -38
  109. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +40 -39
  110. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +40 -39
  111. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  112. package/dist/types/excalidraw/actions/index.d.ts +2 -1
  113. package/dist/types/excalidraw/actions/manager.d.ts +2 -2
  114. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  115. package/dist/types/excalidraw/actions/types.d.ts +6 -5
  116. package/dist/types/excalidraw/animated-trail.d.ts +7 -1
  117. package/dist/types/excalidraw/appState.d.ts +42 -28
  118. package/dist/types/excalidraw/charts.d.ts +1 -1
  119. package/dist/types/excalidraw/clipboard.d.ts +71 -8
  120. package/dist/types/excalidraw/components/Actions.d.ts +19 -9
  121. package/dist/types/excalidraw/components/App.d.ts +58 -34
  122. package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
  123. package/dist/types/excalidraw/components/ButtonIcon.d.ts +2 -1
  124. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  125. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +10 -5
  126. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  127. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  128. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +6 -5
  129. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +4 -4
  130. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -3
  131. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  132. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +4 -4
  133. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
  134. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +2 -1
  135. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
  136. package/dist/types/excalidraw/components/ContextMenu.d.ts +2 -2
  137. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  138. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  139. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
  140. package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  141. package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  142. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +5 -4
  143. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  144. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  145. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  146. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  147. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
  148. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +3 -2
  149. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
  150. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +4 -2
  151. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  152. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  153. package/dist/types/excalidraw/components/IconPicker.d.ts +1 -1
  154. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
  155. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  156. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  157. package/dist/types/excalidraw/components/Island.d.ts +1 -1
  158. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
  159. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -4
  160. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  161. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
  162. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +4 -4
  163. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  164. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  165. package/dist/types/excalidraw/components/MagicButton.d.ts +1 -1
  166. package/dist/types/excalidraw/components/MobileMenu.d.ts +5 -7
  167. package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
  168. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  169. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  170. package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -1
  171. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  172. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  173. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  174. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
  175. package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -1
  176. package/dist/types/excalidraw/components/Stack.d.ts +1 -1
  177. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  178. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  179. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  180. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  181. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +14 -4
  182. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
  183. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  184. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +3 -3
  185. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
  186. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  187. package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
  188. package/dist/types/excalidraw/components/Stats/index.d.ts +2 -2
  189. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  190. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  191. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  192. package/dist/types/excalidraw/components/TextField.d.ts +2 -1
  193. package/dist/types/excalidraw/components/Toast.d.ts +1 -1
  194. package/dist/types/excalidraw/components/ToolButton.d.ts +2 -2
  195. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  196. package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
  197. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  198. package/dist/types/excalidraw/components/UserList.d.ts +1 -1
  199. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
  200. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
  201. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
  202. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +5 -3
  203. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  204. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
  205. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  206. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +5 -4
  207. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -2
  208. package/dist/types/excalidraw/components/icons.d.ts +10 -1
  209. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  210. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  211. package/dist/types/excalidraw/components/shapes.d.ts +190 -0
  212. package/dist/types/excalidraw/context/tunnels.d.ts +1 -1
  213. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  214. package/dist/types/excalidraw/data/blob.d.ts +7 -11
  215. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  216. package/dist/types/excalidraw/data/index.d.ts +2 -2
  217. package/dist/types/excalidraw/data/json.d.ts +1 -1
  218. package/dist/types/excalidraw/data/library.d.ts +3 -3
  219. package/dist/types/excalidraw/data/reconcile.d.ts +3 -2
  220. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  221. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  222. package/dist/types/excalidraw/data/transform.d.ts +4 -4
  223. package/dist/types/excalidraw/data/types.d.ts +6 -3
  224. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  225. package/dist/types/excalidraw/eraser/index.d.ts +12 -0
  226. package/dist/types/excalidraw/errors.d.ts +0 -3
  227. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -13
  228. package/dist/types/excalidraw/history.d.ts +31 -23
  229. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  230. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  231. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  232. package/dist/types/excalidraw/i18n.d.ts +1 -1
  233. package/dist/types/excalidraw/index.d.ts +18 -16
  234. package/dist/types/excalidraw/laser-trails.d.ts +1 -1
  235. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  236. package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
  237. package/dist/types/excalidraw/renderer/helpers.d.ts +8 -3
  238. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  239. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
  240. package/dist/types/excalidraw/scene/Renderer.d.ts +3 -4
  241. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  242. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  243. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  244. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  245. package/dist/types/excalidraw/scene/types.d.ts +6 -4
  246. package/dist/types/excalidraw/snapping.d.ts +5 -6
  247. package/dist/types/excalidraw/types.d.ts +55 -26
  248. package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +4 -2
  249. package/dist/types/math/{angle.d.ts → src/angle.d.ts} +2 -0
  250. package/dist/types/math/src/constants.d.ts +3 -0
  251. package/dist/types/math/src/curve.d.ts +74 -0
  252. package/dist/types/math/{index.d.ts → src/index.d.ts} +1 -0
  253. package/dist/types/math/{point.d.ts → src/point.d.ts} +3 -3
  254. package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  255. package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +2 -0
  256. package/dist/types/math/{segment.d.ts → src/segment.d.ts} +2 -1
  257. package/dist/types/math/{types.d.ts → src/types.d.ts} +1 -0
  258. package/dist/types/math/{vector.d.ts → src/vector.d.ts} +8 -2
  259. package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  260. package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
  261. package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  262. package/dist/types/utils/{geometry → src}/shape.d.ts +2 -15
  263. package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  264. package/history.ts +148 -109
  265. package/package.json +26 -11
  266. package/dist/dev/chunk-3SN6HYVK.js +0 -25695
  267. package/dist/dev/chunk-3SN6HYVK.js.map +0 -7
  268. package/dist/dev/chunk-53KHN5WM.js +0 -7
  269. package/dist/dev/chunk-53KHN5WM.js.map +0 -7
  270. package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
  271. package/dist/dev/chunk-OKSO7T74.js +0 -4132
  272. package/dist/dev/chunk-OKSO7T74.js.map +0 -7
  273. package/dist/prod/chunk-36CXSE6H.js +0 -34
  274. package/dist/prod/chunk-6U3AYISY.js +0 -12
  275. package/dist/prod/chunk-EIO257PC.js +0 -86
  276. package/dist/prod/chunk-G5N3DNGT.js +0 -7
  277. package/dist/prod/data/image-N4WCURRR.js +0 -1
  278. package/dist/types/excalidraw/align.d.ts +0 -7
  279. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  280. package/dist/types/excalidraw/element/collision.d.ts +0 -26
  281. package/dist/types/excalidraw/element/distance.d.ts +0 -3
  282. package/dist/types/excalidraw/element/index.d.ts +0 -26
  283. package/dist/types/excalidraw/element/mutateElement.d.ts +0 -13
  284. package/dist/types/excalidraw/element/utils.d.ts +0 -21
  285. package/dist/types/excalidraw/scene/Shape.d.ts +0 -17
  286. package/dist/types/excalidraw/scene/ShapeCache.d.ts +0 -25
  287. package/dist/types/excalidraw/shapes.d.ts +0 -85
  288. package/dist/types/excalidraw/store.d.ts +0 -129
  289. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  290. package/dist/types/math/curve.d.ts +0 -40
  291. package/dist/types/utils/collision.d.ts +0 -9
  292. /package/dist/dev/data/{image-V26YBSDB.js.map → image-L23D26XS.js.map} +0 -0
  293. /package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-V3NQTBPG.js.map} +0 -0
  294. /package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
  295. /package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
  296. /package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
  297. /package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  298. /package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  299. /package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  300. /package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  301. /package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  302. /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  303. /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
  304. /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
  305. /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  306. /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,13 +36,17 @@ 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
+ preferredSelectionTool: {
47
+ type: "selection" | "lasso";
48
+ initialized: boolean;
49
+ };
46
50
  penMode: boolean;
47
51
  penDetected: boolean;
48
52
  exportBackground: boolean;
@@ -51,18 +55,18 @@ export declare const actionCopy: {
51
55
  exportScale: number;
52
56
  currentItemStrokeColor: string;
53
57
  currentItemBackgroundColor: string;
54
- currentItemFillStyle: import("../element/types").FillStyle;
58
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
55
59
  currentItemStrokeWidth: number;
56
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
60
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
57
61
  currentItemRoughness: number;
58
62
  currentItemOpacity: number;
59
63
  currentItemFontFamily: number;
60
64
  currentItemFontSize: number;
61
65
  currentItemTextAlign: string;
62
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
63
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
66
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
67
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
68
  currentHoveredFontFamily: number | null;
65
- currentItemRoundness: import("../element/types").StrokeRoundness;
69
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
66
70
  currentItemArrowType: "round" | "sharp" | "elbow";
67
71
  viewBackgroundColor: string;
68
72
  scrollX: number;
@@ -76,7 +80,7 @@ export declare const actionCopy: {
76
80
  value: import("../types").NormalizedZoomValue;
77
81
  }>;
78
82
  openMenu: "canvas" | "shape" | null;
79
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
83
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
80
84
  openSidebar: {
81
85
  name: string;
82
86
  tab?: string | undefined;
@@ -85,7 +89,7 @@ export declare const actionCopy: {
85
89
  name: "imageExport" | "help" | "jsonExport";
86
90
  } | {
87
91
  name: "ttd";
88
- tab: "text-to-diagram" | "mermaid";
92
+ tab: "mermaid" | "text-to-diagram";
89
93
  } | {
90
94
  name: "commandPalette";
91
95
  } | {
@@ -93,7 +97,7 @@ export declare const actionCopy: {
93
97
  sourceElementId: string;
94
98
  } | null;
95
99
  defaultSidebarDockedPreference: boolean;
96
- lastPointerDownWith: import("../element/types").PointerType;
100
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
97
101
  selectedElementIds: Readonly<{
98
102
  [id: string]: true;
99
103
  }>;
@@ -111,7 +115,7 @@ export declare const actionCopy: {
111
115
  duration?: number | undefined;
112
116
  } | null;
113
117
  zenModeEnabled: boolean;
114
- theme: import("../element/types").Theme;
118
+ theme: import("@excalidraw/element/types").Theme;
115
119
  gridSize: number;
116
120
  gridStep: number;
117
121
  gridModeEnabled: boolean;
@@ -132,7 +136,7 @@ export declare const actionCopy: {
132
136
  [id: string]: true;
133
137
  }> | undefined;
134
138
  username?: string | null | undefined;
135
- userState?: import("../constants").UserIdleState | undefined;
139
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
136
140
  color?: {
137
141
  background: string;
138
142
  stroke: string;
@@ -149,7 +153,7 @@ export declare const actionCopy: {
149
153
  open: boolean;
150
154
  panels: number;
151
155
  };
152
- currentChartType: import("../element/types").ChartType;
156
+ currentChartType: import("@excalidraw/element/types").ChartType;
153
157
  pasteDialog: {
154
158
  shown: false;
155
159
  data: null;
@@ -157,9 +161,8 @@ export declare const actionCopy: {
157
161
  shown: true;
158
162
  data: import("../charts").Spreadsheet;
159
163
  };
160
- pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "info" | "editor";
162
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
164
+ showHyperlinkPopup: false | "editor" | "info";
165
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
166
  snapLines: readonly import("../snapping").SnapLine[];
164
167
  originSnapOffset: {
165
168
  x: number;
@@ -170,16 +173,15 @@ export declare const actionCopy: {
170
173
  followedBy: Set<import("../types").SocketId>;
171
174
  isCropping: boolean;
172
175
  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
- }[];
176
+ searchMatches: Readonly<{
177
+ focusedId: string | null;
178
+ matches: readonly import("../types").SearchMatch[];
179
+ }> | null;
180
+ activeLockedId: string | null;
181
+ lockedMultiSelections: {
182
+ [groupId: string]: true;
183
+ };
184
+ stylesPanelMode: "compact" | "full" | "mobile";
183
185
  };
184
186
  } | {
185
187
  captureUpdate: "EVENTUALLY";
@@ -195,7 +197,7 @@ export declare const actionPaste: {
195
197
  trackEvent: {
196
198
  category: "element";
197
199
  };
198
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
200
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
199
201
  captureUpdate: "EVENTUALLY";
200
202
  appState: {
201
203
  errorMessage: string;
@@ -207,17 +209,17 @@ export declare const actionPaste: {
207
209
  showWelcomeScreen: boolean;
208
210
  isLoading: boolean;
209
211
  activeEmbeddable: {
210
- element: import("../element/types").NonDeletedExcalidrawElement;
211
- state: "hover" | "active";
212
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
213
+ state: "active" | "hover";
212
214
  } | 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;
215
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
216
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
217
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
218
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
217
219
  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;
220
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
221
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
222
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
221
223
  frameRendering: {
222
224
  enabled: boolean;
223
225
  name: boolean;
@@ -225,13 +227,17 @@ export declare const actionPaste: {
225
227
  clip: boolean;
226
228
  };
227
229
  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;
230
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
231
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
231
232
  activeTool: {
232
233
  lastActiveTool: import("../types").ActiveTool | null;
233
234
  locked: boolean;
235
+ fromSelection: boolean;
234
236
  } & import("../types").ActiveTool;
237
+ preferredSelectionTool: {
238
+ type: "selection" | "lasso";
239
+ initialized: boolean;
240
+ };
235
241
  penMode: boolean;
236
242
  penDetected: boolean;
237
243
  exportBackground: boolean;
@@ -240,18 +246,18 @@ export declare const actionPaste: {
240
246
  exportScale: number;
241
247
  currentItemStrokeColor: string;
242
248
  currentItemBackgroundColor: string;
243
- currentItemFillStyle: import("../element/types").FillStyle;
249
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
244
250
  currentItemStrokeWidth: number;
245
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
251
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
246
252
  currentItemRoughness: number;
247
253
  currentItemOpacity: number;
248
254
  currentItemFontFamily: number;
249
255
  currentItemFontSize: number;
250
256
  currentItemTextAlign: string;
251
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
252
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
257
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
258
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
253
259
  currentHoveredFontFamily: number | null;
254
- currentItemRoundness: import("../element/types").StrokeRoundness;
260
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
255
261
  currentItemArrowType: "round" | "sharp" | "elbow";
256
262
  viewBackgroundColor: string;
257
263
  scrollX: number;
@@ -265,7 +271,7 @@ export declare const actionPaste: {
265
271
  value: import("../types").NormalizedZoomValue;
266
272
  }>;
267
273
  openMenu: "canvas" | "shape" | null;
268
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
274
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
269
275
  openSidebar: {
270
276
  name: string;
271
277
  tab?: string | undefined;
@@ -274,7 +280,7 @@ export declare const actionPaste: {
274
280
  name: "imageExport" | "help" | "jsonExport";
275
281
  } | {
276
282
  name: "ttd";
277
- tab: "text-to-diagram" | "mermaid";
283
+ tab: "mermaid" | "text-to-diagram";
278
284
  } | {
279
285
  name: "commandPalette";
280
286
  } | {
@@ -282,7 +288,7 @@ export declare const actionPaste: {
282
288
  sourceElementId: string;
283
289
  } | null;
284
290
  defaultSidebarDockedPreference: boolean;
285
- lastPointerDownWith: import("../element/types").PointerType;
291
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
286
292
  selectedElementIds: Readonly<{
287
293
  [id: string]: true;
288
294
  }>;
@@ -300,7 +306,7 @@ export declare const actionPaste: {
300
306
  duration?: number | undefined;
301
307
  } | null;
302
308
  zenModeEnabled: boolean;
303
- theme: import("../element/types").Theme;
309
+ theme: import("@excalidraw/element/types").Theme;
304
310
  gridSize: number;
305
311
  gridStep: number;
306
312
  gridModeEnabled: boolean;
@@ -321,7 +327,7 @@ export declare const actionPaste: {
321
327
  [id: string]: true;
322
328
  }> | undefined;
323
329
  username?: string | null | undefined;
324
- userState?: import("../constants").UserIdleState | undefined;
330
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
325
331
  color?: {
326
332
  background: string;
327
333
  stroke: string;
@@ -338,7 +344,7 @@ export declare const actionPaste: {
338
344
  open: boolean;
339
345
  panels: number;
340
346
  };
341
- currentChartType: import("../element/types").ChartType;
347
+ currentChartType: import("@excalidraw/element/types").ChartType;
342
348
  pasteDialog: {
343
349
  shown: false;
344
350
  data: null;
@@ -346,9 +352,8 @@ export declare const actionPaste: {
346
352
  shown: true;
347
353
  data: import("../charts").Spreadsheet;
348
354
  };
349
- pendingImageElementId: string | null;
350
- showHyperlinkPopup: false | "info" | "editor";
351
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
355
+ showHyperlinkPopup: false | "editor" | "info";
356
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
352
357
  snapLines: readonly import("../snapping").SnapLine[];
353
358
  originSnapOffset: {
354
359
  x: number;
@@ -359,16 +364,15 @@ export declare const actionPaste: {
359
364
  followedBy: Set<import("../types").SocketId>;
360
365
  isCropping: boolean;
361
366
  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
- }[];
367
+ searchMatches: Readonly<{
368
+ focusedId: string | null;
369
+ matches: readonly import("../types").SearchMatch[];
370
+ }> | null;
371
+ activeLockedId: string | null;
372
+ lockedMultiSelections: {
373
+ [groupId: string]: true;
374
+ };
375
+ stylesPanelMode: "compact" | "full" | "mobile";
372
376
  };
373
377
  } | {
374
378
  captureUpdate: "EVENTUALLY";
@@ -385,10 +389,10 @@ export declare const actionCut: {
385
389
  trackEvent: {
386
390
  category: "element";
387
391
  };
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[];
392
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
393
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
390
394
  appState: {
391
- editingLinearElement: null;
395
+ selectedLinearElement: null;
392
396
  contextMenu: {
393
397
  items: import("../components/ContextMenu").ContextMenuItems;
394
398
  top: number;
@@ -398,17 +402,17 @@ export declare const actionCut: {
398
402
  isLoading: boolean;
399
403
  errorMessage: import("react").ReactNode;
400
404
  activeEmbeddable: {
401
- element: import("../element/types").NonDeletedExcalidrawElement;
402
- state: "hover" | "active";
405
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
406
+ state: "active" | "hover";
403
407
  } | 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;
408
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
409
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
410
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
411
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
408
412
  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;
413
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
414
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
415
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
412
416
  frameRendering: {
413
417
  enabled: boolean;
414
418
  name: boolean;
@@ -416,12 +420,17 @@ export declare const actionCut: {
416
420
  clip: boolean;
417
421
  };
418
422
  editingFrame: string | null;
419
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
420
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
423
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
424
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
421
425
  activeTool: {
422
426
  lastActiveTool: import("../types").ActiveTool | null;
423
427
  locked: boolean;
428
+ fromSelection: boolean;
424
429
  } & import("../types").ActiveTool;
430
+ preferredSelectionTool: {
431
+ type: "selection" | "lasso";
432
+ initialized: boolean;
433
+ };
425
434
  penMode: boolean;
426
435
  penDetected: boolean;
427
436
  exportBackground: boolean;
@@ -430,18 +439,18 @@ export declare const actionCut: {
430
439
  exportScale: number;
431
440
  currentItemStrokeColor: string;
432
441
  currentItemBackgroundColor: string;
433
- currentItemFillStyle: import("../element/types").FillStyle;
442
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
434
443
  currentItemStrokeWidth: number;
435
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
444
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
436
445
  currentItemRoughness: number;
437
446
  currentItemOpacity: number;
438
447
  currentItemFontFamily: number;
439
448
  currentItemFontSize: number;
440
449
  currentItemTextAlign: string;
441
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
442
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
450
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
451
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
443
452
  currentHoveredFontFamily: number | null;
444
- currentItemRoundness: import("../element/types").StrokeRoundness;
453
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
445
454
  currentItemArrowType: "round" | "sharp" | "elbow";
446
455
  viewBackgroundColor: string;
447
456
  scrollX: number;
@@ -455,7 +464,7 @@ export declare const actionCut: {
455
464
  value: import("../types").NormalizedZoomValue;
456
465
  }>;
457
466
  openMenu: "canvas" | "shape" | null;
458
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
467
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
459
468
  openSidebar: {
460
469
  name: string;
461
470
  tab?: string | undefined;
@@ -464,7 +473,7 @@ export declare const actionCut: {
464
473
  name: "imageExport" | "help" | "jsonExport";
465
474
  } | {
466
475
  name: "ttd";
467
- tab: "text-to-diagram" | "mermaid";
476
+ tab: "mermaid" | "text-to-diagram";
468
477
  } | {
469
478
  name: "commandPalette";
470
479
  } | {
@@ -472,7 +481,7 @@ export declare const actionCut: {
472
481
  sourceElementId: string;
473
482
  } | null;
474
483
  defaultSidebarDockedPreference: boolean;
475
- lastPointerDownWith: import("../element/types").PointerType;
484
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
476
485
  selectedElementIds: Readonly<{
477
486
  [id: string]: true;
478
487
  }>;
@@ -490,7 +499,7 @@ export declare const actionCut: {
490
499
  duration?: number | undefined;
491
500
  } | null;
492
501
  zenModeEnabled: boolean;
493
- theme: import("../element/types").Theme;
502
+ theme: import("@excalidraw/element/types").Theme;
494
503
  gridSize: number;
495
504
  gridStep: number;
496
505
  gridModeEnabled: boolean;
@@ -511,7 +520,7 @@ export declare const actionCut: {
511
520
  [id: string]: true;
512
521
  }> | undefined;
513
522
  username?: string | null | undefined;
514
- userState?: import("../constants").UserIdleState | undefined;
523
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
515
524
  color?: {
516
525
  background: string;
517
526
  stroke: string;
@@ -528,7 +537,7 @@ export declare const actionCut: {
528
537
  open: boolean;
529
538
  panels: number;
530
539
  };
531
- currentChartType: import("../element/types").ChartType;
540
+ currentChartType: import("@excalidraw/element/types").ChartType;
532
541
  pasteDialog: {
533
542
  shown: false;
534
543
  data: null;
@@ -536,9 +545,7 @@ export declare const actionCut: {
536
545
  shown: true;
537
546
  data: import("../charts").Spreadsheet;
538
547
  };
539
- pendingImageElementId: string | null;
540
- showHyperlinkPopup: false | "info" | "editor";
541
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
548
+ showHyperlinkPopup: false | "editor" | "info";
542
549
  snapLines: readonly import("../snapping").SnapLine[];
543
550
  originSnapOffset: {
544
551
  x: number;
@@ -549,25 +556,24 @@ export declare const actionCut: {
549
556
  followedBy: Set<import("../types").SocketId>;
550
557
  isCropping: boolean;
551
558
  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
- }[];
559
+ searchMatches: Readonly<{
560
+ focusedId: string | null;
561
+ matches: readonly import("../types").SearchMatch[];
562
+ }> | null;
563
+ activeLockedId: string | null;
564
+ lockedMultiSelections: {
565
+ [groupId: string]: true;
566
+ };
567
+ stylesPanelMode: "compact" | "full" | "mobile";
562
568
  };
563
569
  captureUpdate: "IMMEDIATELY";
564
570
  } | {
565
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
571
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
566
572
  appState: {
567
- editingLinearElement: {
573
+ selectedLinearElement: {
568
574
  selectedPointsIndices: number[];
569
- startBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
570
- endBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
575
+ startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
576
+ endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
571
577
  elementId: string & {
572
578
  _brand: "excalidrawLinearElementId";
573
579
  };
@@ -594,6 +600,8 @@ export declare const actionCut: {
594
600
  hoverPointIndex: number;
595
601
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
596
602
  elbowed: boolean;
603
+ customLineAngle: number | null;
604
+ isEditing: boolean;
597
605
  };
598
606
  contextMenu: {
599
607
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -604,17 +612,17 @@ export declare const actionCut: {
604
612
  isLoading: boolean;
605
613
  errorMessage: import("react").ReactNode;
606
614
  activeEmbeddable: {
607
- element: import("../element/types").NonDeletedExcalidrawElement;
608
- state: "hover" | "active";
615
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
616
+ state: "active" | "hover";
609
617
  } | 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;
618
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
619
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
620
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
621
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
614
622
  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;
623
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
624
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
625
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
618
626
  frameRendering: {
619
627
  enabled: boolean;
620
628
  name: boolean;
@@ -622,12 +630,17 @@ export declare const actionCut: {
622
630
  clip: boolean;
623
631
  };
624
632
  editingFrame: string | null;
625
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
626
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
633
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
634
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
627
635
  activeTool: {
628
636
  lastActiveTool: import("../types").ActiveTool | null;
629
637
  locked: boolean;
638
+ fromSelection: boolean;
630
639
  } & import("../types").ActiveTool;
640
+ preferredSelectionTool: {
641
+ type: "selection" | "lasso";
642
+ initialized: boolean;
643
+ };
631
644
  penMode: boolean;
632
645
  penDetected: boolean;
633
646
  exportBackground: boolean;
@@ -636,18 +649,18 @@ export declare const actionCut: {
636
649
  exportScale: number;
637
650
  currentItemStrokeColor: string;
638
651
  currentItemBackgroundColor: string;
639
- currentItemFillStyle: import("../element/types").FillStyle;
652
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
640
653
  currentItemStrokeWidth: number;
641
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
654
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
642
655
  currentItemRoughness: number;
643
656
  currentItemOpacity: number;
644
657
  currentItemFontFamily: number;
645
658
  currentItemFontSize: number;
646
659
  currentItemTextAlign: string;
647
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
648
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
660
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
661
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
649
662
  currentHoveredFontFamily: number | null;
650
- currentItemRoundness: import("../element/types").StrokeRoundness;
663
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
651
664
  currentItemArrowType: "round" | "sharp" | "elbow";
652
665
  viewBackgroundColor: string;
653
666
  scrollX: number;
@@ -661,7 +674,7 @@ export declare const actionCut: {
661
674
  value: import("../types").NormalizedZoomValue;
662
675
  }>;
663
676
  openMenu: "canvas" | "shape" | null;
664
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
677
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
665
678
  openSidebar: {
666
679
  name: string;
667
680
  tab?: string | undefined;
@@ -670,7 +683,7 @@ export declare const actionCut: {
670
683
  name: "imageExport" | "help" | "jsonExport";
671
684
  } | {
672
685
  name: "ttd";
673
- tab: "text-to-diagram" | "mermaid";
686
+ tab: "mermaid" | "text-to-diagram";
674
687
  } | {
675
688
  name: "commandPalette";
676
689
  } | {
@@ -678,7 +691,7 @@ export declare const actionCut: {
678
691
  sourceElementId: string;
679
692
  } | null;
680
693
  defaultSidebarDockedPreference: boolean;
681
- lastPointerDownWith: import("../element/types").PointerType;
694
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
682
695
  selectedElementIds: Readonly<{
683
696
  [id: string]: true;
684
697
  }>;
@@ -696,7 +709,7 @@ export declare const actionCut: {
696
709
  duration?: number | undefined;
697
710
  } | null;
698
711
  zenModeEnabled: boolean;
699
- theme: import("../element/types").Theme;
712
+ theme: import("@excalidraw/element/types").Theme;
700
713
  gridSize: number;
701
714
  gridStep: number;
702
715
  gridModeEnabled: boolean;
@@ -717,7 +730,7 @@ export declare const actionCut: {
717
730
  [id: string]: true;
718
731
  }> | undefined;
719
732
  username?: string | null | undefined;
720
- userState?: import("../constants").UserIdleState | undefined;
733
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
721
734
  color?: {
722
735
  background: string;
723
736
  stroke: string;
@@ -734,7 +747,7 @@ export declare const actionCut: {
734
747
  open: boolean;
735
748
  panels: number;
736
749
  };
737
- currentChartType: import("../element/types").ChartType;
750
+ currentChartType: import("@excalidraw/element/types").ChartType;
738
751
  pasteDialog: {
739
752
  shown: false;
740
753
  data: null;
@@ -742,9 +755,7 @@ export declare const actionCut: {
742
755
  shown: true;
743
756
  data: import("../charts").Spreadsheet;
744
757
  };
745
- pendingImageElementId: string | null;
746
- showHyperlinkPopup: false | "info" | "editor";
747
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
758
+ showHyperlinkPopup: false | "editor" | "info";
748
759
  snapLines: readonly import("../snapping").SnapLine[];
749
760
  originSnapOffset: {
750
761
  x: number;
@@ -755,34 +766,35 @@ export declare const actionCut: {
755
766
  followedBy: Set<import("../types").SocketId>;
756
767
  isCropping: boolean;
757
768
  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
- }[];
769
+ searchMatches: Readonly<{
770
+ focusedId: string | null;
771
+ matches: readonly import("../types").SearchMatch[];
772
+ }> | null;
773
+ activeLockedId: string | null;
774
+ lockedMultiSelections: {
775
+ [groupId: string]: true;
776
+ };
777
+ stylesPanelMode: "compact" | "full" | "mobile";
768
778
  };
769
779
  captureUpdate: "IMMEDIATELY";
770
780
  } | {
771
- elements: import("../element/types").ExcalidrawElement[];
781
+ elements: import("@excalidraw/element/types").ExcalidrawElement[];
772
782
  appState: {
773
783
  activeTool: {
774
784
  lastActiveTool: import("../types").ActiveTool | null;
775
785
  locked: boolean;
786
+ fromSelection: boolean;
776
787
  } & import("../types").ActiveTool;
777
788
  multiElement: null;
778
789
  activeEmbeddable: null;
790
+ selectedLinearElement: null;
791
+ editingGroupId: string | null;
779
792
  selectedElementIds: Readonly<{
780
793
  [id: string]: true;
781
794
  }>;
782
795
  selectedGroupIds: {
783
796
  [groupId: string]: boolean;
784
797
  };
785
- editingGroupId: string | null;
786
798
  contextMenu: {
787
799
  items: import("../components/ContextMenu").ContextMenuItems;
788
800
  top: number;
@@ -791,13 +803,13 @@ export declare const actionCut: {
791
803
  showWelcomeScreen: boolean;
792
804
  isLoading: boolean;
793
805
  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;
806
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
807
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
808
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
797
809
  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;
810
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
811
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
812
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
801
813
  frameRendering: {
802
814
  enabled: boolean;
803
815
  name: boolean;
@@ -805,9 +817,12 @@ export declare const actionCut: {
805
817
  clip: boolean;
806
818
  };
807
819
  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;
820
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
821
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
822
+ preferredSelectionTool: {
823
+ type: "selection" | "lasso";
824
+ initialized: boolean;
825
+ };
811
826
  penMode: boolean;
812
827
  penDetected: boolean;
813
828
  exportBackground: boolean;
@@ -816,18 +831,18 @@ export declare const actionCut: {
816
831
  exportScale: number;
817
832
  currentItemStrokeColor: string;
818
833
  currentItemBackgroundColor: string;
819
- currentItemFillStyle: import("../element/types").FillStyle;
834
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
820
835
  currentItemStrokeWidth: number;
821
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
836
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
822
837
  currentItemRoughness: number;
823
838
  currentItemOpacity: number;
824
839
  currentItemFontFamily: number;
825
840
  currentItemFontSize: number;
826
841
  currentItemTextAlign: string;
827
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
828
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
842
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
843
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
829
844
  currentHoveredFontFamily: number | null;
830
- currentItemRoundness: import("../element/types").StrokeRoundness;
845
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
831
846
  currentItemArrowType: "round" | "sharp" | "elbow";
832
847
  viewBackgroundColor: string;
833
848
  scrollX: number;
@@ -841,7 +856,7 @@ export declare const actionCut: {
841
856
  value: import("../types").NormalizedZoomValue;
842
857
  }>;
843
858
  openMenu: "canvas" | "shape" | null;
844
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
859
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
845
860
  openSidebar: {
846
861
  name: string;
847
862
  tab?: string | undefined;
@@ -850,7 +865,7 @@ export declare const actionCut: {
850
865
  name: "imageExport" | "help" | "jsonExport";
851
866
  } | {
852
867
  name: "ttd";
853
- tab: "text-to-diagram" | "mermaid";
868
+ tab: "mermaid" | "text-to-diagram";
854
869
  } | {
855
870
  name: "commandPalette";
856
871
  } | {
@@ -858,7 +873,7 @@ export declare const actionCut: {
858
873
  sourceElementId: string;
859
874
  } | null;
860
875
  defaultSidebarDockedPreference: boolean;
861
- lastPointerDownWith: import("../element/types").PointerType;
876
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
862
877
  hoveredElementIds: Readonly<{
863
878
  [id: string]: true;
864
879
  }>;
@@ -873,7 +888,7 @@ export declare const actionCut: {
873
888
  duration?: number | undefined;
874
889
  } | null;
875
890
  zenModeEnabled: boolean;
876
- theme: import("../element/types").Theme;
891
+ theme: import("@excalidraw/element/types").Theme;
877
892
  gridSize: number;
878
893
  gridStep: number;
879
894
  gridModeEnabled: boolean;
@@ -890,7 +905,7 @@ export declare const actionCut: {
890
905
  [id: string]: true;
891
906
  }> | undefined;
892
907
  username?: string | null | undefined;
893
- userState?: import("../constants").UserIdleState | undefined;
908
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
894
909
  color?: {
895
910
  background: string;
896
911
  stroke: string;
@@ -907,7 +922,7 @@ export declare const actionCut: {
907
922
  open: boolean;
908
923
  panels: number;
909
924
  };
910
- currentChartType: import("../element/types").ChartType;
925
+ currentChartType: import("@excalidraw/element/types").ChartType;
911
926
  pasteDialog: {
912
927
  shown: false;
913
928
  data: null;
@@ -915,9 +930,7 @@ export declare const actionCut: {
915
930
  shown: true;
916
931
  data: import("../charts").Spreadsheet;
917
932
  };
918
- pendingImageElementId: string | null;
919
- showHyperlinkPopup: false | "info" | "editor";
920
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
933
+ showHyperlinkPopup: false | "editor" | "info";
921
934
  snapLines: readonly import("../snapping").SnapLine[];
922
935
  originSnapOffset: {
923
936
  x: number;
@@ -928,16 +941,15 @@ export declare const actionCut: {
928
941
  followedBy: Set<import("../types").SocketId>;
929
942
  isCropping: boolean;
930
943
  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
- }[];
944
+ searchMatches: Readonly<{
945
+ focusedId: string | null;
946
+ matches: readonly import("../types").SearchMatch[];
947
+ }> | null;
948
+ activeLockedId: string | null;
949
+ lockedMultiSelections: {
950
+ [groupId: string]: true;
951
+ };
952
+ stylesPanelMode: "compact" | "full" | "mobile";
941
953
  };
942
954
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
943
955
  };
@@ -952,7 +964,7 @@ export declare const actionCopyAsSvg: {
952
964
  trackEvent: {
953
965
  category: "element";
954
966
  };
955
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
967
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
956
968
  captureUpdate: "EVENTUALLY";
957
969
  appState?: undefined;
958
970
  } | {
@@ -970,7 +982,7 @@ export declare const actionCopyAsSvg: {
970
982
  };
971
983
  captureUpdate: "EVENTUALLY";
972
984
  }>;
973
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
985
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
974
986
  keywords: string[];
975
987
  } & {
976
988
  keyTest?: undefined;
@@ -982,7 +994,7 @@ export declare const actionCopyAsPng: {
982
994
  trackEvent: {
983
995
  category: "element";
984
996
  };
985
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
997
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
986
998
  captureUpdate: "EVENTUALLY";
987
999
  appState?: undefined;
988
1000
  } | {
@@ -996,17 +1008,17 @@ export declare const actionCopyAsPng: {
996
1008
  showWelcomeScreen: boolean;
997
1009
  isLoading: boolean;
998
1010
  activeEmbeddable: {
999
- element: import("../element/types").NonDeletedExcalidrawElement;
1000
- state: "hover" | "active";
1011
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1012
+ state: "active" | "hover";
1001
1013
  } | 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;
1014
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1015
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1016
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1017
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1006
1018
  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;
1019
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1020
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1021
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1010
1022
  frameRendering: {
1011
1023
  enabled: boolean;
1012
1024
  name: boolean;
@@ -1014,13 +1026,17 @@ export declare const actionCopyAsPng: {
1014
1026
  clip: boolean;
1015
1027
  };
1016
1028
  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;
1029
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1030
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1020
1031
  activeTool: {
1021
1032
  lastActiveTool: import("../types").ActiveTool | null;
1022
1033
  locked: boolean;
1034
+ fromSelection: boolean;
1023
1035
  } & import("../types").ActiveTool;
1036
+ preferredSelectionTool: {
1037
+ type: "selection" | "lasso";
1038
+ initialized: boolean;
1039
+ };
1024
1040
  penMode: boolean;
1025
1041
  penDetected: boolean;
1026
1042
  exportBackground: boolean;
@@ -1029,18 +1045,18 @@ export declare const actionCopyAsPng: {
1029
1045
  exportScale: number;
1030
1046
  currentItemStrokeColor: string;
1031
1047
  currentItemBackgroundColor: string;
1032
- currentItemFillStyle: import("../element/types").FillStyle;
1048
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1033
1049
  currentItemStrokeWidth: number;
1034
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1050
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1035
1051
  currentItemRoughness: number;
1036
1052
  currentItemOpacity: number;
1037
1053
  currentItemFontFamily: number;
1038
1054
  currentItemFontSize: number;
1039
1055
  currentItemTextAlign: string;
1040
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1041
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1056
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1057
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1042
1058
  currentHoveredFontFamily: number | null;
1043
- currentItemRoundness: import("../element/types").StrokeRoundness;
1059
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1044
1060
  currentItemArrowType: "round" | "sharp" | "elbow";
1045
1061
  viewBackgroundColor: string;
1046
1062
  scrollX: number;
@@ -1054,7 +1070,7 @@ export declare const actionCopyAsPng: {
1054
1070
  value: import("../types").NormalizedZoomValue;
1055
1071
  }>;
1056
1072
  openMenu: "canvas" | "shape" | null;
1057
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1073
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1058
1074
  openSidebar: {
1059
1075
  name: string;
1060
1076
  tab?: string | undefined;
@@ -1063,7 +1079,7 @@ export declare const actionCopyAsPng: {
1063
1079
  name: "imageExport" | "help" | "jsonExport";
1064
1080
  } | {
1065
1081
  name: "ttd";
1066
- tab: "text-to-diagram" | "mermaid";
1082
+ tab: "mermaid" | "text-to-diagram";
1067
1083
  } | {
1068
1084
  name: "commandPalette";
1069
1085
  } | {
@@ -1071,7 +1087,7 @@ export declare const actionCopyAsPng: {
1071
1087
  sourceElementId: string;
1072
1088
  } | null;
1073
1089
  defaultSidebarDockedPreference: boolean;
1074
- lastPointerDownWith: import("../element/types").PointerType;
1090
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1075
1091
  selectedElementIds: Readonly<{
1076
1092
  [id: string]: true;
1077
1093
  }>;
@@ -1089,7 +1105,7 @@ export declare const actionCopyAsPng: {
1089
1105
  duration?: number | undefined;
1090
1106
  } | null;
1091
1107
  zenModeEnabled: boolean;
1092
- theme: import("../element/types").Theme;
1108
+ theme: import("@excalidraw/element/types").Theme;
1093
1109
  gridSize: number;
1094
1110
  gridStep: number;
1095
1111
  gridModeEnabled: boolean;
@@ -1110,7 +1126,7 @@ export declare const actionCopyAsPng: {
1110
1126
  [id: string]: true;
1111
1127
  }> | undefined;
1112
1128
  username?: string | null | undefined;
1113
- userState?: import("../constants").UserIdleState | undefined;
1129
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1114
1130
  color?: {
1115
1131
  background: string;
1116
1132
  stroke: string;
@@ -1127,7 +1143,7 @@ export declare const actionCopyAsPng: {
1127
1143
  open: boolean;
1128
1144
  panels: number;
1129
1145
  };
1130
- currentChartType: import("../element/types").ChartType;
1146
+ currentChartType: import("@excalidraw/element/types").ChartType;
1131
1147
  pasteDialog: {
1132
1148
  shown: false;
1133
1149
  data: null;
@@ -1135,9 +1151,8 @@ export declare const actionCopyAsPng: {
1135
1151
  shown: true;
1136
1152
  data: import("../charts").Spreadsheet;
1137
1153
  };
1138
- pendingImageElementId: string | null;
1139
- showHyperlinkPopup: false | "info" | "editor";
1140
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1154
+ showHyperlinkPopup: false | "editor" | "info";
1155
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1141
1156
  snapLines: readonly import("../snapping").SnapLine[];
1142
1157
  originSnapOffset: {
1143
1158
  x: number;
@@ -1148,20 +1163,19 @@ export declare const actionCopyAsPng: {
1148
1163
  followedBy: Set<import("../types").SocketId>;
1149
1164
  isCropping: boolean;
1150
1165
  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
- }[];
1166
+ searchMatches: Readonly<{
1167
+ focusedId: string | null;
1168
+ matches: readonly import("../types").SearchMatch[];
1169
+ }> | null;
1170
+ activeLockedId: string | null;
1171
+ lockedMultiSelections: {
1172
+ [groupId: string]: true;
1173
+ };
1174
+ stylesPanelMode: "compact" | "full" | "mobile";
1161
1175
  };
1162
1176
  captureUpdate: "EVENTUALLY";
1163
1177
  }>;
1164
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
1178
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1165
1179
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1166
1180
  keywords: string[];
1167
1181
  } & {
@@ -1173,10 +1187,10 @@ export declare const copyText: {
1173
1187
  trackEvent: {
1174
1188
  category: "element";
1175
1189
  };
1176
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1190
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1177
1191
  captureUpdate: "EVENTUALLY";
1178
1192
  };
1179
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1193
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1180
1194
  keywords: string[];
1181
1195
  } & {
1182
1196
  keyTest?: undefined;