@zsviczian/excalidraw 0.17.6-30 → 0.17.6-32

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