vue-data-ui 2.12.8-beta.2 → 2.12.8-beta.4
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 +21 -0
- package/dist/{Arrow-HbfibAF0.js → Arrow-XoY1VXNf.js} +1 -1
- package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-CXe0WfN-.js} +2 -2
- package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-d4dmqhkb.js} +1 -1
- package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-B3v0IhDO.js} +2 -2
- package/dist/{DataTable-CsoAI95B.js → DataTable-CmbjnjRg.js} +2 -2
- package/dist/{Legend-ZW-PFcHg.js → Legend-YPYnzTBz.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-SD-bH_GI.js} +3 -3
- package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-OcbP0WH2.js} +1 -1
- package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-BgPXmpGI.js} +3 -3
- package/dist/{Shape-BBbhObHC.js → Shape-WvXjwML_.js} +1 -1
- package/dist/{Slicer-Vh74fjdf.js → Slicer-CaMHCF_p.js} +2 -2
- package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-BTLad6y3.js} +1 -1
- package/dist/{Title-Dx8ctnVy.js → Title-CJcZXNtK.js} +1 -1
- package/dist/{Tooltip-COHlzpZI.js → Tooltip-dXp8FaUj.js} +1 -1
- package/dist/{UserOptions-CGn3YdRV.js → UserOptions-Cs7JW3dK.js} +154 -138
- package/dist/dom-to-png-DGfv21rX.js +247 -0
- package/dist/img-fdViJw1e.js +20 -0
- package/dist/{index-CbcpITE_.js → index-BzQ0j5xI.js} +190 -128
- package/dist/{pdf-Cy09nTjn.js → pdf-Bj65uPK-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +60 -1
- package/dist/types/vue-data-ui.d.ts +60 -1
- package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-DqpZEE3h.js} +1 -1
- package/dist/{usePrinter-u-gQiRNz.js → usePrinter-CpG5jh_z.js} +2 -2
- package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-CeIncf6V.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-fAJK0nIB.js} +175 -174
- package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-bpaEpjqI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-D5w5EqmV.js} +200 -199
- package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-CSGemK-O.js} +2 -2
- package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-FPBahjOr.js} +9 -8
- package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-BpP9MQC2.js} +115 -114
- package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-lpdLFAfT.js} +80 -79
- package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-D5um0tmC.js} +453 -452
- package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-CgrXXOgv.js} +43 -42
- package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-Jk-Yd8T_.js} +143 -142
- package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-BjmAMjTd.js} +2 -2
- package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-CQ0B1DMq.js} +62 -62
- package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-B3h4BufU.js} +2 -2
- package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-DcjJqRof.js} +151 -150
- package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DmSbXlMu.js} +111 -110
- package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-BLcmTUd_.js} +54 -53
- package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-BmIGl6DC.js} +14 -13
- package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-BJfxaSQC.js} +75 -74
- package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-Cpnr2YW-.js} +84 -83
- package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BhPFNziU.js} +33 -32
- package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-B2wA-kmz.js} +3 -3
- package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-CpwNMx3i.js} +222 -221
- package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-DpxHqDZw.js} +234 -233
- package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-CvqXwiiE.js} +3 -3
- package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-DIjSfc7L.js} +2 -2
- package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-3-vg0Re6.js} +44 -43
- package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-B7W7wGkW.js} +76 -75
- package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-ByoeDL-3.js} +53 -52
- package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-CNVwf4QX.js} +72 -71
- package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-C0KJrBX8.js} +13 -12
- package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-C-wPn5l5.js} +13 -12
- package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-SV-m_FhA.js} +8 -7
- package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DqOzvLUy.js} +283 -282
- package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CsZXcINB.js} +2 -2
- package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-B0zxq02O.js} +75 -74
- package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-CykFyAin.js} +102 -101
- package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-DoJwXgd3.js} +110 -109
- package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BTT3BYrI.js} +166 -165
- package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-CavMQlAm.js} +3 -3
- package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-DdT6TBz8.js} +2 -2
- package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-D9q63V2-.js} +3 -3
- package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-DCS_f__b.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-CGDjBHjo.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-Ctpm0106.js} +4 -4
- package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-BVyjNK_A.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-BsNDucJO.js} +3 -3
- package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-DuGcJQ6F.js} +39 -38
- package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-C6vbloAI.js} +82 -81
- package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-Bb6pNaIM.js} +3 -3
- package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-_ypWL_z2.js} +77 -76
- package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-_pPedR_D.js} +74 -73
- package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-CmLnTIU7.js} +22 -21
- package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CpAJT80M.js} +5 -5
- package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-DXgmJClr.js} +38 -37
- package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-Ci2Yi9Gh.js} +109 -108
- package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-pn_EqFmU.js} +82 -81
- package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-vqh1kEDT.js} +33 -32
- package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-BCcK6wwZ.js} +8 -7
- package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-Bu8Giu0b.js} +110 -109
- package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-CzRlg19V.js} +57 -56
- package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-0gHPOOwZ.js} +982 -856
- package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-DuAgXbBB.js} +41 -40
- package/package.json +1 -1
- package/dist/dom-to-png-BjSUS-jY.js +0 -243
- package/dist/img-DWfzRJdv.js +0 -19
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { useCssVars as lt, computed as w, defineAsyncComponent as L, ref as b, watch as Ne, shallowRef as Me, onMounted as at, onBeforeUnmount as ot, watchEffect as st, createElementBlock as g, openBlock as
|
|
2
|
-
import { u as ct, c as De, t as de, p as
|
|
3
|
-
import { u as He } from "./useNestedProp-
|
|
4
|
-
import { u as xt } from "./usePrinter-
|
|
1
|
+
import { useCssVars as lt, computed as w, defineAsyncComponent as L, ref as b, watch as Ne, shallowRef as Me, onMounted as at, onBeforeUnmount as ot, watchEffect as st, createElementBlock as g, openBlock as y, unref as u, normalizeStyle as le, normalizeClass as Ee, createBlock as V, createCommentVNode as k, renderSlot as x, createSlots as nt, withCtx as _, normalizeProps as W, guardReactiveProps as X, createVNode as rt, Fragment as ae, renderList as ut, createElementVNode as C, mergeProps as Re, toDisplayString as Y, createTextVNode as it, nextTick as Ae } from "vue";
|
|
2
|
+
import { u as ct, c as De, t as de, p as oe, a as vt, o as dt, e as ht, b as ft, d as yt, h as Le, f as he, X as mt, l as pt, G as Z, af as bt, q as gt, r as kt, i as Ve } from "./index-BzQ0j5xI.js";
|
|
3
|
+
import { u as He } from "./useNestedProp-DqpZEE3h.js";
|
|
4
|
+
import { u as xt } from "./usePrinter-CpG5jh_z.js";
|
|
5
5
|
import { u as wt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as Ct } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
7
|
import { t as zt, u as _t } from "./useResponsive-JZ9xq-JV.js";
|
|
8
|
-
import $t from "./Title-
|
|
8
|
+
import $t from "./Title-CJcZXNtK.js";
|
|
9
9
|
import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
function Be(r, i = 0) {
|
|
11
|
-
const h = r.reduce((a, { x: s, r: v }) => Math.min(a, s - v - i), 1 / 0),
|
|
12
|
-
return [h, c,
|
|
11
|
+
const h = r.reduce((a, { x: s, r: v }) => Math.min(a, s - v - i), 1 / 0), m = r.reduce((a, { x: s, r: v }) => Math.max(a, s + v + i), -1 / 0), c = r.reduce((a, { y: s, r: v }) => Math.min(a, s - v - i), 1 / 0), o = r.reduce((a, { y: s, r: v }) => Math.max(a, s + v + i), -1 / 0);
|
|
12
|
+
return [h, c, m - h, o - c];
|
|
13
13
|
}
|
|
14
14
|
function Pt(r, i, h) {
|
|
15
|
-
const
|
|
15
|
+
const m = r._, c = r.next._, o = m.r + c.r, a = (m.x * c.r + c.x * m.r) / o, s = (m.y * c.r + c.y * m.r) / o;
|
|
16
16
|
return Math.max(Math.abs(a * h), Math.abs(s * i));
|
|
17
17
|
}
|
|
18
18
|
function Ge(r, i, h) {
|
|
19
|
-
const
|
|
19
|
+
const m = Pt, c = r.length;
|
|
20
20
|
if (!c) return r;
|
|
21
21
|
let o, a, s;
|
|
22
22
|
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
|
-
Ue(a, o, s = r[2]), o = new
|
|
23
|
+
Ue(a, o, s = r[2]), o = new se(o), a = new se(a), s = new se(s), o.next = s.previous = a, a.next = o.previous = s, s.next = a.previous = o;
|
|
24
24
|
e: for (let v = 3; v < c; ++v) {
|
|
25
|
-
Ue(o._, a._, s = r[v]), s = new
|
|
26
|
-
let p = a.next, T = o.previous,
|
|
25
|
+
Ue(o._, a._, s = r[v]), s = new se(s);
|
|
26
|
+
let p = a.next, T = o.previous, J = a._.r, N = o._.r;
|
|
27
27
|
do
|
|
28
|
-
if (
|
|
28
|
+
if (J <= N) {
|
|
29
29
|
if (je(p._, s._)) {
|
|
30
30
|
a = p, o.next = a, a.previous = o, --v;
|
|
31
31
|
continue e;
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
J += p._.r, p = p.next;
|
|
34
34
|
} else {
|
|
35
35
|
if (je(T._, s._)) {
|
|
36
36
|
o = T, o.next = a, a.previous = o, --v;
|
|
@@ -40,37 +40,37 @@ function Ge(r, i, h) {
|
|
|
40
40
|
}
|
|
41
41
|
while (p !== T.next);
|
|
42
42
|
s.previous = o, s.next = a, o.next = a.previous = a = s;
|
|
43
|
-
let P =
|
|
43
|
+
let P = m(o, h, i), $;
|
|
44
44
|
for (; (s = s.next) !== a; )
|
|
45
|
-
($ =
|
|
45
|
+
($ = m(s, h, i)) < P && (o = s, P = $);
|
|
46
46
|
a = o.next;
|
|
47
47
|
}
|
|
48
48
|
return r;
|
|
49
49
|
}
|
|
50
50
|
function Ue(r, i, h) {
|
|
51
|
-
const
|
|
51
|
+
const m = r.x - i.x, c = r.y - i.y, o = m * m + c * c;
|
|
52
52
|
if (o) {
|
|
53
53
|
const a = (i.r + h.r) ** 2, s = (r.r + h.r) ** 2;
|
|
54
54
|
if (a > s) {
|
|
55
55
|
const v = (o + s - a) / (2 * o), p = Math.sqrt(Math.max(0, s / o - v * v));
|
|
56
|
-
h.x = r.x - v *
|
|
56
|
+
h.x = r.x - v * m - p * c, h.y = r.y - v * c + p * m;
|
|
57
57
|
} else {
|
|
58
58
|
const v = (o + a - s) / (2 * o), p = Math.sqrt(Math.max(0, a / o - v * v));
|
|
59
|
-
h.x = i.x + v *
|
|
59
|
+
h.x = i.x + v * m - p * c, h.y = i.y + v * c + p * m;
|
|
60
60
|
}
|
|
61
61
|
} else
|
|
62
62
|
h.x = i.x + h.r, h.y = i.y;
|
|
63
63
|
}
|
|
64
64
|
function je(r, i) {
|
|
65
|
-
const h = r.r + i.r - 1e-6,
|
|
66
|
-
return h > 0 && h * h >
|
|
65
|
+
const h = r.r + i.r - 1e-6, m = i.x - r.x, c = i.y - r.y;
|
|
66
|
+
return h > 0 && h * h > m * m + c * c;
|
|
67
67
|
}
|
|
68
|
-
class
|
|
68
|
+
class se {
|
|
69
69
|
constructor(i) {
|
|
70
70
|
this._ = i, this.next = null, this.previous = null;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
const
|
|
73
|
+
const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y", "width", "height"], Ft = ["id"], Nt = ["stop-color"], Mt = ["stop-color"], Et = ["stop-color"], Rt = { key: 0 }, At = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onClick"], Dt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], Lt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Vt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Ht = ["cx", "cy", "r", "opacity", "stroke", "stroke-width", "fill"], Bt = {
|
|
74
74
|
key: 0,
|
|
75
75
|
style: { pointerEvents: "none" }
|
|
76
76
|
}, Gt = { key: 1 }, Ut = ["opacity", "x", "y", "font-size", "fill", "font-weight"], jt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], qt = {
|
|
@@ -95,32 +95,32 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
95
95
|
emits: ["selectDatapoint"],
|
|
96
96
|
setup(r, { expose: i, emit: h }) {
|
|
97
97
|
lt((t) => ({
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
"3044b7fa": D.value,
|
|
99
|
+
76538273: ue.value
|
|
100
100
|
}));
|
|
101
|
-
const
|
|
101
|
+
const m = L(() => import("./vue-ui-accordion-bpaEpjqI.js")), c = L(() => import("./DataTable-CmbjnjRg.js")), o = L(() => import("./PackageVersion-OcbP0WH2.js")), a = L(() => import("./PenAndPaper-BgPXmpGI.js")), s = L(() => import("./vue-ui-skeleton-CavMQlAm.js")), v = L(() => import("./UserOptions-Cs7JW3dK.js")), p = r, T = h, { vue_ui_circle_pack: J } = ct(), N = w(() => !!p.dataset && p.dataset.length), P = b(De()), $ = b(null), fe = b(null), ye = b(null), me = b(0), pe = b(0), be = b(0), qe = b(null), e = w({
|
|
102
102
|
get: () => we(),
|
|
103
103
|
set: (t) => t
|
|
104
104
|
}), { svgRef: ge } = Ct({ config: e.value.style.chart.title }), {
|
|
105
|
-
userOptionsVisible:
|
|
105
|
+
userOptionsVisible: ne,
|
|
106
106
|
setUserOptionsVisibility: ke,
|
|
107
107
|
keepUserOptionState: xe
|
|
108
108
|
} = wt({ config: e.value });
|
|
109
109
|
function we() {
|
|
110
110
|
const t = He({
|
|
111
111
|
userConfig: p.config,
|
|
112
|
-
defaultConfig:
|
|
112
|
+
defaultConfig: J
|
|
113
113
|
});
|
|
114
114
|
return t.theme ? {
|
|
115
115
|
...He({
|
|
116
116
|
userConfig: vt.vue_ui_circle_pack[t.theme] || p.config,
|
|
117
117
|
defaultConfig: t
|
|
118
118
|
}),
|
|
119
|
-
customPalette: de[t.theme] ||
|
|
119
|
+
customPalette: de[t.theme] || oe
|
|
120
120
|
} : t;
|
|
121
121
|
}
|
|
122
122
|
Ne(() => p.config, (t) => {
|
|
123
|
-
e.value = we(),
|
|
123
|
+
e.value = we(), ne.value = !e.value.userOptions.showOnChartHover, re(), me.value += 1, pe.value += 1, H.value.showTable = e.value.table.show;
|
|
124
124
|
}, { deep: !0 });
|
|
125
125
|
const { isPrinting: Ce, isImaging: ze, generatePdf: _e, generateImage: $e } = xt({
|
|
126
126
|
elementId: `vue-ui-circle-pack_${P.value}`,
|
|
@@ -128,29 +128,29 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
128
128
|
options: e.value.userOptions.print
|
|
129
129
|
}), We = w(() => e.value.userOptions.show && !e.value.style.chart.title.text), H = b({
|
|
130
130
|
showTable: e.value.table.show
|
|
131
|
-
}),
|
|
132
|
-
async function
|
|
131
|
+
}), O = Me(null), M = Me(null), E = b({ h: 10, w: 10 }), Te = b(0), R = b([0, 0, 100, 100]), K = b({ h: 0, w: 0 });
|
|
132
|
+
async function re() {
|
|
133
133
|
dt(p.dataset) && ht({
|
|
134
134
|
componentName: "VueUiCirclePack",
|
|
135
135
|
type: "dataset"
|
|
136
|
-
}), A.value = await Ge(
|
|
136
|
+
}), A.value = await Ge(Q.value), S.value = Be(A.value, 1).join(" "), K.value = Pe($.value);
|
|
137
137
|
const t = zt(() => {
|
|
138
|
-
const { width: n, height: l, heightTitle:
|
|
138
|
+
const { width: n, height: l, heightTitle: f, heightNoTitle: z } = _t({
|
|
139
139
|
chart: $.value,
|
|
140
140
|
title: fe.value,
|
|
141
141
|
noTitle: ye.value
|
|
142
|
-
}),
|
|
143
|
-
Te.value = e.value.style.chart.title.text ?
|
|
144
|
-
E.value.w =
|
|
145
|
-
const et =
|
|
146
|
-
A.value = await Ge(et, E.value.h, E.value.w), R.value = Be(A.value, 1),
|
|
142
|
+
}), q = n || 10, ve = l && l > 10 ? l : 10;
|
|
143
|
+
Te.value = e.value.style.chart.title.text ? f : z, requestAnimationFrame(() => {
|
|
144
|
+
E.value.w = q, E.value.h = ve - Te.value, Ae(async () => {
|
|
145
|
+
const et = Q.value.map((tt) => ({ ...tt }));
|
|
146
|
+
A.value = await Ge(et, E.value.h, E.value.w), R.value = Be(A.value, 1), S.value = R.value.join(" "), K.value = Pe($.value);
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
149
|
});
|
|
150
|
-
|
|
150
|
+
O.value && (M.value && O.value.unobserve(M.value), O.value.disconnect()), O.value = new ResizeObserver(t), M.value = $.value.parentNode, O.value.observe(M.value);
|
|
151
151
|
}
|
|
152
|
-
at(
|
|
153
|
-
|
|
152
|
+
at(re), ot(() => {
|
|
153
|
+
O.value && (M.value && O.value.unobserve(M.value), O.value.disconnect());
|
|
154
154
|
});
|
|
155
155
|
function Pe(t) {
|
|
156
156
|
if (!t || !t.parentElement)
|
|
@@ -158,40 +158,40 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
158
158
|
const n = t.parentElement;
|
|
159
159
|
if (n.offsetWidth > 0 && n.offsetHeight > 0)
|
|
160
160
|
return { w: n.offsetWidth, h: n.offsetHeight };
|
|
161
|
-
const l = window.getComputedStyle(n),
|
|
162
|
-
return
|
|
161
|
+
const l = window.getComputedStyle(n), f = l.width, z = l.height;
|
|
162
|
+
return f !== "auto" && z !== "auto" && parseFloat(f) > 0 && parseFloat(z) > 0 ? { w: parseFloat(f), h: parseFloat(z) } : { w: 0, h: 0 };
|
|
163
163
|
}
|
|
164
164
|
Ne(() => p.dataset, async (t) => {
|
|
165
|
-
await
|
|
165
|
+
await re();
|
|
166
166
|
}, { deep: !0 });
|
|
167
|
-
const Xe = w(() => ft(e.value.customPalette)),
|
|
168
|
-
const l = yt(t.color) || Xe.value[n] || de[e.value.theme || "default"][n % de[e.value.theme || "default"].length] ||
|
|
167
|
+
const Xe = w(() => ft(e.value.customPalette)), Q = w(() => p.dataset.map((t, n) => {
|
|
168
|
+
const l = yt(t.color) || Xe.value[n] || de[e.value.theme || "default"][n % de[e.value.theme || "default"].length] || oe[n] || oe[n % oe.length];
|
|
169
169
|
return {
|
|
170
170
|
...t,
|
|
171
171
|
r: t.value,
|
|
172
172
|
id: De(),
|
|
173
173
|
color: l
|
|
174
174
|
};
|
|
175
|
-
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), A = b([]),
|
|
176
|
-
function
|
|
175
|
+
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), A = b([]), S = b("0 0 100 100"), B = w(() => Math.max(...A.value.map((t) => t.r)));
|
|
176
|
+
function Oe(t, n) {
|
|
177
177
|
return n / B.value * t;
|
|
178
178
|
}
|
|
179
179
|
const d = b(null);
|
|
180
180
|
function Ye(t) {
|
|
181
181
|
e.value.style.chart.circles.zoom.show && (d.value = t);
|
|
182
182
|
}
|
|
183
|
-
const D = w(() => d.value ? d.value.r : 0),
|
|
183
|
+
const D = w(() => d.value ? d.value.r : 0), ue = w(() => F.value ? D.value : d.value ? d.value.r > R.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio ? d.value.r : R.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), I = b(0), Ze = w(() => ({
|
|
184
184
|
pointerEvents: "none",
|
|
185
|
-
opacity:
|
|
185
|
+
opacity: I.value,
|
|
186
186
|
filter: `drop-shadow(0px 0px 6px ${Le(d.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
|
|
187
187
|
})), G = b(D.value);
|
|
188
188
|
st(() => {
|
|
189
|
-
G.value = D.value,
|
|
189
|
+
G.value = D.value, I.value = 0;
|
|
190
190
|
let t = null;
|
|
191
191
|
function n(l) {
|
|
192
192
|
t || (t = l);
|
|
193
|
-
const
|
|
194
|
-
|
|
193
|
+
const f = (l - t) / e.value.style.chart.circles.zoom.animationFrameMs;
|
|
194
|
+
f < 1 ? (G.value = D.value + (ue.value - D.value) * f, I.value = 0 + e.value.style.chart.circles.zoom.opacity * f, requestAnimationFrame(n)) : (G.value = ue.value, I.value = e.value.style.chart.circles.zoom.opacity);
|
|
195
195
|
}
|
|
196
196
|
requestAnimationFrame(n);
|
|
197
197
|
});
|
|
@@ -199,7 +199,7 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
199
199
|
name: e.value.style.chart.circles.zoom.label.name.fontSize * R.value[3] / 300,
|
|
200
200
|
value: e.value.style.chart.circles.zoom.label.value.fontSize * R.value[3] / 300
|
|
201
201
|
}));
|
|
202
|
-
function
|
|
202
|
+
function ie(t) {
|
|
203
203
|
return Ve(
|
|
204
204
|
e.value.style.chart.circles.labels.value.formatter,
|
|
205
205
|
t.value,
|
|
@@ -223,10 +223,10 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
223
223
|
})
|
|
224
224
|
);
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function Se(t) {
|
|
227
227
|
if (!t)
|
|
228
228
|
return 0;
|
|
229
|
-
const n = t.r /
|
|
229
|
+
const n = t.r / ie(t).length * (ie(t).length === 1 ? 1 : 2);
|
|
230
230
|
return Math.min(t.r / 2.5, n);
|
|
231
231
|
}
|
|
232
232
|
const j = b(!1);
|
|
@@ -234,33 +234,33 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
234
234
|
j.value = t, be.value += 1;
|
|
235
235
|
}
|
|
236
236
|
const F = b(!1);
|
|
237
|
-
function
|
|
237
|
+
function ce() {
|
|
238
238
|
F.value = !F.value;
|
|
239
239
|
}
|
|
240
|
-
const
|
|
241
|
-
const t =
|
|
240
|
+
const ee = w(() => {
|
|
241
|
+
const t = Q.value.map((l) => ({
|
|
242
242
|
name: l.name,
|
|
243
243
|
value: l.value,
|
|
244
244
|
color: l.color
|
|
245
|
-
})).toSorted((l,
|
|
245
|
+
})).toSorted((l, f) => f.value - l.value), n = t.map((l) => l.value);
|
|
246
246
|
return { head: t, body: n };
|
|
247
247
|
});
|
|
248
|
-
function
|
|
248
|
+
function Ie(t = null) {
|
|
249
249
|
Ae(() => {
|
|
250
|
-
const
|
|
251
|
-
|
|
252
|
-
], [
|
|
253
|
-
kt({ csvContent:
|
|
250
|
+
const n = ee.value.head.map((z, q) => [[
|
|
251
|
+
z.name
|
|
252
|
+
], [ee.value.body[q]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(n), f = gt(l);
|
|
253
|
+
t ? t(f) : kt({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
|
-
const
|
|
256
|
+
const te = w(() => {
|
|
257
257
|
const t = [
|
|
258
258
|
e.value.table.columnNames.datapoint,
|
|
259
259
|
e.value.table.columnNames.value
|
|
260
|
-
], n =
|
|
260
|
+
], n = ee.value.head.map((z, q) => {
|
|
261
261
|
const ve = he({
|
|
262
262
|
p: e.value.style.chart.circles.labels.value.prefix,
|
|
263
|
-
v:
|
|
263
|
+
v: ee.value.body[q],
|
|
264
264
|
s: e.value.style.chart.circles.labels.value.suffix,
|
|
265
265
|
r: e.value.style.chart.circles.labels.value.rounding
|
|
266
266
|
});
|
|
@@ -298,48 +298,48 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
298
298
|
H.value.showTable = !H.value.showTable;
|
|
299
299
|
}
|
|
300
300
|
function Qe() {
|
|
301
|
-
return
|
|
301
|
+
return Q.value;
|
|
302
302
|
}
|
|
303
303
|
return i({
|
|
304
304
|
getData: Qe,
|
|
305
|
-
generateCsv:
|
|
305
|
+
generateCsv: Ie,
|
|
306
306
|
generatePdf: _e,
|
|
307
307
|
generateImage: $e,
|
|
308
308
|
toggleTable: Fe,
|
|
309
|
-
toggleAnnotator:
|
|
310
|
-
}), (t, n) => (
|
|
309
|
+
toggleAnnotator: ce
|
|
310
|
+
}), (t, n) => (y(), g("div", {
|
|
311
311
|
id: `vue-ui-circle-pack_${P.value}`,
|
|
312
312
|
class: Ee(`vue-ui-circle-pack ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
313
313
|
ref_key: "circlePackChart",
|
|
314
314
|
ref: $,
|
|
315
|
-
style:
|
|
315
|
+
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
316
|
onMouseenter: n[2] || (n[2] = () => u(ke)(!0)),
|
|
317
317
|
onMouseleave: n[3] || (n[3] = () => u(ke)(!1))
|
|
318
318
|
}, [
|
|
319
|
-
e.value.userOptions.buttons.annotator ? (
|
|
319
|
+
e.value.userOptions.buttons.annotator ? (y(), V(u(a), {
|
|
320
320
|
key: 0,
|
|
321
321
|
svgRef: u(ge),
|
|
322
322
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
323
323
|
color: e.value.style.chart.color,
|
|
324
324
|
active: F.value,
|
|
325
325
|
scale: B.value / 100,
|
|
326
|
-
onClose:
|
|
326
|
+
onClose: ce
|
|
327
327
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "scale"])) : k("", !0),
|
|
328
328
|
x(t.$slots, "userConfig", {}, void 0, !0),
|
|
329
|
-
We.value ? (
|
|
329
|
+
We.value ? (y(), g("div", {
|
|
330
330
|
key: 1,
|
|
331
331
|
ref_key: "noTitle",
|
|
332
332
|
ref: ye,
|
|
333
333
|
class: "vue-data-ui-no-title-space",
|
|
334
334
|
style: "height:36px; width: 100%;background:transparent"
|
|
335
335
|
}, null, 512)) : k("", !0),
|
|
336
|
-
e.value.style.chart.title.text ? (
|
|
336
|
+
e.value.style.chart.title.text ? (y(), g("div", {
|
|
337
337
|
key: 2,
|
|
338
338
|
ref_key: "chartTitle",
|
|
339
339
|
ref: fe,
|
|
340
340
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
341
341
|
}, [
|
|
342
|
-
(
|
|
342
|
+
(y(), V($t, {
|
|
343
343
|
key: `title_${me.value}`,
|
|
344
344
|
config: {
|
|
345
345
|
title: {
|
|
@@ -353,7 +353,7 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
353
353
|
}
|
|
354
354
|
}, null, 8, ["config"]))
|
|
355
355
|
], 512)) : k("", !0),
|
|
356
|
-
e.value.userOptions.show && N.value && (u(xe) || u(
|
|
356
|
+
e.value.userOptions.show && N.value && (u(xe) || u(ne)) ? (y(), V(u(v), {
|
|
357
357
|
ref: "details",
|
|
358
358
|
key: `user_option_${be.value}`,
|
|
359
359
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -371,23 +371,24 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
371
371
|
isFullscreen: j.value,
|
|
372
372
|
chartElement: $.value,
|
|
373
373
|
position: e.value.userOptions.position,
|
|
374
|
+
callbacks: e.value.userOptions.callbacks,
|
|
374
375
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
375
376
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
376
377
|
isAnnotation: F.value,
|
|
377
378
|
onToggleFullscreen: Ke,
|
|
378
379
|
onGeneratePdf: u(_e),
|
|
379
|
-
onGenerateCsv:
|
|
380
|
+
onGenerateCsv: Ie,
|
|
380
381
|
onGenerateImage: u($e),
|
|
381
382
|
onToggleTable: Fe,
|
|
382
|
-
onToggleAnnotator:
|
|
383
|
-
style:
|
|
384
|
-
visibility: u(xe) ? u(
|
|
383
|
+
onToggleAnnotator: ce,
|
|
384
|
+
style: le({
|
|
385
|
+
visibility: u(xe) ? u(ne) ? "visible" : "hidden" : "visible"
|
|
385
386
|
})
|
|
386
387
|
}, nt({ _: 2 }, [
|
|
387
388
|
t.$slots.menuIcon ? {
|
|
388
389
|
name: "menuIcon",
|
|
389
|
-
fn: _(({ isOpen: l, color:
|
|
390
|
-
x(t.$slots, "menuIcon",
|
|
390
|
+
fn: _(({ isOpen: l, color: f }) => [
|
|
391
|
+
x(t.$slots, "menuIcon", W(X({ isOpen: l, color: f })), void 0, !0)
|
|
391
392
|
]),
|
|
392
393
|
key: "0"
|
|
393
394
|
} : void 0,
|
|
@@ -421,44 +422,44 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
421
422
|
} : void 0,
|
|
422
423
|
t.$slots.optionFullscreen ? {
|
|
423
424
|
name: "optionFullscreen",
|
|
424
|
-
fn: _(({ toggleFullscreen: l, isFullscreen:
|
|
425
|
-
x(t.$slots, "optionFullscreen",
|
|
425
|
+
fn: _(({ toggleFullscreen: l, isFullscreen: f }) => [
|
|
426
|
+
x(t.$slots, "optionFullscreen", W(X({ toggleFullscreen: l, isFullscreen: f })), void 0, !0)
|
|
426
427
|
]),
|
|
427
428
|
key: "5"
|
|
428
429
|
} : void 0,
|
|
429
430
|
t.$slots.optionAnnotator ? {
|
|
430
431
|
name: "optionAnnotator",
|
|
431
|
-
fn: _(({ toggleAnnotator: l, isAnnotator:
|
|
432
|
-
x(t.$slots, "optionAnnotator",
|
|
432
|
+
fn: _(({ toggleAnnotator: l, isAnnotator: f }) => [
|
|
433
|
+
x(t.$slots, "optionAnnotator", W(X({ toggleAnnotator: l, isAnnotator: f })), void 0, !0)
|
|
433
434
|
]),
|
|
434
435
|
key: "6"
|
|
435
436
|
} : void 0
|
|
436
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
|
|
437
|
-
N.value ? (
|
|
437
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
|
|
438
|
+
N.value ? (y(), g("svg", {
|
|
438
439
|
key: 4,
|
|
439
440
|
ref_key: "svgRef",
|
|
440
441
|
ref: ge,
|
|
441
442
|
xmlns: u(mt),
|
|
442
|
-
viewBox:
|
|
443
|
+
viewBox: S.value,
|
|
443
444
|
height: E.value.h,
|
|
444
445
|
width: E.value.w,
|
|
445
446
|
class: Ee({ "vue-data-ui-fullscreen--on": j.value, "vue-data-ui-fulscreen--off": !j.value }),
|
|
446
|
-
style:
|
|
447
|
+
style: le(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`)
|
|
447
448
|
}, [
|
|
448
449
|
rt(u(o)),
|
|
449
|
-
t.$slots["chart-background"] ? (
|
|
450
|
+
t.$slots["chart-background"] ? (y(), g("foreignObject", {
|
|
450
451
|
key: 0,
|
|
451
|
-
x:
|
|
452
|
-
y:
|
|
453
|
-
width:
|
|
454
|
-
height:
|
|
452
|
+
x: S.value.x,
|
|
453
|
+
y: S.value.y,
|
|
454
|
+
width: S.value.width,
|
|
455
|
+
height: S.value.height,
|
|
455
456
|
style: {
|
|
456
457
|
pointerEvents: "none"
|
|
457
458
|
}
|
|
458
459
|
}, [
|
|
459
460
|
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
460
|
-
], 8,
|
|
461
|
-
(
|
|
461
|
+
], 8, It)) : k("", !0),
|
|
462
|
+
(y(!0), g(ae, null, ut(A.value, (l) => (y(), g(ae, null, [
|
|
462
463
|
C("defs", null, [
|
|
463
464
|
C("radialGradient", {
|
|
464
465
|
id: l.id,
|
|
@@ -478,7 +479,7 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
478
479
|
}, null, 8, Et)
|
|
479
480
|
], 8, Ft)
|
|
480
481
|
]),
|
|
481
|
-
t.$slots.pattern ? (
|
|
482
|
+
t.$slots.pattern ? (y(), g("g", Rt, [
|
|
482
483
|
C("defs", null, [
|
|
483
484
|
x(t.$slots, "pattern", Re({ ref_for: !0 }, { ...l, patternId: `pattern_${P.value}_${l.id}` }), void 0, !0)
|
|
484
485
|
])
|
|
@@ -493,10 +494,10 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
493
494
|
fill: e.value.style.chart.circles.gradient.show ? `url(#${l.id})` : l.color,
|
|
494
495
|
rx: l.r,
|
|
495
496
|
onMouseenter: () => Ye(l),
|
|
496
|
-
onMouseout: n[0] || (n[0] = (
|
|
497
|
-
onClick: (
|
|
497
|
+
onMouseout: n[0] || (n[0] = (f) => d.value = null),
|
|
498
|
+
onClick: (f) => T("selectDatapoint", l)
|
|
498
499
|
}, null, 40, At),
|
|
499
|
-
t.$slots.pattern ? (
|
|
500
|
+
t.$slots.pattern ? (y(), g("rect", {
|
|
500
501
|
key: 1,
|
|
501
502
|
x: l.x - l.r,
|
|
502
503
|
y: l.y - l.r,
|
|
@@ -513,8 +514,8 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
513
514
|
t.$slots["data-label"] ? x(t.$slots, "data-label", Re({
|
|
514
515
|
key: 2,
|
|
515
516
|
ref_for: !0
|
|
516
|
-
}, { ...l, createTSpans: u(bt), fontSize: { name: l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio, value:
|
|
517
|
-
e.value.style.chart.circles.labels.name.show && l.name ? (
|
|
517
|
+
}, { ...l, createTSpans: u(bt), fontSize: { name: l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio, value: Se(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 }, [
|
|
518
|
+
e.value.style.chart.circles.labels.name.show && l.name ? (y(), g("text", {
|
|
518
519
|
key: 0,
|
|
519
520
|
style: {
|
|
520
521
|
pointerEvents: "none",
|
|
@@ -522,13 +523,13 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
522
523
|
},
|
|
523
524
|
opacity: d.value && !F.value ? 0.2 : 1,
|
|
524
525
|
x: l.x,
|
|
525
|
-
y: l.y +
|
|
526
|
+
y: l.y + Oe(l.r, e.value.style.chart.circles.labels.name.offsetY) - l.r / 10,
|
|
526
527
|
"font-size": l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
527
|
-
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : u(
|
|
528
|
+
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : u(Z)(l.color),
|
|
528
529
|
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
529
530
|
"text-anchor": "middle"
|
|
530
|
-
},
|
|
531
|
-
e.value.style.chart.circles.labels.value.show ? (
|
|
531
|
+
}, Y(l.name), 9, Lt)) : k("", !0),
|
|
532
|
+
e.value.style.chart.circles.labels.value.show ? (y(), g("text", {
|
|
532
533
|
key: 1,
|
|
533
534
|
style: {
|
|
534
535
|
pointerEvents: "none",
|
|
@@ -536,59 +537,59 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
536
537
|
},
|
|
537
538
|
opacity: d.value && !F.value ? 0.2 : 1,
|
|
538
539
|
x: l.x,
|
|
539
|
-
y: l.y +
|
|
540
|
-
"font-size":
|
|
541
|
-
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : u(
|
|
540
|
+
y: l.y + Oe(l.r, e.value.style.chart.circles.labels.value.offsetY) + l.r / 2.5,
|
|
541
|
+
"font-size": Se(l) * e.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
542
|
+
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : u(Z)(l.color),
|
|
542
543
|
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
543
544
|
"text-anchor": "middle"
|
|
544
|
-
},
|
|
545
|
+
}, Y(ie(l)), 9, Vt)) : k("", !0)
|
|
545
546
|
], 64))
|
|
546
547
|
], 64))), 256)),
|
|
547
|
-
d.value && e.value.style.chart.circles.zoom.show && !F.value ? (
|
|
548
|
+
d.value && e.value.style.chart.circles.zoom.show && !F.value ? (y(), g(ae, { key: 1 }, [
|
|
548
549
|
C("circle", {
|
|
549
|
-
style:
|
|
550
|
+
style: le(Ze.value),
|
|
550
551
|
cx: d.value.x,
|
|
551
552
|
cy: d.value.y,
|
|
552
553
|
r: G.value,
|
|
553
|
-
opacity:
|
|
554
|
+
opacity: I.value,
|
|
554
555
|
stroke: e.value.style.chart.circles.stroke,
|
|
555
556
|
"stroke-width": e.value.style.chart.circles.strokeWidth * B.value / 100,
|
|
556
557
|
fill: e.value.style.chart.circles.gradient.show ? `url(#${d.value.id})` : d.value.color
|
|
557
558
|
}, null, 12, Ht),
|
|
558
|
-
t.$slots["zoom-label"] ? (
|
|
559
|
-
x(t.$slots, "zoom-label",
|
|
560
|
-
])) : (
|
|
559
|
+
t.$slots["zoom-label"] ? (y(), g("g", Bt, [
|
|
560
|
+
x(t.$slots, "zoom-label", W(X({ ...d.value, zoomOpacity: I.value, currentRadius: G.value, fontSize: U.value })), void 0, !0)
|
|
561
|
+
])) : (y(), g("g", Gt, [
|
|
561
562
|
C("text", {
|
|
562
563
|
style: {
|
|
563
564
|
pointerEvents: "none"
|
|
564
565
|
},
|
|
565
|
-
opacity:
|
|
566
|
+
opacity: I.value,
|
|
566
567
|
x: d.value.x,
|
|
567
568
|
y: d.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - U.value.name / 4,
|
|
568
569
|
"text-anchor": "middle",
|
|
569
570
|
"font-size": U.value.name,
|
|
570
|
-
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : u(
|
|
571
|
+
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : u(Z)(d.value.color),
|
|
571
572
|
"font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
|
|
572
|
-
},
|
|
573
|
+
}, Y(d.value.name), 9, Ut),
|
|
573
574
|
C("text", {
|
|
574
575
|
style: {
|
|
575
576
|
pointerEvents: "none"
|
|
576
577
|
},
|
|
577
|
-
opacity:
|
|
578
|
+
opacity: I.value,
|
|
578
579
|
x: d.value.x,
|
|
579
580
|
y: d.value.y + U.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
|
|
580
581
|
"text-anchor": "middle",
|
|
581
582
|
"font-size": U.value.value,
|
|
582
|
-
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : u(
|
|
583
|
+
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : u(Z)(d.value.color),
|
|
583
584
|
"font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
|
|
584
|
-
},
|
|
585
|
+
}, Y(Je()), 9, jt)
|
|
585
586
|
]))
|
|
586
587
|
], 64)) : k("", !0),
|
|
587
588
|
x(t.$slots, "svg", {
|
|
588
|
-
svg: { ...
|
|
589
|
+
svg: { ...S.value }
|
|
589
590
|
}, void 0, !0)
|
|
590
|
-
], 14,
|
|
591
|
-
N.value ? k("", !0) : (
|
|
591
|
+
], 14, St)) : k("", !0),
|
|
592
|
+
N.value ? k("", !0) : (y(), V(u(s), {
|
|
592
593
|
key: 5,
|
|
593
594
|
config: {
|
|
594
595
|
type: "circlePack",
|
|
@@ -597,10 +598,10 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
597
598
|
}
|
|
598
599
|
}
|
|
599
600
|
})),
|
|
600
|
-
t.$slots.watermark ? (
|
|
601
|
-
x(t.$slots, "watermark",
|
|
601
|
+
t.$slots.watermark ? (y(), g("div", qt, [
|
|
602
|
+
x(t.$slots, "watermark", W(X({ isPrinting: u(Ce) || u(ze) })), void 0, !0)
|
|
602
603
|
])) : k("", !0),
|
|
603
|
-
t.$slots.source ? (
|
|
604
|
+
t.$slots.source ? (y(), g("div", {
|
|
604
605
|
key: 7,
|
|
605
606
|
ref_key: "source",
|
|
606
607
|
ref: qe,
|
|
@@ -608,7 +609,7 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
608
609
|
}, [
|
|
609
610
|
x(t.$slots, "source", {}, void 0, !0)
|
|
610
611
|
], 512)) : k("", !0),
|
|
611
|
-
N.value ? (
|
|
612
|
+
N.value ? (y(), V(u(m), {
|
|
612
613
|
key: 8,
|
|
613
614
|
hideDetails: "",
|
|
614
615
|
config: {
|
|
@@ -625,12 +626,12 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
625
626
|
}
|
|
626
627
|
}, {
|
|
627
628
|
content: _(() => [
|
|
628
|
-
(
|
|
629
|
+
(y(), V(u(c), {
|
|
629
630
|
key: `table_${pe.value}`,
|
|
630
|
-
colNames:
|
|
631
|
-
head:
|
|
632
|
-
body:
|
|
633
|
-
config:
|
|
631
|
+
colNames: te.value.colNames,
|
|
632
|
+
head: te.value.head,
|
|
633
|
+
body: te.value.body,
|
|
634
|
+
config: te.value.config,
|
|
634
635
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
635
636
|
onClose: n[1] || (n[1] = (l) => H.value.showTable = !1)
|
|
636
637
|
}, {
|
|
@@ -641,16 +642,16 @@ const St = ["id"], It = ["xmlns", "viewBox", "height", "width"], Ot = ["x", "y",
|
|
|
641
642
|
}, null, 8, Wt)
|
|
642
643
|
]),
|
|
643
644
|
td: _(({ td: l }) => [
|
|
644
|
-
it(
|
|
645
|
+
it(Y(l.name || l), 1)
|
|
645
646
|
]),
|
|
646
647
|
_: 1
|
|
647
648
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
648
649
|
]),
|
|
649
650
|
_: 1
|
|
650
651
|
}, 8, ["config"])) : k("", !0)
|
|
651
|
-
], 46,
|
|
652
|
+
], 46, Ot));
|
|
652
653
|
}
|
|
653
|
-
}, ol = /* @__PURE__ */ Tt(Xt, [["__scopeId", "data-v-
|
|
654
|
+
}, ol = /* @__PURE__ */ Tt(Xt, [["__scopeId", "data-v-b02f724d"]]);
|
|
654
655
|
export {
|
|
655
656
|
ol as default
|
|
656
657
|
};
|