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/node.d.ts +2 -2
- package/node.deps.json +1 -1
- package/node.esm.js +19 -8
- package/node.esm.js.map +1 -1
- package/node.js +19 -8
- package/node.js.map +1 -1
- package/node.test.js +19 -8
- package/node.test.js.map +1 -1
- package/node.view.tree +1 -1
- package/package.json +1 -1
- package/web.d.ts +2 -2
- package/web.deps.json +1 -1
- package/web.esm.js +19 -8
- package/web.esm.js.map +1 -1
- package/web.js +19 -8
- package/web.js.map +1 -1
- package/web.view.tree +1 -1
package/node.test.js
CHANGED
|
@@ -2527,11 +2527,18 @@ var $;
|
|
|
2527
2527
|
*view_find(check, path = []) {
|
|
2528
2528
|
if (check(this))
|
|
2529
2529
|
return yield [...path, this];
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2530
|
+
try {
|
|
2531
|
+
for (const item of this.sub()) {
|
|
2532
|
+
if (item instanceof $mol_view) {
|
|
2533
|
+
yield* item.view_find(check, [...path, this]);
|
|
2534
|
+
}
|
|
2533
2535
|
}
|
|
2534
2536
|
}
|
|
2537
|
+
catch (error) {
|
|
2538
|
+
if (error instanceof Promise)
|
|
2539
|
+
$mol_fail_hidden(error);
|
|
2540
|
+
$mol_fail_log(error);
|
|
2541
|
+
}
|
|
2535
2542
|
}
|
|
2536
2543
|
force_render(path) {
|
|
2537
2544
|
const kids = this.sub();
|
|
@@ -3795,7 +3802,7 @@ var $;
|
|
|
3795
3802
|
return this.graphs_sorted();
|
|
3796
3803
|
}
|
|
3797
3804
|
graphs_colored() {
|
|
3798
|
-
return this.
|
|
3805
|
+
return this.graphs_visible();
|
|
3799
3806
|
}
|
|
3800
3807
|
plugins() {
|
|
3801
3808
|
return [
|
|
@@ -3849,11 +3856,11 @@ var $;
|
|
|
3849
3856
|
graphs() {
|
|
3850
3857
|
return [];
|
|
3851
3858
|
}
|
|
3852
|
-
|
|
3859
|
+
graphs_positioned() {
|
|
3853
3860
|
return this.graphs();
|
|
3854
3861
|
}
|
|
3855
|
-
|
|
3856
|
-
return this.
|
|
3862
|
+
graphs_visible() {
|
|
3863
|
+
return this.graphs_positioned();
|
|
3857
3864
|
}
|
|
3858
3865
|
zoom(val) {
|
|
3859
3866
|
if (val !== undefined)
|
|
@@ -4053,7 +4060,7 @@ var $;
|
|
|
4053
4060
|
return (360 + (this.hue_base() + this.hue_shift() * index) % 360) % 360;
|
|
4054
4061
|
}
|
|
4055
4062
|
graphs_colored() {
|
|
4056
|
-
const graphs = this.
|
|
4063
|
+
const graphs = this.graphs_visible();
|
|
4057
4064
|
for (let index = 0; index < graphs.length; index++) {
|
|
4058
4065
|
graphs[index].hue = () => this.graph_hue(index);
|
|
4059
4066
|
}
|
|
@@ -4142,6 +4149,10 @@ var $;
|
|
|
4142
4149
|
return true;
|
|
4143
4150
|
if (dims.y.min > dims.y.max)
|
|
4144
4151
|
return true;
|
|
4152
|
+
const size_x = dims.x.max - dims.x.min;
|
|
4153
|
+
const size_y = dims.y.max - dims.y.min;
|
|
4154
|
+
if ((size_x || size_y) && size_x < max_x && size_y < max_y)
|
|
4155
|
+
return false;
|
|
4145
4156
|
if (dims.x.min > viewport.x.max)
|
|
4146
4157
|
return false;
|
|
4147
4158
|
if (dims.x.max < viewport.x.min)
|