@misenkashari/excalidraw-common 1.0.2 → 1.0.3

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