vue-data-ui 3.5.0 → 3.5.1
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 +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,430 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as j, computed as h, ref as v, toRefs as Ie, watch as ce, onMounted as ze, createElementBlock as u, openBlock as r, unref as s, normalizeStyle as X, normalizeClass as V, createBlock as R, createCommentVNode as m, createSlots as Fe, withCtx as $, renderSlot as p, normalizeProps as E, guardReactiveProps as M, createVNode as Te, Fragment as ve, renderList as he, toDisplayString as Ne } from "vue";
|
|
2
|
-
import { c as Re, t as Ee, x as Me, o as Le, f as Ue, i as de, X as Be, a as Ge, d as De } from "./lib-C_mNZmhD.js";
|
|
3
|
-
import { t as He, u as je } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Xe, a as ge } from "./useNestedProp-BjZe1Y85.js";
|
|
5
|
-
import { u as Ve, B as qe } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as Ye } from "./usePrinter-DTzqpYKF.js";
|
|
7
|
-
import { u as We } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
-
import { u as Je } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
-
import { u as Ke } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
-
import { t as Qe } from "./themes-AUNCOb2G.js";
|
|
11
|
-
import Ze from "./Title-l36lOBMx.js";
|
|
12
|
-
import et from "./img-BecE5qXd.js";
|
|
13
|
-
import { _ as tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const at = ["id"], lt = ["xmlns", "viewBox"], ot = ["width", "height"], st = { key: 1 }, nt = ["d", "stroke-width", "stroke"], rt = { key: 2 }, ut = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], it = { key: 3 }, ct = ["x", "y", "height"], vt = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], ht = {
|
|
15
|
-
key: 4,
|
|
16
|
-
class: "vue-data-ui-watermark"
|
|
17
|
-
}, dt = {
|
|
18
|
-
__name: "vue-ui-tiremarks",
|
|
19
|
-
props: {
|
|
20
|
-
config: {
|
|
21
|
-
type: Object,
|
|
22
|
-
default() {
|
|
23
|
-
return {};
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
dataset: {
|
|
27
|
-
type: Object,
|
|
28
|
-
default() {
|
|
29
|
-
return {};
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
setup(fe, { expose: pe }) {
|
|
34
|
-
const ye = j(() => import("./PenAndPaper-DSvu9dwa.js")), me = j(() => import("./UserOptions-CGnQt6Fd.js")), ke = j(() => import("./PackageVersion-Cyx_s25h.js")), { vue_ui_tiremarks: be } = Xe(), C = fe, we = h(() => !!C.dataset && Object.keys(C.dataset).length), L = v(Re()), _ = v(null), Ce = v(null), q = v(null), Y = v(null), W = v(0), J = v(0), x = v(null), S = v(null), e = v(D()), { loading: K, FINAL_DATASET: U } = Ve({
|
|
35
|
-
...Ie(C),
|
|
36
|
-
FINAL_CONFIG: e,
|
|
37
|
-
prepareConfig: D,
|
|
38
|
-
skeletonDataset: { percentage: 50 },
|
|
39
|
-
skeletonConfig: Ee({
|
|
40
|
-
defaultConfig: e.value,
|
|
41
|
-
userConfig: {
|
|
42
|
-
userOptions: { show: !1 },
|
|
43
|
-
style: {
|
|
44
|
-
chart: {
|
|
45
|
-
backgroundColor: "#99999930",
|
|
46
|
-
animation: { use: !1 },
|
|
47
|
-
layout: {
|
|
48
|
-
activeColor: "#6A6A6A80",
|
|
49
|
-
inactiveColor: "#CACACA80",
|
|
50
|
-
ticks: {
|
|
51
|
-
gradient: { show: !1 }
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
})
|
|
58
|
-
}), { userOptionsVisible: B, setUserOptionsVisibility: Q, keepUserOptionState: Z } = Je({ config: e.value }), { svgRef: G } = Ke({ config: e.value.style.chart.title });
|
|
59
|
-
function D() {
|
|
60
|
-
const t = ge({
|
|
61
|
-
userConfig: C.config,
|
|
62
|
-
defaultConfig: be
|
|
63
|
-
});
|
|
64
|
-
return t.theme ? {
|
|
65
|
-
...ge({
|
|
66
|
-
userConfig: Qe.vue_ui_tiremarks[t.theme] || C.config,
|
|
67
|
-
defaultConfig: t
|
|
68
|
-
})
|
|
69
|
-
} : t;
|
|
70
|
-
}
|
|
71
|
-
ce(() => C.config, (t) => {
|
|
72
|
-
e.value = D(), B.value = !e.value.userOptions.showOnChartHover, z.value = e.value.style.chart.width, F.value = e.value.style.chart.height, se(), J.value += 1;
|
|
73
|
-
}, { deep: !0 });
|
|
74
|
-
const { isPrinting: ee, isImaging: te, generatePdf: ae, generateImage: le } = Ye({
|
|
75
|
-
elementId: L.value,
|
|
76
|
-
fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
|
|
77
|
-
options: e.value.userOptions.print
|
|
78
|
-
}), _e = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), i = v(e.value.style.chart.animation.use ? 0 : Me(U.value.percentage));
|
|
79
|
-
ce(() => U.value, (t) => {
|
|
80
|
-
e.value.style.chart.animation.use ? oe(t.percentage) : i.value = t.percentage || 0;
|
|
81
|
-
}, { deep: !0 }), ze(() => {
|
|
82
|
-
se();
|
|
83
|
-
});
|
|
84
|
-
function oe(t) {
|
|
85
|
-
let l = e.value.style.chart.animation.speed;
|
|
86
|
-
const a = Math.abs(t - i.value) / (l * 120);
|
|
87
|
-
function o() {
|
|
88
|
-
i.value < t ? i.value = Math.min(i.value + a, t) : i.value > t && (i.value = Math.max(i.value - a, t)), i.value !== t && requestAnimationFrame(o);
|
|
89
|
-
}
|
|
90
|
-
o();
|
|
91
|
-
}
|
|
92
|
-
const $e = h(() => !!e.value.debug);
|
|
93
|
-
function se() {
|
|
94
|
-
if (Le(C.dataset) && Ue({
|
|
95
|
-
componentName: "VueUiTiremarks",
|
|
96
|
-
type: "dataset",
|
|
97
|
-
debug: $e.value
|
|
98
|
-
}), e.value.responsive) {
|
|
99
|
-
const t = He(() => {
|
|
100
|
-
const { width: l, height: a } = je({
|
|
101
|
-
chart: _.value,
|
|
102
|
-
title: e.value.style.chart.title.text ? q.value : null,
|
|
103
|
-
source: Y.value
|
|
104
|
-
});
|
|
105
|
-
requestAnimationFrame(() => {
|
|
106
|
-
z.value = Math.max(0.1, l), F.value = Math.max(0.1, a - 12);
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
x.value && (S.value && x.value.unobserve(S.value), x.value.disconnect()), x.value = new ResizeObserver(t), S.value = _.value.parentNode, x.value.observe(S.value);
|
|
110
|
-
}
|
|
111
|
-
oe(U.value.percentage || 0);
|
|
112
|
-
}
|
|
113
|
-
const P = h(() => e.value.style.chart.layout.display === "vertical"), c = h(() => {
|
|
114
|
-
const t = e.value.style.chart.percentage.show, l = {
|
|
115
|
-
top: t ? 48 : 12,
|
|
116
|
-
left: t ? 64 : 16,
|
|
117
|
-
right: t ? 64 : 16,
|
|
118
|
-
bottom: t ? 48 : 12
|
|
119
|
-
};
|
|
120
|
-
return P.value ? {
|
|
121
|
-
top: e.value.style.chart.percentage.verticalPosition === "top" ? l.top : 3,
|
|
122
|
-
left: 3,
|
|
123
|
-
right: 3,
|
|
124
|
-
bottom: e.value.style.chart.percentage.verticalPosition === "bottom" ? l.bottom : 3
|
|
125
|
-
} : {
|
|
126
|
-
top: 0,
|
|
127
|
-
bottom: 0,
|
|
128
|
-
left: e.value.style.chart.percentage.horizontalPosition === "left" ? l.left : 16,
|
|
129
|
-
right: e.value.style.chart.percentage.horizontalPosition === "right" ? l.right : 10
|
|
130
|
-
};
|
|
131
|
-
}), I = h(() => Object.values(c.value).reduce((t, l) => t + l, 0)), z = v(e.value.style.chart.width), F = v(e.value.style.chart.height), n = h(() => ({
|
|
132
|
-
height: F.value,
|
|
133
|
-
width: z.value
|
|
134
|
-
})), ne = h(() => ({
|
|
135
|
-
horizontal: {
|
|
136
|
-
x: f.value.x + (e.value.style.chart.percentage.horizontalPosition === "left" ? 6 : 3),
|
|
137
|
-
y: n.value.height / 2 - f.value.fontSize / 2
|
|
138
|
-
},
|
|
139
|
-
vertical: {
|
|
140
|
-
x: n.value.width / 2 - 20,
|
|
141
|
-
y: f.value.y - f.value.fontSize / 2
|
|
142
|
-
}
|
|
143
|
-
})[e.value.style.chart.layout.display]), d = h(() => P.value ? {
|
|
144
|
-
mark: (n.value.height - I.value) / 100 * 0.5,
|
|
145
|
-
space: (n.value.height - I.value) / 100 * 0.5
|
|
146
|
-
} : {
|
|
147
|
-
mark: (n.value.width - I.value) / 100 * 0.5,
|
|
148
|
-
space: (n.value.width - I.value) / 100 * 0.5
|
|
149
|
-
}), re = h(() => {
|
|
150
|
-
const t = [];
|
|
151
|
-
for (let a = 0; a < 100; a += 1) {
|
|
152
|
-
const o = e.value.style.chart.layout.ticks.gradient.show ? de(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
|
|
153
|
-
if (P.value) {
|
|
154
|
-
const y = e.value.style.chart.layout.crescendo ? (100 - a) * (n.value.width - c.value.left - c.value.right) / 100 / 3 : 0, g = c.value.left + 4 + y, k = n.value.width - c.value.right - 4 - y, b = n.value.height - c.value.bottom - a * d.value.mark - a * d.value.space - d.value.mark, w = n.value.height - c.value.bottom - a * d.value.mark - a * d.value.space - d.value.mark, A = (k - g) / e.value.style.chart.layout.curveAngleX, O = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
|
|
155
|
-
t.push({
|
|
156
|
-
x1: g,
|
|
157
|
-
x2: k,
|
|
158
|
-
y1: b,
|
|
159
|
-
y2: w,
|
|
160
|
-
curve: `M ${g} ${b} C ${g + A} ${b - O}, ${k - A} ${w - O}, ${k} ${w}`,
|
|
161
|
-
color: o
|
|
162
|
-
});
|
|
163
|
-
} else {
|
|
164
|
-
const y = e.value.style.chart.layout.crescendo ? (100 - a) * (n.value.height - c.value.top - c.value.bottom) / 100 / 3 : 0, g = c.value.left + a * d.value.mark + a * d.value.space - d.value.mark, k = g, b = c.value.top + 4 + y, w = n.value.height - c.value.bottom - 4 - y, A = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), O = (w - b) / e.value.style.chart.layout.curveAngleX;
|
|
165
|
-
t.push({
|
|
166
|
-
x1: g,
|
|
167
|
-
x2: k,
|
|
168
|
-
y1: b,
|
|
169
|
-
y2: w,
|
|
170
|
-
curve: `M ${g} ${b} C ${g + A} ${b + O}, ${k + A} ${w - O}, ${k} ${w}`,
|
|
171
|
-
color: o
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
return t;
|
|
176
|
-
}), f = h(() => {
|
|
177
|
-
let t, l, a;
|
|
178
|
-
const o = e.value.style.chart.percentage.fontSize / 3;
|
|
179
|
-
return P.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = n.value.width / 2, l = c.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = n.value.width / 2, l = n.value.height - c.value.bottom / 2 + o, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, l = n.value.height / 2 + o, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = n.value.width - c.value.right + 8, l = n.value.height / 2 + o, a = "start"), {
|
|
180
|
-
x: t,
|
|
181
|
-
y: l,
|
|
182
|
-
textAnchor: a,
|
|
183
|
-
bold: e.value.style.chart.percentage.bold,
|
|
184
|
-
fontSize: e.value.style.chart.percentage.fontSize,
|
|
185
|
-
fill: e.value.style.chart.percentage.color
|
|
186
|
-
};
|
|
187
|
-
}), T = v(!1);
|
|
188
|
-
function ue(t) {
|
|
189
|
-
T.value = t, W.value += 1;
|
|
190
|
-
}
|
|
191
|
-
const N = v(!1);
|
|
192
|
-
function H() {
|
|
193
|
-
N.value = !N.value;
|
|
194
|
-
}
|
|
195
|
-
async function xe({ scale: t = 2 } = {}) {
|
|
196
|
-
if (!_.value) return;
|
|
197
|
-
const { width: l, height: a } = _.value.getBoundingClientRect(), o = l / a, { imageUri: y, base64: g } = await et({ domElement: _.value, base64: !0, img: !0, scale: t });
|
|
198
|
-
return {
|
|
199
|
-
imageUri: y,
|
|
200
|
-
base64: g,
|
|
201
|
-
title: e.value.style.chart.title.text,
|
|
202
|
-
width: l,
|
|
203
|
-
height: a,
|
|
204
|
-
aspectRatio: o
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
const Ae = h(() => e.value.style.chart.backgroundColor), Oe = h(() => e.value.style.chart.title), { exportSvg: Se, getSvg: Pe } = We({
|
|
208
|
-
svg: G,
|
|
209
|
-
title: Oe,
|
|
210
|
-
backgroundColor: Ae
|
|
211
|
-
});
|
|
212
|
-
async function ie({ isCb: t }) {
|
|
213
|
-
if (t) {
|
|
214
|
-
const { blob: l, url: a, text: o, dataUrl: y } = await Pe();
|
|
215
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: y });
|
|
216
|
-
} else
|
|
217
|
-
Se();
|
|
218
|
-
}
|
|
219
|
-
return pe({
|
|
220
|
-
getImage: xe,
|
|
221
|
-
generatePdf: ae,
|
|
222
|
-
generateImage: le,
|
|
223
|
-
generateSvg: ie,
|
|
224
|
-
toggleAnnotator: H,
|
|
225
|
-
toggleFullscreen: ue
|
|
226
|
-
}), (t, l) => (r(), u("div", {
|
|
227
|
-
ref_key: "tiremarksChart",
|
|
228
|
-
ref: _,
|
|
229
|
-
class: V(`vue-data-ui-component vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
230
|
-
style: X(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
231
|
-
id: L.value,
|
|
232
|
-
onMouseenter: l[0] || (l[0] = () => s(Q)(!0)),
|
|
233
|
-
onMouseleave: l[1] || (l[1] = () => s(Q)(!1))
|
|
234
|
-
}, [
|
|
235
|
-
e.value.userOptions.buttons.annotator ? (r(), R(s(ye), {
|
|
236
|
-
key: 0,
|
|
237
|
-
svgRef: s(G),
|
|
238
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
239
|
-
color: e.value.style.chart.color,
|
|
240
|
-
active: N.value,
|
|
241
|
-
onClose: H
|
|
242
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
243
|
-
_e.value ? (r(), u("div", {
|
|
244
|
-
key: 1,
|
|
245
|
-
ref_key: "noTitle",
|
|
246
|
-
ref: Ce,
|
|
247
|
-
class: "vue-data-ui-no-title-space",
|
|
248
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
249
|
-
}, null, 512)) : m("", !0),
|
|
250
|
-
e.value.style.chart.title.text ? (r(), u("div", {
|
|
251
|
-
key: 2,
|
|
252
|
-
ref_key: "chartTitle",
|
|
253
|
-
ref: q,
|
|
254
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
255
|
-
}, [
|
|
256
|
-
(r(), R(Ze, {
|
|
257
|
-
key: `title_${J.value}`,
|
|
258
|
-
config: {
|
|
259
|
-
title: {
|
|
260
|
-
cy: "wheel-title",
|
|
261
|
-
...e.value.style.chart.title
|
|
262
|
-
},
|
|
263
|
-
subtitle: {
|
|
264
|
-
cy: "wheel-subtitle",
|
|
265
|
-
...e.value.style.chart.title.subtitle
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}, null, 8, ["config"]))
|
|
269
|
-
], 512)) : m("", !0),
|
|
270
|
-
e.value.userOptions.show && we.value && (s(Z) || s(B)) ? (r(), R(s(me), {
|
|
271
|
-
ref: "details",
|
|
272
|
-
key: `user_options_${W.value}`,
|
|
273
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
274
|
-
color: e.value.style.chart.color,
|
|
275
|
-
isPrinting: s(ee),
|
|
276
|
-
isImaging: s(te),
|
|
277
|
-
uid: L.value,
|
|
278
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
279
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
280
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
281
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
282
|
-
hasXls: !1,
|
|
283
|
-
isFullscreen: T.value,
|
|
284
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
285
|
-
chartElement: _.value,
|
|
286
|
-
position: e.value.userOptions.position,
|
|
287
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
288
|
-
isAnnotation: N.value,
|
|
289
|
-
callbacks: e.value.userOptions.callbacks,
|
|
290
|
-
printScale: e.value.userOptions.print.scale,
|
|
291
|
-
onToggleFullscreen: ue,
|
|
292
|
-
onGeneratePdf: s(ae),
|
|
293
|
-
onGenerateImage: s(le),
|
|
294
|
-
onGenerateSvg: ie,
|
|
295
|
-
onToggleAnnotator: H,
|
|
296
|
-
style: X({
|
|
297
|
-
visibility: s(Z) ? s(B) ? "visible" : "hidden" : "visible"
|
|
298
|
-
})
|
|
299
|
-
}, Fe({ _: 2 }, [
|
|
300
|
-
t.$slots.menuIcon ? {
|
|
301
|
-
name: "menuIcon",
|
|
302
|
-
fn: $(({ isOpen: a, color: o }) => [
|
|
303
|
-
p(t.$slots, "menuIcon", E(M({ isOpen: a, color: o })), void 0, !0)
|
|
304
|
-
]),
|
|
305
|
-
key: "0"
|
|
306
|
-
} : void 0,
|
|
307
|
-
t.$slots.optionPdf ? {
|
|
308
|
-
name: "optionPdf",
|
|
309
|
-
fn: $(() => [
|
|
310
|
-
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
311
|
-
]),
|
|
312
|
-
key: "1"
|
|
313
|
-
} : void 0,
|
|
314
|
-
t.$slots.optionImg ? {
|
|
315
|
-
name: "optionImg",
|
|
316
|
-
fn: $(() => [
|
|
317
|
-
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
318
|
-
]),
|
|
319
|
-
key: "2"
|
|
320
|
-
} : void 0,
|
|
321
|
-
t.$slots.optionSvg ? {
|
|
322
|
-
name: "optionSvg",
|
|
323
|
-
fn: $(() => [
|
|
324
|
-
p(t.$slots, "optionSvg", {}, void 0, !0)
|
|
325
|
-
]),
|
|
326
|
-
key: "3"
|
|
327
|
-
} : void 0,
|
|
328
|
-
t.$slots.optionFullscreen ? {
|
|
329
|
-
name: "optionFullscreen",
|
|
330
|
-
fn: $(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
331
|
-
p(t.$slots, "optionFullscreen", E(M({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
332
|
-
]),
|
|
333
|
-
key: "4"
|
|
334
|
-
} : void 0,
|
|
335
|
-
t.$slots.optionAnnotator ? {
|
|
336
|
-
name: "optionAnnotator",
|
|
337
|
-
fn: $(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
338
|
-
p(t.$slots, "optionAnnotator", E(M({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
339
|
-
]),
|
|
340
|
-
key: "5"
|
|
341
|
-
} : void 0
|
|
342
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
343
|
-
(r(), u("svg", {
|
|
344
|
-
ref_key: "svgRef",
|
|
345
|
-
ref: G,
|
|
346
|
-
xmlns: s(Be),
|
|
347
|
-
class: V({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
|
|
348
|
-
viewBox: `0 0 ${z.value} ${F.value}`,
|
|
349
|
-
style: X(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
350
|
-
}, [
|
|
351
|
-
Te(s(ke)),
|
|
352
|
-
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
353
|
-
key: 0,
|
|
354
|
-
x: 0,
|
|
355
|
-
y: 0,
|
|
356
|
-
width: n.value.width,
|
|
357
|
-
height: n.value.height,
|
|
358
|
-
style: {
|
|
359
|
-
pointerEvents: "none"
|
|
360
|
-
}
|
|
361
|
-
}, [
|
|
362
|
-
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
363
|
-
], 8, ot)) : m("", !0),
|
|
364
|
-
e.value.style.chart.layout.curved ? (r(), u("g", st, [
|
|
365
|
-
(r(!0), u(ve, null, he(re.value, (a, o) => (r(), u("path", {
|
|
366
|
-
d: a.curve,
|
|
367
|
-
"stroke-width": d.value.mark,
|
|
368
|
-
stroke: i.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
369
|
-
"stroke-linecap": "round",
|
|
370
|
-
fill: "none",
|
|
371
|
-
class: V({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= i.value })
|
|
372
|
-
}, null, 10, nt))), 256))
|
|
373
|
-
])) : (r(), u("g", rt, [
|
|
374
|
-
(r(!0), u(ve, null, he(re.value, (a, o) => (r(), u("line", {
|
|
375
|
-
x1: a.x1,
|
|
376
|
-
y1: a.y1,
|
|
377
|
-
x2: a.x2,
|
|
378
|
-
y2: a.y2,
|
|
379
|
-
"stroke-width": d.value.mark,
|
|
380
|
-
stroke: i.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
381
|
-
"stroke-linecap": "round"
|
|
382
|
-
}, null, 8, ut))), 256))
|
|
383
|
-
])),
|
|
384
|
-
e.value.style.chart.percentage.show ? (r(), u("g", it, [
|
|
385
|
-
s(K) ? (r(), u("rect", {
|
|
386
|
-
key: 0,
|
|
387
|
-
x: ne.value.x,
|
|
388
|
-
y: ne.value.y,
|
|
389
|
-
width: 40,
|
|
390
|
-
height: f.value.fontSize,
|
|
391
|
-
fill: "#6A6A6A80",
|
|
392
|
-
rx: 3
|
|
393
|
-
}, null, 8, ct)) : (r(), u("text", {
|
|
394
|
-
key: 1,
|
|
395
|
-
x: f.value.x,
|
|
396
|
-
y: f.value.y,
|
|
397
|
-
"font-size": f.value.fontSize,
|
|
398
|
-
fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? s(de)(e.value.style.chart.layout.activeColor, i.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
|
|
399
|
-
"font-weight": f.value.bold ? "bold" : "normal",
|
|
400
|
-
"text-anchor": f.value.textAnchor
|
|
401
|
-
}, Ne(s(Ge)(
|
|
402
|
-
e.value.style.chart.percentage.formatter,
|
|
403
|
-
i.value,
|
|
404
|
-
s(De)({
|
|
405
|
-
v: i.value,
|
|
406
|
-
s: "%",
|
|
407
|
-
r: e.value.style.chart.percentage.rounding
|
|
408
|
-
})
|
|
409
|
-
)), 9, vt))
|
|
410
|
-
])) : m("", !0),
|
|
411
|
-
p(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
412
|
-
], 14, lt)),
|
|
413
|
-
t.$slots.watermark ? (r(), u("div", ht, [
|
|
414
|
-
p(t.$slots, "watermark", E(M({ isPrinting: s(ee) || s(te) })), void 0, !0)
|
|
415
|
-
])) : m("", !0),
|
|
416
|
-
t.$slots.source ? (r(), u("div", {
|
|
417
|
-
key: 5,
|
|
418
|
-
ref_key: "source",
|
|
419
|
-
ref: Y,
|
|
420
|
-
dir: "auto"
|
|
421
|
-
}, [
|
|
422
|
-
p(t.$slots, "source", {}, void 0, !0)
|
|
423
|
-
], 512)) : m("", !0),
|
|
424
|
-
s(K) ? (r(), R(qe, { key: 6 })) : m("", !0)
|
|
425
|
-
], 46, at));
|
|
426
|
-
}
|
|
427
|
-
}, Ot = /* @__PURE__ */ tt(dt, [["__scopeId", "data-v-e1952655"]]);
|
|
428
|
-
export {
|
|
429
|
-
Ot as default
|
|
430
|
-
};
|