@zsviczian/excalidraw 0.17.1-obsidian-42 → 0.17.1-obsidian-44

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