mol_plot_all 1.2.424 → 1.2.426
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 +5 -5
- package/node.deps.json +1 -1
- package/node.esm.js +32 -30
- package/node.esm.js.map +1 -1
- package/node.js +32 -30
- package/node.js.map +1 -1
- package/node.test.js +33 -31
- package/node.test.js.map +1 -1
- package/package.json +3 -3
- package/web.d.ts +5 -5
- package/web.deps.json +1 -1
- package/web.esm.js +32 -30
- package/web.esm.js.map +1 -1
- package/web.js +32 -30
- package/web.js.map +1 -1
- package/web.test.js +1 -1
- package/web.test.js.map +1 -1
package/node.esm.js
CHANGED
|
@@ -1527,6 +1527,34 @@ var $;
|
|
|
1527
1527
|
;
|
|
1528
1528
|
"use strict";
|
|
1529
1529
|
var $;
|
|
1530
|
+
(function ($) {
|
|
1531
|
+
function $mol_func_name(func) {
|
|
1532
|
+
let name = func.name;
|
|
1533
|
+
if (name?.length > 1)
|
|
1534
|
+
return name;
|
|
1535
|
+
for (let key in this) {
|
|
1536
|
+
try {
|
|
1537
|
+
if (this[key] !== func)
|
|
1538
|
+
continue;
|
|
1539
|
+
name = key;
|
|
1540
|
+
Object.defineProperty(func, 'name', { value: name });
|
|
1541
|
+
break;
|
|
1542
|
+
}
|
|
1543
|
+
catch { }
|
|
1544
|
+
}
|
|
1545
|
+
return name;
|
|
1546
|
+
}
|
|
1547
|
+
$.$mol_func_name = $mol_func_name;
|
|
1548
|
+
function $mol_func_name_from(target, source) {
|
|
1549
|
+
Object.defineProperty(target, 'name', { value: source.name });
|
|
1550
|
+
return target;
|
|
1551
|
+
}
|
|
1552
|
+
$.$mol_func_name_from = $mol_func_name_from;
|
|
1553
|
+
})($ || ($ = {}));
|
|
1554
|
+
//mol/func/name/name.ts
|
|
1555
|
+
;
|
|
1556
|
+
"use strict";
|
|
1557
|
+
var $;
|
|
1530
1558
|
(function ($) {
|
|
1531
1559
|
function $mol_guid(length = 8, exists = () => false) {
|
|
1532
1560
|
for (;;) {
|
|
@@ -1785,7 +1813,8 @@ var $;
|
|
|
1785
1813
|
const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1786
1814
|
if (existen)
|
|
1787
1815
|
return existen;
|
|
1788
|
-
const
|
|
1816
|
+
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1817
|
+
const key = `${prefix}.${field}`;
|
|
1789
1818
|
const fiber = new $mol_wire_atom(key, task, host, []);
|
|
1790
1819
|
(host ?? task)[field] = fiber;
|
|
1791
1820
|
return fiber;
|
|
@@ -1793,7 +1822,8 @@ var $;
|
|
|
1793
1822
|
static plex(host, task, key) {
|
|
1794
1823
|
const field = task.name + '()';
|
|
1795
1824
|
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1796
|
-
const
|
|
1825
|
+
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1826
|
+
const id = `${prefix}.${task.name}(${$mol_key(key)})`;
|
|
1797
1827
|
if (dict) {
|
|
1798
1828
|
const existen = dict.get(id);
|
|
1799
1829
|
if (existen)
|
|
@@ -2312,34 +2342,6 @@ var $;
|
|
|
2312
2342
|
//mol/dom/render/fields/fields.ts
|
|
2313
2343
|
;
|
|
2314
2344
|
"use strict";
|
|
2315
|
-
var $;
|
|
2316
|
-
(function ($) {
|
|
2317
|
-
function $mol_func_name(func) {
|
|
2318
|
-
let name = func.name;
|
|
2319
|
-
if (name?.length > 1)
|
|
2320
|
-
return name;
|
|
2321
|
-
for (let key in this) {
|
|
2322
|
-
try {
|
|
2323
|
-
if (this[key] !== func)
|
|
2324
|
-
continue;
|
|
2325
|
-
name = key;
|
|
2326
|
-
Object.defineProperty(func, 'name', { value: name });
|
|
2327
|
-
break;
|
|
2328
|
-
}
|
|
2329
|
-
catch { }
|
|
2330
|
-
}
|
|
2331
|
-
return name;
|
|
2332
|
-
}
|
|
2333
|
-
$.$mol_func_name = $mol_func_name;
|
|
2334
|
-
function $mol_func_name_from(target, source) {
|
|
2335
|
-
Object.defineProperty(target, 'name', { value: source.name });
|
|
2336
|
-
return target;
|
|
2337
|
-
}
|
|
2338
|
-
$.$mol_func_name_from = $mol_func_name_from;
|
|
2339
|
-
})($ || ($ = {}));
|
|
2340
|
-
//mol/func/name/name.ts
|
|
2341
|
-
;
|
|
2342
|
-
"use strict";
|
|
2343
2345
|
//mol/type/keys/extract/extract.ts
|
|
2344
2346
|
;
|
|
2345
2347
|
"use strict";
|