@excalidraw/element 0.18.0-01d4789e1

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