@myoc/common 0.19.5-ffbfd9327

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