@zsviczian/excalidraw 0.14.2-obsidian-3 → 0.14.2-obsidian-4

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 (241) hide show
  1. package/dist/.DS_Store +0 -0
  2. package/dist/excalidraw.development.js +184 -184
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/package.json +1 -1
  5. package/types/actions/actionAddToLibrary.d.ts +372 -369
  6. package/types/actions/actionAlign.d.ts +91 -91
  7. package/types/actions/actionBoundText.d.ts +284 -164
  8. package/types/actions/actionCanvas.d.ts +1315 -1305
  9. package/types/actions/actionClipboard.d.ts +717 -712
  10. package/types/actions/actionDeleteSelected.d.ts +409 -406
  11. package/types/actions/actionDistribute.d.ts +33 -33
  12. package/types/actions/actionDuplicateSelection.d.ts +22 -22
  13. package/types/actions/actionExport.d.ts +1181 -1172
  14. package/types/actions/actionFinalize.d.ts +256 -254
  15. package/types/actions/actionFlip.d.ts +35 -35
  16. package/types/actions/actionGroup.d.ts +45 -45
  17. package/types/actions/actionHistory.d.ts +6 -6
  18. package/types/actions/actionLinearEditor.d.ts +135 -134
  19. package/types/actions/actionMenu.d.ts +410 -407
  20. package/types/actions/actionNavigate.d.ts +14 -14
  21. package/types/actions/actionProperties.d.ts +1714 -1701
  22. package/types/actions/actionSelectAll.d.ts +16 -16
  23. package/types/actions/actionStyles.d.ts +149 -148
  24. package/types/actions/actionToggleGridMode.d.ts +138 -137
  25. package/types/actions/actionToggleLock.d.ts +135 -134
  26. package/types/actions/actionToggleStats.d.ts +135 -134
  27. package/types/actions/actionToggleViewMode.d.ts +137 -136
  28. package/types/actions/actionToggleZenMode.d.ts +137 -136
  29. package/types/actions/actionZindex.d.ts +67 -67
  30. package/types/actions/index.d.ts +24 -24
  31. package/types/actions/manager.d.ts +21 -21
  32. package/types/actions/register.d.ts +5 -5
  33. package/types/actions/shortcuts.d.ts +4 -4
  34. package/types/actions/types.d.ts +44 -44
  35. package/types/align.d.ts +6 -6
  36. package/types/analytics.d.ts +1 -1
  37. package/types/appState.d.ts +78 -78
  38. package/types/charts.d.ts +27 -27
  39. package/types/clients.d.ts +6 -6
  40. package/types/clipboard.d.ts +25 -25
  41. package/types/colors.d.ts +6 -6
  42. package/types/components/Actions.d.ts +36 -36
  43. package/types/components/ActiveConfirmDialog.d.ts +24 -24
  44. package/types/components/App.d.ts +248 -248
  45. package/types/components/Avatar.d.ts +11 -11
  46. package/types/components/BraveMeasureTextError.d.ts +2 -2
  47. package/types/components/Button.d.ts +15 -15
  48. package/types/components/ButtonIconSelect.d.ts +11 -11
  49. package/types/components/Card.d.ts +7 -7
  50. package/types/components/CheckboxItem.d.ts +8 -8
  51. package/types/components/ColorPicker.d.ts +19 -19
  52. package/types/components/ConfirmDialog.d.ts +10 -10
  53. package/types/components/ContextMenu.d.ts +15 -15
  54. package/types/components/DarkModeToggle.d.ts +7 -7
  55. package/types/components/Dialog.d.ts +14 -14
  56. package/types/components/DialogActionButton.d.ts +10 -10
  57. package/types/components/ErrorDialog.d.ts +5 -5
  58. package/types/components/FixedSideContainer.d.ts +9 -9
  59. package/types/components/HandButton.d.ts +10 -10
  60. package/types/components/HelpButton.d.ts +7 -7
  61. package/types/components/HelpDialog.d.ts +4 -4
  62. package/types/components/HintViewer.d.ts +11 -11
  63. package/types/components/IconPicker.d.ts +13 -13
  64. package/types/components/ImageExportDialog.d.ts +18 -18
  65. package/types/components/InitializeApp.d.ts +10 -10
  66. package/types/components/Island.d.ts +10 -10
  67. package/types/components/JSONExportDialog.d.ts +15 -15
  68. package/types/components/LayerUI.d.ts +37 -37
  69. package/types/components/LibraryButton.d.ts +8 -8
  70. package/types/components/LibraryMenu.d.ts +25 -25
  71. package/types/components/LibraryMenuBrowseButton.d.ts +7 -7
  72. package/types/components/LibraryMenuHeaderContent.d.ts +35 -35
  73. package/types/components/LibraryMenuItems.d.ts +15 -15
  74. package/types/components/LibraryUnit.d.ts +11 -11
  75. package/types/components/LoadingMessage.d.ts +6 -6
  76. package/types/components/LockButton.d.ts +10 -10
  77. package/types/components/MobileMenu.d.ts +26 -26
  78. package/types/components/Modal.d.ts +13 -12
  79. package/types/components/PasteChartDialog.d.ts +9 -9
  80. package/types/components/PenModeButton.d.ts +12 -12
  81. package/types/components/Popover.d.ts +15 -15
  82. package/types/components/ProjectName.d.ts +10 -10
  83. package/types/components/PublishLibrary.d.ts +16 -16
  84. package/types/components/Section.d.ts +6 -6
  85. package/types/components/Sidebar/Sidebar.d.ts +73 -73
  86. package/types/components/Sidebar/SidebarHeader.d.ts +20 -20
  87. package/types/components/Sidebar/common.d.ts +16 -16
  88. package/types/components/SingleLibraryItem.d.ts +10 -10
  89. package/types/components/Spinner.d.ts +6 -6
  90. package/types/components/Stack.d.ts +15 -15
  91. package/types/components/Stats.d.ts +11 -11
  92. package/types/components/Toast.d.ts +7 -7
  93. package/types/components/ToolButton.d.ts +46 -46
  94. package/types/components/Tooltip.d.ts +17 -17
  95. package/types/components/UserList.d.ts +8 -8
  96. package/types/components/context/tunnels.d.ts +16 -16
  97. package/types/components/dropdownMenu/DropdownMenu.d.ts +66 -66
  98. package/types/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
  99. package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  100. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -12
  101. package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +6 -6
  102. package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +6 -6
  103. package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +13 -13
  104. package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  105. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +9 -9
  106. package/types/components/dropdownMenu/common.d.ts +6 -6
  107. package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  108. package/types/components/footer/Footer.d.ts +12 -12
  109. package/types/components/footer/FooterCenter.d.ts +8 -8
  110. package/types/components/hoc/withInternalFallback.d.ts +4 -4
  111. package/types/components/hoc/withUpstreamOverride.d.ts +10 -10
  112. package/types/components/icons.d.ts +142 -142
  113. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +10 -10
  114. package/types/components/main-menu/DefaultItems.d.ts +44 -44
  115. package/types/components/main-menu/MainMenu.d.ts +60 -60
  116. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +58 -58
  117. package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  118. package/types/components/welcome-screen/WelcomeScreen.d.ts +85 -85
  119. package/types/constants.d.ts +170 -170
  120. package/types/data/blob.d.ts +48 -48
  121. package/types/data/encode.d.ts +53 -53
  122. package/types/data/encryption.d.ts +9 -9
  123. package/types/data/filesystem.d.ts +18 -18
  124. package/types/data/image.d.ts +15 -15
  125. package/types/data/index.d.ts +13 -13
  126. package/types/data/json.d.ts +16 -16
  127. package/types/data/library.d.ts +96 -96
  128. package/types/data/resave.d.ts +5 -5
  129. package/types/data/restore.d.ts +21 -21
  130. package/types/data/types.d.ts +47 -47
  131. package/types/distribute.d.ts +6 -6
  132. package/types/element/Hyperlink.d.ts +155 -154
  133. package/types/element/binding.d.ts +33 -33
  134. package/types/element/bounds.d.ts +28 -28
  135. package/types/element/collision.d.ts +21 -21
  136. package/types/element/dragElements.d.ts +5 -5
  137. package/types/element/image.d.ts +22 -22
  138. package/types/element/index.d.ts +20 -20
  139. package/types/element/linearElementEditor.d.ts +273 -272
  140. package/types/element/mutateElement.d.ts +12 -12
  141. package/types/element/newElement.d.ts +65 -65
  142. package/types/element/resizeElements.d.ts +8 -8
  143. package/types/element/resizeTest.d.ts +13 -13
  144. package/types/element/showSelectedShapeActions.d.ts +3 -3
  145. package/types/element/sizeHelpers.d.ts +21 -21
  146. package/types/element/sortElements.d.ts +2 -2
  147. package/types/element/textElement.d.ts +73 -73
  148. package/types/element/textWysiwyg.d.ts +21 -21
  149. package/types/element/transformHandles.d.ts +28 -28
  150. package/types/element/typeChecks.d.ts +27 -27
  151. package/types/element/types.d.ts +149 -149
  152. package/types/errors.d.ts +8 -8
  153. package/types/ga.d.ts +63 -63
  154. package/types/gadirections.d.ts +8 -8
  155. package/types/galines.d.ts +22 -22
  156. package/types/gapoints.d.ts +7 -7
  157. package/types/gatransforms.d.ts +10 -10
  158. package/types/gesture.d.ts +6 -6
  159. package/types/groups.d.ts +27 -27
  160. package/types/history.d.ts +52 -52
  161. package/types/hooks/useCallbackRefState.d.ts +1 -1
  162. package/types/hooks/useOutsideClick.d.ts +2 -2
  163. package/types/i18n.d.ts +21 -21
  164. package/types/jotai.d.ts +122 -122
  165. package/types/keys.d.ts +77 -77
  166. package/types/math.d.ts +29 -29
  167. package/types/packages/common.webpack.dev.config.d.ts +72 -71
  168. package/types/packages/common.webpack.prod.config.d.ts +84 -83
  169. package/types/packages/excalidraw/dist/excalidraw.development.d.ts +4 -4
  170. package/types/packages/excalidraw/dist/excalidraw.production.min.d.ts +1 -1
  171. package/types/packages/excalidraw/entry.d.ts +1 -1
  172. package/types/packages/excalidraw/env.d.ts +1 -1
  173. package/types/packages/excalidraw/example/App.d.ts +14 -14
  174. package/types/packages/excalidraw/example/CustomFooter.d.ts +5 -5
  175. package/types/packages/excalidraw/example/MobileFooter.d.ts +5 -5
  176. package/types/packages/excalidraw/example/index.d.ts +1 -1
  177. package/types/packages/excalidraw/example/initialData.d.ts +172 -172
  178. package/types/packages/excalidraw/example/sidebar/ExampleSidebar.d.ts +5 -5
  179. package/types/packages/excalidraw/index.d.ts +35 -35
  180. package/types/packages/excalidraw/main.d.ts +2 -2
  181. package/types/packages/excalidraw/publicPath.d.ts +1 -1
  182. package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -19
  183. package/types/packages/excalidraw/webpack.dev.config.d.ts +69 -68
  184. package/types/packages/excalidraw/webpack.prod.config.d.ts +78 -77
  185. package/types/packages/utils.d.ts +42 -42
  186. package/types/points.d.ts +7 -7
  187. package/types/polyfill.d.ts +2 -2
  188. package/types/random.d.ts +4 -4
  189. package/types/renderer/easingFunctions.d.ts +6 -6
  190. package/types/renderer/renderElement.d.ts +35 -35
  191. package/types/renderer/renderScene.d.ts +41 -41
  192. package/types/renderer/roundRect.d.ts +11 -11
  193. package/types/scene/Fonts.d.ts +21 -21
  194. package/types/scene/Scene.d.ts +40 -40
  195. package/types/scene/comparisons.d.ts +10 -10
  196. package/types/scene/export.d.ts +20 -20
  197. package/types/scene/index.d.ts +5 -5
  198. package/types/scene/scroll.d.ts +17 -17
  199. package/types/scene/scrollbars.d.ts +16 -16
  200. package/types/scene/selection.d.ts +11 -11
  201. package/types/scene/types.d.ts +59 -59
  202. package/types/scene/zoom.d.ts +13 -13
  203. package/types/shapes.d.ts +62 -62
  204. package/types/types.d.ts +442 -441
  205. package/types/utility-types.d.ts +22 -22
  206. package/types/utils.d.ts +162 -163
  207. package/types/zindex.d.ts +6 -6
  208. package/types/bug-issue-template.d.ts +0 -2
  209. package/types/components/ActiveFile.d.ts +0 -7
  210. package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +0 -4
  211. package/types/components/ClearCanvas.d.ts +0 -4
  212. package/types/components/CollabButton.d.ts +0 -7
  213. package/types/components/EncryptedIcon.d.ts +0 -2
  214. package/types/components/Footer.d.ts +0 -10
  215. package/types/components/HelpIcon.d.ts +0 -8
  216. package/types/components/MenuItem.d.ts +0 -11
  217. package/types/components/MenuUtils.d.ts +0 -2
  218. package/types/components/SidebarLockButton.d.ts +0 -8
  219. package/types/components/TopErrorBoundary.d.ts +0 -15
  220. package/types/components/WelcomeScreen.d.ts +0 -8
  221. package/types/components/WelcomeScreenDecor.d.ts +0 -6
  222. package/types/components/mainMenu/DefaultItems.d.ts +0 -44
  223. package/types/components/mainMenu/MainMenu.d.ts +0 -63
  224. package/types/excalidraw-app/CustomStats.d.ts +0 -9
  225. package/types/excalidraw-app/app_constants.d.ts +0 -32
  226. package/types/excalidraw-app/collab/Collab.d.ts +0 -163
  227. package/types/excalidraw-app/collab/Portal.d.ts +0 -28
  228. package/types/excalidraw-app/collab/RoomDialog.d.ts +0 -13
  229. package/types/excalidraw-app/collab/reconciliation.d.ts +0 -10
  230. package/types/excalidraw-app/components/ExportToExcalidrawPlus.d.ts +0 -9
  231. package/types/excalidraw-app/components/LanguageList.d.ts +0 -4
  232. package/types/excalidraw-app/components/icons.d.ts +0 -1
  233. package/types/excalidraw-app/data/FileManager.d.ts +0 -66
  234. package/types/excalidraw-app/data/LocalData.d.ts +0 -32
  235. package/types/excalidraw-app/data/Locker.d.ts +0 -8
  236. package/types/excalidraw-app/data/firebase.d.ts +0 -25
  237. package/types/excalidraw-app/data/index.d.ts +0 -190
  238. package/types/excalidraw-app/data/localStorage.d.ts +0 -116
  239. package/types/excalidraw-app/data/tabSync.d.ts +0 -9
  240. package/types/excalidraw-app/index.d.ts +0 -26
  241. package/types/packages/excalidraw/example/sidebar/Sidebar.d.ts +0 -5
@@ -1,1305 +1,1315 @@
1
- /// <reference types="react" />
2
- import { ExcalidrawElement } from "../element/types";
3
- import { AppState, NormalizedZoomValue } from "../types";
4
- export declare const actionChangeViewBackgroundColor: {
5
- name: "changeViewBackgroundColor";
6
- trackEvent: false;
7
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
8
- perform: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
9
- appState: any;
10
- commitToHistory: boolean;
11
- };
12
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
13
- } & {
14
- keyTest?: undefined;
15
- };
16
- export declare const actionClearCanvas: {
17
- name: "clearCanvas";
18
- trackEvent: {
19
- category: "canvas";
20
- };
21
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
22
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
23
- elements: ExcalidrawElement[];
24
- appState: {
25
- files: {};
26
- theme: string;
27
- penMode: boolean;
28
- penDetected: boolean;
29
- exportBackground: boolean;
30
- exportEmbedScene: boolean;
31
- gridSize: number | null;
32
- showStats: boolean;
33
- pasteDialog: {
34
- shown: false;
35
- data: null;
36
- } | {
37
- shown: true;
38
- data: import("../charts").Spreadsheet;
39
- };
40
- activeTool: {
41
- lastActiveTool: import("../types").LastActiveTool;
42
- locked: boolean;
43
- } & ({
44
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
45
- customType: null;
46
- } | {
47
- type: "custom";
48
- customType: string;
49
- });
50
- colorPalette: {
51
- canvasBackground?: string[] | undefined;
52
- elementBackground?: string[] | undefined;
53
- elementStroke?: string[] | undefined;
54
- };
55
- trayModeEnabled: boolean;
56
- allowPinchZoom: boolean | undefined;
57
- allowWheelZoom: boolean | undefined;
58
- pinnedScripts: string[] | undefined;
59
- customPens: any[] | undefined;
60
- name: string;
61
- contextMenu: {
62
- items: import("../components/ContextMenu").ContextMenuItems;
63
- top: number;
64
- left: number;
65
- } | null;
66
- showWelcomeScreen: boolean;
67
- isLoading: boolean;
68
- errorMessage: import("react").ReactNode;
69
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
70
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
71
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
72
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
73
- isBindingEnabled: boolean;
74
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
75
- suggestedBindings: import("../element/binding").SuggestedBinding[];
76
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
77
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
78
- exportWithDarkMode: boolean;
79
- exportScale: number;
80
- currentItemStrokeColor: string;
81
- currentItemBackgroundColor: string;
82
- currentItemFillStyle: import("../element/types").FillStyle;
83
- currentItemStrokeWidth: number;
84
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
85
- currentItemRoughness: number;
86
- currentItemOpacity: number;
87
- currentItemFontFamily: number;
88
- currentItemFontSize: number;
89
- currentItemTextAlign: string;
90
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
91
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
92
- currentItemRoundness: import("../element/types").StrokeRoundness;
93
- viewBackgroundColor: string;
94
- scrollX: number;
95
- scrollY: number;
96
- cursorButton: "up" | "down";
97
- scrolledOutside: boolean;
98
- isResizing: boolean;
99
- isRotating: boolean;
100
- zoom: Readonly<{
101
- value: NormalizedZoomValue;
102
- }>;
103
- openMenu: "canvas" | "shape" | null;
104
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
105
- openSidebar: "library" | "customSidebar" | null;
106
- openDialog: "imageExport" | "help" | "jsonExport" | null;
107
- isSidebarDocked: boolean;
108
- lastPointerDownWith: import("../element/types").PointerType;
109
- selectedElementIds: {
110
- [id: string]: boolean;
111
- };
112
- previousSelectedElementIds: {
113
- [id: string]: boolean;
114
- };
115
- shouldCacheIgnoreZoom: boolean;
116
- toast: {
117
- message: string;
118
- closable?: boolean | undefined;
119
- duration?: number | undefined;
120
- } | null;
121
- zenModeEnabled: boolean;
122
- previousGridSize: number | null;
123
- viewModeEnabled: boolean;
124
- selectedGroupIds: {
125
- [groupId: string]: boolean;
126
- };
127
- editingGroupId: string | null;
128
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
129
- collaborators: Map<string, import("../types").Collaborator>;
130
- currentChartType: import("../element/types").ChartType;
131
- pendingImageElementId: string | null;
132
- showHyperlinkPopup: false | "info" | "editor";
133
- linkOpacity: number;
134
- currentStrokeOptions?: any;
135
- resetCustomPen?: any;
136
- gridColor: string;
137
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
138
- };
139
- commitToHistory: true;
140
- };
141
- } & {
142
- keyTest?: undefined;
143
- };
144
- export declare const actionZoomIn: {
145
- name: "zoomIn";
146
- viewMode: true;
147
- trackEvent: {
148
- category: "canvas";
149
- };
150
- perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
151
- appState: {
152
- scrollX: number;
153
- scrollY: number;
154
- zoom: {
155
- value: NormalizedZoomValue;
156
- };
157
- contextMenu: {
158
- items: import("../components/ContextMenu").ContextMenuItems;
159
- top: number;
160
- left: number;
161
- } | null;
162
- showWelcomeScreen: boolean;
163
- isLoading: boolean;
164
- errorMessage: import("react").ReactNode;
165
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
166
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
167
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
168
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
169
- isBindingEnabled: boolean;
170
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
171
- suggestedBindings: import("../element/binding").SuggestedBinding[];
172
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
173
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
174
- activeTool: {
175
- lastActiveTool: import("../types").LastActiveTool;
176
- locked: boolean;
177
- } & ({
178
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
179
- customType: null;
180
- } | {
181
- type: "custom";
182
- customType: string;
183
- });
184
- penMode: boolean;
185
- penDetected: boolean;
186
- exportBackground: boolean;
187
- exportEmbedScene: boolean;
188
- exportWithDarkMode: boolean;
189
- exportScale: number;
190
- currentItemStrokeColor: string;
191
- currentItemBackgroundColor: string;
192
- currentItemFillStyle: import("../element/types").FillStyle;
193
- currentItemStrokeWidth: number;
194
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
195
- currentItemRoughness: number;
196
- currentItemOpacity: number;
197
- currentItemFontFamily: number;
198
- currentItemFontSize: number;
199
- currentItemTextAlign: string;
200
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
201
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
202
- currentItemRoundness: import("../element/types").StrokeRoundness;
203
- viewBackgroundColor: string;
204
- cursorButton: "up" | "down";
205
- scrolledOutside: boolean;
206
- name: string;
207
- isResizing: boolean;
208
- isRotating: boolean;
209
- openMenu: "canvas" | "shape" | null;
210
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
211
- openSidebar: "library" | "customSidebar" | null;
212
- openDialog: "imageExport" | "help" | "jsonExport" | null;
213
- isSidebarDocked: boolean;
214
- lastPointerDownWith: import("../element/types").PointerType;
215
- selectedElementIds: {
216
- [id: string]: boolean;
217
- };
218
- previousSelectedElementIds: {
219
- [id: string]: boolean;
220
- };
221
- shouldCacheIgnoreZoom: boolean;
222
- toast: {
223
- message: string;
224
- closable?: boolean | undefined;
225
- duration?: number | undefined;
226
- } | null;
227
- zenModeEnabled: boolean;
228
- theme: string;
229
- gridSize: number | null;
230
- previousGridSize: number | null;
231
- viewModeEnabled: boolean;
232
- selectedGroupIds: {
233
- [groupId: string]: boolean;
234
- };
235
- editingGroupId: string | null;
236
- width: number;
237
- height: number;
238
- offsetTop: number;
239
- offsetLeft: number;
240
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
241
- collaborators: Map<string, import("../types").Collaborator>;
242
- showStats: boolean;
243
- currentChartType: import("../element/types").ChartType;
244
- pasteDialog: {
245
- shown: false;
246
- data: null;
247
- } | {
248
- shown: true;
249
- data: import("../charts").Spreadsheet;
250
- };
251
- pendingImageElementId: string | null;
252
- showHyperlinkPopup: false | "info" | "editor";
253
- linkOpacity: number;
254
- trayModeEnabled: boolean;
255
- colorPalette: {
256
- canvasBackground?: string[] | undefined;
257
- elementBackground?: string[] | undefined;
258
- elementStroke?: string[] | undefined;
259
- };
260
- allowWheelZoom?: boolean | undefined;
261
- allowPinchZoom?: boolean | undefined;
262
- pinnedScripts?: string[] | undefined;
263
- customPens?: any[] | undefined;
264
- currentStrokeOptions?: any;
265
- resetCustomPen?: any;
266
- gridColor: string;
267
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
268
- };
269
- commitToHistory: false;
270
- };
271
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
272
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
273
- } & {
274
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
275
- };
276
- export declare const actionZoomOut: {
277
- name: "zoomOut";
278
- viewMode: true;
279
- trackEvent: {
280
- category: "canvas";
281
- };
282
- perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
283
- appState: {
284
- scrollX: number;
285
- scrollY: number;
286
- zoom: {
287
- value: NormalizedZoomValue;
288
- };
289
- contextMenu: {
290
- items: import("../components/ContextMenu").ContextMenuItems;
291
- top: number;
292
- left: number;
293
- } | null;
294
- showWelcomeScreen: boolean;
295
- isLoading: boolean;
296
- errorMessage: import("react").ReactNode;
297
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
298
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
299
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
300
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
301
- isBindingEnabled: boolean;
302
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
303
- suggestedBindings: import("../element/binding").SuggestedBinding[];
304
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
305
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
306
- activeTool: {
307
- lastActiveTool: import("../types").LastActiveTool;
308
- locked: boolean;
309
- } & ({
310
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
311
- customType: null;
312
- } | {
313
- type: "custom";
314
- customType: string;
315
- });
316
- penMode: boolean;
317
- penDetected: boolean;
318
- exportBackground: boolean;
319
- exportEmbedScene: boolean;
320
- exportWithDarkMode: boolean;
321
- exportScale: number;
322
- currentItemStrokeColor: string;
323
- currentItemBackgroundColor: string;
324
- currentItemFillStyle: import("../element/types").FillStyle;
325
- currentItemStrokeWidth: number;
326
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
327
- currentItemRoughness: number;
328
- currentItemOpacity: number;
329
- currentItemFontFamily: number;
330
- currentItemFontSize: number;
331
- currentItemTextAlign: string;
332
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
333
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
334
- currentItemRoundness: import("../element/types").StrokeRoundness;
335
- viewBackgroundColor: string;
336
- cursorButton: "up" | "down";
337
- scrolledOutside: boolean;
338
- name: string;
339
- isResizing: boolean;
340
- isRotating: boolean;
341
- openMenu: "canvas" | "shape" | null;
342
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
343
- openSidebar: "library" | "customSidebar" | null;
344
- openDialog: "imageExport" | "help" | "jsonExport" | null;
345
- isSidebarDocked: boolean;
346
- lastPointerDownWith: import("../element/types").PointerType;
347
- selectedElementIds: {
348
- [id: string]: boolean;
349
- };
350
- previousSelectedElementIds: {
351
- [id: string]: boolean;
352
- };
353
- shouldCacheIgnoreZoom: boolean;
354
- toast: {
355
- message: string;
356
- closable?: boolean | undefined;
357
- duration?: number | undefined;
358
- } | null;
359
- zenModeEnabled: boolean;
360
- theme: string;
361
- gridSize: number | null;
362
- previousGridSize: number | null;
363
- viewModeEnabled: boolean;
364
- selectedGroupIds: {
365
- [groupId: string]: boolean;
366
- };
367
- editingGroupId: string | null;
368
- width: number;
369
- height: number;
370
- offsetTop: number;
371
- offsetLeft: number;
372
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
373
- collaborators: Map<string, import("../types").Collaborator>;
374
- showStats: boolean;
375
- currentChartType: import("../element/types").ChartType;
376
- pasteDialog: {
377
- shown: false;
378
- data: null;
379
- } | {
380
- shown: true;
381
- data: import("../charts").Spreadsheet;
382
- };
383
- pendingImageElementId: string | null;
384
- showHyperlinkPopup: false | "info" | "editor";
385
- linkOpacity: number;
386
- trayModeEnabled: boolean;
387
- colorPalette: {
388
- canvasBackground?: string[] | undefined;
389
- elementBackground?: string[] | undefined;
390
- elementStroke?: string[] | undefined;
391
- };
392
- allowWheelZoom?: boolean | undefined;
393
- allowPinchZoom?: boolean | undefined;
394
- pinnedScripts?: string[] | undefined;
395
- customPens?: any[] | undefined;
396
- currentStrokeOptions?: any;
397
- resetCustomPen?: any;
398
- gridColor: string;
399
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
400
- };
401
- commitToHistory: false;
402
- };
403
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
404
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
405
- } & {
406
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
407
- };
408
- export declare const actionResetZoom: {
409
- name: "resetZoom";
410
- viewMode: true;
411
- trackEvent: {
412
- category: "canvas";
413
- };
414
- perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
415
- appState: {
416
- scrollX: number;
417
- scrollY: number;
418
- zoom: {
419
- value: NormalizedZoomValue;
420
- };
421
- contextMenu: {
422
- items: import("../components/ContextMenu").ContextMenuItems;
423
- top: number;
424
- left: number;
425
- } | null;
426
- showWelcomeScreen: boolean;
427
- isLoading: boolean;
428
- errorMessage: import("react").ReactNode;
429
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
430
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
431
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
432
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
433
- isBindingEnabled: boolean;
434
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
435
- suggestedBindings: import("../element/binding").SuggestedBinding[];
436
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
437
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
438
- activeTool: {
439
- lastActiveTool: import("../types").LastActiveTool;
440
- locked: boolean;
441
- } & ({
442
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
443
- customType: null;
444
- } | {
445
- type: "custom";
446
- customType: string;
447
- });
448
- penMode: boolean;
449
- penDetected: boolean;
450
- exportBackground: boolean;
451
- exportEmbedScene: boolean;
452
- exportWithDarkMode: boolean;
453
- exportScale: number;
454
- currentItemStrokeColor: string;
455
- currentItemBackgroundColor: string;
456
- currentItemFillStyle: import("../element/types").FillStyle;
457
- currentItemStrokeWidth: number;
458
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
459
- currentItemRoughness: number;
460
- currentItemOpacity: number;
461
- currentItemFontFamily: number;
462
- currentItemFontSize: number;
463
- currentItemTextAlign: string;
464
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
465
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
466
- currentItemRoundness: import("../element/types").StrokeRoundness;
467
- viewBackgroundColor: string;
468
- cursorButton: "up" | "down";
469
- scrolledOutside: boolean;
470
- name: string;
471
- isResizing: boolean;
472
- isRotating: boolean;
473
- openMenu: "canvas" | "shape" | null;
474
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
475
- openSidebar: "library" | "customSidebar" | null;
476
- openDialog: "imageExport" | "help" | "jsonExport" | null;
477
- isSidebarDocked: boolean;
478
- lastPointerDownWith: import("../element/types").PointerType;
479
- selectedElementIds: {
480
- [id: string]: boolean;
481
- };
482
- previousSelectedElementIds: {
483
- [id: string]: boolean;
484
- };
485
- shouldCacheIgnoreZoom: boolean;
486
- toast: {
487
- message: string;
488
- closable?: boolean | undefined;
489
- duration?: number | undefined;
490
- } | null;
491
- zenModeEnabled: boolean;
492
- theme: string;
493
- gridSize: number | null;
494
- previousGridSize: number | null;
495
- viewModeEnabled: boolean;
496
- selectedGroupIds: {
497
- [groupId: string]: boolean;
498
- };
499
- editingGroupId: string | null;
500
- width: number;
501
- height: number;
502
- offsetTop: number;
503
- offsetLeft: number;
504
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
505
- collaborators: Map<string, import("../types").Collaborator>;
506
- showStats: boolean;
507
- currentChartType: import("../element/types").ChartType;
508
- pasteDialog: {
509
- shown: false;
510
- data: null;
511
- } | {
512
- shown: true;
513
- data: import("../charts").Spreadsheet;
514
- };
515
- pendingImageElementId: string | null;
516
- showHyperlinkPopup: false | "info" | "editor";
517
- linkOpacity: number;
518
- trayModeEnabled: boolean;
519
- colorPalette: {
520
- canvasBackground?: string[] | undefined;
521
- elementBackground?: string[] | undefined;
522
- elementStroke?: string[] | undefined;
523
- };
524
- allowWheelZoom?: boolean | undefined;
525
- allowPinchZoom?: boolean | undefined;
526
- pinnedScripts?: string[] | undefined;
527
- customPens?: any[] | undefined;
528
- currentStrokeOptions?: any;
529
- resetCustomPen?: any;
530
- gridColor: string;
531
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
532
- };
533
- commitToHistory: false;
534
- };
535
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
536
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
537
- } & {
538
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
539
- };
540
- export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, zoomToSelection: boolean, maxZoom?: number, margin?: number) => {
541
- appState: {
542
- zoom: {
543
- value: NormalizedZoomValue;
544
- };
545
- scrollX: number;
546
- scrollY: number;
547
- contextMenu: {
548
- items: import("../components/ContextMenu").ContextMenuItems;
549
- top: number;
550
- left: number;
551
- } | null;
552
- showWelcomeScreen: boolean;
553
- isLoading: boolean;
554
- errorMessage: import("react").ReactNode;
555
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
556
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
557
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
558
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
559
- isBindingEnabled: boolean;
560
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
561
- suggestedBindings: import("../element/binding").SuggestedBinding[];
562
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
563
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
564
- activeTool: {
565
- lastActiveTool: import("../types").LastActiveTool;
566
- locked: boolean;
567
- } & ({
568
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
569
- customType: null;
570
- } | {
571
- type: "custom";
572
- customType: string;
573
- });
574
- penMode: boolean;
575
- penDetected: boolean;
576
- exportBackground: boolean;
577
- exportEmbedScene: boolean;
578
- exportWithDarkMode: boolean;
579
- exportScale: number;
580
- currentItemStrokeColor: string;
581
- currentItemBackgroundColor: string;
582
- currentItemFillStyle: import("../element/types").FillStyle;
583
- currentItemStrokeWidth: number;
584
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
585
- currentItemRoughness: number;
586
- currentItemOpacity: number;
587
- currentItemFontFamily: number;
588
- currentItemFontSize: number;
589
- currentItemTextAlign: string;
590
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
591
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
592
- currentItemRoundness: import("../element/types").StrokeRoundness;
593
- viewBackgroundColor: string;
594
- cursorButton: "up" | "down";
595
- scrolledOutside: boolean;
596
- name: string;
597
- isResizing: boolean;
598
- isRotating: boolean;
599
- openMenu: "canvas" | "shape" | null;
600
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
601
- openSidebar: "library" | "customSidebar" | null;
602
- openDialog: "imageExport" | "help" | "jsonExport" | null;
603
- isSidebarDocked: boolean;
604
- lastPointerDownWith: import("../element/types").PointerType;
605
- selectedElementIds: {
606
- [id: string]: boolean;
607
- };
608
- previousSelectedElementIds: {
609
- [id: string]: boolean;
610
- };
611
- shouldCacheIgnoreZoom: boolean;
612
- toast: {
613
- message: string;
614
- closable?: boolean | undefined;
615
- duration?: number | undefined;
616
- } | null;
617
- zenModeEnabled: boolean;
618
- theme: string;
619
- gridSize: number | null;
620
- previousGridSize: number | null;
621
- viewModeEnabled: boolean;
622
- selectedGroupIds: {
623
- [groupId: string]: boolean;
624
- };
625
- editingGroupId: string | null;
626
- width: number;
627
- height: number;
628
- offsetTop: number;
629
- offsetLeft: number;
630
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
631
- collaborators: Map<string, import("../types").Collaborator>;
632
- showStats: boolean;
633
- currentChartType: import("../element/types").ChartType;
634
- pasteDialog: {
635
- shown: false;
636
- data: null;
637
- } | {
638
- shown: true;
639
- data: import("../charts").Spreadsheet;
640
- };
641
- pendingImageElementId: string | null;
642
- showHyperlinkPopup: false | "info" | "editor";
643
- linkOpacity: number;
644
- trayModeEnabled: boolean;
645
- colorPalette: {
646
- canvasBackground?: string[] | undefined;
647
- elementBackground?: string[] | undefined;
648
- elementStroke?: string[] | undefined;
649
- };
650
- allowWheelZoom?: boolean | undefined;
651
- allowPinchZoom?: boolean | undefined;
652
- pinnedScripts?: string[] | undefined;
653
- customPens?: any[] | undefined;
654
- currentStrokeOptions?: any;
655
- resetCustomPen?: any;
656
- gridColor: string;
657
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
658
- };
659
- commitToHistory: boolean;
660
- };
661
- export declare const actionZoomToSelected: {
662
- name: "zoomToSelection";
663
- trackEvent: {
664
- category: "canvas";
665
- };
666
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
667
- appState: {
668
- zoom: {
669
- value: NormalizedZoomValue;
670
- };
671
- scrollX: number;
672
- scrollY: number;
673
- contextMenu: {
674
- items: import("../components/ContextMenu").ContextMenuItems;
675
- top: number;
676
- left: number;
677
- } | null;
678
- showWelcomeScreen: boolean;
679
- isLoading: boolean;
680
- errorMessage: import("react").ReactNode;
681
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
682
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
683
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
684
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
685
- isBindingEnabled: boolean;
686
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
687
- suggestedBindings: import("../element/binding").SuggestedBinding[];
688
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
689
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
690
- activeTool: {
691
- lastActiveTool: import("../types").LastActiveTool;
692
- locked: boolean;
693
- } & ({
694
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
695
- customType: null;
696
- } | {
697
- type: "custom";
698
- customType: string;
699
- });
700
- penMode: boolean;
701
- penDetected: boolean;
702
- exportBackground: boolean;
703
- exportEmbedScene: boolean;
704
- exportWithDarkMode: boolean;
705
- exportScale: number;
706
- currentItemStrokeColor: string;
707
- currentItemBackgroundColor: string;
708
- currentItemFillStyle: import("../element/types").FillStyle;
709
- currentItemStrokeWidth: number;
710
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
711
- currentItemRoughness: number;
712
- currentItemOpacity: number;
713
- currentItemFontFamily: number;
714
- currentItemFontSize: number;
715
- currentItemTextAlign: string;
716
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
717
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
718
- currentItemRoundness: import("../element/types").StrokeRoundness;
719
- viewBackgroundColor: string;
720
- cursorButton: "up" | "down";
721
- scrolledOutside: boolean;
722
- name: string;
723
- isResizing: boolean;
724
- isRotating: boolean;
725
- openMenu: "canvas" | "shape" | null;
726
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
727
- openSidebar: "library" | "customSidebar" | null;
728
- openDialog: "imageExport" | "help" | "jsonExport" | null;
729
- isSidebarDocked: boolean;
730
- lastPointerDownWith: import("../element/types").PointerType;
731
- selectedElementIds: {
732
- [id: string]: boolean;
733
- };
734
- previousSelectedElementIds: {
735
- [id: string]: boolean;
736
- };
737
- shouldCacheIgnoreZoom: boolean;
738
- toast: {
739
- message: string;
740
- closable?: boolean | undefined;
741
- duration?: number | undefined;
742
- } | null;
743
- zenModeEnabled: boolean;
744
- theme: string;
745
- gridSize: number | null;
746
- previousGridSize: number | null;
747
- viewModeEnabled: boolean;
748
- selectedGroupIds: {
749
- [groupId: string]: boolean;
750
- };
751
- editingGroupId: string | null;
752
- width: number;
753
- height: number;
754
- offsetTop: number;
755
- offsetLeft: number;
756
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
757
- collaborators: Map<string, import("../types").Collaborator>;
758
- showStats: boolean;
759
- currentChartType: import("../element/types").ChartType;
760
- pasteDialog: {
761
- shown: false;
762
- data: null;
763
- } | {
764
- shown: true;
765
- data: import("../charts").Spreadsheet;
766
- };
767
- pendingImageElementId: string | null;
768
- showHyperlinkPopup: false | "info" | "editor";
769
- linkOpacity: number;
770
- trayModeEnabled: boolean;
771
- colorPalette: {
772
- canvasBackground?: string[] | undefined;
773
- elementBackground?: string[] | undefined;
774
- elementStroke?: string[] | undefined;
775
- };
776
- allowWheelZoom?: boolean | undefined;
777
- allowPinchZoom?: boolean | undefined;
778
- pinnedScripts?: string[] | undefined;
779
- customPens?: any[] | undefined;
780
- currentStrokeOptions?: any;
781
- resetCustomPen?: any;
782
- gridColor: string;
783
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
784
- };
785
- commitToHistory: boolean;
786
- };
787
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
788
- } & {
789
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
790
- };
791
- export declare const actionZoomToFit: {
792
- name: "zoomToFit";
793
- viewMode: true;
794
- trackEvent: {
795
- category: "canvas";
796
- };
797
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
798
- appState: {
799
- zoom: {
800
- value: NormalizedZoomValue;
801
- };
802
- scrollX: number;
803
- scrollY: number;
804
- contextMenu: {
805
- items: import("../components/ContextMenu").ContextMenuItems;
806
- top: number;
807
- left: number;
808
- } | null;
809
- showWelcomeScreen: boolean;
810
- isLoading: boolean;
811
- errorMessage: import("react").ReactNode;
812
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
813
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
814
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
815
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
816
- isBindingEnabled: boolean;
817
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
818
- suggestedBindings: import("../element/binding").SuggestedBinding[];
819
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
820
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
821
- activeTool: {
822
- lastActiveTool: import("../types").LastActiveTool;
823
- locked: boolean;
824
- } & ({
825
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
826
- customType: null;
827
- } | {
828
- type: "custom";
829
- customType: string;
830
- });
831
- penMode: boolean;
832
- penDetected: boolean;
833
- exportBackground: boolean;
834
- exportEmbedScene: boolean;
835
- exportWithDarkMode: boolean;
836
- exportScale: number;
837
- currentItemStrokeColor: string;
838
- currentItemBackgroundColor: string;
839
- currentItemFillStyle: import("../element/types").FillStyle;
840
- currentItemStrokeWidth: number;
841
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
842
- currentItemRoughness: number;
843
- currentItemOpacity: number;
844
- currentItemFontFamily: number;
845
- currentItemFontSize: number;
846
- currentItemTextAlign: string;
847
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
848
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
849
- currentItemRoundness: import("../element/types").StrokeRoundness;
850
- viewBackgroundColor: string;
851
- cursorButton: "up" | "down";
852
- scrolledOutside: boolean;
853
- name: string;
854
- isResizing: boolean;
855
- isRotating: boolean;
856
- openMenu: "canvas" | "shape" | null;
857
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
858
- openSidebar: "library" | "customSidebar" | null;
859
- openDialog: "imageExport" | "help" | "jsonExport" | null;
860
- isSidebarDocked: boolean;
861
- lastPointerDownWith: import("../element/types").PointerType;
862
- selectedElementIds: {
863
- [id: string]: boolean;
864
- };
865
- previousSelectedElementIds: {
866
- [id: string]: boolean;
867
- };
868
- shouldCacheIgnoreZoom: boolean;
869
- toast: {
870
- message: string;
871
- closable?: boolean | undefined;
872
- duration?: number | undefined;
873
- } | null;
874
- zenModeEnabled: boolean;
875
- theme: string;
876
- gridSize: number | null;
877
- previousGridSize: number | null;
878
- viewModeEnabled: boolean;
879
- selectedGroupIds: {
880
- [groupId: string]: boolean;
881
- };
882
- editingGroupId: string | null;
883
- width: number;
884
- height: number;
885
- offsetTop: number;
886
- offsetLeft: number;
887
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
888
- collaborators: Map<string, import("../types").Collaborator>;
889
- showStats: boolean;
890
- currentChartType: import("../element/types").ChartType;
891
- pasteDialog: {
892
- shown: false;
893
- data: null;
894
- } | {
895
- shown: true;
896
- data: import("../charts").Spreadsheet;
897
- };
898
- pendingImageElementId: string | null;
899
- showHyperlinkPopup: false | "info" | "editor";
900
- linkOpacity: number;
901
- trayModeEnabled: boolean;
902
- colorPalette: {
903
- canvasBackground?: string[] | undefined;
904
- elementBackground?: string[] | undefined;
905
- elementStroke?: string[] | undefined;
906
- };
907
- allowWheelZoom?: boolean | undefined;
908
- allowPinchZoom?: boolean | undefined;
909
- pinnedScripts?: string[] | undefined;
910
- customPens?: any[] | undefined;
911
- currentStrokeOptions?: any;
912
- resetCustomPen?: any;
913
- gridColor: string;
914
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
915
- };
916
- commitToHistory: boolean;
917
- };
918
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
919
- } & {
920
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
921
- };
922
- export declare const actionToggleTheme: {
923
- name: "toggleTheme";
924
- viewMode: true;
925
- trackEvent: {
926
- category: "canvas";
927
- };
928
- perform: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: import("../types").AppClassProperties) => {
929
- appState: {
930
- theme: any;
931
- contextMenu: {
932
- items: import("../components/ContextMenu").ContextMenuItems;
933
- top: number;
934
- left: number;
935
- } | null;
936
- showWelcomeScreen: boolean;
937
- isLoading: boolean;
938
- errorMessage: import("react").ReactNode;
939
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
940
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
941
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
942
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
943
- isBindingEnabled: boolean;
944
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
945
- suggestedBindings: import("../element/binding").SuggestedBinding[];
946
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
947
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
948
- activeTool: {
949
- lastActiveTool: import("../types").LastActiveTool;
950
- locked: boolean;
951
- } & ({
952
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
953
- customType: null;
954
- } | {
955
- type: "custom";
956
- customType: string;
957
- });
958
- penMode: boolean;
959
- penDetected: boolean;
960
- exportBackground: boolean;
961
- exportEmbedScene: boolean;
962
- exportWithDarkMode: boolean;
963
- exportScale: number;
964
- currentItemStrokeColor: string;
965
- currentItemBackgroundColor: string;
966
- currentItemFillStyle: import("../element/types").FillStyle;
967
- currentItemStrokeWidth: number;
968
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
969
- currentItemRoughness: number;
970
- currentItemOpacity: number;
971
- currentItemFontFamily: number;
972
- currentItemFontSize: number;
973
- currentItemTextAlign: string;
974
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
975
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
976
- currentItemRoundness: import("../element/types").StrokeRoundness;
977
- viewBackgroundColor: string;
978
- scrollX: number;
979
- scrollY: number;
980
- cursorButton: "up" | "down";
981
- scrolledOutside: boolean;
982
- name: string;
983
- isResizing: boolean;
984
- isRotating: boolean;
985
- zoom: Readonly<{
986
- value: NormalizedZoomValue;
987
- }>;
988
- openMenu: "canvas" | "shape" | null;
989
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
990
- openSidebar: "library" | "customSidebar" | null;
991
- openDialog: "imageExport" | "help" | "jsonExport" | null;
992
- isSidebarDocked: boolean;
993
- lastPointerDownWith: import("../element/types").PointerType;
994
- selectedElementIds: {
995
- [id: string]: boolean;
996
- };
997
- previousSelectedElementIds: {
998
- [id: string]: boolean;
999
- };
1000
- shouldCacheIgnoreZoom: boolean;
1001
- toast: {
1002
- message: string;
1003
- closable?: boolean | undefined;
1004
- duration?: number | undefined;
1005
- } | null;
1006
- zenModeEnabled: boolean;
1007
- gridSize: number | null;
1008
- previousGridSize: number | null;
1009
- viewModeEnabled: boolean;
1010
- selectedGroupIds: {
1011
- [groupId: string]: boolean;
1012
- };
1013
- editingGroupId: string | null;
1014
- width: number;
1015
- height: number;
1016
- offsetTop: number;
1017
- offsetLeft: number;
1018
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1019
- collaborators: Map<string, import("../types").Collaborator>;
1020
- showStats: boolean;
1021
- currentChartType: import("../element/types").ChartType;
1022
- pasteDialog: {
1023
- shown: false;
1024
- data: null;
1025
- } | {
1026
- shown: true;
1027
- data: import("../charts").Spreadsheet;
1028
- };
1029
- pendingImageElementId: string | null;
1030
- showHyperlinkPopup: false | "info" | "editor";
1031
- linkOpacity: number;
1032
- trayModeEnabled: boolean;
1033
- colorPalette: {
1034
- canvasBackground?: string[] | undefined;
1035
- elementBackground?: string[] | undefined;
1036
- elementStroke?: string[] | undefined;
1037
- };
1038
- allowWheelZoom?: boolean | undefined;
1039
- allowPinchZoom?: boolean | undefined;
1040
- pinnedScripts?: string[] | undefined;
1041
- customPens?: any[] | undefined;
1042
- currentStrokeOptions?: any;
1043
- resetCustomPen?: any;
1044
- gridColor: string;
1045
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1046
- };
1047
- commitToHistory: false;
1048
- };
1049
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1050
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1051
- } & {
1052
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1053
- };
1054
- export declare const actionToggleEraserTool: {
1055
- name: "toggleEraserTool";
1056
- trackEvent: {
1057
- category: "toolbar";
1058
- };
1059
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
1060
- appState: {
1061
- selectedElementIds: {};
1062
- selectedGroupIds: {};
1063
- activeTool: {
1064
- lastActiveTool: import("../types").LastActiveTool;
1065
- locked: boolean;
1066
- } & ({
1067
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1068
- customType: null;
1069
- } | {
1070
- type: "custom";
1071
- customType: string;
1072
- });
1073
- contextMenu: {
1074
- items: import("../components/ContextMenu").ContextMenuItems;
1075
- top: number;
1076
- left: number;
1077
- } | null;
1078
- showWelcomeScreen: boolean;
1079
- isLoading: boolean;
1080
- errorMessage: import("react").ReactNode;
1081
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1082
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1083
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1084
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1085
- isBindingEnabled: boolean;
1086
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1087
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1088
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1089
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1090
- penMode: boolean;
1091
- penDetected: boolean;
1092
- exportBackground: boolean;
1093
- exportEmbedScene: boolean;
1094
- exportWithDarkMode: boolean;
1095
- exportScale: number;
1096
- currentItemStrokeColor: string;
1097
- currentItemBackgroundColor: string;
1098
- currentItemFillStyle: import("../element/types").FillStyle;
1099
- currentItemStrokeWidth: number;
1100
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1101
- currentItemRoughness: number;
1102
- currentItemOpacity: number;
1103
- currentItemFontFamily: number;
1104
- currentItemFontSize: number;
1105
- currentItemTextAlign: string;
1106
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1107
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1108
- currentItemRoundness: import("../element/types").StrokeRoundness;
1109
- viewBackgroundColor: string;
1110
- scrollX: number;
1111
- scrollY: number;
1112
- cursorButton: "up" | "down";
1113
- scrolledOutside: boolean;
1114
- name: string;
1115
- isResizing: boolean;
1116
- isRotating: boolean;
1117
- zoom: Readonly<{
1118
- value: NormalizedZoomValue;
1119
- }>;
1120
- openMenu: "canvas" | "shape" | null;
1121
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1122
- openSidebar: "library" | "customSidebar" | null;
1123
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1124
- isSidebarDocked: boolean;
1125
- lastPointerDownWith: import("../element/types").PointerType;
1126
- previousSelectedElementIds: {
1127
- [id: string]: boolean;
1128
- };
1129
- shouldCacheIgnoreZoom: boolean;
1130
- toast: {
1131
- message: string;
1132
- closable?: boolean | undefined;
1133
- duration?: number | undefined;
1134
- } | null;
1135
- zenModeEnabled: boolean;
1136
- theme: string;
1137
- gridSize: number | null;
1138
- previousGridSize: number | null;
1139
- viewModeEnabled: boolean;
1140
- editingGroupId: string | null;
1141
- width: number;
1142
- height: number;
1143
- offsetTop: number;
1144
- offsetLeft: number;
1145
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1146
- collaborators: Map<string, import("../types").Collaborator>;
1147
- showStats: boolean;
1148
- currentChartType: import("../element/types").ChartType;
1149
- pasteDialog: {
1150
- shown: false;
1151
- data: null;
1152
- } | {
1153
- shown: true;
1154
- data: import("../charts").Spreadsheet;
1155
- };
1156
- pendingImageElementId: string | null;
1157
- showHyperlinkPopup: false | "info" | "editor";
1158
- linkOpacity: number;
1159
- trayModeEnabled: boolean;
1160
- colorPalette: {
1161
- canvasBackground?: string[] | undefined;
1162
- elementBackground?: string[] | undefined;
1163
- elementStroke?: string[] | undefined;
1164
- };
1165
- allowWheelZoom?: boolean | undefined;
1166
- allowPinchZoom?: boolean | undefined;
1167
- pinnedScripts?: string[] | undefined;
1168
- customPens?: any[] | undefined;
1169
- currentStrokeOptions?: any;
1170
- resetCustomPen?: any;
1171
- gridColor: string;
1172
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1173
- };
1174
- commitToHistory: true;
1175
- };
1176
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1177
- } & {
1178
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1179
- };
1180
- export declare const actionToggleHandTool: {
1181
- name: "toggleHandTool";
1182
- trackEvent: {
1183
- category: "toolbar";
1184
- };
1185
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1186
- appState: {
1187
- selectedElementIds: {};
1188
- selectedGroupIds: {};
1189
- activeTool: {
1190
- lastActiveTool: import("../types").LastActiveTool;
1191
- locked: boolean;
1192
- } & ({
1193
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1194
- customType: null;
1195
- } | {
1196
- type: "custom";
1197
- customType: string;
1198
- });
1199
- contextMenu: {
1200
- items: import("../components/ContextMenu").ContextMenuItems;
1201
- top: number;
1202
- left: number;
1203
- } | null;
1204
- showWelcomeScreen: boolean;
1205
- isLoading: boolean;
1206
- errorMessage: import("react").ReactNode;
1207
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1208
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1209
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1210
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1211
- isBindingEnabled: boolean;
1212
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1213
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1214
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1215
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1216
- penMode: boolean;
1217
- penDetected: boolean;
1218
- exportBackground: boolean;
1219
- exportEmbedScene: boolean;
1220
- exportWithDarkMode: boolean;
1221
- exportScale: number;
1222
- currentItemStrokeColor: string;
1223
- currentItemBackgroundColor: string;
1224
- currentItemFillStyle: import("../element/types").FillStyle;
1225
- currentItemStrokeWidth: number;
1226
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1227
- currentItemRoughness: number;
1228
- currentItemOpacity: number;
1229
- currentItemFontFamily: number;
1230
- currentItemFontSize: number;
1231
- currentItemTextAlign: string;
1232
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1233
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1234
- currentItemRoundness: import("../element/types").StrokeRoundness;
1235
- viewBackgroundColor: string;
1236
- scrollX: number;
1237
- scrollY: number;
1238
- cursorButton: "up" | "down";
1239
- scrolledOutside: boolean;
1240
- name: string;
1241
- isResizing: boolean;
1242
- isRotating: boolean;
1243
- zoom: Readonly<{
1244
- value: NormalizedZoomValue;
1245
- }>;
1246
- openMenu: "canvas" | "shape" | null;
1247
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1248
- openSidebar: "library" | "customSidebar" | null;
1249
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1250
- isSidebarDocked: boolean;
1251
- lastPointerDownWith: import("../element/types").PointerType;
1252
- previousSelectedElementIds: {
1253
- [id: string]: boolean;
1254
- };
1255
- shouldCacheIgnoreZoom: boolean;
1256
- toast: {
1257
- message: string;
1258
- closable?: boolean | undefined;
1259
- duration?: number | undefined;
1260
- } | null;
1261
- zenModeEnabled: boolean;
1262
- theme: string;
1263
- gridSize: number | null;
1264
- previousGridSize: number | null;
1265
- viewModeEnabled: boolean;
1266
- editingGroupId: string | null;
1267
- width: number;
1268
- height: number;
1269
- offsetTop: number;
1270
- offsetLeft: number;
1271
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1272
- collaborators: Map<string, import("../types").Collaborator>;
1273
- showStats: boolean;
1274
- currentChartType: import("../element/types").ChartType;
1275
- pasteDialog: {
1276
- shown: false;
1277
- data: null;
1278
- } | {
1279
- shown: true;
1280
- data: import("../charts").Spreadsheet;
1281
- };
1282
- pendingImageElementId: string | null;
1283
- showHyperlinkPopup: false | "info" | "editor";
1284
- linkOpacity: number;
1285
- trayModeEnabled: boolean;
1286
- colorPalette: {
1287
- canvasBackground?: string[] | undefined;
1288
- elementBackground?: string[] | undefined;
1289
- elementStroke?: string[] | undefined;
1290
- };
1291
- allowWheelZoom?: boolean | undefined;
1292
- allowPinchZoom?: boolean | undefined;
1293
- pinnedScripts?: string[] | undefined;
1294
- customPens?: any[] | undefined;
1295
- currentStrokeOptions?: any;
1296
- resetCustomPen?: any;
1297
- gridColor: string;
1298
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1299
- };
1300
- commitToHistory: true;
1301
- };
1302
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1303
- } & {
1304
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1305
- };
1
+ /// <reference types="react" />
2
+ import { ExcalidrawElement } from "../element/types";
3
+ import { AppState, NormalizedZoomValue } from "../types";
4
+ export declare const actionChangeViewBackgroundColor: {
5
+ name: "changeViewBackgroundColor";
6
+ trackEvent: false;
7
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
8
+ perform: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
9
+ appState: any;
10
+ commitToHistory: boolean;
11
+ };
12
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
13
+ } & {
14
+ keyTest?: undefined;
15
+ };
16
+ export declare const actionClearCanvas: {
17
+ name: "clearCanvas";
18
+ trackEvent: {
19
+ category: "canvas";
20
+ };
21
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
22
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
23
+ elements: ExcalidrawElement[];
24
+ appState: {
25
+ files: {};
26
+ theme: string;
27
+ penMode: boolean;
28
+ penDetected: boolean;
29
+ exportBackground: boolean;
30
+ exportEmbedScene: boolean;
31
+ gridSize: number | null;
32
+ showStats: boolean;
33
+ pasteDialog: {
34
+ shown: false;
35
+ data: null;
36
+ } | {
37
+ shown: true;
38
+ data: import("../charts").Spreadsheet;
39
+ };
40
+ activeTool: {
41
+ lastActiveTool: import("../types").LastActiveTool;
42
+ locked: boolean;
43
+ } & ({
44
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
45
+ customType: null;
46
+ } | {
47
+ type: "custom";
48
+ customType: string;
49
+ });
50
+ colorPalette: {
51
+ canvasBackground?: string[] | undefined;
52
+ elementBackground?: string[] | undefined;
53
+ elementStroke?: string[] | undefined;
54
+ };
55
+ trayModeEnabled: boolean;
56
+ allowPinchZoom: boolean | undefined;
57
+ allowWheelZoom: boolean | undefined;
58
+ pinnedScripts: string[] | undefined;
59
+ customPens: any[] | undefined;
60
+ name: string;
61
+ contextMenu: {
62
+ items: import("../components/ContextMenu").ContextMenuItems;
63
+ top: number;
64
+ left: number;
65
+ } | null;
66
+ showWelcomeScreen: boolean;
67
+ isLoading: boolean;
68
+ errorMessage: import("react").ReactNode;
69
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
70
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
71
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
72
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
73
+ isBindingEnabled: boolean;
74
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
75
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
76
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
77
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
78
+ exportWithDarkMode: boolean;
79
+ exportScale: number;
80
+ currentItemStrokeColor: string;
81
+ currentItemBackgroundColor: string;
82
+ currentItemFillStyle: import("../element/types").FillStyle;
83
+ currentItemStrokeWidth: number;
84
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
85
+ currentItemRoughness: number;
86
+ currentItemOpacity: number;
87
+ currentItemFontFamily: number;
88
+ currentItemFontSize: number;
89
+ currentItemTextAlign: string;
90
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
91
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
92
+ currentItemRoundness: import("../element/types").StrokeRoundness;
93
+ viewBackgroundColor: string;
94
+ scrollX: number;
95
+ scrollY: number;
96
+ cursorButton: "up" | "down";
97
+ scrolledOutside: boolean;
98
+ isResizing: boolean;
99
+ isRotating: boolean;
100
+ zoom: Readonly<{
101
+ value: NormalizedZoomValue;
102
+ }>;
103
+ openMenu: "canvas" | "shape" | null;
104
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
105
+ openSidebar: "library" | "customSidebar" | null;
106
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
107
+ isSidebarDocked: boolean;
108
+ lastPointerDownWith: import("../element/types").PointerType;
109
+ selectedElementIds: {
110
+ [id: string]: boolean;
111
+ };
112
+ previousSelectedElementIds: {
113
+ [id: string]: boolean;
114
+ };
115
+ shouldCacheIgnoreZoom: boolean;
116
+ toast: {
117
+ message: string;
118
+ closable?: boolean | undefined;
119
+ duration?: number | undefined;
120
+ } | null;
121
+ zenModeEnabled: boolean;
122
+ previousGridSize: number | null;
123
+ viewModeEnabled: boolean;
124
+ selectedGroupIds: {
125
+ [groupId: string]: boolean;
126
+ };
127
+ editingGroupId: string | null;
128
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
129
+ collaborators: Map<string, import("../types").Collaborator>;
130
+ currentChartType: import("../element/types").ChartType;
131
+ pendingImageElementId: string | null;
132
+ showHyperlinkPopup: false | "info" | "editor";
133
+ linkOpacity: number;
134
+ currentStrokeOptions?: any;
135
+ resetCustomPen?: any;
136
+ gridColor: string;
137
+ dynamicStyle: string;
138
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
139
+ };
140
+ commitToHistory: true;
141
+ };
142
+ } & {
143
+ keyTest?: undefined;
144
+ };
145
+ export declare const actionZoomIn: {
146
+ name: "zoomIn";
147
+ viewMode: true;
148
+ trackEvent: {
149
+ category: "canvas";
150
+ };
151
+ perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
152
+ appState: {
153
+ scrollX: number;
154
+ scrollY: number;
155
+ zoom: {
156
+ value: NormalizedZoomValue;
157
+ };
158
+ contextMenu: {
159
+ items: import("../components/ContextMenu").ContextMenuItems;
160
+ top: number;
161
+ left: number;
162
+ } | null;
163
+ showWelcomeScreen: boolean;
164
+ isLoading: boolean;
165
+ errorMessage: import("react").ReactNode;
166
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
167
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
168
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
169
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
170
+ isBindingEnabled: boolean;
171
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
172
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
173
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
174
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
175
+ activeTool: {
176
+ lastActiveTool: import("../types").LastActiveTool;
177
+ locked: boolean;
178
+ } & ({
179
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
180
+ customType: null;
181
+ } | {
182
+ type: "custom";
183
+ customType: string;
184
+ });
185
+ penMode: boolean;
186
+ penDetected: boolean;
187
+ exportBackground: boolean;
188
+ exportEmbedScene: boolean;
189
+ exportWithDarkMode: boolean;
190
+ exportScale: number;
191
+ currentItemStrokeColor: string;
192
+ currentItemBackgroundColor: string;
193
+ currentItemFillStyle: import("../element/types").FillStyle;
194
+ currentItemStrokeWidth: number;
195
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
196
+ currentItemRoughness: number;
197
+ currentItemOpacity: number;
198
+ currentItemFontFamily: number;
199
+ currentItemFontSize: number;
200
+ currentItemTextAlign: string;
201
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
202
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
203
+ currentItemRoundness: import("../element/types").StrokeRoundness;
204
+ viewBackgroundColor: string;
205
+ cursorButton: "up" | "down";
206
+ scrolledOutside: boolean;
207
+ name: string;
208
+ isResizing: boolean;
209
+ isRotating: boolean;
210
+ openMenu: "canvas" | "shape" | null;
211
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
212
+ openSidebar: "library" | "customSidebar" | null;
213
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
214
+ isSidebarDocked: boolean;
215
+ lastPointerDownWith: import("../element/types").PointerType;
216
+ selectedElementIds: {
217
+ [id: string]: boolean;
218
+ };
219
+ previousSelectedElementIds: {
220
+ [id: string]: boolean;
221
+ };
222
+ shouldCacheIgnoreZoom: boolean;
223
+ toast: {
224
+ message: string;
225
+ closable?: boolean | undefined;
226
+ duration?: number | undefined;
227
+ } | null;
228
+ zenModeEnabled: boolean;
229
+ theme: string;
230
+ gridSize: number | null;
231
+ previousGridSize: number | null;
232
+ viewModeEnabled: boolean;
233
+ selectedGroupIds: {
234
+ [groupId: string]: boolean;
235
+ };
236
+ editingGroupId: string | null;
237
+ width: number;
238
+ height: number;
239
+ offsetTop: number;
240
+ offsetLeft: number;
241
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
242
+ collaborators: Map<string, import("../types").Collaborator>;
243
+ showStats: boolean;
244
+ currentChartType: import("../element/types").ChartType;
245
+ pasteDialog: {
246
+ shown: false;
247
+ data: null;
248
+ } | {
249
+ shown: true;
250
+ data: import("../charts").Spreadsheet;
251
+ };
252
+ pendingImageElementId: string | null;
253
+ showHyperlinkPopup: false | "info" | "editor";
254
+ linkOpacity: number;
255
+ trayModeEnabled: boolean;
256
+ colorPalette: {
257
+ canvasBackground?: string[] | undefined;
258
+ elementBackground?: string[] | undefined;
259
+ elementStroke?: string[] | undefined;
260
+ };
261
+ allowWheelZoom?: boolean | undefined;
262
+ allowPinchZoom?: boolean | undefined;
263
+ pinnedScripts?: string[] | undefined;
264
+ customPens?: any[] | undefined;
265
+ currentStrokeOptions?: any;
266
+ resetCustomPen?: any;
267
+ gridColor: string;
268
+ dynamicStyle: string;
269
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
270
+ };
271
+ commitToHistory: false;
272
+ };
273
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
274
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
275
+ } & {
276
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
277
+ };
278
+ export declare const actionZoomOut: {
279
+ name: "zoomOut";
280
+ viewMode: true;
281
+ trackEvent: {
282
+ category: "canvas";
283
+ };
284
+ perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
285
+ appState: {
286
+ scrollX: number;
287
+ scrollY: number;
288
+ zoom: {
289
+ value: NormalizedZoomValue;
290
+ };
291
+ contextMenu: {
292
+ items: import("../components/ContextMenu").ContextMenuItems;
293
+ top: number;
294
+ left: number;
295
+ } | null;
296
+ showWelcomeScreen: boolean;
297
+ isLoading: boolean;
298
+ errorMessage: import("react").ReactNode;
299
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
300
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
301
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
302
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
303
+ isBindingEnabled: boolean;
304
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
305
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
306
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
307
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
308
+ activeTool: {
309
+ lastActiveTool: import("../types").LastActiveTool;
310
+ locked: boolean;
311
+ } & ({
312
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
313
+ customType: null;
314
+ } | {
315
+ type: "custom";
316
+ customType: string;
317
+ });
318
+ penMode: boolean;
319
+ penDetected: boolean;
320
+ exportBackground: boolean;
321
+ exportEmbedScene: boolean;
322
+ exportWithDarkMode: boolean;
323
+ exportScale: number;
324
+ currentItemStrokeColor: string;
325
+ currentItemBackgroundColor: string;
326
+ currentItemFillStyle: import("../element/types").FillStyle;
327
+ currentItemStrokeWidth: number;
328
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
329
+ currentItemRoughness: number;
330
+ currentItemOpacity: number;
331
+ currentItemFontFamily: number;
332
+ currentItemFontSize: number;
333
+ currentItemTextAlign: string;
334
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
335
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
336
+ currentItemRoundness: import("../element/types").StrokeRoundness;
337
+ viewBackgroundColor: string;
338
+ cursorButton: "up" | "down";
339
+ scrolledOutside: boolean;
340
+ name: string;
341
+ isResizing: boolean;
342
+ isRotating: boolean;
343
+ openMenu: "canvas" | "shape" | null;
344
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
345
+ openSidebar: "library" | "customSidebar" | null;
346
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
347
+ isSidebarDocked: boolean;
348
+ lastPointerDownWith: import("../element/types").PointerType;
349
+ selectedElementIds: {
350
+ [id: string]: boolean;
351
+ };
352
+ previousSelectedElementIds: {
353
+ [id: string]: boolean;
354
+ };
355
+ shouldCacheIgnoreZoom: boolean;
356
+ toast: {
357
+ message: string;
358
+ closable?: boolean | undefined;
359
+ duration?: number | undefined;
360
+ } | null;
361
+ zenModeEnabled: boolean;
362
+ theme: string;
363
+ gridSize: number | null;
364
+ previousGridSize: number | null;
365
+ viewModeEnabled: boolean;
366
+ selectedGroupIds: {
367
+ [groupId: string]: boolean;
368
+ };
369
+ editingGroupId: string | null;
370
+ width: number;
371
+ height: number;
372
+ offsetTop: number;
373
+ offsetLeft: number;
374
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
375
+ collaborators: Map<string, import("../types").Collaborator>;
376
+ showStats: boolean;
377
+ currentChartType: import("../element/types").ChartType;
378
+ pasteDialog: {
379
+ shown: false;
380
+ data: null;
381
+ } | {
382
+ shown: true;
383
+ data: import("../charts").Spreadsheet;
384
+ };
385
+ pendingImageElementId: string | null;
386
+ showHyperlinkPopup: false | "info" | "editor";
387
+ linkOpacity: number;
388
+ trayModeEnabled: boolean;
389
+ colorPalette: {
390
+ canvasBackground?: string[] | undefined;
391
+ elementBackground?: string[] | undefined;
392
+ elementStroke?: string[] | undefined;
393
+ };
394
+ allowWheelZoom?: boolean | undefined;
395
+ allowPinchZoom?: boolean | undefined;
396
+ pinnedScripts?: string[] | undefined;
397
+ customPens?: any[] | undefined;
398
+ currentStrokeOptions?: any;
399
+ resetCustomPen?: any;
400
+ gridColor: string;
401
+ dynamicStyle: string;
402
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
403
+ };
404
+ commitToHistory: false;
405
+ };
406
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
407
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
408
+ } & {
409
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
410
+ };
411
+ export declare const actionResetZoom: {
412
+ name: "resetZoom";
413
+ viewMode: true;
414
+ trackEvent: {
415
+ category: "canvas";
416
+ };
417
+ perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
418
+ appState: {
419
+ scrollX: number;
420
+ scrollY: number;
421
+ zoom: {
422
+ value: NormalizedZoomValue;
423
+ };
424
+ contextMenu: {
425
+ items: import("../components/ContextMenu").ContextMenuItems;
426
+ top: number;
427
+ left: number;
428
+ } | null;
429
+ showWelcomeScreen: boolean;
430
+ isLoading: boolean;
431
+ errorMessage: import("react").ReactNode;
432
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
433
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
434
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
435
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
436
+ isBindingEnabled: boolean;
437
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
438
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
439
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
440
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
441
+ activeTool: {
442
+ lastActiveTool: import("../types").LastActiveTool;
443
+ locked: boolean;
444
+ } & ({
445
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
446
+ customType: null;
447
+ } | {
448
+ type: "custom";
449
+ customType: string;
450
+ });
451
+ penMode: boolean;
452
+ penDetected: boolean;
453
+ exportBackground: boolean;
454
+ exportEmbedScene: boolean;
455
+ exportWithDarkMode: boolean;
456
+ exportScale: number;
457
+ currentItemStrokeColor: string;
458
+ currentItemBackgroundColor: string;
459
+ currentItemFillStyle: import("../element/types").FillStyle;
460
+ currentItemStrokeWidth: number;
461
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
462
+ currentItemRoughness: number;
463
+ currentItemOpacity: number;
464
+ currentItemFontFamily: number;
465
+ currentItemFontSize: number;
466
+ currentItemTextAlign: string;
467
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
468
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
469
+ currentItemRoundness: import("../element/types").StrokeRoundness;
470
+ viewBackgroundColor: string;
471
+ cursorButton: "up" | "down";
472
+ scrolledOutside: boolean;
473
+ name: string;
474
+ isResizing: boolean;
475
+ isRotating: boolean;
476
+ openMenu: "canvas" | "shape" | null;
477
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
478
+ openSidebar: "library" | "customSidebar" | null;
479
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
480
+ isSidebarDocked: boolean;
481
+ lastPointerDownWith: import("../element/types").PointerType;
482
+ selectedElementIds: {
483
+ [id: string]: boolean;
484
+ };
485
+ previousSelectedElementIds: {
486
+ [id: string]: boolean;
487
+ };
488
+ shouldCacheIgnoreZoom: boolean;
489
+ toast: {
490
+ message: string;
491
+ closable?: boolean | undefined;
492
+ duration?: number | undefined;
493
+ } | null;
494
+ zenModeEnabled: boolean;
495
+ theme: string;
496
+ gridSize: number | null;
497
+ previousGridSize: number | null;
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<string, import("../types").Collaborator>;
509
+ showStats: boolean;
510
+ currentChartType: import("../element/types").ChartType;
511
+ pasteDialog: {
512
+ shown: false;
513
+ data: null;
514
+ } | {
515
+ shown: true;
516
+ data: import("../charts").Spreadsheet;
517
+ };
518
+ pendingImageElementId: string | null;
519
+ showHyperlinkPopup: false | "info" | "editor";
520
+ linkOpacity: number;
521
+ trayModeEnabled: boolean;
522
+ colorPalette: {
523
+ canvasBackground?: string[] | undefined;
524
+ elementBackground?: string[] | undefined;
525
+ elementStroke?: string[] | undefined;
526
+ };
527
+ allowWheelZoom?: boolean | undefined;
528
+ allowPinchZoom?: boolean | undefined;
529
+ pinnedScripts?: string[] | undefined;
530
+ customPens?: any[] | undefined;
531
+ currentStrokeOptions?: any;
532
+ resetCustomPen?: any;
533
+ gridColor: string;
534
+ dynamicStyle: string;
535
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
536
+ };
537
+ commitToHistory: false;
538
+ };
539
+ PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
540
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
541
+ } & {
542
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
543
+ };
544
+ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, zoomToSelection: boolean, maxZoom?: number, margin?: number) => {
545
+ appState: {
546
+ zoom: {
547
+ value: NormalizedZoomValue;
548
+ };
549
+ scrollX: number;
550
+ scrollY: number;
551
+ contextMenu: {
552
+ items: import("../components/ContextMenu").ContextMenuItems;
553
+ top: number;
554
+ left: number;
555
+ } | null;
556
+ showWelcomeScreen: boolean;
557
+ isLoading: boolean;
558
+ errorMessage: import("react").ReactNode;
559
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
560
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
561
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
562
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
563
+ isBindingEnabled: boolean;
564
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
565
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
566
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
567
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
568
+ activeTool: {
569
+ lastActiveTool: import("../types").LastActiveTool;
570
+ locked: boolean;
571
+ } & ({
572
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
573
+ customType: null;
574
+ } | {
575
+ type: "custom";
576
+ customType: string;
577
+ });
578
+ penMode: boolean;
579
+ penDetected: boolean;
580
+ exportBackground: boolean;
581
+ exportEmbedScene: boolean;
582
+ exportWithDarkMode: boolean;
583
+ exportScale: number;
584
+ currentItemStrokeColor: string;
585
+ currentItemBackgroundColor: string;
586
+ currentItemFillStyle: import("../element/types").FillStyle;
587
+ currentItemStrokeWidth: number;
588
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
589
+ currentItemRoughness: number;
590
+ currentItemOpacity: number;
591
+ currentItemFontFamily: number;
592
+ currentItemFontSize: number;
593
+ currentItemTextAlign: string;
594
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
595
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
596
+ currentItemRoundness: import("../element/types").StrokeRoundness;
597
+ viewBackgroundColor: string;
598
+ cursorButton: "up" | "down";
599
+ scrolledOutside: boolean;
600
+ name: string;
601
+ isResizing: boolean;
602
+ isRotating: boolean;
603
+ openMenu: "canvas" | "shape" | null;
604
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
605
+ openSidebar: "library" | "customSidebar" | null;
606
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
607
+ isSidebarDocked: boolean;
608
+ lastPointerDownWith: import("../element/types").PointerType;
609
+ selectedElementIds: {
610
+ [id: string]: boolean;
611
+ };
612
+ previousSelectedElementIds: {
613
+ [id: string]: boolean;
614
+ };
615
+ shouldCacheIgnoreZoom: boolean;
616
+ toast: {
617
+ message: string;
618
+ closable?: boolean | undefined;
619
+ duration?: number | undefined;
620
+ } | null;
621
+ zenModeEnabled: boolean;
622
+ theme: string;
623
+ gridSize: number | null;
624
+ previousGridSize: number | null;
625
+ viewModeEnabled: boolean;
626
+ selectedGroupIds: {
627
+ [groupId: string]: boolean;
628
+ };
629
+ editingGroupId: string | null;
630
+ width: number;
631
+ height: number;
632
+ offsetTop: number;
633
+ offsetLeft: number;
634
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
635
+ collaborators: Map<string, import("../types").Collaborator>;
636
+ showStats: boolean;
637
+ currentChartType: import("../element/types").ChartType;
638
+ pasteDialog: {
639
+ shown: false;
640
+ data: null;
641
+ } | {
642
+ shown: true;
643
+ data: import("../charts").Spreadsheet;
644
+ };
645
+ pendingImageElementId: string | null;
646
+ showHyperlinkPopup: false | "info" | "editor";
647
+ linkOpacity: number;
648
+ trayModeEnabled: boolean;
649
+ colorPalette: {
650
+ canvasBackground?: string[] | undefined;
651
+ elementBackground?: string[] | undefined;
652
+ elementStroke?: string[] | undefined;
653
+ };
654
+ allowWheelZoom?: boolean | undefined;
655
+ allowPinchZoom?: boolean | undefined;
656
+ pinnedScripts?: string[] | undefined;
657
+ customPens?: any[] | undefined;
658
+ currentStrokeOptions?: any;
659
+ resetCustomPen?: any;
660
+ gridColor: string;
661
+ dynamicStyle: string;
662
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
663
+ };
664
+ commitToHistory: boolean;
665
+ };
666
+ export declare const actionZoomToSelected: {
667
+ name: "zoomToSelection";
668
+ trackEvent: {
669
+ category: "canvas";
670
+ };
671
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
672
+ appState: {
673
+ zoom: {
674
+ value: NormalizedZoomValue;
675
+ };
676
+ scrollX: number;
677
+ scrollY: number;
678
+ contextMenu: {
679
+ items: import("../components/ContextMenu").ContextMenuItems;
680
+ top: number;
681
+ left: number;
682
+ } | null;
683
+ showWelcomeScreen: boolean;
684
+ isLoading: boolean;
685
+ errorMessage: import("react").ReactNode;
686
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
687
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
688
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
689
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
690
+ isBindingEnabled: boolean;
691
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
692
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
693
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
694
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
695
+ activeTool: {
696
+ lastActiveTool: import("../types").LastActiveTool;
697
+ locked: boolean;
698
+ } & ({
699
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
700
+ customType: null;
701
+ } | {
702
+ type: "custom";
703
+ customType: string;
704
+ });
705
+ penMode: boolean;
706
+ penDetected: boolean;
707
+ exportBackground: boolean;
708
+ exportEmbedScene: boolean;
709
+ exportWithDarkMode: boolean;
710
+ exportScale: number;
711
+ currentItemStrokeColor: string;
712
+ currentItemBackgroundColor: string;
713
+ currentItemFillStyle: import("../element/types").FillStyle;
714
+ currentItemStrokeWidth: number;
715
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
716
+ currentItemRoughness: number;
717
+ currentItemOpacity: number;
718
+ currentItemFontFamily: number;
719
+ currentItemFontSize: number;
720
+ currentItemTextAlign: string;
721
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
722
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
723
+ currentItemRoundness: import("../element/types").StrokeRoundness;
724
+ viewBackgroundColor: string;
725
+ cursorButton: "up" | "down";
726
+ scrolledOutside: boolean;
727
+ name: string;
728
+ isResizing: boolean;
729
+ isRotating: boolean;
730
+ openMenu: "canvas" | "shape" | null;
731
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
732
+ openSidebar: "library" | "customSidebar" | null;
733
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
734
+ isSidebarDocked: boolean;
735
+ lastPointerDownWith: import("../element/types").PointerType;
736
+ selectedElementIds: {
737
+ [id: string]: boolean;
738
+ };
739
+ previousSelectedElementIds: {
740
+ [id: string]: boolean;
741
+ };
742
+ shouldCacheIgnoreZoom: boolean;
743
+ toast: {
744
+ message: string;
745
+ closable?: boolean | undefined;
746
+ duration?: number | undefined;
747
+ } | null;
748
+ zenModeEnabled: boolean;
749
+ theme: string;
750
+ gridSize: number | null;
751
+ previousGridSize: number | null;
752
+ viewModeEnabled: boolean;
753
+ selectedGroupIds: {
754
+ [groupId: string]: boolean;
755
+ };
756
+ editingGroupId: string | null;
757
+ width: number;
758
+ height: number;
759
+ offsetTop: number;
760
+ offsetLeft: number;
761
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
762
+ collaborators: Map<string, import("../types").Collaborator>;
763
+ showStats: boolean;
764
+ currentChartType: import("../element/types").ChartType;
765
+ pasteDialog: {
766
+ shown: false;
767
+ data: null;
768
+ } | {
769
+ shown: true;
770
+ data: import("../charts").Spreadsheet;
771
+ };
772
+ pendingImageElementId: string | null;
773
+ showHyperlinkPopup: false | "info" | "editor";
774
+ linkOpacity: number;
775
+ trayModeEnabled: boolean;
776
+ colorPalette: {
777
+ canvasBackground?: string[] | undefined;
778
+ elementBackground?: string[] | undefined;
779
+ elementStroke?: string[] | undefined;
780
+ };
781
+ allowWheelZoom?: boolean | undefined;
782
+ allowPinchZoom?: boolean | undefined;
783
+ pinnedScripts?: string[] | undefined;
784
+ customPens?: any[] | undefined;
785
+ currentStrokeOptions?: any;
786
+ resetCustomPen?: any;
787
+ gridColor: string;
788
+ dynamicStyle: string;
789
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
790
+ };
791
+ commitToHistory: boolean;
792
+ };
793
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
794
+ } & {
795
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
796
+ };
797
+ export declare const actionZoomToFit: {
798
+ name: "zoomToFit";
799
+ viewMode: true;
800
+ trackEvent: {
801
+ category: "canvas";
802
+ };
803
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
804
+ appState: {
805
+ zoom: {
806
+ value: NormalizedZoomValue;
807
+ };
808
+ scrollX: number;
809
+ scrollY: number;
810
+ contextMenu: {
811
+ items: import("../components/ContextMenu").ContextMenuItems;
812
+ top: number;
813
+ left: number;
814
+ } | null;
815
+ showWelcomeScreen: boolean;
816
+ isLoading: boolean;
817
+ errorMessage: import("react").ReactNode;
818
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
819
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
820
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
821
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
822
+ isBindingEnabled: boolean;
823
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
824
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
825
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
826
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
827
+ activeTool: {
828
+ lastActiveTool: import("../types").LastActiveTool;
829
+ locked: boolean;
830
+ } & ({
831
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
832
+ customType: null;
833
+ } | {
834
+ type: "custom";
835
+ customType: string;
836
+ });
837
+ penMode: boolean;
838
+ penDetected: boolean;
839
+ exportBackground: boolean;
840
+ exportEmbedScene: boolean;
841
+ exportWithDarkMode: boolean;
842
+ exportScale: number;
843
+ currentItemStrokeColor: string;
844
+ currentItemBackgroundColor: string;
845
+ currentItemFillStyle: import("../element/types").FillStyle;
846
+ currentItemStrokeWidth: number;
847
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
848
+ currentItemRoughness: number;
849
+ currentItemOpacity: number;
850
+ currentItemFontFamily: number;
851
+ currentItemFontSize: number;
852
+ currentItemTextAlign: string;
853
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
854
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
855
+ currentItemRoundness: import("../element/types").StrokeRoundness;
856
+ viewBackgroundColor: string;
857
+ cursorButton: "up" | "down";
858
+ scrolledOutside: boolean;
859
+ name: string;
860
+ isResizing: boolean;
861
+ isRotating: boolean;
862
+ openMenu: "canvas" | "shape" | null;
863
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
864
+ openSidebar: "library" | "customSidebar" | null;
865
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
866
+ isSidebarDocked: boolean;
867
+ lastPointerDownWith: import("../element/types").PointerType;
868
+ selectedElementIds: {
869
+ [id: string]: boolean;
870
+ };
871
+ previousSelectedElementIds: {
872
+ [id: string]: boolean;
873
+ };
874
+ shouldCacheIgnoreZoom: boolean;
875
+ toast: {
876
+ message: string;
877
+ closable?: boolean | undefined;
878
+ duration?: number | undefined;
879
+ } | null;
880
+ zenModeEnabled: boolean;
881
+ theme: string;
882
+ gridSize: number | null;
883
+ previousGridSize: number | null;
884
+ viewModeEnabled: boolean;
885
+ selectedGroupIds: {
886
+ [groupId: string]: boolean;
887
+ };
888
+ editingGroupId: string | null;
889
+ width: number;
890
+ height: number;
891
+ offsetTop: number;
892
+ offsetLeft: number;
893
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
894
+ collaborators: Map<string, import("../types").Collaborator>;
895
+ showStats: boolean;
896
+ currentChartType: import("../element/types").ChartType;
897
+ pasteDialog: {
898
+ shown: false;
899
+ data: null;
900
+ } | {
901
+ shown: true;
902
+ data: import("../charts").Spreadsheet;
903
+ };
904
+ pendingImageElementId: string | null;
905
+ showHyperlinkPopup: false | "info" | "editor";
906
+ linkOpacity: number;
907
+ trayModeEnabled: boolean;
908
+ colorPalette: {
909
+ canvasBackground?: string[] | undefined;
910
+ elementBackground?: string[] | undefined;
911
+ elementStroke?: string[] | undefined;
912
+ };
913
+ allowWheelZoom?: boolean | undefined;
914
+ allowPinchZoom?: boolean | undefined;
915
+ pinnedScripts?: string[] | undefined;
916
+ customPens?: any[] | undefined;
917
+ currentStrokeOptions?: any;
918
+ resetCustomPen?: any;
919
+ gridColor: string;
920
+ dynamicStyle: string;
921
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
922
+ };
923
+ commitToHistory: boolean;
924
+ };
925
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
926
+ } & {
927
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
928
+ };
929
+ export declare const actionToggleTheme: {
930
+ name: "toggleTheme";
931
+ viewMode: true;
932
+ trackEvent: {
933
+ category: "canvas";
934
+ };
935
+ perform: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: import("../types").AppClassProperties) => {
936
+ appState: {
937
+ theme: any;
938
+ contextMenu: {
939
+ items: import("../components/ContextMenu").ContextMenuItems;
940
+ top: number;
941
+ left: number;
942
+ } | null;
943
+ showWelcomeScreen: boolean;
944
+ isLoading: boolean;
945
+ errorMessage: import("react").ReactNode;
946
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
947
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
948
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
949
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
950
+ isBindingEnabled: boolean;
951
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
952
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
953
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
954
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
955
+ activeTool: {
956
+ lastActiveTool: import("../types").LastActiveTool;
957
+ locked: boolean;
958
+ } & ({
959
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
960
+ customType: null;
961
+ } | {
962
+ type: "custom";
963
+ customType: string;
964
+ });
965
+ penMode: boolean;
966
+ penDetected: boolean;
967
+ exportBackground: boolean;
968
+ exportEmbedScene: boolean;
969
+ exportWithDarkMode: boolean;
970
+ exportScale: number;
971
+ currentItemStrokeColor: string;
972
+ currentItemBackgroundColor: string;
973
+ currentItemFillStyle: import("../element/types").FillStyle;
974
+ currentItemStrokeWidth: number;
975
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
976
+ currentItemRoughness: number;
977
+ currentItemOpacity: number;
978
+ currentItemFontFamily: number;
979
+ currentItemFontSize: number;
980
+ currentItemTextAlign: string;
981
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
982
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
983
+ currentItemRoundness: import("../element/types").StrokeRoundness;
984
+ viewBackgroundColor: string;
985
+ scrollX: number;
986
+ scrollY: number;
987
+ cursorButton: "up" | "down";
988
+ scrolledOutside: boolean;
989
+ name: string;
990
+ isResizing: boolean;
991
+ isRotating: boolean;
992
+ zoom: Readonly<{
993
+ value: NormalizedZoomValue;
994
+ }>;
995
+ openMenu: "canvas" | "shape" | null;
996
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
997
+ openSidebar: "library" | "customSidebar" | null;
998
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
999
+ isSidebarDocked: boolean;
1000
+ lastPointerDownWith: import("../element/types").PointerType;
1001
+ selectedElementIds: {
1002
+ [id: string]: boolean;
1003
+ };
1004
+ previousSelectedElementIds: {
1005
+ [id: string]: boolean;
1006
+ };
1007
+ shouldCacheIgnoreZoom: boolean;
1008
+ toast: {
1009
+ message: string;
1010
+ closable?: boolean | undefined;
1011
+ duration?: number | undefined;
1012
+ } | null;
1013
+ zenModeEnabled: boolean;
1014
+ gridSize: number | null;
1015
+ previousGridSize: number | null;
1016
+ viewModeEnabled: boolean;
1017
+ selectedGroupIds: {
1018
+ [groupId: string]: boolean;
1019
+ };
1020
+ editingGroupId: string | null;
1021
+ width: number;
1022
+ height: number;
1023
+ offsetTop: number;
1024
+ offsetLeft: number;
1025
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1026
+ collaborators: Map<string, import("../types").Collaborator>;
1027
+ showStats: boolean;
1028
+ currentChartType: import("../element/types").ChartType;
1029
+ pasteDialog: {
1030
+ shown: false;
1031
+ data: null;
1032
+ } | {
1033
+ shown: true;
1034
+ data: import("../charts").Spreadsheet;
1035
+ };
1036
+ pendingImageElementId: string | null;
1037
+ showHyperlinkPopup: false | "info" | "editor";
1038
+ linkOpacity: number;
1039
+ trayModeEnabled: boolean;
1040
+ colorPalette: {
1041
+ canvasBackground?: string[] | undefined;
1042
+ elementBackground?: string[] | undefined;
1043
+ elementStroke?: string[] | undefined;
1044
+ };
1045
+ allowWheelZoom?: boolean | undefined;
1046
+ allowPinchZoom?: boolean | undefined;
1047
+ pinnedScripts?: string[] | undefined;
1048
+ customPens?: any[] | undefined;
1049
+ currentStrokeOptions?: any;
1050
+ resetCustomPen?: any;
1051
+ gridColor: string;
1052
+ dynamicStyle: string;
1053
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1054
+ };
1055
+ commitToHistory: false;
1056
+ };
1057
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1058
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1059
+ } & {
1060
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1061
+ };
1062
+ export declare const actionToggleEraserTool: {
1063
+ name: "toggleEraserTool";
1064
+ trackEvent: {
1065
+ category: "toolbar";
1066
+ };
1067
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
1068
+ appState: {
1069
+ selectedElementIds: {};
1070
+ selectedGroupIds: {};
1071
+ activeTool: {
1072
+ lastActiveTool: import("../types").LastActiveTool;
1073
+ locked: boolean;
1074
+ } & ({
1075
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1076
+ customType: null;
1077
+ } | {
1078
+ type: "custom";
1079
+ customType: string;
1080
+ });
1081
+ contextMenu: {
1082
+ items: import("../components/ContextMenu").ContextMenuItems;
1083
+ top: number;
1084
+ left: number;
1085
+ } | null;
1086
+ showWelcomeScreen: boolean;
1087
+ isLoading: boolean;
1088
+ errorMessage: import("react").ReactNode;
1089
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1090
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1091
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1092
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1093
+ isBindingEnabled: boolean;
1094
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1095
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1096
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1097
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1098
+ penMode: boolean;
1099
+ penDetected: boolean;
1100
+ exportBackground: boolean;
1101
+ exportEmbedScene: boolean;
1102
+ exportWithDarkMode: boolean;
1103
+ exportScale: number;
1104
+ currentItemStrokeColor: string;
1105
+ currentItemBackgroundColor: string;
1106
+ currentItemFillStyle: import("../element/types").FillStyle;
1107
+ currentItemStrokeWidth: number;
1108
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1109
+ currentItemRoughness: number;
1110
+ currentItemOpacity: number;
1111
+ currentItemFontFamily: number;
1112
+ currentItemFontSize: number;
1113
+ currentItemTextAlign: string;
1114
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1115
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1116
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1117
+ viewBackgroundColor: string;
1118
+ scrollX: number;
1119
+ scrollY: number;
1120
+ cursorButton: "up" | "down";
1121
+ scrolledOutside: boolean;
1122
+ name: string;
1123
+ isResizing: boolean;
1124
+ isRotating: boolean;
1125
+ zoom: Readonly<{
1126
+ value: NormalizedZoomValue;
1127
+ }>;
1128
+ openMenu: "canvas" | "shape" | null;
1129
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1130
+ openSidebar: "library" | "customSidebar" | null;
1131
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1132
+ isSidebarDocked: boolean;
1133
+ lastPointerDownWith: import("../element/types").PointerType;
1134
+ previousSelectedElementIds: {
1135
+ [id: string]: boolean;
1136
+ };
1137
+ shouldCacheIgnoreZoom: boolean;
1138
+ toast: {
1139
+ message: string;
1140
+ closable?: boolean | undefined;
1141
+ duration?: number | undefined;
1142
+ } | null;
1143
+ zenModeEnabled: boolean;
1144
+ theme: string;
1145
+ gridSize: number | null;
1146
+ previousGridSize: number | null;
1147
+ viewModeEnabled: boolean;
1148
+ editingGroupId: string | null;
1149
+ width: number;
1150
+ height: number;
1151
+ offsetTop: number;
1152
+ offsetLeft: number;
1153
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1154
+ collaborators: Map<string, import("../types").Collaborator>;
1155
+ showStats: boolean;
1156
+ currentChartType: import("../element/types").ChartType;
1157
+ pasteDialog: {
1158
+ shown: false;
1159
+ data: null;
1160
+ } | {
1161
+ shown: true;
1162
+ data: import("../charts").Spreadsheet;
1163
+ };
1164
+ pendingImageElementId: string | null;
1165
+ showHyperlinkPopup: false | "info" | "editor";
1166
+ linkOpacity: number;
1167
+ trayModeEnabled: boolean;
1168
+ colorPalette: {
1169
+ canvasBackground?: string[] | undefined;
1170
+ elementBackground?: string[] | undefined;
1171
+ elementStroke?: string[] | undefined;
1172
+ };
1173
+ allowWheelZoom?: boolean | undefined;
1174
+ allowPinchZoom?: boolean | undefined;
1175
+ pinnedScripts?: string[] | undefined;
1176
+ customPens?: any[] | undefined;
1177
+ currentStrokeOptions?: any;
1178
+ resetCustomPen?: any;
1179
+ gridColor: string;
1180
+ dynamicStyle: string;
1181
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1182
+ };
1183
+ commitToHistory: true;
1184
+ };
1185
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1186
+ } & {
1187
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1188
+ };
1189
+ export declare const actionToggleHandTool: {
1190
+ name: "toggleHandTool";
1191
+ trackEvent: {
1192
+ category: "toolbar";
1193
+ };
1194
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1195
+ appState: {
1196
+ selectedElementIds: {};
1197
+ selectedGroupIds: {};
1198
+ activeTool: {
1199
+ lastActiveTool: import("../types").LastActiveTool;
1200
+ locked: boolean;
1201
+ } & ({
1202
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1203
+ customType: null;
1204
+ } | {
1205
+ type: "custom";
1206
+ customType: string;
1207
+ });
1208
+ contextMenu: {
1209
+ items: import("../components/ContextMenu").ContextMenuItems;
1210
+ top: number;
1211
+ left: number;
1212
+ } | null;
1213
+ showWelcomeScreen: boolean;
1214
+ isLoading: boolean;
1215
+ errorMessage: import("react").ReactNode;
1216
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1217
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1218
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1219
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1220
+ isBindingEnabled: boolean;
1221
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1222
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1223
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1224
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1225
+ penMode: boolean;
1226
+ penDetected: boolean;
1227
+ exportBackground: boolean;
1228
+ exportEmbedScene: boolean;
1229
+ exportWithDarkMode: boolean;
1230
+ exportScale: number;
1231
+ currentItemStrokeColor: string;
1232
+ currentItemBackgroundColor: string;
1233
+ currentItemFillStyle: import("../element/types").FillStyle;
1234
+ currentItemStrokeWidth: number;
1235
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1236
+ currentItemRoughness: number;
1237
+ currentItemOpacity: number;
1238
+ currentItemFontFamily: number;
1239
+ currentItemFontSize: number;
1240
+ currentItemTextAlign: string;
1241
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1242
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1243
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1244
+ viewBackgroundColor: string;
1245
+ scrollX: number;
1246
+ scrollY: number;
1247
+ cursorButton: "up" | "down";
1248
+ scrolledOutside: boolean;
1249
+ name: string;
1250
+ isResizing: boolean;
1251
+ isRotating: boolean;
1252
+ zoom: Readonly<{
1253
+ value: NormalizedZoomValue;
1254
+ }>;
1255
+ openMenu: "canvas" | "shape" | null;
1256
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1257
+ openSidebar: "library" | "customSidebar" | null;
1258
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1259
+ isSidebarDocked: boolean;
1260
+ lastPointerDownWith: import("../element/types").PointerType;
1261
+ previousSelectedElementIds: {
1262
+ [id: string]: boolean;
1263
+ };
1264
+ shouldCacheIgnoreZoom: boolean;
1265
+ toast: {
1266
+ message: string;
1267
+ closable?: boolean | undefined;
1268
+ duration?: number | undefined;
1269
+ } | null;
1270
+ zenModeEnabled: boolean;
1271
+ theme: string;
1272
+ gridSize: number | null;
1273
+ previousGridSize: number | null;
1274
+ viewModeEnabled: boolean;
1275
+ editingGroupId: string | null;
1276
+ width: number;
1277
+ height: number;
1278
+ offsetTop: number;
1279
+ offsetLeft: number;
1280
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1281
+ collaborators: Map<string, import("../types").Collaborator>;
1282
+ showStats: boolean;
1283
+ currentChartType: import("../element/types").ChartType;
1284
+ pasteDialog: {
1285
+ shown: false;
1286
+ data: null;
1287
+ } | {
1288
+ shown: true;
1289
+ data: import("../charts").Spreadsheet;
1290
+ };
1291
+ pendingImageElementId: string | null;
1292
+ showHyperlinkPopup: false | "info" | "editor";
1293
+ linkOpacity: number;
1294
+ trayModeEnabled: boolean;
1295
+ colorPalette: {
1296
+ canvasBackground?: string[] | undefined;
1297
+ elementBackground?: string[] | undefined;
1298
+ elementStroke?: string[] | undefined;
1299
+ };
1300
+ allowWheelZoom?: boolean | undefined;
1301
+ allowPinchZoom?: boolean | undefined;
1302
+ pinnedScripts?: string[] | undefined;
1303
+ customPens?: any[] | undefined;
1304
+ currentStrokeOptions?: any;
1305
+ resetCustomPen?: any;
1306
+ gridColor: string;
1307
+ dynamicStyle: string;
1308
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1309
+ };
1310
+ commitToHistory: true;
1311
+ };
1312
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1313
+ } & {
1314
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1315
+ };