vue-data-ui 2.12.6 → 2.12.7-beta.1
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/dist/{Arrow-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
- package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
- package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
- package/dist/PackageVersion-DaWGaZxE.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-B6kIkp2s.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
- package/dist/SparkTooltip-DcdMxgqn.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
- package/dist/Tooltip-B07vY6jm.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-CZztHZIm.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-C8URL2IU.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
- package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
- package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
- package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
- package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
- package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
- package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
- package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
- package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
- package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
- package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
- package/dist/vue-ui-xy-canvas-C7Pu9RFN.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,28 +1,22 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import { _ as Ft } from "./PackageVersion-BjrblLPQ.js";
|
|
8
|
-
import { _ as Xt } from "./PenAndPaper-BkP3J-Ft.js";
|
|
9
|
-
import Rt from "./BaseIcon-CNbwMh_-.js";
|
|
10
|
-
import { u as jt, U as Dt } from "./usePrinter-C5bLp34h.js";
|
|
11
|
-
import { L as Ut } from "./Legend-BxtDQCIv.js";
|
|
12
|
-
import { _ as Yt } from "./Shape-C69a0f29.js";
|
|
13
|
-
import { D as Gt } from "./DataTable-Rajdtaf6.js";
|
|
14
|
-
import Vt from "./vue-ui-accordion-BUz4JIIX.js";
|
|
15
|
-
import Wt from "./vue-ui-skeleton-B_YI7Yuc.js";
|
|
1
|
+
import { useCssVars as Pt, defineAsyncComponent as Y, ref as h, shallowRef as qe, computed as C, watch as _t, onMounted as He, onBeforeUnmount as Qe, createElementBlock as i, openBlock as n, unref as d, normalizeStyle as E, normalizeClass as z, createBlock as G, createCommentVNode as v, renderSlot as $, createElementVNode as B, createSlots as Ze, withCtx as _, normalizeProps as re, guardReactiveProps as ue, withModifiers as Je, createVNode as he, Fragment as F, renderList as U, mergeProps as Tt, toDisplayString as j, createTextVNode as St, nextTick as Ot } from "vue";
|
|
2
|
+
import { u as Bt, c as fe, t as Lt, p as ie, a as Nt, o as Et, e as Ke, g as zt, b as Ft, d as Rt, X as Xt, G as jt, f as ge, q as Dt, r as Vt, i as Yt } from "./index-BHEd2dgu.js";
|
|
3
|
+
import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
4
|
+
import { u as et } from "./useNestedProp-CZztHZIm.js";
|
|
5
|
+
import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
|
+
import { u as Wt } from "./usePrinter-C8URL2IU.js";
|
|
16
7
|
import { t as qt, u as Ht } from "./useResponsive-JZ9xq-JV.js";
|
|
17
|
-
import
|
|
18
|
-
|
|
8
|
+
import Qt from "./Legend-DtTYopxf.js";
|
|
9
|
+
import Zt from "./Title-Bc66VstS.js";
|
|
10
|
+
import Jt from "./Shape-B6kIkp2s.js";
|
|
11
|
+
import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "height"], oa = { key: 1 }, la = ["id", "d"], sa = { key: 2 }, na = ["transform"], ra = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], ua = ["d", "fill", "stroke", "stroke-width"], ia = ["d", "fill"], ca = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], da = ["d", "fill", "stroke", "stroke-width"], va = ["d", "fill", "stroke", "stroke-width"], ha = ["d", "fill", "stroke", "stroke-width"], fa = { key: 0 }, ga = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ba = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], pa = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ma = ["transform", "fill", "text-anchor", "font-size", "font-weight"], ya = { key: 1 }, ka = ["font-size", "font-weight", "fill"], $a = ["href"], wa = ["transform", "text-anchor", "font-size", "font-weight", "fill"], Ca = {
|
|
19
13
|
key: 5,
|
|
20
14
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
15
|
+
}, Ma = ["onClick"], xa = {
|
|
22
16
|
key: 8,
|
|
23
17
|
"data-dom-to-png-ignore": "",
|
|
24
18
|
class: "reset-wrapper"
|
|
25
|
-
},
|
|
19
|
+
}, Aa = { style: { "text-align": "right", width: "100%" } }, Ia = {
|
|
26
20
|
__name: "vue-ui-chord",
|
|
27
21
|
props: {
|
|
28
22
|
dataset: {
|
|
@@ -39,68 +33,68 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "height"], ea = { k
|
|
|
39
33
|
}
|
|
40
34
|
},
|
|
41
35
|
emits: ["selectLegend", "selectGroup", "selectRibbon"],
|
|
42
|
-
setup(
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
setup(tt, { expose: at, emit: ot }) {
|
|
37
|
+
Pt((t) => ({
|
|
38
|
+
cd4b43ce: t.slicerColor
|
|
45
39
|
}));
|
|
46
|
-
const { vue_ui_chord:
|
|
47
|
-
get: () =>
|
|
40
|
+
const lt = Y(() => import("./vue-ui-accordion-DntThSTF.js")), st = Y(() => import("./BaseIcon-DhWmrDAn.js")), nt = Y(() => import("./DataTable-Y5HbiUZU.js")), rt = Y(() => import("./PackageVersion-DaWGaZxE.js")), ut = Y(() => import("./PenAndPaper-C-CpE0NC.js")), it = Y(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), ct = Y(() => import("./UserOptions-C8X2STEg.js")), { vue_ui_chord: dt } = Bt(), g = tt, te = ot, L = h(!!g.dataset && Object.hasOwn(g.dataset, "matrix")), T = h(fe()), w = h(null), m = h(null), b = h(null), be = h(0), W = h(null), pe = h(null), me = h(null), ye = h(null), ke = h(null), $e = h(0), we = h(0), Ce = h(0), q = h(!1), R = qe(null), H = qe(null), a = C({
|
|
41
|
+
get: () => Te(),
|
|
48
42
|
set: (t) => t
|
|
49
|
-
}), { userOptionsVisible:
|
|
43
|
+
}), { userOptionsVisible: ce, setUserOptionsVisibility: Me, keepUserOptionState: xe } = Gt({ config: a.value }), { svgRef: Q } = Ut({ config: a.value.style.chart.title }), { isPrinting: Ae, isImaging: Ie, generatePdf: Pe, generateImage: _e } = Wt({
|
|
50
44
|
elementId: `chord_${T.value}`,
|
|
51
45
|
fileName: a.value.style.chart.title.text || "vue-ui-chord",
|
|
52
46
|
options: a.value.userOptions.print
|
|
53
|
-
}),
|
|
47
|
+
}), Z = h({
|
|
54
48
|
showTable: a.value.table.show
|
|
55
49
|
});
|
|
56
|
-
function
|
|
57
|
-
const t =
|
|
58
|
-
userConfig:
|
|
59
|
-
defaultConfig:
|
|
50
|
+
function Te() {
|
|
51
|
+
const t = et({
|
|
52
|
+
userConfig: g.config,
|
|
53
|
+
defaultConfig: dt
|
|
60
54
|
});
|
|
61
55
|
return t.theme ? {
|
|
62
|
-
...
|
|
63
|
-
userConfig:
|
|
56
|
+
...et({
|
|
57
|
+
userConfig: Nt.vue_ui_chord[t.theme] || g.config,
|
|
64
58
|
defaultConfig: t
|
|
65
59
|
}),
|
|
66
|
-
customPalette:
|
|
60
|
+
customPalette: Lt[t.theme] || ie
|
|
67
61
|
} : t;
|
|
68
62
|
}
|
|
69
|
-
|
|
70
|
-
a.value =
|
|
63
|
+
_t(() => g.config, (t) => {
|
|
64
|
+
a.value = Te(), ce.value = !a.value.userOptions.showOnChartHover, Se(), $e.value += 1, we.value += 1, Ce.value += 1, x.value = a.value.initialRotation, Z.value.showTable = a.value.table.show;
|
|
71
65
|
}, { deep: !0 });
|
|
72
|
-
function
|
|
73
|
-
if (
|
|
66
|
+
function Se() {
|
|
67
|
+
if (Et(g.dataset) ? Ke({
|
|
74
68
|
componentName: "VueUiChord",
|
|
75
69
|
type: "dataset"
|
|
76
|
-
}) :
|
|
77
|
-
datasetObject:
|
|
70
|
+
}) : zt({
|
|
71
|
+
datasetObject: g.dataset,
|
|
78
72
|
requiredAttributes: ["matrix"]
|
|
79
73
|
}).forEach((t) => {
|
|
80
|
-
L.value = !1,
|
|
74
|
+
L.value = !1, Ke({
|
|
81
75
|
componentName: "VueUiChord",
|
|
82
76
|
type: "datasetAttribute",
|
|
83
77
|
property: t
|
|
84
78
|
});
|
|
85
|
-
}), L.value &&
|
|
86
|
-
const t =
|
|
87
|
-
const { width:
|
|
88
|
-
chart:
|
|
89
|
-
title: a.value.style.chart.title.text ?
|
|
90
|
-
legend: a.value.style.chart.legend.show ?
|
|
91
|
-
source:
|
|
92
|
-
noTitle:
|
|
93
|
-
}),
|
|
94
|
-
|
|
95
|
-
}, 100)
|
|
96
|
-
|
|
79
|
+
}), L.value && Oe(), a.value.responsive) {
|
|
80
|
+
const t = qt(() => {
|
|
81
|
+
const { width: o, height: e, heightNoTitle: l, heightSource: u, heightTitle: s, heightLegend: r } = Ht({
|
|
82
|
+
chart: W.value,
|
|
83
|
+
title: a.value.style.chart.title.text ? pe.value : null,
|
|
84
|
+
legend: a.value.style.chart.legend.show ? me.value : null,
|
|
85
|
+
source: ye.value,
|
|
86
|
+
noTitle: ke.value
|
|
87
|
+
}), f = s + r + u + l;
|
|
88
|
+
o < e ? W.value.style.width = "100%" : (W.value.style.height = "100%", Q.value.style.height = `calc(100% - ${f}px)`);
|
|
89
|
+
}, 100);
|
|
90
|
+
R.value && (H.value && R.value.unobserve(H.value), R.value.disconnect()), R.value = new ResizeObserver(t), H.value = W.value.parentNode, R.value.observe(H.value), t();
|
|
97
91
|
}
|
|
98
|
-
|
|
99
|
-
|
|
92
|
+
Be.value = setTimeout(() => {
|
|
93
|
+
q.value = !0;
|
|
100
94
|
}, 500);
|
|
101
95
|
}
|
|
102
|
-
function
|
|
103
|
-
if (!
|
|
96
|
+
function Oe() {
|
|
97
|
+
if (!g.dataset || !Object.hasOwn(g.dataset, "matrix") || g.dataset.matrix.length < 2) {
|
|
104
98
|
console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
|
|
105
99
|
|
|
106
100
|
matrix:[
|
|
@@ -109,99 +103,99 @@ matrix:[
|
|
|
109
103
|
]`), L.value = !1;
|
|
110
104
|
return;
|
|
111
105
|
}
|
|
112
|
-
|
|
113
|
-
t.length !==
|
|
106
|
+
g.dataset.matrix.forEach((t, o) => {
|
|
107
|
+
t.length !== g.dataset.matrix.length && (console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${o} has ${t.length} elements instead of the required ${g.dataset.matrix.length}
|
|
114
108
|
|
|
115
|
-
dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should have the same length as the matrix itself (${
|
|
109
|
+
dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should have the same length as the matrix itself (${g.dataset.matrix.length})`), L.value = !1);
|
|
116
110
|
});
|
|
117
111
|
}
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
|
|
112
|
+
const Be = h(null);
|
|
113
|
+
He(() => {
|
|
114
|
+
Se();
|
|
121
115
|
});
|
|
122
|
-
const S =
|
|
116
|
+
const S = h({
|
|
123
117
|
height: 600,
|
|
124
118
|
width: 600
|
|
125
|
-
}),
|
|
119
|
+
}), vt = C(() => a.value.userOptions.show && !a.value.style.chart.title.text), ht = C(() => Ft(a.value.customPalette)), p = C(() => ({
|
|
126
120
|
inner: S.value.width * 0.3 * a.value.style.chart.arcs.innerRadiusRatio,
|
|
127
121
|
outer: S.value.width * 0.34 * a.value.style.chart.arcs.outerRadiusRatio
|
|
128
|
-
})),
|
|
129
|
-
matrix:
|
|
130
|
-
labels:
|
|
131
|
-
colors:
|
|
122
|
+
})), ft = C(() => a.value.style.chart.arcs.padAngle / 100), y = C(() => L.value ? {
|
|
123
|
+
matrix: g.dataset.matrix ?? [[0]],
|
|
124
|
+
labels: g.dataset.labels ?? [""],
|
|
125
|
+
colors: g.dataset.colors && Array.isArray(g.dataset.colors) && g.dataset.colors.length ? g.dataset.colors.map((t) => Rt(t)) : g.dataset.matrix.map((t, o) => ht.value[o] || ie[o] || ie[o % ie.length])
|
|
132
126
|
} : {
|
|
133
127
|
matrix: [],
|
|
134
128
|
labels: [],
|
|
135
129
|
colors: []
|
|
136
130
|
});
|
|
137
|
-
function
|
|
131
|
+
function gt(t, o) {
|
|
138
132
|
const e = t.length, l = p.value.inner, u = new Array(e).fill(0);
|
|
139
133
|
let s = 0;
|
|
140
134
|
for (let c = 0; c < e; c += 1)
|
|
141
135
|
for (let k = 0; k < e; k += 1)
|
|
142
136
|
u[c] += t[c][k], s += t[c][k];
|
|
143
|
-
const
|
|
144
|
-
let
|
|
137
|
+
const r = (2 * Math.PI - o * e) / s, f = [];
|
|
138
|
+
let A = 0;
|
|
145
139
|
for (let c = 0; c < e; c += 1) {
|
|
146
|
-
const k =
|
|
147
|
-
|
|
140
|
+
const k = A, P = k + u[c] * r;
|
|
141
|
+
f.push({
|
|
148
142
|
index: c,
|
|
149
143
|
pattern: `pattern_${T.value}_${c}`,
|
|
150
144
|
startAngle: k,
|
|
151
|
-
endAngle:
|
|
145
|
+
endAngle: P,
|
|
152
146
|
name: y.value.labels[c],
|
|
153
|
-
id:
|
|
147
|
+
id: fe(),
|
|
154
148
|
color: y.value.colors[c],
|
|
155
149
|
proportion: u[c] / s
|
|
156
|
-
}),
|
|
150
|
+
}), A = P + o;
|
|
157
151
|
}
|
|
158
|
-
const
|
|
152
|
+
const I = [];
|
|
159
153
|
for (let c = 0; c < e; c += 1) {
|
|
160
154
|
const k = t[c].map((O, X) => ({ j: X, v: O }));
|
|
161
155
|
k.sort((O, X) => X.v - O.v);
|
|
162
|
-
let
|
|
156
|
+
let P = f[c].startAngle;
|
|
163
157
|
for (const { j: O, v: X } of k) {
|
|
164
|
-
const
|
|
165
|
-
|
|
158
|
+
const V = P, ee = V + X * r;
|
|
159
|
+
I.push({
|
|
166
160
|
index: c,
|
|
167
161
|
subIndex: O,
|
|
168
162
|
pattern: `pattern_${T.value}_${c}`,
|
|
169
|
-
startAngle:
|
|
170
|
-
endAngle:
|
|
163
|
+
startAngle: V,
|
|
164
|
+
endAngle: ee,
|
|
171
165
|
value: X,
|
|
172
166
|
groupName: y.value.labels[c],
|
|
173
|
-
groupId:
|
|
167
|
+
groupId: f[c].id,
|
|
174
168
|
groupColor: y.value.colors[c],
|
|
175
|
-
midAngle: (
|
|
176
|
-
midBaseX: Math.cos((
|
|
177
|
-
midBaseY: Math.sin((
|
|
178
|
-
}),
|
|
169
|
+
midAngle: (V + ee) / 2,
|
|
170
|
+
midBaseX: Math.cos((V + ee) / 2 - Math.PI / 2) * l,
|
|
171
|
+
midBaseY: Math.sin((V + ee) / 2 - Math.PI / 2) * l
|
|
172
|
+
}), P = ee;
|
|
179
173
|
}
|
|
180
174
|
}
|
|
181
175
|
const N = [];
|
|
182
|
-
for (const c of
|
|
183
|
-
const k =
|
|
184
|
-
(
|
|
176
|
+
for (const c of I) {
|
|
177
|
+
const k = I.find(
|
|
178
|
+
(P) => P.index === c.subIndex && P.subIndex === c.index
|
|
185
179
|
);
|
|
186
|
-
N.push({ source: c, target: k, id:
|
|
180
|
+
N.push({ source: c, target: k, id: fe() });
|
|
187
181
|
}
|
|
188
|
-
return { groups:
|
|
182
|
+
return { groups: f, chords: N };
|
|
189
183
|
}
|
|
190
|
-
const
|
|
191
|
-
const t =
|
|
192
|
-
return
|
|
184
|
+
const M = C(() => {
|
|
185
|
+
const t = gt(y.value.matrix, ft.value);
|
|
186
|
+
return Oe(), t.chords.sort(
|
|
193
187
|
(o, e) => Math.max(e.source.value, e.target.value) - Math.max(o.source.value, o.target.value)
|
|
194
188
|
), t;
|
|
195
|
-
}),
|
|
189
|
+
}), bt = C(() => {
|
|
196
190
|
const t = p.value.outer + a.value.style.chart.ribbons.labels.offset + 12, e = a.value.style.chart.ribbons.labels.fontSize * 0.6, l = [];
|
|
197
191
|
if (m.value) {
|
|
198
192
|
const s = m.value;
|
|
199
193
|
if (s.source.value) {
|
|
200
|
-
const
|
|
194
|
+
const r = String(s.source.value);
|
|
201
195
|
l.push({
|
|
202
196
|
id: s.id + "-src",
|
|
203
197
|
theta: s.source.midAngle,
|
|
204
|
-
w:
|
|
198
|
+
w: r.length * e / t,
|
|
205
199
|
midBaseX: s.source.midBaseX,
|
|
206
200
|
midBaseY: s.source.midBaseY,
|
|
207
201
|
groupColor: s.source.groupColor,
|
|
@@ -209,11 +203,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
209
203
|
});
|
|
210
204
|
}
|
|
211
205
|
if (s.target && s.target.value && s.target.value !== s.source.value) {
|
|
212
|
-
const
|
|
206
|
+
const r = String(s.target.value);
|
|
213
207
|
l.push({
|
|
214
208
|
id: s.id + "-tgt",
|
|
215
209
|
theta: s.target.midAngle,
|
|
216
|
-
w:
|
|
210
|
+
w: r.length * e / t,
|
|
217
211
|
midBaseX: s.target.midBaseX,
|
|
218
212
|
midBaseY: s.target.midBaseY,
|
|
219
213
|
groupColor: s.target.groupColor,
|
|
@@ -223,97 +217,97 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
223
217
|
return l;
|
|
224
218
|
}
|
|
225
219
|
function u(s) {
|
|
226
|
-
|
|
220
|
+
M.value.chords.filter((r) => r.source.groupId === s && r.source.value).forEach((r) => {
|
|
227
221
|
{
|
|
228
|
-
const
|
|
222
|
+
const f = String(r.source.value);
|
|
229
223
|
l.push({
|
|
230
|
-
id:
|
|
231
|
-
theta:
|
|
232
|
-
w:
|
|
233
|
-
midBaseX:
|
|
234
|
-
midBaseY:
|
|
235
|
-
groupColor:
|
|
236
|
-
value:
|
|
224
|
+
id: r.id + "-src",
|
|
225
|
+
theta: r.source.midAngle,
|
|
226
|
+
w: f.length * e / t,
|
|
227
|
+
midBaseX: r.source.midBaseX,
|
|
228
|
+
midBaseY: r.source.midBaseY,
|
|
229
|
+
groupColor: r.source.groupColor,
|
|
230
|
+
value: r.source.value
|
|
237
231
|
});
|
|
238
232
|
}
|
|
239
|
-
if (
|
|
240
|
-
const
|
|
233
|
+
if (r.target && r.target.value && r.target.value !== r.source.value) {
|
|
234
|
+
const f = String(r.target.value);
|
|
241
235
|
l.push({
|
|
242
|
-
id:
|
|
243
|
-
theta:
|
|
244
|
-
w:
|
|
245
|
-
midBaseX:
|
|
246
|
-
midBaseY:
|
|
247
|
-
groupColor:
|
|
248
|
-
value:
|
|
236
|
+
id: r.id + "-tgt",
|
|
237
|
+
theta: r.target.midAngle,
|
|
238
|
+
w: f.length * e / t,
|
|
239
|
+
midBaseX: r.target.midBaseX,
|
|
240
|
+
midBaseY: r.target.midBaseY,
|
|
241
|
+
groupColor: r.target.groupColor,
|
|
242
|
+
value: r.target.value
|
|
249
243
|
});
|
|
250
244
|
}
|
|
251
245
|
});
|
|
252
246
|
}
|
|
253
|
-
return
|
|
254
|
-
}),
|
|
255
|
-
const t =
|
|
247
|
+
return b.value && u(b.value), w.value && u(w.value.id), l;
|
|
248
|
+
}), pt = C(() => {
|
|
249
|
+
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;
|
|
256
250
|
let e = !0, l = 0;
|
|
257
251
|
for (; e && l++ < 10; ) {
|
|
258
252
|
e = !1;
|
|
259
|
-
for (let
|
|
260
|
-
const
|
|
261
|
-
|
|
253
|
+
for (let f = 1; f < t.length; f += 1) {
|
|
254
|
+
const A = t[f - 1], I = t[f], N = A.theta + A.w + o;
|
|
255
|
+
I.theta < N && (I.theta = N, e = !0);
|
|
262
256
|
}
|
|
263
|
-
const u = t[0], s = t[t.length - 1],
|
|
264
|
-
u.theta <
|
|
257
|
+
const u = t[0], s = t[t.length - 1], r = s.theta + s.w + o - 2 * Math.PI;
|
|
258
|
+
u.theta < r && (u.theta = r, e = !0);
|
|
265
259
|
}
|
|
266
260
|
return t;
|
|
267
261
|
});
|
|
268
|
-
function
|
|
269
|
-
const u = t - Math.PI / 2, s = o - Math.PI / 2,
|
|
270
|
-
return `M${
|
|
262
|
+
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, A = Math.cos(s) * e, I = 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;
|
|
264
|
+
return `M${r},${f} A${e},${e} 0 ${O} 1 ${A},${I} L${N},${c} A${l},${l} 0 ${O} 0 ${k},${P} Z`;
|
|
271
265
|
}
|
|
272
|
-
function
|
|
273
|
-
const e = p.value.inner, l = t.startAngle - Math.PI / 2, u = t.endAngle - Math.PI / 2, s = o.startAngle - Math.PI / 2,
|
|
274
|
-
return `M${
|
|
266
|
+
function ae(t, o) {
|
|
267
|
+
const e = p.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, A = Math.sin(l) * e, I = 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, X = t.endAngle - t.startAngle > Math.PI ? 1 : 0, V = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
|
|
268
|
+
return `M${f},${A}A${e},${e} 0 ${X} 1 ${I},${N}Q0,0 ${c},${k}A${e},${e} 0 ${V} 1 ${P},${O}Q0,0 ${f},${A}Z`;
|
|
275
269
|
}
|
|
276
|
-
const
|
|
277
|
-
function
|
|
270
|
+
const Ne = C(() => x.value * Math.PI / 180);
|
|
271
|
+
function mt(t) {
|
|
278
272
|
return (t.startAngle + t.endAngle) / 2;
|
|
279
273
|
}
|
|
280
|
-
function
|
|
281
|
-
return ((
|
|
274
|
+
function yt(t) {
|
|
275
|
+
return ((mt(t) + Ne.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
|
|
282
276
|
}
|
|
283
|
-
function
|
|
284
|
-
let o = t +
|
|
277
|
+
function kt(t) {
|
|
278
|
+
let o = t + Ne.value;
|
|
285
279
|
return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
|
|
286
280
|
}
|
|
287
|
-
function
|
|
281
|
+
function $t(t) {
|
|
288
282
|
const o = t - Math.PI / 2, e = Math.cos(o) * (p.value.outer + a.value.style.chart.arcs.labels.offset + 24), l = Math.sin(o) * (p.value.outer + a.value.style.chart.arcs.labels.offset + 24);
|
|
289
283
|
return `translate(${e},${l})`;
|
|
290
284
|
}
|
|
291
|
-
function
|
|
292
|
-
const l = t - Math.PI / 2, u = o - Math.PI / 2, s = Math.cos(l) * e,
|
|
293
|
-
return `M${s},${
|
|
285
|
+
function wt(t, o, e) {
|
|
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, A = Math.sin(u) * e, I = o - t > Math.PI ? 1 : 0;
|
|
287
|
+
return `M${s},${r} A${e},${e} 0 ${I} 1 ${f},${A}`;
|
|
294
288
|
}
|
|
295
|
-
const
|
|
296
|
-
let
|
|
297
|
-
function
|
|
298
|
-
const o =
|
|
289
|
+
const x = h(a.value.initialRotation), J = h(!1);
|
|
290
|
+
let Ee = 0, ze = 0;
|
|
291
|
+
function Fe(t) {
|
|
292
|
+
const o = Q.value.getBoundingClientRect(), e = o.left + o.width / 2, l = o.top + o.height / 2, u = t.clientX ?? t.touches[0].clientX, s = t.clientY ?? t.touches[0].clientY;
|
|
299
293
|
return Math.atan2(s - l, u - e);
|
|
300
294
|
}
|
|
301
|
-
function
|
|
302
|
-
!a.value.enableRotation ||
|
|
295
|
+
function Re(t) {
|
|
296
|
+
!a.value.enableRotation || K.value || (t.preventDefault(), J.value = !0, Ee = x.value, ze = Fe(t));
|
|
303
297
|
}
|
|
304
|
-
function
|
|
305
|
-
if (!
|
|
306
|
-
const o =
|
|
307
|
-
|
|
298
|
+
function oe(t) {
|
|
299
|
+
if (!J.value) return;
|
|
300
|
+
const o = Fe(t);
|
|
301
|
+
x.value = Ee + (o - ze) * 180 / Math.PI;
|
|
308
302
|
}
|
|
309
|
-
function
|
|
310
|
-
|
|
303
|
+
function le() {
|
|
304
|
+
J.value = !1;
|
|
311
305
|
}
|
|
312
|
-
function
|
|
313
|
-
return
|
|
306
|
+
function Xe(t) {
|
|
307
|
+
return Yt(
|
|
314
308
|
a.value.style.chart.ribbons.labels.formatter,
|
|
315
309
|
t,
|
|
316
|
-
|
|
310
|
+
ge({
|
|
317
311
|
p: a.value.style.chart.ribbons.labels.prefix,
|
|
318
312
|
v: t,
|
|
319
313
|
s: a.value.style.chart.ribbons.labels.suffix,
|
|
@@ -321,80 +315,78 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
321
315
|
})
|
|
322
316
|
);
|
|
323
317
|
}
|
|
324
|
-
|
|
325
|
-
window.addEventListener("mousemove",
|
|
326
|
-
}),
|
|
327
|
-
window.removeEventListener("mousemove",
|
|
318
|
+
He(() => {
|
|
319
|
+
window.addEventListener("mousemove", oe), window.addEventListener("mouseup", le), window.addEventListener("touchmove", oe, { passive: !1 }), window.addEventListener("touchend", le);
|
|
320
|
+
}), Qe(() => {
|
|
321
|
+
window.removeEventListener("mousemove", oe), window.removeEventListener("mouseup", le), window.removeEventListener("touchmove", oe), window.removeEventListener("touchend", le), clearTimeout(Be.value), R.value && (H.value && R.value.unobserve(H.value), R.value.disconnect());
|
|
328
322
|
});
|
|
329
|
-
const
|
|
330
|
-
function
|
|
331
|
-
|
|
323
|
+
const de = h(!1);
|
|
324
|
+
function Ct(t) {
|
|
325
|
+
de.value = t, be.value += 1;
|
|
332
326
|
}
|
|
333
|
-
function
|
|
334
|
-
|
|
327
|
+
function Mt(t) {
|
|
328
|
+
b.value || (w.value = t);
|
|
335
329
|
}
|
|
336
|
-
function
|
|
337
|
-
|
|
330
|
+
function xt(t) {
|
|
331
|
+
b.value || (m.value = t);
|
|
338
332
|
}
|
|
339
|
-
function
|
|
340
|
-
|
|
341
|
-
return !g.value && !w.value && !m.value ? 0.8 : (g.value ? g.value === t.source.groupId : w.value ? w.value.id === t.source.groupId : ((l = m.value) == null ? void 0 : l.id) === t.id) ? 1 : 0.1;
|
|
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;
|
|
342
335
|
}
|
|
343
|
-
function
|
|
344
|
-
|
|
345
|
-
return !g.value && !w.value && !m.value || (g.value ? g.value === t.id : w.value ? w.value.id === t.id : [(l = m.value) == null ? void 0 : l.source.groupId, (u = m.value) == null ? void 0 : u.target.groupId].includes(t.id)) ? 1 : 0.3;
|
|
336
|
+
function De(t) {
|
|
337
|
+
return !b.value && !w.value && !m.value || (b.value ? b.value === t.id : w.value ? w.value.id === t.id : [m.value?.source.groupId, m.value?.target.groupId].includes(t.id)) ? 1 : 0.3;
|
|
346
338
|
}
|
|
347
|
-
const
|
|
348
|
-
function
|
|
349
|
-
|
|
339
|
+
const K = h(!1);
|
|
340
|
+
function ve() {
|
|
341
|
+
K.value = !K.value;
|
|
350
342
|
}
|
|
351
|
-
function
|
|
352
|
-
|
|
343
|
+
function Ve() {
|
|
344
|
+
Z.value.showTable = !Z.value.showTable;
|
|
353
345
|
}
|
|
354
|
-
function
|
|
355
|
-
return
|
|
346
|
+
function At() {
|
|
347
|
+
return M.value;
|
|
356
348
|
}
|
|
357
|
-
const
|
|
358
|
-
function
|
|
349
|
+
const D = h(null);
|
|
350
|
+
function Ye() {
|
|
359
351
|
const t = a.value.initialRotation;
|
|
360
|
-
|
|
352
|
+
D.value !== null && cancelAnimationFrame(D.value);
|
|
361
353
|
const o = () => {
|
|
362
|
-
|
|
354
|
+
x.value += (t - x.value) * 0.05, Math.abs(x.value - t) < 0.1 ? (x.value = t, D.value = null) : D.value = requestAnimationFrame(o);
|
|
363
355
|
};
|
|
364
|
-
|
|
356
|
+
D.value = requestAnimationFrame(o);
|
|
365
357
|
}
|
|
366
|
-
|
|
367
|
-
|
|
358
|
+
Qe(() => {
|
|
359
|
+
D.value !== null && cancelAnimationFrame(D.value);
|
|
368
360
|
});
|
|
369
|
-
function
|
|
370
|
-
t ===
|
|
361
|
+
function Ge(t) {
|
|
362
|
+
t === b.value ? (b.value = null, te("selectLegend", null)) : (b.value = t, te("selectLegend", M.value.groups.find((o) => o.id === t)));
|
|
371
363
|
}
|
|
372
|
-
const
|
|
364
|
+
const Ue = C(() => M.value.groups.map((t, o) => ({
|
|
373
365
|
name: t.name,
|
|
374
366
|
color: t.color,
|
|
375
367
|
shape: "circle",
|
|
376
368
|
patternIndex: o,
|
|
377
369
|
pattern: `pattern_${T.value}_${o}`,
|
|
378
370
|
id: t.id,
|
|
379
|
-
select: () =>
|
|
380
|
-
opacity:
|
|
381
|
-
}))),
|
|
371
|
+
select: () => Ge(t.id),
|
|
372
|
+
opacity: b.value ? b.value === t.id ? 1 : 0.3 : 1
|
|
373
|
+
}))), It = C(() => ({
|
|
382
374
|
cy: "chord-div-legend",
|
|
383
375
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
384
376
|
color: a.value.style.chart.legend.color,
|
|
385
377
|
fontSize: a.value.style.chart.legend.fontSize,
|
|
386
378
|
paddingBottom: 12,
|
|
387
379
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
388
|
-
})),
|
|
389
|
-
const t =
|
|
380
|
+
})), se = C(() => {
|
|
381
|
+
const t = M.value.groups.map((e, l) => ({
|
|
390
382
|
name: e.name || l,
|
|
391
383
|
color: e.color
|
|
392
384
|
})), o = y.value.matrix;
|
|
393
385
|
return { head: t, body: o };
|
|
394
|
-
}),
|
|
395
|
-
const t = [{ name: "", color: null }, ...
|
|
396
|
-
|
|
397
|
-
...
|
|
386
|
+
}), ne = C(() => {
|
|
387
|
+
const t = [{ name: "", color: null }, ...se.value.head], o = se.value.body.map((u, s) => [
|
|
388
|
+
se.value.head[s],
|
|
389
|
+
...se.value.body[s]
|
|
398
390
|
]), e = {
|
|
399
391
|
th: {
|
|
400
392
|
backgroundColor: a.value.table.th.backgroundColor,
|
|
@@ -415,8 +407,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
415
407
|
config: e
|
|
416
408
|
};
|
|
417
409
|
});
|
|
418
|
-
function
|
|
419
|
-
|
|
410
|
+
function We() {
|
|
411
|
+
Ot(() => {
|
|
420
412
|
const t = y.value.matrix.map((l, u) => [
|
|
421
413
|
[y.value.labels[u] || u],
|
|
422
414
|
l
|
|
@@ -427,54 +419,54 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
427
419
|
[""],
|
|
428
420
|
...y.value.labels.map((l, u) => [l || u])
|
|
429
421
|
]
|
|
430
|
-
].concat(t), e =
|
|
431
|
-
|
|
422
|
+
].concat(t), e = Dt(o);
|
|
423
|
+
Vt({ csvContent: e, title: a.value.style.chart.title.text || "vue-ui-chord" });
|
|
432
424
|
});
|
|
433
425
|
}
|
|
434
|
-
return
|
|
435
|
-
getData:
|
|
436
|
-
generateCsv:
|
|
437
|
-
generateImage:
|
|
438
|
-
generatePdf:
|
|
439
|
-
toggleAnnotator:
|
|
440
|
-
toggleTable:
|
|
441
|
-
}), (t, o) => (
|
|
426
|
+
return at({
|
|
427
|
+
getData: At,
|
|
428
|
+
generateCsv: We,
|
|
429
|
+
generateImage: _e,
|
|
430
|
+
generatePdf: Pe,
|
|
431
|
+
toggleAnnotator: ve,
|
|
432
|
+
toggleTable: Ve
|
|
433
|
+
}), (t, o) => (n(), i("div", {
|
|
442
434
|
ref_key: "chordChart",
|
|
443
|
-
ref:
|
|
435
|
+
ref: W,
|
|
444
436
|
class: z({
|
|
445
437
|
"vue-ui-chord": !0,
|
|
446
|
-
"vue-data-ui-wrapper-fullscreen":
|
|
438
|
+
"vue-data-ui-wrapper-fullscreen": de.value,
|
|
447
439
|
"vue-data-ui-responsive": a.value.responsive
|
|
448
440
|
}),
|
|
449
441
|
style: E(`font-family:${a.value.style.fontFamily};width:100%; text-align:center;background:${a.value.style.chart.backgroundColor}`),
|
|
450
442
|
id: `chord_${T.value}`,
|
|
451
|
-
onMouseenter: o[4] || (o[4] = () =>
|
|
452
|
-
onMouseleave: o[5] || (o[5] = () =>
|
|
443
|
+
onMouseenter: o[4] || (o[4] = () => d(Me)(!0)),
|
|
444
|
+
onMouseleave: o[5] || (o[5] = () => d(Me)(!1))
|
|
453
445
|
}, [
|
|
454
|
-
a.value.userOptions.buttons.annotator &&
|
|
446
|
+
a.value.userOptions.buttons.annotator && d(Q) ? (n(), G(d(ut), {
|
|
455
447
|
key: 0,
|
|
456
448
|
color: a.value.style.chart.color,
|
|
457
449
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
458
|
-
active:
|
|
459
|
-
svgRef:
|
|
460
|
-
onClose:
|
|
450
|
+
active: K.value,
|
|
451
|
+
svgRef: d(Q),
|
|
452
|
+
onClose: ve
|
|
461
453
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
462
454
|
$(t.$slots, "userConfig", {}, void 0, !0),
|
|
463
|
-
|
|
455
|
+
vt.value ? (n(), i("div", {
|
|
464
456
|
key: 1,
|
|
465
457
|
ref_key: "noTitle",
|
|
466
|
-
ref:
|
|
458
|
+
ref: ke,
|
|
467
459
|
class: "vue-data-ui-no-title-space",
|
|
468
460
|
style: "height:36px; width: 100%;background:transparent"
|
|
469
461
|
}, null, 512)) : v("", !0),
|
|
470
|
-
a.value.style.chart.title.text ? (
|
|
462
|
+
a.value.style.chart.title.text ? (n(), i("div", {
|
|
471
463
|
key: 2,
|
|
472
464
|
ref_key: "chartTitle",
|
|
473
|
-
ref:
|
|
465
|
+
ref: pe,
|
|
474
466
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
475
467
|
}, [
|
|
476
|
-
(
|
|
477
|
-
key: `title_${
|
|
468
|
+
(n(), G(Zt, {
|
|
469
|
+
key: `title_${$e.value}`,
|
|
478
470
|
config: {
|
|
479
471
|
title: {
|
|
480
472
|
cy: "chord-div-title",
|
|
@@ -487,13 +479,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
487
479
|
}
|
|
488
480
|
}, null, 8, ["config"]))
|
|
489
481
|
], 512)) : v("", !0),
|
|
490
|
-
a.value.userOptions.show && L.value && (
|
|
482
|
+
a.value.userOptions.show && L.value && (d(xe) || d(ce)) ? (n(), G(d(ct), {
|
|
491
483
|
ref: "details",
|
|
492
|
-
key: `user_option_${
|
|
484
|
+
key: `user_option_${be.value}`,
|
|
493
485
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
494
486
|
color: a.value.style.chart.color,
|
|
495
|
-
isPrinting:
|
|
496
|
-
isImaging:
|
|
487
|
+
isPrinting: d(Ae),
|
|
488
|
+
isImaging: d(Ie),
|
|
497
489
|
uid: T.value,
|
|
498
490
|
hasTooltip: !1,
|
|
499
491
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
@@ -502,88 +494,88 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
502
494
|
hasTable: a.value.userOptions.buttons.table,
|
|
503
495
|
hasLabel: !1,
|
|
504
496
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
505
|
-
isFullscreen:
|
|
506
|
-
chartElement:
|
|
497
|
+
isFullscreen: de.value,
|
|
498
|
+
chartElement: W.value,
|
|
507
499
|
position: a.value.userOptions.position,
|
|
508
500
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
509
501
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
510
|
-
isAnnotation:
|
|
511
|
-
onToggleFullscreen:
|
|
512
|
-
onGeneratePdf:
|
|
513
|
-
onGenerateCsv:
|
|
514
|
-
onGenerateImage:
|
|
515
|
-
onToggleTable:
|
|
516
|
-
onToggleAnnotator:
|
|
502
|
+
isAnnotation: K.value,
|
|
503
|
+
onToggleFullscreen: Ct,
|
|
504
|
+
onGeneratePdf: d(Pe),
|
|
505
|
+
onGenerateCsv: We,
|
|
506
|
+
onGenerateImage: d(_e),
|
|
507
|
+
onToggleTable: Ve,
|
|
508
|
+
onToggleAnnotator: ve,
|
|
517
509
|
style: E({
|
|
518
|
-
visibility:
|
|
510
|
+
visibility: d(xe) ? d(ce) ? "visible" : "hidden" : "visible"
|
|
519
511
|
})
|
|
520
|
-
},
|
|
512
|
+
}, Ze({ _: 2 }, [
|
|
521
513
|
t.$slots.menuIcon ? {
|
|
522
514
|
name: "menuIcon",
|
|
523
|
-
fn:
|
|
524
|
-
$(t.$slots, "menuIcon",
|
|
515
|
+
fn: _(({ isOpen: e, color: l }) => [
|
|
516
|
+
$(t.$slots, "menuIcon", re(ue({ isOpen: e, color: l })), void 0, !0)
|
|
525
517
|
]),
|
|
526
518
|
key: "0"
|
|
527
519
|
} : void 0,
|
|
528
520
|
t.$slots.optionPdf ? {
|
|
529
521
|
name: "optionPdf",
|
|
530
|
-
fn:
|
|
522
|
+
fn: _(() => [
|
|
531
523
|
$(t.$slots, "optionPdf", {}, void 0, !0)
|
|
532
524
|
]),
|
|
533
525
|
key: "1"
|
|
534
526
|
} : void 0,
|
|
535
527
|
t.$slots.optionCsv ? {
|
|
536
528
|
name: "optionCsv",
|
|
537
|
-
fn:
|
|
529
|
+
fn: _(() => [
|
|
538
530
|
$(t.$slots, "optionCsv", {}, void 0, !0)
|
|
539
531
|
]),
|
|
540
532
|
key: "2"
|
|
541
533
|
} : void 0,
|
|
542
534
|
t.$slots.optionImg ? {
|
|
543
535
|
name: "optionImg",
|
|
544
|
-
fn:
|
|
536
|
+
fn: _(() => [
|
|
545
537
|
$(t.$slots, "optionImg", {}, void 0, !0)
|
|
546
538
|
]),
|
|
547
539
|
key: "3"
|
|
548
540
|
} : void 0,
|
|
549
541
|
t.$slots.optionTable ? {
|
|
550
542
|
name: "optionTable",
|
|
551
|
-
fn:
|
|
543
|
+
fn: _(() => [
|
|
552
544
|
$(t.$slots, "optionTable", {}, void 0, !0)
|
|
553
545
|
]),
|
|
554
546
|
key: "4"
|
|
555
547
|
} : void 0,
|
|
556
548
|
t.$slots.optionFullscreen ? {
|
|
557
549
|
name: "optionFullscreen",
|
|
558
|
-
fn:
|
|
559
|
-
$(t.$slots, "optionFullscreen",
|
|
550
|
+
fn: _(({ toggleFullscreen: e, isFullscreen: l }) => [
|
|
551
|
+
$(t.$slots, "optionFullscreen", re(ue({ toggleFullscreen: e, isFullscreen: l })), void 0, !0)
|
|
560
552
|
]),
|
|
561
553
|
key: "5"
|
|
562
554
|
} : void 0,
|
|
563
555
|
t.$slots.optionAnnotator ? {
|
|
564
556
|
name: "optionAnnotator",
|
|
565
|
-
fn:
|
|
566
|
-
$(t.$slots, "optionAnnotator",
|
|
557
|
+
fn: _(({ toggleAnnotator: e, isAnnotator: l }) => [
|
|
558
|
+
$(t.$slots, "optionAnnotator", re(ue({ toggleAnnotator: e, isAnnotator: l })), void 0, !0)
|
|
567
559
|
]),
|
|
568
560
|
key: "6"
|
|
569
561
|
} : void 0
|
|
570
562
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
571
|
-
L.value ? (
|
|
563
|
+
L.value ? (n(), i("svg", {
|
|
572
564
|
key: 4,
|
|
573
|
-
xmlns:
|
|
565
|
+
xmlns: d(Xt),
|
|
574
566
|
ref_key: "svgRef",
|
|
575
|
-
ref:
|
|
567
|
+
ref: Q,
|
|
576
568
|
viewBox: `0 0 ${S.value.width} ${S.value.height}`,
|
|
577
569
|
preserveAspectRatio: "xMidYMid meet",
|
|
578
570
|
style: {
|
|
579
571
|
overflow: "visible"
|
|
580
572
|
},
|
|
581
|
-
class: z({ "vue-ui-chord-rotating":
|
|
582
|
-
onMousedown:
|
|
583
|
-
onTouchstart:
|
|
573
|
+
class: z({ "vue-ui-chord-rotating": J.value, "vue-ui-chord-idle": !J.value }),
|
|
574
|
+
onMousedown: Je(Re, ["prevent"]),
|
|
575
|
+
onTouchstart: Je(Re, ["prevent"])
|
|
584
576
|
}, [
|
|
585
|
-
|
|
586
|
-
t.$slots["chart-background"] ? (
|
|
577
|
+
he(d(rt)),
|
|
578
|
+
t.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
587
579
|
key: 0,
|
|
588
580
|
x: 0,
|
|
589
581
|
y: 0,
|
|
@@ -594,32 +586,32 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
594
586
|
}
|
|
595
587
|
}, [
|
|
596
588
|
$(t.$slots, "chart-background", {}, void 0, !0)
|
|
597
|
-
], 8,
|
|
598
|
-
a.value.style.chart.arcs.labels.curved ? (
|
|
599
|
-
(
|
|
589
|
+
], 8, aa)) : v("", !0),
|
|
590
|
+
a.value.style.chart.arcs.labels.curved ? (n(), i("defs", oa, [
|
|
591
|
+
(n(!0), i(F, null, U(M.value.groups, (e, l) => (n(), i("path", {
|
|
600
592
|
key: `labelPath-${l}`,
|
|
601
593
|
id: `labelPath-${l}_${T.value}`,
|
|
602
|
-
d:
|
|
594
|
+
d: wt(
|
|
603
595
|
e.startAngle,
|
|
604
596
|
e.endAngle,
|
|
605
597
|
(p.value.inner + p.value.outer) / 2 + a.value.style.chart.arcs.labels.offset
|
|
606
598
|
),
|
|
607
599
|
fill: "none"
|
|
608
|
-
}, null, 8,
|
|
600
|
+
}, null, 8, la))), 128))
|
|
609
601
|
])) : v("", !0),
|
|
610
|
-
t.$slots.pattern ? (
|
|
611
|
-
(
|
|
612
|
-
$(t.$slots, "pattern",
|
|
602
|
+
t.$slots.pattern ? (n(), i("g", sa, [
|
|
603
|
+
(n(!0), i(F, null, U(M.value.groups, (e, l) => (n(), i("defs", null, [
|
|
604
|
+
$(t.$slots, "pattern", Tt({ ref_for: !0 }, { seriesIndex: e.index, patternId: `pattern_${T.value}_${l}` }), void 0, !0)
|
|
613
605
|
]))), 256))
|
|
614
606
|
])) : v("", !0),
|
|
615
607
|
B("g", {
|
|
616
|
-
transform: `translate(${S.value.width / 2}, ${S.value.height / 2}) rotate(${
|
|
608
|
+
transform: `translate(${S.value.width / 2}, ${S.value.height / 2}) rotate(${x.value})`
|
|
617
609
|
}, [
|
|
618
|
-
(
|
|
619
|
-
(
|
|
620
|
-
class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !
|
|
610
|
+
(n(!0), i(F, null, U(M.value.groups, (e, l) => (n(), i("g", null, [
|
|
611
|
+
(n(), i("path", {
|
|
612
|
+
class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
|
|
621
613
|
key: `arc-${l}`,
|
|
622
|
-
d:
|
|
614
|
+
d: Le(
|
|
623
615
|
e.startAngle,
|
|
624
616
|
e.endAngle,
|
|
625
617
|
p.value.outer,
|
|
@@ -631,16 +623,16 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
631
623
|
"stroke-linecap": "round",
|
|
632
624
|
"stroke-linejoin": "round",
|
|
633
625
|
style: E({
|
|
634
|
-
opacity:
|
|
626
|
+
opacity: De(e)
|
|
635
627
|
}),
|
|
636
|
-
onMouseenter: () =>
|
|
628
|
+
onMouseenter: () => Mt(e),
|
|
637
629
|
onMouseleave: o[0] || (o[0] = (u) => w.value = null),
|
|
638
|
-
onClick: (u) =>
|
|
639
|
-
}, null, 46,
|
|
640
|
-
t.$slots.pattern ? (
|
|
641
|
-
class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !
|
|
630
|
+
onClick: (u) => te("selectGroup", e)
|
|
631
|
+
}, null, 46, ra)),
|
|
632
|
+
t.$slots.pattern ? (n(), i("path", {
|
|
633
|
+
class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
|
|
642
634
|
key: `arc-${l}`,
|
|
643
|
-
d:
|
|
635
|
+
d: Le(
|
|
644
636
|
e.startAngle,
|
|
645
637
|
e.endAngle,
|
|
646
638
|
p.value.outer,
|
|
@@ -652,59 +644,59 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
652
644
|
"stroke-linecap": "round",
|
|
653
645
|
"stroke-linejoin": "round",
|
|
654
646
|
style: E({
|
|
655
|
-
opacity:
|
|
647
|
+
opacity: De(e),
|
|
656
648
|
pointerEvents: "none"
|
|
657
649
|
})
|
|
658
|
-
}, null, 14,
|
|
650
|
+
}, null, 14, ua)) : v("", !0)
|
|
659
651
|
]))), 256)),
|
|
660
652
|
B("g", null, [
|
|
661
|
-
(
|
|
653
|
+
(n(!0), i(F, null, U(w.value ? M.value.chords.filter((e) => e.source.groupId === w.value.id) : b.value ? M.value.chords.filter((e) => e.source.groupId === b.value) : M.value.chords, (e) => (n(), i(F, {
|
|
662
654
|
key: `ribbon-${e.id}`
|
|
663
655
|
}, [
|
|
664
|
-
e.source.value ? (
|
|
656
|
+
e.source.value ? (n(), i("path", {
|
|
665
657
|
key: 0,
|
|
666
|
-
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !
|
|
667
|
-
d:
|
|
658
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
|
|
659
|
+
d: ae(e.source, e.target),
|
|
668
660
|
fill: a.value.style.chart.backgroundColor,
|
|
669
661
|
style: E({ opacity: a.value.style.chart.ribbons.underlayerOpacity })
|
|
670
|
-
}, null, 14,
|
|
671
|
-
e.source.value ? (
|
|
662
|
+
}, null, 14, ia)) : v("", !0),
|
|
663
|
+
e.source.value ? (n(), i("path", {
|
|
672
664
|
key: 1,
|
|
673
|
-
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !
|
|
674
|
-
d:
|
|
665
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
|
|
666
|
+
d: ae(e.source, e.target),
|
|
675
667
|
fill: y.value.colors[e.source.index],
|
|
676
668
|
stroke: a.value.style.chart.ribbons.stroke,
|
|
677
669
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
678
670
|
"stroke-linecap": "round",
|
|
679
671
|
"stroke-linejoin": "round",
|
|
680
|
-
style: E({ opacity:
|
|
681
|
-
onMouseenter: () =>
|
|
672
|
+
style: E({ opacity: je(e) }),
|
|
673
|
+
onMouseenter: () => xt({
|
|
682
674
|
...e,
|
|
683
|
-
path:
|
|
675
|
+
path: ae(e.source, e.target),
|
|
684
676
|
color: y.value.colors[e.source.index]
|
|
685
677
|
}),
|
|
686
|
-
onClick: (l) =>
|
|
678
|
+
onClick: (l) => te("selectRibbon", {
|
|
687
679
|
...e,
|
|
688
680
|
color: y.value.colors[e.source.index]
|
|
689
681
|
}),
|
|
690
682
|
onMouseleave: o[1] || (o[1] = (l) => m.value = null)
|
|
691
|
-
}, null, 46,
|
|
692
|
-
e.source.value && t.$slots.pattern ? (
|
|
683
|
+
}, null, 46, ca)) : v("", !0),
|
|
684
|
+
e.source.value && t.$slots.pattern ? (n(), i("path", {
|
|
693
685
|
key: 2,
|
|
694
|
-
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !
|
|
695
|
-
d:
|
|
686
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
|
|
687
|
+
d: ae(e.source, e.target),
|
|
696
688
|
fill: `url(#pattern_${T.value}_${e.source.index})`,
|
|
697
689
|
stroke: a.value.style.chart.ribbons.stroke,
|
|
698
690
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
699
691
|
"stroke-linecap": "round",
|
|
700
692
|
"stroke-linejoin": "round",
|
|
701
693
|
style: E({
|
|
702
|
-
opacity:
|
|
694
|
+
opacity: je(e),
|
|
703
695
|
pointerEvents: "none"
|
|
704
696
|
})
|
|
705
|
-
}, null, 14,
|
|
697
|
+
}, null, 14, da)) : v("", !0)
|
|
706
698
|
], 64))), 128)),
|
|
707
|
-
m.value ? (
|
|
699
|
+
m.value ? (n(), i("path", {
|
|
708
700
|
key: 0,
|
|
709
701
|
d: m.value.path,
|
|
710
702
|
fill: m.value.color,
|
|
@@ -716,8 +708,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
716
708
|
style: {
|
|
717
709
|
pointerEvents: "none"
|
|
718
710
|
}
|
|
719
|
-
}, null, 8,
|
|
720
|
-
m.value && t.$slots.pattern ? (
|
|
711
|
+
}, null, 8, va)) : v("", !0),
|
|
712
|
+
m.value && t.$slots.pattern ? (n(), i("path", {
|
|
721
713
|
key: 1,
|
|
722
714
|
d: m.value.path,
|
|
723
715
|
fill: `url(#${m.value.source.pattern})`,
|
|
@@ -729,10 +721,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
729
721
|
style: {
|
|
730
722
|
pointerEvents: "none"
|
|
731
723
|
}
|
|
732
|
-
}, null, 8,
|
|
724
|
+
}, null, 8, ha)) : v("", !0)
|
|
733
725
|
]),
|
|
734
|
-
(w.value || m.value ||
|
|
735
|
-
(
|
|
726
|
+
(w.value || m.value || b.value) && a.value.style.chart.ribbons.labels.show ? (n(), i("g", fa, [
|
|
727
|
+
(n(!0), i(F, null, U(pt.value, (e) => (n(), i(F, {
|
|
736
728
|
key: e.id
|
|
737
729
|
}, [
|
|
738
730
|
B("line", {
|
|
@@ -743,7 +735,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
743
735
|
stroke: a.value.style.chart.backgroundColor,
|
|
744
736
|
"stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
|
|
745
737
|
"pointer-events": "none"
|
|
746
|
-
}, null, 8,
|
|
738
|
+
}, null, 8, ga),
|
|
747
739
|
B("line", {
|
|
748
740
|
x1: e.midBaseX,
|
|
749
741
|
y1: e.midBaseY,
|
|
@@ -752,8 +744,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
752
744
|
stroke: a.value.style.chart.ribbons.labels.connector.stroke,
|
|
753
745
|
"stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth,
|
|
754
746
|
"pointer-events": "none"
|
|
755
|
-
}, null, 8,
|
|
756
|
-
a.value.style.chart.ribbons.labels.marker.show ? (
|
|
747
|
+
}, null, 8, ba),
|
|
748
|
+
a.value.style.chart.ribbons.labels.marker.show ? (n(), i("circle", {
|
|
757
749
|
key: 0,
|
|
758
750
|
cx: Math.cos(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
759
751
|
cy: Math.sin(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
@@ -762,65 +754,65 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
762
754
|
"stroke-width": a.value.style.chart.ribbons.labels.marker.strokeWidth,
|
|
763
755
|
fill: e.groupColor,
|
|
764
756
|
"pointer-events": "none"
|
|
765
|
-
}, null, 8,
|
|
757
|
+
}, null, 8, pa)) : v("", !0),
|
|
766
758
|
B("text", {
|
|
767
759
|
transform: `
|
|
768
760
|
translate(
|
|
769
761
|
${Math.cos(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 24)},
|
|
770
762
|
${Math.sin(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 24)}
|
|
771
|
-
) rotate(${-
|
|
763
|
+
) rotate(${-x.value})
|
|
772
764
|
`,
|
|
773
765
|
fill: a.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : a.value.style.chart.ribbons.labels.color,
|
|
774
|
-
"text-anchor":
|
|
766
|
+
"text-anchor": kt(e.theta),
|
|
775
767
|
"font-size": a.value.style.chart.ribbons.labels.fontSize,
|
|
776
768
|
"font-weight": a.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
|
|
777
769
|
dy: ".35em",
|
|
778
770
|
"pointer-events": "none"
|
|
779
|
-
},
|
|
771
|
+
}, j(Xe(e.value)), 9, ma)
|
|
780
772
|
], 64))), 128))
|
|
781
773
|
])) : v("", !0),
|
|
782
|
-
a.value.style.chart.arcs.labels.show ? (
|
|
783
|
-
a.value.style.chart.arcs.labels.curved ? (
|
|
774
|
+
a.value.style.chart.arcs.labels.show ? (n(), i("g", ya, [
|
|
775
|
+
a.value.style.chart.arcs.labels.curved ? (n(!0), i(F, { key: 0 }, U(M.value.groups, (e, l) => (n(), i("text", {
|
|
784
776
|
key: `curved-label-${l}`,
|
|
785
777
|
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
786
778
|
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
787
|
-
fill: a.value.style.chart.arcs.labels.adaptColorToBackground ?
|
|
779
|
+
fill: a.value.style.chart.arcs.labels.adaptColorToBackground ? d(jt)(y.value.colors[l]) : a.value.style.chart.arcs.labels.color
|
|
788
780
|
}, [
|
|
789
781
|
B("textPath", {
|
|
790
782
|
href: `#labelPath-${l}_${T.value}`,
|
|
791
783
|
startOffset: "50%",
|
|
792
784
|
"text-anchor": "middle"
|
|
793
|
-
},
|
|
785
|
+
}, j(y.value.labels[l]) + j(a.value.style.chart.arcs.labels.showPercentage ? d(ge)({
|
|
794
786
|
p: " (",
|
|
795
787
|
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
796
788
|
s: "%)",
|
|
797
789
|
r: a.value.style.chart.arcs.labels.roundingPercentage
|
|
798
|
-
}) : ""), 9,
|
|
799
|
-
], 8,
|
|
790
|
+
}) : ""), 9, $a)
|
|
791
|
+
], 8, ka))), 128)) : !w.value && !m.value && !b.value ? (n(!0), i(F, { key: 1 }, U(M.value.groups, (e, l) => (n(), i("text", {
|
|
800
792
|
key: `label-${l}`,
|
|
801
793
|
transform: `
|
|
802
|
-
${
|
|
803
|
-
rotate(${-
|
|
794
|
+
${$t((e.startAngle + e.endAngle) / 2)}
|
|
795
|
+
rotate(${-x.value})
|
|
804
796
|
`,
|
|
805
797
|
dy: ".35em",
|
|
806
|
-
"text-anchor":
|
|
798
|
+
"text-anchor": yt(e) > Math.PI ? "end" : "start",
|
|
807
799
|
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
808
800
|
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
809
801
|
fill: a.value.style.chart.arcs.labels.color
|
|
810
|
-
},
|
|
802
|
+
}, j(y.value.labels[l]) + j(a.value.style.chart.arcs.labels.showPercentage ? d(ge)({
|
|
811
803
|
p: " (",
|
|
812
804
|
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
813
805
|
s: "%)",
|
|
814
806
|
r: a.value.style.chart.arcs.labels.roundingPercentage
|
|
815
|
-
}) : ""), 9,
|
|
807
|
+
}) : ""), 9, wa))), 128)) : v("", !0)
|
|
816
808
|
])) : v("", !0)
|
|
817
|
-
], 8,
|
|
809
|
+
], 8, na),
|
|
818
810
|
$(t.$slots, "svg", { svg: { height: 600, width: 600 } }, void 0, !0)
|
|
819
|
-
], 42,
|
|
820
|
-
t.$slots.watermark ? (
|
|
821
|
-
$(t.$slots, "watermark",
|
|
811
|
+
], 42, ta)) : v("", !0),
|
|
812
|
+
t.$slots.watermark ? (n(), i("div", Ca, [
|
|
813
|
+
$(t.$slots, "watermark", re(ue({ isPrinting: d(Ae) || d(Ie) })), void 0, !0)
|
|
822
814
|
])) : v("", !0),
|
|
823
|
-
L.value ? v("", !0) : (
|
|
815
|
+
L.value ? v("", !0) : (n(), G(d(it), {
|
|
824
816
|
key: 6,
|
|
825
817
|
config: {
|
|
826
818
|
type: "chord",
|
|
@@ -834,28 +826,28 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
834
826
|
}, null, 8, ["config"])),
|
|
835
827
|
B("div", {
|
|
836
828
|
ref_key: "chartLegend",
|
|
837
|
-
ref:
|
|
829
|
+
ref: me
|
|
838
830
|
}, [
|
|
839
|
-
a.value.style.chart.legend.show ? (
|
|
840
|
-
key: `legend_${
|
|
841
|
-
legendSet:
|
|
842
|
-
config:
|
|
843
|
-
onClickMarker: o[2] || (o[2] = ({ legend: e }) =>
|
|
844
|
-
},
|
|
845
|
-
item:
|
|
831
|
+
a.value.style.chart.legend.show ? (n(), G(Qt, {
|
|
832
|
+
key: `legend_${Ce.value}`,
|
|
833
|
+
legendSet: Ue.value,
|
|
834
|
+
config: It.value,
|
|
835
|
+
onClickMarker: o[2] || (o[2] = ({ legend: e }) => Ge(e.id))
|
|
836
|
+
}, Ze({
|
|
837
|
+
item: _(({ legend: e }) => [
|
|
846
838
|
B("div", {
|
|
847
839
|
style: E({
|
|
848
|
-
opacity:
|
|
840
|
+
opacity: b.value ? b.value === e.id ? 1 : 0.3 : 1
|
|
849
841
|
}),
|
|
850
842
|
onClick: (l) => e.select()
|
|
851
|
-
},
|
|
843
|
+
}, j(e.name), 13, Ma)
|
|
852
844
|
]),
|
|
853
845
|
_: 2
|
|
854
846
|
}, [
|
|
855
847
|
t.$slots.pattern ? {
|
|
856
848
|
name: "legend-pattern",
|
|
857
|
-
fn:
|
|
858
|
-
|
|
849
|
+
fn: _(({ legend: e, index: l }) => [
|
|
850
|
+
he(Jt, {
|
|
859
851
|
shape: e.shape,
|
|
860
852
|
radius: 30,
|
|
861
853
|
stroke: "none",
|
|
@@ -866,18 +858,18 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
866
858
|
key: "0"
|
|
867
859
|
} : void 0
|
|
868
860
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
869
|
-
$(t.$slots, "legend", { legend:
|
|
861
|
+
$(t.$slots, "legend", { legend: Ue.value }, void 0, !0)
|
|
870
862
|
], 512),
|
|
871
|
-
t.$slots.source ? (
|
|
863
|
+
t.$slots.source ? (n(), i("div", {
|
|
872
864
|
key: 7,
|
|
873
865
|
ref_key: "source",
|
|
874
|
-
ref:
|
|
866
|
+
ref: ye,
|
|
875
867
|
dir: "auto"
|
|
876
868
|
}, [
|
|
877
869
|
$(t.$slots, "source", {}, void 0, !0)
|
|
878
870
|
], 512)) : v("", !0),
|
|
879
|
-
|
|
880
|
-
$(t.$slots, "reset-action", { reset:
|
|
871
|
+
x.value !== a.value.initialRotation ? (n(), i("div", xa, [
|
|
872
|
+
$(t.$slots, "reset-action", { reset: Ye }, () => [
|
|
881
873
|
B("button", {
|
|
882
874
|
"data-cy-reset": "",
|
|
883
875
|
tabindex: "0",
|
|
@@ -886,20 +878,20 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
886
878
|
style: E({
|
|
887
879
|
background: a.value.style.chart.backgroundColor
|
|
888
880
|
}),
|
|
889
|
-
onClick:
|
|
881
|
+
onClick: Ye
|
|
890
882
|
}, [
|
|
891
|
-
|
|
883
|
+
he(d(st), {
|
|
892
884
|
name: "refresh",
|
|
893
885
|
stroke: a.value.style.chart.color
|
|
894
886
|
}, null, 8, ["stroke"])
|
|
895
887
|
], 4)
|
|
896
888
|
], !0)
|
|
897
889
|
])) : v("", !0),
|
|
898
|
-
L.value ? (
|
|
890
|
+
L.value ? (n(), G(d(lt), {
|
|
899
891
|
key: 9,
|
|
900
892
|
hideDetails: "",
|
|
901
893
|
config: {
|
|
902
|
-
open:
|
|
894
|
+
open: Z.value.showTable,
|
|
903
895
|
maxHeight: 1e4,
|
|
904
896
|
body: {
|
|
905
897
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -911,30 +903,30 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
911
903
|
}
|
|
912
904
|
}
|
|
913
905
|
}, {
|
|
914
|
-
content:
|
|
915
|
-
(
|
|
916
|
-
key: `table_${
|
|
917
|
-
colNames:
|
|
918
|
-
head:
|
|
919
|
-
body:
|
|
920
|
-
config:
|
|
906
|
+
content: _(() => [
|
|
907
|
+
(n(), G(d(nt), {
|
|
908
|
+
key: `table_${we.value}`,
|
|
909
|
+
colNames: ne.value.colNames,
|
|
910
|
+
head: ne.value.head,
|
|
911
|
+
body: ne.value.body,
|
|
912
|
+
config: ne.value.config,
|
|
921
913
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
922
|
-
onClose: o[3] || (o[3] = (e) =>
|
|
914
|
+
onClose: o[3] || (o[3] = (e) => Z.value.showTable = !1)
|
|
923
915
|
}, {
|
|
924
|
-
th:
|
|
925
|
-
|
|
916
|
+
th: _(({ th: e }) => [
|
|
917
|
+
St(j(e.name), 1)
|
|
926
918
|
]),
|
|
927
|
-
td:
|
|
928
|
-
B("div",
|
|
919
|
+
td: _(({ td: e }) => [
|
|
920
|
+
B("div", Aa, j(e.name ? e.name : Xe(e)), 1)
|
|
929
921
|
]),
|
|
930
922
|
_: 1
|
|
931
923
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
932
924
|
]),
|
|
933
925
|
_: 1
|
|
934
926
|
}, 8, ["config"])) : v("", !0)
|
|
935
|
-
], 46,
|
|
927
|
+
], 46, ea));
|
|
936
928
|
}
|
|
937
|
-
},
|
|
929
|
+
}, Ra = /* @__PURE__ */ Kt(Ia, [["__scopeId", "data-v-f848c3b0"]]);
|
|
938
930
|
export {
|
|
939
|
-
|
|
931
|
+
Ra as default
|
|
940
932
|
};
|