vue-data-ui 2.12.6 → 2.12.7-beta.0
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-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import { _ as
|
|
10
|
-
|
|
11
|
-
import { u as ot } from "./useChartAccessibility-BWojgys7.js";
|
|
12
|
-
import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "height"], dt = ["id"], ht = ["stop-color"], ft = ["stop-color"], yt = ["stop-color"], mt = ["id"], pt = ["stdDeviation"], gt = { key: 1 }, kt = ["d", "fill", "stroke"], bt = ["d", "fill", "stroke"], _t = ["d", "fill"], xt = ["id", "d"], wt = ["fill", "font-size", "font-weight"], St = ["href", "startOffset"], $t = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], zt = ["d", "filter"], Ft = ["stroke", "stroke-width"], Ct = ["stroke", "stroke-width"], Ot = ["stroke", "stroke-width"], Mt = ["stroke", "stroke-width"], Nt = { key: 8 }, Pt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Xt = ["x", "y", "font-size", "font-weight", "fill"], It = { key: 0 }, Yt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], At = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Rt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], Gt = { key: 1 }, Et = ["d", "fill", "stroke", "stroke-width"], Ut = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Wt = ["x", "y", "font-size", "fill"], jt = {
|
|
1
|
+
import { defineAsyncComponent as E, computed as y, ref as m, watch as ke, shallowRef as be, onMounted as De, onBeforeUnmount as Be, createElementBlock as u, openBlock as s, unref as n, normalizeStyle as q, normalizeClass as _e, createBlock as W, createCommentVNode as c, createElementVNode as p, withCtx as X, toDisplayString as M, createSlots as Ve, renderSlot as x, normalizeProps as j, guardReactiveProps as T, createVNode as qe, Fragment as g, renderList as S, mergeProps as Y } from "vue";
|
|
2
|
+
import { u as He, c as Ze, t as Je, p as xe, a as Ke, b as Qe, o as we, d as et, e as U, g as Se, m as H, M as F, N as tt, X as at, s as Z, n as lt, i as J, f as K, F as Q } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { t as rt, u as st } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as $e } from "./useNestedProp-tRqS0ZAM.js";
|
|
5
|
+
import { u as ot } from "./usePrinter-CRCbl1WG.js";
|
|
6
|
+
import { u as ut } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as nt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import it from "./Title-B5qqUI3M.js";
|
|
9
|
+
import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "height"], ft = ["id"], mt = ["stop-color"], pt = ["stop-color"], gt = ["stop-color"], kt = ["id"], bt = ["stdDeviation"], _t = { key: 1 }, xt = ["d", "fill", "stroke"], wt = ["d", "fill", "stroke"], St = ["d", "fill"], $t = ["id", "d"], zt = ["fill", "font-size", "font-weight"], Ft = ["href", "startOffset"], Ct = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], Ot = ["d", "filter"], Mt = ["stroke", "stroke-width"], Pt = ["stroke", "stroke-width"], Nt = ["stroke", "stroke-width"], Xt = ["stroke", "stroke-width"], It = { key: 8 }, Yt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], At = ["x", "y", "font-size", "font-weight", "fill"], Rt = { key: 0 }, Gt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Et = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Wt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], jt = { key: 1 }, Tt = ["d", "fill", "stroke", "stroke-width"], Ut = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Lt = ["x", "y", "font-size", "fill"], Dt = {
|
|
14
11
|
key: 5,
|
|
15
12
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
13
|
+
}, Bt = {
|
|
17
14
|
__name: "vue-ui-gauge",
|
|
18
15
|
props: {
|
|
19
16
|
config: {
|
|
@@ -29,33 +26,33 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
29
26
|
}
|
|
30
27
|
}
|
|
31
28
|
},
|
|
32
|
-
setup(
|
|
33
|
-
const { vue_ui_gauge:
|
|
34
|
-
get: () =>
|
|
29
|
+
setup(L, { expose: ze }) {
|
|
30
|
+
const Fe = E(() => import("./PenAndPaper-B9na2mbr.js")), Ce = E(() => import("./vue-ui-skeleton-CbYQYRvD.js")), Oe = E(() => import("./UserOptions-Ddy6CuLC.js")), Me = E(() => import("./PackageVersion-CLY-udAA.js")), { vue_ui_gauge: Pe } = He(), d = L, A = y(() => !!d.dataset && Object.keys(d.dataset).length > 0 && d.dataset.series && d.dataset.series.length), b = m(Ze()), Ne = m(null), ee = m(0), R = m(null), te = m(null), ae = m(null), le = m(null), re = m(null), se = m(0), e = y({
|
|
31
|
+
get: () => ie(),
|
|
35
32
|
set: (t) => t
|
|
36
|
-
}), { userOptionsVisible:
|
|
37
|
-
|
|
38
|
-
e.value =
|
|
33
|
+
}), { userOptionsVisible: D, setUserOptionsVisibility: oe, keepUserOptionState: ue } = ut({ config: e.value }), { svgRef: ne } = nt({ config: e.value.style.chart.title });
|
|
34
|
+
ke(() => d.config, (t) => {
|
|
35
|
+
e.value = ie(), D.value = !e.value.userOptions.showOnChartHover, fe(), se.value += 1;
|
|
39
36
|
}, { deep: !0 });
|
|
40
|
-
function
|
|
41
|
-
const t =
|
|
37
|
+
function ie() {
|
|
38
|
+
const t = $e({
|
|
42
39
|
userConfig: d.config,
|
|
43
|
-
defaultConfig:
|
|
40
|
+
defaultConfig: Pe
|
|
44
41
|
});
|
|
45
42
|
return t.theme ? {
|
|
46
|
-
|
|
47
|
-
userConfig:
|
|
43
|
+
...$e({
|
|
44
|
+
userConfig: Ke.vue_ui_gauge[t.theme] || d.config,
|
|
48
45
|
defaultConfig: t
|
|
49
46
|
}),
|
|
50
|
-
customPalette:
|
|
47
|
+
customPalette: Je[t.theme] || xe
|
|
51
48
|
} : t;
|
|
52
49
|
}
|
|
53
|
-
const { isPrinting:
|
|
50
|
+
const { isPrinting: ce, isImaging: ve, generatePdf: de, generateImage: he } = ot({
|
|
54
51
|
elementId: `vue-ui-gauge_${b.value}`,
|
|
55
52
|
fileName: e.value.style.chart.title.text || "vue-ui-gauge",
|
|
56
53
|
options: e.value.userOptions.print
|
|
57
|
-
}),
|
|
58
|
-
if (!
|
|
54
|
+
}), Xe = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ie = y(() => Qe(e.value.customPalette)), C = y(() => {
|
|
55
|
+
if (!A.value || we(d.dataset.series || {}))
|
|
59
56
|
return {
|
|
60
57
|
value: 0,
|
|
61
58
|
series: [
|
|
@@ -74,11 +71,11 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
74
71
|
...d.dataset,
|
|
75
72
|
series: (d.dataset.series || []).map((a, r) => ({
|
|
76
73
|
...a,
|
|
77
|
-
color:
|
|
74
|
+
color: et(a.color) || Ie.value[r] || xe[r],
|
|
78
75
|
value: ((a.to || 0) - (a.from || 0)) / o * 100
|
|
79
76
|
}))
|
|
80
77
|
};
|
|
81
|
-
}), k =
|
|
78
|
+
}), k = m(512), l = m({
|
|
82
79
|
height: 358.4,
|
|
83
80
|
width: k.value,
|
|
84
81
|
top: 0,
|
|
@@ -93,83 +90,83 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
93
90
|
pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
|
|
94
91
|
markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
|
|
95
92
|
segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
|
|
96
|
-
}),
|
|
93
|
+
}), P = m(0), $ = m(0), f = m(
|
|
97
94
|
e.value.style.chart.animation.use ? Math.min(...d.dataset.series.map((t) => t.from)) : d.dataset.value
|
|
98
95
|
);
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
ke(() => d.dataset.value, () => {
|
|
97
|
+
me(d.dataset.value);
|
|
101
98
|
});
|
|
102
|
-
const
|
|
103
|
-
const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((
|
|
99
|
+
const i = y(() => {
|
|
100
|
+
const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((f.value + 0 - $.value) / (P.value - $.value)) + Math.PI;
|
|
104
101
|
return {
|
|
105
102
|
x1: t,
|
|
106
103
|
y1: o,
|
|
107
104
|
x2: t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a),
|
|
108
105
|
y2: o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
|
|
109
106
|
};
|
|
110
|
-
}),
|
|
111
|
-
const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((
|
|
112
|
-
return isNaN(r) ? null : `M ${r},${_} ${
|
|
113
|
-
}),
|
|
114
|
-
for (let t = 0; t <
|
|
115
|
-
const { color: o, from: a, to: r } =
|
|
116
|
-
if (
|
|
107
|
+
}), ye = y(() => {
|
|
108
|
+
const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((f.value + 0 - $.value) / (P.value - $.value)) + Math.PI, r = t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), _ = o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), w = l.value.pointerRadius, je = t + w * Math.cos(a + Math.PI / 2), Te = o + w * Math.sin(a + Math.PI / 2), Ue = t + w * Math.cos(a - Math.PI / 2), Le = o + w * Math.sin(a - Math.PI / 2);
|
|
109
|
+
return isNaN(r) ? null : `M ${r},${_} ${je},${Te} ${Ue},${Le} Z`;
|
|
110
|
+
}), B = y(() => {
|
|
111
|
+
for (let t = 0; t < C.value.series.length; t += 1) {
|
|
112
|
+
const { color: o, from: a, to: r } = C.value.series[t];
|
|
113
|
+
if (f.value >= a && f.value <= r)
|
|
117
114
|
return o;
|
|
118
115
|
}
|
|
119
116
|
return "#2D353C";
|
|
120
|
-
}),
|
|
121
|
-
function
|
|
122
|
-
if (
|
|
117
|
+
}), z = be(null), N = be(null);
|
|
118
|
+
function fe() {
|
|
119
|
+
if (we(d.dataset) ? U({
|
|
123
120
|
componentName: "VueUiGauge",
|
|
124
121
|
type: "dataset"
|
|
125
|
-
}) : (
|
|
122
|
+
}) : (Se({
|
|
126
123
|
datasetObject: d.dataset,
|
|
127
124
|
requiredAttributes: ["value", "series"]
|
|
128
125
|
}).forEach((t) => {
|
|
129
|
-
|
|
126
|
+
U({
|
|
130
127
|
componentName: "VueUiGauge",
|
|
131
128
|
type: "datasetAttribute",
|
|
132
129
|
property: t
|
|
133
130
|
});
|
|
134
131
|
}), Object.hasOwn(d.dataset, "series") && (d.dataset.series.length ? d.dataset.series.forEach((t, o) => {
|
|
135
|
-
|
|
132
|
+
Se({
|
|
136
133
|
datasetObject: t,
|
|
137
134
|
requiredAttributes: ["from", "to"]
|
|
138
135
|
}).forEach((a) => {
|
|
139
|
-
|
|
136
|
+
U({
|
|
140
137
|
componentName: "VueUiGauge",
|
|
141
138
|
type: "datasetSerieAttribute",
|
|
142
139
|
property: a,
|
|
143
140
|
index: o
|
|
144
141
|
});
|
|
145
142
|
});
|
|
146
|
-
}) :
|
|
143
|
+
}) : U({
|
|
147
144
|
componentName: "VueUiGauge",
|
|
148
145
|
type: "datasetAttributeEmpty",
|
|
149
146
|
property: "series"
|
|
150
|
-
}))),
|
|
151
|
-
const t =
|
|
152
|
-
const { width: o, height: a } =
|
|
153
|
-
chart:
|
|
154
|
-
title: e.value.style.chart.title.text ?
|
|
155
|
-
legend:
|
|
156
|
-
source:
|
|
157
|
-
noTitle:
|
|
147
|
+
}))), me(d.dataset.value || 0), e.value.responsive) {
|
|
148
|
+
const t = rt(() => {
|
|
149
|
+
const { width: o, height: a } = st({
|
|
150
|
+
chart: R.value,
|
|
151
|
+
title: e.value.style.chart.title.text ? te.value : null,
|
|
152
|
+
legend: ae.value,
|
|
153
|
+
source: le.value,
|
|
154
|
+
noTitle: re.value
|
|
158
155
|
});
|
|
159
156
|
requestAnimationFrame(() => {
|
|
160
|
-
l.value.width = o, l.value.height = a, l.value.centerX = o / 2, l.value.centerY = k.value / 2 / 358.4 * a, l.value.bottom = a, l.value.labelFontSize = 18 / k.value * Math.min(a, o) < 10 ? 10 : 18 / k.value * Math.min(a, o), l.value.legendFontSize = e.value.style.chart.legend.fontSize / k.value * Math.min(a, o) < 14 ? 14 : e.value.style.chart.legend.fontSize / k.value * Math.min(a, o), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / k.value * Math.min(a, o), l.value.trackSize = e.value.style.chart.layout.track.size / k.value * Math.min(a, o), l.value.pointerStrokeWidth =
|
|
157
|
+
l.value.width = o, l.value.height = a, l.value.centerX = o / 2, l.value.centerY = k.value / 2 / 358.4 * a, l.value.bottom = a, l.value.labelFontSize = 18 / k.value * Math.min(a, o) < 10 ? 10 : 18 / k.value * Math.min(a, o), l.value.legendFontSize = e.value.style.chart.legend.fontSize / k.value * Math.min(a, o) < 14 ? 14 : e.value.style.chart.legend.fontSize / k.value * Math.min(a, o), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / k.value * Math.min(a, o), l.value.trackSize = e.value.style.chart.layout.track.size / k.value * Math.min(a, o), l.value.pointerStrokeWidth = Q({
|
|
161
158
|
relator: Math.min(o, a),
|
|
162
159
|
adjuster: k.value,
|
|
163
160
|
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
164
161
|
threshold: 2,
|
|
165
162
|
fallback: 2
|
|
166
|
-
}), l.value.markerOffset =
|
|
163
|
+
}), l.value.markerOffset = Q({
|
|
167
164
|
relator: Math.max(o, a),
|
|
168
165
|
adjuster: k.value,
|
|
169
166
|
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
170
167
|
threshold: 2,
|
|
171
168
|
fallback: 2
|
|
172
|
-
}), l.value.segmentFontSize =
|
|
169
|
+
}), l.value.segmentFontSize = Q({
|
|
173
170
|
relator: Math.min(o, a),
|
|
174
171
|
adjuster: k.value,
|
|
175
172
|
source: e.value.style.chart.layout.segmentNames.fontSize,
|
|
@@ -178,27 +175,27 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
178
175
|
});
|
|
179
176
|
});
|
|
180
177
|
});
|
|
181
|
-
|
|
178
|
+
z.value && (N.value && z.value.unobserve(N.value), z.value.disconnect()), z.value = new ResizeObserver(t), N.value = R.value.parentNode, z.value.observe(N.value);
|
|
182
179
|
}
|
|
183
180
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}),
|
|
187
|
-
|
|
181
|
+
De(() => {
|
|
182
|
+
fe();
|
|
183
|
+
}), Be(() => {
|
|
184
|
+
z.value && (N.value && z.value.unobserve(N.value), z.value.disconnect());
|
|
188
185
|
});
|
|
189
|
-
function
|
|
186
|
+
function me(t) {
|
|
190
187
|
const o = [];
|
|
191
|
-
(
|
|
188
|
+
(C.value.series || []).forEach((w) => {
|
|
192
189
|
o.push(w.from || 0), o.push(w.to || 0);
|
|
193
|
-
}),
|
|
190
|
+
}), P.value = Math.max(...o), $.value = Math.min(...o);
|
|
194
191
|
let a = e.value.style.chart.animation.speed;
|
|
195
|
-
const r = Math.abs(t -
|
|
192
|
+
const r = Math.abs(t - f.value) / (a * 60);
|
|
196
193
|
function _() {
|
|
197
|
-
|
|
194
|
+
f.value < t ? f.value = Math.min(f.value + r, t) : f.value > t && (f.value = Math.max(f.value - r, t)), f.value !== t && requestAnimationFrame(_);
|
|
198
195
|
}
|
|
199
196
|
_();
|
|
200
197
|
}
|
|
201
|
-
const v =
|
|
198
|
+
const v = y(() => {
|
|
202
199
|
const t = e.value.responsive ? Math.min(l.value.width, l.value.height) : l.value.width, o = 2.5 / e.value.style.chart.layout.radiusRatio;
|
|
203
200
|
return {
|
|
204
201
|
arcs: t / o,
|
|
@@ -207,8 +204,8 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
207
204
|
ratingBase: e.value.responsive ? l.value.height / 2 + l.value.height / 4 : l.value.height * 0.9,
|
|
208
205
|
pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
|
|
209
206
|
};
|
|
210
|
-
}), h =
|
|
211
|
-
{ series:
|
|
207
|
+
}), h = y(() => H(
|
|
208
|
+
{ series: C.value.series },
|
|
212
209
|
l.value.width / 2,
|
|
213
210
|
v.value.base,
|
|
214
211
|
v.value.arcs,
|
|
@@ -219,8 +216,8 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
219
216
|
180,
|
|
220
217
|
109.9495,
|
|
221
218
|
40 * l.value.trackSize
|
|
222
|
-
)),
|
|
223
|
-
{ series:
|
|
219
|
+
)), Ye = y(() => H(
|
|
220
|
+
{ series: C.value.series },
|
|
224
221
|
l.value.width / 2,
|
|
225
222
|
v.value.base,
|
|
226
223
|
v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
@@ -231,46 +228,46 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
231
228
|
180,
|
|
232
229
|
109.9495,
|
|
233
230
|
40 * l.value.trackSize
|
|
234
|
-
)),
|
|
235
|
-
const { x: t, y: o } =
|
|
231
|
+
)), O = y(() => h.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), pe = y(() => {
|
|
232
|
+
const { x: t, y: o } = F({
|
|
236
233
|
initX: h.value[0].firstSeparator.x,
|
|
237
234
|
initY: h.value[0].firstSeparator.y,
|
|
238
|
-
centerX:
|
|
239
|
-
centerY:
|
|
235
|
+
centerX: i.value.x1,
|
|
236
|
+
centerY: i.value.y1,
|
|
240
237
|
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
241
|
-
}), { x: a, y: r } =
|
|
238
|
+
}), { x: a, y: r } = F({
|
|
242
239
|
initX: h.value[0].startX,
|
|
243
240
|
initY: h.value[0].startY,
|
|
244
|
-
centerX:
|
|
245
|
-
centerY:
|
|
241
|
+
centerX: i.value.x1,
|
|
242
|
+
centerY: i.value.y1,
|
|
246
243
|
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
247
244
|
});
|
|
248
245
|
return { x1: t, y1: o, x2: a, y2: r };
|
|
249
|
-
}),
|
|
250
|
-
const { x: o, y: a } =
|
|
246
|
+
}), ge = y(() => h.value.map((t) => {
|
|
247
|
+
const { x: o, y: a } = F({
|
|
251
248
|
initX: t.separator.x,
|
|
252
249
|
initY: t.separator.y,
|
|
253
|
-
centerX:
|
|
254
|
-
centerY:
|
|
250
|
+
centerX: i.value.x1,
|
|
251
|
+
centerY: i.value.y1,
|
|
255
252
|
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
256
|
-
}), { x: r, y: _ } =
|
|
253
|
+
}), { x: r, y: _ } = F({
|
|
257
254
|
initX: t.endX,
|
|
258
255
|
initY: t.endY,
|
|
259
|
-
centerX:
|
|
260
|
-
centerY:
|
|
256
|
+
centerX: i.value.x1,
|
|
257
|
+
centerY: i.value.y1,
|
|
261
258
|
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
262
259
|
});
|
|
263
260
|
return { x1: o, y1: a, x2: r, y2: _ };
|
|
264
261
|
}));
|
|
265
|
-
function
|
|
262
|
+
function Ae(t) {
|
|
266
263
|
if (t.reduce((_, w) => _ + w, 0) > 100)
|
|
267
264
|
throw new Error("Total % must not exceed 100");
|
|
268
265
|
const a = 50;
|
|
269
266
|
let r = 0;
|
|
270
267
|
return t.map((_) => (r += _, `${r / 100 * a - _ / 4}%`));
|
|
271
268
|
}
|
|
272
|
-
const
|
|
273
|
-
{ series:
|
|
269
|
+
const Re = y(() => Ae(h.value.map((t) => t.proportion * 100))), Ge = y(() => H(
|
|
270
|
+
{ series: C.value.series },
|
|
274
271
|
l.value.width / 2,
|
|
275
272
|
v.value.base,
|
|
276
273
|
v.value.gradients,
|
|
@@ -281,60 +278,60 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
281
278
|
180,
|
|
282
279
|
110.02,
|
|
283
280
|
2 * l.value.trackSize
|
|
284
|
-
)),
|
|
281
|
+
)), Ee = y(() => {
|
|
285
282
|
const t = $.value >= 0 ? -$.value : Math.abs($.value);
|
|
286
|
-
return
|
|
283
|
+
return tt(
|
|
287
284
|
{
|
|
288
285
|
radius: e.value.style.chart.layout.indicatorArc.radius * l.value.trackSize,
|
|
289
286
|
centerX: l.value.width / 2,
|
|
290
287
|
centerY: v.value.base,
|
|
291
|
-
percentage: (
|
|
288
|
+
percentage: (f.value + t) / (P.value + t)
|
|
292
289
|
}
|
|
293
290
|
);
|
|
294
|
-
}),
|
|
295
|
-
function
|
|
296
|
-
|
|
291
|
+
}), I = m(!1);
|
|
292
|
+
function We(t) {
|
|
293
|
+
I.value = t, ee.value += 1;
|
|
297
294
|
}
|
|
298
|
-
const
|
|
299
|
-
function
|
|
300
|
-
|
|
295
|
+
const G = m(!1);
|
|
296
|
+
function V() {
|
|
297
|
+
G.value = !G.value;
|
|
301
298
|
}
|
|
302
|
-
return
|
|
303
|
-
generatePdf:
|
|
304
|
-
generateImage:
|
|
305
|
-
toggleAnnotator:
|
|
299
|
+
return ze({
|
|
300
|
+
generatePdf: de,
|
|
301
|
+
generateImage: he,
|
|
302
|
+
toggleAnnotator: V
|
|
306
303
|
}), (t, o) => (s(), u("div", {
|
|
307
|
-
class:
|
|
304
|
+
class: _e(`vue-ui-gauge ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
308
305
|
ref_key: "gaugeChart",
|
|
309
|
-
ref:
|
|
306
|
+
ref: R,
|
|
310
307
|
id: `vue-ui-gauge_${b.value}`,
|
|
311
|
-
style:
|
|
312
|
-
onMouseenter: o[0] || (o[0] = () =>
|
|
313
|
-
onMouseleave: o[1] || (o[1] = () =>
|
|
308
|
+
style: q(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
309
|
+
onMouseenter: o[0] || (o[0] = () => n(oe)(!0)),
|
|
310
|
+
onMouseleave: o[1] || (o[1] = () => n(oe)(!1))
|
|
314
311
|
}, [
|
|
315
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
312
|
+
e.value.userOptions.buttons.annotator ? (s(), W(n(Fe), {
|
|
316
313
|
key: 0,
|
|
317
|
-
svgRef:
|
|
314
|
+
svgRef: n(ne),
|
|
318
315
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
319
316
|
color: e.value.style.chart.color,
|
|
320
|
-
active:
|
|
321
|
-
onClose:
|
|
317
|
+
active: G.value,
|
|
318
|
+
onClose: V
|
|
322
319
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
323
|
-
|
|
320
|
+
Xe.value ? (s(), u("div", {
|
|
324
321
|
key: 1,
|
|
325
322
|
ref_key: "noTitle",
|
|
326
|
-
ref:
|
|
323
|
+
ref: re,
|
|
327
324
|
class: "vue-data-ui-no-title-space",
|
|
328
325
|
style: "height:36px; width: 100%;background:transparent"
|
|
329
326
|
}, null, 512)) : c("", !0),
|
|
330
327
|
e.value.style.chart.title.text ? (s(), u("div", {
|
|
331
328
|
key: 2,
|
|
332
329
|
ref_key: "chartTitle",
|
|
333
|
-
ref:
|
|
330
|
+
ref: te,
|
|
334
331
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
335
332
|
}, [
|
|
336
|
-
(s(),
|
|
337
|
-
key: `title_${
|
|
333
|
+
(s(), W(it, {
|
|
334
|
+
key: `title_${se.value}`,
|
|
338
335
|
config: {
|
|
339
336
|
title: {
|
|
340
337
|
cy: "gauge-div-title",
|
|
@@ -346,85 +343,85 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
346
343
|
}
|
|
347
344
|
}
|
|
348
345
|
}, {
|
|
349
|
-
default:
|
|
350
|
-
e.value.translations.base &&
|
|
346
|
+
default: X(() => [
|
|
347
|
+
e.value.translations.base && L.dataset.base ? (s(), u("span", dt, M(e.value.translations.base) + ": " + M(L.dataset.base), 1)) : c("", !0)
|
|
351
348
|
]),
|
|
352
349
|
_: 1
|
|
353
350
|
}, 8, ["config"]))
|
|
354
351
|
], 512)) : c("", !0),
|
|
355
|
-
e.value.userOptions.show &&
|
|
352
|
+
e.value.userOptions.show && A.value && (n(ue) || n(D)) ? (s(), W(n(Oe), {
|
|
356
353
|
ref_key: "details",
|
|
357
|
-
ref:
|
|
358
|
-
key: `user_options_${
|
|
354
|
+
ref: Ne,
|
|
355
|
+
key: `user_options_${ee.value}`,
|
|
359
356
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
360
357
|
color: e.value.style.chart.color,
|
|
361
|
-
isImaging:
|
|
362
|
-
isPrinting:
|
|
358
|
+
isImaging: n(ve),
|
|
359
|
+
isPrinting: n(ce),
|
|
363
360
|
uid: b.value,
|
|
364
361
|
hasXls: !1,
|
|
365
362
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
366
363
|
hasImg: e.value.userOptions.buttons.img,
|
|
367
364
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
368
|
-
isFullscreen:
|
|
365
|
+
isFullscreen: I.value,
|
|
369
366
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
370
|
-
chartElement:
|
|
367
|
+
chartElement: R.value,
|
|
371
368
|
position: e.value.userOptions.position,
|
|
372
369
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
373
|
-
isAnnotation:
|
|
374
|
-
onToggleFullscreen:
|
|
375
|
-
onGeneratePdf:
|
|
376
|
-
onGenerateImage:
|
|
377
|
-
onToggleAnnotator:
|
|
378
|
-
style:
|
|
379
|
-
visibility:
|
|
370
|
+
isAnnotation: G.value,
|
|
371
|
+
onToggleFullscreen: We,
|
|
372
|
+
onGeneratePdf: n(de),
|
|
373
|
+
onGenerateImage: n(he),
|
|
374
|
+
onToggleAnnotator: V,
|
|
375
|
+
style: q({
|
|
376
|
+
visibility: n(ue) ? n(D) ? "visible" : "hidden" : "visible"
|
|
380
377
|
})
|
|
381
|
-
},
|
|
378
|
+
}, Ve({ _: 2 }, [
|
|
382
379
|
t.$slots.menuIcon ? {
|
|
383
380
|
name: "menuIcon",
|
|
384
|
-
fn:
|
|
385
|
-
x(t.$slots, "menuIcon",
|
|
381
|
+
fn: X(({ isOpen: a, color: r }) => [
|
|
382
|
+
x(t.$slots, "menuIcon", j(T({ isOpen: a, color: r })), void 0, !0)
|
|
386
383
|
]),
|
|
387
384
|
key: "0"
|
|
388
385
|
} : void 0,
|
|
389
386
|
t.$slots.optionPdf ? {
|
|
390
387
|
name: "optionPdf",
|
|
391
|
-
fn:
|
|
388
|
+
fn: X(() => [
|
|
392
389
|
x(t.$slots, "optionPdf", {}, void 0, !0)
|
|
393
390
|
]),
|
|
394
391
|
key: "1"
|
|
395
392
|
} : void 0,
|
|
396
393
|
t.$slots.optionImg ? {
|
|
397
394
|
name: "optionImg",
|
|
398
|
-
fn:
|
|
395
|
+
fn: X(() => [
|
|
399
396
|
x(t.$slots, "optionImg", {}, void 0, !0)
|
|
400
397
|
]),
|
|
401
398
|
key: "2"
|
|
402
399
|
} : void 0,
|
|
403
400
|
t.$slots.optionFullscreen ? {
|
|
404
401
|
name: "optionFullscreen",
|
|
405
|
-
fn:
|
|
406
|
-
x(t.$slots, "optionFullscreen",
|
|
402
|
+
fn: X(({ toggleFullscreen: a, isFullscreen: r }) => [
|
|
403
|
+
x(t.$slots, "optionFullscreen", j(T({ toggleFullscreen: a, isFullscreen: r })), void 0, !0)
|
|
407
404
|
]),
|
|
408
405
|
key: "3"
|
|
409
406
|
} : void 0,
|
|
410
407
|
t.$slots.optionAnnotator ? {
|
|
411
408
|
name: "optionAnnotator",
|
|
412
|
-
fn:
|
|
413
|
-
x(t.$slots, "optionAnnotator",
|
|
409
|
+
fn: X(({ toggleAnnotator: a, isAnnotator: r }) => [
|
|
410
|
+
x(t.$slots, "optionAnnotator", j(T({ toggleAnnotator: a, isAnnotator: r })), void 0, !0)
|
|
414
411
|
]),
|
|
415
412
|
key: "4"
|
|
416
413
|
} : void 0
|
|
417
414
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
418
|
-
|
|
415
|
+
A.value ? (s(), u("svg", {
|
|
419
416
|
key: 4,
|
|
420
417
|
ref_key: "svgRef",
|
|
421
|
-
ref:
|
|
422
|
-
xmlns:
|
|
423
|
-
class:
|
|
418
|
+
ref: ne,
|
|
419
|
+
xmlns: n(at),
|
|
420
|
+
class: _e({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
424
421
|
viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
|
|
425
|
-
style:
|
|
422
|
+
style: q(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
426
423
|
}, [
|
|
427
|
-
|
|
424
|
+
qe(n(Me)),
|
|
428
425
|
t.$slots["chart-background"] ? (s(), u("foreignObject", {
|
|
429
426
|
key: 0,
|
|
430
427
|
x: 0,
|
|
@@ -436,7 +433,7 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
436
433
|
}
|
|
437
434
|
}, [
|
|
438
435
|
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
439
|
-
], 8,
|
|
436
|
+
], 8, yt)) : c("", !0),
|
|
440
437
|
p("defs", null, [
|
|
441
438
|
p("radialGradient", {
|
|
442
439
|
id: `gradient_${b.value}`,
|
|
@@ -448,17 +445,17 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
448
445
|
}, [
|
|
449
446
|
p("stop", {
|
|
450
447
|
offset: "0%",
|
|
451
|
-
"stop-color":
|
|
452
|
-
}, null, 8,
|
|
448
|
+
"stop-color": n(Z)("#FFFFFF", 1)
|
|
449
|
+
}, null, 8, mt),
|
|
453
450
|
p("stop", {
|
|
454
451
|
offset: "80%",
|
|
455
|
-
"stop-color":
|
|
456
|
-
}, null, 8,
|
|
452
|
+
"stop-color": n(Z)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
453
|
+
}, null, 8, pt),
|
|
457
454
|
p("stop", {
|
|
458
455
|
offset: "100%",
|
|
459
|
-
"stop-color":
|
|
460
|
-
}, null, 8,
|
|
461
|
-
], 8,
|
|
456
|
+
"stop-color": n(Z)("#FFFFFF", 1)
|
|
457
|
+
}, null, 8, gt)
|
|
458
|
+
], 8, ft)
|
|
462
459
|
]),
|
|
463
460
|
p("defs", null, [
|
|
464
461
|
p("filter", {
|
|
@@ -471,12 +468,12 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
471
468
|
p("feGaussianBlur", {
|
|
472
469
|
in: "SourceGraphic",
|
|
473
470
|
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
474
|
-
}, null, 8,
|
|
475
|
-
], 8,
|
|
471
|
+
}, null, 8, bt)
|
|
472
|
+
], 8, kt)
|
|
476
473
|
]),
|
|
477
|
-
t.$slots.pattern ? (s(), u("g",
|
|
474
|
+
t.$slots.pattern ? (s(), u("g", _t, [
|
|
478
475
|
(s(!0), u(g, null, S(h.value, (a, r) => (s(), u("defs", null, [
|
|
479
|
-
x(t.$slots, "pattern",
|
|
476
|
+
x(t.$slots, "pattern", Y({ ref_for: !0 }, { seriesIndex: r, patternId: `pattern_${b.value}_${r}` }), void 0, !0)
|
|
480
477
|
]))), 256))
|
|
481
478
|
])) : c("", !0),
|
|
482
479
|
(s(!0), u(g, null, S(h.value, (a, r) => (s(), u("path", {
|
|
@@ -485,25 +482,25 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
485
482
|
fill: a.color,
|
|
486
483
|
stroke: e.value.style.chart.backgroundColor,
|
|
487
484
|
"stroke-linecap": "round"
|
|
488
|
-
}, null, 8,
|
|
485
|
+
}, null, 8, xt))), 128)),
|
|
489
486
|
t.$slots.pattern ? (s(!0), u(g, { key: 2 }, S(h.value, (a, r) => (s(), u("path", {
|
|
490
487
|
key: `arc_${r}`,
|
|
491
488
|
d: a.arcSlice,
|
|
492
489
|
fill: `url(#pattern_${b.value}_${r})`,
|
|
493
490
|
stroke: e.value.style.chart.backgroundColor,
|
|
494
491
|
"stroke-linecap": "round"
|
|
495
|
-
}, null, 8,
|
|
492
|
+
}, null, 8, wt))), 128)) : c("", !0),
|
|
496
493
|
e.value.style.chart.layout.indicatorArc.show ? (s(), u("path", {
|
|
497
494
|
key: 3,
|
|
498
|
-
d:
|
|
495
|
+
d: Ee.value,
|
|
499
496
|
fill: e.value.style.chart.layout.indicatorArc.fill
|
|
500
|
-
}, null, 8,
|
|
497
|
+
}, null, 8, St)) : c("", !0),
|
|
501
498
|
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (s(), u(g, { key: 4 }, [
|
|
502
499
|
(s(!0), u(g, null, S(h.value, (a, r) => (s(), u("path", {
|
|
503
500
|
id: `curve_${b.value}_${r}`,
|
|
504
|
-
d: `M ${
|
|
501
|
+
d: `M ${i.value.x1},${i.value.y1} m -${O.value[r]},0 a ${O.value[r]},${O.value[r]} 0 1,1 ${2 * O.value[r]},0 a ${O.value[r]},${O.value[r]} 0 1,1 -${2 * O.value[r]},0`,
|
|
505
502
|
fill: "transparent"
|
|
506
|
-
}, null, 8,
|
|
503
|
+
}, null, 8, $t))), 256)),
|
|
507
504
|
(s(!0), u(g, null, S(h.value, (a, r) => (s(), u("text", {
|
|
508
505
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
509
506
|
"font-size": l.value.segmentFontSize,
|
|
@@ -512,89 +509,89 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
512
509
|
}, [
|
|
513
510
|
p("textPath", {
|
|
514
511
|
href: `#curve_${b.value}_${r}`,
|
|
515
|
-
startOffset:
|
|
516
|
-
},
|
|
517
|
-
], 8,
|
|
512
|
+
startOffset: Re.value[r]
|
|
513
|
+
}, M(a.name || ""), 9, Ft)
|
|
514
|
+
], 8, zt))), 256))
|
|
518
515
|
], 64)) : c("", !0),
|
|
519
|
-
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (s(!0), u(g, { key: 5 }, S(
|
|
516
|
+
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (s(!0), u(g, { key: 5 }, S(Ye.value, (a, r) => (s(), u("text", {
|
|
520
517
|
x: a.center.endX,
|
|
521
518
|
y: a.center.endY,
|
|
522
|
-
"text-anchor":
|
|
519
|
+
"text-anchor": n(lt)(a, !1, 12).anchor,
|
|
523
520
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
524
521
|
"font-size": l.value.segmentFontSize,
|
|
525
522
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
|
|
526
|
-
},
|
|
527
|
-
e.value.style.chart.layout.track.useGradient ? (s(!0), u(g, { key: 6 }, S(
|
|
523
|
+
}, M(a.name || ""), 9, Ct))), 256)) : c("", !0),
|
|
524
|
+
e.value.style.chart.layout.track.useGradient ? (s(!0), u(g, { key: 6 }, S(Ge.value, (a, r) => (s(), u("path", {
|
|
528
525
|
key: `arc_${r}`,
|
|
529
526
|
d: a.arcSlice,
|
|
530
527
|
fill: "#FFFFFF",
|
|
531
528
|
stroke: "none",
|
|
532
529
|
"stroke-linecap": "round",
|
|
533
530
|
filter: `url(#blur_${b.value})`
|
|
534
|
-
}, null, 8,
|
|
531
|
+
}, null, 8, Ot))), 128)) : c("", !0),
|
|
535
532
|
e.value.style.chart.layout.segmentSeparators.show ? (s(), u(g, { key: 7 }, [
|
|
536
|
-
p("line",
|
|
533
|
+
p("line", Y(pe.value, {
|
|
537
534
|
stroke: e.value.style.chart.backgroundColor,
|
|
538
535
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
539
536
|
"stroke-linecap": "round"
|
|
540
|
-
}), null, 16,
|
|
541
|
-
p("line",
|
|
537
|
+
}), null, 16, Mt),
|
|
538
|
+
p("line", Y(pe.value, {
|
|
542
539
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
543
540
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
544
541
|
"stroke-linecap": "round"
|
|
545
|
-
}), null, 16,
|
|
546
|
-
(s(!0), u(g, null, S(
|
|
542
|
+
}), null, 16, Pt),
|
|
543
|
+
(s(!0), u(g, null, S(ge.value, (a) => (s(), u("line", Y({ ref_for: !0 }, a, {
|
|
547
544
|
stroke: e.value.style.chart.backgroundColor,
|
|
548
545
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
549
546
|
"stroke-linecap": "round"
|
|
550
|
-
}), null, 16,
|
|
551
|
-
(s(!0), u(g, null, S(
|
|
547
|
+
}), null, 16, Nt))), 256)),
|
|
548
|
+
(s(!0), u(g, null, S(ge.value, (a) => (s(), u("line", Y({ ref_for: !0 }, a, {
|
|
552
549
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
553
550
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
554
551
|
"stroke-linecap": "round"
|
|
555
|
-
}), null, 16,
|
|
552
|
+
}), null, 16, Xt))), 256))
|
|
556
553
|
], 64)) : c("", !0),
|
|
557
|
-
e.value.style.chart.layout.markers.show ? (s(), u("g",
|
|
554
|
+
e.value.style.chart.layout.markers.show ? (s(), u("g", It, [
|
|
558
555
|
(s(!0), u(g, null, S(h.value, (a, r) => (s(), u("text", {
|
|
559
|
-
x:
|
|
560
|
-
centerX:
|
|
556
|
+
x: n(F)({
|
|
557
|
+
centerX: i.value.x1,
|
|
561
558
|
centerY: v.value.base,
|
|
562
559
|
initX: a.center.startX,
|
|
563
560
|
initY: a.center.startY,
|
|
564
561
|
offset: l.value.markerOffset
|
|
565
562
|
}).x,
|
|
566
|
-
y:
|
|
567
|
-
centerX:
|
|
563
|
+
y: n(F)({
|
|
564
|
+
centerX: i.value.x1,
|
|
568
565
|
centerY: v.value.base,
|
|
569
566
|
initX: a.center.startX,
|
|
570
567
|
initY: a.center.startY,
|
|
571
568
|
offset: l.value.markerOffset
|
|
572
569
|
}).y,
|
|
573
|
-
"text-anchor": a.center.startX <
|
|
570
|
+
"text-anchor": a.center.startX < i.value.x1 - 5 ? "end" : a.center.startX > i.value.x1 + 5 ? "start" : "middle",
|
|
574
571
|
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
575
572
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
576
573
|
fill: e.value.style.chart.layout.markers.color
|
|
577
|
-
},
|
|
574
|
+
}, M(n(J)(
|
|
578
575
|
e.value.style.chart.layout.markers.formatter,
|
|
579
576
|
a.from,
|
|
580
|
-
|
|
577
|
+
n(K)({
|
|
581
578
|
p: e.value.style.chart.layout.markers.prefix,
|
|
582
579
|
v: a.from,
|
|
583
580
|
s: e.value.style.chart.layout.markers.suffix,
|
|
584
581
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
585
582
|
})
|
|
586
|
-
)), 9,
|
|
583
|
+
)), 9, Yt))), 256))
|
|
587
584
|
])) : c("", !0),
|
|
588
585
|
e.value.style.chart.layout.markers.show ? (s(), u("text", {
|
|
589
586
|
key: 9,
|
|
590
|
-
x:
|
|
587
|
+
x: n(F)({
|
|
591
588
|
centerX: l.value.width / 2,
|
|
592
589
|
centerY: v.value.base,
|
|
593
590
|
initX: h.value.at(-1).endX,
|
|
594
591
|
initY: h.value.at(-1).endY,
|
|
595
592
|
offset: l.value.markerOffset
|
|
596
593
|
}).x,
|
|
597
|
-
y:
|
|
594
|
+
y: n(F)({
|
|
598
595
|
centerX: l.value.width / 2,
|
|
599
596
|
centerY: v.value.base,
|
|
600
597
|
initX: h.value.at(-1).endX,
|
|
@@ -605,58 +602,58 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
605
602
|
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
606
603
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
607
604
|
fill: e.value.style.chart.layout.markers.color
|
|
608
|
-
},
|
|
605
|
+
}, M(n(J)(
|
|
609
606
|
e.value.style.chart.layout.markers.formatter,
|
|
610
|
-
|
|
611
|
-
|
|
607
|
+
P.value,
|
|
608
|
+
n(K)({
|
|
612
609
|
p: e.value.style.chart.layout.markers.prefix,
|
|
613
|
-
v:
|
|
610
|
+
v: P.value,
|
|
614
611
|
s: e.value.style.chart.layout.markers.suffix,
|
|
615
612
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
616
613
|
})
|
|
617
|
-
)), 9,
|
|
614
|
+
)), 9, At)) : c("", !0),
|
|
618
615
|
e.value.style.chart.layout.pointer.show ? (s(), u(g, { key: 10 }, [
|
|
619
|
-
e.value.style.chart.layout.pointer.type === "rounded" ? (s(), u("g",
|
|
620
|
-
isNaN(
|
|
616
|
+
e.value.style.chart.layout.pointer.type === "rounded" ? (s(), u("g", Rt, [
|
|
617
|
+
isNaN(i.value.x2) ? c("", !0) : (s(), u("line", {
|
|
621
618
|
key: 0,
|
|
622
|
-
x1:
|
|
623
|
-
y1:
|
|
624
|
-
x2:
|
|
625
|
-
y2:
|
|
619
|
+
x1: i.value.x1,
|
|
620
|
+
y1: i.value.y1,
|
|
621
|
+
x2: i.value.x2,
|
|
622
|
+
y2: i.value.y2,
|
|
626
623
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
627
624
|
"stroke-width": l.value.pointerStrokeWidth,
|
|
628
625
|
"stroke-linecap": "round"
|
|
629
|
-
}, null, 8,
|
|
630
|
-
isNaN(
|
|
626
|
+
}, null, 8, Gt)),
|
|
627
|
+
isNaN(i.value.x2) ? c("", !0) : (s(), u("line", {
|
|
631
628
|
key: 1,
|
|
632
|
-
x1:
|
|
633
|
-
y1:
|
|
634
|
-
x2:
|
|
635
|
-
y2:
|
|
636
|
-
stroke: e.value.style.chart.layout.pointer.useRatingColor ?
|
|
629
|
+
x1: i.value.x1,
|
|
630
|
+
y1: i.value.y1,
|
|
631
|
+
x2: i.value.x2,
|
|
632
|
+
y2: i.value.y2,
|
|
633
|
+
stroke: e.value.style.chart.layout.pointer.useRatingColor ? B.value : e.value.style.chart.layout.pointer.color,
|
|
637
634
|
"stroke-linecap": "round",
|
|
638
635
|
"stroke-width": l.value.pointerStrokeWidth * 0.7
|
|
639
|
-
}, null, 8,
|
|
640
|
-
!isNaN(
|
|
636
|
+
}, null, 8, Et)),
|
|
637
|
+
!isNaN(i.value.x2) && e.value.style.chart.layout.track.useGradient ? (s(), u("line", {
|
|
641
638
|
key: 2,
|
|
642
|
-
x1:
|
|
643
|
-
y1:
|
|
644
|
-
x2:
|
|
645
|
-
y2:
|
|
639
|
+
x1: i.value.x1,
|
|
640
|
+
y1: i.value.y1,
|
|
641
|
+
x2: i.value.x2,
|
|
642
|
+
y2: i.value.y2,
|
|
646
643
|
stroke: "white",
|
|
647
644
|
"stroke-linecap": "round",
|
|
648
645
|
"stroke-width": l.value.pointerStrokeWidth * 0.3,
|
|
649
646
|
filter: `url(#blur_${b.value})`
|
|
650
|
-
}, null, 8,
|
|
651
|
-
])) : (s(), u("g",
|
|
652
|
-
|
|
647
|
+
}, null, 8, Wt)) : c("", !0)
|
|
648
|
+
])) : (s(), u("g", jt, [
|
|
649
|
+
ye.value ? (s(), u("path", {
|
|
653
650
|
key: 0,
|
|
654
|
-
d:
|
|
655
|
-
fill: e.value.style.chart.layout.pointer.useRatingColor ?
|
|
651
|
+
d: ye.value,
|
|
652
|
+
fill: e.value.style.chart.layout.pointer.useRatingColor ? B.value : e.value.style.chart.layout.pointer.color,
|
|
656
653
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
657
654
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
658
655
|
"stroke-linejoin": "round"
|
|
659
|
-
}, null, 8,
|
|
656
|
+
}, null, 8, Tt)) : c("", !0)
|
|
660
657
|
])),
|
|
661
658
|
p("circle", {
|
|
662
659
|
cx: l.value.width / 2,
|
|
@@ -674,23 +671,23 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
674
671
|
"text-anchor": "middle",
|
|
675
672
|
"font-size": l.value.legendFontSize,
|
|
676
673
|
"font-weight": "bold",
|
|
677
|
-
fill: e.value.style.chart.legend.useRatingColor ?
|
|
678
|
-
},
|
|
674
|
+
fill: e.value.style.chart.legend.useRatingColor ? B.value : e.value.style.chart.legend.color
|
|
675
|
+
}, M(n(J)(
|
|
679
676
|
e.value.style.chart.legend.formatter,
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol &&
|
|
683
|
-
v:
|
|
677
|
+
f.value,
|
|
678
|
+
n(K)({
|
|
679
|
+
p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && f.value > 0 ? "+" : ""),
|
|
680
|
+
v: f.value,
|
|
684
681
|
s: e.value.style.chart.legend.suffix,
|
|
685
682
|
r: e.value.style.chart.legend.roundingValue
|
|
686
683
|
})
|
|
687
|
-
)), 9,
|
|
684
|
+
)), 9, Lt)) : c("", !0),
|
|
688
685
|
x(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
689
|
-
], 14,
|
|
690
|
-
t.$slots.watermark ? (s(), u("div",
|
|
691
|
-
x(t.$slots, "watermark",
|
|
686
|
+
], 14, ht)) : c("", !0),
|
|
687
|
+
t.$slots.watermark ? (s(), u("div", Dt, [
|
|
688
|
+
x(t.$slots, "watermark", j(T({ isPrinting: n(ce) || n(ve) })), void 0, !0)
|
|
692
689
|
])) : c("", !0),
|
|
693
|
-
|
|
690
|
+
A.value ? c("", !0) : (s(), W(n(Ce), {
|
|
694
691
|
key: 6,
|
|
695
692
|
config: {
|
|
696
693
|
type: "gauge",
|
|
@@ -704,21 +701,21 @@ const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "h
|
|
|
704
701
|
}, null, 8, ["config"])),
|
|
705
702
|
p("div", {
|
|
706
703
|
ref_key: "chartLegend",
|
|
707
|
-
ref:
|
|
704
|
+
ref: ae
|
|
708
705
|
}, [
|
|
709
|
-
x(t.$slots, "legend", { legend:
|
|
706
|
+
x(t.$slots, "legend", { legend: C.value }, void 0, !0)
|
|
710
707
|
], 512),
|
|
711
708
|
t.$slots.source ? (s(), u("div", {
|
|
712
709
|
key: 7,
|
|
713
710
|
ref_key: "source",
|
|
714
|
-
ref:
|
|
711
|
+
ref: le,
|
|
715
712
|
dir: "auto"
|
|
716
713
|
}, [
|
|
717
714
|
x(t.$slots, "source", {}, void 0, !0)
|
|
718
715
|
], 512)) : c("", !0)
|
|
719
|
-
], 46,
|
|
716
|
+
], 46, vt));
|
|
720
717
|
}
|
|
721
|
-
}, aa = /* @__PURE__ */
|
|
718
|
+
}, aa = /* @__PURE__ */ ct(Bt, [["__scopeId", "data-v-a20fa622"]]);
|
|
722
719
|
export {
|
|
723
720
|
aa as default
|
|
724
721
|
};
|