@excalidraw/math 0.18.0-5fffc47 → 0.18.0-60b2758

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