@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
@@ -1,35 +1,33 @@
1
1
  /// <reference types="react" />
2
- import type { ExcalidrawElement } from "../element/types";
2
+ import { type SceneBounds } from "@excalidraw/element";
3
+ import type { ExcalidrawElement } from "@excalidraw/element/types";
3
4
  import type { AppState, Offsets } from "../types";
4
- import type { SceneBounds } from "../element/bounds";
5
5
  export declare const actionChangeViewBackgroundColor: {
6
6
  name: "changeViewBackgroundColor";
7
7
  label: string;
8
- paletteName: string;
9
8
  trackEvent: false;
10
9
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
11
- perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
10
+ perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
12
11
  appState: any;
13
12
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
14
13
  };
15
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
14
+ PanelComponent: ({ elements, appState, updateData, appProps, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
16
15
  } & {
17
16
  keyTest?: undefined;
18
17
  };
19
18
  export declare const actionClearCanvas: {
20
19
  name: "clearCanvas";
21
20
  label: string;
22
- paletteName: string;
23
21
  icon: import("react/jsx-runtime").JSX.Element;
24
22
  trackEvent: {
25
23
  category: "canvas";
26
24
  };
27
25
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
28
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
29
- elements: import("../element/types").OrderedExcalidrawElement[];
26
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
27
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
30
28
  appState: {
31
29
  files: {};
32
- theme: import("../element/types").Theme;
30
+ theme: import("@excalidraw/element/types").Theme;
33
31
  penMode: boolean;
34
32
  penDetected: boolean;
35
33
  exportBackground: boolean;
@@ -51,108 +49,52 @@ export declare const actionClearCanvas: {
51
49
  activeTool: {
52
50
  lastActiveTool: import("../types").ActiveTool | null;
53
51
  locked: boolean;
52
+ fromSelection: boolean;
54
53
  } & import("../types").ActiveTool;
55
- viewModeEnabled: boolean;
56
- zenModeEnabled: boolean;
57
- objectsSnapModeEnabled: boolean;
58
- name: string | null;
59
- currentItemArrowType: "round" | "sharp" | "elbow";
60
- contextMenu: {
61
- items: import("../components/ContextMenu").ContextMenuItems;
62
- top: number;
63
- left: number;
64
- } | null;
65
- showWelcomeScreen: boolean;
66
- isLoading: boolean;
67
- errorMessage: import("react").ReactNode;
68
- activeEmbeddable: {
69
- element: import("../element/types").NonDeletedExcalidrawElement;
70
- state: "hover" | "active";
71
- } | null;
72
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
73
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
74
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
75
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
76
- isBindingEnabled: boolean;
77
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
78
- suggestedBindings: import("../element/binding").SuggestedBinding[];
79
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
54
+ viewBackgroundColor: string;
80
55
  frameRendering: {
81
56
  enabled: boolean;
82
57
  name: boolean;
83
58
  outline: boolean;
84
59
  clip: boolean;
85
60
  };
86
- editingFrame: string | null;
87
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
88
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
89
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
90
- exportWithDarkMode: boolean;
91
- exportScale: number;
92
- currentItemStrokeColor: string;
93
- currentItemBackgroundColor: string;
94
- currentItemFillStyle: import("../element/types").FillStyle;
95
- currentItemStrokeWidth: number;
96
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
97
- currentItemRoughness: number;
98
- currentItemOpacity: number;
99
- currentItemFontFamily: number;
100
- currentItemFontSize: number;
101
- currentItemTextAlign: string;
102
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
103
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
104
- currentHoveredFontFamily: number | null;
105
- currentItemRoundness: import("../element/types").StrokeRoundness;
106
- viewBackgroundColor: string;
107
- scrollX: number;
108
- scrollY: number;
109
- cursorButton: "up" | "down";
110
- scrolledOutside: boolean;
111
- isResizing: boolean;
112
- isRotating: boolean;
61
+ name: string | null;
113
62
  zoom: Readonly<{
114
63
  value: import("../types").NormalizedZoomValue;
115
64
  }>;
116
- openMenu: "canvas" | "shape" | null;
117
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
118
- openSidebar: {
119
- name: string;
120
- tab?: string | undefined;
121
- } | null;
65
+ scrollX: number;
66
+ scrollY: number;
67
+ viewModeEnabled: boolean;
122
68
  openDialog: {
123
69
  name: "imageExport" | "help" | "jsonExport";
124
70
  } | {
125
71
  name: "ttd";
126
- tab: "text-to-diagram" | "mermaid";
72
+ tab: "mermaid" | "text-to-diagram";
127
73
  } | {
128
74
  name: "commandPalette";
129
75
  } | {
130
76
  name: "elementLinkSelector";
131
77
  sourceElementId: string;
132
78
  } | null;
133
- defaultSidebarDockedPreference: boolean;
134
- lastPointerDownWith: import("../element/types").PointerType;
79
+ editingGroupId: string | null;
135
80
  selectedElementIds: Readonly<{
136
81
  [id: string]: true;
137
82
  }>;
138
- hoveredElementIds: Readonly<{
139
- [id: string]: true;
140
- }>;
141
- previousSelectedElementIds: {
142
- [id: string]: true;
143
- };
144
- selectedElementsAreBeingDragged: boolean;
145
- shouldCacheIgnoreZoom: boolean;
146
- toast: {
147
- message: string;
148
- closable?: boolean | undefined;
149
- duration?: number | undefined;
83
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
84
+ activeEmbeddable: {
85
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
86
+ state: "active" | "hover";
150
87
  } | null;
88
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
151
89
  selectedGroupIds: {
152
90
  [groupId: string]: boolean;
153
91
  };
154
- editingGroupId: string | null;
155
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
92
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
93
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
94
+ isBindingEnabled: boolean;
95
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
96
+ isRotating: boolean;
97
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
156
98
  collaborators: Map<import("../types").SocketId, Readonly<{
157
99
  pointer?: import("../types").CollaboratorPointer | undefined;
158
100
  button?: "up" | "down" | undefined;
@@ -160,7 +102,7 @@ export declare const actionClearCanvas: {
160
102
  [id: string]: true;
161
103
  }> | undefined;
162
104
  username?: string | null | undefined;
163
- userState?: import("../constants").UserIdleState | undefined;
105
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
164
106
  color?: {
165
107
  background: string;
166
108
  stroke: string;
@@ -173,29 +115,87 @@ export declare const actionClearCanvas: {
173
115
  isSpeaking?: boolean | undefined;
174
116
  isMuted?: boolean | undefined;
175
117
  }>>;
176
- currentChartType: import("../element/types").ChartType;
177
- pendingImageElementId: string | null;
178
- showHyperlinkPopup: false | "info" | "editor";
179
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
180
118
  snapLines: readonly import("../snapping").SnapLine[];
119
+ zenModeEnabled: boolean;
120
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
121
+ isCropping: boolean;
122
+ croppingElementId: string | null;
123
+ searchMatches: Readonly<{
124
+ focusedId: string | null;
125
+ matches: readonly import("../types").SearchMatch[];
126
+ }> | null;
127
+ activeLockedId: string | null;
128
+ contextMenu: {
129
+ items: import("../components/ContextMenu").ContextMenuItems;
130
+ top: number;
131
+ left: number;
132
+ } | null;
133
+ showWelcomeScreen: boolean;
134
+ isLoading: boolean;
135
+ errorMessage: import("react").ReactNode;
136
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
137
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
138
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
139
+ editingFrame: string | null;
140
+ preferredSelectionTool: {
141
+ type: "selection" | "lasso";
142
+ initialized: boolean;
143
+ };
144
+ exportWithDarkMode: boolean;
145
+ exportScale: number;
146
+ currentItemStrokeColor: string;
147
+ currentItemBackgroundColor: string;
148
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
149
+ currentItemStrokeWidth: number;
150
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
151
+ currentItemRoughness: number;
152
+ currentItemOpacity: number;
153
+ currentItemFontFamily: number;
154
+ currentItemFontSize: number;
155
+ currentItemTextAlign: string;
156
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
157
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
158
+ currentHoveredFontFamily: number | null;
159
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
160
+ currentItemArrowType: "round" | "sharp" | "elbow";
161
+ cursorButton: "up" | "down";
162
+ scrolledOutside: boolean;
163
+ isResizing: boolean;
164
+ openMenu: "canvas" | "shape" | null;
165
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
166
+ openSidebar: {
167
+ name: string;
168
+ tab?: string | undefined;
169
+ } | null;
170
+ defaultSidebarDockedPreference: boolean;
171
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
172
+ hoveredElementIds: Readonly<{
173
+ [id: string]: true;
174
+ }>;
175
+ previousSelectedElementIds: {
176
+ [id: string]: true;
177
+ };
178
+ selectedElementsAreBeingDragged: boolean;
179
+ shouldCacheIgnoreZoom: boolean;
180
+ toast: {
181
+ message: string;
182
+ closable?: boolean | undefined;
183
+ duration?: number | undefined;
184
+ } | null;
185
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
186
+ currentChartType: import("@excalidraw/element/types").ChartType;
187
+ showHyperlinkPopup: false | "editor" | "info";
181
188
  originSnapOffset: {
182
189
  x: number;
183
190
  y: number;
184
191
  } | null;
192
+ objectsSnapModeEnabled: boolean;
185
193
  userToFollow: import("../types").UserToFollow | null;
186
194
  followedBy: Set<import("../types").SocketId>;
187
- isCropping: boolean;
188
- croppingElementId: string | null;
189
- searchMatches: readonly {
190
- id: string;
191
- focus: boolean;
192
- matchedLines: {
193
- offsetX: number;
194
- offsetY: number;
195
- width: number;
196
- height: number;
197
- }[];
198
- }[];
195
+ lockedMultiSelections: {
196
+ [groupId: string]: true;
197
+ };
198
+ stylesPanelMode: "compact" | "full" | "mobile";
199
199
  };
200
200
  captureUpdate: "IMMEDIATELY";
201
201
  };
@@ -210,7 +210,7 @@ export declare const actionZoomIn: {
210
210
  trackEvent: {
211
211
  category: "canvas";
212
212
  };
213
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
213
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
214
214
  appState: {
215
215
  userToFollow: null;
216
216
  scrollX: number;
@@ -227,17 +227,17 @@ export declare const actionZoomIn: {
227
227
  isLoading: boolean;
228
228
  errorMessage: import("react").ReactNode;
229
229
  activeEmbeddable: {
230
- element: import("../element/types").NonDeletedExcalidrawElement;
231
- state: "hover" | "active";
230
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
231
+ state: "active" | "hover";
232
232
  } | null;
233
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
234
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
235
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
236
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
233
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
234
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
235
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
236
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
237
237
  isBindingEnabled: boolean;
238
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
239
- suggestedBindings: import("../element/binding").SuggestedBinding[];
240
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
238
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
239
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
240
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
241
241
  frameRendering: {
242
242
  enabled: boolean;
243
243
  name: boolean;
@@ -245,13 +245,17 @@ export declare const actionZoomIn: {
245
245
  clip: boolean;
246
246
  };
247
247
  editingFrame: string | null;
248
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
249
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
250
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
248
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
249
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
251
250
  activeTool: {
252
251
  lastActiveTool: import("../types").ActiveTool | null;
253
252
  locked: boolean;
253
+ fromSelection: boolean;
254
254
  } & import("../types").ActiveTool;
255
+ preferredSelectionTool: {
256
+ type: "selection" | "lasso";
257
+ initialized: boolean;
258
+ };
255
259
  penMode: boolean;
256
260
  penDetected: boolean;
257
261
  exportBackground: boolean;
@@ -260,18 +264,18 @@ export declare const actionZoomIn: {
260
264
  exportScale: number;
261
265
  currentItemStrokeColor: string;
262
266
  currentItemBackgroundColor: string;
263
- currentItemFillStyle: import("../element/types").FillStyle;
267
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
264
268
  currentItemStrokeWidth: number;
265
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
269
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
266
270
  currentItemRoughness: number;
267
271
  currentItemOpacity: number;
268
272
  currentItemFontFamily: number;
269
273
  currentItemFontSize: number;
270
274
  currentItemTextAlign: string;
271
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
272
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
275
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
276
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
273
277
  currentHoveredFontFamily: number | null;
274
- currentItemRoundness: import("../element/types").StrokeRoundness;
278
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
275
279
  currentItemArrowType: "round" | "sharp" | "elbow";
276
280
  viewBackgroundColor: string;
277
281
  cursorButton: "up" | "down";
@@ -280,7 +284,7 @@ export declare const actionZoomIn: {
280
284
  isResizing: boolean;
281
285
  isRotating: boolean;
282
286
  openMenu: "canvas" | "shape" | null;
283
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
287
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
284
288
  openSidebar: {
285
289
  name: string;
286
290
  tab?: string | undefined;
@@ -289,7 +293,7 @@ export declare const actionZoomIn: {
289
293
  name: "imageExport" | "help" | "jsonExport";
290
294
  } | {
291
295
  name: "ttd";
292
- tab: "text-to-diagram" | "mermaid";
296
+ tab: "mermaid" | "text-to-diagram";
293
297
  } | {
294
298
  name: "commandPalette";
295
299
  } | {
@@ -297,7 +301,7 @@ export declare const actionZoomIn: {
297
301
  sourceElementId: string;
298
302
  } | null;
299
303
  defaultSidebarDockedPreference: boolean;
300
- lastPointerDownWith: import("../element/types").PointerType;
304
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
301
305
  selectedElementIds: Readonly<{
302
306
  [id: string]: true;
303
307
  }>;
@@ -315,7 +319,7 @@ export declare const actionZoomIn: {
315
319
  duration?: number | undefined;
316
320
  } | null;
317
321
  zenModeEnabled: boolean;
318
- theme: import("../element/types").Theme;
322
+ theme: import("@excalidraw/element/types").Theme;
319
323
  gridSize: number;
320
324
  gridStep: number;
321
325
  gridModeEnabled: boolean;
@@ -336,7 +340,7 @@ export declare const actionZoomIn: {
336
340
  [id: string]: true;
337
341
  }> | undefined;
338
342
  username?: string | null | undefined;
339
- userState?: import("../constants").UserIdleState | undefined;
343
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
340
344
  color?: {
341
345
  background: string;
342
346
  stroke: string;
@@ -353,7 +357,7 @@ export declare const actionZoomIn: {
353
357
  open: boolean;
354
358
  panels: number;
355
359
  };
356
- currentChartType: import("../element/types").ChartType;
360
+ currentChartType: import("@excalidraw/element/types").ChartType;
357
361
  pasteDialog: {
358
362
  shown: false;
359
363
  data: null;
@@ -361,9 +365,8 @@ export declare const actionZoomIn: {
361
365
  shown: true;
362
366
  data: import("../charts").Spreadsheet;
363
367
  };
364
- pendingImageElementId: string | null;
365
- showHyperlinkPopup: false | "info" | "editor";
366
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
368
+ showHyperlinkPopup: false | "editor" | "info";
369
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
367
370
  snapLines: readonly import("../snapping").SnapLine[];
368
371
  originSnapOffset: {
369
372
  x: number;
@@ -373,16 +376,15 @@ export declare const actionZoomIn: {
373
376
  followedBy: Set<import("../types").SocketId>;
374
377
  isCropping: boolean;
375
378
  croppingElementId: string | null;
376
- searchMatches: readonly {
377
- id: string;
378
- focus: boolean;
379
- matchedLines: {
380
- offsetX: number;
381
- offsetY: number;
382
- width: number;
383
- height: number;
384
- }[];
385
- }[];
379
+ searchMatches: Readonly<{
380
+ focusedId: string | null;
381
+ matches: readonly import("../types").SearchMatch[];
382
+ }> | null;
383
+ activeLockedId: string | null;
384
+ lockedMultiSelections: {
385
+ [groupId: string]: true;
386
+ };
387
+ stylesPanelMode: "compact" | "full" | "mobile";
386
388
  };
387
389
  captureUpdate: "EVENTUALLY";
388
390
  };
@@ -399,7 +401,7 @@ export declare const actionZoomOut: {
399
401
  trackEvent: {
400
402
  category: "canvas";
401
403
  };
402
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
404
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
403
405
  appState: {
404
406
  userToFollow: null;
405
407
  scrollX: number;
@@ -416,17 +418,17 @@ export declare const actionZoomOut: {
416
418
  isLoading: boolean;
417
419
  errorMessage: import("react").ReactNode;
418
420
  activeEmbeddable: {
419
- element: import("../element/types").NonDeletedExcalidrawElement;
420
- state: "hover" | "active";
421
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
422
+ state: "active" | "hover";
421
423
  } | null;
422
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
423
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
424
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
425
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
424
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
425
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
426
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
427
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
426
428
  isBindingEnabled: boolean;
427
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
428
- suggestedBindings: import("../element/binding").SuggestedBinding[];
429
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
429
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
430
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
431
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
430
432
  frameRendering: {
431
433
  enabled: boolean;
432
434
  name: boolean;
@@ -434,13 +436,17 @@ export declare const actionZoomOut: {
434
436
  clip: boolean;
435
437
  };
436
438
  editingFrame: string | null;
437
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
438
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
439
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
439
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
440
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
440
441
  activeTool: {
441
442
  lastActiveTool: import("../types").ActiveTool | null;
442
443
  locked: boolean;
444
+ fromSelection: boolean;
443
445
  } & import("../types").ActiveTool;
446
+ preferredSelectionTool: {
447
+ type: "selection" | "lasso";
448
+ initialized: boolean;
449
+ };
444
450
  penMode: boolean;
445
451
  penDetected: boolean;
446
452
  exportBackground: boolean;
@@ -449,18 +455,18 @@ export declare const actionZoomOut: {
449
455
  exportScale: number;
450
456
  currentItemStrokeColor: string;
451
457
  currentItemBackgroundColor: string;
452
- currentItemFillStyle: import("../element/types").FillStyle;
458
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
453
459
  currentItemStrokeWidth: number;
454
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
460
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
455
461
  currentItemRoughness: number;
456
462
  currentItemOpacity: number;
457
463
  currentItemFontFamily: number;
458
464
  currentItemFontSize: number;
459
465
  currentItemTextAlign: string;
460
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
461
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
466
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
467
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
462
468
  currentHoveredFontFamily: number | null;
463
- currentItemRoundness: import("../element/types").StrokeRoundness;
469
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
464
470
  currentItemArrowType: "round" | "sharp" | "elbow";
465
471
  viewBackgroundColor: string;
466
472
  cursorButton: "up" | "down";
@@ -469,7 +475,7 @@ export declare const actionZoomOut: {
469
475
  isResizing: boolean;
470
476
  isRotating: boolean;
471
477
  openMenu: "canvas" | "shape" | null;
472
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
478
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
473
479
  openSidebar: {
474
480
  name: string;
475
481
  tab?: string | undefined;
@@ -478,7 +484,7 @@ export declare const actionZoomOut: {
478
484
  name: "imageExport" | "help" | "jsonExport";
479
485
  } | {
480
486
  name: "ttd";
481
- tab: "text-to-diagram" | "mermaid";
487
+ tab: "mermaid" | "text-to-diagram";
482
488
  } | {
483
489
  name: "commandPalette";
484
490
  } | {
@@ -486,7 +492,7 @@ export declare const actionZoomOut: {
486
492
  sourceElementId: string;
487
493
  } | null;
488
494
  defaultSidebarDockedPreference: boolean;
489
- lastPointerDownWith: import("../element/types").PointerType;
495
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
490
496
  selectedElementIds: Readonly<{
491
497
  [id: string]: true;
492
498
  }>;
@@ -504,7 +510,7 @@ export declare const actionZoomOut: {
504
510
  duration?: number | undefined;
505
511
  } | null;
506
512
  zenModeEnabled: boolean;
507
- theme: import("../element/types").Theme;
513
+ theme: import("@excalidraw/element/types").Theme;
508
514
  gridSize: number;
509
515
  gridStep: number;
510
516
  gridModeEnabled: boolean;
@@ -525,7 +531,7 @@ export declare const actionZoomOut: {
525
531
  [id: string]: true;
526
532
  }> | undefined;
527
533
  username?: string | null | undefined;
528
- userState?: import("../constants").UserIdleState | undefined;
534
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
529
535
  color?: {
530
536
  background: string;
531
537
  stroke: string;
@@ -542,7 +548,7 @@ export declare const actionZoomOut: {
542
548
  open: boolean;
543
549
  panels: number;
544
550
  };
545
- currentChartType: import("../element/types").ChartType;
551
+ currentChartType: import("@excalidraw/element/types").ChartType;
546
552
  pasteDialog: {
547
553
  shown: false;
548
554
  data: null;
@@ -550,9 +556,8 @@ export declare const actionZoomOut: {
550
556
  shown: true;
551
557
  data: import("../charts").Spreadsheet;
552
558
  };
553
- pendingImageElementId: string | null;
554
- showHyperlinkPopup: false | "info" | "editor";
555
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
559
+ showHyperlinkPopup: false | "editor" | "info";
560
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
556
561
  snapLines: readonly import("../snapping").SnapLine[];
557
562
  originSnapOffset: {
558
563
  x: number;
@@ -562,16 +567,15 @@ export declare const actionZoomOut: {
562
567
  followedBy: Set<import("../types").SocketId>;
563
568
  isCropping: boolean;
564
569
  croppingElementId: string | null;
565
- searchMatches: readonly {
566
- id: string;
567
- focus: boolean;
568
- matchedLines: {
569
- offsetX: number;
570
- offsetY: number;
571
- width: number;
572
- height: number;
573
- }[];
574
- }[];
570
+ searchMatches: Readonly<{
571
+ focusedId: string | null;
572
+ matches: readonly import("../types").SearchMatch[];
573
+ }> | null;
574
+ activeLockedId: string | null;
575
+ lockedMultiSelections: {
576
+ [groupId: string]: true;
577
+ };
578
+ stylesPanelMode: "compact" | "full" | "mobile";
575
579
  };
576
580
  captureUpdate: "EVENTUALLY";
577
581
  };
@@ -588,7 +592,7 @@ export declare const actionResetZoom: {
588
592
  trackEvent: {
589
593
  category: "canvas";
590
594
  };
591
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
595
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
592
596
  appState: {
593
597
  userToFollow: null;
594
598
  scrollX: number;
@@ -605,17 +609,17 @@ export declare const actionResetZoom: {
605
609
  isLoading: boolean;
606
610
  errorMessage: import("react").ReactNode;
607
611
  activeEmbeddable: {
608
- element: import("../element/types").NonDeletedExcalidrawElement;
609
- state: "hover" | "active";
612
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
613
+ state: "active" | "hover";
610
614
  } | null;
611
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
612
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
613
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
614
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
615
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
616
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
617
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
618
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
615
619
  isBindingEnabled: boolean;
616
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
617
- suggestedBindings: import("../element/binding").SuggestedBinding[];
618
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
620
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
621
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
622
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
619
623
  frameRendering: {
620
624
  enabled: boolean;
621
625
  name: boolean;
@@ -623,13 +627,17 @@ export declare const actionResetZoom: {
623
627
  clip: boolean;
624
628
  };
625
629
  editingFrame: string | null;
626
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
627
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
628
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
630
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
631
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
629
632
  activeTool: {
630
633
  lastActiveTool: import("../types").ActiveTool | null;
631
634
  locked: boolean;
635
+ fromSelection: boolean;
632
636
  } & import("../types").ActiveTool;
637
+ preferredSelectionTool: {
638
+ type: "selection" | "lasso";
639
+ initialized: boolean;
640
+ };
633
641
  penMode: boolean;
634
642
  penDetected: boolean;
635
643
  exportBackground: boolean;
@@ -638,18 +646,18 @@ export declare const actionResetZoom: {
638
646
  exportScale: number;
639
647
  currentItemStrokeColor: string;
640
648
  currentItemBackgroundColor: string;
641
- currentItemFillStyle: import("../element/types").FillStyle;
649
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
642
650
  currentItemStrokeWidth: number;
643
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
651
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
644
652
  currentItemRoughness: number;
645
653
  currentItemOpacity: number;
646
654
  currentItemFontFamily: number;
647
655
  currentItemFontSize: number;
648
656
  currentItemTextAlign: string;
649
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
650
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
657
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
658
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
651
659
  currentHoveredFontFamily: number | null;
652
- currentItemRoundness: import("../element/types").StrokeRoundness;
660
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
653
661
  currentItemArrowType: "round" | "sharp" | "elbow";
654
662
  viewBackgroundColor: string;
655
663
  cursorButton: "up" | "down";
@@ -658,7 +666,7 @@ export declare const actionResetZoom: {
658
666
  isResizing: boolean;
659
667
  isRotating: boolean;
660
668
  openMenu: "canvas" | "shape" | null;
661
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
669
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
662
670
  openSidebar: {
663
671
  name: string;
664
672
  tab?: string | undefined;
@@ -667,7 +675,7 @@ export declare const actionResetZoom: {
667
675
  name: "imageExport" | "help" | "jsonExport";
668
676
  } | {
669
677
  name: "ttd";
670
- tab: "text-to-diagram" | "mermaid";
678
+ tab: "mermaid" | "text-to-diagram";
671
679
  } | {
672
680
  name: "commandPalette";
673
681
  } | {
@@ -675,7 +683,7 @@ export declare const actionResetZoom: {
675
683
  sourceElementId: string;
676
684
  } | null;
677
685
  defaultSidebarDockedPreference: boolean;
678
- lastPointerDownWith: import("../element/types").PointerType;
686
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
679
687
  selectedElementIds: Readonly<{
680
688
  [id: string]: true;
681
689
  }>;
@@ -693,7 +701,7 @@ export declare const actionResetZoom: {
693
701
  duration?: number | undefined;
694
702
  } | null;
695
703
  zenModeEnabled: boolean;
696
- theme: import("../element/types").Theme;
704
+ theme: import("@excalidraw/element/types").Theme;
697
705
  gridSize: number;
698
706
  gridStep: number;
699
707
  gridModeEnabled: boolean;
@@ -714,7 +722,7 @@ export declare const actionResetZoom: {
714
722
  [id: string]: true;
715
723
  }> | undefined;
716
724
  username?: string | null | undefined;
717
- userState?: import("../constants").UserIdleState | undefined;
725
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
718
726
  color?: {
719
727
  background: string;
720
728
  stroke: string;
@@ -731,7 +739,7 @@ export declare const actionResetZoom: {
731
739
  open: boolean;
732
740
  panels: number;
733
741
  };
734
- currentChartType: import("../element/types").ChartType;
742
+ currentChartType: import("@excalidraw/element/types").ChartType;
735
743
  pasteDialog: {
736
744
  shown: false;
737
745
  data: null;
@@ -739,9 +747,8 @@ export declare const actionResetZoom: {
739
747
  shown: true;
740
748
  data: import("../charts").Spreadsheet;
741
749
  };
742
- pendingImageElementId: string | null;
743
- showHyperlinkPopup: false | "info" | "editor";
744
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
750
+ showHyperlinkPopup: false | "editor" | "info";
751
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
745
752
  snapLines: readonly import("../snapping").SnapLine[];
746
753
  originSnapOffset: {
747
754
  x: number;
@@ -751,16 +758,15 @@ export declare const actionResetZoom: {
751
758
  followedBy: Set<import("../types").SocketId>;
752
759
  isCropping: boolean;
753
760
  croppingElementId: string | null;
754
- searchMatches: readonly {
755
- id: string;
756
- focus: boolean;
757
- matchedLines: {
758
- offsetX: number;
759
- offsetY: number;
760
- width: number;
761
- height: number;
762
- }[];
763
- }[];
761
+ searchMatches: Readonly<{
762
+ focusedId: string | null;
763
+ matches: readonly import("../types").SearchMatch[];
764
+ }> | null;
765
+ activeLockedId: string | null;
766
+ lockedMultiSelections: {
767
+ [groupId: string]: true;
768
+ };
769
+ stylesPanelMode: "compact" | "full" | "mobile";
764
770
  };
765
771
  captureUpdate: "EVENTUALLY";
766
772
  };
@@ -800,17 +806,17 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
800
806
  isLoading: boolean;
801
807
  errorMessage: import("react").ReactNode;
802
808
  activeEmbeddable: {
803
- element: import("../element/types").NonDeletedExcalidrawElement;
804
- state: "hover" | "active";
809
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
810
+ state: "active" | "hover";
805
811
  } | null;
806
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
807
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
808
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
809
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
812
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
813
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
814
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
815
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
810
816
  isBindingEnabled: boolean;
811
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
812
- suggestedBindings: import("../element/binding").SuggestedBinding[];
813
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
817
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
818
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
819
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
814
820
  frameRendering: {
815
821
  enabled: boolean;
816
822
  name: boolean;
@@ -818,13 +824,17 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
818
824
  clip: boolean;
819
825
  };
820
826
  editingFrame: string | null;
821
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
822
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
823
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
827
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
828
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
824
829
  activeTool: {
825
830
  lastActiveTool: import("../types").ActiveTool | null;
826
831
  locked: boolean;
832
+ fromSelection: boolean;
827
833
  } & import("../types").ActiveTool;
834
+ preferredSelectionTool: {
835
+ type: "selection" | "lasso";
836
+ initialized: boolean;
837
+ };
828
838
  penMode: boolean;
829
839
  penDetected: boolean;
830
840
  exportBackground: boolean;
@@ -833,18 +843,18 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
833
843
  exportScale: number;
834
844
  currentItemStrokeColor: string;
835
845
  currentItemBackgroundColor: string;
836
- currentItemFillStyle: import("../element/types").FillStyle;
846
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
837
847
  currentItemStrokeWidth: number;
838
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
848
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
839
849
  currentItemRoughness: number;
840
850
  currentItemOpacity: number;
841
851
  currentItemFontFamily: number;
842
852
  currentItemFontSize: number;
843
853
  currentItemTextAlign: string;
844
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
845
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
854
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
855
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
846
856
  currentHoveredFontFamily: number | null;
847
- currentItemRoundness: import("../element/types").StrokeRoundness;
857
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
848
858
  currentItemArrowType: "round" | "sharp" | "elbow";
849
859
  viewBackgroundColor: string;
850
860
  cursorButton: "up" | "down";
@@ -853,7 +863,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
853
863
  isResizing: boolean;
854
864
  isRotating: boolean;
855
865
  openMenu: "canvas" | "shape" | null;
856
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
866
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
857
867
  openSidebar: {
858
868
  name: string;
859
869
  tab?: string | undefined;
@@ -862,7 +872,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
862
872
  name: "imageExport" | "help" | "jsonExport";
863
873
  } | {
864
874
  name: "ttd";
865
- tab: "text-to-diagram" | "mermaid";
875
+ tab: "mermaid" | "text-to-diagram";
866
876
  } | {
867
877
  name: "commandPalette";
868
878
  } | {
@@ -870,7 +880,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
870
880
  sourceElementId: string;
871
881
  } | null;
872
882
  defaultSidebarDockedPreference: boolean;
873
- lastPointerDownWith: import("../element/types").PointerType;
883
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
874
884
  selectedElementIds: Readonly<{
875
885
  [id: string]: true;
876
886
  }>;
@@ -888,7 +898,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
888
898
  duration?: number | undefined;
889
899
  } | null;
890
900
  zenModeEnabled: boolean;
891
- theme: import("../element/types").Theme;
901
+ theme: import("@excalidraw/element/types").Theme;
892
902
  gridSize: number;
893
903
  gridStep: number;
894
904
  gridModeEnabled: boolean;
@@ -909,7 +919,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
909
919
  [id: string]: true;
910
920
  }> | undefined;
911
921
  username?: string | null | undefined;
912
- userState?: import("../constants").UserIdleState | undefined;
922
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
913
923
  color?: {
914
924
  background: string;
915
925
  stroke: string;
@@ -926,7 +936,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
926
936
  open: boolean;
927
937
  panels: number;
928
938
  };
929
- currentChartType: import("../element/types").ChartType;
939
+ currentChartType: import("@excalidraw/element/types").ChartType;
930
940
  pasteDialog: {
931
941
  shown: false;
932
942
  data: null;
@@ -934,9 +944,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
934
944
  shown: true;
935
945
  data: import("../charts").Spreadsheet;
936
946
  };
937
- pendingImageElementId: string | null;
938
- showHyperlinkPopup: false | "info" | "editor";
939
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
947
+ showHyperlinkPopup: false | "editor" | "info";
948
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
940
949
  snapLines: readonly import("../snapping").SnapLine[];
941
950
  originSnapOffset: {
942
951
  x: number;
@@ -947,16 +956,15 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
947
956
  followedBy: Set<import("../types").SocketId>;
948
957
  isCropping: boolean;
949
958
  croppingElementId: string | null;
950
- searchMatches: readonly {
951
- id: string;
952
- focus: boolean;
953
- matchedLines: {
954
- offsetX: number;
955
- offsetY: number;
956
- width: number;
957
- height: number;
958
- }[];
959
- }[];
959
+ searchMatches: Readonly<{
960
+ focusedId: string | null;
961
+ matches: readonly import("../types").SearchMatch[];
962
+ }> | null;
963
+ activeLockedId: string | null;
964
+ lockedMultiSelections: {
965
+ [groupId: string]: true;
966
+ };
967
+ stylesPanelMode: "compact" | "full" | "mobile";
960
968
  };
961
969
  captureUpdate: "EVENTUALLY";
962
970
  };
@@ -991,17 +999,17 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
991
999
  isLoading: boolean;
992
1000
  errorMessage: import("react").ReactNode;
993
1001
  activeEmbeddable: {
994
- element: import("../element/types").NonDeletedExcalidrawElement;
995
- state: "hover" | "active";
1002
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1003
+ state: "active" | "hover";
996
1004
  } | null;
997
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
998
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
999
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1000
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1005
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1006
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1007
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1008
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1001
1009
  isBindingEnabled: boolean;
1002
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1003
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1004
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1010
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1011
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1012
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1005
1013
  frameRendering: {
1006
1014
  enabled: boolean;
1007
1015
  name: boolean;
@@ -1009,13 +1017,17 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1009
1017
  clip: boolean;
1010
1018
  };
1011
1019
  editingFrame: string | null;
1012
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1013
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1014
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1020
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1021
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1015
1022
  activeTool: {
1016
1023
  lastActiveTool: import("../types").ActiveTool | null;
1017
1024
  locked: boolean;
1025
+ fromSelection: boolean;
1018
1026
  } & import("../types").ActiveTool;
1027
+ preferredSelectionTool: {
1028
+ type: "selection" | "lasso";
1029
+ initialized: boolean;
1030
+ };
1019
1031
  penMode: boolean;
1020
1032
  penDetected: boolean;
1021
1033
  exportBackground: boolean;
@@ -1024,18 +1036,18 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1024
1036
  exportScale: number;
1025
1037
  currentItemStrokeColor: string;
1026
1038
  currentItemBackgroundColor: string;
1027
- currentItemFillStyle: import("../element/types").FillStyle;
1039
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1028
1040
  currentItemStrokeWidth: number;
1029
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1041
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1030
1042
  currentItemRoughness: number;
1031
1043
  currentItemOpacity: number;
1032
1044
  currentItemFontFamily: number;
1033
1045
  currentItemFontSize: number;
1034
1046
  currentItemTextAlign: string;
1035
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1036
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1047
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1048
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1037
1049
  currentHoveredFontFamily: number | null;
1038
- currentItemRoundness: import("../element/types").StrokeRoundness;
1050
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1039
1051
  currentItemArrowType: "round" | "sharp" | "elbow";
1040
1052
  viewBackgroundColor: string;
1041
1053
  cursorButton: "up" | "down";
@@ -1044,7 +1056,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1044
1056
  isResizing: boolean;
1045
1057
  isRotating: boolean;
1046
1058
  openMenu: "canvas" | "shape" | null;
1047
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1059
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1048
1060
  openSidebar: {
1049
1061
  name: string;
1050
1062
  tab?: string | undefined;
@@ -1053,7 +1065,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1053
1065
  name: "imageExport" | "help" | "jsonExport";
1054
1066
  } | {
1055
1067
  name: "ttd";
1056
- tab: "text-to-diagram" | "mermaid";
1068
+ tab: "mermaid" | "text-to-diagram";
1057
1069
  } | {
1058
1070
  name: "commandPalette";
1059
1071
  } | {
@@ -1061,7 +1073,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1061
1073
  sourceElementId: string;
1062
1074
  } | null;
1063
1075
  defaultSidebarDockedPreference: boolean;
1064
- lastPointerDownWith: import("../element/types").PointerType;
1076
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1065
1077
  selectedElementIds: Readonly<{
1066
1078
  [id: string]: true;
1067
1079
  }>;
@@ -1079,7 +1091,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1079
1091
  duration?: number | undefined;
1080
1092
  } | null;
1081
1093
  zenModeEnabled: boolean;
1082
- theme: import("../element/types").Theme;
1094
+ theme: import("@excalidraw/element/types").Theme;
1083
1095
  gridSize: number;
1084
1096
  gridStep: number;
1085
1097
  gridModeEnabled: boolean;
@@ -1100,7 +1112,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1100
1112
  [id: string]: true;
1101
1113
  }> | undefined;
1102
1114
  username?: string | null | undefined;
1103
- userState?: import("../constants").UserIdleState | undefined;
1115
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1104
1116
  color?: {
1105
1117
  background: string;
1106
1118
  stroke: string;
@@ -1117,7 +1129,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1117
1129
  open: boolean;
1118
1130
  panels: number;
1119
1131
  };
1120
- currentChartType: import("../element/types").ChartType;
1132
+ currentChartType: import("@excalidraw/element/types").ChartType;
1121
1133
  pasteDialog: {
1122
1134
  shown: false;
1123
1135
  data: null;
@@ -1125,9 +1137,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1125
1137
  shown: true;
1126
1138
  data: import("../charts").Spreadsheet;
1127
1139
  };
1128
- pendingImageElementId: string | null;
1129
- showHyperlinkPopup: false | "info" | "editor";
1130
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1140
+ showHyperlinkPopup: false | "editor" | "info";
1141
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1131
1142
  snapLines: readonly import("../snapping").SnapLine[];
1132
1143
  originSnapOffset: {
1133
1144
  x: number;
@@ -1138,16 +1149,15 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1138
1149
  followedBy: Set<import("../types").SocketId>;
1139
1150
  isCropping: boolean;
1140
1151
  croppingElementId: string | null;
1141
- searchMatches: readonly {
1142
- id: string;
1143
- focus: boolean;
1144
- matchedLines: {
1145
- offsetX: number;
1146
- offsetY: number;
1147
- width: number;
1148
- height: number;
1149
- }[];
1150
- }[];
1152
+ searchMatches: Readonly<{
1153
+ focusedId: string | null;
1154
+ matches: readonly import("../types").SearchMatch[];
1155
+ }> | null;
1156
+ activeLockedId: string | null;
1157
+ lockedMultiSelections: {
1158
+ [groupId: string]: true;
1159
+ };
1160
+ stylesPanelMode: "compact" | "full" | "mobile";
1151
1161
  };
1152
1162
  captureUpdate: "EVENTUALLY";
1153
1163
  };
@@ -1158,7 +1168,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1158
1168
  trackEvent: {
1159
1169
  category: "canvas";
1160
1170
  };
1161
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1171
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1162
1172
  appState: {
1163
1173
  scrollX: number;
1164
1174
  scrollY: number;
@@ -1174,17 +1184,17 @@ export declare const actionZoomToFitSelectionInViewport: {
1174
1184
  isLoading: boolean;
1175
1185
  errorMessage: import("react").ReactNode;
1176
1186
  activeEmbeddable: {
1177
- element: import("../element/types").NonDeletedExcalidrawElement;
1178
- state: "hover" | "active";
1187
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1188
+ state: "active" | "hover";
1179
1189
  } | null;
1180
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1181
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1182
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1183
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1190
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1191
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1192
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1193
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1184
1194
  isBindingEnabled: boolean;
1185
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1186
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1187
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1195
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1196
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1197
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1188
1198
  frameRendering: {
1189
1199
  enabled: boolean;
1190
1200
  name: boolean;
@@ -1192,13 +1202,17 @@ export declare const actionZoomToFitSelectionInViewport: {
1192
1202
  clip: boolean;
1193
1203
  };
1194
1204
  editingFrame: string | null;
1195
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1196
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1197
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1205
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1206
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1198
1207
  activeTool: {
1199
1208
  lastActiveTool: import("../types").ActiveTool | null;
1200
1209
  locked: boolean;
1210
+ fromSelection: boolean;
1201
1211
  } & import("../types").ActiveTool;
1212
+ preferredSelectionTool: {
1213
+ type: "selection" | "lasso";
1214
+ initialized: boolean;
1215
+ };
1202
1216
  penMode: boolean;
1203
1217
  penDetected: boolean;
1204
1218
  exportBackground: boolean;
@@ -1207,18 +1221,18 @@ export declare const actionZoomToFitSelectionInViewport: {
1207
1221
  exportScale: number;
1208
1222
  currentItemStrokeColor: string;
1209
1223
  currentItemBackgroundColor: string;
1210
- currentItemFillStyle: import("../element/types").FillStyle;
1224
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1211
1225
  currentItemStrokeWidth: number;
1212
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1226
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1213
1227
  currentItemRoughness: number;
1214
1228
  currentItemOpacity: number;
1215
1229
  currentItemFontFamily: number;
1216
1230
  currentItemFontSize: number;
1217
1231
  currentItemTextAlign: string;
1218
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1219
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1232
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1233
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1220
1234
  currentHoveredFontFamily: number | null;
1221
- currentItemRoundness: import("../element/types").StrokeRoundness;
1235
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1222
1236
  currentItemArrowType: "round" | "sharp" | "elbow";
1223
1237
  viewBackgroundColor: string;
1224
1238
  cursorButton: "up" | "down";
@@ -1227,7 +1241,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1227
1241
  isResizing: boolean;
1228
1242
  isRotating: boolean;
1229
1243
  openMenu: "canvas" | "shape" | null;
1230
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1244
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1231
1245
  openSidebar: {
1232
1246
  name: string;
1233
1247
  tab?: string | undefined;
@@ -1236,7 +1250,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1236
1250
  name: "imageExport" | "help" | "jsonExport";
1237
1251
  } | {
1238
1252
  name: "ttd";
1239
- tab: "text-to-diagram" | "mermaid";
1253
+ tab: "mermaid" | "text-to-diagram";
1240
1254
  } | {
1241
1255
  name: "commandPalette";
1242
1256
  } | {
@@ -1244,7 +1258,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1244
1258
  sourceElementId: string;
1245
1259
  } | null;
1246
1260
  defaultSidebarDockedPreference: boolean;
1247
- lastPointerDownWith: import("../element/types").PointerType;
1261
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1248
1262
  selectedElementIds: Readonly<{
1249
1263
  [id: string]: true;
1250
1264
  }>;
@@ -1262,7 +1276,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1262
1276
  duration?: number | undefined;
1263
1277
  } | null;
1264
1278
  zenModeEnabled: boolean;
1265
- theme: import("../element/types").Theme;
1279
+ theme: import("@excalidraw/element/types").Theme;
1266
1280
  gridSize: number;
1267
1281
  gridStep: number;
1268
1282
  gridModeEnabled: boolean;
@@ -1283,7 +1297,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1283
1297
  [id: string]: true;
1284
1298
  }> | undefined;
1285
1299
  username?: string | null | undefined;
1286
- userState?: import("../constants").UserIdleState | undefined;
1300
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1287
1301
  color?: {
1288
1302
  background: string;
1289
1303
  stroke: string;
@@ -1300,7 +1314,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1300
1314
  open: boolean;
1301
1315
  panels: number;
1302
1316
  };
1303
- currentChartType: import("../element/types").ChartType;
1317
+ currentChartType: import("@excalidraw/element/types").ChartType;
1304
1318
  pasteDialog: {
1305
1319
  shown: false;
1306
1320
  data: null;
@@ -1308,9 +1322,8 @@ export declare const actionZoomToFitSelectionInViewport: {
1308
1322
  shown: true;
1309
1323
  data: import("../charts").Spreadsheet;
1310
1324
  };
1311
- pendingImageElementId: string | null;
1312
- showHyperlinkPopup: false | "info" | "editor";
1313
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1325
+ showHyperlinkPopup: false | "editor" | "info";
1326
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1314
1327
  snapLines: readonly import("../snapping").SnapLine[];
1315
1328
  originSnapOffset: {
1316
1329
  x: number;
@@ -1321,16 +1334,15 @@ export declare const actionZoomToFitSelectionInViewport: {
1321
1334
  followedBy: Set<import("../types").SocketId>;
1322
1335
  isCropping: boolean;
1323
1336
  croppingElementId: string | null;
1324
- searchMatches: readonly {
1325
- id: string;
1326
- focus: boolean;
1327
- matchedLines: {
1328
- offsetX: number;
1329
- offsetY: number;
1330
- width: number;
1331
- height: number;
1332
- }[];
1333
- }[];
1337
+ searchMatches: Readonly<{
1338
+ focusedId: string | null;
1339
+ matches: readonly import("../types").SearchMatch[];
1340
+ }> | null;
1341
+ activeLockedId: string | null;
1342
+ lockedMultiSelections: {
1343
+ [groupId: string]: true;
1344
+ };
1345
+ stylesPanelMode: "compact" | "full" | "mobile";
1334
1346
  };
1335
1347
  captureUpdate: "EVENTUALLY";
1336
1348
  };
@@ -1345,7 +1357,7 @@ export declare const actionZoomToFitSelection: {
1345
1357
  trackEvent: {
1346
1358
  category: "canvas";
1347
1359
  };
1348
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1360
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1349
1361
  appState: {
1350
1362
  scrollX: number;
1351
1363
  scrollY: number;
@@ -1361,17 +1373,17 @@ export declare const actionZoomToFitSelection: {
1361
1373
  isLoading: boolean;
1362
1374
  errorMessage: import("react").ReactNode;
1363
1375
  activeEmbeddable: {
1364
- element: import("../element/types").NonDeletedExcalidrawElement;
1365
- state: "hover" | "active";
1376
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1377
+ state: "active" | "hover";
1366
1378
  } | null;
1367
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1368
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1369
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1370
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1379
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1380
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1381
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1382
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1371
1383
  isBindingEnabled: boolean;
1372
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1373
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1374
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1384
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1385
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1386
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1375
1387
  frameRendering: {
1376
1388
  enabled: boolean;
1377
1389
  name: boolean;
@@ -1379,13 +1391,17 @@ export declare const actionZoomToFitSelection: {
1379
1391
  clip: boolean;
1380
1392
  };
1381
1393
  editingFrame: string | null;
1382
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1383
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1384
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1394
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1395
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1385
1396
  activeTool: {
1386
1397
  lastActiveTool: import("../types").ActiveTool | null;
1387
1398
  locked: boolean;
1399
+ fromSelection: boolean;
1388
1400
  } & import("../types").ActiveTool;
1401
+ preferredSelectionTool: {
1402
+ type: "selection" | "lasso";
1403
+ initialized: boolean;
1404
+ };
1389
1405
  penMode: boolean;
1390
1406
  penDetected: boolean;
1391
1407
  exportBackground: boolean;
@@ -1394,18 +1410,18 @@ export declare const actionZoomToFitSelection: {
1394
1410
  exportScale: number;
1395
1411
  currentItemStrokeColor: string;
1396
1412
  currentItemBackgroundColor: string;
1397
- currentItemFillStyle: import("../element/types").FillStyle;
1413
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1398
1414
  currentItemStrokeWidth: number;
1399
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1415
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1400
1416
  currentItemRoughness: number;
1401
1417
  currentItemOpacity: number;
1402
1418
  currentItemFontFamily: number;
1403
1419
  currentItemFontSize: number;
1404
1420
  currentItemTextAlign: string;
1405
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1406
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1421
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1422
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1407
1423
  currentHoveredFontFamily: number | null;
1408
- currentItemRoundness: import("../element/types").StrokeRoundness;
1424
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1409
1425
  currentItemArrowType: "round" | "sharp" | "elbow";
1410
1426
  viewBackgroundColor: string;
1411
1427
  cursorButton: "up" | "down";
@@ -1414,7 +1430,7 @@ export declare const actionZoomToFitSelection: {
1414
1430
  isResizing: boolean;
1415
1431
  isRotating: boolean;
1416
1432
  openMenu: "canvas" | "shape" | null;
1417
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1433
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1418
1434
  openSidebar: {
1419
1435
  name: string;
1420
1436
  tab?: string | undefined;
@@ -1423,7 +1439,7 @@ export declare const actionZoomToFitSelection: {
1423
1439
  name: "imageExport" | "help" | "jsonExport";
1424
1440
  } | {
1425
1441
  name: "ttd";
1426
- tab: "text-to-diagram" | "mermaid";
1442
+ tab: "mermaid" | "text-to-diagram";
1427
1443
  } | {
1428
1444
  name: "commandPalette";
1429
1445
  } | {
@@ -1431,7 +1447,7 @@ export declare const actionZoomToFitSelection: {
1431
1447
  sourceElementId: string;
1432
1448
  } | null;
1433
1449
  defaultSidebarDockedPreference: boolean;
1434
- lastPointerDownWith: import("../element/types").PointerType;
1450
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1435
1451
  selectedElementIds: Readonly<{
1436
1452
  [id: string]: true;
1437
1453
  }>;
@@ -1449,7 +1465,7 @@ export declare const actionZoomToFitSelection: {
1449
1465
  duration?: number | undefined;
1450
1466
  } | null;
1451
1467
  zenModeEnabled: boolean;
1452
- theme: import("../element/types").Theme;
1468
+ theme: import("@excalidraw/element/types").Theme;
1453
1469
  gridSize: number;
1454
1470
  gridStep: number;
1455
1471
  gridModeEnabled: boolean;
@@ -1470,7 +1486,7 @@ export declare const actionZoomToFitSelection: {
1470
1486
  [id: string]: true;
1471
1487
  }> | undefined;
1472
1488
  username?: string | null | undefined;
1473
- userState?: import("../constants").UserIdleState | undefined;
1489
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1474
1490
  color?: {
1475
1491
  background: string;
1476
1492
  stroke: string;
@@ -1487,7 +1503,7 @@ export declare const actionZoomToFitSelection: {
1487
1503
  open: boolean;
1488
1504
  panels: number;
1489
1505
  };
1490
- currentChartType: import("../element/types").ChartType;
1506
+ currentChartType: import("@excalidraw/element/types").ChartType;
1491
1507
  pasteDialog: {
1492
1508
  shown: false;
1493
1509
  data: null;
@@ -1495,9 +1511,8 @@ export declare const actionZoomToFitSelection: {
1495
1511
  shown: true;
1496
1512
  data: import("../charts").Spreadsheet;
1497
1513
  };
1498
- pendingImageElementId: string | null;
1499
- showHyperlinkPopup: false | "info" | "editor";
1500
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1514
+ showHyperlinkPopup: false | "editor" | "info";
1515
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1501
1516
  snapLines: readonly import("../snapping").SnapLine[];
1502
1517
  originSnapOffset: {
1503
1518
  x: number;
@@ -1508,16 +1523,15 @@ export declare const actionZoomToFitSelection: {
1508
1523
  followedBy: Set<import("../types").SocketId>;
1509
1524
  isCropping: boolean;
1510
1525
  croppingElementId: string | null;
1511
- searchMatches: readonly {
1512
- id: string;
1513
- focus: boolean;
1514
- matchedLines: {
1515
- offsetX: number;
1516
- offsetY: number;
1517
- width: number;
1518
- height: number;
1519
- }[];
1520
- }[];
1526
+ searchMatches: Readonly<{
1527
+ focusedId: string | null;
1528
+ matches: readonly import("../types").SearchMatch[];
1529
+ }> | null;
1530
+ activeLockedId: string | null;
1531
+ lockedMultiSelections: {
1532
+ [groupId: string]: true;
1533
+ };
1534
+ stylesPanelMode: "compact" | "full" | "mobile";
1521
1535
  };
1522
1536
  captureUpdate: "EVENTUALLY";
1523
1537
  };
@@ -1533,7 +1547,7 @@ export declare const actionZoomToFit: {
1533
1547
  trackEvent: {
1534
1548
  category: "canvas";
1535
1549
  };
1536
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1550
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1537
1551
  appState: {
1538
1552
  scrollX: number;
1539
1553
  scrollY: number;
@@ -1549,17 +1563,17 @@ export declare const actionZoomToFit: {
1549
1563
  isLoading: boolean;
1550
1564
  errorMessage: import("react").ReactNode;
1551
1565
  activeEmbeddable: {
1552
- element: import("../element/types").NonDeletedExcalidrawElement;
1553
- state: "hover" | "active";
1566
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1567
+ state: "active" | "hover";
1554
1568
  } | null;
1555
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1556
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1557
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1558
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1569
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1570
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1571
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1572
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1559
1573
  isBindingEnabled: boolean;
1560
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1561
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1562
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1574
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1575
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1576
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1563
1577
  frameRendering: {
1564
1578
  enabled: boolean;
1565
1579
  name: boolean;
@@ -1567,13 +1581,17 @@ export declare const actionZoomToFit: {
1567
1581
  clip: boolean;
1568
1582
  };
1569
1583
  editingFrame: string | null;
1570
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1571
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1572
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1584
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1585
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1573
1586
  activeTool: {
1574
1587
  lastActiveTool: import("../types").ActiveTool | null;
1575
1588
  locked: boolean;
1589
+ fromSelection: boolean;
1576
1590
  } & import("../types").ActiveTool;
1591
+ preferredSelectionTool: {
1592
+ type: "selection" | "lasso";
1593
+ initialized: boolean;
1594
+ };
1577
1595
  penMode: boolean;
1578
1596
  penDetected: boolean;
1579
1597
  exportBackground: boolean;
@@ -1582,18 +1600,18 @@ export declare const actionZoomToFit: {
1582
1600
  exportScale: number;
1583
1601
  currentItemStrokeColor: string;
1584
1602
  currentItemBackgroundColor: string;
1585
- currentItemFillStyle: import("../element/types").FillStyle;
1603
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1586
1604
  currentItemStrokeWidth: number;
1587
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1605
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1588
1606
  currentItemRoughness: number;
1589
1607
  currentItemOpacity: number;
1590
1608
  currentItemFontFamily: number;
1591
1609
  currentItemFontSize: number;
1592
1610
  currentItemTextAlign: string;
1593
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1594
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1611
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1612
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1595
1613
  currentHoveredFontFamily: number | null;
1596
- currentItemRoundness: import("../element/types").StrokeRoundness;
1614
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1597
1615
  currentItemArrowType: "round" | "sharp" | "elbow";
1598
1616
  viewBackgroundColor: string;
1599
1617
  cursorButton: "up" | "down";
@@ -1602,7 +1620,7 @@ export declare const actionZoomToFit: {
1602
1620
  isResizing: boolean;
1603
1621
  isRotating: boolean;
1604
1622
  openMenu: "canvas" | "shape" | null;
1605
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1623
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1606
1624
  openSidebar: {
1607
1625
  name: string;
1608
1626
  tab?: string | undefined;
@@ -1611,7 +1629,7 @@ export declare const actionZoomToFit: {
1611
1629
  name: "imageExport" | "help" | "jsonExport";
1612
1630
  } | {
1613
1631
  name: "ttd";
1614
- tab: "text-to-diagram" | "mermaid";
1632
+ tab: "mermaid" | "text-to-diagram";
1615
1633
  } | {
1616
1634
  name: "commandPalette";
1617
1635
  } | {
@@ -1619,7 +1637,7 @@ export declare const actionZoomToFit: {
1619
1637
  sourceElementId: string;
1620
1638
  } | null;
1621
1639
  defaultSidebarDockedPreference: boolean;
1622
- lastPointerDownWith: import("../element/types").PointerType;
1640
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1623
1641
  selectedElementIds: Readonly<{
1624
1642
  [id: string]: true;
1625
1643
  }>;
@@ -1637,7 +1655,7 @@ export declare const actionZoomToFit: {
1637
1655
  duration?: number | undefined;
1638
1656
  } | null;
1639
1657
  zenModeEnabled: boolean;
1640
- theme: import("../element/types").Theme;
1658
+ theme: import("@excalidraw/element/types").Theme;
1641
1659
  gridSize: number;
1642
1660
  gridStep: number;
1643
1661
  gridModeEnabled: boolean;
@@ -1658,7 +1676,7 @@ export declare const actionZoomToFit: {
1658
1676
  [id: string]: true;
1659
1677
  }> | undefined;
1660
1678
  username?: string | null | undefined;
1661
- userState?: import("../constants").UserIdleState | undefined;
1679
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1662
1680
  color?: {
1663
1681
  background: string;
1664
1682
  stroke: string;
@@ -1675,7 +1693,7 @@ export declare const actionZoomToFit: {
1675
1693
  open: boolean;
1676
1694
  panels: number;
1677
1695
  };
1678
- currentChartType: import("../element/types").ChartType;
1696
+ currentChartType: import("@excalidraw/element/types").ChartType;
1679
1697
  pasteDialog: {
1680
1698
  shown: false;
1681
1699
  data: null;
@@ -1683,9 +1701,8 @@ export declare const actionZoomToFit: {
1683
1701
  shown: true;
1684
1702
  data: import("../charts").Spreadsheet;
1685
1703
  };
1686
- pendingImageElementId: string | null;
1687
- showHyperlinkPopup: false | "info" | "editor";
1688
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1704
+ showHyperlinkPopup: false | "editor" | "info";
1705
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1689
1706
  snapLines: readonly import("../snapping").SnapLine[];
1690
1707
  originSnapOffset: {
1691
1708
  x: number;
@@ -1696,16 +1713,15 @@ export declare const actionZoomToFit: {
1696
1713
  followedBy: Set<import("../types").SocketId>;
1697
1714
  isCropping: boolean;
1698
1715
  croppingElementId: string | null;
1699
- searchMatches: readonly {
1700
- id: string;
1701
- focus: boolean;
1702
- matchedLines: {
1703
- offsetX: number;
1704
- offsetY: number;
1705
- width: number;
1706
- height: number;
1707
- }[];
1708
- }[];
1716
+ searchMatches: Readonly<{
1717
+ focusedId: string | null;
1718
+ matches: readonly import("../types").SearchMatch[];
1719
+ }> | null;
1720
+ activeLockedId: string | null;
1721
+ lockedMultiSelections: {
1722
+ [groupId: string]: true;
1723
+ };
1724
+ stylesPanelMode: "compact" | "full" | "mobile";
1709
1725
  };
1710
1726
  captureUpdate: "EVENTUALLY";
1711
1727
  };
@@ -1722,7 +1738,7 @@ export declare const actionToggleTheme: {
1722
1738
  trackEvent: {
1723
1739
  category: "canvas";
1724
1740
  };
1725
- perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1741
+ perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1726
1742
  appState: {
1727
1743
  theme: any;
1728
1744
  contextMenu: {
@@ -1734,17 +1750,17 @@ export declare const actionToggleTheme: {
1734
1750
  isLoading: boolean;
1735
1751
  errorMessage: import("react").ReactNode;
1736
1752
  activeEmbeddable: {
1737
- element: import("../element/types").NonDeletedExcalidrawElement;
1738
- state: "hover" | "active";
1753
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1754
+ state: "active" | "hover";
1739
1755
  } | null;
1740
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1741
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1742
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1743
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1756
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1757
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1758
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1759
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1744
1760
  isBindingEnabled: boolean;
1745
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1746
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1747
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1761
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1762
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1763
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1748
1764
  frameRendering: {
1749
1765
  enabled: boolean;
1750
1766
  name: boolean;
@@ -1752,13 +1768,17 @@ export declare const actionToggleTheme: {
1752
1768
  clip: boolean;
1753
1769
  };
1754
1770
  editingFrame: string | null;
1755
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1756
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1757
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1771
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1772
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1758
1773
  activeTool: {
1759
1774
  lastActiveTool: import("../types").ActiveTool | null;
1760
1775
  locked: boolean;
1776
+ fromSelection: boolean;
1761
1777
  } & import("../types").ActiveTool;
1778
+ preferredSelectionTool: {
1779
+ type: "selection" | "lasso";
1780
+ initialized: boolean;
1781
+ };
1762
1782
  penMode: boolean;
1763
1783
  penDetected: boolean;
1764
1784
  exportBackground: boolean;
@@ -1767,18 +1787,18 @@ export declare const actionToggleTheme: {
1767
1787
  exportScale: number;
1768
1788
  currentItemStrokeColor: string;
1769
1789
  currentItemBackgroundColor: string;
1770
- currentItemFillStyle: import("../element/types").FillStyle;
1790
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1771
1791
  currentItemStrokeWidth: number;
1772
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1792
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1773
1793
  currentItemRoughness: number;
1774
1794
  currentItemOpacity: number;
1775
1795
  currentItemFontFamily: number;
1776
1796
  currentItemFontSize: number;
1777
1797
  currentItemTextAlign: string;
1778
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1779
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1798
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1799
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1780
1800
  currentHoveredFontFamily: number | null;
1781
- currentItemRoundness: import("../element/types").StrokeRoundness;
1801
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1782
1802
  currentItemArrowType: "round" | "sharp" | "elbow";
1783
1803
  viewBackgroundColor: string;
1784
1804
  scrollX: number;
@@ -1792,7 +1812,7 @@ export declare const actionToggleTheme: {
1792
1812
  value: import("../types").NormalizedZoomValue;
1793
1813
  }>;
1794
1814
  openMenu: "canvas" | "shape" | null;
1795
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1815
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1796
1816
  openSidebar: {
1797
1817
  name: string;
1798
1818
  tab?: string | undefined;
@@ -1801,7 +1821,7 @@ export declare const actionToggleTheme: {
1801
1821
  name: "imageExport" | "help" | "jsonExport";
1802
1822
  } | {
1803
1823
  name: "ttd";
1804
- tab: "text-to-diagram" | "mermaid";
1824
+ tab: "mermaid" | "text-to-diagram";
1805
1825
  } | {
1806
1826
  name: "commandPalette";
1807
1827
  } | {
@@ -1809,7 +1829,7 @@ export declare const actionToggleTheme: {
1809
1829
  sourceElementId: string;
1810
1830
  } | null;
1811
1831
  defaultSidebarDockedPreference: boolean;
1812
- lastPointerDownWith: import("../element/types").PointerType;
1832
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1813
1833
  selectedElementIds: Readonly<{
1814
1834
  [id: string]: true;
1815
1835
  }>;
@@ -1847,7 +1867,7 @@ export declare const actionToggleTheme: {
1847
1867
  [id: string]: true;
1848
1868
  }> | undefined;
1849
1869
  username?: string | null | undefined;
1850
- userState?: import("../constants").UserIdleState | undefined;
1870
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1851
1871
  color?: {
1852
1872
  background: string;
1853
1873
  stroke: string;
@@ -1864,7 +1884,7 @@ export declare const actionToggleTheme: {
1864
1884
  open: boolean;
1865
1885
  panels: number;
1866
1886
  };
1867
- currentChartType: import("../element/types").ChartType;
1887
+ currentChartType: import("@excalidraw/element/types").ChartType;
1868
1888
  pasteDialog: {
1869
1889
  shown: false;
1870
1890
  data: null;
@@ -1872,9 +1892,8 @@ export declare const actionToggleTheme: {
1872
1892
  shown: true;
1873
1893
  data: import("../charts").Spreadsheet;
1874
1894
  };
1875
- pendingImageElementId: string | null;
1876
- showHyperlinkPopup: false | "info" | "editor";
1877
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1895
+ showHyperlinkPopup: false | "editor" | "info";
1896
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1878
1897
  snapLines: readonly import("../snapping").SnapLine[];
1879
1898
  originSnapOffset: {
1880
1899
  x: number;
@@ -1885,16 +1904,15 @@ export declare const actionToggleTheme: {
1885
1904
  followedBy: Set<import("../types").SocketId>;
1886
1905
  isCropping: boolean;
1887
1906
  croppingElementId: string | null;
1888
- searchMatches: readonly {
1889
- id: string;
1890
- focus: boolean;
1891
- matchedLines: {
1892
- offsetX: number;
1893
- offsetY: number;
1894
- width: number;
1895
- height: number;
1896
- }[];
1897
- }[];
1907
+ searchMatches: Readonly<{
1908
+ focusedId: string | null;
1909
+ matches: readonly import("../types").SearchMatch[];
1910
+ }> | null;
1911
+ activeLockedId: string | null;
1912
+ lockedMultiSelections: {
1913
+ [groupId: string]: true;
1914
+ };
1915
+ stylesPanelMode: "compact" | "full" | "mobile";
1898
1916
  };
1899
1917
  captureUpdate: "EVENTUALLY";
1900
1918
  };
@@ -1909,7 +1927,7 @@ export declare const actionToggleEraserTool: {
1909
1927
  trackEvent: {
1910
1928
  category: "toolbar";
1911
1929
  };
1912
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
1930
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1913
1931
  appState: {
1914
1932
  selectedElementIds: {};
1915
1933
  selectedGroupIds: {};
@@ -1917,6 +1935,7 @@ export declare const actionToggleEraserTool: {
1917
1935
  activeTool: {
1918
1936
  lastActiveTool: import("../types").ActiveTool | null;
1919
1937
  locked: boolean;
1938
+ fromSelection: boolean;
1920
1939
  } & import("../types").ActiveTool;
1921
1940
  contextMenu: {
1922
1941
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -1926,14 +1945,14 @@ export declare const actionToggleEraserTool: {
1926
1945
  showWelcomeScreen: boolean;
1927
1946
  isLoading: boolean;
1928
1947
  errorMessage: import("react").ReactNode;
1929
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1930
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1931
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1932
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1948
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1949
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1950
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1951
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1933
1952
  isBindingEnabled: boolean;
1934
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1935
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1936
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1953
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1954
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1955
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1937
1956
  frameRendering: {
1938
1957
  enabled: boolean;
1939
1958
  name: boolean;
@@ -1941,9 +1960,12 @@ export declare const actionToggleEraserTool: {
1941
1960
  clip: boolean;
1942
1961
  };
1943
1962
  editingFrame: string | null;
1944
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1945
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1946
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1963
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1964
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1965
+ preferredSelectionTool: {
1966
+ type: "selection" | "lasso";
1967
+ initialized: boolean;
1968
+ };
1947
1969
  penMode: boolean;
1948
1970
  penDetected: boolean;
1949
1971
  exportBackground: boolean;
@@ -1952,18 +1974,18 @@ export declare const actionToggleEraserTool: {
1952
1974
  exportScale: number;
1953
1975
  currentItemStrokeColor: string;
1954
1976
  currentItemBackgroundColor: string;
1955
- currentItemFillStyle: import("../element/types").FillStyle;
1977
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1956
1978
  currentItemStrokeWidth: number;
1957
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1979
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1958
1980
  currentItemRoughness: number;
1959
1981
  currentItemOpacity: number;
1960
1982
  currentItemFontFamily: number;
1961
1983
  currentItemFontSize: number;
1962
1984
  currentItemTextAlign: string;
1963
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1964
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1985
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1986
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1965
1987
  currentHoveredFontFamily: number | null;
1966
- currentItemRoundness: import("../element/types").StrokeRoundness;
1988
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1967
1989
  currentItemArrowType: "round" | "sharp" | "elbow";
1968
1990
  viewBackgroundColor: string;
1969
1991
  scrollX: number;
@@ -1977,7 +1999,7 @@ export declare const actionToggleEraserTool: {
1977
1999
  value: import("../types").NormalizedZoomValue;
1978
2000
  }>;
1979
2001
  openMenu: "canvas" | "shape" | null;
1980
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2002
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1981
2003
  openSidebar: {
1982
2004
  name: string;
1983
2005
  tab?: string | undefined;
@@ -1986,7 +2008,7 @@ export declare const actionToggleEraserTool: {
1986
2008
  name: "imageExport" | "help" | "jsonExport";
1987
2009
  } | {
1988
2010
  name: "ttd";
1989
- tab: "text-to-diagram" | "mermaid";
2011
+ tab: "mermaid" | "text-to-diagram";
1990
2012
  } | {
1991
2013
  name: "commandPalette";
1992
2014
  } | {
@@ -1994,7 +2016,7 @@ export declare const actionToggleEraserTool: {
1994
2016
  sourceElementId: string;
1995
2017
  } | null;
1996
2018
  defaultSidebarDockedPreference: boolean;
1997
- lastPointerDownWith: import("../element/types").PointerType;
2019
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1998
2020
  hoveredElementIds: Readonly<{
1999
2021
  [id: string]: true;
2000
2022
  }>;
@@ -2009,7 +2031,7 @@ export declare const actionToggleEraserTool: {
2009
2031
  duration?: number | undefined;
2010
2032
  } | null;
2011
2033
  zenModeEnabled: boolean;
2012
- theme: import("../element/types").Theme;
2034
+ theme: import("@excalidraw/element/types").Theme;
2013
2035
  gridSize: number;
2014
2036
  gridStep: number;
2015
2037
  gridModeEnabled: boolean;
@@ -2027,7 +2049,7 @@ export declare const actionToggleEraserTool: {
2027
2049
  [id: string]: true;
2028
2050
  }> | undefined;
2029
2051
  username?: string | null | undefined;
2030
- userState?: import("../constants").UserIdleState | undefined;
2052
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2031
2053
  color?: {
2032
2054
  background: string;
2033
2055
  stroke: string;
@@ -2044,7 +2066,7 @@ export declare const actionToggleEraserTool: {
2044
2066
  open: boolean;
2045
2067
  panels: number;
2046
2068
  };
2047
- currentChartType: import("../element/types").ChartType;
2069
+ currentChartType: import("@excalidraw/element/types").ChartType;
2048
2070
  pasteDialog: {
2049
2071
  shown: false;
2050
2072
  data: null;
@@ -2052,9 +2074,8 @@ export declare const actionToggleEraserTool: {
2052
2074
  shown: true;
2053
2075
  data: import("../charts").Spreadsheet;
2054
2076
  };
2055
- pendingImageElementId: string | null;
2056
- showHyperlinkPopup: false | "info" | "editor";
2057
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2077
+ showHyperlinkPopup: false | "editor" | "info";
2078
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2058
2079
  snapLines: readonly import("../snapping").SnapLine[];
2059
2080
  originSnapOffset: {
2060
2081
  x: number;
@@ -2065,16 +2086,15 @@ export declare const actionToggleEraserTool: {
2065
2086
  followedBy: Set<import("../types").SocketId>;
2066
2087
  isCropping: boolean;
2067
2088
  croppingElementId: string | null;
2068
- searchMatches: readonly {
2069
- id: string;
2070
- focus: boolean;
2071
- matchedLines: {
2072
- offsetX: number;
2073
- offsetY: number;
2074
- width: number;
2075
- height: number;
2076
- }[];
2077
- }[];
2089
+ searchMatches: Readonly<{
2090
+ focusedId: string | null;
2091
+ matches: readonly import("../types").SearchMatch[];
2092
+ }> | null;
2093
+ activeLockedId: string | null;
2094
+ lockedMultiSelections: {
2095
+ [groupId: string]: true;
2096
+ };
2097
+ stylesPanelMode: "compact" | "full" | "mobile";
2078
2098
  };
2079
2099
  captureUpdate: "IMMEDIATELY";
2080
2100
  };
@@ -2082,16 +2102,197 @@ export declare const actionToggleEraserTool: {
2082
2102
  } & {
2083
2103
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2084
2104
  };
2105
+ export declare const actionToggleLassoTool: {
2106
+ name: "toggleLassoTool";
2107
+ label: string;
2108
+ icon: import("react/jsx-runtime").JSX.Element;
2109
+ trackEvent: {
2110
+ category: "toolbar";
2111
+ };
2112
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
2113
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2114
+ appState: {
2115
+ selectedElementIds: {};
2116
+ selectedGroupIds: {};
2117
+ activeEmbeddable: null;
2118
+ activeTool: {
2119
+ lastActiveTool: import("../types").ActiveTool | null;
2120
+ locked: boolean;
2121
+ fromSelection: boolean;
2122
+ } & import("../types").ActiveTool;
2123
+ contextMenu: {
2124
+ items: import("../components/ContextMenu").ContextMenuItems;
2125
+ top: number;
2126
+ left: number;
2127
+ } | null;
2128
+ showWelcomeScreen: boolean;
2129
+ isLoading: boolean;
2130
+ errorMessage: import("react").ReactNode;
2131
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2132
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2133
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2134
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2135
+ isBindingEnabled: boolean;
2136
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2137
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2138
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2139
+ frameRendering: {
2140
+ enabled: boolean;
2141
+ name: boolean;
2142
+ outline: boolean;
2143
+ clip: boolean;
2144
+ };
2145
+ editingFrame: string | null;
2146
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2147
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2148
+ preferredSelectionTool: {
2149
+ type: "selection" | "lasso";
2150
+ initialized: boolean;
2151
+ };
2152
+ penMode: boolean;
2153
+ penDetected: boolean;
2154
+ exportBackground: boolean;
2155
+ exportEmbedScene: boolean;
2156
+ exportWithDarkMode: boolean;
2157
+ exportScale: number;
2158
+ currentItemStrokeColor: string;
2159
+ currentItemBackgroundColor: string;
2160
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2161
+ currentItemStrokeWidth: number;
2162
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2163
+ currentItemRoughness: number;
2164
+ currentItemOpacity: number;
2165
+ currentItemFontFamily: number;
2166
+ currentItemFontSize: number;
2167
+ currentItemTextAlign: string;
2168
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2169
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2170
+ currentHoveredFontFamily: number | null;
2171
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2172
+ currentItemArrowType: "round" | "sharp" | "elbow";
2173
+ viewBackgroundColor: string;
2174
+ scrollX: number;
2175
+ scrollY: number;
2176
+ cursorButton: "up" | "down";
2177
+ scrolledOutside: boolean;
2178
+ name: string | null;
2179
+ isResizing: boolean;
2180
+ isRotating: boolean;
2181
+ zoom: Readonly<{
2182
+ value: import("../types").NormalizedZoomValue;
2183
+ }>;
2184
+ openMenu: "canvas" | "shape" | null;
2185
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2186
+ openSidebar: {
2187
+ name: string;
2188
+ tab?: string | undefined;
2189
+ } | null;
2190
+ openDialog: {
2191
+ name: "imageExport" | "help" | "jsonExport";
2192
+ } | {
2193
+ name: "ttd";
2194
+ tab: "mermaid" | "text-to-diagram";
2195
+ } | {
2196
+ name: "commandPalette";
2197
+ } | {
2198
+ name: "elementLinkSelector";
2199
+ sourceElementId: string;
2200
+ } | null;
2201
+ defaultSidebarDockedPreference: boolean;
2202
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2203
+ hoveredElementIds: Readonly<{
2204
+ [id: string]: true;
2205
+ }>;
2206
+ previousSelectedElementIds: {
2207
+ [id: string]: true;
2208
+ };
2209
+ selectedElementsAreBeingDragged: boolean;
2210
+ shouldCacheIgnoreZoom: boolean;
2211
+ toast: {
2212
+ message: string;
2213
+ closable?: boolean | undefined;
2214
+ duration?: number | undefined;
2215
+ } | null;
2216
+ zenModeEnabled: boolean;
2217
+ theme: import("@excalidraw/element/types").Theme;
2218
+ gridSize: number;
2219
+ gridStep: number;
2220
+ gridModeEnabled: boolean;
2221
+ viewModeEnabled: boolean;
2222
+ editingGroupId: string | null;
2223
+ width: number;
2224
+ height: number;
2225
+ offsetTop: number;
2226
+ offsetLeft: number;
2227
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
2228
+ collaborators: Map<import("../types").SocketId, Readonly<{
2229
+ pointer?: import("../types").CollaboratorPointer | undefined;
2230
+ button?: "up" | "down" | undefined;
2231
+ selectedElementIds?: Readonly<{
2232
+ [id: string]: true;
2233
+ }> | undefined;
2234
+ username?: string | null | undefined;
2235
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2236
+ color?: {
2237
+ background: string;
2238
+ stroke: string;
2239
+ } | undefined;
2240
+ avatarUrl?: string | undefined;
2241
+ id?: string | undefined;
2242
+ socketId?: import("../types").SocketId | undefined;
2243
+ isCurrentUser?: boolean | undefined;
2244
+ isInCall?: boolean | undefined;
2245
+ isSpeaking?: boolean | undefined;
2246
+ isMuted?: boolean | undefined;
2247
+ }>>;
2248
+ stats: {
2249
+ open: boolean;
2250
+ panels: number;
2251
+ };
2252
+ currentChartType: import("@excalidraw/element/types").ChartType;
2253
+ pasteDialog: {
2254
+ shown: false;
2255
+ data: null;
2256
+ } | {
2257
+ shown: true;
2258
+ data: import("../charts").Spreadsheet;
2259
+ };
2260
+ showHyperlinkPopup: false | "editor" | "info";
2261
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2262
+ snapLines: readonly import("../snapping").SnapLine[];
2263
+ originSnapOffset: {
2264
+ x: number;
2265
+ y: number;
2266
+ } | null;
2267
+ objectsSnapModeEnabled: boolean;
2268
+ userToFollow: import("../types").UserToFollow | null;
2269
+ followedBy: Set<import("../types").SocketId>;
2270
+ isCropping: boolean;
2271
+ croppingElementId: string | null;
2272
+ searchMatches: Readonly<{
2273
+ focusedId: string | null;
2274
+ matches: readonly import("../types").SearchMatch[];
2275
+ }> | null;
2276
+ activeLockedId: string | null;
2277
+ lockedMultiSelections: {
2278
+ [groupId: string]: true;
2279
+ };
2280
+ stylesPanelMode: "compact" | "full" | "mobile";
2281
+ };
2282
+ captureUpdate: "NEVER";
2283
+ };
2284
+ } & {
2285
+ keyTest?: undefined;
2286
+ };
2085
2287
  export declare const actionToggleHandTool: {
2086
2288
  name: "toggleHandTool";
2087
2289
  label: string;
2088
- paletteName: string;
2089
2290
  trackEvent: {
2090
2291
  category: "toolbar";
2091
2292
  };
2092
2293
  icon: import("react/jsx-runtime").JSX.Element;
2093
2294
  viewMode: false;
2094
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2295
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2095
2296
  appState: {
2096
2297
  selectedElementIds: {};
2097
2298
  selectedGroupIds: {};
@@ -2099,6 +2300,7 @@ export declare const actionToggleHandTool: {
2099
2300
  activeTool: {
2100
2301
  lastActiveTool: import("../types").ActiveTool | null;
2101
2302
  locked: boolean;
2303
+ fromSelection: boolean;
2102
2304
  } & import("../types").ActiveTool;
2103
2305
  contextMenu: {
2104
2306
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -2108,14 +2310,14 @@ export declare const actionToggleHandTool: {
2108
2310
  showWelcomeScreen: boolean;
2109
2311
  isLoading: boolean;
2110
2312
  errorMessage: import("react").ReactNode;
2111
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2112
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2113
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
2114
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2313
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2314
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2315
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2316
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2115
2317
  isBindingEnabled: boolean;
2116
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
2117
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2118
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2318
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2319
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2320
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2119
2321
  frameRendering: {
2120
2322
  enabled: boolean;
2121
2323
  name: boolean;
@@ -2123,9 +2325,12 @@ export declare const actionToggleHandTool: {
2123
2325
  clip: boolean;
2124
2326
  };
2125
2327
  editingFrame: string | null;
2126
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2127
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2128
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2328
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2329
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2330
+ preferredSelectionTool: {
2331
+ type: "selection" | "lasso";
2332
+ initialized: boolean;
2333
+ };
2129
2334
  penMode: boolean;
2130
2335
  penDetected: boolean;
2131
2336
  exportBackground: boolean;
@@ -2134,18 +2339,18 @@ export declare const actionToggleHandTool: {
2134
2339
  exportScale: number;
2135
2340
  currentItemStrokeColor: string;
2136
2341
  currentItemBackgroundColor: string;
2137
- currentItemFillStyle: import("../element/types").FillStyle;
2342
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2138
2343
  currentItemStrokeWidth: number;
2139
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2344
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2140
2345
  currentItemRoughness: number;
2141
2346
  currentItemOpacity: number;
2142
2347
  currentItemFontFamily: number;
2143
2348
  currentItemFontSize: number;
2144
2349
  currentItemTextAlign: string;
2145
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
2146
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2350
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2351
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2147
2352
  currentHoveredFontFamily: number | null;
2148
- currentItemRoundness: import("../element/types").StrokeRoundness;
2353
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2149
2354
  currentItemArrowType: "round" | "sharp" | "elbow";
2150
2355
  viewBackgroundColor: string;
2151
2356
  scrollX: number;
@@ -2159,7 +2364,7 @@ export declare const actionToggleHandTool: {
2159
2364
  value: import("../types").NormalizedZoomValue;
2160
2365
  }>;
2161
2366
  openMenu: "canvas" | "shape" | null;
2162
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2367
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2163
2368
  openSidebar: {
2164
2369
  name: string;
2165
2370
  tab?: string | undefined;
@@ -2168,7 +2373,7 @@ export declare const actionToggleHandTool: {
2168
2373
  name: "imageExport" | "help" | "jsonExport";
2169
2374
  } | {
2170
2375
  name: "ttd";
2171
- tab: "text-to-diagram" | "mermaid";
2376
+ tab: "mermaid" | "text-to-diagram";
2172
2377
  } | {
2173
2378
  name: "commandPalette";
2174
2379
  } | {
@@ -2176,7 +2381,7 @@ export declare const actionToggleHandTool: {
2176
2381
  sourceElementId: string;
2177
2382
  } | null;
2178
2383
  defaultSidebarDockedPreference: boolean;
2179
- lastPointerDownWith: import("../element/types").PointerType;
2384
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2180
2385
  hoveredElementIds: Readonly<{
2181
2386
  [id: string]: true;
2182
2387
  }>;
@@ -2191,7 +2396,7 @@ export declare const actionToggleHandTool: {
2191
2396
  duration?: number | undefined;
2192
2397
  } | null;
2193
2398
  zenModeEnabled: boolean;
2194
- theme: import("../element/types").Theme;
2399
+ theme: import("@excalidraw/element/types").Theme;
2195
2400
  gridSize: number;
2196
2401
  gridStep: number;
2197
2402
  gridModeEnabled: boolean;
@@ -2209,7 +2414,7 @@ export declare const actionToggleHandTool: {
2209
2414
  [id: string]: true;
2210
2415
  }> | undefined;
2211
2416
  username?: string | null | undefined;
2212
- userState?: import("../constants").UserIdleState | undefined;
2417
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2213
2418
  color?: {
2214
2419
  background: string;
2215
2420
  stroke: string;
@@ -2226,7 +2431,7 @@ export declare const actionToggleHandTool: {
2226
2431
  open: boolean;
2227
2432
  panels: number;
2228
2433
  };
2229
- currentChartType: import("../element/types").ChartType;
2434
+ currentChartType: import("@excalidraw/element/types").ChartType;
2230
2435
  pasteDialog: {
2231
2436
  shown: false;
2232
2437
  data: null;
@@ -2234,9 +2439,8 @@ export declare const actionToggleHandTool: {
2234
2439
  shown: true;
2235
2440
  data: import("../charts").Spreadsheet;
2236
2441
  };
2237
- pendingImageElementId: string | null;
2238
- showHyperlinkPopup: false | "info" | "editor";
2239
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2442
+ showHyperlinkPopup: false | "editor" | "info";
2443
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2240
2444
  snapLines: readonly import("../snapping").SnapLine[];
2241
2445
  originSnapOffset: {
2242
2446
  x: number;
@@ -2247,16 +2451,15 @@ export declare const actionToggleHandTool: {
2247
2451
  followedBy: Set<import("../types").SocketId>;
2248
2452
  isCropping: boolean;
2249
2453
  croppingElementId: string | null;
2250
- searchMatches: readonly {
2251
- id: string;
2252
- focus: boolean;
2253
- matchedLines: {
2254
- offsetX: number;
2255
- offsetY: number;
2256
- width: number;
2257
- height: number;
2258
- }[];
2259
- }[];
2454
+ searchMatches: Readonly<{
2455
+ focusedId: string | null;
2456
+ matches: readonly import("../types").SearchMatch[];
2457
+ }> | null;
2458
+ activeLockedId: string | null;
2459
+ lockedMultiSelections: {
2460
+ [groupId: string]: true;
2461
+ };
2462
+ stylesPanelMode: "compact" | "full" | "mobile";
2260
2463
  };
2261
2464
  captureUpdate: "IMMEDIATELY";
2262
2465
  };