getsentry / rrweb

record and replay the web
https://www.rrweb.io/
Other
12 stars 5 forks source link

feat(canvas): Add "maxCanvasSize" option for canvas #174

Closed billyvg closed 5 months ago

billyvg commented 5 months ago

This adds a configuration option to set a max size for canvas snapshots. This will scale down canvas snapshot images if they are larger than the configure size limit. The size configuration is width * height.

github-actions[bot] commented 5 months ago

size-limit report 📦

Path Size
rrweb - record only (gzipped) 16.77 KB (+0.1% 🔺)
rrweb - record & CanvasManager only (gzipped) 19.58 KB (+0.85% 🔺)
rrweb - record only (min) 57.2 KB (+0.11% 🔺)
rrweb - record with treeshaking flags (gzipped) 15.56 KB (+0.12% 🔺)