1
0
mirror of https://github.com/gsi-upm/soil synced 2024-11-14 15:32:29 +00:00
This commit is contained in:
Tasio Mendez 2018-02-06 16:22:16 +01:00
parent 3383318fea
commit 3387cf6462

View File

@ -102,6 +102,17 @@
} else {
return color(d[property]);
}
})
.on('dblclick', function(d) {
d3.event.stopPropagation();
if (d === lastFocusNode) {
lastFocusNode = undefined;
node.style('opacity', 1);
link.style('opacity', 1);
} else {
lastFocusNode = d;
_helpers.set_focus(d);
}
});
},
set_link: function(link) {