vue-data-ui 3.5.0 → 3.5.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 +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.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-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 +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useCssVars as xt, computed as
|
|
2
|
-
import { u as Ot, a as Ze } from "./useNestedProp-
|
|
1
|
+
import { useCssVars as xt, computed as x, defineAsyncComponent as B, ref as m, toRefs as Ct, watch as ne, shallowRef as Ge, onMounted as $t, onBeforeUnmount as _t, watchEffect as zt, createElementBlock as w, openBlock as p, unref as i, normalizeStyle as se, normalizeClass as We, createBlock as G, createCommentVNode as _, renderSlot as b, withCtx as g, normalizeProps as S, guardReactiveProps as O, createSlots as je, createVNode as qe, Fragment as ue, renderList as Tt, createElementVNode as z, mergeProps as ke, toDisplayString as W, resolveDynamicComponent as St, createTextVNode as Xe, nextTick as Ye } from "vue";
|
|
2
|
+
import { u as Ot, a as Ze } from "./useNestedProp-DjGXw6S9.js";
|
|
3
3
|
import { c as Je, t as Dt, b as we, p as re, o as It, f as Pt, e as Ft, h as At, U as Ke, d as xe, X as Mt, S as Et, J as Q, K as Nt, P as Rt, Q as Bt, a as Qe } from "./lib-C_mNZmhD.js";
|
|
4
4
|
import { t as Lt, u as Ut } from "./useResponsive-DfdjqQps.js";
|
|
5
5
|
import { u as Vt } from "./usePrinter-DTzqpYKF.js";
|
|
@@ -7,7 +7,7 @@ import { u as Ht, B as Gt } from "./BaseScanner-BgWxam9d.js";
|
|
|
7
7
|
import { u as Wt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as jt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
9
|
import qt from "./img-BecE5qXd.js";
|
|
10
|
-
import Xt from "./Title-
|
|
10
|
+
import Xt from "./Title-isbiM8i8.js";
|
|
11
11
|
import { t as Yt } from "./themes-AUNCOb2G.js";
|
|
12
12
|
import { u as Zt } from "./useSvgExport-DrjCWun4.js";
|
|
13
13
|
import { _ as Jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -24,48 +24,48 @@ function tt(u, c, f) {
|
|
|
24
24
|
if (!v) return u;
|
|
25
25
|
let n, o, s;
|
|
26
26
|
if (n = u[0], n.x = 0, n.y = 0, !(v > 1) || (o = u[1], n.x = -o.r, o.x = n.r, o.y = 0, !(v > 2))) return u;
|
|
27
|
-
|
|
27
|
+
at(o, n, s = u[2]), n = new ie(n), o = new ie(o), s = new ie(s), n.next = s.previous = o, o.next = n.previous = s, s.next = o.previous = n;
|
|
28
28
|
e: for (let d = 3; d < v; ++d) {
|
|
29
|
-
|
|
30
|
-
let
|
|
29
|
+
at(n._, o._, s = u[d]), s = new ie(s);
|
|
30
|
+
let C = o.next, $ = n.previous, ee = o._.r, te = n._.r;
|
|
31
31
|
do
|
|
32
32
|
if (ee <= te) {
|
|
33
|
-
if (
|
|
34
|
-
o =
|
|
33
|
+
if (lt(C._, s._)) {
|
|
34
|
+
o = C, n.next = o, o.previous = n, --d;
|
|
35
35
|
continue e;
|
|
36
36
|
}
|
|
37
|
-
ee +=
|
|
37
|
+
ee += C._.r, C = C.next;
|
|
38
38
|
} else {
|
|
39
|
-
if (
|
|
40
|
-
n =
|
|
39
|
+
if (lt($._, s._)) {
|
|
40
|
+
n = $, n.next = o, o.previous = n, --d;
|
|
41
41
|
continue e;
|
|
42
42
|
}
|
|
43
|
-
te +=
|
|
43
|
+
te += $._.r, $ = $.previous;
|
|
44
44
|
}
|
|
45
|
-
while (
|
|
45
|
+
while (C !== $.next);
|
|
46
46
|
s.previous = n, s.next = o, n.next = o.previous = o = s;
|
|
47
|
-
let
|
|
47
|
+
let j = y(n, f, c), D;
|
|
48
48
|
for (; (s = s.next) !== o; )
|
|
49
|
-
(
|
|
49
|
+
(D = y(s, f, c)) < j && (n = s, j = D);
|
|
50
50
|
o = n.next;
|
|
51
51
|
}
|
|
52
52
|
return u;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function at(u, c, f) {
|
|
55
55
|
const y = u.x - c.x, v = u.y - c.y, n = y * y + v * v;
|
|
56
56
|
if (n) {
|
|
57
57
|
const o = (c.r + f.r) ** 2, s = (u.r + f.r) ** 2;
|
|
58
58
|
if (o > s) {
|
|
59
|
-
const d = (n + s - o) / (2 * n),
|
|
60
|
-
f.x = u.x - d * y -
|
|
59
|
+
const d = (n + s - o) / (2 * n), C = Math.sqrt(Math.max(0, s / n - d * d));
|
|
60
|
+
f.x = u.x - d * y - C * v, f.y = u.y - d * v + C * y;
|
|
61
61
|
} else {
|
|
62
|
-
const d = (n + o - s) / (2 * n),
|
|
63
|
-
f.x = c.x + d * y -
|
|
62
|
+
const d = (n + o - s) / (2 * n), C = Math.sqrt(Math.max(0, o / n - d * d));
|
|
63
|
+
f.x = c.x + d * y - C * v, f.y = c.y + d * v + C * y;
|
|
64
64
|
}
|
|
65
65
|
} else
|
|
66
66
|
f.x = c.x + f.r, f.y = c.y;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function lt(u, c) {
|
|
69
69
|
const f = u.r + c.r - 1e-6, y = c.x - u.x, v = c.y - u.y;
|
|
70
70
|
return f > 0 && f * f > y * y + v * v;
|
|
71
71
|
}
|
|
@@ -74,13 +74,13 @@ class ie {
|
|
|
74
74
|
this._ = c, this.next = null, this.previous = null;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
const Qt = ["id"],
|
|
77
|
+
const Qt = ["id"], ea = ["xmlns", "viewBox", "height", "width"], ta = ["x", "y", "width", "height"], aa = ["id"], la = ["stop-color"], oa = ["stop-color"], na = ["stop-color"], sa = { key: 0 }, ua = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onMouseout", "onClick"], ra = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], ia = ["opacity", "x", "y", "font-size", "fill", "font-weight"], ca = ["opacity", "x", "y", "font-size", "fill", "font-weight"], va = ["cx", "cy", "r", "opacity", "stroke", "stroke-width", "fill"], da = {
|
|
78
78
|
key: 0,
|
|
79
79
|
style: { pointerEvents: "none" }
|
|
80
|
-
},
|
|
80
|
+
}, ha = { key: 1 }, fa = ["opacity", "x", "y", "font-size", "fill", "font-weight"], ma = ["opacity", "x", "y", "font-size", "fill", "font-weight"], pa = {
|
|
81
81
|
key: 4,
|
|
82
82
|
class: "vue-data-ui-watermark"
|
|
83
|
-
},
|
|
83
|
+
}, ya = ["innerHTML"], ba = {
|
|
84
84
|
__name: "vue-ui-circle-pack",
|
|
85
85
|
props: {
|
|
86
86
|
config: {
|
|
@@ -99,11 +99,11 @@ const Qt = ["id"], el = ["xmlns", "viewBox", "height", "width"], tl = ["x", "y",
|
|
|
99
99
|
emits: ["selectDatapoint"],
|
|
100
100
|
setup(u, { expose: c, emit: f }) {
|
|
101
101
|
xt((t) => ({
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
v35c9c350: V.value,
|
|
103
|
+
v432f6b49: me.value
|
|
104
104
|
}));
|
|
105
|
-
const y =
|
|
106
|
-
...Ct(
|
|
105
|
+
const y = B(() => import("./BaseIcon-BmMbm4d0.js")), v = B(() => import("./vue-ui-accordion-CqhVCfc2.js")), n = B(() => import("./DataTable-BT7VF2ua.js")), o = B(() => import("./UserOptions-CGnQt6Fd.js")), s = B(() => import("./PenAndPaper-SZQIAgkg.js")), d = B(() => import("./PackageVersion-DQvyATVa.js")), C = B(() => import("./BaseDraggableDialog-ymf2sfB8.js")), $ = u, ee = f, { vue_ui_circle_pack: te } = Ot(), j = x(() => !!$.dataset && $.dataset.length), D = m(Je()), T = m(null), Ce = m(null), $e = m(null), _e = m(0), ze = m(0), Te = m(0), ot = m(null), q = m(null), ce = m(null), e = m(he()), { loading: Se, FINAL_DATASET: Oe } = Ht({
|
|
106
|
+
...Ct($),
|
|
107
107
|
FINAL_CONFIG: e,
|
|
108
108
|
prepareConfig: he,
|
|
109
109
|
skeletonDataset: [
|
|
@@ -140,112 +140,112 @@ const Qt = ["id"], el = ["xmlns", "viewBox", "height", "width"], tl = ["x", "y",
|
|
|
140
140
|
} = Wt({ config: e.value });
|
|
141
141
|
function he() {
|
|
142
142
|
const t = Ze({
|
|
143
|
-
userConfig:
|
|
143
|
+
userConfig: $.config,
|
|
144
144
|
defaultConfig: te
|
|
145
145
|
});
|
|
146
146
|
return t.theme ? {
|
|
147
147
|
...Ze({
|
|
148
|
-
userConfig: Yt.vue_ui_circle_pack[t.theme] ||
|
|
148
|
+
userConfig: Yt.vue_ui_circle_pack[t.theme] || $.config,
|
|
149
149
|
defaultConfig: t
|
|
150
150
|
}),
|
|
151
151
|
customPalette: we[t.theme] || re
|
|
152
152
|
} : t;
|
|
153
153
|
}
|
|
154
|
-
ne(() =>
|
|
155
|
-
e.value = he(), de.value = !e.value.userOptions.showOnChartHover, fe(),
|
|
154
|
+
ne(() => $.config, (t) => {
|
|
155
|
+
e.value = he(), de.value = !e.value.userOptions.showOnChartHover, fe(), _e.value += 1, ze.value += 1, M.value.showTable = e.value.table.show;
|
|
156
156
|
}, { deep: !0 });
|
|
157
157
|
const { isPrinting: Pe, isImaging: Fe, generatePdf: Ae, generateImage: Me } = Vt({
|
|
158
|
-
elementId: `vue-ui-circle-pack_${
|
|
158
|
+
elementId: `vue-ui-circle-pack_${D.value}`,
|
|
159
159
|
fileName: e.value.style.chart.title.text || "vue-ui-circle-pack",
|
|
160
160
|
options: e.value.userOptions.print
|
|
161
|
-
}), nt =
|
|
161
|
+
}), nt = x(() => e.value.userOptions.show && !e.value.style.chart.title.text), M = m({
|
|
162
162
|
showTable: e.value.table.show
|
|
163
163
|
});
|
|
164
164
|
ne(e, () => {
|
|
165
|
-
|
|
165
|
+
M.value = {
|
|
166
166
|
showTable: e.value.table.show
|
|
167
167
|
};
|
|
168
168
|
}, { immediate: !0 });
|
|
169
|
-
const
|
|
169
|
+
const I = Ge(null), L = Ge(null), E = m({ h: 10, w: 10 }), Ee = m(0), N = m([0, 0, 100, 100]), X = m({ h: 0, w: 0 }), st = x(() => e.value.debug);
|
|
170
170
|
async function fe() {
|
|
171
|
-
It(
|
|
171
|
+
It($.dataset) && Pt({
|
|
172
172
|
componentName: "VueUiCirclePack",
|
|
173
173
|
type: "dataset",
|
|
174
174
|
debug: st.value
|
|
175
|
-
}),
|
|
175
|
+
}), E.value = { h: 10, w: 10 }, N.value = [0, 0, 100, 100], X.value = { h: 0, w: 0 }, U.value = await tt(ae.value), P.value = et(U.value, 1).join(" "), X.value = Ne(T.value);
|
|
176
176
|
const t = Lt(() => {
|
|
177
|
-
const { width:
|
|
177
|
+
const { width: l, height: a, heightTitle: r, heightNoTitle: k } = Ut({
|
|
178
178
|
chart: T.value,
|
|
179
179
|
title: Ce.value,
|
|
180
|
-
noTitle:
|
|
181
|
-
}),
|
|
182
|
-
Ee.value = e.value.style.chart.title.text ? r :
|
|
183
|
-
|
|
184
|
-
const kt =
|
|
185
|
-
|
|
180
|
+
noTitle: $e.value
|
|
181
|
+
}), R = Math.max(10, l), ge = Math.max(10, a - 12);
|
|
182
|
+
Ee.value = e.value.style.chart.title.text ? r : k, requestAnimationFrame(() => {
|
|
183
|
+
E.value.w = R, E.value.h = ge - Ee.value, Ye(async () => {
|
|
184
|
+
const kt = ae.value.map((wt) => ({ ...wt }));
|
|
185
|
+
U.value = await tt(kt, E.value.h, E.value.w), N.value = et(U.value, 1), P.value = N.value.join(" "), X.value = Ne(T.value);
|
|
186
186
|
});
|
|
187
187
|
});
|
|
188
188
|
});
|
|
189
|
-
|
|
189
|
+
I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect()), I.value = new ResizeObserver(t), L.value = T.value.parentNode, I.value.observe(L.value);
|
|
190
190
|
}
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
$t(fe), _t(() => {
|
|
192
|
+
I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect());
|
|
193
193
|
});
|
|
194
194
|
function Ne(t) {
|
|
195
195
|
if (!t || !t.parentElement)
|
|
196
196
|
return console.warn("Component or parent element is missing."), { w: 0, h: 0 };
|
|
197
|
-
const
|
|
198
|
-
if (
|
|
199
|
-
return { w:
|
|
200
|
-
const
|
|
201
|
-
return r !== "auto" &&
|
|
197
|
+
const l = t.parentElement;
|
|
198
|
+
if (l.offsetWidth > 0 && l.offsetHeight > 0)
|
|
199
|
+
return { w: l.offsetWidth, h: l.offsetHeight };
|
|
200
|
+
const a = window.getComputedStyle(l), r = a.width, k = a.height;
|
|
201
|
+
return r !== "auto" && k !== "auto" && parseFloat(r) > 0 && parseFloat(k) > 0 ? { w: parseFloat(r), h: parseFloat(k) } : { w: 0, h: 0 };
|
|
202
202
|
}
|
|
203
203
|
ne(() => Oe.value, async (t) => {
|
|
204
204
|
await fe();
|
|
205
205
|
}, { deep: !0 });
|
|
206
|
-
const ut =
|
|
207
|
-
const
|
|
206
|
+
const ut = x(() => Ft(e.value.customPalette)), ae = x(() => Oe.value.map((t, l) => {
|
|
207
|
+
const a = At(t.color) || ut.value[l] || we[e.value.theme || "default"][l % we[e.value.theme || "default"].length] || re[l] || re[l % re.length];
|
|
208
208
|
return {
|
|
209
209
|
...t,
|
|
210
210
|
r: t.value,
|
|
211
211
|
id: Je(),
|
|
212
|
-
color:
|
|
212
|
+
color: a
|
|
213
213
|
};
|
|
214
|
-
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))),
|
|
215
|
-
function Re(t,
|
|
216
|
-
return
|
|
214
|
+
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), U = m([]), P = m("0 0 100 100"), Y = x(() => Math.max(...U.value.map((t) => t.r)));
|
|
215
|
+
function Re(t, l) {
|
|
216
|
+
return l / Y.value * t;
|
|
217
217
|
}
|
|
218
|
-
function rt(t,
|
|
219
|
-
h.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex:
|
|
218
|
+
function rt(t, l) {
|
|
219
|
+
h.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l });
|
|
220
220
|
}
|
|
221
|
-
function it(t,
|
|
222
|
-
ee("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex:
|
|
221
|
+
function it(t, l) {
|
|
222
|
+
ee("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
223
223
|
}
|
|
224
|
-
function ct(t,
|
|
225
|
-
vt(t), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex:
|
|
224
|
+
function ct(t, l) {
|
|
225
|
+
vt(t), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l });
|
|
226
226
|
}
|
|
227
227
|
const h = m(null);
|
|
228
228
|
function vt(t) {
|
|
229
229
|
e.value.style.chart.circles.zoom.show && (h.value = t);
|
|
230
230
|
}
|
|
231
|
-
const
|
|
231
|
+
const V = x(() => h.value ? h.value.r : 0), me = x(() => A.value ? V.value : h.value ? h.value.r > N.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio ? h.value.r : N.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), F = m(0), dt = x(() => ({
|
|
232
232
|
pointerEvents: "none",
|
|
233
|
-
opacity:
|
|
233
|
+
opacity: F.value,
|
|
234
234
|
filter: `drop-shadow(0px 0px 6px ${Ke(h.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
|
|
235
|
-
})),
|
|
236
|
-
|
|
237
|
-
|
|
235
|
+
})), Z = m(V.value);
|
|
236
|
+
zt(() => {
|
|
237
|
+
Z.value = V.value, F.value = 0;
|
|
238
238
|
let t = null;
|
|
239
|
-
function a
|
|
240
|
-
t || (t =
|
|
241
|
-
const r = (
|
|
242
|
-
r < 1 ? (
|
|
239
|
+
function l(a) {
|
|
240
|
+
t || (t = a);
|
|
241
|
+
const r = (a - t) / e.value.style.chart.circles.zoom.animationFrameMs;
|
|
242
|
+
r < 1 ? (Z.value = V.value + (me.value - V.value) * r, F.value = 0 + e.value.style.chart.circles.zoom.opacity * r, requestAnimationFrame(l)) : (Z.value = me.value, F.value = e.value.style.chart.circles.zoom.opacity);
|
|
243
243
|
}
|
|
244
|
-
requestAnimationFrame(
|
|
244
|
+
requestAnimationFrame(l);
|
|
245
245
|
});
|
|
246
|
-
const
|
|
247
|
-
name: e.value.style.chart.circles.zoom.label.name.fontSize *
|
|
248
|
-
value: e.value.style.chart.circles.zoom.label.value.fontSize *
|
|
246
|
+
const J = x(() => ({
|
|
247
|
+
name: e.value.style.chart.circles.zoom.label.name.fontSize * N.value[3] / 300,
|
|
248
|
+
value: e.value.style.chart.circles.zoom.label.value.fontSize * N.value[3] / 300
|
|
249
249
|
}));
|
|
250
250
|
function pe(t) {
|
|
251
251
|
return Qe(
|
|
@@ -274,52 +274,52 @@ const Qt = ["id"], el = ["xmlns", "viewBox", "height", "width"], tl = ["x", "y",
|
|
|
274
274
|
function Be(t) {
|
|
275
275
|
if (!t)
|
|
276
276
|
return 0;
|
|
277
|
-
const
|
|
278
|
-
return Math.min(t.r / 2.5,
|
|
277
|
+
const l = t.r / pe(t).length * (pe(t).length === 1 ? 1 : 2);
|
|
278
|
+
return Math.min(t.r / 2.5, l);
|
|
279
279
|
}
|
|
280
|
-
const
|
|
280
|
+
const H = m(!1);
|
|
281
281
|
function Le(t) {
|
|
282
|
-
|
|
282
|
+
H.value = t, Te.value += 1;
|
|
283
283
|
}
|
|
284
|
-
const
|
|
284
|
+
const A = m(!1);
|
|
285
285
|
function ye() {
|
|
286
|
-
|
|
286
|
+
A.value = !A.value;
|
|
287
287
|
}
|
|
288
|
-
const
|
|
289
|
-
const t =
|
|
290
|
-
name:
|
|
291
|
-
value:
|
|
292
|
-
color:
|
|
293
|
-
})).toSorted((
|
|
294
|
-
return { head: t, body:
|
|
288
|
+
const le = x(() => {
|
|
289
|
+
const t = ae.value.map((a) => ({
|
|
290
|
+
name: a.name,
|
|
291
|
+
value: a.value,
|
|
292
|
+
color: a.color
|
|
293
|
+
})).toSorted((a, r) => r.value - a.value), l = t.map((a) => a.value);
|
|
294
|
+
return { head: t, body: l };
|
|
295
295
|
});
|
|
296
296
|
function be(t = null) {
|
|
297
297
|
Ye(() => {
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
], [
|
|
298
|
+
const l = le.value.head.map((k, R) => [[
|
|
299
|
+
k.name
|
|
300
|
+
], [le.value.body[R]]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(l), r = Rt(a);
|
|
301
301
|
t ? t(r) : Bt({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
|
|
302
302
|
});
|
|
303
303
|
}
|
|
304
|
-
const oe =
|
|
304
|
+
const oe = x(() => {
|
|
305
305
|
const t = [
|
|
306
306
|
e.value.table.columnNames.datapoint,
|
|
307
307
|
e.value.table.columnNames.value
|
|
308
|
-
],
|
|
308
|
+
], l = le.value.head.map((k, R) => {
|
|
309
309
|
const ge = xe({
|
|
310
310
|
p: e.value.style.chart.circles.labels.value.prefix,
|
|
311
|
-
v:
|
|
311
|
+
v: le.value.body[R],
|
|
312
312
|
s: e.value.style.chart.circles.labels.value.suffix,
|
|
313
313
|
r: e.value.style.chart.circles.labels.value.rounding
|
|
314
314
|
});
|
|
315
315
|
return [
|
|
316
316
|
{
|
|
317
|
-
color:
|
|
318
|
-
name:
|
|
317
|
+
color: k.color,
|
|
318
|
+
name: k.name
|
|
319
319
|
},
|
|
320
320
|
ge
|
|
321
321
|
];
|
|
322
|
-
}),
|
|
322
|
+
}), a = {
|
|
323
323
|
th: {
|
|
324
324
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
325
325
|
color: e.value.table.th.color,
|
|
@@ -338,45 +338,45 @@ const Qt = ["id"], el = ["xmlns", "viewBox", "height", "width"], tl = ["x", "y",
|
|
|
338
338
|
e.value.table.columnNames.value
|
|
339
339
|
],
|
|
340
340
|
head: t,
|
|
341
|
-
body:
|
|
342
|
-
config:
|
|
341
|
+
body: l,
|
|
342
|
+
config: a
|
|
343
343
|
};
|
|
344
344
|
});
|
|
345
345
|
function Ue() {
|
|
346
|
-
|
|
346
|
+
M.value.showTable = !M.value.showTable;
|
|
347
347
|
}
|
|
348
348
|
function ft() {
|
|
349
|
-
return
|
|
349
|
+
return ae.value;
|
|
350
350
|
}
|
|
351
351
|
async function mt({ scale: t = 2 } = {}) {
|
|
352
352
|
if (!T.value) return;
|
|
353
|
-
const { width:
|
|
353
|
+
const { width: l, height: a } = T.value.getBoundingClientRect(), r = l / a, { imageUri: k, base64: R } = await qt({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
354
354
|
return {
|
|
355
|
-
imageUri:
|
|
356
|
-
base64:
|
|
355
|
+
imageUri: k,
|
|
356
|
+
base64: R,
|
|
357
357
|
title: e.value.style.chart.title.text,
|
|
358
|
-
width:
|
|
359
|
-
height:
|
|
358
|
+
width: l,
|
|
359
|
+
height: a,
|
|
360
360
|
aspectRatio: r
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
|
-
const
|
|
364
|
-
const t = e.value.table.useDialog && !e.value.table.show,
|
|
363
|
+
const K = x(() => {
|
|
364
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = M.value.showTable;
|
|
365
365
|
return {
|
|
366
|
-
component: t ?
|
|
366
|
+
component: t ? C : v,
|
|
367
367
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
368
368
|
props: t ? {
|
|
369
369
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
370
370
|
color: e.value.table.th.color,
|
|
371
371
|
headerColor: e.value.table.th.color,
|
|
372
372
|
headerBg: e.value.table.th.backgroundColor,
|
|
373
|
-
isFullscreen:
|
|
373
|
+
isFullscreen: H.value,
|
|
374
374
|
fullscreenParent: T.value,
|
|
375
375
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
376
376
|
} : {
|
|
377
377
|
hideDetails: !0,
|
|
378
378
|
config: {
|
|
379
|
-
open:
|
|
379
|
+
open: l,
|
|
380
380
|
maxHeight: 1e4,
|
|
381
381
|
body: {
|
|
382
382
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -390,21 +390,21 @@ const Qt = ["id"], el = ["xmlns", "viewBox", "height", "width"], tl = ["x", "y",
|
|
|
390
390
|
}
|
|
391
391
|
};
|
|
392
392
|
});
|
|
393
|
-
ne(() =>
|
|
394
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
393
|
+
ne(() => M.value.showTable, (t) => {
|
|
394
|
+
e.value.table.show || (t && e.value.table.useDialog && q.value ? q.value.open() : "close" in q.value && q.value.close());
|
|
395
395
|
});
|
|
396
396
|
function Ve() {
|
|
397
|
-
|
|
397
|
+
M.value.showTable = !1, ce.value && ce.value.setTableIconState(!1);
|
|
398
398
|
}
|
|
399
|
-
const pt =
|
|
399
|
+
const pt = x(() => e.value.style.chart.backgroundColor), yt = x(() => e.value.style.chart.title), { exportSvg: bt, getSvg: gt } = Zt({
|
|
400
400
|
svg: ve,
|
|
401
401
|
title: yt,
|
|
402
402
|
backgroundColor: pt
|
|
403
403
|
});
|
|
404
404
|
async function He({ isCb: t }) {
|
|
405
405
|
if (t) {
|
|
406
|
-
const { blob:
|
|
407
|
-
e.value.userOptions.callbacks.svg({ blob:
|
|
406
|
+
const { blob: l, url: a, text: r, dataUrl: k } = await gt();
|
|
407
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: r, dataUrl: k });
|
|
408
408
|
} else
|
|
409
409
|
bt();
|
|
410
410
|
}
|
|
@@ -418,40 +418,60 @@ const Qt = ["id"], el = ["xmlns", "viewBox", "height", "width"], tl = ["x", "y",
|
|
|
418
418
|
toggleTable: Ue,
|
|
419
419
|
toggleAnnotator: ye,
|
|
420
420
|
toggleFullscreen: Le
|
|
421
|
-
}), (t,
|
|
422
|
-
id: `vue-ui-circle-pack_${
|
|
423
|
-
class: We(`vue-data-ui-component vue-ui-circle-pack ${
|
|
421
|
+
}), (t, l) => (p(), w("div", {
|
|
422
|
+
id: `vue-ui-circle-pack_${D.value}`,
|
|
423
|
+
class: We(`vue-data-ui-component vue-ui-circle-pack ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${i(Se) ? "loading" : ""}`),
|
|
424
424
|
ref_key: "circlePackChart",
|
|
425
425
|
ref: T,
|
|
426
|
-
style: se(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor}; height: ${
|
|
427
|
-
onMouseenter:
|
|
428
|
-
onMouseleave:
|
|
426
|
+
style: se(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor}; height: ${X.value.h}px; width:${X.value.w}px`),
|
|
427
|
+
onMouseenter: l[1] || (l[1] = () => i(De)(!0)),
|
|
428
|
+
onMouseleave: l[2] || (l[2] = () => i(De)(!1))
|
|
429
429
|
}, [
|
|
430
|
-
e.value.userOptions.buttons.annotator ? (p(),
|
|
430
|
+
e.value.userOptions.buttons.annotator ? (p(), G(i(s), {
|
|
431
431
|
key: 0,
|
|
432
432
|
svgRef: i(ve),
|
|
433
433
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
434
434
|
color: e.value.style.chart.color,
|
|
435
|
-
active:
|
|
436
|
-
scale:
|
|
435
|
+
active: A.value,
|
|
436
|
+
scale: Y.value / 100,
|
|
437
437
|
onClose: ye
|
|
438
|
-
},
|
|
439
|
-
|
|
440
|
-
|
|
438
|
+
}, {
|
|
439
|
+
"annotator-action-close": g(() => [
|
|
440
|
+
b(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
441
|
+
]),
|
|
442
|
+
"annotator-action-color": g(({ color: a }) => [
|
|
443
|
+
b(t.$slots, "annotator-action-color", S(O({ color: a })), void 0, !0)
|
|
444
|
+
]),
|
|
445
|
+
"annotator-action-draw": g(({ mode: a }) => [
|
|
446
|
+
b(t.$slots, "annotator-action-draw", S(O({ mode: a })), void 0, !0)
|
|
447
|
+
]),
|
|
448
|
+
"annotator-action-undo": g(({ disabled: a }) => [
|
|
449
|
+
b(t.$slots, "annotator-action-undo", S(O({ disabled: a })), void 0, !0)
|
|
450
|
+
]),
|
|
451
|
+
"annotator-action-redo": g(({ disabled: a }) => [
|
|
452
|
+
b(t.$slots, "annotator-action-redo", S(O({ disabled: a })), void 0, !0)
|
|
453
|
+
]),
|
|
454
|
+
"annotator-action-delete": g(({ disabled: a }) => [
|
|
455
|
+
b(t.$slots, "annotator-action-delete", S(O({ disabled: a })), void 0, !0)
|
|
456
|
+
]),
|
|
457
|
+
_: 3
|
|
458
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active", "scale"])) : _("", !0),
|
|
459
|
+
b(t.$slots, "userConfig", {}, void 0, !0),
|
|
460
|
+
nt.value ? (p(), w("div", {
|
|
441
461
|
key: 1,
|
|
442
462
|
ref_key: "noTitle",
|
|
443
|
-
ref:
|
|
463
|
+
ref: $e,
|
|
444
464
|
class: "vue-data-ui-no-title-space",
|
|
445
465
|
style: "height:36px; width: 100%;background:transparent"
|
|
446
466
|
}, null, 512)) : _("", !0),
|
|
447
|
-
e.value.style.chart.title.text ? (p(),
|
|
467
|
+
e.value.style.chart.title.text ? (p(), w("div", {
|
|
448
468
|
key: 2,
|
|
449
469
|
ref_key: "chartTitle",
|
|
450
470
|
ref: Ce,
|
|
451
471
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
452
472
|
}, [
|
|
453
|
-
(p(),
|
|
454
|
-
key: `title_${
|
|
473
|
+
(p(), G(Xt, {
|
|
474
|
+
key: `title_${_e.value}`,
|
|
455
475
|
config: {
|
|
456
476
|
title: {
|
|
457
477
|
cy: "donut-div-title",
|
|
@@ -464,7 +484,7 @@ const Qt = ["id"], el = ["xmlns", "viewBox", "height", "width"], tl = ["x", "y",
|
|
|
464
484
|
}
|
|
465
485
|
}, null, 8, ["config"]))
|
|
466
486
|
], 512)) : _("", !0),
|
|
467
|
-
e.value.userOptions.show &&
|
|
487
|
+
e.value.userOptions.show && j.value && (i(Ie) || i(de)) ? (p(), G(i(o), {
|
|
468
488
|
ref_key: "userOptionsRef",
|
|
469
489
|
ref: ce,
|
|
470
490
|
key: `user_option_${Te.value}`,
|
|
@@ -472,7 +492,7 @@ const Qt = ["id"], el = ["xmlns", "viewBox", "height", "width"], tl = ["x", "y",
|
|
|
472
492
|
color: e.value.style.chart.color,
|
|
473
493
|
isPrinting: i(Pe),
|
|
474
494
|
isImaging: i(Fe),
|
|
475
|
-
uid:
|
|
495
|
+
uid: D.value,
|
|
476
496
|
hasTooltip: !1,
|
|
477
497
|
hasLabel: !1,
|
|
478
498
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -481,14 +501,14 @@ const Qt = ["id"], el = ["xmlns", "viewBox", "height", "width"], tl = ["x", "y",
|
|
|
481
501
|
hasXls: e.value.userOptions.buttons.csv,
|
|
482
502
|
hasTable: e.value.userOptions.buttons.table,
|
|
483
503
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
484
|
-
isFullscreen:
|
|
504
|
+
isFullscreen: H.value,
|
|
485
505
|
chartElement: T.value,
|
|
486
506
|
position: e.value.userOptions.position,
|
|
487
507
|
callbacks: e.value.userOptions.callbacks,
|
|
488
508
|
printScale: e.value.userOptions.print.scale,
|
|
489
509
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
490
510
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
491
|
-
isAnnotation:
|
|
511
|
+
isAnnotation: A.value,
|
|
492
512
|
tableDialog: e.value.table.useDialog,
|
|
493
513
|
onToggleFullscreen: Le,
|
|
494
514
|
onGeneratePdf: i(Ae),
|
|
@@ -501,249 +521,249 @@ const Qt = ["id"], el = ["xmlns", "viewBox", "height", "width"], tl = ["x", "y",
|
|
|
501
521
|
}, je({ _: 2 }, [
|
|
502
522
|
t.$slots.menuIcon ? {
|
|
503
523
|
name: "menuIcon",
|
|
504
|
-
fn:
|
|
505
|
-
|
|
524
|
+
fn: g(({ isOpen: a, color: r }) => [
|
|
525
|
+
b(t.$slots, "menuIcon", S(O({ isOpen: a, color: r })), void 0, !0)
|
|
506
526
|
]),
|
|
507
527
|
key: "0"
|
|
508
528
|
} : void 0,
|
|
509
529
|
t.$slots.optionPdf ? {
|
|
510
530
|
name: "optionPdf",
|
|
511
|
-
fn:
|
|
512
|
-
|
|
531
|
+
fn: g(() => [
|
|
532
|
+
b(t.$slots, "optionPdf", {}, void 0, !0)
|
|
513
533
|
]),
|
|
514
534
|
key: "1"
|
|
515
535
|
} : void 0,
|
|
516
536
|
t.$slots.optionCsv ? {
|
|
517
537
|
name: "optionCsv",
|
|
518
|
-
fn:
|
|
519
|
-
|
|
538
|
+
fn: g(() => [
|
|
539
|
+
b(t.$slots, "optionCsv", {}, void 0, !0)
|
|
520
540
|
]),
|
|
521
541
|
key: "2"
|
|
522
542
|
} : void 0,
|
|
523
543
|
t.$slots.optionImg ? {
|
|
524
544
|
name: "optionImg",
|
|
525
|
-
fn:
|
|
526
|
-
|
|
545
|
+
fn: g(() => [
|
|
546
|
+
b(t.$slots, "optionImg", {}, void 0, !0)
|
|
527
547
|
]),
|
|
528
548
|
key: "3"
|
|
529
549
|
} : void 0,
|
|
530
550
|
t.$slots.optionSvg ? {
|
|
531
551
|
name: "optionSvg",
|
|
532
|
-
fn:
|
|
533
|
-
|
|
552
|
+
fn: g(() => [
|
|
553
|
+
b(t.$slots, "optionSvg", {}, void 0, !0)
|
|
534
554
|
]),
|
|
535
555
|
key: "4"
|
|
536
556
|
} : void 0,
|
|
537
557
|
t.$slots.optionTable ? {
|
|
538
558
|
name: "optionTable",
|
|
539
|
-
fn:
|
|
540
|
-
|
|
559
|
+
fn: g(() => [
|
|
560
|
+
b(t.$slots, "optionTable", {}, void 0, !0)
|
|
541
561
|
]),
|
|
542
562
|
key: "5"
|
|
543
563
|
} : void 0,
|
|
544
564
|
t.$slots.optionFullscreen ? {
|
|
545
565
|
name: "optionFullscreen",
|
|
546
|
-
fn:
|
|
547
|
-
|
|
566
|
+
fn: g(({ toggleFullscreen: a, isFullscreen: r }) => [
|
|
567
|
+
b(t.$slots, "optionFullscreen", S(O({ toggleFullscreen: a, isFullscreen: r })), void 0, !0)
|
|
548
568
|
]),
|
|
549
569
|
key: "6"
|
|
550
570
|
} : void 0,
|
|
551
571
|
t.$slots.optionAnnotator ? {
|
|
552
572
|
name: "optionAnnotator",
|
|
553
|
-
fn:
|
|
554
|
-
|
|
573
|
+
fn: g(({ toggleAnnotator: a, isAnnotator: r }) => [
|
|
574
|
+
b(t.$slots, "optionAnnotator", S(O({ toggleAnnotator: a, isAnnotator: r })), void 0, !0)
|
|
555
575
|
]),
|
|
556
576
|
key: "7"
|
|
557
577
|
} : void 0
|
|
558
578
|
]), 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),
|
|
559
|
-
(p(),
|
|
579
|
+
(p(), w("svg", {
|
|
560
580
|
ref_key: "svgRef",
|
|
561
581
|
ref: ve,
|
|
562
582
|
xmlns: i(Mt),
|
|
563
|
-
viewBox:
|
|
564
|
-
height: Math.max(10,
|
|
565
|
-
width: Math.max(10,
|
|
566
|
-
class: We({ "vue-data-ui-fullscreen--on":
|
|
583
|
+
viewBox: P.value,
|
|
584
|
+
height: Math.max(10, E.value.h),
|
|
585
|
+
width: Math.max(10, E.value.w),
|
|
586
|
+
class: We({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
|
|
567
587
|
style: se(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`)
|
|
568
588
|
}, [
|
|
569
589
|
qe(i(d)),
|
|
570
|
-
t.$slots["chart-background"] ? (p(),
|
|
590
|
+
t.$slots["chart-background"] ? (p(), w("foreignObject", {
|
|
571
591
|
key: 0,
|
|
572
|
-
x:
|
|
573
|
-
y:
|
|
574
|
-
width:
|
|
575
|
-
height:
|
|
592
|
+
x: P.value.x,
|
|
593
|
+
y: P.value.y,
|
|
594
|
+
width: P.value.width,
|
|
595
|
+
height: P.value.height,
|
|
576
596
|
style: {
|
|
577
597
|
pointerEvents: "none"
|
|
578
598
|
}
|
|
579
599
|
}, [
|
|
580
|
-
|
|
581
|
-
], 8,
|
|
582
|
-
(p(!0),
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
id:
|
|
600
|
+
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
601
|
+
], 8, ta)) : _("", !0),
|
|
602
|
+
(p(!0), w(ue, null, Tt(U.value, (a, r) => (p(), w(ue, null, [
|
|
603
|
+
z("defs", null, [
|
|
604
|
+
z("radialGradient", {
|
|
605
|
+
id: a.id,
|
|
586
606
|
fy: "30%"
|
|
587
607
|
}, [
|
|
588
|
-
|
|
608
|
+
z("stop", {
|
|
589
609
|
offset: "10%",
|
|
590
|
-
"stop-color": i(Et)(
|
|
591
|
-
}, null, 8,
|
|
592
|
-
|
|
610
|
+
"stop-color": i(Et)(a.color, e.value.style.chart.circles.gradient.intensity / 100)
|
|
611
|
+
}, null, 8, la),
|
|
612
|
+
z("stop", {
|
|
593
613
|
offset: "90%",
|
|
594
|
-
"stop-color": i(Ke)(
|
|
595
|
-
}, null, 8,
|
|
596
|
-
|
|
614
|
+
"stop-color": i(Ke)(a.color, 0.1)
|
|
615
|
+
}, null, 8, oa),
|
|
616
|
+
z("stop", {
|
|
597
617
|
offset: "100%",
|
|
598
|
-
"stop-color":
|
|
599
|
-
}, null, 8,
|
|
600
|
-
], 8,
|
|
618
|
+
"stop-color": a.color
|
|
619
|
+
}, null, 8, na)
|
|
620
|
+
], 8, aa)
|
|
601
621
|
]),
|
|
602
|
-
t.$slots.pattern ? (p(),
|
|
603
|
-
|
|
604
|
-
|
|
622
|
+
t.$slots.pattern ? (p(), w("g", sa, [
|
|
623
|
+
z("defs", null, [
|
|
624
|
+
b(t.$slots, "pattern", ke({ ref_for: !0 }, { ...a, patternId: `pattern_${D.value}_${a.id}` }), void 0, !0)
|
|
605
625
|
])
|
|
606
626
|
])) : _("", !0),
|
|
607
|
-
|
|
608
|
-
x:
|
|
609
|
-
y:
|
|
610
|
-
width:
|
|
611
|
-
height:
|
|
627
|
+
z("rect", {
|
|
628
|
+
x: a.x - a.r,
|
|
629
|
+
y: a.y - a.r,
|
|
630
|
+
width: a.r * 2,
|
|
631
|
+
height: a.r * 2,
|
|
612
632
|
stroke: e.value.style.chart.circles.stroke,
|
|
613
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth *
|
|
614
|
-
fill: e.value.style.chart.circles.gradient.show ? `url(#${
|
|
615
|
-
rx:
|
|
616
|
-
onMouseenter: (
|
|
617
|
-
onMouseout: (
|
|
618
|
-
onClick: (
|
|
619
|
-
}, null, 40,
|
|
620
|
-
t.$slots.pattern ? (p(),
|
|
633
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth * Y.value / 100,
|
|
634
|
+
fill: e.value.style.chart.circles.gradient.show ? `url(#${a.id})` : a.color,
|
|
635
|
+
rx: a.r,
|
|
636
|
+
onMouseenter: (k) => ct(a, r),
|
|
637
|
+
onMouseout: (k) => rt(a, r),
|
|
638
|
+
onClick: (k) => it(a, r)
|
|
639
|
+
}, null, 40, ua),
|
|
640
|
+
t.$slots.pattern ? (p(), w("rect", {
|
|
621
641
|
key: 1,
|
|
622
|
-
x:
|
|
623
|
-
y:
|
|
624
|
-
width:
|
|
625
|
-
height:
|
|
642
|
+
x: a.x - a.r,
|
|
643
|
+
y: a.y - a.r,
|
|
644
|
+
width: a.r * 2,
|
|
645
|
+
height: a.r * 2,
|
|
626
646
|
stroke: e.value.style.chart.circles.stroke,
|
|
627
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth *
|
|
628
|
-
fill: `url(#pattern_${
|
|
629
|
-
rx:
|
|
647
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth * Y.value / 100,
|
|
648
|
+
fill: `url(#pattern_${D.value}_${a.id})`,
|
|
649
|
+
rx: a.r,
|
|
630
650
|
style: {
|
|
631
651
|
pointerEvents: "none"
|
|
632
652
|
}
|
|
633
|
-
}, null, 8,
|
|
634
|
-
t.$slots["data-label"] ?
|
|
653
|
+
}, null, 8, ra)) : _("", !0),
|
|
654
|
+
t.$slots["data-label"] ? b(t.$slots, "data-label", ke({
|
|
635
655
|
key: 2,
|
|
636
656
|
ref_for: !0
|
|
637
|
-
}, { ...
|
|
638
|
-
e.value.style.chart.circles.labels.name.show &&
|
|
657
|
+
}, { ...a, createTSpans: i(Nt), fontSize: { name: a.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio, value: Be(a) * 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 : i(Q)(a.color) }), void 0, !0) : (p(), w(ue, { key: 3 }, [
|
|
658
|
+
e.value.style.chart.circles.labels.name.show && a.name ? (p(), w("text", {
|
|
639
659
|
key: 0,
|
|
640
660
|
style: {
|
|
641
661
|
pointerEvents: "none",
|
|
642
662
|
transition: "opacity 0.2s ease-in-out"
|
|
643
663
|
},
|
|
644
|
-
opacity: h.value && !
|
|
645
|
-
x:
|
|
646
|
-
y:
|
|
647
|
-
"font-size":
|
|
648
|
-
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : i(Q)(
|
|
664
|
+
opacity: h.value && !A.value ? 0.2 : 1,
|
|
665
|
+
x: a.x,
|
|
666
|
+
y: a.y + Re(a.r, e.value.style.chart.circles.labels.name.offsetY) - a.r / 10,
|
|
667
|
+
"font-size": a.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
668
|
+
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : i(Q)(a.color),
|
|
649
669
|
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
650
670
|
"text-anchor": "middle"
|
|
651
|
-
},
|
|
652
|
-
e.value.style.chart.circles.labels.value.show ? (p(),
|
|
671
|
+
}, W(a.name), 9, ia)) : _("", !0),
|
|
672
|
+
e.value.style.chart.circles.labels.value.show ? (p(), w("text", {
|
|
653
673
|
key: 1,
|
|
654
674
|
style: {
|
|
655
675
|
pointerEvents: "none",
|
|
656
676
|
transition: "opacity 0.2s ease-in-out"
|
|
657
677
|
},
|
|
658
|
-
opacity: h.value && !
|
|
659
|
-
x:
|
|
660
|
-
y:
|
|
661
|
-
"font-size": Be(
|
|
662
|
-
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : i(Q)(
|
|
678
|
+
opacity: h.value && !A.value ? 0.2 : 1,
|
|
679
|
+
x: a.x,
|
|
680
|
+
y: a.y + Re(a.r, e.value.style.chart.circles.labels.value.offsetY) + a.r / 2.5,
|
|
681
|
+
"font-size": Be(a) * e.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
682
|
+
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : i(Q)(a.color),
|
|
663
683
|
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
664
684
|
"text-anchor": "middle"
|
|
665
|
-
},
|
|
685
|
+
}, W(pe(a)), 9, ca)) : _("", !0)
|
|
666
686
|
], 64))
|
|
667
687
|
], 64))), 256)),
|
|
668
|
-
h.value && e.value.style.chart.circles.zoom.show && !
|
|
669
|
-
|
|
688
|
+
h.value && e.value.style.chart.circles.zoom.show && !A.value ? (p(), w(ue, { key: 1 }, [
|
|
689
|
+
z("circle", {
|
|
670
690
|
style: se(dt.value),
|
|
671
691
|
cx: h.value.x,
|
|
672
692
|
cy: h.value.y,
|
|
673
|
-
r:
|
|
674
|
-
opacity:
|
|
693
|
+
r: Z.value,
|
|
694
|
+
opacity: F.value,
|
|
675
695
|
stroke: e.value.style.chart.circles.stroke,
|
|
676
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth *
|
|
696
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth * Y.value / 100,
|
|
677
697
|
fill: e.value.style.chart.circles.gradient.show ? `url(#${h.value.id})` : h.value.color
|
|
678
|
-
}, null, 12,
|
|
679
|
-
t.$slots["zoom-label"] ? (p(),
|
|
680
|
-
|
|
681
|
-
])) : (p(),
|
|
682
|
-
|
|
698
|
+
}, null, 12, va),
|
|
699
|
+
t.$slots["zoom-label"] ? (p(), w("g", da, [
|
|
700
|
+
b(t.$slots, "zoom-label", S(O({ ...h.value, zoomOpacity: F.value, currentRadius: Z.value, fontSize: J.value })), void 0, !0)
|
|
701
|
+
])) : (p(), w("g", ha, [
|
|
702
|
+
z("text", {
|
|
683
703
|
style: {
|
|
684
704
|
pointerEvents: "none"
|
|
685
705
|
},
|
|
686
|
-
opacity:
|
|
706
|
+
opacity: F.value,
|
|
687
707
|
x: h.value.x,
|
|
688
|
-
y: h.value.y + e.value.style.chart.circles.zoom.label.name.offsetY -
|
|
708
|
+
y: h.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - J.value.name / 4,
|
|
689
709
|
"text-anchor": "middle",
|
|
690
|
-
"font-size":
|
|
710
|
+
"font-size": J.value.name,
|
|
691
711
|
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : i(Q)(h.value.color),
|
|
692
712
|
"font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
|
|
693
|
-
},
|
|
694
|
-
|
|
713
|
+
}, W(h.value.name), 9, fa),
|
|
714
|
+
z("text", {
|
|
695
715
|
style: {
|
|
696
716
|
pointerEvents: "none"
|
|
697
717
|
},
|
|
698
|
-
opacity:
|
|
718
|
+
opacity: F.value,
|
|
699
719
|
x: h.value.x,
|
|
700
|
-
y: h.value.y +
|
|
720
|
+
y: h.value.y + J.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
|
|
701
721
|
"text-anchor": "middle",
|
|
702
|
-
"font-size":
|
|
722
|
+
"font-size": J.value.value,
|
|
703
723
|
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : i(Q)(h.value.color),
|
|
704
724
|
"font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
|
|
705
|
-
},
|
|
725
|
+
}, W(ht()), 9, ma)
|
|
706
726
|
]))
|
|
707
727
|
], 64)) : _("", !0),
|
|
708
|
-
|
|
709
|
-
svg: { ...
|
|
728
|
+
b(t.$slots, "svg", {
|
|
729
|
+
svg: { ...P.value }
|
|
710
730
|
}, void 0, !0)
|
|
711
|
-
], 14,
|
|
712
|
-
t.$slots.watermark ? (p(),
|
|
713
|
-
|
|
731
|
+
], 14, ea)),
|
|
732
|
+
t.$slots.watermark ? (p(), w("div", pa, [
|
|
733
|
+
b(t.$slots, "watermark", S(O({ isPrinting: i(Pe) || i(Fe) })), void 0, !0)
|
|
714
734
|
])) : _("", !0),
|
|
715
|
-
t.$slots.source ? (p(),
|
|
735
|
+
t.$slots.source ? (p(), w("div", {
|
|
716
736
|
key: 5,
|
|
717
737
|
ref_key: "source",
|
|
718
738
|
ref: ot,
|
|
719
739
|
dir: "auto"
|
|
720
740
|
}, [
|
|
721
|
-
|
|
741
|
+
b(t.$slots, "source", {}, void 0, !0)
|
|
722
742
|
], 512)) : _("", !0),
|
|
723
|
-
|
|
743
|
+
j.value && e.value.userOptions.buttons.table ? (p(), G(St(K.value.component), ke({ key: 6 }, K.value.props, {
|
|
724
744
|
ref_key: "tableUnit",
|
|
725
|
-
ref:
|
|
745
|
+
ref: q,
|
|
726
746
|
onClose: Ve
|
|
727
747
|
}), je({
|
|
728
|
-
content:
|
|
729
|
-
(p(),
|
|
730
|
-
key: `table_${
|
|
748
|
+
content: g(() => [
|
|
749
|
+
(p(), G(i(n), {
|
|
750
|
+
key: `table_${ze.value}`,
|
|
731
751
|
colNames: oe.value.colNames,
|
|
732
752
|
head: oe.value.head,
|
|
733
753
|
body: oe.value.body,
|
|
734
754
|
config: oe.value.config,
|
|
735
|
-
title: e.value.table.useDialog ? "" :
|
|
755
|
+
title: e.value.table.useDialog ? "" : K.value.title,
|
|
736
756
|
withCloseButton: !e.value.table.useDialog,
|
|
737
757
|
onClose: Ve
|
|
738
758
|
}, {
|
|
739
|
-
th:
|
|
740
|
-
|
|
741
|
-
innerHTML:
|
|
759
|
+
th: g(({ th: a }) => [
|
|
760
|
+
z("div", {
|
|
761
|
+
innerHTML: a,
|
|
742
762
|
style: { display: "flex", "align-items": "center" }
|
|
743
|
-
}, null, 8,
|
|
763
|
+
}, null, 8, ya)
|
|
744
764
|
]),
|
|
745
|
-
td:
|
|
746
|
-
Xe(
|
|
765
|
+
td: g(({ td: a }) => [
|
|
766
|
+
Xe(W(a.name || a), 1)
|
|
747
767
|
]),
|
|
748
768
|
_: 1
|
|
749
769
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -752,32 +772,32 @@ const Qt = ["id"], el = ["xmlns", "viewBox", "height", "width"], tl = ["x", "y",
|
|
|
752
772
|
}, [
|
|
753
773
|
e.value.table.useDialog ? {
|
|
754
774
|
name: "title",
|
|
755
|
-
fn:
|
|
756
|
-
Xe(
|
|
775
|
+
fn: g(() => [
|
|
776
|
+
Xe(W(K.value.title), 1)
|
|
757
777
|
]),
|
|
758
778
|
key: "0"
|
|
759
779
|
} : void 0,
|
|
760
780
|
e.value.table.useDialog ? {
|
|
761
781
|
name: "actions",
|
|
762
|
-
fn:
|
|
763
|
-
|
|
782
|
+
fn: g(() => [
|
|
783
|
+
z("button", {
|
|
764
784
|
tabindex: "0",
|
|
765
785
|
class: "vue-ui-user-options-button",
|
|
766
|
-
onClick:
|
|
786
|
+
onClick: l[0] || (l[0] = (a) => be(e.value.userOptions.callbacks.csv))
|
|
767
787
|
}, [
|
|
768
788
|
qe(i(y), {
|
|
769
789
|
name: "excel",
|
|
770
|
-
stroke:
|
|
790
|
+
stroke: K.value.props.color
|
|
771
791
|
}, null, 8, ["stroke"])
|
|
772
792
|
])
|
|
773
793
|
]),
|
|
774
794
|
key: "1"
|
|
775
795
|
} : void 0
|
|
776
796
|
]), 1040)) : _("", !0),
|
|
777
|
-
i(Se) ? (p(),
|
|
797
|
+
i(Se) ? (p(), G(Gt, { key: 7 })) : _("", !0)
|
|
778
798
|
], 46, Qt));
|
|
779
799
|
}
|
|
780
|
-
},
|
|
800
|
+
}, Pa = /* @__PURE__ */ Jt(ba, [["__scopeId", "data-v-bc6669a4"]]);
|
|
781
801
|
export {
|
|
782
|
-
|
|
802
|
+
Pa as default
|
|
783
803
|
};
|