mol_plot_all 1.2.1054 → 1.2.1056

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.mjs CHANGED
@@ -4214,22 +4214,14 @@ var $;
4214
4214
  const series_y = this.series_y();
4215
4215
  for (let i = 0; i < series_x.length; i++) {
4216
4216
  if (series_x[i] > next.x.max)
4217
- next.x.max = series_x[i];
4217
+ next.x.max = this.repos_x(series_x[i]);
4218
4218
  if (series_x[i] < next.x.min)
4219
- next.x.min = series_x[i];
4219
+ next.x.min = this.repos_x(series_x[i]);
4220
4220
  if (series_y[i] > next.y.max)
4221
- next.y.max = series_y[i];
4221
+ next.y.max = this.repos_y(series_y[i]);
4222
4222
  if (series_y[i] < next.y.min)
4223
- next.y.min = series_y[i];
4223
+ next.y.min = this.repos_y(series_y[i]);
4224
4224
  }
4225
- next.x.max = this.repos_x(next.x.max);
4226
- next.x.min = this.repos_x(next.x.min);
4227
- if (next.x.max < next.x.min)
4228
- next.x = next.x.inversed;
4229
- next.y.max = this.repos_y(next.y.max);
4230
- next.y.min = this.repos_y(next.y.min);
4231
- if (next.y.max < next.y.min)
4232
- next.y = next.y.inversed;
4233
4225
  return next;
4234
4226
  }
4235
4227
  color() {
package/node.test.js CHANGED
@@ -4205,22 +4205,14 @@ var $;
4205
4205
  const series_y = this.series_y();
4206
4206
  for (let i = 0; i < series_x.length; i++) {
4207
4207
  if (series_x[i] > next.x.max)
4208
- next.x.max = series_x[i];
4208
+ next.x.max = this.repos_x(series_x[i]);
4209
4209
  if (series_x[i] < next.x.min)
4210
- next.x.min = series_x[i];
4210
+ next.x.min = this.repos_x(series_x[i]);
4211
4211
  if (series_y[i] > next.y.max)
4212
- next.y.max = series_y[i];
4212
+ next.y.max = this.repos_y(series_y[i]);
4213
4213
  if (series_y[i] < next.y.min)
4214
- next.y.min = series_y[i];
4215
- }
4216
- next.x.max = this.repos_x(next.x.max);
4217
- next.x.min = this.repos_x(next.x.min);
4218
- if (next.x.max < next.x.min)
4219
- next.x = next.x.inversed;
4220
- next.y.max = this.repos_y(next.y.max);
4221
- next.y.min = this.repos_y(next.y.min);
4222
- if (next.y.max < next.y.min)
4223
- next.y = next.y.inversed;
4214
+ next.y.min = this.repos_y(series_y[i]);
4215
+ }
4224
4216
  return next;
4225
4217
  }
4226
4218
  color() {