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

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