@excalidraw/math 0.18.0-a8acc82 → 0.18.0-a9ca16e

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