@wildmio/excalidraw-common 0.18.0-custom.1

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