vue-data-ui 2.12.1 → 2.12.3
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-Bp4e97cD.js → Arrow-7DZD153U.js} +1 -1
- package/dist/{BaseIcon-B8E9P00u.js → BaseIcon-4Tt-jDsF.js} +1 -1
- package/dist/{ColorPicker-DuvX5-fm.js → ColorPicker-D9cQ_1h3.js} +3 -3
- package/dist/{DataTable-CSjNN3jI.js → DataTable-CXRbXtrU.js} +2 -2
- package/dist/{Legend-CAup0ri4.js → Legend-CMVT8Hmn.js} +2 -2
- package/dist/{PackageVersion-xjSogtA5.js → PackageVersion-DrcIKw3H.js} +1 -1
- package/dist/{PenAndPaper-BuykDu_0.js → PenAndPaper-B52M1Af-.js} +3 -3
- package/dist/{Shape-DdhA4qSz.js → Shape-DsC3hyrC.js} +1 -1
- package/dist/{Slicer-CuhLestl.js → Slicer-9d1_C4bi.js} +2 -2
- package/dist/{Title-BnRm2t-0.js → Title-9qKNVCMA.js} +1 -1
- package/dist/{Tooltip-BRb91mkO.js → Tooltip-n2JxyMqg.js} +1 -1
- package/dist/{dom-to-png-BApQFYxJ.js → dom-to-png-mBFxJrIS.js} +1 -1
- package/dist/{img-B90vlJIg.js → img-DrpWNEaa.js} +1 -1
- package/dist/{index-D7As7hLS.js → index-CK9QG5R4.js} +140 -139
- package/dist/{pdf-BJJGTrdI.js → pdf-BalkhgZX.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-RcVZW3zi.js → useNestedProp-X5zYwXdP.js} +1 -1
- package/dist/{usePrinter-DAcjoH4T.js → usePrinter-BZsCVIwN.js} +3 -3
- package/dist/{vue-data-ui-B-jG29nn.js → vue-data-ui-65FSOU9n.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-ZicDcaWE.js → vue-ui-3d-bar-CaLDkBVj.js} +9 -9
- package/dist/{vue-ui-accordion-DBRvT5aF.js → vue-ui-accordion-BA3mkouQ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-kXLXbxXa.js → vue-ui-age-pyramid-DdlGpZy9.js} +10 -10
- package/dist/{vue-ui-annotator-BSUztZDc.js → vue-ui-annotator-CKvRES98.js} +2 -2
- package/dist/{vue-ui-bullet-EmB7_Kks.js → vue-ui-bullet-CdcJXA6l.js} +8 -8
- package/dist/{vue-ui-candlestick-BhygnUo4.js → vue-ui-candlestick-CkllTOUY.js} +11 -11
- package/dist/{vue-ui-carousel-table-BMrr5nS1.js → vue-ui-carousel-table-D3vCB81N.js} +4 -4
- package/dist/{vue-ui-chestnut-BxXNuces.js → vue-ui-chestnut-BE16kanb.js} +8 -8
- package/dist/{vue-ui-chord-oH1mLZ8-.js → vue-ui-chord-BpsjJuE7.js} +327 -315
- package/dist/{vue-ui-circle-pack-B7RscU4n.js → vue-ui-circle-pack-C438GSXx.js} +9 -9
- package/dist/{vue-ui-cursor-DIsxsI0B.js → vue-ui-cursor-a30lAfyb.js} +2 -2
- package/dist/{vue-ui-dashboard-6Vq257n9.js → vue-ui-dashboard-BkRc89ac.js} +62 -62
- package/dist/{vue-ui-digits-BDWHWorB.js → vue-ui-digits-C3f9FAdw.js} +2 -2
- package/dist/{vue-ui-donut-BwtcQouC.js → vue-ui-donut-Dwsm3xe8.js} +14 -16
- package/dist/{vue-ui-donut-evolution-bPMHgrez.js → vue-ui-donut-evolution-HVTx2TzC.js} +11 -11
- package/dist/{vue-ui-dumbbell-CZCa0Atm.js → vue-ui-dumbbell-CIICXHWw.js} +10 -10
- package/dist/{vue-ui-flow-uJvCG-qV.js → vue-ui-flow-Bs4GfLdc.js} +11 -11
- package/dist/{vue-ui-funnel-CwphwiFl.js → vue-ui-funnel-CASIJPoW.js} +9 -9
- package/dist/{vue-ui-galaxy-EZxdclRv.js → vue-ui-galaxy-BoTSH1dz.js} +11 -11
- package/dist/{vue-ui-gauge-g9nn9hyX.js → vue-ui-gauge-Cfvwu5jW.js} +7 -7
- package/dist/{vue-ui-gizmo-DIDbcUDx.js → vue-ui-gizmo-HB1PEZIT.js} +3 -3
- package/dist/{vue-ui-heatmap-B3t3CcLv.js → vue-ui-heatmap-BXQslQxq.js} +10 -10
- package/dist/{vue-ui-history-plot-CfLzAwMI.js → vue-ui-history-plot-qW_cLH2J.js} +11 -11
- package/dist/{vue-ui-kpi-DQQuDnUz.js → vue-ui-kpi-CHTFlQmm.js} +3 -3
- package/dist/{vue-ui-mini-loader-CtiJDp14.js → vue-ui-mini-loader-CZFa8WdC.js} +2 -2
- package/dist/{vue-ui-molecule-kvMrga4y.js → vue-ui-molecule-2XWcGAxa.js} +11 -11
- package/dist/{vue-ui-mood-radar-DzvwS4-p.js → vue-ui-mood-radar-B0wwOAcZ.js} +11 -11
- package/dist/{vue-ui-nested-donuts-Di1RGfpx.js → vue-ui-nested-donuts-CD47r6S8.js} +11 -11
- package/dist/{vue-ui-onion-DL2oXMbr.js → vue-ui-onion-BrefEoKM.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-CwN40tRh.js → vue-ui-parallel-coordinate-plot-Ci9k0ZMR.js} +12 -12
- package/dist/{vue-ui-quadrant-CqJ_jL6H.js → vue-ui-quadrant-DRd3t6uQ.js} +12 -12
- package/dist/{vue-ui-quick-chart-Db7_PHUV.js → vue-ui-quick-chart-DVyuMMNZ.js} +9 -9
- package/dist/{vue-ui-radar-6KOb86if.js → vue-ui-radar-BMlo5wj_.js} +12 -12
- package/dist/{vue-ui-rating-ChgCGHGO.js → vue-ui-rating-BZLepZbE.js} +2 -2
- package/dist/{vue-ui-relation-circle-CEcoV_TW.js → vue-ui-relation-circle-BMWf_-ts.js} +7 -7
- package/dist/{vue-ui-ridgeline-f6KtOGUC.js → vue-ui-ridgeline-DoNIDa-r.js} +12 -12
- package/dist/{vue-ui-rings-DdXtanok.js → vue-ui-rings-CyN6PZZw.js} +12 -12
- package/dist/{vue-ui-scatter-VND240PK.js → vue-ui-scatter-Dm24n28E.js} +12 -12
- package/dist/{vue-ui-skeleton-Bbq7c-aT.js → vue-ui-skeleton-CCPLO_mW.js} +3 -3
- package/dist/{vue-ui-smiley-BpVmBBOK.js → vue-ui-smiley-D5GLTCkV.js} +2 -2
- package/dist/{vue-ui-spark-trend-BGG_js3W.js → vue-ui-spark-trend-DM-YH2Vz.js} +5 -5
- package/dist/{vue-ui-sparkbar-Dv6pfXGi.js → vue-ui-sparkbar-Dp-Vp0Bz.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DjwdDDIG.js → vue-ui-sparkgauge-AhGrljqS.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-dqgjnMpH.js → vue-ui-sparkhistogram-C_WzbJka.js} +5 -5
- package/dist/{vue-ui-sparkline-BbtNs3eK.js → vue-ui-sparkline-D3TgSaqu.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-BFzeG9wh.js → vue-ui-sparkstackbar-Dx1gnUfv.js} +5 -5
- package/dist/{vue-ui-stackbar-DVKUmXI8.js → vue-ui-stackbar-kPpS5ytk.js} +13 -13
- package/dist/{vue-ui-strip-plot-BxQlX4Dt.js → vue-ui-strip-plot-DMgQkOFL.js} +11 -11
- package/dist/{vue-ui-table-DZvuCcVK.js → vue-ui-table-DhN_orHh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-B8K48Lzw.js → vue-ui-table-heatmap-CghBmNfB.js} +4 -4
- package/dist/{vue-ui-table-sparkline-tV0419bp.js → vue-ui-table-sparkline-DwZ6dDd7.js} +5 -5
- package/dist/{vue-ui-thermometer-BJwiydfU.js → vue-ui-thermometer-Bk2nGclO.js} +7 -7
- package/dist/{vue-ui-timer-DIB-jTWU.js → vue-ui-timer-C7G-xWU0.js} +5 -5
- package/dist/{vue-ui-tiremarks-BPct2GbC.js → vue-ui-tiremarks-DInEjYlc.js} +7 -7
- package/dist/{vue-ui-treemap-DDIx3e_6.js → vue-ui-treemap-BKvkNCsR.js} +12 -12
- package/dist/{vue-ui-vertical-bar-CgwGFLC8.js → vue-ui-vertical-bar-DiQI4bPT.js} +12 -12
- package/dist/{vue-ui-waffle-Be8Ze6mr.js → vue-ui-waffle-z1dbL3gf.js} +12 -12
- package/dist/{vue-ui-wheel-CWXgE2tS.js → vue-ui-wheel-cH-wbQMg.js} +7 -7
- package/dist/{vue-ui-word-cloud-BvZkPdVi.js → vue-ui-word-cloud-L7hmGLCt.js} +10 -10
- package/dist/{vue-ui-world-DxFXOqlh.js → vue-ui-world-DNbRBwbT.js} +11 -11
- package/dist/{vue-ui-xy-De2Sa4Wj.js → vue-ui-xy-CHkLFwbF.js} +16 -16
- package/dist/{vue-ui-xy-canvas-BBVfzyju.js → vue-ui-xy-canvas-CXZZH9wb.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 jt, U as Dt } from "./usePrinter-
|
|
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-CK9QG5R4.js";
|
|
3
|
+
import { u as Nt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
4
|
+
import { u as Ze } from "./useNestedProp-X5zYwXdP.js";
|
|
5
|
+
import { u as Et } from "./useChartAccessibility-BWojgys7.js";
|
|
6
|
+
import { _ as zt } from "./Title-9qKNVCMA.js";
|
|
7
|
+
import { _ as Ft } from "./PackageVersion-DrcIKw3H.js";
|
|
8
|
+
import { _ as Xt } from "./PenAndPaper-B52M1Af-.js";
|
|
9
|
+
import Rt from "./BaseIcon-4Tt-jDsF.js";
|
|
10
|
+
import { u as jt, U as Dt } from "./usePrinter-BZsCVIwN.js";
|
|
11
|
+
import { L as Ut } from "./Legend-CMVT8Hmn.js";
|
|
12
|
+
import { _ as Yt } from "./Shape-DsC3hyrC.js";
|
|
13
|
+
import { D as Gt } from "./DataTable-CXRbXtrU.js";
|
|
14
|
+
import Vt from "./vue-ui-accordion-BA3mkouQ.js";
|
|
15
|
+
import Wt from "./vue-ui-skeleton-CCPLO_mW.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,67 +39,67 @@ 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
|
+
13742545: 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 =
|
|
56
|
+
function Ae() {
|
|
57
|
+
const t = Ze({
|
|
58
58
|
userConfig: f.config,
|
|
59
|
-
defaultConfig:
|
|
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
|
-
}) :
|
|
76
|
+
}) : It({
|
|
77
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: u, heightNoTitle: s, heightSource:
|
|
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: u, heightNoTitle: s, heightSource: n, 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 < u ?
|
|
92
|
+
noTitle: me.value
|
|
93
|
+
}), M = h + C + n + s;
|
|
94
|
+
l < u ? 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
|
|
102
|
+
function Te() {
|
|
103
103
|
if (!f.dataset || !Object.hasOwn(f.dataset, "matrix") || f.dataset.matrix.length < 2) {
|
|
104
104
|
console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
|
|
105
105
|
|
|
@@ -115,92 +115,93 @@ matrix:[
|
|
|
115
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);
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
const Se = d(null);
|
|
119
|
+
Ve(() => {
|
|
120
|
+
Pe();
|
|
121
121
|
});
|
|
122
122
|
const S = d({
|
|
123
123
|
height: 600,
|
|
124
124
|
width: 600
|
|
125
|
-
}),
|
|
125
|
+
}), at = x(() => a.value.userOptions.show && !a.value.style.chart.title.text), ot = x(() => At(a.value.customPalette)), p = x(() => ({
|
|
126
126
|
inner: S.value.width * 0.3 * a.value.style.chart.arcs.innerRadiusRatio,
|
|
127
127
|
outer: S.value.width * 0.34 * a.value.style.chart.arcs.outerRadiusRatio
|
|
128
|
-
})),
|
|
128
|
+
})), lt = x(() => a.value.style.chart.arcs.padAngle / 100), y = x(() => L.value ? {
|
|
129
129
|
matrix: f.dataset.matrix ?? [[0]],
|
|
130
130
|
labels: f.dataset.labels ?? [""],
|
|
131
|
-
colors: f.dataset.colors && Array.isArray(f.dataset.colors) && f.dataset.colors.length ? f.dataset.colors.map((t) =>
|
|
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])
|
|
132
132
|
} : {
|
|
133
133
|
matrix: [],
|
|
134
134
|
labels: [],
|
|
135
135
|
colors: []
|
|
136
136
|
});
|
|
137
|
-
function
|
|
138
|
-
const e = t.length, l =
|
|
137
|
+
function st(t, o) {
|
|
138
|
+
const e = t.length, l = p.value.inner, u = new Array(e).fill(0);
|
|
139
139
|
let s = 0;
|
|
140
140
|
for (let c = 0; c < e; c += 1)
|
|
141
|
-
for (let
|
|
142
|
-
u[c] += t[c][
|
|
143
|
-
const
|
|
141
|
+
for (let k = 0; k < e; k += 1)
|
|
142
|
+
u[c] += t[c][k], s += t[c][k];
|
|
143
|
+
const n = (2 * Math.PI - o * e) / s, h = [];
|
|
144
144
|
let C = 0;
|
|
145
145
|
for (let c = 0; c < e; c += 1) {
|
|
146
|
-
const
|
|
146
|
+
const k = C, A = k + u[c] * n;
|
|
147
147
|
h.push({
|
|
148
148
|
index: c,
|
|
149
149
|
pattern: `pattern_${T.value}_${c}`,
|
|
150
|
-
startAngle:
|
|
150
|
+
startAngle: k,
|
|
151
151
|
endAngle: A,
|
|
152
|
-
name:
|
|
152
|
+
name: y.value.labels[c],
|
|
153
153
|
id: ve(),
|
|
154
|
-
color:
|
|
154
|
+
color: y.value.colors[c],
|
|
155
|
+
proportion: u[c] / s
|
|
155
156
|
}), C = A + o;
|
|
156
157
|
}
|
|
157
158
|
const M = [];
|
|
158
159
|
for (let c = 0; c < e; c += 1) {
|
|
159
|
-
const
|
|
160
|
-
|
|
160
|
+
const k = t[c].map((O, X) => ({ j: X, v: O }));
|
|
161
|
+
k.sort((O, X) => X.v - O.v);
|
|
161
162
|
let A = h[c].startAngle;
|
|
162
|
-
for (const { j: O, v:
|
|
163
|
-
const
|
|
163
|
+
for (const { j: O, v: X } of k) {
|
|
164
|
+
const D = A, Q = D + X * n;
|
|
164
165
|
M.push({
|
|
165
166
|
index: c,
|
|
166
167
|
subIndex: O,
|
|
167
168
|
pattern: `pattern_${T.value}_${c}`,
|
|
168
|
-
startAngle:
|
|
169
|
+
startAngle: D,
|
|
169
170
|
endAngle: Q,
|
|
170
|
-
value:
|
|
171
|
-
groupName:
|
|
171
|
+
value: X,
|
|
172
|
+
groupName: y.value.labels[c],
|
|
172
173
|
groupId: h[c].id,
|
|
173
|
-
groupColor:
|
|
174
|
-
midAngle: (
|
|
175
|
-
midBaseX: Math.cos((
|
|
176
|
-
midBaseY: Math.sin((
|
|
174
|
+
groupColor: y.value.colors[c],
|
|
175
|
+
midAngle: (D + Q) / 2,
|
|
176
|
+
midBaseX: Math.cos((D + Q) / 2 - Math.PI / 2) * l,
|
|
177
|
+
midBaseY: Math.sin((D + Q) / 2 - Math.PI / 2) * l
|
|
177
178
|
}), A = Q;
|
|
178
179
|
}
|
|
179
180
|
}
|
|
180
|
-
const
|
|
181
|
+
const N = [];
|
|
181
182
|
for (const c of M) {
|
|
182
|
-
const
|
|
183
|
+
const k = M.find(
|
|
183
184
|
(A) => A.index === c.subIndex && A.subIndex === c.index
|
|
184
185
|
);
|
|
185
|
-
|
|
186
|
+
N.push({ source: c, target: k, id: ve() });
|
|
186
187
|
}
|
|
187
|
-
return { groups: h, chords:
|
|
188
|
+
return { groups: h, chords: N };
|
|
188
189
|
}
|
|
189
190
|
const _ = x(() => {
|
|
190
|
-
const t =
|
|
191
|
-
return
|
|
191
|
+
const t = st(y.value.matrix, lt.value);
|
|
192
|
+
return Te(), t.chords.sort(
|
|
192
193
|
(o, e) => Math.max(e.source.value, e.target.value) - Math.max(o.source.value, o.target.value)
|
|
193
194
|
), t;
|
|
194
|
-
}),
|
|
195
|
-
const t =
|
|
196
|
-
if (
|
|
197
|
-
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;
|
|
198
199
|
if (s.source.value) {
|
|
199
|
-
const
|
|
200
|
+
const n = String(s.source.value);
|
|
200
201
|
l.push({
|
|
201
202
|
id: s.id + "-src",
|
|
202
203
|
theta: s.source.midAngle,
|
|
203
|
-
w:
|
|
204
|
+
w: n.length * e / t,
|
|
204
205
|
midBaseX: s.source.midBaseX,
|
|
205
206
|
midBaseY: s.source.midBaseY,
|
|
206
207
|
groupColor: s.source.groupColor,
|
|
@@ -208,11 +209,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
208
209
|
});
|
|
209
210
|
}
|
|
210
211
|
if (s.target && s.target.value && s.target.value !== s.source.value) {
|
|
211
|
-
const
|
|
212
|
+
const n = String(s.target.value);
|
|
212
213
|
l.push({
|
|
213
214
|
id: s.id + "-tgt",
|
|
214
215
|
theta: s.target.midAngle,
|
|
215
|
-
w:
|
|
216
|
+
w: n.length * e / t,
|
|
216
217
|
midBaseX: s.target.midBaseX,
|
|
217
218
|
midBaseY: s.target.midBaseY,
|
|
218
219
|
groupColor: s.target.groupColor,
|
|
@@ -222,97 +223,97 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
222
223
|
return l;
|
|
223
224
|
}
|
|
224
225
|
function u(s) {
|
|
225
|
-
_.value.chords.filter((
|
|
226
|
+
_.value.chords.filter((n) => n.source.groupId === s && n.source.value).forEach((n) => {
|
|
226
227
|
{
|
|
227
|
-
const h = String(
|
|
228
|
+
const h = String(n.source.value);
|
|
228
229
|
l.push({
|
|
229
|
-
id:
|
|
230
|
-
theta:
|
|
230
|
+
id: n.id + "-src",
|
|
231
|
+
theta: n.source.midAngle,
|
|
231
232
|
w: h.length * e / t,
|
|
232
|
-
midBaseX:
|
|
233
|
-
midBaseY:
|
|
234
|
-
groupColor:
|
|
235
|
-
value:
|
|
233
|
+
midBaseX: n.source.midBaseX,
|
|
234
|
+
midBaseY: n.source.midBaseY,
|
|
235
|
+
groupColor: n.source.groupColor,
|
|
236
|
+
value: n.source.value
|
|
236
237
|
});
|
|
237
238
|
}
|
|
238
|
-
if (
|
|
239
|
-
const h = String(
|
|
239
|
+
if (n.target && n.target.value && n.target.value !== n.source.value) {
|
|
240
|
+
const h = String(n.target.value);
|
|
240
241
|
l.push({
|
|
241
|
-
id:
|
|
242
|
-
theta:
|
|
242
|
+
id: n.id + "-tgt",
|
|
243
|
+
theta: n.target.midAngle,
|
|
243
244
|
w: h.length * e / t,
|
|
244
|
-
midBaseX:
|
|
245
|
-
midBaseY:
|
|
246
|
-
groupColor:
|
|
247
|
-
value:
|
|
245
|
+
midBaseX: n.target.midBaseX,
|
|
246
|
+
midBaseY: n.target.midBaseY,
|
|
247
|
+
groupColor: n.target.groupColor,
|
|
248
|
+
value: n.target.value
|
|
248
249
|
});
|
|
249
250
|
}
|
|
250
251
|
});
|
|
251
252
|
}
|
|
252
253
|
return g.value && u(g.value), w.value && u(w.value.id), l;
|
|
253
254
|
}), nt = x(() => {
|
|
254
|
-
const t =
|
|
255
|
+
const t = rt.value.map((u) => ({ ...u })).sort((u, s) => u.theta - s.theta), o = a.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
|
|
255
256
|
let e = !0, l = 0;
|
|
256
257
|
for (; e && l++ < 10; ) {
|
|
257
258
|
e = !1;
|
|
258
259
|
for (let h = 1; h < t.length; h += 1) {
|
|
259
|
-
const C = t[h - 1], M = t[h],
|
|
260
|
-
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);
|
|
261
262
|
}
|
|
262
|
-
const u = t[0], s = t[t.length - 1],
|
|
263
|
-
u.theta <
|
|
263
|
+
const u = t[0], s = t[t.length - 1], n = s.theta + s.w + o - 2 * Math.PI;
|
|
264
|
+
u.theta < n && (u.theta = n, e = !0);
|
|
264
265
|
}
|
|
265
266
|
return t;
|
|
266
267
|
});
|
|
267
|
-
function
|
|
268
|
-
const u = t - Math.PI / 2, s = o - Math.PI / 2,
|
|
269
|
-
return `M${
|
|
268
|
+
function Oe(t, o, e, l) {
|
|
269
|
+
const u = t - Math.PI / 2, s = o - Math.PI / 2, n = Math.cos(u) * e, h = Math.sin(u) * e, C = Math.cos(s) * e, M = Math.sin(s) * e, N = Math.cos(s) * l, c = Math.sin(s) * l, k = Math.cos(u) * l, A = Math.sin(u) * l, O = o - t > Math.PI ? 1 : 0;
|
|
270
|
+
return `M${n},${h} A${e},${e} 0 ${O} 1 ${C},${M} L${N},${c} A${l},${l} 0 ${O} 0 ${k},${A} Z`;
|
|
270
271
|
}
|
|
271
272
|
function J(t, o) {
|
|
272
|
-
const e =
|
|
273
|
-
return `M${h},${C}A${e},${e} 0 ${
|
|
274
|
-
}
|
|
275
|
-
const Oe = x(() => I.value * Math.PI / 180);
|
|
276
|
-
function rt(t) {
|
|
277
|
-
return (t.startAngle + t.endAngle) / 2;
|
|
273
|
+
const e = p.value.inner, l = t.startAngle - Math.PI / 2, u = t.endAngle - Math.PI / 2, s = o.startAngle - Math.PI / 2, n = o.endAngle - Math.PI / 2, h = Math.cos(l) * e, C = Math.sin(l) * e, M = Math.cos(u) * e, N = Math.sin(u) * e, c = Math.cos(s) * e, k = Math.sin(s) * e, A = Math.cos(n) * e, O = Math.sin(n) * 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`;
|
|
278
275
|
}
|
|
276
|
+
const Be = x(() => I.value * Math.PI / 180);
|
|
279
277
|
function ut(t) {
|
|
280
|
-
return (
|
|
278
|
+
return (t.startAngle + t.endAngle) / 2;
|
|
281
279
|
}
|
|
282
280
|
function it(t) {
|
|
283
|
-
|
|
284
|
-
return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
|
|
281
|
+
return ((ut(t) + Be.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
|
|
285
282
|
}
|
|
286
283
|
function ct(t) {
|
|
287
|
-
|
|
284
|
+
let o = t + Be.value;
|
|
285
|
+
return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
|
|
286
|
+
}
|
|
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);
|
|
288
289
|
return `translate(${e},${l})`;
|
|
289
290
|
}
|
|
290
|
-
function
|
|
291
|
-
const l = t - Math.PI / 2, u = o - Math.PI / 2, s = Math.cos(l) * e,
|
|
292
|
-
return `M${s},${
|
|
291
|
+
function vt(t, o, e) {
|
|
292
|
+
const l = t - Math.PI / 2, u = o - Math.PI / 2, s = Math.cos(l) * e, n = Math.sin(l) * e, h = Math.cos(u) * e, C = Math.sin(u) * e, M = o - t > Math.PI ? 1 : 0;
|
|
293
|
+
return `M${s},${n} A${e},${e} 0 ${M} 1 ${h},${C}`;
|
|
293
294
|
}
|
|
294
|
-
const I = d(a.value.initialRotation),
|
|
295
|
-
let
|
|
295
|
+
const I = d(a.value.initialRotation), K = d(!1);
|
|
296
|
+
let Le = 0, Ne = 0;
|
|
296
297
|
function Ee(t) {
|
|
297
298
|
const o = W.value.getBoundingClientRect(), e = o.left + o.width / 2, l = o.top + o.height / 2, u = t.clientX ?? t.touches[0].clientX, s = t.clientY ?? t.touches[0].clientY;
|
|
298
299
|
return Math.atan2(s - l, u - e);
|
|
299
300
|
}
|
|
300
|
-
function
|
|
301
|
-
!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));
|
|
302
303
|
}
|
|
303
|
-
function
|
|
304
|
-
if (!
|
|
304
|
+
function ee(t) {
|
|
305
|
+
if (!K.value) return;
|
|
305
306
|
const o = Ee(t);
|
|
306
|
-
I.value =
|
|
307
|
+
I.value = Le + (o - Ne) * 180 / Math.PI;
|
|
307
308
|
}
|
|
308
|
-
function
|
|
309
|
-
|
|
309
|
+
function te() {
|
|
310
|
+
K.value = !1;
|
|
310
311
|
}
|
|
311
|
-
function
|
|
312
|
-
return
|
|
312
|
+
function Fe(t) {
|
|
313
|
+
return Lt(
|
|
313
314
|
a.value.style.chart.ribbons.labels.formatter,
|
|
314
315
|
t,
|
|
315
|
-
|
|
316
|
+
he({
|
|
316
317
|
p: a.value.style.chart.ribbons.labels.prefix,
|
|
317
318
|
v: t,
|
|
318
319
|
s: a.value.style.chart.ribbons.labels.suffix,
|
|
@@ -320,62 +321,62 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
320
321
|
})
|
|
321
322
|
);
|
|
322
323
|
}
|
|
323
|
-
|
|
324
|
-
window.addEventListener("mousemove",
|
|
325
|
-
}),
|
|
326
|
-
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();
|
|
327
328
|
});
|
|
328
329
|
const ie = d(!1);
|
|
329
|
-
function vt(t) {
|
|
330
|
-
ie.value = t, he.value += 1;
|
|
331
|
-
}
|
|
332
330
|
function ht(t) {
|
|
333
|
-
|
|
331
|
+
ie.value = t, fe.value += 1;
|
|
334
332
|
}
|
|
335
333
|
function ft(t) {
|
|
336
|
-
g.value || (
|
|
334
|
+
g.value || (w.value = t);
|
|
337
335
|
}
|
|
338
|
-
function
|
|
339
|
-
|
|
340
|
-
return !g.value && !w.value && !p.value ? 0.8 : (g.value ? g.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);
|
|
341
338
|
}
|
|
342
339
|
function Xe(t) {
|
|
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) {
|
|
343
344
|
var l, u;
|
|
344
|
-
return !g.value && !w.value && !
|
|
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, (u = m.value) == null ? void 0 : u.target.groupId].includes(t.id)) ? 1 : 0.3;
|
|
345
346
|
}
|
|
346
347
|
const H = d(!1);
|
|
347
348
|
function ce() {
|
|
348
349
|
H.value = !H.value;
|
|
349
350
|
}
|
|
350
|
-
function
|
|
351
|
+
function je() {
|
|
351
352
|
q.value.showTable = !q.value.showTable;
|
|
352
353
|
}
|
|
353
|
-
function
|
|
354
|
+
function pt() {
|
|
354
355
|
return _.value;
|
|
355
356
|
}
|
|
356
|
-
const
|
|
357
|
-
function
|
|
357
|
+
const j = d(null);
|
|
358
|
+
function De() {
|
|
358
359
|
const t = a.value.initialRotation;
|
|
359
|
-
|
|
360
|
+
j.value !== null && cancelAnimationFrame(j.value);
|
|
360
361
|
const o = () => {
|
|
361
|
-
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);
|
|
362
363
|
};
|
|
363
|
-
|
|
364
|
+
j.value = requestAnimationFrame(o);
|
|
364
365
|
}
|
|
365
|
-
|
|
366
|
-
|
|
366
|
+
We(() => {
|
|
367
|
+
j.value !== null && cancelAnimationFrame(j.value);
|
|
367
368
|
});
|
|
368
|
-
function
|
|
369
|
+
function Ue(t) {
|
|
369
370
|
t === g.value ? (g.value = null, Z("selectLegend", null)) : (g.value = t, Z("selectLegend", _.value.groups.find((o) => o.id === t)));
|
|
370
371
|
}
|
|
371
|
-
const
|
|
372
|
+
const Ye = x(() => _.value.groups.map((t, o) => ({
|
|
372
373
|
name: t.name,
|
|
373
374
|
color: t.color,
|
|
374
375
|
shape: "circle",
|
|
375
376
|
patternIndex: o,
|
|
376
377
|
pattern: `pattern_${T.value}_${o}`,
|
|
377
378
|
id: t.id,
|
|
378
|
-
select: () =>
|
|
379
|
+
select: () => Ue(t.id),
|
|
379
380
|
opacity: g.value ? g.value === t.id ? 1 : 0.3 : 1
|
|
380
381
|
}))), bt = x(() => ({
|
|
381
382
|
cy: "chord-div-legend",
|
|
@@ -384,16 +385,16 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
384
385
|
fontSize: a.value.style.chart.legend.fontSize,
|
|
385
386
|
paddingBottom: 12,
|
|
386
387
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
387
|
-
})),
|
|
388
|
+
})), ae = x(() => {
|
|
388
389
|
const t = _.value.groups.map((e, l) => ({
|
|
389
390
|
name: e.name || l,
|
|
390
391
|
color: e.color
|
|
391
|
-
})), o =
|
|
392
|
+
})), o = y.value.matrix;
|
|
392
393
|
return { head: t, body: o };
|
|
393
|
-
}),
|
|
394
|
-
const t = [{ name: "", color: null }, ...
|
|
395
|
-
|
|
396
|
-
...
|
|
394
|
+
}), oe = x(() => {
|
|
395
|
+
const t = [{ name: "", color: null }, ...ae.value.head], o = ae.value.body.map((u, s) => [
|
|
396
|
+
ae.value.head[s],
|
|
397
|
+
...ae.value.body[s]
|
|
397
398
|
]), e = {
|
|
398
399
|
th: {
|
|
399
400
|
backgroundColor: a.value.table.th.backgroundColor,
|
|
@@ -414,66 +415,66 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
414
415
|
config: e
|
|
415
416
|
};
|
|
416
417
|
});
|
|
417
|
-
function
|
|
418
|
-
|
|
419
|
-
const t =
|
|
420
|
-
[
|
|
418
|
+
function Ge() {
|
|
419
|
+
wt(() => {
|
|
420
|
+
const t = y.value.matrix.map((l, u) => [
|
|
421
|
+
[y.value.labels[u] || u],
|
|
421
422
|
l
|
|
422
423
|
]), o = [
|
|
423
424
|
[a.value.style.chart.title.text],
|
|
424
425
|
[a.value.style.chart.title.subtitle.text],
|
|
425
426
|
[
|
|
426
427
|
[""],
|
|
427
|
-
...
|
|
428
|
+
...y.value.labels.map((l, u) => [l || u])
|
|
428
429
|
]
|
|
429
|
-
].concat(t), e =
|
|
430
|
-
|
|
430
|
+
].concat(t), e = Ot(o);
|
|
431
|
+
Bt({ csvContent: e, title: a.value.style.chart.title.text || "vue-ui-chord" });
|
|
431
432
|
});
|
|
432
433
|
}
|
|
433
|
-
return
|
|
434
|
-
getData:
|
|
435
|
-
generateCsv:
|
|
436
|
-
generateImage:
|
|
437
|
-
generatePdf:
|
|
434
|
+
return Ke({
|
|
435
|
+
getData: pt,
|
|
436
|
+
generateCsv: Ge,
|
|
437
|
+
generateImage: Ie,
|
|
438
|
+
generatePdf: _e,
|
|
438
439
|
toggleAnnotator: ce,
|
|
439
|
-
toggleTable:
|
|
440
|
-
}), (t, o) => (
|
|
440
|
+
toggleTable: je
|
|
441
|
+
}), (t, o) => (r(), i("div", {
|
|
441
442
|
ref_key: "chordChart",
|
|
442
|
-
ref:
|
|
443
|
-
class:
|
|
443
|
+
ref: G,
|
|
444
|
+
class: z({
|
|
444
445
|
"vue-ui-chord": !0,
|
|
445
446
|
"vue-data-ui-wrapper-fullscreen": ie.value,
|
|
446
447
|
"vue-data-ui-responsive": a.value.responsive
|
|
447
448
|
}),
|
|
448
|
-
style:
|
|
449
|
+
style: E(`font-family:${a.value.style.fontFamily};width:100%; text-align:center;background:${a.value.style.chart.backgroundColor}`),
|
|
449
450
|
id: `chord_${T.value}`,
|
|
450
|
-
onMouseenter: o[4] || (o[4] = () =>
|
|
451
|
-
onMouseleave: o[5] || (o[5] = () =>
|
|
451
|
+
onMouseenter: o[4] || (o[4] = () => b(we)(!0)),
|
|
452
|
+
onMouseleave: o[5] || (o[5] = () => b(we)(!1))
|
|
452
453
|
}, [
|
|
453
|
-
a.value.userOptions.buttons.annotator &&
|
|
454
|
+
a.value.userOptions.buttons.annotator && b(W) ? (r(), U(Xt, {
|
|
454
455
|
key: 0,
|
|
455
456
|
color: a.value.style.chart.color,
|
|
456
457
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
457
458
|
active: H.value,
|
|
458
|
-
svgRef:
|
|
459
|
+
svgRef: b(W),
|
|
459
460
|
onClose: ce
|
|
460
461
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
461
462
|
$(t.$slots, "userConfig", {}, void 0, !0),
|
|
462
|
-
|
|
463
|
+
at.value ? (r(), i("div", {
|
|
463
464
|
key: 1,
|
|
464
465
|
ref_key: "noTitle",
|
|
465
|
-
ref:
|
|
466
|
+
ref: me,
|
|
466
467
|
class: "vue-data-ui-no-title-space",
|
|
467
468
|
style: "height:36px; width: 100%;background:transparent"
|
|
468
469
|
}, null, 512)) : v("", !0),
|
|
469
|
-
a.value.style.chart.title.text ? (
|
|
470
|
+
a.value.style.chart.title.text ? (r(), i("div", {
|
|
470
471
|
key: 2,
|
|
471
472
|
ref_key: "chartTitle",
|
|
472
|
-
ref:
|
|
473
|
+
ref: ge,
|
|
473
474
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
474
475
|
}, [
|
|
475
|
-
(
|
|
476
|
-
key: `title_${
|
|
476
|
+
(r(), U(zt, {
|
|
477
|
+
key: `title_${ye.value}`,
|
|
477
478
|
config: {
|
|
478
479
|
title: {
|
|
479
480
|
cy: "chord-div-title",
|
|
@@ -486,13 +487,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
486
487
|
}
|
|
487
488
|
}, null, 8, ["config"]))
|
|
488
489
|
], 512)) : v("", !0),
|
|
489
|
-
a.value.userOptions.show && L.value && (
|
|
490
|
+
a.value.userOptions.show && L.value && (b(Ce) || b(ue)) ? (r(), U(Dt, {
|
|
490
491
|
ref: "details",
|
|
491
|
-
key: `user_option_${
|
|
492
|
+
key: `user_option_${fe.value}`,
|
|
492
493
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
493
494
|
color: a.value.style.chart.color,
|
|
494
|
-
isPrinting:
|
|
495
|
-
isImaging:
|
|
495
|
+
isPrinting: b(Me),
|
|
496
|
+
isImaging: b(xe),
|
|
496
497
|
uid: T.value,
|
|
497
498
|
hasTooltip: !1,
|
|
498
499
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
@@ -502,25 +503,25 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
502
503
|
hasLabel: !1,
|
|
503
504
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
504
505
|
isFullscreen: ie.value,
|
|
505
|
-
chartElement:
|
|
506
|
+
chartElement: G.value,
|
|
506
507
|
position: a.value.userOptions.position,
|
|
507
508
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
508
509
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
509
510
|
isAnnotation: H.value,
|
|
510
|
-
onToggleFullscreen:
|
|
511
|
-
onGeneratePdf:
|
|
512
|
-
onGenerateCsv:
|
|
513
|
-
onGenerateImage:
|
|
514
|
-
onToggleTable:
|
|
511
|
+
onToggleFullscreen: ht,
|
|
512
|
+
onGeneratePdf: b(_e),
|
|
513
|
+
onGenerateCsv: Ge,
|
|
514
|
+
onGenerateImage: b(Ie),
|
|
515
|
+
onToggleTable: je,
|
|
515
516
|
onToggleAnnotator: ce,
|
|
516
|
-
style:
|
|
517
|
-
visibility:
|
|
517
|
+
style: E({
|
|
518
|
+
visibility: b(Ce) ? b(ue) ? "visible" : "hidden" : "visible"
|
|
518
519
|
})
|
|
519
|
-
},
|
|
520
|
+
}, qe({ _: 2 }, [
|
|
520
521
|
t.$slots.menuIcon ? {
|
|
521
522
|
name: "menuIcon",
|
|
522
523
|
fn: P(({ isOpen: e, color: l }) => [
|
|
523
|
-
$(t.$slots, "menuIcon",
|
|
524
|
+
$(t.$slots, "menuIcon", le(se({ isOpen: e, color: l })), void 0, !0)
|
|
524
525
|
]),
|
|
525
526
|
key: "0"
|
|
526
527
|
} : void 0,
|
|
@@ -555,21 +556,21 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
555
556
|
t.$slots.optionFullscreen ? {
|
|
556
557
|
name: "optionFullscreen",
|
|
557
558
|
fn: P(({ toggleFullscreen: e, isFullscreen: l }) => [
|
|
558
|
-
$(t.$slots, "optionFullscreen",
|
|
559
|
+
$(t.$slots, "optionFullscreen", le(se({ toggleFullscreen: e, isFullscreen: l })), void 0, !0)
|
|
559
560
|
]),
|
|
560
561
|
key: "5"
|
|
561
562
|
} : void 0,
|
|
562
563
|
t.$slots.optionAnnotator ? {
|
|
563
564
|
name: "optionAnnotator",
|
|
564
565
|
fn: P(({ toggleAnnotator: e, isAnnotator: l }) => [
|
|
565
|
-
$(t.$slots, "optionAnnotator",
|
|
566
|
+
$(t.$slots, "optionAnnotator", le(se({ toggleAnnotator: e, isAnnotator: l })), void 0, !0)
|
|
566
567
|
]),
|
|
567
568
|
key: "6"
|
|
568
569
|
} : void 0
|
|
569
570
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
570
|
-
L.value ? (
|
|
571
|
+
L.value ? (r(), i("svg", {
|
|
571
572
|
key: 4,
|
|
572
|
-
xmlns:
|
|
573
|
+
xmlns: b(Tt),
|
|
573
574
|
ref_key: "svgRef",
|
|
574
575
|
ref: W,
|
|
575
576
|
viewBox: `0 0 ${S.value.width} ${S.value.height}`,
|
|
@@ -577,11 +578,12 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
577
578
|
style: {
|
|
578
579
|
overflow: "visible"
|
|
579
580
|
},
|
|
580
|
-
|
|
581
|
-
|
|
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"])
|
|
582
584
|
}, [
|
|
583
585
|
de(Ft),
|
|
584
|
-
t.$slots["chart-background"] ? (
|
|
586
|
+
t.$slots["chart-background"] ? (r(), i("foreignObject", {
|
|
585
587
|
key: 0,
|
|
586
588
|
x: 0,
|
|
587
589
|
y: 0,
|
|
@@ -593,151 +595,151 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
593
595
|
}, [
|
|
594
596
|
$(t.$slots, "chart-background", {}, void 0, !0)
|
|
595
597
|
], 8, Kt)) : v("", !0),
|
|
596
|
-
a.value.style.chart.arcs.labels.curved ? (
|
|
597
|
-
(
|
|
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", {
|
|
598
600
|
key: `labelPath-${l}`,
|
|
599
601
|
id: `labelPath-${l}_${T.value}`,
|
|
600
|
-
d:
|
|
602
|
+
d: vt(
|
|
601
603
|
e.startAngle,
|
|
602
604
|
e.endAngle,
|
|
603
|
-
(
|
|
605
|
+
(p.value.inner + p.value.outer) / 2 + a.value.style.chart.arcs.labels.offset
|
|
604
606
|
),
|
|
605
607
|
fill: "none"
|
|
606
608
|
}, null, 8, ta))), 128))
|
|
607
609
|
])) : v("", !0),
|
|
608
|
-
t.$slots.pattern ? (
|
|
609
|
-
(
|
|
610
|
-
$(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)
|
|
611
613
|
]))), 256))
|
|
612
614
|
])) : v("", !0),
|
|
613
615
|
B("g", {
|
|
614
616
|
transform: `translate(${S.value.width / 2}, ${S.value.height / 2}) rotate(${I.value})`
|
|
615
617
|
}, [
|
|
616
|
-
(
|
|
617
|
-
(
|
|
618
|
-
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 }),
|
|
619
621
|
key: `arc-${l}`,
|
|
620
|
-
d:
|
|
622
|
+
d: Oe(
|
|
621
623
|
e.startAngle,
|
|
622
624
|
e.endAngle,
|
|
623
|
-
|
|
624
|
-
|
|
625
|
+
p.value.outer,
|
|
626
|
+
p.value.inner
|
|
625
627
|
),
|
|
626
|
-
fill:
|
|
628
|
+
fill: y.value.colors[l],
|
|
627
629
|
stroke: a.value.style.chart.arcs.stroke,
|
|
628
630
|
"stroke-width": a.value.style.chart.arcs.strokeWidth,
|
|
629
631
|
"stroke-linecap": "round",
|
|
630
632
|
"stroke-linejoin": "round",
|
|
631
|
-
style:
|
|
632
|
-
opacity:
|
|
633
|
+
style: E({
|
|
634
|
+
opacity: Re(e)
|
|
633
635
|
}),
|
|
634
|
-
onMouseenter: () =>
|
|
636
|
+
onMouseenter: () => ft(e),
|
|
635
637
|
onMouseleave: o[0] || (o[0] = (u) => w.value = null),
|
|
636
638
|
onClick: (u) => Z("selectGroup", e)
|
|
637
639
|
}, null, 46, la)),
|
|
638
|
-
t.$slots.pattern ? (
|
|
639
|
-
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 }),
|
|
640
642
|
key: `arc-${l}`,
|
|
641
|
-
d:
|
|
643
|
+
d: Oe(
|
|
642
644
|
e.startAngle,
|
|
643
645
|
e.endAngle,
|
|
644
|
-
|
|
645
|
-
|
|
646
|
+
p.value.outer,
|
|
647
|
+
p.value.inner
|
|
646
648
|
),
|
|
647
649
|
fill: `url(#${e.pattern})`,
|
|
648
650
|
stroke: a.value.style.chart.arcs.stroke,
|
|
649
651
|
"stroke-width": a.value.style.chart.arcs.strokeWidth,
|
|
650
652
|
"stroke-linecap": "round",
|
|
651
653
|
"stroke-linejoin": "round",
|
|
652
|
-
style:
|
|
653
|
-
opacity:
|
|
654
|
+
style: E({
|
|
655
|
+
opacity: Re(e),
|
|
654
656
|
pointerEvents: "none"
|
|
655
657
|
})
|
|
656
658
|
}, null, 14, sa)) : v("", !0)
|
|
657
659
|
]))), 256)),
|
|
658
660
|
B("g", null, [
|
|
659
|
-
(
|
|
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, {
|
|
660
662
|
key: `ribbon-${e.id}`
|
|
661
663
|
}, [
|
|
662
|
-
e.source.value ? (
|
|
664
|
+
e.source.value ? (r(), i("path", {
|
|
663
665
|
key: 0,
|
|
664
|
-
class:
|
|
666
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !V.value }),
|
|
665
667
|
d: J(e.source, e.target),
|
|
666
668
|
fill: a.value.style.chart.backgroundColor,
|
|
667
|
-
style:
|
|
668
|
-
}, null, 14,
|
|
669
|
-
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", {
|
|
670
672
|
key: 1,
|
|
671
|
-
class:
|
|
673
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !V.value }),
|
|
672
674
|
d: J(e.source, e.target),
|
|
673
|
-
fill:
|
|
675
|
+
fill: y.value.colors[e.source.index],
|
|
674
676
|
stroke: a.value.style.chart.ribbons.stroke,
|
|
675
677
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
676
678
|
"stroke-linecap": "round",
|
|
677
679
|
"stroke-linejoin": "round",
|
|
678
|
-
style:
|
|
679
|
-
onMouseenter: () =>
|
|
680
|
+
style: E({ opacity: Xe(e) }),
|
|
681
|
+
onMouseenter: () => gt({
|
|
680
682
|
...e,
|
|
681
683
|
path: J(e.source, e.target),
|
|
682
|
-
color:
|
|
684
|
+
color: y.value.colors[e.source.index]
|
|
683
685
|
}),
|
|
684
686
|
onClick: (l) => Z("selectRibbon", {
|
|
685
687
|
...e,
|
|
686
|
-
color:
|
|
688
|
+
color: y.value.colors[e.source.index]
|
|
687
689
|
}),
|
|
688
|
-
onMouseleave: o[1] || (o[1] = (l) =>
|
|
689
|
-
}, null, 46,
|
|
690
|
-
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", {
|
|
691
693
|
key: 2,
|
|
692
|
-
class:
|
|
694
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !V.value }),
|
|
693
695
|
d: J(e.source, e.target),
|
|
694
696
|
fill: `url(#pattern_${T.value}_${e.source.index})`,
|
|
695
697
|
stroke: a.value.style.chart.ribbons.stroke,
|
|
696
698
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
697
699
|
"stroke-linecap": "round",
|
|
698
700
|
"stroke-linejoin": "round",
|
|
699
|
-
style:
|
|
700
|
-
opacity:
|
|
701
|
+
style: E({
|
|
702
|
+
opacity: Xe(e),
|
|
701
703
|
pointerEvents: "none"
|
|
702
704
|
})
|
|
703
705
|
}, null, 14, ua)) : v("", !0)
|
|
704
706
|
], 64))), 128)),
|
|
705
|
-
|
|
707
|
+
m.value ? (r(), i("path", {
|
|
706
708
|
key: 0,
|
|
707
|
-
d:
|
|
708
|
-
fill:
|
|
709
|
+
d: m.value.path,
|
|
710
|
+
fill: m.value.color,
|
|
709
711
|
stroke: a.value.style.chart.ribbons.stroke,
|
|
710
712
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
711
713
|
"stroke-linecap": "round",
|
|
712
714
|
"stroke-linejoin": "round",
|
|
713
|
-
class:
|
|
715
|
+
class: z({ "vue-ui-chord-ribbon": !0 }),
|
|
714
716
|
style: {
|
|
715
717
|
pointerEvents: "none"
|
|
716
718
|
}
|
|
717
719
|
}, null, 8, ia)) : v("", !0),
|
|
718
|
-
|
|
720
|
+
m.value && t.$slots.pattern ? (r(), i("path", {
|
|
719
721
|
key: 1,
|
|
720
|
-
d:
|
|
721
|
-
fill: `url(#${
|
|
722
|
+
d: m.value.path,
|
|
723
|
+
fill: `url(#${m.value.source.pattern})`,
|
|
722
724
|
stroke: a.value.style.chart.ribbons.stroke,
|
|
723
725
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
724
726
|
"stroke-linecap": "round",
|
|
725
727
|
"stroke-linejoin": "round",
|
|
726
|
-
class:
|
|
728
|
+
class: z({ "vue-ui-chord-ribbon": !0 }),
|
|
727
729
|
style: {
|
|
728
730
|
pointerEvents: "none"
|
|
729
731
|
}
|
|
730
732
|
}, null, 8, ca)) : v("", !0)
|
|
731
733
|
]),
|
|
732
|
-
(w.value ||
|
|
733
|
-
(
|
|
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, {
|
|
734
736
|
key: e.id
|
|
735
737
|
}, [
|
|
736
738
|
B("line", {
|
|
737
739
|
x1: e.midBaseX,
|
|
738
740
|
y1: e.midBaseY,
|
|
739
|
-
x2: Math.cos(e.theta - Math.PI / 2) * (
|
|
740
|
-
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),
|
|
741
743
|
stroke: a.value.style.chart.backgroundColor,
|
|
742
744
|
"stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
|
|
743
745
|
"pointer-events": "none"
|
|
@@ -745,16 +747,16 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
745
747
|
B("line", {
|
|
746
748
|
x1: e.midBaseX,
|
|
747
749
|
y1: e.midBaseY,
|
|
748
|
-
x2: Math.cos(e.theta - Math.PI / 2) * (
|
|
749
|
-
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),
|
|
750
752
|
stroke: a.value.style.chart.ribbons.labels.connector.stroke,
|
|
751
753
|
"stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth,
|
|
752
754
|
"pointer-events": "none"
|
|
753
755
|
}, null, 8, ha),
|
|
754
|
-
a.value.style.chart.ribbons.labels.marker.show ? (
|
|
756
|
+
a.value.style.chart.ribbons.labels.marker.show ? (r(), i("circle", {
|
|
755
757
|
key: 0,
|
|
756
|
-
cx: Math.cos(e.theta - Math.PI / 2) * (
|
|
757
|
-
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),
|
|
758
760
|
r: a.value.style.chart.ribbons.labels.marker.radius,
|
|
759
761
|
stroke: a.value.style.chart.ribbons.labels.marker.stroke,
|
|
760
762
|
"stroke-width": a.value.style.chart.ribbons.labels.marker.strokeWidth,
|
|
@@ -764,51 +766,61 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
764
766
|
B("text", {
|
|
765
767
|
transform: `
|
|
766
768
|
translate(
|
|
767
|
-
${Math.cos(e.theta - Math.PI / 2) * (
|
|
768
|
-
${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)}
|
|
769
771
|
) rotate(${-I.value})
|
|
770
772
|
`,
|
|
771
773
|
fill: a.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : a.value.style.chart.ribbons.labels.color,
|
|
772
|
-
"text-anchor":
|
|
774
|
+
"text-anchor": ct(e.theta),
|
|
773
775
|
"font-size": a.value.style.chart.ribbons.labels.fontSize,
|
|
774
776
|
"font-weight": a.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
|
|
775
777
|
dy: ".35em",
|
|
776
778
|
"pointer-events": "none"
|
|
777
|
-
},
|
|
779
|
+
}, R(Fe(e.value)), 9, ga)
|
|
778
780
|
], 64))), 128))
|
|
779
781
|
])) : v("", !0),
|
|
780
|
-
a.value.style.chart.arcs.labels.show ? (
|
|
781
|
-
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", {
|
|
782
784
|
key: `curved-label-${l}`,
|
|
783
785
|
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
784
786
|
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
785
|
-
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
|
|
786
788
|
}, [
|
|
787
789
|
B("textPath", {
|
|
788
790
|
href: `#labelPath-${l}_${T.value}`,
|
|
789
791
|
startOffset: "50%",
|
|
790
792
|
"text-anchor": "middle"
|
|
791
|
-
},
|
|
792
|
-
|
|
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", {
|
|
793
800
|
key: `label-${l}`,
|
|
794
801
|
transform: `
|
|
795
|
-
${
|
|
802
|
+
${dt((e.startAngle + e.endAngle) / 2)}
|
|
796
803
|
rotate(${-I.value})
|
|
797
804
|
`,
|
|
798
805
|
dy: ".35em",
|
|
799
|
-
"text-anchor":
|
|
806
|
+
"text-anchor": it(e) > Math.PI ? "end" : "start",
|
|
800
807
|
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
801
808
|
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
802
809
|
fill: a.value.style.chart.arcs.labels.color
|
|
803
|
-
},
|
|
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)
|
|
804
816
|
])) : v("", !0)
|
|
805
817
|
], 8, oa),
|
|
806
818
|
$(t.$slots, "svg", { svg: { height: 600, width: 600 } }, void 0, !0)
|
|
807
|
-
],
|
|
808
|
-
t.$slots.watermark ? (
|
|
809
|
-
$(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)
|
|
810
822
|
])) : v("", !0),
|
|
811
|
-
L.value ? v("", !0) : (
|
|
823
|
+
L.value ? v("", !0) : (r(), U(Wt, {
|
|
812
824
|
key: 6,
|
|
813
825
|
config: {
|
|
814
826
|
type: "chord",
|
|
@@ -822,21 +834,21 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
822
834
|
}, null, 8, ["config"])),
|
|
823
835
|
B("div", {
|
|
824
836
|
ref_key: "chartLegend",
|
|
825
|
-
ref:
|
|
837
|
+
ref: pe
|
|
826
838
|
}, [
|
|
827
|
-
a.value.style.chart.legend.show ? (
|
|
828
|
-
key: `legend_${
|
|
829
|
-
legendSet:
|
|
839
|
+
a.value.style.chart.legend.show ? (r(), U(Ut, {
|
|
840
|
+
key: `legend_${$e.value}`,
|
|
841
|
+
legendSet: Ye.value,
|
|
830
842
|
config: bt.value,
|
|
831
|
-
onClickMarker: o[2] || (o[2] = ({ legend: e }) =>
|
|
832
|
-
},
|
|
833
|
-
item: P(({ legend: e
|
|
843
|
+
onClickMarker: o[2] || (o[2] = ({ legend: e }) => Ue(e.id))
|
|
844
|
+
}, qe({
|
|
845
|
+
item: P(({ legend: e }) => [
|
|
834
846
|
B("div", {
|
|
835
|
-
style:
|
|
847
|
+
style: E({
|
|
836
848
|
opacity: g.value ? g.value === e.id ? 1 : 0.3 : 1
|
|
837
849
|
}),
|
|
838
|
-
onClick: (
|
|
839
|
-
},
|
|
850
|
+
onClick: (l) => e.select()
|
|
851
|
+
}, R(e.name), 13, $a)
|
|
840
852
|
]),
|
|
841
853
|
_: 2
|
|
842
854
|
}, [
|
|
@@ -854,9 +866,9 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
854
866
|
key: "0"
|
|
855
867
|
} : void 0
|
|
856
868
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
857
|
-
$(t.$slots, "legend", { legend:
|
|
869
|
+
$(t.$slots, "legend", { legend: Ye.value }, void 0, !0)
|
|
858
870
|
], 512),
|
|
859
|
-
t.$slots.source ? (
|
|
871
|
+
t.$slots.source ? (r(), i("div", {
|
|
860
872
|
key: 7,
|
|
861
873
|
ref_key: "source",
|
|
862
874
|
ref: be,
|
|
@@ -864,17 +876,17 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
864
876
|
}, [
|
|
865
877
|
$(t.$slots, "source", {}, void 0, !0)
|
|
866
878
|
], 512)) : v("", !0),
|
|
867
|
-
I.value !== a.value.initialRotation ? (
|
|
868
|
-
$(t.$slots, "reset-action", { reset:
|
|
879
|
+
I.value !== a.value.initialRotation ? (r(), i("div", wa, [
|
|
880
|
+
$(t.$slots, "reset-action", { reset: De }, () => [
|
|
869
881
|
B("button", {
|
|
870
882
|
"data-cy-reset": "",
|
|
871
883
|
tabindex: "0",
|
|
872
884
|
role: "button",
|
|
873
885
|
class: "vue-data-ui-refresh-button",
|
|
874
|
-
style:
|
|
886
|
+
style: E({
|
|
875
887
|
background: a.value.style.chart.backgroundColor
|
|
876
888
|
}),
|
|
877
|
-
onClick:
|
|
889
|
+
onClick: De
|
|
878
890
|
}, [
|
|
879
891
|
de(Rt, {
|
|
880
892
|
name: "refresh",
|
|
@@ -883,7 +895,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
883
895
|
], 4)
|
|
884
896
|
], !0)
|
|
885
897
|
])) : v("", !0),
|
|
886
|
-
L.value ? (
|
|
898
|
+
L.value ? (r(), U(Vt, {
|
|
887
899
|
key: 9,
|
|
888
900
|
hideDetails: "",
|
|
889
901
|
config: {
|
|
@@ -900,20 +912,20 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
900
912
|
}
|
|
901
913
|
}, {
|
|
902
914
|
content: P(() => [
|
|
903
|
-
(
|
|
904
|
-
key: `table_${
|
|
905
|
-
colNames:
|
|
906
|
-
head:
|
|
907
|
-
body:
|
|
908
|
-
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,
|
|
909
921
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
910
922
|
onClose: o[3] || (o[3] = (e) => q.value.showTable = !1)
|
|
911
923
|
}, {
|
|
912
924
|
th: P(({ th: e }) => [
|
|
913
|
-
|
|
925
|
+
$t(R(e.name), 1)
|
|
914
926
|
]),
|
|
915
927
|
td: P(({ td: e }) => [
|
|
916
|
-
B("div", Ca,
|
|
928
|
+
B("div", Ca, R(e.name ? e.name : Fe(e)), 1)
|
|
917
929
|
]),
|
|
918
930
|
_: 1
|
|
919
931
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
@@ -922,7 +934,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
922
934
|
}, 8, ["config"])) : v("", !0)
|
|
923
935
|
], 46, Zt));
|
|
924
936
|
}
|
|
925
|
-
}, Da = /* @__PURE__ */ Qt(Ma, [["__scopeId", "data-v-
|
|
937
|
+
}, Da = /* @__PURE__ */ Qt(Ma, [["__scopeId", "data-v-a1a306ff"]]);
|
|
926
938
|
export {
|
|
927
939
|
Da as default
|
|
928
940
|
};
|