mol_plot_all 1.2.245 → 1.2.248

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.js CHANGED
@@ -1638,7 +1638,12 @@ var $;
1638
1638
  fiber = temp(obj, args);
1639
1639
  return fiber.async();
1640
1640
  };
1641
- }
1641
+ },
1642
+ apply(obj, self, args) {
1643
+ const temp = $mol_wire_task.getter(obj);
1644
+ const fiber = temp(self, args);
1645
+ return fiber.async();
1646
+ },
1642
1647
  });
1643
1648
  }
1644
1649
  $.$mol_wire_async = $mol_wire_async;
@@ -2044,11 +2049,18 @@ var $;
2044
2049
  *view_find(check, path = []) {
2045
2050
  if (check(this))
2046
2051
  return yield [...path, this];
2047
- for (const item of this.sub()) {
2048
- if (item instanceof $mol_view) {
2049
- yield* item.view_find(check, [...path, this]);
2052
+ try {
2053
+ for (const item of this.sub()) {
2054
+ if (item instanceof $mol_view) {
2055
+ yield* item.view_find(check, [...path, this]);
2056
+ }
2050
2057
  }
2051
2058
  }
2059
+ catch (error) {
2060
+ if (error instanceof Promise)
2061
+ $mol_fail_hidden(error);
2062
+ $mol_fail_log(error);
2063
+ }
2052
2064
  }
2053
2065
  force_render(path) {
2054
2066
  const kids = this.sub();
@@ -3349,7 +3361,7 @@ var $;
3349
3361
  return this.graphs_sorted();
3350
3362
  }
3351
3363
  graphs_colored() {
3352
- return this.graphs_positioned();
3364
+ return this.graphs_visible();
3353
3365
  }
3354
3366
  plugins() {
3355
3367
  return [
@@ -3403,11 +3415,11 @@ var $;
3403
3415
  graphs() {
3404
3416
  return [];
3405
3417
  }
3406
- graphs_visible() {
3418
+ graphs_positioned() {
3407
3419
  return this.graphs();
3408
3420
  }
3409
- graphs_positioned() {
3410
- return this.graphs_visible();
3421
+ graphs_visible() {
3422
+ return this.graphs_positioned();
3411
3423
  }
3412
3424
  zoom(val) {
3413
3425
  if (val !== undefined)
@@ -3607,7 +3619,7 @@ var $;
3607
3619
  return (360 + (this.hue_base() + this.hue_shift() * index) % 360) % 360;
3608
3620
  }
3609
3621
  graphs_colored() {
3610
- const graphs = this.graphs_positioned();
3622
+ const graphs = this.graphs_visible();
3611
3623
  for (let index = 0; index < graphs.length; index++) {
3612
3624
  graphs[index].hue = () => this.graph_hue(index);
3613
3625
  }
@@ -3696,6 +3708,10 @@ var $;
3696
3708
  return true;
3697
3709
  if (dims.y.min > dims.y.max)
3698
3710
  return true;
3711
+ const size_x = dims.x.max - dims.x.min;
3712
+ const size_y = dims.y.max - dims.y.min;
3713
+ if ((size_x || size_y) && size_x < max_x && size_y < max_y)
3714
+ return false;
3699
3715
  if (dims.x.min > viewport.x.max)
3700
3716
  return false;
3701
3717
  if (dims.x.max < viewport.x.min)