@nous-excalidraw/math 0.1.0

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