@nextcloud/excalidraw-common 0.18.0-4e1c0ab

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