@dwelle/excalidraw 0.3.77 → 0.4.0-053f1cd

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 (311) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +22 -10
  3. package/dist/excalidraw-assets/vendor-ddc717b6da3bea42bb67.js +2 -0
  4. package/dist/excalidraw-assets/vendor-ddc717b6da3bea42bb67.js.LICENSE.txt +12 -0
  5. package/dist/excalidraw-assets-dev/vendor-2811fad3dc3b42ee3357.js +90 -0
  6. package/dist/excalidraw.development.js +1072 -1060
  7. package/dist/excalidraw.production.min.js +1 -1
  8. package/package.json +5 -5
  9. package/types/actions/actionAddToLibrary.d.ts +311 -308
  10. package/types/actions/actionAlign.d.ts +91 -91
  11. package/types/actions/actionBoundText.d.ts +128 -127
  12. package/types/actions/actionCanvas.d.ts +901 -893
  13. package/types/actions/actionClipboard.d.ts +590 -583
  14. package/types/actions/actionDeleteSelected.d.ts +340 -335
  15. package/types/actions/actionDistribute.d.ts +33 -33
  16. package/types/actions/actionDuplicateSelection.d.ts +22 -22
  17. package/types/actions/actionExport.d.ts +1000 -991
  18. package/types/actions/actionFinalize.d.ts +216 -214
  19. package/types/actions/actionFlip.d.ts +35 -35
  20. package/types/actions/actionGroup.d.ts +45 -45
  21. package/types/actions/actionHistory.d.ts +6 -6
  22. package/types/actions/actionMenu.d.ts +349 -346
  23. package/types/actions/actionNavigate.d.ts +13 -13
  24. package/types/actions/actionProperties.d.ts +1454 -1441
  25. package/types/actions/actionSelectAll.d.ts +16 -16
  26. package/types/actions/actionStyles.d.ts +129 -128
  27. package/types/actions/actionToggleGridMode.d.ts +116 -115
  28. package/types/actions/actionToggleLock.d.ts +115 -17
  29. package/types/actions/actionToggleStats.d.ts +114 -113
  30. package/types/actions/actionToggleViewMode.d.ts +115 -114
  31. package/types/actions/actionToggleZenMode.d.ts +115 -114
  32. package/types/actions/actionZindex.d.ts +67 -67
  33. package/types/actions/index.d.ts +23 -23
  34. package/types/actions/manager.d.ts +20 -20
  35. package/types/actions/register.d.ts +5 -5
  36. package/types/actions/shortcuts.d.ts +3 -3
  37. package/types/actions/types.d.ts +40 -40
  38. package/types/align.d.ts +6 -6
  39. package/types/analytics.d.ts +1 -1
  40. package/types/appState.d.ts +76 -75
  41. package/types/charts.d.ts +27 -27
  42. package/types/clients.d.ts +6 -6
  43. package/types/clipboard.d.ts +20 -20
  44. package/types/colors.d.ts +6 -6
  45. package/types/components/Actions.d.ts +34 -23
  46. package/types/components/ActiveFile.d.ts +7 -7
  47. package/types/components/App.d.ts +369 -367
  48. package/types/components/Avatar.d.ts +11 -11
  49. package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +9 -9
  50. package/types/components/ButtonIconSelect.d.ts +11 -11
  51. package/types/components/Card.d.ts +7 -7
  52. package/types/components/CheckboxItem.d.ts +8 -8
  53. package/types/components/ClearCanvas.d.ts +4 -4
  54. package/types/components/CollabButton.d.ts +7 -7
  55. package/types/components/ColorPicker.d.ts +14 -14
  56. package/types/components/ConfirmDialog.d.ts +10 -10
  57. package/types/components/ContextMenu.d.ts +28 -28
  58. package/types/components/DarkModeToggle.d.ts +7 -7
  59. package/types/components/Dialog.d.ts +14 -14
  60. package/types/components/ErrorDialog.d.ts +4 -4
  61. package/types/components/FixedSideContainer.d.ts +9 -9
  62. package/types/components/Footer.d.ts +9 -0
  63. package/types/components/HelpDialog.d.ts +4 -4
  64. package/types/components/HelpIcon.d.ts +8 -8
  65. package/types/components/HintViewer.d.ts +10 -10
  66. package/types/components/IconPicker.d.ts +13 -13
  67. package/types/components/ImageExportDialog.d.ts +16 -16
  68. package/types/components/InitializeApp.d.ts +8 -8
  69. package/types/components/Island.d.ts +10 -10
  70. package/types/components/JSONExportDialog.d.ts +13 -13
  71. package/types/components/LayerUI.d.ts +38 -38
  72. package/types/components/LibraryButton.d.ts +7 -7
  73. package/types/components/LibraryMenu.d.ts +16 -17
  74. package/types/components/LibraryMenuItems.d.ts +24 -24
  75. package/types/components/LibraryUnit.d.ts +12 -12
  76. package/types/components/LoadingMessage.d.ts +4 -4
  77. package/types/components/LockButton.d.ts +11 -11
  78. package/types/components/MobileMenu.d.ts +29 -29
  79. package/types/components/Modal.d.ts +12 -12
  80. package/types/components/PasteChartDialog.d.ts +9 -9
  81. package/types/components/PenModeButton.d.ts +12 -12
  82. package/types/components/Popover.d.ts +15 -15
  83. package/types/components/ProjectName.d.ts +10 -10
  84. package/types/components/PublishLibrary.d.ts +16 -16
  85. package/types/components/Section.d.ts +6 -6
  86. package/types/components/SidebarLockButton.d.ts +8 -8
  87. package/types/components/SingleLibraryItem.d.ts +10 -10
  88. package/types/components/Spinner.d.ts +6 -6
  89. package/types/components/Stack.d.ts +15 -15
  90. package/types/components/Stats.d.ts +11 -11
  91. package/types/components/Toast.d.ts +7 -7
  92. package/types/components/ToolButton.d.ts +46 -46
  93. package/types/components/Tooltip.d.ts +17 -17
  94. package/types/components/UserList.d.ts +11 -11
  95. package/types/components/icons.d.ts +180 -180
  96. package/types/constants.d.ts +149 -149
  97. package/types/data/blob.d.ts +47 -47
  98. package/types/data/encode.d.ts +53 -53
  99. package/types/data/encryption.d.ts +9 -9
  100. package/types/data/filesystem.d.ts +18 -18
  101. package/types/data/image.d.ts +15 -15
  102. package/types/data/index.d.ts +13 -13
  103. package/types/data/json.d.ts +16 -16
  104. package/types/data/library.d.ts +96 -96
  105. package/types/data/resave.d.ts +5 -5
  106. package/types/data/restore.d.ts +15 -15
  107. package/types/data/types.d.ts +32 -32
  108. package/types/distribute.d.ts +6 -6
  109. package/types/element/Hyperlink.d.ts +135 -135
  110. package/types/element/binding.d.ts +33 -33
  111. package/types/element/bounds.d.ts +27 -27
  112. package/types/element/collision.d.ts +21 -21
  113. package/types/element/dragElements.d.ts +5 -5
  114. package/types/element/image.d.ts +22 -22
  115. package/types/element/index.d.ts +20 -20
  116. package/types/element/linearElementEditor.d.ts +211 -199
  117. package/types/element/mutateElement.d.ts +11 -11
  118. package/types/element/newElement.d.ts +50 -50
  119. package/types/element/resizeElements.d.ts +9 -9
  120. package/types/element/resizeTest.d.ts +13 -13
  121. package/types/element/showSelectedShapeActions.d.ts +3 -3
  122. package/types/element/sizeHelpers.d.ts +21 -17
  123. package/types/element/textElement.d.ts +26 -26
  124. package/types/element/textWysiwyg.d.ts +16 -16
  125. package/types/element/transformHandles.d.ts +29 -28
  126. package/types/element/typeChecks.d.ts +17 -17
  127. package/types/element/types.d.ts +134 -133
  128. package/types/emitter.d.ts +21 -21
  129. package/types/errors.d.ts +8 -8
  130. package/types/ga.d.ts +63 -63
  131. package/types/gadirections.d.ts +8 -8
  132. package/types/galines.d.ts +22 -22
  133. package/types/gapoints.d.ts +7 -7
  134. package/types/gatransforms.d.ts +10 -10
  135. package/types/gesture.d.ts +6 -6
  136. package/types/groups.d.ts +27 -27
  137. package/types/history.d.ts +52 -52
  138. package/types/hooks/useCallbackRefState.d.ts +1 -1
  139. package/types/i18n.d.ts +15 -15
  140. package/types/jotai.d.ts +122 -122
  141. package/types/keys.d.ts +68 -68
  142. package/types/math.d.ts +20 -20
  143. package/types/packages/common.webpack.dev.config.d.ts +71 -0
  144. package/types/packages/common.webpack.prod.config.d.ts +83 -0
  145. package/types/packages/excalidraw/dist/{excalidraw-assets-dev/image-469d5bd946743969995a.d.ts → excalidraw-assets/vendor-ddc717b6da3bea42bb67.d.ts} +0 -0
  146. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{image-028ba554a42cc8a4995a.d.ts → vendor-2811fad3dc3b42ee3357.d.ts} +0 -0
  147. package/types/packages/excalidraw/dist/excalidraw.development.d.ts +4 -2
  148. package/types/packages/excalidraw/dist/excalidraw.production.min.d.ts +1 -1
  149. package/types/packages/excalidraw/entry.d.ts +1 -1
  150. package/types/packages/excalidraw/env.d.ts +1 -1
  151. package/types/packages/excalidraw/example/App.d.ts +7 -7
  152. package/types/packages/excalidraw/example/index.d.ts +1 -1
  153. package/types/packages/excalidraw/example/initialData.d.ts +172 -172
  154. package/types/packages/excalidraw/example/sidebar/Sidebar.d.ts +5 -5
  155. package/types/packages/excalidraw/index.d.ts +18 -18
  156. package/types/packages/excalidraw/main.d.ts +2 -2
  157. package/types/packages/excalidraw/publicPath.d.ts +1 -1
  158. package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -19
  159. package/types/packages/excalidraw/webpack.dev.config.d.ts +68 -79
  160. package/types/packages/excalidraw/webpack.prod.config.d.ts +77 -91
  161. package/types/packages/utils.d.ts +35 -32
  162. package/types/points.d.ts +7 -6
  163. package/types/polyfill.d.ts +2 -0
  164. package/types/random.d.ts +3 -3
  165. package/types/renderer/renderElement.d.ts +35 -35
  166. package/types/renderer/renderScene.d.ts +41 -25
  167. package/types/renderer/roundRect.d.ts +11 -11
  168. package/types/scene/Scene.d.ts +25 -25
  169. package/types/scene/comparisons.d.ts +11 -11
  170. package/types/scene/export.d.ts +20 -20
  171. package/types/scene/index.d.ts +5 -5
  172. package/types/scene/scroll.d.ts +17 -17
  173. package/types/scene/scrollbars.d.ts +16 -16
  174. package/types/scene/selection.d.ts +11 -11
  175. package/types/scene/types.d.ts +58 -58
  176. package/types/scene/zoom.d.ts +13 -13
  177. package/types/shapes.d.ts +38 -38
  178. package/types/types.d.ts +392 -392
  179. package/types/utils.d.ts +136 -136
  180. package/types/zindex.d.ts +6 -6
  181. package/dist/excalidraw-assets/vendor-6644c8f79d52085cf653.js +0 -2
  182. package/dist/excalidraw-assets/vendor-6644c8f79d52085cf653.js.LICENSE.txt +0 -12
  183. package/dist/excalidraw-assets-dev/vendor-33bd21df77fc9cda16d2.js +0 -98
  184. package/types/actions/actionUnbindText.d.ts +0 -11
  185. package/types/disitrubte.d.ts +0 -6
  186. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ar-SA-json-9a3fdf94110439c2826a.d.ts +0 -0
  187. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ar-SA-json-efd63375f9605b72c4af.d.ts +0 -0
  188. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-bg-BG-json-047db6df7a74c0298938.d.ts +0 -0
  189. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-bg-BG-json-35c0e8b92b0dba8a4e6d.d.ts +0 -0
  190. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ca-ES-json-6acefe26cfe1d2f12349.d.ts +0 -0
  191. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ca-ES-json-9924fbd53652d5f15134.d.ts +0 -0
  192. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-cs-CZ-json-85a469d813bb069829e7.d.ts +0 -0
  193. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-de-DE-json-a52c17c4bd1b1db22464.d.ts +0 -0
  194. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-de-DE-json-f85a8a52534c04c3f3b8.d.ts +0 -0
  195. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-el-GR-json-060595a09e0004e33936.d.ts +0 -0
  196. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-el-GR-json-3b209ec86ca2ce69bdfa.d.ts +0 -0
  197. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-es-ES-json-32dc3bf0f789ef18e65d.d.ts +0 -0
  198. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-es-ES-json-af5c541f9ac1526a9eb7.d.ts +0 -0
  199. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fa-IR-json-7ee232d4ef08da0903f6.d.ts +0 -0
  200. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fa-IR-json-c732ff7772327332c259.d.ts +0 -0
  201. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fi-FI-json-46abeda8d809d4091924.d.ts +0 -0
  202. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fi-FI-json-c1d5c5510660a11a428e.d.ts +0 -0
  203. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fr-FR-json-6a418571305eecefe9bc.d.ts +0 -0
  204. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fr-FR-json-79fa555bfea0a356f393.d.ts +0 -0
  205. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-he-IL-json-157ae036fcf470528687.d.ts +0 -0
  206. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-he-IL-json-d006423b531ab062bb85.d.ts +0 -0
  207. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-hi-IN-json-3035c3b3ab3ce981dbc7.d.ts +0 -0
  208. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-hi-IN-json-d959b869453c591a8861.d.ts +0 -0
  209. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-hu-HU-json-50a13e322a60bb701615.d.ts +0 -0
  210. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-hu-HU-json-a366989217753fe3d02b.d.ts +0 -0
  211. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-id-ID-json-87212daac6113b5bf808.d.ts +0 -0
  212. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-id-ID-json-8d13d29ee41be15a1f99.d.ts +0 -0
  213. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-it-IT-json-59f2e9d3dac07f3264cb.d.ts +0 -0
  214. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-it-IT-json-90283cd2809f4165506b.d.ts +0 -0
  215. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ja-JP-json-9e0a78ddb43d5709fb29.d.ts +0 -0
  216. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ja-JP-json-ccb5ffd0f8a0980c2ec0.d.ts +0 -0
  217. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-kab-KAB-json-d9acc7b8ee952e356d06.d.ts +0 -0
  218. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-kab-KAB-json-dac787e0446cdb747fe1.d.ts +0 -0
  219. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ko-KR-json-d61af373bea59d1ff4c6.d.ts +0 -0
  220. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ko-KR-json-e42ededaa35032a201b9.d.ts +0 -0
  221. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-lv-LV-json-07f6bffcb44fdd9aad4f.d.ts +0 -0
  222. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-lv-LV-json-7eea5c4054f8418fdd10.d.ts +0 -0
  223. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-my-MM-json-26d1e27bab3b8ac4a3e6.d.ts +0 -0
  224. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-my-MM-json-a8f9bb37a7b947e9dfba.d.ts +0 -0
  225. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nb-NO-json-8ce0749d46f0b4a8defb.d.ts +0 -0
  226. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nb-NO-json-c01fab8602e1b658d5d1.d.ts +0 -0
  227. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nl-NL-json-23fdfd9f11bc8efbaf56.d.ts +0 -0
  228. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nl-NL-json-cf922daa828029c1aff5.d.ts +0 -0
  229. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nn-NO-json-b5931de6e1ed336bf087.d.ts +0 -0
  230. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nn-NO-json-d363be6b3dcdbf3a868a.d.ts +0 -0
  231. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-oc-FR-json-29d6193adb907d4f5890.d.ts +0 -0
  232. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-oc-FR-json-c6414107ad634b113aba.d.ts +0 -0
  233. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pa-IN-json-27063e4865142ac11b1a.d.ts +0 -0
  234. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pa-IN-json-f0c779291da384fb5173.d.ts +0 -0
  235. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pl-PL-json-16af1b83ac16af57ad07.d.ts +0 -0
  236. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pl-PL-json-a4a5c6e0a9877c43476a.d.ts +0 -0
  237. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pt-BR-json-03a046855063512eb9ff.d.ts +0 -0
  238. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pt-BR-json-db86828d6e3ced9f9854.d.ts +0 -0
  239. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pt-PT-json-7ed352e9de6dc74ef503.d.ts +0 -0
  240. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pt-PT-json-bc0cd589bd87a3079407.d.ts +0 -0
  241. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ro-RO-json-75692b7a0166d6ad27a4.d.ts +0 -0
  242. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ro-RO-json-f13a2e7b7a63fbfb6ae7.d.ts +0 -0
  243. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ru-RU-json-69b1a919b7f42adfd6ec.d.ts +0 -0
  244. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ru-RU-json-7c2a2061d0ca99cf7007.d.ts +0 -0
  245. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-sk-SK-json-0ef09f90308059d22ae8.d.ts +0 -0
  246. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-sk-SK-json-4757551ceb15fa0a29a9.d.ts +0 -0
  247. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-sv-SE-json-dc7718d79b9bf93a4ba4.d.ts +0 -0
  248. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-sv-SE-json-fa5bd09f128972b13ac2.d.ts +0 -0
  249. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-tr-TR-json-b574833ee1c2f58fd24e.d.ts +0 -0
  250. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-tr-TR-json-cba7e62d9610795a5ac3.d.ts +0 -0
  251. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-uk-UA-json-a9a8ea7adb95c0a03680.d.ts +0 -0
  252. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-uk-UA-json-f0cab296bdc4089ffa77.d.ts +0 -0
  253. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-zh-CN-json-45da9983459601b845e8.d.ts +0 -0
  254. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-zh-CN-json-94f562845a945a45e385.d.ts +0 -0
  255. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-zh-TW-json-0e77c896018bcd221bf6.d.ts +0 -0
  256. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-zh-TW-json-7dd3d9ba72493687c286.d.ts +0 -0
  257. package/types/packages/excalidraw/dist/excalidraw-assets/image-02a1f3ecd6baf42daaa6.d.ts +0 -0
  258. package/types/packages/excalidraw/dist/excalidraw-assets/image-0db17e06143a31f9772b.d.ts +0 -0
  259. package/types/packages/excalidraw/dist/excalidraw-assets/image-2be1c869cd5bacebdc3c.d.ts +0 -0
  260. package/types/packages/excalidraw/dist/excalidraw-assets/image-46f5e8e621bfedbf6d91.d.ts +0 -0
  261. package/types/packages/excalidraw/dist/excalidraw-assets/image-6f8d3b9873832b5f7a67.d.ts +0 -0
  262. package/types/packages/excalidraw/dist/excalidraw-assets/image-8e0c265e832504f62477.d.ts +0 -0
  263. package/types/packages/excalidraw/dist/excalidraw-assets/image-9592159c56d563857679.d.ts +0 -0
  264. package/types/packages/excalidraw/dist/excalidraw-assets/image-98a7b39bd21998c69c4b.d.ts +0 -0
  265. package/types/packages/excalidraw/dist/excalidraw-assets/image-a26261fb8a718f15853e.d.ts +0 -0
  266. package/types/packages/excalidraw/dist/excalidraw-assets/image-a97adda58b4c4d8d0107.d.ts +0 -0
  267. package/types/packages/excalidraw/dist/excalidraw-assets/image-af02967a8a4c328f2713.d.ts +0 -0
  268. package/types/packages/excalidraw/dist/excalidraw-assets/image-bd5991c772b4867c8d27.d.ts +0 -0
  269. package/types/packages/excalidraw/dist/excalidraw-assets/image-c198828284ec0dba28dc.d.ts +0 -0
  270. package/types/packages/excalidraw/dist/excalidraw-assets/image-eac20119cbc2ceb81523.d.ts +0 -0
  271. package/types/packages/excalidraw/dist/excalidraw-assets/image-eafab0c39ce13f7fea67.d.ts +0 -0
  272. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-0e2ecbd1f46fc190ec01.d.ts +0 -0
  273. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-1018b0a7e7e60d808384.d.ts +0 -0
  274. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-405364e1fdefedf5d3d7.d.ts +0 -0
  275. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-448ccb79e58765b61834.d.ts +0 -0
  276. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-585a4c89d479fd91edeb.d.ts +0 -0
  277. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-64ea3ed78bc76a895e61.d.ts +0 -0
  278. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-6644c8f79d52085cf653.d.ts +0 -0
  279. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-807e23d7531555236936.d.ts +0 -0
  280. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-8698157b56eb5e0ee549.d.ts +0 -0
  281. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-aed19b6e017f9f736254.d.ts +0 -0
  282. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-b088910ac1ba8853a571.d.ts +0 -0
  283. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-cb708a4580b007d81177.d.ts +0 -0
  284. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-ce466849186c701b6c48.d.ts +0 -0
  285. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-e5c6cd57013e8e575a61.d.ts +0 -0
  286. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-664005f0b02c93342b89.d.ts +0 -0
  287. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-73be8b3c1837ea26950c.d.ts +0 -0
  288. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-821afe7d20de2d2ca898.d.ts +0 -0
  289. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-8825d180ee32659f8996.d.ts +0 -0
  290. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-89cddf27ef982ca154dc.d.ts +0 -0
  291. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-9f771c114a0a3ad7b334.d.ts +0 -0
  292. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-a98d24ea9aa42940a0df.d.ts +0 -0
  293. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-b2befe1e2a0424a41fb3.d.ts +0 -0
  294. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-cacb3d0c02eb2e346ecc.d.ts +0 -0
  295. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-d7e941a51c2e0a7b3c23.d.ts +0 -0
  296. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-e50a452aa26d28419e39.d.ts +0 -0
  297. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-eddc6ed66acd3a3f3d46.d.ts +0 -0
  298. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-f696fa36e3535df5e97a.d.ts +0 -0
  299. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-0454f90696ac835aeb45.d.ts +0 -0
  300. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-1bc8ceaafd8623c96dd4.d.ts +0 -0
  301. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-26ccabf52930f0ce0ffd.d.ts +0 -0
  302. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-33bd21df77fc9cda16d2.d.ts +0 -0
  303. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-4534d6e506404cef7a9e.d.ts +0 -0
  304. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-5d1c4700bd0fa2109ab5.d.ts +0 -0
  305. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-7664c12c379862ed98a5.d.ts +0 -0
  306. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-7fcb99cece261da4983f.d.ts +0 -0
  307. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-86b56a69e7dddcf8f70d.d.ts +0 -0
  308. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-a449655791956f151f51.d.ts +0 -0
  309. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-bb07a412033591d5470d.d.ts +0 -0
  310. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-ec7db14ff9ba640888c4.d.ts +0 -0
  311. package/types/renderer/index.d.ts +0 -1
@@ -1,893 +1,901 @@
1
- /// <reference types="react" />
2
- import { ExcalidrawElement } from "../element/types";
3
- import { AppState, NormalizedZoomValue } from "../types";
4
- export declare const actionChangeViewBackgroundColor: {
5
- name: "changeViewBackgroundColor";
6
- trackEvent: false;
7
- perform: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
8
- appState: any;
9
- commitToHistory: boolean;
10
- };
11
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
12
- } & {
13
- keyTest?: undefined;
14
- };
15
- export declare const actionClearCanvas: {
16
- name: "clearCanvas";
17
- trackEvent: {
18
- category: "canvas";
19
- };
20
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
21
- elements: ExcalidrawElement[];
22
- appState: {
23
- files: {};
24
- theme: string;
25
- penMode: boolean;
26
- penDetected: boolean;
27
- exportBackground: boolean;
28
- exportEmbedScene: boolean;
29
- gridSize: number | null;
30
- showStats: boolean;
31
- pasteDialog: {
32
- shown: false;
33
- data: null;
34
- } | {
35
- shown: true;
36
- data: import("../charts").Spreadsheet;
37
- };
38
- activeTool: {
39
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
40
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
41
- locked: boolean;
42
- customType: null;
43
- } | {
44
- type: "custom";
45
- customType: string;
46
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
47
- locked: boolean;
48
- };
49
- scrollX: number;
50
- scrollY: number;
51
- viewBackgroundColor: string;
52
- zoom: Readonly<{
53
- value: NormalizedZoomValue;
54
- }>;
55
- shouldCacheIgnoreZoom: boolean;
56
- isLoading: boolean;
57
- errorMessage: string | null;
58
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
59
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
60
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
61
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
62
- isBindingEnabled: boolean;
63
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
64
- suggestedBindings: import("../element/binding").SuggestedBinding[];
65
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
66
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
67
- exportWithDarkMode: boolean;
68
- exportScale: number;
69
- currentItemStrokeColor: string;
70
- currentItemBackgroundColor: string;
71
- currentItemFillStyle: import("../element/types").FillStyle;
72
- currentItemStrokeWidth: number;
73
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
74
- currentItemRoughness: number;
75
- currentItemOpacity: number;
76
- currentItemFontFamily: number;
77
- currentItemFontSize: number;
78
- currentItemTextAlign: import("../element/types").TextAlign;
79
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
80
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
81
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
82
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
83
- cursorButton: "up" | "down";
84
- scrolledOutside: boolean;
85
- name: string;
86
- isResizing: boolean;
87
- isRotating: boolean;
88
- openMenu: "canvas" | "shape" | null;
89
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
90
- lastPointerDownWith: import("../element/types").PointerType;
91
- selectedElementIds: {
92
- [id: string]: boolean;
93
- };
94
- previousSelectedElementIds: {
95
- [id: string]: boolean;
96
- };
97
- showHelpDialog: boolean;
98
- toast: {
99
- message: string;
100
- closable?: boolean | undefined;
101
- duration?: number | undefined;
102
- } | null;
103
- zenModeEnabled: boolean;
104
- viewModeEnabled: boolean;
105
- selectedGroupIds: {
106
- [groupId: string]: boolean;
107
- };
108
- editingGroupId: string | null;
109
- isLibraryOpen: boolean;
110
- isLibraryMenuDocked: boolean;
111
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
112
- collaborators: Map<string, import("../types").Collaborator>;
113
- currentChartType: import("../element/types").ChartType;
114
- pendingImageElementId: string | null;
115
- showHyperlinkPopup: false | "info" | "editor";
116
- };
117
- commitToHistory: true;
118
- };
119
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
120
- } & {
121
- keyTest?: undefined;
122
- };
123
- export declare const actionZoomIn: {
124
- name: "zoomIn";
125
- trackEvent: {
126
- category: "canvas";
127
- };
128
- perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
129
- appState: {
130
- scrollX: number;
131
- scrollY: number;
132
- zoom: {
133
- value: NormalizedZoomValue;
134
- };
135
- isLoading: boolean;
136
- errorMessage: string | null;
137
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
138
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
139
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
140
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
141
- isBindingEnabled: boolean;
142
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
143
- suggestedBindings: import("../element/binding").SuggestedBinding[];
144
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
145
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
146
- activeTool: {
147
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
148
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
149
- locked: boolean;
150
- customType: null;
151
- } | {
152
- type: "custom";
153
- customType: string;
154
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
155
- locked: boolean;
156
- };
157
- penMode: boolean;
158
- penDetected: boolean;
159
- exportBackground: boolean;
160
- exportEmbedScene: boolean;
161
- exportWithDarkMode: boolean;
162
- exportScale: number;
163
- currentItemStrokeColor: string;
164
- currentItemBackgroundColor: string;
165
- currentItemFillStyle: import("../element/types").FillStyle;
166
- currentItemStrokeWidth: number;
167
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
168
- currentItemRoughness: number;
169
- currentItemOpacity: number;
170
- currentItemFontFamily: number;
171
- currentItemFontSize: number;
172
- currentItemTextAlign: import("../element/types").TextAlign;
173
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
174
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
175
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
176
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
177
- viewBackgroundColor: string;
178
- cursorButton: "up" | "down";
179
- scrolledOutside: boolean;
180
- name: string;
181
- isResizing: boolean;
182
- isRotating: boolean;
183
- openMenu: "canvas" | "shape" | null;
184
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
185
- lastPointerDownWith: import("../element/types").PointerType;
186
- selectedElementIds: {
187
- [id: string]: boolean;
188
- };
189
- previousSelectedElementIds: {
190
- [id: string]: boolean;
191
- };
192
- shouldCacheIgnoreZoom: boolean;
193
- showHelpDialog: boolean;
194
- toast: {
195
- message: string;
196
- closable?: boolean | undefined;
197
- duration?: number | undefined;
198
- } | null;
199
- zenModeEnabled: boolean;
200
- theme: string;
201
- gridSize: number | null;
202
- viewModeEnabled: boolean;
203
- selectedGroupIds: {
204
- [groupId: string]: boolean;
205
- };
206
- editingGroupId: string | null;
207
- width: number;
208
- height: number;
209
- offsetTop: number;
210
- offsetLeft: number;
211
- isLibraryOpen: boolean;
212
- isLibraryMenuDocked: boolean;
213
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
214
- collaborators: Map<string, import("../types").Collaborator>;
215
- showStats: boolean;
216
- currentChartType: import("../element/types").ChartType;
217
- pasteDialog: {
218
- shown: false;
219
- data: null;
220
- } | {
221
- shown: true;
222
- data: import("../charts").Spreadsheet;
223
- };
224
- pendingImageElementId: string | null;
225
- showHyperlinkPopup: false | "info" | "editor";
226
- };
227
- commitToHistory: false;
228
- };
229
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
230
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
231
- } & {
232
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
233
- };
234
- export declare const actionZoomOut: {
235
- name: "zoomOut";
236
- trackEvent: {
237
- category: "canvas";
238
- };
239
- perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
240
- appState: {
241
- scrollX: number;
242
- scrollY: number;
243
- zoom: {
244
- value: NormalizedZoomValue;
245
- };
246
- isLoading: boolean;
247
- errorMessage: string | null;
248
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
249
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
250
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
251
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
252
- isBindingEnabled: boolean;
253
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
254
- suggestedBindings: import("../element/binding").SuggestedBinding[];
255
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
256
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
257
- activeTool: {
258
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
259
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
260
- locked: boolean;
261
- customType: null;
262
- } | {
263
- type: "custom";
264
- customType: string;
265
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
266
- locked: boolean;
267
- };
268
- penMode: boolean;
269
- penDetected: boolean;
270
- exportBackground: boolean;
271
- exportEmbedScene: boolean;
272
- exportWithDarkMode: boolean;
273
- exportScale: number;
274
- currentItemStrokeColor: string;
275
- currentItemBackgroundColor: string;
276
- currentItemFillStyle: import("../element/types").FillStyle;
277
- currentItemStrokeWidth: number;
278
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
279
- currentItemRoughness: number;
280
- currentItemOpacity: number;
281
- currentItemFontFamily: number;
282
- currentItemFontSize: number;
283
- currentItemTextAlign: import("../element/types").TextAlign;
284
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
285
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
286
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
287
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
288
- viewBackgroundColor: string;
289
- cursorButton: "up" | "down";
290
- scrolledOutside: boolean;
291
- name: string;
292
- isResizing: boolean;
293
- isRotating: boolean;
294
- openMenu: "canvas" | "shape" | null;
295
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
296
- lastPointerDownWith: import("../element/types").PointerType;
297
- selectedElementIds: {
298
- [id: string]: boolean;
299
- };
300
- previousSelectedElementIds: {
301
- [id: string]: boolean;
302
- };
303
- shouldCacheIgnoreZoom: boolean;
304
- showHelpDialog: boolean;
305
- toast: {
306
- message: string;
307
- closable?: boolean | undefined;
308
- duration?: number | undefined;
309
- } | null;
310
- zenModeEnabled: boolean;
311
- theme: string;
312
- gridSize: number | null;
313
- viewModeEnabled: boolean;
314
- selectedGroupIds: {
315
- [groupId: string]: boolean;
316
- };
317
- editingGroupId: string | null;
318
- width: number;
319
- height: number;
320
- offsetTop: number;
321
- offsetLeft: number;
322
- isLibraryOpen: boolean;
323
- isLibraryMenuDocked: boolean;
324
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
325
- collaborators: Map<string, import("../types").Collaborator>;
326
- showStats: boolean;
327
- currentChartType: import("../element/types").ChartType;
328
- pasteDialog: {
329
- shown: false;
330
- data: null;
331
- } | {
332
- shown: true;
333
- data: import("../charts").Spreadsheet;
334
- };
335
- pendingImageElementId: string | null;
336
- showHyperlinkPopup: false | "info" | "editor";
337
- };
338
- commitToHistory: false;
339
- };
340
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
341
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
342
- } & {
343
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
344
- };
345
- export declare const actionResetZoom: {
346
- name: "resetZoom";
347
- trackEvent: {
348
- category: "canvas";
349
- };
350
- perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
351
- appState: {
352
- scrollX: number;
353
- scrollY: number;
354
- zoom: {
355
- value: NormalizedZoomValue;
356
- };
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<import("../element/types").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("../types").LastActiveToolBeforeEraser;
371
- locked: boolean;
372
- customType: null;
373
- } | {
374
- type: "custom";
375
- customType: string;
376
- lastActiveToolBeforeEraser: import("../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
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
390
- currentItemRoughness: number;
391
- currentItemOpacity: number;
392
- currentItemFontFamily: number;
393
- currentItemFontSize: number;
394
- currentItemTextAlign: import("../element/types").TextAlign;
395
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
396
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
397
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
398
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
399
- viewBackgroundColor: string;
400
- cursorButton: "up" | "down";
401
- scrolledOutside: boolean;
402
- name: string;
403
- isResizing: boolean;
404
- isRotating: boolean;
405
- openMenu: "canvas" | "shape" | null;
406
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
407
- lastPointerDownWith: import("../element/types").PointerType;
408
- selectedElementIds: {
409
- [id: string]: boolean;
410
- };
411
- previousSelectedElementIds: {
412
- [id: string]: boolean;
413
- };
414
- shouldCacheIgnoreZoom: boolean;
415
- showHelpDialog: boolean;
416
- toast: {
417
- message: string;
418
- closable?: boolean | undefined;
419
- duration?: number | undefined;
420
- } | null;
421
- zenModeEnabled: boolean;
422
- theme: string;
423
- gridSize: number | null;
424
- viewModeEnabled: boolean;
425
- selectedGroupIds: {
426
- [groupId: string]: boolean;
427
- };
428
- editingGroupId: string | null;
429
- width: number;
430
- height: number;
431
- offsetTop: number;
432
- offsetLeft: number;
433
- isLibraryOpen: boolean;
434
- isLibraryMenuDocked: boolean;
435
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
436
- collaborators: Map<string, import("../types").Collaborator>;
437
- showStats: boolean;
438
- currentChartType: import("../element/types").ChartType;
439
- pasteDialog: {
440
- shown: false;
441
- data: null;
442
- } | {
443
- shown: true;
444
- data: import("../charts").Spreadsheet;
445
- };
446
- pendingImageElementId: string | null;
447
- showHyperlinkPopup: false | "info" | "editor";
448
- };
449
- commitToHistory: false;
450
- };
451
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
452
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
453
- } & {
454
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
455
- };
456
- export declare const actionZoomToSelected: {
457
- name: "zoomToSelection";
458
- trackEvent: {
459
- category: "canvas";
460
- };
461
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
462
- appState: {
463
- zoom: {
464
- value: NormalizedZoomValue;
465
- };
466
- scrollX: number;
467
- scrollY: number;
468
- isLoading: boolean;
469
- errorMessage: string | null;
470
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
471
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
472
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
473
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
474
- isBindingEnabled: boolean;
475
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
476
- suggestedBindings: import("../element/binding").SuggestedBinding[];
477
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
478
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
479
- activeTool: {
480
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
481
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
482
- locked: boolean;
483
- customType: null;
484
- } | {
485
- type: "custom";
486
- customType: string;
487
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
488
- locked: boolean;
489
- };
490
- penMode: boolean;
491
- penDetected: boolean;
492
- exportBackground: boolean;
493
- exportEmbedScene: boolean;
494
- exportWithDarkMode: boolean;
495
- exportScale: number;
496
- currentItemStrokeColor: string;
497
- currentItemBackgroundColor: string;
498
- currentItemFillStyle: import("../element/types").FillStyle;
499
- currentItemStrokeWidth: number;
500
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
501
- currentItemRoughness: number;
502
- currentItemOpacity: number;
503
- currentItemFontFamily: number;
504
- currentItemFontSize: number;
505
- currentItemTextAlign: import("../element/types").TextAlign;
506
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
507
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
508
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
509
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
510
- viewBackgroundColor: string;
511
- cursorButton: "up" | "down";
512
- scrolledOutside: boolean;
513
- name: string;
514
- isResizing: boolean;
515
- isRotating: boolean;
516
- openMenu: "canvas" | "shape" | null;
517
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
518
- lastPointerDownWith: import("../element/types").PointerType;
519
- selectedElementIds: {
520
- [id: string]: boolean;
521
- };
522
- previousSelectedElementIds: {
523
- [id: string]: boolean;
524
- };
525
- shouldCacheIgnoreZoom: boolean;
526
- showHelpDialog: boolean;
527
- toast: {
528
- message: string;
529
- closable?: boolean | undefined;
530
- duration?: number | undefined;
531
- } | null;
532
- zenModeEnabled: boolean;
533
- theme: string;
534
- gridSize: number | null;
535
- viewModeEnabled: boolean;
536
- selectedGroupIds: {
537
- [groupId: string]: boolean;
538
- };
539
- editingGroupId: string | null;
540
- width: number;
541
- height: number;
542
- offsetTop: number;
543
- offsetLeft: number;
544
- isLibraryOpen: boolean;
545
- isLibraryMenuDocked: boolean;
546
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
547
- collaborators: Map<string, import("../types").Collaborator>;
548
- showStats: boolean;
549
- currentChartType: import("../element/types").ChartType;
550
- pasteDialog: {
551
- shown: false;
552
- data: null;
553
- } | {
554
- shown: true;
555
- data: import("../charts").Spreadsheet;
556
- };
557
- pendingImageElementId: string | null;
558
- showHyperlinkPopup: false | "info" | "editor";
559
- };
560
- commitToHistory: boolean;
561
- };
562
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
563
- } & {
564
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
565
- };
566
- export declare const actionZoomToFit: {
567
- name: "zoomToFit";
568
- trackEvent: {
569
- category: "canvas";
570
- };
571
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
572
- appState: {
573
- zoom: {
574
- value: NormalizedZoomValue;
575
- };
576
- scrollX: number;
577
- scrollY: number;
578
- isLoading: boolean;
579
- errorMessage: string | null;
580
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
581
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
582
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
583
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
584
- isBindingEnabled: boolean;
585
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
586
- suggestedBindings: import("../element/binding").SuggestedBinding[];
587
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
588
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
589
- activeTool: {
590
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
591
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
592
- locked: boolean;
593
- customType: null;
594
- } | {
595
- type: "custom";
596
- customType: string;
597
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
598
- locked: boolean;
599
- };
600
- penMode: boolean;
601
- penDetected: boolean;
602
- exportBackground: boolean;
603
- exportEmbedScene: boolean;
604
- exportWithDarkMode: boolean;
605
- exportScale: number;
606
- currentItemStrokeColor: string;
607
- currentItemBackgroundColor: string;
608
- currentItemFillStyle: import("../element/types").FillStyle;
609
- currentItemStrokeWidth: number;
610
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
611
- currentItemRoughness: number;
612
- currentItemOpacity: number;
613
- currentItemFontFamily: number;
614
- currentItemFontSize: number;
615
- currentItemTextAlign: import("../element/types").TextAlign;
616
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
617
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
618
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
619
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
620
- viewBackgroundColor: string;
621
- cursorButton: "up" | "down";
622
- scrolledOutside: boolean;
623
- name: string;
624
- isResizing: boolean;
625
- isRotating: boolean;
626
- openMenu: "canvas" | "shape" | null;
627
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
628
- lastPointerDownWith: import("../element/types").PointerType;
629
- selectedElementIds: {
630
- [id: string]: boolean;
631
- };
632
- previousSelectedElementIds: {
633
- [id: string]: boolean;
634
- };
635
- shouldCacheIgnoreZoom: boolean;
636
- showHelpDialog: boolean;
637
- toast: {
638
- message: string;
639
- closable?: boolean | undefined;
640
- duration?: number | undefined;
641
- } | null;
642
- zenModeEnabled: boolean;
643
- theme: string;
644
- gridSize: number | null;
645
- viewModeEnabled: boolean;
646
- selectedGroupIds: {
647
- [groupId: string]: boolean;
648
- };
649
- editingGroupId: string | null;
650
- width: number;
651
- height: number;
652
- offsetTop: number;
653
- offsetLeft: number;
654
- isLibraryOpen: boolean;
655
- isLibraryMenuDocked: boolean;
656
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
657
- collaborators: Map<string, import("../types").Collaborator>;
658
- showStats: boolean;
659
- currentChartType: import("../element/types").ChartType;
660
- pasteDialog: {
661
- shown: false;
662
- data: null;
663
- } | {
664
- shown: true;
665
- data: import("../charts").Spreadsheet;
666
- };
667
- pendingImageElementId: string | null;
668
- showHyperlinkPopup: false | "info" | "editor";
669
- };
670
- commitToHistory: boolean;
671
- };
672
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
673
- } & {
674
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
675
- };
676
- export declare const actionToggleTheme: {
677
- name: "toggleTheme";
678
- trackEvent: {
679
- category: "canvas";
680
- };
681
- perform: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
682
- appState: {
683
- theme: any;
684
- isLoading: boolean;
685
- errorMessage: string | null;
686
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
687
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
688
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
689
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
690
- isBindingEnabled: boolean;
691
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
692
- suggestedBindings: import("../element/binding").SuggestedBinding[];
693
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
694
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
695
- activeTool: {
696
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
697
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
698
- locked: boolean;
699
- customType: null;
700
- } | {
701
- type: "custom";
702
- customType: string;
703
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
704
- locked: boolean;
705
- };
706
- penMode: boolean;
707
- penDetected: boolean;
708
- exportBackground: boolean;
709
- exportEmbedScene: boolean;
710
- exportWithDarkMode: boolean;
711
- exportScale: number;
712
- currentItemStrokeColor: string;
713
- currentItemBackgroundColor: string;
714
- currentItemFillStyle: import("../element/types").FillStyle;
715
- currentItemStrokeWidth: number;
716
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
717
- currentItemRoughness: number;
718
- currentItemOpacity: number;
719
- currentItemFontFamily: number;
720
- currentItemFontSize: number;
721
- currentItemTextAlign: import("../element/types").TextAlign;
722
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
723
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
724
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
725
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
726
- viewBackgroundColor: string;
727
- scrollX: number;
728
- scrollY: number;
729
- cursorButton: "up" | "down";
730
- scrolledOutside: boolean;
731
- name: string;
732
- isResizing: boolean;
733
- isRotating: boolean;
734
- zoom: Readonly<{
735
- value: NormalizedZoomValue;
736
- }>;
737
- openMenu: "canvas" | "shape" | null;
738
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
739
- lastPointerDownWith: import("../element/types").PointerType;
740
- selectedElementIds: {
741
- [id: string]: boolean;
742
- };
743
- previousSelectedElementIds: {
744
- [id: string]: boolean;
745
- };
746
- shouldCacheIgnoreZoom: boolean;
747
- showHelpDialog: boolean;
748
- toast: {
749
- message: string;
750
- closable?: boolean | undefined;
751
- duration?: number | undefined;
752
- } | null;
753
- zenModeEnabled: boolean;
754
- gridSize: number | null;
755
- viewModeEnabled: boolean;
756
- selectedGroupIds: {
757
- [groupId: string]: boolean;
758
- };
759
- editingGroupId: string | null;
760
- width: number;
761
- height: number;
762
- offsetTop: number;
763
- offsetLeft: number;
764
- isLibraryOpen: boolean;
765
- isLibraryMenuDocked: boolean;
766
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
767
- collaborators: Map<string, import("../types").Collaborator>;
768
- showStats: boolean;
769
- currentChartType: import("../element/types").ChartType;
770
- pasteDialog: {
771
- shown: false;
772
- data: null;
773
- } | {
774
- shown: true;
775
- data: import("../charts").Spreadsheet;
776
- };
777
- pendingImageElementId: string | null;
778
- showHyperlinkPopup: false | "info" | "editor";
779
- };
780
- commitToHistory: false;
781
- };
782
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
783
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
784
- } & {
785
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
786
- };
787
- export declare const actionErase: {
788
- name: "eraser";
789
- trackEvent: {
790
- category: "toolbar";
791
- };
792
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
793
- appState: {
794
- selectedElementIds: {};
795
- selectedGroupIds: {};
796
- activeTool: {
797
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
798
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
799
- locked: boolean;
800
- customType: null;
801
- } | {
802
- type: "custom";
803
- customType: string;
804
- lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
805
- locked: boolean;
806
- };
807
- isLoading: boolean;
808
- errorMessage: string | null;
809
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
810
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
811
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
812
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
813
- isBindingEnabled: boolean;
814
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
815
- suggestedBindings: import("../element/binding").SuggestedBinding[];
816
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
817
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
818
- penMode: boolean;
819
- penDetected: boolean;
820
- exportBackground: boolean;
821
- exportEmbedScene: boolean;
822
- exportWithDarkMode: boolean;
823
- exportScale: number;
824
- currentItemStrokeColor: string;
825
- currentItemBackgroundColor: string;
826
- currentItemFillStyle: import("../element/types").FillStyle;
827
- currentItemStrokeWidth: number;
828
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
829
- currentItemRoughness: number;
830
- currentItemOpacity: number;
831
- currentItemFontFamily: number;
832
- currentItemFontSize: number;
833
- currentItemTextAlign: import("../element/types").TextAlign;
834
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
835
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
836
- currentItemEndArrowhead: import("../element/types").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: NormalizedZoomValue;
848
- }>;
849
- openMenu: "canvas" | "shape" | null;
850
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
851
- lastPointerDownWith: import("../element/types").PointerType;
852
- previousSelectedElementIds: {
853
- [id: string]: boolean;
854
- };
855
- shouldCacheIgnoreZoom: boolean;
856
- showHelpDialog: boolean;
857
- toast: {
858
- message: string;
859
- closable?: boolean | undefined;
860
- duration?: number | undefined;
861
- } | null;
862
- zenModeEnabled: boolean;
863
- theme: string;
864
- gridSize: number | null;
865
- viewModeEnabled: boolean;
866
- editingGroupId: string | null;
867
- width: number;
868
- height: number;
869
- offsetTop: number;
870
- offsetLeft: number;
871
- isLibraryOpen: boolean;
872
- isLibraryMenuDocked: boolean;
873
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
874
- collaborators: Map<string, import("../types").Collaborator>;
875
- showStats: boolean;
876
- currentChartType: import("../element/types").ChartType;
877
- pasteDialog: {
878
- shown: false;
879
- data: null;
880
- } | {
881
- shown: true;
882
- data: import("../charts").Spreadsheet;
883
- };
884
- pendingImageElementId: string | null;
885
- showHyperlinkPopup: false | "info" | "editor";
886
- };
887
- commitToHistory: true;
888
- };
889
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
890
- PanelComponent: ({ elements, appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
891
- } & {
892
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
893
- };
1
+ /// <reference types="react" />
2
+ import { ExcalidrawElement } from "../element/types";
3
+ import { AppState, NormalizedZoomValue } from "../types";
4
+ export declare const actionChangeViewBackgroundColor: {
5
+ name: "changeViewBackgroundColor";
6
+ trackEvent: false;
7
+ perform: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
8
+ appState: any;
9
+ commitToHistory: boolean;
10
+ };
11
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
12
+ } & {
13
+ keyTest?: undefined;
14
+ };
15
+ export declare const actionClearCanvas: {
16
+ name: "clearCanvas";
17
+ trackEvent: {
18
+ category: "canvas";
19
+ };
20
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
21
+ elements: ExcalidrawElement[];
22
+ appState: {
23
+ files: {};
24
+ theme: string;
25
+ penMode: boolean;
26
+ penDetected: boolean;
27
+ exportBackground: boolean;
28
+ exportEmbedScene: boolean;
29
+ gridSize: number | null;
30
+ showStats: boolean;
31
+ pasteDialog: {
32
+ shown: false;
33
+ data: null;
34
+ } | {
35
+ shown: true;
36
+ data: import("../charts").Spreadsheet;
37
+ };
38
+ activeTool: {
39
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
40
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
41
+ locked: boolean;
42
+ customType: null;
43
+ } | {
44
+ type: "custom";
45
+ customType: string;
46
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
47
+ locked: boolean;
48
+ };
49
+ scrollX: number;
50
+ scrollY: number;
51
+ viewBackgroundColor: string;
52
+ zoom: Readonly<{
53
+ value: NormalizedZoomValue;
54
+ }>;
55
+ shouldCacheIgnoreZoom: boolean;
56
+ isLoading: boolean;
57
+ errorMessage: string | null;
58
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
59
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
60
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
61
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
62
+ isBindingEnabled: boolean;
63
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
64
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
65
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
66
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
67
+ exportWithDarkMode: boolean;
68
+ exportScale: number;
69
+ currentItemStrokeColor: string;
70
+ currentItemBackgroundColor: string;
71
+ currentItemFillStyle: import("../element/types").FillStyle;
72
+ currentItemStrokeWidth: number;
73
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
74
+ currentItemRoughness: number;
75
+ currentItemOpacity: number;
76
+ currentItemFontFamily: number;
77
+ currentItemFontSize: number;
78
+ currentItemTextAlign: import("../element/types").TextAlign;
79
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
80
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
81
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
82
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
83
+ cursorButton: "up" | "down";
84
+ scrolledOutside: boolean;
85
+ name: string;
86
+ isResizing: boolean;
87
+ isRotating: boolean;
88
+ openMenu: "canvas" | "shape" | null;
89
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
90
+ lastPointerDownWith: import("../element/types").PointerType;
91
+ selectedElementIds: {
92
+ [id: string]: boolean;
93
+ };
94
+ previousSelectedElementIds: {
95
+ [id: string]: boolean;
96
+ };
97
+ showHelpDialog: boolean;
98
+ toast: {
99
+ message: string;
100
+ closable?: boolean | undefined;
101
+ duration?: number | undefined;
102
+ } | null;
103
+ zenModeEnabled: boolean;
104
+ viewModeEnabled: boolean;
105
+ selectedGroupIds: {
106
+ [groupId: string]: boolean;
107
+ };
108
+ editingGroupId: string | null;
109
+ isLibraryOpen: boolean;
110
+ isLibraryMenuDocked: boolean;
111
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
112
+ collaborators: Map<string, import("../types").Collaborator>;
113
+ currentChartType: import("../element/types").ChartType;
114
+ pendingImageElementId: string | null;
115
+ showHyperlinkPopup: false | "info" | "editor";
116
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
117
+ };
118
+ commitToHistory: true;
119
+ };
120
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
121
+ } & {
122
+ keyTest?: undefined;
123
+ };
124
+ export declare const actionZoomIn: {
125
+ name: "zoomIn";
126
+ trackEvent: {
127
+ category: "canvas";
128
+ };
129
+ perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
130
+ appState: {
131
+ scrollX: number;
132
+ scrollY: number;
133
+ zoom: {
134
+ value: NormalizedZoomValue;
135
+ };
136
+ isLoading: boolean;
137
+ errorMessage: string | null;
138
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
139
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
140
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
141
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
142
+ isBindingEnabled: boolean;
143
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
144
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
145
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
146
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
147
+ activeTool: {
148
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
149
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
150
+ locked: boolean;
151
+ customType: null;
152
+ } | {
153
+ type: "custom";
154
+ customType: string;
155
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
156
+ locked: boolean;
157
+ };
158
+ penMode: boolean;
159
+ penDetected: boolean;
160
+ exportBackground: boolean;
161
+ exportEmbedScene: boolean;
162
+ exportWithDarkMode: boolean;
163
+ exportScale: number;
164
+ currentItemStrokeColor: string;
165
+ currentItemBackgroundColor: string;
166
+ currentItemFillStyle: import("../element/types").FillStyle;
167
+ currentItemStrokeWidth: number;
168
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
169
+ currentItemRoughness: number;
170
+ currentItemOpacity: number;
171
+ currentItemFontFamily: number;
172
+ currentItemFontSize: number;
173
+ currentItemTextAlign: import("../element/types").TextAlign;
174
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
175
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
176
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
177
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
178
+ viewBackgroundColor: string;
179
+ cursorButton: "up" | "down";
180
+ scrolledOutside: boolean;
181
+ name: string;
182
+ isResizing: boolean;
183
+ isRotating: boolean;
184
+ openMenu: "canvas" | "shape" | null;
185
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
186
+ lastPointerDownWith: import("../element/types").PointerType;
187
+ selectedElementIds: {
188
+ [id: string]: boolean;
189
+ };
190
+ previousSelectedElementIds: {
191
+ [id: string]: boolean;
192
+ };
193
+ shouldCacheIgnoreZoom: boolean;
194
+ showHelpDialog: boolean;
195
+ toast: {
196
+ message: string;
197
+ closable?: boolean | undefined;
198
+ duration?: number | undefined;
199
+ } | null;
200
+ zenModeEnabled: boolean;
201
+ theme: string;
202
+ gridSize: number | null;
203
+ viewModeEnabled: boolean;
204
+ selectedGroupIds: {
205
+ [groupId: string]: boolean;
206
+ };
207
+ editingGroupId: string | null;
208
+ width: number;
209
+ height: number;
210
+ offsetTop: number;
211
+ offsetLeft: number;
212
+ isLibraryOpen: boolean;
213
+ isLibraryMenuDocked: boolean;
214
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
215
+ collaborators: Map<string, import("../types").Collaborator>;
216
+ showStats: boolean;
217
+ currentChartType: import("../element/types").ChartType;
218
+ pasteDialog: {
219
+ shown: false;
220
+ data: null;
221
+ } | {
222
+ shown: true;
223
+ data: import("../charts").Spreadsheet;
224
+ };
225
+ pendingImageElementId: string | null;
226
+ showHyperlinkPopup: false | "info" | "editor";
227
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
228
+ };
229
+ commitToHistory: false;
230
+ };
231
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
232
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
233
+ } & {
234
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
235
+ };
236
+ export declare const actionZoomOut: {
237
+ name: "zoomOut";
238
+ trackEvent: {
239
+ category: "canvas";
240
+ };
241
+ perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
242
+ appState: {
243
+ scrollX: number;
244
+ scrollY: number;
245
+ zoom: {
246
+ value: NormalizedZoomValue;
247
+ };
248
+ isLoading: boolean;
249
+ errorMessage: string | null;
250
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
251
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
252
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
253
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
254
+ isBindingEnabled: boolean;
255
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
256
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
257
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
258
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
259
+ activeTool: {
260
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
261
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
262
+ locked: boolean;
263
+ customType: null;
264
+ } | {
265
+ type: "custom";
266
+ customType: string;
267
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
268
+ locked: boolean;
269
+ };
270
+ penMode: boolean;
271
+ penDetected: boolean;
272
+ exportBackground: boolean;
273
+ exportEmbedScene: boolean;
274
+ exportWithDarkMode: boolean;
275
+ exportScale: number;
276
+ currentItemStrokeColor: string;
277
+ currentItemBackgroundColor: string;
278
+ currentItemFillStyle: import("../element/types").FillStyle;
279
+ currentItemStrokeWidth: number;
280
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
281
+ currentItemRoughness: number;
282
+ currentItemOpacity: number;
283
+ currentItemFontFamily: number;
284
+ currentItemFontSize: number;
285
+ currentItemTextAlign: import("../element/types").TextAlign;
286
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
287
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
288
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
289
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
290
+ viewBackgroundColor: string;
291
+ cursorButton: "up" | "down";
292
+ scrolledOutside: boolean;
293
+ name: string;
294
+ isResizing: boolean;
295
+ isRotating: boolean;
296
+ openMenu: "canvas" | "shape" | null;
297
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
298
+ lastPointerDownWith: import("../element/types").PointerType;
299
+ selectedElementIds: {
300
+ [id: string]: boolean;
301
+ };
302
+ previousSelectedElementIds: {
303
+ [id: string]: boolean;
304
+ };
305
+ shouldCacheIgnoreZoom: boolean;
306
+ showHelpDialog: boolean;
307
+ toast: {
308
+ message: string;
309
+ closable?: boolean | undefined;
310
+ duration?: number | undefined;
311
+ } | null;
312
+ zenModeEnabled: boolean;
313
+ theme: string;
314
+ gridSize: number | null;
315
+ viewModeEnabled: boolean;
316
+ selectedGroupIds: {
317
+ [groupId: string]: boolean;
318
+ };
319
+ editingGroupId: string | null;
320
+ width: number;
321
+ height: number;
322
+ offsetTop: number;
323
+ offsetLeft: number;
324
+ isLibraryOpen: boolean;
325
+ isLibraryMenuDocked: boolean;
326
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
327
+ collaborators: Map<string, import("../types").Collaborator>;
328
+ showStats: boolean;
329
+ currentChartType: import("../element/types").ChartType;
330
+ pasteDialog: {
331
+ shown: false;
332
+ data: null;
333
+ } | {
334
+ shown: true;
335
+ data: import("../charts").Spreadsheet;
336
+ };
337
+ pendingImageElementId: string | null;
338
+ showHyperlinkPopup: false | "info" | "editor";
339
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
340
+ };
341
+ commitToHistory: false;
342
+ };
343
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
344
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
345
+ } & {
346
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
347
+ };
348
+ export declare const actionResetZoom: {
349
+ name: "resetZoom";
350
+ trackEvent: {
351
+ category: "canvas";
352
+ };
353
+ perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
354
+ appState: {
355
+ scrollX: number;
356
+ scrollY: number;
357
+ zoom: {
358
+ value: NormalizedZoomValue;
359
+ };
360
+ isLoading: boolean;
361
+ errorMessage: string | null;
362
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
363
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
364
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
365
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
366
+ isBindingEnabled: boolean;
367
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
368
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
369
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
370
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
371
+ activeTool: {
372
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
373
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
374
+ locked: boolean;
375
+ customType: null;
376
+ } | {
377
+ type: "custom";
378
+ customType: string;
379
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
380
+ locked: boolean;
381
+ };
382
+ penMode: boolean;
383
+ penDetected: boolean;
384
+ exportBackground: boolean;
385
+ exportEmbedScene: boolean;
386
+ exportWithDarkMode: boolean;
387
+ exportScale: number;
388
+ currentItemStrokeColor: string;
389
+ currentItemBackgroundColor: string;
390
+ currentItemFillStyle: import("../element/types").FillStyle;
391
+ currentItemStrokeWidth: number;
392
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
393
+ currentItemRoughness: number;
394
+ currentItemOpacity: number;
395
+ currentItemFontFamily: number;
396
+ currentItemFontSize: number;
397
+ currentItemTextAlign: import("../element/types").TextAlign;
398
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
399
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
400
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
401
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
402
+ viewBackgroundColor: string;
403
+ cursorButton: "up" | "down";
404
+ scrolledOutside: boolean;
405
+ name: string;
406
+ isResizing: boolean;
407
+ isRotating: boolean;
408
+ openMenu: "canvas" | "shape" | null;
409
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
410
+ lastPointerDownWith: import("../element/types").PointerType;
411
+ selectedElementIds: {
412
+ [id: string]: boolean;
413
+ };
414
+ previousSelectedElementIds: {
415
+ [id: string]: boolean;
416
+ };
417
+ shouldCacheIgnoreZoom: boolean;
418
+ showHelpDialog: boolean;
419
+ toast: {
420
+ message: string;
421
+ closable?: boolean | undefined;
422
+ duration?: number | undefined;
423
+ } | null;
424
+ zenModeEnabled: boolean;
425
+ theme: string;
426
+ gridSize: number | null;
427
+ viewModeEnabled: boolean;
428
+ selectedGroupIds: {
429
+ [groupId: string]: boolean;
430
+ };
431
+ editingGroupId: string | null;
432
+ width: number;
433
+ height: number;
434
+ offsetTop: number;
435
+ offsetLeft: number;
436
+ isLibraryOpen: boolean;
437
+ isLibraryMenuDocked: boolean;
438
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
439
+ collaborators: Map<string, import("../types").Collaborator>;
440
+ showStats: boolean;
441
+ currentChartType: import("../element/types").ChartType;
442
+ pasteDialog: {
443
+ shown: false;
444
+ data: null;
445
+ } | {
446
+ shown: true;
447
+ data: import("../charts").Spreadsheet;
448
+ };
449
+ pendingImageElementId: string | null;
450
+ showHyperlinkPopup: false | "info" | "editor";
451
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
452
+ };
453
+ commitToHistory: false;
454
+ };
455
+ PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
456
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
457
+ } & {
458
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
459
+ };
460
+ export declare const actionZoomToSelected: {
461
+ name: "zoomToSelection";
462
+ trackEvent: {
463
+ category: "canvas";
464
+ };
465
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
466
+ appState: {
467
+ zoom: {
468
+ value: NormalizedZoomValue;
469
+ };
470
+ scrollX: number;
471
+ scrollY: number;
472
+ isLoading: boolean;
473
+ errorMessage: string | null;
474
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
475
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
476
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
477
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
478
+ isBindingEnabled: boolean;
479
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
480
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
481
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
482
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
483
+ activeTool: {
484
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
485
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
486
+ locked: boolean;
487
+ customType: null;
488
+ } | {
489
+ type: "custom";
490
+ customType: string;
491
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
492
+ locked: boolean;
493
+ };
494
+ penMode: boolean;
495
+ penDetected: boolean;
496
+ exportBackground: boolean;
497
+ exportEmbedScene: boolean;
498
+ exportWithDarkMode: boolean;
499
+ exportScale: number;
500
+ currentItemStrokeColor: string;
501
+ currentItemBackgroundColor: string;
502
+ currentItemFillStyle: import("../element/types").FillStyle;
503
+ currentItemStrokeWidth: number;
504
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
505
+ currentItemRoughness: number;
506
+ currentItemOpacity: number;
507
+ currentItemFontFamily: number;
508
+ currentItemFontSize: number;
509
+ currentItemTextAlign: import("../element/types").TextAlign;
510
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
511
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
512
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
513
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
514
+ viewBackgroundColor: string;
515
+ cursorButton: "up" | "down";
516
+ scrolledOutside: boolean;
517
+ name: string;
518
+ isResizing: boolean;
519
+ isRotating: boolean;
520
+ openMenu: "canvas" | "shape" | null;
521
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
522
+ lastPointerDownWith: import("../element/types").PointerType;
523
+ selectedElementIds: {
524
+ [id: string]: boolean;
525
+ };
526
+ previousSelectedElementIds: {
527
+ [id: string]: boolean;
528
+ };
529
+ shouldCacheIgnoreZoom: boolean;
530
+ showHelpDialog: boolean;
531
+ toast: {
532
+ message: string;
533
+ closable?: boolean | undefined;
534
+ duration?: number | undefined;
535
+ } | null;
536
+ zenModeEnabled: boolean;
537
+ theme: string;
538
+ gridSize: number | null;
539
+ viewModeEnabled: boolean;
540
+ selectedGroupIds: {
541
+ [groupId: string]: boolean;
542
+ };
543
+ editingGroupId: string | null;
544
+ width: number;
545
+ height: number;
546
+ offsetTop: number;
547
+ offsetLeft: number;
548
+ isLibraryOpen: boolean;
549
+ isLibraryMenuDocked: boolean;
550
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
551
+ collaborators: Map<string, import("../types").Collaborator>;
552
+ showStats: boolean;
553
+ currentChartType: import("../element/types").ChartType;
554
+ pasteDialog: {
555
+ shown: false;
556
+ data: null;
557
+ } | {
558
+ shown: true;
559
+ data: import("../charts").Spreadsheet;
560
+ };
561
+ pendingImageElementId: string | null;
562
+ showHyperlinkPopup: false | "info" | "editor";
563
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
564
+ };
565
+ commitToHistory: boolean;
566
+ };
567
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
568
+ } & {
569
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
570
+ };
571
+ export declare const actionZoomToFit: {
572
+ name: "zoomToFit";
573
+ trackEvent: {
574
+ category: "canvas";
575
+ };
576
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
577
+ appState: {
578
+ zoom: {
579
+ value: NormalizedZoomValue;
580
+ };
581
+ scrollX: number;
582
+ scrollY: number;
583
+ isLoading: boolean;
584
+ errorMessage: string | null;
585
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
586
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
587
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
588
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
589
+ isBindingEnabled: boolean;
590
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
591
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
592
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
593
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
594
+ activeTool: {
595
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
596
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
597
+ locked: boolean;
598
+ customType: null;
599
+ } | {
600
+ type: "custom";
601
+ customType: string;
602
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
603
+ locked: boolean;
604
+ };
605
+ penMode: boolean;
606
+ penDetected: boolean;
607
+ exportBackground: boolean;
608
+ exportEmbedScene: boolean;
609
+ exportWithDarkMode: boolean;
610
+ exportScale: number;
611
+ currentItemStrokeColor: string;
612
+ currentItemBackgroundColor: string;
613
+ currentItemFillStyle: import("../element/types").FillStyle;
614
+ currentItemStrokeWidth: number;
615
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
616
+ currentItemRoughness: number;
617
+ currentItemOpacity: number;
618
+ currentItemFontFamily: number;
619
+ currentItemFontSize: number;
620
+ currentItemTextAlign: import("../element/types").TextAlign;
621
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
622
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
623
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
624
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
625
+ viewBackgroundColor: string;
626
+ cursorButton: "up" | "down";
627
+ scrolledOutside: boolean;
628
+ name: string;
629
+ isResizing: boolean;
630
+ isRotating: boolean;
631
+ openMenu: "canvas" | "shape" | null;
632
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
633
+ lastPointerDownWith: import("../element/types").PointerType;
634
+ selectedElementIds: {
635
+ [id: string]: boolean;
636
+ };
637
+ previousSelectedElementIds: {
638
+ [id: string]: boolean;
639
+ };
640
+ shouldCacheIgnoreZoom: boolean;
641
+ showHelpDialog: boolean;
642
+ toast: {
643
+ message: string;
644
+ closable?: boolean | undefined;
645
+ duration?: number | undefined;
646
+ } | null;
647
+ zenModeEnabled: boolean;
648
+ theme: string;
649
+ gridSize: number | null;
650
+ viewModeEnabled: boolean;
651
+ selectedGroupIds: {
652
+ [groupId: string]: boolean;
653
+ };
654
+ editingGroupId: string | null;
655
+ width: number;
656
+ height: number;
657
+ offsetTop: number;
658
+ offsetLeft: number;
659
+ isLibraryOpen: boolean;
660
+ isLibraryMenuDocked: boolean;
661
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
662
+ collaborators: Map<string, import("../types").Collaborator>;
663
+ showStats: boolean;
664
+ currentChartType: import("../element/types").ChartType;
665
+ pasteDialog: {
666
+ shown: false;
667
+ data: null;
668
+ } | {
669
+ shown: true;
670
+ data: import("../charts").Spreadsheet;
671
+ };
672
+ pendingImageElementId: string | null;
673
+ showHyperlinkPopup: false | "info" | "editor";
674
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
675
+ };
676
+ commitToHistory: boolean;
677
+ };
678
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
679
+ } & {
680
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
681
+ };
682
+ export declare const actionToggleTheme: {
683
+ name: "toggleTheme";
684
+ trackEvent: {
685
+ category: "canvas";
686
+ };
687
+ perform: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
688
+ appState: {
689
+ theme: any;
690
+ isLoading: boolean;
691
+ errorMessage: string | null;
692
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
693
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
694
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
695
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
696
+ isBindingEnabled: boolean;
697
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
698
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
699
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
700
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
701
+ activeTool: {
702
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
703
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
704
+ locked: boolean;
705
+ customType: null;
706
+ } | {
707
+ type: "custom";
708
+ customType: string;
709
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
710
+ locked: boolean;
711
+ };
712
+ penMode: boolean;
713
+ penDetected: boolean;
714
+ exportBackground: boolean;
715
+ exportEmbedScene: boolean;
716
+ exportWithDarkMode: boolean;
717
+ exportScale: number;
718
+ currentItemStrokeColor: string;
719
+ currentItemBackgroundColor: string;
720
+ currentItemFillStyle: import("../element/types").FillStyle;
721
+ currentItemStrokeWidth: number;
722
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
723
+ currentItemRoughness: number;
724
+ currentItemOpacity: number;
725
+ currentItemFontFamily: number;
726
+ currentItemFontSize: number;
727
+ currentItemTextAlign: import("../element/types").TextAlign;
728
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
729
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
730
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
731
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
732
+ viewBackgroundColor: string;
733
+ scrollX: number;
734
+ scrollY: number;
735
+ cursorButton: "up" | "down";
736
+ scrolledOutside: boolean;
737
+ name: string;
738
+ isResizing: boolean;
739
+ isRotating: boolean;
740
+ zoom: Readonly<{
741
+ value: NormalizedZoomValue;
742
+ }>;
743
+ openMenu: "canvas" | "shape" | null;
744
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
745
+ lastPointerDownWith: import("../element/types").PointerType;
746
+ selectedElementIds: {
747
+ [id: string]: boolean;
748
+ };
749
+ previousSelectedElementIds: {
750
+ [id: string]: boolean;
751
+ };
752
+ shouldCacheIgnoreZoom: boolean;
753
+ showHelpDialog: boolean;
754
+ toast: {
755
+ message: string;
756
+ closable?: boolean | undefined;
757
+ duration?: number | undefined;
758
+ } | null;
759
+ zenModeEnabled: boolean;
760
+ gridSize: number | null;
761
+ viewModeEnabled: boolean;
762
+ selectedGroupIds: {
763
+ [groupId: string]: boolean;
764
+ };
765
+ editingGroupId: string | null;
766
+ width: number;
767
+ height: number;
768
+ offsetTop: number;
769
+ offsetLeft: number;
770
+ isLibraryOpen: boolean;
771
+ isLibraryMenuDocked: boolean;
772
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
773
+ collaborators: Map<string, import("../types").Collaborator>;
774
+ showStats: boolean;
775
+ currentChartType: import("../element/types").ChartType;
776
+ pasteDialog: {
777
+ shown: false;
778
+ data: null;
779
+ } | {
780
+ shown: true;
781
+ data: import("../charts").Spreadsheet;
782
+ };
783
+ pendingImageElementId: string | null;
784
+ showHyperlinkPopup: false | "info" | "editor";
785
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
786
+ };
787
+ commitToHistory: false;
788
+ };
789
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
790
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
791
+ } & {
792
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
793
+ };
794
+ export declare const actionErase: {
795
+ name: "eraser";
796
+ trackEvent: {
797
+ category: "toolbar";
798
+ };
799
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
800
+ appState: {
801
+ selectedElementIds: {};
802
+ selectedGroupIds: {};
803
+ activeTool: {
804
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
805
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
806
+ locked: boolean;
807
+ customType: null;
808
+ } | {
809
+ type: "custom";
810
+ customType: string;
811
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
812
+ locked: boolean;
813
+ };
814
+ isLoading: boolean;
815
+ errorMessage: string | null;
816
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
817
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
818
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
819
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
820
+ isBindingEnabled: boolean;
821
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
822
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
823
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
824
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
825
+ penMode: boolean;
826
+ penDetected: boolean;
827
+ exportBackground: boolean;
828
+ exportEmbedScene: boolean;
829
+ exportWithDarkMode: boolean;
830
+ exportScale: number;
831
+ currentItemStrokeColor: string;
832
+ currentItemBackgroundColor: string;
833
+ currentItemFillStyle: import("../element/types").FillStyle;
834
+ currentItemStrokeWidth: number;
835
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
836
+ currentItemRoughness: number;
837
+ currentItemOpacity: number;
838
+ currentItemFontFamily: number;
839
+ currentItemFontSize: number;
840
+ currentItemTextAlign: import("../element/types").TextAlign;
841
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
842
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
843
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
844
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
845
+ viewBackgroundColor: string;
846
+ scrollX: number;
847
+ scrollY: number;
848
+ cursorButton: "up" | "down";
849
+ scrolledOutside: boolean;
850
+ name: string;
851
+ isResizing: boolean;
852
+ isRotating: boolean;
853
+ zoom: Readonly<{
854
+ value: NormalizedZoomValue;
855
+ }>;
856
+ openMenu: "canvas" | "shape" | null;
857
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
858
+ lastPointerDownWith: import("../element/types").PointerType;
859
+ previousSelectedElementIds: {
860
+ [id: string]: boolean;
861
+ };
862
+ shouldCacheIgnoreZoom: boolean;
863
+ showHelpDialog: boolean;
864
+ toast: {
865
+ message: string;
866
+ closable?: boolean | undefined;
867
+ duration?: number | undefined;
868
+ } | null;
869
+ zenModeEnabled: boolean;
870
+ theme: string;
871
+ gridSize: number | null;
872
+ viewModeEnabled: boolean;
873
+ editingGroupId: string | null;
874
+ width: number;
875
+ height: number;
876
+ offsetTop: number;
877
+ offsetLeft: number;
878
+ isLibraryOpen: boolean;
879
+ isLibraryMenuDocked: boolean;
880
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
881
+ collaborators: Map<string, import("../types").Collaborator>;
882
+ showStats: boolean;
883
+ currentChartType: import("../element/types").ChartType;
884
+ pasteDialog: {
885
+ shown: false;
886
+ data: null;
887
+ } | {
888
+ shown: true;
889
+ data: import("../charts").Spreadsheet;
890
+ };
891
+ pendingImageElementId: string | null;
892
+ showHyperlinkPopup: false | "info" | "editor";
893
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
894
+ };
895
+ commitToHistory: true;
896
+ };
897
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
898
+ PanelComponent: ({ elements, appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
899
+ } & {
900
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
901
+ };