@zsviczian/excalidraw 0.18.0-60 → 0.18.0-62

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 (397) hide show
  1. package/dist/excalidraw.development.js +113 -113
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +2 -2
  4. package/types/common/src/binary-heap.d.ts +12 -12
  5. package/types/common/src/colors.d.ts +62 -62
  6. package/types/common/src/commonObsidianUtils.d.ts +20 -20
  7. package/types/common/src/constants.d.ts +357 -360
  8. package/types/common/src/editorInterface.d.ts +35 -35
  9. package/types/common/src/emitter.d.ts +16 -16
  10. package/types/common/src/font-metadata.d.ts +46 -48
  11. package/types/common/src/index.d.ts +15 -15
  12. package/types/common/src/keys.d.ts +189 -189
  13. package/types/common/src/points.d.ts +9 -9
  14. package/types/common/src/promise-pool.d.ts +6 -6
  15. package/types/common/src/queue.d.ts +9 -9
  16. package/types/common/src/random.d.ts +4 -4
  17. package/types/common/src/url.d.ts +7 -7
  18. package/types/common/src/utility-types.d.ts +37 -37
  19. package/types/common/src/utils.d.ts +279 -273
  20. package/types/common/src/visualdebug.d.ts +41 -41
  21. package/types/element/src/Scene.d.ts +80 -80
  22. package/types/element/src/align.d.ts +8 -8
  23. package/types/element/src/binding.d.ts +123 -122
  24. package/types/element/src/bounds.d.ts +89 -89
  25. package/types/element/src/collision.d.ts +36 -36
  26. package/types/element/src/comparisons.d.ts +8 -8
  27. package/types/element/src/containerCache.d.ts +11 -11
  28. package/types/element/src/cropElement.d.ts +19 -19
  29. package/types/element/src/delta.d.ts +228 -228
  30. package/types/element/src/distance.d.ts +3 -3
  31. package/types/element/src/distribute.d.ts +7 -7
  32. package/types/element/src/dragElements.d.ts +33 -33
  33. package/types/element/src/duplicate.d.ts +63 -63
  34. package/types/element/src/easingFunctions.d.ts +6 -6
  35. package/types/element/src/elbowArrow.d.ts +17 -17
  36. package/types/element/src/elementLink.d.ts +13 -13
  37. package/types/element/src/embeddable.d.ts +10 -10
  38. package/types/element/src/flowchart.d.ts +26 -26
  39. package/types/element/src/fractionalIndex.d.ts +57 -57
  40. package/types/element/src/frame.d.ts +74 -70
  41. package/types/element/src/groups.d.ts +34 -34
  42. package/types/element/src/heading.d.ts +16 -15
  43. package/types/element/src/image.d.ts +22 -32
  44. package/types/element/src/index.d.ts +55 -55
  45. package/types/element/src/linearElementEditor.d.ts +113 -113
  46. package/types/element/src/mutateElement.d.ts +23 -21
  47. package/types/element/src/newElement.d.ts +64 -64
  48. package/types/element/src/positionElementsOnGrid.d.ts +2 -2
  49. package/types/element/src/renderElement.d.ts +31 -31
  50. package/types/element/src/resizeElements.d.ts +39 -39
  51. package/types/element/src/resizeTest.d.ts +16 -16
  52. package/types/element/src/selection.d.ts +34 -38
  53. package/types/element/src/shape.d.ts +42 -42
  54. package/types/element/src/showSelectedShapeActions.d.ts +3 -3
  55. package/types/element/src/sizeHelpers.d.ts +35 -35
  56. package/types/element/src/sortElements.d.ts +2 -2
  57. package/types/element/src/store.d.ts +237 -237
  58. package/types/element/src/textElement.d.ts +40 -40
  59. package/types/element/src/textMeasurements.d.ts +39 -41
  60. package/types/element/src/textWrapping.d.ts +13 -13
  61. package/types/element/src/transformHandles.d.ts +36 -56
  62. package/types/element/src/typeChecks.d.ts +56 -56
  63. package/types/element/src/types.d.ts +304 -304
  64. package/types/element/src/utils.d.ts +34 -32
  65. package/types/element/src/zindex.d.ts +13 -13
  66. package/types/excalidraw/actions/actionAddToLibrary.d.ts +599 -662
  67. package/types/excalidraw/actions/actionAlign.d.ts +109 -109
  68. package/types/excalidraw/actions/actionBoundText.d.ts +436 -478
  69. package/types/excalidraw/actions/actionCanvas.d.ts +2920 -3204
  70. package/types/excalidraw/actions/actionClipboard.d.ts +475 -517
  71. package/types/excalidraw/actions/actionCropEditor.d.ts +212 -233
  72. package/types/excalidraw/actions/actionDeleteSelected.d.ts +633 -700
  73. package/types/excalidraw/actions/actionDistribute.d.ts +34 -34
  74. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +17 -17
  75. package/types/excalidraw/actions/actionElementLink.d.ts +232 -253
  76. package/types/excalidraw/actions/actionElementLock.d.ts +422 -464
  77. package/types/excalidraw/actions/actionEmbeddable.d.ts +209 -230
  78. package/types/excalidraw/actions/actionExport.d.ts +835 -919
  79. package/types/excalidraw/actions/actionFinalize.d.ts +13 -13
  80. package/types/excalidraw/actions/actionFlip.d.ts +34 -34
  81. package/types/excalidraw/actions/actionFrame.d.ts +1315 -1435
  82. package/types/excalidraw/actions/actionGroup.d.ts +426 -476
  83. package/types/excalidraw/actions/actionHistory.d.ts +6 -6
  84. package/types/excalidraw/actions/actionLinearEditor.d.ts +709 -766
  85. package/types/excalidraw/actions/actionLink.d.ts +213 -234
  86. package/types/excalidraw/actions/actionMenu.d.ts +201 -222
  87. package/types/excalidraw/actions/actionNavigate.d.ts +20 -22
  88. package/types/excalidraw/actions/actionProperties.d.ts +695 -758
  89. package/types/excalidraw/actions/actionSelectAll.d.ts +208 -233
  90. package/types/excalidraw/actions/actionStyles.d.ts +226 -247
  91. package/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -17
  92. package/types/excalidraw/actions/actionToggleGridMode.d.ts +215 -236
  93. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +213 -234
  94. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +204 -225
  95. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -19
  96. package/types/excalidraw/actions/actionToggleStats.d.ts +212 -233
  97. package/types/excalidraw/actions/actionToggleViewMode.d.ts +213 -234
  98. package/types/excalidraw/actions/actionToggleZenMode.d.ts +213 -234
  99. package/types/excalidraw/actions/actionTrayMenu.d.ts +208 -229
  100. package/types/excalidraw/actions/actionZindex.d.ts +74 -74
  101. package/types/excalidraw/actions/index.d.ts +30 -30
  102. package/types/excalidraw/actions/manager.d.ts +21 -21
  103. package/types/excalidraw/actions/register.d.ts +5 -5
  104. package/types/excalidraw/actions/shortcuts.d.ts +4 -4
  105. package/types/excalidraw/actions/types.d.ts +47 -47
  106. package/types/excalidraw/analytics.d.ts +1 -1
  107. package/types/excalidraw/animated-trail.d.ts +39 -39
  108. package/types/excalidraw/animation-frame-handler.d.ts +16 -16
  109. package/types/excalidraw/appState.d.ts +105 -105
  110. package/types/excalidraw/charts.d.ts +27 -27
  111. package/types/excalidraw/clients.d.ts +14 -14
  112. package/types/excalidraw/clipboard.d.ts +105 -129
  113. package/types/excalidraw/components/Actions.d.ts +48 -48
  114. package/types/excalidraw/components/ActiveConfirmDialog.d.ts +4 -4
  115. package/types/excalidraw/components/App.d.ts +572 -581
  116. package/types/excalidraw/components/Avatar.d.ts +11 -11
  117. package/types/excalidraw/components/BraveMeasureTextError.d.ts +2 -2
  118. package/types/excalidraw/components/Button.d.ts +17 -17
  119. package/types/excalidraw/components/ButtonIcon.d.ts +16 -16
  120. package/types/excalidraw/components/ButtonIconCycle.d.ts +11 -11
  121. package/types/excalidraw/components/ButtonSeparator.d.ts +1 -1
  122. package/types/excalidraw/components/Card.d.ts +6 -6
  123. package/types/excalidraw/components/CheckboxItem.d.ts +8 -8
  124. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +10 -10
  125. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +23 -23
  126. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +8 -8
  127. package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +7 -7
  128. package/types/excalidraw/components/ColorPicker/Picker.d.ts +19 -19
  129. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +10 -10
  130. package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +5 -5
  131. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +9 -9
  132. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +9 -9
  133. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +21 -21
  134. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +20 -20
  135. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +19 -19
  136. package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -2
  137. package/types/excalidraw/components/CommandPalette/types.d.ts +24 -24
  138. package/types/excalidraw/components/ConfirmDialog.d.ts +10 -10
  139. package/types/excalidraw/components/ContextMenu.d.ts +16 -16
  140. package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -23
  141. package/types/excalidraw/components/DarkModeToggle.d.ts +7 -7
  142. package/types/excalidraw/components/DefaultSidebar.d.ts +27 -30
  143. package/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +4 -4
  144. package/types/excalidraw/components/Dialog.d.ts +13 -13
  145. package/types/excalidraw/components/DialogActionButton.d.ts +10 -10
  146. package/types/excalidraw/components/ElementCanvasButtons.d.ts +7 -7
  147. package/types/excalidraw/components/ElementLinkDialog.d.ts +12 -12
  148. package/types/excalidraw/components/Ellipsify.d.ts +3 -3
  149. package/types/excalidraw/components/ErrorDialog.d.ts +5 -5
  150. package/types/excalidraw/components/ExcalidrawLogo.d.ts +15 -15
  151. package/types/excalidraw/components/EyeDropper.d.ts +27 -27
  152. package/types/excalidraw/components/FilledButton.d.ts +18 -18
  153. package/types/excalidraw/components/FixedSideContainer.d.ts +10 -10
  154. package/types/excalidraw/components/FollowMode/FollowMode.d.ts +10 -10
  155. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +22 -22
  156. package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +26 -26
  157. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +8 -8
  158. package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +13 -13
  159. package/types/excalidraw/components/HandButton.d.ts +10 -10
  160. package/types/excalidraw/components/HelpButton.d.ts +7 -7
  161. package/types/excalidraw/components/HelpDialog.d.ts +4 -4
  162. package/types/excalidraw/components/HintViewer.d.ts +11 -11
  163. package/types/excalidraw/components/IconPicker.d.ts +15 -15
  164. package/types/excalidraw/components/ImageExportDialog.d.ts +14 -14
  165. package/types/excalidraw/components/InitializeApp.d.ts +10 -10
  166. package/types/excalidraw/components/InlineIcon.d.ts +5 -5
  167. package/types/excalidraw/components/Island.d.ts +10 -10
  168. package/types/excalidraw/components/JSONExportDialog.d.ts +15 -15
  169. package/types/excalidraw/components/LaserPointerButton.d.ts +10 -10
  170. package/types/excalidraw/components/LayerUI.d.ts +32 -32
  171. package/types/excalidraw/components/LibraryMenu.d.ts +10 -10
  172. package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +7 -7
  173. package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +9 -9
  174. package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +17 -17
  175. package/types/excalidraw/components/LibraryMenuItems.d.ts +14 -14
  176. package/types/excalidraw/components/LibraryMenuSection.d.ts +23 -23
  177. package/types/excalidraw/components/LibraryUnit.d.ts +14 -14
  178. package/types/excalidraw/components/LinkButton.d.ts +4 -4
  179. package/types/excalidraw/components/LoadingMessage.d.ts +5 -5
  180. package/types/excalidraw/components/LockButton.d.ts +10 -10
  181. package/types/excalidraw/components/MagicButton.d.ts +10 -10
  182. package/types/excalidraw/components/MobileMenu.d.ts +24 -24
  183. package/types/excalidraw/components/MobileToolBar.d.ts +10 -10
  184. package/types/excalidraw/components/Modal.d.ts +14 -14
  185. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -17
  186. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -17
  187. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -22
  188. package/types/excalidraw/components/Paragraph.d.ts +4 -4
  189. package/types/excalidraw/components/PasteChartDialog.d.ts +8 -8
  190. package/types/excalidraw/components/PenModeButton.d.ts +12 -12
  191. package/types/excalidraw/components/Popover.d.ts +16 -16
  192. package/types/excalidraw/components/ProjectName.d.ts +10 -10
  193. package/types/excalidraw/components/PropertiesPopover.d.ts +16 -16
  194. package/types/excalidraw/components/PublishLibrary.d.ts +16 -16
  195. package/types/excalidraw/components/QuickSearch.d.ts +9 -9
  196. package/types/excalidraw/components/RadioGroup.d.ts +13 -13
  197. package/types/excalidraw/components/RadioSelection.d.ts +20 -20
  198. package/types/excalidraw/components/Range.d.ts +8 -8
  199. package/types/excalidraw/components/SVGLayer.d.ts +7 -7
  200. package/types/excalidraw/components/ScrollableList.d.ts +8 -8
  201. package/types/excalidraw/components/SearchMenu.d.ts +5 -5
  202. package/types/excalidraw/components/Section.d.ts +7 -7
  203. package/types/excalidraw/components/ShareableLinkDialog.d.ts +7 -7
  204. package/types/excalidraw/components/Sidebar/Sidebar.d.ts +70 -76
  205. package/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +7 -7
  206. package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +8 -8
  207. package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +9 -9
  208. package/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +6 -6
  209. package/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +6 -6
  210. package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +6 -6
  211. package/types/excalidraw/components/Sidebar/common.d.ts +34 -34
  212. package/types/excalidraw/components/Spinner.d.ts +8 -8
  213. package/types/excalidraw/components/Stack.d.ts +15 -15
  214. package/types/excalidraw/components/Stats/Angle.d.ts +11 -11
  215. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +10 -10
  216. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +10 -10
  217. package/types/excalidraw/components/Stats/Collapsible.d.ts +10 -10
  218. package/types/excalidraw/components/Stats/Dimension.d.ts +11 -11
  219. package/types/excalidraw/components/Stats/DragInput.d.ts +44 -44
  220. package/types/excalidraw/components/Stats/FontSize.d.ts +11 -11
  221. package/types/excalidraw/components/Stats/MultiAngle.d.ts +11 -11
  222. package/types/excalidraw/components/Stats/MultiDimension.d.ts +14 -14
  223. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +12 -12
  224. package/types/excalidraw/components/Stats/MultiPosition.d.ts +14 -14
  225. package/types/excalidraw/components/Stats/Position.d.ts +12 -12
  226. package/types/excalidraw/components/Stats/index.d.ts +35 -35
  227. package/types/excalidraw/components/Stats/utils.d.ts +19 -19
  228. package/types/excalidraw/components/Switch.d.ts +9 -9
  229. package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +8 -8
  230. package/types/excalidraw/components/TTDDialog/MermaidToExcalidrawLib.d.ts +10 -10
  231. package/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +29 -29
  232. package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +9 -9
  233. package/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +7 -7
  234. package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +17 -17
  235. package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +4 -4
  236. package/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -1
  237. package/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +7 -7
  238. package/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -8
  239. package/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -6
  240. package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +11 -11
  241. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +8 -8
  242. package/types/excalidraw/components/TTDDialog/common.d.ts +32 -32
  243. package/types/excalidraw/components/TextField.d.ts +22 -22
  244. package/types/excalidraw/components/Toast.d.ts +9 -9
  245. package/types/excalidraw/components/ToolButton.d.ts +49 -49
  246. package/types/excalidraw/components/ToolPopover.d.ts +25 -25
  247. package/types/excalidraw/components/Tooltip.d.ts +18 -18
  248. package/types/excalidraw/components/Trans.d.ts +9 -9
  249. package/types/excalidraw/components/TrayMenu.d.ts +26 -26
  250. package/types/excalidraw/components/UnlockPopup.d.ts +8 -8
  251. package/types/excalidraw/components/UserList.d.ts +18 -18
  252. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +33 -33
  253. package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +14 -14
  254. package/types/excalidraw/components/canvases/StaticCanvas.d.ts +19 -19
  255. package/types/excalidraw/components/canvases/index.d.ts +3 -3
  256. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +84 -88
  257. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +16 -16
  258. package/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  259. package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +38 -46
  260. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +8 -8
  261. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -17
  262. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +7 -7
  263. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +16 -16
  264. package/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  265. package/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +10 -10
  266. package/types/excalidraw/components/dropdownMenu/common.d.ts +6 -6
  267. package/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  268. package/types/excalidraw/components/footer/Footer.d.ts +12 -12
  269. package/types/excalidraw/components/footer/FooterCenter.d.ts +8 -8
  270. package/types/excalidraw/components/hoc/withInternalFallback.d.ts +4 -4
  271. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +19 -19
  272. package/types/excalidraw/components/hyperlink/helpers.d.ts +10 -10
  273. package/types/excalidraw/components/icons.d.ts +241 -241
  274. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +11 -22
  275. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +64 -64
  276. package/types/excalidraw/components/main-menu/MainMenu.d.ts +78 -80
  277. package/types/excalidraw/components/shapes.d.ts +172 -172
  278. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +60 -60
  279. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  280. package/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +86 -86
  281. package/types/excalidraw/context/tunnels.d.ts +21 -21
  282. package/types/excalidraw/context/ui-appState.d.ts +4 -4
  283. package/types/excalidraw/cursor.d.ts +6 -6
  284. package/types/excalidraw/data/EditorLocalStorage.d.ts +8 -8
  285. package/types/excalidraw/data/ai/types.d.ts +242 -242
  286. package/types/excalidraw/data/blob.d.ts +57 -49
  287. package/types/excalidraw/data/encode.d.ts +55 -55
  288. package/types/excalidraw/data/encryption.d.ts +9 -9
  289. package/types/excalidraw/data/filesystem.d.ts +21 -21
  290. package/types/excalidraw/data/image.d.ts +9 -9
  291. package/types/excalidraw/data/index.d.ts +22 -22
  292. package/types/excalidraw/data/json.d.ts +18 -16
  293. package/types/excalidraw/data/library.d.ts +127 -112
  294. package/types/excalidraw/data/reconcile.d.ts +7 -7
  295. package/types/excalidraw/data/resave.d.ts +5 -5
  296. package/types/excalidraw/data/restore.d.ts +35 -26
  297. package/types/excalidraw/data/transform.d.ts +81 -81
  298. package/types/excalidraw/data/types.d.ts +48 -48
  299. package/types/excalidraw/deburr.d.ts +1 -1
  300. package/types/excalidraw/dist/excalidraw.development.d.ts +2 -2
  301. package/types/excalidraw/dist/excalidraw.production.min.d.ts +2 -3
  302. package/types/excalidraw/editor-jotai.d.ts +56 -56
  303. package/types/excalidraw/entry.d.ts +1 -1
  304. package/types/excalidraw/env.d.cts +1 -1
  305. package/types/excalidraw/env.d.ts +1 -1
  306. package/types/excalidraw/eraser/index.d.ts +12 -12
  307. package/types/excalidraw/errors.d.ts +29 -29
  308. package/types/excalidraw/fonts/Cascadia/index.d.ts +2 -2
  309. package/types/excalidraw/fonts/ComicShanns/index.d.ts +2 -2
  310. package/types/excalidraw/fonts/Emoji/index.d.ts +2 -2
  311. package/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +29 -29
  312. package/types/excalidraw/fonts/Excalifont/index.d.ts +2 -2
  313. package/types/excalidraw/fonts/Fonts.d.ts +90 -90
  314. package/types/excalidraw/fonts/Helvetica/index.d.ts +2 -2
  315. package/types/excalidraw/fonts/Liberation/index.d.ts +2 -2
  316. package/types/excalidraw/fonts/Lilita/index.d.ts +2 -2
  317. package/types/excalidraw/fonts/Nunito/index.d.ts +2 -2
  318. package/types/excalidraw/fonts/Virgil/index.d.ts +2 -2
  319. package/types/excalidraw/fonts/Xiaolai/index.d.ts +8 -8
  320. package/types/excalidraw/fonts/index.d.ts +1 -1
  321. package/types/excalidraw/gesture.d.ts +6 -6
  322. package/types/excalidraw/history.d.ts +48 -48
  323. package/types/excalidraw/hooks/useCallbackRefState.d.ts +1 -1
  324. package/types/excalidraw/hooks/useCopiedIndicator.d.ts +5 -5
  325. package/types/excalidraw/hooks/useCreatePortalContainer.d.ts +7 -7
  326. package/types/excalidraw/hooks/useEmitter.d.ts +2 -2
  327. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +11 -11
  328. package/types/excalidraw/hooks/useOutsideClick.d.ts +21 -21
  329. package/types/excalidraw/hooks/useScrollPosition.d.ts +1 -1
  330. package/types/excalidraw/hooks/useStable.d.ts +1 -1
  331. package/types/excalidraw/hooks/useStableCallback.d.ts +4 -4
  332. package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -14
  333. package/types/excalidraw/hooks/useTransition.d.ts +2 -2
  334. package/types/excalidraw/i18n.d.ts +24 -24
  335. package/types/excalidraw/index-node.d.ts +1 -1
  336. package/types/excalidraw/index.d.ts +60 -60
  337. package/types/excalidraw/laser-trails.d.ts +20 -20
  338. package/types/excalidraw/lasso/index.d.ts +16 -16
  339. package/types/excalidraw/lasso/utils.d.ts +13 -13
  340. package/types/excalidraw/main.d.ts +2 -2
  341. package/types/excalidraw/mermaid.d.ts +2 -2
  342. package/types/excalidraw/obsidianUtils.d.ts +41 -41
  343. package/types/excalidraw/polyfill.d.ts +2 -2
  344. package/types/excalidraw/publicPath.d.ts +1 -1
  345. package/types/excalidraw/reactUtils.d.ts +14 -14
  346. package/types/excalidraw/renderer/animation.d.ts +12 -12
  347. package/types/excalidraw/renderer/helpers.d.ts +16 -14
  348. package/types/excalidraw/renderer/interactiveScene.d.ts +14 -12
  349. package/types/excalidraw/renderer/renderNewElementScene.d.ts +7 -7
  350. package/types/excalidraw/renderer/renderSnaps.d.ts +2 -2
  351. package/types/excalidraw/renderer/roundRect.d.ts +11 -11
  352. package/types/excalidraw/renderer/staticScene.d.ts +14 -14
  353. package/types/excalidraw/renderer/staticSvgScene.d.ts +5 -5
  354. package/types/excalidraw/scene/Renderer.d.ts +29 -27
  355. package/types/excalidraw/scene/export.d.ts +37 -37
  356. package/types/excalidraw/scene/index.d.ts +4 -4
  357. package/types/excalidraw/scene/normalize.d.ts +4 -4
  358. package/types/excalidraw/scene/scroll.d.ts +18 -23
  359. package/types/excalidraw/scene/scrollbars.d.ts +11 -11
  360. package/types/excalidraw/scene/types.d.ts +134 -134
  361. package/types/excalidraw/scene/zoom.d.ts +12 -12
  362. package/types/excalidraw/shortcut.d.ts +1 -1
  363. package/types/excalidraw/snapping.d.ts +111 -111
  364. package/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +45 -45
  365. package/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +13 -13
  366. package/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +2 -2
  367. package/types/excalidraw/subset/subset-main.d.ts +12 -12
  368. package/types/excalidraw/subset/subset-shared.chunk.d.ts +32 -32
  369. package/types/excalidraw/subset/subset-worker.chunk.d.ts +15 -15
  370. package/types/excalidraw/subset/woff2/woff2-bindings.d.ts +31 -31
  371. package/types/excalidraw/subset/woff2/woff2-loader.d.ts +14 -14
  372. package/types/excalidraw/subset/woff2/woff2-wasm.d.ts +2 -2
  373. package/types/excalidraw/types.d.ts +801 -801
  374. package/types/excalidraw/webpack.dev.config.d.ts +116 -116
  375. package/types/excalidraw/webpack.prod.config.d.ts +130 -130
  376. package/types/excalidraw/workers.d.ts +36 -36
  377. package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +24 -24
  378. package/types/math/src/angle.d.ts +19 -19
  379. package/types/math/src/constants.d.ts +3 -3
  380. package/types/math/src/curve.d.ts +74 -74
  381. package/types/math/src/ellipse.d.ts +44 -44
  382. package/types/math/src/index.d.ts +13 -13
  383. package/types/math/src/line.d.ts +17 -17
  384. package/types/math/src/point.d.ts +122 -122
  385. package/types/math/src/polygon.d.ts +6 -6
  386. package/types/math/src/range.d.ts +44 -44
  387. package/types/math/src/rectangle.d.ts +5 -5
  388. package/types/math/src/segment.d.ts +40 -40
  389. package/types/math/src/triangle.d.ts +11 -11
  390. package/types/math/src/types.d.ts +106 -106
  391. package/types/math/src/utils.d.ts +7 -7
  392. package/types/math/src/vector.d.ts +94 -94
  393. package/types/utils/src/bbox.d.ts +9 -9
  394. package/types/utils/src/export.d.ts +35 -35
  395. package/types/utils/src/index.d.ts +4 -4
  396. package/types/utils/src/shape.d.ts +58 -58
  397. package/types/utils/src/withinBounds.d.ts +19 -19
@@ -1,919 +1,835 @@
1
- import type { Theme } from "@excalidraw/element/types";
2
- import "../components/ToolIcon.scss";
3
- import type { AppState } from "../types";
4
- export declare const actionChangeProjectName: import("./types").Action<string | null> & {
5
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
6
- };
7
- export declare const actionChangeExportScale: import("./types").Action<number> & {
8
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
9
- };
10
- export declare const actionChangeExportBackground: import("./types").Action<boolean> & {
11
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
12
- };
13
- export declare const actionChangeExportEmbedScene: import("./types").Action<boolean> & {
14
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
15
- };
16
- export declare const actionSaveToActiveFile: {
17
- name: "saveToActiveFile";
18
- label: string;
19
- icon: import("react/jsx-runtime").JSX.Element;
20
- trackEvent: {
21
- category: "export";
22
- };
23
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
24
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
25
- captureUpdate: "EVENTUALLY";
26
- appState: {
27
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
28
- toast: {
29
- message: string;
30
- } | null;
31
- contextMenu: {
32
- items: import("../components/ContextMenu").ContextMenuItems;
33
- top: number;
34
- left: number;
35
- } | null;
36
- showWelcomeScreen: boolean;
37
- isLoading: boolean;
38
- errorMessage: import("react").ReactNode;
39
- activeEmbeddable: {
40
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
41
- state: "active" | "hover";
42
- } | null;
43
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
44
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
45
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
46
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
47
- isBindingEnabled: boolean;
48
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
49
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
50
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
51
- frameRendering: {
52
- enabled: boolean;
53
- name: boolean;
54
- outline: boolean;
55
- clip: boolean;
56
- markerName: boolean;
57
- markerEnabled: boolean;
58
- };
59
- editingFrame: string | null;
60
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
61
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
62
- activeTool: {
63
- lastActiveTool: import("../types").ActiveTool | null;
64
- locked: boolean;
65
- fromSelection: boolean;
66
- } & import("../types").ActiveTool;
67
- preferredSelectionTool: {
68
- type: "selection" | "lasso";
69
- initialized: boolean;
70
- };
71
- penMode: boolean;
72
- penDetected: boolean;
73
- exportBackground: boolean;
74
- exportEmbedScene: boolean;
75
- exportWithDarkMode: boolean;
76
- exportScale: number;
77
- currentItemStrokeColor: string;
78
- currentItemBackgroundColor: string;
79
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
80
- currentItemStrokeWidth: number;
81
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
82
- currentItemRoughness: number;
83
- currentItemOpacity: number;
84
- currentItemFontFamily: number;
85
- currentItemFontSize: number;
86
- currentItemTextAlign: string;
87
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
88
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
89
- currentHoveredFontFamily: number | null;
90
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
91
- currentItemArrowType: "round" | "sharp" | "elbow";
92
- currentItemFrameRole: ("marker" | null) | undefined;
93
- viewBackgroundColor: string;
94
- scrollX: number;
95
- scrollY: number;
96
- cursorButton: "up" | "down";
97
- scrolledOutside: boolean;
98
- name: string | null;
99
- isResizing: boolean;
100
- isRotating: boolean;
101
- zoom: Readonly<{
102
- value: import("../types").NormalizedZoomValue;
103
- }>;
104
- openMenu: "canvas" | "shape" | null;
105
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
106
- openSidebar: {
107
- name: string;
108
- tab?: string | undefined;
109
- } | null;
110
- openDialog: {
111
- name: "imageExport" | "help" | "jsonExport";
112
- } | {
113
- name: "ttd";
114
- tab: "mermaid" | "text-to-diagram";
115
- } | {
116
- name: "commandPalette";
117
- } | {
118
- name: "settings";
119
- } | {
120
- name: "elementLinkSelector";
121
- sourceElementId: string;
122
- } | null;
123
- defaultSidebarDockedPreference: boolean;
124
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
125
- selectedElementIds: Readonly<{
126
- [id: string]: true;
127
- }>;
128
- hoveredElementIds: Readonly<{
129
- [id: string]: true;
130
- }>;
131
- previousSelectedElementIds: {
132
- [id: string]: true;
133
- };
134
- selectedElementsAreBeingDragged: boolean;
135
- shouldCacheIgnoreZoom: boolean;
136
- zenModeEnabled: boolean;
137
- theme: Theme;
138
- gridSize: number;
139
- gridStep: number;
140
- gridModeEnabled: boolean;
141
- viewModeEnabled: boolean;
142
- selectedGroupIds: {
143
- [groupId: string]: boolean;
144
- };
145
- editingGroupId: string | null;
146
- width: number;
147
- height: number;
148
- offsetTop: number;
149
- offsetLeft: number;
150
- collaborators: Map<import("../types").SocketId, Readonly<{
151
- pointer?: import("../types").CollaboratorPointer | undefined;
152
- button?: "up" | "down" | undefined;
153
- selectedElementIds?: Readonly<{
154
- [id: string]: true;
155
- }> | undefined;
156
- username?: string | null | undefined;
157
- userState?: import("@excalidraw/common").UserIdleState | undefined;
158
- color?: {
159
- background: string;
160
- stroke: string;
161
- } | undefined;
162
- avatarUrl?: string | undefined;
163
- id?: string | undefined;
164
- socketId?: import("../types").SocketId | undefined;
165
- isCurrentUser?: boolean | undefined;
166
- isInCall?: boolean | undefined;
167
- isSpeaking?: boolean | undefined;
168
- isMuted?: boolean | undefined;
169
- }>>;
170
- stats: {
171
- open: boolean;
172
- panels: number;
173
- };
174
- currentChartType: import("@excalidraw/element/types").ChartType;
175
- pasteDialog: {
176
- shown: false;
177
- data: null;
178
- } | {
179
- shown: true;
180
- data: import("../charts").Spreadsheet;
181
- };
182
- showHyperlinkPopup: false | "info" | "editor";
183
- linkOpacity: number;
184
- colorPalette?: {
185
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
186
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
187
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
188
- topPicks: {
189
- canvasBackground: [string, string, string, string, string];
190
- elementStroke: [string, string, string, string, string];
191
- elementBackground: [string, string, string, string, string];
192
- };
193
- } | undefined;
194
- allowWheelZoom?: boolean | undefined;
195
- allowPinchZoom?: boolean | undefined;
196
- disableContextMenu: boolean;
197
- pinnedScripts?: string[] | undefined;
198
- customPens?: any[] | undefined;
199
- currentStrokeOptions?: any;
200
- resetCustomPen?: any;
201
- gridColor: {
202
- Bold: string;
203
- Regular: string;
204
- };
205
- gridDirection: {
206
- horizontal: boolean;
207
- vertical: boolean;
208
- };
209
- highlightSearchResult: boolean;
210
- dynamicStyle: {
211
- [x: string]: string;
212
- };
213
- frameColor: {
214
- stroke: string;
215
- fill: string;
216
- nameColor: string;
217
- };
218
- invertBindingBehaviour: boolean;
219
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
220
- snapLines: readonly import("../snapping").SnapLine[];
221
- originSnapOffset: {
222
- x: number;
223
- y: number;
224
- } | null;
225
- objectsSnapModeEnabled: boolean;
226
- userToFollow: import("../types").UserToFollow | null;
227
- followedBy: Set<import("../types").SocketId>;
228
- isCropping: boolean;
229
- croppingElementId: string | null;
230
- searchMatches: Readonly<{
231
- focusedId: string | null;
232
- matches: readonly import("../types").SearchMatch[];
233
- }> | null;
234
- activeLockedId: string | null;
235
- lockedMultiSelections: {
236
- [groupId: string]: true;
237
- };
238
- bindMode: import("@excalidraw/element/types").BindMode;
239
- };
240
- } | {
241
- captureUpdate: "EVENTUALLY";
242
- appState?: undefined;
243
- }>;
244
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
245
- } & {
246
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
247
- };
248
- export declare const actionSaveFileToDisk: {
249
- name: "saveFileToDisk";
250
- label: string;
251
- icon: import("react/jsx-runtime").JSX.Element;
252
- viewMode: true;
253
- trackEvent: {
254
- category: "export";
255
- };
256
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
257
- captureUpdate: "EVENTUALLY";
258
- appState: {
259
- openDialog: null;
260
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
261
- toast: {
262
- message: string;
263
- };
264
- contextMenu: {
265
- items: import("../components/ContextMenu").ContextMenuItems;
266
- top: number;
267
- left: number;
268
- } | null;
269
- showWelcomeScreen: boolean;
270
- isLoading: boolean;
271
- errorMessage: import("react").ReactNode;
272
- activeEmbeddable: {
273
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
274
- state: "active" | "hover";
275
- } | null;
276
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
277
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
278
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
279
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
280
- isBindingEnabled: boolean;
281
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
282
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
283
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
284
- frameRendering: {
285
- enabled: boolean;
286
- name: boolean;
287
- outline: boolean;
288
- clip: boolean;
289
- markerName: boolean;
290
- markerEnabled: boolean;
291
- };
292
- editingFrame: string | null;
293
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
294
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
295
- activeTool: {
296
- lastActiveTool: import("../types").ActiveTool | null;
297
- locked: boolean;
298
- fromSelection: boolean;
299
- } & import("../types").ActiveTool;
300
- preferredSelectionTool: {
301
- type: "selection" | "lasso";
302
- initialized: boolean;
303
- };
304
- penMode: boolean;
305
- penDetected: boolean;
306
- exportBackground: boolean;
307
- exportEmbedScene: boolean;
308
- exportWithDarkMode: boolean;
309
- exportScale: number;
310
- currentItemStrokeColor: string;
311
- currentItemBackgroundColor: string;
312
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
313
- currentItemStrokeWidth: number;
314
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
315
- currentItemRoughness: number;
316
- currentItemOpacity: number;
317
- currentItemFontFamily: number;
318
- currentItemFontSize: number;
319
- currentItemTextAlign: string;
320
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
321
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
322
- currentHoveredFontFamily: number | null;
323
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
324
- currentItemArrowType: "round" | "sharp" | "elbow";
325
- currentItemFrameRole: ("marker" | null) | undefined;
326
- viewBackgroundColor: string;
327
- scrollX: number;
328
- scrollY: number;
329
- cursorButton: "up" | "down";
330
- scrolledOutside: boolean;
331
- name: string | null;
332
- isResizing: boolean;
333
- isRotating: boolean;
334
- zoom: Readonly<{
335
- value: import("../types").NormalizedZoomValue;
336
- }>;
337
- openMenu: "canvas" | "shape" | null;
338
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
339
- openSidebar: {
340
- name: string;
341
- tab?: string | undefined;
342
- } | null;
343
- defaultSidebarDockedPreference: boolean;
344
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
345
- selectedElementIds: Readonly<{
346
- [id: string]: true;
347
- }>;
348
- hoveredElementIds: Readonly<{
349
- [id: string]: true;
350
- }>;
351
- previousSelectedElementIds: {
352
- [id: string]: true;
353
- };
354
- selectedElementsAreBeingDragged: boolean;
355
- shouldCacheIgnoreZoom: boolean;
356
- zenModeEnabled: boolean;
357
- theme: Theme;
358
- gridSize: number;
359
- gridStep: number;
360
- gridModeEnabled: boolean;
361
- viewModeEnabled: boolean;
362
- selectedGroupIds: {
363
- [groupId: string]: boolean;
364
- };
365
- editingGroupId: string | null;
366
- width: number;
367
- height: number;
368
- offsetTop: number;
369
- offsetLeft: number;
370
- collaborators: Map<import("../types").SocketId, Readonly<{
371
- pointer?: import("../types").CollaboratorPointer | undefined;
372
- button?: "up" | "down" | undefined;
373
- selectedElementIds?: Readonly<{
374
- [id: string]: true;
375
- }> | undefined;
376
- username?: string | null | undefined;
377
- userState?: import("@excalidraw/common").UserIdleState | undefined;
378
- color?: {
379
- background: string;
380
- stroke: string;
381
- } | undefined;
382
- avatarUrl?: string | undefined;
383
- id?: string | undefined;
384
- socketId?: import("../types").SocketId | undefined;
385
- isCurrentUser?: boolean | undefined;
386
- isInCall?: boolean | undefined;
387
- isSpeaking?: boolean | undefined;
388
- isMuted?: boolean | undefined;
389
- }>>;
390
- stats: {
391
- open: boolean;
392
- panels: number;
393
- };
394
- currentChartType: import("@excalidraw/element/types").ChartType;
395
- pasteDialog: {
396
- shown: false;
397
- data: null;
398
- } | {
399
- shown: true;
400
- data: import("../charts").Spreadsheet;
401
- };
402
- showHyperlinkPopup: false | "info" | "editor";
403
- linkOpacity: number;
404
- colorPalette?: {
405
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
406
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
407
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
408
- topPicks: {
409
- canvasBackground: [string, string, string, string, string];
410
- elementStroke: [string, string, string, string, string];
411
- elementBackground: [string, string, string, string, string];
412
- };
413
- } | undefined;
414
- allowWheelZoom?: boolean | undefined;
415
- allowPinchZoom?: boolean | undefined;
416
- disableContextMenu: boolean;
417
- pinnedScripts?: string[] | undefined;
418
- customPens?: any[] | undefined;
419
- currentStrokeOptions?: any;
420
- resetCustomPen?: any;
421
- gridColor: {
422
- Bold: string;
423
- Regular: string;
424
- };
425
- gridDirection: {
426
- horizontal: boolean;
427
- vertical: boolean;
428
- };
429
- highlightSearchResult: boolean;
430
- dynamicStyle: {
431
- [x: string]: string;
432
- };
433
- frameColor: {
434
- stroke: string;
435
- fill: string;
436
- nameColor: string;
437
- };
438
- invertBindingBehaviour: boolean;
439
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
440
- snapLines: readonly import("../snapping").SnapLine[];
441
- originSnapOffset: {
442
- x: number;
443
- y: number;
444
- } | null;
445
- objectsSnapModeEnabled: boolean;
446
- userToFollow: import("../types").UserToFollow | null;
447
- followedBy: Set<import("../types").SocketId>;
448
- isCropping: boolean;
449
- croppingElementId: string | null;
450
- searchMatches: Readonly<{
451
- focusedId: string | null;
452
- matches: readonly import("../types").SearchMatch[];
453
- }> | null;
454
- activeLockedId: string | null;
455
- lockedMultiSelections: {
456
- [groupId: string]: true;
457
- };
458
- bindMode: import("@excalidraw/element/types").BindMode;
459
- };
460
- } | {
461
- captureUpdate: "EVENTUALLY";
462
- appState?: undefined;
463
- }>;
464
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
465
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
466
- } & {
467
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
468
- };
469
- export declare const actionLoadScene: {
470
- name: "loadScene";
471
- label: string;
472
- trackEvent: {
473
- category: "export";
474
- };
475
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
476
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<false | {
477
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
478
- appState: {
479
- viewBackgroundColor: string;
480
- frameRendering: {
481
- enabled: boolean;
482
- name: boolean;
483
- outline: boolean;
484
- clip: boolean;
485
- markerName: boolean;
486
- markerEnabled: boolean;
487
- };
488
- frameColor: {
489
- stroke: string;
490
- fill: string;
491
- nameColor: string;
492
- };
493
- name: string | null;
494
- zoom: Readonly<{
495
- value: import("../types").NormalizedZoomValue;
496
- }>;
497
- scrollX: number;
498
- scrollY: number;
499
- viewModeEnabled: boolean;
500
- openDialog: {
501
- name: "imageExport" | "help" | "jsonExport";
502
- } | {
503
- name: "ttd";
504
- tab: "mermaid" | "text-to-diagram";
505
- } | {
506
- name: "commandPalette";
507
- } | {
508
- name: "settings";
509
- } | {
510
- name: "elementLinkSelector";
511
- sourceElementId: string;
512
- } | null;
513
- editingGroupId: string | null;
514
- selectedElementIds: Readonly<{
515
- [id: string]: true;
516
- }>;
517
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
518
- theme: Theme;
519
- activeEmbeddable: {
520
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
521
- state: "active" | "hover";
522
- } | null;
523
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
524
- selectedGroupIds: {
525
- [groupId: string]: boolean;
526
- };
527
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
528
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
529
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
530
- isBindingEnabled: boolean;
531
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
532
- isRotating: boolean;
533
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
534
- collaborators: Map<import("../types").SocketId, Readonly<{
535
- pointer?: import("../types").CollaboratorPointer | undefined;
536
- button?: "up" | "down" | undefined;
537
- selectedElementIds?: Readonly<{
538
- [id: string]: true;
539
- }> | undefined;
540
- username?: string | null | undefined;
541
- userState?: import("@excalidraw/common").UserIdleState | undefined;
542
- color?: {
543
- background: string;
544
- stroke: string;
545
- } | undefined;
546
- avatarUrl?: string | undefined;
547
- id?: string | undefined;
548
- socketId?: import("../types").SocketId | undefined;
549
- isCurrentUser?: boolean | undefined;
550
- isInCall?: boolean | undefined;
551
- isSpeaking?: boolean | undefined;
552
- isMuted?: boolean | undefined;
553
- }>>;
554
- snapLines: readonly import("../snapping").SnapLine[];
555
- zenModeEnabled: boolean;
556
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
557
- gridColor: {
558
- Bold: string;
559
- Regular: string;
560
- };
561
- gridDirection: {
562
- horizontal: boolean;
563
- vertical: boolean;
564
- };
565
- highlightSearchResult: boolean;
566
- isCropping: boolean;
567
- croppingElementId: string | null;
568
- searchMatches: Readonly<{
569
- focusedId: string | null;
570
- matches: readonly import("../types").SearchMatch[];
571
- }> | null;
572
- activeLockedId: string | null;
573
- hoveredElementIds: Readonly<{
574
- [id: string]: true;
575
- }>;
576
- shouldCacheIgnoreZoom: boolean;
577
- exportScale: number;
578
- bindMode: import("@excalidraw/element/types").BindMode;
579
- gridSize: number;
580
- contextMenu: {
581
- items: import("../components/ContextMenu").ContextMenuItems;
582
- top: number;
583
- left: number;
584
- } | null;
585
- showWelcomeScreen: boolean;
586
- isLoading: boolean;
587
- errorMessage: import("react").ReactNode;
588
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
589
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
590
- editingFrame: string | null;
591
- activeTool: {
592
- lastActiveTool: import("../types").ActiveTool | null;
593
- locked: boolean;
594
- fromSelection: boolean;
595
- } & import("../types").ActiveTool;
596
- preferredSelectionTool: {
597
- type: "selection" | "lasso";
598
- initialized: boolean;
599
- };
600
- penMode: boolean;
601
- penDetected: boolean;
602
- exportBackground: boolean;
603
- exportEmbedScene: boolean;
604
- exportWithDarkMode: boolean;
605
- currentItemStrokeColor: string;
606
- currentItemBackgroundColor: string;
607
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
608
- currentItemStrokeWidth: number;
609
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
610
- currentItemRoughness: number;
611
- currentItemOpacity: number;
612
- currentItemFontFamily: number;
613
- currentItemFontSize: number;
614
- currentItemTextAlign: string;
615
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
616
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
617
- currentHoveredFontFamily: number | null;
618
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
619
- currentItemArrowType: "round" | "sharp" | "elbow";
620
- currentItemFrameRole: ("marker" | null) | undefined;
621
- cursorButton: "up" | "down";
622
- scrolledOutside: boolean;
623
- isResizing: boolean;
624
- openMenu: "canvas" | "shape" | null;
625
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
626
- openSidebar: {
627
- name: string;
628
- tab?: string | undefined;
629
- } | null;
630
- defaultSidebarDockedPreference: boolean;
631
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
632
- previousSelectedElementIds: {
633
- [id: string]: true;
634
- };
635
- selectedElementsAreBeingDragged: boolean;
636
- toast: {
637
- message: string;
638
- closable?: boolean | undefined;
639
- duration?: number | undefined;
640
- } | null;
641
- gridStep: number;
642
- gridModeEnabled: boolean;
643
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
644
- stats: {
645
- open: boolean;
646
- panels: number;
647
- };
648
- currentChartType: import("@excalidraw/element/types").ChartType;
649
- pasteDialog: {
650
- shown: false;
651
- data: null;
652
- } | {
653
- shown: true;
654
- data: import("../charts").Spreadsheet;
655
- };
656
- showHyperlinkPopup: false | "info" | "editor";
657
- linkOpacity: number;
658
- colorPalette?: {
659
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
660
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
661
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
662
- topPicks: {
663
- canvasBackground: [string, string, string, string, string];
664
- elementStroke: [string, string, string, string, string];
665
- elementBackground: [string, string, string, string, string];
666
- };
667
- } | undefined;
668
- allowWheelZoom?: boolean | undefined;
669
- allowPinchZoom?: boolean | undefined;
670
- disableContextMenu: boolean;
671
- pinnedScripts?: string[] | undefined;
672
- customPens?: any[] | undefined;
673
- currentStrokeOptions?: any;
674
- resetCustomPen?: any;
675
- dynamicStyle: {
676
- [x: string]: string;
677
- };
678
- invertBindingBehaviour: boolean;
679
- originSnapOffset: {
680
- x: number;
681
- y: number;
682
- } | null;
683
- objectsSnapModeEnabled: boolean;
684
- userToFollow: import("../types").UserToFollow | null;
685
- followedBy: Set<import("../types").SocketId>;
686
- lockedMultiSelections: {
687
- [groupId: string]: true;
688
- };
689
- };
690
- files: import("../types").BinaryFiles;
691
- captureUpdate: "IMMEDIATELY";
692
- } | {
693
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
694
- appState: {
695
- errorMessage: any;
696
- contextMenu: {
697
- items: import("../components/ContextMenu").ContextMenuItems;
698
- top: number;
699
- left: number;
700
- } | null;
701
- showWelcomeScreen: boolean;
702
- isLoading: boolean;
703
- activeEmbeddable: {
704
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
705
- state: "active" | "hover";
706
- } | null;
707
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
708
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
709
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
710
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
711
- isBindingEnabled: boolean;
712
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
713
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
714
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
715
- frameRendering: {
716
- enabled: boolean;
717
- name: boolean;
718
- outline: boolean;
719
- clip: boolean;
720
- markerName: boolean;
721
- markerEnabled: boolean;
722
- };
723
- editingFrame: string | null;
724
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
725
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
726
- activeTool: {
727
- lastActiveTool: import("../types").ActiveTool | null;
728
- locked: boolean;
729
- fromSelection: boolean;
730
- } & import("../types").ActiveTool;
731
- preferredSelectionTool: {
732
- type: "selection" | "lasso";
733
- initialized: boolean;
734
- };
735
- penMode: boolean;
736
- penDetected: boolean;
737
- exportBackground: boolean;
738
- exportEmbedScene: boolean;
739
- exportWithDarkMode: boolean;
740
- exportScale: number;
741
- currentItemStrokeColor: string;
742
- currentItemBackgroundColor: string;
743
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
744
- currentItemStrokeWidth: number;
745
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
746
- currentItemRoughness: number;
747
- currentItemOpacity: number;
748
- currentItemFontFamily: number;
749
- currentItemFontSize: number;
750
- currentItemTextAlign: string;
751
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
752
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
753
- currentHoveredFontFamily: number | null;
754
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
755
- currentItemArrowType: "round" | "sharp" | "elbow";
756
- currentItemFrameRole: ("marker" | null) | undefined;
757
- viewBackgroundColor: string;
758
- scrollX: number;
759
- scrollY: number;
760
- cursorButton: "up" | "down";
761
- scrolledOutside: boolean;
762
- name: string | null;
763
- isResizing: boolean;
764
- isRotating: boolean;
765
- zoom: Readonly<{
766
- value: import("../types").NormalizedZoomValue;
767
- }>;
768
- openMenu: "canvas" | "shape" | null;
769
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
770
- openSidebar: {
771
- name: string;
772
- tab?: string | undefined;
773
- } | null;
774
- openDialog: {
775
- name: "imageExport" | "help" | "jsonExport";
776
- } | {
777
- name: "ttd";
778
- tab: "mermaid" | "text-to-diagram";
779
- } | {
780
- name: "commandPalette";
781
- } | {
782
- name: "settings";
783
- } | {
784
- name: "elementLinkSelector";
785
- sourceElementId: string;
786
- } | null;
787
- defaultSidebarDockedPreference: boolean;
788
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
789
- selectedElementIds: Readonly<{
790
- [id: string]: true;
791
- }>;
792
- hoveredElementIds: Readonly<{
793
- [id: string]: true;
794
- }>;
795
- previousSelectedElementIds: {
796
- [id: string]: true;
797
- };
798
- selectedElementsAreBeingDragged: boolean;
799
- shouldCacheIgnoreZoom: boolean;
800
- toast: {
801
- message: string;
802
- closable?: boolean | undefined;
803
- duration?: number | undefined;
804
- } | null;
805
- zenModeEnabled: boolean;
806
- theme: Theme;
807
- gridSize: number;
808
- gridStep: number;
809
- gridModeEnabled: boolean;
810
- viewModeEnabled: boolean;
811
- selectedGroupIds: {
812
- [groupId: string]: boolean;
813
- };
814
- editingGroupId: string | null;
815
- width: number;
816
- height: number;
817
- offsetTop: number;
818
- offsetLeft: number;
819
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
820
- collaborators: Map<import("../types").SocketId, Readonly<{
821
- pointer?: import("../types").CollaboratorPointer | undefined;
822
- button?: "up" | "down" | undefined;
823
- selectedElementIds?: Readonly<{
824
- [id: string]: true;
825
- }> | undefined;
826
- username?: string | null | undefined;
827
- userState?: import("@excalidraw/common").UserIdleState | undefined;
828
- color?: {
829
- background: string;
830
- stroke: string;
831
- } | undefined;
832
- avatarUrl?: string | undefined;
833
- id?: string | undefined;
834
- socketId?: import("../types").SocketId | undefined;
835
- isCurrentUser?: boolean | undefined;
836
- isInCall?: boolean | undefined;
837
- isSpeaking?: boolean | undefined;
838
- isMuted?: boolean | undefined;
839
- }>>;
840
- stats: {
841
- open: boolean;
842
- panels: number;
843
- };
844
- currentChartType: import("@excalidraw/element/types").ChartType;
845
- pasteDialog: {
846
- shown: false;
847
- data: null;
848
- } | {
849
- shown: true;
850
- data: import("../charts").Spreadsheet;
851
- };
852
- showHyperlinkPopup: false | "info" | "editor";
853
- linkOpacity: number;
854
- colorPalette?: {
855
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
856
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
857
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
858
- topPicks: {
859
- canvasBackground: [string, string, string, string, string];
860
- elementStroke: [string, string, string, string, string];
861
- elementBackground: [string, string, string, string, string];
862
- };
863
- } | undefined;
864
- allowWheelZoom?: boolean | undefined;
865
- allowPinchZoom?: boolean | undefined;
866
- disableContextMenu: boolean;
867
- pinnedScripts?: string[] | undefined;
868
- customPens?: any[] | undefined;
869
- currentStrokeOptions?: any;
870
- resetCustomPen?: any;
871
- gridColor: {
872
- Bold: string;
873
- Regular: string;
874
- };
875
- gridDirection: {
876
- horizontal: boolean;
877
- vertical: boolean;
878
- };
879
- highlightSearchResult: boolean;
880
- dynamicStyle: {
881
- [x: string]: string;
882
- };
883
- frameColor: {
884
- stroke: string;
885
- fill: string;
886
- nameColor: string;
887
- };
888
- invertBindingBehaviour: boolean;
889
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
890
- snapLines: readonly import("../snapping").SnapLine[];
891
- originSnapOffset: {
892
- x: number;
893
- y: number;
894
- } | null;
895
- objectsSnapModeEnabled: boolean;
896
- userToFollow: import("../types").UserToFollow | null;
897
- followedBy: Set<import("../types").SocketId>;
898
- isCropping: boolean;
899
- croppingElementId: string | null;
900
- searchMatches: Readonly<{
901
- focusedId: string | null;
902
- matches: readonly import("../types").SearchMatch[];
903
- }> | null;
904
- activeLockedId: string | null;
905
- lockedMultiSelections: {
906
- [groupId: string]: true;
907
- };
908
- bindMode: import("@excalidraw/element/types").BindMode;
909
- };
910
- files: import("../types").BinaryFiles;
911
- captureUpdate: "EVENTUALLY";
912
- }>;
913
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
914
- } & {
915
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
916
- };
917
- export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
918
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
919
- };
1
+ import type { Theme } from "@excalidraw/element/types";
2
+ import "../components/ToolIcon.scss";
3
+ import type { AppState } from "../types";
4
+ export declare const actionChangeProjectName: import("./types").Action<string | null> & {
5
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
6
+ };
7
+ export declare const actionChangeExportScale: import("./types").Action<number> & {
8
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
9
+ };
10
+ export declare const actionChangeExportBackground: import("./types").Action<boolean> & {
11
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
12
+ };
13
+ export declare const actionChangeExportEmbedScene: import("./types").Action<boolean> & {
14
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
15
+ };
16
+ export declare const actionSaveToActiveFile: {
17
+ name: "saveToActiveFile";
18
+ label: string;
19
+ icon: import("react/jsx-runtime").JSX.Element;
20
+ trackEvent: {
21
+ category: "export";
22
+ };
23
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
24
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
25
+ captureUpdate: "EVENTUALLY";
26
+ appState: {
27
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
28
+ toast: {
29
+ message: string;
30
+ } | null;
31
+ contextMenu: {
32
+ items: import("../components/ContextMenu").ContextMenuItems;
33
+ top: number;
34
+ left: number;
35
+ } | null;
36
+ showWelcomeScreen: boolean;
37
+ isLoading: boolean;
38
+ errorMessage: React.ReactNode;
39
+ activeEmbeddable: {
40
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
41
+ state: "hover" | "active";
42
+ } | null;
43
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
44
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
45
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
46
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
47
+ isBindingEnabled: boolean;
48
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
49
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
50
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
51
+ frameRendering: {
52
+ enabled: boolean;
53
+ name: boolean;
54
+ outline: boolean;
55
+ clip: boolean;
56
+ markerName: boolean;
57
+ markerEnabled: boolean;
58
+ };
59
+ editingFrame: string | null;
60
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
61
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
62
+ activeTool: {
63
+ lastActiveTool: import("../types").ActiveTool | null;
64
+ locked: boolean;
65
+ fromSelection: boolean;
66
+ } & import("../types").ActiveTool;
67
+ preferredSelectionTool: {
68
+ type: "selection" | "lasso";
69
+ initialized: boolean;
70
+ };
71
+ penMode: boolean;
72
+ penDetected: boolean;
73
+ exportBackground: boolean;
74
+ exportEmbedScene: boolean;
75
+ exportWithDarkMode: boolean;
76
+ exportScale: number;
77
+ currentItemStrokeColor: string;
78
+ currentItemBackgroundColor: string;
79
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
80
+ currentItemStrokeWidth: number;
81
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
82
+ currentItemRoughness: number;
83
+ currentItemOpacity: number;
84
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
85
+ currentItemFontSize: number;
86
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
87
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
88
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
89
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
90
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
91
+ currentItemArrowType: "sharp" | "round" | "elbow";
92
+ currentItemFrameRole: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["frameRole"] | null;
93
+ viewBackgroundColor: string;
94
+ scrollX: number;
95
+ scrollY: number;
96
+ cursorButton: "up" | "down";
97
+ scrolledOutside: boolean;
98
+ name: string | null;
99
+ isResizing: boolean;
100
+ isRotating: boolean;
101
+ zoom: import("../types").Zoom;
102
+ openMenu: "canvas" | "shape" | null;
103
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
104
+ openSidebar: {
105
+ name: import("../types").SidebarName;
106
+ tab?: import("../types").SidebarTabName;
107
+ } | null;
108
+ openDialog: null | {
109
+ name: "imageExport" | "help" | "jsonExport";
110
+ } | {
111
+ name: "ttd";
112
+ tab: "text-to-diagram" | "mermaid";
113
+ } | {
114
+ name: "commandPalette";
115
+ } | {
116
+ name: "settings";
117
+ } | {
118
+ name: "elementLinkSelector";
119
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
120
+ };
121
+ defaultSidebarDockedPreference: boolean;
122
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
123
+ selectedElementIds: Readonly<{
124
+ [id: string]: true;
125
+ }>;
126
+ hoveredElementIds: Readonly<{
127
+ [id: string]: true;
128
+ }>;
129
+ previousSelectedElementIds: {
130
+ [id: string]: true;
131
+ };
132
+ selectedElementsAreBeingDragged: boolean;
133
+ shouldCacheIgnoreZoom: boolean;
134
+ zenModeEnabled: boolean;
135
+ theme: Theme;
136
+ gridSize: number;
137
+ gridStep: number;
138
+ gridModeEnabled: boolean;
139
+ viewModeEnabled: boolean;
140
+ selectedGroupIds: {
141
+ [groupId: string]: boolean;
142
+ };
143
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
144
+ width: number;
145
+ height: number;
146
+ offsetTop: number;
147
+ offsetLeft: number;
148
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
149
+ stats: {
150
+ open: boolean;
151
+ panels: number;
152
+ };
153
+ currentChartType: import("@excalidraw/element/types").ChartType;
154
+ pasteDialog: {
155
+ shown: false;
156
+ data: null;
157
+ } | {
158
+ shown: true;
159
+ data: import("../charts").Spreadsheet;
160
+ };
161
+ showHyperlinkPopup: false | "info" | "editor";
162
+ linkOpacity: number;
163
+ colorPalette?: {
164
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
165
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
166
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
167
+ topPicks: {
168
+ canvasBackground: [string, string, string, string, string];
169
+ elementStroke: [string, string, string, string, string];
170
+ elementBackground: [string, string, string, string, string];
171
+ };
172
+ };
173
+ allowWheelZoom?: boolean;
174
+ allowPinchZoom?: boolean;
175
+ disableContextMenu: boolean;
176
+ pinnedScripts?: string[];
177
+ customPens?: any[];
178
+ currentStrokeOptions?: any;
179
+ resetCustomPen?: any;
180
+ gridColor: {
181
+ Bold: string;
182
+ Regular: string;
183
+ };
184
+ gridDirection: {
185
+ horizontal: boolean;
186
+ vertical: boolean;
187
+ };
188
+ highlightSearchResult: boolean;
189
+ dynamicStyle: {
190
+ [x: string]: string;
191
+ };
192
+ frameColor: {
193
+ stroke: string;
194
+ fill: string;
195
+ nameColor: string;
196
+ };
197
+ invertBindingBehaviour: boolean;
198
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
199
+ snapLines: readonly import("../snapping").SnapLine[];
200
+ originSnapOffset: {
201
+ x: number;
202
+ y: number;
203
+ } | null;
204
+ objectsSnapModeEnabled: boolean;
205
+ userToFollow: import("../types").UserToFollow | null;
206
+ followedBy: Set<import("../types").SocketId>;
207
+ isCropping: boolean;
208
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
209
+ searchMatches: Readonly<{
210
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
211
+ matches: readonly import("../types").SearchMatch[];
212
+ }> | null;
213
+ activeLockedId: string | null;
214
+ lockedMultiSelections: {
215
+ [groupId: string]: true;
216
+ };
217
+ bindMode: import("@excalidraw/element/types").BindMode;
218
+ };
219
+ } | {
220
+ captureUpdate: "EVENTUALLY";
221
+ appState?: undefined;
222
+ }>;
223
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
224
+ } & {
225
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
226
+ };
227
+ export declare const actionSaveFileToDisk: {
228
+ name: "saveFileToDisk";
229
+ label: string;
230
+ icon: import("react/jsx-runtime").JSX.Element;
231
+ viewMode: true;
232
+ trackEvent: {
233
+ category: "export";
234
+ };
235
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
236
+ captureUpdate: "EVENTUALLY";
237
+ appState: {
238
+ openDialog: null;
239
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
240
+ toast: {
241
+ message: string;
242
+ };
243
+ contextMenu: {
244
+ items: import("../components/ContextMenu").ContextMenuItems;
245
+ top: number;
246
+ left: number;
247
+ } | null;
248
+ showWelcomeScreen: boolean;
249
+ isLoading: boolean;
250
+ errorMessage: React.ReactNode;
251
+ activeEmbeddable: {
252
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
253
+ state: "hover" | "active";
254
+ } | null;
255
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
256
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
257
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
258
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
259
+ isBindingEnabled: boolean;
260
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
261
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
262
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
263
+ frameRendering: {
264
+ enabled: boolean;
265
+ name: boolean;
266
+ outline: boolean;
267
+ clip: boolean;
268
+ markerName: boolean;
269
+ markerEnabled: boolean;
270
+ };
271
+ editingFrame: string | null;
272
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
273
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
274
+ activeTool: {
275
+ lastActiveTool: import("../types").ActiveTool | null;
276
+ locked: boolean;
277
+ fromSelection: boolean;
278
+ } & import("../types").ActiveTool;
279
+ preferredSelectionTool: {
280
+ type: "selection" | "lasso";
281
+ initialized: boolean;
282
+ };
283
+ penMode: boolean;
284
+ penDetected: boolean;
285
+ exportBackground: boolean;
286
+ exportEmbedScene: boolean;
287
+ exportWithDarkMode: boolean;
288
+ exportScale: number;
289
+ currentItemStrokeColor: string;
290
+ currentItemBackgroundColor: string;
291
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
292
+ currentItemStrokeWidth: number;
293
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
294
+ currentItemRoughness: number;
295
+ currentItemOpacity: number;
296
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
297
+ currentItemFontSize: number;
298
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
299
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
300
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
301
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
302
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
303
+ currentItemArrowType: "sharp" | "round" | "elbow";
304
+ currentItemFrameRole: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["frameRole"] | null;
305
+ viewBackgroundColor: string;
306
+ scrollX: number;
307
+ scrollY: number;
308
+ cursorButton: "up" | "down";
309
+ scrolledOutside: boolean;
310
+ name: string | null;
311
+ isResizing: boolean;
312
+ isRotating: boolean;
313
+ zoom: import("../types").Zoom;
314
+ openMenu: "canvas" | "shape" | null;
315
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
316
+ openSidebar: {
317
+ name: import("../types").SidebarName;
318
+ tab?: import("../types").SidebarTabName;
319
+ } | null;
320
+ defaultSidebarDockedPreference: boolean;
321
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
322
+ selectedElementIds: Readonly<{
323
+ [id: string]: true;
324
+ }>;
325
+ hoveredElementIds: Readonly<{
326
+ [id: string]: true;
327
+ }>;
328
+ previousSelectedElementIds: {
329
+ [id: string]: true;
330
+ };
331
+ selectedElementsAreBeingDragged: boolean;
332
+ shouldCacheIgnoreZoom: boolean;
333
+ zenModeEnabled: boolean;
334
+ theme: Theme;
335
+ gridSize: number;
336
+ gridStep: number;
337
+ gridModeEnabled: boolean;
338
+ viewModeEnabled: boolean;
339
+ selectedGroupIds: {
340
+ [groupId: string]: boolean;
341
+ };
342
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
343
+ width: number;
344
+ height: number;
345
+ offsetTop: number;
346
+ offsetLeft: number;
347
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
348
+ stats: {
349
+ open: boolean;
350
+ panels: number;
351
+ };
352
+ currentChartType: import("@excalidraw/element/types").ChartType;
353
+ pasteDialog: {
354
+ shown: false;
355
+ data: null;
356
+ } | {
357
+ shown: true;
358
+ data: import("../charts").Spreadsheet;
359
+ };
360
+ showHyperlinkPopup: false | "info" | "editor";
361
+ linkOpacity: number;
362
+ colorPalette?: {
363
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
364
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
365
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
366
+ topPicks: {
367
+ canvasBackground: [string, string, string, string, string];
368
+ elementStroke: [string, string, string, string, string];
369
+ elementBackground: [string, string, string, string, string];
370
+ };
371
+ };
372
+ allowWheelZoom?: boolean;
373
+ allowPinchZoom?: boolean;
374
+ disableContextMenu: boolean;
375
+ pinnedScripts?: string[];
376
+ customPens?: any[];
377
+ currentStrokeOptions?: any;
378
+ resetCustomPen?: any;
379
+ gridColor: {
380
+ Bold: string;
381
+ Regular: string;
382
+ };
383
+ gridDirection: {
384
+ horizontal: boolean;
385
+ vertical: boolean;
386
+ };
387
+ highlightSearchResult: boolean;
388
+ dynamicStyle: {
389
+ [x: string]: string;
390
+ };
391
+ frameColor: {
392
+ stroke: string;
393
+ fill: string;
394
+ nameColor: string;
395
+ };
396
+ invertBindingBehaviour: boolean;
397
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
398
+ snapLines: readonly import("../snapping").SnapLine[];
399
+ originSnapOffset: {
400
+ x: number;
401
+ y: number;
402
+ } | null;
403
+ objectsSnapModeEnabled: boolean;
404
+ userToFollow: import("../types").UserToFollow | null;
405
+ followedBy: Set<import("../types").SocketId>;
406
+ isCropping: boolean;
407
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
408
+ searchMatches: Readonly<{
409
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
410
+ matches: readonly import("../types").SearchMatch[];
411
+ }> | null;
412
+ activeLockedId: string | null;
413
+ lockedMultiSelections: {
414
+ [groupId: string]: true;
415
+ };
416
+ bindMode: import("@excalidraw/element/types").BindMode;
417
+ };
418
+ } | {
419
+ captureUpdate: "EVENTUALLY";
420
+ appState?: undefined;
421
+ }>;
422
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
423
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
424
+ } & {
425
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
426
+ };
427
+ export declare const actionLoadScene: {
428
+ name: "loadScene";
429
+ label: string;
430
+ trackEvent: {
431
+ category: "export";
432
+ };
433
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
434
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<false | {
435
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
436
+ appState: {
437
+ viewBackgroundColor: string;
438
+ frameRendering: {
439
+ enabled: boolean;
440
+ name: boolean;
441
+ outline: boolean;
442
+ clip: boolean;
443
+ markerName: boolean;
444
+ markerEnabled: boolean;
445
+ };
446
+ frameColor: {
447
+ stroke: string;
448
+ fill: string;
449
+ nameColor: string;
450
+ };
451
+ name: string | null;
452
+ zoom: import("../types").Zoom;
453
+ scrollX: number;
454
+ scrollY: number;
455
+ viewModeEnabled: boolean;
456
+ openDialog: null | {
457
+ name: "imageExport" | "help" | "jsonExport";
458
+ } | {
459
+ name: "ttd";
460
+ tab: "text-to-diagram" | "mermaid";
461
+ } | {
462
+ name: "commandPalette";
463
+ } | {
464
+ name: "settings";
465
+ } | {
466
+ name: "elementLinkSelector";
467
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
468
+ };
469
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
470
+ selectedElementIds: Readonly<{
471
+ [id: string]: true;
472
+ }>;
473
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
474
+ theme: Theme;
475
+ activeEmbeddable: {
476
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
477
+ state: "hover" | "active";
478
+ } | null;
479
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
480
+ selectedGroupIds: {
481
+ [groupId: string]: boolean;
482
+ };
483
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
484
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
485
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
486
+ isBindingEnabled: boolean;
487
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
488
+ isRotating: boolean;
489
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
490
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
491
+ snapLines: readonly import("../snapping").SnapLine[];
492
+ zenModeEnabled: boolean;
493
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
494
+ gridColor: {
495
+ Bold: string;
496
+ Regular: string;
497
+ };
498
+ gridDirection: {
499
+ horizontal: boolean;
500
+ vertical: boolean;
501
+ };
502
+ highlightSearchResult: boolean;
503
+ isCropping: boolean;
504
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
505
+ searchMatches: Readonly<{
506
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
507
+ matches: readonly import("../types").SearchMatch[];
508
+ }> | null;
509
+ activeLockedId: string | null;
510
+ hoveredElementIds: Readonly<{
511
+ [id: string]: true;
512
+ }>;
513
+ shouldCacheIgnoreZoom: boolean;
514
+ exportScale: number;
515
+ bindMode: import("@excalidraw/element/types").BindMode;
516
+ gridSize: number;
517
+ contextMenu: {
518
+ items: import("../components/ContextMenu").ContextMenuItems;
519
+ top: number;
520
+ left: number;
521
+ } | null;
522
+ showWelcomeScreen: boolean;
523
+ isLoading: boolean;
524
+ errorMessage: React.ReactNode;
525
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
526
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
527
+ editingFrame: string | null;
528
+ activeTool: {
529
+ lastActiveTool: import("../types").ActiveTool | null;
530
+ locked: boolean;
531
+ fromSelection: boolean;
532
+ } & import("../types").ActiveTool;
533
+ preferredSelectionTool: {
534
+ type: "selection" | "lasso";
535
+ initialized: boolean;
536
+ };
537
+ penMode: boolean;
538
+ penDetected: boolean;
539
+ exportBackground: boolean;
540
+ exportEmbedScene: boolean;
541
+ exportWithDarkMode: boolean;
542
+ currentItemStrokeColor: string;
543
+ currentItemBackgroundColor: string;
544
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
545
+ currentItemStrokeWidth: number;
546
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
547
+ currentItemRoughness: number;
548
+ currentItemOpacity: number;
549
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
550
+ currentItemFontSize: number;
551
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
552
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
553
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
554
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
555
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
556
+ currentItemArrowType: "sharp" | "round" | "elbow";
557
+ currentItemFrameRole: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["frameRole"] | null;
558
+ cursorButton: "up" | "down";
559
+ scrolledOutside: boolean;
560
+ isResizing: boolean;
561
+ openMenu: "canvas" | "shape" | null;
562
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
563
+ openSidebar: {
564
+ name: import("../types").SidebarName;
565
+ tab?: import("../types").SidebarTabName;
566
+ } | null;
567
+ defaultSidebarDockedPreference: boolean;
568
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
569
+ previousSelectedElementIds: {
570
+ [id: string]: true;
571
+ };
572
+ selectedElementsAreBeingDragged: boolean;
573
+ toast: {
574
+ message: string;
575
+ closable?: boolean;
576
+ duration?: number;
577
+ } | null;
578
+ gridStep: number;
579
+ gridModeEnabled: boolean;
580
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
581
+ stats: {
582
+ open: boolean;
583
+ panels: number;
584
+ };
585
+ currentChartType: import("@excalidraw/element/types").ChartType;
586
+ pasteDialog: {
587
+ shown: false;
588
+ data: null;
589
+ } | {
590
+ shown: true;
591
+ data: import("../charts").Spreadsheet;
592
+ };
593
+ showHyperlinkPopup: false | "info" | "editor";
594
+ linkOpacity: number;
595
+ colorPalette?: {
596
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
597
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
598
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
599
+ topPicks: {
600
+ canvasBackground: [string, string, string, string, string];
601
+ elementStroke: [string, string, string, string, string];
602
+ elementBackground: [string, string, string, string, string];
603
+ };
604
+ } | undefined;
605
+ allowWheelZoom?: boolean | undefined;
606
+ allowPinchZoom?: boolean | undefined;
607
+ disableContextMenu: boolean;
608
+ pinnedScripts?: string[] | undefined;
609
+ customPens?: any[] | undefined;
610
+ currentStrokeOptions?: any;
611
+ resetCustomPen?: any;
612
+ dynamicStyle: {
613
+ [x: string]: string;
614
+ };
615
+ invertBindingBehaviour: boolean;
616
+ originSnapOffset: {
617
+ x: number;
618
+ y: number;
619
+ } | null;
620
+ objectsSnapModeEnabled: boolean;
621
+ userToFollow: import("../types").UserToFollow | null;
622
+ followedBy: Set<import("../types").SocketId>;
623
+ lockedMultiSelections: {
624
+ [groupId: string]: true;
625
+ };
626
+ };
627
+ files: import("../types").BinaryFiles;
628
+ captureUpdate: "IMMEDIATELY";
629
+ } | {
630
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
631
+ appState: {
632
+ errorMessage: any;
633
+ contextMenu: {
634
+ items: import("../components/ContextMenu").ContextMenuItems;
635
+ top: number;
636
+ left: number;
637
+ } | null;
638
+ showWelcomeScreen: boolean;
639
+ isLoading: boolean;
640
+ activeEmbeddable: {
641
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
642
+ state: "hover" | "active";
643
+ } | null;
644
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
645
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
646
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
647
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
648
+ isBindingEnabled: boolean;
649
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
650
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
651
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
652
+ frameRendering: {
653
+ enabled: boolean;
654
+ name: boolean;
655
+ outline: boolean;
656
+ clip: boolean;
657
+ markerName: boolean;
658
+ markerEnabled: boolean;
659
+ };
660
+ editingFrame: string | null;
661
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
662
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
663
+ activeTool: {
664
+ lastActiveTool: import("../types").ActiveTool | null;
665
+ locked: boolean;
666
+ fromSelection: boolean;
667
+ } & import("../types").ActiveTool;
668
+ preferredSelectionTool: {
669
+ type: "selection" | "lasso";
670
+ initialized: boolean;
671
+ };
672
+ penMode: boolean;
673
+ penDetected: boolean;
674
+ exportBackground: boolean;
675
+ exportEmbedScene: boolean;
676
+ exportWithDarkMode: boolean;
677
+ exportScale: number;
678
+ currentItemStrokeColor: string;
679
+ currentItemBackgroundColor: string;
680
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
681
+ currentItemStrokeWidth: number;
682
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
683
+ currentItemRoughness: number;
684
+ currentItemOpacity: number;
685
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
686
+ currentItemFontSize: number;
687
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
688
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
689
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
690
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
691
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
692
+ currentItemArrowType: "sharp" | "round" | "elbow";
693
+ currentItemFrameRole: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["frameRole"] | null;
694
+ viewBackgroundColor: string;
695
+ scrollX: number;
696
+ scrollY: number;
697
+ cursorButton: "up" | "down";
698
+ scrolledOutside: boolean;
699
+ name: string | null;
700
+ isResizing: boolean;
701
+ isRotating: boolean;
702
+ zoom: import("../types").Zoom;
703
+ openMenu: "canvas" | "shape" | null;
704
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
705
+ openSidebar: {
706
+ name: import("../types").SidebarName;
707
+ tab?: import("../types").SidebarTabName;
708
+ } | null;
709
+ openDialog: null | {
710
+ name: "imageExport" | "help" | "jsonExport";
711
+ } | {
712
+ name: "ttd";
713
+ tab: "text-to-diagram" | "mermaid";
714
+ } | {
715
+ name: "commandPalette";
716
+ } | {
717
+ name: "settings";
718
+ } | {
719
+ name: "elementLinkSelector";
720
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
721
+ };
722
+ defaultSidebarDockedPreference: boolean;
723
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
724
+ selectedElementIds: Readonly<{
725
+ [id: string]: true;
726
+ }>;
727
+ hoveredElementIds: Readonly<{
728
+ [id: string]: true;
729
+ }>;
730
+ previousSelectedElementIds: {
731
+ [id: string]: true;
732
+ };
733
+ selectedElementsAreBeingDragged: boolean;
734
+ shouldCacheIgnoreZoom: boolean;
735
+ toast: {
736
+ message: string;
737
+ closable?: boolean;
738
+ duration?: number;
739
+ } | null;
740
+ zenModeEnabled: boolean;
741
+ theme: Theme;
742
+ gridSize: number;
743
+ gridStep: number;
744
+ gridModeEnabled: boolean;
745
+ viewModeEnabled: boolean;
746
+ selectedGroupIds: {
747
+ [groupId: string]: boolean;
748
+ };
749
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
750
+ width: number;
751
+ height: number;
752
+ offsetTop: number;
753
+ offsetLeft: number;
754
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
755
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
756
+ stats: {
757
+ open: boolean;
758
+ panels: number;
759
+ };
760
+ currentChartType: import("@excalidraw/element/types").ChartType;
761
+ pasteDialog: {
762
+ shown: false;
763
+ data: null;
764
+ } | {
765
+ shown: true;
766
+ data: import("../charts").Spreadsheet;
767
+ };
768
+ showHyperlinkPopup: false | "info" | "editor";
769
+ linkOpacity: number;
770
+ colorPalette?: {
771
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
772
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
773
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
774
+ topPicks: {
775
+ canvasBackground: [string, string, string, string, string];
776
+ elementStroke: [string, string, string, string, string];
777
+ elementBackground: [string, string, string, string, string];
778
+ };
779
+ };
780
+ allowWheelZoom?: boolean;
781
+ allowPinchZoom?: boolean;
782
+ disableContextMenu: boolean;
783
+ pinnedScripts?: string[];
784
+ customPens?: any[];
785
+ currentStrokeOptions?: any;
786
+ resetCustomPen?: any;
787
+ gridColor: {
788
+ Bold: string;
789
+ Regular: string;
790
+ };
791
+ gridDirection: {
792
+ horizontal: boolean;
793
+ vertical: boolean;
794
+ };
795
+ highlightSearchResult: boolean;
796
+ dynamicStyle: {
797
+ [x: string]: string;
798
+ };
799
+ frameColor: {
800
+ stroke: string;
801
+ fill: string;
802
+ nameColor: string;
803
+ };
804
+ invertBindingBehaviour: boolean;
805
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
806
+ snapLines: readonly import("../snapping").SnapLine[];
807
+ originSnapOffset: {
808
+ x: number;
809
+ y: number;
810
+ } | null;
811
+ objectsSnapModeEnabled: boolean;
812
+ userToFollow: import("../types").UserToFollow | null;
813
+ followedBy: Set<import("../types").SocketId>;
814
+ isCropping: boolean;
815
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
816
+ searchMatches: Readonly<{
817
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
818
+ matches: readonly import("../types").SearchMatch[];
819
+ }> | null;
820
+ activeLockedId: string | null;
821
+ lockedMultiSelections: {
822
+ [groupId: string]: true;
823
+ };
824
+ bindMode: import("@excalidraw/element/types").BindMode;
825
+ };
826
+ files: import("../types").BinaryFiles;
827
+ captureUpdate: "EVENTUALLY";
828
+ }>;
829
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
830
+ } & {
831
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
832
+ };
833
+ export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
834
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
835
+ };