@excalidraw/common 0.18.0-5fffc47 → 0.18.0-6135548

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 (207) hide show
  1. package/dist/dev/index.js +1299 -256
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +3 -3
  4. package/dist/types/common/src/bounds.d.ts +10 -0
  5. package/dist/types/common/src/colors.d.ts +59 -39
  6. package/dist/types/common/src/constants.d.ts +16 -28
  7. package/dist/types/common/src/editorInterface.d.ts +34 -0
  8. package/dist/types/common/src/font-metadata.d.ts +1 -3
  9. package/dist/types/common/src/index.d.ts +2 -0
  10. package/dist/types/common/src/keys.d.ts +1 -1
  11. package/dist/types/common/src/utility-types.d.ts +0 -1
  12. package/dist/types/common/src/utils.d.ts +48 -36
  13. package/dist/types/element/src/Scene.d.ts +4 -4
  14. package/dist/types/element/src/binding.d.ts +58 -44
  15. package/dist/types/element/src/bounds.d.ts +2 -10
  16. package/dist/types/element/src/collision.d.ts +6 -2
  17. package/dist/types/element/src/comparisons.d.ts +7 -7
  18. package/dist/types/element/src/dragElements.d.ts +3 -3
  19. package/dist/types/element/src/duplicate.d.ts +3 -3
  20. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  21. package/dist/types/element/src/frame.d.ts +7 -3
  22. package/dist/types/element/src/heading.d.ts +2 -1
  23. package/dist/types/element/src/image.d.ts +1 -11
  24. package/dist/types/element/src/index.d.ts +1 -3
  25. package/dist/types/element/src/linearElementEditor.d.ts +16 -20
  26. package/dist/types/element/src/mutateElement.d.ts +3 -1
  27. package/dist/types/element/src/newElement.d.ts +6 -6
  28. package/dist/types/element/src/renderElement.d.ts +1 -7
  29. package/dist/types/element/src/resizeElements.d.ts +10 -10
  30. package/dist/types/element/src/resizeTest.d.ts +6 -5
  31. package/dist/types/element/src/selection.d.ts +3 -7
  32. package/dist/types/element/src/shape.d.ts +8 -7
  33. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  34. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  35. package/dist/types/element/src/transformHandles.d.ts +8 -27
  36. package/dist/types/element/src/typeChecks.d.ts +4 -7
  37. package/dist/types/element/src/types.d.ts +7 -11
  38. package/dist/types/element/src/utils.d.ts +5 -2
  39. package/dist/types/element/src/zindex.d.ts +7 -1
  40. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +123 -181
  41. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  42. package/dist/types/excalidraw/actions/actionBoundText.d.ts +57 -96
  43. package/dist/types/excalidraw/actions/actionCanvas.d.ts +341 -763
  44. package/dist/types/excalidraw/actions/actionClipboard.d.ts +93 -893
  45. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +27 -47
  46. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +95 -159
  47. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  48. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -4
  49. package/dist/types/excalidraw/actions/actionElementLink.d.ts +42 -64
  50. package/dist/types/excalidraw/actions/actionElementLock.d.ts +56 -95
  51. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +44 -64
  52. package/dist/types/excalidraw/actions/actionExport.d.ts +124 -1129
  53. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -404
  54. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  55. package/dist/types/excalidraw/actions/actionFrame.d.ts +232 -347
  56. package/dist/types/excalidraw/actions/actionGroup.d.ts +60 -107
  57. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +159 -219
  58. package/dist/types/excalidraw/actions/actionLink.d.ts +45 -65
  59. package/dist/types/excalidraw/actions/actionMenu.d.ts +36 -58
  60. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -369
  61. package/dist/types/excalidraw/actions/actionProperties.d.ts +117 -2560
  62. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +30 -54
  63. package/dist/types/excalidraw/actions/actionStyles.d.ts +27 -47
  64. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  65. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +44 -64
  66. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +44 -64
  67. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +36 -58
  68. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  69. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +43 -63
  70. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +44 -64
  71. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +44 -64
  72. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  73. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  74. package/dist/types/excalidraw/actions/types.d.ts +3 -3
  75. package/dist/types/excalidraw/appState.d.ts +15 -14
  76. package/dist/types/excalidraw/clipboard.d.ts +7 -31
  77. package/dist/types/excalidraw/components/Actions.d.ts +5 -2
  78. package/dist/types/excalidraw/components/App.d.ts +58 -58
  79. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  80. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  81. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -2
  82. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  83. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  84. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -3
  85. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  86. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  87. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  88. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  89. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  90. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  91. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -1
  92. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  93. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  94. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  95. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  96. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  97. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  98. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  99. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  100. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  101. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  102. package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
  103. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
  104. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  105. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  106. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  107. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  108. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  109. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  110. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  111. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  112. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  113. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  114. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  115. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  116. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  117. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  118. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  119. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  120. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  121. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  122. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  123. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +27 -0
  124. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  125. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +26 -0
  126. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  127. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  128. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  129. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  130. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +4 -25
  131. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
  132. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  133. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  134. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  135. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  136. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  137. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  138. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +8 -0
  139. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  140. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  141. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  142. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  143. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +91 -0
  144. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  145. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
  146. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  147. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  148. package/dist/types/excalidraw/components/Toast.d.ts +3 -3
  149. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  150. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
  151. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -33
  152. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +5 -5
  153. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  154. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +12 -19
  155. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  156. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  157. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  158. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  159. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  160. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  161. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  162. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  163. package/dist/types/excalidraw/components/icons.d.ts +21 -12
  164. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
  165. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -2
  166. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +26 -32
  167. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  168. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
  169. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
  170. package/dist/types/excalidraw/data/blob.d.ts +321 -3
  171. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  172. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  173. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  174. package/dist/types/excalidraw/data/index.d.ts +3 -3
  175. package/dist/types/excalidraw/data/json.d.ts +159 -2
  176. package/dist/types/excalidraw/data/library.d.ts +24 -9
  177. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  178. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  179. package/dist/types/excalidraw/errors.d.ts +14 -0
  180. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  181. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  182. package/dist/types/excalidraw/i18n.d.ts +2 -2
  183. package/dist/types/excalidraw/index.d.ts +6 -7
  184. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  185. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  186. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  187. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  188. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  189. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  190. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  191. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  192. package/dist/types/excalidraw/snapping.d.ts +5 -5
  193. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  194. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  195. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  196. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  197. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  198. package/dist/types/excalidraw/types.d.ts +22 -20
  199. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  200. package/dist/types/math/src/polygon.d.ts +2 -2
  201. package/dist/types/math/src/range.d.ts +1 -3
  202. package/dist/types/math/src/segment.d.ts +3 -3
  203. package/dist/types/utils/src/bbox.d.ts +1 -1
  204. package/dist/types/utils/src/export.d.ts +5 -5
  205. package/dist/types/utils/src/shape.d.ts +6 -6
  206. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  207. package/package.json +7 -1
@@ -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,7 @@ 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: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
791
50
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
792
51
  frameRendering: {
793
52
  enabled: boolean;
@@ -815,19 +74,19 @@ export declare const actionSaveToActiveFile: {
815
74
  exportScale: number;
816
75
  currentItemStrokeColor: string;
817
76
  currentItemBackgroundColor: string;
818
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
77
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
819
78
  currentItemStrokeWidth: number;
820
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
79
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
821
80
  currentItemRoughness: number;
822
81
  currentItemOpacity: number;
823
- currentItemFontFamily: number;
82
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
824
83
  currentItemFontSize: number;
825
- currentItemTextAlign: string;
84
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
826
85
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
827
86
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
828
- currentHoveredFontFamily: number | null;
87
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
829
88
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
830
- currentItemArrowType: "round" | "sharp" | "elbow";
89
+ currentItemArrowType: "sharp" | "round" | "elbow";
831
90
  viewBackgroundColor: string;
832
91
  scrollX: number;
833
92
  scrollY: number;
@@ -836,26 +95,26 @@ export declare const actionSaveToActiveFile: {
836
95
  name: string | null;
837
96
  isResizing: boolean;
838
97
  isRotating: boolean;
839
- zoom: Readonly<{
840
- value: import("../types").NormalizedZoomValue;
841
- }>;
98
+ zoom: import("../types").Zoom;
842
99
  openMenu: "canvas" | null;
843
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
100
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
844
101
  openSidebar: {
845
- name: string;
846
- tab?: string | undefined;
102
+ name: import("../types").SidebarName;
103
+ tab?: import("../types").SidebarTabName;
847
104
  } | null;
848
- openDialog: {
105
+ openDialog: null | {
849
106
  name: "imageExport" | "help" | "jsonExport";
850
107
  } | {
851
108
  name: "ttd";
852
- tab: "mermaid" | "text-to-diagram";
109
+ tab: "text-to-diagram" | "mermaid";
853
110
  } | {
854
111
  name: "commandPalette";
112
+ } | {
113
+ name: "settings";
855
114
  } | {
856
115
  name: "elementLinkSelector";
857
- sourceElementId: string;
858
- } | null;
116
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
117
+ };
859
118
  defaultSidebarDockedPreference: boolean;
860
119
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
861
120
  selectedElementIds: Readonly<{
@@ -878,31 +137,12 @@ export declare const actionSaveToActiveFile: {
878
137
  selectedGroupIds: {
879
138
  [groupId: string]: boolean;
880
139
  };
881
- editingGroupId: string | null;
140
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
882
141
  width: number;
883
142
  height: number;
884
143
  offsetTop: number;
885
144
  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
- }>>;
145
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
906
146
  stats: {
907
147
  open: boolean;
908
148
  panels: number;
@@ -915,7 +155,7 @@ export declare const actionSaveToActiveFile: {
915
155
  shown: true;
916
156
  data: import("../charts").Spreadsheet;
917
157
  };
918
- showHyperlinkPopup: false | "editor" | "info";
158
+ showHyperlinkPopup: false | "info" | "editor";
919
159
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
920
160
  snapLines: readonly import("../snapping").SnapLine[];
921
161
  originSnapOffset: {
@@ -926,16 +166,16 @@ export declare const actionSaveToActiveFile: {
926
166
  userToFollow: import("../types").UserToFollow | null;
927
167
  followedBy: Set<import("../types").SocketId>;
928
168
  isCropping: boolean;
929
- croppingElementId: string | null;
169
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
930
170
  searchMatches: Readonly<{
931
- focusedId: string | null;
171
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
932
172
  matches: readonly import("../types").SearchMatch[];
933
173
  }> | null;
934
174
  activeLockedId: string | null;
935
175
  lockedMultiSelections: {
936
176
  [groupId: string]: true;
937
177
  };
938
- stylesPanelMode: "compact" | "full" | "mobile";
178
+ bindMode: import("@excalidraw/element/types").BindMode;
939
179
  };
940
180
  } | {
941
181
  captureUpdate: "EVENTUALLY";
@@ -953,7 +193,7 @@ export declare const actionSaveFileToDisk: {
953
193
  trackEvent: {
954
194
  category: "export";
955
195
  };
956
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
196
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
957
197
  captureUpdate: "EVENTUALLY";
958
198
  appState: {
959
199
  openDialog: null;
@@ -968,10 +208,10 @@ export declare const actionSaveFileToDisk: {
968
208
  } | null;
969
209
  showWelcomeScreen: boolean;
970
210
  isLoading: boolean;
971
- errorMessage: import("react").ReactNode;
211
+ errorMessage: React.ReactNode;
972
212
  activeEmbeddable: {
973
213
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
974
- state: "active" | "hover";
214
+ state: "hover" | "active";
975
215
  } | null;
976
216
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
977
217
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -979,7 +219,7 @@ export declare const actionSaveFileToDisk: {
979
219
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
980
220
  isBindingEnabled: boolean;
981
221
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
982
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
222
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
983
223
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
984
224
  frameRendering: {
985
225
  enabled: boolean;
@@ -1007,19 +247,19 @@ export declare const actionSaveFileToDisk: {
1007
247
  exportScale: number;
1008
248
  currentItemStrokeColor: string;
1009
249
  currentItemBackgroundColor: string;
1010
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
250
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1011
251
  currentItemStrokeWidth: number;
1012
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
252
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1013
253
  currentItemRoughness: number;
1014
254
  currentItemOpacity: number;
1015
- currentItemFontFamily: number;
255
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1016
256
  currentItemFontSize: number;
1017
- currentItemTextAlign: string;
257
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1018
258
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1019
259
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1020
- currentHoveredFontFamily: number | null;
260
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1021
261
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1022
- currentItemArrowType: "round" | "sharp" | "elbow";
262
+ currentItemArrowType: "sharp" | "round" | "elbow";
1023
263
  viewBackgroundColor: string;
1024
264
  scrollX: number;
1025
265
  scrollY: number;
@@ -1028,14 +268,12 @@ export declare const actionSaveFileToDisk: {
1028
268
  name: string | null;
1029
269
  isResizing: boolean;
1030
270
  isRotating: boolean;
1031
- zoom: Readonly<{
1032
- value: import("../types").NormalizedZoomValue;
1033
- }>;
271
+ zoom: import("../types").Zoom;
1034
272
  openMenu: "canvas" | null;
1035
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
273
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1036
274
  openSidebar: {
1037
- name: string;
1038
- tab?: string | undefined;
275
+ name: import("../types").SidebarName;
276
+ tab?: import("../types").SidebarTabName;
1039
277
  } | null;
1040
278
  defaultSidebarDockedPreference: boolean;
1041
279
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -1059,31 +297,12 @@ export declare const actionSaveFileToDisk: {
1059
297
  selectedGroupIds: {
1060
298
  [groupId: string]: boolean;
1061
299
  };
1062
- editingGroupId: string | null;
300
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1063
301
  width: number;
1064
302
  height: number;
1065
303
  offsetTop: number;
1066
304
  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
- }>>;
305
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1087
306
  stats: {
1088
307
  open: boolean;
1089
308
  panels: number;
@@ -1096,7 +315,7 @@ export declare const actionSaveFileToDisk: {
1096
315
  shown: true;
1097
316
  data: import("../charts").Spreadsheet;
1098
317
  };
1099
- showHyperlinkPopup: false | "editor" | "info";
318
+ showHyperlinkPopup: false | "info" | "editor";
1100
319
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1101
320
  snapLines: readonly import("../snapping").SnapLine[];
1102
321
  originSnapOffset: {
@@ -1107,16 +326,16 @@ export declare const actionSaveFileToDisk: {
1107
326
  userToFollow: import("../types").UserToFollow | null;
1108
327
  followedBy: Set<import("../types").SocketId>;
1109
328
  isCropping: boolean;
1110
- croppingElementId: string | null;
329
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1111
330
  searchMatches: Readonly<{
1112
- focusedId: string | null;
331
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1113
332
  matches: readonly import("../types").SearchMatch[];
1114
333
  }> | null;
1115
334
  activeLockedId: string | null;
1116
335
  lockedMultiSelections: {
1117
336
  [groupId: string]: true;
1118
337
  };
1119
- stylesPanelMode: "compact" | "full" | "mobile";
338
+ bindMode: import("@excalidraw/element/types").BindMode;
1120
339
  };
1121
340
  } | {
1122
341
  captureUpdate: "EVENTUALLY";
@@ -1133,11 +352,12 @@ export declare const actionLoadScene: {
1133
352
  trackEvent: {
1134
353
  category: "export";
1135
354
  };
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 | {
355
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
356
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<false | {
1138
357
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
1139
358
  appState: {
1140
359
  viewBackgroundColor: string;
360
+ theme: Theme;
1141
361
  frameRendering: {
1142
362
  enabled: boolean;
1143
363
  name: boolean;
@@ -1145,32 +365,31 @@ export declare const actionLoadScene: {
1145
365
  clip: boolean;
1146
366
  };
1147
367
  name: string | null;
1148
- zoom: Readonly<{
1149
- value: import("../types").NormalizedZoomValue;
1150
- }>;
368
+ zoom: import("../types").Zoom;
1151
369
  scrollX: number;
1152
370
  scrollY: number;
1153
371
  viewModeEnabled: boolean;
1154
- openDialog: {
372
+ openDialog: null | {
1155
373
  name: "imageExport" | "help" | "jsonExport";
1156
374
  } | {
1157
375
  name: "ttd";
1158
- tab: "mermaid" | "text-to-diagram";
376
+ tab: "text-to-diagram" | "mermaid";
1159
377
  } | {
1160
378
  name: "commandPalette";
379
+ } | {
380
+ name: "settings";
1161
381
  } | {
1162
382
  name: "elementLinkSelector";
1163
- sourceElementId: string;
1164
- } | null;
1165
- editingGroupId: string | null;
383
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
384
+ };
385
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1166
386
  selectedElementIds: Readonly<{
1167
387
  [id: string]: true;
1168
388
  }>;
1169
389
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1170
- theme: Theme;
1171
390
  activeEmbeddable: {
1172
391
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1173
- state: "active" | "hover";
392
+ state: "hover" | "active";
1174
393
  } | null;
1175
394
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1176
395
  selectedGroupIds: {
@@ -1178,40 +397,29 @@ export declare const actionLoadScene: {
1178
397
  };
1179
398
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1180
399
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
400
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1181
401
  isBindingEnabled: boolean;
1182
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
402
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1183
403
  isRotating: boolean;
1184
404
  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
- }>>;
405
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1205
406
  snapLines: readonly import("../snapping").SnapLine[];
1206
407
  zenModeEnabled: boolean;
1207
408
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1208
409
  isCropping: boolean;
1209
- croppingElementId: string | null;
410
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1210
411
  searchMatches: Readonly<{
1211
- focusedId: string | null;
412
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1212
413
  matches: readonly import("../types").SearchMatch[];
1213
414
  }> | null;
1214
415
  activeLockedId: string | null;
416
+ hoveredElementIds: Readonly<{
417
+ [id: string]: true;
418
+ }>;
419
+ shouldCacheIgnoreZoom: boolean;
420
+ exportScale: number;
421
+ bindMode: import("@excalidraw/element/types").BindMode;
422
+ gridSize: number;
1215
423
  contextMenu: {
1216
424
  items: import("../components/ContextMenu").ContextMenuItems;
1217
425
  top: number;
@@ -1219,8 +427,7 @@ export declare const actionLoadScene: {
1219
427
  } | null;
1220
428
  showWelcomeScreen: boolean;
1221
429
  isLoading: boolean;
1222
- errorMessage: import("react").ReactNode;
1223
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
430
+ errorMessage: React.ReactNode;
1224
431
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1225
432
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1226
433
  editingFrame: string | null;
@@ -1238,47 +445,41 @@ export declare const actionLoadScene: {
1238
445
  exportBackground: boolean;
1239
446
  exportEmbedScene: boolean;
1240
447
  exportWithDarkMode: boolean;
1241
- exportScale: number;
1242
448
  currentItemStrokeColor: string;
1243
449
  currentItemBackgroundColor: string;
1244
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
450
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1245
451
  currentItemStrokeWidth: number;
1246
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
452
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1247
453
  currentItemRoughness: number;
1248
454
  currentItemOpacity: number;
1249
- currentItemFontFamily: number;
455
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1250
456
  currentItemFontSize: number;
1251
- currentItemTextAlign: string;
457
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1252
458
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1253
459
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1254
- currentHoveredFontFamily: number | null;
460
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1255
461
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1256
- currentItemArrowType: "round" | "sharp" | "elbow";
462
+ currentItemArrowType: "sharp" | "round" | "elbow";
1257
463
  cursorButton: "up" | "down";
1258
464
  scrolledOutside: boolean;
1259
465
  isResizing: boolean;
1260
466
  openMenu: "canvas" | null;
1261
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
467
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1262
468
  openSidebar: {
1263
- name: string;
1264
- tab?: string | undefined;
469
+ name: import("../types").SidebarName;
470
+ tab?: import("../types").SidebarTabName;
1265
471
  } | null;
1266
472
  defaultSidebarDockedPreference: boolean;
1267
473
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1268
- hoveredElementIds: Readonly<{
1269
- [id: string]: true;
1270
- }>;
1271
474
  previousSelectedElementIds: {
1272
475
  [id: string]: true;
1273
476
  };
1274
477
  selectedElementsAreBeingDragged: boolean;
1275
- shouldCacheIgnoreZoom: boolean;
1276
478
  toast: {
1277
479
  message: string;
1278
- closable?: boolean | undefined;
1279
- duration?: number | undefined;
480
+ closable?: boolean;
481
+ duration?: number;
1280
482
  } | null;
1281
- gridSize: number;
1282
483
  gridStep: number;
1283
484
  gridModeEnabled: boolean;
1284
485
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
@@ -1294,7 +495,7 @@ export declare const actionLoadScene: {
1294
495
  shown: true;
1295
496
  data: import("../charts").Spreadsheet;
1296
497
  };
1297
- showHyperlinkPopup: false | "editor" | "info";
498
+ showHyperlinkPopup: false | "info" | "editor";
1298
499
  originSnapOffset: {
1299
500
  x: number;
1300
501
  y: number;
@@ -1305,7 +506,6 @@ export declare const actionLoadScene: {
1305
506
  lockedMultiSelections: {
1306
507
  [groupId: string]: true;
1307
508
  };
1308
- stylesPanelMode: "compact" | "full" | "mobile";
1309
509
  };
1310
510
  files: import("../types").BinaryFiles;
1311
511
  captureUpdate: "IMMEDIATELY";
@@ -1322,7 +522,7 @@ export declare const actionLoadScene: {
1322
522
  isLoading: boolean;
1323
523
  activeEmbeddable: {
1324
524
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1325
- state: "active" | "hover";
525
+ state: "hover" | "active";
1326
526
  } | null;
1327
527
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1328
528
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1330,7 +530,7 @@ export declare const actionLoadScene: {
1330
530
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1331
531
  isBindingEnabled: boolean;
1332
532
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1333
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
533
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1334
534
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1335
535
  frameRendering: {
1336
536
  enabled: boolean;
@@ -1358,19 +558,19 @@ export declare const actionLoadScene: {
1358
558
  exportScale: number;
1359
559
  currentItemStrokeColor: string;
1360
560
  currentItemBackgroundColor: string;
1361
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
561
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1362
562
  currentItemStrokeWidth: number;
1363
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
563
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1364
564
  currentItemRoughness: number;
1365
565
  currentItemOpacity: number;
1366
- currentItemFontFamily: number;
566
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1367
567
  currentItemFontSize: number;
1368
- currentItemTextAlign: string;
568
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1369
569
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1370
570
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1371
- currentHoveredFontFamily: number | null;
571
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1372
572
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1373
- currentItemArrowType: "round" | "sharp" | "elbow";
573
+ currentItemArrowType: "sharp" | "round" | "elbow";
1374
574
  viewBackgroundColor: string;
1375
575
  scrollX: number;
1376
576
  scrollY: number;
@@ -1379,26 +579,26 @@ export declare const actionLoadScene: {
1379
579
  name: string | null;
1380
580
  isResizing: boolean;
1381
581
  isRotating: boolean;
1382
- zoom: Readonly<{
1383
- value: import("../types").NormalizedZoomValue;
1384
- }>;
582
+ zoom: import("../types").Zoom;
1385
583
  openMenu: "canvas" | null;
1386
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
584
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1387
585
  openSidebar: {
1388
- name: string;
1389
- tab?: string | undefined;
586
+ name: import("../types").SidebarName;
587
+ tab?: import("../types").SidebarTabName;
1390
588
  } | null;
1391
- openDialog: {
589
+ openDialog: null | {
1392
590
  name: "imageExport" | "help" | "jsonExport";
1393
591
  } | {
1394
592
  name: "ttd";
1395
- tab: "mermaid" | "text-to-diagram";
593
+ tab: "text-to-diagram" | "mermaid";
1396
594
  } | {
1397
595
  name: "commandPalette";
596
+ } | {
597
+ name: "settings";
1398
598
  } | {
1399
599
  name: "elementLinkSelector";
1400
- sourceElementId: string;
1401
- } | null;
600
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
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,32 +626,13 @@ 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;
@@ -1464,7 +645,7 @@ export declare const actionLoadScene: {
1464
645
  shown: true;
1465
646
  data: import("../charts").Spreadsheet;
1466
647
  };
1467
- showHyperlinkPopup: false | "editor" | "info";
648
+ showHyperlinkPopup: false | "info" | "editor";
1468
649
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1469
650
  snapLines: readonly import("../snapping").SnapLine[];
1470
651
  originSnapOffset: {
@@ -1475,16 +656,16 @@ export declare const actionLoadScene: {
1475
656
  userToFollow: import("../types").UserToFollow | null;
1476
657
  followedBy: Set<import("../types").SocketId>;
1477
658
  isCropping: boolean;
1478
- croppingElementId: string | null;
659
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1479
660
  searchMatches: Readonly<{
1480
- focusedId: string | null;
661
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1481
662
  matches: readonly import("../types").SearchMatch[];
1482
663
  }> | null;
1483
664
  activeLockedId: string | null;
1484
665
  lockedMultiSelections: {
1485
666
  [groupId: string]: true;
1486
667
  };
1487
- stylesPanelMode: "compact" | "full" | "mobile";
668
+ bindMode: import("@excalidraw/element/types").BindMode;
1488
669
  };
1489
670
  files: import("../types").BinaryFiles;
1490
671
  captureUpdate: "EVENTUALLY";
@@ -1493,192 +674,6 @@ export declare const actionLoadScene: {
1493
674
  } & {
1494
675
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1495
676
  };
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;
677
+ export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
678
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
1684
679
  };