@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.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)) {
@@ -10333,7 +10339,7 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
10333
10339
  __publicField(this, "exitMutTracker");
10334
10340
  __publicField(this, "interval", 50);
10335
10341
  __publicField(this, "exitInterval", 100);
10336
- __publicField(this, "mutThreshold", 350);
10342
+ __publicField(this, "mutThreshold", 250);
10337
10343
  __publicField(this, "inGlobalStorm", false);
10338
10344
  __publicField(this, "currentStormStartedAt", -1);
10339
10345
  __publicField(this, "stormTimeLimit", 5e3);
@@ -10630,7 +10636,7 @@ class MutationBuffer {
10630
10636
  __publicField(this, "stormBatches", []);
10631
10637
  __publicField(this, "stormInfo", null);
10632
10638
  __publicField(this, "stormSettings", {
10633
- batchSize: 250,
10639
+ batchSize: 50,
10634
10640
  //was 300
10635
10641
  timeout: 50,
10636
10642
  //was 50