@posthog/rrweb-record 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rrweb-record.cjs +5 -2
- package/dist/rrweb-record.cjs.map +1 -1
- package/dist/rrweb-record.js +5 -2
- package/dist/rrweb-record.js.map +1 -1
- package/dist/rrweb-record.umd.cjs +5 -2
- package/dist/rrweb-record.umd.cjs.map +2 -2
- package/dist/rrweb-record.umd.min.cjs +35 -35
- package/dist/rrweb-record.umd.min.cjs.map +3 -3
- package/package.json +1 -1
package/dist/rrweb-record.cjs
CHANGED
|
@@ -881,6 +881,7 @@ function hrefFrom(n2) {
|
|
|
881
881
|
return n2.href;
|
|
882
882
|
}
|
|
883
883
|
function serializeElementNode(n2, options) {
|
|
884
|
+
var _a2, _b;
|
|
884
885
|
const {
|
|
885
886
|
doc,
|
|
886
887
|
blockClass,
|
|
@@ -1054,11 +1055,13 @@ function serializeElementNode(n2, options) {
|
|
|
1054
1055
|
}
|
|
1055
1056
|
}
|
|
1056
1057
|
if (needBlock) {
|
|
1057
|
-
const { width, height } = n2.getBoundingClientRect();
|
|
1058
|
+
const { width, height, left, top } = n2.getBoundingClientRect();
|
|
1058
1059
|
attributes = {
|
|
1059
1060
|
class: attributes.class,
|
|
1060
1061
|
rr_width: `${width}px`,
|
|
1061
|
-
rr_height: `${height}px
|
|
1062
|
+
rr_height: `${height}px`,
|
|
1063
|
+
rr_left: `${Math.floor(left + (((_a2 = doc.defaultView) == null ? void 0 : _a2.scrollX) || 0))}px`,
|
|
1064
|
+
rr_top: `${Math.floor(top + (((_b = doc.defaultView) == null ? void 0 : _b.scrollY) || 0))}px`
|
|
1062
1065
|
};
|
|
1063
1066
|
}
|
|
1064
1067
|
if (tagName === "iframe" && !keepIframeSrcFn(attributes.src)) {
|