@dwelle/excalidraw 0.3.78 → 0.4.0-08c4fac

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 (334) hide show
  1. package/CHANGELOG.md +102 -754
  2. package/README.md +94 -26
  3. package/dist/excalidraw-assets/Assistant-Bold.woff2 +0 -0
  4. package/dist/excalidraw-assets/Assistant-Medium.woff2 +0 -0
  5. package/dist/excalidraw-assets/Assistant-Regular.woff2 +0 -0
  6. package/dist/excalidraw-assets/Assistant-SemiBold.woff2 +0 -0
  7. package/dist/excalidraw-assets/vendor-2002fe1b8862917b36c1.js +2 -0
  8. package/dist/excalidraw-assets/vendor-2002fe1b8862917b36c1.js.LICENSE.txt +12 -0
  9. package/dist/excalidraw-assets-dev/Assistant-Bold.woff2 +0 -0
  10. package/dist/excalidraw-assets-dev/Assistant-Medium.woff2 +0 -0
  11. package/dist/excalidraw-assets-dev/Assistant-Regular.woff2 +0 -0
  12. package/dist/excalidraw-assets-dev/Assistant-SemiBold.woff2 +0 -0
  13. package/dist/excalidraw-assets-dev/vendor-e6df8519da951026ff69.js +98 -0
  14. package/dist/excalidraw.development.js +1323 -1074
  15. package/dist/excalidraw.production.min.js +1 -1
  16. package/dist/excalidraw.production.min.js.LICENSE.txt +2 -0
  17. package/package.json +2 -2
  18. package/types/actions/actionAddToLibrary.d.ts +314 -311
  19. package/types/actions/actionAlign.d.ts +103 -91
  20. package/types/actions/actionBoundText.d.ts +129 -128
  21. package/types/actions/actionCanvas.d.ts +923 -901
  22. package/types/actions/actionClipboard.d.ts +595 -589
  23. package/types/actions/actionDeleteSelected.d.ts +345 -339
  24. package/types/actions/actionDistribute.d.ts +37 -33
  25. package/types/actions/actionDuplicateSelection.d.ts +24 -22
  26. package/types/actions/actionExport.d.ts +1025 -1000
  27. package/types/actions/actionFinalize.d.ts +220 -216
  28. package/types/actions/actionFlip.d.ts +35 -35
  29. package/types/actions/actionGroup.d.ts +49 -45
  30. package/types/actions/actionHistory.d.ts +6 -6
  31. package/types/actions/actionLinearEditor.d.ts +115 -0
  32. package/types/actions/actionMenu.d.ts +358 -349
  33. package/types/actions/actionNavigate.d.ts +15 -13
  34. package/types/actions/actionProperties.d.ts +1493 -1454
  35. package/types/actions/actionSelectAll.d.ts +16 -16
  36. package/types/actions/actionStyles.d.ts +130 -129
  37. package/types/actions/actionToggleGridMode.d.ts +117 -116
  38. package/types/actions/actionToggleLock.d.ts +116 -115
  39. package/types/actions/actionToggleStats.d.ts +115 -114
  40. package/types/actions/actionToggleViewMode.d.ts +116 -115
  41. package/types/actions/actionToggleZenMode.d.ts +116 -115
  42. package/types/actions/actionZindex.d.ts +75 -67
  43. package/types/actions/index.d.ts +24 -23
  44. package/types/actions/manager.d.ts +20 -20
  45. package/types/actions/register.d.ts +5 -5
  46. package/types/actions/shortcuts.d.ts +3 -3
  47. package/types/actions/types.d.ts +42 -40
  48. package/types/align.d.ts +6 -6
  49. package/types/analytics.d.ts +1 -1
  50. package/types/appState.d.ts +77 -76
  51. package/types/charts.d.ts +27 -27
  52. package/types/clients.d.ts +6 -6
  53. package/types/clipboard.d.ts +20 -20
  54. package/types/colors.d.ts +6 -6
  55. package/types/components/Actions.d.ts +35 -23
  56. package/types/components/ActiveFile.d.ts +7 -7
  57. package/types/components/App.d.ts +420 -368
  58. package/types/components/Avatar.d.ts +11 -11
  59. package/types/components/ButtonIconSelect.d.ts +11 -11
  60. package/types/components/CheckboxItem.d.ts +8 -8
  61. package/types/components/ClearCanvas.d.ts +4 -4
  62. package/types/components/CollabButton.d.ts +6 -7
  63. package/types/components/ColorPicker.d.ts +14 -14
  64. package/types/components/ConfirmDialog.d.ts +10 -10
  65. package/types/components/ContextMenu.d.ts +28 -28
  66. package/types/components/DarkModeToggle.d.ts +7 -7
  67. package/types/components/Dialog.d.ts +14 -14
  68. package/types/components/DialogActionButton.d.ts +10 -0
  69. package/types/components/ErrorDialog.d.ts +4 -4
  70. package/types/components/FixedSideContainer.d.ts +9 -9
  71. package/types/components/Footer.d.ts +10 -0
  72. package/types/components/HelpButton.d.ts +8 -0
  73. package/types/components/HelpDialog.d.ts +4 -4
  74. package/types/components/HintViewer.d.ts +11 -10
  75. package/types/components/HomeButton.d.ts +5 -0
  76. package/types/components/IconPicker.d.ts +13 -13
  77. package/types/components/ImageExportDialog.d.ts +18 -16
  78. package/types/components/InitializeApp.d.ts +10 -8
  79. package/types/components/Island.d.ts +10 -10
  80. package/types/components/JSONExportDialog.d.ts +13 -13
  81. package/types/components/LayerUI.d.ts +40 -38
  82. package/types/components/LibraryButton.d.ts +8 -7
  83. package/types/components/LibraryMenu.d.ts +25 -17
  84. package/types/components/LibraryMenuBrowseButton.d.ts +7 -0
  85. package/types/components/LibraryMenuHeaderContent.d.ts +12 -0
  86. package/types/components/LibraryMenuItems.d.ts +15 -24
  87. package/types/components/LibraryUnit.d.ts +11 -12
  88. package/types/components/LoadingMessage.d.ts +6 -4
  89. package/types/components/LockButton.d.ts +11 -11
  90. package/types/components/MenuItem.d.ts +11 -0
  91. package/types/components/MenuUtils.d.ts +1 -0
  92. package/types/components/MobileMenu.d.ts +30 -29
  93. package/types/components/Modal.d.ts +12 -12
  94. package/types/components/PasteChartDialog.d.ts +9 -9
  95. package/types/components/PenModeButton.d.ts +12 -12
  96. package/types/components/Popover.d.ts +15 -15
  97. package/types/components/ProjectName.d.ts +10 -10
  98. package/types/components/PublishLibrary.d.ts +16 -16
  99. package/types/components/Section.d.ts +6 -6
  100. package/types/components/Sidebar/Sidebar.d.ts +73 -0
  101. package/types/components/Sidebar/SidebarHeader.d.ts +20 -0
  102. package/types/components/Sidebar/common.d.ts +16 -0
  103. package/types/components/SingleLibraryItem.d.ts +10 -10
  104. package/types/components/Spinner.d.ts +6 -6
  105. package/types/components/Stack.d.ts +15 -15
  106. package/types/components/Stats.d.ts +11 -11
  107. package/types/components/Toast.d.ts +7 -7
  108. package/types/components/ToolButton.d.ts +46 -46
  109. package/types/components/Tooltip.d.ts +17 -17
  110. package/types/components/UserList.d.ts +10 -11
  111. package/types/components/WelcomeScreen.d.ts +8 -0
  112. package/types/components/WelcomeScreenDecor.d.ts +6 -0
  113. package/types/components/hoc/withUpstreamOverride.d.ts +10 -0
  114. package/types/components/icons.d.ts +139 -180
  115. package/types/constants.d.ts +157 -149
  116. package/types/data/blob.d.ts +47 -47
  117. package/types/data/encode.d.ts +53 -53
  118. package/types/data/encryption.d.ts +9 -9
  119. package/types/data/filesystem.d.ts +18 -18
  120. package/types/data/image.d.ts +15 -15
  121. package/types/data/index.d.ts +13 -13
  122. package/types/data/json.d.ts +16 -16
  123. package/types/data/library.d.ts +96 -96
  124. package/types/data/resave.d.ts +5 -5
  125. package/types/data/restore.d.ts +15 -15
  126. package/types/data/types.d.ts +47 -32
  127. package/types/distribute.d.ts +6 -6
  128. package/types/element/Hyperlink.d.ts +138 -136
  129. package/types/element/binding.d.ts +33 -33
  130. package/types/element/bounds.d.ts +27 -27
  131. package/types/element/collision.d.ts +21 -21
  132. package/types/element/dragElements.d.ts +5 -5
  133. package/types/element/image.d.ts +22 -22
  134. package/types/element/index.d.ts +20 -20
  135. package/types/element/linearElementEditor.d.ts +223 -203
  136. package/types/element/mutateElement.d.ts +11 -11
  137. package/types/element/newElement.d.ts +63 -50
  138. package/types/element/resizeElements.d.ts +9 -9
  139. package/types/element/resizeTest.d.ts +13 -13
  140. package/types/element/showSelectedShapeActions.d.ts +3 -3
  141. package/types/element/sizeHelpers.d.ts +21 -21
  142. package/types/element/textElement.d.ts +30 -26
  143. package/types/element/textWysiwyg.d.ts +16 -16
  144. package/types/element/transformHandles.d.ts +29 -28
  145. package/types/element/typeChecks.d.ts +17 -17
  146. package/types/element/types.d.ts +134 -133
  147. package/types/emitter.d.ts +21 -21
  148. package/types/errors.d.ts +8 -8
  149. package/types/ga.d.ts +63 -63
  150. package/types/gadirections.d.ts +8 -8
  151. package/types/galines.d.ts +22 -22
  152. package/types/gapoints.d.ts +7 -7
  153. package/types/gatransforms.d.ts +10 -10
  154. package/types/gesture.d.ts +6 -6
  155. package/types/groups.d.ts +27 -27
  156. package/types/history.d.ts +52 -52
  157. package/types/hooks/useCallbackRefState.d.ts +1 -1
  158. package/types/hooks/useOutsideClick.d.ts +2 -0
  159. package/types/i18n.d.ts +15 -15
  160. package/types/jotai.d.ts +122 -122
  161. package/types/keys.d.ts +68 -68
  162. package/types/math.d.ts +27 -20
  163. package/types/packages/excalidraw/dist/{excalidraw-assets-dev/image-469d5bd946743969995a.d.ts → excalidraw-assets/vendor-2002fe1b8862917b36c1.d.ts} +0 -0
  164. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{image-028ba554a42cc8a4995a.d.ts → vendor-e6df8519da951026ff69.d.ts} +0 -0
  165. package/types/packages/excalidraw/dist/excalidraw.development.d.ts +2 -2
  166. package/types/packages/excalidraw/dist/excalidraw.production.min.d.ts +1 -5
  167. package/types/packages/excalidraw/entry.d.ts +1 -1
  168. package/types/packages/excalidraw/env.d.ts +1 -1
  169. package/types/packages/excalidraw/example/App.d.ts +8 -7
  170. package/types/packages/excalidraw/example/index.d.ts +1 -1
  171. package/types/packages/excalidraw/example/initialData.d.ts +172 -172
  172. package/types/packages/excalidraw/example/sidebar/{Sidebar.d.ts → ExampleSidebar.d.ts} +5 -5
  173. package/types/packages/excalidraw/index.d.ts +19 -18
  174. package/types/packages/excalidraw/main.d.ts +2 -2
  175. package/types/packages/excalidraw/publicPath.d.ts +1 -1
  176. package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -19
  177. package/types/packages/excalidraw/webpack.dev.config.d.ts +79 -79
  178. package/types/packages/excalidraw/webpack.prod.config.d.ts +92 -92
  179. package/types/packages/utils.d.ts +35 -32
  180. package/types/points.d.ts +7 -6
  181. package/types/polyfill.d.ts +2 -0
  182. package/types/random.d.ts +3 -3
  183. package/types/renderer/renderElement.d.ts +35 -35
  184. package/types/renderer/renderScene.d.ts +41 -25
  185. package/types/renderer/roundRect.d.ts +11 -11
  186. package/types/scene/Scene.d.ts +25 -25
  187. package/types/scene/comparisons.d.ts +11 -11
  188. package/types/scene/export.d.ts +20 -20
  189. package/types/scene/index.d.ts +5 -5
  190. package/types/scene/scroll.d.ts +17 -17
  191. package/types/scene/scrollbars.d.ts +16 -16
  192. package/types/scene/selection.d.ts +11 -11
  193. package/types/scene/types.d.ts +59 -58
  194. package/types/scene/zoom.d.ts +13 -13
  195. package/types/shapes.d.ts +52 -38
  196. package/types/types.d.ts +399 -393
  197. package/types/utils.d.ts +136 -136
  198. package/types/zindex.d.ts +6 -6
  199. package/dist/excalidraw-assets/vendor-b9b3a25c026c138e55b2.js +0 -2
  200. package/dist/excalidraw-assets/vendor-b9b3a25c026c138e55b2.js.LICENSE.txt +0 -6
  201. package/dist/excalidraw-assets-dev/vendor-33bd21df77fc9cda16d2.js +0 -98
  202. package/types/actions/actionUnbindText.d.ts +0 -11
  203. package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +0 -9
  204. package/types/components/Card.d.ts +0 -7
  205. package/types/components/HelpIcon.d.ts +0 -8
  206. package/types/components/SidebarLockButton.d.ts +0 -8
  207. package/types/disitrubte.d.ts +0 -6
  208. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ar-SA-json-9a3fdf94110439c2826a.d.ts +0 -0
  209. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ar-SA-json-efd63375f9605b72c4af.d.ts +0 -0
  210. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-bg-BG-json-047db6df7a74c0298938.d.ts +0 -0
  211. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-bg-BG-json-35c0e8b92b0dba8a4e6d.d.ts +0 -0
  212. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ca-ES-json-6acefe26cfe1d2f12349.d.ts +0 -0
  213. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ca-ES-json-9924fbd53652d5f15134.d.ts +0 -0
  214. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-cs-CZ-json-85a469d813bb069829e7.d.ts +0 -0
  215. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-de-DE-json-a52c17c4bd1b1db22464.d.ts +0 -0
  216. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-de-DE-json-f85a8a52534c04c3f3b8.d.ts +0 -0
  217. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-el-GR-json-060595a09e0004e33936.d.ts +0 -0
  218. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-el-GR-json-3b209ec86ca2ce69bdfa.d.ts +0 -0
  219. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-es-ES-json-32dc3bf0f789ef18e65d.d.ts +0 -0
  220. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-es-ES-json-af5c541f9ac1526a9eb7.d.ts +0 -0
  221. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fa-IR-json-7ee232d4ef08da0903f6.d.ts +0 -0
  222. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fa-IR-json-c732ff7772327332c259.d.ts +0 -0
  223. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fi-FI-json-46abeda8d809d4091924.d.ts +0 -0
  224. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fi-FI-json-c1d5c5510660a11a428e.d.ts +0 -0
  225. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fr-FR-json-6a418571305eecefe9bc.d.ts +0 -0
  226. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fr-FR-json-79fa555bfea0a356f393.d.ts +0 -0
  227. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-he-IL-json-157ae036fcf470528687.d.ts +0 -0
  228. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-he-IL-json-d006423b531ab062bb85.d.ts +0 -0
  229. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-hi-IN-json-3035c3b3ab3ce981dbc7.d.ts +0 -0
  230. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-hi-IN-json-d959b869453c591a8861.d.ts +0 -0
  231. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-hu-HU-json-50a13e322a60bb701615.d.ts +0 -0
  232. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-hu-HU-json-a366989217753fe3d02b.d.ts +0 -0
  233. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-id-ID-json-87212daac6113b5bf808.d.ts +0 -0
  234. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-id-ID-json-8d13d29ee41be15a1f99.d.ts +0 -0
  235. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-it-IT-json-59f2e9d3dac07f3264cb.d.ts +0 -0
  236. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-it-IT-json-90283cd2809f4165506b.d.ts +0 -0
  237. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ja-JP-json-9e0a78ddb43d5709fb29.d.ts +0 -0
  238. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ja-JP-json-ccb5ffd0f8a0980c2ec0.d.ts +0 -0
  239. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-kab-KAB-json-d9acc7b8ee952e356d06.d.ts +0 -0
  240. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-kab-KAB-json-dac787e0446cdb747fe1.d.ts +0 -0
  241. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ko-KR-json-d61af373bea59d1ff4c6.d.ts +0 -0
  242. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ko-KR-json-e42ededaa35032a201b9.d.ts +0 -0
  243. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-lv-LV-json-07f6bffcb44fdd9aad4f.d.ts +0 -0
  244. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-lv-LV-json-7eea5c4054f8418fdd10.d.ts +0 -0
  245. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-my-MM-json-26d1e27bab3b8ac4a3e6.d.ts +0 -0
  246. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-my-MM-json-a8f9bb37a7b947e9dfba.d.ts +0 -0
  247. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nb-NO-json-8ce0749d46f0b4a8defb.d.ts +0 -0
  248. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nb-NO-json-c01fab8602e1b658d5d1.d.ts +0 -0
  249. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nl-NL-json-23fdfd9f11bc8efbaf56.d.ts +0 -0
  250. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nl-NL-json-cf922daa828029c1aff5.d.ts +0 -0
  251. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nn-NO-json-b5931de6e1ed336bf087.d.ts +0 -0
  252. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nn-NO-json-d363be6b3dcdbf3a868a.d.ts +0 -0
  253. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-oc-FR-json-29d6193adb907d4f5890.d.ts +0 -0
  254. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-oc-FR-json-c6414107ad634b113aba.d.ts +0 -0
  255. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pa-IN-json-27063e4865142ac11b1a.d.ts +0 -0
  256. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pa-IN-json-f0c779291da384fb5173.d.ts +0 -0
  257. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pl-PL-json-16af1b83ac16af57ad07.d.ts +0 -0
  258. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pl-PL-json-a4a5c6e0a9877c43476a.d.ts +0 -0
  259. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pt-BR-json-03a046855063512eb9ff.d.ts +0 -0
  260. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pt-BR-json-db86828d6e3ced9f9854.d.ts +0 -0
  261. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pt-PT-json-7ed352e9de6dc74ef503.d.ts +0 -0
  262. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pt-PT-json-bc0cd589bd87a3079407.d.ts +0 -0
  263. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ro-RO-json-75692b7a0166d6ad27a4.d.ts +0 -0
  264. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ro-RO-json-f13a2e7b7a63fbfb6ae7.d.ts +0 -0
  265. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ru-RU-json-69b1a919b7f42adfd6ec.d.ts +0 -0
  266. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ru-RU-json-7c2a2061d0ca99cf7007.d.ts +0 -0
  267. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-sk-SK-json-0ef09f90308059d22ae8.d.ts +0 -0
  268. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-sk-SK-json-4757551ceb15fa0a29a9.d.ts +0 -0
  269. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-sv-SE-json-dc7718d79b9bf93a4ba4.d.ts +0 -0
  270. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-sv-SE-json-fa5bd09f128972b13ac2.d.ts +0 -0
  271. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-tr-TR-json-b574833ee1c2f58fd24e.d.ts +0 -0
  272. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-tr-TR-json-cba7e62d9610795a5ac3.d.ts +0 -0
  273. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-uk-UA-json-a9a8ea7adb95c0a03680.d.ts +0 -0
  274. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-uk-UA-json-f0cab296bdc4089ffa77.d.ts +0 -0
  275. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-zh-CN-json-45da9983459601b845e8.d.ts +0 -0
  276. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-zh-CN-json-94f562845a945a45e385.d.ts +0 -0
  277. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-zh-TW-json-0e77c896018bcd221bf6.d.ts +0 -0
  278. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-zh-TW-json-7dd3d9ba72493687c286.d.ts +0 -0
  279. package/types/packages/excalidraw/dist/excalidraw-assets/image-02a1f3ecd6baf42daaa6.d.ts +0 -0
  280. package/types/packages/excalidraw/dist/excalidraw-assets/image-0db17e06143a31f9772b.d.ts +0 -0
  281. package/types/packages/excalidraw/dist/excalidraw-assets/image-2be1c869cd5bacebdc3c.d.ts +0 -0
  282. package/types/packages/excalidraw/dist/excalidraw-assets/image-46f5e8e621bfedbf6d91.d.ts +0 -0
  283. package/types/packages/excalidraw/dist/excalidraw-assets/image-6f8d3b9873832b5f7a67.d.ts +0 -0
  284. package/types/packages/excalidraw/dist/excalidraw-assets/image-8e0c265e832504f62477.d.ts +0 -0
  285. package/types/packages/excalidraw/dist/excalidraw-assets/image-9592159c56d563857679.d.ts +0 -0
  286. package/types/packages/excalidraw/dist/excalidraw-assets/image-98a7b39bd21998c69c4b.d.ts +0 -0
  287. package/types/packages/excalidraw/dist/excalidraw-assets/image-a26261fb8a718f15853e.d.ts +0 -0
  288. package/types/packages/excalidraw/dist/excalidraw-assets/image-a97adda58b4c4d8d0107.d.ts +0 -0
  289. package/types/packages/excalidraw/dist/excalidraw-assets/image-af02967a8a4c328f2713.d.ts +0 -0
  290. package/types/packages/excalidraw/dist/excalidraw-assets/image-bd5991c772b4867c8d27.d.ts +0 -0
  291. package/types/packages/excalidraw/dist/excalidraw-assets/image-c198828284ec0dba28dc.d.ts +0 -0
  292. package/types/packages/excalidraw/dist/excalidraw-assets/image-eac20119cbc2ceb81523.d.ts +0 -0
  293. package/types/packages/excalidraw/dist/excalidraw-assets/image-eafab0c39ce13f7fea67.d.ts +0 -0
  294. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-0e2ecbd1f46fc190ec01.d.ts +0 -0
  295. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-1018b0a7e7e60d808384.d.ts +0 -0
  296. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-405364e1fdefedf5d3d7.d.ts +0 -0
  297. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-448ccb79e58765b61834.d.ts +0 -0
  298. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-585a4c89d479fd91edeb.d.ts +0 -0
  299. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-64ea3ed78bc76a895e61.d.ts +0 -0
  300. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-6644c8f79d52085cf653.d.ts +0 -0
  301. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-807e23d7531555236936.d.ts +0 -0
  302. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-8698157b56eb5e0ee549.d.ts +0 -0
  303. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-aed19b6e017f9f736254.d.ts +0 -0
  304. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-b088910ac1ba8853a571.d.ts +0 -0
  305. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-b9b3a25c026c138e55b2.d.ts +0 -0
  306. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-cb708a4580b007d81177.d.ts +0 -0
  307. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-ce466849186c701b6c48.d.ts +0 -0
  308. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-e5c6cd57013e8e575a61.d.ts +0 -0
  309. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-664005f0b02c93342b89.d.ts +0 -0
  310. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-73be8b3c1837ea26950c.d.ts +0 -0
  311. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-821afe7d20de2d2ca898.d.ts +0 -0
  312. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-8825d180ee32659f8996.d.ts +0 -0
  313. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-89cddf27ef982ca154dc.d.ts +0 -0
  314. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-9f771c114a0a3ad7b334.d.ts +0 -0
  315. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-a98d24ea9aa42940a0df.d.ts +0 -0
  316. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-b2befe1e2a0424a41fb3.d.ts +0 -0
  317. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-cacb3d0c02eb2e346ecc.d.ts +0 -0
  318. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-d7e941a51c2e0a7b3c23.d.ts +0 -0
  319. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-e50a452aa26d28419e39.d.ts +0 -0
  320. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-eddc6ed66acd3a3f3d46.d.ts +0 -0
  321. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-f696fa36e3535df5e97a.d.ts +0 -0
  322. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-0454f90696ac835aeb45.d.ts +0 -0
  323. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-1bc8ceaafd8623c96dd4.d.ts +0 -0
  324. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-26ccabf52930f0ce0ffd.d.ts +0 -0
  325. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-33bd21df77fc9cda16d2.d.ts +0 -0
  326. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-4534d6e506404cef7a9e.d.ts +0 -0
  327. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-5d1c4700bd0fa2109ab5.d.ts +0 -0
  328. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-7664c12c379862ed98a5.d.ts +0 -0
  329. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-7fcb99cece261da4983f.d.ts +0 -0
  330. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-86b56a69e7dddcf8f70d.d.ts +0 -0
  331. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-a449655791956f151f51.d.ts +0 -0
  332. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-bb07a412033591d5470d.d.ts +0 -0
  333. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-ec7db14ff9ba640888c4.d.ts +0 -0
  334. package/types/renderer/index.d.ts +0 -1
@@ -1,1454 +1,1493 @@
1
- /// <reference types="react" />
2
- import { AppState } from "../../src/types";
3
- import { Arrowhead, ExcalidrawElement, ExcalidrawLinearElement, TextAlign } from "../element/types";
4
- export declare const actionChangeStrokeColor: {
5
- name: "changeStrokeColor";
6
- trackEvent: false;
7
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
8
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
9
- } & {
10
- keyTest?: undefined;
11
- };
12
- export declare const actionChangeBackgroundColor: {
13
- name: "changeBackgroundColor";
14
- trackEvent: false;
15
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
16
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
17
- } & {
18
- keyTest?: undefined;
19
- };
20
- export declare const actionChangeFillStyle: {
21
- name: "changeFillStyle";
22
- trackEvent: false;
23
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
24
- elements: ExcalidrawElement[];
25
- appState: {
26
- currentItemFillStyle: any;
27
- isLoading: boolean;
28
- errorMessage: string | null;
29
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
30
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
31
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
32
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
33
- isBindingEnabled: boolean;
34
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
35
- suggestedBindings: import("../element/binding").SuggestedBinding[];
36
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
37
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
38
- activeTool: {
39
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
40
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
41
- locked: boolean;
42
- customType: null;
43
- } | {
44
- type: "custom";
45
- customType: string;
46
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
47
- locked: boolean;
48
- };
49
- penMode: boolean;
50
- penDetected: boolean;
51
- exportBackground: boolean;
52
- exportEmbedScene: boolean;
53
- exportWithDarkMode: boolean;
54
- exportScale: number;
55
- currentItemStrokeColor: string;
56
- currentItemBackgroundColor: string;
57
- currentItemStrokeWidth: number;
58
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
59
- currentItemRoughness: number;
60
- currentItemOpacity: number;
61
- currentItemFontFamily: number;
62
- currentItemFontSize: number;
63
- currentItemTextAlign: TextAlign;
64
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
65
- currentItemStartArrowhead: Arrowhead | null;
66
- currentItemEndArrowhead: Arrowhead | null;
67
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
68
- viewBackgroundColor: string;
69
- scrollX: number;
70
- scrollY: number;
71
- cursorButton: "up" | "down";
72
- scrolledOutside: boolean;
73
- name: string;
74
- isResizing: boolean;
75
- isRotating: boolean;
76
- zoom: Readonly<{
77
- value: import("../../src/types").NormalizedZoomValue;
78
- }>;
79
- openMenu: "canvas" | "shape" | null;
80
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
81
- lastPointerDownWith: import("../element/types").PointerType;
82
- selectedElementIds: {
83
- [id: string]: boolean;
84
- };
85
- previousSelectedElementIds: {
86
- [id: string]: boolean;
87
- };
88
- shouldCacheIgnoreZoom: boolean;
89
- showHelpDialog: boolean;
90
- toast: {
91
- message: string;
92
- closable?: boolean | undefined;
93
- duration?: number | undefined;
94
- } | null;
95
- zenModeEnabled: boolean;
96
- theme: string;
97
- gridSize: number | null;
98
- viewModeEnabled: boolean;
99
- selectedGroupIds: {
100
- [groupId: string]: boolean;
101
- };
102
- editingGroupId: string | null;
103
- width: number;
104
- height: number;
105
- offsetTop: number;
106
- offsetLeft: number;
107
- isLibraryOpen: boolean;
108
- isLibraryMenuDocked: boolean;
109
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
110
- collaborators: Map<string, import("../../src/types").Collaborator>;
111
- showStats: boolean;
112
- currentChartType: import("../element/types").ChartType;
113
- pasteDialog: {
114
- shown: false;
115
- data: null;
116
- } | {
117
- shown: true;
118
- data: import("../charts").Spreadsheet;
119
- };
120
- pendingImageElementId: string | null;
121
- showHyperlinkPopup: false | "info" | "editor";
122
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
123
- };
124
- commitToHistory: true;
125
- };
126
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
127
- } & {
128
- keyTest?: undefined;
129
- };
130
- export declare const actionChangeStrokeWidth: {
131
- name: "changeStrokeWidth";
132
- trackEvent: false;
133
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
134
- elements: ExcalidrawElement[];
135
- appState: {
136
- currentItemStrokeWidth: any;
137
- isLoading: boolean;
138
- errorMessage: string | null;
139
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
140
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
141
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
142
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
143
- isBindingEnabled: boolean;
144
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
145
- suggestedBindings: import("../element/binding").SuggestedBinding[];
146
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
147
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
148
- activeTool: {
149
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
150
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
151
- locked: boolean;
152
- customType: null;
153
- } | {
154
- type: "custom";
155
- customType: string;
156
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
157
- locked: boolean;
158
- };
159
- penMode: boolean;
160
- penDetected: boolean;
161
- exportBackground: boolean;
162
- exportEmbedScene: boolean;
163
- exportWithDarkMode: boolean;
164
- exportScale: number;
165
- currentItemStrokeColor: string;
166
- currentItemBackgroundColor: string;
167
- currentItemFillStyle: import("../element/types").FillStyle;
168
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
169
- currentItemRoughness: number;
170
- currentItemOpacity: number;
171
- currentItemFontFamily: number;
172
- currentItemFontSize: number;
173
- currentItemTextAlign: TextAlign;
174
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
175
- currentItemStartArrowhead: Arrowhead | null;
176
- currentItemEndArrowhead: Arrowhead | null;
177
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
178
- viewBackgroundColor: string;
179
- scrollX: number;
180
- scrollY: number;
181
- cursorButton: "up" | "down";
182
- scrolledOutside: boolean;
183
- name: string;
184
- isResizing: boolean;
185
- isRotating: boolean;
186
- zoom: Readonly<{
187
- value: import("../../src/types").NormalizedZoomValue;
188
- }>;
189
- openMenu: "canvas" | "shape" | null;
190
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
191
- lastPointerDownWith: import("../element/types").PointerType;
192
- selectedElementIds: {
193
- [id: string]: boolean;
194
- };
195
- previousSelectedElementIds: {
196
- [id: string]: boolean;
197
- };
198
- shouldCacheIgnoreZoom: boolean;
199
- showHelpDialog: boolean;
200
- toast: {
201
- message: string;
202
- closable?: boolean | undefined;
203
- duration?: number | undefined;
204
- } | null;
205
- zenModeEnabled: boolean;
206
- theme: string;
207
- gridSize: number | null;
208
- viewModeEnabled: boolean;
209
- selectedGroupIds: {
210
- [groupId: string]: boolean;
211
- };
212
- editingGroupId: string | null;
213
- width: number;
214
- height: number;
215
- offsetTop: number;
216
- offsetLeft: number;
217
- isLibraryOpen: boolean;
218
- isLibraryMenuDocked: boolean;
219
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
220
- collaborators: Map<string, import("../../src/types").Collaborator>;
221
- showStats: boolean;
222
- currentChartType: import("../element/types").ChartType;
223
- pasteDialog: {
224
- shown: false;
225
- data: null;
226
- } | {
227
- shown: true;
228
- data: import("../charts").Spreadsheet;
229
- };
230
- pendingImageElementId: string | null;
231
- showHyperlinkPopup: false | "info" | "editor";
232
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
233
- };
234
- commitToHistory: true;
235
- };
236
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
237
- } & {
238
- keyTest?: undefined;
239
- };
240
- export declare const actionChangeSloppiness: {
241
- name: "changeSloppiness";
242
- trackEvent: false;
243
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
244
- elements: ExcalidrawElement[];
245
- appState: {
246
- currentItemRoughness: any;
247
- isLoading: boolean;
248
- errorMessage: string | null;
249
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
250
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
251
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
252
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
253
- isBindingEnabled: boolean;
254
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
255
- suggestedBindings: import("../element/binding").SuggestedBinding[];
256
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
257
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
258
- activeTool: {
259
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
260
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
261
- locked: boolean;
262
- customType: null;
263
- } | {
264
- type: "custom";
265
- customType: string;
266
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
267
- locked: boolean;
268
- };
269
- penMode: boolean;
270
- penDetected: boolean;
271
- exportBackground: boolean;
272
- exportEmbedScene: boolean;
273
- exportWithDarkMode: boolean;
274
- exportScale: number;
275
- currentItemStrokeColor: string;
276
- currentItemBackgroundColor: string;
277
- currentItemFillStyle: import("../element/types").FillStyle;
278
- currentItemStrokeWidth: number;
279
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
280
- currentItemOpacity: number;
281
- currentItemFontFamily: number;
282
- currentItemFontSize: number;
283
- currentItemTextAlign: TextAlign;
284
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
285
- currentItemStartArrowhead: Arrowhead | null;
286
- currentItemEndArrowhead: Arrowhead | null;
287
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
288
- viewBackgroundColor: string;
289
- scrollX: number;
290
- scrollY: number;
291
- cursorButton: "up" | "down";
292
- scrolledOutside: boolean;
293
- name: string;
294
- isResizing: boolean;
295
- isRotating: boolean;
296
- zoom: Readonly<{
297
- value: import("../../src/types").NormalizedZoomValue;
298
- }>;
299
- openMenu: "canvas" | "shape" | null;
300
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
301
- lastPointerDownWith: import("../element/types").PointerType;
302
- selectedElementIds: {
303
- [id: string]: boolean;
304
- };
305
- previousSelectedElementIds: {
306
- [id: string]: boolean;
307
- };
308
- shouldCacheIgnoreZoom: boolean;
309
- showHelpDialog: boolean;
310
- toast: {
311
- message: string;
312
- closable?: boolean | undefined;
313
- duration?: number | undefined;
314
- } | null;
315
- zenModeEnabled: boolean;
316
- theme: string;
317
- gridSize: number | null;
318
- viewModeEnabled: boolean;
319
- selectedGroupIds: {
320
- [groupId: string]: boolean;
321
- };
322
- editingGroupId: string | null;
323
- width: number;
324
- height: number;
325
- offsetTop: number;
326
- offsetLeft: number;
327
- isLibraryOpen: boolean;
328
- isLibraryMenuDocked: boolean;
329
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
330
- collaborators: Map<string, import("../../src/types").Collaborator>;
331
- showStats: boolean;
332
- currentChartType: import("../element/types").ChartType;
333
- pasteDialog: {
334
- shown: false;
335
- data: null;
336
- } | {
337
- shown: true;
338
- data: import("../charts").Spreadsheet;
339
- };
340
- pendingImageElementId: string | null;
341
- showHyperlinkPopup: false | "info" | "editor";
342
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
343
- };
344
- commitToHistory: true;
345
- };
346
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
347
- } & {
348
- keyTest?: undefined;
349
- };
350
- export declare const actionChangeStrokeStyle: {
351
- name: "changeStrokeStyle";
352
- trackEvent: false;
353
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
354
- elements: ExcalidrawElement[];
355
- appState: {
356
- currentItemStrokeStyle: any;
357
- isLoading: boolean;
358
- errorMessage: string | null;
359
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
360
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
361
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
362
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
363
- isBindingEnabled: boolean;
364
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
365
- suggestedBindings: import("../element/binding").SuggestedBinding[];
366
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
367
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
368
- activeTool: {
369
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
370
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
371
- locked: boolean;
372
- customType: null;
373
- } | {
374
- type: "custom";
375
- customType: string;
376
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
377
- locked: boolean;
378
- };
379
- penMode: boolean;
380
- penDetected: boolean;
381
- exportBackground: boolean;
382
- exportEmbedScene: boolean;
383
- exportWithDarkMode: boolean;
384
- exportScale: number;
385
- currentItemStrokeColor: string;
386
- currentItemBackgroundColor: string;
387
- currentItemFillStyle: import("../element/types").FillStyle;
388
- currentItemStrokeWidth: number;
389
- currentItemRoughness: number;
390
- currentItemOpacity: number;
391
- currentItemFontFamily: number;
392
- currentItemFontSize: number;
393
- currentItemTextAlign: TextAlign;
394
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
395
- currentItemStartArrowhead: Arrowhead | null;
396
- currentItemEndArrowhead: Arrowhead | null;
397
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
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: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
411
- lastPointerDownWith: import("../element/types").PointerType;
412
- selectedElementIds: {
413
- [id: string]: boolean;
414
- };
415
- previousSelectedElementIds: {
416
- [id: string]: boolean;
417
- };
418
- shouldCacheIgnoreZoom: boolean;
419
- showHelpDialog: boolean;
420
- toast: {
421
- message: string;
422
- closable?: boolean | undefined;
423
- duration?: number | undefined;
424
- } | null;
425
- zenModeEnabled: boolean;
426
- theme: string;
427
- gridSize: number | null;
428
- viewModeEnabled: boolean;
429
- selectedGroupIds: {
430
- [groupId: string]: boolean;
431
- };
432
- editingGroupId: string | null;
433
- width: number;
434
- height: number;
435
- offsetTop: number;
436
- offsetLeft: number;
437
- isLibraryOpen: boolean;
438
- isLibraryMenuDocked: boolean;
439
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
440
- collaborators: Map<string, import("../../src/types").Collaborator>;
441
- showStats: boolean;
442
- currentChartType: import("../element/types").ChartType;
443
- pasteDialog: {
444
- shown: false;
445
- data: null;
446
- } | {
447
- shown: true;
448
- data: import("../charts").Spreadsheet;
449
- };
450
- pendingImageElementId: string | null;
451
- showHyperlinkPopup: false | "info" | "editor";
452
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
453
- };
454
- commitToHistory: true;
455
- };
456
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
457
- } & {
458
- keyTest?: undefined;
459
- };
460
- export declare const actionChangeOpacity: {
461
- name: "changeOpacity";
462
- trackEvent: false;
463
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
464
- elements: ExcalidrawElement[];
465
- appState: {
466
- currentItemOpacity: any;
467
- isLoading: boolean;
468
- errorMessage: string | null;
469
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
470
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
471
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
472
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
473
- isBindingEnabled: boolean;
474
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
475
- suggestedBindings: import("../element/binding").SuggestedBinding[];
476
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
477
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
478
- activeTool: {
479
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
480
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
481
- locked: boolean;
482
- customType: null;
483
- } | {
484
- type: "custom";
485
- customType: string;
486
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
487
- locked: boolean;
488
- };
489
- penMode: boolean;
490
- penDetected: boolean;
491
- exportBackground: boolean;
492
- exportEmbedScene: boolean;
493
- exportWithDarkMode: boolean;
494
- exportScale: number;
495
- currentItemStrokeColor: string;
496
- currentItemBackgroundColor: string;
497
- currentItemFillStyle: import("../element/types").FillStyle;
498
- currentItemStrokeWidth: number;
499
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
500
- currentItemRoughness: number;
501
- currentItemFontFamily: number;
502
- currentItemFontSize: number;
503
- currentItemTextAlign: TextAlign;
504
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
505
- currentItemStartArrowhead: Arrowhead | null;
506
- currentItemEndArrowhead: Arrowhead | null;
507
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
508
- viewBackgroundColor: string;
509
- scrollX: number;
510
- scrollY: number;
511
- cursorButton: "up" | "down";
512
- scrolledOutside: boolean;
513
- name: string;
514
- isResizing: boolean;
515
- isRotating: boolean;
516
- zoom: Readonly<{
517
- value: import("../../src/types").NormalizedZoomValue;
518
- }>;
519
- openMenu: "canvas" | "shape" | null;
520
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
521
- lastPointerDownWith: import("../element/types").PointerType;
522
- selectedElementIds: {
523
- [id: string]: boolean;
524
- };
525
- previousSelectedElementIds: {
526
- [id: string]: boolean;
527
- };
528
- shouldCacheIgnoreZoom: boolean;
529
- showHelpDialog: boolean;
530
- toast: {
531
- message: string;
532
- closable?: boolean | undefined;
533
- duration?: number | undefined;
534
- } | null;
535
- zenModeEnabled: boolean;
536
- theme: string;
537
- gridSize: number | null;
538
- viewModeEnabled: boolean;
539
- selectedGroupIds: {
540
- [groupId: string]: boolean;
541
- };
542
- editingGroupId: string | null;
543
- width: number;
544
- height: number;
545
- offsetTop: number;
546
- offsetLeft: number;
547
- isLibraryOpen: boolean;
548
- isLibraryMenuDocked: boolean;
549
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
550
- collaborators: Map<string, import("../../src/types").Collaborator>;
551
- showStats: boolean;
552
- currentChartType: import("../element/types").ChartType;
553
- pasteDialog: {
554
- shown: false;
555
- data: null;
556
- } | {
557
- shown: true;
558
- data: import("../charts").Spreadsheet;
559
- };
560
- pendingImageElementId: string | null;
561
- showHyperlinkPopup: false | "info" | "editor";
562
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
563
- };
564
- commitToHistory: true;
565
- };
566
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
567
- } & {
568
- keyTest?: undefined;
569
- };
570
- export declare const actionChangeFontSize: {
571
- name: "changeFontSize";
572
- trackEvent: false;
573
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
574
- elements: ExcalidrawElement[];
575
- appState: {
576
- currentItemFontSize: number;
577
- isLoading: boolean;
578
- errorMessage: string | null;
579
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
580
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
581
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
582
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
583
- isBindingEnabled: boolean;
584
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
585
- suggestedBindings: import("../element/binding").SuggestedBinding[];
586
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
587
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
588
- activeTool: {
589
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
590
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
591
- locked: boolean;
592
- customType: null;
593
- } | {
594
- type: "custom";
595
- customType: string;
596
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
597
- locked: boolean;
598
- };
599
- penMode: boolean;
600
- penDetected: boolean;
601
- exportBackground: boolean;
602
- exportEmbedScene: boolean;
603
- exportWithDarkMode: boolean;
604
- exportScale: number;
605
- currentItemStrokeColor: string;
606
- currentItemBackgroundColor: string;
607
- currentItemFillStyle: import("../element/types").FillStyle;
608
- currentItemStrokeWidth: number;
609
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
610
- currentItemRoughness: number;
611
- currentItemOpacity: number;
612
- currentItemFontFamily: number;
613
- currentItemTextAlign: TextAlign;
614
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
615
- currentItemStartArrowhead: Arrowhead | null;
616
- currentItemEndArrowhead: Arrowhead | null;
617
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
618
- viewBackgroundColor: string;
619
- scrollX: number;
620
- scrollY: number;
621
- cursorButton: "up" | "down";
622
- scrolledOutside: boolean;
623
- name: string;
624
- isResizing: boolean;
625
- isRotating: boolean;
626
- zoom: Readonly<{
627
- value: import("../../src/types").NormalizedZoomValue;
628
- }>;
629
- openMenu: "canvas" | "shape" | null;
630
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
631
- lastPointerDownWith: import("../element/types").PointerType;
632
- selectedElementIds: {
633
- [id: string]: boolean;
634
- };
635
- previousSelectedElementIds: {
636
- [id: string]: boolean;
637
- };
638
- shouldCacheIgnoreZoom: boolean;
639
- showHelpDialog: boolean;
640
- toast: {
641
- message: string;
642
- closable?: boolean | undefined;
643
- duration?: number | undefined;
644
- } | null;
645
- zenModeEnabled: boolean;
646
- theme: string;
647
- gridSize: number | null;
648
- viewModeEnabled: boolean;
649
- selectedGroupIds: {
650
- [groupId: string]: boolean;
651
- };
652
- editingGroupId: string | null;
653
- width: number;
654
- height: number;
655
- offsetTop: number;
656
- offsetLeft: number;
657
- isLibraryOpen: boolean;
658
- isLibraryMenuDocked: boolean;
659
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
660
- collaborators: Map<string, import("../../src/types").Collaborator>;
661
- showStats: boolean;
662
- currentChartType: import("../element/types").ChartType;
663
- pasteDialog: {
664
- shown: false;
665
- data: null;
666
- } | {
667
- shown: true;
668
- data: import("../charts").Spreadsheet;
669
- };
670
- pendingImageElementId: string | null;
671
- showHyperlinkPopup: false | "info" | "editor";
672
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
673
- };
674
- commitToHistory: boolean;
675
- };
676
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
677
- } & {
678
- keyTest?: undefined;
679
- };
680
- export declare const actionDecreaseFontSize: {
681
- name: "decreaseFontSize";
682
- trackEvent: false;
683
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
684
- elements: ExcalidrawElement[];
685
- appState: {
686
- currentItemFontSize: number;
687
- isLoading: boolean;
688
- errorMessage: string | null;
689
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
690
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
691
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
692
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
693
- isBindingEnabled: boolean;
694
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
695
- suggestedBindings: import("../element/binding").SuggestedBinding[];
696
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
697
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
698
- activeTool: {
699
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
700
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
701
- locked: boolean;
702
- customType: null;
703
- } | {
704
- type: "custom";
705
- customType: string;
706
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
707
- locked: boolean;
708
- };
709
- penMode: boolean;
710
- penDetected: boolean;
711
- exportBackground: boolean;
712
- exportEmbedScene: boolean;
713
- exportWithDarkMode: boolean;
714
- exportScale: number;
715
- currentItemStrokeColor: string;
716
- currentItemBackgroundColor: string;
717
- currentItemFillStyle: import("../element/types").FillStyle;
718
- currentItemStrokeWidth: number;
719
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
720
- currentItemRoughness: number;
721
- currentItemOpacity: number;
722
- currentItemFontFamily: number;
723
- currentItemTextAlign: TextAlign;
724
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
725
- currentItemStartArrowhead: Arrowhead | null;
726
- currentItemEndArrowhead: Arrowhead | null;
727
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
728
- viewBackgroundColor: string;
729
- scrollX: number;
730
- scrollY: number;
731
- cursorButton: "up" | "down";
732
- scrolledOutside: boolean;
733
- name: string;
734
- isResizing: boolean;
735
- isRotating: boolean;
736
- zoom: Readonly<{
737
- value: import("../../src/types").NormalizedZoomValue;
738
- }>;
739
- openMenu: "canvas" | "shape" | null;
740
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
741
- lastPointerDownWith: import("../element/types").PointerType;
742
- selectedElementIds: {
743
- [id: string]: boolean;
744
- };
745
- previousSelectedElementIds: {
746
- [id: string]: boolean;
747
- };
748
- shouldCacheIgnoreZoom: boolean;
749
- showHelpDialog: boolean;
750
- toast: {
751
- message: string;
752
- closable?: boolean | undefined;
753
- duration?: number | undefined;
754
- } | null;
755
- zenModeEnabled: boolean;
756
- theme: string;
757
- gridSize: number | null;
758
- viewModeEnabled: boolean;
759
- selectedGroupIds: {
760
- [groupId: string]: boolean;
761
- };
762
- editingGroupId: string | null;
763
- width: number;
764
- height: number;
765
- offsetTop: number;
766
- offsetLeft: number;
767
- isLibraryOpen: boolean;
768
- isLibraryMenuDocked: boolean;
769
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
770
- collaborators: Map<string, import("../../src/types").Collaborator>;
771
- showStats: boolean;
772
- currentChartType: import("../element/types").ChartType;
773
- pasteDialog: {
774
- shown: false;
775
- data: null;
776
- } | {
777
- shown: true;
778
- data: import("../charts").Spreadsheet;
779
- };
780
- pendingImageElementId: string | null;
781
- showHyperlinkPopup: false | "info" | "editor";
782
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
783
- };
784
- commitToHistory: boolean;
785
- };
786
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
787
- } & {
788
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
789
- };
790
- export declare const actionIncreaseFontSize: {
791
- name: "increaseFontSize";
792
- trackEvent: false;
793
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
794
- elements: ExcalidrawElement[];
795
- appState: {
796
- currentItemFontSize: number;
797
- isLoading: boolean;
798
- errorMessage: string | null;
799
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
800
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
801
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
802
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
803
- isBindingEnabled: boolean;
804
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
805
- suggestedBindings: import("../element/binding").SuggestedBinding[];
806
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
807
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
808
- activeTool: {
809
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
810
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
811
- locked: boolean;
812
- customType: null;
813
- } | {
814
- type: "custom";
815
- customType: string;
816
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
817
- locked: boolean;
818
- };
819
- penMode: boolean;
820
- penDetected: boolean;
821
- exportBackground: boolean;
822
- exportEmbedScene: boolean;
823
- exportWithDarkMode: boolean;
824
- exportScale: number;
825
- currentItemStrokeColor: string;
826
- currentItemBackgroundColor: string;
827
- currentItemFillStyle: import("../element/types").FillStyle;
828
- currentItemStrokeWidth: number;
829
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
830
- currentItemRoughness: number;
831
- currentItemOpacity: number;
832
- currentItemFontFamily: number;
833
- currentItemTextAlign: TextAlign;
834
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
835
- currentItemStartArrowhead: Arrowhead | null;
836
- currentItemEndArrowhead: Arrowhead | null;
837
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
838
- viewBackgroundColor: string;
839
- scrollX: number;
840
- scrollY: number;
841
- cursorButton: "up" | "down";
842
- scrolledOutside: boolean;
843
- name: string;
844
- isResizing: boolean;
845
- isRotating: boolean;
846
- zoom: Readonly<{
847
- value: import("../../src/types").NormalizedZoomValue;
848
- }>;
849
- openMenu: "canvas" | "shape" | null;
850
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
851
- lastPointerDownWith: import("../element/types").PointerType;
852
- selectedElementIds: {
853
- [id: string]: boolean;
854
- };
855
- previousSelectedElementIds: {
856
- [id: string]: boolean;
857
- };
858
- shouldCacheIgnoreZoom: boolean;
859
- showHelpDialog: boolean;
860
- toast: {
861
- message: string;
862
- closable?: boolean | undefined;
863
- duration?: number | undefined;
864
- } | null;
865
- zenModeEnabled: boolean;
866
- theme: string;
867
- gridSize: number | null;
868
- viewModeEnabled: boolean;
869
- selectedGroupIds: {
870
- [groupId: string]: boolean;
871
- };
872
- editingGroupId: string | null;
873
- width: number;
874
- height: number;
875
- offsetTop: number;
876
- offsetLeft: number;
877
- isLibraryOpen: boolean;
878
- isLibraryMenuDocked: boolean;
879
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
880
- collaborators: Map<string, import("../../src/types").Collaborator>;
881
- showStats: boolean;
882
- currentChartType: import("../element/types").ChartType;
883
- pasteDialog: {
884
- shown: false;
885
- data: null;
886
- } | {
887
- shown: true;
888
- data: import("../charts").Spreadsheet;
889
- };
890
- pendingImageElementId: string | null;
891
- showHyperlinkPopup: false | "info" | "editor";
892
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
893
- };
894
- commitToHistory: boolean;
895
- };
896
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
897
- } & {
898
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
899
- };
900
- export declare const actionChangeFontFamily: {
901
- name: "changeFontFamily";
902
- trackEvent: false;
903
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
904
- elements: ExcalidrawElement[];
905
- appState: {
906
- currentItemFontFamily: any;
907
- isLoading: boolean;
908
- errorMessage: string | null;
909
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
910
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
911
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
912
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
913
- isBindingEnabled: boolean;
914
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
915
- suggestedBindings: import("../element/binding").SuggestedBinding[];
916
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
917
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
918
- activeTool: {
919
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
920
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
921
- locked: boolean;
922
- customType: null;
923
- } | {
924
- type: "custom";
925
- customType: string;
926
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
927
- locked: boolean;
928
- };
929
- penMode: boolean;
930
- penDetected: boolean;
931
- exportBackground: boolean;
932
- exportEmbedScene: boolean;
933
- exportWithDarkMode: boolean;
934
- exportScale: number;
935
- currentItemStrokeColor: string;
936
- currentItemBackgroundColor: string;
937
- currentItemFillStyle: import("../element/types").FillStyle;
938
- currentItemStrokeWidth: number;
939
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
940
- currentItemRoughness: number;
941
- currentItemOpacity: number;
942
- currentItemFontSize: number;
943
- currentItemTextAlign: TextAlign;
944
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
945
- currentItemStartArrowhead: Arrowhead | null;
946
- currentItemEndArrowhead: Arrowhead | null;
947
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
948
- viewBackgroundColor: string;
949
- scrollX: number;
950
- scrollY: number;
951
- cursorButton: "up" | "down";
952
- scrolledOutside: boolean;
953
- name: string;
954
- isResizing: boolean;
955
- isRotating: boolean;
956
- zoom: Readonly<{
957
- value: import("../../src/types").NormalizedZoomValue;
958
- }>;
959
- openMenu: "canvas" | "shape" | null;
960
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
961
- lastPointerDownWith: import("../element/types").PointerType;
962
- selectedElementIds: {
963
- [id: string]: boolean;
964
- };
965
- previousSelectedElementIds: {
966
- [id: string]: boolean;
967
- };
968
- shouldCacheIgnoreZoom: boolean;
969
- showHelpDialog: boolean;
970
- toast: {
971
- message: string;
972
- closable?: boolean | undefined;
973
- duration?: number | undefined;
974
- } | null;
975
- zenModeEnabled: boolean;
976
- theme: string;
977
- gridSize: number | null;
978
- viewModeEnabled: boolean;
979
- selectedGroupIds: {
980
- [groupId: string]: boolean;
981
- };
982
- editingGroupId: string | null;
983
- width: number;
984
- height: number;
985
- offsetTop: number;
986
- offsetLeft: number;
987
- isLibraryOpen: boolean;
988
- isLibraryMenuDocked: boolean;
989
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
990
- collaborators: Map<string, import("../../src/types").Collaborator>;
991
- showStats: boolean;
992
- currentChartType: import("../element/types").ChartType;
993
- pasteDialog: {
994
- shown: false;
995
- data: null;
996
- } | {
997
- shown: true;
998
- data: import("../charts").Spreadsheet;
999
- };
1000
- pendingImageElementId: string | null;
1001
- showHyperlinkPopup: false | "info" | "editor";
1002
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1003
- };
1004
- commitToHistory: true;
1005
- };
1006
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1007
- } & {
1008
- keyTest?: undefined;
1009
- };
1010
- export declare const actionChangeTextAlign: {
1011
- name: "changeTextAlign";
1012
- trackEvent: false;
1013
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1014
- elements: ExcalidrawElement[];
1015
- appState: {
1016
- currentItemTextAlign: any;
1017
- isLoading: boolean;
1018
- errorMessage: string | null;
1019
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1020
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1021
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1022
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1023
- isBindingEnabled: boolean;
1024
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1025
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1026
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1027
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1028
- activeTool: {
1029
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
1030
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1031
- locked: boolean;
1032
- customType: null;
1033
- } | {
1034
- type: "custom";
1035
- customType: string;
1036
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1037
- locked: boolean;
1038
- };
1039
- penMode: boolean;
1040
- penDetected: boolean;
1041
- exportBackground: boolean;
1042
- exportEmbedScene: boolean;
1043
- exportWithDarkMode: boolean;
1044
- exportScale: number;
1045
- currentItemStrokeColor: string;
1046
- currentItemBackgroundColor: string;
1047
- currentItemFillStyle: import("../element/types").FillStyle;
1048
- currentItemStrokeWidth: number;
1049
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1050
- currentItemRoughness: number;
1051
- currentItemOpacity: number;
1052
- currentItemFontFamily: number;
1053
- currentItemFontSize: number;
1054
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
1055
- currentItemStartArrowhead: Arrowhead | null;
1056
- currentItemEndArrowhead: Arrowhead | null;
1057
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
1058
- viewBackgroundColor: string;
1059
- scrollX: number;
1060
- scrollY: number;
1061
- cursorButton: "up" | "down";
1062
- scrolledOutside: boolean;
1063
- name: string;
1064
- isResizing: boolean;
1065
- isRotating: boolean;
1066
- zoom: Readonly<{
1067
- value: import("../../src/types").NormalizedZoomValue;
1068
- }>;
1069
- openMenu: "canvas" | "shape" | null;
1070
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1071
- lastPointerDownWith: import("../element/types").PointerType;
1072
- selectedElementIds: {
1073
- [id: string]: boolean;
1074
- };
1075
- previousSelectedElementIds: {
1076
- [id: string]: boolean;
1077
- };
1078
- shouldCacheIgnoreZoom: boolean;
1079
- showHelpDialog: boolean;
1080
- toast: {
1081
- message: string;
1082
- closable?: boolean | undefined;
1083
- duration?: number | undefined;
1084
- } | null;
1085
- zenModeEnabled: boolean;
1086
- theme: string;
1087
- gridSize: number | null;
1088
- viewModeEnabled: boolean;
1089
- selectedGroupIds: {
1090
- [groupId: string]: boolean;
1091
- };
1092
- editingGroupId: string | null;
1093
- width: number;
1094
- height: number;
1095
- offsetTop: number;
1096
- offsetLeft: number;
1097
- isLibraryOpen: boolean;
1098
- isLibraryMenuDocked: boolean;
1099
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1100
- collaborators: Map<string, import("../../src/types").Collaborator>;
1101
- showStats: boolean;
1102
- currentChartType: import("../element/types").ChartType;
1103
- pasteDialog: {
1104
- shown: false;
1105
- data: null;
1106
- } | {
1107
- shown: true;
1108
- data: import("../charts").Spreadsheet;
1109
- };
1110
- pendingImageElementId: string | null;
1111
- showHyperlinkPopup: false | "info" | "editor";
1112
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1113
- };
1114
- commitToHistory: true;
1115
- };
1116
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1117
- } & {
1118
- keyTest?: undefined;
1119
- };
1120
- export declare const actionChangeVerticalAlign: {
1121
- name: "changeVerticalAlign";
1122
- trackEvent: {
1123
- category: "element";
1124
- };
1125
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1126
- elements: ExcalidrawElement[];
1127
- appState: {
1128
- isLoading: boolean;
1129
- errorMessage: string | null;
1130
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1131
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1132
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1133
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1134
- isBindingEnabled: boolean;
1135
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1136
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1137
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1138
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1139
- activeTool: {
1140
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
1141
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1142
- locked: boolean;
1143
- customType: null;
1144
- } | {
1145
- type: "custom";
1146
- customType: string;
1147
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1148
- locked: boolean;
1149
- };
1150
- penMode: boolean;
1151
- penDetected: boolean;
1152
- exportBackground: boolean;
1153
- exportEmbedScene: boolean;
1154
- exportWithDarkMode: boolean;
1155
- exportScale: number;
1156
- currentItemStrokeColor: string;
1157
- currentItemBackgroundColor: string;
1158
- currentItemFillStyle: import("../element/types").FillStyle;
1159
- currentItemStrokeWidth: number;
1160
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1161
- currentItemRoughness: number;
1162
- currentItemOpacity: number;
1163
- currentItemFontFamily: number;
1164
- currentItemFontSize: number;
1165
- currentItemTextAlign: TextAlign;
1166
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
1167
- currentItemStartArrowhead: Arrowhead | null;
1168
- currentItemEndArrowhead: Arrowhead | null;
1169
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
1170
- viewBackgroundColor: string;
1171
- scrollX: number;
1172
- scrollY: number;
1173
- cursorButton: "up" | "down";
1174
- scrolledOutside: boolean;
1175
- name: string;
1176
- isResizing: boolean;
1177
- isRotating: boolean;
1178
- zoom: Readonly<{
1179
- value: import("../../src/types").NormalizedZoomValue;
1180
- }>;
1181
- openMenu: "canvas" | "shape" | null;
1182
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1183
- lastPointerDownWith: import("../element/types").PointerType;
1184
- selectedElementIds: {
1185
- [id: string]: boolean;
1186
- };
1187
- previousSelectedElementIds: {
1188
- [id: string]: boolean;
1189
- };
1190
- shouldCacheIgnoreZoom: boolean;
1191
- showHelpDialog: boolean;
1192
- toast: {
1193
- message: string;
1194
- closable?: boolean | undefined;
1195
- duration?: number | undefined;
1196
- } | null;
1197
- zenModeEnabled: boolean;
1198
- theme: string;
1199
- gridSize: number | null;
1200
- viewModeEnabled: boolean;
1201
- selectedGroupIds: {
1202
- [groupId: string]: boolean;
1203
- };
1204
- editingGroupId: string | null;
1205
- width: number;
1206
- height: number;
1207
- offsetTop: number;
1208
- offsetLeft: number;
1209
- isLibraryOpen: boolean;
1210
- isLibraryMenuDocked: boolean;
1211
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1212
- collaborators: Map<string, import("../../src/types").Collaborator>;
1213
- showStats: boolean;
1214
- currentChartType: import("../element/types").ChartType;
1215
- pasteDialog: {
1216
- shown: false;
1217
- data: null;
1218
- } | {
1219
- shown: true;
1220
- data: import("../charts").Spreadsheet;
1221
- };
1222
- pendingImageElementId: string | null;
1223
- showHyperlinkPopup: false | "info" | "editor";
1224
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1225
- };
1226
- commitToHistory: true;
1227
- };
1228
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1229
- } & {
1230
- keyTest?: undefined;
1231
- };
1232
- export declare const actionChangeSharpness: {
1233
- name: "changeSharpness";
1234
- trackEvent: false;
1235
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1236
- elements: ExcalidrawElement[];
1237
- appState: {
1238
- currentItemStrokeSharpness: any;
1239
- currentItemLinearStrokeSharpness: any;
1240
- isLoading: boolean;
1241
- errorMessage: string | null;
1242
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1243
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1244
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1245
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1246
- isBindingEnabled: boolean;
1247
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1248
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1249
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1250
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1251
- activeTool: {
1252
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
1253
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1254
- locked: boolean;
1255
- customType: null;
1256
- } | {
1257
- type: "custom";
1258
- customType: string;
1259
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1260
- locked: boolean;
1261
- };
1262
- penMode: boolean;
1263
- penDetected: boolean;
1264
- exportBackground: boolean;
1265
- exportEmbedScene: boolean;
1266
- exportWithDarkMode: boolean;
1267
- exportScale: number;
1268
- currentItemStrokeColor: string;
1269
- currentItemBackgroundColor: string;
1270
- currentItemFillStyle: import("../element/types").FillStyle;
1271
- currentItemStrokeWidth: number;
1272
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1273
- currentItemRoughness: number;
1274
- currentItemOpacity: number;
1275
- currentItemFontFamily: number;
1276
- currentItemFontSize: number;
1277
- currentItemTextAlign: TextAlign;
1278
- currentItemStartArrowhead: Arrowhead | null;
1279
- currentItemEndArrowhead: Arrowhead | null;
1280
- viewBackgroundColor: string;
1281
- scrollX: number;
1282
- scrollY: number;
1283
- cursorButton: "up" | "down";
1284
- scrolledOutside: boolean;
1285
- name: string;
1286
- isResizing: boolean;
1287
- isRotating: boolean;
1288
- zoom: Readonly<{
1289
- value: import("../../src/types").NormalizedZoomValue;
1290
- }>;
1291
- openMenu: "canvas" | "shape" | null;
1292
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1293
- lastPointerDownWith: import("../element/types").PointerType;
1294
- selectedElementIds: {
1295
- [id: string]: boolean;
1296
- };
1297
- previousSelectedElementIds: {
1298
- [id: string]: boolean;
1299
- };
1300
- shouldCacheIgnoreZoom: boolean;
1301
- showHelpDialog: boolean;
1302
- toast: {
1303
- message: string;
1304
- closable?: boolean | undefined;
1305
- duration?: number | undefined;
1306
- } | null;
1307
- zenModeEnabled: boolean;
1308
- theme: string;
1309
- gridSize: number | null;
1310
- viewModeEnabled: boolean;
1311
- selectedGroupIds: {
1312
- [groupId: string]: boolean;
1313
- };
1314
- editingGroupId: string | null;
1315
- width: number;
1316
- height: number;
1317
- offsetTop: number;
1318
- offsetLeft: number;
1319
- isLibraryOpen: boolean;
1320
- isLibraryMenuDocked: boolean;
1321
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1322
- collaborators: Map<string, import("../../src/types").Collaborator>;
1323
- showStats: boolean;
1324
- currentChartType: import("../element/types").ChartType;
1325
- pasteDialog: {
1326
- shown: false;
1327
- data: null;
1328
- } | {
1329
- shown: true;
1330
- data: import("../charts").Spreadsheet;
1331
- };
1332
- pendingImageElementId: string | null;
1333
- showHyperlinkPopup: false | "info" | "editor";
1334
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1335
- };
1336
- commitToHistory: true;
1337
- };
1338
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1339
- } & {
1340
- keyTest?: undefined;
1341
- };
1342
- export declare const actionChangeArrowhead: {
1343
- name: "changeArrowhead";
1344
- trackEvent: false;
1345
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: {
1346
- position: "start" | "end";
1347
- type: Arrowhead;
1348
- }) => {
1349
- elements: ExcalidrawElement[];
1350
- appState: {
1351
- isLoading: boolean;
1352
- errorMessage: string | null;
1353
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1354
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1355
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1356
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1357
- isBindingEnabled: boolean;
1358
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1359
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1360
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1361
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1362
- activeTool: {
1363
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
1364
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1365
- locked: boolean;
1366
- customType: null;
1367
- } | {
1368
- type: "custom";
1369
- customType: string;
1370
- lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1371
- locked: boolean;
1372
- };
1373
- penMode: boolean;
1374
- penDetected: boolean;
1375
- exportBackground: boolean;
1376
- exportEmbedScene: boolean;
1377
- exportWithDarkMode: boolean;
1378
- exportScale: number;
1379
- currentItemStrokeColor: string;
1380
- currentItemBackgroundColor: string;
1381
- currentItemFillStyle: import("../element/types").FillStyle;
1382
- currentItemStrokeWidth: number;
1383
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1384
- currentItemRoughness: number;
1385
- currentItemOpacity: number;
1386
- currentItemFontFamily: number;
1387
- currentItemFontSize: number;
1388
- currentItemTextAlign: TextAlign;
1389
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
1390
- currentItemStartArrowhead: Arrowhead | null;
1391
- currentItemEndArrowhead: Arrowhead | null;
1392
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
1393
- viewBackgroundColor: string;
1394
- scrollX: number;
1395
- scrollY: number;
1396
- cursorButton: "up" | "down";
1397
- scrolledOutside: boolean;
1398
- name: string;
1399
- isResizing: boolean;
1400
- isRotating: boolean;
1401
- zoom: Readonly<{
1402
- value: import("../../src/types").NormalizedZoomValue;
1403
- }>;
1404
- openMenu: "canvas" | "shape" | null;
1405
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1406
- lastPointerDownWith: import("../element/types").PointerType;
1407
- selectedElementIds: {
1408
- [id: string]: boolean;
1409
- };
1410
- previousSelectedElementIds: {
1411
- [id: string]: boolean;
1412
- };
1413
- shouldCacheIgnoreZoom: boolean;
1414
- showHelpDialog: boolean;
1415
- toast: {
1416
- message: string;
1417
- closable?: boolean | undefined;
1418
- duration?: number | undefined;
1419
- } | null;
1420
- zenModeEnabled: boolean;
1421
- theme: string;
1422
- gridSize: number | null;
1423
- viewModeEnabled: boolean;
1424
- selectedGroupIds: {
1425
- [groupId: string]: boolean;
1426
- };
1427
- editingGroupId: string | null;
1428
- width: number;
1429
- height: number;
1430
- offsetTop: number;
1431
- offsetLeft: number;
1432
- isLibraryOpen: boolean;
1433
- isLibraryMenuDocked: boolean;
1434
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1435
- collaborators: Map<string, import("../../src/types").Collaborator>;
1436
- showStats: boolean;
1437
- currentChartType: import("../element/types").ChartType;
1438
- pasteDialog: {
1439
- shown: false;
1440
- data: null;
1441
- } | {
1442
- shown: true;
1443
- data: import("../charts").Spreadsheet;
1444
- };
1445
- pendingImageElementId: string | null;
1446
- showHyperlinkPopup: false | "info" | "editor";
1447
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1448
- };
1449
- commitToHistory: true;
1450
- };
1451
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1452
- } & {
1453
- keyTest?: undefined;
1454
- };
1
+ /// <reference types="react" />
2
+ import { AppState } from "../../src/types";
3
+ import { Arrowhead, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
4
+ export declare const actionChangeStrokeColor: {
5
+ name: "changeStrokeColor";
6
+ trackEvent: false;
7
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
8
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
9
+ isInHamburgerMenu: boolean;
10
+ }) => JSX.Element;
11
+ } & {
12
+ keyTest?: undefined;
13
+ };
14
+ export declare const actionChangeBackgroundColor: {
15
+ name: "changeBackgroundColor";
16
+ trackEvent: false;
17
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
18
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
19
+ isInHamburgerMenu: boolean;
20
+ }) => JSX.Element;
21
+ } & {
22
+ keyTest?: undefined;
23
+ };
24
+ export declare const actionChangeFillStyle: {
25
+ name: "changeFillStyle";
26
+ trackEvent: false;
27
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
28
+ elements: ExcalidrawElement[];
29
+ appState: {
30
+ currentItemFillStyle: any;
31
+ showWelcomeScreen: boolean;
32
+ isLoading: boolean;
33
+ errorMessage: string | null;
34
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
35
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
36
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
37
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
38
+ isBindingEnabled: boolean;
39
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
40
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
41
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
42
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
43
+ activeTool: {
44
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
45
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
46
+ locked: boolean;
47
+ customType: null;
48
+ } | {
49
+ type: "custom";
50
+ customType: string;
51
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
52
+ locked: boolean;
53
+ };
54
+ penMode: boolean;
55
+ penDetected: boolean;
56
+ exportBackground: boolean;
57
+ exportEmbedScene: boolean;
58
+ exportWithDarkMode: boolean;
59
+ exportScale: number;
60
+ currentItemStrokeColor: string;
61
+ currentItemBackgroundColor: string;
62
+ currentItemStrokeWidth: number;
63
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
64
+ currentItemRoughness: number;
65
+ currentItemOpacity: number;
66
+ currentItemFontFamily: number;
67
+ currentItemFontSize: number;
68
+ currentItemTextAlign: string;
69
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
70
+ currentItemStartArrowhead: Arrowhead | null;
71
+ currentItemEndArrowhead: Arrowhead | null;
72
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
73
+ viewBackgroundColor: string;
74
+ scrollX: number;
75
+ scrollY: number;
76
+ cursorButton: "up" | "down";
77
+ scrolledOutside: boolean;
78
+ name: string;
79
+ isResizing: boolean;
80
+ isRotating: boolean;
81
+ zoom: Readonly<{
82
+ value: import("../../src/types").NormalizedZoomValue;
83
+ }>;
84
+ openMenu: "canvas" | "shape" | null;
85
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
86
+ openSidebar: "library" | "customSidebar" | null;
87
+ openDialog: "imageExport" | "help" | null;
88
+ isSidebarDocked: boolean;
89
+ lastPointerDownWith: import("../element/types").PointerType;
90
+ selectedElementIds: {
91
+ [id: string]: boolean;
92
+ };
93
+ previousSelectedElementIds: {
94
+ [id: string]: boolean;
95
+ };
96
+ shouldCacheIgnoreZoom: boolean;
97
+ toast: {
98
+ message: string;
99
+ closable?: boolean | undefined;
100
+ duration?: number | undefined;
101
+ } | null;
102
+ zenModeEnabled: boolean;
103
+ theme: string;
104
+ gridSize: number | null;
105
+ viewModeEnabled: boolean;
106
+ selectedGroupIds: {
107
+ [groupId: string]: boolean;
108
+ };
109
+ editingGroupId: string | null;
110
+ width: number;
111
+ height: number;
112
+ offsetTop: number;
113
+ offsetLeft: number;
114
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
115
+ collaborators: Map<string, import("../../src/types").Collaborator>;
116
+ showStats: boolean;
117
+ currentChartType: import("../element/types").ChartType;
118
+ pasteDialog: {
119
+ shown: false;
120
+ data: null;
121
+ } | {
122
+ shown: true;
123
+ data: import("../charts").Spreadsheet;
124
+ };
125
+ pendingImageElementId: string | null;
126
+ showHyperlinkPopup: false | "info" | "editor";
127
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
128
+ };
129
+ commitToHistory: true;
130
+ };
131
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
132
+ isInHamburgerMenu: boolean;
133
+ }) => JSX.Element;
134
+ } & {
135
+ keyTest?: undefined;
136
+ };
137
+ export declare const actionChangeStrokeWidth: {
138
+ name: "changeStrokeWidth";
139
+ trackEvent: false;
140
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
141
+ elements: ExcalidrawElement[];
142
+ appState: {
143
+ currentItemStrokeWidth: any;
144
+ showWelcomeScreen: boolean;
145
+ isLoading: boolean;
146
+ errorMessage: string | null;
147
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
148
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
149
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
150
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
151
+ isBindingEnabled: boolean;
152
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
153
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
154
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
155
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
156
+ activeTool: {
157
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
158
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
159
+ locked: boolean;
160
+ customType: null;
161
+ } | {
162
+ type: "custom";
163
+ customType: string;
164
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
165
+ locked: boolean;
166
+ };
167
+ penMode: boolean;
168
+ penDetected: boolean;
169
+ exportBackground: boolean;
170
+ exportEmbedScene: boolean;
171
+ exportWithDarkMode: boolean;
172
+ exportScale: number;
173
+ currentItemStrokeColor: string;
174
+ currentItemBackgroundColor: string;
175
+ currentItemFillStyle: import("../element/types").FillStyle;
176
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
177
+ currentItemRoughness: number;
178
+ currentItemOpacity: number;
179
+ currentItemFontFamily: number;
180
+ currentItemFontSize: number;
181
+ currentItemTextAlign: string;
182
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
183
+ currentItemStartArrowhead: Arrowhead | null;
184
+ currentItemEndArrowhead: Arrowhead | null;
185
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
186
+ viewBackgroundColor: string;
187
+ scrollX: number;
188
+ scrollY: number;
189
+ cursorButton: "up" | "down";
190
+ scrolledOutside: boolean;
191
+ name: string;
192
+ isResizing: boolean;
193
+ isRotating: boolean;
194
+ zoom: Readonly<{
195
+ value: import("../../src/types").NormalizedZoomValue;
196
+ }>;
197
+ openMenu: "canvas" | "shape" | null;
198
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
199
+ openSidebar: "library" | "customSidebar" | null;
200
+ openDialog: "imageExport" | "help" | null;
201
+ isSidebarDocked: boolean;
202
+ lastPointerDownWith: import("../element/types").PointerType;
203
+ selectedElementIds: {
204
+ [id: string]: boolean;
205
+ };
206
+ previousSelectedElementIds: {
207
+ [id: string]: boolean;
208
+ };
209
+ shouldCacheIgnoreZoom: boolean;
210
+ toast: {
211
+ message: string;
212
+ closable?: boolean | undefined;
213
+ duration?: number | undefined;
214
+ } | null;
215
+ zenModeEnabled: boolean;
216
+ theme: string;
217
+ gridSize: number | null;
218
+ viewModeEnabled: boolean;
219
+ selectedGroupIds: {
220
+ [groupId: string]: boolean;
221
+ };
222
+ editingGroupId: string | null;
223
+ width: number;
224
+ height: number;
225
+ offsetTop: number;
226
+ offsetLeft: number;
227
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
228
+ collaborators: Map<string, import("../../src/types").Collaborator>;
229
+ showStats: boolean;
230
+ currentChartType: import("../element/types").ChartType;
231
+ pasteDialog: {
232
+ shown: false;
233
+ data: null;
234
+ } | {
235
+ shown: true;
236
+ data: import("../charts").Spreadsheet;
237
+ };
238
+ pendingImageElementId: string | null;
239
+ showHyperlinkPopup: false | "info" | "editor";
240
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
241
+ };
242
+ commitToHistory: true;
243
+ };
244
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
245
+ isInHamburgerMenu: boolean;
246
+ }) => JSX.Element;
247
+ } & {
248
+ keyTest?: undefined;
249
+ };
250
+ export declare const actionChangeSloppiness: {
251
+ name: "changeSloppiness";
252
+ trackEvent: false;
253
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
254
+ elements: ExcalidrawElement[];
255
+ appState: {
256
+ currentItemRoughness: any;
257
+ showWelcomeScreen: boolean;
258
+ isLoading: boolean;
259
+ errorMessage: string | null;
260
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
261
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
262
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
263
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
264
+ isBindingEnabled: boolean;
265
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
266
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
267
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
268
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
269
+ activeTool: {
270
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
271
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
272
+ locked: boolean;
273
+ customType: null;
274
+ } | {
275
+ type: "custom";
276
+ customType: string;
277
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
278
+ locked: boolean;
279
+ };
280
+ penMode: boolean;
281
+ penDetected: boolean;
282
+ exportBackground: boolean;
283
+ exportEmbedScene: boolean;
284
+ exportWithDarkMode: boolean;
285
+ exportScale: number;
286
+ currentItemStrokeColor: string;
287
+ currentItemBackgroundColor: string;
288
+ currentItemFillStyle: import("../element/types").FillStyle;
289
+ currentItemStrokeWidth: number;
290
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
291
+ currentItemOpacity: number;
292
+ currentItemFontFamily: number;
293
+ currentItemFontSize: number;
294
+ currentItemTextAlign: string;
295
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
296
+ currentItemStartArrowhead: Arrowhead | null;
297
+ currentItemEndArrowhead: Arrowhead | null;
298
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
299
+ viewBackgroundColor: string;
300
+ scrollX: number;
301
+ scrollY: number;
302
+ cursorButton: "up" | "down";
303
+ scrolledOutside: boolean;
304
+ name: string;
305
+ isResizing: boolean;
306
+ isRotating: boolean;
307
+ zoom: Readonly<{
308
+ value: import("../../src/types").NormalizedZoomValue;
309
+ }>;
310
+ openMenu: "canvas" | "shape" | null;
311
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
312
+ openSidebar: "library" | "customSidebar" | null;
313
+ openDialog: "imageExport" | "help" | null;
314
+ isSidebarDocked: boolean;
315
+ lastPointerDownWith: import("../element/types").PointerType;
316
+ selectedElementIds: {
317
+ [id: string]: boolean;
318
+ };
319
+ previousSelectedElementIds: {
320
+ [id: string]: boolean;
321
+ };
322
+ shouldCacheIgnoreZoom: boolean;
323
+ toast: {
324
+ message: string;
325
+ closable?: boolean | undefined;
326
+ duration?: number | undefined;
327
+ } | null;
328
+ zenModeEnabled: boolean;
329
+ theme: string;
330
+ gridSize: number | null;
331
+ viewModeEnabled: boolean;
332
+ selectedGroupIds: {
333
+ [groupId: string]: boolean;
334
+ };
335
+ editingGroupId: string | null;
336
+ width: number;
337
+ height: number;
338
+ offsetTop: number;
339
+ offsetLeft: number;
340
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
341
+ collaborators: Map<string, import("../../src/types").Collaborator>;
342
+ showStats: boolean;
343
+ currentChartType: import("../element/types").ChartType;
344
+ pasteDialog: {
345
+ shown: false;
346
+ data: null;
347
+ } | {
348
+ shown: true;
349
+ data: import("../charts").Spreadsheet;
350
+ };
351
+ pendingImageElementId: string | null;
352
+ showHyperlinkPopup: false | "info" | "editor";
353
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
354
+ };
355
+ commitToHistory: true;
356
+ };
357
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
358
+ isInHamburgerMenu: boolean;
359
+ }) => JSX.Element;
360
+ } & {
361
+ keyTest?: undefined;
362
+ };
363
+ export declare const actionChangeStrokeStyle: {
364
+ name: "changeStrokeStyle";
365
+ trackEvent: false;
366
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
367
+ elements: ExcalidrawElement[];
368
+ appState: {
369
+ currentItemStrokeStyle: any;
370
+ showWelcomeScreen: boolean;
371
+ isLoading: boolean;
372
+ errorMessage: string | null;
373
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
374
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
375
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
376
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
377
+ isBindingEnabled: boolean;
378
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
379
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
380
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
381
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
382
+ activeTool: {
383
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
384
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
385
+ locked: boolean;
386
+ customType: null;
387
+ } | {
388
+ type: "custom";
389
+ customType: string;
390
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
391
+ locked: boolean;
392
+ };
393
+ penMode: boolean;
394
+ penDetected: boolean;
395
+ exportBackground: boolean;
396
+ exportEmbedScene: boolean;
397
+ exportWithDarkMode: boolean;
398
+ exportScale: number;
399
+ currentItemStrokeColor: string;
400
+ currentItemBackgroundColor: string;
401
+ currentItemFillStyle: import("../element/types").FillStyle;
402
+ currentItemStrokeWidth: number;
403
+ currentItemRoughness: number;
404
+ currentItemOpacity: number;
405
+ currentItemFontFamily: number;
406
+ currentItemFontSize: number;
407
+ currentItemTextAlign: string;
408
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
409
+ currentItemStartArrowhead: Arrowhead | null;
410
+ currentItemEndArrowhead: Arrowhead | null;
411
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
412
+ viewBackgroundColor: string;
413
+ scrollX: number;
414
+ scrollY: number;
415
+ cursorButton: "up" | "down";
416
+ scrolledOutside: boolean;
417
+ name: string;
418
+ isResizing: boolean;
419
+ isRotating: boolean;
420
+ zoom: Readonly<{
421
+ value: import("../../src/types").NormalizedZoomValue;
422
+ }>;
423
+ openMenu: "canvas" | "shape" | null;
424
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
425
+ openSidebar: "library" | "customSidebar" | null;
426
+ openDialog: "imageExport" | "help" | null;
427
+ isSidebarDocked: boolean;
428
+ lastPointerDownWith: import("../element/types").PointerType;
429
+ selectedElementIds: {
430
+ [id: string]: boolean;
431
+ };
432
+ previousSelectedElementIds: {
433
+ [id: string]: boolean;
434
+ };
435
+ shouldCacheIgnoreZoom: boolean;
436
+ toast: {
437
+ message: string;
438
+ closable?: boolean | undefined;
439
+ duration?: number | undefined;
440
+ } | null;
441
+ zenModeEnabled: boolean;
442
+ theme: string;
443
+ gridSize: number | null;
444
+ viewModeEnabled: boolean;
445
+ selectedGroupIds: {
446
+ [groupId: string]: boolean;
447
+ };
448
+ editingGroupId: string | null;
449
+ width: number;
450
+ height: number;
451
+ offsetTop: number;
452
+ offsetLeft: number;
453
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
454
+ collaborators: Map<string, import("../../src/types").Collaborator>;
455
+ showStats: boolean;
456
+ currentChartType: import("../element/types").ChartType;
457
+ pasteDialog: {
458
+ shown: false;
459
+ data: null;
460
+ } | {
461
+ shown: true;
462
+ data: import("../charts").Spreadsheet;
463
+ };
464
+ pendingImageElementId: string | null;
465
+ showHyperlinkPopup: false | "info" | "editor";
466
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
467
+ };
468
+ commitToHistory: true;
469
+ };
470
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
471
+ isInHamburgerMenu: boolean;
472
+ }) => JSX.Element;
473
+ } & {
474
+ keyTest?: undefined;
475
+ };
476
+ export declare const actionChangeOpacity: {
477
+ name: "changeOpacity";
478
+ trackEvent: false;
479
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
480
+ elements: ExcalidrawElement[];
481
+ appState: {
482
+ currentItemOpacity: any;
483
+ showWelcomeScreen: boolean;
484
+ isLoading: boolean;
485
+ errorMessage: string | null;
486
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
487
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
488
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
489
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
490
+ isBindingEnabled: boolean;
491
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
492
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
493
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
494
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
495
+ activeTool: {
496
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
497
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
498
+ locked: boolean;
499
+ customType: null;
500
+ } | {
501
+ type: "custom";
502
+ customType: string;
503
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
504
+ locked: boolean;
505
+ };
506
+ penMode: boolean;
507
+ penDetected: boolean;
508
+ exportBackground: boolean;
509
+ exportEmbedScene: boolean;
510
+ exportWithDarkMode: boolean;
511
+ exportScale: number;
512
+ currentItemStrokeColor: string;
513
+ currentItemBackgroundColor: string;
514
+ currentItemFillStyle: import("../element/types").FillStyle;
515
+ currentItemStrokeWidth: number;
516
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
517
+ currentItemRoughness: number;
518
+ currentItemFontFamily: number;
519
+ currentItemFontSize: number;
520
+ currentItemTextAlign: string;
521
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
522
+ currentItemStartArrowhead: Arrowhead | null;
523
+ currentItemEndArrowhead: Arrowhead | null;
524
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
525
+ viewBackgroundColor: string;
526
+ scrollX: number;
527
+ scrollY: number;
528
+ cursorButton: "up" | "down";
529
+ scrolledOutside: boolean;
530
+ name: string;
531
+ isResizing: boolean;
532
+ isRotating: boolean;
533
+ zoom: Readonly<{
534
+ value: import("../../src/types").NormalizedZoomValue;
535
+ }>;
536
+ openMenu: "canvas" | "shape" | null;
537
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
538
+ openSidebar: "library" | "customSidebar" | null;
539
+ openDialog: "imageExport" | "help" | null;
540
+ isSidebarDocked: boolean;
541
+ lastPointerDownWith: import("../element/types").PointerType;
542
+ selectedElementIds: {
543
+ [id: string]: boolean;
544
+ };
545
+ previousSelectedElementIds: {
546
+ [id: string]: boolean;
547
+ };
548
+ shouldCacheIgnoreZoom: boolean;
549
+ toast: {
550
+ message: string;
551
+ closable?: boolean | undefined;
552
+ duration?: number | undefined;
553
+ } | null;
554
+ zenModeEnabled: boolean;
555
+ theme: string;
556
+ gridSize: number | null;
557
+ viewModeEnabled: boolean;
558
+ selectedGroupIds: {
559
+ [groupId: string]: boolean;
560
+ };
561
+ editingGroupId: string | null;
562
+ width: number;
563
+ height: number;
564
+ offsetTop: number;
565
+ offsetLeft: number;
566
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
567
+ collaborators: Map<string, import("../../src/types").Collaborator>;
568
+ showStats: boolean;
569
+ currentChartType: import("../element/types").ChartType;
570
+ pasteDialog: {
571
+ shown: false;
572
+ data: null;
573
+ } | {
574
+ shown: true;
575
+ data: import("../charts").Spreadsheet;
576
+ };
577
+ pendingImageElementId: string | null;
578
+ showHyperlinkPopup: false | "info" | "editor";
579
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
580
+ };
581
+ commitToHistory: true;
582
+ };
583
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
584
+ isInHamburgerMenu: boolean;
585
+ }) => JSX.Element;
586
+ } & {
587
+ keyTest?: undefined;
588
+ };
589
+ export declare const actionChangeFontSize: {
590
+ name: "changeFontSize";
591
+ trackEvent: false;
592
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
593
+ elements: ExcalidrawElement[];
594
+ appState: {
595
+ currentItemFontSize: number;
596
+ showWelcomeScreen: boolean;
597
+ isLoading: boolean;
598
+ errorMessage: string | null;
599
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
600
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
601
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
602
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
603
+ isBindingEnabled: boolean;
604
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
605
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
606
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
607
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
608
+ activeTool: {
609
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
610
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
611
+ locked: boolean;
612
+ customType: null;
613
+ } | {
614
+ type: "custom";
615
+ customType: string;
616
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
617
+ locked: boolean;
618
+ };
619
+ penMode: boolean;
620
+ penDetected: boolean;
621
+ exportBackground: boolean;
622
+ exportEmbedScene: boolean;
623
+ exportWithDarkMode: boolean;
624
+ exportScale: number;
625
+ currentItemStrokeColor: string;
626
+ currentItemBackgroundColor: string;
627
+ currentItemFillStyle: import("../element/types").FillStyle;
628
+ currentItemStrokeWidth: number;
629
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
630
+ currentItemRoughness: number;
631
+ currentItemOpacity: number;
632
+ currentItemFontFamily: number;
633
+ currentItemTextAlign: string;
634
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
635
+ currentItemStartArrowhead: Arrowhead | null;
636
+ currentItemEndArrowhead: Arrowhead | null;
637
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
638
+ viewBackgroundColor: string;
639
+ scrollX: number;
640
+ scrollY: number;
641
+ cursorButton: "up" | "down";
642
+ scrolledOutside: boolean;
643
+ name: string;
644
+ isResizing: boolean;
645
+ isRotating: boolean;
646
+ zoom: Readonly<{
647
+ value: import("../../src/types").NormalizedZoomValue;
648
+ }>;
649
+ openMenu: "canvas" | "shape" | null;
650
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
651
+ openSidebar: "library" | "customSidebar" | null;
652
+ openDialog: "imageExport" | "help" | null;
653
+ isSidebarDocked: boolean;
654
+ lastPointerDownWith: import("../element/types").PointerType;
655
+ selectedElementIds: {
656
+ [id: string]: boolean;
657
+ };
658
+ previousSelectedElementIds: {
659
+ [id: string]: boolean;
660
+ };
661
+ shouldCacheIgnoreZoom: boolean;
662
+ toast: {
663
+ message: string;
664
+ closable?: boolean | undefined;
665
+ duration?: number | undefined;
666
+ } | null;
667
+ zenModeEnabled: boolean;
668
+ theme: string;
669
+ gridSize: number | null;
670
+ viewModeEnabled: boolean;
671
+ selectedGroupIds: {
672
+ [groupId: string]: boolean;
673
+ };
674
+ editingGroupId: string | null;
675
+ width: number;
676
+ height: number;
677
+ offsetTop: number;
678
+ offsetLeft: number;
679
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
680
+ collaborators: Map<string, import("../../src/types").Collaborator>;
681
+ showStats: boolean;
682
+ currentChartType: import("../element/types").ChartType;
683
+ pasteDialog: {
684
+ shown: false;
685
+ data: null;
686
+ } | {
687
+ shown: true;
688
+ data: import("../charts").Spreadsheet;
689
+ };
690
+ pendingImageElementId: string | null;
691
+ showHyperlinkPopup: false | "info" | "editor";
692
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
693
+ };
694
+ commitToHistory: boolean;
695
+ };
696
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
697
+ isInHamburgerMenu: boolean;
698
+ }) => JSX.Element;
699
+ } & {
700
+ keyTest?: undefined;
701
+ };
702
+ export declare const actionDecreaseFontSize: {
703
+ name: "decreaseFontSize";
704
+ trackEvent: false;
705
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
706
+ elements: ExcalidrawElement[];
707
+ appState: {
708
+ currentItemFontSize: number;
709
+ showWelcomeScreen: boolean;
710
+ isLoading: boolean;
711
+ errorMessage: string | null;
712
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
713
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
714
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
715
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
716
+ isBindingEnabled: boolean;
717
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
718
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
719
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
720
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
721
+ activeTool: {
722
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
723
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
724
+ locked: boolean;
725
+ customType: null;
726
+ } | {
727
+ type: "custom";
728
+ customType: string;
729
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
730
+ locked: boolean;
731
+ };
732
+ penMode: boolean;
733
+ penDetected: boolean;
734
+ exportBackground: boolean;
735
+ exportEmbedScene: boolean;
736
+ exportWithDarkMode: boolean;
737
+ exportScale: number;
738
+ currentItemStrokeColor: string;
739
+ currentItemBackgroundColor: string;
740
+ currentItemFillStyle: import("../element/types").FillStyle;
741
+ currentItemStrokeWidth: number;
742
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
743
+ currentItemRoughness: number;
744
+ currentItemOpacity: number;
745
+ currentItemFontFamily: number;
746
+ currentItemTextAlign: string;
747
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
748
+ currentItemStartArrowhead: Arrowhead | null;
749
+ currentItemEndArrowhead: Arrowhead | null;
750
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
751
+ viewBackgroundColor: string;
752
+ scrollX: number;
753
+ scrollY: number;
754
+ cursorButton: "up" | "down";
755
+ scrolledOutside: boolean;
756
+ name: string;
757
+ isResizing: boolean;
758
+ isRotating: boolean;
759
+ zoom: Readonly<{
760
+ value: import("../../src/types").NormalizedZoomValue;
761
+ }>;
762
+ openMenu: "canvas" | "shape" | null;
763
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
764
+ openSidebar: "library" | "customSidebar" | null;
765
+ openDialog: "imageExport" | "help" | null;
766
+ isSidebarDocked: boolean;
767
+ lastPointerDownWith: import("../element/types").PointerType;
768
+ selectedElementIds: {
769
+ [id: string]: boolean;
770
+ };
771
+ previousSelectedElementIds: {
772
+ [id: string]: boolean;
773
+ };
774
+ shouldCacheIgnoreZoom: boolean;
775
+ toast: {
776
+ message: string;
777
+ closable?: boolean | undefined;
778
+ duration?: number | undefined;
779
+ } | null;
780
+ zenModeEnabled: boolean;
781
+ theme: string;
782
+ gridSize: number | null;
783
+ viewModeEnabled: boolean;
784
+ selectedGroupIds: {
785
+ [groupId: string]: boolean;
786
+ };
787
+ editingGroupId: string | null;
788
+ width: number;
789
+ height: number;
790
+ offsetTop: number;
791
+ offsetLeft: number;
792
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
793
+ collaborators: Map<string, import("../../src/types").Collaborator>;
794
+ showStats: boolean;
795
+ currentChartType: import("../element/types").ChartType;
796
+ pasteDialog: {
797
+ shown: false;
798
+ data: null;
799
+ } | {
800
+ shown: true;
801
+ data: import("../charts").Spreadsheet;
802
+ };
803
+ pendingImageElementId: string | null;
804
+ showHyperlinkPopup: false | "info" | "editor";
805
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
806
+ };
807
+ commitToHistory: boolean;
808
+ };
809
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
810
+ } & {
811
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
812
+ };
813
+ export declare const actionIncreaseFontSize: {
814
+ name: "increaseFontSize";
815
+ trackEvent: false;
816
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
817
+ elements: ExcalidrawElement[];
818
+ appState: {
819
+ currentItemFontSize: number;
820
+ showWelcomeScreen: boolean;
821
+ isLoading: boolean;
822
+ errorMessage: string | 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
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
831
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
832
+ activeTool: {
833
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
834
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
835
+ locked: boolean;
836
+ customType: null;
837
+ } | {
838
+ type: "custom";
839
+ customType: string;
840
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
841
+ locked: boolean;
842
+ };
843
+ penMode: boolean;
844
+ penDetected: boolean;
845
+ exportBackground: boolean;
846
+ exportEmbedScene: boolean;
847
+ exportWithDarkMode: boolean;
848
+ exportScale: number;
849
+ currentItemStrokeColor: string;
850
+ currentItemBackgroundColor: string;
851
+ currentItemFillStyle: import("../element/types").FillStyle;
852
+ currentItemStrokeWidth: number;
853
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
854
+ currentItemRoughness: number;
855
+ currentItemOpacity: number;
856
+ currentItemFontFamily: number;
857
+ currentItemTextAlign: string;
858
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
859
+ currentItemStartArrowhead: Arrowhead | null;
860
+ currentItemEndArrowhead: Arrowhead | null;
861
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
862
+ viewBackgroundColor: string;
863
+ scrollX: number;
864
+ scrollY: number;
865
+ cursorButton: "up" | "down";
866
+ scrolledOutside: boolean;
867
+ name: string;
868
+ isResizing: boolean;
869
+ isRotating: boolean;
870
+ zoom: Readonly<{
871
+ value: import("../../src/types").NormalizedZoomValue;
872
+ }>;
873
+ openMenu: "canvas" | "shape" | null;
874
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
875
+ openSidebar: "library" | "customSidebar" | null;
876
+ openDialog: "imageExport" | "help" | null;
877
+ isSidebarDocked: boolean;
878
+ lastPointerDownWith: import("../element/types").PointerType;
879
+ selectedElementIds: {
880
+ [id: string]: boolean;
881
+ };
882
+ previousSelectedElementIds: {
883
+ [id: string]: boolean;
884
+ };
885
+ shouldCacheIgnoreZoom: boolean;
886
+ toast: {
887
+ message: string;
888
+ closable?: boolean | undefined;
889
+ duration?: number | undefined;
890
+ } | null;
891
+ zenModeEnabled: boolean;
892
+ theme: string;
893
+ gridSize: number | null;
894
+ viewModeEnabled: boolean;
895
+ selectedGroupIds: {
896
+ [groupId: string]: boolean;
897
+ };
898
+ editingGroupId: string | null;
899
+ width: number;
900
+ height: number;
901
+ offsetTop: number;
902
+ offsetLeft: number;
903
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
904
+ collaborators: Map<string, import("../../src/types").Collaborator>;
905
+ showStats: boolean;
906
+ currentChartType: import("../element/types").ChartType;
907
+ pasteDialog: {
908
+ shown: false;
909
+ data: null;
910
+ } | {
911
+ shown: true;
912
+ data: import("../charts").Spreadsheet;
913
+ };
914
+ pendingImageElementId: string | null;
915
+ showHyperlinkPopup: false | "info" | "editor";
916
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
917
+ };
918
+ commitToHistory: boolean;
919
+ };
920
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
921
+ } & {
922
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
923
+ };
924
+ export declare const actionChangeFontFamily: {
925
+ name: "changeFontFamily";
926
+ trackEvent: false;
927
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
928
+ elements: ExcalidrawElement[];
929
+ appState: {
930
+ currentItemFontFamily: any;
931
+ showWelcomeScreen: boolean;
932
+ isLoading: boolean;
933
+ errorMessage: string | null;
934
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
935
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
936
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
937
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
938
+ isBindingEnabled: boolean;
939
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
940
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
941
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
942
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
943
+ activeTool: {
944
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
945
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
946
+ locked: boolean;
947
+ customType: null;
948
+ } | {
949
+ type: "custom";
950
+ customType: string;
951
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
952
+ locked: boolean;
953
+ };
954
+ penMode: boolean;
955
+ penDetected: boolean;
956
+ exportBackground: boolean;
957
+ exportEmbedScene: boolean;
958
+ exportWithDarkMode: boolean;
959
+ exportScale: number;
960
+ currentItemStrokeColor: string;
961
+ currentItemBackgroundColor: string;
962
+ currentItemFillStyle: import("../element/types").FillStyle;
963
+ currentItemStrokeWidth: number;
964
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
965
+ currentItemRoughness: number;
966
+ currentItemOpacity: number;
967
+ currentItemFontSize: number;
968
+ currentItemTextAlign: string;
969
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
970
+ currentItemStartArrowhead: Arrowhead | null;
971
+ currentItemEndArrowhead: Arrowhead | null;
972
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
973
+ viewBackgroundColor: string;
974
+ scrollX: number;
975
+ scrollY: number;
976
+ cursorButton: "up" | "down";
977
+ scrolledOutside: boolean;
978
+ name: string;
979
+ isResizing: boolean;
980
+ isRotating: boolean;
981
+ zoom: Readonly<{
982
+ value: import("../../src/types").NormalizedZoomValue;
983
+ }>;
984
+ openMenu: "canvas" | "shape" | null;
985
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
986
+ openSidebar: "library" | "customSidebar" | null;
987
+ openDialog: "imageExport" | "help" | null;
988
+ isSidebarDocked: boolean;
989
+ lastPointerDownWith: import("../element/types").PointerType;
990
+ selectedElementIds: {
991
+ [id: string]: boolean;
992
+ };
993
+ previousSelectedElementIds: {
994
+ [id: string]: boolean;
995
+ };
996
+ shouldCacheIgnoreZoom: boolean;
997
+ toast: {
998
+ message: string;
999
+ closable?: boolean | undefined;
1000
+ duration?: number | undefined;
1001
+ } | null;
1002
+ zenModeEnabled: boolean;
1003
+ theme: string;
1004
+ gridSize: number | null;
1005
+ viewModeEnabled: boolean;
1006
+ selectedGroupIds: {
1007
+ [groupId: string]: boolean;
1008
+ };
1009
+ editingGroupId: string | null;
1010
+ width: number;
1011
+ height: number;
1012
+ offsetTop: number;
1013
+ offsetLeft: number;
1014
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1015
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1016
+ showStats: boolean;
1017
+ currentChartType: import("../element/types").ChartType;
1018
+ pasteDialog: {
1019
+ shown: false;
1020
+ data: null;
1021
+ } | {
1022
+ shown: true;
1023
+ data: import("../charts").Spreadsheet;
1024
+ };
1025
+ pendingImageElementId: string | null;
1026
+ showHyperlinkPopup: false | "info" | "editor";
1027
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1028
+ };
1029
+ commitToHistory: true;
1030
+ };
1031
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
1032
+ isInHamburgerMenu: boolean;
1033
+ }) => JSX.Element;
1034
+ } & {
1035
+ keyTest?: undefined;
1036
+ };
1037
+ export declare const actionChangeTextAlign: {
1038
+ name: "changeTextAlign";
1039
+ trackEvent: false;
1040
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1041
+ elements: ExcalidrawElement[];
1042
+ appState: {
1043
+ currentItemTextAlign: any;
1044
+ showWelcomeScreen: boolean;
1045
+ isLoading: boolean;
1046
+ errorMessage: string | null;
1047
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1048
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1049
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1050
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1051
+ isBindingEnabled: boolean;
1052
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1053
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1054
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1055
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1056
+ activeTool: {
1057
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
1058
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1059
+ locked: boolean;
1060
+ customType: null;
1061
+ } | {
1062
+ type: "custom";
1063
+ customType: string;
1064
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1065
+ locked: boolean;
1066
+ };
1067
+ penMode: boolean;
1068
+ penDetected: boolean;
1069
+ exportBackground: boolean;
1070
+ exportEmbedScene: boolean;
1071
+ exportWithDarkMode: boolean;
1072
+ exportScale: number;
1073
+ currentItemStrokeColor: string;
1074
+ currentItemBackgroundColor: string;
1075
+ currentItemFillStyle: import("../element/types").FillStyle;
1076
+ currentItemStrokeWidth: number;
1077
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1078
+ currentItemRoughness: number;
1079
+ currentItemOpacity: number;
1080
+ currentItemFontFamily: number;
1081
+ currentItemFontSize: number;
1082
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
1083
+ currentItemStartArrowhead: Arrowhead | null;
1084
+ currentItemEndArrowhead: Arrowhead | null;
1085
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
1086
+ viewBackgroundColor: string;
1087
+ scrollX: number;
1088
+ scrollY: number;
1089
+ cursorButton: "up" | "down";
1090
+ scrolledOutside: boolean;
1091
+ name: string;
1092
+ isResizing: boolean;
1093
+ isRotating: boolean;
1094
+ zoom: Readonly<{
1095
+ value: import("../../src/types").NormalizedZoomValue;
1096
+ }>;
1097
+ openMenu: "canvas" | "shape" | null;
1098
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1099
+ openSidebar: "library" | "customSidebar" | null;
1100
+ openDialog: "imageExport" | "help" | null;
1101
+ isSidebarDocked: boolean;
1102
+ lastPointerDownWith: import("../element/types").PointerType;
1103
+ selectedElementIds: {
1104
+ [id: string]: boolean;
1105
+ };
1106
+ previousSelectedElementIds: {
1107
+ [id: string]: boolean;
1108
+ };
1109
+ shouldCacheIgnoreZoom: boolean;
1110
+ toast: {
1111
+ message: string;
1112
+ closable?: boolean | undefined;
1113
+ duration?: number | undefined;
1114
+ } | null;
1115
+ zenModeEnabled: boolean;
1116
+ theme: string;
1117
+ gridSize: number | null;
1118
+ viewModeEnabled: boolean;
1119
+ selectedGroupIds: {
1120
+ [groupId: string]: boolean;
1121
+ };
1122
+ editingGroupId: string | null;
1123
+ width: number;
1124
+ height: number;
1125
+ offsetTop: number;
1126
+ offsetLeft: number;
1127
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1128
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1129
+ showStats: boolean;
1130
+ currentChartType: import("../element/types").ChartType;
1131
+ pasteDialog: {
1132
+ shown: false;
1133
+ data: null;
1134
+ } | {
1135
+ shown: true;
1136
+ data: import("../charts").Spreadsheet;
1137
+ };
1138
+ pendingImageElementId: string | null;
1139
+ showHyperlinkPopup: false | "info" | "editor";
1140
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1141
+ };
1142
+ commitToHistory: true;
1143
+ };
1144
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
1145
+ isInHamburgerMenu: boolean;
1146
+ }) => JSX.Element;
1147
+ } & {
1148
+ keyTest?: undefined;
1149
+ };
1150
+ export declare const actionChangeVerticalAlign: {
1151
+ name: "changeVerticalAlign";
1152
+ trackEvent: {
1153
+ category: "element";
1154
+ };
1155
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1156
+ elements: ExcalidrawElement[];
1157
+ appState: {
1158
+ showWelcomeScreen: boolean;
1159
+ isLoading: boolean;
1160
+ errorMessage: string | null;
1161
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1162
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1163
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1164
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1165
+ isBindingEnabled: boolean;
1166
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1167
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1168
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1169
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1170
+ activeTool: {
1171
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
1172
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1173
+ locked: boolean;
1174
+ customType: null;
1175
+ } | {
1176
+ type: "custom";
1177
+ customType: string;
1178
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1179
+ locked: boolean;
1180
+ };
1181
+ penMode: boolean;
1182
+ penDetected: boolean;
1183
+ exportBackground: boolean;
1184
+ exportEmbedScene: boolean;
1185
+ exportWithDarkMode: boolean;
1186
+ exportScale: number;
1187
+ currentItemStrokeColor: string;
1188
+ currentItemBackgroundColor: string;
1189
+ currentItemFillStyle: import("../element/types").FillStyle;
1190
+ currentItemStrokeWidth: number;
1191
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1192
+ currentItemRoughness: number;
1193
+ currentItemOpacity: number;
1194
+ currentItemFontFamily: number;
1195
+ currentItemFontSize: number;
1196
+ currentItemTextAlign: string;
1197
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
1198
+ currentItemStartArrowhead: Arrowhead | null;
1199
+ currentItemEndArrowhead: Arrowhead | null;
1200
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
1201
+ viewBackgroundColor: string;
1202
+ scrollX: number;
1203
+ scrollY: number;
1204
+ cursorButton: "up" | "down";
1205
+ scrolledOutside: boolean;
1206
+ name: string;
1207
+ isResizing: boolean;
1208
+ isRotating: boolean;
1209
+ zoom: Readonly<{
1210
+ value: import("../../src/types").NormalizedZoomValue;
1211
+ }>;
1212
+ openMenu: "canvas" | "shape" | null;
1213
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1214
+ openSidebar: "library" | "customSidebar" | null;
1215
+ openDialog: "imageExport" | "help" | null;
1216
+ isSidebarDocked: boolean;
1217
+ lastPointerDownWith: import("../element/types").PointerType;
1218
+ selectedElementIds: {
1219
+ [id: string]: boolean;
1220
+ };
1221
+ previousSelectedElementIds: {
1222
+ [id: string]: boolean;
1223
+ };
1224
+ shouldCacheIgnoreZoom: boolean;
1225
+ toast: {
1226
+ message: string;
1227
+ closable?: boolean | undefined;
1228
+ duration?: number | undefined;
1229
+ } | null;
1230
+ zenModeEnabled: boolean;
1231
+ theme: string;
1232
+ gridSize: number | null;
1233
+ viewModeEnabled: boolean;
1234
+ selectedGroupIds: {
1235
+ [groupId: string]: boolean;
1236
+ };
1237
+ editingGroupId: string | null;
1238
+ width: number;
1239
+ height: number;
1240
+ offsetTop: number;
1241
+ offsetLeft: number;
1242
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1243
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1244
+ showStats: boolean;
1245
+ currentChartType: import("../element/types").ChartType;
1246
+ pasteDialog: {
1247
+ shown: false;
1248
+ data: null;
1249
+ } | {
1250
+ shown: true;
1251
+ data: import("../charts").Spreadsheet;
1252
+ };
1253
+ pendingImageElementId: string | null;
1254
+ showHyperlinkPopup: false | "info" | "editor";
1255
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1256
+ };
1257
+ commitToHistory: true;
1258
+ };
1259
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
1260
+ isInHamburgerMenu: boolean;
1261
+ }) => JSX.Element;
1262
+ } & {
1263
+ keyTest?: undefined;
1264
+ };
1265
+ export declare const actionChangeSharpness: {
1266
+ name: "changeSharpness";
1267
+ trackEvent: false;
1268
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1269
+ elements: ExcalidrawElement[];
1270
+ appState: {
1271
+ currentItemStrokeSharpness: any;
1272
+ currentItemLinearStrokeSharpness: any;
1273
+ showWelcomeScreen: boolean;
1274
+ isLoading: boolean;
1275
+ errorMessage: string | null;
1276
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1277
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1278
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1279
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1280
+ isBindingEnabled: boolean;
1281
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1282
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1283
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1284
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1285
+ activeTool: {
1286
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
1287
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1288
+ locked: boolean;
1289
+ customType: null;
1290
+ } | {
1291
+ type: "custom";
1292
+ customType: string;
1293
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1294
+ locked: boolean;
1295
+ };
1296
+ penMode: boolean;
1297
+ penDetected: boolean;
1298
+ exportBackground: boolean;
1299
+ exportEmbedScene: boolean;
1300
+ exportWithDarkMode: boolean;
1301
+ exportScale: number;
1302
+ currentItemStrokeColor: string;
1303
+ currentItemBackgroundColor: string;
1304
+ currentItemFillStyle: import("../element/types").FillStyle;
1305
+ currentItemStrokeWidth: number;
1306
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1307
+ currentItemRoughness: number;
1308
+ currentItemOpacity: number;
1309
+ currentItemFontFamily: number;
1310
+ currentItemFontSize: number;
1311
+ currentItemTextAlign: string;
1312
+ currentItemStartArrowhead: Arrowhead | null;
1313
+ currentItemEndArrowhead: Arrowhead | null;
1314
+ viewBackgroundColor: string;
1315
+ scrollX: number;
1316
+ scrollY: number;
1317
+ cursorButton: "up" | "down";
1318
+ scrolledOutside: boolean;
1319
+ name: string;
1320
+ isResizing: boolean;
1321
+ isRotating: boolean;
1322
+ zoom: Readonly<{
1323
+ value: import("../../src/types").NormalizedZoomValue;
1324
+ }>;
1325
+ openMenu: "canvas" | "shape" | null;
1326
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1327
+ openSidebar: "library" | "customSidebar" | null;
1328
+ openDialog: "imageExport" | "help" | null;
1329
+ isSidebarDocked: boolean;
1330
+ lastPointerDownWith: import("../element/types").PointerType;
1331
+ selectedElementIds: {
1332
+ [id: string]: boolean;
1333
+ };
1334
+ previousSelectedElementIds: {
1335
+ [id: string]: boolean;
1336
+ };
1337
+ shouldCacheIgnoreZoom: boolean;
1338
+ toast: {
1339
+ message: string;
1340
+ closable?: boolean | undefined;
1341
+ duration?: number | undefined;
1342
+ } | null;
1343
+ zenModeEnabled: boolean;
1344
+ theme: string;
1345
+ gridSize: number | null;
1346
+ viewModeEnabled: boolean;
1347
+ selectedGroupIds: {
1348
+ [groupId: string]: boolean;
1349
+ };
1350
+ editingGroupId: string | null;
1351
+ width: number;
1352
+ height: number;
1353
+ offsetTop: number;
1354
+ offsetLeft: number;
1355
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1356
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1357
+ showStats: boolean;
1358
+ currentChartType: import("../element/types").ChartType;
1359
+ pasteDialog: {
1360
+ shown: false;
1361
+ data: null;
1362
+ } | {
1363
+ shown: true;
1364
+ data: import("../charts").Spreadsheet;
1365
+ };
1366
+ pendingImageElementId: string | null;
1367
+ showHyperlinkPopup: false | "info" | "editor";
1368
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1369
+ };
1370
+ commitToHistory: true;
1371
+ };
1372
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
1373
+ isInHamburgerMenu: boolean;
1374
+ }) => JSX.Element;
1375
+ } & {
1376
+ keyTest?: undefined;
1377
+ };
1378
+ export declare const actionChangeArrowhead: {
1379
+ name: "changeArrowhead";
1380
+ trackEvent: false;
1381
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: {
1382
+ position: "start" | "end";
1383
+ type: Arrowhead;
1384
+ }) => {
1385
+ elements: ExcalidrawElement[];
1386
+ appState: {
1387
+ showWelcomeScreen: boolean;
1388
+ isLoading: boolean;
1389
+ errorMessage: string | null;
1390
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1391
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1392
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1393
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1394
+ isBindingEnabled: boolean;
1395
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1396
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1397
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1398
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1399
+ activeTool: {
1400
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
1401
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1402
+ locked: boolean;
1403
+ customType: null;
1404
+ } | {
1405
+ type: "custom";
1406
+ customType: string;
1407
+ lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
1408
+ locked: boolean;
1409
+ };
1410
+ penMode: boolean;
1411
+ penDetected: boolean;
1412
+ exportBackground: boolean;
1413
+ exportEmbedScene: boolean;
1414
+ exportWithDarkMode: boolean;
1415
+ exportScale: number;
1416
+ currentItemStrokeColor: string;
1417
+ currentItemBackgroundColor: string;
1418
+ currentItemFillStyle: import("../element/types").FillStyle;
1419
+ currentItemStrokeWidth: number;
1420
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1421
+ currentItemRoughness: number;
1422
+ currentItemOpacity: number;
1423
+ currentItemFontFamily: number;
1424
+ currentItemFontSize: number;
1425
+ currentItemTextAlign: string;
1426
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
1427
+ currentItemStartArrowhead: Arrowhead | null;
1428
+ currentItemEndArrowhead: Arrowhead | null;
1429
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
1430
+ viewBackgroundColor: string;
1431
+ scrollX: number;
1432
+ scrollY: number;
1433
+ cursorButton: "up" | "down";
1434
+ scrolledOutside: boolean;
1435
+ name: string;
1436
+ isResizing: boolean;
1437
+ isRotating: boolean;
1438
+ zoom: Readonly<{
1439
+ value: import("../../src/types").NormalizedZoomValue;
1440
+ }>;
1441
+ openMenu: "canvas" | "shape" | null;
1442
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1443
+ openSidebar: "library" | "customSidebar" | null;
1444
+ openDialog: "imageExport" | "help" | null;
1445
+ isSidebarDocked: boolean;
1446
+ lastPointerDownWith: import("../element/types").PointerType;
1447
+ selectedElementIds: {
1448
+ [id: string]: boolean;
1449
+ };
1450
+ previousSelectedElementIds: {
1451
+ [id: string]: boolean;
1452
+ };
1453
+ shouldCacheIgnoreZoom: boolean;
1454
+ toast: {
1455
+ message: string;
1456
+ closable?: boolean | undefined;
1457
+ duration?: number | undefined;
1458
+ } | null;
1459
+ zenModeEnabled: boolean;
1460
+ theme: string;
1461
+ gridSize: number | null;
1462
+ viewModeEnabled: boolean;
1463
+ selectedGroupIds: {
1464
+ [groupId: string]: boolean;
1465
+ };
1466
+ editingGroupId: string | null;
1467
+ width: number;
1468
+ height: number;
1469
+ offsetTop: number;
1470
+ offsetLeft: number;
1471
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1472
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1473
+ showStats: boolean;
1474
+ currentChartType: import("../element/types").ChartType;
1475
+ pasteDialog: {
1476
+ shown: false;
1477
+ data: null;
1478
+ } | {
1479
+ shown: true;
1480
+ data: import("../charts").Spreadsheet;
1481
+ };
1482
+ pendingImageElementId: string | null;
1483
+ showHyperlinkPopup: false | "info" | "editor";
1484
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1485
+ };
1486
+ commitToHistory: true;
1487
+ };
1488
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
1489
+ isInHamburgerMenu: boolean;
1490
+ }) => JSX.Element;
1491
+ } & {
1492
+ keyTest?: undefined;
1493
+ };