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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/dist/excalidraw.development.js +186 -186
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/actions/actionAddToLibrary.d.ts +372 -372
  5. package/types/actions/actionAlign.d.ts +91 -91
  6. package/types/actions/actionBoundText.d.ts +284 -284
  7. package/types/actions/actionCanvas.d.ts +1315 -1315
  8. package/types/actions/actionClipboard.d.ts +717 -717
  9. package/types/actions/actionDeleteSelected.d.ts +409 -409
  10. package/types/actions/actionDistribute.d.ts +33 -33
  11. package/types/actions/actionDuplicateSelection.d.ts +22 -22
  12. package/types/actions/actionExport.d.ts +1181 -1181
  13. package/types/actions/actionFinalize.d.ts +256 -256
  14. package/types/actions/actionFlip.d.ts +35 -35
  15. package/types/actions/actionGroup.d.ts +45 -45
  16. package/types/actions/actionHistory.d.ts +6 -6
  17. package/types/actions/actionLinearEditor.d.ts +135 -135
  18. package/types/actions/actionMenu.d.ts +410 -410
  19. package/types/actions/actionNavigate.d.ts +14 -14
  20. package/types/actions/actionProperties.d.ts +1714 -1714
  21. package/types/actions/actionSelectAll.d.ts +16 -16
  22. package/types/actions/actionStyles.d.ts +149 -149
  23. package/types/actions/actionToggleGridMode.d.ts +138 -138
  24. package/types/actions/actionToggleLock.d.ts +135 -135
  25. package/types/actions/actionToggleStats.d.ts +135 -135
  26. package/types/actions/actionToggleViewMode.d.ts +137 -137
  27. package/types/actions/actionToggleZenMode.d.ts +137 -137
  28. package/types/actions/actionZindex.d.ts +67 -67
  29. package/types/actions/index.d.ts +24 -24
  30. package/types/actions/manager.d.ts +21 -21
  31. package/types/actions/register.d.ts +5 -5
  32. package/types/actions/shortcuts.d.ts +4 -4
  33. package/types/actions/types.d.ts +44 -44
  34. package/types/align.d.ts +6 -6
  35. package/types/analytics.d.ts +1 -1
  36. package/types/appState.d.ts +78 -78
  37. package/types/bug-issue-template.d.ts +2 -0
  38. package/types/charts.d.ts +27 -27
  39. package/types/clients.d.ts +6 -6
  40. package/types/clipboard.d.ts +25 -25
  41. package/types/colors.d.ts +6 -6
  42. package/types/components/Actions.d.ts +36 -36
  43. package/types/components/ActiveConfirmDialog.d.ts +24 -24
  44. package/types/components/ActiveFile.d.ts +7 -0
  45. package/types/components/App.d.ts +248 -248
  46. package/types/components/Avatar.d.ts +11 -11
  47. package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +4 -0
  48. package/types/components/BraveMeasureTextError.d.ts +2 -2
  49. package/types/components/Button.d.ts +15 -15
  50. package/types/components/ButtonIconSelect.d.ts +19 -11
  51. package/types/components/Card.d.ts +7 -7
  52. package/types/components/CheckboxItem.d.ts +8 -8
  53. package/types/components/ClearCanvas.d.ts +4 -0
  54. package/types/components/CollabButton.d.ts +7 -0
  55. package/types/components/ColorPicker.d.ts +19 -19
  56. package/types/components/ConfirmDialog.d.ts +10 -10
  57. package/types/components/ContextMenu.d.ts +15 -15
  58. package/types/components/DarkModeToggle.d.ts +7 -7
  59. package/types/components/Dialog.d.ts +14 -14
  60. package/types/components/DialogActionButton.d.ts +10 -10
  61. package/types/components/EncryptedIcon.d.ts +2 -0
  62. package/types/components/ErrorDialog.d.ts +5 -5
  63. package/types/components/FixedSideContainer.d.ts +9 -9
  64. package/types/components/Footer.d.ts +10 -0
  65. package/types/components/HandButton.d.ts +10 -10
  66. package/types/components/HelpButton.d.ts +7 -7
  67. package/types/components/HelpDialog.d.ts +4 -4
  68. package/types/components/HelpIcon.d.ts +8 -0
  69. package/types/components/HintViewer.d.ts +11 -11
  70. package/types/components/IconPicker.d.ts +13 -13
  71. package/types/components/ImageExportDialog.d.ts +18 -18
  72. package/types/components/InitializeApp.d.ts +10 -10
  73. package/types/components/Island.d.ts +10 -10
  74. package/types/components/JSONExportDialog.d.ts +15 -15
  75. package/types/components/LayerUI.d.ts +37 -37
  76. package/types/components/LibraryButton.d.ts +8 -8
  77. package/types/components/LibraryMenu.d.ts +25 -25
  78. package/types/components/LibraryMenuBrowseButton.d.ts +7 -7
  79. package/types/components/LibraryMenuHeaderContent.d.ts +35 -35
  80. package/types/components/LibraryMenuItems.d.ts +15 -15
  81. package/types/components/LibraryUnit.d.ts +11 -11
  82. package/types/components/LoadingMessage.d.ts +6 -6
  83. package/types/components/LockButton.d.ts +10 -10
  84. package/types/components/MenuItem.d.ts +11 -0
  85. package/types/components/MenuUtils.d.ts +2 -0
  86. package/types/components/MobileMenu.d.ts +26 -26
  87. package/types/components/Modal.d.ts +13 -13
  88. package/types/components/PasteChartDialog.d.ts +9 -9
  89. package/types/components/PenModeButton.d.ts +12 -12
  90. package/types/components/Popover.d.ts +15 -15
  91. package/types/components/ProjectName.d.ts +10 -10
  92. package/types/components/PublishLibrary.d.ts +16 -16
  93. package/types/components/Section.d.ts +6 -6
  94. package/types/components/Sidebar/Sidebar.d.ts +73 -73
  95. package/types/components/Sidebar/SidebarHeader.d.ts +20 -20
  96. package/types/components/Sidebar/common.d.ts +16 -16
  97. package/types/components/SidebarLockButton.d.ts +8 -0
  98. package/types/components/SingleLibraryItem.d.ts +10 -10
  99. package/types/components/Spinner.d.ts +6 -6
  100. package/types/components/Stack.d.ts +15 -15
  101. package/types/components/Stats.d.ts +11 -11
  102. package/types/components/Toast.d.ts +7 -7
  103. package/types/components/ToolButton.d.ts +46 -46
  104. package/types/components/Tooltip.d.ts +17 -17
  105. package/types/components/TopErrorBoundary.d.ts +15 -0
  106. package/types/components/UserList.d.ts +8 -8
  107. package/types/components/WelcomeScreen.d.ts +8 -0
  108. package/types/components/WelcomeScreenDecor.d.ts +6 -0
  109. package/types/components/context/tunnels.d.ts +16 -16
  110. package/types/components/dropdownMenu/DropdownMenu.d.ts +66 -66
  111. package/types/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
  112. package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  113. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -12
  114. package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +6 -6
  115. package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +6 -6
  116. package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +13 -13
  117. package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  118. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +9 -9
  119. package/types/components/dropdownMenu/common.d.ts +6 -6
  120. package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  121. package/types/components/footer/Footer.d.ts +12 -12
  122. package/types/components/footer/FooterCenter.d.ts +8 -8
  123. package/types/components/hoc/withInternalFallback.d.ts +4 -4
  124. package/types/components/hoc/withUpstreamOverride.d.ts +10 -10
  125. package/types/components/icons.d.ts +143 -142
  126. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +10 -10
  127. package/types/components/main-menu/DefaultItems.d.ts +44 -44
  128. package/types/components/main-menu/MainMenu.d.ts +60 -60
  129. package/types/components/mainMenu/DefaultItems.d.ts +44 -0
  130. package/types/components/mainMenu/MainMenu.d.ts +63 -0
  131. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +58 -58
  132. package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  133. package/types/components/welcome-screen/WelcomeScreen.d.ts +85 -85
  134. package/types/constants.d.ts +170 -170
  135. package/types/data/blob.d.ts +48 -48
  136. package/types/data/encode.d.ts +53 -53
  137. package/types/data/encryption.d.ts +9 -9
  138. package/types/data/filesystem.d.ts +18 -18
  139. package/types/data/image.d.ts +15 -15
  140. package/types/data/index.d.ts +13 -13
  141. package/types/data/json.d.ts +16 -16
  142. package/types/data/library.d.ts +96 -96
  143. package/types/data/resave.d.ts +5 -5
  144. package/types/data/restore.d.ts +21 -21
  145. package/types/data/types.d.ts +47 -47
  146. package/types/distribute.d.ts +6 -6
  147. package/types/element/Hyperlink.d.ts +155 -155
  148. package/types/element/binding.d.ts +33 -33
  149. package/types/element/bounds.d.ts +28 -28
  150. package/types/element/collision.d.ts +21 -21
  151. package/types/element/dragElements.d.ts +5 -5
  152. package/types/element/image.d.ts +22 -22
  153. package/types/element/index.d.ts +20 -20
  154. package/types/element/linearElementEditor.d.ts +273 -273
  155. package/types/element/mutateElement.d.ts +12 -12
  156. package/types/element/newElement.d.ts +66 -65
  157. package/types/element/resizeElements.d.ts +8 -8
  158. package/types/element/resizeTest.d.ts +13 -13
  159. package/types/element/showSelectedShapeActions.d.ts +3 -3
  160. package/types/element/sizeHelpers.d.ts +21 -21
  161. package/types/element/sortElements.d.ts +2 -2
  162. package/types/element/textElement.d.ts +79 -73
  163. package/types/element/textWysiwyg.d.ts +21 -21
  164. package/types/element/transformHandles.d.ts +28 -28
  165. package/types/element/typeChecks.d.ts +27 -27
  166. package/types/element/types.d.ts +150 -149
  167. package/types/errors.d.ts +8 -8
  168. package/types/excalidraw-app/CustomStats.d.ts +9 -0
  169. package/types/excalidraw-app/app_constants.d.ts +32 -0
  170. package/types/excalidraw-app/collab/Collab.d.ts +163 -0
  171. package/types/excalidraw-app/collab/Portal.d.ts +28 -0
  172. package/types/excalidraw-app/collab/RoomDialog.d.ts +13 -0
  173. package/types/excalidraw-app/collab/reconciliation.d.ts +10 -0
  174. package/types/excalidraw-app/components/ExportToExcalidrawPlus.d.ts +9 -0
  175. package/types/excalidraw-app/components/LanguageList.d.ts +4 -0
  176. package/types/excalidraw-app/components/icons.d.ts +1 -0
  177. package/types/excalidraw-app/data/FileManager.d.ts +66 -0
  178. package/types/excalidraw-app/data/LocalData.d.ts +32 -0
  179. package/types/excalidraw-app/data/Locker.d.ts +8 -0
  180. package/types/excalidraw-app/data/firebase.d.ts +25 -0
  181. package/types/excalidraw-app/data/index.d.ts +190 -0
  182. package/types/excalidraw-app/data/localStorage.d.ts +116 -0
  183. package/types/excalidraw-app/data/tabSync.d.ts +9 -0
  184. package/types/excalidraw-app/index.d.ts +26 -0
  185. package/types/ga.d.ts +63 -63
  186. package/types/gadirections.d.ts +8 -8
  187. package/types/galines.d.ts +22 -22
  188. package/types/gapoints.d.ts +7 -7
  189. package/types/gatransforms.d.ts +10 -10
  190. package/types/gesture.d.ts +6 -6
  191. package/types/groups.d.ts +27 -27
  192. package/types/history.d.ts +52 -52
  193. package/types/hooks/useCallbackRefState.d.ts +1 -1
  194. package/types/hooks/useOutsideClick.d.ts +2 -2
  195. package/types/i18n.d.ts +21 -21
  196. package/types/jotai.d.ts +122 -122
  197. package/types/keys.d.ts +77 -77
  198. package/types/math.d.ts +29 -29
  199. package/types/packages/common.webpack.dev.config.d.ts +72 -72
  200. package/types/packages/common.webpack.prod.config.d.ts +84 -84
  201. package/types/packages/excalidraw/dist/excalidraw.development.d.ts +4 -4
  202. package/types/packages/excalidraw/dist/excalidraw.production.min.d.ts +1 -1
  203. package/types/packages/excalidraw/entry.d.ts +1 -1
  204. package/types/packages/excalidraw/env.d.ts +1 -1
  205. package/types/packages/excalidraw/example/App.d.ts +14 -14
  206. package/types/packages/excalidraw/example/CustomFooter.d.ts +5 -5
  207. package/types/packages/excalidraw/example/MobileFooter.d.ts +5 -5
  208. package/types/packages/excalidraw/example/index.d.ts +1 -1
  209. package/types/packages/excalidraw/example/initialData.d.ts +172 -172
  210. package/types/packages/excalidraw/example/sidebar/ExampleSidebar.d.ts +5 -5
  211. package/types/packages/excalidraw/example/sidebar/Sidebar.d.ts +5 -0
  212. package/types/packages/excalidraw/index.d.ts +35 -35
  213. package/types/packages/excalidraw/main.d.ts +2 -2
  214. package/types/packages/excalidraw/publicPath.d.ts +1 -1
  215. package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -19
  216. package/types/packages/excalidraw/webpack.dev.config.d.ts +69 -69
  217. package/types/packages/excalidraw/webpack.prod.config.d.ts +78 -78
  218. package/types/packages/utils.d.ts +42 -42
  219. package/types/points.d.ts +7 -7
  220. package/types/polyfill.d.ts +2 -2
  221. package/types/random.d.ts +4 -4
  222. package/types/renderer/easingFunctions.d.ts +6 -6
  223. package/types/renderer/renderElement.d.ts +35 -35
  224. package/types/renderer/renderScene.d.ts +41 -41
  225. package/types/renderer/roundRect.d.ts +11 -11
  226. package/types/scene/Fonts.d.ts +21 -21
  227. package/types/scene/Scene.d.ts +40 -40
  228. package/types/scene/comparisons.d.ts +10 -10
  229. package/types/scene/export.d.ts +20 -20
  230. package/types/scene/index.d.ts +5 -5
  231. package/types/scene/scroll.d.ts +17 -17
  232. package/types/scene/scrollbars.d.ts +16 -16
  233. package/types/scene/selection.d.ts +11 -11
  234. package/types/scene/types.d.ts +59 -59
  235. package/types/scene/zoom.d.ts +13 -13
  236. package/types/shapes.d.ts +62 -62
  237. package/types/types.d.ts +442 -442
  238. package/types/utility-types.d.ts +22 -22
  239. package/types/utils.d.ts +162 -162
  240. package/types/zindex.d.ts +6 -6
  241. package/dist/.DS_Store +0 -0
@@ -1,717 +1,717 @@
1
- /// <reference types="react" />
2
- export declare const actionCopy: {
3
- name: "copy";
4
- trackEvent: {
5
- category: "element";
6
- };
7
- perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
8
- commitToHistory: false;
9
- };
10
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => true;
11
- contextItemLabel: string;
12
- keyTest: undefined;
13
- } & {
14
- keyTest?: undefined;
15
- };
16
- export declare const actionPaste: {
17
- name: "paste";
18
- trackEvent: {
19
- category: "element";
20
- };
21
- perform: (elements: any, appStates: any, data: any, app: import("../types").AppClassProperties) => {
22
- commitToHistory: false;
23
- };
24
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => true;
25
- contextItemLabel: string;
26
- keyTest: undefined;
27
- } & {
28
- keyTest?: undefined;
29
- };
30
- export declare const actionCut: {
31
- name: "cut";
32
- trackEvent: {
33
- category: "element";
34
- };
35
- perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => false | {
36
- elements: import("../element/types").ExcalidrawElement[];
37
- appState: {
38
- editingLinearElement: null;
39
- contextMenu: {
40
- items: import("../components/ContextMenu").ContextMenuItems;
41
- top: number;
42
- left: number;
43
- } | null;
44
- showWelcomeScreen: boolean;
45
- isLoading: boolean;
46
- errorMessage: import("react").ReactNode;
47
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
48
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
49
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
50
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
51
- isBindingEnabled: boolean;
52
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
53
- suggestedBindings: import("../element/binding").SuggestedBinding[];
54
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
55
- activeTool: {
56
- lastActiveTool: import("../types").LastActiveTool;
57
- locked: boolean;
58
- } & ({
59
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
60
- customType: null;
61
- } | {
62
- type: "custom";
63
- customType: string;
64
- });
65
- penMode: boolean;
66
- penDetected: boolean;
67
- exportBackground: boolean;
68
- exportEmbedScene: boolean;
69
- exportWithDarkMode: boolean;
70
- exportScale: number;
71
- currentItemStrokeColor: string;
72
- currentItemBackgroundColor: string;
73
- currentItemFillStyle: import("../element/types").FillStyle;
74
- currentItemStrokeWidth: number;
75
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
76
- currentItemRoughness: number;
77
- currentItemOpacity: number;
78
- currentItemFontFamily: number;
79
- currentItemFontSize: number;
80
- currentItemTextAlign: string;
81
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
82
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
83
- currentItemRoundness: import("../element/types").StrokeRoundness;
84
- viewBackgroundColor: string;
85
- scrollX: number;
86
- scrollY: number;
87
- cursorButton: "up" | "down";
88
- scrolledOutside: boolean;
89
- name: string;
90
- isResizing: boolean;
91
- isRotating: boolean;
92
- zoom: Readonly<{
93
- value: import("../types").NormalizedZoomValue;
94
- }>;
95
- openMenu: "canvas" | "shape" | null;
96
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
97
- openSidebar: "library" | "customSidebar" | null;
98
- openDialog: "imageExport" | "help" | "jsonExport" | null;
99
- isSidebarDocked: boolean;
100
- lastPointerDownWith: import("../element/types").PointerType;
101
- selectedElementIds: {
102
- [id: string]: boolean;
103
- };
104
- previousSelectedElementIds: {
105
- [id: string]: boolean;
106
- };
107
- shouldCacheIgnoreZoom: boolean;
108
- toast: {
109
- message: string;
110
- closable?: boolean | undefined;
111
- duration?: number | undefined;
112
- } | null;
113
- zenModeEnabled: boolean;
114
- theme: string;
115
- gridSize: number | null;
116
- previousGridSize: number | null;
117
- viewModeEnabled: boolean;
118
- selectedGroupIds: {
119
- [groupId: string]: boolean;
120
- };
121
- editingGroupId: string | null;
122
- width: number;
123
- height: number;
124
- offsetTop: number;
125
- offsetLeft: number;
126
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
127
- collaborators: Map<string, import("../types").Collaborator>;
128
- showStats: boolean;
129
- currentChartType: import("../element/types").ChartType;
130
- pasteDialog: {
131
- shown: false;
132
- data: null;
133
- } | {
134
- shown: true;
135
- data: import("../charts").Spreadsheet;
136
- };
137
- pendingImageElementId: string | null;
138
- showHyperlinkPopup: false | "info" | "editor";
139
- linkOpacity: number;
140
- trayModeEnabled: boolean;
141
- colorPalette: {
142
- canvasBackground?: string[] | undefined;
143
- elementBackground?: string[] | undefined;
144
- elementStroke?: string[] | undefined;
145
- };
146
- allowWheelZoom?: boolean | undefined;
147
- allowPinchZoom?: boolean | undefined;
148
- pinnedScripts?: string[] | undefined;
149
- customPens?: any[] | undefined;
150
- currentStrokeOptions?: any;
151
- resetCustomPen?: any;
152
- gridColor: string;
153
- dynamicStyle: string;
154
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
155
- };
156
- commitToHistory: false;
157
- } | {
158
- elements: readonly import("../element/types").ExcalidrawElement[];
159
- appState: {
160
- editingLinearElement: {
161
- selectedPointsIndices: number[];
162
- startBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
163
- endBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
164
- elementId: string & {
165
- _brand: "excalidrawLinearElementId";
166
- };
167
- pointerDownState: Readonly<{
168
- prevSelectedPointsIndices: readonly number[] | null;
169
- lastClickedPoint: number;
170
- origin: Readonly<{
171
- x: number;
172
- y: number;
173
- }> | null;
174
- segmentMidpoint: {
175
- value: readonly [number, number] | null;
176
- index: number | null;
177
- added: boolean;
178
- };
179
- }>;
180
- isDragging: boolean;
181
- lastUncommittedPoint: readonly [number, number] | null;
182
- pointerOffset: Readonly<{
183
- x: number;
184
- y: number;
185
- }>;
186
- hoverPointIndex: number;
187
- segmentMidPointHoveredCoords: readonly [number, number] | null;
188
- };
189
- contextMenu: {
190
- items: import("../components/ContextMenu").ContextMenuItems;
191
- top: number;
192
- left: number;
193
- } | null;
194
- showWelcomeScreen: boolean;
195
- isLoading: boolean;
196
- errorMessage: import("react").ReactNode;
197
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
198
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
199
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
200
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
201
- isBindingEnabled: boolean;
202
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
203
- suggestedBindings: import("../element/binding").SuggestedBinding[];
204
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
205
- activeTool: {
206
- lastActiveTool: import("../types").LastActiveTool;
207
- locked: boolean;
208
- } & ({
209
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
210
- customType: null;
211
- } | {
212
- type: "custom";
213
- customType: string;
214
- });
215
- penMode: boolean;
216
- penDetected: boolean;
217
- exportBackground: boolean;
218
- exportEmbedScene: boolean;
219
- exportWithDarkMode: boolean;
220
- exportScale: number;
221
- currentItemStrokeColor: string;
222
- currentItemBackgroundColor: string;
223
- currentItemFillStyle: import("../element/types").FillStyle;
224
- currentItemStrokeWidth: number;
225
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
226
- currentItemRoughness: number;
227
- currentItemOpacity: number;
228
- currentItemFontFamily: number;
229
- currentItemFontSize: number;
230
- currentItemTextAlign: string;
231
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
232
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
233
- currentItemRoundness: import("../element/types").StrokeRoundness;
234
- viewBackgroundColor: string;
235
- scrollX: number;
236
- scrollY: number;
237
- cursorButton: "up" | "down";
238
- scrolledOutside: boolean;
239
- name: string;
240
- isResizing: boolean;
241
- isRotating: boolean;
242
- zoom: Readonly<{
243
- value: import("../types").NormalizedZoomValue;
244
- }>;
245
- openMenu: "canvas" | "shape" | null;
246
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
247
- openSidebar: "library" | "customSidebar" | null;
248
- openDialog: "imageExport" | "help" | "jsonExport" | null;
249
- isSidebarDocked: boolean;
250
- lastPointerDownWith: import("../element/types").PointerType;
251
- selectedElementIds: {
252
- [id: string]: boolean;
253
- };
254
- previousSelectedElementIds: {
255
- [id: string]: boolean;
256
- };
257
- shouldCacheIgnoreZoom: boolean;
258
- toast: {
259
- message: string;
260
- closable?: boolean | undefined;
261
- duration?: number | undefined;
262
- } | null;
263
- zenModeEnabled: boolean;
264
- theme: string;
265
- gridSize: number | null;
266
- previousGridSize: number | null;
267
- viewModeEnabled: boolean;
268
- selectedGroupIds: {
269
- [groupId: string]: boolean;
270
- };
271
- editingGroupId: string | null;
272
- width: number;
273
- height: number;
274
- offsetTop: number;
275
- offsetLeft: number;
276
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
277
- collaborators: Map<string, import("../types").Collaborator>;
278
- showStats: boolean;
279
- currentChartType: import("../element/types").ChartType;
280
- pasteDialog: {
281
- shown: false;
282
- data: null;
283
- } | {
284
- shown: true;
285
- data: import("../charts").Spreadsheet;
286
- };
287
- pendingImageElementId: string | null;
288
- showHyperlinkPopup: false | "info" | "editor";
289
- linkOpacity: number;
290
- trayModeEnabled: boolean;
291
- colorPalette: {
292
- canvasBackground?: string[] | undefined;
293
- elementBackground?: string[] | undefined;
294
- elementStroke?: string[] | undefined;
295
- };
296
- allowWheelZoom?: boolean | undefined;
297
- allowPinchZoom?: boolean | undefined;
298
- pinnedScripts?: string[] | undefined;
299
- customPens?: any[] | undefined;
300
- currentStrokeOptions?: any;
301
- resetCustomPen?: any;
302
- gridColor: string;
303
- dynamicStyle: string;
304
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
305
- };
306
- commitToHistory: true;
307
- } | {
308
- elements: import("../element/types").ExcalidrawElement[];
309
- appState: {
310
- activeTool: {
311
- lastActiveTool: import("../types").LastActiveTool;
312
- locked: boolean;
313
- } & ({
314
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
315
- customType: null;
316
- } | {
317
- type: "custom";
318
- customType: string;
319
- });
320
- multiElement: null;
321
- selectedElementIds: {};
322
- contextMenu: {
323
- items: import("../components/ContextMenu").ContextMenuItems;
324
- top: number;
325
- left: number;
326
- } | null;
327
- showWelcomeScreen: boolean;
328
- isLoading: boolean;
329
- errorMessage: import("react").ReactNode;
330
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
331
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
332
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
333
- isBindingEnabled: boolean;
334
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
335
- suggestedBindings: import("../element/binding").SuggestedBinding[];
336
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
337
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
338
- penMode: boolean;
339
- penDetected: boolean;
340
- exportBackground: boolean;
341
- exportEmbedScene: boolean;
342
- exportWithDarkMode: boolean;
343
- exportScale: number;
344
- currentItemStrokeColor: string;
345
- currentItemBackgroundColor: string;
346
- currentItemFillStyle: import("../element/types").FillStyle;
347
- currentItemStrokeWidth: number;
348
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
349
- currentItemRoughness: number;
350
- currentItemOpacity: number;
351
- currentItemFontFamily: number;
352
- currentItemFontSize: number;
353
- currentItemTextAlign: string;
354
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
355
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
356
- currentItemRoundness: import("../element/types").StrokeRoundness;
357
- viewBackgroundColor: string;
358
- scrollX: number;
359
- scrollY: number;
360
- cursorButton: "up" | "down";
361
- scrolledOutside: boolean;
362
- name: string;
363
- isResizing: boolean;
364
- isRotating: boolean;
365
- zoom: Readonly<{
366
- value: import("../types").NormalizedZoomValue;
367
- }>;
368
- openMenu: "canvas" | "shape" | null;
369
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
370
- openSidebar: "library" | "customSidebar" | null;
371
- openDialog: "imageExport" | "help" | "jsonExport" | null;
372
- isSidebarDocked: boolean;
373
- lastPointerDownWith: import("../element/types").PointerType;
374
- previousSelectedElementIds: {
375
- [id: string]: boolean;
376
- };
377
- shouldCacheIgnoreZoom: boolean;
378
- toast: {
379
- message: string;
380
- closable?: boolean | undefined;
381
- duration?: number | undefined;
382
- } | null;
383
- zenModeEnabled: boolean;
384
- theme: string;
385
- gridSize: number | null;
386
- previousGridSize: number | null;
387
- viewModeEnabled: boolean;
388
- selectedGroupIds: {
389
- [groupId: string]: boolean;
390
- };
391
- editingGroupId: string | null;
392
- width: number;
393
- height: number;
394
- offsetTop: number;
395
- offsetLeft: number;
396
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
397
- collaborators: Map<string, import("../types").Collaborator>;
398
- showStats: boolean;
399
- currentChartType: import("../element/types").ChartType;
400
- pasteDialog: {
401
- shown: false;
402
- data: null;
403
- } | {
404
- shown: true;
405
- data: import("../charts").Spreadsheet;
406
- };
407
- pendingImageElementId: string | null;
408
- showHyperlinkPopup: false | "info" | "editor";
409
- linkOpacity: number;
410
- trayModeEnabled: boolean;
411
- colorPalette: {
412
- canvasBackground?: string[] | undefined;
413
- elementBackground?: string[] | undefined;
414
- elementStroke?: string[] | undefined;
415
- };
416
- allowWheelZoom?: boolean | undefined;
417
- allowPinchZoom?: boolean | undefined;
418
- pinnedScripts?: string[] | undefined;
419
- customPens?: any[] | undefined;
420
- currentStrokeOptions?: any;
421
- resetCustomPen?: any;
422
- gridColor: string;
423
- dynamicStyle: string;
424
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
425
- };
426
- commitToHistory: boolean;
427
- };
428
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
429
- contextItemLabel: string;
430
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
431
- } & {
432
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
433
- };
434
- export declare const actionCopyAsSvg: {
435
- name: "copyAsSvg";
436
- trackEvent: {
437
- category: "element";
438
- };
439
- perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
440
- commitToHistory: false;
441
- appState?: undefined;
442
- } | {
443
- appState: {
444
- errorMessage: any;
445
- contextMenu: {
446
- items: import("../components/ContextMenu").ContextMenuItems;
447
- top: number;
448
- left: number;
449
- } | null;
450
- showWelcomeScreen: boolean;
451
- isLoading: boolean;
452
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
453
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
454
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
455
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
456
- isBindingEnabled: boolean;
457
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
458
- suggestedBindings: import("../element/binding").SuggestedBinding[];
459
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
460
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
461
- activeTool: {
462
- lastActiveTool: import("../types").LastActiveTool;
463
- locked: boolean;
464
- } & ({
465
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
466
- customType: null;
467
- } | {
468
- type: "custom";
469
- customType: string;
470
- });
471
- penMode: boolean;
472
- penDetected: boolean;
473
- exportBackground: boolean;
474
- exportEmbedScene: boolean;
475
- exportWithDarkMode: boolean;
476
- exportScale: number;
477
- currentItemStrokeColor: string;
478
- currentItemBackgroundColor: string;
479
- currentItemFillStyle: import("../element/types").FillStyle;
480
- currentItemStrokeWidth: number;
481
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
482
- currentItemRoughness: number;
483
- currentItemOpacity: number;
484
- currentItemFontFamily: number;
485
- currentItemFontSize: number;
486
- currentItemTextAlign: string;
487
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
488
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
489
- currentItemRoundness: import("../element/types").StrokeRoundness;
490
- viewBackgroundColor: string;
491
- scrollX: number;
492
- scrollY: number;
493
- cursorButton: "up" | "down";
494
- scrolledOutside: boolean;
495
- name: string;
496
- isResizing: boolean;
497
- isRotating: boolean;
498
- zoom: Readonly<{
499
- value: import("../types").NormalizedZoomValue;
500
- }>;
501
- openMenu: "canvas" | "shape" | null;
502
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
503
- openSidebar: "library" | "customSidebar" | null;
504
- openDialog: "imageExport" | "help" | "jsonExport" | null;
505
- isSidebarDocked: boolean;
506
- lastPointerDownWith: import("../element/types").PointerType;
507
- selectedElementIds: {
508
- [id: string]: boolean;
509
- };
510
- previousSelectedElementIds: {
511
- [id: string]: boolean;
512
- };
513
- shouldCacheIgnoreZoom: boolean;
514
- toast: {
515
- message: string;
516
- closable?: boolean | undefined;
517
- duration?: number | undefined;
518
- } | null;
519
- zenModeEnabled: boolean;
520
- theme: string;
521
- gridSize: number | null;
522
- previousGridSize: number | null;
523
- viewModeEnabled: boolean;
524
- selectedGroupIds: {
525
- [groupId: string]: boolean;
526
- };
527
- editingGroupId: string | null;
528
- width: number;
529
- height: number;
530
- offsetTop: number;
531
- offsetLeft: number;
532
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
533
- collaborators: Map<string, import("../types").Collaborator>;
534
- showStats: boolean;
535
- currentChartType: import("../element/types").ChartType;
536
- pasteDialog: {
537
- shown: false;
538
- data: null;
539
- } | {
540
- shown: true;
541
- data: import("../charts").Spreadsheet;
542
- };
543
- pendingImageElementId: string | null;
544
- showHyperlinkPopup: false | "info" | "editor";
545
- linkOpacity: number;
546
- trayModeEnabled: boolean;
547
- colorPalette: {
548
- canvasBackground?: string[] | undefined;
549
- elementBackground?: string[] | undefined;
550
- elementStroke?: string[] | undefined;
551
- };
552
- allowWheelZoom?: boolean | undefined;
553
- allowPinchZoom?: boolean | undefined;
554
- pinnedScripts?: string[] | undefined;
555
- customPens?: any[] | undefined;
556
- currentStrokeOptions?: any;
557
- resetCustomPen?: any;
558
- gridColor: string;
559
- dynamicStyle: string;
560
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
561
- };
562
- commitToHistory: false;
563
- }>;
564
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
565
- contextItemLabel: string;
566
- } & {
567
- keyTest?: undefined;
568
- };
569
- export declare const actionCopyAsPng: {
570
- name: "copyAsPng";
571
- trackEvent: {
572
- category: "element";
573
- };
574
- perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
575
- commitToHistory: false;
576
- appState?: undefined;
577
- } | {
578
- appState: {
579
- errorMessage: any;
580
- contextMenu: {
581
- items: import("../components/ContextMenu").ContextMenuItems;
582
- top: number;
583
- left: number;
584
- } | null;
585
- showWelcomeScreen: boolean;
586
- isLoading: boolean;
587
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
588
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
589
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
590
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
591
- isBindingEnabled: boolean;
592
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
593
- suggestedBindings: import("../element/binding").SuggestedBinding[];
594
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
595
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
596
- activeTool: {
597
- lastActiveTool: import("../types").LastActiveTool;
598
- locked: boolean;
599
- } & ({
600
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
601
- customType: null;
602
- } | {
603
- type: "custom";
604
- customType: string;
605
- });
606
- penMode: boolean;
607
- penDetected: boolean;
608
- exportBackground: boolean;
609
- exportEmbedScene: boolean;
610
- exportWithDarkMode: boolean;
611
- exportScale: number;
612
- currentItemStrokeColor: string;
613
- currentItemBackgroundColor: string;
614
- currentItemFillStyle: import("../element/types").FillStyle;
615
- currentItemStrokeWidth: number;
616
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
617
- currentItemRoughness: number;
618
- currentItemOpacity: number;
619
- currentItemFontFamily: number;
620
- currentItemFontSize: number;
621
- currentItemTextAlign: string;
622
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
623
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
624
- currentItemRoundness: import("../element/types").StrokeRoundness;
625
- viewBackgroundColor: string;
626
- scrollX: number;
627
- scrollY: number;
628
- cursorButton: "up" | "down";
629
- scrolledOutside: boolean;
630
- name: string;
631
- isResizing: boolean;
632
- isRotating: boolean;
633
- zoom: Readonly<{
634
- value: import("../types").NormalizedZoomValue;
635
- }>;
636
- openMenu: "canvas" | "shape" | null;
637
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
638
- openSidebar: "library" | "customSidebar" | null;
639
- openDialog: "imageExport" | "help" | "jsonExport" | null;
640
- isSidebarDocked: boolean;
641
- lastPointerDownWith: import("../element/types").PointerType;
642
- selectedElementIds: {
643
- [id: string]: boolean;
644
- };
645
- previousSelectedElementIds: {
646
- [id: string]: boolean;
647
- };
648
- shouldCacheIgnoreZoom: boolean;
649
- toast: {
650
- message: string;
651
- closable?: boolean | undefined;
652
- duration?: number | undefined;
653
- } | null;
654
- zenModeEnabled: boolean;
655
- theme: string;
656
- gridSize: number | null;
657
- previousGridSize: number | null;
658
- viewModeEnabled: boolean;
659
- selectedGroupIds: {
660
- [groupId: string]: boolean;
661
- };
662
- editingGroupId: string | null;
663
- width: number;
664
- height: number;
665
- offsetTop: number;
666
- offsetLeft: number;
667
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
668
- collaborators: Map<string, import("../types").Collaborator>;
669
- showStats: boolean;
670
- currentChartType: import("../element/types").ChartType;
671
- pasteDialog: {
672
- shown: false;
673
- data: null;
674
- } | {
675
- shown: true;
676
- data: import("../charts").Spreadsheet;
677
- };
678
- pendingImageElementId: string | null;
679
- showHyperlinkPopup: false | "info" | "editor";
680
- linkOpacity: number;
681
- trayModeEnabled: boolean;
682
- colorPalette: {
683
- canvasBackground?: string[] | undefined;
684
- elementBackground?: string[] | undefined;
685
- elementStroke?: string[] | undefined;
686
- };
687
- allowWheelZoom?: boolean | undefined;
688
- allowPinchZoom?: boolean | undefined;
689
- pinnedScripts?: string[] | undefined;
690
- customPens?: any[] | undefined;
691
- currentStrokeOptions?: any;
692
- resetCustomPen?: any;
693
- gridColor: string;
694
- dynamicStyle: string;
695
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
696
- };
697
- commitToHistory: false;
698
- }>;
699
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
700
- contextItemLabel: string;
701
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
702
- } & {
703
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
704
- };
705
- export declare const copyText: {
706
- name: "copyText";
707
- trackEvent: {
708
- category: "element";
709
- };
710
- perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
711
- commitToHistory: false;
712
- };
713
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
714
- contextItemLabel: string;
715
- } & {
716
- keyTest?: undefined;
717
- };
1
+ /// <reference types="react" />
2
+ export declare const actionCopy: {
3
+ name: "copy";
4
+ trackEvent: {
5
+ category: "element";
6
+ };
7
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
8
+ commitToHistory: false;
9
+ };
10
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => true;
11
+ contextItemLabel: string;
12
+ keyTest: undefined;
13
+ } & {
14
+ keyTest?: undefined;
15
+ };
16
+ export declare const actionPaste: {
17
+ name: "paste";
18
+ trackEvent: {
19
+ category: "element";
20
+ };
21
+ perform: (elements: any, appStates: any, data: any, app: import("../types").AppClassProperties) => {
22
+ commitToHistory: false;
23
+ };
24
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => true;
25
+ contextItemLabel: string;
26
+ keyTest: undefined;
27
+ } & {
28
+ keyTest?: undefined;
29
+ };
30
+ export declare const actionCut: {
31
+ name: "cut";
32
+ trackEvent: {
33
+ category: "element";
34
+ };
35
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => false | {
36
+ elements: import("../element/types").ExcalidrawElement[];
37
+ appState: {
38
+ editingLinearElement: null;
39
+ contextMenu: {
40
+ items: import("../components/ContextMenu").ContextMenuItems;
41
+ top: number;
42
+ left: number;
43
+ } | null;
44
+ showWelcomeScreen: boolean;
45
+ isLoading: boolean;
46
+ errorMessage: import("react").ReactNode;
47
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
48
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
49
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
50
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
51
+ isBindingEnabled: boolean;
52
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
53
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
54
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
55
+ activeTool: {
56
+ lastActiveTool: import("../types").LastActiveTool;
57
+ locked: boolean;
58
+ } & ({
59
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
60
+ customType: null;
61
+ } | {
62
+ type: "custom";
63
+ customType: string;
64
+ });
65
+ penMode: boolean;
66
+ penDetected: boolean;
67
+ exportBackground: boolean;
68
+ exportEmbedScene: boolean;
69
+ exportWithDarkMode: boolean;
70
+ exportScale: number;
71
+ currentItemStrokeColor: string;
72
+ currentItemBackgroundColor: string;
73
+ currentItemFillStyle: import("../element/types").FillStyle;
74
+ currentItemStrokeWidth: number;
75
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
76
+ currentItemRoughness: number;
77
+ currentItemOpacity: number;
78
+ currentItemFontFamily: number;
79
+ currentItemFontSize: number;
80
+ currentItemTextAlign: string;
81
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
82
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
83
+ currentItemRoundness: import("../element/types").StrokeRoundness;
84
+ viewBackgroundColor: string;
85
+ scrollX: number;
86
+ scrollY: number;
87
+ cursorButton: "up" | "down";
88
+ scrolledOutside: boolean;
89
+ name: string;
90
+ isResizing: boolean;
91
+ isRotating: boolean;
92
+ zoom: Readonly<{
93
+ value: import("../types").NormalizedZoomValue;
94
+ }>;
95
+ openMenu: "canvas" | "shape" | null;
96
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
97
+ openSidebar: "library" | "customSidebar" | null;
98
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
99
+ isSidebarDocked: boolean;
100
+ lastPointerDownWith: import("../element/types").PointerType;
101
+ selectedElementIds: {
102
+ [id: string]: boolean;
103
+ };
104
+ previousSelectedElementIds: {
105
+ [id: string]: boolean;
106
+ };
107
+ shouldCacheIgnoreZoom: boolean;
108
+ toast: {
109
+ message: string;
110
+ closable?: boolean | undefined;
111
+ duration?: number | undefined;
112
+ } | null;
113
+ zenModeEnabled: boolean;
114
+ theme: string;
115
+ gridSize: number | null;
116
+ previousGridSize: number | null;
117
+ viewModeEnabled: boolean;
118
+ selectedGroupIds: {
119
+ [groupId: string]: boolean;
120
+ };
121
+ editingGroupId: string | null;
122
+ width: number;
123
+ height: number;
124
+ offsetTop: number;
125
+ offsetLeft: number;
126
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
127
+ collaborators: Map<string, import("../types").Collaborator>;
128
+ showStats: boolean;
129
+ currentChartType: import("../element/types").ChartType;
130
+ pasteDialog: {
131
+ shown: false;
132
+ data: null;
133
+ } | {
134
+ shown: true;
135
+ data: import("../charts").Spreadsheet;
136
+ };
137
+ pendingImageElementId: string | null;
138
+ showHyperlinkPopup: false | "info" | "editor";
139
+ linkOpacity: number;
140
+ trayModeEnabled: boolean;
141
+ colorPalette: {
142
+ canvasBackground?: string[] | undefined;
143
+ elementBackground?: string[] | undefined;
144
+ elementStroke?: string[] | undefined;
145
+ };
146
+ allowWheelZoom?: boolean | undefined;
147
+ allowPinchZoom?: boolean | undefined;
148
+ pinnedScripts?: string[] | undefined;
149
+ customPens?: any[] | undefined;
150
+ currentStrokeOptions?: any;
151
+ resetCustomPen?: any;
152
+ gridColor: string;
153
+ dynamicStyle: string;
154
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
155
+ };
156
+ commitToHistory: false;
157
+ } | {
158
+ elements: readonly import("../element/types").ExcalidrawElement[];
159
+ appState: {
160
+ editingLinearElement: {
161
+ selectedPointsIndices: number[];
162
+ startBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
163
+ endBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
164
+ elementId: string & {
165
+ _brand: "excalidrawLinearElementId";
166
+ };
167
+ pointerDownState: Readonly<{
168
+ prevSelectedPointsIndices: readonly number[] | null;
169
+ lastClickedPoint: number;
170
+ origin: Readonly<{
171
+ x: number;
172
+ y: number;
173
+ }> | null;
174
+ segmentMidpoint: {
175
+ value: readonly [number, number] | null;
176
+ index: number | null;
177
+ added: boolean;
178
+ };
179
+ }>;
180
+ isDragging: boolean;
181
+ lastUncommittedPoint: readonly [number, number] | null;
182
+ pointerOffset: Readonly<{
183
+ x: number;
184
+ y: number;
185
+ }>;
186
+ hoverPointIndex: number;
187
+ segmentMidPointHoveredCoords: readonly [number, number] | null;
188
+ };
189
+ contextMenu: {
190
+ items: import("../components/ContextMenu").ContextMenuItems;
191
+ top: number;
192
+ left: number;
193
+ } | null;
194
+ showWelcomeScreen: boolean;
195
+ isLoading: boolean;
196
+ errorMessage: import("react").ReactNode;
197
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
198
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
199
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
200
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
201
+ isBindingEnabled: boolean;
202
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
203
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
204
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
205
+ activeTool: {
206
+ lastActiveTool: import("../types").LastActiveTool;
207
+ locked: boolean;
208
+ } & ({
209
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
210
+ customType: null;
211
+ } | {
212
+ type: "custom";
213
+ customType: string;
214
+ });
215
+ penMode: boolean;
216
+ penDetected: boolean;
217
+ exportBackground: boolean;
218
+ exportEmbedScene: boolean;
219
+ exportWithDarkMode: boolean;
220
+ exportScale: number;
221
+ currentItemStrokeColor: string;
222
+ currentItemBackgroundColor: string;
223
+ currentItemFillStyle: import("../element/types").FillStyle;
224
+ currentItemStrokeWidth: number;
225
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
226
+ currentItemRoughness: number;
227
+ currentItemOpacity: number;
228
+ currentItemFontFamily: number;
229
+ currentItemFontSize: number;
230
+ currentItemTextAlign: string;
231
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
232
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
233
+ currentItemRoundness: import("../element/types").StrokeRoundness;
234
+ viewBackgroundColor: string;
235
+ scrollX: number;
236
+ scrollY: number;
237
+ cursorButton: "up" | "down";
238
+ scrolledOutside: boolean;
239
+ name: string;
240
+ isResizing: boolean;
241
+ isRotating: boolean;
242
+ zoom: Readonly<{
243
+ value: import("../types").NormalizedZoomValue;
244
+ }>;
245
+ openMenu: "canvas" | "shape" | null;
246
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
247
+ openSidebar: "library" | "customSidebar" | null;
248
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
249
+ isSidebarDocked: boolean;
250
+ lastPointerDownWith: import("../element/types").PointerType;
251
+ selectedElementIds: {
252
+ [id: string]: boolean;
253
+ };
254
+ previousSelectedElementIds: {
255
+ [id: string]: boolean;
256
+ };
257
+ shouldCacheIgnoreZoom: boolean;
258
+ toast: {
259
+ message: string;
260
+ closable?: boolean | undefined;
261
+ duration?: number | undefined;
262
+ } | null;
263
+ zenModeEnabled: boolean;
264
+ theme: string;
265
+ gridSize: number | null;
266
+ previousGridSize: number | null;
267
+ viewModeEnabled: boolean;
268
+ selectedGroupIds: {
269
+ [groupId: string]: boolean;
270
+ };
271
+ editingGroupId: string | null;
272
+ width: number;
273
+ height: number;
274
+ offsetTop: number;
275
+ offsetLeft: number;
276
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
277
+ collaborators: Map<string, import("../types").Collaborator>;
278
+ showStats: boolean;
279
+ currentChartType: import("../element/types").ChartType;
280
+ pasteDialog: {
281
+ shown: false;
282
+ data: null;
283
+ } | {
284
+ shown: true;
285
+ data: import("../charts").Spreadsheet;
286
+ };
287
+ pendingImageElementId: string | null;
288
+ showHyperlinkPopup: false | "info" | "editor";
289
+ linkOpacity: number;
290
+ trayModeEnabled: boolean;
291
+ colorPalette: {
292
+ canvasBackground?: string[] | undefined;
293
+ elementBackground?: string[] | undefined;
294
+ elementStroke?: string[] | undefined;
295
+ };
296
+ allowWheelZoom?: boolean | undefined;
297
+ allowPinchZoom?: boolean | undefined;
298
+ pinnedScripts?: string[] | undefined;
299
+ customPens?: any[] | undefined;
300
+ currentStrokeOptions?: any;
301
+ resetCustomPen?: any;
302
+ gridColor: string;
303
+ dynamicStyle: string;
304
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
305
+ };
306
+ commitToHistory: true;
307
+ } | {
308
+ elements: import("../element/types").ExcalidrawElement[];
309
+ appState: {
310
+ activeTool: {
311
+ lastActiveTool: import("../types").LastActiveTool;
312
+ locked: boolean;
313
+ } & ({
314
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
315
+ customType: null;
316
+ } | {
317
+ type: "custom";
318
+ customType: string;
319
+ });
320
+ multiElement: null;
321
+ selectedElementIds: {};
322
+ contextMenu: {
323
+ items: import("../components/ContextMenu").ContextMenuItems;
324
+ top: number;
325
+ left: number;
326
+ } | null;
327
+ showWelcomeScreen: boolean;
328
+ isLoading: boolean;
329
+ errorMessage: import("react").ReactNode;
330
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
331
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
332
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
333
+ isBindingEnabled: boolean;
334
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
335
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
336
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
337
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
338
+ penMode: boolean;
339
+ penDetected: boolean;
340
+ exportBackground: boolean;
341
+ exportEmbedScene: boolean;
342
+ exportWithDarkMode: boolean;
343
+ exportScale: number;
344
+ currentItemStrokeColor: string;
345
+ currentItemBackgroundColor: string;
346
+ currentItemFillStyle: import("../element/types").FillStyle;
347
+ currentItemStrokeWidth: number;
348
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
349
+ currentItemRoughness: number;
350
+ currentItemOpacity: number;
351
+ currentItemFontFamily: number;
352
+ currentItemFontSize: number;
353
+ currentItemTextAlign: string;
354
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
355
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
356
+ currentItemRoundness: import("../element/types").StrokeRoundness;
357
+ viewBackgroundColor: string;
358
+ scrollX: number;
359
+ scrollY: number;
360
+ cursorButton: "up" | "down";
361
+ scrolledOutside: boolean;
362
+ name: string;
363
+ isResizing: boolean;
364
+ isRotating: boolean;
365
+ zoom: Readonly<{
366
+ value: import("../types").NormalizedZoomValue;
367
+ }>;
368
+ openMenu: "canvas" | "shape" | null;
369
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
370
+ openSidebar: "library" | "customSidebar" | null;
371
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
372
+ isSidebarDocked: boolean;
373
+ lastPointerDownWith: import("../element/types").PointerType;
374
+ previousSelectedElementIds: {
375
+ [id: string]: boolean;
376
+ };
377
+ shouldCacheIgnoreZoom: boolean;
378
+ toast: {
379
+ message: string;
380
+ closable?: boolean | undefined;
381
+ duration?: number | undefined;
382
+ } | null;
383
+ zenModeEnabled: boolean;
384
+ theme: string;
385
+ gridSize: number | null;
386
+ previousGridSize: number | null;
387
+ viewModeEnabled: boolean;
388
+ selectedGroupIds: {
389
+ [groupId: string]: boolean;
390
+ };
391
+ editingGroupId: string | null;
392
+ width: number;
393
+ height: number;
394
+ offsetTop: number;
395
+ offsetLeft: number;
396
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
397
+ collaborators: Map<string, import("../types").Collaborator>;
398
+ showStats: boolean;
399
+ currentChartType: import("../element/types").ChartType;
400
+ pasteDialog: {
401
+ shown: false;
402
+ data: null;
403
+ } | {
404
+ shown: true;
405
+ data: import("../charts").Spreadsheet;
406
+ };
407
+ pendingImageElementId: string | null;
408
+ showHyperlinkPopup: false | "info" | "editor";
409
+ linkOpacity: number;
410
+ trayModeEnabled: boolean;
411
+ colorPalette: {
412
+ canvasBackground?: string[] | undefined;
413
+ elementBackground?: string[] | undefined;
414
+ elementStroke?: string[] | undefined;
415
+ };
416
+ allowWheelZoom?: boolean | undefined;
417
+ allowPinchZoom?: boolean | undefined;
418
+ pinnedScripts?: string[] | undefined;
419
+ customPens?: any[] | undefined;
420
+ currentStrokeOptions?: any;
421
+ resetCustomPen?: any;
422
+ gridColor: string;
423
+ dynamicStyle: string;
424
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
425
+ };
426
+ commitToHistory: boolean;
427
+ };
428
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
429
+ contextItemLabel: string;
430
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
431
+ } & {
432
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
433
+ };
434
+ export declare const actionCopyAsSvg: {
435
+ name: "copyAsSvg";
436
+ trackEvent: {
437
+ category: "element";
438
+ };
439
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
440
+ commitToHistory: false;
441
+ appState?: undefined;
442
+ } | {
443
+ appState: {
444
+ errorMessage: any;
445
+ contextMenu: {
446
+ items: import("../components/ContextMenu").ContextMenuItems;
447
+ top: number;
448
+ left: number;
449
+ } | null;
450
+ showWelcomeScreen: boolean;
451
+ isLoading: boolean;
452
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
453
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
454
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
455
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
456
+ isBindingEnabled: boolean;
457
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
458
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
459
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
460
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
461
+ activeTool: {
462
+ lastActiveTool: import("../types").LastActiveTool;
463
+ locked: boolean;
464
+ } & ({
465
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
466
+ customType: null;
467
+ } | {
468
+ type: "custom";
469
+ customType: string;
470
+ });
471
+ penMode: boolean;
472
+ penDetected: boolean;
473
+ exportBackground: boolean;
474
+ exportEmbedScene: boolean;
475
+ exportWithDarkMode: boolean;
476
+ exportScale: number;
477
+ currentItemStrokeColor: string;
478
+ currentItemBackgroundColor: string;
479
+ currentItemFillStyle: import("../element/types").FillStyle;
480
+ currentItemStrokeWidth: number;
481
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
482
+ currentItemRoughness: number;
483
+ currentItemOpacity: number;
484
+ currentItemFontFamily: number;
485
+ currentItemFontSize: number;
486
+ currentItemTextAlign: string;
487
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
488
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
489
+ currentItemRoundness: import("../element/types").StrokeRoundness;
490
+ viewBackgroundColor: string;
491
+ scrollX: number;
492
+ scrollY: number;
493
+ cursorButton: "up" | "down";
494
+ scrolledOutside: boolean;
495
+ name: string;
496
+ isResizing: boolean;
497
+ isRotating: boolean;
498
+ zoom: Readonly<{
499
+ value: import("../types").NormalizedZoomValue;
500
+ }>;
501
+ openMenu: "canvas" | "shape" | null;
502
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
503
+ openSidebar: "library" | "customSidebar" | null;
504
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
505
+ isSidebarDocked: boolean;
506
+ lastPointerDownWith: import("../element/types").PointerType;
507
+ selectedElementIds: {
508
+ [id: string]: boolean;
509
+ };
510
+ previousSelectedElementIds: {
511
+ [id: string]: boolean;
512
+ };
513
+ shouldCacheIgnoreZoom: boolean;
514
+ toast: {
515
+ message: string;
516
+ closable?: boolean | undefined;
517
+ duration?: number | undefined;
518
+ } | null;
519
+ zenModeEnabled: boolean;
520
+ theme: string;
521
+ gridSize: number | null;
522
+ previousGridSize: number | null;
523
+ viewModeEnabled: boolean;
524
+ selectedGroupIds: {
525
+ [groupId: string]: boolean;
526
+ };
527
+ editingGroupId: string | null;
528
+ width: number;
529
+ height: number;
530
+ offsetTop: number;
531
+ offsetLeft: number;
532
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
533
+ collaborators: Map<string, import("../types").Collaborator>;
534
+ showStats: boolean;
535
+ currentChartType: import("../element/types").ChartType;
536
+ pasteDialog: {
537
+ shown: false;
538
+ data: null;
539
+ } | {
540
+ shown: true;
541
+ data: import("../charts").Spreadsheet;
542
+ };
543
+ pendingImageElementId: string | null;
544
+ showHyperlinkPopup: false | "info" | "editor";
545
+ linkOpacity: number;
546
+ trayModeEnabled: boolean;
547
+ colorPalette: {
548
+ canvasBackground?: string[] | undefined;
549
+ elementBackground?: string[] | undefined;
550
+ elementStroke?: string[] | undefined;
551
+ };
552
+ allowWheelZoom?: boolean | undefined;
553
+ allowPinchZoom?: boolean | undefined;
554
+ pinnedScripts?: string[] | undefined;
555
+ customPens?: any[] | undefined;
556
+ currentStrokeOptions?: any;
557
+ resetCustomPen?: any;
558
+ gridColor: string;
559
+ dynamicStyle: string;
560
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
561
+ };
562
+ commitToHistory: false;
563
+ }>;
564
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
565
+ contextItemLabel: string;
566
+ } & {
567
+ keyTest?: undefined;
568
+ };
569
+ export declare const actionCopyAsPng: {
570
+ name: "copyAsPng";
571
+ trackEvent: {
572
+ category: "element";
573
+ };
574
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
575
+ commitToHistory: false;
576
+ appState?: undefined;
577
+ } | {
578
+ appState: {
579
+ errorMessage: any;
580
+ contextMenu: {
581
+ items: import("../components/ContextMenu").ContextMenuItems;
582
+ top: number;
583
+ left: number;
584
+ } | null;
585
+ showWelcomeScreen: boolean;
586
+ isLoading: boolean;
587
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
588
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
589
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
590
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
591
+ isBindingEnabled: boolean;
592
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
593
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
594
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
595
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
596
+ activeTool: {
597
+ lastActiveTool: import("../types").LastActiveTool;
598
+ locked: boolean;
599
+ } & ({
600
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
601
+ customType: null;
602
+ } | {
603
+ type: "custom";
604
+ customType: string;
605
+ });
606
+ penMode: boolean;
607
+ penDetected: boolean;
608
+ exportBackground: boolean;
609
+ exportEmbedScene: boolean;
610
+ exportWithDarkMode: boolean;
611
+ exportScale: number;
612
+ currentItemStrokeColor: string;
613
+ currentItemBackgroundColor: string;
614
+ currentItemFillStyle: import("../element/types").FillStyle;
615
+ currentItemStrokeWidth: number;
616
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
617
+ currentItemRoughness: number;
618
+ currentItemOpacity: number;
619
+ currentItemFontFamily: number;
620
+ currentItemFontSize: number;
621
+ currentItemTextAlign: string;
622
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
623
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
624
+ currentItemRoundness: import("../element/types").StrokeRoundness;
625
+ viewBackgroundColor: string;
626
+ scrollX: number;
627
+ scrollY: number;
628
+ cursorButton: "up" | "down";
629
+ scrolledOutside: boolean;
630
+ name: string;
631
+ isResizing: boolean;
632
+ isRotating: boolean;
633
+ zoom: Readonly<{
634
+ value: import("../types").NormalizedZoomValue;
635
+ }>;
636
+ openMenu: "canvas" | "shape" | null;
637
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
638
+ openSidebar: "library" | "customSidebar" | null;
639
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
640
+ isSidebarDocked: boolean;
641
+ lastPointerDownWith: import("../element/types").PointerType;
642
+ selectedElementIds: {
643
+ [id: string]: boolean;
644
+ };
645
+ previousSelectedElementIds: {
646
+ [id: string]: boolean;
647
+ };
648
+ shouldCacheIgnoreZoom: boolean;
649
+ toast: {
650
+ message: string;
651
+ closable?: boolean | undefined;
652
+ duration?: number | undefined;
653
+ } | null;
654
+ zenModeEnabled: boolean;
655
+ theme: string;
656
+ gridSize: number | null;
657
+ previousGridSize: number | null;
658
+ viewModeEnabled: boolean;
659
+ selectedGroupIds: {
660
+ [groupId: string]: boolean;
661
+ };
662
+ editingGroupId: string | null;
663
+ width: number;
664
+ height: number;
665
+ offsetTop: number;
666
+ offsetLeft: number;
667
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
668
+ collaborators: Map<string, import("../types").Collaborator>;
669
+ showStats: boolean;
670
+ currentChartType: import("../element/types").ChartType;
671
+ pasteDialog: {
672
+ shown: false;
673
+ data: null;
674
+ } | {
675
+ shown: true;
676
+ data: import("../charts").Spreadsheet;
677
+ };
678
+ pendingImageElementId: string | null;
679
+ showHyperlinkPopup: false | "info" | "editor";
680
+ linkOpacity: number;
681
+ trayModeEnabled: boolean;
682
+ colorPalette: {
683
+ canvasBackground?: string[] | undefined;
684
+ elementBackground?: string[] | undefined;
685
+ elementStroke?: string[] | undefined;
686
+ };
687
+ allowWheelZoom?: boolean | undefined;
688
+ allowPinchZoom?: boolean | undefined;
689
+ pinnedScripts?: string[] | undefined;
690
+ customPens?: any[] | undefined;
691
+ currentStrokeOptions?: any;
692
+ resetCustomPen?: any;
693
+ gridColor: string;
694
+ dynamicStyle: string;
695
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
696
+ };
697
+ commitToHistory: false;
698
+ }>;
699
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
700
+ contextItemLabel: string;
701
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
702
+ } & {
703
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
704
+ };
705
+ export declare const copyText: {
706
+ name: "copyText";
707
+ trackEvent: {
708
+ category: "element";
709
+ };
710
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
711
+ commitToHistory: false;
712
+ };
713
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
714
+ contextItemLabel: string;
715
+ } & {
716
+ keyTest?: undefined;
717
+ };