@zsviczian/excalidraw 0.17.6-3 → 0.17.6-30

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 (390) hide show
  1. package/dist/excalidraw.development.js +13100 -1540
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +21 -1
  4. package/dist/styles.development.css +490 -376
  5. package/dist/styles.production.css +10 -8
  6. package/package.json +5 -4
  7. package/types/excalidraw/actions/actionAddToLibrary.d.ts +0 -605
  8. package/types/excalidraw/actions/actionAlign.d.ts +0 -108
  9. package/types/excalidraw/actions/actionBoundText.d.ts +0 -440
  10. package/types/excalidraw/actions/actionCanvas.d.ts +0 -2958
  11. package/types/excalidraw/actions/actionClipboard.d.ts +0 -1322
  12. package/types/excalidraw/actions/actionDeleteSelected.d.ts +0 -640
  13. package/types/excalidraw/actions/actionDistribute.d.ts +0 -34
  14. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +0 -21
  15. package/types/excalidraw/actions/actionElementLock.d.ts +0 -428
  16. package/types/excalidraw/actions/actionExport.d.ts +0 -1884
  17. package/types/excalidraw/actions/actionFinalize.d.ts +0 -409
  18. package/types/excalidraw/actions/actionFlip.d.ts +0 -34
  19. package/types/excalidraw/actions/actionFrame.d.ts +0 -855
  20. package/types/excalidraw/actions/actionGroup.d.ts +0 -438
  21. package/types/excalidraw/actions/actionHistory.d.ts +0 -7
  22. package/types/excalidraw/actions/actionLinearEditor.d.ts +0 -215
  23. package/types/excalidraw/actions/actionLink.d.ts +0 -215
  24. package/types/excalidraw/actions/actionMenu.d.ts +0 -628
  25. package/types/excalidraw/actions/actionNavigate.d.ts +0 -414
  26. package/types/excalidraw/actions/actionProperties.d.ts +0 -3156
  27. package/types/excalidraw/actions/actionSelectAll.d.ts +0 -214
  28. package/types/excalidraw/actions/actionStyles.d.ts +0 -228
  29. package/types/excalidraw/actions/actionTextAutoResize.d.ts +0 -17
  30. package/types/excalidraw/actions/actionToggleGridMode.d.ts +0 -217
  31. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +0 -215
  32. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +0 -407
  33. package/types/excalidraw/actions/actionToggleStats.d.ts +0 -215
  34. package/types/excalidraw/actions/actionToggleViewMode.d.ts +0 -216
  35. package/types/excalidraw/actions/actionToggleZenMode.d.ts +0 -216
  36. package/types/excalidraw/actions/actionZindex.d.ts +0 -74
  37. package/types/excalidraw/actions/index.d.ts +0 -26
  38. package/types/excalidraw/actions/manager.d.ts +0 -21
  39. package/types/excalidraw/actions/register.d.ts +0 -5
  40. package/types/excalidraw/actions/shortcuts.d.ts +0 -4
  41. package/types/excalidraw/actions/types.d.ts +0 -46
  42. package/types/excalidraw/align.d.ts +0 -6
  43. package/types/excalidraw/analytics.d.ts +0 -1
  44. package/types/excalidraw/animated-trail.d.ts +0 -33
  45. package/types/excalidraw/animation-frame-handler.d.ts +0 -16
  46. package/types/excalidraw/appState.d.ts +0 -89
  47. package/types/excalidraw/binaryheap.d.ts +0 -12
  48. package/types/excalidraw/change.d.ts +0 -191
  49. package/types/excalidraw/charts.d.ts +0 -27
  50. package/types/excalidraw/clients.d.ts +0 -14
  51. package/types/excalidraw/clipboard.d.ts +0 -44
  52. package/types/excalidraw/colors.d.ts +0 -61
  53. package/types/excalidraw/components/Actions.d.ts +0 -34
  54. package/types/excalidraw/components/ActiveConfirmDialog.d.ts +0 -4
  55. package/types/excalidraw/components/App.d.ts +0 -535
  56. package/types/excalidraw/components/Avatar.d.ts +0 -11
  57. package/types/excalidraw/components/BraveMeasureTextError.d.ts +0 -2
  58. package/types/excalidraw/components/Button.d.ts +0 -17
  59. package/types/excalidraw/components/ButtonIcon.d.ts +0 -14
  60. package/types/excalidraw/components/ButtonIconCycle.d.ts +0 -10
  61. package/types/excalidraw/components/ButtonIconSelect.d.ts +0 -19
  62. package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  63. package/types/excalidraw/components/ButtonSeparator.d.ts +0 -1
  64. package/types/excalidraw/components/Card.d.ts +0 -6
  65. package/types/excalidraw/components/CheckboxItem.d.ts +0 -8
  66. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +0 -9
  67. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -19
  68. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +0 -8
  69. package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +0 -8
  70. package/types/excalidraw/components/ColorPicker/Picker.d.ts +0 -18
  71. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +0 -10
  72. package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +0 -5
  73. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +0 -8
  74. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +0 -9
  75. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -21
  76. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -20
  77. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +0 -18
  78. package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +0 -2
  79. package/types/excalidraw/components/CommandPalette/types.d.ts +0 -25
  80. package/types/excalidraw/components/ConfirmDialog.d.ts +0 -10
  81. package/types/excalidraw/components/ContextMenu.d.ts +0 -16
  82. package/types/excalidraw/components/DarkModeToggle.d.ts +0 -7
  83. package/types/excalidraw/components/DefaultSidebar.d.ts +0 -30
  84. package/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  85. package/types/excalidraw/components/Dialog.d.ts +0 -13
  86. package/types/excalidraw/components/DialogActionButton.d.ts +0 -10
  87. package/types/excalidraw/components/ErrorDialog.d.ts +0 -5
  88. package/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
  89. package/types/excalidraw/components/EyeDropper.d.ts +0 -27
  90. package/types/excalidraw/components/FilledButton.d.ts +0 -18
  91. package/types/excalidraw/components/FixedSideContainer.d.ts +0 -9
  92. package/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  93. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +0 -21
  94. package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +0 -25
  95. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +0 -6
  96. package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -13
  97. package/types/excalidraw/components/HandButton.d.ts +0 -10
  98. package/types/excalidraw/components/HelpButton.d.ts +0 -7
  99. package/types/excalidraw/components/HelpDialog.d.ts +0 -4
  100. package/types/excalidraw/components/HintViewer.d.ts +0 -10
  101. package/types/excalidraw/components/IconPicker.d.ts +0 -14
  102. package/types/excalidraw/components/ImageExportDialog.d.ts +0 -14
  103. package/types/excalidraw/components/InitializeApp.d.ts +0 -10
  104. package/types/excalidraw/components/InlineIcon.d.ts +0 -3
  105. package/types/excalidraw/components/Island.d.ts +0 -10
  106. package/types/excalidraw/components/JSONExportDialog.d.ts +0 -15
  107. package/types/excalidraw/components/LaserPointerButton.d.ts +0 -10
  108. package/types/excalidraw/components/LayerUI.d.ts +0 -30
  109. package/types/excalidraw/components/LibraryMenu.d.ts +0 -24
  110. package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +0 -7
  111. package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +0 -9
  112. package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +0 -17
  113. package/types/excalidraw/components/LibraryMenuItems.d.ts +0 -14
  114. package/types/excalidraw/components/LibraryMenuSection.d.ts +0 -23
  115. package/types/excalidraw/components/LibraryUnit.d.ts +0 -14
  116. package/types/excalidraw/components/LoadingMessage.d.ts +0 -5
  117. package/types/excalidraw/components/LockButton.d.ts +0 -10
  118. package/types/excalidraw/components/MagicButton.d.ts +0 -9
  119. package/types/excalidraw/components/MagicSettings.d.ts +0 -8
  120. package/types/excalidraw/components/MobileMenu.d.ts +0 -24
  121. package/types/excalidraw/components/Modal.d.ts +0 -14
  122. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +0 -17
  123. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +0 -17
  124. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +0 -22
  125. package/types/excalidraw/components/Paragraph.d.ts +0 -4
  126. package/types/excalidraw/components/PasteChartDialog.d.ts +0 -8
  127. package/types/excalidraw/components/PenModeButton.d.ts +0 -12
  128. package/types/excalidraw/components/Popover.d.ts +0 -15
  129. package/types/excalidraw/components/ProjectName.d.ts +0 -10
  130. package/types/excalidraw/components/PropertiesPopover.d.ts +0 -15
  131. package/types/excalidraw/components/PublishLibrary.d.ts +0 -16
  132. package/types/excalidraw/components/QuickSearch.d.ts +0 -9
  133. package/types/excalidraw/components/RadioGroup.d.ts +0 -13
  134. package/types/excalidraw/components/SVGLayer.d.ts +0 -7
  135. package/types/excalidraw/components/ScrollableList.d.ts +0 -8
  136. package/types/excalidraw/components/SearchMenu.d.ts +0 -5
  137. package/types/excalidraw/components/Section.d.ts +0 -6
  138. package/types/excalidraw/components/ShareableLinkDialog.d.ts +0 -7
  139. package/types/excalidraw/components/Sidebar/Sidebar.d.ts +0 -76
  140. package/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +0 -7
  141. package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +0 -8
  142. package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +0 -9
  143. package/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +0 -6
  144. package/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +0 -6
  145. package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +0 -6
  146. package/types/excalidraw/components/Sidebar/common.d.ts +0 -33
  147. package/types/excalidraw/components/Spinner.d.ts +0 -8
  148. package/types/excalidraw/components/Stack.d.ts +0 -16
  149. package/types/excalidraw/components/Stats/Angle.d.ts +0 -11
  150. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -10
  151. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +0 -10
  152. package/types/excalidraw/components/Stats/Collapsible.d.ts +0 -8
  153. package/types/excalidraw/components/Stats/Dimension.d.ts +0 -11
  154. package/types/excalidraw/components/Stats/DragInput.d.ts +0 -34
  155. package/types/excalidraw/components/Stats/FontSize.d.ts +0 -11
  156. package/types/excalidraw/components/Stats/MultiAngle.d.ts +0 -11
  157. package/types/excalidraw/components/Stats/MultiDimension.d.ts +0 -14
  158. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +0 -12
  159. package/types/excalidraw/components/Stats/MultiPosition.d.ts +0 -14
  160. package/types/excalidraw/components/Stats/Position.d.ts +0 -12
  161. package/types/excalidraw/components/Stats/index.d.ts +0 -35
  162. package/types/excalidraw/components/Stats/utils.d.ts +0 -26
  163. package/types/excalidraw/components/Stats.d.ts +0 -11
  164. package/types/excalidraw/components/Switch.d.ts +0 -9
  165. package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +0 -14
  166. package/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +0 -29
  167. package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +0 -9
  168. package/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +0 -7
  169. package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +0 -17
  170. package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +0 -4
  171. package/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +0 -1
  172. package/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +0 -7
  173. package/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +0 -8
  174. package/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +0 -6
  175. package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +0 -11
  176. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  177. package/types/excalidraw/components/TTDDialog/common.d.ts +0 -32
  178. package/types/excalidraw/components/TextField.d.ts +0 -21
  179. package/types/excalidraw/components/Toast.d.ts +0 -9
  180. package/types/excalidraw/components/ToolButton.d.ts +0 -49
  181. package/types/excalidraw/components/Tooltip.d.ts +0 -18
  182. package/types/excalidraw/components/Trans.d.ts +0 -9
  183. package/types/excalidraw/components/UserList.d.ts +0 -18
  184. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +0 -29
  185. package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +0 -14
  186. package/types/excalidraw/components/canvases/StaticCanvas.d.ts +0 -19
  187. package/types/excalidraw/components/canvases/index.d.ts +0 -3
  188. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +0 -86
  189. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +0 -15
  190. package/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +0 -11
  191. package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +0 -45
  192. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +0 -7
  193. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -17
  194. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +0 -7
  195. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +0 -15
  196. package/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +0 -5
  197. package/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +0 -10
  198. package/types/excalidraw/components/dropdownMenu/common.d.ts +0 -6
  199. package/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +0 -3
  200. package/types/excalidraw/components/footer/Footer.d.ts +0 -12
  201. package/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  202. package/types/excalidraw/components/hoc/withInternalFallback.d.ts +0 -4
  203. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +0 -18
  204. package/types/excalidraw/components/hyperlink/helpers.d.ts +0 -8
  205. package/types/excalidraw/components/icons.d.ts +0 -212
  206. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -9
  207. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +0 -64
  208. package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -80
  209. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -59
  210. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  211. package/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -86
  212. package/types/excalidraw/constants.d.ts +0 -322
  213. package/types/excalidraw/context/tunnels.d.ts +0 -20
  214. package/types/excalidraw/context/ui-appState.d.ts +0 -4
  215. package/types/excalidraw/cursor.d.ts +0 -6
  216. package/types/excalidraw/data/EditorLocalStorage.d.ts +0 -8
  217. package/types/excalidraw/data/ai/types.d.ts +0 -242
  218. package/types/excalidraw/data/blob.d.ts +0 -49
  219. package/types/excalidraw/data/encode.d.ts +0 -54
  220. package/types/excalidraw/data/encryption.d.ts +0 -9
  221. package/types/excalidraw/data/filesystem.d.ts +0 -20
  222. package/types/excalidraw/data/image.d.ts +0 -15
  223. package/types/excalidraw/data/index.d.ts +0 -22
  224. package/types/excalidraw/data/json.d.ts +0 -16
  225. package/types/excalidraw/data/library.d.ts +0 -106
  226. package/types/excalidraw/data/magic.d.ts +0 -23
  227. package/types/excalidraw/data/reconcile.d.ts +0 -6
  228. package/types/excalidraw/data/resave.d.ts +0 -5
  229. package/types/excalidraw/data/restore.d.ts +0 -21
  230. package/types/excalidraw/data/transform.d.ts +0 -81
  231. package/types/excalidraw/data/types.d.ts +0 -45
  232. package/types/excalidraw/data/url.d.ts +0 -8
  233. package/types/excalidraw/deburr.d.ts +0 -1
  234. package/types/excalidraw/dist/excalidraw.development.d.ts +0 -2
  235. package/types/excalidraw/dist/excalidraw.production.min.d.ts +0 -1
  236. package/types/excalidraw/distribute.d.ts +0 -6
  237. package/types/excalidraw/element/ElementCanvasButtons.d.ts +0 -7
  238. package/types/excalidraw/element/binding.d.ts +0 -99
  239. package/types/excalidraw/element/bounds.d.ts +0 -76
  240. package/types/excalidraw/element/collision.d.ts +0 -17
  241. package/types/excalidraw/element/containerCache.d.ts +0 -11
  242. package/types/excalidraw/element/dragElements.d.ts +0 -32
  243. package/types/excalidraw/element/embeddable.d.ts +0 -221
  244. package/types/excalidraw/element/flowchart.d.ts +0 -25
  245. package/types/excalidraw/element/heading.d.ts +0 -12
  246. package/types/excalidraw/element/image.d.ts +0 -32
  247. package/types/excalidraw/element/index.d.ts +0 -26
  248. package/types/excalidraw/element/linearElementEditor.d.ts +0 -128
  249. package/types/excalidraw/element/mutateElement.d.ts +0 -11
  250. package/types/excalidraw/element/newElement.d.ts +0 -105
  251. package/types/excalidraw/element/resizeElements.d.ts +0 -16
  252. package/types/excalidraw/element/resizeTest.d.ts +0 -15
  253. package/types/excalidraw/element/routing.d.ts +0 -12
  254. package/types/excalidraw/element/showSelectedShapeActions.d.ts +0 -3
  255. package/types/excalidraw/element/sizeHelpers.d.ts +0 -35
  256. package/types/excalidraw/element/sortElements.d.ts +0 -2
  257. package/types/excalidraw/element/textElement.d.ts +0 -73
  258. package/types/excalidraw/element/textWysiwyg.d.ts +0 -22
  259. package/types/excalidraw/element/transformHandles.d.ts +0 -55
  260. package/types/excalidraw/element/typeChecks.d.ts +0 -39
  261. package/types/excalidraw/element/types.d.ts +0 -253
  262. package/types/excalidraw/emitter.d.ts +0 -16
  263. package/types/excalidraw/entry.d.ts +0 -1
  264. package/types/excalidraw/env.d.cts +0 -1
  265. package/types/excalidraw/env.d.ts +0 -1
  266. package/types/excalidraw/errors.d.ts +0 -25
  267. package/types/excalidraw/fonts/ExcalidrawFont.d.ts +0 -37
  268. package/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +0 -35
  269. package/types/excalidraw/fonts/index.d.ts +0 -87
  270. package/types/excalidraw/fonts/metadata.d.ts +0 -37
  271. package/types/excalidraw/fonts/subset/subset-main.d.ts +0 -12
  272. package/types/excalidraw/fonts/subset/subset-shared.chunk.d.ts +0 -32
  273. package/types/excalidraw/fonts/subset/subset-worker.chunk.d.ts +0 -15
  274. package/types/excalidraw/fonts/wasm/hb-subset-bindings.d.ts +0 -45
  275. package/types/excalidraw/fonts/wasm/hb-subset-loader.d.ts +0 -13
  276. package/types/excalidraw/fonts/wasm/hb-subset-wasm.d.ts +0 -2
  277. package/types/excalidraw/fonts/wasm/hb-subset.bindings.d.ts +0 -45
  278. package/types/excalidraw/fonts/wasm/hb-subset.loader.d.ts +0 -5
  279. package/types/excalidraw/fonts/wasm/hb-subset.wasm.d.ts +0 -2
  280. package/types/excalidraw/fonts/wasm/woff2-bindings.d.ts +0 -31
  281. package/types/excalidraw/fonts/wasm/woff2-loader.d.ts +0 -14
  282. package/types/excalidraw/fonts/wasm/woff2-wasm.d.ts +0 -2
  283. package/types/excalidraw/fonts/wasm/woff2.bindings.d.ts +0 -31
  284. package/types/excalidraw/fonts/wasm/woff2.loader.d.ts +0 -6
  285. package/types/excalidraw/fonts/wasm/woff2.wasm.d.ts +0 -2
  286. package/types/excalidraw/fonts/woff2/Cascadia/index.d.ts +0 -2
  287. package/types/excalidraw/fonts/woff2/Comic/index.d.ts +0 -2
  288. package/types/excalidraw/fonts/woff2/Emoji/index.d.ts +0 -2
  289. package/types/excalidraw/fonts/woff2/Excalifont/index.d.ts +0 -2
  290. package/types/excalidraw/fonts/woff2/Helvetica/index.d.ts +0 -2
  291. package/types/excalidraw/fonts/woff2/Liberation/index.d.ts +0 -2
  292. package/types/excalidraw/fonts/woff2/Lilita/index.d.ts +0 -2
  293. package/types/excalidraw/fonts/woff2/Nunito/index.d.ts +0 -2
  294. package/types/excalidraw/fonts/woff2/Virgil/index.d.ts +0 -2
  295. package/types/excalidraw/fonts/woff2/Xiaolai/index.d.ts +0 -8
  296. package/types/excalidraw/fractionalIndex.d.ts +0 -48
  297. package/types/excalidraw/frame.d.ts +0 -63
  298. package/types/excalidraw/ga.d.ts +0 -63
  299. package/types/excalidraw/gadirections.d.ts +0 -8
  300. package/types/excalidraw/galines.d.ts +0 -22
  301. package/types/excalidraw/gapoints.d.ts +0 -7
  302. package/types/excalidraw/gatransforms.d.ts +0 -10
  303. package/types/excalidraw/gesture.d.ts +0 -6
  304. package/types/excalidraw/groups.d.ts +0 -33
  305. package/types/excalidraw/history.d.ts +0 -40
  306. package/types/excalidraw/hooks/useCallbackRefState.d.ts +0 -1
  307. package/types/excalidraw/hooks/useCopiedIndicator.d.ts +0 -5
  308. package/types/excalidraw/hooks/useCreatePortalContainer.d.ts +0 -7
  309. package/types/excalidraw/hooks/useEmitter.d.ts +0 -2
  310. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +0 -11
  311. package/types/excalidraw/hooks/useOutsideClick.d.ts +0 -19
  312. package/types/excalidraw/hooks/useScrollPosition.d.ts +0 -1
  313. package/types/excalidraw/hooks/useStable.d.ts +0 -1
  314. package/types/excalidraw/hooks/useStableCallback.d.ts +0 -4
  315. package/types/excalidraw/hooks/useTransition.d.ts +0 -2
  316. package/types/excalidraw/i18n.d.ts +0 -24
  317. package/types/excalidraw/index-node.d.ts +0 -1
  318. package/types/excalidraw/index.d.ts +0 -63
  319. package/types/excalidraw/jotai.d.ts +0 -34
  320. package/types/excalidraw/keys.d.ts +0 -82
  321. package/types/excalidraw/laser-trails.d.ts +0 -20
  322. package/types/excalidraw/main.d.ts +0 -2
  323. package/types/excalidraw/math.d.ts +0 -79
  324. package/types/excalidraw/mermaid.d.ts +0 -2
  325. package/types/excalidraw/obsidianUtils.d.ts +0 -21
  326. package/types/excalidraw/points.d.ts +0 -7
  327. package/types/excalidraw/polyfill.d.ts +0 -2
  328. package/types/excalidraw/publicPath.d.ts +0 -1
  329. package/types/excalidraw/queue.d.ts +0 -9
  330. package/types/excalidraw/random.d.ts +0 -4
  331. package/types/excalidraw/reactUtils.d.ts +0 -14
  332. package/types/excalidraw/renderer/easingFunctions.d.ts +0 -6
  333. package/types/excalidraw/renderer/helpers.d.ts +0 -13
  334. package/types/excalidraw/renderer/interactiveScene.d.ts +0 -20
  335. package/types/excalidraw/renderer/renderElement.d.ts +0 -27
  336. package/types/excalidraw/renderer/renderNewElementScene.d.ts +0 -7
  337. package/types/excalidraw/renderer/renderSnaps.d.ts +0 -2
  338. package/types/excalidraw/renderer/roundRect.d.ts +0 -11
  339. package/types/excalidraw/renderer/staticScene.d.ts +0 -11
  340. package/types/excalidraw/renderer/staticSvgScene.d.ts +0 -5
  341. package/types/excalidraw/scene/Fonts.d.ts +0 -19
  342. package/types/excalidraw/scene/Renderer.d.ts +0 -28
  343. package/types/excalidraw/scene/Scene.d.ts +0 -78
  344. package/types/excalidraw/scene/Shape.d.ts +0 -17
  345. package/types/excalidraw/scene/ShapeCache.d.ts +0 -25
  346. package/types/excalidraw/scene/comparisons.d.ts +0 -487
  347. package/types/excalidraw/scene/export.d.ts +0 -29
  348. package/types/excalidraw/scene/index.d.ts +0 -4
  349. package/types/excalidraw/scene/normalize.d.ts +0 -4
  350. package/types/excalidraw/scene/scroll.d.ts +0 -23
  351. package/types/excalidraw/scene/scrollbars.d.ts +0 -12
  352. package/types/excalidraw/scene/selection.d.ts +0 -32
  353. package/types/excalidraw/scene/types.d.ts +0 -112
  354. package/types/excalidraw/scene/zoom.d.ts +0 -12
  355. package/types/excalidraw/shapes.d.ts +0 -85
  356. package/types/excalidraw/snapping.d.ts +0 -112
  357. package/types/excalidraw/store.d.ts +0 -129
  358. package/types/excalidraw/types.d.ts +0 -718
  359. package/types/excalidraw/utility-types.d.ts +0 -31
  360. package/types/excalidraw/utils.d.ts +0 -249
  361. package/types/excalidraw/visualdebug.d.ts +0 -35
  362. package/types/excalidraw/webpack.dev.config.d.ts +0 -81
  363. package/types/excalidraw/webpack.prod.config.d.ts +0 -97
  364. package/types/excalidraw/workers.d.ts +0 -36
  365. package/types/excalidraw/zindex.d.ts +0 -6
  366. package/types/math/angle.d.ts +0 -17
  367. package/types/math/arc.d.ts +0 -6
  368. package/types/math/curve.d.ts +0 -32
  369. package/types/math/ga/ga.d.ts +0 -63
  370. package/types/math/ga/gadirections.d.ts +0 -8
  371. package/types/math/ga/galines.d.ts +0 -22
  372. package/types/math/ga/gapoints.d.ts +0 -7
  373. package/types/math/ga/gatransforms.d.ts +0 -10
  374. package/types/math/index.d.ts +0 -12
  375. package/types/math/line.d.ts +0 -26
  376. package/types/math/point.d.ts +0 -140
  377. package/types/math/polygon.d.ts +0 -5
  378. package/types/math/range.d.ts +0 -44
  379. package/types/math/segment.d.ts +0 -32
  380. package/types/math/triangle.d.ts +0 -11
  381. package/types/math/types.d.ts +0 -96
  382. package/types/math/utils.d.ts +0 -6
  383. package/types/math/vector.d.ts +0 -88
  384. package/types/utils/bbox.d.ts +0 -9
  385. package/types/utils/collision.d.ts +0 -9
  386. package/types/utils/export.d.ts +0 -44
  387. package/types/utils/geometry/geometry.d.ts +0 -89
  388. package/types/utils/geometry/shape.d.ts +0 -71
  389. package/types/utils/index.d.ts +0 -4
  390. package/types/utils/withinBounds.d.ts +0 -19
@@ -1,1884 +0,0 @@
1
- import type { Theme } from "../element/types";
2
- import "../components/ToolIcon.scss";
3
- export declare const actionChangeProjectName: {
4
- name: "changeProjectName";
5
- label: string;
6
- trackEvent: false;
7
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
8
- appState: {
9
- name: any;
10
- contextMenu: {
11
- items: import("../components/ContextMenu").ContextMenuItems;
12
- top: number;
13
- left: number;
14
- } | null;
15
- showWelcomeScreen: boolean;
16
- isLoading: boolean;
17
- errorMessage: import("react").ReactNode;
18
- activeEmbeddable: {
19
- element: import("../element/types").NonDeletedExcalidrawElement;
20
- state: "active" | "hover";
21
- } | null;
22
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
23
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
24
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
25
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
26
- isBindingEnabled: boolean;
27
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
28
- suggestedBindings: import("../element/binding").SuggestedBinding[];
29
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
30
- frameRendering: {
31
- enabled: boolean;
32
- name: boolean;
33
- outline: boolean;
34
- clip: boolean;
35
- };
36
- editingFrame: string | null;
37
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
38
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
39
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
40
- activeTool: {
41
- lastActiveTool: import("../types").ActiveTool | null;
42
- locked: boolean;
43
- } & import("../types").ActiveTool;
44
- penMode: boolean;
45
- penDetected: boolean;
46
- exportBackground: boolean;
47
- exportEmbedScene: boolean;
48
- exportWithDarkMode: boolean;
49
- exportScale: number;
50
- currentItemStrokeColor: string;
51
- currentItemBackgroundColor: string;
52
- currentItemFillStyle: import("../element/types").FillStyle;
53
- currentItemStrokeWidth: number;
54
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
55
- currentItemRoughness: number;
56
- currentItemOpacity: number;
57
- currentItemFontFamily: number;
58
- currentItemFontSize: number;
59
- currentItemTextAlign: string;
60
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
61
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
62
- currentHoveredFontFamily: number | null;
63
- currentItemRoundness: import("../element/types").StrokeRoundness;
64
- currentItemArrowType: "round" | "sharp" | "elbow";
65
- viewBackgroundColor: string;
66
- scrollX: number;
67
- scrollY: number;
68
- cursorButton: "up" | "down";
69
- scrolledOutside: boolean;
70
- isResizing: boolean;
71
- isRotating: boolean;
72
- zoom: Readonly<{
73
- value: import("../types").NormalizedZoomValue;
74
- }>;
75
- openMenu: "canvas" | "shape" | null;
76
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
77
- openSidebar: {
78
- name: string;
79
- tab?: string | undefined;
80
- } | null;
81
- openDialog: {
82
- name: "imageExport" | "help" | "jsonExport";
83
- } | {
84
- name: "ttd";
85
- tab: "mermaid" | "text-to-diagram";
86
- } | {
87
- name: "commandPalette";
88
- } | 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
- toast: {
100
- message: string;
101
- closable?: boolean | undefined;
102
- duration?: number | undefined;
103
- } | null;
104
- zenModeEnabled: boolean;
105
- theme: Theme;
106
- gridSize: number;
107
- gridStep: number;
108
- gridModeEnabled: boolean;
109
- viewModeEnabled: boolean;
110
- selectedGroupIds: {
111
- [groupId: string]: boolean;
112
- };
113
- editingGroupId: string | null;
114
- width: number;
115
- height: number;
116
- offsetTop: number;
117
- offsetLeft: number;
118
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
119
- collaborators: Map<import("../types").SocketId, Readonly<{
120
- pointer?: import("../types").CollaboratorPointer | undefined;
121
- button?: "up" | "down" | undefined;
122
- selectedElementIds?: Readonly<{
123
- [id: string]: true;
124
- }> | undefined;
125
- username?: string | null | undefined;
126
- userState?: import("../types").UserIdleState | undefined;
127
- color?: {
128
- background: string;
129
- stroke: string;
130
- } | undefined;
131
- avatarUrl?: string | undefined;
132
- id?: string | undefined;
133
- socketId?: import("../types").SocketId | undefined;
134
- isCurrentUser?: boolean | undefined;
135
- isInCall?: boolean | undefined;
136
- isSpeaking?: boolean | undefined;
137
- isMuted?: boolean | undefined;
138
- }>>;
139
- stats: {
140
- open: boolean;
141
- panels: number;
142
- };
143
- currentChartType: import("../element/types").ChartType;
144
- pasteDialog: {
145
- shown: false;
146
- data: null;
147
- } | {
148
- shown: true;
149
- data: import("../charts").Spreadsheet;
150
- };
151
- pendingImageElementId: string | null;
152
- showHyperlinkPopup: false | "info" | "editor";
153
- linkOpacity: number;
154
- trayModeEnabled: boolean;
155
- colorPalette?: {
156
- canvasBackground: import("../colors").ColorPaletteCustom;
157
- elementBackground: import("../colors").ColorPaletteCustom;
158
- elementStroke: import("../colors").ColorPaletteCustom;
159
- topPicks: {
160
- canvasBackground: [string, string, string, string, string];
161
- elementStroke: [string, string, string, string, string];
162
- elementBackground: [string, string, string, string, string];
163
- };
164
- } | undefined;
165
- allowWheelZoom?: boolean | undefined;
166
- allowPinchZoom?: boolean | undefined;
167
- pinnedScripts?: string[] | undefined;
168
- customPens?: any[] | undefined;
169
- currentStrokeOptions?: any;
170
- resetCustomPen?: any;
171
- gridColor: {
172
- Bold: string;
173
- Regular: string;
174
- };
175
- highlightSearchResult: boolean;
176
- dynamicStyle: {
177
- [x: string]: string;
178
- };
179
- frameColor: {
180
- stroke: string;
181
- fill: string;
182
- nameColor: string;
183
- };
184
- invertBindingBehaviour: boolean;
185
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
186
- snapLines: readonly import("../snapping").SnapLine[];
187
- originSnapOffset: {
188
- x: number;
189
- y: number;
190
- } | null;
191
- objectsSnapModeEnabled: boolean;
192
- userToFollow: import("../types").UserToFollow | null;
193
- followedBy: Set<import("../types").SocketId>;
194
- searchMatches: readonly {
195
- id: string;
196
- focus: boolean;
197
- matchedLines: {
198
- offsetX: number;
199
- offsetY: number;
200
- width: number;
201
- height: number;
202
- }[];
203
- }[];
204
- };
205
- storeAction: "none";
206
- };
207
- PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => JSX.Element;
208
- } & {
209
- keyTest?: undefined;
210
- };
211
- export declare const actionChangeExportScale: {
212
- name: "changeExportScale";
213
- label: string;
214
- trackEvent: {
215
- category: "export";
216
- action: string;
217
- };
218
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
219
- appState: {
220
- exportScale: any;
221
- contextMenu: {
222
- items: import("../components/ContextMenu").ContextMenuItems;
223
- top: number;
224
- left: number;
225
- } | null;
226
- showWelcomeScreen: boolean;
227
- isLoading: boolean;
228
- errorMessage: import("react").ReactNode;
229
- activeEmbeddable: {
230
- element: import("../element/types").NonDeletedExcalidrawElement;
231
- state: "active" | "hover";
232
- } | null;
233
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
234
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
235
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
236
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
237
- isBindingEnabled: boolean;
238
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
239
- suggestedBindings: import("../element/binding").SuggestedBinding[];
240
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
241
- frameRendering: {
242
- enabled: boolean;
243
- name: boolean;
244
- outline: boolean;
245
- clip: boolean;
246
- };
247
- editingFrame: string | null;
248
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
249
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
250
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
251
- activeTool: {
252
- lastActiveTool: import("../types").ActiveTool | null;
253
- locked: boolean;
254
- } & import("../types").ActiveTool;
255
- penMode: boolean;
256
- penDetected: boolean;
257
- exportBackground: boolean;
258
- exportEmbedScene: boolean;
259
- exportWithDarkMode: boolean;
260
- currentItemStrokeColor: string;
261
- currentItemBackgroundColor: string;
262
- currentItemFillStyle: import("../element/types").FillStyle;
263
- currentItemStrokeWidth: number;
264
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
265
- currentItemRoughness: number;
266
- currentItemOpacity: number;
267
- currentItemFontFamily: number;
268
- currentItemFontSize: number;
269
- currentItemTextAlign: string;
270
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
271
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
272
- currentHoveredFontFamily: number | null;
273
- currentItemRoundness: import("../element/types").StrokeRoundness;
274
- currentItemArrowType: "round" | "sharp" | "elbow";
275
- viewBackgroundColor: string;
276
- scrollX: number;
277
- scrollY: number;
278
- cursorButton: "up" | "down";
279
- scrolledOutside: boolean;
280
- name: string | null;
281
- isResizing: boolean;
282
- isRotating: boolean;
283
- zoom: Readonly<{
284
- value: import("../types").NormalizedZoomValue;
285
- }>;
286
- openMenu: "canvas" | "shape" | null;
287
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
288
- openSidebar: {
289
- name: string;
290
- tab?: string | undefined;
291
- } | null;
292
- openDialog: {
293
- name: "imageExport" | "help" | "jsonExport";
294
- } | {
295
- name: "ttd";
296
- tab: "mermaid" | "text-to-diagram";
297
- } | {
298
- name: "commandPalette";
299
- } | null;
300
- defaultSidebarDockedPreference: boolean;
301
- lastPointerDownWith: import("../element/types").PointerType;
302
- selectedElementIds: Readonly<{
303
- [id: string]: true;
304
- }>;
305
- previousSelectedElementIds: {
306
- [id: string]: true;
307
- };
308
- selectedElementsAreBeingDragged: boolean;
309
- shouldCacheIgnoreZoom: boolean;
310
- toast: {
311
- message: string;
312
- closable?: boolean | undefined;
313
- duration?: number | undefined;
314
- } | null;
315
- zenModeEnabled: boolean;
316
- theme: Theme;
317
- gridSize: number;
318
- gridStep: number;
319
- gridModeEnabled: boolean;
320
- viewModeEnabled: boolean;
321
- selectedGroupIds: {
322
- [groupId: string]: boolean;
323
- };
324
- editingGroupId: string | null;
325
- width: number;
326
- height: number;
327
- offsetTop: number;
328
- offsetLeft: number;
329
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
330
- collaborators: Map<import("../types").SocketId, Readonly<{
331
- pointer?: import("../types").CollaboratorPointer | undefined;
332
- button?: "up" | "down" | undefined;
333
- selectedElementIds?: Readonly<{
334
- [id: string]: true;
335
- }> | undefined;
336
- username?: string | null | undefined;
337
- userState?: import("../types").UserIdleState | undefined;
338
- color?: {
339
- background: string;
340
- stroke: string;
341
- } | undefined;
342
- avatarUrl?: string | undefined;
343
- id?: string | undefined;
344
- socketId?: import("../types").SocketId | undefined;
345
- isCurrentUser?: boolean | undefined;
346
- isInCall?: boolean | undefined;
347
- isSpeaking?: boolean | undefined;
348
- isMuted?: boolean | undefined;
349
- }>>;
350
- stats: {
351
- open: boolean;
352
- panels: number;
353
- };
354
- currentChartType: import("../element/types").ChartType;
355
- pasteDialog: {
356
- shown: false;
357
- data: null;
358
- } | {
359
- shown: true;
360
- data: import("../charts").Spreadsheet;
361
- };
362
- pendingImageElementId: string | null;
363
- showHyperlinkPopup: false | "info" | "editor";
364
- linkOpacity: number;
365
- trayModeEnabled: boolean;
366
- colorPalette?: {
367
- canvasBackground: import("../colors").ColorPaletteCustom;
368
- elementBackground: import("../colors").ColorPaletteCustom;
369
- elementStroke: import("../colors").ColorPaletteCustom;
370
- topPicks: {
371
- canvasBackground: [string, string, string, string, string];
372
- elementStroke: [string, string, string, string, string];
373
- elementBackground: [string, string, string, string, string];
374
- };
375
- } | undefined;
376
- allowWheelZoom?: boolean | undefined;
377
- allowPinchZoom?: boolean | undefined;
378
- pinnedScripts?: string[] | undefined;
379
- customPens?: any[] | undefined;
380
- currentStrokeOptions?: any;
381
- resetCustomPen?: any;
382
- gridColor: {
383
- Bold: string;
384
- Regular: string;
385
- };
386
- highlightSearchResult: boolean;
387
- dynamicStyle: {
388
- [x: string]: string;
389
- };
390
- frameColor: {
391
- stroke: string;
392
- fill: string;
393
- nameColor: string;
394
- };
395
- invertBindingBehaviour: boolean;
396
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
397
- snapLines: readonly import("../snapping").SnapLine[];
398
- originSnapOffset: {
399
- x: number;
400
- y: number;
401
- } | null;
402
- objectsSnapModeEnabled: boolean;
403
- userToFollow: import("../types").UserToFollow | null;
404
- followedBy: Set<import("../types").SocketId>;
405
- searchMatches: readonly {
406
- id: string;
407
- focus: boolean;
408
- matchedLines: {
409
- offsetX: number;
410
- offsetY: number;
411
- width: number;
412
- height: number;
413
- }[];
414
- }[];
415
- };
416
- storeAction: "none";
417
- };
418
- PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
419
- } & {
420
- keyTest?: undefined;
421
- };
422
- export declare const actionChangeExportBackground: {
423
- name: "changeExportBackground";
424
- label: string;
425
- trackEvent: {
426
- category: "export";
427
- action: string;
428
- };
429
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
430
- appState: {
431
- exportBackground: any;
432
- contextMenu: {
433
- items: import("../components/ContextMenu").ContextMenuItems;
434
- top: number;
435
- left: number;
436
- } | null;
437
- showWelcomeScreen: boolean;
438
- isLoading: boolean;
439
- errorMessage: import("react").ReactNode;
440
- activeEmbeddable: {
441
- element: import("../element/types").NonDeletedExcalidrawElement;
442
- state: "active" | "hover";
443
- } | null;
444
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
445
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
446
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
447
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
448
- isBindingEnabled: boolean;
449
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
450
- suggestedBindings: import("../element/binding").SuggestedBinding[];
451
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
452
- frameRendering: {
453
- enabled: boolean;
454
- name: boolean;
455
- outline: boolean;
456
- clip: boolean;
457
- };
458
- editingFrame: string | null;
459
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
460
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
461
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
462
- activeTool: {
463
- lastActiveTool: import("../types").ActiveTool | null;
464
- locked: boolean;
465
- } & import("../types").ActiveTool;
466
- penMode: boolean;
467
- penDetected: boolean;
468
- exportEmbedScene: boolean;
469
- exportWithDarkMode: boolean;
470
- exportScale: number;
471
- currentItemStrokeColor: string;
472
- currentItemBackgroundColor: string;
473
- currentItemFillStyle: import("../element/types").FillStyle;
474
- currentItemStrokeWidth: number;
475
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
476
- currentItemRoughness: number;
477
- currentItemOpacity: number;
478
- currentItemFontFamily: number;
479
- currentItemFontSize: number;
480
- currentItemTextAlign: string;
481
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
482
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
483
- currentHoveredFontFamily: number | null;
484
- currentItemRoundness: import("../element/types").StrokeRoundness;
485
- currentItemArrowType: "round" | "sharp" | "elbow";
486
- viewBackgroundColor: string;
487
- scrollX: number;
488
- scrollY: number;
489
- cursorButton: "up" | "down";
490
- scrolledOutside: boolean;
491
- name: string | null;
492
- isResizing: boolean;
493
- isRotating: boolean;
494
- zoom: Readonly<{
495
- value: import("../types").NormalizedZoomValue;
496
- }>;
497
- openMenu: "canvas" | "shape" | null;
498
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
499
- openSidebar: {
500
- name: string;
501
- tab?: string | undefined;
502
- } | null;
503
- openDialog: {
504
- name: "imageExport" | "help" | "jsonExport";
505
- } | {
506
- name: "ttd";
507
- tab: "mermaid" | "text-to-diagram";
508
- } | {
509
- name: "commandPalette";
510
- } | null;
511
- defaultSidebarDockedPreference: boolean;
512
- lastPointerDownWith: import("../element/types").PointerType;
513
- selectedElementIds: Readonly<{
514
- [id: string]: true;
515
- }>;
516
- previousSelectedElementIds: {
517
- [id: string]: true;
518
- };
519
- selectedElementsAreBeingDragged: boolean;
520
- shouldCacheIgnoreZoom: boolean;
521
- toast: {
522
- message: string;
523
- closable?: boolean | undefined;
524
- duration?: number | undefined;
525
- } | null;
526
- zenModeEnabled: boolean;
527
- theme: Theme;
528
- gridSize: number;
529
- gridStep: number;
530
- gridModeEnabled: boolean;
531
- viewModeEnabled: boolean;
532
- selectedGroupIds: {
533
- [groupId: string]: boolean;
534
- };
535
- editingGroupId: string | null;
536
- width: number;
537
- height: number;
538
- offsetTop: number;
539
- offsetLeft: number;
540
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
541
- collaborators: Map<import("../types").SocketId, Readonly<{
542
- pointer?: import("../types").CollaboratorPointer | undefined;
543
- button?: "up" | "down" | undefined;
544
- selectedElementIds?: Readonly<{
545
- [id: string]: true;
546
- }> | undefined;
547
- username?: string | null | undefined;
548
- userState?: import("../types").UserIdleState | undefined;
549
- color?: {
550
- background: string;
551
- stroke: string;
552
- } | undefined;
553
- avatarUrl?: string | undefined;
554
- id?: string | undefined;
555
- socketId?: import("../types").SocketId | undefined;
556
- isCurrentUser?: boolean | undefined;
557
- isInCall?: boolean | undefined;
558
- isSpeaking?: boolean | undefined;
559
- isMuted?: boolean | undefined;
560
- }>>;
561
- stats: {
562
- open: boolean;
563
- panels: number;
564
- };
565
- currentChartType: import("../element/types").ChartType;
566
- pasteDialog: {
567
- shown: false;
568
- data: null;
569
- } | {
570
- shown: true;
571
- data: import("../charts").Spreadsheet;
572
- };
573
- pendingImageElementId: string | null;
574
- showHyperlinkPopup: false | "info" | "editor";
575
- linkOpacity: number;
576
- trayModeEnabled: boolean;
577
- colorPalette?: {
578
- canvasBackground: import("../colors").ColorPaletteCustom;
579
- elementBackground: import("../colors").ColorPaletteCustom;
580
- elementStroke: import("../colors").ColorPaletteCustom;
581
- topPicks: {
582
- canvasBackground: [string, string, string, string, string];
583
- elementStroke: [string, string, string, string, string];
584
- elementBackground: [string, string, string, string, string];
585
- };
586
- } | undefined;
587
- allowWheelZoom?: boolean | undefined;
588
- allowPinchZoom?: boolean | undefined;
589
- pinnedScripts?: string[] | undefined;
590
- customPens?: any[] | undefined;
591
- currentStrokeOptions?: any;
592
- resetCustomPen?: any;
593
- gridColor: {
594
- Bold: string;
595
- Regular: string;
596
- };
597
- highlightSearchResult: boolean;
598
- dynamicStyle: {
599
- [x: string]: string;
600
- };
601
- frameColor: {
602
- stroke: string;
603
- fill: string;
604
- nameColor: string;
605
- };
606
- invertBindingBehaviour: boolean;
607
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
608
- snapLines: readonly import("../snapping").SnapLine[];
609
- originSnapOffset: {
610
- x: number;
611
- y: number;
612
- } | null;
613
- objectsSnapModeEnabled: boolean;
614
- userToFollow: import("../types").UserToFollow | null;
615
- followedBy: Set<import("../types").SocketId>;
616
- searchMatches: readonly {
617
- id: string;
618
- focus: boolean;
619
- matchedLines: {
620
- offsetX: number;
621
- offsetY: number;
622
- width: number;
623
- height: number;
624
- }[];
625
- }[];
626
- };
627
- storeAction: "none";
628
- };
629
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
630
- } & {
631
- keyTest?: undefined;
632
- };
633
- export declare const actionChangeExportEmbedScene: {
634
- name: "changeExportEmbedScene";
635
- label: string;
636
- trackEvent: {
637
- category: "export";
638
- action: string;
639
- };
640
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
641
- appState: {
642
- exportEmbedScene: any;
643
- contextMenu: {
644
- items: import("../components/ContextMenu").ContextMenuItems;
645
- top: number;
646
- left: number;
647
- } | null;
648
- showWelcomeScreen: boolean;
649
- isLoading: boolean;
650
- errorMessage: import("react").ReactNode;
651
- activeEmbeddable: {
652
- element: import("../element/types").NonDeletedExcalidrawElement;
653
- state: "active" | "hover";
654
- } | null;
655
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
656
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
657
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
658
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
659
- isBindingEnabled: boolean;
660
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
661
- suggestedBindings: import("../element/binding").SuggestedBinding[];
662
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
663
- frameRendering: {
664
- enabled: boolean;
665
- name: boolean;
666
- outline: boolean;
667
- clip: boolean;
668
- };
669
- editingFrame: string | null;
670
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
671
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
672
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
673
- activeTool: {
674
- lastActiveTool: import("../types").ActiveTool | null;
675
- locked: boolean;
676
- } & import("../types").ActiveTool;
677
- penMode: boolean;
678
- penDetected: boolean;
679
- exportBackground: boolean;
680
- exportWithDarkMode: boolean;
681
- exportScale: number;
682
- currentItemStrokeColor: string;
683
- currentItemBackgroundColor: string;
684
- currentItemFillStyle: import("../element/types").FillStyle;
685
- currentItemStrokeWidth: number;
686
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
687
- currentItemRoughness: number;
688
- currentItemOpacity: number;
689
- currentItemFontFamily: number;
690
- currentItemFontSize: number;
691
- currentItemTextAlign: string;
692
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
693
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
694
- currentHoveredFontFamily: number | null;
695
- currentItemRoundness: import("../element/types").StrokeRoundness;
696
- currentItemArrowType: "round" | "sharp" | "elbow";
697
- viewBackgroundColor: string;
698
- scrollX: number;
699
- scrollY: number;
700
- cursorButton: "up" | "down";
701
- scrolledOutside: boolean;
702
- name: string | null;
703
- isResizing: boolean;
704
- isRotating: boolean;
705
- zoom: Readonly<{
706
- value: import("../types").NormalizedZoomValue;
707
- }>;
708
- openMenu: "canvas" | "shape" | null;
709
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
710
- openSidebar: {
711
- name: string;
712
- tab?: string | undefined;
713
- } | null;
714
- openDialog: {
715
- name: "imageExport" | "help" | "jsonExport";
716
- } | {
717
- name: "ttd";
718
- tab: "mermaid" | "text-to-diagram";
719
- } | {
720
- name: "commandPalette";
721
- } | null;
722
- defaultSidebarDockedPreference: boolean;
723
- lastPointerDownWith: import("../element/types").PointerType;
724
- selectedElementIds: Readonly<{
725
- [id: string]: true;
726
- }>;
727
- previousSelectedElementIds: {
728
- [id: string]: true;
729
- };
730
- selectedElementsAreBeingDragged: boolean;
731
- shouldCacheIgnoreZoom: boolean;
732
- toast: {
733
- message: string;
734
- closable?: boolean | undefined;
735
- duration?: number | undefined;
736
- } | null;
737
- zenModeEnabled: boolean;
738
- theme: Theme;
739
- gridSize: number;
740
- gridStep: number;
741
- gridModeEnabled: boolean;
742
- viewModeEnabled: boolean;
743
- selectedGroupIds: {
744
- [groupId: string]: boolean;
745
- };
746
- editingGroupId: string | null;
747
- width: number;
748
- height: number;
749
- offsetTop: number;
750
- offsetLeft: number;
751
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
752
- collaborators: Map<import("../types").SocketId, Readonly<{
753
- pointer?: import("../types").CollaboratorPointer | undefined;
754
- button?: "up" | "down" | undefined;
755
- selectedElementIds?: Readonly<{
756
- [id: string]: true;
757
- }> | undefined;
758
- username?: string | null | undefined;
759
- userState?: import("../types").UserIdleState | undefined;
760
- color?: {
761
- background: string;
762
- stroke: string;
763
- } | undefined;
764
- avatarUrl?: string | undefined;
765
- id?: string | undefined;
766
- socketId?: import("../types").SocketId | undefined;
767
- isCurrentUser?: boolean | undefined;
768
- isInCall?: boolean | undefined;
769
- isSpeaking?: boolean | undefined;
770
- isMuted?: boolean | undefined;
771
- }>>;
772
- stats: {
773
- open: boolean;
774
- panels: number;
775
- };
776
- currentChartType: import("../element/types").ChartType;
777
- pasteDialog: {
778
- shown: false;
779
- data: null;
780
- } | {
781
- shown: true;
782
- data: import("../charts").Spreadsheet;
783
- };
784
- pendingImageElementId: string | null;
785
- showHyperlinkPopup: false | "info" | "editor";
786
- linkOpacity: number;
787
- trayModeEnabled: boolean;
788
- colorPalette?: {
789
- canvasBackground: import("../colors").ColorPaletteCustom;
790
- elementBackground: import("../colors").ColorPaletteCustom;
791
- elementStroke: import("../colors").ColorPaletteCustom;
792
- topPicks: {
793
- canvasBackground: [string, string, string, string, string];
794
- elementStroke: [string, string, string, string, string];
795
- elementBackground: [string, string, string, string, string];
796
- };
797
- } | undefined;
798
- allowWheelZoom?: boolean | undefined;
799
- allowPinchZoom?: boolean | undefined;
800
- pinnedScripts?: string[] | undefined;
801
- customPens?: any[] | undefined;
802
- currentStrokeOptions?: any;
803
- resetCustomPen?: any;
804
- gridColor: {
805
- Bold: string;
806
- Regular: string;
807
- };
808
- highlightSearchResult: boolean;
809
- dynamicStyle: {
810
- [x: string]: string;
811
- };
812
- frameColor: {
813
- stroke: string;
814
- fill: string;
815
- nameColor: string;
816
- };
817
- invertBindingBehaviour: boolean;
818
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
819
- snapLines: readonly import("../snapping").SnapLine[];
820
- originSnapOffset: {
821
- x: number;
822
- y: number;
823
- } | null;
824
- objectsSnapModeEnabled: boolean;
825
- userToFollow: import("../types").UserToFollow | null;
826
- followedBy: Set<import("../types").SocketId>;
827
- searchMatches: readonly {
828
- id: string;
829
- focus: boolean;
830
- matchedLines: {
831
- offsetX: number;
832
- offsetY: number;
833
- width: number;
834
- height: number;
835
- }[];
836
- }[];
837
- };
838
- storeAction: "none";
839
- };
840
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
841
- } & {
842
- keyTest?: undefined;
843
- };
844
- export declare const actionSaveToActiveFile: {
845
- name: "saveToActiveFile";
846
- label: string;
847
- icon: JSX.Element;
848
- trackEvent: {
849
- category: "export";
850
- };
851
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
852
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
853
- storeAction: "none";
854
- appState: {
855
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
856
- toast: {
857
- message: string;
858
- } | null;
859
- contextMenu: {
860
- items: import("../components/ContextMenu").ContextMenuItems;
861
- top: number;
862
- left: number;
863
- } | null;
864
- showWelcomeScreen: boolean;
865
- isLoading: boolean;
866
- errorMessage: import("react").ReactNode;
867
- activeEmbeddable: {
868
- element: import("../element/types").NonDeletedExcalidrawElement;
869
- state: "active" | "hover";
870
- } | null;
871
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
872
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
873
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
874
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
875
- isBindingEnabled: boolean;
876
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
877
- suggestedBindings: import("../element/binding").SuggestedBinding[];
878
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
879
- frameRendering: {
880
- enabled: boolean;
881
- name: boolean;
882
- outline: boolean;
883
- clip: boolean;
884
- };
885
- editingFrame: string | null;
886
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
887
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
888
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
889
- activeTool: {
890
- lastActiveTool: import("../types").ActiveTool | null;
891
- locked: boolean;
892
- } & import("../types").ActiveTool;
893
- penMode: boolean;
894
- penDetected: boolean;
895
- exportBackground: boolean;
896
- exportEmbedScene: boolean;
897
- exportWithDarkMode: boolean;
898
- exportScale: number;
899
- currentItemStrokeColor: string;
900
- currentItemBackgroundColor: string;
901
- currentItemFillStyle: import("../element/types").FillStyle;
902
- currentItemStrokeWidth: number;
903
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
904
- currentItemRoughness: number;
905
- currentItemOpacity: number;
906
- currentItemFontFamily: number;
907
- currentItemFontSize: number;
908
- currentItemTextAlign: string;
909
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
910
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
911
- currentHoveredFontFamily: number | null;
912
- currentItemRoundness: import("../element/types").StrokeRoundness;
913
- currentItemArrowType: "round" | "sharp" | "elbow";
914
- viewBackgroundColor: string;
915
- scrollX: number;
916
- scrollY: number;
917
- cursorButton: "up" | "down";
918
- scrolledOutside: boolean;
919
- name: string | null;
920
- isResizing: boolean;
921
- isRotating: boolean;
922
- zoom: Readonly<{
923
- value: import("../types").NormalizedZoomValue;
924
- }>;
925
- openMenu: "canvas" | "shape" | null;
926
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
927
- openSidebar: {
928
- name: string;
929
- tab?: string | undefined;
930
- } | null;
931
- openDialog: {
932
- name: "imageExport" | "help" | "jsonExport";
933
- } | {
934
- name: "ttd";
935
- tab: "mermaid" | "text-to-diagram";
936
- } | {
937
- name: "commandPalette";
938
- } | null;
939
- defaultSidebarDockedPreference: boolean;
940
- lastPointerDownWith: import("../element/types").PointerType;
941
- selectedElementIds: Readonly<{
942
- [id: string]: true;
943
- }>;
944
- previousSelectedElementIds: {
945
- [id: string]: true;
946
- };
947
- selectedElementsAreBeingDragged: boolean;
948
- shouldCacheIgnoreZoom: boolean;
949
- zenModeEnabled: boolean;
950
- theme: Theme;
951
- gridSize: number;
952
- gridStep: number;
953
- gridModeEnabled: boolean;
954
- viewModeEnabled: boolean;
955
- selectedGroupIds: {
956
- [groupId: string]: boolean;
957
- };
958
- editingGroupId: string | null;
959
- width: number;
960
- height: number;
961
- offsetTop: number;
962
- offsetLeft: number;
963
- collaborators: Map<import("../types").SocketId, Readonly<{
964
- pointer?: import("../types").CollaboratorPointer | undefined;
965
- button?: "up" | "down" | undefined;
966
- selectedElementIds?: Readonly<{
967
- [id: string]: true;
968
- }> | undefined;
969
- username?: string | null | undefined;
970
- userState?: import("../types").UserIdleState | undefined;
971
- color?: {
972
- background: string;
973
- stroke: string;
974
- } | undefined;
975
- avatarUrl?: string | undefined;
976
- id?: string | undefined;
977
- socketId?: import("../types").SocketId | undefined;
978
- isCurrentUser?: boolean | undefined;
979
- isInCall?: boolean | undefined;
980
- isSpeaking?: boolean | undefined;
981
- isMuted?: boolean | undefined;
982
- }>>;
983
- stats: {
984
- open: boolean;
985
- panels: number;
986
- };
987
- currentChartType: import("../element/types").ChartType;
988
- pasteDialog: {
989
- shown: false;
990
- data: null;
991
- } | {
992
- shown: true;
993
- data: import("../charts").Spreadsheet;
994
- };
995
- pendingImageElementId: string | null;
996
- showHyperlinkPopup: false | "info" | "editor";
997
- linkOpacity: number;
998
- trayModeEnabled: boolean;
999
- colorPalette?: {
1000
- canvasBackground: import("../colors").ColorPaletteCustom;
1001
- elementBackground: import("../colors").ColorPaletteCustom;
1002
- elementStroke: import("../colors").ColorPaletteCustom;
1003
- topPicks: {
1004
- canvasBackground: [string, string, string, string, string];
1005
- elementStroke: [string, string, string, string, string];
1006
- elementBackground: [string, string, string, string, string];
1007
- };
1008
- } | undefined;
1009
- allowWheelZoom?: boolean | undefined;
1010
- allowPinchZoom?: boolean | undefined;
1011
- pinnedScripts?: string[] | undefined;
1012
- customPens?: any[] | undefined;
1013
- currentStrokeOptions?: any;
1014
- resetCustomPen?: any;
1015
- gridColor: {
1016
- Bold: string;
1017
- Regular: string;
1018
- };
1019
- highlightSearchResult: boolean;
1020
- dynamicStyle: {
1021
- [x: string]: string;
1022
- };
1023
- frameColor: {
1024
- stroke: string;
1025
- fill: string;
1026
- nameColor: string;
1027
- };
1028
- invertBindingBehaviour: boolean;
1029
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1030
- snapLines: readonly import("../snapping").SnapLine[];
1031
- originSnapOffset: {
1032
- x: number;
1033
- y: number;
1034
- } | null;
1035
- objectsSnapModeEnabled: boolean;
1036
- userToFollow: import("../types").UserToFollow | null;
1037
- followedBy: Set<import("../types").SocketId>;
1038
- searchMatches: readonly {
1039
- id: string;
1040
- focus: boolean;
1041
- matchedLines: {
1042
- offsetX: number;
1043
- offsetY: number;
1044
- width: number;
1045
- height: number;
1046
- }[];
1047
- }[];
1048
- };
1049
- } | {
1050
- storeAction: "none";
1051
- appState?: undefined;
1052
- }>;
1053
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1054
- } & {
1055
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1056
- };
1057
- export declare const actionSaveFileToDisk: {
1058
- name: "saveFileToDisk";
1059
- label: string;
1060
- icon: JSX.Element;
1061
- viewMode: true;
1062
- trackEvent: {
1063
- category: "export";
1064
- };
1065
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
1066
- storeAction: "none";
1067
- appState: {
1068
- openDialog: null;
1069
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1070
- toast: {
1071
- message: string;
1072
- };
1073
- contextMenu: {
1074
- items: import("../components/ContextMenu").ContextMenuItems;
1075
- top: number;
1076
- left: number;
1077
- } | null;
1078
- showWelcomeScreen: boolean;
1079
- isLoading: boolean;
1080
- errorMessage: import("react").ReactNode;
1081
- activeEmbeddable: {
1082
- element: import("../element/types").NonDeletedExcalidrawElement;
1083
- state: "active" | "hover";
1084
- } | null;
1085
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1086
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1087
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1088
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1089
- isBindingEnabled: boolean;
1090
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1091
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1092
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1093
- frameRendering: {
1094
- enabled: boolean;
1095
- name: boolean;
1096
- outline: boolean;
1097
- clip: boolean;
1098
- };
1099
- editingFrame: string | null;
1100
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1101
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1102
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1103
- activeTool: {
1104
- lastActiveTool: import("../types").ActiveTool | null;
1105
- locked: boolean;
1106
- } & import("../types").ActiveTool;
1107
- penMode: boolean;
1108
- penDetected: boolean;
1109
- exportBackground: boolean;
1110
- exportEmbedScene: boolean;
1111
- exportWithDarkMode: boolean;
1112
- exportScale: number;
1113
- currentItemStrokeColor: string;
1114
- currentItemBackgroundColor: string;
1115
- currentItemFillStyle: import("../element/types").FillStyle;
1116
- currentItemStrokeWidth: number;
1117
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1118
- currentItemRoughness: number;
1119
- currentItemOpacity: number;
1120
- currentItemFontFamily: number;
1121
- currentItemFontSize: number;
1122
- currentItemTextAlign: string;
1123
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1124
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1125
- currentHoveredFontFamily: number | null;
1126
- currentItemRoundness: import("../element/types").StrokeRoundness;
1127
- currentItemArrowType: "round" | "sharp" | "elbow";
1128
- viewBackgroundColor: string;
1129
- scrollX: number;
1130
- scrollY: number;
1131
- cursorButton: "up" | "down";
1132
- scrolledOutside: boolean;
1133
- name: string | null;
1134
- isResizing: boolean;
1135
- isRotating: boolean;
1136
- zoom: Readonly<{
1137
- value: import("../types").NormalizedZoomValue;
1138
- }>;
1139
- openMenu: "canvas" | "shape" | null;
1140
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1141
- openSidebar: {
1142
- name: string;
1143
- tab?: string | undefined;
1144
- } | null;
1145
- defaultSidebarDockedPreference: boolean;
1146
- lastPointerDownWith: import("../element/types").PointerType;
1147
- selectedElementIds: Readonly<{
1148
- [id: string]: true;
1149
- }>;
1150
- previousSelectedElementIds: {
1151
- [id: string]: true;
1152
- };
1153
- selectedElementsAreBeingDragged: boolean;
1154
- shouldCacheIgnoreZoom: boolean;
1155
- zenModeEnabled: boolean;
1156
- theme: Theme;
1157
- gridSize: number;
1158
- gridStep: number;
1159
- gridModeEnabled: boolean;
1160
- viewModeEnabled: boolean;
1161
- selectedGroupIds: {
1162
- [groupId: string]: boolean;
1163
- };
1164
- editingGroupId: string | null;
1165
- width: number;
1166
- height: number;
1167
- offsetTop: number;
1168
- offsetLeft: number;
1169
- collaborators: Map<import("../types").SocketId, Readonly<{
1170
- pointer?: import("../types").CollaboratorPointer | undefined;
1171
- button?: "up" | "down" | undefined;
1172
- selectedElementIds?: Readonly<{
1173
- [id: string]: true;
1174
- }> | undefined;
1175
- username?: string | null | undefined;
1176
- userState?: import("../types").UserIdleState | undefined;
1177
- color?: {
1178
- background: string;
1179
- stroke: string;
1180
- } | undefined;
1181
- avatarUrl?: string | undefined;
1182
- id?: string | undefined;
1183
- socketId?: import("../types").SocketId | undefined;
1184
- isCurrentUser?: boolean | undefined;
1185
- isInCall?: boolean | undefined;
1186
- isSpeaking?: boolean | undefined;
1187
- isMuted?: boolean | undefined;
1188
- }>>;
1189
- stats: {
1190
- open: boolean;
1191
- panels: number;
1192
- };
1193
- currentChartType: import("../element/types").ChartType;
1194
- pasteDialog: {
1195
- shown: false;
1196
- data: null;
1197
- } | {
1198
- shown: true;
1199
- data: import("../charts").Spreadsheet;
1200
- };
1201
- pendingImageElementId: string | null;
1202
- showHyperlinkPopup: false | "info" | "editor";
1203
- linkOpacity: number;
1204
- trayModeEnabled: boolean;
1205
- colorPalette?: {
1206
- canvasBackground: import("../colors").ColorPaletteCustom;
1207
- elementBackground: import("../colors").ColorPaletteCustom;
1208
- elementStroke: import("../colors").ColorPaletteCustom;
1209
- topPicks: {
1210
- canvasBackground: [string, string, string, string, string];
1211
- elementStroke: [string, string, string, string, string];
1212
- elementBackground: [string, string, string, string, string];
1213
- };
1214
- } | undefined;
1215
- allowWheelZoom?: boolean | undefined;
1216
- allowPinchZoom?: boolean | undefined;
1217
- pinnedScripts?: string[] | undefined;
1218
- customPens?: any[] | undefined;
1219
- currentStrokeOptions?: any;
1220
- resetCustomPen?: any;
1221
- gridColor: {
1222
- Bold: string;
1223
- Regular: string;
1224
- };
1225
- highlightSearchResult: boolean;
1226
- dynamicStyle: {
1227
- [x: string]: string;
1228
- };
1229
- frameColor: {
1230
- stroke: string;
1231
- fill: string;
1232
- nameColor: string;
1233
- };
1234
- invertBindingBehaviour: boolean;
1235
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1236
- snapLines: readonly import("../snapping").SnapLine[];
1237
- originSnapOffset: {
1238
- x: number;
1239
- y: number;
1240
- } | null;
1241
- objectsSnapModeEnabled: boolean;
1242
- userToFollow: import("../types").UserToFollow | null;
1243
- followedBy: Set<import("../types").SocketId>;
1244
- searchMatches: readonly {
1245
- id: string;
1246
- focus: boolean;
1247
- matchedLines: {
1248
- offsetX: number;
1249
- offsetY: number;
1250
- width: number;
1251
- height: number;
1252
- }[];
1253
- }[];
1254
- };
1255
- } | {
1256
- storeAction: "none";
1257
- appState?: undefined;
1258
- }>;
1259
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1260
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
1261
- } & {
1262
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1263
- };
1264
- export declare const actionLoadScene: {
1265
- name: "loadScene";
1266
- label: string;
1267
- trackEvent: {
1268
- category: "export";
1269
- };
1270
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1271
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
1272
- elements: import("../element/types").OrderedExcalidrawElement[];
1273
- appState: {
1274
- contextMenu: {
1275
- items: import("../components/ContextMenu").ContextMenuItems;
1276
- top: number;
1277
- left: number;
1278
- } | null;
1279
- showWelcomeScreen: boolean;
1280
- isLoading: boolean;
1281
- errorMessage: import("react").ReactNode;
1282
- activeEmbeddable: {
1283
- element: import("../element/types").NonDeletedExcalidrawElement;
1284
- state: "active" | "hover";
1285
- } | null;
1286
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1287
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1288
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1289
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1290
- isBindingEnabled: boolean;
1291
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1292
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1293
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1294
- frameRendering: {
1295
- enabled: boolean;
1296
- name: boolean;
1297
- outline: boolean;
1298
- clip: boolean;
1299
- };
1300
- editingFrame: string | null;
1301
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1302
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1303
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1304
- activeTool: {
1305
- lastActiveTool: import("../types").ActiveTool | null;
1306
- locked: boolean;
1307
- } & import("../types").ActiveTool;
1308
- penMode: boolean;
1309
- penDetected: boolean;
1310
- exportBackground: boolean;
1311
- exportEmbedScene: boolean;
1312
- exportWithDarkMode: boolean;
1313
- exportScale: number;
1314
- currentItemStrokeColor: string;
1315
- currentItemBackgroundColor: string;
1316
- currentItemFillStyle: import("../element/types").FillStyle;
1317
- currentItemStrokeWidth: number;
1318
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1319
- currentItemRoughness: number;
1320
- currentItemOpacity: number;
1321
- currentItemFontFamily: number;
1322
- currentItemFontSize: number;
1323
- currentItemTextAlign: string;
1324
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1325
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1326
- currentHoveredFontFamily: number | null;
1327
- currentItemRoundness: import("../element/types").StrokeRoundness;
1328
- currentItemArrowType: "round" | "sharp" | "elbow";
1329
- viewBackgroundColor: string;
1330
- scrollX: number;
1331
- scrollY: number;
1332
- cursorButton: "up" | "down";
1333
- scrolledOutside: boolean;
1334
- name: string | null;
1335
- isResizing: boolean;
1336
- isRotating: boolean;
1337
- zoom: Readonly<{
1338
- value: import("../types").NormalizedZoomValue;
1339
- }>;
1340
- openMenu: "canvas" | "shape" | null;
1341
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1342
- openSidebar: {
1343
- name: string;
1344
- tab?: string | undefined;
1345
- } | null;
1346
- openDialog: {
1347
- name: "imageExport" | "help" | "jsonExport";
1348
- } | {
1349
- name: "ttd";
1350
- tab: "mermaid" | "text-to-diagram";
1351
- } | {
1352
- name: "commandPalette";
1353
- } | null;
1354
- defaultSidebarDockedPreference: boolean;
1355
- lastPointerDownWith: import("../element/types").PointerType;
1356
- selectedElementIds: Readonly<{
1357
- [id: string]: true;
1358
- }>;
1359
- previousSelectedElementIds: {
1360
- [id: string]: true;
1361
- };
1362
- selectedElementsAreBeingDragged: boolean;
1363
- shouldCacheIgnoreZoom: boolean;
1364
- toast: {
1365
- message: string;
1366
- closable?: boolean | undefined;
1367
- duration?: number | undefined;
1368
- } | null;
1369
- zenModeEnabled: boolean;
1370
- theme: Theme;
1371
- gridSize: number;
1372
- gridStep: number;
1373
- gridModeEnabled: boolean;
1374
- viewModeEnabled: boolean;
1375
- selectedGroupIds: {
1376
- [groupId: string]: boolean;
1377
- };
1378
- editingGroupId: string | null;
1379
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1380
- collaborators: Map<import("../types").SocketId, Readonly<{
1381
- pointer?: import("../types").CollaboratorPointer | undefined;
1382
- button?: "up" | "down" | undefined;
1383
- selectedElementIds?: Readonly<{
1384
- [id: string]: true;
1385
- }> | undefined;
1386
- username?: string | null | undefined;
1387
- userState?: import("../types").UserIdleState | undefined;
1388
- color?: {
1389
- background: string;
1390
- stroke: string;
1391
- } | undefined;
1392
- avatarUrl?: string | undefined;
1393
- id?: string | undefined;
1394
- socketId?: import("../types").SocketId | undefined;
1395
- isCurrentUser?: boolean | undefined;
1396
- isInCall?: boolean | undefined;
1397
- isSpeaking?: boolean | undefined;
1398
- isMuted?: boolean | undefined;
1399
- }>>;
1400
- stats: {
1401
- open: boolean;
1402
- panels: number;
1403
- };
1404
- currentChartType: import("../element/types").ChartType;
1405
- pasteDialog: {
1406
- shown: false;
1407
- data: null;
1408
- } | {
1409
- shown: true;
1410
- data: import("../charts").Spreadsheet;
1411
- };
1412
- pendingImageElementId: string | null;
1413
- showHyperlinkPopup: false | "info" | "editor";
1414
- linkOpacity: number;
1415
- trayModeEnabled: boolean;
1416
- colorPalette?: {
1417
- canvasBackground: import("../colors").ColorPaletteCustom;
1418
- elementBackground: import("../colors").ColorPaletteCustom;
1419
- elementStroke: import("../colors").ColorPaletteCustom;
1420
- topPicks: {
1421
- canvasBackground: [string, string, string, string, string];
1422
- elementStroke: [string, string, string, string, string];
1423
- elementBackground: [string, string, string, string, string];
1424
- };
1425
- } | undefined;
1426
- allowWheelZoom?: boolean | undefined;
1427
- allowPinchZoom?: boolean | undefined;
1428
- pinnedScripts?: string[] | undefined;
1429
- customPens?: any[] | undefined;
1430
- currentStrokeOptions?: any;
1431
- resetCustomPen?: any;
1432
- gridColor: {
1433
- Bold: string;
1434
- Regular: string;
1435
- };
1436
- highlightSearchResult: boolean;
1437
- dynamicStyle: {
1438
- [x: string]: string;
1439
- };
1440
- frameColor: {
1441
- stroke: string;
1442
- fill: string;
1443
- nameColor: string;
1444
- };
1445
- invertBindingBehaviour: boolean;
1446
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1447
- snapLines: readonly import("../snapping").SnapLine[];
1448
- originSnapOffset: {
1449
- x: number;
1450
- y: number;
1451
- } | null;
1452
- objectsSnapModeEnabled: boolean;
1453
- userToFollow: import("../types").UserToFollow | null;
1454
- followedBy: Set<import("../types").SocketId>;
1455
- searchMatches: readonly {
1456
- id: string;
1457
- focus: boolean;
1458
- matchedLines: {
1459
- offsetX: number;
1460
- offsetY: number;
1461
- width: number;
1462
- height: number;
1463
- }[];
1464
- }[];
1465
- };
1466
- files: import("../types").BinaryFiles;
1467
- storeAction: "capture";
1468
- } | {
1469
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
1470
- appState: {
1471
- errorMessage: any;
1472
- contextMenu: {
1473
- items: import("../components/ContextMenu").ContextMenuItems;
1474
- top: number;
1475
- left: number;
1476
- } | null;
1477
- showWelcomeScreen: boolean;
1478
- isLoading: boolean;
1479
- activeEmbeddable: {
1480
- element: import("../element/types").NonDeletedExcalidrawElement;
1481
- state: "active" | "hover";
1482
- } | null;
1483
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1484
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1485
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1486
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1487
- isBindingEnabled: boolean;
1488
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1489
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1490
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1491
- frameRendering: {
1492
- enabled: boolean;
1493
- name: boolean;
1494
- outline: boolean;
1495
- clip: boolean;
1496
- };
1497
- editingFrame: string | null;
1498
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1499
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1500
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1501
- activeTool: {
1502
- lastActiveTool: import("../types").ActiveTool | null;
1503
- locked: boolean;
1504
- } & import("../types").ActiveTool;
1505
- penMode: boolean;
1506
- penDetected: boolean;
1507
- exportBackground: boolean;
1508
- exportEmbedScene: boolean;
1509
- exportWithDarkMode: boolean;
1510
- exportScale: number;
1511
- currentItemStrokeColor: string;
1512
- currentItemBackgroundColor: string;
1513
- currentItemFillStyle: import("../element/types").FillStyle;
1514
- currentItemStrokeWidth: number;
1515
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1516
- currentItemRoughness: number;
1517
- currentItemOpacity: number;
1518
- currentItemFontFamily: number;
1519
- currentItemFontSize: number;
1520
- currentItemTextAlign: string;
1521
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1522
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1523
- currentHoveredFontFamily: number | null;
1524
- currentItemRoundness: import("../element/types").StrokeRoundness;
1525
- currentItemArrowType: "round" | "sharp" | "elbow";
1526
- viewBackgroundColor: string;
1527
- scrollX: number;
1528
- scrollY: number;
1529
- cursorButton: "up" | "down";
1530
- scrolledOutside: boolean;
1531
- name: string | null;
1532
- isResizing: boolean;
1533
- isRotating: boolean;
1534
- zoom: Readonly<{
1535
- value: import("../types").NormalizedZoomValue;
1536
- }>;
1537
- openMenu: "canvas" | "shape" | null;
1538
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1539
- openSidebar: {
1540
- name: string;
1541
- tab?: string | undefined;
1542
- } | null;
1543
- openDialog: {
1544
- name: "imageExport" | "help" | "jsonExport";
1545
- } | {
1546
- name: "ttd";
1547
- tab: "mermaid" | "text-to-diagram";
1548
- } | {
1549
- name: "commandPalette";
1550
- } | null;
1551
- defaultSidebarDockedPreference: boolean;
1552
- lastPointerDownWith: import("../element/types").PointerType;
1553
- selectedElementIds: Readonly<{
1554
- [id: string]: true;
1555
- }>;
1556
- previousSelectedElementIds: {
1557
- [id: string]: true;
1558
- };
1559
- selectedElementsAreBeingDragged: boolean;
1560
- shouldCacheIgnoreZoom: boolean;
1561
- toast: {
1562
- message: string;
1563
- closable?: boolean | undefined;
1564
- duration?: number | undefined;
1565
- } | null;
1566
- zenModeEnabled: boolean;
1567
- theme: Theme;
1568
- gridSize: number;
1569
- gridStep: number;
1570
- gridModeEnabled: boolean;
1571
- viewModeEnabled: boolean;
1572
- selectedGroupIds: {
1573
- [groupId: string]: boolean;
1574
- };
1575
- editingGroupId: string | null;
1576
- width: number;
1577
- height: number;
1578
- offsetTop: number;
1579
- offsetLeft: number;
1580
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1581
- collaborators: Map<import("../types").SocketId, Readonly<{
1582
- pointer?: import("../types").CollaboratorPointer | undefined;
1583
- button?: "up" | "down" | undefined;
1584
- selectedElementIds?: Readonly<{
1585
- [id: string]: true;
1586
- }> | undefined;
1587
- username?: string | null | undefined;
1588
- userState?: import("../types").UserIdleState | undefined;
1589
- color?: {
1590
- background: string;
1591
- stroke: string;
1592
- } | undefined;
1593
- avatarUrl?: string | undefined;
1594
- id?: string | undefined;
1595
- socketId?: import("../types").SocketId | undefined;
1596
- isCurrentUser?: boolean | undefined;
1597
- isInCall?: boolean | undefined;
1598
- isSpeaking?: boolean | undefined;
1599
- isMuted?: boolean | undefined;
1600
- }>>;
1601
- stats: {
1602
- open: boolean;
1603
- panels: number;
1604
- };
1605
- currentChartType: import("../element/types").ChartType;
1606
- pasteDialog: {
1607
- shown: false;
1608
- data: null;
1609
- } | {
1610
- shown: true;
1611
- data: import("../charts").Spreadsheet;
1612
- };
1613
- pendingImageElementId: string | null;
1614
- showHyperlinkPopup: false | "info" | "editor";
1615
- linkOpacity: number;
1616
- trayModeEnabled: boolean;
1617
- colorPalette?: {
1618
- canvasBackground: import("../colors").ColorPaletteCustom;
1619
- elementBackground: import("../colors").ColorPaletteCustom;
1620
- elementStroke: import("../colors").ColorPaletteCustom;
1621
- topPicks: {
1622
- canvasBackground: [string, string, string, string, string];
1623
- elementStroke: [string, string, string, string, string];
1624
- elementBackground: [string, string, string, string, string];
1625
- };
1626
- } | undefined;
1627
- allowWheelZoom?: boolean | undefined;
1628
- allowPinchZoom?: boolean | undefined;
1629
- pinnedScripts?: string[] | undefined;
1630
- customPens?: any[] | undefined;
1631
- currentStrokeOptions?: any;
1632
- resetCustomPen?: any;
1633
- gridColor: {
1634
- Bold: string;
1635
- Regular: string;
1636
- };
1637
- highlightSearchResult: boolean;
1638
- dynamicStyle: {
1639
- [x: string]: string;
1640
- };
1641
- frameColor: {
1642
- stroke: string;
1643
- fill: string;
1644
- nameColor: string;
1645
- };
1646
- invertBindingBehaviour: boolean;
1647
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1648
- snapLines: readonly import("../snapping").SnapLine[];
1649
- originSnapOffset: {
1650
- x: number;
1651
- y: number;
1652
- } | null;
1653
- objectsSnapModeEnabled: boolean;
1654
- userToFollow: import("../types").UserToFollow | null;
1655
- followedBy: Set<import("../types").SocketId>;
1656
- searchMatches: readonly {
1657
- id: string;
1658
- focus: boolean;
1659
- matchedLines: {
1660
- offsetX: number;
1661
- offsetY: number;
1662
- width: number;
1663
- height: number;
1664
- }[];
1665
- }[];
1666
- };
1667
- files: import("../types").BinaryFiles;
1668
- storeAction: "none";
1669
- }>;
1670
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1671
- } & {
1672
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1673
- };
1674
- export declare const actionExportWithDarkMode: {
1675
- name: "exportWithDarkMode";
1676
- label: string;
1677
- trackEvent: {
1678
- category: "export";
1679
- action: string;
1680
- };
1681
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1682
- appState: {
1683
- exportWithDarkMode: any;
1684
- contextMenu: {
1685
- items: import("../components/ContextMenu").ContextMenuItems;
1686
- top: number;
1687
- left: number;
1688
- } | null;
1689
- showWelcomeScreen: boolean;
1690
- isLoading: boolean;
1691
- errorMessage: import("react").ReactNode;
1692
- activeEmbeddable: {
1693
- element: import("../element/types").NonDeletedExcalidrawElement;
1694
- state: "active" | "hover";
1695
- } | null;
1696
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1697
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1698
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1699
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1700
- isBindingEnabled: boolean;
1701
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1702
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1703
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1704
- frameRendering: {
1705
- enabled: boolean;
1706
- name: boolean;
1707
- outline: boolean;
1708
- clip: boolean;
1709
- };
1710
- editingFrame: string | null;
1711
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1712
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1713
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1714
- activeTool: {
1715
- lastActiveTool: import("../types").ActiveTool | null;
1716
- locked: boolean;
1717
- } & import("../types").ActiveTool;
1718
- penMode: boolean;
1719
- penDetected: boolean;
1720
- exportBackground: boolean;
1721
- exportEmbedScene: boolean;
1722
- exportScale: number;
1723
- currentItemStrokeColor: string;
1724
- currentItemBackgroundColor: string;
1725
- currentItemFillStyle: import("../element/types").FillStyle;
1726
- currentItemStrokeWidth: number;
1727
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1728
- currentItemRoughness: number;
1729
- currentItemOpacity: number;
1730
- currentItemFontFamily: number;
1731
- currentItemFontSize: number;
1732
- currentItemTextAlign: string;
1733
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1734
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1735
- currentHoveredFontFamily: number | null;
1736
- currentItemRoundness: import("../element/types").StrokeRoundness;
1737
- currentItemArrowType: "round" | "sharp" | "elbow";
1738
- viewBackgroundColor: string;
1739
- scrollX: number;
1740
- scrollY: number;
1741
- cursorButton: "up" | "down";
1742
- scrolledOutside: boolean;
1743
- name: string | null;
1744
- isResizing: boolean;
1745
- isRotating: boolean;
1746
- zoom: Readonly<{
1747
- value: import("../types").NormalizedZoomValue;
1748
- }>;
1749
- openMenu: "canvas" | "shape" | null;
1750
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1751
- openSidebar: {
1752
- name: string;
1753
- tab?: string | undefined;
1754
- } | null;
1755
- openDialog: {
1756
- name: "imageExport" | "help" | "jsonExport";
1757
- } | {
1758
- name: "ttd";
1759
- tab: "mermaid" | "text-to-diagram";
1760
- } | {
1761
- name: "commandPalette";
1762
- } | null;
1763
- defaultSidebarDockedPreference: boolean;
1764
- lastPointerDownWith: import("../element/types").PointerType;
1765
- selectedElementIds: Readonly<{
1766
- [id: string]: true;
1767
- }>;
1768
- previousSelectedElementIds: {
1769
- [id: string]: true;
1770
- };
1771
- selectedElementsAreBeingDragged: boolean;
1772
- shouldCacheIgnoreZoom: boolean;
1773
- toast: {
1774
- message: string;
1775
- closable?: boolean | undefined;
1776
- duration?: number | undefined;
1777
- } | null;
1778
- zenModeEnabled: boolean;
1779
- theme: Theme;
1780
- gridSize: number;
1781
- gridStep: number;
1782
- gridModeEnabled: boolean;
1783
- viewModeEnabled: boolean;
1784
- selectedGroupIds: {
1785
- [groupId: string]: boolean;
1786
- };
1787
- editingGroupId: string | null;
1788
- width: number;
1789
- height: number;
1790
- offsetTop: number;
1791
- offsetLeft: number;
1792
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1793
- collaborators: Map<import("../types").SocketId, Readonly<{
1794
- pointer?: import("../types").CollaboratorPointer | undefined;
1795
- button?: "up" | "down" | undefined;
1796
- selectedElementIds?: Readonly<{
1797
- [id: string]: true;
1798
- }> | undefined;
1799
- username?: string | null | undefined;
1800
- userState?: import("../types").UserIdleState | undefined;
1801
- color?: {
1802
- background: string;
1803
- stroke: string;
1804
- } | undefined;
1805
- avatarUrl?: string | undefined;
1806
- id?: string | undefined;
1807
- socketId?: import("../types").SocketId | undefined;
1808
- isCurrentUser?: boolean | undefined;
1809
- isInCall?: boolean | undefined;
1810
- isSpeaking?: boolean | undefined;
1811
- isMuted?: boolean | undefined;
1812
- }>>;
1813
- stats: {
1814
- open: boolean;
1815
- panels: number;
1816
- };
1817
- currentChartType: import("../element/types").ChartType;
1818
- pasteDialog: {
1819
- shown: false;
1820
- data: null;
1821
- } | {
1822
- shown: true;
1823
- data: import("../charts").Spreadsheet;
1824
- };
1825
- pendingImageElementId: string | null;
1826
- showHyperlinkPopup: false | "info" | "editor";
1827
- linkOpacity: number;
1828
- trayModeEnabled: boolean;
1829
- colorPalette?: {
1830
- canvasBackground: import("../colors").ColorPaletteCustom;
1831
- elementBackground: import("../colors").ColorPaletteCustom;
1832
- elementStroke: import("../colors").ColorPaletteCustom;
1833
- topPicks: {
1834
- canvasBackground: [string, string, string, string, string];
1835
- elementStroke: [string, string, string, string, string];
1836
- elementBackground: [string, string, string, string, string];
1837
- };
1838
- } | undefined;
1839
- allowWheelZoom?: boolean | undefined;
1840
- allowPinchZoom?: boolean | undefined;
1841
- pinnedScripts?: string[] | undefined;
1842
- customPens?: any[] | undefined;
1843
- currentStrokeOptions?: any;
1844
- resetCustomPen?: any;
1845
- gridColor: {
1846
- Bold: string;
1847
- Regular: string;
1848
- };
1849
- highlightSearchResult: boolean;
1850
- dynamicStyle: {
1851
- [x: string]: string;
1852
- };
1853
- frameColor: {
1854
- stroke: string;
1855
- fill: string;
1856
- nameColor: string;
1857
- };
1858
- invertBindingBehaviour: boolean;
1859
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1860
- snapLines: readonly import("../snapping").SnapLine[];
1861
- originSnapOffset: {
1862
- x: number;
1863
- y: number;
1864
- } | null;
1865
- objectsSnapModeEnabled: boolean;
1866
- userToFollow: import("../types").UserToFollow | null;
1867
- followedBy: Set<import("../types").SocketId>;
1868
- searchMatches: readonly {
1869
- id: string;
1870
- focus: boolean;
1871
- matchedLines: {
1872
- offsetX: number;
1873
- offsetY: number;
1874
- width: number;
1875
- height: number;
1876
- }[];
1877
- }[];
1878
- };
1879
- storeAction: "none";
1880
- };
1881
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1882
- } & {
1883
- keyTest?: undefined;
1884
- };