vue-data-ui 3.7.4 → 3.7.6
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 +6 -5
- package/dist/{PackageVersion-BljCSoe5.js → PackageVersion-DwoTV5mg.js} +1 -1
- package/dist/{Title-C-XBwSUb.js → Title-C6xvSWXZ.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +12 -25
- package/dist/{useNestedProp-BaGpMaAh.js → useNestedProp-CRoetJdp.js} +9 -33
- package/dist/{vue-data-ui-CSw0QfYc.js → vue-data-ui-CxY3FoZp.js} +64 -64
- package/dist/vue-data-ui.js +66 -66
- package/dist/{vue-ui-3d-bar-CU7rBxLX.js → vue-ui-3d-bar-DIBli46b.js} +3 -3
- package/dist/{vue-ui-accordion-D5cPubW1.js → vue-ui-accordion-Bq9tXa5B.js} +1 -1
- package/dist/{vue-ui-age-pyramid-6BQ-MTtZ.js → vue-ui-age-pyramid-Cn0tX34v.js} +3 -3
- package/dist/{vue-ui-annotator-DtD0jPWt.js → vue-ui-annotator-BseUMwp_.js} +2 -2
- package/dist/{vue-ui-bullet-CtasZXxi.js → vue-ui-bullet-ByappHl2.js} +3 -3
- package/dist/{vue-ui-candlestick-h5r2XE89.js → vue-ui-candlestick-CaX9Alej.js} +3 -3
- package/dist/{vue-ui-carousel-table-Bvl9FDFL.js → vue-ui-carousel-table-BLKFuHz-.js} +2 -2
- package/dist/{vue-ui-chestnut-BT9p5HVx.js → vue-ui-chestnut-Cyq0Besb.js} +2 -2
- package/dist/{vue-ui-chord-CZxBkkGQ.js → vue-ui-chord-DZXmMUIh.js} +3 -3
- package/dist/vue-ui-circle-pack-DSq84IsF.js +868 -0
- package/dist/{vue-ui-cursor-CC7T1GfH.js → vue-ui-cursor-DlOBzFbc.js} +1 -1
- package/dist/{vue-ui-dashboard-Ul1i3-oG.js → vue-ui-dashboard-CmtCoi02.js} +64 -64
- package/dist/{vue-ui-digits-rtZhtT7Q.js → vue-ui-digits-Ci8TqNta.js} +1 -1
- package/dist/{vue-ui-donut-6la6ApCC.js → vue-ui-donut-CzusFrIw.js} +3 -3
- package/dist/{vue-ui-donut-evolution-B9qkCeTb.js → vue-ui-donut-evolution-CpJbR5uV.js} +3 -3
- package/dist/{vue-ui-dumbbell-v3jggOfN.js → vue-ui-dumbbell-Dzqd9E7F.js} +3 -3
- package/dist/{vue-ui-flow-CWOhXcLe.js → vue-ui-flow-Chafwpi4.js} +3 -3
- package/dist/{vue-ui-funnel-0SiCPV-Z.js → vue-ui-funnel-Ch4ECPWw.js} +3 -3
- package/dist/{vue-ui-galaxy-DEgjEUB0.js → vue-ui-galaxy-DuTCQcw2.js} +3 -3
- package/dist/{vue-ui-gauge-ESMvX4nV.js → vue-ui-gauge-CqfweycF.js} +3 -3
- package/dist/{vue-ui-gizmo-CWIEq4YB.js → vue-ui-gizmo-DRIZ9jqs.js} +2 -2
- package/dist/{vue-ui-heatmap--hvf90_y.js → vue-ui-heatmap-Dpf9ESfm.js} +4 -4
- package/dist/{vue-ui-history-plot-CpIJlvM4.js → vue-ui-history-plot-CS2mQ6gy.js} +3 -3
- package/dist/{vue-ui-horizontal-bar-B4yRZ9dq.js → vue-ui-horizontal-bar-C1_GyvH6.js} +44 -44
- package/dist/{vue-ui-kpi-PyPAVDAf.js → vue-ui-kpi-Bs6STHvW.js} +2 -2
- package/dist/{vue-ui-mini-loader-CRcsZUk3.js → vue-ui-mini-loader-C20G2gwA.js} +1 -1
- package/dist/{vue-ui-molecule-Co47N5oX.js → vue-ui-molecule-C2yuLBPe.js} +2 -2
- package/dist/{vue-ui-mood-radar-BBCcFqbc.js → vue-ui-mood-radar-D6_JKZD0.js} +3 -3
- package/dist/{vue-ui-nested-donuts-CvgdDIRn.js → vue-ui-nested-donuts-DezXbn3L.js} +3 -3
- package/dist/{vue-ui-onion-BOOqUwnP.js → vue-ui-onion-B2DOSZET.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-CR0rQQI2.js → vue-ui-parallel-coordinate-plot-Cm6Kic4U.js} +3 -3
- package/dist/{vue-ui-quadrant-OXKz7iwD.js → vue-ui-quadrant-N0JObYc0.js} +3 -3
- package/dist/{vue-ui-quick-chart-xcyAPzCY.js → vue-ui-quick-chart-BqIXVDWU.js} +2 -2
- package/dist/{vue-ui-radar-BEw42faF.js → vue-ui-radar-DIAlL-iA.js} +3 -3
- package/dist/{vue-ui-rating-DFSztiJk.js → vue-ui-rating-DBwGHvLN.js} +1 -1
- package/dist/{vue-ui-relation-circle-D2a47mVz.js → vue-ui-relation-circle-BfqW4U8_.js} +3 -3
- package/dist/{vue-ui-ridgeline-DcMh5Jn8.js → vue-ui-ridgeline-dEWypag2.js} +3 -3
- package/dist/{vue-ui-rings-CzIptssM.js → vue-ui-rings-CngJTPYC.js} +3 -3
- package/dist/{vue-ui-scatter-DkAiGTYO.js → vue-ui-scatter-DrrI2Y5p.js} +3 -3
- package/dist/{vue-ui-skeleton-DibgcwmN.js → vue-ui-skeleton-BG9YjwoO.js} +2 -2
- package/dist/{vue-ui-smiley-DXOpLaan.js → vue-ui-smiley-DVVGOxB4.js} +1 -1
- package/dist/{vue-ui-spark-trend-eABjXNqc.js → vue-ui-spark-trend-DBXVFfFJ.js} +2 -2
- package/dist/{vue-ui-sparkbar-BzqNj3P_.js → vue-ui-sparkbar-jWF3jfyJ.js} +2 -2
- package/dist/{vue-ui-sparkgauge-Bl_D5NJC.js → vue-ui-sparkgauge-DppgMczB.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-CbWUOW-M.js → vue-ui-sparkhistogram-CYQ_swIb.js} +2 -2
- package/dist/{vue-ui-sparkline-CN82fpd1.js → vue-ui-sparkline-DR_E6OY3.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-BsvoBM2F.js → vue-ui-sparkstackbar-IwTxoPF7.js} +2 -2
- package/dist/{vue-ui-stackbar-COMKpGb0.js → vue-ui-stackbar-DfmZsCGm.js} +3 -3
- package/dist/{vue-ui-stackline-BmzID3y3.js → vue-ui-stackline-M5CH8so-.js} +3 -3
- package/dist/{vue-ui-strip-plot-B6Y5iTRi.js → vue-ui-strip-plot-CYDM4Qol.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BbyoCxwN.js → vue-ui-table-heatmap-C-dBTmpU.js} +1 -1
- package/dist/{vue-ui-table-D8V7eSk3.js → vue-ui-table-rpcOU1TS.js} +3 -3
- package/dist/{vue-ui-table-sparkline--n5zhrna.js → vue-ui-table-sparkline-D-jJvOFm.js} +2 -2
- package/dist/{vue-ui-thermometer-C1vWa-IH.js → vue-ui-thermometer-Boubn9Xp.js} +3 -3
- package/dist/{vue-ui-timer-3gpgitWo.js → vue-ui-timer-CQSc8aJF.js} +3 -3
- package/dist/{vue-ui-tiremarks-CsWRi530.js → vue-ui-tiremarks-BQpq2dib.js} +3 -3
- package/dist/{vue-ui-treemap-DKGbznIC.js → vue-ui-treemap-COMNOsed.js} +3 -3
- package/dist/{vue-ui-waffle-Bt7YPDoL.js → vue-ui-waffle-CePh_wup.js} +3 -3
- package/dist/{vue-ui-wheel-CeHa66-x.js → vue-ui-wheel-CgXbmiWd.js} +3 -3
- package/dist/{vue-ui-word-cloud-CbirEOP_.js → vue-ui-word-cloud-CqsMucKT.js} +3 -3
- package/dist/{vue-ui-world-wmjBgk9Q.js → vue-ui-world-DSoHB44E.js} +2 -2
- package/dist/{vue-ui-xy-Bd7IIG8k.js → vue-ui-xy-DZWGoVqX.js} +4 -4
- package/dist/{vue-ui-xy-canvas-CGuAhUPl.js → vue-ui-xy-canvas-BMAvV283.js} +3 -3
- package/package.json +1 -1
- package/dist/vue-ui-circle-pack-D8FyhOvX.js +0 -868
|
@@ -1,868 +0,0 @@
|
|
|
1
|
-
import { useCssVars as Pt, computed as k, defineAsyncComponent as R, ref as p, toRefs as Ft, watch as re, onMounted as It, onBeforeUnmount as Mt, watchEffect as Et, createElementBlock as C, openBlock as m, unref as i, normalizeStyle as ue, normalizeClass as Ce, createBlock as G, createCommentVNode as _, renderSlot as b, createElementVNode as z, withCtx as g, normalizeProps as T, guardReactiveProps as S, createSlots as Je, createVNode as Ke, Fragment as ie, renderList as Rt, mergeProps as we, toDisplayString as Y, resolveDynamicComponent as Bt, createTextVNode as Qe, nextTick as Nt } from "vue";
|
|
2
|
-
import { u as Lt, a as xe } from "./useNestedProp-BaGpMaAh.js";
|
|
3
|
-
import { c as We, t as Ut, i as _e, p as ce, o as Vt, g as jt, j as Gt, l as Yt, r as et, d as $e, X as qt, n as Xt, w as ee, T as Zt, u as Ht, q as Jt, a as tt } from "./lib-C5BH09_g.js";
|
|
4
|
-
import { u as Kt } from "./usePrinter-DCJzEiS8.js";
|
|
5
|
-
import { u as Qt, B as Wt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as eo } from "./useSvgExport-DrjCWun4.js";
|
|
7
|
-
import { u as to } from "./useThemeCheck-DGJ31Vi5.js";
|
|
8
|
-
import { u as oo } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
-
import { u as lo } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
-
import { t as ao, u as no } from "./useResponsive-DfdjqQps.js";
|
|
11
|
-
import so from "./img-DUzJeMlr.js";
|
|
12
|
-
import ro from "./Title-C-XBwSUb.js";
|
|
13
|
-
import { _ as uo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
function io(r, v = 0) {
|
|
15
|
-
const h = r.reduce((a, { x: s, r: f }) => Math.min(a, s - f - v), 1 / 0), y = r.reduce((a, { x: s, r: f }) => Math.max(a, s + f + v), -1 / 0), d = r.reduce((a, { y: s, r: f }) => Math.min(a, s - f - v), 1 / 0), n = r.reduce((a, { y: s, r: f }) => Math.max(a, s + f + v), -1 / 0);
|
|
16
|
-
return [h, d, y - h, n - d];
|
|
17
|
-
}
|
|
18
|
-
function co(r, v, h) {
|
|
19
|
-
const y = r._, d = r.next._, n = y.r + d.r, a = (y.x * d.r + d.x * y.r) / n, s = (y.y * d.r + d.y * y.r) / n;
|
|
20
|
-
return Math.max(Math.abs(a * h), Math.abs(s * v));
|
|
21
|
-
}
|
|
22
|
-
function vo(r, v, h) {
|
|
23
|
-
const y = co, d = r.length;
|
|
24
|
-
if (!d) return r;
|
|
25
|
-
let n, a, s;
|
|
26
|
-
if (n = r[0], n.x = 0, n.y = 0, !(d > 1) || (a = r[1], n.x = -a.r, a.x = n.r, a.y = 0, !(d > 2))) return r;
|
|
27
|
-
ot(a, n, s = r[2]), n = new ve(n), a = new ve(a), s = new ve(s), n.next = s.previous = a, a.next = n.previous = s, s.next = a.previous = n;
|
|
28
|
-
e: for (let f = 3; f < d; ++f) {
|
|
29
|
-
ot(n._, a._, s = r[f]), s = new ve(s);
|
|
30
|
-
let x = a.next, w = n.previous, te = a._.r, oe = n._.r;
|
|
31
|
-
do
|
|
32
|
-
if (te <= oe) {
|
|
33
|
-
if (lt(x._, s._)) {
|
|
34
|
-
a = x, n.next = a, a.previous = n, --f;
|
|
35
|
-
continue e;
|
|
36
|
-
}
|
|
37
|
-
te += x._.r, x = x.next;
|
|
38
|
-
} else {
|
|
39
|
-
if (lt(w._, s._)) {
|
|
40
|
-
n = w, n.next = a, a.previous = n, --f;
|
|
41
|
-
continue e;
|
|
42
|
-
}
|
|
43
|
-
oe += w._.r, w = w.previous;
|
|
44
|
-
}
|
|
45
|
-
while (x !== w.next);
|
|
46
|
-
s.previous = n, s.next = a, n.next = a.previous = a = s;
|
|
47
|
-
let le = y(n, h, v), ae;
|
|
48
|
-
for (; (s = s.next) !== a; )
|
|
49
|
-
(ae = y(s, h, v)) < le && (n = s, le = ae);
|
|
50
|
-
a = n.next;
|
|
51
|
-
}
|
|
52
|
-
return r;
|
|
53
|
-
}
|
|
54
|
-
function ot(r, v, h) {
|
|
55
|
-
const y = r.x - v.x, d = r.y - v.y, n = y * y + d * d;
|
|
56
|
-
if (n) {
|
|
57
|
-
const a = (v.r + h.r) ** 2, s = (r.r + h.r) ** 2;
|
|
58
|
-
if (a > s) {
|
|
59
|
-
const f = (n + s - a) / (2 * n), x = Math.sqrt(Math.max(0, s / n - f * f));
|
|
60
|
-
h.x = r.x - f * y - x * d, h.y = r.y - f * d + x * y;
|
|
61
|
-
} else {
|
|
62
|
-
const f = (n + a - s) / (2 * n), x = Math.sqrt(Math.max(0, a / n - f * f));
|
|
63
|
-
h.x = v.x + f * y - x * d, h.y = v.y + f * d + x * y;
|
|
64
|
-
}
|
|
65
|
-
} else
|
|
66
|
-
h.x = v.x + h.r, h.y = v.y;
|
|
67
|
-
}
|
|
68
|
-
function lt(r, v) {
|
|
69
|
-
const h = r.r + v.r - 1e-6, y = v.x - r.x, d = v.y - r.y;
|
|
70
|
-
return h > 0 && h * h > y * y + d * d;
|
|
71
|
-
}
|
|
72
|
-
class ve {
|
|
73
|
-
constructor(v) {
|
|
74
|
-
this._ = v, this.next = null, this.previous = null;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", circles: { stroke: "#1A1A1A" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } } }, nt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", title: { color: "#424242", subtitle: { color: "#757575" } } } } }, st = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, circles: { stroke: "#3A3A3A" } } } }, rt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, circles: { stroke: "#3A3A3A" } } } }, ut = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } } }, it = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", title: { color: "#50606C", subtitle: { color: "#718890" } } } } }, ct = {
|
|
78
|
-
default: {},
|
|
79
|
-
dark: at,
|
|
80
|
-
celebration: nt,
|
|
81
|
-
celebrationNight: st,
|
|
82
|
-
hack: rt,
|
|
83
|
-
zen: ut,
|
|
84
|
-
concrete: it
|
|
85
|
-
}, Xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86
|
-
__proto__: null,
|
|
87
|
-
celebration: nt,
|
|
88
|
-
celebrationNight: st,
|
|
89
|
-
concrete: it,
|
|
90
|
-
dark: at,
|
|
91
|
-
default: ct,
|
|
92
|
-
hack: rt,
|
|
93
|
-
zen: ut
|
|
94
|
-
}, Symbol.toStringTag, { value: "Module" })), fo = ["id"], ho = ["xmlns", "viewBox"], po = ["x", "y", "width", "height"], mo = ["id"], yo = ["stop-color"], bo = ["stop-color"], go = ["stop-color"], ko = { key: 0 }, Co = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onMouseout", "onClick"], wo = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], xo = ["opacity", "x", "y", "font-size", "fill", "font-weight"], _o = ["opacity", "x", "y", "font-size", "fill", "font-weight"], $o = ["cx", "cy", "r", "opacity", "stroke", "stroke-width", "fill"], zo = {
|
|
95
|
-
key: 0,
|
|
96
|
-
style: { pointerEvents: "none" }
|
|
97
|
-
}, Ao = { key: 1 }, To = ["opacity", "x", "y", "font-size", "fill", "font-weight"], So = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Oo = {
|
|
98
|
-
key: 4,
|
|
99
|
-
class: "vue-data-ui-watermark"
|
|
100
|
-
}, Do = ["innerHTML"], Po = {
|
|
101
|
-
__name: "vue-ui-circle-pack",
|
|
102
|
-
props: {
|
|
103
|
-
config: {
|
|
104
|
-
type: Object,
|
|
105
|
-
default() {
|
|
106
|
-
return {};
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
dataset: {
|
|
110
|
-
type: Array,
|
|
111
|
-
default() {
|
|
112
|
-
return [];
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
emits: ["selectDatapoint"],
|
|
117
|
-
setup(r, { expose: v, emit: h }) {
|
|
118
|
-
Pt((t) => ({
|
|
119
|
-
ef798d38: U.value,
|
|
120
|
-
b0115346: ye.value
|
|
121
|
-
}));
|
|
122
|
-
const y = R(() => import("./BaseIcon-CofSxalQ.js")), d = R(() => import("./vue-ui-accordion-D5cPubW1.js")), n = R(() => import("./DataTable-CHaOCmsE.js")), a = R(() => import("./UserOptions-B3I-s3Lw.js")), s = R(() => import("./PenAndPaper-HCZQTkqi.js")), f = R(() => import("./PackageVersion-BljCSoe5.js")), x = R(() => import("./BaseDraggableDialog-CRF94NJQ.js")), w = r, te = h, { vue_ui_circle_pack: oe } = Lt(), { isThemeValid: le, warnInvalidTheme: ae } = to(), ze = k(() => !!w.dataset && w.dataset.length), q = p(We()), A = p(null), Ae = p(null), Te = p(null), Se = p(0), Oe = p(0), De = p(0), Pe = p(null), B = p(null), de = p(null), e = p(he()), { loading: Fe, FINAL_DATASET: Ie } = Qt({
|
|
123
|
-
...Ft(w),
|
|
124
|
-
FINAL_CONFIG: e,
|
|
125
|
-
prepareConfig: he,
|
|
126
|
-
skeletonDataset: [
|
|
127
|
-
{ name: "_", value: 13, color: "#F2F2F2" },
|
|
128
|
-
{ name: "_", value: 8, color: "#DBDBDB" },
|
|
129
|
-
{ name: "_", value: 5, color: "#ADADAD" },
|
|
130
|
-
{ name: "_", value: 3, color: "#969696" },
|
|
131
|
-
{ name: "_", value: 2, color: "#808080" },
|
|
132
|
-
{ name: "_", value: 1, color: "#696969" }
|
|
133
|
-
],
|
|
134
|
-
skeletonConfig: Ut({
|
|
135
|
-
defaultConfig: e.value,
|
|
136
|
-
userConfig: {
|
|
137
|
-
userOptions: { show: !1 },
|
|
138
|
-
table: { show: !1 },
|
|
139
|
-
style: {
|
|
140
|
-
chart: {
|
|
141
|
-
backgroundColor: "#99999930",
|
|
142
|
-
circles: {
|
|
143
|
-
stroke: "#6A6A6A",
|
|
144
|
-
labels: {
|
|
145
|
-
name: { show: !1 },
|
|
146
|
-
value: { show: !1 }
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
})
|
|
153
|
-
}), { svgRef: N } = lo({ config: e.value.style.chart.title }), {
|
|
154
|
-
userOptionsVisible: fe,
|
|
155
|
-
setUserOptionsVisibility: Me,
|
|
156
|
-
keepUserOptionState: Ee
|
|
157
|
-
} = oo({ config: e.value });
|
|
158
|
-
function he() {
|
|
159
|
-
const t = xe({
|
|
160
|
-
userConfig: w.config,
|
|
161
|
-
defaultConfig: oe
|
|
162
|
-
}), l = t.theme;
|
|
163
|
-
if (!l) return t;
|
|
164
|
-
if (!le.value(t))
|
|
165
|
-
return ae(t), t;
|
|
166
|
-
const o = xe({
|
|
167
|
-
userConfig: ct[l] || w.config,
|
|
168
|
-
defaultConfig: t
|
|
169
|
-
}), u = xe({
|
|
170
|
-
userConfig: w.config,
|
|
171
|
-
defaultConfig: o
|
|
172
|
-
});
|
|
173
|
-
return {
|
|
174
|
-
...u,
|
|
175
|
-
customPalette: u.customPalette.length ? u.customPalette : _e[l] || ce
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
re(() => w.config, (t) => {
|
|
179
|
-
e.value = he(), fe.value = !e.value.userOptions.showOnChartHover, pe(), Se.value += 1, Oe.value += 1, M.value.showTable = e.value.table.show;
|
|
180
|
-
}, { deep: !0 });
|
|
181
|
-
const { isPrinting: Re, isImaging: Be, generatePdf: Ne, generateImage: Le } = Kt({
|
|
182
|
-
elementId: `vue-ui-circle-pack_${q.value}`,
|
|
183
|
-
fileName: e.value.style.chart.title.text || "vue-ui-circle-pack",
|
|
184
|
-
options: e.value.userOptions.print
|
|
185
|
-
}), vt = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), M = p({
|
|
186
|
-
showTable: e.value.table.show
|
|
187
|
-
});
|
|
188
|
-
re(e, () => {
|
|
189
|
-
M.value = {
|
|
190
|
-
showTable: e.value.table.show
|
|
191
|
-
};
|
|
192
|
-
}, { immediate: !0 });
|
|
193
|
-
const dt = p({ h: 10, w: 10 }), X = p([0, 0, 100, 100]), ft = k(() => e.value.debug), ht = k(() => {
|
|
194
|
-
const t = e.value.style?.chart || {};
|
|
195
|
-
return t.dimensions && typeof t.dimensions.width == "number" ? t.dimensions.width : typeof t.width == "number" ? t.width : 300;
|
|
196
|
-
}), pt = k(() => {
|
|
197
|
-
const t = e.value.style?.chart || {};
|
|
198
|
-
return t.dimensions && typeof t.dimensions.height == "number" ? t.dimensions.height : typeof t.height == "number" ? t.height : 300;
|
|
199
|
-
}), Z = p([]), D = p("0 0 100 100"), O = p(null), P = p(null);
|
|
200
|
-
function Ue(t, l) {
|
|
201
|
-
dt.value = {
|
|
202
|
-
w: t,
|
|
203
|
-
h: l
|
|
204
|
-
};
|
|
205
|
-
const o = me.value.map((j) => ({ ...j }));
|
|
206
|
-
if (!o.length) {
|
|
207
|
-
Z.value = [], X.value = [0, 0, t, l], D.value = `0 0 ${t} ${l}`;
|
|
208
|
-
return;
|
|
209
|
-
}
|
|
210
|
-
const u = vo(o, l, t), [$, E, Q, ke] = io(u, 1), W = Math.min(
|
|
211
|
-
Q ? t / Q : 1,
|
|
212
|
-
ke ? l / ke : 1
|
|
213
|
-
), Ot = (t - Q * W) / 2, Dt = (l - ke * W) / 2;
|
|
214
|
-
Z.value = u.map((j) => ({
|
|
215
|
-
...j,
|
|
216
|
-
x: (j.x - $) * W + Ot,
|
|
217
|
-
y: (j.y - E) * W + Dt,
|
|
218
|
-
r: j.r * W
|
|
219
|
-
})), X.value = [0, 0, t, l], D.value = `0 0 ${t} ${l}`;
|
|
220
|
-
}
|
|
221
|
-
function mt() {
|
|
222
|
-
if (!e.value.responsive || !A.value) return;
|
|
223
|
-
const t = ao(() => {
|
|
224
|
-
const { width: l, height: o } = no({
|
|
225
|
-
chart: A.value,
|
|
226
|
-
title: e.value.style.chart.title.text ? Ae.value : null,
|
|
227
|
-
legend: null,
|
|
228
|
-
source: Pe.value,
|
|
229
|
-
noTitle: Te.value
|
|
230
|
-
});
|
|
231
|
-
requestAnimationFrame(() => {
|
|
232
|
-
!l || !o || (N.value && (N.value.setAttribute("width", l), N.value.setAttribute("height", o)), Ue(l, o));
|
|
233
|
-
});
|
|
234
|
-
});
|
|
235
|
-
O.value && (P.value && O.value.unobserve(P.value), O.value.disconnect()), O.value = new ResizeObserver(t), P.value = A.value.parentNode || A.value, P.value && O.value.observe(P.value), t();
|
|
236
|
-
}
|
|
237
|
-
function Ve() {
|
|
238
|
-
O.value && (P.value && O.value.unobserve(P.value), O.value.disconnect(), O.value = null, P.value = null);
|
|
239
|
-
}
|
|
240
|
-
async function pe() {
|
|
241
|
-
Vt(w.dataset) && jt({
|
|
242
|
-
componentName: "VueUiCirclePack",
|
|
243
|
-
type: "dataset",
|
|
244
|
-
debug: ft.value
|
|
245
|
-
});
|
|
246
|
-
const t = ht.value, l = pt.value;
|
|
247
|
-
Ue(t, l), e.value.responsive ? mt() : Ve();
|
|
248
|
-
}
|
|
249
|
-
It(pe), Mt(() => {
|
|
250
|
-
Ve();
|
|
251
|
-
}), re(() => Ie.value, async (t) => {
|
|
252
|
-
await pe();
|
|
253
|
-
}, { deep: !0 });
|
|
254
|
-
const yt = k(() => Gt(e.value.customPalette)), me = k(() => Ie.value.map((t, l) => {
|
|
255
|
-
const o = Yt(t.color) || yt.value[l] || _e[e.value.theme || "default"][l % _e[e.value.theme || "default"].length] || ce[l] || ce[l % ce.length];
|
|
256
|
-
return {
|
|
257
|
-
...t,
|
|
258
|
-
r: t.value,
|
|
259
|
-
id: We(),
|
|
260
|
-
color: o
|
|
261
|
-
};
|
|
262
|
-
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), L = k(() => Z.value.length ? Math.max(...Z.value.map((t) => t.r)) : 0);
|
|
263
|
-
function je(t, l) {
|
|
264
|
-
return L.value ? l / L.value * t : 0;
|
|
265
|
-
}
|
|
266
|
-
function bt(t, l) {
|
|
267
|
-
c.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l });
|
|
268
|
-
}
|
|
269
|
-
function gt(t, l) {
|
|
270
|
-
te("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
271
|
-
}
|
|
272
|
-
function kt(t, l) {
|
|
273
|
-
Ct(t), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l });
|
|
274
|
-
}
|
|
275
|
-
const c = p(null);
|
|
276
|
-
function Ct(t) {
|
|
277
|
-
e.value.style.chart.circles.zoom.show && (c.value = t);
|
|
278
|
-
}
|
|
279
|
-
const U = k(() => c.value ? c.value.r : 0), ye = k(() => {
|
|
280
|
-
if (I.value) return U.value;
|
|
281
|
-
if (!c.value) return 0;
|
|
282
|
-
const t = X.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio;
|
|
283
|
-
return c.value.r > t ? c.value.r : t;
|
|
284
|
-
}), F = p(0), wt = k(() => ({
|
|
285
|
-
pointerEvents: "none",
|
|
286
|
-
opacity: F.value,
|
|
287
|
-
filter: c.value ? `drop-shadow(0px 0px 6px ${et(c.value.color, e.value.style.chart.circles.zoom.shadowForce)})` : "none"
|
|
288
|
-
})), H = p(U.value);
|
|
289
|
-
Et(() => {
|
|
290
|
-
H.value = U.value, F.value = 0;
|
|
291
|
-
let t = null;
|
|
292
|
-
function l(o) {
|
|
293
|
-
t || (t = o);
|
|
294
|
-
const u = (o - t) / e.value.style.chart.circles.zoom.animationFrameMs;
|
|
295
|
-
u < 1 ? (H.value = U.value + (ye.value - U.value) * u, F.value = e.value.style.chart.circles.zoom.opacity * u, requestAnimationFrame(l)) : (H.value = ye.value, F.value = e.value.style.chart.circles.zoom.opacity);
|
|
296
|
-
}
|
|
297
|
-
c.value && e.value.style.chart.circles.zoom.show && requestAnimationFrame(l);
|
|
298
|
-
});
|
|
299
|
-
const J = k(() => ({
|
|
300
|
-
name: e.value.style.chart.circles.zoom.label.name.fontSize * X.value[3] / 300,
|
|
301
|
-
value: e.value.style.chart.circles.zoom.label.value.fontSize * X.value[3] / 300
|
|
302
|
-
}));
|
|
303
|
-
function Ge(t) {
|
|
304
|
-
return tt(
|
|
305
|
-
e.value.style.chart.circles.labels.value.formatter,
|
|
306
|
-
t.value,
|
|
307
|
-
$e({
|
|
308
|
-
p: e.value.style.chart.circles.labels.value.prefix,
|
|
309
|
-
v: t.value,
|
|
310
|
-
s: e.value.style.chart.circles.labels.value.suffix,
|
|
311
|
-
r: e.value.style.chart.circles.labels.value.rounding
|
|
312
|
-
})
|
|
313
|
-
);
|
|
314
|
-
}
|
|
315
|
-
function xt() {
|
|
316
|
-
return c.value ? tt(
|
|
317
|
-
e.value.style.chart.circles.zoom.label.value.formatter,
|
|
318
|
-
c.value.value,
|
|
319
|
-
$e({
|
|
320
|
-
p: e.value.style.chart.circles.zoom.label.value.prefix,
|
|
321
|
-
v: c.value.value,
|
|
322
|
-
s: e.value.style.chart.circles.zoom.label.value.suffix,
|
|
323
|
-
r: e.value.style.chart.circles.zoom.label.value.rounding
|
|
324
|
-
})
|
|
325
|
-
) : "";
|
|
326
|
-
}
|
|
327
|
-
function Ye(t) {
|
|
328
|
-
if (!t)
|
|
329
|
-
return 0;
|
|
330
|
-
const l = Ge(t), o = t.r / (l.length || 1) * (l.length === 1 ? 1 : 2);
|
|
331
|
-
return Math.min(t.r / 2.5, o);
|
|
332
|
-
}
|
|
333
|
-
const V = p(!1);
|
|
334
|
-
function qe(t) {
|
|
335
|
-
V.value = t, De.value += 1;
|
|
336
|
-
}
|
|
337
|
-
const I = p(!1);
|
|
338
|
-
function be() {
|
|
339
|
-
I.value = !I.value;
|
|
340
|
-
}
|
|
341
|
-
const ne = k(() => {
|
|
342
|
-
const t = me.value.map((o) => ({
|
|
343
|
-
name: o.name,
|
|
344
|
-
value: o.value,
|
|
345
|
-
color: o.color
|
|
346
|
-
})).toSorted((o, u) => u.value - o.value), l = t.map((o) => o.value);
|
|
347
|
-
return { head: t, body: l };
|
|
348
|
-
});
|
|
349
|
-
function ge(t = null) {
|
|
350
|
-
Nt(() => {
|
|
351
|
-
const l = ne.value.head.map(($, E) => [[$.name], [ne.value.body[E]]]), o = [
|
|
352
|
-
[e.value.style.chart.title.text],
|
|
353
|
-
[e.value.style.chart.title.subtitle.text],
|
|
354
|
-
[[""], [e.value.table.columnNames.value]]
|
|
355
|
-
].concat(l), u = Ht(o);
|
|
356
|
-
t ? t(u) : Jt({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
const se = k(() => {
|
|
360
|
-
const t = [
|
|
361
|
-
e.value.table.columnNames.datapoint,
|
|
362
|
-
e.value.table.columnNames.value
|
|
363
|
-
], l = ne.value.head.map(($, E) => {
|
|
364
|
-
const Q = $e({
|
|
365
|
-
p: e.value.style.chart.circles.labels.value.prefix,
|
|
366
|
-
v: ne.value.body[E],
|
|
367
|
-
s: e.value.style.chart.circles.labels.value.suffix,
|
|
368
|
-
r: e.value.style.chart.circles.labels.value.rounding
|
|
369
|
-
});
|
|
370
|
-
return [
|
|
371
|
-
{
|
|
372
|
-
color: $.color,
|
|
373
|
-
name: $.name
|
|
374
|
-
},
|
|
375
|
-
Q
|
|
376
|
-
];
|
|
377
|
-
}), o = {
|
|
378
|
-
th: {
|
|
379
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
380
|
-
color: e.value.table.th.color,
|
|
381
|
-
outline: e.value.table.th.outline
|
|
382
|
-
},
|
|
383
|
-
td: {
|
|
384
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
385
|
-
color: e.value.table.td.color,
|
|
386
|
-
outline: e.value.table.td.outline
|
|
387
|
-
},
|
|
388
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
389
|
-
};
|
|
390
|
-
return {
|
|
391
|
-
colNames: [
|
|
392
|
-
e.value.table.columnNames.datapoint,
|
|
393
|
-
e.value.table.columnNames.value
|
|
394
|
-
],
|
|
395
|
-
head: t,
|
|
396
|
-
body: l,
|
|
397
|
-
config: o
|
|
398
|
-
};
|
|
399
|
-
});
|
|
400
|
-
function Xe() {
|
|
401
|
-
M.value.showTable = !M.value.showTable;
|
|
402
|
-
}
|
|
403
|
-
function _t() {
|
|
404
|
-
return me.value;
|
|
405
|
-
}
|
|
406
|
-
async function $t({ scale: t = 2 } = {}) {
|
|
407
|
-
if (!A.value) return;
|
|
408
|
-
const { width: l, height: o } = A.value.getBoundingClientRect(), u = l / o, { imageUri: $, base64: E } = await so({ domElement: A.value, base64: !0, img: !0, scale: t });
|
|
409
|
-
return {
|
|
410
|
-
imageUri: $,
|
|
411
|
-
base64: E,
|
|
412
|
-
title: e.value.style.chart.title.text,
|
|
413
|
-
width: l,
|
|
414
|
-
height: o,
|
|
415
|
-
aspectRatio: u
|
|
416
|
-
};
|
|
417
|
-
}
|
|
418
|
-
const K = k(() => {
|
|
419
|
-
const t = e.value.table.useDialog && !e.value.table.show, l = M.value.showTable;
|
|
420
|
-
return {
|
|
421
|
-
component: t ? x : d,
|
|
422
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
423
|
-
props: t ? {
|
|
424
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
425
|
-
color: e.value.table.th.color,
|
|
426
|
-
headerColor: e.value.table.th.color,
|
|
427
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
428
|
-
isFullscreen: V.value,
|
|
429
|
-
fullscreenParent: A.value,
|
|
430
|
-
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
431
|
-
} : {
|
|
432
|
-
hideDetails: !0,
|
|
433
|
-
config: {
|
|
434
|
-
open: l,
|
|
435
|
-
maxHeight: 1e4,
|
|
436
|
-
body: {
|
|
437
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
438
|
-
color: e.value.style.chart.color
|
|
439
|
-
},
|
|
440
|
-
head: {
|
|
441
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
442
|
-
color: e.value.style.chart.color
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
};
|
|
447
|
-
});
|
|
448
|
-
re(() => M.value.showTable, (t) => {
|
|
449
|
-
e.value.table.show || (t && e.value.table.useDialog && B.value ? B.value.open() : B.value && "close" in B.value && B.value.close());
|
|
450
|
-
});
|
|
451
|
-
function Ze() {
|
|
452
|
-
M.value.showTable = !1, de.value && de.value.setTableIconState(!1);
|
|
453
|
-
}
|
|
454
|
-
const zt = k(() => e.value.style.chart.backgroundColor), At = k(() => e.value.style.chart.title), { exportSvg: Tt, getSvg: St } = eo({
|
|
455
|
-
svg: N,
|
|
456
|
-
title: At,
|
|
457
|
-
backgroundColor: zt
|
|
458
|
-
});
|
|
459
|
-
async function He({ isCb: t }) {
|
|
460
|
-
if (t) {
|
|
461
|
-
const { blob: l, url: o, text: u, dataUrl: $ } = await St();
|
|
462
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: u, dataUrl: $ });
|
|
463
|
-
} else
|
|
464
|
-
Tt();
|
|
465
|
-
}
|
|
466
|
-
return v({
|
|
467
|
-
getData: _t,
|
|
468
|
-
getImage: $t,
|
|
469
|
-
generateCsv: ge,
|
|
470
|
-
generatePdf: Ne,
|
|
471
|
-
generateImage: Le,
|
|
472
|
-
generateSvg: He,
|
|
473
|
-
toggleTable: Xe,
|
|
474
|
-
toggleAnnotator: be,
|
|
475
|
-
toggleFullscreen: qe
|
|
476
|
-
}), (t, l) => (m(), C("div", {
|
|
477
|
-
id: `vue-ui-circle-pack_${q.value}`,
|
|
478
|
-
class: Ce(`vue-data-ui-component vue-ui-circle-pack ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${i(Fe) ? "loading" : ""}`),
|
|
479
|
-
ref_key: "circlePackChart",
|
|
480
|
-
ref: A,
|
|
481
|
-
style: ue(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor};`),
|
|
482
|
-
onMouseenter: l[1] || (l[1] = () => i(Me)(!0)),
|
|
483
|
-
onMouseleave: l[2] || (l[2] = () => i(Me)(!1))
|
|
484
|
-
}, [
|
|
485
|
-
e.value.userOptions.buttons.annotator ? (m(), G(i(s), {
|
|
486
|
-
key: 0,
|
|
487
|
-
svgRef: i(N),
|
|
488
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
489
|
-
color: e.value.style.chart.color,
|
|
490
|
-
active: I.value,
|
|
491
|
-
scale: L.value / 100,
|
|
492
|
-
onClose: be
|
|
493
|
-
}, {
|
|
494
|
-
"annotator-action-close": g(() => [
|
|
495
|
-
b(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
496
|
-
]),
|
|
497
|
-
"annotator-action-color": g(({ color: o }) => [
|
|
498
|
-
b(t.$slots, "annotator-action-color", T(S({ color: o })), void 0, !0)
|
|
499
|
-
]),
|
|
500
|
-
"annotator-action-draw": g(({ mode: o }) => [
|
|
501
|
-
b(t.$slots, "annotator-action-draw", T(S({ mode: o })), void 0, !0)
|
|
502
|
-
]),
|
|
503
|
-
"annotator-action-undo": g(({ disabled: o }) => [
|
|
504
|
-
b(t.$slots, "annotator-action-undo", T(S({ disabled: o })), void 0, !0)
|
|
505
|
-
]),
|
|
506
|
-
"annotator-action-redo": g(({ disabled: o }) => [
|
|
507
|
-
b(t.$slots, "annotator-action-redo", T(S({ disabled: o })), void 0, !0)
|
|
508
|
-
]),
|
|
509
|
-
"annotator-action-delete": g(({ disabled: o }) => [
|
|
510
|
-
b(t.$slots, "annotator-action-delete", T(S({ disabled: o })), void 0, !0)
|
|
511
|
-
]),
|
|
512
|
-
_: 3
|
|
513
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active", "scale"])) : _("", !0),
|
|
514
|
-
b(t.$slots, "userConfig", {}, void 0, !0),
|
|
515
|
-
vt.value ? (m(), C("div", {
|
|
516
|
-
key: 1,
|
|
517
|
-
ref_key: "noTitle",
|
|
518
|
-
ref: Te,
|
|
519
|
-
class: "vue-data-ui-no-title-space",
|
|
520
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
521
|
-
}, null, 512)) : _("", !0),
|
|
522
|
-
e.value.style.chart.title.text ? (m(), C("div", {
|
|
523
|
-
key: 2,
|
|
524
|
-
ref_key: "chartTitle",
|
|
525
|
-
ref: Ae,
|
|
526
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
527
|
-
}, [
|
|
528
|
-
(m(), G(ro, {
|
|
529
|
-
key: `title_${Se.value}`,
|
|
530
|
-
config: {
|
|
531
|
-
title: {
|
|
532
|
-
cy: "donut-div-title",
|
|
533
|
-
...e.value.style.chart.title
|
|
534
|
-
},
|
|
535
|
-
subtitle: {
|
|
536
|
-
cy: "donut-div-subtitle",
|
|
537
|
-
...e.value.style.chart.title.subtitle
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
}, null, 8, ["config"]))
|
|
541
|
-
], 512)) : _("", !0),
|
|
542
|
-
e.value.userOptions.show && ze.value && (i(Ee) || i(fe)) ? (m(), G(i(a), {
|
|
543
|
-
ref_key: "userOptionsRef",
|
|
544
|
-
ref: de,
|
|
545
|
-
key: `user_option_${De.value}`,
|
|
546
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
547
|
-
color: e.value.style.chart.color,
|
|
548
|
-
isPrinting: i(Re),
|
|
549
|
-
isImaging: i(Be),
|
|
550
|
-
uid: q.value,
|
|
551
|
-
hasTooltip: !1,
|
|
552
|
-
hasLabel: !1,
|
|
553
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
554
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
555
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
556
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
557
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
558
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
559
|
-
isFullscreen: V.value,
|
|
560
|
-
chartElement: A.value,
|
|
561
|
-
position: e.value.userOptions.position,
|
|
562
|
-
callbacks: e.value.userOptions.callbacks,
|
|
563
|
-
printScale: e.value.userOptions.print.scale,
|
|
564
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
565
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
566
|
-
isAnnotation: I.value,
|
|
567
|
-
tableDialog: e.value.table.useDialog,
|
|
568
|
-
onToggleFullscreen: qe,
|
|
569
|
-
onGeneratePdf: i(Ne),
|
|
570
|
-
onGenerateCsv: ge,
|
|
571
|
-
onGenerateImage: i(Le),
|
|
572
|
-
onGenerateSvg: He,
|
|
573
|
-
onToggleTable: Xe,
|
|
574
|
-
onToggleAnnotator: be,
|
|
575
|
-
style: ue({ visibility: i(Ee) ? i(fe) ? "visible" : "hidden" : "visible" })
|
|
576
|
-
}, Je({ _: 2 }, [
|
|
577
|
-
t.$slots.menuIcon ? {
|
|
578
|
-
name: "menuIcon",
|
|
579
|
-
fn: g(({ isOpen: o, color: u }) => [
|
|
580
|
-
b(t.$slots, "menuIcon", T(S({ isOpen: o, color: u })), void 0, !0)
|
|
581
|
-
]),
|
|
582
|
-
key: "0"
|
|
583
|
-
} : void 0,
|
|
584
|
-
t.$slots.optionPdf ? {
|
|
585
|
-
name: "optionPdf",
|
|
586
|
-
fn: g(() => [
|
|
587
|
-
b(t.$slots, "optionPdf", {}, void 0, !0)
|
|
588
|
-
]),
|
|
589
|
-
key: "1"
|
|
590
|
-
} : void 0,
|
|
591
|
-
t.$slots.optionCsv ? {
|
|
592
|
-
name: "optionCsv",
|
|
593
|
-
fn: g(() => [
|
|
594
|
-
b(t.$slots, "optionCsv", {}, void 0, !0)
|
|
595
|
-
]),
|
|
596
|
-
key: "2"
|
|
597
|
-
} : void 0,
|
|
598
|
-
t.$slots.optionImg ? {
|
|
599
|
-
name: "optionImg",
|
|
600
|
-
fn: g(() => [
|
|
601
|
-
b(t.$slots, "optionImg", {}, void 0, !0)
|
|
602
|
-
]),
|
|
603
|
-
key: "3"
|
|
604
|
-
} : void 0,
|
|
605
|
-
t.$slots.optionSvg ? {
|
|
606
|
-
name: "optionSvg",
|
|
607
|
-
fn: g(() => [
|
|
608
|
-
b(t.$slots, "optionSvg", {}, void 0, !0)
|
|
609
|
-
]),
|
|
610
|
-
key: "4"
|
|
611
|
-
} : void 0,
|
|
612
|
-
t.$slots.optionTable ? {
|
|
613
|
-
name: "optionTable",
|
|
614
|
-
fn: g(() => [
|
|
615
|
-
b(t.$slots, "optionTable", {}, void 0, !0)
|
|
616
|
-
]),
|
|
617
|
-
key: "5"
|
|
618
|
-
} : void 0,
|
|
619
|
-
t.$slots.optionFullscreen ? {
|
|
620
|
-
name: "optionFullscreen",
|
|
621
|
-
fn: g(({ toggleFullscreen: o, isFullscreen: u }) => [
|
|
622
|
-
b(t.$slots, "optionFullscreen", T(S({ toggleFullscreen: o, isFullscreen: u })), void 0, !0)
|
|
623
|
-
]),
|
|
624
|
-
key: "6"
|
|
625
|
-
} : void 0,
|
|
626
|
-
t.$slots.optionAnnotator ? {
|
|
627
|
-
name: "optionAnnotator",
|
|
628
|
-
fn: g(({ toggleAnnotator: o, isAnnotator: u }) => [
|
|
629
|
-
b(t.$slots, "optionAnnotator", T(S({ toggleAnnotator: o, isAnnotator: u })), void 0, !0)
|
|
630
|
-
]),
|
|
631
|
-
key: "7"
|
|
632
|
-
} : void 0
|
|
633
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "printScale", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
|
|
634
|
-
z("div", {
|
|
635
|
-
class: Ce({ "vue-ui-circle-pack-svg-container": !0, "not-responsive": !e.value.responsive })
|
|
636
|
-
}, [
|
|
637
|
-
(m(), C("svg", {
|
|
638
|
-
ref_key: "svgRef",
|
|
639
|
-
ref: N,
|
|
640
|
-
xmlns: i(qt),
|
|
641
|
-
viewBox: D.value,
|
|
642
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
643
|
-
class: Ce({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value, "not-responsive": !e.value.responsive }),
|
|
644
|
-
style: ue(`display:block;${e.value.responsive ? "width:100%;height:auto" : "height:100%;"};overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`)
|
|
645
|
-
}, [
|
|
646
|
-
Ke(i(f)),
|
|
647
|
-
t.$slots["chart-background"] ? (m(), C("foreignObject", {
|
|
648
|
-
key: 0,
|
|
649
|
-
x: D.value.x,
|
|
650
|
-
y: D.value.y,
|
|
651
|
-
width: D.value.width,
|
|
652
|
-
height: D.value.height,
|
|
653
|
-
style: { pointerEvents: "none" }
|
|
654
|
-
}, [
|
|
655
|
-
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
656
|
-
], 8, po)) : _("", !0),
|
|
657
|
-
(m(!0), C(ie, null, Rt(Z.value, (o, u) => (m(), C(ie, {
|
|
658
|
-
key: o.id
|
|
659
|
-
}, [
|
|
660
|
-
z("defs", null, [
|
|
661
|
-
z("radialGradient", {
|
|
662
|
-
id: o.id,
|
|
663
|
-
fy: "30%"
|
|
664
|
-
}, [
|
|
665
|
-
z("stop", {
|
|
666
|
-
offset: "10%",
|
|
667
|
-
"stop-color": i(Xt)(o.color, e.value.style.chart.circles.gradient.intensity / 100)
|
|
668
|
-
}, null, 8, yo),
|
|
669
|
-
z("stop", {
|
|
670
|
-
offset: "90%",
|
|
671
|
-
"stop-color": i(et)(o.color, 0.1)
|
|
672
|
-
}, null, 8, bo),
|
|
673
|
-
z("stop", {
|
|
674
|
-
offset: "100%",
|
|
675
|
-
"stop-color": o.color
|
|
676
|
-
}, null, 8, go)
|
|
677
|
-
], 8, mo)
|
|
678
|
-
]),
|
|
679
|
-
t.$slots.pattern ? (m(), C("g", ko, [
|
|
680
|
-
z("defs", null, [
|
|
681
|
-
b(t.$slots, "pattern", we({ ref_for: !0 }, { ...o, patternId: `pattern_${q.value}_${o.id}` }), void 0, !0)
|
|
682
|
-
])
|
|
683
|
-
])) : _("", !0),
|
|
684
|
-
z("rect", {
|
|
685
|
-
x: o.x - o.r,
|
|
686
|
-
y: o.y - o.r,
|
|
687
|
-
width: o.r * 2,
|
|
688
|
-
height: o.r * 2,
|
|
689
|
-
stroke: e.value.style.chart.circles.stroke,
|
|
690
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth * (L.value || 1) / 100,
|
|
691
|
-
fill: e.value.style.chart.circles.gradient.show ? `url(#${o.id})` : o.color,
|
|
692
|
-
rx: o.r,
|
|
693
|
-
onMouseenter: ($) => kt(o, u),
|
|
694
|
-
onMouseout: ($) => bt(o, u),
|
|
695
|
-
onClick: ($) => gt(o, u)
|
|
696
|
-
}, null, 40, Co),
|
|
697
|
-
t.$slots.pattern ? (m(), C("rect", {
|
|
698
|
-
key: 1,
|
|
699
|
-
x: o.x - o.r,
|
|
700
|
-
y: o.y - o.r,
|
|
701
|
-
width: o.r * 2,
|
|
702
|
-
height: o.r * 2,
|
|
703
|
-
stroke: e.value.style.chart.circles.stroke,
|
|
704
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth * (L.value || 1) / 100,
|
|
705
|
-
fill: `url(#pattern_${q.value}_${o.id})`,
|
|
706
|
-
rx: o.r,
|
|
707
|
-
style: { pointerEvents: "none" }
|
|
708
|
-
}, null, 8, wo)) : _("", !0),
|
|
709
|
-
t.$slots["data-label"] ? b(t.$slots, "data-label", we({
|
|
710
|
-
key: 2,
|
|
711
|
-
ref_for: !0
|
|
712
|
-
}, {
|
|
713
|
-
...o,
|
|
714
|
-
createTSpans: i(Zt),
|
|
715
|
-
fontSize: {
|
|
716
|
-
name: o.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
717
|
-
value: Ye(o) * e.value.style.chart.circles.labels.value.fontSizeRatio
|
|
718
|
-
},
|
|
719
|
-
color: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : i(ee)(o.color)
|
|
720
|
-
}), void 0, !0) : (m(), C(ie, { key: 3 }, [
|
|
721
|
-
e.value.style.chart.circles.labels.name.show && o.name ? (m(), C("text", {
|
|
722
|
-
key: 0,
|
|
723
|
-
style: {
|
|
724
|
-
pointerEvents: "none",
|
|
725
|
-
transition: "opacity 0.2s ease-in-out"
|
|
726
|
-
},
|
|
727
|
-
opacity: c.value && !I.value ? 0.2 : 1,
|
|
728
|
-
x: o.x,
|
|
729
|
-
y: o.y + je(o.r, e.value.style.chart.circles.labels.name.offsetY) - o.r / 10,
|
|
730
|
-
"font-size": o.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
731
|
-
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : i(ee)(o.color),
|
|
732
|
-
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
733
|
-
"text-anchor": "middle"
|
|
734
|
-
}, Y(o.name), 9, xo)) : _("", !0),
|
|
735
|
-
e.value.style.chart.circles.labels.value.show ? (m(), C("text", {
|
|
736
|
-
key: 1,
|
|
737
|
-
style: {
|
|
738
|
-
pointerEvents: "none",
|
|
739
|
-
transition: "opacity 0.2s ease-in-out"
|
|
740
|
-
},
|
|
741
|
-
opacity: c.value && !I.value ? 0.2 : 1,
|
|
742
|
-
x: o.x,
|
|
743
|
-
y: o.y + je(o.r, e.value.style.chart.circles.labels.value.offsetY) + o.r / 2.5,
|
|
744
|
-
"font-size": Ye(o) * e.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
745
|
-
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : i(ee)(o.color),
|
|
746
|
-
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
747
|
-
"text-anchor": "middle"
|
|
748
|
-
}, Y(Ge(o)), 9, _o)) : _("", !0)
|
|
749
|
-
], 64))
|
|
750
|
-
], 64))), 128)),
|
|
751
|
-
c.value && e.value.style.chart.circles.zoom.show && !I.value ? (m(), C(ie, { key: 1 }, [
|
|
752
|
-
z("circle", {
|
|
753
|
-
style: ue(wt.value),
|
|
754
|
-
cx: c.value.x,
|
|
755
|
-
cy: c.value.y,
|
|
756
|
-
r: H.value,
|
|
757
|
-
opacity: F.value,
|
|
758
|
-
stroke: e.value.style.chart.circles.stroke,
|
|
759
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth * (L.value || 1) / 100,
|
|
760
|
-
fill: e.value.style.chart.circles.gradient.show ? `url(#${c.value.id})` : c.value.color
|
|
761
|
-
}, null, 12, $o),
|
|
762
|
-
t.$slots["zoom-label"] ? (m(), C("g", zo, [
|
|
763
|
-
b(t.$slots, "zoom-label", T(S({ ...c.value, zoomOpacity: F.value, currentRadius: H.value, fontSize: J.value })), void 0, !0)
|
|
764
|
-
])) : (m(), C("g", Ao, [
|
|
765
|
-
z("text", {
|
|
766
|
-
style: { pointerEvents: "none" },
|
|
767
|
-
opacity: F.value,
|
|
768
|
-
x: c.value.x,
|
|
769
|
-
y: c.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - J.value.name / 4,
|
|
770
|
-
"text-anchor": "middle",
|
|
771
|
-
"font-size": J.value.name,
|
|
772
|
-
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : i(ee)(c.value.color),
|
|
773
|
-
"font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
|
|
774
|
-
}, Y(c.value.name), 9, To),
|
|
775
|
-
z("text", {
|
|
776
|
-
style: { pointerEvents: "none" },
|
|
777
|
-
opacity: F.value,
|
|
778
|
-
x: c.value.x,
|
|
779
|
-
y: c.value.y + J.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
|
|
780
|
-
"text-anchor": "middle",
|
|
781
|
-
"font-size": J.value.value,
|
|
782
|
-
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : i(ee)(c.value.color),
|
|
783
|
-
"font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
|
|
784
|
-
}, Y(xt()), 9, So)
|
|
785
|
-
]))
|
|
786
|
-
], 64)) : _("", !0),
|
|
787
|
-
b(t.$slots, "svg", {
|
|
788
|
-
svg: { ...D.value }
|
|
789
|
-
}, void 0, !0)
|
|
790
|
-
], 14, ho))
|
|
791
|
-
], 2),
|
|
792
|
-
t.$slots.watermark ? (m(), C("div", Oo, [
|
|
793
|
-
b(t.$slots, "watermark", T(S({ isPrinting: i(Re) || i(Be) })), void 0, !0)
|
|
794
|
-
])) : _("", !0),
|
|
795
|
-
t.$slots.source ? (m(), C("div", {
|
|
796
|
-
key: 5,
|
|
797
|
-
ref_key: "source",
|
|
798
|
-
ref: Pe,
|
|
799
|
-
dir: "auto"
|
|
800
|
-
}, [
|
|
801
|
-
b(t.$slots, "source", {}, void 0, !0)
|
|
802
|
-
], 512)) : _("", !0),
|
|
803
|
-
ze.value && e.value.userOptions.buttons.table ? (m(), G(Bt(K.value.component), we({ key: 6 }, K.value.props, {
|
|
804
|
-
ref_key: "tableUnit",
|
|
805
|
-
ref: B,
|
|
806
|
-
onClose: Ze
|
|
807
|
-
}), Je({
|
|
808
|
-
content: g(() => [
|
|
809
|
-
(m(), G(i(n), {
|
|
810
|
-
key: `table_${Oe.value}`,
|
|
811
|
-
colNames: se.value.colNames,
|
|
812
|
-
head: se.value.head,
|
|
813
|
-
body: se.value.body,
|
|
814
|
-
config: se.value.config,
|
|
815
|
-
title: e.value.table.useDialog ? "" : K.value.title,
|
|
816
|
-
withCloseButton: !e.value.table.useDialog,
|
|
817
|
-
onClose: Ze
|
|
818
|
-
}, {
|
|
819
|
-
th: g(({ th: o }) => [
|
|
820
|
-
z("div", {
|
|
821
|
-
innerHTML: o,
|
|
822
|
-
style: { display: "flex", "align-items": "center" }
|
|
823
|
-
}, null, 8, Do)
|
|
824
|
-
]),
|
|
825
|
-
td: g(({ td: o }) => [
|
|
826
|
-
Qe(Y(o.name || o), 1)
|
|
827
|
-
]),
|
|
828
|
-
_: 1
|
|
829
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
830
|
-
]),
|
|
831
|
-
_: 2
|
|
832
|
-
}, [
|
|
833
|
-
e.value.table.useDialog ? {
|
|
834
|
-
name: "title",
|
|
835
|
-
fn: g(() => [
|
|
836
|
-
Qe(Y(K.value.title), 1)
|
|
837
|
-
]),
|
|
838
|
-
key: "0"
|
|
839
|
-
} : void 0,
|
|
840
|
-
e.value.table.useDialog ? {
|
|
841
|
-
name: "actions",
|
|
842
|
-
fn: g(() => [
|
|
843
|
-
z("button", {
|
|
844
|
-
tabindex: "0",
|
|
845
|
-
class: "vue-ui-user-options-button",
|
|
846
|
-
onClick: l[0] || (l[0] = (o) => ge(e.value.userOptions.callbacks.csv))
|
|
847
|
-
}, [
|
|
848
|
-
Ke(i(y), {
|
|
849
|
-
name: "excel",
|
|
850
|
-
stroke: K.value.props.color
|
|
851
|
-
}, null, 8, ["stroke"])
|
|
852
|
-
])
|
|
853
|
-
]),
|
|
854
|
-
key: "1"
|
|
855
|
-
} : void 0
|
|
856
|
-
]), 1040)) : _("", !0),
|
|
857
|
-
i(Fe) ? (m(), G(Wt, { key: 7 })) : _("", !0)
|
|
858
|
-
], 46, fo));
|
|
859
|
-
}
|
|
860
|
-
}, Fo = /* @__PURE__ */ uo(Po, [["__scopeId", "data-v-c0b18afd"]]), Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
861
|
-
__proto__: null,
|
|
862
|
-
default: Fo
|
|
863
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
864
|
-
export {
|
|
865
|
-
Xo as a,
|
|
866
|
-
Zo as b,
|
|
867
|
-
Fo as v
|
|
868
|
-
};
|