Export image #21
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I could just take a screenshot, but is there a way to export the graph as a png? And perhaps change the background, text, and node colors?
Really cool work by the way. Thanks for sharing!
I'd been thinking about this. Strangely, there doesn't seem to be a standard API for this, even though there's a full screen grab API (for video conferencing).
I think the best strategy is probably to generate an SVG using a combination of SVG sprites and the browser's grid positioning. Lines and arrows are already SVG sprites, but I'll have to sort out node borders, text sizing, etc.
I'm changing the title of this to reflect just the export image goal. If you had other concerns around theming or saving, please open other issues.