@excalidraw/math 0.18.0-7b8a5f54c → 0.18.0-7ea3229

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