Update modular_graph_and_candidates.py
Browse files
modular_graph_and_candidates.py
CHANGED
@@ -1065,10 +1065,6 @@ const node = g.selectAll('g.node')
|
|
1065 |
.attr('class', d => `node ${d.cls}`)
|
1066 |
.call(d3.drag().on('start', dragStart).on('drag', dragged).on('end', dragEnd));
|
1067 |
|
1068 |
-
node.on("click", function(event, d) {
|
1069 |
-
// Stop click from bubbling up to svg
|
1070 |
-
event.stopPropagation();
|
1071 |
-
|
1072 |
node.on("click", function(event, d) {
|
1073 |
event.stopPropagation();
|
1074 |
node.select("circle").style("opacity", o => isConnected(d, o) ? 1 : 0.1);
|
@@ -1076,6 +1072,7 @@ node.on("click", function(event, d) {
|
|
1076 |
link.style("opacity", o => (o.source.id === d.id || o.target.id === d.id) ? 1 : 0.1);
|
1077 |
});
|
1078 |
|
|
|
1079 |
const baseSel = node.filter(d => d.cls === 'base');
|
1080 |
baseSel.append('circle').attr('r', 20).attr('fill', '#ffbe0b');
|
1081 |
node.filter(d => d.cls !== 'base').append('circle').attr('r', 18);
|
|
|
1065 |
.attr('class', d => `node ${d.cls}`)
|
1066 |
.call(d3.drag().on('start', dragStart).on('drag', dragged).on('end', dragEnd));
|
1067 |
|
|
|
|
|
|
|
|
|
1068 |
node.on("click", function(event, d) {
|
1069 |
event.stopPropagation();
|
1070 |
node.select("circle").style("opacity", o => isConnected(d, o) ? 1 : 0.1);
|
|
|
1072 |
link.style("opacity", o => (o.source.id === d.id || o.target.id === d.id) ? 1 : 0.1);
|
1073 |
});
|
1074 |
|
1075 |
+
|
1076 |
const baseSel = node.filter(d => d.cls === 'base');
|
1077 |
baseSel.append('circle').attr('r', 20).attr('fill', '#ffbe0b');
|
1078 |
node.filter(d => d.cls !== 'base').append('circle').attr('r', 18);
|