vue-data-ui 3.2.0 → 3.2.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-cyyFTTnm.js → Arrow-BWqgcDpl.js} +1 -1
- package/dist/{BaseDraggableDialog-Bf6A6G_f.js → BaseDraggableDialog-Cg4ZF9cb.js} +2 -2
- package/dist/{BaseIcon-D2f9w5Z5.js → BaseIcon-e63bhLIi.js} +1 -1
- package/dist/{ColorPicker-gaAecgEC.js → ColorPicker-BO4ntExI.js} +2 -2
- package/dist/{DataTable-xISHA7Pu.js → DataTable-dv6G7Krn.js} +10 -10
- package/dist/{Legend-_Rv594VS.js → Legend-CVcdvTLM.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DiM4-9ju.js → NonSvgPenAndPaper-DSmotL8i.js} +3 -3
- package/dist/{PackageVersion-D242JXMq.js → PackageVersion-C3Vg-vTM.js} +1 -1
- package/dist/{PenAndPaper-CtDMyIvW.js → PenAndPaper-CplrzuG7.js} +3 -3
- package/dist/{Shape-BDy56-wS.js → Shape-D_vfF7sk.js} +1 -1
- package/dist/{Slicer-BgpOhmb6.js → Slicer-BO2wNLcR.js} +121 -121
- package/dist/{SparkTooltip-DOFGBHJ-.js → SparkTooltip-B82G5-BO.js} +1 -1
- package/dist/{Title-pI68ZJsq.js → Title-DlqxaiIs.js} +1 -1
- package/dist/{Tooltip-Clf2K3CF.js → Tooltip-BKqK7z38.js} +1 -1
- package/dist/{UserOptions-Bn3u4JQu.js → UserOptions-C9IFsUt0.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-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-1edcjS0-.js} +1 -1
- package/dist/{img-CH7J0fYg.js → img-A48JwXxj.js} +1 -1
- package/dist/{lib-p5pfHmOX.js → lib-CDp2KgIU.js} +345 -362
- package/dist/{pdf-Wd2BQz4D.js → pdf-BZV8MuXM.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +21 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-VqESrzQg.js → useAutoSizeLabelsInsideViewbox-C2IsrQqi.js} +1 -1
- package/dist/{useNestedProp-DF7e2h1z.js → useNestedProp-Cwtenuui.js} +56 -31
- package/dist/{usePrinter-Yeu5jOfm.js → usePrinter-DU_Pi3Rq.js} +2 -2
- package/dist/{vue-data-ui-BQ0WHd6H.js → vue-data-ui-BHJOTOQY.js} +64 -64
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-BNRehnyF.js → vue-ui-3d-bar-rxghnZJO.js} +6 -6
- package/dist/{vue-ui-accordion-D-L73-T2.js → vue-ui-accordion-BWnxgda4.js} +4 -4
- package/dist/{vue-ui-age-pyramid-TVT4PaCQ.js → vue-ui-age-pyramid-gT_SnI-F.js} +6 -6
- package/dist/{vue-ui-annotator-SoAGIAm-.js → vue-ui-annotator-BkHDHfHG.js} +3 -3
- package/dist/{vue-ui-bullet-BQ47U1fM.js → vue-ui-bullet-DREbhLhy.js} +7 -7
- package/dist/{vue-ui-candlestick-DxqNj65Y.js → vue-ui-candlestick-D4P15Ci1.js} +7 -7
- package/dist/{vue-ui-carousel-table-DCenp2Yb.js → vue-ui-carousel-table-C24KX4gd.js} +4 -4
- package/dist/{vue-ui-chestnut-CvaTK5g0.js → vue-ui-chestnut-BbQknrj0.js} +6 -6
- package/dist/{vue-ui-chord-BtFHfEyn.js → vue-ui-chord-BM4_D9kI.js} +9 -9
- package/dist/{vue-ui-circle-pack-CbwDKath.js → vue-ui-circle-pack-S4Asc9CS.js} +8 -8
- package/dist/{vue-ui-cursor-0muOlHSh.js → vue-ui-cursor-F9MXsQ1K.js} +2 -2
- package/dist/{vue-ui-dashboard-BWXIq06l.js → vue-ui-dashboard-D6LHLdFS.js} +69 -69
- package/dist/{vue-ui-digits-DOUNtmB0.js → vue-ui-digits-B_8VzLOS.js} +2 -2
- package/dist/{vue-ui-donut-75agsMef.js → vue-ui-donut-B7T8_tP1.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DCCu-tXT.js → vue-ui-donut-evolution-DOn-7PnK.js} +8 -8
- package/dist/{vue-ui-dumbbell-7FKgJlQt.js → vue-ui-dumbbell-Ch66pFUG.js} +7 -7
- package/dist/{vue-ui-flow-CshaNTgP.js → vue-ui-flow-DPcsRLJJ.js} +7 -7
- package/dist/{vue-ui-funnel-Xnd-FRVA.js → vue-ui-funnel-BdcKoacQ.js} +7 -7
- package/dist/{vue-ui-galaxy-D-MU1xl4.js → vue-ui-galaxy-D3c-O1Op.js} +7 -7
- package/dist/{vue-ui-gauge-NVrFlPvW.js → vue-ui-gauge-D1zbKzZQ.js} +7 -7
- package/dist/{vue-ui-gizmo-zIjavyoS.js → vue-ui-gizmo-CcrANrSX.js} +3 -3
- package/dist/{vue-ui-heatmap-GDVWtrn6.js → vue-ui-heatmap-CcvV9Y14.js} +8 -8
- package/dist/{vue-ui-history-plot-CxvcqVQY.js → vue-ui-history-plot-a0mLhd0L.js} +7 -7
- package/dist/{vue-ui-kpi-D7zdt7-g.js → vue-ui-kpi-BwUpplcm.js} +3 -3
- package/dist/{vue-ui-mini-loader-CteWqKM_.js → vue-ui-mini-loader-DBPZOqZA.js} +5 -5
- package/dist/{vue-ui-molecule-CMn9ItPU.js → vue-ui-molecule-xsgartoC.js} +6 -6
- package/dist/{vue-ui-mood-radar-ClnWru9n.js → vue-ui-mood-radar-kl2d5QsL.js} +7 -7
- package/dist/{vue-ui-nested-donuts-DFljgD4E.js → vue-ui-nested-donuts-D9I8_VnP.js} +7 -7
- package/dist/{vue-ui-onion-ynotjz5X.js → vue-ui-onion-BlxsHavW.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-BS18TbxC.js → vue-ui-parallel-coordinate-plot-DHH6lrbW.js} +8 -8
- package/dist/{vue-ui-quadrant-DB5bt4Dh.js → vue-ui-quadrant-DyIQZUPC.js} +8 -8
- package/dist/vue-ui-quick-chart-Jfr_Ezh9.js +1892 -0
- package/dist/{vue-ui-radar-BfDvRRdJ.js → vue-ui-radar-BL_dJV12.js} +8 -8
- package/dist/{vue-ui-rating-CjoKP6-5.js → vue-ui-rating-LiragGSU.js} +2 -2
- package/dist/{vue-ui-relation-circle-B_j9qaV-.js → vue-ui-relation-circle-BrR2W_6V.js} +10 -10
- package/dist/{vue-ui-ridgeline-COAKNQNn.js → vue-ui-ridgeline-CpaOYplC.js} +8 -8
- package/dist/{vue-ui-rings-ViCuX090.js → vue-ui-rings-B9TGOwFE.js} +8 -8
- package/dist/{vue-ui-scatter-DjtrlQMV.js → vue-ui-scatter-Bq4pSRu_.js} +9 -9
- package/dist/{vue-ui-skeleton-C7lk4qZ8.js → vue-ui-skeleton-BlVnOk2o.js} +3 -3
- package/dist/{vue-ui-smiley-YRRY-yQp.js → vue-ui-smiley-DyP9gKYe.js} +2 -2
- package/dist/{vue-ui-spark-trend-D2rL-IrB.js → vue-ui-spark-trend-Pvdqnqia.js} +3 -3
- package/dist/{vue-ui-sparkbar-BImswCmL.js → vue-ui-sparkbar-DF6eDrxt.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CLS4sHGH.js → vue-ui-sparkgauge-BR7oFSSF.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DLcoy-5J.js → vue-ui-sparkhistogram-CkOGqy2h.js} +4 -4
- package/dist/{vue-ui-sparkline-BlwZF98N.js → vue-ui-sparkline-DF8bLc-F.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CvlfgjY3.js → vue-ui-sparkstackbar-DMkn-0FV.js} +3 -3
- package/dist/{vue-ui-stackbar-JbGg5vfh.js → vue-ui-stackbar-CUXktGA-.js} +9 -9
- package/dist/{vue-ui-strip-plot-67B5-og6.js → vue-ui-strip-plot-ibdxtil6.js} +7 -7
- package/dist/{vue-ui-table-DP7udYk-.js → vue-ui-table-BocHahKB.js} +194 -154
- package/dist/{vue-ui-table-heatmap-iu6l-6rW.js → vue-ui-table-heatmap-B03YDYck.js} +6 -6
- package/dist/{vue-ui-table-sparkline-kJAE3iUQ.js → vue-ui-table-sparkline-8mOvfeTL.js} +5 -5
- package/dist/{vue-ui-thermometer-C_7z6ba0.js → vue-ui-thermometer-Dq_nJLiU.js} +10 -10
- package/dist/{vue-ui-timer-BKHZtzRY.js → vue-ui-timer-BLveMseW.js} +5 -5
- package/dist/{vue-ui-tiremarks-CCLFPY-g.js → vue-ui-tiremarks-DMG1_YzV.js} +6 -6
- package/dist/{vue-ui-treemap-Dw1ygcf6.js → vue-ui-treemap-io-J9w5R.js} +8 -8
- package/dist/{vue-ui-vertical-bar-pLRJQ6-o.js → vue-ui-vertical-bar-DqnTF6h2.js} +10 -10
- package/dist/{vue-ui-waffle-XFGV0gsS.js → vue-ui-waffle-X9DHHqlw.js} +8 -8
- package/dist/vue-ui-wheel-BLBwVpV8.js +620 -0
- package/dist/{vue-ui-word-cloud-Czs95I-E.js → vue-ui-word-cloud-0GXQqY8G.js} +7 -7
- package/dist/{vue-ui-world-DTgxMNzP.js → vue-ui-world-5OHPVwxv.js} +6 -6
- package/dist/{vue-ui-xy-Cm3dbAmQ.js → vue-ui-xy-HW0T1CD8.js} +1164 -1086
- package/dist/{vue-ui-xy-canvas-Cwiu1ND7.js → vue-ui-xy-canvas-C4FbbXNQ.js} +10 -10
- package/package.json +3 -3
- package/dist/vue-ui-quick-chart-Coh62JYO.js +0 -1802
- package/dist/vue-ui-wheel-BI7-CsXF.js +0 -380
|
@@ -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-CDp2KgIU.js";
|
|
3
|
+
import { t as Xt, u as Nt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Lt, a as Ee } from "./useNestedProp-Cwtenuui.js";
|
|
5
|
+
import { u as Ut } from "./usePrinter-DU_Pi3Rq.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-DlqxaiIs.js";
|
|
10
|
+
import Ht from "./img-A48JwXxj.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-CplrzuG7.js")), Ge = ke(() => import("./UserOptions-C9IFsUt0.js")), Ve = ke(() => import("./PackageVersion-C3Vg-vTM.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
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useCssVars as it, defineAsyncComponent as j, computed as ae, ref as m, toRefs as ut, watch as oe, shallowRef as We, onMounted as rt, onBeforeUnmount as ct, createElementBlock as _, openBlock as k, unref as u, normalizeStyle as ye, createBlock as le, createCommentVNode as W, createVNode as we, createSlots as Xe, withCtx as S, renderSlot as F, normalizeProps as ne, guardReactiveProps as se, normalizeClass as Ee, createElementVNode as ke, Fragment as vt, renderList as dt, toDisplayString as Me, resolveDynamicComponent as mt, mergeProps as ht, createTextVNode as Ue, nextTick as Le } from "vue";
|
|
2
2
|
import { d as ft, t as pt, u as gt } from "./useResponsive-DfdjqQps.js";
|
|
3
|
-
import { c as Ye, t as bt, aj as yt, q as wt, b as kt, p as Ce, o as je, f as qe, g as Ct, d as xt, X as $t, x as Tt, y as St, z as Ft } from "./lib-
|
|
4
|
-
import { u as Mt, a as Ge } from "./useNestedProp-
|
|
3
|
+
import { c as Ye, t as bt, aj as yt, q as wt, b as kt, p as Ce, o as je, f as qe, g as Ct, d as xt, X as $t, x as Tt, y as St, z as Ft } from "./lib-CDp2KgIU.js";
|
|
4
|
+
import { u as Mt, a as Ge } from "./useNestedProp-Cwtenuui.js";
|
|
5
5
|
import { u as Pt, B as At } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as Ot } from "./usePrinter-
|
|
6
|
+
import { u as Ot } from "./usePrinter-DU_Pi3Rq.js";
|
|
7
7
|
import { u as It } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import Dt from "./img-
|
|
10
|
-
import Nt from "./Title-
|
|
9
|
+
import Dt from "./img-A48JwXxj.js";
|
|
10
|
+
import Nt from "./Title-DlqxaiIs.js";
|
|
11
11
|
import { t as _t } from "./themes-D3cUNuKw.js";
|
|
12
12
|
import { u as Bt } from "./usePanZoom-BVca3eMk.js";
|
|
13
13
|
import { _ as Rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -149,9 +149,9 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
149
149
|
},
|
|
150
150
|
setup(C, { expose: g }) {
|
|
151
151
|
it((t) => ({
|
|
152
|
-
|
|
152
|
+
v20b7b35f: t.slicerColor
|
|
153
153
|
}));
|
|
154
|
-
const v = j(() => import("./Tooltip-
|
|
154
|
+
const v = j(() => import("./Tooltip-BKqK7z38.js")), h = j(() => import("./BaseIcon-e63bhLIi.js")), d = j(() => import("./vue-ui-accordion-BWnxgda4.js")), f = j(() => import("./DataTable-dv6G7Krn.js")), l = j(() => import("./PenAndPaper-CplrzuG7.js")), o = j(() => import("./UserOptions-C9IFsUt0.js")), s = j(() => import("./PackageVersion-C3Vg-vTM.js")), x = j(() => import("./BaseDraggableDialog-Cg4ZF9cb.js")), { vue_ui_word_cloud: M } = Mt(), r = C, y = ae({
|
|
155
155
|
get() {
|
|
156
156
|
return !!r.dataset && r.dataset.length;
|
|
157
157
|
},
|