Skip to content
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

Option to export the waterfall as a SVG/PNG/.... #56

Open
johndharrison opened this issue Nov 1, 2016 · 2 comments
Open

Option to export the waterfall as a SVG/PNG/.... #56

johndharrison opened this issue Nov 1, 2016 · 2 comments

Comments

@johndharrison
Copy link

johndharrison commented Nov 1, 2016

Thanks for the great library makes implementing a HAR viewer very easy. It would be great to have the
option to export the waterfall as a SVG/PNG or other suitable object. Perhaps as an optional widget on the waterfall chart?

@johndharrison johndharrison changed the title Option to export the waterfall as a PNG/.... Option to export the waterfall as a SVG/PNG/.... Nov 1, 2016
@micmro
Copy link
Owner

micmro commented Nov 6, 2016

Good idea, I'm not sure if it'll work well, but perhaps via canvas.

Will give it a try.

@micmro
Copy link
Owner

micmro commented Nov 27, 2016

I tested using dom-to-image but it's a bit messy, since PerfCascade's svg is nested and contains embedded HTML that would need to be cloned separately, and dom-to-image requires all css to be copied as well, since it rebuilds the DOM in canvas.

I have a feeling this might end up being a bit brittle, since it depends on the pages styles.

@johndharrison do you have any better/cleaner suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants