@excalidraw/math 0.18.0-51ad895 → 0.18.0-51ca8ab

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 (277) hide show
  1. package/dist/dev/index.js +44 -10
  2. package/dist/dev/index.js.map +2 -2
  3. package/dist/prod/index.js +1 -1
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/bounds.d.ts +10 -0
  7. package/dist/types/common/src/colors.d.ts +59 -39
  8. package/dist/types/common/src/constants.d.ts +26 -18
  9. package/dist/types/common/src/editorInterface.d.ts +1 -1
  10. package/dist/types/common/src/font-metadata.d.ts +1 -3
  11. package/dist/types/common/src/index.d.ts +4 -1
  12. package/dist/types/common/src/keys.d.ts +1 -1
  13. package/dist/types/common/src/utility-types.d.ts +0 -1
  14. package/dist/types/common/src/utils.d.ts +40 -76
  15. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  16. package/dist/types/element/src/Scene.d.ts +10 -6
  17. package/dist/types/element/src/arrowheads.d.ts +3 -0
  18. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  19. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  20. package/dist/types/element/src/binding.d.ts +19 -12
  21. package/dist/types/element/src/bounds.d.ts +24 -17
  22. package/dist/types/element/src/collision.d.ts +4 -3
  23. package/dist/types/element/src/comparisons.d.ts +8 -7
  24. package/dist/types/element/src/distribute.d.ts +2 -1
  25. package/dist/types/element/src/dragElements.d.ts +3 -3
  26. package/dist/types/element/src/duplicate.d.ts +4 -3
  27. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  28. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  29. package/dist/types/element/src/frame.d.ts +12 -7
  30. package/dist/types/element/src/heading.d.ts +2 -1
  31. package/dist/types/element/src/image.d.ts +1 -11
  32. package/dist/types/element/src/index.d.ts +4 -0
  33. package/dist/types/element/src/linearElementEditor.d.ts +8 -4
  34. package/dist/types/element/src/mutateElement.d.ts +5 -1
  35. package/dist/types/element/src/newElement.d.ts +7 -6
  36. package/dist/types/element/src/renderElement.d.ts +0 -6
  37. package/dist/types/element/src/resizeElements.d.ts +10 -10
  38. package/dist/types/element/src/resizeTest.d.ts +1 -1
  39. package/dist/types/element/src/selection.d.ts +10 -10
  40. package/dist/types/element/src/shape.d.ts +9 -8
  41. package/dist/types/element/src/textElement.d.ts +1 -1
  42. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  43. package/dist/types/element/src/textWrapping.d.ts +26 -0
  44. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  45. package/dist/types/element/src/transformHandles.d.ts +3 -23
  46. package/dist/types/element/src/typeChecks.d.ts +3 -4
  47. package/dist/types/element/src/types.d.ts +11 -2
  48. package/dist/types/element/src/utils.d.ts +9 -5
  49. package/dist/types/element/src/zindex.d.ts +1 -1
  50. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +152 -207
  51. package/dist/types/excalidraw/actions/actionAlign.d.ts +0 -1
  52. package/dist/types/excalidraw/actions/actionBoundText.d.ts +79 -116
  53. package/dist/types/excalidraw/actions/actionCanvas.d.ts +413 -977
  54. package/dist/types/excalidraw/actions/actionClipboard.d.ts +111 -148
  55. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +38 -57
  56. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +121 -178
  57. package/dist/types/excalidraw/actions/actionDeselect.d.ts +161 -0
  58. package/dist/types/excalidraw/actions/actionDistribute.d.ts +0 -1
  59. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  60. package/dist/types/excalidraw/actions/actionElementLink.d.ts +50 -73
  61. package/dist/types/excalidraw/actions/actionElementLock.d.ts +79 -116
  62. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +54 -73
  63. package/dist/types/excalidraw/actions/actionExport.d.ts +116 -469
  64. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -2
  65. package/dist/types/excalidraw/actions/actionFlip.d.ts +0 -1
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +236 -344
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +83 -128
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +122 -174
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +56 -75
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +44 -67
  71. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -17
  72. package/dist/types/excalidraw/actions/actionProperties.d.ts +104 -132
  73. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +41 -64
  74. package/dist/types/excalidraw/actions/actionStyles.d.ts +37 -55
  75. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +4 -4
  76. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +174 -0
  77. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +54 -73
  78. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +174 -0
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +54 -73
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +44 -67
  81. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +53 -72
  82. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +54 -73
  83. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +54 -73
  84. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  85. package/dist/types/excalidraw/actions/index.d.ts +4 -1
  86. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  87. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  88. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  89. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  90. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  91. package/dist/types/excalidraw/appState.d.ts +23 -19
  92. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  93. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  94. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  95. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  96. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  97. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  98. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  99. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  100. package/dist/types/excalidraw/clipboard.d.ts +13 -38
  101. package/dist/types/excalidraw/components/Actions.d.ts +1 -1
  102. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  103. package/dist/types/excalidraw/components/App.d.ts +135 -79
  104. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  105. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  106. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  107. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  108. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -2
  109. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  110. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  111. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
  112. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +3 -3
  113. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  114. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  115. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  116. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  117. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  118. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -2
  119. package/dist/types/excalidraw/components/FilledButton.d.ts +1 -0
  120. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  121. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  122. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  123. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  124. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  125. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  126. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  127. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  128. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  129. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  130. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
  131. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  132. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  133. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  134. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  135. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  136. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  137. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  138. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  139. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  140. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  141. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  142. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +16 -22
  143. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  144. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  145. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  146. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  147. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  148. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  149. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  150. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  151. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  152. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  153. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  154. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  155. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  156. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  157. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  158. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  159. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  160. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  161. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  162. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  163. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  164. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  165. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  166. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  167. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  168. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  169. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  170. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  171. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  172. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  173. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  174. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  175. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  176. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  177. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  178. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  179. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  180. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  181. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  182. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  183. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  184. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  185. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -1
  186. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -0
  187. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  188. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +48 -38
  189. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
  190. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  191. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  192. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  193. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  194. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  195. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  196. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  197. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  198. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  200. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  201. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  202. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  203. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  204. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  205. package/dist/types/excalidraw/components/icons.d.ts +41 -21
  206. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +24 -3
  207. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -32
  208. package/dist/types/excalidraw/components/shapes.d.ts +81 -1
  209. package/dist/types/excalidraw/data/blob.d.ts +330 -7
  210. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  211. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  212. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  213. package/dist/types/excalidraw/data/index.d.ts +4 -5
  214. package/dist/types/excalidraw/data/json.d.ts +172 -4
  215. package/dist/types/excalidraw/data/library.d.ts +25 -10
  216. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  217. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  218. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  219. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  220. package/dist/types/excalidraw/errors.d.ts +14 -0
  221. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  222. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +1 -2
  223. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  224. package/dist/types/excalidraw/i18n.d.ts +2 -2
  225. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  226. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  227. package/dist/types/excalidraw/renderer/animation.d.ts +5 -1
  228. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -4
  229. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -6
  230. package/dist/types/excalidraw/scene/Renderer.d.ts +428 -18
  231. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  232. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  233. package/dist/types/excalidraw/scene/types.d.ts +7 -2
  234. package/dist/types/excalidraw/snapping.d.ts +5 -5
  235. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  236. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  237. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  238. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  239. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  240. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  241. package/dist/types/excalidraw/types.d.ts +264 -25
  242. package/dist/types/excalidraw/viewport.d.ts +316 -0
  243. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +7 -3
  244. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  245. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  246. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  247. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  248. package/dist/types/laser-pointer/src/state.d.ts +35 -0
  249. package/dist/types/math/src/constants.d.ts +0 -1
  250. package/dist/types/math/src/curve.d.ts +4 -1
  251. package/dist/types/math/src/point.d.ts +8 -2
  252. package/dist/types/math/src/polygon.d.ts +2 -2
  253. package/dist/types/math/src/range.d.ts +1 -3
  254. package/dist/types/math/src/segment.d.ts +3 -3
  255. package/dist/types/math/src/types.d.ts +25 -1
  256. package/dist/types/utils/src/export.d.ts +5 -5
  257. package/dist/types/utils/src/index.d.ts +1 -2
  258. package/dist/types/utils/src/shape.d.ts +6 -6
  259. package/package.json +2 -2
  260. package/dist/types/common/src/visualdebug.d.ts +0 -41
  261. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  262. package/dist/types/excalidraw/charts.d.ts +0 -27
  263. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  264. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  265. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  266. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  267. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  268. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -22
  269. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  270. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  271. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  272. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  273. package/dist/types/excalidraw/index.d.ts +0 -46
  274. package/dist/types/excalidraw/polyfill.d.ts +0 -2
  275. package/dist/types/excalidraw/scene/scroll.d.ts +0 -23
  276. package/dist/types/utils/src/bbox.d.ts +0 -9
  277. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,9 +1,6 @@
1
- /// <reference types="react" />
2
- import { type SceneBounds } from "@excalidraw/element";
3
- import type { ExcalidrawElement } from "@excalidraw/element/types";
4
- import type { AppState, Offsets } from "../types";
1
+ import type { AppState } from "../types";
5
2
  export declare const actionChangeViewBackgroundColor: import("./types").Action<Partial<AppState>> & {
6
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
3
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
7
4
  };
8
5
  export declare const actionClearCanvas: {
9
6
  name: "clearCanvas";
@@ -12,7 +9,7 @@ export declare const actionClearCanvas: {
12
9
  trackEvent: {
13
10
  category: "canvas";
14
11
  };
15
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
12
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
16
13
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
17
14
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
18
15
  appState: {
@@ -29,13 +26,6 @@ export declare const actionClearCanvas: {
29
26
  open: boolean;
30
27
  panels: number;
31
28
  };
32
- pasteDialog: {
33
- shown: false;
34
- data: null;
35
- } | {
36
- shown: true;
37
- data: import("../charts").Spreadsheet;
38
- };
39
29
  activeTool: {
40
30
  lastActiveTool: import("../types").ActiveTool | null;
41
31
  locked: boolean;
@@ -49,33 +39,35 @@ export declare const actionClearCanvas: {
49
39
  clip: boolean;
50
40
  };
51
41
  name: string | null;
52
- zoom: Readonly<{
53
- value: import("../types").NormalizedZoomValue;
54
- }>;
42
+ zoom: import("../types").Zoom;
55
43
  scrollX: number;
56
44
  scrollY: number;
57
45
  viewModeEnabled: boolean;
58
- openDialog: {
46
+ openDialog: null | {
59
47
  name: "imageExport" | "help" | "jsonExport";
60
48
  } | {
61
49
  name: "ttd";
62
- tab: "mermaid" | "text-to-diagram";
50
+ tab: "text-to-diagram" | "mermaid";
63
51
  } | {
64
52
  name: "commandPalette";
65
53
  } | {
66
54
  name: "settings";
67
55
  } | {
68
56
  name: "elementLinkSelector";
69
- sourceElementId: string;
70
- } | null;
71
- editingGroupId: string | null;
57
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
58
+ } | {
59
+ name: "charts";
60
+ data: import("../charts").Spreadsheet;
61
+ rawText: string;
62
+ };
63
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
72
64
  selectedElementIds: Readonly<{
73
65
  [id: string]: true;
74
66
  }>;
75
67
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
76
68
  activeEmbeddable: {
77
69
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
78
- state: "active" | "hover";
70
+ state: "hover" | "active";
79
71
  } | null;
80
72
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
81
73
  selectedGroupIds: {
@@ -85,36 +77,21 @@ export declare const actionClearCanvas: {
85
77
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
86
78
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
87
79
  isBindingEnabled: boolean;
88
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
80
+ isMidpointSnappingEnabled: boolean;
81
+ suggestedBinding: {
82
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
83
+ midPoint?: import("@excalidraw/math").GlobalPoint;
84
+ } | null;
89
85
  isRotating: boolean;
90
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
91
- collaborators: Map<import("../types").SocketId, Readonly<{
92
- pointer?: import("../types").CollaboratorPointer | undefined;
93
- button?: "up" | "down" | undefined;
94
- selectedElementIds?: Readonly<{
95
- [id: string]: true;
96
- }> | undefined;
97
- username?: string | null | undefined;
98
- userState?: import("@excalidraw/common").UserIdleState | undefined;
99
- color?: {
100
- background: string;
101
- stroke: string;
102
- } | undefined;
103
- avatarUrl?: string | undefined;
104
- id?: string | undefined;
105
- socketId?: import("../types").SocketId | undefined;
106
- isCurrentUser?: boolean | undefined;
107
- isInCall?: boolean | undefined;
108
- isSpeaking?: boolean | undefined;
109
- isMuted?: boolean | undefined;
110
- }>>;
86
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
87
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
111
88
  snapLines: readonly import("../snapping").SnapLine[];
112
89
  zenModeEnabled: boolean;
113
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
90
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
114
91
  isCropping: boolean;
115
- croppingElementId: string | null;
92
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
116
93
  searchMatches: Readonly<{
117
- focusedId: string | null;
94
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
118
95
  matches: readonly import("../types").SearchMatch[];
119
96
  }> | null;
120
97
  activeLockedId: string | null;
@@ -123,6 +100,7 @@ export declare const actionClearCanvas: {
123
100
  }>;
124
101
  shouldCacheIgnoreZoom: boolean;
125
102
  exportScale: number;
103
+ currentItemArrowType: "sharp" | "round" | "elbow";
126
104
  bindMode: import("@excalidraw/element/types").BindMode;
127
105
  contextMenu: {
128
106
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -131,9 +109,10 @@ export declare const actionClearCanvas: {
131
109
  } | null;
132
110
  showWelcomeScreen: boolean;
133
111
  isLoading: boolean;
134
- errorMessage: import("react").ReactNode;
112
+ errorMessage: React.ReactNode;
135
113
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
136
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
114
+ boxSelectionMode: import("../types").BoxSelectionMode;
115
+ bindingPreference: "enabled" | "disabled";
137
116
  editingFrame: string | null;
138
117
  preferredSelectionTool: {
139
118
  type: "selection" | "lasso";
@@ -142,27 +121,28 @@ export declare const actionClearCanvas: {
142
121
  exportWithDarkMode: boolean;
143
122
  currentItemStrokeColor: string;
144
123
  currentItemBackgroundColor: string;
145
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
146
- currentItemStrokeWidth: number;
147
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
124
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
125
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
126
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
148
127
  currentItemRoughness: number;
128
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
149
129
  currentItemOpacity: number;
150
- currentItemFontFamily: number;
130
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
151
131
  currentItemFontSize: number;
152
- currentItemTextAlign: string;
132
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
153
133
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
154
134
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
155
- currentHoveredFontFamily: number | null;
135
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
156
136
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
157
- currentItemArrowType: "round" | "sharp" | "elbow";
137
+ scrollConstraints: import("../types").ScrollConstraints | null;
158
138
  cursorButton: "up" | "down";
159
139
  scrolledOutside: boolean;
160
140
  isResizing: boolean;
161
141
  openMenu: "canvas" | null;
162
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
142
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
163
143
  openSidebar: {
164
- name: string;
165
- tab?: string | undefined;
144
+ name: import("../types").SidebarName;
145
+ tab?: import("../types").SidebarTabName;
166
146
  } | null;
167
147
  defaultSidebarDockedPreference: boolean;
168
148
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -171,12 +151,11 @@ export declare const actionClearCanvas: {
171
151
  };
172
152
  selectedElementsAreBeingDragged: boolean;
173
153
  toast: {
174
- message: string;
175
- closable?: boolean | undefined;
176
- duration?: number | undefined;
154
+ message: React.ReactNode;
155
+ closable?: boolean;
156
+ duration?: number;
177
157
  } | null;
178
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
179
- currentChartType: import("@excalidraw/element/types").ChartType;
158
+ fileHandle: FileSystemFileHandle | null;
180
159
  showHyperlinkPopup: false | "info" | "editor";
181
160
  originSnapOffset: {
182
161
  x: number;
@@ -204,12 +183,10 @@ export declare const actionZoomIn: {
204
183
  };
205
184
  perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
206
185
  appState: {
207
- userToFollow: null;
186
+ zoom: import("../types").Zoom;
208
187
  scrollX: number;
209
188
  scrollY: number;
210
- zoom: {
211
- value: import("../types").NormalizedZoomValue;
212
- };
189
+ userToFollow: null;
213
190
  contextMenu: {
214
191
  items: import("../components/ContextMenu").ContextMenuItems;
215
192
  top: number;
@@ -217,18 +194,23 @@ export declare const actionZoomIn: {
217
194
  } | null;
218
195
  showWelcomeScreen: boolean;
219
196
  isLoading: boolean;
220
- errorMessage: import("react").ReactNode;
197
+ errorMessage: React.ReactNode;
221
198
  activeEmbeddable: {
222
199
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
223
- state: "active" | "hover";
200
+ state: "hover" | "active";
224
201
  } | null;
225
202
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
226
203
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
227
204
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
228
205
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
229
206
  isBindingEnabled: boolean;
230
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
231
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
207
+ boxSelectionMode: import("../types").BoxSelectionMode;
208
+ bindingPreference: "enabled" | "disabled";
209
+ isMidpointSnappingEnabled: boolean;
210
+ suggestedBinding: {
211
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
212
+ midPoint?: import("@excalidraw/math").GlobalPoint;
213
+ } | null;
232
214
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
233
215
  frameRendering: {
234
216
  enabled: boolean;
@@ -237,8 +219,8 @@ export declare const actionZoomIn: {
237
219
  clip: boolean;
238
220
  };
239
221
  editingFrame: string | null;
240
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
241
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
222
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
223
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
242
224
  activeTool: {
243
225
  lastActiveTool: import("../types").ActiveTool | null;
244
226
  locked: boolean;
@@ -256,44 +238,50 @@ export declare const actionZoomIn: {
256
238
  exportScale: number;
257
239
  currentItemStrokeColor: string;
258
240
  currentItemBackgroundColor: string;
259
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
260
- currentItemStrokeWidth: number;
261
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
241
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
242
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
243
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
262
244
  currentItemRoughness: number;
245
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
263
246
  currentItemOpacity: number;
264
- currentItemFontFamily: number;
247
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
265
248
  currentItemFontSize: number;
266
- currentItemTextAlign: string;
249
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
267
250
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
268
251
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
269
- currentHoveredFontFamily: number | null;
252
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
270
253
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
271
- currentItemArrowType: "round" | "sharp" | "elbow";
254
+ currentItemArrowType: "sharp" | "round" | "elbow";
272
255
  viewBackgroundColor: string;
256
+ scrollConstraints: import("../types").ScrollConstraints | null;
273
257
  cursorButton: "up" | "down";
274
258
  scrolledOutside: boolean;
275
259
  name: string | null;
276
260
  isResizing: boolean;
277
261
  isRotating: boolean;
278
262
  openMenu: "canvas" | null;
279
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
263
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
280
264
  openSidebar: {
281
- name: string;
282
- tab?: string | undefined;
265
+ name: import("../types").SidebarName;
266
+ tab?: import("../types").SidebarTabName;
283
267
  } | null;
284
- openDialog: {
268
+ openDialog: null | {
285
269
  name: "imageExport" | "help" | "jsonExport";
286
270
  } | {
287
271
  name: "ttd";
288
- tab: "mermaid" | "text-to-diagram";
272
+ tab: "text-to-diagram" | "mermaid";
289
273
  } | {
290
274
  name: "commandPalette";
291
275
  } | {
292
276
  name: "settings";
293
277
  } | {
294
278
  name: "elementLinkSelector";
295
- sourceElementId: string;
296
- } | null;
279
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
280
+ } | {
281
+ name: "charts";
282
+ data: import("../charts").Spreadsheet;
283
+ rawText: string;
284
+ };
297
285
  defaultSidebarDockedPreference: boolean;
298
286
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
299
287
  selectedElementIds: Readonly<{
@@ -308,9 +296,9 @@ export declare const actionZoomIn: {
308
296
  selectedElementsAreBeingDragged: boolean;
309
297
  shouldCacheIgnoreZoom: boolean;
310
298
  toast: {
311
- message: string;
312
- closable?: boolean | undefined;
313
- duration?: number | undefined;
299
+ message: React.ReactNode;
300
+ closable?: boolean;
301
+ duration?: number;
314
302
  } | null;
315
303
  zenModeEnabled: boolean;
316
304
  theme: import("@excalidraw/element/types").Theme;
@@ -321,44 +309,17 @@ export declare const actionZoomIn: {
321
309
  selectedGroupIds: {
322
310
  [groupId: string]: boolean;
323
311
  };
324
- editingGroupId: string | null;
312
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
325
313
  width: number;
326
314
  height: number;
327
315
  offsetTop: number;
328
316
  offsetLeft: number;
329
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
330
- collaborators: Map<import("../types").SocketId, Readonly<{
331
- pointer?: import("../types").CollaboratorPointer | undefined;
332
- button?: "up" | "down" | undefined;
333
- selectedElementIds?: Readonly<{
334
- [id: string]: true;
335
- }> | undefined;
336
- username?: string | null | undefined;
337
- userState?: import("@excalidraw/common").UserIdleState | undefined;
338
- color?: {
339
- background: string;
340
- stroke: string;
341
- } | undefined;
342
- avatarUrl?: string | undefined;
343
- id?: string | undefined;
344
- socketId?: import("../types").SocketId | undefined;
345
- isCurrentUser?: boolean | undefined;
346
- isInCall?: boolean | undefined;
347
- isSpeaking?: boolean | undefined;
348
- isMuted?: boolean | undefined;
349
- }>>;
317
+ fileHandle: FileSystemFileHandle | null;
318
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
350
319
  stats: {
351
320
  open: boolean;
352
321
  panels: number;
353
322
  };
354
- currentChartType: import("@excalidraw/element/types").ChartType;
355
- pasteDialog: {
356
- shown: false;
357
- data: null;
358
- } | {
359
- shown: true;
360
- data: import("../charts").Spreadsheet;
361
- };
362
323
  showHyperlinkPopup: false | "info" | "editor";
363
324
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
364
325
  snapLines: readonly import("../snapping").SnapLine[];
@@ -369,9 +330,9 @@ export declare const actionZoomIn: {
369
330
  objectsSnapModeEnabled: boolean;
370
331
  followedBy: Set<import("../types").SocketId>;
371
332
  isCropping: boolean;
372
- croppingElementId: string | null;
333
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
373
334
  searchMatches: Readonly<{
374
- focusedId: string | null;
335
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
375
336
  matches: readonly import("../types").SearchMatch[];
376
337
  }> | null;
377
338
  activeLockedId: string | null;
@@ -397,12 +358,10 @@ export declare const actionZoomOut: {
397
358
  };
398
359
  perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
399
360
  appState: {
400
- userToFollow: null;
361
+ zoom: import("../types").Zoom;
401
362
  scrollX: number;
402
363
  scrollY: number;
403
- zoom: {
404
- value: import("../types").NormalizedZoomValue;
405
- };
364
+ userToFollow: null;
406
365
  contextMenu: {
407
366
  items: import("../components/ContextMenu").ContextMenuItems;
408
367
  top: number;
@@ -410,18 +369,23 @@ export declare const actionZoomOut: {
410
369
  } | null;
411
370
  showWelcomeScreen: boolean;
412
371
  isLoading: boolean;
413
- errorMessage: import("react").ReactNode;
372
+ errorMessage: React.ReactNode;
414
373
  activeEmbeddable: {
415
374
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
416
- state: "active" | "hover";
375
+ state: "hover" | "active";
417
376
  } | null;
418
377
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
419
378
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
420
379
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
421
380
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
422
381
  isBindingEnabled: boolean;
423
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
424
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
382
+ boxSelectionMode: import("../types").BoxSelectionMode;
383
+ bindingPreference: "enabled" | "disabled";
384
+ isMidpointSnappingEnabled: boolean;
385
+ suggestedBinding: {
386
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
387
+ midPoint?: import("@excalidraw/math").GlobalPoint;
388
+ } | null;
425
389
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
426
390
  frameRendering: {
427
391
  enabled: boolean;
@@ -430,8 +394,8 @@ export declare const actionZoomOut: {
430
394
  clip: boolean;
431
395
  };
432
396
  editingFrame: string | null;
433
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
434
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
397
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
398
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
435
399
  activeTool: {
436
400
  lastActiveTool: import("../types").ActiveTool | null;
437
401
  locked: boolean;
@@ -449,44 +413,50 @@ export declare const actionZoomOut: {
449
413
  exportScale: number;
450
414
  currentItemStrokeColor: string;
451
415
  currentItemBackgroundColor: string;
452
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
453
- currentItemStrokeWidth: number;
454
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
416
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
417
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
418
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
455
419
  currentItemRoughness: number;
420
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
456
421
  currentItemOpacity: number;
457
- currentItemFontFamily: number;
422
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
458
423
  currentItemFontSize: number;
459
- currentItemTextAlign: string;
424
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
460
425
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
461
426
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
462
- currentHoveredFontFamily: number | null;
427
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
463
428
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
464
- currentItemArrowType: "round" | "sharp" | "elbow";
429
+ currentItemArrowType: "sharp" | "round" | "elbow";
465
430
  viewBackgroundColor: string;
431
+ scrollConstraints: import("../types").ScrollConstraints | null;
466
432
  cursorButton: "up" | "down";
467
433
  scrolledOutside: boolean;
468
434
  name: string | null;
469
435
  isResizing: boolean;
470
436
  isRotating: boolean;
471
437
  openMenu: "canvas" | null;
472
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
438
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
473
439
  openSidebar: {
474
- name: string;
475
- tab?: string | undefined;
440
+ name: import("../types").SidebarName;
441
+ tab?: import("../types").SidebarTabName;
476
442
  } | null;
477
- openDialog: {
443
+ openDialog: null | {
478
444
  name: "imageExport" | "help" | "jsonExport";
479
445
  } | {
480
446
  name: "ttd";
481
- tab: "mermaid" | "text-to-diagram";
447
+ tab: "text-to-diagram" | "mermaid";
482
448
  } | {
483
449
  name: "commandPalette";
484
450
  } | {
485
451
  name: "settings";
486
452
  } | {
487
453
  name: "elementLinkSelector";
488
- sourceElementId: string;
489
- } | null;
454
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
455
+ } | {
456
+ name: "charts";
457
+ data: import("../charts").Spreadsheet;
458
+ rawText: string;
459
+ };
490
460
  defaultSidebarDockedPreference: boolean;
491
461
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
492
462
  selectedElementIds: Readonly<{
@@ -501,9 +471,9 @@ export declare const actionZoomOut: {
501
471
  selectedElementsAreBeingDragged: boolean;
502
472
  shouldCacheIgnoreZoom: boolean;
503
473
  toast: {
504
- message: string;
505
- closable?: boolean | undefined;
506
- duration?: number | undefined;
474
+ message: React.ReactNode;
475
+ closable?: boolean;
476
+ duration?: number;
507
477
  } | null;
508
478
  zenModeEnabled: boolean;
509
479
  theme: import("@excalidraw/element/types").Theme;
@@ -514,44 +484,17 @@ export declare const actionZoomOut: {
514
484
  selectedGroupIds: {
515
485
  [groupId: string]: boolean;
516
486
  };
517
- editingGroupId: string | null;
487
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
518
488
  width: number;
519
489
  height: number;
520
490
  offsetTop: number;
521
491
  offsetLeft: number;
522
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
523
- collaborators: Map<import("../types").SocketId, Readonly<{
524
- pointer?: import("../types").CollaboratorPointer | undefined;
525
- button?: "up" | "down" | undefined;
526
- selectedElementIds?: Readonly<{
527
- [id: string]: true;
528
- }> | undefined;
529
- username?: string | null | undefined;
530
- userState?: import("@excalidraw/common").UserIdleState | undefined;
531
- color?: {
532
- background: string;
533
- stroke: string;
534
- } | undefined;
535
- avatarUrl?: string | undefined;
536
- id?: string | undefined;
537
- socketId?: import("../types").SocketId | undefined;
538
- isCurrentUser?: boolean | undefined;
539
- isInCall?: boolean | undefined;
540
- isSpeaking?: boolean | undefined;
541
- isMuted?: boolean | undefined;
542
- }>>;
492
+ fileHandle: FileSystemFileHandle | null;
493
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
543
494
  stats: {
544
495
  open: boolean;
545
496
  panels: number;
546
497
  };
547
- currentChartType: import("@excalidraw/element/types").ChartType;
548
- pasteDialog: {
549
- shown: false;
550
- data: null;
551
- } | {
552
- shown: true;
553
- data: import("../charts").Spreadsheet;
554
- };
555
498
  showHyperlinkPopup: false | "info" | "editor";
556
499
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
557
500
  snapLines: readonly import("../snapping").SnapLine[];
@@ -562,9 +505,9 @@ export declare const actionZoomOut: {
562
505
  objectsSnapModeEnabled: boolean;
563
506
  followedBy: Set<import("../types").SocketId>;
564
507
  isCropping: boolean;
565
- croppingElementId: string | null;
508
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
566
509
  searchMatches: Readonly<{
567
- focusedId: string | null;
510
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
568
511
  matches: readonly import("../types").SearchMatch[];
569
512
  }> | null;
570
513
  activeLockedId: string | null;
@@ -590,12 +533,10 @@ export declare const actionResetZoom: {
590
533
  };
591
534
  perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
592
535
  appState: {
593
- userToFollow: null;
536
+ zoom: import("../types").Zoom;
594
537
  scrollX: number;
595
538
  scrollY: number;
596
- zoom: {
597
- value: import("../types").NormalizedZoomValue;
598
- };
539
+ userToFollow: null;
599
540
  contextMenu: {
600
541
  items: import("../components/ContextMenu").ContextMenuItems;
601
542
  top: number;
@@ -603,18 +544,23 @@ export declare const actionResetZoom: {
603
544
  } | null;
604
545
  showWelcomeScreen: boolean;
605
546
  isLoading: boolean;
606
- errorMessage: import("react").ReactNode;
547
+ errorMessage: React.ReactNode;
607
548
  activeEmbeddable: {
608
549
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
609
- state: "active" | "hover";
550
+ state: "hover" | "active";
610
551
  } | null;
611
552
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
612
553
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
613
554
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
614
555
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
615
556
  isBindingEnabled: boolean;
616
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
617
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
557
+ boxSelectionMode: import("../types").BoxSelectionMode;
558
+ bindingPreference: "enabled" | "disabled";
559
+ isMidpointSnappingEnabled: boolean;
560
+ suggestedBinding: {
561
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
562
+ midPoint?: import("@excalidraw/math").GlobalPoint;
563
+ } | null;
618
564
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
619
565
  frameRendering: {
620
566
  enabled: boolean;
@@ -623,8 +569,8 @@ export declare const actionResetZoom: {
623
569
  clip: boolean;
624
570
  };
625
571
  editingFrame: string | null;
626
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
627
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
572
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
573
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
628
574
  activeTool: {
629
575
  lastActiveTool: import("../types").ActiveTool | null;
630
576
  locked: boolean;
@@ -642,44 +588,50 @@ export declare const actionResetZoom: {
642
588
  exportScale: number;
643
589
  currentItemStrokeColor: string;
644
590
  currentItemBackgroundColor: string;
645
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
646
- currentItemStrokeWidth: number;
647
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
591
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
592
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
593
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
648
594
  currentItemRoughness: number;
595
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
649
596
  currentItemOpacity: number;
650
- currentItemFontFamily: number;
597
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
651
598
  currentItemFontSize: number;
652
- currentItemTextAlign: string;
599
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
653
600
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
654
601
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
655
- currentHoveredFontFamily: number | null;
602
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
656
603
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
657
- currentItemArrowType: "round" | "sharp" | "elbow";
604
+ currentItemArrowType: "sharp" | "round" | "elbow";
658
605
  viewBackgroundColor: string;
606
+ scrollConstraints: import("../types").ScrollConstraints | null;
659
607
  cursorButton: "up" | "down";
660
608
  scrolledOutside: boolean;
661
609
  name: string | null;
662
610
  isResizing: boolean;
663
611
  isRotating: boolean;
664
612
  openMenu: "canvas" | null;
665
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
613
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
666
614
  openSidebar: {
667
- name: string;
668
- tab?: string | undefined;
615
+ name: import("../types").SidebarName;
616
+ tab?: import("../types").SidebarTabName;
669
617
  } | null;
670
- openDialog: {
618
+ openDialog: null | {
671
619
  name: "imageExport" | "help" | "jsonExport";
672
620
  } | {
673
621
  name: "ttd";
674
- tab: "mermaid" | "text-to-diagram";
622
+ tab: "text-to-diagram" | "mermaid";
675
623
  } | {
676
624
  name: "commandPalette";
677
625
  } | {
678
626
  name: "settings";
679
627
  } | {
680
628
  name: "elementLinkSelector";
681
- sourceElementId: string;
682
- } | null;
629
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
630
+ } | {
631
+ name: "charts";
632
+ data: import("../charts").Spreadsheet;
633
+ rawText: string;
634
+ };
683
635
  defaultSidebarDockedPreference: boolean;
684
636
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
685
637
  selectedElementIds: Readonly<{
@@ -694,9 +646,9 @@ export declare const actionResetZoom: {
694
646
  selectedElementsAreBeingDragged: boolean;
695
647
  shouldCacheIgnoreZoom: boolean;
696
648
  toast: {
697
- message: string;
698
- closable?: boolean | undefined;
699
- duration?: number | undefined;
649
+ message: React.ReactNode;
650
+ closable?: boolean;
651
+ duration?: number;
700
652
  } | null;
701
653
  zenModeEnabled: boolean;
702
654
  theme: import("@excalidraw/element/types").Theme;
@@ -707,44 +659,17 @@ export declare const actionResetZoom: {
707
659
  selectedGroupIds: {
708
660
  [groupId: string]: boolean;
709
661
  };
710
- editingGroupId: string | null;
662
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
711
663
  width: number;
712
664
  height: number;
713
665
  offsetTop: number;
714
666
  offsetLeft: number;
715
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
716
- collaborators: Map<import("../types").SocketId, Readonly<{
717
- pointer?: import("../types").CollaboratorPointer | undefined;
718
- button?: "up" | "down" | undefined;
719
- selectedElementIds?: Readonly<{
720
- [id: string]: true;
721
- }> | undefined;
722
- username?: string | null | undefined;
723
- userState?: import("@excalidraw/common").UserIdleState | undefined;
724
- color?: {
725
- background: string;
726
- stroke: string;
727
- } | undefined;
728
- avatarUrl?: string | undefined;
729
- id?: string | undefined;
730
- socketId?: import("../types").SocketId | undefined;
731
- isCurrentUser?: boolean | undefined;
732
- isInCall?: boolean | undefined;
733
- isSpeaking?: boolean | undefined;
734
- isMuted?: boolean | undefined;
735
- }>>;
667
+ fileHandle: FileSystemFileHandle | null;
668
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
736
669
  stats: {
737
670
  open: boolean;
738
671
  panels: number;
739
672
  };
740
- currentChartType: import("@excalidraw/element/types").ChartType;
741
- pasteDialog: {
742
- shown: false;
743
- data: null;
744
- } | {
745
- shown: true;
746
- data: import("../charts").Spreadsheet;
747
- };
748
673
  showHyperlinkPopup: false | "info" | "editor";
749
674
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
750
675
  snapLines: readonly import("../snapping").SnapLine[];
@@ -755,9 +680,9 @@ export declare const actionResetZoom: {
755
680
  objectsSnapModeEnabled: boolean;
756
681
  followedBy: Set<import("../types").SocketId>;
757
682
  isCropping: boolean;
758
- croppingElementId: string | null;
683
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
759
684
  searchMatches: Readonly<{
760
- focusedId: string | null;
685
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
761
686
  matches: readonly import("../types").SearchMatch[];
762
687
  }> | null;
763
688
  activeLockedId: string | null;
@@ -773,396 +698,6 @@ export declare const actionResetZoom: {
773
698
  } & {
774
699
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
775
700
  };
776
- export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
777
- bounds: SceneBounds;
778
- canvasOffsets?: Partial<{
779
- top: number;
780
- right: number;
781
- bottom: number;
782
- left: number;
783
- }> | undefined;
784
- appState: Readonly<AppState>;
785
- /** whether to fit content to viewport (beyond >100%) */
786
- fitToViewport: boolean;
787
- /** zoom content to cover X of the viewport, when fitToViewport=true */
788
- viewportZoomFactor?: number | undefined;
789
- minZoom?: number | undefined;
790
- maxZoom?: number | undefined;
791
- }) => {
792
- appState: {
793
- scrollX: number;
794
- scrollY: number;
795
- zoom: {
796
- value: import("../types").NormalizedZoomValue;
797
- };
798
- contextMenu: {
799
- items: import("../components/ContextMenu").ContextMenuItems;
800
- top: number;
801
- left: number;
802
- } | null;
803
- showWelcomeScreen: boolean;
804
- isLoading: boolean;
805
- errorMessage: import("react").ReactNode;
806
- activeEmbeddable: {
807
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
808
- state: "active" | "hover";
809
- } | null;
810
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
811
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
812
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
813
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
814
- isBindingEnabled: boolean;
815
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
816
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
817
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
818
- frameRendering: {
819
- enabled: boolean;
820
- name: boolean;
821
- outline: boolean;
822
- clip: boolean;
823
- };
824
- editingFrame: string | null;
825
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
826
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
827
- activeTool: {
828
- lastActiveTool: import("../types").ActiveTool | null;
829
- locked: boolean;
830
- fromSelection: boolean;
831
- } & import("../types").ActiveTool;
832
- preferredSelectionTool: {
833
- type: "selection" | "lasso";
834
- initialized: boolean;
835
- };
836
- penMode: boolean;
837
- penDetected: boolean;
838
- exportBackground: boolean;
839
- exportEmbedScene: boolean;
840
- exportWithDarkMode: boolean;
841
- exportScale: number;
842
- currentItemStrokeColor: string;
843
- currentItemBackgroundColor: string;
844
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
845
- currentItemStrokeWidth: number;
846
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
847
- currentItemRoughness: number;
848
- currentItemOpacity: number;
849
- currentItemFontFamily: number;
850
- currentItemFontSize: number;
851
- currentItemTextAlign: string;
852
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
853
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
854
- currentHoveredFontFamily: number | null;
855
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
856
- currentItemArrowType: "round" | "sharp" | "elbow";
857
- viewBackgroundColor: string;
858
- cursorButton: "up" | "down";
859
- scrolledOutside: boolean;
860
- name: string | null;
861
- isResizing: boolean;
862
- isRotating: boolean;
863
- openMenu: "canvas" | null;
864
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
865
- openSidebar: {
866
- name: string;
867
- tab?: string | undefined;
868
- } | null;
869
- openDialog: {
870
- name: "imageExport" | "help" | "jsonExport";
871
- } | {
872
- name: "ttd";
873
- tab: "mermaid" | "text-to-diagram";
874
- } | {
875
- name: "commandPalette";
876
- } | {
877
- name: "settings";
878
- } | {
879
- name: "elementLinkSelector";
880
- sourceElementId: string;
881
- } | null;
882
- defaultSidebarDockedPreference: boolean;
883
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
884
- selectedElementIds: Readonly<{
885
- [id: string]: true;
886
- }>;
887
- hoveredElementIds: Readonly<{
888
- [id: string]: true;
889
- }>;
890
- previousSelectedElementIds: {
891
- [id: string]: true;
892
- };
893
- selectedElementsAreBeingDragged: boolean;
894
- shouldCacheIgnoreZoom: boolean;
895
- toast: {
896
- message: string;
897
- closable?: boolean | undefined;
898
- duration?: number | undefined;
899
- } | null;
900
- zenModeEnabled: boolean;
901
- theme: import("@excalidraw/element/types").Theme;
902
- gridSize: number;
903
- gridStep: number;
904
- gridModeEnabled: boolean;
905
- viewModeEnabled: boolean;
906
- selectedGroupIds: {
907
- [groupId: string]: boolean;
908
- };
909
- editingGroupId: string | null;
910
- width: number;
911
- height: number;
912
- offsetTop: number;
913
- offsetLeft: number;
914
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
915
- collaborators: Map<import("../types").SocketId, Readonly<{
916
- pointer?: import("../types").CollaboratorPointer | undefined;
917
- button?: "up" | "down" | undefined;
918
- selectedElementIds?: Readonly<{
919
- [id: string]: true;
920
- }> | undefined;
921
- username?: string | null | undefined;
922
- userState?: import("@excalidraw/common").UserIdleState | undefined;
923
- color?: {
924
- background: string;
925
- stroke: string;
926
- } | undefined;
927
- avatarUrl?: string | undefined;
928
- id?: string | undefined;
929
- socketId?: import("../types").SocketId | undefined;
930
- isCurrentUser?: boolean | undefined;
931
- isInCall?: boolean | undefined;
932
- isSpeaking?: boolean | undefined;
933
- isMuted?: boolean | undefined;
934
- }>>;
935
- stats: {
936
- open: boolean;
937
- panels: number;
938
- };
939
- currentChartType: import("@excalidraw/element/types").ChartType;
940
- pasteDialog: {
941
- shown: false;
942
- data: null;
943
- } | {
944
- shown: true;
945
- data: import("../charts").Spreadsheet;
946
- };
947
- showHyperlinkPopup: false | "info" | "editor";
948
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
949
- snapLines: readonly import("../snapping").SnapLine[];
950
- originSnapOffset: {
951
- x: number;
952
- y: number;
953
- } | null;
954
- objectsSnapModeEnabled: boolean;
955
- userToFollow: import("../types").UserToFollow | null;
956
- followedBy: Set<import("../types").SocketId>;
957
- isCropping: boolean;
958
- croppingElementId: string | null;
959
- searchMatches: Readonly<{
960
- focusedId: string | null;
961
- matches: readonly import("../types").SearchMatch[];
962
- }> | null;
963
- activeLockedId: string | null;
964
- lockedMultiSelections: {
965
- [groupId: string]: true;
966
- };
967
- bindMode: import("@excalidraw/element/types").BindMode;
968
- };
969
- captureUpdate: "EVENTUALLY";
970
- };
971
- export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
972
- canvasOffsets?: Partial<{
973
- top: number;
974
- right: number;
975
- bottom: number;
976
- left: number;
977
- }> | undefined;
978
- targetElements: readonly ExcalidrawElement[];
979
- appState: Readonly<AppState>;
980
- /** whether to fit content to viewport (beyond >100%) */
981
- fitToViewport: boolean;
982
- /** zoom content to cover X of the viewport, when fitToViewport=true */
983
- viewportZoomFactor?: number | undefined;
984
- minZoom?: number | undefined;
985
- maxZoom?: number | undefined;
986
- }) => {
987
- appState: {
988
- scrollX: number;
989
- scrollY: number;
990
- zoom: {
991
- value: import("../types").NormalizedZoomValue;
992
- };
993
- contextMenu: {
994
- items: import("../components/ContextMenu").ContextMenuItems;
995
- top: number;
996
- left: number;
997
- } | null;
998
- showWelcomeScreen: boolean;
999
- isLoading: boolean;
1000
- errorMessage: import("react").ReactNode;
1001
- activeEmbeddable: {
1002
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1003
- state: "active" | "hover";
1004
- } | null;
1005
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1006
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1007
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1008
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1009
- isBindingEnabled: boolean;
1010
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1011
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1012
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1013
- frameRendering: {
1014
- enabled: boolean;
1015
- name: boolean;
1016
- outline: boolean;
1017
- clip: boolean;
1018
- };
1019
- editingFrame: string | null;
1020
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1021
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1022
- activeTool: {
1023
- lastActiveTool: import("../types").ActiveTool | null;
1024
- locked: boolean;
1025
- fromSelection: boolean;
1026
- } & import("../types").ActiveTool;
1027
- preferredSelectionTool: {
1028
- type: "selection" | "lasso";
1029
- initialized: boolean;
1030
- };
1031
- penMode: boolean;
1032
- penDetected: boolean;
1033
- exportBackground: boolean;
1034
- exportEmbedScene: boolean;
1035
- exportWithDarkMode: boolean;
1036
- exportScale: number;
1037
- currentItemStrokeColor: string;
1038
- currentItemBackgroundColor: string;
1039
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1040
- currentItemStrokeWidth: number;
1041
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1042
- currentItemRoughness: number;
1043
- currentItemOpacity: number;
1044
- currentItemFontFamily: number;
1045
- currentItemFontSize: number;
1046
- currentItemTextAlign: string;
1047
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1048
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1049
- currentHoveredFontFamily: number | null;
1050
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1051
- currentItemArrowType: "round" | "sharp" | "elbow";
1052
- viewBackgroundColor: string;
1053
- cursorButton: "up" | "down";
1054
- scrolledOutside: boolean;
1055
- name: string | null;
1056
- isResizing: boolean;
1057
- isRotating: boolean;
1058
- openMenu: "canvas" | null;
1059
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1060
- openSidebar: {
1061
- name: string;
1062
- tab?: string | undefined;
1063
- } | null;
1064
- openDialog: {
1065
- name: "imageExport" | "help" | "jsonExport";
1066
- } | {
1067
- name: "ttd";
1068
- tab: "mermaid" | "text-to-diagram";
1069
- } | {
1070
- name: "commandPalette";
1071
- } | {
1072
- name: "settings";
1073
- } | {
1074
- name: "elementLinkSelector";
1075
- sourceElementId: string;
1076
- } | null;
1077
- defaultSidebarDockedPreference: boolean;
1078
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1079
- selectedElementIds: Readonly<{
1080
- [id: string]: true;
1081
- }>;
1082
- hoveredElementIds: Readonly<{
1083
- [id: string]: true;
1084
- }>;
1085
- previousSelectedElementIds: {
1086
- [id: string]: true;
1087
- };
1088
- selectedElementsAreBeingDragged: boolean;
1089
- shouldCacheIgnoreZoom: boolean;
1090
- toast: {
1091
- message: string;
1092
- closable?: boolean | undefined;
1093
- duration?: number | undefined;
1094
- } | null;
1095
- zenModeEnabled: boolean;
1096
- theme: import("@excalidraw/element/types").Theme;
1097
- gridSize: number;
1098
- gridStep: number;
1099
- gridModeEnabled: boolean;
1100
- viewModeEnabled: boolean;
1101
- selectedGroupIds: {
1102
- [groupId: string]: boolean;
1103
- };
1104
- editingGroupId: string | null;
1105
- width: number;
1106
- height: number;
1107
- offsetTop: number;
1108
- offsetLeft: number;
1109
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1110
- collaborators: Map<import("../types").SocketId, Readonly<{
1111
- pointer?: import("../types").CollaboratorPointer | undefined;
1112
- button?: "up" | "down" | undefined;
1113
- selectedElementIds?: Readonly<{
1114
- [id: string]: true;
1115
- }> | undefined;
1116
- username?: string | null | undefined;
1117
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1118
- color?: {
1119
- background: string;
1120
- stroke: string;
1121
- } | undefined;
1122
- avatarUrl?: string | undefined;
1123
- id?: string | undefined;
1124
- socketId?: import("../types").SocketId | undefined;
1125
- isCurrentUser?: boolean | undefined;
1126
- isInCall?: boolean | undefined;
1127
- isSpeaking?: boolean | undefined;
1128
- isMuted?: boolean | undefined;
1129
- }>>;
1130
- stats: {
1131
- open: boolean;
1132
- panels: number;
1133
- };
1134
- currentChartType: import("@excalidraw/element/types").ChartType;
1135
- pasteDialog: {
1136
- shown: false;
1137
- data: null;
1138
- } | {
1139
- shown: true;
1140
- data: import("../charts").Spreadsheet;
1141
- };
1142
- showHyperlinkPopup: false | "info" | "editor";
1143
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1144
- snapLines: readonly import("../snapping").SnapLine[];
1145
- originSnapOffset: {
1146
- x: number;
1147
- y: number;
1148
- } | null;
1149
- objectsSnapModeEnabled: boolean;
1150
- userToFollow: import("../types").UserToFollow | null;
1151
- followedBy: Set<import("../types").SocketId>;
1152
- isCropping: boolean;
1153
- croppingElementId: string | null;
1154
- searchMatches: Readonly<{
1155
- focusedId: string | null;
1156
- matches: readonly import("../types").SearchMatch[];
1157
- }> | null;
1158
- activeLockedId: string | null;
1159
- lockedMultiSelections: {
1160
- [groupId: string]: true;
1161
- };
1162
- bindMode: import("@excalidraw/element/types").BindMode;
1163
- };
1164
- captureUpdate: "EVENTUALLY";
1165
- };
1166
701
  export declare const actionZoomToFitSelectionInViewport: {
1167
702
  name: "zoomToFitSelectionInViewport";
1168
703
  label: string;
@@ -1170,6 +705,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1170
705
  trackEvent: {
1171
706
  category: "canvas";
1172
707
  };
708
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState) => boolean;
1173
709
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1174
710
  appState: {
1175
711
  scrollX: number;
@@ -1184,18 +720,23 @@ export declare const actionZoomToFitSelectionInViewport: {
1184
720
  } | null;
1185
721
  showWelcomeScreen: boolean;
1186
722
  isLoading: boolean;
1187
- errorMessage: import("react").ReactNode;
723
+ errorMessage: React.ReactNode;
1188
724
  activeEmbeddable: {
1189
725
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1190
- state: "active" | "hover";
726
+ state: "hover" | "active";
1191
727
  } | null;
1192
728
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1193
729
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1194
730
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1195
731
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1196
732
  isBindingEnabled: boolean;
1197
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1198
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
733
+ boxSelectionMode: import("../types").BoxSelectionMode;
734
+ bindingPreference: "enabled" | "disabled";
735
+ isMidpointSnappingEnabled: boolean;
736
+ suggestedBinding: {
737
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
738
+ midPoint?: import("@excalidraw/math").GlobalPoint;
739
+ } | null;
1199
740
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1200
741
  frameRendering: {
1201
742
  enabled: boolean;
@@ -1204,8 +745,8 @@ export declare const actionZoomToFitSelectionInViewport: {
1204
745
  clip: boolean;
1205
746
  };
1206
747
  editingFrame: string | null;
1207
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1208
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
748
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
749
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1209
750
  activeTool: {
1210
751
  lastActiveTool: import("../types").ActiveTool | null;
1211
752
  locked: boolean;
@@ -1223,44 +764,50 @@ export declare const actionZoomToFitSelectionInViewport: {
1223
764
  exportScale: number;
1224
765
  currentItemStrokeColor: string;
1225
766
  currentItemBackgroundColor: string;
1226
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1227
- currentItemStrokeWidth: number;
1228
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
767
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
768
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
769
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1229
770
  currentItemRoughness: number;
771
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1230
772
  currentItemOpacity: number;
1231
- currentItemFontFamily: number;
773
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1232
774
  currentItemFontSize: number;
1233
- currentItemTextAlign: string;
775
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1234
776
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1235
777
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1236
- currentHoveredFontFamily: number | null;
778
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1237
779
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1238
- currentItemArrowType: "round" | "sharp" | "elbow";
780
+ currentItemArrowType: "sharp" | "round" | "elbow";
1239
781
  viewBackgroundColor: string;
782
+ scrollConstraints: import("../types").ScrollConstraints | null;
1240
783
  cursorButton: "up" | "down";
1241
784
  scrolledOutside: boolean;
1242
785
  name: string | null;
1243
786
  isResizing: boolean;
1244
787
  isRotating: boolean;
1245
788
  openMenu: "canvas" | null;
1246
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
789
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1247
790
  openSidebar: {
1248
- name: string;
1249
- tab?: string | undefined;
791
+ name: import("../types").SidebarName;
792
+ tab?: import("../types").SidebarTabName;
1250
793
  } | null;
1251
- openDialog: {
794
+ openDialog: null | {
1252
795
  name: "imageExport" | "help" | "jsonExport";
1253
796
  } | {
1254
797
  name: "ttd";
1255
- tab: "mermaid" | "text-to-diagram";
798
+ tab: "text-to-diagram" | "mermaid";
1256
799
  } | {
1257
800
  name: "commandPalette";
1258
801
  } | {
1259
802
  name: "settings";
1260
803
  } | {
1261
804
  name: "elementLinkSelector";
1262
- sourceElementId: string;
1263
- } | null;
805
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
806
+ } | {
807
+ name: "charts";
808
+ data: import("../charts").Spreadsheet;
809
+ rawText: string;
810
+ };
1264
811
  defaultSidebarDockedPreference: boolean;
1265
812
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1266
813
  selectedElementIds: Readonly<{
@@ -1275,9 +822,9 @@ export declare const actionZoomToFitSelectionInViewport: {
1275
822
  selectedElementsAreBeingDragged: boolean;
1276
823
  shouldCacheIgnoreZoom: boolean;
1277
824
  toast: {
1278
- message: string;
1279
- closable?: boolean | undefined;
1280
- duration?: number | undefined;
825
+ message: React.ReactNode;
826
+ closable?: boolean;
827
+ duration?: number;
1281
828
  } | null;
1282
829
  zenModeEnabled: boolean;
1283
830
  theme: import("@excalidraw/element/types").Theme;
@@ -1288,44 +835,17 @@ export declare const actionZoomToFitSelectionInViewport: {
1288
835
  selectedGroupIds: {
1289
836
  [groupId: string]: boolean;
1290
837
  };
1291
- editingGroupId: string | null;
838
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1292
839
  width: number;
1293
840
  height: number;
1294
841
  offsetTop: number;
1295
842
  offsetLeft: number;
1296
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1297
- collaborators: Map<import("../types").SocketId, Readonly<{
1298
- pointer?: import("../types").CollaboratorPointer | undefined;
1299
- button?: "up" | "down" | undefined;
1300
- selectedElementIds?: Readonly<{
1301
- [id: string]: true;
1302
- }> | undefined;
1303
- username?: string | null | undefined;
1304
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1305
- color?: {
1306
- background: string;
1307
- stroke: string;
1308
- } | undefined;
1309
- avatarUrl?: string | undefined;
1310
- id?: string | undefined;
1311
- socketId?: import("../types").SocketId | undefined;
1312
- isCurrentUser?: boolean | undefined;
1313
- isInCall?: boolean | undefined;
1314
- isSpeaking?: boolean | undefined;
1315
- isMuted?: boolean | undefined;
1316
- }>>;
843
+ fileHandle: FileSystemFileHandle | null;
844
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1317
845
  stats: {
1318
846
  open: boolean;
1319
847
  panels: number;
1320
848
  };
1321
- currentChartType: import("@excalidraw/element/types").ChartType;
1322
- pasteDialog: {
1323
- shown: false;
1324
- data: null;
1325
- } | {
1326
- shown: true;
1327
- data: import("../charts").Spreadsheet;
1328
- };
1329
849
  showHyperlinkPopup: false | "info" | "editor";
1330
850
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1331
851
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1337,9 +857,9 @@ export declare const actionZoomToFitSelectionInViewport: {
1337
857
  userToFollow: import("../types").UserToFollow | null;
1338
858
  followedBy: Set<import("../types").SocketId>;
1339
859
  isCropping: boolean;
1340
- croppingElementId: string | null;
860
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1341
861
  searchMatches: Readonly<{
1342
- focusedId: string | null;
862
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1343
863
  matches: readonly import("../types").SearchMatch[];
1344
864
  }> | null;
1345
865
  activeLockedId: string | null;
@@ -1350,9 +870,9 @@ export declare const actionZoomToFitSelectionInViewport: {
1350
870
  };
1351
871
  captureUpdate: "EVENTUALLY";
1352
872
  };
1353
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
873
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
1354
874
  } & {
1355
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
875
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
1356
876
  };
1357
877
  export declare const actionZoomToFitSelection: {
1358
878
  name: "zoomToFitSelection";
@@ -1361,6 +881,7 @@ export declare const actionZoomToFitSelection: {
1361
881
  trackEvent: {
1362
882
  category: "canvas";
1363
883
  };
884
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState) => boolean;
1364
885
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1365
886
  appState: {
1366
887
  scrollX: number;
@@ -1375,18 +896,23 @@ export declare const actionZoomToFitSelection: {
1375
896
  } | null;
1376
897
  showWelcomeScreen: boolean;
1377
898
  isLoading: boolean;
1378
- errorMessage: import("react").ReactNode;
899
+ errorMessage: React.ReactNode;
1379
900
  activeEmbeddable: {
1380
901
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1381
- state: "active" | "hover";
902
+ state: "hover" | "active";
1382
903
  } | null;
1383
904
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1384
905
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1385
906
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1386
907
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1387
908
  isBindingEnabled: boolean;
1388
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1389
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
909
+ boxSelectionMode: import("../types").BoxSelectionMode;
910
+ bindingPreference: "enabled" | "disabled";
911
+ isMidpointSnappingEnabled: boolean;
912
+ suggestedBinding: {
913
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
914
+ midPoint?: import("@excalidraw/math").GlobalPoint;
915
+ } | null;
1390
916
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1391
917
  frameRendering: {
1392
918
  enabled: boolean;
@@ -1395,8 +921,8 @@ export declare const actionZoomToFitSelection: {
1395
921
  clip: boolean;
1396
922
  };
1397
923
  editingFrame: string | null;
1398
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1399
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
924
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
925
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1400
926
  activeTool: {
1401
927
  lastActiveTool: import("../types").ActiveTool | null;
1402
928
  locked: boolean;
@@ -1414,44 +940,50 @@ export declare const actionZoomToFitSelection: {
1414
940
  exportScale: number;
1415
941
  currentItemStrokeColor: string;
1416
942
  currentItemBackgroundColor: string;
1417
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1418
- currentItemStrokeWidth: number;
1419
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
943
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
944
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
945
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1420
946
  currentItemRoughness: number;
947
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1421
948
  currentItemOpacity: number;
1422
- currentItemFontFamily: number;
949
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1423
950
  currentItemFontSize: number;
1424
- currentItemTextAlign: string;
951
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1425
952
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1426
953
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1427
- currentHoveredFontFamily: number | null;
954
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1428
955
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1429
- currentItemArrowType: "round" | "sharp" | "elbow";
956
+ currentItemArrowType: "sharp" | "round" | "elbow";
1430
957
  viewBackgroundColor: string;
958
+ scrollConstraints: import("../types").ScrollConstraints | null;
1431
959
  cursorButton: "up" | "down";
1432
960
  scrolledOutside: boolean;
1433
961
  name: string | null;
1434
962
  isResizing: boolean;
1435
963
  isRotating: boolean;
1436
964
  openMenu: "canvas" | null;
1437
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
965
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1438
966
  openSidebar: {
1439
- name: string;
1440
- tab?: string | undefined;
967
+ name: import("../types").SidebarName;
968
+ tab?: import("../types").SidebarTabName;
1441
969
  } | null;
1442
- openDialog: {
970
+ openDialog: null | {
1443
971
  name: "imageExport" | "help" | "jsonExport";
1444
972
  } | {
1445
973
  name: "ttd";
1446
- tab: "mermaid" | "text-to-diagram";
974
+ tab: "text-to-diagram" | "mermaid";
1447
975
  } | {
1448
976
  name: "commandPalette";
1449
977
  } | {
1450
978
  name: "settings";
1451
979
  } | {
1452
980
  name: "elementLinkSelector";
1453
- sourceElementId: string;
1454
- } | null;
981
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
982
+ } | {
983
+ name: "charts";
984
+ data: import("../charts").Spreadsheet;
985
+ rawText: string;
986
+ };
1455
987
  defaultSidebarDockedPreference: boolean;
1456
988
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1457
989
  selectedElementIds: Readonly<{
@@ -1466,9 +998,9 @@ export declare const actionZoomToFitSelection: {
1466
998
  selectedElementsAreBeingDragged: boolean;
1467
999
  shouldCacheIgnoreZoom: boolean;
1468
1000
  toast: {
1469
- message: string;
1470
- closable?: boolean | undefined;
1471
- duration?: number | undefined;
1001
+ message: React.ReactNode;
1002
+ closable?: boolean;
1003
+ duration?: number;
1472
1004
  } | null;
1473
1005
  zenModeEnabled: boolean;
1474
1006
  theme: import("@excalidraw/element/types").Theme;
@@ -1479,44 +1011,17 @@ export declare const actionZoomToFitSelection: {
1479
1011
  selectedGroupIds: {
1480
1012
  [groupId: string]: boolean;
1481
1013
  };
1482
- editingGroupId: string | null;
1014
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1483
1015
  width: number;
1484
1016
  height: number;
1485
1017
  offsetTop: number;
1486
1018
  offsetLeft: number;
1487
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1488
- collaborators: Map<import("../types").SocketId, Readonly<{
1489
- pointer?: import("../types").CollaboratorPointer | undefined;
1490
- button?: "up" | "down" | undefined;
1491
- selectedElementIds?: Readonly<{
1492
- [id: string]: true;
1493
- }> | undefined;
1494
- username?: string | null | undefined;
1495
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1496
- color?: {
1497
- background: string;
1498
- stroke: string;
1499
- } | undefined;
1500
- avatarUrl?: string | undefined;
1501
- id?: string | undefined;
1502
- socketId?: import("../types").SocketId | undefined;
1503
- isCurrentUser?: boolean | undefined;
1504
- isInCall?: boolean | undefined;
1505
- isSpeaking?: boolean | undefined;
1506
- isMuted?: boolean | undefined;
1507
- }>>;
1019
+ fileHandle: FileSystemFileHandle | null;
1020
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1508
1021
  stats: {
1509
1022
  open: boolean;
1510
1023
  panels: number;
1511
1024
  };
1512
- currentChartType: import("@excalidraw/element/types").ChartType;
1513
- pasteDialog: {
1514
- shown: false;
1515
- data: null;
1516
- } | {
1517
- shown: true;
1518
- data: import("../charts").Spreadsheet;
1519
- };
1520
1025
  showHyperlinkPopup: false | "info" | "editor";
1521
1026
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1522
1027
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1528,9 +1033,9 @@ export declare const actionZoomToFitSelection: {
1528
1033
  userToFollow: import("../types").UserToFollow | null;
1529
1034
  followedBy: Set<import("../types").SocketId>;
1530
1035
  isCropping: boolean;
1531
- croppingElementId: string | null;
1036
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1532
1037
  searchMatches: Readonly<{
1533
- focusedId: string | null;
1038
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1534
1039
  matches: readonly import("../types").SearchMatch[];
1535
1040
  }> | null;
1536
1041
  activeLockedId: string | null;
@@ -1541,9 +1046,9 @@ export declare const actionZoomToFitSelection: {
1541
1046
  };
1542
1047
  captureUpdate: "EVENTUALLY";
1543
1048
  };
1544
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1049
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
1545
1050
  } & {
1546
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1051
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
1547
1052
  };
1548
1053
  export declare const actionZoomToFit: {
1549
1054
  name: "zoomToFit";
@@ -1553,6 +1058,7 @@ export declare const actionZoomToFit: {
1553
1058
  trackEvent: {
1554
1059
  category: "canvas";
1555
1060
  };
1061
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState) => boolean;
1556
1062
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1557
1063
  appState: {
1558
1064
  scrollX: number;
@@ -1567,18 +1073,23 @@ export declare const actionZoomToFit: {
1567
1073
  } | null;
1568
1074
  showWelcomeScreen: boolean;
1569
1075
  isLoading: boolean;
1570
- errorMessage: import("react").ReactNode;
1076
+ errorMessage: React.ReactNode;
1571
1077
  activeEmbeddable: {
1572
1078
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1573
- state: "active" | "hover";
1079
+ state: "hover" | "active";
1574
1080
  } | null;
1575
1081
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1576
1082
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1577
1083
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1578
1084
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1579
1085
  isBindingEnabled: boolean;
1580
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1581
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1086
+ boxSelectionMode: import("../types").BoxSelectionMode;
1087
+ bindingPreference: "enabled" | "disabled";
1088
+ isMidpointSnappingEnabled: boolean;
1089
+ suggestedBinding: {
1090
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1091
+ midPoint?: import("@excalidraw/math").GlobalPoint;
1092
+ } | null;
1582
1093
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1583
1094
  frameRendering: {
1584
1095
  enabled: boolean;
@@ -1587,8 +1098,8 @@ export declare const actionZoomToFit: {
1587
1098
  clip: boolean;
1588
1099
  };
1589
1100
  editingFrame: string | null;
1590
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1591
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1101
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1102
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1592
1103
  activeTool: {
1593
1104
  lastActiveTool: import("../types").ActiveTool | null;
1594
1105
  locked: boolean;
@@ -1606,44 +1117,50 @@ export declare const actionZoomToFit: {
1606
1117
  exportScale: number;
1607
1118
  currentItemStrokeColor: string;
1608
1119
  currentItemBackgroundColor: string;
1609
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1610
- currentItemStrokeWidth: number;
1611
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1120
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1121
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1122
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1612
1123
  currentItemRoughness: number;
1124
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1613
1125
  currentItemOpacity: number;
1614
- currentItemFontFamily: number;
1126
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1615
1127
  currentItemFontSize: number;
1616
- currentItemTextAlign: string;
1128
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1617
1129
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1618
1130
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1619
- currentHoveredFontFamily: number | null;
1131
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1620
1132
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1621
- currentItemArrowType: "round" | "sharp" | "elbow";
1133
+ currentItemArrowType: "sharp" | "round" | "elbow";
1622
1134
  viewBackgroundColor: string;
1135
+ scrollConstraints: import("../types").ScrollConstraints | null;
1623
1136
  cursorButton: "up" | "down";
1624
1137
  scrolledOutside: boolean;
1625
1138
  name: string | null;
1626
1139
  isResizing: boolean;
1627
1140
  isRotating: boolean;
1628
1141
  openMenu: "canvas" | null;
1629
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1142
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1630
1143
  openSidebar: {
1631
- name: string;
1632
- tab?: string | undefined;
1144
+ name: import("../types").SidebarName;
1145
+ tab?: import("../types").SidebarTabName;
1633
1146
  } | null;
1634
- openDialog: {
1147
+ openDialog: null | {
1635
1148
  name: "imageExport" | "help" | "jsonExport";
1636
1149
  } | {
1637
1150
  name: "ttd";
1638
- tab: "mermaid" | "text-to-diagram";
1151
+ tab: "text-to-diagram" | "mermaid";
1639
1152
  } | {
1640
1153
  name: "commandPalette";
1641
1154
  } | {
1642
1155
  name: "settings";
1643
1156
  } | {
1644
1157
  name: "elementLinkSelector";
1645
- sourceElementId: string;
1646
- } | null;
1158
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1159
+ } | {
1160
+ name: "charts";
1161
+ data: import("../charts").Spreadsheet;
1162
+ rawText: string;
1163
+ };
1647
1164
  defaultSidebarDockedPreference: boolean;
1648
1165
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1649
1166
  selectedElementIds: Readonly<{
@@ -1658,9 +1175,9 @@ export declare const actionZoomToFit: {
1658
1175
  selectedElementsAreBeingDragged: boolean;
1659
1176
  shouldCacheIgnoreZoom: boolean;
1660
1177
  toast: {
1661
- message: string;
1662
- closable?: boolean | undefined;
1663
- duration?: number | undefined;
1178
+ message: React.ReactNode;
1179
+ closable?: boolean;
1180
+ duration?: number;
1664
1181
  } | null;
1665
1182
  zenModeEnabled: boolean;
1666
1183
  theme: import("@excalidraw/element/types").Theme;
@@ -1671,44 +1188,17 @@ export declare const actionZoomToFit: {
1671
1188
  selectedGroupIds: {
1672
1189
  [groupId: string]: boolean;
1673
1190
  };
1674
- editingGroupId: string | null;
1191
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1675
1192
  width: number;
1676
1193
  height: number;
1677
1194
  offsetTop: number;
1678
1195
  offsetLeft: number;
1679
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1680
- collaborators: Map<import("../types").SocketId, Readonly<{
1681
- pointer?: import("../types").CollaboratorPointer | undefined;
1682
- button?: "up" | "down" | undefined;
1683
- selectedElementIds?: Readonly<{
1684
- [id: string]: true;
1685
- }> | undefined;
1686
- username?: string | null | undefined;
1687
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1688
- color?: {
1689
- background: string;
1690
- stroke: string;
1691
- } | undefined;
1692
- avatarUrl?: string | undefined;
1693
- id?: string | undefined;
1694
- socketId?: import("../types").SocketId | undefined;
1695
- isCurrentUser?: boolean | undefined;
1696
- isInCall?: boolean | undefined;
1697
- isSpeaking?: boolean | undefined;
1698
- isMuted?: boolean | undefined;
1699
- }>>;
1196
+ fileHandle: FileSystemFileHandle | null;
1197
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1700
1198
  stats: {
1701
1199
  open: boolean;
1702
1200
  panels: number;
1703
1201
  };
1704
- currentChartType: import("@excalidraw/element/types").ChartType;
1705
- pasteDialog: {
1706
- shown: false;
1707
- data: null;
1708
- } | {
1709
- shown: true;
1710
- data: import("../charts").Spreadsheet;
1711
- };
1712
1202
  showHyperlinkPopup: false | "info" | "editor";
1713
1203
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1714
1204
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1720,9 +1210,9 @@ export declare const actionZoomToFit: {
1720
1210
  userToFollow: import("../types").UserToFollow | null;
1721
1211
  followedBy: Set<import("../types").SocketId>;
1722
1212
  isCropping: boolean;
1723
- croppingElementId: string | null;
1213
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1724
1214
  searchMatches: Readonly<{
1725
- focusedId: string | null;
1215
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1726
1216
  matches: readonly import("../types").SearchMatch[];
1727
1217
  }> | null;
1728
1218
  activeLockedId: string | null;
@@ -1733,12 +1223,12 @@ export declare const actionZoomToFit: {
1733
1223
  };
1734
1224
  captureUpdate: "EVENTUALLY";
1735
1225
  };
1736
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1226
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
1737
1227
  } & {
1738
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1228
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
1739
1229
  };
1740
1230
  export declare const actionToggleTheme: import("./types").Action<import("@excalidraw/element/types").Theme> & {
1741
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
1231
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
1742
1232
  };
1743
1233
  export declare const actionToggleEraserTool: {
1744
1234
  name: "toggleEraserTool";
@@ -1763,14 +1253,19 @@ export declare const actionToggleEraserTool: {
1763
1253
  } | null;
1764
1254
  showWelcomeScreen: boolean;
1765
1255
  isLoading: boolean;
1766
- errorMessage: import("react").ReactNode;
1256
+ errorMessage: React.ReactNode;
1767
1257
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1768
1258
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1769
1259
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1770
1260
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1771
1261
  isBindingEnabled: boolean;
1772
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1773
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1262
+ boxSelectionMode: import("../types").BoxSelectionMode;
1263
+ bindingPreference: "enabled" | "disabled";
1264
+ isMidpointSnappingEnabled: boolean;
1265
+ suggestedBinding: {
1266
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1267
+ midPoint?: import("@excalidraw/math").GlobalPoint;
1268
+ } | null;
1774
1269
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1775
1270
  frameRendering: {
1776
1271
  enabled: boolean;
@@ -1779,8 +1274,8 @@ export declare const actionToggleEraserTool: {
1779
1274
  clip: boolean;
1780
1275
  };
1781
1276
  editingFrame: string | null;
1782
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1783
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1277
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1278
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1784
1279
  preferredSelectionTool: {
1785
1280
  type: "selection" | "lasso";
1786
1281
  initialized: boolean;
@@ -1793,49 +1288,53 @@ export declare const actionToggleEraserTool: {
1793
1288
  exportScale: number;
1794
1289
  currentItemStrokeColor: string;
1795
1290
  currentItemBackgroundColor: string;
1796
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1797
- currentItemStrokeWidth: number;
1798
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1291
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1292
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1293
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1799
1294
  currentItemRoughness: number;
1295
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1800
1296
  currentItemOpacity: number;
1801
- currentItemFontFamily: number;
1297
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1802
1298
  currentItemFontSize: number;
1803
- currentItemTextAlign: string;
1299
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1804
1300
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1805
1301
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1806
- currentHoveredFontFamily: number | null;
1302
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1807
1303
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1808
- currentItemArrowType: "round" | "sharp" | "elbow";
1304
+ currentItemArrowType: "sharp" | "round" | "elbow";
1809
1305
  viewBackgroundColor: string;
1810
1306
  scrollX: number;
1811
1307
  scrollY: number;
1308
+ scrollConstraints: import("../types").ScrollConstraints | null;
1812
1309
  cursorButton: "up" | "down";
1813
1310
  scrolledOutside: boolean;
1814
1311
  name: string | null;
1815
1312
  isResizing: boolean;
1816
1313
  isRotating: boolean;
1817
- zoom: Readonly<{
1818
- value: import("../types").NormalizedZoomValue;
1819
- }>;
1314
+ zoom: import("../types").Zoom;
1820
1315
  openMenu: "canvas" | null;
1821
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1316
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1822
1317
  openSidebar: {
1823
- name: string;
1824
- tab?: string | undefined;
1318
+ name: import("../types").SidebarName;
1319
+ tab?: import("../types").SidebarTabName;
1825
1320
  } | null;
1826
- openDialog: {
1321
+ openDialog: null | {
1827
1322
  name: "imageExport" | "help" | "jsonExport";
1828
1323
  } | {
1829
1324
  name: "ttd";
1830
- tab: "mermaid" | "text-to-diagram";
1325
+ tab: "text-to-diagram" | "mermaid";
1831
1326
  } | {
1832
1327
  name: "commandPalette";
1833
1328
  } | {
1834
1329
  name: "settings";
1835
1330
  } | {
1836
1331
  name: "elementLinkSelector";
1837
- sourceElementId: string;
1838
- } | null;
1332
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1333
+ } | {
1334
+ name: "charts";
1335
+ data: import("../charts").Spreadsheet;
1336
+ rawText: string;
1337
+ };
1839
1338
  defaultSidebarDockedPreference: boolean;
1840
1339
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1841
1340
  hoveredElementIds: Readonly<{
@@ -1847,9 +1346,9 @@ export declare const actionToggleEraserTool: {
1847
1346
  selectedElementsAreBeingDragged: boolean;
1848
1347
  shouldCacheIgnoreZoom: boolean;
1849
1348
  toast: {
1850
- message: string;
1851
- closable?: boolean | undefined;
1852
- duration?: number | undefined;
1349
+ message: React.ReactNode;
1350
+ closable?: boolean;
1351
+ duration?: number;
1853
1352
  } | null;
1854
1353
  zenModeEnabled: boolean;
1855
1354
  theme: import("@excalidraw/element/types").Theme;
@@ -1857,44 +1356,17 @@ export declare const actionToggleEraserTool: {
1857
1356
  gridStep: number;
1858
1357
  gridModeEnabled: boolean;
1859
1358
  viewModeEnabled: boolean;
1860
- editingGroupId: string | null;
1359
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1861
1360
  width: number;
1862
1361
  height: number;
1863
1362
  offsetTop: number;
1864
1363
  offsetLeft: number;
1865
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1866
- collaborators: Map<import("../types").SocketId, Readonly<{
1867
- pointer?: import("../types").CollaboratorPointer | undefined;
1868
- button?: "up" | "down" | undefined;
1869
- selectedElementIds?: Readonly<{
1870
- [id: string]: true;
1871
- }> | undefined;
1872
- username?: string | null | undefined;
1873
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1874
- color?: {
1875
- background: string;
1876
- stroke: string;
1877
- } | undefined;
1878
- avatarUrl?: string | undefined;
1879
- id?: string | undefined;
1880
- socketId?: import("../types").SocketId | undefined;
1881
- isCurrentUser?: boolean | undefined;
1882
- isInCall?: boolean | undefined;
1883
- isSpeaking?: boolean | undefined;
1884
- isMuted?: boolean | undefined;
1885
- }>>;
1364
+ fileHandle: FileSystemFileHandle | null;
1365
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1886
1366
  stats: {
1887
1367
  open: boolean;
1888
1368
  panels: number;
1889
1369
  };
1890
- currentChartType: import("@excalidraw/element/types").ChartType;
1891
- pasteDialog: {
1892
- shown: false;
1893
- data: null;
1894
- } | {
1895
- shown: true;
1896
- data: import("../charts").Spreadsheet;
1897
- };
1898
1370
  showHyperlinkPopup: false | "info" | "editor";
1899
1371
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1900
1372
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1906,9 +1378,9 @@ export declare const actionToggleEraserTool: {
1906
1378
  userToFollow: import("../types").UserToFollow | null;
1907
1379
  followedBy: Set<import("../types").SocketId>;
1908
1380
  isCropping: boolean;
1909
- croppingElementId: string | null;
1381
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1910
1382
  searchMatches: Readonly<{
1911
- focusedId: string | null;
1383
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1912
1384
  matches: readonly import("../types").SearchMatch[];
1913
1385
  }> | null;
1914
1386
  activeLockedId: string | null;
@@ -1919,9 +1391,9 @@ export declare const actionToggleEraserTool: {
1919
1391
  };
1920
1392
  captureUpdate: "IMMEDIATELY";
1921
1393
  };
1922
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1394
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
1923
1395
  } & {
1924
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1396
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
1925
1397
  };
1926
1398
  export declare const actionToggleLassoTool: {
1927
1399
  name: "toggleLassoTool";
@@ -1930,7 +1402,7 @@ export declare const actionToggleLassoTool: {
1930
1402
  trackEvent: {
1931
1403
  category: "toolbar";
1932
1404
  };
1933
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1405
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1934
1406
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1935
1407
  appState: {
1936
1408
  selectedElementIds: {};
@@ -1948,14 +1420,19 @@ export declare const actionToggleLassoTool: {
1948
1420
  } | null;
1949
1421
  showWelcomeScreen: boolean;
1950
1422
  isLoading: boolean;
1951
- errorMessage: import("react").ReactNode;
1423
+ errorMessage: React.ReactNode;
1952
1424
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1953
1425
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1954
1426
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1955
1427
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1956
1428
  isBindingEnabled: boolean;
1957
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1958
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1429
+ boxSelectionMode: import("../types").BoxSelectionMode;
1430
+ bindingPreference: "enabled" | "disabled";
1431
+ isMidpointSnappingEnabled: boolean;
1432
+ suggestedBinding: {
1433
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1434
+ midPoint?: import("@excalidraw/math").GlobalPoint;
1435
+ } | null;
1959
1436
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1960
1437
  frameRendering: {
1961
1438
  enabled: boolean;
@@ -1964,8 +1441,8 @@ export declare const actionToggleLassoTool: {
1964
1441
  clip: boolean;
1965
1442
  };
1966
1443
  editingFrame: string | null;
1967
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1968
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1444
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1445
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1969
1446
  preferredSelectionTool: {
1970
1447
  type: "selection" | "lasso";
1971
1448
  initialized: boolean;
@@ -1978,49 +1455,53 @@ export declare const actionToggleLassoTool: {
1978
1455
  exportScale: number;
1979
1456
  currentItemStrokeColor: string;
1980
1457
  currentItemBackgroundColor: string;
1981
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1982
- currentItemStrokeWidth: number;
1983
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1458
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1459
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1460
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1984
1461
  currentItemRoughness: number;
1462
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1985
1463
  currentItemOpacity: number;
1986
- currentItemFontFamily: number;
1464
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1987
1465
  currentItemFontSize: number;
1988
- currentItemTextAlign: string;
1466
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1989
1467
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1990
1468
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1991
- currentHoveredFontFamily: number | null;
1469
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1992
1470
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1993
- currentItemArrowType: "round" | "sharp" | "elbow";
1471
+ currentItemArrowType: "sharp" | "round" | "elbow";
1994
1472
  viewBackgroundColor: string;
1995
1473
  scrollX: number;
1996
1474
  scrollY: number;
1475
+ scrollConstraints: import("../types").ScrollConstraints | null;
1997
1476
  cursorButton: "up" | "down";
1998
1477
  scrolledOutside: boolean;
1999
1478
  name: string | null;
2000
1479
  isResizing: boolean;
2001
1480
  isRotating: boolean;
2002
- zoom: Readonly<{
2003
- value: import("../types").NormalizedZoomValue;
2004
- }>;
1481
+ zoom: import("../types").Zoom;
2005
1482
  openMenu: "canvas" | null;
2006
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1483
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2007
1484
  openSidebar: {
2008
- name: string;
2009
- tab?: string | undefined;
1485
+ name: import("../types").SidebarName;
1486
+ tab?: import("../types").SidebarTabName;
2010
1487
  } | null;
2011
- openDialog: {
1488
+ openDialog: null | {
2012
1489
  name: "imageExport" | "help" | "jsonExport";
2013
1490
  } | {
2014
1491
  name: "ttd";
2015
- tab: "mermaid" | "text-to-diagram";
1492
+ tab: "text-to-diagram" | "mermaid";
2016
1493
  } | {
2017
1494
  name: "commandPalette";
2018
1495
  } | {
2019
1496
  name: "settings";
2020
1497
  } | {
2021
1498
  name: "elementLinkSelector";
2022
- sourceElementId: string;
2023
- } | null;
1499
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1500
+ } | {
1501
+ name: "charts";
1502
+ data: import("../charts").Spreadsheet;
1503
+ rawText: string;
1504
+ };
2024
1505
  defaultSidebarDockedPreference: boolean;
2025
1506
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2026
1507
  hoveredElementIds: Readonly<{
@@ -2032,9 +1513,9 @@ export declare const actionToggleLassoTool: {
2032
1513
  selectedElementsAreBeingDragged: boolean;
2033
1514
  shouldCacheIgnoreZoom: boolean;
2034
1515
  toast: {
2035
- message: string;
2036
- closable?: boolean | undefined;
2037
- duration?: number | undefined;
1516
+ message: React.ReactNode;
1517
+ closable?: boolean;
1518
+ duration?: number;
2038
1519
  } | null;
2039
1520
  zenModeEnabled: boolean;
2040
1521
  theme: import("@excalidraw/element/types").Theme;
@@ -2042,44 +1523,17 @@ export declare const actionToggleLassoTool: {
2042
1523
  gridStep: number;
2043
1524
  gridModeEnabled: boolean;
2044
1525
  viewModeEnabled: boolean;
2045
- editingGroupId: string | null;
1526
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
2046
1527
  width: number;
2047
1528
  height: number;
2048
1529
  offsetTop: number;
2049
1530
  offsetLeft: number;
2050
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2051
- collaborators: Map<import("../types").SocketId, Readonly<{
2052
- pointer?: import("../types").CollaboratorPointer | undefined;
2053
- button?: "up" | "down" | undefined;
2054
- selectedElementIds?: Readonly<{
2055
- [id: string]: true;
2056
- }> | undefined;
2057
- username?: string | null | undefined;
2058
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2059
- color?: {
2060
- background: string;
2061
- stroke: string;
2062
- } | undefined;
2063
- avatarUrl?: string | undefined;
2064
- id?: string | undefined;
2065
- socketId?: import("../types").SocketId | undefined;
2066
- isCurrentUser?: boolean | undefined;
2067
- isInCall?: boolean | undefined;
2068
- isSpeaking?: boolean | undefined;
2069
- isMuted?: boolean | undefined;
2070
- }>>;
1531
+ fileHandle: FileSystemFileHandle | null;
1532
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
2071
1533
  stats: {
2072
1534
  open: boolean;
2073
1535
  panels: number;
2074
1536
  };
2075
- currentChartType: import("@excalidraw/element/types").ChartType;
2076
- pasteDialog: {
2077
- shown: false;
2078
- data: null;
2079
- } | {
2080
- shown: true;
2081
- data: import("../charts").Spreadsheet;
2082
- };
2083
1537
  showHyperlinkPopup: false | "info" | "editor";
2084
1538
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2085
1539
  snapLines: readonly import("../snapping").SnapLine[];
@@ -2091,9 +1545,9 @@ export declare const actionToggleLassoTool: {
2091
1545
  userToFollow: import("../types").UserToFollow | null;
2092
1546
  followedBy: Set<import("../types").SocketId>;
2093
1547
  isCropping: boolean;
2094
- croppingElementId: string | null;
1548
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
2095
1549
  searchMatches: Readonly<{
2096
- focusedId: string | null;
1550
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
2097
1551
  matches: readonly import("../types").SearchMatch[];
2098
1552
  }> | null;
2099
1553
  activeLockedId: string | null;
@@ -2132,14 +1586,19 @@ export declare const actionToggleHandTool: {
2132
1586
  } | null;
2133
1587
  showWelcomeScreen: boolean;
2134
1588
  isLoading: boolean;
2135
- errorMessage: import("react").ReactNode;
1589
+ errorMessage: React.ReactNode;
2136
1590
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2137
1591
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2138
1592
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2139
1593
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2140
1594
  isBindingEnabled: boolean;
2141
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2142
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1595
+ boxSelectionMode: import("../types").BoxSelectionMode;
1596
+ bindingPreference: "enabled" | "disabled";
1597
+ isMidpointSnappingEnabled: boolean;
1598
+ suggestedBinding: {
1599
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1600
+ midPoint?: import("@excalidraw/math").GlobalPoint;
1601
+ } | null;
2143
1602
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2144
1603
  frameRendering: {
2145
1604
  enabled: boolean;
@@ -2148,8 +1607,8 @@ export declare const actionToggleHandTool: {
2148
1607
  clip: boolean;
2149
1608
  };
2150
1609
  editingFrame: string | null;
2151
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2152
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1610
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1611
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
2153
1612
  preferredSelectionTool: {
2154
1613
  type: "selection" | "lasso";
2155
1614
  initialized: boolean;
@@ -2162,49 +1621,53 @@ export declare const actionToggleHandTool: {
2162
1621
  exportScale: number;
2163
1622
  currentItemStrokeColor: string;
2164
1623
  currentItemBackgroundColor: string;
2165
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2166
- currentItemStrokeWidth: number;
2167
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1624
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1625
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1626
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
2168
1627
  currentItemRoughness: number;
1628
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
2169
1629
  currentItemOpacity: number;
2170
- currentItemFontFamily: number;
1630
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
2171
1631
  currentItemFontSize: number;
2172
- currentItemTextAlign: string;
1632
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
2173
1633
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2174
1634
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2175
- currentHoveredFontFamily: number | null;
1635
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
2176
1636
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2177
- currentItemArrowType: "round" | "sharp" | "elbow";
1637
+ currentItemArrowType: "sharp" | "round" | "elbow";
2178
1638
  viewBackgroundColor: string;
2179
1639
  scrollX: number;
2180
1640
  scrollY: number;
1641
+ scrollConstraints: import("../types").ScrollConstraints | null;
2181
1642
  cursorButton: "up" | "down";
2182
1643
  scrolledOutside: boolean;
2183
1644
  name: string | null;
2184
1645
  isResizing: boolean;
2185
1646
  isRotating: boolean;
2186
- zoom: Readonly<{
2187
- value: import("../types").NormalizedZoomValue;
2188
- }>;
1647
+ zoom: import("../types").Zoom;
2189
1648
  openMenu: "canvas" | null;
2190
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1649
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2191
1650
  openSidebar: {
2192
- name: string;
2193
- tab?: string | undefined;
1651
+ name: import("../types").SidebarName;
1652
+ tab?: import("../types").SidebarTabName;
2194
1653
  } | null;
2195
- openDialog: {
1654
+ openDialog: null | {
2196
1655
  name: "imageExport" | "help" | "jsonExport";
2197
1656
  } | {
2198
1657
  name: "ttd";
2199
- tab: "mermaid" | "text-to-diagram";
1658
+ tab: "text-to-diagram" | "mermaid";
2200
1659
  } | {
2201
1660
  name: "commandPalette";
2202
1661
  } | {
2203
1662
  name: "settings";
2204
1663
  } | {
2205
1664
  name: "elementLinkSelector";
2206
- sourceElementId: string;
2207
- } | null;
1665
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1666
+ } | {
1667
+ name: "charts";
1668
+ data: import("../charts").Spreadsheet;
1669
+ rawText: string;
1670
+ };
2208
1671
  defaultSidebarDockedPreference: boolean;
2209
1672
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2210
1673
  hoveredElementIds: Readonly<{
@@ -2216,9 +1679,9 @@ export declare const actionToggleHandTool: {
2216
1679
  selectedElementsAreBeingDragged: boolean;
2217
1680
  shouldCacheIgnoreZoom: boolean;
2218
1681
  toast: {
2219
- message: string;
2220
- closable?: boolean | undefined;
2221
- duration?: number | undefined;
1682
+ message: React.ReactNode;
1683
+ closable?: boolean;
1684
+ duration?: number;
2222
1685
  } | null;
2223
1686
  zenModeEnabled: boolean;
2224
1687
  theme: import("@excalidraw/element/types").Theme;
@@ -2226,44 +1689,17 @@ export declare const actionToggleHandTool: {
2226
1689
  gridStep: number;
2227
1690
  gridModeEnabled: boolean;
2228
1691
  viewModeEnabled: boolean;
2229
- editingGroupId: string | null;
1692
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
2230
1693
  width: number;
2231
1694
  height: number;
2232
1695
  offsetTop: number;
2233
1696
  offsetLeft: number;
2234
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2235
- collaborators: Map<import("../types").SocketId, Readonly<{
2236
- pointer?: import("../types").CollaboratorPointer | undefined;
2237
- button?: "up" | "down" | undefined;
2238
- selectedElementIds?: Readonly<{
2239
- [id: string]: true;
2240
- }> | undefined;
2241
- username?: string | null | undefined;
2242
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2243
- color?: {
2244
- background: string;
2245
- stroke: string;
2246
- } | undefined;
2247
- avatarUrl?: string | undefined;
2248
- id?: string | undefined;
2249
- socketId?: import("../types").SocketId | undefined;
2250
- isCurrentUser?: boolean | undefined;
2251
- isInCall?: boolean | undefined;
2252
- isSpeaking?: boolean | undefined;
2253
- isMuted?: boolean | undefined;
2254
- }>>;
1697
+ fileHandle: FileSystemFileHandle | null;
1698
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
2255
1699
  stats: {
2256
1700
  open: boolean;
2257
1701
  panels: number;
2258
1702
  };
2259
- currentChartType: import("@excalidraw/element/types").ChartType;
2260
- pasteDialog: {
2261
- shown: false;
2262
- data: null;
2263
- } | {
2264
- shown: true;
2265
- data: import("../charts").Spreadsheet;
2266
- };
2267
1703
  showHyperlinkPopup: false | "info" | "editor";
2268
1704
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2269
1705
  snapLines: readonly import("../snapping").SnapLine[];
@@ -2275,9 +1711,9 @@ export declare const actionToggleHandTool: {
2275
1711
  userToFollow: import("../types").UserToFollow | null;
2276
1712
  followedBy: Set<import("../types").SocketId>;
2277
1713
  isCropping: boolean;
2278
- croppingElementId: string | null;
1714
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
2279
1715
  searchMatches: Readonly<{
2280
- focusedId: string | null;
1716
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
2281
1717
  matches: readonly import("../types").SearchMatch[];
2282
1718
  }> | null;
2283
1719
  activeLockedId: string | null;