ROADM/Fiber should be highlighted while doing editing  as like selection of multiple RoadM/fiber - partial

This commit is contained in:
sakv2e10204
2022-06-09 13:15:39 +05:30
parent ba11e2f891
commit 69f2004122

View File

@@ -1073,7 +1073,7 @@ function draw(isImport) {
id: edgeDetails.id, shadow: shadow, is_highlight: highlight
});
}
}
}
});
@@ -1352,6 +1352,10 @@ function draw(isImport) {
var edgesArray = [];
if (hEdges.length > 0) {
edgesArray = hEdges;
if (!network.body.data.edges.get(edgeData).is_highlight)
edgesArray.push({ id: edgeData });
}
else if (nodeData == "" && edgeData != "") {
edgesArray.push({ id: edgeData });
@@ -1447,6 +1451,16 @@ function draw(isImport) {
}
}
if (nodeDatas != undefined) {
}
if (edgeDatas != undefined) {
network.body.data.edges.update({
id: edgeDatas.id, shadow: singleFiberJSON.options.shadow, is_highlight: true
});
}
//to add only same type of node on multiple select
nodesArray = [];
if (data.nodes.length > 0 && sNodes.length > 0) {