vue-data-ui 3.10.0 → 3.10.2
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/dist/{Arrow-ChEFq9U7.js → Arrow-DWr41GRU.js} +1 -1
- package/dist/{BaseDraggableDialog-O2XSymlZ.js → BaseDraggableDialog-BQYfVNu8.js} +2 -2
- package/dist/{BaseIcon-B9bGT7HU.js → BaseIcon-4uOct8re.js} +18 -18
- package/dist/{BaseZoomControls-B4rpv4Kk.js → BaseZoomControls-Cb-Qq9_R.js} +2 -2
- package/dist/{ColorPicker-VKEPgk58.js → ColorPicker-Culsjrcr.js} +2 -2
- package/dist/{DataTable-DEwh__D8.js → DataTable-DyoDzNNY.js} +2 -2
- package/dist/{Legend-D2xmnFPH.js → Legend-DN5UJOBH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CxbOhI52.js → NonSvgPenAndPaper-CNMLfAk3.js} +3 -3
- package/dist/{PackageVersion-C-JOGZBL.js → PackageVersion-CQxJyGQr.js} +1 -1
- package/dist/{PenAndPaper-CulSakut.js → PenAndPaper-LTuSTmWE.js} +3 -3
- package/dist/{Shape-12_eh8zD.js → Shape-PzdCMGsP.js} +1 -1
- package/dist/{Slicer-EQH4YKwe.js → Slicer-DckZxvyx.js} +2 -2
- package/dist/{SlicerPreview-Ddfxn6es.js → SlicerPreview-CSc_cazO.js} +2 -2
- package/dist/{SparkTooltip-D_OsZuuE.js → SparkTooltip-BLTVhvm2.js} +1 -1
- package/dist/{Title-B5L2jweB.js → Title-NgeRXqRA.js} +1 -1
- package/dist/{Tooltip-DpfUZbt7.js → Tooltip-B6qvABDL.js} +1 -1
- package/dist/{UserOptions-5pXc4J-c.js → UserOptions-CX7Xsusk.js} +2 -2
- package/dist/components/arrow.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-bump.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-dag.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-geo.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-icon.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/{dom-to-png-WXGPkYro.js → dom-to-png-CzjUUVZt.js} +1 -1
- package/dist/{img-CqYIrJ8I.js → img-6fNF_rG0.js} +1 -1
- package/dist/{labelUtils-B3mOOEke.js → labelUtils-D6Y-n7cD.js} +1 -1
- package/dist/{lib-2iaAPQ_c.js → lib-CVHM9FhP.js} +188 -140
- package/dist/{pdf-Q5BpWMSa.js → pdf-Dd_6HF9L.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +3 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js → useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js} +1 -1
- package/dist/{useNestedProp-BCt4DMkT.js → useNestedProp-Ckf_2P_V.js} +1 -1
- package/dist/{usePrinter-ChVMpU2f.js → usePrinter-1NmjuP-i.js} +2 -2
- package/dist/{useThemeCheck-DGJ31Vi5.js → useThemeCheck-D1ZYXUwG.js} +5 -3
- package/dist/{vue-data-ui-CwfD22m4.js → vue-data-ui-GAruO_UT.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-DAr11NEe.js → vue-ui-3d-bar-t_E9saCp.js} +222 -218
- package/dist/{vue-ui-accordion-CAXPDm31.js → vue-ui-accordion-DFKaB_05.js} +3 -3
- package/dist/{vue-ui-age-pyramid-KApqwR11.js → vue-ui-age-pyramid-DKlTGZ6m.js} +177 -173
- package/dist/{vue-ui-annotator-D-x-F49X.js → vue-ui-annotator-CNkhGqqn.js} +7 -7
- package/dist/{vue-ui-bullet-D3ZOexko.js → vue-ui-bullet-C4FXVy8_.js} +135 -131
- package/dist/{vue-ui-bump-BJUb7fNz.js → vue-ui-bump-BJZrexv4.js} +264 -260
- package/dist/{vue-ui-candlestick-BBwYtV1-.js → vue-ui-candlestick-P7w1YVT6.js} +304 -300
- package/dist/{vue-ui-carousel-table-DrzQReuc.js → vue-ui-carousel-table-DQk4RoWo.js} +4 -4
- package/dist/{vue-ui-chestnut-ByqOYfmS.js → vue-ui-chestnut-Co8x4We0.js} +326 -322
- package/dist/{vue-ui-chord-3k3MxDxL.js → vue-ui-chord-NjSRzToa.js} +171 -167
- package/dist/{vue-ui-circle-pack-U-fW2dBh.js → vue-ui-circle-pack-CwrgCRKX.js} +162 -158
- package/dist/{vue-ui-cursor-PxyKLKT4.js → vue-ui-cursor-Bh5-9JWm.js} +3 -3
- package/dist/{vue-ui-dag-BgB4pBHg.js → vue-ui-dag-BBGpjSzH.js} +451 -447
- package/dist/{vue-ui-dashboard-Bb0qmaCv.js → vue-ui-dashboard-ekbwnmce.js} +68 -68
- package/dist/{vue-ui-digits-DWt_f5c-.js → vue-ui-digits-DnsDASGD.js} +2 -2
- package/dist/{vue-ui-donut-Ce4aLPAr.js → vue-ui-donut-DvLh8qa2.js} +467 -463
- package/dist/{vue-ui-donut-evolution-Dn8sOIr-.js → vue-ui-donut-evolution-BiLhAVY8.js} +354 -350
- package/dist/{vue-ui-dumbbell-Bu8opmEM.js → vue-ui-dumbbell-C2OWcZvr.js} +240 -236
- package/dist/{vue-ui-flow-CavJTxRY.js → vue-ui-flow-Cp2le1ur.js} +171 -167
- package/dist/{vue-ui-funnel-CWSmOHEt.js → vue-ui-funnel-ClGo8z4y.js} +133 -129
- package/dist/{vue-ui-galaxy-CqeQVqG-.js → vue-ui-galaxy-DTAl_-40.js} +146 -142
- package/dist/{vue-ui-gauge-DnU9JZ0v.js → vue-ui-gauge-DOG6-lgt.js} +175 -171
- package/dist/{vue-ui-geo-Dg8W127k.js → vue-ui-geo-BpWyHXwd.js} +123 -119
- package/dist/{vue-ui-gizmo-BfyTXxBY.js → vue-ui-gizmo-BMq5dzK4.js} +3 -3
- package/dist/{vue-ui-heatmap-D_JOEm4-.js → vue-ui-heatmap-Bp9HI0Zo.js} +231 -227
- package/dist/{vue-ui-history-plot-DgMc6-9X.js → vue-ui-history-plot-CVM1jz1X.js} +252 -248
- package/dist/{vue-ui-horizontal-bar-BPX7YBdV.js → vue-ui-horizontal-bar-B0UY6b-O.js} +325 -321
- package/dist/{vue-ui-kpi-BqCS6onP.js → vue-ui-kpi-DgSmfw2q.js} +3 -3
- package/dist/{vue-ui-mini-loader-CcXuJ3iD.js → vue-ui-mini-loader-D8z1PwRZ.js} +2 -2
- package/dist/{vue-ui-molecule-CX-pPp0u.js → vue-ui-molecule-CUppdL5f.js} +183 -179
- package/dist/{vue-ui-mood-radar-3nHlZfrB.js → vue-ui-mood-radar-QN25VSAw.js} +162 -158
- package/dist/{vue-ui-nested-donuts-cz79gQlJ.js → vue-ui-nested-donuts-ywWUDYjT.js} +178 -174
- package/dist/{vue-ui-onion-yseOpPeu.js → vue-ui-onion-DmwZ1gg_.js} +185 -181
- package/dist/{vue-ui-parallel-coordinate-plot-Dqg_vJCM.js → vue-ui-parallel-coordinate-plot-Bz2ROYRD.js} +195 -191
- package/dist/{vue-ui-quadrant-D4UDUZoN.js → vue-ui-quadrant-CUpWOWF2.js} +243 -239
- package/dist/{vue-ui-quick-chart-BMDrPkAJ.js → vue-ui-quick-chart-CXrm_rzI.js} +295 -291
- package/dist/{vue-ui-radar-B_wSZVDb.js → vue-ui-radar-BqLjOOnJ.js} +168 -164
- package/dist/{vue-ui-rating-CBedYtOp.js → vue-ui-rating-W6I6pacT.js} +2 -2
- package/dist/{vue-ui-relation-circle-DydZv4Pf.js → vue-ui-relation-circle-CrYmJHLI.js} +185 -181
- package/dist/vue-ui-ridgeline-ZbmQXJxt.js +1306 -0
- package/dist/{vue-ui-rings-BdYnuNS7.js → vue-ui-rings-BxYoBfvT.js} +299 -295
- package/dist/{vue-ui-scatter-QISpPygj.js → vue-ui-scatter-BhJkoRBS.js} +354 -350
- package/dist/{vue-ui-skeleton-CdpD_Zjk.js → vue-ui-skeleton-Bg1akQqn.js} +3 -3
- package/dist/{vue-ui-smiley-CTeSlfZa.js → vue-ui-smiley-B23r7AWp.js} +2 -2
- package/dist/{vue-ui-spark-trend-Jgho2QgC.js → vue-ui-spark-trend-CJtfXMSj.js} +120 -116
- package/dist/{vue-ui-sparkbar-CLqcdko6.js → vue-ui-sparkbar-DHJdmNDm.js} +84 -80
- package/dist/{vue-ui-sparkgauge-BA3NDOhA.js → vue-ui-sparkgauge-ANfPLNuD.js} +81 -77
- package/dist/{vue-ui-sparkhistogram-fb8hGuCn.js → vue-ui-sparkhistogram-CIfYUXVZ.js} +109 -105
- package/dist/{vue-ui-sparkline-BWdvoOYj.js → vue-ui-sparkline-Bm0OmFUB.js} +184 -174
- package/dist/{vue-ui-sparkstackbar-DbbdPqIp.js → vue-ui-sparkstackbar-CCnnfsqG.js} +99 -95
- package/dist/{vue-ui-stackbar-MYly9iMc.js → vue-ui-stackbar-CK5is5H7.js} +376 -372
- package/dist/{vue-ui-stackline-L0q_GsYv.js → vue-ui-stackline-CFv2OUCL.js} +349 -345
- package/dist/{vue-ui-strip-plot-B7W1EZdY.js → vue-ui-strip-plot-CJ1Zkrhq.js} +248 -244
- package/dist/{vue-ui-table-WSRRp_nE.js → vue-ui-table-CMyYl8lE.js} +5 -5
- package/dist/{vue-ui-table-heatmap-Bqr4Eubg.js → vue-ui-table-heatmap-8kBdXO2V.js} +6 -6
- package/dist/{vue-ui-table-sparkline-UhaEz2jD.js → vue-ui-table-sparkline-Bo4nuBEx.js} +174 -170
- package/dist/{vue-ui-thermometer-BFwmgdMO.js → vue-ui-thermometer-h3voYVGJ.js} +133 -129
- package/dist/{vue-ui-timer-CoLOwKwP.js → vue-ui-timer-CazY_Z4R.js} +5 -5
- package/dist/{vue-ui-tiremarks-CvXOa3z4.js → vue-ui-tiremarks-CTa_gpit.js} +156 -152
- package/dist/{vue-ui-treemap-C8HbMbin.js → vue-ui-treemap-B6AuOtaA.js} +161 -157
- package/dist/{vue-ui-waffle-rS6LRZNV.js → vue-ui-waffle-DnEBC07H.js} +185 -181
- package/dist/{vue-ui-wheel-BGle0ni9.js → vue-ui-wheel-DFU2vMsP.js} +125 -121
- package/dist/{vue-ui-word-cloud-Dj1lJdtL.js → vue-ui-word-cloud-DgY58NEj.js} +179 -175
- package/dist/{vue-ui-world-C7d5vM6d.js → vue-ui-world-xEUaTJDk.js} +6 -6
- package/dist/{vue-ui-xy-canvas-CoBMpLeE.js → vue-ui-xy-canvas-eHl--9m7.js} +213 -209
- package/dist/{vue-ui-xy-De-FDHwh.js → vue-ui-xy-spqKboQb.js} +697 -693
- package/package.json +1 -1
- package/dist/vue-ui-ridgeline-BGerPYkY.js +0 -1302
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { defineAsyncComponent as E, computed as w, ref as f, toRefs as
|
|
2
|
-
import { u as
|
|
3
|
-
import { c as Ke, t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { t as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
function
|
|
1
|
+
import { defineAsyncComponent as E, computed as w, ref as f, toRefs as Dt, watch as le, onMounted as Pt, onBeforeUnmount as It, createElementBlock as g, openBlock as h, unref as i, normalizeStyle as ae, normalizeClass as ge, createBlock as V, createCommentVNode as x, renderSlot as b, createElementVNode as S, createVNode as Ce, withCtx as m, normalizeProps as _, guardReactiveProps as F, createSlots as Ze, Fragment as j, renderList as ke, mergeProps as we, toDisplayString as ne, resolveDynamicComponent as Et, createTextVNode as Je, nextTick as Bt } from "vue";
|
|
2
|
+
import { u as Mt, a as xe } from "./useNestedProp-Ckf_2P_V.js";
|
|
3
|
+
import { c as Ke, t as Nt, i as Ae, j as se, o as Rt, g as zt, k as Lt, m as Ut, d as Qe, X as Vt, q as jt, u as Gt, x as $e, H as Yt, v as Xt, r as qt, y as Ht, a as Wt } from "./lib-CVHM9FhP.js";
|
|
4
|
+
import { u as Zt } from "./usePrinter-1NmjuP-i.js";
|
|
5
|
+
import { u as Jt, B as Kt } from "./BaseScanner-BMpwQAfz.js";
|
|
6
|
+
import { u as Qt } from "./useSvgExport-ByUukOZt.js";
|
|
7
|
+
import { u as eo } from "./useThemeCheck-D1ZYXUwG.js";
|
|
8
|
+
import { u as to } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as oo } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { t as lo, u as ao } from "./useResponsive-DfdjqQps.js";
|
|
11
|
+
import no from "./img-6fNF_rG0.js";
|
|
12
|
+
import so from "./Title-NgeRXqRA.js";
|
|
13
|
+
import { _ as ro } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
function uo(u, c = 0) {
|
|
15
15
|
const p = u.reduce((a, { x: s, r: d }) => Math.min(a, s - d - c), 1 / 0), y = u.reduce((a, { x: s, r: d }) => Math.max(a, s + d + c), -1 / 0), v = u.reduce((a, { y: s, r: d }) => Math.min(a, s - d - c), 1 / 0), n = u.reduce((a, { y: s, r: d }) => Math.max(a, s + d + c), -1 / 0);
|
|
16
16
|
return [p, v, y - p, n - v];
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function io(u, c, p) {
|
|
19
19
|
const y = u._, v = u.next._, n = y.r + v.r, a = (y.x * v.r + v.x * y.r) / n, s = (y.y * v.r + v.y * y.r) / n;
|
|
20
20
|
return Math.max(Math.abs(a * p), Math.abs(s * c));
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
const y =
|
|
22
|
+
function co(u, c, p) {
|
|
23
|
+
const y = io, v = u.length;
|
|
24
24
|
if (!v) return u;
|
|
25
25
|
let n, a, s;
|
|
26
26
|
if (n = u[0], n.x = 0, n.y = 0, !(v > 1) || (a = u[1], n.x = -a.r, a.x = n.r, a.y = 0, !(v > 2))) return u;
|
|
27
27
|
et(a, n, s = u[2]), n = new re(n), a = new re(a), s = new re(s), n.next = s.previous = a, a.next = n.previous = s, s.next = a.previous = n;
|
|
28
28
|
e: for (let d = 3; d < v; ++d) {
|
|
29
29
|
et(n._, a._, s = u[d]), s = new re(s);
|
|
30
|
-
let
|
|
30
|
+
let C = a.next, D = n.previous, A = a._.r, J = n._.r;
|
|
31
31
|
do
|
|
32
|
-
if (
|
|
33
|
-
if (tt(
|
|
34
|
-
a =
|
|
32
|
+
if (A <= J) {
|
|
33
|
+
if (tt(C._, s._)) {
|
|
34
|
+
a = C, n.next = a, a.previous = n, --d;
|
|
35
35
|
continue e;
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
A += C._.r, C = C.next;
|
|
38
38
|
} else {
|
|
39
39
|
if (tt(D._, s._)) {
|
|
40
40
|
n = D, n.next = a, a.previous = n, --d;
|
|
@@ -42,7 +42,7 @@ function uo(u, c, p) {
|
|
|
42
42
|
}
|
|
43
43
|
J += D._.r, D = D.previous;
|
|
44
44
|
}
|
|
45
|
-
while (
|
|
45
|
+
while (C !== D.next);
|
|
46
46
|
s.previous = n, s.next = a, n.next = a.previous = a = s;
|
|
47
47
|
let K = y(n, p, c), Q;
|
|
48
48
|
for (; (s = s.next) !== a; )
|
|
@@ -56,11 +56,11 @@ function et(u, c, p) {
|
|
|
56
56
|
if (n) {
|
|
57
57
|
const a = (c.r + p.r) ** 2, s = (u.r + p.r) ** 2;
|
|
58
58
|
if (a > s) {
|
|
59
|
-
const d = (n + s - a) / (2 * n),
|
|
60
|
-
p.x = u.x - d * y -
|
|
59
|
+
const d = (n + s - a) / (2 * n), C = Math.sqrt(Math.max(0, s / n - d * d));
|
|
60
|
+
p.x = u.x - d * y - C * v, p.y = u.y - d * v + C * y;
|
|
61
61
|
} else {
|
|
62
|
-
const d = (n + a - s) / (2 * n),
|
|
63
|
-
p.x = c.x + d * y -
|
|
62
|
+
const d = (n + a - s) / (2 * n), C = Math.sqrt(Math.max(0, a / n - d * d));
|
|
63
|
+
p.x = c.x + d * y - C * v, p.y = c.y + d * v + C * y;
|
|
64
64
|
}
|
|
65
65
|
} else
|
|
66
66
|
p.x = c.x + p.r, p.y = c.y;
|
|
@@ -74,27 +74,31 @@ class re {
|
|
|
74
74
|
this._ = c, this.next = null, this.previous = null;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", circles: { stroke: "#1A1A1A", selectedShadowColor: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } } },
|
|
77
|
+
const ot = { userOptions: { show: !1 } }, lt = { userOptions: { show: !1 }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", circles: { stroke: "#1A1A1A", selectedShadowColor: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" } } } }, at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", circles: { stroke: "#1A1A1A", selectedShadowColor: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } } }, nt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } } }, st = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, circles: { stroke: "#3A3A3A", selectedShadowColor: "#FFF8E1" }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } } }, rt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, circles: { stroke: "#3A3A3A", selectedShadowColor: "#66CC66" }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } } }, ut = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } } }, it = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } } }, ct = {
|
|
78
78
|
default: {},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
minimal: ot,
|
|
80
|
+
minimalDark: lt,
|
|
81
|
+
dark: at,
|
|
82
|
+
celebration: nt,
|
|
83
|
+
celebrationNight: st,
|
|
84
|
+
hack: rt,
|
|
85
|
+
zen: ut,
|
|
86
|
+
concrete: it
|
|
87
|
+
}, Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86
88
|
__proto__: null,
|
|
87
|
-
celebration:
|
|
88
|
-
celebrationNight:
|
|
89
|
-
concrete:
|
|
90
|
-
dark:
|
|
91
|
-
default:
|
|
92
|
-
hack:
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
celebration: nt,
|
|
90
|
+
celebrationNight: st,
|
|
91
|
+
concrete: it,
|
|
92
|
+
dark: at,
|
|
93
|
+
default: ct,
|
|
94
|
+
hack: rt,
|
|
95
|
+
minimal: ot,
|
|
96
|
+
minimalDark: lt,
|
|
97
|
+
zen: ut
|
|
98
|
+
}, Symbol.toStringTag, { value: "Module" })), vo = ["id"], fo = ["xmlns", "viewBox"], ho = ["x", "y", "width", "height"], po = ["id"], bo = ["stop-color"], yo = ["stop-color"], mo = ["stop-color"], go = { key: 0 }, Co = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onMouseout", "onClick"], ko = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], wo = ["x", "y", "width", "height", "fill", "rx"], xo = ["x", "y", "font-size", "fill", "font-weight"], Ao = ["x", "y", "font-size", "fill", "font-weight"], $o = {
|
|
95
99
|
key: 4,
|
|
96
100
|
class: "vue-data-ui-watermark"
|
|
97
|
-
},
|
|
101
|
+
}, To = ["innerHTML"], _o = {
|
|
98
102
|
__name: "vue-ui-circle-pack",
|
|
99
103
|
props: {
|
|
100
104
|
config: {
|
|
@@ -112,8 +116,8 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
112
116
|
},
|
|
113
117
|
emits: ["selectDatapoint"],
|
|
114
118
|
setup(u, { expose: c, emit: p }) {
|
|
115
|
-
const y = E(() => import("./Tooltip-
|
|
116
|
-
...
|
|
119
|
+
const y = E(() => import("./Tooltip-B6qvABDL.js")), v = E(() => import("./BaseIcon-4uOct8re.js")), n = E(() => import("./vue-ui-accordion-DFKaB_05.js")), a = E(() => import("./DataTable-DyoDzNNY.js")), s = E(() => import("./UserOptions-CX7Xsusk.js")), d = E(() => import("./PenAndPaper-LTuSTmWE.js")), C = E(() => import("./PackageVersion-CQxJyGQr.js")), D = E(() => import("./BaseDraggableDialog-BQYfVNu8.js")), A = u, J = p, { vue_ui_circle_pack: K } = Mt(), { isThemeValid: Q, warnInvalidTheme: vt } = eo(), Te = w(() => !!A.dataset && A.dataset.length), G = f(Ke()), $ = f(null), _e = f(null), Fe = f(null), Se = f(0), Oe = f(0), De = f(0), Pe = f(null), z = f(null), ue = f(null), ie = f(!1), ce = f(""), B = f(null), e = f(de()), { loading: Ie, FINAL_DATASET: Ee } = Jt({
|
|
120
|
+
...Dt(A),
|
|
117
121
|
FINAL_CONFIG: e,
|
|
118
122
|
prepareConfig: de,
|
|
119
123
|
skeletonDataset: [
|
|
@@ -124,7 +128,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
124
128
|
{ name: "_", value: 2, color: "#808080" },
|
|
125
129
|
{ name: "_", value: 1, color: "#696969" }
|
|
126
130
|
],
|
|
127
|
-
skeletonConfig:
|
|
131
|
+
skeletonConfig: Nt({
|
|
128
132
|
defaultConfig: e.value,
|
|
129
133
|
userConfig: {
|
|
130
134
|
userOptions: { show: !1 },
|
|
@@ -143,57 +147,57 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
143
147
|
}
|
|
144
148
|
}
|
|
145
149
|
})
|
|
146
|
-
}), { svgRef: L } =
|
|
150
|
+
}), { svgRef: L } = oo({ config: e.value.style.chart.title }), {
|
|
147
151
|
userOptionsVisible: ve,
|
|
148
152
|
setUserOptionsVisibility: Be,
|
|
149
153
|
keepUserOptionState: Me
|
|
150
|
-
} =
|
|
154
|
+
} = to({ config: e.value });
|
|
151
155
|
function de() {
|
|
152
156
|
const t = xe({
|
|
153
|
-
userConfig:
|
|
157
|
+
userConfig: A.config,
|
|
154
158
|
defaultConfig: K
|
|
155
159
|
}), l = t.theme;
|
|
156
160
|
if (!l) return t;
|
|
157
161
|
if (!Q.value(t))
|
|
158
|
-
return
|
|
162
|
+
return vt(t), t;
|
|
159
163
|
const o = xe({
|
|
160
|
-
userConfig:
|
|
164
|
+
userConfig: ct[l] || A.config,
|
|
161
165
|
defaultConfig: t
|
|
162
166
|
}), r = xe({
|
|
163
|
-
userConfig:
|
|
167
|
+
userConfig: A.config,
|
|
164
168
|
defaultConfig: o
|
|
165
169
|
});
|
|
166
170
|
return {
|
|
167
171
|
...r,
|
|
168
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
172
|
+
customPalette: r.customPalette.length ? r.customPalette : Ae[l] || se
|
|
169
173
|
};
|
|
170
174
|
}
|
|
171
|
-
le(() =>
|
|
172
|
-
e.value = de(), ve.value = !e.value.userOptions.showOnChartHover, fe(), Se.value += 1, Oe.value += 1,
|
|
175
|
+
le(() => A.config, (t) => {
|
|
176
|
+
e.value = de(), ve.value = !e.value.userOptions.showOnChartHover, fe(), Se.value += 1, Oe.value += 1, T.value.showTable = e.value.table.show;
|
|
173
177
|
}, { deep: !0 });
|
|
174
|
-
const { isPrinting: Ne, isImaging: Re, generatePdf: ze, generateImage: Le } =
|
|
178
|
+
const { isPrinting: Ne, isImaging: Re, generatePdf: ze, generateImage: Le } = Zt({
|
|
175
179
|
elementId: `vue-ui-circle-pack_${G.value}`,
|
|
176
180
|
fileName: e.value.style.chart.title.text || "vue-ui-circle-pack",
|
|
177
181
|
options: e.value.userOptions.print
|
|
178
|
-
}),
|
|
182
|
+
}), dt = w(() => e.value.userOptions.show && !e.value.style.chart.title.text), T = f({
|
|
179
183
|
showTable: e.value.table.show,
|
|
180
184
|
showTooltip: e.value.style.chart.tooltip.show
|
|
181
185
|
});
|
|
182
186
|
le(e, () => {
|
|
183
|
-
|
|
187
|
+
T.value = {
|
|
184
188
|
showTable: e.value.table.show,
|
|
185
189
|
showTooltip: e.value.style.chart.tooltip.show
|
|
186
190
|
};
|
|
187
191
|
}, { immediate: !0 });
|
|
188
|
-
const
|
|
192
|
+
const ft = f({ h: 10, w: 10 }), Ue = f([0, 0, 100, 100]), ht = w(() => e.value.debug), pt = w(() => {
|
|
189
193
|
const t = e.value.style?.chart || {};
|
|
190
194
|
return t.dimensions && typeof t.dimensions.width == "number" ? t.dimensions.width : typeof t.width == "number" ? t.width : 300;
|
|
191
|
-
}),
|
|
195
|
+
}), bt = w(() => {
|
|
192
196
|
const t = e.value.style?.chart || {};
|
|
193
197
|
return t.dimensions && typeof t.dimensions.height == "number" ? t.dimensions.height : typeof t.height == "number" ? t.height : 300;
|
|
194
198
|
}), M = f([]), P = f("0 0 100 100"), O = f(null), I = f(null);
|
|
195
199
|
function Ve(t, l) {
|
|
196
|
-
|
|
200
|
+
ft.value = {
|
|
197
201
|
w: t,
|
|
198
202
|
h: l
|
|
199
203
|
};
|
|
@@ -202,22 +206,22 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
202
206
|
M.value = [], Ue.value = [0, 0, t, l], P.value = `0 0 ${t} ${l}`;
|
|
203
207
|
return;
|
|
204
208
|
}
|
|
205
|
-
const r =
|
|
209
|
+
const r = co(o, l, t), [k, R, W, me] = uo(r, 1), Z = Math.min(
|
|
206
210
|
W ? t / W : 1,
|
|
207
211
|
me ? l / me : 1
|
|
208
|
-
),
|
|
212
|
+
), St = (t - W * Z) / 2, Ot = (l - me * Z) / 2;
|
|
209
213
|
M.value = r.map((U) => ({
|
|
210
214
|
...U,
|
|
211
|
-
x: (U.x -
|
|
212
|
-
y: (U.y - R) * Z +
|
|
215
|
+
x: (U.x - k) * Z + St,
|
|
216
|
+
y: (U.y - R) * Z + Ot,
|
|
213
217
|
r: U.r * Z
|
|
214
218
|
})), Ue.value = [0, 0, t, l], P.value = `0 0 ${t} ${l}`;
|
|
215
219
|
}
|
|
216
|
-
function
|
|
217
|
-
if (!e.value.responsive ||
|
|
218
|
-
const t =
|
|
219
|
-
const { width: l, height: o } =
|
|
220
|
-
chart:
|
|
220
|
+
function yt() {
|
|
221
|
+
if (!e.value.responsive || !$.value) return;
|
|
222
|
+
const t = lo(() => {
|
|
223
|
+
const { width: l, height: o } = ao({
|
|
224
|
+
chart: $.value,
|
|
221
225
|
title: e.value.style.chart.title.text ? _e.value : null,
|
|
222
226
|
legend: null,
|
|
223
227
|
source: Pe.value,
|
|
@@ -227,27 +231,27 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
227
231
|
!l || !o || (L.value && (L.value.setAttribute("width", l), L.value.setAttribute("height", o)), Ve(l, o));
|
|
228
232
|
});
|
|
229
233
|
});
|
|
230
|
-
O.value && (I.value && O.value.unobserve(I.value), O.value.disconnect()), O.value = new ResizeObserver(t), I.value =
|
|
234
|
+
O.value && (I.value && O.value.unobserve(I.value), O.value.disconnect()), O.value = new ResizeObserver(t), I.value = $.value.parentNode || $.value, I.value && O.value.observe(I.value), t();
|
|
231
235
|
}
|
|
232
236
|
function je() {
|
|
233
237
|
O.value && (I.value && O.value.unobserve(I.value), O.value.disconnect(), O.value = null, I.value = null);
|
|
234
238
|
}
|
|
235
239
|
async function fe() {
|
|
236
|
-
|
|
240
|
+
Rt(A.dataset) && zt({
|
|
237
241
|
componentName: "VueUiCirclePack",
|
|
238
242
|
type: "dataset",
|
|
239
|
-
debug:
|
|
243
|
+
debug: ht.value
|
|
240
244
|
});
|
|
241
|
-
const t =
|
|
242
|
-
Ve(t, l), e.value.responsive ?
|
|
245
|
+
const t = pt.value, l = bt.value;
|
|
246
|
+
Ve(t, l), e.value.responsive ? yt() : je();
|
|
243
247
|
}
|
|
244
|
-
|
|
248
|
+
Pt(fe), It(() => {
|
|
245
249
|
je();
|
|
246
250
|
}), le(() => Ee.value, async (t) => {
|
|
247
251
|
await fe();
|
|
248
252
|
}, { deep: !0 });
|
|
249
|
-
const
|
|
250
|
-
const o =
|
|
253
|
+
const mt = w(() => Lt(e.value.customPalette)), Y = w(() => Ee.value.map((t, l) => {
|
|
254
|
+
const o = Ut(t.color) || mt.value[l] || Ae[e.value.theme || "default"][l % Ae[e.value.theme || "default"].length] || se[l] || se[l % se.length];
|
|
251
255
|
return {
|
|
252
256
|
...t,
|
|
253
257
|
r: t.value,
|
|
@@ -258,17 +262,17 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
258
262
|
function Ge(t, l) {
|
|
259
263
|
return X.value ? l / X.value * t : 0;
|
|
260
264
|
}
|
|
261
|
-
function
|
|
265
|
+
function gt(t, l) {
|
|
262
266
|
ie.value = !1, B.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l });
|
|
263
267
|
}
|
|
264
|
-
function
|
|
268
|
+
function Ct(t, l) {
|
|
265
269
|
J("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
266
270
|
}
|
|
267
271
|
const he = f(null), q = f(!1);
|
|
268
|
-
function
|
|
272
|
+
function kt(t, l) {
|
|
269
273
|
B.value = t, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), he.value = { datapoint: t, seriesIndex: l, config: e.value, series: Y.value }, ie.value = !0;
|
|
270
274
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
271
|
-
if (q.value = !1,
|
|
275
|
+
if (q.value = !1, Ht(o))
|
|
272
276
|
try {
|
|
273
277
|
const r = o({
|
|
274
278
|
seriesIndex: l,
|
|
@@ -298,7 +302,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
298
302
|
}
|
|
299
303
|
}
|
|
300
304
|
function pe(t) {
|
|
301
|
-
return
|
|
305
|
+
return Wt(
|
|
302
306
|
e.value.style.chart.circles.labels.value.formatter,
|
|
303
307
|
t.value,
|
|
304
308
|
Qe({
|
|
@@ -332,20 +336,20 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
332
336
|
return { head: t, body: l };
|
|
333
337
|
});
|
|
334
338
|
function ye(t = null) {
|
|
335
|
-
|
|
336
|
-
const l = te.value.head.map((
|
|
339
|
+
Bt(() => {
|
|
340
|
+
const l = te.value.head.map((k, R) => [[k.name], [te.value.body[R]]]), o = [
|
|
337
341
|
[e.value.style.chart.title.text],
|
|
338
342
|
[e.value.style.chart.title.subtitle.text],
|
|
339
343
|
[[""], [e.value.table.columnNames.value]]
|
|
340
|
-
].concat(l), r =
|
|
341
|
-
t ? t(r) :
|
|
344
|
+
].concat(l), r = Xt(o);
|
|
345
|
+
t ? t(r) : qt({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
|
|
342
346
|
});
|
|
343
347
|
}
|
|
344
348
|
const oe = w(() => {
|
|
345
349
|
const t = [
|
|
346
350
|
e.value.table.columnNames.datapoint,
|
|
347
351
|
e.value.table.columnNames.value
|
|
348
|
-
], l = te.value.head.map((
|
|
352
|
+
], l = te.value.head.map((k, R) => {
|
|
349
353
|
const W = Qe({
|
|
350
354
|
p: e.value.style.chart.circles.labels.value.prefix,
|
|
351
355
|
v: te.value.body[R],
|
|
@@ -354,8 +358,8 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
354
358
|
});
|
|
355
359
|
return [
|
|
356
360
|
{
|
|
357
|
-
color:
|
|
358
|
-
name:
|
|
361
|
+
color: k.color,
|
|
362
|
+
name: k.name
|
|
359
363
|
},
|
|
360
364
|
W
|
|
361
365
|
];
|
|
@@ -383,19 +387,19 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
383
387
|
};
|
|
384
388
|
});
|
|
385
389
|
function qe() {
|
|
386
|
-
|
|
390
|
+
T.value.showTable = !T.value.showTable;
|
|
387
391
|
}
|
|
388
|
-
function
|
|
389
|
-
|
|
392
|
+
function wt() {
|
|
393
|
+
T.value.showTooltip = !T.value.showTooltip;
|
|
390
394
|
}
|
|
391
|
-
function
|
|
395
|
+
function xt() {
|
|
392
396
|
return Y.value;
|
|
393
397
|
}
|
|
394
|
-
async function
|
|
395
|
-
if (
|
|
396
|
-
const { width: l, height: o } =
|
|
398
|
+
async function At({ scale: t = 2 } = {}) {
|
|
399
|
+
if (!$.value) return;
|
|
400
|
+
const { width: l, height: o } = $.value.getBoundingClientRect(), r = l / o, { imageUri: k, base64: R } = await no({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
397
401
|
return {
|
|
398
|
-
imageUri:
|
|
402
|
+
imageUri: k,
|
|
399
403
|
base64: R,
|
|
400
404
|
title: e.value.style.chart.title.text,
|
|
401
405
|
width: l,
|
|
@@ -404,7 +408,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
404
408
|
};
|
|
405
409
|
}
|
|
406
410
|
const H = w(() => {
|
|
407
|
-
const t = e.value.table.useDialog && !e.value.table.show, l =
|
|
411
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = T.value.showTable;
|
|
408
412
|
return {
|
|
409
413
|
component: t ? D : n,
|
|
410
414
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -414,7 +418,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
414
418
|
headerColor: e.value.table.th.color,
|
|
415
419
|
headerBg: e.value.table.th.backgroundColor,
|
|
416
420
|
isFullscreen: N.value,
|
|
417
|
-
fullscreenParent:
|
|
421
|
+
fullscreenParent: $.value,
|
|
418
422
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
419
423
|
} : {
|
|
420
424
|
hideDetails: !0,
|
|
@@ -433,27 +437,27 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
433
437
|
}
|
|
434
438
|
};
|
|
435
439
|
});
|
|
436
|
-
le(() =>
|
|
440
|
+
le(() => T.value.showTable, (t) => {
|
|
437
441
|
e.value.table.show || (t && e.value.table.useDialog && z.value ? z.value.open() : z.value && "close" in z.value && z.value.close());
|
|
438
442
|
});
|
|
439
443
|
function He() {
|
|
440
|
-
|
|
444
|
+
T.value.showTable = !1, ue.value && ue.value.setTableIconState(!1);
|
|
441
445
|
}
|
|
442
|
-
const
|
|
446
|
+
const $t = w(() => e.value.style.chart.backgroundColor), Tt = w(() => e.value.style.chart.title), { exportSvg: _t, getSvg: Ft } = Qt({
|
|
443
447
|
svg: L,
|
|
444
|
-
title:
|
|
445
|
-
backgroundColor:
|
|
448
|
+
title: Tt,
|
|
449
|
+
backgroundColor: $t
|
|
446
450
|
});
|
|
447
451
|
async function We({ isCb: t }) {
|
|
448
452
|
if (t) {
|
|
449
|
-
const { blob: l, url: o, text: r, dataUrl:
|
|
450
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: r, dataUrl:
|
|
453
|
+
const { blob: l, url: o, text: r, dataUrl: k } = await Ft();
|
|
454
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: r, dataUrl: k });
|
|
451
455
|
} else
|
|
452
|
-
|
|
456
|
+
_t();
|
|
453
457
|
}
|
|
454
458
|
return c({
|
|
455
|
-
getData:
|
|
456
|
-
getImage:
|
|
459
|
+
getData: xt,
|
|
460
|
+
getImage: At,
|
|
457
461
|
generateCsv: ye,
|
|
458
462
|
generatePdf: ze,
|
|
459
463
|
generateImage: Le,
|
|
@@ -465,7 +469,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
465
469
|
id: `vue-ui-circle-pack_${G.value}`,
|
|
466
470
|
class: ge(`vue-data-ui-component vue-ui-circle-pack ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${i(Ie) ? "loading" : ""}`),
|
|
467
471
|
ref_key: "circlePackChart",
|
|
468
|
-
ref:
|
|
472
|
+
ref: $,
|
|
469
473
|
style: ae(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor};`),
|
|
470
474
|
onMouseenter: l[1] || (l[1] = () => i(Be)(!0)),
|
|
471
475
|
onMouseleave: l[2] || (l[2] = () => i(Be)(!1))
|
|
@@ -500,7 +504,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
500
504
|
_: 3
|
|
501
505
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "scale"])) : x("", !0),
|
|
502
506
|
b(t.$slots, "userConfig", {}, void 0, !0),
|
|
503
|
-
|
|
507
|
+
dt.value ? (h(), g("div", {
|
|
504
508
|
key: 1,
|
|
505
509
|
ref_key: "noTitle",
|
|
506
510
|
ref: Fe,
|
|
@@ -513,7 +517,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
513
517
|
ref: _e,
|
|
514
518
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
515
519
|
}, [
|
|
516
|
-
(h(), V(
|
|
520
|
+
(h(), V(so, {
|
|
517
521
|
key: `title_${Se.value}`,
|
|
518
522
|
config: {
|
|
519
523
|
title: {
|
|
@@ -527,7 +531,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
527
531
|
}
|
|
528
532
|
}, null, 8, ["config"]))
|
|
529
533
|
], 512)) : x("", !0),
|
|
530
|
-
e.value.userOptions.show &&
|
|
534
|
+
e.value.userOptions.show && Te.value && (i(Me) || i(ve)) ? (h(), V(i(s), {
|
|
531
535
|
ref_key: "userOptionsRef",
|
|
532
536
|
ref: ue,
|
|
533
537
|
key: `user_option_${De.value}`,
|
|
@@ -537,7 +541,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
537
541
|
isImaging: i(Re),
|
|
538
542
|
uid: G.value,
|
|
539
543
|
hasTooltip: e.value.userOptions.buttons.tooltip,
|
|
540
|
-
isTooltip:
|
|
544
|
+
isTooltip: T.value.showTooltip,
|
|
541
545
|
hasLabel: !1,
|
|
542
546
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
543
547
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -546,7 +550,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
546
550
|
hasTable: e.value.userOptions.buttons.table,
|
|
547
551
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
548
552
|
isFullscreen: N.value,
|
|
549
|
-
chartElement:
|
|
553
|
+
chartElement: $.value,
|
|
550
554
|
position: e.value.userOptions.position,
|
|
551
555
|
callbacks: e.value.userOptions.callbacks,
|
|
552
556
|
printScale: e.value.userOptions.print.scale,
|
|
@@ -560,7 +564,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
560
564
|
onGenerateImage: i(Le),
|
|
561
565
|
onGenerateSvg: We,
|
|
562
566
|
onToggleTable: qe,
|
|
563
|
-
onToggleTooltip:
|
|
567
|
+
onToggleTooltip: wt,
|
|
564
568
|
onToggleAnnotator: be,
|
|
565
569
|
style: ae({ visibility: i(Me) ? i(ve) ? "visible" : "hidden" : "visible" })
|
|
566
570
|
}, Ze({ _: 2 }, [
|
|
@@ -627,13 +631,13 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
627
631
|
(h(), g("svg", {
|
|
628
632
|
ref_key: "svgRef",
|
|
629
633
|
ref: L,
|
|
630
|
-
xmlns: i(
|
|
634
|
+
xmlns: i(Vt),
|
|
631
635
|
viewBox: P.value,
|
|
632
636
|
preserveAspectRatio: "xMidYMid meet",
|
|
633
637
|
class: ge({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value, "not-responsive": !e.value.responsive }),
|
|
634
638
|
style: ae(`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};`)
|
|
635
639
|
}, [
|
|
636
|
-
|
|
640
|
+
Ce(i(C)),
|
|
637
641
|
t.$slots["chart-background"] ? (h(), g("foreignObject", {
|
|
638
642
|
key: 0,
|
|
639
643
|
x: P.value.x,
|
|
@@ -643,8 +647,8 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
643
647
|
style: { pointerEvents: "none" }
|
|
644
648
|
}, [
|
|
645
649
|
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
646
|
-
], 8,
|
|
647
|
-
(h(!0), g(j, null,
|
|
650
|
+
], 8, ho)) : x("", !0),
|
|
651
|
+
(h(!0), g(j, null, ke(M.value, (o, r) => (h(), g(j, {
|
|
648
652
|
key: o.id
|
|
649
653
|
}, [
|
|
650
654
|
S("defs", null, [
|
|
@@ -654,19 +658,19 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
654
658
|
}, [
|
|
655
659
|
S("stop", {
|
|
656
660
|
offset: "10%",
|
|
657
|
-
"stop-color": i(
|
|
658
|
-
}, null, 8,
|
|
661
|
+
"stop-color": i(jt)(o.color, e.value.style.chart.circles.gradient.intensity / 100)
|
|
662
|
+
}, null, 8, bo),
|
|
659
663
|
S("stop", {
|
|
660
664
|
offset: "90%",
|
|
661
|
-
"stop-color": i(
|
|
662
|
-
}, null, 8,
|
|
665
|
+
"stop-color": i(Gt)(o.color, 0.1)
|
|
666
|
+
}, null, 8, yo),
|
|
663
667
|
S("stop", {
|
|
664
668
|
offset: "100%",
|
|
665
669
|
"stop-color": o.color
|
|
666
|
-
}, null, 8,
|
|
667
|
-
], 8,
|
|
670
|
+
}, null, 8, mo)
|
|
671
|
+
], 8, po)
|
|
668
672
|
]),
|
|
669
|
-
t.$slots.pattern ? (h(), g("g",
|
|
673
|
+
t.$slots.pattern ? (h(), g("g", go, [
|
|
670
674
|
S("defs", null, [
|
|
671
675
|
b(t.$slots, "pattern", we({ ref_for: !0 }, { ...o, patternId: `pattern_${G.value}_${o.id}` }), void 0, !0)
|
|
672
676
|
])
|
|
@@ -680,10 +684,10 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
680
684
|
"stroke-width": e.value.style.chart.circles.strokeWidth * (X.value || 1) / 100,
|
|
681
685
|
fill: e.value.style.chart.circles.gradient.show ? `url(#${o.id})` : o.color,
|
|
682
686
|
rx: o.r,
|
|
683
|
-
onMouseenter: (
|
|
684
|
-
onMouseout: (
|
|
685
|
-
onClick: (
|
|
686
|
-
}, null, 40,
|
|
687
|
+
onMouseenter: (k) => kt(o, r),
|
|
688
|
+
onMouseout: (k) => gt(o, r),
|
|
689
|
+
onClick: (k) => Ct(o, r)
|
|
690
|
+
}, null, 40, Co),
|
|
687
691
|
t.$slots.pattern ? (h(), g("rect", {
|
|
688
692
|
key: 1,
|
|
689
693
|
x: o.x - o.r,
|
|
@@ -695,9 +699,9 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
695
699
|
fill: `url(#pattern_${G.value}_${o.id})`,
|
|
696
700
|
rx: o.r,
|
|
697
701
|
style: { pointerEvents: "none" }
|
|
698
|
-
}, null, 8,
|
|
702
|
+
}, null, 8, ko)) : x("", !0)
|
|
699
703
|
], 64))), 128)),
|
|
700
|
-
(h(!0), g(j, null,
|
|
704
|
+
(h(!0), g(j, null, ke(M.value, (o, r) => (h(), g("rect", {
|
|
701
705
|
key: o.id,
|
|
702
706
|
x: o.x - o.r,
|
|
703
707
|
y: o.y - o.r,
|
|
@@ -712,8 +716,8 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
712
716
|
pointerEvents: "none",
|
|
713
717
|
transition: "opacity 0.2s ease-in-out"
|
|
714
718
|
})
|
|
715
|
-
}, null, 12,
|
|
716
|
-
(h(!0), g(j, null,
|
|
719
|
+
}, null, 12, wo))), 128)),
|
|
720
|
+
(h(!0), g(j, null, ke(M.value, (o, r) => (h(), g(j, {
|
|
717
721
|
key: o.id
|
|
718
722
|
}, [
|
|
719
723
|
t.$slots["data-label"] ? b(t.$slots, "data-label", we({
|
|
@@ -721,12 +725,12 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
721
725
|
ref_for: !0
|
|
722
726
|
}, {
|
|
723
727
|
...o,
|
|
724
|
-
createTSpans: i(
|
|
728
|
+
createTSpans: i(Yt),
|
|
725
729
|
fontSize: {
|
|
726
730
|
name: o.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
727
731
|
value: Ye(o) * e.value.style.chart.circles.labels.value.fontSizeRatio
|
|
728
732
|
},
|
|
729
|
-
color: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : i(
|
|
733
|
+
color: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : i($e)(o.color)
|
|
730
734
|
}), void 0, !0) : (h(), g(j, { key: 1 }, [
|
|
731
735
|
e.value.style.chart.circles.labels.name.show && o.name ? (h(), g("text", {
|
|
732
736
|
key: 0,
|
|
@@ -737,10 +741,10 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
737
741
|
x: o.x,
|
|
738
742
|
y: o.y + Ge(o.r, e.value.style.chart.circles.labels.name.offsetY) - o.r / 10,
|
|
739
743
|
"font-size": o.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
740
|
-
fill: e.value.style.chart.circles.labels.name.color === "auto" ? i(
|
|
744
|
+
fill: e.value.style.chart.circles.labels.name.color === "auto" ? i($e)(o.color) : e.value.style.chart.circles.labels.name.color,
|
|
741
745
|
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
742
746
|
"text-anchor": "middle"
|
|
743
|
-
}, ne(o.name), 9,
|
|
747
|
+
}, ne(o.name), 9, xo)) : x("", !0),
|
|
744
748
|
e.value.style.chart.circles.labels.value.show ? (h(), g("text", {
|
|
745
749
|
key: 1,
|
|
746
750
|
style: {
|
|
@@ -750,18 +754,18 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
750
754
|
x: o.x,
|
|
751
755
|
y: o.y + Ge(o.r, e.value.style.chart.circles.labels.value.offsetY) + o.r / 2.5,
|
|
752
756
|
"font-size": Ye(o) * e.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
753
|
-
fill: e.value.style.chart.circles.labels.value.color === "auto" ? i(
|
|
757
|
+
fill: e.value.style.chart.circles.labels.value.color === "auto" ? i($e)(o.color) : e.value.style.chart.circles.labels.value.color,
|
|
754
758
|
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
755
759
|
"text-anchor": "middle"
|
|
756
|
-
}, ne(pe(o)), 9,
|
|
760
|
+
}, ne(pe(o)), 9, Ao)) : x("", !0)
|
|
757
761
|
], 64))
|
|
758
762
|
], 64))), 128)),
|
|
759
763
|
b(t.$slots, "svg", {
|
|
760
764
|
svg: { ...P.value }
|
|
761
765
|
}, void 0, !0)
|
|
762
|
-
], 14,
|
|
766
|
+
], 14, fo))
|
|
763
767
|
], 2),
|
|
764
|
-
t.$slots.watermark ? (h(), g("div",
|
|
768
|
+
t.$slots.watermark ? (h(), g("div", $o, [
|
|
765
769
|
b(t.$slots, "watermark", _(F({ isPrinting: i(Ne) || i(Re) })), void 0, !0)
|
|
766
770
|
])) : x("", !0),
|
|
767
771
|
t.$slots.source ? (h(), g("div", {
|
|
@@ -772,9 +776,9 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
772
776
|
}, [
|
|
773
777
|
b(t.$slots, "source", {}, void 0, !0)
|
|
774
778
|
], 512)) : x("", !0),
|
|
775
|
-
|
|
779
|
+
Ce(i(y), {
|
|
776
780
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
777
|
-
show:
|
|
781
|
+
show: T.value.showTooltip && ie.value,
|
|
778
782
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
779
783
|
color: e.value.style.chart.tooltip.color,
|
|
780
784
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -784,7 +788,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
784
788
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
785
789
|
position: e.value.style.chart.tooltip.position,
|
|
786
790
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
787
|
-
parent:
|
|
791
|
+
parent: $.value,
|
|
788
792
|
content: ce.value,
|
|
789
793
|
isCustom: q.value,
|
|
790
794
|
isFullscreen: N.value,
|
|
@@ -801,7 +805,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
801
805
|
]),
|
|
802
806
|
_: 3
|
|
803
807
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
804
|
-
|
|
808
|
+
Te.value && e.value.userOptions.buttons.table ? (h(), V(Et(H.value.component), we({ key: 6 }, H.value.props, {
|
|
805
809
|
ref_key: "tableUnit",
|
|
806
810
|
ref: z,
|
|
807
811
|
onClose: He
|
|
@@ -821,7 +825,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
821
825
|
S("div", {
|
|
822
826
|
innerHTML: o,
|
|
823
827
|
style: { display: "flex", "align-items": "center" }
|
|
824
|
-
}, null, 8,
|
|
828
|
+
}, null, 8, To)
|
|
825
829
|
]),
|
|
826
830
|
td: m(({ td: o }) => [
|
|
827
831
|
Je(ne(o.name || o), 1)
|
|
@@ -846,7 +850,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
846
850
|
class: "vue-ui-user-options-button",
|
|
847
851
|
onClick: l[0] || (l[0] = (o) => ye(e.value.userOptions.callbacks.csv))
|
|
848
852
|
}, [
|
|
849
|
-
|
|
853
|
+
Ce(i(v), {
|
|
850
854
|
name: "excel",
|
|
851
855
|
stroke: H.value.props.color
|
|
852
856
|
}, null, 8, ["stroke"])
|
|
@@ -855,15 +859,15 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
855
859
|
key: "1"
|
|
856
860
|
} : void 0
|
|
857
861
|
]), 1040)) : x("", !0),
|
|
858
|
-
i(Ie) ? (h(), V(
|
|
859
|
-
], 46,
|
|
862
|
+
i(Ie) ? (h(), V(Kt, { key: 7 })) : x("", !0)
|
|
863
|
+
], 46, vo));
|
|
860
864
|
}
|
|
861
|
-
},
|
|
865
|
+
}, Fo = /* @__PURE__ */ ro(_o, [["__scopeId", "data-v-7e3110ea"]]), jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
862
866
|
__proto__: null,
|
|
863
|
-
default:
|
|
867
|
+
default: Fo
|
|
864
868
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
865
869
|
export {
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
870
|
+
Vo as a,
|
|
871
|
+
jo as b,
|
|
872
|
+
Fo as v
|
|
869
873
|
};
|