Commit 09f7cb72 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team
Browse files

js/axis.js: reverse for Nlength and SequenceLength

The X axis is now more natural (left to right).
The Y axis could stay in the other direction.
parent b2b22602
......@@ -161,13 +161,13 @@ Axis.prototype = {
//clone position
this.pos = function(cloneID) {
return 1 - self.sizeScale(self.m.clone(cloneID).getSequenceLength())
return self.sizeScale(self.m.clone(cloneID).getSequenceLength())
}
//labels
var h = Math.ceil(n_max/5)
for (var i = 0; i < 5; i++) {
var pos = 1-this.sizeScale(h*i);
var pos = this.sizeScale(h*i);
var text = h*i
this.labels.push(this.label("line", pos, text));
}
......@@ -193,13 +193,13 @@ Axis.prototype = {
//clone position
this.pos = function(cloneID) {
return 1 - self.sizeScale(self.m.clone(cloneID).getNlength())
return self.sizeScale(self.m.clone(cloneID).getNlength())
}
//labels
var h = Math.ceil(n_max/5)
for (var i = 0; i < 5; i++) {
var pos = 1-this.sizeScale(h*i);
var pos = this.sizeScale(h*i);
var text = h*i
this.labels.push(this.label("line", pos, text));
}
......
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