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

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 +452 -440
  5. package/types/actions/actionAlign.d.ts +96 -96
  6. package/types/actions/actionBoundText.d.ts +338 -330
  7. package/types/actions/actionCanvas.d.ts +1892 -1844
  8. package/types/actions/actionClipboard.d.ts +848 -828
  9. package/types/actions/actionDeleteSelected.d.ts +486 -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 +323 -315
  13. package/types/actions/actionExport.d.ts +1424 -1388
  14. package/types/actions/actionFinalize.d.ts +306 -298
  15. package/types/actions/actionFlip.d.ts +32 -32
  16. package/types/actions/actionFrame.d.ts +501 -489
  17. package/types/actions/actionGroup.d.ts +334 -326
  18. package/types/actions/actionHistory.d.ts +6 -6
  19. package/types/actions/actionLinearEditor.d.ts +161 -157
  20. package/types/actions/actionMenu.d.ts +490 -478
  21. package/types/actions/actionNavigate.d.ts +14 -14
  22. package/types/actions/actionProperties.d.ts +2064 -2012
  23. package/types/actions/actionSelectAll.d.ts +161 -157
  24. package/types/actions/actionStyles.d.ts +175 -171
  25. package/types/actions/actionToggleGridMode.d.ts +164 -160
  26. package/types/actions/actionToggleStats.d.ts +161 -157
  27. package/types/actions/actionToggleViewMode.d.ts +163 -159
  28. package/types/actions/actionToggleZenMode.d.ts +163 -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 +185 -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 +179 -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 +296 -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 +547 -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,2064 @@
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
+ MajorGridFrequency?: number | undefined;
165
+ };
166
+ dynamicStyle: string;
167
+ invertBindingBehaviour: boolean;
168
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
169
+ };
170
+ commitToHistory: true;
171
+ };
172
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
173
+ } & {
174
+ keyTest?: undefined;
175
+ };
176
+ export declare const actionChangeStrokeWidth: {
177
+ name: "changeStrokeWidth";
178
+ trackEvent: false;
179
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
180
+ elements: ExcalidrawElement[];
181
+ appState: {
182
+ currentItemStrokeWidth: any;
183
+ contextMenu: {
184
+ items: import("../components/ContextMenu").ContextMenuItems;
185
+ top: number;
186
+ left: number;
187
+ } | null;
188
+ showWelcomeScreen: boolean;
189
+ isLoading: boolean;
190
+ errorMessage: import("react").ReactNode;
191
+ activeEmbeddable: {
192
+ element: import("../element/types").NonDeletedExcalidrawElement;
193
+ state: "active" | "hover";
194
+ } | null;
195
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
196
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
197
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
198
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
199
+ isBindingEnabled: boolean;
200
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
201
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
202
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
203
+ frameRendering: {
204
+ enabled: boolean;
205
+ name: boolean;
206
+ outline: boolean;
207
+ clip: boolean;
208
+ };
209
+ editingFrame: string | null;
210
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
211
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
212
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
213
+ activeTool: {
214
+ lastActiveTool: import("../../src/types").LastActiveTool;
215
+ locked: boolean;
216
+ } & ({
217
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
218
+ customType: null;
219
+ } | {
220
+ type: "custom";
221
+ customType: string;
222
+ });
223
+ penMode: boolean;
224
+ penDetected: boolean;
225
+ exportBackground: boolean;
226
+ exportEmbedScene: boolean;
227
+ exportWithDarkMode: boolean;
228
+ exportScale: number;
229
+ currentItemStrokeColor: string;
230
+ currentItemBackgroundColor: string;
231
+ currentItemFillStyle: import("../element/types").FillStyle;
232
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
233
+ currentItemRoughness: number;
234
+ currentItemOpacity: number;
235
+ currentItemFontFamily: number;
236
+ currentItemFontSize: number;
237
+ currentItemTextAlign: string;
238
+ currentItemStartArrowhead: Arrowhead | null;
239
+ currentItemEndArrowhead: Arrowhead | null;
240
+ currentItemRoundness: import("../element/types").StrokeRoundness;
241
+ viewBackgroundColor: string;
242
+ scrollX: number;
243
+ scrollY: number;
244
+ cursorButton: "up" | "down";
245
+ scrolledOutside: boolean;
246
+ name: string;
247
+ isResizing: boolean;
248
+ isRotating: boolean;
249
+ zoom: Readonly<{
250
+ value: import("../../src/types").NormalizedZoomValue;
251
+ }>;
252
+ openMenu: "canvas" | "shape" | null;
253
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
254
+ openSidebar: {
255
+ name: string;
256
+ tab?: string | undefined;
257
+ } | null;
258
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
259
+ defaultSidebarDockedPreference: boolean;
260
+ lastPointerDownWith: import("../element/types").PointerType;
261
+ selectedElementIds: Readonly<{
262
+ [id: string]: true;
263
+ }>;
264
+ previousSelectedElementIds: {
265
+ [id: string]: true;
266
+ };
267
+ selectedElementsAreBeingDragged: boolean;
268
+ shouldCacheIgnoreZoom: boolean;
269
+ toast: {
270
+ message: string;
271
+ closable?: boolean | undefined;
272
+ duration?: number | undefined;
273
+ } | null;
274
+ zenModeEnabled: boolean;
275
+ theme: import("../element/types").Theme;
276
+ gridSize: number | null;
277
+ previousGridSize: number | null;
278
+ viewModeEnabled: boolean;
279
+ selectedGroupIds: {
280
+ [groupId: string]: boolean;
281
+ };
282
+ editingGroupId: string | null;
283
+ width: number;
284
+ height: number;
285
+ offsetTop: number;
286
+ offsetLeft: number;
287
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
288
+ collaborators: Map<string, import("../../src/types").Collaborator>;
289
+ showStats: boolean;
290
+ currentChartType: import("../element/types").ChartType;
291
+ pasteDialog: {
292
+ shown: false;
293
+ data: null;
294
+ } | {
295
+ shown: true;
296
+ data: import("../charts").Spreadsheet;
297
+ };
298
+ pendingImageElementId: string | null;
299
+ showHyperlinkPopup: false | "editor" | "info";
300
+ linkOpacity: number;
301
+ trayModeEnabled: boolean;
302
+ colorPalette?: {
303
+ canvasBackground: import("../colors").ColorPaletteCustom;
304
+ elementBackground: import("../colors").ColorPaletteCustom;
305
+ elementStroke: import("../colors").ColorPaletteCustom;
306
+ topPicks: {
307
+ canvasBackground: [string, string, string, string, string];
308
+ elementStroke: [string, string, string, string, string];
309
+ elementBackground: [string, string, string, string, string];
310
+ };
311
+ } | undefined;
312
+ allowWheelZoom?: boolean | undefined;
313
+ allowPinchZoom?: boolean | undefined;
314
+ pinnedScripts?: string[] | undefined;
315
+ customPens?: any[] | undefined;
316
+ currentStrokeOptions?: any;
317
+ resetCustomPen?: any;
318
+ gridColor: {
319
+ Bold: string;
320
+ Regular: string;
321
+ MajorGridFrequency?: number | undefined;
322
+ };
323
+ dynamicStyle: string;
324
+ invertBindingBehaviour: boolean;
325
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
326
+ };
327
+ commitToHistory: true;
328
+ };
329
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
330
+ } & {
331
+ keyTest?: undefined;
332
+ };
333
+ export declare const actionChangeSloppiness: {
334
+ name: "changeSloppiness";
335
+ trackEvent: false;
336
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
337
+ elements: ExcalidrawElement[];
338
+ appState: {
339
+ currentItemRoughness: any;
340
+ contextMenu: {
341
+ items: import("../components/ContextMenu").ContextMenuItems;
342
+ top: number;
343
+ left: number;
344
+ } | null;
345
+ showWelcomeScreen: boolean;
346
+ isLoading: boolean;
347
+ errorMessage: import("react").ReactNode;
348
+ activeEmbeddable: {
349
+ element: import("../element/types").NonDeletedExcalidrawElement;
350
+ state: "active" | "hover";
351
+ } | null;
352
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
353
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
354
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
355
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
356
+ isBindingEnabled: boolean;
357
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
358
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
359
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
360
+ frameRendering: {
361
+ enabled: boolean;
362
+ name: boolean;
363
+ outline: boolean;
364
+ clip: boolean;
365
+ };
366
+ editingFrame: string | null;
367
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
368
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
369
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
370
+ activeTool: {
371
+ lastActiveTool: import("../../src/types").LastActiveTool;
372
+ locked: boolean;
373
+ } & ({
374
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
375
+ customType: null;
376
+ } | {
377
+ type: "custom";
378
+ customType: string;
379
+ });
380
+ penMode: boolean;
381
+ penDetected: boolean;
382
+ exportBackground: boolean;
383
+ exportEmbedScene: boolean;
384
+ exportWithDarkMode: boolean;
385
+ exportScale: number;
386
+ currentItemStrokeColor: string;
387
+ currentItemBackgroundColor: string;
388
+ currentItemFillStyle: import("../element/types").FillStyle;
389
+ currentItemStrokeWidth: number;
390
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
391
+ currentItemOpacity: number;
392
+ currentItemFontFamily: number;
393
+ currentItemFontSize: number;
394
+ currentItemTextAlign: string;
395
+ currentItemStartArrowhead: Arrowhead | null;
396
+ currentItemEndArrowhead: Arrowhead | null;
397
+ currentItemRoundness: import("../element/types").StrokeRoundness;
398
+ viewBackgroundColor: string;
399
+ scrollX: number;
400
+ scrollY: number;
401
+ cursorButton: "up" | "down";
402
+ scrolledOutside: boolean;
403
+ name: string;
404
+ isResizing: boolean;
405
+ isRotating: boolean;
406
+ zoom: Readonly<{
407
+ value: import("../../src/types").NormalizedZoomValue;
408
+ }>;
409
+ openMenu: "canvas" | "shape" | null;
410
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
411
+ openSidebar: {
412
+ name: string;
413
+ tab?: string | undefined;
414
+ } | null;
415
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
416
+ defaultSidebarDockedPreference: boolean;
417
+ lastPointerDownWith: import("../element/types").PointerType;
418
+ selectedElementIds: Readonly<{
419
+ [id: string]: true;
420
+ }>;
421
+ previousSelectedElementIds: {
422
+ [id: string]: true;
423
+ };
424
+ selectedElementsAreBeingDragged: boolean;
425
+ shouldCacheIgnoreZoom: boolean;
426
+ toast: {
427
+ message: string;
428
+ closable?: boolean | undefined;
429
+ duration?: number | undefined;
430
+ } | null;
431
+ zenModeEnabled: boolean;
432
+ theme: import("../element/types").Theme;
433
+ gridSize: number | null;
434
+ previousGridSize: number | null;
435
+ viewModeEnabled: boolean;
436
+ selectedGroupIds: {
437
+ [groupId: string]: boolean;
438
+ };
439
+ editingGroupId: string | null;
440
+ width: number;
441
+ height: number;
442
+ offsetTop: number;
443
+ offsetLeft: number;
444
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
445
+ collaborators: Map<string, import("../../src/types").Collaborator>;
446
+ showStats: boolean;
447
+ currentChartType: import("../element/types").ChartType;
448
+ pasteDialog: {
449
+ shown: false;
450
+ data: null;
451
+ } | {
452
+ shown: true;
453
+ data: import("../charts").Spreadsheet;
454
+ };
455
+ pendingImageElementId: string | null;
456
+ showHyperlinkPopup: false | "editor" | "info";
457
+ linkOpacity: number;
458
+ trayModeEnabled: boolean;
459
+ colorPalette?: {
460
+ canvasBackground: import("../colors").ColorPaletteCustom;
461
+ elementBackground: import("../colors").ColorPaletteCustom;
462
+ elementStroke: import("../colors").ColorPaletteCustom;
463
+ topPicks: {
464
+ canvasBackground: [string, string, string, string, string];
465
+ elementStroke: [string, string, string, string, string];
466
+ elementBackground: [string, string, string, string, string];
467
+ };
468
+ } | undefined;
469
+ allowWheelZoom?: boolean | undefined;
470
+ allowPinchZoom?: boolean | undefined;
471
+ pinnedScripts?: string[] | undefined;
472
+ customPens?: any[] | undefined;
473
+ currentStrokeOptions?: any;
474
+ resetCustomPen?: any;
475
+ gridColor: {
476
+ Bold: string;
477
+ Regular: string;
478
+ MajorGridFrequency?: number | undefined;
479
+ };
480
+ dynamicStyle: string;
481
+ invertBindingBehaviour: boolean;
482
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
483
+ };
484
+ commitToHistory: true;
485
+ };
486
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
487
+ } & {
488
+ keyTest?: undefined;
489
+ };
490
+ export declare const actionChangeStrokeStyle: {
491
+ name: "changeStrokeStyle";
492
+ trackEvent: false;
493
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
494
+ elements: ExcalidrawElement[];
495
+ appState: {
496
+ currentItemStrokeStyle: any;
497
+ contextMenu: {
498
+ items: import("../components/ContextMenu").ContextMenuItems;
499
+ top: number;
500
+ left: number;
501
+ } | null;
502
+ showWelcomeScreen: boolean;
503
+ isLoading: boolean;
504
+ errorMessage: import("react").ReactNode;
505
+ activeEmbeddable: {
506
+ element: import("../element/types").NonDeletedExcalidrawElement;
507
+ state: "active" | "hover";
508
+ } | null;
509
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
510
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
511
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
512
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
513
+ isBindingEnabled: boolean;
514
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
515
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
516
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
517
+ frameRendering: {
518
+ enabled: boolean;
519
+ name: boolean;
520
+ outline: boolean;
521
+ clip: boolean;
522
+ };
523
+ editingFrame: string | null;
524
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
525
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
526
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
527
+ activeTool: {
528
+ lastActiveTool: import("../../src/types").LastActiveTool;
529
+ locked: boolean;
530
+ } & ({
531
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
532
+ customType: null;
533
+ } | {
534
+ type: "custom";
535
+ customType: string;
536
+ });
537
+ penMode: boolean;
538
+ penDetected: boolean;
539
+ exportBackground: boolean;
540
+ exportEmbedScene: boolean;
541
+ exportWithDarkMode: boolean;
542
+ exportScale: number;
543
+ currentItemStrokeColor: string;
544
+ currentItemBackgroundColor: string;
545
+ currentItemFillStyle: import("../element/types").FillStyle;
546
+ currentItemStrokeWidth: number;
547
+ currentItemRoughness: number;
548
+ currentItemOpacity: number;
549
+ currentItemFontFamily: number;
550
+ currentItemFontSize: number;
551
+ currentItemTextAlign: string;
552
+ currentItemStartArrowhead: Arrowhead | null;
553
+ currentItemEndArrowhead: Arrowhead | null;
554
+ currentItemRoundness: import("../element/types").StrokeRoundness;
555
+ viewBackgroundColor: string;
556
+ scrollX: number;
557
+ scrollY: number;
558
+ cursorButton: "up" | "down";
559
+ scrolledOutside: boolean;
560
+ name: string;
561
+ isResizing: boolean;
562
+ isRotating: boolean;
563
+ zoom: Readonly<{
564
+ value: import("../../src/types").NormalizedZoomValue;
565
+ }>;
566
+ openMenu: "canvas" | "shape" | null;
567
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
568
+ openSidebar: {
569
+ name: string;
570
+ tab?: string | undefined;
571
+ } | null;
572
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
573
+ defaultSidebarDockedPreference: boolean;
574
+ lastPointerDownWith: import("../element/types").PointerType;
575
+ selectedElementIds: Readonly<{
576
+ [id: string]: true;
577
+ }>;
578
+ previousSelectedElementIds: {
579
+ [id: string]: true;
580
+ };
581
+ selectedElementsAreBeingDragged: boolean;
582
+ shouldCacheIgnoreZoom: boolean;
583
+ toast: {
584
+ message: string;
585
+ closable?: boolean | undefined;
586
+ duration?: number | undefined;
587
+ } | null;
588
+ zenModeEnabled: boolean;
589
+ theme: import("../element/types").Theme;
590
+ gridSize: number | null;
591
+ previousGridSize: number | null;
592
+ viewModeEnabled: boolean;
593
+ selectedGroupIds: {
594
+ [groupId: string]: boolean;
595
+ };
596
+ editingGroupId: string | null;
597
+ width: number;
598
+ height: number;
599
+ offsetTop: number;
600
+ offsetLeft: number;
601
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
602
+ collaborators: Map<string, import("../../src/types").Collaborator>;
603
+ showStats: boolean;
604
+ currentChartType: import("../element/types").ChartType;
605
+ pasteDialog: {
606
+ shown: false;
607
+ data: null;
608
+ } | {
609
+ shown: true;
610
+ data: import("../charts").Spreadsheet;
611
+ };
612
+ pendingImageElementId: string | null;
613
+ showHyperlinkPopup: false | "editor" | "info";
614
+ linkOpacity: number;
615
+ trayModeEnabled: boolean;
616
+ colorPalette?: {
617
+ canvasBackground: import("../colors").ColorPaletteCustom;
618
+ elementBackground: import("../colors").ColorPaletteCustom;
619
+ elementStroke: import("../colors").ColorPaletteCustom;
620
+ topPicks: {
621
+ canvasBackground: [string, string, string, string, string];
622
+ elementStroke: [string, string, string, string, string];
623
+ elementBackground: [string, string, string, string, string];
624
+ };
625
+ } | undefined;
626
+ allowWheelZoom?: boolean | undefined;
627
+ allowPinchZoom?: boolean | undefined;
628
+ pinnedScripts?: string[] | undefined;
629
+ customPens?: any[] | undefined;
630
+ currentStrokeOptions?: any;
631
+ resetCustomPen?: any;
632
+ gridColor: {
633
+ Bold: string;
634
+ Regular: string;
635
+ MajorGridFrequency?: number | undefined;
636
+ };
637
+ dynamicStyle: string;
638
+ invertBindingBehaviour: boolean;
639
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
640
+ };
641
+ commitToHistory: true;
642
+ };
643
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
644
+ } & {
645
+ keyTest?: undefined;
646
+ };
647
+ export declare const actionChangeOpacity: {
648
+ name: "changeOpacity";
649
+ trackEvent: false;
650
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
651
+ elements: ExcalidrawElement[];
652
+ appState: {
653
+ currentItemOpacity: any;
654
+ contextMenu: {
655
+ items: import("../components/ContextMenu").ContextMenuItems;
656
+ top: number;
657
+ left: number;
658
+ } | null;
659
+ showWelcomeScreen: boolean;
660
+ isLoading: boolean;
661
+ errorMessage: import("react").ReactNode;
662
+ activeEmbeddable: {
663
+ element: import("../element/types").NonDeletedExcalidrawElement;
664
+ state: "active" | "hover";
665
+ } | null;
666
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
667
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
668
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
669
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
670
+ isBindingEnabled: boolean;
671
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
672
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
673
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
674
+ frameRendering: {
675
+ enabled: boolean;
676
+ name: boolean;
677
+ outline: boolean;
678
+ clip: boolean;
679
+ };
680
+ editingFrame: string | null;
681
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
682
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
683
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
684
+ activeTool: {
685
+ lastActiveTool: import("../../src/types").LastActiveTool;
686
+ locked: boolean;
687
+ } & ({
688
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
689
+ customType: null;
690
+ } | {
691
+ type: "custom";
692
+ customType: string;
693
+ });
694
+ penMode: boolean;
695
+ penDetected: boolean;
696
+ exportBackground: boolean;
697
+ exportEmbedScene: boolean;
698
+ exportWithDarkMode: boolean;
699
+ exportScale: number;
700
+ currentItemStrokeColor: string;
701
+ currentItemBackgroundColor: string;
702
+ currentItemFillStyle: import("../element/types").FillStyle;
703
+ currentItemStrokeWidth: number;
704
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
705
+ currentItemRoughness: number;
706
+ currentItemFontFamily: number;
707
+ currentItemFontSize: number;
708
+ currentItemTextAlign: string;
709
+ currentItemStartArrowhead: Arrowhead | null;
710
+ currentItemEndArrowhead: Arrowhead | null;
711
+ currentItemRoundness: import("../element/types").StrokeRoundness;
712
+ viewBackgroundColor: string;
713
+ scrollX: number;
714
+ scrollY: number;
715
+ cursorButton: "up" | "down";
716
+ scrolledOutside: boolean;
717
+ name: string;
718
+ isResizing: boolean;
719
+ isRotating: boolean;
720
+ zoom: Readonly<{
721
+ value: import("../../src/types").NormalizedZoomValue;
722
+ }>;
723
+ openMenu: "canvas" | "shape" | null;
724
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
725
+ openSidebar: {
726
+ name: string;
727
+ tab?: string | undefined;
728
+ } | null;
729
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
730
+ defaultSidebarDockedPreference: boolean;
731
+ lastPointerDownWith: import("../element/types").PointerType;
732
+ selectedElementIds: Readonly<{
733
+ [id: string]: true;
734
+ }>;
735
+ previousSelectedElementIds: {
736
+ [id: string]: true;
737
+ };
738
+ selectedElementsAreBeingDragged: boolean;
739
+ shouldCacheIgnoreZoom: boolean;
740
+ toast: {
741
+ message: string;
742
+ closable?: boolean | undefined;
743
+ duration?: number | undefined;
744
+ } | null;
745
+ zenModeEnabled: boolean;
746
+ theme: import("../element/types").Theme;
747
+ gridSize: number | null;
748
+ previousGridSize: number | null;
749
+ viewModeEnabled: boolean;
750
+ selectedGroupIds: {
751
+ [groupId: string]: boolean;
752
+ };
753
+ editingGroupId: string | null;
754
+ width: number;
755
+ height: number;
756
+ offsetTop: number;
757
+ offsetLeft: number;
758
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
759
+ collaborators: Map<string, import("../../src/types").Collaborator>;
760
+ showStats: boolean;
761
+ currentChartType: import("../element/types").ChartType;
762
+ pasteDialog: {
763
+ shown: false;
764
+ data: null;
765
+ } | {
766
+ shown: true;
767
+ data: import("../charts").Spreadsheet;
768
+ };
769
+ pendingImageElementId: string | null;
770
+ showHyperlinkPopup: false | "editor" | "info";
771
+ linkOpacity: number;
772
+ trayModeEnabled: boolean;
773
+ colorPalette?: {
774
+ canvasBackground: import("../colors").ColorPaletteCustom;
775
+ elementBackground: import("../colors").ColorPaletteCustom;
776
+ elementStroke: import("../colors").ColorPaletteCustom;
777
+ topPicks: {
778
+ canvasBackground: [string, string, string, string, string];
779
+ elementStroke: [string, string, string, string, string];
780
+ elementBackground: [string, string, string, string, string];
781
+ };
782
+ } | undefined;
783
+ allowWheelZoom?: boolean | undefined;
784
+ allowPinchZoom?: boolean | undefined;
785
+ pinnedScripts?: string[] | undefined;
786
+ customPens?: any[] | undefined;
787
+ currentStrokeOptions?: any;
788
+ resetCustomPen?: any;
789
+ gridColor: {
790
+ Bold: string;
791
+ Regular: string;
792
+ MajorGridFrequency?: number | undefined;
793
+ };
794
+ dynamicStyle: string;
795
+ invertBindingBehaviour: boolean;
796
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
797
+ };
798
+ commitToHistory: true;
799
+ };
800
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
801
+ } & {
802
+ keyTest?: undefined;
803
+ };
804
+ export declare const actionChangeFontSize: {
805
+ name: "changeFontSize";
806
+ trackEvent: false;
807
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
808
+ elements: ExcalidrawElement[];
809
+ appState: {
810
+ currentItemFontSize: number;
811
+ contextMenu: {
812
+ items: import("../components/ContextMenu").ContextMenuItems;
813
+ top: number;
814
+ left: number;
815
+ } | null;
816
+ showWelcomeScreen: boolean;
817
+ isLoading: boolean;
818
+ errorMessage: import("react").ReactNode;
819
+ activeEmbeddable: {
820
+ element: import("../element/types").NonDeletedExcalidrawElement;
821
+ state: "active" | "hover";
822
+ } | null;
823
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
824
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
825
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
826
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
827
+ isBindingEnabled: boolean;
828
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
829
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
830
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
831
+ frameRendering: {
832
+ enabled: boolean;
833
+ name: boolean;
834
+ outline: boolean;
835
+ clip: boolean;
836
+ };
837
+ editingFrame: string | null;
838
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
839
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
840
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
841
+ activeTool: {
842
+ lastActiveTool: import("../../src/types").LastActiveTool;
843
+ locked: boolean;
844
+ } & ({
845
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
846
+ customType: null;
847
+ } | {
848
+ type: "custom";
849
+ customType: string;
850
+ });
851
+ penMode: boolean;
852
+ penDetected: boolean;
853
+ exportBackground: boolean;
854
+ exportEmbedScene: boolean;
855
+ exportWithDarkMode: boolean;
856
+ exportScale: number;
857
+ currentItemStrokeColor: string;
858
+ currentItemBackgroundColor: string;
859
+ currentItemFillStyle: import("../element/types").FillStyle;
860
+ currentItemStrokeWidth: number;
861
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
862
+ currentItemRoughness: number;
863
+ currentItemOpacity: number;
864
+ currentItemFontFamily: number;
865
+ currentItemTextAlign: string;
866
+ currentItemStartArrowhead: Arrowhead | null;
867
+ currentItemEndArrowhead: Arrowhead | null;
868
+ currentItemRoundness: import("../element/types").StrokeRoundness;
869
+ viewBackgroundColor: string;
870
+ scrollX: number;
871
+ scrollY: number;
872
+ cursorButton: "up" | "down";
873
+ scrolledOutside: boolean;
874
+ name: string;
875
+ isResizing: boolean;
876
+ isRotating: boolean;
877
+ zoom: Readonly<{
878
+ value: import("../../src/types").NormalizedZoomValue;
879
+ }>;
880
+ openMenu: "canvas" | "shape" | null;
881
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
882
+ openSidebar: {
883
+ name: string;
884
+ tab?: string | undefined;
885
+ } | null;
886
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
887
+ defaultSidebarDockedPreference: boolean;
888
+ lastPointerDownWith: import("../element/types").PointerType;
889
+ selectedElementIds: Readonly<{
890
+ [id: string]: true;
891
+ }>;
892
+ previousSelectedElementIds: {
893
+ [id: string]: true;
894
+ };
895
+ selectedElementsAreBeingDragged: boolean;
896
+ shouldCacheIgnoreZoom: boolean;
897
+ toast: {
898
+ message: string;
899
+ closable?: boolean | undefined;
900
+ duration?: number | undefined;
901
+ } | null;
902
+ zenModeEnabled: boolean;
903
+ theme: import("../element/types").Theme;
904
+ gridSize: number | null;
905
+ previousGridSize: number | null;
906
+ viewModeEnabled: boolean;
907
+ selectedGroupIds: {
908
+ [groupId: string]: boolean;
909
+ };
910
+ editingGroupId: string | null;
911
+ width: number;
912
+ height: number;
913
+ offsetTop: number;
914
+ offsetLeft: number;
915
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
916
+ collaborators: Map<string, import("../../src/types").Collaborator>;
917
+ showStats: boolean;
918
+ currentChartType: import("../element/types").ChartType;
919
+ pasteDialog: {
920
+ shown: false;
921
+ data: null;
922
+ } | {
923
+ shown: true;
924
+ data: import("../charts").Spreadsheet;
925
+ };
926
+ pendingImageElementId: string | null;
927
+ showHyperlinkPopup: false | "editor" | "info";
928
+ linkOpacity: number;
929
+ trayModeEnabled: boolean;
930
+ colorPalette?: {
931
+ canvasBackground: import("../colors").ColorPaletteCustom;
932
+ elementBackground: import("../colors").ColorPaletteCustom;
933
+ elementStroke: import("../colors").ColorPaletteCustom;
934
+ topPicks: {
935
+ canvasBackground: [string, string, string, string, string];
936
+ elementStroke: [string, string, string, string, string];
937
+ elementBackground: [string, string, string, string, string];
938
+ };
939
+ } | undefined;
940
+ allowWheelZoom?: boolean | undefined;
941
+ allowPinchZoom?: boolean | undefined;
942
+ pinnedScripts?: string[] | undefined;
943
+ customPens?: any[] | undefined;
944
+ currentStrokeOptions?: any;
945
+ resetCustomPen?: any;
946
+ gridColor: {
947
+ Bold: string;
948
+ Regular: string;
949
+ MajorGridFrequency?: number | undefined;
950
+ };
951
+ dynamicStyle: string;
952
+ invertBindingBehaviour: boolean;
953
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
954
+ };
955
+ commitToHistory: boolean;
956
+ };
957
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
958
+ } & {
959
+ keyTest?: undefined;
960
+ };
961
+ export declare const actionDecreaseFontSize: {
962
+ name: "decreaseFontSize";
963
+ trackEvent: false;
964
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
965
+ elements: ExcalidrawElement[];
966
+ appState: {
967
+ currentItemFontSize: number;
968
+ contextMenu: {
969
+ items: import("../components/ContextMenu").ContextMenuItems;
970
+ top: number;
971
+ left: number;
972
+ } | null;
973
+ showWelcomeScreen: boolean;
974
+ isLoading: boolean;
975
+ errorMessage: import("react").ReactNode;
976
+ activeEmbeddable: {
977
+ element: import("../element/types").NonDeletedExcalidrawElement;
978
+ state: "active" | "hover";
979
+ } | null;
980
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
981
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
982
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
983
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
984
+ isBindingEnabled: boolean;
985
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
986
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
987
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
988
+ frameRendering: {
989
+ enabled: boolean;
990
+ name: boolean;
991
+ outline: boolean;
992
+ clip: boolean;
993
+ };
994
+ editingFrame: string | null;
995
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
996
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
997
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
998
+ activeTool: {
999
+ lastActiveTool: import("../../src/types").LastActiveTool;
1000
+ locked: boolean;
1001
+ } & ({
1002
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1003
+ customType: null;
1004
+ } | {
1005
+ type: "custom";
1006
+ customType: string;
1007
+ });
1008
+ penMode: boolean;
1009
+ penDetected: boolean;
1010
+ exportBackground: boolean;
1011
+ exportEmbedScene: boolean;
1012
+ exportWithDarkMode: boolean;
1013
+ exportScale: number;
1014
+ currentItemStrokeColor: string;
1015
+ currentItemBackgroundColor: string;
1016
+ currentItemFillStyle: import("../element/types").FillStyle;
1017
+ currentItemStrokeWidth: number;
1018
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1019
+ currentItemRoughness: number;
1020
+ currentItemOpacity: number;
1021
+ currentItemFontFamily: number;
1022
+ currentItemTextAlign: string;
1023
+ currentItemStartArrowhead: Arrowhead | null;
1024
+ currentItemEndArrowhead: Arrowhead | null;
1025
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1026
+ viewBackgroundColor: string;
1027
+ scrollX: number;
1028
+ scrollY: number;
1029
+ cursorButton: "up" | "down";
1030
+ scrolledOutside: boolean;
1031
+ name: string;
1032
+ isResizing: boolean;
1033
+ isRotating: boolean;
1034
+ zoom: Readonly<{
1035
+ value: import("../../src/types").NormalizedZoomValue;
1036
+ }>;
1037
+ openMenu: "canvas" | "shape" | null;
1038
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1039
+ openSidebar: {
1040
+ name: string;
1041
+ tab?: string | undefined;
1042
+ } | null;
1043
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1044
+ defaultSidebarDockedPreference: boolean;
1045
+ lastPointerDownWith: import("../element/types").PointerType;
1046
+ selectedElementIds: Readonly<{
1047
+ [id: string]: true;
1048
+ }>;
1049
+ previousSelectedElementIds: {
1050
+ [id: string]: true;
1051
+ };
1052
+ selectedElementsAreBeingDragged: boolean;
1053
+ shouldCacheIgnoreZoom: boolean;
1054
+ toast: {
1055
+ message: string;
1056
+ closable?: boolean | undefined;
1057
+ duration?: number | undefined;
1058
+ } | null;
1059
+ zenModeEnabled: boolean;
1060
+ theme: import("../element/types").Theme;
1061
+ gridSize: number | null;
1062
+ previousGridSize: number | null;
1063
+ viewModeEnabled: boolean;
1064
+ selectedGroupIds: {
1065
+ [groupId: string]: boolean;
1066
+ };
1067
+ editingGroupId: string | null;
1068
+ width: number;
1069
+ height: number;
1070
+ offsetTop: number;
1071
+ offsetLeft: number;
1072
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1073
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1074
+ showStats: boolean;
1075
+ currentChartType: import("../element/types").ChartType;
1076
+ pasteDialog: {
1077
+ shown: false;
1078
+ data: null;
1079
+ } | {
1080
+ shown: true;
1081
+ data: import("../charts").Spreadsheet;
1082
+ };
1083
+ pendingImageElementId: string | null;
1084
+ showHyperlinkPopup: false | "editor" | "info";
1085
+ linkOpacity: number;
1086
+ trayModeEnabled: boolean;
1087
+ colorPalette?: {
1088
+ canvasBackground: import("../colors").ColorPaletteCustom;
1089
+ elementBackground: import("../colors").ColorPaletteCustom;
1090
+ elementStroke: import("../colors").ColorPaletteCustom;
1091
+ topPicks: {
1092
+ canvasBackground: [string, string, string, string, string];
1093
+ elementStroke: [string, string, string, string, string];
1094
+ elementBackground: [string, string, string, string, string];
1095
+ };
1096
+ } | undefined;
1097
+ allowWheelZoom?: boolean | undefined;
1098
+ allowPinchZoom?: boolean | undefined;
1099
+ pinnedScripts?: string[] | undefined;
1100
+ customPens?: any[] | undefined;
1101
+ currentStrokeOptions?: any;
1102
+ resetCustomPen?: any;
1103
+ gridColor: {
1104
+ Bold: string;
1105
+ Regular: string;
1106
+ MajorGridFrequency?: number | undefined;
1107
+ };
1108
+ dynamicStyle: string;
1109
+ invertBindingBehaviour: boolean;
1110
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1111
+ };
1112
+ commitToHistory: boolean;
1113
+ };
1114
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1115
+ } & {
1116
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1117
+ };
1118
+ export declare const actionIncreaseFontSize: {
1119
+ name: "increaseFontSize";
1120
+ trackEvent: false;
1121
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1122
+ elements: ExcalidrawElement[];
1123
+ appState: {
1124
+ currentItemFontSize: number;
1125
+ contextMenu: {
1126
+ items: import("../components/ContextMenu").ContextMenuItems;
1127
+ top: number;
1128
+ left: number;
1129
+ } | null;
1130
+ showWelcomeScreen: boolean;
1131
+ isLoading: boolean;
1132
+ errorMessage: import("react").ReactNode;
1133
+ activeEmbeddable: {
1134
+ element: import("../element/types").NonDeletedExcalidrawElement;
1135
+ state: "active" | "hover";
1136
+ } | null;
1137
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1138
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1139
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1140
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1141
+ isBindingEnabled: boolean;
1142
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1143
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1144
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1145
+ frameRendering: {
1146
+ enabled: boolean;
1147
+ name: boolean;
1148
+ outline: boolean;
1149
+ clip: boolean;
1150
+ };
1151
+ editingFrame: string | null;
1152
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1153
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1154
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1155
+ activeTool: {
1156
+ lastActiveTool: import("../../src/types").LastActiveTool;
1157
+ locked: boolean;
1158
+ } & ({
1159
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1160
+ customType: null;
1161
+ } | {
1162
+ type: "custom";
1163
+ customType: string;
1164
+ });
1165
+ penMode: boolean;
1166
+ penDetected: boolean;
1167
+ exportBackground: boolean;
1168
+ exportEmbedScene: boolean;
1169
+ exportWithDarkMode: boolean;
1170
+ exportScale: number;
1171
+ currentItemStrokeColor: string;
1172
+ currentItemBackgroundColor: string;
1173
+ currentItemFillStyle: import("../element/types").FillStyle;
1174
+ currentItemStrokeWidth: number;
1175
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1176
+ currentItemRoughness: number;
1177
+ currentItemOpacity: number;
1178
+ currentItemFontFamily: number;
1179
+ currentItemTextAlign: string;
1180
+ currentItemStartArrowhead: Arrowhead | null;
1181
+ currentItemEndArrowhead: Arrowhead | null;
1182
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1183
+ viewBackgroundColor: string;
1184
+ scrollX: number;
1185
+ scrollY: number;
1186
+ cursorButton: "up" | "down";
1187
+ scrolledOutside: boolean;
1188
+ name: string;
1189
+ isResizing: boolean;
1190
+ isRotating: boolean;
1191
+ zoom: Readonly<{
1192
+ value: import("../../src/types").NormalizedZoomValue;
1193
+ }>;
1194
+ openMenu: "canvas" | "shape" | null;
1195
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1196
+ openSidebar: {
1197
+ name: string;
1198
+ tab?: string | undefined;
1199
+ } | null;
1200
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1201
+ defaultSidebarDockedPreference: boolean;
1202
+ lastPointerDownWith: import("../element/types").PointerType;
1203
+ selectedElementIds: Readonly<{
1204
+ [id: string]: true;
1205
+ }>;
1206
+ previousSelectedElementIds: {
1207
+ [id: string]: true;
1208
+ };
1209
+ selectedElementsAreBeingDragged: boolean;
1210
+ shouldCacheIgnoreZoom: boolean;
1211
+ toast: {
1212
+ message: string;
1213
+ closable?: boolean | undefined;
1214
+ duration?: number | undefined;
1215
+ } | null;
1216
+ zenModeEnabled: boolean;
1217
+ theme: import("../element/types").Theme;
1218
+ gridSize: number | null;
1219
+ previousGridSize: number | null;
1220
+ viewModeEnabled: boolean;
1221
+ selectedGroupIds: {
1222
+ [groupId: string]: boolean;
1223
+ };
1224
+ editingGroupId: string | null;
1225
+ width: number;
1226
+ height: number;
1227
+ offsetTop: number;
1228
+ offsetLeft: number;
1229
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1230
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1231
+ showStats: boolean;
1232
+ currentChartType: import("../element/types").ChartType;
1233
+ pasteDialog: {
1234
+ shown: false;
1235
+ data: null;
1236
+ } | {
1237
+ shown: true;
1238
+ data: import("../charts").Spreadsheet;
1239
+ };
1240
+ pendingImageElementId: string | null;
1241
+ showHyperlinkPopup: false | "editor" | "info";
1242
+ linkOpacity: number;
1243
+ trayModeEnabled: boolean;
1244
+ colorPalette?: {
1245
+ canvasBackground: import("../colors").ColorPaletteCustom;
1246
+ elementBackground: import("../colors").ColorPaletteCustom;
1247
+ elementStroke: import("../colors").ColorPaletteCustom;
1248
+ topPicks: {
1249
+ canvasBackground: [string, string, string, string, string];
1250
+ elementStroke: [string, string, string, string, string];
1251
+ elementBackground: [string, string, string, string, string];
1252
+ };
1253
+ } | undefined;
1254
+ allowWheelZoom?: boolean | undefined;
1255
+ allowPinchZoom?: boolean | undefined;
1256
+ pinnedScripts?: string[] | undefined;
1257
+ customPens?: any[] | undefined;
1258
+ currentStrokeOptions?: any;
1259
+ resetCustomPen?: any;
1260
+ gridColor: {
1261
+ Bold: string;
1262
+ Regular: string;
1263
+ MajorGridFrequency?: number | undefined;
1264
+ };
1265
+ dynamicStyle: string;
1266
+ invertBindingBehaviour: boolean;
1267
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1268
+ };
1269
+ commitToHistory: boolean;
1270
+ };
1271
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1272
+ } & {
1273
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1274
+ };
1275
+ export declare const actionChangeFontFamily: {
1276
+ name: "changeFontFamily";
1277
+ trackEvent: false;
1278
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1279
+ elements: ExcalidrawElement[];
1280
+ appState: {
1281
+ currentItemFontFamily: any;
1282
+ contextMenu: {
1283
+ items: import("../components/ContextMenu").ContextMenuItems;
1284
+ top: number;
1285
+ left: number;
1286
+ } | null;
1287
+ showWelcomeScreen: boolean;
1288
+ isLoading: boolean;
1289
+ errorMessage: import("react").ReactNode;
1290
+ activeEmbeddable: {
1291
+ element: import("../element/types").NonDeletedExcalidrawElement;
1292
+ state: "active" | "hover";
1293
+ } | null;
1294
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1295
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1296
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1297
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1298
+ isBindingEnabled: boolean;
1299
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1300
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1301
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1302
+ frameRendering: {
1303
+ enabled: boolean;
1304
+ name: boolean;
1305
+ outline: boolean;
1306
+ clip: boolean;
1307
+ };
1308
+ editingFrame: string | null;
1309
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1310
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1311
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1312
+ activeTool: {
1313
+ lastActiveTool: import("../../src/types").LastActiveTool;
1314
+ locked: boolean;
1315
+ } & ({
1316
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1317
+ customType: null;
1318
+ } | {
1319
+ type: "custom";
1320
+ customType: string;
1321
+ });
1322
+ penMode: boolean;
1323
+ penDetected: boolean;
1324
+ exportBackground: boolean;
1325
+ exportEmbedScene: boolean;
1326
+ exportWithDarkMode: boolean;
1327
+ exportScale: number;
1328
+ currentItemStrokeColor: string;
1329
+ currentItemBackgroundColor: string;
1330
+ currentItemFillStyle: import("../element/types").FillStyle;
1331
+ currentItemStrokeWidth: number;
1332
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1333
+ currentItemRoughness: number;
1334
+ currentItemOpacity: number;
1335
+ currentItemFontSize: number;
1336
+ currentItemTextAlign: string;
1337
+ currentItemStartArrowhead: Arrowhead | null;
1338
+ currentItemEndArrowhead: Arrowhead | null;
1339
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1340
+ viewBackgroundColor: string;
1341
+ scrollX: number;
1342
+ scrollY: number;
1343
+ cursorButton: "up" | "down";
1344
+ scrolledOutside: boolean;
1345
+ name: string;
1346
+ isResizing: boolean;
1347
+ isRotating: boolean;
1348
+ zoom: Readonly<{
1349
+ value: import("../../src/types").NormalizedZoomValue;
1350
+ }>;
1351
+ openMenu: "canvas" | "shape" | null;
1352
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1353
+ openSidebar: {
1354
+ name: string;
1355
+ tab?: string | undefined;
1356
+ } | null;
1357
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1358
+ defaultSidebarDockedPreference: boolean;
1359
+ lastPointerDownWith: import("../element/types").PointerType;
1360
+ selectedElementIds: Readonly<{
1361
+ [id: string]: true;
1362
+ }>;
1363
+ previousSelectedElementIds: {
1364
+ [id: string]: true;
1365
+ };
1366
+ selectedElementsAreBeingDragged: boolean;
1367
+ shouldCacheIgnoreZoom: boolean;
1368
+ toast: {
1369
+ message: string;
1370
+ closable?: boolean | undefined;
1371
+ duration?: number | undefined;
1372
+ } | null;
1373
+ zenModeEnabled: boolean;
1374
+ theme: import("../element/types").Theme;
1375
+ gridSize: number | null;
1376
+ previousGridSize: number | null;
1377
+ viewModeEnabled: boolean;
1378
+ selectedGroupIds: {
1379
+ [groupId: string]: boolean;
1380
+ };
1381
+ editingGroupId: string | null;
1382
+ width: number;
1383
+ height: number;
1384
+ offsetTop: number;
1385
+ offsetLeft: number;
1386
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1387
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1388
+ showStats: boolean;
1389
+ currentChartType: import("../element/types").ChartType;
1390
+ pasteDialog: {
1391
+ shown: false;
1392
+ data: null;
1393
+ } | {
1394
+ shown: true;
1395
+ data: import("../charts").Spreadsheet;
1396
+ };
1397
+ pendingImageElementId: string | null;
1398
+ showHyperlinkPopup: false | "editor" | "info";
1399
+ linkOpacity: number;
1400
+ trayModeEnabled: boolean;
1401
+ colorPalette?: {
1402
+ canvasBackground: import("../colors").ColorPaletteCustom;
1403
+ elementBackground: import("../colors").ColorPaletteCustom;
1404
+ elementStroke: import("../colors").ColorPaletteCustom;
1405
+ topPicks: {
1406
+ canvasBackground: [string, string, string, string, string];
1407
+ elementStroke: [string, string, string, string, string];
1408
+ elementBackground: [string, string, string, string, string];
1409
+ };
1410
+ } | undefined;
1411
+ allowWheelZoom?: boolean | undefined;
1412
+ allowPinchZoom?: boolean | undefined;
1413
+ pinnedScripts?: string[] | undefined;
1414
+ customPens?: any[] | undefined;
1415
+ currentStrokeOptions?: any;
1416
+ resetCustomPen?: any;
1417
+ gridColor: {
1418
+ Bold: string;
1419
+ Regular: string;
1420
+ MajorGridFrequency?: number | undefined;
1421
+ };
1422
+ dynamicStyle: string;
1423
+ invertBindingBehaviour: boolean;
1424
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1425
+ };
1426
+ commitToHistory: true;
1427
+ };
1428
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1429
+ } & {
1430
+ keyTest?: undefined;
1431
+ };
1432
+ export declare const actionChangeTextAlign: {
1433
+ name: "changeTextAlign";
1434
+ trackEvent: false;
1435
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1436
+ elements: ExcalidrawElement[];
1437
+ appState: {
1438
+ currentItemTextAlign: any;
1439
+ contextMenu: {
1440
+ items: import("../components/ContextMenu").ContextMenuItems;
1441
+ top: number;
1442
+ left: number;
1443
+ } | null;
1444
+ showWelcomeScreen: boolean;
1445
+ isLoading: boolean;
1446
+ errorMessage: import("react").ReactNode;
1447
+ activeEmbeddable: {
1448
+ element: import("../element/types").NonDeletedExcalidrawElement;
1449
+ state: "active" | "hover";
1450
+ } | null;
1451
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1452
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1453
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1454
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1455
+ isBindingEnabled: boolean;
1456
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1457
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1458
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1459
+ frameRendering: {
1460
+ enabled: boolean;
1461
+ name: boolean;
1462
+ outline: boolean;
1463
+ clip: boolean;
1464
+ };
1465
+ editingFrame: string | null;
1466
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1467
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1468
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1469
+ activeTool: {
1470
+ lastActiveTool: import("../../src/types").LastActiveTool;
1471
+ locked: boolean;
1472
+ } & ({
1473
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1474
+ customType: null;
1475
+ } | {
1476
+ type: "custom";
1477
+ customType: string;
1478
+ });
1479
+ penMode: boolean;
1480
+ penDetected: boolean;
1481
+ exportBackground: boolean;
1482
+ exportEmbedScene: boolean;
1483
+ exportWithDarkMode: boolean;
1484
+ exportScale: number;
1485
+ currentItemStrokeColor: string;
1486
+ currentItemBackgroundColor: string;
1487
+ currentItemFillStyle: import("../element/types").FillStyle;
1488
+ currentItemStrokeWidth: number;
1489
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1490
+ currentItemRoughness: number;
1491
+ currentItemOpacity: number;
1492
+ currentItemFontFamily: number;
1493
+ currentItemFontSize: number;
1494
+ currentItemStartArrowhead: Arrowhead | null;
1495
+ currentItemEndArrowhead: Arrowhead | null;
1496
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1497
+ viewBackgroundColor: string;
1498
+ scrollX: number;
1499
+ scrollY: number;
1500
+ cursorButton: "up" | "down";
1501
+ scrolledOutside: boolean;
1502
+ name: string;
1503
+ isResizing: boolean;
1504
+ isRotating: boolean;
1505
+ zoom: Readonly<{
1506
+ value: import("../../src/types").NormalizedZoomValue;
1507
+ }>;
1508
+ openMenu: "canvas" | "shape" | null;
1509
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1510
+ openSidebar: {
1511
+ name: string;
1512
+ tab?: string | undefined;
1513
+ } | null;
1514
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1515
+ defaultSidebarDockedPreference: boolean;
1516
+ lastPointerDownWith: import("../element/types").PointerType;
1517
+ selectedElementIds: Readonly<{
1518
+ [id: string]: true;
1519
+ }>;
1520
+ previousSelectedElementIds: {
1521
+ [id: string]: true;
1522
+ };
1523
+ selectedElementsAreBeingDragged: boolean;
1524
+ shouldCacheIgnoreZoom: boolean;
1525
+ toast: {
1526
+ message: string;
1527
+ closable?: boolean | undefined;
1528
+ duration?: number | undefined;
1529
+ } | null;
1530
+ zenModeEnabled: boolean;
1531
+ theme: import("../element/types").Theme;
1532
+ gridSize: number | null;
1533
+ previousGridSize: number | null;
1534
+ viewModeEnabled: boolean;
1535
+ selectedGroupIds: {
1536
+ [groupId: string]: boolean;
1537
+ };
1538
+ editingGroupId: string | null;
1539
+ width: number;
1540
+ height: number;
1541
+ offsetTop: number;
1542
+ offsetLeft: number;
1543
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1544
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1545
+ showStats: boolean;
1546
+ currentChartType: import("../element/types").ChartType;
1547
+ pasteDialog: {
1548
+ shown: false;
1549
+ data: null;
1550
+ } | {
1551
+ shown: true;
1552
+ data: import("../charts").Spreadsheet;
1553
+ };
1554
+ pendingImageElementId: string | null;
1555
+ showHyperlinkPopup: false | "editor" | "info";
1556
+ linkOpacity: number;
1557
+ trayModeEnabled: boolean;
1558
+ colorPalette?: {
1559
+ canvasBackground: import("../colors").ColorPaletteCustom;
1560
+ elementBackground: import("../colors").ColorPaletteCustom;
1561
+ elementStroke: import("../colors").ColorPaletteCustom;
1562
+ topPicks: {
1563
+ canvasBackground: [string, string, string, string, string];
1564
+ elementStroke: [string, string, string, string, string];
1565
+ elementBackground: [string, string, string, string, string];
1566
+ };
1567
+ } | undefined;
1568
+ allowWheelZoom?: boolean | undefined;
1569
+ allowPinchZoom?: boolean | undefined;
1570
+ pinnedScripts?: string[] | undefined;
1571
+ customPens?: any[] | undefined;
1572
+ currentStrokeOptions?: any;
1573
+ resetCustomPen?: any;
1574
+ gridColor: {
1575
+ Bold: string;
1576
+ Regular: string;
1577
+ MajorGridFrequency?: number | undefined;
1578
+ };
1579
+ dynamicStyle: string;
1580
+ invertBindingBehaviour: boolean;
1581
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1582
+ };
1583
+ commitToHistory: true;
1584
+ };
1585
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1586
+ } & {
1587
+ keyTest?: undefined;
1588
+ };
1589
+ export declare const actionChangeVerticalAlign: {
1590
+ name: "changeVerticalAlign";
1591
+ trackEvent: {
1592
+ category: "element";
1593
+ };
1594
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1595
+ elements: ExcalidrawElement[];
1596
+ appState: {
1597
+ contextMenu: {
1598
+ items: import("../components/ContextMenu").ContextMenuItems;
1599
+ top: number;
1600
+ left: number;
1601
+ } | null;
1602
+ showWelcomeScreen: boolean;
1603
+ isLoading: boolean;
1604
+ errorMessage: import("react").ReactNode;
1605
+ activeEmbeddable: {
1606
+ element: import("../element/types").NonDeletedExcalidrawElement;
1607
+ state: "active" | "hover";
1608
+ } | null;
1609
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1610
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1611
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1612
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1613
+ isBindingEnabled: boolean;
1614
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1615
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1616
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1617
+ frameRendering: {
1618
+ enabled: boolean;
1619
+ name: boolean;
1620
+ outline: boolean;
1621
+ clip: boolean;
1622
+ };
1623
+ editingFrame: string | null;
1624
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1625
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1626
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1627
+ activeTool: {
1628
+ lastActiveTool: import("../../src/types").LastActiveTool;
1629
+ locked: boolean;
1630
+ } & ({
1631
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1632
+ customType: null;
1633
+ } | {
1634
+ type: "custom";
1635
+ customType: string;
1636
+ });
1637
+ penMode: boolean;
1638
+ penDetected: boolean;
1639
+ exportBackground: boolean;
1640
+ exportEmbedScene: boolean;
1641
+ exportWithDarkMode: boolean;
1642
+ exportScale: number;
1643
+ currentItemStrokeColor: string;
1644
+ currentItemBackgroundColor: string;
1645
+ currentItemFillStyle: import("../element/types").FillStyle;
1646
+ currentItemStrokeWidth: number;
1647
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1648
+ currentItemRoughness: number;
1649
+ currentItemOpacity: number;
1650
+ currentItemFontFamily: number;
1651
+ currentItemFontSize: number;
1652
+ currentItemTextAlign: string;
1653
+ currentItemStartArrowhead: Arrowhead | null;
1654
+ currentItemEndArrowhead: Arrowhead | null;
1655
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1656
+ viewBackgroundColor: string;
1657
+ scrollX: number;
1658
+ scrollY: number;
1659
+ cursorButton: "up" | "down";
1660
+ scrolledOutside: boolean;
1661
+ name: string;
1662
+ isResizing: boolean;
1663
+ isRotating: boolean;
1664
+ zoom: Readonly<{
1665
+ value: import("../../src/types").NormalizedZoomValue;
1666
+ }>;
1667
+ openMenu: "canvas" | "shape" | null;
1668
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1669
+ openSidebar: {
1670
+ name: string;
1671
+ tab?: string | undefined;
1672
+ } | null;
1673
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1674
+ defaultSidebarDockedPreference: boolean;
1675
+ lastPointerDownWith: import("../element/types").PointerType;
1676
+ selectedElementIds: Readonly<{
1677
+ [id: string]: true;
1678
+ }>;
1679
+ previousSelectedElementIds: {
1680
+ [id: string]: true;
1681
+ };
1682
+ selectedElementsAreBeingDragged: boolean;
1683
+ shouldCacheIgnoreZoom: boolean;
1684
+ toast: {
1685
+ message: string;
1686
+ closable?: boolean | undefined;
1687
+ duration?: number | undefined;
1688
+ } | null;
1689
+ zenModeEnabled: boolean;
1690
+ theme: import("../element/types").Theme;
1691
+ gridSize: number | null;
1692
+ previousGridSize: number | null;
1693
+ viewModeEnabled: boolean;
1694
+ selectedGroupIds: {
1695
+ [groupId: string]: boolean;
1696
+ };
1697
+ editingGroupId: string | null;
1698
+ width: number;
1699
+ height: number;
1700
+ offsetTop: number;
1701
+ offsetLeft: number;
1702
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1703
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1704
+ showStats: boolean;
1705
+ currentChartType: import("../element/types").ChartType;
1706
+ pasteDialog: {
1707
+ shown: false;
1708
+ data: null;
1709
+ } | {
1710
+ shown: true;
1711
+ data: import("../charts").Spreadsheet;
1712
+ };
1713
+ pendingImageElementId: string | null;
1714
+ showHyperlinkPopup: false | "editor" | "info";
1715
+ linkOpacity: number;
1716
+ trayModeEnabled: boolean;
1717
+ colorPalette?: {
1718
+ canvasBackground: import("../colors").ColorPaletteCustom;
1719
+ elementBackground: import("../colors").ColorPaletteCustom;
1720
+ elementStroke: import("../colors").ColorPaletteCustom;
1721
+ topPicks: {
1722
+ canvasBackground: [string, string, string, string, string];
1723
+ elementStroke: [string, string, string, string, string];
1724
+ elementBackground: [string, string, string, string, string];
1725
+ };
1726
+ } | undefined;
1727
+ allowWheelZoom?: boolean | undefined;
1728
+ allowPinchZoom?: boolean | undefined;
1729
+ pinnedScripts?: string[] | undefined;
1730
+ customPens?: any[] | undefined;
1731
+ currentStrokeOptions?: any;
1732
+ resetCustomPen?: any;
1733
+ gridColor: {
1734
+ Bold: string;
1735
+ Regular: string;
1736
+ MajorGridFrequency?: number | undefined;
1737
+ };
1738
+ dynamicStyle: string;
1739
+ invertBindingBehaviour: boolean;
1740
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1741
+ };
1742
+ commitToHistory: true;
1743
+ };
1744
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1745
+ } & {
1746
+ keyTest?: undefined;
1747
+ };
1748
+ export declare const actionChangeRoundness: {
1749
+ name: "changeRoundness";
1750
+ trackEvent: false;
1751
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1752
+ elements: ExcalidrawElement[];
1753
+ appState: {
1754
+ currentItemRoundness: any;
1755
+ contextMenu: {
1756
+ items: import("../components/ContextMenu").ContextMenuItems;
1757
+ top: number;
1758
+ left: number;
1759
+ } | null;
1760
+ showWelcomeScreen: boolean;
1761
+ isLoading: boolean;
1762
+ errorMessage: import("react").ReactNode;
1763
+ activeEmbeddable: {
1764
+ element: import("../element/types").NonDeletedExcalidrawElement;
1765
+ state: "active" | "hover";
1766
+ } | null;
1767
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1768
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1769
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1770
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1771
+ isBindingEnabled: boolean;
1772
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1773
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1774
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1775
+ frameRendering: {
1776
+ enabled: boolean;
1777
+ name: boolean;
1778
+ outline: boolean;
1779
+ clip: boolean;
1780
+ };
1781
+ editingFrame: string | null;
1782
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1783
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1784
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1785
+ activeTool: {
1786
+ lastActiveTool: import("../../src/types").LastActiveTool;
1787
+ locked: boolean;
1788
+ } & ({
1789
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1790
+ customType: null;
1791
+ } | {
1792
+ type: "custom";
1793
+ customType: string;
1794
+ });
1795
+ penMode: boolean;
1796
+ penDetected: boolean;
1797
+ exportBackground: boolean;
1798
+ exportEmbedScene: boolean;
1799
+ exportWithDarkMode: boolean;
1800
+ exportScale: number;
1801
+ currentItemStrokeColor: string;
1802
+ currentItemBackgroundColor: string;
1803
+ currentItemFillStyle: import("../element/types").FillStyle;
1804
+ currentItemStrokeWidth: number;
1805
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1806
+ currentItemRoughness: number;
1807
+ currentItemOpacity: number;
1808
+ currentItemFontFamily: number;
1809
+ currentItemFontSize: number;
1810
+ currentItemTextAlign: string;
1811
+ currentItemStartArrowhead: Arrowhead | null;
1812
+ currentItemEndArrowhead: Arrowhead | null;
1813
+ viewBackgroundColor: string;
1814
+ scrollX: number;
1815
+ scrollY: number;
1816
+ cursorButton: "up" | "down";
1817
+ scrolledOutside: boolean;
1818
+ name: string;
1819
+ isResizing: boolean;
1820
+ isRotating: boolean;
1821
+ zoom: Readonly<{
1822
+ value: import("../../src/types").NormalizedZoomValue;
1823
+ }>;
1824
+ openMenu: "canvas" | "shape" | null;
1825
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1826
+ openSidebar: {
1827
+ name: string;
1828
+ tab?: string | undefined;
1829
+ } | null;
1830
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1831
+ defaultSidebarDockedPreference: boolean;
1832
+ lastPointerDownWith: import("../element/types").PointerType;
1833
+ selectedElementIds: Readonly<{
1834
+ [id: string]: true;
1835
+ }>;
1836
+ previousSelectedElementIds: {
1837
+ [id: string]: true;
1838
+ };
1839
+ selectedElementsAreBeingDragged: boolean;
1840
+ shouldCacheIgnoreZoom: boolean;
1841
+ toast: {
1842
+ message: string;
1843
+ closable?: boolean | undefined;
1844
+ duration?: number | undefined;
1845
+ } | null;
1846
+ zenModeEnabled: boolean;
1847
+ theme: import("../element/types").Theme;
1848
+ gridSize: number | null;
1849
+ previousGridSize: number | null;
1850
+ viewModeEnabled: boolean;
1851
+ selectedGroupIds: {
1852
+ [groupId: string]: boolean;
1853
+ };
1854
+ editingGroupId: string | null;
1855
+ width: number;
1856
+ height: number;
1857
+ offsetTop: number;
1858
+ offsetLeft: number;
1859
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1860
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1861
+ showStats: boolean;
1862
+ currentChartType: import("../element/types").ChartType;
1863
+ pasteDialog: {
1864
+ shown: false;
1865
+ data: null;
1866
+ } | {
1867
+ shown: true;
1868
+ data: import("../charts").Spreadsheet;
1869
+ };
1870
+ pendingImageElementId: string | null;
1871
+ showHyperlinkPopup: false | "editor" | "info";
1872
+ linkOpacity: number;
1873
+ trayModeEnabled: boolean;
1874
+ colorPalette?: {
1875
+ canvasBackground: import("../colors").ColorPaletteCustom;
1876
+ elementBackground: import("../colors").ColorPaletteCustom;
1877
+ elementStroke: import("../colors").ColorPaletteCustom;
1878
+ topPicks: {
1879
+ canvasBackground: [string, string, string, string, string];
1880
+ elementStroke: [string, string, string, string, string];
1881
+ elementBackground: [string, string, string, string, string];
1882
+ };
1883
+ } | undefined;
1884
+ allowWheelZoom?: boolean | undefined;
1885
+ allowPinchZoom?: boolean | undefined;
1886
+ pinnedScripts?: string[] | undefined;
1887
+ customPens?: any[] | undefined;
1888
+ currentStrokeOptions?: any;
1889
+ resetCustomPen?: any;
1890
+ gridColor: {
1891
+ Bold: string;
1892
+ Regular: string;
1893
+ MajorGridFrequency?: number | undefined;
1894
+ };
1895
+ dynamicStyle: string;
1896
+ invertBindingBehaviour: boolean;
1897
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1898
+ };
1899
+ commitToHistory: true;
1900
+ };
1901
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1902
+ } & {
1903
+ keyTest?: undefined;
1904
+ };
1905
+ export declare const actionChangeArrowhead: {
1906
+ name: "changeArrowhead";
1907
+ trackEvent: false;
1908
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: {
1909
+ position: "start" | "end";
1910
+ type: Arrowhead;
1911
+ }) => {
1912
+ elements: ExcalidrawElement[];
1913
+ appState: {
1914
+ contextMenu: {
1915
+ items: import("../components/ContextMenu").ContextMenuItems;
1916
+ top: number;
1917
+ left: number;
1918
+ } | null;
1919
+ showWelcomeScreen: boolean;
1920
+ isLoading: boolean;
1921
+ errorMessage: import("react").ReactNode;
1922
+ activeEmbeddable: {
1923
+ element: import("../element/types").NonDeletedExcalidrawElement;
1924
+ state: "active" | "hover";
1925
+ } | null;
1926
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1927
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1928
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1929
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1930
+ isBindingEnabled: boolean;
1931
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1932
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1933
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1934
+ frameRendering: {
1935
+ enabled: boolean;
1936
+ name: boolean;
1937
+ outline: boolean;
1938
+ clip: boolean;
1939
+ };
1940
+ editingFrame: string | null;
1941
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1942
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1943
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1944
+ activeTool: {
1945
+ lastActiveTool: import("../../src/types").LastActiveTool;
1946
+ locked: boolean;
1947
+ } & ({
1948
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1949
+ customType: null;
1950
+ } | {
1951
+ type: "custom";
1952
+ customType: string;
1953
+ });
1954
+ penMode: boolean;
1955
+ penDetected: boolean;
1956
+ exportBackground: boolean;
1957
+ exportEmbedScene: boolean;
1958
+ exportWithDarkMode: boolean;
1959
+ exportScale: number;
1960
+ currentItemStrokeColor: string;
1961
+ currentItemBackgroundColor: string;
1962
+ currentItemFillStyle: import("../element/types").FillStyle;
1963
+ currentItemStrokeWidth: number;
1964
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1965
+ currentItemRoughness: number;
1966
+ currentItemOpacity: number;
1967
+ currentItemFontFamily: number;
1968
+ currentItemFontSize: number;
1969
+ currentItemTextAlign: string;
1970
+ currentItemStartArrowhead: Arrowhead | null;
1971
+ currentItemEndArrowhead: Arrowhead | null;
1972
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1973
+ viewBackgroundColor: string;
1974
+ scrollX: number;
1975
+ scrollY: number;
1976
+ cursorButton: "up" | "down";
1977
+ scrolledOutside: boolean;
1978
+ name: string;
1979
+ isResizing: boolean;
1980
+ isRotating: boolean;
1981
+ zoom: Readonly<{
1982
+ value: import("../../src/types").NormalizedZoomValue;
1983
+ }>;
1984
+ openMenu: "canvas" | "shape" | null;
1985
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1986
+ openSidebar: {
1987
+ name: string;
1988
+ tab?: string | undefined;
1989
+ } | null;
1990
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1991
+ defaultSidebarDockedPreference: boolean;
1992
+ lastPointerDownWith: import("../element/types").PointerType;
1993
+ selectedElementIds: Readonly<{
1994
+ [id: string]: true;
1995
+ }>;
1996
+ previousSelectedElementIds: {
1997
+ [id: string]: true;
1998
+ };
1999
+ selectedElementsAreBeingDragged: boolean;
2000
+ shouldCacheIgnoreZoom: boolean;
2001
+ toast: {
2002
+ message: string;
2003
+ closable?: boolean | undefined;
2004
+ duration?: number | undefined;
2005
+ } | null;
2006
+ zenModeEnabled: boolean;
2007
+ theme: import("../element/types").Theme;
2008
+ gridSize: number | null;
2009
+ previousGridSize: number | null;
2010
+ viewModeEnabled: boolean;
2011
+ selectedGroupIds: {
2012
+ [groupId: string]: boolean;
2013
+ };
2014
+ editingGroupId: string | null;
2015
+ width: number;
2016
+ height: number;
2017
+ offsetTop: number;
2018
+ offsetLeft: number;
2019
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
2020
+ collaborators: Map<string, import("../../src/types").Collaborator>;
2021
+ showStats: boolean;
2022
+ currentChartType: import("../element/types").ChartType;
2023
+ pasteDialog: {
2024
+ shown: false;
2025
+ data: null;
2026
+ } | {
2027
+ shown: true;
2028
+ data: import("../charts").Spreadsheet;
2029
+ };
2030
+ pendingImageElementId: string | null;
2031
+ showHyperlinkPopup: false | "editor" | "info";
2032
+ linkOpacity: number;
2033
+ trayModeEnabled: boolean;
2034
+ colorPalette?: {
2035
+ canvasBackground: import("../colors").ColorPaletteCustom;
2036
+ elementBackground: import("../colors").ColorPaletteCustom;
2037
+ elementStroke: import("../colors").ColorPaletteCustom;
2038
+ topPicks: {
2039
+ canvasBackground: [string, string, string, string, string];
2040
+ elementStroke: [string, string, string, string, string];
2041
+ elementBackground: [string, string, string, string, string];
2042
+ };
2043
+ } | undefined;
2044
+ allowWheelZoom?: boolean | undefined;
2045
+ allowPinchZoom?: boolean | undefined;
2046
+ pinnedScripts?: string[] | undefined;
2047
+ customPens?: any[] | undefined;
2048
+ currentStrokeOptions?: any;
2049
+ resetCustomPen?: any;
2050
+ gridColor: {
2051
+ Bold: string;
2052
+ Regular: string;
2053
+ MajorGridFrequency?: number | undefined;
2054
+ };
2055
+ dynamicStyle: string;
2056
+ invertBindingBehaviour: boolean;
2057
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2058
+ };
2059
+ commitToHistory: true;
2060
+ };
2061
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
2062
+ } & {
2063
+ keyTest?: undefined;
2064
+ };