@excalidraw/common 0.18.0-019ce4c

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