mol_plot_all 1.2.674 → 1.2.676
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 +2 -0
- package/node.deps.json +1 -1
- package/node.js +21 -7
- package/node.js.map +1 -1
- package/node.mjs +21 -7
- package/node.test.js +21 -7
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +2 -0
- package/web.deps.json +1 -1
- package/web.js +21 -7
- package/web.js.map +1 -1
- package/web.mjs +21 -7
- package/web.test.js +1 -1
- package/web.test.js.map +1 -1
package/web.js
CHANGED
|
@@ -1308,6 +1308,7 @@ var $;
|
|
|
1308
1308
|
}
|
|
1309
1309
|
};
|
|
1310
1310
|
Reflect.defineProperty(descr2.value, 'name', { value: orig.name + ' ' });
|
|
1311
|
+
Reflect.defineProperty(descr2.value, 'length', { value: orig.length });
|
|
1311
1312
|
Object.assign(descr2.value, { orig });
|
|
1312
1313
|
Reflect.defineProperty(host, field, descr2);
|
|
1313
1314
|
return descr2;
|
|
@@ -1345,6 +1346,7 @@ var $;
|
|
|
1345
1346
|
}
|
|
1346
1347
|
};
|
|
1347
1348
|
Reflect.defineProperty(descr2.value, 'name', { value: orig.name + ' ' });
|
|
1349
|
+
Reflect.defineProperty(descr2.value, 'length', { value: orig.length });
|
|
1348
1350
|
Object.assign(descr2.value, { orig });
|
|
1349
1351
|
Reflect.defineProperty(host, field, descr2);
|
|
1350
1352
|
return descr2;
|
|
@@ -1772,6 +1774,15 @@ var $;
|
|
|
1772
1774
|
let all = [];
|
|
1773
1775
|
let el = null;
|
|
1774
1776
|
let timer = null;
|
|
1777
|
+
function $mol_style_attach_force() {
|
|
1778
|
+
if (all.length) {
|
|
1779
|
+
el.innerHTML += '\n' + all.join('\n\n');
|
|
1780
|
+
all = [];
|
|
1781
|
+
}
|
|
1782
|
+
timer = null;
|
|
1783
|
+
return el;
|
|
1784
|
+
}
|
|
1785
|
+
$.$mol_style_attach_force = $mol_style_attach_force;
|
|
1775
1786
|
function $mol_style_attach(id, text) {
|
|
1776
1787
|
all.push(`/* ${id} */\n\n${text}`);
|
|
1777
1788
|
if (timer)
|
|
@@ -1782,12 +1793,7 @@ var $;
|
|
|
1782
1793
|
el = doc.createElement('style');
|
|
1783
1794
|
el.id = `$mol_style_attach`;
|
|
1784
1795
|
doc.head.appendChild(el);
|
|
1785
|
-
timer = new $mol_after_tick(
|
|
1786
|
-
el.innerHTML = '\n' + all.join('\n\n');
|
|
1787
|
-
all = [];
|
|
1788
|
-
el = null;
|
|
1789
|
-
timer = null;
|
|
1790
|
-
});
|
|
1796
|
+
timer = new $mol_after_tick($mol_style_attach_force);
|
|
1791
1797
|
return el;
|
|
1792
1798
|
}
|
|
1793
1799
|
$.$mol_style_attach = $mol_style_attach;
|
|
@@ -2260,6 +2266,9 @@ var $;
|
|
|
2260
2266
|
}
|
|
2261
2267
|
return names;
|
|
2262
2268
|
}
|
|
2269
|
+
theme(next = null) {
|
|
2270
|
+
return next;
|
|
2271
|
+
}
|
|
2263
2272
|
attr_static() {
|
|
2264
2273
|
let attrs = {};
|
|
2265
2274
|
for (let name of this.view_names())
|
|
@@ -2267,7 +2276,9 @@ var $;
|
|
|
2267
2276
|
return attrs;
|
|
2268
2277
|
}
|
|
2269
2278
|
attr() {
|
|
2270
|
-
return {
|
|
2279
|
+
return {
|
|
2280
|
+
mol_theme: this.theme(),
|
|
2281
|
+
};
|
|
2271
2282
|
}
|
|
2272
2283
|
style_size() {
|
|
2273
2284
|
return {
|
|
@@ -2383,6 +2394,9 @@ var $;
|
|
|
2383
2394
|
__decorate([
|
|
2384
2395
|
$mol_memo.method
|
|
2385
2396
|
], $mol_view.prototype, "view_names", null);
|
|
2397
|
+
__decorate([
|
|
2398
|
+
$mol_mem
|
|
2399
|
+
], $mol_view.prototype, "theme", null);
|
|
2386
2400
|
__decorate([
|
|
2387
2401
|
$mol_mem_key
|
|
2388
2402
|
], $mol_view, "Root", null);
|