mol_plot_all 1.2.248 → 1.2.249

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/web.esm.js CHANGED
@@ -1063,6 +1063,8 @@ var $;
1063
1063
  return Object.is(left.valueOf(), right['valueOf']());
1064
1064
  if (left instanceof RegExp)
1065
1065
  return left.source === right['source'] && left.flags === right['flags'];
1066
+ if (left instanceof Error)
1067
+ return left.stack === right['stack'];
1066
1068
  let left_cache = $.$mol_compare_deep_cache.get(left);
1067
1069
  if (left_cache) {
1068
1070
  const right_cache = left_cache.get(right);
@@ -1083,8 +1085,6 @@ var $;
1083
1085
  result = compare_set(left, right);
1084
1086
  else if (left instanceof Map)
1085
1087
  result = compare_map(left, right);
1086
- else if (left instanceof Error)
1087
- result = left.stack === right.stack;
1088
1088
  else if (ArrayBuffer.isView(left))
1089
1089
  result = compare_buffer(left, right);
1090
1090
  else if (Symbol.toPrimitive in left)
@@ -1181,8 +1181,7 @@ var $;
1181
1181
  };
1182
1182
  }
1183
1183
  complete() {
1184
- if (this.sub_empty)
1185
- this.destructor();
1184
+ this.destructor();
1186
1185
  }
1187
1186
  put(next) {
1188
1187
  const prev = this.cache;
@@ -1572,6 +1571,23 @@ var $;
1572
1571
  ;
1573
1572
  "use strict";
1574
1573
  var $;
1574
+ (function ($) {
1575
+ function $mol_wire_probe(task, next) {
1576
+ const warm = $mol_wire_fiber.warm;
1577
+ try {
1578
+ $mol_wire_fiber.warm = false;
1579
+ return task();
1580
+ }
1581
+ finally {
1582
+ $mol_wire_fiber.warm = warm;
1583
+ }
1584
+ }
1585
+ $.$mol_wire_probe = $mol_wire_probe;
1586
+ })($ || ($ = {}));
1587
+ //mol/wire/probe/probe.ts
1588
+ ;
1589
+ "use strict";
1590
+ var $;
1575
1591
  (function ($) {
1576
1592
  function $mol_wire_watch() {
1577
1593
  const atom = $mol_wire_auto();
@@ -1875,9 +1891,14 @@ var $;
1875
1891
  }
1876
1892
  static watchers = new Set();
1877
1893
  view_rect() {
1878
- $mol_wire_watch();
1879
- const { width, height, left, right, top, bottom } = this.dom_node().getBoundingClientRect();
1880
- return { width, height, left, right, top, bottom };
1894
+ if ($mol_wire_probe(() => this.view_rect()) === undefined) {
1895
+ $mol_wire_watch();
1896
+ return null;
1897
+ }
1898
+ else {
1899
+ const { width, height, left, right, top, bottom } = this.dom_node().getBoundingClientRect();
1900
+ return { width, height, left, right, top, bottom };
1901
+ }
1881
1902
  }
1882
1903
  dom_id() {
1883
1904
  return this.toString();
@@ -3568,23 +3589,6 @@ var $;
3568
3589
  ;
3569
3590
  "use strict";
3570
3591
  var $;
3571
- (function ($) {
3572
- function $mol_wire_probe(task, next) {
3573
- const warm = $mol_wire_fiber.warm;
3574
- try {
3575
- $mol_wire_fiber.warm = false;
3576
- return task();
3577
- }
3578
- finally {
3579
- $mol_wire_fiber.warm = warm;
3580
- }
3581
- }
3582
- $.$mol_wire_probe = $mol_wire_probe;
3583
- })($ || ($ = {}));
3584
- //mol/wire/probe/probe.ts
3585
- ;
3586
- "use strict";
3587
- var $;
3588
3592
  (function ($) {
3589
3593
  $.$mol_mem_cached = $mol_wire_probe;
3590
3594
  })($ || ($ = {}));