vue-data-ui 3.2.8 → 3.3.0
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/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
- package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-C9oklnuy.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
- package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
- package/dist/useSvgExport-B7-Vrjtu.js +732 -0
- package/dist/vue-data-ui-DLU1snC3.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-Dch9YrCi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-DwRwhrgB.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-C81k1_f9.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DBIhnEj-.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-CSM-_IWw.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-BFW9nnNh.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
- package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-BdFLsK4u.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-DXum1rs6.js} +2 -2
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-DFIbK50s.js} +406 -384
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-B8UHwj15.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-DFxlqPz7.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-CcAe5dDN.js} +393 -372
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-CgKvd7Jx.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Ct2iyD49.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-ByjcvXBB.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-CGKgOTX2.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-BGDCaOXv.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-CjXSB-2S.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-Bo9gSy-z.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-Qo8FKbL2.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-CKfOnyd_.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-CY7UiJ9C.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-DwNYP97M.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-BkdcYrmg.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-C6Kq_OGV.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-CjB33yXB.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DcH4yIEd.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-MKr2u_pO.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-DKV-exfd.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-BdT3lGuv.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-D929cWB0.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-CkZ_ygR1.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-Bs7eMmiC.js} +5 -5
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KrGLMCqW.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-BQSu6kiR.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-B2fjTYMJ.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-oUXISeU8.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-data-ui-BcRg499t.js +0 -325
- package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
- package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
- package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
|
@@ -7,7 +7,7 @@ const lt = "#COMP# dataset prop is either missing, undefined or empty.", ft = "#
|
|
|
7
7
|
notBuildable: Et,
|
|
8
8
|
attributeWrongValue: gt
|
|
9
9
|
};
|
|
10
|
-
function
|
|
10
|
+
function Pt(t, n, e, s, r, o = 1.99999, c = 2, i = 1.45, u = 360, l = 105.25, a = 0) {
|
|
11
11
|
const { series: f } = t;
|
|
12
12
|
if (!f || f.length === 0)
|
|
13
13
|
return [];
|
|
@@ -581,7 +581,7 @@ function jt(t) {
|
|
|
581
581
|
}
|
|
582
582
|
return "#000000";
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function W(t) {
|
|
585
585
|
return t !== null && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && (t.constructor === Object || t.constructor == null);
|
|
586
586
|
}
|
|
587
587
|
function Q(t) {
|
|
@@ -592,7 +592,7 @@ function st(t) {
|
|
|
592
592
|
}
|
|
593
593
|
function q(t, n = /* @__PURE__ */ new WeakSet()) {
|
|
594
594
|
const e = ut(t);
|
|
595
|
-
if (!
|
|
595
|
+
if (!W(e) || n.has(e)) return e;
|
|
596
596
|
n.add(e);
|
|
597
597
|
for (const s in e) {
|
|
598
598
|
const r = tt(e[s]) ? J(e[s]) : e[s];
|
|
@@ -601,19 +601,19 @@ function q(t, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
601
601
|
continue;
|
|
602
602
|
}
|
|
603
603
|
if (s === "stroke") {
|
|
604
|
-
typeof r == "string" ? e[s] = st(r) :
|
|
604
|
+
typeof r == "string" ? e[s] = st(r) : W(r) && !Q(r) && q(r, n);
|
|
605
605
|
continue;
|
|
606
606
|
}
|
|
607
607
|
if (Array.isArray(r)) {
|
|
608
608
|
for (const o of r)
|
|
609
|
-
|
|
609
|
+
W(o) && !Q(o) && q(o, n);
|
|
610
610
|
continue;
|
|
611
611
|
}
|
|
612
|
-
|
|
612
|
+
W(r) && !Q(r) && q(r, n);
|
|
613
613
|
}
|
|
614
614
|
return e;
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function Wt(t) {
|
|
617
617
|
const n = t?.length ?? 0;
|
|
618
618
|
if (n < 2) return { x1: 0, y1: 0, x2: 0, y2: 0, slope: 0, trend: 0 };
|
|
619
619
|
let e = 0, s = 0, r = 0, o = 0;
|
|
@@ -626,7 +626,7 @@ function Kt(t) {
|
|
|
626
626
|
const D = n * A - F * F || 1, M = (n * d - F * E) / D, $ = (E - M * F) / n, I = $, O = M * (n - 1) + $, y = Math.max(Math.abs(I), Math.abs(E / n), Math.abs(O), 1e-9), b = (O - I) / y;
|
|
627
627
|
return { x1: l, y1: f, x2: a, y2: h, slope: i, trend: b };
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Kt(t) {
|
|
630
630
|
const n = Math.floor(t.length / 2), e = [...t].sort((s, r) => s - r);
|
|
631
631
|
return t.length % 2 !== 0 ? e[n] : (e[n - 1] + e[n]) / 2;
|
|
632
632
|
}
|
|
@@ -636,7 +636,7 @@ function Vt(t) {
|
|
|
636
636
|
n.push(`${p(t[e].x)},${p(t[e].y)} `);
|
|
637
637
|
return n.join(" ").trim();
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function zt(t) {
|
|
640
640
|
if (t.length < 2) return "0,0";
|
|
641
641
|
const n = t.length - 1, e = [`${p(t[0].x)},${p(t[0].y)}`], s = [], r = [], o = [], c = [];
|
|
642
642
|
for (let i = 0; i < n; i += 1)
|
|
@@ -655,7 +655,7 @@ function _t(t) {
|
|
|
655
655
|
}
|
|
656
656
|
return e.join(" ");
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function _t(t, n = 0.2) {
|
|
659
659
|
function e(c, i) {
|
|
660
660
|
const u = i.x - c.x, l = i.y - c.y;
|
|
661
661
|
return {
|
|
@@ -682,7 +682,7 @@ function Zt() {
|
|
|
682
682
|
return (t == "x" ? n : n & 3 | 8).toString(16);
|
|
683
683
|
});
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function K(t, n = !1, e = 16, s = !1) {
|
|
686
686
|
let r = 0, o = n ? e : 0, c = s ? "center" : "middle";
|
|
687
687
|
return t.center.endX > t.cx ? (r = t.center.endX + e + o, c = s ? "left" : "start") : t.center.endX < t.cx ? (r = t.center.endX - e - o, c = s ? "right" : "end") : (r = t.centerX + o, c = s ? "center" : "middle"), { x: r, anchor: c };
|
|
688
688
|
}
|
|
@@ -719,9 +719,9 @@ function $t(t) {
|
|
|
719
719
|
return { x: i, y: u };
|
|
720
720
|
}
|
|
721
721
|
function qt(t, n = !1, e = 16, s = 16, r = !1, o = !1, c = 0, i = 12, u = !1) {
|
|
722
|
-
const { x: l } = $t(t.path), a = `${
|
|
722
|
+
const { x: l } = $t(t.path), a = `${K(t).x},${V(t, e, s) - 4} `;
|
|
723
723
|
let f = "", h, F;
|
|
724
|
-
l > t.cx ? (h =
|
|
724
|
+
l > t.cx ? (h = K(t).x - i, F = V(t, e, s) - 4, f = `${h},${F}`) : l < t.cx ? (h = K(t).x + i, F = V(t, e, s) - 4, f = `${h},${F}`) : (h = K(t).x + i, F = V(t, e, s) - 4, f = `${h},${F}`);
|
|
725
725
|
const E = ` ${t.center.endX},${t.center.endY}`;
|
|
726
726
|
return u ? o ? `M${f} Q${f} ${E}` : `M${a} Q${f} ${E}` : `M${o ? "" : a}${f}${E}`;
|
|
727
727
|
}
|
|
@@ -771,13 +771,13 @@ function on(t, n) {
|
|
|
771
771
|
}
|
|
772
772
|
return l;
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function _(t, n) {
|
|
775
775
|
const e = Math.floor(Math.log10(t)), s = t / Math.pow(10, e);
|
|
776
776
|
let r;
|
|
777
777
|
return n ? s < 1.5 ? r = 1 : s < 3 ? r = 2 : s < 7 ? r = 5 : r = 10 : s <= 1 ? r = 1 : s <= 2 ? r = 2 : s <= 5 ? r = 5 : r = 10, r * Math.pow(10, e);
|
|
778
778
|
}
|
|
779
779
|
function cn(t, n, e, s = !1) {
|
|
780
|
-
const r = s ? n - t :
|
|
780
|
+
const r = s ? n - t : _(n - t, !1), o = s ? r / (e - 1) : _(r / (e - 1), !0), c = Math.floor(t / o) * o, i = Math.ceil(n / o) * o, u = [];
|
|
781
781
|
for (let l = c; l <= i; l += o)
|
|
782
782
|
u.push(l);
|
|
783
783
|
return {
|
|
@@ -788,7 +788,7 @@ function cn(t, n, e, s = !1) {
|
|
|
788
788
|
};
|
|
789
789
|
}
|
|
790
790
|
function an(t, n, e, s = !1) {
|
|
791
|
-
const r = s ? n - t :
|
|
791
|
+
const r = s ? n - t : _(n - t, !1), o = s ? r / (e - 1) : _(r / (e - 1), !0), c = Math.floor(t / o) * o, i = Math.ceil(n / o) * o;
|
|
792
792
|
let u = [], l = c;
|
|
793
793
|
for (; l <= i; )
|
|
794
794
|
l >= t && l <= n && u.push(l), l += o;
|
|
@@ -866,13 +866,13 @@ function Dt({ points: t, a: n, b: e, angleStep: s, startX: r, startY: o }) {
|
|
|
866
866
|
}
|
|
867
867
|
return c;
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function Rt(t) {
|
|
870
870
|
let n = 1 / 0, e = 1 / 0, s = -1 / 0, r = -1 / 0;
|
|
871
871
|
for (const o of t)
|
|
872
872
|
o.x < n && (n = o.x), o.y < e && (e = o.y), o.x > s && (s = o.x), o.y > r && (r = o.y);
|
|
873
873
|
return { minX: n, minY: e, maxX: s, maxY: r, width: s - n || 1, height: r - e || 1 };
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function St(t) {
|
|
876
876
|
if (!t.length) return "";
|
|
877
877
|
let n = `M${t[0].x} ${t[0].y}`;
|
|
878
878
|
for (let e = 1; e < t.length - 2; e += 2) {
|
|
@@ -892,10 +892,10 @@ function dn({
|
|
|
892
892
|
boxHeight: i,
|
|
893
893
|
padding: u = 12
|
|
894
894
|
}) {
|
|
895
|
-
const l = Dt({ points: t, a: n, b: e, angleStep: s, startX: 0, startY: 0 }), { minX: a, minY: f, maxX: h, maxY: F, width: E, height: d } =
|
|
895
|
+
const l = Dt({ points: t, a: n, b: e, angleStep: s, startX: 0, startY: 0 }), { minX: a, minY: f, maxX: h, maxY: F, width: E, height: d } = Rt(l), A = (a + h) / 2, D = (f + F) / 2, M = Math.max(1, c - 2 * u), $ = Math.max(1, i - 2 * u), I = Math.min(M / E, $ / d), O = r - A * I, N = o - D * I;
|
|
896
896
|
return function(b) {
|
|
897
897
|
const m = Math.max(2, Math.min(Math.round(b), l.length)), C = l.slice(0, m).map((g) => ({ x: g.x * I + O, y: g.y * I + N }));
|
|
898
|
-
return
|
|
898
|
+
return St(C);
|
|
899
899
|
};
|
|
900
900
|
}
|
|
901
901
|
function pn({ datasetObject: t, requiredAttributes: n }) {
|
|
@@ -1174,7 +1174,7 @@ function Dn(t) {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
}), u;
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function Rn({
|
|
1178
1178
|
relator: t,
|
|
1179
1179
|
adjuster: n,
|
|
1180
1180
|
source: e,
|
|
@@ -1185,7 +1185,7 @@ function Sn({
|
|
|
1185
1185
|
const c = t / (n / e);
|
|
1186
1186
|
return c > o ? o : c < s ? r : c;
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function Sn(t) {
|
|
1189
1189
|
return t.reduce((n, e) => (e.series.forEach((s, r) => {
|
|
1190
1190
|
![void 0, null, 1 / 0, -1 / 0].includes(s) && !isNaN(s) && (n[r] = (n[r] || 0) + s);
|
|
1191
1191
|
}), n), []);
|
|
@@ -1300,7 +1300,7 @@ function Tn({ data: t, threshold: n }) {
|
|
|
1300
1300
|
}
|
|
1301
1301
|
return e.push(t[t.length - 1]), e;
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1303
|
+
function wn({ data: t, threshold: n }) {
|
|
1304
1304
|
if (n >= t.length || n < 3)
|
|
1305
1305
|
return t;
|
|
1306
1306
|
const e = [], s = (t.length - 2) / (n - 2);
|
|
@@ -1317,7 +1317,7 @@ function Pn({ data: t, threshold: n }) {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
return e.push(t[t.length - 1]), e;
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function Pn({ data: t, threshold: n, key: e = "value" }) {
|
|
1321
1321
|
if (n >= t.length || n < 3)
|
|
1322
1322
|
return t;
|
|
1323
1323
|
const s = [], r = (t.length - 2) / (n - 2);
|
|
@@ -1361,7 +1361,7 @@ function Hn({ svgElement: t, x: n, y: e, element: s, position: r }) {
|
|
|
1361
1361
|
left: c.x + l
|
|
1362
1362
|
};
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function z(t) {
|
|
1365
1365
|
if (t === null || typeof t != "object")
|
|
1366
1366
|
return t;
|
|
1367
1367
|
if (t instanceof Date)
|
|
@@ -1371,20 +1371,20 @@ function _(t) {
|
|
|
1371
1371
|
if (t instanceof Map) {
|
|
1372
1372
|
const e = /* @__PURE__ */ new Map();
|
|
1373
1373
|
for (const [s, r] of t.entries())
|
|
1374
|
-
e.set(s,
|
|
1374
|
+
e.set(s, z(r));
|
|
1375
1375
|
return e;
|
|
1376
1376
|
}
|
|
1377
1377
|
if (t instanceof Set) {
|
|
1378
1378
|
const e = /* @__PURE__ */ new Set();
|
|
1379
1379
|
for (const s of t.values())
|
|
1380
|
-
e.add(
|
|
1380
|
+
e.add(z(s));
|
|
1381
1381
|
return e;
|
|
1382
1382
|
}
|
|
1383
1383
|
if (Array.isArray(t))
|
|
1384
|
-
return t.map((e) =>
|
|
1384
|
+
return t.map((e) => z(e));
|
|
1385
1385
|
const n = {};
|
|
1386
1386
|
for (const e in t)
|
|
1387
|
-
Object.prototype.hasOwnProperty.call(t, e) && (n[e] =
|
|
1387
|
+
Object.prototype.hasOwnProperty.call(t, e) && (n[e] = z(t[e]));
|
|
1388
1388
|
return n;
|
|
1389
1389
|
}
|
|
1390
1390
|
function Nt(t) {
|
|
@@ -1492,7 +1492,7 @@ function jn(t, n, e = !1, s = !0) {
|
|
|
1492
1492
|
return h += ` L${c[i].x},${n} ${s ? "Z" : ""}`, h;
|
|
1493
1493
|
}).filter(Boolean);
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function Wn(t) {
|
|
1496
1496
|
return t.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\w\-]+/g, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "");
|
|
1497
1497
|
}
|
|
1498
1498
|
function Ot(t) {
|
|
@@ -1509,7 +1509,7 @@ function it(t) {
|
|
|
1509
1509
|
}
|
|
1510
1510
|
return t;
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function Kn(t) {
|
|
1513
1513
|
return 1 - Math.pow(1 - t, 3);
|
|
1514
1514
|
}
|
|
1515
1515
|
function Vn({ values: t, config: n = {} }) {
|
|
@@ -1528,7 +1528,7 @@ function Vn({ values: t, config: n = {} }) {
|
|
|
1528
1528
|
i(l) ? s && e ? u(0) : !s && e && r.push(l) : u(l);
|
|
1529
1529
|
return r;
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function zn({ values: t, config: n = {} }) {
|
|
1532
1532
|
const {
|
|
1533
1533
|
keepInvalid: e = !0,
|
|
1534
1534
|
convertInvalidToZero: s = !1
|
|
@@ -1545,7 +1545,7 @@ function _n({ values: t, config: n = {} }) {
|
|
|
1545
1545
|
c(u) ? s && e ? i(0) : !s && e && r.push(u) : i(u);
|
|
1546
1546
|
return r;
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function _n({
|
|
1549
1549
|
el: t,
|
|
1550
1550
|
bounds: n,
|
|
1551
1551
|
currentFontSize: e,
|
|
@@ -1640,45 +1640,45 @@ function Jn(t) {
|
|
|
1640
1640
|
return B;
|
|
1641
1641
|
}
|
|
1642
1642
|
function F(y, b, m, C, g) {
|
|
1643
|
-
const B = y.x, x = b.x, T = y.y,
|
|
1644
|
-
if (
|
|
1645
|
-
const
|
|
1646
|
-
return H * T +
|
|
1643
|
+
const B = y.x, x = b.x, T = y.y, R = b.y, w = x - B;
|
|
1644
|
+
if (w === 0) return T;
|
|
1645
|
+
const P = (g - B) / w, L = P * P, k = L * P, H = 2 * k - 3 * L + 1, S = k - 2 * L + P, Y = -2 * k + 3 * L, U = k - L;
|
|
1646
|
+
return H * T + S * (m * w) + Y * R + U * (C * w);
|
|
1647
1647
|
}
|
|
1648
1648
|
function E(y, b) {
|
|
1649
1649
|
const m = f(y);
|
|
1650
1650
|
if (!m.length) return [];
|
|
1651
1651
|
let C = 1 / 0, g = -1 / 0;
|
|
1652
|
-
for (const
|
|
1653
|
-
C = Math.min(C,
|
|
1652
|
+
for (const R of m)
|
|
1653
|
+
C = Math.min(C, R[0].x), g = Math.max(g, R[R.length - 1].x);
|
|
1654
1654
|
if (!a(C) || !a(g) || g <= C) return [];
|
|
1655
1655
|
const B = Math.max(1, i), x = [];
|
|
1656
|
-
for (let
|
|
1656
|
+
for (let R = C; R <= g; R += B) x.push(R);
|
|
1657
1657
|
x[x.length - 1] < g && x.push(g);
|
|
1658
1658
|
const T = [];
|
|
1659
|
-
for (const
|
|
1660
|
-
let
|
|
1659
|
+
for (const R of x) {
|
|
1660
|
+
let w = null, P = !1;
|
|
1661
1661
|
for (const L of m) {
|
|
1662
1662
|
const k = L.length - 1;
|
|
1663
|
-
if (!(
|
|
1663
|
+
if (!(R < L[0].x - 1e-9 || R > L[k].x + 1e-9)) {
|
|
1664
1664
|
for (let H = 0; H < k; H += 1) {
|
|
1665
|
-
const
|
|
1666
|
-
if (!(
|
|
1665
|
+
const S = L[H], Y = L[H + 1];
|
|
1666
|
+
if (!(R + 1e-9 < S.x || R - 1e-9 > Y.x)) {
|
|
1667
1667
|
if (b) {
|
|
1668
1668
|
const U = L.__tangents || (L.__tangents = h(L));
|
|
1669
|
-
|
|
1669
|
+
w = F(S, Y, U[H], U[H + 1], R);
|
|
1670
1670
|
} else {
|
|
1671
|
-
const U = (
|
|
1672
|
-
|
|
1671
|
+
const U = (R - S.x) / (Y.x - S.x || 1);
|
|
1672
|
+
w = S.y + U * (Y.y - S.y);
|
|
1673
1673
|
}
|
|
1674
|
-
|
|
1674
|
+
P = !0;
|
|
1675
1675
|
break;
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
if (
|
|
1678
|
+
if (P) break;
|
|
1679
1679
|
}
|
|
1680
1680
|
}
|
|
1681
|
-
|
|
1681
|
+
w == null ? T.push({ x: R, y: null, hole: !0 }) : T.push({ x: R, y: w, hole: !1 });
|
|
1682
1682
|
}
|
|
1683
1683
|
return T;
|
|
1684
1684
|
}
|
|
@@ -1688,12 +1688,12 @@ function Jn(t) {
|
|
|
1688
1688
|
function A(y, b) {
|
|
1689
1689
|
const m = [], C = [], g = Math.min(y.length, b.length);
|
|
1690
1690
|
for (let B = 0; B < g - 1; B += 1) {
|
|
1691
|
-
const x = y[B], T = y[B + 1],
|
|
1692
|
-
if (m.push(x), C.push(
|
|
1691
|
+
const x = y[B], T = y[B + 1], R = b[B], w = b[B + 1];
|
|
1692
|
+
if (m.push(x), C.push(R), x.hole || T.hole || R.hole || w.hole || x.y == null || T.y == null || R.y == null || w.y == null)
|
|
1693
1693
|
continue;
|
|
1694
|
-
const
|
|
1695
|
-
if (
|
|
1696
|
-
const k =
|
|
1694
|
+
const P = x.y - R.y, L = T.y - w.y;
|
|
1695
|
+
if (P > 0 && L < 0 || P < 0 && L > 0) {
|
|
1696
|
+
const k = P / (P - L), H = d(x.x, T.x, k), S = d(x.y, T.y, k), Y = { x: H, y: S, hole: !1 }, U = { x: H, y: S, hole: !1 };
|
|
1697
1697
|
m.push(Y), C.push(U);
|
|
1698
1698
|
}
|
|
1699
1699
|
}
|
|
@@ -1702,13 +1702,13 @@ function Jn(t) {
|
|
|
1702
1702
|
function D(y, b) {
|
|
1703
1703
|
const m = [], C = Math.min(y.length, b.length);
|
|
1704
1704
|
for (let g = 0; g < C - 1; g += 1) {
|
|
1705
|
-
const B = y[g], x = y[g + 1], T = b[g],
|
|
1706
|
-
if (B.hole || x.hole || T.hole ||
|
|
1707
|
-
const
|
|
1705
|
+
const B = y[g], x = y[g + 1], T = b[g], R = b[g + 1];
|
|
1706
|
+
if (B.hole || x.hole || T.hole || R.hole || B.y == null || x.y == null || T.y == null || R.y == null) continue;
|
|
1707
|
+
const w = B.y - T.y, P = x.y - R.y, L = w <= 0 ? B : T, k = P <= 0 ? x : R, H = P <= 0 ? R : x, S = w <= 0 ? T : B, Y = w <= 0 ? s : r, U = [
|
|
1708
1708
|
`M${L.x},${L.y}`,
|
|
1709
1709
|
`L${k.x},${k.y}`,
|
|
1710
1710
|
`L${H.x},${H.y}`,
|
|
1711
|
-
`L${
|
|
1711
|
+
`L${S.x},${S.y}`,
|
|
1712
1712
|
"Z"
|
|
1713
1713
|
].join(" ");
|
|
1714
1714
|
m.push({ d: U, color: Y });
|
|
@@ -1721,25 +1721,25 @@ function Jn(t) {
|
|
|
1721
1721
|
let g = 0;
|
|
1722
1722
|
for (; g < C - 1; ) {
|
|
1723
1723
|
for (; g < C - 1; ) {
|
|
1724
|
-
const
|
|
1725
|
-
if (!
|
|
1724
|
+
const S = y[g], Y = b[g], U = y[g + 1], j = b[g + 1];
|
|
1725
|
+
if (!S.hole && !Y.hole && !U.hole && !j.hole && S.y != null && Y.y != null && U.y != null && j.y != null) break;
|
|
1726
1726
|
g += 1;
|
|
1727
1727
|
}
|
|
1728
1728
|
if (g >= C - 1) break;
|
|
1729
1729
|
const B = g, x = Math.sign(b[g].y - y[g].y || 0) || 1;
|
|
1730
1730
|
for (g += 1; g < C - 1; ) {
|
|
1731
|
-
const
|
|
1732
|
-
if (
|
|
1731
|
+
const S = y[g], Y = b[g], U = y[g + 1], j = b[g + 1];
|
|
1732
|
+
if (S.hole || Y.hole || U.hole || j.hole || S.y == null || Y.y == null || U.y == null || j.y == null || (Math.sign(Y.y - S.y || 0) || 1) !== x) break;
|
|
1733
1733
|
g += 1;
|
|
1734
1734
|
}
|
|
1735
|
-
const T = g + 0,
|
|
1736
|
-
for (let
|
|
1737
|
-
L.push(`${S
|
|
1735
|
+
const T = g + 0, R = x >= 0 ? y : b, w = x >= 0 ? b : y, P = x >= 0 ? s : r, L = [];
|
|
1736
|
+
for (let S = B; S <= T; S += 1)
|
|
1737
|
+
L.push(`${R[S].x},${R[S].y}`);
|
|
1738
1738
|
const k = [];
|
|
1739
|
-
for (let
|
|
1740
|
-
k.push(`${
|
|
1739
|
+
for (let S = T; S >= B; S -= 1)
|
|
1740
|
+
k.push(`${w[S].x},${w[S].y}`);
|
|
1741
1741
|
const H = `M${L[0]} L${L.slice(1).join(" L")} L${k.join(" L")} Z`;
|
|
1742
|
-
m.push({ d: H, color:
|
|
1742
|
+
m.push({ d: H, color: P });
|
|
1743
1743
|
}
|
|
1744
1744
|
return m;
|
|
1745
1745
|
}
|
|
@@ -1777,17 +1777,30 @@ function te(t, n, e = {}) {
|
|
|
1777
1777
|
else n.startsWith("custom:") ? i = new CustomEvent(n, { ...r, detail: r.detail }) : i = new Event(n, r);
|
|
1778
1778
|
return t.dispatchEvent(i), i;
|
|
1779
1779
|
}
|
|
1780
|
+
function ne(t, { delta: n = 1, delay: e = 20, disableTransitions: s = !0 } = {}) {
|
|
1781
|
+
if (!t || !(t instanceof HTMLElement)) return;
|
|
1782
|
+
const r = t.style, o = {
|
|
1783
|
+
width: r.width,
|
|
1784
|
+
height: r.height,
|
|
1785
|
+
transition: r.transition
|
|
1786
|
+
}, c = t.getBoundingClientRect(), i = c.width, u = c.height;
|
|
1787
|
+
s && (r.transition = "none"), r.width = `${Math.max(0, i + n)}px`, r.height = `${Math.max(0, u + n)}px`, t.offsetWidth, setTimeout(() => {
|
|
1788
|
+
r.width = o.width, r.height = o.height, t.offsetWidth, requestAnimationFrame(() => {
|
|
1789
|
+
s && (r.transition = o.transition);
|
|
1790
|
+
});
|
|
1791
|
+
}, e);
|
|
1792
|
+
}
|
|
1780
1793
|
export {
|
|
1781
1794
|
yn as $,
|
|
1782
1795
|
Fn as A,
|
|
1783
1796
|
In as B,
|
|
1784
1797
|
cn as C,
|
|
1785
|
-
|
|
1798
|
+
Rn as D,
|
|
1786
1799
|
jt as E,
|
|
1787
1800
|
On as F,
|
|
1788
1801
|
Qt as G,
|
|
1789
1802
|
mn as H,
|
|
1790
|
-
|
|
1803
|
+
Kn as I,
|
|
1791
1804
|
Nn as J,
|
|
1792
1805
|
Jt as K,
|
|
1793
1806
|
xn as L,
|
|
@@ -1796,28 +1809,28 @@ export {
|
|
|
1796
1809
|
fn as O,
|
|
1797
1810
|
dn as P,
|
|
1798
1811
|
Yn as Q,
|
|
1799
|
-
|
|
1812
|
+
z as R,
|
|
1800
1813
|
nn as S,
|
|
1801
1814
|
Vt as T,
|
|
1802
|
-
|
|
1815
|
+
zt as U,
|
|
1803
1816
|
Dn as V,
|
|
1804
1817
|
Tn as W,
|
|
1805
1818
|
An as X,
|
|
1806
1819
|
Xt as Y,
|
|
1807
|
-
|
|
1808
|
-
|
|
1820
|
+
_t as Z,
|
|
1821
|
+
wn as _,
|
|
1809
1822
|
Bn as a,
|
|
1810
1823
|
un as a0,
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1824
|
+
Pn as a1,
|
|
1825
|
+
Wt as a2,
|
|
1826
|
+
Kt as a3,
|
|
1814
1827
|
kt as a4,
|
|
1815
1828
|
Qn as a5,
|
|
1816
1829
|
q as a6,
|
|
1817
1830
|
$n as a7,
|
|
1818
|
-
|
|
1831
|
+
Sn as a8,
|
|
1819
1832
|
an as a9,
|
|
1820
|
-
|
|
1833
|
+
Wn as aa,
|
|
1821
1834
|
jn as ab,
|
|
1822
1835
|
qn as ac,
|
|
1823
1836
|
Xn as ad,
|
|
@@ -1825,18 +1838,19 @@ export {
|
|
|
1825
1838
|
te as af,
|
|
1826
1839
|
ct as ag,
|
|
1827
1840
|
kn as ah,
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1841
|
+
ne as ai,
|
|
1842
|
+
Mn as aj,
|
|
1843
|
+
bn as ak,
|
|
1844
|
+
Zn as al,
|
|
1845
|
+
Vn as am,
|
|
1846
|
+
zn as an,
|
|
1847
|
+
Ht as ao,
|
|
1848
|
+
Yt as ap,
|
|
1849
|
+
Gn as aq,
|
|
1850
|
+
Un as ar,
|
|
1851
|
+
Jn as as,
|
|
1852
|
+
Hn as at,
|
|
1853
|
+
rt as au,
|
|
1840
1854
|
v as b,
|
|
1841
1855
|
Zt as c,
|
|
1842
1856
|
ln as d,
|
|
@@ -1847,9 +1861,9 @@ export {
|
|
|
1847
1861
|
Ut as i,
|
|
1848
1862
|
vt as j,
|
|
1849
1863
|
Gt as k,
|
|
1850
|
-
|
|
1864
|
+
_n as l,
|
|
1851
1865
|
sn as m,
|
|
1852
|
-
|
|
1866
|
+
Pt as n,
|
|
1853
1867
|
En as o,
|
|
1854
1868
|
mt as p,
|
|
1855
1869
|
p as q,
|
|
@@ -1858,7 +1872,7 @@ export {
|
|
|
1858
1872
|
At as t,
|
|
1859
1873
|
qt as u,
|
|
1860
1874
|
V as v,
|
|
1861
|
-
|
|
1875
|
+
K as w,
|
|
1862
1876
|
rn as x,
|
|
1863
1877
|
en as y,
|
|
1864
1878
|
hn as z
|