@riil-frontend/component-topology 7.0.4 → 7.0.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.
@@ -23,7 +23,7 @@ import topoFactory from "./topoFactory";
23
23
  import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
24
24
  import SelectionModel from "./SelectionModel"; // eslint-disable-next-line no-undef
25
25
 
26
- var version = typeof "7.0.4" === 'string' ? "7.0.4" : null;
26
+ var version = typeof "7.0.5" === 'string' ? "7.0.5" : null;
27
27
  console.info("\u62D3\u6251\u7248\u672C: " + version);
28
28
  /**
29
29
  * 拓扑显示和编辑
@@ -81,10 +81,6 @@ var AttributeFormatter = /*#__PURE__*/function () {
81
81
  };
82
82
 
83
83
  _proto.metricTransform = function metricTransform(item, ciData) {
84
- if (ciData.id === '000000000381ef35') {
85
- console.error(111, item, ciData);
86
- }
87
-
88
84
  return this.commonTransform(item, ciData, 'metric');
89
85
  };
90
86
 
@@ -15,7 +15,7 @@ export function getBackgroundImageUrl(data) {
15
15
  var id = data.id,
16
16
  isSystem = data.isSystem,
17
17
  fileCode = data.fileCode;
18
- return isSystem ? "/img/topo/background/" + fileCode + ".jpg" : "/topo/v1/api/background/download/whole/" + id;
18
+ return isSystem ? "/img/topo/background/" + fileCode + ".svg" : "/topo/v1/api/background/download/whole/" + id;
19
19
  }
20
20
  /**
21
21
  * 获得背景图缩略图URL
@@ -54,7 +54,7 @@ var _ElementTagTipConfig = _interopRequireDefault(require("./tagstips/ElementTag
54
54
  var _SelectionModel = _interopRequireDefault(require("./SelectionModel"));
55
55
 
56
56
  // eslint-disable-next-line no-undef
57
- var version = typeof "7.0.4" === 'string' ? "7.0.4" : null;
57
+ var version = typeof "7.0.5" === 'string' ? "7.0.5" : null;
58
58
  console.info("\u62D3\u6251\u7248\u672C: " + version);
59
59
  /**
60
60
  * 拓扑显示和编辑
@@ -93,10 +93,6 @@ var AttributeFormatter = /*#__PURE__*/function () {
93
93
  };
94
94
 
95
95
  _proto.metricTransform = function metricTransform(item, ciData) {
96
- if (ciData.id === '000000000381ef35') {
97
- console.error(111, item, ciData);
98
- }
99
-
100
96
  return this.commonTransform(item, ciData, 'metric');
101
97
  };
102
98
 
@@ -21,7 +21,7 @@ function getBackgroundImageUrl(data) {
21
21
  var id = data.id,
22
22
  isSystem = data.isSystem,
23
23
  fileCode = data.fileCode;
24
- return isSystem ? "/img/topo/background/" + fileCode + ".jpg" : "/topo/v1/api/background/download/whole/" + id;
24
+ return isSystem ? "/img/topo/background/" + fileCode + ".svg" : "/topo/v1/api/background/download/whole/" + id;
25
25
  }
26
26
  /**
27
27
  * 获得背景图缩略图URL
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riil-frontend/component-topology",
3
- "version": "7.0.4",
3
+ "version": "7.0.5",
4
4
  "description": "拓扑",
5
5
  "scripts": {
6
6
  "start": "build-scripts start",
@@ -116,6 +116,6 @@
116
116
  "access": "public"
117
117
  },
118
118
  "license": "MIT",
119
- "homepage": "https://unpkg.com/@riil-frontend/component-topology@7.0.4/build/index.html",
119
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@7.0.5/build/index.html",
120
120
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
121
121
  }