Fix source of the links drawn in the image changes tree view
This commit is contained in:
parent
dac913dca2
commit
000e5ceaa4
1 changed files with 5 additions and 1 deletions
|
@ -1030,7 +1030,11 @@ ImageFileChangeTree.prototype.update_ = function(source) {
|
||||||
// Transition links to their new position.
|
// Transition links to their new position.
|
||||||
link.transition()
|
link.transition()
|
||||||
.duration(duration)
|
.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.
|
// Transition exiting nodes to the parent's new position.
|
||||||
link.exit().transition()
|
link.exit().transition()
|
||||||
|
|
Reference in a new issue