vue-data-ui 2.2.90 → 2.2.91
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/data-table-d-VcuH-r.js +1488 -0
- package/dist/{index.es-Cgqo-FBk.js → index.es-Dc9Fd4o6.js} +1 -1
- package/dist/legend-DJCYLsl_.js +61 -0
- package/dist/style.css +1 -1
- package/dist/themes-lgjsYHsH.js +4967 -0
- package/dist/title-BF-9Qcni.js +56 -0
- package/dist/tooltip-D85WEOKi.js +94 -0
- package/dist/user-options-DZgCz8UA.js +415 -0
- package/dist/vue-data-ui.js +455 -61
- package/dist/vue-ui-3d-bar-DW7kGJSz.js +20360 -0
- package/dist/vue-ui-age-pyramid-4hcuKpFY.js +781 -0
- package/dist/vue-ui-annotator-C83FVvl8.js +2175 -0
- package/dist/vue-ui-candlestick-diclGj95.js +807 -0
- package/dist/vue-ui-chestnut-ACetHLdG.js +1049 -0
- package/dist/vue-ui-cursor-Rx7UNaYT.js +229 -0
- package/dist/vue-ui-dashboard-B3PlN0ks.js +231 -0
- package/dist/vue-ui-digits-CxMXID42.js +154 -0
- package/dist/vue-ui-donut-DMiwVXNd.js +1534 -0
- package/dist/vue-ui-dumbbell-B_X1T8TR.js +621 -0
- package/dist/vue-ui-flow-B72wzQ6V.js +451 -0
- package/dist/vue-ui-galaxy-DXX5yivT.js +482 -0
- package/dist/vue-ui-gauge-Cs9PDurH.js +466 -0
- package/dist/vue-ui-heatmap-PcoNSLdN.js +581 -0
- package/dist/vue-ui-kpi-DchEmPtB.js +55 -0
- package/dist/vue-ui-mini-loader-DltJLkqy.js +131 -0
- package/dist/vue-ui-molecule-CWvukBzs.js +746 -0
- package/dist/vue-ui-mood-radar-DEfdtIi8.js +544 -0
- package/dist/vue-ui-nested-donuts-9URpqgXE.js +768 -0
- package/dist/vue-ui-onion-C0eowUT6.js +551 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bc_pAaPJ.js +647 -0
- package/dist/vue-ui-quadrant-_ddVAm9V.js +1174 -0
- package/dist/vue-ui-quick-chart-Cio0hDYO.js +1310 -0
- package/dist/vue-ui-radar-Dyg38i33.js +853 -0
- package/dist/vue-ui-rating-CE1Lmwd2.js +271 -0
- package/dist/vue-ui-relation-circle-BMlB3k3d.js +303 -0
- package/dist/vue-ui-rings-BuXeijvb.js +507 -0
- package/dist/vue-ui-scatter-B1hZfOua.js +870 -0
- package/dist/vue-ui-screenshot-0QXgxzGs.js +160 -0
- package/dist/vue-ui-smiley-B7kR7exr.js +763 -0
- package/dist/vue-ui-spark-trend-BmL2KiYL.js +245 -0
- package/dist/vue-ui-sparkgauge-BMzFv14L.js +158 -0
- package/dist/vue-ui-sparkhistogram-DWpOXqHm.js +243 -0
- package/dist/vue-ui-sparkstackbar-DB9VQXlc.js +244 -0
- package/dist/vue-ui-strip-plot-DyN6P0JO.js +614 -0
- package/dist/vue-ui-table-DM3zL89q.js +2180 -0
- package/dist/vue-ui-table-heatmap-gWx0Nslu.js +237 -0
- package/dist/vue-ui-thermometer-Bcqv5kd_.js +384 -0
- package/dist/vue-ui-timer-BIFxjujK.js +451 -0
- package/dist/vue-ui-tiremarks-zBwHpED_.js +248 -0
- package/dist/vue-ui-treemap-BaplVc_z.js +719 -0
- package/dist/vue-ui-vertical-bar-CdK6ZJPM.js +734 -0
- package/dist/vue-ui-waffle-COOzH7M3.js +635 -0
- package/dist/vue-ui-wheel-BEpuVTBk.js +226 -0
- package/dist/vue-ui-word-cloud-DNqxAAiX.js +344 -0
- package/dist/vue-ui-xy-_mHq-czW.js +2058 -0
- package/dist/vue-ui-xy-canvas-DqX8Gee5.js +1003 -0
- package/package.json +1 -1
- package/dist/index-DZlxUin4.js +0 -57288
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
import { computed as p, ref as h, watch as de, onMounted as ye, onBeforeUnmount as fe, openBlock as r, createElementBlock as i, normalizeClass as q, normalizeStyle as F, createElementVNode as v, toDisplayString as m, createCommentVNode as g, createBlock as H, unref as d, createSlots as ge, withCtx as E, renderSlot as $, normalizeProps as pe, guardReactiveProps as me, Fragment as O, renderList as j } from "vue";
|
|
2
|
+
import { _ as ke, e as be, f as xe, p as J, g as we, i as Z, h as _e, j as N, k as K, m as Q, X as Fe, o as A, J as X, E as ee } from "./data-table-d-VcuH-r.js";
|
|
3
|
+
import { t as Se, u as ze } from "./vue-ui-age-pyramid-4hcuKpFY.js";
|
|
4
|
+
import { t as $e } from "./themes-lgjsYHsH.js";
|
|
5
|
+
import { U as Ce } from "./user-options-DZgCz8UA.js";
|
|
6
|
+
import { u as Me, a as Pe, S as Ie } from "./vue-ui-3d-bar-DW7kGJSz.js";
|
|
7
|
+
import { u as te } from "./title-BF-9Qcni.js";
|
|
8
|
+
const Oe = ["id"], Ne = ["xmlns", "viewBox"], Xe = ["id"], Ye = ["stop-color"], Ge = ["stop-color"], Re = ["stop-color"], Ee = ["id"], je = ["stdDeviation"], Ae = ["d", "fill", "stroke"], Ue = ["d", "filter"], Be = ["y", "width", "height", "fill"], De = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Ve = ["x", "y", "font-size", "font-weight", "fill"], We = { key: 1 }, Le = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Te = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], qe = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], He = { key: 2 }, Je = ["d", "fill", "stroke", "stroke-width"], Ze = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Ke = ["x", "y", "font-size", "fill"], Qe = {
|
|
9
|
+
__name: "vue-ui-gauge",
|
|
10
|
+
props: {
|
|
11
|
+
config: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default() {
|
|
14
|
+
return {};
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
dataset: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default() {
|
|
20
|
+
return {};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
setup(Y, { expose: ae }) {
|
|
25
|
+
const u = Y, { vue_ui_gauge: le } = Me(), C = p(() => !!u.dataset && Object.keys(u.dataset).length), k = h(be()), oe = h(null), U = h(0), M = h(null), B = h(null), D = h(null), e = p(() => {
|
|
26
|
+
const l = te({
|
|
27
|
+
userConfig: u.config,
|
|
28
|
+
defaultConfig: le
|
|
29
|
+
});
|
|
30
|
+
return l.theme ? {
|
|
31
|
+
...te({
|
|
32
|
+
userConfig: $e.vue_ui_gauge[l.theme] || u.config,
|
|
33
|
+
defaultConfig: l
|
|
34
|
+
}),
|
|
35
|
+
customPalette: xe[l.theme] || J
|
|
36
|
+
} : l;
|
|
37
|
+
}), { isPrinting: re, isImaging: se, generatePdf: V, generateImage: W } = Pe({
|
|
38
|
+
elementId: `vue-ui-gauge_${k.value}`,
|
|
39
|
+
fileName: e.value.style.chart.title.text || "vue-ui-gauge"
|
|
40
|
+
}), ue = p(() => we(e.value.customPalette)), x = p(() => {
|
|
41
|
+
if (!C.value || Z(u.dataset.series || {}))
|
|
42
|
+
return {
|
|
43
|
+
value: 0,
|
|
44
|
+
series: [
|
|
45
|
+
{
|
|
46
|
+
from: 0,
|
|
47
|
+
to: 1
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
};
|
|
51
|
+
const l = [];
|
|
52
|
+
(u.dataset.series || []).forEach((a) => {
|
|
53
|
+
l.push(a.from || 0), l.push(a.to || 0);
|
|
54
|
+
});
|
|
55
|
+
const o = Math.max(...l);
|
|
56
|
+
return {
|
|
57
|
+
...u.dataset,
|
|
58
|
+
series: (u.dataset.series || []).map((a, n) => ({
|
|
59
|
+
...a,
|
|
60
|
+
color: _e(a.color) || ue.value[n] || J[n],
|
|
61
|
+
value: ((a.to || 0) - (a.from || 0)) / o * 100
|
|
62
|
+
}))
|
|
63
|
+
};
|
|
64
|
+
}), y = h(512), t = h({
|
|
65
|
+
height: 358.4,
|
|
66
|
+
width: y.value,
|
|
67
|
+
top: 0,
|
|
68
|
+
bottom: 358.4,
|
|
69
|
+
centerX: 179.2,
|
|
70
|
+
centerY: y.value / 2,
|
|
71
|
+
labelFontSize: 18,
|
|
72
|
+
legendFontSize: e.value.style.chart.legend.fontSize,
|
|
73
|
+
pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
|
|
74
|
+
trackSize: e.value.style.chart.layout.track.size,
|
|
75
|
+
pointerSize: e.value.style.chart.layout.pointer.size,
|
|
76
|
+
pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
|
|
77
|
+
markerOffset: e.value.style.chart.layout.markers.offsetY + 3
|
|
78
|
+
}), S = h(0), w = h(0), f = h(e.value.style.chart.animation.use ? 0 : u.dataset.value);
|
|
79
|
+
de(() => u.dataset.value, () => {
|
|
80
|
+
f.value = e.value.style.chart.animation.use ? 0 : u.dataset.value, T();
|
|
81
|
+
});
|
|
82
|
+
const c = p(() => {
|
|
83
|
+
const l = t.value.width / 2, o = s.value.base, a = Math.PI * ((f.value + 0 - w.value) / (S.value - w.value)) + Math.PI;
|
|
84
|
+
return {
|
|
85
|
+
x1: l,
|
|
86
|
+
y1: o,
|
|
87
|
+
x2: l + s.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(a),
|
|
88
|
+
y2: o + s.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(a)
|
|
89
|
+
};
|
|
90
|
+
}), L = p(() => {
|
|
91
|
+
const l = t.value.width / 2, o = s.value.base, a = Math.PI * ((f.value + 0 - w.value) / (S.value - w.value)) + Math.PI, n = l + s.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(a), R = o + s.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(a), b = t.value.pointerRadius, I = l + b * Math.cos(a + Math.PI / 2), ce = o + b * Math.sin(a + Math.PI / 2), ve = l + b * Math.cos(a - Math.PI / 2), he = o + b * Math.sin(a - Math.PI / 2);
|
|
92
|
+
return isNaN(n) ? null : `M ${n},${R} ${I},${ce} ${ve},${he} Z`;
|
|
93
|
+
}), G = p(() => {
|
|
94
|
+
for (let l = 0; l < x.value.series.length; l += 1) {
|
|
95
|
+
const { color: o, from: a, to: n } = x.value.series[l];
|
|
96
|
+
if (f.value >= a && f.value <= n)
|
|
97
|
+
return o;
|
|
98
|
+
}
|
|
99
|
+
return "#2D353C";
|
|
100
|
+
}), P = h(null);
|
|
101
|
+
ye(() => {
|
|
102
|
+
if (Z(u.dataset) ? N({
|
|
103
|
+
componentName: "VueUiGauge",
|
|
104
|
+
type: "dataset"
|
|
105
|
+
}) : (K({
|
|
106
|
+
datasetObject: u.dataset,
|
|
107
|
+
requiredAttributes: ["value", "series"]
|
|
108
|
+
}).forEach((l) => {
|
|
109
|
+
N({
|
|
110
|
+
componentName: "VueUiGauge",
|
|
111
|
+
type: "datasetAttribute",
|
|
112
|
+
property: l
|
|
113
|
+
});
|
|
114
|
+
}), Object.hasOwn(u.dataset, "series") && (u.dataset.series.length ? u.dataset.series.forEach((l, o) => {
|
|
115
|
+
K({
|
|
116
|
+
datasetObject: l,
|
|
117
|
+
requiredAttributes: ["from", "to"]
|
|
118
|
+
}).forEach((a) => {
|
|
119
|
+
N({
|
|
120
|
+
componentName: "VueUiGauge",
|
|
121
|
+
type: "datasetSerieAttribute",
|
|
122
|
+
property: a,
|
|
123
|
+
index: o
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
}) : N({
|
|
127
|
+
componentName: "VueUiGauge",
|
|
128
|
+
type: "datasetAttributeEmpty",
|
|
129
|
+
property: "series"
|
|
130
|
+
}))), T(), e.value.responsive) {
|
|
131
|
+
const l = Se(() => {
|
|
132
|
+
const { width: o, height: a } = ze({
|
|
133
|
+
chart: M.value,
|
|
134
|
+
title: e.value.style.chart.title.text ? B.value : null,
|
|
135
|
+
legend: D.value
|
|
136
|
+
});
|
|
137
|
+
t.value.width = o, t.value.height = a, t.value.centerX = o / 2, t.value.centerY = y.value / 2 / 358.4 * a, t.value.bottom = a, t.value.labelFontSize = 18 / y.value * Math.min(a, o) < 10 ? 10 : 18 / y.value * Math.min(a, o), t.value.legendFontSize = e.value.style.chart.legend.fontSize / y.value * Math.min(a, o) < 14 ? 14 : e.value.style.chart.legend.fontSize / y.value * Math.min(a, o), t.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / y.value * Math.min(a, o), t.value.trackSize = e.value.style.chart.layout.track.size / y.value * Math.min(a, o), t.value.pointerStrokeWidth = ee({
|
|
138
|
+
relator: Math.min(o, a),
|
|
139
|
+
adjuster: y.value,
|
|
140
|
+
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
141
|
+
threshold: 2,
|
|
142
|
+
fallback: 2
|
|
143
|
+
}), t.value.markerOffset = ee({
|
|
144
|
+
relator: Math.max(o, a),
|
|
145
|
+
adjuster: y.value,
|
|
146
|
+
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
147
|
+
threshold: 2,
|
|
148
|
+
fallback: 2
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
P.value = new ResizeObserver(l), P.value.observe(M.value.parentNode);
|
|
152
|
+
}
|
|
153
|
+
}), fe(() => {
|
|
154
|
+
P.value && P.value.disconnect();
|
|
155
|
+
});
|
|
156
|
+
function T() {
|
|
157
|
+
const l = [];
|
|
158
|
+
(x.value.series || []).forEach((I) => {
|
|
159
|
+
l.push(I.from || 0), l.push(I.to || 0);
|
|
160
|
+
}), S.value = Math.max(...l), w.value = Math.min(...l);
|
|
161
|
+
const o = String(S.value).length;
|
|
162
|
+
let a = 0, n = (o > 2 ? 0.01 : 1e-3) * e.value.style.chart.animation.speed, R = (o > 2 ? 0.05 : 5e-3) * e.value.style.chart.animation.acceleration;
|
|
163
|
+
function b() {
|
|
164
|
+
f.value += n + a, a += R, f.value < u.dataset.value ? requestAnimationFrame(b) : f.value = u.dataset.value;
|
|
165
|
+
}
|
|
166
|
+
e.value.style.chart.animation.use && (f.value = w.value, b());
|
|
167
|
+
}
|
|
168
|
+
const s = p(() => {
|
|
169
|
+
const l = e.value.responsive ? Math.min(t.value.width, t.value.height) : t.value.width;
|
|
170
|
+
return {
|
|
171
|
+
arcs: l / 2.5,
|
|
172
|
+
gradients: l / 2.75,
|
|
173
|
+
base: e.value.responsive ? t.value.height / 2 : t.value.height * 0.7,
|
|
174
|
+
ratingBase: e.value.responsive ? t.value.height / 2 + t.value.height / 4 : t.value.height * 0.9,
|
|
175
|
+
pointerSize: e.value.responsive ? Math.min(t.value.width, t.value.height) / 3 : t.value.width / 3.2
|
|
176
|
+
};
|
|
177
|
+
}), _ = p(() => Q(
|
|
178
|
+
{ series: x.value.series },
|
|
179
|
+
t.value.width / 2,
|
|
180
|
+
s.value.base,
|
|
181
|
+
s.value.arcs,
|
|
182
|
+
s.value.arcs,
|
|
183
|
+
1,
|
|
184
|
+
1,
|
|
185
|
+
1,
|
|
186
|
+
180,
|
|
187
|
+
109.9495,
|
|
188
|
+
40 * t.value.trackSize
|
|
189
|
+
)), ie = p(() => Q(
|
|
190
|
+
{ series: x.value.series },
|
|
191
|
+
t.value.width / 2,
|
|
192
|
+
s.value.base,
|
|
193
|
+
s.value.gradients,
|
|
194
|
+
s.value.gradients,
|
|
195
|
+
1,
|
|
196
|
+
1,
|
|
197
|
+
1,
|
|
198
|
+
180,
|
|
199
|
+
109.9495,
|
|
200
|
+
2 * t.value.trackSize
|
|
201
|
+
)), z = h(!1);
|
|
202
|
+
function ne(l) {
|
|
203
|
+
z.value = l, U.value += 1;
|
|
204
|
+
}
|
|
205
|
+
return ae({
|
|
206
|
+
generatePdf: V,
|
|
207
|
+
generateImage: W
|
|
208
|
+
}), (l, o) => (r(), i("div", {
|
|
209
|
+
class: q(`vue-ui-gauge ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
210
|
+
ref_key: "gaugeChart",
|
|
211
|
+
ref: M,
|
|
212
|
+
id: `vue-ui-gauge_${k.value}`,
|
|
213
|
+
style: F(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
|
|
214
|
+
}, [
|
|
215
|
+
e.value.style.chart.title.text ? (r(), i("div", {
|
|
216
|
+
key: 0,
|
|
217
|
+
ref_key: "chartTitle",
|
|
218
|
+
ref: B,
|
|
219
|
+
style: F(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px;${e.value.userOptions.show ? "padding-top:36px" : ""}`)
|
|
220
|
+
}, [
|
|
221
|
+
v("div", {
|
|
222
|
+
style: F(`width:100%;text-align:center;color:${e.value.style.chart.title.color};font-size:${e.value.style.chart.title.fontSize}px;font-weight:${e.value.style.chart.title.bold ? "bold" : ""}`)
|
|
223
|
+
}, m(e.value.style.chart.title.text), 5),
|
|
224
|
+
e.value.style.chart.title.subtitle.text ? (r(), i("div", {
|
|
225
|
+
key: 0,
|
|
226
|
+
style: F(`width:100%;text-align:center;color:${e.value.style.chart.title.subtitle.color};font-size:${e.value.style.chart.title.subtitle.fontSize}px;font-weight:${e.value.style.chart.title.subtitle.bold ? "bold" : ""}`)
|
|
227
|
+
}, m(e.value.style.chart.title.subtitle.text), 5)) : g("", !0),
|
|
228
|
+
isNaN(Y.dataset.base) ? g("", !0) : (r(), i("div", {
|
|
229
|
+
key: 1,
|
|
230
|
+
style: F(`width:100%;text-align:center;color:${e.value.style.chart.title.subtitle.color};font-size:${e.value.style.chart.title.subtitle.fontSize}px;font-weight:${e.value.style.chart.title.subtitle.bold ? "bold" : ""}`)
|
|
231
|
+
}, m(e.value.translations.base) + " : " + m(Y.dataset.base), 5))
|
|
232
|
+
], 4)) : g("", !0),
|
|
233
|
+
e.value.userOptions.show && C.value ? (r(), H(Ce, {
|
|
234
|
+
ref_key: "details",
|
|
235
|
+
ref: oe,
|
|
236
|
+
key: `user_options_${U.value}`,
|
|
237
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
238
|
+
color: e.value.style.chart.color,
|
|
239
|
+
isImaging: d(se),
|
|
240
|
+
isPrinting: d(re),
|
|
241
|
+
uid: k.value,
|
|
242
|
+
hasXls: !1,
|
|
243
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
244
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
245
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
246
|
+
isFullscreen: z.value,
|
|
247
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
248
|
+
chartElement: M.value,
|
|
249
|
+
onToggleFullscreen: ne,
|
|
250
|
+
onGeneratePdf: d(V),
|
|
251
|
+
onGenerateImage: d(W)
|
|
252
|
+
}, ge({ _: 2 }, [
|
|
253
|
+
l.$slots.optionPdf ? {
|
|
254
|
+
name: "optionPdf",
|
|
255
|
+
fn: E(() => [
|
|
256
|
+
$(l.$slots, "optionPdf", {}, void 0, !0)
|
|
257
|
+
]),
|
|
258
|
+
key: "0"
|
|
259
|
+
} : void 0,
|
|
260
|
+
l.$slots.optionImg ? {
|
|
261
|
+
name: "optionImg",
|
|
262
|
+
fn: E(() => [
|
|
263
|
+
$(l.$slots, "optionImg", {}, void 0, !0)
|
|
264
|
+
]),
|
|
265
|
+
key: "1"
|
|
266
|
+
} : void 0,
|
|
267
|
+
l.$slots.optionFullscreen ? {
|
|
268
|
+
name: "optionFullscreen",
|
|
269
|
+
fn: E(({ toggleFullscreen: a, isFullscreen: n }) => [
|
|
270
|
+
$(l.$slots, "optionFullscreen", pe(me({ toggleFullscreen: a, isFullscreen: n })), void 0, !0)
|
|
271
|
+
]),
|
|
272
|
+
key: "2"
|
|
273
|
+
} : void 0
|
|
274
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : g("", !0),
|
|
275
|
+
C.value ? (r(), i("svg", {
|
|
276
|
+
key: 2,
|
|
277
|
+
xmlns: d(Fe),
|
|
278
|
+
class: q({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
|
|
279
|
+
viewBox: `0 0 ${t.value.width <= 0 ? 10 : t.value.width} ${t.value.height <= 0 ? 10 : t.value.height}`,
|
|
280
|
+
style: F(`max-width:100%;overflow:hidden !important;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
281
|
+
}, [
|
|
282
|
+
v("defs", null, [
|
|
283
|
+
v("radialGradient", {
|
|
284
|
+
id: `gradient_${k.value}`,
|
|
285
|
+
cx: "50%",
|
|
286
|
+
cy: "50%",
|
|
287
|
+
r: "50%",
|
|
288
|
+
fx: "50%",
|
|
289
|
+
fy: "50%"
|
|
290
|
+
}, [
|
|
291
|
+
v("stop", {
|
|
292
|
+
offset: "0%",
|
|
293
|
+
"stop-color": `#FFFFFF${d(A)[1]}`
|
|
294
|
+
}, null, 8, Ye),
|
|
295
|
+
v("stop", {
|
|
296
|
+
offset: "80%",
|
|
297
|
+
"stop-color": `#FFFFFF${d(A)[e.value.style.chart.layout.track.gradientIntensity]}`
|
|
298
|
+
}, null, 8, Ge),
|
|
299
|
+
v("stop", {
|
|
300
|
+
offset: "100%",
|
|
301
|
+
"stop-color": `#FFFFFF${d(A)[1]}`
|
|
302
|
+
}, null, 8, Re)
|
|
303
|
+
], 8, Xe)
|
|
304
|
+
]),
|
|
305
|
+
v("defs", null, [
|
|
306
|
+
v("filter", {
|
|
307
|
+
id: `blur_${k.value}`,
|
|
308
|
+
x: "-50%",
|
|
309
|
+
y: "-50%",
|
|
310
|
+
width: "200%",
|
|
311
|
+
height: "200%"
|
|
312
|
+
}, [
|
|
313
|
+
v("feGaussianBlur", {
|
|
314
|
+
in: "SourceGraphic",
|
|
315
|
+
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
316
|
+
}, null, 8, je)
|
|
317
|
+
], 8, Ee)
|
|
318
|
+
]),
|
|
319
|
+
(r(!0), i(O, null, j(_.value, (a, n) => (r(), i("path", {
|
|
320
|
+
key: `arc_${n}`,
|
|
321
|
+
d: a.arcSlice,
|
|
322
|
+
fill: a.color,
|
|
323
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
324
|
+
"stroke-linecap": "round"
|
|
325
|
+
}, null, 8, Ae))), 128)),
|
|
326
|
+
e.value.style.chart.layout.track.useGradient ? (r(), i(O, { key: 0 }, [
|
|
327
|
+
(r(!0), i(O, null, j(ie.value, (a, n) => (r(), i("path", {
|
|
328
|
+
key: `arc_${n}`,
|
|
329
|
+
d: a.arcSlice,
|
|
330
|
+
fill: "#FFFFFF",
|
|
331
|
+
stroke: "none",
|
|
332
|
+
"stroke-linecap": "round",
|
|
333
|
+
filter: `url(#blur_${k.value})`
|
|
334
|
+
}, null, 8, Ue))), 128)),
|
|
335
|
+
v("rect", {
|
|
336
|
+
x: 0,
|
|
337
|
+
y: s.value.base,
|
|
338
|
+
width: t.value.width <= 0 ? 1e-4 : t.value.width,
|
|
339
|
+
height: t.value.height * 0.3 <= 0 ? 1e-4 : t.value.height * 0.3,
|
|
340
|
+
fill: e.value.style.chart.backgroundColor
|
|
341
|
+
}, null, 8, Be)
|
|
342
|
+
], 64)) : g("", !0),
|
|
343
|
+
(r(!0), i(O, null, j(_.value, (a, n) => (r(), i("text", {
|
|
344
|
+
x: d(X)({
|
|
345
|
+
centerX: t.value.width / 2,
|
|
346
|
+
centerY: s.value.base,
|
|
347
|
+
initX: a.center.startX,
|
|
348
|
+
initY: a.center.startY,
|
|
349
|
+
offset: t.value.markerOffset
|
|
350
|
+
}).x,
|
|
351
|
+
y: d(X)({
|
|
352
|
+
centerX: t.value.width / 2,
|
|
353
|
+
centerY: s.value.base,
|
|
354
|
+
initX: a.center.startX,
|
|
355
|
+
initY: a.center.startY,
|
|
356
|
+
offset: t.value.markerOffset
|
|
357
|
+
}).y,
|
|
358
|
+
"text-anchor": a.center.startX < t.value.width / 2 - 5 ? "end" : a.center.startX > t.value.width / 2 + 5 ? "start" : "middle",
|
|
359
|
+
"font-size": t.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
360
|
+
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
361
|
+
fill: e.value.style.chart.layout.markers.color
|
|
362
|
+
}, m(a.from.toFixed(e.value.style.chart.layout.markers.roundingValue)), 9, De))), 256)),
|
|
363
|
+
v("text", {
|
|
364
|
+
x: d(X)({
|
|
365
|
+
centerX: t.value.width / 2,
|
|
366
|
+
centerY: s.value.base,
|
|
367
|
+
initX: _.value.at(-1).endX,
|
|
368
|
+
initY: _.value.at(-1).endY,
|
|
369
|
+
offset: t.value.markerOffset
|
|
370
|
+
}).x,
|
|
371
|
+
y: d(X)({
|
|
372
|
+
centerX: t.value.width / 2,
|
|
373
|
+
centerY: s.value.base,
|
|
374
|
+
initX: _.value.at(-1).endX,
|
|
375
|
+
initY: _.value.at(-1).endY,
|
|
376
|
+
offset: t.value.markerOffset
|
|
377
|
+
}).y,
|
|
378
|
+
"text-anchor": "start",
|
|
379
|
+
"font-size": t.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
380
|
+
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
381
|
+
fill: e.value.style.chart.layout.markers.color
|
|
382
|
+
}, m(S.value.toFixed(e.value.style.chart.layout.markers.roundingValue)), 9, Ve),
|
|
383
|
+
e.value.style.chart.layout.pointer.type === "rounded" ? (r(), i("g", We, [
|
|
384
|
+
isNaN(c.value.x2) ? g("", !0) : (r(), i("line", {
|
|
385
|
+
key: 0,
|
|
386
|
+
x1: c.value.x1,
|
|
387
|
+
y1: c.value.y1,
|
|
388
|
+
x2: c.value.x2,
|
|
389
|
+
y2: c.value.y2,
|
|
390
|
+
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
391
|
+
"stroke-width": t.value.pointerStrokeWidth,
|
|
392
|
+
"stroke-linecap": "round"
|
|
393
|
+
}, null, 8, Le)),
|
|
394
|
+
isNaN(c.value.x2) ? g("", !0) : (r(), i("line", {
|
|
395
|
+
key: 1,
|
|
396
|
+
x1: c.value.x1,
|
|
397
|
+
y1: c.value.y1,
|
|
398
|
+
x2: c.value.x2,
|
|
399
|
+
y2: c.value.y2,
|
|
400
|
+
stroke: e.value.style.chart.layout.pointer.useRatingColor ? G.value : e.value.style.chart.layout.pointer.color,
|
|
401
|
+
"stroke-linecap": "round",
|
|
402
|
+
"stroke-width": t.value.pointerStrokeWidth * 0.7
|
|
403
|
+
}, null, 8, Te)),
|
|
404
|
+
!isNaN(c.value.x2) && e.value.style.chart.layout.track.useGradient ? (r(), i("line", {
|
|
405
|
+
key: 2,
|
|
406
|
+
x1: c.value.x1,
|
|
407
|
+
y1: c.value.y1,
|
|
408
|
+
x2: c.value.x2,
|
|
409
|
+
y2: c.value.y2,
|
|
410
|
+
stroke: "white",
|
|
411
|
+
"stroke-linecap": "round",
|
|
412
|
+
"stroke-width": t.value.pointerStrokeWidth * 0.3,
|
|
413
|
+
filter: `url(#blur_${k.value})`
|
|
414
|
+
}, null, 8, qe)) : g("", !0)
|
|
415
|
+
])) : (r(), i("g", He, [
|
|
416
|
+
L.value ? (r(), i("path", {
|
|
417
|
+
key: 0,
|
|
418
|
+
d: L.value,
|
|
419
|
+
fill: e.value.style.chart.layout.pointer.useRatingColor ? G.value : e.value.style.chart.layout.pointer.color,
|
|
420
|
+
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
421
|
+
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
422
|
+
"stroke-linejoin": "round"
|
|
423
|
+
}, null, 8, Je)) : g("", !0)
|
|
424
|
+
])),
|
|
425
|
+
v("circle", {
|
|
426
|
+
cx: t.value.width / 2,
|
|
427
|
+
cy: s.value.base,
|
|
428
|
+
fill: e.value.style.chart.layout.pointer.circle.color,
|
|
429
|
+
r: t.value.pointerRadius <= 0 ? 1e-4 : t.value.pointerRadius,
|
|
430
|
+
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
431
|
+
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
432
|
+
}, null, 8, Ze),
|
|
433
|
+
v("text", {
|
|
434
|
+
x: t.value.width / 2,
|
|
435
|
+
y: s.value.ratingBase,
|
|
436
|
+
"text-anchor": "middle",
|
|
437
|
+
"font-size": t.value.legendFontSize,
|
|
438
|
+
"font-weight": "bold",
|
|
439
|
+
fill: e.value.style.chart.legend.useRatingColor ? G.value : e.value.style.chart.legend.color
|
|
440
|
+
}, m(e.value.style.chart.legend.prefix) + " " + m(e.value.style.chart.legend.showPlusSymbol && f.value > 0 ? "+" : "") + m(f.value.toFixed(e.value.style.chart.legend.roundingValue)) + " " + m(e.value.style.chart.legend.suffix), 9, Ke),
|
|
441
|
+
$(l.$slots, "svg", { svg: t.value }, void 0, !0)
|
|
442
|
+
], 14, Ne)) : g("", !0),
|
|
443
|
+
C.value ? g("", !0) : (r(), H(Ie, {
|
|
444
|
+
key: 3,
|
|
445
|
+
config: {
|
|
446
|
+
type: "gauge",
|
|
447
|
+
style: {
|
|
448
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
449
|
+
gauge: {
|
|
450
|
+
color: "#CCCCCC"
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}, null, 8, ["config"])),
|
|
455
|
+
v("div", {
|
|
456
|
+
ref_key: "chartLegend",
|
|
457
|
+
ref: D
|
|
458
|
+
}, [
|
|
459
|
+
$(l.$slots, "legend", { legend: x.value }, void 0, !0)
|
|
460
|
+
], 512)
|
|
461
|
+
], 14, Oe));
|
|
462
|
+
}
|
|
463
|
+
}, ut = /* @__PURE__ */ ke(Qe, [["__scopeId", "data-v-a862b4a9"]]);
|
|
464
|
+
export {
|
|
465
|
+
ut as default
|
|
466
|
+
};
|