@excalidraw/element 0.18.0-d2463f87d

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