Molbap HF Staff commited on
Commit
27e28ca
·
verified ·
1 Parent(s): c473351

Update modular_graph_and_candidates.py

Browse files
Files changed (1) hide show
  1. modular_graph_and_candidates.py +3 -3
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
- g.selectAll(".node-label")
1071
- .style("opacity", o => isConnected(d, o) ? 1 : 0.1);
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');