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.js
CHANGED
|
@@ -2535,11 +2535,18 @@ var $;
|
|
|
2535
2535
|
*view_find(check, path = []) {
|
|
2536
2536
|
if (check(this))
|
|
2537
2537
|
return yield [...path, this];
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2538
|
+
try {
|
|
2539
|
+
for (const item of this.sub()) {
|
|
2540
|
+
if (item instanceof $mol_view) {
|
|
2541
|
+
yield* item.view_find(check, [...path, this]);
|
|
2542
|
+
}
|
|
2541
2543
|
}
|
|
2542
2544
|
}
|
|
2545
|
+
catch (error) {
|
|
2546
|
+
if (error instanceof Promise)
|
|
2547
|
+
$mol_fail_hidden(error);
|
|
2548
|
+
$mol_fail_log(error);
|
|
2549
|
+
}
|
|
2543
2550
|
}
|
|
2544
2551
|
force_render(path) {
|
|
2545
2552
|
const kids = this.sub();
|
|
@@ -3803,7 +3810,7 @@ var $;
|
|
|
3803
3810
|
return this.graphs_sorted();
|
|
3804
3811
|
}
|
|
3805
3812
|
graphs_colored() {
|
|
3806
|
-
return this.
|
|
3813
|
+
return this.graphs_visible();
|
|
3807
3814
|
}
|
|
3808
3815
|
plugins() {
|
|
3809
3816
|
return [
|
|
@@ -3857,11 +3864,11 @@ var $;
|
|
|
3857
3864
|
graphs() {
|
|
3858
3865
|
return [];
|
|
3859
3866
|
}
|
|
3860
|
-
|
|
3867
|
+
graphs_positioned() {
|
|
3861
3868
|
return this.graphs();
|
|
3862
3869
|
}
|
|
3863
|
-
|
|
3864
|
-
return this.
|
|
3870
|
+
graphs_visible() {
|
|
3871
|
+
return this.graphs_positioned();
|
|
3865
3872
|
}
|
|
3866
3873
|
zoom(val) {
|
|
3867
3874
|
if (val !== undefined)
|
|
@@ -4061,7 +4068,7 @@ var $;
|
|
|
4061
4068
|
return (360 + (this.hue_base() + this.hue_shift() * index) % 360) % 360;
|
|
4062
4069
|
}
|
|
4063
4070
|
graphs_colored() {
|
|
4064
|
-
const graphs = this.
|
|
4071
|
+
const graphs = this.graphs_visible();
|
|
4065
4072
|
for (let index = 0; index < graphs.length; index++) {
|
|
4066
4073
|
graphs[index].hue = () => this.graph_hue(index);
|
|
4067
4074
|
}
|
|
@@ -4150,6 +4157,10 @@ var $;
|
|
|
4150
4157
|
return true;
|
|
4151
4158
|
if (dims.y.min > dims.y.max)
|
|
4152
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;
|
|
4153
4164
|
if (dims.x.min > viewport.x.max)
|
|
4154
4165
|
return false;
|
|
4155
4166
|
if (dims.x.max < viewport.x.min)
|