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

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