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,82 +1,83 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as He } from "./useNestedProp-
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { t as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { useCssVars as at, computed as z, defineAsyncComponent as V, ref as b, watch as Re, shallowRef as Ee, onMounted as ot, onBeforeUnmount as st, watchEffect as nt, createElementBlock as g, openBlock as y, unref as u, normalizeStyle as le, normalizeClass as Me, createBlock as B, createCommentVNode as k, renderSlot as x, createSlots as rt, withCtx as $, normalizeProps as W, guardReactiveProps as X, createVNode as ut, Fragment as ae, renderList as it, createElementVNode as _, mergeProps as Ae, toDisplayString as Y, createTextVNode as ct, nextTick as De } from "vue";
|
|
2
|
+
import { u as vt, c as Le, t as de, p as oe, a as dt, o as ht, e as ft, b as yt, d as mt, h as Ve, f as he, X as pt, l as bt, F as Z, ag as gt, q as kt, r as xt, i as Be } from "./index-CobsZUkv.js";
|
|
3
|
+
import { u as He } from "./useNestedProp-BwL5wmVa.js";
|
|
4
|
+
import { u as wt } from "./usePrinter-DPh6U_Qk.js";
|
|
5
|
+
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import { t as _t, u as $t } from "./useResponsive-DfdjqQps.js";
|
|
8
|
+
import Tt from "./Title-DpERl1yr.js";
|
|
9
|
+
import Pt from "./img-utitT2Gd.js";
|
|
10
|
+
import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
function Ue(r, i = 0) {
|
|
12
|
+
const f = r.reduce((a, { x: n, r: v }) => Math.min(a, n - v - i), 1 / 0), m = r.reduce((a, { x: n, r: v }) => Math.max(a, n + v + i), -1 / 0), c = r.reduce((a, { y: n, r: v }) => Math.min(a, n - v - i), 1 / 0), o = r.reduce((a, { y: n, r: v }) => Math.max(a, n + v + i), -1 / 0);
|
|
13
|
+
return [f, c, m - f, o - c];
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
-
const m = r._, c = r.next._, o = m.r + c.r, a = (m.x * c.r + c.x * m.r) / o,
|
|
16
|
-
return Math.max(Math.abs(a *
|
|
15
|
+
function Ot(r, i, f) {
|
|
16
|
+
const m = r._, c = r.next._, o = m.r + c.r, a = (m.x * c.r + c.x * m.r) / o, n = (m.y * c.r + c.y * m.r) / o;
|
|
17
|
+
return Math.max(Math.abs(a * f), Math.abs(n * i));
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
-
const m =
|
|
19
|
+
function Ge(r, i, f) {
|
|
20
|
+
const m = Ot, c = r.length;
|
|
20
21
|
if (!c) return r;
|
|
21
|
-
let o, a,
|
|
22
|
+
let o, a, n;
|
|
22
23
|
if (o = r[0], o.x = 0, o.y = 0, !(c > 1) || (a = r[1], o.x = -a.r, a.x = o.r, a.y = 0, !(c > 2))) return r;
|
|
23
|
-
|
|
24
|
+
je(a, o, n = r[2]), o = new se(o), a = new se(a), n = new se(n), o.next = n.previous = a, a.next = o.previous = n, n.next = a.previous = o;
|
|
24
25
|
e: for (let v = 3; v < c; ++v) {
|
|
25
|
-
|
|
26
|
+
je(o._, a._, n = r[v]), n = new se(n);
|
|
26
27
|
let p = a.next, T = o.previous, J = a._.r, N = o._.r;
|
|
27
28
|
do
|
|
28
29
|
if (J <= N) {
|
|
29
|
-
if (
|
|
30
|
+
if (qe(p._, n._)) {
|
|
30
31
|
a = p, o.next = a, a.previous = o, --v;
|
|
31
32
|
continue e;
|
|
32
33
|
}
|
|
33
34
|
J += p._.r, p = p.next;
|
|
34
35
|
} else {
|
|
35
|
-
if (
|
|
36
|
+
if (qe(T._, n._)) {
|
|
36
37
|
o = T, o.next = a, a.previous = o, --v;
|
|
37
38
|
continue e;
|
|
38
39
|
}
|
|
39
40
|
N += T._.r, T = T.previous;
|
|
40
41
|
}
|
|
41
42
|
while (p !== T.next);
|
|
42
|
-
|
|
43
|
-
let P = m(o,
|
|
44
|
-
for (; (
|
|
45
|
-
(
|
|
43
|
+
n.previous = o, n.next = a, o.next = a.previous = a = n;
|
|
44
|
+
let P = m(o, f, i), w;
|
|
45
|
+
for (; (n = n.next) !== a; )
|
|
46
|
+
(w = m(n, f, i)) < P && (o = n, P = w);
|
|
46
47
|
a = o.next;
|
|
47
48
|
}
|
|
48
49
|
return r;
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
+
function je(r, i, f) {
|
|
51
52
|
const m = r.x - i.x, c = r.y - i.y, o = m * m + c * c;
|
|
52
53
|
if (o) {
|
|
53
|
-
const a = (i.r +
|
|
54
|
-
if (a >
|
|
55
|
-
const v = (o +
|
|
56
|
-
|
|
54
|
+
const a = (i.r + f.r) ** 2, n = (r.r + f.r) ** 2;
|
|
55
|
+
if (a > n) {
|
|
56
|
+
const v = (o + n - a) / (2 * o), p = Math.sqrt(Math.max(0, n / o - v * v));
|
|
57
|
+
f.x = r.x - v * m - p * c, f.y = r.y - v * c + p * m;
|
|
57
58
|
} else {
|
|
58
|
-
const v = (o + a -
|
|
59
|
-
|
|
59
|
+
const v = (o + a - n) / (2 * o), p = Math.sqrt(Math.max(0, a / o - v * v));
|
|
60
|
+
f.x = i.x + v * m - p * c, f.y = i.y + v * c + p * m;
|
|
60
61
|
}
|
|
61
62
|
} else
|
|
62
|
-
|
|
63
|
+
f.x = i.x + f.r, f.y = i.y;
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
-
const
|
|
66
|
-
return
|
|
65
|
+
function qe(r, i) {
|
|
66
|
+
const f = r.r + i.r - 1e-6, m = i.x - r.x, c = i.y - r.y;
|
|
67
|
+
return f > 0 && f * f > m * m + c * c;
|
|
67
68
|
}
|
|
68
69
|
class se {
|
|
69
70
|
constructor(i) {
|
|
70
71
|
this._ = i, this.next = null, this.previous = null;
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
const
|
|
74
|
+
const It = ["id"], Ft = ["xmlns", "viewBox", "height", "width"], Nt = ["x", "y", "width", "height"], Rt = ["id"], Et = ["stop-color"], Mt = ["stop-color"], At = ["stop-color"], Dt = { key: 0 }, Lt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onClick"], Vt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], Bt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Ht = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Ut = ["cx", "cy", "r", "opacity", "stroke", "stroke-width", "fill"], Gt = {
|
|
74
75
|
key: 0,
|
|
75
76
|
style: { pointerEvents: "none" }
|
|
76
|
-
},
|
|
77
|
+
}, jt = { key: 1 }, qt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Wt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Xt = {
|
|
77
78
|
key: 6,
|
|
78
79
|
class: "vue-data-ui-watermark"
|
|
79
|
-
},
|
|
80
|
+
}, Yt = ["innerHTML"], Zt = {
|
|
80
81
|
__name: "vue-ui-circle-pack",
|
|
81
82
|
props: {
|
|
82
83
|
config: {
|
|
@@ -93,19 +94,19 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
|
|
|
93
94
|
}
|
|
94
95
|
},
|
|
95
96
|
emits: ["selectDatapoint"],
|
|
96
|
-
setup(r, { expose: i, emit:
|
|
97
|
-
|
|
98
|
-
"
|
|
99
|
-
"
|
|
97
|
+
setup(r, { expose: i, emit: f }) {
|
|
98
|
+
at((t) => ({
|
|
99
|
+
"05e4027a": L.value,
|
|
100
|
+
"85bc3108": ue.value
|
|
100
101
|
}));
|
|
101
|
-
const m =
|
|
102
|
+
const m = V(() => import("./vue-ui-accordion-UewqY6OI.js")), c = V(() => import("./DataTable-Dt-TIOyY.js")), o = V(() => import("./PackageVersion-C-4Ee8BQ.js")), a = V(() => import("./PenAndPaper-Cde-wJ3N.js")), n = V(() => import("./vue-ui-skeleton-8s4xts8z.js")), v = V(() => import("./UserOptions-DTEJ3UM_.js")), p = r, T = f, { vue_ui_circle_pack: J } = vt(), N = z(() => !!p.dataset && p.dataset.length), P = b(Le()), w = b(null), fe = b(null), ye = b(null), me = b(0), pe = b(0), be = b(0), We = b(null), e = z({
|
|
102
103
|
get: () => we(),
|
|
103
104
|
set: (t) => t
|
|
104
|
-
}), { svgRef: ge } =
|
|
105
|
+
}), { svgRef: ge } = zt({ config: e.value.style.chart.title }), {
|
|
105
106
|
userOptionsVisible: ne,
|
|
106
107
|
setUserOptionsVisibility: ke,
|
|
107
108
|
keepUserOptionState: xe
|
|
108
|
-
} =
|
|
109
|
+
} = Ct({ config: e.value });
|
|
109
110
|
function we() {
|
|
110
111
|
const t = He({
|
|
111
112
|
userConfig: p.config,
|
|
@@ -113,94 +114,94 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
|
|
|
113
114
|
});
|
|
114
115
|
return t.theme ? {
|
|
115
116
|
...He({
|
|
116
|
-
userConfig:
|
|
117
|
+
userConfig: dt.vue_ui_circle_pack[t.theme] || p.config,
|
|
117
118
|
defaultConfig: t
|
|
118
119
|
}),
|
|
119
120
|
customPalette: de[t.theme] || oe
|
|
120
121
|
} : t;
|
|
121
122
|
}
|
|
122
|
-
|
|
123
|
+
Re(() => p.config, (t) => {
|
|
123
124
|
e.value = we(), ne.value = !e.value.userOptions.showOnChartHover, re(), me.value += 1, pe.value += 1, H.value.showTable = e.value.table.show;
|
|
124
125
|
}, { deep: !0 });
|
|
125
|
-
const { isPrinting: Ce, isImaging: ze, generatePdf: _e, generateImage: $e } =
|
|
126
|
+
const { isPrinting: Ce, isImaging: ze, generatePdf: _e, generateImage: $e } = wt({
|
|
126
127
|
elementId: `vue-ui-circle-pack_${P.value}`,
|
|
127
128
|
fileName: e.value.style.chart.title.text || "vue-ui-circle-pack",
|
|
128
129
|
options: e.value.userOptions.print
|
|
129
|
-
}),
|
|
130
|
+
}), Xe = z(() => e.value.userOptions.show && !e.value.style.chart.title.text), H = b({
|
|
130
131
|
showTable: e.value.table.show
|
|
131
|
-
}), S =
|
|
132
|
+
}), S = Ee(null), E = Ee(null), M = b({ h: 10, w: 10 }), Te = b(0), A = b([0, 0, 100, 100]), K = b({ h: 0, w: 0 });
|
|
132
133
|
async function re() {
|
|
133
|
-
|
|
134
|
+
ht(p.dataset) && ft({
|
|
134
135
|
componentName: "VueUiCirclePack",
|
|
135
136
|
type: "dataset"
|
|
136
|
-
}),
|
|
137
|
-
const t =
|
|
138
|
-
const { width:
|
|
139
|
-
chart:
|
|
137
|
+
}), D.value = await Ge(Q.value), O.value = Ue(D.value, 1).join(" "), K.value = Pe(w.value);
|
|
138
|
+
const t = _t(() => {
|
|
139
|
+
const { width: s, height: l, heightTitle: h, heightNoTitle: C } = $t({
|
|
140
|
+
chart: w.value,
|
|
140
141
|
title: fe.value,
|
|
141
142
|
noTitle: ye.value
|
|
142
|
-
}),
|
|
143
|
-
Te.value = e.value.style.chart.title.text ?
|
|
144
|
-
|
|
145
|
-
const
|
|
146
|
-
|
|
143
|
+
}), R = s || 10, ve = l && l > 10 ? l : 10;
|
|
144
|
+
Te.value = e.value.style.chart.title.text ? h : C, requestAnimationFrame(() => {
|
|
145
|
+
M.value.w = R, M.value.h = ve - Te.value, De(async () => {
|
|
146
|
+
const tt = Q.value.map((lt) => ({ ...lt }));
|
|
147
|
+
D.value = await Ge(tt, M.value.h, M.value.w), A.value = Ue(D.value, 1), O.value = A.value.join(" "), K.value = Pe(w.value);
|
|
147
148
|
});
|
|
148
149
|
});
|
|
149
150
|
});
|
|
150
|
-
S.value && (
|
|
151
|
+
S.value && (E.value && S.value.unobserve(E.value), S.value.disconnect()), S.value = new ResizeObserver(t), E.value = w.value.parentNode, S.value.observe(E.value);
|
|
151
152
|
}
|
|
152
|
-
|
|
153
|
-
S.value && (
|
|
153
|
+
ot(re), st(() => {
|
|
154
|
+
S.value && (E.value && S.value.unobserve(E.value), S.value.disconnect());
|
|
154
155
|
});
|
|
155
156
|
function Pe(t) {
|
|
156
157
|
if (!t || !t.parentElement)
|
|
157
158
|
return console.warn("Component or parent element is missing."), { w: 0, h: 0 };
|
|
158
|
-
const
|
|
159
|
-
if (
|
|
160
|
-
return { w:
|
|
161
|
-
const l = window.getComputedStyle(
|
|
162
|
-
return
|
|
159
|
+
const s = t.parentElement;
|
|
160
|
+
if (s.offsetWidth > 0 && s.offsetHeight > 0)
|
|
161
|
+
return { w: s.offsetWidth, h: s.offsetHeight };
|
|
162
|
+
const l = window.getComputedStyle(s), h = l.width, C = l.height;
|
|
163
|
+
return h !== "auto" && C !== "auto" && parseFloat(h) > 0 && parseFloat(C) > 0 ? { w: parseFloat(h), h: parseFloat(C) } : { w: 0, h: 0 };
|
|
163
164
|
}
|
|
164
|
-
|
|
165
|
+
Re(() => p.dataset, async (t) => {
|
|
165
166
|
await re();
|
|
166
167
|
}, { deep: !0 });
|
|
167
|
-
const
|
|
168
|
-
const l =
|
|
168
|
+
const Ye = z(() => yt(e.value.customPalette)), Q = z(() => p.dataset.map((t, s) => {
|
|
169
|
+
const l = mt(t.color) || Ye.value[s] || de[e.value.theme || "default"][s % de[e.value.theme || "default"].length] || oe[s] || oe[s % oe.length];
|
|
169
170
|
return {
|
|
170
171
|
...t,
|
|
171
172
|
r: t.value,
|
|
172
|
-
id:
|
|
173
|
+
id: Le(),
|
|
173
174
|
color: l
|
|
174
175
|
};
|
|
175
|
-
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))),
|
|
176
|
-
function Se(t,
|
|
177
|
-
return
|
|
176
|
+
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), D = b([]), O = b("0 0 100 100"), U = z(() => Math.max(...D.value.map((t) => t.r)));
|
|
177
|
+
function Se(t, s) {
|
|
178
|
+
return s / U.value * t;
|
|
178
179
|
}
|
|
179
180
|
const d = b(null);
|
|
180
|
-
function
|
|
181
|
+
function Ze(t) {
|
|
181
182
|
e.value.style.chart.circles.zoom.show && (d.value = t);
|
|
182
183
|
}
|
|
183
|
-
const
|
|
184
|
+
const L = z(() => d.value ? d.value.r : 0), ue = z(() => F.value ? L.value : d.value ? d.value.r > A.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio ? d.value.r : A.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), I = b(0), Je = z(() => ({
|
|
184
185
|
pointerEvents: "none",
|
|
185
186
|
opacity: I.value,
|
|
186
|
-
filter: `drop-shadow(0px 0px 6px ${
|
|
187
|
-
})),
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
filter: `drop-shadow(0px 0px 6px ${Ve(d.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
|
|
188
|
+
})), G = b(L.value);
|
|
189
|
+
nt(() => {
|
|
190
|
+
G.value = L.value, I.value = 0;
|
|
190
191
|
let t = null;
|
|
191
|
-
function
|
|
192
|
+
function s(l) {
|
|
192
193
|
t || (t = l);
|
|
193
|
-
const
|
|
194
|
-
|
|
194
|
+
const h = (l - t) / e.value.style.chart.circles.zoom.animationFrameMs;
|
|
195
|
+
h < 1 ? (G.value = L.value + (ue.value - L.value) * h, I.value = 0 + e.value.style.chart.circles.zoom.opacity * h, requestAnimationFrame(s)) : (G.value = ue.value, I.value = e.value.style.chart.circles.zoom.opacity);
|
|
195
196
|
}
|
|
196
|
-
requestAnimationFrame(
|
|
197
|
+
requestAnimationFrame(s);
|
|
197
198
|
});
|
|
198
|
-
const
|
|
199
|
-
name: e.value.style.chart.circles.zoom.label.name.fontSize *
|
|
200
|
-
value: e.value.style.chart.circles.zoom.label.value.fontSize *
|
|
199
|
+
const j = z(() => ({
|
|
200
|
+
name: e.value.style.chart.circles.zoom.label.name.fontSize * A.value[3] / 300,
|
|
201
|
+
value: e.value.style.chart.circles.zoom.label.value.fontSize * A.value[3] / 300
|
|
201
202
|
}));
|
|
202
203
|
function ie(t) {
|
|
203
|
-
return
|
|
204
|
+
return Be(
|
|
204
205
|
e.value.style.chart.circles.labels.value.formatter,
|
|
205
206
|
t.value,
|
|
206
207
|
he({
|
|
@@ -211,8 +212,8 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
|
|
|
211
212
|
})
|
|
212
213
|
);
|
|
213
214
|
}
|
|
214
|
-
function
|
|
215
|
-
return
|
|
215
|
+
function Ke() {
|
|
216
|
+
return Be(
|
|
216
217
|
e.value.style.chart.circles.zoom.label.value.formatter,
|
|
217
218
|
d.value.value,
|
|
218
219
|
he({
|
|
@@ -226,48 +227,48 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
|
|
|
226
227
|
function Oe(t) {
|
|
227
228
|
if (!t)
|
|
228
229
|
return 0;
|
|
229
|
-
const
|
|
230
|
-
return Math.min(t.r / 2.5,
|
|
230
|
+
const s = t.r / ie(t).length * (ie(t).length === 1 ? 1 : 2);
|
|
231
|
+
return Math.min(t.r / 2.5, s);
|
|
231
232
|
}
|
|
232
|
-
const
|
|
233
|
-
function
|
|
234
|
-
|
|
233
|
+
const q = b(!1);
|
|
234
|
+
function Ie(t) {
|
|
235
|
+
q.value = t, be.value += 1;
|
|
235
236
|
}
|
|
236
237
|
const F = b(!1);
|
|
237
238
|
function ce() {
|
|
238
239
|
F.value = !F.value;
|
|
239
240
|
}
|
|
240
|
-
const ee =
|
|
241
|
+
const ee = z(() => {
|
|
241
242
|
const t = Q.value.map((l) => ({
|
|
242
243
|
name: l.name,
|
|
243
244
|
value: l.value,
|
|
244
245
|
color: l.color
|
|
245
|
-
})).toSorted((l,
|
|
246
|
-
return { head: t, body:
|
|
246
|
+
})).toSorted((l, h) => h.value - l.value), s = t.map((l) => l.value);
|
|
247
|
+
return { head: t, body: s };
|
|
247
248
|
});
|
|
248
|
-
function
|
|
249
|
-
|
|
250
|
-
const
|
|
251
|
-
|
|
252
|
-
], [ee.value.body[
|
|
253
|
-
t ? t(
|
|
249
|
+
function Fe(t = null) {
|
|
250
|
+
De(() => {
|
|
251
|
+
const s = ee.value.head.map((C, R) => [[
|
|
252
|
+
C.name
|
|
253
|
+
], [ee.value.body[R]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(s), h = kt(l);
|
|
254
|
+
t ? t(h) : xt({ csvContent: h, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
|
|
254
255
|
});
|
|
255
256
|
}
|
|
256
|
-
const te =
|
|
257
|
+
const te = z(() => {
|
|
257
258
|
const t = [
|
|
258
259
|
e.value.table.columnNames.datapoint,
|
|
259
260
|
e.value.table.columnNames.value
|
|
260
|
-
],
|
|
261
|
+
], s = ee.value.head.map((C, R) => {
|
|
261
262
|
const ve = he({
|
|
262
263
|
p: e.value.style.chart.circles.labels.value.prefix,
|
|
263
|
-
v: ee.value.body[
|
|
264
|
+
v: ee.value.body[R],
|
|
264
265
|
s: e.value.style.chart.circles.labels.value.suffix,
|
|
265
266
|
r: e.value.style.chart.circles.labels.value.rounding
|
|
266
267
|
});
|
|
267
268
|
return [
|
|
268
269
|
{
|
|
269
|
-
color:
|
|
270
|
-
name:
|
|
270
|
+
color: C.color,
|
|
271
|
+
name: C.name
|
|
271
272
|
},
|
|
272
273
|
ve
|
|
273
274
|
];
|
|
@@ -290,43 +291,57 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
|
|
|
290
291
|
e.value.table.columnNames.value
|
|
291
292
|
],
|
|
292
293
|
head: t,
|
|
293
|
-
body:
|
|
294
|
+
body: s,
|
|
294
295
|
config: l
|
|
295
296
|
};
|
|
296
297
|
});
|
|
297
|
-
function
|
|
298
|
+
function Ne() {
|
|
298
299
|
H.value.showTable = !H.value.showTable;
|
|
299
300
|
}
|
|
300
301
|
function Qe() {
|
|
301
302
|
return Q.value;
|
|
302
303
|
}
|
|
304
|
+
async function et({ scale: t = 2 } = {}) {
|
|
305
|
+
if (!w.value) return;
|
|
306
|
+
const { width: s, height: l } = w.value.getBoundingClientRect(), h = s / l, { imageUri: C, base64: R } = await Pt({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
307
|
+
return {
|
|
308
|
+
imageUri: C,
|
|
309
|
+
base64: R,
|
|
310
|
+
title: e.value.style.chart.title.text,
|
|
311
|
+
width: s,
|
|
312
|
+
height: l,
|
|
313
|
+
aspectRatio: h
|
|
314
|
+
};
|
|
315
|
+
}
|
|
303
316
|
return i({
|
|
304
317
|
getData: Qe,
|
|
305
|
-
|
|
318
|
+
getImage: et,
|
|
319
|
+
generateCsv: Fe,
|
|
306
320
|
generatePdf: _e,
|
|
307
321
|
generateImage: $e,
|
|
308
|
-
toggleTable:
|
|
309
|
-
toggleAnnotator: ce
|
|
310
|
-
|
|
322
|
+
toggleTable: Ne,
|
|
323
|
+
toggleAnnotator: ce,
|
|
324
|
+
toggleFullscreen: Ie
|
|
325
|
+
}), (t, s) => (y(), g("div", {
|
|
311
326
|
id: `vue-ui-circle-pack_${P.value}`,
|
|
312
|
-
class:
|
|
327
|
+
class: Me(`vue-ui-circle-pack ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
313
328
|
ref_key: "circlePackChart",
|
|
314
|
-
ref:
|
|
329
|
+
ref: w,
|
|
315
330
|
style: le(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor}; height: ${K.value.h}px; width:${K.value.w}px`),
|
|
316
|
-
onMouseenter:
|
|
317
|
-
onMouseleave:
|
|
331
|
+
onMouseenter: s[2] || (s[2] = () => u(ke)(!0)),
|
|
332
|
+
onMouseleave: s[3] || (s[3] = () => u(ke)(!1))
|
|
318
333
|
}, [
|
|
319
|
-
e.value.userOptions.buttons.annotator ? (y(),
|
|
334
|
+
e.value.userOptions.buttons.annotator ? (y(), B(u(a), {
|
|
320
335
|
key: 0,
|
|
321
336
|
svgRef: u(ge),
|
|
322
337
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
323
338
|
color: e.value.style.chart.color,
|
|
324
339
|
active: F.value,
|
|
325
|
-
scale:
|
|
340
|
+
scale: U.value / 100,
|
|
326
341
|
onClose: ce
|
|
327
342
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "scale"])) : k("", !0),
|
|
328
343
|
x(t.$slots, "userConfig", {}, void 0, !0),
|
|
329
|
-
|
|
344
|
+
Xe.value ? (y(), g("div", {
|
|
330
345
|
key: 1,
|
|
331
346
|
ref_key: "noTitle",
|
|
332
347
|
ref: ye,
|
|
@@ -339,7 +354,7 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
|
|
|
339
354
|
ref: fe,
|
|
340
355
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
341
356
|
}, [
|
|
342
|
-
(y(),
|
|
357
|
+
(y(), B(Tt, {
|
|
343
358
|
key: `title_${me.value}`,
|
|
344
359
|
config: {
|
|
345
360
|
title: {
|
|
@@ -353,7 +368,7 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
|
|
|
353
368
|
}
|
|
354
369
|
}, null, 8, ["config"]))
|
|
355
370
|
], 512)) : k("", !0),
|
|
356
|
-
e.value.userOptions.show && N.value && (u(xe) || u(ne)) ? (y(),
|
|
371
|
+
e.value.userOptions.show && N.value && (u(xe) || u(ne)) ? (y(), B(u(v), {
|
|
357
372
|
ref: "details",
|
|
358
373
|
key: `user_option_${be.value}`,
|
|
359
374
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -368,70 +383,70 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
|
|
|
368
383
|
hasXls: e.value.userOptions.buttons.csv,
|
|
369
384
|
hasTable: e.value.userOptions.buttons.table,
|
|
370
385
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
371
|
-
isFullscreen:
|
|
372
|
-
chartElement:
|
|
386
|
+
isFullscreen: q.value,
|
|
387
|
+
chartElement: w.value,
|
|
373
388
|
position: e.value.userOptions.position,
|
|
374
389
|
callbacks: e.value.userOptions.callbacks,
|
|
375
390
|
printScale: e.value.userOptions.print.scale,
|
|
376
391
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
377
392
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
378
393
|
isAnnotation: F.value,
|
|
379
|
-
onToggleFullscreen:
|
|
394
|
+
onToggleFullscreen: Ie,
|
|
380
395
|
onGeneratePdf: u(_e),
|
|
381
|
-
onGenerateCsv:
|
|
396
|
+
onGenerateCsv: Fe,
|
|
382
397
|
onGenerateImage: u($e),
|
|
383
|
-
onToggleTable:
|
|
398
|
+
onToggleTable: Ne,
|
|
384
399
|
onToggleAnnotator: ce,
|
|
385
400
|
style: le({
|
|
386
401
|
visibility: u(xe) ? u(ne) ? "visible" : "hidden" : "visible"
|
|
387
402
|
})
|
|
388
|
-
},
|
|
403
|
+
}, rt({ _: 2 }, [
|
|
389
404
|
t.$slots.menuIcon ? {
|
|
390
405
|
name: "menuIcon",
|
|
391
|
-
fn:
|
|
392
|
-
x(t.$slots, "menuIcon", W(X({ isOpen: l, color:
|
|
406
|
+
fn: $(({ isOpen: l, color: h }) => [
|
|
407
|
+
x(t.$slots, "menuIcon", W(X({ isOpen: l, color: h })), void 0, !0)
|
|
393
408
|
]),
|
|
394
409
|
key: "0"
|
|
395
410
|
} : void 0,
|
|
396
411
|
t.$slots.optionPdf ? {
|
|
397
412
|
name: "optionPdf",
|
|
398
|
-
fn:
|
|
413
|
+
fn: $(() => [
|
|
399
414
|
x(t.$slots, "optionPdf", {}, void 0, !0)
|
|
400
415
|
]),
|
|
401
416
|
key: "1"
|
|
402
417
|
} : void 0,
|
|
403
418
|
t.$slots.optionCsv ? {
|
|
404
419
|
name: "optionCsv",
|
|
405
|
-
fn:
|
|
420
|
+
fn: $(() => [
|
|
406
421
|
x(t.$slots, "optionCsv", {}, void 0, !0)
|
|
407
422
|
]),
|
|
408
423
|
key: "2"
|
|
409
424
|
} : void 0,
|
|
410
425
|
t.$slots.optionImg ? {
|
|
411
426
|
name: "optionImg",
|
|
412
|
-
fn:
|
|
427
|
+
fn: $(() => [
|
|
413
428
|
x(t.$slots, "optionImg", {}, void 0, !0)
|
|
414
429
|
]),
|
|
415
430
|
key: "3"
|
|
416
431
|
} : void 0,
|
|
417
432
|
t.$slots.optionTable ? {
|
|
418
433
|
name: "optionTable",
|
|
419
|
-
fn:
|
|
434
|
+
fn: $(() => [
|
|
420
435
|
x(t.$slots, "optionTable", {}, void 0, !0)
|
|
421
436
|
]),
|
|
422
437
|
key: "4"
|
|
423
438
|
} : void 0,
|
|
424
439
|
t.$slots.optionFullscreen ? {
|
|
425
440
|
name: "optionFullscreen",
|
|
426
|
-
fn:
|
|
427
|
-
x(t.$slots, "optionFullscreen", W(X({ toggleFullscreen: l, isFullscreen:
|
|
441
|
+
fn: $(({ toggleFullscreen: l, isFullscreen: h }) => [
|
|
442
|
+
x(t.$slots, "optionFullscreen", W(X({ toggleFullscreen: l, isFullscreen: h })), void 0, !0)
|
|
428
443
|
]),
|
|
429
444
|
key: "5"
|
|
430
445
|
} : void 0,
|
|
431
446
|
t.$slots.optionAnnotator ? {
|
|
432
447
|
name: "optionAnnotator",
|
|
433
|
-
fn:
|
|
434
|
-
x(t.$slots, "optionAnnotator", W(X({ toggleAnnotator: l, isAnnotator:
|
|
448
|
+
fn: $(({ toggleAnnotator: l, isAnnotator: h }) => [
|
|
449
|
+
x(t.$slots, "optionAnnotator", W(X({ toggleAnnotator: l, isAnnotator: h })), void 0, !0)
|
|
435
450
|
]),
|
|
436
451
|
key: "6"
|
|
437
452
|
} : void 0
|
|
@@ -440,14 +455,14 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
|
|
|
440
455
|
key: 4,
|
|
441
456
|
ref_key: "svgRef",
|
|
442
457
|
ref: ge,
|
|
443
|
-
xmlns: u(
|
|
458
|
+
xmlns: u(pt),
|
|
444
459
|
viewBox: O.value,
|
|
445
|
-
height:
|
|
446
|
-
width:
|
|
447
|
-
class:
|
|
460
|
+
height: M.value.h,
|
|
461
|
+
width: M.value.w,
|
|
462
|
+
class: Me({ "vue-data-ui-fullscreen--on": q.value, "vue-data-ui-fulscreen--off": !q.value }),
|
|
448
463
|
style: le(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`)
|
|
449
464
|
}, [
|
|
450
|
-
|
|
465
|
+
ut(u(o)),
|
|
451
466
|
t.$slots["chart-background"] ? (y(), g("foreignObject", {
|
|
452
467
|
key: 0,
|
|
453
468
|
x: O.value.x,
|
|
@@ -459,45 +474,45 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
|
|
|
459
474
|
}
|
|
460
475
|
}, [
|
|
461
476
|
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
462
|
-
], 8,
|
|
463
|
-
(y(!0), g(ae, null,
|
|
464
|
-
|
|
465
|
-
|
|
477
|
+
], 8, Nt)) : k("", !0),
|
|
478
|
+
(y(!0), g(ae, null, it(D.value, (l) => (y(), g(ae, null, [
|
|
479
|
+
_("defs", null, [
|
|
480
|
+
_("radialGradient", {
|
|
466
481
|
id: l.id,
|
|
467
482
|
fy: "30%"
|
|
468
483
|
}, [
|
|
469
|
-
|
|
484
|
+
_("stop", {
|
|
470
485
|
offset: "10%",
|
|
471
|
-
"stop-color": u(
|
|
472
|
-
}, null, 8,
|
|
473
|
-
|
|
486
|
+
"stop-color": u(bt)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
|
|
487
|
+
}, null, 8, Et),
|
|
488
|
+
_("stop", {
|
|
474
489
|
offset: "90%",
|
|
475
|
-
"stop-color": u(
|
|
490
|
+
"stop-color": u(Ve)(l.color, 0.1)
|
|
476
491
|
}, null, 8, Mt),
|
|
477
|
-
|
|
492
|
+
_("stop", {
|
|
478
493
|
offset: "100%",
|
|
479
494
|
"stop-color": l.color
|
|
480
|
-
}, null, 8,
|
|
481
|
-
], 8,
|
|
495
|
+
}, null, 8, At)
|
|
496
|
+
], 8, Rt)
|
|
482
497
|
]),
|
|
483
|
-
t.$slots.pattern ? (y(), g("g",
|
|
484
|
-
|
|
485
|
-
x(t.$slots, "pattern",
|
|
498
|
+
t.$slots.pattern ? (y(), g("g", Dt, [
|
|
499
|
+
_("defs", null, [
|
|
500
|
+
x(t.$slots, "pattern", Ae({ ref_for: !0 }, { ...l, patternId: `pattern_${P.value}_${l.id}` }), void 0, !0)
|
|
486
501
|
])
|
|
487
502
|
])) : k("", !0),
|
|
488
|
-
|
|
503
|
+
_("rect", {
|
|
489
504
|
x: l.x - l.r,
|
|
490
505
|
y: l.y - l.r,
|
|
491
506
|
width: l.r * 2,
|
|
492
507
|
height: l.r * 2,
|
|
493
508
|
stroke: e.value.style.chart.circles.stroke,
|
|
494
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth *
|
|
509
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth * U.value / 100,
|
|
495
510
|
fill: e.value.style.chart.circles.gradient.show ? `url(#${l.id})` : l.color,
|
|
496
511
|
rx: l.r,
|
|
497
|
-
onMouseenter: () =>
|
|
498
|
-
onMouseout:
|
|
499
|
-
onClick: (
|
|
500
|
-
}, null, 40,
|
|
512
|
+
onMouseenter: () => Ze(l),
|
|
513
|
+
onMouseout: s[0] || (s[0] = (h) => d.value = null),
|
|
514
|
+
onClick: (h) => T("selectDatapoint", l)
|
|
515
|
+
}, null, 40, Lt),
|
|
501
516
|
t.$slots.pattern ? (y(), g("rect", {
|
|
502
517
|
key: 1,
|
|
503
518
|
x: l.x - l.r,
|
|
@@ -505,17 +520,17 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
|
|
|
505
520
|
width: l.r * 2,
|
|
506
521
|
height: l.r * 2,
|
|
507
522
|
stroke: e.value.style.chart.circles.stroke,
|
|
508
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth *
|
|
523
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth * U.value / 100,
|
|
509
524
|
fill: `url(#pattern_${P.value}_${l.id})`,
|
|
510
525
|
rx: l.r,
|
|
511
526
|
style: {
|
|
512
527
|
pointerEvents: "none"
|
|
513
528
|
}
|
|
514
|
-
}, null, 8,
|
|
515
|
-
t.$slots["data-label"] ? x(t.$slots, "data-label",
|
|
529
|
+
}, null, 8, Vt)) : k("", !0),
|
|
530
|
+
t.$slots["data-label"] ? x(t.$slots, "data-label", Ae({
|
|
516
531
|
key: 2,
|
|
517
532
|
ref_for: !0
|
|
518
|
-
}, { ...l, createTSpans: u(
|
|
533
|
+
}, { ...l, createTSpans: u(gt), fontSize: { name: l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio, value: Oe(l) * e.value.style.chart.circles.labels.value.fontSizeRatio }, color: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : u(Z)(l.color) }), void 0, !0) : (y(), g(ae, { key: 3 }, [
|
|
519
534
|
e.value.style.chart.circles.labels.name.show && l.name ? (y(), g("text", {
|
|
520
535
|
key: 0,
|
|
521
536
|
style: {
|
|
@@ -529,7 +544,7 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
|
|
|
529
544
|
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : u(Z)(l.color),
|
|
530
545
|
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
531
546
|
"text-anchor": "middle"
|
|
532
|
-
}, Y(l.name), 9,
|
|
547
|
+
}, Y(l.name), 9, Bt)) : k("", !0),
|
|
533
548
|
e.value.style.chart.circles.labels.value.show ? (y(), g("text", {
|
|
534
549
|
key: 1,
|
|
535
550
|
style: {
|
|
@@ -543,54 +558,54 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
|
|
|
543
558
|
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : u(Z)(l.color),
|
|
544
559
|
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
545
560
|
"text-anchor": "middle"
|
|
546
|
-
}, Y(ie(l)), 9,
|
|
561
|
+
}, Y(ie(l)), 9, Ht)) : k("", !0)
|
|
547
562
|
], 64))
|
|
548
563
|
], 64))), 256)),
|
|
549
564
|
d.value && e.value.style.chart.circles.zoom.show && !F.value ? (y(), g(ae, { key: 1 }, [
|
|
550
|
-
|
|
551
|
-
style: le(
|
|
565
|
+
_("circle", {
|
|
566
|
+
style: le(Je.value),
|
|
552
567
|
cx: d.value.x,
|
|
553
568
|
cy: d.value.y,
|
|
554
|
-
r:
|
|
569
|
+
r: G.value,
|
|
555
570
|
opacity: I.value,
|
|
556
571
|
stroke: e.value.style.chart.circles.stroke,
|
|
557
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth *
|
|
572
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth * U.value / 100,
|
|
558
573
|
fill: e.value.style.chart.circles.gradient.show ? `url(#${d.value.id})` : d.value.color
|
|
559
|
-
}, null, 12,
|
|
560
|
-
t.$slots["zoom-label"] ? (y(), g("g",
|
|
561
|
-
x(t.$slots, "zoom-label", W(X({ ...d.value, zoomOpacity: I.value, currentRadius:
|
|
562
|
-
])) : (y(), g("g",
|
|
563
|
-
|
|
574
|
+
}, null, 12, Ut),
|
|
575
|
+
t.$slots["zoom-label"] ? (y(), g("g", Gt, [
|
|
576
|
+
x(t.$slots, "zoom-label", W(X({ ...d.value, zoomOpacity: I.value, currentRadius: G.value, fontSize: j.value })), void 0, !0)
|
|
577
|
+
])) : (y(), g("g", jt, [
|
|
578
|
+
_("text", {
|
|
564
579
|
style: {
|
|
565
580
|
pointerEvents: "none"
|
|
566
581
|
},
|
|
567
582
|
opacity: I.value,
|
|
568
583
|
x: d.value.x,
|
|
569
|
-
y: d.value.y + e.value.style.chart.circles.zoom.label.name.offsetY -
|
|
584
|
+
y: d.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - j.value.name / 4,
|
|
570
585
|
"text-anchor": "middle",
|
|
571
|
-
"font-size":
|
|
586
|
+
"font-size": j.value.name,
|
|
572
587
|
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : u(Z)(d.value.color),
|
|
573
588
|
"font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
|
|
574
|
-
}, Y(d.value.name), 9,
|
|
575
|
-
|
|
589
|
+
}, Y(d.value.name), 9, qt),
|
|
590
|
+
_("text", {
|
|
576
591
|
style: {
|
|
577
592
|
pointerEvents: "none"
|
|
578
593
|
},
|
|
579
594
|
opacity: I.value,
|
|
580
595
|
x: d.value.x,
|
|
581
|
-
y: d.value.y +
|
|
596
|
+
y: d.value.y + j.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
|
|
582
597
|
"text-anchor": "middle",
|
|
583
|
-
"font-size":
|
|
598
|
+
"font-size": j.value.value,
|
|
584
599
|
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : u(Z)(d.value.color),
|
|
585
600
|
"font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
|
|
586
|
-
}, Y(
|
|
601
|
+
}, Y(Ke()), 9, Wt)
|
|
587
602
|
]))
|
|
588
603
|
], 64)) : k("", !0),
|
|
589
604
|
x(t.$slots, "svg", {
|
|
590
605
|
svg: { ...O.value }
|
|
591
606
|
}, void 0, !0)
|
|
592
|
-
], 14,
|
|
593
|
-
N.value ? k("", !0) : (y(),
|
|
607
|
+
], 14, Ft)) : k("", !0),
|
|
608
|
+
N.value ? k("", !0) : (y(), B(u(n), {
|
|
594
609
|
key: 5,
|
|
595
610
|
config: {
|
|
596
611
|
type: "circlePack",
|
|
@@ -599,18 +614,18 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
|
|
|
599
614
|
}
|
|
600
615
|
}
|
|
601
616
|
})),
|
|
602
|
-
t.$slots.watermark ? (y(), g("div",
|
|
617
|
+
t.$slots.watermark ? (y(), g("div", Xt, [
|
|
603
618
|
x(t.$slots, "watermark", W(X({ isPrinting: u(Ce) || u(ze) })), void 0, !0)
|
|
604
619
|
])) : k("", !0),
|
|
605
620
|
t.$slots.source ? (y(), g("div", {
|
|
606
621
|
key: 7,
|
|
607
622
|
ref_key: "source",
|
|
608
|
-
ref:
|
|
623
|
+
ref: We,
|
|
609
624
|
dir: "auto"
|
|
610
625
|
}, [
|
|
611
626
|
x(t.$slots, "source", {}, void 0, !0)
|
|
612
627
|
], 512)) : k("", !0),
|
|
613
|
-
N.value ? (y(),
|
|
628
|
+
N.value ? (y(), B(u(m), {
|
|
614
629
|
key: 8,
|
|
615
630
|
hideDetails: "",
|
|
616
631
|
config: {
|
|
@@ -626,33 +641,33 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
|
|
|
626
641
|
}
|
|
627
642
|
}
|
|
628
643
|
}, {
|
|
629
|
-
content:
|
|
630
|
-
(y(),
|
|
644
|
+
content: $(() => [
|
|
645
|
+
(y(), B(u(c), {
|
|
631
646
|
key: `table_${pe.value}`,
|
|
632
647
|
colNames: te.value.colNames,
|
|
633
648
|
head: te.value.head,
|
|
634
649
|
body: te.value.body,
|
|
635
650
|
config: te.value.config,
|
|
636
651
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
637
|
-
onClose:
|
|
652
|
+
onClose: s[1] || (s[1] = (l) => H.value.showTable = !1)
|
|
638
653
|
}, {
|
|
639
|
-
th:
|
|
640
|
-
|
|
654
|
+
th: $(({ th: l }) => [
|
|
655
|
+
_("div", {
|
|
641
656
|
innerHTML: l,
|
|
642
657
|
style: { display: "flex", "align-items": "center" }
|
|
643
|
-
}, null, 8,
|
|
658
|
+
}, null, 8, Yt)
|
|
644
659
|
]),
|
|
645
|
-
td:
|
|
646
|
-
|
|
660
|
+
td: $(({ td: l }) => [
|
|
661
|
+
ct(Y(l.name || l), 1)
|
|
647
662
|
]),
|
|
648
663
|
_: 1
|
|
649
664
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
650
665
|
]),
|
|
651
666
|
_: 1
|
|
652
667
|
}, 8, ["config"])) : k("", !0)
|
|
653
|
-
], 46,
|
|
668
|
+
], 46, It));
|
|
654
669
|
}
|
|
655
|
-
},
|
|
670
|
+
}, rl = /* @__PURE__ */ St(Zt, [["__scopeId", "data-v-542d122d"]]);
|
|
656
671
|
export {
|
|
657
|
-
|
|
672
|
+
rl as default
|
|
658
673
|
};
|