vue-data-ui 3.2.1 → 3.2.3
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-cyyFTTnm.js → Arrow-Bb0bGghy.js} +1 -1
- package/dist/{BaseDraggableDialog-Bf6A6G_f.js → BaseDraggableDialog-CHhZIht2.js} +2 -2
- package/dist/{BaseIcon-D2f9w5Z5.js → BaseIcon-Bz-1GQhu.js} +10 -3
- package/dist/ColorPicker-B-WUqMoV.js +238 -0
- package/dist/{DataTable-xISHA7Pu.js → DataTable-BvjacRbw.js} +10 -10
- package/dist/{Legend-_Rv594VS.js → Legend-BpoFJ8fc.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DiM4-9ju.js → NonSvgPenAndPaper-l9giyY1Z.js} +3 -3
- package/dist/{PackageVersion-BB7joYAK.js → PackageVersion-oBQ8brnx.js} +1 -1
- package/dist/{PenAndPaper-CtDMyIvW.js → PenAndPaper-CR8q353D.js} +3 -3
- package/dist/{Shape-BDy56-wS.js → Shape-C_C_OmqR.js} +1 -1
- package/dist/{Slicer-qM5l8BsU.js → Slicer-BA2GhOmY.js} +68 -68
- package/dist/{SparkTooltip-DOFGBHJ-.js → SparkTooltip-Dz1PDE_h.js} +1 -1
- package/dist/{Title-BIaVNiUQ.js → Title-C__lOIPC.js} +1 -1
- package/dist/{Tooltip-Clf2K3CF.js → Tooltip-BOXz8skU.js} +1 -1
- package/dist/{UserOptions-Bn3u4JQu.js → UserOptions-DsTgvAok.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 +5 -0
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-CSg_eTqL.js → dom-to-png-BgvOdfyW.js} +1 -1
- package/dist/{img-CH7J0fYg.js → img-DjWwQXVS.js} +1 -1
- package/dist/{lib-p5pfHmOX.js → lib-BEpWEyMm.js} +351 -368
- package/dist/{pdf-Wd2BQz4D.js → pdf-YD0ShN36.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +24 -3
- package/dist/{useAutoSizeLabelsInsideViewbox-VqESrzQg.js → useAutoSizeLabelsInsideViewbox-BVJkib7z.js} +1 -1
- package/dist/{useNestedProp-7BbqoAYu.js → useNestedProp-CLD3Gk9S.js} +24 -7
- package/dist/{usePrinter-Yeu5jOfm.js → usePrinter-w23K-ezx.js} +2 -2
- package/dist/{vue-data-ui-DyqIdFbp.js → vue-data-ui-hSWsJzdK.js} +64 -64
- package/dist/vue-data-ui.js +96 -96
- package/dist/{vue-ui-3d-bar-BrlJjJDI.js → vue-ui-3d-bar-B45AYk-O.js} +6 -6
- package/dist/vue-ui-accordion-Cv7OaVUI.js +78 -0
- package/dist/{vue-ui-age-pyramid-BDIMacvP.js → vue-ui-age-pyramid-CJ66TbYc.js} +6 -6
- package/dist/vue-ui-annotator-DOO0qej9.js +2959 -0
- package/dist/{vue-ui-bullet-CIJw4kXd.js → vue-ui-bullet-D_V1l1Jt.js} +15 -15
- package/dist/{vue-ui-candlestick-ZjLiyYpC.js → vue-ui-candlestick-DrkWrGT2.js} +33 -33
- package/dist/{vue-ui-carousel-table-_-qalKHa.js → vue-ui-carousel-table-0zk2YkV7.js} +4 -4
- package/dist/{vue-ui-chestnut-XkX5ANAN.js → vue-ui-chestnut-CAGkS9Lt.js} +33 -33
- package/dist/{vue-ui-chord-B1vFXFgp.js → vue-ui-chord-CHAaUGaZ.js} +54 -54
- package/dist/{vue-ui-circle-pack-8J10Q6-I.js → vue-ui-circle-pack-CBySiQot.js} +31 -31
- package/dist/{vue-ui-cursor-CQp6B13J.js → vue-ui-cursor-Cbt_0B5t.js} +2 -2
- package/dist/{vue-ui-dashboard-CTEYSHVA.js → vue-ui-dashboard-BAOd1hi1.js} +69 -69
- package/dist/{vue-ui-digits-B4aZJw8I.js → vue-ui-digits-ChAz3jSS.js} +2 -2
- package/dist/{vue-ui-donut-d_XvnIQB.js → vue-ui-donut-BgYaWImK.js} +8 -8
- package/dist/{vue-ui-donut-evolution-Bz7fLQru.js → vue-ui-donut-evolution-UWyvIsbE.js} +55 -55
- package/dist/{vue-ui-dumbbell-fDl24oQq.js → vue-ui-dumbbell-B5IHRXdS.js} +7 -7
- package/dist/{vue-ui-flow-NYnnPoDX.js → vue-ui-flow-DB4sLZG4.js} +63 -63
- package/dist/{vue-ui-funnel-BWPIKyW8.js → vue-ui-funnel-COZLSfZ8.js} +37 -37
- package/dist/{vue-ui-galaxy-LabscC7n.js → vue-ui-galaxy-S8pIdU78.js} +46 -46
- package/dist/{vue-ui-gauge-DXETakZJ.js → vue-ui-gauge-BVaE3IZt.js} +59 -59
- package/dist/{vue-ui-gizmo-DZgMzP_e.js → vue-ui-gizmo-BmJ01zdG.js} +3 -3
- package/dist/{vue-ui-heatmap-C6Z5wEkZ.js → vue-ui-heatmap-DiAryN8L.js} +8 -8
- package/dist/{vue-ui-history-plot-CUGzhcjr.js → vue-ui-history-plot-eeYk4C28.js} +44 -44
- package/dist/{vue-ui-kpi-DklTxULP.js → vue-ui-kpi-D7WXGb3K.js} +3 -3
- package/dist/{vue-ui-mini-loader-D22vfM5g.js → vue-ui-mini-loader-CKMzFSG5.js} +5 -5
- package/dist/{vue-ui-molecule-BAH7NOZP.js → vue-ui-molecule-daI3rmbc.js} +6 -6
- package/dist/{vue-ui-mood-radar-DWZKM2u0.js → vue-ui-mood-radar-CawOBU0s.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CxUSyTrT.js → vue-ui-nested-donuts-Ci7qxsh6.js} +70 -70
- package/dist/{vue-ui-onion-BfzkGOmQ.js → vue-ui-onion-CUkVuewC.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-Dnl2GBps.js → vue-ui-parallel-coordinate-plot-D7UkjkUV.js} +35 -35
- package/dist/{vue-ui-quadrant-C_3l8xWm.js → vue-ui-quadrant-B9VZz5d6.js} +8 -8
- package/dist/{vue-ui-quick-chart-E6QujRg4.js → vue-ui-quick-chart-BQgH4Aap.js} +55 -55
- package/dist/{vue-ui-radar-C_yLoJvR.js → vue-ui-radar-DvZ8XcZC.js} +54 -54
- package/dist/{vue-ui-rating-Df02iNbL.js → vue-ui-rating-C0Ubexdn.js} +2 -2
- package/dist/{vue-ui-relation-circle-CBIXCwQb.js → vue-ui-relation-circle-Bal5QL_Z.js} +28 -28
- package/dist/{vue-ui-ridgeline-euhLcVI0.js → vue-ui-ridgeline-DbRZFJcN.js} +27 -27
- package/dist/{vue-ui-rings-BGxjmMDw.js → vue-ui-rings-BJ_Dmy5i.js} +38 -38
- package/dist/{vue-ui-scatter-CO4kXKZF.js → vue-ui-scatter-bljL9Bav.js} +50 -50
- package/dist/{vue-ui-skeleton-DrCI1AAl.js → vue-ui-skeleton-DZPi12tE.js} +3 -3
- package/dist/{vue-ui-smiley-FPLXOxew.js → vue-ui-smiley-DxC8rN5b.js} +2 -2
- package/dist/{vue-ui-spark-trend-D4dDN0Sc.js → vue-ui-spark-trend-CqMF642_.js} +22 -22
- package/dist/{vue-ui-sparkbar-BEXrQvP0.js → vue-ui-sparkbar-BcyaivMe.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Cp4-BTZu.js → vue-ui-sparkgauge-BkIUpzkZ.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BwmKv4YF.js → vue-ui-sparkhistogram-DnPdJk3e.js} +4 -4
- package/dist/{vue-ui-sparkline-BXZJ-fUn.js → vue-ui-sparkline-F7h636hU.js} +29 -29
- package/dist/{vue-ui-sparkstackbar-Cie2g7gk.js → vue-ui-sparkstackbar-B-Du5D3w.js} +3 -3
- package/dist/{vue-ui-stackbar-B137wy4q.js → vue-ui-stackbar-BNOfLkY2.js} +38 -38
- package/dist/{vue-ui-strip-plot-Dd1aHpFW.js → vue-ui-strip-plot-DNPM01M_.js} +7 -7
- package/dist/{vue-ui-table-CduckNVX.js → vue-ui-table-__ABUm9x.js} +196 -156
- package/dist/{vue-ui-table-heatmap-DZAkUjty.js → vue-ui-table-heatmap-D-iueyM0.js} +14 -14
- package/dist/{vue-ui-table-sparkline-D6oTAFEO.js → vue-ui-table-sparkline-B5QdvlV7.js} +5 -5
- package/dist/{vue-ui-thermometer-BmK3_O7T.js → vue-ui-thermometer-DID_4Y6w.js} +10 -10
- package/dist/{vue-ui-timer-BYw6Z01O.js → vue-ui-timer-CjJmpXoF.js} +27 -27
- package/dist/{vue-ui-tiremarks-CWiME7zn.js → vue-ui-tiremarks-wDKOTVny.js} +6 -6
- package/dist/{vue-ui-treemap-D8PmfJbw.js → vue-ui-treemap-DFo4w0cb.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DRC047BC.js → vue-ui-vertical-bar-BEdckhBh.js} +31 -31
- package/dist/{vue-ui-waffle-DAaBoyx4.js → vue-ui-waffle-D5i1Q6tF.js} +75 -75
- package/dist/vue-ui-wheel-DJlN8joO.js +620 -0
- package/dist/{vue-ui-word-cloud-ByKWZtkV.js → vue-ui-word-cloud-B7Y2UrwO.js} +29 -29
- package/dist/{vue-ui-world-BezpUr_Q.js → vue-ui-world-DzF8YW_Q.js} +6 -6
- package/dist/{vue-ui-xy-DlcJVA22.js → vue-ui-xy-DGln2YgO.js} +900 -822
- package/dist/{vue-ui-xy-canvas-DPfxdanR.js → vue-ui-xy-canvas-DF2Ts-g3.js} +10 -10
- package/package.json +3 -3
- package/dist/ColorPicker-gaAecgEC.js +0 -135
- package/dist/vue-ui-accordion-BSrtaPYx.js +0 -76
- package/dist/vue-ui-annotator-DGVlVhhy.js +0 -2182
- package/dist/vue-ui-wheel-DfNXrsTY.js +0 -587
|
@@ -0,0 +1,620 @@
|
|
|
1
|
+
import { useCssVars as xt, computed as m, defineAsyncComponent as ke, ref as _, toRefs as Mt, watch as Le, shallowRef as Ue, onMounted as Ct, onBeforeUnmount as _t, createElementBlock as n, openBlock as o, unref as c, normalizeStyle as fe, normalizeClass as P, createBlock as se, createCommentVNode as S, createSlots as At, withCtx as V, renderSlot as z, normalizeProps as oe, guardReactiveProps as ne, createVNode as $t, Fragment as $, renderList as O, createElementVNode as It, toDisplayString as St } from "vue";
|
|
2
|
+
import { c as Rt, t as Pt, o as zt, f as Ot, i as Z, n as Wt, X as Dt, m as je, a as Tt, q as Be, d as Ft } from "./lib-BEpWEyMm.js";
|
|
3
|
+
import { t as Xt, u as Nt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Lt, a as Ee } from "./useNestedProp-CLD3Gk9S.js";
|
|
5
|
+
import { u as Ut } from "./usePrinter-w23K-ezx.js";
|
|
6
|
+
import { u as jt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Bt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import { t as Et } from "./themes-D3cUNuKw.js";
|
|
9
|
+
import Yt from "./Title-C__lOIPC.js";
|
|
10
|
+
import Ht from "./img-DjWwQXVS.js";
|
|
11
|
+
import { u as qt, B as Gt } from "./BaseScanner-BgWxam9d.js";
|
|
12
|
+
import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"], Qt = ["d", "stroke", "stroke-width"], ea = ["cx", "cy", "r", "stroke", "stroke-width"], ta = { key: 0 }, aa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], la = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], sa = { key: 1 }, oa = ["d", "fill", "stroke", "stroke-width"], na = ["d", "fill", "stroke", "stroke-width"], ua = ["d", "fill", "stroke", "stroke-width"], ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], ra = ["d", "fill", "stroke", "stroke-width"], ca = { key: 5 }, ha = ["x", "y", "height"], va = ["x", "y", "font-size", "fill", "font-weight", "stroke", "stroke-width"], da = {
|
|
14
|
+
key: 4,
|
|
15
|
+
class: "vue-data-ui-watermark"
|
|
16
|
+
}, ya = {
|
|
17
|
+
__name: "vue-ui-wheel",
|
|
18
|
+
props: {
|
|
19
|
+
config: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default() {
|
|
22
|
+
return {};
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
dataset: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default() {
|
|
28
|
+
return {};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
setup(Ye, { expose: He }) {
|
|
33
|
+
xt((t) => ({
|
|
34
|
+
v69bfe3e6: nt.value,
|
|
35
|
+
v73b9429a: ut.value,
|
|
36
|
+
v73b97d74: it.value
|
|
37
|
+
}));
|
|
38
|
+
const qe = ke(() => import("./PenAndPaper-CR8q353D.js")), Ge = ke(() => import("./UserOptions-DsTgvAok.js")), Ve = ke(() => import("./PackageVersion-oBQ8brnx.js")), { vue_ui_wheel: Ze } = Lt(), F = Ye, Je = m(() => !!F.dataset && Object.keys(F.dataset).length), ue = _(Rt()), Ke = _(null), pe = _(0), X = _(null), ge = _(null), me = _(null), we = _(null), be = _(0), e = _(ce()), { loading: xe, FINAL_DATASET: ie } = qt({
|
|
39
|
+
...Mt(F),
|
|
40
|
+
FINAL_CONFIG: e,
|
|
41
|
+
prepareConfig: ce,
|
|
42
|
+
skeletonDataset: { percentage: 50 },
|
|
43
|
+
skeletonConfig: Pt({
|
|
44
|
+
defaultConfig: e.value,
|
|
45
|
+
userConfig: {
|
|
46
|
+
userOptions: { show: !1 },
|
|
47
|
+
style: {
|
|
48
|
+
chart: {
|
|
49
|
+
backgroundColor: "#99999930",
|
|
50
|
+
animation: { use: !1 },
|
|
51
|
+
layout: {
|
|
52
|
+
wheel: {
|
|
53
|
+
ticks: {
|
|
54
|
+
activeColor: "#6A6A6A80",
|
|
55
|
+
inactiveColor: "#CACACA80"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
innerCircle: {
|
|
59
|
+
stroke: "#CACACA80"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
}), { userOptionsVisible: re, setUserOptionsVisibility: Me, keepUserOptionState: Ce } = jt({ config: e.value }), { svgRef: _e } = Bt({ config: e.value.style.chart.title });
|
|
67
|
+
function ce() {
|
|
68
|
+
const t = Ee({
|
|
69
|
+
userConfig: F.config,
|
|
70
|
+
defaultConfig: Ze
|
|
71
|
+
});
|
|
72
|
+
return t.theme ? {
|
|
73
|
+
...Ee({
|
|
74
|
+
userConfig: Et.vue_ui_wheel[t.theme] || F.config,
|
|
75
|
+
defaultConfig: t
|
|
76
|
+
})
|
|
77
|
+
} : t;
|
|
78
|
+
}
|
|
79
|
+
Le(() => F.config, (t) => {
|
|
80
|
+
e.value = ce(), re.value = !e.value.userOptions.showOnChartHover, Pe(), be.value += 1;
|
|
81
|
+
}, { deep: !0 });
|
|
82
|
+
const { isPrinting: Ae, isImaging: $e, generatePdf: Ie, generateImage: Se } = Ut({
|
|
83
|
+
elementId: ue.value,
|
|
84
|
+
fileName: e.value.style.chart.title.text || "vue-ui-wheel",
|
|
85
|
+
options: e.value.userOptions.print
|
|
86
|
+
}), Qe = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = _({
|
|
87
|
+
size: 360,
|
|
88
|
+
height: 360,
|
|
89
|
+
width: 360
|
|
90
|
+
}), B = _(e.value.style.chart.layout.percentage.fontSize), i = m(() => ({
|
|
91
|
+
radius: Math.min(u.value.width, u.value.height) * 0.9 / 2 * e.value.style.chart.layout.wheel.radiusRatio,
|
|
92
|
+
centerX: u.value.width / 2,
|
|
93
|
+
centerY: u.value.height / 2
|
|
94
|
+
}));
|
|
95
|
+
function Re(t, s = 1) {
|
|
96
|
+
return {
|
|
97
|
+
x: i.value.centerX + i.value.radius * Math.cos(29.85 + t * Math.PI / 180) * s,
|
|
98
|
+
y: i.value.centerY + i.value.radius * Math.sin(29.85 + t * Math.PI / 180) * s
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
const d = _(e.value.style.chart.animation.use ? 0 : ie.value.percentage || 0);
|
|
102
|
+
Le(() => ie.value, (t) => {
|
|
103
|
+
e.value.style.chart.animation.use ? Te(t.percentage) : d.value = t.percentage || 0;
|
|
104
|
+
}, { deep: !0 });
|
|
105
|
+
const W = Ue(null), L = Ue(null);
|
|
106
|
+
Ct(() => {
|
|
107
|
+
Pe();
|
|
108
|
+
});
|
|
109
|
+
const et = m(() => !!e.value.debug);
|
|
110
|
+
function Pe() {
|
|
111
|
+
if (zt(F.dataset) && Ot({
|
|
112
|
+
componentName: "VueUiWheel",
|
|
113
|
+
type: "dataset",
|
|
114
|
+
debug: et.value
|
|
115
|
+
}), e.value.responsive) {
|
|
116
|
+
const t = Xt(() => {
|
|
117
|
+
const { width: s, height: a } = Nt({
|
|
118
|
+
chart: X.value,
|
|
119
|
+
title: e.value.style.chart.title.text ? ge.value : null,
|
|
120
|
+
source: me.value,
|
|
121
|
+
noTitle: we.value
|
|
122
|
+
});
|
|
123
|
+
requestAnimationFrame(() => {
|
|
124
|
+
u.value.width = s, u.value.height = a, B.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(s, a);
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
W.value && (L.value && W.value.unobserve(L.value), W.value.disconnect()), W.value = new ResizeObserver(t), L.value = X.value.parentNode, W.value.observe(L.value);
|
|
128
|
+
}
|
|
129
|
+
Te(ie.value.percentage || 0);
|
|
130
|
+
}
|
|
131
|
+
_t(() => {
|
|
132
|
+
W.value && (L.value && W.value.unobserve(L.value), W.value.disconnect());
|
|
133
|
+
});
|
|
134
|
+
function J([t, s, a], l) {
|
|
135
|
+
const r = Math.cos(l), v = Math.sin(l);
|
|
136
|
+
return [t, s * r - a * v, s * v + a * r];
|
|
137
|
+
}
|
|
138
|
+
function K([t, s, a], l) {
|
|
139
|
+
const r = l / (l - a);
|
|
140
|
+
return [t * r, s * r, a, r];
|
|
141
|
+
}
|
|
142
|
+
function ze(t, s) {
|
|
143
|
+
const a = t.replace("#", ""), l = parseInt(a.substring(0, 2), 16), r = parseInt(a.substring(2, 4), 16), v = parseInt(a.substring(4, 6), 16), y = 1 - Math.min(1, Math.max(0, e.value.style.chart.layout.wheel.ticks.shadeColorRatio3d)) * s, k = Math.max(0, Math.min(255, Math.round(l * y))), x = Math.max(0, Math.min(255, Math.round(r * y))), M = Math.max(0, Math.min(255, Math.round(v * y)));
|
|
144
|
+
return `#${k.toString(16).padStart(2, "0")}${x.toString(16).padStart(2, "0")}${M.toString(16).padStart(2, "0")}`;
|
|
145
|
+
}
|
|
146
|
+
function tt({
|
|
147
|
+
cx: t,
|
|
148
|
+
cy: s,
|
|
149
|
+
radius: a,
|
|
150
|
+
innerRatio: l = 0.8,
|
|
151
|
+
count: r = 120,
|
|
152
|
+
startDeg: v = 0,
|
|
153
|
+
axDeg: w = 50,
|
|
154
|
+
f: y = 520,
|
|
155
|
+
baseStroke: k = 5,
|
|
156
|
+
activeColor: x,
|
|
157
|
+
inactiveColor: M,
|
|
158
|
+
getActive: A
|
|
159
|
+
}) {
|
|
160
|
+
const h = w * Math.PI / 180, p = a, C = a * l, b = [];
|
|
161
|
+
for (let g = 0; g < r; g += 1) {
|
|
162
|
+
const f = (g / r * 360 + v) * Math.PI / 180, R = t + p * Math.cos(f), j = s + p * Math.sin(f), N = t + C * Math.cos(f), E = s + C * Math.sin(f), Y = [R - t, j - s, 0], H = [N - t, E - s, 0], [ae, Ne, q] = J(Y, h), [de, ye, G] = J(H, h), [le, rt, , ct] = K([ae, Ne, q], y), [ht, vt, , ka] = K([de, ye, G], y), dt = t + le, yt = s + rt, kt = t + ht, ft = s + vt, pt = (Math.max(q, G) - -p * Math.sin(h)) / (2 * p * Math.sin(h) || 1), gt = A ? A(g) : !0, mt = e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(x, g * I.value / T.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : x, wt = ze(gt ? mt : M, pt), bt = Math.max(1.25, k * ct * (Math.min(u.value.width, u.value.height) / 360));
|
|
163
|
+
b.push({ i: g, x1: dt, y1: yt, x2: kt, y2: ft, stroke: bt, color: wt, z: Math.max(q, G) });
|
|
164
|
+
}
|
|
165
|
+
return b.sort((g, f) => g.z - f.z), b;
|
|
166
|
+
}
|
|
167
|
+
const Oe = m(() => {
|
|
168
|
+
if (!e.value.layout === "3d") return null;
|
|
169
|
+
const t = T.value, s = e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(e.value.style.chart.layout.wheel.ticks.activeColor, 0) : e.value.style.chart.layout.wheel.ticks.activeColor, a = e.value.style.chart.layout.wheel.ticks.inactiveColor, l = e.value.style.chart.layout.wheel.ticks.strokeWidth;
|
|
170
|
+
return tt({
|
|
171
|
+
cx: i.value.centerX,
|
|
172
|
+
cy: i.value.centerY,
|
|
173
|
+
radius: i.value.radius,
|
|
174
|
+
innerRatio: e.value.style.chart.layout.wheel.ticks.sizeRatio,
|
|
175
|
+
count: t,
|
|
176
|
+
startDeg: -90,
|
|
177
|
+
axDeg: e.value.style.chart.layout.wheel.tiltAngle3d,
|
|
178
|
+
f: Math.min(u.value.width, u.value.height) * 1.45,
|
|
179
|
+
baseStroke: l,
|
|
180
|
+
activeColor: s,
|
|
181
|
+
inactiveColor: a,
|
|
182
|
+
getActive: (r) => d.value > r * I.value
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
function We({ cx: t, cy: s, r: a, count: l = 180, startDeg: r = -90, axDeg: v = 50, f: w }) {
|
|
186
|
+
const y = v * Math.PI / 180, k = [];
|
|
187
|
+
let x = 0;
|
|
188
|
+
for (let h = 0; h < l; h += 1) {
|
|
189
|
+
const p = (h / l * 360 + r) * Math.PI / 180, C = [a * Math.cos(p), a * Math.sin(p), 0], [b, g, f] = J(C, y), [R, j, , N] = K([b, g, f], w);
|
|
190
|
+
x += N, k.push([t + R, s + j]);
|
|
191
|
+
}
|
|
192
|
+
let M = `M ${k[0][0]} ${k[0][1]}`;
|
|
193
|
+
for (let h = 1; h < k.length; h += 1)
|
|
194
|
+
M += ` L ${k[h][0]} ${k[h][1]}`;
|
|
195
|
+
M += " Z";
|
|
196
|
+
const A = x / l;
|
|
197
|
+
return { d: M, avgScale: A, pts: k };
|
|
198
|
+
}
|
|
199
|
+
const D = m(() => {
|
|
200
|
+
if (e.value.layout !== "3d") return null;
|
|
201
|
+
const t = Math.min(u.value.width, u.value.height) * 1.45, s = e.value.style.chart.layout.wheel.tiltAngle3d, a = i.value.radius, { pts: l, avgScale: r } = (() => {
|
|
202
|
+
const C = a, b = s, { avgScale: g, pts: f } = We({
|
|
203
|
+
cx: i.value.centerX,
|
|
204
|
+
cy: i.value.centerY,
|
|
205
|
+
r: C,
|
|
206
|
+
startDeg: -90,
|
|
207
|
+
axDeg: b,
|
|
208
|
+
f: t
|
|
209
|
+
});
|
|
210
|
+
return { pts: f, avgScale: g };
|
|
211
|
+
})();
|
|
212
|
+
let v = 1 / 0, w = 1 / 0, y = -1 / 0, k = -1 / 0;
|
|
213
|
+
for (const [C, b] of l)
|
|
214
|
+
C < v && (v = C), b < w && (w = b), C > y && (y = C), b > k && (k = b);
|
|
215
|
+
const x = e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height), M = e.value.style.chart.layout.innerCircle.strokeWidth || 0, A = 0.5 * Math.max(x, M * (r || 1)), h = Math.max(0, Number(e.value.style.chart.layout.wheel.ticks.depth3d) || 0), p = A;
|
|
216
|
+
return {
|
|
217
|
+
x: v - p,
|
|
218
|
+
y: w - h - p,
|
|
219
|
+
w: y - v + 2 * p,
|
|
220
|
+
h: k - (w - h) + 2 * p
|
|
221
|
+
};
|
|
222
|
+
});
|
|
223
|
+
function at(t) {
|
|
224
|
+
const s = Math.min(u.value.width, u.value.height) * 1.45, { d: a, avgScale: l } = We({
|
|
225
|
+
cx: i.value.centerX,
|
|
226
|
+
cy: i.value.centerY,
|
|
227
|
+
r: t,
|
|
228
|
+
startDeg: -90,
|
|
229
|
+
axDeg: e.value.style.chart.layout.wheel.tiltAngle3d,
|
|
230
|
+
f: s
|
|
231
|
+
}), v = (e.value.style.chart.layout.innerCircle.strokeWidth || 1) * l;
|
|
232
|
+
return {
|
|
233
|
+
d: a,
|
|
234
|
+
stroke: e.value.style.chart.layout.innerCircle.stroke,
|
|
235
|
+
strokeWidth: v
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
const De = m(() => at(Math.max(0, i.value.radius * 0.8 * e.value.style.chart.layout.innerCircle.radiusRatio)));
|
|
239
|
+
function Q({ cx: t, cy: s, r: a, aRad: l, ax: r, f: v }) {
|
|
240
|
+
const w = [a * Math.cos(l), a * Math.sin(l), 0], [y, k, x] = J(w, r), [M, A, , h] = K([y, k, x], v);
|
|
241
|
+
return { x: t + M, y: s + A, z: x, s: h };
|
|
242
|
+
}
|
|
243
|
+
function lt({
|
|
244
|
+
cx: t,
|
|
245
|
+
cy: s,
|
|
246
|
+
radius: a,
|
|
247
|
+
innerRatio: l = 0.8,
|
|
248
|
+
count: r = 120,
|
|
249
|
+
startDeg: v = -87,
|
|
250
|
+
axDeg: w = 45,
|
|
251
|
+
f: y = 600,
|
|
252
|
+
activeColor: k,
|
|
253
|
+
inactiveColor: x,
|
|
254
|
+
getActive: M,
|
|
255
|
+
Y: A = 0
|
|
256
|
+
}) {
|
|
257
|
+
const h = w * Math.PI / 180, p = a, C = a * l, b = 2 * Math.PI / r, g = [];
|
|
258
|
+
for (let f = 0; f < r; f += 1) {
|
|
259
|
+
const R = v * Math.PI / 180 + b * f, j = R + b * Math.min(1, e.value.style.chart.layout.wheel.ticks.spacingRatio3d), N = Q({ cx: t, cy: s + A, r: p, aRad: R, ax: h, f: y }), E = Q({ cx: t, cy: s + A, r: p, aRad: j, ax: h, f: y }), Y = Q({ cx: t, cy: s + A, r: C, aRad: j, ax: h, f: y }), H = Q({ cx: t, cy: s + A, r: C, aRad: R, ax: h, f: y }), ae = (N.z + E.z + H.z + Y.z) / 4, q = (M ? M(f) : !0) ? e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(
|
|
260
|
+
e.value.style.chart.layout.wheel.ticks.activeColor,
|
|
261
|
+
f * (100 / r) / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)
|
|
262
|
+
) : k : x, de = (() => {
|
|
263
|
+
const le = p * Math.sin(h) || 1;
|
|
264
|
+
return (ae - -le) / (2 * le);
|
|
265
|
+
})(), ye = ze(q, de), G = `M ${N.x} ${N.y} L ${E.x} ${E.y} L ${Y.x} ${Y.y} L ${H.x} ${H.y} Z`;
|
|
266
|
+
g.push({ i: f, d: G, fill: ye, z: ae });
|
|
267
|
+
}
|
|
268
|
+
return g.sort((f, R) => f.z - R.z), g;
|
|
269
|
+
}
|
|
270
|
+
const he = m(() => {
|
|
271
|
+
if (e.value.layout !== "3d") return null;
|
|
272
|
+
const t = T.value;
|
|
273
|
+
return (s) => lt({
|
|
274
|
+
cx: i.value.centerX,
|
|
275
|
+
cy: i.value.centerY,
|
|
276
|
+
radius: i.value.radius,
|
|
277
|
+
innerRatio: e.value.style.chart.layout.wheel.ticks.sizeRatio,
|
|
278
|
+
count: t,
|
|
279
|
+
startDeg: -90,
|
|
280
|
+
axDeg: e.value.style.chart.layout.wheel.tiltAngle3d,
|
|
281
|
+
f: Math.min(u.value.width, u.value.height) * 1.45,
|
|
282
|
+
activeColor: e.value.style.chart.layout.wheel.ticks.activeColor,
|
|
283
|
+
inactiveColor: e.value.style.chart.layout.wheel.ticks.inactiveColor,
|
|
284
|
+
getActive: (a) => d.value > a * (100 / t),
|
|
285
|
+
Y: s
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
function Te(t) {
|
|
289
|
+
let s = e.value.style.chart.animation.speed;
|
|
290
|
+
const a = Math.abs(t - d.value) / (s * 120);
|
|
291
|
+
function l() {
|
|
292
|
+
d.value < t ? d.value = Math.min(d.value + a, t) : d.value > t && (d.value = Math.max(d.value - a, t)), d.value !== t && requestAnimationFrame(l);
|
|
293
|
+
}
|
|
294
|
+
l();
|
|
295
|
+
}
|
|
296
|
+
const T = m(() => (e.value.debug && e.value.style.chart.layout.wheel.ticks.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), e.value.debug && e.value.style.chart.layout.wheel.ticks.quantity > 200 && console.warn("VueUiWheel - The max number of ticks is 200"), Math.max(12, Math.min(e.value.style.chart.layout.wheel.ticks.quantity, 200)))), I = m(() => 100 / T.value), Fe = m(() => {
|
|
297
|
+
const t = [];
|
|
298
|
+
for (let s = 0; s < T.value; s += 1) {
|
|
299
|
+
const a = d.value > s * I.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: l, y: r } = Re(u.value.size / T.value * s), { x: v, y: w } = Re(u.value.size / T.value * s, e.value.style.chart.layout.wheel.ticks.sizeRatio);
|
|
300
|
+
t.push({
|
|
301
|
+
x1: l,
|
|
302
|
+
y1: r,
|
|
303
|
+
x2: v,
|
|
304
|
+
y2: w,
|
|
305
|
+
color: e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(a, s * I.value / T.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
return t;
|
|
309
|
+
}), st = m(() => Wt({ series: Fe.value.map((t) => ({
|
|
310
|
+
name: "",
|
|
311
|
+
value: 1,
|
|
312
|
+
color: t.color
|
|
313
|
+
})) }, i.value.centerX, i.value.centerY, i.value.radius, i.value.radius, 1.99999, 2, 1, 360, 105.25, i.value.radius * (1 - e.value.style.chart.layout.wheel.ticks.sizeRatio))), ee = _(!1);
|
|
314
|
+
function Xe(t) {
|
|
315
|
+
ee.value = t, pe.value += 1;
|
|
316
|
+
}
|
|
317
|
+
const te = _(!1);
|
|
318
|
+
function ve() {
|
|
319
|
+
te.value = !te.value;
|
|
320
|
+
}
|
|
321
|
+
async function ot({ scale: t = 2 } = {}) {
|
|
322
|
+
if (!X.value) return;
|
|
323
|
+
const { width: s, height: a } = X.value.getBoundingClientRect(), l = s / a, { imageUri: r, base64: v } = await Ht({ domElement: X.value, base64: !0, img: !0, scale: t });
|
|
324
|
+
return {
|
|
325
|
+
imageUri: r,
|
|
326
|
+
base64: v,
|
|
327
|
+
title: e.value.style.chart.title.text,
|
|
328
|
+
width: s,
|
|
329
|
+
height: a,
|
|
330
|
+
aspectRatio: l
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
const nt = m(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2), ut = m(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * 0.75), it = m(() => e.value.style.chart.layout.wheel.ticks.strokeWidth), U = m(() => Math.max(1, Math.min(20, e.value.style.chart.layout.wheel.ticks.depth3d)));
|
|
334
|
+
return He({
|
|
335
|
+
getImage: ot,
|
|
336
|
+
generatePdf: Ie,
|
|
337
|
+
generateImage: Se,
|
|
338
|
+
toggleAnnotator: ve,
|
|
339
|
+
toggleFullscreen: Xe
|
|
340
|
+
}), (t, s) => (o(), n("div", {
|
|
341
|
+
class: P(["vue-ui-wheel", { "vue-ui-wheel-3d-wrap": e.value.layout === "3d" }]),
|
|
342
|
+
ref_key: "wheelChart",
|
|
343
|
+
ref: X,
|
|
344
|
+
id: ue.value,
|
|
345
|
+
style: fe(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
346
|
+
onMouseenter: s[0] || (s[0] = () => c(Me)(!0)),
|
|
347
|
+
onMouseleave: s[1] || (s[1] = () => c(Me)(!1))
|
|
348
|
+
}, [
|
|
349
|
+
e.value.userOptions.buttons.annotator ? (o(), se(c(qe), {
|
|
350
|
+
key: 0,
|
|
351
|
+
svgRef: c(_e),
|
|
352
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
353
|
+
color: e.value.style.chart.color,
|
|
354
|
+
active: te.value,
|
|
355
|
+
onClose: ve
|
|
356
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : S("", !0),
|
|
357
|
+
Qe.value ? (o(), n("div", {
|
|
358
|
+
key: 1,
|
|
359
|
+
ref_key: "noTitle",
|
|
360
|
+
ref: we,
|
|
361
|
+
class: "vue-data-ui-no-title-space",
|
|
362
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
363
|
+
}, null, 512)) : S("", !0),
|
|
364
|
+
e.value.style.chart.title.text ? (o(), n("div", {
|
|
365
|
+
key: 2,
|
|
366
|
+
ref_key: "chartTitle",
|
|
367
|
+
ref: ge,
|
|
368
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
369
|
+
}, [
|
|
370
|
+
(o(), se(Yt, {
|
|
371
|
+
key: `title_${be.value}`,
|
|
372
|
+
config: {
|
|
373
|
+
title: {
|
|
374
|
+
cy: "wheel-title",
|
|
375
|
+
...e.value.style.chart.title
|
|
376
|
+
},
|
|
377
|
+
subtitle: {
|
|
378
|
+
cy: "wheel-subtitle",
|
|
379
|
+
...e.value.style.chart.title.subtitle
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}, null, 8, ["config"]))
|
|
383
|
+
], 512)) : S("", !0),
|
|
384
|
+
e.value.userOptions.show && Je.value && (c(Ce) || c(re)) ? (o(), se(c(Ge), {
|
|
385
|
+
ref_key: "details",
|
|
386
|
+
ref: Ke,
|
|
387
|
+
key: `user_options_${pe.value}`,
|
|
388
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
389
|
+
color: e.value.style.chart.color,
|
|
390
|
+
isPrinting: c(Ae),
|
|
391
|
+
isImaging: c($e),
|
|
392
|
+
uid: ue.value,
|
|
393
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
394
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
395
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
396
|
+
hasXls: !1,
|
|
397
|
+
isFullscreen: ee.value,
|
|
398
|
+
position: e.value.userOptions.position,
|
|
399
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
400
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
401
|
+
isAnnotation: te.value,
|
|
402
|
+
chartElement: X.value,
|
|
403
|
+
callbacks: e.value.userOptions.callbacks,
|
|
404
|
+
printScale: e.value.userOptions.print.scale,
|
|
405
|
+
onToggleFullscreen: Xe,
|
|
406
|
+
onGeneratePdf: c(Ie),
|
|
407
|
+
onGenerateImage: c(Se),
|
|
408
|
+
onToggleAnnotator: ve,
|
|
409
|
+
style: fe({
|
|
410
|
+
visibility: c(Ce) ? c(re) ? "visible" : "hidden" : "visible"
|
|
411
|
+
})
|
|
412
|
+
}, At({ _: 2 }, [
|
|
413
|
+
t.$slots.menuIcon ? {
|
|
414
|
+
name: "menuIcon",
|
|
415
|
+
fn: V(({ isOpen: a, color: l }) => [
|
|
416
|
+
z(t.$slots, "menuIcon", oe(ne({ isOpen: a, color: l })), void 0, !0)
|
|
417
|
+
]),
|
|
418
|
+
key: "0"
|
|
419
|
+
} : void 0,
|
|
420
|
+
t.$slots.optionPdf ? {
|
|
421
|
+
name: "optionPdf",
|
|
422
|
+
fn: V(() => [
|
|
423
|
+
z(t.$slots, "optionPdf", {}, void 0, !0)
|
|
424
|
+
]),
|
|
425
|
+
key: "1"
|
|
426
|
+
} : void 0,
|
|
427
|
+
t.$slots.optionImg ? {
|
|
428
|
+
name: "optionImg",
|
|
429
|
+
fn: V(() => [
|
|
430
|
+
z(t.$slots, "optionImg", {}, void 0, !0)
|
|
431
|
+
]),
|
|
432
|
+
key: "2"
|
|
433
|
+
} : void 0,
|
|
434
|
+
t.$slots.optionFullscreen ? {
|
|
435
|
+
name: "optionFullscreen",
|
|
436
|
+
fn: V(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
437
|
+
z(t.$slots, "optionFullscreen", oe(ne({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
438
|
+
]),
|
|
439
|
+
key: "3"
|
|
440
|
+
} : void 0,
|
|
441
|
+
t.$slots.optionAnnotator ? {
|
|
442
|
+
name: "optionAnnotator",
|
|
443
|
+
fn: V(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
444
|
+
z(t.$slots, "optionAnnotator", oe(ne({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
445
|
+
]),
|
|
446
|
+
key: "4"
|
|
447
|
+
} : void 0
|
|
448
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : S("", !0),
|
|
449
|
+
(o(), n("svg", {
|
|
450
|
+
ref_key: "svgRef",
|
|
451
|
+
ref: _e,
|
|
452
|
+
xmlns: c(Dt),
|
|
453
|
+
class: P({ "vue-data-ui-fullscreen--on": ee.value, "vue-data-ui-fulscreen--off": !ee.value, "vue-ui-wheel-3d-svg": e.value.layout === "3d" }),
|
|
454
|
+
viewBox: e.value.layout === "3d" && !e.value.responsive ? `${D.value?.x - 10} ${D.value?.y ?? 0} ${D.value?.w + 20} ${D.value?.h ?? Math.max(10, u.value.height)}` : `0 0 ${Math.max(10, u.value.width)} ${Math.max(10, u.value.height)}`,
|
|
455
|
+
style: fe(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
456
|
+
}, [
|
|
457
|
+
$t(c(Ve)),
|
|
458
|
+
t.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
459
|
+
key: 0,
|
|
460
|
+
x: e.value.layout === "3d" && !e.value.responsive ? D.value?.x - 10 : 0,
|
|
461
|
+
y: e.value.layout === "3d" && !e.value.responsive ? D.value?.y ?? 0 : 0,
|
|
462
|
+
width: e.value.layout === "3d" && !e.value.responsive ? D.value?.w + 20 : Math.max(10, u.value.width),
|
|
463
|
+
height: e.value.layout === "3d" && !e.value.responsive ? D.value?.h ?? Math.max(10, u.value.height) : Math.max(10, u.value.height),
|
|
464
|
+
style: {
|
|
465
|
+
pointerEvents: "none"
|
|
466
|
+
}
|
|
467
|
+
}, [
|
|
468
|
+
z(t.$slots, "chart-background", {}, void 0, !0)
|
|
469
|
+
], 8, Kt)) : S("", !0),
|
|
470
|
+
e.value.layout === "3d" && De.value ? (o(), n("path", {
|
|
471
|
+
key: 1,
|
|
472
|
+
class: "vue-ui-wheel-inner-circle",
|
|
473
|
+
d: De.value.d,
|
|
474
|
+
stroke: e.value.style.chart.layout.innerCircle.stroke,
|
|
475
|
+
"stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
|
|
476
|
+
fill: "none"
|
|
477
|
+
}, null, 8, Qt)) : e.value.style.chart.layout.innerCircle.show ? (o(), n("circle", {
|
|
478
|
+
key: 2,
|
|
479
|
+
class: "vue-ui-wheel-inner-circle",
|
|
480
|
+
cx: i.value.centerX,
|
|
481
|
+
cy: i.value.centerY,
|
|
482
|
+
r: Math.max(0, i.value.radius * e.value.style.chart.layout.innerCircle.radiusRatio * 0.8),
|
|
483
|
+
stroke: e.value.style.chart.layout.innerCircle.stroke,
|
|
484
|
+
"stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
|
|
485
|
+
fill: "none"
|
|
486
|
+
}, null, 8, ea)) : S("", !0),
|
|
487
|
+
e.value.layout === "3d" ? (o(), n($, { key: 3 }, [
|
|
488
|
+
e.value.style.chart.layout.wheel.ticks.type === "classic" ? (o(), n("g", ta, [
|
|
489
|
+
(o(!0), n($, null, O(U.value, (a) => (o(), n("g", null, [
|
|
490
|
+
(o(!0), n($, null, O(Oe.value || [], (l) => (o(), n("line", {
|
|
491
|
+
key: l.i,
|
|
492
|
+
x1: l.x1,
|
|
493
|
+
y1: l.y1 - a,
|
|
494
|
+
x2: l.x2,
|
|
495
|
+
y2: l.y2 - a,
|
|
496
|
+
stroke: c(je)(l.color, 0.25 * a / 5),
|
|
497
|
+
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
|
|
498
|
+
"stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
499
|
+
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l.i * I.value <= d.value })
|
|
500
|
+
}, null, 10, aa))), 128))
|
|
501
|
+
]))), 256)),
|
|
502
|
+
(o(!0), n($, null, O(Oe.value || [], (a) => (o(), n("line", {
|
|
503
|
+
key: a.i,
|
|
504
|
+
x1: a.x1,
|
|
505
|
+
y1: a.y1 - U.value,
|
|
506
|
+
x2: a.x2,
|
|
507
|
+
y2: a.y2 - U.value,
|
|
508
|
+
stroke: a.color,
|
|
509
|
+
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
|
|
510
|
+
"stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
511
|
+
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && a.i * I.value <= d.value })
|
|
512
|
+
}, null, 10, la))), 128))
|
|
513
|
+
])) : (o(), n("g", sa, [
|
|
514
|
+
(o(!0), n($, null, O(U.value, (a) => (o(), n("g", null, [
|
|
515
|
+
(o(!0), n($, null, O(he.value(-a) || [], (l) => (o(), n("path", {
|
|
516
|
+
key: l.i,
|
|
517
|
+
d: l.d,
|
|
518
|
+
fill: e.value.style.chart.layout.wheel.ticks.inactiveColor,
|
|
519
|
+
stroke: e.value.style.chart.layout.wheel.ticks.stroke,
|
|
520
|
+
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
|
|
521
|
+
"stroke-linecap": "round",
|
|
522
|
+
"stroke-linejoin": "round",
|
|
523
|
+
class: "vue-ui-wheel-tick"
|
|
524
|
+
}, null, 8, oa))), 128)),
|
|
525
|
+
(o(!0), n($, null, O(he.value(-a) || [], (l) => (o(), n("path", {
|
|
526
|
+
key: l.i,
|
|
527
|
+
d: l.d,
|
|
528
|
+
fill: c(je)(l.fill, 0.5 * a / U.value),
|
|
529
|
+
stroke: e.value.style.chart.layout.wheel.ticks.stroke,
|
|
530
|
+
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
|
|
531
|
+
"stroke-linecap": "round",
|
|
532
|
+
"stroke-linejoin": "round",
|
|
533
|
+
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && l.i * I.value <= d.value })
|
|
534
|
+
}, null, 10, na))), 128))
|
|
535
|
+
]))), 256)),
|
|
536
|
+
It("g", null, [
|
|
537
|
+
(o(!0), n($, null, O(he.value(-U.value) || [], (a) => (o(), n("path", {
|
|
538
|
+
key: a.i,
|
|
539
|
+
d: a.d,
|
|
540
|
+
fill: a.fill,
|
|
541
|
+
stroke: e.value.style.chart.layout.wheel.ticks.stroke,
|
|
542
|
+
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
|
|
543
|
+
"stroke-linecap": "round",
|
|
544
|
+
"stroke-linejoin": "round",
|
|
545
|
+
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && a.i * I.value <= d.value })
|
|
546
|
+
}, null, 10, ua))), 128))
|
|
547
|
+
])
|
|
548
|
+
]))
|
|
549
|
+
], 64)) : (o(), n($, { key: 4 }, [
|
|
550
|
+
e.value.style.chart.layout.wheel.ticks.type === "classic" ? (o(!0), n($, { key: 0 }, O(Fe.value, (a, l) => (o(), n("line", {
|
|
551
|
+
x1: a.x1,
|
|
552
|
+
x2: a.x2,
|
|
553
|
+
y1: a.y1,
|
|
554
|
+
y2: a.y2,
|
|
555
|
+
stroke: a.color,
|
|
556
|
+
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
|
|
557
|
+
"stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
558
|
+
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l * I.value <= d.value })
|
|
559
|
+
}, null, 10, ia))), 256)) : (o(!0), n($, { key: 1 }, O(st.value, (a, l) => (o(), n("path", {
|
|
560
|
+
d: a.arcSlice,
|
|
561
|
+
fill: a.color,
|
|
562
|
+
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l * I.value <= d.value }),
|
|
563
|
+
stroke: e.value.style.chart.layout.wheel.ticks.stroke,
|
|
564
|
+
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth
|
|
565
|
+
}, null, 10, ra))), 256))
|
|
566
|
+
], 64)),
|
|
567
|
+
e.value.style.chart.layout.percentage.show ? (o(), n("g", ca, [
|
|
568
|
+
c(xe) ? (o(), n("rect", {
|
|
569
|
+
key: 0,
|
|
570
|
+
x: i.value.centerX - 40,
|
|
571
|
+
y: i.value.centerY - B.value / 2,
|
|
572
|
+
width: 80,
|
|
573
|
+
height: B.value,
|
|
574
|
+
fill: "#6A6A6A80",
|
|
575
|
+
rx: "3"
|
|
576
|
+
}, null, 8, ha)) : (o(), n("text", {
|
|
577
|
+
key: 1,
|
|
578
|
+
x: i.value.centerX + e.value.style.chart.layout.percentage.offsetX,
|
|
579
|
+
y: i.value.centerY + B.value / 3 + e.value.style.chart.layout.percentage.offsetY,
|
|
580
|
+
"font-size": B.value,
|
|
581
|
+
fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? c(Z)(e.value.style.chart.layout.wheel.ticks.activeColor, d.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
|
|
582
|
+
"text-anchor": "middle",
|
|
583
|
+
"font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
584
|
+
style: { "font-variant-numeric": "tabluar-nums" },
|
|
585
|
+
stroke: e.value.style.chart.layout.percentage.stroke,
|
|
586
|
+
"stroke-width": e.value.style.chart.layout.percentage.strokeWidth,
|
|
587
|
+
"stroke-linecap": "round",
|
|
588
|
+
"stroke-linejoin": "round",
|
|
589
|
+
"paint-order": "stroke fill",
|
|
590
|
+
class: P({ "vue-ui-wheel-label": e.value.layout === "3d" })
|
|
591
|
+
}, St(c(Tt)(
|
|
592
|
+
e.value.style.chart.layout.percentage.formatter,
|
|
593
|
+
c(Be)(d.value),
|
|
594
|
+
c(Ft)({
|
|
595
|
+
v: c(Be)(d.value),
|
|
596
|
+
s: "%",
|
|
597
|
+
r: e.value.style.chart.layout.percentage.rounding
|
|
598
|
+
})
|
|
599
|
+
)), 11, va))
|
|
600
|
+
])) : S("", !0),
|
|
601
|
+
z(t.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
602
|
+
], 14, Jt)),
|
|
603
|
+
t.$slots.watermark ? (o(), n("div", da, [
|
|
604
|
+
z(t.$slots, "watermark", oe(ne({ isPrinting: c(Ae) || c($e) })), void 0, !0)
|
|
605
|
+
])) : S("", !0),
|
|
606
|
+
t.$slots.source ? (o(), n("div", {
|
|
607
|
+
key: 5,
|
|
608
|
+
ref_key: "source",
|
|
609
|
+
ref: me,
|
|
610
|
+
dir: "auto"
|
|
611
|
+
}, [
|
|
612
|
+
z(t.$slots, "source", {}, void 0, !0)
|
|
613
|
+
], 512)) : S("", !0),
|
|
614
|
+
c(xe) ? (o(), se(Gt, { key: 6 })) : S("", !0)
|
|
615
|
+
], 46, Zt));
|
|
616
|
+
}
|
|
617
|
+
}, Sa = /* @__PURE__ */ Vt(ya, [["__scopeId", "data-v-da4775bb"]]);
|
|
618
|
+
export {
|
|
619
|
+
Sa as default
|
|
620
|
+
};
|