Commit 5c8b6302 authored by JC's avatar JC
Browse files

hotfix graphlink

parent 7f0d6c2a
......@@ -139,8 +139,8 @@ metExploreD3.GraphLink = {
var largeurNoeudT = (rTW < rTH) ? rT = rTW : rt = rTH;
}
else {
var rTW = (Math.abs(d) * source.getSvgWidth() / 2) / Math.abs(dX);
var rTH = (Math.abs(d) * source.getSvgHeight() / 2) / Math.abs(dY);
var rTW = (Math.abs(d) * target.getSvgWidth() / 2) / Math.abs(dX);
var rTH = (Math.abs(d) * target.getSvgHeight() / 2) / Math.abs(dY);
var largeurNoeudT = (rTW < rTH) ? rT = rTW : rt = rTH;
}
var heightArrow = 5;
......@@ -183,8 +183,8 @@ metExploreD3.GraphLink = {
var largeurNoeudT = (rTW < rTH) ? rT = rTW : rt = rTH;
}
else {
var rTW = (Math.abs(d) * source.getSvgWidth() / 2) / Math.abs(dX);
var rTH = (Math.abs(d) * source.getSvgHeight() / 2) / Math.abs(dY);
var rTW = (Math.abs(d) * target.getSvgWidth() / 2) / Math.abs(dX);
var rTH = (Math.abs(d) * target.getSvgHeight() / 2) / Math.abs(dY);
var largeurNoeudT = (rTW < rTH) ? rT = rTW : rt = rTH;
}
......@@ -1289,4 +1289,4 @@ metExploreD3.GraphLink = {
removeReactionLinks: function () {
d3.selectAll("path.link.reaction").remove();
}
};
\ No newline at end of file
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment