@zsviczian/excalidraw 0.18.0-21 → 0.18.0-23

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