@univerjs-pro/boards-ui 1.0.0-beta.0 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/cjs/shape-preset-labels-C4G0G9GI.js +1 -1
  23. package/lib/es/facade.js +1 -1
  24. package/lib/es/index.js +1 -1
  25. package/lib/es/locale/ar-SA.js +1 -1
  26. package/lib/es/locale/ca-ES.js +1 -1
  27. package/lib/es/locale/de-DE.js +1 -1
  28. package/lib/es/locale/en-US.js +1 -1
  29. package/lib/es/locale/es-ES.js +1 -1
  30. package/lib/es/locale/fa-IR.js +1 -1
  31. package/lib/es/locale/fr-FR.js +1 -1
  32. package/lib/es/locale/id-ID.js +1 -1
  33. package/lib/es/locale/it-IT.js +1 -1
  34. package/lib/es/locale/ja-JP.js +1 -1
  35. package/lib/es/locale/ko-KR.js +1 -1
  36. package/lib/es/locale/pl-PL.js +1 -1
  37. package/lib/es/locale/pt-BR.js +1 -1
  38. package/lib/es/locale/ru-RU.js +1 -1
  39. package/lib/es/locale/sk-SK.js +1 -1
  40. package/lib/es/locale/vi-VN.js +1 -1
  41. package/lib/es/locale/zh-CN.js +1 -1
  42. package/lib/es/locale/zh-HK.js +1 -1
  43. package/lib/es/locale/zh-TW.js +1 -1
  44. package/lib/es/shape-preset-labels-092BdVw3.js +1 -1
  45. package/lib/facade.js +1 -1
  46. package/lib/index.css +32 -40
  47. package/lib/index.js +1 -1
  48. package/lib/locale/ar-SA.js +1 -1
  49. package/lib/locale/ca-ES.js +1 -1
  50. package/lib/locale/de-DE.js +1 -1
  51. package/lib/locale/en-US.js +1 -1
  52. package/lib/locale/es-ES.js +1 -1
  53. package/lib/locale/fa-IR.js +1 -1
  54. package/lib/locale/fr-FR.js +1 -1
  55. package/lib/locale/id-ID.js +1 -1
  56. package/lib/locale/it-IT.js +1 -1
  57. package/lib/locale/ja-JP.js +1 -1
  58. package/lib/locale/ko-KR.js +1 -1
  59. package/lib/locale/pl-PL.js +1 -1
  60. package/lib/locale/pt-BR.js +1 -1
  61. package/lib/locale/ru-RU.js +1 -1
  62. package/lib/locale/sk-SK.js +1 -1
  63. package/lib/locale/vi-VN.js +1 -1
  64. package/lib/locale/zh-CN.js +1 -1
  65. package/lib/locale/zh-HK.js +1 -1
  66. package/lib/locale/zh-TW.js +1 -1
  67. package/lib/shape-preset-labels-092BdVw3.js +1 -1
  68. package/lib/types/commands/commands/analyze-board-rendered-layout.command.d.ts +2 -1
  69. package/lib/types/commands/operations/board-chart-dialog.operation.d.ts +2 -2
  70. package/lib/types/commands/operations/board-pointer.operation.d.ts +8 -0
  71. package/lib/types/commands/operations/board-selection.operation.d.ts +4 -2
  72. package/lib/types/commands/operations/board-ui-control.operation.d.ts +30 -0
  73. package/lib/types/common/board-shortcuts.d.ts +1 -3
  74. package/lib/types/config/config.d.ts +29 -2
  75. package/lib/types/const.d.ts +2 -0
  76. package/lib/types/controllers/board-clipboard-shortcut.controller.d.ts +2 -21
  77. package/lib/types/controllers/board-connector-interaction.render-controller.d.ts +1 -0
  78. package/lib/types/controllers/board-element-selection.controller.d.ts +1 -0
  79. package/lib/types/controllers/board-element-transform.controller.d.ts +3 -0
  80. package/lib/types/controllers/board-element-transformer-config.util.d.ts +1 -0
  81. package/lib/types/controllers/board-grouping-shortcut.controller.d.ts +2 -14
  82. package/lib/types/controllers/board-history-shortcut.controller.d.ts +2 -8
  83. package/lib/types/controllers/board-layout-shortcut.controller.d.ts +2 -14
  84. package/lib/types/controllers/board-order-shortcut.controller.d.ts +2 -10
  85. package/lib/types/controllers/board-render.controller.d.ts +1 -0
  86. package/lib/types/controllers/board-selection-shortcut.controller.d.ts +2 -14
  87. package/lib/types/controllers/board-settings-shortcut.controller.d.ts +2 -14
  88. package/lib/types/controllers/board-swimlane-lane-shortcut.controller.d.ts +5 -17
  89. package/lib/types/controllers/board-tool-shortcut.controller.d.ts +5 -16
  90. package/lib/types/controllers/board-unit-presence.controller.d.ts +6 -0
  91. package/lib/types/controllers/board-unit-presence.render-controller.d.ts +37 -0
  92. package/lib/types/controllers/board-view-shortcut.controller.d.ts +2 -23
  93. package/lib/types/controllers/board-viewport-bar.render-controller.d.ts +41 -0
  94. package/lib/types/facade/f-board-ui.d.ts +19 -0
  95. package/lib/types/facade/index.d.ts +1 -0
  96. package/lib/types/index.d.ts +7 -4
  97. package/lib/types/locale/en-US.d.ts +1 -0
  98. package/lib/types/plugin.d.ts +6 -0
  99. package/lib/types/render-objects/board-connector-object.d.ts +17 -5
  100. package/lib/types/render-objects/board-viewport-bar-object.d.ts +33 -0
  101. package/lib/types/services/board-canvas-pop-manager.service.d.ts +3 -1
  102. package/lib/types/services/board-clipboard.service.d.ts +10 -3
  103. package/lib/types/services/board-element-edit.service.d.ts +2 -0
  104. package/lib/types/services/board-embed-integration.service.d.ts +9 -0
  105. package/lib/types/services/board-find.service.d.ts +1 -0
  106. package/lib/types/services/board-image-insert.service.d.ts +3 -1
  107. package/lib/types/services/board-pointer-state.service.d.ts +21 -0
  108. package/lib/types/services/board-settings.service.d.ts +3 -5
  109. package/lib/types/services/board-shortcut-runtime.service.d.ts +32 -0
  110. package/lib/types/services/board-text-editing.service.d.ts +9 -4
  111. package/lib/types/services/board-ui-state.service.d.ts +2 -1
  112. package/lib/types/services/board-unit-presence-ui-adapter.service.d.ts +32 -0
  113. package/lib/types/services/board-viewport.service.d.ts +2 -1
  114. package/lib/types/utils/board-connector-hit-test.util.d.ts +2 -0
  115. package/lib/types/utils/board-connector-marker-anchor.util.d.ts +0 -1
  116. package/lib/types/utils/board-connector-marker.util.d.ts +21 -0
  117. package/lib/types/utils/board-connector-quick-connect.util.d.ts +1 -0
  118. package/lib/types/utils/board-connector-render-bounds.util.d.ts +0 -1
  119. package/lib/types/utils/board-connector-render-geometry.util.d.ts +33 -0
  120. package/lib/types/utils/board-connector-routing.util.d.ts +13 -1
  121. package/lib/types/utils/board-page-background-image.util.d.ts +15 -0
  122. package/lib/types/utils/board-render-page.util.d.ts +10 -5
  123. package/lib/types/utils/board-shortcut-preconditions.util.d.ts +4 -2
  124. package/lib/types/utils/board-viewport-bar.util.d.ts +55 -0
  125. package/lib/types/utils/board-viewport.util.d.ts +1 -0
  126. package/lib/types/views/BoardConnectorFloatingToolbarControls.d.ts +8 -2
  127. package/lib/types/views/BoardFloatingToolPanel.d.ts +1 -0
  128. package/lib/types/views/BoardPageBackgroundView.d.ts +8 -0
  129. package/lib/types/views/BoardSettingsMenu.d.ts +14 -0
  130. package/lib/types/views/BoardShapeFloatingToolbar.d.ts +2 -3
  131. package/lib/umd/facade.js +1 -1
  132. package/lib/umd/index.js +1 -1
  133. package/lib/umd/locale/ar-SA.js +1 -1
  134. package/lib/umd/locale/ca-ES.js +1 -1
  135. package/lib/umd/locale/de-DE.js +1 -1
  136. package/lib/umd/locale/en-US.js +1 -1
  137. package/lib/umd/locale/es-ES.js +1 -1
  138. package/lib/umd/locale/fa-IR.js +1 -1
  139. package/lib/umd/locale/fr-FR.js +1 -1
  140. package/lib/umd/locale/id-ID.js +1 -1
  141. package/lib/umd/locale/it-IT.js +1 -1
  142. package/lib/umd/locale/ja-JP.js +1 -1
  143. package/lib/umd/locale/ko-KR.js +1 -1
  144. package/lib/umd/locale/pl-PL.js +1 -1
  145. package/lib/umd/locale/pt-BR.js +1 -1
  146. package/lib/umd/locale/ru-RU.js +1 -1
  147. package/lib/umd/locale/sk-SK.js +1 -1
  148. package/lib/umd/locale/vi-VN.js +1 -1
  149. package/lib/umd/locale/zh-CN.js +1 -1
  150. package/lib/umd/locale/zh-HK.js +1 -1
  151. package/lib/umd/locale/zh-TW.js +1 -1
  152. package/package.json +17 -17
@@ -4,6 +4,7 @@ import type { IPopup } from '@univerjs/ui';
4
4
  import { Disposable } from '@univerjs/core';
5
5
  import { IRenderManagerService } from '@univerjs/engine-render';
6
6
  import { ICanvasPopupService } from '@univerjs/ui';
7
+ import { IBoardUIStateService } from './board-ui-state.service';
7
8
  export interface IBoardCanvasPopup extends Pick<IPopup, 'componentKey' | 'direction' | 'excludeOutside' | 'hideOnInvisible' | 'offset' | 'onClickOutside'> {
8
9
  anchorBoundResolver?: (targetObject: BaseObject) => IBoundRectNoAngle;
9
10
  extraProps?: Record<string, unknown>;
@@ -12,7 +13,8 @@ export interface IBoardCanvasPopup extends Pick<IPopup, 'componentKey' | 'direct
12
13
  export declare class BoardCanvasPopManagerService extends Disposable {
13
14
  private readonly _globalPopupManagerService;
14
15
  private readonly _renderManagerService;
15
- constructor(_globalPopupManagerService: ICanvasPopupService, _renderManagerService: IRenderManagerService);
16
+ private readonly _boardUIStateService;
17
+ constructor(_globalPopupManagerService: ICanvasPopupService, _renderManagerService: IRenderManagerService, _boardUIStateService: IBoardUIStateService);
16
18
  private _createObjectPositionObserver;
17
19
  attachPopupToObject(unitId: string, subUnitId: string, targetObject: BaseObject, popup: IBoardCanvasPopup): IDisposable;
18
20
  attachPopupToPoint(unitId: string, subUnitId: string, point: {
@@ -29,15 +29,22 @@ export interface IBoardCopySelectionAsImageOptions {
29
29
  };
30
30
  padding?: number;
31
31
  }
32
+ export declare class BoardClipboardStoreService {
33
+ private _payload;
34
+ private _stylePayload;
35
+ setPayload(payload: IBoardClipboardPayload | null | undefined): void;
36
+ getPayload(): IBoardClipboardPayload | null;
37
+ setStylePayload(payload: IBoardElementStylePayload | null | undefined): void;
38
+ getStylePayload(): IBoardElementStylePayload | null;
39
+ }
32
40
  export declare class BoardClipboardService {
33
41
  private readonly _boardElementService;
34
42
  private readonly _elementInsertService;
35
43
  private readonly _resourceAdapterService;
36
44
  private readonly _commandService;
37
45
  private readonly _undoRedoService;
38
- private _payload;
39
- private _stylePayload;
40
- constructor(_boardElementService: IBoardElementService, _elementInsertService: BoardElementInsertService, _resourceAdapterService: IBoardClipboardResourceAdapterService, _commandService: ICommandService, _undoRedoService: IUndoRedoService);
46
+ private readonly _storeService;
47
+ constructor(_boardElementService: IBoardElementService, _elementInsertService: BoardElementInsertService, _resourceAdapterService: IBoardClipboardResourceAdapterService, _commandService: ICommandService, _undoRedoService: IUndoRedoService, _storeService: BoardClipboardStoreService);
41
48
  setPayload(payload: IBoardClipboardPayload | null | undefined): void;
42
49
  getPayload(): IBoardClipboardPayload | null;
43
50
  setStylePayload(payload: IBoardElementStylePayload | null | undefined): void;
@@ -39,6 +39,7 @@ export interface IBoardElementUpdateSelectedConnectorLabelOptions {
39
39
  selectedIds: string[];
40
40
  focusedId?: string | null;
41
41
  label: IBoardConnectorLabel;
42
+ historyId?: string;
42
43
  }
43
44
  export interface IBoardElementWrapSelectedInContainerOptions {
44
45
  selectedIds: string[];
@@ -80,6 +81,7 @@ export interface IBoardElementUpdateElementsOptions {
80
81
  unitId: string;
81
82
  subUnitId: string;
82
83
  updates: IBoardElementUpdateElementsOperationItem[];
84
+ historyId?: string;
83
85
  forceCaptureElementIds?: readonly string[];
84
86
  membershipMode?: BoardContainerMembershipUpdateMode;
85
87
  }
@@ -1,3 +1,5 @@
1
+ import type { UniverInstanceType } from '@univerjs/core';
2
+ import type { Observable } from 'rxjs';
1
3
  /**
2
4
  * Optional host-side bridge supplied by Embed UI.
3
5
  *
@@ -5,6 +7,13 @@
5
7
  * prevent the host canvas from reclaiming focus for a child-owned pointer event.
6
8
  */
7
9
  export interface IBoardEmbedRuntimeFocusCoordinator {
10
+ readonly runtimeSessionChanged$?: Observable<void>;
11
+ resolveRuntimeScopeByChildUnitId?(childUnitId: string | undefined): {
12
+ embedId: string;
13
+ hostUnitId?: string;
14
+ childUnitId?: string;
15
+ childType?: UniverInstanceType;
16
+ } | undefined;
8
17
  shouldSuppressHostInteraction(unitId: string | undefined, target?: EventTarget | null, event?: Event): boolean;
9
18
  }
10
19
  export declare const IBoardEmbedRuntimeFocusCoordinator: import("@wendellhu/redi").IdentifierDecorator<IBoardEmbedRuntimeFocusCoordinator>;
@@ -18,5 +18,6 @@ export declare class BoardFindService {
18
18
  selectElementResult(boardModel: BoardModel | null | undefined, elementId: string): boolean;
19
19
  selectResult(boardModel: BoardModel | null | undefined, elementId: string): boolean;
20
20
  focusElementResult(boardModel: BoardModel | null | undefined, elementId: string, viewportPoint: IBoardViewportPoint): boolean;
21
+ getElementViewportPoint(boardModel: BoardModel | null | undefined, elementId: string): IBoardViewportPoint | null;
21
22
  focusResult(boardModel: BoardModel | null | undefined, elementId: string, viewportPoint: IBoardViewportPoint): boolean;
22
23
  }
@@ -1,5 +1,6 @@
1
1
  import { IConfigService, IImageIoService, ImageSourceType, IUniverInstanceService } from '@univerjs/core';
2
2
  import { BoardElementInsertService } from './board-element-insert.service';
3
+ import { BoardViewportService } from './board-viewport.service';
3
4
  export interface IBoardImageInsertOptions {
4
5
  point?: {
5
6
  x: number;
@@ -10,8 +11,9 @@ export declare class BoardImageInsertService {
10
11
  private readonly _instanceService;
11
12
  private readonly _elementInsertService;
12
13
  private readonly _configService;
14
+ private readonly _viewportService;
13
15
  private readonly _imageIoService?;
14
- constructor(_instanceService: IUniverInstanceService, _elementInsertService: BoardElementInsertService, _configService: IConfigService, _imageIoService?: IImageIoService | undefined);
16
+ constructor(_instanceService: IUniverInstanceService, _elementInsertService: BoardElementInsertService, _configService: IConfigService, _viewportService: BoardViewportService, _imageIoService?: IImageIoService | undefined);
15
17
  insertImage(file: File, options?: IBoardImageInsertOptions): Promise<boolean>;
16
18
  resolveImageSource(file: File): Promise<{
17
19
  source: string;
@@ -0,0 +1,21 @@
1
+ import type { Observable } from 'rxjs';
2
+ import type { IBoardViewportPoint } from '../utils/board-viewport.util';
3
+ import { Disposable } from '@univerjs/core';
4
+ export interface IBoardPointerStateSnapshot {
5
+ unitId: string;
6
+ subUnitId: string;
7
+ pointer: IBoardViewportPoint | null;
8
+ }
9
+ export interface IBoardPointerStateService {
10
+ readonly state$: Observable<IBoardPointerStateSnapshot | null>;
11
+ getSnapshot(): IBoardPointerStateSnapshot | null;
12
+ setPointer(state: IBoardPointerStateSnapshot): void;
13
+ }
14
+ export declare const IBoardPointerStateService: import("@wendellhu/redi").IdentifierDecorator<IBoardPointerStateService>;
15
+ export declare class BoardPointerStateService extends Disposable implements IBoardPointerStateService {
16
+ private readonly _state$;
17
+ readonly state$: Observable<IBoardPointerStateSnapshot | null>;
18
+ dispose(): void;
19
+ getSnapshot(): IBoardPointerStateSnapshot | null;
20
+ setPointer(state: IBoardPointerStateSnapshot): void;
21
+ }
@@ -1,13 +1,11 @@
1
- import type { BoardModel, IBoardSettings } from '@univerjs-pro/boards';
1
+ import type { BoardModel } from '@univerjs-pro/boards';
2
+ import type { IBoardSettings } from '../config/config';
2
3
  import { ICommandService, ThemeService } from '@univerjs/core';
3
- import { IBoardUIStateService } from './board-ui-state.service';
4
4
  export declare class BoardSettingsService {
5
5
  private readonly _commandService;
6
- private readonly _stateService;
7
6
  private readonly _themeService;
8
- constructor(_commandService: ICommandService, _stateService: IBoardUIStateService, _themeService: ThemeService);
7
+ constructor(_commandService: ICommandService, _themeService: ThemeService);
9
8
  setSettings(boardModel: BoardModel | null | undefined, settings: Partial<IBoardSettings>): Promise<boolean>;
10
9
  setTheme(boardModel: BoardModel | null | undefined, themeId: string): Promise<boolean>;
11
10
  syncFollowUniverTheme(boardModel: BoardModel | null | undefined): Promise<boolean>;
12
- syncFromBoardModel(boardModel: BoardModel | null | undefined): void;
13
11
  }
@@ -0,0 +1,32 @@
1
+ import type { BoardModel } from '@univerjs-pro/boards';
2
+ import type { IAccessor, IExecutionOptions } from '@univerjs/core';
3
+ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
4
+ import { IBoardElementService } from '@univerjs-pro/boards';
5
+ import { Disposable, ICommandService, IConfigService, IUniverInstanceService } from '@univerjs/core';
6
+ import { BoardClipboardService } from './board-clipboard.service';
7
+ import { BoardElementEditService } from './board-element-edit.service';
8
+ import { IBoardElementStateService } from './board-element-state.service';
9
+ import { BoardSettingsService } from './board-settings.service';
10
+ import { BoardSwimlaneLaneRenameService } from './board-swimlane-lane-rename.service';
11
+ import { BoardTextEditingService } from './board-text-editing.service';
12
+ import { BoardToolService } from './board-tool.service';
13
+ import { IBoardUIStateService } from './board-ui-state.service';
14
+ import { BoardViewportService } from './board-viewport.service';
15
+ export declare class BoardShortcutRuntimeService extends Disposable implements IRenderModule {
16
+ readonly renderContext: IRenderContext<BoardModel>;
17
+ readonly instanceService: IUniverInstanceService;
18
+ readonly commandService: ICommandService;
19
+ readonly configService: IConfigService;
20
+ readonly elementService: IBoardElementService;
21
+ readonly elementStateService: IBoardElementStateService;
22
+ readonly uiStateService: IBoardUIStateService;
23
+ readonly clipboardService: BoardClipboardService;
24
+ readonly elementEditService: BoardElementEditService;
25
+ readonly settingsService: BoardSettingsService;
26
+ readonly swimlaneLaneRenameService: BoardSwimlaneLaneRenameService;
27
+ readonly textEditingService: BoardTextEditingService;
28
+ readonly toolService: BoardToolService;
29
+ readonly viewportService: BoardViewportService;
30
+ constructor(renderContext: IRenderContext<BoardModel>, instanceService: IUniverInstanceService, commandService: ICommandService, configService: IConfigService, elementService: IBoardElementService, elementStateService: IBoardElementStateService, uiStateService: IBoardUIStateService, clipboardService: BoardClipboardService, elementEditService: BoardElementEditService, settingsService: BoardSettingsService, swimlaneLaneRenameService: BoardSwimlaneLaneRenameService, textEditingService: BoardTextEditingService, toolService: BoardToolService, viewportService: BoardViewportService);
31
+ }
32
+ export declare function resolveBoardShortcutRuntime(accessor: IAccessor, options?: IExecutionOptions): BoardShortcutRuntimeService | null;
@@ -1,17 +1,18 @@
1
- import type { IShapeTextEditingParams, IShapeTextHostSizeUpdateParams, IShapeTextUpdateParams } from '@univerjs-pro/shape-editor-ui';
2
1
  import type { Nullable } from '@univerjs/core';
3
2
  import type { Observable } from 'rxjs';
4
3
  import { IBoardElementService } from '@univerjs-pro/boards';
4
+ import * as ShapeEditorUI from '@univerjs-pro/shape-editor-ui';
5
5
  import { Disposable } from '@univerjs/core';
6
6
  import { BoardElementEditService } from './board-element-edit.service';
7
7
  import { BoardShapeIntrinsicSizeService } from './board-shape-intrinsic-size.service';
8
- export interface IBoardTextEditingParams extends IShapeTextEditingParams {
8
+ export interface IBoardTextEditingParams extends ShapeEditorUI.IShapeTextEditingParams {
9
9
  unitId: string;
10
10
  subUnitId: string;
11
11
  shapeId: string;
12
12
  shapeKey: string;
13
13
  visible: boolean;
14
14
  }
15
+ type IBoardTextEditingKeyParams = Pick<IBoardTextEditingParams, 'shapeId' | 'subUnitId' | 'unitId'>;
15
16
  export declare class BoardTextEditingService extends Disposable {
16
17
  private readonly _boardElementService;
17
18
  private readonly _editService;
@@ -23,18 +24,20 @@ export declare class BoardTextEditingService extends Disposable {
23
24
  private _ignoreExternalFocusChangesUntil;
24
25
  private _discardEditingKey;
25
26
  private _externalCompletionPointerDownEvent;
27
+ private _connectorLabelHistory;
26
28
  constructor(_boardElementService: IBoardElementService, _editService: BoardElementEditService, _intrinsicSizeService: BoardShapeIntrinsicSizeService);
27
29
  dispose(): void;
28
30
  setEditing(params: Nullable<IBoardTextEditingParams>): void;
29
31
  setOnSavingEditorData(params: Nullable<boolean>): void;
30
32
  getEditing(): Nullable<IBoardTextEditingParams>;
33
+ markConnectorLabelInsertion(params: IBoardTextEditingKeyParams, historyId: string): void;
31
34
  ignoreExternalFocusChanges(duration?: number): void;
32
35
  shouldIgnoreExternalFocusChanges(): boolean;
33
36
  completeEditing(event?: PointerEvent): void;
34
37
  shouldIgnoreSelectionPointerDown(evt: Event): boolean;
35
38
  cancelEditing(): void;
36
- updateShapeText(params: IShapeTextUpdateParams): boolean;
37
- updatePlainTextShapeHostSize(params: IShapeTextHostSizeUpdateParams): boolean;
39
+ updateShapeText(params: ShapeEditorUI.IShapeTextUpdateParams): boolean;
40
+ updatePlainTextShapeHostSize(params: ShapeEditorUI.IShapeTextHostSizeUpdateParams): boolean;
38
41
  private _updateConnectorLabelText;
39
42
  private _resolveHostSize;
40
43
  private _resolveConnectorLabelHostSize;
@@ -43,3 +46,5 @@ export declare class BoardTextEditingService extends Disposable {
43
46
  private _ensureConnectorLabel;
44
47
  private _shouldDiscardEditorUpdate;
45
48
  }
49
+ export declare function areBoardShapeTextValuesEquivalent(first: unknown, second: unknown): boolean;
50
+ export {};
@@ -1,4 +1,5 @@
1
- import type { BoardConnectorRouting, BoardShapeType, IBoardConnectorStyle, IBoardSettings, IBoardSwimlaneData } from '@univerjs-pro/boards';
1
+ import type { BoardConnectorRouting, BoardShapeType, IBoardConnectorStyle, IBoardSwimlaneData } from '@univerjs-pro/boards';
2
+ import type { IBoardSettings } from '../config/config';
2
3
  import type { IBoardInsertRect } from '../utils/board-insert.util';
3
4
  import type { IBoardViewportPoint, IBoardViewportTransform } from '../utils/board-viewport.util';
4
5
  import { BoardToolType } from '@univerjs-pro/boards';
@@ -0,0 +1,32 @@
1
+ import type { ILocalUnitPresenceState, IRemoteUnitPresenceState, IUnitPresenceUIAdapter } from '@univerjs/ui';
2
+ import type { Observable } from 'rxjs';
3
+ import { IUniverInstanceService, RxDisposable, UniverInstanceType } from '@univerjs/core';
4
+ import { IBoardElementStateService } from './board-element-state.service';
5
+ import { IBoardPointerStateService } from './board-pointer-state.service';
6
+ import { IBoardUIStateService } from './board-ui-state.service';
7
+ export declare class BoardUnitPresenceUIAdapter extends RxDisposable implements IUnitPresenceUIAdapter {
8
+ private readonly _boardElementStateService;
9
+ private readonly _boardPointerStateService;
10
+ private readonly _boardUIStateService;
11
+ private readonly _univerInstanceService;
12
+ readonly unitType = UniverInstanceType.UNIVER_BOARD;
13
+ readonly presenceKind = "board-element-selection";
14
+ readonly statusUIPart = "board.top-right-menu.leading";
15
+ private readonly _active$;
16
+ private _activationCount;
17
+ readonly active$: Observable<boolean>;
18
+ readonly localPresence$: Observable<ILocalUnitPresenceState>;
19
+ private readonly _remotePresences;
20
+ constructor(_boardElementStateService: IBoardElementStateService, _boardPointerStateService: IBoardPointerStateService, _boardUIStateService: IBoardUIStateService, _univerInstanceService: IUniverInstanceService);
21
+ dispose(): void;
22
+ activate(): import("@wendellhu/redi").IDisposable;
23
+ isActive(): boolean;
24
+ getLocalPresence(unitId: string): ILocalUnitPresenceState | null;
25
+ getRemotePresences$(unitId: string): Observable<ReadonlyMap<string, IRemoteUnitPresenceState>>;
26
+ setRemotePresence(state: IRemoteUnitPresenceState): void;
27
+ removeRemotePresence(unitId: string, memberId: string): void;
28
+ clearRemotePresences(unitId: string): void;
29
+ private _getShareInterval;
30
+ private _getOrCreateRemotePresenceSubject;
31
+ private _disposeRemotePresenceSubject;
32
+ }
@@ -1,5 +1,5 @@
1
1
  import type { BoardModel } from '@univerjs-pro/boards';
2
- import type { IBoardViewportSize, IBoardViewportZoomConfig } from '../utils/board-viewport.util';
2
+ import type { IBoardViewportPoint, IBoardViewportSize, IBoardViewportZoomConfig } from '../utils/board-viewport.util';
3
3
  import { IBoardElementService } from '@univerjs-pro/boards';
4
4
  import { IRenderManagerService } from '@univerjs/engine-render';
5
5
  import { IBoardUIStateService } from './board-ui-state.service';
@@ -14,5 +14,6 @@ export declare class BoardViewportService {
14
14
  private readonly _renderManagerService;
15
15
  constructor(_boardElementService: IBoardElementService, _uiStateService: IBoardUIStateService, _renderManagerService: Pick<IRenderManagerService, 'getRenderUnitById'>);
16
16
  fitContent(boardModel: BoardModel | null | undefined, options: IBoardViewportFitContentOptions): boolean;
17
+ getViewportCenterPoint(boardModel: BoardModel | null | undefined): IBoardViewportPoint | null;
17
18
  private _createRenderBoundsResolver;
18
19
  }
@@ -1,4 +1,5 @@
1
1
  import type { IBoardConnectorData, IBoardConnectorPoint, IBoardElementData } from '@univerjs-pro/boards';
2
+ import type { IBoardConnectorRenderGeometry } from './board-connector-render-geometry.util';
2
3
  import type { BoardConnectorPathCommand } from './board-connector-routing.util';
3
4
  export interface IHitTestBoardConnectorElementOptions {
4
5
  connectorData: IBoardConnectorData;
@@ -7,6 +8,7 @@ export interface IHitTestBoardConnectorElementOptions {
7
8
  connectorId?: string;
8
9
  pathCommands?: readonly BoardConnectorPathCommand[];
9
10
  routePoints?: readonly IBoardConnectorPoint[];
11
+ renderGeometry?: IBoardConnectorRenderGeometry | null;
10
12
  pathTolerance?: number;
11
13
  }
12
14
  export declare const BOARD_CONNECTOR_DEFAULT_HIT_TOLERANCE = 8;
@@ -13,5 +13,4 @@ export interface IResolveBoardConnectorMarkerAnchorsOptions {
13
13
  elementData?: Record<string, IBoardElementData>;
14
14
  endpointGap?: number;
15
15
  }
16
- export declare const BOARD_CONNECTOR_ENDPOINT_VISUAL_GAP = 5;
17
16
  export declare function resolveBoardConnectorMarkerAnchors(_routing: BoardConnectorRouting, points: readonly IBoardConnectorPoint[], pathCommands: readonly BoardConnectorPathCommand[], options?: IResolveBoardConnectorMarkerAnchorsOptions): IBoardConnectorMarkerAnchors | null;
@@ -2,7 +2,28 @@ import type { IBoardConnectorMarker, IBoardConnectorPoint } from '@univerjs-pro/
2
2
  import type { UniverRenderingContext } from '@univerjs/engine-render';
3
3
  export declare const BOARD_CONNECTOR_DEFAULT_MARKER_SIZE = 12;
4
4
  export declare const BOARD_CONNECTOR_DEFAULT_MARKER_COLOR = "#1f2937";
5
+ export declare const BOARD_CONNECTOR_ENDPOINT_VISUAL_GAP = 5;
6
+ export type BoardConnectorMarkerUnderlayPolicy = 'continue-to-tip' | 'stop-at-base';
7
+ export interface IBoardConnectorMarkerGeometry {
8
+ size: number;
9
+ tipOffset: number;
10
+ strokeCutback: number;
11
+ rearExtent: number;
12
+ forwardExtent: number;
13
+ lateralExtent: number;
14
+ strokeOutset: number;
15
+ underlayPolicy: BoardConnectorMarkerUnderlayPolicy;
16
+ }
17
+ export interface IBoardConnectorMarkerPaintBounds {
18
+ left: number;
19
+ top: number;
20
+ width: number;
21
+ height: number;
22
+ }
5
23
  export declare function resolveBoardConnectorMarkerSize(marker: IBoardConnectorMarker, strokeWidth: number): number;
24
+ export declare function resolveBoardConnectorMarkerGeometry(marker: IBoardConnectorMarker | undefined, strokeWidth: number): IBoardConnectorMarkerGeometry;
25
+ export declare function resolveBoardConnectorMarkerPaintBounds(marker: IBoardConnectorMarker | undefined, point: IBoardConnectorPoint, tangent: IBoardConnectorPoint, strokeWidth: number): IBoardConnectorMarkerPaintBounds | null;
26
+ export declare function resolveBoardConnectorMarkerTerminalLength(marker: IBoardConnectorMarker | undefined, strokeWidth: number, endpointGap: number, cornerExit: number): number;
6
27
  export declare function getBoardConnectorMarkerTrim(marker: IBoardConnectorMarker | undefined, strokeWidth: number): number;
7
28
  export declare function hitTestBoardConnectorMarker(marker: IBoardConnectorMarker | undefined, point: IBoardConnectorPoint, markerPoint: IBoardConnectorPoint, tangent: IBoardConnectorPoint, style: {
8
29
  strokeWidth: number;
@@ -10,6 +10,7 @@ export interface ICreateBoardConnectorQuickConnectElementsOptions {
10
10
  style: IBoardConnectorStyle;
11
11
  targetPoint?: IBoardConnectorPoint;
12
12
  shapeType?: ShapeTypeEnum | string;
13
+ sourceShape?: IBoardShapeElement;
13
14
  sourceSize?: {
14
15
  width?: number;
15
16
  height?: number;
@@ -7,5 +7,4 @@ export interface IResolveBoardConnectorRenderBoundsOptions {
7
7
  stabilityHint?: IResolveBoardConnectorRoutePointsOptions['stabilityHint'];
8
8
  }
9
9
  export declare function expandBoardConnectorBounds(bounds: IBoardConnectorRouteBounds, padding: number): IBoardConnectorRouteBounds;
10
- export declare function resolveBoardConnectorMarkerBoundsPadding(connectorData: IBoardConnectorData): number;
11
10
  export declare function resolveBoardConnectorRenderBounds(connectorData: IBoardConnectorData, options?: IResolveBoardConnectorRenderBoundsOptions): IBoardConnectorRouteBounds;
@@ -0,0 +1,33 @@
1
+ import type { IBoardConnectorData, IBoardConnectorPoint, IBoardElementData } from '@univerjs-pro/boards';
2
+ import type { IBoardConnectorMarkerAnchors } from './board-connector-marker-anchor.util';
3
+ import type { IBoardConnectorMarkerGeometry, IBoardConnectorMarkerPaintBounds } from './board-connector-marker.util';
4
+ import type { BoardConnectorPathCommand, IBoardConnectorRouteBounds } from './board-connector-routing.util';
5
+ export interface IBoardConnectorTerminalRenderGeometry {
6
+ anchor: IBoardConnectorMarkerAnchors['start'];
7
+ marker: IBoardConnectorMarkerGeometry;
8
+ markerBounds: IBoardConnectorMarkerPaintBounds | null;
9
+ endpointGap: number;
10
+ strokeTrim: number;
11
+ terminalSegmentLength: number;
12
+ requiredTerminalLength: number;
13
+ }
14
+ export interface IBoardConnectorRenderGeometry {
15
+ routePoints: readonly IBoardConnectorPoint[];
16
+ pathCommands: readonly BoardConnectorPathCommand[];
17
+ strokeRoutePoints: readonly IBoardConnectorPoint[];
18
+ strokePathCommands: readonly BoardConnectorPathCommand[];
19
+ start: IBoardConnectorTerminalRenderGeometry;
20
+ end: IBoardConnectorTerminalRenderGeometry;
21
+ strokePathLength: number;
22
+ dashOffset: number;
23
+ bounds: IBoardConnectorRouteBounds;
24
+ }
25
+ export interface IResolveBoardConnectorRenderGeometryOptions {
26
+ connectorData: IBoardConnectorData;
27
+ routePoints: readonly IBoardConnectorPoint[];
28
+ pathCommands: readonly BoardConnectorPathCommand[];
29
+ elementData?: Record<string, IBoardElementData>;
30
+ fallbackBounds?: IBoardConnectorRouteBounds;
31
+ }
32
+ export declare function resolveBoardConnectorDashOffset(dash: readonly number[] | undefined, pathLength: number, hasStartMarker: boolean, hasEndMarker: boolean): number;
33
+ export declare function resolveBoardConnectorRenderGeometry(options: IResolveBoardConnectorRenderGeometryOptions): IBoardConnectorRenderGeometry | null;
@@ -1,4 +1,4 @@
1
- import type { IBoardConnectorData, IBoardConnectorElement, IBoardConnectorEndpoint, IBoardConnectorPoint, IBoardElementData, IBoardElementTransform } from '@univerjs-pro/boards';
1
+ import type { IBoardConnectorData, IBoardConnectorElement, IBoardConnectorEndpoint, IBoardConnectorMarker, IBoardConnectorPoint, IBoardElementData, IBoardElementTransform } from '@univerjs-pro/boards';
2
2
  import type { IBoardRoutingObstacleIndex, IBoardRoutingSegment } from './board-connector-router.util';
3
3
  export interface IBoardConnectorRouteBounds {
4
4
  left: number;
@@ -45,8 +45,10 @@ export interface IResolveBoardConnectorRoutePointsOptions extends IResolveBoardC
45
45
  };
46
46
  resolvedRoutePoints?: readonly IBoardConnectorPoint[];
47
47
  routingCache?: BoardConnectorRoutingCache;
48
+ connectorCrossingPenaltyEnabled?: boolean;
48
49
  }
49
50
  export declare const BOARD_CONNECTOR_MIN_BOUNDS_SIZE = 1;
51
+ export declare const BOARD_CONNECTOR_ROUNDED_CORNER_RADIUS = 16;
50
52
  type IBoardConnectorElementData = IBoardElementData & {
51
53
  element: IBoardConnectorElement;
52
54
  };
@@ -57,15 +59,22 @@ export declare function isBoardConnectorRouteAlignedWithEndpoints(connectorData:
57
59
  export declare function normalizeBoardConnectorEndpointManualRoutePoints(connectorData: IBoardConnectorData, options?: IResolveBoardConnectorEndpointOptions): IBoardConnectorData;
58
60
  export declare class BoardConnectorRoutingCache {
59
61
  private _elementData?;
62
+ private readonly _connectorSceneKeyById;
63
+ private readonly _obstacleKeyByElementId;
60
64
  private readonly _obstacleIndexesByExclusion;
61
65
  private readonly _routePointsByConnectorId;
62
66
  private readonly _crossingRoutePointsByConnectorId;
63
67
  invalidate(elementData?: Record<string, IBoardElementData>, invalidatedElementIds?: Iterable<string>): string[];
68
+ private _reset;
69
+ private _syncConnectorSnapshot;
70
+ private _syncObstacleSnapshot;
71
+ private _invalidateDependentRoutes;
64
72
  getObstacleIndex(elementData: Record<string, IBoardElementData> | undefined, excludeElementIds: readonly string[]): IBoardRoutingObstacleIndex;
65
73
  resolveRoutePoints(connectorData: IBoardConnectorData, options?: IResolveBoardConnectorRoutePointsOptions): IBoardConnectorPoint[];
66
74
  private _resolveRouteDependency;
67
75
  resolveCrossingRoutePoints(item: IBoardConnectorElementData, elementData: Record<string, IBoardElementData>): IBoardConnectorPoint[];
68
76
  }
77
+ export declare function resolveBoardConnectorTerminalPadding(marker: IBoardConnectorMarker | undefined, strokeWidth: number, rounded: boolean): number;
69
78
  export declare function resolveBoardConnectorRoutePoints(connectorData: IBoardConnectorData, options?: IResolveBoardConnectorRoutePointsOptions): IBoardConnectorPoint[];
70
79
  export declare function resolveBoardConnectorPathCommands(connectorData: IBoardConnectorData, options?: IResolveBoardConnectorRoutePointsOptions): BoardConnectorPathCommand[];
71
80
  export declare function resolveBoardConnectorPathBounds(commands: readonly BoardConnectorPathCommand[], fallbackTransform?: IBoardElementTransform): IBoardConnectorRouteBounds;
@@ -78,8 +87,11 @@ export declare function resolveBoardConnectorPathBounds(commands: readonly Board
78
87
  */
79
88
  export declare function resolveBoardConnectorPathGeometry(commands: readonly BoardConnectorPathCommand[]): IBoardConnectorPathGeometry | null;
80
89
  export declare function trimBoardConnectorPathCommands(commands: readonly BoardConnectorPathCommand[], startTrim: number, endTrim: number): BoardConnectorPathCommand[];
90
+ export declare function resolveBoardConnectorPathLength(commands: readonly BoardConnectorPathCommand[]): number;
91
+ export declare function resolveBoardConnectorRoundedRoutePathLength(points: readonly IBoardConnectorPoint[], cornerRadius?: number): number;
81
92
  export declare function hitTestBoardConnectorPath(point: IBoardConnectorPoint, commands: readonly BoardConnectorPathCommand[], tolerance: number): boolean;
82
93
  export declare function resolveBoardConnectorRouteBounds(points: readonly IBoardConnectorPoint[], fallbackTransform?: IBoardElementTransform): IBoardConnectorRouteBounds;
83
94
  export declare function distanceToBoardConnectorSegment(point: IBoardConnectorPoint, start: IBoardConnectorPoint, end: IBoardConnectorPoint): number;
95
+ export declare function resolveBoardConnectorPolylineLength(points: readonly IBoardConnectorPoint[]): number;
84
96
  export declare function trimBoardConnectorRoute(points: readonly IBoardConnectorPoint[], startTrim: number, endTrim: number): IBoardConnectorPoint[];
85
97
  export {};
@@ -0,0 +1,15 @@
1
+ import type { BoardBackgroundImageFit } from '@univerjs-pro/boards';
2
+ export interface IBoardPageBackgroundImageSource {
3
+ fit: BoardBackgroundImageFit;
4
+ image: HTMLImageElement;
5
+ }
6
+ export interface IDrawBoardPageBackgroundImageOptions {
7
+ cropLeft?: number;
8
+ cropTop?: number;
9
+ frameHeight: number;
10
+ frameWidth: number;
11
+ scaleX?: number;
12
+ scaleY?: number;
13
+ }
14
+ export declare function getBoardPageBackgroundImageSource(unitId: string, subUnitId: string, root?: ParentNode): IBoardPageBackgroundImageSource | null;
15
+ export declare function drawBoardPageBackgroundImage(context: CanvasRenderingContext2D, source: IBoardPageBackgroundImageSource, options: IDrawBoardPageBackgroundImageOptions): void;
@@ -1,8 +1,7 @@
1
- import type { IBoardPage, IBoardPageSize } from '@univerjs-pro/boards';
1
+ import type { BoardBackgroundImageFit, IBoardPage, IBoardPageSize } from '@univerjs-pro/boards';
2
2
  import type { IUniverBoardsUIConfig } from '../config/config';
3
3
  export declare const BOARD_RENDER_SCENE_DEFAULT_MIN_SIZE: IBoardPageSize;
4
- export declare const BOARD_RENDER_SCENE_DEFAULT_FALLBACK_FILL = "#ffffff";
5
- export declare const BOARD_RENDER_SCENE_DARK_FALLBACK_FILL = "#fcfdff";
4
+ export declare const BOARD_RENDER_SCENE_DEFAULT_FALLBACK_FILL = "gray.50";
6
5
  export interface IResolveBoardRenderSceneSizeOptions {
7
6
  engineWidth?: number;
8
7
  engineHeight?: number;
@@ -12,8 +11,14 @@ export interface IResolveBoardRenderSceneSizeOptions {
12
11
  }
13
12
  export interface IResolveBoardPageBackgroundFillOptions {
14
13
  darkMode?: boolean;
15
- darkFallbackFill?: string;
16
14
  }
17
- export declare function resolveBoardPageBackgroundFill(page: Pick<IBoardPage, 'background'> | null | undefined, fallbackFill?: string, options?: IResolveBoardPageBackgroundFillOptions): string;
15
+ export interface IBoardBackgroundImageDrawRect {
16
+ left: number;
17
+ top: number;
18
+ width: number;
19
+ height: number;
20
+ }
21
+ export declare function resolveBoardPageBackgroundFill(page: Pick<IBoardPage, 'background'> | null | undefined, options?: IResolveBoardPageBackgroundFillOptions): string;
22
+ export declare function resolveBoardBackgroundImageDrawRect(frameWidth: number, frameHeight: number, imageWidth: number, imageHeight: number, fit?: BoardBackgroundImageFit): IBoardBackgroundImageDrawRect;
18
23
  export declare function resolveBoardRenderSceneMinSize(config?: Pick<IUniverBoardsUIConfig, 'scene'>): IBoardPageSize;
19
24
  export declare function resolveBoardRenderSceneSize({ engineWidth, engineHeight, sceneWidth, sceneHeight, minSize, }: IResolveBoardRenderSceneSizeOptions): IBoardPageSize;
@@ -1,4 +1,6 @@
1
+ import type { BoardModel } from '@univerjs-pro/boards';
1
2
  import type { IContextService, IUniverInstanceService } from '@univerjs/core';
2
- import type { IBoardElementStateService } from '../services/board-element-state.service';
3
+ import type { BoardShortcutRuntimeService } from '../services/board-shortcut-runtime.service';
3
4
  export declare function isBoardKeyboardOwner(instanceService: IUniverInstanceService, boardUnitId: string): boolean;
4
- export declare function isBoardShortcutAvailable(contextService: IContextService, elementStateService: IBoardElementStateService, instanceService: IUniverInstanceService): boolean;
5
+ export declare function isBoardShortcutAvailable(contextService: Pick<IContextService, 'getContextValue'>): boolean;
6
+ export declare function resolveBoardShortcutModel(runtime: BoardShortcutRuntimeService): BoardModel | null;
@@ -0,0 +1,55 @@
1
+ import type { IBoardViewportBarPadding } from '../config/config';
2
+ export interface IBoardViewportBarRect {
3
+ height: number;
4
+ left: number;
5
+ top: number;
6
+ width: number;
7
+ }
8
+ export interface IBoardViewportBarNavigationBounds {
9
+ bottom: number;
10
+ left: number;
11
+ right: number;
12
+ top: number;
13
+ }
14
+ export interface IResolvedBoardViewportBarPadding {
15
+ bottom: number;
16
+ left: number;
17
+ right: number;
18
+ top: number;
19
+ }
20
+ export interface IBoardViewportBarSafeArea {
21
+ horizontalEnd?: number;
22
+ horizontalStart?: number;
23
+ verticalEnd?: number;
24
+ verticalStart?: number;
25
+ }
26
+ export interface IBoardViewportBarAxisLayout {
27
+ barRect: IBoardViewportBarRect;
28
+ maxViewportStart: number;
29
+ minViewportStart: number;
30
+ travelLength: number;
31
+ viewportStart: number;
32
+ }
33
+ export interface IBoardViewportBarLayout {
34
+ horizontal: IBoardViewportBarAxisLayout | null;
35
+ vertical: IBoardViewportBarAxisLayout | null;
36
+ }
37
+ export interface IResolveBoardViewportBarLayoutOptions {
38
+ barSize: number;
39
+ edgeOffset: number;
40
+ horizontal: boolean;
41
+ minBarLength: number;
42
+ navigationBounds: IBoardViewportBarNavigationBounds;
43
+ safeArea?: IBoardViewportBarSafeArea;
44
+ vertical: boolean;
45
+ viewport: IBoardViewportBarRect;
46
+ viewportPixelSize: {
47
+ height: number;
48
+ width: number;
49
+ };
50
+ }
51
+ export declare function resolveBoardViewportBarPadding(padding: number | IBoardViewportBarPadding | undefined): IResolvedBoardViewportBarPadding;
52
+ export declare function resolveBoardViewportBarNavigationBounds(contentBounds: IBoardViewportBarRect | null | undefined, viewport: IBoardViewportBarRect, padding: IResolvedBoardViewportBarPadding): IBoardViewportBarNavigationBounds;
53
+ export declare function expandBoardViewportBarNavigationBounds(current: IBoardViewportBarNavigationBounds, target: IBoardViewportBarNavigationBounds): IBoardViewportBarNavigationBounds;
54
+ export declare function resolveBoardViewportBarLayout(options: IResolveBoardViewportBarLayoutOptions): IBoardViewportBarLayout;
55
+ export declare function resolveBoardViewportStartFromBarDrag(layout: IBoardViewportBarAxisLayout, pointerDelta: number): number;
@@ -49,6 +49,7 @@ export declare function getBoardPointFromClient(element: HTMLElement, clientX: n
49
49
  x: number;
50
50
  y: number;
51
51
  };
52
+ export declare function getBoardViewportPoint(boardPoint: IBoardViewportPoint, viewport: IBoardViewportTransform): IBoardViewportPoint;
52
53
  /**
53
54
  * Maps the board world coordinate system onto the DOM overlay in one
54
55
  * compositor-friendly transform. Children of this layer keep their unscaled
@@ -21,10 +21,16 @@ export declare function MarkerDropdown(props: {
21
21
  export declare function SettingsDropdown(props: {
22
22
  routing?: BoardConnectorRouting;
23
23
  style: IBoardConnectorStyle;
24
- onRouting: (routing: BoardConnectorRouting) => void;
25
- onStyle: (style: Partial<IBoardConnectorStyle>) => void;
24
+ onRouting: (routing: BoardConnectorRouting) => void | Promise<void>;
25
+ onStyle: (style: Partial<IBoardConnectorStyle>) => void | Promise<void>;
26
26
  }): import("react").JSX.Element;
27
+ export declare function applyConnectorRoutingStyleOption(option: {
28
+ routing: BoardConnectorRouting;
29
+ cornerStyle?: IBoardConnectorStyle['cornerStyle'];
30
+ }, onRouting: (routing: BoardConnectorRouting) => void | Promise<void>, onStyle: (style: Partial<IBoardConnectorStyle>) => void | Promise<void>): Promise<void>;
27
31
  export declare function createConnectorLabelRichTextBuilder(label: IBoardConnectorLabel): RichTextBuilder;
32
+ export declare function isConnectorLabelSettingsNestedPopupTarget(target: EventTarget | null): boolean;
33
+ export declare function shouldCloseConnectorLabelStylePanel(panel: Element, target: EventTarget | null): boolean;
28
34
  export declare function ConnectorLabelSettingsDropdown(props: {
29
35
  label: IBoardConnectorLabel;
30
36
  onEditText: () => void;
@@ -41,6 +41,7 @@ interface IBoardMindMapTemplateGroup {
41
41
  }
42
42
  export declare const BOARD_MIND_MAP_TEMPLATE_GROUPS: IBoardMindMapTemplateGroup[];
43
43
  export declare function resolveMindMapPresetInsertTemplate(preset: IBoardMindMapInsertPreset, nodeText: string): {
44
+ rootText: string;
44
45
  structureKind: BoardMindMapPresetStructureKind;
45
46
  children: {
46
47
  text: string;
@@ -0,0 +1,8 @@
1
+ import type { BoardModel, IBoardImageBackground } from '@univerjs-pro/boards';
2
+ import type { CSSProperties } from 'react';
3
+ export interface IBoardPageBackgroundViewProps {
4
+ boardModel?: BoardModel;
5
+ pageId?: string;
6
+ }
7
+ export declare function createBoardPageBackgroundImageStyle(background: IBoardImageBackground): CSSProperties;
8
+ export declare const BoardPageBackgroundView: import("react").MemoExoticComponent<({ boardModel, pageId, }: IBoardPageBackgroundViewProps) => import("react").JSX.Element>;
@@ -1,3 +1,17 @@
1
+ import type { ComponentProps, ReactNode } from 'react';
2
+ import { Button } from '@univerjs/design';
1
3
  export declare const BOARD_TOP_RIGHT_MENU_LEADING_PART = "board.top-right-menu.leading";
2
4
  export declare const BOARD_SETTINGS_MENU_ACTIONS_PART = "boards-ui.settings-menu.actions";
5
+ type TopRightMenuButtonProps = ComponentProps<typeof Button> & {
6
+ children: ReactNode;
7
+ label: string;
8
+ tooltipVisible?: boolean;
9
+ };
10
+ interface IBoardFindResultTextProps {
11
+ query: string;
12
+ text: string;
13
+ }
14
+ export declare function BoardFindResultText(props: IBoardFindResultTextProps): string | (string | import("react").JSX.Element)[];
15
+ export declare const TopRightMenuButton: import("react").ForwardRefExoticComponent<Omit<TopRightMenuButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
3
16
  export declare function BoardSettingsMenu(): import("react").JSX.Element;
17
+ export {};