vue-data-ui 3.1.1 → 3.1.2
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-xQM7mBzd.js → Arrow-BotYLY2I.js} +1 -1
- package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
- package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BLg8FaQ2.js} +5 -3
- package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-C2sMVpbA.js} +2 -2
- package/dist/{DataTable-BAf4Obr9.js → DataTable-BRN1-1ob.js} +2 -2
- package/dist/{Legend-8_V5egWW.js → Legend-DLzeDl3-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
- package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-Jz9FlNXl.js} +1 -1
- package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-TgGWddgD.js} +3 -3
- package/dist/{Shape-Cjca5zta.js → Shape-Bmpx9GRg.js} +1 -1
- package/dist/{Slicer-6w3K8gAc.js → Slicer-DeWHn8zH.js} +2 -2
- package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-C6fJOQ0j.js} +1 -1
- package/dist/{Title-Dz-j6ERs.js → Title-AGmmsSi_.js} +1 -1
- package/dist/{Tooltip-BTGOEC7w.js → Tooltip-le0yZk_t.js} +1 -1
- package/dist/{UserOptions-CsDlFB0L.js → UserOptions-DEFwuQIo.js} +125 -108
- package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-C7V0EktO.js} +1 -1
- package/dist/{img-gBDz7xQQ.js → img-DvuphHeJ.js} +1 -1
- package/dist/{index-BKQqb9lF.js → index-BFqW8WA0.js} +97 -74
- package/dist/pdf-Bdf65IBz.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +25 -2
- package/dist/types/vue-data-ui.d.ts +25 -2
- package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
- package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-BSZCnuGl.js} +1 -1
- package/dist/{usePrinter-BzuXiubT.js → usePrinter-DDIKRiOp.js} +13 -12
- package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-vwh3dolO.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
- package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
- package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-B_5hOApA.js} +2 -2
- package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
- package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
- package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
- package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-C4B0wEFn.js} +344 -340
- package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-B9Zml1V7.js} +272 -266
- package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
- package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
- package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
- package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
- package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-xseR2SnT.js} +348 -343
- package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
- package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
- package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
- package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
- package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
- package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
- package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-NfRSd6fU.js} +405 -401
- package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
- package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
- package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
- package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-C973vfYh.js} +188 -183
- package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
- package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
- package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-BC9czZGG.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
- package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
- package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
- package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-DVJQYNeL.js} +248 -243
- package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-DITnRSiS.js} +2 -2
- package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
- package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
- package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CUT1N_kK.js} +229 -224
- package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
- package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
- package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B9yNexWr.js} +2 -2
- package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
- package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
- package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
- package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
- package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
- package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
- package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-rmbBw_0d.js} +3 -3
- package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
- package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
- package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-qFNHDcU_.js} +5 -5
- package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
- package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-DGC9zxon.js} +262 -256
- package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-DOCeCCqz.js} +310 -306
- package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
- package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-87VStrfJ.js} +6 -6
- package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
- package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
- package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
- package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
- package/package.json +1 -1
- package/dist/pdf-Cjsn5GEE.js +0 -61
- package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
- package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { useCssVars as qt, defineAsyncComponent as W, ref as v, shallowRef as rt, toRefs as Ht, watch as xe, computed as $, onMounted as ut, onBeforeUnmount as it, createElementBlock as i, openBlock as r, unref as d, normalizeStyle as R, normalizeClass as F, createBlock as V, createCommentVNode as h, renderSlot as w, createElementVNode as I, createSlots as Ae, withCtx as x, normalizeProps as de, guardReactiveProps as he, withModifiers as ct, createVNode as fe, Fragment as z, renderList as q, mergeProps as vt, toDisplayString as H, Teleport as Qt, resolveDynamicComponent as Zt, createTextVNode as dt, nextTick as ht } from "vue";
|
|
2
|
+
import { u as Jt, c as Ie, t as Kt, a as ea, p as ge, b as ta, o as aa, f as ft, g as oa, d as la, e as na, X as sa, F as ra, i as _e, a0 as ua, ab as ia, v as ca, w as va, k as da } from "./index-BFqW8WA0.js";
|
|
3
|
+
import { t as ha, u as fa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ga, B as ba } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as pa } from "./usePrinter-DDIKRiOp.js";
|
|
6
|
+
import { u as gt } from "./useNestedProp-BSZCnuGl.js";
|
|
7
|
+
import { u as ma } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as ya } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import ka from "./img-DvuphHeJ.js";
|
|
10
|
+
import { _ as $a } from "./Shape-Bmpx9GRg.js";
|
|
11
|
+
import wa from "./Title-AGmmsSi_.js";
|
|
12
|
+
import Ca from "./Legend-DLzeDl3-.js";
|
|
13
|
+
import { _ as Ma } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "height"], Pa = { key: 1 }, Ta = ["id", "d"], Ba = { key: 2 }, Sa = ["transform"], Oa = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], La = ["d", "fill", "stroke", "stroke-width"], Da = ["d", "fill"], Ea = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick", "onMouseleave"], Na = ["d", "fill", "stroke", "stroke-width"], Ra = ["d", "fill", "stroke", "stroke-width"], Fa = ["d", "fill", "stroke", "stroke-width"], za = { key: 0 }, Ua = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Xa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Va = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ja = ["transform", "fill", "text-anchor", "font-size", "font-weight"], Ya = { key: 1 }, Ga = ["font-size", "font-weight", "fill"], Wa = ["href"], qa = ["transform", "text-anchor", "font-size", "font-weight", "fill", "innerHTML"], Ha = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Qa = ["id"], Za = ["onClick"], Ja = {
|
|
18
18
|
key: 7,
|
|
19
19
|
"data-dom-to-png-ignore": "",
|
|
20
20
|
class: "reset-wrapper"
|
|
21
|
-
},
|
|
21
|
+
}, Ka = { style: { "text-align": "right", width: "100%" } }, eo = {
|
|
22
22
|
__name: "vue-ui-chord",
|
|
23
23
|
props: {
|
|
24
24
|
dataset: {
|
|
@@ -35,17 +35,17 @@ const Ca = ["id"], Ma = ["id"], xa = ["xmlns", "viewBox"], Aa = ["width", "heigh
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
emits: ["selectLegend", "selectGroup", "selectRibbon"],
|
|
38
|
-
setup(
|
|
39
|
-
|
|
40
|
-
"
|
|
38
|
+
setup(bt, { expose: pt, emit: mt }) {
|
|
39
|
+
qt((t) => ({
|
|
40
|
+
"3e45220a": t.slicerColor
|
|
41
41
|
}));
|
|
42
|
-
const
|
|
43
|
-
...
|
|
42
|
+
const yt = W(() => import("./vue-ui-accordion-Cv747Pg6.js")), Pe = W(() => import("./BaseIcon-BLg8FaQ2.js")), kt = W(() => import("./DataTable-BRN1-1ob.js")), $t = W(() => import("./PackageVersion-Jz9FlNXl.js")), wt = W(() => import("./PenAndPaper-TgGWddgD.js")), Ct = W(() => import("./UserOptions-DEFwuQIo.js")), Mt = W(() => import("./BaseDraggableDialog-Dkpr-qUQ.js")), { vue_ui_chord: xt } = Jt(), S = bt, ne = mt, E = v(!!S.dataset && Object.hasOwn(S.dataset, "matrix")), k = v(Ie()), C = v(null), p = v(null), g = v(null), Te = v(0), O = v(null), Be = v(null), Se = v(null), Oe = v(null), Le = v(null), be = v(0), pe = v(0), me = v(0), Q = v(!1), U = rt(null), Z = rt(null), De = v(!1), J = v(null), ye = v(null), e = v($e()), { loading: Ee, FINAL_DATASET: M, manualLoading: K } = ga({
|
|
43
|
+
...Ht(S),
|
|
44
44
|
FINAL_CONFIG: e,
|
|
45
|
-
prepareConfig:
|
|
45
|
+
prepareConfig: $e,
|
|
46
46
|
callback: () => {
|
|
47
47
|
Promise.resolve().then(async () => {
|
|
48
|
-
await
|
|
48
|
+
await ht(), j.value.showTable = e.value.table.show;
|
|
49
49
|
});
|
|
50
50
|
},
|
|
51
51
|
skeletonDataset: {
|
|
@@ -58,7 +58,7 @@ const Ca = ["id"], Ma = ["id"], xa = ["xmlns", "viewBox"], Aa = ["width", "heigh
|
|
|
58
58
|
labels: [],
|
|
59
59
|
colors: ["#DBDBDB", "#C4C4C4", "#ADADAD", "#969696"]
|
|
60
60
|
},
|
|
61
|
-
skeletonConfig:
|
|
61
|
+
skeletonConfig: Kt({
|
|
62
62
|
defaultConfig: e.value,
|
|
63
63
|
userConfig: {
|
|
64
64
|
useCssAnimation: !1,
|
|
@@ -87,53 +87,53 @@ const Ca = ["id"], Ma = ["id"], xa = ["xmlns", "viewBox"], Aa = ["width", "heigh
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
})
|
|
90
|
-
}), { userOptionsVisible:
|
|
90
|
+
}), { userOptionsVisible: ke, setUserOptionsVisibility: Ne, keepUserOptionState: Re } = ma({ config: e.value }), { svgRef: ee } = ya({ config: e.value.style.chart.title }), { isPrinting: Fe, isImaging: ze, generatePdf: Ue, generateImage: Xe } = pa({
|
|
91
91
|
elementId: `chord_${k.value}`,
|
|
92
92
|
fileName: e.value.style.chart.title.text || "vue-ui-chord",
|
|
93
93
|
options: e.value.userOptions.print
|
|
94
|
-
}),
|
|
94
|
+
}), j = v({
|
|
95
95
|
showTable: e.value.table.show
|
|
96
96
|
});
|
|
97
|
-
function
|
|
98
|
-
const t =
|
|
97
|
+
function $e() {
|
|
98
|
+
const t = gt({
|
|
99
99
|
userConfig: S.config,
|
|
100
|
-
defaultConfig:
|
|
100
|
+
defaultConfig: xt
|
|
101
101
|
});
|
|
102
102
|
return t.theme ? {
|
|
103
|
-
...
|
|
104
|
-
userConfig:
|
|
103
|
+
...gt({
|
|
104
|
+
userConfig: ta.vue_ui_chord[t.theme] || S.config,
|
|
105
105
|
defaultConfig: t
|
|
106
106
|
}),
|
|
107
|
-
customPalette:
|
|
107
|
+
customPalette: ea[t.theme] || ge
|
|
108
108
|
} : t;
|
|
109
109
|
}
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
xe(() => S.config, (t) => {
|
|
111
|
+
Ee.value || (e.value = $e()), ke.value = !e.value.userOptions.showOnChartHover, we(), be.value += 1, pe.value += 1, me.value += 1, _.value = e.value.initialRotation, j.value.showTable = e.value.table.show;
|
|
112
112
|
}, { deep: !0 });
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
const Ve = $(() => e.value.debug);
|
|
114
|
+
xe(() => S.dataset, () => {
|
|
115
|
+
je(), we(), be.value += 1, pe.value += 1, me.value += 1;
|
|
116
116
|
});
|
|
117
|
-
function
|
|
118
|
-
if (
|
|
119
|
-
|
|
117
|
+
function je() {
|
|
118
|
+
if (aa(S.dataset)) {
|
|
119
|
+
ft({
|
|
120
120
|
componentName: "VueUiChord",
|
|
121
121
|
type: "dataset",
|
|
122
|
-
debug:
|
|
122
|
+
debug: Ve.value
|
|
123
123
|
}), E.value = !1, K.value = !0;
|
|
124
124
|
return;
|
|
125
125
|
}
|
|
126
|
-
const t =
|
|
126
|
+
const t = oa({
|
|
127
127
|
datasetObject: S.dataset,
|
|
128
128
|
requiredAttributes: ["matrix"]
|
|
129
129
|
});
|
|
130
130
|
if (t.length) {
|
|
131
131
|
t.forEach((s) => {
|
|
132
|
-
|
|
132
|
+
ft({
|
|
133
133
|
componentName: "VueUiChord",
|
|
134
134
|
type: "datasetAttribute",
|
|
135
135
|
property: s,
|
|
136
|
-
debug:
|
|
136
|
+
debug: Ve.value
|
|
137
137
|
});
|
|
138
138
|
}), E.value = !1, K.value = !0;
|
|
139
139
|
return;
|
|
@@ -159,25 +159,25 @@ dataset.matrix[${l}] = [${Array.isArray(o[l]) ? o[l].toString() : "invalid"}]`
|
|
|
159
159
|
}
|
|
160
160
|
E.value = !0, K.value = !1;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
if (
|
|
164
|
-
const t =
|
|
165
|
-
const { width: o, height: a, heightNoTitle: l, heightSource: s, heightTitle: n, heightLegend: u } =
|
|
162
|
+
function we() {
|
|
163
|
+
if (je(), e.value.responsive) {
|
|
164
|
+
const t = ha(() => {
|
|
165
|
+
const { width: o, height: a, heightNoTitle: l, heightSource: s, heightTitle: n, heightLegend: u } = fa({
|
|
166
166
|
chart: O.value,
|
|
167
|
-
title: e.value.style.chart.title.text ?
|
|
168
|
-
legend: e.value.style.chart.legend.show ?
|
|
169
|
-
source:
|
|
170
|
-
noTitle:
|
|
167
|
+
title: e.value.style.chart.title.text ? Be.value : null,
|
|
168
|
+
legend: e.value.style.chart.legend.show ? Se.value : null,
|
|
169
|
+
source: Oe.value,
|
|
170
|
+
noTitle: Le.value
|
|
171
171
|
}), f = n + u + s + l;
|
|
172
172
|
o < a ? O.value.style.width = "100%" : (O.value.style.height = "100%", ee.value.style.height = `calc(100% - ${f}px)`);
|
|
173
173
|
}, 100);
|
|
174
174
|
U.value && (Z.value && U.value.unobserve(Z.value), U.value.disconnect()), U.value = new ResizeObserver(t), Z.value = O.value.parentNode, U.value.observe(Z.value), t();
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
Ye.value = setTimeout(() => {
|
|
177
177
|
Q.value = !0;
|
|
178
178
|
}, 500);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function At() {
|
|
181
181
|
if (!M.value || !Object.hasOwn(M.value, "matrix") || M.value.matrix.length < 2) {
|
|
182
182
|
console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
|
|
183
183
|
|
|
@@ -193,56 +193,56 @@ matrix:[
|
|
|
193
193
|
dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should have the same length as the matrix itself (${M.value.matrix.length})`), E.value = !1);
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
const Ye = v(null);
|
|
197
|
+
ut(() => {
|
|
198
|
+
De.value = !0, we();
|
|
199
199
|
});
|
|
200
200
|
const L = v({
|
|
201
201
|
height: 600,
|
|
202
202
|
width: 600
|
|
203
|
-
}),
|
|
203
|
+
}), It = $(() => e.value.userOptions.show && !e.value.style.chart.title.text), _t = $(() => la(e.value.customPalette)), b = $(() => ({
|
|
204
204
|
inner: L.value.width * 0.3 * e.value.style.chart.arcs.innerRadiusRatio,
|
|
205
205
|
outer: L.value.width * 0.34 * e.value.style.chart.arcs.outerRadiusRatio
|
|
206
|
-
})),
|
|
206
|
+
})), Pt = $(() => e.value.style.chart.arcs.padAngle / 100), m = $(() => ({
|
|
207
207
|
matrix: M.value.matrix ?? [[0]],
|
|
208
208
|
labels: M.value.labels ?? [""],
|
|
209
|
-
colors: M.value.colors && Array.isArray(M.value.colors) && M.value.colors.length ? M.value.colors.map((t) =>
|
|
209
|
+
colors: M.value.colors && Array.isArray(M.value.colors) && M.value.colors.length ? M.value.colors.map((t) => na(t)) : M.value.matrix.map((t, o) => _t.value[o] || ge[o] || ge[o % ge.length])
|
|
210
210
|
}));
|
|
211
|
-
function
|
|
211
|
+
function Tt(t, o) {
|
|
212
212
|
const a = t.length, l = b.value.inner, s = new Array(a).fill(0);
|
|
213
213
|
let n = 0;
|
|
214
214
|
for (let c = 0; c < a; c += 1)
|
|
215
215
|
for (let y = 0; y < a; y += 1)
|
|
216
216
|
s[c] += t[c][y], n += t[c][y];
|
|
217
217
|
const u = (2 * Math.PI - o * a) / n, f = [];
|
|
218
|
-
let
|
|
218
|
+
let P = 0;
|
|
219
219
|
for (let c = 0; c < a; c += 1) {
|
|
220
|
-
const y =
|
|
220
|
+
const y = P, B = y + s[c] * u;
|
|
221
221
|
f.push({
|
|
222
222
|
index: c,
|
|
223
223
|
pattern: `pattern_${k.value}_${c}`,
|
|
224
224
|
startAngle: y,
|
|
225
225
|
endAngle: B,
|
|
226
226
|
name: m.value.labels[c],
|
|
227
|
-
id:
|
|
227
|
+
id: Ie(),
|
|
228
228
|
color: m.value.colors[c],
|
|
229
229
|
proportion: s[c] / n
|
|
230
|
-
}),
|
|
230
|
+
}), P = B + o;
|
|
231
231
|
}
|
|
232
232
|
const T = [];
|
|
233
233
|
for (let c = 0; c < a; c += 1) {
|
|
234
|
-
const y = t[c].map((D,
|
|
235
|
-
y.sort((D,
|
|
234
|
+
const y = t[c].map((D, X) => ({ j: X, v: D }));
|
|
235
|
+
y.sort((D, X) => X.v - D.v);
|
|
236
236
|
let B = f[c].startAngle;
|
|
237
|
-
for (const { j: D, v:
|
|
238
|
-
const G = B, le = G +
|
|
237
|
+
for (const { j: D, v: X } of y) {
|
|
238
|
+
const G = B, le = G + X * u;
|
|
239
239
|
T.push({
|
|
240
240
|
index: c,
|
|
241
241
|
subIndex: D,
|
|
242
242
|
pattern: `pattern_${k.value}_${c}`,
|
|
243
243
|
startAngle: G,
|
|
244
244
|
endAngle: le,
|
|
245
|
-
value:
|
|
245
|
+
value: X,
|
|
246
246
|
groupName: m.value.labels[c],
|
|
247
247
|
groupId: f[c].id,
|
|
248
248
|
groupColor: m.value.colors[c],
|
|
@@ -257,16 +257,16 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
257
257
|
const y = T.find(
|
|
258
258
|
(B) => B.index === c.subIndex && B.subIndex === c.index
|
|
259
259
|
);
|
|
260
|
-
N.push({ source: c, target: y, id:
|
|
260
|
+
N.push({ source: c, target: y, id: Ie() });
|
|
261
261
|
}
|
|
262
262
|
return { groups: f, chords: N };
|
|
263
263
|
}
|
|
264
264
|
const A = $(() => {
|
|
265
|
-
const t =
|
|
266
|
-
return
|
|
265
|
+
const t = Tt(m.value.matrix, Pt.value);
|
|
266
|
+
return At(), t.chords.sort(
|
|
267
267
|
(o, a) => Math.max(a.source.value, a.target.value) - Math.max(o.source.value, o.target.value)
|
|
268
268
|
), t;
|
|
269
|
-
}),
|
|
269
|
+
}), Bt = $(() => {
|
|
270
270
|
const t = b.value.outer + e.value.style.chart.ribbons.labels.offset + 12, a = e.value.style.chart.ribbons.labels.fontSize * 0.6, l = [];
|
|
271
271
|
if (p.value) {
|
|
272
272
|
const n = p.value;
|
|
@@ -325,13 +325,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
return g.value && s(g.value), C.value && s(C.value.id), l;
|
|
328
|
-
}),
|
|
329
|
-
const t =
|
|
328
|
+
}), St = $(() => {
|
|
329
|
+
const t = Bt.value.map((s) => ({ ...s })).sort((s, n) => s.theta - n.theta), o = e.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
|
|
330
330
|
let a = !0, l = 0;
|
|
331
331
|
for (; a && l++ < 10; ) {
|
|
332
332
|
a = !1;
|
|
333
333
|
for (let f = 1; f < t.length; f += 1) {
|
|
334
|
-
const
|
|
334
|
+
const P = t[f - 1], T = t[f], N = P.theta + P.w + o;
|
|
335
335
|
T.theta < N && (T.theta = N, a = !0);
|
|
336
336
|
}
|
|
337
337
|
const s = t[0], n = t[t.length - 1], u = n.theta + n.w + o - 2 * Math.PI;
|
|
@@ -339,55 +339,55 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
339
339
|
}
|
|
340
340
|
return t;
|
|
341
341
|
});
|
|
342
|
-
function
|
|
343
|
-
const s = t - Math.PI / 2, n = o - Math.PI / 2, u = Math.cos(s) * a, f = Math.sin(s) * a,
|
|
344
|
-
return `M${u},${f} A${a},${a} 0 ${D} 1 ${
|
|
342
|
+
function Ge(t, o, a, l) {
|
|
343
|
+
const s = t - Math.PI / 2, n = o - Math.PI / 2, u = Math.cos(s) * a, f = Math.sin(s) * a, P = Math.cos(n) * a, T = Math.sin(n) * a, N = Math.cos(n) * l, c = Math.sin(n) * l, y = Math.cos(s) * l, B = Math.sin(s) * l, D = o - t > Math.PI ? 1 : 0;
|
|
344
|
+
return `M${u},${f} A${a},${a} 0 ${D} 1 ${P},${T} L${N},${c} A${l},${l} 0 ${D} 0 ${y},${B} Z`;
|
|
345
345
|
}
|
|
346
346
|
function se(t, o) {
|
|
347
|
-
const a = b.value.inner, l = t.startAngle - Math.PI / 2, s = t.endAngle - Math.PI / 2, n = o.startAngle - Math.PI / 2, u = o.endAngle - Math.PI / 2, f = Math.cos(l) * a,
|
|
348
|
-
return `M${f},${
|
|
347
|
+
const a = b.value.inner, l = t.startAngle - Math.PI / 2, s = t.endAngle - Math.PI / 2, n = o.startAngle - Math.PI / 2, u = o.endAngle - Math.PI / 2, f = Math.cos(l) * a, P = Math.sin(l) * a, T = Math.cos(s) * a, N = Math.sin(s) * a, c = Math.cos(n) * a, y = Math.sin(n) * a, B = Math.cos(u) * a, D = Math.sin(u) * a, X = t.endAngle - t.startAngle > Math.PI ? 1 : 0, G = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
|
|
348
|
+
return `M${f},${P}A${a},${a} 0 ${X} 1 ${T},${N}Q0,0 ${c},${y}A${a},${a} 0 ${G} 1 ${B},${D}Q0,0 ${f},${P}Z`;
|
|
349
349
|
}
|
|
350
|
-
const
|
|
351
|
-
function
|
|
350
|
+
const We = $(() => _.value * Math.PI / 180);
|
|
351
|
+
function Ot(t) {
|
|
352
352
|
return (t.startAngle + t.endAngle) / 2;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
return ((
|
|
354
|
+
function Lt(t) {
|
|
355
|
+
return ((Ot(t) + We.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
let o = t +
|
|
357
|
+
function Dt(t) {
|
|
358
|
+
let o = t + We.value;
|
|
359
359
|
return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Et(t) {
|
|
362
362
|
const o = t - Math.PI / 2, a = Math.cos(o) * (b.value.outer + e.value.style.chart.arcs.labels.offset + 24), l = Math.sin(o) * (b.value.outer + e.value.style.chart.arcs.labels.offset + 24);
|
|
363
363
|
return `translate(${a},${l})`;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
const l = t - Math.PI / 2, s = o - Math.PI / 2, n = Math.cos(l) * a, u = Math.sin(l) * a, f = Math.cos(s) * a,
|
|
367
|
-
return `M${n},${u} A${a},${a} 0 ${T} 1 ${f},${
|
|
365
|
+
function Nt(t, o, a) {
|
|
366
|
+
const l = t - Math.PI / 2, s = o - Math.PI / 2, n = Math.cos(l) * a, u = Math.sin(l) * a, f = Math.cos(s) * a, P = Math.sin(s) * a, T = o - t > Math.PI ? 1 : 0;
|
|
367
|
+
return `M${n},${u} A${a},${a} 0 ${T} 1 ${f},${P}`;
|
|
368
368
|
}
|
|
369
|
-
const
|
|
370
|
-
let
|
|
371
|
-
function
|
|
369
|
+
const _ = v(e.value.initialRotation), te = v(!1);
|
|
370
|
+
let qe = 0, He = 0;
|
|
371
|
+
function Qe(t) {
|
|
372
372
|
const o = ee.value.getBoundingClientRect(), a = o.left + o.width / 2, l = o.top + o.height / 2, s = t.clientX ?? t.touches[0].clientX, n = t.clientY ?? t.touches[0].clientY;
|
|
373
373
|
return Math.atan2(n - l, s - a);
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
!e.value.enableRotation || ae.value || (t.preventDefault(), te.value = !0,
|
|
375
|
+
function Ze(t) {
|
|
376
|
+
!e.value.enableRotation || ae.value || (t.preventDefault(), te.value = !0, qe = _.value, He = Qe(t));
|
|
377
377
|
}
|
|
378
378
|
function re(t) {
|
|
379
379
|
if (!te.value) return;
|
|
380
|
-
const o =
|
|
381
|
-
|
|
380
|
+
const o = Qe(t);
|
|
381
|
+
_.value = qe + (o - He) * 180 / Math.PI;
|
|
382
382
|
}
|
|
383
383
|
function ue() {
|
|
384
384
|
te.value = !1;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
return
|
|
386
|
+
function Je(t) {
|
|
387
|
+
return da(
|
|
388
388
|
e.value.style.chart.ribbons.labels.formatter,
|
|
389
389
|
t,
|
|
390
|
-
|
|
390
|
+
_e({
|
|
391
391
|
p: e.value.style.chart.ribbons.labels.prefix,
|
|
392
392
|
v: t,
|
|
393
393
|
s: e.value.style.chart.ribbons.labels.suffix,
|
|
@@ -395,74 +395,74 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
395
395
|
})
|
|
396
396
|
);
|
|
397
397
|
}
|
|
398
|
-
|
|
398
|
+
ut(() => {
|
|
399
399
|
window.addEventListener("mousemove", re), window.addEventListener("mouseup", ue), window.addEventListener("touchmove", re, { passive: !1 }), window.addEventListener("touchend", ue);
|
|
400
|
-
}),
|
|
401
|
-
window.removeEventListener("mousemove", re), window.removeEventListener("mouseup", ue), window.removeEventListener("touchmove", re), window.removeEventListener("touchend", ue), clearTimeout(
|
|
400
|
+
}), it(() => {
|
|
401
|
+
window.removeEventListener("mousemove", re), window.removeEventListener("mouseup", ue), window.removeEventListener("touchmove", re), window.removeEventListener("touchend", ue), clearTimeout(Ye.value), U.value && (Z.value && U.value.unobserve(Z.value), U.value.disconnect());
|
|
402
402
|
});
|
|
403
403
|
const ie = v(!1);
|
|
404
|
-
function
|
|
405
|
-
ie.value = t,
|
|
404
|
+
function Ke(t) {
|
|
405
|
+
ie.value = t, Te.value += 1;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Rt(t, o) {
|
|
408
408
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), !g.value && (C.value = t);
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Ft(t, o) {
|
|
411
411
|
C.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function zt(t, o) {
|
|
414
414
|
ne("selectGroup", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function Ut(t, o) {
|
|
417
417
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), !g.value && (p.value = t);
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Xt(t, o) {
|
|
420
420
|
p.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function Vt(t, o) {
|
|
423
423
|
ne("selectRibbon", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function et(t) {
|
|
426
426
|
return !g.value && !C.value && !p.value ? 0.8 : (g.value ? g.value === t.source.groupId : C.value ? C.value.id === t.source.groupId : p.value?.id === t.id) ? 1 : 0.1;
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function tt(t) {
|
|
429
429
|
return !g.value && !C.value && !p.value || (g.value ? g.value === t.id : C.value ? C.value.id === t.id : [p.value?.source.groupId, p.value?.target.groupId].includes(t.id)) ? 1 : 0.3;
|
|
430
430
|
}
|
|
431
431
|
const ae = v(!1);
|
|
432
|
-
function
|
|
432
|
+
function Ce() {
|
|
433
433
|
ae.value = !ae.value;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
|
|
435
|
+
function at() {
|
|
436
|
+
j.value.showTable = !j.value.showTable;
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function jt() {
|
|
439
439
|
return A.value;
|
|
440
440
|
}
|
|
441
441
|
const Y = v(null);
|
|
442
|
-
function
|
|
442
|
+
function ot() {
|
|
443
443
|
const t = e.value.initialRotation;
|
|
444
444
|
Y.value !== null && cancelAnimationFrame(Y.value);
|
|
445
445
|
const o = () => {
|
|
446
|
-
|
|
446
|
+
_.value += (t - _.value) * 0.05, Math.abs(_.value - t) < 0.1 ? (_.value = t, Y.value = null) : Y.value = requestAnimationFrame(o);
|
|
447
447
|
};
|
|
448
448
|
Y.value = requestAnimationFrame(o);
|
|
449
449
|
}
|
|
450
|
-
|
|
450
|
+
it(() => {
|
|
451
451
|
Y.value !== null && cancelAnimationFrame(Y.value);
|
|
452
452
|
});
|
|
453
|
-
function
|
|
453
|
+
function lt(t) {
|
|
454
454
|
t === g.value ? (g.value = null, ne("selectLegend", null)) : (g.value = t, ne("selectLegend", A.value.groups.find((o) => o.id === t)));
|
|
455
455
|
}
|
|
456
|
-
const
|
|
456
|
+
const nt = $(() => A.value.groups.map((t, o) => ({
|
|
457
457
|
name: t.name,
|
|
458
458
|
color: t.color,
|
|
459
459
|
shape: "circle",
|
|
460
460
|
patternIndex: o,
|
|
461
461
|
pattern: `pattern_${k.value}_${o}`,
|
|
462
462
|
id: t.id,
|
|
463
|
-
select: () =>
|
|
463
|
+
select: () => lt(t.id),
|
|
464
464
|
opacity: g.value ? g.value === t.id ? 1 : 0.3 : 1
|
|
465
|
-
}))),
|
|
465
|
+
}))), Yt = $(() => ({
|
|
466
466
|
cy: "chord-div-legend",
|
|
467
467
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
468
468
|
color: e.value.style.chart.legend.color,
|
|
@@ -499,8 +499,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
499
499
|
config: a
|
|
500
500
|
};
|
|
501
501
|
});
|
|
502
|
-
function
|
|
503
|
-
|
|
502
|
+
function Me(t = null) {
|
|
503
|
+
ht(() => {
|
|
504
504
|
const o = m.value.matrix.map((s, n) => [
|
|
505
505
|
[m.value.labels[n] || n],
|
|
506
506
|
s
|
|
@@ -511,13 +511,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
511
511
|
[""],
|
|
512
512
|
...m.value.labels.map((s, n) => [s || n])
|
|
513
513
|
]
|
|
514
|
-
].concat(o), l =
|
|
515
|
-
t ? t(l) :
|
|
514
|
+
].concat(o), l = ca(a);
|
|
515
|
+
t ? t(l) : va({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-chord" });
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
|
-
async function
|
|
518
|
+
async function Gt({ scale: t = 2 } = {}) {
|
|
519
519
|
if (!O.value) return;
|
|
520
|
-
const { width: o, height: a } = O.value.getBoundingClientRect(), l = o / a, { imageUri: s, base64: n } = await
|
|
520
|
+
const { width: o, height: a } = O.value.getBoundingClientRect(), l = o / a, { imageUri: s, base64: n } = await ka({ domElement: O.value, base64: !0, img: !0, scale: t });
|
|
521
521
|
return {
|
|
522
522
|
imageUri: s,
|
|
523
523
|
base64: n,
|
|
@@ -527,8 +527,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
527
527
|
aspectRatio: l
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
return `${m.value.labels[o]}${e.value.style.chart.arcs.labels.showPercentage ?
|
|
530
|
+
function Wt(t, o) {
|
|
531
|
+
return `${m.value.labels[o]}${e.value.style.chart.arcs.labels.showPercentage ? _e({
|
|
532
532
|
p: " (",
|
|
533
533
|
v: isNaN(t.proportion) ? 0 : t.proportion * 100,
|
|
534
534
|
s: "%)",
|
|
@@ -536,9 +536,9 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
536
536
|
}) : ""}`;
|
|
537
537
|
}
|
|
538
538
|
const oe = $(() => {
|
|
539
|
-
const t = e.value.table.useDialog && !e.value.table.show, o =
|
|
539
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = j.value.showTable;
|
|
540
540
|
return {
|
|
541
|
-
component: t ?
|
|
541
|
+
component: t ? Mt : yt,
|
|
542
542
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
543
543
|
props: t ? {
|
|
544
544
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -565,53 +565,57 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
565
565
|
}
|
|
566
566
|
};
|
|
567
567
|
});
|
|
568
|
-
|
|
568
|
+
xe(() => j.value.showTable, (t) => {
|
|
569
569
|
e.value.table.show || (t && e.value.table.useDialog && J.value ? J.value.open() : "close" in J.value && J.value.close());
|
|
570
|
-
})
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
570
|
+
});
|
|
571
|
+
function st() {
|
|
572
|
+
j.value.showTable = !1, ye.value && ye.value.setTableIconState(!1);
|
|
573
|
+
}
|
|
574
|
+
return pt({
|
|
575
|
+
getData: jt,
|
|
576
|
+
getImage: Gt,
|
|
577
|
+
generateCsv: Me,
|
|
578
|
+
generateImage: Xe,
|
|
579
|
+
generatePdf: Ue,
|
|
580
|
+
toggleAnnotator: Ce,
|
|
581
|
+
toggleTable: at,
|
|
582
|
+
toggleFullscreen: Ke
|
|
579
583
|
}), (t, o) => (r(), i("div", {
|
|
580
584
|
ref_key: "chordChart",
|
|
581
585
|
ref: O,
|
|
582
|
-
class:
|
|
586
|
+
class: F({
|
|
583
587
|
"vue-ui-chord": !0,
|
|
584
588
|
"vue-data-ui-wrapper-fullscreen": ie.value,
|
|
585
589
|
"vue-data-ui-responsive": e.value.responsive
|
|
586
590
|
}),
|
|
587
|
-
style:
|
|
591
|
+
style: R(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
588
592
|
id: `chord_${k.value}`,
|
|
589
|
-
onMouseenter: o[
|
|
590
|
-
onMouseleave: o[
|
|
593
|
+
onMouseenter: o[2] || (o[2] = () => d(Ne)(!0)),
|
|
594
|
+
onMouseleave: o[3] || (o[3] = () => d(Ne)(!1))
|
|
591
595
|
}, [
|
|
592
|
-
e.value.userOptions.buttons.annotator && d(ee) ? (r(),
|
|
596
|
+
e.value.userOptions.buttons.annotator && d(ee) ? (r(), V(d(wt), {
|
|
593
597
|
key: 0,
|
|
594
598
|
color: e.value.style.chart.color,
|
|
595
599
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
596
600
|
active: ae.value,
|
|
597
601
|
svgRef: d(ee),
|
|
598
|
-
onClose:
|
|
602
|
+
onClose: Ce
|
|
599
603
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : h("", !0),
|
|
600
604
|
w(t.$slots, "userConfig", {}, void 0, !0),
|
|
601
|
-
|
|
605
|
+
It.value ? (r(), i("div", {
|
|
602
606
|
key: 1,
|
|
603
607
|
ref_key: "noTitle",
|
|
604
|
-
ref:
|
|
608
|
+
ref: Le,
|
|
605
609
|
class: "vue-data-ui-no-title-space",
|
|
606
610
|
style: "height:36px; width: 100%;background:transparent"
|
|
607
611
|
}, null, 512)) : h("", !0),
|
|
608
612
|
e.value.style.chart.title.text ? (r(), i("div", {
|
|
609
613
|
key: 2,
|
|
610
614
|
ref_key: "chartTitle",
|
|
611
|
-
ref:
|
|
615
|
+
ref: Be,
|
|
612
616
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
613
617
|
}, [
|
|
614
|
-
(r(),
|
|
618
|
+
(r(), V(wa, {
|
|
615
619
|
key: `title_${be.value}`,
|
|
616
620
|
config: {
|
|
617
621
|
title: {
|
|
@@ -627,14 +631,15 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
627
631
|
], 512)) : h("", !0),
|
|
628
632
|
I("div", {
|
|
629
633
|
id: `legend-top-${k.value}`
|
|
630
|
-
}, null, 8,
|
|
631
|
-
e.value.userOptions.show && E.value && (d(
|
|
632
|
-
|
|
633
|
-
|
|
634
|
+
}, null, 8, Aa),
|
|
635
|
+
e.value.userOptions.show && E.value && (d(Re) || d(ke)) ? (r(), V(d(Ct), {
|
|
636
|
+
ref_key: "userOptionsRef",
|
|
637
|
+
ref: ye,
|
|
638
|
+
key: `user_option_${Te.value}`,
|
|
634
639
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
635
640
|
color: e.value.style.chart.color,
|
|
636
641
|
isPrinting: d(Fe),
|
|
637
|
-
isImaging: d(
|
|
642
|
+
isImaging: d(ze),
|
|
638
643
|
uid: k.value,
|
|
639
644
|
hasTooltip: !1,
|
|
640
645
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -651,16 +656,17 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
651
656
|
isAnnotation: ae.value,
|
|
652
657
|
callbacks: e.value.userOptions.callbacks,
|
|
653
658
|
printScale: e.value.userOptions.print.scale,
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
659
|
+
tableDialog: e.value.table.useDialog,
|
|
660
|
+
onToggleFullscreen: Ke,
|
|
661
|
+
onGeneratePdf: d(Ue),
|
|
662
|
+
onGenerateCsv: Me,
|
|
663
|
+
onGenerateImage: d(Xe),
|
|
664
|
+
onToggleTable: at,
|
|
665
|
+
onToggleAnnotator: Ce,
|
|
666
|
+
style: R({
|
|
667
|
+
visibility: d(Re) ? d(ke) ? "visible" : "hidden" : "visible"
|
|
662
668
|
})
|
|
663
|
-
},
|
|
669
|
+
}, Ae({ _: 2 }, [
|
|
664
670
|
t.$slots.menuIcon ? {
|
|
665
671
|
name: "menuIcon",
|
|
666
672
|
fn: x(({ isOpen: a, color: l }) => [
|
|
@@ -710,9 +716,9 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
710
716
|
]),
|
|
711
717
|
key: "6"
|
|
712
718
|
} : void 0
|
|
713
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
719
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
714
720
|
(r(), i("svg", {
|
|
715
|
-
xmlns: d(
|
|
721
|
+
xmlns: d(sa),
|
|
716
722
|
ref_key: "svgRef",
|
|
717
723
|
ref: ee,
|
|
718
724
|
viewBox: `0 0 ${L.value.width} ${L.value.height}`,
|
|
@@ -720,11 +726,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
720
726
|
style: {
|
|
721
727
|
overflow: "visible"
|
|
722
728
|
},
|
|
723
|
-
class:
|
|
724
|
-
onMousedown:
|
|
725
|
-
onTouchstart:
|
|
729
|
+
class: F({ "vue-ui-chord-rotating": te.value, "vue-ui-chord-idle": !te.value }),
|
|
730
|
+
onMousedown: ct(Ze, ["prevent"]),
|
|
731
|
+
onTouchstart: ct(Ze, ["prevent"])
|
|
726
732
|
}, [
|
|
727
|
-
fe(d(
|
|
733
|
+
fe(d($t)),
|
|
728
734
|
t.$slots["chart-background"] ? (r(), i("foreignObject", {
|
|
729
735
|
key: 0,
|
|
730
736
|
x: 0,
|
|
@@ -736,32 +742,32 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
736
742
|
}
|
|
737
743
|
}, [
|
|
738
744
|
w(t.$slots, "chart-background", {}, void 0, !0)
|
|
739
|
-
], 8,
|
|
740
|
-
e.value.style.chart.arcs.labels.curved ? (r(), i("defs",
|
|
745
|
+
], 8, _a)) : h("", !0),
|
|
746
|
+
e.value.style.chart.arcs.labels.curved ? (r(), i("defs", Pa, [
|
|
741
747
|
(r(!0), i(z, null, q(A.value.groups, (a, l) => (r(), i("path", {
|
|
742
748
|
key: `labelPath-${l}`,
|
|
743
749
|
id: `labelPath-${l}_${k.value}`,
|
|
744
|
-
d:
|
|
750
|
+
d: Nt(
|
|
745
751
|
a.startAngle,
|
|
746
752
|
a.endAngle,
|
|
747
753
|
(b.value.inner + b.value.outer) / 2 + e.value.style.chart.arcs.labels.offset
|
|
748
754
|
),
|
|
749
755
|
fill: "none"
|
|
750
|
-
}, null, 8,
|
|
756
|
+
}, null, 8, Ta))), 128))
|
|
751
757
|
])) : h("", !0),
|
|
752
|
-
t.$slots.pattern ? (r(), i("g",
|
|
758
|
+
t.$slots.pattern ? (r(), i("g", Ba, [
|
|
753
759
|
(r(!0), i(z, null, q(A.value.groups, (a, l) => (r(), i("defs", null, [
|
|
754
|
-
w(t.$slots, "pattern",
|
|
760
|
+
w(t.$slots, "pattern", vt({ ref_for: !0 }, { seriesIndex: a.index, patternId: `pattern_${k.value}_${l}` }), void 0, !0)
|
|
755
761
|
]))), 256))
|
|
756
762
|
])) : h("", !0),
|
|
757
763
|
I("g", {
|
|
758
|
-
transform: `translate(${L.value.width / 2}, ${L.value.height / 2}) rotate(${
|
|
764
|
+
transform: `translate(${L.value.width / 2}, ${L.value.height / 2}) rotate(${_.value})`
|
|
759
765
|
}, [
|
|
760
766
|
(r(!0), i(z, null, q(A.value.groups, (a, l) => (r(), i("g", null, [
|
|
761
767
|
(r(), i("path", {
|
|
762
|
-
class:
|
|
768
|
+
class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": e.value.useCssAnimation && !Q.value }),
|
|
763
769
|
key: `arc-${l}`,
|
|
764
|
-
d:
|
|
770
|
+
d: Ge(
|
|
765
771
|
a.startAngle,
|
|
766
772
|
a.endAngle,
|
|
767
773
|
b.value.outer,
|
|
@@ -772,17 +778,17 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
772
778
|
"stroke-width": e.value.style.chart.arcs.strokeWidth,
|
|
773
779
|
"stroke-linecap": "round",
|
|
774
780
|
"stroke-linejoin": "round",
|
|
775
|
-
style:
|
|
776
|
-
opacity:
|
|
781
|
+
style: R({
|
|
782
|
+
opacity: tt(a)
|
|
777
783
|
}),
|
|
778
|
-
onMouseenter: (s) =>
|
|
779
|
-
onMouseleave: (s) =>
|
|
780
|
-
onClick: (s) =>
|
|
781
|
-
}, null, 46,
|
|
784
|
+
onMouseenter: (s) => Rt(a, l),
|
|
785
|
+
onMouseleave: (s) => Ft(a, l),
|
|
786
|
+
onClick: (s) => zt(a, l)
|
|
787
|
+
}, null, 46, Oa)),
|
|
782
788
|
t.$slots.pattern ? (r(), i("path", {
|
|
783
|
-
class:
|
|
789
|
+
class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": e.value.useCssAnimation && !Q.value }),
|
|
784
790
|
key: `arc-${l}`,
|
|
785
|
-
d:
|
|
791
|
+
d: Ge(
|
|
786
792
|
a.startAngle,
|
|
787
793
|
a.endAngle,
|
|
788
794
|
b.value.outer,
|
|
@@ -793,11 +799,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
793
799
|
"stroke-width": e.value.style.chart.arcs.strokeWidth,
|
|
794
800
|
"stroke-linecap": "round",
|
|
795
801
|
"stroke-linejoin": "round",
|
|
796
|
-
style:
|
|
797
|
-
opacity:
|
|
802
|
+
style: R({
|
|
803
|
+
opacity: tt(a),
|
|
798
804
|
pointerEvents: "none"
|
|
799
805
|
})
|
|
800
|
-
}, null, 14,
|
|
806
|
+
}, null, 14, La)) : h("", !0)
|
|
801
807
|
]))), 256)),
|
|
802
808
|
I("g", null, [
|
|
803
809
|
(r(!0), i(z, null, q(C.value ? A.value.chords.filter((a) => a.source.groupId === C.value.id) : g.value ? A.value.chords.filter((a) => a.source.groupId === g.value) : A.value.chords, (a, l) => (r(), i(z, {
|
|
@@ -805,49 +811,49 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
805
811
|
}, [
|
|
806
812
|
a.source.value ? (r(), i("path", {
|
|
807
813
|
key: 0,
|
|
808
|
-
class:
|
|
814
|
+
class: F({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": e.value.useCssAnimation && !Q.value }),
|
|
809
815
|
d: se(a.source, a.target),
|
|
810
816
|
fill: e.value.style.chart.backgroundColor,
|
|
811
|
-
style:
|
|
812
|
-
}, null, 14,
|
|
817
|
+
style: R({ opacity: e.value.style.chart.ribbons.underlayerOpacity })
|
|
818
|
+
}, null, 14, Da)) : h("", !0),
|
|
813
819
|
a.source.value ? (r(), i("path", {
|
|
814
820
|
key: 1,
|
|
815
|
-
class:
|
|
821
|
+
class: F({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": e.value.useCssAnimation && !Q.value }),
|
|
816
822
|
d: se(a.source, a.target),
|
|
817
823
|
fill: m.value.colors[a.source.index],
|
|
818
824
|
stroke: e.value.style.chart.ribbons.stroke,
|
|
819
825
|
"stroke-width": e.value.style.chart.ribbons.strokeWidth,
|
|
820
826
|
"stroke-linecap": "round",
|
|
821
827
|
"stroke-linejoin": "round",
|
|
822
|
-
style:
|
|
823
|
-
onMouseenter: (s) =>
|
|
828
|
+
style: R({ opacity: et(a) }),
|
|
829
|
+
onMouseenter: (s) => Ut({
|
|
824
830
|
...a,
|
|
825
831
|
path: se(a.source, a.target),
|
|
826
832
|
color: m.value.colors[a.source.index]
|
|
827
833
|
}, l),
|
|
828
|
-
onClick: (s) =>
|
|
834
|
+
onClick: (s) => Vt({
|
|
829
835
|
...a,
|
|
830
836
|
color: m.value.colors[a.source.index]
|
|
831
837
|
}, l),
|
|
832
|
-
onMouseleave: (s) =>
|
|
838
|
+
onMouseleave: (s) => Xt({
|
|
833
839
|
...a,
|
|
834
840
|
color: m.value.colors[a.source.index]
|
|
835
841
|
}, l)
|
|
836
|
-
}, null, 46,
|
|
842
|
+
}, null, 46, Ea)) : h("", !0),
|
|
837
843
|
a.source.value && t.$slots.pattern ? (r(), i("path", {
|
|
838
844
|
key: 2,
|
|
839
|
-
class:
|
|
845
|
+
class: F({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": e.value.useCssAnimation && !Q.value }),
|
|
840
846
|
d: se(a.source, a.target),
|
|
841
847
|
fill: `url(#pattern_${k.value}_${a.source.index})`,
|
|
842
848
|
stroke: e.value.style.chart.ribbons.stroke,
|
|
843
849
|
"stroke-width": e.value.style.chart.ribbons.strokeWidth,
|
|
844
850
|
"stroke-linecap": "round",
|
|
845
851
|
"stroke-linejoin": "round",
|
|
846
|
-
style:
|
|
847
|
-
opacity:
|
|
852
|
+
style: R({
|
|
853
|
+
opacity: et(a),
|
|
848
854
|
pointerEvents: "none"
|
|
849
855
|
})
|
|
850
|
-
}, null, 14,
|
|
856
|
+
}, null, 14, Na)) : h("", !0)
|
|
851
857
|
], 64))), 128)),
|
|
852
858
|
p.value ? (r(), i("path", {
|
|
853
859
|
key: 0,
|
|
@@ -857,11 +863,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
857
863
|
"stroke-width": e.value.style.chart.ribbons.strokeWidth,
|
|
858
864
|
"stroke-linecap": "round",
|
|
859
865
|
"stroke-linejoin": "round",
|
|
860
|
-
class:
|
|
866
|
+
class: F({ "vue-ui-chord-ribbon": !0 }),
|
|
861
867
|
style: {
|
|
862
868
|
pointerEvents: "none"
|
|
863
869
|
}
|
|
864
|
-
}, null, 8,
|
|
870
|
+
}, null, 8, Ra)) : h("", !0),
|
|
865
871
|
p.value && t.$slots.pattern ? (r(), i("path", {
|
|
866
872
|
key: 1,
|
|
867
873
|
d: p.value.path,
|
|
@@ -870,14 +876,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
870
876
|
"stroke-width": e.value.style.chart.ribbons.strokeWidth,
|
|
871
877
|
"stroke-linecap": "round",
|
|
872
878
|
"stroke-linejoin": "round",
|
|
873
|
-
class:
|
|
879
|
+
class: F({ "vue-ui-chord-ribbon": !0 }),
|
|
874
880
|
style: {
|
|
875
881
|
pointerEvents: "none"
|
|
876
882
|
}
|
|
877
|
-
}, null, 8,
|
|
883
|
+
}, null, 8, Fa)) : h("", !0)
|
|
878
884
|
]),
|
|
879
|
-
(C.value || p.value || g.value) && e.value.style.chart.ribbons.labels.show ? (r(), i("g",
|
|
880
|
-
(r(!0), i(z, null, q(
|
|
885
|
+
(C.value || p.value || g.value) && e.value.style.chart.ribbons.labels.show ? (r(), i("g", za, [
|
|
886
|
+
(r(!0), i(z, null, q(St.value, (a) => (r(), i(z, {
|
|
881
887
|
key: a.id
|
|
882
888
|
}, [
|
|
883
889
|
I("line", {
|
|
@@ -888,7 +894,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
888
894
|
stroke: e.value.style.chart.backgroundColor,
|
|
889
895
|
"stroke-width": e.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
|
|
890
896
|
"pointer-events": "none"
|
|
891
|
-
}, null, 8,
|
|
897
|
+
}, null, 8, Ua),
|
|
892
898
|
I("line", {
|
|
893
899
|
x1: a.midBaseX,
|
|
894
900
|
y1: a.midBaseY,
|
|
@@ -897,7 +903,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
897
903
|
stroke: e.value.style.chart.ribbons.labels.connector.stroke,
|
|
898
904
|
"stroke-width": e.value.style.chart.ribbons.labels.connector.strokeWidth,
|
|
899
905
|
"pointer-events": "none"
|
|
900
|
-
}, null, 8,
|
|
906
|
+
}, null, 8, Xa),
|
|
901
907
|
e.value.style.chart.ribbons.labels.marker.show ? (r(), i("circle", {
|
|
902
908
|
key: 0,
|
|
903
909
|
cx: Math.cos(a.theta - Math.PI / 2) * (b.value.outer + e.value.style.chart.ribbons.labels.offset + 12),
|
|
@@ -907,99 +913,99 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
907
913
|
"stroke-width": e.value.style.chart.ribbons.labels.marker.strokeWidth,
|
|
908
914
|
fill: a.groupColor,
|
|
909
915
|
"pointer-events": "none"
|
|
910
|
-
}, null, 8,
|
|
916
|
+
}, null, 8, Va)) : h("", !0),
|
|
911
917
|
I("text", {
|
|
912
918
|
transform: `
|
|
913
919
|
translate(
|
|
914
920
|
${Math.cos(a.theta - Math.PI / 2) * (b.value.outer + e.value.style.chart.ribbons.labels.offset + 24)},
|
|
915
921
|
${Math.sin(a.theta - Math.PI / 2) * (b.value.outer + e.value.style.chart.ribbons.labels.offset + 24)}
|
|
916
|
-
) rotate(${-
|
|
922
|
+
) rotate(${-_.value})
|
|
917
923
|
`,
|
|
918
924
|
fill: e.value.style.chart.ribbons.labels.useSerieColor ? a.groupColor : e.value.style.chart.ribbons.labels.color,
|
|
919
|
-
"text-anchor":
|
|
925
|
+
"text-anchor": Dt(a.theta),
|
|
920
926
|
"font-size": e.value.style.chart.ribbons.labels.fontSize,
|
|
921
927
|
"font-weight": e.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
|
|
922
928
|
dy: ".35em",
|
|
923
929
|
"pointer-events": "none"
|
|
924
|
-
}, H(
|
|
930
|
+
}, H(Je(a.value)), 9, ja)
|
|
925
931
|
], 64))), 128))
|
|
926
932
|
])) : h("", !0),
|
|
927
|
-
e.value.style.chart.arcs.labels.show ? (r(), i("g",
|
|
933
|
+
e.value.style.chart.arcs.labels.show ? (r(), i("g", Ya, [
|
|
928
934
|
e.value.style.chart.arcs.labels.curved ? (r(!0), i(z, { key: 0 }, q(A.value.groups, (a, l) => (r(), i("text", {
|
|
929
935
|
class: "vue-ui-chord-label-curved",
|
|
930
936
|
key: `curved-label-${l}`,
|
|
931
937
|
"font-size": e.value.style.chart.arcs.labels.fontSize,
|
|
932
938
|
"font-weight": e.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
933
|
-
fill: e.value.style.chart.arcs.labels.adaptColorToBackground ? d(
|
|
939
|
+
fill: e.value.style.chart.arcs.labels.adaptColorToBackground ? d(ra)(m.value.colors[l]) : e.value.style.chart.arcs.labels.color
|
|
934
940
|
}, [
|
|
935
941
|
I("textPath", {
|
|
936
942
|
href: `#labelPath-${l}_${k.value}`,
|
|
937
943
|
startOffset: "50%",
|
|
938
944
|
"text-anchor": "middle"
|
|
939
|
-
}, H(m.value.labels[l]) + H(e.value.style.chart.arcs.labels.showPercentage ? d(
|
|
945
|
+
}, H(m.value.labels[l]) + H(e.value.style.chart.arcs.labels.showPercentage ? d(_e)({
|
|
940
946
|
p: " (",
|
|
941
947
|
v: isNaN(a.proportion) ? 0 : a.proportion * 100,
|
|
942
948
|
s: "%)",
|
|
943
949
|
r: e.value.style.chart.arcs.labels.roundingPercentage
|
|
944
|
-
}) : ""), 9,
|
|
945
|
-
], 8,
|
|
950
|
+
}) : ""), 9, Wa)
|
|
951
|
+
], 8, Ga))), 128)) : !C.value && !p.value && !g.value ? (r(!0), i(z, { key: 1 }, q(A.value.groups, (a, l) => (r(), i("text", {
|
|
946
952
|
class: "vue-ui-chord-label-straight",
|
|
947
953
|
key: `label-${l}`,
|
|
948
954
|
transform: `
|
|
949
|
-
${
|
|
950
|
-
rotate(${-
|
|
955
|
+
${Et((a.startAngle + a.endAngle) / 2)}
|
|
956
|
+
rotate(${-_.value})
|
|
951
957
|
`,
|
|
952
958
|
dy: ".35em",
|
|
953
|
-
"text-anchor":
|
|
959
|
+
"text-anchor": Lt(a) > Math.PI ? "end" : "start",
|
|
954
960
|
"font-size": e.value.style.chart.arcs.labels.fontSize,
|
|
955
961
|
"font-weight": e.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
956
962
|
fill: e.value.style.chart.arcs.labels.color,
|
|
957
|
-
innerHTML: d(
|
|
958
|
-
content: d(
|
|
963
|
+
innerHTML: d(ua)({
|
|
964
|
+
content: d(ia)(Wt(a, l)),
|
|
959
965
|
fontSize: e.value.style.chart.arcs.labels.fontSize,
|
|
960
966
|
fill: e.value.style.chart.arcs.labels.color,
|
|
961
967
|
x: 0,
|
|
962
968
|
y: 0
|
|
963
969
|
})
|
|
964
|
-
}, null, 8,
|
|
970
|
+
}, null, 8, qa))), 128)) : h("", !0)
|
|
965
971
|
])) : h("", !0)
|
|
966
|
-
], 8,
|
|
972
|
+
], 8, Sa),
|
|
967
973
|
w(t.$slots, "svg", { svg: { height: 600, width: 600 } }, void 0, !0)
|
|
968
|
-
], 42,
|
|
969
|
-
t.$slots.watermark ? (r(), i("div",
|
|
970
|
-
w(t.$slots, "watermark", de(he({ isPrinting: d(Fe) || d(
|
|
974
|
+
], 42, Ia)),
|
|
975
|
+
t.$slots.watermark ? (r(), i("div", Ha, [
|
|
976
|
+
w(t.$slots, "watermark", de(he({ isPrinting: d(Fe) || d(ze) })), void 0, !0)
|
|
971
977
|
])) : h("", !0),
|
|
972
978
|
I("div", {
|
|
973
979
|
id: `legend-bottom-${k.value}`
|
|
974
|
-
}, null, 8,
|
|
975
|
-
|
|
980
|
+
}, null, 8, Qa),
|
|
981
|
+
De.value ? (r(), V(Qt, {
|
|
976
982
|
key: 5,
|
|
977
983
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
978
984
|
}, [
|
|
979
985
|
I("div", {
|
|
980
986
|
ref_key: "chartLegend",
|
|
981
|
-
ref:
|
|
987
|
+
ref: Se
|
|
982
988
|
}, [
|
|
983
|
-
e.value.style.chart.legend.show ? (r(),
|
|
989
|
+
e.value.style.chart.legend.show ? (r(), V(Ca, {
|
|
984
990
|
key: `legend_${me.value}`,
|
|
985
|
-
legendSet:
|
|
986
|
-
config:
|
|
987
|
-
onClickMarker: o[0] || (o[0] = ({ legend: a }) =>
|
|
988
|
-
},
|
|
991
|
+
legendSet: nt.value,
|
|
992
|
+
config: Yt.value,
|
|
993
|
+
onClickMarker: o[0] || (o[0] = ({ legend: a }) => lt(a.id))
|
|
994
|
+
}, Ae({
|
|
989
995
|
item: x(({ legend: a }) => [
|
|
990
996
|
I("div", {
|
|
991
|
-
style:
|
|
997
|
+
style: R({
|
|
992
998
|
opacity: g.value ? g.value === a.id ? 1 : 0.3 : 1
|
|
993
999
|
}),
|
|
994
1000
|
onClick: (l) => a.select()
|
|
995
|
-
}, H(a.name), 13,
|
|
1001
|
+
}, H(a.name), 13, Za)
|
|
996
1002
|
]),
|
|
997
1003
|
_: 2
|
|
998
1004
|
}, [
|
|
999
1005
|
t.$slots.pattern ? {
|
|
1000
1006
|
name: "legend-pattern",
|
|
1001
1007
|
fn: x(({ legend: a, index: l }) => [
|
|
1002
|
-
fe(
|
|
1008
|
+
fe($a, {
|
|
1003
1009
|
shape: a.shape,
|
|
1004
1010
|
radius: 30,
|
|
1005
1011
|
stroke: "none",
|
|
@@ -1010,28 +1016,28 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
1010
1016
|
key: "0"
|
|
1011
1017
|
} : void 0
|
|
1012
1018
|
]), 1032, ["legendSet", "config"])) : h("", !0),
|
|
1013
|
-
w(t.$slots, "legend", { legend:
|
|
1019
|
+
w(t.$slots, "legend", { legend: nt.value }, void 0, !0)
|
|
1014
1020
|
], 512)
|
|
1015
1021
|
], 8, ["to"])) : h("", !0),
|
|
1016
1022
|
t.$slots.source ? (r(), i("div", {
|
|
1017
1023
|
key: 6,
|
|
1018
1024
|
ref_key: "source",
|
|
1019
|
-
ref:
|
|
1025
|
+
ref: Oe,
|
|
1020
1026
|
dir: "auto"
|
|
1021
1027
|
}, [
|
|
1022
1028
|
w(t.$slots, "source", {}, void 0, !0)
|
|
1023
1029
|
], 512)) : h("", !0),
|
|
1024
|
-
|
|
1025
|
-
w(t.$slots, "reset-action", { reset:
|
|
1030
|
+
_.value !== e.value.initialRotation ? (r(), i("div", Ja, [
|
|
1031
|
+
w(t.$slots, "reset-action", { reset: ot }, () => [
|
|
1026
1032
|
I("button", {
|
|
1027
1033
|
"data-cy-reset": "",
|
|
1028
1034
|
tabindex: "0",
|
|
1029
1035
|
role: "button",
|
|
1030
1036
|
class: "vue-data-ui-refresh-button",
|
|
1031
|
-
style:
|
|
1037
|
+
style: R({
|
|
1032
1038
|
background: e.value.style.chart.backgroundColor
|
|
1033
1039
|
}),
|
|
1034
|
-
onClick:
|
|
1040
|
+
onClick: ot
|
|
1035
1041
|
}, [
|
|
1036
1042
|
fe(d(Pe), {
|
|
1037
1043
|
name: "refresh",
|
|
@@ -1040,13 +1046,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
1040
1046
|
], 4)
|
|
1041
1047
|
], !0)
|
|
1042
1048
|
])) : h("", !0),
|
|
1043
|
-
E.value ? (r(),
|
|
1049
|
+
E.value ? (r(), V(Zt(oe.value.component), vt({ key: 8 }, oe.value.props, {
|
|
1044
1050
|
ref_key: "tableUnit",
|
|
1045
1051
|
ref: J,
|
|
1046
|
-
onClose:
|
|
1047
|
-
}),
|
|
1052
|
+
onClose: st
|
|
1053
|
+
}), Ae({
|
|
1048
1054
|
content: x(() => [
|
|
1049
|
-
(r(),
|
|
1055
|
+
(r(), V(d(kt), {
|
|
1050
1056
|
key: `table_${pe.value}`,
|
|
1051
1057
|
colNames: ve.value.colNames,
|
|
1052
1058
|
head: ve.value.head,
|
|
@@ -1054,13 +1060,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
1054
1060
|
config: ve.value.config,
|
|
1055
1061
|
title: e.value.table.useDialog ? "" : oe.value.title,
|
|
1056
1062
|
withCloseButton: !e.value.table.useDialog,
|
|
1057
|
-
onClose:
|
|
1063
|
+
onClose: st
|
|
1058
1064
|
}, {
|
|
1059
1065
|
th: x(({ th: a }) => [
|
|
1060
|
-
|
|
1066
|
+
dt(H(a.name), 1)
|
|
1061
1067
|
]),
|
|
1062
1068
|
td: x(({ td: a }) => [
|
|
1063
|
-
I("div",
|
|
1069
|
+
I("div", Ka, H(a.name ? a.name : Je(a)), 1)
|
|
1064
1070
|
]),
|
|
1065
1071
|
_: 1
|
|
1066
1072
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1070,7 +1076,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
1070
1076
|
e.value.table.useDialog ? {
|
|
1071
1077
|
name: "title",
|
|
1072
1078
|
fn: x(() => [
|
|
1073
|
-
|
|
1079
|
+
dt(H(oe.value.title), 1)
|
|
1074
1080
|
]),
|
|
1075
1081
|
key: "0"
|
|
1076
1082
|
} : void 0,
|
|
@@ -1080,7 +1086,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
1080
1086
|
I("button", {
|
|
1081
1087
|
tabindex: "0",
|
|
1082
1088
|
class: "vue-ui-user-options-button",
|
|
1083
|
-
onClick: o[1] || (o[1] = (a) =>
|
|
1089
|
+
onClick: o[1] || (o[1] = (a) => Me(e.value.userOptions.callbacks.csv))
|
|
1084
1090
|
}, [
|
|
1085
1091
|
fe(d(Pe), {
|
|
1086
1092
|
name: "excel",
|
|
@@ -1091,10 +1097,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
1091
1097
|
key: "1"
|
|
1092
1098
|
} : void 0
|
|
1093
1099
|
]), 1040)) : h("", !0),
|
|
1094
|
-
d(
|
|
1095
|
-
], 46,
|
|
1100
|
+
d(Ee) ? (r(), V(ba, { key: 9 })) : h("", !0)
|
|
1101
|
+
], 46, xa));
|
|
1096
1102
|
}
|
|
1097
|
-
},
|
|
1103
|
+
}, go = /* @__PURE__ */ Ma(eo, [["__scopeId", "data-v-53c6af40"]]);
|
|
1098
1104
|
export {
|
|
1099
|
-
|
|
1105
|
+
go as default
|
|
1100
1106
|
};
|