Open invaders-xx opened 4 years ago
same problem
I'm imagining that this problem is hard to solve, since going from Canvas to PNG is not the same as going from HTML to PNG.
But i'm in the same boat, would absolutely love that feature.
I tried html-to-dom to export html nodes to imageA (with transparent background), and trim the image as cy trims it's export imageB too. Then merge imageA to imageB using canvas. Finally export image from canvas. It works pretty great.
I've been using html2canvas, which is really straight forward. Just give it the canvas container and it includes both canvas and any html contained in/above it, like the node labels.
Thanks, I just try it, really really simple. . Although there are some problems to resolve. Like non display area export, if zoom in is not allowed and the chart is very big. Will keep researching it.
When I export my graph which is using this plugin to display information inside the node, I loose all those information when exporting the graph to png.
Is there any option to get those information ?
Many thanks in advance.
David