PerfCascade icon indicating copy to clipboard operation
PerfCascade copied to clipboard

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

Open johndharrison opened this issue 8 years ago • 2 comments

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 avatar Nov 01 '16 14:11 johndharrison

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

Will give it a try.

micmro avatar Nov 06 '16 12:11 micmro

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?

micmro avatar Nov 27 '16 06:11 micmro