@excalidraw-modify/common 0.18.0-8b71db27

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