mol_plot_all 1.2.1329 → 1.2.1331
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.deps.json +1 -1
- package/node.js +17 -6
- package/node.js.map +1 -1
- package/node.mjs +17 -6
- package/node.test.js +17 -6
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +17 -6
- package/web.js.map +1 -1
- package/web.mjs +17 -6
package/node.js
CHANGED
|
@@ -700,7 +700,7 @@ var $;
|
|
|
700
700
|
return $mol_promise_like(this.cache);
|
|
701
701
|
}
|
|
702
702
|
field() {
|
|
703
|
-
return this.task.name + '
|
|
703
|
+
return this.task.name + '()';
|
|
704
704
|
}
|
|
705
705
|
constructor(id, task, host, args) {
|
|
706
706
|
super();
|
|
@@ -877,9 +877,18 @@ var $;
|
|
|
877
877
|
}
|
|
878
878
|
destructor() {
|
|
879
879
|
super.destructor();
|
|
880
|
-
if (
|
|
880
|
+
if (!$mol_owning_check(this, this.cache))
|
|
881
|
+
return;
|
|
882
|
+
try {
|
|
881
883
|
this.cache.destructor();
|
|
882
884
|
}
|
|
885
|
+
catch (result) {
|
|
886
|
+
if ($mol_promise_like(result)) {
|
|
887
|
+
const error = new Error(`Promise in ${this}.destructor()`);
|
|
888
|
+
Object.defineProperty(result, 'stack', { get: () => error.stack });
|
|
889
|
+
}
|
|
890
|
+
$mol_fail_hidden(result);
|
|
891
|
+
}
|
|
883
892
|
}
|
|
884
893
|
}
|
|
885
894
|
$.$mol_wire_fiber = $mol_wire_fiber;
|
|
@@ -1782,18 +1791,18 @@ var $;
|
|
|
1782
1791
|
(function ($) {
|
|
1783
1792
|
class $mol_wire_atom extends $mol_wire_fiber {
|
|
1784
1793
|
static solo(host, task) {
|
|
1785
|
-
const field = task.name + '
|
|
1794
|
+
const field = task.name + '()';
|
|
1786
1795
|
const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1787
1796
|
if (existen)
|
|
1788
1797
|
return existen;
|
|
1789
1798
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1790
|
-
const key = prefix + ('.' +
|
|
1799
|
+
const key = prefix + ('.' + task.name + '<>');
|
|
1791
1800
|
const fiber = new $mol_wire_atom(key, task, host, []);
|
|
1792
1801
|
(host ?? task)[field] = fiber;
|
|
1793
1802
|
return fiber;
|
|
1794
1803
|
}
|
|
1795
1804
|
static plex(host, task, key) {
|
|
1796
|
-
const field = task.name + '
|
|
1805
|
+
const field = task.name + '()';
|
|
1797
1806
|
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1798
1807
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1799
1808
|
const key_str = $mol_key(key);
|
|
@@ -5323,7 +5332,9 @@ var $;
|
|
|
5323
5332
|
if (points.length === 0)
|
|
5324
5333
|
return '';
|
|
5325
5334
|
const [, shift_y] = this.shift();
|
|
5326
|
-
return points.map(point =>
|
|
5335
|
+
return points.map(point => (Number.isFinite(point[0]) && Number.isFinite(point[1]))
|
|
5336
|
+
? `M ${point[0]} ${shift_y} V ${point[1]}`
|
|
5337
|
+
: ``).join(' ');
|
|
5327
5338
|
}
|
|
5328
5339
|
stroke_width() {
|
|
5329
5340
|
return (8 / Math.sqrt(this.indexes().length)).toPrecision(2) + '%';
|