-
Notifications
You must be signed in to change notification settings - Fork 357
Styles do not show up #182
Comments
Using this library, exporting a PNG with styles should be as simple as saveSvgAsPng(document.querySelector('svg')[0], 'tree_diagram.png'); If you're basing your code off my 2014 blog post, know that the proof-of-concept outlined in that post has grown somewhat since then, especially with regard to including CSS styles. This library will work much better, with a lot less manual effort. |
Thank you, I switched to the library and it worked.
…On Mon, Jul 23, 2018 at 7:12 PM Eric Shull ***@***.***> wrote:
Using this library, exporting a PNG with styles should be as simple as
saveSvgAsPng(document.querySelector('svg')[0], 'tree_diagram.png');
If you're basing your code off my 2014 blog post
<https://spin.atomicobject.com/2014/01/21/convert-svg-to-png/>, know that
the proof-of-concept outlined in that post has grown somewhat since then,
especially with regard to including CSS styles. This library will work much
better, with a lot less manual effort.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#182 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AnoL5YfZxLEB0ZFJs0EpNPKwsRPR2M6Aks5uJlhCgaJpZM4VaJxn>
.
|
Hi @exupero , Thanks, |
Hi @gs-asachdeva. This sounds like a separate issue than the one above. Would you make a new issue where we can discuss the error you're getting? |
@gs-asachdeva I had a similar error using this library and another. |
Hi Eric, I followed your guidelines trying to export a D3-generated tree into an image. It works, except the styles do not show up in the image.
Thoughts?
The text was updated successfully, but these errors were encountered: