mol_plot_all 1.2.1330 → 1.2.1331

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/web.js CHANGED
@@ -685,7 +685,7 @@ var $;
685
685
  return $mol_promise_like(this.cache);
686
686
  }
687
687
  field() {
688
- return this.task.name + '<>';
688
+ return this.task.name + '()';
689
689
  }
690
690
  constructor(id, task, host, args) {
691
691
  super();
@@ -1321,18 +1321,18 @@ var $;
1321
1321
  (function ($) {
1322
1322
  class $mol_wire_atom extends $mol_wire_fiber {
1323
1323
  static solo(host, task) {
1324
- const field = task.name + '<>';
1324
+ const field = task.name + '()';
1325
1325
  const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1326
1326
  if (existen)
1327
1327
  return existen;
1328
1328
  const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
1329
- const key = prefix + ('.' + field);
1329
+ const key = prefix + ('.' + task.name + '<>');
1330
1330
  const fiber = new $mol_wire_atom(key, task, host, []);
1331
1331
  (host ?? task)[field] = fiber;
1332
1332
  return fiber;
1333
1333
  }
1334
1334
  static plex(host, task, key) {
1335
- const field = task.name + '<>';
1335
+ const field = task.name + '()';
1336
1336
  let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1337
1337
  const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
1338
1338
  const key_str = $mol_key(key);
@@ -4617,7 +4617,9 @@ var $;
4617
4617
  if (points.length === 0)
4618
4618
  return '';
4619
4619
  const [, shift_y] = this.shift();
4620
- return points.map(point => `M ${point[0]} ${shift_y} V ${point[1]}`).join(' ');
4620
+ return points.map(point => (Number.isFinite(point[0]) && Number.isFinite(point[1]))
4621
+ ? `M ${point[0]} ${shift_y} V ${point[1]}`
4622
+ : ``).join(' ');
4621
4623
  }
4622
4624
  stroke_width() {
4623
4625
  return (8 / Math.sqrt(this.indexes().length)).toPrecision(2) + '%';