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/node.js CHANGED
@@ -240,6 +240,8 @@ var $node = new Proxy({ require }, {
240
240
  const mod = target.require('module');
241
241
  if (mod.builtinModules.indexOf(name) >= 0)
242
242
  return target.require(name);
243
+ if (name[0] === '.')
244
+ return target.require(name);
243
245
  const path = target.require('path');
244
246
  const fs = target.require('fs');
245
247
  let dir = path.resolve('.');
@@ -2115,7 +2117,12 @@ var $;
2115
2117
  fiber = temp(obj, args);
2116
2118
  return fiber.async();
2117
2119
  };
2118
- }
2120
+ },
2121
+ apply(obj, self, args) {
2122
+ const temp = $mol_wire_task.getter(obj);
2123
+ const fiber = temp(self, args);
2124
+ return fiber.async();
2125
+ },
2119
2126
  });
2120
2127
  }
2121
2128
  $.$mol_wire_async = $mol_wire_async;
@@ -2528,11 +2535,18 @@ var $;
2528
2535
  *view_find(check, path = []) {
2529
2536
  if (check(this))
2530
2537
  return yield [...path, this];
2531
- for (const item of this.sub()) {
2532
- if (item instanceof $mol_view) {
2533
- yield* item.view_find(check, [...path, this]);
2538
+ try {
2539
+ for (const item of this.sub()) {
2540
+ if (item instanceof $mol_view) {
2541
+ yield* item.view_find(check, [...path, this]);
2542
+ }
2534
2543
  }
2535
2544
  }
2545
+ catch (error) {
2546
+ if (error instanceof Promise)
2547
+ $mol_fail_hidden(error);
2548
+ $mol_fail_log(error);
2549
+ }
2536
2550
  }
2537
2551
  force_render(path) {
2538
2552
  const kids = this.sub();
@@ -3796,7 +3810,7 @@ var $;
3796
3810
  return this.graphs_sorted();
3797
3811
  }
3798
3812
  graphs_colored() {
3799
- return this.graphs_positioned();
3813
+ return this.graphs_visible();
3800
3814
  }
3801
3815
  plugins() {
3802
3816
  return [
@@ -3850,11 +3864,11 @@ var $;
3850
3864
  graphs() {
3851
3865
  return [];
3852
3866
  }
3853
- graphs_visible() {
3867
+ graphs_positioned() {
3854
3868
  return this.graphs();
3855
3869
  }
3856
- graphs_positioned() {
3857
- return this.graphs_visible();
3870
+ graphs_visible() {
3871
+ return this.graphs_positioned();
3858
3872
  }
3859
3873
  zoom(val) {
3860
3874
  if (val !== undefined)
@@ -4054,7 +4068,7 @@ var $;
4054
4068
  return (360 + (this.hue_base() + this.hue_shift() * index) % 360) % 360;
4055
4069
  }
4056
4070
  graphs_colored() {
4057
- const graphs = this.graphs_positioned();
4071
+ const graphs = this.graphs_visible();
4058
4072
  for (let index = 0; index < graphs.length; index++) {
4059
4073
  graphs[index].hue = () => this.graph_hue(index);
4060
4074
  }
@@ -4143,6 +4157,10 @@ var $;
4143
4157
  return true;
4144
4158
  if (dims.y.min > dims.y.max)
4145
4159
  return true;
4160
+ const size_x = dims.x.max - dims.x.min;
4161
+ const size_y = dims.y.max - dims.y.min;
4162
+ if ((size_x || size_y) && size_x < max_x && size_y < max_y)
4163
+ return false;
4146
4164
  if (dims.x.min > viewport.x.max)
4147
4165
  return false;
4148
4166
  if (dims.x.max < viewport.x.min)