mol_plot_all 1.2.1050 → 1.2.1052

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
@@ -610,24 +610,21 @@ var $;
610
610
  "use strict";
611
611
  var $;
612
612
  (function ($) {
613
- class $mol_after_tick extends $mol_object2 {
613
+ class $mol_after_timeout extends $mol_object2 {
614
+ delay;
614
615
  task;
615
- promise;
616
- cancelled = false;
617
- constructor(task) {
616
+ id;
617
+ constructor(delay, task) {
618
618
  super();
619
+ this.delay = delay;
619
620
  this.task = task;
620
- this.promise = Promise.resolve().then(() => {
621
- if (this.cancelled)
622
- return;
623
- task();
624
- });
621
+ this.id = setTimeout(task, delay);
625
622
  }
626
623
  destructor() {
627
- this.cancelled = true;
624
+ clearTimeout(this.id);
628
625
  }
629
626
  }
630
- $.$mol_after_tick = $mol_after_tick;
627
+ $.$mol_after_timeout = $mol_after_timeout;
631
628
  })($ || ($ = {}));
632
629
 
633
630
  ;
@@ -655,7 +652,7 @@ var $;
655
652
  static plan() {
656
653
  if (this.plan_task)
657
654
  return;
658
- this.plan_task = new $mol_after_tick(() => {
655
+ this.plan_task = new $mol_after_timeout(0, () => {
659
656
  try {
660
657
  this.sync();
661
658
  }
@@ -929,27 +926,6 @@ var $;
929
926
  $.$mol_key = $mol_key;
930
927
  })($ || ($ = {}));
931
928
 
932
- ;
933
- "use strict";
934
- var $;
935
- (function ($) {
936
- class $mol_after_timeout extends $mol_object2 {
937
- delay;
938
- task;
939
- id;
940
- constructor(delay, task) {
941
- super();
942
- this.delay = delay;
943
- this.task = task;
944
- this.id = setTimeout(task, delay);
945
- }
946
- destructor() {
947
- clearTimeout(this.id);
948
- }
949
- }
950
- $.$mol_after_timeout = $mol_after_timeout;
951
- })($ || ($ = {}));
952
-
953
929
  ;
954
930
  "use strict";
955
931
  var $;
@@ -2077,6 +2053,30 @@ var $;
2077
2053
  $.$mol_dom_context = new $node.jsdom.JSDOM('', { url: 'https://localhost/' }).window;
2078
2054
  })($ || ($ = {}));
2079
2055
 
2056
+ ;
2057
+ "use strict";
2058
+ var $;
2059
+ (function ($) {
2060
+ class $mol_after_tick extends $mol_object2 {
2061
+ task;
2062
+ promise;
2063
+ cancelled = false;
2064
+ constructor(task) {
2065
+ super();
2066
+ this.task = task;
2067
+ this.promise = Promise.resolve().then(() => {
2068
+ if (this.cancelled)
2069
+ return;
2070
+ task();
2071
+ });
2072
+ }
2073
+ destructor() {
2074
+ this.cancelled = true;
2075
+ }
2076
+ }
2077
+ $.$mol_after_tick = $mol_after_tick;
2078
+ })($ || ($ = {}));
2079
+
2080
2080
  ;
2081
2081
  "use strict";
2082
2082
  var $;