@excalidraw/element 0.18.0-d2463f87d

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