@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,17 @@
1
+ import type { ComponentType } from 'react';
2
+ import type { IUniverBoardsUIConfig } from '../config/config';
3
+ import type { LocaleKey } from '../locale/types';
4
+ import { BoardToolType } from '@univerjs-pro/boards';
5
+ export interface IBoardToolbarToolDefinition {
6
+ type: BoardToolType;
7
+ labelKey: LocaleKey;
8
+ icon: ComponentType<{
9
+ className?: string;
10
+ }>;
11
+ enabledByDefault: boolean;
12
+ }
13
+ export interface IResolvedBoardToolbarTool extends Omit<IBoardToolbarToolDefinition, 'enabledByDefault'> {
14
+ disabled: boolean;
15
+ }
16
+ export declare const BOARD_TOOLBAR_TOOL_DEFINITIONS: IBoardToolbarToolDefinition[];
17
+ export declare function resolveBoardToolbarTools(config?: Pick<IUniverBoardsUIConfig, 'toolbar'>): IResolvedBoardToolbarTool[];
@@ -0,0 +1,27 @@
1
+ import type { IBoardElementData, IBoardPageElement } from '@univerjs-pro/boards';
2
+ export interface IBoardObjectListItem {
3
+ id: string;
4
+ name: string;
5
+ visible: boolean;
6
+ selectable: boolean;
7
+ disabled: boolean;
8
+ isGroup: boolean;
9
+ elementOrderIndex: number;
10
+ parentId?: string;
11
+ children: IBoardObjectListItem[];
12
+ }
13
+ export interface IBoardObjectListSelectionResult {
14
+ selectedIds: string[];
15
+ focusedId: string | null;
16
+ }
17
+ export declare function resolveBoardObjectListItems(map: {
18
+ data: Record<string, IBoardElementData>;
19
+ order: string[];
20
+ } | null | undefined): IBoardObjectListItem[];
21
+ export declare function collectBoardObjectListItemIds(items: IBoardObjectListItem[]): string[];
22
+ export declare function resolveBoardObjectListVisibilityChangeIds(items: IBoardObjectListItem[], itemIds: string[], visible: boolean): string[];
23
+ export declare function resolveBoardObjectListSelectionTargetId(items: IBoardObjectListItem[], itemId: string | null | undefined): string | null;
24
+ export declare function resolveBoardObjectListSelectedIds(items: IBoardObjectListItem[], selectedIds: string[]): string[];
25
+ export declare function resolveBoardObjectListFocusedId(items: IBoardObjectListItem[], focusedId: string | null | undefined, selectedIds?: string[]): string | null;
26
+ export declare function resolveBoardObjectListNextSelection(items: IBoardObjectListItem[], selectedIds: string[], itemId: string, multiSelect: boolean): IBoardObjectListSelectionResult;
27
+ export declare function getBoardElementDisplayName(element: IBoardPageElement): string;
@@ -0,0 +1,92 @@
1
+ import type { BoardToolType, IBoardPageSize, IBoardSettings } from '@univerjs-pro/boards';
2
+ import type { BoardSettingsActionConfig, BoardSettingsActionType } from '../common/settings-actions';
3
+ import type { IBoardShapePreset } from '../common/shape-presets';
4
+ import type { IBoardElementRenderAdapter } from '../render-adapters/board-element-render-adapter';
5
+ export declare const BOARDS_UI_PLUGIN_CONFIG_KEY = "boards-ui.config";
6
+ export declare const configSymbol: unique symbol;
7
+ export type BoardToolbarToolConfig = boolean | {
8
+ enabled?: boolean;
9
+ };
10
+ export interface IBoardInteractionConfig {
11
+ alignmentGuideThreshold?: number;
12
+ maxZoomRatio?: number;
13
+ minElementSize?: number;
14
+ minZoomRatio?: number;
15
+ pendingInsertPreviewAlpha?: number;
16
+ resizeHandleHitPadding?: number;
17
+ resizeHandleSize?: number;
18
+ spacingGuideMaxDistance?: number;
19
+ trackpadPanEnabled?: boolean;
20
+ wheelPanFactor?: number;
21
+ wheelZoomFactor?: number;
22
+ wheelZoomWithModifier?: boolean;
23
+ zoomStep?: number;
24
+ zoomWheelFactor?: number;
25
+ }
26
+ export interface IBoardGridConfig {
27
+ gridSize?: number;
28
+ lineColor?: string;
29
+ majorGridSize?: number;
30
+ majorLineColor?: string;
31
+ }
32
+ export interface IBoardTableInsertConfig {
33
+ cellHeight?: number;
34
+ cellWidth?: number;
35
+ columns?: number;
36
+ height?: number;
37
+ minHeight?: number;
38
+ minWidth?: number;
39
+ rows?: number;
40
+ width?: number;
41
+ }
42
+ export interface IBoardChartInsertConfig {
43
+ height?: number;
44
+ width?: number;
45
+ }
46
+ export interface IBoardImageInsertConfig {
47
+ fallbackHeight?: number;
48
+ fallbackWidth?: number;
49
+ fitRatio?: number;
50
+ minEdge?: number;
51
+ minPositionOffset?: number;
52
+ }
53
+ export interface IBoardInsertConfig {
54
+ chart?: IBoardChartInsertConfig;
55
+ image?: IBoardImageInsertConfig;
56
+ table?: IBoardTableInsertConfig;
57
+ }
58
+ export interface IBoardShapeConfig {
59
+ commonCount?: number;
60
+ presets?: readonly IBoardShapePreset[];
61
+ }
62
+ export interface IBoardStickyConfig {
63
+ colors?: readonly string[];
64
+ }
65
+ export interface IBoardRenderSceneConfig {
66
+ minSize?: IBoardPageSize;
67
+ }
68
+ export interface IUniverBoardsUIConfig extends IBoardSettings {
69
+ additionalRenderAdapters?: readonly IBoardElementRenderAdapter[];
70
+ grid?: IBoardGridConfig;
71
+ insert?: IBoardInsertConfig;
72
+ interaction?: IBoardInteractionConfig;
73
+ renderAdapters?: readonly IBoardElementRenderAdapter[];
74
+ settingsMenu?: {
75
+ actions?: Partial<Record<BoardSettingsActionType, BoardSettingsActionConfig>>;
76
+ };
77
+ shape?: IBoardShapeConfig;
78
+ sticky?: IBoardStickyConfig;
79
+ toolbar?: {
80
+ tools?: Partial<Record<BoardToolType, BoardToolbarToolConfig>>;
81
+ };
82
+ scene?: IBoardRenderSceneConfig;
83
+ workbench?: {
84
+ content?: boolean;
85
+ footer?: boolean;
86
+ header?: boolean;
87
+ headerMenu?: boolean;
88
+ toolbar?: boolean;
89
+ };
90
+ }
91
+ export declare const defaultPluginConfig: IUniverBoardsUIConfig;
92
+ export declare function resolveBoardRenderAdapters(config?: Pick<IUniverBoardsUIConfig, 'additionalRenderAdapters' | 'renderAdapters'>): readonly IBoardElementRenderAdapter[];
@@ -0,0 +1,26 @@
1
+ export declare const BOARD_SHAPE_TEXT_EDITOR_ID: string;
2
+ export declare const BOARD_DOM_LAYER_ROOT_Z_INDEX = 10;
3
+ export declare const BOARD_DOM_LAYER_POPUP_Z_INDEX = 60;
4
+ export declare const BOARD_RENDER_LAYER_INDEX: {
5
+ readonly background: 0;
6
+ readonly grid: 0;
7
+ readonly container: 1;
8
+ readonly element: 2;
9
+ readonly preview: 3;
10
+ readonly overlay: 4;
11
+ readonly connectorAffordance: 5;
12
+ readonly connectorHandle: 6;
13
+ readonly connectorSnap: 7;
14
+ };
15
+ export declare const BOARD_RENDER_OBJECT_Z_INDEX: {
16
+ readonly background: -1;
17
+ readonly default: 0;
18
+ readonly preview: 100;
19
+ readonly overlay: 200;
20
+ readonly transientPreview: 10000;
21
+ readonly transientPreviewForeground: 10001;
22
+ readonly transientControl: 10002;
23
+ readonly transientEditHandle: 10003;
24
+ readonly transientSnap: 10004;
25
+ readonly transientResize: 10005;
26
+ };
@@ -0,0 +1,25 @@
1
+ import { ICommandService, IConfigService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
+ import { IRenderManagerService } from '@univerjs/engine-render';
3
+ import { IShortcutService } from '@univerjs/ui';
4
+ import { BoardClipboardService } from '../services/board-clipboard.service';
5
+ import { BoardElementEditService } from '../services/board-element-edit.service';
6
+ import { IBoardElementStateService } from '../services/board-element-state.service';
7
+ import { IBoardUIStateService } from '../services/board-ui-state.service';
8
+ export declare const BOARD_CLIPBOARD_SHORTCUT_OPERATION_ID = "board.operation.clipboard-shortcut";
9
+ export declare class BoardClipboardShortcutController extends RxDisposable {
10
+ private readonly _instanceService;
11
+ private readonly _configService;
12
+ private readonly _renderManagerService;
13
+ private readonly _elementStateService;
14
+ private readonly _stateService;
15
+ private readonly _clipboardService;
16
+ private readonly _elementEditService;
17
+ private readonly _commandService;
18
+ private readonly _shortcutService;
19
+ constructor(_instanceService: IUniverInstanceService, _configService: IConfigService, _renderManagerService: IRenderManagerService, _elementStateService: IBoardElementStateService, _stateService: IBoardUIStateService, _clipboardService: BoardClipboardService, _elementEditService: BoardElementEditService, _commandService: ICommandService, _shortcutService: IShortcutService);
20
+ private _init;
21
+ private _createClipboardShortcutOperation;
22
+ private _createShortcutItem;
23
+ private _handleShortcut;
24
+ private _getCurrentBoardModel;
25
+ }
@@ -0,0 +1,30 @@
1
+ import type { UnitModel } from '@univerjs/core';
2
+ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
+ import { IBoardElementService } from '@univerjs-pro/boards';
4
+ import { RxDisposable } from '@univerjs/core';
5
+ import { ComponentManager } from '@univerjs/ui';
6
+ import { BoardCanvasPopManagerService } from '../services/board-canvas-pop-manager.service';
7
+ import { IBoardElementStateService } from '../services/board-element-state.service';
8
+ import { BoardTextEditingService } from '../services/board-text-editing.service';
9
+ export declare class BoardConnectorFloatingToolbarRenderController extends RxDisposable implements IRenderModule {
10
+ private readonly _renderContext;
11
+ private readonly _componentManager;
12
+ private readonly _boardCanvasPopManagerService;
13
+ private readonly _boardElementService;
14
+ private readonly _elementStateService;
15
+ private readonly _boardTextEditingService;
16
+ private _popupDisposable;
17
+ private _popupSelectionKey;
18
+ constructor(_renderContext: IRenderContext<UnitModel>, _componentManager: ComponentManager, _boardCanvasPopManagerService: BoardCanvasPopManagerService, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _boardTextEditingService: BoardTextEditingService);
19
+ dispose(): void;
20
+ private _init;
21
+ private _clearPopup;
22
+ private _clearPopupIfSelectionChanged;
23
+ private _isPopupSelectionStillActive;
24
+ private _buildPopupSelectionKey;
25
+ private _showPopupForSelection;
26
+ private _resolvePopupAnchorMode;
27
+ private _resolveConnectorPopupAnchorMode;
28
+ private _getConnectorRenderObject;
29
+ private _isConnectorTextEditing;
30
+ }
@@ -0,0 +1,158 @@
1
+ import type { UnitModel } from '@univerjs/core';
2
+ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
+ import { IBoardElementService } from '@univerjs-pro/boards';
4
+ import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
5
+ import { ComponentManager } from '@univerjs/ui';
6
+ import { BoardCanvasPopManagerService } from '../services/board-canvas-pop-manager.service';
7
+ import { BoardElementEditService } from '../services/board-element-edit.service';
8
+ import { BoardElementInsertService } from '../services/board-element-insert.service';
9
+ import { IBoardElementStateService } from '../services/board-element-state.service';
10
+ import { BoardTextEditingService } from '../services/board-text-editing.service';
11
+ import { IBoardUIStateService } from '../services/board-ui-state.service';
12
+ export declare class BoardConnectorInteractionRenderController extends RxDisposable implements IRenderModule {
13
+ private readonly _renderContext;
14
+ private readonly _instanceSrv;
15
+ private readonly _boardElementService;
16
+ private readonly _elementStateService;
17
+ private readonly _commandService;
18
+ private readonly _stateService;
19
+ private readonly _editService;
20
+ private readonly _insertService;
21
+ private readonly _componentManager;
22
+ private readonly _boardCanvasPopManagerService;
23
+ private readonly _boardTextEditingService;
24
+ private _attachObjectPointerScheduled;
25
+ private _objectPointerDisposables;
26
+ private _affordanceObject;
27
+ private _endpointObject;
28
+ private _waypointObject;
29
+ private _snapObject;
30
+ private _handledDblClickEvent;
31
+ private _lastWaypointInsertDblClick;
32
+ private _endpointDrag;
33
+ private _waypointDrag;
34
+ private _waypointPointDrag;
35
+ private _curveAnchorDrag;
36
+ private _focusedWaypoint;
37
+ private _focusedCurveAnchor;
38
+ private _focusedConnectorLabel;
39
+ private _connectorBodyDrag;
40
+ private _connectorLabelDrag;
41
+ private _connectorLabelResizeDrag;
42
+ private _committingConnectorPreview;
43
+ private _ownsConnectorHoverCursor;
44
+ private _quickShapePopupDisposable;
45
+ private _draft;
46
+ private _draftObject;
47
+ private _quickConnectHoverPreview;
48
+ private _quickConnectPointerDownPreview;
49
+ private _quickConnectPreviewConnectorObject;
50
+ private _quickConnectPreviewShapeObject;
51
+ constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _commandService: ICommandService, _stateService: IBoardUIStateService, _editService: BoardElementEditService, _insertService: BoardElementInsertService, _componentManager: ComponentManager, _boardCanvasPopManagerService: BoardCanvasPopManagerService, _boardTextEditingService: BoardTextEditingService);
52
+ private _init;
53
+ private _scheduleAttachObjectPointerHandlers;
54
+ private _scheduleAttachObjectPointerHandlersWithFollowUp;
55
+ private _attachObjectPointerHandlers;
56
+ private _subscribeToWindowConnectorInterruptions;
57
+ private _cancelActiveConnectorInteractions;
58
+ private _isLineToolActive;
59
+ private _isFreePolylineToolActive;
60
+ private _getBoardPointFromEvent;
61
+ private _handleKeyDown;
62
+ private _cancelActiveConnectorDrag;
63
+ private _syncSceneInputMode;
64
+ private _getElementData;
65
+ private _isConnectorTextEditing;
66
+ private _isTextEditing;
67
+ private _createAffordanceHandles;
68
+ private _getFocusedConnectorElement;
69
+ private _createEndpointHandles;
70
+ private _createWaypointSegments;
71
+ private _getConnectorVisibleRoutePoints;
72
+ private _syncAffordanceObject;
73
+ private _syncEndpointObject;
74
+ private _syncWaypointObject;
75
+ private _createWaypointHandles;
76
+ private _createConnectorLabelSelections;
77
+ private _createConnectorLabelObstacles;
78
+ private _createCurveAnchorHandles;
79
+ private _syncSnapObject;
80
+ private _resolveEndpoint;
81
+ private _resolveConnectorAxisSnapAnchor;
82
+ private _createConnectorElement;
83
+ private _createConnectorEndpointUpdate;
84
+ private _withShapeSiteFallbacksResolvedToSites;
85
+ private _createConnectorMoveUpdate;
86
+ private _getConnectorEditSelectionSnapshot;
87
+ private _syncConnectorEditHandles;
88
+ private _commitConnectorPreviewUpdate;
89
+ private _activateConnectorDrag;
90
+ private _finishFreePolylineDraft;
91
+ private _clearQuickShapePopup;
92
+ private _insertQuickConnectedShape;
93
+ private _insertQuickConnectedConnector;
94
+ private _resolveQuickConnectSourceShape;
95
+ private _resolveQuickConnectShapeType;
96
+ private _resolveQuickConnectSourceSize;
97
+ private _resolveQuickConnectHoverTarget;
98
+ private _createQuickConnectHoverPreview;
99
+ private _getQuickConnectPreviewElementData;
100
+ private _syncQuickConnectHoverPreview;
101
+ private _clearQuickConnectHoverPreview;
102
+ private _commitQuickConnectPreview;
103
+ private _getElementDataWithElement;
104
+ private _createQuickConnectorTargetUpdate;
105
+ private _insertQuickConnectedShapeForConnector;
106
+ private _showQuickShapeMenu;
107
+ private _previewConnectorElement;
108
+ private _isSelectionToolActive;
109
+ private _syncActiveConnectorInteractionState;
110
+ private _resolveFocusedConnectorBodyHit;
111
+ private _isConnectorPathHit;
112
+ private _resolveFocusedConnectorLabelHit;
113
+ private _createConnectorLabelMoveUpdate;
114
+ private _createConnectorLabelResizeUpdate;
115
+ private _addConnectorLabelAtPoint;
116
+ private _removeFocusedConnectorLabel;
117
+ private _resolveConnectorLabelPathPoints;
118
+ private _resolveConnectorLabelRect;
119
+ private _getSceneObject;
120
+ private _handlePointerDown;
121
+ private _handleDblClick;
122
+ private _isSequenceActivationHit;
123
+ private _resolveSequenceLifelineHit;
124
+ private _insertSequenceActivationBar;
125
+ private _handleAffordancePointerDown;
126
+ private _handleEndpointPointerDown;
127
+ private _handleConnectorLabelResizePointerDown;
128
+ private _handleWaypointPointerDown;
129
+ private _removeFocusedWaypoint;
130
+ private _removeFocusedCurveAnchor;
131
+ private _handlePointerMove;
132
+ private _handlePointerUp;
133
+ private _handleEndpointPointerMove;
134
+ private _handleEndpointPointerUp;
135
+ private _clearEndpointDrag;
136
+ private _handleWaypointPointerMove;
137
+ private _syncConnectorHoverCursor;
138
+ private _setConnectorHoverCursor;
139
+ private _handleWaypointPointerUp;
140
+ private _clearWaypointDrag;
141
+ private _handleWaypointPointPointerMove;
142
+ private _handleWaypointPointPointerUp;
143
+ private _clearWaypointPointDrag;
144
+ private _handleCurveAnchorPointerMove;
145
+ private _handleCurveAnchorPointerUp;
146
+ private _clearCurveAnchorDrag;
147
+ private _handleConnectorBodyPointerMove;
148
+ private _handleConnectorBodyPointerUp;
149
+ private _clearConnectorBodyDrag;
150
+ private _handleConnectorLabelPointerMove;
151
+ private _handleConnectorLabelPointerUp;
152
+ private _handleConnectorLabelResizePointerMove;
153
+ private _handleConnectorLabelResizePointerUp;
154
+ private _clearConnectorLabelDrag;
155
+ private _clearConnectorLabelResizeDrag;
156
+ private _syncDraftObject;
157
+ private _clearDraft;
158
+ }
@@ -0,0 +1,27 @@
1
+ import type { UnitModel } from '@univerjs/core';
2
+ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
+ import { IBoardElementService } from '@univerjs-pro/boards';
4
+ import { IUniverInstanceService, RxDisposable } from '@univerjs/core';
5
+ import { IBoardUIStateService } from '../services/board-ui-state.service';
6
+ export declare class BoardContainerMembershipRenderController extends RxDisposable implements IRenderModule {
7
+ private readonly _renderContext;
8
+ private readonly _instanceSrv;
9
+ private readonly _stateService;
10
+ private readonly _boardElementService;
11
+ private _membershipObject;
12
+ private _spatialIndex;
13
+ private _spatialIndexPageId;
14
+ private _previewSource;
15
+ private _isForceCaptureModifierActive;
16
+ constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _stateService: IBoardUIStateService, _boardElementService: IBoardElementService);
17
+ private _init;
18
+ private _subscribeToElementChanges;
19
+ private _subscribeToPendingInsert;
20
+ private _subscribeToTransformer;
21
+ private _syncPreview;
22
+ private _syncPendingInsertPreview;
23
+ private _clearPreview;
24
+ private _subscribeToForceCaptureModifier;
25
+ private _getSpatialIndex;
26
+ private _disposeSpatialIndex;
27
+ }
@@ -0,0 +1,63 @@
1
+ import type { UnitModel } from '@univerjs/core';
2
+ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
+ import { IBoardElementService } from '@univerjs-pro/boards';
4
+ import { IInkUIStateService } from '@univerjs-pro/ink-ui';
5
+ import { IUniverInstanceService, RxDisposable } from '@univerjs/core';
6
+ import { IContextMenuService } from '@univerjs/ui';
7
+ import { IBoardElementStateService } from '../services/board-element-state.service';
8
+ import { IBoardInkEditService } from '../services/board-ink-edit.service';
9
+ import { BoardSelectionOverlayService } from '../services/board-selection-overlay.service';
10
+ import { BoardSelectionService } from '../services/board-selection.service';
11
+ import { BoardTextEditingService } from '../services/board-text-editing.service';
12
+ import { IBoardUIStateService } from '../services/board-ui-state.service';
13
+ export declare class BoardElementSelectionController extends RxDisposable implements IRenderModule {
14
+ private readonly _renderContext;
15
+ private readonly _instanceSrv;
16
+ private readonly _boardElementService;
17
+ private readonly _stateSrv;
18
+ private readonly _selectionService;
19
+ private readonly _selectionOverlayService;
20
+ private readonly _uiStateService;
21
+ private readonly _contextMenuService;
22
+ private readonly _inkStateService;
23
+ private readonly _inkEditService;
24
+ private readonly _boardTextEditingService;
25
+ private _attachScheduled;
26
+ private _handledElementPointerDownEvent;
27
+ private _isSyncingTransformer;
28
+ private _objectPointerDisposables;
29
+ private _restoreTransformerScheduled;
30
+ private _selectionDraft;
31
+ constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _stateSrv: IBoardElementStateService, _selectionService: BoardSelectionService, _selectionOverlayService: BoardSelectionOverlayService, _uiStateService: IBoardUIStateService, _contextMenuService: IContextMenuService, _inkStateService: IInkUIStateService, _inkEditService: IBoardInkEditService, _boardTextEditingService: BoardTextEditingService);
32
+ private _init;
33
+ private _subscribeToTextEditing;
34
+ private _wireScenePointerSelection;
35
+ private _subscribeToWindowSelectionInterruptions;
36
+ private _clearSelectionDraft;
37
+ private _clearSelectionDraftIfInkInteractionActive;
38
+ private _wireTransformerToState;
39
+ private _syncFromTransformer;
40
+ private _scheduleAttachObjectTransformers;
41
+ private _scheduleAttachObjectTransformersWithFollowUp;
42
+ private _attachObjectTransformers;
43
+ private _handleElementPointerDown;
44
+ private _handleContextMenuPointerDown;
45
+ private _resolveDeepSelectElementId;
46
+ private _openContextMenu;
47
+ private _resolveFocusedSwimlaneLane;
48
+ private _syncToTransformer;
49
+ private _scheduleTransformerRestoreAfterTextEditingExit;
50
+ private _canSelectElement;
51
+ private _isStructuralContainer;
52
+ private _canAttachTransformer;
53
+ private _resolveTransformerConfig;
54
+ private _shouldDisableTransformerRotation;
55
+ private _isSelectPointerEvent;
56
+ private _isContextMenuPointerEvent;
57
+ private _isSelectionToolActive;
58
+ private _isTextEditingActive;
59
+ private _isInkInteractionActive;
60
+ private _isHandledElementPointerDown;
61
+ private _getBoardPointFromEvent;
62
+ private _createContextMenuEvent;
63
+ }
@@ -0,0 +1,52 @@
1
+ import type { UnitModel } from '@univerjs/core';
2
+ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
+ import { IBoardElementService } from '@univerjs-pro/boards';
4
+ import { IUniverInstanceService, RxDisposable } from '@univerjs/core';
5
+ import { BoardElementEditService } from '../services/board-element-edit.service';
6
+ import { IBoardElementStateService } from '../services/board-element-state.service';
7
+ export declare class BoardElementTransformController extends RxDisposable implements IRenderModule {
8
+ private readonly _renderContext;
9
+ private readonly _instanceSrv;
10
+ private readonly _boardElementService;
11
+ private readonly _stateSrv;
12
+ private readonly _editService;
13
+ private _isForceCaptureModifierActive;
14
+ private _shiftTransformStartRects;
15
+ private _areTransformerControlsHiddenForTransform;
16
+ private _xSnapSession;
17
+ private _ySnapSession;
18
+ constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _stateSrv: IBoardElementStateService, _editService: BoardElementEditService);
19
+ private _init;
20
+ private _subscribeToTransformer;
21
+ private _keepTransformerControlsHiddenForTransform;
22
+ private _hideTransformerControls;
23
+ private _restoreTransformerControlsAfterTransform;
24
+ private _captureShiftTransformStartRects;
25
+ private _resetAlignmentSnapSessions;
26
+ private _applyShiftTransformModifier;
27
+ private _applyAlignmentSnapModifier;
28
+ private _resolveAlignmentSnapDelta;
29
+ private _applySequenceActivationSnapModifier;
30
+ private _applyProportionalResize;
31
+ private _syncRealtimeTransformPreview;
32
+ private _syncContainerDescendantPreviews;
33
+ private _createRealtimePreviewElementData;
34
+ private _syncShapeBoundConnectorPreviews;
35
+ private _withPreviewConnectorTransform;
36
+ private _syncTransformToData;
37
+ private _subscribeToForceCaptureModifier;
38
+ private _resolveSingleContainerTransformUpdate;
39
+ private _resolveContainerTransformInteraction;
40
+ private _appendShapeBoundConnectorFallbackUpdates;
41
+ private _createCommittedElementData;
42
+ private _refreshConnectorDataForElementData;
43
+ private _refreshConnectorFallbackPointsForElementData;
44
+ private _updateEndpointFallbackPoint;
45
+ private _resolveLaneIdForTransform;
46
+ private _createTransformUpdate;
47
+ private _applyTextBoxResizePolicy;
48
+ private _resolveSequenceActivationSnap;
49
+ private _withSequenceActivationData;
50
+ private _resolveValidParentId;
51
+ private _createSelectionSnapshot;
52
+ }
@@ -0,0 +1,27 @@
1
+ export declare const BOARD_TRANSFORMER_CONFIG: {
2
+ readonly borderEnabled: true;
3
+ readonly borderStroke: "#4086f4";
4
+ readonly borderStrokeWidth: 1;
5
+ readonly borderSpacing: 2;
6
+ readonly anchorFill: "#ffffff";
7
+ readonly anchorStroke: "#4086f4";
8
+ readonly anchorStrokeWidth: 1.5;
9
+ readonly anchorSize: 8;
10
+ readonly anchorCornerRadius: 2;
11
+ readonly anchorStyle: "canva";
12
+ readonly rotateEnabled: true;
13
+ readonly rotateSize: 18;
14
+ readonly rotateCornerRadius: 9;
15
+ readonly rotateAnchorOffset: 28;
16
+ readonly rotateAnchorPosition: "bottom";
17
+ readonly rotateLineEnabled: false;
18
+ readonly rotateFill: "#ffffff";
19
+ readonly rotateStroke: "#4086f4";
20
+ readonly rotateStrokeWidth: 1;
21
+ readonly rotateIconEnabled: true;
22
+ readonly rotateIconStroke: "#4086f4";
23
+ readonly rotateIconStrokeWidth: 1.25;
24
+ readonly resizeEnabled: true;
25
+ readonly keepRatio: false;
26
+ readonly moveBoundaryEnabled: false;
27
+ };
@@ -0,0 +1,14 @@
1
+ import type { UnitModel } from '@univerjs/core';
2
+ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
+ import { IConfigService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
4
+ import { IBoardUIStateService } from '../services/board-ui-state.service';
5
+ export declare class BoardGridRenderController extends RxDisposable implements IRenderModule {
6
+ private readonly _renderContext;
7
+ private readonly _instanceSrv;
8
+ private readonly _configService;
9
+ private readonly _boardUIStateService;
10
+ private _gridObject;
11
+ constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _configService: IConfigService, _boardUIStateService: IBoardUIStateService);
12
+ private _init;
13
+ private _syncGridObject;
14
+ }
@@ -0,0 +1,20 @@
1
+ import { IBoardElementService } from '@univerjs-pro/boards';
2
+ import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
3
+ import { IShortcutService } from '@univerjs/ui';
4
+ import { BoardElementEditService } from '../services/board-element-edit.service';
5
+ import { IBoardElementStateService } from '../services/board-element-state.service';
6
+ export declare const BOARD_GROUPING_SHORTCUT_OPERATION_ID = "board.operation.grouping-shortcut";
7
+ export declare class BoardGroupingShortcutController extends RxDisposable {
8
+ private readonly _instanceService;
9
+ private readonly _boardElementService;
10
+ private readonly _elementStateService;
11
+ private readonly _elementEditService;
12
+ private readonly _commandService;
13
+ private readonly _shortcutService;
14
+ constructor(_instanceService: IUniverInstanceService, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _elementEditService: BoardElementEditService, _commandService: ICommandService, _shortcutService: IShortcutService);
15
+ private _init;
16
+ private _createGroupingShortcutOperation;
17
+ private _createShortcutItem;
18
+ private _handleShortcut;
19
+ private _getCurrentBoardModel;
20
+ }
@@ -0,0 +1,16 @@
1
+ import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
+ import { IShortcutService } from '@univerjs/ui';
3
+ import { IBoardElementStateService } from '../services/board-element-state.service';
4
+ export declare const BOARD_HISTORY_SHORTCUT_OPERATION_ID = "board.operation.history-shortcut";
5
+ export declare class BoardHistoryShortcutController extends RxDisposable {
6
+ private readonly _instanceService;
7
+ private readonly _elementStateService;
8
+ private readonly _commandService;
9
+ private readonly _shortcutService;
10
+ constructor(_instanceService: IUniverInstanceService, _elementStateService: IBoardElementStateService, _commandService: ICommandService, _shortcutService: IShortcutService);
11
+ private _init;
12
+ private _createHistoryShortcutOperation;
13
+ private _createShortcutItem;
14
+ private _handleShortcut;
15
+ private _getCurrentBoardModel;
16
+ }