vue-data-ui 2.16.6 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1096 -160
- package/dist/types/vue-data-ui.d.ts +1096 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
- package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
- package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
- package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { t as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
12
|
-
|
|
1
|
+
import { useCssVars as _t, defineAsyncComponent as Y, ref as h, shallowRef as He, computed as C, watch as St, onMounted as Qe, onBeforeUnmount as Ze, createElementBlock as i, openBlock as n, unref as d, normalizeStyle as E, normalizeClass as F, createBlock as G, createCommentVNode as v, renderSlot as $, createElementVNode as B, createSlots as Je, withCtx as _, normalizeProps as re, guardReactiveProps as ue, withModifiers as Ke, createVNode as he, Fragment as z, renderList as W, mergeProps as Tt, toDisplayString as D, createTextVNode as Ot, nextTick as Bt } from "vue";
|
|
2
|
+
import { u as Lt, c as fe, t as Nt, p as ie, a as Et, o as Ft, e as et, g as zt, b as Rt, d as Xt, X as jt, F as Dt, f as ge, q as Ut, r as Vt, i as Yt } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
4
|
+
import { u as tt } from "./useNestedProp-DjACxgdZ.js";
|
|
5
|
+
import { u as Wt } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
|
+
import { u as qt } from "./usePrinter-DDHcrl0A.js";
|
|
7
|
+
import { t as Ht, u as Qt } from "./useResponsive-DfdjqQps.js";
|
|
8
|
+
import Zt from "./Legend-Bxlv67uY.js";
|
|
9
|
+
import Jt from "./Title-B-2bV0SW.js";
|
|
10
|
+
import { _ as Kt } from "./Shape-DtFT5EJa.js";
|
|
11
|
+
import ea from "./img-Y_hYz-ZC.js";
|
|
12
|
+
import { _ as ta } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const aa = ["id"], oa = ["xmlns", "viewBox"], la = ["width", "height"], sa = { key: 1 }, na = ["id", "d"], ra = { key: 2 }, ua = ["transform"], ia = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], ca = ["d", "fill", "stroke", "stroke-width"], da = ["d", "fill"], va = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], ha = ["d", "fill", "stroke", "stroke-width"], fa = ["d", "fill", "stroke", "stroke-width"], ga = ["d", "fill", "stroke", "stroke-width"], pa = { key: 0 }, ba = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ma = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ya = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ka = ["transform", "fill", "text-anchor", "font-size", "font-weight"], $a = { key: 1 }, wa = ["font-size", "font-weight", "fill"], Ca = ["href"], Ma = ["transform", "text-anchor", "font-size", "font-weight", "fill"], xa = {
|
|
13
14
|
key: 5,
|
|
14
15
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
16
|
+
}, Ia = ["onClick"], Aa = {
|
|
16
17
|
key: 8,
|
|
17
18
|
"data-dom-to-png-ignore": "",
|
|
18
19
|
class: "reset-wrapper"
|
|
19
|
-
},
|
|
20
|
+
}, Pa = { style: { "text-align": "right", width: "100%" } }, _a = {
|
|
20
21
|
__name: "vue-ui-chord",
|
|
21
22
|
props: {
|
|
22
23
|
dataset: {
|
|
@@ -33,14 +34,14 @@ const ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "height"], oa = { k
|
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
emits: ["selectLegend", "selectGroup", "selectRibbon"],
|
|
36
|
-
setup(
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
setup(at, { expose: ot, emit: lt }) {
|
|
38
|
+
_t((t) => ({
|
|
39
|
+
76214312: t.slicerColor
|
|
39
40
|
}));
|
|
40
|
-
const
|
|
41
|
+
const st = Y(() => import("./vue-ui-accordion-CVnA550V.js")), nt = Y(() => import("./BaseIcon-naqtCxVi.js")), rt = Y(() => import("./DataTable-D0VYDhfx.js")), ut = Y(() => import("./PackageVersion-5TR4ocqp.js")), it = Y(() => import("./PenAndPaper-D6AqipIO.js")), ct = Y(() => import("./vue-ui-skeleton-DJPjyNYn.js")), dt = Y(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_chord: vt } = Lt(), g = at, te = lt, L = h(!!g.dataset && Object.hasOwn(g.dataset, "matrix")), S = h(fe()), w = h(null), m = h(null), p = h(null), pe = h(0), R = h(null), be = h(null), me = h(null), ye = h(null), ke = h(null), $e = h(0), we = h(0), Ce = h(0), q = h(!1), X = He(null), H = He(null), a = C({
|
|
41
42
|
get: () => Se(),
|
|
42
43
|
set: (t) => t
|
|
43
|
-
}), { userOptionsVisible: ce, setUserOptionsVisibility: Me, keepUserOptionState: xe } =
|
|
44
|
+
}), { userOptionsVisible: ce, setUserOptionsVisibility: Me, keepUserOptionState: xe } = Gt({ config: a.value }), { svgRef: Q } = Wt({ config: a.value.style.chart.title }), { isPrinting: Ie, isImaging: Ae, generatePdf: Pe, generateImage: _e } = qt({
|
|
44
45
|
elementId: `chord_${S.value}`,
|
|
45
46
|
fileName: a.value.style.chart.title.text || "vue-ui-chord",
|
|
46
47
|
options: a.value.userOptions.print
|
|
@@ -48,46 +49,46 @@ const ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "height"], oa = { k
|
|
|
48
49
|
showTable: a.value.table.show
|
|
49
50
|
});
|
|
50
51
|
function Se() {
|
|
51
|
-
const t =
|
|
52
|
+
const t = tt({
|
|
52
53
|
userConfig: g.config,
|
|
53
|
-
defaultConfig:
|
|
54
|
+
defaultConfig: vt
|
|
54
55
|
});
|
|
55
56
|
return t.theme ? {
|
|
56
|
-
...
|
|
57
|
-
userConfig:
|
|
57
|
+
...tt({
|
|
58
|
+
userConfig: Et.vue_ui_chord[t.theme] || g.config,
|
|
58
59
|
defaultConfig: t
|
|
59
60
|
}),
|
|
60
|
-
customPalette:
|
|
61
|
+
customPalette: Nt[t.theme] || ie
|
|
61
62
|
} : t;
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
+
St(() => g.config, (t) => {
|
|
64
65
|
a.value = Se(), ce.value = !a.value.userOptions.showOnChartHover, Te(), $e.value += 1, we.value += 1, Ce.value += 1, x.value = a.value.initialRotation, Z.value.showTable = a.value.table.show;
|
|
65
66
|
}, { deep: !0 });
|
|
66
67
|
function Te() {
|
|
67
|
-
if (
|
|
68
|
+
if (Ft(g.dataset) ? et({
|
|
68
69
|
componentName: "VueUiChord",
|
|
69
70
|
type: "dataset"
|
|
70
|
-
}) :
|
|
71
|
+
}) : zt({
|
|
71
72
|
datasetObject: g.dataset,
|
|
72
73
|
requiredAttributes: ["matrix"]
|
|
73
74
|
}).forEach((t) => {
|
|
74
|
-
L.value = !1,
|
|
75
|
+
L.value = !1, et({
|
|
75
76
|
componentName: "VueUiChord",
|
|
76
77
|
type: "datasetAttribute",
|
|
77
78
|
property: t
|
|
78
79
|
});
|
|
79
80
|
}), L.value && Oe(), a.value.responsive) {
|
|
80
|
-
const t =
|
|
81
|
-
const { width: o, height: e, heightNoTitle: l, heightSource: u, heightTitle: s, heightLegend: r } =
|
|
82
|
-
chart:
|
|
81
|
+
const t = Ht(() => {
|
|
82
|
+
const { width: o, height: e, heightNoTitle: l, heightSource: u, heightTitle: s, heightLegend: r } = Qt({
|
|
83
|
+
chart: R.value,
|
|
83
84
|
title: a.value.style.chart.title.text ? be.value : null,
|
|
84
85
|
legend: a.value.style.chart.legend.show ? me.value : null,
|
|
85
86
|
source: ye.value,
|
|
86
87
|
noTitle: ke.value
|
|
87
88
|
}), f = s + r + u + l;
|
|
88
|
-
o < e ?
|
|
89
|
+
o < e ? R.value.style.width = "100%" : (R.value.style.height = "100%", Q.value.style.height = `calc(100% - ${f}px)`);
|
|
89
90
|
}, 100);
|
|
90
|
-
|
|
91
|
+
X.value && (H.value && X.value.unobserve(H.value), X.value.disconnect()), X.value = new ResizeObserver(t), H.value = R.value.parentNode, X.value.observe(H.value), t();
|
|
91
92
|
}
|
|
92
93
|
Be.value = setTimeout(() => {
|
|
93
94
|
q.value = !0;
|
|
@@ -110,34 +111,34 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
110
111
|
});
|
|
111
112
|
}
|
|
112
113
|
const Be = h(null);
|
|
113
|
-
|
|
114
|
+
Qe(() => {
|
|
114
115
|
Te();
|
|
115
116
|
});
|
|
116
117
|
const T = h({
|
|
117
118
|
height: 600,
|
|
118
119
|
width: 600
|
|
119
|
-
}),
|
|
120
|
+
}), ht = C(() => a.value.userOptions.show && !a.value.style.chart.title.text), ft = C(() => Rt(a.value.customPalette)), b = C(() => ({
|
|
120
121
|
inner: T.value.width * 0.3 * a.value.style.chart.arcs.innerRadiusRatio,
|
|
121
122
|
outer: T.value.width * 0.34 * a.value.style.chart.arcs.outerRadiusRatio
|
|
122
|
-
})),
|
|
123
|
+
})), gt = C(() => a.value.style.chart.arcs.padAngle / 100), y = C(() => L.value ? {
|
|
123
124
|
matrix: g.dataset.matrix ?? [[0]],
|
|
124
125
|
labels: g.dataset.labels ?? [""],
|
|
125
|
-
colors: g.dataset.colors && Array.isArray(g.dataset.colors) && g.dataset.colors.length ? g.dataset.colors.map((t) =>
|
|
126
|
+
colors: g.dataset.colors && Array.isArray(g.dataset.colors) && g.dataset.colors.length ? g.dataset.colors.map((t) => Xt(t)) : g.dataset.matrix.map((t, o) => ft.value[o] || ie[o] || ie[o % ie.length])
|
|
126
127
|
} : {
|
|
127
128
|
matrix: [],
|
|
128
129
|
labels: [],
|
|
129
130
|
colors: []
|
|
130
131
|
});
|
|
131
|
-
function
|
|
132
|
+
function pt(t, o) {
|
|
132
133
|
const e = t.length, l = b.value.inner, u = new Array(e).fill(0);
|
|
133
134
|
let s = 0;
|
|
134
135
|
for (let c = 0; c < e; c += 1)
|
|
135
136
|
for (let k = 0; k < e; k += 1)
|
|
136
137
|
u[c] += t[c][k], s += t[c][k];
|
|
137
138
|
const r = (2 * Math.PI - o * e) / s, f = [];
|
|
138
|
-
let
|
|
139
|
+
let I = 0;
|
|
139
140
|
for (let c = 0; c < e; c += 1) {
|
|
140
|
-
const k =
|
|
141
|
+
const k = I, P = k + u[c] * r;
|
|
141
142
|
f.push({
|
|
142
143
|
index: c,
|
|
143
144
|
pattern: `pattern_${S.value}_${c}`,
|
|
@@ -147,22 +148,22 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
147
148
|
id: fe(),
|
|
148
149
|
color: y.value.colors[c],
|
|
149
150
|
proportion: u[c] / s
|
|
150
|
-
}),
|
|
151
|
+
}), I = P + o;
|
|
151
152
|
}
|
|
152
|
-
const
|
|
153
|
+
const A = [];
|
|
153
154
|
for (let c = 0; c < e; c += 1) {
|
|
154
|
-
const k = t[c].map((O,
|
|
155
|
-
k.sort((O,
|
|
155
|
+
const k = t[c].map((O, j) => ({ j, v: O }));
|
|
156
|
+
k.sort((O, j) => j.v - O.v);
|
|
156
157
|
let P = f[c].startAngle;
|
|
157
|
-
for (const { j: O, v:
|
|
158
|
-
const V = P, ee = V +
|
|
159
|
-
|
|
158
|
+
for (const { j: O, v: j } of k) {
|
|
159
|
+
const V = P, ee = V + j * r;
|
|
160
|
+
A.push({
|
|
160
161
|
index: c,
|
|
161
162
|
subIndex: O,
|
|
162
163
|
pattern: `pattern_${S.value}_${c}`,
|
|
163
164
|
startAngle: V,
|
|
164
165
|
endAngle: ee,
|
|
165
|
-
value:
|
|
166
|
+
value: j,
|
|
166
167
|
groupName: y.value.labels[c],
|
|
167
168
|
groupId: f[c].id,
|
|
168
169
|
groupColor: y.value.colors[c],
|
|
@@ -173,8 +174,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
173
174
|
}
|
|
174
175
|
}
|
|
175
176
|
const N = [];
|
|
176
|
-
for (const c of
|
|
177
|
-
const k =
|
|
177
|
+
for (const c of A) {
|
|
178
|
+
const k = A.find(
|
|
178
179
|
(P) => P.index === c.subIndex && P.subIndex === c.index
|
|
179
180
|
);
|
|
180
181
|
N.push({ source: c, target: k, id: fe() });
|
|
@@ -182,11 +183,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
182
183
|
return { groups: f, chords: N };
|
|
183
184
|
}
|
|
184
185
|
const M = C(() => {
|
|
185
|
-
const t =
|
|
186
|
+
const t = pt(y.value.matrix, gt.value);
|
|
186
187
|
return Oe(), t.chords.sort(
|
|
187
188
|
(o, e) => Math.max(e.source.value, e.target.value) - Math.max(o.source.value, o.target.value)
|
|
188
189
|
), t;
|
|
189
|
-
}),
|
|
190
|
+
}), bt = C(() => {
|
|
190
191
|
const t = b.value.outer + a.value.style.chart.ribbons.labels.offset + 12, e = a.value.style.chart.ribbons.labels.fontSize * 0.6, l = [];
|
|
191
192
|
if (m.value) {
|
|
192
193
|
const s = m.value;
|
|
@@ -245,14 +246,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
245
246
|
});
|
|
246
247
|
}
|
|
247
248
|
return p.value && u(p.value), w.value && u(w.value.id), l;
|
|
248
|
-
}),
|
|
249
|
-
const t =
|
|
249
|
+
}), mt = C(() => {
|
|
250
|
+
const t = bt.value.map((u) => ({ ...u })).sort((u, s) => u.theta - s.theta), o = a.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
|
|
250
251
|
let e = !0, l = 0;
|
|
251
252
|
for (; e && l++ < 10; ) {
|
|
252
253
|
e = !1;
|
|
253
254
|
for (let f = 1; f < t.length; f += 1) {
|
|
254
|
-
const
|
|
255
|
-
|
|
255
|
+
const I = t[f - 1], A = t[f], N = I.theta + I.w + o;
|
|
256
|
+
A.theta < N && (A.theta = N, e = !0);
|
|
256
257
|
}
|
|
257
258
|
const u = t[0], s = t[t.length - 1], r = s.theta + s.w + o - 2 * Math.PI;
|
|
258
259
|
u.theta < r && (u.theta = r, e = !0);
|
|
@@ -260,31 +261,31 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
260
261
|
return t;
|
|
261
262
|
});
|
|
262
263
|
function Le(t, o, e, l) {
|
|
263
|
-
const u = t - Math.PI / 2, s = o - Math.PI / 2, r = Math.cos(u) * e, f = Math.sin(u) * e,
|
|
264
|
-
return `M${r},${f} A${e},${e} 0 ${O} 1 ${
|
|
264
|
+
const u = t - Math.PI / 2, s = o - Math.PI / 2, r = Math.cos(u) * e, f = Math.sin(u) * e, I = Math.cos(s) * e, A = Math.sin(s) * e, N = Math.cos(s) * l, c = Math.sin(s) * l, k = Math.cos(u) * l, P = Math.sin(u) * l, O = o - t > Math.PI ? 1 : 0;
|
|
265
|
+
return `M${r},${f} A${e},${e} 0 ${O} 1 ${I},${A} L${N},${c} A${l},${l} 0 ${O} 0 ${k},${P} Z`;
|
|
265
266
|
}
|
|
266
267
|
function ae(t, o) {
|
|
267
|
-
const e = b.value.inner, l = t.startAngle - Math.PI / 2, u = t.endAngle - Math.PI / 2, s = o.startAngle - Math.PI / 2, r = o.endAngle - Math.PI / 2, f = Math.cos(l) * e,
|
|
268
|
-
return `M${f},${
|
|
268
|
+
const e = b.value.inner, l = t.startAngle - Math.PI / 2, u = t.endAngle - Math.PI / 2, s = o.startAngle - Math.PI / 2, r = o.endAngle - Math.PI / 2, f = Math.cos(l) * e, I = Math.sin(l) * e, A = Math.cos(u) * e, N = Math.sin(u) * e, c = Math.cos(s) * e, k = Math.sin(s) * e, P = Math.cos(r) * e, O = Math.sin(r) * e, j = t.endAngle - t.startAngle > Math.PI ? 1 : 0, V = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
|
|
269
|
+
return `M${f},${I}A${e},${e} 0 ${j} 1 ${A},${N}Q0,0 ${c},${k}A${e},${e} 0 ${V} 1 ${P},${O}Q0,0 ${f},${I}Z`;
|
|
269
270
|
}
|
|
270
271
|
const Ne = C(() => x.value * Math.PI / 180);
|
|
271
|
-
function mt(t) {
|
|
272
|
-
return (t.startAngle + t.endAngle) / 2;
|
|
273
|
-
}
|
|
274
272
|
function yt(t) {
|
|
275
|
-
return (
|
|
273
|
+
return (t.startAngle + t.endAngle) / 2;
|
|
276
274
|
}
|
|
277
275
|
function kt(t) {
|
|
276
|
+
return ((yt(t) + Ne.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
|
|
277
|
+
}
|
|
278
|
+
function $t(t) {
|
|
278
279
|
let o = t + Ne.value;
|
|
279
280
|
return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
|
|
280
281
|
}
|
|
281
|
-
function
|
|
282
|
+
function wt(t) {
|
|
282
283
|
const o = t - Math.PI / 2, e = Math.cos(o) * (b.value.outer + a.value.style.chart.arcs.labels.offset + 24), l = Math.sin(o) * (b.value.outer + a.value.style.chart.arcs.labels.offset + 24);
|
|
283
284
|
return `translate(${e},${l})`;
|
|
284
285
|
}
|
|
285
|
-
function
|
|
286
|
-
const l = t - Math.PI / 2, u = o - Math.PI / 2, s = Math.cos(l) * e, r = Math.sin(l) * e, f = Math.cos(u) * e,
|
|
287
|
-
return `M${s},${r} A${e},${e} 0 ${
|
|
286
|
+
function Ct(t, o, e) {
|
|
287
|
+
const l = t - Math.PI / 2, u = o - Math.PI / 2, s = Math.cos(l) * e, r = Math.sin(l) * e, f = Math.cos(u) * e, I = Math.sin(u) * e, A = o - t > Math.PI ? 1 : 0;
|
|
288
|
+
return `M${s},${r} A${e},${e} 0 ${A} 1 ${f},${I}`;
|
|
288
289
|
}
|
|
289
290
|
const x = h(a.value.initialRotation), J = h(!1);
|
|
290
291
|
let Ee = 0, Fe = 0;
|
|
@@ -315,13 +316,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
315
316
|
})
|
|
316
317
|
);
|
|
317
318
|
}
|
|
318
|
-
|
|
319
|
+
Qe(() => {
|
|
319
320
|
window.addEventListener("mousemove", oe), window.addEventListener("mouseup", le), window.addEventListener("touchmove", oe, { passive: !1 }), window.addEventListener("touchend", le);
|
|
320
|
-
}),
|
|
321
|
-
window.removeEventListener("mousemove", oe), window.removeEventListener("mouseup", le), window.removeEventListener("touchmove", oe), window.removeEventListener("touchend", le), clearTimeout(Be.value),
|
|
321
|
+
}), Ze(() => {
|
|
322
|
+
window.removeEventListener("mousemove", oe), window.removeEventListener("mouseup", le), window.removeEventListener("touchmove", oe), window.removeEventListener("touchend", le), clearTimeout(Be.value), X.value && (H.value && X.value.unobserve(H.value), X.value.disconnect());
|
|
322
323
|
});
|
|
323
324
|
const de = h(!1);
|
|
324
|
-
function
|
|
325
|
+
function je(t) {
|
|
325
326
|
de.value = t, pe.value += 1;
|
|
326
327
|
}
|
|
327
328
|
function Mt(t) {
|
|
@@ -330,10 +331,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
330
331
|
function xt(t) {
|
|
331
332
|
p.value || (m.value = t);
|
|
332
333
|
}
|
|
333
|
-
function
|
|
334
|
+
function De(t) {
|
|
334
335
|
return !p.value && !w.value && !m.value ? 0.8 : (p.value ? p.value === t.source.groupId : w.value ? w.value.id === t.source.groupId : m.value?.id === t.id) ? 1 : 0.1;
|
|
335
336
|
}
|
|
336
|
-
function
|
|
337
|
+
function Ue(t) {
|
|
337
338
|
return !p.value && !w.value && !m.value || (p.value ? p.value === t.id : w.value ? w.value.id === t.id : [m.value?.source.groupId, m.value?.target.groupId].includes(t.id)) ? 1 : 0.3;
|
|
338
339
|
}
|
|
339
340
|
const K = h(!1);
|
|
@@ -343,34 +344,34 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
343
344
|
function Ve() {
|
|
344
345
|
Z.value.showTable = !Z.value.showTable;
|
|
345
346
|
}
|
|
346
|
-
function
|
|
347
|
+
function It() {
|
|
347
348
|
return M.value;
|
|
348
349
|
}
|
|
349
|
-
const
|
|
350
|
+
const U = h(null);
|
|
350
351
|
function Ye() {
|
|
351
352
|
const t = a.value.initialRotation;
|
|
352
|
-
|
|
353
|
+
U.value !== null && cancelAnimationFrame(U.value);
|
|
353
354
|
const o = () => {
|
|
354
|
-
x.value += (t - x.value) * 0.05, Math.abs(x.value - t) < 0.1 ? (x.value = t,
|
|
355
|
+
x.value += (t - x.value) * 0.05, Math.abs(x.value - t) < 0.1 ? (x.value = t, U.value = null) : U.value = requestAnimationFrame(o);
|
|
355
356
|
};
|
|
356
|
-
|
|
357
|
+
U.value = requestAnimationFrame(o);
|
|
357
358
|
}
|
|
358
|
-
|
|
359
|
-
|
|
359
|
+
Ze(() => {
|
|
360
|
+
U.value !== null && cancelAnimationFrame(U.value);
|
|
360
361
|
});
|
|
361
|
-
function
|
|
362
|
+
function Ge(t) {
|
|
362
363
|
t === p.value ? (p.value = null, te("selectLegend", null)) : (p.value = t, te("selectLegend", M.value.groups.find((o) => o.id === t)));
|
|
363
364
|
}
|
|
364
|
-
const
|
|
365
|
+
const We = C(() => M.value.groups.map((t, o) => ({
|
|
365
366
|
name: t.name,
|
|
366
367
|
color: t.color,
|
|
367
368
|
shape: "circle",
|
|
368
369
|
patternIndex: o,
|
|
369
370
|
pattern: `pattern_${S.value}_${o}`,
|
|
370
371
|
id: t.id,
|
|
371
|
-
select: () =>
|
|
372
|
+
select: () => Ge(t.id),
|
|
372
373
|
opacity: p.value ? p.value === t.id ? 1 : 0.3 : 1
|
|
373
|
-
}))),
|
|
374
|
+
}))), At = C(() => ({
|
|
374
375
|
cy: "chord-div-legend",
|
|
375
376
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
376
377
|
color: a.value.style.chart.legend.color,
|
|
@@ -407,8 +408,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
407
408
|
config: e
|
|
408
409
|
};
|
|
409
410
|
});
|
|
410
|
-
function
|
|
411
|
-
|
|
411
|
+
function qe(t = null) {
|
|
412
|
+
Bt(() => {
|
|
412
413
|
const o = y.value.matrix.map((u, s) => [
|
|
413
414
|
[y.value.labels[s] || s],
|
|
414
415
|
u
|
|
@@ -419,20 +420,27 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
419
420
|
[""],
|
|
420
421
|
...y.value.labels.map((u, s) => [u || s])
|
|
421
422
|
]
|
|
422
|
-
].concat(o), l =
|
|
423
|
+
].concat(o), l = Ut(e);
|
|
423
424
|
t ? t(l) : Vt({ csvContent: l, title: a.value.style.chart.title.text || "vue-ui-chord" });
|
|
424
425
|
});
|
|
425
426
|
}
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
427
|
+
async function Pt({ scale: t = 2 } = {}) {
|
|
428
|
+
if (!R.value) return;
|
|
429
|
+
const { imageUri: o, base64: e } = await ea({ domElement: R.value, base64: !0, img: !0, scale: t });
|
|
430
|
+
return { imageUri: o, base64: e };
|
|
431
|
+
}
|
|
432
|
+
return ot({
|
|
433
|
+
getData: It,
|
|
434
|
+
getImage: Pt,
|
|
435
|
+
generateCsv: qe,
|
|
429
436
|
generateImage: _e,
|
|
430
437
|
generatePdf: Pe,
|
|
431
438
|
toggleAnnotator: ve,
|
|
432
|
-
toggleTable: Ve
|
|
439
|
+
toggleTable: Ve,
|
|
440
|
+
toggleFullscreen: je
|
|
433
441
|
}), (t, o) => (n(), i("div", {
|
|
434
442
|
ref_key: "chordChart",
|
|
435
|
-
ref:
|
|
443
|
+
ref: R,
|
|
436
444
|
class: F({
|
|
437
445
|
"vue-ui-chord": !0,
|
|
438
446
|
"vue-data-ui-wrapper-fullscreen": de.value,
|
|
@@ -443,7 +451,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
443
451
|
onMouseenter: o[4] || (o[4] = () => d(Me)(!0)),
|
|
444
452
|
onMouseleave: o[5] || (o[5] = () => d(Me)(!1))
|
|
445
453
|
}, [
|
|
446
|
-
a.value.userOptions.buttons.annotator && d(Q) ? (n(),
|
|
454
|
+
a.value.userOptions.buttons.annotator && d(Q) ? (n(), G(d(it), {
|
|
447
455
|
key: 0,
|
|
448
456
|
color: a.value.style.chart.color,
|
|
449
457
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -452,7 +460,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
452
460
|
onClose: ve
|
|
453
461
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
454
462
|
$(t.$slots, "userConfig", {}, void 0, !0),
|
|
455
|
-
|
|
463
|
+
ht.value ? (n(), i("div", {
|
|
456
464
|
key: 1,
|
|
457
465
|
ref_key: "noTitle",
|
|
458
466
|
ref: ke,
|
|
@@ -465,7 +473,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
465
473
|
ref: be,
|
|
466
474
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
467
475
|
}, [
|
|
468
|
-
(n(),
|
|
476
|
+
(n(), G(Jt, {
|
|
469
477
|
key: `title_${$e.value}`,
|
|
470
478
|
config: {
|
|
471
479
|
title: {
|
|
@@ -479,13 +487,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
479
487
|
}
|
|
480
488
|
}, null, 8, ["config"]))
|
|
481
489
|
], 512)) : v("", !0),
|
|
482
|
-
a.value.userOptions.show && L.value && (d(xe) || d(ce)) ? (n(),
|
|
490
|
+
a.value.userOptions.show && L.value && (d(xe) || d(ce)) ? (n(), G(d(dt), {
|
|
483
491
|
ref: "details",
|
|
484
492
|
key: `user_option_${pe.value}`,
|
|
485
493
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
486
494
|
color: a.value.style.chart.color,
|
|
487
|
-
isPrinting: d(
|
|
488
|
-
isImaging: d(
|
|
495
|
+
isPrinting: d(Ie),
|
|
496
|
+
isImaging: d(Ae),
|
|
489
497
|
uid: S.value,
|
|
490
498
|
hasTooltip: !1,
|
|
491
499
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
@@ -495,23 +503,23 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
495
503
|
hasLabel: !1,
|
|
496
504
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
497
505
|
isFullscreen: de.value,
|
|
498
|
-
chartElement:
|
|
506
|
+
chartElement: R.value,
|
|
499
507
|
position: a.value.userOptions.position,
|
|
500
508
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
501
509
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
502
510
|
isAnnotation: K.value,
|
|
503
511
|
callbacks: a.value.userOptions.callbacks,
|
|
504
512
|
printScale: a.value.userOptions.print.scale,
|
|
505
|
-
onToggleFullscreen:
|
|
513
|
+
onToggleFullscreen: je,
|
|
506
514
|
onGeneratePdf: d(Pe),
|
|
507
|
-
onGenerateCsv:
|
|
515
|
+
onGenerateCsv: qe,
|
|
508
516
|
onGenerateImage: d(_e),
|
|
509
517
|
onToggleTable: Ve,
|
|
510
518
|
onToggleAnnotator: ve,
|
|
511
519
|
style: E({
|
|
512
520
|
visibility: d(xe) ? d(ce) ? "visible" : "hidden" : "visible"
|
|
513
521
|
})
|
|
514
|
-
},
|
|
522
|
+
}, Je({ _: 2 }, [
|
|
515
523
|
t.$slots.menuIcon ? {
|
|
516
524
|
name: "menuIcon",
|
|
517
525
|
fn: _(({ isOpen: e, color: l }) => [
|
|
@@ -564,7 +572,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
564
572
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
565
573
|
L.value ? (n(), i("svg", {
|
|
566
574
|
key: 4,
|
|
567
|
-
xmlns: d(
|
|
575
|
+
xmlns: d(jt),
|
|
568
576
|
ref_key: "svgRef",
|
|
569
577
|
ref: Q,
|
|
570
578
|
viewBox: `0 0 ${T.value.width} ${T.value.height}`,
|
|
@@ -573,10 +581,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
573
581
|
overflow: "visible"
|
|
574
582
|
},
|
|
575
583
|
class: F({ "vue-ui-chord-rotating": J.value, "vue-ui-chord-idle": !J.value }),
|
|
576
|
-
onMousedown:
|
|
577
|
-
onTouchstart:
|
|
584
|
+
onMousedown: Ke(Re, ["prevent"]),
|
|
585
|
+
onTouchstart: Ke(Re, ["prevent"])
|
|
578
586
|
}, [
|
|
579
|
-
he(d(
|
|
587
|
+
he(d(ut)),
|
|
580
588
|
t.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
581
589
|
key: 0,
|
|
582
590
|
x: 0,
|
|
@@ -588,28 +596,28 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
588
596
|
}
|
|
589
597
|
}, [
|
|
590
598
|
$(t.$slots, "chart-background", {}, void 0, !0)
|
|
591
|
-
], 8,
|
|
592
|
-
a.value.style.chart.arcs.labels.curved ? (n(), i("defs",
|
|
593
|
-
(n(!0), i(z, null,
|
|
599
|
+
], 8, la)) : v("", !0),
|
|
600
|
+
a.value.style.chart.arcs.labels.curved ? (n(), i("defs", sa, [
|
|
601
|
+
(n(!0), i(z, null, W(M.value.groups, (e, l) => (n(), i("path", {
|
|
594
602
|
key: `labelPath-${l}`,
|
|
595
603
|
id: `labelPath-${l}_${S.value}`,
|
|
596
|
-
d:
|
|
604
|
+
d: Ct(
|
|
597
605
|
e.startAngle,
|
|
598
606
|
e.endAngle,
|
|
599
607
|
(b.value.inner + b.value.outer) / 2 + a.value.style.chart.arcs.labels.offset
|
|
600
608
|
),
|
|
601
609
|
fill: "none"
|
|
602
|
-
}, null, 8,
|
|
610
|
+
}, null, 8, na))), 128))
|
|
603
611
|
])) : v("", !0),
|
|
604
|
-
t.$slots.pattern ? (n(), i("g",
|
|
605
|
-
(n(!0), i(z, null,
|
|
606
|
-
$(t.$slots, "pattern",
|
|
612
|
+
t.$slots.pattern ? (n(), i("g", ra, [
|
|
613
|
+
(n(!0), i(z, null, W(M.value.groups, (e, l) => (n(), i("defs", null, [
|
|
614
|
+
$(t.$slots, "pattern", Tt({ ref_for: !0 }, { seriesIndex: e.index, patternId: `pattern_${S.value}_${l}` }), void 0, !0)
|
|
607
615
|
]))), 256))
|
|
608
616
|
])) : v("", !0),
|
|
609
617
|
B("g", {
|
|
610
618
|
transform: `translate(${T.value.width / 2}, ${T.value.height / 2}) rotate(${x.value})`
|
|
611
619
|
}, [
|
|
612
|
-
(n(!0), i(z, null,
|
|
620
|
+
(n(!0), i(z, null, W(M.value.groups, (e, l) => (n(), i("g", null, [
|
|
613
621
|
(n(), i("path", {
|
|
614
622
|
class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
|
|
615
623
|
key: `arc-${l}`,
|
|
@@ -625,12 +633,12 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
625
633
|
"stroke-linecap": "round",
|
|
626
634
|
"stroke-linejoin": "round",
|
|
627
635
|
style: E({
|
|
628
|
-
opacity:
|
|
636
|
+
opacity: Ue(e)
|
|
629
637
|
}),
|
|
630
638
|
onMouseenter: () => Mt(e),
|
|
631
639
|
onMouseleave: o[0] || (o[0] = (u) => w.value = null),
|
|
632
640
|
onClick: (u) => te("selectGroup", e)
|
|
633
|
-
}, null, 46,
|
|
641
|
+
}, null, 46, ia)),
|
|
634
642
|
t.$slots.pattern ? (n(), i("path", {
|
|
635
643
|
class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
|
|
636
644
|
key: `arc-${l}`,
|
|
@@ -646,13 +654,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
646
654
|
"stroke-linecap": "round",
|
|
647
655
|
"stroke-linejoin": "round",
|
|
648
656
|
style: E({
|
|
649
|
-
opacity:
|
|
657
|
+
opacity: Ue(e),
|
|
650
658
|
pointerEvents: "none"
|
|
651
659
|
})
|
|
652
|
-
}, null, 14,
|
|
660
|
+
}, null, 14, ca)) : v("", !0)
|
|
653
661
|
]))), 256)),
|
|
654
662
|
B("g", null, [
|
|
655
|
-
(n(!0), i(z, null,
|
|
663
|
+
(n(!0), i(z, null, W(w.value ? M.value.chords.filter((e) => e.source.groupId === w.value.id) : p.value ? M.value.chords.filter((e) => e.source.groupId === p.value) : M.value.chords, (e) => (n(), i(z, {
|
|
656
664
|
key: `ribbon-${e.id}`
|
|
657
665
|
}, [
|
|
658
666
|
e.source.value ? (n(), i("path", {
|
|
@@ -661,7 +669,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
661
669
|
d: ae(e.source, e.target),
|
|
662
670
|
fill: a.value.style.chart.backgroundColor,
|
|
663
671
|
style: E({ opacity: a.value.style.chart.ribbons.underlayerOpacity })
|
|
664
|
-
}, null, 14,
|
|
672
|
+
}, null, 14, da)) : v("", !0),
|
|
665
673
|
e.source.value ? (n(), i("path", {
|
|
666
674
|
key: 1,
|
|
667
675
|
class: F({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
|
|
@@ -671,7 +679,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
671
679
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
672
680
|
"stroke-linecap": "round",
|
|
673
681
|
"stroke-linejoin": "round",
|
|
674
|
-
style: E({ opacity:
|
|
682
|
+
style: E({ opacity: De(e) }),
|
|
675
683
|
onMouseenter: () => xt({
|
|
676
684
|
...e,
|
|
677
685
|
path: ae(e.source, e.target),
|
|
@@ -682,7 +690,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
682
690
|
color: y.value.colors[e.source.index]
|
|
683
691
|
}),
|
|
684
692
|
onMouseleave: o[1] || (o[1] = (l) => m.value = null)
|
|
685
|
-
}, null, 46,
|
|
693
|
+
}, null, 46, va)) : v("", !0),
|
|
686
694
|
e.source.value && t.$slots.pattern ? (n(), i("path", {
|
|
687
695
|
key: 2,
|
|
688
696
|
class: F({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
|
|
@@ -693,10 +701,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
693
701
|
"stroke-linecap": "round",
|
|
694
702
|
"stroke-linejoin": "round",
|
|
695
703
|
style: E({
|
|
696
|
-
opacity:
|
|
704
|
+
opacity: De(e),
|
|
697
705
|
pointerEvents: "none"
|
|
698
706
|
})
|
|
699
|
-
}, null, 14,
|
|
707
|
+
}, null, 14, ha)) : v("", !0)
|
|
700
708
|
], 64))), 128)),
|
|
701
709
|
m.value ? (n(), i("path", {
|
|
702
710
|
key: 0,
|
|
@@ -710,7 +718,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
710
718
|
style: {
|
|
711
719
|
pointerEvents: "none"
|
|
712
720
|
}
|
|
713
|
-
}, null, 8,
|
|
721
|
+
}, null, 8, fa)) : v("", !0),
|
|
714
722
|
m.value && t.$slots.pattern ? (n(), i("path", {
|
|
715
723
|
key: 1,
|
|
716
724
|
d: m.value.path,
|
|
@@ -723,10 +731,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
723
731
|
style: {
|
|
724
732
|
pointerEvents: "none"
|
|
725
733
|
}
|
|
726
|
-
}, null, 8,
|
|
734
|
+
}, null, 8, ga)) : v("", !0)
|
|
727
735
|
]),
|
|
728
|
-
(w.value || m.value || p.value) && a.value.style.chart.ribbons.labels.show ? (n(), i("g",
|
|
729
|
-
(n(!0), i(z, null,
|
|
736
|
+
(w.value || m.value || p.value) && a.value.style.chart.ribbons.labels.show ? (n(), i("g", pa, [
|
|
737
|
+
(n(!0), i(z, null, W(mt.value, (e) => (n(), i(z, {
|
|
730
738
|
key: e.id
|
|
731
739
|
}, [
|
|
732
740
|
B("line", {
|
|
@@ -737,7 +745,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
737
745
|
stroke: a.value.style.chart.backgroundColor,
|
|
738
746
|
"stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
|
|
739
747
|
"pointer-events": "none"
|
|
740
|
-
}, null, 8,
|
|
748
|
+
}, null, 8, ba),
|
|
741
749
|
B("line", {
|
|
742
750
|
x1: e.midBaseX,
|
|
743
751
|
y1: e.midBaseY,
|
|
@@ -746,7 +754,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
746
754
|
stroke: a.value.style.chart.ribbons.labels.connector.stroke,
|
|
747
755
|
"stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth,
|
|
748
756
|
"pointer-events": "none"
|
|
749
|
-
}, null, 8,
|
|
757
|
+
}, null, 8, ma),
|
|
750
758
|
a.value.style.chart.ribbons.labels.marker.show ? (n(), i("circle", {
|
|
751
759
|
key: 0,
|
|
752
760
|
cx: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
@@ -756,7 +764,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
756
764
|
"stroke-width": a.value.style.chart.ribbons.labels.marker.strokeWidth,
|
|
757
765
|
fill: e.groupColor,
|
|
758
766
|
"pointer-events": "none"
|
|
759
|
-
}, null, 8,
|
|
767
|
+
}, null, 8, ya)) : v("", !0),
|
|
760
768
|
B("text", {
|
|
761
769
|
transform: `
|
|
762
770
|
translate(
|
|
@@ -765,56 +773,56 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
765
773
|
) rotate(${-x.value})
|
|
766
774
|
`,
|
|
767
775
|
fill: a.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : a.value.style.chart.ribbons.labels.color,
|
|
768
|
-
"text-anchor":
|
|
776
|
+
"text-anchor": $t(e.theta),
|
|
769
777
|
"font-size": a.value.style.chart.ribbons.labels.fontSize,
|
|
770
778
|
"font-weight": a.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
|
|
771
779
|
dy: ".35em",
|
|
772
780
|
"pointer-events": "none"
|
|
773
|
-
},
|
|
781
|
+
}, D(Xe(e.value)), 9, ka)
|
|
774
782
|
], 64))), 128))
|
|
775
783
|
])) : v("", !0),
|
|
776
|
-
a.value.style.chart.arcs.labels.show ? (n(), i("g",
|
|
777
|
-
a.value.style.chart.arcs.labels.curved ? (n(!0), i(z, { key: 0 },
|
|
784
|
+
a.value.style.chart.arcs.labels.show ? (n(), i("g", $a, [
|
|
785
|
+
a.value.style.chart.arcs.labels.curved ? (n(!0), i(z, { key: 0 }, W(M.value.groups, (e, l) => (n(), i("text", {
|
|
778
786
|
key: `curved-label-${l}`,
|
|
779
787
|
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
780
788
|
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
781
|
-
fill: a.value.style.chart.arcs.labels.adaptColorToBackground ? d(
|
|
789
|
+
fill: a.value.style.chart.arcs.labels.adaptColorToBackground ? d(Dt)(y.value.colors[l]) : a.value.style.chart.arcs.labels.color
|
|
782
790
|
}, [
|
|
783
791
|
B("textPath", {
|
|
784
792
|
href: `#labelPath-${l}_${S.value}`,
|
|
785
793
|
startOffset: "50%",
|
|
786
794
|
"text-anchor": "middle"
|
|
787
|
-
},
|
|
795
|
+
}, D(y.value.labels[l]) + D(a.value.style.chart.arcs.labels.showPercentage ? d(ge)({
|
|
788
796
|
p: " (",
|
|
789
797
|
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
790
798
|
s: "%)",
|
|
791
799
|
r: a.value.style.chart.arcs.labels.roundingPercentage
|
|
792
|
-
}) : ""), 9,
|
|
793
|
-
], 8,
|
|
800
|
+
}) : ""), 9, Ca)
|
|
801
|
+
], 8, wa))), 128)) : !w.value && !m.value && !p.value ? (n(!0), i(z, { key: 1 }, W(M.value.groups, (e, l) => (n(), i("text", {
|
|
794
802
|
key: `label-${l}`,
|
|
795
803
|
transform: `
|
|
796
|
-
${
|
|
804
|
+
${wt((e.startAngle + e.endAngle) / 2)}
|
|
797
805
|
rotate(${-x.value})
|
|
798
806
|
`,
|
|
799
807
|
dy: ".35em",
|
|
800
|
-
"text-anchor":
|
|
808
|
+
"text-anchor": kt(e) > Math.PI ? "end" : "start",
|
|
801
809
|
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
802
810
|
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
803
811
|
fill: a.value.style.chart.arcs.labels.color
|
|
804
|
-
},
|
|
812
|
+
}, D(y.value.labels[l]) + D(a.value.style.chart.arcs.labels.showPercentage ? d(ge)({
|
|
805
813
|
p: " (",
|
|
806
814
|
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
807
815
|
s: "%)",
|
|
808
816
|
r: a.value.style.chart.arcs.labels.roundingPercentage
|
|
809
|
-
}) : ""), 9,
|
|
817
|
+
}) : ""), 9, Ma))), 128)) : v("", !0)
|
|
810
818
|
])) : v("", !0)
|
|
811
|
-
], 8,
|
|
819
|
+
], 8, ua),
|
|
812
820
|
$(t.$slots, "svg", { svg: { height: 600, width: 600 } }, void 0, !0)
|
|
813
|
-
], 42,
|
|
814
|
-
t.$slots.watermark ? (n(), i("div",
|
|
815
|
-
$(t.$slots, "watermark", re(ue({ isPrinting: d(
|
|
821
|
+
], 42, oa)) : v("", !0),
|
|
822
|
+
t.$slots.watermark ? (n(), i("div", xa, [
|
|
823
|
+
$(t.$slots, "watermark", re(ue({ isPrinting: d(Ie) || d(Ae) })), void 0, !0)
|
|
816
824
|
])) : v("", !0),
|
|
817
|
-
L.value ? v("", !0) : (n(),
|
|
825
|
+
L.value ? v("", !0) : (n(), G(d(ct), {
|
|
818
826
|
key: 6,
|
|
819
827
|
config: {
|
|
820
828
|
type: "chord",
|
|
@@ -830,26 +838,26 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
830
838
|
ref_key: "chartLegend",
|
|
831
839
|
ref: me
|
|
832
840
|
}, [
|
|
833
|
-
a.value.style.chart.legend.show ? (n(),
|
|
841
|
+
a.value.style.chart.legend.show ? (n(), G(Zt, {
|
|
834
842
|
key: `legend_${Ce.value}`,
|
|
835
|
-
legendSet:
|
|
836
|
-
config:
|
|
837
|
-
onClickMarker: o[2] || (o[2] = ({ legend: e }) =>
|
|
838
|
-
},
|
|
843
|
+
legendSet: We.value,
|
|
844
|
+
config: At.value,
|
|
845
|
+
onClickMarker: o[2] || (o[2] = ({ legend: e }) => Ge(e.id))
|
|
846
|
+
}, Je({
|
|
839
847
|
item: _(({ legend: e }) => [
|
|
840
848
|
B("div", {
|
|
841
849
|
style: E({
|
|
842
850
|
opacity: p.value ? p.value === e.id ? 1 : 0.3 : 1
|
|
843
851
|
}),
|
|
844
852
|
onClick: (l) => e.select()
|
|
845
|
-
},
|
|
853
|
+
}, D(e.name), 13, Ia)
|
|
846
854
|
]),
|
|
847
855
|
_: 2
|
|
848
856
|
}, [
|
|
849
857
|
t.$slots.pattern ? {
|
|
850
858
|
name: "legend-pattern",
|
|
851
859
|
fn: _(({ legend: e, index: l }) => [
|
|
852
|
-
he(
|
|
860
|
+
he(Kt, {
|
|
853
861
|
shape: e.shape,
|
|
854
862
|
radius: 30,
|
|
855
863
|
stroke: "none",
|
|
@@ -860,7 +868,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
860
868
|
key: "0"
|
|
861
869
|
} : void 0
|
|
862
870
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
863
|
-
$(t.$slots, "legend", { legend:
|
|
871
|
+
$(t.$slots, "legend", { legend: We.value }, void 0, !0)
|
|
864
872
|
], 512),
|
|
865
873
|
t.$slots.source ? (n(), i("div", {
|
|
866
874
|
key: 7,
|
|
@@ -870,7 +878,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
870
878
|
}, [
|
|
871
879
|
$(t.$slots, "source", {}, void 0, !0)
|
|
872
880
|
], 512)) : v("", !0),
|
|
873
|
-
x.value !== a.value.initialRotation ? (n(), i("div",
|
|
881
|
+
x.value !== a.value.initialRotation ? (n(), i("div", Aa, [
|
|
874
882
|
$(t.$slots, "reset-action", { reset: Ye }, () => [
|
|
875
883
|
B("button", {
|
|
876
884
|
"data-cy-reset": "",
|
|
@@ -882,14 +890,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
882
890
|
}),
|
|
883
891
|
onClick: Ye
|
|
884
892
|
}, [
|
|
885
|
-
he(d(
|
|
893
|
+
he(d(nt), {
|
|
886
894
|
name: "refresh",
|
|
887
895
|
stroke: a.value.style.chart.color
|
|
888
896
|
}, null, 8, ["stroke"])
|
|
889
897
|
], 4)
|
|
890
898
|
], !0)
|
|
891
899
|
])) : v("", !0),
|
|
892
|
-
L.value ? (n(),
|
|
900
|
+
L.value ? (n(), G(d(st), {
|
|
893
901
|
key: 9,
|
|
894
902
|
hideDetails: "",
|
|
895
903
|
config: {
|
|
@@ -906,7 +914,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
906
914
|
}
|
|
907
915
|
}, {
|
|
908
916
|
content: _(() => [
|
|
909
|
-
(n(),
|
|
917
|
+
(n(), G(d(rt), {
|
|
910
918
|
key: `table_${we.value}`,
|
|
911
919
|
colNames: ne.value.colNames,
|
|
912
920
|
head: ne.value.head,
|
|
@@ -916,19 +924,19 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
916
924
|
onClose: o[3] || (o[3] = (e) => Z.value.showTable = !1)
|
|
917
925
|
}, {
|
|
918
926
|
th: _(({ th: e }) => [
|
|
919
|
-
|
|
927
|
+
Ot(D(e.name), 1)
|
|
920
928
|
]),
|
|
921
929
|
td: _(({ td: e }) => [
|
|
922
|
-
B("div",
|
|
930
|
+
B("div", Pa, D(e.name ? e.name : Xe(e)), 1)
|
|
923
931
|
]),
|
|
924
932
|
_: 1
|
|
925
933
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
926
934
|
]),
|
|
927
935
|
_: 1
|
|
928
936
|
}, 8, ["config"])) : v("", !0)
|
|
929
|
-
], 46,
|
|
937
|
+
], 46, aa));
|
|
930
938
|
}
|
|
931
|
-
},
|
|
939
|
+
}, Da = /* @__PURE__ */ ta(_a, [["__scopeId", "data-v-ab90a89e"]]);
|
|
932
940
|
export {
|
|
933
|
-
|
|
941
|
+
Da as default
|
|
934
942
|
};
|