flow icon indicating copy to clipboard operation
flow copied to clipboard

svg

Open moodymudskipper opened this issue 1 year ago • 3 comments

Maybe we can make another pass on this, there "should" be a way to extract a proper svg file from an html. I would also like the pdfs to be svg when the "flow.svg" option is TRUE, not the case now as we use webshot.

This should also be better documented.

I've placed a 200 bounty on:

https://stackoverflow.com/questions/72685557/export-manually-edited-htmlwidget-to-svg-or-similar

See also:

https://stackoverflow.com/questions/57749337/exporting-networkd3-graphs-as-vector-graphics

moodymudskipper avatar Jun 22 '23 12:06 moodymudskipper

FYI: Both links point to the same question and there doesn't seem to be a bounty on it. Also note that webshot will not have further improvements as development is now on webshot2. HTH

llrs avatar Jun 23 '23 08:06 llrs

Thanks, I've updated the link.

I'll give a shot at webshot2 again (in #154 ) but IIRC I had tried to switch and something didn't workout properly

moodymudskipper avatar Jun 23 '23 13:06 moodymudskipper

Bounty was answered, offers no solution to have svg in pdf but that's probably not the most popular output format.
We need chromote and chrome (and chrome) though, so we need to do the Suggests / if(requireNamespace(...) dance. and we can use chromote::find_chrome() to make sure that chrome is installed. An issue is that browseURL() when called on a svg file opens a useless utility on MacOS so I'm not sure what the default behavior for out = "svg" should be.

moodymudskipper avatar Jun 28 '23 14:06 moodymudskipper