mol_plot_all 1.2.246 → 1.2.247

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
@@ -2049,11 +2049,18 @@ var $;
2049
2049
  *view_find(check, path = []) {
2050
2050
  if (check(this))
2051
2051
  return yield [...path, this];
2052
- for (const item of this.sub()) {
2053
- if (item instanceof $mol_view) {
2054
- 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
+ }
2055
2057
  }
2056
2058
  }
2059
+ catch (error) {
2060
+ if (error instanceof Promise)
2061
+ $mol_fail_hidden(error);
2062
+ $mol_fail_log(error);
2063
+ }
2057
2064
  }
2058
2065
  force_render(path) {
2059
2066
  const kids = this.sub();
@@ -3354,7 +3361,7 @@ var $;
3354
3361
  return this.graphs_sorted();
3355
3362
  }
3356
3363
  graphs_colored() {
3357
- return this.graphs_positioned();
3364
+ return this.graphs_visible();
3358
3365
  }
3359
3366
  plugins() {
3360
3367
  return [
@@ -3408,11 +3415,11 @@ var $;
3408
3415
  graphs() {
3409
3416
  return [];
3410
3417
  }
3411
- graphs_visible() {
3418
+ graphs_positioned() {
3412
3419
  return this.graphs();
3413
3420
  }
3414
- graphs_positioned() {
3415
- return this.graphs_visible();
3421
+ graphs_visible() {
3422
+ return this.graphs_positioned();
3416
3423
  }
3417
3424
  zoom(val) {
3418
3425
  if (val !== undefined)
@@ -3612,7 +3619,7 @@ var $;
3612
3619
  return (360 + (this.hue_base() + this.hue_shift() * index) % 360) % 360;
3613
3620
  }
3614
3621
  graphs_colored() {
3615
- const graphs = this.graphs_positioned();
3622
+ const graphs = this.graphs_visible();
3616
3623
  for (let index = 0; index < graphs.length; index++) {
3617
3624
  graphs[index].hue = () => this.graph_hue(index);
3618
3625
  }
@@ -3701,6 +3708,10 @@ var $;
3701
3708
  return true;
3702
3709
  if (dims.y.min > dims.y.max)
3703
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;
3704
3715
  if (dims.x.min > viewport.x.max)
3705
3716
  return false;
3706
3717
  if (dims.x.max < viewport.x.min)