@glimt/record 0.0.83 → 0.0.85

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/record.cjs CHANGED
@@ -1682,11 +1682,17 @@ function serializeElementNode(n2, options) {
1682
1682
  }
1683
1683
  }
1684
1684
  if (needBlock) {
1685
- const { width, height } = n2.getBoundingClientRect();
1685
+ const { width, height, bottom, left, right, top, x: x2, y } = n2.getBoundingClientRect();
1686
1686
  attributes = {
1687
1687
  class: attributes.class,
1688
1688
  rr_width: `${width}px`,
1689
- rr_height: `${height}px`
1689
+ rr_height: `${height}px`,
1690
+ c_rr_top: `${top}px`,
1691
+ c_rr_left: `${left}px`,
1692
+ c_rr_bottom: `${bottom}px`,
1693
+ c_rr_right: `${right}px`,
1694
+ c_rr_x: `${x2}px`,
1695
+ c_rr_y: `${y}px`
1690
1696
  };
1691
1697
  }
1692
1698
  if (tagName === "iframe" && !keepIframeSrcFn(attributes.src)) {