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

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