vue-data-ui 3.22.0 → 3.22.2
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-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
- package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
- package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
- package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
- package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
- package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
- package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
- package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
- package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-Dx81ZIAL.js} +1 -1
- package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
- package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
- package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
- package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
- package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
- package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
- package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
- package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
- package/dist/exposedLib-CffbQxjN.js +19 -0
- package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
- package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
- package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
- package/dist/{package-0oRlvBuX.js → package-CILLITOI.js} +1 -1
- package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
- package/dist/{render-common-DSiH7qj-.js → render-common-bMAFQ_qf.js} +2 -2
- 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 +7 -10
- package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
- package/dist/{useConfig-Br1uzq_L.js → useConfig-Bf_EBbe3.js} +4 -1
- package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
- package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-Byts-nf-.js} +1 -1
- package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DD-txoS1.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +1757 -0
- package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Di_givzQ.js} +4 -4
- package/dist/vue-ui-age-pyramid-CTwMfsqS.js +1238 -0
- package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-tRkLFMQ9.js} +60 -60
- package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-9gtGJaGb.js} +23 -23
- package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-BJ5O8Mps.js} +400 -400
- package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-CJ_VVYbJ.js} +50 -50
- package/dist/vue-ui-carousel-table-8s8BSy-K.js +455 -0
- package/dist/vue-ui-chestnut-D3-ck2h2.js +2010 -0
- package/dist/vue-ui-chord-1BitQtEw.js +1391 -0
- package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DVMhDFKU.js} +44 -44
- package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-D7yh10hX.js} +61 -61
- package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag--LFEAAf_.js} +18 -18
- package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-COeO878g.js} +70 -70
- package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-C50FVr7C.js} +4 -4
- package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-BzKXqQA2.js} +160 -160
- package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-NHjQzFO5.js} +474 -474
- package/dist/vue-ui-donut-evolution-lPkwit2C.js +1510 -0
- package/dist/vue-ui-dumbbell-hlEfvbbf.js +1530 -0
- package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-Bg_OSszc.js} +43 -43
- package/dist/vue-ui-funnel-B_bK0jJB.js +777 -0
- package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-WVCUzcYc.js} +301 -301
- package/dist/vue-ui-gauge-Cqeko0wA.js +920 -0
- package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-DtzXRvmx.js} +22 -22
- package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-hIFd7qck.js} +4 -4
- package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-yPlwc3l_.js} +95 -95
- package/dist/vue-ui-history-plot-BGmcDg2w.js +1554 -0
- package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-CJciNHpT.js} +264 -264
- package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DmSe1QGb.js} +4 -4
- package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-CqxI6DwN.js} +3 -3
- package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-w-94Uktn.js} +181 -181
- package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-B3OGWGHR.js} +29 -29
- package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-Dv_yE5EV.js} +211 -211
- package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-BQbI0Vxd.js} +34 -34
- package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-ColST3Jj.js} +40 -40
- package/dist/vue-ui-quadrant-BB7qdXK0.js +1978 -0
- package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-CGDeo3Fx.js} +358 -358
- package/dist/vue-ui-radar-DqDn14DL.js +1281 -0
- package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-ChDwpol2.js} +34 -34
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +924 -0
- package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-Cq8z57xB.js} +219 -219
- package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-Ds-sgNPK.js} +36 -36
- package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-BgOVUzQ3.js} +75 -75
- package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DJ5KAbfV.js} +42 -42
- package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-fFrNX-Gl.js} +17 -17
- package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-D6OBWxmg.js} +92 -92
- package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-CtCP8O44.js} +78 -78
- package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-CZDkyViI.js} +38 -38
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +560 -0
- package/dist/vue-ui-sparkline-CJKE7Xcl.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BSV0M-2u.js} +162 -162
- package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-pnlYCnTj.js} +67 -67
- package/dist/vue-ui-stackline-DS_MPmc1.js +2398 -0
- package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot-DSKOrJZX.js} +49 -49
- package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-c1FPEwLM.js} +87 -87
- package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-CMQJXnP8.js} +17 -17
- package/dist/vue-ui-table-sparkline-CAS9Pk60.js +712 -0
- package/dist/vue-ui-thermometer-w3eeJv9s.js +763 -0
- package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-CSP48eS-.js} +6 -6
- package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-DJvXj1P3.js} +19 -19
- package/dist/vue-ui-treemap-BaOMXTR1.js +1587 -0
- package/dist/vue-ui-waffle-Bo22Ph8n.js +1362 -0
- package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-CbL52G-w.js} +51 -51
- package/dist/vue-ui-word-cloud-BqOCyp7c.js +1723 -0
- package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-BkjzCcVh.js} +445 -445
- package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CVDNhnDY.js} +162 -162
- package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DuwLRfr4.js} +537 -534
- package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CXqGVMeQ.js} +65 -65
- package/package.json +2 -2
- package/dist/exposedLib-BJbE_A8E.js +0 -19
- package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
- package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
- package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
- package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
- package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
- package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
- package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
- package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
- package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
- package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
- package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
- package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
- package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
- package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
- package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
- package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
- package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
- package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
- package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
- package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
- package/dist/vue-ui-word-cloud-BqsUdsCY.js +0 -1656
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Ct as t,
|
|
3
|
-
import { t as f } from "./useConfig-
|
|
4
|
-
import { t as p } from "./usePrinter-
|
|
2
|
+
import { Ct as t, Et as n, G as r, H as i, It as a, Ut as o, X as s, i as c, t as l, v as u, wt as d } from "./lib-CXicicWN.js";
|
|
3
|
+
import { t as f } from "./useConfig-Bf_EBbe3.js";
|
|
4
|
+
import { t as p } from "./usePrinter-Dng0UK-G.js";
|
|
5
5
|
import { n as m, t as h } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as g } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as _ } from "./useNestedProp-
|
|
7
|
+
import { t as _ } from "./useNestedProp-APyFoLCQ.js";
|
|
8
8
|
import { t as v } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as y } from "./img-
|
|
10
|
-
import { n as b } from "./Title-
|
|
9
|
+
import { t as y } from "./img-BCAOkqfM.js";
|
|
10
|
+
import { n as b } from "./Title-CVYf1f8m.js";
|
|
11
11
|
import { t as x } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as ee } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as te } from "./useResponsive-BfnK0KxU.js";
|
|
@@ -119,7 +119,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
119
119
|
c5f7f2ee: It.value,
|
|
120
120
|
c5f82dc8: Lt.value
|
|
121
121
|
}));
|
|
122
|
-
let Re = ce(() => import("./PenAndPaper-
|
|
122
|
+
let Re = ce(() => import("./PenAndPaper-DJIIG6dv.js").then((e) => e.t)), ze = ce(() => import("./UserOptions-xqbNpHi2.js").then((e) => e.n)), Be = ce(() => import("./PackageVersion-Dx81ZIAL.js").then((e) => e.t)), { vue_ui_wheel: Ve } = f(), { isThemeValid: He, warnInvalidTheme: Ue } = v(), R = re(), z = e, We = _e, Ge = w(() => !!z.dataset && Object.keys(z.dataset).length), B = N(i()), Ke = N(null), qe = N(0), V = N(null), Je = N(null), Ye = N(null), Xe = N(null), Ze = N(0), Qe = N(!1), $e = N(!1), H = N(st()), et = w(() => H.value.userOptions.useCursorPointer), tt = w(() => o({
|
|
123
123
|
defaultConfig: {
|
|
124
124
|
userOptions: { show: !1 },
|
|
125
125
|
style: { chart: {
|
|
@@ -140,7 +140,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
140
140
|
FINAL_CONFIG: H,
|
|
141
141
|
prepareConfig: st,
|
|
142
142
|
skeletonDataset: z.config?.skeletonDataset ?? { percentage: 50 },
|
|
143
|
-
skeletonConfig:
|
|
143
|
+
skeletonConfig: o({
|
|
144
144
|
defaultConfig: H.value,
|
|
145
145
|
userConfig: tt.value
|
|
146
146
|
})
|
|
@@ -194,7 +194,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
194
194
|
});
|
|
195
195
|
let mt = w(() => !!H.value.debug);
|
|
196
196
|
function ht() {
|
|
197
|
-
if (
|
|
197
|
+
if (n(z.dataset) && s({
|
|
198
198
|
componentName: "VueUiWheel",
|
|
199
199
|
type: "dataset",
|
|
200
200
|
debug: mt.value
|
|
@@ -238,10 +238,10 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
238
238
|
let n = e.replace("#", ""), r = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), a = parseInt(n.substring(4, 6), 16), o = 1 - Math.min(1, Math.max(0, H.value.style.chart.layout.wheel.ticks.shadeColorRatio3d)) * t, s = Math.max(0, Math.min(255, Math.round(r * o))), c = Math.max(0, Math.min(255, Math.round(i * o))), l = Math.max(0, Math.min(255, Math.round(a * o)));
|
|
239
239
|
return `#${s.toString(16).padStart(2, "0")}${c.toString(16).padStart(2, "0")}${l.toString(16).padStart(2, "0")}`;
|
|
240
240
|
}
|
|
241
|
-
function yt({ cx: e, cy: t, radius:
|
|
242
|
-
let p = s * Math.PI / 180, m =
|
|
243
|
-
for (let
|
|
244
|
-
let
|
|
241
|
+
function yt({ cx: e, cy: t, radius: n, innerRatio: r = .8, count: i = 120, startDeg: o = 0, axDeg: s = 50, f: c = 520, baseStroke: l = 5, activeColor: u, inactiveColor: d, getActive: f }) {
|
|
242
|
+
let p = s * Math.PI / 180, m = n, h = n * r, g = [];
|
|
243
|
+
for (let n = 0; n < i; n += 1) {
|
|
244
|
+
let r = (n / i * 360 + o) * Math.PI / 180, s = e + m * Math.cos(r), _ = t + m * Math.sin(r), v = e + h * Math.cos(r), y = t + h * Math.sin(r), b = [
|
|
245
245
|
s - e,
|
|
246
246
|
_ - t,
|
|
247
247
|
0
|
|
@@ -257,9 +257,9 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
257
257
|
ne,
|
|
258
258
|
re,
|
|
259
259
|
ie
|
|
260
|
-
], c), oe = e + C, se = t + w, ce = e + E, O = t + D, le = (Math.max(S, ie) - -m * Math.sin(p)) / (2 * m * Math.sin(p) || 1), k = f ? f(
|
|
260
|
+
], c), oe = e + C, se = t + w, ce = e + E, O = t + D, le = (Math.max(S, ie) - -m * Math.sin(p)) / (2 * m * Math.sin(p) || 1), k = f ? f(n) : !0, A = H.value.style.chart.layout.wheel.ticks.gradient.show ? a(u, n * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : u, j = vt(k ? A : d, le), ue = Math.max(1.25, l * T * (Math.min(W.value.width, W.value.height) / 360));
|
|
261
261
|
g.push({
|
|
262
|
-
i:
|
|
262
|
+
i: n,
|
|
263
263
|
x1: oe,
|
|
264
264
|
y1: se,
|
|
265
265
|
x2: ce,
|
|
@@ -273,7 +273,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
273
273
|
}
|
|
274
274
|
let bt = w(() => {
|
|
275
275
|
if (!H.value.layout === "3d") return null;
|
|
276
|
-
let e = Z.value, t = H.value.style.chart.layout.wheel.ticks.gradient.show ?
|
|
276
|
+
let e = Z.value, t = H.value.style.chart.layout.wheel.ticks.gradient.show ? a(H.value.style.chart.layout.wheel.ticks.activeColor, 0) : H.value.style.chart.layout.wheel.ticks.activeColor, n = H.value.style.chart.layout.wheel.ticks.inactiveColor, r = H.value.style.chart.layout.wheel.ticks.strokeWidth;
|
|
277
277
|
return yt({
|
|
278
278
|
cx: K.value.centerX,
|
|
279
279
|
cy: K.value.centerY,
|
|
@@ -283,9 +283,9 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
283
283
|
startDeg: -90,
|
|
284
284
|
axDeg: H.value.style.chart.layout.wheel.tiltAngle3d,
|
|
285
285
|
f: Math.min(W.value.width, W.value.height) * 1.45,
|
|
286
|
-
baseStroke:
|
|
286
|
+
baseStroke: r,
|
|
287
287
|
activeColor: t,
|
|
288
|
-
inactiveColor:
|
|
288
|
+
inactiveColor: n,
|
|
289
289
|
getActive: (e) => q.value > e * Q.value
|
|
290
290
|
});
|
|
291
291
|
});
|
|
@@ -371,14 +371,14 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
371
371
|
s: d
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
function Tt({ cx: e, cy: t, radius:
|
|
375
|
-
let p = s * Math.PI / 180, m =
|
|
376
|
-
for (let
|
|
377
|
-
let
|
|
374
|
+
function Tt({ cx: e, cy: t, radius: n, innerRatio: r = .8, count: i = 120, startDeg: o = -87, axDeg: s = 45, f: c = 600, activeColor: l, inactiveColor: u, getActive: d, Y: f = 0 }) {
|
|
375
|
+
let p = s * Math.PI / 180, m = n, h = n * r, g = 2 * Math.PI / i, _ = [];
|
|
376
|
+
for (let n = 0; n < i; n += 1) {
|
|
377
|
+
let r = o * Math.PI / 180 + g * n, s = r + g * Math.min(1, H.value.style.chart.layout.wheel.ticks.spacingRatio3d), v = wt({
|
|
378
378
|
cx: e,
|
|
379
379
|
cy: t + f,
|
|
380
380
|
r: m,
|
|
381
|
-
aRad:
|
|
381
|
+
aRad: r,
|
|
382
382
|
ax: p,
|
|
383
383
|
f: c
|
|
384
384
|
}), y = wt({
|
|
@@ -399,15 +399,15 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
399
399
|
cx: e,
|
|
400
400
|
cy: t + f,
|
|
401
401
|
r: h,
|
|
402
|
-
aRad:
|
|
402
|
+
aRad: r,
|
|
403
403
|
ax: p,
|
|
404
404
|
f: c
|
|
405
|
-
}), ee = (v.z + y.z + x.z + b.z) / 4, te = vt(!d || d(
|
|
405
|
+
}), ee = (v.z + y.z + x.z + b.z) / 4, te = vt(!d || d(n) ? H.value.style.chart.layout.wheel.ticks.gradient.show ? a(H.value.style.chart.layout.wheel.ticks.activeColor, 100 / i * n / 100 * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : l : u, (() => {
|
|
406
406
|
let e = m * Math.sin(p) || 1;
|
|
407
407
|
return (ee - -e) / (2 * e);
|
|
408
408
|
})()), S = `M ${v.x} ${v.y} L ${y.x} ${y.y} L ${b.x} ${b.y} L ${x.x} ${x.y} Z`;
|
|
409
409
|
_.push({
|
|
410
|
-
i:
|
|
410
|
+
i: n,
|
|
411
411
|
d: S,
|
|
412
412
|
fill: te,
|
|
413
413
|
z: ee
|
|
@@ -443,17 +443,17 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
443
443
|
let Z = w(() => (H.value.debug && H.value.style.chart.layout.wheel.ticks.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), H.value.debug && H.value.style.chart.layout.wheel.ticks.quantity > 200 && console.warn("VueUiWheel - The max number of ticks is 200"), Math.max(12, Math.min(H.value.style.chart.layout.wheel.ticks.quantity, 200)))), Q = w(() => 100 / Z.value), Ot = w(() => {
|
|
444
444
|
let e = [];
|
|
445
445
|
for (let t = 0; t < Z.value; t += 1) {
|
|
446
|
-
let
|
|
446
|
+
let n = q.value > t * Q.value ? H.value.style.chart.layout.wheel.ticks.activeColor : H.value.style.chart.layout.wheel.ticks.inactiveColor, { x: r, y: i } = pt(W.value.size / Z.value * t), { x: o, y: s } = pt(W.value.size / Z.value * t, H.value.style.chart.layout.wheel.ticks.sizeRatio);
|
|
447
447
|
e.push({
|
|
448
|
-
x1:
|
|
449
|
-
y1:
|
|
448
|
+
x1: r,
|
|
449
|
+
y1: i,
|
|
450
450
|
x2: o,
|
|
451
451
|
y2: s,
|
|
452
|
-
color: H.value.style.chart.layout.wheel.ticks.gradient.show ? n
|
|
452
|
+
color: H.value.style.chart.layout.wheel.ticks.gradient.show ? a(n, t * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : n
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
455
|
return e;
|
|
456
|
-
}), kt = w(() =>
|
|
456
|
+
}), kt = w(() => d({ series: Ot.value.map((e) => ({
|
|
457
457
|
name: "",
|
|
458
458
|
value: 1,
|
|
459
459
|
color: e.color
|
|
@@ -528,8 +528,8 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
528
528
|
dataset: U.value
|
|
529
529
|
}));
|
|
530
530
|
}
|
|
531
|
-
let Wt = w(() => `${B.value}-title`), Gt = w(() => `${B.value}-desc`), Kt = w(() =>
|
|
532
|
-
v:
|
|
531
|
+
let Wt = w(() => `${B.value}-title`), Gt = w(() => `${B.value}-desc`), Kt = w(() => c(H.value.style.chart.layout.percentage.formatter, u(q.value), r({
|
|
532
|
+
v: u(q.value),
|
|
533
533
|
s: "%",
|
|
534
534
|
r: H.value.style.chart.layout.percentage.rounding
|
|
535
535
|
}))), qt = w(() => H.value.style.chart.title.text || ""), Jt = w(() => nt.value ? "..." : `${Kt.value}`);
|
|
@@ -541,7 +541,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
541
541
|
toggleAnnotator: Nt,
|
|
542
542
|
toggleFullscreen: jt,
|
|
543
543
|
copyAlt: Ut
|
|
544
|
-
}), (e,
|
|
544
|
+
}), (e, n) => (M(), D("div", {
|
|
545
545
|
class: k(["vue-ui-wheel", {
|
|
546
546
|
"vue-data-ui-component": !0,
|
|
547
547
|
"vue-ui-wheel-3d-wrap": H.value.layout === "3d"
|
|
@@ -550,8 +550,8 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
550
550
|
ref: V,
|
|
551
551
|
id: B.value,
|
|
552
552
|
style: j(`font-family:${H.value.style.fontFamily};width:100%; text-align:center;background:${H.value.style.chart.backgroundColor};${H.value.responsive ? "height:100%" : ""}`),
|
|
553
|
-
onMouseenter:
|
|
554
|
-
onMouseleave:
|
|
553
|
+
onMouseenter: n[0] ||= () => I(it)(!0),
|
|
554
|
+
onMouseleave: n[1] ||= () => I(it)(!1)
|
|
555
555
|
}, [
|
|
556
556
|
H.value.userOptions.buttons.annotator ? (M(), T(I(Re), {
|
|
557
557
|
key: 0,
|
|
@@ -713,7 +713,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
713
713
|
(M(), D("svg", {
|
|
714
714
|
ref_key: "svgRef",
|
|
715
715
|
ref: ot,
|
|
716
|
-
xmlns: I(
|
|
716
|
+
xmlns: I(l),
|
|
717
717
|
class: k({
|
|
718
718
|
"vue-data-ui-fullscreen--on": At.value,
|
|
719
719
|
"vue-data-ui-fulscreen--off": !At.value,
|
|
@@ -753,18 +753,18 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
753
753
|
"stroke-width": H.value.style.chart.layout.innerCircle.strokeWidth,
|
|
754
754
|
fill: "none"
|
|
755
755
|
}, null, 8, we)) : E("", !0),
|
|
756
|
-
H.value.layout === "3d" ? (M(), D(C, { key: 3 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(), D("g", Te, [(M(!0), D(C, null, P($.value, (e) => (M(), D("g", null, [(M(!0), D(C, null, P(bt.value || [], (
|
|
757
|
-
key:
|
|
758
|
-
x1:
|
|
759
|
-
y1:
|
|
760
|
-
x2:
|
|
761
|
-
y2:
|
|
762
|
-
stroke: I(
|
|
756
|
+
H.value.layout === "3d" ? (M(), D(C, { key: 3 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(), D("g", Te, [(M(!0), D(C, null, P($.value, (e) => (M(), D("g", null, [(M(!0), D(C, null, P(bt.value || [], (n) => (M(), D("line", {
|
|
757
|
+
key: n.i,
|
|
758
|
+
x1: n.x1,
|
|
759
|
+
y1: n.y1 - e,
|
|
760
|
+
x2: n.x2,
|
|
761
|
+
y2: n.y2 - e,
|
|
762
|
+
stroke: I(t)(n.color, .25 * e / 5),
|
|
763
763
|
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
|
|
764
764
|
"stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
765
765
|
class: k({
|
|
766
766
|
"vue-ui-wheel-tick": !0,
|
|
767
|
-
"vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) &&
|
|
767
|
+
"vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && n.i * Q.value <= q.value
|
|
768
768
|
})
|
|
769
769
|
}, null, 10, Ee))), 128))]))), 256)), (M(!0), D(C, null, P(bt.value || [], (e) => (M(), D("line", {
|
|
770
770
|
key: e.i,
|
|
@@ -788,17 +788,17 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
788
788
|
"stroke-linecap": "round",
|
|
789
789
|
"stroke-linejoin": "round",
|
|
790
790
|
class: "vue-ui-wheel-tick"
|
|
791
|
-
}, null, 8, ke))), 128)), (M(!0), D(C, null, P(Et.value(-e) || [], (
|
|
792
|
-
key:
|
|
793
|
-
d:
|
|
794
|
-
fill: I(
|
|
791
|
+
}, null, 8, ke))), 128)), (M(!0), D(C, null, P(Et.value(-e) || [], (n) => (M(), D("path", {
|
|
792
|
+
key: n.i,
|
|
793
|
+
d: n.d,
|
|
794
|
+
fill: I(t)(n.fill, .5 * e / $.value),
|
|
795
795
|
stroke: H.value.style.chart.layout.wheel.ticks.stroke,
|
|
796
796
|
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
|
|
797
797
|
"stroke-linecap": "round",
|
|
798
798
|
"stroke-linejoin": "round",
|
|
799
799
|
class: k({
|
|
800
800
|
"vue-ui-wheel-tick": !0,
|
|
801
|
-
"vue-ui-tick-animated-3d": H.value.style.chart.animation.use && !I(R) &&
|
|
801
|
+
"vue-ui-tick-animated-3d": H.value.style.chart.animation.use && !I(R) && n.i * Q.value <= q.value
|
|
802
802
|
})
|
|
803
803
|
}, null, 10, Ae))), 128))]))), 256)), ae("g", null, [(M(!0), D(C, null, P(Et.value(-$.value) || [], (e) => (M(), D("path", {
|
|
804
804
|
key: e.i,
|
|
@@ -853,7 +853,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
853
853
|
x: K.value.centerX + H.value.style.chart.layout.percentage.offsetX,
|
|
854
854
|
y: K.value.centerY + G.value / 3 + H.value.style.chart.layout.percentage.offsetY,
|
|
855
855
|
"font-size": G.value,
|
|
856
|
-
fill: H.value.style.chart.layout.wheel.ticks.gradient.show ? I(
|
|
856
|
+
fill: H.value.style.chart.layout.wheel.ticks.gradient.show ? I(a)(H.value.style.chart.layout.wheel.ticks.activeColor, q.value / 100 * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : H.value.style.chart.layout.wheel.ticks.activeColor,
|
|
857
857
|
"text-anchor": "middle",
|
|
858
858
|
"font-weight": H.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
859
859
|
style: { "font-variant-numeric": "tabluar-nums" },
|