@zsviczian/excalidraw 0.17.6-3 → 0.17.6-30

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 (390) hide show
  1. package/dist/excalidraw.development.js +13100 -1540
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +21 -1
  4. package/dist/styles.development.css +490 -376
  5. package/dist/styles.production.css +10 -8
  6. package/package.json +5 -4
  7. package/types/excalidraw/actions/actionAddToLibrary.d.ts +0 -605
  8. package/types/excalidraw/actions/actionAlign.d.ts +0 -108
  9. package/types/excalidraw/actions/actionBoundText.d.ts +0 -440
  10. package/types/excalidraw/actions/actionCanvas.d.ts +0 -2958
  11. package/types/excalidraw/actions/actionClipboard.d.ts +0 -1322
  12. package/types/excalidraw/actions/actionDeleteSelected.d.ts +0 -640
  13. package/types/excalidraw/actions/actionDistribute.d.ts +0 -34
  14. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +0 -21
  15. package/types/excalidraw/actions/actionElementLock.d.ts +0 -428
  16. package/types/excalidraw/actions/actionExport.d.ts +0 -1884
  17. package/types/excalidraw/actions/actionFinalize.d.ts +0 -409
  18. package/types/excalidraw/actions/actionFlip.d.ts +0 -34
  19. package/types/excalidraw/actions/actionFrame.d.ts +0 -855
  20. package/types/excalidraw/actions/actionGroup.d.ts +0 -438
  21. package/types/excalidraw/actions/actionHistory.d.ts +0 -7
  22. package/types/excalidraw/actions/actionLinearEditor.d.ts +0 -215
  23. package/types/excalidraw/actions/actionLink.d.ts +0 -215
  24. package/types/excalidraw/actions/actionMenu.d.ts +0 -628
  25. package/types/excalidraw/actions/actionNavigate.d.ts +0 -414
  26. package/types/excalidraw/actions/actionProperties.d.ts +0 -3156
  27. package/types/excalidraw/actions/actionSelectAll.d.ts +0 -214
  28. package/types/excalidraw/actions/actionStyles.d.ts +0 -228
  29. package/types/excalidraw/actions/actionTextAutoResize.d.ts +0 -17
  30. package/types/excalidraw/actions/actionToggleGridMode.d.ts +0 -217
  31. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +0 -215
  32. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +0 -407
  33. package/types/excalidraw/actions/actionToggleStats.d.ts +0 -215
  34. package/types/excalidraw/actions/actionToggleViewMode.d.ts +0 -216
  35. package/types/excalidraw/actions/actionToggleZenMode.d.ts +0 -216
  36. package/types/excalidraw/actions/actionZindex.d.ts +0 -74
  37. package/types/excalidraw/actions/index.d.ts +0 -26
  38. package/types/excalidraw/actions/manager.d.ts +0 -21
  39. package/types/excalidraw/actions/register.d.ts +0 -5
  40. package/types/excalidraw/actions/shortcuts.d.ts +0 -4
  41. package/types/excalidraw/actions/types.d.ts +0 -46
  42. package/types/excalidraw/align.d.ts +0 -6
  43. package/types/excalidraw/analytics.d.ts +0 -1
  44. package/types/excalidraw/animated-trail.d.ts +0 -33
  45. package/types/excalidraw/animation-frame-handler.d.ts +0 -16
  46. package/types/excalidraw/appState.d.ts +0 -89
  47. package/types/excalidraw/binaryheap.d.ts +0 -12
  48. package/types/excalidraw/change.d.ts +0 -191
  49. package/types/excalidraw/charts.d.ts +0 -27
  50. package/types/excalidraw/clients.d.ts +0 -14
  51. package/types/excalidraw/clipboard.d.ts +0 -44
  52. package/types/excalidraw/colors.d.ts +0 -61
  53. package/types/excalidraw/components/Actions.d.ts +0 -34
  54. package/types/excalidraw/components/ActiveConfirmDialog.d.ts +0 -4
  55. package/types/excalidraw/components/App.d.ts +0 -535
  56. package/types/excalidraw/components/Avatar.d.ts +0 -11
  57. package/types/excalidraw/components/BraveMeasureTextError.d.ts +0 -2
  58. package/types/excalidraw/components/Button.d.ts +0 -17
  59. package/types/excalidraw/components/ButtonIcon.d.ts +0 -14
  60. package/types/excalidraw/components/ButtonIconCycle.d.ts +0 -10
  61. package/types/excalidraw/components/ButtonIconSelect.d.ts +0 -19
  62. package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  63. package/types/excalidraw/components/ButtonSeparator.d.ts +0 -1
  64. package/types/excalidraw/components/Card.d.ts +0 -6
  65. package/types/excalidraw/components/CheckboxItem.d.ts +0 -8
  66. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +0 -9
  67. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -19
  68. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +0 -8
  69. package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +0 -8
  70. package/types/excalidraw/components/ColorPicker/Picker.d.ts +0 -18
  71. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +0 -10
  72. package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +0 -5
  73. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +0 -8
  74. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +0 -9
  75. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -21
  76. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -20
  77. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +0 -18
  78. package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +0 -2
  79. package/types/excalidraw/components/CommandPalette/types.d.ts +0 -25
  80. package/types/excalidraw/components/ConfirmDialog.d.ts +0 -10
  81. package/types/excalidraw/components/ContextMenu.d.ts +0 -16
  82. package/types/excalidraw/components/DarkModeToggle.d.ts +0 -7
  83. package/types/excalidraw/components/DefaultSidebar.d.ts +0 -30
  84. package/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  85. package/types/excalidraw/components/Dialog.d.ts +0 -13
  86. package/types/excalidraw/components/DialogActionButton.d.ts +0 -10
  87. package/types/excalidraw/components/ErrorDialog.d.ts +0 -5
  88. package/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
  89. package/types/excalidraw/components/EyeDropper.d.ts +0 -27
  90. package/types/excalidraw/components/FilledButton.d.ts +0 -18
  91. package/types/excalidraw/components/FixedSideContainer.d.ts +0 -9
  92. package/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  93. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +0 -21
  94. package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +0 -25
  95. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +0 -6
  96. package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -13
  97. package/types/excalidraw/components/HandButton.d.ts +0 -10
  98. package/types/excalidraw/components/HelpButton.d.ts +0 -7
  99. package/types/excalidraw/components/HelpDialog.d.ts +0 -4
  100. package/types/excalidraw/components/HintViewer.d.ts +0 -10
  101. package/types/excalidraw/components/IconPicker.d.ts +0 -14
  102. package/types/excalidraw/components/ImageExportDialog.d.ts +0 -14
  103. package/types/excalidraw/components/InitializeApp.d.ts +0 -10
  104. package/types/excalidraw/components/InlineIcon.d.ts +0 -3
  105. package/types/excalidraw/components/Island.d.ts +0 -10
  106. package/types/excalidraw/components/JSONExportDialog.d.ts +0 -15
  107. package/types/excalidraw/components/LaserPointerButton.d.ts +0 -10
  108. package/types/excalidraw/components/LayerUI.d.ts +0 -30
  109. package/types/excalidraw/components/LibraryMenu.d.ts +0 -24
  110. package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +0 -7
  111. package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +0 -9
  112. package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +0 -17
  113. package/types/excalidraw/components/LibraryMenuItems.d.ts +0 -14
  114. package/types/excalidraw/components/LibraryMenuSection.d.ts +0 -23
  115. package/types/excalidraw/components/LibraryUnit.d.ts +0 -14
  116. package/types/excalidraw/components/LoadingMessage.d.ts +0 -5
  117. package/types/excalidraw/components/LockButton.d.ts +0 -10
  118. package/types/excalidraw/components/MagicButton.d.ts +0 -9
  119. package/types/excalidraw/components/MagicSettings.d.ts +0 -8
  120. package/types/excalidraw/components/MobileMenu.d.ts +0 -24
  121. package/types/excalidraw/components/Modal.d.ts +0 -14
  122. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +0 -17
  123. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +0 -17
  124. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +0 -22
  125. package/types/excalidraw/components/Paragraph.d.ts +0 -4
  126. package/types/excalidraw/components/PasteChartDialog.d.ts +0 -8
  127. package/types/excalidraw/components/PenModeButton.d.ts +0 -12
  128. package/types/excalidraw/components/Popover.d.ts +0 -15
  129. package/types/excalidraw/components/ProjectName.d.ts +0 -10
  130. package/types/excalidraw/components/PropertiesPopover.d.ts +0 -15
  131. package/types/excalidraw/components/PublishLibrary.d.ts +0 -16
  132. package/types/excalidraw/components/QuickSearch.d.ts +0 -9
  133. package/types/excalidraw/components/RadioGroup.d.ts +0 -13
  134. package/types/excalidraw/components/SVGLayer.d.ts +0 -7
  135. package/types/excalidraw/components/ScrollableList.d.ts +0 -8
  136. package/types/excalidraw/components/SearchMenu.d.ts +0 -5
  137. package/types/excalidraw/components/Section.d.ts +0 -6
  138. package/types/excalidraw/components/ShareableLinkDialog.d.ts +0 -7
  139. package/types/excalidraw/components/Sidebar/Sidebar.d.ts +0 -76
  140. package/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +0 -7
  141. package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +0 -8
  142. package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +0 -9
  143. package/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +0 -6
  144. package/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +0 -6
  145. package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +0 -6
  146. package/types/excalidraw/components/Sidebar/common.d.ts +0 -33
  147. package/types/excalidraw/components/Spinner.d.ts +0 -8
  148. package/types/excalidraw/components/Stack.d.ts +0 -16
  149. package/types/excalidraw/components/Stats/Angle.d.ts +0 -11
  150. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -10
  151. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +0 -10
  152. package/types/excalidraw/components/Stats/Collapsible.d.ts +0 -8
  153. package/types/excalidraw/components/Stats/Dimension.d.ts +0 -11
  154. package/types/excalidraw/components/Stats/DragInput.d.ts +0 -34
  155. package/types/excalidraw/components/Stats/FontSize.d.ts +0 -11
  156. package/types/excalidraw/components/Stats/MultiAngle.d.ts +0 -11
  157. package/types/excalidraw/components/Stats/MultiDimension.d.ts +0 -14
  158. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +0 -12
  159. package/types/excalidraw/components/Stats/MultiPosition.d.ts +0 -14
  160. package/types/excalidraw/components/Stats/Position.d.ts +0 -12
  161. package/types/excalidraw/components/Stats/index.d.ts +0 -35
  162. package/types/excalidraw/components/Stats/utils.d.ts +0 -26
  163. package/types/excalidraw/components/Stats.d.ts +0 -11
  164. package/types/excalidraw/components/Switch.d.ts +0 -9
  165. package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +0 -14
  166. package/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +0 -29
  167. package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +0 -9
  168. package/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +0 -7
  169. package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +0 -17
  170. package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +0 -4
  171. package/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +0 -1
  172. package/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +0 -7
  173. package/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +0 -8
  174. package/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +0 -6
  175. package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +0 -11
  176. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  177. package/types/excalidraw/components/TTDDialog/common.d.ts +0 -32
  178. package/types/excalidraw/components/TextField.d.ts +0 -21
  179. package/types/excalidraw/components/Toast.d.ts +0 -9
  180. package/types/excalidraw/components/ToolButton.d.ts +0 -49
  181. package/types/excalidraw/components/Tooltip.d.ts +0 -18
  182. package/types/excalidraw/components/Trans.d.ts +0 -9
  183. package/types/excalidraw/components/UserList.d.ts +0 -18
  184. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +0 -29
  185. package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +0 -14
  186. package/types/excalidraw/components/canvases/StaticCanvas.d.ts +0 -19
  187. package/types/excalidraw/components/canvases/index.d.ts +0 -3
  188. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +0 -86
  189. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +0 -15
  190. package/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +0 -11
  191. package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +0 -45
  192. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +0 -7
  193. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -17
  194. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +0 -7
  195. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +0 -15
  196. package/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +0 -5
  197. package/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +0 -10
  198. package/types/excalidraw/components/dropdownMenu/common.d.ts +0 -6
  199. package/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +0 -3
  200. package/types/excalidraw/components/footer/Footer.d.ts +0 -12
  201. package/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  202. package/types/excalidraw/components/hoc/withInternalFallback.d.ts +0 -4
  203. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +0 -18
  204. package/types/excalidraw/components/hyperlink/helpers.d.ts +0 -8
  205. package/types/excalidraw/components/icons.d.ts +0 -212
  206. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -9
  207. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +0 -64
  208. package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -80
  209. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -59
  210. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  211. package/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -86
  212. package/types/excalidraw/constants.d.ts +0 -322
  213. package/types/excalidraw/context/tunnels.d.ts +0 -20
  214. package/types/excalidraw/context/ui-appState.d.ts +0 -4
  215. package/types/excalidraw/cursor.d.ts +0 -6
  216. package/types/excalidraw/data/EditorLocalStorage.d.ts +0 -8
  217. package/types/excalidraw/data/ai/types.d.ts +0 -242
  218. package/types/excalidraw/data/blob.d.ts +0 -49
  219. package/types/excalidraw/data/encode.d.ts +0 -54
  220. package/types/excalidraw/data/encryption.d.ts +0 -9
  221. package/types/excalidraw/data/filesystem.d.ts +0 -20
  222. package/types/excalidraw/data/image.d.ts +0 -15
  223. package/types/excalidraw/data/index.d.ts +0 -22
  224. package/types/excalidraw/data/json.d.ts +0 -16
  225. package/types/excalidraw/data/library.d.ts +0 -106
  226. package/types/excalidraw/data/magic.d.ts +0 -23
  227. package/types/excalidraw/data/reconcile.d.ts +0 -6
  228. package/types/excalidraw/data/resave.d.ts +0 -5
  229. package/types/excalidraw/data/restore.d.ts +0 -21
  230. package/types/excalidraw/data/transform.d.ts +0 -81
  231. package/types/excalidraw/data/types.d.ts +0 -45
  232. package/types/excalidraw/data/url.d.ts +0 -8
  233. package/types/excalidraw/deburr.d.ts +0 -1
  234. package/types/excalidraw/dist/excalidraw.development.d.ts +0 -2
  235. package/types/excalidraw/dist/excalidraw.production.min.d.ts +0 -1
  236. package/types/excalidraw/distribute.d.ts +0 -6
  237. package/types/excalidraw/element/ElementCanvasButtons.d.ts +0 -7
  238. package/types/excalidraw/element/binding.d.ts +0 -99
  239. package/types/excalidraw/element/bounds.d.ts +0 -76
  240. package/types/excalidraw/element/collision.d.ts +0 -17
  241. package/types/excalidraw/element/containerCache.d.ts +0 -11
  242. package/types/excalidraw/element/dragElements.d.ts +0 -32
  243. package/types/excalidraw/element/embeddable.d.ts +0 -221
  244. package/types/excalidraw/element/flowchart.d.ts +0 -25
  245. package/types/excalidraw/element/heading.d.ts +0 -12
  246. package/types/excalidraw/element/image.d.ts +0 -32
  247. package/types/excalidraw/element/index.d.ts +0 -26
  248. package/types/excalidraw/element/linearElementEditor.d.ts +0 -128
  249. package/types/excalidraw/element/mutateElement.d.ts +0 -11
  250. package/types/excalidraw/element/newElement.d.ts +0 -105
  251. package/types/excalidraw/element/resizeElements.d.ts +0 -16
  252. package/types/excalidraw/element/resizeTest.d.ts +0 -15
  253. package/types/excalidraw/element/routing.d.ts +0 -12
  254. package/types/excalidraw/element/showSelectedShapeActions.d.ts +0 -3
  255. package/types/excalidraw/element/sizeHelpers.d.ts +0 -35
  256. package/types/excalidraw/element/sortElements.d.ts +0 -2
  257. package/types/excalidraw/element/textElement.d.ts +0 -73
  258. package/types/excalidraw/element/textWysiwyg.d.ts +0 -22
  259. package/types/excalidraw/element/transformHandles.d.ts +0 -55
  260. package/types/excalidraw/element/typeChecks.d.ts +0 -39
  261. package/types/excalidraw/element/types.d.ts +0 -253
  262. package/types/excalidraw/emitter.d.ts +0 -16
  263. package/types/excalidraw/entry.d.ts +0 -1
  264. package/types/excalidraw/env.d.cts +0 -1
  265. package/types/excalidraw/env.d.ts +0 -1
  266. package/types/excalidraw/errors.d.ts +0 -25
  267. package/types/excalidraw/fonts/ExcalidrawFont.d.ts +0 -37
  268. package/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +0 -35
  269. package/types/excalidraw/fonts/index.d.ts +0 -87
  270. package/types/excalidraw/fonts/metadata.d.ts +0 -37
  271. package/types/excalidraw/fonts/subset/subset-main.d.ts +0 -12
  272. package/types/excalidraw/fonts/subset/subset-shared.chunk.d.ts +0 -32
  273. package/types/excalidraw/fonts/subset/subset-worker.chunk.d.ts +0 -15
  274. package/types/excalidraw/fonts/wasm/hb-subset-bindings.d.ts +0 -45
  275. package/types/excalidraw/fonts/wasm/hb-subset-loader.d.ts +0 -13
  276. package/types/excalidraw/fonts/wasm/hb-subset-wasm.d.ts +0 -2
  277. package/types/excalidraw/fonts/wasm/hb-subset.bindings.d.ts +0 -45
  278. package/types/excalidraw/fonts/wasm/hb-subset.loader.d.ts +0 -5
  279. package/types/excalidraw/fonts/wasm/hb-subset.wasm.d.ts +0 -2
  280. package/types/excalidraw/fonts/wasm/woff2-bindings.d.ts +0 -31
  281. package/types/excalidraw/fonts/wasm/woff2-loader.d.ts +0 -14
  282. package/types/excalidraw/fonts/wasm/woff2-wasm.d.ts +0 -2
  283. package/types/excalidraw/fonts/wasm/woff2.bindings.d.ts +0 -31
  284. package/types/excalidraw/fonts/wasm/woff2.loader.d.ts +0 -6
  285. package/types/excalidraw/fonts/wasm/woff2.wasm.d.ts +0 -2
  286. package/types/excalidraw/fonts/woff2/Cascadia/index.d.ts +0 -2
  287. package/types/excalidraw/fonts/woff2/Comic/index.d.ts +0 -2
  288. package/types/excalidraw/fonts/woff2/Emoji/index.d.ts +0 -2
  289. package/types/excalidraw/fonts/woff2/Excalifont/index.d.ts +0 -2
  290. package/types/excalidraw/fonts/woff2/Helvetica/index.d.ts +0 -2
  291. package/types/excalidraw/fonts/woff2/Liberation/index.d.ts +0 -2
  292. package/types/excalidraw/fonts/woff2/Lilita/index.d.ts +0 -2
  293. package/types/excalidraw/fonts/woff2/Nunito/index.d.ts +0 -2
  294. package/types/excalidraw/fonts/woff2/Virgil/index.d.ts +0 -2
  295. package/types/excalidraw/fonts/woff2/Xiaolai/index.d.ts +0 -8
  296. package/types/excalidraw/fractionalIndex.d.ts +0 -48
  297. package/types/excalidraw/frame.d.ts +0 -63
  298. package/types/excalidraw/ga.d.ts +0 -63
  299. package/types/excalidraw/gadirections.d.ts +0 -8
  300. package/types/excalidraw/galines.d.ts +0 -22
  301. package/types/excalidraw/gapoints.d.ts +0 -7
  302. package/types/excalidraw/gatransforms.d.ts +0 -10
  303. package/types/excalidraw/gesture.d.ts +0 -6
  304. package/types/excalidraw/groups.d.ts +0 -33
  305. package/types/excalidraw/history.d.ts +0 -40
  306. package/types/excalidraw/hooks/useCallbackRefState.d.ts +0 -1
  307. package/types/excalidraw/hooks/useCopiedIndicator.d.ts +0 -5
  308. package/types/excalidraw/hooks/useCreatePortalContainer.d.ts +0 -7
  309. package/types/excalidraw/hooks/useEmitter.d.ts +0 -2
  310. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +0 -11
  311. package/types/excalidraw/hooks/useOutsideClick.d.ts +0 -19
  312. package/types/excalidraw/hooks/useScrollPosition.d.ts +0 -1
  313. package/types/excalidraw/hooks/useStable.d.ts +0 -1
  314. package/types/excalidraw/hooks/useStableCallback.d.ts +0 -4
  315. package/types/excalidraw/hooks/useTransition.d.ts +0 -2
  316. package/types/excalidraw/i18n.d.ts +0 -24
  317. package/types/excalidraw/index-node.d.ts +0 -1
  318. package/types/excalidraw/index.d.ts +0 -63
  319. package/types/excalidraw/jotai.d.ts +0 -34
  320. package/types/excalidraw/keys.d.ts +0 -82
  321. package/types/excalidraw/laser-trails.d.ts +0 -20
  322. package/types/excalidraw/main.d.ts +0 -2
  323. package/types/excalidraw/math.d.ts +0 -79
  324. package/types/excalidraw/mermaid.d.ts +0 -2
  325. package/types/excalidraw/obsidianUtils.d.ts +0 -21
  326. package/types/excalidraw/points.d.ts +0 -7
  327. package/types/excalidraw/polyfill.d.ts +0 -2
  328. package/types/excalidraw/publicPath.d.ts +0 -1
  329. package/types/excalidraw/queue.d.ts +0 -9
  330. package/types/excalidraw/random.d.ts +0 -4
  331. package/types/excalidraw/reactUtils.d.ts +0 -14
  332. package/types/excalidraw/renderer/easingFunctions.d.ts +0 -6
  333. package/types/excalidraw/renderer/helpers.d.ts +0 -13
  334. package/types/excalidraw/renderer/interactiveScene.d.ts +0 -20
  335. package/types/excalidraw/renderer/renderElement.d.ts +0 -27
  336. package/types/excalidraw/renderer/renderNewElementScene.d.ts +0 -7
  337. package/types/excalidraw/renderer/renderSnaps.d.ts +0 -2
  338. package/types/excalidraw/renderer/roundRect.d.ts +0 -11
  339. package/types/excalidraw/renderer/staticScene.d.ts +0 -11
  340. package/types/excalidraw/renderer/staticSvgScene.d.ts +0 -5
  341. package/types/excalidraw/scene/Fonts.d.ts +0 -19
  342. package/types/excalidraw/scene/Renderer.d.ts +0 -28
  343. package/types/excalidraw/scene/Scene.d.ts +0 -78
  344. package/types/excalidraw/scene/Shape.d.ts +0 -17
  345. package/types/excalidraw/scene/ShapeCache.d.ts +0 -25
  346. package/types/excalidraw/scene/comparisons.d.ts +0 -487
  347. package/types/excalidraw/scene/export.d.ts +0 -29
  348. package/types/excalidraw/scene/index.d.ts +0 -4
  349. package/types/excalidraw/scene/normalize.d.ts +0 -4
  350. package/types/excalidraw/scene/scroll.d.ts +0 -23
  351. package/types/excalidraw/scene/scrollbars.d.ts +0 -12
  352. package/types/excalidraw/scene/selection.d.ts +0 -32
  353. package/types/excalidraw/scene/types.d.ts +0 -112
  354. package/types/excalidraw/scene/zoom.d.ts +0 -12
  355. package/types/excalidraw/shapes.d.ts +0 -85
  356. package/types/excalidraw/snapping.d.ts +0 -112
  357. package/types/excalidraw/store.d.ts +0 -129
  358. package/types/excalidraw/types.d.ts +0 -718
  359. package/types/excalidraw/utility-types.d.ts +0 -31
  360. package/types/excalidraw/utils.d.ts +0 -249
  361. package/types/excalidraw/visualdebug.d.ts +0 -35
  362. package/types/excalidraw/webpack.dev.config.d.ts +0 -81
  363. package/types/excalidraw/webpack.prod.config.d.ts +0 -97
  364. package/types/excalidraw/workers.d.ts +0 -36
  365. package/types/excalidraw/zindex.d.ts +0 -6
  366. package/types/math/angle.d.ts +0 -17
  367. package/types/math/arc.d.ts +0 -6
  368. package/types/math/curve.d.ts +0 -32
  369. package/types/math/ga/ga.d.ts +0 -63
  370. package/types/math/ga/gadirections.d.ts +0 -8
  371. package/types/math/ga/galines.d.ts +0 -22
  372. package/types/math/ga/gapoints.d.ts +0 -7
  373. package/types/math/ga/gatransforms.d.ts +0 -10
  374. package/types/math/index.d.ts +0 -12
  375. package/types/math/line.d.ts +0 -26
  376. package/types/math/point.d.ts +0 -140
  377. package/types/math/polygon.d.ts +0 -5
  378. package/types/math/range.d.ts +0 -44
  379. package/types/math/segment.d.ts +0 -32
  380. package/types/math/triangle.d.ts +0 -11
  381. package/types/math/types.d.ts +0 -96
  382. package/types/math/utils.d.ts +0 -6
  383. package/types/math/vector.d.ts +0 -88
  384. package/types/utils/bbox.d.ts +0 -9
  385. package/types/utils/collision.d.ts +0 -9
  386. package/types/utils/export.d.ts +0 -44
  387. package/types/utils/geometry/geometry.d.ts +0 -89
  388. package/types/utils/geometry/shape.d.ts +0 -71
  389. package/types/utils/index.d.ts +0 -4
  390. package/types/utils/withinBounds.d.ts +0 -19
@@ -1,2958 +0,0 @@
1
- import type { ExcalidrawElement } from "../element/types";
2
- import type { AppState, Offsets, AppClassProperties } from "../types";
3
- import type { SceneBounds } from "../element/bounds";
4
- export declare const actionChangeViewBackgroundColor: {
5
- name: "changeViewBackgroundColor";
6
- label: string;
7
- paletteName: string;
8
- trackEvent: false;
9
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
10
- perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
11
- appState: any;
12
- storeAction: "none" | "capture";
13
- };
14
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
15
- } & {
16
- keyTest?: undefined;
17
- };
18
- export declare const actionClearCanvas: {
19
- name: "clearCanvas";
20
- label: string;
21
- paletteName: string;
22
- icon: JSX.Element;
23
- trackEvent: {
24
- category: "canvas";
25
- };
26
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
27
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
28
- elements: import("../element/types").OrderedExcalidrawElement[];
29
- appState: {
30
- files: {};
31
- theme: import("../element/types").Theme;
32
- penMode: boolean;
33
- penDetected: boolean;
34
- exportBackground: boolean;
35
- exportEmbedScene: boolean;
36
- gridSize: number;
37
- gridStep: number;
38
- gridModeEnabled: boolean;
39
- stats: {
40
- open: boolean;
41
- panels: number;
42
- };
43
- pasteDialog: {
44
- shown: false;
45
- data: null;
46
- } | {
47
- shown: true;
48
- data: import("../charts").Spreadsheet;
49
- };
50
- activeTool: {
51
- lastActiveTool: import("../types").ActiveTool | null;
52
- locked: boolean;
53
- } & import("../types").ActiveTool;
54
- colorPalette: {
55
- canvasBackground: import("../colors").ColorPaletteCustom;
56
- elementBackground: import("../colors").ColorPaletteCustom;
57
- elementStroke: import("../colors").ColorPaletteCustom;
58
- topPicks: {
59
- canvasBackground: [string, string, string, string, string];
60
- elementStroke: [string, string, string, string, string];
61
- elementBackground: [string, string, string, string, string];
62
- };
63
- } | undefined;
64
- trayModeEnabled: boolean;
65
- allowPinchZoom: boolean | undefined;
66
- allowWheelZoom: boolean | undefined;
67
- pinnedScripts: string[] | undefined;
68
- customPens: any[] | undefined;
69
- contextMenu: {
70
- items: import("../components/ContextMenu").ContextMenuItems;
71
- top: number;
72
- left: number;
73
- } | null;
74
- showWelcomeScreen: boolean;
75
- isLoading: boolean;
76
- errorMessage: import("react").ReactNode;
77
- activeEmbeddable: {
78
- element: import("../element/types").NonDeletedExcalidrawElement;
79
- state: "active" | "hover";
80
- } | null;
81
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
82
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
83
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
84
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
85
- isBindingEnabled: boolean;
86
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
87
- suggestedBindings: import("../element/binding").SuggestedBinding[];
88
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
89
- frameRendering: {
90
- enabled: boolean;
91
- name: boolean;
92
- outline: boolean;
93
- clip: boolean;
94
- };
95
- editingFrame: string | null;
96
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
97
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
98
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
99
- exportWithDarkMode: boolean;
100
- exportScale: number;
101
- currentItemStrokeColor: string;
102
- currentItemBackgroundColor: string;
103
- currentItemFillStyle: import("../element/types").FillStyle;
104
- currentItemStrokeWidth: number;
105
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
106
- currentItemRoughness: number;
107
- currentItemOpacity: number;
108
- currentItemFontFamily: number;
109
- currentItemFontSize: number;
110
- currentItemTextAlign: string;
111
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
112
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
113
- currentHoveredFontFamily: number | null;
114
- currentItemRoundness: import("../element/types").StrokeRoundness;
115
- currentItemArrowType: "round" | "sharp" | "elbow";
116
- viewBackgroundColor: string;
117
- scrollX: number;
118
- scrollY: number;
119
- cursorButton: "up" | "down";
120
- scrolledOutside: boolean;
121
- name: string | null;
122
- isResizing: boolean;
123
- isRotating: boolean;
124
- zoom: Readonly<{
125
- value: import("../types").NormalizedZoomValue;
126
- }>;
127
- openMenu: "canvas" | "shape" | null;
128
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
129
- openSidebar: {
130
- name: string;
131
- tab?: string | undefined;
132
- } | null;
133
- openDialog: {
134
- name: "imageExport" | "help" | "jsonExport";
135
- } | {
136
- name: "ttd";
137
- tab: "mermaid" | "text-to-diagram";
138
- } | {
139
- name: "commandPalette";
140
- } | null;
141
- defaultSidebarDockedPreference: boolean;
142
- lastPointerDownWith: import("../element/types").PointerType;
143
- selectedElementIds: Readonly<{
144
- [id: string]: true;
145
- }>;
146
- previousSelectedElementIds: {
147
- [id: string]: true;
148
- };
149
- selectedElementsAreBeingDragged: boolean;
150
- shouldCacheIgnoreZoom: boolean;
151
- toast: {
152
- message: string;
153
- closable?: boolean | undefined;
154
- duration?: number | undefined;
155
- } | null;
156
- zenModeEnabled: boolean;
157
- viewModeEnabled: boolean;
158
- selectedGroupIds: {
159
- [groupId: string]: boolean;
160
- };
161
- editingGroupId: string | null;
162
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
163
- collaborators: Map<import("../types").SocketId, Readonly<{
164
- pointer?: import("../types").CollaboratorPointer | undefined;
165
- button?: "up" | "down" | undefined;
166
- selectedElementIds?: Readonly<{
167
- [id: string]: true;
168
- }> | undefined;
169
- username?: string | null | undefined;
170
- userState?: import("../types").UserIdleState | undefined;
171
- color?: {
172
- background: string;
173
- stroke: string;
174
- } | undefined;
175
- avatarUrl?: string | undefined;
176
- id?: string | undefined;
177
- socketId?: import("../types").SocketId | undefined;
178
- isCurrentUser?: boolean | undefined;
179
- isInCall?: boolean | undefined;
180
- isSpeaking?: boolean | undefined;
181
- isMuted?: boolean | undefined;
182
- }>>;
183
- currentChartType: import("../element/types").ChartType;
184
- pendingImageElementId: string | null;
185
- showHyperlinkPopup: false | "info" | "editor";
186
- linkOpacity: number;
187
- currentStrokeOptions?: any;
188
- resetCustomPen?: any;
189
- gridColor: {
190
- Bold: string;
191
- Regular: string;
192
- };
193
- highlightSearchResult: boolean;
194
- dynamicStyle: {
195
- [x: string]: string;
196
- };
197
- frameColor: {
198
- stroke: string;
199
- fill: string;
200
- nameColor: string;
201
- };
202
- invertBindingBehaviour: boolean;
203
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
204
- snapLines: readonly import("../snapping").SnapLine[];
205
- originSnapOffset: {
206
- x: number;
207
- y: number;
208
- } | null;
209
- objectsSnapModeEnabled: boolean;
210
- userToFollow: import("../types").UserToFollow | null;
211
- followedBy: Set<import("../types").SocketId>;
212
- searchMatches: readonly {
213
- id: string;
214
- focus: boolean;
215
- matchedLines: {
216
- offsetX: number;
217
- offsetY: number;
218
- width: number;
219
- height: number;
220
- }[];
221
- }[];
222
- };
223
- storeAction: "capture";
224
- };
225
- } & {
226
- keyTest?: undefined;
227
- };
228
- export declare const actionZoomIn: {
229
- name: "zoomIn";
230
- label: string;
231
- viewMode: true;
232
- icon: JSX.Element;
233
- trackEvent: {
234
- category: "canvas";
235
- };
236
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
237
- appState: {
238
- userToFollow: null;
239
- scrollX: number;
240
- scrollY: number;
241
- zoom: {
242
- value: import("../types").NormalizedZoomValue;
243
- };
244
- contextMenu: {
245
- items: import("../components/ContextMenu").ContextMenuItems;
246
- top: number;
247
- left: number;
248
- } | null;
249
- showWelcomeScreen: boolean;
250
- isLoading: boolean;
251
- errorMessage: import("react").ReactNode;
252
- activeEmbeddable: {
253
- element: import("../element/types").NonDeletedExcalidrawElement;
254
- state: "active" | "hover";
255
- } | null;
256
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
257
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
258
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
259
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
260
- isBindingEnabled: boolean;
261
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
262
- suggestedBindings: import("../element/binding").SuggestedBinding[];
263
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
264
- frameRendering: {
265
- enabled: boolean;
266
- name: boolean;
267
- outline: boolean;
268
- clip: boolean;
269
- };
270
- editingFrame: string | null;
271
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
272
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
273
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
274
- activeTool: {
275
- lastActiveTool: import("../types").ActiveTool | null;
276
- locked: boolean;
277
- } & import("../types").ActiveTool;
278
- penMode: boolean;
279
- penDetected: boolean;
280
- exportBackground: boolean;
281
- exportEmbedScene: boolean;
282
- exportWithDarkMode: boolean;
283
- exportScale: number;
284
- currentItemStrokeColor: string;
285
- currentItemBackgroundColor: string;
286
- currentItemFillStyle: import("../element/types").FillStyle;
287
- currentItemStrokeWidth: number;
288
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
289
- currentItemRoughness: number;
290
- currentItemOpacity: number;
291
- currentItemFontFamily: number;
292
- currentItemFontSize: number;
293
- currentItemTextAlign: string;
294
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
295
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
296
- currentHoveredFontFamily: number | null;
297
- currentItemRoundness: import("../element/types").StrokeRoundness;
298
- currentItemArrowType: "round" | "sharp" | "elbow";
299
- viewBackgroundColor: string;
300
- cursorButton: "up" | "down";
301
- scrolledOutside: boolean;
302
- name: string | null;
303
- isResizing: boolean;
304
- isRotating: boolean;
305
- openMenu: "canvas" | "shape" | null;
306
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
307
- openSidebar: {
308
- name: string;
309
- tab?: string | undefined;
310
- } | null;
311
- openDialog: {
312
- name: "imageExport" | "help" | "jsonExport";
313
- } | {
314
- name: "ttd";
315
- tab: "mermaid" | "text-to-diagram";
316
- } | {
317
- name: "commandPalette";
318
- } | null;
319
- defaultSidebarDockedPreference: boolean;
320
- lastPointerDownWith: import("../element/types").PointerType;
321
- selectedElementIds: Readonly<{
322
- [id: string]: true;
323
- }>;
324
- previousSelectedElementIds: {
325
- [id: string]: true;
326
- };
327
- selectedElementsAreBeingDragged: boolean;
328
- shouldCacheIgnoreZoom: boolean;
329
- toast: {
330
- message: string;
331
- closable?: boolean | undefined;
332
- duration?: number | undefined;
333
- } | null;
334
- zenModeEnabled: boolean;
335
- theme: import("../element/types").Theme;
336
- gridSize: number;
337
- gridStep: number;
338
- gridModeEnabled: boolean;
339
- viewModeEnabled: boolean;
340
- selectedGroupIds: {
341
- [groupId: string]: boolean;
342
- };
343
- editingGroupId: string | null;
344
- width: number;
345
- height: number;
346
- offsetTop: number;
347
- offsetLeft: number;
348
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
349
- collaborators: Map<import("../types").SocketId, Readonly<{
350
- pointer?: import("../types").CollaboratorPointer | undefined;
351
- button?: "up" | "down" | undefined;
352
- selectedElementIds?: Readonly<{
353
- [id: string]: true;
354
- }> | undefined;
355
- username?: string | null | undefined;
356
- userState?: import("../types").UserIdleState | undefined;
357
- color?: {
358
- background: string;
359
- stroke: string;
360
- } | undefined;
361
- avatarUrl?: string | undefined;
362
- id?: string | undefined;
363
- socketId?: import("../types").SocketId | undefined;
364
- isCurrentUser?: boolean | undefined;
365
- isInCall?: boolean | undefined;
366
- isSpeaking?: boolean | undefined;
367
- isMuted?: boolean | undefined;
368
- }>>;
369
- stats: {
370
- open: boolean;
371
- panels: number;
372
- };
373
- currentChartType: import("../element/types").ChartType;
374
- pasteDialog: {
375
- shown: false;
376
- data: null;
377
- } | {
378
- shown: true;
379
- data: import("../charts").Spreadsheet;
380
- };
381
- pendingImageElementId: string | null;
382
- showHyperlinkPopup: false | "info" | "editor";
383
- linkOpacity: number;
384
- trayModeEnabled: boolean;
385
- colorPalette?: {
386
- canvasBackground: import("../colors").ColorPaletteCustom;
387
- elementBackground: import("../colors").ColorPaletteCustom;
388
- elementStroke: import("../colors").ColorPaletteCustom;
389
- topPicks: {
390
- canvasBackground: [string, string, string, string, string];
391
- elementStroke: [string, string, string, string, string];
392
- elementBackground: [string, string, string, string, string];
393
- };
394
- } | undefined;
395
- allowWheelZoom?: boolean | undefined;
396
- allowPinchZoom?: boolean | undefined;
397
- pinnedScripts?: string[] | undefined;
398
- customPens?: any[] | undefined;
399
- currentStrokeOptions?: any;
400
- resetCustomPen?: any;
401
- gridColor: {
402
- Bold: string;
403
- Regular: string;
404
- };
405
- highlightSearchResult: boolean;
406
- dynamicStyle: {
407
- [x: string]: string;
408
- };
409
- frameColor: {
410
- stroke: string;
411
- fill: string;
412
- nameColor: string;
413
- };
414
- invertBindingBehaviour: boolean;
415
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
416
- snapLines: readonly import("../snapping").SnapLine[];
417
- originSnapOffset: {
418
- x: number;
419
- y: number;
420
- } | null;
421
- objectsSnapModeEnabled: boolean;
422
- followedBy: Set<import("../types").SocketId>;
423
- searchMatches: readonly {
424
- id: string;
425
- focus: boolean;
426
- matchedLines: {
427
- offsetX: number;
428
- offsetY: number;
429
- width: number;
430
- height: number;
431
- }[];
432
- }[];
433
- };
434
- storeAction: "none";
435
- };
436
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
437
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
438
- } & {
439
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
440
- };
441
- export declare const actionZoomOut: {
442
- name: "zoomOut";
443
- label: string;
444
- icon: JSX.Element;
445
- viewMode: true;
446
- trackEvent: {
447
- category: "canvas";
448
- };
449
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
450
- appState: {
451
- userToFollow: null;
452
- scrollX: number;
453
- scrollY: number;
454
- zoom: {
455
- value: import("../types").NormalizedZoomValue;
456
- };
457
- contextMenu: {
458
- items: import("../components/ContextMenu").ContextMenuItems;
459
- top: number;
460
- left: number;
461
- } | null;
462
- showWelcomeScreen: boolean;
463
- isLoading: boolean;
464
- errorMessage: import("react").ReactNode;
465
- activeEmbeddable: {
466
- element: import("../element/types").NonDeletedExcalidrawElement;
467
- state: "active" | "hover";
468
- } | null;
469
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
470
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
471
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
472
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
473
- isBindingEnabled: boolean;
474
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
475
- suggestedBindings: import("../element/binding").SuggestedBinding[];
476
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
477
- frameRendering: {
478
- enabled: boolean;
479
- name: boolean;
480
- outline: boolean;
481
- clip: boolean;
482
- };
483
- editingFrame: string | null;
484
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
485
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
486
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
487
- activeTool: {
488
- lastActiveTool: import("../types").ActiveTool | null;
489
- locked: boolean;
490
- } & import("../types").ActiveTool;
491
- penMode: boolean;
492
- penDetected: boolean;
493
- exportBackground: boolean;
494
- exportEmbedScene: boolean;
495
- exportWithDarkMode: boolean;
496
- exportScale: number;
497
- currentItemStrokeColor: string;
498
- currentItemBackgroundColor: string;
499
- currentItemFillStyle: import("../element/types").FillStyle;
500
- currentItemStrokeWidth: number;
501
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
502
- currentItemRoughness: number;
503
- currentItemOpacity: number;
504
- currentItemFontFamily: number;
505
- currentItemFontSize: number;
506
- currentItemTextAlign: string;
507
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
508
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
509
- currentHoveredFontFamily: number | null;
510
- currentItemRoundness: import("../element/types").StrokeRoundness;
511
- currentItemArrowType: "round" | "sharp" | "elbow";
512
- viewBackgroundColor: string;
513
- cursorButton: "up" | "down";
514
- scrolledOutside: boolean;
515
- name: string | null;
516
- isResizing: boolean;
517
- isRotating: boolean;
518
- openMenu: "canvas" | "shape" | null;
519
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
520
- openSidebar: {
521
- name: string;
522
- tab?: string | undefined;
523
- } | null;
524
- openDialog: {
525
- name: "imageExport" | "help" | "jsonExport";
526
- } | {
527
- name: "ttd";
528
- tab: "mermaid" | "text-to-diagram";
529
- } | {
530
- name: "commandPalette";
531
- } | null;
532
- defaultSidebarDockedPreference: boolean;
533
- lastPointerDownWith: import("../element/types").PointerType;
534
- selectedElementIds: Readonly<{
535
- [id: string]: true;
536
- }>;
537
- previousSelectedElementIds: {
538
- [id: string]: true;
539
- };
540
- selectedElementsAreBeingDragged: boolean;
541
- shouldCacheIgnoreZoom: boolean;
542
- toast: {
543
- message: string;
544
- closable?: boolean | undefined;
545
- duration?: number | undefined;
546
- } | null;
547
- zenModeEnabled: boolean;
548
- theme: import("../element/types").Theme;
549
- gridSize: number;
550
- gridStep: number;
551
- gridModeEnabled: boolean;
552
- viewModeEnabled: boolean;
553
- selectedGroupIds: {
554
- [groupId: string]: boolean;
555
- };
556
- editingGroupId: string | null;
557
- width: number;
558
- height: number;
559
- offsetTop: number;
560
- offsetLeft: number;
561
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
562
- collaborators: Map<import("../types").SocketId, Readonly<{
563
- pointer?: import("../types").CollaboratorPointer | undefined;
564
- button?: "up" | "down" | undefined;
565
- selectedElementIds?: Readonly<{
566
- [id: string]: true;
567
- }> | undefined;
568
- username?: string | null | undefined;
569
- userState?: import("../types").UserIdleState | undefined;
570
- color?: {
571
- background: string;
572
- stroke: string;
573
- } | undefined;
574
- avatarUrl?: string | undefined;
575
- id?: string | undefined;
576
- socketId?: import("../types").SocketId | undefined;
577
- isCurrentUser?: boolean | undefined;
578
- isInCall?: boolean | undefined;
579
- isSpeaking?: boolean | undefined;
580
- isMuted?: boolean | undefined;
581
- }>>;
582
- stats: {
583
- open: boolean;
584
- panels: number;
585
- };
586
- currentChartType: import("../element/types").ChartType;
587
- pasteDialog: {
588
- shown: false;
589
- data: null;
590
- } | {
591
- shown: true;
592
- data: import("../charts").Spreadsheet;
593
- };
594
- pendingImageElementId: string | null;
595
- showHyperlinkPopup: false | "info" | "editor";
596
- linkOpacity: number;
597
- trayModeEnabled: boolean;
598
- colorPalette?: {
599
- canvasBackground: import("../colors").ColorPaletteCustom;
600
- elementBackground: import("../colors").ColorPaletteCustom;
601
- elementStroke: import("../colors").ColorPaletteCustom;
602
- topPicks: {
603
- canvasBackground: [string, string, string, string, string];
604
- elementStroke: [string, string, string, string, string];
605
- elementBackground: [string, string, string, string, string];
606
- };
607
- } | undefined;
608
- allowWheelZoom?: boolean | undefined;
609
- allowPinchZoom?: boolean | undefined;
610
- pinnedScripts?: string[] | undefined;
611
- customPens?: any[] | undefined;
612
- currentStrokeOptions?: any;
613
- resetCustomPen?: any;
614
- gridColor: {
615
- Bold: string;
616
- Regular: string;
617
- };
618
- highlightSearchResult: boolean;
619
- dynamicStyle: {
620
- [x: string]: string;
621
- };
622
- frameColor: {
623
- stroke: string;
624
- fill: string;
625
- nameColor: string;
626
- };
627
- invertBindingBehaviour: boolean;
628
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
629
- snapLines: readonly import("../snapping").SnapLine[];
630
- originSnapOffset: {
631
- x: number;
632
- y: number;
633
- } | null;
634
- objectsSnapModeEnabled: boolean;
635
- followedBy: Set<import("../types").SocketId>;
636
- searchMatches: readonly {
637
- id: string;
638
- focus: boolean;
639
- matchedLines: {
640
- offsetX: number;
641
- offsetY: number;
642
- width: number;
643
- height: number;
644
- }[];
645
- }[];
646
- };
647
- storeAction: "none";
648
- };
649
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
650
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
651
- } & {
652
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
653
- };
654
- export declare const actionResetZoom: {
655
- name: "resetZoom";
656
- label: string;
657
- icon: JSX.Element;
658
- viewMode: true;
659
- trackEvent: {
660
- category: "canvas";
661
- };
662
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
663
- appState: {
664
- userToFollow: null;
665
- scrollX: number;
666
- scrollY: number;
667
- zoom: {
668
- value: import("../types").NormalizedZoomValue;
669
- };
670
- contextMenu: {
671
- items: import("../components/ContextMenu").ContextMenuItems;
672
- top: number;
673
- left: number;
674
- } | null;
675
- showWelcomeScreen: boolean;
676
- isLoading: boolean;
677
- errorMessage: import("react").ReactNode;
678
- activeEmbeddable: {
679
- element: import("../element/types").NonDeletedExcalidrawElement;
680
- state: "active" | "hover";
681
- } | null;
682
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
683
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
684
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
685
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
686
- isBindingEnabled: boolean;
687
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
688
- suggestedBindings: import("../element/binding").SuggestedBinding[];
689
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
690
- frameRendering: {
691
- enabled: boolean;
692
- name: boolean;
693
- outline: boolean;
694
- clip: boolean;
695
- };
696
- editingFrame: string | null;
697
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
698
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
699
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
700
- activeTool: {
701
- lastActiveTool: import("../types").ActiveTool | null;
702
- locked: boolean;
703
- } & import("../types").ActiveTool;
704
- penMode: boolean;
705
- penDetected: boolean;
706
- exportBackground: boolean;
707
- exportEmbedScene: boolean;
708
- exportWithDarkMode: boolean;
709
- exportScale: number;
710
- currentItemStrokeColor: string;
711
- currentItemBackgroundColor: string;
712
- currentItemFillStyle: import("../element/types").FillStyle;
713
- currentItemStrokeWidth: number;
714
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
715
- currentItemRoughness: number;
716
- currentItemOpacity: number;
717
- currentItemFontFamily: number;
718
- currentItemFontSize: number;
719
- currentItemTextAlign: string;
720
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
721
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
722
- currentHoveredFontFamily: number | null;
723
- currentItemRoundness: import("../element/types").StrokeRoundness;
724
- currentItemArrowType: "round" | "sharp" | "elbow";
725
- viewBackgroundColor: string;
726
- cursorButton: "up" | "down";
727
- scrolledOutside: boolean;
728
- name: string | null;
729
- isResizing: boolean;
730
- isRotating: boolean;
731
- openMenu: "canvas" | "shape" | null;
732
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
733
- openSidebar: {
734
- name: string;
735
- tab?: string | undefined;
736
- } | null;
737
- openDialog: {
738
- name: "imageExport" | "help" | "jsonExport";
739
- } | {
740
- name: "ttd";
741
- tab: "mermaid" | "text-to-diagram";
742
- } | {
743
- name: "commandPalette";
744
- } | null;
745
- defaultSidebarDockedPreference: boolean;
746
- lastPointerDownWith: import("../element/types").PointerType;
747
- selectedElementIds: Readonly<{
748
- [id: string]: true;
749
- }>;
750
- previousSelectedElementIds: {
751
- [id: string]: true;
752
- };
753
- selectedElementsAreBeingDragged: boolean;
754
- shouldCacheIgnoreZoom: boolean;
755
- toast: {
756
- message: string;
757
- closable?: boolean | undefined;
758
- duration?: number | undefined;
759
- } | null;
760
- zenModeEnabled: boolean;
761
- theme: import("../element/types").Theme;
762
- gridSize: number;
763
- gridStep: number;
764
- gridModeEnabled: boolean;
765
- viewModeEnabled: boolean;
766
- selectedGroupIds: {
767
- [groupId: string]: boolean;
768
- };
769
- editingGroupId: string | null;
770
- width: number;
771
- height: number;
772
- offsetTop: number;
773
- offsetLeft: number;
774
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
775
- collaborators: Map<import("../types").SocketId, Readonly<{
776
- pointer?: import("../types").CollaboratorPointer | undefined;
777
- button?: "up" | "down" | undefined;
778
- selectedElementIds?: Readonly<{
779
- [id: string]: true;
780
- }> | undefined;
781
- username?: string | null | undefined;
782
- userState?: import("../types").UserIdleState | undefined;
783
- color?: {
784
- background: string;
785
- stroke: string;
786
- } | undefined;
787
- avatarUrl?: string | undefined;
788
- id?: string | undefined;
789
- socketId?: import("../types").SocketId | undefined;
790
- isCurrentUser?: boolean | undefined;
791
- isInCall?: boolean | undefined;
792
- isSpeaking?: boolean | undefined;
793
- isMuted?: boolean | undefined;
794
- }>>;
795
- stats: {
796
- open: boolean;
797
- panels: number;
798
- };
799
- currentChartType: import("../element/types").ChartType;
800
- pasteDialog: {
801
- shown: false;
802
- data: null;
803
- } | {
804
- shown: true;
805
- data: import("../charts").Spreadsheet;
806
- };
807
- pendingImageElementId: string | null;
808
- showHyperlinkPopup: false | "info" | "editor";
809
- linkOpacity: number;
810
- trayModeEnabled: boolean;
811
- colorPalette?: {
812
- canvasBackground: import("../colors").ColorPaletteCustom;
813
- elementBackground: import("../colors").ColorPaletteCustom;
814
- elementStroke: import("../colors").ColorPaletteCustom;
815
- topPicks: {
816
- canvasBackground: [string, string, string, string, string];
817
- elementStroke: [string, string, string, string, string];
818
- elementBackground: [string, string, string, string, string];
819
- };
820
- } | undefined;
821
- allowWheelZoom?: boolean | undefined;
822
- allowPinchZoom?: boolean | undefined;
823
- pinnedScripts?: string[] | undefined;
824
- customPens?: any[] | undefined;
825
- currentStrokeOptions?: any;
826
- resetCustomPen?: any;
827
- gridColor: {
828
- Bold: string;
829
- Regular: string;
830
- };
831
- highlightSearchResult: boolean;
832
- dynamicStyle: {
833
- [x: string]: string;
834
- };
835
- frameColor: {
836
- stroke: string;
837
- fill: string;
838
- nameColor: string;
839
- };
840
- invertBindingBehaviour: boolean;
841
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
842
- snapLines: readonly import("../snapping").SnapLine[];
843
- originSnapOffset: {
844
- x: number;
845
- y: number;
846
- } | null;
847
- objectsSnapModeEnabled: boolean;
848
- followedBy: Set<import("../types").SocketId>;
849
- searchMatches: readonly {
850
- id: string;
851
- focus: boolean;
852
- matchedLines: {
853
- offsetX: number;
854
- offsetY: number;
855
- width: number;
856
- height: number;
857
- }[];
858
- }[];
859
- };
860
- storeAction: "none";
861
- };
862
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
863
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
864
- } & {
865
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
866
- };
867
- export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
868
- bounds: SceneBounds;
869
- canvasOffsets?: Partial<{
870
- top: number;
871
- right: number;
872
- bottom: number;
873
- left: number;
874
- }> | undefined;
875
- appState: Readonly<AppState>;
876
- /** whether to fit content to viewport (beyond >100%) */
877
- fitToViewport: boolean;
878
- /** zoom content to cover X of the viewport, when fitToViewport=true */
879
- viewportZoomFactor?: number | undefined;
880
- minZoom?: number | undefined;
881
- maxZoom?: number | undefined;
882
- }) => {
883
- appState: {
884
- scrollX: number;
885
- scrollY: number;
886
- zoom: {
887
- value: import("../types").NormalizedZoomValue;
888
- };
889
- contextMenu: {
890
- items: import("../components/ContextMenu").ContextMenuItems;
891
- top: number;
892
- left: number;
893
- } | null;
894
- showWelcomeScreen: boolean;
895
- isLoading: boolean;
896
- errorMessage: import("react").ReactNode;
897
- activeEmbeddable: {
898
- element: import("../element/types").NonDeletedExcalidrawElement;
899
- state: "active" | "hover";
900
- } | null;
901
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
902
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
903
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
904
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
905
- isBindingEnabled: boolean;
906
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
907
- suggestedBindings: import("../element/binding").SuggestedBinding[];
908
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
909
- frameRendering: {
910
- enabled: boolean;
911
- name: boolean;
912
- outline: boolean;
913
- clip: boolean;
914
- };
915
- editingFrame: string | null;
916
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
917
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
918
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
919
- activeTool: {
920
- lastActiveTool: import("../types").ActiveTool | null;
921
- locked: boolean;
922
- } & import("../types").ActiveTool;
923
- penMode: boolean;
924
- penDetected: boolean;
925
- exportBackground: boolean;
926
- exportEmbedScene: boolean;
927
- exportWithDarkMode: boolean;
928
- exportScale: number;
929
- currentItemStrokeColor: string;
930
- currentItemBackgroundColor: string;
931
- currentItemFillStyle: import("../element/types").FillStyle;
932
- currentItemStrokeWidth: number;
933
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
934
- currentItemRoughness: number;
935
- currentItemOpacity: number;
936
- currentItemFontFamily: number;
937
- currentItemFontSize: number;
938
- currentItemTextAlign: string;
939
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
940
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
941
- currentHoveredFontFamily: number | null;
942
- currentItemRoundness: import("../element/types").StrokeRoundness;
943
- currentItemArrowType: "round" | "sharp" | "elbow";
944
- viewBackgroundColor: string;
945
- cursorButton: "up" | "down";
946
- scrolledOutside: boolean;
947
- name: string | null;
948
- isResizing: boolean;
949
- isRotating: boolean;
950
- openMenu: "canvas" | "shape" | null;
951
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
952
- openSidebar: {
953
- name: string;
954
- tab?: string | undefined;
955
- } | null;
956
- openDialog: {
957
- name: "imageExport" | "help" | "jsonExport";
958
- } | {
959
- name: "ttd";
960
- tab: "mermaid" | "text-to-diagram";
961
- } | {
962
- name: "commandPalette";
963
- } | null;
964
- defaultSidebarDockedPreference: boolean;
965
- lastPointerDownWith: import("../element/types").PointerType;
966
- selectedElementIds: Readonly<{
967
- [id: string]: true;
968
- }>;
969
- previousSelectedElementIds: {
970
- [id: string]: true;
971
- };
972
- selectedElementsAreBeingDragged: boolean;
973
- shouldCacheIgnoreZoom: boolean;
974
- toast: {
975
- message: string;
976
- closable?: boolean | undefined;
977
- duration?: number | undefined;
978
- } | null;
979
- zenModeEnabled: boolean;
980
- theme: import("../element/types").Theme;
981
- gridSize: number;
982
- gridStep: number;
983
- gridModeEnabled: boolean;
984
- viewModeEnabled: boolean;
985
- selectedGroupIds: {
986
- [groupId: string]: boolean;
987
- };
988
- editingGroupId: string | null;
989
- width: number;
990
- height: number;
991
- offsetTop: number;
992
- offsetLeft: number;
993
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
994
- collaborators: Map<import("../types").SocketId, Readonly<{
995
- pointer?: import("../types").CollaboratorPointer | undefined;
996
- button?: "up" | "down" | undefined;
997
- selectedElementIds?: Readonly<{
998
- [id: string]: true;
999
- }> | undefined;
1000
- username?: string | null | undefined;
1001
- userState?: import("../types").UserIdleState | undefined;
1002
- color?: {
1003
- background: string;
1004
- stroke: string;
1005
- } | undefined;
1006
- avatarUrl?: string | undefined;
1007
- id?: string | undefined;
1008
- socketId?: import("../types").SocketId | undefined;
1009
- isCurrentUser?: boolean | undefined;
1010
- isInCall?: boolean | undefined;
1011
- isSpeaking?: boolean | undefined;
1012
- isMuted?: boolean | undefined;
1013
- }>>;
1014
- stats: {
1015
- open: boolean;
1016
- panels: number;
1017
- };
1018
- currentChartType: import("../element/types").ChartType;
1019
- pasteDialog: {
1020
- shown: false;
1021
- data: null;
1022
- } | {
1023
- shown: true;
1024
- data: import("../charts").Spreadsheet;
1025
- };
1026
- pendingImageElementId: string | null;
1027
- showHyperlinkPopup: false | "info" | "editor";
1028
- linkOpacity: number;
1029
- trayModeEnabled: boolean;
1030
- colorPalette?: {
1031
- canvasBackground: import("../colors").ColorPaletteCustom;
1032
- elementBackground: import("../colors").ColorPaletteCustom;
1033
- elementStroke: import("../colors").ColorPaletteCustom;
1034
- topPicks: {
1035
- canvasBackground: [string, string, string, string, string];
1036
- elementStroke: [string, string, string, string, string];
1037
- elementBackground: [string, string, string, string, string];
1038
- };
1039
- } | undefined;
1040
- allowWheelZoom?: boolean | undefined;
1041
- allowPinchZoom?: boolean | undefined;
1042
- pinnedScripts?: string[] | undefined;
1043
- customPens?: any[] | undefined;
1044
- currentStrokeOptions?: any;
1045
- resetCustomPen?: any;
1046
- gridColor: {
1047
- Bold: string;
1048
- Regular: string;
1049
- };
1050
- highlightSearchResult: boolean;
1051
- dynamicStyle: {
1052
- [x: string]: string;
1053
- };
1054
- frameColor: {
1055
- stroke: string;
1056
- fill: string;
1057
- nameColor: string;
1058
- };
1059
- invertBindingBehaviour: boolean;
1060
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1061
- snapLines: readonly import("../snapping").SnapLine[];
1062
- originSnapOffset: {
1063
- x: number;
1064
- y: number;
1065
- } | null;
1066
- objectsSnapModeEnabled: boolean;
1067
- userToFollow: import("../types").UserToFollow | null;
1068
- followedBy: Set<import("../types").SocketId>;
1069
- searchMatches: readonly {
1070
- id: string;
1071
- focus: boolean;
1072
- matchedLines: {
1073
- offsetX: number;
1074
- offsetY: number;
1075
- width: number;
1076
- height: number;
1077
- }[];
1078
- }[];
1079
- };
1080
- storeAction: "none";
1081
- };
1082
- export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
1083
- canvasOffsets?: Partial<{
1084
- top: number;
1085
- right: number;
1086
- bottom: number;
1087
- left: number;
1088
- }> | undefined;
1089
- targetElements: readonly ExcalidrawElement[];
1090
- appState: Readonly<AppState>;
1091
- /** whether to fit content to viewport (beyond >100%) */
1092
- fitToViewport: boolean;
1093
- /** zoom content to cover X of the viewport, when fitToViewport=true */
1094
- viewportZoomFactor?: number | undefined;
1095
- minZoom?: number | undefined;
1096
- maxZoom?: number | undefined;
1097
- }) => {
1098
- appState: {
1099
- scrollX: number;
1100
- scrollY: number;
1101
- zoom: {
1102
- value: import("../types").NormalizedZoomValue;
1103
- };
1104
- contextMenu: {
1105
- items: import("../components/ContextMenu").ContextMenuItems;
1106
- top: number;
1107
- left: number;
1108
- } | null;
1109
- showWelcomeScreen: boolean;
1110
- isLoading: boolean;
1111
- errorMessage: import("react").ReactNode;
1112
- activeEmbeddable: {
1113
- element: import("../element/types").NonDeletedExcalidrawElement;
1114
- state: "active" | "hover";
1115
- } | null;
1116
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1117
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1118
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1119
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1120
- isBindingEnabled: boolean;
1121
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1122
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1123
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1124
- frameRendering: {
1125
- enabled: boolean;
1126
- name: boolean;
1127
- outline: boolean;
1128
- clip: boolean;
1129
- };
1130
- editingFrame: string | null;
1131
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1132
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1133
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1134
- activeTool: {
1135
- lastActiveTool: import("../types").ActiveTool | null;
1136
- locked: boolean;
1137
- } & import("../types").ActiveTool;
1138
- penMode: boolean;
1139
- penDetected: boolean;
1140
- exportBackground: boolean;
1141
- exportEmbedScene: boolean;
1142
- exportWithDarkMode: boolean;
1143
- exportScale: number;
1144
- currentItemStrokeColor: string;
1145
- currentItemBackgroundColor: string;
1146
- currentItemFillStyle: import("../element/types").FillStyle;
1147
- currentItemStrokeWidth: number;
1148
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1149
- currentItemRoughness: number;
1150
- currentItemOpacity: number;
1151
- currentItemFontFamily: number;
1152
- currentItemFontSize: number;
1153
- currentItemTextAlign: string;
1154
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1155
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1156
- currentHoveredFontFamily: number | null;
1157
- currentItemRoundness: import("../element/types").StrokeRoundness;
1158
- currentItemArrowType: "round" | "sharp" | "elbow";
1159
- viewBackgroundColor: string;
1160
- cursorButton: "up" | "down";
1161
- scrolledOutside: boolean;
1162
- name: string | null;
1163
- isResizing: boolean;
1164
- isRotating: boolean;
1165
- openMenu: "canvas" | "shape" | null;
1166
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1167
- openSidebar: {
1168
- name: string;
1169
- tab?: string | undefined;
1170
- } | null;
1171
- openDialog: {
1172
- name: "imageExport" | "help" | "jsonExport";
1173
- } | {
1174
- name: "ttd";
1175
- tab: "mermaid" | "text-to-diagram";
1176
- } | {
1177
- name: "commandPalette";
1178
- } | null;
1179
- defaultSidebarDockedPreference: boolean;
1180
- lastPointerDownWith: import("../element/types").PointerType;
1181
- selectedElementIds: Readonly<{
1182
- [id: string]: true;
1183
- }>;
1184
- previousSelectedElementIds: {
1185
- [id: string]: true;
1186
- };
1187
- selectedElementsAreBeingDragged: boolean;
1188
- shouldCacheIgnoreZoom: boolean;
1189
- toast: {
1190
- message: string;
1191
- closable?: boolean | undefined;
1192
- duration?: number | undefined;
1193
- } | null;
1194
- zenModeEnabled: boolean;
1195
- theme: import("../element/types").Theme;
1196
- gridSize: number;
1197
- gridStep: number;
1198
- gridModeEnabled: boolean;
1199
- viewModeEnabled: boolean;
1200
- selectedGroupIds: {
1201
- [groupId: string]: boolean;
1202
- };
1203
- editingGroupId: string | null;
1204
- width: number;
1205
- height: number;
1206
- offsetTop: number;
1207
- offsetLeft: number;
1208
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1209
- collaborators: Map<import("../types").SocketId, Readonly<{
1210
- pointer?: import("../types").CollaboratorPointer | undefined;
1211
- button?: "up" | "down" | undefined;
1212
- selectedElementIds?: Readonly<{
1213
- [id: string]: true;
1214
- }> | undefined;
1215
- username?: string | null | undefined;
1216
- userState?: import("../types").UserIdleState | undefined;
1217
- color?: {
1218
- background: string;
1219
- stroke: string;
1220
- } | undefined;
1221
- avatarUrl?: string | undefined;
1222
- id?: string | undefined;
1223
- socketId?: import("../types").SocketId | undefined;
1224
- isCurrentUser?: boolean | undefined;
1225
- isInCall?: boolean | undefined;
1226
- isSpeaking?: boolean | undefined;
1227
- isMuted?: boolean | undefined;
1228
- }>>;
1229
- stats: {
1230
- open: boolean;
1231
- panels: number;
1232
- };
1233
- currentChartType: import("../element/types").ChartType;
1234
- pasteDialog: {
1235
- shown: false;
1236
- data: null;
1237
- } | {
1238
- shown: true;
1239
- data: import("../charts").Spreadsheet;
1240
- };
1241
- pendingImageElementId: string | null;
1242
- showHyperlinkPopup: false | "info" | "editor";
1243
- linkOpacity: number;
1244
- trayModeEnabled: boolean;
1245
- colorPalette?: {
1246
- canvasBackground: import("../colors").ColorPaletteCustom;
1247
- elementBackground: import("../colors").ColorPaletteCustom;
1248
- elementStroke: import("../colors").ColorPaletteCustom;
1249
- topPicks: {
1250
- canvasBackground: [string, string, string, string, string];
1251
- elementStroke: [string, string, string, string, string];
1252
- elementBackground: [string, string, string, string, string];
1253
- };
1254
- } | undefined;
1255
- allowWheelZoom?: boolean | undefined;
1256
- allowPinchZoom?: boolean | undefined;
1257
- pinnedScripts?: string[] | undefined;
1258
- customPens?: any[] | undefined;
1259
- currentStrokeOptions?: any;
1260
- resetCustomPen?: any;
1261
- gridColor: {
1262
- Bold: string;
1263
- Regular: string;
1264
- };
1265
- highlightSearchResult: boolean;
1266
- dynamicStyle: {
1267
- [x: string]: string;
1268
- };
1269
- frameColor: {
1270
- stroke: string;
1271
- fill: string;
1272
- nameColor: string;
1273
- };
1274
- invertBindingBehaviour: boolean;
1275
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1276
- snapLines: readonly import("../snapping").SnapLine[];
1277
- originSnapOffset: {
1278
- x: number;
1279
- y: number;
1280
- } | null;
1281
- objectsSnapModeEnabled: boolean;
1282
- userToFollow: import("../types").UserToFollow | null;
1283
- followedBy: Set<import("../types").SocketId>;
1284
- searchMatches: readonly {
1285
- id: string;
1286
- focus: boolean;
1287
- matchedLines: {
1288
- offsetX: number;
1289
- offsetY: number;
1290
- width: number;
1291
- height: number;
1292
- }[];
1293
- }[];
1294
- };
1295
- storeAction: "none";
1296
- };
1297
- export declare const actionZoomToFitSelectionInViewport: {
1298
- name: "zoomToFitSelectionInViewport";
1299
- label: string;
1300
- icon: JSX.Element;
1301
- trackEvent: {
1302
- category: "canvas";
1303
- };
1304
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
1305
- appState: {
1306
- scrollX: number;
1307
- scrollY: number;
1308
- zoom: {
1309
- value: import("../types").NormalizedZoomValue;
1310
- };
1311
- contextMenu: {
1312
- items: import("../components/ContextMenu").ContextMenuItems;
1313
- top: number;
1314
- left: number;
1315
- } | null;
1316
- showWelcomeScreen: boolean;
1317
- isLoading: boolean;
1318
- errorMessage: import("react").ReactNode;
1319
- activeEmbeddable: {
1320
- element: import("../element/types").NonDeletedExcalidrawElement;
1321
- state: "active" | "hover";
1322
- } | null;
1323
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1324
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1325
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1326
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1327
- isBindingEnabled: boolean;
1328
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1329
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1330
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1331
- frameRendering: {
1332
- enabled: boolean;
1333
- name: boolean;
1334
- outline: boolean;
1335
- clip: boolean;
1336
- };
1337
- editingFrame: string | null;
1338
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1339
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1340
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1341
- activeTool: {
1342
- lastActiveTool: import("../types").ActiveTool | null;
1343
- locked: boolean;
1344
- } & import("../types").ActiveTool;
1345
- penMode: boolean;
1346
- penDetected: boolean;
1347
- exportBackground: boolean;
1348
- exportEmbedScene: boolean;
1349
- exportWithDarkMode: boolean;
1350
- exportScale: number;
1351
- currentItemStrokeColor: string;
1352
- currentItemBackgroundColor: string;
1353
- currentItemFillStyle: import("../element/types").FillStyle;
1354
- currentItemStrokeWidth: number;
1355
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1356
- currentItemRoughness: number;
1357
- currentItemOpacity: number;
1358
- currentItemFontFamily: number;
1359
- currentItemFontSize: number;
1360
- currentItemTextAlign: string;
1361
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1362
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1363
- currentHoveredFontFamily: number | null;
1364
- currentItemRoundness: import("../element/types").StrokeRoundness;
1365
- currentItemArrowType: "round" | "sharp" | "elbow";
1366
- viewBackgroundColor: string;
1367
- cursorButton: "up" | "down";
1368
- scrolledOutside: boolean;
1369
- name: string | null;
1370
- isResizing: boolean;
1371
- isRotating: boolean;
1372
- openMenu: "canvas" | "shape" | null;
1373
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1374
- openSidebar: {
1375
- name: string;
1376
- tab?: string | undefined;
1377
- } | null;
1378
- openDialog: {
1379
- name: "imageExport" | "help" | "jsonExport";
1380
- } | {
1381
- name: "ttd";
1382
- tab: "mermaid" | "text-to-diagram";
1383
- } | {
1384
- name: "commandPalette";
1385
- } | null;
1386
- defaultSidebarDockedPreference: boolean;
1387
- lastPointerDownWith: import("../element/types").PointerType;
1388
- selectedElementIds: Readonly<{
1389
- [id: string]: true;
1390
- }>;
1391
- previousSelectedElementIds: {
1392
- [id: string]: true;
1393
- };
1394
- selectedElementsAreBeingDragged: boolean;
1395
- shouldCacheIgnoreZoom: boolean;
1396
- toast: {
1397
- message: string;
1398
- closable?: boolean | undefined;
1399
- duration?: number | undefined;
1400
- } | null;
1401
- zenModeEnabled: boolean;
1402
- theme: import("../element/types").Theme;
1403
- gridSize: number;
1404
- gridStep: number;
1405
- gridModeEnabled: boolean;
1406
- viewModeEnabled: boolean;
1407
- selectedGroupIds: {
1408
- [groupId: string]: boolean;
1409
- };
1410
- editingGroupId: string | null;
1411
- width: number;
1412
- height: number;
1413
- offsetTop: number;
1414
- offsetLeft: number;
1415
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1416
- collaborators: Map<import("../types").SocketId, Readonly<{
1417
- pointer?: import("../types").CollaboratorPointer | undefined;
1418
- button?: "up" | "down" | undefined;
1419
- selectedElementIds?: Readonly<{
1420
- [id: string]: true;
1421
- }> | undefined;
1422
- username?: string | null | undefined;
1423
- userState?: import("../types").UserIdleState | undefined;
1424
- color?: {
1425
- background: string;
1426
- stroke: string;
1427
- } | undefined;
1428
- avatarUrl?: string | undefined;
1429
- id?: string | undefined;
1430
- socketId?: import("../types").SocketId | undefined;
1431
- isCurrentUser?: boolean | undefined;
1432
- isInCall?: boolean | undefined;
1433
- isSpeaking?: boolean | undefined;
1434
- isMuted?: boolean | undefined;
1435
- }>>;
1436
- stats: {
1437
- open: boolean;
1438
- panels: number;
1439
- };
1440
- currentChartType: import("../element/types").ChartType;
1441
- pasteDialog: {
1442
- shown: false;
1443
- data: null;
1444
- } | {
1445
- shown: true;
1446
- data: import("../charts").Spreadsheet;
1447
- };
1448
- pendingImageElementId: string | null;
1449
- showHyperlinkPopup: false | "info" | "editor";
1450
- linkOpacity: number;
1451
- trayModeEnabled: boolean;
1452
- colorPalette?: {
1453
- canvasBackground: import("../colors").ColorPaletteCustom;
1454
- elementBackground: import("../colors").ColorPaletteCustom;
1455
- elementStroke: import("../colors").ColorPaletteCustom;
1456
- topPicks: {
1457
- canvasBackground: [string, string, string, string, string];
1458
- elementStroke: [string, string, string, string, string];
1459
- elementBackground: [string, string, string, string, string];
1460
- };
1461
- } | undefined;
1462
- allowWheelZoom?: boolean | undefined;
1463
- allowPinchZoom?: boolean | undefined;
1464
- pinnedScripts?: string[] | undefined;
1465
- customPens?: any[] | undefined;
1466
- currentStrokeOptions?: any;
1467
- resetCustomPen?: any;
1468
- gridColor: {
1469
- Bold: string;
1470
- Regular: string;
1471
- };
1472
- highlightSearchResult: boolean;
1473
- dynamicStyle: {
1474
- [x: string]: string;
1475
- };
1476
- frameColor: {
1477
- stroke: string;
1478
- fill: string;
1479
- nameColor: string;
1480
- };
1481
- invertBindingBehaviour: boolean;
1482
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1483
- snapLines: readonly import("../snapping").SnapLine[];
1484
- originSnapOffset: {
1485
- x: number;
1486
- y: number;
1487
- } | null;
1488
- objectsSnapModeEnabled: boolean;
1489
- userToFollow: import("../types").UserToFollow | null;
1490
- followedBy: Set<import("../types").SocketId>;
1491
- searchMatches: readonly {
1492
- id: string;
1493
- focus: boolean;
1494
- matchedLines: {
1495
- offsetX: number;
1496
- offsetY: number;
1497
- width: number;
1498
- height: number;
1499
- }[];
1500
- }[];
1501
- };
1502
- storeAction: "none";
1503
- };
1504
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1505
- } & {
1506
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1507
- };
1508
- export declare const actionZoomToFitSelection: {
1509
- name: "zoomToFitSelection";
1510
- label: string;
1511
- icon: JSX.Element;
1512
- trackEvent: {
1513
- category: "canvas";
1514
- };
1515
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
1516
- appState: {
1517
- scrollX: number;
1518
- scrollY: number;
1519
- zoom: {
1520
- value: import("../types").NormalizedZoomValue;
1521
- };
1522
- contextMenu: {
1523
- items: import("../components/ContextMenu").ContextMenuItems;
1524
- top: number;
1525
- left: number;
1526
- } | null;
1527
- showWelcomeScreen: boolean;
1528
- isLoading: boolean;
1529
- errorMessage: import("react").ReactNode;
1530
- activeEmbeddable: {
1531
- element: import("../element/types").NonDeletedExcalidrawElement;
1532
- state: "active" | "hover";
1533
- } | null;
1534
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1535
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1536
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1537
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1538
- isBindingEnabled: boolean;
1539
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1540
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1541
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1542
- frameRendering: {
1543
- enabled: boolean;
1544
- name: boolean;
1545
- outline: boolean;
1546
- clip: boolean;
1547
- };
1548
- editingFrame: string | null;
1549
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1550
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1551
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1552
- activeTool: {
1553
- lastActiveTool: import("../types").ActiveTool | null;
1554
- locked: boolean;
1555
- } & import("../types").ActiveTool;
1556
- penMode: boolean;
1557
- penDetected: boolean;
1558
- exportBackground: boolean;
1559
- exportEmbedScene: boolean;
1560
- exportWithDarkMode: boolean;
1561
- exportScale: number;
1562
- currentItemStrokeColor: string;
1563
- currentItemBackgroundColor: string;
1564
- currentItemFillStyle: import("../element/types").FillStyle;
1565
- currentItemStrokeWidth: number;
1566
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1567
- currentItemRoughness: number;
1568
- currentItemOpacity: number;
1569
- currentItemFontFamily: number;
1570
- currentItemFontSize: number;
1571
- currentItemTextAlign: string;
1572
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1573
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1574
- currentHoveredFontFamily: number | null;
1575
- currentItemRoundness: import("../element/types").StrokeRoundness;
1576
- currentItemArrowType: "round" | "sharp" | "elbow";
1577
- viewBackgroundColor: string;
1578
- cursorButton: "up" | "down";
1579
- scrolledOutside: boolean;
1580
- name: string | null;
1581
- isResizing: boolean;
1582
- isRotating: boolean;
1583
- openMenu: "canvas" | "shape" | null;
1584
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1585
- openSidebar: {
1586
- name: string;
1587
- tab?: string | undefined;
1588
- } | null;
1589
- openDialog: {
1590
- name: "imageExport" | "help" | "jsonExport";
1591
- } | {
1592
- name: "ttd";
1593
- tab: "mermaid" | "text-to-diagram";
1594
- } | {
1595
- name: "commandPalette";
1596
- } | null;
1597
- defaultSidebarDockedPreference: boolean;
1598
- lastPointerDownWith: import("../element/types").PointerType;
1599
- selectedElementIds: Readonly<{
1600
- [id: string]: true;
1601
- }>;
1602
- previousSelectedElementIds: {
1603
- [id: string]: true;
1604
- };
1605
- selectedElementsAreBeingDragged: boolean;
1606
- shouldCacheIgnoreZoom: boolean;
1607
- toast: {
1608
- message: string;
1609
- closable?: boolean | undefined;
1610
- duration?: number | undefined;
1611
- } | null;
1612
- zenModeEnabled: boolean;
1613
- theme: import("../element/types").Theme;
1614
- gridSize: number;
1615
- gridStep: number;
1616
- gridModeEnabled: boolean;
1617
- viewModeEnabled: boolean;
1618
- selectedGroupIds: {
1619
- [groupId: string]: boolean;
1620
- };
1621
- editingGroupId: string | null;
1622
- width: number;
1623
- height: number;
1624
- offsetTop: number;
1625
- offsetLeft: number;
1626
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1627
- collaborators: Map<import("../types").SocketId, Readonly<{
1628
- pointer?: import("../types").CollaboratorPointer | undefined;
1629
- button?: "up" | "down" | undefined;
1630
- selectedElementIds?: Readonly<{
1631
- [id: string]: true;
1632
- }> | undefined;
1633
- username?: string | null | undefined;
1634
- userState?: import("../types").UserIdleState | undefined;
1635
- color?: {
1636
- background: string;
1637
- stroke: string;
1638
- } | undefined;
1639
- avatarUrl?: string | undefined;
1640
- id?: string | undefined;
1641
- socketId?: import("../types").SocketId | undefined;
1642
- isCurrentUser?: boolean | undefined;
1643
- isInCall?: boolean | undefined;
1644
- isSpeaking?: boolean | undefined;
1645
- isMuted?: boolean | undefined;
1646
- }>>;
1647
- stats: {
1648
- open: boolean;
1649
- panels: number;
1650
- };
1651
- currentChartType: import("../element/types").ChartType;
1652
- pasteDialog: {
1653
- shown: false;
1654
- data: null;
1655
- } | {
1656
- shown: true;
1657
- data: import("../charts").Spreadsheet;
1658
- };
1659
- pendingImageElementId: string | null;
1660
- showHyperlinkPopup: false | "info" | "editor";
1661
- linkOpacity: number;
1662
- trayModeEnabled: boolean;
1663
- colorPalette?: {
1664
- canvasBackground: import("../colors").ColorPaletteCustom;
1665
- elementBackground: import("../colors").ColorPaletteCustom;
1666
- elementStroke: import("../colors").ColorPaletteCustom;
1667
- topPicks: {
1668
- canvasBackground: [string, string, string, string, string];
1669
- elementStroke: [string, string, string, string, string];
1670
- elementBackground: [string, string, string, string, string];
1671
- };
1672
- } | undefined;
1673
- allowWheelZoom?: boolean | undefined;
1674
- allowPinchZoom?: boolean | undefined;
1675
- pinnedScripts?: string[] | undefined;
1676
- customPens?: any[] | undefined;
1677
- currentStrokeOptions?: any;
1678
- resetCustomPen?: any;
1679
- gridColor: {
1680
- Bold: string;
1681
- Regular: string;
1682
- };
1683
- highlightSearchResult: boolean;
1684
- dynamicStyle: {
1685
- [x: string]: string;
1686
- };
1687
- frameColor: {
1688
- stroke: string;
1689
- fill: string;
1690
- nameColor: string;
1691
- };
1692
- invertBindingBehaviour: boolean;
1693
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1694
- snapLines: readonly import("../snapping").SnapLine[];
1695
- originSnapOffset: {
1696
- x: number;
1697
- y: number;
1698
- } | null;
1699
- objectsSnapModeEnabled: boolean;
1700
- userToFollow: import("../types").UserToFollow | null;
1701
- followedBy: Set<import("../types").SocketId>;
1702
- searchMatches: readonly {
1703
- id: string;
1704
- focus: boolean;
1705
- matchedLines: {
1706
- offsetX: number;
1707
- offsetY: number;
1708
- width: number;
1709
- height: number;
1710
- }[];
1711
- }[];
1712
- };
1713
- storeAction: "none";
1714
- };
1715
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1716
- } & {
1717
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1718
- };
1719
- export declare const actionZoomToFit: {
1720
- name: "zoomToFit";
1721
- label: string;
1722
- icon: JSX.Element;
1723
- viewMode: true;
1724
- trackEvent: {
1725
- category: "canvas";
1726
- };
1727
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
1728
- appState: {
1729
- scrollX: number;
1730
- scrollY: number;
1731
- zoom: {
1732
- value: import("../types").NormalizedZoomValue;
1733
- };
1734
- contextMenu: {
1735
- items: import("../components/ContextMenu").ContextMenuItems;
1736
- top: number;
1737
- left: number;
1738
- } | null;
1739
- showWelcomeScreen: boolean;
1740
- isLoading: boolean;
1741
- errorMessage: import("react").ReactNode;
1742
- activeEmbeddable: {
1743
- element: import("../element/types").NonDeletedExcalidrawElement;
1744
- state: "active" | "hover";
1745
- } | null;
1746
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1747
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1748
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1749
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1750
- isBindingEnabled: boolean;
1751
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1752
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1753
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1754
- frameRendering: {
1755
- enabled: boolean;
1756
- name: boolean;
1757
- outline: boolean;
1758
- clip: boolean;
1759
- };
1760
- editingFrame: string | null;
1761
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1762
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1763
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1764
- activeTool: {
1765
- lastActiveTool: import("../types").ActiveTool | null;
1766
- locked: boolean;
1767
- } & import("../types").ActiveTool;
1768
- penMode: boolean;
1769
- penDetected: boolean;
1770
- exportBackground: boolean;
1771
- exportEmbedScene: boolean;
1772
- exportWithDarkMode: boolean;
1773
- exportScale: number;
1774
- currentItemStrokeColor: string;
1775
- currentItemBackgroundColor: string;
1776
- currentItemFillStyle: import("../element/types").FillStyle;
1777
- currentItemStrokeWidth: number;
1778
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1779
- currentItemRoughness: number;
1780
- currentItemOpacity: number;
1781
- currentItemFontFamily: number;
1782
- currentItemFontSize: number;
1783
- currentItemTextAlign: string;
1784
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1785
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1786
- currentHoveredFontFamily: number | null;
1787
- currentItemRoundness: import("../element/types").StrokeRoundness;
1788
- currentItemArrowType: "round" | "sharp" | "elbow";
1789
- viewBackgroundColor: string;
1790
- cursorButton: "up" | "down";
1791
- scrolledOutside: boolean;
1792
- name: string | null;
1793
- isResizing: boolean;
1794
- isRotating: boolean;
1795
- openMenu: "canvas" | "shape" | null;
1796
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1797
- openSidebar: {
1798
- name: string;
1799
- tab?: string | undefined;
1800
- } | null;
1801
- openDialog: {
1802
- name: "imageExport" | "help" | "jsonExport";
1803
- } | {
1804
- name: "ttd";
1805
- tab: "mermaid" | "text-to-diagram";
1806
- } | {
1807
- name: "commandPalette";
1808
- } | null;
1809
- defaultSidebarDockedPreference: boolean;
1810
- lastPointerDownWith: import("../element/types").PointerType;
1811
- selectedElementIds: Readonly<{
1812
- [id: string]: true;
1813
- }>;
1814
- previousSelectedElementIds: {
1815
- [id: string]: true;
1816
- };
1817
- selectedElementsAreBeingDragged: boolean;
1818
- shouldCacheIgnoreZoom: boolean;
1819
- toast: {
1820
- message: string;
1821
- closable?: boolean | undefined;
1822
- duration?: number | undefined;
1823
- } | null;
1824
- zenModeEnabled: boolean;
1825
- theme: import("../element/types").Theme;
1826
- gridSize: number;
1827
- gridStep: number;
1828
- gridModeEnabled: boolean;
1829
- viewModeEnabled: boolean;
1830
- selectedGroupIds: {
1831
- [groupId: string]: boolean;
1832
- };
1833
- editingGroupId: string | null;
1834
- width: number;
1835
- height: number;
1836
- offsetTop: number;
1837
- offsetLeft: number;
1838
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1839
- collaborators: Map<import("../types").SocketId, Readonly<{
1840
- pointer?: import("../types").CollaboratorPointer | undefined;
1841
- button?: "up" | "down" | undefined;
1842
- selectedElementIds?: Readonly<{
1843
- [id: string]: true;
1844
- }> | undefined;
1845
- username?: string | null | undefined;
1846
- userState?: import("../types").UserIdleState | undefined;
1847
- color?: {
1848
- background: string;
1849
- stroke: string;
1850
- } | undefined;
1851
- avatarUrl?: string | undefined;
1852
- id?: string | undefined;
1853
- socketId?: import("../types").SocketId | undefined;
1854
- isCurrentUser?: boolean | undefined;
1855
- isInCall?: boolean | undefined;
1856
- isSpeaking?: boolean | undefined;
1857
- isMuted?: boolean | undefined;
1858
- }>>;
1859
- stats: {
1860
- open: boolean;
1861
- panels: number;
1862
- };
1863
- currentChartType: import("../element/types").ChartType;
1864
- pasteDialog: {
1865
- shown: false;
1866
- data: null;
1867
- } | {
1868
- shown: true;
1869
- data: import("../charts").Spreadsheet;
1870
- };
1871
- pendingImageElementId: string | null;
1872
- showHyperlinkPopup: false | "info" | "editor";
1873
- linkOpacity: number;
1874
- trayModeEnabled: boolean;
1875
- colorPalette?: {
1876
- canvasBackground: import("../colors").ColorPaletteCustom;
1877
- elementBackground: import("../colors").ColorPaletteCustom;
1878
- elementStroke: import("../colors").ColorPaletteCustom;
1879
- topPicks: {
1880
- canvasBackground: [string, string, string, string, string];
1881
- elementStroke: [string, string, string, string, string];
1882
- elementBackground: [string, string, string, string, string];
1883
- };
1884
- } | undefined;
1885
- allowWheelZoom?: boolean | undefined;
1886
- allowPinchZoom?: boolean | undefined;
1887
- pinnedScripts?: string[] | undefined;
1888
- customPens?: any[] | undefined;
1889
- currentStrokeOptions?: any;
1890
- resetCustomPen?: any;
1891
- gridColor: {
1892
- Bold: string;
1893
- Regular: string;
1894
- };
1895
- highlightSearchResult: boolean;
1896
- dynamicStyle: {
1897
- [x: string]: string;
1898
- };
1899
- frameColor: {
1900
- stroke: string;
1901
- fill: string;
1902
- nameColor: string;
1903
- };
1904
- invertBindingBehaviour: boolean;
1905
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1906
- snapLines: readonly import("../snapping").SnapLine[];
1907
- originSnapOffset: {
1908
- x: number;
1909
- y: number;
1910
- } | null;
1911
- objectsSnapModeEnabled: boolean;
1912
- userToFollow: import("../types").UserToFollow | null;
1913
- followedBy: Set<import("../types").SocketId>;
1914
- searchMatches: readonly {
1915
- id: string;
1916
- focus: boolean;
1917
- matchedLines: {
1918
- offsetX: number;
1919
- offsetY: number;
1920
- width: number;
1921
- height: number;
1922
- }[];
1923
- }[];
1924
- };
1925
- storeAction: "none";
1926
- };
1927
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1928
- } & {
1929
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1930
- };
1931
- export declare const actionToggleTheme: {
1932
- name: "toggleTheme";
1933
- label: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>) => "buttons.lightMode" | "buttons.darkMode";
1934
- keywords: string[];
1935
- icon: (appState: import("../types").UIAppState) => JSX.Element;
1936
- viewMode: true;
1937
- trackEvent: {
1938
- category: "canvas";
1939
- };
1940
- perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1941
- appState: {
1942
- theme: any;
1943
- contextMenu: {
1944
- items: import("../components/ContextMenu").ContextMenuItems;
1945
- top: number;
1946
- left: number;
1947
- } | null;
1948
- showWelcomeScreen: boolean;
1949
- isLoading: boolean;
1950
- errorMessage: import("react").ReactNode;
1951
- activeEmbeddable: {
1952
- element: import("../element/types").NonDeletedExcalidrawElement;
1953
- state: "active" | "hover";
1954
- } | null;
1955
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1956
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1957
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1958
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1959
- isBindingEnabled: boolean;
1960
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1961
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1962
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1963
- frameRendering: {
1964
- enabled: boolean;
1965
- name: boolean;
1966
- outline: boolean;
1967
- clip: boolean;
1968
- };
1969
- editingFrame: string | null;
1970
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1971
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1972
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1973
- activeTool: {
1974
- lastActiveTool: import("../types").ActiveTool | null;
1975
- locked: boolean;
1976
- } & import("../types").ActiveTool;
1977
- penMode: boolean;
1978
- penDetected: boolean;
1979
- exportBackground: boolean;
1980
- exportEmbedScene: boolean;
1981
- exportWithDarkMode: boolean;
1982
- exportScale: number;
1983
- currentItemStrokeColor: string;
1984
- currentItemBackgroundColor: string;
1985
- currentItemFillStyle: import("../element/types").FillStyle;
1986
- currentItemStrokeWidth: number;
1987
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1988
- currentItemRoughness: number;
1989
- currentItemOpacity: number;
1990
- currentItemFontFamily: number;
1991
- currentItemFontSize: number;
1992
- currentItemTextAlign: string;
1993
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1994
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1995
- currentHoveredFontFamily: number | null;
1996
- currentItemRoundness: import("../element/types").StrokeRoundness;
1997
- currentItemArrowType: "round" | "sharp" | "elbow";
1998
- viewBackgroundColor: string;
1999
- scrollX: number;
2000
- scrollY: number;
2001
- cursorButton: "up" | "down";
2002
- scrolledOutside: boolean;
2003
- name: string | null;
2004
- isResizing: boolean;
2005
- isRotating: boolean;
2006
- zoom: Readonly<{
2007
- value: import("../types").NormalizedZoomValue;
2008
- }>;
2009
- openMenu: "canvas" | "shape" | null;
2010
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2011
- openSidebar: {
2012
- name: string;
2013
- tab?: string | undefined;
2014
- } | null;
2015
- openDialog: {
2016
- name: "imageExport" | "help" | "jsonExport";
2017
- } | {
2018
- name: "ttd";
2019
- tab: "mermaid" | "text-to-diagram";
2020
- } | {
2021
- name: "commandPalette";
2022
- } | null;
2023
- defaultSidebarDockedPreference: boolean;
2024
- lastPointerDownWith: import("../element/types").PointerType;
2025
- selectedElementIds: Readonly<{
2026
- [id: string]: true;
2027
- }>;
2028
- previousSelectedElementIds: {
2029
- [id: string]: true;
2030
- };
2031
- selectedElementsAreBeingDragged: boolean;
2032
- shouldCacheIgnoreZoom: boolean;
2033
- toast: {
2034
- message: string;
2035
- closable?: boolean | undefined;
2036
- duration?: number | undefined;
2037
- } | null;
2038
- zenModeEnabled: boolean;
2039
- gridSize: number;
2040
- gridStep: number;
2041
- gridModeEnabled: boolean;
2042
- viewModeEnabled: boolean;
2043
- selectedGroupIds: {
2044
- [groupId: string]: boolean;
2045
- };
2046
- editingGroupId: string | null;
2047
- width: number;
2048
- height: number;
2049
- offsetTop: number;
2050
- offsetLeft: number;
2051
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2052
- collaborators: Map<import("../types").SocketId, Readonly<{
2053
- pointer?: import("../types").CollaboratorPointer | undefined;
2054
- button?: "up" | "down" | undefined;
2055
- selectedElementIds?: Readonly<{
2056
- [id: string]: true;
2057
- }> | undefined;
2058
- username?: string | null | undefined;
2059
- userState?: import("../types").UserIdleState | undefined;
2060
- color?: {
2061
- background: string;
2062
- stroke: string;
2063
- } | undefined;
2064
- avatarUrl?: string | undefined;
2065
- id?: string | undefined;
2066
- socketId?: import("../types").SocketId | undefined;
2067
- isCurrentUser?: boolean | undefined;
2068
- isInCall?: boolean | undefined;
2069
- isSpeaking?: boolean | undefined;
2070
- isMuted?: boolean | undefined;
2071
- }>>;
2072
- stats: {
2073
- open: boolean;
2074
- panels: number;
2075
- };
2076
- currentChartType: import("../element/types").ChartType;
2077
- pasteDialog: {
2078
- shown: false;
2079
- data: null;
2080
- } | {
2081
- shown: true;
2082
- data: import("../charts").Spreadsheet;
2083
- };
2084
- pendingImageElementId: string | null;
2085
- showHyperlinkPopup: false | "info" | "editor";
2086
- linkOpacity: number;
2087
- trayModeEnabled: boolean;
2088
- colorPalette?: {
2089
- canvasBackground: import("../colors").ColorPaletteCustom;
2090
- elementBackground: import("../colors").ColorPaletteCustom;
2091
- elementStroke: import("../colors").ColorPaletteCustom;
2092
- topPicks: {
2093
- canvasBackground: [string, string, string, string, string];
2094
- elementStroke: [string, string, string, string, string];
2095
- elementBackground: [string, string, string, string, string];
2096
- };
2097
- } | undefined;
2098
- allowWheelZoom?: boolean | undefined;
2099
- allowPinchZoom?: boolean | undefined;
2100
- pinnedScripts?: string[] | undefined;
2101
- customPens?: any[] | undefined;
2102
- currentStrokeOptions?: any;
2103
- resetCustomPen?: any;
2104
- gridColor: {
2105
- Bold: string;
2106
- Regular: string;
2107
- };
2108
- highlightSearchResult: boolean;
2109
- dynamicStyle: {
2110
- [x: string]: string;
2111
- };
2112
- frameColor: {
2113
- stroke: string;
2114
- fill: string;
2115
- nameColor: string;
2116
- };
2117
- invertBindingBehaviour: boolean;
2118
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2119
- snapLines: readonly import("../snapping").SnapLine[];
2120
- originSnapOffset: {
2121
- x: number;
2122
- y: number;
2123
- } | null;
2124
- objectsSnapModeEnabled: boolean;
2125
- userToFollow: import("../types").UserToFollow | null;
2126
- followedBy: Set<import("../types").SocketId>;
2127
- searchMatches: readonly {
2128
- id: string;
2129
- focus: boolean;
2130
- matchedLines: {
2131
- offsetX: number;
2132
- offsetY: number;
2133
- width: number;
2134
- height: number;
2135
- }[];
2136
- }[];
2137
- };
2138
- storeAction: "none";
2139
- };
2140
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2141
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
2142
- } & {
2143
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2144
- };
2145
- export declare const actionToggleEraserTool: {
2146
- name: "toggleEraserTool";
2147
- label: string;
2148
- trackEvent: {
2149
- category: "toolbar";
2150
- };
2151
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
2152
- appState: {
2153
- selectedElementIds: {};
2154
- selectedGroupIds: {};
2155
- activeEmbeddable: null;
2156
- activeTool: {
2157
- lastActiveTool: import("../types").ActiveTool | null;
2158
- locked: boolean;
2159
- } & import("../types").ActiveTool;
2160
- contextMenu: {
2161
- items: import("../components/ContextMenu").ContextMenuItems;
2162
- top: number;
2163
- left: number;
2164
- } | null;
2165
- showWelcomeScreen: boolean;
2166
- isLoading: boolean;
2167
- errorMessage: import("react").ReactNode;
2168
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2169
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2170
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
2171
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2172
- isBindingEnabled: boolean;
2173
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
2174
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2175
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2176
- frameRendering: {
2177
- enabled: boolean;
2178
- name: boolean;
2179
- outline: boolean;
2180
- clip: boolean;
2181
- };
2182
- editingFrame: string | null;
2183
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2184
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2185
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2186
- penMode: boolean;
2187
- penDetected: boolean;
2188
- exportBackground: boolean;
2189
- exportEmbedScene: boolean;
2190
- exportWithDarkMode: boolean;
2191
- exportScale: number;
2192
- currentItemStrokeColor: string;
2193
- currentItemBackgroundColor: string;
2194
- currentItemFillStyle: import("../element/types").FillStyle;
2195
- currentItemStrokeWidth: number;
2196
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2197
- currentItemRoughness: number;
2198
- currentItemOpacity: number;
2199
- currentItemFontFamily: number;
2200
- currentItemFontSize: number;
2201
- currentItemTextAlign: string;
2202
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
2203
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2204
- currentHoveredFontFamily: number | null;
2205
- currentItemRoundness: import("../element/types").StrokeRoundness;
2206
- currentItemArrowType: "round" | "sharp" | "elbow";
2207
- viewBackgroundColor: string;
2208
- scrollX: number;
2209
- scrollY: number;
2210
- cursorButton: "up" | "down";
2211
- scrolledOutside: boolean;
2212
- name: string | null;
2213
- isResizing: boolean;
2214
- isRotating: boolean;
2215
- zoom: Readonly<{
2216
- value: import("../types").NormalizedZoomValue;
2217
- }>;
2218
- openMenu: "canvas" | "shape" | null;
2219
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2220
- openSidebar: {
2221
- name: string;
2222
- tab?: string | undefined;
2223
- } | null;
2224
- openDialog: {
2225
- name: "imageExport" | "help" | "jsonExport";
2226
- } | {
2227
- name: "ttd";
2228
- tab: "mermaid" | "text-to-diagram";
2229
- } | {
2230
- name: "commandPalette";
2231
- } | null;
2232
- defaultSidebarDockedPreference: boolean;
2233
- lastPointerDownWith: import("../element/types").PointerType;
2234
- previousSelectedElementIds: {
2235
- [id: string]: true;
2236
- };
2237
- selectedElementsAreBeingDragged: boolean;
2238
- shouldCacheIgnoreZoom: boolean;
2239
- toast: {
2240
- message: string;
2241
- closable?: boolean | undefined;
2242
- duration?: number | undefined;
2243
- } | null;
2244
- zenModeEnabled: boolean;
2245
- theme: import("../element/types").Theme;
2246
- gridSize: number;
2247
- gridStep: number;
2248
- gridModeEnabled: boolean;
2249
- viewModeEnabled: boolean;
2250
- editingGroupId: string | null;
2251
- width: number;
2252
- height: number;
2253
- offsetTop: number;
2254
- offsetLeft: number;
2255
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2256
- collaborators: Map<import("../types").SocketId, Readonly<{
2257
- pointer?: import("../types").CollaboratorPointer | undefined;
2258
- button?: "up" | "down" | undefined;
2259
- selectedElementIds?: Readonly<{
2260
- [id: string]: true;
2261
- }> | undefined;
2262
- username?: string | null | undefined;
2263
- userState?: import("../types").UserIdleState | undefined;
2264
- color?: {
2265
- background: string;
2266
- stroke: string;
2267
- } | undefined;
2268
- avatarUrl?: string | undefined;
2269
- id?: string | undefined;
2270
- socketId?: import("../types").SocketId | undefined;
2271
- isCurrentUser?: boolean | undefined;
2272
- isInCall?: boolean | undefined;
2273
- isSpeaking?: boolean | undefined;
2274
- isMuted?: boolean | undefined;
2275
- }>>;
2276
- stats: {
2277
- open: boolean;
2278
- panels: number;
2279
- };
2280
- currentChartType: import("../element/types").ChartType;
2281
- pasteDialog: {
2282
- shown: false;
2283
- data: null;
2284
- } | {
2285
- shown: true;
2286
- data: import("../charts").Spreadsheet;
2287
- };
2288
- pendingImageElementId: string | null;
2289
- showHyperlinkPopup: false | "info" | "editor";
2290
- linkOpacity: number;
2291
- trayModeEnabled: boolean;
2292
- colorPalette?: {
2293
- canvasBackground: import("../colors").ColorPaletteCustom;
2294
- elementBackground: import("../colors").ColorPaletteCustom;
2295
- elementStroke: import("../colors").ColorPaletteCustom;
2296
- topPicks: {
2297
- canvasBackground: [string, string, string, string, string];
2298
- elementStroke: [string, string, string, string, string];
2299
- elementBackground: [string, string, string, string, string];
2300
- };
2301
- } | undefined;
2302
- allowWheelZoom?: boolean | undefined;
2303
- allowPinchZoom?: boolean | undefined;
2304
- pinnedScripts?: string[] | undefined;
2305
- customPens?: any[] | undefined;
2306
- currentStrokeOptions?: any;
2307
- resetCustomPen?: any;
2308
- gridColor: {
2309
- Bold: string;
2310
- Regular: string;
2311
- };
2312
- highlightSearchResult: boolean;
2313
- dynamicStyle: {
2314
- [x: string]: string;
2315
- };
2316
- frameColor: {
2317
- stroke: string;
2318
- fill: string;
2319
- nameColor: string;
2320
- };
2321
- invertBindingBehaviour: boolean;
2322
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2323
- snapLines: readonly import("../snapping").SnapLine[];
2324
- originSnapOffset: {
2325
- x: number;
2326
- y: number;
2327
- } | null;
2328
- objectsSnapModeEnabled: boolean;
2329
- userToFollow: import("../types").UserToFollow | null;
2330
- followedBy: Set<import("../types").SocketId>;
2331
- searchMatches: readonly {
2332
- id: string;
2333
- focus: boolean;
2334
- matchedLines: {
2335
- offsetX: number;
2336
- offsetY: number;
2337
- width: number;
2338
- height: number;
2339
- }[];
2340
- }[];
2341
- };
2342
- storeAction: "capture";
2343
- };
2344
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2345
- } & {
2346
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2347
- };
2348
- export declare const actionToggleHandTool: {
2349
- name: "toggleHandTool";
2350
- label: string;
2351
- paletteName: string;
2352
- trackEvent: {
2353
- category: "toolbar";
2354
- };
2355
- icon: JSX.Element;
2356
- viewMode: false;
2357
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
2358
- appState: {
2359
- selectedElementIds: {};
2360
- selectedGroupIds: {};
2361
- activeEmbeddable: null;
2362
- activeTool: {
2363
- lastActiveTool: import("../types").ActiveTool | null;
2364
- locked: boolean;
2365
- } & import("../types").ActiveTool;
2366
- contextMenu: {
2367
- items: import("../components/ContextMenu").ContextMenuItems;
2368
- top: number;
2369
- left: number;
2370
- } | null;
2371
- showWelcomeScreen: boolean;
2372
- isLoading: boolean;
2373
- errorMessage: import("react").ReactNode;
2374
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2375
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2376
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
2377
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2378
- isBindingEnabled: boolean;
2379
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
2380
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2381
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2382
- frameRendering: {
2383
- enabled: boolean;
2384
- name: boolean;
2385
- outline: boolean;
2386
- clip: boolean;
2387
- };
2388
- editingFrame: string | null;
2389
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2390
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2391
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2392
- penMode: boolean;
2393
- penDetected: boolean;
2394
- exportBackground: boolean;
2395
- exportEmbedScene: boolean;
2396
- exportWithDarkMode: boolean;
2397
- exportScale: number;
2398
- currentItemStrokeColor: string;
2399
- currentItemBackgroundColor: string;
2400
- currentItemFillStyle: import("../element/types").FillStyle;
2401
- currentItemStrokeWidth: number;
2402
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2403
- currentItemRoughness: number;
2404
- currentItemOpacity: number;
2405
- currentItemFontFamily: number;
2406
- currentItemFontSize: number;
2407
- currentItemTextAlign: string;
2408
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
2409
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2410
- currentHoveredFontFamily: number | null;
2411
- currentItemRoundness: import("../element/types").StrokeRoundness;
2412
- currentItemArrowType: "round" | "sharp" | "elbow";
2413
- viewBackgroundColor: string;
2414
- scrollX: number;
2415
- scrollY: number;
2416
- cursorButton: "up" | "down";
2417
- scrolledOutside: boolean;
2418
- name: string | null;
2419
- isResizing: boolean;
2420
- isRotating: boolean;
2421
- zoom: Readonly<{
2422
- value: import("../types").NormalizedZoomValue;
2423
- }>;
2424
- openMenu: "canvas" | "shape" | null;
2425
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2426
- openSidebar: {
2427
- name: string;
2428
- tab?: string | undefined;
2429
- } | null;
2430
- openDialog: {
2431
- name: "imageExport" | "help" | "jsonExport";
2432
- } | {
2433
- name: "ttd";
2434
- tab: "mermaid" | "text-to-diagram";
2435
- } | {
2436
- name: "commandPalette";
2437
- } | null;
2438
- defaultSidebarDockedPreference: boolean;
2439
- lastPointerDownWith: import("../element/types").PointerType;
2440
- previousSelectedElementIds: {
2441
- [id: string]: true;
2442
- };
2443
- selectedElementsAreBeingDragged: boolean;
2444
- shouldCacheIgnoreZoom: boolean;
2445
- toast: {
2446
- message: string;
2447
- closable?: boolean | undefined;
2448
- duration?: number | undefined;
2449
- } | null;
2450
- zenModeEnabled: boolean;
2451
- theme: import("../element/types").Theme;
2452
- gridSize: number;
2453
- gridStep: number;
2454
- gridModeEnabled: boolean;
2455
- viewModeEnabled: boolean;
2456
- editingGroupId: string | null;
2457
- width: number;
2458
- height: number;
2459
- offsetTop: number;
2460
- offsetLeft: number;
2461
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2462
- collaborators: Map<import("../types").SocketId, Readonly<{
2463
- pointer?: import("../types").CollaboratorPointer | undefined;
2464
- button?: "up" | "down" | undefined;
2465
- selectedElementIds?: Readonly<{
2466
- [id: string]: true;
2467
- }> | undefined;
2468
- username?: string | null | undefined;
2469
- userState?: import("../types").UserIdleState | undefined;
2470
- color?: {
2471
- background: string;
2472
- stroke: string;
2473
- } | undefined;
2474
- avatarUrl?: string | undefined;
2475
- id?: string | undefined;
2476
- socketId?: import("../types").SocketId | undefined;
2477
- isCurrentUser?: boolean | undefined;
2478
- isInCall?: boolean | undefined;
2479
- isSpeaking?: boolean | undefined;
2480
- isMuted?: boolean | undefined;
2481
- }>>;
2482
- stats: {
2483
- open: boolean;
2484
- panels: number;
2485
- };
2486
- currentChartType: import("../element/types").ChartType;
2487
- pasteDialog: {
2488
- shown: false;
2489
- data: null;
2490
- } | {
2491
- shown: true;
2492
- data: import("../charts").Spreadsheet;
2493
- };
2494
- pendingImageElementId: string | null;
2495
- showHyperlinkPopup: false | "info" | "editor";
2496
- linkOpacity: number;
2497
- trayModeEnabled: boolean;
2498
- colorPalette?: {
2499
- canvasBackground: import("../colors").ColorPaletteCustom;
2500
- elementBackground: import("../colors").ColorPaletteCustom;
2501
- elementStroke: import("../colors").ColorPaletteCustom;
2502
- topPicks: {
2503
- canvasBackground: [string, string, string, string, string];
2504
- elementStroke: [string, string, string, string, string];
2505
- elementBackground: [string, string, string, string, string];
2506
- };
2507
- } | undefined;
2508
- allowWheelZoom?: boolean | undefined;
2509
- allowPinchZoom?: boolean | undefined;
2510
- pinnedScripts?: string[] | undefined;
2511
- customPens?: any[] | undefined;
2512
- currentStrokeOptions?: any;
2513
- resetCustomPen?: any;
2514
- gridColor: {
2515
- Bold: string;
2516
- Regular: string;
2517
- };
2518
- highlightSearchResult: boolean;
2519
- dynamicStyle: {
2520
- [x: string]: string;
2521
- };
2522
- frameColor: {
2523
- stroke: string;
2524
- fill: string;
2525
- nameColor: string;
2526
- };
2527
- invertBindingBehaviour: boolean;
2528
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2529
- snapLines: readonly import("../snapping").SnapLine[];
2530
- originSnapOffset: {
2531
- x: number;
2532
- y: number;
2533
- } | null;
2534
- objectsSnapModeEnabled: boolean;
2535
- userToFollow: import("../types").UserToFollow | null;
2536
- followedBy: Set<import("../types").SocketId>;
2537
- searchMatches: readonly {
2538
- id: string;
2539
- focus: boolean;
2540
- matchedLines: {
2541
- offsetX: number;
2542
- offsetY: number;
2543
- width: number;
2544
- height: number;
2545
- }[];
2546
- }[];
2547
- };
2548
- storeAction: "capture";
2549
- };
2550
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2551
- } & {
2552
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2553
- };
2554
- export declare const actionToggleLaserPointer: {
2555
- name: "toggleLaserPointerTool";
2556
- viewMode: true;
2557
- trackEvent: {
2558
- category: "menu";
2559
- };
2560
- perform(elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties): {
2561
- appState: {
2562
- selectedElementIds: {};
2563
- selectedGroupIds: {};
2564
- activeEmbeddable: null;
2565
- activeTool: {
2566
- lastActiveTool: import("../types").ActiveTool | null;
2567
- locked: boolean;
2568
- } & import("../types").ActiveTool;
2569
- contextMenu: {
2570
- items: import("../components/ContextMenu").ContextMenuItems;
2571
- top: number;
2572
- left: number;
2573
- } | null;
2574
- showWelcomeScreen: boolean;
2575
- isLoading: boolean;
2576
- errorMessage: import("react").ReactNode;
2577
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2578
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2579
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
2580
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2581
- isBindingEnabled: boolean;
2582
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
2583
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2584
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2585
- frameRendering: {
2586
- enabled: boolean;
2587
- name: boolean;
2588
- outline: boolean;
2589
- clip: boolean;
2590
- };
2591
- editingFrame: string | null;
2592
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2593
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2594
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2595
- penMode: boolean;
2596
- penDetected: boolean;
2597
- exportBackground: boolean;
2598
- exportEmbedScene: boolean;
2599
- exportWithDarkMode: boolean;
2600
- exportScale: number;
2601
- currentItemStrokeColor: string;
2602
- currentItemBackgroundColor: string;
2603
- currentItemFillStyle: import("../element/types").FillStyle;
2604
- currentItemStrokeWidth: number;
2605
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2606
- currentItemRoughness: number;
2607
- currentItemOpacity: number;
2608
- currentItemFontFamily: number;
2609
- currentItemFontSize: number;
2610
- currentItemTextAlign: string;
2611
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
2612
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2613
- currentHoveredFontFamily: number | null;
2614
- currentItemRoundness: import("../element/types").StrokeRoundness;
2615
- currentItemArrowType: "round" | "sharp" | "elbow";
2616
- viewBackgroundColor: string;
2617
- scrollX: number;
2618
- scrollY: number;
2619
- cursorButton: "up" | "down";
2620
- scrolledOutside: boolean;
2621
- name: string | null;
2622
- isResizing: boolean;
2623
- isRotating: boolean;
2624
- zoom: Readonly<{
2625
- value: import("../types").NormalizedZoomValue;
2626
- }>;
2627
- openMenu: "canvas" | "shape" | null;
2628
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2629
- openSidebar: {
2630
- name: string;
2631
- tab?: string | undefined;
2632
- } | null;
2633
- openDialog: {
2634
- name: "imageExport" | "help" | "jsonExport";
2635
- } | {
2636
- name: "ttd";
2637
- tab: "mermaid" | "text-to-diagram";
2638
- } | {
2639
- name: "commandPalette";
2640
- } | null;
2641
- defaultSidebarDockedPreference: boolean;
2642
- lastPointerDownWith: import("../element/types").PointerType;
2643
- previousSelectedElementIds: {
2644
- [id: string]: true;
2645
- };
2646
- selectedElementsAreBeingDragged: boolean;
2647
- shouldCacheIgnoreZoom: boolean;
2648
- toast: {
2649
- message: string;
2650
- closable?: boolean | undefined;
2651
- duration?: number | undefined;
2652
- } | null;
2653
- zenModeEnabled: boolean;
2654
- theme: import("../element/types").Theme;
2655
- gridSize: number;
2656
- gridStep: number;
2657
- gridModeEnabled: boolean;
2658
- viewModeEnabled: boolean;
2659
- editingGroupId: string | null;
2660
- width: number;
2661
- height: number;
2662
- offsetTop: number;
2663
- offsetLeft: number;
2664
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2665
- collaborators: Map<import("../types").SocketId, Readonly<{
2666
- pointer?: import("../types").CollaboratorPointer | undefined;
2667
- button?: "up" | "down" | undefined;
2668
- selectedElementIds?: Readonly<{
2669
- [id: string]: true;
2670
- }> | undefined;
2671
- username?: string | null | undefined;
2672
- userState?: import("../types").UserIdleState | undefined;
2673
- color?: {
2674
- background: string;
2675
- stroke: string;
2676
- } | undefined;
2677
- avatarUrl?: string | undefined;
2678
- id?: string | undefined;
2679
- socketId?: import("../types").SocketId | undefined;
2680
- isCurrentUser?: boolean | undefined;
2681
- isInCall?: boolean | undefined;
2682
- isSpeaking?: boolean | undefined;
2683
- isMuted?: boolean | undefined;
2684
- }>>;
2685
- stats: {
2686
- open: boolean;
2687
- panels: number;
2688
- };
2689
- currentChartType: import("../element/types").ChartType;
2690
- pasteDialog: {
2691
- shown: false;
2692
- data: null;
2693
- } | {
2694
- shown: true;
2695
- data: import("../charts").Spreadsheet;
2696
- };
2697
- pendingImageElementId: string | null;
2698
- showHyperlinkPopup: false | "info" | "editor";
2699
- linkOpacity: number;
2700
- trayModeEnabled: boolean;
2701
- colorPalette?: {
2702
- canvasBackground: import("../colors").ColorPaletteCustom;
2703
- elementBackground: import("../colors").ColorPaletteCustom;
2704
- elementStroke: import("../colors").ColorPaletteCustom;
2705
- topPicks: {
2706
- canvasBackground: [string, string, string, string, string];
2707
- elementStroke: [string, string, string, string, string];
2708
- elementBackground: [string, string, string, string, string];
2709
- };
2710
- } | undefined;
2711
- allowWheelZoom?: boolean | undefined;
2712
- allowPinchZoom?: boolean | undefined;
2713
- pinnedScripts?: string[] | undefined;
2714
- customPens?: any[] | undefined;
2715
- currentStrokeOptions?: any;
2716
- resetCustomPen?: any;
2717
- gridColor: {
2718
- Bold: string;
2719
- Regular: string;
2720
- };
2721
- highlightSearchResult: boolean;
2722
- dynamicStyle: {
2723
- [x: string]: string;
2724
- };
2725
- frameColor: {
2726
- stroke: string;
2727
- fill: string;
2728
- nameColor: string;
2729
- };
2730
- invertBindingBehaviour: boolean;
2731
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2732
- snapLines: readonly import("../snapping").SnapLine[];
2733
- originSnapOffset: {
2734
- x: number;
2735
- y: number;
2736
- } | null;
2737
- objectsSnapModeEnabled: boolean;
2738
- userToFollow: import("../types").UserToFollow | null;
2739
- followedBy: Set<import("../types").SocketId>;
2740
- searchMatches: readonly {
2741
- id: string;
2742
- focus: boolean;
2743
- matchedLines: {
2744
- offsetX: number;
2745
- offsetY: number;
2746
- width: number;
2747
- height: number;
2748
- }[];
2749
- }[];
2750
- };
2751
- storeAction: "none";
2752
- };
2753
- checked: (appState: Readonly<AppState>) => boolean;
2754
- label: string;
2755
- icon: JSX.Element;
2756
- } & {
2757
- keyTest?: undefined;
2758
- };
2759
- export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, zoomToSelection: boolean, app: AppClassProperties, maxZoom?: number, margin?: number) => {
2760
- appState: {
2761
- zoom: {
2762
- value: import("../types").NormalizedZoomValue;
2763
- };
2764
- scrollX: number;
2765
- scrollY: number;
2766
- contextMenu: {
2767
- items: import("../components/ContextMenu").ContextMenuItems;
2768
- top: number;
2769
- left: number;
2770
- } | null;
2771
- showWelcomeScreen: boolean;
2772
- isLoading: boolean;
2773
- errorMessage: import("react").ReactNode;
2774
- activeEmbeddable: {
2775
- element: import("../element/types").NonDeletedExcalidrawElement;
2776
- state: "active" | "hover";
2777
- } | null;
2778
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2779
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2780
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
2781
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2782
- isBindingEnabled: boolean;
2783
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
2784
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2785
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2786
- frameRendering: {
2787
- enabled: boolean;
2788
- name: boolean;
2789
- outline: boolean;
2790
- clip: boolean;
2791
- };
2792
- editingFrame: string | null;
2793
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2794
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2795
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2796
- activeTool: {
2797
- lastActiveTool: import("../types").ActiveTool | null;
2798
- locked: boolean;
2799
- } & import("../types").ActiveTool;
2800
- penMode: boolean;
2801
- penDetected: boolean;
2802
- exportBackground: boolean;
2803
- exportEmbedScene: boolean;
2804
- exportWithDarkMode: boolean;
2805
- exportScale: number;
2806
- currentItemStrokeColor: string;
2807
- currentItemBackgroundColor: string;
2808
- currentItemFillStyle: import("../element/types").FillStyle;
2809
- currentItemStrokeWidth: number;
2810
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2811
- currentItemRoughness: number;
2812
- currentItemOpacity: number;
2813
- currentItemFontFamily: number;
2814
- currentItemFontSize: number;
2815
- currentItemTextAlign: string;
2816
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
2817
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2818
- currentHoveredFontFamily: number | null;
2819
- currentItemRoundness: import("../element/types").StrokeRoundness;
2820
- currentItemArrowType: "round" | "sharp" | "elbow";
2821
- viewBackgroundColor: string;
2822
- cursorButton: "up" | "down";
2823
- scrolledOutside: boolean;
2824
- name: string | null;
2825
- isResizing: boolean;
2826
- isRotating: boolean;
2827
- openMenu: "canvas" | "shape" | null;
2828
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2829
- openSidebar: {
2830
- name: string;
2831
- tab?: string | undefined;
2832
- } | null;
2833
- openDialog: {
2834
- name: "imageExport" | "help" | "jsonExport";
2835
- } | {
2836
- name: "ttd";
2837
- tab: "mermaid" | "text-to-diagram";
2838
- } | {
2839
- name: "commandPalette";
2840
- } | null;
2841
- defaultSidebarDockedPreference: boolean;
2842
- lastPointerDownWith: import("../element/types").PointerType;
2843
- selectedElementIds: Readonly<{
2844
- [id: string]: true;
2845
- }>;
2846
- previousSelectedElementIds: {
2847
- [id: string]: true;
2848
- };
2849
- selectedElementsAreBeingDragged: boolean;
2850
- shouldCacheIgnoreZoom: boolean;
2851
- toast: {
2852
- message: string;
2853
- closable?: boolean | undefined;
2854
- duration?: number | undefined;
2855
- } | null;
2856
- zenModeEnabled: boolean;
2857
- theme: import("../element/types").Theme;
2858
- gridSize: number;
2859
- gridStep: number;
2860
- gridModeEnabled: boolean;
2861
- viewModeEnabled: boolean;
2862
- selectedGroupIds: {
2863
- [groupId: string]: boolean;
2864
- };
2865
- editingGroupId: string | null;
2866
- width: number;
2867
- height: number;
2868
- offsetTop: number;
2869
- offsetLeft: number;
2870
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2871
- collaborators: Map<import("../types").SocketId, Readonly<{
2872
- pointer?: import("../types").CollaboratorPointer | undefined;
2873
- button?: "up" | "down" | undefined;
2874
- selectedElementIds?: Readonly<{
2875
- [id: string]: true;
2876
- }> | undefined;
2877
- username?: string | null | undefined;
2878
- userState?: import("../types").UserIdleState | undefined;
2879
- color?: {
2880
- background: string;
2881
- stroke: string;
2882
- } | undefined;
2883
- avatarUrl?: string | undefined;
2884
- id?: string | undefined;
2885
- socketId?: import("../types").SocketId | undefined;
2886
- isCurrentUser?: boolean | undefined;
2887
- isInCall?: boolean | undefined;
2888
- isSpeaking?: boolean | undefined;
2889
- isMuted?: boolean | undefined;
2890
- }>>;
2891
- stats: {
2892
- open: boolean;
2893
- panels: number;
2894
- };
2895
- currentChartType: import("../element/types").ChartType;
2896
- pasteDialog: {
2897
- shown: false;
2898
- data: null;
2899
- } | {
2900
- shown: true;
2901
- data: import("../charts").Spreadsheet;
2902
- };
2903
- pendingImageElementId: string | null;
2904
- showHyperlinkPopup: false | "info" | "editor";
2905
- linkOpacity: number;
2906
- trayModeEnabled: boolean;
2907
- colorPalette?: {
2908
- canvasBackground: import("../colors").ColorPaletteCustom;
2909
- elementBackground: import("../colors").ColorPaletteCustom;
2910
- elementStroke: import("../colors").ColorPaletteCustom;
2911
- topPicks: {
2912
- canvasBackground: [string, string, string, string, string];
2913
- elementStroke: [string, string, string, string, string];
2914
- elementBackground: [string, string, string, string, string];
2915
- };
2916
- } | undefined;
2917
- allowWheelZoom?: boolean | undefined;
2918
- allowPinchZoom?: boolean | undefined;
2919
- pinnedScripts?: string[] | undefined;
2920
- customPens?: any[] | undefined;
2921
- currentStrokeOptions?: any;
2922
- resetCustomPen?: any;
2923
- gridColor: {
2924
- Bold: string;
2925
- Regular: string;
2926
- };
2927
- highlightSearchResult: boolean;
2928
- dynamicStyle: {
2929
- [x: string]: string;
2930
- };
2931
- frameColor: {
2932
- stroke: string;
2933
- fill: string;
2934
- nameColor: string;
2935
- };
2936
- invertBindingBehaviour: boolean;
2937
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2938
- snapLines: readonly import("../snapping").SnapLine[];
2939
- originSnapOffset: {
2940
- x: number;
2941
- y: number;
2942
- } | null;
2943
- objectsSnapModeEnabled: boolean;
2944
- userToFollow: import("../types").UserToFollow | null;
2945
- followedBy: Set<import("../types").SocketId>;
2946
- searchMatches: readonly {
2947
- id: string;
2948
- focus: boolean;
2949
- matchedLines: {
2950
- offsetX: number;
2951
- offsetY: number;
2952
- width: number;
2953
- height: number;
2954
- }[];
2955
- }[];
2956
- };
2957
- commitToHistory: boolean;
2958
- };