@univerjs-pro/boards-ui 1.0.0-alpha.3

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 (292) hide show
  1. package/README.md +46 -0
  2. package/lib/cjs/index.js +1 -0
  3. package/lib/cjs/locale/ar-SA.js +1 -0
  4. package/lib/cjs/locale/ca-ES.js +1 -0
  5. package/lib/cjs/locale/de-DE.js +1 -0
  6. package/lib/cjs/locale/en-US.js +1 -0
  7. package/lib/cjs/locale/es-ES.js +1 -0
  8. package/lib/cjs/locale/fa-IR.js +1 -0
  9. package/lib/cjs/locale/fr-FR.js +1 -0
  10. package/lib/cjs/locale/id-ID.js +1 -0
  11. package/lib/cjs/locale/it-IT.js +1 -0
  12. package/lib/cjs/locale/ja-JP.js +1 -0
  13. package/lib/cjs/locale/ko-KR.js +1 -0
  14. package/lib/cjs/locale/pl-PL.js +1 -0
  15. package/lib/cjs/locale/pt-BR.js +1 -0
  16. package/lib/cjs/locale/ru-RU.js +1 -0
  17. package/lib/cjs/locale/sk-SK.js +1 -0
  18. package/lib/cjs/locale/vi-VN.js +1 -0
  19. package/lib/cjs/locale/zh-CN.js +1 -0
  20. package/lib/cjs/locale/zh-HK.js +1 -0
  21. package/lib/cjs/locale/zh-TW.js +1 -0
  22. package/lib/cjs/shape-preset-labels-C4G0G9GI.js +1 -0
  23. package/lib/es/index.js +1 -0
  24. package/lib/es/locale/ar-SA.js +1 -0
  25. package/lib/es/locale/ca-ES.js +1 -0
  26. package/lib/es/locale/de-DE.js +1 -0
  27. package/lib/es/locale/en-US.js +1 -0
  28. package/lib/es/locale/es-ES.js +1 -0
  29. package/lib/es/locale/fa-IR.js +1 -0
  30. package/lib/es/locale/fr-FR.js +1 -0
  31. package/lib/es/locale/id-ID.js +1 -0
  32. package/lib/es/locale/it-IT.js +1 -0
  33. package/lib/es/locale/ja-JP.js +1 -0
  34. package/lib/es/locale/ko-KR.js +1 -0
  35. package/lib/es/locale/pl-PL.js +1 -0
  36. package/lib/es/locale/pt-BR.js +1 -0
  37. package/lib/es/locale/ru-RU.js +1 -0
  38. package/lib/es/locale/sk-SK.js +1 -0
  39. package/lib/es/locale/vi-VN.js +1 -0
  40. package/lib/es/locale/zh-CN.js +1 -0
  41. package/lib/es/locale/zh-HK.js +1 -0
  42. package/lib/es/locale/zh-TW.js +1 -0
  43. package/lib/es/shape-preset-labels-092BdVw3.js +1 -0
  44. package/lib/index.css +1229 -0
  45. package/lib/index.js +1 -0
  46. package/lib/locale/ar-SA.js +1 -0
  47. package/lib/locale/ca-ES.js +1 -0
  48. package/lib/locale/de-DE.js +1 -0
  49. package/lib/locale/en-US.js +1 -0
  50. package/lib/locale/es-ES.js +1 -0
  51. package/lib/locale/fa-IR.js +1 -0
  52. package/lib/locale/fr-FR.js +1 -0
  53. package/lib/locale/id-ID.js +1 -0
  54. package/lib/locale/it-IT.js +1 -0
  55. package/lib/locale/ja-JP.js +1 -0
  56. package/lib/locale/ko-KR.js +1 -0
  57. package/lib/locale/pl-PL.js +1 -0
  58. package/lib/locale/pt-BR.js +1 -0
  59. package/lib/locale/ru-RU.js +1 -0
  60. package/lib/locale/sk-SK.js +1 -0
  61. package/lib/locale/vi-VN.js +1 -0
  62. package/lib/locale/zh-CN.js +1 -0
  63. package/lib/locale/zh-HK.js +1 -0
  64. package/lib/locale/zh-TW.js +1 -0
  65. package/lib/shape-preset-labels-092BdVw3.js +1 -0
  66. package/lib/types/commands/operations/board-container-child-contextmenu.operation.d.ts +18 -0
  67. package/lib/types/commands/operations/board-container-contextmenu.operation.d.ts +18 -0
  68. package/lib/types/commands/operations/board-selection.operation.d.ts +14 -0
  69. package/lib/types/commands/operations/board-swimlane-contextmenu.operation.d.ts +23 -0
  70. package/lib/types/common/board-shortcuts.d.ts +98 -0
  71. package/lib/types/common/connector-presets.d.ts +22 -0
  72. package/lib/types/common/connector-routing-preference.d.ts +11 -0
  73. package/lib/types/common/settings-actions.d.ts +26 -0
  74. package/lib/types/common/shape-presets.d.ts +58 -0
  75. package/lib/types/common/sticky-colors.d.ts +4 -0
  76. package/lib/types/common/theme-presets.d.ts +2 -0
  77. package/lib/types/common/toolbar-tools.d.ts +17 -0
  78. package/lib/types/components/object-list-panel/board-object-list-state.d.ts +27 -0
  79. package/lib/types/config/config.d.ts +92 -0
  80. package/lib/types/const.d.ts +26 -0
  81. package/lib/types/controllers/board-clipboard-shortcut.controller.d.ts +25 -0
  82. package/lib/types/controllers/board-connector-floating-toolbar.render-controller.d.ts +30 -0
  83. package/lib/types/controllers/board-connector-interaction.render-controller.d.ts +158 -0
  84. package/lib/types/controllers/board-container-membership.render-controller.d.ts +27 -0
  85. package/lib/types/controllers/board-element-selection.controller.d.ts +63 -0
  86. package/lib/types/controllers/board-element-transform.controller.d.ts +52 -0
  87. package/lib/types/controllers/board-element-transformer-config.util.d.ts +27 -0
  88. package/lib/types/controllers/board-grid.render-controller.d.ts +14 -0
  89. package/lib/types/controllers/board-grouping-shortcut.controller.d.ts +20 -0
  90. package/lib/types/controllers/board-history-shortcut.controller.d.ts +16 -0
  91. package/lib/types/controllers/board-ink-interaction.render-controller.d.ts +124 -0
  92. package/lib/types/controllers/board-layout-shortcut.controller.d.ts +20 -0
  93. package/lib/types/controllers/board-mermaid-import.controller.d.ts +9 -0
  94. package/lib/types/controllers/board-order-shortcut.controller.d.ts +16 -0
  95. package/lib/types/controllers/board-pending-insert.render-controller.d.ts +27 -0
  96. package/lib/types/controllers/board-render-object-cleanup.util.d.ts +7 -0
  97. package/lib/types/controllers/board-render.controller.d.ts +36 -0
  98. package/lib/types/controllers/board-selection-overlay.render-controller.d.ts +30 -0
  99. package/lib/types/controllers/board-selection-shortcut.controller.d.ts +20 -0
  100. package/lib/types/controllers/board-settings-shortcut.controller.d.ts +20 -0
  101. package/lib/types/controllers/board-shape-adjust.render-controller.d.ts +68 -0
  102. package/lib/types/controllers/board-shape-floating-toolbar.render-controller.d.ts +29 -0
  103. package/lib/types/controllers/board-shape-text-float-menu.render-controller.d.ts +9 -0
  104. package/lib/types/controllers/board-swimlane-lane-shortcut.controller.d.ts +23 -0
  105. package/lib/types/controllers/board-swimlane-resize.render-controller.d.ts +33 -0
  106. package/lib/types/controllers/board-text-editing.render-controller.d.ts +46 -0
  107. package/lib/types/controllers/board-theme-follow-univer.controller.d.ts +10 -0
  108. package/lib/types/controllers/board-tool-shortcut.controller.d.ts +22 -0
  109. package/lib/types/controllers/board-ui.controller.d.ts +9 -0
  110. package/lib/types/controllers/board-view-shortcut.controller.d.ts +29 -0
  111. package/lib/types/controllers/board-viewport-input.render-controller.d.ts +27 -0
  112. package/lib/types/index.d.ts +27 -0
  113. package/lib/types/locale/ar-SA.d.ts +3 -0
  114. package/lib/types/locale/ca-ES.d.ts +3 -0
  115. package/lib/types/locale/de-DE.d.ts +3 -0
  116. package/lib/types/locale/en-US.d.ts +659 -0
  117. package/lib/types/locale/es-ES.d.ts +3 -0
  118. package/lib/types/locale/fa-IR.d.ts +3 -0
  119. package/lib/types/locale/fr-FR.d.ts +3 -0
  120. package/lib/types/locale/id-ID.d.ts +3 -0
  121. package/lib/types/locale/it-IT.d.ts +3 -0
  122. package/lib/types/locale/ja-JP.d.ts +3 -0
  123. package/lib/types/locale/ko-KR.d.ts +3 -0
  124. package/lib/types/locale/pl-PL.d.ts +3 -0
  125. package/lib/types/locale/pt-BR.d.ts +3 -0
  126. package/lib/types/locale/ru-RU.d.ts +3 -0
  127. package/lib/types/locale/shared/shape-preset-labels.d.ts +153 -0
  128. package/lib/types/locale/sk-SK.d.ts +3 -0
  129. package/lib/types/locale/types.d.ts +3 -0
  130. package/lib/types/locale/vi-VN.d.ts +3 -0
  131. package/lib/types/locale/zh-CN.d.ts +3 -0
  132. package/lib/types/locale/zh-HK.d.ts +3 -0
  133. package/lib/types/locale/zh-TW.d.ts +3 -0
  134. package/lib/types/menu/board-container-child-contextmenu.menu.d.ts +5 -0
  135. package/lib/types/menu/board-container-child-contextmenu.schema.d.ts +2 -0
  136. package/lib/types/menu/board-container-contextmenu.menu.d.ts +9 -0
  137. package/lib/types/menu/board-container-contextmenu.schema.d.ts +2 -0
  138. package/lib/types/menu/board-contextmenu.d.ts +7 -0
  139. package/lib/types/menu/board-swimlane-contextmenu.menu.d.ts +8 -0
  140. package/lib/types/menu/board-swimlane-contextmenu.schema.d.ts +2 -0
  141. package/lib/types/plugin.d.ts +21 -0
  142. package/lib/types/render-adapters/board-element-render-adapter.d.ts +63 -0
  143. package/lib/types/render-objects/board-adjust-point-object.d.ts +27 -0
  144. package/lib/types/render-objects/board-connector-affordance-object.d.ts +21 -0
  145. package/lib/types/render-objects/board-connector-endpoint-object.d.ts +29 -0
  146. package/lib/types/render-objects/board-connector-object.d.ts +58 -0
  147. package/lib/types/render-objects/board-connector-quick-connect-preview-object.d.ts +22 -0
  148. package/lib/types/render-objects/board-connector-snap-object.d.ts +16 -0
  149. package/lib/types/render-objects/board-connector-waypoint-object.d.ts +51 -0
  150. package/lib/types/render-objects/board-container-membership-object.d.ts +19 -0
  151. package/lib/types/render-objects/board-document-text-render.util.d.ts +61 -0
  152. package/lib/types/render-objects/board-grid-object.d.ts +17 -0
  153. package/lib/types/render-objects/board-guide-object.d.ts +29 -0
  154. package/lib/types/render-objects/board-image-object.d.ts +16 -0
  155. package/lib/types/render-objects/board-ink-draft-object.d.ts +16 -0
  156. package/lib/types/render-objects/board-ink-eraser-draft-object.d.ts +18 -0
  157. package/lib/types/render-objects/board-ink-pen-editor-object.d.ts +39 -0
  158. package/lib/types/render-objects/board-ink-stage-action-button-object.d.ts +32 -0
  159. package/lib/types/render-objects/board-ink-tool-cursor-object.d.ts +19 -0
  160. package/lib/types/render-objects/board-pending-insert-object.d.ts +35 -0
  161. package/lib/types/render-objects/board-selection-marquee-object.d.ts +28 -0
  162. package/lib/types/render-objects/board-shape-object.d.ts +75 -0
  163. package/lib/types/render-objects/board-swimlane-resize-object.d.ts +33 -0
  164. package/lib/types/services/board-canvas-pop-manager.service.d.ts +22 -0
  165. package/lib/types/services/board-clipboard-resource-adapter.service.d.ts +54 -0
  166. package/lib/types/services/board-clipboard.service.d.ts +54 -0
  167. package/lib/types/services/board-connector-tool.service.d.ts +11 -0
  168. package/lib/types/services/board-container-rename.service.d.ts +20 -0
  169. package/lib/types/services/board-container-tool.service.d.ts +12 -0
  170. package/lib/types/services/board-dom-layer.service.d.ts +31 -0
  171. package/lib/types/services/board-element-edit.service.d.ts +124 -0
  172. package/lib/types/services/board-element-insert.service.d.ts +40 -0
  173. package/lib/types/services/board-element-state.service.d.ts +83 -0
  174. package/lib/types/services/board-find.service.d.ts +22 -0
  175. package/lib/types/services/board-image-insert.service.d.ts +23 -0
  176. package/lib/types/services/board-ink-edit.service.d.ts +33 -0
  177. package/lib/types/services/board-ink-pen-adapter.service.d.ts +22 -0
  178. package/lib/types/services/board-mermaid-import.service.d.ts +82 -0
  179. package/lib/types/services/board-render-scene.service.d.ts +9 -0
  180. package/lib/types/services/board-selection-overlay.service.d.ts +13 -0
  181. package/lib/types/services/board-selection.service.d.ts +18 -0
  182. package/lib/types/services/board-settings-action.service.d.ts +21 -0
  183. package/lib/types/services/board-settings.service.d.ts +13 -0
  184. package/lib/types/services/board-shape-intrinsic-size.service.d.ts +34 -0
  185. package/lib/types/services/board-side-panel.service.d.ts +37 -0
  186. package/lib/types/services/board-swimlane-lane-rename.service.d.ts +18 -0
  187. package/lib/types/services/board-text-editing.service.d.ts +45 -0
  188. package/lib/types/services/board-tool.service.d.ts +85 -0
  189. package/lib/types/services/board-ui-state.service.d.ts +98 -0
  190. package/lib/types/services/board-viewport.service.d.ts +15 -0
  191. package/lib/types/utils/board-alignment-guides.util.d.ts +27 -0
  192. package/lib/types/utils/board-clipboard.util.d.ts +40 -0
  193. package/lib/types/utils/board-connector-adjacency.util.d.ts +7 -0
  194. package/lib/types/utils/board-connector-affordance.util.d.ts +15 -0
  195. package/lib/types/utils/board-connector-hit-test.util.d.ts +14 -0
  196. package/lib/types/utils/board-connector-label.util.d.ts +17 -0
  197. package/lib/types/utils/board-connector-marker-anchor.util.d.ts +17 -0
  198. package/lib/types/utils/board-connector-marker.util.d.ts +13 -0
  199. package/lib/types/utils/board-connector-move.util.d.ts +8 -0
  200. package/lib/types/utils/board-connector-quick-connect.util.d.ts +22 -0
  201. package/lib/types/utils/board-connector-render-bounds.util.d.ts +11 -0
  202. package/lib/types/utils/board-connector-router.util.d.ts +62 -0
  203. package/lib/types/utils/board-connector-routing.util.d.ts +53 -0
  204. package/lib/types/utils/board-connector-selection.util.d.ts +10 -0
  205. package/lib/types/utils/board-connector-snap-highlight.util.d.ts +10 -0
  206. package/lib/types/utils/board-connector-snap.util.d.ts +25 -0
  207. package/lib/types/utils/board-connector-waypoint.util.d.ts +71 -0
  208. package/lib/types/utils/board-container-membership-overlay.util.d.ts +19 -0
  209. package/lib/types/utils/board-container-membership-update.util.d.ts +10 -0
  210. package/lib/types/utils/board-container-spatial-index.util.d.ts +16 -0
  211. package/lib/types/utils/board-container-target.util.d.ts +17 -0
  212. package/lib/types/utils/board-container-title-label.util.d.ts +20 -0
  213. package/lib/types/utils/board-container-toolbar.util.d.ts +40 -0
  214. package/lib/types/utils/board-draft-insert-position.util.d.ts +13 -0
  215. package/lib/types/utils/board-find.util.d.ts +25 -0
  216. package/lib/types/utils/board-floating-toolbar-anchor.util.d.ts +2 -0
  217. package/lib/types/utils/board-free-polyline-draft.util.d.ts +24 -0
  218. package/lib/types/utils/board-grid.util.d.ts +21 -0
  219. package/lib/types/utils/board-image-file.util.d.ts +11 -0
  220. package/lib/types/utils/board-image.util.d.ts +31 -0
  221. package/lib/types/utils/board-insert-config.util.d.ts +32 -0
  222. package/lib/types/utils/board-insert.util.d.ts +23 -0
  223. package/lib/types/utils/board-interaction-config.util.d.ts +19 -0
  224. package/lib/types/utils/board-mermaid-preview.util.d.ts +4 -0
  225. package/lib/types/utils/board-render-dirty.util.d.ts +8 -0
  226. package/lib/types/utils/board-render-page.util.d.ts +19 -0
  227. package/lib/types/utils/board-scene-input-lock.util.d.ts +7 -0
  228. package/lib/types/utils/board-selection-delete.util.d.ts +20 -0
  229. package/lib/types/utils/board-selection-geometry.util.d.ts +31 -0
  230. package/lib/types/utils/board-selection-hit-test.util.d.ts +17 -0
  231. package/lib/types/utils/board-selection-interaction.util.d.ts +23 -0
  232. package/lib/types/utils/board-selection-move.util.d.ts +17 -0
  233. package/lib/types/utils/board-selection-normalize.util.d.ts +3 -0
  234. package/lib/types/utils/board-selection-overlay.util.d.ts +15 -0
  235. package/lib/types/utils/board-selection-resize.util.d.ts +6 -0
  236. package/lib/types/utils/board-shape-editor.util.d.ts +9 -0
  237. package/lib/types/utils/board-shape-outline.util.d.ts +53 -0
  238. package/lib/types/utils/board-shape-text-document.util.d.ts +20 -0
  239. package/lib/types/utils/board-shape-theme.util.d.ts +4 -0
  240. package/lib/types/utils/board-shortcut-preconditions.util.d.ts +3 -0
  241. package/lib/types/utils/board-snap-session.util.d.ts +62 -0
  242. package/lib/types/utils/board-spacing-guides.util.d.ts +24 -0
  243. package/lib/types/utils/board-swimlane-focus.util.d.ts +11 -0
  244. package/lib/types/utils/board-swimlane-resize.util.d.ts +25 -0
  245. package/lib/types/utils/board-view-shortcut.util.d.ts +40 -0
  246. package/lib/types/utils/board-viewport-input.util.d.ts +35 -0
  247. package/lib/types/utils/board-viewport.util.d.ts +45 -0
  248. package/lib/types/views/BoardCanvasView.d.ts +1 -0
  249. package/lib/types/views/BoardConnectorFloatingToolbar.d.ts +17 -0
  250. package/lib/types/views/BoardConnectorQuickShapeMenu.d.ts +12 -0
  251. package/lib/types/views/BoardContainerRenamePopup.d.ts +6 -0
  252. package/lib/types/views/BoardDomLayerView.d.ts +8 -0
  253. package/lib/types/views/BoardFloatingPanelLayer.d.ts +1 -0
  254. package/lib/types/views/BoardFloatingToolPanel.d.ts +98 -0
  255. package/lib/types/views/BoardLeftToolbar.d.ts +1 -0
  256. package/lib/types/views/BoardMermaidImportDialog.d.ts +1 -0
  257. package/lib/types/views/BoardMindMapTemplateThumbnailIcon.d.ts +8 -0
  258. package/lib/types/views/BoardObjectListPanel.d.ts +1 -0
  259. package/lib/types/views/BoardSettingsMenu.d.ts +2 -0
  260. package/lib/types/views/BoardShapeFloatingToolbar.d.ts +16 -0
  261. package/lib/types/views/BoardShapePanel.d.ts +1 -0
  262. package/lib/types/views/BoardShapeTextEditorContainer.d.ts +24 -0
  263. package/lib/types/views/BoardShapeTextFloatToolbar.d.ts +1 -0
  264. package/lib/types/views/BoardShortcutHelpDrawer.d.ts +1 -0
  265. package/lib/types/views/BoardSwimlaneLaneRenamePopup.d.ts +6 -0
  266. package/lib/types/views/BoardTableSizePicker.d.ts +18 -0
  267. package/lib/types/views/BoardWorkbench.d.ts +1 -0
  268. package/lib/types/views/BoardZoomControls.d.ts +1 -0
  269. package/lib/types/views/board-floating-panel-layout.d.ts +33 -0
  270. package/lib/types/views/use-board-palette-pending-insert-drag.d.ts +9 -0
  271. package/lib/types/views/use-board-panel-outside-pointer-down.d.ts +5 -0
  272. package/lib/umd/index.js +1 -0
  273. package/lib/umd/locale/ar-SA.js +1 -0
  274. package/lib/umd/locale/ca-ES.js +1 -0
  275. package/lib/umd/locale/de-DE.js +1 -0
  276. package/lib/umd/locale/en-US.js +1 -0
  277. package/lib/umd/locale/es-ES.js +1 -0
  278. package/lib/umd/locale/fa-IR.js +1 -0
  279. package/lib/umd/locale/fr-FR.js +1 -0
  280. package/lib/umd/locale/id-ID.js +1 -0
  281. package/lib/umd/locale/it-IT.js +1 -0
  282. package/lib/umd/locale/ja-JP.js +1 -0
  283. package/lib/umd/locale/ko-KR.js +1 -0
  284. package/lib/umd/locale/pl-PL.js +1 -0
  285. package/lib/umd/locale/pt-BR.js +1 -0
  286. package/lib/umd/locale/ru-RU.js +1 -0
  287. package/lib/umd/locale/sk-SK.js +1 -0
  288. package/lib/umd/locale/vi-VN.js +1 -0
  289. package/lib/umd/locale/zh-CN.js +1 -0
  290. package/lib/umd/locale/zh-HK.js +1 -0
  291. package/lib/umd/locale/zh-TW.js +1 -0
  292. package/package.json +97 -0
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,153 @@
1
+ export declare const BOARD_EXTRA_SHAPE_PRESET_LABELS: {
2
+ readonly snip1Rect: "Single snip corner rectangle";
3
+ readonly snip2SameRect: "Same-side snip corner rectangle";
4
+ readonly snip2DiagRect: "Diagonal snip corner rectangle";
5
+ readonly snipRoundRect: "Snip and round corner rectangle";
6
+ readonly round1Rect: "Single round corner rectangle";
7
+ readonly round2SameRect: "Same-side round corner rectangle";
8
+ readonly round2DiagRect: "Diagonal round corner rectangle";
9
+ readonly heptagon: "Heptagon";
10
+ readonly decagon: "Decagon";
11
+ readonly dodecagon: "Dodecagon";
12
+ readonly pie: "Pie";
13
+ readonly chord: "Chord";
14
+ readonly teardrop: "Teardrop";
15
+ readonly frame: "Frame";
16
+ readonly halfFrame: "Half frame";
17
+ readonly corner: "Corner";
18
+ readonly diagStripe: "Diagonal stripe";
19
+ readonly plaque: "Plaque";
20
+ readonly cube: "Cube";
21
+ readonly bevel: "Bevel";
22
+ readonly donut: "Donut";
23
+ readonly noSmoking: "No symbol";
24
+ readonly blockArc: "Block arc";
25
+ readonly foldedCorner: "Folded corner";
26
+ readonly smileyFace: "Smiley face";
27
+ readonly heart: "Heart";
28
+ readonly lightningBolt: "Lightning bolt";
29
+ readonly sun: "Sun";
30
+ readonly moon: "Moon";
31
+ readonly arc: "Arc";
32
+ readonly bracketPair: "Bracket pair";
33
+ readonly bracePair: "Brace pair";
34
+ readonly leftBracket: "Left bracket";
35
+ readonly rightBracket: "Right bracket";
36
+ readonly upArrow: "Up arrow";
37
+ readonly downArrow: "Down arrow";
38
+ readonly upDownArrow: "Up-down arrow";
39
+ readonly quadArrow: "Four-way arrow";
40
+ readonly leftRightUpArrow: "Left-right-up arrow";
41
+ readonly bentArrow: "Bent arrow";
42
+ readonly uturnArrow: "U-turn arrow";
43
+ readonly leftUpArrow: "Left-up arrow";
44
+ readonly bentUpArrow: "Bent-up arrow";
45
+ readonly curvedRightArrow: "Curved right arrow";
46
+ readonly curvedLeftArrow: "Curved left arrow";
47
+ readonly curvedUpArrow: "Curved up arrow";
48
+ readonly curvedDownArrow: "Curved down arrow";
49
+ readonly stripedRightArrow: "Striped right arrow";
50
+ readonly notchedRightArrow: "Notched right arrow";
51
+ readonly rightArrowCallout: "Right arrow callout";
52
+ readonly downArrowCallout: "Down arrow callout";
53
+ readonly leftArrowCallout: "Left arrow callout";
54
+ readonly upArrowCallout: "Up arrow callout";
55
+ readonly leftRightArrowCallout: "Left-right arrow callout";
56
+ readonly quadArrowCallout: "Four-way arrow callout";
57
+ readonly circularArrow: "Circular arrow";
58
+ readonly mathMinus: "Minus";
59
+ readonly mathMultiply: "Multiply";
60
+ readonly mathDivide: "Divide";
61
+ readonly mathEqual: "Equal";
62
+ readonly mathNotEqual: "Not equal";
63
+ readonly flowChartProcess: "Process";
64
+ readonly flowChartAlternateProcess: "Alternate process";
65
+ readonly flowChartDecision: "Decision";
66
+ readonly flowChartInputOutput: "Input/output";
67
+ readonly flowChartPredefinedProcess: "Predefined process";
68
+ readonly flowChartInternalStorage: "Internal storage";
69
+ readonly flowChartDocument: "Document";
70
+ readonly flowChartMultidocument: "Multiple documents";
71
+ readonly flowChartTerminator: "Terminator";
72
+ readonly flowChartPreparation: "Preparation";
73
+ readonly flowChartManualInput: "Manual input";
74
+ readonly flowChartManualOperation: "Manual operation";
75
+ readonly flowChartConnector: "Connector";
76
+ readonly flowChartOffpageConnector: "Off-page connector";
77
+ readonly flowChartPunchedCard: "Punched card";
78
+ readonly flowChartPunchedTape: "Punched tape";
79
+ readonly flowChartSummingJunction: "Summing junction";
80
+ readonly flowChartOr: "Or";
81
+ readonly flowChartCollate: "Collate";
82
+ readonly flowChartSort: "Sort";
83
+ readonly flowChartExtract: "Extract";
84
+ readonly flowChartMerge: "Merge";
85
+ readonly flowChartOnlineStorage: "Online storage";
86
+ readonly flowChartDelay: "Delay";
87
+ readonly flowChartMagneticTape: "Magnetic tape";
88
+ readonly flowChartMagneticDisk: "Magnetic disk";
89
+ readonly flowChartMagneticDrum: "Magnetic drum";
90
+ readonly flowChartDisplay: "Display";
91
+ readonly irregularSeal1: "Explosion 1";
92
+ readonly irregularSeal2: "Explosion 2";
93
+ readonly star4: "4-point star";
94
+ readonly star6: "6-point star";
95
+ readonly star7: "7-point star";
96
+ readonly star8: "8-point star";
97
+ readonly star10: "10-point star";
98
+ readonly star12: "12-point star";
99
+ readonly star16: "16-point star";
100
+ readonly star24: "24-point star";
101
+ readonly star32: "32-point star";
102
+ readonly ribbon2: "Ribbon 2";
103
+ readonly ribbon: "Ribbon";
104
+ readonly ellipseRibbon2: "Ellipse ribbon 2";
105
+ readonly ellipseRibbon: "Ellipse ribbon";
106
+ readonly verticalScroll: "Vertical scroll";
107
+ readonly horizontalScroll: "Horizontal scroll";
108
+ readonly wave: "Wave";
109
+ readonly doubleWave: "Double wave";
110
+ readonly wedgeRectCallout: "Rectangular callout";
111
+ readonly cloudCallout: "Cloud callout";
112
+ readonly borderCallout1: "Border callout 1";
113
+ readonly borderCallout2: "Border callout 2";
114
+ readonly borderCallout3: "Border callout 3";
115
+ readonly accentCallout1: "Accent callout 1";
116
+ readonly accentCallout2: "Accent callout 2";
117
+ readonly accentCallout3: "Accent callout 3";
118
+ readonly callout1: "Callout 1";
119
+ readonly callout2: "Callout 2";
120
+ readonly callout3: "Callout 3";
121
+ readonly accentBorderCallout1: "Accent border callout 1";
122
+ readonly accentBorderCallout2: "Accent border callout 2";
123
+ readonly accentBorderCallout3: "Accent border callout 3";
124
+ readonly leftCircularArrow: "Left circular arrow";
125
+ readonly leftRightCircularArrow: "Left-right circular arrow";
126
+ readonly swooshArrow: "Swoosh arrow";
127
+ readonly leftRightRibbon: "Left-right ribbon";
128
+ readonly pieWedge: "Pie wedge";
129
+ readonly funnel: "Funnel";
130
+ readonly gear6: "Gear 6";
131
+ readonly gear9: "Gear 9";
132
+ readonly cornerTabs: "Corner tabs";
133
+ readonly actionButtonBackPrevious: "Back or previous button";
134
+ readonly actionButtonForwardNext: "Forward or next button";
135
+ readonly actionButtonBeginning: "Beginning button";
136
+ readonly actionButtonEnd: "End button";
137
+ readonly actionButtonHome: "Home button";
138
+ readonly actionButtonInformation: "Information button";
139
+ readonly actionButtonReturn: "Return button";
140
+ readonly actionButtonMovie: "Movie button";
141
+ readonly actionButtonDocument: "Document button";
142
+ readonly actionButtonSound: "Sound button";
143
+ readonly actionButtonHelp: "Help button";
144
+ readonly actionButtonBlank: "Blank button";
145
+ readonly chartPlus: "Chart plus";
146
+ readonly chartStar: "Chart star";
147
+ readonly chartX: "Chart X";
148
+ readonly flowChartOfflineStorage: "Offline storage";
149
+ readonly lineInv: "Inverse line";
150
+ readonly plaqueTabs: "Plaque tabs";
151
+ readonly squareTabs: "Square tabs";
152
+ readonly upDownArrowCallout: "Up-down arrow callout";
153
+ };
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type { LocaleLeafKeys } from '@univerjs/core';
2
+ import type enUS from './en-US';
3
+ export type LocaleKey = LocaleLeafKeys<typeof enUS>;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,5 @@
1
+ import type { IAccessor } from '@univerjs/core';
2
+ import type { IMenuButtonItem } from '@univerjs/ui';
3
+ export declare function BoardContainerChildContextMenuMoveOutFactory(accessor?: IAccessor): IMenuButtonItem;
4
+ export declare function BoardContainerChildContextMenuSelectParentFactory(accessor?: IAccessor): IMenuButtonItem;
5
+ export declare function BoardContainerChildContextMenuFitParentFactory(accessor?: IAccessor): IMenuButtonItem;
@@ -0,0 +1,2 @@
1
+ import type { MenuSchemaType } from '@univerjs/ui';
2
+ export declare const boardContainerChildContextMenuSchema: MenuSchemaType;
@@ -0,0 +1,9 @@
1
+ import type { IAccessor } from '@univerjs/core';
2
+ import type { IMenuButtonItem } from '@univerjs/ui';
3
+ export declare function BoardContainerContextMenuRenameFactory(accessor?: IAccessor): IMenuButtonItem;
4
+ export declare function BoardContainerContextMenuFitFactory(accessor?: IAccessor): IMenuButtonItem;
5
+ export declare function BoardContainerContextMenuSelectContentsFactory(accessor?: IAccessor): IMenuButtonItem;
6
+ export declare function BoardContainerContextMenuToggleMembershipLockFactory(accessor?: IAccessor): IMenuButtonItem;
7
+ export declare function BoardContainerContextMenuToggleAutoResizeFactory(accessor?: IAccessor): IMenuButtonItem;
8
+ export declare function BoardContainerContextMenuDisbandFactory(accessor?: IAccessor): IMenuButtonItem;
9
+ export declare function BoardContainerContextMenuDeleteFactory(accessor?: IAccessor): IMenuButtonItem;
@@ -0,0 +1,2 @@
1
+ import type { MenuSchemaType } from '@univerjs/ui';
2
+ export declare const boardContainerContextMenuSchema: MenuSchemaType;
@@ -0,0 +1,7 @@
1
+ export declare enum BoardContainerContextMenuPosition {
2
+ CONTAINER = "board.contextMenu.container",
3
+ CHILD = "board.contextMenu.container-child"
4
+ }
5
+ export declare enum BoardSwimlaneLaneContextMenuPosition {
6
+ LANE = "board.contextMenu.swimlane-lane"
7
+ }
@@ -0,0 +1,8 @@
1
+ import type { IAccessor } from '@univerjs/core';
2
+ import type { IMenuButtonItem } from '@univerjs/ui';
3
+ export declare function BoardSwimlaneLaneAddFactory(accessor?: IAccessor): IMenuButtonItem;
4
+ export declare function BoardSwimlaneLaneRemoveFactory(accessor?: IAccessor): IMenuButtonItem;
5
+ export declare function BoardSwimlaneLaneRenameFactory(accessor?: IAccessor): IMenuButtonItem;
6
+ export declare function BoardSwimlaneLaneMovePreviousFactory(accessor?: IAccessor): IMenuButtonItem;
7
+ export declare function BoardSwimlaneLaneMoveNextFactory(accessor?: IAccessor): IMenuButtonItem;
8
+ export declare function BoardSwimlaneLaneCollapseFactory(accessor?: IAccessor): IMenuButtonItem;
@@ -0,0 +1,2 @@
1
+ import type { MenuSchemaType } from '@univerjs/ui';
2
+ export declare const boardSwimlaneLaneContextMenuSchema: MenuSchemaType;
@@ -0,0 +1,21 @@
1
+ import type { IUniverBoardsUIConfig } from './config/config';
2
+ import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
+ import { IRenderManagerService } from '@univerjs/engine-render';
4
+ import { IMenuManagerService, IUIPartsService } from '@univerjs/ui';
5
+ export declare const BOARDS_UI_PLUGIN_NAME = "UNIVER_BOARDS_UI_PLUGIN";
6
+ export declare class UniverBoardsUIPlugin extends Plugin {
7
+ private readonly _config;
8
+ protected readonly _injector: Injector;
9
+ private readonly _renderManagerService;
10
+ private readonly _uiPartsService;
11
+ private readonly _commandService;
12
+ private readonly _menuManagerService;
13
+ private readonly _configService;
14
+ static pluginName: string;
15
+ static packageName: string;
16
+ static version: string;
17
+ static type: UniverInstanceType;
18
+ constructor(_config: Partial<IUniverBoardsUIConfig> | undefined, _injector: Injector, _renderManagerService: IRenderManagerService, _uiPartsService: IUIPartsService, _commandService: ICommandService, _menuManagerService: IMenuManagerService, _configService: IConfigService);
19
+ onStarting(): void;
20
+ onReady(): void;
21
+ }
@@ -0,0 +1,63 @@
1
+ import type { IBoardElementData } from '@univerjs-pro/boards';
2
+ import type { IImageIoService, LocaleService } from '@univerjs/core';
3
+ import type { BaseObject } from '@univerjs/engine-render';
4
+ import type { IBoardFocusedSwimlaneLane } from '../services/board-element-state.service';
5
+ export declare const BOARD_ELEMENT_OBJECT_PREFIX = "board-element";
6
+ export interface IBoardElementRenderObjectKey {
7
+ unitId: string;
8
+ elementId: string;
9
+ }
10
+ export interface IBoardElementRenderBounds {
11
+ left: number;
12
+ top: number;
13
+ width: number;
14
+ height: number;
15
+ angle: number;
16
+ flipX?: boolean;
17
+ flipY?: boolean;
18
+ }
19
+ export interface ICreateBoardElementRenderObjectOptions {
20
+ unitId: string;
21
+ elementDataItem: IBoardElementData;
22
+ elementData?: Record<string, IBoardElementData>;
23
+ zIndex?: number;
24
+ imageIoService?: IImageIoService;
25
+ localeService?: LocaleService;
26
+ adapters?: readonly IBoardElementRenderAdapter[];
27
+ focusedSwimlaneLane?: IBoardFocusedSwimlaneLane | null;
28
+ }
29
+ export interface ISyncBoardElementRenderObjectOptions {
30
+ adapters?: readonly IBoardElementRenderAdapter[];
31
+ preserveTransform?: boolean;
32
+ elementData?: Record<string, IBoardElementData>;
33
+ unitId?: string;
34
+ zIndex?: number;
35
+ focusedSwimlaneLane?: IBoardFocusedSwimlaneLane | null;
36
+ }
37
+ export interface IBoardElementRenderAdapterContext {
38
+ unitId: string;
39
+ elementDataItem: IBoardElementData;
40
+ elementData?: Record<string, IBoardElementData>;
41
+ key: string;
42
+ bounds: IBoardElementRenderBounds;
43
+ zIndex?: number;
44
+ imageIoService?: IImageIoService;
45
+ localeService?: LocaleService;
46
+ focusedSwimlaneLane?: IBoardFocusedSwimlaneLane | null;
47
+ }
48
+ export interface IBoardElementRenderAdapter {
49
+ name: string;
50
+ createObject: (context: IBoardElementRenderAdapterContext) => BaseObject | null;
51
+ syncObject?: (object: BaseObject, context: IBoardElementRenderAdapterContext & {
52
+ preserveTransform?: boolean;
53
+ }) => boolean;
54
+ }
55
+ export declare function getBoardElementRenderObjectKey(unitId: string, elementId: string): string;
56
+ export declare function parseBoardElementRenderObjectKey(oKey: string): IBoardElementRenderObjectKey | null;
57
+ export declare function getBoardElementRenderBounds(elementDataItem: IBoardElementData, elementData?: Record<string, IBoardElementData>): IBoardElementRenderBounds;
58
+ export declare const BOARD_CONNECTOR_ELEMENT_RENDER_ADAPTER: IBoardElementRenderAdapter;
59
+ export declare const BOARD_SHAPE_ELEMENT_RENDER_ADAPTER: IBoardElementRenderAdapter;
60
+ export declare const BOARD_IMAGE_ELEMENT_RENDER_ADAPTER: IBoardElementRenderAdapter;
61
+ export declare const BOARD_ELEMENT_RENDER_ADAPTERS: readonly IBoardElementRenderAdapter[];
62
+ export declare function createBoardElementRenderObject({ unitId, elementDataItem, elementData, zIndex, imageIoService, localeService, adapters, focusedSwimlaneLane, }: ICreateBoardElementRenderObjectOptions): BaseObject | null;
63
+ export declare function syncBoardElementRenderObject(object: BaseObject, elementDataItem: IBoardElementData, options?: ISyncBoardElementRenderObjectOptions): boolean;
@@ -0,0 +1,27 @@
1
+ import type { IObjectFullState, IViewportInfo, UniverRenderingContext } from '@univerjs/engine-render';
2
+ import { Rect } from '@univerjs/engine-render';
3
+ export declare const BOARD_ADJ_HANDLE_SIZE = 4;
4
+ export interface IBoardAdjustPointObjectProps extends IObjectFullState {
5
+ adjName: string;
6
+ fill?: string;
7
+ handleShape?: 'diamond' | 'circle';
8
+ stroke?: string;
9
+ strokeWidth?: number;
10
+ }
11
+ export declare class BoardAdjustPointObject extends Rect {
12
+ readonly adjName: string;
13
+ private readonly _handleShape;
14
+ private _handleStyle;
15
+ constructor(key: string, props: IBoardAdjustPointObjectProps);
16
+ updateStyle(style: {
17
+ fill?: string;
18
+ stroke?: string;
19
+ strokeWidth?: number;
20
+ }): void;
21
+ getHandleStyle(): {
22
+ fill?: string;
23
+ stroke?: string;
24
+ strokeWidth?: number;
25
+ };
26
+ render(ctx: UniverRenderingContext, bounds: IViewportInfo): this;
27
+ }
@@ -0,0 +1,21 @@
1
+ import type { IBoardConnectorPoint, IBoardThemeData } from '@univerjs-pro/boards';
2
+ import type { IViewportInfo, UniverRenderingContext, Vector2 } from '@univerjs/engine-render';
3
+ import type { IBoardConnectorAffordanceHandle } from '../utils/board-connector-affordance.util';
4
+ import { BaseObject } from '@univerjs/engine-render';
5
+ export interface IBoardConnectorAffordanceObjectState {
6
+ handles: IBoardConnectorAffordanceHandle[];
7
+ hoveredHandle?: IBoardConnectorAffordanceHandle | null;
8
+ zoomRatio: number;
9
+ themeData?: IBoardThemeData;
10
+ }
11
+ export declare const BOARD_CONNECTOR_AFFORDANCE_OBJECT_KEY = "board-connector-affordance-object";
12
+ export declare const BOARD_CONNECTOR_AFFORDANCE_OBJECT_LAYER_INDEX: 5;
13
+ export declare class BoardConnectorAffordanceObject extends BaseObject {
14
+ private _state;
15
+ constructor(key?: string, state?: Partial<IBoardConnectorAffordanceObjectState>);
16
+ updateState(state?: Partial<IBoardConnectorAffordanceObjectState>): void;
17
+ setHoveredHandle(handle: IBoardConnectorAffordanceHandle | null): void;
18
+ getHitHandle(point: IBoardConnectorPoint): IBoardConnectorAffordanceHandle | null;
19
+ isHit(coord: Vector2): boolean;
20
+ render(ctx: UniverRenderingContext, _bounds: IViewportInfo): this;
21
+ }
@@ -0,0 +1,29 @@
1
+ import type { IBoardConnectorEndpoint, IBoardConnectorPoint, IBoardThemeData } from '@univerjs-pro/boards';
2
+ import type { IViewportInfo, UniverRenderingContext, Vector2 } from '@univerjs/engine-render';
3
+ import type { IBoardConnectorLabelRect } from '../utils/board-connector-label.util';
4
+ import { BaseObject } from '@univerjs/engine-render';
5
+ export type BoardConnectorEndpointHandleSide = 'start' | 'end';
6
+ export interface IBoardConnectorEndpointHandle {
7
+ connectorId: string;
8
+ endpoint: IBoardConnectorEndpoint;
9
+ point: IBoardConnectorPoint;
10
+ normal?: IBoardConnectorPoint;
11
+ side: BoardConnectorEndpointHandleSide;
12
+ }
13
+ export interface IBoardConnectorEndpointObjectState {
14
+ handles: IBoardConnectorEndpointHandle[];
15
+ labelObstacles: IBoardConnectorLabelRect[];
16
+ zoomRatio: number;
17
+ themeData?: IBoardThemeData;
18
+ }
19
+ export declare const BOARD_CONNECTOR_ENDPOINT_OBJECT_KEY = "board-connector-endpoint-object";
20
+ export declare const BOARD_CONNECTOR_ENDPOINT_OBJECT_LAYER_INDEX: 6;
21
+ export declare class BoardConnectorEndpointObject extends BaseObject {
22
+ private _state;
23
+ constructor(key?: string, state?: Partial<IBoardConnectorEndpointObjectState>);
24
+ updateState(state?: Partial<IBoardConnectorEndpointObjectState>): void;
25
+ private _isHandleBlocked;
26
+ getHitHandle(point: IBoardConnectorPoint): IBoardConnectorEndpointHandle | null;
27
+ isHit(coord: Vector2): boolean;
28
+ render(ctx: UniverRenderingContext, _bounds: IViewportInfo): this;
29
+ }
@@ -0,0 +1,58 @@
1
+ import type { IBoardConnectorElement, IBoardConnectorPoint, IBoardElementData } from '@univerjs-pro/boards';
2
+ import type { LocaleService } from '@univerjs/core';
3
+ import type { IObjectFullState, IViewportInfo, UniverRenderingContext, Vector2 } from '@univerjs/engine-render';
4
+ import type { IBoardConnectorLabelRect } from '../utils/board-connector-label.util';
5
+ import { BaseObject } from '@univerjs/engine-render';
6
+ import { resolveBoardConnectorPathBounds, resolveBoardConnectorPathCommands, resolveBoardConnectorRoutePoints } from '../utils/board-connector-routing.util';
7
+ export interface IBoardConnectorObjectProps {
8
+ left: number;
9
+ top: number;
10
+ width: number;
11
+ height: number;
12
+ angle?: number;
13
+ zIndex?: number;
14
+ visible?: boolean;
15
+ evented?: boolean;
16
+ element: IBoardConnectorElement;
17
+ elementData?: Record<string, IBoardElementData>;
18
+ localeService?: LocaleService;
19
+ }
20
+ export interface IBoardConnectorRouteCache {
21
+ routePoints: ReturnType<typeof resolveBoardConnectorRoutePoints>;
22
+ pathCommands: ReturnType<typeof resolveBoardConnectorPathCommands>;
23
+ bounds: ReturnType<typeof resolveBoardConnectorPathBounds>;
24
+ }
25
+ export declare class BoardConnectorObject extends BaseObject {
26
+ private _element;
27
+ private _elementData?;
28
+ private readonly _localeService?;
29
+ private readonly _documentTextRenderCache;
30
+ private _routeCache;
31
+ private _routeStabilityHint;
32
+ private _isEditingLabel;
33
+ isDrawingObject: boolean;
34
+ constructor(key: string, props: IBoardConnectorObjectProps);
35
+ updateElement(element: IBoardConnectorElement, elementData?: Record<string, IBoardElementData>): void;
36
+ getElement(): IBoardConnectorElement;
37
+ setEditing(isEditing: boolean): void;
38
+ getRoutePoints(): IBoardConnectorPoint[];
39
+ getPathCommands(): import("../utils/board-connector-routing.util").BoardConnectorPathCommand[];
40
+ getLabelPathPoints(): IBoardConnectorPoint[];
41
+ getLabelRect(): IBoardConnectorLabelRect | null;
42
+ isLabelHit(point: IBoardConnectorPoint): boolean;
43
+ private _getRouteCache;
44
+ private _getRenderBounds;
45
+ private _getCurrentRouteStabilityHint;
46
+ private _shouldUseRouteStabilityHint;
47
+ transformByState(option: IObjectFullState): this;
48
+ isHit(coord: Vector2): boolean;
49
+ render(ctx: UniverRenderingContext, _bounds: IViewportInfo): this;
50
+ private _drawRoute;
51
+ private _drawRoundedOrthogonalRoute;
52
+ private _drawRouteWithLineJumps;
53
+ private _resolveLineJumpsForSegment;
54
+ private _drawPathCommands;
55
+ private _drawMarkers;
56
+ private _resolveEndpointVisualGap;
57
+ private _drawLabel;
58
+ }
@@ -0,0 +1,22 @@
1
+ import type { IBoardShapeElement, IBoardThemeData } from '@univerjs-pro/boards';
2
+ import type { IViewportInfo, UniverRenderingContext, Vector2 } from '@univerjs/engine-render';
3
+ import { BaseObject } from '@univerjs/engine-render';
4
+ export interface IBoardConnectorQuickConnectShapePreviewObjectState {
5
+ element: IBoardShapeElement | null;
6
+ previewAlpha: number;
7
+ themeData?: IBoardThemeData;
8
+ }
9
+ export declare const BOARD_CONNECTOR_QUICK_CONNECT_SHAPE_PREVIEW_OBJECT_KEY = "board-connector-quick-connect-shape-preview-object";
10
+ export declare const BOARD_CONNECTOR_QUICK_CONNECT_PREVIEW_LAYER_INDEX: 3;
11
+ export declare const BOARD_CONNECTOR_QUICK_CONNECT_PREVIEW_ALPHA = 0.18;
12
+ export declare class BoardConnectorQuickConnectShapePreviewObject extends BaseObject {
13
+ private _state;
14
+ private _shapeModel;
15
+ private _shapeElementId;
16
+ constructor(key?: string, state?: Partial<IBoardConnectorQuickConnectShapePreviewObjectState>);
17
+ updateState(state?: Partial<IBoardConnectorQuickConnectShapePreviewObjectState>): void;
18
+ isHit(_coord: Vector2): boolean;
19
+ render(ctx: UniverRenderingContext, _bounds: IViewportInfo): this;
20
+ private _resolveShapeModel;
21
+ private _resolvePreviewAlpha;
22
+ }
@@ -0,0 +1,16 @@
1
+ import type { IViewportInfo, UniverRenderingContext, Vector2 } from '@univerjs/engine-render';
2
+ import type { IBoardConnectorSnapHighlight } from '../utils/board-connector-snap-highlight.util';
3
+ import { BaseObject } from '@univerjs/engine-render';
4
+ export interface IBoardConnectorSnapObjectState {
5
+ highlight: IBoardConnectorSnapHighlight | null;
6
+ zoomRatio: number;
7
+ }
8
+ export declare const BOARD_CONNECTOR_SNAP_OBJECT_KEY = "board-connector-snap-object";
9
+ export declare const BOARD_CONNECTOR_SNAP_OBJECT_LAYER_INDEX: 7;
10
+ export declare class BoardConnectorSnapObject extends BaseObject {
11
+ private _state;
12
+ constructor(key?: string, state?: Partial<IBoardConnectorSnapObjectState>);
13
+ updateState(state?: Partial<IBoardConnectorSnapObjectState>): void;
14
+ isHit(_coord: Vector2): boolean;
15
+ render(ctx: UniverRenderingContext, _bounds: IViewportInfo): this;
16
+ }
@@ -0,0 +1,51 @@
1
+ import type { IBoardConnectorPoint } from '@univerjs-pro/boards';
2
+ import type { IViewportInfo, UniverRenderingContext, Vector2 } from '@univerjs/engine-render';
3
+ import type { IBoardConnectorLabelRect } from '../utils/board-connector-label.util';
4
+ import type { IBoardConnectorCurveAnchorHandle, IBoardConnectorEditableSegment, IBoardConnectorManualWaypointHandle } from '../utils/board-connector-waypoint.util';
5
+ import { BaseObject } from '@univerjs/engine-render';
6
+ export interface IBoardConnectorLabelSelection {
7
+ connectorId: string;
8
+ rect: IBoardConnectorLabelRect;
9
+ }
10
+ export interface IBoardConnectorLabelResizeHandle {
11
+ connectorId: string;
12
+ side: 'left' | 'right';
13
+ point: IBoardConnectorPoint;
14
+ rect: IBoardConnectorLabelRect;
15
+ }
16
+ export interface IBoardConnectorWaypointObjectState {
17
+ segments: IBoardConnectorEditableSegment[];
18
+ waypoints: IBoardConnectorManualWaypointHandle[];
19
+ curveAnchors: IBoardConnectorCurveAnchorHandle[];
20
+ labelObstacles: IBoardConnectorLabelRect[];
21
+ labelSelections: IBoardConnectorLabelSelection[];
22
+ focusedWaypoint: {
23
+ connectorId: string;
24
+ waypointId: string;
25
+ } | null;
26
+ focusedCurveAnchor: {
27
+ connectorId: string;
28
+ anchorId: string;
29
+ } | null;
30
+ zoomRatio: number;
31
+ }
32
+ export declare const BOARD_CONNECTOR_WAYPOINT_OBJECT_KEY = "board-connector-waypoint-object";
33
+ export declare const BOARD_CONNECTOR_WAYPOINT_OBJECT_LAYER_INDEX: 6;
34
+ export declare class BoardConnectorWaypointObject extends BaseObject {
35
+ private _state;
36
+ constructor(key?: string, state?: Partial<IBoardConnectorWaypointObjectState>);
37
+ updateState(state?: Partial<IBoardConnectorWaypointObjectState>): void;
38
+ private _getSegmentHandleRect;
39
+ private _isSegmentHandlePointBlocked;
40
+ private _isPointBlockedByLabel;
41
+ private _isWaypointHandleBlocked;
42
+ private _isCurveAnchorBlocked;
43
+ private _resolveSegmentHandlePoint;
44
+ private _getVisibleSegment;
45
+ getHitSegment(point: IBoardConnectorPoint): IBoardConnectorEditableSegment | null;
46
+ getHitCurveAnchor(point: IBoardConnectorPoint): IBoardConnectorCurveAnchorHandle | null;
47
+ getHitLabelResizeHandle(point: IBoardConnectorPoint): IBoardConnectorLabelResizeHandle | null;
48
+ getHitWaypoint(point: IBoardConnectorPoint): IBoardConnectorManualWaypointHandle | null;
49
+ isHit(coord: Vector2): boolean;
50
+ render(ctx: UniverRenderingContext, _bounds: IViewportInfo): this;
51
+ }
@@ -0,0 +1,19 @@
1
+ import type { IBoardThemeData } from '@univerjs-pro/boards';
2
+ import type { IViewportInfo, UniverRenderingContext, Vector2 } from '@univerjs/engine-render';
3
+ import type { IBoardContainerMembershipOverlayItem } from '../utils/board-container-membership-overlay.util';
4
+ import { BaseObject } from '@univerjs/engine-render';
5
+ export interface IBoardContainerMembershipObjectState {
6
+ items: IBoardContainerMembershipOverlayItem[];
7
+ themeData?: IBoardThemeData;
8
+ zoomRatio?: number;
9
+ }
10
+ export declare const BOARD_CONTAINER_MEMBERSHIP_OBJECT_KEY = "board-container-membership-object";
11
+ export declare const BOARD_CONTAINER_MEMBERSHIP_OBJECT_LAYER_INDEX: 4;
12
+ export declare class BoardContainerMembershipObject extends BaseObject {
13
+ private _state;
14
+ constructor(key?: string, state?: Partial<IBoardContainerMembershipObjectState>);
15
+ updateState(state?: Partial<IBoardContainerMembershipObjectState>): void;
16
+ getOverlayState(): IBoardContainerMembershipObjectState;
17
+ isHit(_coord: Vector2): boolean;
18
+ render(ctx: UniverRenderingContext, _bounds: IViewportInfo): this;
19
+ }