@univerjs-pro/boards-ui 1.0.0-beta.0 → 1.0.0-beta.2
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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/cjs/shape-preset-labels-C4G0G9GI.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/es/shape-preset-labels-092BdVw3.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.css +45 -40
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/shape-preset-labels-092BdVw3.js +1 -1
- package/lib/types/commands/commands/analyze-board-rendered-layout.command.d.ts +2 -1
- package/lib/types/commands/operations/board-chart-dialog.operation.d.ts +2 -2
- package/lib/types/commands/operations/board-pointer.operation.d.ts +8 -0
- package/lib/types/commands/operations/board-selection.operation.d.ts +4 -2
- package/lib/types/commands/operations/board-ui-control.operation.d.ts +30 -0
- package/lib/types/common/board-shortcuts.d.ts +1 -3
- package/lib/types/config/config.d.ts +29 -2
- package/lib/types/const.d.ts +2 -0
- package/lib/types/controllers/board-clipboard-shortcut.controller.d.ts +2 -21
- package/lib/types/controllers/board-connector-interaction.render-controller.d.ts +1 -0
- package/lib/types/controllers/board-element-selection.controller.d.ts +1 -0
- package/lib/types/controllers/board-element-transform.controller.d.ts +3 -0
- package/lib/types/controllers/board-element-transformer-config.util.d.ts +22 -21
- package/lib/types/controllers/board-grouping-shortcut.controller.d.ts +2 -14
- package/lib/types/controllers/board-history-shortcut.controller.d.ts +2 -8
- package/lib/types/controllers/board-layout-shortcut.controller.d.ts +2 -14
- package/lib/types/controllers/board-order-shortcut.controller.d.ts +2 -10
- package/lib/types/controllers/board-render.controller.d.ts +1 -0
- package/lib/types/controllers/board-selection-shortcut.controller.d.ts +2 -14
- package/lib/types/controllers/board-settings-shortcut.controller.d.ts +2 -14
- package/lib/types/controllers/board-shape-text-float-menu.render-controller.d.ts +5 -4
- package/lib/types/controllers/board-swimlane-lane-shortcut.controller.d.ts +5 -17
- package/lib/types/controllers/board-tool-shortcut.controller.d.ts +5 -16
- package/lib/types/controllers/board-unit-presence.controller.d.ts +6 -0
- package/lib/types/controllers/board-unit-presence.render-controller.d.ts +37 -0
- package/lib/types/controllers/board-view-shortcut.controller.d.ts +2 -23
- package/lib/types/controllers/board-viewport-bar.render-controller.d.ts +43 -0
- package/lib/types/controllers/board-viewport-input.render-controller.d.ts +8 -0
- package/lib/types/facade/f-board-ui.d.ts +19 -0
- package/lib/types/facade/index.d.ts +1 -0
- package/lib/types/index.d.ts +9 -4
- package/lib/types/locale/en-US.d.ts +2 -0
- package/lib/types/plugin.d.ts +7 -0
- package/lib/types/render-adapters/board-element-render-adapter.d.ts +3 -2
- package/lib/types/render-objects/board-connector-object.d.ts +17 -5
- package/lib/types/render-objects/board-shape-object.d.ts +1 -0
- package/lib/types/render-objects/board-viewport-bar-object.d.ts +33 -0
- package/lib/types/services/board-canvas-pop-manager.service.d.ts +3 -1
- package/lib/types/services/board-clipboard.service.d.ts +10 -3
- package/lib/types/services/board-element-edit.service.d.ts +2 -0
- package/lib/types/services/board-embed-integration.service.d.ts +9 -0
- package/lib/types/services/board-find.service.d.ts +1 -0
- package/lib/types/services/board-image-insert.service.d.ts +3 -1
- package/lib/types/services/board-pointer-state.service.d.ts +21 -0
- package/lib/types/services/board-screenshot.service.d.ts +3 -1
- package/lib/types/services/board-settings-menu-contribution.service.d.ts +37 -0
- package/lib/types/services/board-settings.service.d.ts +3 -5
- package/lib/types/services/board-shortcut-runtime.service.d.ts +32 -0
- package/lib/types/services/board-text-editing.service.d.ts +9 -4
- package/lib/types/services/board-tool.service.d.ts +3 -1
- package/lib/types/services/board-toolbar-contribution.service.d.ts +3 -2
- package/lib/types/services/board-ui-state.service.d.ts +2 -1
- package/lib/types/services/board-unit-presence-ui-adapter.service.d.ts +32 -0
- package/lib/types/services/board-viewport.service.d.ts +2 -1
- package/lib/types/utils/board-connector-hit-test.util.d.ts +2 -0
- package/lib/types/utils/board-connector-marker-anchor.util.d.ts +0 -1
- package/lib/types/utils/board-connector-marker.util.d.ts +21 -0
- package/lib/types/utils/board-connector-quick-connect.util.d.ts +1 -0
- package/lib/types/utils/board-connector-render-bounds.util.d.ts +0 -1
- package/lib/types/utils/board-connector-render-geometry.util.d.ts +33 -0
- package/lib/types/utils/board-connector-routing.util.d.ts +13 -1
- package/lib/types/utils/board-page-background-image.util.d.ts +15 -0
- package/lib/types/utils/board-render-page.util.d.ts +10 -5
- package/lib/types/utils/board-shortcut-preconditions.util.d.ts +4 -2
- package/lib/types/utils/board-viewport-bar.util.d.ts +55 -0
- package/lib/types/utils/board-viewport.util.d.ts +1 -0
- package/lib/types/views/BoardConnectorFloatingToolbarControls.d.ts +8 -2
- package/lib/types/views/BoardFloatingToolPanel.d.ts +1 -0
- package/lib/types/views/BoardPageBackgroundView.d.ts +8 -0
- package/lib/types/views/BoardSettingsMenu.d.ts +14 -0
- package/lib/types/views/BoardShapeFloatingToolbar.d.ts +2 -3
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +19 -19
|
@@ -1,27 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ICommandService, IConfigService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
3
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
1
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
4
2
|
import { IShortcutService } from '@univerjs/ui';
|
|
5
|
-
import { BoardClipboardService } from '../services/board-clipboard.service';
|
|
6
|
-
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
7
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
8
|
-
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
9
3
|
export declare const BOARD_CLIPBOARD_SHORTCUT_OPERATION_ID = "board.operation.clipboard-shortcut";
|
|
10
4
|
export declare class BoardClipboardShortcutController extends RxDisposable {
|
|
11
|
-
private readonly _instanceService;
|
|
12
|
-
private readonly _configService;
|
|
13
|
-
private readonly _renderManagerService;
|
|
14
|
-
private readonly _elementStateService;
|
|
15
|
-
private readonly _stateService;
|
|
16
|
-
private readonly _clipboardService;
|
|
17
|
-
private readonly _elementEditService;
|
|
18
5
|
private readonly _commandService;
|
|
19
6
|
private readonly _shortcutService;
|
|
20
|
-
|
|
21
|
-
constructor(_instanceService: IUniverInstanceService, _configService: IConfigService, _renderManagerService: IRenderManagerService, _elementStateService: IBoardElementStateService, _stateService: IBoardUIStateService, _clipboardService: BoardClipboardService, _elementEditService: BoardElementEditService, _commandService: ICommandService, _shortcutService: IShortcutService, _boardElementService: IBoardElementService);
|
|
22
|
-
private _init;
|
|
23
|
-
private _createClipboardShortcutOperation;
|
|
24
|
-
private _createShortcutItem;
|
|
25
|
-
private _handleShortcut;
|
|
26
|
-
private _getCurrentBoardModel;
|
|
7
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
27
8
|
}
|
|
@@ -93,6 +93,7 @@ export declare class BoardConnectorInteractionRenderController extends RxDisposa
|
|
|
93
93
|
private _syncConnectorEditHandles;
|
|
94
94
|
private _commitConnectorPreviewUpdate;
|
|
95
95
|
private _activateConnectorDrag;
|
|
96
|
+
private _hasActiveConnectorDrag;
|
|
96
97
|
private _finishFreePolylineDraft;
|
|
97
98
|
private _clearQuickShapePopup;
|
|
98
99
|
private _insertQuickConnectedShape;
|
|
@@ -33,6 +33,7 @@ export declare class BoardElementSelectionController extends RxDisposable implem
|
|
|
33
33
|
private _selectionDraft;
|
|
34
34
|
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _stateSrv: IBoardElementStateService, _selectionService: BoardSelectionService, _selectionOverlayService: BoardSelectionOverlayService, _uiStateService: IBoardUIStateService, _contextMenuService: IContextMenuService, _platformService: IPlatformService, _inkStateService: IInkUIStateService, _inkEditService: IBoardInkEditService, _boardTextEditingService: BoardTextEditingService);
|
|
35
35
|
private _init;
|
|
36
|
+
private _subscribeToTransformerSelection;
|
|
36
37
|
private _subscribeToTextEditing;
|
|
37
38
|
private _wireScenePointerSelection;
|
|
38
39
|
private _startSelectionGesture;
|
|
@@ -23,6 +23,7 @@ export declare class BoardElementTransformController extends RxDisposable implem
|
|
|
23
23
|
private _isForceCaptureModifierActive;
|
|
24
24
|
private _shiftTransformStartRects;
|
|
25
25
|
private _areTransformerControlsHiddenForTransform;
|
|
26
|
+
private _previewConnectorIds;
|
|
26
27
|
private _xSnapSession;
|
|
27
28
|
private _ySnapSession;
|
|
28
29
|
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _stateSrv: IBoardElementStateService, _editService: BoardElementEditService, _domLayerService: BoardDomLayerService, _uiStateService?: IBoardUIStateService | undefined);
|
|
@@ -46,9 +47,11 @@ export declare class BoardElementTransformController extends RxDisposable implem
|
|
|
46
47
|
private _applyRealtimeTransformModifiers;
|
|
47
48
|
private _applyProportionalResize;
|
|
48
49
|
private _syncRealtimeTransformPreview;
|
|
50
|
+
private _updateRealtimeConnectorPreview;
|
|
49
51
|
private _syncContainerDescendantPreviews;
|
|
50
52
|
private _createRealtimePreviewElementData;
|
|
51
53
|
private _syncShapeBoundConnectorPreviews;
|
|
54
|
+
private _restoreConnectorPreviewsFromModel;
|
|
52
55
|
private _withPreviewConnectorTransform;
|
|
53
56
|
private _syncTransformToData;
|
|
54
57
|
private _subscribeToForceCaptureModifier;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
export declare const BOARD_TRANSFORMER_CONFIG: {
|
|
2
|
-
readonly
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
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";
|
|
2
|
+
readonly keepRatio: false;
|
|
3
|
+
readonly moveBoundaryEnabled: false;
|
|
4
|
+
readonly controlLayerIndex: 4;
|
|
5
|
+
readonly resizeEnabled: true;
|
|
12
6
|
readonly rotateEnabled: true;
|
|
13
|
-
readonly
|
|
14
|
-
readonly rotateCornerRadius: 9;
|
|
15
|
-
readonly rotateAnchorOffset: 28;
|
|
7
|
+
readonly rotateAnchorOffset: number;
|
|
16
8
|
readonly rotateAnchorPosition: "bottom";
|
|
17
9
|
readonly rotateLineEnabled: false;
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
10
|
+
readonly rotateSize: number;
|
|
11
|
+
readonly rotateCornerRadius: number;
|
|
12
|
+
readonly rotateFill: string;
|
|
13
|
+
readonly rotateStroke: string;
|
|
14
|
+
readonly rotateStrokeWidth: number;
|
|
21
15
|
readonly rotateIconEnabled: true;
|
|
22
|
-
readonly rotateIconStroke:
|
|
23
|
-
readonly rotateIconStrokeWidth:
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
16
|
+
readonly rotateIconStroke: string;
|
|
17
|
+
readonly rotateIconStrokeWidth: number;
|
|
18
|
+
readonly borderEnabled: true;
|
|
19
|
+
readonly borderStroke: string;
|
|
20
|
+
readonly borderStrokeWidth: number;
|
|
21
|
+
readonly borderSpacing: number;
|
|
22
|
+
readonly anchorFill: string;
|
|
23
|
+
readonly anchorStroke: string;
|
|
24
|
+
readonly anchorStrokeWidth: number;
|
|
25
|
+
readonly anchorSize: number;
|
|
26
|
+
readonly anchorCornerRadius: number;
|
|
27
|
+
readonly anchorStyle: "canva";
|
|
27
28
|
};
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
1
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
3
2
|
import { IShortcutService } from '@univerjs/ui';
|
|
4
|
-
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
5
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
6
3
|
export declare const BOARD_GROUPING_SHORTCUT_OPERATION_ID = "board.operation.grouping-shortcut";
|
|
7
4
|
export declare class BoardGroupingShortcutController extends RxDisposable {
|
|
8
|
-
private readonly _instanceService;
|
|
9
|
-
private readonly _boardElementService;
|
|
10
|
-
private readonly _elementStateService;
|
|
11
|
-
private readonly _elementEditService;
|
|
12
5
|
private readonly _commandService;
|
|
13
6
|
private readonly _shortcutService;
|
|
14
|
-
constructor(
|
|
15
|
-
private _init;
|
|
16
|
-
private _createGroupingShortcutOperation;
|
|
17
|
-
private _createShortcutItem;
|
|
18
|
-
private _handleShortcut;
|
|
19
|
-
private _getCurrentBoardModel;
|
|
7
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
20
8
|
}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { IShortcutService } from '@univerjs/ui';
|
|
3
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
4
3
|
export declare class BoardHistoryShortcutController extends RxDisposable {
|
|
5
|
-
private readonly _instanceService;
|
|
6
|
-
private readonly _elementStateService;
|
|
7
4
|
private readonly _shortcutService;
|
|
8
|
-
constructor(
|
|
9
|
-
private _init;
|
|
10
|
-
private _createShortcutItem;
|
|
11
|
-
private _getCurrentBoardModel;
|
|
5
|
+
constructor(_shortcutService: IShortcutService);
|
|
12
6
|
}
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
1
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
3
2
|
import { IShortcutService } from '@univerjs/ui';
|
|
4
|
-
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
5
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
6
3
|
export declare const BOARD_LAYOUT_SHORTCUT_OPERATION_ID = "board.operation.layout-shortcut";
|
|
7
4
|
export declare class BoardLayoutShortcutController extends RxDisposable {
|
|
8
|
-
private readonly _instanceService;
|
|
9
|
-
private readonly _boardElementService;
|
|
10
|
-
private readonly _elementStateService;
|
|
11
|
-
private readonly _elementEditService;
|
|
12
5
|
private readonly _commandService;
|
|
13
6
|
private readonly _shortcutService;
|
|
14
|
-
constructor(
|
|
15
|
-
private _init;
|
|
16
|
-
private _createLayoutShortcutOperation;
|
|
17
|
-
private _createShortcutItem;
|
|
18
|
-
private _handleShortcut;
|
|
19
|
-
private _getCurrentBoardModel;
|
|
7
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
20
8
|
}
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import { ICommandService,
|
|
1
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { IShortcutService } from '@univerjs/ui';
|
|
3
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
4
3
|
export declare const BOARD_ORDER_SHORTCUT_OPERATION_ID = "board.operation.order-shortcut";
|
|
5
4
|
export declare class BoardOrderShortcutController extends RxDisposable {
|
|
6
|
-
private readonly _instanceService;
|
|
7
|
-
private readonly _elementStateService;
|
|
8
5
|
private readonly _commandService;
|
|
9
6
|
private readonly _shortcutService;
|
|
10
|
-
constructor(
|
|
11
|
-
private _init;
|
|
12
|
-
private _createOrderShortcutOperation;
|
|
13
|
-
private _createShortcutItem;
|
|
14
|
-
private _handleShortcut;
|
|
15
|
-
private _getCurrentBoardModel;
|
|
7
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
16
8
|
}
|
|
@@ -35,6 +35,7 @@ export declare class BoardRenderController extends RxDisposable implements IRend
|
|
|
35
35
|
private _renderBoardElements;
|
|
36
36
|
private _resolveAddedElementDirtyIds;
|
|
37
37
|
private _syncRenderedObjectZIndexes;
|
|
38
|
+
private _syncRenderedElementOrder;
|
|
38
39
|
private _getBoardRenderObject;
|
|
39
40
|
private _resolveExistingBoardElementObjectLayerIndex;
|
|
40
41
|
private _resolveBoardElementObjectLayerIndex;
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
1
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
3
2
|
import { IShortcutService } from '@univerjs/ui';
|
|
4
|
-
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
5
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
6
3
|
export declare const BOARD_SELECTION_SHORTCUT_OPERATION_ID = "board.operation.selection-shortcut";
|
|
7
4
|
export declare class BoardSelectionShortcutController extends RxDisposable {
|
|
8
|
-
private readonly _instanceService;
|
|
9
|
-
private readonly _boardElementService;
|
|
10
|
-
private readonly _elementStateService;
|
|
11
|
-
private readonly _elementEditService;
|
|
12
5
|
private readonly _commandService;
|
|
13
6
|
private readonly _shortcutService;
|
|
14
|
-
constructor(
|
|
15
|
-
private _init;
|
|
16
|
-
private _createSelectionShortcutOperation;
|
|
17
|
-
private _createShortcutItem;
|
|
18
|
-
private _handleShortcut;
|
|
19
|
-
private _getCurrentBoardModel;
|
|
7
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
20
8
|
}
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import { ICommandService,
|
|
1
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { IShortcutService } from '@univerjs/ui';
|
|
3
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
4
|
-
import { BoardSettingsService } from '../services/board-settings.service';
|
|
5
|
-
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
6
3
|
export declare const BOARD_SETTINGS_SHORTCUT_OPERATION_ID = "board.operation.settings-shortcut";
|
|
7
4
|
export declare class BoardSettingsShortcutController extends RxDisposable {
|
|
8
|
-
private readonly _instanceService;
|
|
9
|
-
private readonly _elementStateService;
|
|
10
|
-
private readonly _stateService;
|
|
11
|
-
private readonly _settingsService;
|
|
12
5
|
private readonly _commandService;
|
|
13
6
|
private readonly _shortcutService;
|
|
14
|
-
constructor(
|
|
15
|
-
private _init;
|
|
16
|
-
private _createSettingsShortcutOperation;
|
|
17
|
-
private _createShortcutItem;
|
|
18
|
-
private _handleShortcut;
|
|
19
|
-
private _getCurrentBoardModel;
|
|
7
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
20
8
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { DocumentDataModel } from '@univerjs/core';
|
|
2
2
|
import type { IRenderContext } from '@univerjs/engine-render';
|
|
3
|
-
import { ShapeTextFloatMenuRenderControllerBase } from '@univerjs-pro/shape-editor-ui';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { ShapeTextFloatMenuRenderControllerBase, ShapeTextHyperLinkPopupService } from '@univerjs-pro/shape-editor-ui';
|
|
4
|
+
import { ICommandService } from '@univerjs/core';
|
|
5
|
+
import { DocInterceptorService, DocSelectionManagerService } from '@univerjs/docs';
|
|
6
|
+
import { DocCanvasPopManagerService, DocEventManagerService, DocRenderController, DocSelectionRenderService } from '@univerjs/docs-ui';
|
|
6
7
|
export declare class BoardShapeTextFloatMenuRenderController extends ShapeTextFloatMenuRenderControllerBase {
|
|
7
|
-
constructor(context: IRenderContext<DocumentDataModel>, docSelectionManagerService: DocSelectionManagerService, docCanvasPopManagerService: DocCanvasPopManagerService, docSelectionRenderService: DocSelectionRenderService);
|
|
8
|
+
constructor(context: IRenderContext<DocumentDataModel>, docSelectionManagerService: DocSelectionManagerService, docCanvasPopManagerService: DocCanvasPopManagerService, docSelectionRenderService: DocSelectionRenderService, commandService: ICommandService, eventManagerService: DocEventManagerService, popupService: ShapeTextHyperLinkPopupService, interceptorService: DocInterceptorService, renderController: DocRenderController);
|
|
8
9
|
}
|
|
@@ -1,23 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { BoardSwimlaneLaneShortcutAction } from '../common/board-shortcuts';
|
|
2
|
+
import type { BoardShortcutRuntimeService } from '../services/board-shortcut-runtime.service';
|
|
3
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
3
4
|
import { IShortcutService } from '@univerjs/ui';
|
|
4
|
-
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
5
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
6
|
-
import { BoardSwimlaneLaneRenameService } from '../services/board-swimlane-lane-rename.service';
|
|
7
5
|
export declare const BOARD_SWIMLANE_LANE_SHORTCUT_OPERATION_ID = "board.operation.swimlane-lane-shortcut";
|
|
6
|
+
export declare function handleSwimlaneLaneShortcut(runtime: BoardShortcutRuntimeService, action: BoardSwimlaneLaneShortcutAction | undefined): Promise<boolean>;
|
|
8
7
|
export declare class BoardSwimlaneLaneShortcutController extends RxDisposable {
|
|
9
|
-
private readonly _instanceService;
|
|
10
|
-
private readonly _boardElementService;
|
|
11
|
-
private readonly _elementStateService;
|
|
12
|
-
private readonly _editService;
|
|
13
|
-
private readonly _renameService;
|
|
14
8
|
private readonly _commandService;
|
|
15
9
|
private readonly _shortcutService;
|
|
16
|
-
constructor(
|
|
17
|
-
private _init;
|
|
18
|
-
private _createShortcutOperation;
|
|
19
|
-
private _createShortcutItem;
|
|
20
|
-
private _canHandleFocusedLane;
|
|
21
|
-
private _handleShortcut;
|
|
22
|
-
private _getCurrentBoardModel;
|
|
10
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
23
11
|
}
|
|
@@ -1,22 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { BoardToolShortcutAction } from '../common/board-shortcuts';
|
|
2
|
+
import type { BoardShortcutRuntimeService } from '../services/board-shortcut-runtime.service';
|
|
3
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
2
4
|
import { IShortcutService } from '@univerjs/ui';
|
|
3
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
4
|
-
import { BoardToolService } from '../services/board-tool.service';
|
|
5
|
-
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
6
5
|
export declare const BOARD_TOOL_SHORTCUT_OPERATION_ID = "board.operation.tool-shortcut";
|
|
6
|
+
export declare function handleToolShortcut(runtime: BoardShortcutRuntimeService, action: BoardToolShortcutAction | undefined): boolean;
|
|
7
7
|
export declare class BoardToolShortcutController extends RxDisposable {
|
|
8
|
-
private readonly _instanceService;
|
|
9
|
-
private readonly _configService;
|
|
10
|
-
private readonly _elementStateService;
|
|
11
|
-
private readonly _stateService;
|
|
12
|
-
private readonly _toolService;
|
|
13
8
|
private readonly _commandService;
|
|
14
9
|
private readonly _shortcutService;
|
|
15
|
-
constructor(
|
|
16
|
-
private _init;
|
|
17
|
-
private _createToolShortcutOperation;
|
|
18
|
-
private _createShortcutItem;
|
|
19
|
-
private _handleShortcut;
|
|
20
|
-
private _canCancelTool;
|
|
21
|
-
private _getCurrentBoardModel;
|
|
10
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
22
11
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { IUnitPresenceUIAdapterRegistry } from '@univerjs/ui';
|
|
3
|
+
import { BoardUnitPresenceUIAdapter } from '../services/board-unit-presence-ui-adapter.service';
|
|
4
|
+
export declare class BoardUnitPresenceController extends Disposable {
|
|
5
|
+
constructor(adapterRegistry: IUnitPresenceUIAdapterRegistry, adapter: BoardUnitPresenceUIAdapter);
|
|
6
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { BoardModel } from '@univerjs-pro/boards';
|
|
2
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
|
+
import { ICommandService, RxDisposable, ThemeService } from '@univerjs/core';
|
|
5
|
+
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
6
|
+
import { BoardUnitPresenceUIAdapter } from '../services/board-unit-presence-ui-adapter.service';
|
|
7
|
+
export declare class BoardUnitPresenceRenderController extends RxDisposable implements IRenderModule {
|
|
8
|
+
private readonly _context;
|
|
9
|
+
private readonly _presenceAdapter;
|
|
10
|
+
private readonly _commandService;
|
|
11
|
+
private readonly _boardElementService;
|
|
12
|
+
private readonly _boardUIStateService;
|
|
13
|
+
private readonly _themeService;
|
|
14
|
+
private readonly _selectionShapes;
|
|
15
|
+
private readonly _pointerAnimations;
|
|
16
|
+
private _animationFrameId;
|
|
17
|
+
private _renderScheduled;
|
|
18
|
+
private _isApplyingOverlays;
|
|
19
|
+
private _pointersVisible;
|
|
20
|
+
private _latestPresences;
|
|
21
|
+
constructor(_context: IRenderContext<BoardModel>, _presenceAdapter: BoardUnitPresenceUIAdapter, _commandService: ICommandService, _boardElementService: IBoardElementService, _boardUIStateService: IBoardUIStateService, _themeService: ThemeService);
|
|
22
|
+
dispose(): void;
|
|
23
|
+
private _init;
|
|
24
|
+
private _scheduleRender;
|
|
25
|
+
private _render;
|
|
26
|
+
private _publishLocalPointer;
|
|
27
|
+
private _clearLocalPointer;
|
|
28
|
+
private _clearLocalPointerIfActive;
|
|
29
|
+
private _syncPointers;
|
|
30
|
+
private _startAnimation;
|
|
31
|
+
private _animate;
|
|
32
|
+
private _cancelAnimation;
|
|
33
|
+
private _removePointer;
|
|
34
|
+
private _removeAllPointers;
|
|
35
|
+
private _removeSelectionShapes;
|
|
36
|
+
private _getSceneObjectByKey;
|
|
37
|
+
}
|
|
@@ -1,29 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ICommandService, IConfigService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
3
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
1
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
4
2
|
import { IShortcutService } from '@univerjs/ui';
|
|
5
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
6
|
-
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
7
|
-
import { BoardViewportService } from '../services/board-viewport.service';
|
|
8
3
|
export declare const BOARD_VIEW_SHORTCUT_OPERATION_ID = "board.operation.view-shortcut";
|
|
9
4
|
export declare class BoardViewShortcutController extends RxDisposable {
|
|
10
|
-
private readonly _instanceService;
|
|
11
|
-
private readonly _configService;
|
|
12
|
-
private readonly _renderManagerService;
|
|
13
|
-
private readonly _boardElementService;
|
|
14
|
-
private readonly _elementStateService;
|
|
15
|
-
private readonly _stateService;
|
|
16
|
-
private readonly _viewportService;
|
|
17
5
|
private readonly _commandService;
|
|
18
6
|
private readonly _shortcutService;
|
|
19
|
-
constructor(
|
|
20
|
-
private _init;
|
|
21
|
-
private _createViewShortcutOperation;
|
|
22
|
-
private _createShortcutItem;
|
|
23
|
-
private _handleShortcut;
|
|
24
|
-
private _getCurrentBoardModel;
|
|
25
|
-
private _getCanvasElement;
|
|
26
|
-
private _resolveViewportSize;
|
|
27
|
-
private _resolveViewportCenterPoint;
|
|
28
|
-
private _resolveFullscreenTarget;
|
|
7
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
29
8
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { IConfigService, IUniverInstanceService, RxDisposable, ThemeService } from '@univerjs/core';
|
|
5
|
+
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
6
|
+
export declare class BoardViewportBarRenderController extends RxDisposable implements IRenderModule {
|
|
7
|
+
private readonly _renderContext;
|
|
8
|
+
private readonly _instanceSrv;
|
|
9
|
+
private readonly _boardElementService;
|
|
10
|
+
private readonly _configService;
|
|
11
|
+
private readonly _stateService;
|
|
12
|
+
private readonly _themeService;
|
|
13
|
+
private _barObject;
|
|
14
|
+
private _contentBounds;
|
|
15
|
+
private _drag;
|
|
16
|
+
private _layout;
|
|
17
|
+
private _navigationBounds;
|
|
18
|
+
private _ownsCursor;
|
|
19
|
+
private _pendingContentRefresh;
|
|
20
|
+
private _scheduledFrameId;
|
|
21
|
+
private _viewportPointerActive;
|
|
22
|
+
private _horizontalEnabled;
|
|
23
|
+
private _verticalEnabled;
|
|
24
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _configService: IConfigService, _stateService: IBoardUIStateService, _themeService: ThemeService);
|
|
25
|
+
dispose(): void;
|
|
26
|
+
private _init;
|
|
27
|
+
private _subscribeToWindowInputInterruptions;
|
|
28
|
+
private _createInitialObjectState;
|
|
29
|
+
private _syncTheme;
|
|
30
|
+
private _handleElementChanges;
|
|
31
|
+
private _scheduleLayoutSync;
|
|
32
|
+
private _syncLayout;
|
|
33
|
+
private _resolveViewportPixelSize;
|
|
34
|
+
private _resolveContentBounds;
|
|
35
|
+
private _toWorldRect;
|
|
36
|
+
private _resolveSafeArea;
|
|
37
|
+
private _handleBarPointerDown;
|
|
38
|
+
private _handlePointerMove;
|
|
39
|
+
private _handlePointerEnd;
|
|
40
|
+
private _finishDrag;
|
|
41
|
+
private _getBoardPoint;
|
|
42
|
+
private _setCursor;
|
|
43
|
+
}
|
|
@@ -11,6 +11,8 @@ export declare class BoardViewportInputRenderController extends RxDisposable imp
|
|
|
11
11
|
private readonly _platformService;
|
|
12
12
|
private _panDraft;
|
|
13
13
|
private _ownsPanCursor;
|
|
14
|
+
private _panCursorRoot;
|
|
15
|
+
private _previousPanCursor;
|
|
14
16
|
private _sceneGestureLease;
|
|
15
17
|
private _spacePanReleasePending;
|
|
16
18
|
private _spacePanRestoreTool;
|
|
@@ -19,6 +21,8 @@ export declare class BoardViewportInputRenderController extends RxDisposable imp
|
|
|
19
21
|
private _init;
|
|
20
22
|
private _subscribeToWindowInputInterruptions;
|
|
21
23
|
private _subscribeToCanvasGestureRouting;
|
|
24
|
+
private _acquireSceneGesture;
|
|
25
|
+
private _releaseSceneGesture;
|
|
22
26
|
private _shouldRoutePointerGestureToScene;
|
|
23
27
|
private _handleKeyDown;
|
|
24
28
|
private _handleKeyUp;
|
|
@@ -27,8 +31,12 @@ export declare class BoardViewportInputRenderController extends RxDisposable imp
|
|
|
27
31
|
private _handlePointerDown;
|
|
28
32
|
private _handlePointerMove;
|
|
29
33
|
private _handlePointerEnd;
|
|
34
|
+
private _beginPan;
|
|
35
|
+
private _movePan;
|
|
36
|
+
private _endPan;
|
|
30
37
|
private _canStartSpacePan;
|
|
31
38
|
private _isPanModeActive;
|
|
32
39
|
private _syncPanCursor;
|
|
33
40
|
private _setPanCursor;
|
|
41
|
+
private _restorePanCursorRoot;
|
|
34
42
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IBoardElementFindResult, IBoardSettings, IBoardViewportPoint } from '@univerjs-pro/boards-ui';
|
|
2
|
+
declare module '@univerjs-pro/boards/facade' {
|
|
3
|
+
interface FBoard {
|
|
4
|
+
/** Returns the effective settings for the current Board UI runtime. */
|
|
5
|
+
getSettings(): Required<IBoardSettings>;
|
|
6
|
+
/** Updates local settings for the current Board UI runtime. */
|
|
7
|
+
setSettings(settings: Partial<IBoardSettings>): boolean;
|
|
8
|
+
/** Returns whether the object-list panel is open for the active Board UI. */
|
|
9
|
+
getObjectListPanelOpen(): boolean;
|
|
10
|
+
/** Opens or closes the object-list panel after focusing this Board. */
|
|
11
|
+
setObjectListPanelOpen(open: boolean): boolean;
|
|
12
|
+
/** Searches the active page using the same text index as the top-right Find panel. */
|
|
13
|
+
findElementsByText(query: string): IBoardElementFindResult[];
|
|
14
|
+
/** Selects an element and pans the viewport so its center reaches the requested viewport point. */
|
|
15
|
+
focusElement(elementId: string, viewportPoint: IBoardViewportPoint): boolean;
|
|
16
|
+
/** Returns the element center in the current Board viewport coordinate system. */
|
|
17
|
+
getElementViewportPoint(elementId: string): IBoardViewportPoint | null;
|
|
18
|
+
}
|
|
19
|
+
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -6,10 +6,10 @@ export type { ICaptureBoardScreenshotCommandParams } from './commands/commands/c
|
|
|
6
6
|
export { BOARD_INSERT_CHART_DIALOG_ID, BOARD_INSERT_CHART_PANEL_COMPONENT, OpenBoardInsertChartDialogOperation, } from './commands/operations/board-chart-dialog.operation';
|
|
7
7
|
export type { IOpenBoardInsertChartDialogOperationParams } from './commands/operations/board-chart-dialog.operation';
|
|
8
8
|
export { BoardCopySelectionOperation, BoardCutSelectionOperation, BoardDeleteSelectionOperation, } from './commands/operations/board-selection.operation';
|
|
9
|
+
export { FindBoardElementsByTextOperation, FocusBoardElementOperation, GetBoardElementViewportPointOperation, GetBoardObjectListPanelOpenOperation, GetBoardSettingsOperation, SetBoardObjectListPanelOpenOperation, SetBoardSettingsOperation, } from './commands/operations/board-ui-control.operation';
|
|
9
10
|
export { BOARD_SHORTCUT_BINDINGS } from './common/board-shortcuts';
|
|
10
|
-
export { BOARDS_UI_PLUGIN_CONFIG_KEY } from './config/config';
|
|
11
|
-
export {
|
|
12
|
-
export type { BoardToolbarToolConfig, IUniverBoardsUIConfig, } from './config/config';
|
|
11
|
+
export { BOARDS_UI_PLUGIN_CONFIG_KEY, DEFAULT_BOARD_COLLABORATOR_CURSOR_SHARE_INTERVAL, DEFAULT_BOARD_SETTINGS, resolveBoardCollaboratorCursorShareInterval, resolveBoardRenderAdapters, } from './config/config';
|
|
12
|
+
export type { BoardToolbarToolConfig, IBoardSettings, IBoardViewportBarConfig, IBoardViewportBarPadding, IUniverBoardsUIConfig, } from './config/config';
|
|
13
13
|
export { BOARD_RENDER_LAYER_INDEX, BOARD_RENDER_OBJECT_Z_INDEX, } from './const';
|
|
14
14
|
export { BOARD_MAIN_VIEWPORT_KEY } from './controllers/board-render.controller';
|
|
15
15
|
export { UniverBoardsUIPlugin } from './plugin';
|
|
@@ -34,22 +34,27 @@ export { BoardInteractionSurfaceService } from './services/board-interaction-sur
|
|
|
34
34
|
export { BOARD_SCREENSHOT_MAX_SCALE, BOARD_SCREENSHOT_MIN_SCALE, } from './services/board-screenshot.service';
|
|
35
35
|
export type { IBoardScreenshotOptions, IBoardScreenshotResult, } from './services/board-screenshot.service';
|
|
36
36
|
export { BoardSelectionService } from './services/board-selection.service';
|
|
37
|
+
export { BoardSettingsMenuContributionService, BoardSettingsMenuContributionSubmenu, IBoardSettingsMenuContributionService, } from './services/board-settings-menu-contribution.service';
|
|
38
|
+
export type { BoardSettingsMenuContributionGroup, IBoardSettingsMenuContribution, } from './services/board-settings-menu-contribution.service';
|
|
37
39
|
export { BoardShapeIntrinsicSizeService } from './services/board-shape-intrinsic-size.service';
|
|
38
40
|
export type { IBoardShapeIntrinsicSizeHostUpdateContext, IBoardShapeIntrinsicSizeProvider, } from './services/board-shape-intrinsic-size.service';
|
|
39
41
|
export { BoardSidePanelService, IBoardSidePanelService } from './services/board-side-panel.service';
|
|
40
42
|
export type { BoardSidePanelCloseReason, IBoardSidePanelComponentDescriptor, IBoardSidePanelDescriptor, } from './services/board-side-panel.service';
|
|
41
|
-
export { BoardTextEditingService } from './services/board-text-editing.service';
|
|
43
|
+
export { areBoardShapeTextValuesEquivalent, BoardTextEditingService } from './services/board-text-editing.service';
|
|
42
44
|
export { BoardToolService } from './services/board-tool.service';
|
|
43
45
|
export { BoardToolbarContributionService, IBoardToolbarContributionService, } from './services/board-toolbar-contribution.service';
|
|
44
46
|
export type { BoardToolbarContributionGroup, IBoardToolbarContribution, } from './services/board-toolbar-contribution.service';
|
|
45
47
|
export { BoardUIStateService, IBoardUIStateService } from './services/board-ui-state.service';
|
|
46
48
|
export { BoardViewportService } from './services/board-viewport.service';
|
|
49
|
+
export type { IBoardElementFindResult } from './utils/board-find.util';
|
|
47
50
|
export { resolveRotatedBoardObjectAnchorBound } from './utils/board-floating-toolbar-anchor.util';
|
|
48
51
|
export { resolveBoardFloatingToolbarSelection } from './utils/board-floating-toolbar-selection.util';
|
|
49
52
|
export type { BoardFloatingToolbarOwner, IBoardFloatingToolbarSelection, IResolveBoardFloatingToolbarSelectionOptions, } from './utils/board-floating-toolbar-selection.util';
|
|
50
53
|
export { resolveBoardInteractionConfig } from './utils/board-interaction-config.util';
|
|
51
54
|
export { resolveBoardElementBounds } from './utils/board-selection-geometry.util';
|
|
55
|
+
export { resolveBoardWheelViewportAction } from './utils/board-viewport-input.util';
|
|
52
56
|
export { getBoardPointFromClient } from './utils/board-viewport.util';
|
|
57
|
+
export type { IBoardViewportPoint } from './utils/board-viewport.util';
|
|
53
58
|
export { BOARD_SETTINGS_MENU_ACTIONS_PART, BOARD_TOP_RIGHT_MENU_LEADING_PART } from './views/BoardSettingsMenu';
|
|
54
59
|
export { BoardShapeTextEditorContainer } from './views/BoardShapeTextEditorContainer';
|
|
55
60
|
export { BoardWorkbench } from './views/BoardWorkbench';
|
|
@@ -94,6 +94,7 @@ declare const locale: {
|
|
|
94
94
|
collaboratorCursors: string;
|
|
95
95
|
find: string;
|
|
96
96
|
grid: string;
|
|
97
|
+
viewportBar: string;
|
|
97
98
|
preciseSelection: string;
|
|
98
99
|
quickAdd: string;
|
|
99
100
|
theme: string;
|
|
@@ -108,6 +109,7 @@ declare const locale: {
|
|
|
108
109
|
noMatches: string;
|
|
109
110
|
showDimensions: string;
|
|
110
111
|
showToolbar: string;
|
|
112
|
+
saveAs: string;
|
|
111
113
|
translateInto: string;
|
|
112
114
|
};
|
|
113
115
|
objectListPanel: {
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Dependency } from '@univerjs/core';
|
|
1
2
|
import type { IUniverBoardsUIConfig } from './config/config';
|
|
2
3
|
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
4
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
@@ -15,7 +16,13 @@ export declare class UniverBoardsUIPlugin extends Plugin {
|
|
|
15
16
|
static packageName: string;
|
|
16
17
|
static version: string;
|
|
17
18
|
static type: UniverInstanceType;
|
|
19
|
+
private static readonly _runtimeScopedDependencies;
|
|
20
|
+
private static _getRuntimeScopedDependencies;
|
|
21
|
+
static getRuntimeScopedDependencies(injector: Injector): readonly Dependency[];
|
|
22
|
+
static registerRuntimeScopedDependencies(injector: Injector, dependencies: readonly Dependency[]): void;
|
|
18
23
|
constructor(_config: Partial<IUniverBoardsUIConfig> | undefined, _injector: Injector, _renderManagerService: IRenderManagerService, _uiPartsService: IUIPartsService, _commandService: ICommandService, _menuManagerService: IMenuManagerService, _configService: IConfigService);
|
|
19
24
|
onStarting(): void;
|
|
20
25
|
onReady(): void;
|
|
26
|
+
onRendered(): void;
|
|
27
|
+
private _registerRenderModules;
|
|
21
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IBoardElementData } from '@univerjs-pro/boards';
|
|
1
|
+
import type { IBoardElementData, IBoardThemeData } from '@univerjs-pro/boards';
|
|
2
2
|
import type { IShapeFormulaPresentation } from '@univerjs-pro/shape-editor';
|
|
3
3
|
import type { IImageIoService, LocaleService } from '@univerjs/core';
|
|
4
4
|
import type { BaseObject } from '@univerjs/engine-render';
|
|
@@ -33,6 +33,7 @@ export interface ICreateBoardElementRenderObjectOptions {
|
|
|
33
33
|
focusedSwimlaneLane?: IBoardFocusedSwimlaneLane | null;
|
|
34
34
|
formulaPresentation?: IShapeFormulaPresentation;
|
|
35
35
|
animateFormulaPresentation?: boolean;
|
|
36
|
+
themeData?: IBoardThemeData;
|
|
36
37
|
}
|
|
37
38
|
export interface ISyncBoardElementRenderObjectOptions {
|
|
38
39
|
adapters?: readonly IBoardElementRenderAdapter[];
|
|
@@ -77,6 +78,6 @@ export declare const BOARD_CONNECTOR_ELEMENT_RENDER_ADAPTER: IBoardElementRender
|
|
|
77
78
|
export declare const BOARD_SHAPE_ELEMENT_RENDER_ADAPTER: IBoardElementRenderAdapter;
|
|
78
79
|
export declare const BOARD_IMAGE_ELEMENT_RENDER_ADAPTER: IBoardElementRenderAdapter;
|
|
79
80
|
export declare const BOARD_ELEMENT_RENDER_ADAPTERS: readonly IBoardElementRenderAdapter[];
|
|
80
|
-
export declare function createBoardElementRenderObject({ unitId, elementDataItem, elementData, zIndex, imageIoService, localeService, lineJumpCache, routingCache, adapters, focusedSwimlaneLane, formulaPresentation, }: ICreateBoardElementRenderObjectOptions): BaseObject | null;
|
|
81
|
+
export declare function createBoardElementRenderObject({ unitId, elementDataItem, elementData, zIndex, imageIoService, localeService, lineJumpCache, routingCache, adapters, focusedSwimlaneLane, formulaPresentation, themeData, }: ICreateBoardElementRenderObjectOptions): BaseObject | null;
|
|
81
82
|
export declare function syncBoardElementRenderObject(object: BaseObject, elementDataItem: IBoardElementData, options?: ISyncBoardElementRenderObjectOptions): boolean;
|
|
82
83
|
export {};
|