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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (434) hide show
  1. package/dist/excalidraw.development.js +56 -56
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/actions/actionAddToLibrary.d.ts +449 -440
  5. package/types/actions/actionAlign.d.ts +96 -96
  6. package/types/actions/actionBoundText.d.ts +336 -330
  7. package/types/actions/actionCanvas.d.ts +1880 -1844
  8. package/types/actions/actionClipboard.d.ts +843 -828
  9. package/types/actions/actionDeleteSelected.d.ts +483 -474
  10. package/types/actions/actionDistribute.d.ts +32 -32
  11. package/types/actions/actionDuplicateSelection.d.ts +21 -21
  12. package/types/actions/actionElementLock.d.ts +321 -315
  13. package/types/actions/actionExport.d.ts +1415 -1388
  14. package/types/actions/actionFinalize.d.ts +304 -298
  15. package/types/actions/actionFlip.d.ts +32 -32
  16. package/types/actions/actionFrame.d.ts +498 -489
  17. package/types/actions/actionGroup.d.ts +332 -326
  18. package/types/actions/actionHistory.d.ts +6 -6
  19. package/types/actions/actionLinearEditor.d.ts +160 -157
  20. package/types/actions/actionMenu.d.ts +487 -478
  21. package/types/actions/actionNavigate.d.ts +14 -14
  22. package/types/actions/actionProperties.d.ts +2051 -2012
  23. package/types/actions/actionSelectAll.d.ts +160 -157
  24. package/types/actions/actionStyles.d.ts +174 -171
  25. package/types/actions/actionToggleGridMode.d.ts +163 -160
  26. package/types/actions/actionToggleStats.d.ts +160 -157
  27. package/types/actions/actionToggleViewMode.d.ts +162 -159
  28. package/types/actions/actionToggleZenMode.d.ts +162 -159
  29. package/types/actions/actionZindex.d.ts +67 -67
  30. package/types/actions/index.d.ts +24 -24
  31. package/types/actions/manager.d.ts +21 -21
  32. package/types/actions/register.d.ts +5 -5
  33. package/types/actions/shortcuts.d.ts +4 -4
  34. package/types/actions/types.d.ts +45 -45
  35. package/types/align.d.ts +6 -6
  36. package/types/analytics.d.ts +1 -1
  37. package/types/appState.d.ts +81 -81
  38. package/types/charts.d.ts +27 -27
  39. package/types/clients.d.ts +5 -5
  40. package/types/clipboard.d.ts +26 -26
  41. package/types/colors.d.ts +61 -61
  42. package/types/components/Actions.d.ts +36 -36
  43. package/types/components/ActiveConfirmDialog.d.ts +4 -4
  44. package/types/components/App.d.ts +290 -290
  45. package/types/components/Avatar.d.ts +10 -10
  46. package/types/components/BraveMeasureTextError.d.ts +2 -2
  47. package/types/components/Button.d.ts +16 -16
  48. package/types/components/ButtonIconSelect.d.ts +19 -19
  49. package/types/components/Card.d.ts +6 -6
  50. package/types/components/CheckboxItem.d.ts +8 -8
  51. package/types/components/ColorPicker/ColorInput.d.ts +7 -7
  52. package/types/components/ColorPicker/ColorPicker.d.ts +19 -19
  53. package/types/components/ColorPicker/CustomColorList.d.ts +8 -8
  54. package/types/components/ColorPicker/HotkeyLabel.d.ts +8 -8
  55. package/types/components/ColorPicker/Picker.d.ts +18 -18
  56. package/types/components/ColorPicker/PickerColorList.d.ts +10 -10
  57. package/types/components/ColorPicker/PickerHeading.d.ts +5 -5
  58. package/types/components/ColorPicker/ShadeList.d.ts +8 -8
  59. package/types/components/ColorPicker/TopPicks.d.ts +9 -9
  60. package/types/components/ColorPicker/colorPickerUtils.d.ts +21 -21
  61. package/types/components/ColorPicker/keyboardNavHandlers.d.ts +20 -20
  62. package/types/components/ConfirmDialog.d.ts +10 -10
  63. package/types/components/ContextMenu.d.ts +15 -15
  64. package/types/components/DarkModeToggle.d.ts +7 -7
  65. package/types/components/DefaultSidebar.d.ts +29 -29
  66. package/types/components/Dialog.d.ts +13 -13
  67. package/types/components/DialogActionButton.d.ts +10 -10
  68. package/types/components/ErrorDialog.d.ts +5 -5
  69. package/types/components/EyeDropper.d.ts +17 -17
  70. package/types/components/FilledButton.d.ts +17 -17
  71. package/types/components/FixedSideContainer.d.ts +9 -9
  72. package/types/components/HandButton.d.ts +10 -10
  73. package/types/components/HelpButton.d.ts +7 -7
  74. package/types/components/HelpDialog.d.ts +4 -4
  75. package/types/components/HintViewer.d.ts +10 -10
  76. package/types/components/IconPicker.d.ts +13 -13
  77. package/types/components/ImageExportDialog.d.ts +13 -13
  78. package/types/components/InitializeApp.d.ts +10 -10
  79. package/types/components/Island.d.ts +10 -10
  80. package/types/components/JSONExportDialog.d.ts +15 -15
  81. package/types/components/LayerUI.d.ts +33 -33
  82. package/types/components/LibraryMenu.d.ts +24 -24
  83. package/types/components/LibraryMenuBrowseButton.d.ts +7 -7
  84. package/types/components/LibraryMenuControlButtons.d.ts +9 -9
  85. package/types/components/LibraryMenuHeaderContent.d.ts +17 -17
  86. package/types/components/LibraryMenuItems.d.ts +14 -14
  87. package/types/components/LibraryMenuSection.d.ts +22 -22
  88. package/types/components/LibraryUnit.d.ts +14 -14
  89. package/types/components/LoadingMessage.d.ts +5 -5
  90. package/types/components/LockButton.d.ts +10 -10
  91. package/types/components/MobileMenu.d.ts +27 -27
  92. package/types/components/Modal.d.ts +13 -13
  93. package/types/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -17
  94. package/types/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -17
  95. package/types/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -22
  96. package/types/components/PasteChartDialog.d.ts +8 -8
  97. package/types/components/PenModeButton.d.ts +12 -12
  98. package/types/components/Popover.d.ts +15 -15
  99. package/types/components/ProjectName.d.ts +11 -11
  100. package/types/components/PublishLibrary.d.ts +16 -16
  101. package/types/components/RadioGroup.d.ts +12 -12
  102. package/types/components/Section.d.ts +6 -6
  103. package/types/components/Sidebar/Sidebar.d.ts +76 -76
  104. package/types/components/Sidebar/SidebarHeader.d.ts +7 -7
  105. package/types/components/Sidebar/SidebarTab.d.ts +8 -8
  106. package/types/components/Sidebar/SidebarTabTrigger.d.ts +9 -9
  107. package/types/components/Sidebar/SidebarTabTriggers.d.ts +6 -6
  108. package/types/components/Sidebar/SidebarTabs.d.ts +6 -6
  109. package/types/components/Sidebar/SidebarTrigger.d.ts +6 -6
  110. package/types/components/Sidebar/common.d.ts +33 -33
  111. package/types/components/Spinner.d.ts +7 -7
  112. package/types/components/Stack.d.ts +16 -16
  113. package/types/components/Stats.d.ts +11 -11
  114. package/types/components/Switch.d.ts +9 -9
  115. package/types/components/Toast.d.ts +7 -7
  116. package/types/components/ToolButton.d.ts +47 -47
  117. package/types/components/Tooltip.d.ts +17 -17
  118. package/types/components/Trans.d.ts +9 -9
  119. package/types/components/UserList.d.ts +8 -8
  120. package/types/components/canvases/InteractiveCanvas.d.ts +27 -26
  121. package/types/components/canvases/StaticCanvas.d.ts +18 -18
  122. package/types/components/canvases/index.d.ts +3 -3
  123. package/types/components/dropdownMenu/DropdownMenu.d.ts +67 -67
  124. package/types/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
  125. package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  126. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -12
  127. package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +6 -6
  128. package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +6 -6
  129. package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +13 -13
  130. package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  131. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +10 -10
  132. package/types/components/dropdownMenu/common.d.ts +6 -6
  133. package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  134. package/types/components/footer/Footer.d.ts +12 -12
  135. package/types/components/footer/FooterCenter.d.ts +8 -8
  136. package/types/components/hoc/withInternalFallback.d.ts +4 -4
  137. package/types/components/icons.d.ts +154 -154
  138. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +9 -9
  139. package/types/components/main-menu/DefaultItems.d.ts +44 -44
  140. package/types/components/main-menu/MainMenu.d.ts +61 -61
  141. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +57 -57
  142. package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  143. package/types/components/welcome-screen/WelcomeScreen.d.ts +84 -84
  144. package/types/constants.d.ts +230 -230
  145. package/types/context/tunnels.d.ts +19 -19
  146. package/types/context/ui-appState.d.ts +4 -4
  147. package/types/data/blob.d.ts +48 -48
  148. package/types/data/encode.d.ts +53 -53
  149. package/types/data/encryption.d.ts +9 -9
  150. package/types/data/filesystem.d.ts +19 -19
  151. package/types/data/image.d.ts +15 -15
  152. package/types/data/index.d.ts +13 -13
  153. package/types/data/json.d.ts +16 -16
  154. package/types/data/library.d.ts +54 -54
  155. package/types/data/resave.d.ts +5 -5
  156. package/types/data/restore.d.ts +21 -21
  157. package/types/data/transform.d.ts +71 -71
  158. package/types/data/types.d.ts +45 -45
  159. package/types/data/url.d.ts +7 -7
  160. package/types/distribute.d.ts +6 -6
  161. package/types/element/Hyperlink.d.ts +184 -181
  162. package/types/element/binding.d.ts +34 -34
  163. package/types/element/bounds.d.ts +53 -53
  164. package/types/element/collision.d.ts +21 -21
  165. package/types/element/dragElements.d.ts +6 -6
  166. package/types/element/embeddable.d.ts +178 -175
  167. package/types/element/image.d.ts +32 -32
  168. package/types/element/index.d.ts +21 -21
  169. package/types/element/linearElementEditor.d.ts +295 -292
  170. package/types/element/mutateElement.d.ts +12 -12
  171. package/types/element/newElement.d.ts +99 -99
  172. package/types/element/resizeElements.d.ts +9 -9
  173. package/types/element/resizeTest.d.ts +13 -13
  174. package/types/element/showSelectedShapeActions.d.ts +3 -3
  175. package/types/element/sizeHelpers.d.ts +28 -28
  176. package/types/element/sortElements.d.ts +2 -2
  177. package/types/element/textElement.d.ts +78 -78
  178. package/types/element/textWysiwyg.d.ts +21 -21
  179. package/types/element/transformHandles.d.ts +35 -35
  180. package/types/element/typeChecks.d.ts +29 -29
  181. package/types/element/types.d.ts +166 -166
  182. package/types/errors.d.ts +8 -8
  183. package/types/frame.d.ts +40 -40
  184. package/types/ga.d.ts +63 -63
  185. package/types/gadirections.d.ts +8 -8
  186. package/types/galines.d.ts +22 -22
  187. package/types/gapoints.d.ts +7 -7
  188. package/types/gatransforms.d.ts +10 -10
  189. package/types/gesture.d.ts +6 -6
  190. package/types/groups.d.ts +31 -30
  191. package/types/history.d.ts +52 -52
  192. package/types/hooks/useCallbackRefState.d.ts +1 -1
  193. package/types/hooks/useCreatePortalContainer.d.ts +5 -5
  194. package/types/hooks/useLibraryItemSvg.d.ts +11 -11
  195. package/types/hooks/useOutsideClick.d.ts +19 -19
  196. package/types/hooks/useScrollPosition.d.ts +1 -1
  197. package/types/hooks/useTransition.d.ts +2 -2
  198. package/types/i18n.d.ts +24 -24
  199. package/types/jotai.d.ts +34 -34
  200. package/types/keys.d.ts +80 -80
  201. package/types/math.d.ts +30 -30
  202. package/types/packages/excalidraw/dist/excalidraw.development.d.ts +2 -2
  203. package/types/packages/excalidraw/dist/excalidraw.production.min.d.ts +1 -1
  204. package/types/packages/excalidraw/entry.d.ts +1 -1
  205. package/types/packages/excalidraw/env.d.ts +1 -1
  206. package/types/packages/excalidraw/example/App.d.ts +14 -14
  207. package/types/packages/excalidraw/example/CustomFooter.d.ts +5 -5
  208. package/types/packages/excalidraw/example/MobileFooter.d.ts +5 -5
  209. package/types/packages/excalidraw/example/index.d.ts +1 -1
  210. package/types/packages/excalidraw/example/initialData.d.ts +290 -290
  211. package/types/packages/excalidraw/example/sidebar/ExampleSidebar.d.ts +5 -5
  212. package/types/packages/excalidraw/index.d.ts +39 -39
  213. package/types/packages/excalidraw/main.d.ts +2 -2
  214. package/types/packages/excalidraw/publicPath.d.ts +1 -1
  215. package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -19
  216. package/types/packages/excalidraw/webpack.dev.config.d.ts +80 -80
  217. package/types/packages/excalidraw/webpack.prod.config.d.ts +95 -95
  218. package/types/packages/utils.d.ts +43 -43
  219. package/types/points.d.ts +7 -7
  220. package/types/polyfill.d.ts +2 -2
  221. package/types/random.d.ts +4 -4
  222. package/types/renderer/easingFunctions.d.ts +6 -6
  223. package/types/renderer/renderElement.d.ts +25 -25
  224. package/types/renderer/renderScene.d.ts +31 -31
  225. package/types/renderer/roundRect.d.ts +11 -11
  226. package/types/scene/Fonts.d.ts +21 -21
  227. package/types/scene/Renderer.d.ts +25 -25
  228. package/types/scene/Scene.d.ts +62 -62
  229. package/types/scene/Shape.d.ts +12 -12
  230. package/types/scene/ShapeCache.d.ts +20 -20
  231. package/types/scene/comparisons.d.ts +10 -10
  232. package/types/scene/export.d.ts +25 -25
  233. package/types/scene/index.d.ts +5 -5
  234. package/types/scene/scroll.d.ts +17 -17
  235. package/types/scene/scrollbars.d.ts +12 -12
  236. package/types/scene/selection.d.ts +31 -31
  237. package/types/scene/types.d.ts +92 -92
  238. package/types/scene/zoom.d.ts +13 -13
  239. package/types/shapes.d.ts +62 -62
  240. package/types/types.d.ts +546 -544
  241. package/types/utility-types.d.ts +24 -24
  242. package/types/utils.d.ts +200 -200
  243. package/types/zindex.d.ts +6 -6
  244. package/types/actions/actionToggleLock.d.ts +0 -135
  245. package/types/components/ColorPicker.d.ts +0 -19
  246. package/types/components/LibraryButton.d.ts +0 -8
  247. package/types/components/SingleLibraryItem.d.ts +0 -10
  248. package/types/components/context/tunnels.d.ts +0 -16
  249. package/types/components/hoc/withUpstreamOverride.d.ts +0 -10
  250. package/types/packages/common.webpack.dev.config.d.ts +0 -72
  251. package/types/packages/common.webpack.prod.config.d.ts +0 -84
  252. package/types/packages/excalidraw/dist/100.d.ts +0 -0
  253. package/types/packages/excalidraw/dist/1389.d.ts +0 -0
  254. package/types/packages/excalidraw/dist/1998.d.ts +0 -0
  255. package/types/packages/excalidraw/dist/4194.d.ts +0 -0
  256. package/types/packages/excalidraw/dist/4881.d.ts +0 -0
  257. package/types/packages/excalidraw/dist/5763.d.ts +0 -0
  258. package/types/packages/excalidraw/dist/5914.d.ts +0 -0
  259. package/types/packages/excalidraw/dist/6689.d.ts +0 -0
  260. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ar-SA-json-b9c75e6743e089f51f9b.d.ts +0 -0
  261. package/types/packages/excalidraw/dist/excalidraw-assets/locales/az-AZ-json-32268e2c7ad89fce5d2c.d.ts +0 -0
  262. package/types/packages/excalidraw/dist/excalidraw-assets/locales/bg-BG-json-ff5ef83d3c2706367417.d.ts +0 -0
  263. package/types/packages/excalidraw/dist/excalidraw-assets/locales/bn-BD-json-f9b1344b2f5c0ab53ce8.d.ts +0 -0
  264. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ca-ES-json-d4a1f01f8c174c315974.d.ts +0 -0
  265. package/types/packages/excalidraw/dist/excalidraw-assets/locales/cs-CZ-json-ff1b9bbfe92356698245.d.ts +0 -0
  266. package/types/packages/excalidraw/dist/excalidraw-assets/locales/da-DK-json-ac982a0c1e02b45f9500.d.ts +0 -0
  267. package/types/packages/excalidraw/dist/excalidraw-assets/locales/de-DE-json-a3222d8a9ed4864ccedf.d.ts +0 -0
  268. package/types/packages/excalidraw/dist/excalidraw-assets/locales/el-GR-json-8cc1609bd088ec4f197a.d.ts +0 -0
  269. package/types/packages/excalidraw/dist/excalidraw-assets/locales/es-ES-json-4f3da97feff33cb00e6d.d.ts +0 -0
  270. package/types/packages/excalidraw/dist/excalidraw-assets/locales/eu-ES-json-f9efd2bf2555bceb526a.d.ts +0 -0
  271. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fa-IR-json-abcad5d329ac9558750e.d.ts +0 -0
  272. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fi-FI-json-7250174bb3682c3ee602.d.ts +0 -0
  273. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fr-FR-json-f82759a1bc767e0889bd.d.ts +0 -0
  274. package/types/packages/excalidraw/dist/excalidraw-assets/locales/gl-ES-json-8408403b5df17158e269.d.ts +0 -0
  275. package/types/packages/excalidraw/dist/excalidraw-assets/locales/he-IL-json-2e5cea590dd00f76b42f.d.ts +0 -0
  276. package/types/packages/excalidraw/dist/excalidraw-assets/locales/hi-IN-json-3898c9c1216b44476529.d.ts +0 -0
  277. package/types/packages/excalidraw/dist/excalidraw-assets/locales/hu-HU-json-1b5028b3a2676b3e7bde.d.ts +0 -0
  278. package/types/packages/excalidraw/dist/excalidraw-assets/locales/id-ID-json-43d505d7071a0e359681.d.ts +0 -0
  279. package/types/packages/excalidraw/dist/excalidraw-assets/locales/it-IT-json-a1526e95ebe4c2156ffb.d.ts +0 -0
  280. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ja-JP-json-b7b0079dca8ece2551c7.d.ts +0 -0
  281. package/types/packages/excalidraw/dist/excalidraw-assets/locales/kaa-json-b2f03ae2f239b9fae304.d.ts +0 -0
  282. package/types/packages/excalidraw/dist/excalidraw-assets/locales/kab-KAB-json-e8618205ea49417e5fb4.d.ts +0 -0
  283. package/types/packages/excalidraw/dist/excalidraw-assets/locales/kk-KZ-json-f648362328b839e9313f.d.ts +0 -0
  284. package/types/packages/excalidraw/dist/excalidraw-assets/locales/km-KH-json-920cbd8cb9ea3c2ce631.d.ts +0 -0
  285. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ko-KR-json-e5f26d9854a5d68ada0a.d.ts +0 -0
  286. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ku-TR-json-374bbbb0b003a490681d.d.ts +0 -0
  287. package/types/packages/excalidraw/dist/excalidraw-assets/locales/lt-LT-json-9caac0d3530651221c75.d.ts +0 -0
  288. package/types/packages/excalidraw/dist/excalidraw-assets/locales/lv-LV-json-c811870330575e53285c.d.ts +0 -0
  289. package/types/packages/excalidraw/dist/excalidraw-assets/locales/mr-IN-json-05294735c64b63223d8e.d.ts +0 -0
  290. package/types/packages/excalidraw/dist/excalidraw-assets/locales/my-MM-json-c3cff6d30b1e629f546f.d.ts +0 -0
  291. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nb-NO-json-75cfab63ad7c2ff45f19.d.ts +0 -0
  292. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nl-NL-json-90ef39ed303967aeb9c2.d.ts +0 -0
  293. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nn-NO-json-1a8db0d8c3717d895cc5.d.ts +0 -0
  294. package/types/packages/excalidraw/dist/excalidraw-assets/locales/oc-FR-json-925326d13bc187dcd377.d.ts +0 -0
  295. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pa-IN-json-d9ee09801ed220840b2b.d.ts +0 -0
  296. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pl-PL-json-9a1b0b7262cd86ab734f.d.ts +0 -0
  297. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pt-BR-json-62a1095dd13343b61194.d.ts +0 -0
  298. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pt-PT-json-cc517eed349ce432b054.d.ts +0 -0
  299. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ro-RO-json-162b57c475da796d5a5b.d.ts +0 -0
  300. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ru-RU-json-cfc347872e181d1335a7.d.ts +0 -0
  301. package/types/packages/excalidraw/dist/excalidraw-assets/locales/si-LK-json-674ece30d49390e45733.d.ts +0 -0
  302. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sk-SK-json-8edebc008b63305c87e1.d.ts +0 -0
  303. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sl-SI-json-826580e1006547dbbd3b.d.ts +0 -0
  304. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sv-SE-json-84a855efd030e37f51ab.d.ts +0 -0
  305. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ta-IN-json-f59f50c4b8f2b2fee8ca.d.ts +0 -0
  306. package/types/packages/excalidraw/dist/excalidraw-assets/locales/th-TH-json-4cbe42d56e0a6f261769.d.ts +0 -0
  307. package/types/packages/excalidraw/dist/excalidraw-assets/locales/tr-TR-json-eb07e9699c26fef02345.d.ts +0 -0
  308. package/types/packages/excalidraw/dist/excalidraw-assets/locales/uk-UA-json-a48bb2e866a11d396a35.d.ts +0 -0
  309. package/types/packages/excalidraw/dist/excalidraw-assets/locales/vi-VN-json-cbbaff972778abc0e34b.d.ts +0 -0
  310. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-CN-json-48964474c5d477443a1b.d.ts +0 -0
  311. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-HK-json-19e6814bddb06e0dd6e3.d.ts +0 -0
  312. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-TW-json-3fcc3dcef74999ea3757.d.ts +0 -0
  313. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-4e96a832da47fc7016f9.d.ts +0 -0
  314. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-e62281f32dc8bed5f240.d.ts +0 -0
  315. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ar-SA-json-a69e95810fd104088c5c.d.ts +0 -2
  316. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/az-AZ-json-589b1b62c7020f14c833.d.ts +0 -2
  317. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/bg-BG-json-79742eced03e74339dfa.d.ts +0 -2
  318. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/bn-BD-json-737c1b739f303a032d89.d.ts +0 -2
  319. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ca-ES-json-5f515dea6151baaa2eaa.d.ts +0 -2
  320. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/cs-CZ-json-124bc5ab8060f0c7e965.d.ts +0 -2
  321. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/da-DK-json-d099915b14b07f999456.d.ts +0 -2
  322. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/de-DE-json-d8d9ee97794526088903.d.ts +0 -2
  323. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/el-GR-json-8562deea2ef40d73cf8a.d.ts +0 -2
  324. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/es-ES-json-da3d630806693d7dac08.d.ts +0 -2
  325. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/eu-ES-json-ea32646b47bf29438fb9.d.ts +0 -2
  326. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/fa-IR-json-e8d73ea1c5bdccca7b27.d.ts +0 -2
  327. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/fi-FI-json-1d2a667fad3ea0ced0ef.d.ts +0 -2
  328. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/fr-FR-json-ef3b02eac347cee42eac.d.ts +0 -2
  329. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/gl-ES-json-3c8bbe9429fc52e410b2.d.ts +0 -2
  330. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/he-IL-json-4a05a09da3b8c37144d5.d.ts +0 -2
  331. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/hi-IN-json-0300ce94e80ea89134af.d.ts +0 -2
  332. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/hu-HU-json-331ac1b31c82505ea6cc.d.ts +0 -2
  333. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/id-ID-json-f8ba56a28586e4e77070.d.ts +0 -2
  334. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/it-IT-json-0d8f11dec1a87e9359c8.d.ts +0 -2
  335. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ja-JP-json-ceaa3287f265ae241112.d.ts +0 -2
  336. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/kaa-json-4efd2d14964af8a534cb.d.ts +0 -2
  337. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/kab-KAB-json-3e7e196cc06505d82d71.d.ts +0 -2
  338. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/kk-KZ-json-96ab3e149666871ce872.d.ts +0 -2
  339. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/km-KH-json-5e3f43be16a6ec0eb24f.d.ts +0 -2
  340. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ko-KR-json-1f078c7aad070d3bd0e9.d.ts +0 -2
  341. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ku-TR-json-fcef5d1f6a04981f2a5e.d.ts +0 -2
  342. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/lt-LT-json-09bf8afbe684fc98c92a.d.ts +0 -2
  343. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/lv-LV-json-95d0faca7a20097e219f.d.ts +0 -2
  344. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/mr-IN-json-3ffe983e37fedc73cd65.d.ts +0 -2
  345. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/my-MM-json-c88241ade5d8f9bafe5d.d.ts +0 -2
  346. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/nb-NO-json-b80dd1befb2641b9364c.d.ts +0 -2
  347. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/nl-NL-json-4f65f25ec5e87503413e.d.ts +0 -2
  348. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/nn-NO-json-2134d8b06b7e30965748.d.ts +0 -2
  349. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/oc-FR-json-3e134022a025ff54b6f2.d.ts +0 -2
  350. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/pa-IN-json-97ad2e2064b71f244820.d.ts +0 -2
  351. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/pl-PL-json-1ed88814e0018339868e.d.ts +0 -2
  352. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/pt-BR-json-49f03e588be4c6bbe08c.d.ts +0 -2
  353. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/pt-PT-json-2929d15eba5953ef7715.d.ts +0 -2
  354. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ro-RO-json-785455320326c2640311.d.ts +0 -2
  355. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ru-RU-json-8836a70e1fe715aa70c7.d.ts +0 -2
  356. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/si-LK-json-244722aa29ba7ca8bd7a.d.ts +0 -2
  357. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/sk-SK-json-97afb0ec22d1503e2af4.d.ts +0 -2
  358. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/sl-SI-json-e59c2bd944228503e705.d.ts +0 -2
  359. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/sv-SE-json-8ee6702d94e84e48faa8.d.ts +0 -2
  360. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ta-IN-json-3c99dc4ff8af7e2523f3.d.ts +0 -2
  361. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/th-TH-json-a4b323409d22013c30e2.d.ts +0 -2
  362. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/tr-TR-json-399c6f39c50e30399d18.d.ts +0 -2
  363. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/uk-UA-json-8657d9ac1c78af847957.d.ts +0 -2
  364. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/vi-VN-json-e81217b667a314e4b841.d.ts +0 -2
  365. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/zh-CN-json-a97b8c616b2f0548d66c.d.ts +0 -2
  366. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/zh-HK-json-2f278ce98daca1c37501.d.ts +0 -2
  367. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/zh-TW-json-e4eb1416e4564d3a1fd9.d.ts +0 -2
  368. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-a14cd58fa2db417e42b2.d.ts +0 -0
  369. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-ca1b29f7c27b424efab5.d.ts +0 -0
  370. package/types/packages/excalidraw/dist/locales/ar-SA-json.d.ts +0 -2
  371. package/types/packages/excalidraw/dist/locales/az-AZ-json.d.ts +0 -2
  372. package/types/packages/excalidraw/dist/locales/bg-BG-json.d.ts +0 -2
  373. package/types/packages/excalidraw/dist/locales/bn-BD-json.d.ts +0 -2
  374. package/types/packages/excalidraw/dist/locales/ca-ES-json.d.ts +0 -2
  375. package/types/packages/excalidraw/dist/locales/cs-CZ-json.d.ts +0 -2
  376. package/types/packages/excalidraw/dist/locales/da-DK-json.d.ts +0 -2
  377. package/types/packages/excalidraw/dist/locales/de-DE-json.d.ts +0 -2
  378. package/types/packages/excalidraw/dist/locales/el-GR-json.d.ts +0 -2
  379. package/types/packages/excalidraw/dist/locales/es-ES-json.d.ts +0 -2
  380. package/types/packages/excalidraw/dist/locales/eu-ES-json.d.ts +0 -2
  381. package/types/packages/excalidraw/dist/locales/fa-IR-json.d.ts +0 -2
  382. package/types/packages/excalidraw/dist/locales/fi-FI-json.d.ts +0 -2
  383. package/types/packages/excalidraw/dist/locales/fr-FR-json.d.ts +0 -2
  384. package/types/packages/excalidraw/dist/locales/gl-ES-json.d.ts +0 -2
  385. package/types/packages/excalidraw/dist/locales/he-IL-json.d.ts +0 -2
  386. package/types/packages/excalidraw/dist/locales/hi-IN-json.d.ts +0 -2
  387. package/types/packages/excalidraw/dist/locales/hu-HU-json.d.ts +0 -2
  388. package/types/packages/excalidraw/dist/locales/id-ID-json.d.ts +0 -2
  389. package/types/packages/excalidraw/dist/locales/it-IT-json.d.ts +0 -2
  390. package/types/packages/excalidraw/dist/locales/ja-JP-json.d.ts +0 -2
  391. package/types/packages/excalidraw/dist/locales/kaa-json.d.ts +0 -2
  392. package/types/packages/excalidraw/dist/locales/kab-KAB-json.d.ts +0 -2
  393. package/types/packages/excalidraw/dist/locales/kk-KZ-json.d.ts +0 -2
  394. package/types/packages/excalidraw/dist/locales/km-KH-json.d.ts +0 -2
  395. package/types/packages/excalidraw/dist/locales/ko-KR-json.d.ts +0 -2
  396. package/types/packages/excalidraw/dist/locales/ku-TR-json.d.ts +0 -2
  397. package/types/packages/excalidraw/dist/locales/lt-LT-json.d.ts +0 -2
  398. package/types/packages/excalidraw/dist/locales/lv-LV-json.d.ts +0 -2
  399. package/types/packages/excalidraw/dist/locales/mr-IN-json.d.ts +0 -2
  400. package/types/packages/excalidraw/dist/locales/my-MM-json.d.ts +0 -2
  401. package/types/packages/excalidraw/dist/locales/nb-NO-json.d.ts +0 -2
  402. package/types/packages/excalidraw/dist/locales/nl-NL-json.d.ts +0 -2
  403. package/types/packages/excalidraw/dist/locales/nn-NO-json.d.ts +0 -2
  404. package/types/packages/excalidraw/dist/locales/oc-FR-json.d.ts +0 -2
  405. package/types/packages/excalidraw/dist/locales/pa-IN-json.d.ts +0 -2
  406. package/types/packages/excalidraw/dist/locales/pl-PL-json.d.ts +0 -2
  407. package/types/packages/excalidraw/dist/locales/pt-BR-json.d.ts +0 -2
  408. package/types/packages/excalidraw/dist/locales/pt-PT-json.d.ts +0 -2
  409. package/types/packages/excalidraw/dist/locales/ro-RO-json.d.ts +0 -2
  410. package/types/packages/excalidraw/dist/locales/ru-RU-json.d.ts +0 -2
  411. package/types/packages/excalidraw/dist/locales/si-LK-json.d.ts +0 -2
  412. package/types/packages/excalidraw/dist/locales/sk-SK-json.d.ts +0 -2
  413. package/types/packages/excalidraw/dist/locales/sl-SI-json.d.ts +0 -2
  414. package/types/packages/excalidraw/dist/locales/sv-SE-json.d.ts +0 -2
  415. package/types/packages/excalidraw/dist/locales/ta-IN-json.d.ts +0 -2
  416. package/types/packages/excalidraw/dist/locales/th-TH-json.d.ts +0 -2
  417. package/types/packages/excalidraw/dist/locales/tr-TR-json.d.ts +0 -2
  418. package/types/packages/excalidraw/dist/locales/uk-UA-json.d.ts +0 -2
  419. package/types/packages/excalidraw/dist/locales/vi-VN-json.d.ts +0 -2
  420. package/types/packages/excalidraw/dist/locales/zh-CN-json.d.ts +0 -2
  421. package/types/packages/excalidraw/dist/locales/zh-HK-json.d.ts +0 -2
  422. package/types/packages/excalidraw/dist/locales/zh-TW-json.d.ts +0 -2
  423. package/types/packages/excalidraw/dist/node_modules_browser-fs-access_dist_directory-open-01563666_js.d.ts +0 -0
  424. package/types/packages/excalidraw/dist/node_modules_browser-fs-access_dist_directory-open-4ed118d0_js.d.ts +0 -0
  425. package/types/packages/excalidraw/dist/node_modules_browser-fs-access_dist_file-open-002ab408_js.d.ts +0 -0
  426. package/types/packages/excalidraw/dist/node_modules_browser-fs-access_dist_file-open-7c801643_js.d.ts +0 -0
  427. package/types/packages/excalidraw/dist/node_modules_browser-fs-access_dist_file-save-3189631c_js.d.ts +0 -0
  428. package/types/packages/excalidraw/dist/node_modules_browser-fs-access_dist_file-save-745eba88_js.d.ts +0 -0
  429. package/types/packages/excalidraw/dist/node_modules_image-blob-reduce_dist_image-blob-reduce_esm_mjs.d.ts +0 -0
  430. package/types/packages/excalidraw/dist/node_modules_pica_dist_pica_js.d.ts +0 -0
  431. package/types/packages/excalidraw/dist/vendors-node_modules_image-blob-reduce_dist_image-blob-reduce_esm_mjs.d.ts +0 -0
  432. package/types/packages/excalidraw/dist/vendors-node_modules_pica_dist_pica_js.d.ts +0 -0
  433. package/types/packages/excalidraw/webpack.prod.config.newfromexcalidraw.d.ts +0 -95
  434. package/types/packages/excalidraw/webpack.prod.config.old.d.ts +0 -78
@@ -1,1388 +1,1415 @@
1
- import { Theme } from "../element/types";
2
- import "../components/ToolIcon.scss";
3
- export declare const actionChangeProjectName: {
4
- name: "changeProjectName";
5
- trackEvent: false;
6
- perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
7
- appState: {
8
- name: any;
9
- contextMenu: {
10
- items: import("../components/ContextMenu").ContextMenuItems;
11
- top: number;
12
- left: number;
13
- } | null;
14
- showWelcomeScreen: boolean;
15
- isLoading: boolean;
16
- errorMessage: import("react").ReactNode;
17
- activeEmbeddable: {
18
- element: import("../element/types").NonDeletedExcalidrawElement;
19
- state: "active" | "hover";
20
- } | null;
21
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
22
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
23
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
24
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
25
- isBindingEnabled: boolean;
26
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
27
- suggestedBindings: import("../element/binding").SuggestedBinding[];
28
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
29
- frameRendering: {
30
- enabled: boolean;
31
- name: boolean;
32
- outline: boolean;
33
- clip: boolean;
34
- };
35
- editingFrame: string | null;
36
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
37
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
38
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
39
- activeTool: {
40
- lastActiveTool: import("../types").LastActiveTool;
41
- locked: boolean;
42
- } & ({
43
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
44
- customType: null;
45
- } | {
46
- type: "custom";
47
- customType: string;
48
- });
49
- penMode: boolean;
50
- penDetected: boolean;
51
- exportBackground: boolean;
52
- exportEmbedScene: boolean;
53
- exportWithDarkMode: boolean;
54
- exportScale: number;
55
- currentItemStrokeColor: string;
56
- currentItemBackgroundColor: string;
57
- currentItemFillStyle: import("../element/types").FillStyle;
58
- currentItemStrokeWidth: number;
59
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
60
- currentItemRoughness: number;
61
- currentItemOpacity: number;
62
- currentItemFontFamily: number;
63
- currentItemFontSize: number;
64
- currentItemTextAlign: string;
65
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
66
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
67
- currentItemRoundness: import("../element/types").StrokeRoundness;
68
- viewBackgroundColor: string;
69
- scrollX: number;
70
- scrollY: number;
71
- cursorButton: "up" | "down";
72
- scrolledOutside: boolean;
73
- isResizing: boolean;
74
- isRotating: boolean;
75
- zoom: Readonly<{
76
- value: import("../types").NormalizedZoomValue;
77
- }>;
78
- openMenu: "canvas" | "shape" | null;
79
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
80
- openSidebar: {
81
- name: string;
82
- tab?: string | undefined;
83
- } | null;
84
- openDialog: "imageExport" | "help" | "jsonExport" | null;
85
- defaultSidebarDockedPreference: boolean;
86
- lastPointerDownWith: import("../element/types").PointerType;
87
- selectedElementIds: Readonly<{
88
- [id: string]: true;
89
- }>;
90
- previousSelectedElementIds: {
91
- [id: string]: true;
92
- };
93
- selectedElementsAreBeingDragged: boolean;
94
- shouldCacheIgnoreZoom: boolean;
95
- toast: {
96
- message: string;
97
- closable?: boolean | undefined;
98
- duration?: number | undefined;
99
- } | null;
100
- zenModeEnabled: boolean;
101
- theme: Theme;
102
- gridSize: number | null;
103
- previousGridSize: number | null;
104
- viewModeEnabled: boolean;
105
- selectedGroupIds: {
106
- [groupId: string]: boolean;
107
- };
108
- editingGroupId: string | null;
109
- width: number;
110
- height: number;
111
- offsetTop: number;
112
- offsetLeft: number;
113
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
114
- collaborators: Map<string, import("../types").Collaborator>;
115
- showStats: boolean;
116
- currentChartType: import("../element/types").ChartType;
117
- pasteDialog: {
118
- shown: false;
119
- data: null;
120
- } | {
121
- shown: true;
122
- data: import("../charts").Spreadsheet;
123
- };
124
- pendingImageElementId: string | null;
125
- showHyperlinkPopup: false | "editor" | "info";
126
- linkOpacity: number;
127
- trayModeEnabled: boolean;
128
- colorPalette?: {
129
- canvasBackground: import("../colors").ColorPaletteCustom;
130
- elementBackground: import("../colors").ColorPaletteCustom;
131
- elementStroke: import("../colors").ColorPaletteCustom;
132
- topPicks: {
133
- canvasBackground: [string, string, string, string, string];
134
- elementStroke: [string, string, string, string, string];
135
- elementBackground: [string, string, string, string, string];
136
- };
137
- } | undefined;
138
- allowWheelZoom?: boolean | undefined;
139
- allowPinchZoom?: boolean | undefined;
140
- pinnedScripts?: string[] | undefined;
141
- customPens?: any[] | undefined;
142
- currentStrokeOptions?: any;
143
- resetCustomPen?: any;
144
- gridColor: string;
145
- dynamicStyle: string;
146
- invertBindingBehaviour: boolean;
147
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
148
- };
149
- commitToHistory: false;
150
- };
151
- PanelComponent: ({ appState, updateData, appProps, data }: import("./types").PanelComponentProps) => JSX.Element;
152
- } & {
153
- keyTest?: undefined;
154
- };
155
- export declare const actionChangeExportScale: {
156
- name: "changeExportScale";
157
- trackEvent: {
158
- category: "export";
159
- action: string;
160
- };
161
- perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
162
- appState: {
163
- exportScale: any;
164
- contextMenu: {
165
- items: import("../components/ContextMenu").ContextMenuItems;
166
- top: number;
167
- left: number;
168
- } | null;
169
- showWelcomeScreen: boolean;
170
- isLoading: boolean;
171
- errorMessage: import("react").ReactNode;
172
- activeEmbeddable: {
173
- element: import("../element/types").NonDeletedExcalidrawElement;
174
- state: "active" | "hover";
175
- } | null;
176
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
177
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
178
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
179
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
180
- isBindingEnabled: boolean;
181
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
182
- suggestedBindings: import("../element/binding").SuggestedBinding[];
183
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
184
- frameRendering: {
185
- enabled: boolean;
186
- name: boolean;
187
- outline: boolean;
188
- clip: boolean;
189
- };
190
- editingFrame: string | null;
191
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
192
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
193
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
194
- activeTool: {
195
- lastActiveTool: import("../types").LastActiveTool;
196
- locked: boolean;
197
- } & ({
198
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
199
- customType: null;
200
- } | {
201
- type: "custom";
202
- customType: string;
203
- });
204
- penMode: boolean;
205
- penDetected: boolean;
206
- exportBackground: boolean;
207
- exportEmbedScene: boolean;
208
- exportWithDarkMode: boolean;
209
- currentItemStrokeColor: string;
210
- currentItemBackgroundColor: string;
211
- currentItemFillStyle: import("../element/types").FillStyle;
212
- currentItemStrokeWidth: number;
213
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
214
- currentItemRoughness: number;
215
- currentItemOpacity: number;
216
- currentItemFontFamily: number;
217
- currentItemFontSize: number;
218
- currentItemTextAlign: string;
219
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
220
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
221
- currentItemRoundness: import("../element/types").StrokeRoundness;
222
- viewBackgroundColor: string;
223
- scrollX: number;
224
- scrollY: number;
225
- cursorButton: "up" | "down";
226
- scrolledOutside: boolean;
227
- name: string;
228
- isResizing: boolean;
229
- isRotating: boolean;
230
- zoom: Readonly<{
231
- value: import("../types").NormalizedZoomValue;
232
- }>;
233
- openMenu: "canvas" | "shape" | null;
234
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
235
- openSidebar: {
236
- name: string;
237
- tab?: string | undefined;
238
- } | null;
239
- openDialog: "imageExport" | "help" | "jsonExport" | null;
240
- defaultSidebarDockedPreference: boolean;
241
- lastPointerDownWith: import("../element/types").PointerType;
242
- selectedElementIds: Readonly<{
243
- [id: string]: true;
244
- }>;
245
- previousSelectedElementIds: {
246
- [id: string]: true;
247
- };
248
- selectedElementsAreBeingDragged: boolean;
249
- shouldCacheIgnoreZoom: boolean;
250
- toast: {
251
- message: string;
252
- closable?: boolean | undefined;
253
- duration?: number | undefined;
254
- } | null;
255
- zenModeEnabled: boolean;
256
- theme: Theme;
257
- gridSize: number | null;
258
- previousGridSize: number | null;
259
- viewModeEnabled: boolean;
260
- selectedGroupIds: {
261
- [groupId: string]: boolean;
262
- };
263
- editingGroupId: string | null;
264
- width: number;
265
- height: number;
266
- offsetTop: number;
267
- offsetLeft: number;
268
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
269
- collaborators: Map<string, import("../types").Collaborator>;
270
- showStats: boolean;
271
- currentChartType: import("../element/types").ChartType;
272
- pasteDialog: {
273
- shown: false;
274
- data: null;
275
- } | {
276
- shown: true;
277
- data: import("../charts").Spreadsheet;
278
- };
279
- pendingImageElementId: string | null;
280
- showHyperlinkPopup: false | "editor" | "info";
281
- linkOpacity: number;
282
- trayModeEnabled: boolean;
283
- colorPalette?: {
284
- canvasBackground: import("../colors").ColorPaletteCustom;
285
- elementBackground: import("../colors").ColorPaletteCustom;
286
- elementStroke: import("../colors").ColorPaletteCustom;
287
- topPicks: {
288
- canvasBackground: [string, string, string, string, string];
289
- elementStroke: [string, string, string, string, string];
290
- elementBackground: [string, string, string, string, string];
291
- };
292
- } | undefined;
293
- allowWheelZoom?: boolean | undefined;
294
- allowPinchZoom?: boolean | undefined;
295
- pinnedScripts?: string[] | undefined;
296
- customPens?: any[] | undefined;
297
- currentStrokeOptions?: any;
298
- resetCustomPen?: any;
299
- gridColor: string;
300
- dynamicStyle: string;
301
- invertBindingBehaviour: boolean;
302
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
303
- };
304
- commitToHistory: false;
305
- };
306
- PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
307
- } & {
308
- keyTest?: undefined;
309
- };
310
- export declare const actionChangeExportBackground: {
311
- name: "changeExportBackground";
312
- trackEvent: {
313
- category: "export";
314
- action: string;
315
- };
316
- perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
317
- appState: {
318
- exportBackground: any;
319
- contextMenu: {
320
- items: import("../components/ContextMenu").ContextMenuItems;
321
- top: number;
322
- left: number;
323
- } | null;
324
- showWelcomeScreen: boolean;
325
- isLoading: boolean;
326
- errorMessage: import("react").ReactNode;
327
- activeEmbeddable: {
328
- element: import("../element/types").NonDeletedExcalidrawElement;
329
- state: "active" | "hover";
330
- } | null;
331
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
332
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
333
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
334
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
335
- isBindingEnabled: boolean;
336
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
337
- suggestedBindings: import("../element/binding").SuggestedBinding[];
338
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
339
- frameRendering: {
340
- enabled: boolean;
341
- name: boolean;
342
- outline: boolean;
343
- clip: boolean;
344
- };
345
- editingFrame: string | null;
346
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
347
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
348
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
349
- activeTool: {
350
- lastActiveTool: import("../types").LastActiveTool;
351
- locked: boolean;
352
- } & ({
353
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
354
- customType: null;
355
- } | {
356
- type: "custom";
357
- customType: string;
358
- });
359
- penMode: boolean;
360
- penDetected: boolean;
361
- exportEmbedScene: boolean;
362
- exportWithDarkMode: boolean;
363
- exportScale: number;
364
- currentItemStrokeColor: string;
365
- currentItemBackgroundColor: string;
366
- currentItemFillStyle: import("../element/types").FillStyle;
367
- currentItemStrokeWidth: number;
368
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
369
- currentItemRoughness: number;
370
- currentItemOpacity: number;
371
- currentItemFontFamily: number;
372
- currentItemFontSize: number;
373
- currentItemTextAlign: string;
374
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
375
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
376
- currentItemRoundness: import("../element/types").StrokeRoundness;
377
- viewBackgroundColor: string;
378
- scrollX: number;
379
- scrollY: number;
380
- cursorButton: "up" | "down";
381
- scrolledOutside: boolean;
382
- name: string;
383
- isResizing: boolean;
384
- isRotating: boolean;
385
- zoom: Readonly<{
386
- value: import("../types").NormalizedZoomValue;
387
- }>;
388
- openMenu: "canvas" | "shape" | null;
389
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
390
- openSidebar: {
391
- name: string;
392
- tab?: string | undefined;
393
- } | null;
394
- openDialog: "imageExport" | "help" | "jsonExport" | null;
395
- defaultSidebarDockedPreference: boolean;
396
- lastPointerDownWith: import("../element/types").PointerType;
397
- selectedElementIds: Readonly<{
398
- [id: string]: true;
399
- }>;
400
- previousSelectedElementIds: {
401
- [id: string]: true;
402
- };
403
- selectedElementsAreBeingDragged: boolean;
404
- shouldCacheIgnoreZoom: boolean;
405
- toast: {
406
- message: string;
407
- closable?: boolean | undefined;
408
- duration?: number | undefined;
409
- } | null;
410
- zenModeEnabled: boolean;
411
- theme: Theme;
412
- gridSize: number | null;
413
- previousGridSize: number | null;
414
- viewModeEnabled: boolean;
415
- selectedGroupIds: {
416
- [groupId: string]: boolean;
417
- };
418
- editingGroupId: string | null;
419
- width: number;
420
- height: number;
421
- offsetTop: number;
422
- offsetLeft: number;
423
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
424
- collaborators: Map<string, import("../types").Collaborator>;
425
- showStats: boolean;
426
- currentChartType: import("../element/types").ChartType;
427
- pasteDialog: {
428
- shown: false;
429
- data: null;
430
- } | {
431
- shown: true;
432
- data: import("../charts").Spreadsheet;
433
- };
434
- pendingImageElementId: string | null;
435
- showHyperlinkPopup: false | "editor" | "info";
436
- linkOpacity: number;
437
- trayModeEnabled: boolean;
438
- colorPalette?: {
439
- canvasBackground: import("../colors").ColorPaletteCustom;
440
- elementBackground: import("../colors").ColorPaletteCustom;
441
- elementStroke: import("../colors").ColorPaletteCustom;
442
- topPicks: {
443
- canvasBackground: [string, string, string, string, string];
444
- elementStroke: [string, string, string, string, string];
445
- elementBackground: [string, string, string, string, string];
446
- };
447
- } | undefined;
448
- allowWheelZoom?: boolean | undefined;
449
- allowPinchZoom?: boolean | undefined;
450
- pinnedScripts?: string[] | undefined;
451
- customPens?: any[] | undefined;
452
- currentStrokeOptions?: any;
453
- resetCustomPen?: any;
454
- gridColor: string;
455
- dynamicStyle: string;
456
- invertBindingBehaviour: boolean;
457
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
458
- };
459
- commitToHistory: false;
460
- };
461
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
462
- } & {
463
- keyTest?: undefined;
464
- };
465
- export declare const actionChangeExportEmbedScene: {
466
- name: "changeExportEmbedScene";
467
- trackEvent: {
468
- category: "export";
469
- action: string;
470
- };
471
- perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
472
- appState: {
473
- exportEmbedScene: any;
474
- contextMenu: {
475
- items: import("../components/ContextMenu").ContextMenuItems;
476
- top: number;
477
- left: number;
478
- } | null;
479
- showWelcomeScreen: boolean;
480
- isLoading: boolean;
481
- errorMessage: import("react").ReactNode;
482
- activeEmbeddable: {
483
- element: import("../element/types").NonDeletedExcalidrawElement;
484
- state: "active" | "hover";
485
- } | null;
486
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
487
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
488
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
489
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
490
- isBindingEnabled: boolean;
491
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
492
- suggestedBindings: import("../element/binding").SuggestedBinding[];
493
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
494
- frameRendering: {
495
- enabled: boolean;
496
- name: boolean;
497
- outline: boolean;
498
- clip: boolean;
499
- };
500
- editingFrame: string | null;
501
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
502
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
503
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
504
- activeTool: {
505
- lastActiveTool: import("../types").LastActiveTool;
506
- locked: boolean;
507
- } & ({
508
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
509
- customType: null;
510
- } | {
511
- type: "custom";
512
- customType: string;
513
- });
514
- penMode: boolean;
515
- penDetected: boolean;
516
- exportBackground: boolean;
517
- exportWithDarkMode: boolean;
518
- exportScale: number;
519
- currentItemStrokeColor: string;
520
- currentItemBackgroundColor: string;
521
- currentItemFillStyle: import("../element/types").FillStyle;
522
- currentItemStrokeWidth: number;
523
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
524
- currentItemRoughness: number;
525
- currentItemOpacity: number;
526
- currentItemFontFamily: number;
527
- currentItemFontSize: number;
528
- currentItemTextAlign: string;
529
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
530
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
531
- currentItemRoundness: import("../element/types").StrokeRoundness;
532
- viewBackgroundColor: string;
533
- scrollX: number;
534
- scrollY: number;
535
- cursorButton: "up" | "down";
536
- scrolledOutside: boolean;
537
- name: string;
538
- isResizing: boolean;
539
- isRotating: boolean;
540
- zoom: Readonly<{
541
- value: import("../types").NormalizedZoomValue;
542
- }>;
543
- openMenu: "canvas" | "shape" | null;
544
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
545
- openSidebar: {
546
- name: string;
547
- tab?: string | undefined;
548
- } | null;
549
- openDialog: "imageExport" | "help" | "jsonExport" | null;
550
- defaultSidebarDockedPreference: boolean;
551
- lastPointerDownWith: import("../element/types").PointerType;
552
- selectedElementIds: Readonly<{
553
- [id: string]: true;
554
- }>;
555
- previousSelectedElementIds: {
556
- [id: string]: true;
557
- };
558
- selectedElementsAreBeingDragged: boolean;
559
- shouldCacheIgnoreZoom: boolean;
560
- toast: {
561
- message: string;
562
- closable?: boolean | undefined;
563
- duration?: number | undefined;
564
- } | null;
565
- zenModeEnabled: boolean;
566
- theme: Theme;
567
- gridSize: number | null;
568
- previousGridSize: number | null;
569
- viewModeEnabled: boolean;
570
- selectedGroupIds: {
571
- [groupId: string]: boolean;
572
- };
573
- editingGroupId: string | null;
574
- width: number;
575
- height: number;
576
- offsetTop: number;
577
- offsetLeft: number;
578
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
579
- collaborators: Map<string, import("../types").Collaborator>;
580
- showStats: boolean;
581
- currentChartType: import("../element/types").ChartType;
582
- pasteDialog: {
583
- shown: false;
584
- data: null;
585
- } | {
586
- shown: true;
587
- data: import("../charts").Spreadsheet;
588
- };
589
- pendingImageElementId: string | null;
590
- showHyperlinkPopup: false | "editor" | "info";
591
- linkOpacity: number;
592
- trayModeEnabled: boolean;
593
- colorPalette?: {
594
- canvasBackground: import("../colors").ColorPaletteCustom;
595
- elementBackground: import("../colors").ColorPaletteCustom;
596
- elementStroke: import("../colors").ColorPaletteCustom;
597
- topPicks: {
598
- canvasBackground: [string, string, string, string, string];
599
- elementStroke: [string, string, string, string, string];
600
- elementBackground: [string, string, string, string, string];
601
- };
602
- } | undefined;
603
- allowWheelZoom?: boolean | undefined;
604
- allowPinchZoom?: boolean | undefined;
605
- pinnedScripts?: string[] | undefined;
606
- customPens?: any[] | undefined;
607
- currentStrokeOptions?: any;
608
- resetCustomPen?: any;
609
- gridColor: string;
610
- dynamicStyle: string;
611
- invertBindingBehaviour: boolean;
612
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
613
- };
614
- commitToHistory: false;
615
- };
616
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
617
- } & {
618
- keyTest?: undefined;
619
- };
620
- export declare const actionSaveToActiveFile: {
621
- name: "saveToActiveFile";
622
- trackEvent: {
623
- category: "export";
624
- };
625
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
626
- perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
627
- commitToHistory: false;
628
- appState: {
629
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
630
- toast: {
631
- message: string;
632
- } | null;
633
- contextMenu: {
634
- items: import("../components/ContextMenu").ContextMenuItems;
635
- top: number;
636
- left: number;
637
- } | null;
638
- showWelcomeScreen: boolean;
639
- isLoading: boolean;
640
- errorMessage: import("react").ReactNode;
641
- activeEmbeddable: {
642
- element: import("../element/types").NonDeletedExcalidrawElement;
643
- state: "active" | "hover";
644
- } | null;
645
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
646
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
647
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
648
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
649
- isBindingEnabled: boolean;
650
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
651
- suggestedBindings: import("../element/binding").SuggestedBinding[];
652
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
653
- frameRendering: {
654
- enabled: boolean;
655
- name: boolean;
656
- outline: boolean;
657
- clip: boolean;
658
- };
659
- editingFrame: string | null;
660
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
661
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
662
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
663
- activeTool: {
664
- lastActiveTool: import("../types").LastActiveTool;
665
- locked: boolean;
666
- } & ({
667
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
668
- customType: null;
669
- } | {
670
- type: "custom";
671
- customType: string;
672
- });
673
- penMode: boolean;
674
- penDetected: boolean;
675
- exportBackground: boolean;
676
- exportEmbedScene: boolean;
677
- exportWithDarkMode: boolean;
678
- exportScale: number;
679
- currentItemStrokeColor: string;
680
- currentItemBackgroundColor: string;
681
- currentItemFillStyle: import("../element/types").FillStyle;
682
- currentItemStrokeWidth: number;
683
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
684
- currentItemRoughness: number;
685
- currentItemOpacity: number;
686
- currentItemFontFamily: number;
687
- currentItemFontSize: number;
688
- currentItemTextAlign: string;
689
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
690
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
691
- currentItemRoundness: import("../element/types").StrokeRoundness;
692
- viewBackgroundColor: string;
693
- scrollX: number;
694
- scrollY: number;
695
- cursorButton: "up" | "down";
696
- scrolledOutside: boolean;
697
- name: string;
698
- isResizing: boolean;
699
- isRotating: boolean;
700
- zoom: Readonly<{
701
- value: import("../types").NormalizedZoomValue;
702
- }>;
703
- openMenu: "canvas" | "shape" | null;
704
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
705
- openSidebar: {
706
- name: string;
707
- tab?: string | undefined;
708
- } | null;
709
- openDialog: "imageExport" | "help" | "jsonExport" | null;
710
- defaultSidebarDockedPreference: boolean;
711
- lastPointerDownWith: import("../element/types").PointerType;
712
- selectedElementIds: Readonly<{
713
- [id: string]: true;
714
- }>;
715
- previousSelectedElementIds: {
716
- [id: string]: true;
717
- };
718
- selectedElementsAreBeingDragged: boolean;
719
- shouldCacheIgnoreZoom: boolean;
720
- zenModeEnabled: boolean;
721
- theme: Theme;
722
- gridSize: number | null;
723
- previousGridSize: number | null;
724
- viewModeEnabled: boolean;
725
- selectedGroupIds: {
726
- [groupId: string]: boolean;
727
- };
728
- editingGroupId: string | null;
729
- width: number;
730
- height: number;
731
- offsetTop: number;
732
- offsetLeft: number;
733
- collaborators: Map<string, import("../types").Collaborator>;
734
- showStats: boolean;
735
- currentChartType: import("../element/types").ChartType;
736
- pasteDialog: {
737
- shown: false;
738
- data: null;
739
- } | {
740
- shown: true;
741
- data: import("../charts").Spreadsheet;
742
- };
743
- pendingImageElementId: string | null;
744
- showHyperlinkPopup: false | "editor" | "info";
745
- linkOpacity: number;
746
- trayModeEnabled: boolean;
747
- colorPalette?: {
748
- canvasBackground: import("../colors").ColorPaletteCustom;
749
- elementBackground: import("../colors").ColorPaletteCustom;
750
- elementStroke: import("../colors").ColorPaletteCustom;
751
- topPicks: {
752
- canvasBackground: [string, string, string, string, string];
753
- elementStroke: [string, string, string, string, string];
754
- elementBackground: [string, string, string, string, string];
755
- };
756
- } | undefined;
757
- allowWheelZoom?: boolean | undefined;
758
- allowPinchZoom?: boolean | undefined;
759
- pinnedScripts?: string[] | undefined;
760
- customPens?: any[] | undefined;
761
- currentStrokeOptions?: any;
762
- resetCustomPen?: any;
763
- gridColor: string;
764
- dynamicStyle: string;
765
- invertBindingBehaviour: boolean;
766
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
767
- };
768
- } | {
769
- commitToHistory: false;
770
- appState?: undefined;
771
- }>;
772
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
773
- } & {
774
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
775
- };
776
- export declare const actionSaveFileToDisk: {
777
- name: "saveFileToDisk";
778
- viewMode: true;
779
- trackEvent: {
780
- category: "export";
781
- };
782
- perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
783
- commitToHistory: false;
784
- appState: {
785
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
786
- contextMenu: {
787
- items: import("../components/ContextMenu").ContextMenuItems;
788
- top: number;
789
- left: number;
790
- } | null;
791
- showWelcomeScreen: boolean;
792
- isLoading: boolean;
793
- errorMessage: import("react").ReactNode;
794
- activeEmbeddable: {
795
- element: import("../element/types").NonDeletedExcalidrawElement;
796
- state: "active" | "hover";
797
- } | null;
798
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
799
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
800
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
801
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
802
- isBindingEnabled: boolean;
803
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
804
- suggestedBindings: import("../element/binding").SuggestedBinding[];
805
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
806
- frameRendering: {
807
- enabled: boolean;
808
- name: boolean;
809
- outline: boolean;
810
- clip: boolean;
811
- };
812
- editingFrame: string | null;
813
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
814
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
815
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
816
- activeTool: {
817
- lastActiveTool: import("../types").LastActiveTool;
818
- locked: boolean;
819
- } & ({
820
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
821
- customType: null;
822
- } | {
823
- type: "custom";
824
- customType: string;
825
- });
826
- penMode: boolean;
827
- penDetected: boolean;
828
- exportBackground: boolean;
829
- exportEmbedScene: boolean;
830
- exportWithDarkMode: boolean;
831
- exportScale: number;
832
- currentItemStrokeColor: string;
833
- currentItemBackgroundColor: string;
834
- currentItemFillStyle: import("../element/types").FillStyle;
835
- currentItemStrokeWidth: number;
836
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
837
- currentItemRoughness: number;
838
- currentItemOpacity: number;
839
- currentItemFontFamily: number;
840
- currentItemFontSize: number;
841
- currentItemTextAlign: string;
842
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
843
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
844
- currentItemRoundness: import("../element/types").StrokeRoundness;
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: import("../types").NormalizedZoomValue;
855
- }>;
856
- openMenu: "canvas" | "shape" | null;
857
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
858
- openSidebar: {
859
- name: string;
860
- tab?: string | undefined;
861
- } | null;
862
- openDialog: "imageExport" | "help" | "jsonExport" | null;
863
- defaultSidebarDockedPreference: boolean;
864
- lastPointerDownWith: import("../element/types").PointerType;
865
- selectedElementIds: Readonly<{
866
- [id: string]: true;
867
- }>;
868
- previousSelectedElementIds: {
869
- [id: string]: true;
870
- };
871
- selectedElementsAreBeingDragged: boolean;
872
- shouldCacheIgnoreZoom: boolean;
873
- toast: {
874
- message: string;
875
- closable?: boolean | undefined;
876
- duration?: number | undefined;
877
- } | null;
878
- zenModeEnabled: boolean;
879
- theme: Theme;
880
- gridSize: number | null;
881
- previousGridSize: number | null;
882
- viewModeEnabled: boolean;
883
- selectedGroupIds: {
884
- [groupId: string]: boolean;
885
- };
886
- editingGroupId: string | null;
887
- width: number;
888
- height: number;
889
- offsetTop: number;
890
- offsetLeft: number;
891
- collaborators: Map<string, import("../types").Collaborator>;
892
- showStats: boolean;
893
- currentChartType: import("../element/types").ChartType;
894
- pasteDialog: {
895
- shown: false;
896
- data: null;
897
- } | {
898
- shown: true;
899
- data: import("../charts").Spreadsheet;
900
- };
901
- pendingImageElementId: string | null;
902
- showHyperlinkPopup: false | "editor" | "info";
903
- linkOpacity: number;
904
- trayModeEnabled: boolean;
905
- colorPalette?: {
906
- canvasBackground: import("../colors").ColorPaletteCustom;
907
- elementBackground: import("../colors").ColorPaletteCustom;
908
- elementStroke: import("../colors").ColorPaletteCustom;
909
- topPicks: {
910
- canvasBackground: [string, string, string, string, string];
911
- elementStroke: [string, string, string, string, string];
912
- elementBackground: [string, string, string, string, string];
913
- };
914
- } | undefined;
915
- allowWheelZoom?: boolean | undefined;
916
- allowPinchZoom?: boolean | undefined;
917
- pinnedScripts?: string[] | undefined;
918
- customPens?: any[] | undefined;
919
- currentStrokeOptions?: any;
920
- resetCustomPen?: any;
921
- gridColor: string;
922
- dynamicStyle: string;
923
- invertBindingBehaviour: boolean;
924
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
925
- };
926
- } | {
927
- commitToHistory: false;
928
- appState?: undefined;
929
- }>;
930
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
931
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
932
- } & {
933
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
934
- };
935
- export declare const actionLoadScene: {
936
- name: "loadScene";
937
- trackEvent: {
938
- category: "export";
939
- };
940
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
941
- perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
942
- elements: import("../element/types").ExcalidrawElement[];
943
- appState: {
944
- theme: Theme;
945
- name: string;
946
- activeTool: {
947
- lastActiveTool: import("../types").LastActiveTool;
948
- locked: boolean;
949
- } & ({
950
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
951
- customType: null;
952
- } | {
953
- type: "custom";
954
- customType: string;
955
- });
956
- toast: {
957
- message: string;
958
- closable?: boolean | undefined;
959
- duration?: number | undefined;
960
- } | null;
961
- collaborators: Map<string, import("../types").Collaborator>;
962
- penMode: boolean;
963
- contextMenu: {
964
- items: import("../components/ContextMenu").ContextMenuItems;
965
- top: number;
966
- left: number;
967
- } | null;
968
- showWelcomeScreen: boolean;
969
- isLoading: boolean;
970
- errorMessage: import("react").ReactNode;
971
- activeEmbeddable: {
972
- element: import("../element/types").NonDeletedExcalidrawElement;
973
- state: "active" | "hover";
974
- } | null;
975
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
976
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
977
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
978
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
979
- isBindingEnabled: boolean;
980
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
981
- suggestedBindings: import("../element/binding").SuggestedBinding[];
982
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
983
- frameRendering: {
984
- enabled: boolean;
985
- name: boolean;
986
- outline: boolean;
987
- clip: boolean;
988
- };
989
- editingFrame: string | null;
990
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
991
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
992
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
993
- penDetected: boolean;
994
- exportBackground: boolean;
995
- exportEmbedScene: boolean;
996
- exportWithDarkMode: boolean;
997
- exportScale: number;
998
- currentItemStrokeColor: string;
999
- currentItemBackgroundColor: string;
1000
- currentItemFillStyle: import("../element/types").FillStyle;
1001
- currentItemStrokeWidth: number;
1002
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1003
- currentItemRoughness: number;
1004
- currentItemOpacity: number;
1005
- currentItemFontFamily: number;
1006
- currentItemFontSize: number;
1007
- currentItemTextAlign: string;
1008
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1009
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1010
- currentItemRoundness: import("../element/types").StrokeRoundness;
1011
- viewBackgroundColor: string;
1012
- scrollX: number;
1013
- scrollY: number;
1014
- cursorButton: "up" | "down";
1015
- scrolledOutside: boolean;
1016
- isResizing: boolean;
1017
- isRotating: boolean;
1018
- zoom: Readonly<{
1019
- value: import("../types").NormalizedZoomValue;
1020
- }>;
1021
- openMenu: "canvas" | "shape" | null;
1022
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1023
- openSidebar: {
1024
- name: string;
1025
- tab?: string | undefined;
1026
- } | null;
1027
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1028
- defaultSidebarDockedPreference: boolean;
1029
- lastPointerDownWith: import("../element/types").PointerType;
1030
- selectedElementIds: Readonly<{
1031
- [id: string]: true;
1032
- }>;
1033
- previousSelectedElementIds: {
1034
- [id: string]: true;
1035
- };
1036
- selectedElementsAreBeingDragged: boolean;
1037
- shouldCacheIgnoreZoom: boolean;
1038
- zenModeEnabled: boolean;
1039
- gridSize: number | null;
1040
- previousGridSize: number | null;
1041
- viewModeEnabled: boolean;
1042
- selectedGroupIds: {
1043
- [groupId: string]: boolean;
1044
- };
1045
- editingGroupId: string | null;
1046
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1047
- showStats: boolean;
1048
- currentChartType: import("../element/types").ChartType;
1049
- pasteDialog: {
1050
- shown: false;
1051
- data: null;
1052
- } | {
1053
- shown: true;
1054
- data: import("../charts").Spreadsheet;
1055
- };
1056
- pendingImageElementId: string | null;
1057
- showHyperlinkPopup: false | "editor" | "info";
1058
- linkOpacity: number;
1059
- trayModeEnabled: boolean;
1060
- colorPalette?: {
1061
- canvasBackground: import("../colors").ColorPaletteCustom;
1062
- elementBackground: import("../colors").ColorPaletteCustom;
1063
- elementStroke: import("../colors").ColorPaletteCustom;
1064
- topPicks: {
1065
- canvasBackground: [string, string, string, string, string];
1066
- elementStroke: [string, string, string, string, string];
1067
- elementBackground: [string, string, string, string, string];
1068
- };
1069
- } | undefined;
1070
- allowWheelZoom?: boolean | undefined;
1071
- allowPinchZoom?: boolean | undefined;
1072
- pinnedScripts?: string[] | undefined;
1073
- customPens?: any[] | undefined;
1074
- currentStrokeOptions?: any;
1075
- resetCustomPen?: any;
1076
- gridColor: string;
1077
- dynamicStyle: string;
1078
- invertBindingBehaviour: boolean;
1079
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1080
- };
1081
- files: import("../types").BinaryFiles;
1082
- commitToHistory: true;
1083
- } | {
1084
- elements: readonly import("../element/types").ExcalidrawElement[];
1085
- appState: {
1086
- errorMessage: any;
1087
- contextMenu: {
1088
- items: import("../components/ContextMenu").ContextMenuItems;
1089
- top: number;
1090
- left: number;
1091
- } | null;
1092
- showWelcomeScreen: boolean;
1093
- isLoading: boolean;
1094
- activeEmbeddable: {
1095
- element: import("../element/types").NonDeletedExcalidrawElement;
1096
- state: "active" | "hover";
1097
- } | null;
1098
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1099
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1100
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1101
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1102
- isBindingEnabled: boolean;
1103
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1104
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1105
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1106
- frameRendering: {
1107
- enabled: boolean;
1108
- name: boolean;
1109
- outline: boolean;
1110
- clip: boolean;
1111
- };
1112
- editingFrame: string | null;
1113
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1114
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1115
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1116
- activeTool: {
1117
- lastActiveTool: import("../types").LastActiveTool;
1118
- locked: boolean;
1119
- } & ({
1120
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1121
- customType: null;
1122
- } | {
1123
- type: "custom";
1124
- customType: string;
1125
- });
1126
- penMode: boolean;
1127
- penDetected: boolean;
1128
- exportBackground: boolean;
1129
- exportEmbedScene: boolean;
1130
- exportWithDarkMode: boolean;
1131
- exportScale: number;
1132
- currentItemStrokeColor: string;
1133
- currentItemBackgroundColor: string;
1134
- currentItemFillStyle: import("../element/types").FillStyle;
1135
- currentItemStrokeWidth: number;
1136
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1137
- currentItemRoughness: number;
1138
- currentItemOpacity: number;
1139
- currentItemFontFamily: number;
1140
- currentItemFontSize: number;
1141
- currentItemTextAlign: string;
1142
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1143
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1144
- currentItemRoundness: import("../element/types").StrokeRoundness;
1145
- viewBackgroundColor: string;
1146
- scrollX: number;
1147
- scrollY: number;
1148
- cursorButton: "up" | "down";
1149
- scrolledOutside: boolean;
1150
- name: string;
1151
- isResizing: boolean;
1152
- isRotating: boolean;
1153
- zoom: Readonly<{
1154
- value: import("../types").NormalizedZoomValue;
1155
- }>;
1156
- openMenu: "canvas" | "shape" | null;
1157
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1158
- openSidebar: {
1159
- name: string;
1160
- tab?: string | undefined;
1161
- } | null;
1162
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1163
- defaultSidebarDockedPreference: boolean;
1164
- lastPointerDownWith: import("../element/types").PointerType;
1165
- selectedElementIds: Readonly<{
1166
- [id: string]: true;
1167
- }>;
1168
- previousSelectedElementIds: {
1169
- [id: string]: true;
1170
- };
1171
- selectedElementsAreBeingDragged: boolean;
1172
- shouldCacheIgnoreZoom: boolean;
1173
- toast: {
1174
- message: string;
1175
- closable?: boolean | undefined;
1176
- duration?: number | undefined;
1177
- } | null;
1178
- zenModeEnabled: boolean;
1179
- theme: Theme;
1180
- gridSize: number | null;
1181
- previousGridSize: number | null;
1182
- viewModeEnabled: boolean;
1183
- selectedGroupIds: {
1184
- [groupId: string]: boolean;
1185
- };
1186
- editingGroupId: string | null;
1187
- width: number;
1188
- height: number;
1189
- offsetTop: number;
1190
- offsetLeft: number;
1191
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1192
- collaborators: Map<string, import("../types").Collaborator>;
1193
- showStats: boolean;
1194
- currentChartType: import("../element/types").ChartType;
1195
- pasteDialog: {
1196
- shown: false;
1197
- data: null;
1198
- } | {
1199
- shown: true;
1200
- data: import("../charts").Spreadsheet;
1201
- };
1202
- pendingImageElementId: string | null;
1203
- showHyperlinkPopup: false | "editor" | "info";
1204
- linkOpacity: number;
1205
- trayModeEnabled: boolean;
1206
- colorPalette?: {
1207
- canvasBackground: import("../colors").ColorPaletteCustom;
1208
- elementBackground: import("../colors").ColorPaletteCustom;
1209
- elementStroke: import("../colors").ColorPaletteCustom;
1210
- topPicks: {
1211
- canvasBackground: [string, string, string, string, string];
1212
- elementStroke: [string, string, string, string, string];
1213
- elementBackground: [string, string, string, string, string];
1214
- };
1215
- } | undefined;
1216
- allowWheelZoom?: boolean | undefined;
1217
- allowPinchZoom?: boolean | undefined;
1218
- pinnedScripts?: string[] | undefined;
1219
- customPens?: any[] | undefined;
1220
- currentStrokeOptions?: any;
1221
- resetCustomPen?: any;
1222
- gridColor: string;
1223
- dynamicStyle: string;
1224
- invertBindingBehaviour: boolean;
1225
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1226
- };
1227
- files: import("../types").BinaryFiles;
1228
- commitToHistory: false;
1229
- }>;
1230
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1231
- } & {
1232
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1233
- };
1234
- export declare const actionExportWithDarkMode: {
1235
- name: "exportWithDarkMode";
1236
- trackEvent: {
1237
- category: "export";
1238
- action: string;
1239
- };
1240
- perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1241
- appState: {
1242
- exportWithDarkMode: any;
1243
- contextMenu: {
1244
- items: import("../components/ContextMenu").ContextMenuItems;
1245
- top: number;
1246
- left: number;
1247
- } | null;
1248
- showWelcomeScreen: boolean;
1249
- isLoading: boolean;
1250
- errorMessage: import("react").ReactNode;
1251
- activeEmbeddable: {
1252
- element: import("../element/types").NonDeletedExcalidrawElement;
1253
- state: "active" | "hover";
1254
- } | null;
1255
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1256
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1257
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1258
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1259
- isBindingEnabled: boolean;
1260
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1261
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1262
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1263
- frameRendering: {
1264
- enabled: boolean;
1265
- name: boolean;
1266
- outline: boolean;
1267
- clip: boolean;
1268
- };
1269
- editingFrame: string | null;
1270
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1271
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1272
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1273
- activeTool: {
1274
- lastActiveTool: import("../types").LastActiveTool;
1275
- locked: boolean;
1276
- } & ({
1277
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1278
- customType: null;
1279
- } | {
1280
- type: "custom";
1281
- customType: string;
1282
- });
1283
- penMode: boolean;
1284
- penDetected: boolean;
1285
- exportBackground: boolean;
1286
- exportEmbedScene: boolean;
1287
- exportScale: number;
1288
- currentItemStrokeColor: string;
1289
- currentItemBackgroundColor: string;
1290
- currentItemFillStyle: import("../element/types").FillStyle;
1291
- currentItemStrokeWidth: number;
1292
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1293
- currentItemRoughness: number;
1294
- currentItemOpacity: number;
1295
- currentItemFontFamily: number;
1296
- currentItemFontSize: number;
1297
- currentItemTextAlign: string;
1298
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1299
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1300
- currentItemRoundness: import("../element/types").StrokeRoundness;
1301
- viewBackgroundColor: string;
1302
- scrollX: number;
1303
- scrollY: number;
1304
- cursorButton: "up" | "down";
1305
- scrolledOutside: boolean;
1306
- name: string;
1307
- isResizing: boolean;
1308
- isRotating: boolean;
1309
- zoom: Readonly<{
1310
- value: import("../types").NormalizedZoomValue;
1311
- }>;
1312
- openMenu: "canvas" | "shape" | null;
1313
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1314
- openSidebar: {
1315
- name: string;
1316
- tab?: string | undefined;
1317
- } | null;
1318
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1319
- defaultSidebarDockedPreference: boolean;
1320
- lastPointerDownWith: import("../element/types").PointerType;
1321
- selectedElementIds: Readonly<{
1322
- [id: string]: true;
1323
- }>;
1324
- previousSelectedElementIds: {
1325
- [id: string]: true;
1326
- };
1327
- selectedElementsAreBeingDragged: boolean;
1328
- shouldCacheIgnoreZoom: boolean;
1329
- toast: {
1330
- message: string;
1331
- closable?: boolean | undefined;
1332
- duration?: number | undefined;
1333
- } | null;
1334
- zenModeEnabled: boolean;
1335
- theme: Theme;
1336
- gridSize: number | null;
1337
- previousGridSize: number | null;
1338
- viewModeEnabled: boolean;
1339
- selectedGroupIds: {
1340
- [groupId: string]: boolean;
1341
- };
1342
- editingGroupId: string | null;
1343
- width: number;
1344
- height: number;
1345
- offsetTop: number;
1346
- offsetLeft: number;
1347
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1348
- collaborators: Map<string, import("../types").Collaborator>;
1349
- showStats: boolean;
1350
- currentChartType: import("../element/types").ChartType;
1351
- pasteDialog: {
1352
- shown: false;
1353
- data: null;
1354
- } | {
1355
- shown: true;
1356
- data: import("../charts").Spreadsheet;
1357
- };
1358
- pendingImageElementId: string | null;
1359
- showHyperlinkPopup: false | "editor" | "info";
1360
- linkOpacity: number;
1361
- trayModeEnabled: boolean;
1362
- colorPalette?: {
1363
- canvasBackground: import("../colors").ColorPaletteCustom;
1364
- elementBackground: import("../colors").ColorPaletteCustom;
1365
- elementStroke: import("../colors").ColorPaletteCustom;
1366
- topPicks: {
1367
- canvasBackground: [string, string, string, string, string];
1368
- elementStroke: [string, string, string, string, string];
1369
- elementBackground: [string, string, string, string, string];
1370
- };
1371
- } | undefined;
1372
- allowWheelZoom?: boolean | undefined;
1373
- allowPinchZoom?: boolean | undefined;
1374
- pinnedScripts?: string[] | undefined;
1375
- customPens?: any[] | undefined;
1376
- currentStrokeOptions?: any;
1377
- resetCustomPen?: any;
1378
- gridColor: string;
1379
- dynamicStyle: string;
1380
- invertBindingBehaviour: boolean;
1381
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1382
- };
1383
- commitToHistory: false;
1384
- };
1385
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1386
- } & {
1387
- keyTest?: undefined;
1388
- };
1
+ import { Theme } from "../element/types";
2
+ import "../components/ToolIcon.scss";
3
+ export declare const actionChangeProjectName: {
4
+ name: "changeProjectName";
5
+ trackEvent: false;
6
+ perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
7
+ appState: {
8
+ name: any;
9
+ contextMenu: {
10
+ items: import("../components/ContextMenu").ContextMenuItems;
11
+ top: number;
12
+ left: number;
13
+ } | null;
14
+ showWelcomeScreen: boolean;
15
+ isLoading: boolean;
16
+ errorMessage: import("react").ReactNode;
17
+ activeEmbeddable: {
18
+ element: import("../element/types").NonDeletedExcalidrawElement;
19
+ state: "active" | "hover";
20
+ } | null;
21
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
22
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
23
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
24
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
25
+ isBindingEnabled: boolean;
26
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
27
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
28
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
29
+ frameRendering: {
30
+ enabled: boolean;
31
+ name: boolean;
32
+ outline: boolean;
33
+ clip: boolean;
34
+ };
35
+ editingFrame: string | null;
36
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
37
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
38
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
39
+ activeTool: {
40
+ lastActiveTool: import("../types").LastActiveTool;
41
+ locked: boolean;
42
+ } & ({
43
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
44
+ customType: null;
45
+ } | {
46
+ type: "custom";
47
+ customType: string;
48
+ });
49
+ penMode: boolean;
50
+ penDetected: boolean;
51
+ exportBackground: boolean;
52
+ exportEmbedScene: boolean;
53
+ exportWithDarkMode: boolean;
54
+ exportScale: number;
55
+ currentItemStrokeColor: string;
56
+ currentItemBackgroundColor: string;
57
+ currentItemFillStyle: import("../element/types").FillStyle;
58
+ currentItemStrokeWidth: number;
59
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
60
+ currentItemRoughness: number;
61
+ currentItemOpacity: number;
62
+ currentItemFontFamily: number;
63
+ currentItemFontSize: number;
64
+ currentItemTextAlign: string;
65
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
66
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
67
+ currentItemRoundness: import("../element/types").StrokeRoundness;
68
+ viewBackgroundColor: string;
69
+ scrollX: number;
70
+ scrollY: number;
71
+ cursorButton: "up" | "down";
72
+ scrolledOutside: boolean;
73
+ isResizing: boolean;
74
+ isRotating: boolean;
75
+ zoom: Readonly<{
76
+ value: import("../types").NormalizedZoomValue;
77
+ }>;
78
+ openMenu: "canvas" | "shape" | null;
79
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
80
+ openSidebar: {
81
+ name: string;
82
+ tab?: string | undefined;
83
+ } | null;
84
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
85
+ defaultSidebarDockedPreference: boolean;
86
+ lastPointerDownWith: import("../element/types").PointerType;
87
+ selectedElementIds: Readonly<{
88
+ [id: string]: true;
89
+ }>;
90
+ previousSelectedElementIds: {
91
+ [id: string]: true;
92
+ };
93
+ selectedElementsAreBeingDragged: boolean;
94
+ shouldCacheIgnoreZoom: boolean;
95
+ toast: {
96
+ message: string;
97
+ closable?: boolean | undefined;
98
+ duration?: number | undefined;
99
+ } | null;
100
+ zenModeEnabled: boolean;
101
+ theme: Theme;
102
+ gridSize: number | null;
103
+ previousGridSize: number | null;
104
+ viewModeEnabled: boolean;
105
+ selectedGroupIds: {
106
+ [groupId: string]: boolean;
107
+ };
108
+ editingGroupId: string | null;
109
+ width: number;
110
+ height: number;
111
+ offsetTop: number;
112
+ offsetLeft: number;
113
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
114
+ collaborators: Map<string, import("../types").Collaborator>;
115
+ showStats: boolean;
116
+ currentChartType: import("../element/types").ChartType;
117
+ pasteDialog: {
118
+ shown: false;
119
+ data: null;
120
+ } | {
121
+ shown: true;
122
+ data: import("../charts").Spreadsheet;
123
+ };
124
+ pendingImageElementId: string | null;
125
+ showHyperlinkPopup: false | "editor" | "info";
126
+ linkOpacity: number;
127
+ trayModeEnabled: boolean;
128
+ colorPalette?: {
129
+ canvasBackground: import("../colors").ColorPaletteCustom;
130
+ elementBackground: import("../colors").ColorPaletteCustom;
131
+ elementStroke: import("../colors").ColorPaletteCustom;
132
+ topPicks: {
133
+ canvasBackground: [string, string, string, string, string];
134
+ elementStroke: [string, string, string, string, string];
135
+ elementBackground: [string, string, string, string, string];
136
+ };
137
+ } | undefined;
138
+ allowWheelZoom?: boolean | undefined;
139
+ allowPinchZoom?: boolean | undefined;
140
+ pinnedScripts?: string[] | undefined;
141
+ customPens?: any[] | undefined;
142
+ currentStrokeOptions?: any;
143
+ resetCustomPen?: any;
144
+ gridColor: {
145
+ Bold: string;
146
+ Regular: string;
147
+ };
148
+ dynamicStyle: string;
149
+ invertBindingBehaviour: boolean;
150
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
151
+ };
152
+ commitToHistory: false;
153
+ };
154
+ PanelComponent: ({ appState, updateData, appProps, data }: import("./types").PanelComponentProps) => JSX.Element;
155
+ } & {
156
+ keyTest?: undefined;
157
+ };
158
+ export declare const actionChangeExportScale: {
159
+ name: "changeExportScale";
160
+ trackEvent: {
161
+ category: "export";
162
+ action: string;
163
+ };
164
+ perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
165
+ appState: {
166
+ exportScale: any;
167
+ contextMenu: {
168
+ items: import("../components/ContextMenu").ContextMenuItems;
169
+ top: number;
170
+ left: number;
171
+ } | null;
172
+ showWelcomeScreen: boolean;
173
+ isLoading: boolean;
174
+ errorMessage: import("react").ReactNode;
175
+ activeEmbeddable: {
176
+ element: import("../element/types").NonDeletedExcalidrawElement;
177
+ state: "active" | "hover";
178
+ } | null;
179
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
180
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
181
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
182
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
183
+ isBindingEnabled: boolean;
184
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
185
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
186
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
187
+ frameRendering: {
188
+ enabled: boolean;
189
+ name: boolean;
190
+ outline: boolean;
191
+ clip: boolean;
192
+ };
193
+ editingFrame: string | null;
194
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
195
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
196
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
197
+ activeTool: {
198
+ lastActiveTool: import("../types").LastActiveTool;
199
+ locked: boolean;
200
+ } & ({
201
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
202
+ customType: null;
203
+ } | {
204
+ type: "custom";
205
+ customType: string;
206
+ });
207
+ penMode: boolean;
208
+ penDetected: boolean;
209
+ exportBackground: boolean;
210
+ exportEmbedScene: boolean;
211
+ exportWithDarkMode: boolean;
212
+ currentItemStrokeColor: string;
213
+ currentItemBackgroundColor: string;
214
+ currentItemFillStyle: import("../element/types").FillStyle;
215
+ currentItemStrokeWidth: number;
216
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
217
+ currentItemRoughness: number;
218
+ currentItemOpacity: number;
219
+ currentItemFontFamily: number;
220
+ currentItemFontSize: number;
221
+ currentItemTextAlign: string;
222
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
223
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
224
+ currentItemRoundness: import("../element/types").StrokeRoundness;
225
+ viewBackgroundColor: string;
226
+ scrollX: number;
227
+ scrollY: number;
228
+ cursorButton: "up" | "down";
229
+ scrolledOutside: boolean;
230
+ name: string;
231
+ isResizing: boolean;
232
+ isRotating: boolean;
233
+ zoom: Readonly<{
234
+ value: import("../types").NormalizedZoomValue;
235
+ }>;
236
+ openMenu: "canvas" | "shape" | null;
237
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
238
+ openSidebar: {
239
+ name: string;
240
+ tab?: string | undefined;
241
+ } | null;
242
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
243
+ defaultSidebarDockedPreference: boolean;
244
+ lastPointerDownWith: import("../element/types").PointerType;
245
+ selectedElementIds: Readonly<{
246
+ [id: string]: true;
247
+ }>;
248
+ previousSelectedElementIds: {
249
+ [id: string]: true;
250
+ };
251
+ selectedElementsAreBeingDragged: boolean;
252
+ shouldCacheIgnoreZoom: boolean;
253
+ toast: {
254
+ message: string;
255
+ closable?: boolean | undefined;
256
+ duration?: number | undefined;
257
+ } | null;
258
+ zenModeEnabled: boolean;
259
+ theme: Theme;
260
+ gridSize: number | null;
261
+ previousGridSize: number | null;
262
+ viewModeEnabled: boolean;
263
+ selectedGroupIds: {
264
+ [groupId: string]: boolean;
265
+ };
266
+ editingGroupId: string | null;
267
+ width: number;
268
+ height: number;
269
+ offsetTop: number;
270
+ offsetLeft: number;
271
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
272
+ collaborators: Map<string, import("../types").Collaborator>;
273
+ showStats: boolean;
274
+ currentChartType: import("../element/types").ChartType;
275
+ pasteDialog: {
276
+ shown: false;
277
+ data: null;
278
+ } | {
279
+ shown: true;
280
+ data: import("../charts").Spreadsheet;
281
+ };
282
+ pendingImageElementId: string | null;
283
+ showHyperlinkPopup: false | "editor" | "info";
284
+ linkOpacity: number;
285
+ trayModeEnabled: boolean;
286
+ colorPalette?: {
287
+ canvasBackground: import("../colors").ColorPaletteCustom;
288
+ elementBackground: import("../colors").ColorPaletteCustom;
289
+ elementStroke: import("../colors").ColorPaletteCustom;
290
+ topPicks: {
291
+ canvasBackground: [string, string, string, string, string];
292
+ elementStroke: [string, string, string, string, string];
293
+ elementBackground: [string, string, string, string, string];
294
+ };
295
+ } | undefined;
296
+ allowWheelZoom?: boolean | undefined;
297
+ allowPinchZoom?: boolean | undefined;
298
+ pinnedScripts?: string[] | undefined;
299
+ customPens?: any[] | undefined;
300
+ currentStrokeOptions?: any;
301
+ resetCustomPen?: any;
302
+ gridColor: {
303
+ Bold: string;
304
+ Regular: string;
305
+ };
306
+ dynamicStyle: string;
307
+ invertBindingBehaviour: boolean;
308
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
309
+ };
310
+ commitToHistory: false;
311
+ };
312
+ PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
313
+ } & {
314
+ keyTest?: undefined;
315
+ };
316
+ export declare const actionChangeExportBackground: {
317
+ name: "changeExportBackground";
318
+ trackEvent: {
319
+ category: "export";
320
+ action: string;
321
+ };
322
+ perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
323
+ appState: {
324
+ exportBackground: any;
325
+ contextMenu: {
326
+ items: import("../components/ContextMenu").ContextMenuItems;
327
+ top: number;
328
+ left: number;
329
+ } | null;
330
+ showWelcomeScreen: boolean;
331
+ isLoading: boolean;
332
+ errorMessage: import("react").ReactNode;
333
+ activeEmbeddable: {
334
+ element: import("../element/types").NonDeletedExcalidrawElement;
335
+ state: "active" | "hover";
336
+ } | null;
337
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
338
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
339
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
340
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
341
+ isBindingEnabled: boolean;
342
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
343
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
344
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
345
+ frameRendering: {
346
+ enabled: boolean;
347
+ name: boolean;
348
+ outline: boolean;
349
+ clip: boolean;
350
+ };
351
+ editingFrame: string | null;
352
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
353
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
354
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
355
+ activeTool: {
356
+ lastActiveTool: import("../types").LastActiveTool;
357
+ locked: boolean;
358
+ } & ({
359
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
360
+ customType: null;
361
+ } | {
362
+ type: "custom";
363
+ customType: string;
364
+ });
365
+ penMode: boolean;
366
+ penDetected: boolean;
367
+ exportEmbedScene: boolean;
368
+ exportWithDarkMode: boolean;
369
+ exportScale: number;
370
+ currentItemStrokeColor: string;
371
+ currentItemBackgroundColor: string;
372
+ currentItemFillStyle: import("../element/types").FillStyle;
373
+ currentItemStrokeWidth: number;
374
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
375
+ currentItemRoughness: number;
376
+ currentItemOpacity: number;
377
+ currentItemFontFamily: number;
378
+ currentItemFontSize: number;
379
+ currentItemTextAlign: string;
380
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
381
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
382
+ currentItemRoundness: import("../element/types").StrokeRoundness;
383
+ viewBackgroundColor: string;
384
+ scrollX: number;
385
+ scrollY: number;
386
+ cursorButton: "up" | "down";
387
+ scrolledOutside: boolean;
388
+ name: string;
389
+ isResizing: boolean;
390
+ isRotating: boolean;
391
+ zoom: Readonly<{
392
+ value: import("../types").NormalizedZoomValue;
393
+ }>;
394
+ openMenu: "canvas" | "shape" | null;
395
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
396
+ openSidebar: {
397
+ name: string;
398
+ tab?: string | undefined;
399
+ } | null;
400
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
401
+ defaultSidebarDockedPreference: boolean;
402
+ lastPointerDownWith: import("../element/types").PointerType;
403
+ selectedElementIds: Readonly<{
404
+ [id: string]: true;
405
+ }>;
406
+ previousSelectedElementIds: {
407
+ [id: string]: true;
408
+ };
409
+ selectedElementsAreBeingDragged: boolean;
410
+ shouldCacheIgnoreZoom: boolean;
411
+ toast: {
412
+ message: string;
413
+ closable?: boolean | undefined;
414
+ duration?: number | undefined;
415
+ } | null;
416
+ zenModeEnabled: boolean;
417
+ theme: Theme;
418
+ gridSize: number | null;
419
+ previousGridSize: number | null;
420
+ viewModeEnabled: boolean;
421
+ selectedGroupIds: {
422
+ [groupId: string]: boolean;
423
+ };
424
+ editingGroupId: string | null;
425
+ width: number;
426
+ height: number;
427
+ offsetTop: number;
428
+ offsetLeft: number;
429
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
430
+ collaborators: Map<string, import("../types").Collaborator>;
431
+ showStats: boolean;
432
+ currentChartType: import("../element/types").ChartType;
433
+ pasteDialog: {
434
+ shown: false;
435
+ data: null;
436
+ } | {
437
+ shown: true;
438
+ data: import("../charts").Spreadsheet;
439
+ };
440
+ pendingImageElementId: string | null;
441
+ showHyperlinkPopup: false | "editor" | "info";
442
+ linkOpacity: number;
443
+ trayModeEnabled: boolean;
444
+ colorPalette?: {
445
+ canvasBackground: import("../colors").ColorPaletteCustom;
446
+ elementBackground: import("../colors").ColorPaletteCustom;
447
+ elementStroke: import("../colors").ColorPaletteCustom;
448
+ topPicks: {
449
+ canvasBackground: [string, string, string, string, string];
450
+ elementStroke: [string, string, string, string, string];
451
+ elementBackground: [string, string, string, string, string];
452
+ };
453
+ } | undefined;
454
+ allowWheelZoom?: boolean | undefined;
455
+ allowPinchZoom?: boolean | undefined;
456
+ pinnedScripts?: string[] | undefined;
457
+ customPens?: any[] | undefined;
458
+ currentStrokeOptions?: any;
459
+ resetCustomPen?: any;
460
+ gridColor: {
461
+ Bold: string;
462
+ Regular: string;
463
+ };
464
+ dynamicStyle: string;
465
+ invertBindingBehaviour: boolean;
466
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
467
+ };
468
+ commitToHistory: false;
469
+ };
470
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
471
+ } & {
472
+ keyTest?: undefined;
473
+ };
474
+ export declare const actionChangeExportEmbedScene: {
475
+ name: "changeExportEmbedScene";
476
+ trackEvent: {
477
+ category: "export";
478
+ action: string;
479
+ };
480
+ perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
481
+ appState: {
482
+ exportEmbedScene: any;
483
+ contextMenu: {
484
+ items: import("../components/ContextMenu").ContextMenuItems;
485
+ top: number;
486
+ left: number;
487
+ } | null;
488
+ showWelcomeScreen: boolean;
489
+ isLoading: boolean;
490
+ errorMessage: import("react").ReactNode;
491
+ activeEmbeddable: {
492
+ element: import("../element/types").NonDeletedExcalidrawElement;
493
+ state: "active" | "hover";
494
+ } | null;
495
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
496
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
497
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
498
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
499
+ isBindingEnabled: boolean;
500
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
501
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
502
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
503
+ frameRendering: {
504
+ enabled: boolean;
505
+ name: boolean;
506
+ outline: boolean;
507
+ clip: boolean;
508
+ };
509
+ editingFrame: string | null;
510
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
511
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
512
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
513
+ activeTool: {
514
+ lastActiveTool: import("../types").LastActiveTool;
515
+ locked: boolean;
516
+ } & ({
517
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
518
+ customType: null;
519
+ } | {
520
+ type: "custom";
521
+ customType: string;
522
+ });
523
+ penMode: boolean;
524
+ penDetected: boolean;
525
+ exportBackground: boolean;
526
+ exportWithDarkMode: boolean;
527
+ exportScale: number;
528
+ currentItemStrokeColor: string;
529
+ currentItemBackgroundColor: string;
530
+ currentItemFillStyle: import("../element/types").FillStyle;
531
+ currentItemStrokeWidth: number;
532
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
533
+ currentItemRoughness: number;
534
+ currentItemOpacity: number;
535
+ currentItemFontFamily: number;
536
+ currentItemFontSize: number;
537
+ currentItemTextAlign: string;
538
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
539
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
540
+ currentItemRoundness: import("../element/types").StrokeRoundness;
541
+ viewBackgroundColor: string;
542
+ scrollX: number;
543
+ scrollY: number;
544
+ cursorButton: "up" | "down";
545
+ scrolledOutside: boolean;
546
+ name: string;
547
+ isResizing: boolean;
548
+ isRotating: boolean;
549
+ zoom: Readonly<{
550
+ value: import("../types").NormalizedZoomValue;
551
+ }>;
552
+ openMenu: "canvas" | "shape" | null;
553
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
554
+ openSidebar: {
555
+ name: string;
556
+ tab?: string | undefined;
557
+ } | null;
558
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
559
+ defaultSidebarDockedPreference: boolean;
560
+ lastPointerDownWith: import("../element/types").PointerType;
561
+ selectedElementIds: Readonly<{
562
+ [id: string]: true;
563
+ }>;
564
+ previousSelectedElementIds: {
565
+ [id: string]: true;
566
+ };
567
+ selectedElementsAreBeingDragged: boolean;
568
+ shouldCacheIgnoreZoom: boolean;
569
+ toast: {
570
+ message: string;
571
+ closable?: boolean | undefined;
572
+ duration?: number | undefined;
573
+ } | null;
574
+ zenModeEnabled: boolean;
575
+ theme: Theme;
576
+ gridSize: number | null;
577
+ previousGridSize: number | null;
578
+ viewModeEnabled: boolean;
579
+ selectedGroupIds: {
580
+ [groupId: string]: boolean;
581
+ };
582
+ editingGroupId: string | null;
583
+ width: number;
584
+ height: number;
585
+ offsetTop: number;
586
+ offsetLeft: number;
587
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
588
+ collaborators: Map<string, import("../types").Collaborator>;
589
+ showStats: boolean;
590
+ currentChartType: import("../element/types").ChartType;
591
+ pasteDialog: {
592
+ shown: false;
593
+ data: null;
594
+ } | {
595
+ shown: true;
596
+ data: import("../charts").Spreadsheet;
597
+ };
598
+ pendingImageElementId: string | null;
599
+ showHyperlinkPopup: false | "editor" | "info";
600
+ linkOpacity: number;
601
+ trayModeEnabled: boolean;
602
+ colorPalette?: {
603
+ canvasBackground: import("../colors").ColorPaletteCustom;
604
+ elementBackground: import("../colors").ColorPaletteCustom;
605
+ elementStroke: import("../colors").ColorPaletteCustom;
606
+ topPicks: {
607
+ canvasBackground: [string, string, string, string, string];
608
+ elementStroke: [string, string, string, string, string];
609
+ elementBackground: [string, string, string, string, string];
610
+ };
611
+ } | undefined;
612
+ allowWheelZoom?: boolean | undefined;
613
+ allowPinchZoom?: boolean | undefined;
614
+ pinnedScripts?: string[] | undefined;
615
+ customPens?: any[] | undefined;
616
+ currentStrokeOptions?: any;
617
+ resetCustomPen?: any;
618
+ gridColor: {
619
+ Bold: string;
620
+ Regular: string;
621
+ };
622
+ dynamicStyle: string;
623
+ invertBindingBehaviour: boolean;
624
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
625
+ };
626
+ commitToHistory: false;
627
+ };
628
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
629
+ } & {
630
+ keyTest?: undefined;
631
+ };
632
+ export declare const actionSaveToActiveFile: {
633
+ name: "saveToActiveFile";
634
+ trackEvent: {
635
+ category: "export";
636
+ };
637
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
638
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
639
+ commitToHistory: false;
640
+ appState: {
641
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
642
+ toast: {
643
+ message: string;
644
+ } | null;
645
+ contextMenu: {
646
+ items: import("../components/ContextMenu").ContextMenuItems;
647
+ top: number;
648
+ left: number;
649
+ } | null;
650
+ showWelcomeScreen: boolean;
651
+ isLoading: boolean;
652
+ errorMessage: import("react").ReactNode;
653
+ activeEmbeddable: {
654
+ element: import("../element/types").NonDeletedExcalidrawElement;
655
+ state: "active" | "hover";
656
+ } | null;
657
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
658
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
659
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
660
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
661
+ isBindingEnabled: boolean;
662
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
663
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
664
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
665
+ frameRendering: {
666
+ enabled: boolean;
667
+ name: boolean;
668
+ outline: boolean;
669
+ clip: boolean;
670
+ };
671
+ editingFrame: string | null;
672
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
673
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
674
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
675
+ activeTool: {
676
+ lastActiveTool: import("../types").LastActiveTool;
677
+ locked: boolean;
678
+ } & ({
679
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
680
+ customType: null;
681
+ } | {
682
+ type: "custom";
683
+ customType: string;
684
+ });
685
+ penMode: boolean;
686
+ penDetected: boolean;
687
+ exportBackground: boolean;
688
+ exportEmbedScene: boolean;
689
+ exportWithDarkMode: boolean;
690
+ exportScale: number;
691
+ currentItemStrokeColor: string;
692
+ currentItemBackgroundColor: string;
693
+ currentItemFillStyle: import("../element/types").FillStyle;
694
+ currentItemStrokeWidth: number;
695
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
696
+ currentItemRoughness: number;
697
+ currentItemOpacity: number;
698
+ currentItemFontFamily: number;
699
+ currentItemFontSize: number;
700
+ currentItemTextAlign: string;
701
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
702
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
703
+ currentItemRoundness: import("../element/types").StrokeRoundness;
704
+ viewBackgroundColor: string;
705
+ scrollX: number;
706
+ scrollY: number;
707
+ cursorButton: "up" | "down";
708
+ scrolledOutside: boolean;
709
+ name: string;
710
+ isResizing: boolean;
711
+ isRotating: boolean;
712
+ zoom: Readonly<{
713
+ value: import("../types").NormalizedZoomValue;
714
+ }>;
715
+ openMenu: "canvas" | "shape" | null;
716
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
717
+ openSidebar: {
718
+ name: string;
719
+ tab?: string | undefined;
720
+ } | null;
721
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
722
+ defaultSidebarDockedPreference: boolean;
723
+ lastPointerDownWith: import("../element/types").PointerType;
724
+ selectedElementIds: Readonly<{
725
+ [id: string]: true;
726
+ }>;
727
+ previousSelectedElementIds: {
728
+ [id: string]: true;
729
+ };
730
+ selectedElementsAreBeingDragged: boolean;
731
+ shouldCacheIgnoreZoom: boolean;
732
+ zenModeEnabled: boolean;
733
+ theme: Theme;
734
+ gridSize: number | null;
735
+ previousGridSize: number | null;
736
+ viewModeEnabled: boolean;
737
+ selectedGroupIds: {
738
+ [groupId: string]: boolean;
739
+ };
740
+ editingGroupId: string | null;
741
+ width: number;
742
+ height: number;
743
+ offsetTop: number;
744
+ offsetLeft: number;
745
+ collaborators: Map<string, import("../types").Collaborator>;
746
+ showStats: boolean;
747
+ currentChartType: import("../element/types").ChartType;
748
+ pasteDialog: {
749
+ shown: false;
750
+ data: null;
751
+ } | {
752
+ shown: true;
753
+ data: import("../charts").Spreadsheet;
754
+ };
755
+ pendingImageElementId: string | null;
756
+ showHyperlinkPopup: false | "editor" | "info";
757
+ linkOpacity: number;
758
+ trayModeEnabled: boolean;
759
+ colorPalette?: {
760
+ canvasBackground: import("../colors").ColorPaletteCustom;
761
+ elementBackground: import("../colors").ColorPaletteCustom;
762
+ elementStroke: import("../colors").ColorPaletteCustom;
763
+ topPicks: {
764
+ canvasBackground: [string, string, string, string, string];
765
+ elementStroke: [string, string, string, string, string];
766
+ elementBackground: [string, string, string, string, string];
767
+ };
768
+ } | undefined;
769
+ allowWheelZoom?: boolean | undefined;
770
+ allowPinchZoom?: boolean | undefined;
771
+ pinnedScripts?: string[] | undefined;
772
+ customPens?: any[] | undefined;
773
+ currentStrokeOptions?: any;
774
+ resetCustomPen?: any;
775
+ gridColor: {
776
+ Bold: string;
777
+ Regular: string;
778
+ };
779
+ dynamicStyle: string;
780
+ invertBindingBehaviour: boolean;
781
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
782
+ };
783
+ } | {
784
+ commitToHistory: false;
785
+ appState?: undefined;
786
+ }>;
787
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
788
+ } & {
789
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
790
+ };
791
+ export declare const actionSaveFileToDisk: {
792
+ name: "saveFileToDisk";
793
+ viewMode: true;
794
+ trackEvent: {
795
+ category: "export";
796
+ };
797
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
798
+ commitToHistory: false;
799
+ appState: {
800
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
801
+ contextMenu: {
802
+ items: import("../components/ContextMenu").ContextMenuItems;
803
+ top: number;
804
+ left: number;
805
+ } | null;
806
+ showWelcomeScreen: boolean;
807
+ isLoading: boolean;
808
+ errorMessage: import("react").ReactNode;
809
+ activeEmbeddable: {
810
+ element: import("../element/types").NonDeletedExcalidrawElement;
811
+ state: "active" | "hover";
812
+ } | null;
813
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
814
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
815
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
816
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
817
+ isBindingEnabled: boolean;
818
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
819
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
820
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
821
+ frameRendering: {
822
+ enabled: boolean;
823
+ name: boolean;
824
+ outline: boolean;
825
+ clip: boolean;
826
+ };
827
+ editingFrame: string | null;
828
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
829
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
830
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
831
+ activeTool: {
832
+ lastActiveTool: import("../types").LastActiveTool;
833
+ locked: boolean;
834
+ } & ({
835
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
836
+ customType: null;
837
+ } | {
838
+ type: "custom";
839
+ customType: string;
840
+ });
841
+ penMode: boolean;
842
+ penDetected: boolean;
843
+ exportBackground: boolean;
844
+ exportEmbedScene: boolean;
845
+ exportWithDarkMode: boolean;
846
+ exportScale: number;
847
+ currentItemStrokeColor: string;
848
+ currentItemBackgroundColor: string;
849
+ currentItemFillStyle: import("../element/types").FillStyle;
850
+ currentItemStrokeWidth: number;
851
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
852
+ currentItemRoughness: number;
853
+ currentItemOpacity: number;
854
+ currentItemFontFamily: number;
855
+ currentItemFontSize: number;
856
+ currentItemTextAlign: string;
857
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
858
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
859
+ currentItemRoundness: import("../element/types").StrokeRoundness;
860
+ viewBackgroundColor: string;
861
+ scrollX: number;
862
+ scrollY: number;
863
+ cursorButton: "up" | "down";
864
+ scrolledOutside: boolean;
865
+ name: string;
866
+ isResizing: boolean;
867
+ isRotating: boolean;
868
+ zoom: Readonly<{
869
+ value: import("../types").NormalizedZoomValue;
870
+ }>;
871
+ openMenu: "canvas" | "shape" | null;
872
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
873
+ openSidebar: {
874
+ name: string;
875
+ tab?: string | undefined;
876
+ } | null;
877
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
878
+ defaultSidebarDockedPreference: boolean;
879
+ lastPointerDownWith: import("../element/types").PointerType;
880
+ selectedElementIds: Readonly<{
881
+ [id: string]: true;
882
+ }>;
883
+ previousSelectedElementIds: {
884
+ [id: string]: true;
885
+ };
886
+ selectedElementsAreBeingDragged: boolean;
887
+ shouldCacheIgnoreZoom: boolean;
888
+ toast: {
889
+ message: string;
890
+ closable?: boolean | undefined;
891
+ duration?: number | undefined;
892
+ } | null;
893
+ zenModeEnabled: boolean;
894
+ theme: Theme;
895
+ gridSize: number | null;
896
+ previousGridSize: number | null;
897
+ viewModeEnabled: boolean;
898
+ selectedGroupIds: {
899
+ [groupId: string]: boolean;
900
+ };
901
+ editingGroupId: string | null;
902
+ width: number;
903
+ height: number;
904
+ offsetTop: number;
905
+ offsetLeft: number;
906
+ collaborators: Map<string, import("../types").Collaborator>;
907
+ showStats: boolean;
908
+ currentChartType: import("../element/types").ChartType;
909
+ pasteDialog: {
910
+ shown: false;
911
+ data: null;
912
+ } | {
913
+ shown: true;
914
+ data: import("../charts").Spreadsheet;
915
+ };
916
+ pendingImageElementId: string | null;
917
+ showHyperlinkPopup: false | "editor" | "info";
918
+ linkOpacity: number;
919
+ trayModeEnabled: boolean;
920
+ colorPalette?: {
921
+ canvasBackground: import("../colors").ColorPaletteCustom;
922
+ elementBackground: import("../colors").ColorPaletteCustom;
923
+ elementStroke: import("../colors").ColorPaletteCustom;
924
+ topPicks: {
925
+ canvasBackground: [string, string, string, string, string];
926
+ elementStroke: [string, string, string, string, string];
927
+ elementBackground: [string, string, string, string, string];
928
+ };
929
+ } | undefined;
930
+ allowWheelZoom?: boolean | undefined;
931
+ allowPinchZoom?: boolean | undefined;
932
+ pinnedScripts?: string[] | undefined;
933
+ customPens?: any[] | undefined;
934
+ currentStrokeOptions?: any;
935
+ resetCustomPen?: any;
936
+ gridColor: {
937
+ Bold: string;
938
+ Regular: string;
939
+ };
940
+ dynamicStyle: string;
941
+ invertBindingBehaviour: boolean;
942
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
943
+ };
944
+ } | {
945
+ commitToHistory: false;
946
+ appState?: undefined;
947
+ }>;
948
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
949
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
950
+ } & {
951
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
952
+ };
953
+ export declare const actionLoadScene: {
954
+ name: "loadScene";
955
+ trackEvent: {
956
+ category: "export";
957
+ };
958
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
959
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
960
+ elements: import("../element/types").ExcalidrawElement[];
961
+ appState: {
962
+ theme: Theme;
963
+ name: string;
964
+ activeTool: {
965
+ lastActiveTool: import("../types").LastActiveTool;
966
+ locked: boolean;
967
+ } & ({
968
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
969
+ customType: null;
970
+ } | {
971
+ type: "custom";
972
+ customType: string;
973
+ });
974
+ toast: {
975
+ message: string;
976
+ closable?: boolean | undefined;
977
+ duration?: number | undefined;
978
+ } | null;
979
+ collaborators: Map<string, import("../types").Collaborator>;
980
+ penMode: boolean;
981
+ contextMenu: {
982
+ items: import("../components/ContextMenu").ContextMenuItems;
983
+ top: number;
984
+ left: number;
985
+ } | null;
986
+ showWelcomeScreen: boolean;
987
+ isLoading: boolean;
988
+ errorMessage: import("react").ReactNode;
989
+ activeEmbeddable: {
990
+ element: import("../element/types").NonDeletedExcalidrawElement;
991
+ state: "active" | "hover";
992
+ } | null;
993
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
994
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
995
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
996
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
997
+ isBindingEnabled: boolean;
998
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
999
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1000
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1001
+ frameRendering: {
1002
+ enabled: boolean;
1003
+ name: boolean;
1004
+ outline: boolean;
1005
+ clip: boolean;
1006
+ };
1007
+ editingFrame: string | null;
1008
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1009
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1010
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1011
+ penDetected: boolean;
1012
+ exportBackground: boolean;
1013
+ exportEmbedScene: boolean;
1014
+ exportWithDarkMode: boolean;
1015
+ exportScale: number;
1016
+ currentItemStrokeColor: string;
1017
+ currentItemBackgroundColor: string;
1018
+ currentItemFillStyle: import("../element/types").FillStyle;
1019
+ currentItemStrokeWidth: number;
1020
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1021
+ currentItemRoughness: number;
1022
+ currentItemOpacity: number;
1023
+ currentItemFontFamily: number;
1024
+ currentItemFontSize: number;
1025
+ currentItemTextAlign: string;
1026
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1027
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1028
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1029
+ viewBackgroundColor: string;
1030
+ scrollX: number;
1031
+ scrollY: number;
1032
+ cursorButton: "up" | "down";
1033
+ scrolledOutside: boolean;
1034
+ isResizing: boolean;
1035
+ isRotating: boolean;
1036
+ zoom: Readonly<{
1037
+ value: import("../types").NormalizedZoomValue;
1038
+ }>;
1039
+ openMenu: "canvas" | "shape" | null;
1040
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1041
+ openSidebar: {
1042
+ name: string;
1043
+ tab?: string | undefined;
1044
+ } | null;
1045
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1046
+ defaultSidebarDockedPreference: boolean;
1047
+ lastPointerDownWith: import("../element/types").PointerType;
1048
+ selectedElementIds: Readonly<{
1049
+ [id: string]: true;
1050
+ }>;
1051
+ previousSelectedElementIds: {
1052
+ [id: string]: true;
1053
+ };
1054
+ selectedElementsAreBeingDragged: boolean;
1055
+ shouldCacheIgnoreZoom: boolean;
1056
+ zenModeEnabled: boolean;
1057
+ gridSize: number | null;
1058
+ previousGridSize: number | null;
1059
+ viewModeEnabled: boolean;
1060
+ selectedGroupIds: {
1061
+ [groupId: string]: boolean;
1062
+ };
1063
+ editingGroupId: string | null;
1064
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1065
+ showStats: boolean;
1066
+ currentChartType: import("../element/types").ChartType;
1067
+ pasteDialog: {
1068
+ shown: false;
1069
+ data: null;
1070
+ } | {
1071
+ shown: true;
1072
+ data: import("../charts").Spreadsheet;
1073
+ };
1074
+ pendingImageElementId: string | null;
1075
+ showHyperlinkPopup: false | "editor" | "info";
1076
+ linkOpacity: number;
1077
+ trayModeEnabled: boolean;
1078
+ colorPalette?: {
1079
+ canvasBackground: import("../colors").ColorPaletteCustom;
1080
+ elementBackground: import("../colors").ColorPaletteCustom;
1081
+ elementStroke: import("../colors").ColorPaletteCustom;
1082
+ topPicks: {
1083
+ canvasBackground: [string, string, string, string, string];
1084
+ elementStroke: [string, string, string, string, string];
1085
+ elementBackground: [string, string, string, string, string];
1086
+ };
1087
+ } | undefined;
1088
+ allowWheelZoom?: boolean | undefined;
1089
+ allowPinchZoom?: boolean | undefined;
1090
+ pinnedScripts?: string[] | undefined;
1091
+ customPens?: any[] | undefined;
1092
+ currentStrokeOptions?: any;
1093
+ resetCustomPen?: any;
1094
+ gridColor: {
1095
+ Bold: string;
1096
+ Regular: string;
1097
+ };
1098
+ dynamicStyle: string;
1099
+ invertBindingBehaviour: boolean;
1100
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1101
+ };
1102
+ files: import("../types").BinaryFiles;
1103
+ commitToHistory: true;
1104
+ } | {
1105
+ elements: readonly import("../element/types").ExcalidrawElement[];
1106
+ appState: {
1107
+ errorMessage: any;
1108
+ contextMenu: {
1109
+ items: import("../components/ContextMenu").ContextMenuItems;
1110
+ top: number;
1111
+ left: number;
1112
+ } | null;
1113
+ showWelcomeScreen: boolean;
1114
+ isLoading: boolean;
1115
+ activeEmbeddable: {
1116
+ element: import("../element/types").NonDeletedExcalidrawElement;
1117
+ state: "active" | "hover";
1118
+ } | null;
1119
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1120
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1121
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1122
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1123
+ isBindingEnabled: boolean;
1124
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1125
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1126
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1127
+ frameRendering: {
1128
+ enabled: boolean;
1129
+ name: boolean;
1130
+ outline: boolean;
1131
+ clip: boolean;
1132
+ };
1133
+ editingFrame: string | null;
1134
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1135
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1136
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1137
+ activeTool: {
1138
+ lastActiveTool: import("../types").LastActiveTool;
1139
+ locked: boolean;
1140
+ } & ({
1141
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1142
+ customType: null;
1143
+ } | {
1144
+ type: "custom";
1145
+ customType: string;
1146
+ });
1147
+ penMode: boolean;
1148
+ penDetected: boolean;
1149
+ exportBackground: boolean;
1150
+ exportEmbedScene: boolean;
1151
+ exportWithDarkMode: boolean;
1152
+ exportScale: number;
1153
+ currentItemStrokeColor: string;
1154
+ currentItemBackgroundColor: string;
1155
+ currentItemFillStyle: import("../element/types").FillStyle;
1156
+ currentItemStrokeWidth: number;
1157
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1158
+ currentItemRoughness: number;
1159
+ currentItemOpacity: number;
1160
+ currentItemFontFamily: number;
1161
+ currentItemFontSize: number;
1162
+ currentItemTextAlign: string;
1163
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1164
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1165
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1166
+ viewBackgroundColor: string;
1167
+ scrollX: number;
1168
+ scrollY: number;
1169
+ cursorButton: "up" | "down";
1170
+ scrolledOutside: boolean;
1171
+ name: string;
1172
+ isResizing: boolean;
1173
+ isRotating: boolean;
1174
+ zoom: Readonly<{
1175
+ value: import("../types").NormalizedZoomValue;
1176
+ }>;
1177
+ openMenu: "canvas" | "shape" | null;
1178
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1179
+ openSidebar: {
1180
+ name: string;
1181
+ tab?: string | undefined;
1182
+ } | null;
1183
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1184
+ defaultSidebarDockedPreference: boolean;
1185
+ lastPointerDownWith: import("../element/types").PointerType;
1186
+ selectedElementIds: Readonly<{
1187
+ [id: string]: true;
1188
+ }>;
1189
+ previousSelectedElementIds: {
1190
+ [id: string]: true;
1191
+ };
1192
+ selectedElementsAreBeingDragged: boolean;
1193
+ shouldCacheIgnoreZoom: boolean;
1194
+ toast: {
1195
+ message: string;
1196
+ closable?: boolean | undefined;
1197
+ duration?: number | undefined;
1198
+ } | null;
1199
+ zenModeEnabled: boolean;
1200
+ theme: Theme;
1201
+ gridSize: number | null;
1202
+ previousGridSize: number | null;
1203
+ viewModeEnabled: boolean;
1204
+ selectedGroupIds: {
1205
+ [groupId: string]: boolean;
1206
+ };
1207
+ editingGroupId: string | null;
1208
+ width: number;
1209
+ height: number;
1210
+ offsetTop: number;
1211
+ offsetLeft: number;
1212
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1213
+ collaborators: Map<string, import("../types").Collaborator>;
1214
+ showStats: boolean;
1215
+ currentChartType: import("../element/types").ChartType;
1216
+ pasteDialog: {
1217
+ shown: false;
1218
+ data: null;
1219
+ } | {
1220
+ shown: true;
1221
+ data: import("../charts").Spreadsheet;
1222
+ };
1223
+ pendingImageElementId: string | null;
1224
+ showHyperlinkPopup: false | "editor" | "info";
1225
+ linkOpacity: number;
1226
+ trayModeEnabled: boolean;
1227
+ colorPalette?: {
1228
+ canvasBackground: import("../colors").ColorPaletteCustom;
1229
+ elementBackground: import("../colors").ColorPaletteCustom;
1230
+ elementStroke: import("../colors").ColorPaletteCustom;
1231
+ topPicks: {
1232
+ canvasBackground: [string, string, string, string, string];
1233
+ elementStroke: [string, string, string, string, string];
1234
+ elementBackground: [string, string, string, string, string];
1235
+ };
1236
+ } | undefined;
1237
+ allowWheelZoom?: boolean | undefined;
1238
+ allowPinchZoom?: boolean | undefined;
1239
+ pinnedScripts?: string[] | undefined;
1240
+ customPens?: any[] | undefined;
1241
+ currentStrokeOptions?: any;
1242
+ resetCustomPen?: any;
1243
+ gridColor: {
1244
+ Bold: string;
1245
+ Regular: string;
1246
+ };
1247
+ dynamicStyle: string;
1248
+ invertBindingBehaviour: boolean;
1249
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1250
+ };
1251
+ files: import("../types").BinaryFiles;
1252
+ commitToHistory: false;
1253
+ }>;
1254
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1255
+ } & {
1256
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1257
+ };
1258
+ export declare const actionExportWithDarkMode: {
1259
+ name: "exportWithDarkMode";
1260
+ trackEvent: {
1261
+ category: "export";
1262
+ action: string;
1263
+ };
1264
+ perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1265
+ appState: {
1266
+ exportWithDarkMode: any;
1267
+ contextMenu: {
1268
+ items: import("../components/ContextMenu").ContextMenuItems;
1269
+ top: number;
1270
+ left: number;
1271
+ } | null;
1272
+ showWelcomeScreen: boolean;
1273
+ isLoading: boolean;
1274
+ errorMessage: import("react").ReactNode;
1275
+ activeEmbeddable: {
1276
+ element: import("../element/types").NonDeletedExcalidrawElement;
1277
+ state: "active" | "hover";
1278
+ } | null;
1279
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1280
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1281
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1282
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1283
+ isBindingEnabled: boolean;
1284
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1285
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1286
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1287
+ frameRendering: {
1288
+ enabled: boolean;
1289
+ name: boolean;
1290
+ outline: boolean;
1291
+ clip: boolean;
1292
+ };
1293
+ editingFrame: string | null;
1294
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1295
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1296
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1297
+ activeTool: {
1298
+ lastActiveTool: import("../types").LastActiveTool;
1299
+ locked: boolean;
1300
+ } & ({
1301
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1302
+ customType: null;
1303
+ } | {
1304
+ type: "custom";
1305
+ customType: string;
1306
+ });
1307
+ penMode: boolean;
1308
+ penDetected: boolean;
1309
+ exportBackground: boolean;
1310
+ exportEmbedScene: boolean;
1311
+ exportScale: number;
1312
+ currentItemStrokeColor: string;
1313
+ currentItemBackgroundColor: string;
1314
+ currentItemFillStyle: import("../element/types").FillStyle;
1315
+ currentItemStrokeWidth: number;
1316
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1317
+ currentItemRoughness: number;
1318
+ currentItemOpacity: number;
1319
+ currentItemFontFamily: number;
1320
+ currentItemFontSize: number;
1321
+ currentItemTextAlign: string;
1322
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1323
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1324
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1325
+ viewBackgroundColor: string;
1326
+ scrollX: number;
1327
+ scrollY: number;
1328
+ cursorButton: "up" | "down";
1329
+ scrolledOutside: boolean;
1330
+ name: string;
1331
+ isResizing: boolean;
1332
+ isRotating: boolean;
1333
+ zoom: Readonly<{
1334
+ value: import("../types").NormalizedZoomValue;
1335
+ }>;
1336
+ openMenu: "canvas" | "shape" | null;
1337
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
1338
+ openSidebar: {
1339
+ name: string;
1340
+ tab?: string | undefined;
1341
+ } | null;
1342
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1343
+ defaultSidebarDockedPreference: boolean;
1344
+ lastPointerDownWith: import("../element/types").PointerType;
1345
+ selectedElementIds: Readonly<{
1346
+ [id: string]: true;
1347
+ }>;
1348
+ previousSelectedElementIds: {
1349
+ [id: string]: true;
1350
+ };
1351
+ selectedElementsAreBeingDragged: boolean;
1352
+ shouldCacheIgnoreZoom: boolean;
1353
+ toast: {
1354
+ message: string;
1355
+ closable?: boolean | undefined;
1356
+ duration?: number | undefined;
1357
+ } | null;
1358
+ zenModeEnabled: boolean;
1359
+ theme: Theme;
1360
+ gridSize: number | null;
1361
+ previousGridSize: number | null;
1362
+ viewModeEnabled: boolean;
1363
+ selectedGroupIds: {
1364
+ [groupId: string]: boolean;
1365
+ };
1366
+ editingGroupId: string | null;
1367
+ width: number;
1368
+ height: number;
1369
+ offsetTop: number;
1370
+ offsetLeft: number;
1371
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1372
+ collaborators: Map<string, import("../types").Collaborator>;
1373
+ showStats: boolean;
1374
+ currentChartType: import("../element/types").ChartType;
1375
+ pasteDialog: {
1376
+ shown: false;
1377
+ data: null;
1378
+ } | {
1379
+ shown: true;
1380
+ data: import("../charts").Spreadsheet;
1381
+ };
1382
+ pendingImageElementId: string | null;
1383
+ showHyperlinkPopup: false | "editor" | "info";
1384
+ linkOpacity: number;
1385
+ trayModeEnabled: boolean;
1386
+ colorPalette?: {
1387
+ canvasBackground: import("../colors").ColorPaletteCustom;
1388
+ elementBackground: import("../colors").ColorPaletteCustom;
1389
+ elementStroke: import("../colors").ColorPaletteCustom;
1390
+ topPicks: {
1391
+ canvasBackground: [string, string, string, string, string];
1392
+ elementStroke: [string, string, string, string, string];
1393
+ elementBackground: [string, string, string, string, string];
1394
+ };
1395
+ } | undefined;
1396
+ allowWheelZoom?: boolean | undefined;
1397
+ allowPinchZoom?: boolean | undefined;
1398
+ pinnedScripts?: string[] | undefined;
1399
+ customPens?: any[] | undefined;
1400
+ currentStrokeOptions?: any;
1401
+ resetCustomPen?: any;
1402
+ gridColor: {
1403
+ Bold: string;
1404
+ Regular: string;
1405
+ };
1406
+ dynamicStyle: string;
1407
+ invertBindingBehaviour: boolean;
1408
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1409
+ };
1410
+ commitToHistory: false;
1411
+ };
1412
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1413
+ } & {
1414
+ keyTest?: undefined;
1415
+ };