We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there a way to add a vertical bar across all tracks?
The text was updated successfully, but these errors were encountered:
a vertical bar? Can you give me a quick sketch to give me an idea what you are looking for?
Sorry, something went wrong.
I wrote a simple implementation here (having never used Canvas, and which is not integrated into the library...):
// Get canvas object. Provide a start (first vertical line) and an end (second vertical line) var boundary = document.getElementById("gene_glyph").getContext("2d"); // Start boundary.beginPath(); boundary.moveTo(glyph.pixelsToNts(start) + glyph.offset - glyph.pixelsToNts(glyph.scale.min), 15); boundary.lineTo(glyph.pixelsToNts(start) + glyph.offset - glyph.pixelsToNts(glyph.scale.min), 1000); boundary.strokeStyle = "Blue"; boundary.stroke(); // End boundary.beginPath(); boundary.moveTo(glyph.pixelsToNts(end) + glyph.offset - glyph.pixelsToNts(glyph.scale.min), 15); boundary.lineTo(glyph.pixelsToNts(end) + glyph.offset - glyph.pixelsToNts(glyph.scale.min), 1000); boundary.strokeStyle = "Blue"; boundary.stroke();
I'm sure there is a cleaner way. I think an ideal method would be invoked like this:
// Canvas is a scribl object canvas.vertical(nt_pos, stroke, color, etc.)
I essentially want to use this for marking, for example, the start and end of an interval that a user inputs to search on.
By the way, this is a great library!
No branches or pull requests
Is there a way to add a vertical bar across all tracks?
The text was updated successfully, but these errors were encountered: