Update modular_graph_and_candidates.py
Browse files
modular_graph_and_candidates.py
CHANGED
|
@@ -1065,10 +1065,10 @@ node.on("click", function(event, d) {
|
|
| 1065 |
// Stop click from bubbling up to svg
|
| 1066 |
event.stopPropagation();
|
| 1067 |
|
| 1068 |
-
node.style("opacity", o => isConnected(d, o) ? 1 : 0.1);
|
| 1069 |
link.style("opacity", o => (o.source.id === d.id || o.target.id === d.id) ? 1 : 0.1);
|
| 1070 |
-
|
| 1071 |
-
|
| 1072 |
});
|
| 1073 |
|
| 1074 |
const baseSel = node.filter(d => d.cls === 'base');
|
|
|
|
| 1065 |
// Stop click from bubbling up to svg
|
| 1066 |
event.stopPropagation();
|
| 1067 |
|
| 1068 |
+
node.select("circle").style("opacity", o => isConnected(d, o) ? 1 : 0.1);
|
| 1069 |
link.style("opacity", o => (o.source.id === d.id || o.target.id === d.id) ? 1 : 0.1);
|
| 1070 |
+
node.select("circle").style("opacity", 1);
|
| 1071 |
+
g.selectAll(".node-label").style("opacity", 1);
|
| 1072 |
});
|
| 1073 |
|
| 1074 |
const baseSel = node.filter(d => d.cls === 'base');
|