vue-data-ui 3.0.0-next.9 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -30
- package/dist/{Arrow-B6OlqyCG.js → Arrow-DQoWnUfD.js} +1 -1
- package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-DEw6oieL.js} +4 -4
- package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-DEl03NUZ.js} +1 -1
- package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-CrivFZqC.js} +2 -2
- package/dist/{DataTable--paavNqF.js → DataTable-ClgCsiJA.js} +2 -2
- package/dist/{Legend-BZ06qU55.js → Legend-CMvJ6X5j.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-B2Wvbl3p.js} +3 -3
- package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CD5VH_Al.js} +3 -3
- package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3WRn-G2.js} +32 -32
- package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
- package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
- package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
- package/dist/{Shape-Mr1eIp_G.js → Shape-Adi9i_-f.js} +43 -37
- package/dist/Slicer-t6e1t2iM.js +602 -0
- package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-B8OnBSvk.js} +7 -7
- package/dist/{Title-B2dA6-uH.js → Title-xTWR-Vil.js} +1 -1
- package/dist/{Tooltip-O_hCvqgF.js → Tooltip-BH3CiANh.js} +23 -19
- package/dist/{UserOptions-Bk03FRqW.js → UserOptions-CKKPgDLV.js} +2 -2
- package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-C4hj491O.js} +1 -1
- package/dist/{img-C_9wps3s.js → img-Vb4QHAHI.js} +1 -1
- package/dist/{index-CgShIRes.js → index-Dzc2Gi60.js} +2885 -2010
- package/dist/{pdf-CXdbjyRJ.js → pdf-ddpqw-dt.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +753 -65
- package/dist/types/vue-data-ui.d.ts +753 -65
- package/dist/useAutoSizeLabelsInsideViewbox-CN_Jh8Hr.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-CjnS13nF.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DBRh8ZvS.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
- package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-B7ztqj9-.js} +105 -100
- package/dist/vue-data-ui.js +26 -25
- package/dist/vue-ui-3d-bar-DUmYPtHl.js +1323 -0
- package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-CPk8wAuj.js} +3 -3
- package/dist/vue-ui-age-pyramid-Bv5HmeXj.js +835 -0
- package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-KXWlIhtd.js} +12 -12
- package/dist/vue-ui-bullet-B4N4mBk9.js +571 -0
- package/dist/vue-ui-candlestick-DENvPnUO.js +1000 -0
- package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-vC2bHBaY.js} +29 -29
- package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-2nS0StrY.js} +664 -536
- package/dist/vue-ui-chord-CyfS6vNM.js +1038 -0
- package/dist/vue-ui-circle-pack-C4JR-0fx.js +709 -0
- package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-BgeSDtQh.js} +2 -2
- package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-9DWUBJ-I.js} +64 -64
- package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-BQO7IBFA.js} +2 -2
- package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-C-ZJXJ74.js} +431 -422
- package/dist/vue-ui-donut-evolution-B870IrQA.js +1076 -0
- package/dist/vue-ui-dumbbell-Cfs2Uotx.js +1120 -0
- package/dist/vue-ui-flow-DnaUVVAD.js +841 -0
- package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-B9s-H5ZG.js} +16 -16
- package/dist/vue-ui-galaxy-BoJOczdh.js +680 -0
- package/dist/vue-ui-gauge-qjm4BqZR.js +791 -0
- package/dist/vue-ui-gizmo-fn7ZaMTI.js +210 -0
- package/dist/vue-ui-heatmap-CIBDKhh8.js +1078 -0
- package/dist/vue-ui-history-plot-bbNxldYG.js +1074 -0
- package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-BX-2jhLx.js} +26 -26
- package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-Bn1Bb8-J.js} +2 -2
- package/dist/vue-ui-molecule-DQ3qFtBq.js +656 -0
- package/dist/vue-ui-mood-radar-Cf-ehIo1.js +785 -0
- package/dist/vue-ui-nested-donuts-CWg5BEi-.js +1284 -0
- package/dist/vue-ui-onion-sHgQTYfa.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-Ki3ITp_s.js +916 -0
- package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-BIVqW7U7.js} +512 -459
- package/dist/vue-ui-quick-chart-C_hvHc1b.js +1762 -0
- package/dist/vue-ui-radar-RZUPyPwB.js +796 -0
- package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-BI8Vk7dO.js} +2 -2
- package/dist/vue-ui-relation-circle-TVMUEtxK.js +598 -0
- package/dist/vue-ui-ridgeline-DQeXHQG4.js +1157 -0
- package/dist/vue-ui-rings-BH81WmMS.js +728 -0
- package/dist/vue-ui-scatter-Cy7Tz_An.js +1178 -0
- package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-CF50qQxr.js} +13 -13
- package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-CrFXEbJs.js} +46 -46
- package/dist/vue-ui-spark-trend-DtHArnot.js +315 -0
- package/dist/vue-ui-sparkbar-CIOwFFgA.js +351 -0
- package/dist/vue-ui-sparkgauge-E0DdGotz.js +232 -0
- package/dist/vue-ui-sparkhistogram-Dm7WoyjY.js +380 -0
- package/dist/vue-ui-sparkline-DoW6DDKT.js +513 -0
- package/dist/vue-ui-sparkstackbar-BJnPUWY4.js +421 -0
- package/dist/vue-ui-stackbar-Du42smPs.js +1371 -0
- package/dist/vue-ui-strip-plot-DnenGI-d.js +916 -0
- package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BQOQVlHr.js} +17 -17
- package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-BzK4_gsP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-B-IwcT8I.js} +19 -16
- package/dist/vue-ui-thermometer-06ao_Pj5.js +541 -0
- package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-CxQq4roK.js} +5 -5
- package/dist/vue-ui-tiremarks-CuTxkByj.js +406 -0
- package/dist/vue-ui-treemap-BgHhRpiV.js +1035 -0
- package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-CAcsUUCo.js} +104 -102
- package/dist/vue-ui-waffle-Ct3Upw3m.js +910 -0
- package/dist/vue-ui-wheel-oz06Kt-p.js +379 -0
- package/dist/vue-ui-word-cloud-BRy7fg4S.js +765 -0
- package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-CTV-YfFN.js} +364 -327
- package/dist/vue-ui-xy-DqCy9dpa.js +3808 -0
- package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-BZdhKUIp.js} +265 -264
- package/package.json +4 -4
- package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
- package/dist/Slicer-3t0HimeE.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-BC4Ciblw.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
- package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
- package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
- package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
- package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
- package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
- package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
- package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
- package/dist/vue-ui-flow-MvORTthN.js +0 -765
- package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
- package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
- package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
- package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
- package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
- package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
- package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
- package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
- package/dist/vue-ui-onion-DXLokGec.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
- package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
- package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
- package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
- package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
- package/dist/vue-ui-rings-Duay-EmS.js +0 -685
- package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
- package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
- package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
- package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
- package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
- package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
- package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
- package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
- package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
- package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
- package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
- package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
- package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
- package/dist/vue-ui-wheel-tydUATi8.js +0 -352
- package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
- package/dist/vue-ui-xy--HToGdle.js +0 -2982
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as $, computed as p, ref as c, watch as te, shallowRef as ae, onMounted as we, onBeforeUnmount as be, createElementBlock as v, openBlock as s, unref as l, normalizeStyle as N, createBlock as I, createCommentVNode as h, createSlots as Ce, withCtx as w, renderSlot as y, normalizeProps as _, guardReactiveProps as x, normalizeClass as R, createVNode as Oe, Fragment as le, renderList as ne, toDisplayString as $e } from "vue";
|
|
2
|
-
import { u as Ie, c as _e, a as xe, o as Ae, e as Pe, w as oe, m as Fe, X as Se, i as ze, v as se, f as Me } from "./index-CgShIRes.js";
|
|
3
|
-
import { t as Te, u as Ne } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as ue } from "./useNestedProp-BC4Ciblw.js";
|
|
5
|
-
import { u as Re } from "./usePrinter-rIrqBbbm.js";
|
|
6
|
-
import { u as Ue } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
-
import { u as Ee } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Xe from "./Title-B2dA6-uH.js";
|
|
9
|
-
import Be from "./img-C_9wps3s.js";
|
|
10
|
-
import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], He = ["d", "fill"], We = ["cx", "cy", "r", "stroke", "stroke-width"], qe = ["x", "y", "font-size", "fill", "font-weight"], Ve = {
|
|
12
|
-
key: 5,
|
|
13
|
-
class: "vue-data-ui-watermark"
|
|
14
|
-
}, Je = {
|
|
15
|
-
__name: "vue-ui-wheel",
|
|
16
|
-
props: {
|
|
17
|
-
config: {
|
|
18
|
-
type: Object,
|
|
19
|
-
default() {
|
|
20
|
-
return {};
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
dataset: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default() {
|
|
26
|
-
return {};
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
setup(re, { expose: ie }) {
|
|
31
|
-
const ce = $(() => import("./PenAndPaper-hGgW0EHz.js")), ve = $(() => import("./vue-ui-skeleton-BsBaCvoE.js")), he = $(() => import("./UserOptions-Bk03FRqW.js")), de = $(() => import("./PackageVersion-2QvaZf9_.js")), { vue_ui_wheel: ye } = Ie(), d = re, A = p(() => !!d.dataset && Object.keys(d.dataset).length), P = c(_e()), fe = c(null), U = c(0), g = c(null), E = c(null), X = c(null), B = c(null), L = c(0), e = p({
|
|
32
|
-
get: () => Y(),
|
|
33
|
-
set: (t) => t
|
|
34
|
-
}), { userOptionsVisible: F, setUserOptionsVisibility: G, keepUserOptionState: j } = Ue({ config: e.value }), { svgRef: D } = Ee({ config: e.value.style.chart.title });
|
|
35
|
-
function Y() {
|
|
36
|
-
const t = ue({
|
|
37
|
-
userConfig: d.config,
|
|
38
|
-
defaultConfig: ye
|
|
39
|
-
});
|
|
40
|
-
return t.theme ? {
|
|
41
|
-
...ue({
|
|
42
|
-
userConfig: xe.vue_ui_wheel[t.theme] || d.config,
|
|
43
|
-
defaultConfig: t
|
|
44
|
-
})
|
|
45
|
-
} : t;
|
|
46
|
-
}
|
|
47
|
-
te(() => d.config, (t) => {
|
|
48
|
-
e.value = Y(), F.value = !e.value.userOptions.showOnChartHover, K(), L.value += 1;
|
|
49
|
-
}, { deep: !0 });
|
|
50
|
-
const { isPrinting: H, isImaging: W, generatePdf: q, generateImage: V } = Re({
|
|
51
|
-
elementId: P.value,
|
|
52
|
-
fileName: e.value.style.chart.title.text || "vue-ui-wheel",
|
|
53
|
-
options: e.value.userOptions.print
|
|
54
|
-
}), pe = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), o = c({
|
|
55
|
-
size: 360,
|
|
56
|
-
height: 360,
|
|
57
|
-
width: 360
|
|
58
|
-
}), S = c(e.value.style.chart.layout.percentage.fontSize), r = p(() => ({
|
|
59
|
-
radius: Math.min(o.value.width, o.value.height) * 0.9 / 2,
|
|
60
|
-
centerX: o.value.width / 2,
|
|
61
|
-
centerY: o.value.height / 2
|
|
62
|
-
}));
|
|
63
|
-
function J(t, n = 1) {
|
|
64
|
-
return {
|
|
65
|
-
x: r.value.centerX + r.value.radius * Math.cos(29.85 + t * Math.PI / 180) * n,
|
|
66
|
-
y: r.value.centerY + r.value.radius * Math.sin(29.85 + t * Math.PI / 180) * n
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
const i = c(e.value.style.chart.animation.use ? 0 : d.dataset.percentage || 0);
|
|
70
|
-
te(() => d.dataset, (t) => {
|
|
71
|
-
e.value.style.chart.animation.use ? Q(t.percentage) : i.value = t.percentage || 0;
|
|
72
|
-
}, { deep: !0 });
|
|
73
|
-
const f = ae(null), m = ae(null);
|
|
74
|
-
we(() => {
|
|
75
|
-
K();
|
|
76
|
-
});
|
|
77
|
-
function K() {
|
|
78
|
-
if (Ae(d.dataset) && Pe({
|
|
79
|
-
componentName: "VueUiWheel",
|
|
80
|
-
type: "dataset"
|
|
81
|
-
}), Q(d.dataset.percentage || 0), e.value.responsive) {
|
|
82
|
-
const t = Te(() => {
|
|
83
|
-
const { width: n, height: a } = Ne({
|
|
84
|
-
chart: g.value,
|
|
85
|
-
title: e.value.style.chart.title.text ? E.value : null,
|
|
86
|
-
source: X.value,
|
|
87
|
-
noTitle: B.value
|
|
88
|
-
});
|
|
89
|
-
requestAnimationFrame(() => {
|
|
90
|
-
o.value.width = n, o.value.height = a, S.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(n, a);
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
f.value && (m.value && f.value.unobserve(m.value), f.value.disconnect()), f.value = new ResizeObserver(t), m.value = g.value.parentNode, f.value.observe(m.value);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
be(() => {
|
|
97
|
-
f.value && (m.value && f.value.unobserve(m.value), f.value.disconnect());
|
|
98
|
-
});
|
|
99
|
-
function Q(t) {
|
|
100
|
-
let n = e.value.style.chart.animation.speed;
|
|
101
|
-
const a = Math.abs(t - i.value) / (n * 120);
|
|
102
|
-
function u() {
|
|
103
|
-
i.value < t ? i.value = Math.min(i.value + a, t) : i.value > t && (i.value = Math.max(i.value - a, t)), i.value !== t && requestAnimationFrame(u);
|
|
104
|
-
}
|
|
105
|
-
u();
|
|
106
|
-
}
|
|
107
|
-
const k = p(() => Math.max(100, e.value.style.chart.layout.wheel.ticks.quantity)), b = p(() => 100 / k.value), Z = p(() => {
|
|
108
|
-
const t = [];
|
|
109
|
-
for (let n = 0; n < k.value; n += 1) {
|
|
110
|
-
const a = i.value > n * b.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: u, y: M } = J(o.value.size / k.value * n), { x: T, y: ke } = J(o.value.size / k.value * n, e.value.style.chart.layout.wheel.ticks.sizeRatio);
|
|
111
|
-
t.push({
|
|
112
|
-
x1: u,
|
|
113
|
-
y1: M,
|
|
114
|
-
x2: T,
|
|
115
|
-
y2: ke,
|
|
116
|
-
color: e.value.style.chart.layout.wheel.ticks.gradient.show ? oe(a, n * b.value / k.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
return t;
|
|
120
|
-
}), ge = p(() => Fe({ series: Z.value.map((t) => ({
|
|
121
|
-
name: "",
|
|
122
|
-
value: 1,
|
|
123
|
-
color: t.color
|
|
124
|
-
})) }, r.value.centerX, r.value.centerY, r.value.radius, r.value.radius, 1.99999, 2, 1, 360, 105.25, r.value.radius * (1 - e.value.style.chart.layout.wheel.ticks.sizeRatio))), C = c(!1);
|
|
125
|
-
function ee(t) {
|
|
126
|
-
C.value = t, U.value += 1;
|
|
127
|
-
}
|
|
128
|
-
const O = c(!1);
|
|
129
|
-
function z() {
|
|
130
|
-
O.value = !O.value;
|
|
131
|
-
}
|
|
132
|
-
async function me({ scale: t = 2 } = {}) {
|
|
133
|
-
if (!g.value) return;
|
|
134
|
-
const { width: n, height: a } = g.value.getBoundingClientRect(), u = n / a, { imageUri: M, base64: T } = await Be({ domElement: g.value, base64: !0, img: !0, scale: t });
|
|
135
|
-
return {
|
|
136
|
-
imageUri: M,
|
|
137
|
-
base64: T,
|
|
138
|
-
title: e.value.style.chart.title.text,
|
|
139
|
-
width: n,
|
|
140
|
-
height: a,
|
|
141
|
-
aspectRatio: u
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
return ie({
|
|
145
|
-
getImage: me,
|
|
146
|
-
generatePdf: q,
|
|
147
|
-
generateImage: V,
|
|
148
|
-
toggleAnnotator: z,
|
|
149
|
-
toggleFullscreen: ee
|
|
150
|
-
}), (t, n) => (s(), v("div", {
|
|
151
|
-
class: "vue-ui-wheel",
|
|
152
|
-
ref_key: "wheelChart",
|
|
153
|
-
ref: g,
|
|
154
|
-
id: P.value,
|
|
155
|
-
style: N(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
156
|
-
onMouseenter: n[0] || (n[0] = () => l(G)(!0)),
|
|
157
|
-
onMouseleave: n[1] || (n[1] = () => l(G)(!1))
|
|
158
|
-
}, [
|
|
159
|
-
e.value.userOptions.buttons.annotator ? (s(), I(l(ce), {
|
|
160
|
-
key: 0,
|
|
161
|
-
svgRef: l(D),
|
|
162
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
163
|
-
color: e.value.style.chart.color,
|
|
164
|
-
active: O.value,
|
|
165
|
-
onClose: z
|
|
166
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
167
|
-
pe.value ? (s(), v("div", {
|
|
168
|
-
key: 1,
|
|
169
|
-
ref_key: "noTitle",
|
|
170
|
-
ref: B,
|
|
171
|
-
class: "vue-data-ui-no-title-space",
|
|
172
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
173
|
-
}, null, 512)) : h("", !0),
|
|
174
|
-
e.value.style.chart.title.text ? (s(), v("div", {
|
|
175
|
-
key: 2,
|
|
176
|
-
ref_key: "chartTitle",
|
|
177
|
-
ref: E,
|
|
178
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
179
|
-
}, [
|
|
180
|
-
(s(), I(Xe, {
|
|
181
|
-
key: `title_${L.value}`,
|
|
182
|
-
config: {
|
|
183
|
-
title: {
|
|
184
|
-
cy: "wheel-title",
|
|
185
|
-
...e.value.style.chart.title
|
|
186
|
-
},
|
|
187
|
-
subtitle: {
|
|
188
|
-
cy: "wheel-subtitle",
|
|
189
|
-
...e.value.style.chart.title.subtitle
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}, null, 8, ["config"]))
|
|
193
|
-
], 512)) : h("", !0),
|
|
194
|
-
e.value.userOptions.show && A.value && (l(j) || l(F)) ? (s(), I(l(he), {
|
|
195
|
-
ref_key: "details",
|
|
196
|
-
ref: fe,
|
|
197
|
-
key: `user_options_${U.value}`,
|
|
198
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
199
|
-
color: e.value.style.chart.color,
|
|
200
|
-
isPrinting: l(H),
|
|
201
|
-
isImaging: l(W),
|
|
202
|
-
uid: P.value,
|
|
203
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
204
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
205
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
206
|
-
hasXls: !1,
|
|
207
|
-
isFullscreen: C.value,
|
|
208
|
-
position: e.value.userOptions.position,
|
|
209
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
210
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
211
|
-
isAnnotation: O.value,
|
|
212
|
-
chartElement: g.value,
|
|
213
|
-
callbacks: e.value.userOptions.callbacks,
|
|
214
|
-
printScale: e.value.userOptions.print.scale,
|
|
215
|
-
onToggleFullscreen: ee,
|
|
216
|
-
onGeneratePdf: l(q),
|
|
217
|
-
onGenerateImage: l(V),
|
|
218
|
-
onToggleAnnotator: z,
|
|
219
|
-
style: N({
|
|
220
|
-
visibility: l(j) ? l(F) ? "visible" : "hidden" : "visible"
|
|
221
|
-
})
|
|
222
|
-
}, Ce({ _: 2 }, [
|
|
223
|
-
t.$slots.menuIcon ? {
|
|
224
|
-
name: "menuIcon",
|
|
225
|
-
fn: w(({ isOpen: a, color: u }) => [
|
|
226
|
-
y(t.$slots, "menuIcon", _(x({ isOpen: a, color: u })), void 0, !0)
|
|
227
|
-
]),
|
|
228
|
-
key: "0"
|
|
229
|
-
} : void 0,
|
|
230
|
-
t.$slots.optionPdf ? {
|
|
231
|
-
name: "optionPdf",
|
|
232
|
-
fn: w(() => [
|
|
233
|
-
y(t.$slots, "optionPdf", {}, void 0, !0)
|
|
234
|
-
]),
|
|
235
|
-
key: "1"
|
|
236
|
-
} : void 0,
|
|
237
|
-
t.$slots.optionImg ? {
|
|
238
|
-
name: "optionImg",
|
|
239
|
-
fn: w(() => [
|
|
240
|
-
y(t.$slots, "optionImg", {}, void 0, !0)
|
|
241
|
-
]),
|
|
242
|
-
key: "2"
|
|
243
|
-
} : void 0,
|
|
244
|
-
t.$slots.optionFullscreen ? {
|
|
245
|
-
name: "optionFullscreen",
|
|
246
|
-
fn: w(({ toggleFullscreen: a, isFullscreen: u }) => [
|
|
247
|
-
y(t.$slots, "optionFullscreen", _(x({ toggleFullscreen: a, isFullscreen: u })), void 0, !0)
|
|
248
|
-
]),
|
|
249
|
-
key: "3"
|
|
250
|
-
} : void 0,
|
|
251
|
-
t.$slots.optionAnnotator ? {
|
|
252
|
-
name: "optionAnnotator",
|
|
253
|
-
fn: w(({ toggleAnnotator: a, isAnnotator: u }) => [
|
|
254
|
-
y(t.$slots, "optionAnnotator", _(x({ toggleAnnotator: a, isAnnotator: u })), void 0, !0)
|
|
255
|
-
]),
|
|
256
|
-
key: "4"
|
|
257
|
-
} : void 0
|
|
258
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
259
|
-
A.value ? (s(), v("svg", {
|
|
260
|
-
key: 4,
|
|
261
|
-
ref_key: "svgRef",
|
|
262
|
-
ref: D,
|
|
263
|
-
xmlns: l(Se),
|
|
264
|
-
class: R({ "vue-data-ui-fullscreen--on": C.value, "vue-data-ui-fulscreen--off": !C.value }),
|
|
265
|
-
viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
|
|
266
|
-
style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
267
|
-
}, [
|
|
268
|
-
Oe(l(de)),
|
|
269
|
-
t.$slots["chart-background"] ? (s(), v("foreignObject", {
|
|
270
|
-
key: 0,
|
|
271
|
-
x: 0,
|
|
272
|
-
y: 0,
|
|
273
|
-
width: o.value.width <= 0 ? 10 : o.value.width,
|
|
274
|
-
height: o.value.height <= 0 ? 10 : o.value.height,
|
|
275
|
-
style: {
|
|
276
|
-
pointerEvents: "none"
|
|
277
|
-
}
|
|
278
|
-
}, [
|
|
279
|
-
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
280
|
-
], 8, De)) : h("", !0),
|
|
281
|
-
e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(!0), v(le, { key: 1 }, ne(Z.value, (a, u) => (s(), v("line", {
|
|
282
|
-
x1: a.x1,
|
|
283
|
-
x2: a.x2,
|
|
284
|
-
y1: a.y1,
|
|
285
|
-
y2: a.y2,
|
|
286
|
-
stroke: a.color,
|
|
287
|
-
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(o.value.width, o.value.height),
|
|
288
|
-
"stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
289
|
-
class: R({ "vue-ui-tick-animated": e.value.style.chart.animation.use && u * b.value <= i.value })
|
|
290
|
-
}, null, 10, Ye))), 256)) : (s(!0), v(le, { key: 2 }, ne(ge.value, (a, u) => (s(), v("path", {
|
|
291
|
-
d: a.arcSlice,
|
|
292
|
-
fill: a.color,
|
|
293
|
-
class: R({ "vue-ui-tick-animated": e.value.style.chart.animation.use && u * b.value <= i.value })
|
|
294
|
-
}, null, 10, He))), 256)),
|
|
295
|
-
e.value.style.chart.layout.innerCircle.show ? (s(), v("circle", {
|
|
296
|
-
key: 3,
|
|
297
|
-
cx: r.value.centerX,
|
|
298
|
-
cy: r.value.centerY,
|
|
299
|
-
r: r.value.radius * 0.8 <= 0 ? 1e-4 : r.value.radius * 0.8,
|
|
300
|
-
stroke: e.value.style.chart.layout.innerCircle.stroke,
|
|
301
|
-
"stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
|
|
302
|
-
fill: "none"
|
|
303
|
-
}, null, 8, We)) : h("", !0),
|
|
304
|
-
e.value.style.chart.layout.percentage.show ? (s(), v("text", {
|
|
305
|
-
key: 4,
|
|
306
|
-
x: r.value.centerX,
|
|
307
|
-
y: r.value.centerY + S.value / 3,
|
|
308
|
-
"font-size": S.value,
|
|
309
|
-
fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? l(oe)(e.value.style.chart.layout.wheel.ticks.activeColor, i.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
|
|
310
|
-
"text-anchor": "middle",
|
|
311
|
-
"font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
312
|
-
style: { "font-variant-numeric": "tabluar-nums" }
|
|
313
|
-
}, $e(l(ze)(
|
|
314
|
-
e.value.style.chart.layout.percentage.formatter,
|
|
315
|
-
l(se)(i.value),
|
|
316
|
-
l(Me)({
|
|
317
|
-
v: l(se)(i.value),
|
|
318
|
-
s: "%",
|
|
319
|
-
r: e.value.style.chart.layout.percentage.rounding
|
|
320
|
-
})
|
|
321
|
-
)), 9, qe)) : h("", !0),
|
|
322
|
-
y(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
323
|
-
], 14, je)) : h("", !0),
|
|
324
|
-
t.$slots.watermark ? (s(), v("div", Ve, [
|
|
325
|
-
y(t.$slots, "watermark", _(x({ isPrinting: l(H) || l(W) })), void 0, !0)
|
|
326
|
-
])) : h("", !0),
|
|
327
|
-
t.$slots.source ? (s(), v("div", {
|
|
328
|
-
key: 6,
|
|
329
|
-
ref_key: "source",
|
|
330
|
-
ref: X,
|
|
331
|
-
dir: "auto"
|
|
332
|
-
}, [
|
|
333
|
-
y(t.$slots, "source", {}, void 0, !0)
|
|
334
|
-
], 512)) : h("", !0),
|
|
335
|
-
A.value ? h("", !0) : (s(), I(l(ve), {
|
|
336
|
-
key: 7,
|
|
337
|
-
config: {
|
|
338
|
-
type: "wheel",
|
|
339
|
-
style: {
|
|
340
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
341
|
-
wheel: {
|
|
342
|
-
color: "#CCCCCC"
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}, null, 8, ["config"]))
|
|
347
|
-
], 44, Ge));
|
|
348
|
-
}
|
|
349
|
-
}, ut = /* @__PURE__ */ Le(Je, [["__scopeId", "data-v-e7d09662"]]);
|
|
350
|
-
export {
|
|
351
|
-
ut as default
|
|
352
|
-
};
|