vue-data-ui 3.23.1 → 3.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-D6d8SCp9.js → PackageVersion-DXU7nRr9.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-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/{package-KvlL5CqE.js → package-bsfpO6y3.js} +1 -1
- package/dist/{render-common-oDYGTc5P.js → render-common-C0PEe9so.js} +1 -1
- 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 +6 -0
- package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
- package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
- package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-BNxtW8pK.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-BYumVxZG.js} +164 -182
- package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-mKysp0KO.js} +213 -263
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/vue-ui-chestnut-Dpklo-VE.js +2014 -0
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-DIt7vOwc.js} +2 -2
- package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-Cl0WdSLb.js} +492 -515
- package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-BwxRLR4E.js} +65 -65
- package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-Bp1OH_t1.js} +2 -2
- package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-BZUT7QYt.js} +333 -359
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-y6tOAVyY.js} +2 -2
- package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-BtKZcAOV.js} +378 -428
- package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-BF_cndsv.js} +182 -207
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-ClWaSOmM.js} +308 -334
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-B1tOD3HC.js} +362 -413
- package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-foatosAv.js} +2 -2
- package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-By33A9dZ.js} +292 -315
- package/dist/vue-ui-hill-ewqkK9s5.js +1745 -0
- package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-FEIwXlsz.js} +258 -283
- package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-D51sAeVu.js} +273 -298
- package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-y3EkgqJQ.js} +2 -2
- package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-wBRTZI5k.js} +337 -386
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-B2Q2n55x.js} +257 -282
- package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +190 -215
- package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-DOPuejDE.js} +213 -243
- package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-CgHX9njq.js} +52 -61
- package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-BLvG-_zE.js} +343 -370
- package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-BbrnXvBo.js} +267 -317
- package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-B3cKfMWy.js} +407 -432
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DwKxd7fk.js} +2 -2
- package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
- package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-MpvrV5Wd.js} +2 -2
- package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-B-BYVv4p.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-D7D4NHdi.js} +7 -8
- package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-RbeYtLWp.js} +6 -7
- package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-ohN7mtbg.js} +191 -195
- package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-D2bpvQYt.js} +524 -549
- package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-Bo1oE8yq.js} +570 -595
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-3PPiJPV6.js} +3 -3
- package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
- package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-l1cUX3ny.js} +7 -9
- package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DWNdx47q.js} +2 -2
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-DjNlnOG5.js} +498 -524
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DrefGLos.js} +188 -209
- package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-CQZ8AyOi.js} +375 -398
- package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-Y7a3VEjq.js} +428 -453
- package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CJcdttNL.js} +857 -883
- package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DPxtkYGc.js} +2 -2
- package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
- package/package.json +1 -1
- package/dist/Slicer-CIk57nL4.js +0 -1163
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
- package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
- package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
- package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
- package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
- package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
- package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
- package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
- package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
- package/dist/vue-ui-gauge-ByE_txav.js +0 -953
- package/dist/vue-ui-hill-BT183G-_.js +0 -1768
- package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
- package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
- package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
- package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
- package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
|
@@ -1,559 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Jt as t, Vt as n, X as r, b as i, i as a, jt as o, q as s, t as c, tt as l } from "./lib-Bttd6u5E.js";
|
|
3
|
-
import { n as ee, t as te } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ne } from "./useConfig-D3scuR88.js";
|
|
5
|
-
import { t as re } from "./usePrinter-DN5bYhTG.js";
|
|
6
|
-
import { n as ie, t as ae } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as oe } from "./useSvgExport-DH-FfcqQ.js";
|
|
8
|
-
import { t as u } from "./useNestedProp-vPNvh7rV.js";
|
|
9
|
-
import { t as se } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
-
import { t as ce } from "./img-Bnokohej.js";
|
|
11
|
-
import { n as le } from "./Title-BE3qg9xl.js";
|
|
12
|
-
import { t as ue } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
-
import { l as de, t as fe } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
-
import { t as pe } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
-
import { t as me } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
-
import { t as he } from "./usePrefersMotion-BC-CsqR1.js";
|
|
17
|
-
import { t as ge } from "./vue_ui_tiremarks-CdEPieWV.js";
|
|
18
|
-
import { Fragment as _e, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as ve, createSlots as ye, createVNode as be, defineAsyncComponent as h, guardReactiveProps as g, nextTick as xe, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onMounted as Se, openBlock as b, ref as x, renderList as Ce, renderSlot as S, toDisplayString as we, toRefs as Te, unref as C, watch as Ee, withCtx as w } from "vue";
|
|
19
|
-
//#region src/components/vue-ui-tiremarks.vue
|
|
20
|
-
var De = /* @__PURE__ */ e({ default: () => T }), Oe = ["id"], ke = [
|
|
21
|
-
"xmlns",
|
|
22
|
-
"viewBox",
|
|
23
|
-
"aria-labelledby",
|
|
24
|
-
"aria-describedby"
|
|
25
|
-
], Ae = ["id"], je = ["id"], Me = ["width", "height"], Ne = { key: 1 }, Pe = [
|
|
26
|
-
"d",
|
|
27
|
-
"stroke-width",
|
|
28
|
-
"stroke"
|
|
29
|
-
], Fe = { key: 2 }, Ie = [
|
|
30
|
-
"x1",
|
|
31
|
-
"y1",
|
|
32
|
-
"x2",
|
|
33
|
-
"y2",
|
|
34
|
-
"stroke-width",
|
|
35
|
-
"stroke"
|
|
36
|
-
], Le = ["aria-label"], Re = [
|
|
37
|
-
"x",
|
|
38
|
-
"y",
|
|
39
|
-
"height"
|
|
40
|
-
], ze = [
|
|
41
|
-
"x",
|
|
42
|
-
"y",
|
|
43
|
-
"font-size",
|
|
44
|
-
"fill",
|
|
45
|
-
"font-weight",
|
|
46
|
-
"text-anchor"
|
|
47
|
-
], Be = {
|
|
48
|
-
key: 4,
|
|
49
|
-
class: "vue-data-ui-watermark"
|
|
50
|
-
}, T = /*#__PURE__*/ ue({
|
|
51
|
-
__name: "vue-ui-tiremarks",
|
|
52
|
-
props: {
|
|
53
|
-
config: {
|
|
54
|
-
type: Object,
|
|
55
|
-
default() {
|
|
56
|
-
return {};
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
dataset: {
|
|
60
|
-
type: Object,
|
|
61
|
-
default() {
|
|
62
|
-
return {};
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
emits: ["copyAlt"],
|
|
67
|
-
setup(e, { expose: ue, emit: De }) {
|
|
68
|
-
let T = h(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Ve = h(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), He = h(() => import("./PackageVersion-D6d8SCp9.js").then((e) => e.t)), { vue_ui_tiremarks: Ue } = ne(), { isThemeValid: We, warnInvalidTheme: Ge } = se(), E = he(), D = e, Ke = De, qe = d(() => !!D.dataset && Object.keys(D.dataset).length), O = x(s()), k = x(null), Je = x(null), Ye = x(null), Xe = x(null), Ze = x(0), Qe = x(0), A = x(null), j = x(null), M = x(!1), N = x(!1), P = x(z());
|
|
69
|
-
ee({
|
|
70
|
-
config: () => P.value,
|
|
71
|
-
dataset: () => D.dataset,
|
|
72
|
-
component: "VueUiTiremarks",
|
|
73
|
-
rules: [te.noHint]
|
|
74
|
-
});
|
|
75
|
-
let $e = d(() => P.value.userOptions.useCursorPointer), et = d(() => t({
|
|
76
|
-
defaultConfig: {
|
|
77
|
-
userOptions: { show: !1 },
|
|
78
|
-
style: { chart: {
|
|
79
|
-
backgroundColor: "#99999930",
|
|
80
|
-
animation: { use: !1 },
|
|
81
|
-
layout: {
|
|
82
|
-
activeColor: "#6A6A6A80",
|
|
83
|
-
inactiveColor: "#CACACA80",
|
|
84
|
-
ticks: { gradient: { show: !1 } }
|
|
85
|
-
}
|
|
86
|
-
} }
|
|
87
|
-
},
|
|
88
|
-
userConfig: P.value.skeletonConfig ?? {}
|
|
89
|
-
})), { loading: F, FINAL_DATASET: I } = ie({
|
|
90
|
-
...Te(D),
|
|
91
|
-
FINAL_CONFIG: P,
|
|
92
|
-
prepareConfig: z,
|
|
93
|
-
skeletonDataset: D.config?.skeletonDataset ?? { percentage: 50 },
|
|
94
|
-
skeletonConfig: t({
|
|
95
|
-
defaultConfig: P.value,
|
|
96
|
-
userConfig: et.value
|
|
97
|
-
})
|
|
98
|
-
}), { userOptionsVisible: L, setUserOptionsVisibility: tt, keepUserOptionState: nt } = pe({ config: P.value }), { svgRef: R } = me({ config: P.value.style.chart.title });
|
|
99
|
-
function z() {
|
|
100
|
-
let e = u({
|
|
101
|
-
userConfig: D.config,
|
|
102
|
-
defaultConfig: Ue
|
|
103
|
-
}), t = e.theme;
|
|
104
|
-
if (!t) return e;
|
|
105
|
-
if (!We.value(e)) return Ge(e), e;
|
|
106
|
-
let n = u({
|
|
107
|
-
userConfig: ge[t] || D.config,
|
|
108
|
-
defaultConfig: e
|
|
109
|
-
});
|
|
110
|
-
return u({
|
|
111
|
-
userConfig: D.config,
|
|
112
|
-
defaultConfig: n
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
Ee(() => D.config, (e) => {
|
|
116
|
-
P.value = z(), L.value = !P.value.userOptions.showOnChartHover, K.value = P.value.style.chart.width, q.value = P.value.style.chart.height, ct(), Qe.value += 1;
|
|
117
|
-
}, { deep: !0 });
|
|
118
|
-
let { isPrinting: B, isImaging: V, generatePdf: rt, generateImage: it } = re({
|
|
119
|
-
elementId: O.value,
|
|
120
|
-
fileName: P.value.style.chart.title.text || "vue-ui-tiremarks",
|
|
121
|
-
options: P.value.userOptions.print
|
|
122
|
-
}), at = d(() => P.value.userOptions.show && !P.value.style.chart.title.text), H = x(P.value.style.chart.animation.use && !E.value ? 0 : i(I.value.percentage));
|
|
123
|
-
Ee(() => I.value, (e) => {
|
|
124
|
-
P.value.style.chart.animation.use && !E.value ? ot(e.percentage) : H.value = e.percentage || 0;
|
|
125
|
-
}, { deep: !0 }), Se(() => {
|
|
126
|
-
ct();
|
|
127
|
-
});
|
|
128
|
-
function ot(e) {
|
|
129
|
-
let t = P.value.style.chart.animation.speed, n = Math.abs(e - H.value) / (t * 120);
|
|
130
|
-
function r() {
|
|
131
|
-
H.value < e ? H.value = Math.min(H.value + n, e) : H.value > e && (H.value = Math.max(H.value - n, e)), H.value !== e && requestAnimationFrame(r);
|
|
132
|
-
}
|
|
133
|
-
r();
|
|
134
|
-
}
|
|
135
|
-
let st = d(() => !!P.value.debug);
|
|
136
|
-
function ct() {
|
|
137
|
-
if (o(D.dataset) && l({
|
|
138
|
-
componentName: "VueUiTiremarks",
|
|
139
|
-
type: "dataset",
|
|
140
|
-
debug: st.value
|
|
141
|
-
}), P.value.responsive) {
|
|
142
|
-
let e = de(() => {
|
|
143
|
-
let { width: e, height: t } = fe({
|
|
144
|
-
chart: k.value,
|
|
145
|
-
title: P.value.style.chart.title.text ? Ye.value : null,
|
|
146
|
-
source: Xe.value
|
|
147
|
-
});
|
|
148
|
-
requestAnimationFrame(() => {
|
|
149
|
-
K.value = Math.max(.1, e), q.value = Math.max(.1, t - 12);
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
|
-
A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect()), A.value = new ResizeObserver(e), j.value = k.value.parentNode, A.value.observe(j.value);
|
|
153
|
-
}
|
|
154
|
-
ot(I.value.percentage || 0);
|
|
155
|
-
}
|
|
156
|
-
let U = d(() => P.value.style.chart.layout.display === "vertical"), W = d(() => {
|
|
157
|
-
let e = P.value.style.chart.percentage.show, t = {
|
|
158
|
-
top: e ? 48 : 12,
|
|
159
|
-
left: e ? 64 : 16,
|
|
160
|
-
right: e ? 64 : 16,
|
|
161
|
-
bottom: e ? 48 : 12
|
|
162
|
-
};
|
|
163
|
-
return U.value ? {
|
|
164
|
-
top: P.value.style.chart.percentage.verticalPosition === "top" ? t.top : 3,
|
|
165
|
-
left: 3,
|
|
166
|
-
right: 3,
|
|
167
|
-
bottom: P.value.style.chart.percentage.verticalPosition === "bottom" ? t.bottom : 3
|
|
168
|
-
} : {
|
|
169
|
-
top: 0,
|
|
170
|
-
bottom: 0,
|
|
171
|
-
left: P.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 16,
|
|
172
|
-
right: P.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
|
|
173
|
-
};
|
|
174
|
-
}), G = d(() => Object.values(W.value).reduce((e, t) => e + t, 0)), K = x(P.value.style.chart.width), q = x(P.value.style.chart.height), J = d(() => ({
|
|
175
|
-
height: q.value,
|
|
176
|
-
width: K.value
|
|
177
|
-
})), lt = d(() => ({
|
|
178
|
-
horizontal: {
|
|
179
|
-
x: X.value.x + (P.value.style.chart.percentage.horizontalPosition === "left" ? 6 : 3),
|
|
180
|
-
y: J.value.height / 2 - X.value.fontSize / 2
|
|
181
|
-
},
|
|
182
|
-
vertical: {
|
|
183
|
-
x: J.value.width / 2 - 20,
|
|
184
|
-
y: X.value.y - X.value.fontSize / 2
|
|
185
|
-
}
|
|
186
|
-
})[P.value.style.chart.layout.display]), Y = d(() => U.value ? {
|
|
187
|
-
mark: (J.value.height - G.value) / 100 * .5,
|
|
188
|
-
space: (J.value.height - G.value) / 100 * .5
|
|
189
|
-
} : {
|
|
190
|
-
mark: (J.value.width - G.value) / 100 * .5,
|
|
191
|
-
space: (J.value.width - G.value) / 100 * .5
|
|
192
|
-
}), ut = d(() => {
|
|
193
|
-
let e = [];
|
|
194
|
-
for (let t = 0; t < 100; t += 1) {
|
|
195
|
-
let r = P.value.style.chart.layout.ticks.gradient.show ? n(P.value.style.chart.layout.activeColor, t / 100 * (P.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : P.value.style.chart.layout.activeColor;
|
|
196
|
-
if (U.value) {
|
|
197
|
-
let n = P.value.style.chart.layout.crescendo ? (100 - t) * (J.value.width - W.value.left - W.value.right) / 100 / 3 : 0, i = W.value.left + 4 + n, a = J.value.width - W.value.right - 4 - n, o = J.value.height - W.value.bottom - t * Y.value.mark - t * Y.value.space - Y.value.mark, s = J.value.height - W.value.bottom - t * Y.value.mark - t * Y.value.space - Y.value.mark, c = (a - i) / P.value.style.chart.layout.curveAngleX, l = P.value.style.chart.layout.curveAngleY * ((1 + t) / 100);
|
|
198
|
-
e.push({
|
|
199
|
-
x1: i,
|
|
200
|
-
x2: a,
|
|
201
|
-
y1: o,
|
|
202
|
-
y2: s,
|
|
203
|
-
curve: `M ${i} ${o} C ${i + c} ${o - l}, ${a - c} ${s - l}, ${a} ${s}`,
|
|
204
|
-
color: r
|
|
205
|
-
});
|
|
206
|
-
} else {
|
|
207
|
-
let n = P.value.style.chart.layout.crescendo ? (100 - t) * (J.value.height - W.value.top - W.value.bottom) / 100 / 3 : 0, i = W.value.left + t * Y.value.mark + t * Y.value.space - Y.value.mark, a = i, o = W.value.top + 4 + n, s = J.value.height - W.value.bottom - 4 - n, c = P.value.style.chart.layout.curveAngleY * ((1 + t) / 100), l = (s - o) / P.value.style.chart.layout.curveAngleX;
|
|
208
|
-
e.push({
|
|
209
|
-
x1: i,
|
|
210
|
-
x2: a,
|
|
211
|
-
y1: o,
|
|
212
|
-
y2: s,
|
|
213
|
-
curve: `M ${i} ${o} C ${i + c} ${o + l}, ${a + c} ${s - l}, ${a} ${s}`,
|
|
214
|
-
color: r
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
return e;
|
|
219
|
-
}), X = d(() => {
|
|
220
|
-
let e, t, n, r = P.value.style.chart.percentage.fontSize / 3;
|
|
221
|
-
return U.value ? P.value.style.chart.percentage.verticalPosition === "top" ? (e = J.value.width / 2, t = W.value.top / 2, n = "middle") : P.value.style.chart.percentage.verticalPosition === "bottom" && (e = J.value.width / 2, t = J.value.height - W.value.bottom / 2 + r, n = "middle") : P.value.style.chart.percentage.horizontalPosition === "left" ? (e = 4, t = J.value.height / 2 + r, n = "start") : P.value.style.chart.percentage.horizontalPosition === "right" && (e = J.value.width - W.value.right + 8, t = J.value.height / 2 + r, n = "start"), {
|
|
222
|
-
x: e,
|
|
223
|
-
y: t,
|
|
224
|
-
textAnchor: n,
|
|
225
|
-
bold: P.value.style.chart.percentage.bold,
|
|
226
|
-
fontSize: P.value.style.chart.percentage.fontSize,
|
|
227
|
-
fill: P.value.style.chart.percentage.color
|
|
228
|
-
};
|
|
229
|
-
}), Z = x(!1);
|
|
230
|
-
function dt(e) {
|
|
231
|
-
Z.value = e, Ze.value += 1;
|
|
232
|
-
}
|
|
233
|
-
let Q = x(!1);
|
|
234
|
-
function $() {
|
|
235
|
-
Q.value = !Q.value;
|
|
236
|
-
}
|
|
237
|
-
async function ft({ scale: e = 2 } = {}) {
|
|
238
|
-
if (!k.value) return;
|
|
239
|
-
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ce({
|
|
240
|
-
domElement: k.value,
|
|
241
|
-
base64: !0,
|
|
242
|
-
img: !0,
|
|
243
|
-
scale: e
|
|
244
|
-
});
|
|
245
|
-
return {
|
|
246
|
-
imageUri: i,
|
|
247
|
-
base64: a,
|
|
248
|
-
title: P.value.style.chart.title.text,
|
|
249
|
-
width: t,
|
|
250
|
-
height: n,
|
|
251
|
-
aspectRatio: r
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
let pt = d(() => P.value.style.chart.backgroundColor), mt = d(() => P.value.style.chart.title), { exportSvg: ht, getSvg: gt } = oe({
|
|
255
|
-
svg: R,
|
|
256
|
-
title: mt,
|
|
257
|
-
backgroundColor: pt
|
|
258
|
-
});
|
|
259
|
-
async function _t({ isCb: e }) {
|
|
260
|
-
N.value = !0, await xe();
|
|
261
|
-
try {
|
|
262
|
-
if (e) {
|
|
263
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await gt();
|
|
264
|
-
await Promise.resolve(P.value.userOptions.callbacks.svg({
|
|
265
|
-
blob: e,
|
|
266
|
-
url: t,
|
|
267
|
-
text: n,
|
|
268
|
-
dataUrl: r
|
|
269
|
-
}));
|
|
270
|
-
} else await Promise.resolve(ht());
|
|
271
|
-
} finally {
|
|
272
|
-
N.value = !1;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
function vt(e) {
|
|
276
|
-
if (e?.stage === "start") {
|
|
277
|
-
M.value = !0;
|
|
278
|
-
return;
|
|
279
|
-
}
|
|
280
|
-
if (e?.stage === "end") {
|
|
281
|
-
M.value = !1;
|
|
282
|
-
return;
|
|
283
|
-
}
|
|
284
|
-
it();
|
|
285
|
-
}
|
|
286
|
-
async function yt() {
|
|
287
|
-
if (Ke("copyAlt", {
|
|
288
|
-
config: P.value,
|
|
289
|
-
dataset: I.value
|
|
290
|
-
}), !P.value.userOptions.callbacks.altCopy) {
|
|
291
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
292
|
-
return;
|
|
293
|
-
}
|
|
294
|
-
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
295
|
-
config: P.value,
|
|
296
|
-
dataset: I.value
|
|
297
|
-
}));
|
|
298
|
-
}
|
|
299
|
-
let bt = d(() => `${O.value}-title`), xt = d(() => `${O.value}-desc`), St = d(() => a(P.value.style.chart.percentage.formatter, H.value, r({
|
|
300
|
-
v: H.value,
|
|
301
|
-
s: "%",
|
|
302
|
-
r: P.value.style.chart.percentage.rounding
|
|
303
|
-
}))), Ct = d(() => P.value.style.chart.title.text || ""), wt = d(() => F.value ? "Loading data" : `Value: ${St.value}`);
|
|
304
|
-
return ue({
|
|
305
|
-
getImage: ft,
|
|
306
|
-
generatePdf: rt,
|
|
307
|
-
generateImage: it,
|
|
308
|
-
generateSvg: _t,
|
|
309
|
-
toggleAnnotator: $,
|
|
310
|
-
toggleFullscreen: dt,
|
|
311
|
-
copyAlt: yt
|
|
312
|
-
}), (e, t) => (b(), m("div", {
|
|
313
|
-
ref_key: "tiremarksChart",
|
|
314
|
-
ref: k,
|
|
315
|
-
class: _(`vue-data-ui-component vue-ui-tiremarks ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
316
|
-
style: y(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${P.value.style.chart.backgroundColor}`),
|
|
317
|
-
id: O.value,
|
|
318
|
-
onMouseenter: t[0] ||= () => C(tt)(!0),
|
|
319
|
-
onMouseleave: t[1] ||= () => C(tt)(!1)
|
|
320
|
-
}, [
|
|
321
|
-
P.value.userOptions.buttons.annotator ? (b(), f(C(T), {
|
|
322
|
-
key: 0,
|
|
323
|
-
svgRef: C(R),
|
|
324
|
-
backgroundColor: P.value.style.chart.backgroundColor,
|
|
325
|
-
color: P.value.style.chart.color,
|
|
326
|
-
active: Q.value,
|
|
327
|
-
isCursorPointer: $e.value,
|
|
328
|
-
onClose: $
|
|
329
|
-
}, {
|
|
330
|
-
"annotator-action-close": w(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
331
|
-
"annotator-action-color": w(({ color: t }) => [S(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
332
|
-
"annotator-action-draw": w(({ mode: t }) => [S(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
|
|
333
|
-
"annotator-action-undo": w(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
|
|
334
|
-
"annotator-action-redo": w(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
|
|
335
|
-
"annotator-action-delete": w(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
|
|
336
|
-
_: 3
|
|
337
|
-
}, 8, [
|
|
338
|
-
"svgRef",
|
|
339
|
-
"backgroundColor",
|
|
340
|
-
"color",
|
|
341
|
-
"active",
|
|
342
|
-
"isCursorPointer"
|
|
343
|
-
])) : p("", !0),
|
|
344
|
-
at.value ? (b(), m("div", {
|
|
345
|
-
key: 1,
|
|
346
|
-
ref_key: "noTitle",
|
|
347
|
-
ref: Je,
|
|
348
|
-
class: "vue-data-ui-no-title-space",
|
|
349
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
350
|
-
}, null, 512)) : p("", !0),
|
|
351
|
-
P.value.style.chart.title.text ? (b(), m("div", {
|
|
352
|
-
key: 2,
|
|
353
|
-
ref_key: "chartTitle",
|
|
354
|
-
ref: Ye,
|
|
355
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
356
|
-
}, [(b(), f(le, {
|
|
357
|
-
key: `title_${Qe.value}`,
|
|
358
|
-
config: {
|
|
359
|
-
title: {
|
|
360
|
-
cy: "wheel-title",
|
|
361
|
-
...P.value.style.chart.title
|
|
362
|
-
},
|
|
363
|
-
subtitle: {
|
|
364
|
-
cy: "wheel-subtitle",
|
|
365
|
-
...P.value.style.chart.title.subtitle
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
369
|
-
P.value.userOptions.show && qe.value && (C(nt) || C(L)) ? (b(), f(C(Ve), {
|
|
370
|
-
ref: "details",
|
|
371
|
-
key: `user_options_${Ze.value}`,
|
|
372
|
-
backgroundColor: P.value.style.chart.backgroundColor,
|
|
373
|
-
color: P.value.style.chart.color,
|
|
374
|
-
isPrinting: C(B),
|
|
375
|
-
isImaging: C(V),
|
|
376
|
-
uid: O.value,
|
|
377
|
-
hasPdf: P.value.userOptions.buttons.pdf,
|
|
378
|
-
hasImg: P.value.userOptions.buttons.img,
|
|
379
|
-
hasSvg: P.value.userOptions.buttons.svg,
|
|
380
|
-
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
381
|
-
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
382
|
-
hasXls: !1,
|
|
383
|
-
isFullscreen: Z.value,
|
|
384
|
-
titles: { ...P.value.userOptions.buttonTitles },
|
|
385
|
-
chartElement: k.value,
|
|
386
|
-
position: P.value.userOptions.position,
|
|
387
|
-
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
388
|
-
isAnnotation: Q.value,
|
|
389
|
-
callbacks: P.value.userOptions.callbacks,
|
|
390
|
-
printScale: P.value.userOptions.print.scale,
|
|
391
|
-
isCursorPointer: $e.value,
|
|
392
|
-
onToggleFullscreen: dt,
|
|
393
|
-
onGeneratePdf: C(rt),
|
|
394
|
-
onGenerateImage: vt,
|
|
395
|
-
onGenerateSvg: _t,
|
|
396
|
-
onToggleAnnotator: $,
|
|
397
|
-
onCopyAlt: yt,
|
|
398
|
-
style: y({ visibility: C(nt) ? C(L) ? "visible" : "hidden" : "visible" })
|
|
399
|
-
}, ye({ _: 2 }, [
|
|
400
|
-
e.$slots.menuIcon ? {
|
|
401
|
-
name: "menuIcon",
|
|
402
|
-
fn: w(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", v(g({
|
|
403
|
-
isOpen: t,
|
|
404
|
-
color: n
|
|
405
|
-
})), void 0, !0)]),
|
|
406
|
-
key: "0"
|
|
407
|
-
} : void 0,
|
|
408
|
-
e.$slots.optionPdf ? {
|
|
409
|
-
name: "optionPdf",
|
|
410
|
-
fn: w(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
411
|
-
key: "1"
|
|
412
|
-
} : void 0,
|
|
413
|
-
e.$slots.optionImg ? {
|
|
414
|
-
name: "optionImg",
|
|
415
|
-
fn: w(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
416
|
-
key: "2"
|
|
417
|
-
} : void 0,
|
|
418
|
-
e.$slots.optionSvg ? {
|
|
419
|
-
name: "optionSvg",
|
|
420
|
-
fn: w(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
421
|
-
key: "3"
|
|
422
|
-
} : void 0,
|
|
423
|
-
e.$slots.optionFullscreen ? {
|
|
424
|
-
name: "optionFullscreen",
|
|
425
|
-
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", v(g({
|
|
426
|
-
toggleFullscreen: t,
|
|
427
|
-
isFullscreen: n
|
|
428
|
-
})), void 0, !0)]),
|
|
429
|
-
key: "4"
|
|
430
|
-
} : void 0,
|
|
431
|
-
e.$slots.optionAnnotator ? {
|
|
432
|
-
name: "optionAnnotator",
|
|
433
|
-
fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", v(g({
|
|
434
|
-
toggleAnnotator: t,
|
|
435
|
-
isAnnotator: n
|
|
436
|
-
})), void 0, !0)]),
|
|
437
|
-
key: "5"
|
|
438
|
-
} : void 0,
|
|
439
|
-
e.$slots.optionAltCopy ? {
|
|
440
|
-
name: "optionAltCopy",
|
|
441
|
-
fn: w(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
|
|
442
|
-
key: "6"
|
|
443
|
-
} : void 0,
|
|
444
|
-
e.$slots["custom-menu-before"] ? {
|
|
445
|
-
name: "custom-menu-before",
|
|
446
|
-
fn: w(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
447
|
-
key: "7"
|
|
448
|
-
} : void 0,
|
|
449
|
-
e.$slots["custom-menu-after"] ? {
|
|
450
|
-
name: "custom-menu-after",
|
|
451
|
-
fn: w(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
452
|
-
key: "8"
|
|
453
|
-
} : void 0
|
|
454
|
-
]), 1032, [
|
|
455
|
-
"backgroundColor",
|
|
456
|
-
"color",
|
|
457
|
-
"isPrinting",
|
|
458
|
-
"isImaging",
|
|
459
|
-
"uid",
|
|
460
|
-
"hasPdf",
|
|
461
|
-
"hasImg",
|
|
462
|
-
"hasSvg",
|
|
463
|
-
"hasFullscreen",
|
|
464
|
-
"hasAltCopy",
|
|
465
|
-
"isFullscreen",
|
|
466
|
-
"titles",
|
|
467
|
-
"chartElement",
|
|
468
|
-
"position",
|
|
469
|
-
"hasAnnotator",
|
|
470
|
-
"isAnnotation",
|
|
471
|
-
"callbacks",
|
|
472
|
-
"printScale",
|
|
473
|
-
"isCursorPointer",
|
|
474
|
-
"onGeneratePdf",
|
|
475
|
-
"style"
|
|
476
|
-
])) : p("", !0),
|
|
477
|
-
(b(), m("svg", {
|
|
478
|
-
ref_key: "svgRef",
|
|
479
|
-
ref: R,
|
|
480
|
-
xmlns: C(c),
|
|
481
|
-
class: _({
|
|
482
|
-
"vue-data-ui-fullscreen--on": Z.value,
|
|
483
|
-
"vue-data-ui-fulscreen--off": !Z.value
|
|
484
|
-
}),
|
|
485
|
-
viewBox: `0 0 ${K.value} ${q.value}`,
|
|
486
|
-
style: y(`max-width:100%; overflow: visible; background:transparent;color:${P.value.style.chart.color}`),
|
|
487
|
-
role: "img",
|
|
488
|
-
"aria-labelledby": bt.value,
|
|
489
|
-
"aria-describedby": xt.value
|
|
490
|
-
}, [
|
|
491
|
-
ve("title", { id: bt.value }, we(Ct.value), 9, Ae),
|
|
492
|
-
ve("desc", { id: xt.value }, we(wt.value), 9, je),
|
|
493
|
-
be(C(He)),
|
|
494
|
-
e.$slots["chart-background"] ? (b(), m("foreignObject", {
|
|
495
|
-
key: 0,
|
|
496
|
-
x: 0,
|
|
497
|
-
y: 0,
|
|
498
|
-
width: J.value.width,
|
|
499
|
-
height: J.value.height,
|
|
500
|
-
style: { pointerEvents: "none" }
|
|
501
|
-
}, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Me)) : p("", !0),
|
|
502
|
-
P.value.style.chart.layout.curved ? (b(), m("g", Ne, [(b(!0), m(_e, null, Ce(ut.value, (e, t) => (b(), m("path", {
|
|
503
|
-
d: e.curve,
|
|
504
|
-
"stroke-width": Y.value.mark,
|
|
505
|
-
stroke: H.value >= t ? e.color : P.value.style.chart.layout.inactiveColor,
|
|
506
|
-
"stroke-linecap": "round",
|
|
507
|
-
fill: "none",
|
|
508
|
-
class: _({ "vue-ui-tick-animated": P.value.style.chart.animation.use && !C(E) && t <= H.value })
|
|
509
|
-
}, null, 10, Pe))), 256))])) : (b(), m("g", Fe, [(b(!0), m(_e, null, Ce(ut.value, (e, t) => (b(), m("line", {
|
|
510
|
-
x1: e.x1,
|
|
511
|
-
y1: e.y1,
|
|
512
|
-
x2: e.x2,
|
|
513
|
-
y2: e.y2,
|
|
514
|
-
"stroke-width": Y.value.mark,
|
|
515
|
-
stroke: H.value >= t ? e.color : P.value.style.chart.layout.inactiveColor,
|
|
516
|
-
"stroke-linecap": "round"
|
|
517
|
-
}, null, 8, Ie))), 256))])),
|
|
518
|
-
P.value.style.chart.percentage.show ? (b(), m("g", {
|
|
519
|
-
key: 3,
|
|
520
|
-
role: "status",
|
|
521
|
-
"aria-live": "polite",
|
|
522
|
-
"aria-label": C(F) ? "..." : `${St.value}`
|
|
523
|
-
}, [C(F) ? (b(), m("rect", {
|
|
524
|
-
key: 0,
|
|
525
|
-
x: lt.value.x,
|
|
526
|
-
y: lt.value.y,
|
|
527
|
-
width: 40,
|
|
528
|
-
height: X.value.fontSize,
|
|
529
|
-
fill: "#6A6A6A80",
|
|
530
|
-
rx: 3
|
|
531
|
-
}, null, 8, Re)) : (b(), m("text", {
|
|
532
|
-
key: 1,
|
|
533
|
-
"aria-hidden": "true",
|
|
534
|
-
x: X.value.x,
|
|
535
|
-
y: X.value.y,
|
|
536
|
-
"font-size": X.value.fontSize,
|
|
537
|
-
fill: P.value.style.chart.layout.ticks.gradient.show && P.value.style.chart.percentage.useGradientColor ? C(n)(P.value.style.chart.layout.activeColor, H.value / 100 * (P.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : P.value.style.chart.percentage.color,
|
|
538
|
-
"font-weight": X.value.bold ? "bold" : "normal",
|
|
539
|
-
"text-anchor": X.value.textAnchor
|
|
540
|
-
}, we(St.value), 9, ze))], 8, Le)) : p("", !0),
|
|
541
|
-
S(e.$slots, "svg", { svg: {
|
|
542
|
-
...J.value,
|
|
543
|
-
isPrintingImg: C(B) || C(V) || M.value,
|
|
544
|
-
isPrintingSvg: N.value
|
|
545
|
-
} }, void 0, !0)
|
|
546
|
-
], 14, ke)),
|
|
547
|
-
e.$slots.watermark ? (b(), m("div", Be, [S(e.$slots, "watermark", v(g({ isPrinting: C(B) || C(V) || M.value || N.value })), void 0, !0)])) : p("", !0),
|
|
548
|
-
e.$slots.source ? (b(), m("div", {
|
|
549
|
-
key: 5,
|
|
550
|
-
ref_key: "source",
|
|
551
|
-
ref: Xe,
|
|
552
|
-
dir: "auto"
|
|
553
|
-
}, [S(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
554
|
-
S(e.$slots, "skeleton", {}, () => [C(F) ? (b(), f(ae, { key: 0 })) : p("", !0)], !0)
|
|
555
|
-
], 46, Oe));
|
|
556
|
-
}
|
|
557
|
-
}, [["__scopeId", "data-v-7f57d45c"]]);
|
|
558
|
-
//#endregion
|
|
559
|
-
export { De as n, T as t };
|