@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-835eb8d

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 (302) 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-N4PQJPAH.js +5666 -0
  7. package/dist/dev/chunk-N4PQJPAH.js.map +7 -0
  8. package/dist/dev/{chunk-LMHBUWQS.js → chunk-PWQMCSHA.js} +27 -8
  9. package/dist/dev/chunk-PWQMCSHA.js.map +7 -0
  10. package/dist/dev/data/{image-V26YBSDB.js → image-RT6RLBUE.js} +3 -3
  11. package/dist/dev/index.css +3573 -3309
  12. package/dist/dev/index.css.map +3 -3
  13. package/dist/dev/index.js +31657 -23863
  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-LS7FJGPW.js +86 -0
  21. package/dist/prod/chunk-SVEJI6WL.js +4 -0
  22. package/dist/prod/data/image-HPGPBQV2.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 +49 -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 +103 -109
  79. package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
  80. package/dist/types/excalidraw/actions/actionBoundText.d.ts +74 -78
  81. package/dist/types/excalidraw/actions/actionCanvas.d.ts +653 -502
  82. package/dist/types/excalidraw/actions/actionClipboard.d.ts +218 -228
  83. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +36 -38
  84. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +108 -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 +39 -41
  88. package/dist/types/excalidraw/actions/actionElementLock.d.ts +86 -92
  89. package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +36 -48
  90. package/dist/types/excalidraw/actions/actionExport.d.ts +369 -387
  91. package/dist/types/excalidraw/actions/actionFinalize.d.ts +104 -67
  92. package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
  93. package/dist/types/excalidraw/actions/actionFrame.d.ts +260 -268
  94. package/dist/types/excalidraw/actions/actionGroup.d.ts +71 -75
  95. package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
  96. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +564 -42
  97. package/dist/types/excalidraw/actions/actionLink.d.ts +37 -39
  98. package/dist/types/excalidraw/actions/actionMenu.d.ts +104 -110
  99. package/dist/types/excalidraw/actions/actionNavigate.d.ts +69 -73
  100. package/dist/types/excalidraw/actions/actionProperties.d.ts +512 -525
  101. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +37 -39
  102. package/dist/types/excalidraw/actions/actionStyles.d.ts +38 -40
  103. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  104. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +36 -38
  105. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +36 -38
  106. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +35 -209
  107. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  108. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +35 -38
  109. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +36 -39
  110. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +36 -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 +39 -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 +10 -7
  121. package/dist/types/excalidraw/components/App.d.ts +51 -32
  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 +11 -6
  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 +4 -5
  129. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -4
  130. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -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/EyeDropper.d.ts +1 -1
  145. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  146. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
  147. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +3 -2
  148. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
  149. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -2
  150. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  151. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  152. package/dist/types/excalidraw/components/IconPicker.d.ts +1 -1
  153. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
  154. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  155. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  156. package/dist/types/excalidraw/components/Island.d.ts +1 -1
  157. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
  158. package/dist/types/excalidraw/components/LayerUI.d.ts +3 -3
  159. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  160. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
  161. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +4 -4
  162. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  163. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  164. package/dist/types/excalidraw/components/MagicButton.d.ts +1 -1
  165. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -3
  166. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  167. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  168. package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -1
  169. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  170. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  171. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  172. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
  173. package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -1
  174. package/dist/types/excalidraw/components/Stack.d.ts +1 -1
  175. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  176. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  177. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  178. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  179. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +14 -4
  180. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
  181. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  182. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +3 -3
  183. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
  184. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  185. package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
  186. package/dist/types/excalidraw/components/Stats/index.d.ts +2 -2
  187. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  188. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  189. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  190. package/dist/types/excalidraw/components/TextField.d.ts +2 -1
  191. package/dist/types/excalidraw/components/Toast.d.ts +1 -1
  192. package/dist/types/excalidraw/components/ToolButton.d.ts +2 -2
  193. package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
  194. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  195. package/dist/types/excalidraw/components/UserList.d.ts +1 -1
  196. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
  197. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
  198. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  200. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
  201. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  202. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +5 -4
  203. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -2
  204. package/dist/types/excalidraw/components/icons.d.ts +11 -1
  205. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  206. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  207. package/dist/types/excalidraw/components/shapes.d.ts +190 -0
  208. package/dist/types/excalidraw/context/tunnels.d.ts +1 -1
  209. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  210. package/dist/types/excalidraw/data/blob.d.ts +7 -11
  211. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  212. package/dist/types/excalidraw/data/index.d.ts +2 -2
  213. package/dist/types/excalidraw/data/json.d.ts +1 -1
  214. package/dist/types/excalidraw/data/library.d.ts +3 -3
  215. package/dist/types/excalidraw/data/reconcile.d.ts +3 -2
  216. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  217. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  218. package/dist/types/excalidraw/data/transform.d.ts +4 -4
  219. package/dist/types/excalidraw/data/types.d.ts +6 -3
  220. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  221. package/dist/types/excalidraw/eraser/index.d.ts +12 -0
  222. package/dist/types/excalidraw/errors.d.ts +0 -3
  223. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -13
  224. package/dist/types/excalidraw/history.d.ts +31 -23
  225. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  226. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  227. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  228. package/dist/types/excalidraw/i18n.d.ts +1 -1
  229. package/dist/types/excalidraw/index.d.ts +18 -16
  230. package/dist/types/excalidraw/laser-trails.d.ts +1 -1
  231. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  232. package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
  233. package/dist/types/excalidraw/renderer/helpers.d.ts +8 -3
  234. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  235. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
  236. package/dist/types/excalidraw/scene/Renderer.d.ts +3 -4
  237. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  238. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  239. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  240. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  241. package/dist/types/excalidraw/scene/types.d.ts +6 -4
  242. package/dist/types/excalidraw/snapping.d.ts +5 -6
  243. package/dist/types/excalidraw/types.d.ts +50 -26
  244. package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +4 -2
  245. package/dist/types/math/{angle.d.ts → src/angle.d.ts} +2 -0
  246. package/dist/types/math/src/constants.d.ts +3 -0
  247. package/dist/types/math/src/curve.d.ts +74 -0
  248. package/dist/types/math/{index.d.ts → src/index.d.ts} +1 -0
  249. package/dist/types/math/{point.d.ts → src/point.d.ts} +3 -3
  250. package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  251. package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +2 -0
  252. package/dist/types/math/{segment.d.ts → src/segment.d.ts} +2 -1
  253. package/dist/types/math/{types.d.ts → src/types.d.ts} +1 -0
  254. package/dist/types/math/{vector.d.ts → src/vector.d.ts} +8 -2
  255. package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  256. package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
  257. package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  258. package/dist/types/utils/{geometry → src}/shape.d.ts +2 -15
  259. package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  260. package/history.ts +148 -109
  261. package/package.json +26 -11
  262. package/dist/dev/chunk-3SN6HYVK.js +0 -25695
  263. package/dist/dev/chunk-3SN6HYVK.js.map +0 -7
  264. package/dist/dev/chunk-53KHN5WM.js +0 -7
  265. package/dist/dev/chunk-53KHN5WM.js.map +0 -7
  266. package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
  267. package/dist/dev/chunk-OKSO7T74.js +0 -4132
  268. package/dist/dev/chunk-OKSO7T74.js.map +0 -7
  269. package/dist/prod/chunk-36CXSE6H.js +0 -34
  270. package/dist/prod/chunk-6U3AYISY.js +0 -12
  271. package/dist/prod/chunk-EIO257PC.js +0 -86
  272. package/dist/prod/chunk-G5N3DNGT.js +0 -7
  273. package/dist/prod/data/image-N4WCURRR.js +0 -1
  274. package/dist/types/excalidraw/align.d.ts +0 -7
  275. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  276. package/dist/types/excalidraw/element/collision.d.ts +0 -26
  277. package/dist/types/excalidraw/element/distance.d.ts +0 -3
  278. package/dist/types/excalidraw/element/index.d.ts +0 -26
  279. package/dist/types/excalidraw/element/mutateElement.d.ts +0 -13
  280. package/dist/types/excalidraw/element/utils.d.ts +0 -21
  281. package/dist/types/excalidraw/scene/Shape.d.ts +0 -17
  282. package/dist/types/excalidraw/scene/ShapeCache.d.ts +0 -25
  283. package/dist/types/excalidraw/shapes.d.ts +0 -85
  284. package/dist/types/excalidraw/store.d.ts +0 -129
  285. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  286. package/dist/types/math/curve.d.ts +0 -40
  287. package/dist/types/utils/collision.d.ts +0 -9
  288. /package/dist/dev/data/{image-V26YBSDB.js.map → image-RT6RLBUE.js.map} +0 -0
  289. /package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-V3NQTBPG.js.map} +0 -0
  290. /package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
  291. /package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
  292. /package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
  293. /package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  294. /package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  295. /package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  296. /package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  297. /package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  298. /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  299. /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
  300. /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
  301. /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  302. /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,83 @@ 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
+ exportWithDarkMode: boolean;
141
+ exportScale: number;
142
+ currentItemStrokeColor: string;
143
+ currentItemBackgroundColor: string;
144
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
145
+ currentItemStrokeWidth: number;
146
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
147
+ currentItemRoughness: number;
148
+ currentItemOpacity: number;
149
+ currentItemFontFamily: number;
150
+ currentItemFontSize: number;
151
+ currentItemTextAlign: string;
152
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
153
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
154
+ currentHoveredFontFamily: number | null;
155
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
156
+ currentItemArrowType: "round" | "sharp" | "elbow";
157
+ cursorButton: "up" | "down";
158
+ scrolledOutside: boolean;
159
+ isResizing: boolean;
160
+ openMenu: "canvas" | "shape" | null;
161
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
162
+ openSidebar: {
163
+ name: string;
164
+ tab?: string | undefined;
165
+ } | null;
166
+ defaultSidebarDockedPreference: boolean;
167
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
168
+ hoveredElementIds: Readonly<{
169
+ [id: string]: true;
170
+ }>;
171
+ previousSelectedElementIds: {
172
+ [id: string]: true;
173
+ };
174
+ selectedElementsAreBeingDragged: boolean;
175
+ shouldCacheIgnoreZoom: boolean;
176
+ toast: {
177
+ message: string;
178
+ closable?: boolean | undefined;
179
+ duration?: number | undefined;
180
+ } | null;
181
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
182
+ currentChartType: import("@excalidraw/element/types").ChartType;
183
+ showHyperlinkPopup: false | "editor" | "info";
181
184
  originSnapOffset: {
182
185
  x: number;
183
186
  y: number;
184
187
  } | null;
188
+ objectsSnapModeEnabled: boolean;
185
189
  userToFollow: import("../types").UserToFollow | null;
186
190
  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
- }[];
191
+ lockedMultiSelections: {
192
+ [groupId: string]: true;
193
+ };
194
+ stylesPanelMode: "compact" | "full";
199
195
  };
200
196
  captureUpdate: "IMMEDIATELY";
201
197
  };
@@ -210,7 +206,7 @@ export declare const actionZoomIn: {
210
206
  trackEvent: {
211
207
  category: "canvas";
212
208
  };
213
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
209
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
214
210
  appState: {
215
211
  userToFollow: null;
216
212
  scrollX: number;
@@ -227,17 +223,17 @@ export declare const actionZoomIn: {
227
223
  isLoading: boolean;
228
224
  errorMessage: import("react").ReactNode;
229
225
  activeEmbeddable: {
230
- element: import("../element/types").NonDeletedExcalidrawElement;
231
- state: "hover" | "active";
226
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
227
+ state: "active" | "hover";
232
228
  } | 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;
229
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
230
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
231
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
232
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
237
233
  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;
234
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
235
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
236
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
241
237
  frameRendering: {
242
238
  enabled: boolean;
243
239
  name: boolean;
@@ -245,12 +241,12 @@ export declare const actionZoomIn: {
245
241
  clip: boolean;
246
242
  };
247
243
  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;
244
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
245
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
251
246
  activeTool: {
252
247
  lastActiveTool: import("../types").ActiveTool | null;
253
248
  locked: boolean;
249
+ fromSelection: boolean;
254
250
  } & import("../types").ActiveTool;
255
251
  penMode: boolean;
256
252
  penDetected: boolean;
@@ -260,18 +256,18 @@ export declare const actionZoomIn: {
260
256
  exportScale: number;
261
257
  currentItemStrokeColor: string;
262
258
  currentItemBackgroundColor: string;
263
- currentItemFillStyle: import("../element/types").FillStyle;
259
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
264
260
  currentItemStrokeWidth: number;
265
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
261
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
266
262
  currentItemRoughness: number;
267
263
  currentItemOpacity: number;
268
264
  currentItemFontFamily: number;
269
265
  currentItemFontSize: number;
270
266
  currentItemTextAlign: string;
271
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
272
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
267
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
268
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
273
269
  currentHoveredFontFamily: number | null;
274
- currentItemRoundness: import("../element/types").StrokeRoundness;
270
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
275
271
  currentItemArrowType: "round" | "sharp" | "elbow";
276
272
  viewBackgroundColor: string;
277
273
  cursorButton: "up" | "down";
@@ -280,7 +276,7 @@ export declare const actionZoomIn: {
280
276
  isResizing: boolean;
281
277
  isRotating: boolean;
282
278
  openMenu: "canvas" | "shape" | null;
283
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
279
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
284
280
  openSidebar: {
285
281
  name: string;
286
282
  tab?: string | undefined;
@@ -289,7 +285,7 @@ export declare const actionZoomIn: {
289
285
  name: "imageExport" | "help" | "jsonExport";
290
286
  } | {
291
287
  name: "ttd";
292
- tab: "text-to-diagram" | "mermaid";
288
+ tab: "mermaid" | "text-to-diagram";
293
289
  } | {
294
290
  name: "commandPalette";
295
291
  } | {
@@ -297,7 +293,7 @@ export declare const actionZoomIn: {
297
293
  sourceElementId: string;
298
294
  } | null;
299
295
  defaultSidebarDockedPreference: boolean;
300
- lastPointerDownWith: import("../element/types").PointerType;
296
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
301
297
  selectedElementIds: Readonly<{
302
298
  [id: string]: true;
303
299
  }>;
@@ -315,7 +311,7 @@ export declare const actionZoomIn: {
315
311
  duration?: number | undefined;
316
312
  } | null;
317
313
  zenModeEnabled: boolean;
318
- theme: import("../element/types").Theme;
314
+ theme: import("@excalidraw/element/types").Theme;
319
315
  gridSize: number;
320
316
  gridStep: number;
321
317
  gridModeEnabled: boolean;
@@ -336,7 +332,7 @@ export declare const actionZoomIn: {
336
332
  [id: string]: true;
337
333
  }> | undefined;
338
334
  username?: string | null | undefined;
339
- userState?: import("../constants").UserIdleState | undefined;
335
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
340
336
  color?: {
341
337
  background: string;
342
338
  stroke: string;
@@ -353,7 +349,7 @@ export declare const actionZoomIn: {
353
349
  open: boolean;
354
350
  panels: number;
355
351
  };
356
- currentChartType: import("../element/types").ChartType;
352
+ currentChartType: import("@excalidraw/element/types").ChartType;
357
353
  pasteDialog: {
358
354
  shown: false;
359
355
  data: null;
@@ -361,9 +357,8 @@ export declare const actionZoomIn: {
361
357
  shown: true;
362
358
  data: import("../charts").Spreadsheet;
363
359
  };
364
- pendingImageElementId: string | null;
365
- showHyperlinkPopup: false | "info" | "editor";
366
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
360
+ showHyperlinkPopup: false | "editor" | "info";
361
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
367
362
  snapLines: readonly import("../snapping").SnapLine[];
368
363
  originSnapOffset: {
369
364
  x: number;
@@ -373,16 +368,15 @@ export declare const actionZoomIn: {
373
368
  followedBy: Set<import("../types").SocketId>;
374
369
  isCropping: boolean;
375
370
  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
- }[];
371
+ searchMatches: Readonly<{
372
+ focusedId: string | null;
373
+ matches: readonly import("../types").SearchMatch[];
374
+ }> | null;
375
+ activeLockedId: string | null;
376
+ lockedMultiSelections: {
377
+ [groupId: string]: true;
378
+ };
379
+ stylesPanelMode: "compact" | "full";
386
380
  };
387
381
  captureUpdate: "EVENTUALLY";
388
382
  };
@@ -399,7 +393,7 @@ export declare const actionZoomOut: {
399
393
  trackEvent: {
400
394
  category: "canvas";
401
395
  };
402
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
396
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
403
397
  appState: {
404
398
  userToFollow: null;
405
399
  scrollX: number;
@@ -416,17 +410,17 @@ export declare const actionZoomOut: {
416
410
  isLoading: boolean;
417
411
  errorMessage: import("react").ReactNode;
418
412
  activeEmbeddable: {
419
- element: import("../element/types").NonDeletedExcalidrawElement;
420
- state: "hover" | "active";
413
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
414
+ state: "active" | "hover";
421
415
  } | 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;
416
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
417
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
418
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
419
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
426
420
  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;
421
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
422
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
423
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
430
424
  frameRendering: {
431
425
  enabled: boolean;
432
426
  name: boolean;
@@ -434,12 +428,12 @@ export declare const actionZoomOut: {
434
428
  clip: boolean;
435
429
  };
436
430
  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;
431
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
432
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
440
433
  activeTool: {
441
434
  lastActiveTool: import("../types").ActiveTool | null;
442
435
  locked: boolean;
436
+ fromSelection: boolean;
443
437
  } & import("../types").ActiveTool;
444
438
  penMode: boolean;
445
439
  penDetected: boolean;
@@ -449,18 +443,18 @@ export declare const actionZoomOut: {
449
443
  exportScale: number;
450
444
  currentItemStrokeColor: string;
451
445
  currentItemBackgroundColor: string;
452
- currentItemFillStyle: import("../element/types").FillStyle;
446
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
453
447
  currentItemStrokeWidth: number;
454
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
448
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
455
449
  currentItemRoughness: number;
456
450
  currentItemOpacity: number;
457
451
  currentItemFontFamily: number;
458
452
  currentItemFontSize: number;
459
453
  currentItemTextAlign: string;
460
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
461
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
454
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
455
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
462
456
  currentHoveredFontFamily: number | null;
463
- currentItemRoundness: import("../element/types").StrokeRoundness;
457
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
464
458
  currentItemArrowType: "round" | "sharp" | "elbow";
465
459
  viewBackgroundColor: string;
466
460
  cursorButton: "up" | "down";
@@ -469,7 +463,7 @@ export declare const actionZoomOut: {
469
463
  isResizing: boolean;
470
464
  isRotating: boolean;
471
465
  openMenu: "canvas" | "shape" | null;
472
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
466
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
473
467
  openSidebar: {
474
468
  name: string;
475
469
  tab?: string | undefined;
@@ -478,7 +472,7 @@ export declare const actionZoomOut: {
478
472
  name: "imageExport" | "help" | "jsonExport";
479
473
  } | {
480
474
  name: "ttd";
481
- tab: "text-to-diagram" | "mermaid";
475
+ tab: "mermaid" | "text-to-diagram";
482
476
  } | {
483
477
  name: "commandPalette";
484
478
  } | {
@@ -486,7 +480,7 @@ export declare const actionZoomOut: {
486
480
  sourceElementId: string;
487
481
  } | null;
488
482
  defaultSidebarDockedPreference: boolean;
489
- lastPointerDownWith: import("../element/types").PointerType;
483
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
490
484
  selectedElementIds: Readonly<{
491
485
  [id: string]: true;
492
486
  }>;
@@ -504,7 +498,7 @@ export declare const actionZoomOut: {
504
498
  duration?: number | undefined;
505
499
  } | null;
506
500
  zenModeEnabled: boolean;
507
- theme: import("../element/types").Theme;
501
+ theme: import("@excalidraw/element/types").Theme;
508
502
  gridSize: number;
509
503
  gridStep: number;
510
504
  gridModeEnabled: boolean;
@@ -525,7 +519,7 @@ export declare const actionZoomOut: {
525
519
  [id: string]: true;
526
520
  }> | undefined;
527
521
  username?: string | null | undefined;
528
- userState?: import("../constants").UserIdleState | undefined;
522
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
529
523
  color?: {
530
524
  background: string;
531
525
  stroke: string;
@@ -542,7 +536,7 @@ export declare const actionZoomOut: {
542
536
  open: boolean;
543
537
  panels: number;
544
538
  };
545
- currentChartType: import("../element/types").ChartType;
539
+ currentChartType: import("@excalidraw/element/types").ChartType;
546
540
  pasteDialog: {
547
541
  shown: false;
548
542
  data: null;
@@ -550,9 +544,8 @@ export declare const actionZoomOut: {
550
544
  shown: true;
551
545
  data: import("../charts").Spreadsheet;
552
546
  };
553
- pendingImageElementId: string | null;
554
- showHyperlinkPopup: false | "info" | "editor";
555
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
547
+ showHyperlinkPopup: false | "editor" | "info";
548
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
556
549
  snapLines: readonly import("../snapping").SnapLine[];
557
550
  originSnapOffset: {
558
551
  x: number;
@@ -562,16 +555,15 @@ export declare const actionZoomOut: {
562
555
  followedBy: Set<import("../types").SocketId>;
563
556
  isCropping: boolean;
564
557
  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
- }[];
558
+ searchMatches: Readonly<{
559
+ focusedId: string | null;
560
+ matches: readonly import("../types").SearchMatch[];
561
+ }> | null;
562
+ activeLockedId: string | null;
563
+ lockedMultiSelections: {
564
+ [groupId: string]: true;
565
+ };
566
+ stylesPanelMode: "compact" | "full";
575
567
  };
576
568
  captureUpdate: "EVENTUALLY";
577
569
  };
@@ -588,7 +580,7 @@ export declare const actionResetZoom: {
588
580
  trackEvent: {
589
581
  category: "canvas";
590
582
  };
591
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
583
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
592
584
  appState: {
593
585
  userToFollow: null;
594
586
  scrollX: number;
@@ -605,17 +597,17 @@ export declare const actionResetZoom: {
605
597
  isLoading: boolean;
606
598
  errorMessage: import("react").ReactNode;
607
599
  activeEmbeddable: {
608
- element: import("../element/types").NonDeletedExcalidrawElement;
609
- state: "hover" | "active";
600
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
601
+ state: "active" | "hover";
610
602
  } | 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;
603
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
604
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
605
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
606
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
615
607
  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;
608
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
609
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
610
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
619
611
  frameRendering: {
620
612
  enabled: boolean;
621
613
  name: boolean;
@@ -623,12 +615,12 @@ export declare const actionResetZoom: {
623
615
  clip: boolean;
624
616
  };
625
617
  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;
618
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
619
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
629
620
  activeTool: {
630
621
  lastActiveTool: import("../types").ActiveTool | null;
631
622
  locked: boolean;
623
+ fromSelection: boolean;
632
624
  } & import("../types").ActiveTool;
633
625
  penMode: boolean;
634
626
  penDetected: boolean;
@@ -638,18 +630,18 @@ export declare const actionResetZoom: {
638
630
  exportScale: number;
639
631
  currentItemStrokeColor: string;
640
632
  currentItemBackgroundColor: string;
641
- currentItemFillStyle: import("../element/types").FillStyle;
633
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
642
634
  currentItemStrokeWidth: number;
643
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
635
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
644
636
  currentItemRoughness: number;
645
637
  currentItemOpacity: number;
646
638
  currentItemFontFamily: number;
647
639
  currentItemFontSize: number;
648
640
  currentItemTextAlign: string;
649
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
650
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
641
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
642
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
651
643
  currentHoveredFontFamily: number | null;
652
- currentItemRoundness: import("../element/types").StrokeRoundness;
644
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
653
645
  currentItemArrowType: "round" | "sharp" | "elbow";
654
646
  viewBackgroundColor: string;
655
647
  cursorButton: "up" | "down";
@@ -658,7 +650,7 @@ export declare const actionResetZoom: {
658
650
  isResizing: boolean;
659
651
  isRotating: boolean;
660
652
  openMenu: "canvas" | "shape" | null;
661
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
653
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
662
654
  openSidebar: {
663
655
  name: string;
664
656
  tab?: string | undefined;
@@ -667,7 +659,7 @@ export declare const actionResetZoom: {
667
659
  name: "imageExport" | "help" | "jsonExport";
668
660
  } | {
669
661
  name: "ttd";
670
- tab: "text-to-diagram" | "mermaid";
662
+ tab: "mermaid" | "text-to-diagram";
671
663
  } | {
672
664
  name: "commandPalette";
673
665
  } | {
@@ -675,7 +667,7 @@ export declare const actionResetZoom: {
675
667
  sourceElementId: string;
676
668
  } | null;
677
669
  defaultSidebarDockedPreference: boolean;
678
- lastPointerDownWith: import("../element/types").PointerType;
670
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
679
671
  selectedElementIds: Readonly<{
680
672
  [id: string]: true;
681
673
  }>;
@@ -693,7 +685,7 @@ export declare const actionResetZoom: {
693
685
  duration?: number | undefined;
694
686
  } | null;
695
687
  zenModeEnabled: boolean;
696
- theme: import("../element/types").Theme;
688
+ theme: import("@excalidraw/element/types").Theme;
697
689
  gridSize: number;
698
690
  gridStep: number;
699
691
  gridModeEnabled: boolean;
@@ -714,7 +706,7 @@ export declare const actionResetZoom: {
714
706
  [id: string]: true;
715
707
  }> | undefined;
716
708
  username?: string | null | undefined;
717
- userState?: import("../constants").UserIdleState | undefined;
709
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
718
710
  color?: {
719
711
  background: string;
720
712
  stroke: string;
@@ -731,7 +723,7 @@ export declare const actionResetZoom: {
731
723
  open: boolean;
732
724
  panels: number;
733
725
  };
734
- currentChartType: import("../element/types").ChartType;
726
+ currentChartType: import("@excalidraw/element/types").ChartType;
735
727
  pasteDialog: {
736
728
  shown: false;
737
729
  data: null;
@@ -739,9 +731,8 @@ export declare const actionResetZoom: {
739
731
  shown: true;
740
732
  data: import("../charts").Spreadsheet;
741
733
  };
742
- pendingImageElementId: string | null;
743
- showHyperlinkPopup: false | "info" | "editor";
744
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
734
+ showHyperlinkPopup: false | "editor" | "info";
735
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
745
736
  snapLines: readonly import("../snapping").SnapLine[];
746
737
  originSnapOffset: {
747
738
  x: number;
@@ -751,16 +742,15 @@ export declare const actionResetZoom: {
751
742
  followedBy: Set<import("../types").SocketId>;
752
743
  isCropping: boolean;
753
744
  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
- }[];
745
+ searchMatches: Readonly<{
746
+ focusedId: string | null;
747
+ matches: readonly import("../types").SearchMatch[];
748
+ }> | null;
749
+ activeLockedId: string | null;
750
+ lockedMultiSelections: {
751
+ [groupId: string]: true;
752
+ };
753
+ stylesPanelMode: "compact" | "full";
764
754
  };
765
755
  captureUpdate: "EVENTUALLY";
766
756
  };
@@ -800,17 +790,17 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
800
790
  isLoading: boolean;
801
791
  errorMessage: import("react").ReactNode;
802
792
  activeEmbeddable: {
803
- element: import("../element/types").NonDeletedExcalidrawElement;
804
- state: "hover" | "active";
793
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
794
+ state: "active" | "hover";
805
795
  } | 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;
796
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
797
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
798
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
799
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
810
800
  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;
801
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
802
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
803
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
814
804
  frameRendering: {
815
805
  enabled: boolean;
816
806
  name: boolean;
@@ -818,12 +808,12 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
818
808
  clip: boolean;
819
809
  };
820
810
  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;
811
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
812
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
824
813
  activeTool: {
825
814
  lastActiveTool: import("../types").ActiveTool | null;
826
815
  locked: boolean;
816
+ fromSelection: boolean;
827
817
  } & import("../types").ActiveTool;
828
818
  penMode: boolean;
829
819
  penDetected: boolean;
@@ -833,18 +823,18 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
833
823
  exportScale: number;
834
824
  currentItemStrokeColor: string;
835
825
  currentItemBackgroundColor: string;
836
- currentItemFillStyle: import("../element/types").FillStyle;
826
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
837
827
  currentItemStrokeWidth: number;
838
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
828
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
839
829
  currentItemRoughness: number;
840
830
  currentItemOpacity: number;
841
831
  currentItemFontFamily: number;
842
832
  currentItemFontSize: number;
843
833
  currentItemTextAlign: string;
844
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
845
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
834
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
835
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
846
836
  currentHoveredFontFamily: number | null;
847
- currentItemRoundness: import("../element/types").StrokeRoundness;
837
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
848
838
  currentItemArrowType: "round" | "sharp" | "elbow";
849
839
  viewBackgroundColor: string;
850
840
  cursorButton: "up" | "down";
@@ -853,7 +843,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
853
843
  isResizing: boolean;
854
844
  isRotating: boolean;
855
845
  openMenu: "canvas" | "shape" | null;
856
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
846
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
857
847
  openSidebar: {
858
848
  name: string;
859
849
  tab?: string | undefined;
@@ -862,7 +852,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
862
852
  name: "imageExport" | "help" | "jsonExport";
863
853
  } | {
864
854
  name: "ttd";
865
- tab: "text-to-diagram" | "mermaid";
855
+ tab: "mermaid" | "text-to-diagram";
866
856
  } | {
867
857
  name: "commandPalette";
868
858
  } | {
@@ -870,7 +860,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
870
860
  sourceElementId: string;
871
861
  } | null;
872
862
  defaultSidebarDockedPreference: boolean;
873
- lastPointerDownWith: import("../element/types").PointerType;
863
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
874
864
  selectedElementIds: Readonly<{
875
865
  [id: string]: true;
876
866
  }>;
@@ -888,7 +878,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
888
878
  duration?: number | undefined;
889
879
  } | null;
890
880
  zenModeEnabled: boolean;
891
- theme: import("../element/types").Theme;
881
+ theme: import("@excalidraw/element/types").Theme;
892
882
  gridSize: number;
893
883
  gridStep: number;
894
884
  gridModeEnabled: boolean;
@@ -909,7 +899,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
909
899
  [id: string]: true;
910
900
  }> | undefined;
911
901
  username?: string | null | undefined;
912
- userState?: import("../constants").UserIdleState | undefined;
902
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
913
903
  color?: {
914
904
  background: string;
915
905
  stroke: string;
@@ -926,7 +916,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
926
916
  open: boolean;
927
917
  panels: number;
928
918
  };
929
- currentChartType: import("../element/types").ChartType;
919
+ currentChartType: import("@excalidraw/element/types").ChartType;
930
920
  pasteDialog: {
931
921
  shown: false;
932
922
  data: null;
@@ -934,9 +924,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
934
924
  shown: true;
935
925
  data: import("../charts").Spreadsheet;
936
926
  };
937
- pendingImageElementId: string | null;
938
- showHyperlinkPopup: false | "info" | "editor";
939
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
927
+ showHyperlinkPopup: false | "editor" | "info";
928
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
940
929
  snapLines: readonly import("../snapping").SnapLine[];
941
930
  originSnapOffset: {
942
931
  x: number;
@@ -947,16 +936,15 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
947
936
  followedBy: Set<import("../types").SocketId>;
948
937
  isCropping: boolean;
949
938
  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
- }[];
939
+ searchMatches: Readonly<{
940
+ focusedId: string | null;
941
+ matches: readonly import("../types").SearchMatch[];
942
+ }> | null;
943
+ activeLockedId: string | null;
944
+ lockedMultiSelections: {
945
+ [groupId: string]: true;
946
+ };
947
+ stylesPanelMode: "compact" | "full";
960
948
  };
961
949
  captureUpdate: "EVENTUALLY";
962
950
  };
@@ -991,17 +979,17 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
991
979
  isLoading: boolean;
992
980
  errorMessage: import("react").ReactNode;
993
981
  activeEmbeddable: {
994
- element: import("../element/types").NonDeletedExcalidrawElement;
995
- state: "hover" | "active";
982
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
983
+ state: "active" | "hover";
996
984
  } | 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;
985
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
986
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
987
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
988
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1001
989
  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;
990
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
991
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
992
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1005
993
  frameRendering: {
1006
994
  enabled: boolean;
1007
995
  name: boolean;
@@ -1009,12 +997,12 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1009
997
  clip: boolean;
1010
998
  };
1011
999
  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;
1000
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1001
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1015
1002
  activeTool: {
1016
1003
  lastActiveTool: import("../types").ActiveTool | null;
1017
1004
  locked: boolean;
1005
+ fromSelection: boolean;
1018
1006
  } & import("../types").ActiveTool;
1019
1007
  penMode: boolean;
1020
1008
  penDetected: boolean;
@@ -1024,18 +1012,18 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1024
1012
  exportScale: number;
1025
1013
  currentItemStrokeColor: string;
1026
1014
  currentItemBackgroundColor: string;
1027
- currentItemFillStyle: import("../element/types").FillStyle;
1015
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1028
1016
  currentItemStrokeWidth: number;
1029
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1017
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1030
1018
  currentItemRoughness: number;
1031
1019
  currentItemOpacity: number;
1032
1020
  currentItemFontFamily: number;
1033
1021
  currentItemFontSize: number;
1034
1022
  currentItemTextAlign: string;
1035
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1036
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1023
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1024
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1037
1025
  currentHoveredFontFamily: number | null;
1038
- currentItemRoundness: import("../element/types").StrokeRoundness;
1026
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1039
1027
  currentItemArrowType: "round" | "sharp" | "elbow";
1040
1028
  viewBackgroundColor: string;
1041
1029
  cursorButton: "up" | "down";
@@ -1044,7 +1032,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1044
1032
  isResizing: boolean;
1045
1033
  isRotating: boolean;
1046
1034
  openMenu: "canvas" | "shape" | null;
1047
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1035
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1048
1036
  openSidebar: {
1049
1037
  name: string;
1050
1038
  tab?: string | undefined;
@@ -1053,7 +1041,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1053
1041
  name: "imageExport" | "help" | "jsonExport";
1054
1042
  } | {
1055
1043
  name: "ttd";
1056
- tab: "text-to-diagram" | "mermaid";
1044
+ tab: "mermaid" | "text-to-diagram";
1057
1045
  } | {
1058
1046
  name: "commandPalette";
1059
1047
  } | {
@@ -1061,7 +1049,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1061
1049
  sourceElementId: string;
1062
1050
  } | null;
1063
1051
  defaultSidebarDockedPreference: boolean;
1064
- lastPointerDownWith: import("../element/types").PointerType;
1052
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1065
1053
  selectedElementIds: Readonly<{
1066
1054
  [id: string]: true;
1067
1055
  }>;
@@ -1079,7 +1067,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1079
1067
  duration?: number | undefined;
1080
1068
  } | null;
1081
1069
  zenModeEnabled: boolean;
1082
- theme: import("../element/types").Theme;
1070
+ theme: import("@excalidraw/element/types").Theme;
1083
1071
  gridSize: number;
1084
1072
  gridStep: number;
1085
1073
  gridModeEnabled: boolean;
@@ -1100,7 +1088,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1100
1088
  [id: string]: true;
1101
1089
  }> | undefined;
1102
1090
  username?: string | null | undefined;
1103
- userState?: import("../constants").UserIdleState | undefined;
1091
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1104
1092
  color?: {
1105
1093
  background: string;
1106
1094
  stroke: string;
@@ -1117,7 +1105,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1117
1105
  open: boolean;
1118
1106
  panels: number;
1119
1107
  };
1120
- currentChartType: import("../element/types").ChartType;
1108
+ currentChartType: import("@excalidraw/element/types").ChartType;
1121
1109
  pasteDialog: {
1122
1110
  shown: false;
1123
1111
  data: null;
@@ -1125,9 +1113,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1125
1113
  shown: true;
1126
1114
  data: import("../charts").Spreadsheet;
1127
1115
  };
1128
- pendingImageElementId: string | null;
1129
- showHyperlinkPopup: false | "info" | "editor";
1130
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1116
+ showHyperlinkPopup: false | "editor" | "info";
1117
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1131
1118
  snapLines: readonly import("../snapping").SnapLine[];
1132
1119
  originSnapOffset: {
1133
1120
  x: number;
@@ -1138,16 +1125,15 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1138
1125
  followedBy: Set<import("../types").SocketId>;
1139
1126
  isCropping: boolean;
1140
1127
  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
- }[];
1128
+ searchMatches: Readonly<{
1129
+ focusedId: string | null;
1130
+ matches: readonly import("../types").SearchMatch[];
1131
+ }> | null;
1132
+ activeLockedId: string | null;
1133
+ lockedMultiSelections: {
1134
+ [groupId: string]: true;
1135
+ };
1136
+ stylesPanelMode: "compact" | "full";
1151
1137
  };
1152
1138
  captureUpdate: "EVENTUALLY";
1153
1139
  };
@@ -1158,7 +1144,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1158
1144
  trackEvent: {
1159
1145
  category: "canvas";
1160
1146
  };
1161
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1147
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1162
1148
  appState: {
1163
1149
  scrollX: number;
1164
1150
  scrollY: number;
@@ -1174,17 +1160,17 @@ export declare const actionZoomToFitSelectionInViewport: {
1174
1160
  isLoading: boolean;
1175
1161
  errorMessage: import("react").ReactNode;
1176
1162
  activeEmbeddable: {
1177
- element: import("../element/types").NonDeletedExcalidrawElement;
1178
- state: "hover" | "active";
1163
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1164
+ state: "active" | "hover";
1179
1165
  } | 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;
1166
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1167
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1168
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1169
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1184
1170
  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;
1171
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1172
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1173
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1188
1174
  frameRendering: {
1189
1175
  enabled: boolean;
1190
1176
  name: boolean;
@@ -1192,12 +1178,12 @@ export declare const actionZoomToFitSelectionInViewport: {
1192
1178
  clip: boolean;
1193
1179
  };
1194
1180
  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;
1181
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1182
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1198
1183
  activeTool: {
1199
1184
  lastActiveTool: import("../types").ActiveTool | null;
1200
1185
  locked: boolean;
1186
+ fromSelection: boolean;
1201
1187
  } & import("../types").ActiveTool;
1202
1188
  penMode: boolean;
1203
1189
  penDetected: boolean;
@@ -1207,18 +1193,18 @@ export declare const actionZoomToFitSelectionInViewport: {
1207
1193
  exportScale: number;
1208
1194
  currentItemStrokeColor: string;
1209
1195
  currentItemBackgroundColor: string;
1210
- currentItemFillStyle: import("../element/types").FillStyle;
1196
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1211
1197
  currentItemStrokeWidth: number;
1212
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1198
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1213
1199
  currentItemRoughness: number;
1214
1200
  currentItemOpacity: number;
1215
1201
  currentItemFontFamily: number;
1216
1202
  currentItemFontSize: number;
1217
1203
  currentItemTextAlign: string;
1218
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1219
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1204
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1205
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1220
1206
  currentHoveredFontFamily: number | null;
1221
- currentItemRoundness: import("../element/types").StrokeRoundness;
1207
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1222
1208
  currentItemArrowType: "round" | "sharp" | "elbow";
1223
1209
  viewBackgroundColor: string;
1224
1210
  cursorButton: "up" | "down";
@@ -1227,7 +1213,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1227
1213
  isResizing: boolean;
1228
1214
  isRotating: boolean;
1229
1215
  openMenu: "canvas" | "shape" | null;
1230
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1216
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1231
1217
  openSidebar: {
1232
1218
  name: string;
1233
1219
  tab?: string | undefined;
@@ -1236,7 +1222,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1236
1222
  name: "imageExport" | "help" | "jsonExport";
1237
1223
  } | {
1238
1224
  name: "ttd";
1239
- tab: "text-to-diagram" | "mermaid";
1225
+ tab: "mermaid" | "text-to-diagram";
1240
1226
  } | {
1241
1227
  name: "commandPalette";
1242
1228
  } | {
@@ -1244,7 +1230,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1244
1230
  sourceElementId: string;
1245
1231
  } | null;
1246
1232
  defaultSidebarDockedPreference: boolean;
1247
- lastPointerDownWith: import("../element/types").PointerType;
1233
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1248
1234
  selectedElementIds: Readonly<{
1249
1235
  [id: string]: true;
1250
1236
  }>;
@@ -1262,7 +1248,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1262
1248
  duration?: number | undefined;
1263
1249
  } | null;
1264
1250
  zenModeEnabled: boolean;
1265
- theme: import("../element/types").Theme;
1251
+ theme: import("@excalidraw/element/types").Theme;
1266
1252
  gridSize: number;
1267
1253
  gridStep: number;
1268
1254
  gridModeEnabled: boolean;
@@ -1283,7 +1269,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1283
1269
  [id: string]: true;
1284
1270
  }> | undefined;
1285
1271
  username?: string | null | undefined;
1286
- userState?: import("../constants").UserIdleState | undefined;
1272
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1287
1273
  color?: {
1288
1274
  background: string;
1289
1275
  stroke: string;
@@ -1300,7 +1286,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1300
1286
  open: boolean;
1301
1287
  panels: number;
1302
1288
  };
1303
- currentChartType: import("../element/types").ChartType;
1289
+ currentChartType: import("@excalidraw/element/types").ChartType;
1304
1290
  pasteDialog: {
1305
1291
  shown: false;
1306
1292
  data: null;
@@ -1308,9 +1294,8 @@ export declare const actionZoomToFitSelectionInViewport: {
1308
1294
  shown: true;
1309
1295
  data: import("../charts").Spreadsheet;
1310
1296
  };
1311
- pendingImageElementId: string | null;
1312
- showHyperlinkPopup: false | "info" | "editor";
1313
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1297
+ showHyperlinkPopup: false | "editor" | "info";
1298
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1314
1299
  snapLines: readonly import("../snapping").SnapLine[];
1315
1300
  originSnapOffset: {
1316
1301
  x: number;
@@ -1321,16 +1306,15 @@ export declare const actionZoomToFitSelectionInViewport: {
1321
1306
  followedBy: Set<import("../types").SocketId>;
1322
1307
  isCropping: boolean;
1323
1308
  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
- }[];
1309
+ searchMatches: Readonly<{
1310
+ focusedId: string | null;
1311
+ matches: readonly import("../types").SearchMatch[];
1312
+ }> | null;
1313
+ activeLockedId: string | null;
1314
+ lockedMultiSelections: {
1315
+ [groupId: string]: true;
1316
+ };
1317
+ stylesPanelMode: "compact" | "full";
1334
1318
  };
1335
1319
  captureUpdate: "EVENTUALLY";
1336
1320
  };
@@ -1345,7 +1329,7 @@ export declare const actionZoomToFitSelection: {
1345
1329
  trackEvent: {
1346
1330
  category: "canvas";
1347
1331
  };
1348
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1332
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1349
1333
  appState: {
1350
1334
  scrollX: number;
1351
1335
  scrollY: number;
@@ -1361,17 +1345,17 @@ export declare const actionZoomToFitSelection: {
1361
1345
  isLoading: boolean;
1362
1346
  errorMessage: import("react").ReactNode;
1363
1347
  activeEmbeddable: {
1364
- element: import("../element/types").NonDeletedExcalidrawElement;
1365
- state: "hover" | "active";
1348
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1349
+ state: "active" | "hover";
1366
1350
  } | 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;
1351
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1352
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1353
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1354
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1371
1355
  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;
1356
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1357
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1358
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1375
1359
  frameRendering: {
1376
1360
  enabled: boolean;
1377
1361
  name: boolean;
@@ -1379,12 +1363,12 @@ export declare const actionZoomToFitSelection: {
1379
1363
  clip: boolean;
1380
1364
  };
1381
1365
  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;
1366
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1367
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1385
1368
  activeTool: {
1386
1369
  lastActiveTool: import("../types").ActiveTool | null;
1387
1370
  locked: boolean;
1371
+ fromSelection: boolean;
1388
1372
  } & import("../types").ActiveTool;
1389
1373
  penMode: boolean;
1390
1374
  penDetected: boolean;
@@ -1394,18 +1378,18 @@ export declare const actionZoomToFitSelection: {
1394
1378
  exportScale: number;
1395
1379
  currentItemStrokeColor: string;
1396
1380
  currentItemBackgroundColor: string;
1397
- currentItemFillStyle: import("../element/types").FillStyle;
1381
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1398
1382
  currentItemStrokeWidth: number;
1399
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1383
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1400
1384
  currentItemRoughness: number;
1401
1385
  currentItemOpacity: number;
1402
1386
  currentItemFontFamily: number;
1403
1387
  currentItemFontSize: number;
1404
1388
  currentItemTextAlign: string;
1405
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1406
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1389
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1390
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1407
1391
  currentHoveredFontFamily: number | null;
1408
- currentItemRoundness: import("../element/types").StrokeRoundness;
1392
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1409
1393
  currentItemArrowType: "round" | "sharp" | "elbow";
1410
1394
  viewBackgroundColor: string;
1411
1395
  cursorButton: "up" | "down";
@@ -1414,7 +1398,7 @@ export declare const actionZoomToFitSelection: {
1414
1398
  isResizing: boolean;
1415
1399
  isRotating: boolean;
1416
1400
  openMenu: "canvas" | "shape" | null;
1417
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1401
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1418
1402
  openSidebar: {
1419
1403
  name: string;
1420
1404
  tab?: string | undefined;
@@ -1423,7 +1407,7 @@ export declare const actionZoomToFitSelection: {
1423
1407
  name: "imageExport" | "help" | "jsonExport";
1424
1408
  } | {
1425
1409
  name: "ttd";
1426
- tab: "text-to-diagram" | "mermaid";
1410
+ tab: "mermaid" | "text-to-diagram";
1427
1411
  } | {
1428
1412
  name: "commandPalette";
1429
1413
  } | {
@@ -1431,7 +1415,7 @@ export declare const actionZoomToFitSelection: {
1431
1415
  sourceElementId: string;
1432
1416
  } | null;
1433
1417
  defaultSidebarDockedPreference: boolean;
1434
- lastPointerDownWith: import("../element/types").PointerType;
1418
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1435
1419
  selectedElementIds: Readonly<{
1436
1420
  [id: string]: true;
1437
1421
  }>;
@@ -1449,7 +1433,7 @@ export declare const actionZoomToFitSelection: {
1449
1433
  duration?: number | undefined;
1450
1434
  } | null;
1451
1435
  zenModeEnabled: boolean;
1452
- theme: import("../element/types").Theme;
1436
+ theme: import("@excalidraw/element/types").Theme;
1453
1437
  gridSize: number;
1454
1438
  gridStep: number;
1455
1439
  gridModeEnabled: boolean;
@@ -1470,7 +1454,7 @@ export declare const actionZoomToFitSelection: {
1470
1454
  [id: string]: true;
1471
1455
  }> | undefined;
1472
1456
  username?: string | null | undefined;
1473
- userState?: import("../constants").UserIdleState | undefined;
1457
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1474
1458
  color?: {
1475
1459
  background: string;
1476
1460
  stroke: string;
@@ -1487,7 +1471,7 @@ export declare const actionZoomToFitSelection: {
1487
1471
  open: boolean;
1488
1472
  panels: number;
1489
1473
  };
1490
- currentChartType: import("../element/types").ChartType;
1474
+ currentChartType: import("@excalidraw/element/types").ChartType;
1491
1475
  pasteDialog: {
1492
1476
  shown: false;
1493
1477
  data: null;
@@ -1495,9 +1479,8 @@ export declare const actionZoomToFitSelection: {
1495
1479
  shown: true;
1496
1480
  data: import("../charts").Spreadsheet;
1497
1481
  };
1498
- pendingImageElementId: string | null;
1499
- showHyperlinkPopup: false | "info" | "editor";
1500
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1482
+ showHyperlinkPopup: false | "editor" | "info";
1483
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1501
1484
  snapLines: readonly import("../snapping").SnapLine[];
1502
1485
  originSnapOffset: {
1503
1486
  x: number;
@@ -1508,16 +1491,15 @@ export declare const actionZoomToFitSelection: {
1508
1491
  followedBy: Set<import("../types").SocketId>;
1509
1492
  isCropping: boolean;
1510
1493
  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
- }[];
1494
+ searchMatches: Readonly<{
1495
+ focusedId: string | null;
1496
+ matches: readonly import("../types").SearchMatch[];
1497
+ }> | null;
1498
+ activeLockedId: string | null;
1499
+ lockedMultiSelections: {
1500
+ [groupId: string]: true;
1501
+ };
1502
+ stylesPanelMode: "compact" | "full";
1521
1503
  };
1522
1504
  captureUpdate: "EVENTUALLY";
1523
1505
  };
@@ -1533,7 +1515,7 @@ export declare const actionZoomToFit: {
1533
1515
  trackEvent: {
1534
1516
  category: "canvas";
1535
1517
  };
1536
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1518
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1537
1519
  appState: {
1538
1520
  scrollX: number;
1539
1521
  scrollY: number;
@@ -1549,17 +1531,17 @@ export declare const actionZoomToFit: {
1549
1531
  isLoading: boolean;
1550
1532
  errorMessage: import("react").ReactNode;
1551
1533
  activeEmbeddable: {
1552
- element: import("../element/types").NonDeletedExcalidrawElement;
1553
- state: "hover" | "active";
1534
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1535
+ state: "active" | "hover";
1554
1536
  } | 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;
1537
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1538
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1539
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1540
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1559
1541
  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;
1542
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1543
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1544
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1563
1545
  frameRendering: {
1564
1546
  enabled: boolean;
1565
1547
  name: boolean;
@@ -1567,12 +1549,12 @@ export declare const actionZoomToFit: {
1567
1549
  clip: boolean;
1568
1550
  };
1569
1551
  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;
1552
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1553
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1573
1554
  activeTool: {
1574
1555
  lastActiveTool: import("../types").ActiveTool | null;
1575
1556
  locked: boolean;
1557
+ fromSelection: boolean;
1576
1558
  } & import("../types").ActiveTool;
1577
1559
  penMode: boolean;
1578
1560
  penDetected: boolean;
@@ -1582,18 +1564,18 @@ export declare const actionZoomToFit: {
1582
1564
  exportScale: number;
1583
1565
  currentItemStrokeColor: string;
1584
1566
  currentItemBackgroundColor: string;
1585
- currentItemFillStyle: import("../element/types").FillStyle;
1567
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1586
1568
  currentItemStrokeWidth: number;
1587
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1569
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1588
1570
  currentItemRoughness: number;
1589
1571
  currentItemOpacity: number;
1590
1572
  currentItemFontFamily: number;
1591
1573
  currentItemFontSize: number;
1592
1574
  currentItemTextAlign: string;
1593
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1594
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1575
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1576
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1595
1577
  currentHoveredFontFamily: number | null;
1596
- currentItemRoundness: import("../element/types").StrokeRoundness;
1578
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1597
1579
  currentItemArrowType: "round" | "sharp" | "elbow";
1598
1580
  viewBackgroundColor: string;
1599
1581
  cursorButton: "up" | "down";
@@ -1602,7 +1584,7 @@ export declare const actionZoomToFit: {
1602
1584
  isResizing: boolean;
1603
1585
  isRotating: boolean;
1604
1586
  openMenu: "canvas" | "shape" | null;
1605
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1587
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1606
1588
  openSidebar: {
1607
1589
  name: string;
1608
1590
  tab?: string | undefined;
@@ -1611,7 +1593,7 @@ export declare const actionZoomToFit: {
1611
1593
  name: "imageExport" | "help" | "jsonExport";
1612
1594
  } | {
1613
1595
  name: "ttd";
1614
- tab: "text-to-diagram" | "mermaid";
1596
+ tab: "mermaid" | "text-to-diagram";
1615
1597
  } | {
1616
1598
  name: "commandPalette";
1617
1599
  } | {
@@ -1619,7 +1601,7 @@ export declare const actionZoomToFit: {
1619
1601
  sourceElementId: string;
1620
1602
  } | null;
1621
1603
  defaultSidebarDockedPreference: boolean;
1622
- lastPointerDownWith: import("../element/types").PointerType;
1604
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1623
1605
  selectedElementIds: Readonly<{
1624
1606
  [id: string]: true;
1625
1607
  }>;
@@ -1637,7 +1619,7 @@ export declare const actionZoomToFit: {
1637
1619
  duration?: number | undefined;
1638
1620
  } | null;
1639
1621
  zenModeEnabled: boolean;
1640
- theme: import("../element/types").Theme;
1622
+ theme: import("@excalidraw/element/types").Theme;
1641
1623
  gridSize: number;
1642
1624
  gridStep: number;
1643
1625
  gridModeEnabled: boolean;
@@ -1658,7 +1640,7 @@ export declare const actionZoomToFit: {
1658
1640
  [id: string]: true;
1659
1641
  }> | undefined;
1660
1642
  username?: string | null | undefined;
1661
- userState?: import("../constants").UserIdleState | undefined;
1643
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1662
1644
  color?: {
1663
1645
  background: string;
1664
1646
  stroke: string;
@@ -1675,7 +1657,7 @@ export declare const actionZoomToFit: {
1675
1657
  open: boolean;
1676
1658
  panels: number;
1677
1659
  };
1678
- currentChartType: import("../element/types").ChartType;
1660
+ currentChartType: import("@excalidraw/element/types").ChartType;
1679
1661
  pasteDialog: {
1680
1662
  shown: false;
1681
1663
  data: null;
@@ -1683,9 +1665,8 @@ export declare const actionZoomToFit: {
1683
1665
  shown: true;
1684
1666
  data: import("../charts").Spreadsheet;
1685
1667
  };
1686
- pendingImageElementId: string | null;
1687
- showHyperlinkPopup: false | "info" | "editor";
1688
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1668
+ showHyperlinkPopup: false | "editor" | "info";
1669
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1689
1670
  snapLines: readonly import("../snapping").SnapLine[];
1690
1671
  originSnapOffset: {
1691
1672
  x: number;
@@ -1696,16 +1677,15 @@ export declare const actionZoomToFit: {
1696
1677
  followedBy: Set<import("../types").SocketId>;
1697
1678
  isCropping: boolean;
1698
1679
  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
- }[];
1680
+ searchMatches: Readonly<{
1681
+ focusedId: string | null;
1682
+ matches: readonly import("../types").SearchMatch[];
1683
+ }> | null;
1684
+ activeLockedId: string | null;
1685
+ lockedMultiSelections: {
1686
+ [groupId: string]: true;
1687
+ };
1688
+ stylesPanelMode: "compact" | "full";
1709
1689
  };
1710
1690
  captureUpdate: "EVENTUALLY";
1711
1691
  };
@@ -1722,7 +1702,7 @@ export declare const actionToggleTheme: {
1722
1702
  trackEvent: {
1723
1703
  category: "canvas";
1724
1704
  };
1725
- perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1705
+ perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1726
1706
  appState: {
1727
1707
  theme: any;
1728
1708
  contextMenu: {
@@ -1734,17 +1714,17 @@ export declare const actionToggleTheme: {
1734
1714
  isLoading: boolean;
1735
1715
  errorMessage: import("react").ReactNode;
1736
1716
  activeEmbeddable: {
1737
- element: import("../element/types").NonDeletedExcalidrawElement;
1738
- state: "hover" | "active";
1717
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1718
+ state: "active" | "hover";
1739
1719
  } | 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;
1720
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1721
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1722
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1723
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1744
1724
  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;
1725
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1726
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1727
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1748
1728
  frameRendering: {
1749
1729
  enabled: boolean;
1750
1730
  name: boolean;
@@ -1752,12 +1732,12 @@ export declare const actionToggleTheme: {
1752
1732
  clip: boolean;
1753
1733
  };
1754
1734
  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;
1735
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1736
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1758
1737
  activeTool: {
1759
1738
  lastActiveTool: import("../types").ActiveTool | null;
1760
1739
  locked: boolean;
1740
+ fromSelection: boolean;
1761
1741
  } & import("../types").ActiveTool;
1762
1742
  penMode: boolean;
1763
1743
  penDetected: boolean;
@@ -1767,18 +1747,18 @@ export declare const actionToggleTheme: {
1767
1747
  exportScale: number;
1768
1748
  currentItemStrokeColor: string;
1769
1749
  currentItemBackgroundColor: string;
1770
- currentItemFillStyle: import("../element/types").FillStyle;
1750
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1771
1751
  currentItemStrokeWidth: number;
1772
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1752
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1773
1753
  currentItemRoughness: number;
1774
1754
  currentItemOpacity: number;
1775
1755
  currentItemFontFamily: number;
1776
1756
  currentItemFontSize: number;
1777
1757
  currentItemTextAlign: string;
1778
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1779
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1758
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1759
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1780
1760
  currentHoveredFontFamily: number | null;
1781
- currentItemRoundness: import("../element/types").StrokeRoundness;
1761
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1782
1762
  currentItemArrowType: "round" | "sharp" | "elbow";
1783
1763
  viewBackgroundColor: string;
1784
1764
  scrollX: number;
@@ -1792,7 +1772,7 @@ export declare const actionToggleTheme: {
1792
1772
  value: import("../types").NormalizedZoomValue;
1793
1773
  }>;
1794
1774
  openMenu: "canvas" | "shape" | null;
1795
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1775
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1796
1776
  openSidebar: {
1797
1777
  name: string;
1798
1778
  tab?: string | undefined;
@@ -1801,7 +1781,7 @@ export declare const actionToggleTheme: {
1801
1781
  name: "imageExport" | "help" | "jsonExport";
1802
1782
  } | {
1803
1783
  name: "ttd";
1804
- tab: "text-to-diagram" | "mermaid";
1784
+ tab: "mermaid" | "text-to-diagram";
1805
1785
  } | {
1806
1786
  name: "commandPalette";
1807
1787
  } | {
@@ -1809,7 +1789,7 @@ export declare const actionToggleTheme: {
1809
1789
  sourceElementId: string;
1810
1790
  } | null;
1811
1791
  defaultSidebarDockedPreference: boolean;
1812
- lastPointerDownWith: import("../element/types").PointerType;
1792
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1813
1793
  selectedElementIds: Readonly<{
1814
1794
  [id: string]: true;
1815
1795
  }>;
@@ -1847,7 +1827,7 @@ export declare const actionToggleTheme: {
1847
1827
  [id: string]: true;
1848
1828
  }> | undefined;
1849
1829
  username?: string | null | undefined;
1850
- userState?: import("../constants").UserIdleState | undefined;
1830
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1851
1831
  color?: {
1852
1832
  background: string;
1853
1833
  stroke: string;
@@ -1864,7 +1844,7 @@ export declare const actionToggleTheme: {
1864
1844
  open: boolean;
1865
1845
  panels: number;
1866
1846
  };
1867
- currentChartType: import("../element/types").ChartType;
1847
+ currentChartType: import("@excalidraw/element/types").ChartType;
1868
1848
  pasteDialog: {
1869
1849
  shown: false;
1870
1850
  data: null;
@@ -1872,9 +1852,8 @@ export declare const actionToggleTheme: {
1872
1852
  shown: true;
1873
1853
  data: import("../charts").Spreadsheet;
1874
1854
  };
1875
- pendingImageElementId: string | null;
1876
- showHyperlinkPopup: false | "info" | "editor";
1877
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1855
+ showHyperlinkPopup: false | "editor" | "info";
1856
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1878
1857
  snapLines: readonly import("../snapping").SnapLine[];
1879
1858
  originSnapOffset: {
1880
1859
  x: number;
@@ -1885,16 +1864,15 @@ export declare const actionToggleTheme: {
1885
1864
  followedBy: Set<import("../types").SocketId>;
1886
1865
  isCropping: boolean;
1887
1866
  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
- }[];
1867
+ searchMatches: Readonly<{
1868
+ focusedId: string | null;
1869
+ matches: readonly import("../types").SearchMatch[];
1870
+ }> | null;
1871
+ activeLockedId: string | null;
1872
+ lockedMultiSelections: {
1873
+ [groupId: string]: true;
1874
+ };
1875
+ stylesPanelMode: "compact" | "full";
1898
1876
  };
1899
1877
  captureUpdate: "EVENTUALLY";
1900
1878
  };
@@ -1909,7 +1887,7 @@ export declare const actionToggleEraserTool: {
1909
1887
  trackEvent: {
1910
1888
  category: "toolbar";
1911
1889
  };
1912
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
1890
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1913
1891
  appState: {
1914
1892
  selectedElementIds: {};
1915
1893
  selectedGroupIds: {};
@@ -1917,6 +1895,7 @@ export declare const actionToggleEraserTool: {
1917
1895
  activeTool: {
1918
1896
  lastActiveTool: import("../types").ActiveTool | null;
1919
1897
  locked: boolean;
1898
+ fromSelection: boolean;
1920
1899
  } & import("../types").ActiveTool;
1921
1900
  contextMenu: {
1922
1901
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -1926,14 +1905,14 @@ export declare const actionToggleEraserTool: {
1926
1905
  showWelcomeScreen: boolean;
1927
1906
  isLoading: boolean;
1928
1907
  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;
1908
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1909
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1910
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1911
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1933
1912
  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;
1913
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1914
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1915
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1937
1916
  frameRendering: {
1938
1917
  enabled: boolean;
1939
1918
  name: boolean;
@@ -1941,9 +1920,8 @@ export declare const actionToggleEraserTool: {
1941
1920
  clip: boolean;
1942
1921
  };
1943
1922
  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;
1923
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1924
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1947
1925
  penMode: boolean;
1948
1926
  penDetected: boolean;
1949
1927
  exportBackground: boolean;
@@ -1952,18 +1930,18 @@ export declare const actionToggleEraserTool: {
1952
1930
  exportScale: number;
1953
1931
  currentItemStrokeColor: string;
1954
1932
  currentItemBackgroundColor: string;
1955
- currentItemFillStyle: import("../element/types").FillStyle;
1933
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1956
1934
  currentItemStrokeWidth: number;
1957
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1935
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1958
1936
  currentItemRoughness: number;
1959
1937
  currentItemOpacity: number;
1960
1938
  currentItemFontFamily: number;
1961
1939
  currentItemFontSize: number;
1962
1940
  currentItemTextAlign: string;
1963
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1964
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1941
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1942
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1965
1943
  currentHoveredFontFamily: number | null;
1966
- currentItemRoundness: import("../element/types").StrokeRoundness;
1944
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1967
1945
  currentItemArrowType: "round" | "sharp" | "elbow";
1968
1946
  viewBackgroundColor: string;
1969
1947
  scrollX: number;
@@ -1977,7 +1955,7 @@ export declare const actionToggleEraserTool: {
1977
1955
  value: import("../types").NormalizedZoomValue;
1978
1956
  }>;
1979
1957
  openMenu: "canvas" | "shape" | null;
1980
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1958
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1981
1959
  openSidebar: {
1982
1960
  name: string;
1983
1961
  tab?: string | undefined;
@@ -1986,7 +1964,7 @@ export declare const actionToggleEraserTool: {
1986
1964
  name: "imageExport" | "help" | "jsonExport";
1987
1965
  } | {
1988
1966
  name: "ttd";
1989
- tab: "text-to-diagram" | "mermaid";
1967
+ tab: "mermaid" | "text-to-diagram";
1990
1968
  } | {
1991
1969
  name: "commandPalette";
1992
1970
  } | {
@@ -1994,7 +1972,7 @@ export declare const actionToggleEraserTool: {
1994
1972
  sourceElementId: string;
1995
1973
  } | null;
1996
1974
  defaultSidebarDockedPreference: boolean;
1997
- lastPointerDownWith: import("../element/types").PointerType;
1975
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1998
1976
  hoveredElementIds: Readonly<{
1999
1977
  [id: string]: true;
2000
1978
  }>;
@@ -2009,7 +1987,7 @@ export declare const actionToggleEraserTool: {
2009
1987
  duration?: number | undefined;
2010
1988
  } | null;
2011
1989
  zenModeEnabled: boolean;
2012
- theme: import("../element/types").Theme;
1990
+ theme: import("@excalidraw/element/types").Theme;
2013
1991
  gridSize: number;
2014
1992
  gridStep: number;
2015
1993
  gridModeEnabled: boolean;
@@ -2027,7 +2005,7 @@ export declare const actionToggleEraserTool: {
2027
2005
  [id: string]: true;
2028
2006
  }> | undefined;
2029
2007
  username?: string | null | undefined;
2030
- userState?: import("../constants").UserIdleState | undefined;
2008
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2031
2009
  color?: {
2032
2010
  background: string;
2033
2011
  stroke: string;
@@ -2044,7 +2022,7 @@ export declare const actionToggleEraserTool: {
2044
2022
  open: boolean;
2045
2023
  panels: number;
2046
2024
  };
2047
- currentChartType: import("../element/types").ChartType;
2025
+ currentChartType: import("@excalidraw/element/types").ChartType;
2048
2026
  pasteDialog: {
2049
2027
  shown: false;
2050
2028
  data: null;
@@ -2052,9 +2030,8 @@ export declare const actionToggleEraserTool: {
2052
2030
  shown: true;
2053
2031
  data: import("../charts").Spreadsheet;
2054
2032
  };
2055
- pendingImageElementId: string | null;
2056
- showHyperlinkPopup: false | "info" | "editor";
2057
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2033
+ showHyperlinkPopup: false | "editor" | "info";
2034
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2058
2035
  snapLines: readonly import("../snapping").SnapLine[];
2059
2036
  originSnapOffset: {
2060
2037
  x: number;
@@ -2065,16 +2042,15 @@ export declare const actionToggleEraserTool: {
2065
2042
  followedBy: Set<import("../types").SocketId>;
2066
2043
  isCropping: boolean;
2067
2044
  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
- }[];
2045
+ searchMatches: Readonly<{
2046
+ focusedId: string | null;
2047
+ matches: readonly import("../types").SearchMatch[];
2048
+ }> | null;
2049
+ activeLockedId: string | null;
2050
+ lockedMultiSelections: {
2051
+ [groupId: string]: true;
2052
+ };
2053
+ stylesPanelMode: "compact" | "full";
2078
2054
  };
2079
2055
  captureUpdate: "IMMEDIATELY";
2080
2056
  };
@@ -2082,16 +2058,193 @@ export declare const actionToggleEraserTool: {
2082
2058
  } & {
2083
2059
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2084
2060
  };
2061
+ export declare const actionToggleLassoTool: {
2062
+ name: "toggleLassoTool";
2063
+ label: string;
2064
+ icon: import("react/jsx-runtime").JSX.Element;
2065
+ trackEvent: {
2066
+ category: "toolbar";
2067
+ };
2068
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
2069
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2070
+ appState: {
2071
+ selectedElementIds: {};
2072
+ selectedGroupIds: {};
2073
+ activeEmbeddable: null;
2074
+ activeTool: {
2075
+ lastActiveTool: import("../types").ActiveTool | null;
2076
+ locked: boolean;
2077
+ fromSelection: boolean;
2078
+ } & import("../types").ActiveTool;
2079
+ contextMenu: {
2080
+ items: import("../components/ContextMenu").ContextMenuItems;
2081
+ top: number;
2082
+ left: number;
2083
+ } | null;
2084
+ showWelcomeScreen: boolean;
2085
+ isLoading: boolean;
2086
+ errorMessage: import("react").ReactNode;
2087
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2088
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2089
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2090
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2091
+ isBindingEnabled: boolean;
2092
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2093
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2094
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2095
+ frameRendering: {
2096
+ enabled: boolean;
2097
+ name: boolean;
2098
+ outline: boolean;
2099
+ clip: boolean;
2100
+ };
2101
+ editingFrame: string | null;
2102
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2103
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2104
+ penMode: boolean;
2105
+ penDetected: boolean;
2106
+ exportBackground: boolean;
2107
+ exportEmbedScene: boolean;
2108
+ exportWithDarkMode: boolean;
2109
+ exportScale: number;
2110
+ currentItemStrokeColor: string;
2111
+ currentItemBackgroundColor: string;
2112
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2113
+ currentItemStrokeWidth: number;
2114
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2115
+ currentItemRoughness: number;
2116
+ currentItemOpacity: number;
2117
+ currentItemFontFamily: number;
2118
+ currentItemFontSize: number;
2119
+ currentItemTextAlign: string;
2120
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2121
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2122
+ currentHoveredFontFamily: number | null;
2123
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2124
+ currentItemArrowType: "round" | "sharp" | "elbow";
2125
+ viewBackgroundColor: string;
2126
+ scrollX: number;
2127
+ scrollY: number;
2128
+ cursorButton: "up" | "down";
2129
+ scrolledOutside: boolean;
2130
+ name: string | null;
2131
+ isResizing: boolean;
2132
+ isRotating: boolean;
2133
+ zoom: Readonly<{
2134
+ value: import("../types").NormalizedZoomValue;
2135
+ }>;
2136
+ openMenu: "canvas" | "shape" | null;
2137
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2138
+ openSidebar: {
2139
+ name: string;
2140
+ tab?: string | undefined;
2141
+ } | null;
2142
+ openDialog: {
2143
+ name: "imageExport" | "help" | "jsonExport";
2144
+ } | {
2145
+ name: "ttd";
2146
+ tab: "mermaid" | "text-to-diagram";
2147
+ } | {
2148
+ name: "commandPalette";
2149
+ } | {
2150
+ name: "elementLinkSelector";
2151
+ sourceElementId: string;
2152
+ } | null;
2153
+ defaultSidebarDockedPreference: boolean;
2154
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2155
+ hoveredElementIds: Readonly<{
2156
+ [id: string]: true;
2157
+ }>;
2158
+ previousSelectedElementIds: {
2159
+ [id: string]: true;
2160
+ };
2161
+ selectedElementsAreBeingDragged: boolean;
2162
+ shouldCacheIgnoreZoom: boolean;
2163
+ toast: {
2164
+ message: string;
2165
+ closable?: boolean | undefined;
2166
+ duration?: number | undefined;
2167
+ } | null;
2168
+ zenModeEnabled: boolean;
2169
+ theme: import("@excalidraw/element/types").Theme;
2170
+ gridSize: number;
2171
+ gridStep: number;
2172
+ gridModeEnabled: boolean;
2173
+ viewModeEnabled: boolean;
2174
+ editingGroupId: string | null;
2175
+ width: number;
2176
+ height: number;
2177
+ offsetTop: number;
2178
+ offsetLeft: number;
2179
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
2180
+ collaborators: Map<import("../types").SocketId, Readonly<{
2181
+ pointer?: import("../types").CollaboratorPointer | undefined;
2182
+ button?: "up" | "down" | undefined;
2183
+ selectedElementIds?: Readonly<{
2184
+ [id: string]: true;
2185
+ }> | undefined;
2186
+ username?: string | null | undefined;
2187
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2188
+ color?: {
2189
+ background: string;
2190
+ stroke: string;
2191
+ } | undefined;
2192
+ avatarUrl?: string | undefined;
2193
+ id?: string | undefined;
2194
+ socketId?: import("../types").SocketId | undefined;
2195
+ isCurrentUser?: boolean | undefined;
2196
+ isInCall?: boolean | undefined;
2197
+ isSpeaking?: boolean | undefined;
2198
+ isMuted?: boolean | undefined;
2199
+ }>>;
2200
+ stats: {
2201
+ open: boolean;
2202
+ panels: number;
2203
+ };
2204
+ currentChartType: import("@excalidraw/element/types").ChartType;
2205
+ pasteDialog: {
2206
+ shown: false;
2207
+ data: null;
2208
+ } | {
2209
+ shown: true;
2210
+ data: import("../charts").Spreadsheet;
2211
+ };
2212
+ showHyperlinkPopup: false | "editor" | "info";
2213
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2214
+ snapLines: readonly import("../snapping").SnapLine[];
2215
+ originSnapOffset: {
2216
+ x: number;
2217
+ y: number;
2218
+ } | null;
2219
+ objectsSnapModeEnabled: boolean;
2220
+ userToFollow: import("../types").UserToFollow | null;
2221
+ followedBy: Set<import("../types").SocketId>;
2222
+ isCropping: boolean;
2223
+ croppingElementId: string | null;
2224
+ searchMatches: Readonly<{
2225
+ focusedId: string | null;
2226
+ matches: readonly import("../types").SearchMatch[];
2227
+ }> | null;
2228
+ activeLockedId: string | null;
2229
+ lockedMultiSelections: {
2230
+ [groupId: string]: true;
2231
+ };
2232
+ stylesPanelMode: "compact" | "full";
2233
+ };
2234
+ captureUpdate: "NEVER";
2235
+ };
2236
+ } & {
2237
+ keyTest?: undefined;
2238
+ };
2085
2239
  export declare const actionToggleHandTool: {
2086
2240
  name: "toggleHandTool";
2087
2241
  label: string;
2088
- paletteName: string;
2089
2242
  trackEvent: {
2090
2243
  category: "toolbar";
2091
2244
  };
2092
2245
  icon: import("react/jsx-runtime").JSX.Element;
2093
2246
  viewMode: false;
2094
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2247
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2095
2248
  appState: {
2096
2249
  selectedElementIds: {};
2097
2250
  selectedGroupIds: {};
@@ -2099,6 +2252,7 @@ export declare const actionToggleHandTool: {
2099
2252
  activeTool: {
2100
2253
  lastActiveTool: import("../types").ActiveTool | null;
2101
2254
  locked: boolean;
2255
+ fromSelection: boolean;
2102
2256
  } & import("../types").ActiveTool;
2103
2257
  contextMenu: {
2104
2258
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -2108,14 +2262,14 @@ export declare const actionToggleHandTool: {
2108
2262
  showWelcomeScreen: boolean;
2109
2263
  isLoading: boolean;
2110
2264
  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;
2265
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2266
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2267
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2268
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2115
2269
  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;
2270
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2271
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2272
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2119
2273
  frameRendering: {
2120
2274
  enabled: boolean;
2121
2275
  name: boolean;
@@ -2123,9 +2277,8 @@ export declare const actionToggleHandTool: {
2123
2277
  clip: boolean;
2124
2278
  };
2125
2279
  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;
2280
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2281
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2129
2282
  penMode: boolean;
2130
2283
  penDetected: boolean;
2131
2284
  exportBackground: boolean;
@@ -2134,18 +2287,18 @@ export declare const actionToggleHandTool: {
2134
2287
  exportScale: number;
2135
2288
  currentItemStrokeColor: string;
2136
2289
  currentItemBackgroundColor: string;
2137
- currentItemFillStyle: import("../element/types").FillStyle;
2290
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2138
2291
  currentItemStrokeWidth: number;
2139
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2292
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2140
2293
  currentItemRoughness: number;
2141
2294
  currentItemOpacity: number;
2142
2295
  currentItemFontFamily: number;
2143
2296
  currentItemFontSize: number;
2144
2297
  currentItemTextAlign: string;
2145
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
2146
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2298
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2299
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2147
2300
  currentHoveredFontFamily: number | null;
2148
- currentItemRoundness: import("../element/types").StrokeRoundness;
2301
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2149
2302
  currentItemArrowType: "round" | "sharp" | "elbow";
2150
2303
  viewBackgroundColor: string;
2151
2304
  scrollX: number;
@@ -2159,7 +2312,7 @@ export declare const actionToggleHandTool: {
2159
2312
  value: import("../types").NormalizedZoomValue;
2160
2313
  }>;
2161
2314
  openMenu: "canvas" | "shape" | null;
2162
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2315
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2163
2316
  openSidebar: {
2164
2317
  name: string;
2165
2318
  tab?: string | undefined;
@@ -2168,7 +2321,7 @@ export declare const actionToggleHandTool: {
2168
2321
  name: "imageExport" | "help" | "jsonExport";
2169
2322
  } | {
2170
2323
  name: "ttd";
2171
- tab: "text-to-diagram" | "mermaid";
2324
+ tab: "mermaid" | "text-to-diagram";
2172
2325
  } | {
2173
2326
  name: "commandPalette";
2174
2327
  } | {
@@ -2176,7 +2329,7 @@ export declare const actionToggleHandTool: {
2176
2329
  sourceElementId: string;
2177
2330
  } | null;
2178
2331
  defaultSidebarDockedPreference: boolean;
2179
- lastPointerDownWith: import("../element/types").PointerType;
2332
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2180
2333
  hoveredElementIds: Readonly<{
2181
2334
  [id: string]: true;
2182
2335
  }>;
@@ -2191,7 +2344,7 @@ export declare const actionToggleHandTool: {
2191
2344
  duration?: number | undefined;
2192
2345
  } | null;
2193
2346
  zenModeEnabled: boolean;
2194
- theme: import("../element/types").Theme;
2347
+ theme: import("@excalidraw/element/types").Theme;
2195
2348
  gridSize: number;
2196
2349
  gridStep: number;
2197
2350
  gridModeEnabled: boolean;
@@ -2209,7 +2362,7 @@ export declare const actionToggleHandTool: {
2209
2362
  [id: string]: true;
2210
2363
  }> | undefined;
2211
2364
  username?: string | null | undefined;
2212
- userState?: import("../constants").UserIdleState | undefined;
2365
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2213
2366
  color?: {
2214
2367
  background: string;
2215
2368
  stroke: string;
@@ -2226,7 +2379,7 @@ export declare const actionToggleHandTool: {
2226
2379
  open: boolean;
2227
2380
  panels: number;
2228
2381
  };
2229
- currentChartType: import("../element/types").ChartType;
2382
+ currentChartType: import("@excalidraw/element/types").ChartType;
2230
2383
  pasteDialog: {
2231
2384
  shown: false;
2232
2385
  data: null;
@@ -2234,9 +2387,8 @@ export declare const actionToggleHandTool: {
2234
2387
  shown: true;
2235
2388
  data: import("../charts").Spreadsheet;
2236
2389
  };
2237
- pendingImageElementId: string | null;
2238
- showHyperlinkPopup: false | "info" | "editor";
2239
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2390
+ showHyperlinkPopup: false | "editor" | "info";
2391
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2240
2392
  snapLines: readonly import("../snapping").SnapLine[];
2241
2393
  originSnapOffset: {
2242
2394
  x: number;
@@ -2247,16 +2399,15 @@ export declare const actionToggleHandTool: {
2247
2399
  followedBy: Set<import("../types").SocketId>;
2248
2400
  isCropping: boolean;
2249
2401
  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
- }[];
2402
+ searchMatches: Readonly<{
2403
+ focusedId: string | null;
2404
+ matches: readonly import("../types").SearchMatch[];
2405
+ }> | null;
2406
+ activeLockedId: string | null;
2407
+ lockedMultiSelections: {
2408
+ [groupId: string]: true;
2409
+ };
2410
+ stylesPanelMode: "compact" | "full";
2260
2411
  };
2261
2412
  captureUpdate: "IMMEDIATELY";
2262
2413
  };