@zsviczian/excalidraw 0.15.2-obsidian-13 → 0.15.3-obsidian

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 (434) hide show
  1. package/dist/excalidraw.development.js +56 -56
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/actions/actionAddToLibrary.d.ts +449 -440
  5. package/types/actions/actionAlign.d.ts +96 -96
  6. package/types/actions/actionBoundText.d.ts +336 -330
  7. package/types/actions/actionCanvas.d.ts +1880 -1844
  8. package/types/actions/actionClipboard.d.ts +843 -828
  9. package/types/actions/actionDeleteSelected.d.ts +483 -474
  10. package/types/actions/actionDistribute.d.ts +32 -32
  11. package/types/actions/actionDuplicateSelection.d.ts +21 -21
  12. package/types/actions/actionElementLock.d.ts +321 -315
  13. package/types/actions/actionExport.d.ts +1415 -1388
  14. package/types/actions/actionFinalize.d.ts +304 -298
  15. package/types/actions/actionFlip.d.ts +32 -32
  16. package/types/actions/actionFrame.d.ts +498 -489
  17. package/types/actions/actionGroup.d.ts +332 -326
  18. package/types/actions/actionHistory.d.ts +6 -6
  19. package/types/actions/actionLinearEditor.d.ts +160 -157
  20. package/types/actions/actionMenu.d.ts +487 -478
  21. package/types/actions/actionNavigate.d.ts +14 -14
  22. package/types/actions/actionProperties.d.ts +2051 -2012
  23. package/types/actions/actionSelectAll.d.ts +160 -157
  24. package/types/actions/actionStyles.d.ts +174 -171
  25. package/types/actions/actionToggleGridMode.d.ts +163 -160
  26. package/types/actions/actionToggleStats.d.ts +160 -157
  27. package/types/actions/actionToggleViewMode.d.ts +162 -159
  28. package/types/actions/actionToggleZenMode.d.ts +162 -159
  29. package/types/actions/actionZindex.d.ts +67 -67
  30. package/types/actions/index.d.ts +24 -24
  31. package/types/actions/manager.d.ts +21 -21
  32. package/types/actions/register.d.ts +5 -5
  33. package/types/actions/shortcuts.d.ts +4 -4
  34. package/types/actions/types.d.ts +45 -45
  35. package/types/align.d.ts +6 -6
  36. package/types/analytics.d.ts +1 -1
  37. package/types/appState.d.ts +81 -81
  38. package/types/charts.d.ts +27 -27
  39. package/types/clients.d.ts +5 -5
  40. package/types/clipboard.d.ts +26 -26
  41. package/types/colors.d.ts +61 -61
  42. package/types/components/Actions.d.ts +36 -36
  43. package/types/components/ActiveConfirmDialog.d.ts +4 -4
  44. package/types/components/App.d.ts +290 -290
  45. package/types/components/Avatar.d.ts +10 -10
  46. package/types/components/BraveMeasureTextError.d.ts +2 -2
  47. package/types/components/Button.d.ts +16 -16
  48. package/types/components/ButtonIconSelect.d.ts +19 -19
  49. package/types/components/Card.d.ts +6 -6
  50. package/types/components/CheckboxItem.d.ts +8 -8
  51. package/types/components/ColorPicker/ColorInput.d.ts +7 -7
  52. package/types/components/ColorPicker/ColorPicker.d.ts +19 -19
  53. package/types/components/ColorPicker/CustomColorList.d.ts +8 -8
  54. package/types/components/ColorPicker/HotkeyLabel.d.ts +8 -8
  55. package/types/components/ColorPicker/Picker.d.ts +18 -18
  56. package/types/components/ColorPicker/PickerColorList.d.ts +10 -10
  57. package/types/components/ColorPicker/PickerHeading.d.ts +5 -5
  58. package/types/components/ColorPicker/ShadeList.d.ts +8 -8
  59. package/types/components/ColorPicker/TopPicks.d.ts +9 -9
  60. package/types/components/ColorPicker/colorPickerUtils.d.ts +21 -21
  61. package/types/components/ColorPicker/keyboardNavHandlers.d.ts +20 -20
  62. package/types/components/ConfirmDialog.d.ts +10 -10
  63. package/types/components/ContextMenu.d.ts +15 -15
  64. package/types/components/DarkModeToggle.d.ts +7 -7
  65. package/types/components/DefaultSidebar.d.ts +29 -29
  66. package/types/components/Dialog.d.ts +13 -13
  67. package/types/components/DialogActionButton.d.ts +10 -10
  68. package/types/components/ErrorDialog.d.ts +5 -5
  69. package/types/components/EyeDropper.d.ts +17 -17
  70. package/types/components/FilledButton.d.ts +17 -17
  71. package/types/components/FixedSideContainer.d.ts +9 -9
  72. package/types/components/HandButton.d.ts +10 -10
  73. package/types/components/HelpButton.d.ts +7 -7
  74. package/types/components/HelpDialog.d.ts +4 -4
  75. package/types/components/HintViewer.d.ts +10 -10
  76. package/types/components/IconPicker.d.ts +13 -13
  77. package/types/components/ImageExportDialog.d.ts +13 -13
  78. package/types/components/InitializeApp.d.ts +10 -10
  79. package/types/components/Island.d.ts +10 -10
  80. package/types/components/JSONExportDialog.d.ts +15 -15
  81. package/types/components/LayerUI.d.ts +33 -33
  82. package/types/components/LibraryMenu.d.ts +24 -24
  83. package/types/components/LibraryMenuBrowseButton.d.ts +7 -7
  84. package/types/components/LibraryMenuControlButtons.d.ts +9 -9
  85. package/types/components/LibraryMenuHeaderContent.d.ts +17 -17
  86. package/types/components/LibraryMenuItems.d.ts +14 -14
  87. package/types/components/LibraryMenuSection.d.ts +22 -22
  88. package/types/components/LibraryUnit.d.ts +14 -14
  89. package/types/components/LoadingMessage.d.ts +5 -5
  90. package/types/components/LockButton.d.ts +10 -10
  91. package/types/components/MobileMenu.d.ts +27 -27
  92. package/types/components/Modal.d.ts +13 -13
  93. package/types/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -17
  94. package/types/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -17
  95. package/types/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -22
  96. package/types/components/PasteChartDialog.d.ts +8 -8
  97. package/types/components/PenModeButton.d.ts +12 -12
  98. package/types/components/Popover.d.ts +15 -15
  99. package/types/components/ProjectName.d.ts +11 -11
  100. package/types/components/PublishLibrary.d.ts +16 -16
  101. package/types/components/RadioGroup.d.ts +12 -12
  102. package/types/components/Section.d.ts +6 -6
  103. package/types/components/Sidebar/Sidebar.d.ts +76 -76
  104. package/types/components/Sidebar/SidebarHeader.d.ts +7 -7
  105. package/types/components/Sidebar/SidebarTab.d.ts +8 -8
  106. package/types/components/Sidebar/SidebarTabTrigger.d.ts +9 -9
  107. package/types/components/Sidebar/SidebarTabTriggers.d.ts +6 -6
  108. package/types/components/Sidebar/SidebarTabs.d.ts +6 -6
  109. package/types/components/Sidebar/SidebarTrigger.d.ts +6 -6
  110. package/types/components/Sidebar/common.d.ts +33 -33
  111. package/types/components/Spinner.d.ts +7 -7
  112. package/types/components/Stack.d.ts +16 -16
  113. package/types/components/Stats.d.ts +11 -11
  114. package/types/components/Switch.d.ts +9 -9
  115. package/types/components/Toast.d.ts +7 -7
  116. package/types/components/ToolButton.d.ts +47 -47
  117. package/types/components/Tooltip.d.ts +17 -17
  118. package/types/components/Trans.d.ts +9 -9
  119. package/types/components/UserList.d.ts +8 -8
  120. package/types/components/canvases/InteractiveCanvas.d.ts +27 -26
  121. package/types/components/canvases/StaticCanvas.d.ts +18 -18
  122. package/types/components/canvases/index.d.ts +3 -3
  123. package/types/components/dropdownMenu/DropdownMenu.d.ts +67 -67
  124. package/types/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
  125. package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  126. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -12
  127. package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +6 -6
  128. package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +6 -6
  129. package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +13 -13
  130. package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  131. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +10 -10
  132. package/types/components/dropdownMenu/common.d.ts +6 -6
  133. package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  134. package/types/components/footer/Footer.d.ts +12 -12
  135. package/types/components/footer/FooterCenter.d.ts +8 -8
  136. package/types/components/hoc/withInternalFallback.d.ts +4 -4
  137. package/types/components/icons.d.ts +154 -154
  138. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +9 -9
  139. package/types/components/main-menu/DefaultItems.d.ts +44 -44
  140. package/types/components/main-menu/MainMenu.d.ts +61 -61
  141. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +57 -57
  142. package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  143. package/types/components/welcome-screen/WelcomeScreen.d.ts +84 -84
  144. package/types/constants.d.ts +230 -230
  145. package/types/context/tunnels.d.ts +19 -19
  146. package/types/context/ui-appState.d.ts +4 -4
  147. package/types/data/blob.d.ts +48 -48
  148. package/types/data/encode.d.ts +53 -53
  149. package/types/data/encryption.d.ts +9 -9
  150. package/types/data/filesystem.d.ts +19 -19
  151. package/types/data/image.d.ts +15 -15
  152. package/types/data/index.d.ts +13 -13
  153. package/types/data/json.d.ts +16 -16
  154. package/types/data/library.d.ts +54 -54
  155. package/types/data/resave.d.ts +5 -5
  156. package/types/data/restore.d.ts +21 -21
  157. package/types/data/transform.d.ts +71 -71
  158. package/types/data/types.d.ts +45 -45
  159. package/types/data/url.d.ts +7 -7
  160. package/types/distribute.d.ts +6 -6
  161. package/types/element/Hyperlink.d.ts +184 -181
  162. package/types/element/binding.d.ts +34 -34
  163. package/types/element/bounds.d.ts +53 -53
  164. package/types/element/collision.d.ts +21 -21
  165. package/types/element/dragElements.d.ts +6 -6
  166. package/types/element/embeddable.d.ts +178 -175
  167. package/types/element/image.d.ts +32 -32
  168. package/types/element/index.d.ts +21 -21
  169. package/types/element/linearElementEditor.d.ts +295 -292
  170. package/types/element/mutateElement.d.ts +12 -12
  171. package/types/element/newElement.d.ts +99 -99
  172. package/types/element/resizeElements.d.ts +9 -9
  173. package/types/element/resizeTest.d.ts +13 -13
  174. package/types/element/showSelectedShapeActions.d.ts +3 -3
  175. package/types/element/sizeHelpers.d.ts +28 -28
  176. package/types/element/sortElements.d.ts +2 -2
  177. package/types/element/textElement.d.ts +78 -78
  178. package/types/element/textWysiwyg.d.ts +21 -21
  179. package/types/element/transformHandles.d.ts +35 -35
  180. package/types/element/typeChecks.d.ts +29 -29
  181. package/types/element/types.d.ts +166 -166
  182. package/types/errors.d.ts +8 -8
  183. package/types/frame.d.ts +40 -40
  184. package/types/ga.d.ts +63 -63
  185. package/types/gadirections.d.ts +8 -8
  186. package/types/galines.d.ts +22 -22
  187. package/types/gapoints.d.ts +7 -7
  188. package/types/gatransforms.d.ts +10 -10
  189. package/types/gesture.d.ts +6 -6
  190. package/types/groups.d.ts +31 -30
  191. package/types/history.d.ts +52 -52
  192. package/types/hooks/useCallbackRefState.d.ts +1 -1
  193. package/types/hooks/useCreatePortalContainer.d.ts +5 -5
  194. package/types/hooks/useLibraryItemSvg.d.ts +11 -11
  195. package/types/hooks/useOutsideClick.d.ts +19 -19
  196. package/types/hooks/useScrollPosition.d.ts +1 -1
  197. package/types/hooks/useTransition.d.ts +2 -2
  198. package/types/i18n.d.ts +24 -24
  199. package/types/jotai.d.ts +34 -34
  200. package/types/keys.d.ts +80 -80
  201. package/types/math.d.ts +30 -30
  202. package/types/packages/excalidraw/dist/excalidraw.development.d.ts +2 -2
  203. package/types/packages/excalidraw/dist/excalidraw.production.min.d.ts +1 -1
  204. package/types/packages/excalidraw/entry.d.ts +1 -1
  205. package/types/packages/excalidraw/env.d.ts +1 -1
  206. package/types/packages/excalidraw/example/App.d.ts +14 -14
  207. package/types/packages/excalidraw/example/CustomFooter.d.ts +5 -5
  208. package/types/packages/excalidraw/example/MobileFooter.d.ts +5 -5
  209. package/types/packages/excalidraw/example/index.d.ts +1 -1
  210. package/types/packages/excalidraw/example/initialData.d.ts +290 -290
  211. package/types/packages/excalidraw/example/sidebar/ExampleSidebar.d.ts +5 -5
  212. package/types/packages/excalidraw/index.d.ts +39 -39
  213. package/types/packages/excalidraw/main.d.ts +2 -2
  214. package/types/packages/excalidraw/publicPath.d.ts +1 -1
  215. package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -19
  216. package/types/packages/excalidraw/webpack.dev.config.d.ts +80 -80
  217. package/types/packages/excalidraw/webpack.prod.config.d.ts +95 -95
  218. package/types/packages/utils.d.ts +43 -43
  219. package/types/points.d.ts +7 -7
  220. package/types/polyfill.d.ts +2 -2
  221. package/types/random.d.ts +4 -4
  222. package/types/renderer/easingFunctions.d.ts +6 -6
  223. package/types/renderer/renderElement.d.ts +25 -25
  224. package/types/renderer/renderScene.d.ts +31 -31
  225. package/types/renderer/roundRect.d.ts +11 -11
  226. package/types/scene/Fonts.d.ts +21 -21
  227. package/types/scene/Renderer.d.ts +25 -25
  228. package/types/scene/Scene.d.ts +62 -62
  229. package/types/scene/Shape.d.ts +12 -12
  230. package/types/scene/ShapeCache.d.ts +20 -20
  231. package/types/scene/comparisons.d.ts +10 -10
  232. package/types/scene/export.d.ts +25 -25
  233. package/types/scene/index.d.ts +5 -5
  234. package/types/scene/scroll.d.ts +17 -17
  235. package/types/scene/scrollbars.d.ts +12 -12
  236. package/types/scene/selection.d.ts +31 -31
  237. package/types/scene/types.d.ts +92 -92
  238. package/types/scene/zoom.d.ts +13 -13
  239. package/types/shapes.d.ts +62 -62
  240. package/types/types.d.ts +546 -544
  241. package/types/utility-types.d.ts +24 -24
  242. package/types/utils.d.ts +200 -200
  243. package/types/zindex.d.ts +6 -6
  244. package/types/actions/actionToggleLock.d.ts +0 -135
  245. package/types/components/ColorPicker.d.ts +0 -19
  246. package/types/components/LibraryButton.d.ts +0 -8
  247. package/types/components/SingleLibraryItem.d.ts +0 -10
  248. package/types/components/context/tunnels.d.ts +0 -16
  249. package/types/components/hoc/withUpstreamOverride.d.ts +0 -10
  250. package/types/packages/common.webpack.dev.config.d.ts +0 -72
  251. package/types/packages/common.webpack.prod.config.d.ts +0 -84
  252. package/types/packages/excalidraw/dist/100.d.ts +0 -0
  253. package/types/packages/excalidraw/dist/1389.d.ts +0 -0
  254. package/types/packages/excalidraw/dist/1998.d.ts +0 -0
  255. package/types/packages/excalidraw/dist/4194.d.ts +0 -0
  256. package/types/packages/excalidraw/dist/4881.d.ts +0 -0
  257. package/types/packages/excalidraw/dist/5763.d.ts +0 -0
  258. package/types/packages/excalidraw/dist/5914.d.ts +0 -0
  259. package/types/packages/excalidraw/dist/6689.d.ts +0 -0
  260. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ar-SA-json-b9c75e6743e089f51f9b.d.ts +0 -0
  261. package/types/packages/excalidraw/dist/excalidraw-assets/locales/az-AZ-json-32268e2c7ad89fce5d2c.d.ts +0 -0
  262. package/types/packages/excalidraw/dist/excalidraw-assets/locales/bg-BG-json-ff5ef83d3c2706367417.d.ts +0 -0
  263. package/types/packages/excalidraw/dist/excalidraw-assets/locales/bn-BD-json-f9b1344b2f5c0ab53ce8.d.ts +0 -0
  264. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ca-ES-json-d4a1f01f8c174c315974.d.ts +0 -0
  265. package/types/packages/excalidraw/dist/excalidraw-assets/locales/cs-CZ-json-ff1b9bbfe92356698245.d.ts +0 -0
  266. package/types/packages/excalidraw/dist/excalidraw-assets/locales/da-DK-json-ac982a0c1e02b45f9500.d.ts +0 -0
  267. package/types/packages/excalidraw/dist/excalidraw-assets/locales/de-DE-json-a3222d8a9ed4864ccedf.d.ts +0 -0
  268. package/types/packages/excalidraw/dist/excalidraw-assets/locales/el-GR-json-8cc1609bd088ec4f197a.d.ts +0 -0
  269. package/types/packages/excalidraw/dist/excalidraw-assets/locales/es-ES-json-4f3da97feff33cb00e6d.d.ts +0 -0
  270. package/types/packages/excalidraw/dist/excalidraw-assets/locales/eu-ES-json-f9efd2bf2555bceb526a.d.ts +0 -0
  271. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fa-IR-json-abcad5d329ac9558750e.d.ts +0 -0
  272. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fi-FI-json-7250174bb3682c3ee602.d.ts +0 -0
  273. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fr-FR-json-f82759a1bc767e0889bd.d.ts +0 -0
  274. package/types/packages/excalidraw/dist/excalidraw-assets/locales/gl-ES-json-8408403b5df17158e269.d.ts +0 -0
  275. package/types/packages/excalidraw/dist/excalidraw-assets/locales/he-IL-json-2e5cea590dd00f76b42f.d.ts +0 -0
  276. package/types/packages/excalidraw/dist/excalidraw-assets/locales/hi-IN-json-3898c9c1216b44476529.d.ts +0 -0
  277. package/types/packages/excalidraw/dist/excalidraw-assets/locales/hu-HU-json-1b5028b3a2676b3e7bde.d.ts +0 -0
  278. package/types/packages/excalidraw/dist/excalidraw-assets/locales/id-ID-json-43d505d7071a0e359681.d.ts +0 -0
  279. package/types/packages/excalidraw/dist/excalidraw-assets/locales/it-IT-json-a1526e95ebe4c2156ffb.d.ts +0 -0
  280. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ja-JP-json-b7b0079dca8ece2551c7.d.ts +0 -0
  281. package/types/packages/excalidraw/dist/excalidraw-assets/locales/kaa-json-b2f03ae2f239b9fae304.d.ts +0 -0
  282. package/types/packages/excalidraw/dist/excalidraw-assets/locales/kab-KAB-json-e8618205ea49417e5fb4.d.ts +0 -0
  283. package/types/packages/excalidraw/dist/excalidraw-assets/locales/kk-KZ-json-f648362328b839e9313f.d.ts +0 -0
  284. package/types/packages/excalidraw/dist/excalidraw-assets/locales/km-KH-json-920cbd8cb9ea3c2ce631.d.ts +0 -0
  285. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ko-KR-json-e5f26d9854a5d68ada0a.d.ts +0 -0
  286. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ku-TR-json-374bbbb0b003a490681d.d.ts +0 -0
  287. package/types/packages/excalidraw/dist/excalidraw-assets/locales/lt-LT-json-9caac0d3530651221c75.d.ts +0 -0
  288. package/types/packages/excalidraw/dist/excalidraw-assets/locales/lv-LV-json-c811870330575e53285c.d.ts +0 -0
  289. package/types/packages/excalidraw/dist/excalidraw-assets/locales/mr-IN-json-05294735c64b63223d8e.d.ts +0 -0
  290. package/types/packages/excalidraw/dist/excalidraw-assets/locales/my-MM-json-c3cff6d30b1e629f546f.d.ts +0 -0
  291. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nb-NO-json-75cfab63ad7c2ff45f19.d.ts +0 -0
  292. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nl-NL-json-90ef39ed303967aeb9c2.d.ts +0 -0
  293. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nn-NO-json-1a8db0d8c3717d895cc5.d.ts +0 -0
  294. package/types/packages/excalidraw/dist/excalidraw-assets/locales/oc-FR-json-925326d13bc187dcd377.d.ts +0 -0
  295. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pa-IN-json-d9ee09801ed220840b2b.d.ts +0 -0
  296. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pl-PL-json-9a1b0b7262cd86ab734f.d.ts +0 -0
  297. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pt-BR-json-62a1095dd13343b61194.d.ts +0 -0
  298. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pt-PT-json-cc517eed349ce432b054.d.ts +0 -0
  299. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ro-RO-json-162b57c475da796d5a5b.d.ts +0 -0
  300. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ru-RU-json-cfc347872e181d1335a7.d.ts +0 -0
  301. package/types/packages/excalidraw/dist/excalidraw-assets/locales/si-LK-json-674ece30d49390e45733.d.ts +0 -0
  302. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sk-SK-json-8edebc008b63305c87e1.d.ts +0 -0
  303. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sl-SI-json-826580e1006547dbbd3b.d.ts +0 -0
  304. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sv-SE-json-84a855efd030e37f51ab.d.ts +0 -0
  305. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ta-IN-json-f59f50c4b8f2b2fee8ca.d.ts +0 -0
  306. package/types/packages/excalidraw/dist/excalidraw-assets/locales/th-TH-json-4cbe42d56e0a6f261769.d.ts +0 -0
  307. package/types/packages/excalidraw/dist/excalidraw-assets/locales/tr-TR-json-eb07e9699c26fef02345.d.ts +0 -0
  308. package/types/packages/excalidraw/dist/excalidraw-assets/locales/uk-UA-json-a48bb2e866a11d396a35.d.ts +0 -0
  309. package/types/packages/excalidraw/dist/excalidraw-assets/locales/vi-VN-json-cbbaff972778abc0e34b.d.ts +0 -0
  310. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-CN-json-48964474c5d477443a1b.d.ts +0 -0
  311. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-HK-json-19e6814bddb06e0dd6e3.d.ts +0 -0
  312. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-TW-json-3fcc3dcef74999ea3757.d.ts +0 -0
  313. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-4e96a832da47fc7016f9.d.ts +0 -0
  314. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-e62281f32dc8bed5f240.d.ts +0 -0
  315. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ar-SA-json-a69e95810fd104088c5c.d.ts +0 -2
  316. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/az-AZ-json-589b1b62c7020f14c833.d.ts +0 -2
  317. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/bg-BG-json-79742eced03e74339dfa.d.ts +0 -2
  318. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/bn-BD-json-737c1b739f303a032d89.d.ts +0 -2
  319. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ca-ES-json-5f515dea6151baaa2eaa.d.ts +0 -2
  320. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/cs-CZ-json-124bc5ab8060f0c7e965.d.ts +0 -2
  321. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/da-DK-json-d099915b14b07f999456.d.ts +0 -2
  322. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/de-DE-json-d8d9ee97794526088903.d.ts +0 -2
  323. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/el-GR-json-8562deea2ef40d73cf8a.d.ts +0 -2
  324. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/es-ES-json-da3d630806693d7dac08.d.ts +0 -2
  325. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/eu-ES-json-ea32646b47bf29438fb9.d.ts +0 -2
  326. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/fa-IR-json-e8d73ea1c5bdccca7b27.d.ts +0 -2
  327. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/fi-FI-json-1d2a667fad3ea0ced0ef.d.ts +0 -2
  328. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/fr-FR-json-ef3b02eac347cee42eac.d.ts +0 -2
  329. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/gl-ES-json-3c8bbe9429fc52e410b2.d.ts +0 -2
  330. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/he-IL-json-4a05a09da3b8c37144d5.d.ts +0 -2
  331. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/hi-IN-json-0300ce94e80ea89134af.d.ts +0 -2
  332. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/hu-HU-json-331ac1b31c82505ea6cc.d.ts +0 -2
  333. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/id-ID-json-f8ba56a28586e4e77070.d.ts +0 -2
  334. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/it-IT-json-0d8f11dec1a87e9359c8.d.ts +0 -2
  335. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ja-JP-json-ceaa3287f265ae241112.d.ts +0 -2
  336. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/kaa-json-4efd2d14964af8a534cb.d.ts +0 -2
  337. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/kab-KAB-json-3e7e196cc06505d82d71.d.ts +0 -2
  338. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/kk-KZ-json-96ab3e149666871ce872.d.ts +0 -2
  339. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/km-KH-json-5e3f43be16a6ec0eb24f.d.ts +0 -2
  340. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ko-KR-json-1f078c7aad070d3bd0e9.d.ts +0 -2
  341. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ku-TR-json-fcef5d1f6a04981f2a5e.d.ts +0 -2
  342. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/lt-LT-json-09bf8afbe684fc98c92a.d.ts +0 -2
  343. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/lv-LV-json-95d0faca7a20097e219f.d.ts +0 -2
  344. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/mr-IN-json-3ffe983e37fedc73cd65.d.ts +0 -2
  345. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/my-MM-json-c88241ade5d8f9bafe5d.d.ts +0 -2
  346. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/nb-NO-json-b80dd1befb2641b9364c.d.ts +0 -2
  347. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/nl-NL-json-4f65f25ec5e87503413e.d.ts +0 -2
  348. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/nn-NO-json-2134d8b06b7e30965748.d.ts +0 -2
  349. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/oc-FR-json-3e134022a025ff54b6f2.d.ts +0 -2
  350. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/pa-IN-json-97ad2e2064b71f244820.d.ts +0 -2
  351. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/pl-PL-json-1ed88814e0018339868e.d.ts +0 -2
  352. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/pt-BR-json-49f03e588be4c6bbe08c.d.ts +0 -2
  353. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/pt-PT-json-2929d15eba5953ef7715.d.ts +0 -2
  354. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ro-RO-json-785455320326c2640311.d.ts +0 -2
  355. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ru-RU-json-8836a70e1fe715aa70c7.d.ts +0 -2
  356. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/si-LK-json-244722aa29ba7ca8bd7a.d.ts +0 -2
  357. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/sk-SK-json-97afb0ec22d1503e2af4.d.ts +0 -2
  358. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/sl-SI-json-e59c2bd944228503e705.d.ts +0 -2
  359. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/sv-SE-json-8ee6702d94e84e48faa8.d.ts +0 -2
  360. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ta-IN-json-3c99dc4ff8af7e2523f3.d.ts +0 -2
  361. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/th-TH-json-a4b323409d22013c30e2.d.ts +0 -2
  362. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/tr-TR-json-399c6f39c50e30399d18.d.ts +0 -2
  363. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/uk-UA-json-8657d9ac1c78af847957.d.ts +0 -2
  364. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/vi-VN-json-e81217b667a314e4b841.d.ts +0 -2
  365. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/zh-CN-json-a97b8c616b2f0548d66c.d.ts +0 -2
  366. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/zh-HK-json-2f278ce98daca1c37501.d.ts +0 -2
  367. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/zh-TW-json-e4eb1416e4564d3a1fd9.d.ts +0 -2
  368. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-a14cd58fa2db417e42b2.d.ts +0 -0
  369. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-ca1b29f7c27b424efab5.d.ts +0 -0
  370. package/types/packages/excalidraw/dist/locales/ar-SA-json.d.ts +0 -2
  371. package/types/packages/excalidraw/dist/locales/az-AZ-json.d.ts +0 -2
  372. package/types/packages/excalidraw/dist/locales/bg-BG-json.d.ts +0 -2
  373. package/types/packages/excalidraw/dist/locales/bn-BD-json.d.ts +0 -2
  374. package/types/packages/excalidraw/dist/locales/ca-ES-json.d.ts +0 -2
  375. package/types/packages/excalidraw/dist/locales/cs-CZ-json.d.ts +0 -2
  376. package/types/packages/excalidraw/dist/locales/da-DK-json.d.ts +0 -2
  377. package/types/packages/excalidraw/dist/locales/de-DE-json.d.ts +0 -2
  378. package/types/packages/excalidraw/dist/locales/el-GR-json.d.ts +0 -2
  379. package/types/packages/excalidraw/dist/locales/es-ES-json.d.ts +0 -2
  380. package/types/packages/excalidraw/dist/locales/eu-ES-json.d.ts +0 -2
  381. package/types/packages/excalidraw/dist/locales/fa-IR-json.d.ts +0 -2
  382. package/types/packages/excalidraw/dist/locales/fi-FI-json.d.ts +0 -2
  383. package/types/packages/excalidraw/dist/locales/fr-FR-json.d.ts +0 -2
  384. package/types/packages/excalidraw/dist/locales/gl-ES-json.d.ts +0 -2
  385. package/types/packages/excalidraw/dist/locales/he-IL-json.d.ts +0 -2
  386. package/types/packages/excalidraw/dist/locales/hi-IN-json.d.ts +0 -2
  387. package/types/packages/excalidraw/dist/locales/hu-HU-json.d.ts +0 -2
  388. package/types/packages/excalidraw/dist/locales/id-ID-json.d.ts +0 -2
  389. package/types/packages/excalidraw/dist/locales/it-IT-json.d.ts +0 -2
  390. package/types/packages/excalidraw/dist/locales/ja-JP-json.d.ts +0 -2
  391. package/types/packages/excalidraw/dist/locales/kaa-json.d.ts +0 -2
  392. package/types/packages/excalidraw/dist/locales/kab-KAB-json.d.ts +0 -2
  393. package/types/packages/excalidraw/dist/locales/kk-KZ-json.d.ts +0 -2
  394. package/types/packages/excalidraw/dist/locales/km-KH-json.d.ts +0 -2
  395. package/types/packages/excalidraw/dist/locales/ko-KR-json.d.ts +0 -2
  396. package/types/packages/excalidraw/dist/locales/ku-TR-json.d.ts +0 -2
  397. package/types/packages/excalidraw/dist/locales/lt-LT-json.d.ts +0 -2
  398. package/types/packages/excalidraw/dist/locales/lv-LV-json.d.ts +0 -2
  399. package/types/packages/excalidraw/dist/locales/mr-IN-json.d.ts +0 -2
  400. package/types/packages/excalidraw/dist/locales/my-MM-json.d.ts +0 -2
  401. package/types/packages/excalidraw/dist/locales/nb-NO-json.d.ts +0 -2
  402. package/types/packages/excalidraw/dist/locales/nl-NL-json.d.ts +0 -2
  403. package/types/packages/excalidraw/dist/locales/nn-NO-json.d.ts +0 -2
  404. package/types/packages/excalidraw/dist/locales/oc-FR-json.d.ts +0 -2
  405. package/types/packages/excalidraw/dist/locales/pa-IN-json.d.ts +0 -2
  406. package/types/packages/excalidraw/dist/locales/pl-PL-json.d.ts +0 -2
  407. package/types/packages/excalidraw/dist/locales/pt-BR-json.d.ts +0 -2
  408. package/types/packages/excalidraw/dist/locales/pt-PT-json.d.ts +0 -2
  409. package/types/packages/excalidraw/dist/locales/ro-RO-json.d.ts +0 -2
  410. package/types/packages/excalidraw/dist/locales/ru-RU-json.d.ts +0 -2
  411. package/types/packages/excalidraw/dist/locales/si-LK-json.d.ts +0 -2
  412. package/types/packages/excalidraw/dist/locales/sk-SK-json.d.ts +0 -2
  413. package/types/packages/excalidraw/dist/locales/sl-SI-json.d.ts +0 -2
  414. package/types/packages/excalidraw/dist/locales/sv-SE-json.d.ts +0 -2
  415. package/types/packages/excalidraw/dist/locales/ta-IN-json.d.ts +0 -2
  416. package/types/packages/excalidraw/dist/locales/th-TH-json.d.ts +0 -2
  417. package/types/packages/excalidraw/dist/locales/tr-TR-json.d.ts +0 -2
  418. package/types/packages/excalidraw/dist/locales/uk-UA-json.d.ts +0 -2
  419. package/types/packages/excalidraw/dist/locales/vi-VN-json.d.ts +0 -2
  420. package/types/packages/excalidraw/dist/locales/zh-CN-json.d.ts +0 -2
  421. package/types/packages/excalidraw/dist/locales/zh-HK-json.d.ts +0 -2
  422. package/types/packages/excalidraw/dist/locales/zh-TW-json.d.ts +0 -2
  423. package/types/packages/excalidraw/dist/node_modules_browser-fs-access_dist_directory-open-01563666_js.d.ts +0 -0
  424. package/types/packages/excalidraw/dist/node_modules_browser-fs-access_dist_directory-open-4ed118d0_js.d.ts +0 -0
  425. package/types/packages/excalidraw/dist/node_modules_browser-fs-access_dist_file-open-002ab408_js.d.ts +0 -0
  426. package/types/packages/excalidraw/dist/node_modules_browser-fs-access_dist_file-open-7c801643_js.d.ts +0 -0
  427. package/types/packages/excalidraw/dist/node_modules_browser-fs-access_dist_file-save-3189631c_js.d.ts +0 -0
  428. package/types/packages/excalidraw/dist/node_modules_browser-fs-access_dist_file-save-745eba88_js.d.ts +0 -0
  429. package/types/packages/excalidraw/dist/node_modules_image-blob-reduce_dist_image-blob-reduce_esm_mjs.d.ts +0 -0
  430. package/types/packages/excalidraw/dist/node_modules_pica_dist_pica_js.d.ts +0 -0
  431. package/types/packages/excalidraw/dist/vendors-node_modules_image-blob-reduce_dist_image-blob-reduce_esm_mjs.d.ts +0 -0
  432. package/types/packages/excalidraw/dist/vendors-node_modules_pica_dist_pica_js.d.ts +0 -0
  433. package/types/packages/excalidraw/webpack.prod.config.newfromexcalidraw.d.ts +0 -95
  434. package/types/packages/excalidraw/webpack.prod.config.old.d.ts +0 -78
@@ -1,2012 +1,2051 @@
1
- import { AppState } from "../../src/types";
2
- import { Arrowhead, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
3
- export declare const actionChangeStrokeColor: {
4
- name: "changeStrokeColor";
5
- trackEvent: false;
6
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
7
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
8
- } & {
9
- keyTest?: undefined;
10
- };
11
- export declare const actionChangeBackgroundColor: {
12
- name: "changeBackgroundColor";
13
- trackEvent: false;
14
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
15
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
16
- } & {
17
- keyTest?: undefined;
18
- };
19
- export declare const actionChangeFillStyle: {
20
- name: "changeFillStyle";
21
- trackEvent: false;
22
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: import("../../src/types").AppClassProperties) => {
23
- elements: ExcalidrawElement[];
24
- appState: {
25
- currentItemFillStyle: any;
26
- contextMenu: {
27
- items: import("../components/ContextMenu").ContextMenuItems;
28
- top: number;
29
- left: number;
30
- } | null;
31
- showWelcomeScreen: boolean;
32
- isLoading: boolean;
33
- errorMessage: import("react").ReactNode;
34
- activeEmbeddable: {
35
- element: import("../element/types").NonDeletedExcalidrawElement;
36
- state: "active" | "hover";
37
- } | null;
38
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
39
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
40
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
41
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
42
- isBindingEnabled: boolean;
43
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
44
- suggestedBindings: import("../element/binding").SuggestedBinding[];
45
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
46
- frameRendering: {
47
- enabled: boolean;
48
- name: boolean;
49
- outline: boolean;
50
- clip: boolean;
51
- };
52
- editingFrame: string | null;
53
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
54
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
55
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
56
- activeTool: {
57
- lastActiveTool: import("../../src/types").LastActiveTool;
58
- locked: boolean;
59
- } & ({
60
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
61
- customType: null;
62
- } | {
63
- type: "custom";
64
- customType: string;
65
- });
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
- currentItemRoundness: import("../element/types").StrokeRoundness;
84
- viewBackgroundColor: string;
85
- scrollX: number;
86
- scrollY: number;
87
- cursorButton: "up" | "down";
88
- scrolledOutside: boolean;
89
- name: string;
90
- isResizing: boolean;
91
- isRotating: boolean;
92
- zoom: Readonly<{
93
- value: import("../../src/types").NormalizedZoomValue;
94
- }>;
95
- openMenu: "canvas" | "shape" | null;
96
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
97
- openSidebar: {
98
- name: string;
99
- tab?: string | undefined;
100
- } | null;
101
- openDialog: "imageExport" | "help" | "jsonExport" | null;
102
- defaultSidebarDockedPreference: boolean;
103
- lastPointerDownWith: import("../element/types").PointerType;
104
- selectedElementIds: Readonly<{
105
- [id: string]: true;
106
- }>;
107
- previousSelectedElementIds: {
108
- [id: string]: true;
109
- };
110
- selectedElementsAreBeingDragged: boolean;
111
- shouldCacheIgnoreZoom: boolean;
112
- toast: {
113
- message: string;
114
- closable?: boolean | undefined;
115
- duration?: number | undefined;
116
- } | null;
117
- zenModeEnabled: boolean;
118
- theme: import("../element/types").Theme;
119
- gridSize: number | null;
120
- previousGridSize: number | null;
121
- viewModeEnabled: boolean;
122
- selectedGroupIds: {
123
- [groupId: string]: boolean;
124
- };
125
- editingGroupId: string | null;
126
- width: number;
127
- height: number;
128
- offsetTop: number;
129
- offsetLeft: number;
130
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
131
- collaborators: Map<string, import("../../src/types").Collaborator>;
132
- showStats: boolean;
133
- currentChartType: import("../element/types").ChartType;
134
- pasteDialog: {
135
- shown: false;
136
- data: null;
137
- } | {
138
- shown: true;
139
- data: import("../charts").Spreadsheet;
140
- };
141
- pendingImageElementId: string | null;
142
- showHyperlinkPopup: false | "editor" | "info";
143
- linkOpacity: number;
144
- trayModeEnabled: boolean;
145
- colorPalette?: {
146
- canvasBackground: import("../colors").ColorPaletteCustom;
147
- elementBackground: import("../colors").ColorPaletteCustom;
148
- elementStroke: import("../colors").ColorPaletteCustom;
149
- topPicks: {
150
- canvasBackground: [string, string, string, string, string];
151
- elementStroke: [string, string, string, string, string];
152
- elementBackground: [string, string, string, string, string];
153
- };
154
- } | undefined;
155
- allowWheelZoom?: boolean | undefined;
156
- allowPinchZoom?: boolean | undefined;
157
- pinnedScripts?: string[] | undefined;
158
- customPens?: any[] | undefined;
159
- currentStrokeOptions?: any;
160
- resetCustomPen?: any;
161
- gridColor: string;
162
- dynamicStyle: string;
163
- invertBindingBehaviour: boolean;
164
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
165
- };
166
- commitToHistory: true;
167
- };
168
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
169
- } & {
170
- keyTest?: undefined;
171
- };
172
- export declare const actionChangeStrokeWidth: {
173
- name: "changeStrokeWidth";
174
- trackEvent: false;
175
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
176
- elements: ExcalidrawElement[];
177
- appState: {
178
- currentItemStrokeWidth: any;
179
- contextMenu: {
180
- items: import("../components/ContextMenu").ContextMenuItems;
181
- top: number;
182
- left: number;
183
- } | null;
184
- showWelcomeScreen: boolean;
185
- isLoading: boolean;
186
- errorMessage: import("react").ReactNode;
187
- activeEmbeddable: {
188
- element: import("../element/types").NonDeletedExcalidrawElement;
189
- state: "active" | "hover";
190
- } | null;
191
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
192
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
193
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
194
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
195
- isBindingEnabled: boolean;
196
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
197
- suggestedBindings: import("../element/binding").SuggestedBinding[];
198
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
199
- frameRendering: {
200
- enabled: boolean;
201
- name: boolean;
202
- outline: boolean;
203
- clip: boolean;
204
- };
205
- editingFrame: string | null;
206
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
207
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
208
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
209
- activeTool: {
210
- lastActiveTool: import("../../src/types").LastActiveTool;
211
- locked: boolean;
212
- } & ({
213
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
214
- customType: null;
215
- } | {
216
- type: "custom";
217
- customType: string;
218
- });
219
- penMode: boolean;
220
- penDetected: boolean;
221
- exportBackground: boolean;
222
- exportEmbedScene: boolean;
223
- exportWithDarkMode: boolean;
224
- exportScale: number;
225
- currentItemStrokeColor: string;
226
- currentItemBackgroundColor: string;
227
- currentItemFillStyle: import("../element/types").FillStyle;
228
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
229
- currentItemRoughness: number;
230
- currentItemOpacity: number;
231
- currentItemFontFamily: number;
232
- currentItemFontSize: number;
233
- currentItemTextAlign: string;
234
- currentItemStartArrowhead: Arrowhead | null;
235
- currentItemEndArrowhead: Arrowhead | null;
236
- currentItemRoundness: import("../element/types").StrokeRoundness;
237
- viewBackgroundColor: string;
238
- scrollX: number;
239
- scrollY: number;
240
- cursorButton: "up" | "down";
241
- scrolledOutside: boolean;
242
- name: string;
243
- isResizing: boolean;
244
- isRotating: boolean;
245
- zoom: Readonly<{
246
- value: import("../../src/types").NormalizedZoomValue;
247
- }>;
248
- openMenu: "canvas" | "shape" | null;
249
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
250
- openSidebar: {
251
- name: string;
252
- tab?: string | undefined;
253
- } | null;
254
- openDialog: "imageExport" | "help" | "jsonExport" | null;
255
- defaultSidebarDockedPreference: boolean;
256
- lastPointerDownWith: import("../element/types").PointerType;
257
- selectedElementIds: Readonly<{
258
- [id: string]: true;
259
- }>;
260
- previousSelectedElementIds: {
261
- [id: string]: true;
262
- };
263
- selectedElementsAreBeingDragged: boolean;
264
- shouldCacheIgnoreZoom: boolean;
265
- toast: {
266
- message: string;
267
- closable?: boolean | undefined;
268
- duration?: number | undefined;
269
- } | null;
270
- zenModeEnabled: boolean;
271
- theme: import("../element/types").Theme;
272
- gridSize: number | null;
273
- previousGridSize: number | null;
274
- viewModeEnabled: boolean;
275
- selectedGroupIds: {
276
- [groupId: string]: boolean;
277
- };
278
- editingGroupId: string | null;
279
- width: number;
280
- height: number;
281
- offsetTop: number;
282
- offsetLeft: number;
283
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
284
- collaborators: Map<string, import("../../src/types").Collaborator>;
285
- showStats: boolean;
286
- currentChartType: import("../element/types").ChartType;
287
- pasteDialog: {
288
- shown: false;
289
- data: null;
290
- } | {
291
- shown: true;
292
- data: import("../charts").Spreadsheet;
293
- };
294
- pendingImageElementId: string | null;
295
- showHyperlinkPopup: false | "editor" | "info";
296
- linkOpacity: number;
297
- trayModeEnabled: boolean;
298
- colorPalette?: {
299
- canvasBackground: import("../colors").ColorPaletteCustom;
300
- elementBackground: import("../colors").ColorPaletteCustom;
301
- elementStroke: import("../colors").ColorPaletteCustom;
302
- topPicks: {
303
- canvasBackground: [string, string, string, string, string];
304
- elementStroke: [string, string, string, string, string];
305
- elementBackground: [string, string, string, string, string];
306
- };
307
- } | undefined;
308
- allowWheelZoom?: boolean | undefined;
309
- allowPinchZoom?: boolean | undefined;
310
- pinnedScripts?: string[] | undefined;
311
- customPens?: any[] | undefined;
312
- currentStrokeOptions?: any;
313
- resetCustomPen?: any;
314
- gridColor: string;
315
- dynamicStyle: string;
316
- invertBindingBehaviour: boolean;
317
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
318
- };
319
- commitToHistory: true;
320
- };
321
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
322
- } & {
323
- keyTest?: undefined;
324
- };
325
- export declare const actionChangeSloppiness: {
326
- name: "changeSloppiness";
327
- trackEvent: false;
328
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
329
- elements: ExcalidrawElement[];
330
- appState: {
331
- currentItemRoughness: any;
332
- contextMenu: {
333
- items: import("../components/ContextMenu").ContextMenuItems;
334
- top: number;
335
- left: number;
336
- } | null;
337
- showWelcomeScreen: boolean;
338
- isLoading: boolean;
339
- errorMessage: import("react").ReactNode;
340
- activeEmbeddable: {
341
- element: import("../element/types").NonDeletedExcalidrawElement;
342
- state: "active" | "hover";
343
- } | null;
344
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
345
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
346
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
347
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
348
- isBindingEnabled: boolean;
349
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
350
- suggestedBindings: import("../element/binding").SuggestedBinding[];
351
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
352
- frameRendering: {
353
- enabled: boolean;
354
- name: boolean;
355
- outline: boolean;
356
- clip: boolean;
357
- };
358
- editingFrame: string | null;
359
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
360
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
361
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
362
- activeTool: {
363
- lastActiveTool: import("../../src/types").LastActiveTool;
364
- locked: boolean;
365
- } & ({
366
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
367
- customType: null;
368
- } | {
369
- type: "custom";
370
- customType: string;
371
- });
372
- penMode: boolean;
373
- penDetected: boolean;
374
- exportBackground: boolean;
375
- exportEmbedScene: boolean;
376
- exportWithDarkMode: boolean;
377
- exportScale: number;
378
- currentItemStrokeColor: string;
379
- currentItemBackgroundColor: string;
380
- currentItemFillStyle: import("../element/types").FillStyle;
381
- currentItemStrokeWidth: number;
382
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
383
- currentItemOpacity: number;
384
- currentItemFontFamily: number;
385
- currentItemFontSize: number;
386
- currentItemTextAlign: string;
387
- currentItemStartArrowhead: Arrowhead | null;
388
- currentItemEndArrowhead: Arrowhead | null;
389
- currentItemRoundness: import("../element/types").StrokeRoundness;
390
- viewBackgroundColor: string;
391
- scrollX: number;
392
- scrollY: number;
393
- cursorButton: "up" | "down";
394
- scrolledOutside: boolean;
395
- name: string;
396
- isResizing: boolean;
397
- isRotating: boolean;
398
- zoom: Readonly<{
399
- value: import("../../src/types").NormalizedZoomValue;
400
- }>;
401
- openMenu: "canvas" | "shape" | null;
402
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
403
- openSidebar: {
404
- name: string;
405
- tab?: string | undefined;
406
- } | null;
407
- openDialog: "imageExport" | "help" | "jsonExport" | null;
408
- defaultSidebarDockedPreference: boolean;
409
- lastPointerDownWith: import("../element/types").PointerType;
410
- selectedElementIds: Readonly<{
411
- [id: string]: true;
412
- }>;
413
- previousSelectedElementIds: {
414
- [id: string]: true;
415
- };
416
- selectedElementsAreBeingDragged: boolean;
417
- shouldCacheIgnoreZoom: boolean;
418
- toast: {
419
- message: string;
420
- closable?: boolean | undefined;
421
- duration?: number | undefined;
422
- } | null;
423
- zenModeEnabled: boolean;
424
- theme: import("../element/types").Theme;
425
- gridSize: number | null;
426
- previousGridSize: number | null;
427
- viewModeEnabled: boolean;
428
- selectedGroupIds: {
429
- [groupId: string]: boolean;
430
- };
431
- editingGroupId: string | null;
432
- width: number;
433
- height: number;
434
- offsetTop: number;
435
- offsetLeft: number;
436
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
437
- collaborators: Map<string, import("../../src/types").Collaborator>;
438
- showStats: boolean;
439
- currentChartType: import("../element/types").ChartType;
440
- pasteDialog: {
441
- shown: false;
442
- data: null;
443
- } | {
444
- shown: true;
445
- data: import("../charts").Spreadsheet;
446
- };
447
- pendingImageElementId: string | null;
448
- showHyperlinkPopup: false | "editor" | "info";
449
- linkOpacity: number;
450
- trayModeEnabled: boolean;
451
- colorPalette?: {
452
- canvasBackground: import("../colors").ColorPaletteCustom;
453
- elementBackground: import("../colors").ColorPaletteCustom;
454
- elementStroke: import("../colors").ColorPaletteCustom;
455
- topPicks: {
456
- canvasBackground: [string, string, string, string, string];
457
- elementStroke: [string, string, string, string, string];
458
- elementBackground: [string, string, string, string, string];
459
- };
460
- } | undefined;
461
- allowWheelZoom?: boolean | undefined;
462
- allowPinchZoom?: boolean | undefined;
463
- pinnedScripts?: string[] | undefined;
464
- customPens?: any[] | undefined;
465
- currentStrokeOptions?: any;
466
- resetCustomPen?: any;
467
- gridColor: string;
468
- dynamicStyle: string;
469
- invertBindingBehaviour: boolean;
470
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
471
- };
472
- commitToHistory: true;
473
- };
474
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
475
- } & {
476
- keyTest?: undefined;
477
- };
478
- export declare const actionChangeStrokeStyle: {
479
- name: "changeStrokeStyle";
480
- trackEvent: false;
481
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
482
- elements: ExcalidrawElement[];
483
- appState: {
484
- currentItemStrokeStyle: any;
485
- contextMenu: {
486
- items: import("../components/ContextMenu").ContextMenuItems;
487
- top: number;
488
- left: number;
489
- } | null;
490
- showWelcomeScreen: boolean;
491
- isLoading: boolean;
492
- errorMessage: import("react").ReactNode;
493
- activeEmbeddable: {
494
- element: import("../element/types").NonDeletedExcalidrawElement;
495
- state: "active" | "hover";
496
- } | null;
497
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
498
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
499
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
500
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
501
- isBindingEnabled: boolean;
502
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
503
- suggestedBindings: import("../element/binding").SuggestedBinding[];
504
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
505
- frameRendering: {
506
- enabled: boolean;
507
- name: boolean;
508
- outline: boolean;
509
- clip: boolean;
510
- };
511
- editingFrame: string | null;
512
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
513
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
514
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
515
- activeTool: {
516
- lastActiveTool: import("../../src/types").LastActiveTool;
517
- locked: boolean;
518
- } & ({
519
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
520
- customType: null;
521
- } | {
522
- type: "custom";
523
- customType: string;
524
- });
525
- penMode: boolean;
526
- penDetected: boolean;
527
- exportBackground: boolean;
528
- exportEmbedScene: boolean;
529
- exportWithDarkMode: boolean;
530
- exportScale: number;
531
- currentItemStrokeColor: string;
532
- currentItemBackgroundColor: string;
533
- currentItemFillStyle: import("../element/types").FillStyle;
534
- currentItemStrokeWidth: number;
535
- currentItemRoughness: number;
536
- currentItemOpacity: number;
537
- currentItemFontFamily: number;
538
- currentItemFontSize: number;
539
- currentItemTextAlign: string;
540
- currentItemStartArrowhead: Arrowhead | null;
541
- currentItemEndArrowhead: Arrowhead | null;
542
- currentItemRoundness: import("../element/types").StrokeRoundness;
543
- viewBackgroundColor: string;
544
- scrollX: number;
545
- scrollY: number;
546
- cursorButton: "up" | "down";
547
- scrolledOutside: boolean;
548
- name: string;
549
- isResizing: boolean;
550
- isRotating: boolean;
551
- zoom: Readonly<{
552
- value: import("../../src/types").NormalizedZoomValue;
553
- }>;
554
- openMenu: "canvas" | "shape" | null;
555
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
556
- openSidebar: {
557
- name: string;
558
- tab?: string | undefined;
559
- } | null;
560
- openDialog: "imageExport" | "help" | "jsonExport" | null;
561
- defaultSidebarDockedPreference: boolean;
562
- lastPointerDownWith: import("../element/types").PointerType;
563
- selectedElementIds: Readonly<{
564
- [id: string]: true;
565
- }>;
566
- previousSelectedElementIds: {
567
- [id: string]: true;
568
- };
569
- selectedElementsAreBeingDragged: boolean;
570
- shouldCacheIgnoreZoom: boolean;
571
- toast: {
572
- message: string;
573
- closable?: boolean | undefined;
574
- duration?: number | undefined;
575
- } | null;
576
- zenModeEnabled: boolean;
577
- theme: import("../element/types").Theme;
578
- gridSize: number | null;
579
- previousGridSize: number | null;
580
- viewModeEnabled: boolean;
581
- selectedGroupIds: {
582
- [groupId: string]: boolean;
583
- };
584
- editingGroupId: string | null;
585
- width: number;
586
- height: number;
587
- offsetTop: number;
588
- offsetLeft: number;
589
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
590
- collaborators: Map<string, import("../../src/types").Collaborator>;
591
- showStats: boolean;
592
- currentChartType: import("../element/types").ChartType;
593
- pasteDialog: {
594
- shown: false;
595
- data: null;
596
- } | {
597
- shown: true;
598
- data: import("../charts").Spreadsheet;
599
- };
600
- pendingImageElementId: string | null;
601
- showHyperlinkPopup: false | "editor" | "info";
602
- linkOpacity: number;
603
- trayModeEnabled: boolean;
604
- colorPalette?: {
605
- canvasBackground: import("../colors").ColorPaletteCustom;
606
- elementBackground: import("../colors").ColorPaletteCustom;
607
- elementStroke: import("../colors").ColorPaletteCustom;
608
- topPicks: {
609
- canvasBackground: [string, string, string, string, string];
610
- elementStroke: [string, string, string, string, string];
611
- elementBackground: [string, string, string, string, string];
612
- };
613
- } | undefined;
614
- allowWheelZoom?: boolean | undefined;
615
- allowPinchZoom?: boolean | undefined;
616
- pinnedScripts?: string[] | undefined;
617
- customPens?: any[] | undefined;
618
- currentStrokeOptions?: any;
619
- resetCustomPen?: any;
620
- gridColor: string;
621
- dynamicStyle: string;
622
- invertBindingBehaviour: boolean;
623
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
624
- };
625
- commitToHistory: true;
626
- };
627
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
628
- } & {
629
- keyTest?: undefined;
630
- };
631
- export declare const actionChangeOpacity: {
632
- name: "changeOpacity";
633
- trackEvent: false;
634
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
635
- elements: ExcalidrawElement[];
636
- appState: {
637
- currentItemOpacity: any;
638
- contextMenu: {
639
- items: import("../components/ContextMenu").ContextMenuItems;
640
- top: number;
641
- left: number;
642
- } | null;
643
- showWelcomeScreen: boolean;
644
- isLoading: boolean;
645
- errorMessage: import("react").ReactNode;
646
- activeEmbeddable: {
647
- element: import("../element/types").NonDeletedExcalidrawElement;
648
- state: "active" | "hover";
649
- } | null;
650
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
651
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
652
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
653
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
654
- isBindingEnabled: boolean;
655
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
656
- suggestedBindings: import("../element/binding").SuggestedBinding[];
657
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
658
- frameRendering: {
659
- enabled: boolean;
660
- name: boolean;
661
- outline: boolean;
662
- clip: boolean;
663
- };
664
- editingFrame: string | null;
665
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
666
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
667
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
668
- activeTool: {
669
- lastActiveTool: import("../../src/types").LastActiveTool;
670
- locked: boolean;
671
- } & ({
672
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
673
- customType: null;
674
- } | {
675
- type: "custom";
676
- customType: string;
677
- });
678
- penMode: boolean;
679
- penDetected: boolean;
680
- exportBackground: boolean;
681
- exportEmbedScene: boolean;
682
- exportWithDarkMode: boolean;
683
- exportScale: number;
684
- currentItemStrokeColor: string;
685
- currentItemBackgroundColor: string;
686
- currentItemFillStyle: import("../element/types").FillStyle;
687
- currentItemStrokeWidth: number;
688
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
689
- currentItemRoughness: number;
690
- currentItemFontFamily: number;
691
- currentItemFontSize: number;
692
- currentItemTextAlign: string;
693
- currentItemStartArrowhead: Arrowhead | null;
694
- currentItemEndArrowhead: Arrowhead | null;
695
- currentItemRoundness: import("../element/types").StrokeRoundness;
696
- viewBackgroundColor: string;
697
- scrollX: number;
698
- scrollY: number;
699
- cursorButton: "up" | "down";
700
- scrolledOutside: boolean;
701
- name: string;
702
- isResizing: boolean;
703
- isRotating: boolean;
704
- zoom: Readonly<{
705
- value: import("../../src/types").NormalizedZoomValue;
706
- }>;
707
- openMenu: "canvas" | "shape" | null;
708
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
709
- openSidebar: {
710
- name: string;
711
- tab?: string | undefined;
712
- } | null;
713
- openDialog: "imageExport" | "help" | "jsonExport" | null;
714
- defaultSidebarDockedPreference: boolean;
715
- lastPointerDownWith: import("../element/types").PointerType;
716
- selectedElementIds: Readonly<{
717
- [id: string]: true;
718
- }>;
719
- previousSelectedElementIds: {
720
- [id: string]: true;
721
- };
722
- selectedElementsAreBeingDragged: boolean;
723
- shouldCacheIgnoreZoom: boolean;
724
- toast: {
725
- message: string;
726
- closable?: boolean | undefined;
727
- duration?: number | undefined;
728
- } | null;
729
- zenModeEnabled: boolean;
730
- theme: import("../element/types").Theme;
731
- gridSize: number | null;
732
- previousGridSize: number | null;
733
- viewModeEnabled: boolean;
734
- selectedGroupIds: {
735
- [groupId: string]: boolean;
736
- };
737
- editingGroupId: string | null;
738
- width: number;
739
- height: number;
740
- offsetTop: number;
741
- offsetLeft: number;
742
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
743
- collaborators: Map<string, import("../../src/types").Collaborator>;
744
- showStats: boolean;
745
- currentChartType: import("../element/types").ChartType;
746
- pasteDialog: {
747
- shown: false;
748
- data: null;
749
- } | {
750
- shown: true;
751
- data: import("../charts").Spreadsheet;
752
- };
753
- pendingImageElementId: string | null;
754
- showHyperlinkPopup: false | "editor" | "info";
755
- linkOpacity: number;
756
- trayModeEnabled: boolean;
757
- colorPalette?: {
758
- canvasBackground: import("../colors").ColorPaletteCustom;
759
- elementBackground: import("../colors").ColorPaletteCustom;
760
- elementStroke: import("../colors").ColorPaletteCustom;
761
- topPicks: {
762
- canvasBackground: [string, string, string, string, string];
763
- elementStroke: [string, string, string, string, string];
764
- elementBackground: [string, string, string, string, string];
765
- };
766
- } | undefined;
767
- allowWheelZoom?: boolean | undefined;
768
- allowPinchZoom?: boolean | undefined;
769
- pinnedScripts?: string[] | undefined;
770
- customPens?: any[] | undefined;
771
- currentStrokeOptions?: any;
772
- resetCustomPen?: any;
773
- gridColor: string;
774
- dynamicStyle: string;
775
- invertBindingBehaviour: boolean;
776
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
777
- };
778
- commitToHistory: true;
779
- };
780
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
781
- } & {
782
- keyTest?: undefined;
783
- };
784
- export declare const actionChangeFontSize: {
785
- name: "changeFontSize";
786
- trackEvent: false;
787
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
788
- elements: ExcalidrawElement[];
789
- appState: {
790
- currentItemFontSize: number;
791
- contextMenu: {
792
- items: import("../components/ContextMenu").ContextMenuItems;
793
- top: number;
794
- left: number;
795
- } | null;
796
- showWelcomeScreen: boolean;
797
- isLoading: boolean;
798
- errorMessage: import("react").ReactNode;
799
- activeEmbeddable: {
800
- element: import("../element/types").NonDeletedExcalidrawElement;
801
- state: "active" | "hover";
802
- } | null;
803
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
804
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
805
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
806
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
807
- isBindingEnabled: boolean;
808
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
809
- suggestedBindings: import("../element/binding").SuggestedBinding[];
810
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
811
- frameRendering: {
812
- enabled: boolean;
813
- name: boolean;
814
- outline: boolean;
815
- clip: boolean;
816
- };
817
- editingFrame: string | null;
818
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
819
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
820
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
821
- activeTool: {
822
- lastActiveTool: import("../../src/types").LastActiveTool;
823
- locked: boolean;
824
- } & ({
825
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
826
- customType: null;
827
- } | {
828
- type: "custom";
829
- customType: string;
830
- });
831
- penMode: boolean;
832
- penDetected: boolean;
833
- exportBackground: boolean;
834
- exportEmbedScene: boolean;
835
- exportWithDarkMode: boolean;
836
- exportScale: number;
837
- currentItemStrokeColor: string;
838
- currentItemBackgroundColor: string;
839
- currentItemFillStyle: import("../element/types").FillStyle;
840
- currentItemStrokeWidth: number;
841
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
842
- currentItemRoughness: number;
843
- currentItemOpacity: number;
844
- currentItemFontFamily: number;
845
- currentItemTextAlign: string;
846
- currentItemStartArrowhead: Arrowhead | null;
847
- currentItemEndArrowhead: Arrowhead | null;
848
- currentItemRoundness: import("../element/types").StrokeRoundness;
849
- viewBackgroundColor: string;
850
- scrollX: number;
851
- scrollY: number;
852
- cursorButton: "up" | "down";
853
- scrolledOutside: boolean;
854
- name: string;
855
- isResizing: boolean;
856
- isRotating: boolean;
857
- zoom: Readonly<{
858
- value: import("../../src/types").NormalizedZoomValue;
859
- }>;
860
- openMenu: "canvas" | "shape" | null;
861
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
862
- openSidebar: {
863
- name: string;
864
- tab?: string | undefined;
865
- } | null;
866
- openDialog: "imageExport" | "help" | "jsonExport" | null;
867
- defaultSidebarDockedPreference: boolean;
868
- lastPointerDownWith: import("../element/types").PointerType;
869
- selectedElementIds: Readonly<{
870
- [id: string]: true;
871
- }>;
872
- previousSelectedElementIds: {
873
- [id: string]: true;
874
- };
875
- selectedElementsAreBeingDragged: boolean;
876
- shouldCacheIgnoreZoom: boolean;
877
- toast: {
878
- message: string;
879
- closable?: boolean | undefined;
880
- duration?: number | undefined;
881
- } | null;
882
- zenModeEnabled: boolean;
883
- theme: import("../element/types").Theme;
884
- gridSize: number | null;
885
- previousGridSize: number | null;
886
- viewModeEnabled: boolean;
887
- selectedGroupIds: {
888
- [groupId: string]: boolean;
889
- };
890
- editingGroupId: string | null;
891
- width: number;
892
- height: number;
893
- offsetTop: number;
894
- offsetLeft: number;
895
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
896
- collaborators: Map<string, import("../../src/types").Collaborator>;
897
- showStats: boolean;
898
- currentChartType: import("../element/types").ChartType;
899
- pasteDialog: {
900
- shown: false;
901
- data: null;
902
- } | {
903
- shown: true;
904
- data: import("../charts").Spreadsheet;
905
- };
906
- pendingImageElementId: string | null;
907
- showHyperlinkPopup: false | "editor" | "info";
908
- linkOpacity: number;
909
- trayModeEnabled: boolean;
910
- colorPalette?: {
911
- canvasBackground: import("../colors").ColorPaletteCustom;
912
- elementBackground: import("../colors").ColorPaletteCustom;
913
- elementStroke: import("../colors").ColorPaletteCustom;
914
- topPicks: {
915
- canvasBackground: [string, string, string, string, string];
916
- elementStroke: [string, string, string, string, string];
917
- elementBackground: [string, string, string, string, string];
918
- };
919
- } | undefined;
920
- allowWheelZoom?: boolean | undefined;
921
- allowPinchZoom?: boolean | undefined;
922
- pinnedScripts?: string[] | undefined;
923
- customPens?: any[] | undefined;
924
- currentStrokeOptions?: any;
925
- resetCustomPen?: any;
926
- gridColor: string;
927
- dynamicStyle: string;
928
- invertBindingBehaviour: boolean;
929
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
930
- };
931
- commitToHistory: boolean;
932
- };
933
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
934
- } & {
935
- keyTest?: undefined;
936
- };
937
- export declare const actionDecreaseFontSize: {
938
- name: "decreaseFontSize";
939
- trackEvent: false;
940
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
941
- elements: ExcalidrawElement[];
942
- appState: {
943
- currentItemFontSize: number;
944
- contextMenu: {
945
- items: import("../components/ContextMenu").ContextMenuItems;
946
- top: number;
947
- left: number;
948
- } | null;
949
- showWelcomeScreen: boolean;
950
- isLoading: boolean;
951
- errorMessage: import("react").ReactNode;
952
- activeEmbeddable: {
953
- element: import("../element/types").NonDeletedExcalidrawElement;
954
- state: "active" | "hover";
955
- } | null;
956
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
957
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
958
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
959
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
960
- isBindingEnabled: boolean;
961
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
962
- suggestedBindings: import("../element/binding").SuggestedBinding[];
963
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
964
- frameRendering: {
965
- enabled: boolean;
966
- name: boolean;
967
- outline: boolean;
968
- clip: boolean;
969
- };
970
- editingFrame: string | null;
971
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
972
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
973
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
974
- activeTool: {
975
- lastActiveTool: import("../../src/types").LastActiveTool;
976
- locked: boolean;
977
- } & ({
978
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
979
- customType: null;
980
- } | {
981
- type: "custom";
982
- customType: string;
983
- });
984
- penMode: boolean;
985
- penDetected: boolean;
986
- exportBackground: boolean;
987
- exportEmbedScene: boolean;
988
- exportWithDarkMode: boolean;
989
- exportScale: number;
990
- currentItemStrokeColor: string;
991
- currentItemBackgroundColor: string;
992
- currentItemFillStyle: import("../element/types").FillStyle;
993
- currentItemStrokeWidth: number;
994
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
995
- currentItemRoughness: number;
996
- currentItemOpacity: number;
997
- currentItemFontFamily: number;
998
- currentItemTextAlign: string;
999
- currentItemStartArrowhead: Arrowhead | null;
1000
- currentItemEndArrowhead: Arrowhead | null;
1001
- currentItemRoundness: import("../element/types").StrokeRoundness;
1002
- viewBackgroundColor: string;
1003
- scrollX: number;
1004
- scrollY: number;
1005
- cursorButton: "up" | "down";
1006
- scrolledOutside: boolean;
1007
- name: string;
1008
- isResizing: boolean;
1009
- isRotating: boolean;
1010
- zoom: Readonly<{
1011
- value: import("../../src/types").NormalizedZoomValue;
1012
- }>;
1013
- openMenu: "canvas" | "shape" | null;
1014
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1015
- openSidebar: {
1016
- name: string;
1017
- tab?: string | undefined;
1018
- } | null;
1019
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1020
- defaultSidebarDockedPreference: boolean;
1021
- lastPointerDownWith: import("../element/types").PointerType;
1022
- selectedElementIds: Readonly<{
1023
- [id: string]: true;
1024
- }>;
1025
- previousSelectedElementIds: {
1026
- [id: string]: true;
1027
- };
1028
- selectedElementsAreBeingDragged: boolean;
1029
- shouldCacheIgnoreZoom: boolean;
1030
- toast: {
1031
- message: string;
1032
- closable?: boolean | undefined;
1033
- duration?: number | undefined;
1034
- } | null;
1035
- zenModeEnabled: boolean;
1036
- theme: import("../element/types").Theme;
1037
- gridSize: number | null;
1038
- previousGridSize: number | null;
1039
- viewModeEnabled: boolean;
1040
- selectedGroupIds: {
1041
- [groupId: string]: boolean;
1042
- };
1043
- editingGroupId: string | null;
1044
- width: number;
1045
- height: number;
1046
- offsetTop: number;
1047
- offsetLeft: number;
1048
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1049
- collaborators: Map<string, import("../../src/types").Collaborator>;
1050
- showStats: boolean;
1051
- currentChartType: import("../element/types").ChartType;
1052
- pasteDialog: {
1053
- shown: false;
1054
- data: null;
1055
- } | {
1056
- shown: true;
1057
- data: import("../charts").Spreadsheet;
1058
- };
1059
- pendingImageElementId: string | null;
1060
- showHyperlinkPopup: false | "editor" | "info";
1061
- linkOpacity: number;
1062
- trayModeEnabled: boolean;
1063
- colorPalette?: {
1064
- canvasBackground: import("../colors").ColorPaletteCustom;
1065
- elementBackground: import("../colors").ColorPaletteCustom;
1066
- elementStroke: import("../colors").ColorPaletteCustom;
1067
- topPicks: {
1068
- canvasBackground: [string, string, string, string, string];
1069
- elementStroke: [string, string, string, string, string];
1070
- elementBackground: [string, string, string, string, string];
1071
- };
1072
- } | undefined;
1073
- allowWheelZoom?: boolean | undefined;
1074
- allowPinchZoom?: boolean | undefined;
1075
- pinnedScripts?: string[] | undefined;
1076
- customPens?: any[] | undefined;
1077
- currentStrokeOptions?: any;
1078
- resetCustomPen?: any;
1079
- gridColor: string;
1080
- dynamicStyle: string;
1081
- invertBindingBehaviour: boolean;
1082
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1083
- };
1084
- commitToHistory: boolean;
1085
- };
1086
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1087
- } & {
1088
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1089
- };
1090
- export declare const actionIncreaseFontSize: {
1091
- name: "increaseFontSize";
1092
- trackEvent: false;
1093
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1094
- elements: ExcalidrawElement[];
1095
- appState: {
1096
- currentItemFontSize: number;
1097
- contextMenu: {
1098
- items: import("../components/ContextMenu").ContextMenuItems;
1099
- top: number;
1100
- left: number;
1101
- } | null;
1102
- showWelcomeScreen: boolean;
1103
- isLoading: boolean;
1104
- errorMessage: import("react").ReactNode;
1105
- activeEmbeddable: {
1106
- element: import("../element/types").NonDeletedExcalidrawElement;
1107
- state: "active" | "hover";
1108
- } | null;
1109
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1110
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1111
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1112
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1113
- isBindingEnabled: boolean;
1114
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1115
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1116
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1117
- frameRendering: {
1118
- enabled: boolean;
1119
- name: boolean;
1120
- outline: boolean;
1121
- clip: boolean;
1122
- };
1123
- editingFrame: string | null;
1124
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1125
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1126
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1127
- activeTool: {
1128
- lastActiveTool: import("../../src/types").LastActiveTool;
1129
- locked: boolean;
1130
- } & ({
1131
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1132
- customType: null;
1133
- } | {
1134
- type: "custom";
1135
- customType: string;
1136
- });
1137
- penMode: boolean;
1138
- penDetected: boolean;
1139
- exportBackground: boolean;
1140
- exportEmbedScene: boolean;
1141
- exportWithDarkMode: boolean;
1142
- exportScale: number;
1143
- currentItemStrokeColor: string;
1144
- currentItemBackgroundColor: string;
1145
- currentItemFillStyle: import("../element/types").FillStyle;
1146
- currentItemStrokeWidth: number;
1147
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1148
- currentItemRoughness: number;
1149
- currentItemOpacity: number;
1150
- currentItemFontFamily: number;
1151
- currentItemTextAlign: string;
1152
- currentItemStartArrowhead: Arrowhead | null;
1153
- currentItemEndArrowhead: Arrowhead | null;
1154
- currentItemRoundness: import("../element/types").StrokeRoundness;
1155
- viewBackgroundColor: string;
1156
- scrollX: number;
1157
- scrollY: number;
1158
- cursorButton: "up" | "down";
1159
- scrolledOutside: boolean;
1160
- name: string;
1161
- isResizing: boolean;
1162
- isRotating: boolean;
1163
- zoom: Readonly<{
1164
- value: import("../../src/types").NormalizedZoomValue;
1165
- }>;
1166
- openMenu: "canvas" | "shape" | null;
1167
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1168
- openSidebar: {
1169
- name: string;
1170
- tab?: string | undefined;
1171
- } | null;
1172
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1173
- defaultSidebarDockedPreference: boolean;
1174
- lastPointerDownWith: import("../element/types").PointerType;
1175
- selectedElementIds: Readonly<{
1176
- [id: string]: true;
1177
- }>;
1178
- previousSelectedElementIds: {
1179
- [id: string]: true;
1180
- };
1181
- selectedElementsAreBeingDragged: boolean;
1182
- shouldCacheIgnoreZoom: boolean;
1183
- toast: {
1184
- message: string;
1185
- closable?: boolean | undefined;
1186
- duration?: number | undefined;
1187
- } | null;
1188
- zenModeEnabled: boolean;
1189
- theme: import("../element/types").Theme;
1190
- gridSize: number | null;
1191
- previousGridSize: number | null;
1192
- viewModeEnabled: boolean;
1193
- selectedGroupIds: {
1194
- [groupId: string]: boolean;
1195
- };
1196
- editingGroupId: string | null;
1197
- width: number;
1198
- height: number;
1199
- offsetTop: number;
1200
- offsetLeft: number;
1201
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1202
- collaborators: Map<string, import("../../src/types").Collaborator>;
1203
- showStats: boolean;
1204
- currentChartType: import("../element/types").ChartType;
1205
- pasteDialog: {
1206
- shown: false;
1207
- data: null;
1208
- } | {
1209
- shown: true;
1210
- data: import("../charts").Spreadsheet;
1211
- };
1212
- pendingImageElementId: string | null;
1213
- showHyperlinkPopup: false | "editor" | "info";
1214
- linkOpacity: number;
1215
- trayModeEnabled: boolean;
1216
- colorPalette?: {
1217
- canvasBackground: import("../colors").ColorPaletteCustom;
1218
- elementBackground: import("../colors").ColorPaletteCustom;
1219
- elementStroke: import("../colors").ColorPaletteCustom;
1220
- topPicks: {
1221
- canvasBackground: [string, string, string, string, string];
1222
- elementStroke: [string, string, string, string, string];
1223
- elementBackground: [string, string, string, string, string];
1224
- };
1225
- } | undefined;
1226
- allowWheelZoom?: boolean | undefined;
1227
- allowPinchZoom?: boolean | undefined;
1228
- pinnedScripts?: string[] | undefined;
1229
- customPens?: any[] | undefined;
1230
- currentStrokeOptions?: any;
1231
- resetCustomPen?: any;
1232
- gridColor: string;
1233
- dynamicStyle: string;
1234
- invertBindingBehaviour: boolean;
1235
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1236
- };
1237
- commitToHistory: boolean;
1238
- };
1239
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1240
- } & {
1241
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1242
- };
1243
- export declare const actionChangeFontFamily: {
1244
- name: "changeFontFamily";
1245
- trackEvent: false;
1246
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1247
- elements: ExcalidrawElement[];
1248
- appState: {
1249
- currentItemFontFamily: any;
1250
- contextMenu: {
1251
- items: import("../components/ContextMenu").ContextMenuItems;
1252
- top: number;
1253
- left: number;
1254
- } | null;
1255
- showWelcomeScreen: boolean;
1256
- isLoading: boolean;
1257
- errorMessage: import("react").ReactNode;
1258
- activeEmbeddable: {
1259
- element: import("../element/types").NonDeletedExcalidrawElement;
1260
- state: "active" | "hover";
1261
- } | null;
1262
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1263
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1264
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1265
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1266
- isBindingEnabled: boolean;
1267
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1268
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1269
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1270
- frameRendering: {
1271
- enabled: boolean;
1272
- name: boolean;
1273
- outline: boolean;
1274
- clip: boolean;
1275
- };
1276
- editingFrame: string | null;
1277
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1278
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1279
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1280
- activeTool: {
1281
- lastActiveTool: import("../../src/types").LastActiveTool;
1282
- locked: boolean;
1283
- } & ({
1284
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1285
- customType: null;
1286
- } | {
1287
- type: "custom";
1288
- customType: string;
1289
- });
1290
- penMode: boolean;
1291
- penDetected: boolean;
1292
- exportBackground: boolean;
1293
- exportEmbedScene: boolean;
1294
- exportWithDarkMode: boolean;
1295
- exportScale: number;
1296
- currentItemStrokeColor: string;
1297
- currentItemBackgroundColor: string;
1298
- currentItemFillStyle: import("../element/types").FillStyle;
1299
- currentItemStrokeWidth: number;
1300
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1301
- currentItemRoughness: number;
1302
- currentItemOpacity: number;
1303
- currentItemFontSize: number;
1304
- currentItemTextAlign: string;
1305
- currentItemStartArrowhead: Arrowhead | null;
1306
- currentItemEndArrowhead: Arrowhead | null;
1307
- currentItemRoundness: import("../element/types").StrokeRoundness;
1308
- viewBackgroundColor: string;
1309
- scrollX: number;
1310
- scrollY: number;
1311
- cursorButton: "up" | "down";
1312
- scrolledOutside: boolean;
1313
- name: string;
1314
- isResizing: boolean;
1315
- isRotating: boolean;
1316
- zoom: Readonly<{
1317
- value: import("../../src/types").NormalizedZoomValue;
1318
- }>;
1319
- openMenu: "canvas" | "shape" | null;
1320
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1321
- openSidebar: {
1322
- name: string;
1323
- tab?: string | undefined;
1324
- } | null;
1325
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1326
- defaultSidebarDockedPreference: boolean;
1327
- lastPointerDownWith: import("../element/types").PointerType;
1328
- selectedElementIds: Readonly<{
1329
- [id: string]: true;
1330
- }>;
1331
- previousSelectedElementIds: {
1332
- [id: string]: true;
1333
- };
1334
- selectedElementsAreBeingDragged: boolean;
1335
- shouldCacheIgnoreZoom: boolean;
1336
- toast: {
1337
- message: string;
1338
- closable?: boolean | undefined;
1339
- duration?: number | undefined;
1340
- } | null;
1341
- zenModeEnabled: boolean;
1342
- theme: import("../element/types").Theme;
1343
- gridSize: number | null;
1344
- previousGridSize: number | null;
1345
- viewModeEnabled: boolean;
1346
- selectedGroupIds: {
1347
- [groupId: string]: boolean;
1348
- };
1349
- editingGroupId: string | null;
1350
- width: number;
1351
- height: number;
1352
- offsetTop: number;
1353
- offsetLeft: number;
1354
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1355
- collaborators: Map<string, import("../../src/types").Collaborator>;
1356
- showStats: boolean;
1357
- currentChartType: import("../element/types").ChartType;
1358
- pasteDialog: {
1359
- shown: false;
1360
- data: null;
1361
- } | {
1362
- shown: true;
1363
- data: import("../charts").Spreadsheet;
1364
- };
1365
- pendingImageElementId: string | null;
1366
- showHyperlinkPopup: false | "editor" | "info";
1367
- linkOpacity: number;
1368
- trayModeEnabled: boolean;
1369
- colorPalette?: {
1370
- canvasBackground: import("../colors").ColorPaletteCustom;
1371
- elementBackground: import("../colors").ColorPaletteCustom;
1372
- elementStroke: import("../colors").ColorPaletteCustom;
1373
- topPicks: {
1374
- canvasBackground: [string, string, string, string, string];
1375
- elementStroke: [string, string, string, string, string];
1376
- elementBackground: [string, string, string, string, string];
1377
- };
1378
- } | undefined;
1379
- allowWheelZoom?: boolean | undefined;
1380
- allowPinchZoom?: boolean | undefined;
1381
- pinnedScripts?: string[] | undefined;
1382
- customPens?: any[] | undefined;
1383
- currentStrokeOptions?: any;
1384
- resetCustomPen?: any;
1385
- gridColor: string;
1386
- dynamicStyle: string;
1387
- invertBindingBehaviour: boolean;
1388
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1389
- };
1390
- commitToHistory: true;
1391
- };
1392
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1393
- } & {
1394
- keyTest?: undefined;
1395
- };
1396
- export declare const actionChangeTextAlign: {
1397
- name: "changeTextAlign";
1398
- trackEvent: false;
1399
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1400
- elements: ExcalidrawElement[];
1401
- appState: {
1402
- currentItemTextAlign: any;
1403
- contextMenu: {
1404
- items: import("../components/ContextMenu").ContextMenuItems;
1405
- top: number;
1406
- left: number;
1407
- } | null;
1408
- showWelcomeScreen: boolean;
1409
- isLoading: boolean;
1410
- errorMessage: import("react").ReactNode;
1411
- activeEmbeddable: {
1412
- element: import("../element/types").NonDeletedExcalidrawElement;
1413
- state: "active" | "hover";
1414
- } | null;
1415
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1416
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1417
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1418
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1419
- isBindingEnabled: boolean;
1420
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1421
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1422
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1423
- frameRendering: {
1424
- enabled: boolean;
1425
- name: boolean;
1426
- outline: boolean;
1427
- clip: boolean;
1428
- };
1429
- editingFrame: string | null;
1430
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1431
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1432
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1433
- activeTool: {
1434
- lastActiveTool: import("../../src/types").LastActiveTool;
1435
- locked: boolean;
1436
- } & ({
1437
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1438
- customType: null;
1439
- } | {
1440
- type: "custom";
1441
- customType: string;
1442
- });
1443
- penMode: boolean;
1444
- penDetected: boolean;
1445
- exportBackground: boolean;
1446
- exportEmbedScene: boolean;
1447
- exportWithDarkMode: boolean;
1448
- exportScale: number;
1449
- currentItemStrokeColor: string;
1450
- currentItemBackgroundColor: string;
1451
- currentItemFillStyle: import("../element/types").FillStyle;
1452
- currentItemStrokeWidth: number;
1453
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1454
- currentItemRoughness: number;
1455
- currentItemOpacity: number;
1456
- currentItemFontFamily: number;
1457
- currentItemFontSize: number;
1458
- currentItemStartArrowhead: Arrowhead | null;
1459
- currentItemEndArrowhead: Arrowhead | null;
1460
- currentItemRoundness: import("../element/types").StrokeRoundness;
1461
- viewBackgroundColor: string;
1462
- scrollX: number;
1463
- scrollY: number;
1464
- cursorButton: "up" | "down";
1465
- scrolledOutside: boolean;
1466
- name: string;
1467
- isResizing: boolean;
1468
- isRotating: boolean;
1469
- zoom: Readonly<{
1470
- value: import("../../src/types").NormalizedZoomValue;
1471
- }>;
1472
- openMenu: "canvas" | "shape" | null;
1473
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1474
- openSidebar: {
1475
- name: string;
1476
- tab?: string | undefined;
1477
- } | null;
1478
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1479
- defaultSidebarDockedPreference: boolean;
1480
- lastPointerDownWith: import("../element/types").PointerType;
1481
- selectedElementIds: Readonly<{
1482
- [id: string]: true;
1483
- }>;
1484
- previousSelectedElementIds: {
1485
- [id: string]: true;
1486
- };
1487
- selectedElementsAreBeingDragged: boolean;
1488
- shouldCacheIgnoreZoom: boolean;
1489
- toast: {
1490
- message: string;
1491
- closable?: boolean | undefined;
1492
- duration?: number | undefined;
1493
- } | null;
1494
- zenModeEnabled: boolean;
1495
- theme: import("../element/types").Theme;
1496
- gridSize: number | null;
1497
- previousGridSize: number | null;
1498
- viewModeEnabled: boolean;
1499
- selectedGroupIds: {
1500
- [groupId: string]: boolean;
1501
- };
1502
- editingGroupId: string | null;
1503
- width: number;
1504
- height: number;
1505
- offsetTop: number;
1506
- offsetLeft: number;
1507
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1508
- collaborators: Map<string, import("../../src/types").Collaborator>;
1509
- showStats: boolean;
1510
- currentChartType: import("../element/types").ChartType;
1511
- pasteDialog: {
1512
- shown: false;
1513
- data: null;
1514
- } | {
1515
- shown: true;
1516
- data: import("../charts").Spreadsheet;
1517
- };
1518
- pendingImageElementId: string | null;
1519
- showHyperlinkPopup: false | "editor" | "info";
1520
- linkOpacity: number;
1521
- trayModeEnabled: boolean;
1522
- colorPalette?: {
1523
- canvasBackground: import("../colors").ColorPaletteCustom;
1524
- elementBackground: import("../colors").ColorPaletteCustom;
1525
- elementStroke: import("../colors").ColorPaletteCustom;
1526
- topPicks: {
1527
- canvasBackground: [string, string, string, string, string];
1528
- elementStroke: [string, string, string, string, string];
1529
- elementBackground: [string, string, string, string, string];
1530
- };
1531
- } | undefined;
1532
- allowWheelZoom?: boolean | undefined;
1533
- allowPinchZoom?: boolean | undefined;
1534
- pinnedScripts?: string[] | undefined;
1535
- customPens?: any[] | undefined;
1536
- currentStrokeOptions?: any;
1537
- resetCustomPen?: any;
1538
- gridColor: string;
1539
- dynamicStyle: string;
1540
- invertBindingBehaviour: boolean;
1541
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1542
- };
1543
- commitToHistory: true;
1544
- };
1545
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1546
- } & {
1547
- keyTest?: undefined;
1548
- };
1549
- export declare const actionChangeVerticalAlign: {
1550
- name: "changeVerticalAlign";
1551
- trackEvent: {
1552
- category: "element";
1553
- };
1554
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1555
- elements: ExcalidrawElement[];
1556
- appState: {
1557
- contextMenu: {
1558
- items: import("../components/ContextMenu").ContextMenuItems;
1559
- top: number;
1560
- left: number;
1561
- } | null;
1562
- showWelcomeScreen: boolean;
1563
- isLoading: boolean;
1564
- errorMessage: import("react").ReactNode;
1565
- activeEmbeddable: {
1566
- element: import("../element/types").NonDeletedExcalidrawElement;
1567
- state: "active" | "hover";
1568
- } | null;
1569
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1570
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1571
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1572
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1573
- isBindingEnabled: boolean;
1574
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1575
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1576
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1577
- frameRendering: {
1578
- enabled: boolean;
1579
- name: boolean;
1580
- outline: boolean;
1581
- clip: boolean;
1582
- };
1583
- editingFrame: string | null;
1584
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1585
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1586
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1587
- activeTool: {
1588
- lastActiveTool: import("../../src/types").LastActiveTool;
1589
- locked: boolean;
1590
- } & ({
1591
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1592
- customType: null;
1593
- } | {
1594
- type: "custom";
1595
- customType: string;
1596
- });
1597
- penMode: boolean;
1598
- penDetected: boolean;
1599
- exportBackground: boolean;
1600
- exportEmbedScene: boolean;
1601
- exportWithDarkMode: boolean;
1602
- exportScale: number;
1603
- currentItemStrokeColor: string;
1604
- currentItemBackgroundColor: string;
1605
- currentItemFillStyle: import("../element/types").FillStyle;
1606
- currentItemStrokeWidth: number;
1607
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1608
- currentItemRoughness: number;
1609
- currentItemOpacity: number;
1610
- currentItemFontFamily: number;
1611
- currentItemFontSize: number;
1612
- currentItemTextAlign: string;
1613
- currentItemStartArrowhead: Arrowhead | null;
1614
- currentItemEndArrowhead: Arrowhead | null;
1615
- currentItemRoundness: import("../element/types").StrokeRoundness;
1616
- viewBackgroundColor: string;
1617
- scrollX: number;
1618
- scrollY: number;
1619
- cursorButton: "up" | "down";
1620
- scrolledOutside: boolean;
1621
- name: string;
1622
- isResizing: boolean;
1623
- isRotating: boolean;
1624
- zoom: Readonly<{
1625
- value: import("../../src/types").NormalizedZoomValue;
1626
- }>;
1627
- openMenu: "canvas" | "shape" | null;
1628
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1629
- openSidebar: {
1630
- name: string;
1631
- tab?: string | undefined;
1632
- } | null;
1633
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1634
- defaultSidebarDockedPreference: boolean;
1635
- lastPointerDownWith: import("../element/types").PointerType;
1636
- selectedElementIds: Readonly<{
1637
- [id: string]: true;
1638
- }>;
1639
- previousSelectedElementIds: {
1640
- [id: string]: true;
1641
- };
1642
- selectedElementsAreBeingDragged: boolean;
1643
- shouldCacheIgnoreZoom: boolean;
1644
- toast: {
1645
- message: string;
1646
- closable?: boolean | undefined;
1647
- duration?: number | undefined;
1648
- } | null;
1649
- zenModeEnabled: boolean;
1650
- theme: import("../element/types").Theme;
1651
- gridSize: number | null;
1652
- previousGridSize: number | null;
1653
- viewModeEnabled: boolean;
1654
- selectedGroupIds: {
1655
- [groupId: string]: boolean;
1656
- };
1657
- editingGroupId: string | null;
1658
- width: number;
1659
- height: number;
1660
- offsetTop: number;
1661
- offsetLeft: number;
1662
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1663
- collaborators: Map<string, import("../../src/types").Collaborator>;
1664
- showStats: boolean;
1665
- currentChartType: import("../element/types").ChartType;
1666
- pasteDialog: {
1667
- shown: false;
1668
- data: null;
1669
- } | {
1670
- shown: true;
1671
- data: import("../charts").Spreadsheet;
1672
- };
1673
- pendingImageElementId: string | null;
1674
- showHyperlinkPopup: false | "editor" | "info";
1675
- linkOpacity: number;
1676
- trayModeEnabled: boolean;
1677
- colorPalette?: {
1678
- canvasBackground: import("../colors").ColorPaletteCustom;
1679
- elementBackground: import("../colors").ColorPaletteCustom;
1680
- elementStroke: import("../colors").ColorPaletteCustom;
1681
- topPicks: {
1682
- canvasBackground: [string, string, string, string, string];
1683
- elementStroke: [string, string, string, string, string];
1684
- elementBackground: [string, string, string, string, string];
1685
- };
1686
- } | undefined;
1687
- allowWheelZoom?: boolean | undefined;
1688
- allowPinchZoom?: boolean | undefined;
1689
- pinnedScripts?: string[] | undefined;
1690
- customPens?: any[] | undefined;
1691
- currentStrokeOptions?: any;
1692
- resetCustomPen?: any;
1693
- gridColor: string;
1694
- dynamicStyle: string;
1695
- invertBindingBehaviour: boolean;
1696
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1697
- };
1698
- commitToHistory: true;
1699
- };
1700
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1701
- } & {
1702
- keyTest?: undefined;
1703
- };
1704
- export declare const actionChangeRoundness: {
1705
- name: "changeRoundness";
1706
- trackEvent: false;
1707
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1708
- elements: ExcalidrawElement[];
1709
- appState: {
1710
- currentItemRoundness: any;
1711
- contextMenu: {
1712
- items: import("../components/ContextMenu").ContextMenuItems;
1713
- top: number;
1714
- left: number;
1715
- } | null;
1716
- showWelcomeScreen: boolean;
1717
- isLoading: boolean;
1718
- errorMessage: import("react").ReactNode;
1719
- activeEmbeddable: {
1720
- element: import("../element/types").NonDeletedExcalidrawElement;
1721
- state: "active" | "hover";
1722
- } | null;
1723
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1724
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1725
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1726
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1727
- isBindingEnabled: boolean;
1728
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1729
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1730
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1731
- frameRendering: {
1732
- enabled: boolean;
1733
- name: boolean;
1734
- outline: boolean;
1735
- clip: boolean;
1736
- };
1737
- editingFrame: string | null;
1738
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1739
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1740
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1741
- activeTool: {
1742
- lastActiveTool: import("../../src/types").LastActiveTool;
1743
- locked: boolean;
1744
- } & ({
1745
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1746
- customType: null;
1747
- } | {
1748
- type: "custom";
1749
- customType: string;
1750
- });
1751
- penMode: boolean;
1752
- penDetected: boolean;
1753
- exportBackground: boolean;
1754
- exportEmbedScene: boolean;
1755
- exportWithDarkMode: boolean;
1756
- exportScale: number;
1757
- currentItemStrokeColor: string;
1758
- currentItemBackgroundColor: string;
1759
- currentItemFillStyle: import("../element/types").FillStyle;
1760
- currentItemStrokeWidth: number;
1761
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1762
- currentItemRoughness: number;
1763
- currentItemOpacity: number;
1764
- currentItemFontFamily: number;
1765
- currentItemFontSize: number;
1766
- currentItemTextAlign: string;
1767
- currentItemStartArrowhead: Arrowhead | null;
1768
- currentItemEndArrowhead: Arrowhead | null;
1769
- viewBackgroundColor: string;
1770
- scrollX: number;
1771
- scrollY: number;
1772
- cursorButton: "up" | "down";
1773
- scrolledOutside: boolean;
1774
- name: string;
1775
- isResizing: boolean;
1776
- isRotating: boolean;
1777
- zoom: Readonly<{
1778
- value: import("../../src/types").NormalizedZoomValue;
1779
- }>;
1780
- openMenu: "canvas" | "shape" | null;
1781
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1782
- openSidebar: {
1783
- name: string;
1784
- tab?: string | undefined;
1785
- } | null;
1786
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1787
- defaultSidebarDockedPreference: boolean;
1788
- lastPointerDownWith: import("../element/types").PointerType;
1789
- selectedElementIds: Readonly<{
1790
- [id: string]: true;
1791
- }>;
1792
- previousSelectedElementIds: {
1793
- [id: string]: true;
1794
- };
1795
- selectedElementsAreBeingDragged: boolean;
1796
- shouldCacheIgnoreZoom: boolean;
1797
- toast: {
1798
- message: string;
1799
- closable?: boolean | undefined;
1800
- duration?: number | undefined;
1801
- } | null;
1802
- zenModeEnabled: boolean;
1803
- theme: import("../element/types").Theme;
1804
- gridSize: number | null;
1805
- previousGridSize: number | null;
1806
- viewModeEnabled: boolean;
1807
- selectedGroupIds: {
1808
- [groupId: string]: boolean;
1809
- };
1810
- editingGroupId: string | null;
1811
- width: number;
1812
- height: number;
1813
- offsetTop: number;
1814
- offsetLeft: number;
1815
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1816
- collaborators: Map<string, import("../../src/types").Collaborator>;
1817
- showStats: boolean;
1818
- currentChartType: import("../element/types").ChartType;
1819
- pasteDialog: {
1820
- shown: false;
1821
- data: null;
1822
- } | {
1823
- shown: true;
1824
- data: import("../charts").Spreadsheet;
1825
- };
1826
- pendingImageElementId: string | null;
1827
- showHyperlinkPopup: false | "editor" | "info";
1828
- linkOpacity: number;
1829
- trayModeEnabled: boolean;
1830
- colorPalette?: {
1831
- canvasBackground: import("../colors").ColorPaletteCustom;
1832
- elementBackground: import("../colors").ColorPaletteCustom;
1833
- elementStroke: import("../colors").ColorPaletteCustom;
1834
- topPicks: {
1835
- canvasBackground: [string, string, string, string, string];
1836
- elementStroke: [string, string, string, string, string];
1837
- elementBackground: [string, string, string, string, string];
1838
- };
1839
- } | undefined;
1840
- allowWheelZoom?: boolean | undefined;
1841
- allowPinchZoom?: boolean | undefined;
1842
- pinnedScripts?: string[] | undefined;
1843
- customPens?: any[] | undefined;
1844
- currentStrokeOptions?: any;
1845
- resetCustomPen?: any;
1846
- gridColor: string;
1847
- dynamicStyle: string;
1848
- invertBindingBehaviour: boolean;
1849
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1850
- };
1851
- commitToHistory: true;
1852
- };
1853
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1854
- } & {
1855
- keyTest?: undefined;
1856
- };
1857
- export declare const actionChangeArrowhead: {
1858
- name: "changeArrowhead";
1859
- trackEvent: false;
1860
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: {
1861
- position: "start" | "end";
1862
- type: Arrowhead;
1863
- }) => {
1864
- elements: ExcalidrawElement[];
1865
- appState: {
1866
- contextMenu: {
1867
- items: import("../components/ContextMenu").ContextMenuItems;
1868
- top: number;
1869
- left: number;
1870
- } | null;
1871
- showWelcomeScreen: boolean;
1872
- isLoading: boolean;
1873
- errorMessage: import("react").ReactNode;
1874
- activeEmbeddable: {
1875
- element: import("../element/types").NonDeletedExcalidrawElement;
1876
- state: "active" | "hover";
1877
- } | null;
1878
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1879
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1880
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1881
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1882
- isBindingEnabled: boolean;
1883
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1884
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1885
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1886
- frameRendering: {
1887
- enabled: boolean;
1888
- name: boolean;
1889
- outline: boolean;
1890
- clip: boolean;
1891
- };
1892
- editingFrame: string | null;
1893
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1894
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1895
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1896
- activeTool: {
1897
- lastActiveTool: import("../../src/types").LastActiveTool;
1898
- locked: boolean;
1899
- } & ({
1900
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1901
- customType: null;
1902
- } | {
1903
- type: "custom";
1904
- customType: string;
1905
- });
1906
- penMode: boolean;
1907
- penDetected: boolean;
1908
- exportBackground: boolean;
1909
- exportEmbedScene: boolean;
1910
- exportWithDarkMode: boolean;
1911
- exportScale: number;
1912
- currentItemStrokeColor: string;
1913
- currentItemBackgroundColor: string;
1914
- currentItemFillStyle: import("../element/types").FillStyle;
1915
- currentItemStrokeWidth: number;
1916
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1917
- currentItemRoughness: number;
1918
- currentItemOpacity: number;
1919
- currentItemFontFamily: number;
1920
- currentItemFontSize: number;
1921
- currentItemTextAlign: string;
1922
- currentItemStartArrowhead: Arrowhead | null;
1923
- currentItemEndArrowhead: Arrowhead | null;
1924
- currentItemRoundness: import("../element/types").StrokeRoundness;
1925
- viewBackgroundColor: string;
1926
- scrollX: number;
1927
- scrollY: number;
1928
- cursorButton: "up" | "down";
1929
- scrolledOutside: boolean;
1930
- name: string;
1931
- isResizing: boolean;
1932
- isRotating: boolean;
1933
- zoom: Readonly<{
1934
- value: import("../../src/types").NormalizedZoomValue;
1935
- }>;
1936
- openMenu: "canvas" | "shape" | null;
1937
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1938
- openSidebar: {
1939
- name: string;
1940
- tab?: string | undefined;
1941
- } | null;
1942
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1943
- defaultSidebarDockedPreference: boolean;
1944
- lastPointerDownWith: import("../element/types").PointerType;
1945
- selectedElementIds: Readonly<{
1946
- [id: string]: true;
1947
- }>;
1948
- previousSelectedElementIds: {
1949
- [id: string]: true;
1950
- };
1951
- selectedElementsAreBeingDragged: boolean;
1952
- shouldCacheIgnoreZoom: boolean;
1953
- toast: {
1954
- message: string;
1955
- closable?: boolean | undefined;
1956
- duration?: number | undefined;
1957
- } | null;
1958
- zenModeEnabled: boolean;
1959
- theme: import("../element/types").Theme;
1960
- gridSize: number | null;
1961
- previousGridSize: number | null;
1962
- viewModeEnabled: boolean;
1963
- selectedGroupIds: {
1964
- [groupId: string]: boolean;
1965
- };
1966
- editingGroupId: string | null;
1967
- width: number;
1968
- height: number;
1969
- offsetTop: number;
1970
- offsetLeft: number;
1971
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1972
- collaborators: Map<string, import("../../src/types").Collaborator>;
1973
- showStats: boolean;
1974
- currentChartType: import("../element/types").ChartType;
1975
- pasteDialog: {
1976
- shown: false;
1977
- data: null;
1978
- } | {
1979
- shown: true;
1980
- data: import("../charts").Spreadsheet;
1981
- };
1982
- pendingImageElementId: string | null;
1983
- showHyperlinkPopup: false | "editor" | "info";
1984
- linkOpacity: number;
1985
- trayModeEnabled: boolean;
1986
- colorPalette?: {
1987
- canvasBackground: import("../colors").ColorPaletteCustom;
1988
- elementBackground: import("../colors").ColorPaletteCustom;
1989
- elementStroke: import("../colors").ColorPaletteCustom;
1990
- topPicks: {
1991
- canvasBackground: [string, string, string, string, string];
1992
- elementStroke: [string, string, string, string, string];
1993
- elementBackground: [string, string, string, string, string];
1994
- };
1995
- } | undefined;
1996
- allowWheelZoom?: boolean | undefined;
1997
- allowPinchZoom?: boolean | undefined;
1998
- pinnedScripts?: string[] | undefined;
1999
- customPens?: any[] | undefined;
2000
- currentStrokeOptions?: any;
2001
- resetCustomPen?: any;
2002
- gridColor: string;
2003
- dynamicStyle: string;
2004
- invertBindingBehaviour: boolean;
2005
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2006
- };
2007
- commitToHistory: true;
2008
- };
2009
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
2010
- } & {
2011
- keyTest?: undefined;
2012
- };
1
+ import { AppState } from "../../src/types";
2
+ import { Arrowhead, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
3
+ export declare const actionChangeStrokeColor: {
4
+ name: "changeStrokeColor";
5
+ trackEvent: false;
6
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
7
+ PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
8
+ } & {
9
+ keyTest?: undefined;
10
+ };
11
+ export declare const actionChangeBackgroundColor: {
12
+ name: "changeBackgroundColor";
13
+ trackEvent: false;
14
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
15
+ PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
16
+ } & {
17
+ keyTest?: undefined;
18
+ };
19
+ export declare const actionChangeFillStyle: {
20
+ name: "changeFillStyle";
21
+ trackEvent: false;
22
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: import("../../src/types").AppClassProperties) => {
23
+ elements: ExcalidrawElement[];
24
+ appState: {
25
+ currentItemFillStyle: any;
26
+ contextMenu: {
27
+ items: import("../components/ContextMenu").ContextMenuItems;
28
+ top: number;
29
+ left: number;
30
+ } | null;
31
+ showWelcomeScreen: boolean;
32
+ isLoading: boolean;
33
+ errorMessage: import("react").ReactNode;
34
+ activeEmbeddable: {
35
+ element: import("../element/types").NonDeletedExcalidrawElement;
36
+ state: "active" | "hover";
37
+ } | null;
38
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
39
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
40
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
41
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
42
+ isBindingEnabled: boolean;
43
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
44
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
45
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
46
+ frameRendering: {
47
+ enabled: boolean;
48
+ name: boolean;
49
+ outline: boolean;
50
+ clip: boolean;
51
+ };
52
+ editingFrame: string | null;
53
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
54
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
55
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
56
+ activeTool: {
57
+ lastActiveTool: import("../../src/types").LastActiveTool;
58
+ locked: boolean;
59
+ } & ({
60
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
61
+ customType: null;
62
+ } | {
63
+ type: "custom";
64
+ customType: string;
65
+ });
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
+ currentItemRoundness: import("../element/types").StrokeRoundness;
84
+ viewBackgroundColor: string;
85
+ scrollX: number;
86
+ scrollY: number;
87
+ cursorButton: "up" | "down";
88
+ scrolledOutside: boolean;
89
+ name: string;
90
+ isResizing: boolean;
91
+ isRotating: boolean;
92
+ zoom: Readonly<{
93
+ value: import("../../src/types").NormalizedZoomValue;
94
+ }>;
95
+ openMenu: "canvas" | "shape" | null;
96
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
97
+ openSidebar: {
98
+ name: string;
99
+ tab?: string | undefined;
100
+ } | null;
101
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
102
+ defaultSidebarDockedPreference: boolean;
103
+ lastPointerDownWith: import("../element/types").PointerType;
104
+ selectedElementIds: Readonly<{
105
+ [id: string]: true;
106
+ }>;
107
+ previousSelectedElementIds: {
108
+ [id: string]: true;
109
+ };
110
+ selectedElementsAreBeingDragged: boolean;
111
+ shouldCacheIgnoreZoom: boolean;
112
+ toast: {
113
+ message: string;
114
+ closable?: boolean | undefined;
115
+ duration?: number | undefined;
116
+ } | null;
117
+ zenModeEnabled: boolean;
118
+ theme: import("../element/types").Theme;
119
+ gridSize: number | null;
120
+ previousGridSize: number | null;
121
+ viewModeEnabled: boolean;
122
+ selectedGroupIds: {
123
+ [groupId: string]: boolean;
124
+ };
125
+ editingGroupId: string | null;
126
+ width: number;
127
+ height: number;
128
+ offsetTop: number;
129
+ offsetLeft: number;
130
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
131
+ collaborators: Map<string, import("../../src/types").Collaborator>;
132
+ showStats: boolean;
133
+ currentChartType: import("../element/types").ChartType;
134
+ pasteDialog: {
135
+ shown: false;
136
+ data: null;
137
+ } | {
138
+ shown: true;
139
+ data: import("../charts").Spreadsheet;
140
+ };
141
+ pendingImageElementId: string | null;
142
+ showHyperlinkPopup: false | "editor" | "info";
143
+ linkOpacity: number;
144
+ trayModeEnabled: boolean;
145
+ colorPalette?: {
146
+ canvasBackground: import("../colors").ColorPaletteCustom;
147
+ elementBackground: import("../colors").ColorPaletteCustom;
148
+ elementStroke: import("../colors").ColorPaletteCustom;
149
+ topPicks: {
150
+ canvasBackground: [string, string, string, string, string];
151
+ elementStroke: [string, string, string, string, string];
152
+ elementBackground: [string, string, string, string, string];
153
+ };
154
+ } | undefined;
155
+ allowWheelZoom?: boolean | undefined;
156
+ allowPinchZoom?: boolean | undefined;
157
+ pinnedScripts?: string[] | undefined;
158
+ customPens?: any[] | undefined;
159
+ currentStrokeOptions?: any;
160
+ resetCustomPen?: any;
161
+ gridColor: {
162
+ Bold: string;
163
+ Regular: string;
164
+ };
165
+ dynamicStyle: string;
166
+ invertBindingBehaviour: boolean;
167
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
168
+ };
169
+ commitToHistory: true;
170
+ };
171
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
172
+ } & {
173
+ keyTest?: undefined;
174
+ };
175
+ export declare const actionChangeStrokeWidth: {
176
+ name: "changeStrokeWidth";
177
+ trackEvent: false;
178
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
179
+ elements: ExcalidrawElement[];
180
+ appState: {
181
+ currentItemStrokeWidth: any;
182
+ contextMenu: {
183
+ items: import("../components/ContextMenu").ContextMenuItems;
184
+ top: number;
185
+ left: number;
186
+ } | null;
187
+ showWelcomeScreen: boolean;
188
+ isLoading: boolean;
189
+ errorMessage: import("react").ReactNode;
190
+ activeEmbeddable: {
191
+ element: import("../element/types").NonDeletedExcalidrawElement;
192
+ state: "active" | "hover";
193
+ } | null;
194
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
195
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
196
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
197
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
198
+ isBindingEnabled: boolean;
199
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
200
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
201
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
202
+ frameRendering: {
203
+ enabled: boolean;
204
+ name: boolean;
205
+ outline: boolean;
206
+ clip: boolean;
207
+ };
208
+ editingFrame: string | null;
209
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
210
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
211
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
212
+ activeTool: {
213
+ lastActiveTool: import("../../src/types").LastActiveTool;
214
+ locked: boolean;
215
+ } & ({
216
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
217
+ customType: null;
218
+ } | {
219
+ type: "custom";
220
+ customType: string;
221
+ });
222
+ penMode: boolean;
223
+ penDetected: boolean;
224
+ exportBackground: boolean;
225
+ exportEmbedScene: boolean;
226
+ exportWithDarkMode: boolean;
227
+ exportScale: number;
228
+ currentItemStrokeColor: string;
229
+ currentItemBackgroundColor: string;
230
+ currentItemFillStyle: import("../element/types").FillStyle;
231
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
232
+ currentItemRoughness: number;
233
+ currentItemOpacity: number;
234
+ currentItemFontFamily: number;
235
+ currentItemFontSize: number;
236
+ currentItemTextAlign: string;
237
+ currentItemStartArrowhead: Arrowhead | null;
238
+ currentItemEndArrowhead: Arrowhead | null;
239
+ currentItemRoundness: import("../element/types").StrokeRoundness;
240
+ viewBackgroundColor: string;
241
+ scrollX: number;
242
+ scrollY: number;
243
+ cursorButton: "up" | "down";
244
+ scrolledOutside: boolean;
245
+ name: string;
246
+ isResizing: boolean;
247
+ isRotating: boolean;
248
+ zoom: Readonly<{
249
+ value: import("../../src/types").NormalizedZoomValue;
250
+ }>;
251
+ openMenu: "canvas" | "shape" | null;
252
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
253
+ openSidebar: {
254
+ name: string;
255
+ tab?: string | undefined;
256
+ } | null;
257
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
258
+ defaultSidebarDockedPreference: boolean;
259
+ lastPointerDownWith: import("../element/types").PointerType;
260
+ selectedElementIds: Readonly<{
261
+ [id: string]: true;
262
+ }>;
263
+ previousSelectedElementIds: {
264
+ [id: string]: true;
265
+ };
266
+ selectedElementsAreBeingDragged: boolean;
267
+ shouldCacheIgnoreZoom: boolean;
268
+ toast: {
269
+ message: string;
270
+ closable?: boolean | undefined;
271
+ duration?: number | undefined;
272
+ } | null;
273
+ zenModeEnabled: boolean;
274
+ theme: import("../element/types").Theme;
275
+ gridSize: number | null;
276
+ previousGridSize: number | null;
277
+ viewModeEnabled: boolean;
278
+ selectedGroupIds: {
279
+ [groupId: string]: boolean;
280
+ };
281
+ editingGroupId: string | null;
282
+ width: number;
283
+ height: number;
284
+ offsetTop: number;
285
+ offsetLeft: number;
286
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
287
+ collaborators: Map<string, import("../../src/types").Collaborator>;
288
+ showStats: boolean;
289
+ currentChartType: import("../element/types").ChartType;
290
+ pasteDialog: {
291
+ shown: false;
292
+ data: null;
293
+ } | {
294
+ shown: true;
295
+ data: import("../charts").Spreadsheet;
296
+ };
297
+ pendingImageElementId: string | null;
298
+ showHyperlinkPopup: false | "editor" | "info";
299
+ linkOpacity: number;
300
+ trayModeEnabled: boolean;
301
+ colorPalette?: {
302
+ canvasBackground: import("../colors").ColorPaletteCustom;
303
+ elementBackground: import("../colors").ColorPaletteCustom;
304
+ elementStroke: import("../colors").ColorPaletteCustom;
305
+ topPicks: {
306
+ canvasBackground: [string, string, string, string, string];
307
+ elementStroke: [string, string, string, string, string];
308
+ elementBackground: [string, string, string, string, string];
309
+ };
310
+ } | undefined;
311
+ allowWheelZoom?: boolean | undefined;
312
+ allowPinchZoom?: boolean | undefined;
313
+ pinnedScripts?: string[] | undefined;
314
+ customPens?: any[] | undefined;
315
+ currentStrokeOptions?: any;
316
+ resetCustomPen?: any;
317
+ gridColor: {
318
+ Bold: string;
319
+ Regular: string;
320
+ };
321
+ dynamicStyle: string;
322
+ invertBindingBehaviour: boolean;
323
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
324
+ };
325
+ commitToHistory: true;
326
+ };
327
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
328
+ } & {
329
+ keyTest?: undefined;
330
+ };
331
+ export declare const actionChangeSloppiness: {
332
+ name: "changeSloppiness";
333
+ trackEvent: false;
334
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
335
+ elements: ExcalidrawElement[];
336
+ appState: {
337
+ currentItemRoughness: any;
338
+ contextMenu: {
339
+ items: import("../components/ContextMenu").ContextMenuItems;
340
+ top: number;
341
+ left: number;
342
+ } | null;
343
+ showWelcomeScreen: boolean;
344
+ isLoading: boolean;
345
+ errorMessage: import("react").ReactNode;
346
+ activeEmbeddable: {
347
+ element: import("../element/types").NonDeletedExcalidrawElement;
348
+ state: "active" | "hover";
349
+ } | null;
350
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
351
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
352
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
353
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
354
+ isBindingEnabled: boolean;
355
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
356
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
357
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
358
+ frameRendering: {
359
+ enabled: boolean;
360
+ name: boolean;
361
+ outline: boolean;
362
+ clip: boolean;
363
+ };
364
+ editingFrame: string | null;
365
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
366
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
367
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
368
+ activeTool: {
369
+ lastActiveTool: import("../../src/types").LastActiveTool;
370
+ locked: boolean;
371
+ } & ({
372
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
373
+ customType: null;
374
+ } | {
375
+ type: "custom";
376
+ customType: string;
377
+ });
378
+ penMode: boolean;
379
+ penDetected: boolean;
380
+ exportBackground: boolean;
381
+ exportEmbedScene: boolean;
382
+ exportWithDarkMode: boolean;
383
+ exportScale: number;
384
+ currentItemStrokeColor: string;
385
+ currentItemBackgroundColor: string;
386
+ currentItemFillStyle: import("../element/types").FillStyle;
387
+ currentItemStrokeWidth: number;
388
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
389
+ currentItemOpacity: number;
390
+ currentItemFontFamily: number;
391
+ currentItemFontSize: number;
392
+ currentItemTextAlign: string;
393
+ currentItemStartArrowhead: Arrowhead | null;
394
+ currentItemEndArrowhead: Arrowhead | null;
395
+ currentItemRoundness: import("../element/types").StrokeRoundness;
396
+ viewBackgroundColor: string;
397
+ scrollX: number;
398
+ scrollY: number;
399
+ cursorButton: "up" | "down";
400
+ scrolledOutside: boolean;
401
+ name: string;
402
+ isResizing: boolean;
403
+ isRotating: boolean;
404
+ zoom: Readonly<{
405
+ value: import("../../src/types").NormalizedZoomValue;
406
+ }>;
407
+ openMenu: "canvas" | "shape" | null;
408
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
409
+ openSidebar: {
410
+ name: string;
411
+ tab?: string | undefined;
412
+ } | null;
413
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
414
+ defaultSidebarDockedPreference: boolean;
415
+ lastPointerDownWith: import("../element/types").PointerType;
416
+ selectedElementIds: Readonly<{
417
+ [id: string]: true;
418
+ }>;
419
+ previousSelectedElementIds: {
420
+ [id: string]: true;
421
+ };
422
+ selectedElementsAreBeingDragged: boolean;
423
+ shouldCacheIgnoreZoom: boolean;
424
+ toast: {
425
+ message: string;
426
+ closable?: boolean | undefined;
427
+ duration?: number | undefined;
428
+ } | null;
429
+ zenModeEnabled: boolean;
430
+ theme: import("../element/types").Theme;
431
+ gridSize: number | null;
432
+ previousGridSize: number | null;
433
+ viewModeEnabled: boolean;
434
+ selectedGroupIds: {
435
+ [groupId: string]: boolean;
436
+ };
437
+ editingGroupId: string | null;
438
+ width: number;
439
+ height: number;
440
+ offsetTop: number;
441
+ offsetLeft: number;
442
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
443
+ collaborators: Map<string, import("../../src/types").Collaborator>;
444
+ showStats: boolean;
445
+ currentChartType: import("../element/types").ChartType;
446
+ pasteDialog: {
447
+ shown: false;
448
+ data: null;
449
+ } | {
450
+ shown: true;
451
+ data: import("../charts").Spreadsheet;
452
+ };
453
+ pendingImageElementId: string | null;
454
+ showHyperlinkPopup: false | "editor" | "info";
455
+ linkOpacity: number;
456
+ trayModeEnabled: boolean;
457
+ colorPalette?: {
458
+ canvasBackground: import("../colors").ColorPaletteCustom;
459
+ elementBackground: import("../colors").ColorPaletteCustom;
460
+ elementStroke: import("../colors").ColorPaletteCustom;
461
+ topPicks: {
462
+ canvasBackground: [string, string, string, string, string];
463
+ elementStroke: [string, string, string, string, string];
464
+ elementBackground: [string, string, string, string, string];
465
+ };
466
+ } | undefined;
467
+ allowWheelZoom?: boolean | undefined;
468
+ allowPinchZoom?: boolean | undefined;
469
+ pinnedScripts?: string[] | undefined;
470
+ customPens?: any[] | undefined;
471
+ currentStrokeOptions?: any;
472
+ resetCustomPen?: any;
473
+ gridColor: {
474
+ Bold: string;
475
+ Regular: string;
476
+ };
477
+ dynamicStyle: string;
478
+ invertBindingBehaviour: boolean;
479
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
480
+ };
481
+ commitToHistory: true;
482
+ };
483
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
484
+ } & {
485
+ keyTest?: undefined;
486
+ };
487
+ export declare const actionChangeStrokeStyle: {
488
+ name: "changeStrokeStyle";
489
+ trackEvent: false;
490
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
491
+ elements: ExcalidrawElement[];
492
+ appState: {
493
+ currentItemStrokeStyle: any;
494
+ contextMenu: {
495
+ items: import("../components/ContextMenu").ContextMenuItems;
496
+ top: number;
497
+ left: number;
498
+ } | null;
499
+ showWelcomeScreen: boolean;
500
+ isLoading: boolean;
501
+ errorMessage: import("react").ReactNode;
502
+ activeEmbeddable: {
503
+ element: import("../element/types").NonDeletedExcalidrawElement;
504
+ state: "active" | "hover";
505
+ } | null;
506
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
507
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
508
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
509
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
510
+ isBindingEnabled: boolean;
511
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
512
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
513
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
514
+ frameRendering: {
515
+ enabled: boolean;
516
+ name: boolean;
517
+ outline: boolean;
518
+ clip: boolean;
519
+ };
520
+ editingFrame: string | null;
521
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
522
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
523
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
524
+ activeTool: {
525
+ lastActiveTool: import("../../src/types").LastActiveTool;
526
+ locked: boolean;
527
+ } & ({
528
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
529
+ customType: null;
530
+ } | {
531
+ type: "custom";
532
+ customType: string;
533
+ });
534
+ penMode: boolean;
535
+ penDetected: boolean;
536
+ exportBackground: boolean;
537
+ exportEmbedScene: boolean;
538
+ exportWithDarkMode: boolean;
539
+ exportScale: number;
540
+ currentItemStrokeColor: string;
541
+ currentItemBackgroundColor: string;
542
+ currentItemFillStyle: import("../element/types").FillStyle;
543
+ currentItemStrokeWidth: number;
544
+ currentItemRoughness: number;
545
+ currentItemOpacity: number;
546
+ currentItemFontFamily: number;
547
+ currentItemFontSize: number;
548
+ currentItemTextAlign: string;
549
+ currentItemStartArrowhead: Arrowhead | null;
550
+ currentItemEndArrowhead: Arrowhead | null;
551
+ currentItemRoundness: import("../element/types").StrokeRoundness;
552
+ viewBackgroundColor: string;
553
+ scrollX: number;
554
+ scrollY: number;
555
+ cursorButton: "up" | "down";
556
+ scrolledOutside: boolean;
557
+ name: string;
558
+ isResizing: boolean;
559
+ isRotating: boolean;
560
+ zoom: Readonly<{
561
+ value: import("../../src/types").NormalizedZoomValue;
562
+ }>;
563
+ openMenu: "canvas" | "shape" | null;
564
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
565
+ openSidebar: {
566
+ name: string;
567
+ tab?: string | undefined;
568
+ } | null;
569
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
570
+ defaultSidebarDockedPreference: boolean;
571
+ lastPointerDownWith: import("../element/types").PointerType;
572
+ selectedElementIds: Readonly<{
573
+ [id: string]: true;
574
+ }>;
575
+ previousSelectedElementIds: {
576
+ [id: string]: true;
577
+ };
578
+ selectedElementsAreBeingDragged: boolean;
579
+ shouldCacheIgnoreZoom: boolean;
580
+ toast: {
581
+ message: string;
582
+ closable?: boolean | undefined;
583
+ duration?: number | undefined;
584
+ } | null;
585
+ zenModeEnabled: boolean;
586
+ theme: import("../element/types").Theme;
587
+ gridSize: number | null;
588
+ previousGridSize: number | null;
589
+ viewModeEnabled: boolean;
590
+ selectedGroupIds: {
591
+ [groupId: string]: boolean;
592
+ };
593
+ editingGroupId: string | null;
594
+ width: number;
595
+ height: number;
596
+ offsetTop: number;
597
+ offsetLeft: number;
598
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
599
+ collaborators: Map<string, import("../../src/types").Collaborator>;
600
+ showStats: boolean;
601
+ currentChartType: import("../element/types").ChartType;
602
+ pasteDialog: {
603
+ shown: false;
604
+ data: null;
605
+ } | {
606
+ shown: true;
607
+ data: import("../charts").Spreadsheet;
608
+ };
609
+ pendingImageElementId: string | null;
610
+ showHyperlinkPopup: false | "editor" | "info";
611
+ linkOpacity: number;
612
+ trayModeEnabled: boolean;
613
+ colorPalette?: {
614
+ canvasBackground: import("../colors").ColorPaletteCustom;
615
+ elementBackground: import("../colors").ColorPaletteCustom;
616
+ elementStroke: import("../colors").ColorPaletteCustom;
617
+ topPicks: {
618
+ canvasBackground: [string, string, string, string, string];
619
+ elementStroke: [string, string, string, string, string];
620
+ elementBackground: [string, string, string, string, string];
621
+ };
622
+ } | undefined;
623
+ allowWheelZoom?: boolean | undefined;
624
+ allowPinchZoom?: boolean | undefined;
625
+ pinnedScripts?: string[] | undefined;
626
+ customPens?: any[] | undefined;
627
+ currentStrokeOptions?: any;
628
+ resetCustomPen?: any;
629
+ gridColor: {
630
+ Bold: string;
631
+ Regular: string;
632
+ };
633
+ dynamicStyle: string;
634
+ invertBindingBehaviour: boolean;
635
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
636
+ };
637
+ commitToHistory: true;
638
+ };
639
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
640
+ } & {
641
+ keyTest?: undefined;
642
+ };
643
+ export declare const actionChangeOpacity: {
644
+ name: "changeOpacity";
645
+ trackEvent: false;
646
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
647
+ elements: ExcalidrawElement[];
648
+ appState: {
649
+ currentItemOpacity: any;
650
+ contextMenu: {
651
+ items: import("../components/ContextMenu").ContextMenuItems;
652
+ top: number;
653
+ left: number;
654
+ } | null;
655
+ showWelcomeScreen: boolean;
656
+ isLoading: boolean;
657
+ errorMessage: import("react").ReactNode;
658
+ activeEmbeddable: {
659
+ element: import("../element/types").NonDeletedExcalidrawElement;
660
+ state: "active" | "hover";
661
+ } | null;
662
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
663
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
664
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
665
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
666
+ isBindingEnabled: boolean;
667
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
668
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
669
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
670
+ frameRendering: {
671
+ enabled: boolean;
672
+ name: boolean;
673
+ outline: boolean;
674
+ clip: boolean;
675
+ };
676
+ editingFrame: string | null;
677
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
678
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
679
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
680
+ activeTool: {
681
+ lastActiveTool: import("../../src/types").LastActiveTool;
682
+ locked: boolean;
683
+ } & ({
684
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
685
+ customType: null;
686
+ } | {
687
+ type: "custom";
688
+ customType: string;
689
+ });
690
+ penMode: boolean;
691
+ penDetected: boolean;
692
+ exportBackground: boolean;
693
+ exportEmbedScene: boolean;
694
+ exportWithDarkMode: boolean;
695
+ exportScale: number;
696
+ currentItemStrokeColor: string;
697
+ currentItemBackgroundColor: string;
698
+ currentItemFillStyle: import("../element/types").FillStyle;
699
+ currentItemStrokeWidth: number;
700
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
701
+ currentItemRoughness: number;
702
+ currentItemFontFamily: number;
703
+ currentItemFontSize: number;
704
+ currentItemTextAlign: string;
705
+ currentItemStartArrowhead: Arrowhead | null;
706
+ currentItemEndArrowhead: Arrowhead | null;
707
+ currentItemRoundness: import("../element/types").StrokeRoundness;
708
+ viewBackgroundColor: string;
709
+ scrollX: number;
710
+ scrollY: number;
711
+ cursorButton: "up" | "down";
712
+ scrolledOutside: boolean;
713
+ name: string;
714
+ isResizing: boolean;
715
+ isRotating: boolean;
716
+ zoom: Readonly<{
717
+ value: import("../../src/types").NormalizedZoomValue;
718
+ }>;
719
+ openMenu: "canvas" | "shape" | null;
720
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
721
+ openSidebar: {
722
+ name: string;
723
+ tab?: string | undefined;
724
+ } | null;
725
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
726
+ defaultSidebarDockedPreference: boolean;
727
+ lastPointerDownWith: import("../element/types").PointerType;
728
+ selectedElementIds: Readonly<{
729
+ [id: string]: true;
730
+ }>;
731
+ previousSelectedElementIds: {
732
+ [id: string]: true;
733
+ };
734
+ selectedElementsAreBeingDragged: boolean;
735
+ shouldCacheIgnoreZoom: boolean;
736
+ toast: {
737
+ message: string;
738
+ closable?: boolean | undefined;
739
+ duration?: number | undefined;
740
+ } | null;
741
+ zenModeEnabled: boolean;
742
+ theme: import("../element/types").Theme;
743
+ gridSize: number | null;
744
+ previousGridSize: number | null;
745
+ viewModeEnabled: boolean;
746
+ selectedGroupIds: {
747
+ [groupId: string]: boolean;
748
+ };
749
+ editingGroupId: string | null;
750
+ width: number;
751
+ height: number;
752
+ offsetTop: number;
753
+ offsetLeft: number;
754
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
755
+ collaborators: Map<string, import("../../src/types").Collaborator>;
756
+ showStats: boolean;
757
+ currentChartType: import("../element/types").ChartType;
758
+ pasteDialog: {
759
+ shown: false;
760
+ data: null;
761
+ } | {
762
+ shown: true;
763
+ data: import("../charts").Spreadsheet;
764
+ };
765
+ pendingImageElementId: string | null;
766
+ showHyperlinkPopup: false | "editor" | "info";
767
+ linkOpacity: number;
768
+ trayModeEnabled: boolean;
769
+ colorPalette?: {
770
+ canvasBackground: import("../colors").ColorPaletteCustom;
771
+ elementBackground: import("../colors").ColorPaletteCustom;
772
+ elementStroke: import("../colors").ColorPaletteCustom;
773
+ topPicks: {
774
+ canvasBackground: [string, string, string, string, string];
775
+ elementStroke: [string, string, string, string, string];
776
+ elementBackground: [string, string, string, string, string];
777
+ };
778
+ } | undefined;
779
+ allowWheelZoom?: boolean | undefined;
780
+ allowPinchZoom?: boolean | undefined;
781
+ pinnedScripts?: string[] | undefined;
782
+ customPens?: any[] | undefined;
783
+ currentStrokeOptions?: any;
784
+ resetCustomPen?: any;
785
+ gridColor: {
786
+ Bold: string;
787
+ Regular: string;
788
+ };
789
+ dynamicStyle: string;
790
+ invertBindingBehaviour: boolean;
791
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
792
+ };
793
+ commitToHistory: true;
794
+ };
795
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
796
+ } & {
797
+ keyTest?: undefined;
798
+ };
799
+ export declare const actionChangeFontSize: {
800
+ name: "changeFontSize";
801
+ trackEvent: false;
802
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
803
+ elements: ExcalidrawElement[];
804
+ appState: {
805
+ currentItemFontSize: number;
806
+ contextMenu: {
807
+ items: import("../components/ContextMenu").ContextMenuItems;
808
+ top: number;
809
+ left: number;
810
+ } | null;
811
+ showWelcomeScreen: boolean;
812
+ isLoading: boolean;
813
+ errorMessage: import("react").ReactNode;
814
+ activeEmbeddable: {
815
+ element: import("../element/types").NonDeletedExcalidrawElement;
816
+ state: "active" | "hover";
817
+ } | null;
818
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
819
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
820
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
821
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
822
+ isBindingEnabled: boolean;
823
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
824
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
825
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
826
+ frameRendering: {
827
+ enabled: boolean;
828
+ name: boolean;
829
+ outline: boolean;
830
+ clip: boolean;
831
+ };
832
+ editingFrame: string | null;
833
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
834
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
835
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
836
+ activeTool: {
837
+ lastActiveTool: import("../../src/types").LastActiveTool;
838
+ locked: boolean;
839
+ } & ({
840
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
841
+ customType: null;
842
+ } | {
843
+ type: "custom";
844
+ customType: string;
845
+ });
846
+ penMode: boolean;
847
+ penDetected: boolean;
848
+ exportBackground: boolean;
849
+ exportEmbedScene: boolean;
850
+ exportWithDarkMode: boolean;
851
+ exportScale: number;
852
+ currentItemStrokeColor: string;
853
+ currentItemBackgroundColor: string;
854
+ currentItemFillStyle: import("../element/types").FillStyle;
855
+ currentItemStrokeWidth: number;
856
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
857
+ currentItemRoughness: number;
858
+ currentItemOpacity: number;
859
+ currentItemFontFamily: number;
860
+ currentItemTextAlign: string;
861
+ currentItemStartArrowhead: Arrowhead | null;
862
+ currentItemEndArrowhead: Arrowhead | null;
863
+ currentItemRoundness: import("../element/types").StrokeRoundness;
864
+ viewBackgroundColor: string;
865
+ scrollX: number;
866
+ scrollY: number;
867
+ cursorButton: "up" | "down";
868
+ scrolledOutside: boolean;
869
+ name: string;
870
+ isResizing: boolean;
871
+ isRotating: boolean;
872
+ zoom: Readonly<{
873
+ value: import("../../src/types").NormalizedZoomValue;
874
+ }>;
875
+ openMenu: "canvas" | "shape" | null;
876
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
877
+ openSidebar: {
878
+ name: string;
879
+ tab?: string | undefined;
880
+ } | null;
881
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
882
+ defaultSidebarDockedPreference: boolean;
883
+ lastPointerDownWith: import("../element/types").PointerType;
884
+ selectedElementIds: Readonly<{
885
+ [id: string]: true;
886
+ }>;
887
+ previousSelectedElementIds: {
888
+ [id: string]: true;
889
+ };
890
+ selectedElementsAreBeingDragged: boolean;
891
+ shouldCacheIgnoreZoom: boolean;
892
+ toast: {
893
+ message: string;
894
+ closable?: boolean | undefined;
895
+ duration?: number | undefined;
896
+ } | null;
897
+ zenModeEnabled: boolean;
898
+ theme: import("../element/types").Theme;
899
+ gridSize: number | null;
900
+ previousGridSize: number | null;
901
+ viewModeEnabled: boolean;
902
+ selectedGroupIds: {
903
+ [groupId: string]: boolean;
904
+ };
905
+ editingGroupId: string | null;
906
+ width: number;
907
+ height: number;
908
+ offsetTop: number;
909
+ offsetLeft: number;
910
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
911
+ collaborators: Map<string, import("../../src/types").Collaborator>;
912
+ showStats: boolean;
913
+ currentChartType: import("../element/types").ChartType;
914
+ pasteDialog: {
915
+ shown: false;
916
+ data: null;
917
+ } | {
918
+ shown: true;
919
+ data: import("../charts").Spreadsheet;
920
+ };
921
+ pendingImageElementId: string | null;
922
+ showHyperlinkPopup: false | "editor" | "info";
923
+ linkOpacity: number;
924
+ trayModeEnabled: boolean;
925
+ colorPalette?: {
926
+ canvasBackground: import("../colors").ColorPaletteCustom;
927
+ elementBackground: import("../colors").ColorPaletteCustom;
928
+ elementStroke: import("../colors").ColorPaletteCustom;
929
+ topPicks: {
930
+ canvasBackground: [string, string, string, string, string];
931
+ elementStroke: [string, string, string, string, string];
932
+ elementBackground: [string, string, string, string, string];
933
+ };
934
+ } | undefined;
935
+ allowWheelZoom?: boolean | undefined;
936
+ allowPinchZoom?: boolean | undefined;
937
+ pinnedScripts?: string[] | undefined;
938
+ customPens?: any[] | undefined;
939
+ currentStrokeOptions?: any;
940
+ resetCustomPen?: any;
941
+ gridColor: {
942
+ Bold: string;
943
+ Regular: string;
944
+ };
945
+ dynamicStyle: string;
946
+ invertBindingBehaviour: boolean;
947
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
948
+ };
949
+ commitToHistory: boolean;
950
+ };
951
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
952
+ } & {
953
+ keyTest?: undefined;
954
+ };
955
+ export declare const actionDecreaseFontSize: {
956
+ name: "decreaseFontSize";
957
+ trackEvent: false;
958
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
959
+ elements: ExcalidrawElement[];
960
+ appState: {
961
+ currentItemFontSize: number;
962
+ contextMenu: {
963
+ items: import("../components/ContextMenu").ContextMenuItems;
964
+ top: number;
965
+ left: number;
966
+ } | null;
967
+ showWelcomeScreen: boolean;
968
+ isLoading: boolean;
969
+ errorMessage: import("react").ReactNode;
970
+ activeEmbeddable: {
971
+ element: import("../element/types").NonDeletedExcalidrawElement;
972
+ state: "active" | "hover";
973
+ } | null;
974
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
975
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
976
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
977
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
978
+ isBindingEnabled: boolean;
979
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
980
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
981
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
982
+ frameRendering: {
983
+ enabled: boolean;
984
+ name: boolean;
985
+ outline: boolean;
986
+ clip: boolean;
987
+ };
988
+ editingFrame: string | null;
989
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
990
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
991
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
992
+ activeTool: {
993
+ lastActiveTool: import("../../src/types").LastActiveTool;
994
+ locked: boolean;
995
+ } & ({
996
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
997
+ customType: null;
998
+ } | {
999
+ type: "custom";
1000
+ customType: string;
1001
+ });
1002
+ penMode: boolean;
1003
+ penDetected: boolean;
1004
+ exportBackground: boolean;
1005
+ exportEmbedScene: boolean;
1006
+ exportWithDarkMode: boolean;
1007
+ exportScale: number;
1008
+ currentItemStrokeColor: string;
1009
+ currentItemBackgroundColor: string;
1010
+ currentItemFillStyle: import("../element/types").FillStyle;
1011
+ currentItemStrokeWidth: number;
1012
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1013
+ currentItemRoughness: number;
1014
+ currentItemOpacity: number;
1015
+ currentItemFontFamily: number;
1016
+ currentItemTextAlign: string;
1017
+ currentItemStartArrowhead: Arrowhead | null;
1018
+ currentItemEndArrowhead: Arrowhead | null;
1019
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1020
+ viewBackgroundColor: string;
1021
+ scrollX: number;
1022
+ scrollY: number;
1023
+ cursorButton: "up" | "down";
1024
+ scrolledOutside: boolean;
1025
+ name: string;
1026
+ isResizing: boolean;
1027
+ isRotating: boolean;
1028
+ zoom: Readonly<{
1029
+ value: import("../../src/types").NormalizedZoomValue;
1030
+ }>;
1031
+ openMenu: "canvas" | "shape" | null;
1032
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1033
+ openSidebar: {
1034
+ name: string;
1035
+ tab?: string | undefined;
1036
+ } | null;
1037
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1038
+ defaultSidebarDockedPreference: boolean;
1039
+ lastPointerDownWith: import("../element/types").PointerType;
1040
+ selectedElementIds: Readonly<{
1041
+ [id: string]: true;
1042
+ }>;
1043
+ previousSelectedElementIds: {
1044
+ [id: string]: true;
1045
+ };
1046
+ selectedElementsAreBeingDragged: boolean;
1047
+ shouldCacheIgnoreZoom: boolean;
1048
+ toast: {
1049
+ message: string;
1050
+ closable?: boolean | undefined;
1051
+ duration?: number | undefined;
1052
+ } | null;
1053
+ zenModeEnabled: boolean;
1054
+ theme: import("../element/types").Theme;
1055
+ gridSize: number | null;
1056
+ previousGridSize: number | null;
1057
+ viewModeEnabled: boolean;
1058
+ selectedGroupIds: {
1059
+ [groupId: string]: boolean;
1060
+ };
1061
+ editingGroupId: string | null;
1062
+ width: number;
1063
+ height: number;
1064
+ offsetTop: number;
1065
+ offsetLeft: number;
1066
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1067
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1068
+ showStats: boolean;
1069
+ currentChartType: import("../element/types").ChartType;
1070
+ pasteDialog: {
1071
+ shown: false;
1072
+ data: null;
1073
+ } | {
1074
+ shown: true;
1075
+ data: import("../charts").Spreadsheet;
1076
+ };
1077
+ pendingImageElementId: string | null;
1078
+ showHyperlinkPopup: false | "editor" | "info";
1079
+ linkOpacity: number;
1080
+ trayModeEnabled: boolean;
1081
+ colorPalette?: {
1082
+ canvasBackground: import("../colors").ColorPaletteCustom;
1083
+ elementBackground: import("../colors").ColorPaletteCustom;
1084
+ elementStroke: import("../colors").ColorPaletteCustom;
1085
+ topPicks: {
1086
+ canvasBackground: [string, string, string, string, string];
1087
+ elementStroke: [string, string, string, string, string];
1088
+ elementBackground: [string, string, string, string, string];
1089
+ };
1090
+ } | undefined;
1091
+ allowWheelZoom?: boolean | undefined;
1092
+ allowPinchZoom?: boolean | undefined;
1093
+ pinnedScripts?: string[] | undefined;
1094
+ customPens?: any[] | undefined;
1095
+ currentStrokeOptions?: any;
1096
+ resetCustomPen?: any;
1097
+ gridColor: {
1098
+ Bold: string;
1099
+ Regular: string;
1100
+ };
1101
+ dynamicStyle: string;
1102
+ invertBindingBehaviour: boolean;
1103
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1104
+ };
1105
+ commitToHistory: boolean;
1106
+ };
1107
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1108
+ } & {
1109
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1110
+ };
1111
+ export declare const actionIncreaseFontSize: {
1112
+ name: "increaseFontSize";
1113
+ trackEvent: false;
1114
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1115
+ elements: ExcalidrawElement[];
1116
+ appState: {
1117
+ currentItemFontSize: number;
1118
+ contextMenu: {
1119
+ items: import("../components/ContextMenu").ContextMenuItems;
1120
+ top: number;
1121
+ left: number;
1122
+ } | null;
1123
+ showWelcomeScreen: boolean;
1124
+ isLoading: boolean;
1125
+ errorMessage: import("react").ReactNode;
1126
+ activeEmbeddable: {
1127
+ element: import("../element/types").NonDeletedExcalidrawElement;
1128
+ state: "active" | "hover";
1129
+ } | null;
1130
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1131
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1132
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1133
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1134
+ isBindingEnabled: boolean;
1135
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1136
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1137
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1138
+ frameRendering: {
1139
+ enabled: boolean;
1140
+ name: boolean;
1141
+ outline: boolean;
1142
+ clip: boolean;
1143
+ };
1144
+ editingFrame: string | null;
1145
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1146
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1147
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1148
+ activeTool: {
1149
+ lastActiveTool: import("../../src/types").LastActiveTool;
1150
+ locked: boolean;
1151
+ } & ({
1152
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1153
+ customType: null;
1154
+ } | {
1155
+ type: "custom";
1156
+ customType: string;
1157
+ });
1158
+ penMode: boolean;
1159
+ penDetected: boolean;
1160
+ exportBackground: boolean;
1161
+ exportEmbedScene: boolean;
1162
+ exportWithDarkMode: boolean;
1163
+ exportScale: number;
1164
+ currentItemStrokeColor: string;
1165
+ currentItemBackgroundColor: string;
1166
+ currentItemFillStyle: import("../element/types").FillStyle;
1167
+ currentItemStrokeWidth: number;
1168
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1169
+ currentItemRoughness: number;
1170
+ currentItemOpacity: number;
1171
+ currentItemFontFamily: number;
1172
+ currentItemTextAlign: string;
1173
+ currentItemStartArrowhead: Arrowhead | null;
1174
+ currentItemEndArrowhead: Arrowhead | null;
1175
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1176
+ viewBackgroundColor: string;
1177
+ scrollX: number;
1178
+ scrollY: number;
1179
+ cursorButton: "up" | "down";
1180
+ scrolledOutside: boolean;
1181
+ name: string;
1182
+ isResizing: boolean;
1183
+ isRotating: boolean;
1184
+ zoom: Readonly<{
1185
+ value: import("../../src/types").NormalizedZoomValue;
1186
+ }>;
1187
+ openMenu: "canvas" | "shape" | null;
1188
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1189
+ openSidebar: {
1190
+ name: string;
1191
+ tab?: string | undefined;
1192
+ } | null;
1193
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1194
+ defaultSidebarDockedPreference: boolean;
1195
+ lastPointerDownWith: import("../element/types").PointerType;
1196
+ selectedElementIds: Readonly<{
1197
+ [id: string]: true;
1198
+ }>;
1199
+ previousSelectedElementIds: {
1200
+ [id: string]: true;
1201
+ };
1202
+ selectedElementsAreBeingDragged: boolean;
1203
+ shouldCacheIgnoreZoom: boolean;
1204
+ toast: {
1205
+ message: string;
1206
+ closable?: boolean | undefined;
1207
+ duration?: number | undefined;
1208
+ } | null;
1209
+ zenModeEnabled: boolean;
1210
+ theme: import("../element/types").Theme;
1211
+ gridSize: number | null;
1212
+ previousGridSize: number | null;
1213
+ viewModeEnabled: boolean;
1214
+ selectedGroupIds: {
1215
+ [groupId: string]: boolean;
1216
+ };
1217
+ editingGroupId: string | null;
1218
+ width: number;
1219
+ height: number;
1220
+ offsetTop: number;
1221
+ offsetLeft: number;
1222
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1223
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1224
+ showStats: boolean;
1225
+ currentChartType: import("../element/types").ChartType;
1226
+ pasteDialog: {
1227
+ shown: false;
1228
+ data: null;
1229
+ } | {
1230
+ shown: true;
1231
+ data: import("../charts").Spreadsheet;
1232
+ };
1233
+ pendingImageElementId: string | null;
1234
+ showHyperlinkPopup: false | "editor" | "info";
1235
+ linkOpacity: number;
1236
+ trayModeEnabled: boolean;
1237
+ colorPalette?: {
1238
+ canvasBackground: import("../colors").ColorPaletteCustom;
1239
+ elementBackground: import("../colors").ColorPaletteCustom;
1240
+ elementStroke: import("../colors").ColorPaletteCustom;
1241
+ topPicks: {
1242
+ canvasBackground: [string, string, string, string, string];
1243
+ elementStroke: [string, string, string, string, string];
1244
+ elementBackground: [string, string, string, string, string];
1245
+ };
1246
+ } | undefined;
1247
+ allowWheelZoom?: boolean | undefined;
1248
+ allowPinchZoom?: boolean | undefined;
1249
+ pinnedScripts?: string[] | undefined;
1250
+ customPens?: any[] | undefined;
1251
+ currentStrokeOptions?: any;
1252
+ resetCustomPen?: any;
1253
+ gridColor: {
1254
+ Bold: string;
1255
+ Regular: string;
1256
+ };
1257
+ dynamicStyle: string;
1258
+ invertBindingBehaviour: boolean;
1259
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1260
+ };
1261
+ commitToHistory: boolean;
1262
+ };
1263
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1264
+ } & {
1265
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1266
+ };
1267
+ export declare const actionChangeFontFamily: {
1268
+ name: "changeFontFamily";
1269
+ trackEvent: false;
1270
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1271
+ elements: ExcalidrawElement[];
1272
+ appState: {
1273
+ currentItemFontFamily: any;
1274
+ contextMenu: {
1275
+ items: import("../components/ContextMenu").ContextMenuItems;
1276
+ top: number;
1277
+ left: number;
1278
+ } | null;
1279
+ showWelcomeScreen: boolean;
1280
+ isLoading: boolean;
1281
+ errorMessage: import("react").ReactNode;
1282
+ activeEmbeddable: {
1283
+ element: import("../element/types").NonDeletedExcalidrawElement;
1284
+ state: "active" | "hover";
1285
+ } | null;
1286
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1287
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1288
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1289
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1290
+ isBindingEnabled: boolean;
1291
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1292
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1293
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1294
+ frameRendering: {
1295
+ enabled: boolean;
1296
+ name: boolean;
1297
+ outline: boolean;
1298
+ clip: boolean;
1299
+ };
1300
+ editingFrame: string | null;
1301
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1302
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1303
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1304
+ activeTool: {
1305
+ lastActiveTool: import("../../src/types").LastActiveTool;
1306
+ locked: boolean;
1307
+ } & ({
1308
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1309
+ customType: null;
1310
+ } | {
1311
+ type: "custom";
1312
+ customType: string;
1313
+ });
1314
+ penMode: boolean;
1315
+ penDetected: boolean;
1316
+ exportBackground: boolean;
1317
+ exportEmbedScene: boolean;
1318
+ exportWithDarkMode: boolean;
1319
+ exportScale: number;
1320
+ currentItemStrokeColor: string;
1321
+ currentItemBackgroundColor: string;
1322
+ currentItemFillStyle: import("../element/types").FillStyle;
1323
+ currentItemStrokeWidth: number;
1324
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1325
+ currentItemRoughness: number;
1326
+ currentItemOpacity: number;
1327
+ currentItemFontSize: number;
1328
+ currentItemTextAlign: string;
1329
+ currentItemStartArrowhead: Arrowhead | null;
1330
+ currentItemEndArrowhead: Arrowhead | null;
1331
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1332
+ viewBackgroundColor: string;
1333
+ scrollX: number;
1334
+ scrollY: number;
1335
+ cursorButton: "up" | "down";
1336
+ scrolledOutside: boolean;
1337
+ name: string;
1338
+ isResizing: boolean;
1339
+ isRotating: boolean;
1340
+ zoom: Readonly<{
1341
+ value: import("../../src/types").NormalizedZoomValue;
1342
+ }>;
1343
+ openMenu: "canvas" | "shape" | null;
1344
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1345
+ openSidebar: {
1346
+ name: string;
1347
+ tab?: string | undefined;
1348
+ } | null;
1349
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1350
+ defaultSidebarDockedPreference: boolean;
1351
+ lastPointerDownWith: import("../element/types").PointerType;
1352
+ selectedElementIds: Readonly<{
1353
+ [id: string]: true;
1354
+ }>;
1355
+ previousSelectedElementIds: {
1356
+ [id: string]: true;
1357
+ };
1358
+ selectedElementsAreBeingDragged: boolean;
1359
+ shouldCacheIgnoreZoom: boolean;
1360
+ toast: {
1361
+ message: string;
1362
+ closable?: boolean | undefined;
1363
+ duration?: number | undefined;
1364
+ } | null;
1365
+ zenModeEnabled: boolean;
1366
+ theme: import("../element/types").Theme;
1367
+ gridSize: number | null;
1368
+ previousGridSize: number | null;
1369
+ viewModeEnabled: boolean;
1370
+ selectedGroupIds: {
1371
+ [groupId: string]: boolean;
1372
+ };
1373
+ editingGroupId: string | null;
1374
+ width: number;
1375
+ height: number;
1376
+ offsetTop: number;
1377
+ offsetLeft: number;
1378
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1379
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1380
+ showStats: boolean;
1381
+ currentChartType: import("../element/types").ChartType;
1382
+ pasteDialog: {
1383
+ shown: false;
1384
+ data: null;
1385
+ } | {
1386
+ shown: true;
1387
+ data: import("../charts").Spreadsheet;
1388
+ };
1389
+ pendingImageElementId: string | null;
1390
+ showHyperlinkPopup: false | "editor" | "info";
1391
+ linkOpacity: number;
1392
+ trayModeEnabled: boolean;
1393
+ colorPalette?: {
1394
+ canvasBackground: import("../colors").ColorPaletteCustom;
1395
+ elementBackground: import("../colors").ColorPaletteCustom;
1396
+ elementStroke: import("../colors").ColorPaletteCustom;
1397
+ topPicks: {
1398
+ canvasBackground: [string, string, string, string, string];
1399
+ elementStroke: [string, string, string, string, string];
1400
+ elementBackground: [string, string, string, string, string];
1401
+ };
1402
+ } | undefined;
1403
+ allowWheelZoom?: boolean | undefined;
1404
+ allowPinchZoom?: boolean | undefined;
1405
+ pinnedScripts?: string[] | undefined;
1406
+ customPens?: any[] | undefined;
1407
+ currentStrokeOptions?: any;
1408
+ resetCustomPen?: any;
1409
+ gridColor: {
1410
+ Bold: string;
1411
+ Regular: string;
1412
+ };
1413
+ dynamicStyle: string;
1414
+ invertBindingBehaviour: boolean;
1415
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1416
+ };
1417
+ commitToHistory: true;
1418
+ };
1419
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1420
+ } & {
1421
+ keyTest?: undefined;
1422
+ };
1423
+ export declare const actionChangeTextAlign: {
1424
+ name: "changeTextAlign";
1425
+ trackEvent: false;
1426
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1427
+ elements: ExcalidrawElement[];
1428
+ appState: {
1429
+ currentItemTextAlign: any;
1430
+ contextMenu: {
1431
+ items: import("../components/ContextMenu").ContextMenuItems;
1432
+ top: number;
1433
+ left: number;
1434
+ } | null;
1435
+ showWelcomeScreen: boolean;
1436
+ isLoading: boolean;
1437
+ errorMessage: import("react").ReactNode;
1438
+ activeEmbeddable: {
1439
+ element: import("../element/types").NonDeletedExcalidrawElement;
1440
+ state: "active" | "hover";
1441
+ } | null;
1442
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1443
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1444
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1445
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1446
+ isBindingEnabled: boolean;
1447
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1448
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1449
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1450
+ frameRendering: {
1451
+ enabled: boolean;
1452
+ name: boolean;
1453
+ outline: boolean;
1454
+ clip: boolean;
1455
+ };
1456
+ editingFrame: string | null;
1457
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1458
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1459
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1460
+ activeTool: {
1461
+ lastActiveTool: import("../../src/types").LastActiveTool;
1462
+ locked: boolean;
1463
+ } & ({
1464
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1465
+ customType: null;
1466
+ } | {
1467
+ type: "custom";
1468
+ customType: string;
1469
+ });
1470
+ penMode: boolean;
1471
+ penDetected: boolean;
1472
+ exportBackground: boolean;
1473
+ exportEmbedScene: boolean;
1474
+ exportWithDarkMode: boolean;
1475
+ exportScale: number;
1476
+ currentItemStrokeColor: string;
1477
+ currentItemBackgroundColor: string;
1478
+ currentItemFillStyle: import("../element/types").FillStyle;
1479
+ currentItemStrokeWidth: number;
1480
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1481
+ currentItemRoughness: number;
1482
+ currentItemOpacity: number;
1483
+ currentItemFontFamily: number;
1484
+ currentItemFontSize: number;
1485
+ currentItemStartArrowhead: Arrowhead | null;
1486
+ currentItemEndArrowhead: Arrowhead | null;
1487
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1488
+ viewBackgroundColor: string;
1489
+ scrollX: number;
1490
+ scrollY: number;
1491
+ cursorButton: "up" | "down";
1492
+ scrolledOutside: boolean;
1493
+ name: string;
1494
+ isResizing: boolean;
1495
+ isRotating: boolean;
1496
+ zoom: Readonly<{
1497
+ value: import("../../src/types").NormalizedZoomValue;
1498
+ }>;
1499
+ openMenu: "canvas" | "shape" | null;
1500
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1501
+ openSidebar: {
1502
+ name: string;
1503
+ tab?: string | undefined;
1504
+ } | null;
1505
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1506
+ defaultSidebarDockedPreference: boolean;
1507
+ lastPointerDownWith: import("../element/types").PointerType;
1508
+ selectedElementIds: Readonly<{
1509
+ [id: string]: true;
1510
+ }>;
1511
+ previousSelectedElementIds: {
1512
+ [id: string]: true;
1513
+ };
1514
+ selectedElementsAreBeingDragged: boolean;
1515
+ shouldCacheIgnoreZoom: boolean;
1516
+ toast: {
1517
+ message: string;
1518
+ closable?: boolean | undefined;
1519
+ duration?: number | undefined;
1520
+ } | null;
1521
+ zenModeEnabled: boolean;
1522
+ theme: import("../element/types").Theme;
1523
+ gridSize: number | null;
1524
+ previousGridSize: number | null;
1525
+ viewModeEnabled: boolean;
1526
+ selectedGroupIds: {
1527
+ [groupId: string]: boolean;
1528
+ };
1529
+ editingGroupId: string | null;
1530
+ width: number;
1531
+ height: number;
1532
+ offsetTop: number;
1533
+ offsetLeft: number;
1534
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1535
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1536
+ showStats: boolean;
1537
+ currentChartType: import("../element/types").ChartType;
1538
+ pasteDialog: {
1539
+ shown: false;
1540
+ data: null;
1541
+ } | {
1542
+ shown: true;
1543
+ data: import("../charts").Spreadsheet;
1544
+ };
1545
+ pendingImageElementId: string | null;
1546
+ showHyperlinkPopup: false | "editor" | "info";
1547
+ linkOpacity: number;
1548
+ trayModeEnabled: boolean;
1549
+ colorPalette?: {
1550
+ canvasBackground: import("../colors").ColorPaletteCustom;
1551
+ elementBackground: import("../colors").ColorPaletteCustom;
1552
+ elementStroke: import("../colors").ColorPaletteCustom;
1553
+ topPicks: {
1554
+ canvasBackground: [string, string, string, string, string];
1555
+ elementStroke: [string, string, string, string, string];
1556
+ elementBackground: [string, string, string, string, string];
1557
+ };
1558
+ } | undefined;
1559
+ allowWheelZoom?: boolean | undefined;
1560
+ allowPinchZoom?: boolean | undefined;
1561
+ pinnedScripts?: string[] | undefined;
1562
+ customPens?: any[] | undefined;
1563
+ currentStrokeOptions?: any;
1564
+ resetCustomPen?: any;
1565
+ gridColor: {
1566
+ Bold: string;
1567
+ Regular: string;
1568
+ };
1569
+ dynamicStyle: string;
1570
+ invertBindingBehaviour: boolean;
1571
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1572
+ };
1573
+ commitToHistory: true;
1574
+ };
1575
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1576
+ } & {
1577
+ keyTest?: undefined;
1578
+ };
1579
+ export declare const actionChangeVerticalAlign: {
1580
+ name: "changeVerticalAlign";
1581
+ trackEvent: {
1582
+ category: "element";
1583
+ };
1584
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1585
+ elements: ExcalidrawElement[];
1586
+ appState: {
1587
+ contextMenu: {
1588
+ items: import("../components/ContextMenu").ContextMenuItems;
1589
+ top: number;
1590
+ left: number;
1591
+ } | null;
1592
+ showWelcomeScreen: boolean;
1593
+ isLoading: boolean;
1594
+ errorMessage: import("react").ReactNode;
1595
+ activeEmbeddable: {
1596
+ element: import("../element/types").NonDeletedExcalidrawElement;
1597
+ state: "active" | "hover";
1598
+ } | null;
1599
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1600
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1601
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1602
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1603
+ isBindingEnabled: boolean;
1604
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1605
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1606
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1607
+ frameRendering: {
1608
+ enabled: boolean;
1609
+ name: boolean;
1610
+ outline: boolean;
1611
+ clip: boolean;
1612
+ };
1613
+ editingFrame: string | null;
1614
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1615
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1616
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1617
+ activeTool: {
1618
+ lastActiveTool: import("../../src/types").LastActiveTool;
1619
+ locked: boolean;
1620
+ } & ({
1621
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1622
+ customType: null;
1623
+ } | {
1624
+ type: "custom";
1625
+ customType: string;
1626
+ });
1627
+ penMode: boolean;
1628
+ penDetected: boolean;
1629
+ exportBackground: boolean;
1630
+ exportEmbedScene: boolean;
1631
+ exportWithDarkMode: boolean;
1632
+ exportScale: number;
1633
+ currentItemStrokeColor: string;
1634
+ currentItemBackgroundColor: string;
1635
+ currentItemFillStyle: import("../element/types").FillStyle;
1636
+ currentItemStrokeWidth: number;
1637
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1638
+ currentItemRoughness: number;
1639
+ currentItemOpacity: number;
1640
+ currentItemFontFamily: number;
1641
+ currentItemFontSize: number;
1642
+ currentItemTextAlign: string;
1643
+ currentItemStartArrowhead: Arrowhead | null;
1644
+ currentItemEndArrowhead: Arrowhead | null;
1645
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1646
+ viewBackgroundColor: string;
1647
+ scrollX: number;
1648
+ scrollY: number;
1649
+ cursorButton: "up" | "down";
1650
+ scrolledOutside: boolean;
1651
+ name: string;
1652
+ isResizing: boolean;
1653
+ isRotating: boolean;
1654
+ zoom: Readonly<{
1655
+ value: import("../../src/types").NormalizedZoomValue;
1656
+ }>;
1657
+ openMenu: "canvas" | "shape" | null;
1658
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1659
+ openSidebar: {
1660
+ name: string;
1661
+ tab?: string | undefined;
1662
+ } | null;
1663
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1664
+ defaultSidebarDockedPreference: boolean;
1665
+ lastPointerDownWith: import("../element/types").PointerType;
1666
+ selectedElementIds: Readonly<{
1667
+ [id: string]: true;
1668
+ }>;
1669
+ previousSelectedElementIds: {
1670
+ [id: string]: true;
1671
+ };
1672
+ selectedElementsAreBeingDragged: boolean;
1673
+ shouldCacheIgnoreZoom: boolean;
1674
+ toast: {
1675
+ message: string;
1676
+ closable?: boolean | undefined;
1677
+ duration?: number | undefined;
1678
+ } | null;
1679
+ zenModeEnabled: boolean;
1680
+ theme: import("../element/types").Theme;
1681
+ gridSize: number | null;
1682
+ previousGridSize: number | null;
1683
+ viewModeEnabled: boolean;
1684
+ selectedGroupIds: {
1685
+ [groupId: string]: boolean;
1686
+ };
1687
+ editingGroupId: string | null;
1688
+ width: number;
1689
+ height: number;
1690
+ offsetTop: number;
1691
+ offsetLeft: number;
1692
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1693
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1694
+ showStats: boolean;
1695
+ currentChartType: import("../element/types").ChartType;
1696
+ pasteDialog: {
1697
+ shown: false;
1698
+ data: null;
1699
+ } | {
1700
+ shown: true;
1701
+ data: import("../charts").Spreadsheet;
1702
+ };
1703
+ pendingImageElementId: string | null;
1704
+ showHyperlinkPopup: false | "editor" | "info";
1705
+ linkOpacity: number;
1706
+ trayModeEnabled: boolean;
1707
+ colorPalette?: {
1708
+ canvasBackground: import("../colors").ColorPaletteCustom;
1709
+ elementBackground: import("../colors").ColorPaletteCustom;
1710
+ elementStroke: import("../colors").ColorPaletteCustom;
1711
+ topPicks: {
1712
+ canvasBackground: [string, string, string, string, string];
1713
+ elementStroke: [string, string, string, string, string];
1714
+ elementBackground: [string, string, string, string, string];
1715
+ };
1716
+ } | undefined;
1717
+ allowWheelZoom?: boolean | undefined;
1718
+ allowPinchZoom?: boolean | undefined;
1719
+ pinnedScripts?: string[] | undefined;
1720
+ customPens?: any[] | undefined;
1721
+ currentStrokeOptions?: any;
1722
+ resetCustomPen?: any;
1723
+ gridColor: {
1724
+ Bold: string;
1725
+ Regular: string;
1726
+ };
1727
+ dynamicStyle: string;
1728
+ invertBindingBehaviour: boolean;
1729
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1730
+ };
1731
+ commitToHistory: true;
1732
+ };
1733
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1734
+ } & {
1735
+ keyTest?: undefined;
1736
+ };
1737
+ export declare const actionChangeRoundness: {
1738
+ name: "changeRoundness";
1739
+ trackEvent: false;
1740
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1741
+ elements: ExcalidrawElement[];
1742
+ appState: {
1743
+ currentItemRoundness: any;
1744
+ contextMenu: {
1745
+ items: import("../components/ContextMenu").ContextMenuItems;
1746
+ top: number;
1747
+ left: number;
1748
+ } | null;
1749
+ showWelcomeScreen: boolean;
1750
+ isLoading: boolean;
1751
+ errorMessage: import("react").ReactNode;
1752
+ activeEmbeddable: {
1753
+ element: import("../element/types").NonDeletedExcalidrawElement;
1754
+ state: "active" | "hover";
1755
+ } | null;
1756
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1757
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1758
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1759
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1760
+ isBindingEnabled: boolean;
1761
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1762
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1763
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1764
+ frameRendering: {
1765
+ enabled: boolean;
1766
+ name: boolean;
1767
+ outline: boolean;
1768
+ clip: boolean;
1769
+ };
1770
+ editingFrame: string | null;
1771
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1772
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1773
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1774
+ activeTool: {
1775
+ lastActiveTool: import("../../src/types").LastActiveTool;
1776
+ locked: boolean;
1777
+ } & ({
1778
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1779
+ customType: null;
1780
+ } | {
1781
+ type: "custom";
1782
+ customType: string;
1783
+ });
1784
+ penMode: boolean;
1785
+ penDetected: boolean;
1786
+ exportBackground: boolean;
1787
+ exportEmbedScene: boolean;
1788
+ exportWithDarkMode: boolean;
1789
+ exportScale: number;
1790
+ currentItemStrokeColor: string;
1791
+ currentItemBackgroundColor: string;
1792
+ currentItemFillStyle: import("../element/types").FillStyle;
1793
+ currentItemStrokeWidth: number;
1794
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1795
+ currentItemRoughness: number;
1796
+ currentItemOpacity: number;
1797
+ currentItemFontFamily: number;
1798
+ currentItemFontSize: number;
1799
+ currentItemTextAlign: string;
1800
+ currentItemStartArrowhead: Arrowhead | null;
1801
+ currentItemEndArrowhead: Arrowhead | null;
1802
+ viewBackgroundColor: string;
1803
+ scrollX: number;
1804
+ scrollY: number;
1805
+ cursorButton: "up" | "down";
1806
+ scrolledOutside: boolean;
1807
+ name: string;
1808
+ isResizing: boolean;
1809
+ isRotating: boolean;
1810
+ zoom: Readonly<{
1811
+ value: import("../../src/types").NormalizedZoomValue;
1812
+ }>;
1813
+ openMenu: "canvas" | "shape" | null;
1814
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1815
+ openSidebar: {
1816
+ name: string;
1817
+ tab?: string | undefined;
1818
+ } | null;
1819
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1820
+ defaultSidebarDockedPreference: boolean;
1821
+ lastPointerDownWith: import("../element/types").PointerType;
1822
+ selectedElementIds: Readonly<{
1823
+ [id: string]: true;
1824
+ }>;
1825
+ previousSelectedElementIds: {
1826
+ [id: string]: true;
1827
+ };
1828
+ selectedElementsAreBeingDragged: boolean;
1829
+ shouldCacheIgnoreZoom: boolean;
1830
+ toast: {
1831
+ message: string;
1832
+ closable?: boolean | undefined;
1833
+ duration?: number | undefined;
1834
+ } | null;
1835
+ zenModeEnabled: boolean;
1836
+ theme: import("../element/types").Theme;
1837
+ gridSize: number | null;
1838
+ previousGridSize: number | null;
1839
+ viewModeEnabled: boolean;
1840
+ selectedGroupIds: {
1841
+ [groupId: string]: boolean;
1842
+ };
1843
+ editingGroupId: string | null;
1844
+ width: number;
1845
+ height: number;
1846
+ offsetTop: number;
1847
+ offsetLeft: number;
1848
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1849
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1850
+ showStats: boolean;
1851
+ currentChartType: import("../element/types").ChartType;
1852
+ pasteDialog: {
1853
+ shown: false;
1854
+ data: null;
1855
+ } | {
1856
+ shown: true;
1857
+ data: import("../charts").Spreadsheet;
1858
+ };
1859
+ pendingImageElementId: string | null;
1860
+ showHyperlinkPopup: false | "editor" | "info";
1861
+ linkOpacity: number;
1862
+ trayModeEnabled: boolean;
1863
+ colorPalette?: {
1864
+ canvasBackground: import("../colors").ColorPaletteCustom;
1865
+ elementBackground: import("../colors").ColorPaletteCustom;
1866
+ elementStroke: import("../colors").ColorPaletteCustom;
1867
+ topPicks: {
1868
+ canvasBackground: [string, string, string, string, string];
1869
+ elementStroke: [string, string, string, string, string];
1870
+ elementBackground: [string, string, string, string, string];
1871
+ };
1872
+ } | undefined;
1873
+ allowWheelZoom?: boolean | undefined;
1874
+ allowPinchZoom?: boolean | undefined;
1875
+ pinnedScripts?: string[] | undefined;
1876
+ customPens?: any[] | undefined;
1877
+ currentStrokeOptions?: any;
1878
+ resetCustomPen?: any;
1879
+ gridColor: {
1880
+ Bold: string;
1881
+ Regular: string;
1882
+ };
1883
+ dynamicStyle: string;
1884
+ invertBindingBehaviour: boolean;
1885
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1886
+ };
1887
+ commitToHistory: true;
1888
+ };
1889
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1890
+ } & {
1891
+ keyTest?: undefined;
1892
+ };
1893
+ export declare const actionChangeArrowhead: {
1894
+ name: "changeArrowhead";
1895
+ trackEvent: false;
1896
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: {
1897
+ position: "start" | "end";
1898
+ type: Arrowhead;
1899
+ }) => {
1900
+ elements: ExcalidrawElement[];
1901
+ appState: {
1902
+ contextMenu: {
1903
+ items: import("../components/ContextMenu").ContextMenuItems;
1904
+ top: number;
1905
+ left: number;
1906
+ } | null;
1907
+ showWelcomeScreen: boolean;
1908
+ isLoading: boolean;
1909
+ errorMessage: import("react").ReactNode;
1910
+ activeEmbeddable: {
1911
+ element: import("../element/types").NonDeletedExcalidrawElement;
1912
+ state: "active" | "hover";
1913
+ } | null;
1914
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1915
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1916
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1917
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1918
+ isBindingEnabled: boolean;
1919
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1920
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1921
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1922
+ frameRendering: {
1923
+ enabled: boolean;
1924
+ name: boolean;
1925
+ outline: boolean;
1926
+ clip: boolean;
1927
+ };
1928
+ editingFrame: string | null;
1929
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1930
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1931
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1932
+ activeTool: {
1933
+ lastActiveTool: import("../../src/types").LastActiveTool;
1934
+ locked: boolean;
1935
+ } & ({
1936
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1937
+ customType: null;
1938
+ } | {
1939
+ type: "custom";
1940
+ customType: string;
1941
+ });
1942
+ penMode: boolean;
1943
+ penDetected: boolean;
1944
+ exportBackground: boolean;
1945
+ exportEmbedScene: boolean;
1946
+ exportWithDarkMode: boolean;
1947
+ exportScale: number;
1948
+ currentItemStrokeColor: string;
1949
+ currentItemBackgroundColor: string;
1950
+ currentItemFillStyle: import("../element/types").FillStyle;
1951
+ currentItemStrokeWidth: number;
1952
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1953
+ currentItemRoughness: number;
1954
+ currentItemOpacity: number;
1955
+ currentItemFontFamily: number;
1956
+ currentItemFontSize: number;
1957
+ currentItemTextAlign: string;
1958
+ currentItemStartArrowhead: Arrowhead | null;
1959
+ currentItemEndArrowhead: Arrowhead | null;
1960
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1961
+ viewBackgroundColor: string;
1962
+ scrollX: number;
1963
+ scrollY: number;
1964
+ cursorButton: "up" | "down";
1965
+ scrolledOutside: boolean;
1966
+ name: string;
1967
+ isResizing: boolean;
1968
+ isRotating: boolean;
1969
+ zoom: Readonly<{
1970
+ value: import("../../src/types").NormalizedZoomValue;
1971
+ }>;
1972
+ openMenu: "canvas" | "shape" | null;
1973
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1974
+ openSidebar: {
1975
+ name: string;
1976
+ tab?: string | undefined;
1977
+ } | null;
1978
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1979
+ defaultSidebarDockedPreference: boolean;
1980
+ lastPointerDownWith: import("../element/types").PointerType;
1981
+ selectedElementIds: Readonly<{
1982
+ [id: string]: true;
1983
+ }>;
1984
+ previousSelectedElementIds: {
1985
+ [id: string]: true;
1986
+ };
1987
+ selectedElementsAreBeingDragged: boolean;
1988
+ shouldCacheIgnoreZoom: boolean;
1989
+ toast: {
1990
+ message: string;
1991
+ closable?: boolean | undefined;
1992
+ duration?: number | undefined;
1993
+ } | null;
1994
+ zenModeEnabled: boolean;
1995
+ theme: import("../element/types").Theme;
1996
+ gridSize: number | null;
1997
+ previousGridSize: number | null;
1998
+ viewModeEnabled: boolean;
1999
+ selectedGroupIds: {
2000
+ [groupId: string]: boolean;
2001
+ };
2002
+ editingGroupId: string | null;
2003
+ width: number;
2004
+ height: number;
2005
+ offsetTop: number;
2006
+ offsetLeft: number;
2007
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
2008
+ collaborators: Map<string, import("../../src/types").Collaborator>;
2009
+ showStats: boolean;
2010
+ currentChartType: import("../element/types").ChartType;
2011
+ pasteDialog: {
2012
+ shown: false;
2013
+ data: null;
2014
+ } | {
2015
+ shown: true;
2016
+ data: import("../charts").Spreadsheet;
2017
+ };
2018
+ pendingImageElementId: string | null;
2019
+ showHyperlinkPopup: false | "editor" | "info";
2020
+ linkOpacity: number;
2021
+ trayModeEnabled: boolean;
2022
+ colorPalette?: {
2023
+ canvasBackground: import("../colors").ColorPaletteCustom;
2024
+ elementBackground: import("../colors").ColorPaletteCustom;
2025
+ elementStroke: import("../colors").ColorPaletteCustom;
2026
+ topPicks: {
2027
+ canvasBackground: [string, string, string, string, string];
2028
+ elementStroke: [string, string, string, string, string];
2029
+ elementBackground: [string, string, string, string, string];
2030
+ };
2031
+ } | undefined;
2032
+ allowWheelZoom?: boolean | undefined;
2033
+ allowPinchZoom?: boolean | undefined;
2034
+ pinnedScripts?: string[] | undefined;
2035
+ customPens?: any[] | undefined;
2036
+ currentStrokeOptions?: any;
2037
+ resetCustomPen?: any;
2038
+ gridColor: {
2039
+ Bold: string;
2040
+ Regular: string;
2041
+ };
2042
+ dynamicStyle: string;
2043
+ invertBindingBehaviour: boolean;
2044
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2045
+ };
2046
+ commitToHistory: true;
2047
+ };
2048
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
2049
+ } & {
2050
+ keyTest?: undefined;
2051
+ };