-
Notifications
You must be signed in to change notification settings - Fork 119
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
Output image #24
Comments
Interesting idea. Do you know of any SVG treemap libraries for node?
|
I'm wondering if you could get People seem to be using that approach with d3: https://github.com/gregjopa/d3-server-side-demo |
Yeah, but then you'd have to convert the DOM to SVG as well. I'd be happy to look at a PR that implemented SVG output in some way. |
Ah, |
I'd be open to it. @martine, any thoughts? |
Just as an FYI, the current treemap is interactive. I wouldn't want to lose the interactivity if we moved to D3. |
Yup, understood. I may give it a whirl this weekend. |
Also FWIW, the webtreemap DOM is pretty simple. Converting it to SVG directly using jsdom might be easier. |
Ok, I'll look into that first. |
I wonder if you could use an SVG foreignObject with a canvas to render HTML: On Mon, Nov 16, 2015 at 8:18 AM, Daniel Perez Alvarez <
|
@unindented Is there any outcome of your investigation? |
@cornips I never dedicated the time to get this working... 😢 |
It'd be useful to be able to output an image, preferrably SVG. I could generate it as part of my build, and include the image in my
README
.The text was updated successfully, but these errors were encountered: