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.js CHANGED
@@ -778,6 +778,8 @@ var $;
778
778
  this.sub_from = from;
779
779
  }
780
780
  affect(quant) {
781
+ if (this.cursor === $mol_wire_cursor.final)
782
+ return false;
781
783
  if (this.cursor >= quant)
782
784
  return false;
783
785
  this.cursor = quant;
@@ -2049,11 +2051,26 @@ var $;
2049
2051
  "use strict";
2050
2052
  var $;
2051
2053
  (function ($) {
2052
- class $mol_after_work extends $mol_after_timeout {
2054
+ class $mol_after_work extends $mol_object2 {
2055
+ delay;
2056
+ task;
2057
+ id;
2058
+ constructor(delay, task) {
2059
+ super();
2060
+ this.delay = delay;
2061
+ this.task = task;
2062
+ this.id = requestIdleCallback(task, { timeout: delay });
2063
+ }
2064
+ destructor() {
2065
+ cancelIdleCallback(this.id);
2066
+ }
2053
2067
  }
2054
2068
  $.$mol_after_work = $mol_after_work;
2069
+ if (typeof requestIdleCallback !== 'function') {
2070
+ $.$mol_after_work = $mol_after_timeout;
2071
+ }
2055
2072
  })($ || ($ = {}));
2056
- //mol/after/work/work.node.ts
2073
+ //mol/after/work/work.ts
2057
2074
  ;
2058
2075
  "use strict";
2059
2076
  var $;