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

Curious about SVG example #1

Closed
bstro opened this issue Nov 20, 2018 · 1 comment
Closed

Curious about SVG example #1

bstro opened this issue Nov 20, 2018 · 1 comment

Comments

@bstro
Copy link

bstro commented Nov 20, 2018

In the docs for elm/file, there is an example usage of saving SVG content as a file. Initially, I understood this to mean that I could generate SVG markup with elm/svg and use elm/file to save it locally, which is my exact use case. However, it doesn’t seem possible to get the SVG nodes to render to a String, which is required by File.download. Am I thinking about the problem incorrectly?

@evancz
Copy link
Member

evancz commented Nov 20, 2018

Ah, I meant generating a String that happens to have SVG content. The elm/svg library does not give that capability at the moment though. Can you document your usage scenario on that repo? It would be helpful to know what you are showing, how it is displayed, why you want to save it, etc.

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

No branches or pull requests

2 participants