@zsviczian/excalidraw 0.15.2-obsidian-10 → 0.15.2-obsidian-12

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 (280) hide show
  1. package/dist/excalidraw.development.js +1710 -1849
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +2 -1
  4. package/types/actions/actionAddToLibrary.d.ts +440 -441
  5. package/types/actions/actionAlign.d.ts +96 -97
  6. package/types/actions/actionBoundText.d.ts +330 -331
  7. package/types/actions/actionCanvas.d.ts +1844 -1845
  8. package/types/actions/actionClipboard.d.ts +828 -829
  9. package/types/actions/actionDeleteSelected.d.ts +474 -475
  10. package/types/actions/actionDistribute.d.ts +32 -33
  11. package/types/actions/actionDuplicateSelection.d.ts +21 -22
  12. package/types/actions/actionElementLock.d.ts +315 -316
  13. package/types/actions/actionExport.d.ts +1388 -1389
  14. package/types/actions/actionFinalize.d.ts +298 -299
  15. package/types/actions/actionFlip.d.ts +32 -33
  16. package/types/actions/actionFrame.d.ts +489 -490
  17. package/types/actions/actionGroup.d.ts +44 -45
  18. package/types/actions/actionHistory.d.ts +6 -6
  19. package/types/actions/actionLinearEditor.d.ts +157 -158
  20. package/types/actions/actionMenu.d.ts +478 -479
  21. package/types/actions/actionNavigate.d.ts +14 -14
  22. package/types/actions/actionProperties.d.ts +2012 -2013
  23. package/types/actions/actionSelectAll.d.ts +15 -16
  24. package/types/actions/actionStyles.d.ts +171 -172
  25. package/types/actions/actionToggleGridMode.d.ts +160 -161
  26. package/types/actions/actionToggleLock.d.ts +139 -135
  27. package/types/actions/actionToggleStats.d.ts +157 -158
  28. package/types/actions/actionToggleViewMode.d.ts +159 -160
  29. package/types/actions/actionToggleZenMode.d.ts +159 -160
  30. package/types/actions/actionZindex.d.ts +67 -67
  31. package/types/actions/index.d.ts +24 -24
  32. package/types/actions/manager.d.ts +21 -21
  33. package/types/actions/register.d.ts +5 -5
  34. package/types/actions/shortcuts.d.ts +4 -4
  35. package/types/actions/types.d.ts +45 -45
  36. package/types/align.d.ts +6 -6
  37. package/types/analytics.d.ts +1 -1
  38. package/types/appState.d.ts +81 -81
  39. package/types/bug-issue-template.d.ts +2 -0
  40. package/types/charts.d.ts +27 -27
  41. package/types/clients.d.ts +5 -5
  42. package/types/clipboard.d.ts +25 -25
  43. package/types/colors.d.ts +61 -61
  44. package/types/components/Actions.d.ts +36 -36
  45. package/types/components/ActiveConfirmDialog.d.ts +4 -4
  46. package/types/components/ActiveFile.d.ts +7 -0
  47. package/types/components/App.d.ts +288 -288
  48. package/types/components/Avatar.d.ts +10 -10
  49. package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +4 -0
  50. package/types/components/BraveMeasureTextError.d.ts +2 -2
  51. package/types/components/Button.d.ts +16 -17
  52. package/types/components/ButtonIconSelect.d.ts +19 -19
  53. package/types/components/Card.d.ts +6 -7
  54. package/types/components/CheckboxItem.d.ts +8 -8
  55. package/types/components/ClearCanvas.d.ts +4 -0
  56. package/types/components/CollabButton.d.ts +7 -0
  57. package/types/components/ColorPicker/ColorInput.d.ts +7 -7
  58. package/types/components/ColorPicker/ColorPicker.d.ts +19 -19
  59. package/types/components/ColorPicker/CustomColorList.d.ts +8 -8
  60. package/types/components/ColorPicker/HotkeyLabel.d.ts +8 -8
  61. package/types/components/ColorPicker/Picker.d.ts +18 -18
  62. package/types/components/ColorPicker/PickerColorList.d.ts +10 -10
  63. package/types/components/ColorPicker/PickerHeading.d.ts +5 -5
  64. package/types/components/ColorPicker/ShadeList.d.ts +8 -8
  65. package/types/components/ColorPicker/TopPicks.d.ts +9 -9
  66. package/types/components/ColorPicker/colorPickerUtils.d.ts +21 -21
  67. package/types/components/ColorPicker/keyboardNavHandlers.d.ts +20 -21
  68. package/types/components/ColorPicker.d.ts +19 -19
  69. package/types/components/ConfirmDialog.d.ts +10 -10
  70. package/types/components/ContextMenu.d.ts +15 -15
  71. package/types/components/DarkModeToggle.d.ts +7 -7
  72. package/types/components/DefaultSidebar.d.ts +29 -30
  73. package/types/components/Dialog.d.ts +13 -13
  74. package/types/components/DialogActionButton.d.ts +10 -10
  75. package/types/components/EncryptedIcon.d.ts +2 -0
  76. package/types/components/ErrorDialog.d.ts +5 -5
  77. package/types/components/EyeDropper.d.ts +17 -18
  78. package/types/components/FilledButton.d.ts +17 -17
  79. package/types/components/FixedSideContainer.d.ts +9 -9
  80. package/types/components/Footer.d.ts +10 -0
  81. package/types/components/HandButton.d.ts +10 -10
  82. package/types/components/HelpButton.d.ts +7 -7
  83. package/types/components/HelpDialog.d.ts +4 -4
  84. package/types/components/HelpIcon.d.ts +8 -0
  85. package/types/components/HintViewer.d.ts +10 -10
  86. package/types/components/IconPicker.d.ts +13 -13
  87. package/types/components/ImageExportDialog.d.ts +13 -13
  88. package/types/components/InitializeApp.d.ts +10 -10
  89. package/types/components/Island.d.ts +10 -10
  90. package/types/components/JSONExportDialog.d.ts +15 -15
  91. package/types/components/LayerUI.d.ts +32 -32
  92. package/types/components/LibraryButton.d.ts +8 -8
  93. package/types/components/LibraryMenu.d.ts +24 -24
  94. package/types/components/LibraryMenuBrowseButton.d.ts +7 -7
  95. package/types/components/LibraryMenuControlButtons.d.ts +9 -9
  96. package/types/components/LibraryMenuHeaderContent.d.ts +17 -18
  97. package/types/components/LibraryMenuItems.d.ts +14 -14
  98. package/types/components/LibraryMenuSection.d.ts +22 -22
  99. package/types/components/LibraryUnit.d.ts +14 -15
  100. package/types/components/LoadingMessage.d.ts +5 -6
  101. package/types/components/LockButton.d.ts +10 -10
  102. package/types/components/MenuItem.d.ts +11 -0
  103. package/types/components/MenuUtils.d.ts +2 -0
  104. package/types/components/MobileMenu.d.ts +27 -27
  105. package/types/components/Modal.d.ts +13 -13
  106. package/types/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -17
  107. package/types/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -17
  108. package/types/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -22
  109. package/types/components/PasteChartDialog.d.ts +8 -8
  110. package/types/components/PenModeButton.d.ts +12 -12
  111. package/types/components/Popover.d.ts +15 -15
  112. package/types/components/ProjectName.d.ts +11 -11
  113. package/types/components/PublishLibrary.d.ts +16 -16
  114. package/types/components/RadioGroup.d.ts +12 -12
  115. package/types/components/Section.d.ts +6 -6
  116. package/types/components/Sidebar/Sidebar.d.ts +76 -76
  117. package/types/components/Sidebar/SidebarHeader.d.ts +7 -7
  118. package/types/components/Sidebar/SidebarTab.d.ts +8 -9
  119. package/types/components/Sidebar/SidebarTabTrigger.d.ts +9 -10
  120. package/types/components/Sidebar/SidebarTabTriggers.d.ts +6 -7
  121. package/types/components/Sidebar/SidebarTabs.d.ts +6 -7
  122. package/types/components/Sidebar/SidebarTrigger.d.ts +6 -6
  123. package/types/components/Sidebar/common.d.ts +33 -33
  124. package/types/components/SidebarLockButton.d.ts +8 -0
  125. package/types/components/SingleLibraryItem.d.ts +10 -10
  126. package/types/components/Spinner.d.ts +7 -7
  127. package/types/components/Stack.d.ts +16 -16
  128. package/types/components/Stats.d.ts +11 -11
  129. package/types/components/Switch.d.ts +9 -9
  130. package/types/components/Toast.d.ts +7 -7
  131. package/types/components/ToolButton.d.ts +47 -47
  132. package/types/components/Tooltip.d.ts +17 -17
  133. package/types/components/TopErrorBoundary.d.ts +15 -0
  134. package/types/components/Trans.d.ts +9 -9
  135. package/types/components/UserList.d.ts +8 -8
  136. package/types/components/WelcomeScreen.d.ts +8 -0
  137. package/types/components/WelcomeScreenDecor.d.ts +6 -0
  138. package/types/components/context/tunnels.d.ts +16 -16
  139. package/types/components/dropdownMenu/DropdownMenu.d.ts +67 -67
  140. package/types/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
  141. package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  142. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -12
  143. package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +6 -6
  144. package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +6 -6
  145. package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +13 -13
  146. package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  147. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +10 -11
  148. package/types/components/dropdownMenu/common.d.ts +6 -6
  149. package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  150. package/types/components/footer/Footer.d.ts +12 -12
  151. package/types/components/footer/FooterCenter.d.ts +8 -8
  152. package/types/components/hoc/withInternalFallback.d.ts +4 -4
  153. package/types/components/hoc/withUpstreamOverride.d.ts +10 -10
  154. package/types/components/icons.d.ts +154 -154
  155. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +9 -10
  156. package/types/components/main-menu/DefaultItems.d.ts +44 -44
  157. package/types/components/main-menu/MainMenu.d.ts +61 -61
  158. package/types/components/mainMenu/DefaultItems.d.ts +44 -0
  159. package/types/components/mainMenu/MainMenu.d.ts +63 -0
  160. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +57 -58
  161. package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  162. package/types/components/welcome-screen/WelcomeScreen.d.ts +84 -85
  163. package/types/constants.d.ts +229 -226
  164. package/types/context/tunnels.d.ts +19 -19
  165. package/types/context/ui-appState.d.ts +4 -4
  166. package/types/data/blob.d.ts +48 -48
  167. package/types/data/encode.d.ts +53 -53
  168. package/types/data/encryption.d.ts +9 -9
  169. package/types/data/filesystem.d.ts +19 -19
  170. package/types/data/image.d.ts +15 -15
  171. package/types/data/index.d.ts +13 -13
  172. package/types/data/json.d.ts +16 -16
  173. package/types/data/library.d.ts +54 -54
  174. package/types/data/resave.d.ts +5 -5
  175. package/types/data/restore.d.ts +21 -21
  176. package/types/data/types.d.ts +45 -45
  177. package/types/data/url.d.ts +7 -7
  178. package/types/distribute.d.ts +6 -6
  179. package/types/element/Hyperlink.d.ts +181 -182
  180. package/types/element/binding.d.ts +33 -33
  181. package/types/element/bounds.d.ts +53 -53
  182. package/types/element/collision.d.ts +21 -21
  183. package/types/element/dragElements.d.ts +6 -6
  184. package/types/element/embeddable.d.ts +175 -176
  185. package/types/element/iframe.d.ts +167 -0
  186. package/types/element/image.d.ts +32 -32
  187. package/types/element/index.d.ts +21 -21
  188. package/types/element/linearElementEditor.d.ts +292 -293
  189. package/types/element/mutateElement.d.ts +12 -12
  190. package/types/element/newElement.d.ts +95 -95
  191. package/types/element/resizeElements.d.ts +9 -9
  192. package/types/element/resizeTest.d.ts +13 -13
  193. package/types/element/showSelectedShapeActions.d.ts +3 -3
  194. package/types/element/sizeHelpers.d.ts +21 -21
  195. package/types/element/sortElements.d.ts +2 -2
  196. package/types/element/textElement.d.ts +76 -80
  197. package/types/element/textWysiwyg.d.ts +21 -21
  198. package/types/element/transformHandles.d.ts +35 -35
  199. package/types/element/typeChecks.d.ts +29 -29
  200. package/types/element/types.d.ts +166 -166
  201. package/types/errors.d.ts +8 -8
  202. package/types/excalidraw-app/CustomStats.d.ts +9 -0
  203. package/types/excalidraw-app/app_constants.d.ts +32 -0
  204. package/types/excalidraw-app/collab/Collab.d.ts +163 -0
  205. package/types/excalidraw-app/collab/Portal.d.ts +28 -0
  206. package/types/excalidraw-app/collab/RoomDialog.d.ts +13 -0
  207. package/types/excalidraw-app/collab/reconciliation.d.ts +10 -0
  208. package/types/excalidraw-app/components/ExportToExcalidrawPlus.d.ts +9 -0
  209. package/types/excalidraw-app/components/LanguageList.d.ts +4 -0
  210. package/types/excalidraw-app/components/icons.d.ts +1 -0
  211. package/types/excalidraw-app/data/FileManager.d.ts +66 -0
  212. package/types/excalidraw-app/data/LocalData.d.ts +32 -0
  213. package/types/excalidraw-app/data/Locker.d.ts +8 -0
  214. package/types/excalidraw-app/data/firebase.d.ts +25 -0
  215. package/types/excalidraw-app/data/index.d.ts +190 -0
  216. package/types/excalidraw-app/data/localStorage.d.ts +116 -0
  217. package/types/excalidraw-app/data/tabSync.d.ts +9 -0
  218. package/types/excalidraw-app/index.d.ts +26 -0
  219. package/types/frame.d.ts +40 -40
  220. package/types/ga.d.ts +63 -63
  221. package/types/gadirections.d.ts +8 -8
  222. package/types/galines.d.ts +22 -22
  223. package/types/gapoints.d.ts +7 -7
  224. package/types/gatransforms.d.ts +10 -10
  225. package/types/gesture.d.ts +6 -6
  226. package/types/groups.d.ts +31 -31
  227. package/types/history.d.ts +52 -52
  228. package/types/hooks/useCallbackRefState.d.ts +1 -1
  229. package/types/hooks/useCreatePortalContainer.d.ts +5 -5
  230. package/types/hooks/useLibraryItemSvg.d.ts +11 -11
  231. package/types/hooks/useOutsideClick.d.ts +19 -20
  232. package/types/hooks/useScrollPosition.d.ts +1 -2
  233. package/types/hooks/useTransition.d.ts +2 -2
  234. package/types/i18n.d.ts +24 -24
  235. package/types/jotai.d.ts +34 -34
  236. package/types/keys.d.ts +80 -80
  237. package/types/math.d.ts +30 -30
  238. package/types/packages/common.webpack.dev.config.d.ts +72 -72
  239. package/types/packages/common.webpack.prod.config.d.ts +84 -84
  240. package/types/packages/excalidraw/dist/excalidraw.development.d.ts +2 -4
  241. package/types/packages/excalidraw/dist/excalidraw.production.min.d.ts +1 -1
  242. package/types/packages/excalidraw/entry.d.ts +1 -1
  243. package/types/packages/excalidraw/env.d.ts +1 -1
  244. package/types/packages/excalidraw/example/App.d.ts +14 -14
  245. package/types/packages/excalidraw/example/CustomFooter.d.ts +5 -5
  246. package/types/packages/excalidraw/example/MobileFooter.d.ts +5 -5
  247. package/types/packages/excalidraw/example/index.d.ts +1 -1
  248. package/types/packages/excalidraw/example/initialData.d.ts +178 -178
  249. package/types/packages/excalidraw/example/sidebar/ExampleSidebar.d.ts +5 -5
  250. package/types/packages/excalidraw/example/sidebar/Sidebar.d.ts +5 -0
  251. package/types/packages/excalidraw/index.d.ts +38 -37
  252. package/types/packages/excalidraw/main.d.ts +2 -2
  253. package/types/packages/excalidraw/publicPath.d.ts +1 -1
  254. package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -19
  255. package/types/packages/excalidraw/webpack.dev.config.d.ts +80 -69
  256. package/types/packages/excalidraw/webpack.prod.config.d.ts +95 -78
  257. package/types/packages/utils.d.ts +43 -43
  258. package/types/points.d.ts +7 -7
  259. package/types/polyfill.d.ts +2 -2
  260. package/types/random.d.ts +4 -4
  261. package/types/renderer/easingFunctions.d.ts +6 -6
  262. package/types/renderer/renderElement.d.ts +37 -37
  263. package/types/renderer/renderScene.d.ts +51 -51
  264. package/types/renderer/roundRect.d.ts +11 -11
  265. package/types/scene/Fonts.d.ts +21 -21
  266. package/types/scene/Scene.d.ts +60 -60
  267. package/types/scene/comparisons.d.ts +10 -10
  268. package/types/scene/export.d.ts +25 -25
  269. package/types/scene/index.d.ts +5 -5
  270. package/types/scene/scroll.d.ts +17 -17
  271. package/types/scene/scrollbars.d.ts +16 -16
  272. package/types/scene/selection.d.ts +31 -31
  273. package/types/scene/types.d.ts +59 -59
  274. package/types/scene/zoom.d.ts +13 -13
  275. package/types/shapes.d.ts +62 -62
  276. package/types/types.d.ts +501 -501
  277. package/types/utility-types.d.ts +24 -25
  278. package/types/utils.d.ts +192 -192
  279. package/types/zindex.d.ts +6 -6
  280. package/types/.DS_Store +0 -0
@@ -1,441 +1,440 @@
1
- /// <reference types="react" />
2
- export declare const actionAddToLibrary: {
3
- name: "addToLibrary";
4
- trackEvent: {
5
- category: "element";
6
- };
7
- perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
8
- commitToHistory: boolean;
9
- appState: {
10
- toast: {
11
- message: string;
12
- };
13
- contextMenu: {
14
- items: import("../components/ContextMenu").ContextMenuItems;
15
- top: number;
16
- left: number;
17
- } | null;
18
- showWelcomeScreen: boolean;
19
- isLoading: boolean;
20
- errorMessage: import("react").ReactNode;
21
- activeEmbeddable: {
22
- element: import("../element/types").NonDeletedExcalidrawElement;
23
- state: "active" | "hover";
24
- } | null;
25
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
26
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
27
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
28
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
29
- isBindingEnabled: boolean;
30
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("../element/binding").SuggestedBinding[];
32
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
33
- frameRendering: {
34
- enabled: boolean;
35
- name: boolean;
36
- outline: boolean;
37
- clip: boolean;
38
- };
39
- editingFrame: string | null;
40
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
41
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
42
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
43
- activeTool: {
44
- lastActiveTool: import("../types").LastActiveTool;
45
- locked: boolean;
46
- } & ({
47
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
48
- customType: null;
49
- } | {
50
- type: "custom";
51
- customType: string;
52
- });
53
- penMode: boolean;
54
- penDetected: boolean;
55
- exportBackground: boolean;
56
- exportEmbedScene: boolean;
57
- exportWithDarkMode: boolean;
58
- exportScale: number;
59
- currentItemStrokeColor: string;
60
- currentItemBackgroundColor: string;
61
- currentItemFillStyle: import("../element/types").FillStyle;
62
- currentItemStrokeWidth: number;
63
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
64
- currentItemRoughness: number;
65
- currentItemOpacity: number;
66
- currentItemFontFamily: number;
67
- currentItemFontSize: number;
68
- currentItemTextAlign: string;
69
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
70
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
71
- currentItemRoundness: import("../element/types").StrokeRoundness;
72
- viewBackgroundColor: string;
73
- scrollX: number;
74
- scrollY: number;
75
- cursorButton: "up" | "down";
76
- scrolledOutside: boolean;
77
- name: string;
78
- isResizing: boolean;
79
- isRotating: boolean;
80
- zoom: Readonly<{
81
- value: import("../types").NormalizedZoomValue;
82
- }>;
83
- openMenu: "canvas" | "shape" | null;
84
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
85
- openSidebar: {
86
- name: string;
87
- tab?: string | undefined;
88
- } | null;
89
- openDialog: "imageExport" | "help" | "jsonExport" | null;
90
- defaultSidebarDockedPreference: boolean;
91
- lastPointerDownWith: import("../element/types").PointerType;
92
- selectedElementIds: Readonly<{
93
- [id: string]: true;
94
- }>;
95
- previousSelectedElementIds: {
96
- [id: string]: true;
97
- };
98
- selectedElementsAreBeingDragged: boolean;
99
- shouldCacheIgnoreZoom: boolean;
100
- zenModeEnabled: boolean;
101
- theme: import("../element/types").Theme;
102
- gridSize: number | null;
103
- previousGridSize: number | null;
104
- viewModeEnabled: boolean;
105
- selectedGroupIds: {
106
- [groupId: string]: boolean;
107
- };
108
- editingGroupId: string | null;
109
- width: number;
110
- height: number;
111
- offsetTop: number;
112
- offsetLeft: number;
113
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
114
- collaborators: Map<string, import("../types").Collaborator>;
115
- showStats: boolean;
116
- currentChartType: import("../element/types").ChartType;
117
- pasteDialog: {
118
- shown: false;
119
- data: null;
120
- } | {
121
- shown: true;
122
- data: import("../charts").Spreadsheet;
123
- };
124
- pendingImageElementId: string | null;
125
- showHyperlinkPopup: false | "editor" | "info";
126
- linkOpacity: number;
127
- trayModeEnabled: boolean;
128
- colorPalette?: {
129
- canvasBackground: import("../colors").ColorPaletteCustom;
130
- elementBackground: import("../colors").ColorPaletteCustom;
131
- elementStroke: import("../colors").ColorPaletteCustom;
132
- topPicks: {
133
- canvasBackground: [string, string, string, string, string];
134
- elementStroke: [string, string, string, string, string];
135
- elementBackground: [string, string, string, string, string];
136
- };
137
- } | undefined;
138
- allowWheelZoom?: boolean | undefined;
139
- allowPinchZoom?: boolean | undefined;
140
- pinnedScripts?: string[] | undefined;
141
- customPens?: any[] | undefined;
142
- currentStrokeOptions?: any;
143
- resetCustomPen?: any;
144
- gridColor: string;
145
- dynamicStyle: string;
146
- invertBindingBehaviour: boolean;
147
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
148
- };
149
- } | {
150
- commitToHistory: false;
151
- appState: {
152
- errorMessage: any;
153
- contextMenu: {
154
- items: import("../components/ContextMenu").ContextMenuItems;
155
- top: number;
156
- left: number;
157
- } | null;
158
- showWelcomeScreen: boolean;
159
- isLoading: boolean;
160
- activeEmbeddable: {
161
- element: import("../element/types").NonDeletedExcalidrawElement;
162
- state: "active" | "hover";
163
- } | null;
164
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
165
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
166
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
167
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
168
- isBindingEnabled: boolean;
169
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
170
- suggestedBindings: import("../element/binding").SuggestedBinding[];
171
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
172
- frameRendering: {
173
- enabled: boolean;
174
- name: boolean;
175
- outline: boolean;
176
- clip: boolean;
177
- };
178
- editingFrame: string | null;
179
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
180
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
181
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
182
- activeTool: {
183
- lastActiveTool: import("../types").LastActiveTool;
184
- locked: boolean;
185
- } & ({
186
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
187
- customType: null;
188
- } | {
189
- type: "custom";
190
- customType: string;
191
- });
192
- penMode: boolean;
193
- penDetected: boolean;
194
- exportBackground: boolean;
195
- exportEmbedScene: boolean;
196
- exportWithDarkMode: boolean;
197
- exportScale: number;
198
- currentItemStrokeColor: string;
199
- currentItemBackgroundColor: string;
200
- currentItemFillStyle: import("../element/types").FillStyle;
201
- currentItemStrokeWidth: number;
202
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
203
- currentItemRoughness: number;
204
- currentItemOpacity: number;
205
- currentItemFontFamily: number;
206
- currentItemFontSize: number;
207
- currentItemTextAlign: string;
208
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
209
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
210
- currentItemRoundness: import("../element/types").StrokeRoundness;
211
- viewBackgroundColor: string;
212
- scrollX: number;
213
- scrollY: number;
214
- cursorButton: "up" | "down";
215
- scrolledOutside: boolean;
216
- name: string;
217
- isResizing: boolean;
218
- isRotating: boolean;
219
- zoom: Readonly<{
220
- value: import("../types").NormalizedZoomValue;
221
- }>;
222
- openMenu: "canvas" | "shape" | null;
223
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
224
- openSidebar: {
225
- name: string;
226
- tab?: string | undefined;
227
- } | null;
228
- openDialog: "imageExport" | "help" | "jsonExport" | null;
229
- defaultSidebarDockedPreference: boolean;
230
- lastPointerDownWith: import("../element/types").PointerType;
231
- selectedElementIds: Readonly<{
232
- [id: string]: true;
233
- }>;
234
- previousSelectedElementIds: {
235
- [id: string]: true;
236
- };
237
- selectedElementsAreBeingDragged: boolean;
238
- shouldCacheIgnoreZoom: boolean;
239
- toast: {
240
- message: string;
241
- closable?: boolean | undefined;
242
- duration?: number | undefined;
243
- } | null;
244
- zenModeEnabled: boolean;
245
- theme: import("../element/types").Theme;
246
- gridSize: number | null;
247
- previousGridSize: number | null;
248
- viewModeEnabled: boolean;
249
- selectedGroupIds: {
250
- [groupId: string]: boolean;
251
- };
252
- editingGroupId: string | null;
253
- width: number;
254
- height: number;
255
- offsetTop: number;
256
- offsetLeft: number;
257
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
258
- collaborators: Map<string, import("../types").Collaborator>;
259
- showStats: boolean;
260
- currentChartType: import("../element/types").ChartType;
261
- pasteDialog: {
262
- shown: false;
263
- data: null;
264
- } | {
265
- shown: true;
266
- data: import("../charts").Spreadsheet;
267
- };
268
- pendingImageElementId: string | null;
269
- showHyperlinkPopup: false | "editor" | "info";
270
- linkOpacity: number;
271
- trayModeEnabled: boolean;
272
- colorPalette?: {
273
- canvasBackground: import("../colors").ColorPaletteCustom;
274
- elementBackground: import("../colors").ColorPaletteCustom;
275
- elementStroke: import("../colors").ColorPaletteCustom;
276
- topPicks: {
277
- canvasBackground: [string, string, string, string, string];
278
- elementStroke: [string, string, string, string, string];
279
- elementBackground: [string, string, string, string, string];
280
- };
281
- } | undefined;
282
- allowWheelZoom?: boolean | undefined;
283
- allowPinchZoom?: boolean | undefined;
284
- pinnedScripts?: string[] | undefined;
285
- customPens?: any[] | undefined;
286
- currentStrokeOptions?: any;
287
- resetCustomPen?: any;
288
- gridColor: string;
289
- dynamicStyle: string;
290
- invertBindingBehaviour: boolean;
291
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
292
- };
293
- }> | {
294
- commitToHistory: false;
295
- appState: {
296
- errorMessage: string;
297
- contextMenu: {
298
- items: import("../components/ContextMenu").ContextMenuItems;
299
- top: number;
300
- left: number;
301
- } | null;
302
- showWelcomeScreen: boolean;
303
- isLoading: boolean;
304
- activeEmbeddable: {
305
- element: import("../element/types").NonDeletedExcalidrawElement;
306
- state: "active" | "hover";
307
- } | null;
308
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
309
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
310
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
311
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
312
- isBindingEnabled: boolean;
313
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
314
- suggestedBindings: import("../element/binding").SuggestedBinding[];
315
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
316
- frameRendering: {
317
- enabled: boolean;
318
- name: boolean;
319
- outline: boolean;
320
- clip: boolean;
321
- };
322
- editingFrame: string | null;
323
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
324
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
325
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
326
- activeTool: {
327
- lastActiveTool: import("../types").LastActiveTool;
328
- locked: boolean;
329
- } & ({
330
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
331
- customType: null;
332
- } | {
333
- type: "custom";
334
- customType: string;
335
- });
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: "canvasBackground" | "elementBackground" | "elementStroke" | null;
368
- openSidebar: {
369
- name: string;
370
- tab?: string | undefined;
371
- } | null;
372
- openDialog: "imageExport" | "help" | "jsonExport" | null;
373
- defaultSidebarDockedPreference: boolean;
374
- lastPointerDownWith: import("../element/types").PointerType;
375
- selectedElementIds: Readonly<{
376
- [id: string]: true;
377
- }>;
378
- previousSelectedElementIds: {
379
- [id: string]: true;
380
- };
381
- selectedElementsAreBeingDragged: boolean;
382
- shouldCacheIgnoreZoom: boolean;
383
- toast: {
384
- message: string;
385
- closable?: boolean | undefined;
386
- duration?: number | undefined;
387
- } | null;
388
- zenModeEnabled: boolean;
389
- theme: import("../element/types").Theme;
390
- gridSize: number | null;
391
- previousGridSize: number | null;
392
- viewModeEnabled: boolean;
393
- selectedGroupIds: {
394
- [groupId: string]: boolean;
395
- };
396
- editingGroupId: string | null;
397
- width: number;
398
- height: number;
399
- offsetTop: number;
400
- offsetLeft: number;
401
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
402
- collaborators: Map<string, import("../types").Collaborator>;
403
- showStats: boolean;
404
- currentChartType: import("../element/types").ChartType;
405
- pasteDialog: {
406
- shown: false;
407
- data: null;
408
- } | {
409
- shown: true;
410
- data: import("../charts").Spreadsheet;
411
- };
412
- pendingImageElementId: string | null;
413
- showHyperlinkPopup: false | "editor" | "info";
414
- linkOpacity: number;
415
- trayModeEnabled: boolean;
416
- colorPalette?: {
417
- canvasBackground: import("../colors").ColorPaletteCustom;
418
- elementBackground: import("../colors").ColorPaletteCustom;
419
- elementStroke: import("../colors").ColorPaletteCustom;
420
- topPicks: {
421
- canvasBackground: [string, string, string, string, string];
422
- elementStroke: [string, string, string, string, string];
423
- elementBackground: [string, string, string, string, string];
424
- };
425
- } | undefined;
426
- allowWheelZoom?: boolean | undefined;
427
- allowPinchZoom?: boolean | undefined;
428
- pinnedScripts?: string[] | undefined;
429
- customPens?: any[] | undefined;
430
- currentStrokeOptions?: any;
431
- resetCustomPen?: any;
432
- gridColor: string;
433
- dynamicStyle: string;
434
- invertBindingBehaviour: boolean;
435
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
436
- };
437
- };
438
- contextItemLabel: string;
439
- } & {
440
- keyTest?: undefined;
441
- };
1
+ export declare const actionAddToLibrary: {
2
+ name: "addToLibrary";
3
+ trackEvent: {
4
+ category: "element";
5
+ };
6
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
7
+ commitToHistory: boolean;
8
+ appState: {
9
+ toast: {
10
+ message: string;
11
+ };
12
+ contextMenu: {
13
+ items: import("../components/ContextMenu").ContextMenuItems;
14
+ top: number;
15
+ left: number;
16
+ } | null;
17
+ showWelcomeScreen: boolean;
18
+ isLoading: boolean;
19
+ errorMessage: import("react").ReactNode;
20
+ activeEmbeddable: {
21
+ element: import("../element/types").NonDeletedExcalidrawElement;
22
+ state: "active" | "hover";
23
+ } | null;
24
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
25
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
26
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
27
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
28
+ isBindingEnabled: boolean;
29
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
30
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
31
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
32
+ frameRendering: {
33
+ enabled: boolean;
34
+ name: boolean;
35
+ outline: boolean;
36
+ clip: boolean;
37
+ };
38
+ editingFrame: string | null;
39
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
40
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
41
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
42
+ activeTool: {
43
+ lastActiveTool: import("../types").LastActiveTool;
44
+ locked: boolean;
45
+ } & ({
46
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
47
+ customType: null;
48
+ } | {
49
+ type: "custom";
50
+ customType: string;
51
+ });
52
+ penMode: boolean;
53
+ penDetected: boolean;
54
+ exportBackground: boolean;
55
+ exportEmbedScene: boolean;
56
+ exportWithDarkMode: boolean;
57
+ exportScale: number;
58
+ currentItemStrokeColor: string;
59
+ currentItemBackgroundColor: string;
60
+ currentItemFillStyle: import("../element/types").FillStyle;
61
+ currentItemStrokeWidth: number;
62
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
63
+ currentItemRoughness: number;
64
+ currentItemOpacity: number;
65
+ currentItemFontFamily: number;
66
+ currentItemFontSize: number;
67
+ currentItemTextAlign: string;
68
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
69
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
70
+ currentItemRoundness: import("../element/types").StrokeRoundness;
71
+ viewBackgroundColor: string;
72
+ scrollX: number;
73
+ scrollY: number;
74
+ cursorButton: "up" | "down";
75
+ scrolledOutside: boolean;
76
+ name: string;
77
+ isResizing: boolean;
78
+ isRotating: boolean;
79
+ zoom: Readonly<{
80
+ value: import("../types").NormalizedZoomValue;
81
+ }>;
82
+ openMenu: "canvas" | "shape" | null;
83
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
84
+ openSidebar: {
85
+ name: string;
86
+ tab?: string | undefined;
87
+ } | null;
88
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
89
+ defaultSidebarDockedPreference: boolean;
90
+ lastPointerDownWith: import("../element/types").PointerType;
91
+ selectedElementIds: Readonly<{
92
+ [id: string]: true;
93
+ }>;
94
+ previousSelectedElementIds: {
95
+ [id: string]: true;
96
+ };
97
+ selectedElementsAreBeingDragged: boolean;
98
+ shouldCacheIgnoreZoom: boolean;
99
+ zenModeEnabled: boolean;
100
+ theme: import("../element/types").Theme;
101
+ gridSize: number | null;
102
+ previousGridSize: number | null;
103
+ viewModeEnabled: boolean;
104
+ selectedGroupIds: {
105
+ [groupId: string]: boolean;
106
+ };
107
+ editingGroupId: string | null;
108
+ width: number;
109
+ height: number;
110
+ offsetTop: number;
111
+ offsetLeft: number;
112
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
113
+ collaborators: Map<string, import("../types").Collaborator>;
114
+ showStats: boolean;
115
+ currentChartType: import("../element/types").ChartType;
116
+ pasteDialog: {
117
+ shown: false;
118
+ data: null;
119
+ } | {
120
+ shown: true;
121
+ data: import("../charts").Spreadsheet;
122
+ };
123
+ pendingImageElementId: string | null;
124
+ showHyperlinkPopup: false | "editor" | "info";
125
+ linkOpacity: number;
126
+ trayModeEnabled: boolean;
127
+ colorPalette?: {
128
+ canvasBackground: import("../colors").ColorPaletteCustom;
129
+ elementBackground: import("../colors").ColorPaletteCustom;
130
+ elementStroke: import("../colors").ColorPaletteCustom;
131
+ topPicks: {
132
+ canvasBackground: [string, string, string, string, string];
133
+ elementStroke: [string, string, string, string, string];
134
+ elementBackground: [string, string, string, string, string];
135
+ };
136
+ } | undefined;
137
+ allowWheelZoom?: boolean | undefined;
138
+ allowPinchZoom?: boolean | undefined;
139
+ pinnedScripts?: string[] | undefined;
140
+ customPens?: any[] | undefined;
141
+ currentStrokeOptions?: any;
142
+ resetCustomPen?: any;
143
+ gridColor: string;
144
+ dynamicStyle: string;
145
+ invertBindingBehaviour: boolean;
146
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
147
+ };
148
+ } | {
149
+ commitToHistory: false;
150
+ appState: {
151
+ errorMessage: any;
152
+ contextMenu: {
153
+ items: import("../components/ContextMenu").ContextMenuItems;
154
+ top: number;
155
+ left: number;
156
+ } | null;
157
+ showWelcomeScreen: boolean;
158
+ isLoading: boolean;
159
+ activeEmbeddable: {
160
+ element: import("../element/types").NonDeletedExcalidrawElement;
161
+ state: "active" | "hover";
162
+ } | null;
163
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
164
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
165
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
166
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
167
+ isBindingEnabled: boolean;
168
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
169
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
170
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
171
+ frameRendering: {
172
+ enabled: boolean;
173
+ name: boolean;
174
+ outline: boolean;
175
+ clip: boolean;
176
+ };
177
+ editingFrame: string | null;
178
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
179
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
180
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
181
+ activeTool: {
182
+ lastActiveTool: import("../types").LastActiveTool;
183
+ locked: boolean;
184
+ } & ({
185
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
186
+ customType: null;
187
+ } | {
188
+ type: "custom";
189
+ customType: string;
190
+ });
191
+ penMode: boolean;
192
+ penDetected: boolean;
193
+ exportBackground: boolean;
194
+ exportEmbedScene: boolean;
195
+ exportWithDarkMode: boolean;
196
+ exportScale: number;
197
+ currentItemStrokeColor: string;
198
+ currentItemBackgroundColor: string;
199
+ currentItemFillStyle: import("../element/types").FillStyle;
200
+ currentItemStrokeWidth: number;
201
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
202
+ currentItemRoughness: number;
203
+ currentItemOpacity: number;
204
+ currentItemFontFamily: number;
205
+ currentItemFontSize: number;
206
+ currentItemTextAlign: string;
207
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
208
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
209
+ currentItemRoundness: import("../element/types").StrokeRoundness;
210
+ viewBackgroundColor: string;
211
+ scrollX: number;
212
+ scrollY: number;
213
+ cursorButton: "up" | "down";
214
+ scrolledOutside: boolean;
215
+ name: string;
216
+ isResizing: boolean;
217
+ isRotating: boolean;
218
+ zoom: Readonly<{
219
+ value: import("../types").NormalizedZoomValue;
220
+ }>;
221
+ openMenu: "canvas" | "shape" | null;
222
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
223
+ openSidebar: {
224
+ name: string;
225
+ tab?: string | undefined;
226
+ } | null;
227
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
228
+ defaultSidebarDockedPreference: boolean;
229
+ lastPointerDownWith: import("../element/types").PointerType;
230
+ selectedElementIds: Readonly<{
231
+ [id: string]: true;
232
+ }>;
233
+ previousSelectedElementIds: {
234
+ [id: string]: true;
235
+ };
236
+ selectedElementsAreBeingDragged: boolean;
237
+ shouldCacheIgnoreZoom: boolean;
238
+ toast: {
239
+ message: string;
240
+ closable?: boolean | undefined;
241
+ duration?: number | undefined;
242
+ } | null;
243
+ zenModeEnabled: boolean;
244
+ theme: import("../element/types").Theme;
245
+ gridSize: number | null;
246
+ previousGridSize: number | null;
247
+ viewModeEnabled: boolean;
248
+ selectedGroupIds: {
249
+ [groupId: string]: boolean;
250
+ };
251
+ editingGroupId: string | null;
252
+ width: number;
253
+ height: number;
254
+ offsetTop: number;
255
+ offsetLeft: number;
256
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
257
+ collaborators: Map<string, import("../types").Collaborator>;
258
+ showStats: boolean;
259
+ currentChartType: import("../element/types").ChartType;
260
+ pasteDialog: {
261
+ shown: false;
262
+ data: null;
263
+ } | {
264
+ shown: true;
265
+ data: import("../charts").Spreadsheet;
266
+ };
267
+ pendingImageElementId: string | null;
268
+ showHyperlinkPopup: false | "editor" | "info";
269
+ linkOpacity: number;
270
+ trayModeEnabled: boolean;
271
+ colorPalette?: {
272
+ canvasBackground: import("../colors").ColorPaletteCustom;
273
+ elementBackground: import("../colors").ColorPaletteCustom;
274
+ elementStroke: import("../colors").ColorPaletteCustom;
275
+ topPicks: {
276
+ canvasBackground: [string, string, string, string, string];
277
+ elementStroke: [string, string, string, string, string];
278
+ elementBackground: [string, string, string, string, string];
279
+ };
280
+ } | undefined;
281
+ allowWheelZoom?: boolean | undefined;
282
+ allowPinchZoom?: boolean | undefined;
283
+ pinnedScripts?: string[] | undefined;
284
+ customPens?: any[] | undefined;
285
+ currentStrokeOptions?: any;
286
+ resetCustomPen?: any;
287
+ gridColor: string;
288
+ dynamicStyle: string;
289
+ invertBindingBehaviour: boolean;
290
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
291
+ };
292
+ }> | {
293
+ commitToHistory: false;
294
+ appState: {
295
+ errorMessage: string;
296
+ contextMenu: {
297
+ items: import("../components/ContextMenu").ContextMenuItems;
298
+ top: number;
299
+ left: number;
300
+ } | null;
301
+ showWelcomeScreen: boolean;
302
+ isLoading: boolean;
303
+ activeEmbeddable: {
304
+ element: import("../element/types").NonDeletedExcalidrawElement;
305
+ state: "active" | "hover";
306
+ } | null;
307
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
308
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
309
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
310
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
311
+ isBindingEnabled: boolean;
312
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
313
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
314
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
315
+ frameRendering: {
316
+ enabled: boolean;
317
+ name: boolean;
318
+ outline: boolean;
319
+ clip: boolean;
320
+ };
321
+ editingFrame: string | null;
322
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
323
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
324
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
325
+ activeTool: {
326
+ lastActiveTool: import("../types").LastActiveTool;
327
+ locked: boolean;
328
+ } & ({
329
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
330
+ customType: null;
331
+ } | {
332
+ type: "custom";
333
+ customType: string;
334
+ });
335
+ penMode: boolean;
336
+ penDetected: boolean;
337
+ exportBackground: boolean;
338
+ exportEmbedScene: boolean;
339
+ exportWithDarkMode: boolean;
340
+ exportScale: number;
341
+ currentItemStrokeColor: string;
342
+ currentItemBackgroundColor: string;
343
+ currentItemFillStyle: import("../element/types").FillStyle;
344
+ currentItemStrokeWidth: number;
345
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
346
+ currentItemRoughness: number;
347
+ currentItemOpacity: number;
348
+ currentItemFontFamily: number;
349
+ currentItemFontSize: number;
350
+ currentItemTextAlign: string;
351
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
352
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
353
+ currentItemRoundness: import("../element/types").StrokeRoundness;
354
+ viewBackgroundColor: string;
355
+ scrollX: number;
356
+ scrollY: number;
357
+ cursorButton: "up" | "down";
358
+ scrolledOutside: boolean;
359
+ name: string;
360
+ isResizing: boolean;
361
+ isRotating: boolean;
362
+ zoom: Readonly<{
363
+ value: import("../types").NormalizedZoomValue;
364
+ }>;
365
+ openMenu: "canvas" | "shape" | null;
366
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
367
+ openSidebar: {
368
+ name: string;
369
+ tab?: string | undefined;
370
+ } | null;
371
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
372
+ defaultSidebarDockedPreference: boolean;
373
+ lastPointerDownWith: import("../element/types").PointerType;
374
+ selectedElementIds: Readonly<{
375
+ [id: string]: true;
376
+ }>;
377
+ previousSelectedElementIds: {
378
+ [id: string]: true;
379
+ };
380
+ selectedElementsAreBeingDragged: boolean;
381
+ shouldCacheIgnoreZoom: boolean;
382
+ toast: {
383
+ message: string;
384
+ closable?: boolean | undefined;
385
+ duration?: number | undefined;
386
+ } | null;
387
+ zenModeEnabled: boolean;
388
+ theme: import("../element/types").Theme;
389
+ gridSize: number | null;
390
+ previousGridSize: number | null;
391
+ viewModeEnabled: boolean;
392
+ selectedGroupIds: {
393
+ [groupId: string]: boolean;
394
+ };
395
+ editingGroupId: string | null;
396
+ width: number;
397
+ height: number;
398
+ offsetTop: number;
399
+ offsetLeft: number;
400
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
401
+ collaborators: Map<string, import("../types").Collaborator>;
402
+ showStats: boolean;
403
+ currentChartType: import("../element/types").ChartType;
404
+ pasteDialog: {
405
+ shown: false;
406
+ data: null;
407
+ } | {
408
+ shown: true;
409
+ data: import("../charts").Spreadsheet;
410
+ };
411
+ pendingImageElementId: string | null;
412
+ showHyperlinkPopup: false | "editor" | "info";
413
+ linkOpacity: number;
414
+ trayModeEnabled: boolean;
415
+ colorPalette?: {
416
+ canvasBackground: import("../colors").ColorPaletteCustom;
417
+ elementBackground: import("../colors").ColorPaletteCustom;
418
+ elementStroke: import("../colors").ColorPaletteCustom;
419
+ topPicks: {
420
+ canvasBackground: [string, string, string, string, string];
421
+ elementStroke: [string, string, string, string, string];
422
+ elementBackground: [string, string, string, string, string];
423
+ };
424
+ } | undefined;
425
+ allowWheelZoom?: boolean | undefined;
426
+ allowPinchZoom?: boolean | undefined;
427
+ pinnedScripts?: string[] | undefined;
428
+ customPens?: any[] | undefined;
429
+ currentStrokeOptions?: any;
430
+ resetCustomPen?: any;
431
+ gridColor: string;
432
+ dynamicStyle: string;
433
+ invertBindingBehaviour: boolean;
434
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
435
+ };
436
+ };
437
+ contextItemLabel: string;
438
+ } & {
439
+ keyTest?: undefined;
440
+ };