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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/dist/.DS_Store +0 -0
  2. package/dist/excalidraw.development.js +196 -185
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/package.json +2 -2
  5. package/types/actions/actionAddToLibrary.d.ts +372 -365
  6. package/types/actions/actionAlign.d.ts +91 -91
  7. package/types/actions/actionBoundText.d.ts +284 -162
  8. package/types/actions/actionCanvas.d.ts +1315 -1295
  9. package/types/actions/actionClipboard.d.ts +717 -707
  10. package/types/actions/actionDeleteSelected.d.ts +409 -403
  11. package/types/actions/actionDistribute.d.ts +33 -33
  12. package/types/actions/actionDuplicateSelection.d.ts +22 -22
  13. package/types/actions/actionExport.d.ts +1181 -1163
  14. package/types/actions/actionFinalize.d.ts +256 -252
  15. package/types/actions/actionFlip.d.ts +35 -35
  16. package/types/actions/actionGroup.d.ts +45 -45
  17. package/types/actions/actionHistory.d.ts +6 -6
  18. package/types/actions/actionLinearEditor.d.ts +135 -132
  19. package/types/actions/actionMenu.d.ts +410 -404
  20. package/types/actions/actionNavigate.d.ts +14 -14
  21. package/types/actions/actionProperties.d.ts +1714 -1688
  22. package/types/actions/actionSelectAll.d.ts +16 -16
  23. package/types/actions/actionStyles.d.ts +149 -147
  24. package/types/actions/actionToggleGridMode.d.ts +138 -136
  25. package/types/actions/actionToggleLock.d.ts +135 -133
  26. package/types/actions/actionToggleStats.d.ts +135 -133
  27. package/types/actions/actionToggleViewMode.d.ts +137 -135
  28. package/types/actions/actionToggleZenMode.d.ts +137 -135
  29. package/types/actions/actionZindex.d.ts +67 -67
  30. package/types/actions/index.d.ts +24 -24
  31. package/types/actions/manager.d.ts +21 -21
  32. package/types/actions/register.d.ts +5 -5
  33. package/types/actions/shortcuts.d.ts +4 -3
  34. package/types/actions/types.d.ts +44 -43
  35. package/types/align.d.ts +6 -6
  36. package/types/analytics.d.ts +1 -1
  37. package/types/appState.d.ts +78 -78
  38. package/types/charts.d.ts +27 -27
  39. package/types/clients.d.ts +6 -6
  40. package/types/clipboard.d.ts +25 -25
  41. package/types/colors.d.ts +6 -6
  42. package/types/components/Actions.d.ts +36 -36
  43. package/types/components/ActiveConfirmDialog.d.ts +24 -24
  44. package/types/components/App.d.ts +248 -237
  45. package/types/components/Avatar.d.ts +11 -11
  46. package/types/components/BraveMeasureTextError.d.ts +2 -0
  47. package/types/components/Button.d.ts +15 -15
  48. package/types/components/ButtonIconSelect.d.ts +11 -11
  49. package/types/components/Card.d.ts +7 -7
  50. package/types/components/CheckboxItem.d.ts +8 -8
  51. package/types/components/ColorPicker.d.ts +19 -19
  52. package/types/components/ConfirmDialog.d.ts +10 -10
  53. package/types/components/ContextMenu.d.ts +15 -15
  54. package/types/components/DarkModeToggle.d.ts +7 -7
  55. package/types/components/Dialog.d.ts +14 -14
  56. package/types/components/DialogActionButton.d.ts +10 -10
  57. package/types/components/ErrorDialog.d.ts +5 -4
  58. package/types/components/FixedSideContainer.d.ts +9 -9
  59. package/types/components/HandButton.d.ts +10 -10
  60. package/types/components/HelpButton.d.ts +7 -7
  61. package/types/components/HelpDialog.d.ts +4 -4
  62. package/types/components/HintViewer.d.ts +11 -11
  63. package/types/components/IconPicker.d.ts +13 -13
  64. package/types/components/ImageExportDialog.d.ts +18 -18
  65. package/types/components/InitializeApp.d.ts +10 -10
  66. package/types/components/Island.d.ts +10 -10
  67. package/types/components/JSONExportDialog.d.ts +15 -15
  68. package/types/components/LayerUI.d.ts +37 -37
  69. package/types/components/LibraryButton.d.ts +8 -8
  70. package/types/components/LibraryMenu.d.ts +25 -25
  71. package/types/components/LibraryMenuBrowseButton.d.ts +7 -7
  72. package/types/components/LibraryMenuHeaderContent.d.ts +35 -35
  73. package/types/components/LibraryMenuItems.d.ts +15 -15
  74. package/types/components/LibraryUnit.d.ts +11 -11
  75. package/types/components/LoadingMessage.d.ts +6 -6
  76. package/types/components/LockButton.d.ts +10 -10
  77. package/types/components/MobileMenu.d.ts +26 -26
  78. package/types/components/Modal.d.ts +13 -12
  79. package/types/components/PasteChartDialog.d.ts +9 -9
  80. package/types/components/PenModeButton.d.ts +12 -12
  81. package/types/components/Popover.d.ts +15 -15
  82. package/types/components/ProjectName.d.ts +10 -10
  83. package/types/components/PublishLibrary.d.ts +16 -16
  84. package/types/components/Section.d.ts +6 -6
  85. package/types/components/Sidebar/Sidebar.d.ts +73 -73
  86. package/types/components/Sidebar/SidebarHeader.d.ts +20 -20
  87. package/types/components/Sidebar/common.d.ts +16 -16
  88. package/types/components/SingleLibraryItem.d.ts +10 -10
  89. package/types/components/Spinner.d.ts +6 -6
  90. package/types/components/Stack.d.ts +15 -15
  91. package/types/components/Stats.d.ts +11 -11
  92. package/types/components/Toast.d.ts +7 -7
  93. package/types/components/ToolButton.d.ts +46 -46
  94. package/types/components/Tooltip.d.ts +17 -17
  95. package/types/components/UserList.d.ts +8 -8
  96. package/types/components/context/tunnels.d.ts +16 -16
  97. package/types/components/dropdownMenu/DropdownMenu.d.ts +66 -66
  98. package/types/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
  99. package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  100. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -12
  101. package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +6 -6
  102. package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +6 -6
  103. package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +13 -13
  104. package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  105. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +9 -9
  106. package/types/components/dropdownMenu/common.d.ts +6 -6
  107. package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  108. package/types/components/footer/Footer.d.ts +12 -12
  109. package/types/components/footer/FooterCenter.d.ts +8 -8
  110. package/types/components/hoc/withInternalFallback.d.ts +4 -4
  111. package/types/components/hoc/withUpstreamOverride.d.ts +10 -10
  112. package/types/components/icons.d.ts +142 -142
  113. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +10 -10
  114. package/types/components/main-menu/DefaultItems.d.ts +44 -44
  115. package/types/components/main-menu/MainMenu.d.ts +60 -60
  116. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +58 -58
  117. package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  118. package/types/components/welcome-screen/WelcomeScreen.d.ts +85 -85
  119. package/types/constants.d.ts +170 -169
  120. package/types/data/blob.d.ts +48 -47
  121. package/types/data/encode.d.ts +53 -53
  122. package/types/data/encryption.d.ts +9 -9
  123. package/types/data/filesystem.d.ts +18 -18
  124. package/types/data/image.d.ts +15 -15
  125. package/types/data/index.d.ts +13 -13
  126. package/types/data/json.d.ts +16 -16
  127. package/types/data/library.d.ts +96 -96
  128. package/types/data/resave.d.ts +5 -5
  129. package/types/data/restore.d.ts +21 -21
  130. package/types/data/types.d.ts +47 -47
  131. package/types/distribute.d.ts +6 -6
  132. package/types/element/Hyperlink.d.ts +155 -153
  133. package/types/element/binding.d.ts +33 -33
  134. package/types/element/bounds.d.ts +28 -28
  135. package/types/element/collision.d.ts +21 -21
  136. package/types/element/dragElements.d.ts +5 -5
  137. package/types/element/image.d.ts +22 -22
  138. package/types/element/index.d.ts +20 -20
  139. package/types/element/linearElementEditor.d.ts +273 -269
  140. package/types/element/mutateElement.d.ts +12 -11
  141. package/types/element/newElement.d.ts +65 -63
  142. package/types/element/resizeElements.d.ts +8 -8
  143. package/types/element/resizeTest.d.ts +13 -13
  144. package/types/element/showSelectedShapeActions.d.ts +3 -3
  145. package/types/element/sizeHelpers.d.ts +21 -21
  146. package/types/element/sortElements.d.ts +2 -2
  147. package/types/element/textElement.d.ts +73 -55
  148. package/types/element/textWysiwyg.d.ts +21 -21
  149. package/types/element/transformHandles.d.ts +28 -28
  150. package/types/element/typeChecks.d.ts +27 -26
  151. package/types/element/types.d.ts +149 -141
  152. package/types/errors.d.ts +8 -8
  153. package/types/ga.d.ts +63 -63
  154. package/types/gadirections.d.ts +8 -8
  155. package/types/galines.d.ts +22 -22
  156. package/types/gapoints.d.ts +7 -7
  157. package/types/gatransforms.d.ts +10 -10
  158. package/types/gesture.d.ts +6 -6
  159. package/types/groups.d.ts +27 -27
  160. package/types/history.d.ts +52 -52
  161. package/types/hooks/useCallbackRefState.d.ts +1 -1
  162. package/types/hooks/useOutsideClick.d.ts +2 -2
  163. package/types/i18n.d.ts +21 -21
  164. package/types/jotai.d.ts +122 -122
  165. package/types/keys.d.ts +77 -77
  166. package/types/math.d.ts +29 -29
  167. package/types/packages/common.webpack.dev.config.d.ts +72 -71
  168. package/types/packages/common.webpack.prod.config.d.ts +84 -83
  169. package/types/packages/excalidraw/dist/excalidraw.development.d.ts +4 -4
  170. package/types/packages/excalidraw/dist/excalidraw.production.min.d.ts +1 -1
  171. package/types/packages/excalidraw/entry.d.ts +1 -1
  172. package/types/packages/excalidraw/env.d.ts +1 -1
  173. package/types/packages/excalidraw/example/App.d.ts +14 -14
  174. package/types/packages/excalidraw/example/CustomFooter.d.ts +5 -5
  175. package/types/packages/excalidraw/example/MobileFooter.d.ts +5 -5
  176. package/types/packages/excalidraw/example/index.d.ts +1 -1
  177. package/types/packages/excalidraw/example/initialData.d.ts +172 -172
  178. package/types/packages/excalidraw/example/sidebar/ExampleSidebar.d.ts +5 -5
  179. package/types/packages/excalidraw/index.d.ts +35 -34
  180. package/types/packages/excalidraw/main.d.ts +2 -2
  181. package/types/packages/excalidraw/publicPath.d.ts +1 -1
  182. package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -19
  183. package/types/packages/excalidraw/webpack.dev.config.d.ts +69 -68
  184. package/types/packages/excalidraw/webpack.prod.config.d.ts +78 -77
  185. package/types/packages/utils.d.ts +42 -42
  186. package/types/points.d.ts +7 -7
  187. package/types/polyfill.d.ts +2 -2
  188. package/types/random.d.ts +4 -4
  189. package/types/renderer/easingFunctions.d.ts +6 -6
  190. package/types/renderer/renderElement.d.ts +35 -35
  191. package/types/renderer/renderScene.d.ts +41 -41
  192. package/types/renderer/roundRect.d.ts +11 -11
  193. package/types/scene/Fonts.d.ts +21 -21
  194. package/types/scene/Scene.d.ts +40 -40
  195. package/types/scene/comparisons.d.ts +10 -10
  196. package/types/scene/export.d.ts +20 -20
  197. package/types/scene/index.d.ts +5 -5
  198. package/types/scene/scroll.d.ts +17 -17
  199. package/types/scene/scrollbars.d.ts +16 -16
  200. package/types/scene/selection.d.ts +11 -11
  201. package/types/scene/types.d.ts +59 -59
  202. package/types/scene/zoom.d.ts +13 -13
  203. package/types/shapes.d.ts +62 -62
  204. package/types/types.d.ts +442 -439
  205. package/types/utility-types.d.ts +22 -0
  206. package/types/utils.d.ts +162 -143
  207. package/types/zindex.d.ts +6 -6
  208. package/types/bug-issue-template.d.ts +0 -2
  209. package/types/components/ActiveFile.d.ts +0 -7
  210. package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +0 -4
  211. package/types/components/ClearCanvas.d.ts +0 -4
  212. package/types/components/CollabButton.d.ts +0 -7
  213. package/types/components/EncryptedIcon.d.ts +0 -2
  214. package/types/components/Footer.d.ts +0 -10
  215. package/types/components/HelpIcon.d.ts +0 -8
  216. package/types/components/MenuItem.d.ts +0 -11
  217. package/types/components/MenuUtils.d.ts +0 -2
  218. package/types/components/SidebarLockButton.d.ts +0 -8
  219. package/types/components/TopErrorBoundary.d.ts +0 -15
  220. package/types/components/WelcomeScreen.d.ts +0 -8
  221. package/types/components/WelcomeScreenDecor.d.ts +0 -6
  222. package/types/components/mainMenu/DefaultItems.d.ts +0 -44
  223. package/types/components/mainMenu/MainMenu.d.ts +0 -63
  224. package/types/excalidraw-app/CustomStats.d.ts +0 -9
  225. package/types/excalidraw-app/app_constants.d.ts +0 -32
  226. package/types/excalidraw-app/collab/Collab.d.ts +0 -163
  227. package/types/excalidraw-app/collab/Portal.d.ts +0 -28
  228. package/types/excalidraw-app/collab/RoomDialog.d.ts +0 -13
  229. package/types/excalidraw-app/collab/reconciliation.d.ts +0 -10
  230. package/types/excalidraw-app/components/ExportToExcalidrawPlus.d.ts +0 -9
  231. package/types/excalidraw-app/components/LanguageList.d.ts +0 -4
  232. package/types/excalidraw-app/components/icons.d.ts +0 -1
  233. package/types/excalidraw-app/data/FileManager.d.ts +0 -66
  234. package/types/excalidraw-app/data/LocalData.d.ts +0 -32
  235. package/types/excalidraw-app/data/Locker.d.ts +0 -8
  236. package/types/excalidraw-app/data/firebase.d.ts +0 -25
  237. package/types/excalidraw-app/data/index.d.ts +0 -190
  238. package/types/excalidraw-app/data/localStorage.d.ts +0 -116
  239. package/types/excalidraw-app/data/tabSync.d.ts +0 -9
  240. package/types/excalidraw-app/index.d.ts +0 -26
  241. package/types/packages/excalidraw/example/sidebar/Sidebar.d.ts +0 -5
@@ -1,1688 +1,1714 @@
1
- /// <reference types="react" />
2
- import { AppState } from "../../src/types";
3
- import { Arrowhead, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
4
- export declare const actionChangeStrokeColor: {
5
- name: "changeStrokeColor";
6
- trackEvent: false;
7
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
8
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
9
- } & {
10
- keyTest?: undefined;
11
- };
12
- export declare const actionChangeBackgroundColor: {
13
- name: "changeBackgroundColor";
14
- trackEvent: false;
15
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
16
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
17
- } & {
18
- keyTest?: undefined;
19
- };
20
- export declare const actionChangeFillStyle: {
21
- name: "changeFillStyle";
22
- trackEvent: false;
23
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
24
- elements: ExcalidrawElement[];
25
- appState: {
26
- currentItemFillStyle: any;
27
- contextMenu: {
28
- items: import("../components/ContextMenu").ContextMenuItems;
29
- top: number;
30
- left: number;
31
- } | null;
32
- showWelcomeScreen: boolean;
33
- isLoading: boolean;
34
- errorMessage: string | null;
35
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
36
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
37
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
38
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
39
- isBindingEnabled: boolean;
40
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
41
- suggestedBindings: import("../element/binding").SuggestedBinding[];
42
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
43
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
44
- activeTool: {
45
- lastActiveTool: import("../../src/types").LastActiveTool;
46
- locked: boolean;
47
- } & ({
48
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
49
- customType: null;
50
- } | {
51
- type: "custom";
52
- customType: string;
53
- });
54
- penMode: boolean;
55
- penDetected: boolean;
56
- exportBackground: boolean;
57
- exportEmbedScene: boolean;
58
- exportWithDarkMode: boolean;
59
- exportScale: number;
60
- currentItemStrokeColor: string;
61
- currentItemBackgroundColor: string;
62
- currentItemStrokeWidth: number;
63
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
64
- currentItemRoughness: number;
65
- currentItemOpacity: number;
66
- currentItemFontFamily: number;
67
- currentItemFontSize: number;
68
- currentItemTextAlign: string;
69
- currentItemStartArrowhead: Arrowhead | null;
70
- currentItemEndArrowhead: Arrowhead | null;
71
- currentItemRoundness: import("../element/types").StrokeRoundness;
72
- viewBackgroundColor: string;
73
- scrollX: number;
74
- scrollY: number;
75
- cursorButton: "up" | "down";
76
- scrolledOutside: boolean;
77
- name: string;
78
- isResizing: boolean;
79
- isRotating: boolean;
80
- zoom: Readonly<{
81
- value: import("../../src/types").NormalizedZoomValue;
82
- }>;
83
- openMenu: "canvas" | "shape" | null;
84
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
85
- openSidebar: "library" | "customSidebar" | null;
86
- openDialog: "imageExport" | "help" | "jsonExport" | null;
87
- isSidebarDocked: boolean;
88
- lastPointerDownWith: import("../element/types").PointerType;
89
- selectedElementIds: {
90
- [id: string]: boolean;
91
- };
92
- previousSelectedElementIds: {
93
- [id: string]: boolean;
94
- };
95
- shouldCacheIgnoreZoom: boolean;
96
- toast: {
97
- message: string;
98
- closable?: boolean | undefined;
99
- duration?: number | undefined;
100
- } | null;
101
- zenModeEnabled: boolean;
102
- theme: string;
103
- gridSize: number | null;
104
- previousGridSize: number | null;
105
- viewModeEnabled: boolean;
106
- selectedGroupIds: {
107
- [groupId: string]: boolean;
108
- };
109
- editingGroupId: string | null;
110
- width: number;
111
- height: number;
112
- offsetTop: number;
113
- offsetLeft: number;
114
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
115
- collaborators: Map<string, import("../../src/types").Collaborator>;
116
- showStats: boolean;
117
- currentChartType: import("../element/types").ChartType;
118
- pasteDialog: {
119
- shown: false;
120
- data: null;
121
- } | {
122
- shown: true;
123
- data: import("../charts").Spreadsheet;
124
- };
125
- pendingImageElementId: string | null;
126
- showHyperlinkPopup: false | "info" | "editor";
127
- linkOpacity: number;
128
- trayModeEnabled: boolean;
129
- colorPalette: {
130
- canvasBackground?: string[] | undefined;
131
- elementBackground?: string[] | undefined;
132
- elementStroke?: string[] | undefined;
133
- };
134
- allowWheelZoom?: boolean | undefined;
135
- allowPinchZoom?: boolean | undefined;
136
- pinnedScripts?: string[] | undefined;
137
- customPens?: any[] | undefined;
138
- currentStrokeOptions?: any;
139
- resetCustomPen?: any;
140
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
141
- };
142
- commitToHistory: true;
143
- };
144
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
145
- } & {
146
- keyTest?: undefined;
147
- };
148
- export declare const actionChangeStrokeWidth: {
149
- name: "changeStrokeWidth";
150
- trackEvent: false;
151
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
152
- elements: ExcalidrawElement[];
153
- appState: {
154
- currentItemStrokeWidth: any;
155
- contextMenu: {
156
- items: import("../components/ContextMenu").ContextMenuItems;
157
- top: number;
158
- left: number;
159
- } | null;
160
- showWelcomeScreen: boolean;
161
- isLoading: boolean;
162
- errorMessage: string | null;
163
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
164
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
165
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
166
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
167
- isBindingEnabled: boolean;
168
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
169
- suggestedBindings: import("../element/binding").SuggestedBinding[];
170
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
171
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
172
- activeTool: {
173
- lastActiveTool: import("../../src/types").LastActiveTool;
174
- locked: boolean;
175
- } & ({
176
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
177
- customType: null;
178
- } | {
179
- type: "custom";
180
- customType: string;
181
- });
182
- penMode: boolean;
183
- penDetected: boolean;
184
- exportBackground: boolean;
185
- exportEmbedScene: boolean;
186
- exportWithDarkMode: boolean;
187
- exportScale: number;
188
- currentItemStrokeColor: string;
189
- currentItemBackgroundColor: string;
190
- currentItemFillStyle: import("../element/types").FillStyle;
191
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
192
- currentItemRoughness: number;
193
- currentItemOpacity: number;
194
- currentItemFontFamily: number;
195
- currentItemFontSize: number;
196
- currentItemTextAlign: string;
197
- currentItemStartArrowhead: Arrowhead | null;
198
- currentItemEndArrowhead: Arrowhead | null;
199
- currentItemRoundness: import("../element/types").StrokeRoundness;
200
- viewBackgroundColor: string;
201
- scrollX: number;
202
- scrollY: number;
203
- cursorButton: "up" | "down";
204
- scrolledOutside: boolean;
205
- name: string;
206
- isResizing: boolean;
207
- isRotating: boolean;
208
- zoom: Readonly<{
209
- value: import("../../src/types").NormalizedZoomValue;
210
- }>;
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("../../src/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
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
269
- };
270
- commitToHistory: true;
271
- };
272
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
273
- } & {
274
- keyTest?: undefined;
275
- };
276
- export declare const actionChangeSloppiness: {
277
- name: "changeSloppiness";
278
- trackEvent: false;
279
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
280
- elements: ExcalidrawElement[];
281
- appState: {
282
- currentItemRoughness: any;
283
- contextMenu: {
284
- items: import("../components/ContextMenu").ContextMenuItems;
285
- top: number;
286
- left: number;
287
- } | null;
288
- showWelcomeScreen: boolean;
289
- isLoading: boolean;
290
- errorMessage: string | null;
291
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
292
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
293
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
294
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
295
- isBindingEnabled: boolean;
296
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
297
- suggestedBindings: import("../element/binding").SuggestedBinding[];
298
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
299
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
300
- activeTool: {
301
- lastActiveTool: import("../../src/types").LastActiveTool;
302
- locked: boolean;
303
- } & ({
304
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
305
- customType: null;
306
- } | {
307
- type: "custom";
308
- customType: string;
309
- });
310
- penMode: boolean;
311
- penDetected: boolean;
312
- exportBackground: boolean;
313
- exportEmbedScene: boolean;
314
- exportWithDarkMode: boolean;
315
- exportScale: number;
316
- currentItemStrokeColor: string;
317
- currentItemBackgroundColor: string;
318
- currentItemFillStyle: import("../element/types").FillStyle;
319
- currentItemStrokeWidth: number;
320
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
321
- currentItemOpacity: number;
322
- currentItemFontFamily: number;
323
- currentItemFontSize: number;
324
- currentItemTextAlign: string;
325
- currentItemStartArrowhead: Arrowhead | null;
326
- currentItemEndArrowhead: Arrowhead | null;
327
- currentItemRoundness: import("../element/types").StrokeRoundness;
328
- viewBackgroundColor: string;
329
- scrollX: number;
330
- scrollY: number;
331
- cursorButton: "up" | "down";
332
- scrolledOutside: boolean;
333
- name: string;
334
- isResizing: boolean;
335
- isRotating: boolean;
336
- zoom: Readonly<{
337
- value: import("../../src/types").NormalizedZoomValue;
338
- }>;
339
- openMenu: "canvas" | "shape" | null;
340
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
341
- openSidebar: "library" | "customSidebar" | null;
342
- openDialog: "imageExport" | "help" | "jsonExport" | null;
343
- isSidebarDocked: boolean;
344
- lastPointerDownWith: import("../element/types").PointerType;
345
- selectedElementIds: {
346
- [id: string]: boolean;
347
- };
348
- previousSelectedElementIds: {
349
- [id: string]: boolean;
350
- };
351
- shouldCacheIgnoreZoom: boolean;
352
- toast: {
353
- message: string;
354
- closable?: boolean | undefined;
355
- duration?: number | undefined;
356
- } | null;
357
- zenModeEnabled: boolean;
358
- theme: string;
359
- gridSize: number | null;
360
- previousGridSize: number | null;
361
- viewModeEnabled: boolean;
362
- selectedGroupIds: {
363
- [groupId: string]: boolean;
364
- };
365
- editingGroupId: string | null;
366
- width: number;
367
- height: number;
368
- offsetTop: number;
369
- offsetLeft: number;
370
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
371
- collaborators: Map<string, import("../../src/types").Collaborator>;
372
- showStats: boolean;
373
- currentChartType: import("../element/types").ChartType;
374
- pasteDialog: {
375
- shown: false;
376
- data: null;
377
- } | {
378
- shown: true;
379
- data: import("../charts").Spreadsheet;
380
- };
381
- pendingImageElementId: string | null;
382
- showHyperlinkPopup: false | "info" | "editor";
383
- linkOpacity: number;
384
- trayModeEnabled: boolean;
385
- colorPalette: {
386
- canvasBackground?: string[] | undefined;
387
- elementBackground?: string[] | undefined;
388
- elementStroke?: string[] | undefined;
389
- };
390
- allowWheelZoom?: boolean | undefined;
391
- allowPinchZoom?: boolean | undefined;
392
- pinnedScripts?: string[] | undefined;
393
- customPens?: any[] | undefined;
394
- currentStrokeOptions?: any;
395
- resetCustomPen?: any;
396
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
397
- };
398
- commitToHistory: true;
399
- };
400
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
401
- } & {
402
- keyTest?: undefined;
403
- };
404
- export declare const actionChangeStrokeStyle: {
405
- name: "changeStrokeStyle";
406
- trackEvent: false;
407
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
408
- elements: ExcalidrawElement[];
409
- appState: {
410
- currentItemStrokeStyle: any;
411
- contextMenu: {
412
- items: import("../components/ContextMenu").ContextMenuItems;
413
- top: number;
414
- left: number;
415
- } | null;
416
- showWelcomeScreen: boolean;
417
- isLoading: boolean;
418
- errorMessage: string | null;
419
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
420
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
421
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
422
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
423
- isBindingEnabled: boolean;
424
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
425
- suggestedBindings: import("../element/binding").SuggestedBinding[];
426
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
427
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
428
- activeTool: {
429
- lastActiveTool: import("../../src/types").LastActiveTool;
430
- locked: boolean;
431
- } & ({
432
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
433
- customType: null;
434
- } | {
435
- type: "custom";
436
- customType: string;
437
- });
438
- penMode: boolean;
439
- penDetected: boolean;
440
- exportBackground: boolean;
441
- exportEmbedScene: boolean;
442
- exportWithDarkMode: boolean;
443
- exportScale: number;
444
- currentItemStrokeColor: string;
445
- currentItemBackgroundColor: string;
446
- currentItemFillStyle: import("../element/types").FillStyle;
447
- currentItemStrokeWidth: number;
448
- currentItemRoughness: number;
449
- currentItemOpacity: number;
450
- currentItemFontFamily: number;
451
- currentItemFontSize: number;
452
- currentItemTextAlign: string;
453
- currentItemStartArrowhead: Arrowhead | null;
454
- currentItemEndArrowhead: Arrowhead | null;
455
- currentItemRoundness: import("../element/types").StrokeRoundness;
456
- viewBackgroundColor: string;
457
- scrollX: number;
458
- scrollY: number;
459
- cursorButton: "up" | "down";
460
- scrolledOutside: boolean;
461
- name: string;
462
- isResizing: boolean;
463
- isRotating: boolean;
464
- zoom: Readonly<{
465
- value: import("../../src/types").NormalizedZoomValue;
466
- }>;
467
- openMenu: "canvas" | "shape" | null;
468
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
469
- openSidebar: "library" | "customSidebar" | null;
470
- openDialog: "imageExport" | "help" | "jsonExport" | null;
471
- isSidebarDocked: boolean;
472
- lastPointerDownWith: import("../element/types").PointerType;
473
- selectedElementIds: {
474
- [id: string]: boolean;
475
- };
476
- previousSelectedElementIds: {
477
- [id: string]: boolean;
478
- };
479
- shouldCacheIgnoreZoom: boolean;
480
- toast: {
481
- message: string;
482
- closable?: boolean | undefined;
483
- duration?: number | undefined;
484
- } | null;
485
- zenModeEnabled: boolean;
486
- theme: string;
487
- gridSize: number | null;
488
- previousGridSize: number | null;
489
- viewModeEnabled: boolean;
490
- selectedGroupIds: {
491
- [groupId: string]: boolean;
492
- };
493
- editingGroupId: string | null;
494
- width: number;
495
- height: number;
496
- offsetTop: number;
497
- offsetLeft: number;
498
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
499
- collaborators: Map<string, import("../../src/types").Collaborator>;
500
- showStats: boolean;
501
- currentChartType: import("../element/types").ChartType;
502
- pasteDialog: {
503
- shown: false;
504
- data: null;
505
- } | {
506
- shown: true;
507
- data: import("../charts").Spreadsheet;
508
- };
509
- pendingImageElementId: string | null;
510
- showHyperlinkPopup: false | "info" | "editor";
511
- linkOpacity: number;
512
- trayModeEnabled: boolean;
513
- colorPalette: {
514
- canvasBackground?: string[] | undefined;
515
- elementBackground?: string[] | undefined;
516
- elementStroke?: string[] | undefined;
517
- };
518
- allowWheelZoom?: boolean | undefined;
519
- allowPinchZoom?: boolean | undefined;
520
- pinnedScripts?: string[] | undefined;
521
- customPens?: any[] | undefined;
522
- currentStrokeOptions?: any;
523
- resetCustomPen?: any;
524
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
525
- };
526
- commitToHistory: true;
527
- };
528
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
529
- } & {
530
- keyTest?: undefined;
531
- };
532
- export declare const actionChangeOpacity: {
533
- name: "changeOpacity";
534
- trackEvent: false;
535
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
536
- elements: ExcalidrawElement[];
537
- appState: {
538
- currentItemOpacity: any;
539
- contextMenu: {
540
- items: import("../components/ContextMenu").ContextMenuItems;
541
- top: number;
542
- left: number;
543
- } | null;
544
- showWelcomeScreen: boolean;
545
- isLoading: boolean;
546
- errorMessage: string | null;
547
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
548
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
549
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
550
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
551
- isBindingEnabled: boolean;
552
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
553
- suggestedBindings: import("../element/binding").SuggestedBinding[];
554
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
555
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
556
- activeTool: {
557
- lastActiveTool: import("../../src/types").LastActiveTool;
558
- locked: boolean;
559
- } & ({
560
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
561
- customType: null;
562
- } | {
563
- type: "custom";
564
- customType: string;
565
- });
566
- penMode: boolean;
567
- penDetected: boolean;
568
- exportBackground: boolean;
569
- exportEmbedScene: boolean;
570
- exportWithDarkMode: boolean;
571
- exportScale: number;
572
- currentItemStrokeColor: string;
573
- currentItemBackgroundColor: string;
574
- currentItemFillStyle: import("../element/types").FillStyle;
575
- currentItemStrokeWidth: number;
576
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
577
- currentItemRoughness: number;
578
- currentItemFontFamily: number;
579
- currentItemFontSize: number;
580
- currentItemTextAlign: string;
581
- currentItemStartArrowhead: Arrowhead | null;
582
- currentItemEndArrowhead: Arrowhead | null;
583
- currentItemRoundness: import("../element/types").StrokeRoundness;
584
- viewBackgroundColor: string;
585
- scrollX: number;
586
- scrollY: number;
587
- cursorButton: "up" | "down";
588
- scrolledOutside: boolean;
589
- name: string;
590
- isResizing: boolean;
591
- isRotating: boolean;
592
- zoom: Readonly<{
593
- value: import("../../src/types").NormalizedZoomValue;
594
- }>;
595
- openMenu: "canvas" | "shape" | null;
596
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
597
- openSidebar: "library" | "customSidebar" | null;
598
- openDialog: "imageExport" | "help" | "jsonExport" | null;
599
- isSidebarDocked: boolean;
600
- lastPointerDownWith: import("../element/types").PointerType;
601
- selectedElementIds: {
602
- [id: string]: boolean;
603
- };
604
- previousSelectedElementIds: {
605
- [id: string]: boolean;
606
- };
607
- shouldCacheIgnoreZoom: boolean;
608
- toast: {
609
- message: string;
610
- closable?: boolean | undefined;
611
- duration?: number | undefined;
612
- } | null;
613
- zenModeEnabled: boolean;
614
- theme: string;
615
- gridSize: number | null;
616
- previousGridSize: number | null;
617
- viewModeEnabled: boolean;
618
- selectedGroupIds: {
619
- [groupId: string]: boolean;
620
- };
621
- editingGroupId: string | null;
622
- width: number;
623
- height: number;
624
- offsetTop: number;
625
- offsetLeft: number;
626
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
627
- collaborators: Map<string, import("../../src/types").Collaborator>;
628
- showStats: boolean;
629
- currentChartType: import("../element/types").ChartType;
630
- pasteDialog: {
631
- shown: false;
632
- data: null;
633
- } | {
634
- shown: true;
635
- data: import("../charts").Spreadsheet;
636
- };
637
- pendingImageElementId: string | null;
638
- showHyperlinkPopup: false | "info" | "editor";
639
- linkOpacity: number;
640
- trayModeEnabled: boolean;
641
- colorPalette: {
642
- canvasBackground?: string[] | undefined;
643
- elementBackground?: string[] | undefined;
644
- elementStroke?: string[] | undefined;
645
- };
646
- allowWheelZoom?: boolean | undefined;
647
- allowPinchZoom?: boolean | undefined;
648
- pinnedScripts?: string[] | undefined;
649
- customPens?: any[] | undefined;
650
- currentStrokeOptions?: any;
651
- resetCustomPen?: any;
652
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
653
- };
654
- commitToHistory: true;
655
- };
656
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
657
- } & {
658
- keyTest?: undefined;
659
- };
660
- export declare const actionChangeFontSize: {
661
- name: "changeFontSize";
662
- trackEvent: false;
663
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
664
- elements: ExcalidrawElement[];
665
- appState: {
666
- currentItemFontSize: number;
667
- contextMenu: {
668
- items: import("../components/ContextMenu").ContextMenuItems;
669
- top: number;
670
- left: number;
671
- } | null;
672
- showWelcomeScreen: boolean;
673
- isLoading: boolean;
674
- errorMessage: string | null;
675
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
676
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
677
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
678
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
679
- isBindingEnabled: boolean;
680
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
681
- suggestedBindings: import("../element/binding").SuggestedBinding[];
682
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
683
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
684
- activeTool: {
685
- lastActiveTool: import("../../src/types").LastActiveTool;
686
- locked: boolean;
687
- } & ({
688
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
689
- customType: null;
690
- } | {
691
- type: "custom";
692
- customType: string;
693
- });
694
- penMode: boolean;
695
- penDetected: boolean;
696
- exportBackground: boolean;
697
- exportEmbedScene: boolean;
698
- exportWithDarkMode: boolean;
699
- exportScale: number;
700
- currentItemStrokeColor: string;
701
- currentItemBackgroundColor: string;
702
- currentItemFillStyle: import("../element/types").FillStyle;
703
- currentItemStrokeWidth: number;
704
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
705
- currentItemRoughness: number;
706
- currentItemOpacity: number;
707
- currentItemFontFamily: number;
708
- currentItemTextAlign: string;
709
- currentItemStartArrowhead: Arrowhead | null;
710
- currentItemEndArrowhead: Arrowhead | null;
711
- currentItemRoundness: import("../element/types").StrokeRoundness;
712
- viewBackgroundColor: string;
713
- scrollX: number;
714
- scrollY: number;
715
- cursorButton: "up" | "down";
716
- scrolledOutside: boolean;
717
- name: string;
718
- isResizing: boolean;
719
- isRotating: boolean;
720
- zoom: Readonly<{
721
- value: import("../../src/types").NormalizedZoomValue;
722
- }>;
723
- openMenu: "canvas" | "shape" | null;
724
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
725
- openSidebar: "library" | "customSidebar" | null;
726
- openDialog: "imageExport" | "help" | "jsonExport" | null;
727
- isSidebarDocked: boolean;
728
- lastPointerDownWith: import("../element/types").PointerType;
729
- selectedElementIds: {
730
- [id: string]: boolean;
731
- };
732
- previousSelectedElementIds: {
733
- [id: string]: boolean;
734
- };
735
- shouldCacheIgnoreZoom: boolean;
736
- toast: {
737
- message: string;
738
- closable?: boolean | undefined;
739
- duration?: number | undefined;
740
- } | null;
741
- zenModeEnabled: boolean;
742
- theme: string;
743
- gridSize: number | null;
744
- previousGridSize: number | null;
745
- viewModeEnabled: boolean;
746
- selectedGroupIds: {
747
- [groupId: string]: boolean;
748
- };
749
- editingGroupId: string | null;
750
- width: number;
751
- height: number;
752
- offsetTop: number;
753
- offsetLeft: number;
754
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
755
- collaborators: Map<string, import("../../src/types").Collaborator>;
756
- showStats: boolean;
757
- currentChartType: import("../element/types").ChartType;
758
- pasteDialog: {
759
- shown: false;
760
- data: null;
761
- } | {
762
- shown: true;
763
- data: import("../charts").Spreadsheet;
764
- };
765
- pendingImageElementId: string | null;
766
- showHyperlinkPopup: false | "info" | "editor";
767
- linkOpacity: number;
768
- trayModeEnabled: boolean;
769
- colorPalette: {
770
- canvasBackground?: string[] | undefined;
771
- elementBackground?: string[] | undefined;
772
- elementStroke?: string[] | undefined;
773
- };
774
- allowWheelZoom?: boolean | undefined;
775
- allowPinchZoom?: boolean | undefined;
776
- pinnedScripts?: string[] | undefined;
777
- customPens?: any[] | undefined;
778
- currentStrokeOptions?: any;
779
- resetCustomPen?: any;
780
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
781
- };
782
- commitToHistory: boolean;
783
- };
784
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
785
- } & {
786
- keyTest?: undefined;
787
- };
788
- export declare const actionDecreaseFontSize: {
789
- name: "decreaseFontSize";
790
- trackEvent: false;
791
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
792
- elements: ExcalidrawElement[];
793
- appState: {
794
- currentItemFontSize: number;
795
- contextMenu: {
796
- items: import("../components/ContextMenu").ContextMenuItems;
797
- top: number;
798
- left: number;
799
- } | null;
800
- showWelcomeScreen: boolean;
801
- isLoading: boolean;
802
- errorMessage: string | null;
803
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
804
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
805
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
806
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
807
- isBindingEnabled: boolean;
808
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
809
- suggestedBindings: import("../element/binding").SuggestedBinding[];
810
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
811
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
812
- activeTool: {
813
- lastActiveTool: import("../../src/types").LastActiveTool;
814
- locked: boolean;
815
- } & ({
816
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
817
- customType: null;
818
- } | {
819
- type: "custom";
820
- customType: string;
821
- });
822
- penMode: boolean;
823
- penDetected: boolean;
824
- exportBackground: boolean;
825
- exportEmbedScene: boolean;
826
- exportWithDarkMode: boolean;
827
- exportScale: number;
828
- currentItemStrokeColor: string;
829
- currentItemBackgroundColor: string;
830
- currentItemFillStyle: import("../element/types").FillStyle;
831
- currentItemStrokeWidth: number;
832
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
833
- currentItemRoughness: number;
834
- currentItemOpacity: number;
835
- currentItemFontFamily: number;
836
- currentItemTextAlign: string;
837
- currentItemStartArrowhead: Arrowhead | null;
838
- currentItemEndArrowhead: Arrowhead | null;
839
- currentItemRoundness: import("../element/types").StrokeRoundness;
840
- viewBackgroundColor: string;
841
- scrollX: number;
842
- scrollY: number;
843
- cursorButton: "up" | "down";
844
- scrolledOutside: boolean;
845
- name: string;
846
- isResizing: boolean;
847
- isRotating: boolean;
848
- zoom: Readonly<{
849
- value: import("../../src/types").NormalizedZoomValue;
850
- }>;
851
- openMenu: "canvas" | "shape" | null;
852
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
853
- openSidebar: "library" | "customSidebar" | null;
854
- openDialog: "imageExport" | "help" | "jsonExport" | null;
855
- isSidebarDocked: boolean;
856
- lastPointerDownWith: import("../element/types").PointerType;
857
- selectedElementIds: {
858
- [id: string]: boolean;
859
- };
860
- previousSelectedElementIds: {
861
- [id: string]: boolean;
862
- };
863
- shouldCacheIgnoreZoom: boolean;
864
- toast: {
865
- message: string;
866
- closable?: boolean | undefined;
867
- duration?: number | undefined;
868
- } | null;
869
- zenModeEnabled: boolean;
870
- theme: string;
871
- gridSize: number | null;
872
- previousGridSize: number | null;
873
- viewModeEnabled: boolean;
874
- selectedGroupIds: {
875
- [groupId: string]: boolean;
876
- };
877
- editingGroupId: string | null;
878
- width: number;
879
- height: number;
880
- offsetTop: number;
881
- offsetLeft: number;
882
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
883
- collaborators: Map<string, import("../../src/types").Collaborator>;
884
- showStats: boolean;
885
- currentChartType: import("../element/types").ChartType;
886
- pasteDialog: {
887
- shown: false;
888
- data: null;
889
- } | {
890
- shown: true;
891
- data: import("../charts").Spreadsheet;
892
- };
893
- pendingImageElementId: string | null;
894
- showHyperlinkPopup: false | "info" | "editor";
895
- linkOpacity: number;
896
- trayModeEnabled: boolean;
897
- colorPalette: {
898
- canvasBackground?: string[] | undefined;
899
- elementBackground?: string[] | undefined;
900
- elementStroke?: string[] | undefined;
901
- };
902
- allowWheelZoom?: boolean | undefined;
903
- allowPinchZoom?: boolean | undefined;
904
- pinnedScripts?: string[] | undefined;
905
- customPens?: any[] | undefined;
906
- currentStrokeOptions?: any;
907
- resetCustomPen?: any;
908
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
909
- };
910
- commitToHistory: boolean;
911
- };
912
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
913
- } & {
914
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
915
- };
916
- export declare const actionIncreaseFontSize: {
917
- name: "increaseFontSize";
918
- trackEvent: false;
919
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
920
- elements: ExcalidrawElement[];
921
- appState: {
922
- currentItemFontSize: number;
923
- contextMenu: {
924
- items: import("../components/ContextMenu").ContextMenuItems;
925
- top: number;
926
- left: number;
927
- } | null;
928
- showWelcomeScreen: boolean;
929
- isLoading: boolean;
930
- errorMessage: string | null;
931
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
932
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
933
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
934
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
935
- isBindingEnabled: boolean;
936
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
937
- suggestedBindings: import("../element/binding").SuggestedBinding[];
938
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
939
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
940
- activeTool: {
941
- lastActiveTool: import("../../src/types").LastActiveTool;
942
- locked: boolean;
943
- } & ({
944
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
945
- customType: null;
946
- } | {
947
- type: "custom";
948
- customType: string;
949
- });
950
- penMode: boolean;
951
- penDetected: boolean;
952
- exportBackground: boolean;
953
- exportEmbedScene: boolean;
954
- exportWithDarkMode: boolean;
955
- exportScale: number;
956
- currentItemStrokeColor: string;
957
- currentItemBackgroundColor: string;
958
- currentItemFillStyle: import("../element/types").FillStyle;
959
- currentItemStrokeWidth: number;
960
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
961
- currentItemRoughness: number;
962
- currentItemOpacity: number;
963
- currentItemFontFamily: number;
964
- currentItemTextAlign: string;
965
- currentItemStartArrowhead: Arrowhead | null;
966
- currentItemEndArrowhead: Arrowhead | null;
967
- currentItemRoundness: import("../element/types").StrokeRoundness;
968
- viewBackgroundColor: string;
969
- scrollX: number;
970
- scrollY: number;
971
- cursorButton: "up" | "down";
972
- scrolledOutside: boolean;
973
- name: string;
974
- isResizing: boolean;
975
- isRotating: boolean;
976
- zoom: Readonly<{
977
- value: import("../../src/types").NormalizedZoomValue;
978
- }>;
979
- openMenu: "canvas" | "shape" | null;
980
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
981
- openSidebar: "library" | "customSidebar" | null;
982
- openDialog: "imageExport" | "help" | "jsonExport" | null;
983
- isSidebarDocked: boolean;
984
- lastPointerDownWith: import("../element/types").PointerType;
985
- selectedElementIds: {
986
- [id: string]: boolean;
987
- };
988
- previousSelectedElementIds: {
989
- [id: string]: boolean;
990
- };
991
- shouldCacheIgnoreZoom: boolean;
992
- toast: {
993
- message: string;
994
- closable?: boolean | undefined;
995
- duration?: number | undefined;
996
- } | null;
997
- zenModeEnabled: boolean;
998
- theme: string;
999
- gridSize: number | null;
1000
- previousGridSize: number | null;
1001
- viewModeEnabled: boolean;
1002
- selectedGroupIds: {
1003
- [groupId: string]: boolean;
1004
- };
1005
- editingGroupId: string | null;
1006
- width: number;
1007
- height: number;
1008
- offsetTop: number;
1009
- offsetLeft: number;
1010
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1011
- collaborators: Map<string, import("../../src/types").Collaborator>;
1012
- showStats: boolean;
1013
- currentChartType: import("../element/types").ChartType;
1014
- pasteDialog: {
1015
- shown: false;
1016
- data: null;
1017
- } | {
1018
- shown: true;
1019
- data: import("../charts").Spreadsheet;
1020
- };
1021
- pendingImageElementId: string | null;
1022
- showHyperlinkPopup: false | "info" | "editor";
1023
- linkOpacity: number;
1024
- trayModeEnabled: boolean;
1025
- colorPalette: {
1026
- canvasBackground?: string[] | undefined;
1027
- elementBackground?: string[] | undefined;
1028
- elementStroke?: string[] | undefined;
1029
- };
1030
- allowWheelZoom?: boolean | undefined;
1031
- allowPinchZoom?: boolean | undefined;
1032
- pinnedScripts?: string[] | undefined;
1033
- customPens?: any[] | undefined;
1034
- currentStrokeOptions?: any;
1035
- resetCustomPen?: any;
1036
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1037
- };
1038
- commitToHistory: boolean;
1039
- };
1040
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1041
- } & {
1042
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1043
- };
1044
- export declare const actionChangeFontFamily: {
1045
- name: "changeFontFamily";
1046
- trackEvent: false;
1047
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1048
- elements: ExcalidrawElement[];
1049
- appState: {
1050
- currentItemFontFamily: any;
1051
- contextMenu: {
1052
- items: import("../components/ContextMenu").ContextMenuItems;
1053
- top: number;
1054
- left: number;
1055
- } | null;
1056
- showWelcomeScreen: boolean;
1057
- isLoading: boolean;
1058
- errorMessage: string | null;
1059
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1060
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1061
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1062
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1063
- isBindingEnabled: boolean;
1064
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1065
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1066
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1067
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1068
- activeTool: {
1069
- lastActiveTool: import("../../src/types").LastActiveTool;
1070
- locked: boolean;
1071
- } & ({
1072
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1073
- customType: null;
1074
- } | {
1075
- type: "custom";
1076
- customType: string;
1077
- });
1078
- penMode: boolean;
1079
- penDetected: boolean;
1080
- exportBackground: boolean;
1081
- exportEmbedScene: boolean;
1082
- exportWithDarkMode: boolean;
1083
- exportScale: number;
1084
- currentItemStrokeColor: string;
1085
- currentItemBackgroundColor: string;
1086
- currentItemFillStyle: import("../element/types").FillStyle;
1087
- currentItemStrokeWidth: number;
1088
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1089
- currentItemRoughness: number;
1090
- currentItemOpacity: number;
1091
- currentItemFontSize: number;
1092
- currentItemTextAlign: string;
1093
- currentItemStartArrowhead: Arrowhead | null;
1094
- currentItemEndArrowhead: Arrowhead | null;
1095
- currentItemRoundness: import("../element/types").StrokeRoundness;
1096
- viewBackgroundColor: string;
1097
- scrollX: number;
1098
- scrollY: number;
1099
- cursorButton: "up" | "down";
1100
- scrolledOutside: boolean;
1101
- name: string;
1102
- isResizing: boolean;
1103
- isRotating: boolean;
1104
- zoom: Readonly<{
1105
- value: import("../../src/types").NormalizedZoomValue;
1106
- }>;
1107
- openMenu: "canvas" | "shape" | null;
1108
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1109
- openSidebar: "library" | "customSidebar" | null;
1110
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1111
- isSidebarDocked: boolean;
1112
- lastPointerDownWith: import("../element/types").PointerType;
1113
- selectedElementIds: {
1114
- [id: string]: boolean;
1115
- };
1116
- previousSelectedElementIds: {
1117
- [id: string]: boolean;
1118
- };
1119
- shouldCacheIgnoreZoom: boolean;
1120
- toast: {
1121
- message: string;
1122
- closable?: boolean | undefined;
1123
- duration?: number | undefined;
1124
- } | null;
1125
- zenModeEnabled: boolean;
1126
- theme: string;
1127
- gridSize: number | null;
1128
- previousGridSize: number | null;
1129
- viewModeEnabled: boolean;
1130
- selectedGroupIds: {
1131
- [groupId: string]: boolean;
1132
- };
1133
- editingGroupId: string | null;
1134
- width: number;
1135
- height: number;
1136
- offsetTop: number;
1137
- offsetLeft: number;
1138
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1139
- collaborators: Map<string, import("../../src/types").Collaborator>;
1140
- showStats: boolean;
1141
- currentChartType: import("../element/types").ChartType;
1142
- pasteDialog: {
1143
- shown: false;
1144
- data: null;
1145
- } | {
1146
- shown: true;
1147
- data: import("../charts").Spreadsheet;
1148
- };
1149
- pendingImageElementId: string | null;
1150
- showHyperlinkPopup: false | "info" | "editor";
1151
- linkOpacity: number;
1152
- trayModeEnabled: boolean;
1153
- colorPalette: {
1154
- canvasBackground?: string[] | undefined;
1155
- elementBackground?: string[] | undefined;
1156
- elementStroke?: string[] | undefined;
1157
- };
1158
- allowWheelZoom?: boolean | undefined;
1159
- allowPinchZoom?: boolean | undefined;
1160
- pinnedScripts?: string[] | undefined;
1161
- customPens?: any[] | undefined;
1162
- currentStrokeOptions?: any;
1163
- resetCustomPen?: any;
1164
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1165
- };
1166
- commitToHistory: true;
1167
- };
1168
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1169
- } & {
1170
- keyTest?: undefined;
1171
- };
1172
- export declare const actionChangeTextAlign: {
1173
- name: "changeTextAlign";
1174
- trackEvent: false;
1175
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1176
- elements: ExcalidrawElement[];
1177
- appState: {
1178
- currentItemTextAlign: any;
1179
- contextMenu: {
1180
- items: import("../components/ContextMenu").ContextMenuItems;
1181
- top: number;
1182
- left: number;
1183
- } | null;
1184
- showWelcomeScreen: boolean;
1185
- isLoading: boolean;
1186
- errorMessage: string | null;
1187
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1188
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1189
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1190
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1191
- isBindingEnabled: boolean;
1192
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1193
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1194
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1195
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1196
- activeTool: {
1197
- lastActiveTool: import("../../src/types").LastActiveTool;
1198
- locked: boolean;
1199
- } & ({
1200
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1201
- customType: null;
1202
- } | {
1203
- type: "custom";
1204
- customType: string;
1205
- });
1206
- penMode: boolean;
1207
- penDetected: boolean;
1208
- exportBackground: boolean;
1209
- exportEmbedScene: boolean;
1210
- exportWithDarkMode: boolean;
1211
- exportScale: number;
1212
- currentItemStrokeColor: string;
1213
- currentItemBackgroundColor: string;
1214
- currentItemFillStyle: import("../element/types").FillStyle;
1215
- currentItemStrokeWidth: number;
1216
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1217
- currentItemRoughness: number;
1218
- currentItemOpacity: number;
1219
- currentItemFontFamily: number;
1220
- currentItemFontSize: number;
1221
- currentItemStartArrowhead: Arrowhead | null;
1222
- currentItemEndArrowhead: Arrowhead | null;
1223
- currentItemRoundness: import("../element/types").StrokeRoundness;
1224
- viewBackgroundColor: string;
1225
- scrollX: number;
1226
- scrollY: number;
1227
- cursorButton: "up" | "down";
1228
- scrolledOutside: boolean;
1229
- name: string;
1230
- isResizing: boolean;
1231
- isRotating: boolean;
1232
- zoom: Readonly<{
1233
- value: import("../../src/types").NormalizedZoomValue;
1234
- }>;
1235
- openMenu: "canvas" | "shape" | null;
1236
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1237
- openSidebar: "library" | "customSidebar" | null;
1238
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1239
- isSidebarDocked: boolean;
1240
- lastPointerDownWith: import("../element/types").PointerType;
1241
- selectedElementIds: {
1242
- [id: string]: boolean;
1243
- };
1244
- previousSelectedElementIds: {
1245
- [id: string]: boolean;
1246
- };
1247
- shouldCacheIgnoreZoom: boolean;
1248
- toast: {
1249
- message: string;
1250
- closable?: boolean | undefined;
1251
- duration?: number | undefined;
1252
- } | null;
1253
- zenModeEnabled: boolean;
1254
- theme: string;
1255
- gridSize: number | null;
1256
- previousGridSize: number | null;
1257
- viewModeEnabled: boolean;
1258
- selectedGroupIds: {
1259
- [groupId: string]: boolean;
1260
- };
1261
- editingGroupId: string | null;
1262
- width: number;
1263
- height: number;
1264
- offsetTop: number;
1265
- offsetLeft: number;
1266
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1267
- collaborators: Map<string, import("../../src/types").Collaborator>;
1268
- showStats: boolean;
1269
- currentChartType: import("../element/types").ChartType;
1270
- pasteDialog: {
1271
- shown: false;
1272
- data: null;
1273
- } | {
1274
- shown: true;
1275
- data: import("../charts").Spreadsheet;
1276
- };
1277
- pendingImageElementId: string | null;
1278
- showHyperlinkPopup: false | "info" | "editor";
1279
- linkOpacity: number;
1280
- trayModeEnabled: boolean;
1281
- colorPalette: {
1282
- canvasBackground?: string[] | undefined;
1283
- elementBackground?: string[] | undefined;
1284
- elementStroke?: string[] | undefined;
1285
- };
1286
- allowWheelZoom?: boolean | undefined;
1287
- allowPinchZoom?: boolean | undefined;
1288
- pinnedScripts?: string[] | undefined;
1289
- customPens?: any[] | undefined;
1290
- currentStrokeOptions?: any;
1291
- resetCustomPen?: any;
1292
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1293
- };
1294
- commitToHistory: true;
1295
- };
1296
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1297
- } & {
1298
- keyTest?: undefined;
1299
- };
1300
- export declare const actionChangeVerticalAlign: {
1301
- name: "changeVerticalAlign";
1302
- trackEvent: {
1303
- category: "element";
1304
- };
1305
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1306
- elements: ExcalidrawElement[];
1307
- appState: {
1308
- contextMenu: {
1309
- items: import("../components/ContextMenu").ContextMenuItems;
1310
- top: number;
1311
- left: number;
1312
- } | null;
1313
- showWelcomeScreen: boolean;
1314
- isLoading: boolean;
1315
- errorMessage: string | null;
1316
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1317
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1318
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1319
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1320
- isBindingEnabled: boolean;
1321
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1322
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1323
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1324
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1325
- activeTool: {
1326
- lastActiveTool: import("../../src/types").LastActiveTool;
1327
- locked: boolean;
1328
- } & ({
1329
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1330
- customType: null;
1331
- } | {
1332
- type: "custom";
1333
- customType: string;
1334
- });
1335
- penMode: boolean;
1336
- penDetected: boolean;
1337
- exportBackground: boolean;
1338
- exportEmbedScene: boolean;
1339
- exportWithDarkMode: boolean;
1340
- exportScale: number;
1341
- currentItemStrokeColor: string;
1342
- currentItemBackgroundColor: string;
1343
- currentItemFillStyle: import("../element/types").FillStyle;
1344
- currentItemStrokeWidth: number;
1345
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1346
- currentItemRoughness: number;
1347
- currentItemOpacity: number;
1348
- currentItemFontFamily: number;
1349
- currentItemFontSize: number;
1350
- currentItemTextAlign: string;
1351
- currentItemStartArrowhead: Arrowhead | null;
1352
- currentItemEndArrowhead: Arrowhead | null;
1353
- currentItemRoundness: import("../element/types").StrokeRoundness;
1354
- viewBackgroundColor: string;
1355
- scrollX: number;
1356
- scrollY: number;
1357
- cursorButton: "up" | "down";
1358
- scrolledOutside: boolean;
1359
- name: string;
1360
- isResizing: boolean;
1361
- isRotating: boolean;
1362
- zoom: Readonly<{
1363
- value: import("../../src/types").NormalizedZoomValue;
1364
- }>;
1365
- openMenu: "canvas" | "shape" | null;
1366
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1367
- openSidebar: "library" | "customSidebar" | null;
1368
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1369
- isSidebarDocked: boolean;
1370
- lastPointerDownWith: import("../element/types").PointerType;
1371
- selectedElementIds: {
1372
- [id: string]: boolean;
1373
- };
1374
- previousSelectedElementIds: {
1375
- [id: string]: boolean;
1376
- };
1377
- shouldCacheIgnoreZoom: boolean;
1378
- toast: {
1379
- message: string;
1380
- closable?: boolean | undefined;
1381
- duration?: number | undefined;
1382
- } | null;
1383
- zenModeEnabled: boolean;
1384
- theme: string;
1385
- gridSize: number | null;
1386
- previousGridSize: number | null;
1387
- viewModeEnabled: boolean;
1388
- selectedGroupIds: {
1389
- [groupId: string]: boolean;
1390
- };
1391
- editingGroupId: string | null;
1392
- width: number;
1393
- height: number;
1394
- offsetTop: number;
1395
- offsetLeft: number;
1396
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1397
- collaborators: Map<string, import("../../src/types").Collaborator>;
1398
- showStats: boolean;
1399
- currentChartType: import("../element/types").ChartType;
1400
- pasteDialog: {
1401
- shown: false;
1402
- data: null;
1403
- } | {
1404
- shown: true;
1405
- data: import("../charts").Spreadsheet;
1406
- };
1407
- pendingImageElementId: string | null;
1408
- showHyperlinkPopup: false | "info" | "editor";
1409
- linkOpacity: number;
1410
- trayModeEnabled: boolean;
1411
- colorPalette: {
1412
- canvasBackground?: string[] | undefined;
1413
- elementBackground?: string[] | undefined;
1414
- elementStroke?: string[] | undefined;
1415
- };
1416
- allowWheelZoom?: boolean | undefined;
1417
- allowPinchZoom?: boolean | undefined;
1418
- pinnedScripts?: string[] | undefined;
1419
- customPens?: any[] | undefined;
1420
- currentStrokeOptions?: any;
1421
- resetCustomPen?: any;
1422
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1423
- };
1424
- commitToHistory: true;
1425
- };
1426
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1427
- } & {
1428
- keyTest?: undefined;
1429
- };
1430
- export declare const actionChangeRoundness: {
1431
- name: "changeRoundness";
1432
- trackEvent: false;
1433
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1434
- elements: ExcalidrawElement[];
1435
- appState: {
1436
- currentItemRoundness: any;
1437
- contextMenu: {
1438
- items: import("../components/ContextMenu").ContextMenuItems;
1439
- top: number;
1440
- left: number;
1441
- } | null;
1442
- showWelcomeScreen: boolean;
1443
- isLoading: boolean;
1444
- errorMessage: string | null;
1445
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1446
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1447
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1448
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1449
- isBindingEnabled: boolean;
1450
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1451
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1452
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1453
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1454
- activeTool: {
1455
- lastActiveTool: import("../../src/types").LastActiveTool;
1456
- locked: boolean;
1457
- } & ({
1458
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1459
- customType: null;
1460
- } | {
1461
- type: "custom";
1462
- customType: string;
1463
- });
1464
- penMode: boolean;
1465
- penDetected: boolean;
1466
- exportBackground: boolean;
1467
- exportEmbedScene: boolean;
1468
- exportWithDarkMode: boolean;
1469
- exportScale: number;
1470
- currentItemStrokeColor: string;
1471
- currentItemBackgroundColor: string;
1472
- currentItemFillStyle: import("../element/types").FillStyle;
1473
- currentItemStrokeWidth: number;
1474
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1475
- currentItemRoughness: number;
1476
- currentItemOpacity: number;
1477
- currentItemFontFamily: number;
1478
- currentItemFontSize: number;
1479
- currentItemTextAlign: string;
1480
- currentItemStartArrowhead: Arrowhead | null;
1481
- currentItemEndArrowhead: Arrowhead | null;
1482
- viewBackgroundColor: string;
1483
- scrollX: number;
1484
- scrollY: number;
1485
- cursorButton: "up" | "down";
1486
- scrolledOutside: boolean;
1487
- name: string;
1488
- isResizing: boolean;
1489
- isRotating: boolean;
1490
- zoom: Readonly<{
1491
- value: import("../../src/types").NormalizedZoomValue;
1492
- }>;
1493
- openMenu: "canvas" | "shape" | null;
1494
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1495
- openSidebar: "library" | "customSidebar" | null;
1496
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1497
- isSidebarDocked: boolean;
1498
- lastPointerDownWith: import("../element/types").PointerType;
1499
- selectedElementIds: {
1500
- [id: string]: boolean;
1501
- };
1502
- previousSelectedElementIds: {
1503
- [id: string]: boolean;
1504
- };
1505
- shouldCacheIgnoreZoom: boolean;
1506
- toast: {
1507
- message: string;
1508
- closable?: boolean | undefined;
1509
- duration?: number | undefined;
1510
- } | null;
1511
- zenModeEnabled: boolean;
1512
- theme: string;
1513
- gridSize: number | null;
1514
- previousGridSize: number | null;
1515
- viewModeEnabled: boolean;
1516
- selectedGroupIds: {
1517
- [groupId: string]: boolean;
1518
- };
1519
- editingGroupId: string | null;
1520
- width: number;
1521
- height: number;
1522
- offsetTop: number;
1523
- offsetLeft: number;
1524
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1525
- collaborators: Map<string, import("../../src/types").Collaborator>;
1526
- showStats: boolean;
1527
- currentChartType: import("../element/types").ChartType;
1528
- pasteDialog: {
1529
- shown: false;
1530
- data: null;
1531
- } | {
1532
- shown: true;
1533
- data: import("../charts").Spreadsheet;
1534
- };
1535
- pendingImageElementId: string | null;
1536
- showHyperlinkPopup: false | "info" | "editor";
1537
- linkOpacity: number;
1538
- trayModeEnabled: boolean;
1539
- colorPalette: {
1540
- canvasBackground?: string[] | undefined;
1541
- elementBackground?: string[] | undefined;
1542
- elementStroke?: string[] | undefined;
1543
- };
1544
- allowWheelZoom?: boolean | undefined;
1545
- allowPinchZoom?: boolean | undefined;
1546
- pinnedScripts?: string[] | undefined;
1547
- customPens?: any[] | undefined;
1548
- currentStrokeOptions?: any;
1549
- resetCustomPen?: any;
1550
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1551
- };
1552
- commitToHistory: true;
1553
- };
1554
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1555
- } & {
1556
- keyTest?: undefined;
1557
- };
1558
- export declare const actionChangeArrowhead: {
1559
- name: "changeArrowhead";
1560
- trackEvent: false;
1561
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: {
1562
- position: "start" | "end";
1563
- type: Arrowhead;
1564
- }) => {
1565
- elements: ExcalidrawElement[];
1566
- appState: {
1567
- contextMenu: {
1568
- items: import("../components/ContextMenu").ContextMenuItems;
1569
- top: number;
1570
- left: number;
1571
- } | null;
1572
- showWelcomeScreen: boolean;
1573
- isLoading: boolean;
1574
- errorMessage: string | null;
1575
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1576
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1577
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1578
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1579
- isBindingEnabled: boolean;
1580
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1581
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1582
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1583
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1584
- activeTool: {
1585
- lastActiveTool: import("../../src/types").LastActiveTool;
1586
- locked: boolean;
1587
- } & ({
1588
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1589
- customType: null;
1590
- } | {
1591
- type: "custom";
1592
- customType: string;
1593
- });
1594
- penMode: boolean;
1595
- penDetected: boolean;
1596
- exportBackground: boolean;
1597
- exportEmbedScene: boolean;
1598
- exportWithDarkMode: boolean;
1599
- exportScale: number;
1600
- currentItemStrokeColor: string;
1601
- currentItemBackgroundColor: string;
1602
- currentItemFillStyle: import("../element/types").FillStyle;
1603
- currentItemStrokeWidth: number;
1604
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1605
- currentItemRoughness: number;
1606
- currentItemOpacity: number;
1607
- currentItemFontFamily: number;
1608
- currentItemFontSize: number;
1609
- currentItemTextAlign: string;
1610
- currentItemStartArrowhead: Arrowhead | null;
1611
- currentItemEndArrowhead: Arrowhead | null;
1612
- currentItemRoundness: import("../element/types").StrokeRoundness;
1613
- viewBackgroundColor: string;
1614
- scrollX: number;
1615
- scrollY: number;
1616
- cursorButton: "up" | "down";
1617
- scrolledOutside: boolean;
1618
- name: string;
1619
- isResizing: boolean;
1620
- isRotating: boolean;
1621
- zoom: Readonly<{
1622
- value: import("../../src/types").NormalizedZoomValue;
1623
- }>;
1624
- openMenu: "canvas" | "shape" | null;
1625
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1626
- openSidebar: "library" | "customSidebar" | null;
1627
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1628
- isSidebarDocked: boolean;
1629
- lastPointerDownWith: import("../element/types").PointerType;
1630
- selectedElementIds: {
1631
- [id: string]: boolean;
1632
- };
1633
- previousSelectedElementIds: {
1634
- [id: string]: boolean;
1635
- };
1636
- shouldCacheIgnoreZoom: boolean;
1637
- toast: {
1638
- message: string;
1639
- closable?: boolean | undefined;
1640
- duration?: number | undefined;
1641
- } | null;
1642
- zenModeEnabled: boolean;
1643
- theme: string;
1644
- gridSize: number | null;
1645
- previousGridSize: number | null;
1646
- viewModeEnabled: boolean;
1647
- selectedGroupIds: {
1648
- [groupId: string]: boolean;
1649
- };
1650
- editingGroupId: string | null;
1651
- width: number;
1652
- height: number;
1653
- offsetTop: number;
1654
- offsetLeft: number;
1655
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1656
- collaborators: Map<string, import("../../src/types").Collaborator>;
1657
- showStats: boolean;
1658
- currentChartType: import("../element/types").ChartType;
1659
- pasteDialog: {
1660
- shown: false;
1661
- data: null;
1662
- } | {
1663
- shown: true;
1664
- data: import("../charts").Spreadsheet;
1665
- };
1666
- pendingImageElementId: string | null;
1667
- showHyperlinkPopup: false | "info" | "editor";
1668
- linkOpacity: number;
1669
- trayModeEnabled: boolean;
1670
- colorPalette: {
1671
- canvasBackground?: string[] | undefined;
1672
- elementBackground?: string[] | undefined;
1673
- elementStroke?: string[] | undefined;
1674
- };
1675
- allowWheelZoom?: boolean | undefined;
1676
- allowPinchZoom?: boolean | undefined;
1677
- pinnedScripts?: string[] | undefined;
1678
- customPens?: any[] | undefined;
1679
- currentStrokeOptions?: any;
1680
- resetCustomPen?: any;
1681
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1682
- };
1683
- commitToHistory: true;
1684
- };
1685
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1686
- } & {
1687
- keyTest?: undefined;
1688
- };
1
+ /// <reference types="react" />
2
+ import { AppState } from "../../src/types";
3
+ import { Arrowhead, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
4
+ export declare const actionChangeStrokeColor: {
5
+ name: "changeStrokeColor";
6
+ trackEvent: false;
7
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
8
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
9
+ } & {
10
+ keyTest?: undefined;
11
+ };
12
+ export declare const actionChangeBackgroundColor: {
13
+ name: "changeBackgroundColor";
14
+ trackEvent: false;
15
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
16
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
17
+ } & {
18
+ keyTest?: undefined;
19
+ };
20
+ export declare const actionChangeFillStyle: {
21
+ name: "changeFillStyle";
22
+ trackEvent: false;
23
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
24
+ elements: ExcalidrawElement[];
25
+ appState: {
26
+ currentItemFillStyle: any;
27
+ contextMenu: {
28
+ items: import("../components/ContextMenu").ContextMenuItems;
29
+ top: number;
30
+ left: number;
31
+ } | null;
32
+ showWelcomeScreen: boolean;
33
+ isLoading: boolean;
34
+ errorMessage: import("react").ReactNode;
35
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
36
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
37
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
38
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
39
+ isBindingEnabled: boolean;
40
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
41
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
42
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
43
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
44
+ activeTool: {
45
+ lastActiveTool: import("../../src/types").LastActiveTool;
46
+ locked: boolean;
47
+ } & ({
48
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
49
+ customType: null;
50
+ } | {
51
+ type: "custom";
52
+ customType: string;
53
+ });
54
+ penMode: boolean;
55
+ penDetected: boolean;
56
+ exportBackground: boolean;
57
+ exportEmbedScene: boolean;
58
+ exportWithDarkMode: boolean;
59
+ exportScale: number;
60
+ currentItemStrokeColor: string;
61
+ currentItemBackgroundColor: string;
62
+ currentItemStrokeWidth: number;
63
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
64
+ currentItemRoughness: number;
65
+ currentItemOpacity: number;
66
+ currentItemFontFamily: number;
67
+ currentItemFontSize: number;
68
+ currentItemTextAlign: string;
69
+ currentItemStartArrowhead: Arrowhead | null;
70
+ currentItemEndArrowhead: Arrowhead | null;
71
+ currentItemRoundness: import("../element/types").StrokeRoundness;
72
+ viewBackgroundColor: string;
73
+ scrollX: number;
74
+ scrollY: number;
75
+ cursorButton: "up" | "down";
76
+ scrolledOutside: boolean;
77
+ name: string;
78
+ isResizing: boolean;
79
+ isRotating: boolean;
80
+ zoom: Readonly<{
81
+ value: import("../../src/types").NormalizedZoomValue;
82
+ }>;
83
+ openMenu: "canvas" | "shape" | null;
84
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
85
+ openSidebar: "library" | "customSidebar" | null;
86
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
87
+ isSidebarDocked: boolean;
88
+ lastPointerDownWith: import("../element/types").PointerType;
89
+ selectedElementIds: {
90
+ [id: string]: boolean;
91
+ };
92
+ previousSelectedElementIds: {
93
+ [id: string]: boolean;
94
+ };
95
+ shouldCacheIgnoreZoom: boolean;
96
+ toast: {
97
+ message: string;
98
+ closable?: boolean | undefined;
99
+ duration?: number | undefined;
100
+ } | null;
101
+ zenModeEnabled: boolean;
102
+ theme: string;
103
+ gridSize: number | null;
104
+ previousGridSize: number | null;
105
+ viewModeEnabled: boolean;
106
+ selectedGroupIds: {
107
+ [groupId: string]: boolean;
108
+ };
109
+ editingGroupId: string | null;
110
+ width: number;
111
+ height: number;
112
+ offsetTop: number;
113
+ offsetLeft: number;
114
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
115
+ collaborators: Map<string, import("../../src/types").Collaborator>;
116
+ showStats: boolean;
117
+ currentChartType: import("../element/types").ChartType;
118
+ pasteDialog: {
119
+ shown: false;
120
+ data: null;
121
+ } | {
122
+ shown: true;
123
+ data: import("../charts").Spreadsheet;
124
+ };
125
+ pendingImageElementId: string | null;
126
+ showHyperlinkPopup: false | "info" | "editor";
127
+ linkOpacity: number;
128
+ trayModeEnabled: boolean;
129
+ colorPalette: {
130
+ canvasBackground?: string[] | undefined;
131
+ elementBackground?: string[] | undefined;
132
+ elementStroke?: string[] | undefined;
133
+ };
134
+ allowWheelZoom?: boolean | undefined;
135
+ allowPinchZoom?: boolean | undefined;
136
+ pinnedScripts?: string[] | undefined;
137
+ customPens?: any[] | undefined;
138
+ currentStrokeOptions?: any;
139
+ resetCustomPen?: any;
140
+ gridColor: string;
141
+ dynamicStyle: string;
142
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
143
+ };
144
+ commitToHistory: true;
145
+ };
146
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
147
+ } & {
148
+ keyTest?: undefined;
149
+ };
150
+ export declare const actionChangeStrokeWidth: {
151
+ name: "changeStrokeWidth";
152
+ trackEvent: false;
153
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
154
+ elements: ExcalidrawElement[];
155
+ appState: {
156
+ currentItemStrokeWidth: any;
157
+ contextMenu: {
158
+ items: import("../components/ContextMenu").ContextMenuItems;
159
+ top: number;
160
+ left: number;
161
+ } | null;
162
+ showWelcomeScreen: boolean;
163
+ isLoading: boolean;
164
+ errorMessage: import("react").ReactNode;
165
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
166
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
167
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
168
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
169
+ isBindingEnabled: boolean;
170
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
171
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
172
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
173
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
174
+ activeTool: {
175
+ lastActiveTool: import("../../src/types").LastActiveTool;
176
+ locked: boolean;
177
+ } & ({
178
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
179
+ customType: null;
180
+ } | {
181
+ type: "custom";
182
+ customType: string;
183
+ });
184
+ penMode: boolean;
185
+ penDetected: boolean;
186
+ exportBackground: boolean;
187
+ exportEmbedScene: boolean;
188
+ exportWithDarkMode: boolean;
189
+ exportScale: number;
190
+ currentItemStrokeColor: string;
191
+ currentItemBackgroundColor: string;
192
+ currentItemFillStyle: import("../element/types").FillStyle;
193
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
194
+ currentItemRoughness: number;
195
+ currentItemOpacity: number;
196
+ currentItemFontFamily: number;
197
+ currentItemFontSize: number;
198
+ currentItemTextAlign: string;
199
+ currentItemStartArrowhead: Arrowhead | null;
200
+ currentItemEndArrowhead: Arrowhead | null;
201
+ currentItemRoundness: import("../element/types").StrokeRoundness;
202
+ viewBackgroundColor: string;
203
+ scrollX: number;
204
+ scrollY: number;
205
+ cursorButton: "up" | "down";
206
+ scrolledOutside: boolean;
207
+ name: string;
208
+ isResizing: boolean;
209
+ isRotating: boolean;
210
+ zoom: Readonly<{
211
+ value: import("../../src/types").NormalizedZoomValue;
212
+ }>;
213
+ openMenu: "canvas" | "shape" | null;
214
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
215
+ openSidebar: "library" | "customSidebar" | null;
216
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
217
+ isSidebarDocked: boolean;
218
+ lastPointerDownWith: import("../element/types").PointerType;
219
+ selectedElementIds: {
220
+ [id: string]: boolean;
221
+ };
222
+ previousSelectedElementIds: {
223
+ [id: string]: boolean;
224
+ };
225
+ shouldCacheIgnoreZoom: boolean;
226
+ toast: {
227
+ message: string;
228
+ closable?: boolean | undefined;
229
+ duration?: number | undefined;
230
+ } | null;
231
+ zenModeEnabled: boolean;
232
+ theme: string;
233
+ gridSize: number | null;
234
+ previousGridSize: number | null;
235
+ viewModeEnabled: boolean;
236
+ selectedGroupIds: {
237
+ [groupId: string]: boolean;
238
+ };
239
+ editingGroupId: string | null;
240
+ width: number;
241
+ height: number;
242
+ offsetTop: number;
243
+ offsetLeft: number;
244
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
245
+ collaborators: Map<string, import("../../src/types").Collaborator>;
246
+ showStats: boolean;
247
+ currentChartType: import("../element/types").ChartType;
248
+ pasteDialog: {
249
+ shown: false;
250
+ data: null;
251
+ } | {
252
+ shown: true;
253
+ data: import("../charts").Spreadsheet;
254
+ };
255
+ pendingImageElementId: string | null;
256
+ showHyperlinkPopup: false | "info" | "editor";
257
+ linkOpacity: number;
258
+ trayModeEnabled: boolean;
259
+ colorPalette: {
260
+ canvasBackground?: string[] | undefined;
261
+ elementBackground?: string[] | undefined;
262
+ elementStroke?: string[] | undefined;
263
+ };
264
+ allowWheelZoom?: boolean | undefined;
265
+ allowPinchZoom?: boolean | undefined;
266
+ pinnedScripts?: string[] | undefined;
267
+ customPens?: any[] | undefined;
268
+ currentStrokeOptions?: any;
269
+ resetCustomPen?: any;
270
+ gridColor: string;
271
+ dynamicStyle: string;
272
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
273
+ };
274
+ commitToHistory: true;
275
+ };
276
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
277
+ } & {
278
+ keyTest?: undefined;
279
+ };
280
+ export declare const actionChangeSloppiness: {
281
+ name: "changeSloppiness";
282
+ trackEvent: false;
283
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
284
+ elements: ExcalidrawElement[];
285
+ appState: {
286
+ currentItemRoughness: any;
287
+ contextMenu: {
288
+ items: import("../components/ContextMenu").ContextMenuItems;
289
+ top: number;
290
+ left: number;
291
+ } | null;
292
+ showWelcomeScreen: boolean;
293
+ isLoading: boolean;
294
+ errorMessage: import("react").ReactNode;
295
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
296
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
297
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
298
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
299
+ isBindingEnabled: boolean;
300
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
301
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
302
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
303
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
304
+ activeTool: {
305
+ lastActiveTool: import("../../src/types").LastActiveTool;
306
+ locked: boolean;
307
+ } & ({
308
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
309
+ customType: null;
310
+ } | {
311
+ type: "custom";
312
+ customType: string;
313
+ });
314
+ penMode: boolean;
315
+ penDetected: boolean;
316
+ exportBackground: boolean;
317
+ exportEmbedScene: boolean;
318
+ exportWithDarkMode: boolean;
319
+ exportScale: number;
320
+ currentItemStrokeColor: string;
321
+ currentItemBackgroundColor: string;
322
+ currentItemFillStyle: import("../element/types").FillStyle;
323
+ currentItemStrokeWidth: number;
324
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
325
+ currentItemOpacity: number;
326
+ currentItemFontFamily: number;
327
+ currentItemFontSize: number;
328
+ currentItemTextAlign: string;
329
+ currentItemStartArrowhead: Arrowhead | null;
330
+ currentItemEndArrowhead: Arrowhead | null;
331
+ currentItemRoundness: import("../element/types").StrokeRoundness;
332
+ viewBackgroundColor: string;
333
+ scrollX: number;
334
+ scrollY: number;
335
+ cursorButton: "up" | "down";
336
+ scrolledOutside: boolean;
337
+ name: string;
338
+ isResizing: boolean;
339
+ isRotating: boolean;
340
+ zoom: Readonly<{
341
+ value: import("../../src/types").NormalizedZoomValue;
342
+ }>;
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("../../src/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: true;
405
+ };
406
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
407
+ } & {
408
+ keyTest?: undefined;
409
+ };
410
+ export declare const actionChangeStrokeStyle: {
411
+ name: "changeStrokeStyle";
412
+ trackEvent: false;
413
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
414
+ elements: ExcalidrawElement[];
415
+ appState: {
416
+ currentItemStrokeStyle: any;
417
+ contextMenu: {
418
+ items: import("../components/ContextMenu").ContextMenuItems;
419
+ top: number;
420
+ left: number;
421
+ } | null;
422
+ showWelcomeScreen: boolean;
423
+ isLoading: boolean;
424
+ errorMessage: import("react").ReactNode;
425
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
426
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
427
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
428
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
429
+ isBindingEnabled: boolean;
430
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
431
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
432
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
433
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
434
+ activeTool: {
435
+ lastActiveTool: import("../../src/types").LastActiveTool;
436
+ locked: boolean;
437
+ } & ({
438
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
439
+ customType: null;
440
+ } | {
441
+ type: "custom";
442
+ customType: string;
443
+ });
444
+ penMode: boolean;
445
+ penDetected: boolean;
446
+ exportBackground: boolean;
447
+ exportEmbedScene: boolean;
448
+ exportWithDarkMode: boolean;
449
+ exportScale: number;
450
+ currentItemStrokeColor: string;
451
+ currentItemBackgroundColor: string;
452
+ currentItemFillStyle: import("../element/types").FillStyle;
453
+ currentItemStrokeWidth: number;
454
+ currentItemRoughness: number;
455
+ currentItemOpacity: number;
456
+ currentItemFontFamily: number;
457
+ currentItemFontSize: number;
458
+ currentItemTextAlign: string;
459
+ currentItemStartArrowhead: Arrowhead | null;
460
+ currentItemEndArrowhead: Arrowhead | null;
461
+ currentItemRoundness: import("../element/types").StrokeRoundness;
462
+ viewBackgroundColor: string;
463
+ scrollX: number;
464
+ scrollY: number;
465
+ cursorButton: "up" | "down";
466
+ scrolledOutside: boolean;
467
+ name: string;
468
+ isResizing: boolean;
469
+ isRotating: boolean;
470
+ zoom: Readonly<{
471
+ value: import("../../src/types").NormalizedZoomValue;
472
+ }>;
473
+ openMenu: "canvas" | "shape" | null;
474
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
475
+ openSidebar: "library" | "customSidebar" | null;
476
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
477
+ isSidebarDocked: boolean;
478
+ lastPointerDownWith: import("../element/types").PointerType;
479
+ selectedElementIds: {
480
+ [id: string]: boolean;
481
+ };
482
+ previousSelectedElementIds: {
483
+ [id: string]: boolean;
484
+ };
485
+ shouldCacheIgnoreZoom: boolean;
486
+ toast: {
487
+ message: string;
488
+ closable?: boolean | undefined;
489
+ duration?: number | undefined;
490
+ } | null;
491
+ zenModeEnabled: boolean;
492
+ theme: string;
493
+ gridSize: number | null;
494
+ previousGridSize: number | null;
495
+ viewModeEnabled: boolean;
496
+ selectedGroupIds: {
497
+ [groupId: string]: boolean;
498
+ };
499
+ editingGroupId: string | null;
500
+ width: number;
501
+ height: number;
502
+ offsetTop: number;
503
+ offsetLeft: number;
504
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
505
+ collaborators: Map<string, import("../../src/types").Collaborator>;
506
+ showStats: boolean;
507
+ currentChartType: import("../element/types").ChartType;
508
+ pasteDialog: {
509
+ shown: false;
510
+ data: null;
511
+ } | {
512
+ shown: true;
513
+ data: import("../charts").Spreadsheet;
514
+ };
515
+ pendingImageElementId: string | null;
516
+ showHyperlinkPopup: false | "info" | "editor";
517
+ linkOpacity: number;
518
+ trayModeEnabled: boolean;
519
+ colorPalette: {
520
+ canvasBackground?: string[] | undefined;
521
+ elementBackground?: string[] | undefined;
522
+ elementStroke?: string[] | undefined;
523
+ };
524
+ allowWheelZoom?: boolean | undefined;
525
+ allowPinchZoom?: boolean | undefined;
526
+ pinnedScripts?: string[] | undefined;
527
+ customPens?: any[] | undefined;
528
+ currentStrokeOptions?: any;
529
+ resetCustomPen?: any;
530
+ gridColor: string;
531
+ dynamicStyle: string;
532
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
533
+ };
534
+ commitToHistory: true;
535
+ };
536
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
537
+ } & {
538
+ keyTest?: undefined;
539
+ };
540
+ export declare const actionChangeOpacity: {
541
+ name: "changeOpacity";
542
+ trackEvent: false;
543
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
544
+ elements: ExcalidrawElement[];
545
+ appState: {
546
+ currentItemOpacity: any;
547
+ contextMenu: {
548
+ items: import("../components/ContextMenu").ContextMenuItems;
549
+ top: number;
550
+ left: number;
551
+ } | null;
552
+ showWelcomeScreen: boolean;
553
+ isLoading: boolean;
554
+ errorMessage: import("react").ReactNode;
555
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
556
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
557
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
558
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
559
+ isBindingEnabled: boolean;
560
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
561
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
562
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
563
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
564
+ activeTool: {
565
+ lastActiveTool: import("../../src/types").LastActiveTool;
566
+ locked: boolean;
567
+ } & ({
568
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
569
+ customType: null;
570
+ } | {
571
+ type: "custom";
572
+ customType: string;
573
+ });
574
+ penMode: boolean;
575
+ penDetected: boolean;
576
+ exportBackground: boolean;
577
+ exportEmbedScene: boolean;
578
+ exportWithDarkMode: boolean;
579
+ exportScale: number;
580
+ currentItemStrokeColor: string;
581
+ currentItemBackgroundColor: string;
582
+ currentItemFillStyle: import("../element/types").FillStyle;
583
+ currentItemStrokeWidth: number;
584
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
585
+ currentItemRoughness: number;
586
+ currentItemFontFamily: number;
587
+ currentItemFontSize: number;
588
+ currentItemTextAlign: string;
589
+ currentItemStartArrowhead: Arrowhead | null;
590
+ currentItemEndArrowhead: Arrowhead | null;
591
+ currentItemRoundness: import("../element/types").StrokeRoundness;
592
+ viewBackgroundColor: string;
593
+ scrollX: number;
594
+ scrollY: number;
595
+ cursorButton: "up" | "down";
596
+ scrolledOutside: boolean;
597
+ name: string;
598
+ isResizing: boolean;
599
+ isRotating: boolean;
600
+ zoom: Readonly<{
601
+ value: import("../../src/types").NormalizedZoomValue;
602
+ }>;
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("../../src/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: true;
665
+ };
666
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
667
+ } & {
668
+ keyTest?: undefined;
669
+ };
670
+ export declare const actionChangeFontSize: {
671
+ name: "changeFontSize";
672
+ trackEvent: false;
673
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
674
+ elements: ExcalidrawElement[];
675
+ appState: {
676
+ currentItemFontSize: number;
677
+ contextMenu: {
678
+ items: import("../components/ContextMenu").ContextMenuItems;
679
+ top: number;
680
+ left: number;
681
+ } | null;
682
+ showWelcomeScreen: boolean;
683
+ isLoading: boolean;
684
+ errorMessage: import("react").ReactNode;
685
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
686
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
687
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
688
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
689
+ isBindingEnabled: boolean;
690
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
691
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
692
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
693
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
694
+ activeTool: {
695
+ lastActiveTool: import("../../src/types").LastActiveTool;
696
+ locked: boolean;
697
+ } & ({
698
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
699
+ customType: null;
700
+ } | {
701
+ type: "custom";
702
+ customType: string;
703
+ });
704
+ penMode: boolean;
705
+ penDetected: boolean;
706
+ exportBackground: boolean;
707
+ exportEmbedScene: boolean;
708
+ exportWithDarkMode: boolean;
709
+ exportScale: number;
710
+ currentItemStrokeColor: string;
711
+ currentItemBackgroundColor: string;
712
+ currentItemFillStyle: import("../element/types").FillStyle;
713
+ currentItemStrokeWidth: number;
714
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
715
+ currentItemRoughness: number;
716
+ currentItemOpacity: number;
717
+ currentItemFontFamily: number;
718
+ currentItemTextAlign: string;
719
+ currentItemStartArrowhead: Arrowhead | null;
720
+ currentItemEndArrowhead: Arrowhead | null;
721
+ currentItemRoundness: import("../element/types").StrokeRoundness;
722
+ viewBackgroundColor: string;
723
+ scrollX: number;
724
+ scrollY: number;
725
+ cursorButton: "up" | "down";
726
+ scrolledOutside: boolean;
727
+ name: string;
728
+ isResizing: boolean;
729
+ isRotating: boolean;
730
+ zoom: Readonly<{
731
+ value: import("../../src/types").NormalizedZoomValue;
732
+ }>;
733
+ openMenu: "canvas" | "shape" | null;
734
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
735
+ openSidebar: "library" | "customSidebar" | null;
736
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
737
+ isSidebarDocked: boolean;
738
+ lastPointerDownWith: import("../element/types").PointerType;
739
+ selectedElementIds: {
740
+ [id: string]: boolean;
741
+ };
742
+ previousSelectedElementIds: {
743
+ [id: string]: boolean;
744
+ };
745
+ shouldCacheIgnoreZoom: boolean;
746
+ toast: {
747
+ message: string;
748
+ closable?: boolean | undefined;
749
+ duration?: number | undefined;
750
+ } | null;
751
+ zenModeEnabled: boolean;
752
+ theme: string;
753
+ gridSize: number | null;
754
+ previousGridSize: number | null;
755
+ viewModeEnabled: boolean;
756
+ selectedGroupIds: {
757
+ [groupId: string]: boolean;
758
+ };
759
+ editingGroupId: string | null;
760
+ width: number;
761
+ height: number;
762
+ offsetTop: number;
763
+ offsetLeft: number;
764
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
765
+ collaborators: Map<string, import("../../src/types").Collaborator>;
766
+ showStats: boolean;
767
+ currentChartType: import("../element/types").ChartType;
768
+ pasteDialog: {
769
+ shown: false;
770
+ data: null;
771
+ } | {
772
+ shown: true;
773
+ data: import("../charts").Spreadsheet;
774
+ };
775
+ pendingImageElementId: string | null;
776
+ showHyperlinkPopup: false | "info" | "editor";
777
+ linkOpacity: number;
778
+ trayModeEnabled: boolean;
779
+ colorPalette: {
780
+ canvasBackground?: string[] | undefined;
781
+ elementBackground?: string[] | undefined;
782
+ elementStroke?: string[] | undefined;
783
+ };
784
+ allowWheelZoom?: boolean | undefined;
785
+ allowPinchZoom?: boolean | undefined;
786
+ pinnedScripts?: string[] | undefined;
787
+ customPens?: any[] | undefined;
788
+ currentStrokeOptions?: any;
789
+ resetCustomPen?: any;
790
+ gridColor: string;
791
+ dynamicStyle: string;
792
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
793
+ };
794
+ commitToHistory: boolean;
795
+ };
796
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
797
+ } & {
798
+ keyTest?: undefined;
799
+ };
800
+ export declare const actionDecreaseFontSize: {
801
+ name: "decreaseFontSize";
802
+ trackEvent: false;
803
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
804
+ elements: ExcalidrawElement[];
805
+ appState: {
806
+ currentItemFontSize: number;
807
+ contextMenu: {
808
+ items: import("../components/ContextMenu").ContextMenuItems;
809
+ top: number;
810
+ left: number;
811
+ } | null;
812
+ showWelcomeScreen: boolean;
813
+ isLoading: boolean;
814
+ errorMessage: import("react").ReactNode;
815
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
816
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
817
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
818
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
819
+ isBindingEnabled: boolean;
820
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
821
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
822
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
823
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
824
+ activeTool: {
825
+ lastActiveTool: import("../../src/types").LastActiveTool;
826
+ locked: boolean;
827
+ } & ({
828
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
829
+ customType: null;
830
+ } | {
831
+ type: "custom";
832
+ customType: string;
833
+ });
834
+ penMode: boolean;
835
+ penDetected: boolean;
836
+ exportBackground: boolean;
837
+ exportEmbedScene: boolean;
838
+ exportWithDarkMode: boolean;
839
+ exportScale: number;
840
+ currentItemStrokeColor: string;
841
+ currentItemBackgroundColor: string;
842
+ currentItemFillStyle: import("../element/types").FillStyle;
843
+ currentItemStrokeWidth: number;
844
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
845
+ currentItemRoughness: number;
846
+ currentItemOpacity: number;
847
+ currentItemFontFamily: number;
848
+ currentItemTextAlign: string;
849
+ currentItemStartArrowhead: Arrowhead | null;
850
+ currentItemEndArrowhead: Arrowhead | null;
851
+ currentItemRoundness: import("../element/types").StrokeRoundness;
852
+ viewBackgroundColor: string;
853
+ scrollX: number;
854
+ scrollY: number;
855
+ cursorButton: "up" | "down";
856
+ scrolledOutside: boolean;
857
+ name: string;
858
+ isResizing: boolean;
859
+ isRotating: boolean;
860
+ zoom: Readonly<{
861
+ value: import("../../src/types").NormalizedZoomValue;
862
+ }>;
863
+ openMenu: "canvas" | "shape" | null;
864
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
865
+ openSidebar: "library" | "customSidebar" | null;
866
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
867
+ isSidebarDocked: boolean;
868
+ lastPointerDownWith: import("../element/types").PointerType;
869
+ selectedElementIds: {
870
+ [id: string]: boolean;
871
+ };
872
+ previousSelectedElementIds: {
873
+ [id: string]: boolean;
874
+ };
875
+ shouldCacheIgnoreZoom: boolean;
876
+ toast: {
877
+ message: string;
878
+ closable?: boolean | undefined;
879
+ duration?: number | undefined;
880
+ } | null;
881
+ zenModeEnabled: boolean;
882
+ theme: string;
883
+ gridSize: number | null;
884
+ previousGridSize: number | null;
885
+ viewModeEnabled: boolean;
886
+ selectedGroupIds: {
887
+ [groupId: string]: boolean;
888
+ };
889
+ editingGroupId: string | null;
890
+ width: number;
891
+ height: number;
892
+ offsetTop: number;
893
+ offsetLeft: number;
894
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
895
+ collaborators: Map<string, import("../../src/types").Collaborator>;
896
+ showStats: boolean;
897
+ currentChartType: import("../element/types").ChartType;
898
+ pasteDialog: {
899
+ shown: false;
900
+ data: null;
901
+ } | {
902
+ shown: true;
903
+ data: import("../charts").Spreadsheet;
904
+ };
905
+ pendingImageElementId: string | null;
906
+ showHyperlinkPopup: false | "info" | "editor";
907
+ linkOpacity: number;
908
+ trayModeEnabled: boolean;
909
+ colorPalette: {
910
+ canvasBackground?: string[] | undefined;
911
+ elementBackground?: string[] | undefined;
912
+ elementStroke?: string[] | undefined;
913
+ };
914
+ allowWheelZoom?: boolean | undefined;
915
+ allowPinchZoom?: boolean | undefined;
916
+ pinnedScripts?: string[] | undefined;
917
+ customPens?: any[] | undefined;
918
+ currentStrokeOptions?: any;
919
+ resetCustomPen?: any;
920
+ gridColor: string;
921
+ dynamicStyle: string;
922
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
923
+ };
924
+ commitToHistory: boolean;
925
+ };
926
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
927
+ } & {
928
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
929
+ };
930
+ export declare const actionIncreaseFontSize: {
931
+ name: "increaseFontSize";
932
+ trackEvent: false;
933
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
934
+ elements: ExcalidrawElement[];
935
+ appState: {
936
+ currentItemFontSize: number;
937
+ contextMenu: {
938
+ items: import("../components/ContextMenu").ContextMenuItems;
939
+ top: number;
940
+ left: number;
941
+ } | null;
942
+ showWelcomeScreen: boolean;
943
+ isLoading: boolean;
944
+ errorMessage: import("react").ReactNode;
945
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
946
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
947
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
948
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
949
+ isBindingEnabled: boolean;
950
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
951
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
952
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
953
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
954
+ activeTool: {
955
+ lastActiveTool: import("../../src/types").LastActiveTool;
956
+ locked: boolean;
957
+ } & ({
958
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
959
+ customType: null;
960
+ } | {
961
+ type: "custom";
962
+ customType: string;
963
+ });
964
+ penMode: boolean;
965
+ penDetected: boolean;
966
+ exportBackground: boolean;
967
+ exportEmbedScene: boolean;
968
+ exportWithDarkMode: boolean;
969
+ exportScale: number;
970
+ currentItemStrokeColor: string;
971
+ currentItemBackgroundColor: string;
972
+ currentItemFillStyle: import("../element/types").FillStyle;
973
+ currentItemStrokeWidth: number;
974
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
975
+ currentItemRoughness: number;
976
+ currentItemOpacity: number;
977
+ currentItemFontFamily: number;
978
+ currentItemTextAlign: string;
979
+ currentItemStartArrowhead: Arrowhead | null;
980
+ currentItemEndArrowhead: Arrowhead | null;
981
+ currentItemRoundness: import("../element/types").StrokeRoundness;
982
+ viewBackgroundColor: string;
983
+ scrollX: number;
984
+ scrollY: number;
985
+ cursorButton: "up" | "down";
986
+ scrolledOutside: boolean;
987
+ name: string;
988
+ isResizing: boolean;
989
+ isRotating: boolean;
990
+ zoom: Readonly<{
991
+ value: import("../../src/types").NormalizedZoomValue;
992
+ }>;
993
+ openMenu: "canvas" | "shape" | null;
994
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
995
+ openSidebar: "library" | "customSidebar" | null;
996
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
997
+ isSidebarDocked: boolean;
998
+ lastPointerDownWith: import("../element/types").PointerType;
999
+ selectedElementIds: {
1000
+ [id: string]: boolean;
1001
+ };
1002
+ previousSelectedElementIds: {
1003
+ [id: string]: boolean;
1004
+ };
1005
+ shouldCacheIgnoreZoom: boolean;
1006
+ toast: {
1007
+ message: string;
1008
+ closable?: boolean | undefined;
1009
+ duration?: number | undefined;
1010
+ } | null;
1011
+ zenModeEnabled: boolean;
1012
+ theme: string;
1013
+ gridSize: number | null;
1014
+ previousGridSize: number | null;
1015
+ viewModeEnabled: boolean;
1016
+ selectedGroupIds: {
1017
+ [groupId: string]: boolean;
1018
+ };
1019
+ editingGroupId: string | null;
1020
+ width: number;
1021
+ height: number;
1022
+ offsetTop: number;
1023
+ offsetLeft: number;
1024
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1025
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1026
+ showStats: boolean;
1027
+ currentChartType: import("../element/types").ChartType;
1028
+ pasteDialog: {
1029
+ shown: false;
1030
+ data: null;
1031
+ } | {
1032
+ shown: true;
1033
+ data: import("../charts").Spreadsheet;
1034
+ };
1035
+ pendingImageElementId: string | null;
1036
+ showHyperlinkPopup: false | "info" | "editor";
1037
+ linkOpacity: number;
1038
+ trayModeEnabled: boolean;
1039
+ colorPalette: {
1040
+ canvasBackground?: string[] | undefined;
1041
+ elementBackground?: string[] | undefined;
1042
+ elementStroke?: string[] | undefined;
1043
+ };
1044
+ allowWheelZoom?: boolean | undefined;
1045
+ allowPinchZoom?: boolean | undefined;
1046
+ pinnedScripts?: string[] | undefined;
1047
+ customPens?: any[] | undefined;
1048
+ currentStrokeOptions?: any;
1049
+ resetCustomPen?: any;
1050
+ gridColor: string;
1051
+ dynamicStyle: string;
1052
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1053
+ };
1054
+ commitToHistory: boolean;
1055
+ };
1056
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1057
+ } & {
1058
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1059
+ };
1060
+ export declare const actionChangeFontFamily: {
1061
+ name: "changeFontFamily";
1062
+ trackEvent: false;
1063
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1064
+ elements: ExcalidrawElement[];
1065
+ appState: {
1066
+ currentItemFontFamily: any;
1067
+ contextMenu: {
1068
+ items: import("../components/ContextMenu").ContextMenuItems;
1069
+ top: number;
1070
+ left: number;
1071
+ } | null;
1072
+ showWelcomeScreen: boolean;
1073
+ isLoading: boolean;
1074
+ errorMessage: import("react").ReactNode;
1075
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1076
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1077
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1078
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1079
+ isBindingEnabled: boolean;
1080
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1081
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1082
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1083
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1084
+ activeTool: {
1085
+ lastActiveTool: import("../../src/types").LastActiveTool;
1086
+ locked: boolean;
1087
+ } & ({
1088
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1089
+ customType: null;
1090
+ } | {
1091
+ type: "custom";
1092
+ customType: string;
1093
+ });
1094
+ penMode: boolean;
1095
+ penDetected: boolean;
1096
+ exportBackground: boolean;
1097
+ exportEmbedScene: boolean;
1098
+ exportWithDarkMode: boolean;
1099
+ exportScale: number;
1100
+ currentItemStrokeColor: string;
1101
+ currentItemBackgroundColor: string;
1102
+ currentItemFillStyle: import("../element/types").FillStyle;
1103
+ currentItemStrokeWidth: number;
1104
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1105
+ currentItemRoughness: number;
1106
+ currentItemOpacity: number;
1107
+ currentItemFontSize: number;
1108
+ currentItemTextAlign: string;
1109
+ currentItemStartArrowhead: Arrowhead | null;
1110
+ currentItemEndArrowhead: Arrowhead | null;
1111
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1112
+ viewBackgroundColor: string;
1113
+ scrollX: number;
1114
+ scrollY: number;
1115
+ cursorButton: "up" | "down";
1116
+ scrolledOutside: boolean;
1117
+ name: string;
1118
+ isResizing: boolean;
1119
+ isRotating: boolean;
1120
+ zoom: Readonly<{
1121
+ value: import("../../src/types").NormalizedZoomValue;
1122
+ }>;
1123
+ openMenu: "canvas" | "shape" | null;
1124
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1125
+ openSidebar: "library" | "customSidebar" | null;
1126
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1127
+ isSidebarDocked: boolean;
1128
+ lastPointerDownWith: import("../element/types").PointerType;
1129
+ selectedElementIds: {
1130
+ [id: string]: boolean;
1131
+ };
1132
+ previousSelectedElementIds: {
1133
+ [id: string]: boolean;
1134
+ };
1135
+ shouldCacheIgnoreZoom: boolean;
1136
+ toast: {
1137
+ message: string;
1138
+ closable?: boolean | undefined;
1139
+ duration?: number | undefined;
1140
+ } | null;
1141
+ zenModeEnabled: boolean;
1142
+ theme: string;
1143
+ gridSize: number | null;
1144
+ previousGridSize: number | null;
1145
+ viewModeEnabled: boolean;
1146
+ selectedGroupIds: {
1147
+ [groupId: string]: boolean;
1148
+ };
1149
+ editingGroupId: string | null;
1150
+ width: number;
1151
+ height: number;
1152
+ offsetTop: number;
1153
+ offsetLeft: number;
1154
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1155
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1156
+ showStats: boolean;
1157
+ currentChartType: import("../element/types").ChartType;
1158
+ pasteDialog: {
1159
+ shown: false;
1160
+ data: null;
1161
+ } | {
1162
+ shown: true;
1163
+ data: import("../charts").Spreadsheet;
1164
+ };
1165
+ pendingImageElementId: string | null;
1166
+ showHyperlinkPopup: false | "info" | "editor";
1167
+ linkOpacity: number;
1168
+ trayModeEnabled: boolean;
1169
+ colorPalette: {
1170
+ canvasBackground?: string[] | undefined;
1171
+ elementBackground?: string[] | undefined;
1172
+ elementStroke?: string[] | undefined;
1173
+ };
1174
+ allowWheelZoom?: boolean | undefined;
1175
+ allowPinchZoom?: boolean | undefined;
1176
+ pinnedScripts?: string[] | undefined;
1177
+ customPens?: any[] | undefined;
1178
+ currentStrokeOptions?: any;
1179
+ resetCustomPen?: any;
1180
+ gridColor: string;
1181
+ dynamicStyle: string;
1182
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1183
+ };
1184
+ commitToHistory: true;
1185
+ };
1186
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1187
+ } & {
1188
+ keyTest?: undefined;
1189
+ };
1190
+ export declare const actionChangeTextAlign: {
1191
+ name: "changeTextAlign";
1192
+ trackEvent: false;
1193
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1194
+ elements: ExcalidrawElement[];
1195
+ appState: {
1196
+ currentItemTextAlign: any;
1197
+ contextMenu: {
1198
+ items: import("../components/ContextMenu").ContextMenuItems;
1199
+ top: number;
1200
+ left: number;
1201
+ } | null;
1202
+ showWelcomeScreen: boolean;
1203
+ isLoading: boolean;
1204
+ errorMessage: import("react").ReactNode;
1205
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1206
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1207
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1208
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1209
+ isBindingEnabled: boolean;
1210
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1211
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1212
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1213
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1214
+ activeTool: {
1215
+ lastActiveTool: import("../../src/types").LastActiveTool;
1216
+ locked: boolean;
1217
+ } & ({
1218
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1219
+ customType: null;
1220
+ } | {
1221
+ type: "custom";
1222
+ customType: string;
1223
+ });
1224
+ penMode: boolean;
1225
+ penDetected: boolean;
1226
+ exportBackground: boolean;
1227
+ exportEmbedScene: boolean;
1228
+ exportWithDarkMode: boolean;
1229
+ exportScale: number;
1230
+ currentItemStrokeColor: string;
1231
+ currentItemBackgroundColor: string;
1232
+ currentItemFillStyle: import("../element/types").FillStyle;
1233
+ currentItemStrokeWidth: number;
1234
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1235
+ currentItemRoughness: number;
1236
+ currentItemOpacity: number;
1237
+ currentItemFontFamily: number;
1238
+ currentItemFontSize: number;
1239
+ currentItemStartArrowhead: Arrowhead | null;
1240
+ currentItemEndArrowhead: Arrowhead | null;
1241
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1242
+ viewBackgroundColor: string;
1243
+ scrollX: number;
1244
+ scrollY: number;
1245
+ cursorButton: "up" | "down";
1246
+ scrolledOutside: boolean;
1247
+ name: string;
1248
+ isResizing: boolean;
1249
+ isRotating: boolean;
1250
+ zoom: Readonly<{
1251
+ value: import("../../src/types").NormalizedZoomValue;
1252
+ }>;
1253
+ openMenu: "canvas" | "shape" | null;
1254
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1255
+ openSidebar: "library" | "customSidebar" | null;
1256
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1257
+ isSidebarDocked: boolean;
1258
+ lastPointerDownWith: import("../element/types").PointerType;
1259
+ selectedElementIds: {
1260
+ [id: string]: boolean;
1261
+ };
1262
+ previousSelectedElementIds: {
1263
+ [id: string]: boolean;
1264
+ };
1265
+ shouldCacheIgnoreZoom: boolean;
1266
+ toast: {
1267
+ message: string;
1268
+ closable?: boolean | undefined;
1269
+ duration?: number | undefined;
1270
+ } | null;
1271
+ zenModeEnabled: boolean;
1272
+ theme: string;
1273
+ gridSize: number | null;
1274
+ previousGridSize: number | null;
1275
+ viewModeEnabled: boolean;
1276
+ selectedGroupIds: {
1277
+ [groupId: string]: boolean;
1278
+ };
1279
+ editingGroupId: string | null;
1280
+ width: number;
1281
+ height: number;
1282
+ offsetTop: number;
1283
+ offsetLeft: number;
1284
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1285
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1286
+ showStats: boolean;
1287
+ currentChartType: import("../element/types").ChartType;
1288
+ pasteDialog: {
1289
+ shown: false;
1290
+ data: null;
1291
+ } | {
1292
+ shown: true;
1293
+ data: import("../charts").Spreadsheet;
1294
+ };
1295
+ pendingImageElementId: string | null;
1296
+ showHyperlinkPopup: false | "info" | "editor";
1297
+ linkOpacity: number;
1298
+ trayModeEnabled: boolean;
1299
+ colorPalette: {
1300
+ canvasBackground?: string[] | undefined;
1301
+ elementBackground?: string[] | undefined;
1302
+ elementStroke?: string[] | undefined;
1303
+ };
1304
+ allowWheelZoom?: boolean | undefined;
1305
+ allowPinchZoom?: boolean | undefined;
1306
+ pinnedScripts?: string[] | undefined;
1307
+ customPens?: any[] | undefined;
1308
+ currentStrokeOptions?: any;
1309
+ resetCustomPen?: any;
1310
+ gridColor: string;
1311
+ dynamicStyle: string;
1312
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1313
+ };
1314
+ commitToHistory: true;
1315
+ };
1316
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1317
+ } & {
1318
+ keyTest?: undefined;
1319
+ };
1320
+ export declare const actionChangeVerticalAlign: {
1321
+ name: "changeVerticalAlign";
1322
+ trackEvent: {
1323
+ category: "element";
1324
+ };
1325
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1326
+ elements: ExcalidrawElement[];
1327
+ appState: {
1328
+ contextMenu: {
1329
+ items: import("../components/ContextMenu").ContextMenuItems;
1330
+ top: number;
1331
+ left: number;
1332
+ } | null;
1333
+ showWelcomeScreen: boolean;
1334
+ isLoading: boolean;
1335
+ errorMessage: import("react").ReactNode;
1336
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1337
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1338
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1339
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1340
+ isBindingEnabled: boolean;
1341
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1342
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1343
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1344
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1345
+ activeTool: {
1346
+ lastActiveTool: import("../../src/types").LastActiveTool;
1347
+ locked: boolean;
1348
+ } & ({
1349
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1350
+ customType: null;
1351
+ } | {
1352
+ type: "custom";
1353
+ customType: string;
1354
+ });
1355
+ penMode: boolean;
1356
+ penDetected: boolean;
1357
+ exportBackground: boolean;
1358
+ exportEmbedScene: boolean;
1359
+ exportWithDarkMode: boolean;
1360
+ exportScale: number;
1361
+ currentItemStrokeColor: string;
1362
+ currentItemBackgroundColor: string;
1363
+ currentItemFillStyle: import("../element/types").FillStyle;
1364
+ currentItemStrokeWidth: number;
1365
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1366
+ currentItemRoughness: number;
1367
+ currentItemOpacity: number;
1368
+ currentItemFontFamily: number;
1369
+ currentItemFontSize: number;
1370
+ currentItemTextAlign: string;
1371
+ currentItemStartArrowhead: Arrowhead | null;
1372
+ currentItemEndArrowhead: Arrowhead | null;
1373
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1374
+ viewBackgroundColor: string;
1375
+ scrollX: number;
1376
+ scrollY: number;
1377
+ cursorButton: "up" | "down";
1378
+ scrolledOutside: boolean;
1379
+ name: string;
1380
+ isResizing: boolean;
1381
+ isRotating: boolean;
1382
+ zoom: Readonly<{
1383
+ value: import("../../src/types").NormalizedZoomValue;
1384
+ }>;
1385
+ openMenu: "canvas" | "shape" | null;
1386
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1387
+ openSidebar: "library" | "customSidebar" | null;
1388
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1389
+ isSidebarDocked: boolean;
1390
+ lastPointerDownWith: import("../element/types").PointerType;
1391
+ selectedElementIds: {
1392
+ [id: string]: boolean;
1393
+ };
1394
+ previousSelectedElementIds: {
1395
+ [id: string]: boolean;
1396
+ };
1397
+ shouldCacheIgnoreZoom: boolean;
1398
+ toast: {
1399
+ message: string;
1400
+ closable?: boolean | undefined;
1401
+ duration?: number | undefined;
1402
+ } | null;
1403
+ zenModeEnabled: boolean;
1404
+ theme: string;
1405
+ gridSize: number | null;
1406
+ previousGridSize: number | null;
1407
+ viewModeEnabled: boolean;
1408
+ selectedGroupIds: {
1409
+ [groupId: string]: boolean;
1410
+ };
1411
+ editingGroupId: string | null;
1412
+ width: number;
1413
+ height: number;
1414
+ offsetTop: number;
1415
+ offsetLeft: number;
1416
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1417
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1418
+ showStats: boolean;
1419
+ currentChartType: import("../element/types").ChartType;
1420
+ pasteDialog: {
1421
+ shown: false;
1422
+ data: null;
1423
+ } | {
1424
+ shown: true;
1425
+ data: import("../charts").Spreadsheet;
1426
+ };
1427
+ pendingImageElementId: string | null;
1428
+ showHyperlinkPopup: false | "info" | "editor";
1429
+ linkOpacity: number;
1430
+ trayModeEnabled: boolean;
1431
+ colorPalette: {
1432
+ canvasBackground?: string[] | undefined;
1433
+ elementBackground?: string[] | undefined;
1434
+ elementStroke?: string[] | undefined;
1435
+ };
1436
+ allowWheelZoom?: boolean | undefined;
1437
+ allowPinchZoom?: boolean | undefined;
1438
+ pinnedScripts?: string[] | undefined;
1439
+ customPens?: any[] | undefined;
1440
+ currentStrokeOptions?: any;
1441
+ resetCustomPen?: any;
1442
+ gridColor: string;
1443
+ dynamicStyle: string;
1444
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1445
+ };
1446
+ commitToHistory: true;
1447
+ };
1448
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1449
+ } & {
1450
+ keyTest?: undefined;
1451
+ };
1452
+ export declare const actionChangeRoundness: {
1453
+ name: "changeRoundness";
1454
+ trackEvent: false;
1455
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1456
+ elements: ExcalidrawElement[];
1457
+ appState: {
1458
+ currentItemRoundness: any;
1459
+ contextMenu: {
1460
+ items: import("../components/ContextMenu").ContextMenuItems;
1461
+ top: number;
1462
+ left: number;
1463
+ } | null;
1464
+ showWelcomeScreen: boolean;
1465
+ isLoading: boolean;
1466
+ errorMessage: import("react").ReactNode;
1467
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1468
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1469
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1470
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1471
+ isBindingEnabled: boolean;
1472
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1473
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1474
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1475
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1476
+ activeTool: {
1477
+ lastActiveTool: import("../../src/types").LastActiveTool;
1478
+ locked: boolean;
1479
+ } & ({
1480
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1481
+ customType: null;
1482
+ } | {
1483
+ type: "custom";
1484
+ customType: string;
1485
+ });
1486
+ penMode: boolean;
1487
+ penDetected: boolean;
1488
+ exportBackground: boolean;
1489
+ exportEmbedScene: boolean;
1490
+ exportWithDarkMode: boolean;
1491
+ exportScale: number;
1492
+ currentItemStrokeColor: string;
1493
+ currentItemBackgroundColor: string;
1494
+ currentItemFillStyle: import("../element/types").FillStyle;
1495
+ currentItemStrokeWidth: number;
1496
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1497
+ currentItemRoughness: number;
1498
+ currentItemOpacity: number;
1499
+ currentItemFontFamily: number;
1500
+ currentItemFontSize: number;
1501
+ currentItemTextAlign: string;
1502
+ currentItemStartArrowhead: Arrowhead | null;
1503
+ currentItemEndArrowhead: Arrowhead | null;
1504
+ viewBackgroundColor: string;
1505
+ scrollX: number;
1506
+ scrollY: number;
1507
+ cursorButton: "up" | "down";
1508
+ scrolledOutside: boolean;
1509
+ name: string;
1510
+ isResizing: boolean;
1511
+ isRotating: boolean;
1512
+ zoom: Readonly<{
1513
+ value: import("../../src/types").NormalizedZoomValue;
1514
+ }>;
1515
+ openMenu: "canvas" | "shape" | null;
1516
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1517
+ openSidebar: "library" | "customSidebar" | null;
1518
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1519
+ isSidebarDocked: boolean;
1520
+ lastPointerDownWith: import("../element/types").PointerType;
1521
+ selectedElementIds: {
1522
+ [id: string]: boolean;
1523
+ };
1524
+ previousSelectedElementIds: {
1525
+ [id: string]: boolean;
1526
+ };
1527
+ shouldCacheIgnoreZoom: boolean;
1528
+ toast: {
1529
+ message: string;
1530
+ closable?: boolean | undefined;
1531
+ duration?: number | undefined;
1532
+ } | null;
1533
+ zenModeEnabled: boolean;
1534
+ theme: string;
1535
+ gridSize: number | null;
1536
+ previousGridSize: number | null;
1537
+ viewModeEnabled: boolean;
1538
+ selectedGroupIds: {
1539
+ [groupId: string]: boolean;
1540
+ };
1541
+ editingGroupId: string | null;
1542
+ width: number;
1543
+ height: number;
1544
+ offsetTop: number;
1545
+ offsetLeft: number;
1546
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1547
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1548
+ showStats: boolean;
1549
+ currentChartType: import("../element/types").ChartType;
1550
+ pasteDialog: {
1551
+ shown: false;
1552
+ data: null;
1553
+ } | {
1554
+ shown: true;
1555
+ data: import("../charts").Spreadsheet;
1556
+ };
1557
+ pendingImageElementId: string | null;
1558
+ showHyperlinkPopup: false | "info" | "editor";
1559
+ linkOpacity: number;
1560
+ trayModeEnabled: boolean;
1561
+ colorPalette: {
1562
+ canvasBackground?: string[] | undefined;
1563
+ elementBackground?: string[] | undefined;
1564
+ elementStroke?: string[] | undefined;
1565
+ };
1566
+ allowWheelZoom?: boolean | undefined;
1567
+ allowPinchZoom?: boolean | undefined;
1568
+ pinnedScripts?: string[] | undefined;
1569
+ customPens?: any[] | undefined;
1570
+ currentStrokeOptions?: any;
1571
+ resetCustomPen?: any;
1572
+ gridColor: string;
1573
+ dynamicStyle: string;
1574
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1575
+ };
1576
+ commitToHistory: true;
1577
+ };
1578
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1579
+ } & {
1580
+ keyTest?: undefined;
1581
+ };
1582
+ export declare const actionChangeArrowhead: {
1583
+ name: "changeArrowhead";
1584
+ trackEvent: false;
1585
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: {
1586
+ position: "start" | "end";
1587
+ type: Arrowhead;
1588
+ }) => {
1589
+ elements: ExcalidrawElement[];
1590
+ appState: {
1591
+ contextMenu: {
1592
+ items: import("../components/ContextMenu").ContextMenuItems;
1593
+ top: number;
1594
+ left: number;
1595
+ } | null;
1596
+ showWelcomeScreen: boolean;
1597
+ isLoading: boolean;
1598
+ errorMessage: import("react").ReactNode;
1599
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1600
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1601
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1602
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1603
+ isBindingEnabled: boolean;
1604
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1605
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1606
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1607
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1608
+ activeTool: {
1609
+ lastActiveTool: import("../../src/types").LastActiveTool;
1610
+ locked: boolean;
1611
+ } & ({
1612
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
1613
+ customType: null;
1614
+ } | {
1615
+ type: "custom";
1616
+ customType: string;
1617
+ });
1618
+ penMode: boolean;
1619
+ penDetected: boolean;
1620
+ exportBackground: boolean;
1621
+ exportEmbedScene: boolean;
1622
+ exportWithDarkMode: boolean;
1623
+ exportScale: number;
1624
+ currentItemStrokeColor: string;
1625
+ currentItemBackgroundColor: string;
1626
+ currentItemFillStyle: import("../element/types").FillStyle;
1627
+ currentItemStrokeWidth: number;
1628
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1629
+ currentItemRoughness: number;
1630
+ currentItemOpacity: number;
1631
+ currentItemFontFamily: number;
1632
+ currentItemFontSize: number;
1633
+ currentItemTextAlign: string;
1634
+ currentItemStartArrowhead: Arrowhead | null;
1635
+ currentItemEndArrowhead: Arrowhead | null;
1636
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1637
+ viewBackgroundColor: string;
1638
+ scrollX: number;
1639
+ scrollY: number;
1640
+ cursorButton: "up" | "down";
1641
+ scrolledOutside: boolean;
1642
+ name: string;
1643
+ isResizing: boolean;
1644
+ isRotating: boolean;
1645
+ zoom: Readonly<{
1646
+ value: import("../../src/types").NormalizedZoomValue;
1647
+ }>;
1648
+ openMenu: "canvas" | "shape" | null;
1649
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1650
+ openSidebar: "library" | "customSidebar" | null;
1651
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
1652
+ isSidebarDocked: boolean;
1653
+ lastPointerDownWith: import("../element/types").PointerType;
1654
+ selectedElementIds: {
1655
+ [id: string]: boolean;
1656
+ };
1657
+ previousSelectedElementIds: {
1658
+ [id: string]: boolean;
1659
+ };
1660
+ shouldCacheIgnoreZoom: boolean;
1661
+ toast: {
1662
+ message: string;
1663
+ closable?: boolean | undefined;
1664
+ duration?: number | undefined;
1665
+ } | null;
1666
+ zenModeEnabled: boolean;
1667
+ theme: string;
1668
+ gridSize: number | null;
1669
+ previousGridSize: number | null;
1670
+ viewModeEnabled: boolean;
1671
+ selectedGroupIds: {
1672
+ [groupId: string]: boolean;
1673
+ };
1674
+ editingGroupId: string | null;
1675
+ width: number;
1676
+ height: number;
1677
+ offsetTop: number;
1678
+ offsetLeft: number;
1679
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1680
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1681
+ showStats: boolean;
1682
+ currentChartType: import("../element/types").ChartType;
1683
+ pasteDialog: {
1684
+ shown: false;
1685
+ data: null;
1686
+ } | {
1687
+ shown: true;
1688
+ data: import("../charts").Spreadsheet;
1689
+ };
1690
+ pendingImageElementId: string | null;
1691
+ showHyperlinkPopup: false | "info" | "editor";
1692
+ linkOpacity: number;
1693
+ trayModeEnabled: boolean;
1694
+ colorPalette: {
1695
+ canvasBackground?: string[] | undefined;
1696
+ elementBackground?: string[] | undefined;
1697
+ elementStroke?: string[] | undefined;
1698
+ };
1699
+ allowWheelZoom?: boolean | undefined;
1700
+ allowPinchZoom?: boolean | undefined;
1701
+ pinnedScripts?: string[] | undefined;
1702
+ customPens?: any[] | undefined;
1703
+ currentStrokeOptions?: any;
1704
+ resetCustomPen?: any;
1705
+ gridColor: string;
1706
+ dynamicStyle: string;
1707
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1708
+ };
1709
+ commitToHistory: true;
1710
+ };
1711
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1712
+ } & {
1713
+ keyTest?: undefined;
1714
+ };