@excalidraw/math 0.18.0-d1f3982 → 0.18.0-d9e8a33

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