@univerjs-pro/boards-mind-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/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/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/index.css +12 -12
- 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/types/controllers/board-mind-map-autosize-layout.render-controller.d.ts +1 -4
- package/lib/types/controllers/board-mind-map-drag-topology.render-controller.d.ts +2 -0
- package/lib/types/controllers/board-mind-map-insert.render-controller.d.ts +0 -1
- package/lib/types/controllers/board-mind-map-intrinsic-size.render-controller.d.ts +4 -2
- package/lib/types/controllers/board-mind-map-keyboard-shortcut.controller.d.ts +7 -10
- package/lib/types/controllers/board-mind-map-node-controls.render-controller.d.ts +3 -2
- package/lib/types/controllers/board-mind-map-shortcut-context.render-controller.d.ts +14 -0
- package/lib/types/controllers/board-mind-map-text-editing-shortcut.controller.d.ts +2 -10
- package/lib/types/services/board-mind-map-shortcut-runtime.service.d.ts +19 -0
- package/lib/types/views/BoardMindMapFloatingToolbar.d.ts +2 -2
- 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 +14 -14
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x34b6(_0x31bd01,_0x3f5550){_0x31bd01=_0x31bd01-0x1bc;const _0x635dd2=_0x635d();let _0x34b611=_0x635dd2[_0x31bd01];return _0x34b611;}const _0xc3cbf5=_0x34b6;(function(_0x4eef8f,_0x86b1d0){const _0x4d334c=_0x34b6,_0x1bc531=_0x4eef8f();while(!![]){try{const _0x8813a9=-parseInt(_0x4d334c(0x1cb))/0x1+parseInt(_0x4d334c(0x1c7))/0x2+parseInt(_0x4d334c(0x1cc))/0x3*(-parseInt(_0x4d334c(0x1d1))/0x4)+-parseInt(_0x4d334c(0x1e0))/0x5+parseInt(_0x4d334c(0x1c5))/0x6*(-parseInt(_0x4d334c(0x1d8))/0x7)+-parseInt(_0x4d334c(0x1cf))/0x8+-parseInt(_0x4d334c(0x1d2))/0x9*(-parseInt(_0x4d334c(0x1d9))/0xa);if(_0x8813a9===_0x86b1d0)break;else _0x1bc531['push'](_0x1bc531['shift']());}catch(_0x26548f){_0x1bc531['push'](_0x1bc531['shift']());}}}(_0x635d,0xd4328));function _0x635d(){const _0x512cb4=['匯入/匯出','連接線樣式','匯出\x20OPML','搜尋節點','圓角折線','匯入\x20OPML','1182Txdwik','左側樹狀圖','2215686KzAxXL','橫向心智圖','重新命名心智圖節點','貼上\x20OPML\x20XML','1212877tyWNlp','3ouNEzQ','左右樹狀圖','新增同層節點','13291720wsAhHp','縱向心智圖','2812492cKNuXe','9pPamGQ','新增子節點','心智圖','沒有節點','字型顏色','直角折線','22309jdEvUY','47413070XnwjXd','重新命名','置中對齊','垂直置中','文字排版','靠右對齊','左右對齊','3873430MafZnj','靠下對齊','靠左對齊','橫向時間軸','縱向時間軸','分支間距'];_0x635d=function(){return _0x512cb4;};return _0x635d();}const e={'boards-mind-ui':{'alignBottom':_0xc3cbf5(0x1e1),'alignMiddle':_0xc3cbf5(0x1dc),'alignTop':'靠上對齊','alignJustify':_0xc3cbf5(0x1df),'alignRight':_0xc3cbf5(0x1de),'alignCenter':_0xc3cbf5(0x1db),'alignLeft':_0xc3cbf5(0x1e2),'saveDescription':'儲存','descriptionPlaceholder':'為目前節點新增描述','description':'描述','cancel':'取消','panel':{'title':_0xc3cbf5(0x1d4),'tab':{'importExport':_0xc3cbf5(0x1bf),'layout':'版面配置','structure':'結構'},'layout':{'both':'雙向','left':'左側','right':'右側'},'structureKind':{'mindmapHorizontal':_0xc3cbf5(0x1c8),'mindmapVertical':_0xc3cbf5(0x1d0),'treeRight':'右側樹狀圖','treeLeft':_0xc3cbf5(0x1c6),'treeAlternate':_0xc3cbf5(0x1cd),'timelineHorizontal':_0xc3cbf5(0x1bc),'timelineVertical':_0xc3cbf5(0x1bd)},'branchLineType':{'curve':'曲線','roundedOrthogonal':_0xc3cbf5(0x1c3),'orthogonal':_0xc3cbf5(0x1d7)},'addText':'新增文字','cancel':'取消','emptyNodes':_0xc3cbf5(0x1d5),'exportOPML':_0xc3cbf5(0x1c1),'importOPML':_0xc3cbf5(0x1c4),'pasteOPML':_0xc3cbf5(0x1ca),'rename':_0xc3cbf5(0x1da),'renamePrompt':_0xc3cbf5(0x1c9),'searchNodes':_0xc3cbf5(0x1c2),'spacing':{'branchGap':_0xc3cbf5(0x1be),'parentGap':'父子間距','siblingGap':'同層間距'}},'toolbar':{'primary':{'line':_0xc3cbf5(0x1c0),'fontColor':'字型顏色','typography':_0xc3cbf5(0x1dd),'more':'更多'},'panel':{'line':'線條','typography':_0xc3cbf5(0x1dd),'more':'更多'},'action':{'addChild':_0xc3cbf5(0x1d3),'addSibling':_0xc3cbf5(0x1ce),'copy':'複製','delete':'刪除','fill':'填滿','fontColor':_0xc3cbf5(0x1d6),'layout':'版面配置','paste':'貼上','stroke':'外框'}}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x56b906=_0x37e0;function _0x37e0(_0x190486,_0x64ce43){_0x190486=_0x190486-0x17b;const _0x44f9ba=_0x44f9();let _0x37e077=_0x44f9ba[_0x190486];return _0x37e077;}(function(_0x5be160,_0x293b27){const _0x13db5e=_0x37e0,_0x2eac1f=_0x5be160();while(!![]){try{const _0x23f770=-parseInt(_0x13db5e(0x184))/0x1*(parseInt(_0x13db5e(0x196))/0x2)+parseInt(_0x13db5e(0x189))/0x3+-parseInt(_0x13db5e(0x18e))/0x4+-parseInt(_0x13db5e(0x186))/0x5+-parseInt(_0x13db5e(0x193))/0x6+parseInt(_0x13db5e(0x18f))/0x7*(parseInt(_0x13db5e(0x197))/0x8)+parseInt(_0x13db5e(0x182))/0x9*(parseInt(_0x13db5e(0x17e))/0xa);if(_0x23f770===_0x293b27)break;else _0x2eac1f['push'](_0x2eac1f['shift']());}catch(_0x45f93c){_0x2eac1f['push'](_0x2eac1f['shift']());}}}(_0x44f9,0x23f30));function _0x44f9(){const _0x2d17da=['直角折線','文字排版','靠上對齊','4245380AkrgFY','圓角折線','字型顏色','縱向時間軸','18zvoInP','置中對齊','1QJmPrK','父子間距','838310EOPumP','匯出\x20OPML','靠右對齊','15765jJZTfR','左側樹狀圖','新增子節點','靠左對齊','為目前節點新增描述','1159696lBsUsh','70iZANRN','橫向心智圖','分支間距','匯入/匯出','1489638iInufN','左右樹狀圖','新增同層節點','111148yMbJBs','43480lfanhv','搜尋節點'];_0x44f9=function(){return _0x2d17da;};return _0x44f9();}const e={'boards-mind-ui':{'alignBottom':'靠下對齊','alignMiddle':'垂直置中','alignTop':_0x56b906(0x17d),'alignJustify':'左右對齊','alignRight':_0x56b906(0x188),'alignCenter':_0x56b906(0x183),'alignLeft':_0x56b906(0x18c),'saveDescription':'儲存','descriptionPlaceholder':_0x56b906(0x18d),'description':'描述','cancel':'取消','panel':{'title':'心智圖','tab':{'importExport':_0x56b906(0x192),'layout':'版面配置','structure':'結構'},'layout':{'both':'雙向','left':'左側','right':'右側'},'structureKind':{'mindmapHorizontal':_0x56b906(0x190),'mindmapVertical':'縱向心智圖','treeRight':'右側樹狀圖','treeLeft':_0x56b906(0x18a),'treeAlternate':_0x56b906(0x194),'timelineHorizontal':'橫向時間軸','timelineVertical':_0x56b906(0x181)},'branchLineType':{'curve':'曲線','roundedOrthogonal':_0x56b906(0x17f),'orthogonal':_0x56b906(0x17b)},'addText':'新增文字','cancel':'取消','emptyNodes':'沒有節點','exportOPML':_0x56b906(0x187),'importOPML':'匯入\x20OPML','pasteOPML':'貼上\x20OPML\x20XML','rename':'重新命名','renamePrompt':'重新命名心智圖節點','searchNodes':_0x56b906(0x198),'spacing':{'branchGap':_0x56b906(0x191),'parentGap':_0x56b906(0x185),'siblingGap':'同層間距'}},'toolbar':{'primary':{'line':'連接線樣式','fontColor':'字型顏色','typography':_0x56b906(0x17c),'more':'更多'},'panel':{'line':'線條','typography':'文字排版','more':'更多'},'action':{'addChild':_0x56b906(0x18b),'addSibling':_0x56b906(0x195),'copy':'複製','delete':'刪除','fill':'填滿','fontColor':_0x56b906(0x180),'layout':'版面配置','paste':'貼上','stroke':'外框'}}}};export{e as default};
|
|
@@ -8,9 +8,7 @@ export declare class BoardMindMapAutosizeLayoutRenderController extends RxDispos
|
|
|
8
8
|
private readonly _commandService;
|
|
9
9
|
private readonly _nodeSizeByKey;
|
|
10
10
|
private readonly _queuedLayouts;
|
|
11
|
-
private readonly _debouncedLayouts;
|
|
12
11
|
private _layoutFlushScheduled;
|
|
13
|
-
private _debouncedLayoutTimer;
|
|
14
12
|
constructor(_renderContext: IRenderContext<UnitModel>, _boardElementService: IBoardElementService, _commandService: ICommandService);
|
|
15
13
|
private _init;
|
|
16
14
|
private _seedExistingNodeSizes;
|
|
@@ -18,7 +16,6 @@ export declare class BoardMindMapAutosizeLayoutRenderController extends RxDispos
|
|
|
18
16
|
private _rememberNodeSize;
|
|
19
17
|
private _resolveNodeSize;
|
|
20
18
|
private _queueLayout;
|
|
21
|
-
private
|
|
22
|
-
private _queueDebouncedLayout;
|
|
19
|
+
private _executeRootAnchoredLayout;
|
|
23
20
|
private _getElementKey;
|
|
24
21
|
}
|
|
@@ -26,6 +26,7 @@ export declare class BoardMindMapDragTopologyRenderController extends RxDisposab
|
|
|
26
26
|
private _attachObjectPointerListeners;
|
|
27
27
|
private _resolveCurrentBoardContext;
|
|
28
28
|
private _captureDragStart;
|
|
29
|
+
private _resolveCompleteSelectedScope;
|
|
29
30
|
private _capturePointerChildDragStart;
|
|
30
31
|
private _syncPointerChildDragPreview;
|
|
31
32
|
private _applyPointerChildDrag;
|
|
@@ -38,6 +39,7 @@ export declare class BoardMindMapDragTopologyRenderController extends RxDisposab
|
|
|
38
39
|
private _syncRootReparentPreview;
|
|
39
40
|
private _syncChildDragPreview;
|
|
40
41
|
private _applyDragTopologyAction;
|
|
42
|
+
private _applyScopeTranslation;
|
|
41
43
|
private _executeChildDragAction;
|
|
42
44
|
private _applyRootTranslation;
|
|
43
45
|
private _resolveChildDragTopologyAction;
|
|
@@ -15,7 +15,6 @@ export declare class BoardMindMapInsertRenderController extends RxDisposable imp
|
|
|
15
15
|
private _lastPoint;
|
|
16
16
|
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _stateService: IBoardUIStateService, _commandService: ICommandService, _insertStateService: BoardMindMapInsertStateService, _elementStateService: IBoardElementStateService, _boardTextEditingService: BoardTextEditingService);
|
|
17
17
|
private _init;
|
|
18
|
-
private _syncSceneInputMode;
|
|
19
18
|
private _syncPreviewObject;
|
|
20
19
|
private _ensurePreviewObject;
|
|
21
20
|
private _removePreviewObject;
|
|
@@ -3,7 +3,7 @@ import type { UnitModel } from '@univerjs/core';
|
|
|
3
3
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
4
4
|
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
5
5
|
import { BoardShapeIntrinsicSizeService, BoardTextEditingService } from '@univerjs-pro/boards-ui';
|
|
6
|
-
import { RxDisposable } from '@univerjs/core';
|
|
6
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
7
7
|
import { BoardMindMapPreviewRefreshService } from '../services/board-mind-map-preview-refresh.service';
|
|
8
8
|
interface IMindMapHostSize {
|
|
9
9
|
height: number;
|
|
@@ -16,10 +16,12 @@ export declare class BoardMindMapIntrinsicSizeRenderController extends RxDisposa
|
|
|
16
16
|
private readonly _boardElementService;
|
|
17
17
|
private readonly _textEditingService;
|
|
18
18
|
private readonly _previewRefreshService;
|
|
19
|
+
private readonly _commandService;
|
|
19
20
|
private _activePreview;
|
|
20
21
|
private readonly _provider;
|
|
21
|
-
constructor(_renderContext: IRenderContext<UnitModel>, _intrinsicSizeService: BoardShapeIntrinsicSizeService, _boardElementService: IBoardElementService, _textEditingService: BoardTextEditingService, _previewRefreshService: BoardMindMapPreviewRefreshService);
|
|
22
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _intrinsicSizeService: BoardShapeIntrinsicSizeService, _boardElementService: IBoardElementService, _textEditingService: BoardTextEditingService, _previewRefreshService: BoardMindMapPreviewRefreshService, _commandService: ICommandService);
|
|
22
23
|
private _updateHostSize;
|
|
24
|
+
private _updateShapeText;
|
|
23
25
|
private _previewHostSize;
|
|
24
26
|
private _resolveHostSize;
|
|
25
27
|
private _initEditingRestore;
|
|
@@ -1,33 +1,30 @@
|
|
|
1
|
-
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
2
1
|
import { IMindMapClipboardService } from '@univerjs-pro/boards-mind';
|
|
3
|
-
import { BoardTextEditingService, IBoardElementStateService, IBoardUIStateService } from '@univerjs-pro/boards-ui';
|
|
4
2
|
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
5
|
-
import {
|
|
3
|
+
import { IShortcutService } from '@univerjs/ui';
|
|
4
|
+
import { BoardMindMapShortcutRuntimeService } from '../services/board-mind-map-shortcut-runtime.service';
|
|
6
5
|
export declare const BOARD_MIND_MAP_KEYBOARD_SHORTCUT_OPERATION_ID = "board.operation.mind-map.keyboard-shortcut";
|
|
6
|
+
export declare const FOCUSING_MIND_MAP_NODE = "FOCUSING_MIND_MAP_NODE";
|
|
7
|
+
export declare const FOCUSING_MIND_MAP_BLANK_BOARD = "FOCUSING_MIND_MAP_BLANK_BOARD";
|
|
7
8
|
export type MindMapKeyboardShortcutAction = 'copy' | 'paste' | 'paste-as-new' | 'add-child' | 'add-sibling-or-child' | 'promote' | 'toggle-collapse' | 'collapse-all' | 'edit-text' | 'open-description' | 'delete' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-down';
|
|
8
9
|
export declare const BOARD_MIND_MAP_KEYBOARD_SHORTCUT_BINDINGS: Record<MindMapKeyboardShortcutAction, number>;
|
|
9
10
|
export declare const BOARD_MIND_MAP_KEYBOARD_SHORTCUT_EXTRA_BINDINGS: Partial<Record<MindMapKeyboardShortcutAction, readonly number[]>>;
|
|
10
11
|
export declare function getMindMapKeyboardShortcutBindings(action: MindMapKeyboardShortcutAction): readonly number[];
|
|
11
12
|
export declare class BoardMindMapKeyboardShortcutController extends RxDisposable {
|
|
12
|
-
private readonly _boardElementService;
|
|
13
|
-
private readonly _elementStateService;
|
|
14
|
-
private readonly _boardUIStateService;
|
|
15
13
|
private readonly _mindMapClipboardService;
|
|
16
14
|
private readonly _commandService;
|
|
17
15
|
private readonly _shortcutService;
|
|
18
|
-
|
|
19
|
-
private readonly _dialogService;
|
|
20
|
-
constructor(_boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _boardUIStateService: IBoardUIStateService, _mindMapClipboardService: IMindMapClipboardService, _commandService: ICommandService, _shortcutService: IShortcutService, _boardTextEditingService: BoardTextEditingService, _dialogService: IDialogService);
|
|
16
|
+
constructor(_mindMapClipboardService: IMindMapClipboardService, _commandService: ICommandService, _shortcutService: IShortcutService);
|
|
21
17
|
private _init;
|
|
22
18
|
private _createKeyboardShortcutOperation;
|
|
23
19
|
private _createShortcutItems;
|
|
24
|
-
|
|
20
|
+
handleShortcut(runtime: BoardMindMapShortcutRuntimeService, action: MindMapKeyboardShortcutAction | undefined): boolean;
|
|
25
21
|
private _copySelectedNode;
|
|
26
22
|
private _pasteUnderSelectedNode;
|
|
27
23
|
private _pasteAsNewMindMap;
|
|
28
24
|
private _addChild;
|
|
29
25
|
private _addSiblingOrChild;
|
|
30
26
|
private _executeNodeOperation;
|
|
27
|
+
private _deleteSelectedNode;
|
|
31
28
|
private _collapseAll;
|
|
32
29
|
private _openSelectedTextEditing;
|
|
33
30
|
private _openDescriptionDialog;
|
|
@@ -2,7 +2,7 @@ import type { UnitModel } from '@univerjs/core';
|
|
|
2
2
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
3
|
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
4
|
import { BoardTextEditingService, IBoardElementStateService, IBoardUIStateService } from '@univerjs-pro/boards-ui';
|
|
5
|
-
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
5
|
+
import { ICommandService, LocaleService, RxDisposable } from '@univerjs/core';
|
|
6
6
|
import { BoardMindMapPreviewRefreshService } from '../services/board-mind-map-preview-refresh.service';
|
|
7
7
|
export declare class BoardMindMapNodeControlsRenderController extends RxDisposable implements IRenderModule {
|
|
8
8
|
private readonly _renderContext;
|
|
@@ -11,12 +11,13 @@ export declare class BoardMindMapNodeControlsRenderController extends RxDisposab
|
|
|
11
11
|
private readonly _stateService;
|
|
12
12
|
private readonly _commandService;
|
|
13
13
|
private readonly _boardTextEditingService;
|
|
14
|
+
private readonly _localeService;
|
|
14
15
|
private readonly _previewRefreshService;
|
|
15
16
|
private _object;
|
|
16
17
|
private _objectEventDisposables;
|
|
17
18
|
private _activeNodeId;
|
|
18
19
|
private _activeScopeId;
|
|
19
|
-
constructor(_renderContext: IRenderContext<UnitModel>, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _stateService: IBoardUIStateService, _commandService: ICommandService, _boardTextEditingService: BoardTextEditingService, _previewRefreshService: BoardMindMapPreviewRefreshService);
|
|
20
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _stateService: IBoardUIStateService, _commandService: ICommandService, _boardTextEditingService: BoardTextEditingService, _localeService: LocaleService, _previewRefreshService: BoardMindMapPreviewRefreshService);
|
|
20
21
|
private _init;
|
|
21
22
|
private _ensureObject;
|
|
22
23
|
private _attachObjectEvents;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
2
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
3
|
+
import { BoardTextEditingService, IBoardElementStateService } from '@univerjs-pro/boards-ui';
|
|
4
|
+
import { IContextService, RxDisposable } from '@univerjs/core';
|
|
5
|
+
export declare class BoardMindMapShortcutContextRenderController extends RxDisposable implements IRenderModule {
|
|
6
|
+
private readonly _boardElementService;
|
|
7
|
+
private readonly _elementStateService;
|
|
8
|
+
private readonly _textEditingService;
|
|
9
|
+
private readonly _contextService;
|
|
10
|
+
constructor(_renderContext: IRenderContext, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _textEditingService: BoardTextEditingService, _contextService: IContextService);
|
|
11
|
+
private _syncContext;
|
|
12
|
+
dispose(): void;
|
|
13
|
+
private _resetContext;
|
|
14
|
+
}
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IBoardElementStateService } from '@univerjs-pro/boards-ui';
|
|
3
|
-
import { ICommandService, IContextService, RxDisposable } from '@univerjs/core';
|
|
1
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
4
2
|
import { IShortcutService } from '@univerjs/ui';
|
|
5
3
|
export declare const FOCUSING_MIND_MAP_TEXT_EDITOR = "FOCUSING_MIND_MAP_TEXT_EDITOR";
|
|
6
4
|
export declare class BoardMindMapTextEditingShortcutController extends RxDisposable {
|
|
7
|
-
private readonly _boardElementService;
|
|
8
|
-
private readonly _elementStateService;
|
|
9
|
-
private readonly _contextService;
|
|
10
5
|
private readonly _commandService;
|
|
11
6
|
private readonly _shortcutService;
|
|
12
|
-
constructor(
|
|
7
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
13
8
|
private _init;
|
|
14
9
|
private _createQuoteShortcut;
|
|
15
|
-
private _syncMindMapTextEditorContext;
|
|
16
|
-
private _isEditingMindMapNode;
|
|
17
|
-
dispose(): void;
|
|
18
10
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { IMindMapClipboardService } from '@univerjs-pro/boards-mind';
|
|
5
|
+
import { BoardTextEditingService, IBoardElementStateService, IBoardUIStateService } from '@univerjs-pro/boards-ui';
|
|
6
|
+
import { Disposable, ICommandService, LocaleService } from '@univerjs/core';
|
|
7
|
+
import { IDialogService } from '@univerjs/ui';
|
|
8
|
+
export declare class BoardMindMapShortcutRuntimeService extends Disposable implements IRenderModule {
|
|
9
|
+
readonly renderContext: IRenderContext<BoardModel>;
|
|
10
|
+
readonly commandService: ICommandService;
|
|
11
|
+
readonly elementService: IBoardElementService;
|
|
12
|
+
readonly elementStateService: IBoardElementStateService;
|
|
13
|
+
readonly uiStateService: IBoardUIStateService;
|
|
14
|
+
readonly clipboardService: IMindMapClipboardService;
|
|
15
|
+
readonly dialogService: IDialogService;
|
|
16
|
+
readonly localeService: LocaleService;
|
|
17
|
+
readonly textEditingService: BoardTextEditingService;
|
|
18
|
+
constructor(renderContext: IRenderContext<BoardModel>, commandService: ICommandService, elementService: IBoardElementService, elementStateService: IBoardElementStateService, uiStateService: IBoardUIStateService, clipboardService: IMindMapClipboardService, dialogService: IDialogService, localeService: LocaleService, textEditingService: BoardTextEditingService);
|
|
19
|
+
}
|
|
@@ -35,14 +35,14 @@ export declare function resolveMindMapToolbarTextState(shapeData: IShapeData | u
|
|
|
35
35
|
verticalAlign: VerticalAlign;
|
|
36
36
|
};
|
|
37
37
|
export declare function resolveMindMapShortcutDisplay(shortcutService: Pick<IShortcutService, 'getShortcutDisplay'>, action?: MindMapKeyboardShortcutAction): string | undefined;
|
|
38
|
-
export declare function handleMindMapToolbarStructureKindChange(commandService: ICommandService, params: {
|
|
38
|
+
export declare function handleMindMapToolbarStructureKindChange(commandService: ICommandService, runGrouped: <T>(action: () => T) => T, params: {
|
|
39
39
|
unitId: string;
|
|
40
40
|
subUnitId: string;
|
|
41
41
|
scopeId: string;
|
|
42
42
|
structureKind: MindMapStructureKind;
|
|
43
43
|
branchLineType?: MindMapBranchLineType;
|
|
44
44
|
}): Promise<boolean>;
|
|
45
|
-
export declare function handleMindMapToolbarBranchLineTypeChange(commandService: ICommandService, params: {
|
|
45
|
+
export declare function handleMindMapToolbarBranchLineTypeChange(commandService: ICommandService, runGrouped: <T>(action: () => T) => T, params: {
|
|
46
46
|
unitId: string;
|
|
47
47
|
subUnitId: string;
|
|
48
48
|
scopeId: string;
|