vue-data-ui 3.22.7 → 3.22.9
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-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.js} +2 -2
- 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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
- package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
- package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
- package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
- package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
- package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
- package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
- package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
- package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
- package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
- package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
- package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
- package/dist/vue-ui-rings-J990vNbX.js +1252 -0
- package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
- package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
- package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
- package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
- package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
- package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
- package/package.json +1 -1
- package/dist/BaseIcon-_-BX7be3.js +0 -502
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
- package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
- package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
- package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
- package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
- package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -14,7 +14,155 @@ function e(e, t = []) {
|
|
|
14
14
|
})
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
var t =
|
|
17
|
+
var t = .95, n = 1e-9, r = 24, i = 100, a = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap();
|
|
18
|
+
function s(e) {
|
|
19
|
+
return e * Math.PI / 180;
|
|
20
|
+
}
|
|
21
|
+
function c(e) {
|
|
22
|
+
return Math.round(e * i) / i;
|
|
23
|
+
}
|
|
24
|
+
function l(e, n) {
|
|
25
|
+
return {
|
|
26
|
+
cx: e / 2,
|
|
27
|
+
cy: n / 2,
|
|
28
|
+
radius: Math.min(e, n) / 2 * t
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function u(e, t, n = [0, 0]) {
|
|
32
|
+
let [r, i] = n, a = s(i);
|
|
33
|
+
return {
|
|
34
|
+
...l(e, t),
|
|
35
|
+
lon0Rad: s(r),
|
|
36
|
+
sinLat0: Math.sin(a),
|
|
37
|
+
cosLat0: Math.cos(a)
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function d([e, t]) {
|
|
41
|
+
let n = s(t);
|
|
42
|
+
return {
|
|
43
|
+
lon: e,
|
|
44
|
+
lat: t,
|
|
45
|
+
lonRad: s(e),
|
|
46
|
+
sinLat: Math.sin(n),
|
|
47
|
+
cosLat: Math.cos(n)
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function f(e, t) {
|
|
51
|
+
let n = e.lonRad - t.lon0Rad, r = Math.sin(n), i = Math.cos(n);
|
|
52
|
+
return {
|
|
53
|
+
x: e.cosLat * r,
|
|
54
|
+
y: t.cosLat0 * e.sinLat - t.sinLat0 * e.cosLat * i,
|
|
55
|
+
z: t.sinLat0 * e.sinLat + t.cosLat0 * e.cosLat * i
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function p(e, t = [0, 0]) {
|
|
59
|
+
return f(d(e), u(1, 1, t));
|
|
60
|
+
}
|
|
61
|
+
function m(e, t, n = 10) {
|
|
62
|
+
let { cx: r, cy: i, radius: a } = l(e, t), o = r - a - n, s = i - a - n, c = r + a + n, u = i + a + n;
|
|
63
|
+
return {
|
|
64
|
+
minX: Math.floor(o),
|
|
65
|
+
minY: Math.floor(s),
|
|
66
|
+
width: Math.ceil(c - o),
|
|
67
|
+
height: Math.ceil(u - s)
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function h(e, t) {
|
|
71
|
+
return f(e, t).z >= -1e-9;
|
|
72
|
+
}
|
|
73
|
+
function g(e, t = [0, 0]) {
|
|
74
|
+
return p(e, t).z >= -1e-9;
|
|
75
|
+
}
|
|
76
|
+
function _(e, t, r = !1) {
|
|
77
|
+
let i = f(e, t);
|
|
78
|
+
if (i.z < -1e-9) {
|
|
79
|
+
if (!r) return [NaN, NaN];
|
|
80
|
+
let e = Math.hypot(i.x, i.y);
|
|
81
|
+
return !Number.isFinite(e) || e <= n ? [NaN, NaN] : [t.cx + t.radius * (i.x / e), t.cy - t.radius * (i.y / e)];
|
|
82
|
+
}
|
|
83
|
+
return [t.cx + t.radius * i.x, t.cy - t.radius * i.y];
|
|
84
|
+
}
|
|
85
|
+
function v(e, t, n, r = [0, 0], i = !1) {
|
|
86
|
+
return _(d(e), u(t, n, r), i);
|
|
87
|
+
}
|
|
88
|
+
function y(e) {
|
|
89
|
+
return ((e + 180) % 360 + 360) % 360 - 180;
|
|
90
|
+
}
|
|
91
|
+
function b(e, t, n) {
|
|
92
|
+
let r = y(t.lon - e.lon);
|
|
93
|
+
return d([e.lon + r * n, e.lat + (t.lat - e.lat) * n]);
|
|
94
|
+
}
|
|
95
|
+
function x(e, t, n) {
|
|
96
|
+
let i = 0, a = 1, o = h(e, n);
|
|
97
|
+
for (let s = 0; s < r; s += 1) {
|
|
98
|
+
let r = (i + a) / 2;
|
|
99
|
+
h(b(e, t, r), n) === o ? i = r : a = r;
|
|
100
|
+
}
|
|
101
|
+
return b(e, t, (i + a) / 2);
|
|
102
|
+
}
|
|
103
|
+
function S(e, t) {
|
|
104
|
+
return Math.abs(e[0] - t[0]) < 1e-12 && Math.abs(e[1] - t[1]) < 1e-12;
|
|
105
|
+
}
|
|
106
|
+
function C(e) {
|
|
107
|
+
if (!Array.isArray(e)) return [];
|
|
108
|
+
let t = a.get(e);
|
|
109
|
+
if (t) return t;
|
|
110
|
+
let n = [];
|
|
111
|
+
for (let t of e) {
|
|
112
|
+
let e = n[n.length - 1];
|
|
113
|
+
(!e || !S(e, t)) && n.push(t);
|
|
114
|
+
}
|
|
115
|
+
return n.length > 1 && S(n[0], n[n.length - 1]) && n.pop(), a.set(e, n), n;
|
|
116
|
+
}
|
|
117
|
+
function w(e) {
|
|
118
|
+
if (!Array.isArray(e)) return [];
|
|
119
|
+
let t = o.get(e);
|
|
120
|
+
if (t) return t;
|
|
121
|
+
let n = C(e).map(d);
|
|
122
|
+
return o.set(e, n), n;
|
|
123
|
+
}
|
|
124
|
+
function T(e) {
|
|
125
|
+
let t = "", n = 0, r = null, i = null;
|
|
126
|
+
for (let a of e) {
|
|
127
|
+
if (!a || !Number.isFinite(a[0]) || !Number.isFinite(a[1])) continue;
|
|
128
|
+
let e = c(a[0]), o = c(a[1]);
|
|
129
|
+
r !== null && Math.abs(r - e) < 1e-8 && Math.abs(i - o) < 1e-8 || (t += n === 0 ? `M${e},${o}` : `L${e},${o}`, r = e, i = o, n += 1);
|
|
130
|
+
}
|
|
131
|
+
return n < 3 ? "" : `${t}Z`;
|
|
132
|
+
}
|
|
133
|
+
function E(e, t) {
|
|
134
|
+
let n = w(e), r = n.length;
|
|
135
|
+
if (r < 3) return "";
|
|
136
|
+
let i = Array(r), a = !1, o = !1;
|
|
137
|
+
for (let e = 0; e < r; e += 1) i[e] = h(n[e], t), i[e] && (a = !0);
|
|
138
|
+
for (let e = 0; e < r; e += 1) {
|
|
139
|
+
let t = (e - 1 + r) % r;
|
|
140
|
+
if (i[e] !== i[t]) {
|
|
141
|
+
o = !0;
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
if (!a && !o) return "";
|
|
146
|
+
let s = [];
|
|
147
|
+
for (let e = 0; e < r; e += 1) {
|
|
148
|
+
let a = n[e], o = n[(e - 1 + r) % r], c = i[e];
|
|
149
|
+
if (i[(e - 1 + r) % r] !== c) {
|
|
150
|
+
let e = x(o, a, t);
|
|
151
|
+
s.push(_(e, t, !1));
|
|
152
|
+
}
|
|
153
|
+
s.push(_(a, t, !c));
|
|
154
|
+
}
|
|
155
|
+
return T(s);
|
|
156
|
+
}
|
|
157
|
+
function D(e, t, n, r, i = [0, 0]) {
|
|
158
|
+
return T(C(e).map((e) => t(e, n, r, i)));
|
|
159
|
+
}
|
|
160
|
+
function O(e, { projection: t = "globe", width: n, height: r, center: i = [0, 0] } = {}) {
|
|
161
|
+
if (!e || !n || !r) return "";
|
|
162
|
+
let a = k[t] || k.globe, o = t === "globe" ? u(n, r, i) : null, s = (e) => e.map((e) => t === "globe" ? E(e, o) : D(e, a, n, r, i)).filter(Boolean).join(" ");
|
|
163
|
+
return e.type === "Polygon" ? s(e.coordinates) : e.type === "MultiPolygon" ? e.coordinates.map(s).filter(Boolean).join(" ") : "";
|
|
164
|
+
}
|
|
165
|
+
var k = {
|
|
18
166
|
mercator([e, t], n, r, i) {
|
|
19
167
|
t = Math.max(Math.min(t, 85.05113), -85.05113);
|
|
20
168
|
let [a, o] = i, s = (e - a) * Math.PI / 180, c = n / (2 * Math.PI) * (s + Math.PI), l = (e) => Math.log(Math.tan(Math.PI / 4 + e * Math.PI / 180 / 2)), u = l(85.05113), d = l(-72);
|
|
@@ -96,16 +244,16 @@ var t = {
|
|
|
96
244
|
let m = n / 2 / a * .98, h = n / 2, g = r / 2;
|
|
97
245
|
return [h + f * m, g - p * m];
|
|
98
246
|
},
|
|
99
|
-
globe(
|
|
100
|
-
|
|
101
|
-
return Math.sin(l) * Math.sin(c) + Math.cos(l) * Math.cos(c) * Math.cos(s) < 0 ? [NaN, NaN] : [p, m];
|
|
247
|
+
globe(e, t, n, r = [0, 0]) {
|
|
248
|
+
return v(e, t, n, r, !1);
|
|
102
249
|
},
|
|
103
250
|
azimuthalEquidistant([e, t], n, r, i = [0, 0]) {
|
|
104
251
|
let a = (e) => e * Math.PI / 180, [o, s] = i, c = a(e - o), l = a(t), u = a(s), d = Math.sin(u) * Math.sin(l) + Math.cos(u) * Math.cos(l) * Math.cos(c), f = Math.acos(Math.max(-1, Math.min(1, d))), p = f === 0 ? 1 : f / Math.sin(f), m = p * Math.cos(l) * Math.sin(c), h = p * (Math.cos(u) * Math.sin(l) - Math.sin(u) * Math.cos(l) * Math.cos(c)), g = Math.min(n, r) / 2 / Math.PI, _ = n / 2, v = r / 2;
|
|
105
252
|
return [_ + m * g, v - h * g];
|
|
106
253
|
}
|
|
107
254
|
};
|
|
108
|
-
function
|
|
255
|
+
function A(e, t, n, r, i = [0, 0]) {
|
|
256
|
+
if (e === k.globe) return m(n, r);
|
|
109
257
|
let a = Infinity, o = Infinity, s = -Infinity, c = -Infinity;
|
|
110
258
|
for (let l of t) {
|
|
111
259
|
let t = l.geometry, u = t.type === "Polygon" ? [t.coordinates] : t.type === "MultiPolygon" ? t.coordinates : [];
|
|
@@ -114,32 +262,41 @@ function n(e, t, n, r, i = [0, 0]) {
|
|
|
114
262
|
!Number.isFinite(l) || !Number.isFinite(d) || (a = Math.min(a, l), s = Math.max(s, l), o = Math.min(o, d), c = Math.max(c, d));
|
|
115
263
|
}
|
|
116
264
|
}
|
|
117
|
-
return {
|
|
265
|
+
return !Number.isFinite(a) || !Number.isFinite(o) || !Number.isFinite(s) || !Number.isFinite(c) ? {
|
|
266
|
+
minX: 0,
|
|
267
|
+
minY: 0,
|
|
268
|
+
width: n,
|
|
269
|
+
height: r
|
|
270
|
+
} : {
|
|
118
271
|
minX: Math.floor(a) - 10,
|
|
119
272
|
minY: Math.floor(o) - 10,
|
|
120
273
|
width: Math.ceil(s - a) + 20,
|
|
121
274
|
height: Math.ceil(c - o) + 20
|
|
122
275
|
};
|
|
123
276
|
}
|
|
124
|
-
function
|
|
277
|
+
function j(e, t, n) {
|
|
125
278
|
let r = e.find((e) => e.properties.admin === t || e.properties.name === t), i = e.find((e) => e.properties.admin === n || e.properties.name === n);
|
|
126
279
|
return r && i && (r.geometry.type === "Polygon" && (r.geometry = {
|
|
127
280
|
type: "MultiPolygon",
|
|
128
281
|
coordinates: [r.geometry.coordinates]
|
|
129
282
|
}), i.geometry.type === "Polygon" ? r.geometry.coordinates.push(i.geometry.coordinates) : i.geometry.type === "MultiPolygon" && r.geometry.coordinates.push(...i.geometry.coordinates), e = e.filter((e) => !(e.properties.admin === n || e.properties.name === n))), e;
|
|
130
283
|
}
|
|
131
|
-
function
|
|
284
|
+
function M(e, t) {
|
|
132
285
|
let n = Array.isArray(t) ? t.map((e) => ({ ...e })) : t.features ? t.features.map((e) => ({ ...e })) : [];
|
|
133
|
-
return e.style.chart.territory.showTaiwanAsPartOfChina && (n =
|
|
286
|
+
return e.style.chart.territory.showTaiwanAsPartOfChina && (n = j(n, "China", "Taiwan")), t.type === "FeatureCollection" ? {
|
|
134
287
|
...t,
|
|
135
288
|
features: n
|
|
136
289
|
} : n;
|
|
137
290
|
}
|
|
138
|
-
var
|
|
139
|
-
projections:
|
|
140
|
-
getProjectedBounds:
|
|
141
|
-
setupTerritories:
|
|
142
|
-
simplifyGeoJSON: e
|
|
291
|
+
var N = {
|
|
292
|
+
projections: k,
|
|
293
|
+
getProjectedBounds: A,
|
|
294
|
+
setupTerritories: M,
|
|
295
|
+
simplifyGeoJSON: e,
|
|
296
|
+
geoToPath: O,
|
|
297
|
+
getGlobeMetrics: l,
|
|
298
|
+
getGlobeBounds: m,
|
|
299
|
+
isGlobePointVisible: g
|
|
143
300
|
};
|
|
144
301
|
//#endregion
|
|
145
|
-
export {
|
|
302
|
+
export { N as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { t } from "./dom-to-png-
|
|
2
|
+
import { t } from "./dom-to-png-BbwhsRIr.js";
|
|
3
3
|
//#region src/img.js
|
|
4
4
|
var n = /* @__PURE__ */ e({ default: () => f }), r = "[data-dom-to-png-ignore-layout]";
|
|
5
5
|
function i() {
|
|
@@ -346,7 +346,7 @@ function ne(e, t, n, r = 1) {
|
|
|
346
346
|
r
|
|
347
347
|
];
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function A(e, t) {
|
|
350
350
|
let n = e.length === 9 ? e.substring(0, 7) : e, r = e.length === 9 ? e.substring(7, 9) : null, i = (e) => ({
|
|
351
351
|
r: parseInt(e.substring(1, 3), 16),
|
|
352
352
|
g: parseInt(e.substring(3, 5), 16),
|
|
@@ -392,7 +392,7 @@ function re(e, t) {
|
|
|
392
392
|
let c = o(s);
|
|
393
393
|
return `#${(c.r << 16 | c.g << 8 | c.b).toString(16).padStart(6, "0")}` + (r || "");
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function re({ centerX: e, centerY: t, outerPoints: n, radius: r, rotation: i }) {
|
|
396
396
|
let a = Math.PI / n, o = i, s = "", c = [];
|
|
397
397
|
for (let i = 0; i < n * 2; i += 1) {
|
|
398
398
|
let n = e + Math.cos(i * a + o) * r, l = t + Math.sin(i * a + o) * r;
|
|
@@ -406,9 +406,9 @@ function ie({ centerX: e, centerY: t, outerPoints: n, radius: r, rotation: i })
|
|
|
406
406
|
coordinates: c
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function ie({ plot: e, radius: t, sides: n, rotation: r = 0 }) {
|
|
410
410
|
let i = e.x, a = e.y;
|
|
411
|
-
return
|
|
411
|
+
return re({
|
|
412
412
|
centerX: i,
|
|
413
413
|
centerY: a,
|
|
414
414
|
outerPoints: n / 2,
|
|
@@ -416,7 +416,7 @@ function ae({ plot: e, radius: t, sides: n, rotation: r = 0 }) {
|
|
|
416
416
|
rotation: r
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function ae({ centerX: e, centerY: t, innerCirclePoints: n, innerRadius: r, outerRadius: i }) {
|
|
420
420
|
let a = Math.PI / n, o = n * 2, s = "";
|
|
421
421
|
for (let n = 0; n < o; n += 1) {
|
|
422
422
|
let o = n % 2 == 0 ? i : r, c = e + Math.cos(n * a + 60) * o, l = t + Math.sin(n * a + 60) * o;
|
|
@@ -424,9 +424,9 @@ function oe({ centerX: e, centerY: t, innerCirclePoints: n, innerRadius: r, oute
|
|
|
424
424
|
}
|
|
425
425
|
return s;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function oe({ plot: e, radius: t, apexes: n = 5 }) {
|
|
428
428
|
let r = e.x, i = e.y, a = n, o = t * 3.5 / a;
|
|
429
|
-
return
|
|
429
|
+
return ae({
|
|
430
430
|
centerX: r,
|
|
431
431
|
centerY: i,
|
|
432
432
|
innerCirclePoints: a,
|
|
@@ -434,7 +434,7 @@ function se({ plot: e, radius: t, apexes: n = 5 }) {
|
|
|
434
434
|
outerRadius: o * 2
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function se({ series: e }) {
|
|
438
438
|
if (!Array.isArray(e) || e.length === 0) return "";
|
|
439
439
|
let t = Array.from(new Map(e.filter((e) => e && Number.isFinite(e.x) && Number.isFinite(e.y)).map((e) => [`${e.x},${e.y}`, {
|
|
440
440
|
x: +e.x,
|
|
@@ -462,13 +462,13 @@ function ce({ series: e }) {
|
|
|
462
462
|
for (let e of a) l += `${Math.round(e.x)},${Math.round(e.y)} `;
|
|
463
463
|
return l;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function j(e) {
|
|
466
466
|
return e * Math.PI / 180;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function ce(e, t, n) {
|
|
469
469
|
return Math.min(Math.max(e, t), n);
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function le(e) {
|
|
472
472
|
if (typeof e != "string") return null;
|
|
473
473
|
let t = e.trim();
|
|
474
474
|
if (!t.startsWith("#")) return null;
|
|
@@ -490,52 +490,52 @@ function ue(e) {
|
|
|
490
490
|
alpha: Number.parseInt(n.slice(6, 8), 16) / 255
|
|
491
491
|
} : null;
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function ue(e, t, n) {
|
|
494
494
|
let r = e / 255, i = t / 255, a = n / 255, o = (e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, s = o(r), c = o(i), l = o(a);
|
|
495
495
|
return .2126 * s + .7152 * c + .0722 * l;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function de(e, t = {
|
|
498
498
|
dark: "#000000",
|
|
499
499
|
light: "#FFFFFF"
|
|
500
500
|
}) {
|
|
501
501
|
if (!e) return t?.dark ?? "#000000";
|
|
502
|
-
let n =
|
|
502
|
+
let n = le(b(e));
|
|
503
503
|
if (!n) return t?.dark ?? "#000000";
|
|
504
|
-
let r =
|
|
504
|
+
let r = ue(n.red, n.green, n.blue);
|
|
505
505
|
return (n.alpha < 1 ? n.alpha * r + (1 - n.alpha) * 1 : r) > .3 ? t?.dark ?? "#000000" : t?.light ?? "#FFFFFF";
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function M(e) {
|
|
508
508
|
return typeof e == "object" && !!e && Object.prototype.toString.call(e) === "[object Object]" && (e.constructor === Object || e.constructor == null);
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function N(e) {
|
|
511
511
|
return !!e && (e.__v_isRef || e.__v_isReactive || e.__v_isReadonly || e.effect || e.dep || e.deps || e.subs);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function P(e) {
|
|
514
514
|
return e === "" ? "#000000" : e === "transparent" ? "#FFFFFF00" : b(e) ?? e;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function F(r, i = /* @__PURE__ */ new WeakSet()) {
|
|
517
517
|
let a = t(r);
|
|
518
|
-
if (!
|
|
518
|
+
if (!M(a) || i.has(a)) return a;
|
|
519
519
|
i.add(a);
|
|
520
520
|
for (let t in a) {
|
|
521
521
|
let r = e(a[t]) ? n(a[t]) : a[t];
|
|
522
522
|
if (t === "color" || t === "backgroundColor") {
|
|
523
|
-
typeof r == "string" && (a[t] =
|
|
523
|
+
typeof r == "string" && (a[t] = P(r));
|
|
524
524
|
continue;
|
|
525
525
|
}
|
|
526
526
|
if (t === "stroke") {
|
|
527
|
-
typeof r == "string" ? a[t] =
|
|
527
|
+
typeof r == "string" ? a[t] = P(r) : M(r) && !N(r) && F(r, i);
|
|
528
528
|
continue;
|
|
529
529
|
}
|
|
530
530
|
if (Array.isArray(r)) {
|
|
531
|
-
for (let e of r)
|
|
531
|
+
for (let e of r) M(e) && !N(e) && F(e, i);
|
|
532
532
|
continue;
|
|
533
533
|
}
|
|
534
|
-
|
|
534
|
+
M(r) && !N(r) && F(r, i);
|
|
535
535
|
}
|
|
536
536
|
return a;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function fe(e) {
|
|
539
539
|
let t = e?.length ?? 0;
|
|
540
540
|
if (t < 2) return {
|
|
541
541
|
x1: 0,
|
|
@@ -559,16 +559,16 @@ function pe(e) {
|
|
|
559
559
|
trend: (x - b) / S
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function pe(e) {
|
|
563
563
|
let t = Math.floor(e.length / 2), n = [...e].sort((e, t) => e - t);
|
|
564
564
|
return e.length % 2 == 0 ? (n[t - 1] + n[t]) / 2 : n[t];
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function me(e) {
|
|
567
567
|
let t = [];
|
|
568
568
|
for (let n = 0; n < e.length; n += 1) t.push(`${h(e[n].x)},${h(e[n].y)} `);
|
|
569
569
|
return t.join(" ").trim();
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function he(e, t = null) {
|
|
572
572
|
let n = (e) => e && e.value !== null && e.value !== void 0 && Number.isFinite(e.x) && Number.isFinite(e.y), r = [], i = [];
|
|
573
573
|
for (let t of e) n(t) ? i.push(t) : (i.length && r.push(i), i = []);
|
|
574
574
|
return i.length && r.push(i), r.map((e) => {
|
|
@@ -1196,7 +1196,7 @@ function rt(e, t = 100) {
|
|
|
1196
1196
|
function it({ series: e, center: t, maxRadius: n, hasGhost: r = !1 }) {
|
|
1197
1197
|
let i = 360 / (e.length - +!!r);
|
|
1198
1198
|
return e.map((e, r) => {
|
|
1199
|
-
let a = e * n, o = r * i, s = o + i, c = o + i / 2, l =
|
|
1199
|
+
let a = e * n, o = r * i, s = o + i, c = o + i / 2, l = j(o) - j(90), u = j(s) - j(90), d = j(c) - j(90), f = t.x + a * Math.cos(l), p = t.y + a * Math.sin(l), m = t.x + a * Math.cos(u), h = t.y + a * Math.sin(u), g = t.x + a * Math.cos(d), _ = t.y + a * Math.sin(d);
|
|
1200
1200
|
return {
|
|
1201
1201
|
path: `
|
|
1202
1202
|
M ${t.x} ${t.y}
|
|
@@ -1942,5 +1942,11 @@ function Gt(e, t = 1) {
|
|
|
1942
1942
|
}, r.onerror = () => n(null), r.src = e;
|
|
1943
1943
|
});
|
|
1944
1944
|
}
|
|
1945
|
+
function Kt(e, t) {
|
|
1946
|
+
let n = Math.floor(Number(t));
|
|
1947
|
+
if (!Number.isFinite(n) || n <= 0) return [];
|
|
1948
|
+
let r = b(e);
|
|
1949
|
+
return r ? Array.from({ length: n }, (e, t) => A(r, t / n)) : (console.error(`Vue Data Ui - createColorWheel - Invalid starting color: ${r}`), []);
|
|
1950
|
+
}
|
|
1945
1951
|
//#endregion
|
|
1946
|
-
export {
|
|
1952
|
+
export { Ie as $, ie as A, ge as At, ht as B, wt as Bt, Wt as C, at as Ct, ft as D, i as Dt, ct as E, Ce as Et, St as F, ut as Ft, R as G, Ze as Gt, Ke as H, Qe as Ht, Be as I, nt as It, je as J, Pt as Jt, Je as K, l as Kt, oe as L, Vt as Lt, I as M, g as Mt, L as N, Bt as Nt, pt as O, be as Ot, _t as P, lt as Pt, Et as Q, he as R, rt as Rt, qe as S, f as St, Se as T, st as Tt, q as U, Ht as Ut, gt as V, ye as Vt, Ge as W, v as Wt, Q as X, J as Y, Mt as Yt, xe as Z, ve as _, ke as _t, Ye as a, At as at, b, p as bt, Nt as c, Ot as ct, B as d, Ve as dt, Lt as et, pe as f, _ as ft, Ee as g, tt as gt, Te as h, se as ht, et as i, m as it, Ct as j, y as jt, it as k, Fe as kt, fe as l, Gt as lt, Ue as m, zt as mt, Me as n, jt as nt, kt as o, Pe as ot, _e as p, Xe as pt, we as q, $ as qt, de as r, V as rt, It as s, Dt as st, K as t, Rt as tt, z as u, We as ut, h as v, Ae as vt, Kt as w, ot as wt, F as x, Ut as xt, ce as y, Ne as yt, me as z, A as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./dom-to-png-
|
|
1
|
+
import { t as e } from "./dom-to-png-BbwhsRIr.js";
|
|
2
2
|
//#region src/pdf.js
|
|
3
3
|
async function t({ domElement: t, fileName: n, scale: r = 2, orientation: i = "auto", overflowTolerance: a = .2, aspectRatio: o = null }) {
|
|
4
4
|
if (!t) return Promise.reject("No domElement provided");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as a } from "./package-
|
|
1
|
+
import { A as e, L as t, b as n, et as r, tt as i } from "./lib-JqW18y5I.js";
|
|
2
|
+
import { t as a } from "./package-ByOT60IK.js";
|
|
3
3
|
//#region src/svg/utils/index.js
|
|
4
4
|
function o(e, t = 0) {
|
|
5
5
|
let n = Number(e);
|
|
@@ -12,15 +12,15 @@ function c(e) {
|
|
|
12
12
|
return Number.isFinite(Number(e));
|
|
13
13
|
}
|
|
14
14
|
function l(e, t = {}, n = "") {
|
|
15
|
-
let
|
|
16
|
-
return `<${e}${
|
|
15
|
+
let r = Object.entries(t).filter(([, e]) => e != null && e !== !1).map(([e, t]) => `${e}="${i(t)}"`).join(" ");
|
|
16
|
+
return `<${e}${r ? ` ${r}` : ""}>${n}</${e}>`;
|
|
17
17
|
}
|
|
18
18
|
function u(e, t = {}) {
|
|
19
|
-
let n = Object.entries(t).filter(([, e]) => e != null && e !== !1).map(([e, t]) => `${e}="${
|
|
19
|
+
let n = Object.entries(t).filter(([, e]) => e != null && e !== !1).map(([e, t]) => `${e}="${i(t)}"`).join(" ");
|
|
20
20
|
return `<${e}${n ? ` ${n}` : ""}/>`;
|
|
21
21
|
}
|
|
22
|
-
function d(
|
|
23
|
-
return l("text",
|
|
22
|
+
function d(e, t = {}) {
|
|
23
|
+
return l("text", t, r(e ?? ""));
|
|
24
24
|
}
|
|
25
25
|
function f(e) {
|
|
26
26
|
return [
|
|
@@ -32,10 +32,10 @@ function f(e) {
|
|
|
32
32
|
"star"
|
|
33
33
|
].includes(e) ? e : "circle";
|
|
34
34
|
}
|
|
35
|
-
function p({ dataCy:
|
|
36
|
-
let d = f(
|
|
35
|
+
function p({ dataCy: n, shape: r, plot: i, radius: a, fill: s, stroke: c, strokeWidth: l }) {
|
|
36
|
+
let d = f(r), p = o(i.x, 0), m = o(i.y, 0), h = o(a, 4);
|
|
37
37
|
if (d === "circle") return u("circle", {
|
|
38
|
-
"data-cy":
|
|
38
|
+
"data-cy": n,
|
|
39
39
|
cx: p,
|
|
40
40
|
cy: m,
|
|
41
41
|
r: h,
|
|
@@ -44,7 +44,7 @@ function p({ dataCy: e, shape: n, plot: r, radius: a, fill: s, stroke: c, stroke
|
|
|
44
44
|
"stroke-width": l
|
|
45
45
|
});
|
|
46
46
|
if (d === "star") return u("polygon", {
|
|
47
|
-
"data-cy":
|
|
47
|
+
"data-cy": n,
|
|
48
48
|
points: t({
|
|
49
49
|
plot: {
|
|
50
50
|
x: p,
|
|
@@ -79,8 +79,8 @@ function p({ dataCy: e, shape: n, plot: r, radius: a, fill: s, stroke: c, stroke
|
|
|
79
79
|
}
|
|
80
80
|
}[d];
|
|
81
81
|
return u("path", {
|
|
82
|
-
"data-cy":
|
|
83
|
-
d:
|
|
82
|
+
"data-cy": n,
|
|
83
|
+
d: e({
|
|
84
84
|
plot: {
|
|
85
85
|
x: p,
|
|
86
86
|
y: m
|
|
@@ -131,19 +131,19 @@ function x(e, t) {
|
|
|
131
131
|
fill: t ?? y(e.config)
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
function S({ content:
|
|
135
|
-
return String(
|
|
136
|
-
x:
|
|
137
|
-
dy: o === 0 ? 0 :
|
|
134
|
+
function S({ content: e, x: t, fontSize: n, fill: i, textAnchor: a }) {
|
|
135
|
+
return String(e).split(/\n/g).map((e, o) => l("tspan", {
|
|
136
|
+
x: t,
|
|
137
|
+
dy: o === 0 ? 0 : n * 1.2,
|
|
138
138
|
fill: i,
|
|
139
139
|
"text-anchor": a
|
|
140
|
-
}, e
|
|
140
|
+
}, r(e))).join("");
|
|
141
141
|
}
|
|
142
142
|
function C(e, t) {
|
|
143
143
|
return String(e).split("").reduce((e, n) => n === " " ? e + t * .28 : "ilI.,:;|!".includes(n) ? e + t * .24 : "()[]{}".includes(n) ? e + t * .34 : "0123456789%/".includes(n) ? e + t * .5 : n === n.toUpperCase() && /[A-Z]/.test(n) ? e + t * .62 : e + t * .52, 0);
|
|
144
144
|
}
|
|
145
|
-
function w(
|
|
146
|
-
return
|
|
145
|
+
function w(e) {
|
|
146
|
+
return e.svgTitle ? l("desc", { "aria-hidden": "true" }, r(e.svgTitle)) : "";
|
|
147
147
|
}
|
|
148
148
|
function T() {
|
|
149
149
|
return `<desc aria-hidden="true">Composed with Vue Data UI ${a}</desc>`;
|
package/dist/ssr/vue-ui-donut.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-donut-
|
|
1
|
+
import { t as e } from "../vue-ui-donut-BWDeVzLc.js";
|
|
2
2
|
export { e as createStaticVueUiDonut };
|
package/dist/ssr/vue-ui-xy.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-xy-
|
|
1
|
+
import { t as e } from "../vue-ui-xy-Cn9Q8YPr.js";
|
|
2
2
|
export { e as createStaticVueUiXy };
|
package/dist/ssr.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "./vue-ui-xy-
|
|
2
|
-
import { t } from "./vue-ui-donut-
|
|
1
|
+
import { t as e } from "./vue-ui-xy-Cn9Q8YPr.js";
|
|
2
|
+
import { t } from "./vue-ui-donut-BWDeVzLc.js";
|
|
3
3
|
export { t as createStaticVueUiDonut, e as createStaticVueUiXy };
|