Skip to content
Permalink
Browse files

Linting

  • Loading branch information...
trvrb committed May 16, 2019
1 parent 932c20d commit 62b63cd05fe7b6d9ac597169da31ef7ca72c04fa
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/components/tree/phyloTree/grid.js
@@ -78,11 +78,10 @@ export const addGrid = function addGrid() {
majorGridPoints.push([pos, ((pos<minVis)||(pos>maxVis))?"hidden":"visible", "x"]);
}
let numMinorTicks = this.distanceMeasure === "num_date" ? this.params.minorTicksTimeTree : this.params.minorTicks;
if (step===5 || step===10){
numMinorTicks=5;
if (step===5 || step===10) {
numMinorTicks = 5;
}
const minorStep = step / numMinorTicks;
console.log(step, numMinorTicks, minorStep);
for (let ii = 0; ii <= (xmax - gridMin)/minorStep+30; ii++) {
const pos = gridMin + minorStep*ii;
minorGridPoints.push([pos, ((pos<minVis)||(pos>maxVis+minorStep))?"hidden":"visible", "x"]);

0 comments on commit 62b63cd

Please sign in to comment.
You can’t perform that action at this time.