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

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