vue-data-ui 2.12.0 → 2.12.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 +3 -1
- package/dist/{Arrow-DDRsdhZn.js → Arrow-DIWP4RKK.js} +1 -1
- package/dist/{BaseIcon-CPSasvwJ.js → BaseIcon-C8PYAGSm.js} +1 -1
- package/dist/{ColorPicker-Bu3ocoLc.js → ColorPicker-DVqKbGvI.js} +3 -3
- package/dist/{DataTable-64MQdfSC.js → DataTable-bu8svd8_.js} +2 -2
- package/dist/{Legend-DQGaC-7K.js → Legend-DPhZp44K.js} +2 -2
- package/dist/{PackageVersion-BZmn5l24.js → PackageVersion-DV3lyC6_.js} +1 -1
- package/dist/{PenAndPaper-BGTby4ih.js → PenAndPaper-mmgChIlY.js} +3 -3
- package/dist/{Shape-CrvsxzqI.js → Shape-CqqGhNJ7.js} +1 -1
- package/dist/{Slicer-Jxw9aXXo.js → Slicer-4gNIAogU.js} +2 -2
- package/dist/{Title-CbtqUCDq.js → Title-BjMd4WGZ.js} +1 -1
- package/dist/{Tooltip-BW22mERF.js → Tooltip-QXYFefbw.js} +1 -1
- package/dist/{dom-to-png-mqrqFtQK.js → dom-to-png-xlji2G1x.js} +1 -1
- package/dist/{img-Y8EW2l65.js → img-DazS1-Hk.js} +1 -1
- package/dist/{index-k-TENgkl.js → index-DISniBjo.js} +27 -25
- package/dist/{pdf-z0T-YjDO.js → pdf-CQZKhr5c.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -0
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useNestedProp-BQzXvt0H.js → useNestedProp-Cg1rd0rj.js} +1 -1
- package/dist/{usePrinter-B3U6P71r.js → usePrinter-Cw5Mv9xt.js} +3 -3
- package/dist/{vue-data-ui-BwwD2u_u.js → vue-data-ui-BTvacIdS.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Bx_MIxW7.js → vue-ui-3d-bar-BxHQK-2L.js} +9 -9
- package/dist/{vue-ui-accordion-BvG2cZf1.js → vue-ui-accordion-CFpwBwSP.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CDKy2P9O.js → vue-ui-age-pyramid-MdH3FVAn.js} +10 -10
- package/dist/{vue-ui-annotator-BAJTr6FD.js → vue-ui-annotator-CoTlk9ka.js} +2 -2
- package/dist/{vue-ui-bullet-Dje2wg8I.js → vue-ui-bullet-BXcym8wq.js} +8 -8
- package/dist/{vue-ui-candlestick-fX576D5A.js → vue-ui-candlestick-pPYXGx-u.js} +11 -11
- package/dist/{vue-ui-carousel-table-CmObt9aO.js → vue-ui-carousel-table-CSBqSz49.js} +4 -4
- package/dist/{vue-ui-chestnut-PBM9zTQ-.js → vue-ui-chestnut-BIB3Y5Do.js} +8 -8
- package/dist/{vue-ui-chord-B-0byToI.js → vue-ui-chord-D7Zxwz-p.js} +349 -333
- package/dist/{vue-ui-circle-pack-rbvrpRAc.js → vue-ui-circle-pack-CshPHdim.js} +9 -9
- package/dist/{vue-ui-cursor-TKh5iDDp.js → vue-ui-cursor-Dy7yoURO.js} +2 -2
- package/dist/{vue-ui-dashboard-C82YUwLA.js → vue-ui-dashboard-CTcgQdrY.js} +62 -62
- package/dist/{vue-ui-digits-CvBJi0Tq.js → vue-ui-digits-BgMG_ZD8.js} +2 -2
- package/dist/{vue-ui-donut-C4j70CI7.js → vue-ui-donut-CD5UvHFF.js} +12 -12
- package/dist/{vue-ui-donut-evolution-DMqXUt12.js → vue-ui-donut-evolution-CTTMpOmA.js} +11 -11
- package/dist/{vue-ui-dumbbell-DpO9YGBE.js → vue-ui-dumbbell-Bndr5fG2.js} +10 -10
- package/dist/{vue-ui-flow-CUfqW31t.js → vue-ui-flow-CEbuZB4v.js} +11 -11
- package/dist/{vue-ui-funnel-BfduqCYK.js → vue-ui-funnel-np6S0JDG.js} +9 -9
- package/dist/{vue-ui-galaxy-DPar-E51.js → vue-ui-galaxy-CcRvS9jz.js} +11 -11
- package/dist/{vue-ui-gauge-CcjDaq63.js → vue-ui-gauge-DZHM1d1w.js} +7 -7
- package/dist/{vue-ui-gizmo-B_ym3int.js → vue-ui-gizmo-VsNpWU8R.js} +3 -3
- package/dist/{vue-ui-heatmap-DI-_vOk9.js → vue-ui-heatmap-COGgS2DC.js} +10 -10
- package/dist/{vue-ui-history-plot-BsArezyK.js → vue-ui-history-plot-DP8d4EI1.js} +11 -11
- package/dist/{vue-ui-kpi-BpWcYF6b.js → vue-ui-kpi-DRE3-5BM.js} +3 -3
- package/dist/{vue-ui-mini-loader-BGa_4ML-.js → vue-ui-mini-loader-CXAQz2Au.js} +2 -2
- package/dist/{vue-ui-molecule-DX2iIPZk.js → vue-ui-molecule-CqszhlfW.js} +11 -11
- package/dist/{vue-ui-mood-radar-Cg5i5Gja.js → vue-ui-mood-radar-D5sAYfFF.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DYU9w0VR.js → vue-ui-nested-donuts-C3FhBgMa.js} +11 -11
- package/dist/{vue-ui-onion-MVnP5IPP.js → vue-ui-onion-w4Bhv7xJ.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-BUO5USbO.js → vue-ui-parallel-coordinate-plot-CkP97yTg.js} +12 -12
- package/dist/{vue-ui-quadrant-DvCdsNT3.js → vue-ui-quadrant-CjNqMQH1.js} +12 -12
- package/dist/{vue-ui-quick-chart-Coq_TT4K.js → vue-ui-quick-chart-D-RFob0G.js} +9 -9
- package/dist/{vue-ui-radar-ksmA1eNa.js → vue-ui-radar-GGHlFIw7.js} +12 -12
- package/dist/{vue-ui-rating-BjNei1jK.js → vue-ui-rating-Kl95_moc.js} +2 -2
- package/dist/{vue-ui-relation-circle-Dz27DBjO.js → vue-ui-relation-circle-TKmNIsV8.js} +7 -7
- package/dist/{vue-ui-ridgeline-DvACw7ca.js → vue-ui-ridgeline-DZTiIMvd.js} +12 -12
- package/dist/{vue-ui-rings-3U2BWSD-.js → vue-ui-rings-9KoP64bM.js} +12 -12
- package/dist/{vue-ui-scatter-CzCxAM-H.js → vue-ui-scatter-XvOvEdKX.js} +12 -12
- package/dist/{vue-ui-skeleton-LOBxYAj5.js → vue-ui-skeleton-DCo7JrxG.js} +3 -3
- package/dist/{vue-ui-smiley-B5x0f6IE.js → vue-ui-smiley-D4l-H6u5.js} +2 -2
- package/dist/{vue-ui-spark-trend-BJL392y-.js → vue-ui-spark-trend-CCoAQ33g.js} +5 -5
- package/dist/{vue-ui-sparkbar-CYTCFFZ4.js → vue-ui-sparkbar-DGIrdVjR.js} +4 -4
- package/dist/{vue-ui-sparkgauge-CtgQ7eqo.js → vue-ui-sparkgauge-B9ENwH2o.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Drd-nNZL.js → vue-ui-sparkhistogram-RhVUFKFA.js} +5 -5
- package/dist/{vue-ui-sparkline-RMyEJzSC.js → vue-ui-sparkline-BvRg6qp5.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-xwahpmeL.js → vue-ui-sparkstackbar-DMTAd6mK.js} +5 -5
- package/dist/{vue-ui-stackbar-BOhzD5_W.js → vue-ui-stackbar-Dz3jTKsH.js} +13 -13
- package/dist/{vue-ui-strip-plot-jus4xcWs.js → vue-ui-strip-plot-gH9KxfjT.js} +11 -11
- package/dist/{vue-ui-table-heatmap-sT80xAnB.js → vue-ui-table-heatmap-DzEL36oR.js} +4 -4
- package/dist/{vue-ui-table-sparkline-B9G42V97.js → vue-ui-table-sparkline-D5BCWZ-0.js} +5 -5
- package/dist/{vue-ui-table-BCArkzoU.js → vue-ui-table-viiFQ5KP.js} +3 -3
- package/dist/{vue-ui-thermometer-CMqRiRxw.js → vue-ui-thermometer-ralhUVUt.js} +7 -7
- package/dist/{vue-ui-timer-DLXveBI_.js → vue-ui-timer-DThtG4by.js} +5 -5
- package/dist/{vue-ui-tiremarks-BP2_KcUJ.js → vue-ui-tiremarks-CykunRsN.js} +7 -7
- package/dist/{vue-ui-treemap-CNHi1E6G.js → vue-ui-treemap-qk-p7xMT.js} +12 -12
- package/dist/{vue-ui-vertical-bar-kpSssDOU.js → vue-ui-vertical-bar-EWqYvvQn.js} +12 -12
- package/dist/{vue-ui-waffle-Br8t4XKd.js → vue-ui-waffle-6X5vGivF.js} +12 -12
- package/dist/{vue-ui-wheel-D80M81Bf.js → vue-ui-wheel-BYjveZ2z.js} +7 -7
- package/dist/{vue-ui-word-cloud-w4Qq_dqB.js → vue-ui-word-cloud-DmYJrVSa.js} +10 -10
- package/dist/{vue-ui-world-CDSH4faH.js → vue-ui-world-uRUcczm9.js} +11 -11
- package/dist/{vue-ui-xy-CCHnnV7y.js → vue-ui-xy-cUHI3LR_.js} +16 -16
- package/dist/{vue-ui-xy-canvas-TJ6MbOBd.js → vue-ui-xy-canvas-BI49wqJK.js} +12 -12
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as zt } from "./Title-
|
|
7
|
-
import { _ as Ft } from "./PackageVersion-
|
|
8
|
-
import { _ as Xt } from "./PenAndPaper-
|
|
9
|
-
import Rt from "./BaseIcon-
|
|
10
|
-
import { u as
|
|
11
|
-
import { L as Ut } from "./Legend-
|
|
12
|
-
import { _ as Yt } from "./Shape-
|
|
13
|
-
import { D as Gt } from "./DataTable-
|
|
14
|
-
import Vt from "./vue-ui-accordion-
|
|
15
|
-
import Wt from "./vue-ui-skeleton-
|
|
1
|
+
import { useCssVars as mt, ref as d, computed as x, watch as yt, onMounted as Ve, onBeforeUnmount as We, createElementBlock as i, openBlock as r, unref as b, normalizeStyle as E, normalizeClass as z, createBlock as U, createCommentVNode as v, renderSlot as $, createElementVNode as B, createSlots as qe, withCtx as P, normalizeProps as le, guardReactiveProps as se, withModifiers as He, createVNode as de, Fragment as F, renderList as Y, mergeProps as kt, toDisplayString as R, createTextVNode as $t, nextTick as wt } from "vue";
|
|
2
|
+
import { u as Ct, c as ve, t as Mt, p as re, a as xt, o as _t, e as Qe, g as It, b as At, d as Pt, X as Tt, G as St, f as he, q as Ot, r as Bt, i as Lt } from "./index-DISniBjo.js";
|
|
3
|
+
import { u as Nt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
4
|
+
import { u as Ze } from "./useNestedProp-Cg1rd0rj.js";
|
|
5
|
+
import { u as Et } from "./useChartAccessibility-BWojgys7.js";
|
|
6
|
+
import { _ as zt } from "./Title-BjMd4WGZ.js";
|
|
7
|
+
import { _ as Ft } from "./PackageVersion-DV3lyC6_.js";
|
|
8
|
+
import { _ as Xt } from "./PenAndPaper-mmgChIlY.js";
|
|
9
|
+
import Rt from "./BaseIcon-C8PYAGSm.js";
|
|
10
|
+
import { u as jt, U as Dt } from "./usePrinter-Cw5Mv9xt.js";
|
|
11
|
+
import { L as Ut } from "./Legend-DPhZp44K.js";
|
|
12
|
+
import { _ as Yt } from "./Shape-CqqGhNJ7.js";
|
|
13
|
+
import { D as Gt } from "./DataTable-bu8svd8_.js";
|
|
14
|
+
import Vt from "./vue-ui-accordion-CFpwBwSP.js";
|
|
15
|
+
import Wt from "./vue-ui-skeleton-DCo7JrxG.js";
|
|
16
16
|
import { t as qt, u as Ht } from "./useResponsive-JZ9xq-JV.js";
|
|
17
17
|
import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "height"], ea = { key: 1 }, ta = ["id", "d"], aa = { key: 2 }, oa = ["transform"], la = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], sa = ["d", "fill", "stroke", "stroke-width"],
|
|
18
|
+
const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "height"], ea = { key: 1 }, ta = ["id", "d"], aa = { key: 2 }, oa = ["transform"], la = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], sa = ["d", "fill", "stroke", "stroke-width"], ra = ["d", "fill"], na = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], ua = ["d", "fill", "stroke", "stroke-width"], ia = ["d", "fill", "stroke", "stroke-width"], ca = ["d", "fill", "stroke", "stroke-width"], da = { key: 0 }, va = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ha = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], fa = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ga = ["transform", "fill", "text-anchor", "font-size", "font-weight"], pa = { key: 1 }, ba = ["font-size", "font-weight", "fill"], ma = ["href"], ya = ["transform", "text-anchor", "font-size", "font-weight", "fill"], ka = {
|
|
19
19
|
key: 5,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
21
|
}, $a = ["onClick"], wa = {
|
|
@@ -39,164 +39,169 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "height"], ea = { k
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
emits: ["selectLegend", "selectGroup", "selectRibbon"],
|
|
42
|
-
setup(
|
|
43
|
-
|
|
44
|
-
"
|
|
42
|
+
setup(Je, { expose: Ke, emit: et }) {
|
|
43
|
+
mt((t) => ({
|
|
44
|
+
"7189608a": t.slicerColor
|
|
45
45
|
}));
|
|
46
|
-
const { vue_ui_chord:
|
|
47
|
-
get: () =>
|
|
46
|
+
const { vue_ui_chord: tt } = Ct(), f = Je, Z = et, L = d(!!f.dataset && Object.hasOwn(f.dataset, "matrix")), T = d(ve()), w = d(null), m = d(null), g = d(null), fe = d(0), G = d(null), ge = d(null), pe = d(null), be = d(null), me = d(null), ye = d(0), ke = d(0), $e = d(0), V = d(!1), ne = d(null), a = x({
|
|
47
|
+
get: () => Ae(),
|
|
48
48
|
set: (t) => t
|
|
49
|
-
}), { userOptionsVisible:
|
|
49
|
+
}), { userOptionsVisible: ue, setUserOptionsVisibility: we, keepUserOptionState: Ce } = Nt({ config: a.value }), { svgRef: W } = Et({ config: a.value.style.chart.title }), { isPrinting: Me, isImaging: xe, generatePdf: _e, generateImage: Ie } = jt({
|
|
50
50
|
elementId: `chord_${T.value}`,
|
|
51
51
|
fileName: a.value.style.chart.title.text || "vue-ui-chord",
|
|
52
52
|
options: a.value.userOptions.print
|
|
53
53
|
}), q = d({
|
|
54
54
|
showTable: a.value.table.show
|
|
55
55
|
});
|
|
56
|
-
function
|
|
57
|
-
const t =
|
|
58
|
-
userConfig:
|
|
59
|
-
defaultConfig:
|
|
56
|
+
function Ae() {
|
|
57
|
+
const t = Ze({
|
|
58
|
+
userConfig: f.config,
|
|
59
|
+
defaultConfig: tt
|
|
60
60
|
});
|
|
61
61
|
return t.theme ? {
|
|
62
|
-
...
|
|
63
|
-
userConfig:
|
|
62
|
+
...Ze({
|
|
63
|
+
userConfig: xt.vue_ui_chord[t.theme] || f.config,
|
|
64
64
|
defaultConfig: t
|
|
65
65
|
}),
|
|
66
|
-
customPalette:
|
|
66
|
+
customPalette: Mt[t.theme] || re
|
|
67
67
|
} : t;
|
|
68
68
|
}
|
|
69
|
-
|
|
70
|
-
a.value =
|
|
69
|
+
yt(() => f.config, (t) => {
|
|
70
|
+
a.value = Ae(), ue.value = !a.value.userOptions.showOnChartHover, Pe(), ye.value += 1, ke.value += 1, $e.value += 1, I.value = a.value.initialRotation, q.value.showTable = a.value.table.show;
|
|
71
71
|
}, { deep: !0 });
|
|
72
|
-
function
|
|
73
|
-
if (
|
|
72
|
+
function Pe() {
|
|
73
|
+
if (_t(f.dataset) ? Qe({
|
|
74
74
|
componentName: "VueUiChord",
|
|
75
75
|
type: "dataset"
|
|
76
|
-
}) :
|
|
77
|
-
datasetObject:
|
|
76
|
+
}) : It({
|
|
77
|
+
datasetObject: f.dataset,
|
|
78
78
|
requiredAttributes: ["matrix"]
|
|
79
79
|
}).forEach((t) => {
|
|
80
|
-
L.value = !1,
|
|
80
|
+
L.value = !1, Qe({
|
|
81
81
|
componentName: "VueUiChord",
|
|
82
82
|
type: "datasetAttribute",
|
|
83
83
|
property: t
|
|
84
84
|
});
|
|
85
|
-
}), L.value &&
|
|
86
|
-
const t =
|
|
87
|
-
const { width: l, height:
|
|
88
|
-
chart:
|
|
89
|
-
title: a.value.style.chart.title.text ?
|
|
90
|
-
legend: a.value.style.chart.legend.show ?
|
|
85
|
+
}), L.value && Te(), a.value.responsive) {
|
|
86
|
+
const t = G.value.parentNode, o = qt(() => {
|
|
87
|
+
const { width: l, height: n, heightNoTitle: s, heightSource: u, heightTitle: h, heightLegend: C } = Ht({
|
|
88
|
+
chart: G.value,
|
|
89
|
+
title: a.value.style.chart.title.text ? ge.value : null,
|
|
90
|
+
legend: a.value.style.chart.legend.show ? pe.value : null,
|
|
91
91
|
source: be.value,
|
|
92
|
-
noTitle:
|
|
93
|
-
}), M = h + C +
|
|
94
|
-
l <
|
|
92
|
+
noTitle: me.value
|
|
93
|
+
}), M = h + C + u + s;
|
|
94
|
+
l < n ? G.value.style.width = "100%" : (G.value.style.height = "100%", W.value.style.height = `calc(100% - ${M}px)`);
|
|
95
95
|
}, 100), e = new ResizeObserver(o);
|
|
96
96
|
e.observe(t), ne.value = e, o();
|
|
97
97
|
}
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
Se.value = setTimeout(() => {
|
|
99
|
+
V.value = !0;
|
|
100
100
|
}, 500);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
|
|
102
|
+
function Te() {
|
|
103
|
+
if (!f.dataset || !Object.hasOwn(f.dataset, "matrix") || f.dataset.matrix.length < 2) {
|
|
104
|
+
console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
|
|
104
105
|
|
|
105
106
|
matrix:[
|
|
106
107
|
[1, 1],
|
|
107
108
|
[1, 1]
|
|
108
|
-
]`), L.value = !1
|
|
109
|
-
|
|
109
|
+
]`), L.value = !1;
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
f.dataset.matrix.forEach((t, o) => {
|
|
113
|
+
t.length !== f.dataset.matrix.length && (console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${o} has ${t.length} elements instead of the required ${f.dataset.matrix.length}
|
|
110
114
|
|
|
111
|
-
dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should have the same length as the matrix itself (${
|
|
115
|
+
dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should have the same length as the matrix itself (${f.dataset.matrix.length})`), L.value = !1);
|
|
112
116
|
});
|
|
113
117
|
}
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
const Se = d(null);
|
|
119
|
+
Ve(() => {
|
|
120
|
+
Pe();
|
|
117
121
|
});
|
|
118
122
|
const S = d({
|
|
119
123
|
height: 600,
|
|
120
124
|
width: 600
|
|
121
|
-
}),
|
|
125
|
+
}), at = x(() => a.value.userOptions.show && !a.value.style.chart.title.text), ot = x(() => At(a.value.customPalette)), p = x(() => ({
|
|
122
126
|
inner: S.value.width * 0.3 * a.value.style.chart.arcs.innerRadiusRatio,
|
|
123
127
|
outer: S.value.width * 0.34 * a.value.style.chart.arcs.outerRadiusRatio
|
|
124
|
-
})),
|
|
125
|
-
matrix:
|
|
126
|
-
labels:
|
|
127
|
-
colors:
|
|
128
|
+
})), lt = x(() => a.value.style.chart.arcs.padAngle / 100), y = x(() => L.value ? {
|
|
129
|
+
matrix: f.dataset.matrix ?? [[0]],
|
|
130
|
+
labels: f.dataset.labels ?? [""],
|
|
131
|
+
colors: f.dataset.colors && Array.isArray(f.dataset.colors) && f.dataset.colors.length ? f.dataset.colors.map((t) => Pt(t)) : f.dataset.matrix.map((t, o) => ot.value[o] || re[o] || re[o % re.length])
|
|
128
132
|
} : {
|
|
129
133
|
matrix: [],
|
|
130
134
|
labels: [],
|
|
131
135
|
colors: []
|
|
132
136
|
});
|
|
133
|
-
function
|
|
134
|
-
const e = t.length, l =
|
|
137
|
+
function st(t, o) {
|
|
138
|
+
const e = t.length, l = p.value.inner, n = new Array(e).fill(0);
|
|
135
139
|
let s = 0;
|
|
136
140
|
for (let c = 0; c < e; c += 1)
|
|
137
|
-
for (let
|
|
138
|
-
|
|
139
|
-
const
|
|
141
|
+
for (let k = 0; k < e; k += 1)
|
|
142
|
+
n[c] += t[c][k], s += t[c][k];
|
|
143
|
+
const u = (2 * Math.PI - o * e) / s, h = [];
|
|
140
144
|
let C = 0;
|
|
141
145
|
for (let c = 0; c < e; c += 1) {
|
|
142
|
-
const
|
|
146
|
+
const k = C, A = k + n[c] * u;
|
|
143
147
|
h.push({
|
|
144
148
|
index: c,
|
|
145
149
|
pattern: `pattern_${T.value}_${c}`,
|
|
146
|
-
startAngle:
|
|
150
|
+
startAngle: k,
|
|
147
151
|
endAngle: A,
|
|
148
|
-
name:
|
|
152
|
+
name: y.value.labels[c],
|
|
149
153
|
id: ve(),
|
|
150
|
-
color:
|
|
154
|
+
color: y.value.colors[c],
|
|
155
|
+
proportion: n[c] / s
|
|
151
156
|
}), C = A + o;
|
|
152
157
|
}
|
|
153
158
|
const M = [];
|
|
154
159
|
for (let c = 0; c < e; c += 1) {
|
|
155
|
-
const
|
|
156
|
-
|
|
160
|
+
const k = t[c].map((O, X) => ({ j: X, v: O }));
|
|
161
|
+
k.sort((O, X) => X.v - O.v);
|
|
157
162
|
let A = h[c].startAngle;
|
|
158
|
-
for (const { j:
|
|
159
|
-
const D = A, Q = D +
|
|
163
|
+
for (const { j: O, v: X } of k) {
|
|
164
|
+
const D = A, Q = D + X * u;
|
|
160
165
|
M.push({
|
|
161
166
|
index: c,
|
|
162
|
-
subIndex:
|
|
167
|
+
subIndex: O,
|
|
163
168
|
pattern: `pattern_${T.value}_${c}`,
|
|
164
169
|
startAngle: D,
|
|
165
170
|
endAngle: Q,
|
|
166
|
-
value:
|
|
167
|
-
groupName:
|
|
171
|
+
value: X,
|
|
172
|
+
groupName: y.value.labels[c],
|
|
168
173
|
groupId: h[c].id,
|
|
169
|
-
groupColor:
|
|
174
|
+
groupColor: y.value.colors[c],
|
|
170
175
|
midAngle: (D + Q) / 2,
|
|
171
176
|
midBaseX: Math.cos((D + Q) / 2 - Math.PI / 2) * l,
|
|
172
177
|
midBaseY: Math.sin((D + Q) / 2 - Math.PI / 2) * l
|
|
173
178
|
}), A = Q;
|
|
174
179
|
}
|
|
175
180
|
}
|
|
176
|
-
const
|
|
181
|
+
const N = [];
|
|
177
182
|
for (const c of M) {
|
|
178
|
-
const
|
|
183
|
+
const k = M.find(
|
|
179
184
|
(A) => A.index === c.subIndex && A.subIndex === c.index
|
|
180
185
|
);
|
|
181
|
-
|
|
186
|
+
N.push({ source: c, target: k, id: ve() });
|
|
182
187
|
}
|
|
183
|
-
return { groups: h, chords:
|
|
188
|
+
return { groups: h, chords: N };
|
|
184
189
|
}
|
|
185
190
|
const _ = x(() => {
|
|
186
|
-
const t =
|
|
187
|
-
return
|
|
191
|
+
const t = st(y.value.matrix, lt.value);
|
|
192
|
+
return Te(), t.chords.sort(
|
|
188
193
|
(o, e) => Math.max(e.source.value, e.target.value) - Math.max(o.source.value, o.target.value)
|
|
189
194
|
), t;
|
|
190
|
-
}),
|
|
191
|
-
const t =
|
|
192
|
-
if (
|
|
193
|
-
const s =
|
|
195
|
+
}), rt = x(() => {
|
|
196
|
+
const t = p.value.outer + a.value.style.chart.ribbons.labels.offset + 12, e = a.value.style.chart.ribbons.labels.fontSize * 0.6, l = [];
|
|
197
|
+
if (m.value) {
|
|
198
|
+
const s = m.value;
|
|
194
199
|
if (s.source.value) {
|
|
195
|
-
const
|
|
200
|
+
const u = String(s.source.value);
|
|
196
201
|
l.push({
|
|
197
202
|
id: s.id + "-src",
|
|
198
203
|
theta: s.source.midAngle,
|
|
199
|
-
w:
|
|
204
|
+
w: u.length * e / t,
|
|
200
205
|
midBaseX: s.source.midBaseX,
|
|
201
206
|
midBaseY: s.source.midBaseY,
|
|
202
207
|
groupColor: s.source.groupColor,
|
|
@@ -204,11 +209,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
204
209
|
});
|
|
205
210
|
}
|
|
206
211
|
if (s.target && s.target.value && s.target.value !== s.source.value) {
|
|
207
|
-
const
|
|
212
|
+
const u = String(s.target.value);
|
|
208
213
|
l.push({
|
|
209
214
|
id: s.id + "-tgt",
|
|
210
215
|
theta: s.target.midAngle,
|
|
211
|
-
w:
|
|
216
|
+
w: u.length * e / t,
|
|
212
217
|
midBaseX: s.target.midBaseX,
|
|
213
218
|
midBaseY: s.target.midBaseY,
|
|
214
219
|
groupColor: s.target.groupColor,
|
|
@@ -217,98 +222,98 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
217
222
|
}
|
|
218
223
|
return l;
|
|
219
224
|
}
|
|
220
|
-
function
|
|
221
|
-
_.value.chords.filter((
|
|
225
|
+
function n(s) {
|
|
226
|
+
_.value.chords.filter((u) => u.source.groupId === s && u.source.value).forEach((u) => {
|
|
222
227
|
{
|
|
223
|
-
const h = String(
|
|
228
|
+
const h = String(u.source.value);
|
|
224
229
|
l.push({
|
|
225
|
-
id:
|
|
226
|
-
theta:
|
|
230
|
+
id: u.id + "-src",
|
|
231
|
+
theta: u.source.midAngle,
|
|
227
232
|
w: h.length * e / t,
|
|
228
|
-
midBaseX:
|
|
229
|
-
midBaseY:
|
|
230
|
-
groupColor:
|
|
231
|
-
value:
|
|
233
|
+
midBaseX: u.source.midBaseX,
|
|
234
|
+
midBaseY: u.source.midBaseY,
|
|
235
|
+
groupColor: u.source.groupColor,
|
|
236
|
+
value: u.source.value
|
|
232
237
|
});
|
|
233
238
|
}
|
|
234
|
-
if (
|
|
235
|
-
const h = String(
|
|
239
|
+
if (u.target && u.target.value && u.target.value !== u.source.value) {
|
|
240
|
+
const h = String(u.target.value);
|
|
236
241
|
l.push({
|
|
237
|
-
id:
|
|
238
|
-
theta:
|
|
242
|
+
id: u.id + "-tgt",
|
|
243
|
+
theta: u.target.midAngle,
|
|
239
244
|
w: h.length * e / t,
|
|
240
|
-
midBaseX:
|
|
241
|
-
midBaseY:
|
|
242
|
-
groupColor:
|
|
243
|
-
value:
|
|
245
|
+
midBaseX: u.target.midBaseX,
|
|
246
|
+
midBaseY: u.target.midBaseY,
|
|
247
|
+
groupColor: u.target.groupColor,
|
|
248
|
+
value: u.target.value
|
|
244
249
|
});
|
|
245
250
|
}
|
|
246
251
|
});
|
|
247
252
|
}
|
|
248
|
-
return
|
|
253
|
+
return g.value && n(g.value), w.value && n(w.value.id), l;
|
|
249
254
|
}), nt = x(() => {
|
|
250
|
-
const t =
|
|
255
|
+
const t = rt.value.map((n) => ({ ...n })).sort((n, s) => n.theta - s.theta), o = a.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
|
|
251
256
|
let e = !0, l = 0;
|
|
252
257
|
for (; e && l++ < 10; ) {
|
|
253
258
|
e = !1;
|
|
254
259
|
for (let h = 1; h < t.length; h += 1) {
|
|
255
|
-
const C = t[h - 1], M = t[h],
|
|
256
|
-
M.theta <
|
|
260
|
+
const C = t[h - 1], M = t[h], N = C.theta + C.w + o;
|
|
261
|
+
M.theta < N && (M.theta = N, e = !0);
|
|
257
262
|
}
|
|
258
|
-
const
|
|
259
|
-
|
|
263
|
+
const n = t[0], s = t[t.length - 1], u = s.theta + s.w + o - 2 * Math.PI;
|
|
264
|
+
n.theta < u && (n.theta = u, e = !0);
|
|
260
265
|
}
|
|
261
266
|
return t;
|
|
262
267
|
});
|
|
263
|
-
function
|
|
264
|
-
const
|
|
265
|
-
return `M${
|
|
268
|
+
function Oe(t, o, e, l) {
|
|
269
|
+
const n = t - Math.PI / 2, s = o - Math.PI / 2, u = Math.cos(n) * e, h = Math.sin(n) * e, C = Math.cos(s) * e, M = Math.sin(s) * e, N = Math.cos(s) * l, c = Math.sin(s) * l, k = Math.cos(n) * l, A = Math.sin(n) * l, O = o - t > Math.PI ? 1 : 0;
|
|
270
|
+
return `M${u},${h} A${e},${e} 0 ${O} 1 ${C},${M} L${N},${c} A${l},${l} 0 ${O} 0 ${k},${A} Z`;
|
|
266
271
|
}
|
|
267
272
|
function J(t, o) {
|
|
268
|
-
const e =
|
|
269
|
-
return `M${h},${C}A${e},${e} 0 ${
|
|
273
|
+
const e = p.value.inner, l = t.startAngle - Math.PI / 2, n = t.endAngle - Math.PI / 2, s = o.startAngle - Math.PI / 2, u = o.endAngle - Math.PI / 2, h = Math.cos(l) * e, C = Math.sin(l) * e, M = Math.cos(n) * e, N = Math.sin(n) * e, c = Math.cos(s) * e, k = Math.sin(s) * e, A = Math.cos(u) * e, O = Math.sin(u) * e, X = t.endAngle - t.startAngle > Math.PI ? 1 : 0, D = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
|
|
274
|
+
return `M${h},${C}A${e},${e} 0 ${X} 1 ${M},${N}Q0,0 ${c},${k}A${e},${e} 0 ${D} 1 ${A},${O}Q0,0 ${h},${C}Z`;
|
|
270
275
|
}
|
|
271
276
|
const Be = x(() => I.value * Math.PI / 180);
|
|
272
|
-
function rt(t) {
|
|
273
|
-
return (t.startAngle + t.endAngle) / 2;
|
|
274
|
-
}
|
|
275
277
|
function ut(t) {
|
|
276
|
-
return (
|
|
278
|
+
return (t.startAngle + t.endAngle) / 2;
|
|
277
279
|
}
|
|
278
280
|
function it(t) {
|
|
281
|
+
return ((ut(t) + Be.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
|
|
282
|
+
}
|
|
283
|
+
function ct(t) {
|
|
279
284
|
let o = t + Be.value;
|
|
280
285
|
return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
|
|
281
286
|
}
|
|
282
|
-
function
|
|
283
|
-
const o = t - Math.PI / 2, e = Math.cos(o) * (
|
|
287
|
+
function dt(t) {
|
|
288
|
+
const o = t - Math.PI / 2, e = Math.cos(o) * (p.value.outer + a.value.style.chart.arcs.labels.offset + 24), l = Math.sin(o) * (p.value.outer + a.value.style.chart.arcs.labels.offset + 24);
|
|
284
289
|
return `translate(${e},${l})`;
|
|
285
290
|
}
|
|
286
|
-
function
|
|
287
|
-
const l = t - Math.PI / 2,
|
|
288
|
-
return `M${s},${
|
|
291
|
+
function vt(t, o, e) {
|
|
292
|
+
const l = t - Math.PI / 2, n = o - Math.PI / 2, s = Math.cos(l) * e, u = Math.sin(l) * e, h = Math.cos(n) * e, C = Math.sin(n) * e, M = o - t > Math.PI ? 1 : 0;
|
|
293
|
+
return `M${s},${u} A${e},${e} 0 ${M} 1 ${h},${C}`;
|
|
289
294
|
}
|
|
290
|
-
const I = d(a.value.initialRotation),
|
|
291
|
-
let
|
|
295
|
+
const I = d(a.value.initialRotation), K = d(!1);
|
|
296
|
+
let Le = 0, Ne = 0;
|
|
292
297
|
function Ee(t) {
|
|
293
|
-
const o = W.value.getBoundingClientRect(), e = o.left + o.width / 2, l = o.top + o.height / 2,
|
|
294
|
-
return Math.atan2(s - l,
|
|
298
|
+
const o = W.value.getBoundingClientRect(), e = o.left + o.width / 2, l = o.top + o.height / 2, n = t.clientX ?? t.touches[0].clientX, s = t.clientY ?? t.touches[0].clientY;
|
|
299
|
+
return Math.atan2(s - l, n - e);
|
|
295
300
|
}
|
|
296
|
-
function
|
|
297
|
-
!a.value.enableRotation || H.value || (t.preventDefault(),
|
|
301
|
+
function ze(t) {
|
|
302
|
+
!a.value.enableRotation || H.value || (t.preventDefault(), K.value = !0, Le = I.value, Ne = Ee(t));
|
|
298
303
|
}
|
|
299
|
-
function
|
|
300
|
-
if (!
|
|
304
|
+
function ee(t) {
|
|
305
|
+
if (!K.value) return;
|
|
301
306
|
const o = Ee(t);
|
|
302
|
-
I.value =
|
|
307
|
+
I.value = Le + (o - Ne) * 180 / Math.PI;
|
|
303
308
|
}
|
|
304
|
-
function
|
|
305
|
-
|
|
309
|
+
function te() {
|
|
310
|
+
K.value = !1;
|
|
306
311
|
}
|
|
307
|
-
function
|
|
308
|
-
return
|
|
312
|
+
function Fe(t) {
|
|
313
|
+
return Lt(
|
|
309
314
|
a.value.style.chart.ribbons.labels.formatter,
|
|
310
315
|
t,
|
|
311
|
-
|
|
316
|
+
he({
|
|
312
317
|
p: a.value.style.chart.ribbons.labels.prefix,
|
|
313
318
|
v: t,
|
|
314
319
|
s: a.value.style.chart.ribbons.labels.suffix,
|
|
@@ -316,63 +321,63 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
316
321
|
})
|
|
317
322
|
);
|
|
318
323
|
}
|
|
319
|
-
|
|
320
|
-
window.addEventListener("mousemove",
|
|
321
|
-
}),
|
|
322
|
-
window.removeEventListener("mousemove",
|
|
324
|
+
Ve(() => {
|
|
325
|
+
window.addEventListener("mousemove", ee), window.addEventListener("mouseup", te), window.addEventListener("touchmove", ee, { passive: !1 }), window.addEventListener("touchend", te);
|
|
326
|
+
}), We(() => {
|
|
327
|
+
window.removeEventListener("mousemove", ee), window.removeEventListener("mouseup", te), window.removeEventListener("touchmove", ee), window.removeEventListener("touchend", te), clearTimeout(Se.value), ne.value && ne.value.disconnect();
|
|
323
328
|
});
|
|
324
329
|
const ie = d(!1);
|
|
325
|
-
function vt(t) {
|
|
326
|
-
ie.value = t, he.value += 1;
|
|
327
|
-
}
|
|
328
330
|
function ht(t) {
|
|
329
|
-
|
|
331
|
+
ie.value = t, fe.value += 1;
|
|
330
332
|
}
|
|
331
333
|
function ft(t) {
|
|
332
|
-
|
|
334
|
+
g.value || (w.value = t);
|
|
333
335
|
}
|
|
334
|
-
function
|
|
335
|
-
|
|
336
|
-
return !f.value && !w.value && !p.value ? 0.8 : (f.value ? f.value === t.source.groupId : w.value ? w.value.id === t.source.groupId : ((l = p.value) == null ? void 0 : l.id) === t.id) ? 1 : 0.1;
|
|
336
|
+
function gt(t) {
|
|
337
|
+
g.value || (m.value = t);
|
|
337
338
|
}
|
|
338
339
|
function Xe(t) {
|
|
339
|
-
var l
|
|
340
|
-
return !
|
|
340
|
+
var l;
|
|
341
|
+
return !g.value && !w.value && !m.value ? 0.8 : (g.value ? g.value === t.source.groupId : w.value ? w.value.id === t.source.groupId : ((l = m.value) == null ? void 0 : l.id) === t.id) ? 1 : 0.1;
|
|
342
|
+
}
|
|
343
|
+
function Re(t) {
|
|
344
|
+
var l, n;
|
|
345
|
+
return !g.value && !w.value && !m.value || (g.value ? g.value === t.id : w.value ? w.value.id === t.id : [(l = m.value) == null ? void 0 : l.source.groupId, (n = m.value) == null ? void 0 : n.target.groupId].includes(t.id)) ? 1 : 0.3;
|
|
341
346
|
}
|
|
342
347
|
const H = d(!1);
|
|
343
348
|
function ce() {
|
|
344
349
|
H.value = !H.value;
|
|
345
350
|
}
|
|
346
|
-
function
|
|
351
|
+
function je() {
|
|
347
352
|
q.value.showTable = !q.value.showTable;
|
|
348
353
|
}
|
|
349
|
-
function
|
|
354
|
+
function pt() {
|
|
350
355
|
return _.value;
|
|
351
356
|
}
|
|
352
|
-
const
|
|
357
|
+
const j = d(null);
|
|
353
358
|
function De() {
|
|
354
359
|
const t = a.value.initialRotation;
|
|
355
|
-
|
|
360
|
+
j.value !== null && cancelAnimationFrame(j.value);
|
|
356
361
|
const o = () => {
|
|
357
|
-
I.value += (t - I.value) * 0.05, Math.abs(I.value - t) < 0.1 ? (I.value = t,
|
|
362
|
+
I.value += (t - I.value) * 0.05, Math.abs(I.value - t) < 0.1 ? (I.value = t, j.value = null) : j.value = requestAnimationFrame(o);
|
|
358
363
|
};
|
|
359
|
-
|
|
364
|
+
j.value = requestAnimationFrame(o);
|
|
360
365
|
}
|
|
361
|
-
|
|
362
|
-
|
|
366
|
+
We(() => {
|
|
367
|
+
j.value !== null && cancelAnimationFrame(j.value);
|
|
363
368
|
});
|
|
364
|
-
function
|
|
365
|
-
t ===
|
|
369
|
+
function Ue(t) {
|
|
370
|
+
t === g.value ? (g.value = null, Z("selectLegend", null)) : (g.value = t, Z("selectLegend", _.value.groups.find((o) => o.id === t)));
|
|
366
371
|
}
|
|
367
|
-
const
|
|
372
|
+
const Ye = x(() => _.value.groups.map((t, o) => ({
|
|
368
373
|
name: t.name,
|
|
369
374
|
color: t.color,
|
|
370
375
|
shape: "circle",
|
|
371
376
|
patternIndex: o,
|
|
372
377
|
pattern: `pattern_${T.value}_${o}`,
|
|
373
378
|
id: t.id,
|
|
374
|
-
select: () =>
|
|
375
|
-
opacity:
|
|
379
|
+
select: () => Ue(t.id),
|
|
380
|
+
opacity: g.value ? g.value === t.id ? 1 : 0.3 : 1
|
|
376
381
|
}))), bt = x(() => ({
|
|
377
382
|
cy: "chord-div-legend",
|
|
378
383
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
@@ -380,16 +385,16 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
380
385
|
fontSize: a.value.style.chart.legend.fontSize,
|
|
381
386
|
paddingBottom: 12,
|
|
382
387
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
383
|
-
})),
|
|
388
|
+
})), ae = x(() => {
|
|
384
389
|
const t = _.value.groups.map((e, l) => ({
|
|
385
390
|
name: e.name || l,
|
|
386
391
|
color: e.color
|
|
387
|
-
})), o =
|
|
392
|
+
})), o = y.value.matrix;
|
|
388
393
|
return { head: t, body: o };
|
|
389
|
-
}),
|
|
390
|
-
const t = [{ name: "", color: null }, ...
|
|
391
|
-
|
|
392
|
-
...
|
|
394
|
+
}), oe = x(() => {
|
|
395
|
+
const t = [{ name: "", color: null }, ...ae.value.head], o = ae.value.body.map((n, s) => [
|
|
396
|
+
ae.value.head[s],
|
|
397
|
+
...ae.value.body[s]
|
|
393
398
|
]), e = {
|
|
394
399
|
th: {
|
|
395
400
|
backgroundColor: a.value.table.th.backgroundColor,
|
|
@@ -410,66 +415,66 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
410
415
|
config: e
|
|
411
416
|
};
|
|
412
417
|
});
|
|
413
|
-
function
|
|
414
|
-
|
|
415
|
-
const t =
|
|
416
|
-
[
|
|
418
|
+
function Ge() {
|
|
419
|
+
wt(() => {
|
|
420
|
+
const t = y.value.matrix.map((l, n) => [
|
|
421
|
+
[y.value.labels[n] || n],
|
|
417
422
|
l
|
|
418
423
|
]), o = [
|
|
419
424
|
[a.value.style.chart.title.text],
|
|
420
425
|
[a.value.style.chart.title.subtitle.text],
|
|
421
426
|
[
|
|
422
427
|
[""],
|
|
423
|
-
...
|
|
428
|
+
...y.value.labels.map((l, n) => [l || n])
|
|
424
429
|
]
|
|
425
|
-
].concat(t), e =
|
|
430
|
+
].concat(t), e = Ot(o);
|
|
426
431
|
Bt({ csvContent: e, title: a.value.style.chart.title.text || "vue-ui-chord" });
|
|
427
432
|
});
|
|
428
433
|
}
|
|
429
|
-
return
|
|
430
|
-
getData:
|
|
431
|
-
generateCsv:
|
|
432
|
-
generateImage:
|
|
433
|
-
generatePdf:
|
|
434
|
+
return Ke({
|
|
435
|
+
getData: pt,
|
|
436
|
+
generateCsv: Ge,
|
|
437
|
+
generateImage: Ie,
|
|
438
|
+
generatePdf: _e,
|
|
434
439
|
toggleAnnotator: ce,
|
|
435
|
-
toggleTable:
|
|
436
|
-
}), (t, o) => (
|
|
440
|
+
toggleTable: je
|
|
441
|
+
}), (t, o) => (r(), i("div", {
|
|
437
442
|
ref_key: "chordChart",
|
|
438
|
-
ref:
|
|
439
|
-
class:
|
|
443
|
+
ref: G,
|
|
444
|
+
class: z({
|
|
440
445
|
"vue-ui-chord": !0,
|
|
441
446
|
"vue-data-ui-wrapper-fullscreen": ie.value,
|
|
442
447
|
"vue-data-ui-responsive": a.value.responsive
|
|
443
448
|
}),
|
|
444
|
-
style:
|
|
449
|
+
style: E(`font-family:${a.value.style.fontFamily};width:100%; text-align:center;background:${a.value.style.chart.backgroundColor}`),
|
|
445
450
|
id: `chord_${T.value}`,
|
|
446
|
-
onMouseenter: o[4] || (o[4] = () =>
|
|
447
|
-
onMouseleave: o[5] || (o[5] = () =>
|
|
451
|
+
onMouseenter: o[4] || (o[4] = () => b(we)(!0)),
|
|
452
|
+
onMouseleave: o[5] || (o[5] = () => b(we)(!1))
|
|
448
453
|
}, [
|
|
449
|
-
a.value.userOptions.buttons.annotator &&
|
|
454
|
+
a.value.userOptions.buttons.annotator && b(W) ? (r(), U(Xt, {
|
|
450
455
|
key: 0,
|
|
451
456
|
color: a.value.style.chart.color,
|
|
452
457
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
453
458
|
active: H.value,
|
|
454
|
-
svgRef:
|
|
459
|
+
svgRef: b(W),
|
|
455
460
|
onClose: ce
|
|
456
461
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
457
462
|
$(t.$slots, "userConfig", {}, void 0, !0),
|
|
458
|
-
|
|
463
|
+
at.value ? (r(), i("div", {
|
|
459
464
|
key: 1,
|
|
460
465
|
ref_key: "noTitle",
|
|
461
|
-
ref:
|
|
466
|
+
ref: me,
|
|
462
467
|
class: "vue-data-ui-no-title-space",
|
|
463
468
|
style: "height:36px; width: 100%;background:transparent"
|
|
464
469
|
}, null, 512)) : v("", !0),
|
|
465
|
-
a.value.style.chart.title.text ? (
|
|
470
|
+
a.value.style.chart.title.text ? (r(), i("div", {
|
|
466
471
|
key: 2,
|
|
467
472
|
ref_key: "chartTitle",
|
|
468
|
-
ref:
|
|
473
|
+
ref: ge,
|
|
469
474
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
470
475
|
}, [
|
|
471
|
-
(
|
|
472
|
-
key: `title_${
|
|
476
|
+
(r(), U(zt, {
|
|
477
|
+
key: `title_${ye.value}`,
|
|
473
478
|
config: {
|
|
474
479
|
title: {
|
|
475
480
|
cy: "chord-div-title",
|
|
@@ -482,13 +487,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
482
487
|
}
|
|
483
488
|
}, null, 8, ["config"]))
|
|
484
489
|
], 512)) : v("", !0),
|
|
485
|
-
a.value.userOptions.show && L.value && (
|
|
490
|
+
a.value.userOptions.show && L.value && (b(Ce) || b(ue)) ? (r(), U(Dt, {
|
|
486
491
|
ref: "details",
|
|
487
|
-
key: `user_option_${
|
|
492
|
+
key: `user_option_${fe.value}`,
|
|
488
493
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
489
494
|
color: a.value.style.chart.color,
|
|
490
|
-
isPrinting:
|
|
491
|
-
isImaging:
|
|
495
|
+
isPrinting: b(Me),
|
|
496
|
+
isImaging: b(xe),
|
|
492
497
|
uid: T.value,
|
|
493
498
|
hasTooltip: !1,
|
|
494
499
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
@@ -498,25 +503,25 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
498
503
|
hasLabel: !1,
|
|
499
504
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
500
505
|
isFullscreen: ie.value,
|
|
501
|
-
chartElement:
|
|
506
|
+
chartElement: G.value,
|
|
502
507
|
position: a.value.userOptions.position,
|
|
503
508
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
504
509
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
505
510
|
isAnnotation: H.value,
|
|
506
|
-
onToggleFullscreen:
|
|
507
|
-
onGeneratePdf:
|
|
508
|
-
onGenerateCsv:
|
|
509
|
-
onGenerateImage:
|
|
510
|
-
onToggleTable:
|
|
511
|
+
onToggleFullscreen: ht,
|
|
512
|
+
onGeneratePdf: b(_e),
|
|
513
|
+
onGenerateCsv: Ge,
|
|
514
|
+
onGenerateImage: b(Ie),
|
|
515
|
+
onToggleTable: je,
|
|
511
516
|
onToggleAnnotator: ce,
|
|
512
|
-
style:
|
|
513
|
-
visibility:
|
|
517
|
+
style: E({
|
|
518
|
+
visibility: b(Ce) ? b(ue) ? "visible" : "hidden" : "visible"
|
|
514
519
|
})
|
|
515
|
-
},
|
|
520
|
+
}, qe({ _: 2 }, [
|
|
516
521
|
t.$slots.menuIcon ? {
|
|
517
522
|
name: "menuIcon",
|
|
518
523
|
fn: P(({ isOpen: e, color: l }) => [
|
|
519
|
-
$(t.$slots, "menuIcon",
|
|
524
|
+
$(t.$slots, "menuIcon", le(se({ isOpen: e, color: l })), void 0, !0)
|
|
520
525
|
]),
|
|
521
526
|
key: "0"
|
|
522
527
|
} : void 0,
|
|
@@ -551,21 +556,21 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
551
556
|
t.$slots.optionFullscreen ? {
|
|
552
557
|
name: "optionFullscreen",
|
|
553
558
|
fn: P(({ toggleFullscreen: e, isFullscreen: l }) => [
|
|
554
|
-
$(t.$slots, "optionFullscreen",
|
|
559
|
+
$(t.$slots, "optionFullscreen", le(se({ toggleFullscreen: e, isFullscreen: l })), void 0, !0)
|
|
555
560
|
]),
|
|
556
561
|
key: "5"
|
|
557
562
|
} : void 0,
|
|
558
563
|
t.$slots.optionAnnotator ? {
|
|
559
564
|
name: "optionAnnotator",
|
|
560
565
|
fn: P(({ toggleAnnotator: e, isAnnotator: l }) => [
|
|
561
|
-
$(t.$slots, "optionAnnotator",
|
|
566
|
+
$(t.$slots, "optionAnnotator", le(se({ toggleAnnotator: e, isAnnotator: l })), void 0, !0)
|
|
562
567
|
]),
|
|
563
568
|
key: "6"
|
|
564
569
|
} : void 0
|
|
565
570
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
566
|
-
L.value ? (
|
|
571
|
+
L.value ? (r(), i("svg", {
|
|
567
572
|
key: 4,
|
|
568
|
-
xmlns:
|
|
573
|
+
xmlns: b(Tt),
|
|
569
574
|
ref_key: "svgRef",
|
|
570
575
|
ref: W,
|
|
571
576
|
viewBox: `0 0 ${S.value.width} ${S.value.height}`,
|
|
@@ -573,11 +578,12 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
573
578
|
style: {
|
|
574
579
|
overflow: "visible"
|
|
575
580
|
},
|
|
576
|
-
|
|
577
|
-
|
|
581
|
+
class: z({ "vue-ui-chord-rotating": K.value, "vue-ui-chord-idle": !t.rotating }),
|
|
582
|
+
onMousedown: He(ze, ["prevent"]),
|
|
583
|
+
onTouchstart: He(ze, ["prevent"])
|
|
578
584
|
}, [
|
|
579
585
|
de(Ft),
|
|
580
|
-
t.$slots["chart-background"] ? (
|
|
586
|
+
t.$slots["chart-background"] ? (r(), i("foreignObject", {
|
|
581
587
|
key: 0,
|
|
582
588
|
x: 0,
|
|
583
589
|
y: 0,
|
|
@@ -589,222 +595,232 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
589
595
|
}, [
|
|
590
596
|
$(t.$slots, "chart-background", {}, void 0, !0)
|
|
591
597
|
], 8, Kt)) : v("", !0),
|
|
592
|
-
a.value.style.chart.arcs.labels.curved ? (
|
|
593
|
-
(
|
|
598
|
+
a.value.style.chart.arcs.labels.curved ? (r(), i("defs", ea, [
|
|
599
|
+
(r(!0), i(F, null, Y(_.value.groups, (e, l) => (r(), i("path", {
|
|
594
600
|
key: `labelPath-${l}`,
|
|
595
601
|
id: `labelPath-${l}_${T.value}`,
|
|
596
|
-
d:
|
|
602
|
+
d: vt(
|
|
597
603
|
e.startAngle,
|
|
598
604
|
e.endAngle,
|
|
599
|
-
(
|
|
605
|
+
(p.value.inner + p.value.outer) / 2 + a.value.style.chart.arcs.labels.offset
|
|
600
606
|
),
|
|
601
607
|
fill: "none"
|
|
602
608
|
}, null, 8, ta))), 128))
|
|
603
609
|
])) : v("", !0),
|
|
604
|
-
t.$slots.pattern ? (
|
|
605
|
-
(
|
|
606
|
-
$(t.$slots, "pattern",
|
|
610
|
+
t.$slots.pattern ? (r(), i("g", aa, [
|
|
611
|
+
(r(!0), i(F, null, Y(_.value.groups, (e, l) => (r(), i("defs", null, [
|
|
612
|
+
$(t.$slots, "pattern", kt({ ref_for: !0 }, { seriesIndex: e.index, patternId: `pattern_${T.value}_${l}` }), void 0, !0)
|
|
607
613
|
]))), 256))
|
|
608
614
|
])) : v("", !0),
|
|
609
|
-
|
|
615
|
+
B("g", {
|
|
610
616
|
transform: `translate(${S.value.width / 2}, ${S.value.height / 2}) rotate(${I.value})`
|
|
611
617
|
}, [
|
|
612
|
-
(
|
|
613
|
-
(
|
|
614
|
-
class:
|
|
618
|
+
(r(!0), i(F, null, Y(_.value.groups, (e, l) => (r(), i("g", null, [
|
|
619
|
+
(r(), i("path", {
|
|
620
|
+
class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !V.value }),
|
|
615
621
|
key: `arc-${l}`,
|
|
616
|
-
d:
|
|
622
|
+
d: Oe(
|
|
617
623
|
e.startAngle,
|
|
618
624
|
e.endAngle,
|
|
619
|
-
|
|
620
|
-
|
|
625
|
+
p.value.outer,
|
|
626
|
+
p.value.inner
|
|
621
627
|
),
|
|
622
|
-
fill:
|
|
628
|
+
fill: y.value.colors[l],
|
|
623
629
|
stroke: a.value.style.chart.arcs.stroke,
|
|
624
630
|
"stroke-width": a.value.style.chart.arcs.strokeWidth,
|
|
625
631
|
"stroke-linecap": "round",
|
|
626
632
|
"stroke-linejoin": "round",
|
|
627
|
-
style:
|
|
628
|
-
opacity:
|
|
633
|
+
style: E({
|
|
634
|
+
opacity: Re(e)
|
|
629
635
|
}),
|
|
630
|
-
onMouseenter: () =>
|
|
631
|
-
onMouseleave: o[0] || (o[0] = (
|
|
632
|
-
onClick: (
|
|
636
|
+
onMouseenter: () => ft(e),
|
|
637
|
+
onMouseleave: o[0] || (o[0] = (n) => w.value = null),
|
|
638
|
+
onClick: (n) => Z("selectGroup", e)
|
|
633
639
|
}, null, 46, la)),
|
|
634
|
-
t.$slots.pattern ? (
|
|
635
|
-
class:
|
|
640
|
+
t.$slots.pattern ? (r(), i("path", {
|
|
641
|
+
class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !V.value }),
|
|
636
642
|
key: `arc-${l}`,
|
|
637
|
-
d:
|
|
643
|
+
d: Oe(
|
|
638
644
|
e.startAngle,
|
|
639
645
|
e.endAngle,
|
|
640
|
-
|
|
641
|
-
|
|
646
|
+
p.value.outer,
|
|
647
|
+
p.value.inner
|
|
642
648
|
),
|
|
643
649
|
fill: `url(#${e.pattern})`,
|
|
644
650
|
stroke: a.value.style.chart.arcs.stroke,
|
|
645
651
|
"stroke-width": a.value.style.chart.arcs.strokeWidth,
|
|
646
652
|
"stroke-linecap": "round",
|
|
647
653
|
"stroke-linejoin": "round",
|
|
648
|
-
style:
|
|
649
|
-
opacity:
|
|
654
|
+
style: E({
|
|
655
|
+
opacity: Re(e),
|
|
650
656
|
pointerEvents: "none"
|
|
651
657
|
})
|
|
652
658
|
}, null, 14, sa)) : v("", !0)
|
|
653
659
|
]))), 256)),
|
|
654
|
-
|
|
655
|
-
(
|
|
660
|
+
B("g", null, [
|
|
661
|
+
(r(!0), i(F, null, Y(w.value ? _.value.chords.filter((e) => e.source.groupId === w.value.id) : g.value ? _.value.chords.filter((e) => e.source.groupId === g.value) : _.value.chords, (e) => (r(), i(F, {
|
|
656
662
|
key: `ribbon-${e.id}`
|
|
657
663
|
}, [
|
|
658
|
-
e.source.value ? (
|
|
664
|
+
e.source.value ? (r(), i("path", {
|
|
659
665
|
key: 0,
|
|
660
|
-
class:
|
|
666
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !V.value }),
|
|
661
667
|
d: J(e.source, e.target),
|
|
662
668
|
fill: a.value.style.chart.backgroundColor,
|
|
663
|
-
style:
|
|
664
|
-
}, null, 14,
|
|
665
|
-
e.source.value ? (
|
|
669
|
+
style: E({ opacity: a.value.style.chart.ribbons.underlayerOpacity })
|
|
670
|
+
}, null, 14, ra)) : v("", !0),
|
|
671
|
+
e.source.value ? (r(), i("path", {
|
|
666
672
|
key: 1,
|
|
667
|
-
class:
|
|
673
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !V.value }),
|
|
668
674
|
d: J(e.source, e.target),
|
|
669
|
-
fill:
|
|
675
|
+
fill: y.value.colors[e.source.index],
|
|
670
676
|
stroke: a.value.style.chart.ribbons.stroke,
|
|
671
677
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
672
678
|
"stroke-linecap": "round",
|
|
673
679
|
"stroke-linejoin": "round",
|
|
674
|
-
style:
|
|
675
|
-
onMouseenter: () =>
|
|
680
|
+
style: E({ opacity: Xe(e) }),
|
|
681
|
+
onMouseenter: () => gt({
|
|
676
682
|
...e,
|
|
677
683
|
path: J(e.source, e.target),
|
|
678
|
-
color:
|
|
684
|
+
color: y.value.colors[e.source.index]
|
|
679
685
|
}),
|
|
680
686
|
onClick: (l) => Z("selectRibbon", {
|
|
681
687
|
...e,
|
|
682
|
-
color:
|
|
688
|
+
color: y.value.colors[e.source.index]
|
|
683
689
|
}),
|
|
684
|
-
onMouseleave: o[1] || (o[1] = (l) =>
|
|
685
|
-
}, null, 46,
|
|
686
|
-
e.source.value && t.$slots.pattern ? (
|
|
690
|
+
onMouseleave: o[1] || (o[1] = (l) => m.value = null)
|
|
691
|
+
}, null, 46, na)) : v("", !0),
|
|
692
|
+
e.source.value && t.$slots.pattern ? (r(), i("path", {
|
|
687
693
|
key: 2,
|
|
688
|
-
class:
|
|
694
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !V.value }),
|
|
689
695
|
d: J(e.source, e.target),
|
|
690
696
|
fill: `url(#pattern_${T.value}_${e.source.index})`,
|
|
691
697
|
stroke: a.value.style.chart.ribbons.stroke,
|
|
692
698
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
693
699
|
"stroke-linecap": "round",
|
|
694
700
|
"stroke-linejoin": "round",
|
|
695
|
-
style:
|
|
696
|
-
opacity:
|
|
701
|
+
style: E({
|
|
702
|
+
opacity: Xe(e),
|
|
697
703
|
pointerEvents: "none"
|
|
698
704
|
})
|
|
699
705
|
}, null, 14, ua)) : v("", !0)
|
|
700
706
|
], 64))), 128)),
|
|
701
|
-
|
|
707
|
+
m.value ? (r(), i("path", {
|
|
702
708
|
key: 0,
|
|
703
|
-
d:
|
|
704
|
-
fill:
|
|
709
|
+
d: m.value.path,
|
|
710
|
+
fill: m.value.color,
|
|
705
711
|
stroke: a.value.style.chart.ribbons.stroke,
|
|
706
712
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
707
713
|
"stroke-linecap": "round",
|
|
708
714
|
"stroke-linejoin": "round",
|
|
709
|
-
class:
|
|
715
|
+
class: z({ "vue-ui-chord-ribbon": !0 }),
|
|
710
716
|
style: {
|
|
711
717
|
pointerEvents: "none"
|
|
712
718
|
}
|
|
713
719
|
}, null, 8, ia)) : v("", !0),
|
|
714
|
-
|
|
720
|
+
m.value && t.$slots.pattern ? (r(), i("path", {
|
|
715
721
|
key: 1,
|
|
716
|
-
d:
|
|
717
|
-
fill: `url(#${
|
|
722
|
+
d: m.value.path,
|
|
723
|
+
fill: `url(#${m.value.source.pattern})`,
|
|
718
724
|
stroke: a.value.style.chart.ribbons.stroke,
|
|
719
725
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
720
726
|
"stroke-linecap": "round",
|
|
721
727
|
"stroke-linejoin": "round",
|
|
722
|
-
class:
|
|
728
|
+
class: z({ "vue-ui-chord-ribbon": !0 }),
|
|
723
729
|
style: {
|
|
724
730
|
pointerEvents: "none"
|
|
725
731
|
}
|
|
726
732
|
}, null, 8, ca)) : v("", !0)
|
|
727
733
|
]),
|
|
728
|
-
(w.value ||
|
|
729
|
-
(
|
|
734
|
+
(w.value || m.value || g.value) && a.value.style.chart.ribbons.labels.show ? (r(), i("g", da, [
|
|
735
|
+
(r(!0), i(F, null, Y(nt.value, (e) => (r(), i(F, {
|
|
730
736
|
key: e.id
|
|
731
737
|
}, [
|
|
732
|
-
|
|
738
|
+
B("line", {
|
|
733
739
|
x1: e.midBaseX,
|
|
734
740
|
y1: e.midBaseY,
|
|
735
|
-
x2: Math.cos(e.theta - Math.PI / 2) * (
|
|
736
|
-
y2: Math.sin(e.theta - Math.PI / 2) * (
|
|
741
|
+
x2: Math.cos(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
742
|
+
y2: Math.sin(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
737
743
|
stroke: a.value.style.chart.backgroundColor,
|
|
738
744
|
"stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
|
|
739
745
|
"pointer-events": "none"
|
|
740
746
|
}, null, 8, va),
|
|
741
|
-
|
|
747
|
+
B("line", {
|
|
742
748
|
x1: e.midBaseX,
|
|
743
749
|
y1: e.midBaseY,
|
|
744
|
-
x2: Math.cos(e.theta - Math.PI / 2) * (
|
|
745
|
-
y2: Math.sin(e.theta - Math.PI / 2) * (
|
|
750
|
+
x2: Math.cos(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
751
|
+
y2: Math.sin(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
746
752
|
stroke: a.value.style.chart.ribbons.labels.connector.stroke,
|
|
747
753
|
"stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth,
|
|
748
754
|
"pointer-events": "none"
|
|
749
755
|
}, null, 8, ha),
|
|
750
|
-
a.value.style.chart.ribbons.labels.marker.show ? (
|
|
756
|
+
a.value.style.chart.ribbons.labels.marker.show ? (r(), i("circle", {
|
|
751
757
|
key: 0,
|
|
752
|
-
cx: Math.cos(e.theta - Math.PI / 2) * (
|
|
753
|
-
cy: Math.sin(e.theta - Math.PI / 2) * (
|
|
758
|
+
cx: Math.cos(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
759
|
+
cy: Math.sin(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
754
760
|
r: a.value.style.chart.ribbons.labels.marker.radius,
|
|
755
761
|
stroke: a.value.style.chart.ribbons.labels.marker.stroke,
|
|
756
762
|
"stroke-width": a.value.style.chart.ribbons.labels.marker.strokeWidth,
|
|
757
763
|
fill: e.groupColor,
|
|
758
764
|
"pointer-events": "none"
|
|
759
765
|
}, null, 8, fa)) : v("", !0),
|
|
760
|
-
|
|
766
|
+
B("text", {
|
|
761
767
|
transform: `
|
|
762
768
|
translate(
|
|
763
|
-
${Math.cos(e.theta - Math.PI / 2) * (
|
|
764
|
-
${Math.sin(e.theta - Math.PI / 2) * (
|
|
769
|
+
${Math.cos(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 24)},
|
|
770
|
+
${Math.sin(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 24)}
|
|
765
771
|
) rotate(${-I.value})
|
|
766
772
|
`,
|
|
767
773
|
fill: a.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : a.value.style.chart.ribbons.labels.color,
|
|
768
|
-
"text-anchor":
|
|
774
|
+
"text-anchor": ct(e.theta),
|
|
769
775
|
"font-size": a.value.style.chart.ribbons.labels.fontSize,
|
|
770
776
|
"font-weight": a.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
|
|
771
777
|
dy: ".35em",
|
|
772
778
|
"pointer-events": "none"
|
|
773
|
-
},
|
|
779
|
+
}, R(Fe(e.value)), 9, ga)
|
|
774
780
|
], 64))), 128))
|
|
775
781
|
])) : v("", !0),
|
|
776
|
-
a.value.style.chart.arcs.labels.show ? (
|
|
777
|
-
a.value.style.chart.arcs.labels.curved ? (
|
|
782
|
+
a.value.style.chart.arcs.labels.show ? (r(), i("g", pa, [
|
|
783
|
+
a.value.style.chart.arcs.labels.curved ? (r(!0), i(F, { key: 0 }, Y(_.value.groups, (e, l) => (r(), i("text", {
|
|
778
784
|
key: `curved-label-${l}`,
|
|
779
785
|
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
780
786
|
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
781
|
-
fill: a.value.style.chart.arcs.labels.adaptColorToBackground ?
|
|
787
|
+
fill: a.value.style.chart.arcs.labels.adaptColorToBackground ? b(St)(y.value.colors[l]) : a.value.style.chart.arcs.labels.color
|
|
782
788
|
}, [
|
|
783
|
-
|
|
789
|
+
B("textPath", {
|
|
784
790
|
href: `#labelPath-${l}_${T.value}`,
|
|
785
791
|
startOffset: "50%",
|
|
786
792
|
"text-anchor": "middle"
|
|
787
|
-
},
|
|
788
|
-
|
|
793
|
+
}, R(y.value.labels[l]) + R(a.value.style.chart.arcs.labels.showPercentage ? b(he)({
|
|
794
|
+
p: " (",
|
|
795
|
+
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
796
|
+
s: "%)",
|
|
797
|
+
r: a.value.style.chart.arcs.labels.roundingPercentage
|
|
798
|
+
}) : ""), 9, ma)
|
|
799
|
+
], 8, ba))), 128)) : !w.value && !m.value && !g.value ? (r(!0), i(F, { key: 1 }, Y(_.value.groups, (e, l) => (r(), i("text", {
|
|
789
800
|
key: `label-${l}`,
|
|
790
801
|
transform: `
|
|
791
|
-
${
|
|
802
|
+
${dt((e.startAngle + e.endAngle) / 2)}
|
|
792
803
|
rotate(${-I.value})
|
|
793
804
|
`,
|
|
794
805
|
dy: ".35em",
|
|
795
|
-
"text-anchor":
|
|
806
|
+
"text-anchor": it(e) > Math.PI ? "end" : "start",
|
|
796
807
|
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
797
808
|
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
798
809
|
fill: a.value.style.chart.arcs.labels.color
|
|
799
|
-
},
|
|
810
|
+
}, R(y.value.labels[l]) + R(a.value.style.chart.arcs.labels.showPercentage ? b(he)({
|
|
811
|
+
p: " (",
|
|
812
|
+
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
813
|
+
s: "%)",
|
|
814
|
+
r: a.value.style.chart.arcs.labels.roundingPercentage
|
|
815
|
+
}) : ""), 9, ya))), 128)) : v("", !0)
|
|
800
816
|
])) : v("", !0)
|
|
801
817
|
], 8, oa),
|
|
802
818
|
$(t.$slots, "svg", { svg: { height: 600, width: 600 } }, void 0, !0)
|
|
803
|
-
],
|
|
804
|
-
t.$slots.watermark ? (
|
|
805
|
-
$(t.$slots, "watermark",
|
|
819
|
+
], 42, Jt)) : v("", !0),
|
|
820
|
+
t.$slots.watermark ? (r(), i("div", ka, [
|
|
821
|
+
$(t.$slots, "watermark", le(se({ isPrinting: b(Me) || b(xe) })), void 0, !0)
|
|
806
822
|
])) : v("", !0),
|
|
807
|
-
L.value ? v("", !0) : (
|
|
823
|
+
L.value ? v("", !0) : (r(), U(Wt, {
|
|
808
824
|
key: 6,
|
|
809
825
|
config: {
|
|
810
826
|
type: "chord",
|
|
@@ -816,23 +832,23 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
816
832
|
}
|
|
817
833
|
}
|
|
818
834
|
}, null, 8, ["config"])),
|
|
819
|
-
|
|
835
|
+
B("div", {
|
|
820
836
|
ref_key: "chartLegend",
|
|
821
|
-
ref:
|
|
837
|
+
ref: pe
|
|
822
838
|
}, [
|
|
823
|
-
a.value.style.chart.legend.show ? (
|
|
824
|
-
key: `legend_${
|
|
825
|
-
legendSet:
|
|
839
|
+
a.value.style.chart.legend.show ? (r(), U(Ut, {
|
|
840
|
+
key: `legend_${$e.value}`,
|
|
841
|
+
legendSet: Ye.value,
|
|
826
842
|
config: bt.value,
|
|
827
|
-
onClickMarker: o[2] || (o[2] = ({ legend: e }) =>
|
|
828
|
-
},
|
|
843
|
+
onClickMarker: o[2] || (o[2] = ({ legend: e }) => Ue(e.id))
|
|
844
|
+
}, qe({
|
|
829
845
|
item: P(({ legend: e, index: l }) => [
|
|
830
|
-
|
|
831
|
-
style:
|
|
832
|
-
opacity:
|
|
846
|
+
B("div", {
|
|
847
|
+
style: E({
|
|
848
|
+
opacity: g.value ? g.value === e.id ? 1 : 0.3 : 1
|
|
833
849
|
}),
|
|
834
|
-
onClick: (
|
|
835
|
-
},
|
|
850
|
+
onClick: (n) => e.select()
|
|
851
|
+
}, R(e.name), 13, $a)
|
|
836
852
|
]),
|
|
837
853
|
_: 2
|
|
838
854
|
}, [
|
|
@@ -850,9 +866,9 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
850
866
|
key: "0"
|
|
851
867
|
} : void 0
|
|
852
868
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
853
|
-
$(t.$slots, "legend", { legend:
|
|
869
|
+
$(t.$slots, "legend", { legend: Ye.value }, void 0, !0)
|
|
854
870
|
], 512),
|
|
855
|
-
t.$slots.source ? (
|
|
871
|
+
t.$slots.source ? (r(), i("div", {
|
|
856
872
|
key: 7,
|
|
857
873
|
ref_key: "source",
|
|
858
874
|
ref: be,
|
|
@@ -860,14 +876,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
860
876
|
}, [
|
|
861
877
|
$(t.$slots, "source", {}, void 0, !0)
|
|
862
878
|
], 512)) : v("", !0),
|
|
863
|
-
I.value !== a.value.initialRotation ? (
|
|
879
|
+
I.value !== a.value.initialRotation ? (r(), i("div", wa, [
|
|
864
880
|
$(t.$slots, "reset-action", { reset: De }, () => [
|
|
865
|
-
|
|
881
|
+
B("button", {
|
|
866
882
|
"data-cy-reset": "",
|
|
867
883
|
tabindex: "0",
|
|
868
884
|
role: "button",
|
|
869
885
|
class: "vue-data-ui-refresh-button",
|
|
870
|
-
style:
|
|
886
|
+
style: E({
|
|
871
887
|
background: a.value.style.chart.backgroundColor
|
|
872
888
|
}),
|
|
873
889
|
onClick: De
|
|
@@ -879,7 +895,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
879
895
|
], 4)
|
|
880
896
|
], !0)
|
|
881
897
|
])) : v("", !0),
|
|
882
|
-
L.value ? (
|
|
898
|
+
L.value ? (r(), U(Vt, {
|
|
883
899
|
key: 9,
|
|
884
900
|
hideDetails: "",
|
|
885
901
|
config: {
|
|
@@ -896,20 +912,20 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
896
912
|
}
|
|
897
913
|
}, {
|
|
898
914
|
content: P(() => [
|
|
899
|
-
(
|
|
900
|
-
key: `table_${
|
|
901
|
-
colNames:
|
|
902
|
-
head:
|
|
903
|
-
body:
|
|
904
|
-
config:
|
|
915
|
+
(r(), U(Gt, {
|
|
916
|
+
key: `table_${ke.value}`,
|
|
917
|
+
colNames: oe.value.colNames,
|
|
918
|
+
head: oe.value.head,
|
|
919
|
+
body: oe.value.body,
|
|
920
|
+
config: oe.value.config,
|
|
905
921
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
906
922
|
onClose: o[3] || (o[3] = (e) => q.value.showTable = !1)
|
|
907
923
|
}, {
|
|
908
924
|
th: P(({ th: e }) => [
|
|
909
|
-
|
|
925
|
+
$t(R(e.name), 1)
|
|
910
926
|
]),
|
|
911
927
|
td: P(({ td: e }) => [
|
|
912
|
-
|
|
928
|
+
B("div", Ca, R(e.name ? e.name : Fe(e)), 1)
|
|
913
929
|
]),
|
|
914
930
|
_: 1
|
|
915
931
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
@@ -918,7 +934,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
918
934
|
}, 8, ["config"])) : v("", !0)
|
|
919
935
|
], 46, Zt));
|
|
920
936
|
}
|
|
921
|
-
},
|
|
937
|
+
}, Da = /* @__PURE__ */ Qt(Ma, [["__scopeId", "data-v-0406fd61"]]);
|
|
922
938
|
export {
|
|
923
|
-
|
|
939
|
+
Da as default
|
|
924
940
|
};
|