vue-data-ui 2.16.6 → 2.17.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/README.md +84 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +999 -160
- package/dist/types/vue-data-ui.d.ts +999 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
- package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
- package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
- package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
- package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
- package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
|
@@ -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-CobsZUkv.js";
|
|
3
|
+
import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
4
|
+
import { u as tt } from "./useNestedProp-BwL5wmVa.js";
|
|
5
|
+
import { u as Wt } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
|
+
import { u as qt } from "./usePrinter-DPh6U_Qk.js";
|
|
7
|
+
import { t as Ht, u as Qt } from "./useResponsive-DfdjqQps.js";
|
|
8
|
+
import Zt from "./Legend-3LNqqLDg.js";
|
|
9
|
+
import Jt from "./Title-DpERl1yr.js";
|
|
10
|
+
import { _ as Kt } from "./Shape-C75836Jl.js";
|
|
11
|
+
import ea from "./img-utitT2Gd.js";
|
|
12
|
+
import { _ as ta } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const aa = ["id"], oa = ["xmlns", "viewBox"], la = ["width", "height"], sa = { key: 1 }, na = ["id", "d"], ra = { key: 2 }, ua = ["transform"], ia = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], ca = ["d", "fill", "stroke", "stroke-width"], da = ["d", "fill"], va = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], ha = ["d", "fill", "stroke", "stroke-width"], fa = ["d", "fill", "stroke", "stroke-width"], ga = ["d", "fill", "stroke", "stroke-width"], pa = { key: 0 }, ba = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ma = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ya = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ka = ["transform", "fill", "text-anchor", "font-size", "font-weight"], $a = { key: 1 }, wa = ["font-size", "font-weight", "fill"], Ca = ["href"], Ma = ["transform", "text-anchor", "font-size", "font-weight", "fill"], xa = {
|
|
13
14
|
key: 5,
|
|
14
15
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
16
|
+
}, Ia = ["onClick"], Aa = {
|
|
16
17
|
key: 8,
|
|
17
18
|
"data-dom-to-png-ignore": "",
|
|
18
19
|
class: "reset-wrapper"
|
|
19
|
-
},
|
|
20
|
+
}, Pa = { style: { "text-align": "right", width: "100%" } }, _a = {
|
|
20
21
|
__name: "vue-ui-chord",
|
|
21
22
|
props: {
|
|
22
23
|
dataset: {
|
|
@@ -33,14 +34,14 @@ const ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "height"], oa = { k
|
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
emits: ["selectLegend", "selectGroup", "selectRibbon"],
|
|
36
|
-
setup(
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
setup(at, { expose: ot, emit: lt }) {
|
|
38
|
+
_t((t) => ({
|
|
39
|
+
"14a1e96b": t.slicerColor
|
|
39
40
|
}));
|
|
40
|
-
const
|
|
41
|
+
const st = Y(() => import("./vue-ui-accordion-UewqY6OI.js")), nt = Y(() => import("./BaseIcon-D9Tz8ARD.js")), rt = Y(() => import("./DataTable-Dt-TIOyY.js")), ut = Y(() => import("./PackageVersion-C-4Ee8BQ.js")), it = Y(() => import("./PenAndPaper-Cde-wJ3N.js")), ct = Y(() => import("./vue-ui-skeleton-8s4xts8z.js")), dt = Y(() => import("./UserOptions-DTEJ3UM_.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({
|
|
41
42
|
get: () => Se(),
|
|
42
43
|
set: (t) => t
|
|
43
|
-
}), { userOptionsVisible: ce, setUserOptionsVisibility: Me, keepUserOptionState: xe } =
|
|
44
|
+
}), { userOptionsVisible: ce, setUserOptionsVisibility: Me, keepUserOptionState: xe } = Gt({ config: a.value }), { svgRef: Q } = Wt({ config: a.value.style.chart.title }), { isPrinting: Ie, isImaging: Ae, generatePdf: Pe, generateImage: _e } = qt({
|
|
44
45
|
elementId: `chord_${S.value}`,
|
|
45
46
|
fileName: a.value.style.chart.title.text || "vue-ui-chord",
|
|
46
47
|
options: a.value.userOptions.print
|
|
@@ -48,46 +49,46 @@ const ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "height"], oa = { k
|
|
|
48
49
|
showTable: a.value.table.show
|
|
49
50
|
});
|
|
50
51
|
function Se() {
|
|
51
|
-
const t =
|
|
52
|
+
const t = tt({
|
|
52
53
|
userConfig: g.config,
|
|
53
|
-
defaultConfig:
|
|
54
|
+
defaultConfig: vt
|
|
54
55
|
});
|
|
55
56
|
return t.theme ? {
|
|
56
|
-
...
|
|
57
|
-
userConfig:
|
|
57
|
+
...tt({
|
|
58
|
+
userConfig: Et.vue_ui_chord[t.theme] || g.config,
|
|
58
59
|
defaultConfig: t
|
|
59
60
|
}),
|
|
60
|
-
customPalette:
|
|
61
|
+
customPalette: Nt[t.theme] || ie
|
|
61
62
|
} : t;
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
+
St(() => g.config, (t) => {
|
|
64
65
|
a.value = Se(), ce.value = !a.value.userOptions.showOnChartHover, Te(), $e.value += 1, we.value += 1, Ce.value += 1, x.value = a.value.initialRotation, Z.value.showTable = a.value.table.show;
|
|
65
66
|
}, { deep: !0 });
|
|
66
67
|
function Te() {
|
|
67
|
-
if (
|
|
68
|
+
if (Ft(g.dataset) ? et({
|
|
68
69
|
componentName: "VueUiChord",
|
|
69
70
|
type: "dataset"
|
|
70
|
-
}) :
|
|
71
|
+
}) : zt({
|
|
71
72
|
datasetObject: g.dataset,
|
|
72
73
|
requiredAttributes: ["matrix"]
|
|
73
74
|
}).forEach((t) => {
|
|
74
|
-
L.value = !1,
|
|
75
|
+
L.value = !1, et({
|
|
75
76
|
componentName: "VueUiChord",
|
|
76
77
|
type: "datasetAttribute",
|
|
77
78
|
property: t
|
|
78
79
|
});
|
|
79
80
|
}), L.value && Oe(), a.value.responsive) {
|
|
80
|
-
const t =
|
|
81
|
-
const { width: o, height: e, heightNoTitle: l, heightSource: u, heightTitle: s, heightLegend: r } =
|
|
82
|
-
chart:
|
|
81
|
+
const t = Ht(() => {
|
|
82
|
+
const { width: o, height: e, heightNoTitle: l, heightSource: u, heightTitle: s, heightLegend: r } = Qt({
|
|
83
|
+
chart: N.value,
|
|
83
84
|
title: a.value.style.chart.title.text ? be.value : null,
|
|
84
85
|
legend: a.value.style.chart.legend.show ? me.value : null,
|
|
85
86
|
source: ye.value,
|
|
86
87
|
noTitle: ke.value
|
|
87
88
|
}), f = s + r + u + l;
|
|
88
|
-
o < e ?
|
|
89
|
+
o < e ? 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;
|
|
@@ -110,34 +111,34 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
110
111
|
});
|
|
111
112
|
}
|
|
112
113
|
const Be = h(null);
|
|
113
|
-
|
|
114
|
+
Qe(() => {
|
|
114
115
|
Te();
|
|
115
116
|
});
|
|
116
117
|
const T = h({
|
|
117
118
|
height: 600,
|
|
118
119
|
width: 600
|
|
119
|
-
}),
|
|
120
|
+
}), ht = C(() => a.value.userOptions.show && !a.value.style.chart.title.text), ft = C(() => Rt(a.value.customPalette)), b = C(() => ({
|
|
120
121
|
inner: T.value.width * 0.3 * a.value.style.chart.arcs.innerRadiusRatio,
|
|
121
122
|
outer: T.value.width * 0.34 * a.value.style.chart.arcs.outerRadiusRatio
|
|
122
|
-
})),
|
|
123
|
+
})), gt = C(() => a.value.style.chart.arcs.padAngle / 100), y = C(() => L.value ? {
|
|
123
124
|
matrix: g.dataset.matrix ?? [[0]],
|
|
124
125
|
labels: g.dataset.labels ?? [""],
|
|
125
|
-
colors: g.dataset.colors && Array.isArray(g.dataset.colors) && g.dataset.colors.length ? g.dataset.colors.map((t) =>
|
|
126
|
+
colors: g.dataset.colors && Array.isArray(g.dataset.colors) && g.dataset.colors.length ? g.dataset.colors.map((t) => Xt(t)) : g.dataset.matrix.map((t, o) => ft.value[o] || ie[o] || ie[o % ie.length])
|
|
126
127
|
} : {
|
|
127
128
|
matrix: [],
|
|
128
129
|
labels: [],
|
|
129
130
|
colors: []
|
|
130
131
|
});
|
|
131
|
-
function
|
|
132
|
+
function pt(t, o) {
|
|
132
133
|
const e = t.length, l = b.value.inner, u = new Array(e).fill(0);
|
|
133
134
|
let s = 0;
|
|
134
135
|
for (let c = 0; c < e; c += 1)
|
|
135
136
|
for (let k = 0; k < e; k += 1)
|
|
136
137
|
u[c] += t[c][k], s += t[c][k];
|
|
137
138
|
const r = (2 * Math.PI - o * e) / s, f = [];
|
|
138
|
-
let
|
|
139
|
+
let I = 0;
|
|
139
140
|
for (let c = 0; c < e; c += 1) {
|
|
140
|
-
const k =
|
|
141
|
+
const k = I, P = k + u[c] * r;
|
|
141
142
|
f.push({
|
|
142
143
|
index: c,
|
|
143
144
|
pattern: `pattern_${S.value}_${c}`,
|
|
@@ -147,22 +148,22 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
147
148
|
id: fe(),
|
|
148
149
|
color: y.value.colors[c],
|
|
149
150
|
proportion: u[c] / s
|
|
150
|
-
}),
|
|
151
|
+
}), I = P + o;
|
|
151
152
|
}
|
|
152
|
-
const
|
|
153
|
+
const A = [];
|
|
153
154
|
for (let c = 0; c < e; c += 1) {
|
|
154
|
-
const k = t[c].map((O,
|
|
155
|
-
k.sort((O,
|
|
155
|
+
const k = t[c].map((O, j) => ({ j, v: O }));
|
|
156
|
+
k.sort((O, j) => j.v - O.v);
|
|
156
157
|
let P = f[c].startAngle;
|
|
157
|
-
for (const { j: O, v:
|
|
158
|
-
const V = P, ee = V +
|
|
159
|
-
|
|
158
|
+
for (const { j: O, v: j } of k) {
|
|
159
|
+
const V = P, ee = V + j * r;
|
|
160
|
+
A.push({
|
|
160
161
|
index: c,
|
|
161
162
|
subIndex: O,
|
|
162
163
|
pattern: `pattern_${S.value}_${c}`,
|
|
163
164
|
startAngle: V,
|
|
164
165
|
endAngle: ee,
|
|
165
|
-
value:
|
|
166
|
+
value: j,
|
|
166
167
|
groupName: y.value.labels[c],
|
|
167
168
|
groupId: f[c].id,
|
|
168
169
|
groupColor: y.value.colors[c],
|
|
@@ -172,21 +173,21 @@ 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
|
+
const t = pt(y.value.matrix, gt.value);
|
|
186
187
|
return Oe(), t.chords.sort(
|
|
187
188
|
(o, e) => Math.max(e.source.value, e.target.value) - Math.max(o.source.value, o.target.value)
|
|
188
189
|
), t;
|
|
189
|
-
}),
|
|
190
|
+
}), bt = C(() => {
|
|
190
191
|
const t = b.value.outer + a.value.style.chart.ribbons.labels.offset + 12, e = a.value.style.chart.ribbons.labels.fontSize * 0.6, l = [];
|
|
191
192
|
if (m.value) {
|
|
192
193
|
const s = m.value;
|
|
@@ -245,14 +246,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
245
246
|
});
|
|
246
247
|
}
|
|
247
248
|
return p.value && u(p.value), w.value && u(w.value.id), l;
|
|
248
|
-
}),
|
|
249
|
-
const t =
|
|
249
|
+
}), mt = C(() => {
|
|
250
|
+
const t = bt.value.map((u) => ({ ...u })).sort((u, s) => u.theta - s.theta), o = a.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
|
|
250
251
|
let e = !0, l = 0;
|
|
251
252
|
for (; e && l++ < 10; ) {
|
|
252
253
|
e = !1;
|
|
253
254
|
for (let f = 1; f < t.length; f += 1) {
|
|
254
|
-
const
|
|
255
|
-
|
|
255
|
+
const I = t[f - 1], A = t[f], 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 ${O} 1 ${
|
|
264
|
+
const u = t - Math.PI / 2, s = o - Math.PI / 2, r = Math.cos(u) * e, f = Math.sin(u) * e, I = Math.cos(s) * e, A = Math.sin(s) * e, 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 = b.value.inner, l = t.startAngle - Math.PI / 2, u = t.endAngle - Math.PI / 2, s = o.startAngle - Math.PI / 2, r = o.endAngle - Math.PI / 2, f = Math.cos(l) * e,
|
|
268
|
-
return `M${f},${
|
|
268
|
+
const e = b.value.inner, l = t.startAngle - Math.PI / 2, u = t.endAngle - Math.PI / 2, s = o.startAngle - Math.PI / 2, r = o.endAngle - Math.PI / 2, f = Math.cos(l) * e, I = Math.sin(l) * e, A = Math.cos(u) * e, 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
|
+
function wt(t) {
|
|
282
283
|
const o = t - Math.PI / 2, e = Math.cos(o) * (b.value.outer + a.value.style.chart.arcs.labels.offset + 24), l = Math.sin(o) * (b.value.outer + a.value.style.chart.arcs.labels.offset + 24);
|
|
283
284
|
return `translate(${e},${l})`;
|
|
284
285
|
}
|
|
285
|
-
function
|
|
286
|
-
const l = t - Math.PI / 2, u = o - Math.PI / 2, s = Math.cos(l) * e, r = Math.sin(l) * e, f = Math.cos(u) * e,
|
|
287
|
-
return `M${s},${r} A${e},${e} 0 ${
|
|
286
|
+
function Ct(t, o, e) {
|
|
287
|
+
const l = t - Math.PI / 2, u = o - Math.PI / 2, s = Math.cos(l) * e, r = Math.sin(l) * e, f = Math.cos(u) * e, I = Math.sin(u) * e, A = o - t > Math.PI ? 1 : 0;
|
|
288
|
+
return `M${s},${r} A${e},${e} 0 ${A} 1 ${f},${I}`;
|
|
288
289
|
}
|
|
289
290
|
const x = h(a.value.initialRotation), J = h(!1);
|
|
290
291
|
let Ee = 0, Fe = 0;
|
|
@@ -315,13 +316,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
315
316
|
})
|
|
316
317
|
);
|
|
317
318
|
}
|
|
318
|
-
|
|
319
|
+
Qe(() => {
|
|
319
320
|
window.addEventListener("mousemove", oe), window.addEventListener("mouseup", le), window.addEventListener("touchmove", oe, { passive: !1 }), window.addEventListener("touchend", le);
|
|
320
|
-
}),
|
|
321
|
-
window.removeEventListener("mousemove", oe), window.removeEventListener("mouseup", le), window.removeEventListener("touchmove", oe), window.removeEventListener("touchend", le), clearTimeout(Be.value),
|
|
321
|
+
}), Ze(() => {
|
|
322
|
+
window.removeEventListener("mousemove", oe), window.removeEventListener("mouseup", le), window.removeEventListener("touchmove", oe), window.removeEventListener("touchend", le), clearTimeout(Be.value), X.value && (H.value && X.value.unobserve(H.value), X.value.disconnect());
|
|
322
323
|
});
|
|
323
324
|
const de = h(!1);
|
|
324
|
-
function
|
|
325
|
+
function je(t) {
|
|
325
326
|
de.value = t, pe.value += 1;
|
|
326
327
|
}
|
|
327
328
|
function Mt(t) {
|
|
@@ -330,10 +331,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
330
331
|
function xt(t) {
|
|
331
332
|
p.value || (m.value = t);
|
|
332
333
|
}
|
|
333
|
-
function
|
|
334
|
+
function De(t) {
|
|
334
335
|
return !p.value && !w.value && !m.value ? 0.8 : (p.value ? p.value === t.source.groupId : w.value ? w.value.id === t.source.groupId : m.value?.id === t.id) ? 1 : 0.1;
|
|
335
336
|
}
|
|
336
|
-
function
|
|
337
|
+
function Ue(t) {
|
|
337
338
|
return !p.value && !w.value && !m.value || (p.value ? p.value === t.id : w.value ? w.value.id === t.id : [m.value?.source.groupId, m.value?.target.groupId].includes(t.id)) ? 1 : 0.3;
|
|
338
339
|
}
|
|
339
340
|
const K = h(!1);
|
|
@@ -343,34 +344,34 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
343
344
|
function Ve() {
|
|
344
345
|
Z.value.showTable = !Z.value.showTable;
|
|
345
346
|
}
|
|
346
|
-
function
|
|
347
|
+
function It() {
|
|
347
348
|
return M.value;
|
|
348
349
|
}
|
|
349
|
-
const
|
|
350
|
+
const U = h(null);
|
|
350
351
|
function Ye() {
|
|
351
352
|
const t = a.value.initialRotation;
|
|
352
|
-
|
|
353
|
+
U.value !== null && cancelAnimationFrame(U.value);
|
|
353
354
|
const o = () => {
|
|
354
|
-
x.value += (t - x.value) * 0.05, Math.abs(x.value - t) < 0.1 ? (x.value = t,
|
|
355
|
+
x.value += (t - x.value) * 0.05, Math.abs(x.value - t) < 0.1 ? (x.value = t, U.value = null) : U.value = requestAnimationFrame(o);
|
|
355
356
|
};
|
|
356
|
-
|
|
357
|
+
U.value = requestAnimationFrame(o);
|
|
357
358
|
}
|
|
358
|
-
|
|
359
|
-
|
|
359
|
+
Ze(() => {
|
|
360
|
+
U.value !== null && cancelAnimationFrame(U.value);
|
|
360
361
|
});
|
|
361
|
-
function
|
|
362
|
+
function Ge(t) {
|
|
362
363
|
t === p.value ? (p.value = null, te("selectLegend", null)) : (p.value = t, te("selectLegend", M.value.groups.find((o) => o.id === t)));
|
|
363
364
|
}
|
|
364
|
-
const
|
|
365
|
+
const We = C(() => M.value.groups.map((t, o) => ({
|
|
365
366
|
name: t.name,
|
|
366
367
|
color: t.color,
|
|
367
368
|
shape: "circle",
|
|
368
369
|
patternIndex: o,
|
|
369
370
|
pattern: `pattern_${S.value}_${o}`,
|
|
370
371
|
id: t.id,
|
|
371
|
-
select: () =>
|
|
372
|
+
select: () => Ge(t.id),
|
|
372
373
|
opacity: p.value ? p.value === t.id ? 1 : 0.3 : 1
|
|
373
|
-
}))),
|
|
374
|
+
}))), At = C(() => ({
|
|
374
375
|
cy: "chord-div-legend",
|
|
375
376
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
376
377
|
color: a.value.style.chart.legend.color,
|
|
@@ -407,8 +408,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
407
408
|
config: e
|
|
408
409
|
};
|
|
409
410
|
});
|
|
410
|
-
function
|
|
411
|
-
|
|
411
|
+
function qe(t = null) {
|
|
412
|
+
Bt(() => {
|
|
412
413
|
const o = y.value.matrix.map((u, s) => [
|
|
413
414
|
[y.value.labels[s] || s],
|
|
414
415
|
u
|
|
@@ -419,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:
|
|
456
|
+
style: F(`font-family:${a.value.style.fontFamily};width:100%; text-align:center;background:${a.value.style.chart.backgroundColor}`),
|
|
442
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,
|
|
@@ -465,7 +480,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
465
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,13 +494,13 @@ 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
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(
|
|
502
|
+
isPrinting: d(Ie),
|
|
503
|
+
isImaging: d(Ae),
|
|
489
504
|
uid: S.value,
|
|
490
505
|
hasTooltip: !1,
|
|
491
506
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
@@ -495,23 +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,
|
|
505
|
-
onToggleFullscreen:
|
|
520
|
+
onToggleFullscreen: je,
|
|
506
521
|
onGeneratePdf: d(Pe),
|
|
507
|
-
onGenerateCsv:
|
|
522
|
+
onGenerateCsv: qe,
|
|
508
523
|
onGenerateImage: d(_e),
|
|
509
524
|
onToggleTable: Ve,
|
|
510
525
|
onToggleAnnotator: ve,
|
|
511
|
-
style:
|
|
526
|
+
style: F({
|
|
512
527
|
visibility: d(xe) ? d(ce) ? "visible" : "hidden" : "visible"
|
|
513
528
|
})
|
|
514
|
-
},
|
|
529
|
+
}, Je({ _: 2 }, [
|
|
515
530
|
t.$slots.menuIcon ? {
|
|
516
531
|
name: "menuIcon",
|
|
517
532
|
fn: _(({ isOpen: e, color: l }) => [
|
|
@@ -564,7 +579,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
564
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),
|
|
565
580
|
L.value ? (n(), i("svg", {
|
|
566
581
|
key: 4,
|
|
567
|
-
xmlns: d(
|
|
582
|
+
xmlns: d(jt),
|
|
568
583
|
ref_key: "svgRef",
|
|
569
584
|
ref: Q,
|
|
570
585
|
viewBox: `0 0 ${T.value.width} ${T.value.height}`,
|
|
@@ -572,11 +587,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
572
587
|
style: {
|
|
573
588
|
overflow: "visible"
|
|
574
589
|
},
|
|
575
|
-
class:
|
|
576
|
-
onMousedown:
|
|
577
|
-
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"])
|
|
578
593
|
}, [
|
|
579
|
-
he(d(
|
|
594
|
+
he(d(ut)),
|
|
580
595
|
t.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
581
596
|
key: 0,
|
|
582
597
|
x: 0,
|
|
@@ -588,30 +603,30 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
588
603
|
}
|
|
589
604
|
}, [
|
|
590
605
|
$(t.$slots, "chart-background", {}, void 0, !0)
|
|
591
|
-
], 8,
|
|
592
|
-
a.value.style.chart.arcs.labels.curved ? (n(), i("defs",
|
|
593
|
-
(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", {
|
|
594
609
|
key: `labelPath-${l}`,
|
|
595
610
|
id: `labelPath-${l}_${S.value}`,
|
|
596
|
-
d:
|
|
611
|
+
d: Ct(
|
|
597
612
|
e.startAngle,
|
|
598
613
|
e.endAngle,
|
|
599
614
|
(b.value.inner + b.value.outer) / 2 + a.value.style.chart.arcs.labels.offset
|
|
600
615
|
),
|
|
601
616
|
fill: "none"
|
|
602
|
-
}, null, 8,
|
|
617
|
+
}, null, 8, na))), 128))
|
|
603
618
|
])) : v("", !0),
|
|
604
|
-
t.$slots.pattern ? (n(), i("g",
|
|
605
|
-
(n(!0), i(
|
|
606
|
-
$(t.$slots, "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)
|
|
607
622
|
]))), 256))
|
|
608
623
|
])) : v("", !0),
|
|
609
624
|
B("g", {
|
|
610
625
|
transform: `translate(${T.value.width / 2}, ${T.value.height / 2}) rotate(${x.value})`
|
|
611
626
|
}, [
|
|
612
|
-
(n(!0), i(
|
|
627
|
+
(n(!0), i(R, null, W(M.value.groups, (e, l) => (n(), i("g", null, [
|
|
613
628
|
(n(), i("path", {
|
|
614
|
-
class:
|
|
629
|
+
class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
|
|
615
630
|
key: `arc-${l}`,
|
|
616
631
|
d: Le(
|
|
617
632
|
e.startAngle,
|
|
@@ -624,15 +639,15 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
624
639
|
"stroke-width": a.value.style.chart.arcs.strokeWidth,
|
|
625
640
|
"stroke-linecap": "round",
|
|
626
641
|
"stroke-linejoin": "round",
|
|
627
|
-
style:
|
|
628
|
-
opacity:
|
|
642
|
+
style: F({
|
|
643
|
+
opacity: Ue(e)
|
|
629
644
|
}),
|
|
630
645
|
onMouseenter: () => Mt(e),
|
|
631
646
|
onMouseleave: o[0] || (o[0] = (u) => w.value = null),
|
|
632
647
|
onClick: (u) => te("selectGroup", e)
|
|
633
|
-
}, null, 46,
|
|
648
|
+
}, null, 46, ia)),
|
|
634
649
|
t.$slots.pattern ? (n(), i("path", {
|
|
635
|
-
class:
|
|
650
|
+
class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
|
|
636
651
|
key: `arc-${l}`,
|
|
637
652
|
d: Le(
|
|
638
653
|
e.startAngle,
|
|
@@ -645,33 +660,33 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
645
660
|
"stroke-width": a.value.style.chart.arcs.strokeWidth,
|
|
646
661
|
"stroke-linecap": "round",
|
|
647
662
|
"stroke-linejoin": "round",
|
|
648
|
-
style:
|
|
649
|
-
opacity:
|
|
663
|
+
style: F({
|
|
664
|
+
opacity: Ue(e),
|
|
650
665
|
pointerEvents: "none"
|
|
651
666
|
})
|
|
652
|
-
}, null, 14,
|
|
667
|
+
}, null, 14, ca)) : v("", !0)
|
|
653
668
|
]))), 256)),
|
|
654
669
|
B("g", null, [
|
|
655
|
-
(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, {
|
|
656
671
|
key: `ribbon-${e.id}`
|
|
657
672
|
}, [
|
|
658
673
|
e.source.value ? (n(), i("path", {
|
|
659
674
|
key: 0,
|
|
660
|
-
class:
|
|
675
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
|
|
661
676
|
d: ae(e.source, e.target),
|
|
662
677
|
fill: a.value.style.chart.backgroundColor,
|
|
663
|
-
style:
|
|
664
|
-
}, null, 14,
|
|
678
|
+
style: F({ opacity: a.value.style.chart.ribbons.underlayerOpacity })
|
|
679
|
+
}, null, 14, da)) : v("", !0),
|
|
665
680
|
e.source.value ? (n(), i("path", {
|
|
666
681
|
key: 1,
|
|
667
|
-
class:
|
|
682
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
|
|
668
683
|
d: ae(e.source, e.target),
|
|
669
684
|
fill: y.value.colors[e.source.index],
|
|
670
685
|
stroke: a.value.style.chart.ribbons.stroke,
|
|
671
686
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
672
687
|
"stroke-linecap": "round",
|
|
673
688
|
"stroke-linejoin": "round",
|
|
674
|
-
style:
|
|
689
|
+
style: F({ opacity: De(e) }),
|
|
675
690
|
onMouseenter: () => xt({
|
|
676
691
|
...e,
|
|
677
692
|
path: ae(e.source, e.target),
|
|
@@ -682,21 +697,21 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
682
697
|
color: y.value.colors[e.source.index]
|
|
683
698
|
}),
|
|
684
699
|
onMouseleave: o[1] || (o[1] = (l) => m.value = null)
|
|
685
|
-
}, null, 46,
|
|
700
|
+
}, null, 46, va)) : v("", !0),
|
|
686
701
|
e.source.value && t.$slots.pattern ? (n(), i("path", {
|
|
687
702
|
key: 2,
|
|
688
|
-
class:
|
|
703
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
|
|
689
704
|
d: ae(e.source, e.target),
|
|
690
705
|
fill: `url(#pattern_${S.value}_${e.source.index})`,
|
|
691
706
|
stroke: a.value.style.chart.ribbons.stroke,
|
|
692
707
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
693
708
|
"stroke-linecap": "round",
|
|
694
709
|
"stroke-linejoin": "round",
|
|
695
|
-
style:
|
|
696
|
-
opacity:
|
|
710
|
+
style: F({
|
|
711
|
+
opacity: De(e),
|
|
697
712
|
pointerEvents: "none"
|
|
698
713
|
})
|
|
699
|
-
}, null, 14,
|
|
714
|
+
}, null, 14, ha)) : v("", !0)
|
|
700
715
|
], 64))), 128)),
|
|
701
716
|
m.value ? (n(), i("path", {
|
|
702
717
|
key: 0,
|
|
@@ -706,11 +721,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
706
721
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
707
722
|
"stroke-linecap": "round",
|
|
708
723
|
"stroke-linejoin": "round",
|
|
709
|
-
class:
|
|
724
|
+
class: z({ "vue-ui-chord-ribbon": !0 }),
|
|
710
725
|
style: {
|
|
711
726
|
pointerEvents: "none"
|
|
712
727
|
}
|
|
713
|
-
}, null, 8,
|
|
728
|
+
}, null, 8, fa)) : v("", !0),
|
|
714
729
|
m.value && t.$slots.pattern ? (n(), i("path", {
|
|
715
730
|
key: 1,
|
|
716
731
|
d: m.value.path,
|
|
@@ -719,14 +734,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
719
734
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
720
735
|
"stroke-linecap": "round",
|
|
721
736
|
"stroke-linejoin": "round",
|
|
722
|
-
class:
|
|
737
|
+
class: z({ "vue-ui-chord-ribbon": !0 }),
|
|
723
738
|
style: {
|
|
724
739
|
pointerEvents: "none"
|
|
725
740
|
}
|
|
726
|
-
}, null, 8,
|
|
741
|
+
}, null, 8, ga)) : v("", !0)
|
|
727
742
|
]),
|
|
728
|
-
(w.value || m.value || p.value) && a.value.style.chart.ribbons.labels.show ? (n(), i("g",
|
|
729
|
-
(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, {
|
|
730
745
|
key: e.id
|
|
731
746
|
}, [
|
|
732
747
|
B("line", {
|
|
@@ -737,7 +752,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
737
752
|
stroke: a.value.style.chart.backgroundColor,
|
|
738
753
|
"stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
|
|
739
754
|
"pointer-events": "none"
|
|
740
|
-
}, null, 8,
|
|
755
|
+
}, null, 8, ba),
|
|
741
756
|
B("line", {
|
|
742
757
|
x1: e.midBaseX,
|
|
743
758
|
y1: e.midBaseY,
|
|
@@ -746,7 +761,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
746
761
|
stroke: a.value.style.chart.ribbons.labels.connector.stroke,
|
|
747
762
|
"stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth,
|
|
748
763
|
"pointer-events": "none"
|
|
749
|
-
}, null, 8,
|
|
764
|
+
}, null, 8, ma),
|
|
750
765
|
a.value.style.chart.ribbons.labels.marker.show ? (n(), i("circle", {
|
|
751
766
|
key: 0,
|
|
752
767
|
cx: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
@@ -756,7 +771,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
756
771
|
"stroke-width": a.value.style.chart.ribbons.labels.marker.strokeWidth,
|
|
757
772
|
fill: e.groupColor,
|
|
758
773
|
"pointer-events": "none"
|
|
759
|
-
}, null, 8,
|
|
774
|
+
}, null, 8, ya)) : v("", !0),
|
|
760
775
|
B("text", {
|
|
761
776
|
transform: `
|
|
762
777
|
translate(
|
|
@@ -765,56 +780,56 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
765
780
|
) rotate(${-x.value})
|
|
766
781
|
`,
|
|
767
782
|
fill: a.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : a.value.style.chart.ribbons.labels.color,
|
|
768
|
-
"text-anchor":
|
|
783
|
+
"text-anchor": $t(e.theta),
|
|
769
784
|
"font-size": a.value.style.chart.ribbons.labels.fontSize,
|
|
770
785
|
"font-weight": a.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
|
|
771
786
|
dy: ".35em",
|
|
772
787
|
"pointer-events": "none"
|
|
773
|
-
},
|
|
788
|
+
}, D(Xe(e.value)), 9, ka)
|
|
774
789
|
], 64))), 128))
|
|
775
790
|
])) : v("", !0),
|
|
776
|
-
a.value.style.chart.arcs.labels.show ? (n(), i("g",
|
|
777
|
-
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", {
|
|
778
793
|
key: `curved-label-${l}`,
|
|
779
794
|
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
780
795
|
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
781
|
-
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
|
|
782
797
|
}, [
|
|
783
798
|
B("textPath", {
|
|
784
799
|
href: `#labelPath-${l}_${S.value}`,
|
|
785
800
|
startOffset: "50%",
|
|
786
801
|
"text-anchor": "middle"
|
|
787
|
-
},
|
|
802
|
+
}, D(y.value.labels[l]) + D(a.value.style.chart.arcs.labels.showPercentage ? d(ge)({
|
|
788
803
|
p: " (",
|
|
789
804
|
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
790
805
|
s: "%)",
|
|
791
806
|
r: a.value.style.chart.arcs.labels.roundingPercentage
|
|
792
|
-
}) : ""), 9,
|
|
793
|
-
], 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", {
|
|
794
809
|
key: `label-${l}`,
|
|
795
810
|
transform: `
|
|
796
|
-
${
|
|
811
|
+
${wt((e.startAngle + e.endAngle) / 2)}
|
|
797
812
|
rotate(${-x.value})
|
|
798
813
|
`,
|
|
799
814
|
dy: ".35em",
|
|
800
|
-
"text-anchor":
|
|
815
|
+
"text-anchor": kt(e) > Math.PI ? "end" : "start",
|
|
801
816
|
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
802
817
|
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
803
818
|
fill: a.value.style.chart.arcs.labels.color
|
|
804
|
-
},
|
|
819
|
+
}, D(y.value.labels[l]) + D(a.value.style.chart.arcs.labels.showPercentage ? d(ge)({
|
|
805
820
|
p: " (",
|
|
806
821
|
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
807
822
|
s: "%)",
|
|
808
823
|
r: a.value.style.chart.arcs.labels.roundingPercentage
|
|
809
|
-
}) : ""), 9,
|
|
824
|
+
}) : ""), 9, Ma))), 128)) : v("", !0)
|
|
810
825
|
])) : v("", !0)
|
|
811
|
-
], 8,
|
|
826
|
+
], 8, ua),
|
|
812
827
|
$(t.$slots, "svg", { svg: { height: 600, width: 600 } }, void 0, !0)
|
|
813
|
-
], 42,
|
|
814
|
-
t.$slots.watermark ? (n(), i("div",
|
|
815
|
-
$(t.$slots, "watermark", re(ue({ isPrinting: d(
|
|
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)
|
|
816
831
|
])) : v("", !0),
|
|
817
|
-
L.value ? v("", !0) : (n(),
|
|
832
|
+
L.value ? v("", !0) : (n(), G(d(ct), {
|
|
818
833
|
key: 6,
|
|
819
834
|
config: {
|
|
820
835
|
type: "chord",
|
|
@@ -830,26 +845,26 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
830
845
|
ref_key: "chartLegend",
|
|
831
846
|
ref: me
|
|
832
847
|
}, [
|
|
833
|
-
a.value.style.chart.legend.show ? (n(),
|
|
848
|
+
a.value.style.chart.legend.show ? (n(), G(Zt, {
|
|
834
849
|
key: `legend_${Ce.value}`,
|
|
835
|
-
legendSet:
|
|
836
|
-
config:
|
|
837
|
-
onClickMarker: o[2] || (o[2] = ({ legend: e }) =>
|
|
838
|
-
},
|
|
850
|
+
legendSet: We.value,
|
|
851
|
+
config: At.value,
|
|
852
|
+
onClickMarker: o[2] || (o[2] = ({ legend: e }) => Ge(e.id))
|
|
853
|
+
}, Je({
|
|
839
854
|
item: _(({ legend: e }) => [
|
|
840
855
|
B("div", {
|
|
841
|
-
style:
|
|
856
|
+
style: F({
|
|
842
857
|
opacity: p.value ? p.value === e.id ? 1 : 0.3 : 1
|
|
843
858
|
}),
|
|
844
859
|
onClick: (l) => e.select()
|
|
845
|
-
},
|
|
860
|
+
}, D(e.name), 13, Ia)
|
|
846
861
|
]),
|
|
847
862
|
_: 2
|
|
848
863
|
}, [
|
|
849
864
|
t.$slots.pattern ? {
|
|
850
865
|
name: "legend-pattern",
|
|
851
866
|
fn: _(({ legend: e, index: l }) => [
|
|
852
|
-
he(
|
|
867
|
+
he(Kt, {
|
|
853
868
|
shape: e.shape,
|
|
854
869
|
radius: 30,
|
|
855
870
|
stroke: "none",
|
|
@@ -860,7 +875,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
860
875
|
key: "0"
|
|
861
876
|
} : void 0
|
|
862
877
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
863
|
-
$(t.$slots, "legend", { legend:
|
|
878
|
+
$(t.$slots, "legend", { legend: We.value }, void 0, !0)
|
|
864
879
|
], 512),
|
|
865
880
|
t.$slots.source ? (n(), i("div", {
|
|
866
881
|
key: 7,
|
|
@@ -870,26 +885,26 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
870
885
|
}, [
|
|
871
886
|
$(t.$slots, "source", {}, void 0, !0)
|
|
872
887
|
], 512)) : v("", !0),
|
|
873
|
-
x.value !== a.value.initialRotation ? (n(), i("div",
|
|
888
|
+
x.value !== a.value.initialRotation ? (n(), i("div", Aa, [
|
|
874
889
|
$(t.$slots, "reset-action", { reset: Ye }, () => [
|
|
875
890
|
B("button", {
|
|
876
891
|
"data-cy-reset": "",
|
|
877
892
|
tabindex: "0",
|
|
878
893
|
role: "button",
|
|
879
894
|
class: "vue-data-ui-refresh-button",
|
|
880
|
-
style:
|
|
895
|
+
style: F({
|
|
881
896
|
background: a.value.style.chart.backgroundColor
|
|
882
897
|
}),
|
|
883
898
|
onClick: Ye
|
|
884
899
|
}, [
|
|
885
|
-
he(d(
|
|
900
|
+
he(d(nt), {
|
|
886
901
|
name: "refresh",
|
|
887
902
|
stroke: a.value.style.chart.color
|
|
888
903
|
}, null, 8, ["stroke"])
|
|
889
904
|
], 4)
|
|
890
905
|
], !0)
|
|
891
906
|
])) : v("", !0),
|
|
892
|
-
L.value ? (n(),
|
|
907
|
+
L.value ? (n(), G(d(st), {
|
|
893
908
|
key: 9,
|
|
894
909
|
hideDetails: "",
|
|
895
910
|
config: {
|
|
@@ -906,7 +921,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
906
921
|
}
|
|
907
922
|
}, {
|
|
908
923
|
content: _(() => [
|
|
909
|
-
(n(),
|
|
924
|
+
(n(), G(d(rt), {
|
|
910
925
|
key: `table_${we.value}`,
|
|
911
926
|
colNames: ne.value.colNames,
|
|
912
927
|
head: ne.value.head,
|
|
@@ -916,19 +931,19 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
916
931
|
onClose: o[3] || (o[3] = (e) => Z.value.showTable = !1)
|
|
917
932
|
}, {
|
|
918
933
|
th: _(({ th: e }) => [
|
|
919
|
-
|
|
934
|
+
Ot(D(e.name), 1)
|
|
920
935
|
]),
|
|
921
936
|
td: _(({ td: e }) => [
|
|
922
|
-
B("div",
|
|
937
|
+
B("div", Pa, D(e.name ? e.name : Xe(e)), 1)
|
|
923
938
|
]),
|
|
924
939
|
_: 1
|
|
925
940
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
926
941
|
]),
|
|
927
942
|
_: 1
|
|
928
943
|
}, 8, ["config"])) : v("", !0)
|
|
929
|
-
], 46,
|
|
944
|
+
], 46, aa));
|
|
930
945
|
}
|
|
931
|
-
},
|
|
946
|
+
}, Da = /* @__PURE__ */ ta(_a, [["__scopeId", "data-v-d479992b"]]);
|
|
932
947
|
export {
|
|
933
|
-
|
|
948
|
+
Da as default
|
|
934
949
|
};
|