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.js 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) + '%';