PerfCascade
PerfCascade copied to clipboard
Option to export the waterfall as a SVG/PNG/....
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?
Good idea, I'm not sure if it'll work well, but perhaps via canvas.
Will give it a try.
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?