mol_plot_all 1.2.246 → 1.2.249
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 +7 -7
- package/node.deps.json +1 -1
- package/node.esm.js +47 -32
- package/node.esm.js.map +1 -1
- package/node.js +47 -32
- package/node.js.map +1 -1
- package/node.test.js +47 -32
- package/node.test.js.map +1 -1
- package/node.view.tree +1 -1
- package/package.json +2 -2
- package/web.d.ts +7 -7
- package/web.deps.json +1 -1
- package/web.esm.js +47 -32
- package/web.esm.js.map +1 -1
- package/web.js +47 -32
- package/web.js.map +1 -1
- package/web.view.tree +1 -1
package/web.esm.js
CHANGED
|
@@ -1063,6 +1063,8 @@ var $;
|
|
|
1063
1063
|
return Object.is(left.valueOf(), right['valueOf']());
|
|
1064
1064
|
if (left instanceof RegExp)
|
|
1065
1065
|
return left.source === right['source'] && left.flags === right['flags'];
|
|
1066
|
+
if (left instanceof Error)
|
|
1067
|
+
return left.stack === right['stack'];
|
|
1066
1068
|
let left_cache = $.$mol_compare_deep_cache.get(left);
|
|
1067
1069
|
if (left_cache) {
|
|
1068
1070
|
const right_cache = left_cache.get(right);
|
|
@@ -1083,8 +1085,6 @@ var $;
|
|
|
1083
1085
|
result = compare_set(left, right);
|
|
1084
1086
|
else if (left instanceof Map)
|
|
1085
1087
|
result = compare_map(left, right);
|
|
1086
|
-
else if (left instanceof Error)
|
|
1087
|
-
result = left.stack === right.stack;
|
|
1088
1088
|
else if (ArrayBuffer.isView(left))
|
|
1089
1089
|
result = compare_buffer(left, right);
|
|
1090
1090
|
else if (Symbol.toPrimitive in left)
|
|
@@ -1181,8 +1181,7 @@ var $;
|
|
|
1181
1181
|
};
|
|
1182
1182
|
}
|
|
1183
1183
|
complete() {
|
|
1184
|
-
|
|
1185
|
-
this.destructor();
|
|
1184
|
+
this.destructor();
|
|
1186
1185
|
}
|
|
1187
1186
|
put(next) {
|
|
1188
1187
|
const prev = this.cache;
|
|
@@ -1572,6 +1571,23 @@ var $;
|
|
|
1572
1571
|
;
|
|
1573
1572
|
"use strict";
|
|
1574
1573
|
var $;
|
|
1574
|
+
(function ($) {
|
|
1575
|
+
function $mol_wire_probe(task, next) {
|
|
1576
|
+
const warm = $mol_wire_fiber.warm;
|
|
1577
|
+
try {
|
|
1578
|
+
$mol_wire_fiber.warm = false;
|
|
1579
|
+
return task();
|
|
1580
|
+
}
|
|
1581
|
+
finally {
|
|
1582
|
+
$mol_wire_fiber.warm = warm;
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
$.$mol_wire_probe = $mol_wire_probe;
|
|
1586
|
+
})($ || ($ = {}));
|
|
1587
|
+
//mol/wire/probe/probe.ts
|
|
1588
|
+
;
|
|
1589
|
+
"use strict";
|
|
1590
|
+
var $;
|
|
1575
1591
|
(function ($) {
|
|
1576
1592
|
function $mol_wire_watch() {
|
|
1577
1593
|
const atom = $mol_wire_auto();
|
|
@@ -1875,9 +1891,14 @@ var $;
|
|
|
1875
1891
|
}
|
|
1876
1892
|
static watchers = new Set();
|
|
1877
1893
|
view_rect() {
|
|
1878
|
-
$
|
|
1879
|
-
|
|
1880
|
-
|
|
1894
|
+
if ($mol_wire_probe(() => this.view_rect()) === undefined) {
|
|
1895
|
+
$mol_wire_watch();
|
|
1896
|
+
return null;
|
|
1897
|
+
}
|
|
1898
|
+
else {
|
|
1899
|
+
const { width, height, left, right, top, bottom } = this.dom_node().getBoundingClientRect();
|
|
1900
|
+
return { width, height, left, right, top, bottom };
|
|
1901
|
+
}
|
|
1881
1902
|
}
|
|
1882
1903
|
dom_id() {
|
|
1883
1904
|
return this.toString();
|
|
@@ -2049,11 +2070,18 @@ var $;
|
|
|
2049
2070
|
*view_find(check, path = []) {
|
|
2050
2071
|
if (check(this))
|
|
2051
2072
|
return yield [...path, this];
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2073
|
+
try {
|
|
2074
|
+
for (const item of this.sub()) {
|
|
2075
|
+
if (item instanceof $mol_view) {
|
|
2076
|
+
yield* item.view_find(check, [...path, this]);
|
|
2077
|
+
}
|
|
2055
2078
|
}
|
|
2056
2079
|
}
|
|
2080
|
+
catch (error) {
|
|
2081
|
+
if (error instanceof Promise)
|
|
2082
|
+
$mol_fail_hidden(error);
|
|
2083
|
+
$mol_fail_log(error);
|
|
2084
|
+
}
|
|
2057
2085
|
}
|
|
2058
2086
|
force_render(path) {
|
|
2059
2087
|
const kids = this.sub();
|
|
@@ -3354,7 +3382,7 @@ var $;
|
|
|
3354
3382
|
return this.graphs_sorted();
|
|
3355
3383
|
}
|
|
3356
3384
|
graphs_colored() {
|
|
3357
|
-
return this.
|
|
3385
|
+
return this.graphs_visible();
|
|
3358
3386
|
}
|
|
3359
3387
|
plugins() {
|
|
3360
3388
|
return [
|
|
@@ -3408,11 +3436,11 @@ var $;
|
|
|
3408
3436
|
graphs() {
|
|
3409
3437
|
return [];
|
|
3410
3438
|
}
|
|
3411
|
-
|
|
3439
|
+
graphs_positioned() {
|
|
3412
3440
|
return this.graphs();
|
|
3413
3441
|
}
|
|
3414
|
-
|
|
3415
|
-
return this.
|
|
3442
|
+
graphs_visible() {
|
|
3443
|
+
return this.graphs_positioned();
|
|
3416
3444
|
}
|
|
3417
3445
|
zoom(val) {
|
|
3418
3446
|
if (val !== undefined)
|
|
@@ -3561,23 +3589,6 @@ var $;
|
|
|
3561
3589
|
;
|
|
3562
3590
|
"use strict";
|
|
3563
3591
|
var $;
|
|
3564
|
-
(function ($) {
|
|
3565
|
-
function $mol_wire_probe(task, next) {
|
|
3566
|
-
const warm = $mol_wire_fiber.warm;
|
|
3567
|
-
try {
|
|
3568
|
-
$mol_wire_fiber.warm = false;
|
|
3569
|
-
return task();
|
|
3570
|
-
}
|
|
3571
|
-
finally {
|
|
3572
|
-
$mol_wire_fiber.warm = warm;
|
|
3573
|
-
}
|
|
3574
|
-
}
|
|
3575
|
-
$.$mol_wire_probe = $mol_wire_probe;
|
|
3576
|
-
})($ || ($ = {}));
|
|
3577
|
-
//mol/wire/probe/probe.ts
|
|
3578
|
-
;
|
|
3579
|
-
"use strict";
|
|
3580
|
-
var $;
|
|
3581
3592
|
(function ($) {
|
|
3582
3593
|
$.$mol_mem_cached = $mol_wire_probe;
|
|
3583
3594
|
})($ || ($ = {}));
|
|
@@ -3612,7 +3623,7 @@ var $;
|
|
|
3612
3623
|
return (360 + (this.hue_base() + this.hue_shift() * index) % 360) % 360;
|
|
3613
3624
|
}
|
|
3614
3625
|
graphs_colored() {
|
|
3615
|
-
const graphs = this.
|
|
3626
|
+
const graphs = this.graphs_visible();
|
|
3616
3627
|
for (let index = 0; index < graphs.length; index++) {
|
|
3617
3628
|
graphs[index].hue = () => this.graph_hue(index);
|
|
3618
3629
|
}
|
|
@@ -3701,6 +3712,10 @@ var $;
|
|
|
3701
3712
|
return true;
|
|
3702
3713
|
if (dims.y.min > dims.y.max)
|
|
3703
3714
|
return true;
|
|
3715
|
+
const size_x = dims.x.max - dims.x.min;
|
|
3716
|
+
const size_y = dims.y.max - dims.y.min;
|
|
3717
|
+
if ((size_x || size_y) && size_x < max_x && size_y < max_y)
|
|
3718
|
+
return false;
|
|
3704
3719
|
if (dims.x.min > viewport.x.max)
|
|
3705
3720
|
return false;
|
|
3706
3721
|
if (dims.x.max < viewport.x.min)
|