vue-data-ui 3.0.0-next.8 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -30
- package/dist/{Arrow-BRtNjitS.js → Arrow-r2f8Bpd-.js} +1 -1
- package/dist/{BaseDraggableDialog-CO9ok1PR.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
- package/dist/{BaseIcon-BuOIF6t5.js → BaseIcon-CXtL10fo.js} +1 -1
- package/dist/{ColorPicker-FH6oc0mS.js → ColorPicker-H91bBsqM.js} +2 -2
- package/dist/{DataTable-D36ZRtpU.js → DataTable-BSSXpM7w.js} +2 -2
- package/dist/{Legend-DInM-hku.js → Legend-BUk0WvWJ.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B60MxEaz.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
- package/dist/{PackageVersion-CGQlqnmq.js → PackageVersion-CJ6Vd7V5.js} +3 -3
- package/dist/{PenAndPaper-B5slIHlh.js → PenAndPaper-D3zudcNI.js} +32 -32
- package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
- package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
- package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
- package/dist/{Shape-BGr3dQKt.js → Shape-BRzOzubn.js} +43 -37
- package/dist/Slicer-MID8pgT3.js +602 -0
- package/dist/{SparkTooltip-BWA23VgJ.js → SparkTooltip-DATI1fGZ.js} +7 -7
- package/dist/{Title-BSlAPr_H.js → Title-BGu6gEd2.js} +1 -1
- package/dist/{Tooltip-lPcsweXz.js → Tooltip-Bh2zYSoM.js} +23 -19
- package/dist/{UserOptions-Dn5TCQxg.js → UserOptions-Ck8fz9f4.js} +2 -2
- package/dist/{dom-to-png-Br-eVhJZ.js → dom-to-png-DhIh24Ti.js} +1 -1
- package/dist/{img-CgMUOQnb.js → img-DrR839Ot.js} +1 -1
- package/dist/{index-Cfm5-hMQ.js → index-BtNwOUja.js} +2885 -2010
- package/dist/{pdf-BMVHBLq5.js → pdf-DoShrdT5.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +753 -65
- package/dist/types/vue-data-ui.d.ts +753 -65
- package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-f2H3m6Yj.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-B1Hgs47c.js → usePrinter-DUNjpQNe.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
- package/dist/{vue-data-ui-CD674-M3.js → vue-data-ui-D7QVxNhO.js} +105 -100
- package/dist/vue-data-ui.js +26 -25
- package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
- package/dist/{vue-ui-accordion-CEDGlyKI.js → vue-ui-accordion-BKUrAowe.js} +3 -3
- package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
- package/dist/{vue-ui-annotator-CosgP-Fl.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
- package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
- package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
- package/dist/{vue-ui-carousel-table-BG1ItsAb.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
- package/dist/{vue-ui-chestnut-6uKesZW9.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
- package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
- package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
- package/dist/{vue-ui-cursor-CkVnNEGn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
- package/dist/{vue-ui-dashboard-D07ivGS7.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
- package/dist/{vue-ui-digits-Doidl3Lz.js → vue-ui-digits-zKn3uhGN.js} +2 -2
- package/dist/{vue-ui-donut-CWvzqAAa.js → vue-ui-donut-BtnIwS_E.js} +433 -424
- package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
- package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
- package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
- package/dist/{vue-ui-funnel-D1pFzjJa.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
- package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
- package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
- package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
- package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
- package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
- package/dist/{vue-ui-kpi-DTeZbrJk.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
- package/dist/{vue-ui-mini-loader-itpDcfZU.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
- package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
- package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
- package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
- package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
- package/dist/{vue-ui-quadrant-0milmSNS.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
- package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
- package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
- package/dist/{vue-ui-rating-C3QUdrMw.js → vue-ui-rating-Bh35aujf.js} +2 -2
- package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
- package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
- package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
- package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
- package/dist/{vue-ui-skeleton-P-1SRvsT.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
- package/dist/{vue-ui-smiley-Cd1bhDuU.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
- package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
- package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
- package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
- package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
- package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
- package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
- package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
- package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
- package/dist/{vue-ui-table-B1tjuVi0.js → vue-ui-table-BXOLZXuz.js} +17 -17
- package/dist/{vue-ui-table-heatmap-BI8eIQG7.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CqBD7xhZ.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
- package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
- package/dist/{vue-ui-timer-sgO_Z6ja.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
- package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
- package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
- package/dist/{vue-ui-vertical-bar-BPay31_q.js → vue-ui-vertical-bar-C-i2dRnU.js} +107 -105
- package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
- package/dist/vue-ui-wheel-waZf462K.js +379 -0
- package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
- package/dist/{vue-ui-world-DWskeHfE.js → vue-ui-world-Cx4uuwTY.js} +364 -327
- package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
- package/dist/{vue-ui-xy-canvas-Dkmsguo1.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
- package/package.json +4 -4
- package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
- package/dist/Slicer-O07lQwRC.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-Hh7nGEjp.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-DWtJoryQ.js +0 -1227
- package/dist/vue-ui-age-pyramid-DbrA1G0r.js +0 -746
- package/dist/vue-ui-bullet-9IB3mGon.js +0 -513
- package/dist/vue-ui-candlestick-CWqPF_zW.js +0 -873
- package/dist/vue-ui-chord-Crd3l1b6.js +0 -949
- package/dist/vue-ui-circle-pack-CAm2gxBi.js +0 -673
- package/dist/vue-ui-donut-evolution-Djp_eBqw.js +0 -903
- package/dist/vue-ui-dumbbell-B7GySnYf.js +0 -753
- package/dist/vue-ui-flow-XDpZAYWI.js +0 -765
- package/dist/vue-ui-galaxy-DBQy21se.js +0 -617
- package/dist/vue-ui-gauge-FBZaUrBD.js +0 -738
- package/dist/vue-ui-gizmo-CDbPxUzE.js +0 -192
- package/dist/vue-ui-heatmap-DsDWxYOS.js +0 -877
- package/dist/vue-ui-history-plot-CzO1Z1FH.js +0 -924
- package/dist/vue-ui-molecule-Ddd3FgID.js +0 -597
- package/dist/vue-ui-mood-radar-24XAq8mg.js +0 -670
- package/dist/vue-ui-nested-donuts-DjWASp62.js +0 -1212
- package/dist/vue-ui-onion-B9thdF_c.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-DT-GhOaA.js +0 -807
- package/dist/vue-ui-quick-chart-D0DukVN6.js +0 -1612
- package/dist/vue-ui-radar-DY8y6oRc.js +0 -741
- package/dist/vue-ui-relation-circle-8Gd7_fxt.js +0 -542
- package/dist/vue-ui-ridgeline-iPtG1McW.js +0 -969
- package/dist/vue-ui-rings-BXPo4MMo.js +0 -685
- package/dist/vue-ui-scatter-26d0eebx.js +0 -1045
- package/dist/vue-ui-spark-trend-Dt3ctzpl.js +0 -291
- package/dist/vue-ui-sparkbar-RrxErqrU.js +0 -301
- package/dist/vue-ui-sparkgauge-CyNi1b0O.js +0 -201
- package/dist/vue-ui-sparkhistogram-DPpZCPuE.js +0 -313
- package/dist/vue-ui-sparkline-BMjQ_uYx.js +0 -459
- package/dist/vue-ui-sparkstackbar-CjO8pfE-.js +0 -381
- package/dist/vue-ui-stackbar-wgyvMlE6.js +0 -1207
- package/dist/vue-ui-strip-plot-BF1o8lvY.js +0 -761
- package/dist/vue-ui-thermometer-CtuxuYVt.js +0 -495
- package/dist/vue-ui-tiremarks-DOwj4ZE-.js +0 -358
- package/dist/vue-ui-treemap-C4LtyFug.js +0 -965
- package/dist/vue-ui-waffle-D8mzGTeo.js +0 -863
- package/dist/vue-ui-wheel-C6uAotal.js +0 -352
- package/dist/vue-ui-word-cloud-Bge2211V.js +0 -659
- package/dist/vue-ui-xy-UzQacbnA.js +0 -2982
|
@@ -1,358 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as S, computed as d, ref as b, watch as te, onMounted as pe, createElementBlock as c, openBlock as r, unref as s, normalizeStyle as G, normalizeClass as L, createBlock as z, createCommentVNode as f, createSlots as ye, withCtx as x, renderSlot as p, normalizeProps as N, guardReactiveProps as M, createVNode as me, Fragment as ae, renderList as oe, toDisplayString as ke } from "vue";
|
|
2
|
-
import { u as le } from "./useNestedProp-Hh7nGEjp.js";
|
|
3
|
-
import { u as be, c as Ce, a as _e, v as we, o as $e, e as Oe, w as se, X as Pe, i as xe, f as Ae } from "./index-Cfm5-hMQ.js";
|
|
4
|
-
import { u as Ie } from "./usePrinter-B1Hgs47c.js";
|
|
5
|
-
import { u as Fe } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
-
import { u as Se } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import ze from "./Title-BSlAPr_H.js";
|
|
8
|
-
import Ne from "./img-CgMUOQnb.js";
|
|
9
|
-
import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
const Te = ["id"], Ue = {
|
|
11
|
-
key: 2,
|
|
12
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
13
|
-
}, Re = ["xmlns", "viewBox"], Ee = ["width", "height"], Ge = { key: 1 }, Le = ["d", "stroke-width", "stroke"], je = { key: 2 }, Be = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Xe = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], De = {
|
|
14
|
-
key: 5,
|
|
15
|
-
class: "vue-data-ui-watermark"
|
|
16
|
-
}, He = {
|
|
17
|
-
key: 6,
|
|
18
|
-
ref: "source",
|
|
19
|
-
dir: "auto"
|
|
20
|
-
}, Ve = {
|
|
21
|
-
__name: "vue-ui-tiremarks",
|
|
22
|
-
props: {
|
|
23
|
-
config: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default() {
|
|
26
|
-
return {};
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
dataset: {
|
|
30
|
-
type: Object,
|
|
31
|
-
default() {
|
|
32
|
-
return {};
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
setup(ne, { expose: re }) {
|
|
37
|
-
const ue = S(() => import("./PenAndPaper-B5slIHlh.js")), ie = S(() => import("./vue-ui-skeleton-P-1SRvsT.js")), ce = S(() => import("./UserOptions-Dn5TCQxg.js")), ve = S(() => import("./PackageVersion-CGQlqnmq.js")), { vue_ui_tiremarks: he } = be(), g = ne, T = d(() => !!g.dataset && Object.keys(g.dataset).length), U = b(Ce()), w = b(null), de = b(null), j = b(0), B = b(0), e = d({
|
|
38
|
-
get: () => V(),
|
|
39
|
-
set: (t) => t
|
|
40
|
-
}), { userOptionsVisible: R, setUserOptionsVisibility: X, keepUserOptionState: D } = Fe({ config: e.value }), { svgRef: H } = Se({ config: e.value.style.chart.title });
|
|
41
|
-
function V() {
|
|
42
|
-
const t = le({
|
|
43
|
-
userConfig: g.config,
|
|
44
|
-
defaultConfig: he
|
|
45
|
-
});
|
|
46
|
-
return t.theme ? {
|
|
47
|
-
...le({
|
|
48
|
-
userConfig: _e.vue_ui_tiremarks[t.theme] || g.config,
|
|
49
|
-
defaultConfig: t
|
|
50
|
-
})
|
|
51
|
-
} : t;
|
|
52
|
-
}
|
|
53
|
-
te(() => g.config, (t) => {
|
|
54
|
-
e.value = V(), R.value = !e.value.userOptions.showOnChartHover, W(), B.value += 1;
|
|
55
|
-
}, { deep: !0 });
|
|
56
|
-
const { isPrinting: Y, isImaging: q, generatePdf: J, generateImage: K } = Ie({
|
|
57
|
-
elementId: U.value,
|
|
58
|
-
fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
|
|
59
|
-
options: e.value.userOptions.print
|
|
60
|
-
}), fe = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = b(e.value.style.chart.animation.use ? 0 : we(g.dataset.percentage));
|
|
61
|
-
te(() => g.dataset, (t) => {
|
|
62
|
-
e.value.style.chart.animation.use ? Q(t.percentage) : u.value = t.percentage || 0;
|
|
63
|
-
}, { deep: !0 }), pe(() => {
|
|
64
|
-
W();
|
|
65
|
-
});
|
|
66
|
-
function Q(t) {
|
|
67
|
-
let n = e.value.style.chart.animation.speed;
|
|
68
|
-
const a = Math.abs(t - u.value) / (n * 120);
|
|
69
|
-
function o() {
|
|
70
|
-
u.value < t ? u.value = Math.min(u.value + a, t) : u.value > t && (u.value = Math.max(u.value - a, t)), u.value !== t && requestAnimationFrame(o);
|
|
71
|
-
}
|
|
72
|
-
o();
|
|
73
|
-
}
|
|
74
|
-
function W() {
|
|
75
|
-
$e(g.dataset) && Oe({
|
|
76
|
-
componentName: "VueUiTiremarks",
|
|
77
|
-
type: "dataset"
|
|
78
|
-
}), Q(g.dataset.percentage || 0);
|
|
79
|
-
}
|
|
80
|
-
const _ = d(() => e.value.style.chart.layout.display === "vertical"), i = d(() => {
|
|
81
|
-
const t = {
|
|
82
|
-
top: 48,
|
|
83
|
-
left: 64,
|
|
84
|
-
right: 64,
|
|
85
|
-
bottom: 48
|
|
86
|
-
};
|
|
87
|
-
return _.value ? {
|
|
88
|
-
top: e.value.style.chart.percentage.verticalPosition === "top" ? t.top : 3,
|
|
89
|
-
left: 3,
|
|
90
|
-
right: 3,
|
|
91
|
-
bottom: e.value.style.chart.percentage.verticalPosition === "bottom" ? t.bottom : 3
|
|
92
|
-
} : {
|
|
93
|
-
top: 0,
|
|
94
|
-
bottom: 0,
|
|
95
|
-
left: e.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 3,
|
|
96
|
-
right: e.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
|
|
97
|
-
};
|
|
98
|
-
}), A = d(() => Object.values(i.value).reduce((t, n) => t + n, 0)), l = d(() => ({
|
|
99
|
-
height: _.value ? 312 : 56,
|
|
100
|
-
width: _.value ? 56 : 312
|
|
101
|
-
})), v = d(() => _.value ? {
|
|
102
|
-
mark: (l.value.height - A.value) / 100 * 0.5,
|
|
103
|
-
space: (l.value.height - A.value) / 100 * 0.5
|
|
104
|
-
} : {
|
|
105
|
-
mark: (l.value.width - A.value) / 100 * 0.5,
|
|
106
|
-
space: (l.value.width - A.value) / 100 * 0.5
|
|
107
|
-
}), Z = d(() => {
|
|
108
|
-
const t = [];
|
|
109
|
-
for (let a = 0; a < 100; a += 1) {
|
|
110
|
-
const o = e.value.style.chart.layout.ticks.gradient.show ? se(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
|
|
111
|
-
if (_.value) {
|
|
112
|
-
const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.width - i.value.left - i.value.right) / 100 / 3 : 0, h = i.value.left + 4 + C, y = l.value.width - i.value.right - 4 - C, m = l.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, k = l.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, O = (y - h) / e.value.style.chart.layout.curveAngleX, P = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
|
|
113
|
-
t.push({
|
|
114
|
-
x1: h,
|
|
115
|
-
x2: y,
|
|
116
|
-
y1: m,
|
|
117
|
-
y2: k,
|
|
118
|
-
curve: `M ${h} ${m} C ${h + O} ${m - P}, ${y - O} ${k - P}, ${y} ${k}`,
|
|
119
|
-
color: o
|
|
120
|
-
});
|
|
121
|
-
} else {
|
|
122
|
-
const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, h = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, y = h, m = i.value.top + 4 + C, k = l.value.height - i.value.bottom - 4 - C, O = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), P = (k - m) / e.value.style.chart.layout.curveAngleX;
|
|
123
|
-
t.push({
|
|
124
|
-
x1: h,
|
|
125
|
-
x2: y,
|
|
126
|
-
y1: m,
|
|
127
|
-
y2: k,
|
|
128
|
-
curve: `M ${h} ${m} C ${h + O} ${m + P}, ${y + O} ${k - P}, ${y} ${k}`,
|
|
129
|
-
color: o
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
return t;
|
|
134
|
-
}), $ = d(() => {
|
|
135
|
-
let t, n, a;
|
|
136
|
-
const o = e.value.style.chart.percentage.fontSize / 3;
|
|
137
|
-
return _.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = l.value.width / 2, n = i.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = l.value.width / 2, n = l.value.height - i.value.bottom / 2 + o, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, n = l.value.height / 2 + o, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = l.value.width - i.value.right + 8, n = l.value.height / 2 + o, a = "start"), {
|
|
138
|
-
x: t,
|
|
139
|
-
y: n,
|
|
140
|
-
textAnchor: a,
|
|
141
|
-
bold: e.value.style.chart.percentage.bold,
|
|
142
|
-
fontSize: e.value.style.chart.percentage.fontSize,
|
|
143
|
-
fill: e.value.style.chart.percentage.color
|
|
144
|
-
};
|
|
145
|
-
}), I = b(!1);
|
|
146
|
-
function ee(t) {
|
|
147
|
-
I.value = t, j.value += 1;
|
|
148
|
-
}
|
|
149
|
-
const F = b(!1);
|
|
150
|
-
function E() {
|
|
151
|
-
F.value = !F.value;
|
|
152
|
-
}
|
|
153
|
-
async function ge({ scale: t = 2 } = {}) {
|
|
154
|
-
if (!w.value) return;
|
|
155
|
-
const { width: n, height: a } = w.value.getBoundingClientRect(), o = n / a, { imageUri: C, base64: h } = await Ne({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
156
|
-
return {
|
|
157
|
-
imageUri: C,
|
|
158
|
-
base64: h,
|
|
159
|
-
title: e.value.style.chart.title.text,
|
|
160
|
-
width: n,
|
|
161
|
-
height: a,
|
|
162
|
-
aspectRatio: o
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
return re({
|
|
166
|
-
getImage: ge,
|
|
167
|
-
generatePdf: J,
|
|
168
|
-
generateImage: K,
|
|
169
|
-
toggleAnnotator: E,
|
|
170
|
-
toggleFullscreen: ee
|
|
171
|
-
}), (t, n) => (r(), c("div", {
|
|
172
|
-
ref_key: "tiremarksChart",
|
|
173
|
-
ref: w,
|
|
174
|
-
class: L(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
175
|
-
style: G(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
176
|
-
id: U.value,
|
|
177
|
-
onMouseenter: n[0] || (n[0] = () => s(X)(!0)),
|
|
178
|
-
onMouseleave: n[1] || (n[1] = () => s(X)(!1))
|
|
179
|
-
}, [
|
|
180
|
-
e.value.userOptions.buttons.annotator ? (r(), z(s(ue), {
|
|
181
|
-
key: 0,
|
|
182
|
-
svgRef: s(H),
|
|
183
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
184
|
-
color: e.value.style.chart.color,
|
|
185
|
-
active: F.value,
|
|
186
|
-
onClose: E
|
|
187
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
188
|
-
fe.value ? (r(), c("div", {
|
|
189
|
-
key: 1,
|
|
190
|
-
ref_key: "noTitle",
|
|
191
|
-
ref: de,
|
|
192
|
-
class: "vue-data-ui-no-title-space",
|
|
193
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
194
|
-
}, null, 512)) : f("", !0),
|
|
195
|
-
e.value.style.chart.title.text ? (r(), c("div", Ue, [
|
|
196
|
-
(r(), z(ze, {
|
|
197
|
-
key: `title_${B.value}`,
|
|
198
|
-
config: {
|
|
199
|
-
title: {
|
|
200
|
-
cy: "wheel-title",
|
|
201
|
-
...e.value.style.chart.title
|
|
202
|
-
},
|
|
203
|
-
subtitle: {
|
|
204
|
-
cy: "wheel-subtitle",
|
|
205
|
-
...e.value.style.chart.title.subtitle
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}, null, 8, ["config"]))
|
|
209
|
-
])) : f("", !0),
|
|
210
|
-
e.value.userOptions.show && T.value && (s(D) || s(R)) ? (r(), z(s(ce), {
|
|
211
|
-
ref: "details",
|
|
212
|
-
key: `user_options_${j.value}`,
|
|
213
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
214
|
-
color: e.value.style.chart.color,
|
|
215
|
-
isPrinting: s(Y),
|
|
216
|
-
isImaging: s(q),
|
|
217
|
-
uid: U.value,
|
|
218
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
219
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
220
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
221
|
-
hasXls: !1,
|
|
222
|
-
isFullscreen: I.value,
|
|
223
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
224
|
-
chartElement: w.value,
|
|
225
|
-
position: e.value.userOptions.position,
|
|
226
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
227
|
-
isAnnotation: F.value,
|
|
228
|
-
callbacks: e.value.userOptions.callbacks,
|
|
229
|
-
printScale: e.value.userOptions.print.scale,
|
|
230
|
-
onToggleFullscreen: ee,
|
|
231
|
-
onGeneratePdf: s(J),
|
|
232
|
-
onGenerateImage: s(K),
|
|
233
|
-
onToggleAnnotator: E,
|
|
234
|
-
style: G({
|
|
235
|
-
visibility: s(D) ? s(R) ? "visible" : "hidden" : "visible"
|
|
236
|
-
})
|
|
237
|
-
}, ye({ _: 2 }, [
|
|
238
|
-
t.$slots.menuIcon ? {
|
|
239
|
-
name: "menuIcon",
|
|
240
|
-
fn: x(({ isOpen: a, color: o }) => [
|
|
241
|
-
p(t.$slots, "menuIcon", N(M({ isOpen: a, color: o })), void 0, !0)
|
|
242
|
-
]),
|
|
243
|
-
key: "0"
|
|
244
|
-
} : void 0,
|
|
245
|
-
t.$slots.optionPdf ? {
|
|
246
|
-
name: "optionPdf",
|
|
247
|
-
fn: x(() => [
|
|
248
|
-
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
249
|
-
]),
|
|
250
|
-
key: "1"
|
|
251
|
-
} : void 0,
|
|
252
|
-
t.$slots.optionImg ? {
|
|
253
|
-
name: "optionImg",
|
|
254
|
-
fn: x(() => [
|
|
255
|
-
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
256
|
-
]),
|
|
257
|
-
key: "2"
|
|
258
|
-
} : void 0,
|
|
259
|
-
t.$slots.optionFullscreen ? {
|
|
260
|
-
name: "optionFullscreen",
|
|
261
|
-
fn: x(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
262
|
-
p(t.$slots, "optionFullscreen", N(M({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
263
|
-
]),
|
|
264
|
-
key: "3"
|
|
265
|
-
} : void 0,
|
|
266
|
-
t.$slots.optionAnnotator ? {
|
|
267
|
-
name: "optionAnnotator",
|
|
268
|
-
fn: x(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
269
|
-
p(t.$slots, "optionAnnotator", N(M({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
270
|
-
]),
|
|
271
|
-
key: "4"
|
|
272
|
-
} : void 0
|
|
273
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
274
|
-
T.value ? (r(), c("svg", {
|
|
275
|
-
key: 4,
|
|
276
|
-
ref_key: "svgRef",
|
|
277
|
-
ref: H,
|
|
278
|
-
xmlns: s(Pe),
|
|
279
|
-
class: L({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
280
|
-
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
281
|
-
style: G(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
282
|
-
}, [
|
|
283
|
-
me(s(ve)),
|
|
284
|
-
t.$slots["chart-background"] ? (r(), c("foreignObject", {
|
|
285
|
-
key: 0,
|
|
286
|
-
x: 0,
|
|
287
|
-
y: 0,
|
|
288
|
-
width: l.value.width,
|
|
289
|
-
height: l.value.height,
|
|
290
|
-
style: {
|
|
291
|
-
pointerEvents: "none"
|
|
292
|
-
}
|
|
293
|
-
}, [
|
|
294
|
-
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
295
|
-
], 8, Ee)) : f("", !0),
|
|
296
|
-
e.value.style.chart.layout.curved ? (r(), c("g", Ge, [
|
|
297
|
-
(r(!0), c(ae, null, oe(Z.value, (a, o) => (r(), c("path", {
|
|
298
|
-
d: a.curve,
|
|
299
|
-
"stroke-width": v.value.mark,
|
|
300
|
-
stroke: u.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
301
|
-
"stroke-linecap": "round",
|
|
302
|
-
fill: "none",
|
|
303
|
-
class: L({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= u.value })
|
|
304
|
-
}, null, 10, Le))), 256))
|
|
305
|
-
])) : (r(), c("g", je, [
|
|
306
|
-
(r(!0), c(ae, null, oe(Z.value, (a, o) => (r(), c("line", {
|
|
307
|
-
x1: a.x1,
|
|
308
|
-
y1: a.y1,
|
|
309
|
-
x2: a.x2,
|
|
310
|
-
y2: a.y2,
|
|
311
|
-
"stroke-width": v.value.mark,
|
|
312
|
-
stroke: u.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
313
|
-
"stroke-linecap": "round"
|
|
314
|
-
}, null, 8, Be))), 256))
|
|
315
|
-
])),
|
|
316
|
-
e.value.style.chart.percentage.show ? (r(), c("text", {
|
|
317
|
-
key: 3,
|
|
318
|
-
x: $.value.x,
|
|
319
|
-
y: $.value.y,
|
|
320
|
-
"font-size": $.value.fontSize,
|
|
321
|
-
fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? s(se)(e.value.style.chart.layout.activeColor, u.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
|
|
322
|
-
"font-weight": $.value.bold ? "bold" : "normal",
|
|
323
|
-
"text-anchor": $.value.textAnchor
|
|
324
|
-
}, ke(s(xe)(
|
|
325
|
-
e.value.style.chart.percentage.formatter,
|
|
326
|
-
u.value,
|
|
327
|
-
s(Ae)({
|
|
328
|
-
v: u.value,
|
|
329
|
-
s: "%",
|
|
330
|
-
r: e.value.style.chart.percentage.rounding
|
|
331
|
-
})
|
|
332
|
-
)), 9, Xe)) : f("", !0),
|
|
333
|
-
p(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
334
|
-
], 14, Re)) : f("", !0),
|
|
335
|
-
t.$slots.watermark ? (r(), c("div", De, [
|
|
336
|
-
p(t.$slots, "watermark", N(M({ isPrinting: s(Y) || s(q) })), void 0, !0)
|
|
337
|
-
])) : f("", !0),
|
|
338
|
-
t.$slots.source ? (r(), c("div", He, [
|
|
339
|
-
p(t.$slots, "source", {}, void 0, !0)
|
|
340
|
-
], 512)) : f("", !0),
|
|
341
|
-
T.value ? f("", !0) : (r(), z(s(ie), {
|
|
342
|
-
key: 7,
|
|
343
|
-
config: {
|
|
344
|
-
type: "tiremarks",
|
|
345
|
-
style: {
|
|
346
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
347
|
-
tiremarks: {
|
|
348
|
-
color: "#CCCCCC"
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}, null, 8, ["config"]))
|
|
353
|
-
], 46, Te));
|
|
354
|
-
}
|
|
355
|
-
}, at = /* @__PURE__ */ Me(Ve, [["__scopeId", "data-v-f25a17b8"]]);
|
|
356
|
-
export {
|
|
357
|
-
at as default
|
|
358
|
-
};
|