@zsviczian/excalidraw 0.14.2-obsidian-4 → 0.15.2-obsidian-1

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