Re: [elm-discuss] Html/Svg -> String for data:-URI download?

2016-10-12 Thread Peter Damoc
What you want is the rendered version of the Svg. I don't think that's available in Elm yet. however, can get the rendered version my doing a round trip through JS *after* you have rendered the svg. here is a quick demo on how to do this: https://github.com/pdamoc/elm-assistance/tree/master/svgr

[elm-discuss] Html/Svg -> String for data:-URI download?

2016-10-12 Thread Alexander Klink
Hi, in elm-lsystems (see http://0x90.eu/ls/ and https://git.alech.de/alech/elm-lsystems/), I render an inline SVG. I would like the user to be able to download this SVG, for example by providing a link to a data:-URI of the content. For this, I would need a function that converts the given Svg