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

SVG export #4

Open
jrobinso opened this issue Dec 30, 2021 · 1 comment
Open

SVG export #4

jrobinso opened this issue Dec 30, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@jrobinso
Copy link
Contributor

Add a button to export the SVG to a file, as we do in igv.js. I've requested an API to get the SVG from the circ view component here: GMOD/jbrowse-components#2610. However, in the absence of an API we should be able to easily get the SVG with a DOM query, there's only 1 SVG element in the circ view. Once we have that I assume we can export it.

DOM looks like this:
Screen Shot 2021-12-30 at 9 27 47 AM

@jrobinso jrobinso added the enhancement New feature or request label Dec 30, 2021
@turner
Copy link
Contributor

turner commented Jan 4, 2022

I've been looking at this. It would be relatively straightforward except the svg element is parented by a div has transforms applied to it - a 90 deg. rotate around a translated origin - that will need to be included in the svg export. Not clear what the best way to do that is. Ideally all transforms should be only in the svg.

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