vue-data-ui 3.22.8 → 3.22.9
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/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
- package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.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-bump.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-dag.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-geo.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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.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-stackline.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/{package-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
- package/dist/vue-data-ui.js +67 -67
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
- package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
- package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
- package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
- package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
- package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
- package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
- package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
- package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
- package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
- package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
- package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
- package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
- package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
- package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
- package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
- package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
- package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
- package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
- package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
- package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
- package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
|
@@ -1,920 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, At as n, Dt as r, E as i, G as a, Gt as o, J as s, Kt as ee, Mt as te, Rt as ne, S as re, U as ie, Wt as ae, b as oe, dt as se, i as c, kt as ce, t as le, u as ue, v as de } from "./lib-JqW18y5I.js";
|
|
3
|
-
import { t as fe } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as pe } from "./usePrinter-CqqHmnBI.js";
|
|
5
|
-
import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
-
import { t as ge } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as _e } from "./useNestedProp-DIuuzG1r.js";
|
|
8
|
-
import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as ye } from "./img-DnP3eXuv.js";
|
|
10
|
-
import { n as be } from "./Title-CcNiYzEo.js";
|
|
11
|
-
import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
-
import { c as Se } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
-
import { t as Ce } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
-
import { t as we } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
-
import { t as Te } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
-
import { t as Ee } from "./useAutoSizeLabelsInsideViewbox-BGnDfZdg.js";
|
|
17
|
-
import { t as De } from "./vue_ui_gauge-Cf1RZc9q.js";
|
|
18
|
-
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Oe, createVNode as ke, defineAsyncComponent as Ae, guardReactiveProps as h, mergeProps as g, nextTick as je, normalizeClass as Me, normalizeProps as _, normalizeStyle as Ne, onBeforeUnmount as Pe, onMounted as Fe, openBlock as v, ref as y, renderList as b, renderSlot as x, shallowRef as Ie, toDisplayString as S, toRefs as Le, unref as C, watch as Re, withCtx as w } from "vue";
|
|
19
|
-
//#region src/components/vue-ui-gauge.vue
|
|
20
|
-
var ze = /* @__PURE__ */ e({ default: () => xt }), Be = ["id"], Ve = { key: 0 }, He = ["xmlns", "viewBox"], Ue = ["width", "height"], We = ["id"], Ge = ["stop-color"], Ke = ["stop-color"], qe = ["stop-color"], Je = ["id"], Ye = ["stdDeviation"], Xe = { key: 1 }, Ze = [
|
|
21
|
-
"d",
|
|
22
|
-
"fill",
|
|
23
|
-
"stroke"
|
|
24
|
-
], Qe = [
|
|
25
|
-
"d",
|
|
26
|
-
"fill",
|
|
27
|
-
"stroke"
|
|
28
|
-
], $e = ["d", "fill"], et = ["id", "d"], tt = [
|
|
29
|
-
"fill",
|
|
30
|
-
"font-size",
|
|
31
|
-
"font-weight"
|
|
32
|
-
], nt = ["href", "startOffset"], rt = [
|
|
33
|
-
"text-anchor",
|
|
34
|
-
"fill",
|
|
35
|
-
"font-size",
|
|
36
|
-
"font-weight",
|
|
37
|
-
"innerHTML"
|
|
38
|
-
], it = ["d", "filter"], at = ["stroke", "stroke-width"], ot = ["stroke", "stroke-width"], st = ["stroke", "stroke-width"], ct = ["stroke", "stroke-width"], lt = { key: 8 }, ut = [
|
|
39
|
-
"x",
|
|
40
|
-
"y",
|
|
41
|
-
"text-anchor",
|
|
42
|
-
"font-size",
|
|
43
|
-
"font-weight",
|
|
44
|
-
"fill"
|
|
45
|
-
], dt = [
|
|
46
|
-
"x",
|
|
47
|
-
"y",
|
|
48
|
-
"font-size",
|
|
49
|
-
"font-weight",
|
|
50
|
-
"fill"
|
|
51
|
-
], ft = { key: 0 }, pt = [
|
|
52
|
-
"x1",
|
|
53
|
-
"y1",
|
|
54
|
-
"x2",
|
|
55
|
-
"y2",
|
|
56
|
-
"stroke",
|
|
57
|
-
"stroke-width"
|
|
58
|
-
], mt = [
|
|
59
|
-
"x1",
|
|
60
|
-
"y1",
|
|
61
|
-
"x2",
|
|
62
|
-
"y2",
|
|
63
|
-
"stroke",
|
|
64
|
-
"stroke-width"
|
|
65
|
-
], ht = [
|
|
66
|
-
"x1",
|
|
67
|
-
"y1",
|
|
68
|
-
"x2",
|
|
69
|
-
"y2",
|
|
70
|
-
"stroke-width",
|
|
71
|
-
"filter"
|
|
72
|
-
], gt = { key: 1 }, _t = [
|
|
73
|
-
"d",
|
|
74
|
-
"fill",
|
|
75
|
-
"stroke",
|
|
76
|
-
"stroke-width"
|
|
77
|
-
], vt = [
|
|
78
|
-
"cx",
|
|
79
|
-
"cy",
|
|
80
|
-
"fill",
|
|
81
|
-
"r",
|
|
82
|
-
"stroke-width",
|
|
83
|
-
"stroke"
|
|
84
|
-
], yt = [
|
|
85
|
-
"x",
|
|
86
|
-
"y",
|
|
87
|
-
"font-size",
|
|
88
|
-
"fill"
|
|
89
|
-
], bt = {
|
|
90
|
-
key: 4,
|
|
91
|
-
class: "vue-data-ui-watermark"
|
|
92
|
-
}, xt = /*#__PURE__*/ xe({
|
|
93
|
-
__name: "vue-ui-gauge",
|
|
94
|
-
props: {
|
|
95
|
-
config: {
|
|
96
|
-
type: Object,
|
|
97
|
-
default() {
|
|
98
|
-
return {};
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
dataset: {
|
|
102
|
-
type: Object,
|
|
103
|
-
default() {
|
|
104
|
-
return {};
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
emits: ["copyAlt"],
|
|
109
|
-
setup(e, { expose: xe, emit: ze }) {
|
|
110
|
-
let xt = Ae(() => import("./PenAndPaper-pcgwlYr2.js").then((e) => e.t)), St = Ae(() => import("./UserOptions-16uF1ayB.js").then((e) => e.n)), Ct = Ae(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), { vue_ui_gauge: wt } = fe(), { isThemeValid: Tt, warnInvalidTheme: Et } = ve(), T = e, Dt = ze, Ot = u(() => !!T.dataset && Object.keys(T.dataset).length > 0 && T.dataset.series && T.dataset.series.length), E = y(a()), kt = y(null), At = y(0), D = y(null), jt = y(null), Mt = y(null), Nt = y(null), Pt = y(null), Ft = y(0), O = y(!1), k = y(!1), A = y(F()), It = u(() => A.value.userOptions.useCursorPointer), Lt = u(() => ee({
|
|
111
|
-
defaultConfig: {
|
|
112
|
-
userOptions: { show: !1 },
|
|
113
|
-
style: { chart: {
|
|
114
|
-
backgroundColor: "#99999930",
|
|
115
|
-
animation: { use: !1 },
|
|
116
|
-
layout: {
|
|
117
|
-
markers: { show: !1 },
|
|
118
|
-
segmentSeparators: { stroke: "#6A6A6A" },
|
|
119
|
-
segmentNames: { show: !1 },
|
|
120
|
-
indicatorArc: { fill: "#6A6A6A50" },
|
|
121
|
-
pointer: {
|
|
122
|
-
stroke: "#6A6A6A",
|
|
123
|
-
useRatingColor: !0,
|
|
124
|
-
circle: {
|
|
125
|
-
stroke: "#6A6A6A",
|
|
126
|
-
color: "#6A6A6A"
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
legend: { show: !1 }
|
|
131
|
-
} }
|
|
132
|
-
},
|
|
133
|
-
userConfig: A.value.skeletonConfig ?? {}
|
|
134
|
-
})), { loading: Rt, FINAL_DATASET: j, manualLoading: M } = me({
|
|
135
|
-
...Le(T),
|
|
136
|
-
FINAL_CONFIG: A,
|
|
137
|
-
prepareConfig: F,
|
|
138
|
-
callback: () => {
|
|
139
|
-
Promise.resolve().then(async () => {
|
|
140
|
-
await je();
|
|
141
|
-
});
|
|
142
|
-
},
|
|
143
|
-
skeletonDataset: T.config?.skeletonDataset ?? {
|
|
144
|
-
value: 0,
|
|
145
|
-
series: [{
|
|
146
|
-
from: -1,
|
|
147
|
-
to: 0,
|
|
148
|
-
name: "_",
|
|
149
|
-
color: "#A1A1A1"
|
|
150
|
-
}, {
|
|
151
|
-
from: 0,
|
|
152
|
-
to: 1,
|
|
153
|
-
name: "__",
|
|
154
|
-
color: "#CACACA"
|
|
155
|
-
}]
|
|
156
|
-
},
|
|
157
|
-
skeletonConfig: ee({
|
|
158
|
-
defaultConfig: A.value,
|
|
159
|
-
userConfig: Lt.value
|
|
160
|
-
})
|
|
161
|
-
}), { userOptionsVisible: N, setUserOptionsVisibility: zt, keepUserOptionState: Bt } = we({ config: A.value }), { svgRef: P } = Te({ config: A.value.style.chart.title });
|
|
162
|
-
Re(() => T.config, (e) => {
|
|
163
|
-
Rt.value || (A.value = F()), N.value = !A.value.userOptions.showOnChartHover, Yt(), Ft.value += 1;
|
|
164
|
-
}, { deep: !0 }), Re(() => T.dataset, (e) => {
|
|
165
|
-
Yt(), e && Object.keys(e).length > 0 && (M.value = A.value?.loading ?? !1);
|
|
166
|
-
}, {
|
|
167
|
-
deep: !0,
|
|
168
|
-
immediate: !1
|
|
169
|
-
});
|
|
170
|
-
function F() {
|
|
171
|
-
let e = _e({
|
|
172
|
-
userConfig: T.config,
|
|
173
|
-
defaultConfig: wt
|
|
174
|
-
}), t = e.theme;
|
|
175
|
-
if (!t) return e;
|
|
176
|
-
if (!Tt.value(e)) return Et(e), e;
|
|
177
|
-
let n = _e({
|
|
178
|
-
userConfig: De[t] || T.config,
|
|
179
|
-
defaultConfig: e
|
|
180
|
-
}), r = _e({
|
|
181
|
-
userConfig: T.config,
|
|
182
|
-
defaultConfig: n
|
|
183
|
-
});
|
|
184
|
-
return {
|
|
185
|
-
...r,
|
|
186
|
-
customPalette: r.customPalette.length ? r.customPalette : ae[t] || te
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
let { isPrinting: I, isImaging: Vt, generatePdf: Ht, generateImage: Ut } = pe({
|
|
190
|
-
elementId: `vue-ui-gauge_${E.value}`,
|
|
191
|
-
fileName: A.value.style.chart.title.text || "vue-ui-gauge",
|
|
192
|
-
options: A.value.userOptions.print
|
|
193
|
-
}), Wt = u(() => A.value.userOptions.show && !A.value.style.chart.title.text), Gt = u(() => re(A.value.customPalette)), L = u(() => {
|
|
194
|
-
if (ce(j.value.series || {})) return {
|
|
195
|
-
value: 0,
|
|
196
|
-
series: [{
|
|
197
|
-
from: 0,
|
|
198
|
-
to: 0
|
|
199
|
-
}]
|
|
200
|
-
};
|
|
201
|
-
let e = [];
|
|
202
|
-
(j.value.series || []).forEach((t) => {
|
|
203
|
-
e.push(t.from || 1e-7), e.push(t.to || 1e-7);
|
|
204
|
-
});
|
|
205
|
-
let t = Math.max(...e);
|
|
206
|
-
return {
|
|
207
|
-
...j.value,
|
|
208
|
-
series: (j.value.series || []).map((e, n) => ({
|
|
209
|
-
...e,
|
|
210
|
-
color: oe(e.color) || Gt.value[n] || te[n],
|
|
211
|
-
value: ((e.to || 0) - (e.from || 0)) / t * 100
|
|
212
|
-
}))
|
|
213
|
-
};
|
|
214
|
-
}), R = y(512), z = y({
|
|
215
|
-
height: 358.4,
|
|
216
|
-
width: R.value,
|
|
217
|
-
top: 0,
|
|
218
|
-
bottom: 358.4,
|
|
219
|
-
centerX: 179.2,
|
|
220
|
-
centerY: R.value / 2,
|
|
221
|
-
labelFontSize: 18,
|
|
222
|
-
legendFontSize: A.value.style.chart.legend.fontSize,
|
|
223
|
-
pointerRadius: A.value.style.chart.layout.pointer.circle.radius,
|
|
224
|
-
trackSize: A.value.style.chart.layout.track.size,
|
|
225
|
-
pointerSize: A.value.style.chart.layout.pointer.size,
|
|
226
|
-
pointerStrokeWidth: A.value.style.chart.layout.pointer.strokeWidth,
|
|
227
|
-
markerOffset: A.value.style.chart.layout.markers.offsetY + 3,
|
|
228
|
-
segmentFontSize: A.value.style.chart.layout.segmentNames.fontSize
|
|
229
|
-
}), B = y(0), V = y(0), H = y(A.value.style.chart.animation.use ? Math.min(...j.value.series.map((e) => e.from)) : j.value.value);
|
|
230
|
-
Re(() => j.value.value, () => {
|
|
231
|
-
Xt(j.value.value);
|
|
232
|
-
});
|
|
233
|
-
let U = u(() => {
|
|
234
|
-
let e = z.value.width / 2, t = J.value.base, n = Math.PI * ((H.value + 0 - V.value) / (B.value - V.value)) + Math.PI;
|
|
235
|
-
return {
|
|
236
|
-
x1: e,
|
|
237
|
-
y1: t,
|
|
238
|
-
x2: e + J.value.pointerSize * z.value.pointerSize * .9 * Math.cos(n),
|
|
239
|
-
y2: t + J.value.pointerSize * z.value.pointerSize * .9 * Math.sin(n)
|
|
240
|
-
};
|
|
241
|
-
}), Kt = u(() => {
|
|
242
|
-
let e = z.value.width / 2, t = J.value.base, n = Math.PI * ((H.value + 0 - V.value) / (B.value - V.value)) + Math.PI, r = e + J.value.pointerSize * z.value.pointerSize * .9 * Math.cos(n), i = t + J.value.pointerSize * z.value.pointerSize * .9 * Math.sin(n), a = z.value.pointerRadius, o = e + a * Math.cos(n + Math.PI / 2), s = t + a * Math.sin(n + Math.PI / 2), ee = e + a * Math.cos(n - Math.PI / 2), te = t + a * Math.sin(n - Math.PI / 2);
|
|
243
|
-
return isNaN(r) ? null : `M ${r},${i} ${o},${s} ${ee},${te} Z`;
|
|
244
|
-
}), qt = u(() => {
|
|
245
|
-
for (let e = 0; e < L.value.series.length; e += 1) {
|
|
246
|
-
let { color: t, from: n, to: r } = L.value.series[e];
|
|
247
|
-
if (H.value >= n && H.value <= r) return t;
|
|
248
|
-
}
|
|
249
|
-
return "#2D353C";
|
|
250
|
-
}), W = Ie(null), G = Ie(null), K = u({
|
|
251
|
-
get: () => z.value.segmentFontSize,
|
|
252
|
-
set: (e) => e
|
|
253
|
-
}), { autoSizeLabels: Jt } = Ee({
|
|
254
|
-
svgRef: P,
|
|
255
|
-
fontSize: z.value.segmentFontSize,
|
|
256
|
-
minFontSize: A.value.style.chart.layout.segmentNames.minFontSize,
|
|
257
|
-
sizeRef: K,
|
|
258
|
-
labelClass: ".vue-ui-gauge-label-flat"
|
|
259
|
-
}), q = u(() => !!A.value.debug);
|
|
260
|
-
function Yt() {
|
|
261
|
-
let e = !1;
|
|
262
|
-
if (ce(T.dataset) ? (t({
|
|
263
|
-
componentName: "VueUiGauge",
|
|
264
|
-
type: "dataset",
|
|
265
|
-
debug: q.value
|
|
266
|
-
}), M.value = !0, e = !0) : (se({
|
|
267
|
-
datasetObject: T.dataset,
|
|
268
|
-
requiredAttributes: ["value", "series"]
|
|
269
|
-
}).forEach((n) => {
|
|
270
|
-
t({
|
|
271
|
-
componentName: "VueUiGauge",
|
|
272
|
-
type: "datasetAttribute",
|
|
273
|
-
property: n,
|
|
274
|
-
debug: q.value
|
|
275
|
-
}), M.value = !0, e = !0;
|
|
276
|
-
}), Object.hasOwn(T.dataset, "series") && (T.dataset.series.length ? T.dataset.series.forEach((n, r) => {
|
|
277
|
-
se({
|
|
278
|
-
datasetObject: n,
|
|
279
|
-
requiredAttributes: ["from", "to"]
|
|
280
|
-
}).forEach((n) => {
|
|
281
|
-
t({
|
|
282
|
-
componentName: "VueUiGauge",
|
|
283
|
-
type: "datasetSerieAttribute",
|
|
284
|
-
property: n,
|
|
285
|
-
index: r,
|
|
286
|
-
debug: q.value
|
|
287
|
-
}), M.value = !0, e = !0;
|
|
288
|
-
});
|
|
289
|
-
}) : (t({
|
|
290
|
-
componentName: "VueUiGauge",
|
|
291
|
-
type: "datasetAttributeEmpty",
|
|
292
|
-
property: "series",
|
|
293
|
-
debug: q.value
|
|
294
|
-
}), M.value = !0, e = !0))), M.value = e, Xt(j.value.value || 0), A.value.responsive) {
|
|
295
|
-
let e = Se(() => {
|
|
296
|
-
let { width: e, height: t } = Ce({
|
|
297
|
-
chart: D.value,
|
|
298
|
-
title: A.value.style.chart.title.text ? jt.value : null,
|
|
299
|
-
legend: Mt.value,
|
|
300
|
-
source: Nt.value,
|
|
301
|
-
noTitle: Pt.value
|
|
302
|
-
});
|
|
303
|
-
t -= 12, requestAnimationFrame(() => {
|
|
304
|
-
z.value.width = e, z.value.height = t, z.value.centerX = e / 2, z.value.centerY = R.value / 2 / 358.4 * t, z.value.bottom = t, z.value.labelFontSize = 18 / R.value * Math.min(t, e) < 10 ? 10 : 18 / R.value * Math.min(t, e), z.value.legendFontSize = A.value.style.chart.legend.fontSize / R.value * Math.min(t, e) < 14 ? 14 : A.value.style.chart.legend.fontSize / R.value * Math.min(t, e), z.value.pointerRadius = A.value.style.chart.layout.pointer.circle.radius / R.value * Math.min(t, e), z.value.trackSize = A.value.style.chart.layout.track.size / R.value * Math.min(t, e), z.value.pointerStrokeWidth = o({
|
|
305
|
-
relator: Math.min(e, t),
|
|
306
|
-
adjuster: R.value,
|
|
307
|
-
source: A.value.style.chart.layout.pointer.strokeWidth,
|
|
308
|
-
threshold: 2,
|
|
309
|
-
fallback: 2
|
|
310
|
-
}), z.value.markerOffset = o({
|
|
311
|
-
relator: Math.max(e, t),
|
|
312
|
-
adjuster: R.value,
|
|
313
|
-
source: A.value.style.chart.layout.markers.offsetY + 3,
|
|
314
|
-
threshold: 2,
|
|
315
|
-
fallback: 2
|
|
316
|
-
}), z.value.segmentFontSize = o({
|
|
317
|
-
relator: Math.min(e, t),
|
|
318
|
-
adjuster: R.value,
|
|
319
|
-
source: A.value.style.chart.layout.segmentNames.fontSize,
|
|
320
|
-
threshold: 8,
|
|
321
|
-
fallback: 8
|
|
322
|
-
});
|
|
323
|
-
}), Jt();
|
|
324
|
-
});
|
|
325
|
-
W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect()), W.value = new ResizeObserver(e), G.value = D.value.parentNode, W.value.observe(G.value);
|
|
326
|
-
}
|
|
327
|
-
Jt();
|
|
328
|
-
}
|
|
329
|
-
Fe(() => {
|
|
330
|
-
Yt();
|
|
331
|
-
}), Pe(() => {
|
|
332
|
-
W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect());
|
|
333
|
-
});
|
|
334
|
-
function Xt(e) {
|
|
335
|
-
let t = [];
|
|
336
|
-
(L.value.series || []).forEach((e) => {
|
|
337
|
-
t.push(e.from || 0), t.push(e.to || 0);
|
|
338
|
-
}), B.value = Math.max(...t), V.value = Math.min(...t);
|
|
339
|
-
let n = A.value.style.chart.animation.speed, r = Math.abs(e - H.value) / (n * 60);
|
|
340
|
-
function i() {
|
|
341
|
-
H.value < e ? H.value = Math.min(H.value + r, e) : H.value > e && (H.value = Math.max(H.value - r, e)), H.value !== e && requestAnimationFrame(i);
|
|
342
|
-
}
|
|
343
|
-
i();
|
|
344
|
-
}
|
|
345
|
-
let J = u(() => {
|
|
346
|
-
let e = A.value.responsive ? Math.min(z.value.width, z.value.height) : z.value.width, t = 2.5 / A.value.style.chart.layout.radiusRatio;
|
|
347
|
-
return {
|
|
348
|
-
arcs: e / t,
|
|
349
|
-
gradients: e / (t * 1.1),
|
|
350
|
-
base: A.value.responsive ? z.value.height / 1.618 : z.value.height * .7,
|
|
351
|
-
ratingBase: A.value.responsive ? z.value.height / 2 + z.value.height / 4 : z.value.height * .9,
|
|
352
|
-
pointerSize: A.value.responsive ? Math.min(z.value.width, z.value.height) / 3 : z.value.width / 3.2
|
|
353
|
-
};
|
|
354
|
-
}), Y = u(() => r({ series: L.value.series }, z.value.width / 2, J.value.base, J.value.arcs, J.value.arcs, 1, 1, 1, 180, 109.9495, 40 * z.value.trackSize)), Zt = u(() => r({ series: L.value.series }, z.value.width / 2, J.value.base, J.value.arcs * A.value.style.chart.layout.segmentNames.offsetRatio, J.value.arcs * A.value.style.chart.layout.segmentNames.offsetRatio, 1, 1, 1, 180, 109.9495, 40 * z.value.trackSize)), X = u(() => Y.value.map((e) => J.value.arcs * A.value.style.chart.layout.segmentNames.offsetRatio * (e.nameOffsetRatio || 1))), Qt = u(() => {
|
|
355
|
-
let { x: e, y: t } = n({
|
|
356
|
-
initX: Y.value[0].firstSeparator.x,
|
|
357
|
-
initY: Y.value[0].firstSeparator.y,
|
|
358
|
-
centerX: U.value.x1,
|
|
359
|
-
centerY: U.value.y1,
|
|
360
|
-
offset: -A.value.style.chart.layout.segmentSeparators.offsetIn
|
|
361
|
-
}), { x: r, y: i } = n({
|
|
362
|
-
initX: Y.value[0].startX,
|
|
363
|
-
initY: Y.value[0].startY,
|
|
364
|
-
centerX: U.value.x1,
|
|
365
|
-
centerY: U.value.y1,
|
|
366
|
-
offset: A.value.style.chart.layout.segmentSeparators.offsetOut
|
|
367
|
-
});
|
|
368
|
-
return {
|
|
369
|
-
x1: e,
|
|
370
|
-
y1: t,
|
|
371
|
-
x2: r,
|
|
372
|
-
y2: i
|
|
373
|
-
};
|
|
374
|
-
}), $t = u(() => Y.value.map((e) => {
|
|
375
|
-
let { x: t, y: r } = n({
|
|
376
|
-
initX: e.separator.x,
|
|
377
|
-
initY: e.separator.y,
|
|
378
|
-
centerX: U.value.x1,
|
|
379
|
-
centerY: U.value.y1,
|
|
380
|
-
offset: -A.value.style.chart.layout.segmentSeparators.offsetIn
|
|
381
|
-
}), { x: i, y: a } = n({
|
|
382
|
-
initX: e.endX,
|
|
383
|
-
initY: e.endY,
|
|
384
|
-
centerX: U.value.x1,
|
|
385
|
-
centerY: U.value.y1,
|
|
386
|
-
offset: A.value.style.chart.layout.segmentSeparators.offsetOut
|
|
387
|
-
});
|
|
388
|
-
return {
|
|
389
|
-
x1: t,
|
|
390
|
-
y1: r,
|
|
391
|
-
x2: i,
|
|
392
|
-
y2: a
|
|
393
|
-
};
|
|
394
|
-
}));
|
|
395
|
-
function en(e) {
|
|
396
|
-
if (e.reduce((e, t) => e + t, 0) > 100) throw Error("Total % must not exceed 100");
|
|
397
|
-
let t = 0;
|
|
398
|
-
return e.map((e) => (t += e, `${t / 100 * 50 - e / 4}%`));
|
|
399
|
-
}
|
|
400
|
-
let tn = u(() => en(Y.value.map((e) => e.proportion * 100))), nn = u(() => r({ series: L.value.series }, z.value.width / 2, J.value.base, J.value.gradients, J.value.gradients, .95, 1, 1, 180, 110.02, 2 * z.value.trackSize)), rn = u(() => {
|
|
401
|
-
let e = V.value >= 0 ? -V.value : Math.abs(V.value);
|
|
402
|
-
return i({
|
|
403
|
-
radius: A.value.style.chart.layout.indicatorArc.radius * z.value.trackSize,
|
|
404
|
-
centerX: z.value.width / 2,
|
|
405
|
-
centerY: J.value.base,
|
|
406
|
-
percentage: de((H.value + e) / (B.value + e))
|
|
407
|
-
});
|
|
408
|
-
}), Z = y(!1);
|
|
409
|
-
function an(e) {
|
|
410
|
-
Z.value = e, At.value += 1;
|
|
411
|
-
}
|
|
412
|
-
let Q = y(!1);
|
|
413
|
-
function $() {
|
|
414
|
-
Q.value = !Q.value;
|
|
415
|
-
}
|
|
416
|
-
async function on({ scale: e = 2 } = {}) {
|
|
417
|
-
if (!D.value) return;
|
|
418
|
-
let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ye({
|
|
419
|
-
domElement: D.value,
|
|
420
|
-
base64: !0,
|
|
421
|
-
img: !0,
|
|
422
|
-
scale: e
|
|
423
|
-
});
|
|
424
|
-
return {
|
|
425
|
-
imageUri: i,
|
|
426
|
-
base64: a,
|
|
427
|
-
title: A.value.style.chart.title.text,
|
|
428
|
-
width: t,
|
|
429
|
-
height: n,
|
|
430
|
-
aspectRatio: r
|
|
431
|
-
};
|
|
432
|
-
}
|
|
433
|
-
let sn = u(() => A.value.style.chart.backgroundColor), { exportSvg: cn, getSvg: ln } = ge({
|
|
434
|
-
svg: P,
|
|
435
|
-
title: u(() => A.value.style.chart.title),
|
|
436
|
-
backgroundColor: sn
|
|
437
|
-
});
|
|
438
|
-
async function un({ isCb: e }) {
|
|
439
|
-
k.value = !0, await je();
|
|
440
|
-
try {
|
|
441
|
-
if (e) {
|
|
442
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await ln();
|
|
443
|
-
await Promise.resolve(A.value.userOptions.callbacks.svg({
|
|
444
|
-
blob: e,
|
|
445
|
-
url: t,
|
|
446
|
-
text: n,
|
|
447
|
-
dataUrl: r
|
|
448
|
-
}));
|
|
449
|
-
} else await Promise.resolve(cn());
|
|
450
|
-
} finally {
|
|
451
|
-
k.value = !1;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
function dn(e) {
|
|
455
|
-
if (e?.stage === "start") {
|
|
456
|
-
O.value = !0;
|
|
457
|
-
return;
|
|
458
|
-
}
|
|
459
|
-
if (e?.stage === "end") {
|
|
460
|
-
O.value = !1;
|
|
461
|
-
return;
|
|
462
|
-
}
|
|
463
|
-
Ut();
|
|
464
|
-
}
|
|
465
|
-
async function fn() {
|
|
466
|
-
if (Dt("copyAlt", {
|
|
467
|
-
config: A.value,
|
|
468
|
-
dataset: L.value
|
|
469
|
-
}), !A.value.userOptions.callbacks.altCopy) {
|
|
470
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
471
|
-
return;
|
|
472
|
-
}
|
|
473
|
-
await Promise.resolve(A.value.userOptions.callbacks.altCopy({
|
|
474
|
-
config: A.value,
|
|
475
|
-
dataset: L.value
|
|
476
|
-
}));
|
|
477
|
-
}
|
|
478
|
-
return xe({
|
|
479
|
-
getImage: on,
|
|
480
|
-
generatePdf: Ht,
|
|
481
|
-
generateImage: Ut,
|
|
482
|
-
generateSvg: un,
|
|
483
|
-
toggleAnnotator: $,
|
|
484
|
-
toggleFullscreen: an,
|
|
485
|
-
copyAlt: fn
|
|
486
|
-
}), (e, t) => (v(), p("div", {
|
|
487
|
-
class: Me(`vue-data-ui-component vue-ui-gauge ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
488
|
-
ref_key: "gaugeChart",
|
|
489
|
-
ref: D,
|
|
490
|
-
id: `vue-ui-gauge_${E.value}`,
|
|
491
|
-
style: Ne(`font-family:${A.value.style.fontFamily};width:100%; text-align:center;background:${A.value.style.chart.backgroundColor};${A.value.responsive ? "height: 100%" : ""}`),
|
|
492
|
-
onMouseenter: t[0] ||= () => C(zt)(!0),
|
|
493
|
-
onMouseleave: t[1] ||= () => C(zt)(!1)
|
|
494
|
-
}, [
|
|
495
|
-
A.value.userOptions.buttons.annotator ? (v(), d(C(xt), {
|
|
496
|
-
key: 0,
|
|
497
|
-
svgRef: C(P),
|
|
498
|
-
backgroundColor: A.value.style.chart.backgroundColor,
|
|
499
|
-
color: A.value.style.chart.color,
|
|
500
|
-
active: Q.value,
|
|
501
|
-
isCursorPointer: It.value,
|
|
502
|
-
onClose: $
|
|
503
|
-
}, {
|
|
504
|
-
"annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
505
|
-
"annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
|
|
506
|
-
"annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
|
|
507
|
-
"annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
|
|
508
|
-
"annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
|
|
509
|
-
"annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
|
|
510
|
-
_: 3
|
|
511
|
-
}, 8, [
|
|
512
|
-
"svgRef",
|
|
513
|
-
"backgroundColor",
|
|
514
|
-
"color",
|
|
515
|
-
"active",
|
|
516
|
-
"isCursorPointer"
|
|
517
|
-
])) : f("", !0),
|
|
518
|
-
Wt.value ? (v(), p("div", {
|
|
519
|
-
key: 1,
|
|
520
|
-
ref_key: "noTitle",
|
|
521
|
-
ref: Pt,
|
|
522
|
-
class: "vue-data-ui-no-title-space",
|
|
523
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
524
|
-
}, null, 512)) : f("", !0),
|
|
525
|
-
A.value.style.chart.title.text ? (v(), p("div", {
|
|
526
|
-
key: 2,
|
|
527
|
-
ref_key: "chartTitle",
|
|
528
|
-
ref: jt,
|
|
529
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
530
|
-
}, [(v(), d(be, {
|
|
531
|
-
key: `title_${Ft.value}`,
|
|
532
|
-
config: {
|
|
533
|
-
title: {
|
|
534
|
-
cy: "gauge-div-title",
|
|
535
|
-
...A.value.style.chart.title
|
|
536
|
-
},
|
|
537
|
-
subtitle: {
|
|
538
|
-
cy: "gauge-div-subtitle",
|
|
539
|
-
...A.value.style.chart.title.subtitle
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
}, {
|
|
543
|
-
default: w(() => [A.value.translations.base && C(j).base ? (v(), p("span", Ve, S(A.value.translations.base) + ": " + S(C(j).base), 1)) : f("", !0)]),
|
|
544
|
-
_: 1
|
|
545
|
-
}, 8, ["config"]))], 512)) : f("", !0),
|
|
546
|
-
A.value.userOptions.show && Ot.value && (C(Bt) || C(N)) ? (v(), d(C(St), {
|
|
547
|
-
ref_key: "details",
|
|
548
|
-
ref: kt,
|
|
549
|
-
key: `user_options_${At.value}`,
|
|
550
|
-
backgroundColor: A.value.style.chart.backgroundColor,
|
|
551
|
-
color: A.value.style.chart.color,
|
|
552
|
-
isImaging: C(Vt),
|
|
553
|
-
isPrinting: C(I),
|
|
554
|
-
uid: E.value,
|
|
555
|
-
hasXls: !1,
|
|
556
|
-
hasPdf: A.value.userOptions.buttons.pdf,
|
|
557
|
-
hasImg: A.value.userOptions.buttons.img,
|
|
558
|
-
hasSvg: A.value.userOptions.buttons.svg,
|
|
559
|
-
hasFullscreen: A.value.userOptions.buttons.fullscreen,
|
|
560
|
-
hasAltCopy: A.value.userOptions.buttons.altCopy,
|
|
561
|
-
isFullscreen: Z.value,
|
|
562
|
-
titles: { ...A.value.userOptions.buttonTitles },
|
|
563
|
-
chartElement: D.value,
|
|
564
|
-
callbacks: A.value.userOptions.callbacks,
|
|
565
|
-
printScale: A.value.userOptions.print.scale,
|
|
566
|
-
position: A.value.userOptions.position,
|
|
567
|
-
hasAnnotator: A.value.userOptions.buttons.annotator,
|
|
568
|
-
isAnnotation: Q.value,
|
|
569
|
-
isCursorPointer: It.value,
|
|
570
|
-
onToggleFullscreen: an,
|
|
571
|
-
onGeneratePdf: C(Ht),
|
|
572
|
-
onGenerateImage: dn,
|
|
573
|
-
onGenerateSvg: un,
|
|
574
|
-
onToggleAnnotator: $,
|
|
575
|
-
onCopyAlt: fn,
|
|
576
|
-
style: Ne({ visibility: C(Bt) ? C(N) ? "visible" : "hidden" : "visible" })
|
|
577
|
-
}, Oe({ _: 2 }, [
|
|
578
|
-
e.$slots.menuIcon ? {
|
|
579
|
-
name: "menuIcon",
|
|
580
|
-
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", _(h({
|
|
581
|
-
isOpen: t,
|
|
582
|
-
color: n
|
|
583
|
-
})), void 0, !0)]),
|
|
584
|
-
key: "0"
|
|
585
|
-
} : void 0,
|
|
586
|
-
e.$slots.optionPdf ? {
|
|
587
|
-
name: "optionPdf",
|
|
588
|
-
fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
589
|
-
key: "1"
|
|
590
|
-
} : void 0,
|
|
591
|
-
e.$slots.optionImg ? {
|
|
592
|
-
name: "optionImg",
|
|
593
|
-
fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
594
|
-
key: "2"
|
|
595
|
-
} : void 0,
|
|
596
|
-
e.$slots.optionSvg ? {
|
|
597
|
-
name: "optionSvg",
|
|
598
|
-
fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
599
|
-
key: "3"
|
|
600
|
-
} : void 0,
|
|
601
|
-
e.$slots.optionFullscreen ? {
|
|
602
|
-
name: "optionFullscreen",
|
|
603
|
-
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", _(h({
|
|
604
|
-
toggleFullscreen: t,
|
|
605
|
-
isFullscreen: n
|
|
606
|
-
})), void 0, !0)]),
|
|
607
|
-
key: "4"
|
|
608
|
-
} : void 0,
|
|
609
|
-
e.$slots.optionAnnotator ? {
|
|
610
|
-
name: "optionAnnotator",
|
|
611
|
-
fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", _(h({
|
|
612
|
-
toggleAnnotator: t,
|
|
613
|
-
isAnnotator: n
|
|
614
|
-
})), void 0, !0)]),
|
|
615
|
-
key: "5"
|
|
616
|
-
} : void 0,
|
|
617
|
-
e.$slots.optionAltCopy ? {
|
|
618
|
-
name: "optionAltCopy",
|
|
619
|
-
fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
|
|
620
|
-
key: "6"
|
|
621
|
-
} : void 0,
|
|
622
|
-
e.$slots["custom-menu-before"] ? {
|
|
623
|
-
name: "custom-menu-before",
|
|
624
|
-
fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
625
|
-
key: "7"
|
|
626
|
-
} : void 0,
|
|
627
|
-
e.$slots["custom-menu-after"] ? {
|
|
628
|
-
name: "custom-menu-after",
|
|
629
|
-
fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
630
|
-
key: "8"
|
|
631
|
-
} : void 0
|
|
632
|
-
]), 1032, [
|
|
633
|
-
"backgroundColor",
|
|
634
|
-
"color",
|
|
635
|
-
"isImaging",
|
|
636
|
-
"isPrinting",
|
|
637
|
-
"uid",
|
|
638
|
-
"hasPdf",
|
|
639
|
-
"hasImg",
|
|
640
|
-
"hasSvg",
|
|
641
|
-
"hasFullscreen",
|
|
642
|
-
"hasAltCopy",
|
|
643
|
-
"isFullscreen",
|
|
644
|
-
"titles",
|
|
645
|
-
"chartElement",
|
|
646
|
-
"callbacks",
|
|
647
|
-
"printScale",
|
|
648
|
-
"position",
|
|
649
|
-
"hasAnnotator",
|
|
650
|
-
"isAnnotation",
|
|
651
|
-
"isCursorPointer",
|
|
652
|
-
"onGeneratePdf",
|
|
653
|
-
"style"
|
|
654
|
-
])) : f("", !0),
|
|
655
|
-
(v(), p("svg", {
|
|
656
|
-
ref_key: "svgRef",
|
|
657
|
-
ref: P,
|
|
658
|
-
xmlns: C(le),
|
|
659
|
-
class: Me({
|
|
660
|
-
"vue-data-ui-fullscreen--on": Z.value,
|
|
661
|
-
"vue-data-ui-fulscreen--off": !Z.value
|
|
662
|
-
}),
|
|
663
|
-
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
664
|
-
style: Ne(`max-width:100%;overflow:hidden !important;background:transparent;color:${A.value.style.chart.color}`)
|
|
665
|
-
}, [
|
|
666
|
-
ke(C(Ct)),
|
|
667
|
-
e.$slots["chart-background"] ? (v(), p("foreignObject", {
|
|
668
|
-
key: 0,
|
|
669
|
-
x: 0,
|
|
670
|
-
y: 0,
|
|
671
|
-
width: z.value.width <= 0 ? 10 : z.value.width,
|
|
672
|
-
height: z.value.height <= 0 ? 10 : z.value.height,
|
|
673
|
-
style: { pointerEvents: "none" }
|
|
674
|
-
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Ue)) : f("", !0),
|
|
675
|
-
m("defs", null, [m("radialGradient", {
|
|
676
|
-
id: `gradient_${E.value}`,
|
|
677
|
-
cx: "50%",
|
|
678
|
-
cy: "50%",
|
|
679
|
-
r: "50%",
|
|
680
|
-
fx: "50%",
|
|
681
|
-
fy: "50%"
|
|
682
|
-
}, [
|
|
683
|
-
m("stop", {
|
|
684
|
-
offset: "0%",
|
|
685
|
-
"stop-color": C(ne)("#FFFFFF", 1)
|
|
686
|
-
}, null, 8, Ge),
|
|
687
|
-
m("stop", {
|
|
688
|
-
offset: "80%",
|
|
689
|
-
"stop-color": C(ne)("#FFFFFF", A.value.style.chart.layout.track.gradientIntensity)
|
|
690
|
-
}, null, 8, Ke),
|
|
691
|
-
m("stop", {
|
|
692
|
-
offset: "100%",
|
|
693
|
-
"stop-color": C(ne)("#FFFFFF", 1)
|
|
694
|
-
}, null, 8, qe)
|
|
695
|
-
], 8, We)]),
|
|
696
|
-
m("defs", null, [m("filter", {
|
|
697
|
-
id: `blur_${E.value}`,
|
|
698
|
-
x: "-50%",
|
|
699
|
-
y: "-50%",
|
|
700
|
-
width: "200%",
|
|
701
|
-
height: "200%"
|
|
702
|
-
}, [m("feGaussianBlur", {
|
|
703
|
-
in: "SourceGraphic",
|
|
704
|
-
stdDeviation: 100 / A.value.style.chart.layout.track.gradientIntensity
|
|
705
|
-
}, null, 8, Ye)], 8, Je)]),
|
|
706
|
-
e.$slots.pattern ? (v(), p("g", Xe, [(v(!0), p(l, null, b(Y.value, (t, n) => (v(), p("defs", null, [x(e.$slots, "pattern", g({ ref_for: !0 }, {
|
|
707
|
-
seriesIndex: n,
|
|
708
|
-
patternId: `pattern_${E.value}_${n}`
|
|
709
|
-
}), void 0, !0)]))), 256))])) : f("", !0),
|
|
710
|
-
(v(!0), p(l, null, b(Y.value, (e, t) => (v(), p("path", {
|
|
711
|
-
key: `arc_${t}`,
|
|
712
|
-
d: e.arcSlice,
|
|
713
|
-
fill: e.color,
|
|
714
|
-
stroke: A.value.style.chart.backgroundColor,
|
|
715
|
-
"stroke-linecap": "round"
|
|
716
|
-
}, null, 8, Ze))), 128)),
|
|
717
|
-
e.$slots.pattern ? (v(!0), p(l, { key: 2 }, b(Y.value, (e, t) => (v(), p("path", {
|
|
718
|
-
key: `arc_${t}`,
|
|
719
|
-
d: e.arcSlice,
|
|
720
|
-
fill: `url(#pattern_${E.value}_${t})`,
|
|
721
|
-
stroke: A.value.style.chart.backgroundColor,
|
|
722
|
-
"stroke-linecap": "round"
|
|
723
|
-
}, null, 8, Qe))), 128)) : f("", !0),
|
|
724
|
-
A.value.style.chart.layout.indicatorArc.show ? (v(), p("path", {
|
|
725
|
-
key: 3,
|
|
726
|
-
d: rn.value,
|
|
727
|
-
fill: A.value.style.chart.layout.indicatorArc.fill
|
|
728
|
-
}, null, 8, $e)) : f("", !0),
|
|
729
|
-
A.value.style.chart.layout.segmentNames.show && A.value.style.chart.layout.segmentNames.curved ? (v(), p(l, { key: 4 }, [(v(!0), p(l, null, b(Y.value, (e, t) => (v(), p("path", {
|
|
730
|
-
id: `curve_${E.value}_${t}`,
|
|
731
|
-
d: `M ${U.value.x1},${U.value.y1} m -${X.value[t]},0 a ${X.value[t]},${X.value[t]} 0 1,1 ${2 * X.value[t]},0 a ${X.value[t]},${X.value[t]} 0 1,1 -${2 * X.value[t]},0`,
|
|
732
|
-
fill: "transparent"
|
|
733
|
-
}, null, 8, et))), 256)), (v(!0), p(l, null, b(Y.value, (e, t) => (v(), p("text", {
|
|
734
|
-
fill: A.value.style.chart.layout.segmentNames.useSerieColor ? e.color : A.value.style.chart.layout.segmentNames.color,
|
|
735
|
-
"font-size": K.value,
|
|
736
|
-
"font-weight": A.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
737
|
-
"text-anchor": "middle"
|
|
738
|
-
}, [m("textPath", {
|
|
739
|
-
href: `#curve_${E.value}_${t}`,
|
|
740
|
-
startOffset: tn.value[t]
|
|
741
|
-
}, S(e.name || ""), 9, nt)], 8, tt))), 256))], 64)) : f("", !0),
|
|
742
|
-
A.value.style.chart.layout.segmentNames.show && !A.value.style.chart.layout.segmentNames.curved ? (v(!0), p(l, { key: 5 }, b(Zt.value, (e, t) => (v(), p("text", {
|
|
743
|
-
class: "vue-ui-gauge-label-flat",
|
|
744
|
-
"text-anchor": C(ue)(e, !1, 12).anchor,
|
|
745
|
-
fill: A.value.style.chart.layout.segmentNames.useSerieColor ? e.color : A.value.style.chart.layout.segmentNames.color,
|
|
746
|
-
"font-size": K.value,
|
|
747
|
-
"font-weight": A.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
748
|
-
innerHTML: C(ie)({
|
|
749
|
-
content: String(e.name ?? ""),
|
|
750
|
-
fontSize: K.value,
|
|
751
|
-
fill: A.value.style.chart.layout.segmentNames.useSerieColor ? e.color : A.value.style.chart.layout.segmentNames.color,
|
|
752
|
-
x: e.center.endX,
|
|
753
|
-
y: e.center.endY
|
|
754
|
-
})
|
|
755
|
-
}, null, 8, rt))), 256)) : f("", !0),
|
|
756
|
-
A.value.style.chart.layout.track.useGradient ? (v(!0), p(l, { key: 6 }, b(nn.value, (e, t) => (v(), p("path", {
|
|
757
|
-
key: `arc_${t}`,
|
|
758
|
-
d: e.arcSlice,
|
|
759
|
-
fill: "#FFFFFF",
|
|
760
|
-
stroke: "none",
|
|
761
|
-
"stroke-linecap": "round",
|
|
762
|
-
filter: `url(#blur_${E.value})`
|
|
763
|
-
}, null, 8, it))), 128)) : f("", !0),
|
|
764
|
-
A.value.style.chart.layout.segmentSeparators.show ? (v(), p(l, { key: 7 }, [
|
|
765
|
-
m("line", g(Qt.value, {
|
|
766
|
-
stroke: A.value.style.chart.backgroundColor,
|
|
767
|
-
"stroke-width": A.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
768
|
-
"stroke-linecap": "round"
|
|
769
|
-
}), null, 16, at),
|
|
770
|
-
m("line", g(Qt.value, {
|
|
771
|
-
stroke: A.value.style.chart.layout.segmentSeparators.stroke,
|
|
772
|
-
"stroke-width": A.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
773
|
-
"stroke-linecap": "round"
|
|
774
|
-
}), null, 16, ot),
|
|
775
|
-
(v(!0), p(l, null, b($t.value, (e) => (v(), p("line", g({ ref_for: !0 }, e, {
|
|
776
|
-
stroke: A.value.style.chart.backgroundColor,
|
|
777
|
-
"stroke-width": A.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
778
|
-
"stroke-linecap": "round"
|
|
779
|
-
}), null, 16, st))), 256)),
|
|
780
|
-
(v(!0), p(l, null, b($t.value, (e) => (v(), p("line", g({ ref_for: !0 }, e, {
|
|
781
|
-
stroke: A.value.style.chart.layout.segmentSeparators.stroke,
|
|
782
|
-
"stroke-width": A.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
783
|
-
"stroke-linecap": "round"
|
|
784
|
-
}), null, 16, ct))), 256))
|
|
785
|
-
], 64)) : f("", !0),
|
|
786
|
-
A.value.style.chart.layout.markers.show ? (v(), p("g", lt, [(v(!0), p(l, null, b(Y.value, (e, t) => (v(), p("text", {
|
|
787
|
-
x: C(n)({
|
|
788
|
-
centerX: U.value.x1,
|
|
789
|
-
centerY: J.value.base,
|
|
790
|
-
initX: e.center.startX,
|
|
791
|
-
initY: e.center.startY,
|
|
792
|
-
offset: z.value.markerOffset
|
|
793
|
-
}).x,
|
|
794
|
-
y: C(n)({
|
|
795
|
-
centerX: U.value.x1,
|
|
796
|
-
centerY: J.value.base,
|
|
797
|
-
initX: e.center.startX,
|
|
798
|
-
initY: e.center.startY,
|
|
799
|
-
offset: z.value.markerOffset
|
|
800
|
-
}).y,
|
|
801
|
-
"text-anchor": e.center.startX < U.value.x1 - 5 ? "end" : e.center.startX > U.value.x1 + 5 ? "start" : "middle",
|
|
802
|
-
"font-size": z.value.labelFontSize * A.value.style.chart.layout.markers.fontSizeRatio,
|
|
803
|
-
"font-weight": `${A.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
804
|
-
fill: A.value.style.chart.layout.markers.color
|
|
805
|
-
}, S(C(c)(A.value.style.chart.layout.markers.formatter, e.from, C(s)({
|
|
806
|
-
p: A.value.style.chart.layout.markers.prefix,
|
|
807
|
-
v: e.from,
|
|
808
|
-
s: A.value.style.chart.layout.markers.suffix,
|
|
809
|
-
r: A.value.style.chart.layout.markers.roundingValue
|
|
810
|
-
}))), 9, ut))), 256))])) : f("", !0),
|
|
811
|
-
A.value.style.chart.layout.markers.show ? (v(), p("text", {
|
|
812
|
-
key: 9,
|
|
813
|
-
x: C(n)({
|
|
814
|
-
centerX: z.value.width / 2,
|
|
815
|
-
centerY: J.value.base,
|
|
816
|
-
initX: Y.value.at(-1).endX,
|
|
817
|
-
initY: Y.value.at(-1).endY,
|
|
818
|
-
offset: z.value.markerOffset
|
|
819
|
-
}).x,
|
|
820
|
-
y: C(n)({
|
|
821
|
-
centerX: z.value.width / 2,
|
|
822
|
-
centerY: J.value.base,
|
|
823
|
-
initX: Y.value.at(-1).endX,
|
|
824
|
-
initY: Y.value.at(-1).endY,
|
|
825
|
-
offset: z.value.markerOffset
|
|
826
|
-
}).y,
|
|
827
|
-
"text-anchor": "start",
|
|
828
|
-
"font-size": z.value.labelFontSize * A.value.style.chart.layout.markers.fontSizeRatio,
|
|
829
|
-
"font-weight": `${A.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
830
|
-
fill: A.value.style.chart.layout.markers.color
|
|
831
|
-
}, S(C(c)(A.value.style.chart.layout.markers.formatter, B.value, C(s)({
|
|
832
|
-
p: A.value.style.chart.layout.markers.prefix,
|
|
833
|
-
v: B.value,
|
|
834
|
-
s: A.value.style.chart.layout.markers.suffix,
|
|
835
|
-
r: A.value.style.chart.layout.markers.roundingValue
|
|
836
|
-
}))), 9, dt)) : f("", !0),
|
|
837
|
-
A.value.style.chart.layout.pointer.show ? (v(), p(l, { key: 10 }, [A.value.style.chart.layout.pointer.type === "rounded" ? (v(), p("g", ft, [
|
|
838
|
-
isNaN(U.value.x2) ? f("", !0) : (v(), p("line", {
|
|
839
|
-
key: 0,
|
|
840
|
-
x1: U.value.x1,
|
|
841
|
-
y1: U.value.y1,
|
|
842
|
-
x2: U.value.x2,
|
|
843
|
-
y2: U.value.y2,
|
|
844
|
-
stroke: A.value.style.chart.layout.pointer.stroke,
|
|
845
|
-
"stroke-width": z.value.pointerStrokeWidth,
|
|
846
|
-
"stroke-linecap": "round"
|
|
847
|
-
}, null, 8, pt)),
|
|
848
|
-
isNaN(U.value.x2) ? f("", !0) : (v(), p("line", {
|
|
849
|
-
key: 1,
|
|
850
|
-
x1: U.value.x1,
|
|
851
|
-
y1: U.value.y1,
|
|
852
|
-
x2: U.value.x2,
|
|
853
|
-
y2: U.value.y2,
|
|
854
|
-
stroke: A.value.style.chart.layout.pointer.useRatingColor ? qt.value : A.value.style.chart.layout.pointer.color,
|
|
855
|
-
"stroke-linecap": "round",
|
|
856
|
-
"stroke-width": z.value.pointerStrokeWidth * .7
|
|
857
|
-
}, null, 8, mt)),
|
|
858
|
-
!isNaN(U.value.x2) && A.value.style.chart.layout.track.useGradient ? (v(), p("line", {
|
|
859
|
-
key: 2,
|
|
860
|
-
x1: U.value.x1,
|
|
861
|
-
y1: U.value.y1,
|
|
862
|
-
x2: U.value.x2,
|
|
863
|
-
y2: U.value.y2,
|
|
864
|
-
stroke: "white",
|
|
865
|
-
"stroke-linecap": "round",
|
|
866
|
-
"stroke-width": z.value.pointerStrokeWidth * .3,
|
|
867
|
-
filter: `url(#blur_${E.value})`
|
|
868
|
-
}, null, 8, ht)) : f("", !0)
|
|
869
|
-
])) : (v(), p("g", gt, [Kt.value ? (v(), p("path", {
|
|
870
|
-
key: 0,
|
|
871
|
-
d: Kt.value,
|
|
872
|
-
fill: A.value.style.chart.layout.pointer.useRatingColor ? qt.value : A.value.style.chart.layout.pointer.color,
|
|
873
|
-
stroke: A.value.style.chart.layout.pointer.stroke,
|
|
874
|
-
"stroke-width": A.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
875
|
-
"stroke-linejoin": "round"
|
|
876
|
-
}, null, 8, _t)) : f("", !0)])), m("circle", {
|
|
877
|
-
cx: z.value.width / 2,
|
|
878
|
-
cy: J.value.base,
|
|
879
|
-
fill: A.value.style.chart.layout.pointer.circle.color,
|
|
880
|
-
r: z.value.pointerRadius <= 0 ? 1e-4 : z.value.pointerRadius,
|
|
881
|
-
"stroke-width": A.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
882
|
-
stroke: A.value.style.chart.layout.pointer.circle.stroke
|
|
883
|
-
}, null, 8, vt)], 64)) : f("", !0),
|
|
884
|
-
A.value.style.chart.legend.show ? (v(), p("text", {
|
|
885
|
-
key: 11,
|
|
886
|
-
x: z.value.width / 2,
|
|
887
|
-
y: J.value.ratingBase,
|
|
888
|
-
"text-anchor": "middle",
|
|
889
|
-
"font-size": z.value.legendFontSize,
|
|
890
|
-
"font-weight": "bold",
|
|
891
|
-
fill: A.value.style.chart.legend.useRatingColor ? qt.value : A.value.style.chart.legend.color
|
|
892
|
-
}, S(C(c)(A.value.style.chart.legend.formatter, H.value, C(s)({
|
|
893
|
-
p: A.value.style.chart.legend.prefix + (A.value.style.chart.legend.showPlusSymbol && H.value > 0 ? "+" : ""),
|
|
894
|
-
v: H.value,
|
|
895
|
-
s: A.value.style.chart.legend.suffix,
|
|
896
|
-
r: A.value.style.chart.legend.roundingValue
|
|
897
|
-
}))), 9, yt)) : f("", !0),
|
|
898
|
-
x(e.$slots, "svg", { svg: {
|
|
899
|
-
...z.value,
|
|
900
|
-
isPrintingImg: C(I) || C(Vt) || O.value,
|
|
901
|
-
isPrintingSvg: k.value
|
|
902
|
-
} }, void 0, !0)
|
|
903
|
-
], 14, He)),
|
|
904
|
-
e.$slots.watermark ? (v(), p("div", bt, [x(e.$slots, "watermark", _(h({ isPrinting: C(I) || C(Vt) || O.value || k.value })), void 0, !0)])) : f("", !0),
|
|
905
|
-
m("div", {
|
|
906
|
-
ref_key: "chartLegend",
|
|
907
|
-
ref: Mt
|
|
908
|
-
}, [x(e.$slots, "legend", { legend: L.value }, void 0, !0)], 512),
|
|
909
|
-
e.$slots.source ? (v(), p("div", {
|
|
910
|
-
key: 5,
|
|
911
|
-
ref_key: "source",
|
|
912
|
-
ref: Nt,
|
|
913
|
-
dir: "auto"
|
|
914
|
-
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
915
|
-
x(e.$slots, "skeleton", {}, () => [C(Rt) ? (v(), d(he, { key: 0 })) : f("", !0)], !0)
|
|
916
|
-
], 46, Be));
|
|
917
|
-
}
|
|
918
|
-
}, [["__scopeId", "data-v-a2cc058b"]]);
|
|
919
|
-
//#endregion
|
|
920
|
-
export { ze as n, xt as t };
|