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

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