@univerjs-pro/boards-mind-ui 1.0.0-alpha.3 → 1.0.0-alpha.5
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
|
+
const _0x54a15c=_0x1968;(function(_0xc198e8,_0x1b83f3){const _0x16ec88=_0x1968,_0x1dfbd0=_0xc198e8();while(!![]){try{const _0x3d533e=-parseInt(_0x16ec88(0x1cb))/0x1+-parseInt(_0x16ec88(0x1ca))/0x2+parseInt(_0x16ec88(0x1cc))/0x3*(-parseInt(_0x16ec88(0x1e4))/0x4)+-parseInt(_0x16ec88(0x1e8))/0x5+-parseInt(_0x16ec88(0x1de))/0x6+parseInt(_0x16ec88(0x1e6))/0x7+parseInt(_0x16ec88(0x1e1))/0x8;if(_0x3d533e===_0x1b83f3)break;else _0x1dfbd0['push'](_0x1dfbd0['shift']());}catch(_0x3a7022){_0x1dfbd0['push'](_0x1dfbd0['shift']());}}}(_0xda12,0xcda0f));function _0x1968(_0x2552d4,_0x2aa3db){_0x2552d4=_0x2552d4-0x1ca;const _0xda12ae=_0xda12();let _0x1968b5=_0xda12ae[_0x2552d4];return _0x1968b5;}function _0xda12(){const _0x5a11e3=['添加同级节点','圆角折线','暂无节点','导出\x20OPML','3688050WCuimm','字体颜色','垂直居中','24389544HsDoHl','横向时间线','左侧树形图','4wpHhbX','顶部对齐','9568356TAidPl','添加子节点','4620020XVdLaR','直角折线','纵向时间线','导入\x20OPML','导入/导出','1383618oVUqSk','1312353zZnlbI','91515wttyvZ','粘贴\x20OPML\x20XML','分支间距','同级间距','重命名思维导图节点','底部对齐','居中对齐','搜索节点','重命名','父子间距','左右思维导图','思维导图','添加文本','两端对齐'];_0xda12=function(){return _0x5a11e3;};return _0xda12();}const e={'boards-mind-ui':{'alignBottom':_0x54a15c(0x1d1),'alignMiddle':_0x54a15c(0x1e0),'alignTop':_0x54a15c(0x1e5),'alignJustify':_0x54a15c(0x1d9),'alignRight':'右对齐','alignCenter':_0x54a15c(0x1d2),'alignLeft':'左对齐','saveDescription':'保存','descriptionPlaceholder':'为当前节点添加描述','description':'描述','cancel':'取消','panel':{'title':_0x54a15c(0x1d7),'tab':{'importExport':_0x54a15c(0x1ec),'layout':'布局','structure':'结构'},'layout':{'both':'双向','left':'左侧','right':'右侧'},'structureKind':{'mindmapHorizontal':_0x54a15c(0x1d6),'mindmapVertical':'上下思维导图','treeRight':'右侧树形图','treeLeft':_0x54a15c(0x1e3),'treeAlternate':'左右树形图','timelineHorizontal':_0x54a15c(0x1e2),'timelineVertical':_0x54a15c(0x1ea)},'branchLineType':{'curve':'曲线','roundedOrthogonal':_0x54a15c(0x1db),'orthogonal':_0x54a15c(0x1e9)},'addText':_0x54a15c(0x1d8),'cancel':'取消','emptyNodes':_0x54a15c(0x1dc),'exportOPML':_0x54a15c(0x1dd),'importOPML':_0x54a15c(0x1eb),'pasteOPML':_0x54a15c(0x1cd),'rename':_0x54a15c(0x1d4),'renamePrompt':_0x54a15c(0x1d0),'searchNodes':_0x54a15c(0x1d3),'spacing':{'branchGap':_0x54a15c(0x1ce),'parentGap':_0x54a15c(0x1d5),'siblingGap':_0x54a15c(0x1cf)}},'toolbar':{'primary':{'line':'连接线样式','fontColor':_0x54a15c(0x1df),'typography':'排版','more':'更多'},'panel':{'line':'线条','typography':'排版','more':'更多'},'action':{'addChild':_0x54a15c(0x1e7),'addSibling':_0x54a15c(0x1da),'copy':'复制','delete':'删除','fill':'填充','fontColor':'字体颜色','layout':'布局','paste':'粘贴','stroke':'描边'}}}};export{e as default};
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x72c369=_0x3a33;(function(_0x7458e5,_0x3b0c2c){const _0x45d7cc=_0x3a33,_0x364506=_0x7458e5();while(!![]){try{const _0x62c315=-parseInt(_0x45d7cc(0x11e))/0x1*(-parseInt(_0x45d7cc(0xfa))/0x2)+parseInt(_0x45d7cc(0x110))/0x3+-parseInt(_0x45d7cc(0x111))/0x4+-parseInt(_0x45d7cc(0x10b))/0x5+-parseInt(_0x45d7cc(0x10e))/0x6+parseInt(_0x45d7cc(0x109))/0x7*(-parseInt(_0x45d7cc(0x121))/0x8)+-parseInt(_0x45d7cc(0x11d))/0x9*(-parseInt(_0x45d7cc(0x106))/0xa);if(_0x62c315===_0x3b0c2c)break;else _0x364506['push'](_0x364506['shift']());}catch(_0x24db2f){_0x364506['push'](_0x364506['shift']());}}}(_0x5b4e,0x3267c));function _0x5b4e(){const _0x562579=['左右對齊','18bVlStx','1151cDHPNK','橫向心智圖','靠右對齊','520MDOUik','匯入/匯出','匯入\x20OPML','544JTxylH','沒有節點','縱向心智圖','版面配置','靠下對齊','右側樹狀圖','重新命名','重新命名心智圖節點','字型顏色','連接線樣式','靠上對齊','縱向時間軸','1154280BKwurN','貼上\x20OPML\x20XML','圓角折線','3395qAuHkN','心智圖','751620hSpqIS','置中對齊','為目前節點新增描述','964854QOCfDs','新增同層節點','48117wfGrUk','43396MtckXN','垂直置中','文字排版','靠左對齊','父子間距','直角折線','同層間距','搜尋節點','橫向時間軸','左側樹狀圖','分支間距'];_0x5b4e=function(){return _0x562579;};return _0x5b4e();}function _0x3a33(_0x2e0321,_0x23db2c){_0x2e0321=_0x2e0321-0xf9;const _0x5b4eca=_0x5b4e();let _0x3a33ed=_0x5b4eca[_0x2e0321];return _0x3a33ed;}const e={'boards-mind-ui':{'alignBottom':_0x72c369(0xfe),'alignMiddle':_0x72c369(0x112),'alignTop':_0x72c369(0x104),'alignJustify':_0x72c369(0x11c),'alignRight':_0x72c369(0x120),'alignCenter':_0x72c369(0x10c),'alignLeft':_0x72c369(0x114),'saveDescription':'儲存','descriptionPlaceholder':_0x72c369(0x10d),'description':'描述','cancel':'取消','panel':{'title':_0x72c369(0x10a),'tab':{'importExport':_0x72c369(0x122),'layout':_0x72c369(0xfd),'structure':'結構'},'layout':{'both':'雙向','left':'左側','right':'右側'},'structureKind':{'mindmapHorizontal':_0x72c369(0x11f),'mindmapVertical':_0x72c369(0xfc),'treeRight':_0x72c369(0xff),'treeLeft':_0x72c369(0x11a),'treeAlternate':'左右樹狀圖','timelineHorizontal':_0x72c369(0x119),'timelineVertical':_0x72c369(0x105)},'branchLineType':{'curve':'曲線','roundedOrthogonal':_0x72c369(0x108),'orthogonal':_0x72c369(0x116)},'addText':'新增文字','cancel':'取消','emptyNodes':_0x72c369(0xfb),'exportOPML':'匯出\x20OPML','importOPML':_0x72c369(0xf9),'pasteOPML':_0x72c369(0x107),'rename':_0x72c369(0x100),'renamePrompt':_0x72c369(0x101),'searchNodes':_0x72c369(0x118),'spacing':{'branchGap':_0x72c369(0x11b),'parentGap':_0x72c369(0x115),'siblingGap':_0x72c369(0x117)}},'toolbar':{'primary':{'line':_0x72c369(0x103),'fontColor':_0x72c369(0x102),'typography':_0x72c369(0x113),'more':'更多'},'panel':{'line':'線條','typography':_0x72c369(0x113),'more':'更多'},'action':{'addChild':'新增子節點','addSibling':_0x72c369(0x10f),'copy':'複製','delete':'刪除','fill':'填滿','fontColor':_0x72c369(0x102),'layout':_0x72c369(0xfd),'paste':'貼上','stroke':'外框'}}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x5e0c(_0x164b86,_0xc1145){_0x164b86=_0x164b86-0x16d;const _0x9464c4=_0x9464();let _0x5e0c07=_0x9464c4[_0x164b86];return _0x5e0c07;}const _0xbfe46d=_0x5e0c;function _0x9464(){const _0x209359=['3956030BIdPsQ','直角折線','靠左對齊','匯入/匯出','580DGnzMx','心智圖','橫向心智圖','51402wVYvqo','重新命名心智圖節點','同層間距','靠右對齊','父子間距','939408nQAzfK','17336XpOBCH','新增同層節點','字型顏色','右側樹狀圖','圓角折線','置中對齊','新增文字','分支間距','匯出\x20OPML','132473QAOsYY','搜尋節點','橫向時間軸','連接線樣式','167332LBYFVD','版面配置','6aqzKSa','左右樹狀圖','垂直置中','1841HqvpJP','57zSmnjH','沒有節點','縱向心智圖','10424034RMmRIQ','匯入\x20OPML'];_0x9464=function(){return _0x209359;};return _0x9464();}(function(_0x28c49e,_0x257c48){const _0x337ca3=_0x5e0c,_0x100611=_0x28c49e();while(!![]){try{const _0x188045=parseInt(_0x337ca3(0x16f))/0x1+-parseInt(_0x337ca3(0x174))/0x2+parseInt(_0x337ca3(0x188))/0x3*(parseInt(_0x337ca3(0x182))/0x4)+parseInt(_0x337ca3(0x18d))/0x5*(-parseInt(_0x337ca3(0x184))/0x6)+parseInt(_0x337ca3(0x187))/0x7*(parseInt(_0x337ca3(0x175))/0x8)+parseInt(_0x337ca3(0x18b))/0x9+parseInt(_0x337ca3(0x191))/0xa*(-parseInt(_0x337ca3(0x17e))/0xb);if(_0x188045===_0x257c48)break;else _0x100611['push'](_0x100611['shift']());}catch(_0x35d0cd){_0x100611['push'](_0x100611['shift']());}}}(_0x9464,0x9623c));const e={'boards-mind-ui':{'alignBottom':'靠下對齊','alignMiddle':_0xbfe46d(0x186),'alignTop':'靠上對齊','alignJustify':'左右對齊','alignRight':_0xbfe46d(0x172),'alignCenter':_0xbfe46d(0x17a),'alignLeft':_0xbfe46d(0x18f),'saveDescription':'儲存','descriptionPlaceholder':'為目前節點新增描述','description':'描述','cancel':'取消','panel':{'title':_0xbfe46d(0x16d),'tab':{'importExport':_0xbfe46d(0x190),'layout':_0xbfe46d(0x183),'structure':'結構'},'layout':{'both':'雙向','left':'左側','right':'右側'},'structureKind':{'mindmapHorizontal':_0xbfe46d(0x16e),'mindmapVertical':_0xbfe46d(0x18a),'treeRight':_0xbfe46d(0x178),'treeLeft':'左側樹狀圖','treeAlternate':_0xbfe46d(0x185),'timelineHorizontal':_0xbfe46d(0x180),'timelineVertical':'縱向時間軸'},'branchLineType':{'curve':'曲線','roundedOrthogonal':_0xbfe46d(0x179),'orthogonal':_0xbfe46d(0x18e)},'addText':_0xbfe46d(0x17b),'cancel':'取消','emptyNodes':_0xbfe46d(0x189),'exportOPML':_0xbfe46d(0x17d),'importOPML':_0xbfe46d(0x18c),'pasteOPML':'貼上\x20OPML\x20XML','rename':'重新命名','renamePrompt':_0xbfe46d(0x170),'searchNodes':_0xbfe46d(0x17f),'spacing':{'branchGap':_0xbfe46d(0x17c),'parentGap':_0xbfe46d(0x173),'siblingGap':_0xbfe46d(0x171)}},'toolbar':{'primary':{'line':_0xbfe46d(0x181),'fontColor':_0xbfe46d(0x177),'typography':'文字排版','more':'更多'},'panel':{'line':'線條','typography':'文字排版','more':'更多'},'action':{'addChild':'新增子節點','addSibling':_0xbfe46d(0x176),'copy':'複製','delete':'刪除','fill':'填滿','fontColor':'字型顏色','layout':_0xbfe46d(0x183),'paste':'貼上','stroke':'外框'}}}};export{e as default};
|
|
@@ -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[];
|