@zsviczian/excalidraw 0.18.0-13 → 0.18.0-14

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