@zsviczian/excalidraw 0.14.2-obsidian-4 → 0.15.2-obsidian-1

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