Fix source of the links drawn in the image changes tree view

This commit is contained in:
Joseph Schorr 2013-10-19 20:03:22 -04:00
parent dac913dca2
commit 000e5ceaa4

View file

@ -1030,7 +1030,11 @@ ImageFileChangeTree.prototype.update_ = function(source) {
// Transition links to their new position.
link.transition()
.duration(duration)
.attr("d", diagonal);
.attr("d", function(d) {
var s = {x: d.source.x + 14, y: d.source.y + 9};
var t = d.target;
return diagonal({source: s, target: t});
});
// Transition exiting nodes to the parent's new position.
link.exit().transition()