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

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/excalidraw.development.js +186 -186
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/actions/actionAddToLibrary.d.ts +372 -372
  5. package/types/actions/actionAlign.d.ts +91 -91
  6. package/types/actions/actionBoundText.d.ts +284 -284
  7. package/types/actions/actionCanvas.d.ts +1315 -1315
  8. package/types/actions/actionClipboard.d.ts +717 -717
  9. package/types/actions/actionDeleteSelected.d.ts +409 -409
  10. package/types/actions/actionDistribute.d.ts +33 -33
  11. package/types/actions/actionDuplicateSelection.d.ts +22 -22
  12. package/types/actions/actionExport.d.ts +1181 -1181
  13. package/types/actions/actionFinalize.d.ts +256 -256
  14. package/types/actions/actionFlip.d.ts +35 -35
  15. package/types/actions/actionGroup.d.ts +45 -45
  16. package/types/actions/actionHistory.d.ts +6 -6
  17. package/types/actions/actionLinearEditor.d.ts +135 -135
  18. package/types/actions/actionMenu.d.ts +410 -410
  19. package/types/actions/actionNavigate.d.ts +14 -14
  20. package/types/actions/actionProperties.d.ts +1714 -1714
  21. package/types/actions/actionSelectAll.d.ts +16 -16
  22. package/types/actions/actionStyles.d.ts +149 -149
  23. package/types/actions/actionToggleGridMode.d.ts +138 -138
  24. package/types/actions/actionToggleLock.d.ts +135 -135
  25. package/types/actions/actionToggleStats.d.ts +135 -135
  26. package/types/actions/actionToggleViewMode.d.ts +137 -137
  27. package/types/actions/actionToggleZenMode.d.ts +137 -137
  28. package/types/actions/actionZindex.d.ts +67 -67
  29. package/types/actions/index.d.ts +24 -24
  30. package/types/actions/manager.d.ts +21 -21
  31. package/types/actions/register.d.ts +5 -5
  32. package/types/actions/shortcuts.d.ts +4 -4
  33. package/types/actions/types.d.ts +44 -44
  34. package/types/align.d.ts +6 -6
  35. package/types/analytics.d.ts +1 -1
  36. package/types/appState.d.ts +78 -78
  37. package/types/bug-issue-template.d.ts +2 -0
  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/ActiveFile.d.ts +7 -0
  45. package/types/components/App.d.ts +248 -248
  46. package/types/components/Avatar.d.ts +11 -11
  47. package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +4 -0
  48. package/types/components/BraveMeasureTextError.d.ts +2 -2
  49. package/types/components/Button.d.ts +15 -15
  50. package/types/components/ButtonIconSelect.d.ts +19 -11
  51. package/types/components/Card.d.ts +7 -7
  52. package/types/components/CheckboxItem.d.ts +8 -8
  53. package/types/components/ClearCanvas.d.ts +4 -0
  54. package/types/components/CollabButton.d.ts +7 -0
  55. package/types/components/ColorPicker.d.ts +19 -19
  56. package/types/components/ConfirmDialog.d.ts +10 -10
  57. package/types/components/ContextMenu.d.ts +15 -15
  58. package/types/components/DarkModeToggle.d.ts +7 -7
  59. package/types/components/Dialog.d.ts +14 -14
  60. package/types/components/DialogActionButton.d.ts +10 -10
  61. package/types/components/EncryptedIcon.d.ts +2 -0
  62. package/types/components/ErrorDialog.d.ts +5 -5
  63. package/types/components/FixedSideContainer.d.ts +9 -9
  64. package/types/components/Footer.d.ts +10 -0
  65. package/types/components/HandButton.d.ts +10 -10
  66. package/types/components/HelpButton.d.ts +7 -7
  67. package/types/components/HelpDialog.d.ts +4 -4
  68. package/types/components/HelpIcon.d.ts +8 -0
  69. package/types/components/HintViewer.d.ts +11 -11
  70. package/types/components/IconPicker.d.ts +13 -13
  71. package/types/components/ImageExportDialog.d.ts +18 -18
  72. package/types/components/InitializeApp.d.ts +10 -10
  73. package/types/components/Island.d.ts +10 -10
  74. package/types/components/JSONExportDialog.d.ts +15 -15
  75. package/types/components/LayerUI.d.ts +37 -37
  76. package/types/components/LibraryButton.d.ts +8 -8
  77. package/types/components/LibraryMenu.d.ts +25 -25
  78. package/types/components/LibraryMenuBrowseButton.d.ts +7 -7
  79. package/types/components/LibraryMenuHeaderContent.d.ts +35 -35
  80. package/types/components/LibraryMenuItems.d.ts +15 -15
  81. package/types/components/LibraryUnit.d.ts +11 -11
  82. package/types/components/LoadingMessage.d.ts +6 -6
  83. package/types/components/LockButton.d.ts +10 -10
  84. package/types/components/MenuItem.d.ts +11 -0
  85. package/types/components/MenuUtils.d.ts +2 -0
  86. package/types/components/MobileMenu.d.ts +26 -26
  87. package/types/components/Modal.d.ts +13 -13
  88. package/types/components/PasteChartDialog.d.ts +9 -9
  89. package/types/components/PenModeButton.d.ts +12 -12
  90. package/types/components/Popover.d.ts +15 -15
  91. package/types/components/ProjectName.d.ts +10 -10
  92. package/types/components/PublishLibrary.d.ts +16 -16
  93. package/types/components/Section.d.ts +6 -6
  94. package/types/components/Sidebar/Sidebar.d.ts +73 -73
  95. package/types/components/Sidebar/SidebarHeader.d.ts +20 -20
  96. package/types/components/Sidebar/common.d.ts +16 -16
  97. package/types/components/SidebarLockButton.d.ts +8 -0
  98. package/types/components/SingleLibraryItem.d.ts +10 -10
  99. package/types/components/Spinner.d.ts +6 -6
  100. package/types/components/Stack.d.ts +15 -15
  101. package/types/components/Stats.d.ts +11 -11
  102. package/types/components/Toast.d.ts +7 -7
  103. package/types/components/ToolButton.d.ts +46 -46
  104. package/types/components/Tooltip.d.ts +17 -17
  105. package/types/components/TopErrorBoundary.d.ts +15 -0
  106. package/types/components/UserList.d.ts +8 -8
  107. package/types/components/WelcomeScreen.d.ts +8 -0
  108. package/types/components/WelcomeScreenDecor.d.ts +6 -0
  109. package/types/components/context/tunnels.d.ts +16 -16
  110. package/types/components/dropdownMenu/DropdownMenu.d.ts +66 -66
  111. package/types/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
  112. package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  113. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -12
  114. package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +6 -6
  115. package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +6 -6
  116. package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +13 -13
  117. package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  118. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +9 -9
  119. package/types/components/dropdownMenu/common.d.ts +6 -6
  120. package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  121. package/types/components/footer/Footer.d.ts +12 -12
  122. package/types/components/footer/FooterCenter.d.ts +8 -8
  123. package/types/components/hoc/withInternalFallback.d.ts +4 -4
  124. package/types/components/hoc/withUpstreamOverride.d.ts +10 -10
  125. package/types/components/icons.d.ts +143 -142
  126. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +10 -10
  127. package/types/components/main-menu/DefaultItems.d.ts +44 -44
  128. package/types/components/main-menu/MainMenu.d.ts +60 -60
  129. package/types/components/mainMenu/DefaultItems.d.ts +44 -0
  130. package/types/components/mainMenu/MainMenu.d.ts +63 -0
  131. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +58 -58
  132. package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  133. package/types/components/welcome-screen/WelcomeScreen.d.ts +85 -85
  134. package/types/constants.d.ts +170 -170
  135. package/types/data/blob.d.ts +48 -48
  136. package/types/data/encode.d.ts +53 -53
  137. package/types/data/encryption.d.ts +9 -9
  138. package/types/data/filesystem.d.ts +18 -18
  139. package/types/data/image.d.ts +15 -15
  140. package/types/data/index.d.ts +13 -13
  141. package/types/data/json.d.ts +16 -16
  142. package/types/data/library.d.ts +96 -96
  143. package/types/data/resave.d.ts +5 -5
  144. package/types/data/restore.d.ts +21 -21
  145. package/types/data/types.d.ts +47 -47
  146. package/types/distribute.d.ts +6 -6
  147. package/types/element/Hyperlink.d.ts +155 -155
  148. package/types/element/binding.d.ts +33 -33
  149. package/types/element/bounds.d.ts +28 -28
  150. package/types/element/collision.d.ts +21 -21
  151. package/types/element/dragElements.d.ts +5 -5
  152. package/types/element/image.d.ts +22 -22
  153. package/types/element/index.d.ts +20 -20
  154. package/types/element/linearElementEditor.d.ts +273 -273
  155. package/types/element/mutateElement.d.ts +12 -12
  156. package/types/element/newElement.d.ts +66 -65
  157. package/types/element/resizeElements.d.ts +8 -8
  158. package/types/element/resizeTest.d.ts +13 -13
  159. package/types/element/showSelectedShapeActions.d.ts +3 -3
  160. package/types/element/sizeHelpers.d.ts +21 -21
  161. package/types/element/sortElements.d.ts +2 -2
  162. package/types/element/textElement.d.ts +79 -73
  163. package/types/element/textWysiwyg.d.ts +21 -21
  164. package/types/element/transformHandles.d.ts +28 -28
  165. package/types/element/typeChecks.d.ts +27 -27
  166. package/types/element/types.d.ts +150 -149
  167. package/types/errors.d.ts +8 -8
  168. package/types/excalidraw-app/CustomStats.d.ts +9 -0
  169. package/types/excalidraw-app/app_constants.d.ts +32 -0
  170. package/types/excalidraw-app/collab/Collab.d.ts +163 -0
  171. package/types/excalidraw-app/collab/Portal.d.ts +28 -0
  172. package/types/excalidraw-app/collab/RoomDialog.d.ts +13 -0
  173. package/types/excalidraw-app/collab/reconciliation.d.ts +10 -0
  174. package/types/excalidraw-app/components/ExportToExcalidrawPlus.d.ts +9 -0
  175. package/types/excalidraw-app/components/LanguageList.d.ts +4 -0
  176. package/types/excalidraw-app/components/icons.d.ts +1 -0
  177. package/types/excalidraw-app/data/FileManager.d.ts +66 -0
  178. package/types/excalidraw-app/data/LocalData.d.ts +32 -0
  179. package/types/excalidraw-app/data/Locker.d.ts +8 -0
  180. package/types/excalidraw-app/data/firebase.d.ts +25 -0
  181. package/types/excalidraw-app/data/index.d.ts +190 -0
  182. package/types/excalidraw-app/data/localStorage.d.ts +116 -0
  183. package/types/excalidraw-app/data/tabSync.d.ts +9 -0
  184. package/types/excalidraw-app/index.d.ts +26 -0
  185. package/types/ga.d.ts +63 -63
  186. package/types/gadirections.d.ts +8 -8
  187. package/types/galines.d.ts +22 -22
  188. package/types/gapoints.d.ts +7 -7
  189. package/types/gatransforms.d.ts +10 -10
  190. package/types/gesture.d.ts +6 -6
  191. package/types/groups.d.ts +27 -27
  192. package/types/history.d.ts +52 -52
  193. package/types/hooks/useCallbackRefState.d.ts +1 -1
  194. package/types/hooks/useOutsideClick.d.ts +2 -2
  195. package/types/i18n.d.ts +21 -21
  196. package/types/jotai.d.ts +122 -122
  197. package/types/keys.d.ts +77 -77
  198. package/types/math.d.ts +29 -29
  199. package/types/packages/common.webpack.dev.config.d.ts +72 -72
  200. package/types/packages/common.webpack.prod.config.d.ts +84 -84
  201. package/types/packages/excalidraw/dist/excalidraw.development.d.ts +4 -4
  202. package/types/packages/excalidraw/dist/excalidraw.production.min.d.ts +1 -1
  203. package/types/packages/excalidraw/entry.d.ts +1 -1
  204. package/types/packages/excalidraw/env.d.ts +1 -1
  205. package/types/packages/excalidraw/example/App.d.ts +14 -14
  206. package/types/packages/excalidraw/example/CustomFooter.d.ts +5 -5
  207. package/types/packages/excalidraw/example/MobileFooter.d.ts +5 -5
  208. package/types/packages/excalidraw/example/index.d.ts +1 -1
  209. package/types/packages/excalidraw/example/initialData.d.ts +172 -172
  210. package/types/packages/excalidraw/example/sidebar/ExampleSidebar.d.ts +5 -5
  211. package/types/packages/excalidraw/example/sidebar/Sidebar.d.ts +5 -0
  212. package/types/packages/excalidraw/index.d.ts +35 -35
  213. package/types/packages/excalidraw/main.d.ts +2 -2
  214. package/types/packages/excalidraw/publicPath.d.ts +1 -1
  215. package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -19
  216. package/types/packages/excalidraw/webpack.dev.config.d.ts +69 -69
  217. package/types/packages/excalidraw/webpack.prod.config.d.ts +78 -78
  218. package/types/packages/utils.d.ts +42 -42
  219. package/types/points.d.ts +7 -7
  220. package/types/polyfill.d.ts +2 -2
  221. package/types/random.d.ts +4 -4
  222. package/types/renderer/easingFunctions.d.ts +6 -6
  223. package/types/renderer/renderElement.d.ts +35 -35
  224. package/types/renderer/renderScene.d.ts +41 -41
  225. package/types/renderer/roundRect.d.ts +11 -11
  226. package/types/scene/Fonts.d.ts +21 -21
  227. package/types/scene/Scene.d.ts +40 -40
  228. package/types/scene/comparisons.d.ts +10 -10
  229. package/types/scene/export.d.ts +20 -20
  230. package/types/scene/index.d.ts +5 -5
  231. package/types/scene/scroll.d.ts +17 -17
  232. package/types/scene/scrollbars.d.ts +16 -16
  233. package/types/scene/selection.d.ts +11 -11
  234. package/types/scene/types.d.ts +59 -59
  235. package/types/scene/zoom.d.ts +13 -13
  236. package/types/shapes.d.ts +62 -62
  237. package/types/types.d.ts +442 -442
  238. package/types/utility-types.d.ts +22 -22
  239. package/types/utils.d.ts +162 -162
  240. package/types/zindex.d.ts +6 -6
  241. package/dist/.DS_Store +0 -0
@@ -1,1181 +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: 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
- };
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
+ };