mol_plot_all 1.2.246 → 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/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();
@@ -2527,11 +2548,18 @@ var $;
2527
2548
  *view_find(check, path = []) {
2528
2549
  if (check(this))
2529
2550
  return yield [...path, this];
2530
- for (const item of this.sub()) {
2531
- if (item instanceof $mol_view) {
2532
- yield* item.view_find(check, [...path, this]);
2551
+ try {
2552
+ for (const item of this.sub()) {
2553
+ if (item instanceof $mol_view) {
2554
+ yield* item.view_find(check, [...path, this]);
2555
+ }
2533
2556
  }
2534
2557
  }
2558
+ catch (error) {
2559
+ if (error instanceof Promise)
2560
+ $mol_fail_hidden(error);
2561
+ $mol_fail_log(error);
2562
+ }
2535
2563
  }
2536
2564
  force_render(path) {
2537
2565
  const kids = this.sub();
@@ -3795,7 +3823,7 @@ var $;
3795
3823
  return this.graphs_sorted();
3796
3824
  }
3797
3825
  graphs_colored() {
3798
- return this.graphs_positioned();
3826
+ return this.graphs_visible();
3799
3827
  }
3800
3828
  plugins() {
3801
3829
  return [
@@ -3849,11 +3877,11 @@ var $;
3849
3877
  graphs() {
3850
3878
  return [];
3851
3879
  }
3852
- graphs_visible() {
3880
+ graphs_positioned() {
3853
3881
  return this.graphs();
3854
3882
  }
3855
- graphs_positioned() {
3856
- return this.graphs_visible();
3883
+ graphs_visible() {
3884
+ return this.graphs_positioned();
3857
3885
  }
3858
3886
  zoom(val) {
3859
3887
  if (val !== undefined)
@@ -4002,23 +4030,6 @@ var $;
4002
4030
  ;
4003
4031
  "use strict";
4004
4032
  var $;
4005
- (function ($) {
4006
- function $mol_wire_probe(task, next) {
4007
- const warm = $mol_wire_fiber.warm;
4008
- try {
4009
- $mol_wire_fiber.warm = false;
4010
- return task();
4011
- }
4012
- finally {
4013
- $mol_wire_fiber.warm = warm;
4014
- }
4015
- }
4016
- $.$mol_wire_probe = $mol_wire_probe;
4017
- })($ || ($ = {}));
4018
- //mol/wire/probe/probe.ts
4019
- ;
4020
- "use strict";
4021
- var $;
4022
4033
  (function ($) {
4023
4034
  $.$mol_mem_cached = $mol_wire_probe;
4024
4035
  })($ || ($ = {}));
@@ -4053,7 +4064,7 @@ var $;
4053
4064
  return (360 + (this.hue_base() + this.hue_shift() * index) % 360) % 360;
4054
4065
  }
4055
4066
  graphs_colored() {
4056
- const graphs = this.graphs_positioned();
4067
+ const graphs = this.graphs_visible();
4057
4068
  for (let index = 0; index < graphs.length; index++) {
4058
4069
  graphs[index].hue = () => this.graph_hue(index);
4059
4070
  }
@@ -4142,6 +4153,10 @@ var $;
4142
4153
  return true;
4143
4154
  if (dims.y.min > dims.y.max)
4144
4155
  return true;
4156
+ const size_x = dims.x.max - dims.x.min;
4157
+ const size_y = dims.y.max - dims.y.min;
4158
+ if ((size_x || size_y) && size_x < max_x && size_y < max_y)
4159
+ return false;
4145
4160
  if (dims.x.min > viewport.x.max)
4146
4161
  return false;
4147
4162
  if (dims.x.max < viewport.x.min)