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/web.mjs
CHANGED
|
@@ -685,7 +685,7 @@ var $;
|
|
|
685
685
|
return $mol_promise_like(this.cache);
|
|
686
686
|
}
|
|
687
687
|
field() {
|
|
688
|
-
return this.task.name + '
|
|
688
|
+
return this.task.name + '()';
|
|
689
689
|
}
|
|
690
690
|
constructor(id, task, host, args) {
|
|
691
691
|
super();
|
|
@@ -862,9 +862,18 @@ var $;
|
|
|
862
862
|
}
|
|
863
863
|
destructor() {
|
|
864
864
|
super.destructor();
|
|
865
|
-
if (
|
|
865
|
+
if (!$mol_owning_check(this, this.cache))
|
|
866
|
+
return;
|
|
867
|
+
try {
|
|
866
868
|
this.cache.destructor();
|
|
867
869
|
}
|
|
870
|
+
catch (result) {
|
|
871
|
+
if ($mol_promise_like(result)) {
|
|
872
|
+
const error = new Error(`Promise in ${this}.destructor()`);
|
|
873
|
+
Object.defineProperty(result, 'stack', { get: () => error.stack });
|
|
874
|
+
}
|
|
875
|
+
$mol_fail_hidden(result);
|
|
876
|
+
}
|
|
868
877
|
}
|
|
869
878
|
}
|
|
870
879
|
$.$mol_wire_fiber = $mol_wire_fiber;
|
|
@@ -1312,18 +1321,18 @@ var $;
|
|
|
1312
1321
|
(function ($) {
|
|
1313
1322
|
class $mol_wire_atom extends $mol_wire_fiber {
|
|
1314
1323
|
static solo(host, task) {
|
|
1315
|
-
const field = task.name + '
|
|
1324
|
+
const field = task.name + '()';
|
|
1316
1325
|
const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1317
1326
|
if (existen)
|
|
1318
1327
|
return existen;
|
|
1319
1328
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1320
|
-
const key = prefix + ('.' +
|
|
1329
|
+
const key = prefix + ('.' + task.name + '<>');
|
|
1321
1330
|
const fiber = new $mol_wire_atom(key, task, host, []);
|
|
1322
1331
|
(host ?? task)[field] = fiber;
|
|
1323
1332
|
return fiber;
|
|
1324
1333
|
}
|
|
1325
1334
|
static plex(host, task, key) {
|
|
1326
|
-
const field = task.name + '
|
|
1335
|
+
const field = task.name + '()';
|
|
1327
1336
|
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1328
1337
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1329
1338
|
const key_str = $mol_key(key);
|
|
@@ -4608,7 +4617,9 @@ var $;
|
|
|
4608
4617
|
if (points.length === 0)
|
|
4609
4618
|
return '';
|
|
4610
4619
|
const [, shift_y] = this.shift();
|
|
4611
|
-
return points.map(point =>
|
|
4620
|
+
return points.map(point => (Number.isFinite(point[0]) && Number.isFinite(point[1]))
|
|
4621
|
+
? `M ${point[0]} ${shift_y} V ${point[1]}`
|
|
4622
|
+
: ``).join(' ');
|
|
4612
4623
|
}
|
|
4613
4624
|
stroke_width() {
|
|
4614
4625
|
return (8 / Math.sqrt(this.indexes().length)).toPrecision(2) + '%';
|