mol_plot_all 1.2.1330 → 1.2.1332

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
@@ -700,7 +700,7 @@ var $;
700
700
  return $mol_promise_like(this.cache);
701
701
  }
702
702
  field() {
703
- return this.task.name + '<>';
703
+ return this.task.name + '()';
704
704
  }
705
705
  constructor(id, task, host, args) {
706
706
  super();
@@ -1791,18 +1791,18 @@ var $;
1791
1791
  (function ($) {
1792
1792
  class $mol_wire_atom extends $mol_wire_fiber {
1793
1793
  static solo(host, task) {
1794
- const field = task.name + '<>';
1794
+ const field = task.name + '()';
1795
1795
  const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1796
1796
  if (existen)
1797
1797
  return existen;
1798
1798
  const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
1799
- const key = prefix + ('.' + field);
1799
+ const key = prefix + ('.' + task.name + '<>');
1800
1800
  const fiber = new $mol_wire_atom(key, task, host, []);
1801
1801
  (host ?? task)[field] = fiber;
1802
1802
  return fiber;
1803
1803
  }
1804
1804
  static plex(host, task, key) {
1805
- const field = task.name + '<>';
1805
+ const field = task.name + '()';
1806
1806
  let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1807
1807
  const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
1808
1808
  const key_str = $mol_key(key);
@@ -5332,7 +5332,9 @@ var $;
5332
5332
  if (points.length === 0)
5333
5333
  return '';
5334
5334
  const [, shift_y] = this.shift();
5335
- return points.map(point => `M ${point[0]} ${shift_y} V ${point[1]}`).join(' ');
5335
+ return points.map(point => (Number.isFinite(point[0]) && Number.isFinite(point[1]))
5336
+ ? `M ${point[0]} ${shift_y} V ${point[1]}`
5337
+ : ``).join(' ');
5336
5338
  }
5337
5339
  stroke_width() {
5338
5340
  return (8 / Math.sqrt(this.indexes().length)).toPrecision(2) + '%';
package/node.test.js CHANGED
@@ -691,7 +691,7 @@ var $;
691
691
  return $mol_promise_like(this.cache);
692
692
  }
693
693
  field() {
694
- return this.task.name + '<>';
694
+ return this.task.name + '()';
695
695
  }
696
696
  constructor(id, task, host, args) {
697
697
  super();
@@ -1782,18 +1782,18 @@ var $;
1782
1782
  (function ($) {
1783
1783
  class $mol_wire_atom extends $mol_wire_fiber {
1784
1784
  static solo(host, task) {
1785
- const field = task.name + '<>';
1785
+ const field = task.name + '()';
1786
1786
  const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1787
1787
  if (existen)
1788
1788
  return existen;
1789
1789
  const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
1790
- const key = prefix + ('.' + field);
1790
+ const key = prefix + ('.' + task.name + '<>');
1791
1791
  const fiber = new $mol_wire_atom(key, task, host, []);
1792
1792
  (host ?? task)[field] = fiber;
1793
1793
  return fiber;
1794
1794
  }
1795
1795
  static plex(host, task, key) {
1796
- const field = task.name + '<>';
1796
+ const field = task.name + '()';
1797
1797
  let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1798
1798
  const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
1799
1799
  const key_str = $mol_key(key);
@@ -5323,7 +5323,9 @@ var $;
5323
5323
  if (points.length === 0)
5324
5324
  return '';
5325
5325
  const [, shift_y] = this.shift();
5326
- return points.map(point => `M ${point[0]} ${shift_y} V ${point[1]}`).join(' ');
5326
+ return points.map(point => (Number.isFinite(point[0]) && Number.isFinite(point[1]))
5327
+ ? `M ${point[0]} ${shift_y} V ${point[1]}`
5328
+ : ``).join(' ');
5327
5329
  }
5328
5330
  stroke_width() {
5329
5331
  return (8 / Math.sqrt(this.indexes().length)).toPrecision(2) + '%';