vue-data-ui 3.0.0-next.0 → 3.0.0-next.10
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 +109 -68
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-8Wnel_lw.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-D-IcFGSE.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-RLse0qy8.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-D9dpnizT.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-IzCJ9gby.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-SfJ53F5x.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-3oZlBiCt.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-u8Hc4rJi.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-6iArlmj7.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-vSWSsIaU.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-CPMTQDCj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-sazd7MmK.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-CTsOHFNh.js} +1 -1
- package/dist/Tooltip-4cn1szzA.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-X9Ckvwp-.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-C3BKllTG.js} +1 -1
- package/dist/img-D9CjuW6g.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-DBSLpcPM.js} +1515 -1426
- package/dist/pdf-V4tIjxUb.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1098 -222
- package/dist/types/vue-data-ui.d.ts +1098 -222
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-BQFkJRtL.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-CjyE7ii3.js} +2 -2
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DG97x2hL.js} +139 -132
- package/dist/vue-data-ui-BgN2CPSV.js +320 -0
- package/dist/vue-data-ui.js +53 -52
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DlnRLAbw.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-yWXqkLfQ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-C_4kFlWe.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-DVXA74Er.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-DoxSEGR4.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bke-ZK92.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-CqRuHaU6.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-BYIowBXd.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-DyA4jvyD.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-BVT22rGO.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-B3RyMKwx.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-Cgqpnpao.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-Db9yuqjo.js} +2 -2
- package/dist/vue-ui-donut-CdsBUcPD.js +1547 -0
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-D5eUZJuU.js} +370 -357
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-CWgs8sB6.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CL5jxEBp.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DT9BzBp3.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-hwr5J-b7.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-D_fnRyKs.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-CLni95HP.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-Bd8qoV2F.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BJvaJkPO.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-B7uO6vRA.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CTDfGO91.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-BSE6LaGt.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-CN24P-Tk.js} +206 -190
- package/dist/vue-ui-nested-donuts-CWL3uP-u.js +1212 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-Bib32nel.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-l0O-i93L.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-D0pzeobL.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-CaLIrn96.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DXJ1WS7s.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-C6qqU59J.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-SpPQ2WhH.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-BMsbiTjU.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-ES4LhrT0.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-yV6nLFs6.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-7gkY0oe-.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-CYLqgGm1.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-kQ3dsaGO.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-Bfe8SMeM.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-Dxts3pPS.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-CC6-gQ2R.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-Ba6FPyOS.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-CQr6s7Ij.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-cJAK-x5g.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-DyU5K6-X.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-B_KeSP8f.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-CzGGjLl6.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-BoW1Y5Hh.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-ROH_nY6z.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-DmgpfYIT.js} +5 -5
- package/dist/vue-ui-tiremarks-CkmD6BQB.js +358 -0
- package/dist/vue-ui-treemap-BOxeG-ql.js +965 -0
- package/dist/vue-ui-vertical-bar-BoKi7wHJ.js +1106 -0
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-BIM_Qg3a.js} +234 -221
- package/dist/vue-ui-wheel-CGZgFZax.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-Dt-X1dFo.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BrPqffT7.js} +239 -223
- package/dist/vue-ui-xy-CYko0Jmo.js +2982 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-DVRWryRe.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-vertical-bar-Dd4sYeAC.js +0 -958
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -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 F, normalizeClass as z, 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 R, 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-DBSLpcPM.js";
|
|
3
|
+
import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
4
|
+
import { u as tt } from "./useNestedProp-BQFkJRtL.js";
|
|
5
|
+
import { u as Wt } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
|
+
import { u as qt } from "./usePrinter-CjyE7ii3.js";
|
|
7
|
+
import { t as Ht, u as Qt } from "./useResponsive-DfdjqQps.js";
|
|
8
|
+
import Zt from "./Legend-SfJ53F5x.js";
|
|
9
|
+
import Jt from "./Title-CTsOHFNh.js";
|
|
10
|
+
import { _ as Kt } from "./Shape-vSWSsIaU.js";
|
|
11
|
+
import ea from "./img-D9CjuW6g.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,67 +34,67 @@ 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
|
+
"3518436d": t.slicerColor
|
|
39
40
|
}));
|
|
40
|
-
const
|
|
41
|
-
get: () =>
|
|
41
|
+
const st = Y(() => import("./vue-ui-accordion-yWXqkLfQ.js")), nt = Y(() => import("./BaseIcon-RLse0qy8.js")), rt = Y(() => import("./DataTable-IzCJ9gby.js")), ut = Y(() => import("./PackageVersion-u8Hc4rJi.js")), it = Y(() => import("./PenAndPaper-6iArlmj7.js")), ct = Y(() => import("./vue-ui-skeleton-7gkY0oe-.js")), dt = Y(() => import("./UserOptions-X9Ckvwp-.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), N = 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({
|
|
42
|
+
get: () => Se(),
|
|
42
43
|
set: (t) => t
|
|
43
|
-
}), { userOptionsVisible: ce, setUserOptionsVisibility: Me, keepUserOptionState: xe } =
|
|
44
|
-
elementId: `chord_${
|
|
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({
|
|
45
|
+
elementId: `chord_${S.value}`,
|
|
45
46
|
fileName: a.value.style.chart.title.text || "vue-ui-chord",
|
|
46
47
|
options: a.value.userOptions.print
|
|
47
48
|
}), Z = h({
|
|
48
49
|
showTable: a.value.table.show
|
|
49
50
|
});
|
|
50
|
-
function
|
|
51
|
-
const t =
|
|
51
|
+
function Se() {
|
|
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
|
-
a.value =
|
|
64
|
+
St(() => g.config, (t) => {
|
|
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
|
-
function
|
|
67
|
-
if (
|
|
67
|
+
function Te() {
|
|
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
|
-
}), L.value &&
|
|
80
|
-
const t =
|
|
81
|
-
const { width: o, height: e, heightNoTitle: l, heightSource: u, heightTitle: s, heightLegend: r } =
|
|
82
|
-
chart:
|
|
83
|
-
title: a.value.style.chart.title.text ?
|
|
80
|
+
}), L.value && Oe(), a.value.responsive) {
|
|
81
|
+
const t = Ht(() => {
|
|
82
|
+
const { width: o, height: e, heightNoTitle: l, heightSource: u, heightTitle: s, heightLegend: r } = Qt({
|
|
83
|
+
chart: N.value,
|
|
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 ? N.value.style.width = "100%" : (N.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 = N.value.parentNode, X.value.observe(H.value), t();
|
|
91
92
|
}
|
|
92
93
|
Be.value = setTimeout(() => {
|
|
93
94
|
q.value = !0;
|
|
94
95
|
}, 500);
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
+
function Oe() {
|
|
97
98
|
if (!g.dataset || !Object.hasOwn(g.dataset, "matrix") || g.dataset.matrix.length < 2) {
|
|
98
99
|
console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
|
|
99
100
|
|
|
@@ -110,59 +111,59 @@ 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
|
-
|
|
114
|
+
Qe(() => {
|
|
115
|
+
Te();
|
|
115
116
|
});
|
|
116
|
-
const
|
|
117
|
+
const T = h({
|
|
117
118
|
height: 600,
|
|
118
119
|
width: 600
|
|
119
|
-
}),
|
|
120
|
-
inner:
|
|
121
|
-
outer:
|
|
122
|
-
})),
|
|
120
|
+
}), ht = C(() => a.value.userOptions.show && !a.value.style.chart.title.text), ft = C(() => Rt(a.value.customPalette)), b = C(() => ({
|
|
121
|
+
inner: T.value.width * 0.3 * a.value.style.chart.arcs.innerRadiusRatio,
|
|
122
|
+
outer: T.value.width * 0.34 * a.value.style.chart.arcs.outerRadiusRatio
|
|
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
|
-
const e = t.length, l =
|
|
132
|
+
function pt(t, o) {
|
|
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
|
-
pattern: `pattern_${
|
|
144
|
+
pattern: `pattern_${S.value}_${c}`,
|
|
144
145
|
startAngle: k,
|
|
145
146
|
endAngle: P,
|
|
146
147
|
name: y.value.labels[c],
|
|
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((
|
|
155
|
-
k.sort((
|
|
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:
|
|
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
|
-
subIndex:
|
|
162
|
-
pattern: `pattern_${
|
|
162
|
+
subIndex: O,
|
|
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],
|
|
@@ -172,22 +173,22 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
172
173
|
}), P = ee;
|
|
173
174
|
}
|
|
174
175
|
}
|
|
175
|
-
const
|
|
176
|
-
for (const c of
|
|
177
|
-
const k =
|
|
176
|
+
const E = [];
|
|
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
|
+
E.push({ source: c, target: k, id: fe() });
|
|
181
182
|
}
|
|
182
|
-
return { groups: f, chords:
|
|
183
|
+
return { groups: f, chords: E };
|
|
183
184
|
}
|
|
184
185
|
const M = C(() => {
|
|
185
|
-
const t =
|
|
186
|
-
return
|
|
186
|
+
const t = pt(y.value.matrix, gt.value);
|
|
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
|
-
const t =
|
|
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;
|
|
193
194
|
if (s.source.value) {
|
|
@@ -244,15 +245,15 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
244
245
|
}
|
|
245
246
|
});
|
|
246
247
|
}
|
|
247
|
-
return
|
|
248
|
-
}),
|
|
248
|
+
return p.value && u(p.value), w.value && u(w.value.id), l;
|
|
249
|
+
}), mt = C(() => {
|
|
249
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], E = I.theta + I.w + o;
|
|
256
|
+
A.theta < E && (A.theta = E, 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 ${
|
|
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, E = 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${E},${c} A${l},${l} 0 ${O} 0 ${k},${P} Z`;
|
|
265
266
|
}
|
|
266
267
|
function ae(t, o) {
|
|
267
|
-
const 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, E = 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},${E}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
|
-
const o = t - Math.PI / 2, e = Math.cos(o) * (
|
|
282
|
+
function wt(t) {
|
|
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,26 +316,26 @@ 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
|
-
de.value = t,
|
|
325
|
+
function je(t) {
|
|
326
|
+
de.value = t, pe.value += 1;
|
|
326
327
|
}
|
|
327
328
|
function Mt(t) {
|
|
328
|
-
|
|
329
|
+
p.value || (w.value = t);
|
|
329
330
|
}
|
|
330
331
|
function xt(t) {
|
|
331
|
-
|
|
332
|
-
}
|
|
333
|
-
function je(t) {
|
|
334
|
-
return !b.value && !w.value && !m.value ? 0.8 : (b.value ? b.value === t.source.groupId : w.value ? w.value.id === t.source.groupId : m.value?.id === t.id) ? 1 : 0.1;
|
|
332
|
+
p.value || (m.value = t);
|
|
335
333
|
}
|
|
336
334
|
function De(t) {
|
|
337
|
-
return !
|
|
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;
|
|
336
|
+
}
|
|
337
|
+
function Ue(t) {
|
|
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);
|
|
340
341
|
function ve() {
|
|
@@ -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
|
-
t ===
|
|
362
|
+
function Ge(t) {
|
|
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
|
-
pattern: `pattern_${
|
|
370
|
+
pattern: `pattern_${S.value}_${o}`,
|
|
370
371
|
id: t.id,
|
|
371
|
-
select: () =>
|
|
372
|
-
opacity:
|
|
373
|
-
}))),
|
|
372
|
+
select: () => Ge(t.id),
|
|
373
|
+
opacity: p.value ? p.value === t.id ? 1 : 0.3 : 1
|
|
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,31 +420,45 @@ 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 (!N.value) return;
|
|
429
|
+
const { width: o, height: e } = N.value.getBoundingClientRect(), l = o / e, { imageUri: u, base64: s } = await ea({ domElement: N.value, base64: !0, img: !0, scale: t });
|
|
430
|
+
return {
|
|
431
|
+
imageUri: u,
|
|
432
|
+
base64: s,
|
|
433
|
+
title: a.value.style.chart.title.text,
|
|
434
|
+
width: o,
|
|
435
|
+
height: e,
|
|
436
|
+
aspectRatio: l
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
return ot({
|
|
440
|
+
getData: It,
|
|
441
|
+
getImage: Pt,
|
|
442
|
+
generateCsv: qe,
|
|
429
443
|
generateImage: _e,
|
|
430
444
|
generatePdf: Pe,
|
|
431
445
|
toggleAnnotator: ve,
|
|
432
|
-
toggleTable: Ve
|
|
446
|
+
toggleTable: Ve,
|
|
447
|
+
toggleFullscreen: je
|
|
433
448
|
}), (t, o) => (n(), i("div", {
|
|
434
449
|
ref_key: "chordChart",
|
|
435
|
-
ref:
|
|
436
|
-
class:
|
|
450
|
+
ref: N,
|
|
451
|
+
class: z({
|
|
437
452
|
"vue-ui-chord": !0,
|
|
438
453
|
"vue-data-ui-wrapper-fullscreen": de.value,
|
|
439
454
|
"vue-data-ui-responsive": a.value.responsive
|
|
440
455
|
}),
|
|
441
|
-
style:
|
|
442
|
-
id: `chord_${
|
|
456
|
+
style: F(`font-family:${a.value.style.fontFamily};width:100%; text-align:center;background:${a.value.style.chart.backgroundColor}`),
|
|
457
|
+
id: `chord_${S.value}`,
|
|
443
458
|
onMouseenter: o[4] || (o[4] = () => d(Me)(!0)),
|
|
444
459
|
onMouseleave: o[5] || (o[5] = () => d(Me)(!1))
|
|
445
460
|
}, [
|
|
446
|
-
a.value.userOptions.buttons.annotator && d(Q) ? (n(),
|
|
461
|
+
a.value.userOptions.buttons.annotator && d(Q) ? (n(), G(d(it), {
|
|
447
462
|
key: 0,
|
|
448
463
|
color: a.value.style.chart.color,
|
|
449
464
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -452,7 +467,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
452
467
|
onClose: ve
|
|
453
468
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
454
469
|
$(t.$slots, "userConfig", {}, void 0, !0),
|
|
455
|
-
|
|
470
|
+
ht.value ? (n(), i("div", {
|
|
456
471
|
key: 1,
|
|
457
472
|
ref_key: "noTitle",
|
|
458
473
|
ref: ke,
|
|
@@ -462,10 +477,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
462
477
|
a.value.style.chart.title.text ? (n(), i("div", {
|
|
463
478
|
key: 2,
|
|
464
479
|
ref_key: "chartTitle",
|
|
465
|
-
ref:
|
|
480
|
+
ref: be,
|
|
466
481
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
467
482
|
}, [
|
|
468
|
-
(n(),
|
|
483
|
+
(n(), G(Jt, {
|
|
469
484
|
key: `title_${$e.value}`,
|
|
470
485
|
config: {
|
|
471
486
|
title: {
|
|
@@ -479,14 +494,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
479
494
|
}
|
|
480
495
|
}, null, 8, ["config"]))
|
|
481
496
|
], 512)) : v("", !0),
|
|
482
|
-
a.value.userOptions.show && L.value && (d(xe) || d(ce)) ? (n(),
|
|
497
|
+
a.value.userOptions.show && L.value && (d(xe) || d(ce)) ? (n(), G(d(dt), {
|
|
483
498
|
ref: "details",
|
|
484
|
-
key: `user_option_${
|
|
499
|
+
key: `user_option_${pe.value}`,
|
|
485
500
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
486
501
|
color: a.value.style.chart.color,
|
|
487
|
-
isPrinting: d(
|
|
488
|
-
isImaging: d(
|
|
489
|
-
uid:
|
|
502
|
+
isPrinting: d(Ie),
|
|
503
|
+
isImaging: d(Ae),
|
|
504
|
+
uid: S.value,
|
|
490
505
|
hasTooltip: !1,
|
|
491
506
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
492
507
|
hasImg: a.value.userOptions.buttons.img,
|
|
@@ -495,22 +510,23 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
495
510
|
hasLabel: !1,
|
|
496
511
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
497
512
|
isFullscreen: de.value,
|
|
498
|
-
chartElement:
|
|
513
|
+
chartElement: N.value,
|
|
499
514
|
position: a.value.userOptions.position,
|
|
500
515
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
501
516
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
502
517
|
isAnnotation: K.value,
|
|
503
518
|
callbacks: a.value.userOptions.callbacks,
|
|
504
|
-
|
|
519
|
+
printScale: a.value.userOptions.print.scale,
|
|
520
|
+
onToggleFullscreen: je,
|
|
505
521
|
onGeneratePdf: d(Pe),
|
|
506
|
-
onGenerateCsv:
|
|
522
|
+
onGenerateCsv: qe,
|
|
507
523
|
onGenerateImage: d(_e),
|
|
508
524
|
onToggleTable: Ve,
|
|
509
525
|
onToggleAnnotator: ve,
|
|
510
|
-
style:
|
|
526
|
+
style: F({
|
|
511
527
|
visibility: d(xe) ? d(ce) ? "visible" : "hidden" : "visible"
|
|
512
528
|
})
|
|
513
|
-
},
|
|
529
|
+
}, Je({ _: 2 }, [
|
|
514
530
|
t.$slots.menuIcon ? {
|
|
515
531
|
name: "menuIcon",
|
|
516
532
|
fn: _(({ isOpen: e, color: l }) => [
|
|
@@ -560,117 +576,117 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
560
576
|
]),
|
|
561
577
|
key: "6"
|
|
562
578
|
} : void 0
|
|
563
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
579
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
564
580
|
L.value ? (n(), i("svg", {
|
|
565
581
|
key: 4,
|
|
566
|
-
xmlns: d(
|
|
582
|
+
xmlns: d(jt),
|
|
567
583
|
ref_key: "svgRef",
|
|
568
584
|
ref: Q,
|
|
569
|
-
viewBox: `0 0 ${
|
|
585
|
+
viewBox: `0 0 ${T.value.width} ${T.value.height}`,
|
|
570
586
|
preserveAspectRatio: "xMidYMid meet",
|
|
571
587
|
style: {
|
|
572
588
|
overflow: "visible"
|
|
573
589
|
},
|
|
574
|
-
class:
|
|
575
|
-
onMousedown:
|
|
576
|
-
onTouchstart:
|
|
590
|
+
class: z({ "vue-ui-chord-rotating": J.value, "vue-ui-chord-idle": !J.value }),
|
|
591
|
+
onMousedown: Ke(Re, ["prevent"]),
|
|
592
|
+
onTouchstart: Ke(Re, ["prevent"])
|
|
577
593
|
}, [
|
|
578
|
-
he(d(
|
|
594
|
+
he(d(ut)),
|
|
579
595
|
t.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
580
596
|
key: 0,
|
|
581
597
|
x: 0,
|
|
582
598
|
y: 0,
|
|
583
|
-
width:
|
|
584
|
-
height:
|
|
599
|
+
width: T.value.width <= 0 ? 10 : T.value.width,
|
|
600
|
+
height: T.value.height <= 0 ? 10 : T.value.height,
|
|
585
601
|
style: {
|
|
586
602
|
pointerEvents: "none"
|
|
587
603
|
}
|
|
588
604
|
}, [
|
|
589
605
|
$(t.$slots, "chart-background", {}, void 0, !0)
|
|
590
|
-
], 8,
|
|
591
|
-
a.value.style.chart.arcs.labels.curved ? (n(), i("defs",
|
|
592
|
-
(n(!0), i(
|
|
606
|
+
], 8, la)) : v("", !0),
|
|
607
|
+
a.value.style.chart.arcs.labels.curved ? (n(), i("defs", sa, [
|
|
608
|
+
(n(!0), i(R, null, W(M.value.groups, (e, l) => (n(), i("path", {
|
|
593
609
|
key: `labelPath-${l}`,
|
|
594
|
-
id: `labelPath-${l}_${
|
|
595
|
-
d:
|
|
610
|
+
id: `labelPath-${l}_${S.value}`,
|
|
611
|
+
d: Ct(
|
|
596
612
|
e.startAngle,
|
|
597
613
|
e.endAngle,
|
|
598
|
-
(
|
|
614
|
+
(b.value.inner + b.value.outer) / 2 + a.value.style.chart.arcs.labels.offset
|
|
599
615
|
),
|
|
600
616
|
fill: "none"
|
|
601
|
-
}, null, 8,
|
|
617
|
+
}, null, 8, na))), 128))
|
|
602
618
|
])) : v("", !0),
|
|
603
|
-
t.$slots.pattern ? (n(), i("g",
|
|
604
|
-
(n(!0), i(
|
|
605
|
-
$(t.$slots, "pattern", Tt({ ref_for: !0 }, { seriesIndex: e.index, patternId: `pattern_${
|
|
619
|
+
t.$slots.pattern ? (n(), i("g", ra, [
|
|
620
|
+
(n(!0), i(R, null, W(M.value.groups, (e, l) => (n(), i("defs", null, [
|
|
621
|
+
$(t.$slots, "pattern", Tt({ ref_for: !0 }, { seriesIndex: e.index, patternId: `pattern_${S.value}_${l}` }), void 0, !0)
|
|
606
622
|
]))), 256))
|
|
607
623
|
])) : v("", !0),
|
|
608
624
|
B("g", {
|
|
609
|
-
transform: `translate(${
|
|
625
|
+
transform: `translate(${T.value.width / 2}, ${T.value.height / 2}) rotate(${x.value})`
|
|
610
626
|
}, [
|
|
611
|
-
(n(!0), i(
|
|
627
|
+
(n(!0), i(R, null, W(M.value.groups, (e, l) => (n(), i("g", null, [
|
|
612
628
|
(n(), i("path", {
|
|
613
|
-
class:
|
|
629
|
+
class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
|
|
614
630
|
key: `arc-${l}`,
|
|
615
631
|
d: Le(
|
|
616
632
|
e.startAngle,
|
|
617
633
|
e.endAngle,
|
|
618
|
-
|
|
619
|
-
|
|
634
|
+
b.value.outer,
|
|
635
|
+
b.value.inner
|
|
620
636
|
),
|
|
621
637
|
fill: y.value.colors[l],
|
|
622
638
|
stroke: a.value.style.chart.arcs.stroke,
|
|
623
639
|
"stroke-width": a.value.style.chart.arcs.strokeWidth,
|
|
624
640
|
"stroke-linecap": "round",
|
|
625
641
|
"stroke-linejoin": "round",
|
|
626
|
-
style:
|
|
627
|
-
opacity:
|
|
642
|
+
style: F({
|
|
643
|
+
opacity: Ue(e)
|
|
628
644
|
}),
|
|
629
645
|
onMouseenter: () => Mt(e),
|
|
630
646
|
onMouseleave: o[0] || (o[0] = (u) => w.value = null),
|
|
631
647
|
onClick: (u) => te("selectGroup", e)
|
|
632
|
-
}, null, 46,
|
|
648
|
+
}, null, 46, ia)),
|
|
633
649
|
t.$slots.pattern ? (n(), i("path", {
|
|
634
|
-
class:
|
|
650
|
+
class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
|
|
635
651
|
key: `arc-${l}`,
|
|
636
652
|
d: Le(
|
|
637
653
|
e.startAngle,
|
|
638
654
|
e.endAngle,
|
|
639
|
-
|
|
640
|
-
|
|
655
|
+
b.value.outer,
|
|
656
|
+
b.value.inner
|
|
641
657
|
),
|
|
642
658
|
fill: `url(#${e.pattern})`,
|
|
643
659
|
stroke: a.value.style.chart.arcs.stroke,
|
|
644
660
|
"stroke-width": a.value.style.chart.arcs.strokeWidth,
|
|
645
661
|
"stroke-linecap": "round",
|
|
646
662
|
"stroke-linejoin": "round",
|
|
647
|
-
style:
|
|
648
|
-
opacity:
|
|
663
|
+
style: F({
|
|
664
|
+
opacity: Ue(e),
|
|
649
665
|
pointerEvents: "none"
|
|
650
666
|
})
|
|
651
|
-
}, null, 14,
|
|
667
|
+
}, null, 14, ca)) : v("", !0)
|
|
652
668
|
]))), 256)),
|
|
653
669
|
B("g", null, [
|
|
654
|
-
(n(!0), i(
|
|
670
|
+
(n(!0), i(R, 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(R, {
|
|
655
671
|
key: `ribbon-${e.id}`
|
|
656
672
|
}, [
|
|
657
673
|
e.source.value ? (n(), i("path", {
|
|
658
674
|
key: 0,
|
|
659
|
-
class:
|
|
675
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
|
|
660
676
|
d: ae(e.source, e.target),
|
|
661
677
|
fill: a.value.style.chart.backgroundColor,
|
|
662
|
-
style:
|
|
663
|
-
}, null, 14,
|
|
678
|
+
style: F({ opacity: a.value.style.chart.ribbons.underlayerOpacity })
|
|
679
|
+
}, null, 14, da)) : v("", !0),
|
|
664
680
|
e.source.value ? (n(), i("path", {
|
|
665
681
|
key: 1,
|
|
666
|
-
class:
|
|
682
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
|
|
667
683
|
d: ae(e.source, e.target),
|
|
668
684
|
fill: y.value.colors[e.source.index],
|
|
669
685
|
stroke: a.value.style.chart.ribbons.stroke,
|
|
670
686
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
671
687
|
"stroke-linecap": "round",
|
|
672
688
|
"stroke-linejoin": "round",
|
|
673
|
-
style:
|
|
689
|
+
style: F({ opacity: De(e) }),
|
|
674
690
|
onMouseenter: () => xt({
|
|
675
691
|
...e,
|
|
676
692
|
path: ae(e.source, e.target),
|
|
@@ -681,21 +697,21 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
681
697
|
color: y.value.colors[e.source.index]
|
|
682
698
|
}),
|
|
683
699
|
onMouseleave: o[1] || (o[1] = (l) => m.value = null)
|
|
684
|
-
}, null, 46,
|
|
700
|
+
}, null, 46, va)) : v("", !0),
|
|
685
701
|
e.source.value && t.$slots.pattern ? (n(), i("path", {
|
|
686
702
|
key: 2,
|
|
687
|
-
class:
|
|
703
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
|
|
688
704
|
d: ae(e.source, e.target),
|
|
689
|
-
fill: `url(#pattern_${
|
|
705
|
+
fill: `url(#pattern_${S.value}_${e.source.index})`,
|
|
690
706
|
stroke: a.value.style.chart.ribbons.stroke,
|
|
691
707
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
692
708
|
"stroke-linecap": "round",
|
|
693
709
|
"stroke-linejoin": "round",
|
|
694
|
-
style:
|
|
695
|
-
opacity:
|
|
710
|
+
style: F({
|
|
711
|
+
opacity: De(e),
|
|
696
712
|
pointerEvents: "none"
|
|
697
713
|
})
|
|
698
|
-
}, null, 14,
|
|
714
|
+
}, null, 14, ha)) : v("", !0)
|
|
699
715
|
], 64))), 128)),
|
|
700
716
|
m.value ? (n(), i("path", {
|
|
701
717
|
key: 0,
|
|
@@ -705,11 +721,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
705
721
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
706
722
|
"stroke-linecap": "round",
|
|
707
723
|
"stroke-linejoin": "round",
|
|
708
|
-
class:
|
|
724
|
+
class: z({ "vue-ui-chord-ribbon": !0 }),
|
|
709
725
|
style: {
|
|
710
726
|
pointerEvents: "none"
|
|
711
727
|
}
|
|
712
|
-
}, null, 8,
|
|
728
|
+
}, null, 8, fa)) : v("", !0),
|
|
713
729
|
m.value && t.$slots.pattern ? (n(), i("path", {
|
|
714
730
|
key: 1,
|
|
715
731
|
d: m.value.path,
|
|
@@ -718,102 +734,102 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
718
734
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
719
735
|
"stroke-linecap": "round",
|
|
720
736
|
"stroke-linejoin": "round",
|
|
721
|
-
class:
|
|
737
|
+
class: z({ "vue-ui-chord-ribbon": !0 }),
|
|
722
738
|
style: {
|
|
723
739
|
pointerEvents: "none"
|
|
724
740
|
}
|
|
725
|
-
}, null, 8,
|
|
741
|
+
}, null, 8, ga)) : v("", !0)
|
|
726
742
|
]),
|
|
727
|
-
(w.value || m.value ||
|
|
728
|
-
(n(!0), i(
|
|
743
|
+
(w.value || m.value || p.value) && a.value.style.chart.ribbons.labels.show ? (n(), i("g", pa, [
|
|
744
|
+
(n(!0), i(R, null, W(mt.value, (e) => (n(), i(R, {
|
|
729
745
|
key: e.id
|
|
730
746
|
}, [
|
|
731
747
|
B("line", {
|
|
732
748
|
x1: e.midBaseX,
|
|
733
749
|
y1: e.midBaseY,
|
|
734
|
-
x2: Math.cos(e.theta - Math.PI / 2) * (
|
|
735
|
-
y2: Math.sin(e.theta - Math.PI / 2) * (
|
|
750
|
+
x2: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
751
|
+
y2: Math.sin(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
736
752
|
stroke: a.value.style.chart.backgroundColor,
|
|
737
753
|
"stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
|
|
738
754
|
"pointer-events": "none"
|
|
739
|
-
}, null, 8,
|
|
755
|
+
}, null, 8, ba),
|
|
740
756
|
B("line", {
|
|
741
757
|
x1: e.midBaseX,
|
|
742
758
|
y1: e.midBaseY,
|
|
743
|
-
x2: Math.cos(e.theta - Math.PI / 2) * (
|
|
744
|
-
y2: Math.sin(e.theta - Math.PI / 2) * (
|
|
759
|
+
x2: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
760
|
+
y2: Math.sin(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
745
761
|
stroke: a.value.style.chart.ribbons.labels.connector.stroke,
|
|
746
762
|
"stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth,
|
|
747
763
|
"pointer-events": "none"
|
|
748
|
-
}, null, 8,
|
|
764
|
+
}, null, 8, ma),
|
|
749
765
|
a.value.style.chart.ribbons.labels.marker.show ? (n(), i("circle", {
|
|
750
766
|
key: 0,
|
|
751
|
-
cx: Math.cos(e.theta - Math.PI / 2) * (
|
|
752
|
-
cy: Math.sin(e.theta - Math.PI / 2) * (
|
|
767
|
+
cx: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
768
|
+
cy: Math.sin(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
753
769
|
r: a.value.style.chart.ribbons.labels.marker.radius,
|
|
754
770
|
stroke: a.value.style.chart.ribbons.labels.marker.stroke,
|
|
755
771
|
"stroke-width": a.value.style.chart.ribbons.labels.marker.strokeWidth,
|
|
756
772
|
fill: e.groupColor,
|
|
757
773
|
"pointer-events": "none"
|
|
758
|
-
}, null, 8,
|
|
774
|
+
}, null, 8, ya)) : v("", !0),
|
|
759
775
|
B("text", {
|
|
760
776
|
transform: `
|
|
761
777
|
translate(
|
|
762
|
-
${Math.cos(e.theta - Math.PI / 2) * (
|
|
763
|
-
${Math.sin(e.theta - Math.PI / 2) * (
|
|
778
|
+
${Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 24)},
|
|
779
|
+
${Math.sin(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 24)}
|
|
764
780
|
) rotate(${-x.value})
|
|
765
781
|
`,
|
|
766
782
|
fill: a.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : a.value.style.chart.ribbons.labels.color,
|
|
767
|
-
"text-anchor":
|
|
783
|
+
"text-anchor": $t(e.theta),
|
|
768
784
|
"font-size": a.value.style.chart.ribbons.labels.fontSize,
|
|
769
785
|
"font-weight": a.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
|
|
770
786
|
dy: ".35em",
|
|
771
787
|
"pointer-events": "none"
|
|
772
|
-
},
|
|
788
|
+
}, D(Xe(e.value)), 9, ka)
|
|
773
789
|
], 64))), 128))
|
|
774
790
|
])) : v("", !0),
|
|
775
|
-
a.value.style.chart.arcs.labels.show ? (n(), i("g",
|
|
776
|
-
a.value.style.chart.arcs.labels.curved ? (n(!0), i(
|
|
791
|
+
a.value.style.chart.arcs.labels.show ? (n(), i("g", $a, [
|
|
792
|
+
a.value.style.chart.arcs.labels.curved ? (n(!0), i(R, { key: 0 }, W(M.value.groups, (e, l) => (n(), i("text", {
|
|
777
793
|
key: `curved-label-${l}`,
|
|
778
794
|
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
779
795
|
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
780
|
-
fill: a.value.style.chart.arcs.labels.adaptColorToBackground ? d(
|
|
796
|
+
fill: a.value.style.chart.arcs.labels.adaptColorToBackground ? d(Dt)(y.value.colors[l]) : a.value.style.chart.arcs.labels.color
|
|
781
797
|
}, [
|
|
782
798
|
B("textPath", {
|
|
783
|
-
href: `#labelPath-${l}_${
|
|
799
|
+
href: `#labelPath-${l}_${S.value}`,
|
|
784
800
|
startOffset: "50%",
|
|
785
801
|
"text-anchor": "middle"
|
|
786
|
-
},
|
|
802
|
+
}, D(y.value.labels[l]) + D(a.value.style.chart.arcs.labels.showPercentage ? d(ge)({
|
|
787
803
|
p: " (",
|
|
788
804
|
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
789
805
|
s: "%)",
|
|
790
806
|
r: a.value.style.chart.arcs.labels.roundingPercentage
|
|
791
|
-
}) : ""), 9,
|
|
792
|
-
], 8,
|
|
807
|
+
}) : ""), 9, Ca)
|
|
808
|
+
], 8, wa))), 128)) : !w.value && !m.value && !p.value ? (n(!0), i(R, { key: 1 }, W(M.value.groups, (e, l) => (n(), i("text", {
|
|
793
809
|
key: `label-${l}`,
|
|
794
810
|
transform: `
|
|
795
|
-
${
|
|
811
|
+
${wt((e.startAngle + e.endAngle) / 2)}
|
|
796
812
|
rotate(${-x.value})
|
|
797
813
|
`,
|
|
798
814
|
dy: ".35em",
|
|
799
|
-
"text-anchor":
|
|
815
|
+
"text-anchor": kt(e) > Math.PI ? "end" : "start",
|
|
800
816
|
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
801
817
|
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
802
818
|
fill: a.value.style.chart.arcs.labels.color
|
|
803
|
-
},
|
|
819
|
+
}, D(y.value.labels[l]) + D(a.value.style.chart.arcs.labels.showPercentage ? d(ge)({
|
|
804
820
|
p: " (",
|
|
805
821
|
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
806
822
|
s: "%)",
|
|
807
823
|
r: a.value.style.chart.arcs.labels.roundingPercentage
|
|
808
|
-
}) : ""), 9,
|
|
824
|
+
}) : ""), 9, Ma))), 128)) : v("", !0)
|
|
809
825
|
])) : v("", !0)
|
|
810
|
-
], 8,
|
|
826
|
+
], 8, ua),
|
|
811
827
|
$(t.$slots, "svg", { svg: { height: 600, width: 600 } }, void 0, !0)
|
|
812
|
-
], 42,
|
|
813
|
-
t.$slots.watermark ? (n(), i("div",
|
|
814
|
-
$(t.$slots, "watermark", re(ue({ isPrinting: d(
|
|
828
|
+
], 42, oa)) : v("", !0),
|
|
829
|
+
t.$slots.watermark ? (n(), i("div", xa, [
|
|
830
|
+
$(t.$slots, "watermark", re(ue({ isPrinting: d(Ie) || d(Ae) })), void 0, !0)
|
|
815
831
|
])) : v("", !0),
|
|
816
|
-
L.value ? v("", !0) : (n(),
|
|
832
|
+
L.value ? v("", !0) : (n(), G(d(ct), {
|
|
817
833
|
key: 6,
|
|
818
834
|
config: {
|
|
819
835
|
type: "chord",
|
|
@@ -829,37 +845,37 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
829
845
|
ref_key: "chartLegend",
|
|
830
846
|
ref: me
|
|
831
847
|
}, [
|
|
832
|
-
a.value.style.chart.legend.show ? (n(),
|
|
848
|
+
a.value.style.chart.legend.show ? (n(), G(Zt, {
|
|
833
849
|
key: `legend_${Ce.value}`,
|
|
834
|
-
legendSet:
|
|
835
|
-
config:
|
|
836
|
-
onClickMarker: o[2] || (o[2] = ({ legend: e }) =>
|
|
837
|
-
},
|
|
850
|
+
legendSet: We.value,
|
|
851
|
+
config: At.value,
|
|
852
|
+
onClickMarker: o[2] || (o[2] = ({ legend: e }) => Ge(e.id))
|
|
853
|
+
}, Je({
|
|
838
854
|
item: _(({ legend: e }) => [
|
|
839
855
|
B("div", {
|
|
840
|
-
style:
|
|
841
|
-
opacity:
|
|
856
|
+
style: F({
|
|
857
|
+
opacity: p.value ? p.value === e.id ? 1 : 0.3 : 1
|
|
842
858
|
}),
|
|
843
859
|
onClick: (l) => e.select()
|
|
844
|
-
},
|
|
860
|
+
}, D(e.name), 13, Ia)
|
|
845
861
|
]),
|
|
846
862
|
_: 2
|
|
847
863
|
}, [
|
|
848
864
|
t.$slots.pattern ? {
|
|
849
865
|
name: "legend-pattern",
|
|
850
866
|
fn: _(({ legend: e, index: l }) => [
|
|
851
|
-
he(
|
|
867
|
+
he(Kt, {
|
|
852
868
|
shape: e.shape,
|
|
853
869
|
radius: 30,
|
|
854
870
|
stroke: "none",
|
|
855
871
|
plot: { x: 30, y: 30 },
|
|
856
|
-
fill: `url(#pattern_${
|
|
872
|
+
fill: `url(#pattern_${S.value}_${l})`
|
|
857
873
|
}, null, 8, ["shape", "fill"])
|
|
858
874
|
]),
|
|
859
875
|
key: "0"
|
|
860
876
|
} : void 0
|
|
861
877
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
862
|
-
$(t.$slots, "legend", { legend:
|
|
878
|
+
$(t.$slots, "legend", { legend: We.value }, void 0, !0)
|
|
863
879
|
], 512),
|
|
864
880
|
t.$slots.source ? (n(), i("div", {
|
|
865
881
|
key: 7,
|
|
@@ -869,26 +885,26 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
869
885
|
}, [
|
|
870
886
|
$(t.$slots, "source", {}, void 0, !0)
|
|
871
887
|
], 512)) : v("", !0),
|
|
872
|
-
x.value !== a.value.initialRotation ? (n(), i("div",
|
|
888
|
+
x.value !== a.value.initialRotation ? (n(), i("div", Aa, [
|
|
873
889
|
$(t.$slots, "reset-action", { reset: Ye }, () => [
|
|
874
890
|
B("button", {
|
|
875
891
|
"data-cy-reset": "",
|
|
876
892
|
tabindex: "0",
|
|
877
893
|
role: "button",
|
|
878
894
|
class: "vue-data-ui-refresh-button",
|
|
879
|
-
style:
|
|
895
|
+
style: F({
|
|
880
896
|
background: a.value.style.chart.backgroundColor
|
|
881
897
|
}),
|
|
882
898
|
onClick: Ye
|
|
883
899
|
}, [
|
|
884
|
-
he(d(
|
|
900
|
+
he(d(nt), {
|
|
885
901
|
name: "refresh",
|
|
886
902
|
stroke: a.value.style.chart.color
|
|
887
903
|
}, null, 8, ["stroke"])
|
|
888
904
|
], 4)
|
|
889
905
|
], !0)
|
|
890
906
|
])) : v("", !0),
|
|
891
|
-
L.value ? (n(),
|
|
907
|
+
L.value ? (n(), G(d(st), {
|
|
892
908
|
key: 9,
|
|
893
909
|
hideDetails: "",
|
|
894
910
|
config: {
|
|
@@ -905,7 +921,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
905
921
|
}
|
|
906
922
|
}, {
|
|
907
923
|
content: _(() => [
|
|
908
|
-
(n(),
|
|
924
|
+
(n(), G(d(rt), {
|
|
909
925
|
key: `table_${we.value}`,
|
|
910
926
|
colNames: ne.value.colNames,
|
|
911
927
|
head: ne.value.head,
|
|
@@ -915,19 +931,19 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
915
931
|
onClose: o[3] || (o[3] = (e) => Z.value.showTable = !1)
|
|
916
932
|
}, {
|
|
917
933
|
th: _(({ th: e }) => [
|
|
918
|
-
Ot(
|
|
934
|
+
Ot(D(e.name), 1)
|
|
919
935
|
]),
|
|
920
936
|
td: _(({ td: e }) => [
|
|
921
|
-
B("div",
|
|
937
|
+
B("div", Pa, D(e.name ? e.name : Xe(e)), 1)
|
|
922
938
|
]),
|
|
923
939
|
_: 1
|
|
924
940
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
925
941
|
]),
|
|
926
942
|
_: 1
|
|
927
943
|
}, 8, ["config"])) : v("", !0)
|
|
928
|
-
], 46,
|
|
944
|
+
], 46, aa));
|
|
929
945
|
}
|
|
930
|
-
},
|
|
946
|
+
}, Da = /* @__PURE__ */ ta(_a, [["__scopeId", "data-v-94fd68af"]]);
|
|
931
947
|
export {
|
|
932
|
-
|
|
948
|
+
Da as default
|
|
933
949
|
};
|