@zsviczian/excalidraw 0.15.2-obsidian-8 → 0.15.2-obsidian-10

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