Skip to content
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

Option to add borders around figure shapes #2449

Closed
benwbooth opened this issue Oct 25, 2021 · 4 comments
Closed

Option to add borders around figure shapes #2449

benwbooth opened this issue Oct 25, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@benwbooth
Copy link

I have a custom JBrowse 2 instance with some tracks. The features have auto-generated colors. Some of the colors end up being hard to see over the white background because they are too light. Please see the attached image file.

It would be great if there was a "color4" option that could be used to select a border around the box and chevron shapes. For example, setting color4 to black would add a black border. This would make lighter colors easier to view over the white background. By default it could be set to be the same as color1 which would make the border invisible.

Thanks!

@benwbooth benwbooth added the enhancement New feature or request label Oct 25, 2021
@benwbooth
Copy link
Author

jbrowse screenshot.pdf

@cmdcolin
Copy link
Collaborator

great idea. this should be as easy as adding a 'stroke' but will need a little extra work because of how our polygons are drawn currently...

the triangle on the features is actually a separate shape from the rectangle next to it so adding a stroke would end up weird. (reason they are separate shapes because long svg elements that extended offscreen would end up rendering broken in chrome....)

@cmdcolin
Copy link
Collaborator

There is now a configuration variable called "outline" on the svg feature renderer that may help with this, as of 1.6.8

@cmdcolin
Copy link
Collaborator

might be able to close for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants