-
Notifications
You must be signed in to change notification settings - Fork 44
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
export node-html to jpeg #13
Comments
I'm running in to this same issue so I started to dig in a bit. |
You can try use html2canvas. |
Would also love this feature, but I doubt that it's possible using the current approach. Using html2canvas seems to be troublesome since the elements are absolutely positioned, which is not supported by html2canvas. |
The only way I have found to get html2canvas working it to use html2canvas on the entire canvas and it does export the HTML node labels, the only thing is it obviously wont allow any native cytoscape.png/jpeg options. |
the only way i could get a usable result is when scaling div artificially cy is cytoscape cy.center(); then something : // Use html2canvas to capture the screenshot
}); |
I am going to export my network to image(jpeg).
How can I export cytoscape-node-html-label by cy.jpeg?
Thanks
The text was updated successfully, but these errors were encountered: