mol_plot_all 1.2.424 → 1.2.425
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/web.js
CHANGED
|
@@ -1004,6 +1004,34 @@ var $;
|
|
|
1004
1004
|
;
|
|
1005
1005
|
"use strict";
|
|
1006
1006
|
var $;
|
|
1007
|
+
(function ($) {
|
|
1008
|
+
function $mol_func_name(func) {
|
|
1009
|
+
let name = func.name;
|
|
1010
|
+
if (name?.length > 1)
|
|
1011
|
+
return name;
|
|
1012
|
+
for (let key in this) {
|
|
1013
|
+
try {
|
|
1014
|
+
if (this[key] !== func)
|
|
1015
|
+
continue;
|
|
1016
|
+
name = key;
|
|
1017
|
+
Object.defineProperty(func, 'name', { value: name });
|
|
1018
|
+
break;
|
|
1019
|
+
}
|
|
1020
|
+
catch { }
|
|
1021
|
+
}
|
|
1022
|
+
return name;
|
|
1023
|
+
}
|
|
1024
|
+
$.$mol_func_name = $mol_func_name;
|
|
1025
|
+
function $mol_func_name_from(target, source) {
|
|
1026
|
+
Object.defineProperty(target, 'name', { value: source.name });
|
|
1027
|
+
return target;
|
|
1028
|
+
}
|
|
1029
|
+
$.$mol_func_name_from = $mol_func_name_from;
|
|
1030
|
+
})($ || ($ = {}));
|
|
1031
|
+
//mol/func/name/name.ts
|
|
1032
|
+
;
|
|
1033
|
+
"use strict";
|
|
1034
|
+
var $;
|
|
1007
1035
|
(function ($) {
|
|
1008
1036
|
function $mol_guid(length = 8, exists = () => false) {
|
|
1009
1037
|
for (;;) {
|
|
@@ -1262,7 +1290,8 @@ var $;
|
|
|
1262
1290
|
const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1263
1291
|
if (existen)
|
|
1264
1292
|
return existen;
|
|
1265
|
-
const
|
|
1293
|
+
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1294
|
+
const key = `${prefix}.${field}`;
|
|
1266
1295
|
const fiber = new $mol_wire_atom(key, task, host, []);
|
|
1267
1296
|
(host ?? task)[field] = fiber;
|
|
1268
1297
|
return fiber;
|
|
@@ -1270,7 +1299,8 @@ var $;
|
|
|
1270
1299
|
static plex(host, task, key) {
|
|
1271
1300
|
const field = task.name + '()';
|
|
1272
1301
|
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1273
|
-
const
|
|
1302
|
+
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1303
|
+
const id = `${prefix}.${task.name}(${$mol_key(key)})`;
|
|
1274
1304
|
if (dict) {
|
|
1275
1305
|
const existen = dict.get(id);
|
|
1276
1306
|
if (existen)
|
|
@@ -1834,34 +1864,6 @@ var $;
|
|
|
1834
1864
|
//mol/dom/render/fields/fields.ts
|
|
1835
1865
|
;
|
|
1836
1866
|
"use strict";
|
|
1837
|
-
var $;
|
|
1838
|
-
(function ($) {
|
|
1839
|
-
function $mol_func_name(func) {
|
|
1840
|
-
let name = func.name;
|
|
1841
|
-
if (name?.length > 1)
|
|
1842
|
-
return name;
|
|
1843
|
-
for (let key in this) {
|
|
1844
|
-
try {
|
|
1845
|
-
if (this[key] !== func)
|
|
1846
|
-
continue;
|
|
1847
|
-
name = key;
|
|
1848
|
-
Object.defineProperty(func, 'name', { value: name });
|
|
1849
|
-
break;
|
|
1850
|
-
}
|
|
1851
|
-
catch { }
|
|
1852
|
-
}
|
|
1853
|
-
return name;
|
|
1854
|
-
}
|
|
1855
|
-
$.$mol_func_name = $mol_func_name;
|
|
1856
|
-
function $mol_func_name_from(target, source) {
|
|
1857
|
-
Object.defineProperty(target, 'name', { value: source.name });
|
|
1858
|
-
return target;
|
|
1859
|
-
}
|
|
1860
|
-
$.$mol_func_name_from = $mol_func_name_from;
|
|
1861
|
-
})($ || ($ = {}));
|
|
1862
|
-
//mol/func/name/name.ts
|
|
1863
|
-
;
|
|
1864
|
-
"use strict";
|
|
1865
1867
|
//mol/type/keys/extract/extract.ts
|
|
1866
1868
|
;
|
|
1867
1869
|
"use strict";
|