mol_plot_all 1.2.674 → 1.2.675

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.mjs CHANGED
@@ -1317,6 +1317,7 @@ var $;
1317
1317
  }
1318
1318
  };
1319
1319
  Reflect.defineProperty(descr2.value, 'name', { value: orig.name + ' ' });
1320
+ Reflect.defineProperty(descr2.value, 'length', { value: orig.length });
1320
1321
  Object.assign(descr2.value, { orig });
1321
1322
  Reflect.defineProperty(host, field, descr2);
1322
1323
  return descr2;
@@ -1354,6 +1355,7 @@ var $;
1354
1355
  }
1355
1356
  };
1356
1357
  Reflect.defineProperty(descr2.value, 'name', { value: orig.name + ' ' });
1358
+ Reflect.defineProperty(descr2.value, 'length', { value: orig.length });
1357
1359
  Object.assign(descr2.value, { orig });
1358
1360
  Reflect.defineProperty(host, field, descr2);
1359
1361
  return descr2;
@@ -2339,6 +2341,15 @@ var $;
2339
2341
  let all = [];
2340
2342
  let el = null;
2341
2343
  let timer = null;
2344
+ function $mol_style_attach_force() {
2345
+ if (all.length) {
2346
+ el.innerHTML += '\n' + all.join('\n\n');
2347
+ all = [];
2348
+ }
2349
+ timer = null;
2350
+ return el;
2351
+ }
2352
+ $.$mol_style_attach_force = $mol_style_attach_force;
2342
2353
  function $mol_style_attach(id, text) {
2343
2354
  all.push(`/* ${id} */\n\n${text}`);
2344
2355
  if (timer)
@@ -2349,12 +2360,7 @@ var $;
2349
2360
  el = doc.createElement('style');
2350
2361
  el.id = `$mol_style_attach`;
2351
2362
  doc.head.appendChild(el);
2352
- timer = new $mol_after_tick(() => {
2353
- el.innerHTML = '\n' + all.join('\n\n');
2354
- all = [];
2355
- el = null;
2356
- timer = null;
2357
- });
2363
+ timer = new $mol_after_tick($mol_style_attach_force);
2358
2364
  return el;
2359
2365
  }
2360
2366
  $.$mol_style_attach = $mol_style_attach;
@@ -2827,6 +2833,9 @@ var $;
2827
2833
  }
2828
2834
  return names;
2829
2835
  }
2836
+ theme(next = null) {
2837
+ return next;
2838
+ }
2830
2839
  attr_static() {
2831
2840
  let attrs = {};
2832
2841
  for (let name of this.view_names())
@@ -2834,7 +2843,9 @@ var $;
2834
2843
  return attrs;
2835
2844
  }
2836
2845
  attr() {
2837
- return {};
2846
+ return {
2847
+ mol_theme: this.theme(),
2848
+ };
2838
2849
  }
2839
2850
  style_size() {
2840
2851
  return {
@@ -2950,6 +2961,9 @@ var $;
2950
2961
  __decorate([
2951
2962
  $mol_memo.method
2952
2963
  ], $mol_view.prototype, "view_names", null);
2964
+ __decorate([
2965
+ $mol_mem
2966
+ ], $mol_view.prototype, "theme", null);
2953
2967
  __decorate([
2954
2968
  $mol_mem_key
2955
2969
  ], $mol_view, "Root", null);
package/node.test.js CHANGED
@@ -1309,6 +1309,7 @@ var $;
1309
1309
  }
1310
1310
  };
1311
1311
  Reflect.defineProperty(descr2.value, 'name', { value: orig.name + ' ' });
1312
+ Reflect.defineProperty(descr2.value, 'length', { value: orig.length });
1312
1313
  Object.assign(descr2.value, { orig });
1313
1314
  Reflect.defineProperty(host, field, descr2);
1314
1315
  return descr2;
@@ -1346,6 +1347,7 @@ var $;
1346
1347
  }
1347
1348
  };
1348
1349
  Reflect.defineProperty(descr2.value, 'name', { value: orig.name + ' ' });
1350
+ Reflect.defineProperty(descr2.value, 'length', { value: orig.length });
1349
1351
  Object.assign(descr2.value, { orig });
1350
1352
  Reflect.defineProperty(host, field, descr2);
1351
1353
  return descr2;
@@ -2331,6 +2333,15 @@ var $;
2331
2333
  let all = [];
2332
2334
  let el = null;
2333
2335
  let timer = null;
2336
+ function $mol_style_attach_force() {
2337
+ if (all.length) {
2338
+ el.innerHTML += '\n' + all.join('\n\n');
2339
+ all = [];
2340
+ }
2341
+ timer = null;
2342
+ return el;
2343
+ }
2344
+ $.$mol_style_attach_force = $mol_style_attach_force;
2334
2345
  function $mol_style_attach(id, text) {
2335
2346
  all.push(`/* ${id} */\n\n${text}`);
2336
2347
  if (timer)
@@ -2341,12 +2352,7 @@ var $;
2341
2352
  el = doc.createElement('style');
2342
2353
  el.id = `$mol_style_attach`;
2343
2354
  doc.head.appendChild(el);
2344
- timer = new $mol_after_tick(() => {
2345
- el.innerHTML = '\n' + all.join('\n\n');
2346
- all = [];
2347
- el = null;
2348
- timer = null;
2349
- });
2355
+ timer = new $mol_after_tick($mol_style_attach_force);
2350
2356
  return el;
2351
2357
  }
2352
2358
  $.$mol_style_attach = $mol_style_attach;
@@ -2819,6 +2825,9 @@ var $;
2819
2825
  }
2820
2826
  return names;
2821
2827
  }
2828
+ theme(next = null) {
2829
+ return next;
2830
+ }
2822
2831
  attr_static() {
2823
2832
  let attrs = {};
2824
2833
  for (let name of this.view_names())
@@ -2826,7 +2835,9 @@ var $;
2826
2835
  return attrs;
2827
2836
  }
2828
2837
  attr() {
2829
- return {};
2838
+ return {
2839
+ mol_theme: this.theme(),
2840
+ };
2830
2841
  }
2831
2842
  style_size() {
2832
2843
  return {
@@ -2942,6 +2953,9 @@ var $;
2942
2953
  __decorate([
2943
2954
  $mol_memo.method
2944
2955
  ], $mol_view.prototype, "view_names", null);
2956
+ __decorate([
2957
+ $mol_mem
2958
+ ], $mol_view.prototype, "theme", null);
2945
2959
  __decorate([
2946
2960
  $mol_mem_key
2947
2961
  ], $mol_view, "Root", null);