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/web.js CHANGED
@@ -595,24 +595,21 @@ var $;
595
595
  "use strict";
596
596
  var $;
597
597
  (function ($) {
598
- class $mol_after_tick extends $mol_object2 {
598
+ class $mol_after_timeout extends $mol_object2 {
599
+ delay;
599
600
  task;
600
- promise;
601
- cancelled = false;
602
- constructor(task) {
601
+ id;
602
+ constructor(delay, task) {
603
603
  super();
604
+ this.delay = delay;
604
605
  this.task = task;
605
- this.promise = Promise.resolve().then(() => {
606
- if (this.cancelled)
607
- return;
608
- task();
609
- });
606
+ this.id = setTimeout(task, delay);
610
607
  }
611
608
  destructor() {
612
- this.cancelled = true;
609
+ clearTimeout(this.id);
613
610
  }
614
611
  }
615
- $.$mol_after_tick = $mol_after_tick;
612
+ $.$mol_after_timeout = $mol_after_timeout;
616
613
  })($ || ($ = {}));
617
614
 
618
615
  ;
@@ -640,7 +637,7 @@ var $;
640
637
  static plan() {
641
638
  if (this.plan_task)
642
639
  return;
643
- this.plan_task = new $mol_after_tick(() => {
640
+ this.plan_task = new $mol_after_timeout(0, () => {
644
641
  try {
645
642
  this.sync();
646
643
  }
@@ -1527,6 +1524,30 @@ var $;
1527
1524
  $.$mol_dom_context = self;
1528
1525
  })($ || ($ = {}));
1529
1526
 
1527
+ ;
1528
+ "use strict";
1529
+ var $;
1530
+ (function ($) {
1531
+ class $mol_after_tick extends $mol_object2 {
1532
+ task;
1533
+ promise;
1534
+ cancelled = false;
1535
+ constructor(task) {
1536
+ super();
1537
+ this.task = task;
1538
+ this.promise = Promise.resolve().then(() => {
1539
+ if (this.cancelled)
1540
+ return;
1541
+ task();
1542
+ });
1543
+ }
1544
+ destructor() {
1545
+ this.cancelled = true;
1546
+ }
1547
+ }
1548
+ $.$mol_after_tick = $mol_after_tick;
1549
+ })($ || ($ = {}));
1550
+
1530
1551
  ;
1531
1552
  "use strict";
1532
1553
  var $;
@@ -2594,27 +2615,6 @@ var $;
2594
2615
  };
2595
2616
 
2596
2617
 
2597
- ;
2598
- "use strict";
2599
- var $;
2600
- (function ($) {
2601
- class $mol_after_timeout extends $mol_object2 {
2602
- delay;
2603
- task;
2604
- id;
2605
- constructor(delay, task) {
2606
- super();
2607
- this.delay = delay;
2608
- this.task = task;
2609
- this.id = setTimeout(task, delay);
2610
- }
2611
- destructor() {
2612
- clearTimeout(this.id);
2613
- }
2614
- }
2615
- $.$mol_after_timeout = $mol_after_timeout;
2616
- })($ || ($ = {}));
2617
-
2618
2618
  ;
2619
2619
  "use strict";
2620
2620
  var $;