-
Notifications
You must be signed in to change notification settings - Fork 177
Allow to render to SVG/image #287
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
Comments
I had hoped we could just use DOM-level rendering for this. I did a test with dom-to-image, which was not successful: fails with some unspecified image error event when used on Still to be tested are some of the SVG-aware DOM node rendering methods. |
To start, do we want to viz JSON or FBP diffs? Both? If FBP I guess we need the autolayout step. Have you tried to mount the-graph in Phantom to get a PNG? Github doesn't support SVG upload, so even if we can output the SVG string diffbot will need to convert it. |
Both ideally. We should probably run autolayout if explicit position information on nodes (x,y) is missing. |
Not merged yet |
For getting a snapshot of a graph, and maybe sharing it outside the app that uses the-graph.
Could be used as basis for simple visual diffing tools for FBP graphs.
The text was updated successfully, but these errors were encountered: