- 05 May, 2017 27 commits
-
-
Ryan Herbert authored
-
Ryan Herbert authored
the variable pos was defined twice and raised a JSHint error.
-
Ryan Herbert authored
-
Mikaël Salson authored
-
Mikaël Salson authored
-
Ryan Herbert authored
it would seem the value parameter of addLabel is not, or is no longer used in germline_axis, although it is needed with the new mapping and converter system.
-
Ryan Herbert authored
the changes to the position of the undefined values altered the position of the values and the tests need to be adapted.
-
Ryan Herbert authored
this global variable was converted to a class attribute, and needs to be referenced thusly.
-
Mikaël Salson authored
-
Mikaël Salson authored
-
Mikaël Salson authored
Prevent security issues where an attacker could try to view other files. Fix #2404
-
Ryan Herbert authored
-
Ryan Herbert authored
The numerical axis undefined values were positioned as the lowest value, whereas for other Axis classes the undefined values are placed as the highest. So semantically all axes should behave in the same manner.
-
Ryan Herbert authored
Not only is the code more elegant, but with the changes to the functionning or the GermlineAxis, the allele axes bar charts were no longer functionning. Using the label_mapping keys rather than the label text produces the same result for GenericAxis, but in the GermlineAxis, when using alleles, the label_mapping keys for alleles contains the complete gene name whereas the text only contains the allele reference.
-
Ryan Herbert authored
The GenericAxis constructor changed with the addition of the 'reverse' parameter so we need to add said parameter when calling it.
-
Ryan Herbert authored
Alleles were broken with the previous refactoring of the converter method.
-
Ryan Herbert authored
The posBarLabel was not appropriate for the GermlineAxis class and returned incorrect positions.
-
Ryan Herbert authored
With the changes to addLabel, the converter method can be reduced to function much in the same way the converter for the other Axis classes.
-
Ryan Herbert authored
The method was not in alignment with the GenericAxis.
-
Ryan Herbert authored
-
Ryan Herbert authored
-
Ryan Herbert authored
tab variable no longer exists, this.value_mapping is the correct way to reference the desired variable.
-
Ryan Herbert authored
use index-based value mapping rather than the converted value. The main motivation behind this change is to apply the Liskov principle on posBarLabel.
-
Ryan Herbert authored
use the value mapping as the length reference when computing labels for barchars. See #2375
-
Ryan Herbert authored
posBarLabel is the method used to position the labels for barcharts, so it should also be used for positionning elements for barcharts. See #2375
-
Ryan Herbert authored
See #2375
-
Mikaël Salson authored
-
- 03 May, 2017 13 commits
-
-
Ryan Herbert authored
-
Ryan Herbert authored
-
Ryan Herbert authored
-
Ryan Herbert authored
-
Ryan Herbert authored
JSHint indicates that comparisons to null should be done with '===' and '!==' therefore, using '==' to factor in equality to 'undefined' is considered poor practice. Therefore extending these comparisons to comply with JSHint standards required it was required to include the comparison of the type of the variable to the string 'undefined'
-
Ryan Herbert authored
-
Ryan Herbert authored
the constant variabled used in the axis classes serve just as well as class attributes, and don't raise the question of ES versions.
-
Ryan Herbert authored
JSHint didn't like the expression as a negative of a modulo expression.
-
Ryan Herbert authored
A comma was placed instead of a semicolon.
-
Ryan Herbert authored
All functions defined in loops are now defined outside of loops.
-
Ryan Herbert authored
-
Ryan Herbert authored
-
Ryan Herbert authored
-