@univerjs-pro/boards-mind-ui 1.0.0-alpha.3 → 1.0.0-alpha.4
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 +7 -41
- 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-drag-topology.render-controller.d.ts +3 -3
- package/lib/types/controllers/board-mind-map-floating-toolbar.render-controller.d.ts +1 -3
- package/lib/types/controllers/board-mind-map-insert.render-controller.d.ts +3 -3
- package/lib/types/controllers/board-mind-map-intrinsic-size.render-controller.d.ts +3 -3
- package/lib/types/controllers/board-mind-map-keyboard-shortcut.controller.d.ts +3 -3
- package/lib/types/controllers/board-mind-map-node-controls.render-controller.d.ts +3 -3
- package/lib/types/controllers/board-mind-map-panel.controller.d.ts +3 -4
- package/lib/types/controllers/components.controller.d.ts +7 -0
- package/lib/types/render-objects/board-mind-map-node-controls-object.d.ts +0 -1
- package/lib/types/utils/mind-map-node-controls.util.d.ts +14 -15
- 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-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0xf565(){const _0x2e919e=['两端对齐','43059DhQjbl','171ZRbBTM','父子间距','纵向时间线','添加同级节点','连接线样式','垂直居中','思维导图','左侧树形图','同级间距','左右树形图','导入\x20OPML','居中对齐','添加子节点','8XEEFOF','4456325HyYlqX','顶部对齐','暂无节点','左右思维导图','导入/导出','1729209rYtrPB','导出\x20OPML','重命名思维导图节点','为当前节点添加描述','7263606nXelBi','底部对齐','上下思维导图','5300344WbfjWc','12833184nuQoUZ','分支间距','242BtWHFb','右侧树形图','2442280mfnUfT','直角折线','添加文本','字体颜色','横向时间线','左对齐','粘贴\x20OPML\x20XML'];_0xf565=function(){return _0x2e919e;};return _0xf565();}function _0x7a02(_0x43dad3,_0x1f04f9){_0x43dad3=_0x43dad3-0x120;const _0xf565a0=_0xf565();let _0x7a0233=_0xf565a0[_0x43dad3];return _0x7a0233;}const _0x496075=_0x7a02;(function(_0x17f647,_0x13a3d7){const _0x44f377=_0x7a02,_0x4a3a74=_0x17f647();while(!![]){try{const _0x1b5d7d=-parseInt(_0x44f377(0x13e))/0x1+parseInt(_0x44f377(0x120))/0x2*(-parseInt(_0x44f377(0x12a))/0x3)+-parseInt(_0x44f377(0x138))/0x4*(-parseInt(_0x44f377(0x139))/0x5)+-parseInt(_0x44f377(0x142))/0x6+parseInt(_0x44f377(0x145))/0x7+-parseInt(_0x44f377(0x146))/0x8+-parseInt(_0x44f377(0x12b))/0x9*(-parseInt(_0x44f377(0x122))/0xa);if(_0x1b5d7d===_0x13a3d7)break;else _0x4a3a74['push'](_0x4a3a74['shift']());}catch(_0x53b5de){_0x4a3a74['push'](_0x4a3a74['shift']());}}}(_0xf565,0xdb937));const e={'boards-mind-ui':{'alignBottom':_0x496075(0x143),'alignMiddle':_0x496075(0x130),'alignTop':_0x496075(0x13a),'alignJustify':_0x496075(0x129),'alignRight':'右对齐','alignCenter':_0x496075(0x136),'alignLeft':_0x496075(0x127),'saveDescription':'保存','descriptionPlaceholder':_0x496075(0x141),'description':'描述','cancel':'取消','panel':{'title':_0x496075(0x131),'tab':{'importExport':_0x496075(0x13d),'layout':'布局','structure':'结构'},'layout':{'both':'双向','left':'左侧','right':'右侧'},'structureKind':{'mindmapHorizontal':_0x496075(0x13c),'mindmapVertical':_0x496075(0x144),'treeRight':_0x496075(0x121),'treeLeft':_0x496075(0x132),'treeAlternate':_0x496075(0x134),'timelineHorizontal':_0x496075(0x126),'timelineVertical':_0x496075(0x12d)},'branchLineType':{'curve':'曲线','roundedOrthogonal':'圆角折线','orthogonal':_0x496075(0x123)},'addText':_0x496075(0x124),'cancel':'取消','emptyNodes':_0x496075(0x13b),'exportOPML':_0x496075(0x13f),'importOPML':_0x496075(0x135),'pasteOPML':_0x496075(0x128),'rename':'重命名','renamePrompt':_0x496075(0x140),'searchNodes':'搜索节点','spacing':{'branchGap':_0x496075(0x147),'parentGap':_0x496075(0x12c),'siblingGap':_0x496075(0x133)}},'toolbar':{'primary':{'line':_0x496075(0x12f),'fontColor':_0x496075(0x125),'typography':'排版','more':'更多'},'panel':{'line':'线条','typography':'排版','more':'更多'},'action':{'addChild':_0x496075(0x137),'addSibling':_0x496075(0x12e),'copy':'复制','delete':'删除','fill':'填充','fontColor':'字体颜色','layout':'布局','paste':'粘贴','stroke':'描边'}}}};export{e as default};
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2bbbe5=_0x432f;function _0x192b(){const _0x468bbf=['文字排版','1132380bZHStc','靠右對齊','3289168YcgXxU','心智圖','173668AakTlC','1238105IhBzGt','9XNYGTz','左右對齊','置中對齊','匯入\x20OPML','貼上\x20OPML\x20XML','重新命名心智圖節點','5540hCYaWk','版面配置','右側樹狀圖','直角折線','新增子節點','沒有節點','垂直置中','左側樹狀圖','新增同層節點','靠下對齊','連接線樣式','為目前節點新增描述','匯出\x20OPML','7GSxiJa','父子間距','縱向心智圖','570feGrZm','圓角折線','2gmvprG','904230WEqods','分支間距','搜尋節點','重新命名','橫向時間軸','3214370lBejSf'];_0x192b=function(){return _0x468bbf;};return _0x192b();}function _0x432f(_0x491a1b,_0x2a606e){_0x491a1b=_0x491a1b-0xa8;const _0x192b8e=_0x192b();let _0x432f36=_0x192b8e[_0x491a1b];return _0x432f36;}(function(_0x25b68c,_0x4413b4){const _0x4359f1=_0x432f,_0x5eaa98=_0x25b68c();while(!![]){try{const _0x1fd56d=parseInt(_0x4359f1(0xc9))/0x1*(-parseInt(_0x4359f1(0xbd))/0x2)+parseInt(_0x4359f1(0xc5))/0x3+parseInt(_0x4359f1(0xab))/0x4*(parseInt(_0x4359f1(0xbb))/0x5)+-parseInt(_0x4359f1(0xbe))/0x6+-parseInt(_0x4359f1(0xb8))/0x7*(parseInt(_0x4359f1(0xc7))/0x8)+-parseInt(_0x4359f1(0xcb))/0x9*(-parseInt(_0x4359f1(0xc3))/0xa)+parseInt(_0x4359f1(0xca))/0xb;if(_0x1fd56d===_0x4413b4)break;else _0x5eaa98['push'](_0x5eaa98['shift']());}catch(_0x329eff){_0x5eaa98['push'](_0x5eaa98['shift']());}}}(_0x192b,0x3915f));const e={'boards-mind-ui':{'alignBottom':_0x2bbbe5(0xb4),'alignMiddle':_0x2bbbe5(0xb1),'alignTop':'靠上對齊','alignJustify':_0x2bbbe5(0xcc),'alignRight':_0x2bbbe5(0xc6),'alignCenter':_0x2bbbe5(0xcd),'alignLeft':'靠左對齊','saveDescription':'儲存','descriptionPlaceholder':_0x2bbbe5(0xb6),'description':'描述','cancel':'取消','panel':{'title':_0x2bbbe5(0xc8),'tab':{'importExport':'匯入/匯出','layout':_0x2bbbe5(0xac),'structure':'結構'},'layout':{'both':'雙向','left':'左側','right':'右側'},'structureKind':{'mindmapHorizontal':'橫向心智圖','mindmapVertical':_0x2bbbe5(0xba),'treeRight':_0x2bbbe5(0xad),'treeLeft':_0x2bbbe5(0xb2),'treeAlternate':'左右樹狀圖','timelineHorizontal':_0x2bbbe5(0xc2),'timelineVertical':'縱向時間軸'},'branchLineType':{'curve':'曲線','roundedOrthogonal':_0x2bbbe5(0xbc),'orthogonal':_0x2bbbe5(0xae)},'addText':'新增文字','cancel':'取消','emptyNodes':_0x2bbbe5(0xb0),'exportOPML':_0x2bbbe5(0xb7),'importOPML':_0x2bbbe5(0xa8),'pasteOPML':_0x2bbbe5(0xa9),'rename':_0x2bbbe5(0xc1),'renamePrompt':_0x2bbbe5(0xaa),'searchNodes':_0x2bbbe5(0xc0),'spacing':{'branchGap':_0x2bbbe5(0xbf),'parentGap':_0x2bbbe5(0xb9),'siblingGap':'同層間距'}},'toolbar':{'primary':{'line':_0x2bbbe5(0xb5),'fontColor':'字型顏色','typography':_0x2bbbe5(0xc4),'more':'更多'},'panel':{'line':'線條','typography':_0x2bbbe5(0xc4),'more':'更多'},'action':{'addChild':_0x2bbbe5(0xaf),'addSibling':_0x2bbbe5(0xb3),'copy':'複製','delete':'刪除','fill':'填滿','fontColor':'字型顏色','layout':_0x2bbbe5(0xac),'paste':'貼上','stroke':'外框'}}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4a5048=_0x2885;(function(_0x37a221,_0xce389c){const _0x4efada=_0x2885,_0x53b588=_0x37a221();while(!![]){try{const _0x49f091=parseInt(_0x4efada(0x15e))/0x1+-parseInt(_0x4efada(0x166))/0x2*(-parseInt(_0x4efada(0x151))/0x3)+-parseInt(_0x4efada(0x169))/0x4+-parseInt(_0x4efada(0x14b))/0x5+parseInt(_0x4efada(0x153))/0x6+-parseInt(_0x4efada(0x148))/0x7*(parseInt(_0x4efada(0x150))/0x8)+parseInt(_0x4efada(0x162))/0x9*(parseInt(_0x4efada(0x158))/0xa);if(_0x49f091===_0xce389c)break;else _0x53b588['push'](_0x53b588['shift']());}catch(_0x5adb7a){_0x53b588['push'](_0x53b588['shift']());}}}(_0x48de,0xbb938));const e={'boards-mind-ui':{'alignBottom':_0x4a5048(0x160),'alignMiddle':_0x4a5048(0x14c),'alignTop':_0x4a5048(0x15d),'alignJustify':_0x4a5048(0x147),'alignRight':_0x4a5048(0x157),'alignCenter':_0x4a5048(0x156),'alignLeft':'靠左對齊','saveDescription':'儲存','descriptionPlaceholder':_0x4a5048(0x14d),'description':'描述','cancel':'取消','panel':{'title':_0x4a5048(0x164),'tab':{'importExport':_0x4a5048(0x15f),'layout':_0x4a5048(0x167),'structure':'結構'},'layout':{'both':'雙向','left':'左側','right':'右側'},'structureKind':{'mindmapHorizontal':_0x4a5048(0x16c),'mindmapVertical':_0x4a5048(0x168),'treeRight':_0x4a5048(0x159),'treeLeft':_0x4a5048(0x14f),'treeAlternate':'左右樹狀圖','timelineHorizontal':_0x4a5048(0x163),'timelineVertical':_0x4a5048(0x14e)},'branchLineType':{'curve':'曲線','roundedOrthogonal':_0x4a5048(0x16a),'orthogonal':_0x4a5048(0x149)},'addText':_0x4a5048(0x155),'cancel':'取消','emptyNodes':_0x4a5048(0x152),'exportOPML':_0x4a5048(0x165),'importOPML':_0x4a5048(0x15b),'pasteOPML':_0x4a5048(0x15a),'rename':'重新命名','renamePrompt':'重新命名心智圖節點','searchNodes':'搜尋節點','spacing':{'branchGap':_0x4a5048(0x16b),'parentGap':'父子間距','siblingGap':_0x4a5048(0x154)}},'toolbar':{'primary':{'line':_0x4a5048(0x146),'fontColor':'字型顏色','typography':_0x4a5048(0x145),'more':'更多'},'panel':{'line':'線條','typography':_0x4a5048(0x145),'more':'更多'},'action':{'addChild':_0x4a5048(0x161),'addSibling':_0x4a5048(0x15c),'copy':'複製','delete':'刪除','fill':'填滿','fontColor':_0x4a5048(0x14a),'layout':_0x4a5048(0x167),'paste':'貼上','stroke':'外框'}}}};export{e as default};function _0x2885(_0x2f043d,_0x25138a){_0x2f043d=_0x2f043d-0x145;const _0x48de37=_0x48de();let _0x288555=_0x48de37[_0x2f043d];return _0x288555;}function _0x48de(){const _0x4c3cb0=['204710pJfqeQ','右側樹狀圖','貼上\x20OPML\x20XML','匯入\x20OPML','新增同層節點','靠上對齊','1298630OrVDKu','匯入/匯出','靠下對齊','新增子節點','9XTCtaO','橫向時間軸','心智圖','匯出\x20OPML','94124USnbTz','版面配置','縱向心智圖','1738488Lyqwkd','圓角折線','分支間距','橫向心智圖','文字排版','連接線樣式','左右對齊','14hwrUpJ','直角折線','字型顏色','5191145xGeiTM','垂直置中','為目前節點新增描述','縱向時間軸','左側樹狀圖','1815784TlWsag','12RpvOFo','沒有節點','7126560oEkEmI','同層間距','新增文字','置中對齊','靠右對齊'];_0x48de=function(){return _0x4c3cb0;};return _0x48de();}
|
|
@@ -8,8 +8,8 @@ export declare class BoardMindMapDragTopologyRenderController extends RxDisposab
|
|
|
8
8
|
private readonly _boardElementService;
|
|
9
9
|
private readonly _elementStateService;
|
|
10
10
|
private readonly _commandService;
|
|
11
|
-
private readonly _uiStateService
|
|
12
|
-
private readonly _instanceService
|
|
11
|
+
private readonly _uiStateService;
|
|
12
|
+
private readonly _instanceService;
|
|
13
13
|
private _dragStart;
|
|
14
14
|
private _pointerDragStart;
|
|
15
15
|
private _dragPreviewObject;
|
|
@@ -19,7 +19,7 @@ export declare class BoardMindMapDragTopologyRenderController extends RxDisposab
|
|
|
19
19
|
private _attachObjectPointerScheduled;
|
|
20
20
|
private _activePointerDragDisposables;
|
|
21
21
|
private _childDragSelectionHidden;
|
|
22
|
-
constructor(_renderContext: IRenderContext<UnitModel>, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _commandService: ICommandService, _uiStateService
|
|
22
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _commandService: ICommandService, _uiStateService: IBoardUIStateService, _instanceService: IUniverInstanceService);
|
|
23
23
|
private _init;
|
|
24
24
|
private _subscribeElementDataChanges;
|
|
25
25
|
private _scheduleAttachObjectPointerListeners;
|
|
@@ -3,17 +3,15 @@ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
|
3
3
|
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
4
|
import { BoardCanvasPopManagerService, BoardTextEditingService, IBoardElementStateService } from '@univerjs-pro/boards-ui';
|
|
5
5
|
import { RxDisposable } from '@univerjs/core';
|
|
6
|
-
import { ComponentManager } from '@univerjs/ui';
|
|
7
6
|
export declare class BoardMindMapFloatingToolbarRenderController extends RxDisposable implements IRenderModule {
|
|
8
7
|
private readonly _renderContext;
|
|
9
|
-
private readonly _componentManager;
|
|
10
8
|
private readonly _boardCanvasPopManagerService;
|
|
11
9
|
private readonly _boardElementService;
|
|
12
10
|
private readonly _elementStateService;
|
|
13
11
|
private readonly _boardTextEditingService;
|
|
14
12
|
private _popupDisposable;
|
|
15
13
|
private _popupSelectionKey;
|
|
16
|
-
constructor(_renderContext: IRenderContext<UnitModel>,
|
|
14
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _boardCanvasPopManagerService: BoardCanvasPopManagerService, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _boardTextEditingService: BoardTextEditingService);
|
|
17
15
|
dispose(): void;
|
|
18
16
|
private _init;
|
|
19
17
|
private _clearPopup;
|
|
@@ -9,11 +9,11 @@ export declare class BoardMindMapInsertRenderController extends RxDisposable imp
|
|
|
9
9
|
private readonly _stateService;
|
|
10
10
|
private readonly _commandService;
|
|
11
11
|
private readonly _insertStateService;
|
|
12
|
-
private readonly _elementStateService
|
|
13
|
-
private readonly _boardTextEditingService
|
|
12
|
+
private readonly _elementStateService;
|
|
13
|
+
private readonly _boardTextEditingService;
|
|
14
14
|
private _previewObject;
|
|
15
15
|
private _lastPoint;
|
|
16
|
-
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _stateService: IBoardUIStateService, _commandService: ICommandService, _insertStateService: BoardMindMapInsertStateService, _elementStateService
|
|
16
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _stateService: IBoardUIStateService, _commandService: ICommandService, _insertStateService: BoardMindMapInsertStateService, _elementStateService: IBoardElementStateService, _boardTextEditingService: BoardTextEditingService);
|
|
17
17
|
private _init;
|
|
18
18
|
private _syncSceneInputMode;
|
|
19
19
|
private _syncPreviewObject;
|
|
@@ -14,11 +14,11 @@ export declare class BoardMindMapIntrinsicSizeRenderController extends RxDisposa
|
|
|
14
14
|
private readonly _renderContext;
|
|
15
15
|
private readonly _intrinsicSizeService;
|
|
16
16
|
private readonly _boardElementService;
|
|
17
|
-
private readonly _textEditingService
|
|
18
|
-
private readonly _previewRefreshService
|
|
17
|
+
private readonly _textEditingService;
|
|
18
|
+
private readonly _previewRefreshService;
|
|
19
19
|
private _activePreview;
|
|
20
20
|
private readonly _provider;
|
|
21
|
-
constructor(_renderContext: IRenderContext<UnitModel>, _intrinsicSizeService: BoardShapeIntrinsicSizeService, _boardElementService: IBoardElementService, _textEditingService
|
|
21
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _intrinsicSizeService: BoardShapeIntrinsicSizeService, _boardElementService: IBoardElementService, _textEditingService: BoardTextEditingService, _previewRefreshService: BoardMindMapPreviewRefreshService);
|
|
22
22
|
private _updateHostSize;
|
|
23
23
|
private _previewHostSize;
|
|
24
24
|
private _resolveHostSize;
|
|
@@ -15,9 +15,9 @@ export declare class BoardMindMapKeyboardShortcutController extends RxDisposable
|
|
|
15
15
|
private readonly _mindMapClipboardService;
|
|
16
16
|
private readonly _commandService;
|
|
17
17
|
private readonly _shortcutService;
|
|
18
|
-
private readonly _boardTextEditingService
|
|
19
|
-
private readonly _dialogService
|
|
20
|
-
constructor(_boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _boardUIStateService: IBoardUIStateService, _mindMapClipboardService: IMindMapClipboardService, _commandService: ICommandService, _shortcutService: IShortcutService, _boardTextEditingService
|
|
18
|
+
private readonly _boardTextEditingService;
|
|
19
|
+
private readonly _dialogService;
|
|
20
|
+
constructor(_boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _boardUIStateService: IBoardUIStateService, _mindMapClipboardService: IMindMapClipboardService, _commandService: ICommandService, _shortcutService: IShortcutService, _boardTextEditingService: BoardTextEditingService, _dialogService: IDialogService);
|
|
21
21
|
private _init;
|
|
22
22
|
private _createKeyboardShortcutOperation;
|
|
23
23
|
private _createShortcutItems;
|
|
@@ -10,13 +10,13 @@ export declare class BoardMindMapNodeControlsRenderController extends RxDisposab
|
|
|
10
10
|
private readonly _elementStateService;
|
|
11
11
|
private readonly _stateService;
|
|
12
12
|
private readonly _commandService;
|
|
13
|
-
private readonly _boardTextEditingService
|
|
14
|
-
private readonly _previewRefreshService
|
|
13
|
+
private readonly _boardTextEditingService;
|
|
14
|
+
private readonly _previewRefreshService;
|
|
15
15
|
private _object;
|
|
16
16
|
private _objectEventDisposables;
|
|
17
17
|
private _activeNodeId;
|
|
18
18
|
private _activeScopeId;
|
|
19
|
-
constructor(_renderContext: IRenderContext<UnitModel>, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _stateService: IBoardUIStateService, _commandService: ICommandService, _boardTextEditingService
|
|
19
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _stateService: IBoardUIStateService, _commandService: ICommandService, _boardTextEditingService: BoardTextEditingService, _previewRefreshService: BoardMindMapPreviewRefreshService);
|
|
20
20
|
private _init;
|
|
21
21
|
private _ensureObject;
|
|
22
22
|
private _attachObjectEvents;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import type { IOpenMindMapPanelOperationParams } from '../commands/operations/open-mind-map-panel.operation';
|
|
2
2
|
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
3
3
|
import { Disposable, ICommandService, LocaleService } from '@univerjs/core';
|
|
4
|
-
import {
|
|
4
|
+
import { ISidebarService } from '@univerjs/ui';
|
|
5
5
|
export declare class BoardMindMapPanelController extends Disposable {
|
|
6
|
-
private readonly _componentManager;
|
|
7
6
|
private readonly _commandService;
|
|
8
7
|
private readonly _localeService;
|
|
9
8
|
private readonly _sidebarService;
|
|
10
|
-
private readonly _boardElementService
|
|
9
|
+
private readonly _boardElementService;
|
|
11
10
|
private _sidebarDisposable;
|
|
12
|
-
constructor(
|
|
11
|
+
constructor(_commandService: ICommandService, _localeService: LocaleService, _sidebarService: ISidebarService, _boardElementService: IBoardElementService);
|
|
13
12
|
dispose(): void;
|
|
14
13
|
open(params: IOpenMindMapPanelOperationParams): void;
|
|
15
14
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { ComponentManager } from '@univerjs/ui';
|
|
3
|
+
export declare class ComponentsController extends Disposable {
|
|
4
|
+
private readonly _componentManager;
|
|
5
|
+
constructor(_componentManager: ComponentManager);
|
|
6
|
+
private _registerComponents;
|
|
7
|
+
}
|
|
@@ -4,7 +4,6 @@ import { BaseObject } from '@univerjs/engine-render';
|
|
|
4
4
|
export interface IBoardMindMapNodeControlsObjectState {
|
|
5
5
|
controls: IMindMapNodeControl[];
|
|
6
6
|
hoveredControl?: IMindMapNodeControl | null;
|
|
7
|
-
zoomRatio: number;
|
|
8
7
|
}
|
|
9
8
|
export declare const BOARD_MIND_MAP_NODE_CONTROLS_OBJECT_KEY = "board-mind-map-node-controls-object";
|
|
10
9
|
export declare const BOARD_MIND_MAP_NODE_CONTROLS_OBJECT_LAYER_INDEX: 5;
|
|
@@ -12,7 +12,6 @@ export interface IResolveMindMapNodeControlLayoutOptions {
|
|
|
12
12
|
rootChildSides?: Array<'left' | 'right' | 'top' | 'bottom'>;
|
|
13
13
|
hasChildren: boolean;
|
|
14
14
|
collapsedDescendantCount: number;
|
|
15
|
-
zoomRatio: number;
|
|
16
15
|
}
|
|
17
16
|
export interface IMindMapNodeControl {
|
|
18
17
|
kind: MindMapNodeControlKind;
|
|
@@ -24,23 +23,23 @@ export interface IMindMapNodeControl {
|
|
|
24
23
|
badgeCount?: number;
|
|
25
24
|
}
|
|
26
25
|
export declare const BOARD_MIND_MAP_NODE_CONTROL_TOKENS: {
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
32
|
-
readonly
|
|
33
|
-
readonly
|
|
26
|
+
readonly radius: 18;
|
|
27
|
+
readonly addChildRadius: 14;
|
|
28
|
+
readonly siblingHoverRadius: 10;
|
|
29
|
+
readonly siblingDotRadius: 5;
|
|
30
|
+
readonly siblingDotGap: 3;
|
|
31
|
+
readonly gap: 10;
|
|
32
|
+
readonly collapsePlusMinDistance: 44;
|
|
34
33
|
readonly primaryColor: "#2563EB";
|
|
35
34
|
readonly surfaceColor: "#ffffff";
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
35
|
+
readonly borderWidth: 2;
|
|
36
|
+
readonly glyphSize: 8;
|
|
37
|
+
readonly addChildGlyphSize: 6;
|
|
38
|
+
readonly siblingGlyphSize: 5.5;
|
|
39
|
+
readonly glyphWidth: 2.4;
|
|
40
|
+
readonly glyphHoverWidth: 3;
|
|
42
41
|
readonly badgeFontWeight: 600;
|
|
43
|
-
readonly
|
|
42
|
+
readonly badgeFontSize: 18;
|
|
44
43
|
readonly fontFamily: string;
|
|
45
44
|
};
|
|
46
45
|
export declare function resolveMindMapNodeControlLayout(options: IResolveMindMapNodeControlLayoutOptions): IMindMapNodeControl[];
|