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/node.esm.js
CHANGED
|
@@ -1587,6 +1587,8 @@ var $;
|
|
|
1587
1587
|
return Object.is(left.valueOf(), right['valueOf']());
|
|
1588
1588
|
if (left instanceof RegExp)
|
|
1589
1589
|
return left.source === right['source'] && left.flags === right['flags'];
|
|
1590
|
+
if (left instanceof Error)
|
|
1591
|
+
return left.stack === right['stack'];
|
|
1590
1592
|
let left_cache = $.$mol_compare_deep_cache.get(left);
|
|
1591
1593
|
if (left_cache) {
|
|
1592
1594
|
const right_cache = left_cache.get(right);
|
|
@@ -1607,8 +1609,6 @@ var $;
|
|
|
1607
1609
|
result = compare_set(left, right);
|
|
1608
1610
|
else if (left instanceof Map)
|
|
1609
1611
|
result = compare_map(left, right);
|
|
1610
|
-
else if (left instanceof Error)
|
|
1611
|
-
result = left.stack === right.stack;
|
|
1612
1612
|
else if (ArrayBuffer.isView(left))
|
|
1613
1613
|
result = compare_buffer(left, right);
|
|
1614
1614
|
else if (Symbol.toPrimitive in left)
|
|
@@ -1705,8 +1705,7 @@ var $;
|
|
|
1705
1705
|
};
|
|
1706
1706
|
}
|
|
1707
1707
|
complete() {
|
|
1708
|
-
|
|
1709
|
-
this.destructor();
|
|
1708
|
+
this.destructor();
|
|
1710
1709
|
}
|
|
1711
1710
|
put(next) {
|
|
1712
1711
|
const prev = this.cache;
|
|
@@ -2051,6 +2050,23 @@ var $;
|
|
|
2051
2050
|
;
|
|
2052
2051
|
"use strict";
|
|
2053
2052
|
var $;
|
|
2053
|
+
(function ($) {
|
|
2054
|
+
function $mol_wire_probe(task, next) {
|
|
2055
|
+
const warm = $mol_wire_fiber.warm;
|
|
2056
|
+
try {
|
|
2057
|
+
$mol_wire_fiber.warm = false;
|
|
2058
|
+
return task();
|
|
2059
|
+
}
|
|
2060
|
+
finally {
|
|
2061
|
+
$mol_wire_fiber.warm = warm;
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
$.$mol_wire_probe = $mol_wire_probe;
|
|
2065
|
+
})($ || ($ = {}));
|
|
2066
|
+
//mol/wire/probe/probe.ts
|
|
2067
|
+
;
|
|
2068
|
+
"use strict";
|
|
2069
|
+
var $;
|
|
2054
2070
|
(function ($) {
|
|
2055
2071
|
function $mol_wire_watch() {
|
|
2056
2072
|
const atom = $mol_wire_auto();
|
|
@@ -2361,9 +2377,14 @@ var $;
|
|
|
2361
2377
|
}
|
|
2362
2378
|
static watchers = new Set();
|
|
2363
2379
|
view_rect() {
|
|
2364
|
-
$
|
|
2365
|
-
|
|
2366
|
-
|
|
2380
|
+
if ($mol_wire_probe(() => this.view_rect()) === undefined) {
|
|
2381
|
+
$mol_wire_watch();
|
|
2382
|
+
return null;
|
|
2383
|
+
}
|
|
2384
|
+
else {
|
|
2385
|
+
const { width, height, left, right, top, bottom } = this.dom_node().getBoundingClientRect();
|
|
2386
|
+
return { width, height, left, right, top, bottom };
|
|
2387
|
+
}
|
|
2367
2388
|
}
|
|
2368
2389
|
dom_id() {
|
|
2369
2390
|
return this.toString();
|
|
@@ -2535,11 +2556,18 @@ var $;
|
|
|
2535
2556
|
*view_find(check, path = []) {
|
|
2536
2557
|
if (check(this))
|
|
2537
2558
|
return yield [...path, this];
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2559
|
+
try {
|
|
2560
|
+
for (const item of this.sub()) {
|
|
2561
|
+
if (item instanceof $mol_view) {
|
|
2562
|
+
yield* item.view_find(check, [...path, this]);
|
|
2563
|
+
}
|
|
2541
2564
|
}
|
|
2542
2565
|
}
|
|
2566
|
+
catch (error) {
|
|
2567
|
+
if (error instanceof Promise)
|
|
2568
|
+
$mol_fail_hidden(error);
|
|
2569
|
+
$mol_fail_log(error);
|
|
2570
|
+
}
|
|
2543
2571
|
}
|
|
2544
2572
|
force_render(path) {
|
|
2545
2573
|
const kids = this.sub();
|
|
@@ -3803,7 +3831,7 @@ var $;
|
|
|
3803
3831
|
return this.graphs_sorted();
|
|
3804
3832
|
}
|
|
3805
3833
|
graphs_colored() {
|
|
3806
|
-
return this.
|
|
3834
|
+
return this.graphs_visible();
|
|
3807
3835
|
}
|
|
3808
3836
|
plugins() {
|
|
3809
3837
|
return [
|
|
@@ -3857,11 +3885,11 @@ var $;
|
|
|
3857
3885
|
graphs() {
|
|
3858
3886
|
return [];
|
|
3859
3887
|
}
|
|
3860
|
-
|
|
3888
|
+
graphs_positioned() {
|
|
3861
3889
|
return this.graphs();
|
|
3862
3890
|
}
|
|
3863
|
-
|
|
3864
|
-
return this.
|
|
3891
|
+
graphs_visible() {
|
|
3892
|
+
return this.graphs_positioned();
|
|
3865
3893
|
}
|
|
3866
3894
|
zoom(val) {
|
|
3867
3895
|
if (val !== undefined)
|
|
@@ -4010,23 +4038,6 @@ var $;
|
|
|
4010
4038
|
;
|
|
4011
4039
|
"use strict";
|
|
4012
4040
|
var $;
|
|
4013
|
-
(function ($) {
|
|
4014
|
-
function $mol_wire_probe(task, next) {
|
|
4015
|
-
const warm = $mol_wire_fiber.warm;
|
|
4016
|
-
try {
|
|
4017
|
-
$mol_wire_fiber.warm = false;
|
|
4018
|
-
return task();
|
|
4019
|
-
}
|
|
4020
|
-
finally {
|
|
4021
|
-
$mol_wire_fiber.warm = warm;
|
|
4022
|
-
}
|
|
4023
|
-
}
|
|
4024
|
-
$.$mol_wire_probe = $mol_wire_probe;
|
|
4025
|
-
})($ || ($ = {}));
|
|
4026
|
-
//mol/wire/probe/probe.ts
|
|
4027
|
-
;
|
|
4028
|
-
"use strict";
|
|
4029
|
-
var $;
|
|
4030
4041
|
(function ($) {
|
|
4031
4042
|
$.$mol_mem_cached = $mol_wire_probe;
|
|
4032
4043
|
})($ || ($ = {}));
|
|
@@ -4061,7 +4072,7 @@ var $;
|
|
|
4061
4072
|
return (360 + (this.hue_base() + this.hue_shift() * index) % 360) % 360;
|
|
4062
4073
|
}
|
|
4063
4074
|
graphs_colored() {
|
|
4064
|
-
const graphs = this.
|
|
4075
|
+
const graphs = this.graphs_visible();
|
|
4065
4076
|
for (let index = 0; index < graphs.length; index++) {
|
|
4066
4077
|
graphs[index].hue = () => this.graph_hue(index);
|
|
4067
4078
|
}
|
|
@@ -4150,6 +4161,10 @@ var $;
|
|
|
4150
4161
|
return true;
|
|
4151
4162
|
if (dims.y.min > dims.y.max)
|
|
4152
4163
|
return true;
|
|
4164
|
+
const size_x = dims.x.max - dims.x.min;
|
|
4165
|
+
const size_y = dims.y.max - dims.y.min;
|
|
4166
|
+
if ((size_x || size_y) && size_x < max_x && size_y < max_y)
|
|
4167
|
+
return false;
|
|
4153
4168
|
if (dims.x.min > viewport.x.max)
|
|
4154
4169
|
return false;
|
|
4155
4170
|
if (dims.x.max < viewport.x.min)
|