@excalidraw/common 0.18.0-019ce4c

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