vue-data-ui 3.4.9 → 3.5.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 +114 -37
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/vue-ui-donut-CxZcJFTo.js +1681 -0
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
- package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
- package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
- package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
- package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
- package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
- package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
- package/dist/vue-ui-onion-DTY2p87s.js +0 -873
- package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
- package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
- package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
- package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
- package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
- package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
- package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
- package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as K, computed as
|
|
2
|
-
import { c as
|
|
1
|
+
import { defineAsyncComponent as K, computed as d, ref as y, toRefs as at, watch as Q, shallowRef as ze, onMounted as lt, onBeforeUnmount as ot, createElementBlock as r, openBlock as s, unref as u, normalizeStyle as ee, normalizeClass as Ce, createBlock as W, createCommentVNode as c, createElementVNode as k, withCtx as b, renderSlot as h, normalizeProps as C, guardReactiveProps as F, toDisplayString as T, createSlots as st, createVNode as rt, Fragment as S, renderList as z, mergeProps as L, nextTick as nt } from "vue";
|
|
2
|
+
import { c as ut, t as it, b as ct, p as Fe, e as vt, o as Ae, h as dt, f as D, g as Oe, T as te, _ as M, a6 as ht, x as ft, X as yt, s as ae, M as gt, Y as mt, a as le, d as oe, R as se } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as pt, u as kt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as bt, B as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as wt, a as Me } from "./useNestedProp-
|
|
4
|
+
import { u as bt, B as St } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as _t } from "./usePrinter-DTzqpYKF.js";
|
|
6
|
+
import { u as wt, a as Me } from "./useNestedProp-DjGXw6S9.js";
|
|
7
7
|
import { u as xt } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import { u as Ct } from "./useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js";
|
|
11
11
|
import Ft from "./img-BecE5qXd.js";
|
|
12
12
|
import { t as At } from "./themes-AUNCOb2G.js";
|
|
13
|
-
import Ot from "./Title-
|
|
13
|
+
import Ot from "./Title-isbiM8i8.js";
|
|
14
14
|
import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "height"], Rt = ["id"], Yt = ["stop-color"], Tt = ["stop-color"], Et = ["stop-color"], Lt = ["id"], Gt = ["stdDeviation"], Bt = { key: 1 }, Ut = ["d", "fill", "stroke"], jt = ["d", "fill", "stroke"], Wt = ["d", "fill"], Dt = ["id", "d"], Vt = ["fill", "font-size", "font-weight"], Ht = ["href", "startOffset"], qt = ["text-anchor", "fill", "font-size", "font-weight", "innerHTML"], Zt = ["d", "filter"], Jt = ["stroke", "stroke-width"], Kt = ["stroke", "stroke-width"], Qt = ["stroke", "stroke-width"], ea = ["stroke", "stroke-width"], ta = { key: 8 }, aa = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], la = ["x", "y", "font-size", "font-weight", "fill"],
|
|
15
|
+
const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "height"], Rt = ["id"], Yt = ["stop-color"], Tt = ["stop-color"], Et = ["stop-color"], Lt = ["id"], Gt = ["stdDeviation"], Bt = { key: 1 }, Ut = ["d", "fill", "stroke"], jt = ["d", "fill", "stroke"], Wt = ["d", "fill"], Dt = ["id", "d"], Vt = ["fill", "font-size", "font-weight"], Ht = ["href", "startOffset"], qt = ["text-anchor", "fill", "font-size", "font-weight", "innerHTML"], Zt = ["d", "filter"], Jt = ["stroke", "stroke-width"], Kt = ["stroke", "stroke-width"], Qt = ["stroke", "stroke-width"], ea = ["stroke", "stroke-width"], ta = { key: 8 }, aa = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], la = ["x", "y", "font-size", "font-weight", "fill"], oa = { key: 0 }, sa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ra = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], na = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], ua = { key: 1 }, ia = ["d", "fill", "stroke", "stroke-width"], ca = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], va = ["x", "y", "font-size", "fill"], da = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, ha = {
|
|
19
19
|
__name: "vue-ui-gauge",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -32,13 +32,13 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
setup(Ne, { expose: Pe }) {
|
|
35
|
-
const Ie = K(() => import("./PenAndPaper-
|
|
36
|
-
...at(
|
|
35
|
+
const Ie = K(() => import("./PenAndPaper-SZQIAgkg.js")), Xe = K(() => import("./UserOptions-CGnQt6Fd.js")), Re = K(() => import("./PackageVersion-DQvyATVa.js")), { vue_ui_gauge: Ye } = wt(), p = Ne, Te = d(() => !!p.dataset && Object.keys(p.dataset).length > 0 && p.dataset.series && p.dataset.series.length), x = y(ut()), Ee = y(null), re = y(0), N = y(null), ne = y(null), ue = y(null), ie = y(null), ce = y(null), ve = y(0), e = y(H()), { loading: de, FINAL_DATASET: $, manualLoading: X } = bt({
|
|
36
|
+
...at(p),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
38
|
prepareConfig: H,
|
|
39
39
|
callback: () => {
|
|
40
40
|
Promise.resolve().then(async () => {
|
|
41
|
-
await
|
|
41
|
+
await nt();
|
|
42
42
|
});
|
|
43
43
|
},
|
|
44
44
|
skeletonDataset: {
|
|
@@ -77,31 +77,31 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
})
|
|
80
|
-
}), { userOptionsVisible: V, setUserOptionsVisibility:
|
|
81
|
-
Q(() =>
|
|
82
|
-
|
|
83
|
-
}, { deep: !0 }), Q(() =>
|
|
84
|
-
Z(), t && Object.keys(t).length > 0 && (
|
|
80
|
+
}), { userOptionsVisible: V, setUserOptionsVisibility: he, keepUserOptionState: fe } = $t({ config: e.value }), { svgRef: G } = zt({ config: e.value.style.chart.title });
|
|
81
|
+
Q(() => p.config, (t) => {
|
|
82
|
+
de.value || (e.value = H()), V.value = !e.value.userOptions.showOnChartHover, Z(), ve.value += 1;
|
|
83
|
+
}, { deep: !0 }), Q(() => p.dataset, (t) => {
|
|
84
|
+
Z(), t && Object.keys(t).length > 0 && (X.value = e.value?.loading ?? !1);
|
|
85
85
|
}, { deep: !0, immediate: !1 });
|
|
86
86
|
function H() {
|
|
87
87
|
const t = Me({
|
|
88
|
-
userConfig:
|
|
88
|
+
userConfig: p.config,
|
|
89
89
|
defaultConfig: Ye
|
|
90
90
|
});
|
|
91
91
|
return t.theme ? {
|
|
92
92
|
...Me({
|
|
93
|
-
userConfig: At.vue_ui_gauge[t.theme] ||
|
|
93
|
+
userConfig: At.vue_ui_gauge[t.theme] || p.config,
|
|
94
94
|
defaultConfig: t
|
|
95
95
|
}),
|
|
96
96
|
customPalette: ct[t.theme] || Fe
|
|
97
97
|
} : t;
|
|
98
98
|
}
|
|
99
|
-
const { isPrinting: ye, isImaging: ge, generatePdf: me, generateImage: pe } =
|
|
100
|
-
elementId: `vue-ui-gauge_${
|
|
99
|
+
const { isPrinting: ye, isImaging: ge, generatePdf: me, generateImage: pe } = _t({
|
|
100
|
+
elementId: `vue-ui-gauge_${x.value}`,
|
|
101
101
|
fileName: e.value.style.chart.title.text || "vue-ui-gauge",
|
|
102
102
|
options: e.value.userOptions.print
|
|
103
|
-
}), Le =
|
|
104
|
-
if (Ae(
|
|
103
|
+
}), Le = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = d(() => vt(e.value.customPalette)), P = d(() => {
|
|
104
|
+
if (Ae($.value.series || {}))
|
|
105
105
|
return {
|
|
106
106
|
value: 0,
|
|
107
107
|
series: [
|
|
@@ -112,25 +112,25 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
112
112
|
]
|
|
113
113
|
};
|
|
114
114
|
const t = [];
|
|
115
|
-
(
|
|
115
|
+
($.value.series || []).forEach((a) => {
|
|
116
116
|
t.push(a.from || 1e-7), t.push(a.to || 1e-7);
|
|
117
117
|
});
|
|
118
|
-
const
|
|
118
|
+
const n = Math.max(...t);
|
|
119
119
|
return {
|
|
120
|
-
|
|
121
|
-
series: (
|
|
120
|
+
...$.value,
|
|
121
|
+
series: ($.value.series || []).map((a, l) => ({
|
|
122
122
|
...a,
|
|
123
|
-
color:
|
|
124
|
-
value: ((a.to || 0) - (a.from || 0)) /
|
|
123
|
+
color: dt(a.color) || Ge.value[l] || Fe[l],
|
|
124
|
+
value: ((a.to || 0) - (a.from || 0)) / n * 100
|
|
125
125
|
}))
|
|
126
126
|
};
|
|
127
|
-
}),
|
|
127
|
+
}), _ = y(512), o = y({
|
|
128
128
|
height: 358.4,
|
|
129
|
-
width:
|
|
129
|
+
width: _.value,
|
|
130
130
|
top: 0,
|
|
131
131
|
bottom: 358.4,
|
|
132
132
|
centerX: 179.2,
|
|
133
|
-
centerY:
|
|
133
|
+
centerY: _.value / 2,
|
|
134
134
|
labelFontSize: 18,
|
|
135
135
|
legendFontSize: e.value.style.chart.legend.fontSize,
|
|
136
136
|
pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
|
|
@@ -139,59 +139,59 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
139
139
|
pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
|
|
140
140
|
markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
|
|
141
141
|
segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
|
|
142
|
-
}),
|
|
143
|
-
e.value.style.chart.animation.use ? Math.min(
|
|
142
|
+
}), R = y(0), A = y(0), g = y(
|
|
143
|
+
e.value.style.chart.animation.use ? Math.min(...$.value.series.map((t) => t.from)) : $.value.value
|
|
144
144
|
);
|
|
145
|
-
Q(() =>
|
|
146
|
-
|
|
145
|
+
Q(() => $.value.value, () => {
|
|
146
|
+
Se($.value.value);
|
|
147
147
|
});
|
|
148
|
-
const i =
|
|
149
|
-
const t =
|
|
148
|
+
const i = d(() => {
|
|
149
|
+
const t = o.value.width / 2, n = v.value.base, a = Math.PI * ((g.value + 0 - A.value) / (R.value - A.value)) + Math.PI;
|
|
150
150
|
return {
|
|
151
151
|
x1: t,
|
|
152
|
-
y1:
|
|
153
|
-
x2: t + v.value.pointerSize *
|
|
154
|
-
y2:
|
|
152
|
+
y1: n,
|
|
153
|
+
x2: t + v.value.pointerSize * o.value.pointerSize * 0.9 * Math.cos(a),
|
|
154
|
+
y2: n + v.value.pointerSize * o.value.pointerSize * 0.9 * Math.sin(a)
|
|
155
155
|
};
|
|
156
|
-
}), ke =
|
|
157
|
-
const t =
|
|
158
|
-
return isNaN(l) ? null : `M ${l},${
|
|
159
|
-
}), q =
|
|
160
|
-
for (let t = 0; t <
|
|
161
|
-
const { color:
|
|
162
|
-
if (
|
|
163
|
-
return
|
|
156
|
+
}), ke = d(() => {
|
|
157
|
+
const t = o.value.width / 2, n = v.value.base, a = Math.PI * ((g.value + 0 - A.value) / (R.value - A.value)) + Math.PI, l = t + v.value.pointerSize * o.value.pointerSize * 0.9 * Math.cos(a), m = n + v.value.pointerSize * o.value.pointerSize * 0.9 * Math.sin(a), w = o.value.pointerRadius, Ke = t + w * Math.cos(a + Math.PI / 2), Qe = n + w * Math.sin(a + Math.PI / 2), et = t + w * Math.cos(a - Math.PI / 2), tt = n + w * Math.sin(a - Math.PI / 2);
|
|
158
|
+
return isNaN(l) ? null : `M ${l},${m} ${Ke},${Qe} ${et},${tt} Z`;
|
|
159
|
+
}), q = d(() => {
|
|
160
|
+
for (let t = 0; t < P.value.series.length; t += 1) {
|
|
161
|
+
const { color: n, from: a, to: l } = P.value.series[t];
|
|
162
|
+
if (g.value >= a && g.value <= l)
|
|
163
|
+
return n;
|
|
164
164
|
}
|
|
165
165
|
return "#2D353C";
|
|
166
|
-
}),
|
|
167
|
-
get: () =>
|
|
166
|
+
}), O = ze(null), Y = ze(null), B = d({
|
|
167
|
+
get: () => o.value.segmentFontSize,
|
|
168
168
|
set: (t) => t
|
|
169
169
|
}), { autoSizeLabels: be } = Ct({
|
|
170
|
-
svgRef:
|
|
171
|
-
fontSize:
|
|
170
|
+
svgRef: G,
|
|
171
|
+
fontSize: o.value.segmentFontSize,
|
|
172
172
|
minFontSize: e.value.style.chart.layout.segmentNames.minFontSize,
|
|
173
|
-
sizeRef:
|
|
173
|
+
sizeRef: B,
|
|
174
174
|
labelClass: ".vue-ui-gauge-label-flat"
|
|
175
|
-
}),
|
|
175
|
+
}), U = d(() => !!e.value.debug);
|
|
176
176
|
function Z() {
|
|
177
177
|
let t = !1;
|
|
178
|
-
if (Ae(
|
|
178
|
+
if (Ae(p.dataset) ? (D({
|
|
179
179
|
componentName: "VueUiGauge",
|
|
180
180
|
type: "dataset",
|
|
181
|
-
debug:
|
|
182
|
-
}),
|
|
183
|
-
datasetObject:
|
|
181
|
+
debug: U.value
|
|
182
|
+
}), X.value = !0, t = !0) : (Oe({
|
|
183
|
+
datasetObject: p.dataset,
|
|
184
184
|
requiredAttributes: ["value", "series"]
|
|
185
|
-
}).forEach((
|
|
185
|
+
}).forEach((n) => {
|
|
186
186
|
D({
|
|
187
187
|
componentName: "VueUiGauge",
|
|
188
188
|
type: "datasetAttribute",
|
|
189
|
-
property:
|
|
190
|
-
debug:
|
|
191
|
-
}),
|
|
192
|
-
}), Object.hasOwn(
|
|
189
|
+
property: n,
|
|
190
|
+
debug: U.value
|
|
191
|
+
}), X.value = !0, t = !0;
|
|
192
|
+
}), Object.hasOwn(p.dataset, "series") && (p.dataset.series.length ? p.dataset.series.forEach((n, a) => {
|
|
193
193
|
Oe({
|
|
194
|
-
datasetObject:
|
|
194
|
+
datasetObject: n,
|
|
195
195
|
requiredAttributes: ["from", "to"]
|
|
196
196
|
}).forEach((l) => {
|
|
197
197
|
D({
|
|
@@ -199,78 +199,78 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
199
199
|
type: "datasetSerieAttribute",
|
|
200
200
|
property: l,
|
|
201
201
|
index: a,
|
|
202
|
-
debug:
|
|
203
|
-
}),
|
|
202
|
+
debug: U.value
|
|
203
|
+
}), X.value = !0, t = !0;
|
|
204
204
|
});
|
|
205
205
|
}) : (D({
|
|
206
206
|
componentName: "VueUiGauge",
|
|
207
207
|
type: "datasetAttributeEmpty",
|
|
208
208
|
property: "series",
|
|
209
|
-
debug:
|
|
210
|
-
}),
|
|
211
|
-
const
|
|
209
|
+
debug: U.value
|
|
210
|
+
}), X.value = !0, t = !0))), X.value = t, Se($.value.value || 0), e.value.responsive) {
|
|
211
|
+
const n = pt(() => {
|
|
212
212
|
let { width: a, height: l } = kt({
|
|
213
|
-
chart:
|
|
214
|
-
title: e.value.style.chart.title.text ?
|
|
215
|
-
legend:
|
|
213
|
+
chart: N.value,
|
|
214
|
+
title: e.value.style.chart.title.text ? ne.value : null,
|
|
215
|
+
legend: ue.value,
|
|
216
216
|
source: ie.value,
|
|
217
217
|
noTitle: ce.value
|
|
218
218
|
});
|
|
219
219
|
l -= 12, requestAnimationFrame(() => {
|
|
220
|
-
|
|
220
|
+
o.value.width = a, o.value.height = l, o.value.centerX = a / 2, o.value.centerY = _.value / 2 / 358.4 * l, o.value.bottom = l, o.value.labelFontSize = 18 / _.value * Math.min(l, a) < 10 ? 10 : 18 / _.value * Math.min(l, a), o.value.legendFontSize = e.value.style.chart.legend.fontSize / _.value * Math.min(l, a) < 14 ? 14 : e.value.style.chart.legend.fontSize / _.value * Math.min(l, a), o.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / _.value * Math.min(l, a), o.value.trackSize = e.value.style.chart.layout.track.size / _.value * Math.min(l, a), o.value.pointerStrokeWidth = se({
|
|
221
221
|
relator: Math.min(a, l),
|
|
222
|
-
adjuster:
|
|
222
|
+
adjuster: _.value,
|
|
223
223
|
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
224
224
|
threshold: 2,
|
|
225
225
|
fallback: 2
|
|
226
|
-
}),
|
|
226
|
+
}), o.value.markerOffset = se({
|
|
227
227
|
relator: Math.max(a, l),
|
|
228
|
-
adjuster:
|
|
228
|
+
adjuster: _.value,
|
|
229
229
|
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
230
230
|
threshold: 2,
|
|
231
231
|
fallback: 2
|
|
232
|
-
}),
|
|
232
|
+
}), o.value.segmentFontSize = se({
|
|
233
233
|
relator: Math.min(a, l),
|
|
234
|
-
adjuster:
|
|
234
|
+
adjuster: _.value,
|
|
235
235
|
source: e.value.style.chart.layout.segmentNames.fontSize,
|
|
236
236
|
threshold: 8,
|
|
237
237
|
fallback: 8
|
|
238
238
|
});
|
|
239
239
|
}), be();
|
|
240
240
|
});
|
|
241
|
-
|
|
241
|
+
O.value && (Y.value && O.value.unobserve(Y.value), O.value.disconnect()), O.value = new ResizeObserver(n), Y.value = N.value.parentNode, O.value.observe(Y.value);
|
|
242
242
|
}
|
|
243
243
|
be();
|
|
244
244
|
}
|
|
245
245
|
lt(() => {
|
|
246
246
|
Z();
|
|
247
|
-
}),
|
|
248
|
-
|
|
247
|
+
}), ot(() => {
|
|
248
|
+
O.value && (Y.value && O.value.unobserve(Y.value), O.value.disconnect());
|
|
249
249
|
});
|
|
250
|
-
function
|
|
251
|
-
const
|
|
252
|
-
(
|
|
253
|
-
|
|
254
|
-
}),
|
|
250
|
+
function Se(t) {
|
|
251
|
+
const n = [];
|
|
252
|
+
(P.value.series || []).forEach((w) => {
|
|
253
|
+
n.push(w.from || 0), n.push(w.to || 0);
|
|
254
|
+
}), R.value = Math.max(...n), A.value = Math.min(...n);
|
|
255
255
|
let a = e.value.style.chart.animation.speed;
|
|
256
|
-
const l = Math.abs(t -
|
|
257
|
-
function
|
|
258
|
-
|
|
256
|
+
const l = Math.abs(t - g.value) / (a * 60);
|
|
257
|
+
function m() {
|
|
258
|
+
g.value < t ? g.value = Math.min(g.value + l, t) : g.value > t && (g.value = Math.max(g.value - l, t)), g.value !== t && requestAnimationFrame(m);
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
m();
|
|
261
261
|
}
|
|
262
|
-
const v =
|
|
263
|
-
const t = e.value.responsive ? Math.min(
|
|
262
|
+
const v = d(() => {
|
|
263
|
+
const t = e.value.responsive ? Math.min(o.value.width, o.value.height) : o.value.width, n = 2.5 / e.value.style.chart.layout.radiusRatio;
|
|
264
264
|
return {
|
|
265
|
-
arcs: t /
|
|
266
|
-
gradients: t / (
|
|
267
|
-
base: e.value.responsive ?
|
|
268
|
-
ratingBase: e.value.responsive ?
|
|
269
|
-
pointerSize: e.value.responsive ? Math.min(
|
|
265
|
+
arcs: t / n,
|
|
266
|
+
gradients: t / (n * 1.1),
|
|
267
|
+
base: e.value.responsive ? o.value.height / 1.618 : o.value.height * 0.7,
|
|
268
|
+
ratingBase: e.value.responsive ? o.value.height / 2 + o.value.height / 4 : o.value.height * 0.9,
|
|
269
|
+
pointerSize: e.value.responsive ? Math.min(o.value.width, o.value.height) / 3 : o.value.width / 3.2
|
|
270
270
|
};
|
|
271
|
-
}),
|
|
272
|
-
{ series:
|
|
273
|
-
|
|
271
|
+
}), f = d(() => te(
|
|
272
|
+
{ series: P.value.series },
|
|
273
|
+
o.value.width / 2,
|
|
274
274
|
v.value.base,
|
|
275
275
|
v.value.arcs,
|
|
276
276
|
v.value.arcs,
|
|
@@ -279,10 +279,10 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
279
279
|
1,
|
|
280
280
|
180,
|
|
281
281
|
109.9495,
|
|
282
|
-
40 *
|
|
283
|
-
)), Be =
|
|
284
|
-
{ series:
|
|
285
|
-
|
|
282
|
+
40 * o.value.trackSize
|
|
283
|
+
)), Be = d(() => te(
|
|
284
|
+
{ series: P.value.series },
|
|
285
|
+
o.value.width / 2,
|
|
286
286
|
v.value.base,
|
|
287
287
|
v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
288
288
|
v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
@@ -291,48 +291,48 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
291
291
|
1,
|
|
292
292
|
180,
|
|
293
293
|
109.9495,
|
|
294
|
-
40 *
|
|
295
|
-
)),
|
|
296
|
-
const { x: t, y:
|
|
297
|
-
initX:
|
|
298
|
-
initY:
|
|
294
|
+
40 * o.value.trackSize
|
|
295
|
+
)), I = d(() => f.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), _e = d(() => {
|
|
296
|
+
const { x: t, y: n } = M({
|
|
297
|
+
initX: f.value[0].firstSeparator.x,
|
|
298
|
+
initY: f.value[0].firstSeparator.y,
|
|
299
299
|
centerX: i.value.x1,
|
|
300
300
|
centerY: i.value.y1,
|
|
301
301
|
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
302
|
-
}), { x: a, y: l } =
|
|
303
|
-
initX:
|
|
304
|
-
initY:
|
|
302
|
+
}), { x: a, y: l } = M({
|
|
303
|
+
initX: f.value[0].startX,
|
|
304
|
+
initY: f.value[0].startY,
|
|
305
305
|
centerX: i.value.x1,
|
|
306
306
|
centerY: i.value.y1,
|
|
307
307
|
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
308
308
|
});
|
|
309
|
-
return { x1: t, y1:
|
|
310
|
-
}), we =
|
|
311
|
-
const { x:
|
|
309
|
+
return { x1: t, y1: n, x2: a, y2: l };
|
|
310
|
+
}), we = d(() => f.value.map((t) => {
|
|
311
|
+
const { x: n, y: a } = M({
|
|
312
312
|
initX: t.separator.x,
|
|
313
313
|
initY: t.separator.y,
|
|
314
314
|
centerX: i.value.x1,
|
|
315
315
|
centerY: i.value.y1,
|
|
316
316
|
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
317
|
-
}), { x: l, y:
|
|
317
|
+
}), { x: l, y: m } = M({
|
|
318
318
|
initX: t.endX,
|
|
319
319
|
initY: t.endY,
|
|
320
320
|
centerX: i.value.x1,
|
|
321
321
|
centerY: i.value.y1,
|
|
322
322
|
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
323
323
|
});
|
|
324
|
-
return { x1:
|
|
324
|
+
return { x1: n, y1: a, x2: l, y2: m };
|
|
325
325
|
}));
|
|
326
326
|
function Ue(t) {
|
|
327
|
-
if (t.reduce((
|
|
327
|
+
if (t.reduce((m, w) => m + w, 0) > 100)
|
|
328
328
|
throw new Error("Total % must not exceed 100");
|
|
329
329
|
const a = 50;
|
|
330
330
|
let l = 0;
|
|
331
|
-
return t.map((
|
|
331
|
+
return t.map((m) => (l += m, `${l / 100 * a - m / 4}%`));
|
|
332
332
|
}
|
|
333
|
-
const je =
|
|
334
|
-
{ series:
|
|
335
|
-
|
|
333
|
+
const je = d(() => Ue(f.value.map((t) => t.proportion * 100))), We = d(() => te(
|
|
334
|
+
{ series: P.value.series },
|
|
335
|
+
o.value.width / 2,
|
|
336
336
|
v.value.base,
|
|
337
337
|
v.value.gradients,
|
|
338
338
|
v.value.gradients,
|
|
@@ -341,44 +341,44 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
341
341
|
1,
|
|
342
342
|
180,
|
|
343
343
|
110.02,
|
|
344
|
-
2 *
|
|
345
|
-
)), De =
|
|
346
|
-
const t =
|
|
347
|
-
return
|
|
348
|
-
radius: e.value.style.chart.layout.indicatorArc.radius *
|
|
349
|
-
centerX:
|
|
344
|
+
2 * o.value.trackSize
|
|
345
|
+
)), De = d(() => {
|
|
346
|
+
const t = A.value >= 0 ? -A.value : Math.abs(A.value);
|
|
347
|
+
return ht({
|
|
348
|
+
radius: e.value.style.chart.layout.indicatorArc.radius * o.value.trackSize,
|
|
349
|
+
centerX: o.value.width / 2,
|
|
350
350
|
centerY: v.value.base,
|
|
351
|
-
percentage: ft((
|
|
351
|
+
percentage: ft((g.value + t) / (R.value + t))
|
|
352
352
|
});
|
|
353
|
-
}),
|
|
353
|
+
}), E = y(!1);
|
|
354
354
|
function xe(t) {
|
|
355
|
-
|
|
355
|
+
E.value = t, re.value += 1;
|
|
356
356
|
}
|
|
357
|
-
const
|
|
357
|
+
const j = y(!1);
|
|
358
358
|
function J() {
|
|
359
|
-
|
|
359
|
+
j.value = !j.value;
|
|
360
360
|
}
|
|
361
361
|
async function Ve({ scale: t = 2 } = {}) {
|
|
362
|
-
if (!
|
|
363
|
-
const { width:
|
|
362
|
+
if (!N.value) return;
|
|
363
|
+
const { width: n, height: a } = N.value.getBoundingClientRect(), l = n / a, { imageUri: m, base64: w } = await Ft({ domElement: N.value, base64: !0, img: !0, scale: t });
|
|
364
364
|
return {
|
|
365
|
-
imageUri:
|
|
366
|
-
base64:
|
|
365
|
+
imageUri: m,
|
|
366
|
+
base64: w,
|
|
367
367
|
title: e.value.style.chart.title.text,
|
|
368
|
-
width:
|
|
368
|
+
width: n,
|
|
369
369
|
height: a,
|
|
370
370
|
aspectRatio: l
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
|
-
const He =
|
|
374
|
-
svg:
|
|
373
|
+
const He = d(() => e.value.style.chart.backgroundColor), qe = d(() => e.value.style.chart.title), { exportSvg: Ze, getSvg: Je } = xt({
|
|
374
|
+
svg: G,
|
|
375
375
|
title: qe,
|
|
376
376
|
backgroundColor: He
|
|
377
377
|
});
|
|
378
378
|
async function $e({ isCb: t }) {
|
|
379
379
|
if (t) {
|
|
380
|
-
const { blob:
|
|
381
|
-
e.value.userOptions.callbacks.svg({ blob:
|
|
380
|
+
const { blob: n, url: a, text: l, dataUrl: m } = await Je();
|
|
381
|
+
e.value.userOptions.callbacks.svg({ blob: n, url: a, text: l, dataUrl: m });
|
|
382
382
|
} else
|
|
383
383
|
Ze();
|
|
384
384
|
}
|
|
@@ -389,37 +389,57 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
389
389
|
generateSvg: $e,
|
|
390
390
|
toggleAnnotator: J,
|
|
391
391
|
toggleFullscreen: xe
|
|
392
|
-
}), (t,
|
|
393
|
-
class: Ce(`vue-data-ui-component vue-ui-gauge ${
|
|
392
|
+
}), (t, n) => (s(), r("div", {
|
|
393
|
+
class: Ce(`vue-data-ui-component vue-ui-gauge ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
394
394
|
ref_key: "gaugeChart",
|
|
395
|
-
ref:
|
|
396
|
-
id: `vue-ui-gauge_${
|
|
395
|
+
ref: N,
|
|
396
|
+
id: `vue-ui-gauge_${x.value}`,
|
|
397
397
|
style: ee(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
398
|
-
onMouseenter:
|
|
399
|
-
onMouseleave:
|
|
398
|
+
onMouseenter: n[0] || (n[0] = () => u(he)(!0)),
|
|
399
|
+
onMouseleave: n[1] || (n[1] = () => u(he)(!1))
|
|
400
400
|
}, [
|
|
401
|
-
e.value.userOptions.buttons.annotator ? (
|
|
401
|
+
e.value.userOptions.buttons.annotator ? (s(), W(u(Ie), {
|
|
402
402
|
key: 0,
|
|
403
|
-
svgRef:
|
|
403
|
+
svgRef: u(G),
|
|
404
404
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
405
405
|
color: e.value.style.chart.color,
|
|
406
|
-
active:
|
|
406
|
+
active: j.value,
|
|
407
407
|
onClose: J
|
|
408
|
-
},
|
|
409
|
-
|
|
408
|
+
}, {
|
|
409
|
+
"annotator-action-close": b(() => [
|
|
410
|
+
h(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
411
|
+
]),
|
|
412
|
+
"annotator-action-color": b(({ color: a }) => [
|
|
413
|
+
h(t.$slots, "annotator-action-color", C(F({ color: a })), void 0, !0)
|
|
414
|
+
]),
|
|
415
|
+
"annotator-action-draw": b(({ mode: a }) => [
|
|
416
|
+
h(t.$slots, "annotator-action-draw", C(F({ mode: a })), void 0, !0)
|
|
417
|
+
]),
|
|
418
|
+
"annotator-action-undo": b(({ disabled: a }) => [
|
|
419
|
+
h(t.$slots, "annotator-action-undo", C(F({ disabled: a })), void 0, !0)
|
|
420
|
+
]),
|
|
421
|
+
"annotator-action-redo": b(({ disabled: a }) => [
|
|
422
|
+
h(t.$slots, "annotator-action-redo", C(F({ disabled: a })), void 0, !0)
|
|
423
|
+
]),
|
|
424
|
+
"annotator-action-delete": b(({ disabled: a }) => [
|
|
425
|
+
h(t.$slots, "annotator-action-delete", C(F({ disabled: a })), void 0, !0)
|
|
426
|
+
]),
|
|
427
|
+
_: 3
|
|
428
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
429
|
+
Le.value ? (s(), r("div", {
|
|
410
430
|
key: 1,
|
|
411
431
|
ref_key: "noTitle",
|
|
412
432
|
ref: ce,
|
|
413
433
|
class: "vue-data-ui-no-title-space",
|
|
414
434
|
style: "height:36px; width: 100%;background:transparent"
|
|
415
435
|
}, null, 512)) : c("", !0),
|
|
416
|
-
e.value.style.chart.title.text ? (
|
|
436
|
+
e.value.style.chart.title.text ? (s(), r("div", {
|
|
417
437
|
key: 2,
|
|
418
438
|
ref_key: "chartTitle",
|
|
419
|
-
ref:
|
|
439
|
+
ref: ne,
|
|
420
440
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
421
441
|
}, [
|
|
422
|
-
(
|
|
442
|
+
(s(), W(Ot, {
|
|
423
443
|
key: `title_${ve.value}`,
|
|
424
444
|
config: {
|
|
425
445
|
title: {
|
|
@@ -432,254 +452,254 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
432
452
|
}
|
|
433
453
|
}
|
|
434
454
|
}, {
|
|
435
|
-
default:
|
|
436
|
-
e.value.translations.base &&
|
|
455
|
+
default: b(() => [
|
|
456
|
+
e.value.translations.base && u($).base ? (s(), r("span", Pt, T(e.value.translations.base) + ": " + T(u($).base), 1)) : c("", !0)
|
|
437
457
|
]),
|
|
438
458
|
_: 1
|
|
439
459
|
}, 8, ["config"]))
|
|
440
460
|
], 512)) : c("", !0),
|
|
441
|
-
e.value.userOptions.show && Te.value && (
|
|
461
|
+
e.value.userOptions.show && Te.value && (u(fe) || u(V)) ? (s(), W(u(Xe), {
|
|
442
462
|
ref_key: "details",
|
|
443
463
|
ref: Ee,
|
|
444
464
|
key: `user_options_${re.value}`,
|
|
445
465
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
446
466
|
color: e.value.style.chart.color,
|
|
447
|
-
isImaging:
|
|
448
|
-
isPrinting:
|
|
449
|
-
uid:
|
|
467
|
+
isImaging: u(ge),
|
|
468
|
+
isPrinting: u(ye),
|
|
469
|
+
uid: x.value,
|
|
450
470
|
hasXls: !1,
|
|
451
471
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
452
472
|
hasImg: e.value.userOptions.buttons.img,
|
|
453
473
|
hasSvg: e.value.userOptions.buttons.svg,
|
|
454
474
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
455
|
-
isFullscreen:
|
|
475
|
+
isFullscreen: E.value,
|
|
456
476
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
457
|
-
chartElement:
|
|
477
|
+
chartElement: N.value,
|
|
458
478
|
callbacks: e.value.userOptions.callbacks,
|
|
459
479
|
printScale: e.value.userOptions.print.scale,
|
|
460
480
|
position: e.value.userOptions.position,
|
|
461
481
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
462
|
-
isAnnotation:
|
|
482
|
+
isAnnotation: j.value,
|
|
463
483
|
onToggleFullscreen: xe,
|
|
464
|
-
onGeneratePdf:
|
|
465
|
-
onGenerateImage:
|
|
484
|
+
onGeneratePdf: u(me),
|
|
485
|
+
onGenerateImage: u(pe),
|
|
466
486
|
onGenerateSvg: $e,
|
|
467
487
|
onToggleAnnotator: J,
|
|
468
488
|
style: ee({
|
|
469
|
-
visibility:
|
|
489
|
+
visibility: u(fe) ? u(V) ? "visible" : "hidden" : "visible"
|
|
470
490
|
})
|
|
471
|
-
},
|
|
491
|
+
}, st({ _: 2 }, [
|
|
472
492
|
t.$slots.menuIcon ? {
|
|
473
493
|
name: "menuIcon",
|
|
474
|
-
fn:
|
|
475
|
-
|
|
494
|
+
fn: b(({ isOpen: a, color: l }) => [
|
|
495
|
+
h(t.$slots, "menuIcon", C(F({ isOpen: a, color: l })), void 0, !0)
|
|
476
496
|
]),
|
|
477
497
|
key: "0"
|
|
478
498
|
} : void 0,
|
|
479
499
|
t.$slots.optionPdf ? {
|
|
480
500
|
name: "optionPdf",
|
|
481
|
-
fn:
|
|
482
|
-
|
|
501
|
+
fn: b(() => [
|
|
502
|
+
h(t.$slots, "optionPdf", {}, void 0, !0)
|
|
483
503
|
]),
|
|
484
504
|
key: "1"
|
|
485
505
|
} : void 0,
|
|
486
506
|
t.$slots.optionImg ? {
|
|
487
507
|
name: "optionImg",
|
|
488
|
-
fn:
|
|
489
|
-
|
|
508
|
+
fn: b(() => [
|
|
509
|
+
h(t.$slots, "optionImg", {}, void 0, !0)
|
|
490
510
|
]),
|
|
491
511
|
key: "2"
|
|
492
512
|
} : void 0,
|
|
493
513
|
t.$slots.optionSvg ? {
|
|
494
514
|
name: "optionSvg",
|
|
495
|
-
fn:
|
|
496
|
-
|
|
515
|
+
fn: b(() => [
|
|
516
|
+
h(t.$slots, "optionSvg", {}, void 0, !0)
|
|
497
517
|
]),
|
|
498
518
|
key: "3"
|
|
499
519
|
} : void 0,
|
|
500
520
|
t.$slots.optionFullscreen ? {
|
|
501
521
|
name: "optionFullscreen",
|
|
502
|
-
fn:
|
|
503
|
-
|
|
522
|
+
fn: b(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
523
|
+
h(t.$slots, "optionFullscreen", C(F({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
504
524
|
]),
|
|
505
525
|
key: "4"
|
|
506
526
|
} : void 0,
|
|
507
527
|
t.$slots.optionAnnotator ? {
|
|
508
528
|
name: "optionAnnotator",
|
|
509
|
-
fn:
|
|
510
|
-
|
|
529
|
+
fn: b(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
530
|
+
h(t.$slots, "optionAnnotator", C(F({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
511
531
|
]),
|
|
512
532
|
key: "5"
|
|
513
533
|
} : void 0
|
|
514
534
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "callbacks", "printScale", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
515
|
-
(
|
|
535
|
+
(s(), r("svg", {
|
|
516
536
|
ref_key: "svgRef",
|
|
517
|
-
ref:
|
|
518
|
-
xmlns:
|
|
519
|
-
class: Ce({ "vue-data-ui-fullscreen--on":
|
|
520
|
-
viewBox: `0 0 ${
|
|
537
|
+
ref: G,
|
|
538
|
+
xmlns: u(yt),
|
|
539
|
+
class: Ce({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
540
|
+
viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
|
|
521
541
|
style: ee(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
522
542
|
}, [
|
|
523
|
-
rt(
|
|
524
|
-
t.$slots["chart-background"] ? (
|
|
543
|
+
rt(u(Re)),
|
|
544
|
+
t.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
525
545
|
key: 0,
|
|
526
546
|
x: 0,
|
|
527
547
|
y: 0,
|
|
528
|
-
width:
|
|
529
|
-
height:
|
|
548
|
+
width: o.value.width <= 0 ? 10 : o.value.width,
|
|
549
|
+
height: o.value.height <= 0 ? 10 : o.value.height,
|
|
530
550
|
style: {
|
|
531
551
|
pointerEvents: "none"
|
|
532
552
|
}
|
|
533
553
|
}, [
|
|
534
|
-
|
|
554
|
+
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
535
555
|
], 8, Xt)) : c("", !0),
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
id: `gradient_${
|
|
556
|
+
k("defs", null, [
|
|
557
|
+
k("radialGradient", {
|
|
558
|
+
id: `gradient_${x.value}`,
|
|
539
559
|
cx: "50%",
|
|
540
560
|
cy: "50%",
|
|
541
561
|
r: "50%",
|
|
542
562
|
fx: "50%",
|
|
543
563
|
fy: "50%"
|
|
544
564
|
}, [
|
|
545
|
-
|
|
565
|
+
k("stop", {
|
|
546
566
|
offset: "0%",
|
|
547
|
-
"stop-color":
|
|
567
|
+
"stop-color": u(ae)("#FFFFFF", 1)
|
|
548
568
|
}, null, 8, Yt),
|
|
549
|
-
|
|
569
|
+
k("stop", {
|
|
550
570
|
offset: "80%",
|
|
551
|
-
"stop-color":
|
|
571
|
+
"stop-color": u(ae)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
552
572
|
}, null, 8, Tt),
|
|
553
|
-
|
|
573
|
+
k("stop", {
|
|
554
574
|
offset: "100%",
|
|
555
|
-
"stop-color":
|
|
575
|
+
"stop-color": u(ae)("#FFFFFF", 1)
|
|
556
576
|
}, null, 8, Et)
|
|
557
577
|
], 8, Rt)
|
|
558
578
|
]),
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
id: `blur_${
|
|
579
|
+
k("defs", null, [
|
|
580
|
+
k("filter", {
|
|
581
|
+
id: `blur_${x.value}`,
|
|
562
582
|
x: "-50%",
|
|
563
583
|
y: "-50%",
|
|
564
584
|
width: "200%",
|
|
565
585
|
height: "200%"
|
|
566
586
|
}, [
|
|
567
|
-
|
|
587
|
+
k("feGaussianBlur", {
|
|
568
588
|
in: "SourceGraphic",
|
|
569
589
|
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
570
590
|
}, null, 8, Gt)
|
|
571
591
|
], 8, Lt)
|
|
572
592
|
]),
|
|
573
|
-
t.$slots.pattern ? (
|
|
574
|
-
(
|
|
575
|
-
|
|
593
|
+
t.$slots.pattern ? (s(), r("g", Bt, [
|
|
594
|
+
(s(!0), r(S, null, z(f.value, (a, l) => (s(), r("defs", null, [
|
|
595
|
+
h(t.$slots, "pattern", L({ ref_for: !0 }, { seriesIndex: l, patternId: `pattern_${x.value}_${l}` }), void 0, !0)
|
|
576
596
|
]))), 256))
|
|
577
597
|
])) : c("", !0),
|
|
578
|
-
(
|
|
598
|
+
(s(!0), r(S, null, z(f.value, (a, l) => (s(), r("path", {
|
|
579
599
|
key: `arc_${l}`,
|
|
580
600
|
d: a.arcSlice,
|
|
581
601
|
fill: a.color,
|
|
582
602
|
stroke: e.value.style.chart.backgroundColor,
|
|
583
603
|
"stroke-linecap": "round"
|
|
584
604
|
}, null, 8, Ut))), 128)),
|
|
585
|
-
t.$slots.pattern ? (
|
|
605
|
+
t.$slots.pattern ? (s(!0), r(S, { key: 2 }, z(f.value, (a, l) => (s(), r("path", {
|
|
586
606
|
key: `arc_${l}`,
|
|
587
607
|
d: a.arcSlice,
|
|
588
|
-
fill: `url(#pattern_${
|
|
608
|
+
fill: `url(#pattern_${x.value}_${l})`,
|
|
589
609
|
stroke: e.value.style.chart.backgroundColor,
|
|
590
610
|
"stroke-linecap": "round"
|
|
591
611
|
}, null, 8, jt))), 128)) : c("", !0),
|
|
592
|
-
e.value.style.chart.layout.indicatorArc.show ? (
|
|
612
|
+
e.value.style.chart.layout.indicatorArc.show ? (s(), r("path", {
|
|
593
613
|
key: 3,
|
|
594
614
|
d: De.value,
|
|
595
615
|
fill: e.value.style.chart.layout.indicatorArc.fill
|
|
596
616
|
}, null, 8, Wt)) : c("", !0),
|
|
597
|
-
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (
|
|
598
|
-
(
|
|
599
|
-
id: `curve_${
|
|
600
|
-
d: `M ${i.value.x1},${i.value.y1} m -${
|
|
617
|
+
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (s(), r(S, { key: 4 }, [
|
|
618
|
+
(s(!0), r(S, null, z(f.value, (a, l) => (s(), r("path", {
|
|
619
|
+
id: `curve_${x.value}_${l}`,
|
|
620
|
+
d: `M ${i.value.x1},${i.value.y1} m -${I.value[l]},0 a ${I.value[l]},${I.value[l]} 0 1,1 ${2 * I.value[l]},0 a ${I.value[l]},${I.value[l]} 0 1,1 -${2 * I.value[l]},0`,
|
|
601
621
|
fill: "transparent"
|
|
602
622
|
}, null, 8, Dt))), 256)),
|
|
603
|
-
(
|
|
623
|
+
(s(!0), r(S, null, z(f.value, (a, l) => (s(), r("text", {
|
|
604
624
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
605
|
-
"font-size":
|
|
625
|
+
"font-size": B.value,
|
|
606
626
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
607
627
|
"text-anchor": "middle"
|
|
608
628
|
}, [
|
|
609
|
-
|
|
610
|
-
href: `#curve_${
|
|
629
|
+
k("textPath", {
|
|
630
|
+
href: `#curve_${x.value}_${l}`,
|
|
611
631
|
startOffset: je.value[l]
|
|
612
|
-
},
|
|
632
|
+
}, T(a.name || ""), 9, Ht)
|
|
613
633
|
], 8, Vt))), 256))
|
|
614
634
|
], 64)) : c("", !0),
|
|
615
|
-
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (
|
|
635
|
+
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (s(!0), r(S, { key: 5 }, z(Be.value, (a, l) => (s(), r("text", {
|
|
616
636
|
class: "vue-ui-gauge-label-flat",
|
|
617
|
-
"text-anchor":
|
|
637
|
+
"text-anchor": u(mt)(a, !1, 12).anchor,
|
|
618
638
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
619
|
-
"font-size":
|
|
639
|
+
"font-size": B.value,
|
|
620
640
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
621
|
-
innerHTML:
|
|
641
|
+
innerHTML: u(gt)({
|
|
622
642
|
content: String(a.name ?? ""),
|
|
623
|
-
fontSize:
|
|
643
|
+
fontSize: B.value,
|
|
624
644
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
625
645
|
x: a.center.endX,
|
|
626
646
|
y: a.center.endY
|
|
627
647
|
})
|
|
628
648
|
}, null, 8, qt))), 256)) : c("", !0),
|
|
629
|
-
e.value.style.chart.layout.track.useGradient ? (
|
|
649
|
+
e.value.style.chart.layout.track.useGradient ? (s(!0), r(S, { key: 6 }, z(We.value, (a, l) => (s(), r("path", {
|
|
630
650
|
key: `arc_${l}`,
|
|
631
651
|
d: a.arcSlice,
|
|
632
652
|
fill: "#FFFFFF",
|
|
633
653
|
stroke: "none",
|
|
634
654
|
"stroke-linecap": "round",
|
|
635
|
-
filter: `url(#blur_${
|
|
655
|
+
filter: `url(#blur_${x.value})`
|
|
636
656
|
}, null, 8, Zt))), 128)) : c("", !0),
|
|
637
|
-
e.value.style.chart.layout.segmentSeparators.show ? (
|
|
638
|
-
|
|
657
|
+
e.value.style.chart.layout.segmentSeparators.show ? (s(), r(S, { key: 7 }, [
|
|
658
|
+
k("line", L(_e.value, {
|
|
639
659
|
stroke: e.value.style.chart.backgroundColor,
|
|
640
660
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
641
661
|
"stroke-linecap": "round"
|
|
642
662
|
}), null, 16, Jt),
|
|
643
|
-
|
|
663
|
+
k("line", L(_e.value, {
|
|
644
664
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
645
665
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
646
666
|
"stroke-linecap": "round"
|
|
647
667
|
}), null, 16, Kt),
|
|
648
|
-
(
|
|
668
|
+
(s(!0), r(S, null, z(we.value, (a) => (s(), r("line", L({ ref_for: !0 }, a, {
|
|
649
669
|
stroke: e.value.style.chart.backgroundColor,
|
|
650
670
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
651
671
|
"stroke-linecap": "round"
|
|
652
672
|
}), null, 16, Qt))), 256)),
|
|
653
|
-
(
|
|
673
|
+
(s(!0), r(S, null, z(we.value, (a) => (s(), r("line", L({ ref_for: !0 }, a, {
|
|
654
674
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
655
675
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
656
676
|
"stroke-linecap": "round"
|
|
657
677
|
}), null, 16, ea))), 256))
|
|
658
678
|
], 64)) : c("", !0),
|
|
659
|
-
e.value.style.chart.layout.markers.show ? (
|
|
660
|
-
(
|
|
661
|
-
x:
|
|
679
|
+
e.value.style.chart.layout.markers.show ? (s(), r("g", ta, [
|
|
680
|
+
(s(!0), r(S, null, z(f.value, (a, l) => (s(), r("text", {
|
|
681
|
+
x: u(M)({
|
|
662
682
|
centerX: i.value.x1,
|
|
663
683
|
centerY: v.value.base,
|
|
664
684
|
initX: a.center.startX,
|
|
665
685
|
initY: a.center.startY,
|
|
666
|
-
offset:
|
|
686
|
+
offset: o.value.markerOffset
|
|
667
687
|
}).x,
|
|
668
|
-
y:
|
|
688
|
+
y: u(M)({
|
|
669
689
|
centerX: i.value.x1,
|
|
670
690
|
centerY: v.value.base,
|
|
671
691
|
initX: a.center.startX,
|
|
672
692
|
initY: a.center.startY,
|
|
673
|
-
offset:
|
|
693
|
+
offset: o.value.markerOffset
|
|
674
694
|
}).y,
|
|
675
695
|
"text-anchor": a.center.startX < i.value.x1 - 5 ? "end" : a.center.startX > i.value.x1 + 5 ? "start" : "middle",
|
|
676
|
-
"font-size":
|
|
696
|
+
"font-size": o.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
677
697
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
678
698
|
fill: e.value.style.chart.layout.markers.color
|
|
679
|
-
},
|
|
699
|
+
}, T(u(le)(
|
|
680
700
|
e.value.style.chart.layout.markers.formatter,
|
|
681
701
|
a.from,
|
|
682
|
-
|
|
702
|
+
u(oe)({
|
|
683
703
|
p: e.value.style.chart.layout.markers.prefix,
|
|
684
704
|
v: a.from,
|
|
685
705
|
s: e.value.style.chart.layout.markers.suffix,
|
|
@@ -687,49 +707,49 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
687
707
|
})
|
|
688
708
|
)), 9, aa))), 256))
|
|
689
709
|
])) : c("", !0),
|
|
690
|
-
e.value.style.chart.layout.markers.show ? (
|
|
710
|
+
e.value.style.chart.layout.markers.show ? (s(), r("text", {
|
|
691
711
|
key: 9,
|
|
692
|
-
x:
|
|
693
|
-
centerX:
|
|
712
|
+
x: u(M)({
|
|
713
|
+
centerX: o.value.width / 2,
|
|
694
714
|
centerY: v.value.base,
|
|
695
|
-
initX:
|
|
696
|
-
initY:
|
|
697
|
-
offset:
|
|
715
|
+
initX: f.value.at(-1).endX,
|
|
716
|
+
initY: f.value.at(-1).endY,
|
|
717
|
+
offset: o.value.markerOffset
|
|
698
718
|
}).x,
|
|
699
|
-
y:
|
|
700
|
-
centerX:
|
|
719
|
+
y: u(M)({
|
|
720
|
+
centerX: o.value.width / 2,
|
|
701
721
|
centerY: v.value.base,
|
|
702
|
-
initX:
|
|
703
|
-
initY:
|
|
704
|
-
offset:
|
|
722
|
+
initX: f.value.at(-1).endX,
|
|
723
|
+
initY: f.value.at(-1).endY,
|
|
724
|
+
offset: o.value.markerOffset
|
|
705
725
|
}).y,
|
|
706
726
|
"text-anchor": "start",
|
|
707
|
-
"font-size":
|
|
727
|
+
"font-size": o.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
708
728
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
709
729
|
fill: e.value.style.chart.layout.markers.color
|
|
710
|
-
},
|
|
730
|
+
}, T(u(le)(
|
|
711
731
|
e.value.style.chart.layout.markers.formatter,
|
|
712
|
-
|
|
713
|
-
|
|
732
|
+
R.value,
|
|
733
|
+
u(oe)({
|
|
714
734
|
p: e.value.style.chart.layout.markers.prefix,
|
|
715
|
-
v:
|
|
735
|
+
v: R.value,
|
|
716
736
|
s: e.value.style.chart.layout.markers.suffix,
|
|
717
737
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
718
738
|
})
|
|
719
739
|
)), 9, la)) : c("", !0),
|
|
720
|
-
e.value.style.chart.layout.pointer.show ? (
|
|
721
|
-
e.value.style.chart.layout.pointer.type === "rounded" ? (
|
|
722
|
-
isNaN(i.value.x2) ? c("", !0) : (
|
|
740
|
+
e.value.style.chart.layout.pointer.show ? (s(), r(S, { key: 10 }, [
|
|
741
|
+
e.value.style.chart.layout.pointer.type === "rounded" ? (s(), r("g", oa, [
|
|
742
|
+
isNaN(i.value.x2) ? c("", !0) : (s(), r("line", {
|
|
723
743
|
key: 0,
|
|
724
744
|
x1: i.value.x1,
|
|
725
745
|
y1: i.value.y1,
|
|
726
746
|
x2: i.value.x2,
|
|
727
747
|
y2: i.value.y2,
|
|
728
748
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
729
|
-
"stroke-width":
|
|
749
|
+
"stroke-width": o.value.pointerStrokeWidth,
|
|
730
750
|
"stroke-linecap": "round"
|
|
731
|
-
}, null, 8,
|
|
732
|
-
isNaN(i.value.x2) ? c("", !0) : (
|
|
751
|
+
}, null, 8, sa)),
|
|
752
|
+
isNaN(i.value.x2) ? c("", !0) : (s(), r("line", {
|
|
733
753
|
key: 1,
|
|
734
754
|
x1: i.value.x1,
|
|
735
755
|
y1: i.value.y1,
|
|
@@ -737,9 +757,9 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
737
757
|
y2: i.value.y2,
|
|
738
758
|
stroke: e.value.style.chart.layout.pointer.useRatingColor ? q.value : e.value.style.chart.layout.pointer.color,
|
|
739
759
|
"stroke-linecap": "round",
|
|
740
|
-
"stroke-width":
|
|
760
|
+
"stroke-width": o.value.pointerStrokeWidth * 0.7
|
|
741
761
|
}, null, 8, ra)),
|
|
742
|
-
!isNaN(i.value.x2) && e.value.style.chart.layout.track.useGradient ? (
|
|
762
|
+
!isNaN(i.value.x2) && e.value.style.chart.layout.track.useGradient ? (s(), r("line", {
|
|
743
763
|
key: 2,
|
|
744
764
|
x1: i.value.x1,
|
|
745
765
|
y1: i.value.y1,
|
|
@@ -747,11 +767,11 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
747
767
|
y2: i.value.y2,
|
|
748
768
|
stroke: "white",
|
|
749
769
|
"stroke-linecap": "round",
|
|
750
|
-
"stroke-width":
|
|
751
|
-
filter: `url(#blur_${
|
|
752
|
-
}, null, 8,
|
|
753
|
-
])) : (
|
|
754
|
-
ke.value ? (
|
|
770
|
+
"stroke-width": o.value.pointerStrokeWidth * 0.3,
|
|
771
|
+
filter: `url(#blur_${x.value})`
|
|
772
|
+
}, null, 8, na)) : c("", !0)
|
|
773
|
+
])) : (s(), r("g", ua, [
|
|
774
|
+
ke.value ? (s(), r("path", {
|
|
755
775
|
key: 0,
|
|
756
776
|
d: ke.value,
|
|
757
777
|
fill: e.value.style.chart.layout.pointer.useRatingColor ? q.value : e.value.style.chart.layout.pointer.color,
|
|
@@ -760,56 +780,56 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
760
780
|
"stroke-linejoin": "round"
|
|
761
781
|
}, null, 8, ia)) : c("", !0)
|
|
762
782
|
])),
|
|
763
|
-
|
|
764
|
-
cx:
|
|
783
|
+
k("circle", {
|
|
784
|
+
cx: o.value.width / 2,
|
|
765
785
|
cy: v.value.base,
|
|
766
786
|
fill: e.value.style.chart.layout.pointer.circle.color,
|
|
767
|
-
r:
|
|
787
|
+
r: o.value.pointerRadius <= 0 ? 1e-4 : o.value.pointerRadius,
|
|
768
788
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
769
789
|
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
770
790
|
}, null, 8, ca)
|
|
771
791
|
], 64)) : c("", !0),
|
|
772
|
-
e.value.style.chart.legend.show ? (
|
|
792
|
+
e.value.style.chart.legend.show ? (s(), r("text", {
|
|
773
793
|
key: 11,
|
|
774
|
-
x:
|
|
794
|
+
x: o.value.width / 2,
|
|
775
795
|
y: v.value.ratingBase,
|
|
776
796
|
"text-anchor": "middle",
|
|
777
|
-
"font-size":
|
|
797
|
+
"font-size": o.value.legendFontSize,
|
|
778
798
|
"font-weight": "bold",
|
|
779
799
|
fill: e.value.style.chart.legend.useRatingColor ? q.value : e.value.style.chart.legend.color
|
|
780
|
-
},
|
|
800
|
+
}, T(u(le)(
|
|
781
801
|
e.value.style.chart.legend.formatter,
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol &&
|
|
785
|
-
v:
|
|
802
|
+
g.value,
|
|
803
|
+
u(oe)({
|
|
804
|
+
p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && g.value > 0 ? "+" : ""),
|
|
805
|
+
v: g.value,
|
|
786
806
|
s: e.value.style.chart.legend.suffix,
|
|
787
807
|
r: e.value.style.chart.legend.roundingValue
|
|
788
808
|
})
|
|
789
809
|
)), 9, va)) : c("", !0),
|
|
790
|
-
|
|
810
|
+
h(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
791
811
|
], 14, It)),
|
|
792
|
-
t.$slots.watermark ? (
|
|
793
|
-
|
|
812
|
+
t.$slots.watermark ? (s(), r("div", da, [
|
|
813
|
+
h(t.$slots, "watermark", C(F({ isPrinting: u(ye) || u(ge) })), void 0, !0)
|
|
794
814
|
])) : c("", !0),
|
|
795
|
-
|
|
815
|
+
k("div", {
|
|
796
816
|
ref_key: "chartLegend",
|
|
797
|
-
ref:
|
|
817
|
+
ref: ue
|
|
798
818
|
}, [
|
|
799
|
-
|
|
819
|
+
h(t.$slots, "legend", { legend: P.value }, void 0, !0)
|
|
800
820
|
], 512),
|
|
801
|
-
t.$slots.source ? (
|
|
821
|
+
t.$slots.source ? (s(), r("div", {
|
|
802
822
|
key: 5,
|
|
803
823
|
ref_key: "source",
|
|
804
824
|
ref: ie,
|
|
805
825
|
dir: "auto"
|
|
806
826
|
}, [
|
|
807
|
-
|
|
827
|
+
h(t.$slots, "source", {}, void 0, !0)
|
|
808
828
|
], 512)) : c("", !0),
|
|
809
|
-
|
|
829
|
+
u(de) ? (s(), W(St, { key: 6 })) : c("", !0)
|
|
810
830
|
], 46, Nt));
|
|
811
831
|
}
|
|
812
|
-
}, Fa = /* @__PURE__ */ Mt(
|
|
832
|
+
}, Fa = /* @__PURE__ */ Mt(ha, [["__scopeId", "data-v-90ebd1c4"]]);
|
|
813
833
|
export {
|
|
814
834
|
Fa as default
|
|
815
835
|
};
|