@riil-frontend/component-topology 2.15.32 → 2.15.33
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/build/1.js +2 -2
- package/build/2.js +1 -1
- package/build/index.js +25 -25
- package/es/core/models/AttributeMetricDisplay.js +11 -7
- package/es/core/models/TopoApp.js +1 -1
- package/es/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/AddLinkDrawer.js +1 -1
- package/lib/core/models/AttributeMetricDisplay.js +11 -7
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/AddLinkDrawer.js +3 -1
- package/package.json +3 -4
|
@@ -711,28 +711,32 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
|
711
711
|
});
|
|
712
712
|
var groupMap = groupBy(noParentLinks, 'linkUId'); // 参与计算的链路指标
|
|
713
713
|
|
|
714
|
-
var metrics = [
|
|
714
|
+
var metrics = [// 总流速
|
|
715
|
+
{
|
|
715
716
|
code: 'total_flow_rate',
|
|
716
717
|
calcType: 'sum'
|
|
717
|
-
},
|
|
718
|
+
}, // 带宽利用率
|
|
719
|
+
{
|
|
718
720
|
code: 'bandwidth_utilization',
|
|
719
721
|
calcType: 'avg',
|
|
720
722
|
showWhenSameSource: true
|
|
721
|
-
},
|
|
723
|
+
}, // 发送带宽利用率
|
|
724
|
+
{
|
|
722
725
|
code: 'out_bandwidth_utilization',
|
|
723
726
|
calcType: 'avg',
|
|
724
727
|
showWhenSameSource: true
|
|
725
|
-
},
|
|
728
|
+
}, // 接收带宽利用率
|
|
729
|
+
{
|
|
726
730
|
code: 'in_bandwidth_utilization',
|
|
727
731
|
calcType: 'avg',
|
|
728
732
|
showWhenSameSource: true
|
|
729
733
|
}, {
|
|
730
734
|
code: 'out_rate',
|
|
731
|
-
calcType: '
|
|
735
|
+
calcType: 'sum',
|
|
732
736
|
showWhenSameSource: true
|
|
733
737
|
}, {
|
|
734
738
|
code: 'in_rate',
|
|
735
|
-
calcType: '
|
|
739
|
+
calcType: 'sum',
|
|
736
740
|
showWhenSameSource: true
|
|
737
741
|
}];
|
|
738
742
|
var connectTypePrefixMap = {
|
|
@@ -765,7 +769,7 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
|
765
769
|
if (fieldConfig.showWhenSameSource) {
|
|
766
770
|
var sources = [];
|
|
767
771
|
linkChildren.forEach(function (link) {
|
|
768
|
-
if (sources.indexOf(link.source)
|
|
772
|
+
if (sources.indexOf(link.source) === -1) {
|
|
769
773
|
sources.push(link.source);
|
|
770
774
|
}
|
|
771
775
|
});
|
|
@@ -20,7 +20,7 @@ import { updateEdgeExpanded } from "../utils/edgeUtil";
|
|
|
20
20
|
import PluginManager from "./PluginManager";
|
|
21
21
|
import topoFactory from "./topoFactory"; // eslint-disable-next-line no-undef
|
|
22
22
|
|
|
23
|
-
var version = typeof "2.15.
|
|
23
|
+
var version = typeof "2.15.33" === 'string' ? "2.15.33" : null;
|
|
24
24
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
25
25
|
/**
|
|
26
26
|
* 拓扑显示和编辑
|
|
@@ -350,7 +350,7 @@ function AddLinkDrawer(props) {
|
|
|
350
350
|
// htTopo.createEdge(source, target, linkData);
|
|
351
351
|
// }
|
|
352
352
|
var edge = htTopo.createEdge(source, target, linkData);
|
|
353
|
-
|
|
353
|
+
rlog.debug("添加链路 绘图", edge); // htTopo.toggleEdgeGroup(source, target, true);
|
|
354
354
|
} // TODO 选中
|
|
355
355
|
|
|
356
356
|
|
|
@@ -730,28 +730,32 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
|
730
730
|
});
|
|
731
731
|
var groupMap = (0, _groupBy["default"])(noParentLinks, 'linkUId'); // 参与计算的链路指标
|
|
732
732
|
|
|
733
|
-
var metrics = [
|
|
733
|
+
var metrics = [// 总流速
|
|
734
|
+
{
|
|
734
735
|
code: 'total_flow_rate',
|
|
735
736
|
calcType: 'sum'
|
|
736
|
-
},
|
|
737
|
+
}, // 带宽利用率
|
|
738
|
+
{
|
|
737
739
|
code: 'bandwidth_utilization',
|
|
738
740
|
calcType: 'avg',
|
|
739
741
|
showWhenSameSource: true
|
|
740
|
-
},
|
|
742
|
+
}, // 发送带宽利用率
|
|
743
|
+
{
|
|
741
744
|
code: 'out_bandwidth_utilization',
|
|
742
745
|
calcType: 'avg',
|
|
743
746
|
showWhenSameSource: true
|
|
744
|
-
},
|
|
747
|
+
}, // 接收带宽利用率
|
|
748
|
+
{
|
|
745
749
|
code: 'in_bandwidth_utilization',
|
|
746
750
|
calcType: 'avg',
|
|
747
751
|
showWhenSameSource: true
|
|
748
752
|
}, {
|
|
749
753
|
code: 'out_rate',
|
|
750
|
-
calcType: '
|
|
754
|
+
calcType: 'sum',
|
|
751
755
|
showWhenSameSource: true
|
|
752
756
|
}, {
|
|
753
757
|
code: 'in_rate',
|
|
754
|
-
calcType: '
|
|
758
|
+
calcType: 'sum',
|
|
755
759
|
showWhenSameSource: true
|
|
756
760
|
}];
|
|
757
761
|
var connectTypePrefixMap = {
|
|
@@ -784,7 +788,7 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
|
784
788
|
if (fieldConfig.showWhenSameSource) {
|
|
785
789
|
var sources = [];
|
|
786
790
|
linkChildren.forEach(function (link) {
|
|
787
|
-
if (sources.indexOf(link.source)
|
|
791
|
+
if (sources.indexOf(link.source) === -1) {
|
|
788
792
|
sources.push(link.source);
|
|
789
793
|
}
|
|
790
794
|
});
|
|
@@ -48,7 +48,7 @@ var _PluginManager = _interopRequireDefault(require("./PluginManager"));
|
|
|
48
48
|
var _topoFactory = _interopRequireDefault(require("./topoFactory"));
|
|
49
49
|
|
|
50
50
|
// eslint-disable-next-line no-undef
|
|
51
|
-
var version = typeof "2.15.
|
|
51
|
+
var version = typeof "2.15.33" === 'string' ? "2.15.33" : null;
|
|
52
52
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
53
53
|
/**
|
|
54
54
|
* 拓扑显示和编辑
|
|
@@ -391,7 +391,9 @@ function AddLinkDrawer(props) {
|
|
|
391
391
|
// htTopo.createEdge(source, target, linkData);
|
|
392
392
|
// }
|
|
393
393
|
var edge = htTopo.createEdge(source, target, linkData);
|
|
394
|
-
|
|
394
|
+
|
|
395
|
+
_rlog["default"].debug("添加链路 绘图", edge); // htTopo.toggleEdgeGroup(source, target, true);
|
|
396
|
+
|
|
395
397
|
} // TODO 选中
|
|
396
398
|
|
|
397
399
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.33",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
"@ice/store": "^1.4.2",
|
|
44
44
|
"@riil-frontend/component-topo-icon-select": "^1.0.10",
|
|
45
45
|
"@riil-frontend/component-topology-utils": "^2.0.20-alpha.0",
|
|
46
|
-
"resize-observer-polyfill": "^1.5.1",
|
|
47
46
|
"classnames": "^2.2.3",
|
|
48
47
|
"prop-types": "^15.5.8",
|
|
49
48
|
"react-color": "^2.19.3",
|
|
@@ -69,7 +68,7 @@
|
|
|
69
68
|
"@riil-frontend/component-table-filter-tags": "latest",
|
|
70
69
|
"@riil-frontend/component-table-layout": "^2.0.2",
|
|
71
70
|
"@riil-frontend/component-topology-common": "^1.0.9",
|
|
72
|
-
"@riil-frontend/component-topology-graph": "^2.5.
|
|
71
|
+
"@riil-frontend/component-topology-graph": "^2.5.7",
|
|
73
72
|
"@riil-frontend/css": "^2.0.2",
|
|
74
73
|
"@riil-frontend/hooks": "latest",
|
|
75
74
|
"@riil-frontend/next-collapse": "^1.0.1-a.0",
|
|
@@ -111,6 +110,6 @@
|
|
|
111
110
|
"access": "public"
|
|
112
111
|
},
|
|
113
112
|
"license": "MIT",
|
|
114
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.15.
|
|
113
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.15.33/build/index.html",
|
|
115
114
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
116
115
|
}
|