-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make softclip indicator black if no seq available #1574
Conversation
b7a232a
to
7a8cc52
Compare
Codecov Report
@@ Coverage Diff @@
## master #1574 +/- ##
==========================================
- Coverage 59.51% 59.50% -0.02%
==========================================
Files 435 435
Lines 19565 19568 +3
Branches 4568 4569 +1
==========================================
- Hits 11645 11644 -1
- Misses 7626 7630 +4
Partials 294 294
Continue to review full report at Codecov.
|
7a8cc52
to
c462f86
Compare
// Black accounts for IUPAC ambiguity code bases such as N that show in soft clipping | ||
ctx.fillStyle = lighten(colorForBase[base] || '#000000', 0.3) | ||
// Black accounts for IUPAC ambiguity code bases such as N that | ||
// show in soft clipping | ||
const baseColor = colorForBase[base] || '#000000' | ||
ctx.fillStyle = baseColor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the lightening of the color of the softclipped bases was removed. We can use theme.palette.bases.<base>.light
to keep that behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to mention but I propose removing the lightening. We now render the clip indicator in all cases, even when soft clip is showing, so that it is clear when bases are being drawn beyond that)
…de where text palette color might be white
This makes it so that the softclip indicator is colored black if no sequence is available to draw
Also adds a FAQ entry about this
Addresses #1562