evui 3.12.0 → 3.12.1

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
@@ -19514,14 +19514,17 @@ const W1 = {
19514
19514
  n.restore();
19515
19515
  },
19516
19516
  setCustomTooltipLayoutPosition(e, t) {
19517
- var C, L;
19518
- const n = t.pageX, i = t.pageY, s = (C = this.tooltipDOM.getElementsByClassName("ev-chart-tooltip-custom")) == null ? void 0 : C[0];
19519
- if (!s && !this.tooltipDOM)
19517
+ var C;
19518
+ const n = t.pageX, i = t.pageY;
19519
+ if (!this.tooltipDOM)
19520
+ return;
19521
+ let s = this.tooltipDOM.firstElementChild;
19522
+ if (!s && (e != null && e.items) && Object.keys(e.items).length && (this.drawCustomTooltip(e.items), s = this.tooltipDOM.firstElementChild), !s)
19520
19523
  return;
19521
19524
  this.tooltipDOM.style.display = "block";
19522
19525
  const o = s.offsetWidth, l = s.offsetHeight;
19523
19526
  this.tooltipDOM.style.height = "auto", this.tooltipBodyDOM.style.height = `${l + 6}px`;
19524
- const a = document.body.clientWidth, r = document.body.clientHeight, c = (L = this.tooltipDOM) == null ? void 0 : L.getBoundingClientRect(), d = 20, h = a - o - d, u = r - (c == null ? void 0 : c.height) - d, m = n + d, p = i + d, f = n - o - d, b = i - (c == null ? void 0 : c.height) - d, v = m > h ? f : m, g = p > u ? b : p;
19527
+ const a = document.body.clientWidth, r = document.body.clientHeight, c = (C = this.tooltipDOM) == null ? void 0 : C.getBoundingClientRect(), d = 20, h = a - o - d, u = r - (c == null ? void 0 : c.height) - d, m = n + d, p = i + d, f = n - o - d, b = i - (c == null ? void 0 : c.height) - d, v = m > h ? f : m, g = p > u ? b : p;
19525
19528
  this.tooltipDOM.style.transform = `translate3d(${v}px, ${g}px, 0)`;
19526
19529
  },
19527
19530
  /**
@@ -25999,7 +26002,7 @@ const Ms = /* @__PURE__ */ ke(fw, [["render", yw]]);
25999
26002
  Ms.install = (e) => {
26000
26003
  e.component(Ms.name, Ms);
26001
26004
  };
26002
- const xw = "3.11.0", vw = [
26005
+ const xw = "3.12.0", vw = [
26003
26006
  ns,
26004
26007
  is,
26005
26008
  mi,