@riil-frontend/component-topology 11.0.8 → 11.0.9

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.
@@ -40,6 +40,8 @@ var _htElementUtils = require("./htElementUtils");
40
40
 
41
41
  var _v140UpgradeSerializeNodeImageSize = _interopRequireDefault(require("../core/upgrade/v140UpgradeSerializeNodeImageSize"));
42
42
 
43
+ var _nodeNameVisibleUtil = require("../core/models/utils/nodeNameVisibleUtil");
44
+
43
45
  var _excluded = ["extraConfig"];
44
46
 
45
47
  /**
@@ -101,13 +103,20 @@ var tfNode = function tfNode(topoEngine, node) {
101
103
  */
102
104
 
103
105
 
104
- function updateNodeInfo(topoEngine, topoData) {
106
+ function updateNodeInfo(topo, topoData) {
107
+ var _topo$store$getModelS = topo.store.getModelState('displayConfig'),
108
+ nodeTag = _topo$store$getModelS.nodeTag;
109
+
105
110
  return (0, _extends2["default"])({}, topoData, {
106
111
  nodes: topoData.nodes.map(function (node) {
107
112
  var attributes = node.attributes;
108
113
  return (0, _extends2["default"])({}, node, {
109
114
  ipAddress: node.ipAddress || (attributes === null || attributes === void 0 ? void 0 : attributes.ipv4_address) || null,
110
- isShowName: topoEngine.attributeMetricDisplay.getNodeNameVisible(node)
115
+ isShowName: (0, _nodeNameVisibleUtil.getNodeNameVisible)({
116
+ node: node,
117
+ topo: topo,
118
+ nodeTag: nodeTag
119
+ })
111
120
  });
112
121
  })
113
122
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riil-frontend/component-topology",
3
- "version": "11.0.8",
3
+ "version": "11.0.9",
4
4
  "description": "拓扑",
5
5
  "scripts": {
6
6
  "start": "build-scripts start",
@@ -118,6 +118,6 @@
118
118
  "access": "public"
119
119
  },
120
120
  "license": "MIT",
121
- "homepage": "https://unpkg.com/@riil-frontend/component-topology@11.0.8/build/index.html",
121
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@11.0.9/build/index.html",
122
122
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
123
123
  }