evui 3.6.5 → 3.6.6

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
@@ -12629,6 +12629,7 @@ const Mt = /* @__PURE__ */ TS(ES), DS = {
12629
12629
  [p, i],
12630
12630
  r == null ? void 0 : r.useApproximateValue,
12631
12631
  w,
12632
+ !0,
12632
12633
  !0
12633
12634
  ), g = m.dataIndex ?? -1;
12634
12635
  }
@@ -17829,48 +17830,51 @@ const eC = {
17829
17830
  * @returns {number} closest data index
17830
17831
  */
17831
17832
  findClosestDataIndex(e, t, n = !1) {
17832
- var h;
17833
- const [i, s] = e, o = !!this.options.horizontal, l = o ? s : i, a = t.find((g) => {
17834
- var f;
17835
- const m = this.seriesList[g];
17836
- return (m == null ? void 0 : m.show) && ((f = m == null ? void 0 : m.data) == null ? void 0 : f.length) > 0;
17833
+ var m;
17834
+ const [i, s] = e, o = !!this.options.horizontal, l = o ? s : i, a = t.find((f) => {
17835
+ var v;
17836
+ const y = this.seriesList[f];
17837
+ return (y == null ? void 0 : y.show) && ((v = y == null ? void 0 : y.data) == null ? void 0 : v.length) > 0;
17837
17838
  });
17838
- if (!a || !((h = this.seriesList[a]) != null && h.data))
17839
+ if (!a || !((m = this.seriesList[a]) != null && m.data))
17839
17840
  return -1;
17840
17841
  const r = this.seriesList[a].data;
17841
17842
  let c = 50;
17842
17843
  if (r.length > 1) {
17843
- const g = [];
17844
- for (let m = 1; m < r.length; m++) {
17845
- const f = r[m - 1], y = r[m];
17846
- if (f && y) {
17847
- let v, p;
17848
- o ? (v = f.h ? f.yp + f.h / 2 : f.yp, p = y.h ? y.yp + y.h / 2 : y.yp) : (v = f.w ? f.xp + f.w / 2 : f.xp, p = y.w ? y.xp + y.w / 2 : y.xp), v !== null && p !== null && g.push(Math.abs(p - v));
17844
+ const f = [];
17845
+ for (let y = 1; y < r.length; y++) {
17846
+ const v = r[y - 1], p = r[y];
17847
+ if (v && p) {
17848
+ let w, I;
17849
+ o ? (w = v.h ? v.yp + v.h / 2 : v.yp, I = p.h ? p.yp + p.h / 2 : p.yp) : (w = v.w ? v.xp + v.w / 2 : v.xp, I = p.w ? p.xp + p.w / 2 : p.xp), w !== null && I !== null && f.push(Math.abs(I - w));
17849
17850
  }
17850
17851
  }
17851
- g.length > 0 && (c = g.reduce((m, f) => m + f, 0) / g.length);
17852
+ f.length > 0 && (c = f.reduce((y, v) => y + v, 0) / f.length);
17852
17853
  }
17853
17854
  let d = 1 / 0, u = -1;
17854
- for (let g = 0; g < r.length; g++)
17855
- if (n || t.some((f) => {
17856
- var v, p, w, I;
17857
- const y = this.seriesList[f];
17858
- return (y == null ? void 0 : y.show) && ((p = (v = y.data) == null ? void 0 : v[g]) == null ? void 0 : p.o) !== null && ((I = (w = y.data) == null ? void 0 : w[g]) == null ? void 0 : I.o) !== void 0;
17855
+ for (let f = 0; f < r.length; f++)
17856
+ if (n || t.some((v) => {
17857
+ var w, I, M, T;
17858
+ const p = this.seriesList[v];
17859
+ return (p == null ? void 0 : p.show) && ((I = (w = p.data) == null ? void 0 : w[f]) == null ? void 0 : I.o) !== null && ((T = (M = p.data) == null ? void 0 : M[f]) == null ? void 0 : T.o) !== void 0;
17859
17860
  })) {
17860
- const f = r[g];
17861
- if (f) {
17862
- let y;
17863
- if (o ? y = f.h ? f.yp + f.h / 2 : f.yp : y = f.w ? f.xp + f.w / 2 : f.xp, y !== null) {
17864
- const v = Math.abs(l - y);
17865
- v < d && (d = v, u = g);
17861
+ const v = r[f];
17862
+ if (v) {
17863
+ let p;
17864
+ if (o ? p = v.h ? v.yp + v.h / 2 : v.yp : p = v.w ? v.xp + v.w / 2 : v.xp, p !== null) {
17865
+ const w = Math.abs(l - p);
17866
+ w < d && (d = w, u = f);
17866
17867
  }
17867
17868
  }
17868
17869
  }
17869
- return d >= c ? t.some((m) => {
17870
- const f = this.seriesList[m];
17871
- if (f != null && f.show) {
17872
- const y = f.passingValue, v = f.interpolation, p = f.hasPassingValueInData;
17873
- return v === "linear" || v === "none" && !!y && p;
17870
+ if (u === -1)
17871
+ return -1;
17872
+ const g = Math.max(c, 6);
17873
+ return d >= g ? t.some((y) => {
17874
+ const v = this.seriesList[y];
17875
+ if (v != null && v.show) {
17876
+ const p = v.passingValue, w = v.interpolation, I = v.hasPassingValueInData;
17877
+ return w === "linear" || w === "none" && !!p && I;
17874
17878
  }
17875
17879
  return !1;
17876
17880
  }) ? u : -1 : u;
@@ -23316,7 +23320,7 @@ const Cs = /* @__PURE__ */ Se(u1, [["render", p1]]);
23316
23320
  Cs.install = (e) => {
23317
23321
  e.component(Cs.name, Cs);
23318
23322
  };
23319
- const y1 = "3.6.4", v1 = [
23323
+ const y1 = "3.6.5", v1 = [
23320
23324
  Zi,
23321
23325
  qi,
23322
23326
  li,