Justin Halsall
e4f680e8c9
Remove INode (node.__sn) and use Mirror as source of truth ( #868 )
...
* Move ids to weakmap
* Fix typo
* Move from INode to storing serialized data in mirror
* Update packages/rrweb-snapshot/src/rebuild.ts
Co-authored-by: Yun Feng <yun.feng@anu.edu.au >
* Remove unnessisary `as Node` typecastings
Fixes: https://github.com/rrweb-io/rrweb/pull/868#discussion_r842240758
* Remove unnessisary `as unknown as ...`
* Remove unnessisary `as unknown as ...`
* Reset mirror when recording starts
Solves: https://github.com/rrweb-io/rrweb/pull/868#discussion_r842249599
* API has changed for snapshot, change test to reflect that
* Allow for es5 compatibility
* Remove unnessisary as unknown as ... and change test to reflect the API change
* Refactor mirror to remove `nodeIdMap`
Fixes: https://github.com/rrweb-io/rrweb/pull/868#discussion_r842732696
Co-authored-by: Yun Feng <yun.feng@anu.edu.au >
2022-04-06 23:56:39 +08:00
Cristi Constantin
e104300f25
Decrease embedded img size for inlineImages ( #836 )
...
* Decrease embedded img size for inlineImages
* Fix the test
* Use webp for image snapshots
* Implemented optional param dataURLOptions
2022-02-25 12:45:53 +08:00
Cristi Constantin
69a1b9ffe6
Save images offline, in the snapshot ( #770 )
...
* Implemented image restore from rr_dataURL
* Implement saving images in the snapshot
* Fixed image saving, added a test
* Rename data-src to data-rrweb-src
* Updated the guide
* Rename recordImages to inlineImages and try catch
2022-01-11 23:54:58 +08:00
Mark-fenng
bc319d510c
moved rrweb-snapshot into packages/rrweb-snapshot
2021-07-22 17:54:51 +08:00