@riil-frontend/component-topology 2.4.8 → 2.5.0
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.
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 布局
|
|
3
|
+
order: 5
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
```text
|
|
7
|
+
//layoutName:
|
|
8
|
+
//星型布局:'circular',均衡布局:'hierarchical',
|
|
9
|
+
//树型布局:纵向:’towardsouth‘,横向’towardeast‘
|
|
10
|
+
|
|
11
|
+
let layout = new ht.layout.AutoLayout(graphView);
|
|
12
|
+
layout.layout(layoutName, function(){
|
|
13
|
+
//此处可以添加一些布局后的操作,如不需要,请忽略
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
```
|
|
@@ -423,6 +423,10 @@ var TopoApp = /*#__PURE__*/function () {
|
|
|
423
423
|
return refresh;
|
|
424
424
|
}();
|
|
425
425
|
|
|
426
|
+
_proto.getGraphView = function getGraphView() {
|
|
427
|
+
return this.view.topoClient.getGraphView();
|
|
428
|
+
};
|
|
429
|
+
|
|
426
430
|
_proto.getDataModel = function getDataModel() {
|
|
427
431
|
return this.view.topoClient.getDataModel();
|
|
428
432
|
};
|
|
@@ -449,6 +449,10 @@ var TopoApp = /*#__PURE__*/function () {
|
|
|
449
449
|
return refresh;
|
|
450
450
|
}();
|
|
451
451
|
|
|
452
|
+
_proto.getGraphView = function getGraphView() {
|
|
453
|
+
return this.view.topoClient.getGraphView();
|
|
454
|
+
};
|
|
455
|
+
|
|
452
456
|
_proto.getDataModel = function getDataModel() {
|
|
453
457
|
return this.view.topoClient.getDataModel();
|
|
454
458
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -100,6 +100,6 @@
|
|
|
100
100
|
"access": "public"
|
|
101
101
|
},
|
|
102
102
|
"license": "MIT",
|
|
103
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.
|
|
103
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.5.0/build/index.html",
|
|
104
104
|
"gitHead": "8d9f286eb5da11dfadbef62890d74d2c2dd4d3a9"
|
|
105
105
|
}
|