@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,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  export declare const actionAddToLibrary: {
3
2
  name: "addToLibrary";
4
3
  trackEvent: {
5
4
  category: "element";
6
5
  };
7
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
6
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
8
7
  captureUpdate: "EVENTUALLY";
9
8
  appState: {
10
9
  toast: {
@@ -17,19 +16,24 @@ export declare const actionAddToLibrary: {
17
16
  } | null;
18
17
  showWelcomeScreen: boolean;
19
18
  isLoading: boolean;
20
- errorMessage: import("react").ReactNode;
19
+ errorMessage: React.ReactNode;
21
20
  activeEmbeddable: {
22
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
23
- state: "active" | "hover";
21
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
22
+ state: "hover" | "active";
24
23
  } | null;
25
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
26
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
27
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
28
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
24
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
25
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
27
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
28
  isBindingEnabled: boolean;
30
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
31
- suggestedBinding: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
32
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
29
+ boxSelectionMode: import("../types").BoxSelectionMode;
30
+ bindingPreference: "enabled" | "disabled";
31
+ isMidpointSnappingEnabled: boolean;
32
+ suggestedBinding: {
33
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
34
+ midPoint?: import("@excalidraw/math").GlobalPoint;
35
+ } | null;
36
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
37
  frameRendering: {
34
38
  enabled: boolean;
35
39
  name: boolean;
@@ -37,8 +41,8 @@ export declare const actionAddToLibrary: {
37
41
  clip: boolean;
38
42
  };
39
43
  editingFrame: string | null;
40
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
41
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
44
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
45
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
42
46
  activeTool: {
43
47
  lastActiveTool: import("../types").ActiveTool | null;
44
48
  locked: boolean;
@@ -56,51 +60,55 @@ export declare const actionAddToLibrary: {
56
60
  exportScale: number;
57
61
  currentItemStrokeColor: string;
58
62
  currentItemBackgroundColor: string;
59
- currentItemFillStyle: import("../../element/src/types").FillStyle;
60
- currentItemStrokeWidth: number;
61
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
63
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
64
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
65
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
62
66
  currentItemRoughness: number;
67
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
63
68
  currentItemOpacity: number;
64
- currentItemFontFamily: number;
69
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
65
70
  currentItemFontSize: number;
66
- currentItemTextAlign: string;
67
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
68
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
69
- currentHoveredFontFamily: number | null;
70
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
71
- currentItemArrowType: "round" | "sharp" | "elbow";
71
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
72
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
73
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
74
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
75
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
76
+ currentItemArrowType: "sharp" | "round" | "elbow";
72
77
  viewBackgroundColor: string;
73
78
  scrollX: number;
74
79
  scrollY: number;
80
+ scrollConstraints: import("../types").ScrollConstraints | null;
75
81
  cursorButton: "up" | "down";
76
82
  scrolledOutside: boolean;
77
83
  name: string | null;
78
84
  isResizing: boolean;
79
85
  isRotating: boolean;
80
- zoom: Readonly<{
81
- value: import("../types").NormalizedZoomValue;
82
- }>;
86
+ zoom: import("../types").Zoom;
83
87
  openMenu: "canvas" | null;
84
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
88
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
85
89
  openSidebar: {
86
- name: string;
87
- tab?: string | undefined;
90
+ name: import("../types").SidebarName;
91
+ tab?: import("../types").SidebarTabName;
88
92
  } | null;
89
- openDialog: {
93
+ openDialog: null | {
90
94
  name: "imageExport" | "help" | "jsonExport";
91
95
  } | {
92
96
  name: "ttd";
93
- tab: "mermaid" | "text-to-diagram";
97
+ tab: "text-to-diagram" | "mermaid";
94
98
  } | {
95
99
  name: "commandPalette";
96
100
  } | {
97
101
  name: "settings";
98
102
  } | {
99
103
  name: "elementLinkSelector";
100
- sourceElementId: string;
101
- } | null;
104
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
105
+ } | {
106
+ name: "charts";
107
+ data: import("../charts").Spreadsheet;
108
+ rawText: string;
109
+ };
102
110
  defaultSidebarDockedPreference: boolean;
103
- lastPointerDownWith: import("../../element/src/types").PointerType;
111
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
104
112
  selectedElementIds: Readonly<{
105
113
  [id: string]: true;
106
114
  }>;
@@ -113,7 +121,7 @@ export declare const actionAddToLibrary: {
113
121
  selectedElementsAreBeingDragged: boolean;
114
122
  shouldCacheIgnoreZoom: boolean;
115
123
  zenModeEnabled: boolean;
116
- theme: import("../../element/src/types").Theme;
124
+ theme: import("@excalidraw/element/types").Theme;
117
125
  gridSize: number;
118
126
  gridStep: number;
119
127
  gridModeEnabled: boolean;
@@ -121,44 +129,17 @@ export declare const actionAddToLibrary: {
121
129
  selectedGroupIds: {
122
130
  [groupId: string]: boolean;
123
131
  };
124
- editingGroupId: string | null;
132
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
125
133
  width: number;
126
134
  height: number;
127
135
  offsetTop: number;
128
136
  offsetLeft: number;
129
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
130
- collaborators: Map<import("../types").SocketId, Readonly<{
131
- pointer?: import("../types").CollaboratorPointer | undefined;
132
- button?: "up" | "down" | undefined;
133
- selectedElementIds?: Readonly<{
134
- [id: string]: true;
135
- }> | undefined;
136
- username?: string | null | undefined;
137
- userState?: import("@excalidraw/common").UserIdleState | undefined;
138
- color?: {
139
- background: string;
140
- stroke: string;
141
- } | undefined;
142
- avatarUrl?: string | undefined;
143
- id?: string | undefined;
144
- socketId?: import("../types").SocketId | undefined;
145
- isCurrentUser?: boolean | undefined;
146
- isInCall?: boolean | undefined;
147
- isSpeaking?: boolean | undefined;
148
- isMuted?: boolean | undefined;
149
- }>>;
137
+ fileHandle: FileSystemFileHandle | null;
138
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
150
139
  stats: {
151
140
  open: boolean;
152
141
  panels: number;
153
142
  };
154
- currentChartType: import("../../element/src/types").ChartType;
155
- pasteDialog: {
156
- shown: false;
157
- data: null;
158
- } | {
159
- shown: true;
160
- data: import("../charts").Spreadsheet;
161
- };
162
143
  showHyperlinkPopup: false | "info" | "editor";
163
144
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
164
145
  snapLines: readonly import("../snapping").SnapLine[];
@@ -170,16 +151,16 @@ export declare const actionAddToLibrary: {
170
151
  userToFollow: import("../types").UserToFollow | null;
171
152
  followedBy: Set<import("../types").SocketId>;
172
153
  isCropping: boolean;
173
- croppingElementId: string | null;
154
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
174
155
  searchMatches: Readonly<{
175
- focusedId: string | null;
156
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
176
157
  matches: readonly import("../types").SearchMatch[];
177
158
  }> | null;
178
159
  activeLockedId: string | null;
179
160
  lockedMultiSelections: {
180
161
  [groupId: string]: true;
181
162
  };
182
- bindMode: import("../../element/src/types").BindMode;
163
+ bindMode: import("@excalidraw/element/types").BindMode;
183
164
  };
184
165
  } | {
185
166
  captureUpdate: "EVENTUALLY";
@@ -193,17 +174,22 @@ export declare const actionAddToLibrary: {
193
174
  showWelcomeScreen: boolean;
194
175
  isLoading: boolean;
195
176
  activeEmbeddable: {
196
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
197
- state: "active" | "hover";
177
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
178
+ state: "hover" | "active";
198
179
  } | null;
199
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
200
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
201
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
202
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
180
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
181
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
182
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
183
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
203
184
  isBindingEnabled: boolean;
204
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
205
- suggestedBinding: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
206
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
185
+ boxSelectionMode: import("../types").BoxSelectionMode;
186
+ bindingPreference: "enabled" | "disabled";
187
+ isMidpointSnappingEnabled: boolean;
188
+ suggestedBinding: {
189
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
190
+ midPoint?: import("@excalidraw/math").GlobalPoint;
191
+ } | null;
192
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
207
193
  frameRendering: {
208
194
  enabled: boolean;
209
195
  name: boolean;
@@ -211,8 +197,8 @@ export declare const actionAddToLibrary: {
211
197
  clip: boolean;
212
198
  };
213
199
  editingFrame: string | null;
214
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
215
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
200
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
201
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
216
202
  activeTool: {
217
203
  lastActiveTool: import("../types").ActiveTool | null;
218
204
  locked: boolean;
@@ -230,51 +216,55 @@ export declare const actionAddToLibrary: {
230
216
  exportScale: number;
231
217
  currentItemStrokeColor: string;
232
218
  currentItemBackgroundColor: string;
233
- currentItemFillStyle: import("../../element/src/types").FillStyle;
234
- currentItemStrokeWidth: number;
235
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
219
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
220
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
221
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
236
222
  currentItemRoughness: number;
223
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
237
224
  currentItemOpacity: number;
238
- currentItemFontFamily: number;
225
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
239
226
  currentItemFontSize: number;
240
- currentItemTextAlign: string;
241
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
242
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
243
- currentHoveredFontFamily: number | null;
244
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
245
- currentItemArrowType: "round" | "sharp" | "elbow";
227
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
228
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
229
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
230
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
231
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
232
+ currentItemArrowType: "sharp" | "round" | "elbow";
246
233
  viewBackgroundColor: string;
247
234
  scrollX: number;
248
235
  scrollY: number;
236
+ scrollConstraints: import("../types").ScrollConstraints | null;
249
237
  cursorButton: "up" | "down";
250
238
  scrolledOutside: boolean;
251
239
  name: string | null;
252
240
  isResizing: boolean;
253
241
  isRotating: boolean;
254
- zoom: Readonly<{
255
- value: import("../types").NormalizedZoomValue;
256
- }>;
242
+ zoom: import("../types").Zoom;
257
243
  openMenu: "canvas" | null;
258
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
244
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
259
245
  openSidebar: {
260
- name: string;
261
- tab?: string | undefined;
246
+ name: import("../types").SidebarName;
247
+ tab?: import("../types").SidebarTabName;
262
248
  } | null;
263
- openDialog: {
249
+ openDialog: null | {
264
250
  name: "imageExport" | "help" | "jsonExport";
265
251
  } | {
266
252
  name: "ttd";
267
- tab: "mermaid" | "text-to-diagram";
253
+ tab: "text-to-diagram" | "mermaid";
268
254
  } | {
269
255
  name: "commandPalette";
270
256
  } | {
271
257
  name: "settings";
272
258
  } | {
273
259
  name: "elementLinkSelector";
274
- sourceElementId: string;
275
- } | null;
260
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
261
+ } | {
262
+ name: "charts";
263
+ data: import("../charts").Spreadsheet;
264
+ rawText: string;
265
+ };
276
266
  defaultSidebarDockedPreference: boolean;
277
- lastPointerDownWith: import("../../element/src/types").PointerType;
267
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
278
268
  selectedElementIds: Readonly<{
279
269
  [id: string]: true;
280
270
  }>;
@@ -287,12 +277,12 @@ export declare const actionAddToLibrary: {
287
277
  selectedElementsAreBeingDragged: boolean;
288
278
  shouldCacheIgnoreZoom: boolean;
289
279
  toast: {
290
- message: string;
291
- closable?: boolean | undefined;
292
- duration?: number | undefined;
280
+ message: React.ReactNode;
281
+ closable?: boolean;
282
+ duration?: number;
293
283
  } | null;
294
284
  zenModeEnabled: boolean;
295
- theme: import("../../element/src/types").Theme;
285
+ theme: import("@excalidraw/element/types").Theme;
296
286
  gridSize: number;
297
287
  gridStep: number;
298
288
  gridModeEnabled: boolean;
@@ -300,44 +290,17 @@ export declare const actionAddToLibrary: {
300
290
  selectedGroupIds: {
301
291
  [groupId: string]: boolean;
302
292
  };
303
- editingGroupId: string | null;
293
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
304
294
  width: number;
305
295
  height: number;
306
296
  offsetTop: number;
307
297
  offsetLeft: number;
308
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
309
- collaborators: Map<import("../types").SocketId, Readonly<{
310
- pointer?: import("../types").CollaboratorPointer | undefined;
311
- button?: "up" | "down" | undefined;
312
- selectedElementIds?: Readonly<{
313
- [id: string]: true;
314
- }> | undefined;
315
- username?: string | null | undefined;
316
- userState?: import("@excalidraw/common").UserIdleState | undefined;
317
- color?: {
318
- background: string;
319
- stroke: string;
320
- } | undefined;
321
- avatarUrl?: string | undefined;
322
- id?: string | undefined;
323
- socketId?: import("../types").SocketId | undefined;
324
- isCurrentUser?: boolean | undefined;
325
- isInCall?: boolean | undefined;
326
- isSpeaking?: boolean | undefined;
327
- isMuted?: boolean | undefined;
328
- }>>;
298
+ fileHandle: FileSystemFileHandle | null;
299
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
329
300
  stats: {
330
301
  open: boolean;
331
302
  panels: number;
332
303
  };
333
- currentChartType: import("../../element/src/types").ChartType;
334
- pasteDialog: {
335
- shown: false;
336
- data: null;
337
- } | {
338
- shown: true;
339
- data: import("../charts").Spreadsheet;
340
- };
341
304
  showHyperlinkPopup: false | "info" | "editor";
342
305
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
343
306
  snapLines: readonly import("../snapping").SnapLine[];
@@ -349,16 +312,16 @@ export declare const actionAddToLibrary: {
349
312
  userToFollow: import("../types").UserToFollow | null;
350
313
  followedBy: Set<import("../types").SocketId>;
351
314
  isCropping: boolean;
352
- croppingElementId: string | null;
315
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
353
316
  searchMatches: Readonly<{
354
- focusedId: string | null;
317
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
355
318
  matches: readonly import("../types").SearchMatch[];
356
319
  }> | null;
357
320
  activeLockedId: string | null;
358
321
  lockedMultiSelections: {
359
322
  [groupId: string]: true;
360
323
  };
361
- bindMode: import("../../element/src/types").BindMode;
324
+ bindMode: import("@excalidraw/element/types").BindMode;
362
325
  };
363
326
  }> | {
364
327
  captureUpdate: "EVENTUALLY";
@@ -372,17 +335,22 @@ export declare const actionAddToLibrary: {
372
335
  showWelcomeScreen: boolean;
373
336
  isLoading: boolean;
374
337
  activeEmbeddable: {
375
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
376
- state: "active" | "hover";
338
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
339
+ state: "hover" | "active";
377
340
  } | null;
378
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
379
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
380
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
381
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
341
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
342
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
343
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
344
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
382
345
  isBindingEnabled: boolean;
383
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
384
- suggestedBinding: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
385
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
346
+ boxSelectionMode: import("../types").BoxSelectionMode;
347
+ bindingPreference: "enabled" | "disabled";
348
+ isMidpointSnappingEnabled: boolean;
349
+ suggestedBinding: {
350
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
351
+ midPoint?: import("@excalidraw/math").GlobalPoint;
352
+ } | null;
353
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
386
354
  frameRendering: {
387
355
  enabled: boolean;
388
356
  name: boolean;
@@ -390,8 +358,8 @@ export declare const actionAddToLibrary: {
390
358
  clip: boolean;
391
359
  };
392
360
  editingFrame: string | null;
393
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
394
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
361
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
362
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
395
363
  activeTool: {
396
364
  lastActiveTool: import("../types").ActiveTool | null;
397
365
  locked: boolean;
@@ -409,51 +377,55 @@ export declare const actionAddToLibrary: {
409
377
  exportScale: number;
410
378
  currentItemStrokeColor: string;
411
379
  currentItemBackgroundColor: string;
412
- currentItemFillStyle: import("../../element/src/types").FillStyle;
413
- currentItemStrokeWidth: number;
414
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
380
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
381
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
382
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
415
383
  currentItemRoughness: number;
384
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
416
385
  currentItemOpacity: number;
417
- currentItemFontFamily: number;
386
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
418
387
  currentItemFontSize: number;
419
- currentItemTextAlign: string;
420
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
421
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
422
- currentHoveredFontFamily: number | null;
423
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
424
- currentItemArrowType: "round" | "sharp" | "elbow";
388
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
389
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
390
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
391
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
392
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
393
+ currentItemArrowType: "sharp" | "round" | "elbow";
425
394
  viewBackgroundColor: string;
426
395
  scrollX: number;
427
396
  scrollY: number;
397
+ scrollConstraints: import("../types").ScrollConstraints | null;
428
398
  cursorButton: "up" | "down";
429
399
  scrolledOutside: boolean;
430
400
  name: string | null;
431
401
  isResizing: boolean;
432
402
  isRotating: boolean;
433
- zoom: Readonly<{
434
- value: import("../types").NormalizedZoomValue;
435
- }>;
403
+ zoom: import("../types").Zoom;
436
404
  openMenu: "canvas" | null;
437
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
405
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
438
406
  openSidebar: {
439
- name: string;
440
- tab?: string | undefined;
407
+ name: import("../types").SidebarName;
408
+ tab?: import("../types").SidebarTabName;
441
409
  } | null;
442
- openDialog: {
410
+ openDialog: null | {
443
411
  name: "imageExport" | "help" | "jsonExport";
444
412
  } | {
445
413
  name: "ttd";
446
- tab: "mermaid" | "text-to-diagram";
414
+ tab: "text-to-diagram" | "mermaid";
447
415
  } | {
448
416
  name: "commandPalette";
449
417
  } | {
450
418
  name: "settings";
451
419
  } | {
452
420
  name: "elementLinkSelector";
453
- sourceElementId: string;
454
- } | null;
421
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
422
+ } | {
423
+ name: "charts";
424
+ data: import("../charts").Spreadsheet;
425
+ rawText: string;
426
+ };
455
427
  defaultSidebarDockedPreference: boolean;
456
- lastPointerDownWith: import("../../element/src/types").PointerType;
428
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
457
429
  selectedElementIds: Readonly<{
458
430
  [id: string]: true;
459
431
  }>;
@@ -466,12 +438,12 @@ export declare const actionAddToLibrary: {
466
438
  selectedElementsAreBeingDragged: boolean;
467
439
  shouldCacheIgnoreZoom: boolean;
468
440
  toast: {
469
- message: string;
470
- closable?: boolean | undefined;
471
- duration?: number | undefined;
441
+ message: React.ReactNode;
442
+ closable?: boolean;
443
+ duration?: number;
472
444
  } | null;
473
445
  zenModeEnabled: boolean;
474
- theme: import("../../element/src/types").Theme;
446
+ theme: import("@excalidraw/element/types").Theme;
475
447
  gridSize: number;
476
448
  gridStep: number;
477
449
  gridModeEnabled: boolean;
@@ -479,44 +451,17 @@ export declare const actionAddToLibrary: {
479
451
  selectedGroupIds: {
480
452
  [groupId: string]: boolean;
481
453
  };
482
- editingGroupId: string | null;
454
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
483
455
  width: number;
484
456
  height: number;
485
457
  offsetTop: number;
486
458
  offsetLeft: number;
487
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
488
- collaborators: Map<import("../types").SocketId, Readonly<{
489
- pointer?: import("../types").CollaboratorPointer | undefined;
490
- button?: "up" | "down" | undefined;
491
- selectedElementIds?: Readonly<{
492
- [id: string]: true;
493
- }> | undefined;
494
- username?: string | null | undefined;
495
- userState?: import("@excalidraw/common").UserIdleState | undefined;
496
- color?: {
497
- background: string;
498
- stroke: string;
499
- } | undefined;
500
- avatarUrl?: string | undefined;
501
- id?: string | undefined;
502
- socketId?: import("../types").SocketId | undefined;
503
- isCurrentUser?: boolean | undefined;
504
- isInCall?: boolean | undefined;
505
- isSpeaking?: boolean | undefined;
506
- isMuted?: boolean | undefined;
507
- }>>;
459
+ fileHandle: FileSystemFileHandle | null;
460
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
508
461
  stats: {
509
462
  open: boolean;
510
463
  panels: number;
511
464
  };
512
- currentChartType: import("../../element/src/types").ChartType;
513
- pasteDialog: {
514
- shown: false;
515
- data: null;
516
- } | {
517
- shown: true;
518
- data: import("../charts").Spreadsheet;
519
- };
520
465
  showHyperlinkPopup: false | "info" | "editor";
521
466
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
522
467
  snapLines: readonly import("../snapping").SnapLine[];
@@ -528,16 +473,16 @@ export declare const actionAddToLibrary: {
528
473
  userToFollow: import("../types").UserToFollow | null;
529
474
  followedBy: Set<import("../types").SocketId>;
530
475
  isCropping: boolean;
531
- croppingElementId: string | null;
476
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
532
477
  searchMatches: Readonly<{
533
- focusedId: string | null;
478
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
534
479
  matches: readonly import("../types").SearchMatch[];
535
480
  }> | null;
536
481
  activeLockedId: string | null;
537
482
  lockedMultiSelections: {
538
483
  [groupId: string]: true;
539
484
  };
540
- bindMode: import("../../element/src/types").BindMode;
485
+ bindMode: import("@excalidraw/element/types").BindMode;
541
486
  };
542
487
  };
543
488
  label: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
2
  import type { AppClassProperties, AppState, UIAppState } from "../types";
4
3
  export declare const alignActionsPredicate: (appState: UIAppState, app: AppClassProperties) => boolean;