@myoc/common 0.19.5-ffbfd9327

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