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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/dist/excalidraw.development.js +186 -186
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/actions/actionAddToLibrary.d.ts +372 -372
  5. package/types/actions/actionAlign.d.ts +91 -91
  6. package/types/actions/actionBoundText.d.ts +284 -284
  7. package/types/actions/actionCanvas.d.ts +1315 -1315
  8. package/types/actions/actionClipboard.d.ts +717 -717
  9. package/types/actions/actionDeleteSelected.d.ts +409 -409
  10. package/types/actions/actionDistribute.d.ts +33 -33
  11. package/types/actions/actionDuplicateSelection.d.ts +22 -22
  12. package/types/actions/actionExport.d.ts +1181 -1181
  13. package/types/actions/actionFinalize.d.ts +256 -256
  14. package/types/actions/actionFlip.d.ts +35 -35
  15. package/types/actions/actionGroup.d.ts +45 -45
  16. package/types/actions/actionHistory.d.ts +6 -6
  17. package/types/actions/actionLinearEditor.d.ts +135 -135
  18. package/types/actions/actionMenu.d.ts +410 -410
  19. package/types/actions/actionNavigate.d.ts +14 -14
  20. package/types/actions/actionProperties.d.ts +1714 -1714
  21. package/types/actions/actionSelectAll.d.ts +16 -16
  22. package/types/actions/actionStyles.d.ts +149 -149
  23. package/types/actions/actionToggleGridMode.d.ts +138 -138
  24. package/types/actions/actionToggleLock.d.ts +135 -135
  25. package/types/actions/actionToggleStats.d.ts +135 -135
  26. package/types/actions/actionToggleViewMode.d.ts +137 -137
  27. package/types/actions/actionToggleZenMode.d.ts +137 -137
  28. package/types/actions/actionZindex.d.ts +67 -67
  29. package/types/actions/index.d.ts +24 -24
  30. package/types/actions/manager.d.ts +21 -21
  31. package/types/actions/register.d.ts +5 -5
  32. package/types/actions/shortcuts.d.ts +4 -4
  33. package/types/actions/types.d.ts +44 -44
  34. package/types/align.d.ts +6 -6
  35. package/types/analytics.d.ts +1 -1
  36. package/types/appState.d.ts +78 -78
  37. package/types/bug-issue-template.d.ts +2 -0
  38. package/types/charts.d.ts +27 -27
  39. package/types/clients.d.ts +6 -6
  40. package/types/clipboard.d.ts +25 -25
  41. package/types/colors.d.ts +6 -6
  42. package/types/components/Actions.d.ts +36 -36
  43. package/types/components/ActiveConfirmDialog.d.ts +24 -24
  44. package/types/components/ActiveFile.d.ts +7 -0
  45. package/types/components/App.d.ts +248 -248
  46. package/types/components/Avatar.d.ts +11 -11
  47. package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +4 -0
  48. package/types/components/BraveMeasureTextError.d.ts +2 -2
  49. package/types/components/Button.d.ts +15 -15
  50. package/types/components/ButtonIconSelect.d.ts +19 -11
  51. package/types/components/Card.d.ts +7 -7
  52. package/types/components/CheckboxItem.d.ts +8 -8
  53. package/types/components/ClearCanvas.d.ts +4 -0
  54. package/types/components/CollabButton.d.ts +7 -0
  55. package/types/components/ColorPicker.d.ts +19 -19
  56. package/types/components/ConfirmDialog.d.ts +10 -10
  57. package/types/components/ContextMenu.d.ts +15 -15
  58. package/types/components/DarkModeToggle.d.ts +7 -7
  59. package/types/components/Dialog.d.ts +14 -14
  60. package/types/components/DialogActionButton.d.ts +10 -10
  61. package/types/components/EncryptedIcon.d.ts +2 -0
  62. package/types/components/ErrorDialog.d.ts +5 -5
  63. package/types/components/FixedSideContainer.d.ts +9 -9
  64. package/types/components/Footer.d.ts +10 -0
  65. package/types/components/HandButton.d.ts +10 -10
  66. package/types/components/HelpButton.d.ts +7 -7
  67. package/types/components/HelpDialog.d.ts +4 -4
  68. package/types/components/HelpIcon.d.ts +8 -0
  69. package/types/components/HintViewer.d.ts +11 -11
  70. package/types/components/IconPicker.d.ts +13 -13
  71. package/types/components/ImageExportDialog.d.ts +18 -18
  72. package/types/components/InitializeApp.d.ts +10 -10
  73. package/types/components/Island.d.ts +10 -10
  74. package/types/components/JSONExportDialog.d.ts +15 -15
  75. package/types/components/LayerUI.d.ts +37 -37
  76. package/types/components/LibraryButton.d.ts +8 -8
  77. package/types/components/LibraryMenu.d.ts +25 -25
  78. package/types/components/LibraryMenuBrowseButton.d.ts +7 -7
  79. package/types/components/LibraryMenuHeaderContent.d.ts +35 -35
  80. package/types/components/LibraryMenuItems.d.ts +15 -15
  81. package/types/components/LibraryUnit.d.ts +11 -11
  82. package/types/components/LoadingMessage.d.ts +6 -6
  83. package/types/components/LockButton.d.ts +10 -10
  84. package/types/components/MenuItem.d.ts +11 -0
  85. package/types/components/MenuUtils.d.ts +2 -0
  86. package/types/components/MobileMenu.d.ts +26 -26
  87. package/types/components/Modal.d.ts +13 -13
  88. package/types/components/PasteChartDialog.d.ts +9 -9
  89. package/types/components/PenModeButton.d.ts +12 -12
  90. package/types/components/Popover.d.ts +15 -15
  91. package/types/components/ProjectName.d.ts +10 -10
  92. package/types/components/PublishLibrary.d.ts +16 -16
  93. package/types/components/Section.d.ts +6 -6
  94. package/types/components/Sidebar/Sidebar.d.ts +73 -73
  95. package/types/components/Sidebar/SidebarHeader.d.ts +20 -20
  96. package/types/components/Sidebar/common.d.ts +16 -16
  97. package/types/components/SidebarLockButton.d.ts +8 -0
  98. package/types/components/SingleLibraryItem.d.ts +10 -10
  99. package/types/components/Spinner.d.ts +6 -6
  100. package/types/components/Stack.d.ts +15 -15
  101. package/types/components/Stats.d.ts +11 -11
  102. package/types/components/Toast.d.ts +7 -7
  103. package/types/components/ToolButton.d.ts +46 -46
  104. package/types/components/Tooltip.d.ts +17 -17
  105. package/types/components/TopErrorBoundary.d.ts +15 -0
  106. package/types/components/UserList.d.ts +8 -8
  107. package/types/components/WelcomeScreen.d.ts +8 -0
  108. package/types/components/WelcomeScreenDecor.d.ts +6 -0
  109. package/types/components/context/tunnels.d.ts +16 -16
  110. package/types/components/dropdownMenu/DropdownMenu.d.ts +66 -66
  111. package/types/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
  112. package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  113. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -12
  114. package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +6 -6
  115. package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +6 -6
  116. package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +13 -13
  117. package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  118. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +9 -9
  119. package/types/components/dropdownMenu/common.d.ts +6 -6
  120. package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  121. package/types/components/footer/Footer.d.ts +12 -12
  122. package/types/components/footer/FooterCenter.d.ts +8 -8
  123. package/types/components/hoc/withInternalFallback.d.ts +4 -4
  124. package/types/components/hoc/withUpstreamOverride.d.ts +10 -10
  125. package/types/components/icons.d.ts +143 -142
  126. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +10 -10
  127. package/types/components/main-menu/DefaultItems.d.ts +44 -44
  128. package/types/components/main-menu/MainMenu.d.ts +60 -60
  129. package/types/components/mainMenu/DefaultItems.d.ts +44 -0
  130. package/types/components/mainMenu/MainMenu.d.ts +63 -0
  131. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +58 -58
  132. package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  133. package/types/components/welcome-screen/WelcomeScreen.d.ts +85 -85
  134. package/types/constants.d.ts +170 -170
  135. package/types/data/blob.d.ts +48 -48
  136. package/types/data/encode.d.ts +53 -53
  137. package/types/data/encryption.d.ts +9 -9
  138. package/types/data/filesystem.d.ts +18 -18
  139. package/types/data/image.d.ts +15 -15
  140. package/types/data/index.d.ts +13 -13
  141. package/types/data/json.d.ts +16 -16
  142. package/types/data/library.d.ts +96 -96
  143. package/types/data/resave.d.ts +5 -5
  144. package/types/data/restore.d.ts +21 -21
  145. package/types/data/types.d.ts +47 -47
  146. package/types/distribute.d.ts +6 -6
  147. package/types/element/Hyperlink.d.ts +155 -155
  148. package/types/element/binding.d.ts +33 -33
  149. package/types/element/bounds.d.ts +28 -28
  150. package/types/element/collision.d.ts +21 -21
  151. package/types/element/dragElements.d.ts +5 -5
  152. package/types/element/image.d.ts +22 -22
  153. package/types/element/index.d.ts +20 -20
  154. package/types/element/linearElementEditor.d.ts +273 -273
  155. package/types/element/mutateElement.d.ts +12 -12
  156. package/types/element/newElement.d.ts +66 -65
  157. package/types/element/resizeElements.d.ts +8 -8
  158. package/types/element/resizeTest.d.ts +13 -13
  159. package/types/element/showSelectedShapeActions.d.ts +3 -3
  160. package/types/element/sizeHelpers.d.ts +21 -21
  161. package/types/element/sortElements.d.ts +2 -2
  162. package/types/element/textElement.d.ts +79 -73
  163. package/types/element/textWysiwyg.d.ts +21 -21
  164. package/types/element/transformHandles.d.ts +28 -28
  165. package/types/element/typeChecks.d.ts +27 -27
  166. package/types/element/types.d.ts +150 -149
  167. package/types/errors.d.ts +8 -8
  168. package/types/excalidraw-app/CustomStats.d.ts +9 -0
  169. package/types/excalidraw-app/app_constants.d.ts +32 -0
  170. package/types/excalidraw-app/collab/Collab.d.ts +163 -0
  171. package/types/excalidraw-app/collab/Portal.d.ts +28 -0
  172. package/types/excalidraw-app/collab/RoomDialog.d.ts +13 -0
  173. package/types/excalidraw-app/collab/reconciliation.d.ts +10 -0
  174. package/types/excalidraw-app/components/ExportToExcalidrawPlus.d.ts +9 -0
  175. package/types/excalidraw-app/components/LanguageList.d.ts +4 -0
  176. package/types/excalidraw-app/components/icons.d.ts +1 -0
  177. package/types/excalidraw-app/data/FileManager.d.ts +66 -0
  178. package/types/excalidraw-app/data/LocalData.d.ts +32 -0
  179. package/types/excalidraw-app/data/Locker.d.ts +8 -0
  180. package/types/excalidraw-app/data/firebase.d.ts +25 -0
  181. package/types/excalidraw-app/data/index.d.ts +190 -0
  182. package/types/excalidraw-app/data/localStorage.d.ts +116 -0
  183. package/types/excalidraw-app/data/tabSync.d.ts +9 -0
  184. package/types/excalidraw-app/index.d.ts +26 -0
  185. package/types/ga.d.ts +63 -63
  186. package/types/gadirections.d.ts +8 -8
  187. package/types/galines.d.ts +22 -22
  188. package/types/gapoints.d.ts +7 -7
  189. package/types/gatransforms.d.ts +10 -10
  190. package/types/gesture.d.ts +6 -6
  191. package/types/groups.d.ts +27 -27
  192. package/types/history.d.ts +52 -52
  193. package/types/hooks/useCallbackRefState.d.ts +1 -1
  194. package/types/hooks/useOutsideClick.d.ts +2 -2
  195. package/types/i18n.d.ts +21 -21
  196. package/types/jotai.d.ts +122 -122
  197. package/types/keys.d.ts +77 -77
  198. package/types/math.d.ts +29 -29
  199. package/types/packages/common.webpack.dev.config.d.ts +72 -72
  200. package/types/packages/common.webpack.prod.config.d.ts +84 -84
  201. package/types/packages/excalidraw/dist/excalidraw.development.d.ts +4 -4
  202. package/types/packages/excalidraw/dist/excalidraw.production.min.d.ts +1 -1
  203. package/types/packages/excalidraw/entry.d.ts +1 -1
  204. package/types/packages/excalidraw/env.d.ts +1 -1
  205. package/types/packages/excalidraw/example/App.d.ts +14 -14
  206. package/types/packages/excalidraw/example/CustomFooter.d.ts +5 -5
  207. package/types/packages/excalidraw/example/MobileFooter.d.ts +5 -5
  208. package/types/packages/excalidraw/example/index.d.ts +1 -1
  209. package/types/packages/excalidraw/example/initialData.d.ts +172 -172
  210. package/types/packages/excalidraw/example/sidebar/ExampleSidebar.d.ts +5 -5
  211. package/types/packages/excalidraw/example/sidebar/Sidebar.d.ts +5 -0
  212. package/types/packages/excalidraw/index.d.ts +35 -35
  213. package/types/packages/excalidraw/main.d.ts +2 -2
  214. package/types/packages/excalidraw/publicPath.d.ts +1 -1
  215. package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -19
  216. package/types/packages/excalidraw/webpack.dev.config.d.ts +69 -69
  217. package/types/packages/excalidraw/webpack.prod.config.d.ts +78 -78
  218. package/types/packages/utils.d.ts +42 -42
  219. package/types/points.d.ts +7 -7
  220. package/types/polyfill.d.ts +2 -2
  221. package/types/random.d.ts +4 -4
  222. package/types/renderer/easingFunctions.d.ts +6 -6
  223. package/types/renderer/renderElement.d.ts +35 -35
  224. package/types/renderer/renderScene.d.ts +41 -41
  225. package/types/renderer/roundRect.d.ts +11 -11
  226. package/types/scene/Fonts.d.ts +21 -21
  227. package/types/scene/Scene.d.ts +40 -40
  228. package/types/scene/comparisons.d.ts +10 -10
  229. package/types/scene/export.d.ts +20 -20
  230. package/types/scene/index.d.ts +5 -5
  231. package/types/scene/scroll.d.ts +17 -17
  232. package/types/scene/scrollbars.d.ts +16 -16
  233. package/types/scene/selection.d.ts +11 -11
  234. package/types/scene/types.d.ts +59 -59
  235. package/types/scene/zoom.d.ts +13 -13
  236. package/types/shapes.d.ts +62 -62
  237. package/types/types.d.ts +442 -442
  238. package/types/utility-types.d.ts +22 -22
  239. package/types/utils.d.ts +162 -162
  240. package/types/zindex.d.ts +6 -6
  241. package/dist/.DS_Store +0 -0
@@ -1,1714 +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
- 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
- };
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, app: import("../../src/types").AppClassProperties) => {
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
+ };