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

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