Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankbrgowda committed Nov 24, 2023
1 parent d38e122 commit 5a39285
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,17 @@ export function renderingModelFactory(
if (!ctx) {
return
}
console.log('length 1 = ' + self.lgv.dynamicBlocks.totalWidthPx)

Check warning on line 153 in packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/stateModel/rendering.ts

View workflow job for this annotation

GitHub Actions / Lint and build

Unexpected console statement

Check warning on line 153 in packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/stateModel/rendering.ts

View workflow job for this annotation

GitHub Actions / Lint and build

Unexpected string concatenation
console.log('length 2 = ' + (self.lgv.dynamicBlocks.length))

Check warning on line 154 in packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/stateModel/rendering.ts

View workflow job for this annotation

GitHub Actions / Lint and build

Unexpected console statement

Check warning on line 154 in packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/stateModel/rendering.ts

View workflow job for this annotation

GitHub Actions / Lint and build

Unexpected string concatenation

Check warning on line 154 in packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/stateModel/rendering.ts

View workflow job for this annotation

GitHub Actions / Lint and build

Replace `(self.lgv.dynamicBlocks.length)` with `self.lgv.dynamicBlocks.length`
if (self.lgv.bpPerPx <= 1) {
ctx.beginPath()
ctx.strokeStyle = self.lgv.bpPerPx <= 0.1 ? 'blue' : 'red'
ctx.rect(0, 0, length / self.lgv.bpPerPx, self.apolloRowHeight)
ctx.stroke()
}
ctx.clearRect(
0,
0,
0 + self.apolloRowHeight,
self.lgv.dynamicBlocks.totalWidthPx,
self.featuresHeight,
)
Expand All @@ -179,12 +187,14 @@ export function renderingModelFactory(
coord: feature.min,
regionNumber: idx,
})?.offsetPx ?? 0) - self.lgv.offsetPx
console.log('bpperpx ==== ' + self.lgv.bpPerPx)

Check warning on line 190 in packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/stateModel/rendering.ts

View workflow job for this annotation

GitHub Actions / Lint and build

Unexpected console statement

Check warning on line 190 in packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/stateModel/rendering.ts

View workflow job for this annotation

GitHub Actions / Lint and build

Unexpected string concatenation
const r = self.lgv.bpPerPx <= 1 ? row + 1 : row
getGlyph(feature, self.lgv.bpPerPx).draw(
self,
ctx,
feature,
x,
row,
r,
displayedRegion.reversed,
)
}
Expand Down

0 comments on commit 5a39285

Please sign in to comment.