@zsviczian/excalidraw 0.18.0-14 → 0.18.0-15

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