@excalidraw/element 0.18.0-d2463f87d → 0.18.0-d9e8a33

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 (277) hide show
  1. package/dist/dev/index.js +6064 -3063
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +19 -18
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/bounds.d.ts +10 -0
  7. package/dist/types/common/src/colors.d.ts +59 -39
  8. package/dist/types/common/src/constants.d.ts +38 -26
  9. package/dist/types/common/src/editorInterface.d.ts +34 -0
  10. package/dist/types/common/src/font-metadata.d.ts +1 -3
  11. package/dist/types/common/src/index.d.ts +5 -0
  12. package/dist/types/common/src/keys.d.ts +1 -1
  13. package/dist/types/common/src/utility-types.d.ts +0 -1
  14. package/dist/types/common/src/utils.d.ts +53 -41
  15. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  16. package/dist/types/element/src/Scene.d.ts +11 -5
  17. package/dist/types/element/src/align.d.ts +2 -1
  18. package/dist/types/element/src/arrowheads.d.ts +3 -0
  19. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  20. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  21. package/dist/types/element/src/binding.d.ts +67 -48
  22. package/dist/types/element/src/bounds.d.ts +8 -14
  23. package/dist/types/element/src/collision.d.ts +7 -2
  24. package/dist/types/element/src/comparisons.d.ts +7 -7
  25. package/dist/types/element/src/delta.d.ts +16 -4
  26. package/dist/types/element/src/distribute.d.ts +3 -1
  27. package/dist/types/element/src/dragElements.d.ts +3 -3
  28. package/dist/types/element/src/duplicate.d.ts +3 -3
  29. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  30. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  31. package/dist/types/element/src/frame.d.ts +6 -2
  32. package/dist/types/element/src/groups.d.ts +1 -0
  33. package/dist/types/element/src/heading.d.ts +2 -1
  34. package/dist/types/element/src/image.d.ts +1 -11
  35. package/dist/types/element/src/index.d.ts +5 -3
  36. package/dist/types/element/src/linearElementEditor.d.ts +25 -23
  37. package/dist/types/element/src/mutateElement.d.ts +5 -1
  38. package/dist/types/element/src/newElement.d.ts +6 -6
  39. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  40. package/dist/types/element/src/renderElement.d.ts +4 -7
  41. package/dist/types/element/src/resizeElements.d.ts +10 -10
  42. package/dist/types/element/src/resizeTest.d.ts +6 -5
  43. package/dist/types/element/src/selection.d.ts +10 -10
  44. package/dist/types/element/src/shape.d.ts +9 -8
  45. package/dist/types/element/src/store.d.ts +8 -2
  46. package/dist/types/element/src/textElement.d.ts +2 -2
  47. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  48. package/dist/types/element/src/textWrapping.d.ts +26 -0
  49. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  50. package/dist/types/element/src/transformHandles.d.ts +8 -27
  51. package/dist/types/element/src/typeChecks.d.ts +4 -7
  52. package/dist/types/element/src/types.d.ts +12 -13
  53. package/dist/types/element/src/utils.d.ts +9 -4
  54. package/dist/types/element/src/visualdebug.d.ts +59 -0
  55. package/dist/types/element/src/zindex.d.ts +7 -1
  56. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +131 -171
  57. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  58. package/dist/types/excalidraw/actions/actionBoundText.d.ts +94 -121
  59. package/dist/types/excalidraw/actions/actionCanvas.d.ts +557 -902
  60. package/dist/types/excalidraw/actions/actionClipboard.d.ts +111 -882
  61. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +45 -59
  62. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +154 -198
  63. package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -0
  64. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  65. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  66. package/dist/types/excalidraw/actions/actionElementLink.d.ts +37 -57
  67. package/dist/types/excalidraw/actions/actionElementLock.d.ts +92 -119
  68. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +46 -60
  69. package/dist/types/excalidraw/actions/actionExport.d.ts +173 -1412
  70. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -395
  71. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  72. package/dist/types/excalidraw/actions/actionFrame.d.ts +279 -370
  73. package/dist/types/excalidraw/actions/actionGroup.d.ts +97 -132
  74. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +176 -197
  75. package/dist/types/excalidraw/actions/actionLink.d.ts +43 -57
  76. package/dist/types/excalidraw/actions/actionMenu.d.ts +36 -424
  77. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
  78. package/dist/types/excalidraw/actions/actionProperties.d.ts +152 -2522
  79. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +48 -66
  80. package/dist/types/excalidraw/actions/actionStyles.d.ts +45 -58
  81. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  82. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +173 -0
  83. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +45 -59
  84. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
  85. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +45 -59
  86. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +34 -54
  87. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  88. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +45 -59
  89. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +45 -59
  90. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +46 -60
  91. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
  92. package/dist/types/excalidraw/actions/index.d.ts +5 -2
  93. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  94. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  95. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  96. package/dist/types/excalidraw/appState.d.ts +22 -14
  97. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  98. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  99. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  100. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  101. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  102. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  103. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  104. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  105. package/dist/types/excalidraw/clipboard.d.ts +57 -19
  106. package/dist/types/excalidraw/components/Actions.d.ts +21 -8
  107. package/dist/types/excalidraw/components/App.d.ts +118 -75
  108. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  109. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  110. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  111. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  112. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  113. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  114. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  115. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  116. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  117. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  118. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  119. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  120. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  121. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  122. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  123. package/dist/types/excalidraw/components/Ellipsify.d.ts +3 -0
  124. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  125. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  126. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  127. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  128. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  129. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  130. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  131. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  132. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  133. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  134. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  135. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  136. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  137. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  138. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  139. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  140. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  141. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  142. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  143. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  144. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  145. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  146. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  147. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  148. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  149. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  150. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  151. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  152. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  153. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  154. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  155. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  156. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  157. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  158. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  159. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  160. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  161. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  162. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  163. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  164. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  165. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  166. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  167. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  168. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  169. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  170. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  171. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  172. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  173. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  174. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  175. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  176. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  177. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  178. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  179. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  180. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  181. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  182. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  183. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  184. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  185. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  186. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  187. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  188. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  189. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  190. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  191. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  192. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  193. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  194. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  195. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  196. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  197. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +7 -3
  198. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  200. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  201. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  202. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  203. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  204. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  205. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  206. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  207. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  208. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  209. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  210. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  211. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  212. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  213. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  214. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  215. package/dist/types/excalidraw/components/icons.d.ts +49 -21
  216. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +20 -2
  217. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  218. package/dist/types/excalidraw/components/shapes.d.ts +202 -1
  219. package/dist/types/excalidraw/data/blob.d.ts +329 -12
  220. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  221. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  222. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  223. package/dist/types/excalidraw/data/index.d.ts +4 -5
  224. package/dist/types/excalidraw/data/json.d.ts +171 -4
  225. package/dist/types/excalidraw/data/library.d.ts +24 -9
  226. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  227. package/dist/types/excalidraw/data/restore.d.ts +27 -7
  228. package/dist/types/excalidraw/data/types.d.ts +4 -1
  229. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  230. package/dist/types/excalidraw/errors.d.ts +14 -0
  231. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  232. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  233. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  234. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  235. package/dist/types/excalidraw/i18n.d.ts +2 -2
  236. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  237. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  238. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  239. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  240. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  241. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  242. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  243. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  244. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  245. package/dist/types/excalidraw/snapping.d.ts +5 -5
  246. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  247. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  248. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  249. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  250. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  251. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  252. package/dist/types/excalidraw/types.d.ts +130 -38
  253. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +7 -3
  254. package/dist/types/math/src/curve.d.ts +4 -1
  255. package/dist/types/math/src/point.d.ts +7 -2
  256. package/dist/types/math/src/polygon.d.ts +2 -2
  257. package/dist/types/math/src/range.d.ts +1 -3
  258. package/dist/types/math/src/segment.d.ts +4 -3
  259. package/dist/types/math/src/types.d.ts +25 -1
  260. package/dist/types/utils/src/bbox.d.ts +1 -1
  261. package/dist/types/utils/src/export.d.ts +5 -5
  262. package/dist/types/utils/src/shape.d.ts +6 -6
  263. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  264. package/package.json +9 -3
  265. package/dist/types/excalidraw/charts.d.ts +0 -27
  266. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  267. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  268. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  269. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -9
  270. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  271. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -10
  272. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  273. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  274. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  275. package/dist/types/excalidraw/data/reconcile.d.ts +0 -6
  276. package/dist/types/excalidraw/index.d.ts +0 -46
  277. package/dist/types/excalidraw/polyfill.d.ts +0 -2
@@ -1,1102 +1,71 @@
1
- /// <reference types="react" />
2
- import type { Theme } from "@excalidraw/element/types";
1
+ import type { ExcalidrawElement, Theme } from "@excalidraw/element/types";
3
2
  import "../components/ToolIcon.scss";
4
- export declare const actionChangeProjectName: {
5
- name: "changeProjectName";
6
- label: string;
7
- trackEvent: false;
8
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
9
- appState: {
10
- name: any;
11
- contextMenu: {
12
- items: import("../components/ContextMenu").ContextMenuItems;
13
- top: number;
14
- left: number;
15
- } | null;
16
- showWelcomeScreen: boolean;
17
- isLoading: boolean;
18
- errorMessage: import("react").ReactNode;
19
- activeEmbeddable: {
20
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
- state: "active" | "hover";
22
- } | null;
23
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
25
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
26
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
- isBindingEnabled: boolean;
28
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
- frameRendering: {
32
- enabled: boolean;
33
- name: boolean;
34
- outline: boolean;
35
- clip: boolean;
36
- };
37
- editingFrame: string | null;
38
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
41
- activeTool: {
42
- lastActiveTool: import("../types").ActiveTool | null;
43
- locked: boolean;
44
- fromSelection: boolean;
45
- } & import("../types").ActiveTool;
46
- penMode: boolean;
47
- penDetected: boolean;
48
- exportBackground: boolean;
49
- exportEmbedScene: boolean;
50
- exportWithDarkMode: boolean;
51
- exportScale: number;
52
- currentItemStrokeColor: string;
53
- currentItemBackgroundColor: string;
54
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
55
- currentItemStrokeWidth: number;
56
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
57
- currentItemRoughness: number;
58
- currentItemOpacity: number;
59
- currentItemFontFamily: number;
60
- currentItemFontSize: number;
61
- currentItemTextAlign: string;
62
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
63
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
- currentHoveredFontFamily: number | null;
65
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
66
- currentItemArrowType: "round" | "sharp" | "elbow";
67
- viewBackgroundColor: string;
68
- scrollX: number;
69
- scrollY: number;
70
- cursorButton: "up" | "down";
71
- scrolledOutside: boolean;
72
- isResizing: boolean;
73
- isRotating: boolean;
74
- zoom: Readonly<{
75
- value: import("../types").NormalizedZoomValue;
76
- }>;
77
- openMenu: "canvas" | "shape" | null;
78
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
79
- openSidebar: {
80
- name: string;
81
- tab?: string | undefined;
82
- } | null;
83
- openDialog: {
84
- name: "imageExport" | "help" | "jsonExport";
85
- } | {
86
- name: "ttd";
87
- tab: "mermaid" | "text-to-diagram";
88
- } | {
89
- name: "commandPalette";
90
- } | {
91
- name: "elementLinkSelector";
92
- sourceElementId: string;
93
- } | null;
94
- defaultSidebarDockedPreference: boolean;
95
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
96
- selectedElementIds: Readonly<{
97
- [id: string]: true;
98
- }>;
99
- hoveredElementIds: Readonly<{
100
- [id: string]: true;
101
- }>;
102
- previousSelectedElementIds: {
103
- [id: string]: true;
104
- };
105
- selectedElementsAreBeingDragged: boolean;
106
- shouldCacheIgnoreZoom: boolean;
107
- toast: {
108
- message: string;
109
- closable?: boolean | undefined;
110
- duration?: number | undefined;
111
- } | null;
112
- zenModeEnabled: boolean;
113
- theme: Theme;
114
- gridSize: number;
115
- gridStep: number;
116
- gridModeEnabled: boolean;
117
- viewModeEnabled: boolean;
118
- selectedGroupIds: {
119
- [groupId: string]: boolean;
120
- };
121
- editingGroupId: string | null;
122
- width: number;
123
- height: number;
124
- offsetTop: number;
125
- offsetLeft: number;
126
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
127
- collaborators: Map<import("../types").SocketId, Readonly<{
128
- pointer?: import("../types").CollaboratorPointer | undefined;
129
- button?: "up" | "down" | undefined;
130
- selectedElementIds?: Readonly<{
131
- [id: string]: true;
132
- }> | undefined;
133
- username?: string | null | undefined;
134
- userState?: import("@excalidraw/common").UserIdleState | undefined;
135
- color?: {
136
- background: string;
137
- stroke: string;
138
- } | undefined;
139
- avatarUrl?: string | undefined;
140
- id?: string | undefined;
141
- socketId?: import("../types").SocketId | undefined;
142
- isCurrentUser?: boolean | undefined;
143
- isInCall?: boolean | undefined;
144
- isSpeaking?: boolean | undefined;
145
- isMuted?: boolean | undefined;
146
- }>>;
147
- stats: {
148
- open: boolean;
149
- panels: number;
150
- };
151
- currentChartType: import("@excalidraw/element/types").ChartType;
152
- pasteDialog: {
153
- shown: false;
154
- data: null;
155
- } | {
156
- shown: true;
157
- data: import("../charts").Spreadsheet;
158
- };
159
- showHyperlinkPopup: false | "editor" | "info";
160
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
161
- snapLines: readonly import("../snapping").SnapLine[];
162
- originSnapOffset: {
163
- x: number;
164
- y: number;
165
- } | null;
166
- objectsSnapModeEnabled: boolean;
167
- userToFollow: import("../types").UserToFollow | null;
168
- followedBy: Set<import("../types").SocketId>;
169
- isCropping: boolean;
170
- croppingElementId: string | null;
171
- searchMatches: Readonly<{
172
- focusedId: string | null;
173
- matches: readonly import("../types").SearchMatch[];
174
- }> | null;
175
- activeLockedId: string | null;
176
- lockedMultiSelections: {
177
- [groupId: string]: true;
178
- };
179
- };
180
- captureUpdate: "EVENTUALLY";
181
- };
182
- PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
183
- } & {
184
- keyTest?: undefined;
185
- };
186
- export declare const actionChangeExportScale: {
187
- name: "changeExportScale";
188
- label: string;
189
- trackEvent: {
190
- category: "export";
191
- action: string;
192
- };
193
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
194
- appState: {
195
- exportScale: any;
196
- contextMenu: {
197
- items: import("../components/ContextMenu").ContextMenuItems;
198
- top: number;
199
- left: number;
200
- } | null;
201
- showWelcomeScreen: boolean;
202
- isLoading: boolean;
203
- errorMessage: import("react").ReactNode;
204
- activeEmbeddable: {
205
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
206
- state: "active" | "hover";
207
- } | null;
208
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
209
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
210
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
211
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
212
- isBindingEnabled: boolean;
213
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
214
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
215
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
216
- frameRendering: {
217
- enabled: boolean;
218
- name: boolean;
219
- outline: boolean;
220
- clip: boolean;
221
- };
222
- editingFrame: string | null;
223
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
224
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
225
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
226
- activeTool: {
227
- lastActiveTool: import("../types").ActiveTool | null;
228
- locked: boolean;
229
- fromSelection: boolean;
230
- } & import("../types").ActiveTool;
231
- penMode: boolean;
232
- penDetected: boolean;
233
- exportBackground: boolean;
234
- exportEmbedScene: boolean;
235
- exportWithDarkMode: boolean;
236
- currentItemStrokeColor: string;
237
- currentItemBackgroundColor: string;
238
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
239
- currentItemStrokeWidth: number;
240
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
241
- currentItemRoughness: number;
242
- currentItemOpacity: number;
243
- currentItemFontFamily: number;
244
- currentItemFontSize: number;
245
- currentItemTextAlign: string;
246
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
247
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
248
- currentHoveredFontFamily: number | null;
249
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
250
- currentItemArrowType: "round" | "sharp" | "elbow";
251
- viewBackgroundColor: string;
252
- scrollX: number;
253
- scrollY: number;
254
- cursorButton: "up" | "down";
255
- scrolledOutside: boolean;
256
- name: string | null;
257
- isResizing: boolean;
258
- isRotating: boolean;
259
- zoom: Readonly<{
260
- value: import("../types").NormalizedZoomValue;
261
- }>;
262
- openMenu: "canvas" | "shape" | null;
263
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
264
- openSidebar: {
265
- name: string;
266
- tab?: string | undefined;
267
- } | null;
268
- openDialog: {
269
- name: "imageExport" | "help" | "jsonExport";
270
- } | {
271
- name: "ttd";
272
- tab: "mermaid" | "text-to-diagram";
273
- } | {
274
- name: "commandPalette";
275
- } | {
276
- name: "elementLinkSelector";
277
- sourceElementId: string;
278
- } | null;
279
- defaultSidebarDockedPreference: boolean;
280
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
281
- selectedElementIds: Readonly<{
282
- [id: string]: true;
283
- }>;
284
- hoveredElementIds: Readonly<{
285
- [id: string]: true;
286
- }>;
287
- previousSelectedElementIds: {
288
- [id: string]: true;
289
- };
290
- selectedElementsAreBeingDragged: boolean;
291
- shouldCacheIgnoreZoom: boolean;
292
- toast: {
293
- message: string;
294
- closable?: boolean | undefined;
295
- duration?: number | undefined;
296
- } | null;
297
- zenModeEnabled: boolean;
298
- theme: Theme;
299
- gridSize: number;
300
- gridStep: number;
301
- gridModeEnabled: boolean;
302
- viewModeEnabled: boolean;
303
- selectedGroupIds: {
304
- [groupId: string]: boolean;
305
- };
306
- editingGroupId: string | null;
307
- width: number;
308
- height: number;
309
- offsetTop: number;
310
- offsetLeft: number;
311
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
312
- collaborators: Map<import("../types").SocketId, Readonly<{
313
- pointer?: import("../types").CollaboratorPointer | undefined;
314
- button?: "up" | "down" | undefined;
315
- selectedElementIds?: Readonly<{
316
- [id: string]: true;
317
- }> | undefined;
318
- username?: string | null | undefined;
319
- userState?: import("@excalidraw/common").UserIdleState | undefined;
320
- color?: {
321
- background: string;
322
- stroke: string;
323
- } | undefined;
324
- avatarUrl?: string | undefined;
325
- id?: string | undefined;
326
- socketId?: import("../types").SocketId | undefined;
327
- isCurrentUser?: boolean | undefined;
328
- isInCall?: boolean | undefined;
329
- isSpeaking?: boolean | undefined;
330
- isMuted?: boolean | undefined;
331
- }>>;
332
- stats: {
333
- open: boolean;
334
- panels: number;
335
- };
336
- currentChartType: import("@excalidraw/element/types").ChartType;
337
- pasteDialog: {
338
- shown: false;
339
- data: null;
340
- } | {
341
- shown: true;
342
- data: import("../charts").Spreadsheet;
343
- };
344
- showHyperlinkPopup: false | "editor" | "info";
345
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
346
- snapLines: readonly import("../snapping").SnapLine[];
347
- originSnapOffset: {
348
- x: number;
349
- y: number;
350
- } | null;
351
- objectsSnapModeEnabled: boolean;
352
- userToFollow: import("../types").UserToFollow | null;
353
- followedBy: Set<import("../types").SocketId>;
354
- isCropping: boolean;
355
- croppingElementId: string | null;
356
- searchMatches: Readonly<{
357
- focusedId: string | null;
358
- matches: readonly import("../types").SearchMatch[];
359
- }> | null;
360
- activeLockedId: string | null;
361
- lockedMultiSelections: {
362
- [groupId: string]: true;
363
- };
364
- };
365
- captureUpdate: "EVENTUALLY";
366
- };
367
- PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
368
- } & {
369
- keyTest?: undefined;
370
- };
371
- export declare const actionChangeExportBackground: {
372
- name: "changeExportBackground";
373
- label: string;
374
- trackEvent: {
375
- category: "export";
376
- action: string;
377
- };
378
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
379
- appState: {
380
- exportBackground: any;
381
- contextMenu: {
382
- items: import("../components/ContextMenu").ContextMenuItems;
383
- top: number;
384
- left: number;
385
- } | null;
386
- showWelcomeScreen: boolean;
387
- isLoading: boolean;
388
- errorMessage: import("react").ReactNode;
389
- activeEmbeddable: {
390
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
391
- state: "active" | "hover";
392
- } | null;
393
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
394
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
395
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
396
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
397
- isBindingEnabled: boolean;
398
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
399
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
400
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
401
- frameRendering: {
402
- enabled: boolean;
403
- name: boolean;
404
- outline: boolean;
405
- clip: boolean;
406
- };
407
- editingFrame: string | null;
408
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
409
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
410
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
411
- activeTool: {
412
- lastActiveTool: import("../types").ActiveTool | null;
413
- locked: boolean;
414
- fromSelection: boolean;
415
- } & import("../types").ActiveTool;
416
- penMode: boolean;
417
- penDetected: boolean;
418
- exportEmbedScene: boolean;
419
- exportWithDarkMode: boolean;
420
- exportScale: number;
421
- currentItemStrokeColor: string;
422
- currentItemBackgroundColor: string;
423
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
424
- currentItemStrokeWidth: number;
425
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
426
- currentItemRoughness: number;
427
- currentItemOpacity: number;
428
- currentItemFontFamily: number;
429
- currentItemFontSize: number;
430
- currentItemTextAlign: string;
431
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
432
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
433
- currentHoveredFontFamily: number | null;
434
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
435
- currentItemArrowType: "round" | "sharp" | "elbow";
436
- viewBackgroundColor: string;
437
- scrollX: number;
438
- scrollY: number;
439
- cursorButton: "up" | "down";
440
- scrolledOutside: boolean;
441
- name: string | null;
442
- isResizing: boolean;
443
- isRotating: boolean;
444
- zoom: Readonly<{
445
- value: import("../types").NormalizedZoomValue;
446
- }>;
447
- openMenu: "canvas" | "shape" | null;
448
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
449
- openSidebar: {
450
- name: string;
451
- tab?: string | undefined;
452
- } | null;
453
- openDialog: {
454
- name: "imageExport" | "help" | "jsonExport";
455
- } | {
456
- name: "ttd";
457
- tab: "mermaid" | "text-to-diagram";
458
- } | {
459
- name: "commandPalette";
460
- } | {
461
- name: "elementLinkSelector";
462
- sourceElementId: string;
463
- } | null;
464
- defaultSidebarDockedPreference: boolean;
465
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
466
- selectedElementIds: Readonly<{
467
- [id: string]: true;
468
- }>;
469
- hoveredElementIds: Readonly<{
470
- [id: string]: true;
471
- }>;
472
- previousSelectedElementIds: {
473
- [id: string]: true;
474
- };
475
- selectedElementsAreBeingDragged: boolean;
476
- shouldCacheIgnoreZoom: boolean;
477
- toast: {
478
- message: string;
479
- closable?: boolean | undefined;
480
- duration?: number | undefined;
481
- } | null;
482
- zenModeEnabled: boolean;
483
- theme: Theme;
484
- gridSize: number;
485
- gridStep: number;
486
- gridModeEnabled: boolean;
487
- viewModeEnabled: boolean;
488
- selectedGroupIds: {
489
- [groupId: string]: boolean;
490
- };
491
- editingGroupId: string | null;
492
- width: number;
493
- height: number;
494
- offsetTop: number;
495
- offsetLeft: number;
496
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
497
- collaborators: Map<import("../types").SocketId, Readonly<{
498
- pointer?: import("../types").CollaboratorPointer | undefined;
499
- button?: "up" | "down" | undefined;
500
- selectedElementIds?: Readonly<{
501
- [id: string]: true;
502
- }> | undefined;
503
- username?: string | null | undefined;
504
- userState?: import("@excalidraw/common").UserIdleState | undefined;
505
- color?: {
506
- background: string;
507
- stroke: string;
508
- } | undefined;
509
- avatarUrl?: string | undefined;
510
- id?: string | undefined;
511
- socketId?: import("../types").SocketId | undefined;
512
- isCurrentUser?: boolean | undefined;
513
- isInCall?: boolean | undefined;
514
- isSpeaking?: boolean | undefined;
515
- isMuted?: boolean | undefined;
516
- }>>;
517
- stats: {
518
- open: boolean;
519
- panels: number;
520
- };
521
- currentChartType: import("@excalidraw/element/types").ChartType;
522
- pasteDialog: {
523
- shown: false;
524
- data: null;
525
- } | {
526
- shown: true;
527
- data: import("../charts").Spreadsheet;
528
- };
529
- showHyperlinkPopup: false | "editor" | "info";
530
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
531
- snapLines: readonly import("../snapping").SnapLine[];
532
- originSnapOffset: {
533
- x: number;
534
- y: number;
535
- } | null;
536
- objectsSnapModeEnabled: boolean;
537
- userToFollow: import("../types").UserToFollow | null;
538
- followedBy: Set<import("../types").SocketId>;
539
- isCropping: boolean;
540
- croppingElementId: string | null;
541
- searchMatches: Readonly<{
542
- focusedId: string | null;
543
- matches: readonly import("../types").SearchMatch[];
544
- }> | null;
545
- activeLockedId: string | null;
546
- lockedMultiSelections: {
547
- [groupId: string]: true;
548
- };
549
- };
550
- captureUpdate: "EVENTUALLY";
551
- };
552
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
553
- } & {
554
- keyTest?: undefined;
555
- };
556
- export declare const actionChangeExportEmbedScene: {
557
- name: "changeExportEmbedScene";
558
- label: string;
559
- trackEvent: {
560
- category: "export";
561
- action: string;
562
- };
563
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
564
- appState: {
565
- exportEmbedScene: any;
566
- contextMenu: {
567
- items: import("../components/ContextMenu").ContextMenuItems;
568
- top: number;
569
- left: number;
570
- } | null;
571
- showWelcomeScreen: boolean;
572
- isLoading: boolean;
573
- errorMessage: import("react").ReactNode;
574
- activeEmbeddable: {
575
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
576
- state: "active" | "hover";
577
- } | null;
578
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
579
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
580
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
581
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
582
- isBindingEnabled: boolean;
583
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
584
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
585
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
586
- frameRendering: {
587
- enabled: boolean;
588
- name: boolean;
589
- outline: boolean;
590
- clip: boolean;
591
- };
592
- editingFrame: string | null;
593
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
594
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
595
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
596
- activeTool: {
597
- lastActiveTool: import("../types").ActiveTool | null;
598
- locked: boolean;
599
- fromSelection: boolean;
600
- } & import("../types").ActiveTool;
601
- penMode: boolean;
602
- penDetected: boolean;
603
- exportBackground: boolean;
604
- exportWithDarkMode: boolean;
605
- exportScale: number;
606
- currentItemStrokeColor: string;
607
- currentItemBackgroundColor: string;
608
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
609
- currentItemStrokeWidth: number;
610
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
611
- currentItemRoughness: number;
612
- currentItemOpacity: number;
613
- currentItemFontFamily: number;
614
- currentItemFontSize: number;
615
- currentItemTextAlign: string;
616
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
617
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
618
- currentHoveredFontFamily: number | null;
619
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
620
- currentItemArrowType: "round" | "sharp" | "elbow";
621
- viewBackgroundColor: string;
622
- scrollX: number;
623
- scrollY: number;
624
- cursorButton: "up" | "down";
625
- scrolledOutside: boolean;
626
- name: string | null;
627
- isResizing: boolean;
628
- isRotating: boolean;
629
- zoom: Readonly<{
630
- value: import("../types").NormalizedZoomValue;
631
- }>;
632
- openMenu: "canvas" | "shape" | null;
633
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
634
- openSidebar: {
635
- name: string;
636
- tab?: string | undefined;
637
- } | null;
638
- openDialog: {
639
- name: "imageExport" | "help" | "jsonExport";
640
- } | {
641
- name: "ttd";
642
- tab: "mermaid" | "text-to-diagram";
643
- } | {
644
- name: "commandPalette";
645
- } | {
646
- name: "elementLinkSelector";
647
- sourceElementId: string;
648
- } | null;
649
- defaultSidebarDockedPreference: boolean;
650
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
651
- selectedElementIds: Readonly<{
652
- [id: string]: true;
653
- }>;
654
- hoveredElementIds: Readonly<{
655
- [id: string]: true;
656
- }>;
657
- previousSelectedElementIds: {
658
- [id: string]: true;
659
- };
660
- selectedElementsAreBeingDragged: boolean;
661
- shouldCacheIgnoreZoom: boolean;
662
- toast: {
663
- message: string;
664
- closable?: boolean | undefined;
665
- duration?: number | undefined;
666
- } | null;
667
- zenModeEnabled: boolean;
668
- theme: Theme;
669
- gridSize: number;
670
- gridStep: number;
671
- gridModeEnabled: boolean;
672
- viewModeEnabled: boolean;
673
- selectedGroupIds: {
674
- [groupId: string]: boolean;
675
- };
676
- editingGroupId: string | null;
677
- width: number;
678
- height: number;
679
- offsetTop: number;
680
- offsetLeft: number;
681
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
682
- collaborators: Map<import("../types").SocketId, Readonly<{
683
- pointer?: import("../types").CollaboratorPointer | undefined;
684
- button?: "up" | "down" | undefined;
685
- selectedElementIds?: Readonly<{
686
- [id: string]: true;
687
- }> | undefined;
688
- username?: string | null | undefined;
689
- userState?: import("@excalidraw/common").UserIdleState | undefined;
690
- color?: {
691
- background: string;
692
- stroke: string;
693
- } | undefined;
694
- avatarUrl?: string | undefined;
695
- id?: string | undefined;
696
- socketId?: import("../types").SocketId | undefined;
697
- isCurrentUser?: boolean | undefined;
698
- isInCall?: boolean | undefined;
699
- isSpeaking?: boolean | undefined;
700
- isMuted?: boolean | undefined;
701
- }>>;
702
- stats: {
703
- open: boolean;
704
- panels: number;
705
- };
706
- currentChartType: import("@excalidraw/element/types").ChartType;
707
- pasteDialog: {
708
- shown: false;
709
- data: null;
710
- } | {
711
- shown: true;
712
- data: import("../charts").Spreadsheet;
713
- };
714
- showHyperlinkPopup: false | "editor" | "info";
715
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
716
- snapLines: readonly import("../snapping").SnapLine[];
717
- originSnapOffset: {
718
- x: number;
719
- y: number;
720
- } | null;
721
- objectsSnapModeEnabled: boolean;
722
- userToFollow: import("../types").UserToFollow | null;
723
- followedBy: Set<import("../types").SocketId>;
724
- isCropping: boolean;
725
- croppingElementId: string | null;
726
- searchMatches: Readonly<{
727
- focusedId: string | null;
728
- matches: readonly import("../types").SearchMatch[];
729
- }> | null;
730
- activeLockedId: string | null;
731
- lockedMultiSelections: {
732
- [groupId: string]: true;
733
- };
734
- };
735
- captureUpdate: "EVENTUALLY";
736
- };
737
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
738
- } & {
739
- keyTest?: undefined;
740
- };
741
- export declare const actionSaveToActiveFile: {
742
- name: "saveToActiveFile";
743
- label: string;
744
- icon: import("react/jsx-runtime").JSX.Element;
745
- trackEvent: {
746
- category: "export";
747
- };
748
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
749
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
750
- captureUpdate: "EVENTUALLY";
751
- appState: {
752
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
753
- toast: {
754
- message: string;
755
- } | null;
756
- contextMenu: {
757
- items: import("../components/ContextMenu").ContextMenuItems;
758
- top: number;
759
- left: number;
760
- } | null;
761
- showWelcomeScreen: boolean;
762
- isLoading: boolean;
763
- errorMessage: import("react").ReactNode;
764
- activeEmbeddable: {
765
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
766
- state: "active" | "hover";
767
- } | null;
768
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
769
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
770
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
771
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
772
- isBindingEnabled: boolean;
773
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
774
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
775
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
776
- frameRendering: {
777
- enabled: boolean;
778
- name: boolean;
779
- outline: boolean;
780
- clip: boolean;
781
- };
782
- editingFrame: string | null;
783
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
784
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
785
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
786
- activeTool: {
787
- lastActiveTool: import("../types").ActiveTool | null;
788
- locked: boolean;
789
- fromSelection: boolean;
790
- } & import("../types").ActiveTool;
791
- penMode: boolean;
792
- penDetected: boolean;
793
- exportBackground: boolean;
794
- exportEmbedScene: boolean;
795
- exportWithDarkMode: boolean;
796
- exportScale: number;
797
- currentItemStrokeColor: string;
798
- currentItemBackgroundColor: string;
799
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
800
- currentItemStrokeWidth: number;
801
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
802
- currentItemRoughness: number;
803
- currentItemOpacity: number;
804
- currentItemFontFamily: number;
805
- currentItemFontSize: number;
806
- currentItemTextAlign: string;
807
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
808
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
809
- currentHoveredFontFamily: number | null;
810
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
811
- currentItemArrowType: "round" | "sharp" | "elbow";
812
- viewBackgroundColor: string;
813
- scrollX: number;
814
- scrollY: number;
815
- cursorButton: "up" | "down";
816
- scrolledOutside: boolean;
817
- name: string | null;
818
- isResizing: boolean;
819
- isRotating: boolean;
820
- zoom: Readonly<{
821
- value: import("../types").NormalizedZoomValue;
822
- }>;
823
- openMenu: "canvas" | "shape" | null;
824
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
825
- openSidebar: {
826
- name: string;
827
- tab?: string | undefined;
828
- } | null;
829
- openDialog: {
830
- name: "imageExport" | "help" | "jsonExport";
831
- } | {
832
- name: "ttd";
833
- tab: "mermaid" | "text-to-diagram";
834
- } | {
835
- name: "commandPalette";
836
- } | {
837
- name: "elementLinkSelector";
838
- sourceElementId: string;
839
- } | null;
840
- defaultSidebarDockedPreference: boolean;
841
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
842
- selectedElementIds: Readonly<{
843
- [id: string]: true;
844
- }>;
845
- hoveredElementIds: Readonly<{
846
- [id: string]: true;
847
- }>;
848
- previousSelectedElementIds: {
849
- [id: string]: true;
850
- };
851
- selectedElementsAreBeingDragged: boolean;
852
- shouldCacheIgnoreZoom: boolean;
853
- zenModeEnabled: boolean;
854
- theme: Theme;
855
- gridSize: number;
856
- gridStep: number;
857
- gridModeEnabled: boolean;
858
- viewModeEnabled: boolean;
859
- selectedGroupIds: {
860
- [groupId: string]: boolean;
861
- };
862
- editingGroupId: string | null;
863
- width: number;
864
- height: number;
865
- offsetTop: number;
866
- offsetLeft: number;
867
- collaborators: Map<import("../types").SocketId, Readonly<{
868
- pointer?: import("../types").CollaboratorPointer | undefined;
869
- button?: "up" | "down" | undefined;
870
- selectedElementIds?: Readonly<{
871
- [id: string]: true;
872
- }> | undefined;
873
- username?: string | null | undefined;
874
- userState?: import("@excalidraw/common").UserIdleState | undefined;
875
- color?: {
876
- background: string;
877
- stroke: string;
878
- } | undefined;
879
- avatarUrl?: string | undefined;
880
- id?: string | undefined;
881
- socketId?: import("../types").SocketId | undefined;
882
- isCurrentUser?: boolean | undefined;
883
- isInCall?: boolean | undefined;
884
- isSpeaking?: boolean | undefined;
885
- isMuted?: boolean | undefined;
886
- }>>;
887
- stats: {
888
- open: boolean;
889
- panels: number;
890
- };
891
- currentChartType: import("@excalidraw/element/types").ChartType;
892
- pasteDialog: {
893
- shown: false;
894
- data: null;
895
- } | {
896
- shown: true;
897
- data: import("../charts").Spreadsheet;
898
- };
899
- showHyperlinkPopup: false | "editor" | "info";
900
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
901
- snapLines: readonly import("../snapping").SnapLine[];
902
- originSnapOffset: {
903
- x: number;
904
- y: number;
905
- } | null;
906
- objectsSnapModeEnabled: boolean;
907
- userToFollow: import("../types").UserToFollow | null;
908
- followedBy: Set<import("../types").SocketId>;
909
- isCropping: boolean;
910
- croppingElementId: string | null;
911
- searchMatches: Readonly<{
912
- focusedId: string | null;
913
- matches: readonly import("../types").SearchMatch[];
914
- }> | null;
915
- activeLockedId: string | null;
916
- lockedMultiSelections: {
917
- [groupId: string]: true;
918
- };
919
- };
920
- } | {
921
- captureUpdate: "EVENTUALLY";
922
- appState?: undefined;
923
- }>;
924
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
925
- } & {
926
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
927
- };
928
- export declare const actionSaveFileToDisk: {
929
- name: "saveFileToDisk";
930
- label: string;
931
- icon: import("react/jsx-runtime").JSX.Element;
932
- viewMode: true;
933
- trackEvent: {
934
- category: "export";
935
- };
936
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
937
- captureUpdate: "EVENTUALLY";
938
- appState: {
939
- openDialog: null;
940
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
941
- toast: {
942
- message: string;
943
- };
944
- contextMenu: {
945
- items: import("../components/ContextMenu").ContextMenuItems;
946
- top: number;
947
- left: number;
948
- } | null;
949
- showWelcomeScreen: boolean;
950
- isLoading: boolean;
951
- errorMessage: import("react").ReactNode;
952
- activeEmbeddable: {
953
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
954
- state: "active" | "hover";
955
- } | null;
956
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
957
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
958
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
959
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
960
- isBindingEnabled: boolean;
961
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
962
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
963
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
964
- frameRendering: {
965
- enabled: boolean;
966
- name: boolean;
967
- outline: boolean;
968
- clip: boolean;
969
- };
970
- editingFrame: string | null;
971
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
972
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
973
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
974
- activeTool: {
975
- lastActiveTool: import("../types").ActiveTool | null;
976
- locked: boolean;
977
- fromSelection: boolean;
978
- } & import("../types").ActiveTool;
979
- penMode: boolean;
980
- penDetected: boolean;
981
- exportBackground: boolean;
982
- exportEmbedScene: boolean;
983
- exportWithDarkMode: boolean;
984
- exportScale: number;
985
- currentItemStrokeColor: string;
986
- currentItemBackgroundColor: string;
987
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
988
- currentItemStrokeWidth: number;
989
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
990
- currentItemRoughness: number;
991
- currentItemOpacity: number;
992
- currentItemFontFamily: number;
993
- currentItemFontSize: number;
994
- currentItemTextAlign: string;
995
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
996
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
997
- currentHoveredFontFamily: number | null;
998
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
999
- currentItemArrowType: "round" | "sharp" | "elbow";
1000
- viewBackgroundColor: string;
1001
- scrollX: number;
1002
- scrollY: number;
1003
- cursorButton: "up" | "down";
1004
- scrolledOutside: boolean;
1005
- name: string | null;
1006
- isResizing: boolean;
1007
- isRotating: boolean;
1008
- zoom: Readonly<{
1009
- value: import("../types").NormalizedZoomValue;
1010
- }>;
1011
- openMenu: "canvas" | "shape" | null;
1012
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1013
- openSidebar: {
1014
- name: string;
1015
- tab?: string | undefined;
1016
- } | null;
1017
- defaultSidebarDockedPreference: boolean;
1018
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1019
- selectedElementIds: Readonly<{
1020
- [id: string]: true;
1021
- }>;
1022
- hoveredElementIds: Readonly<{
1023
- [id: string]: true;
1024
- }>;
1025
- previousSelectedElementIds: {
1026
- [id: string]: true;
1027
- };
1028
- selectedElementsAreBeingDragged: boolean;
1029
- shouldCacheIgnoreZoom: boolean;
1030
- zenModeEnabled: boolean;
1031
- theme: Theme;
1032
- gridSize: number;
1033
- gridStep: number;
1034
- gridModeEnabled: boolean;
1035
- viewModeEnabled: boolean;
1036
- selectedGroupIds: {
1037
- [groupId: string]: boolean;
1038
- };
1039
- editingGroupId: string | null;
1040
- width: number;
1041
- height: number;
1042
- offsetTop: number;
1043
- offsetLeft: number;
1044
- collaborators: Map<import("../types").SocketId, Readonly<{
1045
- pointer?: import("../types").CollaboratorPointer | undefined;
1046
- button?: "up" | "down" | undefined;
1047
- selectedElementIds?: Readonly<{
1048
- [id: string]: true;
1049
- }> | undefined;
1050
- username?: string | null | undefined;
1051
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1052
- color?: {
1053
- background: string;
1054
- stroke: string;
1055
- } | undefined;
1056
- avatarUrl?: string | undefined;
1057
- id?: string | undefined;
1058
- socketId?: import("../types").SocketId | undefined;
1059
- isCurrentUser?: boolean | undefined;
1060
- isInCall?: boolean | undefined;
1061
- isSpeaking?: boolean | undefined;
1062
- isMuted?: boolean | undefined;
1063
- }>>;
1064
- stats: {
1065
- open: boolean;
1066
- panels: number;
1067
- };
1068
- currentChartType: import("@excalidraw/element/types").ChartType;
1069
- pasteDialog: {
1070
- shown: false;
1071
- data: null;
1072
- } | {
1073
- shown: true;
1074
- data: import("../charts").Spreadsheet;
3
+ import type { AppClassProperties, AppState, BinaryFiles, ExcalidrawProps } from "../types";
4
+ export declare const actionChangeProjectName: import("./types").Action<string | null> & {
5
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
6
+ };
7
+ export declare const actionChangeExportScale: import("./types").Action<number> & {
8
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
9
+ };
10
+ export declare const actionChangeExportBackground: import("./types").Action<boolean> & {
11
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
12
+ };
13
+ export declare const actionChangeExportEmbedScene: import("./types").Action<boolean> & {
14
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
15
+ };
16
+ export declare const actionSaveToActiveFile: {
17
+ name: "saveToActiveFile";
18
+ label: string;
19
+ icon: import("react/jsx-runtime").JSX.Element;
20
+ trackEvent: {
21
+ category: "export";
22
+ };
23
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: ExcalidrawProps, app: AppClassProperties) => boolean;
24
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => Promise<false | {
25
+ captureUpdate: "NEVER";
26
+ appState: {
27
+ fileHandle: FileSystemFileHandle | null;
28
+ toast: {
29
+ message: string;
30
+ duration: number;
1075
31
  };
1076
- showHyperlinkPopup: false | "editor" | "info";
1077
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1078
- snapLines: readonly import("../snapping").SnapLine[];
1079
- originSnapOffset: {
1080
- x: number;
1081
- y: number;
1082
- } | null;
1083
- objectsSnapModeEnabled: boolean;
1084
- userToFollow: import("../types").UserToFollow | null;
1085
- followedBy: Set<import("../types").SocketId>;
1086
- isCropping: boolean;
1087
- croppingElementId: string | null;
1088
- searchMatches: Readonly<{
1089
- focusedId: string | null;
1090
- matches: readonly import("../types").SearchMatch[];
1091
- }> | null;
1092
- activeLockedId: string | null;
1093
- lockedMultiSelections: {
1094
- [groupId: string]: true;
32
+ };
33
+ } | {
34
+ captureUpdate: "NEVER";
35
+ appState: {
36
+ toast: null;
37
+ fileHandle?: undefined;
38
+ };
39
+ }>;
40
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
41
+ } & {
42
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
43
+ };
44
+ export declare const actionSaveFileToDisk: {
45
+ name: "saveFileToDisk";
46
+ label: string;
47
+ icon: import("react/jsx-runtime").JSX.Element;
48
+ viewMode: true;
49
+ trackEvent: {
50
+ category: "export";
51
+ };
52
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => Promise<false | {
53
+ captureUpdate: "NEVER";
54
+ appState: {
55
+ openDialog: null;
56
+ fileHandle: FileSystemFileHandle | null;
57
+ toast: {
58
+ message: string;
59
+ duration: number;
1095
60
  };
1096
61
  };
1097
62
  } | {
1098
- captureUpdate: "EVENTUALLY";
1099
- appState?: undefined;
63
+ captureUpdate: "NEVER";
64
+ appState: {
65
+ toast: null;
66
+ openDialog?: undefined;
67
+ fileHandle?: undefined;
68
+ };
1100
69
  }>;
1101
70
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1102
71
  PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1109,11 +78,12 @@ export declare const actionLoadScene: {
1109
78
  trackEvent: {
1110
79
  category: "export";
1111
80
  };
1112
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1113
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
81
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: ExcalidrawProps, app: AppClassProperties) => boolean;
82
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => Promise<false | {
1114
83
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
1115
84
  appState: {
1116
85
  viewBackgroundColor: string;
86
+ theme: Theme;
1117
87
  frameRendering: {
1118
88
  enabled: boolean;
1119
89
  name: boolean;
@@ -1121,74 +91,75 @@ export declare const actionLoadScene: {
1121
91
  clip: boolean;
1122
92
  };
1123
93
  name: string | null;
1124
- zoom: Readonly<{
1125
- value: import("../types").NormalizedZoomValue;
1126
- }>;
94
+ zoom: import("../types").Zoom;
1127
95
  scrollX: number;
1128
96
  scrollY: number;
1129
97
  viewModeEnabled: boolean;
1130
- openDialog: {
98
+ openDialog: null | {
1131
99
  name: "imageExport" | "help" | "jsonExport";
1132
100
  } | {
1133
101
  name: "ttd";
1134
- tab: "mermaid" | "text-to-diagram";
102
+ tab: "text-to-diagram" | "mermaid";
1135
103
  } | {
1136
104
  name: "commandPalette";
105
+ } | {
106
+ name: "settings";
1137
107
  } | {
1138
108
  name: "elementLinkSelector";
1139
- sourceElementId: string;
1140
- } | null;
1141
- editingGroupId: string | null;
109
+ sourceElementId: ExcalidrawElement["id"];
110
+ } | {
111
+ name: "charts";
112
+ data: import("../charts").Spreadsheet;
113
+ rawText: string;
114
+ };
115
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1142
116
  selectedElementIds: Readonly<{
1143
117
  [id: string]: true;
1144
118
  }>;
1145
119
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1146
- theme: Theme;
120
+ activeTool: {
121
+ lastActiveTool: import("../types").ActiveTool | null;
122
+ locked: boolean;
123
+ fromSelection: boolean;
124
+ } & import("../types").ActiveTool;
1147
125
  activeEmbeddable: {
1148
126
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1149
- state: "active" | "hover";
127
+ state: "hover" | "active";
1150
128
  } | null;
1151
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1152
129
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1153
130
  selectedGroupIds: {
1154
131
  [groupId: string]: boolean;
1155
132
  };
1156
133
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1157
134
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
135
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1158
136
  isBindingEnabled: boolean;
1159
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
137
+ isMidpointSnappingEnabled: boolean;
138
+ suggestedBinding: {
139
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
140
+ midPoint?: import("@excalidraw/math").GlobalPoint;
141
+ } | null;
1160
142
  isRotating: boolean;
1161
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1162
- collaborators: Map<import("../types").SocketId, Readonly<{
1163
- pointer?: import("../types").CollaboratorPointer | undefined;
1164
- button?: "up" | "down" | undefined;
1165
- selectedElementIds?: Readonly<{
1166
- [id: string]: true;
1167
- }> | undefined;
1168
- username?: string | null | undefined;
1169
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1170
- color?: {
1171
- background: string;
1172
- stroke: string;
1173
- } | undefined;
1174
- avatarUrl?: string | undefined;
1175
- id?: string | undefined;
1176
- socketId?: import("../types").SocketId | undefined;
1177
- isCurrentUser?: boolean | undefined;
1178
- isInCall?: boolean | undefined;
1179
- isSpeaking?: boolean | undefined;
1180
- isMuted?: boolean | undefined;
1181
- }>>;
143
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
144
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1182
145
  snapLines: readonly import("../snapping").SnapLine[];
1183
146
  zenModeEnabled: boolean;
1184
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
147
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1185
148
  isCropping: boolean;
1186
- croppingElementId: string | null;
149
+ croppingElementId: ExcalidrawElement["id"] | null;
1187
150
  searchMatches: Readonly<{
1188
- focusedId: string | null;
151
+ focusedId: ExcalidrawElement["id"] | null;
1189
152
  matches: readonly import("../types").SearchMatch[];
1190
153
  }> | null;
1191
154
  activeLockedId: string | null;
155
+ hoveredElementIds: Readonly<{
156
+ [id: string]: true;
157
+ }>;
158
+ shouldCacheIgnoreZoom: boolean;
159
+ exportScale: number;
160
+ currentItemArrowType: "sharp" | "round" | "elbow";
161
+ bindMode: import("@excalidraw/element/types").BindMode;
162
+ gridSize: number;
1192
163
  contextMenu: {
1193
164
  items: import("../components/ContextMenu").ContextMenuItems;
1194
165
  top: number;
@@ -1196,78 +167,63 @@ export declare const actionLoadScene: {
1196
167
  } | null;
1197
168
  showWelcomeScreen: boolean;
1198
169
  isLoading: boolean;
1199
- errorMessage: import("react").ReactNode;
1200
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
170
+ errorMessage: React.ReactNode;
1201
171
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
172
+ boxSelectionMode: import("../types").BoxSelectionMode;
173
+ bindingPreference: "enabled" | "disabled";
1202
174
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1203
175
  editingFrame: string | null;
1204
- activeTool: {
1205
- lastActiveTool: import("../types").ActiveTool | null;
1206
- locked: boolean;
1207
- fromSelection: boolean;
1208
- } & import("../types").ActiveTool;
176
+ preferredSelectionTool: {
177
+ type: "selection" | "lasso";
178
+ initialized: boolean;
179
+ };
1209
180
  penMode: boolean;
1210
181
  penDetected: boolean;
1211
182
  exportBackground: boolean;
1212
183
  exportEmbedScene: boolean;
1213
184
  exportWithDarkMode: boolean;
1214
- exportScale: number;
1215
185
  currentItemStrokeColor: string;
1216
186
  currentItemBackgroundColor: string;
1217
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
187
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
1218
188
  currentItemStrokeWidth: number;
1219
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
189
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1220
190
  currentItemRoughness: number;
1221
191
  currentItemOpacity: number;
1222
- currentItemFontFamily: number;
192
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1223
193
  currentItemFontSize: number;
1224
- currentItemTextAlign: string;
194
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1225
195
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1226
196
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1227
- currentHoveredFontFamily: number | null;
197
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1228
198
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1229
- currentItemArrowType: "round" | "sharp" | "elbow";
1230
199
  cursorButton: "up" | "down";
1231
200
  scrolledOutside: boolean;
1232
201
  isResizing: boolean;
1233
- openMenu: "canvas" | "shape" | null;
1234
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
202
+ openMenu: "canvas" | null;
203
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1235
204
  openSidebar: {
1236
- name: string;
1237
- tab?: string | undefined;
205
+ name: import("../types").SidebarName;
206
+ tab?: import("../types").SidebarTabName;
1238
207
  } | null;
1239
208
  defaultSidebarDockedPreference: boolean;
1240
209
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1241
- hoveredElementIds: Readonly<{
1242
- [id: string]: true;
1243
- }>;
1244
210
  previousSelectedElementIds: {
1245
211
  [id: string]: true;
1246
212
  };
1247
213
  selectedElementsAreBeingDragged: boolean;
1248
- shouldCacheIgnoreZoom: boolean;
1249
214
  toast: {
1250
- message: string;
1251
- closable?: boolean | undefined;
1252
- duration?: number | undefined;
215
+ message: React.ReactNode;
216
+ closable?: boolean;
217
+ duration?: number;
1253
218
  } | null;
1254
- gridSize: number;
1255
219
  gridStep: number;
1256
220
  gridModeEnabled: boolean;
1257
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
221
+ fileHandle: FileSystemFileHandle | null;
1258
222
  stats: {
1259
223
  open: boolean;
1260
224
  panels: number;
1261
225
  };
1262
- currentChartType: import("@excalidraw/element/types").ChartType;
1263
- pasteDialog: {
1264
- shown: false;
1265
- data: null;
1266
- } | {
1267
- shown: true;
1268
- data: import("../charts").Spreadsheet;
1269
- };
1270
- showHyperlinkPopup: false | "editor" | "info";
226
+ showHyperlinkPopup: false | "info" | "editor";
1271
227
  originSnapOffset: {
1272
228
  x: number;
1273
229
  y: number;
@@ -1279,7 +235,7 @@ export declare const actionLoadScene: {
1279
235
  [groupId: string]: true;
1280
236
  };
1281
237
  };
1282
- files: import("../types").BinaryFiles;
238
+ files: BinaryFiles;
1283
239
  captureUpdate: "IMMEDIATELY";
1284
240
  } | {
1285
241
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
@@ -1294,15 +250,21 @@ export declare const actionLoadScene: {
1294
250
  isLoading: boolean;
1295
251
  activeEmbeddable: {
1296
252
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1297
- state: "active" | "hover";
253
+ state: "hover" | "active";
1298
254
  } | null;
1299
255
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1300
256
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1301
257
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1302
258
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1303
259
  isBindingEnabled: boolean;
260
+ boxSelectionMode: import("../types").BoxSelectionMode;
261
+ bindingPreference: "enabled" | "disabled";
262
+ isMidpointSnappingEnabled: boolean;
1304
263
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1305
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
264
+ suggestedBinding: {
265
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
266
+ midPoint?: import("@excalidraw/math").GlobalPoint;
267
+ } | null;
1306
268
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1307
269
  frameRendering: {
1308
270
  enabled: boolean;
@@ -1311,14 +273,17 @@ export declare const actionLoadScene: {
1311
273
  clip: boolean;
1312
274
  };
1313
275
  editingFrame: string | null;
1314
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1315
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1316
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
276
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
277
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1317
278
  activeTool: {
1318
279
  lastActiveTool: import("../types").ActiveTool | null;
1319
280
  locked: boolean;
1320
281
  fromSelection: boolean;
1321
282
  } & import("../types").ActiveTool;
283
+ preferredSelectionTool: {
284
+ type: "selection" | "lasso";
285
+ initialized: boolean;
286
+ };
1322
287
  penMode: boolean;
1323
288
  penDetected: boolean;
1324
289
  exportBackground: boolean;
@@ -1327,19 +292,19 @@ export declare const actionLoadScene: {
1327
292
  exportScale: number;
1328
293
  currentItemStrokeColor: string;
1329
294
  currentItemBackgroundColor: string;
1330
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
295
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
1331
296
  currentItemStrokeWidth: number;
1332
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
297
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1333
298
  currentItemRoughness: number;
1334
299
  currentItemOpacity: number;
1335
- currentItemFontFamily: number;
300
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1336
301
  currentItemFontSize: number;
1337
- currentItemTextAlign: string;
302
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1338
303
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1339
304
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1340
- currentHoveredFontFamily: number | null;
305
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1341
306
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1342
- currentItemArrowType: "round" | "sharp" | "elbow";
307
+ currentItemArrowType: "sharp" | "round" | "elbow";
1343
308
  viewBackgroundColor: string;
1344
309
  scrollX: number;
1345
310
  scrollY: number;
@@ -1348,26 +313,30 @@ export declare const actionLoadScene: {
1348
313
  name: string | null;
1349
314
  isResizing: boolean;
1350
315
  isRotating: boolean;
1351
- zoom: Readonly<{
1352
- value: import("../types").NormalizedZoomValue;
1353
- }>;
1354
- openMenu: "canvas" | "shape" | null;
1355
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
316
+ zoom: import("../types").Zoom;
317
+ openMenu: "canvas" | null;
318
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1356
319
  openSidebar: {
1357
- name: string;
1358
- tab?: string | undefined;
320
+ name: import("../types").SidebarName;
321
+ tab?: import("../types").SidebarTabName;
1359
322
  } | null;
1360
- openDialog: {
323
+ openDialog: null | {
1361
324
  name: "imageExport" | "help" | "jsonExport";
1362
325
  } | {
1363
326
  name: "ttd";
1364
- tab: "mermaid" | "text-to-diagram";
327
+ tab: "text-to-diagram" | "mermaid";
1365
328
  } | {
1366
329
  name: "commandPalette";
330
+ } | {
331
+ name: "settings";
1367
332
  } | {
1368
333
  name: "elementLinkSelector";
1369
- sourceElementId: string;
1370
- } | null;
334
+ sourceElementId: ExcalidrawElement["id"];
335
+ } | {
336
+ name: "charts";
337
+ data: import("../charts").Spreadsheet;
338
+ rawText: string;
339
+ };
1371
340
  defaultSidebarDockedPreference: boolean;
1372
341
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1373
342
  selectedElementIds: Readonly<{
@@ -1382,9 +351,9 @@ export declare const actionLoadScene: {
1382
351
  selectedElementsAreBeingDragged: boolean;
1383
352
  shouldCacheIgnoreZoom: boolean;
1384
353
  toast: {
1385
- message: string;
1386
- closable?: boolean | undefined;
1387
- duration?: number | undefined;
354
+ message: React.ReactNode;
355
+ closable?: boolean;
356
+ duration?: number;
1388
357
  } | null;
1389
358
  zenModeEnabled: boolean;
1390
359
  theme: Theme;
@@ -1395,45 +364,18 @@ export declare const actionLoadScene: {
1395
364
  selectedGroupIds: {
1396
365
  [groupId: string]: boolean;
1397
366
  };
1398
- editingGroupId: string | null;
367
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1399
368
  width: number;
1400
369
  height: number;
1401
370
  offsetTop: number;
1402
371
  offsetLeft: number;
1403
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1404
- collaborators: Map<import("../types").SocketId, Readonly<{
1405
- pointer?: import("../types").CollaboratorPointer | undefined;
1406
- button?: "up" | "down" | undefined;
1407
- selectedElementIds?: Readonly<{
1408
- [id: string]: true;
1409
- }> | undefined;
1410
- username?: string | null | undefined;
1411
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1412
- color?: {
1413
- background: string;
1414
- stroke: string;
1415
- } | undefined;
1416
- avatarUrl?: string | undefined;
1417
- id?: string | undefined;
1418
- socketId?: import("../types").SocketId | undefined;
1419
- isCurrentUser?: boolean | undefined;
1420
- isInCall?: boolean | undefined;
1421
- isSpeaking?: boolean | undefined;
1422
- isMuted?: boolean | undefined;
1423
- }>>;
372
+ fileHandle: FileSystemFileHandle | null;
373
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1424
374
  stats: {
1425
375
  open: boolean;
1426
376
  panels: number;
1427
377
  };
1428
- currentChartType: import("@excalidraw/element/types").ChartType;
1429
- pasteDialog: {
1430
- shown: false;
1431
- data: null;
1432
- } | {
1433
- shown: true;
1434
- data: import("../charts").Spreadsheet;
1435
- };
1436
- showHyperlinkPopup: false | "editor" | "info";
378
+ showHyperlinkPopup: false | "info" | "editor";
1437
379
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1438
380
  snapLines: readonly import("../snapping").SnapLine[];
1439
381
  originSnapOffset: {
@@ -1444,205 +386,24 @@ export declare const actionLoadScene: {
1444
386
  userToFollow: import("../types").UserToFollow | null;
1445
387
  followedBy: Set<import("../types").SocketId>;
1446
388
  isCropping: boolean;
1447
- croppingElementId: string | null;
389
+ croppingElementId: ExcalidrawElement["id"] | null;
1448
390
  searchMatches: Readonly<{
1449
- focusedId: string | null;
391
+ focusedId: ExcalidrawElement["id"] | null;
1450
392
  matches: readonly import("../types").SearchMatch[];
1451
393
  }> | null;
1452
394
  activeLockedId: string | null;
1453
395
  lockedMultiSelections: {
1454
396
  [groupId: string]: true;
1455
397
  };
398
+ bindMode: import("@excalidraw/element/types").BindMode;
1456
399
  };
1457
- files: import("../types").BinaryFiles;
400
+ files: BinaryFiles;
1458
401
  captureUpdate: "EVENTUALLY";
1459
402
  }>;
1460
403
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1461
404
  } & {
1462
405
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1463
406
  };
1464
- export declare const actionExportWithDarkMode: {
1465
- name: "exportWithDarkMode";
1466
- label: string;
1467
- trackEvent: {
1468
- category: "export";
1469
- action: string;
1470
- };
1471
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1472
- appState: {
1473
- exportWithDarkMode: any;
1474
- contextMenu: {
1475
- items: import("../components/ContextMenu").ContextMenuItems;
1476
- top: number;
1477
- left: number;
1478
- } | null;
1479
- showWelcomeScreen: boolean;
1480
- isLoading: boolean;
1481
- errorMessage: import("react").ReactNode;
1482
- activeEmbeddable: {
1483
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1484
- state: "active" | "hover";
1485
- } | null;
1486
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1487
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1488
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1489
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1490
- isBindingEnabled: boolean;
1491
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1492
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1493
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1494
- frameRendering: {
1495
- enabled: boolean;
1496
- name: boolean;
1497
- outline: boolean;
1498
- clip: boolean;
1499
- };
1500
- editingFrame: string | null;
1501
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1502
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1503
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1504
- activeTool: {
1505
- lastActiveTool: import("../types").ActiveTool | null;
1506
- locked: boolean;
1507
- fromSelection: boolean;
1508
- } & import("../types").ActiveTool;
1509
- penMode: boolean;
1510
- penDetected: boolean;
1511
- exportBackground: boolean;
1512
- exportEmbedScene: boolean;
1513
- exportScale: number;
1514
- currentItemStrokeColor: string;
1515
- currentItemBackgroundColor: string;
1516
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1517
- currentItemStrokeWidth: number;
1518
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1519
- currentItemRoughness: number;
1520
- currentItemOpacity: number;
1521
- currentItemFontFamily: number;
1522
- currentItemFontSize: number;
1523
- currentItemTextAlign: string;
1524
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1525
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1526
- currentHoveredFontFamily: number | null;
1527
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1528
- currentItemArrowType: "round" | "sharp" | "elbow";
1529
- viewBackgroundColor: string;
1530
- scrollX: number;
1531
- scrollY: number;
1532
- cursorButton: "up" | "down";
1533
- scrolledOutside: boolean;
1534
- name: string | null;
1535
- isResizing: boolean;
1536
- isRotating: boolean;
1537
- zoom: Readonly<{
1538
- value: import("../types").NormalizedZoomValue;
1539
- }>;
1540
- openMenu: "canvas" | "shape" | null;
1541
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1542
- openSidebar: {
1543
- name: string;
1544
- tab?: string | undefined;
1545
- } | null;
1546
- openDialog: {
1547
- name: "imageExport" | "help" | "jsonExport";
1548
- } | {
1549
- name: "ttd";
1550
- tab: "mermaid" | "text-to-diagram";
1551
- } | {
1552
- name: "commandPalette";
1553
- } | {
1554
- name: "elementLinkSelector";
1555
- sourceElementId: string;
1556
- } | null;
1557
- defaultSidebarDockedPreference: boolean;
1558
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1559
- selectedElementIds: Readonly<{
1560
- [id: string]: true;
1561
- }>;
1562
- hoveredElementIds: Readonly<{
1563
- [id: string]: true;
1564
- }>;
1565
- previousSelectedElementIds: {
1566
- [id: string]: true;
1567
- };
1568
- selectedElementsAreBeingDragged: boolean;
1569
- shouldCacheIgnoreZoom: boolean;
1570
- toast: {
1571
- message: string;
1572
- closable?: boolean | undefined;
1573
- duration?: number | undefined;
1574
- } | null;
1575
- zenModeEnabled: boolean;
1576
- theme: Theme;
1577
- gridSize: number;
1578
- gridStep: number;
1579
- gridModeEnabled: boolean;
1580
- viewModeEnabled: boolean;
1581
- selectedGroupIds: {
1582
- [groupId: string]: boolean;
1583
- };
1584
- editingGroupId: string | null;
1585
- width: number;
1586
- height: number;
1587
- offsetTop: number;
1588
- offsetLeft: number;
1589
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1590
- collaborators: Map<import("../types").SocketId, Readonly<{
1591
- pointer?: import("../types").CollaboratorPointer | undefined;
1592
- button?: "up" | "down" | undefined;
1593
- selectedElementIds?: Readonly<{
1594
- [id: string]: true;
1595
- }> | undefined;
1596
- username?: string | null | undefined;
1597
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1598
- color?: {
1599
- background: string;
1600
- stroke: string;
1601
- } | undefined;
1602
- avatarUrl?: string | undefined;
1603
- id?: string | undefined;
1604
- socketId?: import("../types").SocketId | undefined;
1605
- isCurrentUser?: boolean | undefined;
1606
- isInCall?: boolean | undefined;
1607
- isSpeaking?: boolean | undefined;
1608
- isMuted?: boolean | undefined;
1609
- }>>;
1610
- stats: {
1611
- open: boolean;
1612
- panels: number;
1613
- };
1614
- currentChartType: import("@excalidraw/element/types").ChartType;
1615
- pasteDialog: {
1616
- shown: false;
1617
- data: null;
1618
- } | {
1619
- shown: true;
1620
- data: import("../charts").Spreadsheet;
1621
- };
1622
- showHyperlinkPopup: false | "editor" | "info";
1623
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1624
- snapLines: readonly import("../snapping").SnapLine[];
1625
- originSnapOffset: {
1626
- x: number;
1627
- y: number;
1628
- } | null;
1629
- objectsSnapModeEnabled: boolean;
1630
- userToFollow: import("../types").UserToFollow | null;
1631
- followedBy: Set<import("../types").SocketId>;
1632
- isCropping: boolean;
1633
- croppingElementId: string | null;
1634
- searchMatches: Readonly<{
1635
- focusedId: string | null;
1636
- matches: readonly import("../types").SearchMatch[];
1637
- }> | null;
1638
- activeLockedId: string | null;
1639
- lockedMultiSelections: {
1640
- [groupId: string]: true;
1641
- };
1642
- };
1643
- captureUpdate: "EVENTUALLY";
1644
- };
1645
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1646
- } & {
1647
- keyTest?: undefined;
407
+ export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
408
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
1648
409
  };