vue-data-ui 3.23.10 → 3.23.12
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 +40 -40
- package/dist/{Arrow-bwmME0jw.js → Arrow-DrF4NNJO.js} +1 -1
- package/dist/{BaseDraggableDialog-DBVHlhQZ.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
- package/dist/{BaseIcon-B4n7br_R.js → BaseIcon-BbElSC8_.js} +1 -1
- package/dist/{BaseLegendToggle-wRhcG_-q.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
- package/dist/{BaseZoomControls-BZjzzyQo.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
- package/dist/{ColorPicker-B9kUMLSz.js → ColorPicker-ChOgAmCi.js} +2 -2
- package/dist/{DataTable-DMsScfkx.js → DataTable-CmyEubtT.js} +2 -2
- package/dist/{HillActions-IWPfuceW.js → HillActions-3HneGJhS.js} +1 -1
- package/dist/{Legend-DWEFXq9E.js → Legend-BJtY2RA9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Crs4-xWz.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
- package/dist/{PackageVersion-DNTJUKh1.js → PackageVersion-CT8FfP7h.js} +1 -1
- package/dist/{PenAndPaper-DJ607Hx6.js → PenAndPaper-CIa1F5Jq.js} +3 -3
- package/dist/{Shape-BAhF1ToV.js → Shape-BAL5bQmA.js} +1 -1
- package/dist/{SlicerPreview-sXtk2ZZ2.js → SlicerPreview-BRRyc1p7.js} +426 -426
- package/dist/{SparkTooltip-BE50SZQH.js → SparkTooltip-Bou05CV_.js} +1 -1
- package/dist/{Title-BGLPsoA9.js → Title-CaVA8EIw.js} +1 -1
- package/dist/{Tooltip-DO4-MVhc.js → Tooltip-CVxJe3UW.js} +1 -1
- package/dist/{UserOptions-HQyukyl2.js → UserOptions-WH7-49V0.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-Cg_3vpOo.js → dom-to-png-COvyU2SG.js} +1 -1
- package/dist/exposedLib-DrUEXSyf.js +28 -0
- package/dist/{img-tU9mMt9W.js → img-Bkzj3lDD.js} +1 -1
- package/dist/{labelUtils-C_lMnQRs.js → labelUtils-iX76cA2-.js} +1 -1
- package/dist/{lib-AT2PUyyh.js → lib-Dqr_-I6Y.js} +165 -162
- package/dist/{package-enC-Nivt.js → package-CXgp_UWC.js} +1 -1
- package/dist/{pdf-ColHHJFH.js → pdf-Bk_9lTdQ.js} +1 -1
- package/dist/{render-common-CqcoYfCA.js → render-common-D9TESN6N.js} +12 -12
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +13 -2
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{useNestedProp-CW0vJS1B.js → useNestedProp-CulPqtou.js} +1 -1
- package/dist/{usePrinter-BFS7d6eb.js → usePrinter-CEiH1b6R.js} +2 -2
- package/dist/utils.js +9 -9
- package/dist/{vue-data-ui-DD7J3yor.js → vue-data-ui-BTHfxD0A.js} +69 -69
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-qYgLQzCk.js +1829 -0
- package/dist/{vue-ui-accordion-DJNjilyy.js → vue-ui-accordion-C6L7glHU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DI8b5E2H.js → vue-ui-age-pyramid-DlDqWHMv.js} +27 -27
- package/dist/{vue-ui-annotator-7ZVfFskI.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
- package/dist/vue-ui-bullet-KPROgHpN.js +700 -0
- package/dist/{vue-ui-bump-DzB3WQnq.js → vue-ui-bump-_ccDjRda.js} +237 -237
- package/dist/{vue-ui-candlestick--YWEtek_.js → vue-ui-candlestick-C_21KIXE.js} +245 -245
- package/dist/{vue-ui-carousel-table-Dn3RZU0p.js → vue-ui-carousel-table--JukD8gC.js} +108 -108
- package/dist/{vue-ui-chestnut-BIsXeXiU.js → vue-ui-chestnut-BWvgfxnY.js} +86 -86
- package/dist/vue-ui-chord-CGkWt2XK.js +1345 -0
- package/dist/vue-ui-circle-pack-BWaN2mEB.js +1633 -0
- package/dist/{vue-ui-cursor-C-P2D5i6.js → vue-ui-cursor-YbxnsOd1.js} +3 -3
- package/dist/{vue-ui-dag-CThnMMWA.js → vue-ui-dag-B-X2eE3W.js} +923 -885
- package/dist/{vue-ui-dashboard-D0NNTRO3.js → vue-ui-dashboard-DgayqETw.js} +69 -69
- package/dist/{vue-ui-digits-9tGjGzZh.js → vue-ui-digits-1ULOKtDh.js} +3 -3
- package/dist/{vue-ui-donut-EZu8p7HF.js → vue-ui-donut-Bz2ZI_vO.js} +85 -85
- package/dist/{vue-ui-donut-DLN9uPOi.js → vue-ui-donut-Ci2MsJLu.js} +64 -64
- package/dist/{vue-ui-donut-evolution-mu-iGTIn.js → vue-ui-donut-evolution-Bo54mlFQ.js} +347 -347
- package/dist/{vue-ui-dumbbell-Dvldi3Oo.js → vue-ui-dumbbell-D2bJ_P7K.js} +229 -229
- package/dist/vue-ui-flow-D9m-k3tM.js +1214 -0
- package/dist/vue-ui-funnel-DyETq2KE.js +747 -0
- package/dist/{vue-ui-galaxy-D6eYN8Ut.js → vue-ui-galaxy-pjGKZLrq.js} +64 -64
- package/dist/vue-ui-gauge-BO5lLCyJ.js +932 -0
- package/dist/{vue-ui-geo-CQqNemR6.js → vue-ui-geo-DpyLvk_B.js} +34 -34
- package/dist/{vue-ui-gizmo-ClunTUxX.js → vue-ui-gizmo-CUl8dgmV.js} +10 -10
- package/dist/{vue-ui-heatmap-B_pSQNzO.js → vue-ui-heatmap-CiV3kCrx.js} +472 -472
- package/dist/{vue-ui-hill-Byp0Tnny.js → vue-ui-hill-CkMtYGo2.js} +10 -10
- package/dist/vue-ui-history-plot-X2gQI4TY.js +1695 -0
- package/dist/vue-ui-horizontal-bar-DVT1wthh.js +1708 -0
- package/dist/{vue-ui-kpi-BKw5t-rX.js → vue-ui-kpi-CWPmkLKR.js} +3 -3
- package/dist/{vue-ui-mini-loader-BNm0MQDw.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
- package/dist/{vue-ui-molecule-DRwQV5hN.js → vue-ui-molecule-DnW5HYZP.js} +176 -176
- package/dist/{vue-ui-mood-radar-Bj3KTWYj.js → vue-ui-mood-radar-FovwTDLw.js} +20 -20
- package/dist/{vue-ui-nested-donuts-83Wh2w6z.js → vue-ui-nested-donuts-DHCOlxTO.js} +104 -104
- package/dist/vue-ui-onion-CzAEqZ0B.js +1233 -0
- package/dist/vue-ui-parallel-coordinate-plot-BZN75P6u.js +1430 -0
- package/dist/{vue-ui-quadrant-_J-Qr7-K.js → vue-ui-quadrant-CNeP5WEC.js} +32 -32
- package/dist/{vue-ui-quick-chart-DcOUq4ym.js → vue-ui-quick-chart-Bnj8oh82.js} +153 -153
- package/dist/{vue-ui-radar-FlRlsoAd.js → vue-ui-radar-DMyMAtx7.js} +41 -41
- package/dist/{vue-ui-rating-eCxEZD8C.js → vue-ui-rating-dBCk6ECe.js} +26 -26
- package/dist/vue-ui-relation-circle-DFj5V39I.js +903 -0
- package/dist/vue-ui-ridgeline-BaplQZZK.js +1614 -0
- package/dist/vue-ui-rings-B9QJ1Rnb.js +1250 -0
- package/dist/vue-ui-scatter-UH0wqUO5.js +2403 -0
- package/dist/{vue-ui-skeleton-CNOam3kC.js → vue-ui-skeleton-DkoEclfa.js} +3 -3
- package/dist/{vue-ui-smiley-YdyidjBH.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
- package/dist/{vue-ui-spark-trend-CS5GLtYL.js → vue-ui-spark-trend-BW8WYOva.js} +23 -23
- package/dist/{vue-ui-sparkbar-DDHwgP4k.js → vue-ui-sparkbar-ADRsH-GZ.js} +24 -24
- package/dist/{vue-ui-sparkgauge-BcQu9V3h.js → vue-ui-sparkgauge-BYs1L6I7.js} +61 -61
- package/dist/{vue-ui-sparkhistogram-CPsA5P6c.js → vue-ui-sparkhistogram-D1Paq9X0.js} +15 -15
- package/dist/vue-ui-sparkline-D2Hf_NP-.js +1584 -0
- package/dist/{vue-ui-sparkstackbar-4tsTxMe2.js → vue-ui-sparkstackbar-Uy6Q0X15.js} +207 -207
- package/dist/vue-ui-stackbar-Vt9AjazE.js +2332 -0
- package/dist/{vue-ui-stackline-BNCWO_jG.js → vue-ui-stackline-CBIGhWpn.js} +605 -605
- package/dist/{vue-ui-strip-plot-2Y1c02Ek.js → vue-ui-strip-plot-DhZV1Sl6.js} +57 -57
- package/dist/vue-ui-table-DqMxdgj4.js +1352 -0
- package/dist/{vue-ui-table-heatmap-BacaEjQy.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
- package/dist/{vue-ui-table-sparkline-B8oAU5yr.js → vue-ui-table-sparkline-2KZ2UoEA.js} +11 -11
- package/dist/vue-ui-thermometer-mVP2GqO7.js +756 -0
- package/dist/{vue-ui-timer-CWZgSpP8.js → vue-ui-timer-CGrqG8H3.js} +12 -12
- package/dist/{vue-ui-tiremarks-LLVCPyg9.js → vue-ui-tiremarks-DyFUPB5s.js} +12 -12
- package/dist/{vue-ui-treemap-ehBl9JMC.js → vue-ui-treemap-BVFHSTfq.js} +44 -44
- package/dist/vue-ui-waffle-DNZsc5x0.js +1619 -0
- package/dist/{vue-ui-wheel-C4OHPrtC.js → vue-ui-wheel-Cg4oNFmH.js} +28 -28
- package/dist/{vue-ui-word-cloud-CDHn3Kwa.js → vue-ui-word-cloud-CUf1h_L1.js} +32 -32
- package/dist/{vue-ui-world-ao1xf04I.js → vue-ui-world-CIcrI3zP.js} +116 -116
- package/dist/{vue-ui-xy-DmJDCl3c.js → vue-ui-xy-8V-CU7No.js} +99 -99
- package/dist/{vue-ui-xy-_U3wmtCf.js → vue-ui-xy-CJ5ZixIL.js} +304 -304
- package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
- package/package.json +1 -1
- package/dist/exposedLib-vfRiIvq_.js +0 -28
- package/dist/vue-ui-3d-bar-DgrcdAgz.js +0 -1829
- package/dist/vue-ui-bullet-Dyd5F1Wa.js +0 -700
- package/dist/vue-ui-chord-BimXqVsF.js +0 -1345
- package/dist/vue-ui-circle-pack-DKQEhL-L.js +0 -1633
- package/dist/vue-ui-flow-DYZBT5Cb.js +0 -1214
- package/dist/vue-ui-funnel--NaxO0cZ.js +0 -747
- package/dist/vue-ui-gauge-DTIEl2Xb.js +0 -932
- package/dist/vue-ui-history-plot-CMu8ST1E.js +0 -1695
- package/dist/vue-ui-horizontal-bar-BQn7WxQ-.js +0 -1708
- package/dist/vue-ui-onion-C27GpneA.js +0 -1233
- package/dist/vue-ui-parallel-coordinate-plot-BklOszr1.js +0 -1430
- package/dist/vue-ui-relation-circle-DnsxHv7t.js +0 -903
- package/dist/vue-ui-ridgeline-TopTLyaE.js +0 -1614
- package/dist/vue-ui-rings-obVfb09j.js +0 -1250
- package/dist/vue-ui-scatter-BHSuA506.js +0 -2403
- package/dist/vue-ui-sparkline-CnbO-GkM.js +0 -1584
- package/dist/vue-ui-stackbar-2_SrMFNT.js +0 -2332
- package/dist/vue-ui-table-DJZxHo5N.js +0 -1352
- package/dist/vue-ui-thermometer-BGtxNU9T.js +0 -756
- package/dist/vue-ui-waffle-DpBAXbhh.js +0 -1610
- package/dist/vue-ui-xy-canvas-Bx-9y53V.js +0 -1823
|
@@ -1,932 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Bt as t, G as n, Jt as r, Kt as i, Mt as a, O as ee, Pt as o, S as te, X as s, b as ne, f as re, i as ie, jt as ae, kt as c, pt as oe, q as se, qt as ce, t as le, tt as l, w as ue } from "./lib-AT2PUyyh.js";
|
|
3
|
-
import { n as de } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as fe } from "./useConfig-DwdGsXTx.js";
|
|
5
|
-
import { t as pe } from "./usePrinter-BFS7d6eb.js";
|
|
6
|
-
import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as ge } from "./useNestedProp-CW0vJS1B.js";
|
|
8
|
-
import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as ve } from "./useChartExport-DNiwdPmb.js";
|
|
10
|
-
import { t as ye } from "./img-tU9mMt9W.js";
|
|
11
|
-
import { n as be } from "./Title-BGLPsoA9.js";
|
|
12
|
-
import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
-
import { l as Se, t as Ce } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
-
import { t as we } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
-
import { t as Te } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
|
-
import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
|
-
import { t as De } from "./usePrefersMotion-BC-CsqR1.js";
|
|
18
|
-
import { t as Oe } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
|
|
19
|
-
import { t as ke } from "./vue_ui_gauge-Cf1RZc9q.js";
|
|
20
|
-
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ae, createVNode as je, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as v, nextTick as Me, normalizeClass as Ne, normalizeProps as y, normalizeStyle as Pe, onBeforeUnmount as Fe, onMounted as Ie, openBlock as b, ref as x, renderList as S, renderSlot as C, shallowRef as Le, toDisplayString as w, toRefs as Re, unref as T, watch as E, withCtx as D } from "vue";
|
|
21
|
-
//#region src/components/vue-ui-gauge.vue
|
|
22
|
-
var ze = /* @__PURE__ */ e({ default: () => _t }), Be = ["id"], Ve = { key: 0 }, He = ["xmlns", "viewBox"], Ue = ["width", "height"], We = ["id"], Ge = ["stdDeviation"], Ke = { key: 1 }, qe = [
|
|
23
|
-
"d",
|
|
24
|
-
"fill",
|
|
25
|
-
"stroke"
|
|
26
|
-
], Je = [
|
|
27
|
-
"d",
|
|
28
|
-
"fill",
|
|
29
|
-
"stroke"
|
|
30
|
-
], Ye = ["d", "fill"], Xe = ["id", "d"], Ze = [
|
|
31
|
-
"fill",
|
|
32
|
-
"font-size",
|
|
33
|
-
"font-weight"
|
|
34
|
-
], Qe = ["href", "startOffset"], $e = [
|
|
35
|
-
"text-anchor",
|
|
36
|
-
"fill",
|
|
37
|
-
"font-size",
|
|
38
|
-
"font-weight",
|
|
39
|
-
"innerHTML"
|
|
40
|
-
], et = ["d", "filter"], tt = ["stroke", "stroke-width"], nt = ["stroke", "stroke-width"], rt = ["stroke", "stroke-width"], it = ["stroke", "stroke-width"], at = { key: 8 }, ot = [
|
|
41
|
-
"x",
|
|
42
|
-
"y",
|
|
43
|
-
"text-anchor",
|
|
44
|
-
"font-size",
|
|
45
|
-
"font-weight",
|
|
46
|
-
"fill"
|
|
47
|
-
], st = [
|
|
48
|
-
"x",
|
|
49
|
-
"y",
|
|
50
|
-
"font-size",
|
|
51
|
-
"font-weight",
|
|
52
|
-
"fill"
|
|
53
|
-
], ct = { key: 0 }, lt = [
|
|
54
|
-
"x1",
|
|
55
|
-
"y1",
|
|
56
|
-
"x2",
|
|
57
|
-
"y2",
|
|
58
|
-
"stroke",
|
|
59
|
-
"stroke-width"
|
|
60
|
-
], ut = [
|
|
61
|
-
"x1",
|
|
62
|
-
"y1",
|
|
63
|
-
"x2",
|
|
64
|
-
"y2",
|
|
65
|
-
"stroke",
|
|
66
|
-
"stroke-width"
|
|
67
|
-
], dt = [
|
|
68
|
-
"x1",
|
|
69
|
-
"y1",
|
|
70
|
-
"x2",
|
|
71
|
-
"y2",
|
|
72
|
-
"stroke-width",
|
|
73
|
-
"filter"
|
|
74
|
-
], ft = { key: 1 }, pt = [
|
|
75
|
-
"d",
|
|
76
|
-
"fill",
|
|
77
|
-
"stroke",
|
|
78
|
-
"stroke-width"
|
|
79
|
-
], mt = [
|
|
80
|
-
"cx",
|
|
81
|
-
"cy",
|
|
82
|
-
"fill",
|
|
83
|
-
"r",
|
|
84
|
-
"stroke-width",
|
|
85
|
-
"stroke"
|
|
86
|
-
], ht = [
|
|
87
|
-
"x",
|
|
88
|
-
"y",
|
|
89
|
-
"font-size",
|
|
90
|
-
"fill"
|
|
91
|
-
], gt = {
|
|
92
|
-
key: 4,
|
|
93
|
-
class: "vue-data-ui-watermark"
|
|
94
|
-
}, _t = /*#__PURE__*/ xe({
|
|
95
|
-
__name: "vue-ui-gauge",
|
|
96
|
-
props: {
|
|
97
|
-
config: {
|
|
98
|
-
type: Object,
|
|
99
|
-
default() {
|
|
100
|
-
return {};
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
dataset: {
|
|
104
|
-
type: Object,
|
|
105
|
-
default() {
|
|
106
|
-
return {};
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
emits: ["copyAlt"],
|
|
111
|
-
setup(e, { expose: xe, emit: ze }) {
|
|
112
|
-
let _t = g(() => import("./PenAndPaper-DJ607Hx6.js").then((e) => e.t)), vt = g(() => import("./UserOptions-HQyukyl2.js").then((e) => e.n)), yt = g(() => import("./PackageVersion-DNTJUKh1.js").then((e) => e.t)), { vue_ui_gauge: bt } = fe(), { isThemeValid: xt, warnInvalidTheme: St } = _e(), Ct = De(), O = e, wt = ze, Tt = d(() => !!O.dataset && Object.keys(O.dataset).length > 0 && O.dataset.series && O.dataset.series.length), k = x(se()), Et = x(null), Dt = x(0), A = x(null), Ot = x(null), kt = x(null), At = x(null), jt = x(null), Mt = x(0), j = x(Rt());
|
|
113
|
-
de({
|
|
114
|
-
config: () => j.value,
|
|
115
|
-
dataset: () => O.dataset,
|
|
116
|
-
component: "VueUiGauge",
|
|
117
|
-
rules: [{
|
|
118
|
-
test: (e) => e?.series && e.series?.length > 6,
|
|
119
|
-
message: [
|
|
120
|
-
"👀 The number of steps is > 6, which can make the chart hard to read and labels overlap. Consider:",
|
|
121
|
-
"",
|
|
122
|
-
"▶️ Using broader steps."
|
|
123
|
-
]
|
|
124
|
-
}]
|
|
125
|
-
});
|
|
126
|
-
let Nt = d(() => j.value.userOptions.useCursorPointer), Pt = d(() => r({
|
|
127
|
-
defaultConfig: {
|
|
128
|
-
userOptions: { show: !1 },
|
|
129
|
-
style: { chart: {
|
|
130
|
-
backgroundColor: "#99999930",
|
|
131
|
-
animation: { use: !1 },
|
|
132
|
-
layout: {
|
|
133
|
-
markers: { show: !1 },
|
|
134
|
-
segmentSeparators: { stroke: "#6A6A6A" },
|
|
135
|
-
segmentNames: { show: !1 },
|
|
136
|
-
indicatorArc: { fill: "#6A6A6A50" },
|
|
137
|
-
pointer: {
|
|
138
|
-
stroke: "#6A6A6A",
|
|
139
|
-
useRatingColor: !0,
|
|
140
|
-
circle: {
|
|
141
|
-
stroke: "#6A6A6A",
|
|
142
|
-
color: "#6A6A6A"
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
legend: { show: !1 }
|
|
147
|
-
} }
|
|
148
|
-
},
|
|
149
|
-
userConfig: j.value.skeletonConfig ?? {}
|
|
150
|
-
})), { loading: Ft, FINAL_DATASET: M, manualLoading: N } = me({
|
|
151
|
-
...Re(O),
|
|
152
|
-
FINAL_CONFIG: j,
|
|
153
|
-
prepareConfig: Rt,
|
|
154
|
-
callback: () => {
|
|
155
|
-
Promise.resolve().then(async () => {
|
|
156
|
-
await Me();
|
|
157
|
-
});
|
|
158
|
-
},
|
|
159
|
-
skeletonDataset: O.config?.skeletonDataset ?? {
|
|
160
|
-
value: 0,
|
|
161
|
-
series: [{
|
|
162
|
-
from: -1,
|
|
163
|
-
to: 0,
|
|
164
|
-
name: "_",
|
|
165
|
-
color: "#A1A1A1"
|
|
166
|
-
}, {
|
|
167
|
-
from: 0,
|
|
168
|
-
to: 1,
|
|
169
|
-
name: "__",
|
|
170
|
-
color: "#CACACA"
|
|
171
|
-
}]
|
|
172
|
-
},
|
|
173
|
-
skeletonConfig: r({
|
|
174
|
-
defaultConfig: j.value,
|
|
175
|
-
userConfig: Pt.value
|
|
176
|
-
})
|
|
177
|
-
}), { userOptionsVisible: P, setUserOptionsVisibility: It, keepUserOptionState: Lt } = Te({ config: j.value }), { svgRef: F } = Ee({ config: j.value.style.chart.title });
|
|
178
|
-
E(() => O.config, (e) => {
|
|
179
|
-
Ft.value || (j.value = Rt()), P.value = !j.value.userOptions.showOnChartHover, Yt(), Mt.value += 1;
|
|
180
|
-
}, { deep: !0 }), E(() => O.dataset, (e) => {
|
|
181
|
-
Yt(), e && Object.keys(e).length > 0 && (N.value = j.value?.loading ?? !1);
|
|
182
|
-
}, {
|
|
183
|
-
deep: !0,
|
|
184
|
-
immediate: !1
|
|
185
|
-
});
|
|
186
|
-
function Rt() {
|
|
187
|
-
let e = ge({
|
|
188
|
-
userConfig: O.config,
|
|
189
|
-
defaultConfig: bt
|
|
190
|
-
}), t = e.theme;
|
|
191
|
-
if (!t) return e;
|
|
192
|
-
if (!xt.value(e)) return St(e), e;
|
|
193
|
-
let n = ge({
|
|
194
|
-
userConfig: ke[t] || O.config,
|
|
195
|
-
defaultConfig: e
|
|
196
|
-
}), r = ge({
|
|
197
|
-
userConfig: O.config,
|
|
198
|
-
defaultConfig: n
|
|
199
|
-
});
|
|
200
|
-
return {
|
|
201
|
-
...r,
|
|
202
|
-
customPalette: r.customPalette.length ? r.customPalette : i[t] || o
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
let { isPrinting: zt, isImaging: Bt, generatePdf: Vt, generateImage: Ht } = pe({
|
|
206
|
-
elementId: `vue-ui-gauge_${k.value}`,
|
|
207
|
-
fileName: j.value.style.chart.title.text || "vue-ui-gauge",
|
|
208
|
-
options: j.value.userOptions.print
|
|
209
|
-
}), Ut = d(() => j.value.userOptions.show && !j.value.style.chart.title.text), Wt = d(() => ue(j.value.customPalette)), I = d(() => {
|
|
210
|
-
if (ae(M.value.series || {})) return {
|
|
211
|
-
value: 0,
|
|
212
|
-
series: [{
|
|
213
|
-
from: 0,
|
|
214
|
-
to: 0
|
|
215
|
-
}]
|
|
216
|
-
};
|
|
217
|
-
let e = [];
|
|
218
|
-
(M.value.series || []).forEach((t) => {
|
|
219
|
-
e.push(t.from || 1e-7), e.push(t.to || 1e-7);
|
|
220
|
-
});
|
|
221
|
-
let t = Math.max(...e);
|
|
222
|
-
return {
|
|
223
|
-
...M.value,
|
|
224
|
-
series: (M.value.series || []).map((e, n) => ({
|
|
225
|
-
...e,
|
|
226
|
-
color: te(e.color) || Wt.value[n] || o[n],
|
|
227
|
-
value: ((e.to || 0) - (e.from || 0)) / t * 100
|
|
228
|
-
}))
|
|
229
|
-
};
|
|
230
|
-
}), L = x(512), R = x({
|
|
231
|
-
height: 358.4,
|
|
232
|
-
width: L.value,
|
|
233
|
-
top: 0,
|
|
234
|
-
bottom: 358.4,
|
|
235
|
-
centerX: 179.2,
|
|
236
|
-
centerY: L.value / 2,
|
|
237
|
-
labelFontSize: 18,
|
|
238
|
-
legendFontSize: j.value.style.chart.legend.fontSize,
|
|
239
|
-
pointerRadius: j.value.style.chart.layout.pointer.circle.radius,
|
|
240
|
-
trackSize: j.value.style.chart.layout.track.size,
|
|
241
|
-
pointerSize: j.value.style.chart.layout.pointer.size,
|
|
242
|
-
pointerStrokeWidth: j.value.style.chart.layout.pointer.strokeWidth,
|
|
243
|
-
markerOffset: j.value.style.chart.layout.markers.offsetY + 3,
|
|
244
|
-
segmentFontSize: j.value.style.chart.layout.segmentNames.fontSize
|
|
245
|
-
}), z = x(0), B = x(0), V = d(() => j.value.style.chart.animation.use && !Ct.value), H = x(V.value ? Math.min(...M.value.series.map((e) => e.from)) : M.value.value), U = null;
|
|
246
|
-
function Gt() {
|
|
247
|
-
U !== null && (cancelAnimationFrame(U), U = null);
|
|
248
|
-
}
|
|
249
|
-
E(V, (e) => {
|
|
250
|
-
e || (Gt(), H.value = M.value.value);
|
|
251
|
-
}), E(() => M.value.value, () => {
|
|
252
|
-
Xt(M.value.value);
|
|
253
|
-
});
|
|
254
|
-
let W = d(() => {
|
|
255
|
-
let e = R.value.width / 2, t = Y.value.base, n = Math.PI * ((H.value + 0 - B.value) / (z.value - B.value)) + Math.PI;
|
|
256
|
-
return {
|
|
257
|
-
x1: e,
|
|
258
|
-
y1: t,
|
|
259
|
-
x2: e + Y.value.pointerSize * R.value.pointerSize * .9 * Math.cos(n),
|
|
260
|
-
y2: t + Y.value.pointerSize * R.value.pointerSize * .9 * Math.sin(n)
|
|
261
|
-
};
|
|
262
|
-
}), Kt = d(() => {
|
|
263
|
-
let e = R.value.width / 2, t = Y.value.base, n = Math.PI * ((H.value + 0 - B.value) / (z.value - B.value)) + Math.PI, r = e + Y.value.pointerSize * R.value.pointerSize * .9 * Math.cos(n), i = t + Y.value.pointerSize * R.value.pointerSize * .9 * Math.sin(n), a = R.value.pointerRadius, ee = e + a * Math.cos(n + Math.PI / 2), o = t + a * Math.sin(n + Math.PI / 2), te = e + a * Math.cos(n - Math.PI / 2), s = t + a * Math.sin(n - Math.PI / 2);
|
|
264
|
-
return isNaN(r) ? null : `M ${r},${i} ${ee},${o} ${te},${s} Z`;
|
|
265
|
-
}), qt = d(() => {
|
|
266
|
-
for (let e = 0; e < I.value.series.length; e += 1) {
|
|
267
|
-
let { color: t, from: n, to: r } = I.value.series[e];
|
|
268
|
-
if (H.value >= n && H.value <= r) return t;
|
|
269
|
-
}
|
|
270
|
-
return "#2D353C";
|
|
271
|
-
}), G = Le(null), K = Le(null), q = d({
|
|
272
|
-
get: () => R.value.segmentFontSize,
|
|
273
|
-
set: (e) => e
|
|
274
|
-
}), { autoSizeLabels: Jt } = Oe({
|
|
275
|
-
svgRef: F,
|
|
276
|
-
fontSize: R.value.segmentFontSize,
|
|
277
|
-
minFontSize: j.value.style.chart.layout.segmentNames.minFontSize,
|
|
278
|
-
sizeRef: q,
|
|
279
|
-
labelClass: ".vue-ui-gauge-label-flat"
|
|
280
|
-
}), J = d(() => j.value.debug);
|
|
281
|
-
function Yt() {
|
|
282
|
-
let e = !1;
|
|
283
|
-
if (ae(O.dataset) ? (l({
|
|
284
|
-
componentName: "VueUiGauge",
|
|
285
|
-
type: "dataset",
|
|
286
|
-
debug: J.value
|
|
287
|
-
}), N.value = !0, e = !0) : (oe({
|
|
288
|
-
datasetObject: O.dataset,
|
|
289
|
-
requiredAttributes: ["value", "series"]
|
|
290
|
-
}).forEach((t) => {
|
|
291
|
-
l({
|
|
292
|
-
componentName: "VueUiGauge",
|
|
293
|
-
type: "datasetAttribute",
|
|
294
|
-
property: t,
|
|
295
|
-
debug: J.value
|
|
296
|
-
}), N.value = !0, e = !0;
|
|
297
|
-
}), Object.hasOwn(O.dataset, "series") && (O.dataset.series.length ? O.dataset.series.forEach((t, n) => {
|
|
298
|
-
oe({
|
|
299
|
-
datasetObject: t,
|
|
300
|
-
requiredAttributes: ["from", "to"]
|
|
301
|
-
}).forEach((t) => {
|
|
302
|
-
l({
|
|
303
|
-
componentName: "VueUiGauge",
|
|
304
|
-
type: "datasetSerieAttribute",
|
|
305
|
-
property: t,
|
|
306
|
-
index: n,
|
|
307
|
-
debug: J.value
|
|
308
|
-
}), N.value = !0, e = !0;
|
|
309
|
-
});
|
|
310
|
-
}) : (l({
|
|
311
|
-
componentName: "VueUiGauge",
|
|
312
|
-
type: "datasetAttributeEmpty",
|
|
313
|
-
property: "series",
|
|
314
|
-
debug: J.value
|
|
315
|
-
}), N.value = !0, e = !0))), N.value = e, Xt(M.value.value || 0), j.value.responsive) {
|
|
316
|
-
let e = Se(() => {
|
|
317
|
-
let { width: e, height: t } = Ce({
|
|
318
|
-
chart: A.value,
|
|
319
|
-
title: j.value.style.chart.title.text ? Ot.value : null,
|
|
320
|
-
legend: kt.value,
|
|
321
|
-
source: At.value,
|
|
322
|
-
noTitle: jt.value
|
|
323
|
-
});
|
|
324
|
-
t -= 12, requestAnimationFrame(() => {
|
|
325
|
-
R.value.width = e, R.value.height = t, R.value.centerX = e / 2, R.value.centerY = L.value / 2 / 358.4 * t, R.value.bottom = t, R.value.labelFontSize = 18 / L.value * Math.min(t, e) < 10 ? 10 : 18 / L.value * Math.min(t, e), R.value.legendFontSize = j.value.style.chart.legend.fontSize / L.value * Math.min(t, e) < 14 ? 14 : j.value.style.chart.legend.fontSize / L.value * Math.min(t, e), R.value.pointerRadius = j.value.style.chart.layout.pointer.circle.radius / L.value * Math.min(t, e), R.value.trackSize = j.value.style.chart.layout.track.size / L.value * Math.min(t, e), R.value.pointerStrokeWidth = ce({
|
|
326
|
-
relator: Math.min(e, t),
|
|
327
|
-
adjuster: L.value,
|
|
328
|
-
source: j.value.style.chart.layout.pointer.strokeWidth,
|
|
329
|
-
threshold: 2,
|
|
330
|
-
fallback: 2
|
|
331
|
-
}), R.value.markerOffset = ce({
|
|
332
|
-
relator: Math.max(e, t),
|
|
333
|
-
adjuster: L.value,
|
|
334
|
-
source: j.value.style.chart.layout.markers.offsetY + 3,
|
|
335
|
-
threshold: 2,
|
|
336
|
-
fallback: 2
|
|
337
|
-
}), R.value.segmentFontSize = ce({
|
|
338
|
-
relator: Math.min(e, t),
|
|
339
|
-
adjuster: L.value,
|
|
340
|
-
source: j.value.style.chart.layout.segmentNames.fontSize,
|
|
341
|
-
threshold: 8,
|
|
342
|
-
fallback: 8
|
|
343
|
-
});
|
|
344
|
-
}), Jt();
|
|
345
|
-
});
|
|
346
|
-
G.value && (K.value && G.value.unobserve(K.value), G.value.disconnect()), G.value = new ResizeObserver(e), K.value = A.value.parentNode, G.value.observe(K.value);
|
|
347
|
-
}
|
|
348
|
-
Jt();
|
|
349
|
-
}
|
|
350
|
-
Ie(() => {
|
|
351
|
-
Yt();
|
|
352
|
-
}), Fe(() => {
|
|
353
|
-
Gt(), G.value && (K.value && G.value.unobserve(K.value), G.value.disconnect());
|
|
354
|
-
});
|
|
355
|
-
function Xt(e) {
|
|
356
|
-
let t = [];
|
|
357
|
-
if ((I.value.series || []).forEach((e) => {
|
|
358
|
-
t.push(e.from || 0), t.push(e.to || 0);
|
|
359
|
-
}), z.value = Math.max(...t), B.value = Math.min(...t), Gt(), !V.value) {
|
|
360
|
-
H.value = e;
|
|
361
|
-
return;
|
|
362
|
-
}
|
|
363
|
-
let n = j.value.style.chart.animation.speed, r = Math.abs(e - H.value) / (n * 60);
|
|
364
|
-
function i() {
|
|
365
|
-
if (!V.value) {
|
|
366
|
-
H.value = e, U = null;
|
|
367
|
-
return;
|
|
368
|
-
}
|
|
369
|
-
H.value < e ? H.value = Math.min(H.value + r, e) : H.value > e && (H.value = Math.max(H.value - r, e)), U = H.value === e ? null : requestAnimationFrame(i);
|
|
370
|
-
}
|
|
371
|
-
i();
|
|
372
|
-
}
|
|
373
|
-
let Y = d(() => {
|
|
374
|
-
let e = j.value.responsive ? Math.min(R.value.width, R.value.height) : R.value.width, t = 2.5 / j.value.style.chart.layout.radiusRatio;
|
|
375
|
-
return {
|
|
376
|
-
arcs: e / t,
|
|
377
|
-
gradients: e / (t * 1.1),
|
|
378
|
-
base: j.value.responsive ? R.value.height / 1.618 : R.value.height * .7,
|
|
379
|
-
ratingBase: j.value.responsive ? R.value.height / 2 + R.value.height / 4 : R.value.height * .9,
|
|
380
|
-
pointerSize: j.value.responsive ? Math.min(R.value.width, R.value.height) / 3 : R.value.width / 3.2
|
|
381
|
-
};
|
|
382
|
-
}), X = d(() => c({ series: I.value.series }, R.value.width / 2, Y.value.base, Y.value.arcs, Y.value.arcs, 1, 1, 1, 180, 109.9495, 40 * R.value.trackSize)), Zt = d(() => c({ series: I.value.series }, R.value.width / 2, Y.value.base, Y.value.arcs * j.value.style.chart.layout.segmentNames.offsetRatio, Y.value.arcs * j.value.style.chart.layout.segmentNames.offsetRatio, 1, 1, 1, 180, 109.9495, 40 * R.value.trackSize)), Z = d(() => X.value.map((e) => Y.value.arcs * j.value.style.chart.layout.segmentNames.offsetRatio * (e.nameOffsetRatio || 1))), Qt = d(() => {
|
|
383
|
-
let { x: e, y: t } = a({
|
|
384
|
-
initX: X.value[0].firstSeparator.x,
|
|
385
|
-
initY: X.value[0].firstSeparator.y,
|
|
386
|
-
centerX: W.value.x1,
|
|
387
|
-
centerY: W.value.y1,
|
|
388
|
-
offset: -j.value.style.chart.layout.segmentSeparators.offsetIn
|
|
389
|
-
}), { x: n, y: r } = a({
|
|
390
|
-
initX: X.value[0].startX,
|
|
391
|
-
initY: X.value[0].startY,
|
|
392
|
-
centerX: W.value.x1,
|
|
393
|
-
centerY: W.value.y1,
|
|
394
|
-
offset: j.value.style.chart.layout.segmentSeparators.offsetOut
|
|
395
|
-
});
|
|
396
|
-
return {
|
|
397
|
-
x1: e,
|
|
398
|
-
y1: t,
|
|
399
|
-
x2: n,
|
|
400
|
-
y2: r
|
|
401
|
-
};
|
|
402
|
-
}), $t = d(() => X.value.map((e) => {
|
|
403
|
-
let { x: t, y: n } = a({
|
|
404
|
-
initX: e.separator.x,
|
|
405
|
-
initY: e.separator.y,
|
|
406
|
-
centerX: W.value.x1,
|
|
407
|
-
centerY: W.value.y1,
|
|
408
|
-
offset: -j.value.style.chart.layout.segmentSeparators.offsetIn
|
|
409
|
-
}), { x: r, y: i } = a({
|
|
410
|
-
initX: e.endX,
|
|
411
|
-
initY: e.endY,
|
|
412
|
-
centerX: W.value.x1,
|
|
413
|
-
centerY: W.value.y1,
|
|
414
|
-
offset: j.value.style.chart.layout.segmentSeparators.offsetOut
|
|
415
|
-
});
|
|
416
|
-
return {
|
|
417
|
-
x1: t,
|
|
418
|
-
y1: n,
|
|
419
|
-
x2: r,
|
|
420
|
-
y2: i
|
|
421
|
-
};
|
|
422
|
-
}));
|
|
423
|
-
function en(e) {
|
|
424
|
-
if (e.reduce((e, t) => e + t, 0) > 100) throw Error("Total % must not exceed 100");
|
|
425
|
-
let t = 0;
|
|
426
|
-
return e.map((e) => (t += e, `${t / 100 * 50 - e / 4}%`));
|
|
427
|
-
}
|
|
428
|
-
let tn = d(() => en(X.value.map((e) => e.proportion * 100))), nn = d(() => c({ series: I.value.series }, R.value.width / 2, Y.value.base, Y.value.gradients, Y.value.gradients, .95, 1, 1, 180, 110.02, 2 * R.value.trackSize)), rn = d(() => {
|
|
429
|
-
let e = B.value >= 0 ? -B.value : Math.abs(B.value);
|
|
430
|
-
return ee({
|
|
431
|
-
radius: j.value.style.chart.layout.indicatorArc.radius * R.value.trackSize,
|
|
432
|
-
centerX: R.value.width / 2,
|
|
433
|
-
centerY: Y.value.base,
|
|
434
|
-
percentage: ne((H.value + e) / (z.value + e))
|
|
435
|
-
});
|
|
436
|
-
}), Q = x(!1);
|
|
437
|
-
function an(e) {
|
|
438
|
-
Q.value = e, Dt.value += 1;
|
|
439
|
-
}
|
|
440
|
-
let $ = x(!1);
|
|
441
|
-
function on() {
|
|
442
|
-
$.value = !$.value;
|
|
443
|
-
}
|
|
444
|
-
async function sn({ scale: e = 2 } = {}) {
|
|
445
|
-
if (!A.value) return;
|
|
446
|
-
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ye({
|
|
447
|
-
domElement: A.value,
|
|
448
|
-
base64: !0,
|
|
449
|
-
img: !0,
|
|
450
|
-
scale: e
|
|
451
|
-
});
|
|
452
|
-
return {
|
|
453
|
-
imageUri: i,
|
|
454
|
-
base64: a,
|
|
455
|
-
title: j.value.style.chart.title.text,
|
|
456
|
-
width: t,
|
|
457
|
-
height: n,
|
|
458
|
-
aspectRatio: r
|
|
459
|
-
};
|
|
460
|
-
}
|
|
461
|
-
let cn = d(() => j.value.style.chart.backgroundColor), ln = d(() => j.value.style.chart.title), { isCallbackImaging: un, isCallbackSvg: dn, generateSvg: fn, onGenerateImage: pn } = ve({
|
|
462
|
-
svg: F,
|
|
463
|
-
title: ln,
|
|
464
|
-
legend: null,
|
|
465
|
-
legendItems: null,
|
|
466
|
-
backgroundColor: cn,
|
|
467
|
-
getSvgCallback: () => j.value.userOptions.callbacks.svg,
|
|
468
|
-
generateImage: Ht
|
|
469
|
-
});
|
|
470
|
-
async function mn() {
|
|
471
|
-
if (wt("copyAlt", {
|
|
472
|
-
config: j.value,
|
|
473
|
-
dataset: I.value
|
|
474
|
-
}), !j.value.userOptions.callbacks.altCopy) {
|
|
475
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
476
|
-
return;
|
|
477
|
-
}
|
|
478
|
-
await Promise.resolve(j.value.userOptions.callbacks.altCopy({
|
|
479
|
-
config: j.value,
|
|
480
|
-
dataset: I.value
|
|
481
|
-
}));
|
|
482
|
-
}
|
|
483
|
-
return xe({
|
|
484
|
-
getImage: sn,
|
|
485
|
-
generatePdf: Vt,
|
|
486
|
-
generateImage: Ht,
|
|
487
|
-
generateSvg: fn,
|
|
488
|
-
toggleAnnotator: on,
|
|
489
|
-
toggleFullscreen: an,
|
|
490
|
-
copyAlt: mn
|
|
491
|
-
}), (e, r) => (b(), m("div", {
|
|
492
|
-
class: Ne(`vue-data-ui-component vue-ui-gauge ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
493
|
-
ref_key: "gaugeChart",
|
|
494
|
-
ref: A,
|
|
495
|
-
id: `vue-ui-gauge_${k.value}`,
|
|
496
|
-
style: Pe(`font-family:${j.value.style.fontFamily};width:100%; text-align:center;background:${j.value.style.chart.backgroundColor};${j.value.responsive ? "height: 100%" : ""}`),
|
|
497
|
-
onMouseenter: r[0] ||= () => T(It)(!0),
|
|
498
|
-
onMouseleave: r[1] ||= () => T(It)(!1)
|
|
499
|
-
}, [
|
|
500
|
-
j.value.userOptions.buttons.annotator ? (b(), f(T(_t), {
|
|
501
|
-
key: 0,
|
|
502
|
-
svgRef: T(F),
|
|
503
|
-
backgroundColor: j.value.style.chart.backgroundColor,
|
|
504
|
-
color: j.value.style.chart.color,
|
|
505
|
-
active: $.value,
|
|
506
|
-
isCursorPointer: Nt.value,
|
|
507
|
-
onClose: on
|
|
508
|
-
}, {
|
|
509
|
-
"annotator-action-close": D(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
510
|
-
"annotator-action-color": D(({ color: t }) => [C(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
511
|
-
"annotator-action-draw": D(({ mode: t }) => [C(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
|
|
512
|
-
"annotator-action-undo": D(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
|
|
513
|
-
"annotator-action-redo": D(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
|
|
514
|
-
"annotator-action-delete": D(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
|
|
515
|
-
_: 3
|
|
516
|
-
}, 8, [
|
|
517
|
-
"svgRef",
|
|
518
|
-
"backgroundColor",
|
|
519
|
-
"color",
|
|
520
|
-
"active",
|
|
521
|
-
"isCursorPointer"
|
|
522
|
-
])) : p("", !0),
|
|
523
|
-
Ut.value ? (b(), m("div", {
|
|
524
|
-
key: 1,
|
|
525
|
-
ref_key: "noTitle",
|
|
526
|
-
ref: jt,
|
|
527
|
-
class: "vue-data-ui-no-title-space",
|
|
528
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
529
|
-
}, null, 512)) : p("", !0),
|
|
530
|
-
j.value.style.chart.title.text ? (b(), m("div", {
|
|
531
|
-
key: 2,
|
|
532
|
-
ref_key: "chartTitle",
|
|
533
|
-
ref: Ot,
|
|
534
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
535
|
-
}, [(b(), f(be, {
|
|
536
|
-
key: `title_${Mt.value}`,
|
|
537
|
-
config: {
|
|
538
|
-
title: {
|
|
539
|
-
cy: "gauge-div-title",
|
|
540
|
-
...j.value.style.chart.title
|
|
541
|
-
},
|
|
542
|
-
subtitle: {
|
|
543
|
-
cy: "gauge-div-subtitle",
|
|
544
|
-
...j.value.style.chart.title.subtitle
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
}, {
|
|
548
|
-
default: D(() => [j.value.translations.base && T(M).base ? (b(), m("span", Ve, w(j.value.translations.base) + ": " + w(T(M).base), 1)) : p("", !0)]),
|
|
549
|
-
_: 1
|
|
550
|
-
}, 8, ["config"]))], 512)) : p("", !0),
|
|
551
|
-
j.value.userOptions.show && Tt.value && (T(Lt) || T(P)) ? (b(), f(T(vt), {
|
|
552
|
-
ref_key: "details",
|
|
553
|
-
ref: Et,
|
|
554
|
-
key: `user_options_${Dt.value}`,
|
|
555
|
-
backgroundColor: j.value.style.chart.backgroundColor,
|
|
556
|
-
color: j.value.style.chart.color,
|
|
557
|
-
isImaging: T(Bt),
|
|
558
|
-
isPrinting: T(zt),
|
|
559
|
-
uid: k.value,
|
|
560
|
-
hasXls: !1,
|
|
561
|
-
hasPdf: j.value.userOptions.buttons.pdf,
|
|
562
|
-
hasImg: j.value.userOptions.buttons.img,
|
|
563
|
-
hasSvg: j.value.userOptions.buttons.svg,
|
|
564
|
-
hasFullscreen: j.value.userOptions.buttons.fullscreen,
|
|
565
|
-
hasAltCopy: j.value.userOptions.buttons.altCopy,
|
|
566
|
-
isFullscreen: Q.value,
|
|
567
|
-
titles: { ...j.value.userOptions.buttonTitles },
|
|
568
|
-
chartElement: A.value,
|
|
569
|
-
callbacks: j.value.userOptions.callbacks,
|
|
570
|
-
printScale: j.value.userOptions.print.scale,
|
|
571
|
-
position: j.value.userOptions.position,
|
|
572
|
-
hasAnnotator: j.value.userOptions.buttons.annotator,
|
|
573
|
-
isAnnotation: $.value,
|
|
574
|
-
isCursorPointer: Nt.value,
|
|
575
|
-
onToggleFullscreen: an,
|
|
576
|
-
onGeneratePdf: T(Vt),
|
|
577
|
-
onGenerateImage: T(pn),
|
|
578
|
-
onGenerateSvg: T(fn),
|
|
579
|
-
onToggleAnnotator: on,
|
|
580
|
-
onCopyAlt: mn,
|
|
581
|
-
style: Pe({ visibility: T(Lt) ? T(P) ? "visible" : "hidden" : "visible" })
|
|
582
|
-
}, Ae({ _: 2 }, [
|
|
583
|
-
e.$slots.menuIcon ? {
|
|
584
|
-
name: "menuIcon",
|
|
585
|
-
fn: D(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", y(_({
|
|
586
|
-
isOpen: t,
|
|
587
|
-
color: n
|
|
588
|
-
})), void 0, !0)]),
|
|
589
|
-
key: "0"
|
|
590
|
-
} : void 0,
|
|
591
|
-
e.$slots.optionPdf ? {
|
|
592
|
-
name: "optionPdf",
|
|
593
|
-
fn: D(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
594
|
-
key: "1"
|
|
595
|
-
} : void 0,
|
|
596
|
-
e.$slots.optionImg ? {
|
|
597
|
-
name: "optionImg",
|
|
598
|
-
fn: D(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
599
|
-
key: "2"
|
|
600
|
-
} : void 0,
|
|
601
|
-
e.$slots.optionSvg ? {
|
|
602
|
-
name: "optionSvg",
|
|
603
|
-
fn: D(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
604
|
-
key: "3"
|
|
605
|
-
} : void 0,
|
|
606
|
-
e.$slots.optionFullscreen ? {
|
|
607
|
-
name: "optionFullscreen",
|
|
608
|
-
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", y(_({
|
|
609
|
-
toggleFullscreen: t,
|
|
610
|
-
isFullscreen: n
|
|
611
|
-
})), void 0, !0)]),
|
|
612
|
-
key: "4"
|
|
613
|
-
} : void 0,
|
|
614
|
-
e.$slots.optionAnnotator ? {
|
|
615
|
-
name: "optionAnnotator",
|
|
616
|
-
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", y(_({
|
|
617
|
-
toggleAnnotator: t,
|
|
618
|
-
isAnnotator: n
|
|
619
|
-
})), void 0, !0)]),
|
|
620
|
-
key: "5"
|
|
621
|
-
} : void 0,
|
|
622
|
-
e.$slots.optionAltCopy ? {
|
|
623
|
-
name: "optionAltCopy",
|
|
624
|
-
fn: D(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
|
|
625
|
-
key: "6"
|
|
626
|
-
} : void 0,
|
|
627
|
-
e.$slots["custom-menu-before"] ? {
|
|
628
|
-
name: "custom-menu-before",
|
|
629
|
-
fn: D(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
630
|
-
key: "7"
|
|
631
|
-
} : void 0,
|
|
632
|
-
e.$slots["custom-menu-after"] ? {
|
|
633
|
-
name: "custom-menu-after",
|
|
634
|
-
fn: D(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
635
|
-
key: "8"
|
|
636
|
-
} : void 0
|
|
637
|
-
]), 1032, [
|
|
638
|
-
"backgroundColor",
|
|
639
|
-
"color",
|
|
640
|
-
"isImaging",
|
|
641
|
-
"isPrinting",
|
|
642
|
-
"uid",
|
|
643
|
-
"hasPdf",
|
|
644
|
-
"hasImg",
|
|
645
|
-
"hasSvg",
|
|
646
|
-
"hasFullscreen",
|
|
647
|
-
"hasAltCopy",
|
|
648
|
-
"isFullscreen",
|
|
649
|
-
"titles",
|
|
650
|
-
"chartElement",
|
|
651
|
-
"callbacks",
|
|
652
|
-
"printScale",
|
|
653
|
-
"position",
|
|
654
|
-
"hasAnnotator",
|
|
655
|
-
"isAnnotation",
|
|
656
|
-
"isCursorPointer",
|
|
657
|
-
"onGeneratePdf",
|
|
658
|
-
"onGenerateImage",
|
|
659
|
-
"onGenerateSvg",
|
|
660
|
-
"style"
|
|
661
|
-
])) : p("", !0),
|
|
662
|
-
(b(), m("svg", {
|
|
663
|
-
ref_key: "svgRef",
|
|
664
|
-
ref: F,
|
|
665
|
-
xmlns: T(le),
|
|
666
|
-
class: Ne({
|
|
667
|
-
"vue-data-ui-fullscreen--on": Q.value,
|
|
668
|
-
"vue-data-ui-fulscreen--off": !Q.value
|
|
669
|
-
}),
|
|
670
|
-
viewBox: `0 0 ${R.value.width <= 0 ? 10 : R.value.width} ${R.value.height <= 0 ? 10 : R.value.height}`,
|
|
671
|
-
style: Pe(`max-width:100%;overflow:hidden !important;background:transparent;color:${j.value.style.chart.color}`)
|
|
672
|
-
}, [
|
|
673
|
-
je(T(yt)),
|
|
674
|
-
e.$slots["chart-background"] ? (b(), m("foreignObject", {
|
|
675
|
-
key: 0,
|
|
676
|
-
x: 0,
|
|
677
|
-
y: 0,
|
|
678
|
-
width: R.value.width <= 0 ? 10 : R.value.width,
|
|
679
|
-
height: R.value.height <= 0 ? 10 : R.value.height,
|
|
680
|
-
style: { pointerEvents: "none" }
|
|
681
|
-
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ue)) : p("", !0),
|
|
682
|
-
h("defs", null, [je(we, {
|
|
683
|
-
t: "radial",
|
|
684
|
-
id: `gradient_${k.value}`,
|
|
685
|
-
cx: "50%",
|
|
686
|
-
cy: "50%",
|
|
687
|
-
r: "50%",
|
|
688
|
-
fx: "50%",
|
|
689
|
-
fy: "50%",
|
|
690
|
-
stops: [
|
|
691
|
-
[
|
|
692
|
-
"0%",
|
|
693
|
-
T(t)("#FFFFFF", 1),
|
|
694
|
-
1
|
|
695
|
-
],
|
|
696
|
-
[
|
|
697
|
-
"80%",
|
|
698
|
-
T(t)("#FFFFFF", j.value.style.chart.layout.track.gradientIntensity),
|
|
699
|
-
1
|
|
700
|
-
],
|
|
701
|
-
[
|
|
702
|
-
"100%",
|
|
703
|
-
T(t)("#FFFFFF", 1),
|
|
704
|
-
1
|
|
705
|
-
]
|
|
706
|
-
]
|
|
707
|
-
}, null, 8, ["id", "stops"])]),
|
|
708
|
-
h("defs", null, [h("filter", {
|
|
709
|
-
id: `blur_${k.value}`,
|
|
710
|
-
x: "-50%",
|
|
711
|
-
y: "-50%",
|
|
712
|
-
width: "200%",
|
|
713
|
-
height: "200%"
|
|
714
|
-
}, [h("feGaussianBlur", {
|
|
715
|
-
in: "SourceGraphic",
|
|
716
|
-
stdDeviation: 100 / j.value.style.chart.layout.track.gradientIntensity
|
|
717
|
-
}, null, 8, Ge)], 8, We)]),
|
|
718
|
-
e.$slots.pattern ? (b(), m("g", Ke, [(b(!0), m(u, null, S(X.value, (t, n) => (b(), m("defs", null, [C(e.$slots, "pattern", v({ ref_for: !0 }, {
|
|
719
|
-
seriesIndex: n,
|
|
720
|
-
patternId: `pattern_${k.value}_${n}`
|
|
721
|
-
}), void 0, !0)]))), 256))])) : p("", !0),
|
|
722
|
-
(b(!0), m(u, null, S(X.value, (e, t) => (b(), m("path", {
|
|
723
|
-
key: `arc_${t}`,
|
|
724
|
-
d: e.arcSlice,
|
|
725
|
-
fill: e.color,
|
|
726
|
-
stroke: j.value.style.chart.backgroundColor,
|
|
727
|
-
"stroke-linecap": "round"
|
|
728
|
-
}, null, 8, qe))), 128)),
|
|
729
|
-
e.$slots.pattern ? (b(!0), m(u, { key: 2 }, S(X.value, (e, t) => (b(), m("path", {
|
|
730
|
-
key: `arc_${t}`,
|
|
731
|
-
d: e.arcSlice,
|
|
732
|
-
fill: `url(#pattern_${k.value}_${t})`,
|
|
733
|
-
stroke: j.value.style.chart.backgroundColor,
|
|
734
|
-
"stroke-linecap": "round"
|
|
735
|
-
}, null, 8, Je))), 128)) : p("", !0),
|
|
736
|
-
j.value.style.chart.layout.indicatorArc.show ? (b(), m("path", {
|
|
737
|
-
key: 3,
|
|
738
|
-
d: rn.value,
|
|
739
|
-
fill: j.value.style.chart.layout.indicatorArc.fill
|
|
740
|
-
}, null, 8, Ye)) : p("", !0),
|
|
741
|
-
j.value.style.chart.layout.segmentNames.show && j.value.style.chart.layout.segmentNames.curved ? (b(), m(u, { key: 4 }, [(b(!0), m(u, null, S(X.value, (e, t) => (b(), m("path", {
|
|
742
|
-
id: `curve_${k.value}_${t}`,
|
|
743
|
-
d: `M ${W.value.x1},${W.value.y1} m -${Z.value[t]},0 a ${Z.value[t]},${Z.value[t]} 0 1,1 ${2 * Z.value[t]},0 a ${Z.value[t]},${Z.value[t]} 0 1,1 -${2 * Z.value[t]},0`,
|
|
744
|
-
fill: "transparent"
|
|
745
|
-
}, null, 8, Xe))), 256)), (b(!0), m(u, null, S(X.value, (e, t) => (b(), m("text", {
|
|
746
|
-
fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
|
|
747
|
-
"font-size": q.value,
|
|
748
|
-
"font-weight": j.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
749
|
-
"text-anchor": "middle"
|
|
750
|
-
}, [h("textPath", {
|
|
751
|
-
href: `#curve_${k.value}_${t}`,
|
|
752
|
-
startOffset: tn.value[t]
|
|
753
|
-
}, w(e.name || ""), 9, Qe)], 8, Ze))), 256))], 64)) : p("", !0),
|
|
754
|
-
j.value.style.chart.layout.segmentNames.show && !j.value.style.chart.layout.segmentNames.curved ? (b(!0), m(u, { key: 5 }, S(Zt.value, (e, t) => (b(), m("text", {
|
|
755
|
-
class: "vue-ui-gauge-label-flat",
|
|
756
|
-
"text-anchor": T(re)(e, !1, 12).anchor,
|
|
757
|
-
fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
|
|
758
|
-
"font-size": q.value,
|
|
759
|
-
"font-weight": j.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
760
|
-
innerHTML: T(n)({
|
|
761
|
-
content: String(e.name ?? ""),
|
|
762
|
-
fontSize: q.value,
|
|
763
|
-
fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
|
|
764
|
-
x: e.center.endX,
|
|
765
|
-
y: e.center.endY
|
|
766
|
-
})
|
|
767
|
-
}, null, 8, $e))), 256)) : p("", !0),
|
|
768
|
-
j.value.style.chart.layout.track.useGradient ? (b(!0), m(u, { key: 6 }, S(nn.value, (e, t) => (b(), m("path", {
|
|
769
|
-
key: `arc_${t}`,
|
|
770
|
-
d: e.arcSlice,
|
|
771
|
-
fill: "#FFFFFF",
|
|
772
|
-
stroke: "none",
|
|
773
|
-
"stroke-linecap": "round",
|
|
774
|
-
filter: `url(#blur_${k.value})`
|
|
775
|
-
}, null, 8, et))), 128)) : p("", !0),
|
|
776
|
-
j.value.style.chart.layout.segmentSeparators.show ? (b(), m(u, { key: 7 }, [
|
|
777
|
-
h("line", v(Qt.value, {
|
|
778
|
-
stroke: j.value.style.chart.backgroundColor,
|
|
779
|
-
"stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
780
|
-
"stroke-linecap": "round"
|
|
781
|
-
}), null, 16, tt),
|
|
782
|
-
h("line", v(Qt.value, {
|
|
783
|
-
stroke: j.value.style.chart.layout.segmentSeparators.stroke,
|
|
784
|
-
"stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
785
|
-
"stroke-linecap": "round"
|
|
786
|
-
}), null, 16, nt),
|
|
787
|
-
(b(!0), m(u, null, S($t.value, (e) => (b(), m("line", v({ ref_for: !0 }, e, {
|
|
788
|
-
stroke: j.value.style.chart.backgroundColor,
|
|
789
|
-
"stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
790
|
-
"stroke-linecap": "round"
|
|
791
|
-
}), null, 16, rt))), 256)),
|
|
792
|
-
(b(!0), m(u, null, S($t.value, (e) => (b(), m("line", v({ ref_for: !0 }, e, {
|
|
793
|
-
stroke: j.value.style.chart.layout.segmentSeparators.stroke,
|
|
794
|
-
"stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
795
|
-
"stroke-linecap": "round"
|
|
796
|
-
}), null, 16, it))), 256))
|
|
797
|
-
], 64)) : p("", !0),
|
|
798
|
-
j.value.style.chart.layout.markers.show ? (b(), m("g", at, [(b(!0), m(u, null, S(X.value, (e, t) => (b(), m("text", {
|
|
799
|
-
x: T(a)({
|
|
800
|
-
centerX: W.value.x1,
|
|
801
|
-
centerY: Y.value.base,
|
|
802
|
-
initX: e.center.startX,
|
|
803
|
-
initY: e.center.startY,
|
|
804
|
-
offset: R.value.markerOffset
|
|
805
|
-
}).x,
|
|
806
|
-
y: T(a)({
|
|
807
|
-
centerX: W.value.x1,
|
|
808
|
-
centerY: Y.value.base,
|
|
809
|
-
initX: e.center.startX,
|
|
810
|
-
initY: e.center.startY,
|
|
811
|
-
offset: R.value.markerOffset
|
|
812
|
-
}).y,
|
|
813
|
-
"text-anchor": e.center.startX < W.value.x1 - 5 ? "end" : e.center.startX > W.value.x1 + 5 ? "start" : "middle",
|
|
814
|
-
"font-size": R.value.labelFontSize * j.value.style.chart.layout.markers.fontSizeRatio,
|
|
815
|
-
"font-weight": `${j.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
816
|
-
fill: j.value.style.chart.layout.markers.color
|
|
817
|
-
}, w(T(ie)(j.value.style.chart.layout.markers.formatter, e.from, T(s)({
|
|
818
|
-
p: j.value.style.chart.layout.markers.prefix,
|
|
819
|
-
v: e.from,
|
|
820
|
-
s: j.value.style.chart.layout.markers.suffix,
|
|
821
|
-
r: j.value.style.chart.layout.markers.roundingValue
|
|
822
|
-
}))), 9, ot))), 256))])) : p("", !0),
|
|
823
|
-
j.value.style.chart.layout.markers.show ? (b(), m("text", {
|
|
824
|
-
key: 9,
|
|
825
|
-
x: T(a)({
|
|
826
|
-
centerX: R.value.width / 2,
|
|
827
|
-
centerY: Y.value.base,
|
|
828
|
-
initX: X.value.at(-1).endX,
|
|
829
|
-
initY: X.value.at(-1).endY,
|
|
830
|
-
offset: R.value.markerOffset
|
|
831
|
-
}).x,
|
|
832
|
-
y: T(a)({
|
|
833
|
-
centerX: R.value.width / 2,
|
|
834
|
-
centerY: Y.value.base,
|
|
835
|
-
initX: X.value.at(-1).endX,
|
|
836
|
-
initY: X.value.at(-1).endY,
|
|
837
|
-
offset: R.value.markerOffset
|
|
838
|
-
}).y,
|
|
839
|
-
"text-anchor": "start",
|
|
840
|
-
"font-size": R.value.labelFontSize * j.value.style.chart.layout.markers.fontSizeRatio,
|
|
841
|
-
"font-weight": `${j.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
842
|
-
fill: j.value.style.chart.layout.markers.color
|
|
843
|
-
}, w(T(ie)(j.value.style.chart.layout.markers.formatter, z.value, T(s)({
|
|
844
|
-
p: j.value.style.chart.layout.markers.prefix,
|
|
845
|
-
v: z.value,
|
|
846
|
-
s: j.value.style.chart.layout.markers.suffix,
|
|
847
|
-
r: j.value.style.chart.layout.markers.roundingValue
|
|
848
|
-
}))), 9, st)) : p("", !0),
|
|
849
|
-
j.value.style.chart.layout.pointer.show ? (b(), m(u, { key: 10 }, [j.value.style.chart.layout.pointer.type === "rounded" ? (b(), m("g", ct, [
|
|
850
|
-
isNaN(W.value.x2) ? p("", !0) : (b(), m("line", {
|
|
851
|
-
key: 0,
|
|
852
|
-
x1: W.value.x1,
|
|
853
|
-
y1: W.value.y1,
|
|
854
|
-
x2: W.value.x2,
|
|
855
|
-
y2: W.value.y2,
|
|
856
|
-
stroke: j.value.style.chart.layout.pointer.stroke,
|
|
857
|
-
"stroke-width": R.value.pointerStrokeWidth,
|
|
858
|
-
"stroke-linecap": "round"
|
|
859
|
-
}, null, 8, lt)),
|
|
860
|
-
isNaN(W.value.x2) ? p("", !0) : (b(), m("line", {
|
|
861
|
-
key: 1,
|
|
862
|
-
x1: W.value.x1,
|
|
863
|
-
y1: W.value.y1,
|
|
864
|
-
x2: W.value.x2,
|
|
865
|
-
y2: W.value.y2,
|
|
866
|
-
stroke: j.value.style.chart.layout.pointer.useRatingColor ? qt.value : j.value.style.chart.layout.pointer.color,
|
|
867
|
-
"stroke-linecap": "round",
|
|
868
|
-
"stroke-width": R.value.pointerStrokeWidth * .7
|
|
869
|
-
}, null, 8, ut)),
|
|
870
|
-
!isNaN(W.value.x2) && j.value.style.chart.layout.track.useGradient ? (b(), m("line", {
|
|
871
|
-
key: 2,
|
|
872
|
-
x1: W.value.x1,
|
|
873
|
-
y1: W.value.y1,
|
|
874
|
-
x2: W.value.x2,
|
|
875
|
-
y2: W.value.y2,
|
|
876
|
-
stroke: "white",
|
|
877
|
-
"stroke-linecap": "round",
|
|
878
|
-
"stroke-width": R.value.pointerStrokeWidth * .3,
|
|
879
|
-
filter: `url(#blur_${k.value})`
|
|
880
|
-
}, null, 8, dt)) : p("", !0)
|
|
881
|
-
])) : (b(), m("g", ft, [Kt.value ? (b(), m("path", {
|
|
882
|
-
key: 0,
|
|
883
|
-
d: Kt.value,
|
|
884
|
-
fill: j.value.style.chart.layout.pointer.useRatingColor ? qt.value : j.value.style.chart.layout.pointer.color,
|
|
885
|
-
stroke: j.value.style.chart.layout.pointer.stroke,
|
|
886
|
-
"stroke-width": j.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
887
|
-
"stroke-linejoin": "round"
|
|
888
|
-
}, null, 8, pt)) : p("", !0)])), h("circle", {
|
|
889
|
-
cx: R.value.width / 2,
|
|
890
|
-
cy: Y.value.base,
|
|
891
|
-
fill: j.value.style.chart.layout.pointer.circle.color,
|
|
892
|
-
r: R.value.pointerRadius <= 0 ? 1e-4 : R.value.pointerRadius,
|
|
893
|
-
"stroke-width": j.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
894
|
-
stroke: j.value.style.chart.layout.pointer.circle.stroke
|
|
895
|
-
}, null, 8, mt)], 64)) : p("", !0),
|
|
896
|
-
j.value.style.chart.legend.show ? (b(), m("text", {
|
|
897
|
-
key: 11,
|
|
898
|
-
x: R.value.width / 2,
|
|
899
|
-
y: Y.value.ratingBase,
|
|
900
|
-
"text-anchor": "middle",
|
|
901
|
-
"font-size": R.value.legendFontSize,
|
|
902
|
-
"font-weight": "bold",
|
|
903
|
-
fill: j.value.style.chart.legend.useRatingColor ? qt.value : j.value.style.chart.legend.color
|
|
904
|
-
}, w(T(ie)(j.value.style.chart.legend.formatter, H.value, T(s)({
|
|
905
|
-
p: j.value.style.chart.legend.prefix + (j.value.style.chart.legend.showPlusSymbol && H.value > 0 ? "+" : ""),
|
|
906
|
-
v: H.value,
|
|
907
|
-
s: j.value.style.chart.legend.suffix,
|
|
908
|
-
r: j.value.style.chart.legend.roundingValue
|
|
909
|
-
}))), 9, ht)) : p("", !0),
|
|
910
|
-
C(e.$slots, "svg", { svg: {
|
|
911
|
-
...R.value,
|
|
912
|
-
isPrintingImg: T(zt) || T(Bt) || T(un),
|
|
913
|
-
isPrintingSvg: T(dn)
|
|
914
|
-
} }, void 0, !0)
|
|
915
|
-
], 14, He)),
|
|
916
|
-
e.$slots.watermark ? (b(), m("div", gt, [C(e.$slots, "watermark", y(_({ isPrinting: T(zt) || T(Bt) || T(un) || T(dn) })), void 0, !0)])) : p("", !0),
|
|
917
|
-
h("div", {
|
|
918
|
-
ref_key: "chartLegend",
|
|
919
|
-
ref: kt
|
|
920
|
-
}, [C(e.$slots, "legend", { legend: I.value }, void 0, !0)], 512),
|
|
921
|
-
e.$slots.source ? (b(), m("div", {
|
|
922
|
-
key: 5,
|
|
923
|
-
ref_key: "source",
|
|
924
|
-
ref: At,
|
|
925
|
-
dir: "auto"
|
|
926
|
-
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
927
|
-
C(e.$slots, "skeleton", {}, () => [T(Ft) ? (b(), f(he, { key: 0 })) : p("", !0)], !0)
|
|
928
|
-
], 46, Be));
|
|
929
|
-
}
|
|
930
|
-
}, [["__scopeId", "data-v-27f19797"]]);
|
|
931
|
-
//#endregion
|
|
932
|
-
export { ze as n, _t as t };
|