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

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/excalidraw.development.js +186 -186
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/actions/actionAddToLibrary.d.ts +372 -372
  5. package/types/actions/actionAlign.d.ts +91 -91
  6. package/types/actions/actionBoundText.d.ts +284 -284
  7. package/types/actions/actionCanvas.d.ts +1315 -1315
  8. package/types/actions/actionClipboard.d.ts +717 -717
  9. package/types/actions/actionDeleteSelected.d.ts +409 -409
  10. package/types/actions/actionDistribute.d.ts +33 -33
  11. package/types/actions/actionDuplicateSelection.d.ts +22 -22
  12. package/types/actions/actionExport.d.ts +1181 -1181
  13. package/types/actions/actionFinalize.d.ts +256 -256
  14. package/types/actions/actionFlip.d.ts +35 -35
  15. package/types/actions/actionGroup.d.ts +45 -45
  16. package/types/actions/actionHistory.d.ts +6 -6
  17. package/types/actions/actionLinearEditor.d.ts +135 -135
  18. package/types/actions/actionMenu.d.ts +410 -410
  19. package/types/actions/actionNavigate.d.ts +14 -14
  20. package/types/actions/actionProperties.d.ts +1714 -1714
  21. package/types/actions/actionSelectAll.d.ts +16 -16
  22. package/types/actions/actionStyles.d.ts +149 -149
  23. package/types/actions/actionToggleGridMode.d.ts +138 -138
  24. package/types/actions/actionToggleLock.d.ts +135 -135
  25. package/types/actions/actionToggleStats.d.ts +135 -135
  26. package/types/actions/actionToggleViewMode.d.ts +137 -137
  27. package/types/actions/actionToggleZenMode.d.ts +137 -137
  28. package/types/actions/actionZindex.d.ts +67 -67
  29. package/types/actions/index.d.ts +24 -24
  30. package/types/actions/manager.d.ts +21 -21
  31. package/types/actions/register.d.ts +5 -5
  32. package/types/actions/shortcuts.d.ts +4 -4
  33. package/types/actions/types.d.ts +44 -44
  34. package/types/align.d.ts +6 -6
  35. package/types/analytics.d.ts +1 -1
  36. package/types/appState.d.ts +78 -78
  37. package/types/bug-issue-template.d.ts +2 -0
  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/ActiveFile.d.ts +7 -0
  45. package/types/components/App.d.ts +248 -248
  46. package/types/components/Avatar.d.ts +11 -11
  47. package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +4 -0
  48. package/types/components/BraveMeasureTextError.d.ts +2 -2
  49. package/types/components/Button.d.ts +15 -15
  50. package/types/components/ButtonIconSelect.d.ts +19 -11
  51. package/types/components/Card.d.ts +7 -7
  52. package/types/components/CheckboxItem.d.ts +8 -8
  53. package/types/components/ClearCanvas.d.ts +4 -0
  54. package/types/components/CollabButton.d.ts +7 -0
  55. package/types/components/ColorPicker.d.ts +19 -19
  56. package/types/components/ConfirmDialog.d.ts +10 -10
  57. package/types/components/ContextMenu.d.ts +15 -15
  58. package/types/components/DarkModeToggle.d.ts +7 -7
  59. package/types/components/Dialog.d.ts +14 -14
  60. package/types/components/DialogActionButton.d.ts +10 -10
  61. package/types/components/EncryptedIcon.d.ts +2 -0
  62. package/types/components/ErrorDialog.d.ts +5 -5
  63. package/types/components/FixedSideContainer.d.ts +9 -9
  64. package/types/components/Footer.d.ts +10 -0
  65. package/types/components/HandButton.d.ts +10 -10
  66. package/types/components/HelpButton.d.ts +7 -7
  67. package/types/components/HelpDialog.d.ts +4 -4
  68. package/types/components/HelpIcon.d.ts +8 -0
  69. package/types/components/HintViewer.d.ts +11 -11
  70. package/types/components/IconPicker.d.ts +13 -13
  71. package/types/components/ImageExportDialog.d.ts +18 -18
  72. package/types/components/InitializeApp.d.ts +10 -10
  73. package/types/components/Island.d.ts +10 -10
  74. package/types/components/JSONExportDialog.d.ts +15 -15
  75. package/types/components/LayerUI.d.ts +37 -37
  76. package/types/components/LibraryButton.d.ts +8 -8
  77. package/types/components/LibraryMenu.d.ts +25 -25
  78. package/types/components/LibraryMenuBrowseButton.d.ts +7 -7
  79. package/types/components/LibraryMenuHeaderContent.d.ts +35 -35
  80. package/types/components/LibraryMenuItems.d.ts +15 -15
  81. package/types/components/LibraryUnit.d.ts +11 -11
  82. package/types/components/LoadingMessage.d.ts +6 -6
  83. package/types/components/LockButton.d.ts +10 -10
  84. package/types/components/MenuItem.d.ts +11 -0
  85. package/types/components/MenuUtils.d.ts +2 -0
  86. package/types/components/MobileMenu.d.ts +26 -26
  87. package/types/components/Modal.d.ts +13 -13
  88. package/types/components/PasteChartDialog.d.ts +9 -9
  89. package/types/components/PenModeButton.d.ts +12 -12
  90. package/types/components/Popover.d.ts +15 -15
  91. package/types/components/ProjectName.d.ts +10 -10
  92. package/types/components/PublishLibrary.d.ts +16 -16
  93. package/types/components/Section.d.ts +6 -6
  94. package/types/components/Sidebar/Sidebar.d.ts +73 -73
  95. package/types/components/Sidebar/SidebarHeader.d.ts +20 -20
  96. package/types/components/Sidebar/common.d.ts +16 -16
  97. package/types/components/SidebarLockButton.d.ts +8 -0
  98. package/types/components/SingleLibraryItem.d.ts +10 -10
  99. package/types/components/Spinner.d.ts +6 -6
  100. package/types/components/Stack.d.ts +15 -15
  101. package/types/components/Stats.d.ts +11 -11
  102. package/types/components/Toast.d.ts +7 -7
  103. package/types/components/ToolButton.d.ts +46 -46
  104. package/types/components/Tooltip.d.ts +17 -17
  105. package/types/components/TopErrorBoundary.d.ts +15 -0
  106. package/types/components/UserList.d.ts +8 -8
  107. package/types/components/WelcomeScreen.d.ts +8 -0
  108. package/types/components/WelcomeScreenDecor.d.ts +6 -0
  109. package/types/components/context/tunnels.d.ts +16 -16
  110. package/types/components/dropdownMenu/DropdownMenu.d.ts +66 -66
  111. package/types/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
  112. package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  113. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -12
  114. package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +6 -6
  115. package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +6 -6
  116. package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +13 -13
  117. package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  118. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +9 -9
  119. package/types/components/dropdownMenu/common.d.ts +6 -6
  120. package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  121. package/types/components/footer/Footer.d.ts +12 -12
  122. package/types/components/footer/FooterCenter.d.ts +8 -8
  123. package/types/components/hoc/withInternalFallback.d.ts +4 -4
  124. package/types/components/hoc/withUpstreamOverride.d.ts +10 -10
  125. package/types/components/icons.d.ts +143 -142
  126. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +10 -10
  127. package/types/components/main-menu/DefaultItems.d.ts +44 -44
  128. package/types/components/main-menu/MainMenu.d.ts +60 -60
  129. package/types/components/mainMenu/DefaultItems.d.ts +44 -0
  130. package/types/components/mainMenu/MainMenu.d.ts +63 -0
  131. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +58 -58
  132. package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  133. package/types/components/welcome-screen/WelcomeScreen.d.ts +85 -85
  134. package/types/constants.d.ts +170 -170
  135. package/types/data/blob.d.ts +48 -48
  136. package/types/data/encode.d.ts +53 -53
  137. package/types/data/encryption.d.ts +9 -9
  138. package/types/data/filesystem.d.ts +18 -18
  139. package/types/data/image.d.ts +15 -15
  140. package/types/data/index.d.ts +13 -13
  141. package/types/data/json.d.ts +16 -16
  142. package/types/data/library.d.ts +96 -96
  143. package/types/data/resave.d.ts +5 -5
  144. package/types/data/restore.d.ts +21 -21
  145. package/types/data/types.d.ts +47 -47
  146. package/types/distribute.d.ts +6 -6
  147. package/types/element/Hyperlink.d.ts +155 -155
  148. package/types/element/binding.d.ts +33 -33
  149. package/types/element/bounds.d.ts +28 -28
  150. package/types/element/collision.d.ts +21 -21
  151. package/types/element/dragElements.d.ts +5 -5
  152. package/types/element/image.d.ts +22 -22
  153. package/types/element/index.d.ts +20 -20
  154. package/types/element/linearElementEditor.d.ts +273 -273
  155. package/types/element/mutateElement.d.ts +12 -12
  156. package/types/element/newElement.d.ts +66 -65
  157. package/types/element/resizeElements.d.ts +8 -8
  158. package/types/element/resizeTest.d.ts +13 -13
  159. package/types/element/showSelectedShapeActions.d.ts +3 -3
  160. package/types/element/sizeHelpers.d.ts +21 -21
  161. package/types/element/sortElements.d.ts +2 -2
  162. package/types/element/textElement.d.ts +79 -73
  163. package/types/element/textWysiwyg.d.ts +21 -21
  164. package/types/element/transformHandles.d.ts +28 -28
  165. package/types/element/typeChecks.d.ts +27 -27
  166. package/types/element/types.d.ts +150 -149
  167. package/types/errors.d.ts +8 -8
  168. package/types/excalidraw-app/CustomStats.d.ts +9 -0
  169. package/types/excalidraw-app/app_constants.d.ts +32 -0
  170. package/types/excalidraw-app/collab/Collab.d.ts +163 -0
  171. package/types/excalidraw-app/collab/Portal.d.ts +28 -0
  172. package/types/excalidraw-app/collab/RoomDialog.d.ts +13 -0
  173. package/types/excalidraw-app/collab/reconciliation.d.ts +10 -0
  174. package/types/excalidraw-app/components/ExportToExcalidrawPlus.d.ts +9 -0
  175. package/types/excalidraw-app/components/LanguageList.d.ts +4 -0
  176. package/types/excalidraw-app/components/icons.d.ts +1 -0
  177. package/types/excalidraw-app/data/FileManager.d.ts +66 -0
  178. package/types/excalidraw-app/data/LocalData.d.ts +32 -0
  179. package/types/excalidraw-app/data/Locker.d.ts +8 -0
  180. package/types/excalidraw-app/data/firebase.d.ts +25 -0
  181. package/types/excalidraw-app/data/index.d.ts +190 -0
  182. package/types/excalidraw-app/data/localStorage.d.ts +116 -0
  183. package/types/excalidraw-app/data/tabSync.d.ts +9 -0
  184. package/types/excalidraw-app/index.d.ts +26 -0
  185. package/types/ga.d.ts +63 -63
  186. package/types/gadirections.d.ts +8 -8
  187. package/types/galines.d.ts +22 -22
  188. package/types/gapoints.d.ts +7 -7
  189. package/types/gatransforms.d.ts +10 -10
  190. package/types/gesture.d.ts +6 -6
  191. package/types/groups.d.ts +27 -27
  192. package/types/history.d.ts +52 -52
  193. package/types/hooks/useCallbackRefState.d.ts +1 -1
  194. package/types/hooks/useOutsideClick.d.ts +2 -2
  195. package/types/i18n.d.ts +21 -21
  196. package/types/jotai.d.ts +122 -122
  197. package/types/keys.d.ts +77 -77
  198. package/types/math.d.ts +29 -29
  199. package/types/packages/common.webpack.dev.config.d.ts +72 -72
  200. package/types/packages/common.webpack.prod.config.d.ts +84 -84
  201. package/types/packages/excalidraw/dist/excalidraw.development.d.ts +4 -4
  202. package/types/packages/excalidraw/dist/excalidraw.production.min.d.ts +1 -1
  203. package/types/packages/excalidraw/entry.d.ts +1 -1
  204. package/types/packages/excalidraw/env.d.ts +1 -1
  205. package/types/packages/excalidraw/example/App.d.ts +14 -14
  206. package/types/packages/excalidraw/example/CustomFooter.d.ts +5 -5
  207. package/types/packages/excalidraw/example/MobileFooter.d.ts +5 -5
  208. package/types/packages/excalidraw/example/index.d.ts +1 -1
  209. package/types/packages/excalidraw/example/initialData.d.ts +172 -172
  210. package/types/packages/excalidraw/example/sidebar/ExampleSidebar.d.ts +5 -5
  211. package/types/packages/excalidraw/example/sidebar/Sidebar.d.ts +5 -0
  212. package/types/packages/excalidraw/index.d.ts +35 -35
  213. package/types/packages/excalidraw/main.d.ts +2 -2
  214. package/types/packages/excalidraw/publicPath.d.ts +1 -1
  215. package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -19
  216. package/types/packages/excalidraw/webpack.dev.config.d.ts +69 -69
  217. package/types/packages/excalidraw/webpack.prod.config.d.ts +78 -78
  218. package/types/packages/utils.d.ts +42 -42
  219. package/types/points.d.ts +7 -7
  220. package/types/polyfill.d.ts +2 -2
  221. package/types/random.d.ts +4 -4
  222. package/types/renderer/easingFunctions.d.ts +6 -6
  223. package/types/renderer/renderElement.d.ts +35 -35
  224. package/types/renderer/renderScene.d.ts +41 -41
  225. package/types/renderer/roundRect.d.ts +11 -11
  226. package/types/scene/Fonts.d.ts +21 -21
  227. package/types/scene/Scene.d.ts +40 -40
  228. package/types/scene/comparisons.d.ts +10 -10
  229. package/types/scene/export.d.ts +20 -20
  230. package/types/scene/index.d.ts +5 -5
  231. package/types/scene/scroll.d.ts +17 -17
  232. package/types/scene/scrollbars.d.ts +16 -16
  233. package/types/scene/selection.d.ts +11 -11
  234. package/types/scene/types.d.ts +59 -59
  235. package/types/scene/zoom.d.ts +13 -13
  236. package/types/shapes.d.ts +62 -62
  237. package/types/types.d.ts +442 -442
  238. package/types/utility-types.d.ts +22 -22
  239. package/types/utils.d.ts +162 -162
  240. package/types/zindex.d.ts +6 -6
  241. package/dist/.DS_Store +0 -0
@@ -1,1315 +1,1315 @@
1
- /// <reference types="react" />
2
- import { ExcalidrawElement } from "../element/types";
3
- import { AppState, NormalizedZoomValue } from "../types";
4
- export declare const actionChangeViewBackgroundColor: {
5
- name: "changeViewBackgroundColor";
6
- trackEvent: false;
7
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
8
- perform: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
9
- appState: any;
10
- commitToHistory: boolean;
11
- };
12
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
13
- } & {
14
- keyTest?: undefined;
15
- };
16
- export declare const actionClearCanvas: {
17
- name: "clearCanvas";
18
- trackEvent: {
19
- category: "canvas";
20
- };
21
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
22
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
23
- elements: ExcalidrawElement[];
24
- appState: {
25
- files: {};
26
- theme: string;
27
- penMode: boolean;
28
- penDetected: boolean;
29
- exportBackground: boolean;
30
- exportEmbedScene: boolean;
31
- gridSize: number | null;
32
- showStats: boolean;
33
- pasteDialog: {
34
- shown: false;
35
- data: null;
36
- } | {
37
- shown: true;
38
- data: import("../charts").Spreadsheet;
39
- };
40
- activeTool: {
41
- lastActiveTool: import("../types").LastActiveTool;
42
- locked: boolean;
43
- } & ({
44
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
45
- customType: null;
46
- } | {
47
- type: "custom";
48
- customType: string;
49
- });
50
- colorPalette: {
51
- canvasBackground?: string[] | undefined;
52
- elementBackground?: string[] | undefined;
53
- elementStroke?: string[] | undefined;
54
- };
55
- trayModeEnabled: boolean;
56
- allowPinchZoom: boolean | undefined;
57
- allowWheelZoom: boolean | undefined;
58
- pinnedScripts: string[] | undefined;
59
- customPens: any[] | undefined;
60
- name: string;
61
- contextMenu: {
62
- items: import("../components/ContextMenu").ContextMenuItems;
63
- top: number;
64
- left: number;
65
- } | null;
66
- showWelcomeScreen: boolean;
67
- isLoading: boolean;
68
- errorMessage: import("react").ReactNode;
69
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
70
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
71
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
72
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
73
- isBindingEnabled: boolean;
74
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
75
- suggestedBindings: import("../element/binding").SuggestedBinding[];
76
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
77
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
78
- exportWithDarkMode: boolean;
79
- exportScale: number;
80
- currentItemStrokeColor: string;
81
- currentItemBackgroundColor: string;
82
- currentItemFillStyle: import("../element/types").FillStyle;
83
- currentItemStrokeWidth: number;
84
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
85
- currentItemRoughness: number;
86
- currentItemOpacity: number;
87
- currentItemFontFamily: number;
88
- currentItemFontSize: number;
89
- currentItemTextAlign: string;
90
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
91
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
92
- currentItemRoundness: import("../element/types").StrokeRoundness;
93
- viewBackgroundColor: string;
94
- scrollX: number;
95
- scrollY: number;
96
- cursorButton: "up" | "down";
97
- scrolledOutside: boolean;
98
- isResizing: boolean;
99
- isRotating: boolean;
100
- zoom: Readonly<{
101
- value: NormalizedZoomValue;
102
- }>;
103
- openMenu: "canvas" | "shape" | null;
104
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
105
- openSidebar: "library" | "customSidebar" | null;
106
- openDialog: "imageExport" | "help" | "jsonExport" | null;
107
- isSidebarDocked: boolean;
108
- lastPointerDownWith: import("../element/types").PointerType;
109
- selectedElementIds: {
110
- [id: string]: boolean;
111
- };
112
- previousSelectedElementIds: {
113
- [id: string]: boolean;
114
- };
115
- shouldCacheIgnoreZoom: boolean;
116
- toast: {
117
- message: string;
118
- closable?: boolean | undefined;
119
- duration?: number | undefined;
120
- } | null;
121
- zenModeEnabled: boolean;
122
- previousGridSize: number | null;
123
- viewModeEnabled: boolean;
124
- selectedGroupIds: {
125
- [groupId: string]: boolean;
126
- };
127
- editingGroupId: string | null;
128
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
129
- collaborators: Map<string, import("../types").Collaborator>;
130
- currentChartType: import("../element/types").ChartType;
131
- pendingImageElementId: string | null;
132
- showHyperlinkPopup: false | "info" | "editor";
133
- linkOpacity: number;
134
- currentStrokeOptions?: any;
135
- resetCustomPen?: any;
136
- gridColor: string;
137
- 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
- };
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
+ };