@zsviczian/excalidraw 0.18.0-21 → 0.18.0-22

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