vue-data-ui 3.22.0 → 3.22.2
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-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
- package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
- package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
- package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
- package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
- package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
- package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
- package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
- package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-Dx81ZIAL.js} +1 -1
- package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
- package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
- package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
- package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
- package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
- package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
- package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
- package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
- package/dist/exposedLib-CffbQxjN.js +19 -0
- package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
- package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
- package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
- package/dist/{package-0oRlvBuX.js → package-CILLITOI.js} +1 -1
- package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
- package/dist/{render-common-DSiH7qj-.js → render-common-bMAFQ_qf.js} +2 -2
- 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 +7 -10
- package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
- package/dist/{useConfig-Br1uzq_L.js → useConfig-Bf_EBbe3.js} +4 -1
- package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
- package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-Byts-nf-.js} +1 -1
- package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DD-txoS1.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +1757 -0
- package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Di_givzQ.js} +4 -4
- package/dist/vue-ui-age-pyramid-CTwMfsqS.js +1238 -0
- package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-tRkLFMQ9.js} +60 -60
- package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-9gtGJaGb.js} +23 -23
- package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-BJ5O8Mps.js} +400 -400
- package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-CJ_VVYbJ.js} +50 -50
- package/dist/vue-ui-carousel-table-8s8BSy-K.js +455 -0
- package/dist/vue-ui-chestnut-D3-ck2h2.js +2010 -0
- package/dist/vue-ui-chord-1BitQtEw.js +1391 -0
- package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DVMhDFKU.js} +44 -44
- package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-D7yh10hX.js} +61 -61
- package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag--LFEAAf_.js} +18 -18
- package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-COeO878g.js} +70 -70
- package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-C50FVr7C.js} +4 -4
- package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-BzKXqQA2.js} +160 -160
- package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-NHjQzFO5.js} +474 -474
- package/dist/vue-ui-donut-evolution-lPkwit2C.js +1510 -0
- package/dist/vue-ui-dumbbell-hlEfvbbf.js +1530 -0
- package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-Bg_OSszc.js} +43 -43
- package/dist/vue-ui-funnel-B_bK0jJB.js +777 -0
- package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-WVCUzcYc.js} +301 -301
- package/dist/vue-ui-gauge-Cqeko0wA.js +920 -0
- package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-DtzXRvmx.js} +22 -22
- package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-hIFd7qck.js} +4 -4
- package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-yPlwc3l_.js} +95 -95
- package/dist/vue-ui-history-plot-BGmcDg2w.js +1554 -0
- package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-CJciNHpT.js} +264 -264
- package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DmSe1QGb.js} +4 -4
- package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-CqxI6DwN.js} +3 -3
- package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-w-94Uktn.js} +181 -181
- package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-B3OGWGHR.js} +29 -29
- package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-Dv_yE5EV.js} +211 -211
- package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-BQbI0Vxd.js} +34 -34
- package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-ColST3Jj.js} +40 -40
- package/dist/vue-ui-quadrant-BB7qdXK0.js +1978 -0
- package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-CGDeo3Fx.js} +358 -358
- package/dist/vue-ui-radar-DqDn14DL.js +1281 -0
- package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-ChDwpol2.js} +34 -34
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +924 -0
- package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-Cq8z57xB.js} +219 -219
- package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-Ds-sgNPK.js} +36 -36
- package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-BgOVUzQ3.js} +75 -75
- package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DJ5KAbfV.js} +42 -42
- package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-fFrNX-Gl.js} +17 -17
- package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-D6OBWxmg.js} +92 -92
- package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-CtCP8O44.js} +78 -78
- package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-CZDkyViI.js} +38 -38
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +560 -0
- package/dist/vue-ui-sparkline-CJKE7Xcl.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BSV0M-2u.js} +162 -162
- package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-pnlYCnTj.js} +67 -67
- package/dist/vue-ui-stackline-DS_MPmc1.js +2398 -0
- package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot-DSKOrJZX.js} +49 -49
- package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-c1FPEwLM.js} +87 -87
- package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-CMQJXnP8.js} +17 -17
- package/dist/vue-ui-table-sparkline-CAS9Pk60.js +712 -0
- package/dist/vue-ui-thermometer-w3eeJv9s.js +763 -0
- package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-CSP48eS-.js} +6 -6
- package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-DJvXj1P3.js} +19 -19
- package/dist/vue-ui-treemap-BaOMXTR1.js +1587 -0
- package/dist/vue-ui-waffle-Bo22Ph8n.js +1362 -0
- package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-CbL52G-w.js} +51 -51
- package/dist/vue-ui-word-cloud-BqOCyp7c.js +1723 -0
- package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-BkjzCcVh.js} +445 -445
- package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CVDNhnDY.js} +162 -162
- package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DuwLRfr4.js} +537 -534
- package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CXqGVMeQ.js} +65 -65
- package/package.json +2 -2
- package/dist/exposedLib-BJbE_A8E.js +0 -19
- package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
- package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
- package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
- package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
- package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
- package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
- package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
- package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
- package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
- package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
- package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
- package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
- package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
- package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
- package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
- package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
- package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
- package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
- package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
- package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
- package/dist/vue-ui-word-cloud-BqsUdsCY.js +0 -1656
|
@@ -0,0 +1,920 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { B as t, C as n, Dt as r, Et as i, Ft as a, G as o, H as ee, Ht as s, Ut as te, Vt as ne, X as c, ct as re, i as l, kt as ie, t as ae, u as oe, v as se, wt as ce, x as le, y as ue } from "./lib-CXicicWN.js";
|
|
3
|
+
import { t as de } from "./useConfig-Bf_EBbe3.js";
|
|
4
|
+
import { t as fe } from "./usePrinter-Dng0UK-G.js";
|
|
5
|
+
import { n as pe, t as me } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as he } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as ge } from "./useNestedProp-APyFoLCQ.js";
|
|
8
|
+
import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as ve } from "./img-BCAOkqfM.js";
|
|
10
|
+
import { n as ye } from "./Title-CVYf1f8m.js";
|
|
11
|
+
import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { c as xe } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
+
import { t as Se } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
+
import { t as Ce } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
+
import { t as we } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
+
import { t as Te } from "./useAutoSizeLabelsInsideViewbox-B4-0yo3K.js";
|
|
17
|
+
import { t as Ee } from "./vue_ui_gauge-Cf1RZc9q.js";
|
|
18
|
+
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as De, createVNode as Oe, defineAsyncComponent as ke, guardReactiveProps as g, mergeProps as _, nextTick as Ae, normalizeClass as je, normalizeProps as v, normalizeStyle as Me, onBeforeUnmount as Ne, onMounted as Pe, openBlock as y, ref as b, renderList as x, renderSlot as S, shallowRef as Fe, toDisplayString as C, toRefs as Ie, unref as w, watch as Le, withCtx as T } from "vue";
|
|
19
|
+
//#region src/components/vue-ui-gauge.vue
|
|
20
|
+
var Re = /* @__PURE__ */ e({ default: () => bt }), ze = ["id"], Be = { key: 0 }, Ve = ["xmlns", "viewBox"], He = ["width", "height"], Ue = ["id"], We = ["stop-color"], Ge = ["stop-color"], Ke = ["stop-color"], qe = ["id"], Je = ["stdDeviation"], Ye = { key: 1 }, Xe = [
|
|
21
|
+
"d",
|
|
22
|
+
"fill",
|
|
23
|
+
"stroke"
|
|
24
|
+
], Ze = [
|
|
25
|
+
"d",
|
|
26
|
+
"fill",
|
|
27
|
+
"stroke"
|
|
28
|
+
], Qe = ["d", "fill"], $e = ["id", "d"], et = [
|
|
29
|
+
"fill",
|
|
30
|
+
"font-size",
|
|
31
|
+
"font-weight"
|
|
32
|
+
], tt = ["href", "startOffset"], nt = [
|
|
33
|
+
"text-anchor",
|
|
34
|
+
"fill",
|
|
35
|
+
"font-size",
|
|
36
|
+
"font-weight",
|
|
37
|
+
"innerHTML"
|
|
38
|
+
], rt = ["d", "filter"], it = ["stroke", "stroke-width"], at = ["stroke", "stroke-width"], ot = ["stroke", "stroke-width"], st = ["stroke", "stroke-width"], ct = { key: 8 }, lt = [
|
|
39
|
+
"x",
|
|
40
|
+
"y",
|
|
41
|
+
"text-anchor",
|
|
42
|
+
"font-size",
|
|
43
|
+
"font-weight",
|
|
44
|
+
"fill"
|
|
45
|
+
], ut = [
|
|
46
|
+
"x",
|
|
47
|
+
"y",
|
|
48
|
+
"font-size",
|
|
49
|
+
"font-weight",
|
|
50
|
+
"fill"
|
|
51
|
+
], dt = { key: 0 }, ft = [
|
|
52
|
+
"x1",
|
|
53
|
+
"y1",
|
|
54
|
+
"x2",
|
|
55
|
+
"y2",
|
|
56
|
+
"stroke",
|
|
57
|
+
"stroke-width"
|
|
58
|
+
], pt = [
|
|
59
|
+
"x1",
|
|
60
|
+
"y1",
|
|
61
|
+
"x2",
|
|
62
|
+
"y2",
|
|
63
|
+
"stroke",
|
|
64
|
+
"stroke-width"
|
|
65
|
+
], mt = [
|
|
66
|
+
"x1",
|
|
67
|
+
"y1",
|
|
68
|
+
"x2",
|
|
69
|
+
"y2",
|
|
70
|
+
"stroke-width",
|
|
71
|
+
"filter"
|
|
72
|
+
], ht = { key: 1 }, gt = [
|
|
73
|
+
"d",
|
|
74
|
+
"fill",
|
|
75
|
+
"stroke",
|
|
76
|
+
"stroke-width"
|
|
77
|
+
], _t = [
|
|
78
|
+
"cx",
|
|
79
|
+
"cy",
|
|
80
|
+
"fill",
|
|
81
|
+
"r",
|
|
82
|
+
"stroke-width",
|
|
83
|
+
"stroke"
|
|
84
|
+
], vt = [
|
|
85
|
+
"x",
|
|
86
|
+
"y",
|
|
87
|
+
"font-size",
|
|
88
|
+
"fill"
|
|
89
|
+
], yt = {
|
|
90
|
+
key: 4,
|
|
91
|
+
class: "vue-data-ui-watermark"
|
|
92
|
+
}, bt = /*#__PURE__*/ be({
|
|
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: be, emit: Re }) {
|
|
110
|
+
let bt = ke(() => import("./PenAndPaper-DJIIG6dv.js").then((e) => e.t)), xt = ke(() => import("./UserOptions-xqbNpHi2.js").then((e) => e.n)), St = ke(() => import("./PackageVersion-Dx81ZIAL.js").then((e) => e.t)), { vue_ui_gauge: Ct } = de(), { isThemeValid: wt, warnInvalidTheme: Tt } = _e(), E = e, Et = Re, Dt = d(() => !!E.dataset && Object.keys(E.dataset).length > 0 && E.dataset.series && E.dataset.series.length), D = b(ee()), Ot = b(null), kt = b(0), O = b(null), At = b(null), jt = b(null), Mt = b(null), Nt = b(null), Pt = b(0), k = b(!1), A = b(!1), j = b(F()), Ft = d(() => j.value.userOptions.useCursorPointer), It = d(() => te({
|
|
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: j.value.skeletonConfig ?? {}
|
|
134
|
+
})), { loading: Lt, FINAL_DATASET: M, manualLoading: N } = pe({
|
|
135
|
+
...Ie(E),
|
|
136
|
+
FINAL_CONFIG: j,
|
|
137
|
+
prepareConfig: F,
|
|
138
|
+
callback: () => {
|
|
139
|
+
Promise.resolve().then(async () => {
|
|
140
|
+
await Ae();
|
|
141
|
+
});
|
|
142
|
+
},
|
|
143
|
+
skeletonDataset: E.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: te({
|
|
158
|
+
defaultConfig: j.value,
|
|
159
|
+
userConfig: It.value
|
|
160
|
+
})
|
|
161
|
+
}), { userOptionsVisible: Rt, setUserOptionsVisibility: zt, keepUserOptionState: Bt } = Ce({ config: j.value }), { svgRef: P } = we({ config: j.value.style.chart.title });
|
|
162
|
+
Le(() => E.config, (e) => {
|
|
163
|
+
Lt.value || (j.value = F()), Rt.value = !j.value.userOptions.showOnChartHover, Jt(), Pt.value += 1;
|
|
164
|
+
}, { deep: !0 }), Le(() => E.dataset, (e) => {
|
|
165
|
+
Jt(), e && Object.keys(e).length > 0 && (N.value = j.value?.loading ?? !1);
|
|
166
|
+
}, {
|
|
167
|
+
deep: !0,
|
|
168
|
+
immediate: !1
|
|
169
|
+
});
|
|
170
|
+
function F() {
|
|
171
|
+
let e = ge({
|
|
172
|
+
userConfig: E.config,
|
|
173
|
+
defaultConfig: Ct
|
|
174
|
+
}), t = e.theme;
|
|
175
|
+
if (!t) return e;
|
|
176
|
+
if (!wt.value(e)) return Tt(e), e;
|
|
177
|
+
let n = ge({
|
|
178
|
+
userConfig: Ee[t] || E.config,
|
|
179
|
+
defaultConfig: e
|
|
180
|
+
}), r = ge({
|
|
181
|
+
userConfig: E.config,
|
|
182
|
+
defaultConfig: n
|
|
183
|
+
});
|
|
184
|
+
return {
|
|
185
|
+
...r,
|
|
186
|
+
customPalette: r.customPalette.length ? r.customPalette : ne[t] || ie
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
let { isPrinting: I, isImaging: L, generatePdf: Vt, generateImage: Ht } = fe({
|
|
190
|
+
elementId: `vue-ui-gauge_${D.value}`,
|
|
191
|
+
fileName: j.value.style.chart.title.text || "vue-ui-gauge",
|
|
192
|
+
options: j.value.userOptions.print
|
|
193
|
+
}), Ut = d(() => j.value.userOptions.show && !j.value.style.chart.title.text), Wt = d(() => le(j.value.customPalette)), R = d(() => {
|
|
194
|
+
if (i(M.value.series || {})) return {
|
|
195
|
+
value: 0,
|
|
196
|
+
series: [{
|
|
197
|
+
from: 0,
|
|
198
|
+
to: 0
|
|
199
|
+
}]
|
|
200
|
+
};
|
|
201
|
+
let e = [];
|
|
202
|
+
(M.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
|
+
...M.value,
|
|
208
|
+
series: (M.value.series || []).map((e, n) => ({
|
|
209
|
+
...e,
|
|
210
|
+
color: ue(e.color) || Wt.value[n] || ie[n],
|
|
211
|
+
value: ((e.to || 0) - (e.from || 0)) / t * 100
|
|
212
|
+
}))
|
|
213
|
+
};
|
|
214
|
+
}), z = b(512), B = b({
|
|
215
|
+
height: 358.4,
|
|
216
|
+
width: z.value,
|
|
217
|
+
top: 0,
|
|
218
|
+
bottom: 358.4,
|
|
219
|
+
centerX: 179.2,
|
|
220
|
+
centerY: z.value / 2,
|
|
221
|
+
labelFontSize: 18,
|
|
222
|
+
legendFontSize: j.value.style.chart.legend.fontSize,
|
|
223
|
+
pointerRadius: j.value.style.chart.layout.pointer.circle.radius,
|
|
224
|
+
trackSize: j.value.style.chart.layout.track.size,
|
|
225
|
+
pointerSize: j.value.style.chart.layout.pointer.size,
|
|
226
|
+
pointerStrokeWidth: j.value.style.chart.layout.pointer.strokeWidth,
|
|
227
|
+
markerOffset: j.value.style.chart.layout.markers.offsetY + 3,
|
|
228
|
+
segmentFontSize: j.value.style.chart.layout.segmentNames.fontSize
|
|
229
|
+
}), 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);
|
|
230
|
+
Le(() => M.value.value, () => {
|
|
231
|
+
Yt(M.value.value);
|
|
232
|
+
});
|
|
233
|
+
let W = d(() => {
|
|
234
|
+
let e = B.value.width / 2, t = Y.value.base, n = Math.PI * ((U.value + 0 - H.value) / (V.value - H.value)) + Math.PI;
|
|
235
|
+
return {
|
|
236
|
+
x1: e,
|
|
237
|
+
y1: t,
|
|
238
|
+
x2: e + Y.value.pointerSize * B.value.pointerSize * .9 * Math.cos(n),
|
|
239
|
+
y2: t + Y.value.pointerSize * B.value.pointerSize * .9 * Math.sin(n)
|
|
240
|
+
};
|
|
241
|
+
}), Gt = d(() => {
|
|
242
|
+
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), ee = t + a * Math.sin(n + Math.PI / 2), s = e + a * Math.cos(n - Math.PI / 2), te = t + a * Math.sin(n - Math.PI / 2);
|
|
243
|
+
return isNaN(r) ? null : `M ${r},${i} ${o},${ee} ${s},${te} Z`;
|
|
244
|
+
}), Kt = d(() => {
|
|
245
|
+
for (let e = 0; e < R.value.series.length; e += 1) {
|
|
246
|
+
let { color: t, from: n, to: r } = R.value.series[e];
|
|
247
|
+
if (U.value >= n && U.value <= r) return t;
|
|
248
|
+
}
|
|
249
|
+
return "#2D353C";
|
|
250
|
+
}), G = Fe(null), K = Fe(null), q = d({
|
|
251
|
+
get: () => B.value.segmentFontSize,
|
|
252
|
+
set: (e) => e
|
|
253
|
+
}), { autoSizeLabels: qt } = Te({
|
|
254
|
+
svgRef: P,
|
|
255
|
+
fontSize: B.value.segmentFontSize,
|
|
256
|
+
minFontSize: j.value.style.chart.layout.segmentNames.minFontSize,
|
|
257
|
+
sizeRef: q,
|
|
258
|
+
labelClass: ".vue-ui-gauge-label-flat"
|
|
259
|
+
}), J = d(() => !!j.value.debug);
|
|
260
|
+
function Jt() {
|
|
261
|
+
let e = !1;
|
|
262
|
+
if (i(E.dataset) ? (c({
|
|
263
|
+
componentName: "VueUiGauge",
|
|
264
|
+
type: "dataset",
|
|
265
|
+
debug: J.value
|
|
266
|
+
}), N.value = !0, e = !0) : (re({
|
|
267
|
+
datasetObject: E.dataset,
|
|
268
|
+
requiredAttributes: ["value", "series"]
|
|
269
|
+
}).forEach((t) => {
|
|
270
|
+
c({
|
|
271
|
+
componentName: "VueUiGauge",
|
|
272
|
+
type: "datasetAttribute",
|
|
273
|
+
property: t,
|
|
274
|
+
debug: J.value
|
|
275
|
+
}), N.value = !0, e = !0;
|
|
276
|
+
}), Object.hasOwn(E.dataset, "series") && (E.dataset.series.length ? E.dataset.series.forEach((t, n) => {
|
|
277
|
+
re({
|
|
278
|
+
datasetObject: t,
|
|
279
|
+
requiredAttributes: ["from", "to"]
|
|
280
|
+
}).forEach((t) => {
|
|
281
|
+
c({
|
|
282
|
+
componentName: "VueUiGauge",
|
|
283
|
+
type: "datasetSerieAttribute",
|
|
284
|
+
property: t,
|
|
285
|
+
index: n,
|
|
286
|
+
debug: J.value
|
|
287
|
+
}), N.value = !0, e = !0;
|
|
288
|
+
});
|
|
289
|
+
}) : (c({
|
|
290
|
+
componentName: "VueUiGauge",
|
|
291
|
+
type: "datasetAttributeEmpty",
|
|
292
|
+
property: "series",
|
|
293
|
+
debug: J.value
|
|
294
|
+
}), N.value = !0, e = !0))), N.value = e, Yt(M.value.value || 0), j.value.responsive) {
|
|
295
|
+
let e = xe(() => {
|
|
296
|
+
let { width: e, height: t } = Se({
|
|
297
|
+
chart: O.value,
|
|
298
|
+
title: j.value.style.chart.title.text ? At.value : null,
|
|
299
|
+
legend: jt.value,
|
|
300
|
+
source: Mt.value,
|
|
301
|
+
noTitle: Nt.value
|
|
302
|
+
});
|
|
303
|
+
t -= 12, requestAnimationFrame(() => {
|
|
304
|
+
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 = s({
|
|
305
|
+
relator: Math.min(e, t),
|
|
306
|
+
adjuster: z.value,
|
|
307
|
+
source: j.value.style.chart.layout.pointer.strokeWidth,
|
|
308
|
+
threshold: 2,
|
|
309
|
+
fallback: 2
|
|
310
|
+
}), B.value.markerOffset = s({
|
|
311
|
+
relator: Math.max(e, t),
|
|
312
|
+
adjuster: z.value,
|
|
313
|
+
source: j.value.style.chart.layout.markers.offsetY + 3,
|
|
314
|
+
threshold: 2,
|
|
315
|
+
fallback: 2
|
|
316
|
+
}), B.value.segmentFontSize = s({
|
|
317
|
+
relator: Math.min(e, t),
|
|
318
|
+
adjuster: z.value,
|
|
319
|
+
source: j.value.style.chart.layout.segmentNames.fontSize,
|
|
320
|
+
threshold: 8,
|
|
321
|
+
fallback: 8
|
|
322
|
+
});
|
|
323
|
+
}), qt();
|
|
324
|
+
});
|
|
325
|
+
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);
|
|
326
|
+
}
|
|
327
|
+
qt();
|
|
328
|
+
}
|
|
329
|
+
Pe(() => {
|
|
330
|
+
Jt();
|
|
331
|
+
}), Ne(() => {
|
|
332
|
+
G.value && (K.value && G.value.unobserve(K.value), G.value.disconnect());
|
|
333
|
+
});
|
|
334
|
+
function Yt(e) {
|
|
335
|
+
let t = [];
|
|
336
|
+
(R.value.series || []).forEach((e) => {
|
|
337
|
+
t.push(e.from || 0), t.push(e.to || 0);
|
|
338
|
+
}), V.value = Math.max(...t), H.value = Math.min(...t);
|
|
339
|
+
let n = j.value.style.chart.animation.speed, r = Math.abs(e - U.value) / (n * 60);
|
|
340
|
+
function i() {
|
|
341
|
+
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);
|
|
342
|
+
}
|
|
343
|
+
i();
|
|
344
|
+
}
|
|
345
|
+
let Y = d(() => {
|
|
346
|
+
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;
|
|
347
|
+
return {
|
|
348
|
+
arcs: e / t,
|
|
349
|
+
gradients: e / (t * 1.1),
|
|
350
|
+
base: j.value.responsive ? B.value.height / 1.618 : B.value.height * .7,
|
|
351
|
+
ratingBase: j.value.responsive ? B.value.height / 2 + B.value.height / 4 : B.value.height * .9,
|
|
352
|
+
pointerSize: j.value.responsive ? Math.min(B.value.width, B.value.height) / 3 : B.value.width / 3.2
|
|
353
|
+
};
|
|
354
|
+
}), X = d(() => ce({ 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)), Xt = d(() => ce({ 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 = d(() => X.value.map((e) => Y.value.arcs * j.value.style.chart.layout.segmentNames.offsetRatio * (e.nameOffsetRatio || 1))), Zt = d(() => {
|
|
355
|
+
let { x: e, y: t } = r({
|
|
356
|
+
initX: X.value[0].firstSeparator.x,
|
|
357
|
+
initY: X.value[0].firstSeparator.y,
|
|
358
|
+
centerX: W.value.x1,
|
|
359
|
+
centerY: W.value.y1,
|
|
360
|
+
offset: -j.value.style.chart.layout.segmentSeparators.offsetIn
|
|
361
|
+
}), { x: n, y: i } = r({
|
|
362
|
+
initX: X.value[0].startX,
|
|
363
|
+
initY: X.value[0].startY,
|
|
364
|
+
centerX: W.value.x1,
|
|
365
|
+
centerY: W.value.y1,
|
|
366
|
+
offset: j.value.style.chart.layout.segmentSeparators.offsetOut
|
|
367
|
+
});
|
|
368
|
+
return {
|
|
369
|
+
x1: e,
|
|
370
|
+
y1: t,
|
|
371
|
+
x2: n,
|
|
372
|
+
y2: i
|
|
373
|
+
};
|
|
374
|
+
}), Qt = d(() => X.value.map((e) => {
|
|
375
|
+
let { x: t, y: n } = r({
|
|
376
|
+
initX: e.separator.x,
|
|
377
|
+
initY: e.separator.y,
|
|
378
|
+
centerX: W.value.x1,
|
|
379
|
+
centerY: W.value.y1,
|
|
380
|
+
offset: -j.value.style.chart.layout.segmentSeparators.offsetIn
|
|
381
|
+
}), { x: i, y: a } = r({
|
|
382
|
+
initX: e.endX,
|
|
383
|
+
initY: e.endY,
|
|
384
|
+
centerX: W.value.x1,
|
|
385
|
+
centerY: W.value.y1,
|
|
386
|
+
offset: j.value.style.chart.layout.segmentSeparators.offsetOut
|
|
387
|
+
});
|
|
388
|
+
return {
|
|
389
|
+
x1: t,
|
|
390
|
+
y1: n,
|
|
391
|
+
x2: i,
|
|
392
|
+
y2: a
|
|
393
|
+
};
|
|
394
|
+
}));
|
|
395
|
+
function $t(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 en = d(() => $t(X.value.map((e) => e.proportion * 100))), tn = d(() => ce({ 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)), nn = d(() => {
|
|
401
|
+
let e = H.value >= 0 ? -H.value : Math.abs(H.value);
|
|
402
|
+
return n({
|
|
403
|
+
radius: j.value.style.chart.layout.indicatorArc.radius * B.value.trackSize,
|
|
404
|
+
centerX: B.value.width / 2,
|
|
405
|
+
centerY: Y.value.base,
|
|
406
|
+
percentage: se((U.value + e) / (V.value + e))
|
|
407
|
+
});
|
|
408
|
+
}), Q = b(!1);
|
|
409
|
+
function rn(e) {
|
|
410
|
+
Q.value = e, kt.value += 1;
|
|
411
|
+
}
|
|
412
|
+
let $ = b(!1);
|
|
413
|
+
function an() {
|
|
414
|
+
$.value = !$.value;
|
|
415
|
+
}
|
|
416
|
+
async function on({ scale: e = 2 } = {}) {
|
|
417
|
+
if (!O.value) return;
|
|
418
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
|
|
419
|
+
domElement: O.value,
|
|
420
|
+
base64: !0,
|
|
421
|
+
img: !0,
|
|
422
|
+
scale: e
|
|
423
|
+
});
|
|
424
|
+
return {
|
|
425
|
+
imageUri: i,
|
|
426
|
+
base64: a,
|
|
427
|
+
title: j.value.style.chart.title.text,
|
|
428
|
+
width: t,
|
|
429
|
+
height: n,
|
|
430
|
+
aspectRatio: r
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
let sn = d(() => j.value.style.chart.backgroundColor), { exportSvg: cn, getSvg: ln } = he({
|
|
434
|
+
svg: P,
|
|
435
|
+
title: d(() => j.value.style.chart.title),
|
|
436
|
+
backgroundColor: sn
|
|
437
|
+
});
|
|
438
|
+
async function un({ isCb: e }) {
|
|
439
|
+
A.value = !0, await Ae();
|
|
440
|
+
try {
|
|
441
|
+
if (e) {
|
|
442
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await ln();
|
|
443
|
+
await Promise.resolve(j.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
|
+
A.value = !1;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
function dn(e) {
|
|
455
|
+
if (e?.stage === "start") {
|
|
456
|
+
k.value = !0;
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
if (e?.stage === "end") {
|
|
460
|
+
k.value = !1;
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
463
|
+
Ht();
|
|
464
|
+
}
|
|
465
|
+
async function fn() {
|
|
466
|
+
if (Et("copyAlt", {
|
|
467
|
+
config: j.value,
|
|
468
|
+
dataset: R.value
|
|
469
|
+
}), !j.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(j.value.userOptions.callbacks.altCopy({
|
|
474
|
+
config: j.value,
|
|
475
|
+
dataset: R.value
|
|
476
|
+
}));
|
|
477
|
+
}
|
|
478
|
+
return be({
|
|
479
|
+
getImage: on,
|
|
480
|
+
generatePdf: Vt,
|
|
481
|
+
generateImage: Ht,
|
|
482
|
+
generateSvg: un,
|
|
483
|
+
toggleAnnotator: an,
|
|
484
|
+
toggleFullscreen: rn,
|
|
485
|
+
copyAlt: fn
|
|
486
|
+
}), (e, n) => (y(), m("div", {
|
|
487
|
+
class: je(`vue-data-ui-component vue-ui-gauge ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
488
|
+
ref_key: "gaugeChart",
|
|
489
|
+
ref: O,
|
|
490
|
+
id: `vue-ui-gauge_${D.value}`,
|
|
491
|
+
style: Me(`font-family:${j.value.style.fontFamily};width:100%; text-align:center;background:${j.value.style.chart.backgroundColor};${j.value.responsive ? "height: 100%" : ""}`),
|
|
492
|
+
onMouseenter: n[0] ||= () => w(zt)(!0),
|
|
493
|
+
onMouseleave: n[1] ||= () => w(zt)(!1)
|
|
494
|
+
}, [
|
|
495
|
+
j.value.userOptions.buttons.annotator ? (y(), f(w(bt), {
|
|
496
|
+
key: 0,
|
|
497
|
+
svgRef: w(P),
|
|
498
|
+
backgroundColor: j.value.style.chart.backgroundColor,
|
|
499
|
+
color: j.value.style.chart.color,
|
|
500
|
+
active: $.value,
|
|
501
|
+
isCursorPointer: Ft.value,
|
|
502
|
+
onClose: an
|
|
503
|
+
}, {
|
|
504
|
+
"annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
505
|
+
"annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
506
|
+
"annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
|
|
507
|
+
"annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
|
|
508
|
+
"annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
|
|
509
|
+
"annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
|
|
510
|
+
_: 3
|
|
511
|
+
}, 8, [
|
|
512
|
+
"svgRef",
|
|
513
|
+
"backgroundColor",
|
|
514
|
+
"color",
|
|
515
|
+
"active",
|
|
516
|
+
"isCursorPointer"
|
|
517
|
+
])) : p("", !0),
|
|
518
|
+
Ut.value ? (y(), m("div", {
|
|
519
|
+
key: 1,
|
|
520
|
+
ref_key: "noTitle",
|
|
521
|
+
ref: Nt,
|
|
522
|
+
class: "vue-data-ui-no-title-space",
|
|
523
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
524
|
+
}, null, 512)) : p("", !0),
|
|
525
|
+
j.value.style.chart.title.text ? (y(), m("div", {
|
|
526
|
+
key: 2,
|
|
527
|
+
ref_key: "chartTitle",
|
|
528
|
+
ref: At,
|
|
529
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
530
|
+
}, [(y(), f(ye, {
|
|
531
|
+
key: `title_${Pt.value}`,
|
|
532
|
+
config: {
|
|
533
|
+
title: {
|
|
534
|
+
cy: "gauge-div-title",
|
|
535
|
+
...j.value.style.chart.title
|
|
536
|
+
},
|
|
537
|
+
subtitle: {
|
|
538
|
+
cy: "gauge-div-subtitle",
|
|
539
|
+
...j.value.style.chart.title.subtitle
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}, {
|
|
543
|
+
default: T(() => [j.value.translations.base && w(M).base ? (y(), m("span", Be, C(j.value.translations.base) + ": " + C(w(M).base), 1)) : p("", !0)]),
|
|
544
|
+
_: 1
|
|
545
|
+
}, 8, ["config"]))], 512)) : p("", !0),
|
|
546
|
+
j.value.userOptions.show && Dt.value && (w(Bt) || w(Rt)) ? (y(), f(w(xt), {
|
|
547
|
+
ref_key: "details",
|
|
548
|
+
ref: Ot,
|
|
549
|
+
key: `user_options_${kt.value}`,
|
|
550
|
+
backgroundColor: j.value.style.chart.backgroundColor,
|
|
551
|
+
color: j.value.style.chart.color,
|
|
552
|
+
isImaging: w(L),
|
|
553
|
+
isPrinting: w(I),
|
|
554
|
+
uid: D.value,
|
|
555
|
+
hasXls: !1,
|
|
556
|
+
hasPdf: j.value.userOptions.buttons.pdf,
|
|
557
|
+
hasImg: j.value.userOptions.buttons.img,
|
|
558
|
+
hasSvg: j.value.userOptions.buttons.svg,
|
|
559
|
+
hasFullscreen: j.value.userOptions.buttons.fullscreen,
|
|
560
|
+
hasAltCopy: j.value.userOptions.buttons.altCopy,
|
|
561
|
+
isFullscreen: Q.value,
|
|
562
|
+
titles: { ...j.value.userOptions.buttonTitles },
|
|
563
|
+
chartElement: O.value,
|
|
564
|
+
callbacks: j.value.userOptions.callbacks,
|
|
565
|
+
printScale: j.value.userOptions.print.scale,
|
|
566
|
+
position: j.value.userOptions.position,
|
|
567
|
+
hasAnnotator: j.value.userOptions.buttons.annotator,
|
|
568
|
+
isAnnotation: $.value,
|
|
569
|
+
isCursorPointer: Ft.value,
|
|
570
|
+
onToggleFullscreen: rn,
|
|
571
|
+
onGeneratePdf: w(Vt),
|
|
572
|
+
onGenerateImage: dn,
|
|
573
|
+
onGenerateSvg: un,
|
|
574
|
+
onToggleAnnotator: an,
|
|
575
|
+
onCopyAlt: fn,
|
|
576
|
+
style: Me({ visibility: w(Bt) ? w(Rt) ? "visible" : "hidden" : "visible" })
|
|
577
|
+
}, De({ _: 2 }, [
|
|
578
|
+
e.$slots.menuIcon ? {
|
|
579
|
+
name: "menuIcon",
|
|
580
|
+
fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", v(g({
|
|
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: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
589
|
+
key: "1"
|
|
590
|
+
} : void 0,
|
|
591
|
+
e.$slots.optionImg ? {
|
|
592
|
+
name: "optionImg",
|
|
593
|
+
fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
594
|
+
key: "2"
|
|
595
|
+
} : void 0,
|
|
596
|
+
e.$slots.optionSvg ? {
|
|
597
|
+
name: "optionSvg",
|
|
598
|
+
fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
599
|
+
key: "3"
|
|
600
|
+
} : void 0,
|
|
601
|
+
e.$slots.optionFullscreen ? {
|
|
602
|
+
name: "optionFullscreen",
|
|
603
|
+
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", v(g({
|
|
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: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", v(g({
|
|
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: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
|
|
620
|
+
key: "6"
|
|
621
|
+
} : void 0,
|
|
622
|
+
e.$slots["custom-menu-before"] ? {
|
|
623
|
+
name: "custom-menu-before",
|
|
624
|
+
fn: T(() => [S(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: T(() => [S(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
|
+
])) : p("", !0),
|
|
655
|
+
(y(), m("svg", {
|
|
656
|
+
ref_key: "svgRef",
|
|
657
|
+
ref: P,
|
|
658
|
+
xmlns: w(ae),
|
|
659
|
+
class: je({
|
|
660
|
+
"vue-data-ui-fullscreen--on": Q.value,
|
|
661
|
+
"vue-data-ui-fulscreen--off": !Q.value
|
|
662
|
+
}),
|
|
663
|
+
viewBox: `0 0 ${B.value.width <= 0 ? 10 : B.value.width} ${B.value.height <= 0 ? 10 : B.value.height}`,
|
|
664
|
+
style: Me(`max-width:100%;overflow:hidden !important;background:transparent;color:${j.value.style.chart.color}`)
|
|
665
|
+
}, [
|
|
666
|
+
Oe(w(St)),
|
|
667
|
+
e.$slots["chart-background"] ? (y(), m("foreignObject", {
|
|
668
|
+
key: 0,
|
|
669
|
+
x: 0,
|
|
670
|
+
y: 0,
|
|
671
|
+
width: B.value.width <= 0 ? 10 : B.value.width,
|
|
672
|
+
height: B.value.height <= 0 ? 10 : B.value.height,
|
|
673
|
+
style: { pointerEvents: "none" }
|
|
674
|
+
}, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, He)) : p("", !0),
|
|
675
|
+
h("defs", null, [h("radialGradient", {
|
|
676
|
+
id: `gradient_${D.value}`,
|
|
677
|
+
cx: "50%",
|
|
678
|
+
cy: "50%",
|
|
679
|
+
r: "50%",
|
|
680
|
+
fx: "50%",
|
|
681
|
+
fy: "50%"
|
|
682
|
+
}, [
|
|
683
|
+
h("stop", {
|
|
684
|
+
offset: "0%",
|
|
685
|
+
"stop-color": w(a)("#FFFFFF", 1)
|
|
686
|
+
}, null, 8, We),
|
|
687
|
+
h("stop", {
|
|
688
|
+
offset: "80%",
|
|
689
|
+
"stop-color": w(a)("#FFFFFF", j.value.style.chart.layout.track.gradientIntensity)
|
|
690
|
+
}, null, 8, Ge),
|
|
691
|
+
h("stop", {
|
|
692
|
+
offset: "100%",
|
|
693
|
+
"stop-color": w(a)("#FFFFFF", 1)
|
|
694
|
+
}, null, 8, Ke)
|
|
695
|
+
], 8, Ue)]),
|
|
696
|
+
h("defs", null, [h("filter", {
|
|
697
|
+
id: `blur_${D.value}`,
|
|
698
|
+
x: "-50%",
|
|
699
|
+
y: "-50%",
|
|
700
|
+
width: "200%",
|
|
701
|
+
height: "200%"
|
|
702
|
+
}, [h("feGaussianBlur", {
|
|
703
|
+
in: "SourceGraphic",
|
|
704
|
+
stdDeviation: 100 / j.value.style.chart.layout.track.gradientIntensity
|
|
705
|
+
}, null, 8, Je)], 8, qe)]),
|
|
706
|
+
e.$slots.pattern ? (y(), m("g", Ye, [(y(!0), m(u, null, x(X.value, (t, n) => (y(), m("defs", null, [S(e.$slots, "pattern", _({ ref_for: !0 }, {
|
|
707
|
+
seriesIndex: n,
|
|
708
|
+
patternId: `pattern_${D.value}_${n}`
|
|
709
|
+
}), void 0, !0)]))), 256))])) : p("", !0),
|
|
710
|
+
(y(!0), m(u, null, x(X.value, (e, t) => (y(), m("path", {
|
|
711
|
+
key: `arc_${t}`,
|
|
712
|
+
d: e.arcSlice,
|
|
713
|
+
fill: e.color,
|
|
714
|
+
stroke: j.value.style.chart.backgroundColor,
|
|
715
|
+
"stroke-linecap": "round"
|
|
716
|
+
}, null, 8, Xe))), 128)),
|
|
717
|
+
e.$slots.pattern ? (y(!0), m(u, { key: 2 }, x(X.value, (e, t) => (y(), m("path", {
|
|
718
|
+
key: `arc_${t}`,
|
|
719
|
+
d: e.arcSlice,
|
|
720
|
+
fill: `url(#pattern_${D.value}_${t})`,
|
|
721
|
+
stroke: j.value.style.chart.backgroundColor,
|
|
722
|
+
"stroke-linecap": "round"
|
|
723
|
+
}, null, 8, Ze))), 128)) : p("", !0),
|
|
724
|
+
j.value.style.chart.layout.indicatorArc.show ? (y(), m("path", {
|
|
725
|
+
key: 3,
|
|
726
|
+
d: nn.value,
|
|
727
|
+
fill: j.value.style.chart.layout.indicatorArc.fill
|
|
728
|
+
}, null, 8, Qe)) : p("", !0),
|
|
729
|
+
j.value.style.chart.layout.segmentNames.show && j.value.style.chart.layout.segmentNames.curved ? (y(), m(u, { key: 4 }, [(y(!0), m(u, null, x(X.value, (e, t) => (y(), m("path", {
|
|
730
|
+
id: `curve_${D.value}_${t}`,
|
|
731
|
+
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`,
|
|
732
|
+
fill: "transparent"
|
|
733
|
+
}, null, 8, $e))), 256)), (y(!0), m(u, null, x(X.value, (e, t) => (y(), m("text", {
|
|
734
|
+
fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
|
|
735
|
+
"font-size": q.value,
|
|
736
|
+
"font-weight": j.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
737
|
+
"text-anchor": "middle"
|
|
738
|
+
}, [h("textPath", {
|
|
739
|
+
href: `#curve_${D.value}_${t}`,
|
|
740
|
+
startOffset: en.value[t]
|
|
741
|
+
}, C(e.name || ""), 9, tt)], 8, et))), 256))], 64)) : p("", !0),
|
|
742
|
+
j.value.style.chart.layout.segmentNames.show && !j.value.style.chart.layout.segmentNames.curved ? (y(!0), m(u, { key: 5 }, x(Xt.value, (e, n) => (y(), m("text", {
|
|
743
|
+
class: "vue-ui-gauge-label-flat",
|
|
744
|
+
"text-anchor": w(oe)(e, !1, 12).anchor,
|
|
745
|
+
fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
|
|
746
|
+
"font-size": q.value,
|
|
747
|
+
"font-weight": j.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
748
|
+
innerHTML: w(t)({
|
|
749
|
+
content: String(e.name ?? ""),
|
|
750
|
+
fontSize: q.value,
|
|
751
|
+
fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
|
|
752
|
+
x: e.center.endX,
|
|
753
|
+
y: e.center.endY
|
|
754
|
+
})
|
|
755
|
+
}, null, 8, nt))), 256)) : p("", !0),
|
|
756
|
+
j.value.style.chart.layout.track.useGradient ? (y(!0), m(u, { key: 6 }, x(tn.value, (e, t) => (y(), m("path", {
|
|
757
|
+
key: `arc_${t}`,
|
|
758
|
+
d: e.arcSlice,
|
|
759
|
+
fill: "#FFFFFF",
|
|
760
|
+
stroke: "none",
|
|
761
|
+
"stroke-linecap": "round",
|
|
762
|
+
filter: `url(#blur_${D.value})`
|
|
763
|
+
}, null, 8, rt))), 128)) : p("", !0),
|
|
764
|
+
j.value.style.chart.layout.segmentSeparators.show ? (y(), m(u, { key: 7 }, [
|
|
765
|
+
h("line", _(Zt.value, {
|
|
766
|
+
stroke: j.value.style.chart.backgroundColor,
|
|
767
|
+
"stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
768
|
+
"stroke-linecap": "round"
|
|
769
|
+
}), null, 16, it),
|
|
770
|
+
h("line", _(Zt.value, {
|
|
771
|
+
stroke: j.value.style.chart.layout.segmentSeparators.stroke,
|
|
772
|
+
"stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
773
|
+
"stroke-linecap": "round"
|
|
774
|
+
}), null, 16, at),
|
|
775
|
+
(y(!0), m(u, null, x(Qt.value, (e) => (y(), m("line", _({ ref_for: !0 }, e, {
|
|
776
|
+
stroke: j.value.style.chart.backgroundColor,
|
|
777
|
+
"stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
778
|
+
"stroke-linecap": "round"
|
|
779
|
+
}), null, 16, ot))), 256)),
|
|
780
|
+
(y(!0), m(u, null, x(Qt.value, (e) => (y(), m("line", _({ ref_for: !0 }, e, {
|
|
781
|
+
stroke: j.value.style.chart.layout.segmentSeparators.stroke,
|
|
782
|
+
"stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
783
|
+
"stroke-linecap": "round"
|
|
784
|
+
}), null, 16, st))), 256))
|
|
785
|
+
], 64)) : p("", !0),
|
|
786
|
+
j.value.style.chart.layout.markers.show ? (y(), m("g", ct, [(y(!0), m(u, null, x(X.value, (e, t) => (y(), m("text", {
|
|
787
|
+
x: w(r)({
|
|
788
|
+
centerX: W.value.x1,
|
|
789
|
+
centerY: Y.value.base,
|
|
790
|
+
initX: e.center.startX,
|
|
791
|
+
initY: e.center.startY,
|
|
792
|
+
offset: B.value.markerOffset
|
|
793
|
+
}).x,
|
|
794
|
+
y: w(r)({
|
|
795
|
+
centerX: W.value.x1,
|
|
796
|
+
centerY: Y.value.base,
|
|
797
|
+
initX: e.center.startX,
|
|
798
|
+
initY: e.center.startY,
|
|
799
|
+
offset: B.value.markerOffset
|
|
800
|
+
}).y,
|
|
801
|
+
"text-anchor": e.center.startX < W.value.x1 - 5 ? "end" : e.center.startX > W.value.x1 + 5 ? "start" : "middle",
|
|
802
|
+
"font-size": B.value.labelFontSize * j.value.style.chart.layout.markers.fontSizeRatio,
|
|
803
|
+
"font-weight": `${j.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
804
|
+
fill: j.value.style.chart.layout.markers.color
|
|
805
|
+
}, C(w(l)(j.value.style.chart.layout.markers.formatter, e.from, w(o)({
|
|
806
|
+
p: j.value.style.chart.layout.markers.prefix,
|
|
807
|
+
v: e.from,
|
|
808
|
+
s: j.value.style.chart.layout.markers.suffix,
|
|
809
|
+
r: j.value.style.chart.layout.markers.roundingValue
|
|
810
|
+
}))), 9, lt))), 256))])) : p("", !0),
|
|
811
|
+
j.value.style.chart.layout.markers.show ? (y(), m("text", {
|
|
812
|
+
key: 9,
|
|
813
|
+
x: w(r)({
|
|
814
|
+
centerX: B.value.width / 2,
|
|
815
|
+
centerY: Y.value.base,
|
|
816
|
+
initX: X.value.at(-1).endX,
|
|
817
|
+
initY: X.value.at(-1).endY,
|
|
818
|
+
offset: B.value.markerOffset
|
|
819
|
+
}).x,
|
|
820
|
+
y: w(r)({
|
|
821
|
+
centerX: B.value.width / 2,
|
|
822
|
+
centerY: Y.value.base,
|
|
823
|
+
initX: X.value.at(-1).endX,
|
|
824
|
+
initY: X.value.at(-1).endY,
|
|
825
|
+
offset: B.value.markerOffset
|
|
826
|
+
}).y,
|
|
827
|
+
"text-anchor": "start",
|
|
828
|
+
"font-size": B.value.labelFontSize * j.value.style.chart.layout.markers.fontSizeRatio,
|
|
829
|
+
"font-weight": `${j.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
830
|
+
fill: j.value.style.chart.layout.markers.color
|
|
831
|
+
}, C(w(l)(j.value.style.chart.layout.markers.formatter, V.value, w(o)({
|
|
832
|
+
p: j.value.style.chart.layout.markers.prefix,
|
|
833
|
+
v: V.value,
|
|
834
|
+
s: j.value.style.chart.layout.markers.suffix,
|
|
835
|
+
r: j.value.style.chart.layout.markers.roundingValue
|
|
836
|
+
}))), 9, ut)) : p("", !0),
|
|
837
|
+
j.value.style.chart.layout.pointer.show ? (y(), m(u, { key: 10 }, [j.value.style.chart.layout.pointer.type === "rounded" ? (y(), m("g", dt, [
|
|
838
|
+
isNaN(W.value.x2) ? p("", !0) : (y(), m("line", {
|
|
839
|
+
key: 0,
|
|
840
|
+
x1: W.value.x1,
|
|
841
|
+
y1: W.value.y1,
|
|
842
|
+
x2: W.value.x2,
|
|
843
|
+
y2: W.value.y2,
|
|
844
|
+
stroke: j.value.style.chart.layout.pointer.stroke,
|
|
845
|
+
"stroke-width": B.value.pointerStrokeWidth,
|
|
846
|
+
"stroke-linecap": "round"
|
|
847
|
+
}, null, 8, ft)),
|
|
848
|
+
isNaN(W.value.x2) ? p("", !0) : (y(), m("line", {
|
|
849
|
+
key: 1,
|
|
850
|
+
x1: W.value.x1,
|
|
851
|
+
y1: W.value.y1,
|
|
852
|
+
x2: W.value.x2,
|
|
853
|
+
y2: W.value.y2,
|
|
854
|
+
stroke: j.value.style.chart.layout.pointer.useRatingColor ? Kt.value : j.value.style.chart.layout.pointer.color,
|
|
855
|
+
"stroke-linecap": "round",
|
|
856
|
+
"stroke-width": B.value.pointerStrokeWidth * .7
|
|
857
|
+
}, null, 8, pt)),
|
|
858
|
+
!isNaN(W.value.x2) && j.value.style.chart.layout.track.useGradient ? (y(), m("line", {
|
|
859
|
+
key: 2,
|
|
860
|
+
x1: W.value.x1,
|
|
861
|
+
y1: W.value.y1,
|
|
862
|
+
x2: W.value.x2,
|
|
863
|
+
y2: W.value.y2,
|
|
864
|
+
stroke: "white",
|
|
865
|
+
"stroke-linecap": "round",
|
|
866
|
+
"stroke-width": B.value.pointerStrokeWidth * .3,
|
|
867
|
+
filter: `url(#blur_${D.value})`
|
|
868
|
+
}, null, 8, mt)) : p("", !0)
|
|
869
|
+
])) : (y(), m("g", ht, [Gt.value ? (y(), m("path", {
|
|
870
|
+
key: 0,
|
|
871
|
+
d: Gt.value,
|
|
872
|
+
fill: j.value.style.chart.layout.pointer.useRatingColor ? Kt.value : j.value.style.chart.layout.pointer.color,
|
|
873
|
+
stroke: j.value.style.chart.layout.pointer.stroke,
|
|
874
|
+
"stroke-width": j.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
875
|
+
"stroke-linejoin": "round"
|
|
876
|
+
}, null, 8, gt)) : p("", !0)])), h("circle", {
|
|
877
|
+
cx: B.value.width / 2,
|
|
878
|
+
cy: Y.value.base,
|
|
879
|
+
fill: j.value.style.chart.layout.pointer.circle.color,
|
|
880
|
+
r: B.value.pointerRadius <= 0 ? 1e-4 : B.value.pointerRadius,
|
|
881
|
+
"stroke-width": j.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
882
|
+
stroke: j.value.style.chart.layout.pointer.circle.stroke
|
|
883
|
+
}, null, 8, _t)], 64)) : p("", !0),
|
|
884
|
+
j.value.style.chart.legend.show ? (y(), m("text", {
|
|
885
|
+
key: 11,
|
|
886
|
+
x: B.value.width / 2,
|
|
887
|
+
y: Y.value.ratingBase,
|
|
888
|
+
"text-anchor": "middle",
|
|
889
|
+
"font-size": B.value.legendFontSize,
|
|
890
|
+
"font-weight": "bold",
|
|
891
|
+
fill: j.value.style.chart.legend.useRatingColor ? Kt.value : j.value.style.chart.legend.color
|
|
892
|
+
}, C(w(l)(j.value.style.chart.legend.formatter, U.value, w(o)({
|
|
893
|
+
p: j.value.style.chart.legend.prefix + (j.value.style.chart.legend.showPlusSymbol && U.value > 0 ? "+" : ""),
|
|
894
|
+
v: U.value,
|
|
895
|
+
s: j.value.style.chart.legend.suffix,
|
|
896
|
+
r: j.value.style.chart.legend.roundingValue
|
|
897
|
+
}))), 9, vt)) : p("", !0),
|
|
898
|
+
S(e.$slots, "svg", { svg: {
|
|
899
|
+
...B.value,
|
|
900
|
+
isPrintingImg: w(I) || w(L) || k.value,
|
|
901
|
+
isPrintingSvg: A.value
|
|
902
|
+
} }, void 0, !0)
|
|
903
|
+
], 14, Ve)),
|
|
904
|
+
e.$slots.watermark ? (y(), m("div", yt, [S(e.$slots, "watermark", v(g({ isPrinting: w(I) || w(L) || k.value || A.value })), void 0, !0)])) : p("", !0),
|
|
905
|
+
h("div", {
|
|
906
|
+
ref_key: "chartLegend",
|
|
907
|
+
ref: jt
|
|
908
|
+
}, [S(e.$slots, "legend", { legend: R.value }, void 0, !0)], 512),
|
|
909
|
+
e.$slots.source ? (y(), m("div", {
|
|
910
|
+
key: 5,
|
|
911
|
+
ref_key: "source",
|
|
912
|
+
ref: Mt,
|
|
913
|
+
dir: "auto"
|
|
914
|
+
}, [S(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
915
|
+
S(e.$slots, "skeleton", {}, () => [w(Lt) ? (y(), f(me, { key: 0 })) : p("", !0)], !0)
|
|
916
|
+
], 46, ze));
|
|
917
|
+
}
|
|
918
|
+
}, [["__scopeId", "data-v-a2cc058b"]]);
|
|
919
|
+
//#endregion
|
|
920
|
+
export { Re as n, bt as t };
|