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

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