vue-data-ui 3.15.12 → 3.16.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/README.md +132 -59
- package/dist/A11yDataTable-KcVAX2cP.js +54 -0
- package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
- package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
- package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
- package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
- package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
- package/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
- package/dist/Legend-CS7Xo5LK.js +101 -0
- package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
- package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
- package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
- package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
- package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
- package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
- package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
- package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
- 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-bump.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-dag.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-geo.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-stackline.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-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
- package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
- package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
- package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
- package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
- package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +59 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
- package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
- package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
- package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
- package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
- package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
- package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
- package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
- package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
- package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
- package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
- package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
- package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
- package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
- package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
- package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
- package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
- package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
- package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
- package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
- package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
- package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
- package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
- package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
- package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
- package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
- package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
- package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
- package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
- package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
- package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
- package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
- package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
- package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
- package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
- package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
- package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
- package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
- package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
- package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
- package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
- package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
- package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
- package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
- package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
- package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
- package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
- package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
- package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
- package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
- package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
- package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
- package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
- package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
- package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
- package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
- package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
- package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
- package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
- package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
- package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
- package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
- package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
- package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
- package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
- package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
- package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
- package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
- package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
- package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
- package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
- package/package.json +2 -2
- package/dist/ColorPicker-j0ySewhI.js +0 -244
- package/dist/Legend-1LMMsPxL.js +0 -90
- package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
- package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
- package/dist/vue-ui-bump-C_fKharc.js +0 -1059
- package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
- package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
- package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
- package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
- package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
- package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
- package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
- package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
- package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
- package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
- package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
- package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
- package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
- package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
- package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
- package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
- package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
- package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
- package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
- package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
- package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
- package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
- package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
- package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
- package/dist/vue-ui-rings-80ZUki42.js +0 -1083
- package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
- package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
- package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
- package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
- package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
- package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
- package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
- package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
- package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
- package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
- package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
- package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
- package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
- package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
- package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
|
@@ -14,7 +14,7 @@ function cn(t, n, e, s, r, o = 1.99999, c = 2, i = 1.45, l = 360, a = 105.25, u
|
|
|
14
14
|
const h = f.reduce((p, m) => p + m.value, 0), d = [];
|
|
15
15
|
let g = 0;
|
|
16
16
|
for (let p = 0; p < f.length; p++) {
|
|
17
|
-
const m = f[p].value, A = f.length === 1, F = A ? 1 : h > 0 ? m / h : 0, b = F * (Math.PI * o), L = (A ? 0.5 : h > 0 ? m / 2 / h : 0.5) * (Math.PI * c), { startX:
|
|
17
|
+
const m = f[p].value, A = f.length === 1, F = A ? 1 : h > 0 ? m / h : 0, b = F * (Math.PI * o), L = (A ? 0.5 : h > 0 ? m / 2 / h : 0.5) * (Math.PI * c), { startX: R, startY: x, endX: $, endY: M, path: D } = tt(
|
|
18
18
|
[n, e],
|
|
19
19
|
[s, r],
|
|
20
20
|
[g, b],
|
|
@@ -38,14 +38,14 @@ function cn(t, n, e, s, r, o = 1.99999, c = 2, i = 1.45, l = 360, a = 105.25, u
|
|
|
38
38
|
c
|
|
39
39
|
);
|
|
40
40
|
d.push({
|
|
41
|
-
arcSlice: `${D} L ${y.startX} ${y.startY} ${y.path} L ${
|
|
41
|
+
arcSlice: `${D} L ${y.startX} ${y.startY} ${y.path} L ${R} ${x}`,
|
|
42
42
|
cx: E(n),
|
|
43
43
|
cy: E(e),
|
|
44
44
|
...f[p],
|
|
45
45
|
proportion: E(F),
|
|
46
46
|
ratio: E(b),
|
|
47
47
|
path: D.replaceAll("NaN", "0"),
|
|
48
|
-
startX: E(
|
|
48
|
+
startX: E(R),
|
|
49
49
|
startY: E(x),
|
|
50
50
|
endX: E($),
|
|
51
51
|
endY: E(M),
|
|
@@ -110,7 +110,7 @@ function St({ defaultConfig: t, userConfig: n }) {
|
|
|
110
110
|
return Object.keys(e).forEach((s) => {
|
|
111
111
|
if (Object.hasOwn(n, s)) {
|
|
112
112
|
const r = n[s];
|
|
113
|
-
r === null ? e[s] = null : ["boolean", "function"].includes(typeof r) ? e[s] = r : ["string", "number"].includes(typeof r) ? at(r) && (e[s] = r) : Array.isArray(e[s]) ? Bt({ userConfig: n, key: s }) && (e[s] = r) :
|
|
113
|
+
r === null ? e[s] = null : ["boolean", "function"].includes(typeof r) ? e[s] = r : ["string", "number"].includes(typeof r) ? at(r) && (e[s] = r) : Array.isArray(e[s]) ? Bt({ userConfig: n, key: s }) && (e[s] = r) : Nt({ userConfig: n, key: s }) && (e[s] = St({
|
|
114
114
|
defaultConfig: e[s],
|
|
115
115
|
userConfig: r
|
|
116
116
|
}));
|
|
@@ -125,7 +125,7 @@ function St({ defaultConfig: t, userConfig: n }) {
|
|
|
125
125
|
function Bt({ userConfig: t, key: n }) {
|
|
126
126
|
return Object.hasOwn(t, n) && Array.isArray(t[n]) && t[n].length >= 0;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Nt({ userConfig: t, key: n }) {
|
|
129
129
|
return Object.hasOwn(t, n) && !Array.isArray(t[n]) && typeof t[n] == "object";
|
|
130
130
|
}
|
|
131
131
|
function at(t) {
|
|
@@ -459,7 +459,7 @@ function mt(t) {
|
|
|
459
459
|
if (g === null) return null;
|
|
460
460
|
const p = Lt(f);
|
|
461
461
|
if (p === null) return null;
|
|
462
|
-
const [m, A, F] =
|
|
462
|
+
const [m, A, F] = Rt(h, d, g);
|
|
463
463
|
return `#${G(m)}${G(A)}${G(F)}${G(Math.round(X(p) * 255))}`;
|
|
464
464
|
}
|
|
465
465
|
return null;
|
|
@@ -473,7 +473,7 @@ function nt(t) {
|
|
|
473
473
|
function et(t) {
|
|
474
474
|
return t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Rt(t, n, e) {
|
|
477
477
|
const s = (e % 360 + 360) % 360 * (Math.PI / 180), r = n * Math.cos(s), o = n * Math.sin(s);
|
|
478
478
|
return It(t, r, o);
|
|
479
479
|
}
|
|
@@ -557,7 +557,7 @@ function fn(t, n) {
|
|
|
557
557
|
if (h === 0)
|
|
558
558
|
g = p = m = d;
|
|
559
559
|
else {
|
|
560
|
-
const A = (S, L,
|
|
560
|
+
const A = (S, L, R) => (R < 0 && (R += 1), R > 1 && (R -= 1), R < 0.16666666666666666 ? S + (L - S) * 6 * R : R < 0.5 ? L : R < 0.6666666666666666 ? S + (L - S) * (0.6666666666666666 - R) * 6 : S), F = d < 0.5 ? d * (1 + h) : d + h - d * h, b = 2 * d - F;
|
|
561
561
|
g = A(b, F, f + 1 / 3), p = A(b, F, f), m = A(b, F, f - 1 / 3);
|
|
562
562
|
}
|
|
563
563
|
return {
|
|
@@ -706,14 +706,14 @@ function Gt(t) {
|
|
|
706
706
|
const e = n[1], s = n[2], r = n[3], o = n[4], c = e.endsWith("%") ? v(Number.parseFloat(e) / 100, 0, 1) : v(Number.parseFloat(e), 0, 1), i = Math.max(0, Number.parseFloat(s)), l = Number.parseFloat(r), a = o ? o.endsWith("%") ? v(Number.parseFloat(o) / 100, 0, 1) : v(Number.parseFloat(o), 0, 1) : 1, u = l * Math.PI / 180, f = i * Math.cos(u), h = i * Math.sin(u), d = c + 0.3963377774 * f + 0.2158037573 * h, g = c - 0.1055613458 * f - 0.0638541728 * h, p = c - 0.0894841775 * f - 1.291485548 * h, m = d * d * d, A = g * g * g, F = p * p * p;
|
|
707
707
|
let b = 4.0767416621 * m - 3.3077115913 * A + 0.2309699292 * F, S = -1.2684380046 * m + 2.6097574011 * A - 0.3413193965 * F, L = -0.0041960863 * m - 0.7034186147 * A + 1.707614701 * F;
|
|
708
708
|
b = v(b, 0, 1), S = v(S, 0, 1), L = v(L, 0, 1);
|
|
709
|
-
const
|
|
709
|
+
const R = (x) => {
|
|
710
710
|
const $ = x <= 31308e-7 ? 12.92 * x : 1.055 * Math.pow(x, 0.4166666666666667) - 0.055;
|
|
711
711
|
return v(Math.round($ * 255), 0, 255);
|
|
712
712
|
};
|
|
713
713
|
return {
|
|
714
|
-
red:
|
|
715
|
-
green:
|
|
716
|
-
blue:
|
|
714
|
+
red: R(b),
|
|
715
|
+
green: R(S),
|
|
716
|
+
blue: R(L),
|
|
717
717
|
alpha: a
|
|
718
718
|
};
|
|
719
719
|
}
|
|
@@ -895,7 +895,7 @@ function Bn(t) {
|
|
|
895
895
|
return `data:text/csv;charset=utf-8,${t.map((n) => n.join(",")).join(`
|
|
896
896
|
`)}`;
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function Nn(t, n) {
|
|
899
899
|
if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t))
|
|
900
900
|
return console.warn("lightenHexColor : Invalid hex color format"), "#000000";
|
|
901
901
|
let e = t.replace("#", "");
|
|
@@ -907,7 +907,7 @@ function Rn(t, n) {
|
|
|
907
907
|
}
|
|
908
908
|
return a;
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function Rn(t, n) {
|
|
911
911
|
if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t))
|
|
912
912
|
return console.warn("darkenHexColor: Invalid hex color format"), "#000000";
|
|
913
913
|
let e = t.replace("#", "");
|
|
@@ -1040,9 +1040,9 @@ function Un({
|
|
|
1040
1040
|
boxHeight: i,
|
|
1041
1041
|
padding: l = 12
|
|
1042
1042
|
}) {
|
|
1043
|
-
const a = jt({ points: t, a: n, b: e, angleStep: s, startX: 0, startY: 0 }), { minX: u, minY: f, maxX: h, maxY: d, width: g, height: p } = Wt(a), m = (u + h) / 2, A = (f + d) / 2, F = Math.max(1, c - 2 * l), b = Math.max(1, i - 2 * l), S = Math.min(F / g, b / p), L = r - m * S,
|
|
1043
|
+
const a = jt({ points: t, a: n, b: e, angleStep: s, startX: 0, startY: 0 }), { minX: u, minY: f, maxX: h, maxY: d, width: g, height: p } = Wt(a), m = (u + h) / 2, A = (f + d) / 2, F = Math.max(1, c - 2 * l), b = Math.max(1, i - 2 * l), S = Math.min(F / g, b / p), L = r - m * S, R = o - A * S;
|
|
1044
1044
|
return function($) {
|
|
1045
|
-
const M = Math.max(2, Math.min(Math.round($), a.length)), D = a.slice(0, M).map((y) => ({ x: y.x * S + L, y: y.y * S +
|
|
1045
|
+
const M = Math.max(2, Math.min(Math.round($), a.length)), D = a.slice(0, M).map((y) => ({ x: y.x * S + L, y: y.y * S + R }));
|
|
1046
1046
|
return Kt(D);
|
|
1047
1047
|
};
|
|
1048
1048
|
}
|
|
@@ -1301,8 +1301,8 @@ function _n(t) {
|
|
|
1301
1301
|
function e(a, u, f, h) {
|
|
1302
1302
|
let g = 0, p = a.x, m = a.y;
|
|
1303
1303
|
for (let A = 1; A <= 100; A += 1) {
|
|
1304
|
-
const F = A / 100, b = 1 - F, S = b * b, L = F * F,
|
|
1305
|
-
g += n(p, m,
|
|
1304
|
+
const F = A / 100, b = 1 - F, S = b * b, L = F * F, R = S * b * a.x + 3 * S * F * u.x + 3 * b * L * f.x + L * F * h.x, x = S * b * a.y + 3 * S * F * u.y + 3 * b * L * f.y + L * F * h.y;
|
|
1305
|
+
g += n(p, m, R, x), p = R, m = x;
|
|
1306
1306
|
}
|
|
1307
1307
|
return g;
|
|
1308
1308
|
}
|
|
@@ -1433,7 +1433,7 @@ function ne(t, n = 100) {
|
|
|
1433
1433
|
function ee({ series: t, center: n, maxRadius: e, hasGhost: s = !1 }) {
|
|
1434
1434
|
const o = 360 / (t.length - (s ? 1 : 0));
|
|
1435
1435
|
return t.map((i, l) => {
|
|
1436
|
-
const u = i * e, f = l * o, h = f + o, d = f + o / 2, g = W(f) - W(90), p = W(h) - W(90), m = W(d) - W(90), A = n.x + u * Math.cos(g), F = n.y + u * Math.sin(g), b = n.x + u * Math.cos(p), S = n.y + u * Math.sin(p), L = n.x + u * Math.cos(m),
|
|
1436
|
+
const u = i * e, f = l * o, h = f + o, d = f + o / 2, g = W(f) - W(90), p = W(h) - W(90), m = W(d) - W(90), A = n.x + u * Math.cos(g), F = n.y + u * Math.sin(g), b = n.x + u * Math.cos(p), S = n.y + u * Math.sin(p), L = n.x + u * Math.cos(m), R = n.y + u * Math.sin(m);
|
|
1437
1437
|
return {
|
|
1438
1438
|
path: `
|
|
1439
1439
|
M ${n.x} ${n.y}
|
|
@@ -1441,7 +1441,7 @@ function ee({ series: t, center: n, maxRadius: e, hasGhost: s = !1 }) {
|
|
|
1441
1441
|
A ${u} ${u} 0 0 1 ${b} ${S}
|
|
1442
1442
|
Z
|
|
1443
1443
|
`.trim(),
|
|
1444
|
-
middlePoint: { x: L, y:
|
|
1444
|
+
middlePoint: { x: L, y: R },
|
|
1445
1445
|
radius: u
|
|
1446
1446
|
};
|
|
1447
1447
|
});
|
|
@@ -1772,8 +1772,8 @@ function pe(t, n, e = !1, s = !0) {
|
|
|
1772
1772
|
let h = `M${c[0].x},${n}`;
|
|
1773
1773
|
h += ` L${c[0].x},${c[0].y}`;
|
|
1774
1774
|
for (let d = 0; d < i; d += 1) {
|
|
1775
|
-
const g = c[d].x, p = c[d].y, m = c[d + 1].x, A = c[d + 1].y, F = f[d], b = f[d + 1], S = g + (m - g) / 3, L = p + F * (m - g) / 3,
|
|
1776
|
-
h += ` C${S},${L} ${
|
|
1775
|
+
const g = c[d].x, p = c[d].y, m = c[d + 1].x, A = c[d + 1].y, F = f[d], b = f[d + 1], S = g + (m - g) / 3, L = p + F * (m - g) / 3, R = m - (m - g) / 3, x = A - b * (m - g) / 3;
|
|
1776
|
+
h += ` C${S},${L} ${R},${x} ${m},${A}`;
|
|
1777
1777
|
}
|
|
1778
1778
|
return h += ` L${c[i].x},${n} ${s ? "Z" : ""}`, h;
|
|
1779
1779
|
}).filter(Boolean);
|
|
@@ -1928,8 +1928,8 @@ function Me(t) {
|
|
|
1928
1928
|
function d(x, $, M, D, y) {
|
|
1929
1929
|
const I = x.x, C = $.x, w = x.y, B = $.y, P = C - I;
|
|
1930
1930
|
if (P === 0) return w;
|
|
1931
|
-
const T = (y - I) / P, O = T * T, Y = O * T, H = 2 * Y - 3 * O + 1,
|
|
1932
|
-
return H * w +
|
|
1931
|
+
const T = (y - I) / P, O = T * T, Y = O * T, H = 2 * Y - 3 * O + 1, N = Y - 2 * O + T, k = -2 * Y + 3 * O, U = Y - O;
|
|
1932
|
+
return H * w + N * (M * P) + k * B + U * (D * P);
|
|
1933
1933
|
}
|
|
1934
1934
|
function g(x, $) {
|
|
1935
1935
|
const M = f(x);
|
|
@@ -1948,14 +1948,14 @@ function Me(t) {
|
|
|
1948
1948
|
const Y = O.length - 1;
|
|
1949
1949
|
if (!(B < O[0].x - 1e-9 || B > O[Y].x + 1e-9)) {
|
|
1950
1950
|
for (let H = 0; H < Y; H += 1) {
|
|
1951
|
-
const
|
|
1952
|
-
if (!(B + 1e-9 <
|
|
1951
|
+
const N = O[H], k = O[H + 1];
|
|
1952
|
+
if (!(B + 1e-9 < N.x || B - 1e-9 > k.x)) {
|
|
1953
1953
|
if ($) {
|
|
1954
1954
|
const U = O.__tangents || (O.__tangents = h(O));
|
|
1955
|
-
P = d(
|
|
1955
|
+
P = d(N, k, U[H], U[H + 1], B);
|
|
1956
1956
|
} else {
|
|
1957
|
-
const U = (B -
|
|
1958
|
-
P =
|
|
1957
|
+
const U = (B - N.x) / (k.x - N.x || 1);
|
|
1958
|
+
P = N.y + U * (k.y - N.y);
|
|
1959
1959
|
}
|
|
1960
1960
|
T = !0;
|
|
1961
1961
|
break;
|
|
@@ -1979,7 +1979,7 @@ function Me(t) {
|
|
|
1979
1979
|
continue;
|
|
1980
1980
|
const T = C.y - B.y, O = w.y - P.y;
|
|
1981
1981
|
if (T > 0 && O < 0 || T < 0 && O > 0) {
|
|
1982
|
-
const Y = T / (T - O), H = p(C.x, w.x, Y),
|
|
1982
|
+
const Y = T / (T - O), H = p(C.x, w.x, Y), N = p(C.y, w.y, Y), k = { x: H, y: N, hole: !1 }, U = { x: H, y: N, hole: !1 };
|
|
1983
1983
|
M.push(k), D.push(U);
|
|
1984
1984
|
}
|
|
1985
1985
|
}
|
|
@@ -1990,11 +1990,11 @@ function Me(t) {
|
|
|
1990
1990
|
for (let y = 0; y < D - 1; y += 1) {
|
|
1991
1991
|
const I = x[y], C = x[y + 1], w = $[y], B = $[y + 1];
|
|
1992
1992
|
if (I.hole || C.hole || w.hole || B.hole || I.y == null || C.y == null || w.y == null || B.y == null) continue;
|
|
1993
|
-
const P = I.y - w.y, T = C.y - B.y, O = P <= 0 ? I : w, Y = T <= 0 ? C : B, H = T <= 0 ? B : C,
|
|
1993
|
+
const P = I.y - w.y, T = C.y - B.y, O = P <= 0 ? I : w, Y = T <= 0 ? C : B, H = T <= 0 ? B : C, N = P <= 0 ? w : I, k = P <= 0 ? s : r, U = [
|
|
1994
1994
|
`M${O.x},${O.y}`,
|
|
1995
1995
|
`L${Y.x},${Y.y}`,
|
|
1996
1996
|
`L${H.x},${H.y}`,
|
|
1997
|
-
`L${
|
|
1997
|
+
`L${N.x},${N.y}`,
|
|
1998
1998
|
"Z"
|
|
1999
1999
|
].join(" ");
|
|
2000
2000
|
M.push({ d: U, color: k });
|
|
@@ -2007,30 +2007,30 @@ function Me(t) {
|
|
|
2007
2007
|
let y = 0;
|
|
2008
2008
|
for (; y < D - 1; ) {
|
|
2009
2009
|
for (; y < D - 1; ) {
|
|
2010
|
-
const
|
|
2011
|
-
if (!
|
|
2010
|
+
const N = x[y], k = $[y], U = x[y + 1], K = $[y + 1];
|
|
2011
|
+
if (!N.hole && !k.hole && !U.hole && !K.hole && N.y != null && k.y != null && U.y != null && K.y != null) break;
|
|
2012
2012
|
y += 1;
|
|
2013
2013
|
}
|
|
2014
2014
|
if (y >= D - 1) break;
|
|
2015
2015
|
const I = y, C = Math.sign($[y].y - x[y].y || 0) || 1;
|
|
2016
2016
|
for (y += 1; y < D - 1; ) {
|
|
2017
|
-
const
|
|
2018
|
-
if (
|
|
2017
|
+
const N = x[y], k = $[y], U = x[y + 1], K = $[y + 1];
|
|
2018
|
+
if (N.hole || k.hole || U.hole || K.hole || N.y == null || k.y == null || U.y == null || K.y == null || (Math.sign(k.y - N.y || 0) || 1) !== C) break;
|
|
2019
2019
|
y += 1;
|
|
2020
2020
|
}
|
|
2021
2021
|
const w = y + 0, B = C >= 0 ? x : $, P = C >= 0 ? $ : x, T = C >= 0 ? s : r, O = [];
|
|
2022
|
-
for (let
|
|
2023
|
-
O.push(`${B[
|
|
2022
|
+
for (let N = I; N <= w; N += 1)
|
|
2023
|
+
O.push(`${B[N].x},${B[N].y}`);
|
|
2024
2024
|
const Y = [];
|
|
2025
|
-
for (let
|
|
2026
|
-
Y.push(`${P[
|
|
2025
|
+
for (let N = w; N >= I; N -= 1)
|
|
2026
|
+
Y.push(`${P[N].x},${P[N].y}`);
|
|
2027
2027
|
const H = `M${O[0]} L${O.slice(1).join(" L")} L${Y.join(" L")} Z`;
|
|
2028
2028
|
M.push({ d: H, color: T });
|
|
2029
2029
|
}
|
|
2030
2030
|
return M;
|
|
2031
2031
|
}
|
|
2032
|
-
const b = g(n, o), S = g(e, c), { A: L, B:
|
|
2033
|
-
return a ? F(L,
|
|
2032
|
+
const b = g(n, o), S = g(e, c), { A: L, B: R } = m(b, S);
|
|
2033
|
+
return a ? F(L, R) : A(L, R);
|
|
2034
2034
|
}
|
|
2035
2035
|
function $e(t, n, e = {}) {
|
|
2036
2036
|
const r = { ...{ bubbles: !0, cancelable: !0, composed: !0 }, ...e }, o = /* @__PURE__ */ new Set([
|
|
@@ -2124,10 +2124,10 @@ const Se = rn((t, n, e, s, r, o, c, i) => {
|
|
|
2124
2124
|
function Be(t) {
|
|
2125
2125
|
return String(t).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
2126
2126
|
}
|
|
2127
|
-
function
|
|
2127
|
+
function Ne(t) {
|
|
2128
2128
|
return String(t).replaceAll("&", "&").replaceAll('"', """).replaceAll("<", "<").replaceAll(">", ">");
|
|
2129
2129
|
}
|
|
2130
|
-
function
|
|
2130
|
+
function Re(t) {
|
|
2131
2131
|
if (!t || typeof t != "string")
|
|
2132
2132
|
return null;
|
|
2133
2133
|
const n = document.createElementNS(ot, "svg");
|
|
@@ -2143,6 +2143,27 @@ function Ie(t, n = "(", e = ")") {
|
|
|
2143
2143
|
function Le(t, n) {
|
|
2144
2144
|
return n <= 1 ? "0%" : `${t * 100 / (n - 1)}%`;
|
|
2145
2145
|
}
|
|
2146
|
+
function Oe(t, n, e) {
|
|
2147
|
+
if (!e || !Number.isFinite(t) || !Number.isFinite(n))
|
|
2148
|
+
return null;
|
|
2149
|
+
if (e.createSVGPoint && e.getScreenCTM) {
|
|
2150
|
+
const r = e.createSVGPoint();
|
|
2151
|
+
r.x = t, r.y = n;
|
|
2152
|
+
const o = e.getScreenCTM();
|
|
2153
|
+
if (o) {
|
|
2154
|
+
const c = r.matrixTransform(o);
|
|
2155
|
+
return !Number.isFinite(c.x) || !Number.isFinite(c.y) ? null : {
|
|
2156
|
+
x: c.x,
|
|
2157
|
+
y: c.y
|
|
2158
|
+
};
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
const s = e.getBoundingClientRect();
|
|
2162
|
+
return {
|
|
2163
|
+
x: s.left + t,
|
|
2164
|
+
y: s.top + n
|
|
2165
|
+
};
|
|
2166
|
+
}
|
|
2146
2167
|
export {
|
|
2147
2168
|
Jn as $,
|
|
2148
2169
|
hn as A,
|
|
@@ -2176,44 +2197,45 @@ export {
|
|
|
2176
2197
|
Bn as a0,
|
|
2177
2198
|
Sn as a1,
|
|
2178
2199
|
Zn as a2,
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2200
|
+
Oe as a3,
|
|
2201
|
+
cn as a4,
|
|
2202
|
+
Cn as a5,
|
|
2203
|
+
Z as a6,
|
|
2204
|
+
_ as a7,
|
|
2205
|
+
te as a8,
|
|
2206
|
+
at as a9,
|
|
2207
|
+
Be as aA,
|
|
2208
|
+
De as aB,
|
|
2209
|
+
ht as aC,
|
|
2210
|
+
oe as aD,
|
|
2211
|
+
be as aE,
|
|
2212
|
+
Re as aF,
|
|
2213
|
+
Mn as aa,
|
|
2214
|
+
$n as ab,
|
|
2215
|
+
pt as ac,
|
|
2216
|
+
Un as ad,
|
|
2217
|
+
bn as ae,
|
|
2218
|
+
ie as af,
|
|
2219
|
+
Q as ag,
|
|
2220
|
+
Dn as ah,
|
|
2221
|
+
Fe as ai,
|
|
2222
|
+
_n as aj,
|
|
2223
|
+
re as ak,
|
|
2224
|
+
gn as al,
|
|
2225
|
+
yn as am,
|
|
2226
|
+
vn as an,
|
|
2227
|
+
On as ao,
|
|
2228
|
+
Fn as ap,
|
|
2229
|
+
Xn as aq,
|
|
2230
|
+
Qn as ar,
|
|
2231
|
+
jn as as,
|
|
2232
|
+
me as at,
|
|
2233
|
+
Ce as au,
|
|
2234
|
+
$e as av,
|
|
2235
|
+
ce as aw,
|
|
2236
|
+
ee as ax,
|
|
2237
|
+
Xt as ay,
|
|
2238
|
+
Ne as az,
|
|
2217
2239
|
En as b,
|
|
2218
2240
|
An as c,
|
|
2219
2241
|
Wn as d,
|
|
@@ -2235,8 +2257,8 @@ export {
|
|
|
2235
2257
|
St as t,
|
|
2236
2258
|
ne as u,
|
|
2237
2259
|
fn as v,
|
|
2238
|
-
|
|
2239
|
-
|
|
2260
|
+
Rn as w,
|
|
2261
|
+
Nn as x,
|
|
2240
2262
|
st as y,
|
|
2241
2263
|
dn as z
|
|
2242
2264
|
};
|