@kong-ui-public/analytics-chart 4.1.0 → 4.1.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/vitals-chart.es.js +20 -19
- package/dist/vitals-chart.umd.js +4 -4
- package/package.json +6 -6
package/dist/vitals-chart.es.js
CHANGED
|
@@ -628,7 +628,7 @@ class lr {
|
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
630
|
/*!
|
|
631
|
-
* Chart.js v4.4.
|
|
631
|
+
* Chart.js v4.4.3
|
|
632
632
|
* https://www.chartjs.org
|
|
633
633
|
* (c) 2024 Chart.js Contributors
|
|
634
634
|
* Released under the MIT License
|
|
@@ -1352,7 +1352,7 @@ function Vn(n, t, e) {
|
|
|
1352
1352
|
return Math.round((t - r) * i) / i + r;
|
|
1353
1353
|
}
|
|
1354
1354
|
function tc(n, t) {
|
|
1355
|
-
t = t || n.getContext("2d"), t.save(), t.resetTransform(), t.clearRect(0, 0, n.width, n.height), t.restore();
|
|
1355
|
+
!t && !n || (t = t || n.getContext("2d"), t.save(), t.resetTransform(), t.clearRect(0, 0, n.width, n.height), t.restore());
|
|
1356
1356
|
}
|
|
1357
1357
|
function Ls(n, t, e, i) {
|
|
1358
1358
|
Hf(n, t, e, i, null);
|
|
@@ -1668,7 +1668,7 @@ function $f(n, t = {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
const C0 = (n, t) => n ? n + Nl(t) : t, Bl = (n, t) => lt(t) && n !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
|
|
1670
1670
|
function jf(n, t, e) {
|
|
1671
|
-
if (Object.prototype.hasOwnProperty.call(n, t))
|
|
1671
|
+
if (Object.prototype.hasOwnProperty.call(n, t) || t === "constructor")
|
|
1672
1672
|
return n[t];
|
|
1673
1673
|
const i = e();
|
|
1674
1674
|
return n[t] = i, i;
|
|
@@ -1904,7 +1904,7 @@ function Sn(n, t) {
|
|
|
1904
1904
|
function V0(n, t, e) {
|
|
1905
1905
|
let i, r;
|
|
1906
1906
|
if (t === void 0 || e === void 0) {
|
|
1907
|
-
const a = ql(n);
|
|
1907
|
+
const a = n && ql(n);
|
|
1908
1908
|
if (!a)
|
|
1909
1909
|
t = n.clientWidth, e = n.clientHeight;
|
|
1910
1910
|
else {
|
|
@@ -2198,7 +2198,7 @@ function av(n, t) {
|
|
|
2198
2198
|
return JSON.stringify(n, i) !== JSON.stringify(t, i);
|
|
2199
2199
|
}
|
|
2200
2200
|
/*!
|
|
2201
|
-
* Chart.js v4.4.
|
|
2201
|
+
* Chart.js v4.4.3
|
|
2202
2202
|
* https://www.chartjs.org
|
|
2203
2203
|
* (c) 2024 Chart.js Contributors
|
|
2204
2204
|
* Released under the MIT License
|
|
@@ -2499,15 +2499,15 @@ function cc(n, t, e, i = {}) {
|
|
|
2499
2499
|
return t;
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
|
-
function hv(n) {
|
|
2503
|
-
const t = Object.keys(n),
|
|
2504
|
-
let
|
|
2505
|
-
for (
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2502
|
+
function hv(n, t) {
|
|
2503
|
+
const { iScale: e, vScale: i } = t, r = e.axis === "x" ? "x" : "y", a = i.axis === "x" ? "x" : "y", s = Object.keys(n), o = new Array(s.length);
|
|
2504
|
+
let l, u, c;
|
|
2505
|
+
for (l = 0, u = s.length; l < u; ++l)
|
|
2506
|
+
c = s[l], o[l] = {
|
|
2507
|
+
[r]: c,
|
|
2508
|
+
[a]: n[c]
|
|
2509
2509
|
};
|
|
2510
|
-
return
|
|
2510
|
+
return o;
|
|
2511
2511
|
}
|
|
2512
2512
|
function dc(n, t) {
|
|
2513
2513
|
const e = n && n.options.stacked;
|
|
@@ -2624,9 +2624,10 @@ class Ve {
|
|
|
2624
2624
|
}
|
|
2625
2625
|
_dataCheck() {
|
|
2626
2626
|
const t = this.getDataset(), e = t.data || (t.data = []), i = this._data;
|
|
2627
|
-
if (lt(e))
|
|
2628
|
-
|
|
2629
|
-
|
|
2627
|
+
if (lt(e)) {
|
|
2628
|
+
const r = this._cachedMeta;
|
|
2629
|
+
this._data = hv(e, r);
|
|
2630
|
+
} else if (i !== e) {
|
|
2630
2631
|
if (i) {
|
|
2631
2632
|
Gu(i, this);
|
|
2632
2633
|
const r = this._cachedMeta;
|
|
@@ -3189,7 +3190,7 @@ class nr extends Ve {
|
|
|
3189
3190
|
const t = this._cachedMeta, e = t.vScale, i = t.data, r = i.length;
|
|
3190
3191
|
let a = 0;
|
|
3191
3192
|
for (; a < r; ++a)
|
|
3192
|
-
this.getParsed(a)[e.axis] !== null && i[a].draw(this._ctx);
|
|
3193
|
+
this.getParsed(a)[e.axis] !== null && !i[a].hidden && i[a].draw(this._ctx);
|
|
3193
3194
|
}
|
|
3194
3195
|
}
|
|
3195
3196
|
H(nr, "id", "bar"), H(nr, "defaults", {
|
|
@@ -4469,7 +4470,7 @@ class ey extends sh {
|
|
|
4469
4470
|
return X0(t, e, i, r);
|
|
4470
4471
|
}
|
|
4471
4472
|
isAttached(t) {
|
|
4472
|
-
const e = ql(t);
|
|
4473
|
+
const e = t && ql(t);
|
|
4473
4474
|
return !!(e && e.isConnected);
|
|
4474
4475
|
}
|
|
4475
4476
|
}
|
|
@@ -5711,7 +5712,7 @@ function Ry(n, t) {
|
|
|
5711
5712
|
}
|
|
5712
5713
|
return !1;
|
|
5713
5714
|
}
|
|
5714
|
-
var Ly = "4.4.
|
|
5715
|
+
var Ly = "4.4.3";
|
|
5715
5716
|
const Iy = [
|
|
5716
5717
|
"top",
|
|
5717
5718
|
"bottom",
|