@riil-frontend/component-topology 4.0.11 → 4.0.14
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/index.js +1 -1
- package/es/core/components/DisplaySettingDrawer/LinkTag.js +1 -1
- package/es/core/components/DisplaySettingDrawer/LinkTip.js +1 -1
- package/es/core/components/TopoView/topoView.js +2 -2
- package/es/core/models/Alarm.js +46 -39
- package/es/core/models/GraphDataModel.js +7 -13
- package/es/core/models/TopoApp.js +1 -1
- package/es/hooks/useTopoEdit.js +2 -2
- package/es/models/topoConfig.js +1 -1
- package/es/topoCenter/components/viewer/displaySetting/LinkTagV2.js +1 -1
- package/es/utils/clusterUtil.js +9 -8
- package/es/utils/htElementUtils.js +28 -6
- package/lib/core/components/DisplaySettingDrawer/LinkTag.js +1 -1
- package/lib/core/components/DisplaySettingDrawer/LinkTip.js +1 -1
- package/lib/core/components/TopoView/topoView.js +2 -2
- package/lib/core/models/Alarm.js +47 -39
- package/lib/core/models/GraphDataModel.js +6 -12
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/hooks/useTopoEdit.js +2 -2
- package/lib/models/topoConfig.js +1 -1
- package/lib/topoCenter/components/viewer/displaySetting/LinkTagV2.js +1 -1
- package/lib/utils/clusterUtil.js +9 -7
- package/lib/utils/htElementUtils.js +28 -6
- package/package.json +2 -2
|
@@ -370,15 +370,13 @@ function setElementRuntimeStyle(element, name, value) {
|
|
|
370
370
|
|
|
371
371
|
|
|
372
372
|
function isExistedElement(htTopo, dataModel, data) {
|
|
373
|
-
|
|
374
|
-
id = data.id;
|
|
375
|
-
|
|
376
|
-
if (dataModel.getDataByTag(id)) {
|
|
373
|
+
if (dataModel.getDataByTag(data.id)) {
|
|
377
374
|
return true;
|
|
378
|
-
}
|
|
375
|
+
} // 识别区域
|
|
376
|
+
|
|
379
377
|
|
|
380
378
|
var element = getElements(dataModel).find(function (item) {
|
|
381
|
-
return item.a('tag') === data.tag;
|
|
379
|
+
return data.tag && item.a('tag') === data.tag;
|
|
382
380
|
});
|
|
383
381
|
|
|
384
382
|
if (element) {
|
|
@@ -386,5 +384,29 @@ function isExistedElement(htTopo, dataModel, data) {
|
|
|
386
384
|
} // 连线/连线组
|
|
387
385
|
|
|
388
386
|
|
|
387
|
+
var edges = getEdges(dataModel);
|
|
388
|
+
|
|
389
|
+
for (var i = 0; i < edges.length; i++) {
|
|
390
|
+
var edge = edges[i]; // 如果连线组折叠,判断子连线
|
|
391
|
+
|
|
392
|
+
var edgeData = htTopo.getEdgeData(edge);
|
|
393
|
+
|
|
394
|
+
if (edgeData) {
|
|
395
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
396
|
+
var id = edgeData._attrObject.id;
|
|
397
|
+
|
|
398
|
+
if (id === data.id) {
|
|
399
|
+
return true;
|
|
400
|
+
}
|
|
401
|
+
} // 如果连线组展开,判断连线组
|
|
402
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
if (edge.__edgeGroup && edge.__edgeGroup._tag === data.id) {
|
|
406
|
+
return true;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
console.error(111, data);
|
|
389
411
|
return false;
|
|
390
412
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.14",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -114,6 +114,6 @@
|
|
|
114
114
|
"access": "public"
|
|
115
115
|
},
|
|
116
116
|
"license": "MIT",
|
|
117
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@4.0.
|
|
117
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@4.0.14/build/index.html",
|
|
118
118
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
119
119
|
}
|