mol_plot_all 1.2.247 → 1.2.250

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/node.test.js CHANGED
@@ -1579,6 +1579,8 @@ var $;
1579
1579
  return Object.is(left.valueOf(), right['valueOf']());
1580
1580
  if (left instanceof RegExp)
1581
1581
  return left.source === right['source'] && left.flags === right['flags'];
1582
+ if (left instanceof Error)
1583
+ return left.stack === right['stack'];
1582
1584
  let left_cache = $.$mol_compare_deep_cache.get(left);
1583
1585
  if (left_cache) {
1584
1586
  const right_cache = left_cache.get(right);
@@ -1599,8 +1601,6 @@ var $;
1599
1601
  result = compare_set(left, right);
1600
1602
  else if (left instanceof Map)
1601
1603
  result = compare_map(left, right);
1602
- else if (left instanceof Error)
1603
- result = left.stack === right.stack;
1604
1604
  else if (ArrayBuffer.isView(left))
1605
1605
  result = compare_buffer(left, right);
1606
1606
  else if (Symbol.toPrimitive in left)
@@ -1697,8 +1697,7 @@ var $;
1697
1697
  };
1698
1698
  }
1699
1699
  complete() {
1700
- if (this.sub_empty)
1701
- this.destructor();
1700
+ this.destructor();
1702
1701
  }
1703
1702
  put(next) {
1704
1703
  const prev = this.cache;
@@ -2043,6 +2042,23 @@ var $;
2043
2042
  ;
2044
2043
  "use strict";
2045
2044
  var $;
2045
+ (function ($) {
2046
+ function $mol_wire_probe(task, next) {
2047
+ const warm = $mol_wire_fiber.warm;
2048
+ try {
2049
+ $mol_wire_fiber.warm = false;
2050
+ return task();
2051
+ }
2052
+ finally {
2053
+ $mol_wire_fiber.warm = warm;
2054
+ }
2055
+ }
2056
+ $.$mol_wire_probe = $mol_wire_probe;
2057
+ })($ || ($ = {}));
2058
+ //mol/wire/probe/probe.ts
2059
+ ;
2060
+ "use strict";
2061
+ var $;
2046
2062
  (function ($) {
2047
2063
  function $mol_wire_watch() {
2048
2064
  const atom = $mol_wire_auto();
@@ -2353,9 +2369,14 @@ var $;
2353
2369
  }
2354
2370
  static watchers = new Set();
2355
2371
  view_rect() {
2356
- $mol_wire_watch();
2357
- const { width, height, left, right, top, bottom } = this.dom_node().getBoundingClientRect();
2358
- return { width, height, left, right, top, bottom };
2372
+ if ($mol_wire_probe(() => this.view_rect()) === undefined) {
2373
+ $mol_wire_watch();
2374
+ return null;
2375
+ }
2376
+ else {
2377
+ const { width, height, left, right, top, bottom } = this.dom_node().getBoundingClientRect();
2378
+ return { width, height, left, right, top, bottom };
2379
+ }
2359
2380
  }
2360
2381
  dom_id() {
2361
2382
  return this.toString();
@@ -4009,23 +4030,6 @@ var $;
4009
4030
  ;
4010
4031
  "use strict";
4011
4032
  var $;
4012
- (function ($) {
4013
- function $mol_wire_probe(task, next) {
4014
- const warm = $mol_wire_fiber.warm;
4015
- try {
4016
- $mol_wire_fiber.warm = false;
4017
- return task();
4018
- }
4019
- finally {
4020
- $mol_wire_fiber.warm = warm;
4021
- }
4022
- }
4023
- $.$mol_wire_probe = $mol_wire_probe;
4024
- })($ || ($ = {}));
4025
- //mol/wire/probe/probe.ts
4026
- ;
4027
- "use strict";
4028
- var $;
4029
4033
  (function ($) {
4030
4034
  $.$mol_mem_cached = $mol_wire_probe;
4031
4035
  })($ || ($ = {}));