mol_plot_all 1.2.1051 → 1.2.1053

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 $;
@@ -4224,8 +4224,12 @@ var $;
4224
4224
  }
4225
4225
  next.x.max = this.repos_x(next.x.max);
4226
4226
  next.x.min = this.repos_x(next.x.min);
4227
+ if (next.x.max < next.x.min)
4228
+ next.x = next.x.inversed;
4227
4229
  next.y.max = this.repos_y(next.y.max);
4228
4230
  next.y.min = this.repos_y(next.y.min);
4231
+ if (next.y.max < next.y.min)
4232
+ next.y = next.y.inversed;
4229
4233
  return next;
4230
4234
  }
4231
4235
  color() {