vue-data-ui 2.16.6 → 2.17.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 +83 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1096 -160
- package/dist/types/vue-data-ui.d.ts +1096 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
- package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
- package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
- package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineAsyncComponent as $, computed as p, ref as c, watch as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import Xe from "./Title-
|
|
9
|
-
import
|
|
10
|
-
|
|
1
|
+
import { defineAsyncComponent as $, computed as p, ref as c, watch as Z, shallowRef as ee, onMounted as we, onBeforeUnmount as be, createElementBlock as v, openBlock as s, unref as l, normalizeStyle as M, createBlock as I, createCommentVNode as h, createSlots as Ce, withCtx as w, renderSlot as f, normalizeProps as _, guardReactiveProps as A, normalizeClass as T, createVNode as Oe, Fragment as te, renderList as ae, toDisplayString as $e } from "vue";
|
|
2
|
+
import { u as Ie, c as _e, a as Ae, o as Pe, e as xe, w as le, m as Fe, X as Se, i as ze, v as ne, f as Me } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { t as Te, u as Ne } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as oe } from "./useNestedProp-DjACxgdZ.js";
|
|
5
|
+
import { u as Re } from "./usePrinter-DDHcrl0A.js";
|
|
6
|
+
import { u as Ue } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Ee } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Xe from "./Title-B-2bV0SW.js";
|
|
9
|
+
import Le from "./img-Y_hYz-ZC.js";
|
|
10
|
+
import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], He = ["d", "fill"], We = ["cx", "cy", "r", "stroke", "stroke-width"], qe = ["x", "y", "font-size", "fill", "font-weight"], Ve = {
|
|
11
12
|
key: 5,
|
|
12
13
|
class: "vue-data-ui-watermark"
|
|
13
|
-
},
|
|
14
|
+
}, Je = {
|
|
14
15
|
__name: "vue-ui-wheel",
|
|
15
16
|
props: {
|
|
16
17
|
config: {
|
|
@@ -26,122 +27,129 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
|
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
},
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
30
|
+
setup(se, { expose: ue }) {
|
|
31
|
+
const re = $(() => import("./PenAndPaper-D6AqipIO.js")), ie = $(() => import("./vue-ui-skeleton-DJPjyNYn.js")), ce = $(() => import("./UserOptions-Dd34lEKb.js")), ve = $(() => import("./PackageVersion-5TR4ocqp.js")), { vue_ui_wheel: he } = Ie(), d = se, P = p(() => !!d.dataset && Object.keys(d.dataset).length), x = c(_e()), de = c(null), N = c(0), g = c(null), R = c(null), U = c(null), E = c(null), X = c(0), e = p({
|
|
31
32
|
get: () => j(),
|
|
32
33
|
set: (t) => t
|
|
33
|
-
}), { userOptionsVisible: F, setUserOptionsVisibility: L, keepUserOptionState: B } =
|
|
34
|
+
}), { userOptionsVisible: F, setUserOptionsVisibility: L, keepUserOptionState: B } = Ue({ config: e.value }), { svgRef: G } = Ee({ config: e.value.style.chart.title });
|
|
34
35
|
function j() {
|
|
35
|
-
const t =
|
|
36
|
+
const t = oe({
|
|
36
37
|
userConfig: d.config,
|
|
37
|
-
defaultConfig:
|
|
38
|
+
defaultConfig: he
|
|
38
39
|
});
|
|
39
40
|
return t.theme ? {
|
|
40
|
-
...
|
|
41
|
-
userConfig:
|
|
41
|
+
...oe({
|
|
42
|
+
userConfig: Ae.vue_ui_wheel[t.theme] || d.config,
|
|
42
43
|
defaultConfig: t
|
|
43
44
|
})
|
|
44
45
|
} : t;
|
|
45
46
|
}
|
|
46
|
-
|
|
47
|
-
e.value = j(), F.value = !e.value.userOptions.showOnChartHover, V(),
|
|
47
|
+
Z(() => d.config, (t) => {
|
|
48
|
+
e.value = j(), F.value = !e.value.userOptions.showOnChartHover, V(), X.value += 1;
|
|
48
49
|
}, { deep: !0 });
|
|
49
|
-
const { isPrinting: D, isImaging: Y, generatePdf: H, generateImage: W } =
|
|
50
|
+
const { isPrinting: D, isImaging: Y, generatePdf: H, generateImage: W } = Re({
|
|
50
51
|
elementId: x.value,
|
|
51
52
|
fileName: e.value.style.chart.title.text || "vue-ui-wheel",
|
|
52
53
|
options: e.value.userOptions.print
|
|
53
|
-
}),
|
|
54
|
+
}), fe = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), o = c({
|
|
54
55
|
size: 360,
|
|
55
56
|
height: 360,
|
|
56
57
|
width: 360
|
|
57
58
|
}), S = c(e.value.style.chart.layout.percentage.fontSize), u = p(() => ({
|
|
58
|
-
radius: Math.min(
|
|
59
|
-
centerX:
|
|
60
|
-
centerY:
|
|
59
|
+
radius: Math.min(o.value.width, o.value.height) * 0.9 / 2,
|
|
60
|
+
centerX: o.value.width / 2,
|
|
61
|
+
centerY: o.value.height / 2
|
|
61
62
|
}));
|
|
62
|
-
function q(t,
|
|
63
|
+
function q(t, n = 1) {
|
|
63
64
|
return {
|
|
64
|
-
x: u.value.centerX + u.value.radius * Math.cos(29.85 + t * Math.PI / 180) *
|
|
65
|
-
y: u.value.centerY + u.value.radius * Math.sin(29.85 + t * Math.PI / 180) *
|
|
65
|
+
x: u.value.centerX + u.value.radius * Math.cos(29.85 + t * Math.PI / 180) * n,
|
|
66
|
+
y: u.value.centerY + u.value.radius * Math.sin(29.85 + t * Math.PI / 180) * n
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
69
|
const r = c(e.value.style.chart.animation.use ? 0 : d.dataset.percentage || 0);
|
|
69
|
-
|
|
70
|
+
Z(() => d.dataset, (t) => {
|
|
70
71
|
e.value.style.chart.animation.use ? J(t.percentage) : r.value = t.percentage || 0;
|
|
71
72
|
}, { deep: !0 });
|
|
72
|
-
const
|
|
73
|
-
|
|
73
|
+
const y = ee(null), m = ee(null);
|
|
74
|
+
we(() => {
|
|
74
75
|
V();
|
|
75
76
|
});
|
|
76
77
|
function V() {
|
|
77
|
-
if (
|
|
78
|
+
if (Pe(d.dataset) && xe({
|
|
78
79
|
componentName: "VueUiWheel",
|
|
79
80
|
type: "dataset"
|
|
80
81
|
}), J(d.dataset.percentage || 0), e.value.responsive) {
|
|
81
|
-
const t =
|
|
82
|
-
const { width:
|
|
83
|
-
chart:
|
|
82
|
+
const t = Te(() => {
|
|
83
|
+
const { width: n, height: a } = Ne({
|
|
84
|
+
chart: g.value,
|
|
84
85
|
title: e.value.style.chart.title.text ? R.value : null,
|
|
85
86
|
source: U.value,
|
|
86
|
-
noTitle:
|
|
87
|
+
noTitle: E.value
|
|
87
88
|
});
|
|
88
89
|
requestAnimationFrame(() => {
|
|
89
|
-
|
|
90
|
+
o.value.width = n, o.value.height = a, S.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(n, a);
|
|
90
91
|
});
|
|
91
92
|
});
|
|
92
|
-
|
|
93
|
+
y.value && (m.value && y.value.unobserve(m.value), y.value.disconnect()), y.value = new ResizeObserver(t), m.value = g.value.parentNode, y.value.observe(m.value);
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
be(() => {
|
|
97
|
+
y.value && (m.value && y.value.unobserve(m.value), y.value.disconnect());
|
|
97
98
|
});
|
|
98
99
|
function J(t) {
|
|
99
|
-
let
|
|
100
|
-
const a = Math.abs(t - r.value) / (
|
|
100
|
+
let n = e.value.style.chart.animation.speed;
|
|
101
|
+
const a = Math.abs(t - r.value) / (n * 120);
|
|
101
102
|
function i() {
|
|
102
103
|
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
|
}
|
|
104
105
|
i();
|
|
105
106
|
}
|
|
106
|
-
const
|
|
107
|
+
const k = p(() => Math.max(100, e.value.style.chart.layout.wheel.ticks.quantity)), b = p(() => 100 / k.value), K = p(() => {
|
|
107
108
|
const t = [];
|
|
108
|
-
for (let
|
|
109
|
-
const a = r.value >
|
|
109
|
+
for (let n = 0; n < k.value; n += 1) {
|
|
110
|
+
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: ge } = q(o.value.size / k.value * n), { x: me, y: ke } = q(o.value.size / k.value * n, e.value.style.chart.layout.wheel.ticks.sizeRatio);
|
|
110
111
|
t.push({
|
|
111
112
|
x1: i,
|
|
112
|
-
y1:
|
|
113
|
-
x2:
|
|
114
|
-
y2:
|
|
115
|
-
color: e.value.style.chart.layout.wheel.ticks.gradient.show ?
|
|
113
|
+
y1: ge,
|
|
114
|
+
x2: me,
|
|
115
|
+
y2: ke,
|
|
116
|
+
color: e.value.style.chart.layout.wheel.ticks.gradient.show ? le(a, n * b.value / k.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
|
|
116
117
|
});
|
|
117
118
|
}
|
|
118
119
|
return t;
|
|
119
|
-
}), ye = p(() =>
|
|
120
|
+
}), ye = p(() => Fe({ series: K.value.map((t) => ({
|
|
120
121
|
name: "",
|
|
121
122
|
value: 1,
|
|
122
123
|
color: t.color
|
|
123
124
|
})) }, 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
|
|
125
|
+
function Q(t) {
|
|
125
126
|
C.value = t, N.value += 1;
|
|
126
127
|
}
|
|
127
128
|
const O = c(!1);
|
|
128
129
|
function z() {
|
|
129
130
|
O.value = !O.value;
|
|
130
131
|
}
|
|
131
|
-
|
|
132
|
+
async function pe({ scale: t = 2 } = {}) {
|
|
133
|
+
if (!g.value) return;
|
|
134
|
+
const { imageUri: n, base64: a } = await Le({ domElement: g.value, base64: !0, img: !0, scale: t });
|
|
135
|
+
return { imageUri: n, base64: a };
|
|
136
|
+
}
|
|
137
|
+
return ue({
|
|
138
|
+
getImage: pe,
|
|
132
139
|
generatePdf: H,
|
|
133
140
|
generateImage: W,
|
|
134
|
-
toggleAnnotator: z
|
|
135
|
-
|
|
141
|
+
toggleAnnotator: z,
|
|
142
|
+
toggleFullscreen: Q
|
|
143
|
+
}), (t, n) => (s(), v("div", {
|
|
136
144
|
class: "vue-ui-wheel",
|
|
137
145
|
ref_key: "wheelChart",
|
|
138
|
-
ref:
|
|
146
|
+
ref: g,
|
|
139
147
|
id: x.value,
|
|
140
148
|
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:
|
|
142
|
-
onMouseleave:
|
|
149
|
+
onMouseenter: n[0] || (n[0] = () => l(L)(!0)),
|
|
150
|
+
onMouseleave: n[1] || (n[1] = () => l(L)(!1))
|
|
143
151
|
}, [
|
|
144
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
152
|
+
e.value.userOptions.buttons.annotator ? (s(), I(l(re), {
|
|
145
153
|
key: 0,
|
|
146
154
|
svgRef: l(G),
|
|
147
155
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -149,10 +157,10 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
|
|
|
149
157
|
active: O.value,
|
|
150
158
|
onClose: z
|
|
151
159
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
152
|
-
|
|
160
|
+
fe.value ? (s(), v("div", {
|
|
153
161
|
key: 1,
|
|
154
162
|
ref_key: "noTitle",
|
|
155
|
-
ref:
|
|
163
|
+
ref: E,
|
|
156
164
|
class: "vue-data-ui-no-title-space",
|
|
157
165
|
style: "height:36px; width: 100%;background:transparent"
|
|
158
166
|
}, null, 512)) : h("", !0),
|
|
@@ -162,8 +170,8 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
|
|
|
162
170
|
ref: R,
|
|
163
171
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
164
172
|
}, [
|
|
165
|
-
(s(),
|
|
166
|
-
key: `title_${
|
|
173
|
+
(s(), I(Xe, {
|
|
174
|
+
key: `title_${X.value}`,
|
|
167
175
|
config: {
|
|
168
176
|
title: {
|
|
169
177
|
cy: "wheel-title",
|
|
@@ -176,9 +184,9 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
|
|
|
176
184
|
}
|
|
177
185
|
}, null, 8, ["config"]))
|
|
178
186
|
], 512)) : h("", !0),
|
|
179
|
-
e.value.userOptions.show && P.value && (l(B) || l(F)) ? (s(),
|
|
187
|
+
e.value.userOptions.show && P.value && (l(B) || l(F)) ? (s(), I(l(ce), {
|
|
180
188
|
ref_key: "details",
|
|
181
|
-
ref:
|
|
189
|
+
ref: de,
|
|
182
190
|
key: `user_options_${N.value}`,
|
|
183
191
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
184
192
|
color: e.value.style.chart.color,
|
|
@@ -194,49 +202,49 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
|
|
|
194
202
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
195
203
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
196
204
|
isAnnotation: O.value,
|
|
197
|
-
chartElement:
|
|
205
|
+
chartElement: g.value,
|
|
198
206
|
callbacks: e.value.userOptions.callbacks,
|
|
199
207
|
printScale: e.value.userOptions.print.scale,
|
|
200
|
-
onToggleFullscreen:
|
|
208
|
+
onToggleFullscreen: Q,
|
|
201
209
|
onGeneratePdf: l(H),
|
|
202
210
|
onGenerateImage: l(W),
|
|
203
211
|
onToggleAnnotator: z,
|
|
204
212
|
style: M({
|
|
205
213
|
visibility: l(B) ? l(F) ? "visible" : "hidden" : "visible"
|
|
206
214
|
})
|
|
207
|
-
},
|
|
215
|
+
}, Ce({ _: 2 }, [
|
|
208
216
|
t.$slots.menuIcon ? {
|
|
209
217
|
name: "menuIcon",
|
|
210
|
-
fn:
|
|
211
|
-
|
|
218
|
+
fn: w(({ isOpen: a, color: i }) => [
|
|
219
|
+
f(t.$slots, "menuIcon", _(A({ isOpen: a, color: i })), void 0, !0)
|
|
212
220
|
]),
|
|
213
221
|
key: "0"
|
|
214
222
|
} : void 0,
|
|
215
223
|
t.$slots.optionPdf ? {
|
|
216
224
|
name: "optionPdf",
|
|
217
|
-
fn:
|
|
218
|
-
|
|
225
|
+
fn: w(() => [
|
|
226
|
+
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
219
227
|
]),
|
|
220
228
|
key: "1"
|
|
221
229
|
} : void 0,
|
|
222
230
|
t.$slots.optionImg ? {
|
|
223
231
|
name: "optionImg",
|
|
224
|
-
fn:
|
|
225
|
-
|
|
232
|
+
fn: w(() => [
|
|
233
|
+
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
226
234
|
]),
|
|
227
235
|
key: "2"
|
|
228
236
|
} : void 0,
|
|
229
237
|
t.$slots.optionFullscreen ? {
|
|
230
238
|
name: "optionFullscreen",
|
|
231
|
-
fn:
|
|
232
|
-
|
|
239
|
+
fn: w(({ toggleFullscreen: a, isFullscreen: i }) => [
|
|
240
|
+
f(t.$slots, "optionFullscreen", _(A({ toggleFullscreen: a, isFullscreen: i })), void 0, !0)
|
|
233
241
|
]),
|
|
234
242
|
key: "3"
|
|
235
243
|
} : void 0,
|
|
236
244
|
t.$slots.optionAnnotator ? {
|
|
237
245
|
name: "optionAnnotator",
|
|
238
|
-
fn:
|
|
239
|
-
|
|
246
|
+
fn: w(({ toggleAnnotator: a, isAnnotator: i }) => [
|
|
247
|
+
f(t.$slots, "optionAnnotator", _(A({ toggleAnnotator: a, isAnnotator: i })), void 0, !0)
|
|
240
248
|
]),
|
|
241
249
|
key: "4"
|
|
242
250
|
} : void 0
|
|
@@ -245,38 +253,38 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
|
|
|
245
253
|
key: 4,
|
|
246
254
|
ref_key: "svgRef",
|
|
247
255
|
ref: G,
|
|
248
|
-
xmlns: l(
|
|
256
|
+
xmlns: l(Se),
|
|
249
257
|
class: T({ "vue-data-ui-fullscreen--on": C.value, "vue-data-ui-fulscreen--off": !C.value }),
|
|
250
|
-
viewBox: `0 0 ${
|
|
258
|
+
viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
|
|
251
259
|
style: M(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
252
260
|
}, [
|
|
253
|
-
|
|
261
|
+
Oe(l(ve)),
|
|
254
262
|
t.$slots["chart-background"] ? (s(), v("foreignObject", {
|
|
255
263
|
key: 0,
|
|
256
264
|
x: 0,
|
|
257
265
|
y: 0,
|
|
258
|
-
width:
|
|
259
|
-
height:
|
|
266
|
+
width: o.value.width <= 0 ? 10 : o.value.width,
|
|
267
|
+
height: o.value.height <= 0 ? 10 : o.value.height,
|
|
260
268
|
style: {
|
|
261
269
|
pointerEvents: "none"
|
|
262
270
|
}
|
|
263
271
|
}, [
|
|
264
|
-
|
|
265
|
-
], 8,
|
|
266
|
-
e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(!0), v(
|
|
272
|
+
f(t.$slots, "chart-background", {}, void 0, !0)
|
|
273
|
+
], 8, De)) : h("", !0),
|
|
274
|
+
e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(!0), v(te, { key: 1 }, ae(K.value, (a, i) => (s(), v("line", {
|
|
267
275
|
x1: a.x1,
|
|
268
276
|
x2: a.x2,
|
|
269
277
|
y1: a.y1,
|
|
270
278
|
y2: a.y2,
|
|
271
279
|
stroke: a.color,
|
|
272
|
-
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(
|
|
280
|
+
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(o.value.width, o.value.height),
|
|
273
281
|
"stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
274
282
|
class: T({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i * b.value <= r.value })
|
|
275
|
-
}, null, 10,
|
|
283
|
+
}, null, 10, Ye))), 256)) : (s(!0), v(te, { key: 2 }, ae(ye.value, (a, i) => (s(), v("path", {
|
|
276
284
|
d: a.arcSlice,
|
|
277
285
|
fill: a.color,
|
|
278
286
|
class: T({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i * b.value <= r.value })
|
|
279
|
-
}, null, 10,
|
|
287
|
+
}, null, 10, He))), 256)),
|
|
280
288
|
e.value.style.chart.layout.innerCircle.show ? (s(), v("circle", {
|
|
281
289
|
key: 3,
|
|
282
290
|
cx: u.value.centerX,
|
|
@@ -285,29 +293,29 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
|
|
|
285
293
|
stroke: e.value.style.chart.layout.innerCircle.stroke,
|
|
286
294
|
"stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
|
|
287
295
|
fill: "none"
|
|
288
|
-
}, null, 8,
|
|
296
|
+
}, null, 8, We)) : h("", !0),
|
|
289
297
|
e.value.style.chart.layout.percentage.show ? (s(), v("text", {
|
|
290
298
|
key: 4,
|
|
291
299
|
x: u.value.centerX,
|
|
292
300
|
y: u.value.centerY + S.value / 3,
|
|
293
301
|
"font-size": S.value,
|
|
294
|
-
fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? l(
|
|
302
|
+
fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? l(le)(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,
|
|
295
303
|
"text-anchor": "middle",
|
|
296
304
|
"font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
297
305
|
style: { "font-variant-numeric": "tabluar-nums" }
|
|
298
|
-
},
|
|
306
|
+
}, $e(l(ze)(
|
|
299
307
|
e.value.style.chart.layout.percentage.formatter,
|
|
300
|
-
l(
|
|
301
|
-
l(
|
|
302
|
-
v: l(
|
|
308
|
+
l(ne)(r.value),
|
|
309
|
+
l(Me)({
|
|
310
|
+
v: l(ne)(r.value),
|
|
303
311
|
s: "%",
|
|
304
312
|
r: e.value.style.chart.layout.percentage.rounding
|
|
305
313
|
})
|
|
306
|
-
)), 9,
|
|
307
|
-
|
|
308
|
-
], 14,
|
|
309
|
-
t.$slots.watermark ? (s(), v("div",
|
|
310
|
-
|
|
314
|
+
)), 9, qe)) : h("", !0),
|
|
315
|
+
f(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
316
|
+
], 14, je)) : h("", !0),
|
|
317
|
+
t.$slots.watermark ? (s(), v("div", Ve, [
|
|
318
|
+
f(t.$slots, "watermark", _(A({ isPrinting: l(D) || l(Y) })), void 0, !0)
|
|
311
319
|
])) : h("", !0),
|
|
312
320
|
t.$slots.source ? (s(), v("div", {
|
|
313
321
|
key: 6,
|
|
@@ -315,9 +323,9 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
|
|
|
315
323
|
ref: U,
|
|
316
324
|
dir: "auto"
|
|
317
325
|
}, [
|
|
318
|
-
|
|
326
|
+
f(t.$slots, "source", {}, void 0, !0)
|
|
319
327
|
], 512)) : h("", !0),
|
|
320
|
-
P.value ? h("", !0) : (s(),
|
|
328
|
+
P.value ? h("", !0) : (s(), I(l(ie), {
|
|
321
329
|
key: 7,
|
|
322
330
|
config: {
|
|
323
331
|
type: "wheel",
|
|
@@ -329,9 +337,9 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
|
|
|
329
337
|
}
|
|
330
338
|
}
|
|
331
339
|
}, null, 8, ["config"]))
|
|
332
|
-
], 44,
|
|
340
|
+
], 44, Ge));
|
|
333
341
|
}
|
|
334
|
-
},
|
|
342
|
+
}, ut = /* @__PURE__ */ Be(Je, [["__scopeId", "data-v-f53b6073"]]);
|
|
335
343
|
export {
|
|
336
|
-
|
|
344
|
+
ut as default
|
|
337
345
|
};
|