mol_plot_all 1.2.197 → 1.2.201

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.test.js CHANGED
@@ -770,6 +770,8 @@ var $;
770
770
  this.sub_from = from;
771
771
  }
772
772
  affect(quant) {
773
+ if (this.cursor === $mol_wire_cursor.final)
774
+ return false;
773
775
  if (this.cursor >= quant)
774
776
  return false;
775
777
  this.cursor = quant;
@@ -2041,11 +2043,26 @@ var $;
2041
2043
  "use strict";
2042
2044
  var $;
2043
2045
  (function ($) {
2044
- class $mol_after_work extends $mol_after_timeout {
2046
+ class $mol_after_work extends $mol_object2 {
2047
+ delay;
2048
+ task;
2049
+ id;
2050
+ constructor(delay, task) {
2051
+ super();
2052
+ this.delay = delay;
2053
+ this.task = task;
2054
+ this.id = requestIdleCallback(task, { timeout: delay });
2055
+ }
2056
+ destructor() {
2057
+ cancelIdleCallback(this.id);
2058
+ }
2045
2059
  }
2046
2060
  $.$mol_after_work = $mol_after_work;
2061
+ if (typeof requestIdleCallback !== 'function') {
2062
+ $.$mol_after_work = $mol_after_timeout;
2063
+ }
2047
2064
  })($ || ($ = {}));
2048
- //mol/after/work/work.node.ts
2065
+ //mol/after/work/work.ts
2049
2066
  ;
2050
2067
  "use strict";
2051
2068
  var $;