vue-data-ui 2.17.0 → 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 +2 -1
- package/dist/{Arrow-BAEkZGzL.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-D0VYDhfx.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-Bxlv67uY.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-Cde-wJ3N.js} +3 -3
- package/dist/{Shape-DtFT5EJa.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-CL6-MRI6.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-B-2bV0SW.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CoQnTnr-.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-Dd34lEKb.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-Y_hYz-ZC.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-pPGk-uhD.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-yfk3d1is.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +63 -160
- package/dist/types/vue-data-ui.d.ts +63 -160
- package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-DDHcrl0A.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-D7ZgRDQ_.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-ORUAjkg7.js} +41 -34
- package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-Yl4aRpNc.js} +134 -127
- package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-C307lCPt.js} +90 -83
- package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-BE6PcEdh.js} +101 -94
- package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CUw74AgC.js} +270 -263
- package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-CCPGeAiY.js} +60 -53
- package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-dfyPiQmy.js} +121 -114
- package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-CKa7nFjt.js → vue-ui-donut-D41WeqQU.js} +244 -243
- package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-Deg0dsYg.js} +215 -211
- package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-DDwNoTPG.js} +117 -110
- package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-6oR7IMyi.js} +105 -98
- package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BnXtOJmh.js} +138 -131
- package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-75XC8SpV.js} +150 -146
- package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-w31j915C.js} +125 -118
- package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-BfU62tMW.js} +155 -148
- package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-CFfco-Yj.js} +141 -134
- package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-Tdk3Gd8M.js} +141 -134
- package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-Dg5wS7W5.js} +126 -119
- package/dist/{vue-ui-nested-donuts-D0RgFifU.js → vue-ui-nested-donuts-CpRe0sQB.js} +244 -244
- package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-B8o4ft2v.js} +88 -81
- package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +123 -116
- package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-DiRtZ16w.js} +151 -144
- package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-BRlYC_yT.js} +39 -32
- package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-DKgX1Ibx.js} +58 -51
- package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-MHiAp8dC.js} +127 -120
- package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-DA8verAe.js} +98 -91
- package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-Dh6lFqun.js} +208 -204
- package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-CLC5sTOi.js} +172 -165
- package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-C6rjCYDD.js} +61 -54
- package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-B6cYojHQ.js} +116 -109
- package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-D-oiVT3n.js} +88 -81
- package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-B1bM9Aoo.js} +127 -120
- package/dist/vue-ui-treemap-DX48YlU5.js +965 -0
- package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-6SjKPQWR.js} +233 -226
- package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-CYao9MMw.js} +183 -179
- package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-USuDhMwW.js} +121 -114
- package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-TOBTs7yF.js} +152 -145
- package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-C2qikqBa.js} +77 -70
- package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-DxwgKoO-.js} +229 -222
- package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-N69OpVn8.js} +154 -147
- package/package.json +1 -1
- package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
|
@@ -1,14 +1,14 @@
|
|
|
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
|
|
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-
|
|
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
3
|
import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
4
|
-
import { u as tt } from "./useNestedProp-
|
|
4
|
+
import { u as tt } from "./useNestedProp-BwL5wmVa.js";
|
|
5
5
|
import { u as Wt } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
|
-
import { u as qt } from "./usePrinter-
|
|
6
|
+
import { u as qt } from "./usePrinter-DPh6U_Qk.js";
|
|
7
7
|
import { t as Ht, u as Qt } from "./useResponsive-DfdjqQps.js";
|
|
8
|
-
import Zt from "./Legend-
|
|
9
|
-
import Jt from "./Title-
|
|
10
|
-
import { _ as Kt } from "./Shape-
|
|
11
|
-
import ea from "./img-
|
|
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
12
|
import { _ as ta } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
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 = {
|
|
14
14
|
key: 5,
|
|
@@ -36,9 +36,9 @@ const aa = ["id"], oa = ["xmlns", "viewBox"], la = ["width", "height"], sa = { k
|
|
|
36
36
|
emits: ["selectLegend", "selectGroup", "selectRibbon"],
|
|
37
37
|
setup(at, { expose: ot, emit: lt }) {
|
|
38
38
|
_t((t) => ({
|
|
39
|
-
|
|
39
|
+
"14a1e96b": t.slicerColor
|
|
40
40
|
}));
|
|
41
|
-
const st = Y(() => import("./vue-ui-accordion-
|
|
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({
|
|
42
42
|
get: () => Se(),
|
|
43
43
|
set: (t) => t
|
|
44
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({
|
|
@@ -80,15 +80,15 @@ const aa = ["id"], oa = ["xmlns", "viewBox"], la = ["width", "height"], sa = { k
|
|
|
80
80
|
}), L.value && Oe(), a.value.responsive) {
|
|
81
81
|
const t = Ht(() => {
|
|
82
82
|
const { width: o, height: e, heightNoTitle: l, heightSource: u, heightTitle: s, heightLegend: r } = Qt({
|
|
83
|
-
chart:
|
|
83
|
+
chart: N.value,
|
|
84
84
|
title: a.value.style.chart.title.text ? be.value : null,
|
|
85
85
|
legend: a.value.style.chart.legend.show ? me.value : null,
|
|
86
86
|
source: ye.value,
|
|
87
87
|
noTitle: ke.value
|
|
88
88
|
}), f = s + r + u + l;
|
|
89
|
-
o < e ?
|
|
89
|
+
o < e ? N.value.style.width = "100%" : (N.value.style.height = "100%", Q.value.style.height = `calc(100% - ${f}px)`);
|
|
90
90
|
}, 100);
|
|
91
|
-
X.value && (H.value && X.value.unobserve(H.value), X.value.disconnect()), X.value = new ResizeObserver(t), H.value =
|
|
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();
|
|
92
92
|
}
|
|
93
93
|
Be.value = setTimeout(() => {
|
|
94
94
|
q.value = !0;
|
|
@@ -173,14 +173,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
173
173
|
}), P = ee;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
const
|
|
176
|
+
const E = [];
|
|
177
177
|
for (const c of A) {
|
|
178
178
|
const k = A.find(
|
|
179
179
|
(P) => P.index === c.subIndex && P.subIndex === c.index
|
|
180
180
|
);
|
|
181
|
-
|
|
181
|
+
E.push({ source: c, target: k, id: fe() });
|
|
182
182
|
}
|
|
183
|
-
return { groups: f, chords:
|
|
183
|
+
return { groups: f, chords: E };
|
|
184
184
|
}
|
|
185
185
|
const M = C(() => {
|
|
186
186
|
const t = pt(y.value.matrix, gt.value);
|
|
@@ -252,8 +252,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
252
252
|
for (; e && l++ < 10; ) {
|
|
253
253
|
e = !1;
|
|
254
254
|
for (let f = 1; f < t.length; f += 1) {
|
|
255
|
-
const I = t[f - 1], A = t[f],
|
|
256
|
-
A.theta <
|
|
255
|
+
const I = t[f - 1], A = t[f], E = I.theta + I.w + o;
|
|
256
|
+
A.theta < E && (A.theta = E, e = !0);
|
|
257
257
|
}
|
|
258
258
|
const u = t[0], s = t[t.length - 1], r = s.theta + s.w + o - 2 * Math.PI;
|
|
259
259
|
u.theta < r && (u.theta = r, e = !0);
|
|
@@ -261,12 +261,12 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
261
261
|
return t;
|
|
262
262
|
});
|
|
263
263
|
function Le(t, o, e, l) {
|
|
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,
|
|
265
|
-
return `M${r},${f} A${e},${e} 0 ${O} 1 ${I},${A} L${
|
|
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`;
|
|
266
266
|
}
|
|
267
267
|
function ae(t, o) {
|
|
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,
|
|
269
|
-
return `M${f},${I}A${e},${e} 0 ${j} 1 ${A},${
|
|
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`;
|
|
270
270
|
}
|
|
271
271
|
const Ne = C(() => x.value * Math.PI / 180);
|
|
272
272
|
function yt(t) {
|
|
@@ -425,9 +425,16 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
async function Pt({ scale: t = 2 } = {}) {
|
|
428
|
-
if (!
|
|
429
|
-
const {
|
|
430
|
-
return {
|
|
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
|
+
};
|
|
431
438
|
}
|
|
432
439
|
return ot({
|
|
433
440
|
getData: It,
|
|
@@ -440,13 +447,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
440
447
|
toggleFullscreen: je
|
|
441
448
|
}), (t, o) => (n(), i("div", {
|
|
442
449
|
ref_key: "chordChart",
|
|
443
|
-
ref:
|
|
444
|
-
class:
|
|
450
|
+
ref: N,
|
|
451
|
+
class: z({
|
|
445
452
|
"vue-ui-chord": !0,
|
|
446
453
|
"vue-data-ui-wrapper-fullscreen": de.value,
|
|
447
454
|
"vue-data-ui-responsive": a.value.responsive
|
|
448
455
|
}),
|
|
449
|
-
style:
|
|
456
|
+
style: F(`font-family:${a.value.style.fontFamily};width:100%; text-align:center;background:${a.value.style.chart.backgroundColor}`),
|
|
450
457
|
id: `chord_${S.value}`,
|
|
451
458
|
onMouseenter: o[4] || (o[4] = () => d(Me)(!0)),
|
|
452
459
|
onMouseleave: o[5] || (o[5] = () => d(Me)(!1))
|
|
@@ -503,7 +510,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
503
510
|
hasLabel: !1,
|
|
504
511
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
505
512
|
isFullscreen: de.value,
|
|
506
|
-
chartElement:
|
|
513
|
+
chartElement: N.value,
|
|
507
514
|
position: a.value.userOptions.position,
|
|
508
515
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
509
516
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
@@ -516,7 +523,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
516
523
|
onGenerateImage: d(_e),
|
|
517
524
|
onToggleTable: Ve,
|
|
518
525
|
onToggleAnnotator: ve,
|
|
519
|
-
style:
|
|
526
|
+
style: F({
|
|
520
527
|
visibility: d(xe) ? d(ce) ? "visible" : "hidden" : "visible"
|
|
521
528
|
})
|
|
522
529
|
}, Je({ _: 2 }, [
|
|
@@ -580,7 +587,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
580
587
|
style: {
|
|
581
588
|
overflow: "visible"
|
|
582
589
|
},
|
|
583
|
-
class:
|
|
590
|
+
class: z({ "vue-ui-chord-rotating": J.value, "vue-ui-chord-idle": !J.value }),
|
|
584
591
|
onMousedown: Ke(Re, ["prevent"]),
|
|
585
592
|
onTouchstart: Ke(Re, ["prevent"])
|
|
586
593
|
}, [
|
|
@@ -598,7 +605,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
598
605
|
$(t.$slots, "chart-background", {}, void 0, !0)
|
|
599
606
|
], 8, la)) : v("", !0),
|
|
600
607
|
a.value.style.chart.arcs.labels.curved ? (n(), i("defs", sa, [
|
|
601
|
-
(n(!0), i(
|
|
608
|
+
(n(!0), i(R, null, W(M.value.groups, (e, l) => (n(), i("path", {
|
|
602
609
|
key: `labelPath-${l}`,
|
|
603
610
|
id: `labelPath-${l}_${S.value}`,
|
|
604
611
|
d: Ct(
|
|
@@ -610,16 +617,16 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
610
617
|
}, null, 8, na))), 128))
|
|
611
618
|
])) : v("", !0),
|
|
612
619
|
t.$slots.pattern ? (n(), i("g", ra, [
|
|
613
|
-
(n(!0), i(
|
|
620
|
+
(n(!0), i(R, null, W(M.value.groups, (e, l) => (n(), i("defs", null, [
|
|
614
621
|
$(t.$slots, "pattern", Tt({ ref_for: !0 }, { seriesIndex: e.index, patternId: `pattern_${S.value}_${l}` }), void 0, !0)
|
|
615
622
|
]))), 256))
|
|
616
623
|
])) : v("", !0),
|
|
617
624
|
B("g", {
|
|
618
625
|
transform: `translate(${T.value.width / 2}, ${T.value.height / 2}) rotate(${x.value})`
|
|
619
626
|
}, [
|
|
620
|
-
(n(!0), i(
|
|
627
|
+
(n(!0), i(R, null, W(M.value.groups, (e, l) => (n(), i("g", null, [
|
|
621
628
|
(n(), i("path", {
|
|
622
|
-
class:
|
|
629
|
+
class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
|
|
623
630
|
key: `arc-${l}`,
|
|
624
631
|
d: Le(
|
|
625
632
|
e.startAngle,
|
|
@@ -632,7 +639,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
632
639
|
"stroke-width": a.value.style.chart.arcs.strokeWidth,
|
|
633
640
|
"stroke-linecap": "round",
|
|
634
641
|
"stroke-linejoin": "round",
|
|
635
|
-
style:
|
|
642
|
+
style: F({
|
|
636
643
|
opacity: Ue(e)
|
|
637
644
|
}),
|
|
638
645
|
onMouseenter: () => Mt(e),
|
|
@@ -640,7 +647,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
640
647
|
onClick: (u) => te("selectGroup", e)
|
|
641
648
|
}, null, 46, ia)),
|
|
642
649
|
t.$slots.pattern ? (n(), i("path", {
|
|
643
|
-
class:
|
|
650
|
+
class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
|
|
644
651
|
key: `arc-${l}`,
|
|
645
652
|
d: Le(
|
|
646
653
|
e.startAngle,
|
|
@@ -653,33 +660,33 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
653
660
|
"stroke-width": a.value.style.chart.arcs.strokeWidth,
|
|
654
661
|
"stroke-linecap": "round",
|
|
655
662
|
"stroke-linejoin": "round",
|
|
656
|
-
style:
|
|
663
|
+
style: F({
|
|
657
664
|
opacity: Ue(e),
|
|
658
665
|
pointerEvents: "none"
|
|
659
666
|
})
|
|
660
667
|
}, null, 14, ca)) : v("", !0)
|
|
661
668
|
]))), 256)),
|
|
662
669
|
B("g", null, [
|
|
663
|
-
(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, {
|
|
664
671
|
key: `ribbon-${e.id}`
|
|
665
672
|
}, [
|
|
666
673
|
e.source.value ? (n(), i("path", {
|
|
667
674
|
key: 0,
|
|
668
|
-
class:
|
|
675
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
|
|
669
676
|
d: ae(e.source, e.target),
|
|
670
677
|
fill: a.value.style.chart.backgroundColor,
|
|
671
|
-
style:
|
|
678
|
+
style: F({ opacity: a.value.style.chart.ribbons.underlayerOpacity })
|
|
672
679
|
}, null, 14, da)) : v("", !0),
|
|
673
680
|
e.source.value ? (n(), i("path", {
|
|
674
681
|
key: 1,
|
|
675
|
-
class:
|
|
682
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
|
|
676
683
|
d: ae(e.source, e.target),
|
|
677
684
|
fill: y.value.colors[e.source.index],
|
|
678
685
|
stroke: a.value.style.chart.ribbons.stroke,
|
|
679
686
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
680
687
|
"stroke-linecap": "round",
|
|
681
688
|
"stroke-linejoin": "round",
|
|
682
|
-
style:
|
|
689
|
+
style: F({ opacity: De(e) }),
|
|
683
690
|
onMouseenter: () => xt({
|
|
684
691
|
...e,
|
|
685
692
|
path: ae(e.source, e.target),
|
|
@@ -693,14 +700,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
693
700
|
}, null, 46, va)) : v("", !0),
|
|
694
701
|
e.source.value && t.$slots.pattern ? (n(), i("path", {
|
|
695
702
|
key: 2,
|
|
696
|
-
class:
|
|
703
|
+
class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
|
|
697
704
|
d: ae(e.source, e.target),
|
|
698
705
|
fill: `url(#pattern_${S.value}_${e.source.index})`,
|
|
699
706
|
stroke: a.value.style.chart.ribbons.stroke,
|
|
700
707
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
701
708
|
"stroke-linecap": "round",
|
|
702
709
|
"stroke-linejoin": "round",
|
|
703
|
-
style:
|
|
710
|
+
style: F({
|
|
704
711
|
opacity: De(e),
|
|
705
712
|
pointerEvents: "none"
|
|
706
713
|
})
|
|
@@ -714,7 +721,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
714
721
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
715
722
|
"stroke-linecap": "round",
|
|
716
723
|
"stroke-linejoin": "round",
|
|
717
|
-
class:
|
|
724
|
+
class: z({ "vue-ui-chord-ribbon": !0 }),
|
|
718
725
|
style: {
|
|
719
726
|
pointerEvents: "none"
|
|
720
727
|
}
|
|
@@ -727,14 +734,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
727
734
|
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
728
735
|
"stroke-linecap": "round",
|
|
729
736
|
"stroke-linejoin": "round",
|
|
730
|
-
class:
|
|
737
|
+
class: z({ "vue-ui-chord-ribbon": !0 }),
|
|
731
738
|
style: {
|
|
732
739
|
pointerEvents: "none"
|
|
733
740
|
}
|
|
734
741
|
}, null, 8, ga)) : v("", !0)
|
|
735
742
|
]),
|
|
736
743
|
(w.value || m.value || p.value) && a.value.style.chart.ribbons.labels.show ? (n(), i("g", pa, [
|
|
737
|
-
(n(!0), i(
|
|
744
|
+
(n(!0), i(R, null, W(mt.value, (e) => (n(), i(R, {
|
|
738
745
|
key: e.id
|
|
739
746
|
}, [
|
|
740
747
|
B("line", {
|
|
@@ -782,7 +789,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
782
789
|
], 64))), 128))
|
|
783
790
|
])) : v("", !0),
|
|
784
791
|
a.value.style.chart.arcs.labels.show ? (n(), i("g", $a, [
|
|
785
|
-
a.value.style.chart.arcs.labels.curved ? (n(!0), i(
|
|
792
|
+
a.value.style.chart.arcs.labels.curved ? (n(!0), i(R, { key: 0 }, W(M.value.groups, (e, l) => (n(), i("text", {
|
|
786
793
|
key: `curved-label-${l}`,
|
|
787
794
|
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
788
795
|
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
@@ -798,7 +805,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
798
805
|
s: "%)",
|
|
799
806
|
r: a.value.style.chart.arcs.labels.roundingPercentage
|
|
800
807
|
}) : ""), 9, Ca)
|
|
801
|
-
], 8, wa))), 128)) : !w.value && !m.value && !p.value ? (n(!0), i(
|
|
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", {
|
|
802
809
|
key: `label-${l}`,
|
|
803
810
|
transform: `
|
|
804
811
|
${wt((e.startAngle + e.endAngle) / 2)}
|
|
@@ -846,7 +853,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
846
853
|
}, Je({
|
|
847
854
|
item: _(({ legend: e }) => [
|
|
848
855
|
B("div", {
|
|
849
|
-
style:
|
|
856
|
+
style: F({
|
|
850
857
|
opacity: p.value ? p.value === e.id ? 1 : 0.3 : 1
|
|
851
858
|
}),
|
|
852
859
|
onClick: (l) => e.select()
|
|
@@ -885,7 +892,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
885
892
|
tabindex: "0",
|
|
886
893
|
role: "button",
|
|
887
894
|
class: "vue-data-ui-refresh-button",
|
|
888
|
-
style:
|
|
895
|
+
style: F({
|
|
889
896
|
background: a.value.style.chart.backgroundColor
|
|
890
897
|
}),
|
|
891
898
|
onClick: Ye
|
|
@@ -936,7 +943,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
936
943
|
}, 8, ["config"])) : v("", !0)
|
|
937
944
|
], 46, aa));
|
|
938
945
|
}
|
|
939
|
-
}, Da = /* @__PURE__ */ ta(_a, [["__scopeId", "data-v-
|
|
946
|
+
}, Da = /* @__PURE__ */ ta(_a, [["__scopeId", "data-v-d479992b"]]);
|
|
940
947
|
export {
|
|
941
948
|
Da as default
|
|
942
949
|
};
|