evui 3.6.1 → 3.6.2

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/dist/index.js CHANGED
@@ -12679,7 +12679,7 @@ const Mt = /* @__PURE__ */ IS(kS), TS = document.createElement("canvas"), Yi = T
12679
12679
  (i, s) => {
12680
12680
  const o = i, l = this.seriesList[s], a = l.minMax, r = l.xAxisIndex, c = l.yAxisIndex;
12681
12681
  if (o.x[r] || (o.x[r] = { min: null, max: null, maxSID: null }), o.y[c] || (o.y[c] = { min: null, max: null, maxSID: null }), a && l.show) {
12682
- t ? ((o.x[r].min === null || a.minX < o.x[r].min) && (o.x[r].min = a.minX), a.minY !== null && (o.y[c].min === null || a.minY < o.y[c].min) && (o.y[c].min = a.minY)) : (a.minX !== null && (o.x[r].min === null || a.minX < o.x[r].min) && (o.x[r].min = a.minX), (o.y[c].min === null || a.minY < o.y[c].min) && (o.y[c].min = a.minY));
12682
+ t ? ((o.x[r].min === null || a.minX !== null && a.minX < o.x[r].min) && (o.x[r].min = a.minX), a.minY !== null && (o.y[c].min === null || a.minY !== null && a.minY < o.y[c].min) && (o.y[c].min = a.minY)) : (a.minX !== null && (o.x[r].min === null || a.minX !== null && a.minX < o.x[r].min) && (o.x[r].min = a.minX), (o.y[c].min === null || a.minY !== null && a.minY < o.y[c].min) && (o.y[c].min = a.minY));
12683
12683
  const d = this.seriesList[s].isExistGrp, u = o.x[r].max < 0;
12684
12684
  (d && u || !o.x[r].max || a.maxX >= o.x[r].max) && (o.x[r].max = a.maxX, o.x[r].maxSID = s);
12685
12685
  const h = o.y[c].max < 0;
@@ -15115,12 +15115,9 @@ class HS extends Ci {
15115
15115
  getInterval(t) {
15116
15116
  const n = this.normalizeTimeValue(t.maxValue), i = this.normalizeTimeValue(t.minValue), s = t.maxSteps;
15117
15117
  if (this.interval) {
15118
- if (typeof this.interval == "string")
15119
- return As[this.interval].size;
15120
- if (typeof this.interval == "object")
15121
- return this.interval.time * As[this.interval.unit].size;
15122
- if (typeof this.interval == "number")
15123
- return this.interval;
15118
+ let o;
15119
+ if (typeof this.interval == "string" ? o = As[this.interval].size : typeof this.interval == "object" ? o = this.interval.time * As[this.interval.unit].size : typeof this.interval == "number" && (o = this.interval), o > 0 && Number.isFinite(o))
15120
+ return o;
15124
15121
  }
15125
15122
  return Math.ceil((n - i) / s);
15126
15123
  }
@@ -15147,14 +15144,14 @@ class HS extends Ci {
15147
15144
  const l = Array.isArray(this.range) && this.range.length === 2, r = typeof this.interval == "number" || typeof this.interval == "object" && this.interval !== null ? this.getInterval(o) : null, c = r != null && r > 0 && Number.isFinite(r), d = 1e-10, u = +n;
15148
15145
  let h = +i;
15149
15146
  if (l && c) {
15150
- const v = r, w = (h - u) / v;
15151
- if (Math.abs(w - Math.round(w)) < d && w <= s || this.fixedSteps)
15152
- return {
15153
- steps: Math.round(w),
15154
- interval: v,
15155
- graphMin: u,
15156
- graphMax: h
15157
- };
15147
+ const v = h - u, p = v / r, w = Math.abs(p - Math.round(p)) < d;
15148
+ if (this.fixedSteps || w) {
15149
+ let I = r, M = Math.round(p);
15150
+ if (!this.fixedSteps)
15151
+ for (; M > s; )
15152
+ I += r, M = Math.ceil(v / I);
15153
+ return { steps: M, interval: I, graphMin: u, graphMax: h };
15154
+ }
15158
15155
  }
15159
15156
  if (!l && c) {
15160
15157
  const v = h - u;
@@ -23279,7 +23276,7 @@ const Cs = /* @__PURE__ */ Se(d1, [["render", m1]]);
23279
23276
  Cs.install = (e) => {
23280
23277
  e.component(Cs.name, Cs);
23281
23278
  };
23282
- const p1 = "3.6.0", y1 = [
23279
+ const p1 = "3.6.1", y1 = [
23283
23280
  Zi,
23284
23281
  qi,
23285
23282
  li,