vue-data-ui 3.0.0-next.0 → 3.0.0-next.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/README.md +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,336 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as $, computed as p, ref as c, watch as Q, shallowRef as Z, onMounted as ke, onBeforeUnmount as we, createElementBlock as v, openBlock as s, unref as l, normalizeStyle as M, createBlock as _, createCommentVNode as h, createSlots as be, withCtx as k, renderSlot as y, normalizeProps as I, guardReactiveProps as A, normalizeClass as T, createVNode as Ce, Fragment as ee, renderList as te, toDisplayString as Oe } from "vue";
|
|
2
|
-
import { u as $e, c as _e, a as Ie, o as Ae, e as Pe, w as ae, m as xe, X as Fe, i as Se, v as le, f as ze } from "./index-DMqAxz7R.js";
|
|
3
|
-
import { t as Me, u as Te } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as oe } from "./useNestedProp-YgN3FV_8.js";
|
|
5
|
-
import { u as Ne } from "./usePrinter-COkTjv6C.js";
|
|
6
|
-
import { u as Re } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
-
import { u as Ue } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Xe from "./Title-D29apS4l.js";
|
|
9
|
-
import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], De = ["d", "fill"], Ye = ["cx", "cy", "r", "stroke", "stroke-width"], He = ["x", "y", "font-size", "fill", "font-weight"], We = {
|
|
11
|
-
key: 5,
|
|
12
|
-
class: "vue-data-ui-watermark"
|
|
13
|
-
}, qe = {
|
|
14
|
-
__name: "vue-ui-wheel",
|
|
15
|
-
props: {
|
|
16
|
-
config: {
|
|
17
|
-
type: Object,
|
|
18
|
-
default() {
|
|
19
|
-
return {};
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
dataset: {
|
|
23
|
-
type: Object,
|
|
24
|
-
default() {
|
|
25
|
-
return {};
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
setup(ne, { expose: se }) {
|
|
30
|
-
const ue = $(() => import("./PenAndPaper-DhBJsnob.js")), re = $(() => import("./vue-ui-skeleton-CjN2ZdgT.js")), ie = $(() => import("./UserOptions-Bdit7AWO.js")), ce = $(() => import("./PackageVersion-D0VPY8-5.js")), { vue_ui_wheel: ve } = $e(), d = ne, P = p(() => !!d.dataset && Object.keys(d.dataset).length), x = c(_e()), he = c(null), N = c(0), w = c(null), R = c(null), U = c(null), X = c(null), E = c(0), e = p({
|
|
31
|
-
get: () => j(),
|
|
32
|
-
set: (t) => t
|
|
33
|
-
}), { userOptionsVisible: F, setUserOptionsVisibility: L, keepUserOptionState: B } = Re({ config: e.value }), { svgRef: G } = Ue({ config: e.value.style.chart.title });
|
|
34
|
-
function j() {
|
|
35
|
-
const t = oe({
|
|
36
|
-
userConfig: d.config,
|
|
37
|
-
defaultConfig: ve
|
|
38
|
-
});
|
|
39
|
-
return t.theme ? {
|
|
40
|
-
...oe({
|
|
41
|
-
userConfig: Ie.vue_ui_wheel[t.theme] || d.config,
|
|
42
|
-
defaultConfig: t
|
|
43
|
-
})
|
|
44
|
-
} : t;
|
|
45
|
-
}
|
|
46
|
-
Q(() => d.config, (t) => {
|
|
47
|
-
e.value = j(), F.value = !e.value.userOptions.showOnChartHover, V(), E.value += 1;
|
|
48
|
-
}, { deep: !0 });
|
|
49
|
-
const { isPrinting: D, isImaging: Y, generatePdf: H, generateImage: W } = Ne({
|
|
50
|
-
elementId: x.value,
|
|
51
|
-
fileName: e.value.style.chart.title.text || "vue-ui-wheel",
|
|
52
|
-
options: e.value.userOptions.print
|
|
53
|
-
}), de = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), o = c({
|
|
54
|
-
size: 360,
|
|
55
|
-
height: 360,
|
|
56
|
-
width: 360
|
|
57
|
-
}), S = c(e.value.style.chart.layout.percentage.fontSize), u = p(() => ({
|
|
58
|
-
radius: Math.min(o.value.width, o.value.height) * 0.9 / 2,
|
|
59
|
-
centerX: o.value.width / 2,
|
|
60
|
-
centerY: o.value.height / 2
|
|
61
|
-
}));
|
|
62
|
-
function q(t, n = 1) {
|
|
63
|
-
return {
|
|
64
|
-
x: u.value.centerX + u.value.radius * Math.cos(29.85 + t * Math.PI / 180) * n,
|
|
65
|
-
y: u.value.centerY + u.value.radius * Math.sin(29.85 + t * Math.PI / 180) * n
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
const r = c(e.value.style.chart.animation.use ? 0 : d.dataset.percentage || 0);
|
|
69
|
-
Q(() => d.dataset, (t) => {
|
|
70
|
-
e.value.style.chart.animation.use ? J(t.percentage) : r.value = t.percentage || 0;
|
|
71
|
-
}, { deep: !0 });
|
|
72
|
-
const f = Z(null), g = Z(null);
|
|
73
|
-
ke(() => {
|
|
74
|
-
V();
|
|
75
|
-
});
|
|
76
|
-
function V() {
|
|
77
|
-
if (Ae(d.dataset) && Pe({
|
|
78
|
-
componentName: "VueUiWheel",
|
|
79
|
-
type: "dataset"
|
|
80
|
-
}), J(d.dataset.percentage || 0), e.value.responsive) {
|
|
81
|
-
const t = Me(() => {
|
|
82
|
-
const { width: n, height: a } = Te({
|
|
83
|
-
chart: w.value,
|
|
84
|
-
title: e.value.style.chart.title.text ? R.value : null,
|
|
85
|
-
source: U.value,
|
|
86
|
-
noTitle: X.value
|
|
87
|
-
});
|
|
88
|
-
requestAnimationFrame(() => {
|
|
89
|
-
o.value.width = n, o.value.height = a, S.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(n, a);
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
f.value && (g.value && f.value.unobserve(g.value), f.value.disconnect()), f.value = new ResizeObserver(t), g.value = w.value.parentNode, f.value.observe(g.value);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
we(() => {
|
|
96
|
-
f.value && (g.value && f.value.unobserve(g.value), f.value.disconnect());
|
|
97
|
-
});
|
|
98
|
-
function J(t) {
|
|
99
|
-
let n = e.value.style.chart.animation.speed;
|
|
100
|
-
const a = Math.abs(t - r.value) / (n * 120);
|
|
101
|
-
function i() {
|
|
102
|
-
r.value < t ? r.value = Math.min(r.value + a, t) : r.value > t && (r.value = Math.max(r.value - a, t)), r.value !== t && requestAnimationFrame(i);
|
|
103
|
-
}
|
|
104
|
-
i();
|
|
105
|
-
}
|
|
106
|
-
const m = p(() => Math.max(100, e.value.style.chart.layout.wheel.ticks.quantity)), b = p(() => 100 / m.value), K = p(() => {
|
|
107
|
-
const t = [];
|
|
108
|
-
for (let n = 0; n < m.value; n += 1) {
|
|
109
|
-
const a = r.value > n * b.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: i, y: pe } = q(o.value.size / m.value * n), { x: ge, y: me } = q(o.value.size / m.value * n, e.value.style.chart.layout.wheel.ticks.sizeRatio);
|
|
110
|
-
t.push({
|
|
111
|
-
x1: i,
|
|
112
|
-
y1: pe,
|
|
113
|
-
x2: ge,
|
|
114
|
-
y2: me,
|
|
115
|
-
color: e.value.style.chart.layout.wheel.ticks.gradient.show ? ae(a, n * b.value / m.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
return t;
|
|
119
|
-
}), ye = p(() => xe({ series: K.value.map((t) => ({
|
|
120
|
-
name: "",
|
|
121
|
-
value: 1,
|
|
122
|
-
color: t.color
|
|
123
|
-
})) }, u.value.centerX, u.value.centerY, u.value.radius, u.value.radius, 1.99999, 2, 1, 360, 105.25, u.value.radius * (1 - e.value.style.chart.layout.wheel.ticks.sizeRatio))), C = c(!1);
|
|
124
|
-
function fe(t) {
|
|
125
|
-
C.value = t, N.value += 1;
|
|
126
|
-
}
|
|
127
|
-
const O = c(!1);
|
|
128
|
-
function z() {
|
|
129
|
-
O.value = !O.value;
|
|
130
|
-
}
|
|
131
|
-
return se({
|
|
132
|
-
generatePdf: H,
|
|
133
|
-
generateImage: W,
|
|
134
|
-
toggleAnnotator: z
|
|
135
|
-
}), (t, n) => (s(), v("div", {
|
|
136
|
-
class: "vue-ui-wheel",
|
|
137
|
-
ref_key: "wheelChart",
|
|
138
|
-
ref: w,
|
|
139
|
-
id: x.value,
|
|
140
|
-
style: M(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
141
|
-
onMouseenter: n[0] || (n[0] = () => l(L)(!0)),
|
|
142
|
-
onMouseleave: n[1] || (n[1] = () => l(L)(!1))
|
|
143
|
-
}, [
|
|
144
|
-
e.value.userOptions.buttons.annotator ? (s(), _(l(ue), {
|
|
145
|
-
key: 0,
|
|
146
|
-
svgRef: l(G),
|
|
147
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
148
|
-
color: e.value.style.chart.color,
|
|
149
|
-
active: O.value,
|
|
150
|
-
onClose: z
|
|
151
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
152
|
-
de.value ? (s(), v("div", {
|
|
153
|
-
key: 1,
|
|
154
|
-
ref_key: "noTitle",
|
|
155
|
-
ref: X,
|
|
156
|
-
class: "vue-data-ui-no-title-space",
|
|
157
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
158
|
-
}, null, 512)) : h("", !0),
|
|
159
|
-
e.value.style.chart.title.text ? (s(), v("div", {
|
|
160
|
-
key: 2,
|
|
161
|
-
ref_key: "chartTitle",
|
|
162
|
-
ref: R,
|
|
163
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
164
|
-
}, [
|
|
165
|
-
(s(), _(Xe, {
|
|
166
|
-
key: `title_${E.value}`,
|
|
167
|
-
config: {
|
|
168
|
-
title: {
|
|
169
|
-
cy: "wheel-title",
|
|
170
|
-
...e.value.style.chart.title
|
|
171
|
-
},
|
|
172
|
-
subtitle: {
|
|
173
|
-
cy: "wheel-subtitle",
|
|
174
|
-
...e.value.style.chart.title.subtitle
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}, null, 8, ["config"]))
|
|
178
|
-
], 512)) : h("", !0),
|
|
179
|
-
e.value.userOptions.show && P.value && (l(B) || l(F)) ? (s(), _(l(ie), {
|
|
180
|
-
ref_key: "details",
|
|
181
|
-
ref: he,
|
|
182
|
-
key: `user_options_${N.value}`,
|
|
183
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
184
|
-
color: e.value.style.chart.color,
|
|
185
|
-
isPrinting: l(D),
|
|
186
|
-
isImaging: l(Y),
|
|
187
|
-
uid: x.value,
|
|
188
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
189
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
190
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
191
|
-
hasXls: !1,
|
|
192
|
-
isFullscreen: C.value,
|
|
193
|
-
position: e.value.userOptions.position,
|
|
194
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
195
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
196
|
-
isAnnotation: O.value,
|
|
197
|
-
chartElement: w.value,
|
|
198
|
-
callbacks: e.value.userOptions.callbacks,
|
|
199
|
-
onToggleFullscreen: fe,
|
|
200
|
-
onGeneratePdf: l(H),
|
|
201
|
-
onGenerateImage: l(W),
|
|
202
|
-
onToggleAnnotator: z,
|
|
203
|
-
style: M({
|
|
204
|
-
visibility: l(B) ? l(F) ? "visible" : "hidden" : "visible"
|
|
205
|
-
})
|
|
206
|
-
}, be({ _: 2 }, [
|
|
207
|
-
t.$slots.menuIcon ? {
|
|
208
|
-
name: "menuIcon",
|
|
209
|
-
fn: k(({ isOpen: a, color: i }) => [
|
|
210
|
-
y(t.$slots, "menuIcon", I(A({ isOpen: a, color: i })), void 0, !0)
|
|
211
|
-
]),
|
|
212
|
-
key: "0"
|
|
213
|
-
} : void 0,
|
|
214
|
-
t.$slots.optionPdf ? {
|
|
215
|
-
name: "optionPdf",
|
|
216
|
-
fn: k(() => [
|
|
217
|
-
y(t.$slots, "optionPdf", {}, void 0, !0)
|
|
218
|
-
]),
|
|
219
|
-
key: "1"
|
|
220
|
-
} : void 0,
|
|
221
|
-
t.$slots.optionImg ? {
|
|
222
|
-
name: "optionImg",
|
|
223
|
-
fn: k(() => [
|
|
224
|
-
y(t.$slots, "optionImg", {}, void 0, !0)
|
|
225
|
-
]),
|
|
226
|
-
key: "2"
|
|
227
|
-
} : void 0,
|
|
228
|
-
t.$slots.optionFullscreen ? {
|
|
229
|
-
name: "optionFullscreen",
|
|
230
|
-
fn: k(({ toggleFullscreen: a, isFullscreen: i }) => [
|
|
231
|
-
y(t.$slots, "optionFullscreen", I(A({ toggleFullscreen: a, isFullscreen: i })), void 0, !0)
|
|
232
|
-
]),
|
|
233
|
-
key: "3"
|
|
234
|
-
} : void 0,
|
|
235
|
-
t.$slots.optionAnnotator ? {
|
|
236
|
-
name: "optionAnnotator",
|
|
237
|
-
fn: k(({ toggleAnnotator: a, isAnnotator: i }) => [
|
|
238
|
-
y(t.$slots, "optionAnnotator", I(A({ toggleAnnotator: a, isAnnotator: i })), void 0, !0)
|
|
239
|
-
]),
|
|
240
|
-
key: "4"
|
|
241
|
-
} : void 0
|
|
242
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
243
|
-
P.value ? (s(), v("svg", {
|
|
244
|
-
key: 4,
|
|
245
|
-
ref_key: "svgRef",
|
|
246
|
-
ref: G,
|
|
247
|
-
xmlns: l(Fe),
|
|
248
|
-
class: T({ "vue-data-ui-fullscreen--on": C.value, "vue-data-ui-fulscreen--off": !C.value }),
|
|
249
|
-
viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
|
|
250
|
-
style: M(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
251
|
-
}, [
|
|
252
|
-
Ce(l(ce)),
|
|
253
|
-
t.$slots["chart-background"] ? (s(), v("foreignObject", {
|
|
254
|
-
key: 0,
|
|
255
|
-
x: 0,
|
|
256
|
-
y: 0,
|
|
257
|
-
width: o.value.width <= 0 ? 10 : o.value.width,
|
|
258
|
-
height: o.value.height <= 0 ? 10 : o.value.height,
|
|
259
|
-
style: {
|
|
260
|
-
pointerEvents: "none"
|
|
261
|
-
}
|
|
262
|
-
}, [
|
|
263
|
-
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
264
|
-
], 8, Ge)) : h("", !0),
|
|
265
|
-
e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(!0), v(ee, { key: 1 }, te(K.value, (a, i) => (s(), v("line", {
|
|
266
|
-
x1: a.x1,
|
|
267
|
-
x2: a.x2,
|
|
268
|
-
y1: a.y1,
|
|
269
|
-
y2: a.y2,
|
|
270
|
-
stroke: a.color,
|
|
271
|
-
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(o.value.width, o.value.height),
|
|
272
|
-
"stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
273
|
-
class: T({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i * b.value <= r.value })
|
|
274
|
-
}, null, 10, je))), 256)) : (s(!0), v(ee, { key: 2 }, te(ye.value, (a, i) => (s(), v("path", {
|
|
275
|
-
d: a.arcSlice,
|
|
276
|
-
fill: a.color,
|
|
277
|
-
class: T({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i * b.value <= r.value })
|
|
278
|
-
}, null, 10, De))), 256)),
|
|
279
|
-
e.value.style.chart.layout.innerCircle.show ? (s(), v("circle", {
|
|
280
|
-
key: 3,
|
|
281
|
-
cx: u.value.centerX,
|
|
282
|
-
cy: u.value.centerY,
|
|
283
|
-
r: u.value.radius * 0.8 <= 0 ? 1e-4 : u.value.radius * 0.8,
|
|
284
|
-
stroke: e.value.style.chart.layout.innerCircle.stroke,
|
|
285
|
-
"stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
|
|
286
|
-
fill: "none"
|
|
287
|
-
}, null, 8, Ye)) : h("", !0),
|
|
288
|
-
e.value.style.chart.layout.percentage.show ? (s(), v("text", {
|
|
289
|
-
key: 4,
|
|
290
|
-
x: u.value.centerX,
|
|
291
|
-
y: u.value.centerY + S.value / 3,
|
|
292
|
-
"font-size": S.value,
|
|
293
|
-
fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? l(ae)(e.value.style.chart.layout.wheel.ticks.activeColor, r.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
|
|
294
|
-
"text-anchor": "middle",
|
|
295
|
-
"font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
296
|
-
style: { "font-variant-numeric": "tabluar-nums" }
|
|
297
|
-
}, Oe(l(Se)(
|
|
298
|
-
e.value.style.chart.layout.percentage.formatter,
|
|
299
|
-
l(le)(r.value),
|
|
300
|
-
l(ze)({
|
|
301
|
-
v: l(le)(r.value),
|
|
302
|
-
s: "%",
|
|
303
|
-
r: e.value.style.chart.layout.percentage.rounding
|
|
304
|
-
})
|
|
305
|
-
)), 9, He)) : h("", !0),
|
|
306
|
-
y(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
307
|
-
], 14, Be)) : h("", !0),
|
|
308
|
-
t.$slots.watermark ? (s(), v("div", We, [
|
|
309
|
-
y(t.$slots, "watermark", I(A({ isPrinting: l(D) || l(Y) })), void 0, !0)
|
|
310
|
-
])) : h("", !0),
|
|
311
|
-
t.$slots.source ? (s(), v("div", {
|
|
312
|
-
key: 6,
|
|
313
|
-
ref_key: "source",
|
|
314
|
-
ref: U,
|
|
315
|
-
dir: "auto"
|
|
316
|
-
}, [
|
|
317
|
-
y(t.$slots, "source", {}, void 0, !0)
|
|
318
|
-
], 512)) : h("", !0),
|
|
319
|
-
P.value ? h("", !0) : (s(), _(l(re), {
|
|
320
|
-
key: 7,
|
|
321
|
-
config: {
|
|
322
|
-
type: "wheel",
|
|
323
|
-
style: {
|
|
324
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
325
|
-
wheel: {
|
|
326
|
-
color: "#CCCCCC"
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}, null, 8, ["config"]))
|
|
331
|
-
], 44, Le));
|
|
332
|
-
}
|
|
333
|
-
}, ot = /* @__PURE__ */ Ee(qe, [["__scopeId", "data-v-b1e78d19"]]);
|
|
334
|
-
export {
|
|
335
|
-
ot as default
|
|
336
|
-
};
|