@zsviczian/excalidraw 0.18.0-31 → 0.18.0-33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. package/dist/excalidraw.development.js +159 -104
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/common/src/binary-heap.d.ts +12 -12
  5. package/types/common/src/colors.d.ts +62 -62
  6. package/types/common/src/constants.d.ts +354 -354
  7. package/types/common/src/emitter.d.ts +16 -16
  8. package/types/common/src/font-metadata.d.ts +48 -48
  9. package/types/common/src/index.d.ts +12 -12
  10. package/types/common/src/keys.d.ts +189 -189
  11. package/types/common/src/points.d.ts +9 -9
  12. package/types/common/src/promise-pool.d.ts +6 -6
  13. package/types/common/src/queue.d.ts +9 -9
  14. package/types/common/src/random.d.ts +4 -4
  15. package/types/common/src/url.d.ts +7 -7
  16. package/types/common/src/utility-types.d.ts +37 -37
  17. package/types/common/src/utils.d.ts +267 -267
  18. package/types/element/src/Scene.d.ts +76 -76
  19. package/types/element/src/align.d.ts +8 -8
  20. package/types/element/src/binding.d.ts +111 -111
  21. package/types/element/src/bounds.d.ts +89 -89
  22. package/types/element/src/collision.d.ts +32 -32
  23. package/types/element/src/comparisons.d.ts +8 -8
  24. package/types/element/src/containerCache.d.ts +11 -11
  25. package/types/element/src/cropElement.d.ts +19 -19
  26. package/types/element/src/delta.d.ts +225 -225
  27. package/types/element/src/distance.d.ts +3 -3
  28. package/types/element/src/distribute.d.ts +7 -7
  29. package/types/element/src/dragElements.d.ts +33 -33
  30. package/types/element/src/duplicate.d.ts +63 -63
  31. package/types/element/src/easingFunctions.d.ts +6 -6
  32. package/types/element/src/elbowArrow.d.ts +17 -17
  33. package/types/element/src/elementLink.d.ts +13 -13
  34. package/types/element/src/embeddable.d.ts +10 -10
  35. package/types/element/src/flowchart.d.ts +26 -26
  36. package/types/element/src/fractionalIndex.d.ts +57 -57
  37. package/types/element/src/frame.d.ts +70 -70
  38. package/types/element/src/groups.d.ts +34 -34
  39. package/types/element/src/heading.d.ts +15 -15
  40. package/types/element/src/image.d.ts +32 -32
  41. package/types/element/src/index.d.ts +57 -57
  42. package/types/element/src/linearElementEditor.d.ts +116 -116
  43. package/types/element/src/mutateElement.d.ts +21 -21
  44. package/types/element/src/newElement.d.ts +64 -64
  45. package/types/element/src/renderElement.d.ts +28 -28
  46. package/types/element/src/resizeElements.d.ts +39 -39
  47. package/types/element/src/resizeTest.d.ts +15 -15
  48. package/types/element/src/selection.d.ts +38 -38
  49. package/types/element/src/shape.d.ts +42 -42
  50. package/types/element/src/showSelectedShapeActions.d.ts +3 -3
  51. package/types/element/src/sizeHelpers.d.ts +35 -35
  52. package/types/element/src/sortElements.d.ts +2 -2
  53. package/types/element/src/store.d.ts +232 -232
  54. package/types/element/src/textElement.d.ts +40 -40
  55. package/types/element/src/textMeasurements.d.ts +41 -41
  56. package/types/element/src/textWrapping.d.ts +13 -13
  57. package/types/element/src/transformHandles.d.ts +55 -55
  58. package/types/element/src/typeChecks.d.ts +57 -57
  59. package/types/element/src/types.d.ts +308 -308
  60. package/types/element/src/utils.d.ts +31 -31
  61. package/types/element/src/zindex.d.ts +7 -7
  62. package/types/excalidraw/actions/actionAddToLibrary.d.ts +641 -641
  63. package/types/excalidraw/actions/actionAlign.d.ts +109 -109
  64. package/types/excalidraw/actions/actionBoundText.d.ts +464 -464
  65. package/types/excalidraw/actions/actionCanvas.d.ts +3338 -3338
  66. package/types/excalidraw/actions/actionClipboard.d.ts +1400 -1400
  67. package/types/excalidraw/actions/actionCropEditor.d.ts +226 -226
  68. package/types/excalidraw/actions/actionDeleteSelected.d.ts +681 -681
  69. package/types/excalidraw/actions/actionDistribute.d.ts +34 -34
  70. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +17 -17
  71. package/types/excalidraw/actions/actionElementLink.d.ts +248 -248
  72. package/types/excalidraw/actions/actionElementLock.d.ts +450 -450
  73. package/types/excalidraw/actions/actionEmbeddable.d.ts +223 -223
  74. package/types/excalidraw/actions/actionExport.d.ts +1989 -1989
  75. package/types/excalidraw/actions/actionFinalize.d.ts +679 -679
  76. package/types/excalidraw/actions/actionFlip.d.ts +34 -34
  77. package/types/excalidraw/actions/actionFrame.d.ts +1409 -1409
  78. package/types/excalidraw/actions/actionGroup.d.ts +462 -462
  79. package/types/excalidraw/actions/actionHistory.d.ts +6 -6
  80. package/types/excalidraw/actions/actionLinearEditor.d.ts +763 -763
  81. package/types/excalidraw/actions/actionLink.d.ts +227 -227
  82. package/types/excalidraw/actions/actionMenu.d.ts +661 -661
  83. package/types/excalidraw/actions/actionNavigate.d.ts +438 -438
  84. package/types/excalidraw/actions/actionProperties.d.ts +3574 -3574
  85. package/types/excalidraw/actions/actionSelectAll.d.ts +226 -226
  86. package/types/excalidraw/actions/actionStyles.d.ts +240 -240
  87. package/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -17
  88. package/types/excalidraw/actions/actionToggleGridMode.d.ts +229 -229
  89. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +227 -227
  90. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +220 -220
  91. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -19
  92. package/types/excalidraw/actions/actionToggleStats.d.ts +226 -226
  93. package/types/excalidraw/actions/actionToggleViewMode.d.ts +227 -227
  94. package/types/excalidraw/actions/actionToggleZenMode.d.ts +227 -227
  95. package/types/excalidraw/actions/actionZindex.d.ts +74 -74
  96. package/types/excalidraw/actions/index.d.ts +29 -29
  97. package/types/excalidraw/actions/manager.d.ts +21 -21
  98. package/types/excalidraw/actions/register.d.ts +5 -5
  99. package/types/excalidraw/actions/shortcuts.d.ts +4 -4
  100. package/types/excalidraw/actions/types.d.ts +47 -47
  101. package/types/excalidraw/analytics.d.ts +1 -1
  102. package/types/excalidraw/animated-trail.d.ts +39 -39
  103. package/types/excalidraw/animation-frame-handler.d.ts +16 -16
  104. package/types/excalidraw/appState.d.ts +100 -100
  105. package/types/excalidraw/charts.d.ts +27 -27
  106. package/types/excalidraw/clients.d.ts +14 -14
  107. package/types/excalidraw/clipboard.d.ts +66 -66
  108. package/types/excalidraw/components/Actions.d.ts +31 -31
  109. package/types/excalidraw/components/ActiveConfirmDialog.d.ts +4 -4
  110. package/types/excalidraw/components/App.d.ts +567 -567
  111. package/types/excalidraw/components/Avatar.d.ts +11 -11
  112. package/types/excalidraw/components/BraveMeasureTextError.d.ts +2 -2
  113. package/types/excalidraw/components/Button.d.ts +17 -17
  114. package/types/excalidraw/components/ButtonIcon.d.ts +16 -16
  115. package/types/excalidraw/components/ButtonIconCycle.d.ts +11 -11
  116. package/types/excalidraw/components/ButtonSeparator.d.ts +1 -1
  117. package/types/excalidraw/components/Card.d.ts +6 -6
  118. package/types/excalidraw/components/CheckboxItem.d.ts +8 -8
  119. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +10 -10
  120. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +23 -23
  121. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +8 -8
  122. package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +7 -7
  123. package/types/excalidraw/components/ColorPicker/Picker.d.ts +17 -17
  124. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -9
  125. package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +5 -5
  126. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +8 -8
  127. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +9 -9
  128. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +21 -21
  129. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +20 -20
  130. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +18 -18
  131. package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -2
  132. package/types/excalidraw/components/CommandPalette/types.d.ts +25 -25
  133. package/types/excalidraw/components/ConfirmDialog.d.ts +10 -10
  134. package/types/excalidraw/components/ContextMenu.d.ts +16 -16
  135. package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -23
  136. package/types/excalidraw/components/DarkModeToggle.d.ts +7 -7
  137. package/types/excalidraw/components/DefaultSidebar.d.ts +30 -30
  138. package/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +4 -4
  139. package/types/excalidraw/components/Dialog.d.ts +13 -13
  140. package/types/excalidraw/components/DialogActionButton.d.ts +10 -10
  141. package/types/excalidraw/components/ElementCanvasButtons.d.ts +7 -7
  142. package/types/excalidraw/components/ElementLinkDialog.d.ts +12 -12
  143. package/types/excalidraw/components/Ellipsify.d.ts +3 -3
  144. package/types/excalidraw/components/ErrorDialog.d.ts +5 -5
  145. package/types/excalidraw/components/ExcalidrawLogo.d.ts +15 -15
  146. package/types/excalidraw/components/EyeDropper.d.ts +27 -27
  147. package/types/excalidraw/components/FilledButton.d.ts +18 -18
  148. package/types/excalidraw/components/FixedSideContainer.d.ts +9 -9
  149. package/types/excalidraw/components/FollowMode/FollowMode.d.ts +10 -10
  150. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +21 -21
  151. package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +26 -26
  152. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +6 -6
  153. package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +13 -13
  154. package/types/excalidraw/components/HandButton.d.ts +10 -10
  155. package/types/excalidraw/components/HelpButton.d.ts +7 -7
  156. package/types/excalidraw/components/HelpDialog.d.ts +4 -4
  157. package/types/excalidraw/components/HintViewer.d.ts +10 -10
  158. package/types/excalidraw/components/IconPicker.d.ts +15 -15
  159. package/types/excalidraw/components/ImageExportDialog.d.ts +14 -14
  160. package/types/excalidraw/components/InitializeApp.d.ts +10 -10
  161. package/types/excalidraw/components/InlineIcon.d.ts +3 -3
  162. package/types/excalidraw/components/Island.d.ts +10 -10
  163. package/types/excalidraw/components/JSONExportDialog.d.ts +15 -15
  164. package/types/excalidraw/components/LaserPointerButton.d.ts +10 -10
  165. package/types/excalidraw/components/LayerUI.d.ts +31 -31
  166. package/types/excalidraw/components/LibraryMenu.d.ts +10 -10
  167. package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +7 -7
  168. package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +9 -9
  169. package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +17 -17
  170. package/types/excalidraw/components/LibraryMenuItems.d.ts +14 -14
  171. package/types/excalidraw/components/LibraryMenuSection.d.ts +23 -23
  172. package/types/excalidraw/components/LibraryUnit.d.ts +14 -14
  173. package/types/excalidraw/components/LoadingMessage.d.ts +5 -5
  174. package/types/excalidraw/components/LockButton.d.ts +10 -10
  175. package/types/excalidraw/components/MagicButton.d.ts +10 -10
  176. package/types/excalidraw/components/MobileMenu.d.ts +25 -25
  177. package/types/excalidraw/components/Modal.d.ts +14 -14
  178. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -17
  179. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -17
  180. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -22
  181. package/types/excalidraw/components/Paragraph.d.ts +4 -4
  182. package/types/excalidraw/components/PasteChartDialog.d.ts +8 -8
  183. package/types/excalidraw/components/PenModeButton.d.ts +12 -12
  184. package/types/excalidraw/components/Popover.d.ts +15 -15
  185. package/types/excalidraw/components/ProjectName.d.ts +10 -10
  186. package/types/excalidraw/components/PropertiesPopover.d.ts +15 -15
  187. package/types/excalidraw/components/PublishLibrary.d.ts +16 -16
  188. package/types/excalidraw/components/QuickSearch.d.ts +9 -9
  189. package/types/excalidraw/components/RadioGroup.d.ts +13 -13
  190. package/types/excalidraw/components/RadioSelection.d.ts +20 -20
  191. package/types/excalidraw/components/Range.d.ts +8 -8
  192. package/types/excalidraw/components/SVGLayer.d.ts +7 -7
  193. package/types/excalidraw/components/ScrollableList.d.ts +8 -8
  194. package/types/excalidraw/components/SearchMenu.d.ts +5 -5
  195. package/types/excalidraw/components/Section.d.ts +6 -6
  196. package/types/excalidraw/components/ShareableLinkDialog.d.ts +7 -7
  197. package/types/excalidraw/components/Sidebar/Sidebar.d.ts +76 -76
  198. package/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +7 -7
  199. package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +8 -8
  200. package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +9 -9
  201. package/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +6 -6
  202. package/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +6 -6
  203. package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +6 -6
  204. package/types/excalidraw/components/Sidebar/common.d.ts +34 -34
  205. package/types/excalidraw/components/Spinner.d.ts +8 -8
  206. package/types/excalidraw/components/Stack.d.ts +15 -15
  207. package/types/excalidraw/components/Stats/Angle.d.ts +11 -11
  208. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +10 -10
  209. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +10 -10
  210. package/types/excalidraw/components/Stats/Collapsible.d.ts +10 -10
  211. package/types/excalidraw/components/Stats/Dimension.d.ts +11 -11
  212. package/types/excalidraw/components/Stats/DragInput.d.ts +44 -44
  213. package/types/excalidraw/components/Stats/FontSize.d.ts +11 -11
  214. package/types/excalidraw/components/Stats/MultiAngle.d.ts +11 -11
  215. package/types/excalidraw/components/Stats/MultiDimension.d.ts +14 -14
  216. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +12 -12
  217. package/types/excalidraw/components/Stats/MultiPosition.d.ts +14 -14
  218. package/types/excalidraw/components/Stats/Position.d.ts +12 -12
  219. package/types/excalidraw/components/Stats/index.d.ts +35 -35
  220. package/types/excalidraw/components/Stats/utils.d.ts +19 -19
  221. package/types/excalidraw/components/Switch.d.ts +9 -9
  222. package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +8 -8
  223. package/types/excalidraw/components/TTDDialog/MermaidToExcalidrawLib.d.ts +10 -10
  224. package/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +29 -29
  225. package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +9 -9
  226. package/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +7 -7
  227. package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +17 -17
  228. package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +4 -4
  229. package/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -1
  230. package/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +7 -7
  231. package/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -8
  232. package/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -6
  233. package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +11 -11
  234. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +9 -9
  235. package/types/excalidraw/components/TTDDialog/common.d.ts +32 -32
  236. package/types/excalidraw/components/TextField.d.ts +21 -21
  237. package/types/excalidraw/components/Toast.d.ts +9 -9
  238. package/types/excalidraw/components/ToolButton.d.ts +49 -49
  239. package/types/excalidraw/components/Tooltip.d.ts +18 -18
  240. package/types/excalidraw/components/Trans.d.ts +9 -9
  241. package/types/excalidraw/components/UnlockPopup.d.ts +8 -8
  242. package/types/excalidraw/components/UserList.d.ts +18 -18
  243. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +30 -30
  244. package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +14 -14
  245. package/types/excalidraw/components/canvases/StaticCanvas.d.ts +19 -19
  246. package/types/excalidraw/components/canvases/index.d.ts +3 -3
  247. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +86 -86
  248. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
  249. package/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  250. package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +46 -46
  251. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +8 -8
  252. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -17
  253. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +7 -7
  254. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +16 -16
  255. package/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  256. package/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +10 -10
  257. package/types/excalidraw/components/dropdownMenu/common.d.ts +6 -6
  258. package/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  259. package/types/excalidraw/components/footer/Footer.d.ts +12 -12
  260. package/types/excalidraw/components/footer/FooterCenter.d.ts +8 -8
  261. package/types/excalidraw/components/hoc/withInternalFallback.d.ts +4 -4
  262. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +19 -19
  263. package/types/excalidraw/components/hyperlink/helpers.d.ts +10 -10
  264. package/types/excalidraw/components/icons.d.ts +228 -228
  265. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +9 -9
  266. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +64 -64
  267. package/types/excalidraw/components/main-menu/MainMenu.d.ts +83 -83
  268. package/types/excalidraw/components/shapes.d.ts +62 -62
  269. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +60 -60
  270. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  271. package/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +86 -86
  272. package/types/excalidraw/context/tunnels.d.ts +21 -21
  273. package/types/excalidraw/context/ui-appState.d.ts +4 -4
  274. package/types/excalidraw/cursor.d.ts +6 -6
  275. package/types/excalidraw/data/EditorLocalStorage.d.ts +8 -8
  276. package/types/excalidraw/data/ai/types.d.ts +242 -242
  277. package/types/excalidraw/data/blob.d.ts +53 -53
  278. package/types/excalidraw/data/encode.d.ts +55 -55
  279. package/types/excalidraw/data/encryption.d.ts +9 -9
  280. package/types/excalidraw/data/filesystem.d.ts +21 -21
  281. package/types/excalidraw/data/image.d.ts +9 -9
  282. package/types/excalidraw/data/index.d.ts +22 -22
  283. package/types/excalidraw/data/json.d.ts +16 -16
  284. package/types/excalidraw/data/library.d.ts +112 -112
  285. package/types/excalidraw/data/reconcile.d.ts +7 -7
  286. package/types/excalidraw/data/resave.d.ts +5 -5
  287. package/types/excalidraw/data/restore.d.ts +21 -21
  288. package/types/excalidraw/data/transform.d.ts +81 -81
  289. package/types/excalidraw/data/types.d.ts +45 -45
  290. package/types/excalidraw/deburr.d.ts +1 -1
  291. package/types/excalidraw/dist/excalidraw.development.d.ts +2 -2
  292. package/types/excalidraw/dist/excalidraw.production.min.d.ts +3 -3
  293. package/types/excalidraw/editor-jotai.d.ts +56 -56
  294. package/types/excalidraw/entry.d.ts +1 -1
  295. package/types/excalidraw/env.d.cts +1 -1
  296. package/types/excalidraw/env.d.ts +1 -1
  297. package/types/excalidraw/eraser/index.d.ts +12 -12
  298. package/types/excalidraw/errors.d.ts +29 -29
  299. package/types/excalidraw/fonts/Cascadia/index.d.ts +2 -2
  300. package/types/excalidraw/fonts/ComicShanns/index.d.ts +2 -2
  301. package/types/excalidraw/fonts/Emoji/index.d.ts +2 -2
  302. package/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +29 -29
  303. package/types/excalidraw/fonts/Excalifont/index.d.ts +2 -2
  304. package/types/excalidraw/fonts/Fonts.d.ts +90 -90
  305. package/types/excalidraw/fonts/Helvetica/index.d.ts +2 -2
  306. package/types/excalidraw/fonts/Liberation/index.d.ts +2 -2
  307. package/types/excalidraw/fonts/Lilita/index.d.ts +2 -2
  308. package/types/excalidraw/fonts/Nunito/index.d.ts +2 -2
  309. package/types/excalidraw/fonts/Virgil/index.d.ts +2 -2
  310. package/types/excalidraw/fonts/Xiaolai/index.d.ts +8 -8
  311. package/types/excalidraw/fonts/index.d.ts +1 -1
  312. package/types/excalidraw/gesture.d.ts +6 -6
  313. package/types/excalidraw/history.d.ts +48 -48
  314. package/types/excalidraw/hooks/useCallbackRefState.d.ts +1 -1
  315. package/types/excalidraw/hooks/useCopiedIndicator.d.ts +5 -5
  316. package/types/excalidraw/hooks/useCreatePortalContainer.d.ts +7 -7
  317. package/types/excalidraw/hooks/useEmitter.d.ts +2 -2
  318. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +11 -11
  319. package/types/excalidraw/hooks/useOutsideClick.d.ts +19 -19
  320. package/types/excalidraw/hooks/useScrollPosition.d.ts +1 -1
  321. package/types/excalidraw/hooks/useStable.d.ts +1 -1
  322. package/types/excalidraw/hooks/useStableCallback.d.ts +4 -4
  323. package/types/excalidraw/hooks/useTransition.d.ts +2 -2
  324. package/types/excalidraw/i18n.d.ts +24 -24
  325. package/types/excalidraw/index-node.d.ts +1 -1
  326. package/types/excalidraw/index.d.ts +61 -61
  327. package/types/excalidraw/laser-trails.d.ts +20 -20
  328. package/types/excalidraw/lasso/index.d.ts +16 -16
  329. package/types/excalidraw/lasso/utils.d.ts +13 -13
  330. package/types/excalidraw/main.d.ts +2 -2
  331. package/types/excalidraw/mermaid.d.ts +2 -2
  332. package/types/excalidraw/obsidianUtils.d.ts +40 -40
  333. package/types/excalidraw/polyfill.d.ts +2 -2
  334. package/types/excalidraw/publicPath.d.ts +1 -1
  335. package/types/excalidraw/reactUtils.d.ts +14 -14
  336. package/types/excalidraw/renderer/helpers.d.ts +18 -18
  337. package/types/excalidraw/renderer/interactiveScene.d.ts +20 -20
  338. package/types/excalidraw/renderer/renderNewElementScene.d.ts +7 -7
  339. package/types/excalidraw/renderer/renderSnaps.d.ts +2 -2
  340. package/types/excalidraw/renderer/roundRect.d.ts +11 -11
  341. package/types/excalidraw/renderer/staticScene.d.ts +14 -14
  342. package/types/excalidraw/renderer/staticSvgScene.d.ts +5 -5
  343. package/types/excalidraw/scene/Renderer.d.ts +27 -27
  344. package/types/excalidraw/scene/export.d.ts +37 -37
  345. package/types/excalidraw/scene/index.d.ts +4 -4
  346. package/types/excalidraw/scene/normalize.d.ts +4 -4
  347. package/types/excalidraw/scene/scroll.d.ts +23 -23
  348. package/types/excalidraw/scene/scrollbars.d.ts +11 -11
  349. package/types/excalidraw/scene/types.d.ts +122 -122
  350. package/types/excalidraw/scene/zoom.d.ts +12 -12
  351. package/types/excalidraw/snapping.d.ts +111 -111
  352. package/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +45 -45
  353. package/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +13 -13
  354. package/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +2 -2
  355. package/types/excalidraw/subset/subset-main.d.ts +12 -12
  356. package/types/excalidraw/subset/subset-shared.chunk.d.ts +32 -32
  357. package/types/excalidraw/subset/subset-worker.chunk.d.ts +15 -15
  358. package/types/excalidraw/subset/woff2/woff2-bindings.d.ts +31 -31
  359. package/types/excalidraw/subset/woff2/woff2-loader.d.ts +14 -14
  360. package/types/excalidraw/subset/woff2/woff2-wasm.d.ts +2 -2
  361. package/types/excalidraw/types.d.ts +781 -781
  362. package/types/excalidraw/webpack.dev.config.d.ts +114 -114
  363. package/types/excalidraw/webpack.prod.config.d.ts +128 -128
  364. package/types/excalidraw/workers.d.ts +36 -36
  365. package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +24 -24
  366. package/types/math/src/angle.d.ts +19 -19
  367. package/types/math/src/constants.d.ts +3 -3
  368. package/types/math/src/curve.d.ts +74 -74
  369. package/types/math/src/ellipse.d.ts +44 -44
  370. package/types/math/src/index.d.ts +13 -13
  371. package/types/math/src/line.d.ts +17 -17
  372. package/types/math/src/point.d.ts +122 -122
  373. package/types/math/src/polygon.d.ts +6 -6
  374. package/types/math/src/range.d.ts +44 -44
  375. package/types/math/src/rectangle.d.ts +5 -5
  376. package/types/math/src/segment.d.ts +39 -39
  377. package/types/math/src/triangle.d.ts +11 -11
  378. package/types/math/src/types.d.ts +106 -106
  379. package/types/math/src/utils.d.ts +7 -7
  380. package/types/math/src/vector.d.ts +94 -94
  381. package/types/utils/src/bbox.d.ts +9 -9
  382. package/types/utils/src/export.d.ts +35 -35
  383. package/types/utils/src/index.d.ts +4 -4
  384. package/types/utils/src/shape.d.ts +58 -58
  385. package/types/utils/src/withinBounds.d.ts +19 -19
@@ -1,1400 +1,1400 @@
1
- export declare const actionCopy: {
2
- name: "copy";
3
- label: string;
4
- icon: import("react/jsx-runtime").JSX.Element;
5
- trackEvent: {
6
- category: "element";
7
- };
8
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
9
- captureUpdate: "EVENTUALLY";
10
- appState: {
11
- errorMessage: any;
12
- contextMenu: {
13
- items: import("../components/ContextMenu").ContextMenuItems;
14
- top: number;
15
- left: number;
16
- } | null;
17
- showWelcomeScreen: boolean;
18
- isLoading: boolean;
19
- activeEmbeddable: {
20
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
- state: "active" | "hover";
22
- } | null;
23
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
25
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
26
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
- isBindingEnabled: boolean;
28
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
- frameRendering: {
32
- enabled: boolean;
33
- name: boolean;
34
- outline: boolean;
35
- clip: boolean;
36
- markerName: boolean;
37
- markerEnabled: boolean;
38
- };
39
- editingFrame: string | null;
40
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
41
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
- activeTool: {
43
- lastActiveTool: import("../types").ActiveTool | null;
44
- locked: boolean;
45
- fromSelection: boolean;
46
- } & import("../types").ActiveTool;
47
- penMode: boolean;
48
- penDetected: boolean;
49
- exportBackground: boolean;
50
- exportEmbedScene: boolean;
51
- exportWithDarkMode: boolean;
52
- exportScale: number;
53
- currentItemStrokeColor: string;
54
- currentItemBackgroundColor: string;
55
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
56
- currentItemStrokeWidth: number;
57
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
58
- currentItemRoughness: number;
59
- currentItemOpacity: number;
60
- currentItemFontFamily: number;
61
- currentItemFontSize: number;
62
- currentItemTextAlign: string;
63
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
65
- currentHoveredFontFamily: number | null;
66
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
67
- currentItemArrowType: "round" | "sharp" | "elbow";
68
- currentItemFrameRole: ("marker" | null) | undefined;
69
- viewBackgroundColor: string;
70
- scrollX: number;
71
- scrollY: number;
72
- cursorButton: "up" | "down";
73
- scrolledOutside: boolean;
74
- name: string | null;
75
- isResizing: boolean;
76
- isRotating: boolean;
77
- zoom: Readonly<{
78
- value: import("../types").NormalizedZoomValue;
79
- }>;
80
- openMenu: "canvas" | "shape" | null;
81
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
82
- openSidebar: {
83
- name: string;
84
- tab?: string | undefined;
85
- } | null;
86
- openDialog: {
87
- name: "help" | "imageExport" | "jsonExport";
88
- } | {
89
- name: "ttd";
90
- tab: "mermaid" | "text-to-diagram";
91
- } | {
92
- name: "commandPalette";
93
- } | {
94
- name: "elementLinkSelector";
95
- sourceElementId: string;
96
- } | null;
97
- defaultSidebarDockedPreference: boolean;
98
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
99
- selectedElementIds: Readonly<{
100
- [id: string]: true;
101
- }>;
102
- hoveredElementIds: Readonly<{
103
- [id: string]: true;
104
- }>;
105
- previousSelectedElementIds: {
106
- [id: string]: true;
107
- };
108
- selectedElementsAreBeingDragged: boolean;
109
- shouldCacheIgnoreZoom: boolean;
110
- toast: {
111
- message: string;
112
- closable?: boolean | undefined;
113
- duration?: number | undefined;
114
- } | null;
115
- zenModeEnabled: boolean;
116
- theme: import("@excalidraw/element/types").Theme;
117
- gridSize: number;
118
- gridStep: number;
119
- gridModeEnabled: boolean;
120
- viewModeEnabled: boolean;
121
- selectedGroupIds: {
122
- [groupId: string]: boolean;
123
- };
124
- editingGroupId: string | null;
125
- width: number;
126
- height: number;
127
- offsetTop: number;
128
- offsetLeft: number;
129
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
130
- collaborators: Map<import("../types").SocketId, Readonly<{
131
- pointer?: import("../types").CollaboratorPointer | undefined;
132
- button?: "up" | "down" | undefined;
133
- selectedElementIds?: Readonly<{
134
- [id: string]: true;
135
- }> | undefined;
136
- username?: string | null | undefined;
137
- userState?: import("@excalidraw/common").UserIdleState | undefined;
138
- color?: {
139
- background: string;
140
- stroke: string;
141
- } | undefined;
142
- avatarUrl?: string | undefined;
143
- id?: string | undefined;
144
- socketId?: import("../types").SocketId | undefined;
145
- isCurrentUser?: boolean | undefined;
146
- isInCall?: boolean | undefined;
147
- isSpeaking?: boolean | undefined;
148
- isMuted?: boolean | undefined;
149
- }>>;
150
- stats: {
151
- open: boolean;
152
- panels: number;
153
- };
154
- currentChartType: import("@excalidraw/element/types").ChartType;
155
- pasteDialog: {
156
- shown: false;
157
- data: null;
158
- } | {
159
- shown: true;
160
- data: import("../charts").Spreadsheet;
161
- };
162
- showHyperlinkPopup: false | "editor" | "info";
163
- linkOpacity: number;
164
- trayModeEnabled: boolean;
165
- colorPalette?: {
166
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
167
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
168
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
169
- topPicks: {
170
- canvasBackground: [string, string, string, string, string];
171
- elementStroke: [string, string, string, string, string];
172
- elementBackground: [string, string, string, string, string];
173
- };
174
- } | undefined;
175
- allowWheelZoom?: boolean | undefined;
176
- allowPinchZoom?: boolean | undefined;
177
- pinnedScripts?: string[] | undefined;
178
- customPens?: any[] | undefined;
179
- currentStrokeOptions?: any;
180
- resetCustomPen?: any;
181
- gridColor: {
182
- Bold: string;
183
- Regular: string;
184
- };
185
- gridDirection: {
186
- horizontal: boolean;
187
- vertical: boolean;
188
- };
189
- highlightSearchResult: boolean;
190
- dynamicStyle: {
191
- [x: string]: string;
192
- };
193
- frameColor: {
194
- stroke: string;
195
- fill: string;
196
- nameColor: string;
197
- };
198
- invertBindingBehaviour: boolean;
199
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
200
- snapLines: readonly import("../snapping").SnapLine[];
201
- originSnapOffset: {
202
- x: number;
203
- y: number;
204
- } | null;
205
- objectsSnapModeEnabled: boolean;
206
- userToFollow: import("../types").UserToFollow | null;
207
- followedBy: Set<import("../types").SocketId>;
208
- isCropping: boolean;
209
- croppingElementId: string | null;
210
- searchMatches: Readonly<{
211
- focusedId: string | null;
212
- matches: readonly import("../types").SearchMatch[];
213
- }> | null;
214
- activeLockedId: string | null;
215
- lockedMultiSelections: {
216
- [groupId: string]: true;
217
- };
218
- };
219
- } | {
220
- captureUpdate: "EVENTUALLY";
221
- appState?: undefined;
222
- }>;
223
- keyTest: undefined;
224
- } & {
225
- keyTest?: undefined;
226
- };
227
- export declare const actionPaste: {
228
- name: "paste";
229
- label: string;
230
- trackEvent: {
231
- category: "element";
232
- };
233
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
234
- captureUpdate: "EVENTUALLY";
235
- appState: {
236
- errorMessage: string;
237
- contextMenu: {
238
- items: import("../components/ContextMenu").ContextMenuItems;
239
- top: number;
240
- left: number;
241
- } | null;
242
- showWelcomeScreen: boolean;
243
- isLoading: boolean;
244
- activeEmbeddable: {
245
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
246
- state: "active" | "hover";
247
- } | null;
248
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
249
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
250
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
251
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
252
- isBindingEnabled: boolean;
253
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
254
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
255
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
256
- frameRendering: {
257
- enabled: boolean;
258
- name: boolean;
259
- outline: boolean;
260
- clip: boolean;
261
- markerName: boolean;
262
- markerEnabled: boolean;
263
- };
264
- editingFrame: string | null;
265
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
266
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
267
- activeTool: {
268
- lastActiveTool: import("../types").ActiveTool | null;
269
- locked: boolean;
270
- fromSelection: boolean;
271
- } & import("../types").ActiveTool;
272
- penMode: boolean;
273
- penDetected: boolean;
274
- exportBackground: boolean;
275
- exportEmbedScene: boolean;
276
- exportWithDarkMode: boolean;
277
- exportScale: number;
278
- currentItemStrokeColor: string;
279
- currentItemBackgroundColor: string;
280
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
281
- currentItemStrokeWidth: number;
282
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
283
- currentItemRoughness: number;
284
- currentItemOpacity: number;
285
- currentItemFontFamily: number;
286
- currentItemFontSize: number;
287
- currentItemTextAlign: string;
288
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
289
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
290
- currentHoveredFontFamily: number | null;
291
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
292
- currentItemArrowType: "round" | "sharp" | "elbow";
293
- currentItemFrameRole: ("marker" | null) | undefined;
294
- viewBackgroundColor: string;
295
- scrollX: number;
296
- scrollY: number;
297
- cursorButton: "up" | "down";
298
- scrolledOutside: boolean;
299
- name: string | null;
300
- isResizing: boolean;
301
- isRotating: boolean;
302
- zoom: Readonly<{
303
- value: import("../types").NormalizedZoomValue;
304
- }>;
305
- openMenu: "canvas" | "shape" | null;
306
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
307
- openSidebar: {
308
- name: string;
309
- tab?: string | undefined;
310
- } | null;
311
- openDialog: {
312
- name: "help" | "imageExport" | "jsonExport";
313
- } | {
314
- name: "ttd";
315
- tab: "mermaid" | "text-to-diagram";
316
- } | {
317
- name: "commandPalette";
318
- } | {
319
- name: "elementLinkSelector";
320
- sourceElementId: string;
321
- } | null;
322
- defaultSidebarDockedPreference: boolean;
323
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
324
- selectedElementIds: Readonly<{
325
- [id: string]: true;
326
- }>;
327
- hoveredElementIds: Readonly<{
328
- [id: string]: true;
329
- }>;
330
- previousSelectedElementIds: {
331
- [id: string]: true;
332
- };
333
- selectedElementsAreBeingDragged: boolean;
334
- shouldCacheIgnoreZoom: boolean;
335
- toast: {
336
- message: string;
337
- closable?: boolean | undefined;
338
- duration?: number | undefined;
339
- } | null;
340
- zenModeEnabled: boolean;
341
- theme: import("@excalidraw/element/types").Theme;
342
- gridSize: number;
343
- gridStep: number;
344
- gridModeEnabled: boolean;
345
- viewModeEnabled: boolean;
346
- selectedGroupIds: {
347
- [groupId: string]: boolean;
348
- };
349
- editingGroupId: string | null;
350
- width: number;
351
- height: number;
352
- offsetTop: number;
353
- offsetLeft: number;
354
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
355
- collaborators: Map<import("../types").SocketId, Readonly<{
356
- pointer?: import("../types").CollaboratorPointer | undefined;
357
- button?: "up" | "down" | undefined;
358
- selectedElementIds?: Readonly<{
359
- [id: string]: true;
360
- }> | undefined;
361
- username?: string | null | undefined;
362
- userState?: import("@excalidraw/common").UserIdleState | undefined;
363
- color?: {
364
- background: string;
365
- stroke: string;
366
- } | undefined;
367
- avatarUrl?: string | undefined;
368
- id?: string | undefined;
369
- socketId?: import("../types").SocketId | undefined;
370
- isCurrentUser?: boolean | undefined;
371
- isInCall?: boolean | undefined;
372
- isSpeaking?: boolean | undefined;
373
- isMuted?: boolean | undefined;
374
- }>>;
375
- stats: {
376
- open: boolean;
377
- panels: number;
378
- };
379
- currentChartType: import("@excalidraw/element/types").ChartType;
380
- pasteDialog: {
381
- shown: false;
382
- data: null;
383
- } | {
384
- shown: true;
385
- data: import("../charts").Spreadsheet;
386
- };
387
- showHyperlinkPopup: false | "editor" | "info";
388
- linkOpacity: number;
389
- trayModeEnabled: boolean;
390
- colorPalette?: {
391
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
392
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
393
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
394
- topPicks: {
395
- canvasBackground: [string, string, string, string, string];
396
- elementStroke: [string, string, string, string, string];
397
- elementBackground: [string, string, string, string, string];
398
- };
399
- } | undefined;
400
- allowWheelZoom?: boolean | undefined;
401
- allowPinchZoom?: boolean | undefined;
402
- pinnedScripts?: string[] | undefined;
403
- customPens?: any[] | undefined;
404
- currentStrokeOptions?: any;
405
- resetCustomPen?: any;
406
- gridColor: {
407
- Bold: string;
408
- Regular: string;
409
- };
410
- gridDirection: {
411
- horizontal: boolean;
412
- vertical: boolean;
413
- };
414
- highlightSearchResult: boolean;
415
- dynamicStyle: {
416
- [x: string]: string;
417
- };
418
- frameColor: {
419
- stroke: string;
420
- fill: string;
421
- nameColor: string;
422
- };
423
- invertBindingBehaviour: boolean;
424
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
425
- snapLines: readonly import("../snapping").SnapLine[];
426
- originSnapOffset: {
427
- x: number;
428
- y: number;
429
- } | null;
430
- objectsSnapModeEnabled: boolean;
431
- userToFollow: import("../types").UserToFollow | null;
432
- followedBy: Set<import("../types").SocketId>;
433
- isCropping: boolean;
434
- croppingElementId: string | null;
435
- searchMatches: Readonly<{
436
- focusedId: string | null;
437
- matches: readonly import("../types").SearchMatch[];
438
- }> | null;
439
- activeLockedId: string | null;
440
- lockedMultiSelections: {
441
- [groupId: string]: true;
442
- };
443
- };
444
- } | {
445
- captureUpdate: "EVENTUALLY";
446
- appState?: undefined;
447
- }>;
448
- keyTest: undefined;
449
- } & {
450
- keyTest?: undefined;
451
- };
452
- export declare const actionCut: {
453
- name: "cut";
454
- label: string;
455
- icon: import("react/jsx-runtime").JSX.Element;
456
- trackEvent: {
457
- category: "element";
458
- };
459
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
460
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
461
- appState: {
462
- selectedLinearElement: null;
463
- contextMenu: {
464
- items: import("../components/ContextMenu").ContextMenuItems;
465
- top: number;
466
- left: number;
467
- } | null;
468
- showWelcomeScreen: boolean;
469
- isLoading: boolean;
470
- errorMessage: import("react").ReactNode;
471
- activeEmbeddable: {
472
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
473
- state: "active" | "hover";
474
- } | null;
475
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
476
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
477
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
478
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
479
- isBindingEnabled: boolean;
480
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
481
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
482
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
483
- frameRendering: {
484
- enabled: boolean;
485
- name: boolean;
486
- outline: boolean;
487
- clip: boolean;
488
- markerName: boolean;
489
- markerEnabled: boolean;
490
- };
491
- editingFrame: string | null;
492
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
493
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
494
- activeTool: {
495
- lastActiveTool: import("../types").ActiveTool | null;
496
- locked: boolean;
497
- fromSelection: boolean;
498
- } & import("../types").ActiveTool;
499
- penMode: boolean;
500
- penDetected: boolean;
501
- exportBackground: boolean;
502
- exportEmbedScene: boolean;
503
- exportWithDarkMode: boolean;
504
- exportScale: number;
505
- currentItemStrokeColor: string;
506
- currentItemBackgroundColor: string;
507
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
508
- currentItemStrokeWidth: number;
509
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
510
- currentItemRoughness: number;
511
- currentItemOpacity: number;
512
- currentItemFontFamily: number;
513
- currentItemFontSize: number;
514
- currentItemTextAlign: string;
515
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
516
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
517
- currentHoveredFontFamily: number | null;
518
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
519
- currentItemArrowType: "round" | "sharp" | "elbow";
520
- currentItemFrameRole: ("marker" | null) | undefined;
521
- viewBackgroundColor: string;
522
- scrollX: number;
523
- scrollY: number;
524
- cursorButton: "up" | "down";
525
- scrolledOutside: boolean;
526
- name: string | null;
527
- isResizing: boolean;
528
- isRotating: boolean;
529
- zoom: Readonly<{
530
- value: import("../types").NormalizedZoomValue;
531
- }>;
532
- openMenu: "canvas" | "shape" | null;
533
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
534
- openSidebar: {
535
- name: string;
536
- tab?: string | undefined;
537
- } | null;
538
- openDialog: {
539
- name: "help" | "imageExport" | "jsonExport";
540
- } | {
541
- name: "ttd";
542
- tab: "mermaid" | "text-to-diagram";
543
- } | {
544
- name: "commandPalette";
545
- } | {
546
- name: "elementLinkSelector";
547
- sourceElementId: string;
548
- } | null;
549
- defaultSidebarDockedPreference: boolean;
550
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
551
- selectedElementIds: Readonly<{
552
- [id: string]: true;
553
- }>;
554
- hoveredElementIds: Readonly<{
555
- [id: string]: true;
556
- }>;
557
- previousSelectedElementIds: {
558
- [id: string]: true;
559
- };
560
- selectedElementsAreBeingDragged: boolean;
561
- shouldCacheIgnoreZoom: boolean;
562
- toast: {
563
- message: string;
564
- closable?: boolean | undefined;
565
- duration?: number | undefined;
566
- } | null;
567
- zenModeEnabled: boolean;
568
- theme: import("@excalidraw/element/types").Theme;
569
- gridSize: number;
570
- gridStep: number;
571
- gridModeEnabled: boolean;
572
- viewModeEnabled: boolean;
573
- selectedGroupIds: {
574
- [groupId: string]: boolean;
575
- };
576
- editingGroupId: string | null;
577
- width: number;
578
- height: number;
579
- offsetTop: number;
580
- offsetLeft: number;
581
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
582
- collaborators: Map<import("../types").SocketId, Readonly<{
583
- pointer?: import("../types").CollaboratorPointer | undefined;
584
- button?: "up" | "down" | undefined;
585
- selectedElementIds?: Readonly<{
586
- [id: string]: true;
587
- }> | undefined;
588
- username?: string | null | undefined;
589
- userState?: import("@excalidraw/common").UserIdleState | undefined;
590
- color?: {
591
- background: string;
592
- stroke: string;
593
- } | undefined;
594
- avatarUrl?: string | undefined;
595
- id?: string | undefined;
596
- socketId?: import("../types").SocketId | undefined;
597
- isCurrentUser?: boolean | undefined;
598
- isInCall?: boolean | undefined;
599
- isSpeaking?: boolean | undefined;
600
- isMuted?: boolean | undefined;
601
- }>>;
602
- stats: {
603
- open: boolean;
604
- panels: number;
605
- };
606
- currentChartType: import("@excalidraw/element/types").ChartType;
607
- pasteDialog: {
608
- shown: false;
609
- data: null;
610
- } | {
611
- shown: true;
612
- data: import("../charts").Spreadsheet;
613
- };
614
- showHyperlinkPopup: false | "editor" | "info";
615
- linkOpacity: number;
616
- trayModeEnabled: boolean;
617
- colorPalette?: {
618
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
619
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
620
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
621
- topPicks: {
622
- canvasBackground: [string, string, string, string, string];
623
- elementStroke: [string, string, string, string, string];
624
- elementBackground: [string, string, string, string, string];
625
- };
626
- } | undefined;
627
- allowWheelZoom?: boolean | undefined;
628
- allowPinchZoom?: boolean | undefined;
629
- pinnedScripts?: string[] | undefined;
630
- customPens?: any[] | undefined;
631
- currentStrokeOptions?: any;
632
- resetCustomPen?: any;
633
- gridColor: {
634
- Bold: string;
635
- Regular: string;
636
- };
637
- gridDirection: {
638
- horizontal: boolean;
639
- vertical: boolean;
640
- };
641
- highlightSearchResult: boolean;
642
- dynamicStyle: {
643
- [x: string]: string;
644
- };
645
- frameColor: {
646
- stroke: string;
647
- fill: string;
648
- nameColor: string;
649
- };
650
- invertBindingBehaviour: boolean;
651
- snapLines: readonly import("../snapping").SnapLine[];
652
- originSnapOffset: {
653
- x: number;
654
- y: number;
655
- } | null;
656
- objectsSnapModeEnabled: boolean;
657
- userToFollow: import("../types").UserToFollow | null;
658
- followedBy: Set<import("../types").SocketId>;
659
- isCropping: boolean;
660
- croppingElementId: string | null;
661
- searchMatches: Readonly<{
662
- focusedId: string | null;
663
- matches: readonly import("../types").SearchMatch[];
664
- }> | null;
665
- activeLockedId: string | null;
666
- lockedMultiSelections: {
667
- [groupId: string]: true;
668
- };
669
- };
670
- captureUpdate: "IMMEDIATELY";
671
- } | {
672
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
673
- appState: {
674
- selectedLinearElement: {
675
- selectedPointsIndices: number[];
676
- startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
677
- endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
678
- elementId: string & {
679
- _brand: "excalidrawLinearElementId";
680
- };
681
- pointerDownState: Readonly<{
682
- prevSelectedPointsIndices: readonly number[] | null;
683
- lastClickedPoint: number;
684
- lastClickedIsEndPoint: boolean;
685
- origin: Readonly<{
686
- x: number;
687
- y: number;
688
- }> | null;
689
- segmentMidpoint: {
690
- value: import("@excalidraw/math").GlobalPoint | null;
691
- index: number | null;
692
- added: boolean;
693
- };
694
- }>;
695
- isDragging: boolean;
696
- lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
697
- pointerOffset: Readonly<{
698
- x: number;
699
- y: number;
700
- }>;
701
- hoverPointIndex: number;
702
- segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
703
- elbowed: boolean;
704
- customLineAngle: number | null;
705
- isEditing: boolean;
706
- };
707
- contextMenu: {
708
- items: import("../components/ContextMenu").ContextMenuItems;
709
- top: number;
710
- left: number;
711
- } | null;
712
- showWelcomeScreen: boolean;
713
- isLoading: boolean;
714
- errorMessage: import("react").ReactNode;
715
- activeEmbeddable: {
716
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
717
- state: "active" | "hover";
718
- } | null;
719
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
720
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
721
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
722
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
723
- isBindingEnabled: boolean;
724
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
725
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
726
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
727
- frameRendering: {
728
- enabled: boolean;
729
- name: boolean;
730
- outline: boolean;
731
- clip: boolean;
732
- markerName: boolean;
733
- markerEnabled: boolean;
734
- };
735
- editingFrame: string | null;
736
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
737
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
738
- activeTool: {
739
- lastActiveTool: import("../types").ActiveTool | null;
740
- locked: boolean;
741
- fromSelection: boolean;
742
- } & import("../types").ActiveTool;
743
- penMode: boolean;
744
- penDetected: boolean;
745
- exportBackground: boolean;
746
- exportEmbedScene: boolean;
747
- exportWithDarkMode: boolean;
748
- exportScale: number;
749
- currentItemStrokeColor: string;
750
- currentItemBackgroundColor: string;
751
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
752
- currentItemStrokeWidth: number;
753
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
754
- currentItemRoughness: number;
755
- currentItemOpacity: number;
756
- currentItemFontFamily: number;
757
- currentItemFontSize: number;
758
- currentItemTextAlign: string;
759
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
760
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
761
- currentHoveredFontFamily: number | null;
762
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
763
- currentItemArrowType: "round" | "sharp" | "elbow";
764
- currentItemFrameRole: ("marker" | null) | undefined;
765
- viewBackgroundColor: string;
766
- scrollX: number;
767
- scrollY: number;
768
- cursorButton: "up" | "down";
769
- scrolledOutside: boolean;
770
- name: string | null;
771
- isResizing: boolean;
772
- isRotating: boolean;
773
- zoom: Readonly<{
774
- value: import("../types").NormalizedZoomValue;
775
- }>;
776
- openMenu: "canvas" | "shape" | null;
777
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
778
- openSidebar: {
779
- name: string;
780
- tab?: string | undefined;
781
- } | null;
782
- openDialog: {
783
- name: "help" | "imageExport" | "jsonExport";
784
- } | {
785
- name: "ttd";
786
- tab: "mermaid" | "text-to-diagram";
787
- } | {
788
- name: "commandPalette";
789
- } | {
790
- name: "elementLinkSelector";
791
- sourceElementId: string;
792
- } | null;
793
- defaultSidebarDockedPreference: boolean;
794
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
795
- selectedElementIds: Readonly<{
796
- [id: string]: true;
797
- }>;
798
- hoveredElementIds: Readonly<{
799
- [id: string]: true;
800
- }>;
801
- previousSelectedElementIds: {
802
- [id: string]: true;
803
- };
804
- selectedElementsAreBeingDragged: boolean;
805
- shouldCacheIgnoreZoom: boolean;
806
- toast: {
807
- message: string;
808
- closable?: boolean | undefined;
809
- duration?: number | undefined;
810
- } | null;
811
- zenModeEnabled: boolean;
812
- theme: import("@excalidraw/element/types").Theme;
813
- gridSize: number;
814
- gridStep: number;
815
- gridModeEnabled: boolean;
816
- viewModeEnabled: boolean;
817
- selectedGroupIds: {
818
- [groupId: string]: boolean;
819
- };
820
- editingGroupId: string | null;
821
- width: number;
822
- height: number;
823
- offsetTop: number;
824
- offsetLeft: number;
825
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
826
- collaborators: Map<import("../types").SocketId, Readonly<{
827
- pointer?: import("../types").CollaboratorPointer | undefined;
828
- button?: "up" | "down" | undefined;
829
- selectedElementIds?: Readonly<{
830
- [id: string]: true;
831
- }> | undefined;
832
- username?: string | null | undefined;
833
- userState?: import("@excalidraw/common").UserIdleState | undefined;
834
- color?: {
835
- background: string;
836
- stroke: string;
837
- } | undefined;
838
- avatarUrl?: string | undefined;
839
- id?: string | undefined;
840
- socketId?: import("../types").SocketId | undefined;
841
- isCurrentUser?: boolean | undefined;
842
- isInCall?: boolean | undefined;
843
- isSpeaking?: boolean | undefined;
844
- isMuted?: boolean | undefined;
845
- }>>;
846
- stats: {
847
- open: boolean;
848
- panels: number;
849
- };
850
- currentChartType: import("@excalidraw/element/types").ChartType;
851
- pasteDialog: {
852
- shown: false;
853
- data: null;
854
- } | {
855
- shown: true;
856
- data: import("../charts").Spreadsheet;
857
- };
858
- showHyperlinkPopup: false | "editor" | "info";
859
- linkOpacity: number;
860
- trayModeEnabled: boolean;
861
- colorPalette?: {
862
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
863
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
864
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
865
- topPicks: {
866
- canvasBackground: [string, string, string, string, string];
867
- elementStroke: [string, string, string, string, string];
868
- elementBackground: [string, string, string, string, string];
869
- };
870
- } | undefined;
871
- allowWheelZoom?: boolean | undefined;
872
- allowPinchZoom?: boolean | undefined;
873
- pinnedScripts?: string[] | undefined;
874
- customPens?: any[] | undefined;
875
- currentStrokeOptions?: any;
876
- resetCustomPen?: any;
877
- gridColor: {
878
- Bold: string;
879
- Regular: string;
880
- };
881
- gridDirection: {
882
- horizontal: boolean;
883
- vertical: boolean;
884
- };
885
- highlightSearchResult: boolean;
886
- dynamicStyle: {
887
- [x: string]: string;
888
- };
889
- frameColor: {
890
- stroke: string;
891
- fill: string;
892
- nameColor: string;
893
- };
894
- invertBindingBehaviour: boolean;
895
- snapLines: readonly import("../snapping").SnapLine[];
896
- originSnapOffset: {
897
- x: number;
898
- y: number;
899
- } | null;
900
- objectsSnapModeEnabled: boolean;
901
- userToFollow: import("../types").UserToFollow | null;
902
- followedBy: Set<import("../types").SocketId>;
903
- isCropping: boolean;
904
- croppingElementId: string | null;
905
- searchMatches: Readonly<{
906
- focusedId: string | null;
907
- matches: readonly import("../types").SearchMatch[];
908
- }> | null;
909
- activeLockedId: string | null;
910
- lockedMultiSelections: {
911
- [groupId: string]: true;
912
- };
913
- };
914
- captureUpdate: "IMMEDIATELY";
915
- } | {
916
- elements: import("@excalidraw/element/types").ExcalidrawElement[];
917
- appState: {
918
- activeTool: {
919
- lastActiveTool: import("../types").ActiveTool | null;
920
- locked: boolean;
921
- fromSelection: boolean;
922
- } & import("../types").ActiveTool;
923
- multiElement: null;
924
- activeEmbeddable: null;
925
- selectedLinearElement: null;
926
- editingGroupId: string | null;
927
- selectedElementIds: Readonly<{
928
- [id: string]: true;
929
- }>;
930
- selectedGroupIds: {
931
- [groupId: string]: boolean;
932
- };
933
- contextMenu: {
934
- items: import("../components/ContextMenu").ContextMenuItems;
935
- top: number;
936
- left: number;
937
- } | null;
938
- showWelcomeScreen: boolean;
939
- isLoading: boolean;
940
- errorMessage: import("react").ReactNode;
941
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
942
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
943
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
944
- isBindingEnabled: boolean;
945
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
946
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
947
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
948
- frameRendering: {
949
- enabled: boolean;
950
- name: boolean;
951
- outline: boolean;
952
- clip: boolean;
953
- markerName: boolean;
954
- markerEnabled: boolean;
955
- };
956
- editingFrame: string | null;
957
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
958
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
959
- penMode: boolean;
960
- penDetected: boolean;
961
- exportBackground: boolean;
962
- exportEmbedScene: boolean;
963
- exportWithDarkMode: boolean;
964
- exportScale: number;
965
- currentItemStrokeColor: string;
966
- currentItemBackgroundColor: string;
967
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
968
- currentItemStrokeWidth: number;
969
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
970
- currentItemRoughness: number;
971
- currentItemOpacity: number;
972
- currentItemFontFamily: number;
973
- currentItemFontSize: number;
974
- currentItemTextAlign: string;
975
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
976
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
977
- currentHoveredFontFamily: number | null;
978
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
979
- currentItemArrowType: "round" | "sharp" | "elbow";
980
- currentItemFrameRole: ("marker" | null) | undefined;
981
- viewBackgroundColor: string;
982
- scrollX: number;
983
- scrollY: number;
984
- cursorButton: "up" | "down";
985
- scrolledOutside: boolean;
986
- name: string | null;
987
- isResizing: boolean;
988
- isRotating: boolean;
989
- zoom: Readonly<{
990
- value: import("../types").NormalizedZoomValue;
991
- }>;
992
- openMenu: "canvas" | "shape" | null;
993
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
994
- openSidebar: {
995
- name: string;
996
- tab?: string | undefined;
997
- } | null;
998
- openDialog: {
999
- name: "help" | "imageExport" | "jsonExport";
1000
- } | {
1001
- name: "ttd";
1002
- tab: "mermaid" | "text-to-diagram";
1003
- } | {
1004
- name: "commandPalette";
1005
- } | {
1006
- name: "elementLinkSelector";
1007
- sourceElementId: string;
1008
- } | null;
1009
- defaultSidebarDockedPreference: boolean;
1010
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1011
- hoveredElementIds: Readonly<{
1012
- [id: string]: true;
1013
- }>;
1014
- previousSelectedElementIds: {
1015
- [id: string]: true;
1016
- };
1017
- selectedElementsAreBeingDragged: boolean;
1018
- shouldCacheIgnoreZoom: boolean;
1019
- toast: {
1020
- message: string;
1021
- closable?: boolean | undefined;
1022
- duration?: number | undefined;
1023
- } | null;
1024
- zenModeEnabled: boolean;
1025
- theme: import("@excalidraw/element/types").Theme;
1026
- gridSize: number;
1027
- gridStep: number;
1028
- gridModeEnabled: boolean;
1029
- viewModeEnabled: boolean;
1030
- width: number;
1031
- height: number;
1032
- offsetTop: number;
1033
- offsetLeft: number;
1034
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1035
- collaborators: Map<import("../types").SocketId, Readonly<{
1036
- pointer?: import("../types").CollaboratorPointer | undefined;
1037
- button?: "up" | "down" | undefined;
1038
- selectedElementIds?: Readonly<{
1039
- [id: string]: true;
1040
- }> | undefined;
1041
- username?: string | null | undefined;
1042
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1043
- color?: {
1044
- background: string;
1045
- stroke: string;
1046
- } | undefined;
1047
- avatarUrl?: string | undefined;
1048
- id?: string | undefined;
1049
- socketId?: import("../types").SocketId | undefined;
1050
- isCurrentUser?: boolean | undefined;
1051
- isInCall?: boolean | undefined;
1052
- isSpeaking?: boolean | undefined;
1053
- isMuted?: boolean | undefined;
1054
- }>>;
1055
- stats: {
1056
- open: boolean;
1057
- panels: number;
1058
- };
1059
- currentChartType: import("@excalidraw/element/types").ChartType;
1060
- pasteDialog: {
1061
- shown: false;
1062
- data: null;
1063
- } | {
1064
- shown: true;
1065
- data: import("../charts").Spreadsheet;
1066
- };
1067
- showHyperlinkPopup: false | "editor" | "info";
1068
- linkOpacity: number;
1069
- trayModeEnabled: boolean;
1070
- colorPalette?: {
1071
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1072
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1073
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1074
- topPicks: {
1075
- canvasBackground: [string, string, string, string, string];
1076
- elementStroke: [string, string, string, string, string];
1077
- elementBackground: [string, string, string, string, string];
1078
- };
1079
- } | undefined;
1080
- allowWheelZoom?: boolean | undefined;
1081
- allowPinchZoom?: boolean | undefined;
1082
- pinnedScripts?: string[] | undefined;
1083
- customPens?: any[] | undefined;
1084
- currentStrokeOptions?: any;
1085
- resetCustomPen?: any;
1086
- gridColor: {
1087
- Bold: string;
1088
- Regular: string;
1089
- };
1090
- gridDirection: {
1091
- horizontal: boolean;
1092
- vertical: boolean;
1093
- };
1094
- highlightSearchResult: boolean;
1095
- dynamicStyle: {
1096
- [x: string]: string;
1097
- };
1098
- frameColor: {
1099
- stroke: string;
1100
- fill: string;
1101
- nameColor: string;
1102
- };
1103
- invertBindingBehaviour: boolean;
1104
- snapLines: readonly import("../snapping").SnapLine[];
1105
- originSnapOffset: {
1106
- x: number;
1107
- y: number;
1108
- } | null;
1109
- objectsSnapModeEnabled: boolean;
1110
- userToFollow: import("../types").UserToFollow | null;
1111
- followedBy: Set<import("../types").SocketId>;
1112
- isCropping: boolean;
1113
- croppingElementId: string | null;
1114
- searchMatches: Readonly<{
1115
- focusedId: string | null;
1116
- matches: readonly import("../types").SearchMatch[];
1117
- }> | null;
1118
- activeLockedId: string | null;
1119
- lockedMultiSelections: {
1120
- [groupId: string]: true;
1121
- };
1122
- };
1123
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
1124
- };
1125
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1126
- } & {
1127
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1128
- };
1129
- export declare const actionCopyAsSvg: {
1130
- name: "copyAsSvg";
1131
- label: string;
1132
- icon: import("react/jsx-runtime").JSX.Element;
1133
- trackEvent: {
1134
- category: "element";
1135
- };
1136
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
1137
- captureUpdate: "EVENTUALLY";
1138
- appState?: undefined;
1139
- } | {
1140
- appState: {
1141
- toast: {
1142
- message: string;
1143
- };
1144
- errorMessage?: undefined;
1145
- };
1146
- captureUpdate: "EVENTUALLY";
1147
- } | {
1148
- appState: {
1149
- errorMessage: any;
1150
- toast?: undefined;
1151
- };
1152
- captureUpdate: "EVENTUALLY";
1153
- }>;
1154
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1155
- keywords: string[];
1156
- } & {
1157
- keyTest?: undefined;
1158
- };
1159
- export declare const actionCopyAsPng: {
1160
- name: "copyAsPng";
1161
- label: string;
1162
- icon: import("react/jsx-runtime").JSX.Element;
1163
- trackEvent: {
1164
- category: "element";
1165
- };
1166
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
1167
- captureUpdate: "EVENTUALLY";
1168
- appState?: undefined;
1169
- } | {
1170
- appState: {
1171
- errorMessage: any;
1172
- contextMenu: {
1173
- items: import("../components/ContextMenu").ContextMenuItems;
1174
- top: number;
1175
- left: number;
1176
- } | null;
1177
- showWelcomeScreen: boolean;
1178
- isLoading: boolean;
1179
- activeEmbeddable: {
1180
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1181
- state: "active" | "hover";
1182
- } | null;
1183
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1184
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1185
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1186
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1187
- isBindingEnabled: boolean;
1188
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1189
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1190
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1191
- frameRendering: {
1192
- enabled: boolean;
1193
- name: boolean;
1194
- outline: boolean;
1195
- clip: boolean;
1196
- markerName: boolean;
1197
- markerEnabled: boolean;
1198
- };
1199
- editingFrame: string | null;
1200
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1201
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1202
- activeTool: {
1203
- lastActiveTool: import("../types").ActiveTool | null;
1204
- locked: boolean;
1205
- fromSelection: boolean;
1206
- } & import("../types").ActiveTool;
1207
- penMode: boolean;
1208
- penDetected: boolean;
1209
- exportBackground: boolean;
1210
- exportEmbedScene: boolean;
1211
- exportWithDarkMode: boolean;
1212
- exportScale: number;
1213
- currentItemStrokeColor: string;
1214
- currentItemBackgroundColor: string;
1215
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1216
- currentItemStrokeWidth: number;
1217
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1218
- currentItemRoughness: number;
1219
- currentItemOpacity: number;
1220
- currentItemFontFamily: number;
1221
- currentItemFontSize: number;
1222
- currentItemTextAlign: string;
1223
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1224
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1225
- currentHoveredFontFamily: number | null;
1226
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1227
- currentItemArrowType: "round" | "sharp" | "elbow";
1228
- currentItemFrameRole: ("marker" | null) | undefined;
1229
- viewBackgroundColor: string;
1230
- scrollX: number;
1231
- scrollY: number;
1232
- cursorButton: "up" | "down";
1233
- scrolledOutside: boolean;
1234
- name: string | null;
1235
- isResizing: boolean;
1236
- isRotating: boolean;
1237
- zoom: Readonly<{
1238
- value: import("../types").NormalizedZoomValue;
1239
- }>;
1240
- openMenu: "canvas" | "shape" | null;
1241
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1242
- openSidebar: {
1243
- name: string;
1244
- tab?: string | undefined;
1245
- } | null;
1246
- openDialog: {
1247
- name: "help" | "imageExport" | "jsonExport";
1248
- } | {
1249
- name: "ttd";
1250
- tab: "mermaid" | "text-to-diagram";
1251
- } | {
1252
- name: "commandPalette";
1253
- } | {
1254
- name: "elementLinkSelector";
1255
- sourceElementId: string;
1256
- } | null;
1257
- defaultSidebarDockedPreference: boolean;
1258
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1259
- selectedElementIds: Readonly<{
1260
- [id: string]: true;
1261
- }>;
1262
- hoveredElementIds: Readonly<{
1263
- [id: string]: true;
1264
- }>;
1265
- previousSelectedElementIds: {
1266
- [id: string]: true;
1267
- };
1268
- selectedElementsAreBeingDragged: boolean;
1269
- shouldCacheIgnoreZoom: boolean;
1270
- toast: {
1271
- message: string;
1272
- closable?: boolean | undefined;
1273
- duration?: number | undefined;
1274
- } | null;
1275
- zenModeEnabled: boolean;
1276
- theme: import("@excalidraw/element/types").Theme;
1277
- gridSize: number;
1278
- gridStep: number;
1279
- gridModeEnabled: boolean;
1280
- viewModeEnabled: boolean;
1281
- selectedGroupIds: {
1282
- [groupId: string]: boolean;
1283
- };
1284
- editingGroupId: string | null;
1285
- width: number;
1286
- height: number;
1287
- offsetTop: number;
1288
- offsetLeft: number;
1289
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1290
- collaborators: Map<import("../types").SocketId, Readonly<{
1291
- pointer?: import("../types").CollaboratorPointer | undefined;
1292
- button?: "up" | "down" | undefined;
1293
- selectedElementIds?: Readonly<{
1294
- [id: string]: true;
1295
- }> | undefined;
1296
- username?: string | null | undefined;
1297
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1298
- color?: {
1299
- background: string;
1300
- stroke: string;
1301
- } | undefined;
1302
- avatarUrl?: string | undefined;
1303
- id?: string | undefined;
1304
- socketId?: import("../types").SocketId | undefined;
1305
- isCurrentUser?: boolean | undefined;
1306
- isInCall?: boolean | undefined;
1307
- isSpeaking?: boolean | undefined;
1308
- isMuted?: boolean | undefined;
1309
- }>>;
1310
- stats: {
1311
- open: boolean;
1312
- panels: number;
1313
- };
1314
- currentChartType: import("@excalidraw/element/types").ChartType;
1315
- pasteDialog: {
1316
- shown: false;
1317
- data: null;
1318
- } | {
1319
- shown: true;
1320
- data: import("../charts").Spreadsheet;
1321
- };
1322
- showHyperlinkPopup: false | "editor" | "info";
1323
- linkOpacity: number;
1324
- trayModeEnabled: boolean;
1325
- colorPalette?: {
1326
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1327
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1328
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1329
- topPicks: {
1330
- canvasBackground: [string, string, string, string, string];
1331
- elementStroke: [string, string, string, string, string];
1332
- elementBackground: [string, string, string, string, string];
1333
- };
1334
- } | undefined;
1335
- allowWheelZoom?: boolean | undefined;
1336
- allowPinchZoom?: boolean | undefined;
1337
- pinnedScripts?: string[] | undefined;
1338
- customPens?: any[] | undefined;
1339
- currentStrokeOptions?: any;
1340
- resetCustomPen?: any;
1341
- gridColor: {
1342
- Bold: string;
1343
- Regular: string;
1344
- };
1345
- gridDirection: {
1346
- horizontal: boolean;
1347
- vertical: boolean;
1348
- };
1349
- highlightSearchResult: boolean;
1350
- dynamicStyle: {
1351
- [x: string]: string;
1352
- };
1353
- frameColor: {
1354
- stroke: string;
1355
- fill: string;
1356
- nameColor: string;
1357
- };
1358
- invertBindingBehaviour: boolean;
1359
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1360
- snapLines: readonly import("../snapping").SnapLine[];
1361
- originSnapOffset: {
1362
- x: number;
1363
- y: number;
1364
- } | null;
1365
- objectsSnapModeEnabled: boolean;
1366
- userToFollow: import("../types").UserToFollow | null;
1367
- followedBy: Set<import("../types").SocketId>;
1368
- isCropping: boolean;
1369
- croppingElementId: string | null;
1370
- searchMatches: Readonly<{
1371
- focusedId: string | null;
1372
- matches: readonly import("../types").SearchMatch[];
1373
- }> | null;
1374
- activeLockedId: string | null;
1375
- lockedMultiSelections: {
1376
- [groupId: string]: true;
1377
- };
1378
- };
1379
- captureUpdate: "EVENTUALLY";
1380
- }>;
1381
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1382
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1383
- keywords: string[];
1384
- } & {
1385
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1386
- };
1387
- export declare const copyText: {
1388
- name: "copyText";
1389
- label: string;
1390
- trackEvent: {
1391
- category: "element";
1392
- };
1393
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1394
- captureUpdate: "EVENTUALLY";
1395
- };
1396
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1397
- keywords: string[];
1398
- } & {
1399
- keyTest?: undefined;
1400
- };
1
+ export declare const actionCopy: {
2
+ name: "copy";
3
+ label: string;
4
+ icon: import("react/jsx-runtime").JSX.Element;
5
+ trackEvent: {
6
+ category: "element";
7
+ };
8
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
9
+ captureUpdate: "EVENTUALLY";
10
+ appState: {
11
+ errorMessage: any;
12
+ contextMenu: {
13
+ items: import("../components/ContextMenu").ContextMenuItems;
14
+ top: number;
15
+ left: number;
16
+ } | null;
17
+ showWelcomeScreen: boolean;
18
+ isLoading: boolean;
19
+ activeEmbeddable: {
20
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
+ state: "active" | "hover";
22
+ } | null;
23
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
25
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
26
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
+ isBindingEnabled: boolean;
28
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
+ frameRendering: {
32
+ enabled: boolean;
33
+ name: boolean;
34
+ outline: boolean;
35
+ clip: boolean;
36
+ markerName: boolean;
37
+ markerEnabled: boolean;
38
+ };
39
+ editingFrame: string | null;
40
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
41
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
+ activeTool: {
43
+ lastActiveTool: import("../types").ActiveTool | null;
44
+ locked: boolean;
45
+ fromSelection: boolean;
46
+ } & import("../types").ActiveTool;
47
+ penMode: boolean;
48
+ penDetected: boolean;
49
+ exportBackground: boolean;
50
+ exportEmbedScene: boolean;
51
+ exportWithDarkMode: boolean;
52
+ exportScale: number;
53
+ currentItemStrokeColor: string;
54
+ currentItemBackgroundColor: string;
55
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
56
+ currentItemStrokeWidth: number;
57
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
58
+ currentItemRoughness: number;
59
+ currentItemOpacity: number;
60
+ currentItemFontFamily: number;
61
+ currentItemFontSize: number;
62
+ currentItemTextAlign: string;
63
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
65
+ currentHoveredFontFamily: number | null;
66
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
67
+ currentItemArrowType: "round" | "sharp" | "elbow";
68
+ currentItemFrameRole: ("marker" | null) | undefined;
69
+ viewBackgroundColor: string;
70
+ scrollX: number;
71
+ scrollY: number;
72
+ cursorButton: "up" | "down";
73
+ scrolledOutside: boolean;
74
+ name: string | null;
75
+ isResizing: boolean;
76
+ isRotating: boolean;
77
+ zoom: Readonly<{
78
+ value: import("../types").NormalizedZoomValue;
79
+ }>;
80
+ openMenu: "canvas" | "shape" | null;
81
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
82
+ openSidebar: {
83
+ name: string;
84
+ tab?: string | undefined;
85
+ } | null;
86
+ openDialog: {
87
+ name: "help" | "imageExport" | "jsonExport";
88
+ } | {
89
+ name: "ttd";
90
+ tab: "mermaid" | "text-to-diagram";
91
+ } | {
92
+ name: "commandPalette";
93
+ } | {
94
+ name: "elementLinkSelector";
95
+ sourceElementId: string;
96
+ } | null;
97
+ defaultSidebarDockedPreference: boolean;
98
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
99
+ selectedElementIds: Readonly<{
100
+ [id: string]: true;
101
+ }>;
102
+ hoveredElementIds: Readonly<{
103
+ [id: string]: true;
104
+ }>;
105
+ previousSelectedElementIds: {
106
+ [id: string]: true;
107
+ };
108
+ selectedElementsAreBeingDragged: boolean;
109
+ shouldCacheIgnoreZoom: boolean;
110
+ toast: {
111
+ message: string;
112
+ closable?: boolean | undefined;
113
+ duration?: number | undefined;
114
+ } | null;
115
+ zenModeEnabled: boolean;
116
+ theme: import("@excalidraw/element/types").Theme;
117
+ gridSize: number;
118
+ gridStep: number;
119
+ gridModeEnabled: boolean;
120
+ viewModeEnabled: boolean;
121
+ selectedGroupIds: {
122
+ [groupId: string]: boolean;
123
+ };
124
+ editingGroupId: string | null;
125
+ width: number;
126
+ height: number;
127
+ offsetTop: number;
128
+ offsetLeft: number;
129
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
130
+ collaborators: Map<import("../types").SocketId, Readonly<{
131
+ pointer?: import("../types").CollaboratorPointer | undefined;
132
+ button?: "up" | "down" | undefined;
133
+ selectedElementIds?: Readonly<{
134
+ [id: string]: true;
135
+ }> | undefined;
136
+ username?: string | null | undefined;
137
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
138
+ color?: {
139
+ background: string;
140
+ stroke: string;
141
+ } | undefined;
142
+ avatarUrl?: string | undefined;
143
+ id?: string | undefined;
144
+ socketId?: import("../types").SocketId | undefined;
145
+ isCurrentUser?: boolean | undefined;
146
+ isInCall?: boolean | undefined;
147
+ isSpeaking?: boolean | undefined;
148
+ isMuted?: boolean | undefined;
149
+ }>>;
150
+ stats: {
151
+ open: boolean;
152
+ panels: number;
153
+ };
154
+ currentChartType: import("@excalidraw/element/types").ChartType;
155
+ pasteDialog: {
156
+ shown: false;
157
+ data: null;
158
+ } | {
159
+ shown: true;
160
+ data: import("../charts").Spreadsheet;
161
+ };
162
+ showHyperlinkPopup: false | "editor" | "info";
163
+ linkOpacity: number;
164
+ trayModeEnabled: boolean;
165
+ colorPalette?: {
166
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
167
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
168
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
169
+ topPicks: {
170
+ canvasBackground: [string, string, string, string, string];
171
+ elementStroke: [string, string, string, string, string];
172
+ elementBackground: [string, string, string, string, string];
173
+ };
174
+ } | undefined;
175
+ allowWheelZoom?: boolean | undefined;
176
+ allowPinchZoom?: boolean | undefined;
177
+ pinnedScripts?: string[] | undefined;
178
+ customPens?: any[] | undefined;
179
+ currentStrokeOptions?: any;
180
+ resetCustomPen?: any;
181
+ gridColor: {
182
+ Bold: string;
183
+ Regular: string;
184
+ };
185
+ gridDirection: {
186
+ horizontal: boolean;
187
+ vertical: boolean;
188
+ };
189
+ highlightSearchResult: boolean;
190
+ dynamicStyle: {
191
+ [x: string]: string;
192
+ };
193
+ frameColor: {
194
+ stroke: string;
195
+ fill: string;
196
+ nameColor: string;
197
+ };
198
+ invertBindingBehaviour: boolean;
199
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
200
+ snapLines: readonly import("../snapping").SnapLine[];
201
+ originSnapOffset: {
202
+ x: number;
203
+ y: number;
204
+ } | null;
205
+ objectsSnapModeEnabled: boolean;
206
+ userToFollow: import("../types").UserToFollow | null;
207
+ followedBy: Set<import("../types").SocketId>;
208
+ isCropping: boolean;
209
+ croppingElementId: string | null;
210
+ searchMatches: Readonly<{
211
+ focusedId: string | null;
212
+ matches: readonly import("../types").SearchMatch[];
213
+ }> | null;
214
+ activeLockedId: string | null;
215
+ lockedMultiSelections: {
216
+ [groupId: string]: true;
217
+ };
218
+ };
219
+ } | {
220
+ captureUpdate: "EVENTUALLY";
221
+ appState?: undefined;
222
+ }>;
223
+ keyTest: undefined;
224
+ } & {
225
+ keyTest?: undefined;
226
+ };
227
+ export declare const actionPaste: {
228
+ name: "paste";
229
+ label: string;
230
+ trackEvent: {
231
+ category: "element";
232
+ };
233
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
234
+ captureUpdate: "EVENTUALLY";
235
+ appState: {
236
+ errorMessage: string;
237
+ contextMenu: {
238
+ items: import("../components/ContextMenu").ContextMenuItems;
239
+ top: number;
240
+ left: number;
241
+ } | null;
242
+ showWelcomeScreen: boolean;
243
+ isLoading: boolean;
244
+ activeEmbeddable: {
245
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
246
+ state: "active" | "hover";
247
+ } | null;
248
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
249
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
250
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
251
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
252
+ isBindingEnabled: boolean;
253
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
254
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
255
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
256
+ frameRendering: {
257
+ enabled: boolean;
258
+ name: boolean;
259
+ outline: boolean;
260
+ clip: boolean;
261
+ markerName: boolean;
262
+ markerEnabled: boolean;
263
+ };
264
+ editingFrame: string | null;
265
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
266
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
267
+ activeTool: {
268
+ lastActiveTool: import("../types").ActiveTool | null;
269
+ locked: boolean;
270
+ fromSelection: boolean;
271
+ } & import("../types").ActiveTool;
272
+ penMode: boolean;
273
+ penDetected: boolean;
274
+ exportBackground: boolean;
275
+ exportEmbedScene: boolean;
276
+ exportWithDarkMode: boolean;
277
+ exportScale: number;
278
+ currentItemStrokeColor: string;
279
+ currentItemBackgroundColor: string;
280
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
281
+ currentItemStrokeWidth: number;
282
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
283
+ currentItemRoughness: number;
284
+ currentItemOpacity: number;
285
+ currentItemFontFamily: number;
286
+ currentItemFontSize: number;
287
+ currentItemTextAlign: string;
288
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
289
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
290
+ currentHoveredFontFamily: number | null;
291
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
292
+ currentItemArrowType: "round" | "sharp" | "elbow";
293
+ currentItemFrameRole: ("marker" | null) | undefined;
294
+ viewBackgroundColor: string;
295
+ scrollX: number;
296
+ scrollY: number;
297
+ cursorButton: "up" | "down";
298
+ scrolledOutside: boolean;
299
+ name: string | null;
300
+ isResizing: boolean;
301
+ isRotating: boolean;
302
+ zoom: Readonly<{
303
+ value: import("../types").NormalizedZoomValue;
304
+ }>;
305
+ openMenu: "canvas" | "shape" | null;
306
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
307
+ openSidebar: {
308
+ name: string;
309
+ tab?: string | undefined;
310
+ } | null;
311
+ openDialog: {
312
+ name: "help" | "imageExport" | "jsonExport";
313
+ } | {
314
+ name: "ttd";
315
+ tab: "mermaid" | "text-to-diagram";
316
+ } | {
317
+ name: "commandPalette";
318
+ } | {
319
+ name: "elementLinkSelector";
320
+ sourceElementId: string;
321
+ } | null;
322
+ defaultSidebarDockedPreference: boolean;
323
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
324
+ selectedElementIds: Readonly<{
325
+ [id: string]: true;
326
+ }>;
327
+ hoveredElementIds: Readonly<{
328
+ [id: string]: true;
329
+ }>;
330
+ previousSelectedElementIds: {
331
+ [id: string]: true;
332
+ };
333
+ selectedElementsAreBeingDragged: boolean;
334
+ shouldCacheIgnoreZoom: boolean;
335
+ toast: {
336
+ message: string;
337
+ closable?: boolean | undefined;
338
+ duration?: number | undefined;
339
+ } | null;
340
+ zenModeEnabled: boolean;
341
+ theme: import("@excalidraw/element/types").Theme;
342
+ gridSize: number;
343
+ gridStep: number;
344
+ gridModeEnabled: boolean;
345
+ viewModeEnabled: boolean;
346
+ selectedGroupIds: {
347
+ [groupId: string]: boolean;
348
+ };
349
+ editingGroupId: string | null;
350
+ width: number;
351
+ height: number;
352
+ offsetTop: number;
353
+ offsetLeft: number;
354
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
355
+ collaborators: Map<import("../types").SocketId, Readonly<{
356
+ pointer?: import("../types").CollaboratorPointer | undefined;
357
+ button?: "up" | "down" | undefined;
358
+ selectedElementIds?: Readonly<{
359
+ [id: string]: true;
360
+ }> | undefined;
361
+ username?: string | null | undefined;
362
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
363
+ color?: {
364
+ background: string;
365
+ stroke: string;
366
+ } | undefined;
367
+ avatarUrl?: string | undefined;
368
+ id?: string | undefined;
369
+ socketId?: import("../types").SocketId | undefined;
370
+ isCurrentUser?: boolean | undefined;
371
+ isInCall?: boolean | undefined;
372
+ isSpeaking?: boolean | undefined;
373
+ isMuted?: boolean | undefined;
374
+ }>>;
375
+ stats: {
376
+ open: boolean;
377
+ panels: number;
378
+ };
379
+ currentChartType: import("@excalidraw/element/types").ChartType;
380
+ pasteDialog: {
381
+ shown: false;
382
+ data: null;
383
+ } | {
384
+ shown: true;
385
+ data: import("../charts").Spreadsheet;
386
+ };
387
+ showHyperlinkPopup: false | "editor" | "info";
388
+ linkOpacity: number;
389
+ trayModeEnabled: boolean;
390
+ colorPalette?: {
391
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
392
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
393
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
394
+ topPicks: {
395
+ canvasBackground: [string, string, string, string, string];
396
+ elementStroke: [string, string, string, string, string];
397
+ elementBackground: [string, string, string, string, string];
398
+ };
399
+ } | undefined;
400
+ allowWheelZoom?: boolean | undefined;
401
+ allowPinchZoom?: boolean | undefined;
402
+ pinnedScripts?: string[] | undefined;
403
+ customPens?: any[] | undefined;
404
+ currentStrokeOptions?: any;
405
+ resetCustomPen?: any;
406
+ gridColor: {
407
+ Bold: string;
408
+ Regular: string;
409
+ };
410
+ gridDirection: {
411
+ horizontal: boolean;
412
+ vertical: boolean;
413
+ };
414
+ highlightSearchResult: boolean;
415
+ dynamicStyle: {
416
+ [x: string]: string;
417
+ };
418
+ frameColor: {
419
+ stroke: string;
420
+ fill: string;
421
+ nameColor: string;
422
+ };
423
+ invertBindingBehaviour: boolean;
424
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
425
+ snapLines: readonly import("../snapping").SnapLine[];
426
+ originSnapOffset: {
427
+ x: number;
428
+ y: number;
429
+ } | null;
430
+ objectsSnapModeEnabled: boolean;
431
+ userToFollow: import("../types").UserToFollow | null;
432
+ followedBy: Set<import("../types").SocketId>;
433
+ isCropping: boolean;
434
+ croppingElementId: string | null;
435
+ searchMatches: Readonly<{
436
+ focusedId: string | null;
437
+ matches: readonly import("../types").SearchMatch[];
438
+ }> | null;
439
+ activeLockedId: string | null;
440
+ lockedMultiSelections: {
441
+ [groupId: string]: true;
442
+ };
443
+ };
444
+ } | {
445
+ captureUpdate: "EVENTUALLY";
446
+ appState?: undefined;
447
+ }>;
448
+ keyTest: undefined;
449
+ } & {
450
+ keyTest?: undefined;
451
+ };
452
+ export declare const actionCut: {
453
+ name: "cut";
454
+ label: string;
455
+ icon: import("react/jsx-runtime").JSX.Element;
456
+ trackEvent: {
457
+ category: "element";
458
+ };
459
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
460
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
461
+ appState: {
462
+ selectedLinearElement: null;
463
+ contextMenu: {
464
+ items: import("../components/ContextMenu").ContextMenuItems;
465
+ top: number;
466
+ left: number;
467
+ } | null;
468
+ showWelcomeScreen: boolean;
469
+ isLoading: boolean;
470
+ errorMessage: import("react").ReactNode;
471
+ activeEmbeddable: {
472
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
473
+ state: "active" | "hover";
474
+ } | null;
475
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
476
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
477
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
478
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
479
+ isBindingEnabled: boolean;
480
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
481
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
482
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
483
+ frameRendering: {
484
+ enabled: boolean;
485
+ name: boolean;
486
+ outline: boolean;
487
+ clip: boolean;
488
+ markerName: boolean;
489
+ markerEnabled: boolean;
490
+ };
491
+ editingFrame: string | null;
492
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
493
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
494
+ activeTool: {
495
+ lastActiveTool: import("../types").ActiveTool | null;
496
+ locked: boolean;
497
+ fromSelection: boolean;
498
+ } & import("../types").ActiveTool;
499
+ penMode: boolean;
500
+ penDetected: boolean;
501
+ exportBackground: boolean;
502
+ exportEmbedScene: boolean;
503
+ exportWithDarkMode: boolean;
504
+ exportScale: number;
505
+ currentItemStrokeColor: string;
506
+ currentItemBackgroundColor: string;
507
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
508
+ currentItemStrokeWidth: number;
509
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
510
+ currentItemRoughness: number;
511
+ currentItemOpacity: number;
512
+ currentItemFontFamily: number;
513
+ currentItemFontSize: number;
514
+ currentItemTextAlign: string;
515
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
516
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
517
+ currentHoveredFontFamily: number | null;
518
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
519
+ currentItemArrowType: "round" | "sharp" | "elbow";
520
+ currentItemFrameRole: ("marker" | null) | undefined;
521
+ viewBackgroundColor: string;
522
+ scrollX: number;
523
+ scrollY: number;
524
+ cursorButton: "up" | "down";
525
+ scrolledOutside: boolean;
526
+ name: string | null;
527
+ isResizing: boolean;
528
+ isRotating: boolean;
529
+ zoom: Readonly<{
530
+ value: import("../types").NormalizedZoomValue;
531
+ }>;
532
+ openMenu: "canvas" | "shape" | null;
533
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
534
+ openSidebar: {
535
+ name: string;
536
+ tab?: string | undefined;
537
+ } | null;
538
+ openDialog: {
539
+ name: "help" | "imageExport" | "jsonExport";
540
+ } | {
541
+ name: "ttd";
542
+ tab: "mermaid" | "text-to-diagram";
543
+ } | {
544
+ name: "commandPalette";
545
+ } | {
546
+ name: "elementLinkSelector";
547
+ sourceElementId: string;
548
+ } | null;
549
+ defaultSidebarDockedPreference: boolean;
550
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
551
+ selectedElementIds: Readonly<{
552
+ [id: string]: true;
553
+ }>;
554
+ hoveredElementIds: Readonly<{
555
+ [id: string]: true;
556
+ }>;
557
+ previousSelectedElementIds: {
558
+ [id: string]: true;
559
+ };
560
+ selectedElementsAreBeingDragged: boolean;
561
+ shouldCacheIgnoreZoom: boolean;
562
+ toast: {
563
+ message: string;
564
+ closable?: boolean | undefined;
565
+ duration?: number | undefined;
566
+ } | null;
567
+ zenModeEnabled: boolean;
568
+ theme: import("@excalidraw/element/types").Theme;
569
+ gridSize: number;
570
+ gridStep: number;
571
+ gridModeEnabled: boolean;
572
+ viewModeEnabled: boolean;
573
+ selectedGroupIds: {
574
+ [groupId: string]: boolean;
575
+ };
576
+ editingGroupId: string | null;
577
+ width: number;
578
+ height: number;
579
+ offsetTop: number;
580
+ offsetLeft: number;
581
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
582
+ collaborators: Map<import("../types").SocketId, Readonly<{
583
+ pointer?: import("../types").CollaboratorPointer | undefined;
584
+ button?: "up" | "down" | undefined;
585
+ selectedElementIds?: Readonly<{
586
+ [id: string]: true;
587
+ }> | undefined;
588
+ username?: string | null | undefined;
589
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
590
+ color?: {
591
+ background: string;
592
+ stroke: string;
593
+ } | undefined;
594
+ avatarUrl?: string | undefined;
595
+ id?: string | undefined;
596
+ socketId?: import("../types").SocketId | undefined;
597
+ isCurrentUser?: boolean | undefined;
598
+ isInCall?: boolean | undefined;
599
+ isSpeaking?: boolean | undefined;
600
+ isMuted?: boolean | undefined;
601
+ }>>;
602
+ stats: {
603
+ open: boolean;
604
+ panels: number;
605
+ };
606
+ currentChartType: import("@excalidraw/element/types").ChartType;
607
+ pasteDialog: {
608
+ shown: false;
609
+ data: null;
610
+ } | {
611
+ shown: true;
612
+ data: import("../charts").Spreadsheet;
613
+ };
614
+ showHyperlinkPopup: false | "editor" | "info";
615
+ linkOpacity: number;
616
+ trayModeEnabled: boolean;
617
+ colorPalette?: {
618
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
619
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
620
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
621
+ topPicks: {
622
+ canvasBackground: [string, string, string, string, string];
623
+ elementStroke: [string, string, string, string, string];
624
+ elementBackground: [string, string, string, string, string];
625
+ };
626
+ } | undefined;
627
+ allowWheelZoom?: boolean | undefined;
628
+ allowPinchZoom?: boolean | undefined;
629
+ pinnedScripts?: string[] | undefined;
630
+ customPens?: any[] | undefined;
631
+ currentStrokeOptions?: any;
632
+ resetCustomPen?: any;
633
+ gridColor: {
634
+ Bold: string;
635
+ Regular: string;
636
+ };
637
+ gridDirection: {
638
+ horizontal: boolean;
639
+ vertical: boolean;
640
+ };
641
+ highlightSearchResult: boolean;
642
+ dynamicStyle: {
643
+ [x: string]: string;
644
+ };
645
+ frameColor: {
646
+ stroke: string;
647
+ fill: string;
648
+ nameColor: string;
649
+ };
650
+ invertBindingBehaviour: boolean;
651
+ snapLines: readonly import("../snapping").SnapLine[];
652
+ originSnapOffset: {
653
+ x: number;
654
+ y: number;
655
+ } | null;
656
+ objectsSnapModeEnabled: boolean;
657
+ userToFollow: import("../types").UserToFollow | null;
658
+ followedBy: Set<import("../types").SocketId>;
659
+ isCropping: boolean;
660
+ croppingElementId: string | null;
661
+ searchMatches: Readonly<{
662
+ focusedId: string | null;
663
+ matches: readonly import("../types").SearchMatch[];
664
+ }> | null;
665
+ activeLockedId: string | null;
666
+ lockedMultiSelections: {
667
+ [groupId: string]: true;
668
+ };
669
+ };
670
+ captureUpdate: "IMMEDIATELY";
671
+ } | {
672
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
673
+ appState: {
674
+ selectedLinearElement: {
675
+ selectedPointsIndices: number[];
676
+ startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
677
+ endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
678
+ elementId: string & {
679
+ _brand: "excalidrawLinearElementId";
680
+ };
681
+ pointerDownState: Readonly<{
682
+ prevSelectedPointsIndices: readonly number[] | null;
683
+ lastClickedPoint: number;
684
+ lastClickedIsEndPoint: boolean;
685
+ origin: Readonly<{
686
+ x: number;
687
+ y: number;
688
+ }> | null;
689
+ segmentMidpoint: {
690
+ value: import("@excalidraw/math").GlobalPoint | null;
691
+ index: number | null;
692
+ added: boolean;
693
+ };
694
+ }>;
695
+ isDragging: boolean;
696
+ lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
697
+ pointerOffset: Readonly<{
698
+ x: number;
699
+ y: number;
700
+ }>;
701
+ hoverPointIndex: number;
702
+ segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
703
+ elbowed: boolean;
704
+ customLineAngle: number | null;
705
+ isEditing: boolean;
706
+ };
707
+ contextMenu: {
708
+ items: import("../components/ContextMenu").ContextMenuItems;
709
+ top: number;
710
+ left: number;
711
+ } | null;
712
+ showWelcomeScreen: boolean;
713
+ isLoading: boolean;
714
+ errorMessage: import("react").ReactNode;
715
+ activeEmbeddable: {
716
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
717
+ state: "active" | "hover";
718
+ } | null;
719
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
720
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
721
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
722
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
723
+ isBindingEnabled: boolean;
724
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
725
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
726
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
727
+ frameRendering: {
728
+ enabled: boolean;
729
+ name: boolean;
730
+ outline: boolean;
731
+ clip: boolean;
732
+ markerName: boolean;
733
+ markerEnabled: boolean;
734
+ };
735
+ editingFrame: string | null;
736
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
737
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
738
+ activeTool: {
739
+ lastActiveTool: import("../types").ActiveTool | null;
740
+ locked: boolean;
741
+ fromSelection: boolean;
742
+ } & import("../types").ActiveTool;
743
+ penMode: boolean;
744
+ penDetected: boolean;
745
+ exportBackground: boolean;
746
+ exportEmbedScene: boolean;
747
+ exportWithDarkMode: boolean;
748
+ exportScale: number;
749
+ currentItemStrokeColor: string;
750
+ currentItemBackgroundColor: string;
751
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
752
+ currentItemStrokeWidth: number;
753
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
754
+ currentItemRoughness: number;
755
+ currentItemOpacity: number;
756
+ currentItemFontFamily: number;
757
+ currentItemFontSize: number;
758
+ currentItemTextAlign: string;
759
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
760
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
761
+ currentHoveredFontFamily: number | null;
762
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
763
+ currentItemArrowType: "round" | "sharp" | "elbow";
764
+ currentItemFrameRole: ("marker" | null) | undefined;
765
+ viewBackgroundColor: string;
766
+ scrollX: number;
767
+ scrollY: number;
768
+ cursorButton: "up" | "down";
769
+ scrolledOutside: boolean;
770
+ name: string | null;
771
+ isResizing: boolean;
772
+ isRotating: boolean;
773
+ zoom: Readonly<{
774
+ value: import("../types").NormalizedZoomValue;
775
+ }>;
776
+ openMenu: "canvas" | "shape" | null;
777
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
778
+ openSidebar: {
779
+ name: string;
780
+ tab?: string | undefined;
781
+ } | null;
782
+ openDialog: {
783
+ name: "help" | "imageExport" | "jsonExport";
784
+ } | {
785
+ name: "ttd";
786
+ tab: "mermaid" | "text-to-diagram";
787
+ } | {
788
+ name: "commandPalette";
789
+ } | {
790
+ name: "elementLinkSelector";
791
+ sourceElementId: string;
792
+ } | null;
793
+ defaultSidebarDockedPreference: boolean;
794
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
795
+ selectedElementIds: Readonly<{
796
+ [id: string]: true;
797
+ }>;
798
+ hoveredElementIds: Readonly<{
799
+ [id: string]: true;
800
+ }>;
801
+ previousSelectedElementIds: {
802
+ [id: string]: true;
803
+ };
804
+ selectedElementsAreBeingDragged: boolean;
805
+ shouldCacheIgnoreZoom: boolean;
806
+ toast: {
807
+ message: string;
808
+ closable?: boolean | undefined;
809
+ duration?: number | undefined;
810
+ } | null;
811
+ zenModeEnabled: boolean;
812
+ theme: import("@excalidraw/element/types").Theme;
813
+ gridSize: number;
814
+ gridStep: number;
815
+ gridModeEnabled: boolean;
816
+ viewModeEnabled: boolean;
817
+ selectedGroupIds: {
818
+ [groupId: string]: boolean;
819
+ };
820
+ editingGroupId: string | null;
821
+ width: number;
822
+ height: number;
823
+ offsetTop: number;
824
+ offsetLeft: number;
825
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
826
+ collaborators: Map<import("../types").SocketId, Readonly<{
827
+ pointer?: import("../types").CollaboratorPointer | undefined;
828
+ button?: "up" | "down" | undefined;
829
+ selectedElementIds?: Readonly<{
830
+ [id: string]: true;
831
+ }> | undefined;
832
+ username?: string | null | undefined;
833
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
834
+ color?: {
835
+ background: string;
836
+ stroke: string;
837
+ } | undefined;
838
+ avatarUrl?: string | undefined;
839
+ id?: string | undefined;
840
+ socketId?: import("../types").SocketId | undefined;
841
+ isCurrentUser?: boolean | undefined;
842
+ isInCall?: boolean | undefined;
843
+ isSpeaking?: boolean | undefined;
844
+ isMuted?: boolean | undefined;
845
+ }>>;
846
+ stats: {
847
+ open: boolean;
848
+ panels: number;
849
+ };
850
+ currentChartType: import("@excalidraw/element/types").ChartType;
851
+ pasteDialog: {
852
+ shown: false;
853
+ data: null;
854
+ } | {
855
+ shown: true;
856
+ data: import("../charts").Spreadsheet;
857
+ };
858
+ showHyperlinkPopup: false | "editor" | "info";
859
+ linkOpacity: number;
860
+ trayModeEnabled: boolean;
861
+ colorPalette?: {
862
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
863
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
864
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
865
+ topPicks: {
866
+ canvasBackground: [string, string, string, string, string];
867
+ elementStroke: [string, string, string, string, string];
868
+ elementBackground: [string, string, string, string, string];
869
+ };
870
+ } | undefined;
871
+ allowWheelZoom?: boolean | undefined;
872
+ allowPinchZoom?: boolean | undefined;
873
+ pinnedScripts?: string[] | undefined;
874
+ customPens?: any[] | undefined;
875
+ currentStrokeOptions?: any;
876
+ resetCustomPen?: any;
877
+ gridColor: {
878
+ Bold: string;
879
+ Regular: string;
880
+ };
881
+ gridDirection: {
882
+ horizontal: boolean;
883
+ vertical: boolean;
884
+ };
885
+ highlightSearchResult: boolean;
886
+ dynamicStyle: {
887
+ [x: string]: string;
888
+ };
889
+ frameColor: {
890
+ stroke: string;
891
+ fill: string;
892
+ nameColor: string;
893
+ };
894
+ invertBindingBehaviour: boolean;
895
+ snapLines: readonly import("../snapping").SnapLine[];
896
+ originSnapOffset: {
897
+ x: number;
898
+ y: number;
899
+ } | null;
900
+ objectsSnapModeEnabled: boolean;
901
+ userToFollow: import("../types").UserToFollow | null;
902
+ followedBy: Set<import("../types").SocketId>;
903
+ isCropping: boolean;
904
+ croppingElementId: string | null;
905
+ searchMatches: Readonly<{
906
+ focusedId: string | null;
907
+ matches: readonly import("../types").SearchMatch[];
908
+ }> | null;
909
+ activeLockedId: string | null;
910
+ lockedMultiSelections: {
911
+ [groupId: string]: true;
912
+ };
913
+ };
914
+ captureUpdate: "IMMEDIATELY";
915
+ } | {
916
+ elements: import("@excalidraw/element/types").ExcalidrawElement[];
917
+ appState: {
918
+ activeTool: {
919
+ lastActiveTool: import("../types").ActiveTool | null;
920
+ locked: boolean;
921
+ fromSelection: boolean;
922
+ } & import("../types").ActiveTool;
923
+ multiElement: null;
924
+ activeEmbeddable: null;
925
+ selectedLinearElement: null;
926
+ editingGroupId: string | null;
927
+ selectedElementIds: Readonly<{
928
+ [id: string]: true;
929
+ }>;
930
+ selectedGroupIds: {
931
+ [groupId: string]: boolean;
932
+ };
933
+ contextMenu: {
934
+ items: import("../components/ContextMenu").ContextMenuItems;
935
+ top: number;
936
+ left: number;
937
+ } | null;
938
+ showWelcomeScreen: boolean;
939
+ isLoading: boolean;
940
+ errorMessage: import("react").ReactNode;
941
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
942
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
943
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
944
+ isBindingEnabled: boolean;
945
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
946
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
947
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
948
+ frameRendering: {
949
+ enabled: boolean;
950
+ name: boolean;
951
+ outline: boolean;
952
+ clip: boolean;
953
+ markerName: boolean;
954
+ markerEnabled: boolean;
955
+ };
956
+ editingFrame: string | null;
957
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
958
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
959
+ penMode: boolean;
960
+ penDetected: boolean;
961
+ exportBackground: boolean;
962
+ exportEmbedScene: boolean;
963
+ exportWithDarkMode: boolean;
964
+ exportScale: number;
965
+ currentItemStrokeColor: string;
966
+ currentItemBackgroundColor: string;
967
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
968
+ currentItemStrokeWidth: number;
969
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
970
+ currentItemRoughness: number;
971
+ currentItemOpacity: number;
972
+ currentItemFontFamily: number;
973
+ currentItemFontSize: number;
974
+ currentItemTextAlign: string;
975
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
976
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
977
+ currentHoveredFontFamily: number | null;
978
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
979
+ currentItemArrowType: "round" | "sharp" | "elbow";
980
+ currentItemFrameRole: ("marker" | null) | undefined;
981
+ viewBackgroundColor: string;
982
+ scrollX: number;
983
+ scrollY: number;
984
+ cursorButton: "up" | "down";
985
+ scrolledOutside: boolean;
986
+ name: string | null;
987
+ isResizing: boolean;
988
+ isRotating: boolean;
989
+ zoom: Readonly<{
990
+ value: import("../types").NormalizedZoomValue;
991
+ }>;
992
+ openMenu: "canvas" | "shape" | null;
993
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
994
+ openSidebar: {
995
+ name: string;
996
+ tab?: string | undefined;
997
+ } | null;
998
+ openDialog: {
999
+ name: "help" | "imageExport" | "jsonExport";
1000
+ } | {
1001
+ name: "ttd";
1002
+ tab: "mermaid" | "text-to-diagram";
1003
+ } | {
1004
+ name: "commandPalette";
1005
+ } | {
1006
+ name: "elementLinkSelector";
1007
+ sourceElementId: string;
1008
+ } | null;
1009
+ defaultSidebarDockedPreference: boolean;
1010
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1011
+ hoveredElementIds: Readonly<{
1012
+ [id: string]: true;
1013
+ }>;
1014
+ previousSelectedElementIds: {
1015
+ [id: string]: true;
1016
+ };
1017
+ selectedElementsAreBeingDragged: boolean;
1018
+ shouldCacheIgnoreZoom: boolean;
1019
+ toast: {
1020
+ message: string;
1021
+ closable?: boolean | undefined;
1022
+ duration?: number | undefined;
1023
+ } | null;
1024
+ zenModeEnabled: boolean;
1025
+ theme: import("@excalidraw/element/types").Theme;
1026
+ gridSize: number;
1027
+ gridStep: number;
1028
+ gridModeEnabled: boolean;
1029
+ viewModeEnabled: boolean;
1030
+ width: number;
1031
+ height: number;
1032
+ offsetTop: number;
1033
+ offsetLeft: number;
1034
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1035
+ collaborators: Map<import("../types").SocketId, Readonly<{
1036
+ pointer?: import("../types").CollaboratorPointer | undefined;
1037
+ button?: "up" | "down" | undefined;
1038
+ selectedElementIds?: Readonly<{
1039
+ [id: string]: true;
1040
+ }> | undefined;
1041
+ username?: string | null | undefined;
1042
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1043
+ color?: {
1044
+ background: string;
1045
+ stroke: string;
1046
+ } | undefined;
1047
+ avatarUrl?: string | undefined;
1048
+ id?: string | undefined;
1049
+ socketId?: import("../types").SocketId | undefined;
1050
+ isCurrentUser?: boolean | undefined;
1051
+ isInCall?: boolean | undefined;
1052
+ isSpeaking?: boolean | undefined;
1053
+ isMuted?: boolean | undefined;
1054
+ }>>;
1055
+ stats: {
1056
+ open: boolean;
1057
+ panels: number;
1058
+ };
1059
+ currentChartType: import("@excalidraw/element/types").ChartType;
1060
+ pasteDialog: {
1061
+ shown: false;
1062
+ data: null;
1063
+ } | {
1064
+ shown: true;
1065
+ data: import("../charts").Spreadsheet;
1066
+ };
1067
+ showHyperlinkPopup: false | "editor" | "info";
1068
+ linkOpacity: number;
1069
+ trayModeEnabled: boolean;
1070
+ colorPalette?: {
1071
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1072
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1073
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1074
+ topPicks: {
1075
+ canvasBackground: [string, string, string, string, string];
1076
+ elementStroke: [string, string, string, string, string];
1077
+ elementBackground: [string, string, string, string, string];
1078
+ };
1079
+ } | undefined;
1080
+ allowWheelZoom?: boolean | undefined;
1081
+ allowPinchZoom?: boolean | undefined;
1082
+ pinnedScripts?: string[] | undefined;
1083
+ customPens?: any[] | undefined;
1084
+ currentStrokeOptions?: any;
1085
+ resetCustomPen?: any;
1086
+ gridColor: {
1087
+ Bold: string;
1088
+ Regular: string;
1089
+ };
1090
+ gridDirection: {
1091
+ horizontal: boolean;
1092
+ vertical: boolean;
1093
+ };
1094
+ highlightSearchResult: boolean;
1095
+ dynamicStyle: {
1096
+ [x: string]: string;
1097
+ };
1098
+ frameColor: {
1099
+ stroke: string;
1100
+ fill: string;
1101
+ nameColor: string;
1102
+ };
1103
+ invertBindingBehaviour: boolean;
1104
+ snapLines: readonly import("../snapping").SnapLine[];
1105
+ originSnapOffset: {
1106
+ x: number;
1107
+ y: number;
1108
+ } | null;
1109
+ objectsSnapModeEnabled: boolean;
1110
+ userToFollow: import("../types").UserToFollow | null;
1111
+ followedBy: Set<import("../types").SocketId>;
1112
+ isCropping: boolean;
1113
+ croppingElementId: string | null;
1114
+ searchMatches: Readonly<{
1115
+ focusedId: string | null;
1116
+ matches: readonly import("../types").SearchMatch[];
1117
+ }> | null;
1118
+ activeLockedId: string | null;
1119
+ lockedMultiSelections: {
1120
+ [groupId: string]: true;
1121
+ };
1122
+ };
1123
+ captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
1124
+ };
1125
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1126
+ } & {
1127
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1128
+ };
1129
+ export declare const actionCopyAsSvg: {
1130
+ name: "copyAsSvg";
1131
+ label: string;
1132
+ icon: import("react/jsx-runtime").JSX.Element;
1133
+ trackEvent: {
1134
+ category: "element";
1135
+ };
1136
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
1137
+ captureUpdate: "EVENTUALLY";
1138
+ appState?: undefined;
1139
+ } | {
1140
+ appState: {
1141
+ toast: {
1142
+ message: string;
1143
+ };
1144
+ errorMessage?: undefined;
1145
+ };
1146
+ captureUpdate: "EVENTUALLY";
1147
+ } | {
1148
+ appState: {
1149
+ errorMessage: any;
1150
+ toast?: undefined;
1151
+ };
1152
+ captureUpdate: "EVENTUALLY";
1153
+ }>;
1154
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1155
+ keywords: string[];
1156
+ } & {
1157
+ keyTest?: undefined;
1158
+ };
1159
+ export declare const actionCopyAsPng: {
1160
+ name: "copyAsPng";
1161
+ label: string;
1162
+ icon: import("react/jsx-runtime").JSX.Element;
1163
+ trackEvent: {
1164
+ category: "element";
1165
+ };
1166
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
1167
+ captureUpdate: "EVENTUALLY";
1168
+ appState?: undefined;
1169
+ } | {
1170
+ appState: {
1171
+ errorMessage: any;
1172
+ contextMenu: {
1173
+ items: import("../components/ContextMenu").ContextMenuItems;
1174
+ top: number;
1175
+ left: number;
1176
+ } | null;
1177
+ showWelcomeScreen: boolean;
1178
+ isLoading: boolean;
1179
+ activeEmbeddable: {
1180
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1181
+ state: "active" | "hover";
1182
+ } | null;
1183
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1184
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1185
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1186
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1187
+ isBindingEnabled: boolean;
1188
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1189
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1190
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1191
+ frameRendering: {
1192
+ enabled: boolean;
1193
+ name: boolean;
1194
+ outline: boolean;
1195
+ clip: boolean;
1196
+ markerName: boolean;
1197
+ markerEnabled: boolean;
1198
+ };
1199
+ editingFrame: string | null;
1200
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1201
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1202
+ activeTool: {
1203
+ lastActiveTool: import("../types").ActiveTool | null;
1204
+ locked: boolean;
1205
+ fromSelection: boolean;
1206
+ } & import("../types").ActiveTool;
1207
+ penMode: boolean;
1208
+ penDetected: boolean;
1209
+ exportBackground: boolean;
1210
+ exportEmbedScene: boolean;
1211
+ exportWithDarkMode: boolean;
1212
+ exportScale: number;
1213
+ currentItemStrokeColor: string;
1214
+ currentItemBackgroundColor: string;
1215
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1216
+ currentItemStrokeWidth: number;
1217
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1218
+ currentItemRoughness: number;
1219
+ currentItemOpacity: number;
1220
+ currentItemFontFamily: number;
1221
+ currentItemFontSize: number;
1222
+ currentItemTextAlign: string;
1223
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1224
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1225
+ currentHoveredFontFamily: number | null;
1226
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1227
+ currentItemArrowType: "round" | "sharp" | "elbow";
1228
+ currentItemFrameRole: ("marker" | null) | undefined;
1229
+ viewBackgroundColor: string;
1230
+ scrollX: number;
1231
+ scrollY: number;
1232
+ cursorButton: "up" | "down";
1233
+ scrolledOutside: boolean;
1234
+ name: string | null;
1235
+ isResizing: boolean;
1236
+ isRotating: boolean;
1237
+ zoom: Readonly<{
1238
+ value: import("../types").NormalizedZoomValue;
1239
+ }>;
1240
+ openMenu: "canvas" | "shape" | null;
1241
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1242
+ openSidebar: {
1243
+ name: string;
1244
+ tab?: string | undefined;
1245
+ } | null;
1246
+ openDialog: {
1247
+ name: "help" | "imageExport" | "jsonExport";
1248
+ } | {
1249
+ name: "ttd";
1250
+ tab: "mermaid" | "text-to-diagram";
1251
+ } | {
1252
+ name: "commandPalette";
1253
+ } | {
1254
+ name: "elementLinkSelector";
1255
+ sourceElementId: string;
1256
+ } | null;
1257
+ defaultSidebarDockedPreference: boolean;
1258
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1259
+ selectedElementIds: Readonly<{
1260
+ [id: string]: true;
1261
+ }>;
1262
+ hoveredElementIds: Readonly<{
1263
+ [id: string]: true;
1264
+ }>;
1265
+ previousSelectedElementIds: {
1266
+ [id: string]: true;
1267
+ };
1268
+ selectedElementsAreBeingDragged: boolean;
1269
+ shouldCacheIgnoreZoom: boolean;
1270
+ toast: {
1271
+ message: string;
1272
+ closable?: boolean | undefined;
1273
+ duration?: number | undefined;
1274
+ } | null;
1275
+ zenModeEnabled: boolean;
1276
+ theme: import("@excalidraw/element/types").Theme;
1277
+ gridSize: number;
1278
+ gridStep: number;
1279
+ gridModeEnabled: boolean;
1280
+ viewModeEnabled: boolean;
1281
+ selectedGroupIds: {
1282
+ [groupId: string]: boolean;
1283
+ };
1284
+ editingGroupId: string | null;
1285
+ width: number;
1286
+ height: number;
1287
+ offsetTop: number;
1288
+ offsetLeft: number;
1289
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1290
+ collaborators: Map<import("../types").SocketId, Readonly<{
1291
+ pointer?: import("../types").CollaboratorPointer | undefined;
1292
+ button?: "up" | "down" | undefined;
1293
+ selectedElementIds?: Readonly<{
1294
+ [id: string]: true;
1295
+ }> | undefined;
1296
+ username?: string | null | undefined;
1297
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1298
+ color?: {
1299
+ background: string;
1300
+ stroke: string;
1301
+ } | undefined;
1302
+ avatarUrl?: string | undefined;
1303
+ id?: string | undefined;
1304
+ socketId?: import("../types").SocketId | undefined;
1305
+ isCurrentUser?: boolean | undefined;
1306
+ isInCall?: boolean | undefined;
1307
+ isSpeaking?: boolean | undefined;
1308
+ isMuted?: boolean | undefined;
1309
+ }>>;
1310
+ stats: {
1311
+ open: boolean;
1312
+ panels: number;
1313
+ };
1314
+ currentChartType: import("@excalidraw/element/types").ChartType;
1315
+ pasteDialog: {
1316
+ shown: false;
1317
+ data: null;
1318
+ } | {
1319
+ shown: true;
1320
+ data: import("../charts").Spreadsheet;
1321
+ };
1322
+ showHyperlinkPopup: false | "editor" | "info";
1323
+ linkOpacity: number;
1324
+ trayModeEnabled: boolean;
1325
+ colorPalette?: {
1326
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1327
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1328
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1329
+ topPicks: {
1330
+ canvasBackground: [string, string, string, string, string];
1331
+ elementStroke: [string, string, string, string, string];
1332
+ elementBackground: [string, string, string, string, string];
1333
+ };
1334
+ } | undefined;
1335
+ allowWheelZoom?: boolean | undefined;
1336
+ allowPinchZoom?: boolean | undefined;
1337
+ pinnedScripts?: string[] | undefined;
1338
+ customPens?: any[] | undefined;
1339
+ currentStrokeOptions?: any;
1340
+ resetCustomPen?: any;
1341
+ gridColor: {
1342
+ Bold: string;
1343
+ Regular: string;
1344
+ };
1345
+ gridDirection: {
1346
+ horizontal: boolean;
1347
+ vertical: boolean;
1348
+ };
1349
+ highlightSearchResult: boolean;
1350
+ dynamicStyle: {
1351
+ [x: string]: string;
1352
+ };
1353
+ frameColor: {
1354
+ stroke: string;
1355
+ fill: string;
1356
+ nameColor: string;
1357
+ };
1358
+ invertBindingBehaviour: boolean;
1359
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1360
+ snapLines: readonly import("../snapping").SnapLine[];
1361
+ originSnapOffset: {
1362
+ x: number;
1363
+ y: number;
1364
+ } | null;
1365
+ objectsSnapModeEnabled: boolean;
1366
+ userToFollow: import("../types").UserToFollow | null;
1367
+ followedBy: Set<import("../types").SocketId>;
1368
+ isCropping: boolean;
1369
+ croppingElementId: string | null;
1370
+ searchMatches: Readonly<{
1371
+ focusedId: string | null;
1372
+ matches: readonly import("../types").SearchMatch[];
1373
+ }> | null;
1374
+ activeLockedId: string | null;
1375
+ lockedMultiSelections: {
1376
+ [groupId: string]: true;
1377
+ };
1378
+ };
1379
+ captureUpdate: "EVENTUALLY";
1380
+ }>;
1381
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1382
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1383
+ keywords: string[];
1384
+ } & {
1385
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1386
+ };
1387
+ export declare const copyText: {
1388
+ name: "copyText";
1389
+ label: string;
1390
+ trackEvent: {
1391
+ category: "element";
1392
+ };
1393
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1394
+ captureUpdate: "EVENTUALLY";
1395
+ };
1396
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1397
+ keywords: string[];
1398
+ } & {
1399
+ keyTest?: undefined;
1400
+ };