vue-data-ui 3.6.0 → 3.7.0
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/README.md +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.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 +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.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 +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- 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 +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -0,0 +1,864 @@
|
|
|
1
|
+
import { defineAsyncComponent as K, computed as d, ref as y, toRefs as vt, watch as Q, shallowRef as $e, onMounted as dt, onBeforeUnmount as ht, createElementBlock as n, openBlock as r, unref as u, normalizeStyle as ee, normalizeClass as Fe, createBlock as W, createCommentVNode as c, createElementVNode as k, withCtx as b, renderSlot as h, normalizeProps as $, guardReactiveProps as F, toDisplayString as R, createSlots as ft, createVNode as yt, Fragment as C, renderList as x, mergeProps as D, nextTick as gt } from "vue";
|
|
2
|
+
import { c as mt, t as pt, i as kt, p as ze, j as bt, o as Oe, l as Ct, g as U, k as Me, Z as te, a2 as M, aa as _t, M as St, X as wt, s as ae, U as At, a0 as xt, a as oe, d as le, Y as re } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { t as $t, u as Ft } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as zt, B as Ot } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as Mt } from "./usePrinter-DCJzEiS8.js";
|
|
6
|
+
import { u as Nt, a as se } from "./useNestedProp-CWo6bftQ.js";
|
|
7
|
+
import { u as Pt } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as It } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
+
import { u as Xt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as Et } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as Yt } from "./useAutoSizeLabelsInsideViewbox-DOALwU4q.js";
|
|
12
|
+
import Rt from "./img-DUzJeMlr.js";
|
|
13
|
+
import Bt from "./Title-DfFUb9hd.js";
|
|
14
|
+
import { _ as Dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const Ne = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { markers: { color: "#CCCCCC" }, pointer: { stroke: "#1A1A1A", circle: { stroke: "#1A1A1A", color: "#5A5A5A" } } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } } }, Pe = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { track: { useGradient: !1 }, markers: { color: "#5D4037" }, pointer: { type: "pointy", stroke: "#FFF8E1", circle: { stroke: "#FFF8E1", strokeWidth: 1, color: "#5D4037" } } }, title: { color: "#424242", subtitle: { color: "#757575" } } } } }, Ie = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { track: { useGradient: !1 }, markers: { color: "#BDBDBD" }, pointer: { type: "pointy", stroke: "#1E1E1E", circle: { stroke: "#1E1E1E", strokeWidth: 1, color: "#5D4037" } } }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } } } } }, Xe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { track: { useGradient: !1 }, markers: { color: "#99CC99", backgroundColor: "#1A1A1A", stroke: "#66CC66" }, pointer: { type: "pointy", stroke: "#1A1A1A", circle: { stroke: "#66CC66", strokeWidth: 1, color: "#1A1A1A" } } }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } } }, Ee = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { track: { useGradient: !1 }, markers: { color: "#A0AC94", backgroundColor: "#fbfafa", stroke: "#EBD6CC" }, pointer: { type: "rounded", stroke: "#fbfafa", circle: { stroke: "#EBD6CC", strokeWidth: 1, color: "#fbfafa" } } }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } } }, Ye = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { track: { useGradient: !1 }, markers: { color: "#4F5B75", backgroundColor: "#4F5B75", stroke: "#9FA9BE" }, pointer: { type: "pointy", stroke: "#f6f6fb", circle: { stroke: "#f6f6fb", strokeWidth: 1, color: "#4F5B75" } } }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } } }, Re = {
|
|
16
|
+
default: {},
|
|
17
|
+
dark: Ne,
|
|
18
|
+
celebration: Pe,
|
|
19
|
+
celebrationNight: Ie,
|
|
20
|
+
hack: Xe,
|
|
21
|
+
zen: Ee,
|
|
22
|
+
concrete: Ye
|
|
23
|
+
}, Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24
|
+
__proto__: null,
|
|
25
|
+
celebration: Pe,
|
|
26
|
+
celebrationNight: Ie,
|
|
27
|
+
concrete: Ye,
|
|
28
|
+
dark: Ne,
|
|
29
|
+
default: Re,
|
|
30
|
+
hack: Xe,
|
|
31
|
+
zen: Ee
|
|
32
|
+
}, Symbol.toStringTag, { value: "Module" })), Tt = ["id"], Gt = { key: 0 }, Lt = ["xmlns", "viewBox"], jt = ["width", "height"], Wt = ["id"], Ut = ["stop-color"], Vt = ["stop-color"], Ht = ["stop-color"], qt = ["id"], Zt = ["stdDeviation"], Jt = { key: 1 }, Kt = ["d", "fill", "stroke"], Qt = ["d", "fill", "stroke"], ea = ["d", "fill"], ta = ["id", "d"], aa = ["fill", "font-size", "font-weight"], oa = ["href", "startOffset"], la = ["text-anchor", "fill", "font-size", "font-weight", "innerHTML"], ra = ["d", "filter"], sa = ["stroke", "stroke-width"], na = ["stroke", "stroke-width"], ua = ["stroke", "stroke-width"], ia = ["stroke", "stroke-width"], ca = { key: 8 }, va = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], da = ["x", "y", "font-size", "font-weight", "fill"], ha = { key: 0 }, fa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ya = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ga = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], ma = { key: 1 }, pa = ["d", "fill", "stroke", "stroke-width"], ka = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], ba = ["x", "y", "font-size", "fill"], Ca = {
|
|
33
|
+
key: 4,
|
|
34
|
+
class: "vue-data-ui-watermark"
|
|
35
|
+
}, _a = {
|
|
36
|
+
__name: "vue-ui-gauge",
|
|
37
|
+
props: {
|
|
38
|
+
config: {
|
|
39
|
+
type: Object,
|
|
40
|
+
default() {
|
|
41
|
+
return {};
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
dataset: {
|
|
45
|
+
type: Object,
|
|
46
|
+
default() {
|
|
47
|
+
return {};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
setup(Be, { expose: De }) {
|
|
52
|
+
const Te = K(() => import("./PenAndPaper-HCZQTkqi.js")), Ge = K(() => import("./UserOptions-B3I-s3Lw.js")), Le = K(() => import("./PackageVersion-Bq_mtsqr.js")), { vue_ui_gauge: je } = Nt(), { isThemeValid: We, warnInvalidTheme: Ue } = It(), m = Be, Ve = d(() => !!m.dataset && Object.keys(m.dataset).length > 0 && m.dataset.series && m.dataset.series.length), w = y(mt()), He = y(null), ne = y(0), N = y(null), ue = y(null), ie = y(null), ce = y(null), ve = y(null), de = y(0), e = y(H()), { loading: he, FINAL_DATASET: A, manualLoading: X } = zt({
|
|
53
|
+
...vt(m),
|
|
54
|
+
FINAL_CONFIG: e,
|
|
55
|
+
prepareConfig: H,
|
|
56
|
+
callback: () => {
|
|
57
|
+
Promise.resolve().then(async () => {
|
|
58
|
+
await gt();
|
|
59
|
+
});
|
|
60
|
+
},
|
|
61
|
+
skeletonDataset: {
|
|
62
|
+
value: 0,
|
|
63
|
+
series: [
|
|
64
|
+
{ from: -1, to: 0, name: "_", color: "#A1A1A1" },
|
|
65
|
+
{ from: 0, to: 1, name: "__", color: "#CACACA" }
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
skeletonConfig: pt({
|
|
69
|
+
defaultConfig: e.value,
|
|
70
|
+
userConfig: {
|
|
71
|
+
userOptions: { show: !1 },
|
|
72
|
+
style: {
|
|
73
|
+
chart: {
|
|
74
|
+
backgroundColor: "#99999930",
|
|
75
|
+
animation: { use: !1 },
|
|
76
|
+
layout: {
|
|
77
|
+
markers: { show: !1 },
|
|
78
|
+
segmentSeparators: { stroke: "#6A6A6A" },
|
|
79
|
+
segmentNames: { show: !1 },
|
|
80
|
+
indicatorArc: { fill: "#6A6A6A50" },
|
|
81
|
+
pointer: {
|
|
82
|
+
stroke: "#6A6A6A",
|
|
83
|
+
useRatingColor: !0,
|
|
84
|
+
circle: {
|
|
85
|
+
stroke: "#6A6A6A",
|
|
86
|
+
color: "#6A6A6A"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
legend: {
|
|
91
|
+
show: !1
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
})
|
|
97
|
+
}), { userOptionsVisible: V, setUserOptionsVisibility: fe, keepUserOptionState: ye } = Xt({ config: e.value }), { svgRef: T } = Et({ config: e.value.style.chart.title });
|
|
98
|
+
Q(() => m.config, (t) => {
|
|
99
|
+
he.value || (e.value = H()), V.value = !e.value.userOptions.showOnChartHover, Z(), de.value += 1;
|
|
100
|
+
}, { deep: !0 }), Q(() => m.dataset, (t) => {
|
|
101
|
+
Z(), t && Object.keys(t).length > 0 && (X.value = e.value?.loading ?? !1);
|
|
102
|
+
}, { deep: !0, immediate: !1 });
|
|
103
|
+
function H() {
|
|
104
|
+
const t = se({
|
|
105
|
+
userConfig: m.config,
|
|
106
|
+
defaultConfig: je
|
|
107
|
+
}), s = t.theme;
|
|
108
|
+
if (!s) return t;
|
|
109
|
+
if (!We.value(t))
|
|
110
|
+
return Ue(t), t;
|
|
111
|
+
const a = se({
|
|
112
|
+
userConfig: Re[s] || m.config,
|
|
113
|
+
defaultConfig: t
|
|
114
|
+
}), o = se({
|
|
115
|
+
userConfig: m.config,
|
|
116
|
+
defaultConfig: a
|
|
117
|
+
});
|
|
118
|
+
return {
|
|
119
|
+
...o,
|
|
120
|
+
customPalette: o.customPalette.length ? o.customPalette : kt[s] || ze
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
const { isPrinting: ge, isImaging: me, generatePdf: pe, generateImage: ke } = Mt({
|
|
124
|
+
elementId: `vue-ui-gauge_${w.value}`,
|
|
125
|
+
fileName: e.value.style.chart.title.text || "vue-ui-gauge",
|
|
126
|
+
options: e.value.userOptions.print
|
|
127
|
+
}), qe = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ze = d(() => bt(e.value.customPalette)), P = d(() => {
|
|
128
|
+
if (Oe(A.value.series || {}))
|
|
129
|
+
return {
|
|
130
|
+
value: 0,
|
|
131
|
+
series: [
|
|
132
|
+
{
|
|
133
|
+
from: 0,
|
|
134
|
+
to: 0
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
};
|
|
138
|
+
const t = [];
|
|
139
|
+
(A.value.series || []).forEach((a) => {
|
|
140
|
+
t.push(a.from || 1e-7), t.push(a.to || 1e-7);
|
|
141
|
+
});
|
|
142
|
+
const s = Math.max(...t);
|
|
143
|
+
return {
|
|
144
|
+
...A.value,
|
|
145
|
+
series: (A.value.series || []).map((a, o) => ({
|
|
146
|
+
...a,
|
|
147
|
+
color: Ct(a.color) || Ze.value[o] || ze[o],
|
|
148
|
+
value: ((a.to || 0) - (a.from || 0)) / s * 100
|
|
149
|
+
}))
|
|
150
|
+
};
|
|
151
|
+
}), _ = y(512), l = y({
|
|
152
|
+
height: 358.4,
|
|
153
|
+
width: _.value,
|
|
154
|
+
top: 0,
|
|
155
|
+
bottom: 358.4,
|
|
156
|
+
centerX: 179.2,
|
|
157
|
+
centerY: _.value / 2,
|
|
158
|
+
labelFontSize: 18,
|
|
159
|
+
legendFontSize: e.value.style.chart.legend.fontSize,
|
|
160
|
+
pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
|
|
161
|
+
trackSize: e.value.style.chart.layout.track.size,
|
|
162
|
+
pointerSize: e.value.style.chart.layout.pointer.size,
|
|
163
|
+
pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
|
|
164
|
+
markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
|
|
165
|
+
segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
|
|
166
|
+
}), E = y(0), z = y(0), g = y(
|
|
167
|
+
e.value.style.chart.animation.use ? Math.min(...A.value.series.map((t) => t.from)) : A.value.value
|
|
168
|
+
);
|
|
169
|
+
Q(() => A.value.value, () => {
|
|
170
|
+
_e(A.value.value);
|
|
171
|
+
});
|
|
172
|
+
const i = d(() => {
|
|
173
|
+
const t = l.value.width / 2, s = v.value.base, a = Math.PI * ((g.value + 0 - z.value) / (E.value - z.value)) + Math.PI;
|
|
174
|
+
return {
|
|
175
|
+
x1: t,
|
|
176
|
+
y1: s,
|
|
177
|
+
x2: t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a),
|
|
178
|
+
y2: s + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
|
|
179
|
+
};
|
|
180
|
+
}), be = d(() => {
|
|
181
|
+
const t = l.value.width / 2, s = v.value.base, a = Math.PI * ((g.value + 0 - z.value) / (E.value - z.value)) + Math.PI, o = t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), p = s + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), S = l.value.pointerRadius, nt = t + S * Math.cos(a + Math.PI / 2), ut = s + S * Math.sin(a + Math.PI / 2), it = t + S * Math.cos(a - Math.PI / 2), ct = s + S * Math.sin(a - Math.PI / 2);
|
|
182
|
+
return isNaN(o) ? null : `M ${o},${p} ${nt},${ut} ${it},${ct} Z`;
|
|
183
|
+
}), q = d(() => {
|
|
184
|
+
for (let t = 0; t < P.value.series.length; t += 1) {
|
|
185
|
+
const { color: s, from: a, to: o } = P.value.series[t];
|
|
186
|
+
if (g.value >= a && g.value <= o)
|
|
187
|
+
return s;
|
|
188
|
+
}
|
|
189
|
+
return "#2D353C";
|
|
190
|
+
}), O = $e(null), Y = $e(null), G = d({
|
|
191
|
+
get: () => l.value.segmentFontSize,
|
|
192
|
+
set: (t) => t
|
|
193
|
+
}), { autoSizeLabels: Ce } = Yt({
|
|
194
|
+
svgRef: T,
|
|
195
|
+
fontSize: l.value.segmentFontSize,
|
|
196
|
+
minFontSize: e.value.style.chart.layout.segmentNames.minFontSize,
|
|
197
|
+
sizeRef: G,
|
|
198
|
+
labelClass: ".vue-ui-gauge-label-flat"
|
|
199
|
+
}), L = d(() => !!e.value.debug);
|
|
200
|
+
function Z() {
|
|
201
|
+
let t = !1;
|
|
202
|
+
if (Oe(m.dataset) ? (U({
|
|
203
|
+
componentName: "VueUiGauge",
|
|
204
|
+
type: "dataset",
|
|
205
|
+
debug: L.value
|
|
206
|
+
}), X.value = !0, t = !0) : (Me({
|
|
207
|
+
datasetObject: m.dataset,
|
|
208
|
+
requiredAttributes: ["value", "series"]
|
|
209
|
+
}).forEach((s) => {
|
|
210
|
+
U({
|
|
211
|
+
componentName: "VueUiGauge",
|
|
212
|
+
type: "datasetAttribute",
|
|
213
|
+
property: s,
|
|
214
|
+
debug: L.value
|
|
215
|
+
}), X.value = !0, t = !0;
|
|
216
|
+
}), Object.hasOwn(m.dataset, "series") && (m.dataset.series.length ? m.dataset.series.forEach((s, a) => {
|
|
217
|
+
Me({
|
|
218
|
+
datasetObject: s,
|
|
219
|
+
requiredAttributes: ["from", "to"]
|
|
220
|
+
}).forEach((o) => {
|
|
221
|
+
U({
|
|
222
|
+
componentName: "VueUiGauge",
|
|
223
|
+
type: "datasetSerieAttribute",
|
|
224
|
+
property: o,
|
|
225
|
+
index: a,
|
|
226
|
+
debug: L.value
|
|
227
|
+
}), X.value = !0, t = !0;
|
|
228
|
+
});
|
|
229
|
+
}) : (U({
|
|
230
|
+
componentName: "VueUiGauge",
|
|
231
|
+
type: "datasetAttributeEmpty",
|
|
232
|
+
property: "series",
|
|
233
|
+
debug: L.value
|
|
234
|
+
}), X.value = !0, t = !0))), X.value = t, _e(A.value.value || 0), e.value.responsive) {
|
|
235
|
+
const s = $t(() => {
|
|
236
|
+
let { width: a, height: o } = Ft({
|
|
237
|
+
chart: N.value,
|
|
238
|
+
title: e.value.style.chart.title.text ? ue.value : null,
|
|
239
|
+
legend: ie.value,
|
|
240
|
+
source: ce.value,
|
|
241
|
+
noTitle: ve.value
|
|
242
|
+
});
|
|
243
|
+
o -= 12, requestAnimationFrame(() => {
|
|
244
|
+
l.value.width = a, l.value.height = o, l.value.centerX = a / 2, l.value.centerY = _.value / 2 / 358.4 * o, l.value.bottom = o, l.value.labelFontSize = 18 / _.value * Math.min(o, a) < 10 ? 10 : 18 / _.value * Math.min(o, a), l.value.legendFontSize = e.value.style.chart.legend.fontSize / _.value * Math.min(o, a) < 14 ? 14 : e.value.style.chart.legend.fontSize / _.value * Math.min(o, a), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / _.value * Math.min(o, a), l.value.trackSize = e.value.style.chart.layout.track.size / _.value * Math.min(o, a), l.value.pointerStrokeWidth = re({
|
|
245
|
+
relator: Math.min(a, o),
|
|
246
|
+
adjuster: _.value,
|
|
247
|
+
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
248
|
+
threshold: 2,
|
|
249
|
+
fallback: 2
|
|
250
|
+
}), l.value.markerOffset = re({
|
|
251
|
+
relator: Math.max(a, o),
|
|
252
|
+
adjuster: _.value,
|
|
253
|
+
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
254
|
+
threshold: 2,
|
|
255
|
+
fallback: 2
|
|
256
|
+
}), l.value.segmentFontSize = re({
|
|
257
|
+
relator: Math.min(a, o),
|
|
258
|
+
adjuster: _.value,
|
|
259
|
+
source: e.value.style.chart.layout.segmentNames.fontSize,
|
|
260
|
+
threshold: 8,
|
|
261
|
+
fallback: 8
|
|
262
|
+
});
|
|
263
|
+
}), Ce();
|
|
264
|
+
});
|
|
265
|
+
O.value && (Y.value && O.value.unobserve(Y.value), O.value.disconnect()), O.value = new ResizeObserver(s), Y.value = N.value.parentNode, O.value.observe(Y.value);
|
|
266
|
+
}
|
|
267
|
+
Ce();
|
|
268
|
+
}
|
|
269
|
+
dt(() => {
|
|
270
|
+
Z();
|
|
271
|
+
}), ht(() => {
|
|
272
|
+
O.value && (Y.value && O.value.unobserve(Y.value), O.value.disconnect());
|
|
273
|
+
});
|
|
274
|
+
function _e(t) {
|
|
275
|
+
const s = [];
|
|
276
|
+
(P.value.series || []).forEach((S) => {
|
|
277
|
+
s.push(S.from || 0), s.push(S.to || 0);
|
|
278
|
+
}), E.value = Math.max(...s), z.value = Math.min(...s);
|
|
279
|
+
let a = e.value.style.chart.animation.speed;
|
|
280
|
+
const o = Math.abs(t - g.value) / (a * 60);
|
|
281
|
+
function p() {
|
|
282
|
+
g.value < t ? g.value = Math.min(g.value + o, t) : g.value > t && (g.value = Math.max(g.value - o, t)), g.value !== t && requestAnimationFrame(p);
|
|
283
|
+
}
|
|
284
|
+
p();
|
|
285
|
+
}
|
|
286
|
+
const v = d(() => {
|
|
287
|
+
const t = e.value.responsive ? Math.min(l.value.width, l.value.height) : l.value.width, s = 2.5 / e.value.style.chart.layout.radiusRatio;
|
|
288
|
+
return {
|
|
289
|
+
arcs: t / s,
|
|
290
|
+
gradients: t / (s * 1.1),
|
|
291
|
+
base: e.value.responsive ? l.value.height / 1.618 : l.value.height * 0.7,
|
|
292
|
+
ratingBase: e.value.responsive ? l.value.height / 2 + l.value.height / 4 : l.value.height * 0.9,
|
|
293
|
+
pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
|
|
294
|
+
};
|
|
295
|
+
}), f = d(() => te(
|
|
296
|
+
{ series: P.value.series },
|
|
297
|
+
l.value.width / 2,
|
|
298
|
+
v.value.base,
|
|
299
|
+
v.value.arcs,
|
|
300
|
+
v.value.arcs,
|
|
301
|
+
1,
|
|
302
|
+
1,
|
|
303
|
+
1,
|
|
304
|
+
180,
|
|
305
|
+
109.9495,
|
|
306
|
+
40 * l.value.trackSize
|
|
307
|
+
)), Je = d(() => te(
|
|
308
|
+
{ series: P.value.series },
|
|
309
|
+
l.value.width / 2,
|
|
310
|
+
v.value.base,
|
|
311
|
+
v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
312
|
+
v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
313
|
+
1,
|
|
314
|
+
1,
|
|
315
|
+
1,
|
|
316
|
+
180,
|
|
317
|
+
109.9495,
|
|
318
|
+
40 * l.value.trackSize
|
|
319
|
+
)), I = d(() => f.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), Se = d(() => {
|
|
320
|
+
const { x: t, y: s } = M({
|
|
321
|
+
initX: f.value[0].firstSeparator.x,
|
|
322
|
+
initY: f.value[0].firstSeparator.y,
|
|
323
|
+
centerX: i.value.x1,
|
|
324
|
+
centerY: i.value.y1,
|
|
325
|
+
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
326
|
+
}), { x: a, y: o } = M({
|
|
327
|
+
initX: f.value[0].startX,
|
|
328
|
+
initY: f.value[0].startY,
|
|
329
|
+
centerX: i.value.x1,
|
|
330
|
+
centerY: i.value.y1,
|
|
331
|
+
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
332
|
+
});
|
|
333
|
+
return { x1: t, y1: s, x2: a, y2: o };
|
|
334
|
+
}), we = d(() => f.value.map((t) => {
|
|
335
|
+
const { x: s, y: a } = M({
|
|
336
|
+
initX: t.separator.x,
|
|
337
|
+
initY: t.separator.y,
|
|
338
|
+
centerX: i.value.x1,
|
|
339
|
+
centerY: i.value.y1,
|
|
340
|
+
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
341
|
+
}), { x: o, y: p } = M({
|
|
342
|
+
initX: t.endX,
|
|
343
|
+
initY: t.endY,
|
|
344
|
+
centerX: i.value.x1,
|
|
345
|
+
centerY: i.value.y1,
|
|
346
|
+
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
347
|
+
});
|
|
348
|
+
return { x1: s, y1: a, x2: o, y2: p };
|
|
349
|
+
}));
|
|
350
|
+
function Ke(t) {
|
|
351
|
+
if (t.reduce((p, S) => p + S, 0) > 100)
|
|
352
|
+
throw new Error("Total % must not exceed 100");
|
|
353
|
+
const a = 50;
|
|
354
|
+
let o = 0;
|
|
355
|
+
return t.map((p) => (o += p, `${o / 100 * a - p / 4}%`));
|
|
356
|
+
}
|
|
357
|
+
const Qe = d(() => Ke(f.value.map((t) => t.proportion * 100))), et = d(() => te(
|
|
358
|
+
{ series: P.value.series },
|
|
359
|
+
l.value.width / 2,
|
|
360
|
+
v.value.base,
|
|
361
|
+
v.value.gradients,
|
|
362
|
+
v.value.gradients,
|
|
363
|
+
0.95,
|
|
364
|
+
1,
|
|
365
|
+
1,
|
|
366
|
+
180,
|
|
367
|
+
110.02,
|
|
368
|
+
2 * l.value.trackSize
|
|
369
|
+
)), tt = d(() => {
|
|
370
|
+
const t = z.value >= 0 ? -z.value : Math.abs(z.value);
|
|
371
|
+
return _t({
|
|
372
|
+
radius: e.value.style.chart.layout.indicatorArc.radius * l.value.trackSize,
|
|
373
|
+
centerX: l.value.width / 2,
|
|
374
|
+
centerY: v.value.base,
|
|
375
|
+
percentage: St((g.value + t) / (E.value + t))
|
|
376
|
+
});
|
|
377
|
+
}), B = y(!1);
|
|
378
|
+
function Ae(t) {
|
|
379
|
+
B.value = t, ne.value += 1;
|
|
380
|
+
}
|
|
381
|
+
const j = y(!1);
|
|
382
|
+
function J() {
|
|
383
|
+
j.value = !j.value;
|
|
384
|
+
}
|
|
385
|
+
async function at({ scale: t = 2 } = {}) {
|
|
386
|
+
if (!N.value) return;
|
|
387
|
+
const { width: s, height: a } = N.value.getBoundingClientRect(), o = s / a, { imageUri: p, base64: S } = await Rt({ domElement: N.value, base64: !0, img: !0, scale: t });
|
|
388
|
+
return {
|
|
389
|
+
imageUri: p,
|
|
390
|
+
base64: S,
|
|
391
|
+
title: e.value.style.chart.title.text,
|
|
392
|
+
width: s,
|
|
393
|
+
height: a,
|
|
394
|
+
aspectRatio: o
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
const ot = d(() => e.value.style.chart.backgroundColor), lt = d(() => e.value.style.chart.title), { exportSvg: rt, getSvg: st } = Pt({
|
|
398
|
+
svg: T,
|
|
399
|
+
title: lt,
|
|
400
|
+
backgroundColor: ot
|
|
401
|
+
});
|
|
402
|
+
async function xe({ isCb: t }) {
|
|
403
|
+
if (t) {
|
|
404
|
+
const { blob: s, url: a, text: o, dataUrl: p } = await st();
|
|
405
|
+
e.value.userOptions.callbacks.svg({ blob: s, url: a, text: o, dataUrl: p });
|
|
406
|
+
} else
|
|
407
|
+
rt();
|
|
408
|
+
}
|
|
409
|
+
return De({
|
|
410
|
+
getImage: at,
|
|
411
|
+
generatePdf: pe,
|
|
412
|
+
generateImage: ke,
|
|
413
|
+
generateSvg: xe,
|
|
414
|
+
toggleAnnotator: J,
|
|
415
|
+
toggleFullscreen: Ae
|
|
416
|
+
}), (t, s) => (r(), n("div", {
|
|
417
|
+
class: Fe(`vue-data-ui-component vue-ui-gauge ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
418
|
+
ref_key: "gaugeChart",
|
|
419
|
+
ref: N,
|
|
420
|
+
id: `vue-ui-gauge_${w.value}`,
|
|
421
|
+
style: ee(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
422
|
+
onMouseenter: s[0] || (s[0] = () => u(fe)(!0)),
|
|
423
|
+
onMouseleave: s[1] || (s[1] = () => u(fe)(!1))
|
|
424
|
+
}, [
|
|
425
|
+
e.value.userOptions.buttons.annotator ? (r(), W(u(Te), {
|
|
426
|
+
key: 0,
|
|
427
|
+
svgRef: u(T),
|
|
428
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
429
|
+
color: e.value.style.chart.color,
|
|
430
|
+
active: j.value,
|
|
431
|
+
onClose: J
|
|
432
|
+
}, {
|
|
433
|
+
"annotator-action-close": b(() => [
|
|
434
|
+
h(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
435
|
+
]),
|
|
436
|
+
"annotator-action-color": b(({ color: a }) => [
|
|
437
|
+
h(t.$slots, "annotator-action-color", $(F({ color: a })), void 0, !0)
|
|
438
|
+
]),
|
|
439
|
+
"annotator-action-draw": b(({ mode: a }) => [
|
|
440
|
+
h(t.$slots, "annotator-action-draw", $(F({ mode: a })), void 0, !0)
|
|
441
|
+
]),
|
|
442
|
+
"annotator-action-undo": b(({ disabled: a }) => [
|
|
443
|
+
h(t.$slots, "annotator-action-undo", $(F({ disabled: a })), void 0, !0)
|
|
444
|
+
]),
|
|
445
|
+
"annotator-action-redo": b(({ disabled: a }) => [
|
|
446
|
+
h(t.$slots, "annotator-action-redo", $(F({ disabled: a })), void 0, !0)
|
|
447
|
+
]),
|
|
448
|
+
"annotator-action-delete": b(({ disabled: a }) => [
|
|
449
|
+
h(t.$slots, "annotator-action-delete", $(F({ disabled: a })), void 0, !0)
|
|
450
|
+
]),
|
|
451
|
+
_: 3
|
|
452
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
453
|
+
qe.value ? (r(), n("div", {
|
|
454
|
+
key: 1,
|
|
455
|
+
ref_key: "noTitle",
|
|
456
|
+
ref: ve,
|
|
457
|
+
class: "vue-data-ui-no-title-space",
|
|
458
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
459
|
+
}, null, 512)) : c("", !0),
|
|
460
|
+
e.value.style.chart.title.text ? (r(), n("div", {
|
|
461
|
+
key: 2,
|
|
462
|
+
ref_key: "chartTitle",
|
|
463
|
+
ref: ue,
|
|
464
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
465
|
+
}, [
|
|
466
|
+
(r(), W(Bt, {
|
|
467
|
+
key: `title_${de.value}`,
|
|
468
|
+
config: {
|
|
469
|
+
title: {
|
|
470
|
+
cy: "gauge-div-title",
|
|
471
|
+
...e.value.style.chart.title
|
|
472
|
+
},
|
|
473
|
+
subtitle: {
|
|
474
|
+
cy: "gauge-div-subtitle",
|
|
475
|
+
...e.value.style.chart.title.subtitle
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}, {
|
|
479
|
+
default: b(() => [
|
|
480
|
+
e.value.translations.base && u(A).base ? (r(), n("span", Gt, R(e.value.translations.base) + ": " + R(u(A).base), 1)) : c("", !0)
|
|
481
|
+
]),
|
|
482
|
+
_: 1
|
|
483
|
+
}, 8, ["config"]))
|
|
484
|
+
], 512)) : c("", !0),
|
|
485
|
+
e.value.userOptions.show && Ve.value && (u(ye) || u(V)) ? (r(), W(u(Ge), {
|
|
486
|
+
ref_key: "details",
|
|
487
|
+
ref: He,
|
|
488
|
+
key: `user_options_${ne.value}`,
|
|
489
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
490
|
+
color: e.value.style.chart.color,
|
|
491
|
+
isImaging: u(me),
|
|
492
|
+
isPrinting: u(ge),
|
|
493
|
+
uid: w.value,
|
|
494
|
+
hasXls: !1,
|
|
495
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
496
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
497
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
498
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
499
|
+
isFullscreen: B.value,
|
|
500
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
501
|
+
chartElement: N.value,
|
|
502
|
+
callbacks: e.value.userOptions.callbacks,
|
|
503
|
+
printScale: e.value.userOptions.print.scale,
|
|
504
|
+
position: e.value.userOptions.position,
|
|
505
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
506
|
+
isAnnotation: j.value,
|
|
507
|
+
onToggleFullscreen: Ae,
|
|
508
|
+
onGeneratePdf: u(pe),
|
|
509
|
+
onGenerateImage: u(ke),
|
|
510
|
+
onGenerateSvg: xe,
|
|
511
|
+
onToggleAnnotator: J,
|
|
512
|
+
style: ee({
|
|
513
|
+
visibility: u(ye) ? u(V) ? "visible" : "hidden" : "visible"
|
|
514
|
+
})
|
|
515
|
+
}, ft({ _: 2 }, [
|
|
516
|
+
t.$slots.menuIcon ? {
|
|
517
|
+
name: "menuIcon",
|
|
518
|
+
fn: b(({ isOpen: a, color: o }) => [
|
|
519
|
+
h(t.$slots, "menuIcon", $(F({ isOpen: a, color: o })), void 0, !0)
|
|
520
|
+
]),
|
|
521
|
+
key: "0"
|
|
522
|
+
} : void 0,
|
|
523
|
+
t.$slots.optionPdf ? {
|
|
524
|
+
name: "optionPdf",
|
|
525
|
+
fn: b(() => [
|
|
526
|
+
h(t.$slots, "optionPdf", {}, void 0, !0)
|
|
527
|
+
]),
|
|
528
|
+
key: "1"
|
|
529
|
+
} : void 0,
|
|
530
|
+
t.$slots.optionImg ? {
|
|
531
|
+
name: "optionImg",
|
|
532
|
+
fn: b(() => [
|
|
533
|
+
h(t.$slots, "optionImg", {}, void 0, !0)
|
|
534
|
+
]),
|
|
535
|
+
key: "2"
|
|
536
|
+
} : void 0,
|
|
537
|
+
t.$slots.optionSvg ? {
|
|
538
|
+
name: "optionSvg",
|
|
539
|
+
fn: b(() => [
|
|
540
|
+
h(t.$slots, "optionSvg", {}, void 0, !0)
|
|
541
|
+
]),
|
|
542
|
+
key: "3"
|
|
543
|
+
} : void 0,
|
|
544
|
+
t.$slots.optionFullscreen ? {
|
|
545
|
+
name: "optionFullscreen",
|
|
546
|
+
fn: b(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
547
|
+
h(t.$slots, "optionFullscreen", $(F({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
548
|
+
]),
|
|
549
|
+
key: "4"
|
|
550
|
+
} : void 0,
|
|
551
|
+
t.$slots.optionAnnotator ? {
|
|
552
|
+
name: "optionAnnotator",
|
|
553
|
+
fn: b(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
554
|
+
h(t.$slots, "optionAnnotator", $(F({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
555
|
+
]),
|
|
556
|
+
key: "5"
|
|
557
|
+
} : void 0
|
|
558
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "callbacks", "printScale", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
559
|
+
(r(), n("svg", {
|
|
560
|
+
ref_key: "svgRef",
|
|
561
|
+
ref: T,
|
|
562
|
+
xmlns: u(wt),
|
|
563
|
+
class: Fe({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
|
|
564
|
+
viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
|
|
565
|
+
style: ee(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
566
|
+
}, [
|
|
567
|
+
yt(u(Le)),
|
|
568
|
+
t.$slots["chart-background"] ? (r(), n("foreignObject", {
|
|
569
|
+
key: 0,
|
|
570
|
+
x: 0,
|
|
571
|
+
y: 0,
|
|
572
|
+
width: l.value.width <= 0 ? 10 : l.value.width,
|
|
573
|
+
height: l.value.height <= 0 ? 10 : l.value.height,
|
|
574
|
+
style: {
|
|
575
|
+
pointerEvents: "none"
|
|
576
|
+
}
|
|
577
|
+
}, [
|
|
578
|
+
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
579
|
+
], 8, jt)) : c("", !0),
|
|
580
|
+
k("defs", null, [
|
|
581
|
+
k("radialGradient", {
|
|
582
|
+
id: `gradient_${w.value}`,
|
|
583
|
+
cx: "50%",
|
|
584
|
+
cy: "50%",
|
|
585
|
+
r: "50%",
|
|
586
|
+
fx: "50%",
|
|
587
|
+
fy: "50%"
|
|
588
|
+
}, [
|
|
589
|
+
k("stop", {
|
|
590
|
+
offset: "0%",
|
|
591
|
+
"stop-color": u(ae)("#FFFFFF", 1)
|
|
592
|
+
}, null, 8, Ut),
|
|
593
|
+
k("stop", {
|
|
594
|
+
offset: "80%",
|
|
595
|
+
"stop-color": u(ae)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
596
|
+
}, null, 8, Vt),
|
|
597
|
+
k("stop", {
|
|
598
|
+
offset: "100%",
|
|
599
|
+
"stop-color": u(ae)("#FFFFFF", 1)
|
|
600
|
+
}, null, 8, Ht)
|
|
601
|
+
], 8, Wt)
|
|
602
|
+
]),
|
|
603
|
+
k("defs", null, [
|
|
604
|
+
k("filter", {
|
|
605
|
+
id: `blur_${w.value}`,
|
|
606
|
+
x: "-50%",
|
|
607
|
+
y: "-50%",
|
|
608
|
+
width: "200%",
|
|
609
|
+
height: "200%"
|
|
610
|
+
}, [
|
|
611
|
+
k("feGaussianBlur", {
|
|
612
|
+
in: "SourceGraphic",
|
|
613
|
+
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
614
|
+
}, null, 8, Zt)
|
|
615
|
+
], 8, qt)
|
|
616
|
+
]),
|
|
617
|
+
t.$slots.pattern ? (r(), n("g", Jt, [
|
|
618
|
+
(r(!0), n(C, null, x(f.value, (a, o) => (r(), n("defs", null, [
|
|
619
|
+
h(t.$slots, "pattern", D({ ref_for: !0 }, { seriesIndex: o, patternId: `pattern_${w.value}_${o}` }), void 0, !0)
|
|
620
|
+
]))), 256))
|
|
621
|
+
])) : c("", !0),
|
|
622
|
+
(r(!0), n(C, null, x(f.value, (a, o) => (r(), n("path", {
|
|
623
|
+
key: `arc_${o}`,
|
|
624
|
+
d: a.arcSlice,
|
|
625
|
+
fill: a.color,
|
|
626
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
627
|
+
"stroke-linecap": "round"
|
|
628
|
+
}, null, 8, Kt))), 128)),
|
|
629
|
+
t.$slots.pattern ? (r(!0), n(C, { key: 2 }, x(f.value, (a, o) => (r(), n("path", {
|
|
630
|
+
key: `arc_${o}`,
|
|
631
|
+
d: a.arcSlice,
|
|
632
|
+
fill: `url(#pattern_${w.value}_${o})`,
|
|
633
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
634
|
+
"stroke-linecap": "round"
|
|
635
|
+
}, null, 8, Qt))), 128)) : c("", !0),
|
|
636
|
+
e.value.style.chart.layout.indicatorArc.show ? (r(), n("path", {
|
|
637
|
+
key: 3,
|
|
638
|
+
d: tt.value,
|
|
639
|
+
fill: e.value.style.chart.layout.indicatorArc.fill
|
|
640
|
+
}, null, 8, ea)) : c("", !0),
|
|
641
|
+
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (r(), n(C, { key: 4 }, [
|
|
642
|
+
(r(!0), n(C, null, x(f.value, (a, o) => (r(), n("path", {
|
|
643
|
+
id: `curve_${w.value}_${o}`,
|
|
644
|
+
d: `M ${i.value.x1},${i.value.y1} m -${I.value[o]},0 a ${I.value[o]},${I.value[o]} 0 1,1 ${2 * I.value[o]},0 a ${I.value[o]},${I.value[o]} 0 1,1 -${2 * I.value[o]},0`,
|
|
645
|
+
fill: "transparent"
|
|
646
|
+
}, null, 8, ta))), 256)),
|
|
647
|
+
(r(!0), n(C, null, x(f.value, (a, o) => (r(), n("text", {
|
|
648
|
+
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
649
|
+
"font-size": G.value,
|
|
650
|
+
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
651
|
+
"text-anchor": "middle"
|
|
652
|
+
}, [
|
|
653
|
+
k("textPath", {
|
|
654
|
+
href: `#curve_${w.value}_${o}`,
|
|
655
|
+
startOffset: Qe.value[o]
|
|
656
|
+
}, R(a.name || ""), 9, oa)
|
|
657
|
+
], 8, aa))), 256))
|
|
658
|
+
], 64)) : c("", !0),
|
|
659
|
+
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (r(!0), n(C, { key: 5 }, x(Je.value, (a, o) => (r(), n("text", {
|
|
660
|
+
class: "vue-ui-gauge-label-flat",
|
|
661
|
+
"text-anchor": u(xt)(a, !1, 12).anchor,
|
|
662
|
+
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
663
|
+
"font-size": G.value,
|
|
664
|
+
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
665
|
+
innerHTML: u(At)({
|
|
666
|
+
content: String(a.name ?? ""),
|
|
667
|
+
fontSize: G.value,
|
|
668
|
+
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
669
|
+
x: a.center.endX,
|
|
670
|
+
y: a.center.endY
|
|
671
|
+
})
|
|
672
|
+
}, null, 8, la))), 256)) : c("", !0),
|
|
673
|
+
e.value.style.chart.layout.track.useGradient ? (r(!0), n(C, { key: 6 }, x(et.value, (a, o) => (r(), n("path", {
|
|
674
|
+
key: `arc_${o}`,
|
|
675
|
+
d: a.arcSlice,
|
|
676
|
+
fill: "#FFFFFF",
|
|
677
|
+
stroke: "none",
|
|
678
|
+
"stroke-linecap": "round",
|
|
679
|
+
filter: `url(#blur_${w.value})`
|
|
680
|
+
}, null, 8, ra))), 128)) : c("", !0),
|
|
681
|
+
e.value.style.chart.layout.segmentSeparators.show ? (r(), n(C, { key: 7 }, [
|
|
682
|
+
k("line", D(Se.value, {
|
|
683
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
684
|
+
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
685
|
+
"stroke-linecap": "round"
|
|
686
|
+
}), null, 16, sa),
|
|
687
|
+
k("line", D(Se.value, {
|
|
688
|
+
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
689
|
+
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
690
|
+
"stroke-linecap": "round"
|
|
691
|
+
}), null, 16, na),
|
|
692
|
+
(r(!0), n(C, null, x(we.value, (a) => (r(), n("line", D({ ref_for: !0 }, a, {
|
|
693
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
694
|
+
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
695
|
+
"stroke-linecap": "round"
|
|
696
|
+
}), null, 16, ua))), 256)),
|
|
697
|
+
(r(!0), n(C, null, x(we.value, (a) => (r(), n("line", D({ ref_for: !0 }, a, {
|
|
698
|
+
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
699
|
+
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
700
|
+
"stroke-linecap": "round"
|
|
701
|
+
}), null, 16, ia))), 256))
|
|
702
|
+
], 64)) : c("", !0),
|
|
703
|
+
e.value.style.chart.layout.markers.show ? (r(), n("g", ca, [
|
|
704
|
+
(r(!0), n(C, null, x(f.value, (a, o) => (r(), n("text", {
|
|
705
|
+
x: u(M)({
|
|
706
|
+
centerX: i.value.x1,
|
|
707
|
+
centerY: v.value.base,
|
|
708
|
+
initX: a.center.startX,
|
|
709
|
+
initY: a.center.startY,
|
|
710
|
+
offset: l.value.markerOffset
|
|
711
|
+
}).x,
|
|
712
|
+
y: u(M)({
|
|
713
|
+
centerX: i.value.x1,
|
|
714
|
+
centerY: v.value.base,
|
|
715
|
+
initX: a.center.startX,
|
|
716
|
+
initY: a.center.startY,
|
|
717
|
+
offset: l.value.markerOffset
|
|
718
|
+
}).y,
|
|
719
|
+
"text-anchor": a.center.startX < i.value.x1 - 5 ? "end" : a.center.startX > i.value.x1 + 5 ? "start" : "middle",
|
|
720
|
+
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
721
|
+
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
722
|
+
fill: e.value.style.chart.layout.markers.color
|
|
723
|
+
}, R(u(oe)(
|
|
724
|
+
e.value.style.chart.layout.markers.formatter,
|
|
725
|
+
a.from,
|
|
726
|
+
u(le)({
|
|
727
|
+
p: e.value.style.chart.layout.markers.prefix,
|
|
728
|
+
v: a.from,
|
|
729
|
+
s: e.value.style.chart.layout.markers.suffix,
|
|
730
|
+
r: e.value.style.chart.layout.markers.roundingValue
|
|
731
|
+
})
|
|
732
|
+
)), 9, va))), 256))
|
|
733
|
+
])) : c("", !0),
|
|
734
|
+
e.value.style.chart.layout.markers.show ? (r(), n("text", {
|
|
735
|
+
key: 9,
|
|
736
|
+
x: u(M)({
|
|
737
|
+
centerX: l.value.width / 2,
|
|
738
|
+
centerY: v.value.base,
|
|
739
|
+
initX: f.value.at(-1).endX,
|
|
740
|
+
initY: f.value.at(-1).endY,
|
|
741
|
+
offset: l.value.markerOffset
|
|
742
|
+
}).x,
|
|
743
|
+
y: u(M)({
|
|
744
|
+
centerX: l.value.width / 2,
|
|
745
|
+
centerY: v.value.base,
|
|
746
|
+
initX: f.value.at(-1).endX,
|
|
747
|
+
initY: f.value.at(-1).endY,
|
|
748
|
+
offset: l.value.markerOffset
|
|
749
|
+
}).y,
|
|
750
|
+
"text-anchor": "start",
|
|
751
|
+
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
752
|
+
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
753
|
+
fill: e.value.style.chart.layout.markers.color
|
|
754
|
+
}, R(u(oe)(
|
|
755
|
+
e.value.style.chart.layout.markers.formatter,
|
|
756
|
+
E.value,
|
|
757
|
+
u(le)({
|
|
758
|
+
p: e.value.style.chart.layout.markers.prefix,
|
|
759
|
+
v: E.value,
|
|
760
|
+
s: e.value.style.chart.layout.markers.suffix,
|
|
761
|
+
r: e.value.style.chart.layout.markers.roundingValue
|
|
762
|
+
})
|
|
763
|
+
)), 9, da)) : c("", !0),
|
|
764
|
+
e.value.style.chart.layout.pointer.show ? (r(), n(C, { key: 10 }, [
|
|
765
|
+
e.value.style.chart.layout.pointer.type === "rounded" ? (r(), n("g", ha, [
|
|
766
|
+
isNaN(i.value.x2) ? c("", !0) : (r(), n("line", {
|
|
767
|
+
key: 0,
|
|
768
|
+
x1: i.value.x1,
|
|
769
|
+
y1: i.value.y1,
|
|
770
|
+
x2: i.value.x2,
|
|
771
|
+
y2: i.value.y2,
|
|
772
|
+
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
773
|
+
"stroke-width": l.value.pointerStrokeWidth,
|
|
774
|
+
"stroke-linecap": "round"
|
|
775
|
+
}, null, 8, fa)),
|
|
776
|
+
isNaN(i.value.x2) ? c("", !0) : (r(), n("line", {
|
|
777
|
+
key: 1,
|
|
778
|
+
x1: i.value.x1,
|
|
779
|
+
y1: i.value.y1,
|
|
780
|
+
x2: i.value.x2,
|
|
781
|
+
y2: i.value.y2,
|
|
782
|
+
stroke: e.value.style.chart.layout.pointer.useRatingColor ? q.value : e.value.style.chart.layout.pointer.color,
|
|
783
|
+
"stroke-linecap": "round",
|
|
784
|
+
"stroke-width": l.value.pointerStrokeWidth * 0.7
|
|
785
|
+
}, null, 8, ya)),
|
|
786
|
+
!isNaN(i.value.x2) && e.value.style.chart.layout.track.useGradient ? (r(), n("line", {
|
|
787
|
+
key: 2,
|
|
788
|
+
x1: i.value.x1,
|
|
789
|
+
y1: i.value.y1,
|
|
790
|
+
x2: i.value.x2,
|
|
791
|
+
y2: i.value.y2,
|
|
792
|
+
stroke: "white",
|
|
793
|
+
"stroke-linecap": "round",
|
|
794
|
+
"stroke-width": l.value.pointerStrokeWidth * 0.3,
|
|
795
|
+
filter: `url(#blur_${w.value})`
|
|
796
|
+
}, null, 8, ga)) : c("", !0)
|
|
797
|
+
])) : (r(), n("g", ma, [
|
|
798
|
+
be.value ? (r(), n("path", {
|
|
799
|
+
key: 0,
|
|
800
|
+
d: be.value,
|
|
801
|
+
fill: e.value.style.chart.layout.pointer.useRatingColor ? q.value : e.value.style.chart.layout.pointer.color,
|
|
802
|
+
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
803
|
+
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
804
|
+
"stroke-linejoin": "round"
|
|
805
|
+
}, null, 8, pa)) : c("", !0)
|
|
806
|
+
])),
|
|
807
|
+
k("circle", {
|
|
808
|
+
cx: l.value.width / 2,
|
|
809
|
+
cy: v.value.base,
|
|
810
|
+
fill: e.value.style.chart.layout.pointer.circle.color,
|
|
811
|
+
r: l.value.pointerRadius <= 0 ? 1e-4 : l.value.pointerRadius,
|
|
812
|
+
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
813
|
+
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
814
|
+
}, null, 8, ka)
|
|
815
|
+
], 64)) : c("", !0),
|
|
816
|
+
e.value.style.chart.legend.show ? (r(), n("text", {
|
|
817
|
+
key: 11,
|
|
818
|
+
x: l.value.width / 2,
|
|
819
|
+
y: v.value.ratingBase,
|
|
820
|
+
"text-anchor": "middle",
|
|
821
|
+
"font-size": l.value.legendFontSize,
|
|
822
|
+
"font-weight": "bold",
|
|
823
|
+
fill: e.value.style.chart.legend.useRatingColor ? q.value : e.value.style.chart.legend.color
|
|
824
|
+
}, R(u(oe)(
|
|
825
|
+
e.value.style.chart.legend.formatter,
|
|
826
|
+
g.value,
|
|
827
|
+
u(le)({
|
|
828
|
+
p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && g.value > 0 ? "+" : ""),
|
|
829
|
+
v: g.value,
|
|
830
|
+
s: e.value.style.chart.legend.suffix,
|
|
831
|
+
r: e.value.style.chart.legend.roundingValue
|
|
832
|
+
})
|
|
833
|
+
)), 9, ba)) : c("", !0),
|
|
834
|
+
h(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
835
|
+
], 14, Lt)),
|
|
836
|
+
t.$slots.watermark ? (r(), n("div", Ca, [
|
|
837
|
+
h(t.$slots, "watermark", $(F({ isPrinting: u(ge) || u(me) })), void 0, !0)
|
|
838
|
+
])) : c("", !0),
|
|
839
|
+
k("div", {
|
|
840
|
+
ref_key: "chartLegend",
|
|
841
|
+
ref: ie
|
|
842
|
+
}, [
|
|
843
|
+
h(t.$slots, "legend", { legend: P.value }, void 0, !0)
|
|
844
|
+
], 512),
|
|
845
|
+
t.$slots.source ? (r(), n("div", {
|
|
846
|
+
key: 5,
|
|
847
|
+
ref_key: "source",
|
|
848
|
+
ref: ce,
|
|
849
|
+
dir: "auto"
|
|
850
|
+
}, [
|
|
851
|
+
h(t.$slots, "source", {}, void 0, !0)
|
|
852
|
+
], 512)) : c("", !0),
|
|
853
|
+
u(he) ? (r(), W(Ot, { key: 6 })) : c("", !0)
|
|
854
|
+
], 46, Tt));
|
|
855
|
+
}
|
|
856
|
+
}, Sa = /* @__PURE__ */ Dt(_a, [["__scopeId", "data-v-5a38dabe"]]), Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
857
|
+
__proto__: null,
|
|
858
|
+
default: Sa
|
|
859
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
860
|
+
export {
|
|
861
|
+
Ra as a,
|
|
862
|
+
Ba as b,
|
|
863
|
+
Sa as v
|
|
864
|
+
};
|