vue-data-ui 3.22.14 → 3.23.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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-Ci7Burxz.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-hyW32gLf.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-DJbOzCDs.js → BaseIcon-BfndwIWE.js} +4 -3
- package/dist/{BaseLegendToggle-DJU4VsLO.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-CwhpsHIL.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-BVWrKEQl.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-rIsBpJMt.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/HillActions-BD9j_sOU.js +187 -0
- package/dist/{Legend-DSPDFP3n.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DZyYthbM.js → NonSvgPenAndPaper-4ypecDg1.js} +22 -22
- package/dist/{PackageVersion-BUmadjVO.js → PackageVersion-D6d8SCp9.js} +1 -1
- package/dist/{PenAndPaper-D--sbRMA.js → PenAndPaper-DAE-tnEQ.js} +14 -14
- package/dist/{Shape-Dmh9jBFh.js → Shape-C21CMlWS.js} +3 -3
- package/dist/Slicer-CIk57nL4.js +1163 -0
- package/dist/{SlicerPreview-CCIb3v8u.js → SlicerPreview-wUw1hFwe.js} +384 -370
- package/dist/{SparkTooltip-GjWLZ39s.js → SparkTooltip-CjsbIhzi.js} +6 -6
- package/dist/Title-BE3qg9xl.js +87 -0
- package/dist/{Tooltip-CEbqzIhL.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-BknvMNU1.js → UserOptions-Dt98of5H.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-hill.js +2 -0
- 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/composables.js +1 -1
- package/dist/{dom-to-png-BbPRUKX6.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/exposedLib-C0DPCgFj.js +28 -0
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-zY7_pJz1.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-DYdYmN_Q.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-C-QGo8GG.js → lib-Bttd6u5E.js} +27 -12
- package/dist/{package-QmuZcjWs.js → package-KvlL5CqE.js} +1 -1
- package/dist/{pdf-CuSS-5_j.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-DasqIYp9.js → render-common-oDYGTc5P.js} +21 -21
- 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/vue-data-ui.d.ts +496 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-D3scuR88.js} +774 -477
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BYfiWVP8.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Brg8mm5J.js} +3 -2
- package/dist/{usePrinter-C5ordS-4.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-D3jZ4lg1.js → vue-data-ui-DGWDPCwC.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-C_Su9fve.js +1849 -0
- package/dist/{vue-ui-accordion-FimGHtuy.js → vue-ui-accordion-BxGriZik.js} +4 -4
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +1264 -0
- package/dist/vue-ui-annotator-CCtnM8Rv.js +2886 -0
- package/dist/vue-ui-bullet-DLZr2Uk8.js +724 -0
- package/dist/{vue-ui-bump-CG3WTTFy.js → vue-ui-bump-CcdzJZ9n.js} +334 -297
- package/dist/{vue-ui-candlestick-C3smYvQA.js → vue-ui-candlestick-EEEt7ORC.js} +468 -442
- package/dist/vue-ui-carousel-table-BicIpNAD.js +463 -0
- package/dist/{vue-ui-chestnut-i7FYoqi8.js → vue-ui-chestnut-BI7mC5dd.js} +523 -497
- package/dist/{vue-ui-chord-DCZo55QA.js → vue-ui-chord-DXaq8ZMu.js} +432 -426
- package/dist/vue-ui-circle-pack-XHJBMG51.js +1659 -0
- package/dist/{vue-ui-cursor-DEf_l0Xc.js → vue-ui-cursor-BqHr0n1Z.js} +61 -61
- package/dist/{vue-ui-dag-beo3-quD.js → vue-ui-dag-jMLVoQkb.js} +677 -674
- package/dist/vue-ui-dashboard-DVAUFETR.js +520 -0
- package/dist/{vue-ui-digits-BnMqGAhl.js → vue-ui-digits-Dy4gG6qm.js} +59 -51
- package/dist/vue-ui-donut-C0cWRLbU.js +2441 -0
- package/dist/{vue-ui-donut-Cr0uTWGk.js → vue-ui-donut-CYpxGBhl.js} +117 -116
- package/dist/{vue-ui-donut-evolution-D54NP3FP.js → vue-ui-donut-evolution-DwR47A2r.js} +534 -448
- package/dist/vue-ui-dumbbell-DxVbRjKR.js +1582 -0
- package/dist/{vue-ui-flow-CnateJjc.js → vue-ui-flow-DWaZF4FS.js} +415 -407
- package/dist/vue-ui-funnel-Bmpx5GHR.js +797 -0
- package/dist/vue-ui-galaxy-CWBP9oH9.js +1111 -0
- package/dist/vue-ui-gauge-ByE_txav.js +953 -0
- package/dist/{vue-ui-geo-DnO1RIFR.js → vue-ui-geo-ZA7CBy8f.js} +372 -357
- package/dist/{vue-ui-gizmo-DyxeSKIk.js → vue-ui-gizmo-SQCou0bQ.js} +57 -49
- package/dist/{vue-ui-heatmap-6Ja5LKYE.js → vue-ui-heatmap-CHd9gs_p.js} +473 -465
- package/dist/vue-ui-hill-BT183G-_.js +1768 -0
- package/dist/vue-ui-history-plot-BwnlC1mx.js +1723 -0
- package/dist/vue-ui-horizontal-bar-BUar2HUH.js +1733 -0
- package/dist/vue-ui-kpi-BF_9WWoo.js +104 -0
- package/dist/vue-ui-mini-loader-CvfukjXi.js +133 -0
- package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
- package/dist/{vue-ui-mood-radar-TWo57SKD.js → vue-ui-mood-radar-_zpbmvJs.js} +349 -341
- package/dist/{vue-ui-nested-donuts-W0TpPXIQ.js → vue-ui-nested-donuts-qHZAJ70u.js} +452 -416
- package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-BUwt-apg.js +1455 -0
- package/dist/{vue-ui-quadrant-BM9VLDcC.js → vue-ui-quadrant-CoROD3er.js} +636 -628
- package/dist/vue-ui-quick-chart-BcH7eY4-.js +2397 -0
- package/dist/{vue-ui-radar-BVz6Uq2k.js → vue-ui-radar-DGbaXGme.js} +380 -334
- package/dist/vue-ui-rating-Bo3zD3yW.js +360 -0
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +925 -0
- package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
- package/dist/{vue-ui-rings-DEZrfBYX.js → vue-ui-rings-BJUBn8_b.js} +450 -424
- package/dist/{vue-ui-scatter-owaIOpD0.js → vue-ui-scatter-Pcft1bUt.js} +721 -702
- package/dist/{vue-ui-skeleton-Cxszgax7.js → vue-ui-skeleton-EeJcGbCo.js} +395 -387
- package/dist/{vue-ui-smiley-DZBPvVeN.js → vue-ui-smiley-D0gibt5c.js} +128 -120
- package/dist/{vue-ui-spark-trend-CW4cLUqP.js → vue-ui-spark-trend-BRoQ7JpQ.js} +132 -117
- package/dist/{vue-ui-sparkbar-DeSSqv4v.js → vue-ui-sparkbar-DFp2k7-7.js} +119 -111
- package/dist/{vue-ui-sparkgauge-VSiPVgUQ.js → vue-ui-sparkgauge-D0Bq85Hs.js} +76 -68
- package/dist/vue-ui-sparkhistogram-BPln7v63.js +590 -0
- package/dist/{vue-ui-sparkline-DyZdAQMl.js → vue-ui-sparkline-C6Q45Dqp.js} +391 -365
- package/dist/vue-ui-sparkstackbar-CjK4bcQg.js +692 -0
- package/dist/vue-ui-stackbar-Ca8EPf3e.js +2353 -0
- package/dist/vue-ui-stackline-Pz5WWlWT.js +2467 -0
- package/dist/{vue-ui-strip-plot-BquHFKHA.js → vue-ui-strip-plot-Dw4MGDSO.js} +508 -487
- package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
- package/dist/vue-ui-table-heatmap-ljeYW8Wc.js +364 -0
- package/dist/{vue-ui-table-sparkline-CyGqW88t.js → vue-ui-table-sparkline-iRFmtK5S.js} +207 -181
- package/dist/vue-ui-thermometer-D8uiOaeA.js +777 -0
- package/dist/{vue-ui-timer-BVjydam-.js → vue-ui-timer-CYw983oL.js} +66 -58
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
- package/dist/vue-ui-treemap-h4VbnqPA.js +1760 -0
- package/dist/vue-ui-waffle-cu0w_s6L.js +1412 -0
- package/dist/{vue-ui-wheel-D-VVxvxY.js → vue-ui-wheel-tLvJadk5.js} +225 -217
- package/dist/{vue-ui-word-cloud-CcRch2t2.js → vue-ui-word-cloud-BjpGSsod.js} +440 -432
- package/dist/{vue-ui-world-BJq4PZqF.js → vue-ui-world-B4fCS3jN.js} +350 -342
- package/dist/{vue-ui-xy-D64AB5Qy.js → vue-ui-xy-7ZT9IRD8.js} +1639 -1595
- package/dist/{vue-ui-xy-canvas-mDqjPtxh.js → vue-ui-xy-canvas-BnLEwBpi.js} +459 -431
- package/dist/{vue-ui-xy-B8XBn08L.js → vue-ui-xy-gyNS0yH0.js} +216 -213
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +4 -4
- package/dist/Slicer-JdCzBeYM.js +0 -1149
- package/dist/Title-Thf71-8D.js +0 -87
- package/dist/exposedLib-CfZhN94x.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-CSzmRywi.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D9-jAA5Z.js +0 -1824
- package/dist/vue-ui-age-pyramid-D4f-Agb7.js +0 -1246
- package/dist/vue-ui-annotator-P9E8hpJl.js +0 -2905
- package/dist/vue-ui-bullet-CKg0bShN.js +0 -709
- package/dist/vue-ui-carousel-table-BD_fxykj.js +0 -455
- package/dist/vue-ui-circle-pack--DUVDQx3.js +0 -1610
- package/dist/vue-ui-dashboard-mGLvP0UA.js +0 -512
- package/dist/vue-ui-donut-BCLG16Vb.js +0 -2418
- package/dist/vue-ui-dumbbell-DZ78WASa.js +0 -1564
- package/dist/vue-ui-funnel-DSpUMyDO.js +0 -781
- package/dist/vue-ui-galaxy-CxKafV1X.js +0 -1076
- package/dist/vue-ui-gauge-CegUK3FD.js +0 -925
- package/dist/vue-ui-history-plot-XOexkxeI.js +0 -1725
- package/dist/vue-ui-horizontal-bar-BCTdLxjK.js +0 -1689
- package/dist/vue-ui-kpi-EenGDZ-l.js +0 -96
- package/dist/vue-ui-mini-loader-CA7XxPk7.js +0 -125
- package/dist/vue-ui-molecule-5rpD2mlK.js +0 -932
- package/dist/vue-ui-onion-CDC9AGh1.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-DUOI7HoD.js +0 -1412
- package/dist/vue-ui-quick-chart-B8XCKef-.js +0 -2443
- package/dist/vue-ui-rating-B7ApWpIJ.js +0 -352
- package/dist/vue-ui-relation-circle-LVOR5VZ6.js +0 -917
- package/dist/vue-ui-ridgeline-BlyzSJHc.js +0 -1627
- package/dist/vue-ui-sparkhistogram-B5252IVr.js +0 -575
- package/dist/vue-ui-sparkstackbar-CiLgNzaI.js +0 -674
- package/dist/vue-ui-stackbar-Bwz6Z7M4.js +0 -2322
- package/dist/vue-ui-stackline-DX3YDRSg.js +0 -2427
- package/dist/vue-ui-table-DEhy61ln.js +0 -1339
- package/dist/vue-ui-table-heatmap-1LTxQfQX.js +0 -338
- package/dist/vue-ui-thermometer-CNvTQJUq.js +0 -769
- package/dist/vue-ui-tiremarks-3ZBAE8SA.js +0 -551
- package/dist/vue-ui-treemap-FqqXQvZw.js +0 -1727
- package/dist/vue-ui-waffle-B37Yx9uw.js +0 -1367
|
@@ -364,9 +364,7 @@ function A(e, t) {
|
|
|
364
364
|
case t:
|
|
365
365
|
a = (n - e) / c + 2;
|
|
366
366
|
break;
|
|
367
|
-
case n:
|
|
368
|
-
a = (e - t) / c + 4;
|
|
369
|
-
break;
|
|
367
|
+
case n: a = (e - t) / c + 4;
|
|
370
368
|
}
|
|
371
369
|
a /= 6;
|
|
372
370
|
}
|
|
@@ -597,7 +595,11 @@ function I(e) {
|
|
|
597
595
|
let t = e.length - 1, n = [`${h(e[0].x)},${h(e[0].y)}`], r = [], i = [], a = [], o = [];
|
|
598
596
|
for (let n = 0; n < t; n += 1) r[n] = e[n + 1].x - e[n].x, i[n] = e[n + 1].y - e[n].y, a[n] = i[n] / r[n];
|
|
599
597
|
o[0] = a[0], o[t] = a[t - 1];
|
|
600
|
-
for (let e = 1; e < t; e += 1) a[e - 1] * a[e] <= 0
|
|
598
|
+
for (let e = 1; e < t; e += 1) if (a[e - 1] * a[e] <= 0) o[e] = 0;
|
|
599
|
+
else {
|
|
600
|
+
let t = 2 * a[e - 1] * a[e] / (a[e - 1] + a[e]);
|
|
601
|
+
o[e] = t;
|
|
602
|
+
}
|
|
601
603
|
for (let r = 0; r < t; r += 1) {
|
|
602
604
|
let t = e[r].x, i = e[r].y, a = e[r + 1].x, s = e[r + 1].y, c = o[r], l = o[r + 1], u = t + (a - t) / 3, d = i + c * (a - t) / 3, f = a - (a - t) / 3, p = s - l * (a - t) / 3;
|
|
603
605
|
n.push(`C ${h(u)},${h(d)} ${h(f)},${h(p)} ${h(a)},${h(s)}`);
|
|
@@ -657,7 +659,8 @@ function B(e) {
|
|
|
657
659
|
if (Math.abs(n - a) < o) {
|
|
658
660
|
a = e;
|
|
659
661
|
break;
|
|
660
|
-
}
|
|
662
|
+
}
|
|
663
|
+
n < a ? r = e : i = e;
|
|
661
664
|
}
|
|
662
665
|
let { x: s, y: c } = t.getPointAtLength(a);
|
|
663
666
|
return {
|
|
@@ -1141,9 +1144,7 @@ function Qe(e) {
|
|
|
1141
1144
|
y: l[u + 5]
|
|
1142
1145
|
}), i = l[u + 4], a = l[u + 5], u += 6;
|
|
1143
1146
|
break;
|
|
1144
|
-
case "Z":
|
|
1145
|
-
c += t(i, a, o, s), i = o, a = s;
|
|
1146
|
-
break;
|
|
1147
|
+
case "Z": c += t(i, a, o, s), i = o, a = s;
|
|
1147
1148
|
}
|
|
1148
1149
|
}), c;
|
|
1149
1150
|
}
|
|
@@ -1197,7 +1198,8 @@ function it(e, t = [], n = !1) {
|
|
|
1197
1198
|
return t.forEach((e) => {
|
|
1198
1199
|
n.hasOwnProperty(e) && !(/* @__PURE__ */ "NAME.name.TITLE.title.DESCRIPTION.description.LABEL.label.TIME.time.PERIOD.period.MONTH.month.YEAR.year.MONTHS.months.YEARS.years.DAY.day.DAYS.days.HOUR.hour.HOURS.hours".split(".")).includes(e) && Array.isArray(n[e]) && (n[e] = i(n[e]));
|
|
1199
1200
|
}), Object.fromEntries(Object.entries(n).map(([e, t]) => [e, i(t)]));
|
|
1200
|
-
}
|
|
1201
|
+
}
|
|
1202
|
+
return r(e);
|
|
1201
1203
|
}
|
|
1202
1204
|
return i(e);
|
|
1203
1205
|
}
|
|
@@ -1453,7 +1455,11 @@ function yt(e) {
|
|
|
1453
1455
|
let t = r.length - 1, i = [], a = [], o = [], s = [];
|
|
1454
1456
|
for (let e = 0; e < t; e += 1) i[e] = r[e + 1].x - r[e].x, a[e] = r[e + 1].y - r[e].y, o[e] = a[e] / i[e];
|
|
1455
1457
|
s[0] = o[0], s[t] = o[t - 1];
|
|
1456
|
-
for (let e = 1; e < t; e += 1) o[e - 1] * o[e] <= 0
|
|
1458
|
+
for (let e = 1; e < t; e += 1) if (o[e - 1] * o[e] <= 0) s[e] = 0;
|
|
1459
|
+
else {
|
|
1460
|
+
let t = 2 * o[e - 1] * o[e] / (o[e - 1] + o[e]);
|
|
1461
|
+
s[e] = t;
|
|
1462
|
+
}
|
|
1457
1463
|
n += `${e === 0 ? "" : "M"}${h(r[0].x)},${h(r[0].y)} `;
|
|
1458
1464
|
for (let e = 0; e < t; e += 1) {
|
|
1459
1465
|
let t = r[e].x, i = r[e].y, a = r[e + 1].x, o = r[e + 1].y, c = s[e], l = s[e + 1], u = t + (a - t) / 3, d = i + c * (a - t) / 3, f = a - (a - t) / 3, p = o - l * (a - t) / 3;
|
|
@@ -1545,7 +1551,11 @@ function Tt(e, t, n = !1, r = !0) {
|
|
|
1545
1551
|
let n = e.length - 1, i = [], a = [], o = [], s = [];
|
|
1546
1552
|
for (let t = 0; t < n; t += 1) i[t] = e[t + 1].x - e[t].x, a[t] = e[t + 1].y - e[t].y, o[t] = a[t] / i[t];
|
|
1547
1553
|
s[0] = o[0], s[n] = o[n - 1];
|
|
1548
|
-
for (let e = 1; e < n; e += 1) o[e - 1] * o[e] <= 0
|
|
1554
|
+
for (let e = 1; e < n; e += 1) if (o[e - 1] * o[e] <= 0) s[e] = 0;
|
|
1555
|
+
else {
|
|
1556
|
+
let t = 2 * o[e - 1] * o[e] / (o[e - 1] + o[e]);
|
|
1557
|
+
s[e] = t;
|
|
1558
|
+
}
|
|
1549
1559
|
let c = `M${e[0].x},${t}`;
|
|
1550
1560
|
c += ` L${e[0].x},${e[0].y}`;
|
|
1551
1561
|
for (let t = 0; t < n; t += 1) {
|
|
@@ -1997,5 +2007,10 @@ function Yt(e, t) {
|
|
|
1997
2007
|
let r = b(e);
|
|
1998
2008
|
return r ? Array.from({ length: n }, (e, t) => A(r, t / n)) : (console.error(`Vue Data Ui - createColorWheel - Invalid starting color: ${r}`), []);
|
|
1999
2009
|
}
|
|
2010
|
+
function Xt(e, t) {
|
|
2011
|
+
if (!t || !e) return e;
|
|
2012
|
+
let n = String(e ?? ""), r = Math.max(0, Number(t) || 0);
|
|
2013
|
+
return n.length > r ? `${n.slice(0, r)}...` : n;
|
|
2014
|
+
}
|
|
2000
2015
|
//#endregion
|
|
2001
|
-
export {
|
|
2016
|
+
export { Ce as $, ht as A, Se as At, ge as B, at as Bt, F as C, Kt as Ct, we as D, lt as Dt, Yt as E, ct as Et, L as F, Ut as Ft, K as G, Gt, _t as H, Et as Ht, yt as I, dt as It, Xe as J, l as Jt, qe as K, v as Kt, wt as L, ft as Lt, ie as M, ve as Mt, Tt as N, y as Nt, ut as O, Te as Ot, I as P, g as Pt, Z as Q, He as R, it as Rt, b as S, p as St, qt as T, st as Tt, vt as U, xe as Ut, he as V, A as Vt, Je as W, et as Wt, Ne as X, Rt as Xt, Ee as Y, Lt as Yt, q as Z, Pt as Zt, De as _, se as _t, Xt as a, B as at, h as b, Me as bt, $ as c, Ie as ct, fe as d, Jt as dt, Ot as et, R as f, Ke as ft, Ge as g, Ht as gt, ye as h, Qe as ht, nt as i, Nt as it, ot as j, Le as jt, mt as k, i as kt, It as l, kt as lt, pe as m, _ as mt, Pe as n, Bt as nt, Ze as o, m as ot, z as p, Ue as pt, _e as q, $e as qt, de as r, Vt as rt, jt as s, Mt as st, G as t, Re as tt, me as u, At as ut, Oe as v, rt as vt, Ye as w, f as wt, ce as x, Fe as xt, be as y, je as yt, oe as z, Wt as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./dom-to-png-
|
|
1
|
+
import { t as e } from "./dom-to-png-BYIvdTe8.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 { M as e, S as t, nt as n, rt as r, z as i } from "./lib-Bttd6u5E.js";
|
|
2
|
+
import { t as a } from "./package-KvlL5CqE.js";
|
|
3
3
|
//#region src/svg/utils/index.js
|
|
4
4
|
function o(e, t = 0) {
|
|
5
5
|
let n = Number(e);
|
|
@@ -11,16 +11,16 @@ function s(e) {
|
|
|
11
11
|
function c(e) {
|
|
12
12
|
return Number.isFinite(Number(e));
|
|
13
13
|
}
|
|
14
|
-
function l(e, t = {},
|
|
15
|
-
let i = Object.entries(t).filter(([, e]) => e != null && e !== !1).map(([e, t]) => `${e}="${
|
|
16
|
-
return `<${e}${i ? ` ${i}` : ""}>${
|
|
14
|
+
function l(e, t = {}, n = "") {
|
|
15
|
+
let i = Object.entries(t).filter(([, e]) => e != null && e !== !1).map(([e, t]) => `${e}="${r(t)}"`).join(" ");
|
|
16
|
+
return `<${e}${i ? ` ${i}` : ""}>${n}</${e}>`;
|
|
17
17
|
}
|
|
18
18
|
function u(e, t = {}) {
|
|
19
|
-
let
|
|
20
|
-
return `<${e}${
|
|
19
|
+
let n = Object.entries(t).filter(([, e]) => e != null && e !== !1).map(([e, t]) => `${e}="${r(t)}"`).join(" ");
|
|
20
|
+
return `<${e}${n ? ` ${n}` : ""}/>`;
|
|
21
21
|
}
|
|
22
22
|
function d(e, t = {}) {
|
|
23
|
-
return l("text", t,
|
|
23
|
+
return l("text", t, n(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: t, shape: n, plot: r, radius: a, fill: s, stroke: c, strokeWidth: l }) {
|
|
36
|
+
let d = f(n), p = o(r.x, 0), m = o(r.y, 0), h = o(a, 4);
|
|
37
37
|
if (d === "circle") return u("circle", {
|
|
38
|
-
"data-cy":
|
|
38
|
+
"data-cy": t,
|
|
39
39
|
cx: p,
|
|
40
40
|
cy: m,
|
|
41
41
|
r: h,
|
|
@@ -44,8 +44,8 @@ function p({ dataCy: n, shape: r, plot: i, 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":
|
|
48
|
-
points:
|
|
47
|
+
"data-cy": t,
|
|
48
|
+
points: i({
|
|
49
49
|
plot: {
|
|
50
50
|
x: p,
|
|
51
51
|
y: m
|
|
@@ -79,8 +79,8 @@ function p({ dataCy: n, shape: r, plot: i, 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": t,
|
|
83
|
+
d: e({
|
|
84
84
|
plot: {
|
|
85
85
|
x: p,
|
|
86
86
|
y: m
|
|
@@ -115,8 +115,8 @@ function _(e, t, n) {
|
|
|
115
115
|
let r = m(e, t, void 0);
|
|
116
116
|
return r === void 0 ? g(e, t, n) : r;
|
|
117
117
|
}
|
|
118
|
-
function v(e,
|
|
119
|
-
return
|
|
118
|
+
function v(e, n = "#000000") {
|
|
119
|
+
return t(e) || e || n;
|
|
120
120
|
}
|
|
121
121
|
function y(e, t = "#FFFFFF") {
|
|
122
122
|
return v(g(e, "backgroundColor", t), t);
|
|
@@ -131,19 +131,19 @@ function x(e, t) {
|
|
|
131
131
|
fill: t ?? y(e.config)
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
function S({ content: e, x: t, fontSize:
|
|
134
|
+
function S({ content: e, x: t, fontSize: r, fill: i, textAnchor: a }) {
|
|
135
135
|
return String(e).split(/\n/g).map((e, o) => l("tspan", {
|
|
136
136
|
x: t,
|
|
137
|
-
dy: o === 0 ? 0 :
|
|
137
|
+
dy: o === 0 ? 0 : r * 1.2,
|
|
138
138
|
fill: i,
|
|
139
139
|
"text-anchor": a
|
|
140
|
-
},
|
|
140
|
+
}, n(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
145
|
function w(e) {
|
|
146
|
-
return e.svgTitle ? l("desc", { "aria-hidden": "true" },
|
|
146
|
+
return e.svgTitle ? l("desc", { "aria-hidden": "true" }, n(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-CYpxGBhl.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-gyNS0yH0.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-gyNS0yH0.js";
|
|
2
|
+
import { t } from "./vue-ui-donut-CYpxGBhl.js";
|
|
3
3
|
export { t as createStaticVueUiDonut, e as createStaticVueUiXy };
|