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