mol_plot_all 1.2.673 → 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.js 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);