@orangecatai/element 0.0.1

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 (404) hide show
  1. package/README.md +19 -0
  2. package/dist/dev/index.js +21951 -0
  3. package/dist/dev/index.js.map +7 -0
  4. package/dist/prod/index.js +27 -0
  5. package/dist/types/common/debug.d.ts +21 -0
  6. package/dist/types/common/src/binary-heap.d.ts +12 -0
  7. package/dist/types/common/src/bounds.d.ts +10 -0
  8. package/dist/types/common/src/colors.d.ts +82 -0
  9. package/dist/types/common/src/constants.d.ts +355 -0
  10. package/dist/types/common/src/editorInterface.d.ts +34 -0
  11. package/dist/types/common/src/emitter.d.ts +16 -0
  12. package/dist/types/common/src/font-metadata.d.ts +46 -0
  13. package/dist/types/common/src/index.d.ts +15 -0
  14. package/dist/types/common/src/keys.d.ts +189 -0
  15. package/dist/types/common/src/points.d.ts +9 -0
  16. package/dist/types/common/src/promise-pool.d.ts +6 -0
  17. package/dist/types/common/src/queue.d.ts +9 -0
  18. package/dist/types/common/src/random.d.ts +3 -0
  19. package/dist/types/common/src/url.d.ts +7 -0
  20. package/dist/types/common/src/utility-types.d.ts +37 -0
  21. package/dist/types/common/src/utils.d.ts +281 -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/arrows/focus.d.ts +27 -0
  25. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  26. package/dist/types/element/src/binding.d.ts +130 -0
  27. package/dist/types/element/src/bounds.d.ts +81 -0
  28. package/dist/types/element/src/collision.d.ts +37 -0
  29. package/dist/types/element/src/comparisons.d.ts +8 -0
  30. package/dist/types/element/src/containerCache.d.ts +11 -0
  31. package/dist/types/element/src/cropElement.d.ts +19 -0
  32. package/dist/types/element/src/delta.d.ts +228 -0
  33. package/dist/types/element/src/distance.d.ts +3 -0
  34. package/dist/types/element/src/distribute.d.ts +8 -0
  35. package/dist/types/element/src/dragElements.d.ts +33 -0
  36. package/dist/types/element/src/duplicate.d.ts +63 -0
  37. package/dist/types/element/src/elbowArrow.d.ts +17 -0
  38. package/dist/types/element/src/elementLink.d.ts +13 -0
  39. package/dist/types/element/src/embeddable.d.ts +10 -0
  40. package/dist/types/element/src/flowchart.d.ts +26 -0
  41. package/dist/types/element/src/fractionalIndex.d.ts +57 -0
  42. package/dist/types/element/src/frame.d.ts +74 -0
  43. package/dist/types/element/src/groups.d.ts +34 -0
  44. package/dist/types/element/src/heading.d.ts +16 -0
  45. package/dist/types/element/src/image.d.ts +22 -0
  46. package/dist/types/element/src/index.d.ts +58 -0
  47. package/dist/types/element/src/linearElementEditor.d.ts +115 -0
  48. package/dist/types/element/src/mutateElement.d.ts +23 -0
  49. package/dist/types/element/src/newElement.d.ts +62 -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/showSelectedShapeActions.d.ts +3 -0
  57. package/dist/types/element/src/sizeHelpers.d.ts +35 -0
  58. package/dist/types/element/src/sortElements.d.ts +2 -0
  59. package/dist/types/element/src/store.d.ts +237 -0
  60. package/dist/types/element/src/textElement.d.ts +40 -0
  61. package/dist/types/element/src/textMeasurements.d.ts +39 -0
  62. package/dist/types/element/src/textWrapping.d.ts +13 -0
  63. package/dist/types/element/src/transform.d.ts +81 -0
  64. package/dist/types/element/src/transformHandles.d.ts +36 -0
  65. package/dist/types/element/src/typeChecks.d.ts +54 -0
  66. package/dist/types/element/src/types.d.ts +291 -0
  67. package/dist/types/element/src/utils.d.ts +36 -0
  68. package/dist/types/element/src/visualdebug.d.ts +59 -0
  69. package/dist/types/element/src/zindex.d.ts +13 -0
  70. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +491 -0
  71. package/dist/types/excalidraw/actions/actionAlign.d.ts +109 -0
  72. package/dist/types/excalidraw/actions/actionBoundText.d.ts +364 -0
  73. package/dist/types/excalidraw/actions/actionCanvas.d.ts +2083 -0
  74. package/dist/types/excalidraw/actions/actionClipboard.d.ts +403 -0
  75. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +176 -0
  76. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +527 -0
  77. package/dist/types/excalidraw/actions/actionDistribute.d.ts +34 -0
  78. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +17 -0
  79. package/dist/types/excalidraw/actions/actionElementLink.d.ts +196 -0
  80. package/dist/types/excalidraw/actions/actionElementLock.d.ts +350 -0
  81. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +173 -0
  82. package/dist/types/excalidraw/actions/actionExport.d.ts +691 -0
  83. package/dist/types/excalidraw/actions/actionFinalize.d.ts +13 -0
  84. package/dist/types/excalidraw/actions/actionFlip.d.ts +34 -0
  85. package/dist/types/excalidraw/actions/actionFrame.d.ts +1158 -0
  86. package/dist/types/excalidraw/actions/actionGroup.d.ts +354 -0
  87. package/dist/types/excalidraw/actions/actionHistory.d.ts +6 -0
  88. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +663 -0
  89. package/dist/types/excalidraw/actions/actionLink.d.ts +177 -0
  90. package/dist/types/excalidraw/actions/actionMenu.d.ts +165 -0
  91. package/dist/types/excalidraw/actions/actionNavigate.d.ts +20 -0
  92. package/dist/types/excalidraw/actions/actionProperties.d.ts +406 -0
  93. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +172 -0
  94. package/dist/types/excalidraw/actions/actionStyles.d.ts +190 -0
  95. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -0
  96. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +179 -0
  97. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +177 -0
  98. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +168 -0
  99. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  100. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +176 -0
  101. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +177 -0
  102. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +177 -0
  103. package/dist/types/excalidraw/actions/actionZindex.d.ts +74 -0
  104. package/dist/types/excalidraw/actions/index.d.ts +28 -0
  105. package/dist/types/excalidraw/actions/manager.d.ts +21 -0
  106. package/dist/types/excalidraw/actions/register.d.ts +5 -0
  107. package/dist/types/excalidraw/actions/shortcuts.d.ts +4 -0
  108. package/dist/types/excalidraw/actions/types.d.ts +47 -0
  109. package/dist/types/excalidraw/analytics.d.ts +1 -0
  110. package/dist/types/excalidraw/animated-trail.d.ts +39 -0
  111. package/dist/types/excalidraw/animation-frame-handler.d.ts +16 -0
  112. package/dist/types/excalidraw/appState.d.ts +101 -0
  113. package/dist/types/excalidraw/charts.d.ts +27 -0
  114. package/dist/types/excalidraw/clients.d.ts +14 -0
  115. package/dist/types/excalidraw/clipboard.d.ts +107 -0
  116. package/dist/types/excalidraw/components/Actions.d.ts +47 -0
  117. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +4 -0
  118. package/dist/types/excalidraw/components/App.d.ts +555 -0
  119. package/dist/types/excalidraw/components/Avatar.d.ts +11 -0
  120. package/dist/types/excalidraw/components/BraveMeasureTextError.d.ts +2 -0
  121. package/dist/types/excalidraw/components/Button.d.ts +17 -0
  122. package/dist/types/excalidraw/components/ButtonIcon.d.ts +16 -0
  123. package/dist/types/excalidraw/components/ButtonSeparator.d.ts +1 -0
  124. package/dist/types/excalidraw/components/Card.d.ts +5 -0
  125. package/dist/types/excalidraw/components/CheckboxItem.d.ts +8 -0
  126. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +8 -0
  127. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +22 -0
  128. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +8 -0
  129. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +7 -0
  130. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +19 -0
  131. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +10 -0
  132. package/dist/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +5 -0
  133. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +9 -0
  134. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +9 -0
  135. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +20 -0
  136. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +20 -0
  137. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +19 -0
  138. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -0
  139. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +24 -0
  140. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +10 -0
  141. package/dist/types/excalidraw/components/ContextMenu.d.ts +16 -0
  142. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  143. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +7 -0
  144. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +27 -0
  145. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +4 -0
  146. package/dist/types/excalidraw/components/Dialog.d.ts +13 -0
  147. package/dist/types/excalidraw/components/DialogActionButton.d.ts +10 -0
  148. package/dist/types/excalidraw/components/ElementCanvasButtons.d.ts +7 -0
  149. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +12 -0
  150. package/dist/types/excalidraw/components/Ellipsify.d.ts +3 -0
  151. package/dist/types/excalidraw/components/ErrorDialog.d.ts +5 -0
  152. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +15 -0
  153. package/dist/types/excalidraw/components/EyeDropper.d.ts +27 -0
  154. package/dist/types/excalidraw/components/FilledButton.d.ts +19 -0
  155. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +9 -0
  156. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +10 -0
  157. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +22 -0
  158. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +26 -0
  159. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +8 -0
  160. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +13 -0
  161. package/dist/types/excalidraw/components/FrameToolbar.d.ts +7 -0
  162. package/dist/types/excalidraw/components/HandButton.d.ts +10 -0
  163. package/dist/types/excalidraw/components/HelpButton.d.ts +7 -0
  164. package/dist/types/excalidraw/components/HelpDialog.d.ts +4 -0
  165. package/dist/types/excalidraw/components/HintViewer.d.ts +11 -0
  166. package/dist/types/excalidraw/components/IconPicker.d.ts +15 -0
  167. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +14 -0
  168. package/dist/types/excalidraw/components/InitializeApp.d.ts +10 -0
  169. package/dist/types/excalidraw/components/InlineIcon.d.ts +5 -0
  170. package/dist/types/excalidraw/components/Island.d.ts +10 -0
  171. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +15 -0
  172. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +10 -0
  173. package/dist/types/excalidraw/components/LayerUI.d.ts +32 -0
  174. package/dist/types/excalidraw/components/LibraryMenu.d.ts +10 -0
  175. package/dist/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +7 -0
  176. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +9 -0
  177. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +17 -0
  178. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +14 -0
  179. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +23 -0
  180. package/dist/types/excalidraw/components/LibraryUnit.d.ts +14 -0
  181. package/dist/types/excalidraw/components/LoadingMessage.d.ts +5 -0
  182. package/dist/types/excalidraw/components/LockButton.d.ts +10 -0
  183. package/dist/types/excalidraw/components/MagicButton.d.ts +10 -0
  184. package/dist/types/excalidraw/components/MobileMenu.d.ts +23 -0
  185. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  186. package/dist/types/excalidraw/components/Modal.d.ts +11 -0
  187. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -0
  188. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -0
  189. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -0
  190. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +8 -0
  191. package/dist/types/excalidraw/components/PenModeButton.d.ts +12 -0
  192. package/dist/types/excalidraw/components/Popover.d.ts +16 -0
  193. package/dist/types/excalidraw/components/ProjectName.d.ts +10 -0
  194. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +16 -0
  195. package/dist/types/excalidraw/components/PublishLibrary.d.ts +16 -0
  196. package/dist/types/excalidraw/components/QuickSearch.d.ts +9 -0
  197. package/dist/types/excalidraw/components/RadioGroup.d.ts +13 -0
  198. package/dist/types/excalidraw/components/RadioSelection.d.ts +20 -0
  199. package/dist/types/excalidraw/components/Range.d.ts +8 -0
  200. package/dist/types/excalidraw/components/SVGLayer.d.ts +7 -0
  201. package/dist/types/excalidraw/components/ScrollableList.d.ts +8 -0
  202. package/dist/types/excalidraw/components/SearchMenu.d.ts +5 -0
  203. package/dist/types/excalidraw/components/Section.d.ts +6 -0
  204. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +70 -0
  205. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +7 -0
  206. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +8 -0
  207. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +9 -0
  208. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +6 -0
  209. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +6 -0
  210. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +6 -0
  211. package/dist/types/excalidraw/components/Sidebar/common.d.ts +34 -0
  212. package/dist/types/excalidraw/components/Spinner.d.ts +8 -0
  213. package/dist/types/excalidraw/components/Stack.d.ts +15 -0
  214. package/dist/types/excalidraw/components/Stats/Angle.d.ts +11 -0
  215. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +10 -0
  216. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +10 -0
  217. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +11 -0
  218. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +44 -0
  219. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +11 -0
  220. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +11 -0
  221. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +14 -0
  222. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +12 -0
  223. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +14 -0
  224. package/dist/types/excalidraw/components/Stats/Position.d.ts +12 -0
  225. package/dist/types/excalidraw/components/Stats/index.d.ts +35 -0
  226. package/dist/types/excalidraw/components/Stats/utils.d.ts +19 -0
  227. package/dist/types/excalidraw/components/Switch.d.ts +9 -0
  228. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  229. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  230. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  231. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  232. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  233. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  234. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +7 -0
  235. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  236. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +13 -0
  237. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +9 -0
  238. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +8 -0
  239. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +21 -0
  240. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +4 -0
  241. package/dist/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -0
  242. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +7 -0
  243. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -0
  244. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -0
  245. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +11 -0
  246. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +8 -0
  247. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  248. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  249. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  250. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +33 -0
  251. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  252. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  253. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  254. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  255. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  256. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
  257. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  258. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  259. package/dist/types/excalidraw/components/TextField.d.ts +22 -0
  260. package/dist/types/excalidraw/components/Toast.d.ts +9 -0
  261. package/dist/types/excalidraw/components/ToolButton.d.ts +49 -0
  262. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  263. package/dist/types/excalidraw/components/Tooltip.d.ts +18 -0
  264. package/dist/types/excalidraw/components/Trans.d.ts +9 -0
  265. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  266. package/dist/types/excalidraw/components/UserList.d.ts +18 -0
  267. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +33 -0
  268. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +14 -0
  269. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +19 -0
  270. package/dist/types/excalidraw/components/canvases/index.d.ts +3 -0
  271. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +98 -0
  272. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +17 -0
  273. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -0
  274. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +37 -0
  275. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  276. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +9 -0
  277. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -0
  278. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +7 -0
  279. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +16 -0
  280. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -0
  281. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  282. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  283. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  284. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +10 -0
  285. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +6 -0
  286. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +5 -0
  287. package/dist/types/excalidraw/components/footer/Footer.d.ts +12 -0
  288. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +8 -0
  289. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +4 -0
  290. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +19 -0
  291. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +10 -0
  292. package/dist/types/excalidraw/components/icons.d.ts +244 -0
  293. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +11 -0
  294. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +79 -0
  295. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +87 -0
  296. package/dist/types/excalidraw/components/shapes.d.ts +263 -0
  297. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +58 -0
  298. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -0
  299. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +84 -0
  300. package/dist/types/excalidraw/context/tunnels.d.ts +21 -0
  301. package/dist/types/excalidraw/context/ui-appState.d.ts +4 -0
  302. package/dist/types/excalidraw/cursor.d.ts +5 -0
  303. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +8 -0
  304. package/dist/types/excalidraw/data/blob.d.ts +373 -0
  305. package/dist/types/excalidraw/data/encode.d.ts +55 -0
  306. package/dist/types/excalidraw/data/encryption.d.ts +9 -0
  307. package/dist/types/excalidraw/data/filesystem.d.ts +21 -0
  308. package/dist/types/excalidraw/data/image.d.ts +9 -0
  309. package/dist/types/excalidraw/data/index.d.ts +22 -0
  310. package/dist/types/excalidraw/data/json.d.ts +176 -0
  311. package/dist/types/excalidraw/data/library.d.ts +127 -0
  312. package/dist/types/excalidraw/data/reconcile.d.ts +7 -0
  313. package/dist/types/excalidraw/data/resave.d.ts +5 -0
  314. package/dist/types/excalidraw/data/restore.d.ts +41 -0
  315. package/dist/types/excalidraw/data/types.d.ts +48 -0
  316. package/dist/types/excalidraw/deburr.d.ts +1 -0
  317. package/dist/types/excalidraw/editor-jotai.d.ts +56 -0
  318. package/dist/types/excalidraw/eraser/index.d.ts +12 -0
  319. package/dist/types/excalidraw/errors.d.ts +43 -0
  320. package/dist/types/excalidraw/fonts/Cascadia/index.d.ts +2 -0
  321. package/dist/types/excalidraw/fonts/ComicShanns/index.d.ts +2 -0
  322. package/dist/types/excalidraw/fonts/Emoji/index.d.ts +2 -0
  323. package/dist/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +25 -0
  324. package/dist/types/excalidraw/fonts/Excalifont/index.d.ts +2 -0
  325. package/dist/types/excalidraw/fonts/Fonts.d.ts +79 -0
  326. package/dist/types/excalidraw/fonts/Helvetica/index.d.ts +2 -0
  327. package/dist/types/excalidraw/fonts/Liberation/index.d.ts +2 -0
  328. package/dist/types/excalidraw/fonts/Lilita/index.d.ts +2 -0
  329. package/dist/types/excalidraw/fonts/Nunito/index.d.ts +2 -0
  330. package/dist/types/excalidraw/fonts/Virgil/index.d.ts +2 -0
  331. package/dist/types/excalidraw/fonts/Xiaolai/index.d.ts +8 -0
  332. package/dist/types/excalidraw/fonts/index.d.ts +1 -0
  333. package/dist/types/excalidraw/gesture.d.ts +6 -0
  334. package/dist/types/excalidraw/history.d.ts +48 -0
  335. package/dist/types/excalidraw/hooks/useCallbackRefState.d.ts +1 -0
  336. package/dist/types/excalidraw/hooks/useCopiedIndicator.d.ts +5 -0
  337. package/dist/types/excalidraw/hooks/useCreatePortalContainer.d.ts +4 -0
  338. package/dist/types/excalidraw/hooks/useEmitter.d.ts +2 -0
  339. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +11 -0
  340. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +21 -0
  341. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -0
  342. package/dist/types/excalidraw/hooks/useStable.d.ts +1 -0
  343. package/dist/types/excalidraw/hooks/useStableCallback.d.ts +4 -0
  344. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  345. package/dist/types/excalidraw/hooks/useTransition.d.ts +2 -0
  346. package/dist/types/excalidraw/i18n.d.ts +24 -0
  347. package/dist/types/excalidraw/index.d.ts +47 -0
  348. package/dist/types/excalidraw/laser-trails.d.ts +20 -0
  349. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  350. package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
  351. package/dist/types/excalidraw/mermaid.d.ts +2 -0
  352. package/dist/types/excalidraw/polyfill.d.ts +2 -0
  353. package/dist/types/excalidraw/reactUtils.d.ts +14 -0
  354. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  355. package/dist/types/excalidraw/renderer/helpers.d.ts +16 -0
  356. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +14 -0
  357. package/dist/types/excalidraw/renderer/renderNewElementScene.d.ts +7 -0
  358. package/dist/types/excalidraw/renderer/renderSnaps.d.ts +2 -0
  359. package/dist/types/excalidraw/renderer/roundRect.d.ts +11 -0
  360. package/dist/types/excalidraw/renderer/staticScene.d.ts +14 -0
  361. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +5 -0
  362. package/dist/types/excalidraw/scene/Renderer.d.ts +30 -0
  363. package/dist/types/excalidraw/scene/export.d.ts +36 -0
  364. package/dist/types/excalidraw/scene/index.d.ts +4 -0
  365. package/dist/types/excalidraw/scene/normalize.d.ts +4 -0
  366. package/dist/types/excalidraw/scene/scroll.d.ts +18 -0
  367. package/dist/types/excalidraw/scene/scrollbars.d.ts +11 -0
  368. package/dist/types/excalidraw/scene/types.d.ts +137 -0
  369. package/dist/types/excalidraw/scene/zoom.d.ts +12 -0
  370. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  371. package/dist/types/excalidraw/snapping.d.ts +111 -0
  372. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +45 -0
  373. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +13 -0
  374. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +2 -0
  375. package/dist/types/excalidraw/subset/subset-main.d.ts +12 -0
  376. package/dist/types/excalidraw/subset/subset-shared.chunk.d.ts +32 -0
  377. package/dist/types/excalidraw/subset/subset-worker.chunk.d.ts +15 -0
  378. package/dist/types/excalidraw/subset/woff2/woff2-bindings.d.ts +31 -0
  379. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +14 -0
  380. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +2 -0
  381. package/dist/types/excalidraw/types.d.ts +726 -0
  382. package/dist/types/excalidraw/workers.d.ts +36 -0
  383. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +24 -0
  384. package/dist/types/math/src/angle.d.ts +19 -0
  385. package/dist/types/math/src/constants.d.ts +3 -0
  386. package/dist/types/math/src/curve.d.ts +74 -0
  387. package/dist/types/math/src/ellipse.d.ts +44 -0
  388. package/dist/types/math/src/index.d.ts +13 -0
  389. package/dist/types/math/src/line.d.ts +17 -0
  390. package/dist/types/math/src/point.d.ts +127 -0
  391. package/dist/types/math/src/polygon.d.ts +6 -0
  392. package/dist/types/math/src/range.d.ts +42 -0
  393. package/dist/types/math/src/rectangle.d.ts +5 -0
  394. package/dist/types/math/src/segment.d.ts +40 -0
  395. package/dist/types/math/src/triangle.d.ts +11 -0
  396. package/dist/types/math/src/types.d.ts +130 -0
  397. package/dist/types/math/src/utils.d.ts +7 -0
  398. package/dist/types/math/src/vector.d.ts +94 -0
  399. package/dist/types/utils/src/bbox.d.ts +9 -0
  400. package/dist/types/utils/src/export.d.ts +35 -0
  401. package/dist/types/utils/src/index.d.ts +4 -0
  402. package/dist/types/utils/src/shape.d.ts +58 -0
  403. package/dist/types/utils/src/withinBounds.d.ts +19 -0
  404. package/package.json +69 -0
@@ -0,0 +1,663 @@
1
+ import type { ExcalidrawLinearElement } from "@orangecatai/element/types";
2
+ export declare const actionToggleLinearEditor: {
3
+ name: "toggleLinearEditor";
4
+ category: string;
5
+ label: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
6
+ keywords: string[];
7
+ trackEvent: {
8
+ category: "element";
9
+ };
10
+ predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
11
+ perform(elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): {
12
+ appState: {
13
+ selectedLinearElement: {
14
+ isEditing: boolean;
15
+ elementId: import("@orangecatai/element/types").ExcalidrawElement["id"] & {
16
+ _brand: "excalidrawLinearElementId";
17
+ };
18
+ selectedPointsIndices: readonly number[] | null;
19
+ initialState: Readonly<{
20
+ prevSelectedPointsIndices: readonly number[] | null;
21
+ lastClickedPoint: number;
22
+ origin: Readonly<import("@orangecatai/math").GlobalPoint> | null;
23
+ segmentMidpoint: {
24
+ value: import("@orangecatai/math").GlobalPoint | null;
25
+ index: number | null;
26
+ added: boolean;
27
+ };
28
+ arrowStartIsInside: boolean;
29
+ altFocusPoint: Readonly<import("@orangecatai/math").GlobalPoint> | null;
30
+ }>;
31
+ isDragging: boolean;
32
+ lastUncommittedPoint: import("@orangecatai/math").LocalPoint | null;
33
+ lastCommittedPoint: import("@orangecatai/math").LocalPoint | null;
34
+ pointerOffset: Readonly<{
35
+ x: number;
36
+ y: number;
37
+ }>;
38
+ hoverPointIndex: number;
39
+ segmentMidPointHoveredCoords: import("@orangecatai/math").GlobalPoint | null;
40
+ hoveredFocusPointBinding: "start" | "end" | null;
41
+ draggedFocusPointBinding: "start" | "end" | null;
42
+ elbowed: boolean;
43
+ customLineAngle: number | null;
44
+ pointerDownState: never;
45
+ };
46
+ contextMenu: {
47
+ items: import("../components/ContextMenu").ContextMenuItems;
48
+ top: number;
49
+ left: number;
50
+ } | null;
51
+ showWelcomeScreen: boolean;
52
+ isLoading: boolean;
53
+ errorMessage: React.ReactNode;
54
+ activeEmbeddable: {
55
+ element: import("@orangecatai/element/types").NonDeletedExcalidrawElement;
56
+ state: "hover" | "active";
57
+ } | null;
58
+ newElement: import("@orangecatai/element/types").NonDeleted<import("@orangecatai/element/types").ExcalidrawNonSelectionElement> | null;
59
+ resizingElement: import("@orangecatai/element/types").NonDeletedExcalidrawElement | null;
60
+ multiElement: import("@orangecatai/element/types").NonDeleted<ExcalidrawLinearElement> | null;
61
+ selectionElement: import("@orangecatai/element/types").NonDeletedExcalidrawElement | null;
62
+ isBindingEnabled: boolean;
63
+ startBoundElement: import("@orangecatai/element/types").NonDeleted<import("@orangecatai/element/types").ExcalidrawBindableElement> | null;
64
+ suggestedBinding: {
65
+ element: import("@orangecatai/element/types").NonDeleted<import("@orangecatai/element/types").ExcalidrawBindableElement>;
66
+ midPoint?: import("@orangecatai/math").GlobalPoint;
67
+ } | null;
68
+ frameToHighlight: import("@orangecatai/element/types").NonDeleted<import("@orangecatai/element/types").ExcalidrawFrameLikeElement> | null;
69
+ frameRendering: {
70
+ enabled: boolean;
71
+ name: boolean;
72
+ outline: boolean;
73
+ clip: boolean;
74
+ };
75
+ editingFrame: string | null;
76
+ elementsToHighlight: import("@orangecatai/element/types").NonDeleted<import("@orangecatai/element/types").ExcalidrawElement>[] | null;
77
+ editingTextElement: import("@orangecatai/element/types").NonDeletedExcalidrawElement | null;
78
+ activeTool: {
79
+ lastActiveTool: import("../types").ActiveTool | null;
80
+ locked: boolean;
81
+ fromSelection: boolean;
82
+ } & import("../types").ActiveTool;
83
+ preferredSelectionTool: {
84
+ type: "selection" | "lasso";
85
+ initialized: boolean;
86
+ };
87
+ penMode: boolean;
88
+ penDetected: boolean;
89
+ exportBackground: boolean;
90
+ exportEmbedScene: boolean;
91
+ exportWithDarkMode: boolean;
92
+ exportScale: number;
93
+ currentItemStrokeColor: string;
94
+ currentItemBackgroundColor: string;
95
+ currentItemFillStyle: import("@orangecatai/element/types").ExcalidrawElement["fillStyle"];
96
+ currentItemStrokeWidth: number;
97
+ currentItemStrokeStyle: import("@orangecatai/element/types").ExcalidrawElement["strokeStyle"];
98
+ currentItemRoughness: number;
99
+ currentItemOpacity: number;
100
+ currentItemFontFamily: import("@orangecatai/element/types").FontFamilyValues;
101
+ currentItemFontSize: number;
102
+ currentItemTextAlign: import("@orangecatai/element/types").TextAlign;
103
+ currentItemStartArrowhead: import("@orangecatai/element/types").Arrowhead | null;
104
+ currentItemEndArrowhead: import("@orangecatai/element/types").Arrowhead | null;
105
+ currentHoveredFontFamily: import("@orangecatai/element/types").FontFamilyValues | null;
106
+ currentItemRoundness: import("@orangecatai/element/types").StrokeRoundness;
107
+ currentItemArrowType: "sharp" | "round" | "elbow";
108
+ viewBackgroundColor: string;
109
+ scrollX: number;
110
+ scrollY: number;
111
+ cursorButton: "up" | "down";
112
+ scrolledOutside: boolean;
113
+ name: string | null;
114
+ isResizing: boolean;
115
+ isRotating: boolean;
116
+ zoom: import("../types").Zoom;
117
+ openMenu: "canvas" | null;
118
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
119
+ openSidebar: {
120
+ name: import("../types").SidebarName;
121
+ tab?: import("../types").SidebarTabName;
122
+ } | null;
123
+ openDialog: null | {
124
+ name: "imageExport" | "help" | "jsonExport";
125
+ } | {
126
+ name: "ttd";
127
+ tab: "text-to-diagram" | "mermaid";
128
+ } | {
129
+ name: "commandPalette";
130
+ } | {
131
+ name: "settings";
132
+ } | {
133
+ name: "elementLinkSelector";
134
+ sourceElementId: import("@orangecatai/element/types").ExcalidrawElement["id"];
135
+ };
136
+ defaultSidebarDockedPreference: boolean;
137
+ lastPointerDownWith: import("@orangecatai/element/types").PointerType;
138
+ selectedElementIds: Readonly<{
139
+ [id: string]: true;
140
+ }>;
141
+ hoveredElementIds: Readonly<{
142
+ [id: string]: true;
143
+ }>;
144
+ previousSelectedElementIds: {
145
+ [id: string]: true;
146
+ };
147
+ selectedElementsAreBeingDragged: boolean;
148
+ shouldCacheIgnoreZoom: boolean;
149
+ toast: {
150
+ message: string;
151
+ closable?: boolean;
152
+ duration?: number;
153
+ } | null;
154
+ zenModeEnabled: boolean;
155
+ theme: import("@orangecatai/element/types").Theme;
156
+ gridSize: number;
157
+ gridStep: number;
158
+ gridModeEnabled: boolean;
159
+ viewModeEnabled: boolean;
160
+ selectedGroupIds: {
161
+ [groupId: string]: boolean;
162
+ };
163
+ editingGroupId: import("@orangecatai/element/types").GroupId | null;
164
+ width: number;
165
+ height: number;
166
+ offsetTop: number;
167
+ offsetLeft: number;
168
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
169
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
170
+ stats: {
171
+ open: boolean;
172
+ panels: number;
173
+ };
174
+ currentChartType: import("@orangecatai/element/types").ChartType;
175
+ pasteDialog: {
176
+ shown: false;
177
+ data: null;
178
+ } | {
179
+ shown: true;
180
+ data: import("../charts").Spreadsheet;
181
+ };
182
+ showHyperlinkPopup: false | "info" | "editor";
183
+ snapLines: readonly import("../snapping").SnapLine[];
184
+ originSnapOffset: {
185
+ x: number;
186
+ y: number;
187
+ } | null;
188
+ objectsSnapModeEnabled: boolean;
189
+ userToFollow: import("../types").UserToFollow | null;
190
+ followedBy: Set<import("../types").SocketId>;
191
+ isCropping: boolean;
192
+ croppingElementId: import("@orangecatai/element/types").ExcalidrawElement["id"] | null;
193
+ searchMatches: Readonly<{
194
+ focusedId: import("@orangecatai/element/types").ExcalidrawElement["id"] | null;
195
+ matches: readonly import("../types").SearchMatch[];
196
+ }> | null;
197
+ activeLockedId: string | null;
198
+ lockedMultiSelections: {
199
+ [groupId: string]: true;
200
+ };
201
+ bindMode: import("@orangecatai/element/types").BindMode;
202
+ };
203
+ captureUpdate: "IMMEDIATELY";
204
+ };
205
+ PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
206
+ } & {
207
+ keyTest?: undefined;
208
+ };
209
+ export declare const actionTogglePolygon: {
210
+ name: "togglePolygon";
211
+ category: string;
212
+ icon: import("react/jsx-runtime").JSX.Element;
213
+ keywords: string[];
214
+ label: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
215
+ trackEvent: {
216
+ category: "element";
217
+ };
218
+ predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
219
+ perform(elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
220
+ elements: ((Readonly<{
221
+ id: string;
222
+ x: number;
223
+ y: number;
224
+ strokeColor: string;
225
+ backgroundColor: string;
226
+ fillStyle: import("@orangecatai/element/types").FillStyle;
227
+ strokeWidth: number;
228
+ strokeStyle: import("@orangecatai/element/types").StrokeStyle;
229
+ roundness: null | {
230
+ type: import("@orangecatai/element/types").RoundnessType;
231
+ value?: number;
232
+ };
233
+ roughness: number;
234
+ opacity: number;
235
+ width: number;
236
+ height: number;
237
+ angle: import("@orangecatai/math").Radians;
238
+ seed: number;
239
+ version: number;
240
+ versionNonce: number;
241
+ index: import("@orangecatai/element/types").FractionalIndex | null;
242
+ isDeleted: boolean;
243
+ groupIds: readonly import("@orangecatai/element/types").GroupId[];
244
+ frameId: string | null;
245
+ boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
246
+ updated: number;
247
+ link: string | null;
248
+ locked: boolean;
249
+ customData?: Record<string, any>;
250
+ }> & Readonly<{
251
+ type: "line" | "arrow";
252
+ points: readonly import("@orangecatai/math").LocalPoint[];
253
+ startBinding: import("@orangecatai/element/types").FixedPointBinding | null;
254
+ endBinding: import("@orangecatai/element/types").FixedPointBinding | null;
255
+ startArrowhead: import("@orangecatai/element/types").Arrowhead | null;
256
+ endArrowhead: import("@orangecatai/element/types").Arrowhead | null;
257
+ }> & {
258
+ index: import("@orangecatai/element/types").FractionalIndex;
259
+ }) | (Readonly<{
260
+ id: string;
261
+ x: number;
262
+ y: number;
263
+ strokeColor: string;
264
+ backgroundColor: string;
265
+ fillStyle: import("@orangecatai/element/types").FillStyle;
266
+ strokeWidth: number;
267
+ strokeStyle: import("@orangecatai/element/types").StrokeStyle;
268
+ roundness: null | {
269
+ type: import("@orangecatai/element/types").RoundnessType;
270
+ value?: number;
271
+ };
272
+ roughness: number;
273
+ opacity: number;
274
+ width: number;
275
+ height: number;
276
+ angle: import("@orangecatai/math").Radians;
277
+ seed: number;
278
+ version: number;
279
+ versionNonce: number;
280
+ index: import("@orangecatai/element/types").FractionalIndex | null;
281
+ isDeleted: boolean;
282
+ groupIds: readonly import("@orangecatai/element/types").GroupId[];
283
+ frameId: string | null;
284
+ boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
285
+ updated: number;
286
+ link: string | null;
287
+ locked: boolean;
288
+ customData?: Record<string, any>;
289
+ }> & {
290
+ type: "selection";
291
+ } & {
292
+ index: import("@orangecatai/element/types").FractionalIndex;
293
+ }) | (Readonly<{
294
+ id: string;
295
+ x: number;
296
+ y: number;
297
+ strokeColor: string;
298
+ backgroundColor: string;
299
+ fillStyle: import("@orangecatai/element/types").FillStyle;
300
+ strokeWidth: number;
301
+ strokeStyle: import("@orangecatai/element/types").StrokeStyle;
302
+ roundness: null | {
303
+ type: import("@orangecatai/element/types").RoundnessType;
304
+ value?: number;
305
+ };
306
+ roughness: number;
307
+ opacity: number;
308
+ width: number;
309
+ height: number;
310
+ angle: import("@orangecatai/math").Radians;
311
+ seed: number;
312
+ version: number;
313
+ versionNonce: number;
314
+ index: import("@orangecatai/element/types").FractionalIndex | null;
315
+ isDeleted: boolean;
316
+ groupIds: readonly import("@orangecatai/element/types").GroupId[];
317
+ frameId: string | null;
318
+ boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
319
+ updated: number;
320
+ link: string | null;
321
+ locked: boolean;
322
+ customData?: Record<string, any>;
323
+ }> & {
324
+ type: "rectangle";
325
+ } & {
326
+ index: import("@orangecatai/element/types").FractionalIndex;
327
+ }) | (Readonly<{
328
+ id: string;
329
+ x: number;
330
+ y: number;
331
+ strokeColor: string;
332
+ backgroundColor: string;
333
+ fillStyle: import("@orangecatai/element/types").FillStyle;
334
+ strokeWidth: number;
335
+ strokeStyle: import("@orangecatai/element/types").StrokeStyle;
336
+ roundness: null | {
337
+ type: import("@orangecatai/element/types").RoundnessType;
338
+ value?: number;
339
+ };
340
+ roughness: number;
341
+ opacity: number;
342
+ width: number;
343
+ height: number;
344
+ angle: import("@orangecatai/math").Radians;
345
+ seed: number;
346
+ version: number;
347
+ versionNonce: number;
348
+ index: import("@orangecatai/element/types").FractionalIndex | null;
349
+ isDeleted: boolean;
350
+ groupIds: readonly import("@orangecatai/element/types").GroupId[];
351
+ frameId: string | null;
352
+ boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
353
+ updated: number;
354
+ link: string | null;
355
+ locked: boolean;
356
+ customData?: Record<string, any>;
357
+ }> & {
358
+ type: "diamond";
359
+ } & {
360
+ index: import("@orangecatai/element/types").FractionalIndex;
361
+ }) | (Readonly<{
362
+ id: string;
363
+ x: number;
364
+ y: number;
365
+ strokeColor: string;
366
+ backgroundColor: string;
367
+ fillStyle: import("@orangecatai/element/types").FillStyle;
368
+ strokeWidth: number;
369
+ strokeStyle: import("@orangecatai/element/types").StrokeStyle;
370
+ roundness: null | {
371
+ type: import("@orangecatai/element/types").RoundnessType;
372
+ value?: number;
373
+ };
374
+ roughness: number;
375
+ opacity: number;
376
+ width: number;
377
+ height: number;
378
+ angle: import("@orangecatai/math").Radians;
379
+ seed: number;
380
+ version: number;
381
+ versionNonce: number;
382
+ index: import("@orangecatai/element/types").FractionalIndex | null;
383
+ isDeleted: boolean;
384
+ groupIds: readonly import("@orangecatai/element/types").GroupId[];
385
+ frameId: string | null;
386
+ boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
387
+ updated: number;
388
+ link: string | null;
389
+ locked: boolean;
390
+ customData?: Record<string, any>;
391
+ }> & {
392
+ type: "ellipse";
393
+ } & {
394
+ index: import("@orangecatai/element/types").FractionalIndex;
395
+ }) | (Readonly<{
396
+ id: string;
397
+ x: number;
398
+ y: number;
399
+ strokeColor: string;
400
+ backgroundColor: string;
401
+ fillStyle: import("@orangecatai/element/types").FillStyle;
402
+ strokeWidth: number;
403
+ strokeStyle: import("@orangecatai/element/types").StrokeStyle;
404
+ roundness: null | {
405
+ type: import("@orangecatai/element/types").RoundnessType;
406
+ value?: number;
407
+ };
408
+ roughness: number;
409
+ opacity: number;
410
+ width: number;
411
+ height: number;
412
+ angle: import("@orangecatai/math").Radians;
413
+ seed: number;
414
+ version: number;
415
+ versionNonce: number;
416
+ index: import("@orangecatai/element/types").FractionalIndex | null;
417
+ isDeleted: boolean;
418
+ groupIds: readonly import("@orangecatai/element/types").GroupId[];
419
+ frameId: string | null;
420
+ boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
421
+ updated: number;
422
+ link: string | null;
423
+ locked: boolean;
424
+ customData?: Record<string, any>;
425
+ }> & Readonly<{
426
+ type: "embeddable";
427
+ }> & {
428
+ index: import("@orangecatai/element/types").FractionalIndex;
429
+ }) | (Readonly<{
430
+ id: string;
431
+ x: number;
432
+ y: number;
433
+ strokeColor: string;
434
+ backgroundColor: string;
435
+ fillStyle: import("@orangecatai/element/types").FillStyle;
436
+ strokeWidth: number;
437
+ strokeStyle: import("@orangecatai/element/types").StrokeStyle;
438
+ roundness: null | {
439
+ type: import("@orangecatai/element/types").RoundnessType;
440
+ value?: number;
441
+ };
442
+ roughness: number;
443
+ opacity: number;
444
+ width: number;
445
+ height: number;
446
+ angle: import("@orangecatai/math").Radians;
447
+ seed: number;
448
+ version: number;
449
+ versionNonce: number;
450
+ index: import("@orangecatai/element/types").FractionalIndex | null;
451
+ isDeleted: boolean;
452
+ groupIds: readonly import("@orangecatai/element/types").GroupId[];
453
+ frameId: string | null;
454
+ boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
455
+ updated: number;
456
+ link: string | null;
457
+ locked: boolean;
458
+ customData?: Record<string, any>;
459
+ }> & Readonly<{
460
+ type: "iframe";
461
+ customData?: {
462
+ generationData?: import("@orangecatai/element/types").MagicGenerationData;
463
+ };
464
+ }> & {
465
+ index: import("@orangecatai/element/types").FractionalIndex;
466
+ }) | (Readonly<{
467
+ id: string;
468
+ x: number;
469
+ y: number;
470
+ strokeColor: string;
471
+ backgroundColor: string;
472
+ fillStyle: import("@orangecatai/element/types").FillStyle;
473
+ strokeWidth: number;
474
+ strokeStyle: import("@orangecatai/element/types").StrokeStyle;
475
+ roundness: null | {
476
+ type: import("@orangecatai/element/types").RoundnessType;
477
+ value?: number;
478
+ };
479
+ roughness: number;
480
+ opacity: number;
481
+ width: number;
482
+ height: number;
483
+ angle: import("@orangecatai/math").Radians;
484
+ seed: number;
485
+ version: number;
486
+ versionNonce: number;
487
+ index: import("@orangecatai/element/types").FractionalIndex | null;
488
+ isDeleted: boolean;
489
+ groupIds: readonly import("@orangecatai/element/types").GroupId[];
490
+ frameId: string | null;
491
+ boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
492
+ updated: number;
493
+ link: string | null;
494
+ locked: boolean;
495
+ customData?: Record<string, any>;
496
+ }> & Readonly<{
497
+ type: "image";
498
+ fileId: import("@orangecatai/element/types").FileId | null;
499
+ status: "pending" | "saved" | "error";
500
+ scale: [number, number];
501
+ crop: import("@orangecatai/element/types").ImageCrop | null;
502
+ }> & {
503
+ index: import("@orangecatai/element/types").FractionalIndex;
504
+ }) | (Readonly<{
505
+ id: string;
506
+ x: number;
507
+ y: number;
508
+ strokeColor: string;
509
+ backgroundColor: string;
510
+ fillStyle: import("@orangecatai/element/types").FillStyle;
511
+ strokeWidth: number;
512
+ strokeStyle: import("@orangecatai/element/types").StrokeStyle;
513
+ roundness: null | {
514
+ type: import("@orangecatai/element/types").RoundnessType;
515
+ value?: number;
516
+ };
517
+ roughness: number;
518
+ opacity: number;
519
+ width: number;
520
+ height: number;
521
+ angle: import("@orangecatai/math").Radians;
522
+ seed: number;
523
+ version: number;
524
+ versionNonce: number;
525
+ index: import("@orangecatai/element/types").FractionalIndex | null;
526
+ isDeleted: boolean;
527
+ groupIds: readonly import("@orangecatai/element/types").GroupId[];
528
+ frameId: string | null;
529
+ boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
530
+ updated: number;
531
+ link: string | null;
532
+ locked: boolean;
533
+ customData?: Record<string, any>;
534
+ }> & {
535
+ type: "frame";
536
+ name: string | null;
537
+ } & {
538
+ index: import("@orangecatai/element/types").FractionalIndex;
539
+ }) | (Readonly<{
540
+ id: string;
541
+ x: number;
542
+ y: number;
543
+ strokeColor: string;
544
+ backgroundColor: string;
545
+ fillStyle: import("@orangecatai/element/types").FillStyle;
546
+ strokeWidth: number;
547
+ strokeStyle: import("@orangecatai/element/types").StrokeStyle;
548
+ roundness: null | {
549
+ type: import("@orangecatai/element/types").RoundnessType;
550
+ value?: number;
551
+ };
552
+ roughness: number;
553
+ opacity: number;
554
+ width: number;
555
+ height: number;
556
+ angle: import("@orangecatai/math").Radians;
557
+ seed: number;
558
+ version: number;
559
+ versionNonce: number;
560
+ index: import("@orangecatai/element/types").FractionalIndex | null;
561
+ isDeleted: boolean;
562
+ groupIds: readonly import("@orangecatai/element/types").GroupId[];
563
+ frameId: string | null;
564
+ boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
565
+ updated: number;
566
+ link: string | null;
567
+ locked: boolean;
568
+ customData?: Record<string, any>;
569
+ }> & {
570
+ type: "magicframe";
571
+ name: string | null;
572
+ } & {
573
+ index: import("@orangecatai/element/types").FractionalIndex;
574
+ }) | (Readonly<{
575
+ id: string;
576
+ x: number;
577
+ y: number;
578
+ strokeColor: string;
579
+ backgroundColor: string;
580
+ fillStyle: import("@orangecatai/element/types").FillStyle;
581
+ strokeWidth: number;
582
+ strokeStyle: import("@orangecatai/element/types").StrokeStyle;
583
+ roundness: null | {
584
+ type: import("@orangecatai/element/types").RoundnessType;
585
+ value?: number;
586
+ };
587
+ roughness: number;
588
+ opacity: number;
589
+ width: number;
590
+ height: number;
591
+ angle: import("@orangecatai/math").Radians;
592
+ seed: number;
593
+ version: number;
594
+ versionNonce: number;
595
+ index: import("@orangecatai/element/types").FractionalIndex | null;
596
+ isDeleted: boolean;
597
+ groupIds: readonly import("@orangecatai/element/types").GroupId[];
598
+ frameId: string | null;
599
+ boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
600
+ updated: number;
601
+ link: string | null;
602
+ locked: boolean;
603
+ customData?: Record<string, any>;
604
+ }> & Readonly<{
605
+ type: "text";
606
+ fontSize: number;
607
+ fontFamily: import("@orangecatai/element/types").FontFamilyValues;
608
+ text: string;
609
+ textAlign: import("@orangecatai/element/types").TextAlign;
610
+ verticalAlign: import("@orangecatai/element/types").VerticalAlign;
611
+ containerId: import("@orangecatai/element/types").ExcalidrawGenericElement["id"] | null;
612
+ originalText: string;
613
+ autoResize: boolean;
614
+ lineHeight: number & {
615
+ _brand: "unitlessLineHeight";
616
+ };
617
+ }> & {
618
+ index: import("@orangecatai/element/types").FractionalIndex;
619
+ }) | (Readonly<{
620
+ id: string;
621
+ x: number;
622
+ y: number;
623
+ strokeColor: string;
624
+ backgroundColor: string;
625
+ fillStyle: import("@orangecatai/element/types").FillStyle;
626
+ strokeWidth: number;
627
+ strokeStyle: import("@orangecatai/element/types").StrokeStyle;
628
+ roundness: null | {
629
+ type: import("@orangecatai/element/types").RoundnessType;
630
+ value?: number;
631
+ };
632
+ roughness: number;
633
+ opacity: number;
634
+ width: number;
635
+ height: number;
636
+ angle: import("@orangecatai/math").Radians;
637
+ seed: number;
638
+ version: number;
639
+ versionNonce: number;
640
+ index: import("@orangecatai/element/types").FractionalIndex | null;
641
+ isDeleted: boolean;
642
+ groupIds: readonly import("@orangecatai/element/types").GroupId[];
643
+ frameId: string | null;
644
+ boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
645
+ updated: number;
646
+ link: string | null;
647
+ locked: boolean;
648
+ customData?: Record<string, any>;
649
+ }> & Readonly<{
650
+ type: "freedraw";
651
+ points: readonly import("@orangecatai/math").LocalPoint[];
652
+ pressures: readonly number[];
653
+ simulatePressure: boolean;
654
+ }> & {
655
+ index: import("@orangecatai/element/types").FractionalIndex;
656
+ }))[];
657
+ appState: Readonly<import("../types").AppState>;
658
+ captureUpdate: "IMMEDIATELY";
659
+ };
660
+ PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
661
+ } & {
662
+ keyTest?: undefined;
663
+ };