@zsviczian/excalidraw 0.18.0-31 → 0.18.0-33

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