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
|
@@ -0,0 +1,932 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { G as t, Ht as n, It as r, Jt as i, Nt as a, O as ee, Pt as o, S as te, X as s, Xt as ne, Yt as c, b as re, f as ie, i as l, jt as ae, mt as oe, nt as u, q as se, t as ce, w as le } from "./lib-Dqr_-I6Y.js";
|
|
3
|
+
import { n as ue } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as de } from "./useConfig-DwdGsXTx.js";
|
|
5
|
+
import { t as fe } from "./usePrinter-CEiH1b6R.js";
|
|
6
|
+
import { n as pe, t as me } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as he } from "./useNestedProp-CulPqtou.js";
|
|
8
|
+
import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as _e } from "./useChartExport-DNiwdPmb.js";
|
|
10
|
+
import { t as ve } from "./img-Bkzj3lDD.js";
|
|
11
|
+
import { n as ye } from "./Title-CaVA8EIw.js";
|
|
12
|
+
import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { l as xe, t as Se } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
+
import { t as Ce } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
+
import { t as we } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
|
+
import { t as Te } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
|
+
import { t as Ee } from "./usePrefersMotion-BC-CsqR1.js";
|
|
18
|
+
import { t as De } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
|
|
19
|
+
import { t as Oe } from "./vue_ui_gauge-Cf1RZc9q.js";
|
|
20
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as ke, createVNode as Ae, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as y, nextTick as je, normalizeClass as Me, normalizeProps as b, normalizeStyle as Ne, onBeforeUnmount as Pe, onMounted as Fe, openBlock as x, ref as S, renderList as C, renderSlot as w, shallowRef as Ie, toDisplayString as T, toRefs as Le, unref as E, watch as D, withCtx as O } from "vue";
|
|
21
|
+
//#region src/components/vue-ui-gauge.vue
|
|
22
|
+
var Re = /* @__PURE__ */ e({ default: () => gt }), ze = ["id"], Be = { key: 0 }, Ve = ["xmlns", "viewBox"], He = ["width", "height"], Ue = ["id"], We = ["stdDeviation"], Ge = { key: 1 }, Ke = [
|
|
23
|
+
"d",
|
|
24
|
+
"fill",
|
|
25
|
+
"stroke"
|
|
26
|
+
], qe = [
|
|
27
|
+
"d",
|
|
28
|
+
"fill",
|
|
29
|
+
"stroke"
|
|
30
|
+
], Je = ["d", "fill"], Ye = ["id", "d"], Xe = [
|
|
31
|
+
"fill",
|
|
32
|
+
"font-size",
|
|
33
|
+
"font-weight"
|
|
34
|
+
], Ze = ["href", "startOffset"], Qe = [
|
|
35
|
+
"text-anchor",
|
|
36
|
+
"fill",
|
|
37
|
+
"font-size",
|
|
38
|
+
"font-weight",
|
|
39
|
+
"innerHTML"
|
|
40
|
+
], $e = ["d", "filter"], et = ["stroke", "stroke-width"], tt = ["stroke", "stroke-width"], nt = ["stroke", "stroke-width"], rt = ["stroke", "stroke-width"], it = { key: 8 }, at = [
|
|
41
|
+
"x",
|
|
42
|
+
"y",
|
|
43
|
+
"text-anchor",
|
|
44
|
+
"font-size",
|
|
45
|
+
"font-weight",
|
|
46
|
+
"fill"
|
|
47
|
+
], ot = [
|
|
48
|
+
"x",
|
|
49
|
+
"y",
|
|
50
|
+
"font-size",
|
|
51
|
+
"font-weight",
|
|
52
|
+
"fill"
|
|
53
|
+
], st = { key: 0 }, ct = [
|
|
54
|
+
"x1",
|
|
55
|
+
"y1",
|
|
56
|
+
"x2",
|
|
57
|
+
"y2",
|
|
58
|
+
"stroke",
|
|
59
|
+
"stroke-width"
|
|
60
|
+
], lt = [
|
|
61
|
+
"x1",
|
|
62
|
+
"y1",
|
|
63
|
+
"x2",
|
|
64
|
+
"y2",
|
|
65
|
+
"stroke",
|
|
66
|
+
"stroke-width"
|
|
67
|
+
], ut = [
|
|
68
|
+
"x1",
|
|
69
|
+
"y1",
|
|
70
|
+
"x2",
|
|
71
|
+
"y2",
|
|
72
|
+
"stroke-width",
|
|
73
|
+
"filter"
|
|
74
|
+
], dt = { key: 1 }, ft = [
|
|
75
|
+
"d",
|
|
76
|
+
"fill",
|
|
77
|
+
"stroke",
|
|
78
|
+
"stroke-width"
|
|
79
|
+
], pt = [
|
|
80
|
+
"cx",
|
|
81
|
+
"cy",
|
|
82
|
+
"fill",
|
|
83
|
+
"r",
|
|
84
|
+
"stroke-width",
|
|
85
|
+
"stroke"
|
|
86
|
+
], mt = [
|
|
87
|
+
"x",
|
|
88
|
+
"y",
|
|
89
|
+
"font-size",
|
|
90
|
+
"fill"
|
|
91
|
+
], ht = {
|
|
92
|
+
key: 4,
|
|
93
|
+
class: "vue-data-ui-watermark"
|
|
94
|
+
}, gt = /*#__PURE__*/ be({
|
|
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: be, emit: Re }) {
|
|
112
|
+
let gt = _(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), _t = _(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), vt = _(() => import("./PackageVersion-CT8FfP7h.js").then((e) => e.t)), { vue_ui_gauge: yt } = de(), { isThemeValid: bt, warnInvalidTheme: xt } = ge(), St = Ee(), k = e, Ct = Re, wt = f(() => !!k.dataset && Object.keys(k.dataset).length > 0 && k.dataset.series && k.dataset.series.length), A = S(se()), Tt = S(null), Et = S(0), j = S(null), Dt = S(null), Ot = S(null), kt = S(null), At = S(null), jt = S(0), M = S(Rt());
|
|
113
|
+
ue({
|
|
114
|
+
config: () => M.value,
|
|
115
|
+
dataset: () => k.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 Mt = f(() => M.value.userOptions.useCursorPointer), Nt = f(() => ne({
|
|
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: M.value.skeletonConfig ?? {}
|
|
150
|
+
})), { loading: Pt, FINAL_DATASET: N, manualLoading: P } = pe({
|
|
151
|
+
...Le(k),
|
|
152
|
+
FINAL_CONFIG: M,
|
|
153
|
+
prepareConfig: Rt,
|
|
154
|
+
callback: () => {
|
|
155
|
+
Promise.resolve().then(async () => {
|
|
156
|
+
await je();
|
|
157
|
+
});
|
|
158
|
+
},
|
|
159
|
+
skeletonDataset: k.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: ne({
|
|
174
|
+
defaultConfig: M.value,
|
|
175
|
+
userConfig: Nt.value
|
|
176
|
+
})
|
|
177
|
+
}), { userOptionsVisible: Ft, setUserOptionsVisibility: It, keepUserOptionState: Lt } = we({ config: M.value }), { svgRef: F } = Te({ config: M.value.style.chart.title });
|
|
178
|
+
D(() => k.config, (e) => {
|
|
179
|
+
Pt.value || (M.value = Rt()), Ft.value = !M.value.userOptions.showOnChartHover, Yt(), jt.value += 1;
|
|
180
|
+
}, { deep: !0 }), D(() => k.dataset, (e) => {
|
|
181
|
+
Yt(), e && Object.keys(e).length > 0 && (P.value = M.value?.loading ?? !1);
|
|
182
|
+
}, {
|
|
183
|
+
deep: !0,
|
|
184
|
+
immediate: !1
|
|
185
|
+
});
|
|
186
|
+
function Rt() {
|
|
187
|
+
let e = he({
|
|
188
|
+
userConfig: k.config,
|
|
189
|
+
defaultConfig: yt
|
|
190
|
+
}), t = e.theme;
|
|
191
|
+
if (!t) return e;
|
|
192
|
+
if (!bt.value(e)) return xt(e), e;
|
|
193
|
+
let n = he({
|
|
194
|
+
userConfig: Oe[t] || k.config,
|
|
195
|
+
defaultConfig: e
|
|
196
|
+
}), a = he({
|
|
197
|
+
userConfig: k.config,
|
|
198
|
+
defaultConfig: n
|
|
199
|
+
});
|
|
200
|
+
return {
|
|
201
|
+
...a,
|
|
202
|
+
customPalette: a.customPalette.length ? a.customPalette : i[t] || r
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
let { isPrinting: zt, isImaging: Bt, generatePdf: Vt, generateImage: Ht } = fe({
|
|
206
|
+
elementId: `vue-ui-gauge_${A.value}`,
|
|
207
|
+
fileName: M.value.style.chart.title.text || "vue-ui-gauge",
|
|
208
|
+
options: M.value.userOptions.print
|
|
209
|
+
}), Ut = f(() => M.value.userOptions.show && !M.value.style.chart.title.text), Wt = f(() => le(M.value.customPalette)), I = f(() => {
|
|
210
|
+
if (a(N.value.series || {})) return {
|
|
211
|
+
value: 0,
|
|
212
|
+
series: [{
|
|
213
|
+
from: 0,
|
|
214
|
+
to: 0
|
|
215
|
+
}]
|
|
216
|
+
};
|
|
217
|
+
let e = [];
|
|
218
|
+
(N.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
|
+
...N.value,
|
|
224
|
+
series: (N.value.series || []).map((e, n) => ({
|
|
225
|
+
...e,
|
|
226
|
+
color: te(e.color) || Wt.value[n] || r[n],
|
|
227
|
+
value: ((e.to || 0) - (e.from || 0)) / t * 100
|
|
228
|
+
}))
|
|
229
|
+
};
|
|
230
|
+
}), L = S(512), R = S({
|
|
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: M.value.style.chart.legend.fontSize,
|
|
239
|
+
pointerRadius: M.value.style.chart.layout.pointer.circle.radius,
|
|
240
|
+
trackSize: M.value.style.chart.layout.track.size,
|
|
241
|
+
pointerSize: M.value.style.chart.layout.pointer.size,
|
|
242
|
+
pointerStrokeWidth: M.value.style.chart.layout.pointer.strokeWidth,
|
|
243
|
+
markerOffset: M.value.style.chart.layout.markers.offsetY + 3,
|
|
244
|
+
segmentFontSize: M.value.style.chart.layout.segmentNames.fontSize
|
|
245
|
+
}), z = S(0), B = S(0), V = f(() => M.value.style.chart.animation.use && !St.value), H = S(V.value ? Math.min(...N.value.series.map((e) => e.from)) : N.value.value), U = null;
|
|
246
|
+
function Gt() {
|
|
247
|
+
U !== null && (cancelAnimationFrame(U), U = null);
|
|
248
|
+
}
|
|
249
|
+
D(V, (e) => {
|
|
250
|
+
e || (Gt(), H.value = N.value.value);
|
|
251
|
+
}), D(() => N.value.value, () => {
|
|
252
|
+
Xt(N.value.value);
|
|
253
|
+
});
|
|
254
|
+
let W = f(() => {
|
|
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 = f(() => {
|
|
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 = f(() => {
|
|
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 = Ie(null), K = Ie(null), q = f({
|
|
272
|
+
get: () => R.value.segmentFontSize,
|
|
273
|
+
set: (e) => e
|
|
274
|
+
}), { autoSizeLabels: Jt } = De({
|
|
275
|
+
svgRef: F,
|
|
276
|
+
fontSize: R.value.segmentFontSize,
|
|
277
|
+
minFontSize: M.value.style.chart.layout.segmentNames.minFontSize,
|
|
278
|
+
sizeRef: q,
|
|
279
|
+
labelClass: ".vue-ui-gauge-label-flat"
|
|
280
|
+
}), J = f(() => M.value.debug);
|
|
281
|
+
function Yt() {
|
|
282
|
+
let e = !1;
|
|
283
|
+
if (a(k.dataset) ? (u({
|
|
284
|
+
componentName: "VueUiGauge",
|
|
285
|
+
type: "dataset",
|
|
286
|
+
debug: J.value
|
|
287
|
+
}), P.value = !0, e = !0) : (oe({
|
|
288
|
+
datasetObject: k.dataset,
|
|
289
|
+
requiredAttributes: ["value", "series"]
|
|
290
|
+
}).forEach((t) => {
|
|
291
|
+
u({
|
|
292
|
+
componentName: "VueUiGauge",
|
|
293
|
+
type: "datasetAttribute",
|
|
294
|
+
property: t,
|
|
295
|
+
debug: J.value
|
|
296
|
+
}), P.value = !0, e = !0;
|
|
297
|
+
}), Object.hasOwn(k.dataset, "series") && (k.dataset.series.length ? k.dataset.series.forEach((t, n) => {
|
|
298
|
+
oe({
|
|
299
|
+
datasetObject: t,
|
|
300
|
+
requiredAttributes: ["from", "to"]
|
|
301
|
+
}).forEach((t) => {
|
|
302
|
+
u({
|
|
303
|
+
componentName: "VueUiGauge",
|
|
304
|
+
type: "datasetSerieAttribute",
|
|
305
|
+
property: t,
|
|
306
|
+
index: n,
|
|
307
|
+
debug: J.value
|
|
308
|
+
}), P.value = !0, e = !0;
|
|
309
|
+
});
|
|
310
|
+
}) : (u({
|
|
311
|
+
componentName: "VueUiGauge",
|
|
312
|
+
type: "datasetAttributeEmpty",
|
|
313
|
+
property: "series",
|
|
314
|
+
debug: J.value
|
|
315
|
+
}), P.value = !0, e = !0))), P.value = e, Xt(N.value.value || 0), M.value.responsive) {
|
|
316
|
+
let e = xe(() => {
|
|
317
|
+
let { width: e, height: t } = Se({
|
|
318
|
+
chart: j.value,
|
|
319
|
+
title: M.value.style.chart.title.text ? Dt.value : null,
|
|
320
|
+
legend: Ot.value,
|
|
321
|
+
source: kt.value,
|
|
322
|
+
noTitle: At.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 = M.value.style.chart.legend.fontSize / L.value * Math.min(t, e) < 14 ? 14 : M.value.style.chart.legend.fontSize / L.value * Math.min(t, e), R.value.pointerRadius = M.value.style.chart.layout.pointer.circle.radius / L.value * Math.min(t, e), R.value.trackSize = M.value.style.chart.layout.track.size / L.value * Math.min(t, e), R.value.pointerStrokeWidth = c({
|
|
326
|
+
relator: Math.min(e, t),
|
|
327
|
+
adjuster: L.value,
|
|
328
|
+
source: M.value.style.chart.layout.pointer.strokeWidth,
|
|
329
|
+
threshold: 2,
|
|
330
|
+
fallback: 2
|
|
331
|
+
}), R.value.markerOffset = c({
|
|
332
|
+
relator: Math.max(e, t),
|
|
333
|
+
adjuster: L.value,
|
|
334
|
+
source: M.value.style.chart.layout.markers.offsetY + 3,
|
|
335
|
+
threshold: 2,
|
|
336
|
+
fallback: 2
|
|
337
|
+
}), R.value.segmentFontSize = c({
|
|
338
|
+
relator: Math.min(e, t),
|
|
339
|
+
adjuster: L.value,
|
|
340
|
+
source: M.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 = j.value.parentNode, G.value.observe(K.value);
|
|
347
|
+
}
|
|
348
|
+
Jt();
|
|
349
|
+
}
|
|
350
|
+
Fe(() => {
|
|
351
|
+
Yt();
|
|
352
|
+
}), Pe(() => {
|
|
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 = M.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 = f(() => {
|
|
374
|
+
let e = M.value.responsive ? Math.min(R.value.width, R.value.height) : R.value.width, t = 2.5 / M.value.style.chart.layout.radiusRatio;
|
|
375
|
+
return {
|
|
376
|
+
arcs: e / t,
|
|
377
|
+
gradients: e / (t * 1.1),
|
|
378
|
+
base: M.value.responsive ? R.value.height / 1.618 : R.value.height * .7,
|
|
379
|
+
ratingBase: M.value.responsive ? R.value.height / 2 + R.value.height / 4 : R.value.height * .9,
|
|
380
|
+
pointerSize: M.value.responsive ? Math.min(R.value.width, R.value.height) / 3 : R.value.width / 3.2
|
|
381
|
+
};
|
|
382
|
+
}), X = f(() => ae({ 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 = f(() => ae({ series: I.value.series }, R.value.width / 2, Y.value.base, Y.value.arcs * M.value.style.chart.layout.segmentNames.offsetRatio, Y.value.arcs * M.value.style.chart.layout.segmentNames.offsetRatio, 1, 1, 1, 180, 109.9495, 40 * R.value.trackSize)), Z = f(() => X.value.map((e) => Y.value.arcs * M.value.style.chart.layout.segmentNames.offsetRatio * (e.nameOffsetRatio || 1))), Qt = f(() => {
|
|
383
|
+
let { x: e, y: t } = o({
|
|
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: -M.value.style.chart.layout.segmentSeparators.offsetIn
|
|
389
|
+
}), { x: n, y: r } = o({
|
|
390
|
+
initX: X.value[0].startX,
|
|
391
|
+
initY: X.value[0].startY,
|
|
392
|
+
centerX: W.value.x1,
|
|
393
|
+
centerY: W.value.y1,
|
|
394
|
+
offset: M.value.style.chart.layout.segmentSeparators.offsetOut
|
|
395
|
+
});
|
|
396
|
+
return {
|
|
397
|
+
x1: e,
|
|
398
|
+
y1: t,
|
|
399
|
+
x2: n,
|
|
400
|
+
y2: r
|
|
401
|
+
};
|
|
402
|
+
}), $t = f(() => X.value.map((e) => {
|
|
403
|
+
let { x: t, y: n } = o({
|
|
404
|
+
initX: e.separator.x,
|
|
405
|
+
initY: e.separator.y,
|
|
406
|
+
centerX: W.value.x1,
|
|
407
|
+
centerY: W.value.y1,
|
|
408
|
+
offset: -M.value.style.chart.layout.segmentSeparators.offsetIn
|
|
409
|
+
}), { x: r, y: i } = o({
|
|
410
|
+
initX: e.endX,
|
|
411
|
+
initY: e.endY,
|
|
412
|
+
centerX: W.value.x1,
|
|
413
|
+
centerY: W.value.y1,
|
|
414
|
+
offset: M.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 = f(() => en(X.value.map((e) => e.proportion * 100))), nn = f(() => ae({ 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 = f(() => {
|
|
429
|
+
let e = B.value >= 0 ? -B.value : Math.abs(B.value);
|
|
430
|
+
return ee({
|
|
431
|
+
radius: M.value.style.chart.layout.indicatorArc.radius * R.value.trackSize,
|
|
432
|
+
centerX: R.value.width / 2,
|
|
433
|
+
centerY: Y.value.base,
|
|
434
|
+
percentage: re((H.value + e) / (z.value + e))
|
|
435
|
+
});
|
|
436
|
+
}), Q = S(!1);
|
|
437
|
+
function an(e) {
|
|
438
|
+
Q.value = e, Et.value += 1;
|
|
439
|
+
}
|
|
440
|
+
let $ = S(!1);
|
|
441
|
+
function on() {
|
|
442
|
+
$.value = !$.value;
|
|
443
|
+
}
|
|
444
|
+
async function sn({ scale: e = 2 } = {}) {
|
|
445
|
+
if (!j.value) return;
|
|
446
|
+
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
|
|
447
|
+
domElement: j.value,
|
|
448
|
+
base64: !0,
|
|
449
|
+
img: !0,
|
|
450
|
+
scale: e
|
|
451
|
+
});
|
|
452
|
+
return {
|
|
453
|
+
imageUri: i,
|
|
454
|
+
base64: a,
|
|
455
|
+
title: M.value.style.chart.title.text,
|
|
456
|
+
width: t,
|
|
457
|
+
height: n,
|
|
458
|
+
aspectRatio: r
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
let cn = f(() => M.value.style.chart.backgroundColor), ln = f(() => M.value.style.chart.title), { isCallbackImaging: un, isCallbackSvg: dn, generateSvg: fn, onGenerateImage: pn } = _e({
|
|
462
|
+
svg: F,
|
|
463
|
+
title: ln,
|
|
464
|
+
legend: null,
|
|
465
|
+
legendItems: null,
|
|
466
|
+
backgroundColor: cn,
|
|
467
|
+
getSvgCallback: () => M.value.userOptions.callbacks.svg,
|
|
468
|
+
generateImage: Ht
|
|
469
|
+
});
|
|
470
|
+
async function mn() {
|
|
471
|
+
if (Ct("copyAlt", {
|
|
472
|
+
config: M.value,
|
|
473
|
+
dataset: I.value
|
|
474
|
+
}), !M.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(M.value.userOptions.callbacks.altCopy({
|
|
479
|
+
config: M.value,
|
|
480
|
+
dataset: I.value
|
|
481
|
+
}));
|
|
482
|
+
}
|
|
483
|
+
return be({
|
|
484
|
+
getImage: sn,
|
|
485
|
+
generatePdf: Vt,
|
|
486
|
+
generateImage: Ht,
|
|
487
|
+
generateSvg: fn,
|
|
488
|
+
toggleAnnotator: on,
|
|
489
|
+
toggleFullscreen: an,
|
|
490
|
+
copyAlt: mn
|
|
491
|
+
}), (e, r) => (x(), h("div", {
|
|
492
|
+
class: Me(`vue-data-ui-component vue-ui-gauge ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
493
|
+
ref_key: "gaugeChart",
|
|
494
|
+
ref: j,
|
|
495
|
+
id: `vue-ui-gauge_${A.value}`,
|
|
496
|
+
style: Ne(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor};${M.value.responsive ? "height: 100%" : ""}`),
|
|
497
|
+
onMouseenter: r[0] ||= () => E(It)(!0),
|
|
498
|
+
onMouseleave: r[1] ||= () => E(It)(!1)
|
|
499
|
+
}, [
|
|
500
|
+
M.value.userOptions.buttons.annotator ? (x(), p(E(gt), {
|
|
501
|
+
key: 0,
|
|
502
|
+
svgRef: E(F),
|
|
503
|
+
backgroundColor: M.value.style.chart.backgroundColor,
|
|
504
|
+
color: M.value.style.chart.color,
|
|
505
|
+
active: $.value,
|
|
506
|
+
isCursorPointer: Mt.value,
|
|
507
|
+
onClose: on
|
|
508
|
+
}, {
|
|
509
|
+
"annotator-action-close": O(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
510
|
+
"annotator-action-color": O(({ color: t }) => [w(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
511
|
+
"annotator-action-draw": O(({ mode: t }) => [w(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
|
|
512
|
+
"annotator-action-undo": O(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
|
|
513
|
+
"annotator-action-redo": O(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
|
|
514
|
+
"annotator-action-delete": O(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
|
|
515
|
+
_: 3
|
|
516
|
+
}, 8, [
|
|
517
|
+
"svgRef",
|
|
518
|
+
"backgroundColor",
|
|
519
|
+
"color",
|
|
520
|
+
"active",
|
|
521
|
+
"isCursorPointer"
|
|
522
|
+
])) : m("", !0),
|
|
523
|
+
Ut.value ? (x(), h("div", {
|
|
524
|
+
key: 1,
|
|
525
|
+
ref_key: "noTitle",
|
|
526
|
+
ref: At,
|
|
527
|
+
class: "vue-data-ui-no-title-space",
|
|
528
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
529
|
+
}, null, 512)) : m("", !0),
|
|
530
|
+
M.value.style.chart.title.text ? (x(), h("div", {
|
|
531
|
+
key: 2,
|
|
532
|
+
ref_key: "chartTitle",
|
|
533
|
+
ref: Dt,
|
|
534
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
535
|
+
}, [(x(), p(ye, {
|
|
536
|
+
key: `title_${jt.value}`,
|
|
537
|
+
config: {
|
|
538
|
+
title: {
|
|
539
|
+
cy: "gauge-div-title",
|
|
540
|
+
...M.value.style.chart.title
|
|
541
|
+
},
|
|
542
|
+
subtitle: {
|
|
543
|
+
cy: "gauge-div-subtitle",
|
|
544
|
+
...M.value.style.chart.title.subtitle
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}, {
|
|
548
|
+
default: O(() => [M.value.translations.base && E(N).base ? (x(), h("span", Be, T(M.value.translations.base) + ": " + T(E(N).base), 1)) : m("", !0)]),
|
|
549
|
+
_: 1
|
|
550
|
+
}, 8, ["config"]))], 512)) : m("", !0),
|
|
551
|
+
M.value.userOptions.show && wt.value && (E(Lt) || E(Ft)) ? (x(), p(E(_t), {
|
|
552
|
+
ref_key: "details",
|
|
553
|
+
ref: Tt,
|
|
554
|
+
key: `user_options_${Et.value}`,
|
|
555
|
+
backgroundColor: M.value.style.chart.backgroundColor,
|
|
556
|
+
color: M.value.style.chart.color,
|
|
557
|
+
isImaging: E(Bt),
|
|
558
|
+
isPrinting: E(zt),
|
|
559
|
+
uid: A.value,
|
|
560
|
+
hasXls: !1,
|
|
561
|
+
hasPdf: M.value.userOptions.buttons.pdf,
|
|
562
|
+
hasImg: M.value.userOptions.buttons.img,
|
|
563
|
+
hasSvg: M.value.userOptions.buttons.svg,
|
|
564
|
+
hasFullscreen: M.value.userOptions.buttons.fullscreen,
|
|
565
|
+
hasAltCopy: M.value.userOptions.buttons.altCopy,
|
|
566
|
+
isFullscreen: Q.value,
|
|
567
|
+
titles: { ...M.value.userOptions.buttonTitles },
|
|
568
|
+
chartElement: j.value,
|
|
569
|
+
callbacks: M.value.userOptions.callbacks,
|
|
570
|
+
printScale: M.value.userOptions.print.scale,
|
|
571
|
+
position: M.value.userOptions.position,
|
|
572
|
+
hasAnnotator: M.value.userOptions.buttons.annotator,
|
|
573
|
+
isAnnotation: $.value,
|
|
574
|
+
isCursorPointer: Mt.value,
|
|
575
|
+
onToggleFullscreen: an,
|
|
576
|
+
onGeneratePdf: E(Vt),
|
|
577
|
+
onGenerateImage: E(pn),
|
|
578
|
+
onGenerateSvg: E(fn),
|
|
579
|
+
onToggleAnnotator: on,
|
|
580
|
+
onCopyAlt: mn,
|
|
581
|
+
style: Ne({ visibility: E(Lt) ? E(Ft) ? "visible" : "hidden" : "visible" })
|
|
582
|
+
}, ke({ _: 2 }, [
|
|
583
|
+
e.$slots.menuIcon ? {
|
|
584
|
+
name: "menuIcon",
|
|
585
|
+
fn: O(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(v({
|
|
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: O(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
594
|
+
key: "1"
|
|
595
|
+
} : void 0,
|
|
596
|
+
e.$slots.optionImg ? {
|
|
597
|
+
name: "optionImg",
|
|
598
|
+
fn: O(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
599
|
+
key: "2"
|
|
600
|
+
} : void 0,
|
|
601
|
+
e.$slots.optionSvg ? {
|
|
602
|
+
name: "optionSvg",
|
|
603
|
+
fn: O(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
604
|
+
key: "3"
|
|
605
|
+
} : void 0,
|
|
606
|
+
e.$slots.optionFullscreen ? {
|
|
607
|
+
name: "optionFullscreen",
|
|
608
|
+
fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", b(v({
|
|
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: O(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", b(v({
|
|
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: O(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
|
|
625
|
+
key: "6"
|
|
626
|
+
} : void 0,
|
|
627
|
+
e.$slots["custom-menu-before"] ? {
|
|
628
|
+
name: "custom-menu-before",
|
|
629
|
+
fn: O(() => [w(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: O(() => [w(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
|
+
])) : m("", !0),
|
|
662
|
+
(x(), h("svg", {
|
|
663
|
+
ref_key: "svgRef",
|
|
664
|
+
ref: F,
|
|
665
|
+
xmlns: E(ce),
|
|
666
|
+
class: Me({
|
|
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: Ne(`max-width:100%;overflow:hidden !important;background:transparent;color:${M.value.style.chart.color}`)
|
|
672
|
+
}, [
|
|
673
|
+
Ae(E(vt)),
|
|
674
|
+
e.$slots["chart-background"] ? (x(), h("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
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, He)) : m("", !0),
|
|
682
|
+
g("defs", null, [Ae(Ce, {
|
|
683
|
+
t: "radial",
|
|
684
|
+
id: `gradient_${A.value}`,
|
|
685
|
+
cx: "50%",
|
|
686
|
+
cy: "50%",
|
|
687
|
+
r: "50%",
|
|
688
|
+
fx: "50%",
|
|
689
|
+
fy: "50%",
|
|
690
|
+
stops: [
|
|
691
|
+
[
|
|
692
|
+
"0%",
|
|
693
|
+
E(n)("#FFFFFF", 1),
|
|
694
|
+
1
|
|
695
|
+
],
|
|
696
|
+
[
|
|
697
|
+
"80%",
|
|
698
|
+
E(n)("#FFFFFF", M.value.style.chart.layout.track.gradientIntensity),
|
|
699
|
+
1
|
|
700
|
+
],
|
|
701
|
+
[
|
|
702
|
+
"100%",
|
|
703
|
+
E(n)("#FFFFFF", 1),
|
|
704
|
+
1
|
|
705
|
+
]
|
|
706
|
+
]
|
|
707
|
+
}, null, 8, ["id", "stops"])]),
|
|
708
|
+
g("defs", null, [g("filter", {
|
|
709
|
+
id: `blur_${A.value}`,
|
|
710
|
+
x: "-50%",
|
|
711
|
+
y: "-50%",
|
|
712
|
+
width: "200%",
|
|
713
|
+
height: "200%"
|
|
714
|
+
}, [g("feGaussianBlur", {
|
|
715
|
+
in: "SourceGraphic",
|
|
716
|
+
stdDeviation: 100 / M.value.style.chart.layout.track.gradientIntensity
|
|
717
|
+
}, null, 8, We)], 8, Ue)]),
|
|
718
|
+
e.$slots.pattern ? (x(), h("g", Ge, [(x(!0), h(d, null, C(X.value, (t, n) => (x(), h("defs", null, [w(e.$slots, "pattern", y({ ref_for: !0 }, {
|
|
719
|
+
seriesIndex: n,
|
|
720
|
+
patternId: `pattern_${A.value}_${n}`
|
|
721
|
+
}), void 0, !0)]))), 256))])) : m("", !0),
|
|
722
|
+
(x(!0), h(d, null, C(X.value, (e, t) => (x(), h("path", {
|
|
723
|
+
key: `arc_${t}`,
|
|
724
|
+
d: e.arcSlice,
|
|
725
|
+
fill: e.color,
|
|
726
|
+
stroke: M.value.style.chart.backgroundColor,
|
|
727
|
+
"stroke-linecap": "round"
|
|
728
|
+
}, null, 8, Ke))), 128)),
|
|
729
|
+
e.$slots.pattern ? (x(!0), h(d, { key: 2 }, C(X.value, (e, t) => (x(), h("path", {
|
|
730
|
+
key: `arc_${t}`,
|
|
731
|
+
d: e.arcSlice,
|
|
732
|
+
fill: `url(#pattern_${A.value}_${t})`,
|
|
733
|
+
stroke: M.value.style.chart.backgroundColor,
|
|
734
|
+
"stroke-linecap": "round"
|
|
735
|
+
}, null, 8, qe))), 128)) : m("", !0),
|
|
736
|
+
M.value.style.chart.layout.indicatorArc.show ? (x(), h("path", {
|
|
737
|
+
key: 3,
|
|
738
|
+
d: rn.value,
|
|
739
|
+
fill: M.value.style.chart.layout.indicatorArc.fill
|
|
740
|
+
}, null, 8, Je)) : m("", !0),
|
|
741
|
+
M.value.style.chart.layout.segmentNames.show && M.value.style.chart.layout.segmentNames.curved ? (x(), h(d, { key: 4 }, [(x(!0), h(d, null, C(X.value, (e, t) => (x(), h("path", {
|
|
742
|
+
id: `curve_${A.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, Ye))), 256)), (x(!0), h(d, null, C(X.value, (e, t) => (x(), h("text", {
|
|
746
|
+
fill: M.value.style.chart.layout.segmentNames.useSerieColor ? e.color : M.value.style.chart.layout.segmentNames.color,
|
|
747
|
+
"font-size": q.value,
|
|
748
|
+
"font-weight": M.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
749
|
+
"text-anchor": "middle"
|
|
750
|
+
}, [g("textPath", {
|
|
751
|
+
href: `#curve_${A.value}_${t}`,
|
|
752
|
+
startOffset: tn.value[t]
|
|
753
|
+
}, T(e.name || ""), 9, Ze)], 8, Xe))), 256))], 64)) : m("", !0),
|
|
754
|
+
M.value.style.chart.layout.segmentNames.show && !M.value.style.chart.layout.segmentNames.curved ? (x(!0), h(d, { key: 5 }, C(Zt.value, (e, n) => (x(), h("text", {
|
|
755
|
+
class: "vue-ui-gauge-label-flat",
|
|
756
|
+
"text-anchor": E(ie)(e, !1, 12).anchor,
|
|
757
|
+
fill: M.value.style.chart.layout.segmentNames.useSerieColor ? e.color : M.value.style.chart.layout.segmentNames.color,
|
|
758
|
+
"font-size": q.value,
|
|
759
|
+
"font-weight": M.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
760
|
+
innerHTML: E(t)({
|
|
761
|
+
content: String(e.name ?? ""),
|
|
762
|
+
fontSize: q.value,
|
|
763
|
+
fill: M.value.style.chart.layout.segmentNames.useSerieColor ? e.color : M.value.style.chart.layout.segmentNames.color,
|
|
764
|
+
x: e.center.endX,
|
|
765
|
+
y: e.center.endY
|
|
766
|
+
})
|
|
767
|
+
}, null, 8, Qe))), 256)) : m("", !0),
|
|
768
|
+
M.value.style.chart.layout.track.useGradient ? (x(!0), h(d, { key: 6 }, C(nn.value, (e, t) => (x(), h("path", {
|
|
769
|
+
key: `arc_${t}`,
|
|
770
|
+
d: e.arcSlice,
|
|
771
|
+
fill: "#FFFFFF",
|
|
772
|
+
stroke: "none",
|
|
773
|
+
"stroke-linecap": "round",
|
|
774
|
+
filter: `url(#blur_${A.value})`
|
|
775
|
+
}, null, 8, $e))), 128)) : m("", !0),
|
|
776
|
+
M.value.style.chart.layout.segmentSeparators.show ? (x(), h(d, { key: 7 }, [
|
|
777
|
+
g("line", y(Qt.value, {
|
|
778
|
+
stroke: M.value.style.chart.backgroundColor,
|
|
779
|
+
"stroke-width": M.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
780
|
+
"stroke-linecap": "round"
|
|
781
|
+
}), null, 16, et),
|
|
782
|
+
g("line", y(Qt.value, {
|
|
783
|
+
stroke: M.value.style.chart.layout.segmentSeparators.stroke,
|
|
784
|
+
"stroke-width": M.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
785
|
+
"stroke-linecap": "round"
|
|
786
|
+
}), null, 16, tt),
|
|
787
|
+
(x(!0), h(d, null, C($t.value, (e) => (x(), h("line", y({ ref_for: !0 }, e, {
|
|
788
|
+
stroke: M.value.style.chart.backgroundColor,
|
|
789
|
+
"stroke-width": M.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
790
|
+
"stroke-linecap": "round"
|
|
791
|
+
}), null, 16, nt))), 256)),
|
|
792
|
+
(x(!0), h(d, null, C($t.value, (e) => (x(), h("line", y({ ref_for: !0 }, e, {
|
|
793
|
+
stroke: M.value.style.chart.layout.segmentSeparators.stroke,
|
|
794
|
+
"stroke-width": M.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
795
|
+
"stroke-linecap": "round"
|
|
796
|
+
}), null, 16, rt))), 256))
|
|
797
|
+
], 64)) : m("", !0),
|
|
798
|
+
M.value.style.chart.layout.markers.show ? (x(), h("g", it, [(x(!0), h(d, null, C(X.value, (e, t) => (x(), h("text", {
|
|
799
|
+
x: E(o)({
|
|
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: E(o)({
|
|
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 * M.value.style.chart.layout.markers.fontSizeRatio,
|
|
815
|
+
"font-weight": `${M.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
816
|
+
fill: M.value.style.chart.layout.markers.color
|
|
817
|
+
}, T(E(l)(M.value.style.chart.layout.markers.formatter, e.from, E(s)({
|
|
818
|
+
p: M.value.style.chart.layout.markers.prefix,
|
|
819
|
+
v: e.from,
|
|
820
|
+
s: M.value.style.chart.layout.markers.suffix,
|
|
821
|
+
r: M.value.style.chart.layout.markers.roundingValue
|
|
822
|
+
}))), 9, at))), 256))])) : m("", !0),
|
|
823
|
+
M.value.style.chart.layout.markers.show ? (x(), h("text", {
|
|
824
|
+
key: 9,
|
|
825
|
+
x: E(o)({
|
|
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: E(o)({
|
|
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 * M.value.style.chart.layout.markers.fontSizeRatio,
|
|
841
|
+
"font-weight": `${M.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
842
|
+
fill: M.value.style.chart.layout.markers.color
|
|
843
|
+
}, T(E(l)(M.value.style.chart.layout.markers.formatter, z.value, E(s)({
|
|
844
|
+
p: M.value.style.chart.layout.markers.prefix,
|
|
845
|
+
v: z.value,
|
|
846
|
+
s: M.value.style.chart.layout.markers.suffix,
|
|
847
|
+
r: M.value.style.chart.layout.markers.roundingValue
|
|
848
|
+
}))), 9, ot)) : m("", !0),
|
|
849
|
+
M.value.style.chart.layout.pointer.show ? (x(), h(d, { key: 10 }, [M.value.style.chart.layout.pointer.type === "rounded" ? (x(), h("g", st, [
|
|
850
|
+
isNaN(W.value.x2) ? m("", !0) : (x(), h("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: M.value.style.chart.layout.pointer.stroke,
|
|
857
|
+
"stroke-width": R.value.pointerStrokeWidth,
|
|
858
|
+
"stroke-linecap": "round"
|
|
859
|
+
}, null, 8, ct)),
|
|
860
|
+
isNaN(W.value.x2) ? m("", !0) : (x(), h("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: M.value.style.chart.layout.pointer.useRatingColor ? qt.value : M.value.style.chart.layout.pointer.color,
|
|
867
|
+
"stroke-linecap": "round",
|
|
868
|
+
"stroke-width": R.value.pointerStrokeWidth * .7
|
|
869
|
+
}, null, 8, lt)),
|
|
870
|
+
!isNaN(W.value.x2) && M.value.style.chart.layout.track.useGradient ? (x(), h("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_${A.value})`
|
|
880
|
+
}, null, 8, ut)) : m("", !0)
|
|
881
|
+
])) : (x(), h("g", dt, [Kt.value ? (x(), h("path", {
|
|
882
|
+
key: 0,
|
|
883
|
+
d: Kt.value,
|
|
884
|
+
fill: M.value.style.chart.layout.pointer.useRatingColor ? qt.value : M.value.style.chart.layout.pointer.color,
|
|
885
|
+
stroke: M.value.style.chart.layout.pointer.stroke,
|
|
886
|
+
"stroke-width": M.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
887
|
+
"stroke-linejoin": "round"
|
|
888
|
+
}, null, 8, ft)) : m("", !0)])), g("circle", {
|
|
889
|
+
cx: R.value.width / 2,
|
|
890
|
+
cy: Y.value.base,
|
|
891
|
+
fill: M.value.style.chart.layout.pointer.circle.color,
|
|
892
|
+
r: R.value.pointerRadius <= 0 ? 1e-4 : R.value.pointerRadius,
|
|
893
|
+
"stroke-width": M.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
894
|
+
stroke: M.value.style.chart.layout.pointer.circle.stroke
|
|
895
|
+
}, null, 8, pt)], 64)) : m("", !0),
|
|
896
|
+
M.value.style.chart.legend.show ? (x(), h("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: M.value.style.chart.legend.useRatingColor ? qt.value : M.value.style.chart.legend.color
|
|
904
|
+
}, T(E(l)(M.value.style.chart.legend.formatter, H.value, E(s)({
|
|
905
|
+
p: M.value.style.chart.legend.prefix + (M.value.style.chart.legend.showPlusSymbol && H.value > 0 ? "+" : ""),
|
|
906
|
+
v: H.value,
|
|
907
|
+
s: M.value.style.chart.legend.suffix,
|
|
908
|
+
r: M.value.style.chart.legend.roundingValue
|
|
909
|
+
}))), 9, mt)) : m("", !0),
|
|
910
|
+
w(e.$slots, "svg", { svg: {
|
|
911
|
+
...R.value,
|
|
912
|
+
isPrintingImg: E(zt) || E(Bt) || E(un),
|
|
913
|
+
isPrintingSvg: E(dn)
|
|
914
|
+
} }, void 0, !0)
|
|
915
|
+
], 14, Ve)),
|
|
916
|
+
e.$slots.watermark ? (x(), h("div", ht, [w(e.$slots, "watermark", b(v({ isPrinting: E(zt) || E(Bt) || E(un) || E(dn) })), void 0, !0)])) : m("", !0),
|
|
917
|
+
g("div", {
|
|
918
|
+
ref_key: "chartLegend",
|
|
919
|
+
ref: Ot
|
|
920
|
+
}, [w(e.$slots, "legend", { legend: I.value }, void 0, !0)], 512),
|
|
921
|
+
e.$slots.source ? (x(), h("div", {
|
|
922
|
+
key: 5,
|
|
923
|
+
ref_key: "source",
|
|
924
|
+
ref: kt,
|
|
925
|
+
dir: "auto"
|
|
926
|
+
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
927
|
+
w(e.$slots, "skeleton", {}, () => [E(Pt) ? (x(), p(me, { key: 0 })) : m("", !0)], !0)
|
|
928
|
+
], 46, ze));
|
|
929
|
+
}
|
|
930
|
+
}, [["__scopeId", "data-v-27f19797"]]);
|
|
931
|
+
//#endregion
|
|
932
|
+
export { Re as n, gt as t };
|