@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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
2
  import type { AppState } from "../types";
4
3
  export declare const actionToggleElementLock: {
@@ -20,7 +19,7 @@ export declare const actionToggleElementLock: {
20
19
  };
21
20
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
22
21
  lockedMultiSelections: {
23
- [x: string]: true;
22
+ [groupId: string]: true;
24
23
  };
25
24
  activeLockedId: string | null;
26
25
  contextMenu: {
@@ -30,18 +29,23 @@ export declare const actionToggleElementLock: {
30
29
  } | null;
31
30
  showWelcomeScreen: boolean;
32
31
  isLoading: boolean;
33
- errorMessage: import("react").ReactNode;
32
+ errorMessage: React.ReactNode;
34
33
  activeEmbeddable: {
35
34
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
36
- state: "active" | "hover";
35
+ state: "hover" | "active";
37
36
  } | null;
38
37
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
39
38
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
39
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
41
40
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
41
  isBindingEnabled: boolean;
43
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
44
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
42
+ boxSelectionMode: import("../types").BoxSelectionMode;
43
+ bindingPreference: "enabled" | "disabled";
44
+ isMidpointSnappingEnabled: boolean;
45
+ suggestedBinding: {
46
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
47
+ midPoint?: import("@excalidraw/math").GlobalPoint;
48
+ } | null;
45
49
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
46
50
  frameRendering: {
47
51
  enabled: boolean;
@@ -51,7 +55,7 @@ export declare const actionToggleElementLock: {
51
55
  };
52
56
  editingFrame: string | null;
53
57
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
54
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
58
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
55
59
  activeTool: {
56
60
  lastActiveTool: import("../types").ActiveTool | null;
57
61
  locked: boolean;
@@ -69,49 +73,53 @@ export declare const actionToggleElementLock: {
69
73
  exportScale: number;
70
74
  currentItemStrokeColor: string;
71
75
  currentItemBackgroundColor: string;
72
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
73
- currentItemStrokeWidth: number;
74
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
76
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
77
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
78
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
75
79
  currentItemRoughness: number;
80
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
76
81
  currentItemOpacity: number;
77
- currentItemFontFamily: number;
82
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
78
83
  currentItemFontSize: number;
79
- currentItemTextAlign: string;
84
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
80
85
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
81
86
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
82
- currentHoveredFontFamily: number | null;
87
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
83
88
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
84
- currentItemArrowType: "round" | "sharp" | "elbow";
89
+ currentItemArrowType: "sharp" | "round" | "elbow";
85
90
  viewBackgroundColor: string;
86
91
  scrollX: number;
87
92
  scrollY: number;
93
+ scrollConstraints: import("../types").ScrollConstraints | null;
88
94
  cursorButton: "up" | "down";
89
95
  scrolledOutside: boolean;
90
96
  name: string | null;
91
97
  isResizing: boolean;
92
98
  isRotating: boolean;
93
- zoom: Readonly<{
94
- value: import("../types").NormalizedZoomValue;
95
- }>;
99
+ zoom: import("../types").Zoom;
96
100
  openMenu: "canvas" | null;
97
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
101
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
98
102
  openSidebar: {
99
- name: string;
100
- tab?: string | undefined;
103
+ name: import("../types").SidebarName;
104
+ tab?: import("../types").SidebarTabName;
101
105
  } | null;
102
- openDialog: {
106
+ openDialog: null | {
103
107
  name: "imageExport" | "help" | "jsonExport";
104
108
  } | {
105
109
  name: "ttd";
106
- tab: "mermaid" | "text-to-diagram";
110
+ tab: "text-to-diagram" | "mermaid";
107
111
  } | {
108
112
  name: "commandPalette";
109
113
  } | {
110
114
  name: "settings";
111
115
  } | {
112
116
  name: "elementLinkSelector";
113
- sourceElementId: string;
114
- } | null;
117
+ sourceElementId: ExcalidrawElement["id"];
118
+ } | {
119
+ name: "charts";
120
+ data: import("../charts").Spreadsheet;
121
+ rawText: string;
122
+ };
115
123
  defaultSidebarDockedPreference: boolean;
116
124
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
117
125
  hoveredElementIds: Readonly<{
@@ -123,9 +131,9 @@ export declare const actionToggleElementLock: {
123
131
  selectedElementsAreBeingDragged: boolean;
124
132
  shouldCacheIgnoreZoom: boolean;
125
133
  toast: {
126
- message: string;
127
- closable?: boolean | undefined;
128
- duration?: number | undefined;
134
+ message: React.ReactNode;
135
+ closable?: boolean;
136
+ duration?: number;
129
137
  } | null;
130
138
  zenModeEnabled: boolean;
131
139
  theme: import("@excalidraw/element/types").Theme;
@@ -133,44 +141,17 @@ export declare const actionToggleElementLock: {
133
141
  gridStep: number;
134
142
  gridModeEnabled: boolean;
135
143
  viewModeEnabled: boolean;
136
- editingGroupId: string | null;
144
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
137
145
  width: number;
138
146
  height: number;
139
147
  offsetTop: number;
140
148
  offsetLeft: number;
141
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
142
- collaborators: Map<import("../types").SocketId, Readonly<{
143
- pointer?: import("../types").CollaboratorPointer | undefined;
144
- button?: "up" | "down" | undefined;
145
- selectedElementIds?: Readonly<{
146
- [id: string]: true;
147
- }> | undefined;
148
- username?: string | null | undefined;
149
- userState?: import("@excalidraw/common").UserIdleState | undefined;
150
- color?: {
151
- background: string;
152
- stroke: string;
153
- } | undefined;
154
- avatarUrl?: string | undefined;
155
- id?: string | undefined;
156
- socketId?: import("../types").SocketId | undefined;
157
- isCurrentUser?: boolean | undefined;
158
- isInCall?: boolean | undefined;
159
- isSpeaking?: boolean | undefined;
160
- isMuted?: boolean | undefined;
161
- }>>;
149
+ fileHandle: FileSystemFileHandle | null;
150
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
162
151
  stats: {
163
152
  open: boolean;
164
153
  panels: number;
165
154
  };
166
- currentChartType: import("@excalidraw/element/types").ChartType;
167
- pasteDialog: {
168
- shown: false;
169
- data: null;
170
- } | {
171
- shown: true;
172
- data: import("../charts").Spreadsheet;
173
- };
174
155
  showHyperlinkPopup: false | "info" | "editor";
175
156
  snapLines: readonly import("../snapping").SnapLine[];
176
157
  originSnapOffset: {
@@ -181,9 +162,9 @@ export declare const actionToggleElementLock: {
181
162
  userToFollow: import("../types").UserToFollow | null;
182
163
  followedBy: Set<import("../types").SocketId>;
183
164
  isCropping: boolean;
184
- croppingElementId: string | null;
165
+ croppingElementId: ExcalidrawElement["id"] | null;
185
166
  searchMatches: Readonly<{
186
- focusedId: string | null;
167
+ focusedId: ExcalidrawElement["id"] | null;
187
168
  matches: readonly import("../types").SearchMatch[];
188
169
  }> | null;
189
170
  bindMode: import("@excalidraw/element/types").BindMode;
@@ -220,18 +201,23 @@ export declare const actionUnlockAllElements: {
220
201
  } | null;
221
202
  showWelcomeScreen: boolean;
222
203
  isLoading: boolean;
223
- errorMessage: import("react").ReactNode;
204
+ errorMessage: React.ReactNode;
224
205
  activeEmbeddable: {
225
206
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
226
- state: "active" | "hover";
207
+ state: "hover" | "active";
227
208
  } | null;
228
209
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
229
210
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
230
211
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
231
212
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
232
213
  isBindingEnabled: boolean;
233
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
234
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
214
+ boxSelectionMode: import("../types").BoxSelectionMode;
215
+ bindingPreference: "enabled" | "disabled";
216
+ isMidpointSnappingEnabled: boolean;
217
+ suggestedBinding: {
218
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
219
+ midPoint?: import("@excalidraw/math").GlobalPoint;
220
+ } | null;
235
221
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
236
222
  frameRendering: {
237
223
  enabled: boolean;
@@ -241,7 +227,7 @@ export declare const actionUnlockAllElements: {
241
227
  };
242
228
  editingFrame: string | null;
243
229
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
244
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
230
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
245
231
  activeTool: {
246
232
  lastActiveTool: import("../types").ActiveTool | null;
247
233
  locked: boolean;
@@ -259,49 +245,53 @@ export declare const actionUnlockAllElements: {
259
245
  exportScale: number;
260
246
  currentItemStrokeColor: string;
261
247
  currentItemBackgroundColor: string;
262
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
263
- currentItemStrokeWidth: number;
264
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
248
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
249
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
250
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
265
251
  currentItemRoughness: number;
252
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
266
253
  currentItemOpacity: number;
267
- currentItemFontFamily: number;
254
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
268
255
  currentItemFontSize: number;
269
- currentItemTextAlign: string;
256
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
270
257
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
271
258
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
272
- currentHoveredFontFamily: number | null;
259
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
273
260
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
274
- currentItemArrowType: "round" | "sharp" | "elbow";
261
+ currentItemArrowType: "sharp" | "round" | "elbow";
275
262
  viewBackgroundColor: string;
276
263
  scrollX: number;
277
264
  scrollY: number;
265
+ scrollConstraints: import("../types").ScrollConstraints | null;
278
266
  cursorButton: "up" | "down";
279
267
  scrolledOutside: boolean;
280
268
  name: string | null;
281
269
  isResizing: boolean;
282
270
  isRotating: boolean;
283
- zoom: Readonly<{
284
- value: import("../types").NormalizedZoomValue;
285
- }>;
271
+ zoom: import("../types").Zoom;
286
272
  openMenu: "canvas" | null;
287
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
273
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
288
274
  openSidebar: {
289
- name: string;
290
- tab?: string | undefined;
275
+ name: import("../types").SidebarName;
276
+ tab?: import("../types").SidebarTabName;
291
277
  } | null;
292
- openDialog: {
278
+ openDialog: null | {
293
279
  name: "imageExport" | "help" | "jsonExport";
294
280
  } | {
295
281
  name: "ttd";
296
- tab: "mermaid" | "text-to-diagram";
282
+ tab: "text-to-diagram" | "mermaid";
297
283
  } | {
298
284
  name: "commandPalette";
299
285
  } | {
300
286
  name: "settings";
301
287
  } | {
302
288
  name: "elementLinkSelector";
303
- sourceElementId: string;
304
- } | null;
289
+ sourceElementId: ExcalidrawElement["id"];
290
+ } | {
291
+ name: "charts";
292
+ data: import("../charts").Spreadsheet;
293
+ rawText: string;
294
+ };
305
295
  defaultSidebarDockedPreference: boolean;
306
296
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
307
297
  hoveredElementIds: Readonly<{
@@ -313,9 +303,9 @@ export declare const actionUnlockAllElements: {
313
303
  selectedElementsAreBeingDragged: boolean;
314
304
  shouldCacheIgnoreZoom: boolean;
315
305
  toast: {
316
- message: string;
317
- closable?: boolean | undefined;
318
- duration?: number | undefined;
306
+ message: React.ReactNode;
307
+ closable?: boolean;
308
+ duration?: number;
319
309
  } | null;
320
310
  zenModeEnabled: boolean;
321
311
  theme: import("@excalidraw/element/types").Theme;
@@ -323,44 +313,17 @@ export declare const actionUnlockAllElements: {
323
313
  gridStep: number;
324
314
  gridModeEnabled: boolean;
325
315
  viewModeEnabled: boolean;
326
- editingGroupId: string | null;
316
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
327
317
  width: number;
328
318
  height: number;
329
319
  offsetTop: number;
330
320
  offsetLeft: number;
331
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
332
- collaborators: Map<import("../types").SocketId, Readonly<{
333
- pointer?: import("../types").CollaboratorPointer | undefined;
334
- button?: "up" | "down" | undefined;
335
- selectedElementIds?: Readonly<{
336
- [id: string]: true;
337
- }> | undefined;
338
- username?: string | null | undefined;
339
- userState?: import("@excalidraw/common").UserIdleState | undefined;
340
- color?: {
341
- background: string;
342
- stroke: string;
343
- } | undefined;
344
- avatarUrl?: string | undefined;
345
- id?: string | undefined;
346
- socketId?: import("../types").SocketId | undefined;
347
- isCurrentUser?: boolean | undefined;
348
- isInCall?: boolean | undefined;
349
- isSpeaking?: boolean | undefined;
350
- isMuted?: boolean | undefined;
351
- }>>;
321
+ fileHandle: FileSystemFileHandle | null;
322
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
352
323
  stats: {
353
324
  open: boolean;
354
325
  panels: number;
355
326
  };
356
- currentChartType: import("@excalidraw/element/types").ChartType;
357
- pasteDialog: {
358
- shown: false;
359
- data: null;
360
- } | {
361
- shown: true;
362
- data: import("../charts").Spreadsheet;
363
- };
364
327
  showHyperlinkPopup: false | "info" | "editor";
365
328
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
366
329
  snapLines: readonly import("../snapping").SnapLine[];
@@ -372,9 +335,9 @@ export declare const actionUnlockAllElements: {
372
335
  userToFollow: import("../types").UserToFollow | null;
373
336
  followedBy: Set<import("../types").SocketId>;
374
337
  isCropping: boolean;
375
- croppingElementId: string | null;
338
+ croppingElementId: ExcalidrawElement["id"] | null;
376
339
  searchMatches: Readonly<{
377
- focusedId: string | null;
340
+ focusedId: ExcalidrawElement["id"] | null;
378
341
  matches: readonly import("../types").SearchMatch[];
379
342
  }> | null;
380
343
  bindMode: import("@excalidraw/element/types").BindMode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const actionSetEmbeddableAsActiveTool: {
3
2
  name: "setEmbeddableAsActiveTool";
4
3
  trackEvent: {
@@ -6,8 +5,8 @@ export declare const actionSetEmbeddableAsActiveTool: {
6
5
  };
7
6
  target: string;
8
7
  label: string;
9
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
10
- elements: readonly import("../../element/src/types").OrderedExcalidrawElement[];
8
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
9
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
11
10
  appState: {
12
11
  activeTool: {
13
12
  lastActiveTool: import("../types").ActiveTool | null;
@@ -21,19 +20,24 @@ export declare const actionSetEmbeddableAsActiveTool: {
21
20
  } | null;
22
21
  showWelcomeScreen: boolean;
23
22
  isLoading: boolean;
24
- errorMessage: import("react").ReactNode;
23
+ errorMessage: React.ReactNode;
25
24
  activeEmbeddable: {
26
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
27
- state: "active" | "hover";
25
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
26
+ state: "hover" | "active";
28
27
  } | null;
29
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
30
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
31
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
32
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
28
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
29
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
31
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
33
32
  isBindingEnabled: boolean;
34
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
35
- suggestedBinding: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
36
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
33
+ boxSelectionMode: import("../types").BoxSelectionMode;
34
+ bindingPreference: "enabled" | "disabled";
35
+ isMidpointSnappingEnabled: boolean;
36
+ suggestedBinding: {
37
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
38
+ midPoint?: import("@excalidraw/math").GlobalPoint;
39
+ } | null;
40
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
37
41
  frameRendering: {
38
42
  enabled: boolean;
39
43
  name: boolean;
@@ -41,8 +45,8 @@ export declare const actionSetEmbeddableAsActiveTool: {
41
45
  clip: boolean;
42
46
  };
43
47
  editingFrame: string | null;
44
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
45
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
48
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
49
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
46
50
  preferredSelectionTool: {
47
51
  type: "selection" | "lasso";
48
52
  initialized: boolean;
@@ -55,51 +59,55 @@ export declare const actionSetEmbeddableAsActiveTool: {
55
59
  exportScale: number;
56
60
  currentItemStrokeColor: string;
57
61
  currentItemBackgroundColor: string;
58
- currentItemFillStyle: import("../../element/src/types").FillStyle;
59
- currentItemStrokeWidth: number;
60
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
62
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
63
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
64
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
61
65
  currentItemRoughness: number;
66
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
62
67
  currentItemOpacity: number;
63
- currentItemFontFamily: number;
68
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
64
69
  currentItemFontSize: number;
65
- currentItemTextAlign: string;
66
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
67
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
68
- currentHoveredFontFamily: number | null;
69
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
70
- currentItemArrowType: "round" | "sharp" | "elbow";
70
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
71
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
72
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
73
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
74
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
75
+ currentItemArrowType: "sharp" | "round" | "elbow";
71
76
  viewBackgroundColor: string;
72
77
  scrollX: number;
73
78
  scrollY: number;
79
+ scrollConstraints: import("../types").ScrollConstraints | null;
74
80
  cursorButton: "up" | "down";
75
81
  scrolledOutside: boolean;
76
82
  name: string | null;
77
83
  isResizing: boolean;
78
84
  isRotating: boolean;
79
- zoom: Readonly<{
80
- value: import("../types").NormalizedZoomValue;
81
- }>;
85
+ zoom: import("../types").Zoom;
82
86
  openMenu: "canvas" | null;
83
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
87
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
84
88
  openSidebar: {
85
- name: string;
86
- tab?: string | undefined;
89
+ name: import("../types").SidebarName;
90
+ tab?: import("../types").SidebarTabName;
87
91
  } | null;
88
- openDialog: {
92
+ openDialog: null | {
89
93
  name: "imageExport" | "help" | "jsonExport";
90
94
  } | {
91
95
  name: "ttd";
92
- tab: "mermaid" | "text-to-diagram";
96
+ tab: "text-to-diagram" | "mermaid";
93
97
  } | {
94
98
  name: "commandPalette";
95
99
  } | {
96
100
  name: "settings";
97
101
  } | {
98
102
  name: "elementLinkSelector";
99
- sourceElementId: string;
100
- } | null;
103
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
104
+ } | {
105
+ name: "charts";
106
+ data: import("../charts").Spreadsheet;
107
+ rawText: string;
108
+ };
101
109
  defaultSidebarDockedPreference: boolean;
102
- lastPointerDownWith: import("../../element/src/types").PointerType;
110
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
103
111
  selectedElementIds: Readonly<{
104
112
  [id: string]: true;
105
113
  }>;
@@ -112,12 +120,12 @@ export declare const actionSetEmbeddableAsActiveTool: {
112
120
  selectedElementsAreBeingDragged: boolean;
113
121
  shouldCacheIgnoreZoom: boolean;
114
122
  toast: {
115
- message: string;
116
- closable?: boolean | undefined;
117
- duration?: number | undefined;
123
+ message: React.ReactNode;
124
+ closable?: boolean;
125
+ duration?: number;
118
126
  } | null;
119
127
  zenModeEnabled: boolean;
120
- theme: import("../../element/src/types").Theme;
128
+ theme: import("@excalidraw/element/types").Theme;
121
129
  gridSize: number;
122
130
  gridStep: number;
123
131
  gridModeEnabled: boolean;
@@ -125,44 +133,17 @@ export declare const actionSetEmbeddableAsActiveTool: {
125
133
  selectedGroupIds: {
126
134
  [groupId: string]: boolean;
127
135
  };
128
- editingGroupId: string | null;
136
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
129
137
  width: number;
130
138
  height: number;
131
139
  offsetTop: number;
132
140
  offsetLeft: number;
133
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
134
- collaborators: Map<import("../types").SocketId, Readonly<{
135
- pointer?: import("../types").CollaboratorPointer | undefined;
136
- button?: "up" | "down" | undefined;
137
- selectedElementIds?: Readonly<{
138
- [id: string]: true;
139
- }> | undefined;
140
- username?: string | null | undefined;
141
- userState?: import("@excalidraw/common").UserIdleState | undefined;
142
- color?: {
143
- background: string;
144
- stroke: string;
145
- } | undefined;
146
- avatarUrl?: string | undefined;
147
- id?: string | undefined;
148
- socketId?: import("../types").SocketId | undefined;
149
- isCurrentUser?: boolean | undefined;
150
- isInCall?: boolean | undefined;
151
- isSpeaking?: boolean | undefined;
152
- isMuted?: boolean | undefined;
153
- }>>;
141
+ fileHandle: FileSystemFileHandle | null;
142
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
154
143
  stats: {
155
144
  open: boolean;
156
145
  panels: number;
157
146
  };
158
- currentChartType: import("../../element/src/types").ChartType;
159
- pasteDialog: {
160
- shown: false;
161
- data: null;
162
- } | {
163
- shown: true;
164
- data: import("../charts").Spreadsheet;
165
- };
166
147
  showHyperlinkPopup: false | "info" | "editor";
167
148
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
168
149
  snapLines: readonly import("../snapping").SnapLine[];
@@ -174,16 +155,16 @@ export declare const actionSetEmbeddableAsActiveTool: {
174
155
  userToFollow: import("../types").UserToFollow | null;
175
156
  followedBy: Set<import("../types").SocketId>;
176
157
  isCropping: boolean;
177
- croppingElementId: string | null;
158
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
178
159
  searchMatches: Readonly<{
179
- focusedId: string | null;
160
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
180
161
  matches: readonly import("../types").SearchMatch[];
181
162
  }> | null;
182
163
  activeLockedId: string | null;
183
164
  lockedMultiSelections: {
184
165
  [groupId: string]: true;
185
166
  };
186
- bindMode: import("../../element/src/types").BindMode;
167
+ bindMode: import("@excalidraw/element/types").BindMode;
187
168
  };
188
169
  captureUpdate: "EVENTUALLY";
189
170
  };