vue-data-ui 3.2.8 → 3.3.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/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
- package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-C9oklnuy.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
- 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-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-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-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-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-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
- package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
- package/dist/useSvgExport-B7-Vrjtu.js +732 -0
- package/dist/vue-data-ui-DLU1snC3.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-Dch9YrCi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-DwRwhrgB.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-C81k1_f9.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DBIhnEj-.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-CSM-_IWw.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-BFW9nnNh.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
- package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-BdFLsK4u.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-DXum1rs6.js} +2 -2
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-DFIbK50s.js} +406 -384
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-B8UHwj15.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-DFxlqPz7.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-CcAe5dDN.js} +393 -372
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-CgKvd7Jx.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Ct2iyD49.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-ByjcvXBB.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-CGKgOTX2.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-BGDCaOXv.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-CjXSB-2S.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-Bo9gSy-z.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-Qo8FKbL2.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-CKfOnyd_.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-CY7UiJ9C.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-DwNYP97M.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-BkdcYrmg.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-C6Kq_OGV.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-CjB33yXB.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DcH4yIEd.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-MKr2u_pO.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-DKV-exfd.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-BdT3lGuv.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-D929cWB0.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-CkZ_ygR1.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-Bs7eMmiC.js} +5 -5
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KrGLMCqW.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-BQSu6kiR.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-B2fjTYMJ.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-oUXISeU8.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-data-ui-BcRg499t.js +0 -325
- package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
- package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
- package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as J, computed as h, ref as f, toRefs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
|
|
1
|
+
import { defineAsyncComponent as J, computed as h, ref as f, toRefs as at, watch as K, shallowRef as ze, onMounted as lt, onBeforeUnmount as st, createElementBlock as o, openBlock as r, unref as n, normalizeStyle as ee, normalizeClass as Ce, createBlock as U, createCommentVNode as c, createElementVNode as p, withCtx as X, toDisplayString as R, createSlots as rt, renderSlot as x, normalizeProps as j, guardReactiveProps as D, createVNode as ot, Fragment as k, renderList as $, mergeProps as L, nextTick as ut } from "vue";
|
|
2
|
+
import { c as nt, t as it, b as ct, p as Fe, e as vt, o as Ae, h as ht, f as W, g as Oe, n as te, G as F, Q as dt, q as ft, X as yt, s as ae, L as gt, w as mt, a as le, d as se, D as re } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as pt, u as kt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as bt, B as _t } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as St } from "./usePrinter-DYRFiw7X.js";
|
|
6
|
+
import { u as wt, a as Me } from "./useNestedProp-mxyyqd0B.js";
|
|
7
|
+
import { u as xt } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as Ct } from "./useAutoSizeLabelsInsideViewbox-Csv3pVmh.js";
|
|
11
|
+
import Ft from "./img-6wPuVVtk.js";
|
|
12
|
+
import { t as At } from "./themes-Dw-dDudK.js";
|
|
13
|
+
import Ot from "./Title-D17CJXko.js";
|
|
14
|
+
import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "height"], Rt = ["id"], Yt = ["stop-color"], Lt = ["stop-color"], Et = ["stop-color"], Tt = ["id"], Gt = ["stdDeviation"], Bt = { key: 1 }, Ut = ["d", "fill", "stroke"], jt = ["d", "fill", "stroke"], Dt = ["d", "fill"], Wt = ["id", "d"], Vt = ["fill", "font-size", "font-weight"], Ht = ["href", "startOffset"], qt = ["text-anchor", "fill", "font-size", "font-weight", "innerHTML"], Qt = ["d", "filter"], Zt = ["stroke", "stroke-width"], Jt = ["stroke", "stroke-width"], Kt = ["stroke", "stroke-width"], ea = ["stroke", "stroke-width"], ta = { key: 8 }, aa = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], la = ["x", "y", "font-size", "font-weight", "fill"], sa = { key: 0 }, ra = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], oa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ua = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], na = { key: 1 }, ia = ["d", "fill", "stroke", "stroke-width"], ca = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], va = ["x", "y", "font-size", "fill"], ha = {
|
|
15
16
|
key: 4,
|
|
16
17
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
18
|
+
}, da = {
|
|
18
19
|
__name: "vue-ui-gauge",
|
|
19
20
|
props: {
|
|
20
21
|
config: {
|
|
@@ -30,14 +31,14 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
35
|
-
...
|
|
34
|
+
setup(Ne, { expose: Pe }) {
|
|
35
|
+
const Ie = J(() => import("./PenAndPaper-BxbYiPy4.js")), Xe = J(() => import("./UserOptions-B3vCIe-u.js")), Re = J(() => import("./PackageVersion-C9oklnuy.js")), { vue_ui_gauge: Ye } = wt(), m = Ne, Le = h(() => !!m.dataset && Object.keys(m.dataset).length > 0 && m.dataset.series && m.dataset.series.length), S = f(nt()), Ee = f(null), oe = f(0), A = f(null), ue = f(null), ne = f(null), ie = f(null), ce = f(null), ve = f(0), e = f(H()), { loading: he, FINAL_DATASET: w, manualLoading: N } = bt({
|
|
36
|
+
...at(m),
|
|
36
37
|
FINAL_CONFIG: e,
|
|
37
38
|
prepareConfig: H,
|
|
38
39
|
callback: () => {
|
|
39
40
|
Promise.resolve().then(async () => {
|
|
40
|
-
await
|
|
41
|
+
await ut();
|
|
41
42
|
});
|
|
42
43
|
},
|
|
43
44
|
skeletonDataset: {
|
|
@@ -47,7 +48,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
47
48
|
{ from: 0, to: 1, name: "__", color: "#CACACA" }
|
|
48
49
|
]
|
|
49
50
|
},
|
|
50
|
-
skeletonConfig:
|
|
51
|
+
skeletonConfig: it({
|
|
51
52
|
defaultConfig: e.value,
|
|
52
53
|
userConfig: {
|
|
53
54
|
userOptions: { show: !1 },
|
|
@@ -76,31 +77,31 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
})
|
|
79
|
-
}), { userOptionsVisible:
|
|
80
|
+
}), { userOptionsVisible: V, setUserOptionsVisibility: de, keepUserOptionState: fe } = $t({ config: e.value }), { svgRef: E } = zt({ config: e.value.style.chart.title });
|
|
80
81
|
K(() => m.config, (t) => {
|
|
81
|
-
he.value || (e.value = H()),
|
|
82
|
+
he.value || (e.value = H()), V.value = !e.value.userOptions.showOnChartHover, Q(), ve.value += 1;
|
|
82
83
|
}, { deep: !0 }), K(() => m.dataset, (t) => {
|
|
83
84
|
Q(), t && Object.keys(t).length > 0 && (N.value = e.value?.loading ?? !1);
|
|
84
85
|
}, { deep: !0, immediate: !1 });
|
|
85
86
|
function H() {
|
|
86
|
-
const t =
|
|
87
|
+
const t = Me({
|
|
87
88
|
userConfig: m.config,
|
|
88
|
-
defaultConfig:
|
|
89
|
+
defaultConfig: Ye
|
|
89
90
|
});
|
|
90
91
|
return t.theme ? {
|
|
91
|
-
...
|
|
92
|
-
userConfig:
|
|
92
|
+
...Me({
|
|
93
|
+
userConfig: At.vue_ui_gauge[t.theme] || m.config,
|
|
93
94
|
defaultConfig: t
|
|
94
95
|
}),
|
|
95
|
-
customPalette:
|
|
96
|
+
customPalette: ct[t.theme] || Fe
|
|
96
97
|
} : t;
|
|
97
98
|
}
|
|
98
|
-
const { isPrinting: ye, isImaging:
|
|
99
|
-
elementId: `vue-ui-gauge_${
|
|
99
|
+
const { isPrinting: ye, isImaging: ge, generatePdf: me, generateImage: pe } = St({
|
|
100
|
+
elementId: `vue-ui-gauge_${S.value}`,
|
|
100
101
|
fileName: e.value.style.chart.title.text || "vue-ui-gauge",
|
|
101
102
|
options: e.value.userOptions.print
|
|
102
|
-
}),
|
|
103
|
-
if (Ae(
|
|
103
|
+
}), Te = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = h(() => vt(e.value.customPalette)), O = h(() => {
|
|
104
|
+
if (Ae(w.value.series || {}))
|
|
104
105
|
return {
|
|
105
106
|
value: 0,
|
|
106
107
|
series: [
|
|
@@ -111,19 +112,19 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
111
112
|
]
|
|
112
113
|
};
|
|
113
114
|
const t = [];
|
|
114
|
-
(
|
|
115
|
+
(w.value.series || []).forEach((a) => {
|
|
115
116
|
t.push(a.from || 1e-7), t.push(a.to || 1e-7);
|
|
116
117
|
});
|
|
117
118
|
const u = Math.max(...t);
|
|
118
119
|
return {
|
|
119
|
-
...
|
|
120
|
-
series: (
|
|
120
|
+
...w.value,
|
|
121
|
+
series: (w.value.series || []).map((a, l) => ({
|
|
121
122
|
...a,
|
|
122
|
-
color:
|
|
123
|
+
color: ht(a.color) || Ge.value[l] || Fe[l],
|
|
123
124
|
value: ((a.to || 0) - (a.from || 0)) / u * 100
|
|
124
125
|
}))
|
|
125
126
|
};
|
|
126
|
-
}), b = f(512),
|
|
127
|
+
}), b = f(512), s = f({
|
|
127
128
|
height: 358.4,
|
|
128
129
|
width: b.value,
|
|
129
130
|
top: 0,
|
|
@@ -139,97 +140,97 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
139
140
|
markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
|
|
140
141
|
segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
|
|
141
142
|
}), P = f(0), z = f(0), y = f(
|
|
142
|
-
e.value.style.chart.animation.use ? Math.min(...
|
|
143
|
+
e.value.style.chart.animation.use ? Math.min(...w.value.series.map((t) => t.from)) : w.value.value
|
|
143
144
|
);
|
|
144
|
-
K(() =>
|
|
145
|
-
_e(
|
|
145
|
+
K(() => w.value.value, () => {
|
|
146
|
+
_e(w.value.value);
|
|
146
147
|
});
|
|
147
148
|
const i = h(() => {
|
|
148
|
-
const t =
|
|
149
|
+
const t = s.value.width / 2, u = v.value.base, a = Math.PI * ((y.value + 0 - z.value) / (P.value - z.value)) + Math.PI;
|
|
149
150
|
return {
|
|
150
151
|
x1: t,
|
|
151
152
|
y1: u,
|
|
152
|
-
x2: t + v.value.pointerSize *
|
|
153
|
-
y2: u + v.value.pointerSize *
|
|
153
|
+
x2: t + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.cos(a),
|
|
154
|
+
y2: u + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.sin(a)
|
|
154
155
|
};
|
|
155
156
|
}), ke = h(() => {
|
|
156
|
-
const t =
|
|
157
|
-
return isNaN(
|
|
157
|
+
const t = s.value.width / 2, u = v.value.base, a = Math.PI * ((y.value + 0 - z.value) / (P.value - z.value)) + Math.PI, l = t + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.cos(a), g = u + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.sin(a), _ = s.value.pointerRadius, Je = t + _ * Math.cos(a + Math.PI / 2), Ke = u + _ * Math.sin(a + Math.PI / 2), et = t + _ * Math.cos(a - Math.PI / 2), tt = u + _ * Math.sin(a - Math.PI / 2);
|
|
158
|
+
return isNaN(l) ? null : `M ${l},${g} ${Je},${Ke} ${et},${tt} Z`;
|
|
158
159
|
}), q = h(() => {
|
|
159
160
|
for (let t = 0; t < O.value.series.length; t += 1) {
|
|
160
|
-
const { color: u, from: a, to:
|
|
161
|
-
if (y.value >= a && y.value <=
|
|
161
|
+
const { color: u, from: a, to: l } = O.value.series[t];
|
|
162
|
+
if (y.value >= a && y.value <= l)
|
|
162
163
|
return u;
|
|
163
164
|
}
|
|
164
165
|
return "#2D353C";
|
|
165
|
-
}),
|
|
166
|
-
get: () =>
|
|
166
|
+
}), C = ze(null), I = ze(null), T = h({
|
|
167
|
+
get: () => s.value.segmentFontSize,
|
|
167
168
|
set: (t) => t
|
|
168
|
-
}), { autoSizeLabels: be } =
|
|
169
|
-
svgRef:
|
|
170
|
-
fontSize:
|
|
169
|
+
}), { autoSizeLabels: be } = Ct({
|
|
170
|
+
svgRef: E,
|
|
171
|
+
fontSize: s.value.segmentFontSize,
|
|
171
172
|
minFontSize: e.value.style.chart.layout.segmentNames.minFontSize,
|
|
172
|
-
sizeRef:
|
|
173
|
+
sizeRef: T,
|
|
173
174
|
labelClass: ".vue-ui-gauge-label-flat"
|
|
174
|
-
}),
|
|
175
|
+
}), G = h(() => !!e.value.debug);
|
|
175
176
|
function Q() {
|
|
176
177
|
let t = !1;
|
|
177
|
-
if (Ae(m.dataset) ? (
|
|
178
|
+
if (Ae(m.dataset) ? (W({
|
|
178
179
|
componentName: "VueUiGauge",
|
|
179
180
|
type: "dataset",
|
|
180
|
-
debug:
|
|
181
|
-
}), N.value = !0, t = !0) : (
|
|
181
|
+
debug: G.value
|
|
182
|
+
}), N.value = !0, t = !0) : (Oe({
|
|
182
183
|
datasetObject: m.dataset,
|
|
183
184
|
requiredAttributes: ["value", "series"]
|
|
184
185
|
}).forEach((u) => {
|
|
185
|
-
|
|
186
|
+
W({
|
|
186
187
|
componentName: "VueUiGauge",
|
|
187
188
|
type: "datasetAttribute",
|
|
188
189
|
property: u,
|
|
189
|
-
debug:
|
|
190
|
+
debug: G.value
|
|
190
191
|
}), N.value = !0, t = !0;
|
|
191
192
|
}), Object.hasOwn(m.dataset, "series") && (m.dataset.series.length ? m.dataset.series.forEach((u, a) => {
|
|
192
|
-
|
|
193
|
+
Oe({
|
|
193
194
|
datasetObject: u,
|
|
194
195
|
requiredAttributes: ["from", "to"]
|
|
195
|
-
}).forEach((
|
|
196
|
-
|
|
196
|
+
}).forEach((l) => {
|
|
197
|
+
W({
|
|
197
198
|
componentName: "VueUiGauge",
|
|
198
199
|
type: "datasetSerieAttribute",
|
|
199
|
-
property:
|
|
200
|
+
property: l,
|
|
200
201
|
index: a,
|
|
201
|
-
debug:
|
|
202
|
+
debug: G.value
|
|
202
203
|
}), N.value = !0, t = !0;
|
|
203
204
|
});
|
|
204
|
-
}) : (
|
|
205
|
+
}) : (W({
|
|
205
206
|
componentName: "VueUiGauge",
|
|
206
207
|
type: "datasetAttributeEmpty",
|
|
207
208
|
property: "series",
|
|
208
|
-
debug:
|
|
209
|
-
}), N.value = !0, t = !0))), N.value = t, _e(
|
|
210
|
-
const u =
|
|
211
|
-
let { width: a, height:
|
|
212
|
-
chart:
|
|
209
|
+
debug: G.value
|
|
210
|
+
}), N.value = !0, t = !0))), N.value = t, _e(w.value.value || 0), e.value.responsive) {
|
|
211
|
+
const u = pt(() => {
|
|
212
|
+
let { width: a, height: l } = kt({
|
|
213
|
+
chart: A.value,
|
|
213
214
|
title: e.value.style.chart.title.text ? ue.value : null,
|
|
214
215
|
legend: ne.value,
|
|
215
216
|
source: ie.value,
|
|
216
217
|
noTitle: ce.value
|
|
217
218
|
});
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
relator: Math.min(a,
|
|
219
|
+
l -= 12, requestAnimationFrame(() => {
|
|
220
|
+
s.value.width = a, s.value.height = l, s.value.centerX = a / 2, s.value.centerY = b.value / 2 / 358.4 * l, s.value.bottom = l, s.value.labelFontSize = 18 / b.value * Math.min(l, a) < 10 ? 10 : 18 / b.value * Math.min(l, a), s.value.legendFontSize = e.value.style.chart.legend.fontSize / b.value * Math.min(l, a) < 14 ? 14 : e.value.style.chart.legend.fontSize / b.value * Math.min(l, a), s.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / b.value * Math.min(l, a), s.value.trackSize = e.value.style.chart.layout.track.size / b.value * Math.min(l, a), s.value.pointerStrokeWidth = re({
|
|
221
|
+
relator: Math.min(a, l),
|
|
221
222
|
adjuster: b.value,
|
|
222
223
|
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
223
224
|
threshold: 2,
|
|
224
225
|
fallback: 2
|
|
225
|
-
}),
|
|
226
|
-
relator: Math.max(a,
|
|
226
|
+
}), s.value.markerOffset = re({
|
|
227
|
+
relator: Math.max(a, l),
|
|
227
228
|
adjuster: b.value,
|
|
228
229
|
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
229
230
|
threshold: 2,
|
|
230
231
|
fallback: 2
|
|
231
|
-
}),
|
|
232
|
-
relator: Math.min(a,
|
|
232
|
+
}), s.value.segmentFontSize = re({
|
|
233
|
+
relator: Math.min(a, l),
|
|
233
234
|
adjuster: b.value,
|
|
234
235
|
source: e.value.style.chart.layout.segmentNames.fontSize,
|
|
235
236
|
threshold: 8,
|
|
@@ -237,14 +238,14 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
237
238
|
});
|
|
238
239
|
}), be();
|
|
239
240
|
});
|
|
240
|
-
|
|
241
|
+
C.value && (I.value && C.value.unobserve(I.value), C.value.disconnect()), C.value = new ResizeObserver(u), I.value = A.value.parentNode, C.value.observe(I.value);
|
|
241
242
|
}
|
|
242
243
|
be();
|
|
243
244
|
}
|
|
244
|
-
|
|
245
|
+
lt(() => {
|
|
245
246
|
Q();
|
|
246
|
-
}),
|
|
247
|
-
|
|
247
|
+
}), st(() => {
|
|
248
|
+
C.value && (I.value && C.value.unobserve(I.value), C.value.disconnect());
|
|
248
249
|
});
|
|
249
250
|
function _e(t) {
|
|
250
251
|
const u = [];
|
|
@@ -252,24 +253,24 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
252
253
|
u.push(_.from || 0), u.push(_.to || 0);
|
|
253
254
|
}), P.value = Math.max(...u), z.value = Math.min(...u);
|
|
254
255
|
let a = e.value.style.chart.animation.speed;
|
|
255
|
-
const
|
|
256
|
+
const l = Math.abs(t - y.value) / (a * 60);
|
|
256
257
|
function g() {
|
|
257
|
-
y.value < t ? y.value = Math.min(y.value +
|
|
258
|
+
y.value < t ? y.value = Math.min(y.value + l, t) : y.value > t && (y.value = Math.max(y.value - l, t)), y.value !== t && requestAnimationFrame(g);
|
|
258
259
|
}
|
|
259
260
|
g();
|
|
260
261
|
}
|
|
261
262
|
const v = h(() => {
|
|
262
|
-
const t = e.value.responsive ? Math.min(
|
|
263
|
+
const t = e.value.responsive ? Math.min(s.value.width, s.value.height) : s.value.width, u = 2.5 / e.value.style.chart.layout.radiusRatio;
|
|
263
264
|
return {
|
|
264
265
|
arcs: t / u,
|
|
265
266
|
gradients: t / (u * 1.1),
|
|
266
|
-
base: e.value.responsive ?
|
|
267
|
-
ratingBase: e.value.responsive ?
|
|
268
|
-
pointerSize: e.value.responsive ? Math.min(
|
|
267
|
+
base: e.value.responsive ? s.value.height / 1.618 : s.value.height * 0.7,
|
|
268
|
+
ratingBase: e.value.responsive ? s.value.height / 2 + s.value.height / 4 : s.value.height * 0.9,
|
|
269
|
+
pointerSize: e.value.responsive ? Math.min(s.value.width, s.value.height) / 3 : s.value.width / 3.2
|
|
269
270
|
};
|
|
270
271
|
}), d = h(() => te(
|
|
271
272
|
{ series: O.value.series },
|
|
272
|
-
|
|
273
|
+
s.value.width / 2,
|
|
273
274
|
v.value.base,
|
|
274
275
|
v.value.arcs,
|
|
275
276
|
v.value.arcs,
|
|
@@ -278,10 +279,10 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
278
279
|
1,
|
|
279
280
|
180,
|
|
280
281
|
109.9495,
|
|
281
|
-
40 *
|
|
282
|
-
)),
|
|
282
|
+
40 * s.value.trackSize
|
|
283
|
+
)), Be = h(() => te(
|
|
283
284
|
{ series: O.value.series },
|
|
284
|
-
|
|
285
|
+
s.value.width / 2,
|
|
285
286
|
v.value.base,
|
|
286
287
|
v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
287
288
|
v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
@@ -290,48 +291,48 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
290
291
|
1,
|
|
291
292
|
180,
|
|
292
293
|
109.9495,
|
|
293
|
-
40 *
|
|
294
|
-
)), M = h(() => d.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))),
|
|
295
|
-
const { x: t, y: u } =
|
|
294
|
+
40 * s.value.trackSize
|
|
295
|
+
)), M = h(() => d.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), Se = h(() => {
|
|
296
|
+
const { x: t, y: u } = F({
|
|
296
297
|
initX: d.value[0].firstSeparator.x,
|
|
297
298
|
initY: d.value[0].firstSeparator.y,
|
|
298
299
|
centerX: i.value.x1,
|
|
299
300
|
centerY: i.value.y1,
|
|
300
301
|
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
301
|
-
}), { x: a, y:
|
|
302
|
+
}), { x: a, y: l } = F({
|
|
302
303
|
initX: d.value[0].startX,
|
|
303
304
|
initY: d.value[0].startY,
|
|
304
305
|
centerX: i.value.x1,
|
|
305
306
|
centerY: i.value.y1,
|
|
306
307
|
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
307
308
|
});
|
|
308
|
-
return { x1: t, y1: u, x2: a, y2:
|
|
309
|
-
}),
|
|
310
|
-
const { x: u, y: a } =
|
|
309
|
+
return { x1: t, y1: u, x2: a, y2: l };
|
|
310
|
+
}), we = h(() => d.value.map((t) => {
|
|
311
|
+
const { x: u, y: a } = F({
|
|
311
312
|
initX: t.separator.x,
|
|
312
313
|
initY: t.separator.y,
|
|
313
314
|
centerX: i.value.x1,
|
|
314
315
|
centerY: i.value.y1,
|
|
315
316
|
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
316
|
-
}), { x:
|
|
317
|
+
}), { x: l, y: g } = F({
|
|
317
318
|
initX: t.endX,
|
|
318
319
|
initY: t.endY,
|
|
319
320
|
centerX: i.value.x1,
|
|
320
321
|
centerY: i.value.y1,
|
|
321
322
|
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
322
323
|
});
|
|
323
|
-
return { x1: u, y1: a, x2:
|
|
324
|
+
return { x1: u, y1: a, x2: l, y2: g };
|
|
324
325
|
}));
|
|
325
|
-
function
|
|
326
|
+
function Ue(t) {
|
|
326
327
|
if (t.reduce((g, _) => g + _, 0) > 100)
|
|
327
328
|
throw new Error("Total % must not exceed 100");
|
|
328
329
|
const a = 50;
|
|
329
|
-
let
|
|
330
|
-
return t.map((g) => (
|
|
330
|
+
let l = 0;
|
|
331
|
+
return t.map((g) => (l += g, `${l / 100 * a - g / 4}%`));
|
|
331
332
|
}
|
|
332
|
-
const
|
|
333
|
+
const je = h(() => Ue(d.value.map((t) => t.proportion * 100))), De = h(() => te(
|
|
333
334
|
{ series: O.value.series },
|
|
334
|
-
|
|
335
|
+
s.value.width / 2,
|
|
335
336
|
v.value.base,
|
|
336
337
|
v.value.gradients,
|
|
337
338
|
v.value.gradients,
|
|
@@ -340,59 +341,72 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
340
341
|
1,
|
|
341
342
|
180,
|
|
342
343
|
110.02,
|
|
343
|
-
2 *
|
|
344
|
-
)),
|
|
344
|
+
2 * s.value.trackSize
|
|
345
|
+
)), We = h(() => {
|
|
345
346
|
const t = z.value >= 0 ? -z.value : Math.abs(z.value);
|
|
346
|
-
return
|
|
347
|
-
radius: e.value.style.chart.layout.indicatorArc.radius *
|
|
348
|
-
centerX:
|
|
347
|
+
return dt({
|
|
348
|
+
radius: e.value.style.chart.layout.indicatorArc.radius * s.value.trackSize,
|
|
349
|
+
centerX: s.value.width / 2,
|
|
349
350
|
centerY: v.value.base,
|
|
350
|
-
percentage:
|
|
351
|
+
percentage: ft((y.value + t) / (P.value + t))
|
|
351
352
|
});
|
|
352
353
|
}), Y = f(!1);
|
|
353
354
|
function xe(t) {
|
|
354
355
|
Y.value = t, oe.value += 1;
|
|
355
356
|
}
|
|
356
|
-
const
|
|
357
|
+
const B = f(!1);
|
|
357
358
|
function Z() {
|
|
358
|
-
|
|
359
|
+
B.value = !B.value;
|
|
359
360
|
}
|
|
360
|
-
async function
|
|
361
|
-
if (!
|
|
362
|
-
const { width: u, height: a } =
|
|
361
|
+
async function Ve({ scale: t = 2 } = {}) {
|
|
362
|
+
if (!A.value) return;
|
|
363
|
+
const { width: u, height: a } = A.value.getBoundingClientRect(), l = u / a, { imageUri: g, base64: _ } = await Ft({ domElement: A.value, base64: !0, img: !0, scale: t });
|
|
363
364
|
return {
|
|
364
365
|
imageUri: g,
|
|
365
366
|
base64: _,
|
|
366
367
|
title: e.value.style.chart.title.text,
|
|
367
368
|
width: u,
|
|
368
369
|
height: a,
|
|
369
|
-
aspectRatio:
|
|
370
|
+
aspectRatio: l
|
|
370
371
|
};
|
|
371
372
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
373
|
+
const He = h(() => e.value.style.chart.backgroundColor), qe = h(() => e.value.style.chart.title), { exportSvg: Qe, getSvg: Ze } = xt({
|
|
374
|
+
svg: E,
|
|
375
|
+
title: qe,
|
|
376
|
+
backgroundColor: He
|
|
377
|
+
});
|
|
378
|
+
async function $e({ isCb: t }) {
|
|
379
|
+
if (t) {
|
|
380
|
+
const { blob: u, url: a, text: l, dataUrl: g } = await Ze();
|
|
381
|
+
e.value.userOptions.callbacks.svg({ blob: u, url: a, text: l, dataUrl: g });
|
|
382
|
+
} else
|
|
383
|
+
Qe();
|
|
384
|
+
}
|
|
385
|
+
return Pe({
|
|
386
|
+
getImage: Ve,
|
|
387
|
+
generatePdf: me,
|
|
375
388
|
generateImage: pe,
|
|
389
|
+
generateSvg: $e,
|
|
376
390
|
toggleAnnotator: Z,
|
|
377
391
|
toggleFullscreen: xe
|
|
378
392
|
}), (t, u) => (r(), o("div", {
|
|
379
|
-
class:
|
|
393
|
+
class: Ce(`vue-data-ui-component vue-ui-gauge ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
380
394
|
ref_key: "gaugeChart",
|
|
381
|
-
ref:
|
|
382
|
-
id: `vue-ui-gauge_${
|
|
395
|
+
ref: A,
|
|
396
|
+
id: `vue-ui-gauge_${S.value}`,
|
|
383
397
|
style: ee(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
384
398
|
onMouseenter: u[0] || (u[0] = () => n(de)(!0)),
|
|
385
399
|
onMouseleave: u[1] || (u[1] = () => n(de)(!1))
|
|
386
400
|
}, [
|
|
387
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
401
|
+
e.value.userOptions.buttons.annotator ? (r(), U(n(Ie), {
|
|
388
402
|
key: 0,
|
|
389
|
-
svgRef: n(
|
|
403
|
+
svgRef: n(E),
|
|
390
404
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
391
405
|
color: e.value.style.chart.color,
|
|
392
|
-
active:
|
|
406
|
+
active: B.value,
|
|
393
407
|
onClose: Z
|
|
394
408
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
395
|
-
|
|
409
|
+
Te.value ? (r(), o("div", {
|
|
396
410
|
key: 1,
|
|
397
411
|
ref_key: "noTitle",
|
|
398
412
|
ref: ce,
|
|
@@ -405,7 +419,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
405
419
|
ref: ue,
|
|
406
420
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
407
421
|
}, [
|
|
408
|
-
(r(),
|
|
422
|
+
(r(), U(Ot, {
|
|
409
423
|
key: `title_${ve.value}`,
|
|
410
424
|
config: {
|
|
411
425
|
title: {
|
|
@@ -419,44 +433,46 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
419
433
|
}
|
|
420
434
|
}, {
|
|
421
435
|
default: X(() => [
|
|
422
|
-
e.value.translations.base && n(
|
|
436
|
+
e.value.translations.base && n(w).base ? (r(), o("span", Pt, R(e.value.translations.base) + ": " + R(n(w).base), 1)) : c("", !0)
|
|
423
437
|
]),
|
|
424
438
|
_: 1
|
|
425
439
|
}, 8, ["config"]))
|
|
426
440
|
], 512)) : c("", !0),
|
|
427
|
-
e.value.userOptions.show &&
|
|
441
|
+
e.value.userOptions.show && Le.value && (n(fe) || n(V)) ? (r(), U(n(Xe), {
|
|
428
442
|
ref_key: "details",
|
|
429
|
-
ref:
|
|
443
|
+
ref: Ee,
|
|
430
444
|
key: `user_options_${oe.value}`,
|
|
431
445
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
432
446
|
color: e.value.style.chart.color,
|
|
433
|
-
isImaging: n(
|
|
447
|
+
isImaging: n(ge),
|
|
434
448
|
isPrinting: n(ye),
|
|
435
|
-
uid:
|
|
449
|
+
uid: S.value,
|
|
436
450
|
hasXls: !1,
|
|
437
451
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
438
452
|
hasImg: e.value.userOptions.buttons.img,
|
|
453
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
439
454
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
440
455
|
isFullscreen: Y.value,
|
|
441
456
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
442
|
-
chartElement:
|
|
457
|
+
chartElement: A.value,
|
|
443
458
|
callbacks: e.value.userOptions.callbacks,
|
|
444
459
|
printScale: e.value.userOptions.print.scale,
|
|
445
460
|
position: e.value.userOptions.position,
|
|
446
461
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
447
|
-
isAnnotation:
|
|
462
|
+
isAnnotation: B.value,
|
|
448
463
|
onToggleFullscreen: xe,
|
|
449
|
-
onGeneratePdf: n(
|
|
464
|
+
onGeneratePdf: n(me),
|
|
450
465
|
onGenerateImage: n(pe),
|
|
466
|
+
onGenerateSvg: $e,
|
|
451
467
|
onToggleAnnotator: Z,
|
|
452
468
|
style: ee({
|
|
453
|
-
visibility: n(fe) ? n(
|
|
469
|
+
visibility: n(fe) ? n(V) ? "visible" : "hidden" : "visible"
|
|
454
470
|
})
|
|
455
|
-
},
|
|
471
|
+
}, rt({ _: 2 }, [
|
|
456
472
|
t.$slots.menuIcon ? {
|
|
457
473
|
name: "menuIcon",
|
|
458
|
-
fn: X(({ isOpen: a, color:
|
|
459
|
-
x(t.$slots, "menuIcon",
|
|
474
|
+
fn: X(({ isOpen: a, color: l }) => [
|
|
475
|
+
x(t.$slots, "menuIcon", j(D({ isOpen: a, color: l })), void 0, !0)
|
|
460
476
|
]),
|
|
461
477
|
key: "0"
|
|
462
478
|
} : void 0,
|
|
@@ -476,43 +492,43 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
476
492
|
} : void 0,
|
|
477
493
|
t.$slots.optionFullscreen ? {
|
|
478
494
|
name: "optionFullscreen",
|
|
479
|
-
fn: X(({ toggleFullscreen: a, isFullscreen:
|
|
480
|
-
x(t.$slots, "optionFullscreen",
|
|
495
|
+
fn: X(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
496
|
+
x(t.$slots, "optionFullscreen", j(D({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
481
497
|
]),
|
|
482
498
|
key: "3"
|
|
483
499
|
} : void 0,
|
|
484
500
|
t.$slots.optionAnnotator ? {
|
|
485
501
|
name: "optionAnnotator",
|
|
486
|
-
fn: X(({ toggleAnnotator: a, isAnnotator:
|
|
487
|
-
x(t.$slots, "optionAnnotator",
|
|
502
|
+
fn: X(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
503
|
+
x(t.$slots, "optionAnnotator", j(D({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
488
504
|
]),
|
|
489
505
|
key: "4"
|
|
490
506
|
} : void 0
|
|
491
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "callbacks", "printScale", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
507
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "callbacks", "printScale", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
492
508
|
(r(), o("svg", {
|
|
493
509
|
ref_key: "svgRef",
|
|
494
|
-
ref:
|
|
495
|
-
xmlns: n(
|
|
496
|
-
class:
|
|
497
|
-
viewBox: `0 0 ${
|
|
510
|
+
ref: E,
|
|
511
|
+
xmlns: n(yt),
|
|
512
|
+
class: Ce({ "vue-data-ui-fullscreen--on": Y.value, "vue-data-ui-fulscreen--off": !Y.value }),
|
|
513
|
+
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
498
514
|
style: ee(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
499
515
|
}, [
|
|
500
|
-
|
|
516
|
+
ot(n(Re)),
|
|
501
517
|
t.$slots["chart-background"] ? (r(), o("foreignObject", {
|
|
502
518
|
key: 0,
|
|
503
519
|
x: 0,
|
|
504
520
|
y: 0,
|
|
505
|
-
width:
|
|
506
|
-
height:
|
|
521
|
+
width: s.value.width <= 0 ? 10 : s.value.width,
|
|
522
|
+
height: s.value.height <= 0 ? 10 : s.value.height,
|
|
507
523
|
style: {
|
|
508
524
|
pointerEvents: "none"
|
|
509
525
|
}
|
|
510
526
|
}, [
|
|
511
527
|
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
512
|
-
], 8,
|
|
528
|
+
], 8, Xt)) : c("", !0),
|
|
513
529
|
p("defs", null, [
|
|
514
530
|
p("radialGradient", {
|
|
515
|
-
id: `gradient_${
|
|
531
|
+
id: `gradient_${S.value}`,
|
|
516
532
|
cx: "50%",
|
|
517
533
|
cy: "50%",
|
|
518
534
|
r: "50%",
|
|
@@ -522,20 +538,20 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
522
538
|
p("stop", {
|
|
523
539
|
offset: "0%",
|
|
524
540
|
"stop-color": n(ae)("#FFFFFF", 1)
|
|
525
|
-
}, null, 8,
|
|
541
|
+
}, null, 8, Yt),
|
|
526
542
|
p("stop", {
|
|
527
543
|
offset: "80%",
|
|
528
544
|
"stop-color": n(ae)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
529
|
-
}, null, 8,
|
|
545
|
+
}, null, 8, Lt),
|
|
530
546
|
p("stop", {
|
|
531
547
|
offset: "100%",
|
|
532
548
|
"stop-color": n(ae)("#FFFFFF", 1)
|
|
533
|
-
}, null, 8,
|
|
534
|
-
], 8,
|
|
549
|
+
}, null, 8, Et)
|
|
550
|
+
], 8, Rt)
|
|
535
551
|
]),
|
|
536
552
|
p("defs", null, [
|
|
537
553
|
p("filter", {
|
|
538
|
-
id: `blur_${
|
|
554
|
+
id: `blur_${S.value}`,
|
|
539
555
|
x: "-50%",
|
|
540
556
|
y: "-50%",
|
|
541
557
|
width: "200%",
|
|
@@ -544,113 +560,113 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
544
560
|
p("feGaussianBlur", {
|
|
545
561
|
in: "SourceGraphic",
|
|
546
562
|
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
547
|
-
}, null, 8,
|
|
548
|
-
], 8,
|
|
563
|
+
}, null, 8, Gt)
|
|
564
|
+
], 8, Tt)
|
|
549
565
|
]),
|
|
550
|
-
t.$slots.pattern ? (r(), o("g",
|
|
551
|
-
(r(!0), o(k, null, $(d.value, (a,
|
|
552
|
-
x(t.$slots, "pattern", L({ ref_for: !0 }, { seriesIndex:
|
|
566
|
+
t.$slots.pattern ? (r(), o("g", Bt, [
|
|
567
|
+
(r(!0), o(k, null, $(d.value, (a, l) => (r(), o("defs", null, [
|
|
568
|
+
x(t.$slots, "pattern", L({ ref_for: !0 }, { seriesIndex: l, patternId: `pattern_${S.value}_${l}` }), void 0, !0)
|
|
553
569
|
]))), 256))
|
|
554
570
|
])) : c("", !0),
|
|
555
|
-
(r(!0), o(k, null, $(d.value, (a,
|
|
556
|
-
key: `arc_${
|
|
571
|
+
(r(!0), o(k, null, $(d.value, (a, l) => (r(), o("path", {
|
|
572
|
+
key: `arc_${l}`,
|
|
557
573
|
d: a.arcSlice,
|
|
558
574
|
fill: a.color,
|
|
559
575
|
stroke: e.value.style.chart.backgroundColor,
|
|
560
576
|
"stroke-linecap": "round"
|
|
561
|
-
}, null, 8,
|
|
562
|
-
t.$slots.pattern ? (r(!0), o(k, { key: 2 }, $(d.value, (a,
|
|
563
|
-
key: `arc_${
|
|
577
|
+
}, null, 8, Ut))), 128)),
|
|
578
|
+
t.$slots.pattern ? (r(!0), o(k, { key: 2 }, $(d.value, (a, l) => (r(), o("path", {
|
|
579
|
+
key: `arc_${l}`,
|
|
564
580
|
d: a.arcSlice,
|
|
565
|
-
fill: `url(#pattern_${
|
|
581
|
+
fill: `url(#pattern_${S.value}_${l})`,
|
|
566
582
|
stroke: e.value.style.chart.backgroundColor,
|
|
567
583
|
"stroke-linecap": "round"
|
|
568
|
-
}, null, 8,
|
|
584
|
+
}, null, 8, jt))), 128)) : c("", !0),
|
|
569
585
|
e.value.style.chart.layout.indicatorArc.show ? (r(), o("path", {
|
|
570
586
|
key: 3,
|
|
571
|
-
d:
|
|
587
|
+
d: We.value,
|
|
572
588
|
fill: e.value.style.chart.layout.indicatorArc.fill
|
|
573
|
-
}, null, 8,
|
|
589
|
+
}, null, 8, Dt)) : c("", !0),
|
|
574
590
|
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (r(), o(k, { key: 4 }, [
|
|
575
|
-
(r(!0), o(k, null, $(d.value, (a,
|
|
576
|
-
id: `curve_${
|
|
577
|
-
d: `M ${i.value.x1},${i.value.y1} m -${M.value[
|
|
591
|
+
(r(!0), o(k, null, $(d.value, (a, l) => (r(), o("path", {
|
|
592
|
+
id: `curve_${S.value}_${l}`,
|
|
593
|
+
d: `M ${i.value.x1},${i.value.y1} m -${M.value[l]},0 a ${M.value[l]},${M.value[l]} 0 1,1 ${2 * M.value[l]},0 a ${M.value[l]},${M.value[l]} 0 1,1 -${2 * M.value[l]},0`,
|
|
578
594
|
fill: "transparent"
|
|
579
|
-
}, null, 8,
|
|
580
|
-
(r(!0), o(k, null, $(d.value, (a,
|
|
595
|
+
}, null, 8, Wt))), 256)),
|
|
596
|
+
(r(!0), o(k, null, $(d.value, (a, l) => (r(), o("text", {
|
|
581
597
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
582
|
-
"font-size":
|
|
598
|
+
"font-size": T.value,
|
|
583
599
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
584
600
|
"text-anchor": "middle"
|
|
585
601
|
}, [
|
|
586
602
|
p("textPath", {
|
|
587
|
-
href: `#curve_${
|
|
588
|
-
startOffset:
|
|
589
|
-
}, R(a.name || ""), 9,
|
|
590
|
-
], 8,
|
|
603
|
+
href: `#curve_${S.value}_${l}`,
|
|
604
|
+
startOffset: je.value[l]
|
|
605
|
+
}, R(a.name || ""), 9, Ht)
|
|
606
|
+
], 8, Vt))), 256))
|
|
591
607
|
], 64)) : c("", !0),
|
|
592
|
-
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (r(!0), o(k, { key: 5 }, $(
|
|
608
|
+
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (r(!0), o(k, { key: 5 }, $(Be.value, (a, l) => (r(), o("text", {
|
|
593
609
|
class: "vue-ui-gauge-label-flat",
|
|
594
|
-
"text-anchor": n(
|
|
610
|
+
"text-anchor": n(mt)(a, !1, 12).anchor,
|
|
595
611
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
596
|
-
"font-size":
|
|
612
|
+
"font-size": T.value,
|
|
597
613
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
598
|
-
innerHTML: n(
|
|
614
|
+
innerHTML: n(gt)({
|
|
599
615
|
content: String(a.name ?? ""),
|
|
600
|
-
fontSize:
|
|
616
|
+
fontSize: T.value,
|
|
601
617
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
602
618
|
x: a.center.endX,
|
|
603
619
|
y: a.center.endY
|
|
604
620
|
})
|
|
605
|
-
}, null, 8,
|
|
606
|
-
e.value.style.chart.layout.track.useGradient ? (r(!0), o(k, { key: 6 }, $(De.value, (a,
|
|
607
|
-
key: `arc_${
|
|
621
|
+
}, null, 8, qt))), 256)) : c("", !0),
|
|
622
|
+
e.value.style.chart.layout.track.useGradient ? (r(!0), o(k, { key: 6 }, $(De.value, (a, l) => (r(), o("path", {
|
|
623
|
+
key: `arc_${l}`,
|
|
608
624
|
d: a.arcSlice,
|
|
609
625
|
fill: "#FFFFFF",
|
|
610
626
|
stroke: "none",
|
|
611
627
|
"stroke-linecap": "round",
|
|
612
|
-
filter: `url(#blur_${
|
|
613
|
-
}, null, 8,
|
|
628
|
+
filter: `url(#blur_${S.value})`
|
|
629
|
+
}, null, 8, Qt))), 128)) : c("", !0),
|
|
614
630
|
e.value.style.chart.layout.segmentSeparators.show ? (r(), o(k, { key: 7 }, [
|
|
615
|
-
p("line", L(
|
|
631
|
+
p("line", L(Se.value, {
|
|
616
632
|
stroke: e.value.style.chart.backgroundColor,
|
|
617
633
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
618
634
|
"stroke-linecap": "round"
|
|
619
|
-
}), null, 16,
|
|
620
|
-
p("line", L(
|
|
635
|
+
}), null, 16, Zt),
|
|
636
|
+
p("line", L(Se.value, {
|
|
621
637
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
622
638
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
623
639
|
"stroke-linecap": "round"
|
|
624
|
-
}), null, 16,
|
|
625
|
-
(r(!0), o(k, null, $(
|
|
640
|
+
}), null, 16, Jt),
|
|
641
|
+
(r(!0), o(k, null, $(we.value, (a) => (r(), o("line", L({ ref_for: !0 }, a, {
|
|
626
642
|
stroke: e.value.style.chart.backgroundColor,
|
|
627
643
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
628
644
|
"stroke-linecap": "round"
|
|
629
|
-
}), null, 16,
|
|
630
|
-
(r(!0), o(k, null, $(
|
|
645
|
+
}), null, 16, Kt))), 256)),
|
|
646
|
+
(r(!0), o(k, null, $(we.value, (a) => (r(), o("line", L({ ref_for: !0 }, a, {
|
|
631
647
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
632
648
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
633
649
|
"stroke-linecap": "round"
|
|
634
|
-
}), null, 16,
|
|
650
|
+
}), null, 16, ea))), 256))
|
|
635
651
|
], 64)) : c("", !0),
|
|
636
|
-
e.value.style.chart.layout.markers.show ? (r(), o("g",
|
|
637
|
-
(r(!0), o(k, null, $(d.value, (a,
|
|
638
|
-
x: n(
|
|
652
|
+
e.value.style.chart.layout.markers.show ? (r(), o("g", ta, [
|
|
653
|
+
(r(!0), o(k, null, $(d.value, (a, l) => (r(), o("text", {
|
|
654
|
+
x: n(F)({
|
|
639
655
|
centerX: i.value.x1,
|
|
640
656
|
centerY: v.value.base,
|
|
641
657
|
initX: a.center.startX,
|
|
642
658
|
initY: a.center.startY,
|
|
643
|
-
offset:
|
|
659
|
+
offset: s.value.markerOffset
|
|
644
660
|
}).x,
|
|
645
|
-
y: n(
|
|
661
|
+
y: n(F)({
|
|
646
662
|
centerX: i.value.x1,
|
|
647
663
|
centerY: v.value.base,
|
|
648
664
|
initX: a.center.startX,
|
|
649
665
|
initY: a.center.startY,
|
|
650
|
-
offset:
|
|
666
|
+
offset: s.value.markerOffset
|
|
651
667
|
}).y,
|
|
652
668
|
"text-anchor": a.center.startX < i.value.x1 - 5 ? "end" : a.center.startX > i.value.x1 + 5 ? "start" : "middle",
|
|
653
|
-
"font-size":
|
|
669
|
+
"font-size": s.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
654
670
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
655
671
|
fill: e.value.style.chart.layout.markers.color
|
|
656
672
|
}, R(n(le)(
|
|
@@ -662,26 +678,26 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
662
678
|
s: e.value.style.chart.layout.markers.suffix,
|
|
663
679
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
664
680
|
})
|
|
665
|
-
)), 9,
|
|
681
|
+
)), 9, aa))), 256))
|
|
666
682
|
])) : c("", !0),
|
|
667
683
|
e.value.style.chart.layout.markers.show ? (r(), o("text", {
|
|
668
684
|
key: 9,
|
|
669
|
-
x: n(
|
|
670
|
-
centerX:
|
|
685
|
+
x: n(F)({
|
|
686
|
+
centerX: s.value.width / 2,
|
|
671
687
|
centerY: v.value.base,
|
|
672
688
|
initX: d.value.at(-1).endX,
|
|
673
689
|
initY: d.value.at(-1).endY,
|
|
674
|
-
offset:
|
|
690
|
+
offset: s.value.markerOffset
|
|
675
691
|
}).x,
|
|
676
|
-
y: n(
|
|
677
|
-
centerX:
|
|
692
|
+
y: n(F)({
|
|
693
|
+
centerX: s.value.width / 2,
|
|
678
694
|
centerY: v.value.base,
|
|
679
695
|
initX: d.value.at(-1).endX,
|
|
680
696
|
initY: d.value.at(-1).endY,
|
|
681
|
-
offset:
|
|
697
|
+
offset: s.value.markerOffset
|
|
682
698
|
}).y,
|
|
683
699
|
"text-anchor": "start",
|
|
684
|
-
"font-size":
|
|
700
|
+
"font-size": s.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
685
701
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
686
702
|
fill: e.value.style.chart.layout.markers.color
|
|
687
703
|
}, R(n(le)(
|
|
@@ -693,9 +709,9 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
693
709
|
s: e.value.style.chart.layout.markers.suffix,
|
|
694
710
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
695
711
|
})
|
|
696
|
-
)), 9,
|
|
712
|
+
)), 9, la)) : c("", !0),
|
|
697
713
|
e.value.style.chart.layout.pointer.show ? (r(), o(k, { key: 10 }, [
|
|
698
|
-
e.value.style.chart.layout.pointer.type === "rounded" ? (r(), o("g",
|
|
714
|
+
e.value.style.chart.layout.pointer.type === "rounded" ? (r(), o("g", sa, [
|
|
699
715
|
isNaN(i.value.x2) ? c("", !0) : (r(), o("line", {
|
|
700
716
|
key: 0,
|
|
701
717
|
x1: i.value.x1,
|
|
@@ -703,9 +719,9 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
703
719
|
x2: i.value.x2,
|
|
704
720
|
y2: i.value.y2,
|
|
705
721
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
706
|
-
"stroke-width":
|
|
722
|
+
"stroke-width": s.value.pointerStrokeWidth,
|
|
707
723
|
"stroke-linecap": "round"
|
|
708
|
-
}, null, 8,
|
|
724
|
+
}, null, 8, ra)),
|
|
709
725
|
isNaN(i.value.x2) ? c("", !0) : (r(), o("line", {
|
|
710
726
|
key: 1,
|
|
711
727
|
x1: i.value.x1,
|
|
@@ -714,8 +730,8 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
714
730
|
y2: i.value.y2,
|
|
715
731
|
stroke: e.value.style.chart.layout.pointer.useRatingColor ? q.value : e.value.style.chart.layout.pointer.color,
|
|
716
732
|
"stroke-linecap": "round",
|
|
717
|
-
"stroke-width":
|
|
718
|
-
}, null, 8,
|
|
733
|
+
"stroke-width": s.value.pointerStrokeWidth * 0.7
|
|
734
|
+
}, null, 8, oa)),
|
|
719
735
|
!isNaN(i.value.x2) && e.value.style.chart.layout.track.useGradient ? (r(), o("line", {
|
|
720
736
|
key: 2,
|
|
721
737
|
x1: i.value.x1,
|
|
@@ -724,10 +740,10 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
724
740
|
y2: i.value.y2,
|
|
725
741
|
stroke: "white",
|
|
726
742
|
"stroke-linecap": "round",
|
|
727
|
-
"stroke-width":
|
|
728
|
-
filter: `url(#blur_${
|
|
729
|
-
}, null, 8,
|
|
730
|
-
])) : (r(), o("g",
|
|
743
|
+
"stroke-width": s.value.pointerStrokeWidth * 0.3,
|
|
744
|
+
filter: `url(#blur_${S.value})`
|
|
745
|
+
}, null, 8, ua)) : c("", !0)
|
|
746
|
+
])) : (r(), o("g", na, [
|
|
731
747
|
ke.value ? (r(), o("path", {
|
|
732
748
|
key: 0,
|
|
733
749
|
d: ke.value,
|
|
@@ -735,23 +751,23 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
735
751
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
736
752
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
737
753
|
"stroke-linejoin": "round"
|
|
738
|
-
}, null, 8,
|
|
754
|
+
}, null, 8, ia)) : c("", !0)
|
|
739
755
|
])),
|
|
740
756
|
p("circle", {
|
|
741
|
-
cx:
|
|
757
|
+
cx: s.value.width / 2,
|
|
742
758
|
cy: v.value.base,
|
|
743
759
|
fill: e.value.style.chart.layout.pointer.circle.color,
|
|
744
|
-
r:
|
|
760
|
+
r: s.value.pointerRadius <= 0 ? 1e-4 : s.value.pointerRadius,
|
|
745
761
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
746
762
|
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
747
|
-
}, null, 8,
|
|
763
|
+
}, null, 8, ca)
|
|
748
764
|
], 64)) : c("", !0),
|
|
749
765
|
e.value.style.chart.legend.show ? (r(), o("text", {
|
|
750
766
|
key: 11,
|
|
751
|
-
x:
|
|
767
|
+
x: s.value.width / 2,
|
|
752
768
|
y: v.value.ratingBase,
|
|
753
769
|
"text-anchor": "middle",
|
|
754
|
-
"font-size":
|
|
770
|
+
"font-size": s.value.legendFontSize,
|
|
755
771
|
"font-weight": "bold",
|
|
756
772
|
fill: e.value.style.chart.legend.useRatingColor ? q.value : e.value.style.chart.legend.color
|
|
757
773
|
}, R(n(le)(
|
|
@@ -763,11 +779,11 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
763
779
|
s: e.value.style.chart.legend.suffix,
|
|
764
780
|
r: e.value.style.chart.legend.roundingValue
|
|
765
781
|
})
|
|
766
|
-
)), 9,
|
|
767
|
-
x(t.$slots, "svg", { svg:
|
|
768
|
-
], 14,
|
|
769
|
-
t.$slots.watermark ? (r(), o("div",
|
|
770
|
-
x(t.$slots, "watermark",
|
|
782
|
+
)), 9, va)) : c("", !0),
|
|
783
|
+
x(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
784
|
+
], 14, It)),
|
|
785
|
+
t.$slots.watermark ? (r(), o("div", ha, [
|
|
786
|
+
x(t.$slots, "watermark", j(D({ isPrinting: n(ye) || n(ge) })), void 0, !0)
|
|
771
787
|
])) : c("", !0),
|
|
772
788
|
p("div", {
|
|
773
789
|
ref_key: "chartLegend",
|
|
@@ -783,10 +799,10 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
783
799
|
}, [
|
|
784
800
|
x(t.$slots, "source", {}, void 0, !0)
|
|
785
801
|
], 512)) : c("", !0),
|
|
786
|
-
n(he) ? (r(),
|
|
787
|
-
], 46,
|
|
802
|
+
n(he) ? (r(), U(_t, { key: 6 })) : c("", !0)
|
|
803
|
+
], 46, Nt));
|
|
788
804
|
}
|
|
789
|
-
},
|
|
805
|
+
}, Fa = /* @__PURE__ */ Mt(da, [["__scopeId", "data-v-b8ee7d2b"]]);
|
|
790
806
|
export {
|
|
791
|
-
|
|
807
|
+
Fa as default
|
|
792
808
|
};
|