vue-data-ui 2.4.46 → 2.4.47
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-CfjJrWHe.js → Arrow-C-PQX3ZC.js} +1 -1
- package/dist/{Arrow-iQXl1f2j.cjs → Arrow-C3u-U00V.cjs} +1 -1
- package/dist/{BaseIcon-Cy5dUKeV.cjs → BaseIcon-8y_okNW6.cjs} +1 -1
- package/dist/{BaseIcon-BA9HUUaA.js → BaseIcon-BeAMtwQX.js} +1 -1
- package/dist/{DataTable-Cj3bRKxc.cjs → DataTable-CfxOc-In.cjs} +1 -1
- package/dist/{DataTable-CoZ6Xn0I.js → DataTable-D7JlgAbC.js} +2 -2
- package/dist/{Legend-DJlRifH8.js → Legend-CEhIHRJc.js} +1 -1
- package/dist/{Legend-CEDlovx8.cjs → Legend-DDuxh17p.cjs} +1 -1
- package/dist/{PackageVersion-TpOTCEFd.js → PackageVersion-8Ql1gdmo.js} +1 -1
- package/dist/{PackageVersion-DL3c2r_c.cjs → PackageVersion-Df1iPzMk.cjs} +1 -1
- package/dist/{PenAndPaper-DgVnjC40.cjs → PenAndPaper-CvGft3ku.cjs} +1 -1
- package/dist/{PenAndPaper-cjAU-PUf.js → PenAndPaper-b1ZmLra1.js} +3 -3
- package/dist/{Shape--6BralbW.js → Shape-CvBLjLSE.js} +1 -1
- package/dist/{Shape-DYtj-lqw.cjs → Shape-D3F3Ki5y.cjs} +1 -1
- package/dist/{Slicer-dbxY46t5.cjs → Slicer-CHKuuOOo.cjs} +1 -1
- package/dist/{Slicer-6DPtWIL0.js → Slicer-CRXNOGCh.js} +2 -2
- package/dist/{Title-a1zU7S4D.cjs → Title-URF9hufV.cjs} +1 -1
- package/dist/{Title-BavNfnuK.js → Title-_dfoh5WC.js} +1 -1
- package/dist/{Tooltip-BBmtXJ3a.cjs → Tooltip-87gbw8Ir.cjs} +1 -1
- package/dist/{Tooltip-CK5rPyXN.js → Tooltip-CAkj2Rmy.js} +1 -1
- package/dist/{index-D6Fux0KL.js → index-BUHajhqq.js} +41 -26
- package/dist/index-KYU_8xrX.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +7 -0
- package/dist/types/vue-data-ui.d.ts +7 -0
- package/dist/{useNestedProp-DqEFKuPz.cjs → useNestedProp-C-g0SLHN.cjs} +1 -1
- package/dist/{useNestedProp-CcZBkd4B.js → useNestedProp-a0uhe7rJ.js} +1 -1
- package/dist/{usePrinter-1s8-9A7g.cjs → usePrinter-4Zj_RZ5v.cjs} +1 -1
- package/dist/{usePrinter-BfVNshkJ.js → usePrinter-DLHRtlhI.js} +1 -1
- package/dist/{vue-data-ui-nyvnXOBP.cjs → vue-data-ui-CPc7dZQe.cjs} +1 -1
- package/dist/{vue-data-ui-BZHviOU-.js → vue-data-ui-zjfs-rk-.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BAYRAgaW.js → vue-ui-3d-bar-B60j7yco.js} +9 -9
- package/dist/{vue-ui-3d-bar-Amvwu6fD.cjs → vue-ui-3d-bar-zI1BF0gA.cjs} +1 -1
- package/dist/{vue-ui-accordion-CyCBwLDa.js → vue-ui-accordion-2QOotHrr.js} +3 -3
- package/dist/{vue-ui-accordion-CNQ8JBuy.cjs → vue-ui-accordion-C0oMKEv0.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BWg8L30G.js → vue-ui-age-pyramid-BT7HUZpj.js} +10 -10
- package/dist/{vue-ui-age-pyramid-Dx-k5K7o.cjs → vue-ui-age-pyramid-hZLKWqN9.cjs} +1 -1
- package/dist/{vue-ui-annotator-Bj3j-VvQ.cjs → vue-ui-annotator-Da8-IgfK.cjs} +1 -1
- package/dist/{vue-ui-annotator-Drlh2nsy.js → vue-ui-annotator-ZpGqgGMp.js} +1 -1
- package/dist/{vue-ui-bullet-KJKcyE57.cjs → vue-ui-bullet-BfkujrD0.cjs} +1 -1
- package/dist/{vue-ui-bullet-CskzW_No.js → vue-ui-bullet-Da56_P30.js} +8 -8
- package/dist/{vue-ui-candlestick-9ARbLuQr.js → vue-ui-candlestick-CblCXKhS.js} +11 -11
- package/dist/{vue-ui-candlestick-Bcem-LL5.cjs → vue-ui-candlestick-fM3nUsgr.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BgabRnN7.js → vue-ui-carousel-table-B1U41lku.js} +4 -4
- package/dist/{vue-ui-carousel-table-CCzXqrOD.cjs → vue-ui-carousel-table-D3rcSdcC.cjs} +1 -1
- package/dist/{vue-ui-chestnut-B7q0vmXj.js → vue-ui-chestnut-Cnvf2Aav.js} +8 -8
- package/dist/{vue-ui-chestnut-BEKG7vJs.cjs → vue-ui-chestnut-CtMm9Hev.cjs} +1 -1
- package/dist/{vue-ui-cursor-gRV29a6z.cjs → vue-ui-cursor-C-7zi0ol.cjs} +1 -1
- package/dist/{vue-ui-cursor-BW6KFYih.js → vue-ui-cursor-TzS0sCy1.js} +2 -2
- package/dist/{vue-ui-dashboard-B1GgQpTW.js → vue-ui-dashboard-Ajvddjlt.js} +2 -2
- package/dist/{vue-ui-dashboard-BU3gco0W.cjs → vue-ui-dashboard-DdMkGnE7.cjs} +1 -1
- package/dist/{vue-ui-digits-pTJfyk6w.js → vue-ui-digits-CBPttkF2.js} +2 -2
- package/dist/{vue-ui-digits-B-de-AoF.cjs → vue-ui-digits-DwB-tHKl.cjs} +1 -1
- package/dist/{vue-ui-donut-CV4QfMM6.cjs → vue-ui-donut-Cz6xpVSC.cjs} +1 -1
- package/dist/{vue-ui-donut-3zJvxMAI.js → vue-ui-donut-DidXxdXO.js} +11 -11
- package/dist/{vue-ui-donut-evolution-DwWDUev5.js → vue-ui-donut-evolution-B0xdulgT.js} +11 -11
- package/dist/{vue-ui-donut-evolution-CHmMquL3.cjs → vue-ui-donut-evolution-Dj73srrD.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CwKisd1V.cjs → vue-ui-dumbbell-BdwXaRk2.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BupMAioY.js → vue-ui-dumbbell-Cimude8K.js} +10 -10
- package/dist/{vue-ui-flow-Gio5LZfS.js → vue-ui-flow-D2ekJwov.js} +9 -9
- package/dist/{vue-ui-flow-DjaSPlMc.cjs → vue-ui-flow-DMNNOEJy.cjs} +1 -1
- package/dist/{vue-ui-funnel-B20LEzYC.js → vue-ui-funnel-BsKFz_A9.js} +8 -8
- package/dist/{vue-ui-funnel-CqcM5pkO.cjs → vue-ui-funnel-DLmzVrrA.cjs} +1 -1
- package/dist/{vue-ui-galaxy-B6LzA_6c.cjs → vue-ui-galaxy-CnZYKQA2.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BlqZ7ul1.js → vue-ui-galaxy-WAy90dGq.js} +11 -11
- package/dist/vue-ui-gauge-DhqOgkfq.cjs +1 -0
- package/dist/vue-ui-gauge-Xvk_SGCc.js +662 -0
- package/dist/{vue-ui-gizmo-CLNN3Udr.cjs → vue-ui-gizmo-B6qoNeBK.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CsyW__L-.js → vue-ui-gizmo-D-djUfJw.js} +3 -3
- package/dist/{vue-ui-heatmap-DLJKnqc8.cjs → vue-ui-heatmap-CitZU9av.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DlyP8IiX.js → vue-ui-heatmap-jmKDOYnr.js} +10 -10
- package/dist/{vue-ui-history-plot-BcxMCSa5.js → vue-ui-history-plot-BoR791Gc.js} +11 -11
- package/dist/{vue-ui-history-plot-DGFH-CY8.cjs → vue-ui-history-plot-EzFdtBwU.cjs} +1 -1
- package/dist/{vue-ui-kpi-BL3vZgx7.js → vue-ui-kpi-CB47PO72.js} +3 -3
- package/dist/{vue-ui-kpi-pnZp2CvF.cjs → vue-ui-kpi-CMXhw4Ll.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BwmbFCFV.js → vue-ui-mini-loader-D4dKItUb.js} +2 -2
- package/dist/{vue-ui-mini-loader-BNKPERuk.cjs → vue-ui-mini-loader-DJx2b1Hs.cjs} +1 -1
- package/dist/{vue-ui-molecule-BbpCIJe5.js → vue-ui-molecule-C_VM1ZP2.js} +11 -11
- package/dist/{vue-ui-molecule-CZ6KhD_5.cjs → vue-ui-molecule-CnERhdxF.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-9ShpSF_Q.cjs → vue-ui-mood-radar-BBlokNSE.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DQ-UPdoZ.js → vue-ui-mood-radar-BESMMSxA.js} +11 -11
- package/dist/{vue-ui-nested-donuts-4-Y7Vn9p.cjs → vue-ui-nested-donuts-C0IAo5oO.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-B0RhrWpS.js → vue-ui-nested-donuts-r1v-A7E3.js} +11 -11
- package/dist/{vue-ui-onion-kMrmbJZm.js → vue-ui-onion-CZuFxIOX.js} +11 -11
- package/dist/{vue-ui-onion-DzLCbEcB.cjs → vue-ui-onion-PaHP7qHI.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CdWo856d.js → vue-ui-parallel-coordinate-plot-BeAArg3p.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-BGfy-8GQ.cjs → vue-ui-parallel-coordinate-plot-Bwu4Q1dB.cjs} +1 -1
- package/dist/{vue-ui-quadrant-D8HGb-Gb.cjs → vue-ui-quadrant-BLpgNZs9.cjs} +1 -1
- package/dist/{vue-ui-quadrant-D3OhIIfq.js → vue-ui-quadrant-D5m9y_Vd.js} +12 -12
- package/dist/{vue-ui-quick-chart-BqJpkpjf.cjs → vue-ui-quick-chart-CZ6gBVVk.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BWwbRuD2.js → vue-ui-quick-chart-Ci4RKL62.js} +9 -9
- package/dist/{vue-ui-radar-BsAiDMi7.js → vue-ui-radar-03mjX9gn.js} +12 -12
- package/dist/{vue-ui-radar-Ds66K46C.cjs → vue-ui-radar-Ca1AvJAF.cjs} +1 -1
- package/dist/{vue-ui-rating-CcyKPjmP.js → vue-ui-rating-CSSdVGTk.js} +2 -2
- package/dist/{vue-ui-rating-ClQjIZ78.cjs → vue-ui-rating-Dilq1rrJ.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-eOtVdQOL.js → vue-ui-relation-circle-B3J9KW9u.js} +7 -7
- package/dist/{vue-ui-relation-circle-DI24q9Zq.cjs → vue-ui-relation-circle-DsckG4af.cjs} +1 -1
- package/dist/{vue-ui-rings-GJ-RllpC.cjs → vue-ui-rings-6g022zEh.cjs} +1 -1
- package/dist/{vue-ui-rings-9f1E8ktr.js → vue-ui-rings-COAgson6.js} +11 -11
- package/dist/{vue-ui-scatter-B7Tm9kTK.cjs → vue-ui-scatter-B3t_Q_4g.cjs} +1 -1
- package/dist/{vue-ui-scatter-DjOO4sai.js → vue-ui-scatter-BrdWaLV6.js} +12 -12
- package/dist/{vue-ui-screenshot-k2mC030r.js → vue-ui-screenshot-CWMAfSH3.js} +1 -1
- package/dist/{vue-ui-screenshot-DQd-yU3g.cjs → vue-ui-screenshot-NpTxyR66.cjs} +1 -1
- package/dist/{vue-ui-skeleton-wHDgl1XV.js → vue-ui-skeleton-BXPvqUO_.js} +3 -3
- package/dist/{vue-ui-skeleton-DYKuE1ZW.cjs → vue-ui-skeleton-D6mdHYxB.cjs} +1 -1
- package/dist/{vue-ui-smiley-Cds8LoUR.cjs → vue-ui-smiley-BIAA0JuB.cjs} +1 -1
- package/dist/{vue-ui-smiley-C02LWJwt.js → vue-ui-smiley-TNgEIMFs.js} +2 -2
- package/dist/{vue-ui-spark-trend-5uxFq2pM.cjs → vue-ui-spark-trend-BWb59zfs.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-D0shfbAA.js → vue-ui-spark-trend-Xtb0H-Ra.js} +5 -5
- package/dist/{vue-ui-sparkbar-DmPdCxF5.js → vue-ui-sparkbar-CO0RYq4S.js} +4 -4
- package/dist/{vue-ui-sparkbar-CGH0sUyT.cjs → vue-ui-sparkbar-mgvNuWjK.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BfyVKfCr.cjs → vue-ui-sparkgauge-CfgH_pIo.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CqJz8p6J.js → vue-ui-sparkgauge-Cn17RyPJ.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B-PxzLAe.cjs → vue-ui-sparkhistogram-BU1jgcm9.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-vJBW3am7.js → vue-ui-sparkhistogram-yTF-QJCM.js} +5 -5
- package/dist/{vue-ui-sparkline-D_RzcAKQ.cjs → vue-ui-sparkline-3ym-6DFE.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BoHbGcLX.js → vue-ui-sparkline-D80w9cUt.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DOqRrV5Q.cjs → vue-ui-sparkstackbar-C1zVZqZh.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-C6lyJ3Yf.js → vue-ui-sparkstackbar-DhQNOgjS.js} +5 -5
- package/dist/{vue-ui-stackbar-Drzs1Eyl.js → vue-ui-stackbar-C_b754Op.js} +12 -12
- package/dist/{vue-ui-stackbar-aGhn0Cot.cjs → vue-ui-stackbar-yiVhLavI.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-VyISwa5R.cjs → vue-ui-strip-plot-CK-U0tNX.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-D1OnXpSS.js → vue-ui-strip-plot-CqP7E3Fr.js} +11 -11
- package/dist/{vue-ui-table-H2AWSu1t.js → vue-ui-table-BLPLqFFd.js} +1 -1
- package/dist/{vue-ui-table-heatmap-wvpaD4ir.cjs → vue-ui-table-heatmap-2Qm41w8P.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-D2Yub14q.js → vue-ui-table-heatmap-jWG59f0S.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DUTGELZ3.js → vue-ui-table-sparkline-BEeO-aWa.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Doj1Qy-g.cjs → vue-ui-table-sparkline-C0vzS1F3.cjs} +1 -1
- package/dist/{vue-ui-table-DLPofj0y.cjs → vue-ui-table-x2Ylaftx.cjs} +1 -1
- package/dist/{vue-ui-thermometer-yoXfkNqw.js → vue-ui-thermometer-CS4v4vKk.js} +7 -7
- package/dist/{vue-ui-thermometer-B-0y1mlR.cjs → vue-ui-thermometer-DVPaZfi5.cjs} +1 -1
- package/dist/{vue-ui-timer-BmdGu2OH.cjs → vue-ui-timer-Bu17pe7S.cjs} +1 -1
- package/dist/{vue-ui-timer-CrmRh82y.js → vue-ui-timer-op_p9xjL.js} +5 -5
- package/dist/{vue-ui-tiremarks-BTKsqFx9.cjs → vue-ui-tiremarks-CoKFLMWh.cjs} +1 -1
- package/dist/{vue-ui-tiremarks--dQqSUAB.js → vue-ui-tiremarks-CzNBUmn2.js} +7 -7
- package/dist/{vue-ui-treemap-xf0R6iJv.js → vue-ui-treemap-DLDn1gQ2.js} +11 -11
- package/dist/{vue-ui-treemap-CoHv7WB0.cjs → vue-ui-treemap-DXU0BagE.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DkEKT7jg.cjs → vue-ui-vertical-bar-BlG3HwaX.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CgyxeziQ.js → vue-ui-vertical-bar-BqTIL5Np.js} +11 -11
- package/dist/{vue-ui-waffle-CkwF305q.cjs → vue-ui-waffle-CaTFfTmj.cjs} +1 -1
- package/dist/{vue-ui-waffle-BsWXzCto.js → vue-ui-waffle-DFjArEi_.js} +11 -11
- package/dist/{vue-ui-wheel-OyKC9U09.cjs → vue-ui-wheel-B22xmLY4.cjs} +1 -1
- package/dist/{vue-ui-wheel-BDG6vuLJ.js → vue-ui-wheel-C95mjUTI.js} +7 -7
- package/dist/{vue-ui-word-cloud-NJ7fgwoa.cjs → vue-ui-word-cloud-05iWIjGT.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-D-bzY5ks.js → vue-ui-word-cloud-Byx-M5Jn.js} +10 -10
- package/dist/{vue-ui-xy-BRVzv2LA.js → vue-ui-xy-C8YrIKK6.js} +14 -14
- package/dist/{vue-ui-xy-canvas-CvLYBiAC.js → vue-ui-xy-canvas-Cg0PIT5i.js} +11 -11
- package/dist/{vue-ui-xy-canvas-CH-U7nNa.cjs → vue-ui-xy-canvas-os8jbTXb.cjs} +1 -1
- package/dist/{vue-ui-xy-ClUJG6UI.cjs → vue-ui-xy-lPnzrWt8.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-DQqE9z_u.cjs +0 -9
- package/dist/vue-ui-gauge-C5OATvE7.cjs +0 -1
- package/dist/vue-ui-gauge-C6-5yI2V.js +0 -610
|
@@ -1,610 +0,0 @@
|
|
|
1
|
-
import { computed as y, ref as d, watch as ie, onMounted as Pe, onBeforeUnmount as Ne, openBlock as r, createElementBlock as u, normalizeClass as ce, normalizeStyle as ve, createBlock as R, createCommentVNode as v, withCtx as O, toDisplayString as z, unref as i, createSlots as Oe, renderSlot as x, normalizeProps as L, guardReactiveProps as D, createVNode as Ie, createElementVNode as g, Fragment as $, renderList as F } from "vue";
|
|
2
|
-
import { u as Xe, c as Ae, t as Re, a as Ye, p as he, b as Ge, o as de, d as Ee, e as Y, g as fe, m as U, X as Te, s as B, k as je, I as G, i as W, f as V, F as q } from "./index-D6Fux0KL.js";
|
|
3
|
-
import { t as Le, u as De } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { u as Ue, U as Be } from "./usePrinter-BfVNshkJ.js";
|
|
5
|
-
import We from "./vue-ui-skeleton-wHDgl1XV.js";
|
|
6
|
-
import { _ as Ve } from "./Title-BavNfnuK.js";
|
|
7
|
-
import { u as ye } from "./useNestedProp-CcZBkd4B.js";
|
|
8
|
-
import { _ as qe } from "./PackageVersion-TpOTCEFd.js";
|
|
9
|
-
import { P as He } from "./PenAndPaper-cjAU-PUf.js";
|
|
10
|
-
import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const Je = ["id"], Ke = { key: 0 }, Qe = ["xmlns", "viewBox"], et = ["id"], tt = ["stop-color"], at = ["stop-color"], lt = ["stop-color"], ot = ["id"], st = ["stdDeviation"], rt = ["d", "fill", "stroke"], ut = ["id", "d"], nt = ["fill", "font-size", "font-weight"], it = ["href", "startOffset"], ct = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], vt = ["d", "filter"], ht = { key: 3 }, dt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], ft = ["x", "y", "font-size", "font-weight", "fill"], yt = { key: 5 }, mt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], gt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], pt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], kt = { key: 6 }, bt = ["d", "fill", "stroke", "stroke-width"], _t = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], xt = ["x", "y", "font-size", "fill"], wt = {
|
|
12
|
-
key: 5,
|
|
13
|
-
class: "vue-data-ui-watermark"
|
|
14
|
-
}, St = {
|
|
15
|
-
__name: "vue-ui-gauge",
|
|
16
|
-
props: {
|
|
17
|
-
config: {
|
|
18
|
-
type: Object,
|
|
19
|
-
default() {
|
|
20
|
-
return {};
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
dataset: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default() {
|
|
26
|
-
return {};
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
setup(E, { expose: me }) {
|
|
31
|
-
const c = E, { vue_ui_gauge: ge } = Xe(), I = y(() => !!c.dataset && Object.keys(c.dataset).length > 0 && c.dataset.series && c.dataset.series.length), b = d(Ae()), pe = d(null), H = d(0), C = d(null), Z = d(null), J = d(null), K = d(null), Q = d(null), ee = d(0), e = y({
|
|
32
|
-
get: () => te(),
|
|
33
|
-
set: (t) => t
|
|
34
|
-
});
|
|
35
|
-
ie(() => c.config, (t) => {
|
|
36
|
-
e.value = te(), ue(), ee.value += 1;
|
|
37
|
-
}, { deep: !0 });
|
|
38
|
-
function te() {
|
|
39
|
-
const t = ye({
|
|
40
|
-
userConfig: c.config,
|
|
41
|
-
defaultConfig: ge
|
|
42
|
-
});
|
|
43
|
-
return t.theme ? {
|
|
44
|
-
...ye({
|
|
45
|
-
userConfig: Re.vue_ui_gauge[t.theme] || c.config,
|
|
46
|
-
defaultConfig: t
|
|
47
|
-
}),
|
|
48
|
-
customPalette: Ye[t.theme] || he
|
|
49
|
-
} : t;
|
|
50
|
-
}
|
|
51
|
-
const { isPrinting: ae, isImaging: le, generatePdf: oe, generateImage: se } = Ue({
|
|
52
|
-
elementId: `vue-ui-gauge_${b.value}`,
|
|
53
|
-
fileName: e.value.style.chart.title.text || "vue-ui-gauge"
|
|
54
|
-
}), ke = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), be = y(() => Ge(e.value.customPalette)), w = y(() => {
|
|
55
|
-
if (!I.value || de(c.dataset.series || {}))
|
|
56
|
-
return {
|
|
57
|
-
value: 0,
|
|
58
|
-
series: [
|
|
59
|
-
{
|
|
60
|
-
from: 0,
|
|
61
|
-
to: 0
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
};
|
|
65
|
-
const t = [];
|
|
66
|
-
(c.dataset.series || []).forEach((a) => {
|
|
67
|
-
t.push(a.from || 1e-7), t.push(a.to || 1e-7);
|
|
68
|
-
});
|
|
69
|
-
const s = Math.max(...t);
|
|
70
|
-
return {
|
|
71
|
-
...c.dataset,
|
|
72
|
-
series: (c.dataset.series || []).map((a, o) => ({
|
|
73
|
-
...a,
|
|
74
|
-
color: Ee(a.color) || be.value[o] || he[o],
|
|
75
|
-
value: ((a.to || 0) - (a.from || 0)) / s * 100
|
|
76
|
-
}))
|
|
77
|
-
};
|
|
78
|
-
}), m = d(512), l = d({
|
|
79
|
-
height: 358.4,
|
|
80
|
-
width: m.value,
|
|
81
|
-
top: 0,
|
|
82
|
-
bottom: 358.4,
|
|
83
|
-
centerX: 179.2,
|
|
84
|
-
centerY: m.value / 2,
|
|
85
|
-
labelFontSize: 18,
|
|
86
|
-
legendFontSize: e.value.style.chart.legend.fontSize,
|
|
87
|
-
pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
|
|
88
|
-
trackSize: e.value.style.chart.layout.track.size,
|
|
89
|
-
pointerSize: e.value.style.chart.layout.pointer.size,
|
|
90
|
-
pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
|
|
91
|
-
markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
|
|
92
|
-
segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
|
|
93
|
-
}), M = d(0), P = d(0), f = d(e.value.style.chart.animation.use ? 0 : c.dataset.value);
|
|
94
|
-
ie(() => c.dataset.value, () => {
|
|
95
|
-
ne(c.dataset.value);
|
|
96
|
-
});
|
|
97
|
-
const h = y(() => {
|
|
98
|
-
const t = l.value.width / 2, s = n.value.base, a = Math.PI * ((f.value + 0 - P.value) / (M.value - P.value)) + Math.PI;
|
|
99
|
-
return {
|
|
100
|
-
x1: t,
|
|
101
|
-
y1: s,
|
|
102
|
-
x2: t + n.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a),
|
|
103
|
-
y2: s + n.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
|
|
104
|
-
};
|
|
105
|
-
}), re = y(() => {
|
|
106
|
-
const t = l.value.width / 2, s = n.value.base, a = Math.PI * ((f.value + 0 - P.value) / (M.value - P.value)) + Math.PI, o = t + n.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), _ = s + n.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), k = l.value.pointerRadius, $e = t + k * Math.cos(a + Math.PI / 2), Fe = s + k * Math.sin(a + Math.PI / 2), Ce = t + k * Math.cos(a - Math.PI / 2), Me = s + k * Math.sin(a - Math.PI / 2);
|
|
107
|
-
return isNaN(o) ? null : `M ${o},${_} ${$e},${Fe} ${Ce},${Me} Z`;
|
|
108
|
-
}), T = y(() => {
|
|
109
|
-
for (let t = 0; t < w.value.series.length; t += 1) {
|
|
110
|
-
const { color: s, from: a, to: o } = w.value.series[t];
|
|
111
|
-
if (f.value >= a && f.value <= o)
|
|
112
|
-
return s;
|
|
113
|
-
}
|
|
114
|
-
return "#2D353C";
|
|
115
|
-
}), X = d(null);
|
|
116
|
-
function ue() {
|
|
117
|
-
if (de(c.dataset) ? Y({
|
|
118
|
-
componentName: "VueUiGauge",
|
|
119
|
-
type: "dataset"
|
|
120
|
-
}) : (fe({
|
|
121
|
-
datasetObject: c.dataset,
|
|
122
|
-
requiredAttributes: ["value", "series"]
|
|
123
|
-
}).forEach((t) => {
|
|
124
|
-
Y({
|
|
125
|
-
componentName: "VueUiGauge",
|
|
126
|
-
type: "datasetAttribute",
|
|
127
|
-
property: t
|
|
128
|
-
});
|
|
129
|
-
}), Object.hasOwn(c.dataset, "series") && (c.dataset.series.length ? c.dataset.series.forEach((t, s) => {
|
|
130
|
-
fe({
|
|
131
|
-
datasetObject: t,
|
|
132
|
-
requiredAttributes: ["from", "to"]
|
|
133
|
-
}).forEach((a) => {
|
|
134
|
-
Y({
|
|
135
|
-
componentName: "VueUiGauge",
|
|
136
|
-
type: "datasetSerieAttribute",
|
|
137
|
-
property: a,
|
|
138
|
-
index: s
|
|
139
|
-
});
|
|
140
|
-
});
|
|
141
|
-
}) : Y({
|
|
142
|
-
componentName: "VueUiGauge",
|
|
143
|
-
type: "datasetAttributeEmpty",
|
|
144
|
-
property: "series"
|
|
145
|
-
}))), ne(c.dataset.value || 0), e.value.responsive) {
|
|
146
|
-
const t = Le(() => {
|
|
147
|
-
const { width: s, height: a } = De({
|
|
148
|
-
chart: C.value,
|
|
149
|
-
title: e.value.style.chart.title.text ? Z.value : null,
|
|
150
|
-
legend: J.value,
|
|
151
|
-
source: K.value,
|
|
152
|
-
noTitle: Q.value
|
|
153
|
-
});
|
|
154
|
-
l.value.width = s, l.value.height = a, l.value.centerX = s / 2, l.value.centerY = m.value / 2 / 358.4 * a, l.value.bottom = a, l.value.labelFontSize = 18 / m.value * Math.min(a, s) < 10 ? 10 : 18 / m.value * Math.min(a, s), l.value.legendFontSize = e.value.style.chart.legend.fontSize / m.value * Math.min(a, s) < 14 ? 14 : e.value.style.chart.legend.fontSize / m.value * Math.min(a, s), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / m.value * Math.min(a, s), l.value.trackSize = e.value.style.chart.layout.track.size / m.value * Math.min(a, s), l.value.pointerStrokeWidth = q({
|
|
155
|
-
relator: Math.min(s, a),
|
|
156
|
-
adjuster: m.value,
|
|
157
|
-
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
158
|
-
threshold: 2,
|
|
159
|
-
fallback: 2
|
|
160
|
-
}), l.value.markerOffset = q({
|
|
161
|
-
relator: Math.max(s, a),
|
|
162
|
-
adjuster: m.value,
|
|
163
|
-
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
164
|
-
threshold: 2,
|
|
165
|
-
fallback: 2
|
|
166
|
-
}), l.value.segmentFontSize = q({
|
|
167
|
-
relator: Math.min(s, a),
|
|
168
|
-
adjuster: m.value,
|
|
169
|
-
source: e.value.style.chart.layout.segmentNames.fontSize,
|
|
170
|
-
threshold: 8,
|
|
171
|
-
fallback: 8
|
|
172
|
-
});
|
|
173
|
-
});
|
|
174
|
-
X.value = new ResizeObserver(t), X.value.observe(C.value.parentNode);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
Pe(() => {
|
|
178
|
-
ue();
|
|
179
|
-
}), Ne(() => {
|
|
180
|
-
X.value && X.value.disconnect();
|
|
181
|
-
});
|
|
182
|
-
function ne(t) {
|
|
183
|
-
const s = [];
|
|
184
|
-
(w.value.series || []).forEach((k) => {
|
|
185
|
-
s.push(k.from || 0), s.push(k.to || 0);
|
|
186
|
-
}), M.value = Math.max(...s), P.value = Math.min(...s);
|
|
187
|
-
let a = e.value.style.chart.animation.speed;
|
|
188
|
-
const o = Math.abs(t - f.value) / (a * 60);
|
|
189
|
-
function _() {
|
|
190
|
-
f.value < t ? f.value = Math.min(f.value + o, t) : f.value > t && (f.value = Math.max(f.value - o, t)), f.value !== t && requestAnimationFrame(_);
|
|
191
|
-
}
|
|
192
|
-
_();
|
|
193
|
-
}
|
|
194
|
-
const n = y(() => {
|
|
195
|
-
const t = e.value.responsive ? Math.min(l.value.width, l.value.height) : l.value.width, s = 2.5 / e.value.style.chart.layout.radiusRatio;
|
|
196
|
-
return {
|
|
197
|
-
arcs: t / s,
|
|
198
|
-
gradients: t / (s * 1.1),
|
|
199
|
-
base: e.value.responsive ? l.value.height / 2 : l.value.height * 0.7,
|
|
200
|
-
ratingBase: e.value.responsive ? l.value.height / 2 + l.value.height / 4 : l.value.height * 0.9,
|
|
201
|
-
pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
|
|
202
|
-
};
|
|
203
|
-
}), p = y(() => U(
|
|
204
|
-
{ series: w.value.series },
|
|
205
|
-
l.value.width / 2,
|
|
206
|
-
n.value.base,
|
|
207
|
-
n.value.arcs,
|
|
208
|
-
n.value.arcs,
|
|
209
|
-
1,
|
|
210
|
-
1,
|
|
211
|
-
1,
|
|
212
|
-
180,
|
|
213
|
-
109.9495,
|
|
214
|
-
40 * l.value.trackSize
|
|
215
|
-
)), _e = y(() => U(
|
|
216
|
-
{ series: w.value.series },
|
|
217
|
-
l.value.width / 2,
|
|
218
|
-
n.value.base,
|
|
219
|
-
n.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
220
|
-
n.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
221
|
-
1,
|
|
222
|
-
1,
|
|
223
|
-
1,
|
|
224
|
-
180,
|
|
225
|
-
109.9495,
|
|
226
|
-
40 * l.value.trackSize
|
|
227
|
-
)), S = y(() => p.value.map((t) => n.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1)));
|
|
228
|
-
function xe(t) {
|
|
229
|
-
if (t.reduce((_, k) => _ + k, 0) > 100)
|
|
230
|
-
throw new Error("Total % must not exceed 100");
|
|
231
|
-
const a = 50;
|
|
232
|
-
let o = 0;
|
|
233
|
-
return t.map((_) => (o += _, `${o / 100 * a - _ / 4}%`));
|
|
234
|
-
}
|
|
235
|
-
const we = y(() => xe(p.value.map((t) => t.proportion * 100))), Se = y(() => U(
|
|
236
|
-
{ series: w.value.series },
|
|
237
|
-
l.value.width / 2,
|
|
238
|
-
n.value.base,
|
|
239
|
-
n.value.gradients,
|
|
240
|
-
n.value.gradients,
|
|
241
|
-
0.95,
|
|
242
|
-
1,
|
|
243
|
-
1,
|
|
244
|
-
180,
|
|
245
|
-
110.02,
|
|
246
|
-
2 * l.value.trackSize
|
|
247
|
-
)), N = d(!1);
|
|
248
|
-
function ze(t) {
|
|
249
|
-
N.value = t, H.value += 1;
|
|
250
|
-
}
|
|
251
|
-
const A = d(!1);
|
|
252
|
-
function j() {
|
|
253
|
-
A.value = !A.value;
|
|
254
|
-
}
|
|
255
|
-
return me({
|
|
256
|
-
generatePdf: oe,
|
|
257
|
-
generateImage: se,
|
|
258
|
-
toggleAnnotator: j
|
|
259
|
-
}), (t, s) => (r(), u("div", {
|
|
260
|
-
class: ce(`vue-ui-gauge ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
261
|
-
ref_key: "gaugeChart",
|
|
262
|
-
ref: C,
|
|
263
|
-
id: `vue-ui-gauge_${b.value}`,
|
|
264
|
-
style: ve(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
|
|
265
|
-
}, [
|
|
266
|
-
e.value.userOptions.buttons.annotator ? (r(), R(He, {
|
|
267
|
-
key: 0,
|
|
268
|
-
parent: C.value,
|
|
269
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
270
|
-
color: e.value.style.chart.color,
|
|
271
|
-
active: A.value,
|
|
272
|
-
onClose: j
|
|
273
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
|
|
274
|
-
ke.value ? (r(), u("div", {
|
|
275
|
-
key: 1,
|
|
276
|
-
ref_key: "noTitle",
|
|
277
|
-
ref: Q,
|
|
278
|
-
class: "vue-data-ui-no-title-space",
|
|
279
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
280
|
-
}, null, 512)) : v("", !0),
|
|
281
|
-
e.value.style.chart.title.text ? (r(), u("div", {
|
|
282
|
-
key: 2,
|
|
283
|
-
ref_key: "chartTitle",
|
|
284
|
-
ref: Z,
|
|
285
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
286
|
-
}, [
|
|
287
|
-
(r(), R(Ve, {
|
|
288
|
-
key: `title_${ee.value}`,
|
|
289
|
-
config: {
|
|
290
|
-
title: {
|
|
291
|
-
cy: "gauge-div-title",
|
|
292
|
-
...e.value.style.chart.title
|
|
293
|
-
},
|
|
294
|
-
subtitle: {
|
|
295
|
-
cy: "gauge-div-subtitle",
|
|
296
|
-
...e.value.style.chart.title.subtitle
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}, {
|
|
300
|
-
default: O(() => [
|
|
301
|
-
e.value.translations.base && E.dataset.base ? (r(), u("span", Ke, z(e.value.translations.base) + ": " + z(E.dataset.base), 1)) : v("", !0)
|
|
302
|
-
]),
|
|
303
|
-
_: 1
|
|
304
|
-
}, 8, ["config"]))
|
|
305
|
-
], 512)) : v("", !0),
|
|
306
|
-
e.value.userOptions.show && I.value ? (r(), R(Be, {
|
|
307
|
-
ref_key: "details",
|
|
308
|
-
ref: pe,
|
|
309
|
-
key: `user_options_${H.value}`,
|
|
310
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
311
|
-
color: e.value.style.chart.color,
|
|
312
|
-
isImaging: i(le),
|
|
313
|
-
isPrinting: i(ae),
|
|
314
|
-
uid: b.value,
|
|
315
|
-
hasXls: !1,
|
|
316
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
317
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
318
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
319
|
-
isFullscreen: N.value,
|
|
320
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
321
|
-
chartElement: C.value,
|
|
322
|
-
position: e.value.userOptions.position,
|
|
323
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
324
|
-
isAnnotation: A.value,
|
|
325
|
-
onToggleFullscreen: ze,
|
|
326
|
-
onGeneratePdf: i(oe),
|
|
327
|
-
onGenerateImage: i(se),
|
|
328
|
-
onToggleAnnotator: j
|
|
329
|
-
}, Oe({ _: 2 }, [
|
|
330
|
-
t.$slots.optionPdf ? {
|
|
331
|
-
name: "optionPdf",
|
|
332
|
-
fn: O(() => [
|
|
333
|
-
x(t.$slots, "optionPdf", {}, void 0, !0)
|
|
334
|
-
]),
|
|
335
|
-
key: "0"
|
|
336
|
-
} : void 0,
|
|
337
|
-
t.$slots.optionImg ? {
|
|
338
|
-
name: "optionImg",
|
|
339
|
-
fn: O(() => [
|
|
340
|
-
x(t.$slots, "optionImg", {}, void 0, !0)
|
|
341
|
-
]),
|
|
342
|
-
key: "1"
|
|
343
|
-
} : void 0,
|
|
344
|
-
t.$slots.optionFullscreen ? {
|
|
345
|
-
name: "optionFullscreen",
|
|
346
|
-
fn: O(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
347
|
-
x(t.$slots, "optionFullscreen", L(D({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
348
|
-
]),
|
|
349
|
-
key: "2"
|
|
350
|
-
} : void 0,
|
|
351
|
-
t.$slots.optionAnnotator ? {
|
|
352
|
-
name: "optionAnnotator",
|
|
353
|
-
fn: O(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
354
|
-
x(t.$slots, "optionAnnotator", L(D({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
355
|
-
]),
|
|
356
|
-
key: "3"
|
|
357
|
-
} : void 0
|
|
358
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
359
|
-
I.value ? (r(), u("svg", {
|
|
360
|
-
key: 4,
|
|
361
|
-
xmlns: i(Te),
|
|
362
|
-
class: ce({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
363
|
-
viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
|
|
364
|
-
style: ve(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
365
|
-
}, [
|
|
366
|
-
Ie(qe),
|
|
367
|
-
g("defs", null, [
|
|
368
|
-
g("radialGradient", {
|
|
369
|
-
id: `gradient_${b.value}`,
|
|
370
|
-
cx: "50%",
|
|
371
|
-
cy: "50%",
|
|
372
|
-
r: "50%",
|
|
373
|
-
fx: "50%",
|
|
374
|
-
fy: "50%"
|
|
375
|
-
}, [
|
|
376
|
-
g("stop", {
|
|
377
|
-
offset: "0%",
|
|
378
|
-
"stop-color": i(B)("#FFFFFF", 1)
|
|
379
|
-
}, null, 8, tt),
|
|
380
|
-
g("stop", {
|
|
381
|
-
offset: "80%",
|
|
382
|
-
"stop-color": i(B)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
383
|
-
}, null, 8, at),
|
|
384
|
-
g("stop", {
|
|
385
|
-
offset: "100%",
|
|
386
|
-
"stop-color": i(B)("#FFFFFF", 1)
|
|
387
|
-
}, null, 8, lt)
|
|
388
|
-
], 8, et)
|
|
389
|
-
]),
|
|
390
|
-
g("defs", null, [
|
|
391
|
-
g("filter", {
|
|
392
|
-
id: `blur_${b.value}`,
|
|
393
|
-
x: "-50%",
|
|
394
|
-
y: "-50%",
|
|
395
|
-
width: "200%",
|
|
396
|
-
height: "200%"
|
|
397
|
-
}, [
|
|
398
|
-
g("feGaussianBlur", {
|
|
399
|
-
in: "SourceGraphic",
|
|
400
|
-
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
401
|
-
}, null, 8, st)
|
|
402
|
-
], 8, ot)
|
|
403
|
-
]),
|
|
404
|
-
(r(!0), u($, null, F(p.value, (a, o) => (r(), u("path", {
|
|
405
|
-
key: `arc_${o}`,
|
|
406
|
-
d: a.arcSlice,
|
|
407
|
-
fill: a.color,
|
|
408
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
409
|
-
"stroke-linecap": "round"
|
|
410
|
-
}, null, 8, rt))), 128)),
|
|
411
|
-
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (r(), u($, { key: 0 }, [
|
|
412
|
-
(r(!0), u($, null, F(p.value, (a, o) => (r(), u("path", {
|
|
413
|
-
id: `curve_${b.value}_${o}`,
|
|
414
|
-
d: `M ${h.value.x1},${h.value.y1} m -${S.value[o]},0 a ${S.value[o]},${S.value[o]} 0 1,1 ${2 * S.value[o]},0 a ${S.value[o]},${S.value[o]} 0 1,1 -${2 * S.value[o]},0`,
|
|
415
|
-
fill: "transparent"
|
|
416
|
-
}, null, 8, ut))), 256)),
|
|
417
|
-
(r(!0), u($, null, F(p.value, (a, o) => (r(), u("text", {
|
|
418
|
-
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
419
|
-
"font-size": l.value.segmentFontSize,
|
|
420
|
-
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
421
|
-
"text-anchor": "middle"
|
|
422
|
-
}, [
|
|
423
|
-
g("textPath", {
|
|
424
|
-
href: `#curve_${b.value}_${o}`,
|
|
425
|
-
startOffset: we.value[o]
|
|
426
|
-
}, z(a.name || ""), 9, it)
|
|
427
|
-
], 8, nt))), 256))
|
|
428
|
-
], 64)) : v("", !0),
|
|
429
|
-
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (r(!0), u($, { key: 1 }, F(_e.value, (a, o) => (r(), u("text", {
|
|
430
|
-
x: a.center.endX,
|
|
431
|
-
y: a.center.endY,
|
|
432
|
-
"text-anchor": i(je)(a, !1, 12).anchor,
|
|
433
|
-
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
434
|
-
"font-size": l.value.segmentFontSize,
|
|
435
|
-
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
|
|
436
|
-
}, z(a.name || ""), 9, ct))), 256)) : v("", !0),
|
|
437
|
-
e.value.style.chart.layout.track.useGradient ? (r(!0), u($, { key: 2 }, F(Se.value, (a, o) => (r(), u("path", {
|
|
438
|
-
key: `arc_${o}`,
|
|
439
|
-
d: a.arcSlice,
|
|
440
|
-
fill: "#FFFFFF",
|
|
441
|
-
stroke: "none",
|
|
442
|
-
"stroke-linecap": "round",
|
|
443
|
-
filter: `url(#blur_${b.value})`
|
|
444
|
-
}, null, 8, vt))), 128)) : v("", !0),
|
|
445
|
-
e.value.style.chart.layout.markers.show ? (r(), u("g", ht, [
|
|
446
|
-
(r(!0), u($, null, F(p.value, (a, o) => (r(), u("text", {
|
|
447
|
-
x: i(G)({
|
|
448
|
-
centerX: l.value.width / 2,
|
|
449
|
-
centerY: n.value.base,
|
|
450
|
-
initX: a.center.startX,
|
|
451
|
-
initY: a.center.startY,
|
|
452
|
-
offset: l.value.markerOffset
|
|
453
|
-
}).x,
|
|
454
|
-
y: i(G)({
|
|
455
|
-
centerX: l.value.width / 2,
|
|
456
|
-
centerY: n.value.base,
|
|
457
|
-
initX: a.center.startX,
|
|
458
|
-
initY: a.center.startY,
|
|
459
|
-
offset: l.value.markerOffset
|
|
460
|
-
}).y,
|
|
461
|
-
"text-anchor": a.center.startX < l.value.width / 2 - 5 ? "end" : a.center.startX > l.value.width / 2 + 5 ? "start" : "middle",
|
|
462
|
-
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
463
|
-
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
464
|
-
fill: e.value.style.chart.layout.markers.color
|
|
465
|
-
}, z(i(W)(
|
|
466
|
-
e.value.style.chart.layout.markers.formatter,
|
|
467
|
-
a.from,
|
|
468
|
-
i(V)({
|
|
469
|
-
p: e.value.style.chart.layout.markers.prefix,
|
|
470
|
-
v: a.from,
|
|
471
|
-
s: e.value.style.chart.layout.markers.suffix,
|
|
472
|
-
r: e.value.style.chart.layout.markers.roundingValue
|
|
473
|
-
})
|
|
474
|
-
)), 9, dt))), 256))
|
|
475
|
-
])) : v("", !0),
|
|
476
|
-
e.value.style.chart.layout.markers.show ? (r(), u("text", {
|
|
477
|
-
key: 4,
|
|
478
|
-
x: i(G)({
|
|
479
|
-
centerX: l.value.width / 2,
|
|
480
|
-
centerY: n.value.base,
|
|
481
|
-
initX: p.value.at(-1).endX,
|
|
482
|
-
initY: p.value.at(-1).endY,
|
|
483
|
-
offset: l.value.markerOffset
|
|
484
|
-
}).x,
|
|
485
|
-
y: i(G)({
|
|
486
|
-
centerX: l.value.width / 2,
|
|
487
|
-
centerY: n.value.base,
|
|
488
|
-
initX: p.value.at(-1).endX,
|
|
489
|
-
initY: p.value.at(-1).endY,
|
|
490
|
-
offset: l.value.markerOffset
|
|
491
|
-
}).y,
|
|
492
|
-
"text-anchor": "start",
|
|
493
|
-
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
494
|
-
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
495
|
-
fill: e.value.style.chart.layout.markers.color
|
|
496
|
-
}, z(i(W)(
|
|
497
|
-
e.value.style.chart.layout.markers.formatter,
|
|
498
|
-
M.value,
|
|
499
|
-
i(V)({
|
|
500
|
-
p: e.value.style.chart.layout.markers.prefix,
|
|
501
|
-
v: M.value,
|
|
502
|
-
s: e.value.style.chart.layout.markers.suffix,
|
|
503
|
-
r: e.value.style.chart.layout.markers.roundingValue
|
|
504
|
-
})
|
|
505
|
-
)), 9, ft)) : v("", !0),
|
|
506
|
-
e.value.style.chart.layout.pointer.type === "rounded" ? (r(), u("g", yt, [
|
|
507
|
-
isNaN(h.value.x2) ? v("", !0) : (r(), u("line", {
|
|
508
|
-
key: 0,
|
|
509
|
-
x1: h.value.x1,
|
|
510
|
-
y1: h.value.y1,
|
|
511
|
-
x2: h.value.x2,
|
|
512
|
-
y2: h.value.y2,
|
|
513
|
-
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
514
|
-
"stroke-width": l.value.pointerStrokeWidth,
|
|
515
|
-
"stroke-linecap": "round"
|
|
516
|
-
}, null, 8, mt)),
|
|
517
|
-
isNaN(h.value.x2) ? v("", !0) : (r(), u("line", {
|
|
518
|
-
key: 1,
|
|
519
|
-
x1: h.value.x1,
|
|
520
|
-
y1: h.value.y1,
|
|
521
|
-
x2: h.value.x2,
|
|
522
|
-
y2: h.value.y2,
|
|
523
|
-
stroke: e.value.style.chart.layout.pointer.useRatingColor ? T.value : e.value.style.chart.layout.pointer.color,
|
|
524
|
-
"stroke-linecap": "round",
|
|
525
|
-
"stroke-width": l.value.pointerStrokeWidth * 0.7
|
|
526
|
-
}, null, 8, gt)),
|
|
527
|
-
!isNaN(h.value.x2) && e.value.style.chart.layout.track.useGradient ? (r(), u("line", {
|
|
528
|
-
key: 2,
|
|
529
|
-
x1: h.value.x1,
|
|
530
|
-
y1: h.value.y1,
|
|
531
|
-
x2: h.value.x2,
|
|
532
|
-
y2: h.value.y2,
|
|
533
|
-
stroke: "white",
|
|
534
|
-
"stroke-linecap": "round",
|
|
535
|
-
"stroke-width": l.value.pointerStrokeWidth * 0.3,
|
|
536
|
-
filter: `url(#blur_${b.value})`
|
|
537
|
-
}, null, 8, pt)) : v("", !0)
|
|
538
|
-
])) : (r(), u("g", kt, [
|
|
539
|
-
re.value ? (r(), u("path", {
|
|
540
|
-
key: 0,
|
|
541
|
-
d: re.value,
|
|
542
|
-
fill: e.value.style.chart.layout.pointer.useRatingColor ? T.value : e.value.style.chart.layout.pointer.color,
|
|
543
|
-
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
544
|
-
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
545
|
-
"stroke-linejoin": "round"
|
|
546
|
-
}, null, 8, bt)) : v("", !0)
|
|
547
|
-
])),
|
|
548
|
-
g("circle", {
|
|
549
|
-
cx: l.value.width / 2,
|
|
550
|
-
cy: n.value.base,
|
|
551
|
-
fill: e.value.style.chart.layout.pointer.circle.color,
|
|
552
|
-
r: l.value.pointerRadius <= 0 ? 1e-4 : l.value.pointerRadius,
|
|
553
|
-
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
554
|
-
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
555
|
-
}, null, 8, _t),
|
|
556
|
-
e.value.style.chart.legend.show ? (r(), u("text", {
|
|
557
|
-
key: 7,
|
|
558
|
-
x: l.value.width / 2,
|
|
559
|
-
y: n.value.ratingBase,
|
|
560
|
-
"text-anchor": "middle",
|
|
561
|
-
"font-size": l.value.legendFontSize,
|
|
562
|
-
"font-weight": "bold",
|
|
563
|
-
fill: e.value.style.chart.legend.useRatingColor ? T.value : e.value.style.chart.legend.color
|
|
564
|
-
}, z(i(W)(
|
|
565
|
-
e.value.style.chart.legend.formatter,
|
|
566
|
-
f.value,
|
|
567
|
-
i(V)({
|
|
568
|
-
p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && f.value > 0 ? "+" : ""),
|
|
569
|
-
v: f.value,
|
|
570
|
-
s: e.value.style.chart.legend.suffix,
|
|
571
|
-
r: e.value.style.chart.legend.roundingValue
|
|
572
|
-
})
|
|
573
|
-
)), 9, xt)) : v("", !0),
|
|
574
|
-
x(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
575
|
-
], 14, Qe)) : v("", !0),
|
|
576
|
-
t.$slots.watermark ? (r(), u("div", wt, [
|
|
577
|
-
x(t.$slots, "watermark", L(D({ isPrinting: i(ae) || i(le) })), void 0, !0)
|
|
578
|
-
])) : v("", !0),
|
|
579
|
-
I.value ? v("", !0) : (r(), R(We, {
|
|
580
|
-
key: 6,
|
|
581
|
-
config: {
|
|
582
|
-
type: "gauge",
|
|
583
|
-
style: {
|
|
584
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
585
|
-
gauge: {
|
|
586
|
-
color: "#CCCCCC"
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
}, null, 8, ["config"])),
|
|
591
|
-
g("div", {
|
|
592
|
-
ref_key: "chartLegend",
|
|
593
|
-
ref: J
|
|
594
|
-
}, [
|
|
595
|
-
x(t.$slots, "legend", { legend: w.value }, void 0, !0)
|
|
596
|
-
], 512),
|
|
597
|
-
t.$slots.source ? (r(), u("div", {
|
|
598
|
-
key: 7,
|
|
599
|
-
ref_key: "source",
|
|
600
|
-
ref: K,
|
|
601
|
-
dir: "auto"
|
|
602
|
-
}, [
|
|
603
|
-
x(t.$slots, "source", {}, void 0, !0)
|
|
604
|
-
], 512)) : v("", !0)
|
|
605
|
-
], 14, Je));
|
|
606
|
-
}
|
|
607
|
-
}, At = /* @__PURE__ */ Ze(St, [["__scopeId", "data-v-813d685a"]]);
|
|
608
|
-
export {
|
|
609
|
-
At as default
|
|
610
|
-
};
|