-
Notifications
You must be signed in to change notification settings - Fork 199
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
Arrowheads are outside feature boundaries #41
Comments
Arrowheads are outside feature boundaries Thanks for the bug report. I confess I’ve always thought of arrowheads as being outside of the feature bounds, on the grounds that the arrowhead width is a fixed number of pixels, and when you’re zoomed out, the feature size in pixels may be smaller than the arrowhead size. I talked to Ian about it, and we started a discussion on the gmod-ajax list (where JBrowse is usually discussed) and so far it seems inconclusive: In particular, I looked at GBrowse and it looks like it depends on the glyph: the transcript glyph looks like it draws the arrowheads outside of the features, while the transcript2 glyph draws the arrowhead as part of the feature unless the feature is narrower than the arrowhead, in which case it draws the arrowhead outside the feature. Maybe there’s some way to make new graphics for the transcript class and the arrowhead to visually emphasize that the arrowhead is outside of the feature bounds? When I originally drew those I tried to come up with something and I didn’t, but I’m not super skilled with visual design. by Mitch |
Arrowheads are outside feature boundaries Hi -- Thank you for the quick reply. I actually figured out a fix for this that met my desires: +++ FeatureTrack.js 2010-03-18 14:43:10.927831215 -0500
Regarding the zoomed-out issue; you seem to solve that anyway by flipping the rendering to something different when you zoom out far enough. If the arrowheads were an issue you could drop them when the scale is out far enough (at those scales you can’t see the internal glyph details to really tell the direction anyway. --bob by Robert Olson |
Arrowheads are outside feature boundaries Wow, that got mangled. attaching the patch instead. by Robert Olson |
Also, Gregg Helt reports that the feature layout does not take into account the arrowheads. |
I'll just put the arrowheads inside the feature boundaries. |
When using className: transcript and arrowheadClass: transcript-arrowhead, the arrowheads are drawn as being outside the bounds of the feature. This leads to incorrect rendering of features - the attached image shows two features that have identical coordinates on opposite strands, but the position of the arrowheads makes that look like that is not the case.
If there’s a different way to render these please let me know; I didn’t see one in my first readthrough of the available facilities.
Thank you,
--bob
original LH ticket
This ticket has 3 attachment(s).
The text was updated successfully, but these errors were encountered: