waltz
waltz copied to clipboard
Flow Diagram: thumbnail support (UI)
Related to #3923
Have attempted this using https://github.com/exupero/saveSvgAsPng
line and annotations don't appear to render correctly, see below:
Needs further investigation
Similar results with the code snippet from here: http://bl.ocks.org/biovisualize/8187844
Could you make a draft PR with the progress so far ?
It's probably external styles. I think if we move to a <style>
section within the svg or inline all the styles it may work....
Hi Kam,
Added some code (see patch at bottom) to clone the svg first and inline styles to the copy.
Gives a better result as shown below (top: orig, bottom: clone). Can't get the font-awesome
stuff to work. However we may be able to simply remove anything with a class of fa
as this is
only for thumbnails and so the icons won't matter too much.
Thanks Dave, agreed re: icons, the thumbnails will be so small it won't matter.