@glimt/record 0.0.84 → 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.js CHANGED
@@ -1680,11 +1680,17 @@ function serializeElementNode(n2, options) {
1680
1680
  }
1681
1681
  }
1682
1682
  if (needBlock) {
1683
- const { width, height } = n2.getBoundingClientRect();
1683
+ const { width, height, bottom, left, right, top, x: x2, y } = n2.getBoundingClientRect();
1684
1684
  attributes = {
1685
1685
  class: attributes.class,
1686
1686
  rr_width: `${width}px`,
1687
- rr_height: `${height}px`
1687
+ rr_height: `${height}px`,
1688
+ c_rr_top: `${top}px`,
1689
+ c_rr_left: `${left}px`,
1690
+ c_rr_bottom: `${bottom}px`,
1691
+ c_rr_right: `${right}px`,
1692
+ c_rr_x: `${x2}px`,
1693
+ c_rr_y: `${y}px`
1688
1694
  };
1689
1695
  }
1690
1696
  if (tagName === "iframe" && !keepIframeSrcFn(attributes.src)) {
@@ -10331,7 +10337,7 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
10331
10337
  __publicField(this, "exitMutTracker");
10332
10338
  __publicField(this, "interval", 50);
10333
10339
  __publicField(this, "exitInterval", 100);
10334
- __publicField(this, "mutThreshold", 350);
10340
+ __publicField(this, "mutThreshold", 250);
10335
10341
  __publicField(this, "inGlobalStorm", false);
10336
10342
  __publicField(this, "currentStormStartedAt", -1);
10337
10343
  __publicField(this, "stormTimeLimit", 5e3);
@@ -10628,7 +10634,7 @@ class MutationBuffer {
10628
10634
  __publicField(this, "stormBatches", []);
10629
10635
  __publicField(this, "stormInfo", null);
10630
10636
  __publicField(this, "stormSettings", {
10631
- batchSize: 250,
10637
+ batchSize: 50,
10632
10638
  //was 300
10633
10639
  timeout: 50,
10634
10640
  //was 50