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