vue-data-ui 3.22.2 → 3.22.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BGhJI-qh.js → Arrow-CgzmXCW_.js} +1 -1
- package/dist/{BaseDraggableDialog-a9xCKjW-.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
- package/dist/{BaseIcon-DEtwcvEH.js → BaseIcon-xBuW2jjI.js} +1 -1
- package/dist/{BaseLegendToggle-B-lM0iV1.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
- package/dist/{BaseZoomControls-BjjT6vtB.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
- package/dist/{ColorPicker-DMLahA2S.js → ColorPicker-Usv7badH.js} +2 -2
- package/dist/{DataTable-DJZgdnIn.js → DataTable-PidUPOit.js} +2 -2
- package/dist/Legend-DXOzbXb-.js +156 -0
- package/dist/{NonSvgPenAndPaper-Dwq_M6Bz.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
- package/dist/{PackageVersion-Dx81ZIAL.js → PackageVersion-Cm-3hwIF.js} +1 -1
- package/dist/{PenAndPaper-DJIIG6dv.js → PenAndPaper-ISUbDKXq.js} +11 -11
- package/dist/{Shape-C5OvuwII.js → Shape-BnF9aMPX.js} +3 -3
- package/dist/Slicer-hEvKOLw3.js +1145 -0
- package/dist/{SlicerPreview-CAhqG_ZQ.js → SlicerPreview-BDI-aCXE.js} +36 -35
- package/dist/{SparkTooltip-DTzo8Sah.js → SparkTooltip-DaWSTzfA.js} +1 -1
- package/dist/{Title-CVYf1f8m.js → Title-DDEEO-Nr.js} +1 -1
- package/dist/{Tooltip-BmGCBJuU.js → Tooltip-BhKov422.js} +1 -1
- package/dist/{UserOptions-xqbNpHi2.js → UserOptions-BxT1XHzN.js} +2 -2
- package/dist/components/arrow.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-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-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/{dom-to-png-rjAIVHxa.js → dom-to-png-ZOysoMwu.js} +1 -1
- package/dist/exposedLib-C2U48XK7.js +19 -0
- package/dist/img-B29J8tV5.js +129 -0
- package/dist/{labelUtils-C0D1tjig.js → labelUtils-BFcL_t-A.js} +1 -1
- package/dist/{lib-CXicicWN.js → lib-CuwHGt1j.js} +143 -124
- package/dist/{package-CILLITOI.js → package-CRlwXCDr.js} +1 -1
- package/dist/{pdf-ChYv2jb6.js → pdf-ymYt9Lee.js} +1 -1
- package/dist/{render-common-bMAFQ_qf.js → render-common-D6ny-Fwu.js} +22 -22
- 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/types/vue-data-ui.d.ts +69 -2
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-B4-0yo3K.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
- package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
- package/dist/{useNestedProp-APyFoLCQ.js → useNestedProp-BjkuFaz1.js} +1 -1
- package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
- package/dist/{usePrinter-Dng0UK-G.js → usePrinter-C0wAS8yc.js} +3 -3
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-DD-txoS1.js → vue-data-ui-DTWqd0R2.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
- package/dist/{vue-ui-accordion-Di_givzQ.js → vue-ui-accordion-B64IJyPU.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CTwMfsqS.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
- package/dist/{vue-ui-annotator-tRkLFMQ9.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
- package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
- package/dist/{vue-ui-bump-BJ5O8Mps.js → vue-ui-bump-BD0Uq3As.js} +259 -259
- package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
- package/dist/{vue-ui-carousel-table-8s8BSy-K.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
- package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
- package/dist/{vue-ui-chord-1BitQtEw.js → vue-ui-chord-BZhXsZXp.js} +53 -53
- package/dist/{vue-ui-circle-pack-DVMhDFKU.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
- package/dist/{vue-ui-cursor-D7yh10hX.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
- package/dist/{vue-ui-dag--LFEAAf_.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
- package/dist/{vue-ui-dashboard-COeO878g.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
- package/dist/{vue-ui-digits-C50FVr7C.js → vue-ui-digits-07IxTlNO.js} +4 -4
- package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
- package/dist/{vue-ui-donut-BzKXqQA2.js → vue-ui-donut-C5oRCxAO.js} +193 -193
- package/dist/{vue-ui-donut-evolution-lPkwit2C.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
- package/dist/{vue-ui-dumbbell-hlEfvbbf.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
- package/dist/{vue-ui-flow-Bg_OSszc.js → vue-ui-flow-R_dLE1WS.js} +72 -72
- package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
- package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
- package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
- package/dist/{vue-ui-geo-DtzXRvmx.js → vue-ui-geo-DVT9XEC3.js} +18 -18
- package/dist/{vue-ui-gizmo-hIFd7qck.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
- package/dist/{vue-ui-heatmap-yPlwc3l_.js → vue-ui-heatmap-BCFId15K.js} +293 -293
- package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
- package/dist/{vue-ui-horizontal-bar-CJciNHpT.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
- package/dist/{vue-ui-kpi-DmSe1QGb.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
- package/dist/{vue-ui-mini-loader-CqxI6DwN.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
- package/dist/{vue-ui-molecule-w-94Uktn.js → vue-ui-molecule-2pfoR63d.js} +213 -213
- package/dist/{vue-ui-mood-radar-B3OGWGHR.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
- package/dist/{vue-ui-nested-donuts-Dv_yE5EV.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
- package/dist/{vue-ui-onion-BQbI0Vxd.js → vue-ui-onion-CzXx3Rme.js} +293 -293
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
- package/dist/{vue-ui-quadrant-BB7qdXK0.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
- package/dist/{vue-ui-quick-chart-CGDeo3Fx.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
- package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
- package/dist/{vue-ui-rating-ChDwpol2.js → vue-ui-rating-CRziryE2.js} +22 -22
- package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
- package/dist/{vue-ui-ridgeline-Cq8z57xB.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
- package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
- package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
- package/dist/{vue-ui-skeleton-DJ5KAbfV.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
- package/dist/{vue-ui-smiley-fFrNX-Gl.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
- package/dist/{vue-ui-spark-trend-D6OBWxmg.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
- package/dist/{vue-ui-sparkbar-CtCP8O44.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
- package/dist/{vue-ui-sparkgauge-CZDkyViI.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
- package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
- package/dist/{vue-ui-sparkline-CJKE7Xcl.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
- package/dist/{vue-ui-sparkstackbar-BSV0M-2u.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
- package/dist/vue-ui-stackbar-Dqs7_g8D.js +2329 -0
- package/dist/{vue-ui-stackline-DS_MPmc1.js → vue-ui-stackline-IRjugedp.js} +406 -388
- package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
- package/dist/{vue-ui-table-c1FPEwLM.js → vue-ui-table-Bqi9XNvY.js} +64 -64
- package/dist/{vue-ui-table-heatmap-CMQJXnP8.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
- package/dist/{vue-ui-table-sparkline-CAS9Pk60.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
- package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
- package/dist/{vue-ui-timer-CSP48eS-.js → vue-ui-timer-9CDcd-gP.js} +6 -6
- package/dist/{vue-ui-tiremarks-DJvXj1P3.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
- package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
- package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
- package/dist/{vue-ui-wheel-CbL52G-w.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
- package/dist/{vue-ui-word-cloud-BqOCyp7c.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
- package/dist/{vue-ui-world-BkjzCcVh.js → vue-ui-world-vrGT5g1H.js} +127 -127
- package/dist/{vue-ui-xy-CVDNhnDY.js → vue-ui-xy-Cb7u46JN.js} +410 -410
- package/dist/{vue-ui-xy-DuwLRfr4.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
- package/dist/{vue-ui-xy-canvas-CXqGVMeQ.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
- package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
- package/package.json +1 -1
- package/dist/Legend-BVDhEEsC.js +0 -115
- package/dist/Slicer-ClR833cP.js +0 -1144
- package/dist/exposedLib-CffbQxjN.js +0 -19
- package/dist/img-BCAOkqfM.js +0 -74
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +0 -1757
- package/dist/vue-ui-bullet-9gtGJaGb.js +0 -710
- package/dist/vue-ui-candlestick-CJ_VVYbJ.js +0 -1826
- package/dist/vue-ui-chestnut-D3-ck2h2.js +0 -2010
- package/dist/vue-ui-donut-NHjQzFO5.js +0 -2410
- package/dist/vue-ui-funnel-B_bK0jJB.js +0 -777
- package/dist/vue-ui-galaxy-WVCUzcYc.js +0 -1077
- package/dist/vue-ui-gauge-Cqeko0wA.js +0 -920
- package/dist/vue-ui-history-plot-BGmcDg2w.js +0 -1554
- package/dist/vue-ui-parallel-coordinate-plot-ColST3Jj.js +0 -1416
- package/dist/vue-ui-radar-DqDn14DL.js +0 -1281
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +0 -924
- package/dist/vue-ui-rings-Ds-sgNPK.js +0 -1246
- package/dist/vue-ui-scatter-BgOVUzQ3.js +0 -2413
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +0 -560
- package/dist/vue-ui-stackbar-pnlYCnTj.js +0 -2270
- package/dist/vue-ui-strip-plot-DSKOrJZX.js +0 -1340
- package/dist/vue-ui-thermometer-w3eeJv9s.js +0 -763
- package/dist/vue-ui-treemap-BaOMXTR1.js +0 -1587
- package/dist/vue-ui-waffle-Bo22Ph8n.js +0 -1362
|
@@ -0,0 +1,920 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { Et as t, Gt as n, H as r, Lt as i, Ot as a, Q as o, S as ee, T as te, Ut as ne, W as re, Wt as ie, b as ae, i as oe, jt as se, kt as s, q as c, t as ce, u as le, ut as ue, v as de } from "./lib-CuwHGt1j.js";
|
|
3
|
+
import { t as fe } from "./useConfig-pVLia3dt.js";
|
|
4
|
+
import { t as pe } from "./usePrinter-C0wAS8yc.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-BjkuFaz1.js";
|
|
8
|
+
import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as ye } from "./img-B29J8tV5.js";
|
|
10
|
+
import { n as be } from "./Title-DDEEO-Nr.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-DzAZ-MeY.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-ISUbDKXq.js").then((e) => e.t)), St = Ae(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), Ct = Ae(() => import("./PackageVersion-Cm-3hwIF.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(re()), 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(() => n({
|
|
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: n({
|
|
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 : ne[t] || se
|
|
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(() => ee(A.value.customPalette)), L = u(() => {
|
|
194
|
+
if (a(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: ae(e.color) || Gt.value[n] || se[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), ee = t + a * Math.sin(n + Math.PI / 2), te = e + a * Math.cos(n - Math.PI / 2), ne = t + a * Math.sin(n - Math.PI / 2);
|
|
243
|
+
return isNaN(r) ? null : `M ${r},${i} ${o},${ee} ${te},${ne} 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 (a(T.dataset) ? (o({
|
|
263
|
+
componentName: "VueUiGauge",
|
|
264
|
+
type: "dataset",
|
|
265
|
+
debug: q.value
|
|
266
|
+
}), M.value = !0, e = !0) : (ue({
|
|
267
|
+
datasetObject: T.dataset,
|
|
268
|
+
requiredAttributes: ["value", "series"]
|
|
269
|
+
}).forEach((t) => {
|
|
270
|
+
o({
|
|
271
|
+
componentName: "VueUiGauge",
|
|
272
|
+
type: "datasetAttribute",
|
|
273
|
+
property: t,
|
|
274
|
+
debug: q.value
|
|
275
|
+
}), M.value = !0, e = !0;
|
|
276
|
+
}), Object.hasOwn(T.dataset, "series") && (T.dataset.series.length ? T.dataset.series.forEach((t, n) => {
|
|
277
|
+
ue({
|
|
278
|
+
datasetObject: t,
|
|
279
|
+
requiredAttributes: ["from", "to"]
|
|
280
|
+
}).forEach((t) => {
|
|
281
|
+
o({
|
|
282
|
+
componentName: "VueUiGauge",
|
|
283
|
+
type: "datasetSerieAttribute",
|
|
284
|
+
property: t,
|
|
285
|
+
index: n,
|
|
286
|
+
debug: q.value
|
|
287
|
+
}), M.value = !0, e = !0;
|
|
288
|
+
});
|
|
289
|
+
}) : (o({
|
|
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 = ie({
|
|
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 = ie({
|
|
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 = ie({
|
|
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(() => t({ 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(() => t({ 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 } = s({
|
|
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: n, y: r } = s({
|
|
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: n,
|
|
372
|
+
y2: r
|
|
373
|
+
};
|
|
374
|
+
}), $t = u(() => Y.value.map((e) => {
|
|
375
|
+
let { x: t, y: n } = s({
|
|
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: r, y: i } = s({
|
|
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: n,
|
|
391
|
+
x2: r,
|
|
392
|
+
y2: i
|
|
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(() => t({ 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 te({
|
|
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(ce),
|
|
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(i)("#FFFFFF", 1)
|
|
686
|
+
}, null, 8, Ge),
|
|
687
|
+
m("stop", {
|
|
688
|
+
offset: "80%",
|
|
689
|
+
"stop-color": C(i)("#FFFFFF", A.value.style.chart.layout.track.gradientIntensity)
|
|
690
|
+
}, null, 8, Ke),
|
|
691
|
+
m("stop", {
|
|
692
|
+
offset: "100%",
|
|
693
|
+
"stop-color": C(i)("#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(le)(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(r)({
|
|
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(s)({
|
|
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(s)({
|
|
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(oe)(A.value.style.chart.layout.markers.formatter, e.from, C(c)({
|
|
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(s)({
|
|
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(s)({
|
|
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(oe)(A.value.style.chart.layout.markers.formatter, B.value, C(c)({
|
|
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(oe)(A.value.style.chart.legend.formatter, H.value, C(c)({
|
|
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 };
|