@zsviczian/excalidraw 0.18.0-17 → 0.18.0-19

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