vue-data-ui 2.6.22 → 2.6.23
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-Dkww_cPT.cjs → Arrow-D2_aIcM2.cjs} +1 -1
- package/dist/{Arrow-Cf2BhlTz.js → Arrow-DJiG3r33.js} +1 -1
- package/dist/{BaseIcon-CMg_B1n7.cjs → BaseIcon-DIB9Wlvp.cjs} +1 -1
- package/dist/{BaseIcon-sQ0Yl3WG.js → BaseIcon-PVERbTHZ.js} +1 -1
- package/dist/{DataTable-CdAOPHJa.cjs → DataTable-DaVBEH1O.cjs} +1 -1
- package/dist/{DataTable-2Igu4lk9.js → DataTable-Rgwt5jLm.js} +2 -2
- package/dist/{Legend-CWcXXd69.cjs → Legend-DhgOMgdq.cjs} +1 -1
- package/dist/{Legend-BSuEi9g7.js → Legend-V8N3VATg.js} +2 -2
- package/dist/{PackageVersion-D9dPTMdO.cjs → PackageVersion-DS-HtU0C.cjs} +1 -1
- package/dist/{PackageVersion-V-_CbVlt.js → PackageVersion-iMtoLiV5.js} +1 -1
- package/dist/{PenAndPaper-Cpwa77pt.cjs → PenAndPaper-DoCqfQwX.cjs} +1 -1
- package/dist/{PenAndPaper-Dq-ECAue.js → PenAndPaper-SlsCQe6h.js} +3 -3
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-ByFB8slT.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-DOiZB6lf.cjs} +1 -1
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-DKbZbPIn.js → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-J88AdoNs.js} +3 -3
- package/dist/{Shape-Ca9CTckg.cjs → Shape-BdDFKbBn.cjs} +1 -1
- package/dist/{Shape-BPvU0s7x.js → Shape-f9GRGy-D.js} +1 -1
- package/dist/{Slicer-CATr5IB9.js → Slicer-BXvYiDjH.js} +2 -2
- package/dist/{Slicer-DXEJzT3U.cjs → Slicer-COW0ywTC.cjs} +1 -1
- package/dist/{Title-CUbvh4nY.js → Title-Cp_BaOUM.js} +1 -1
- package/dist/{Title-Vp8RX2Nj.cjs → Title-DcAqbRBW.cjs} +1 -1
- package/dist/{Tooltip-D6K610_p.cjs → Tooltip-BmxVr2nR.cjs} +1 -1
- package/dist/{Tooltip-CYcP5JH9.js → Tooltip-Cu7aaMHU.js} +1 -1
- package/dist/{index-BVM1Hjat.js → index-CORoDQCP.js} +1 -1
- package/dist/{index-BCAY_TBF.cjs → index-ClAuXrnE.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-Ces_ZEmq.cjs → useNestedProp-B7NKqijt.cjs} +1 -1
- package/dist/{useNestedProp-B7524T_I.js → useNestedProp-BP2kns_4.js} +1 -1
- package/dist/{usePrinter-BuEZ1Mqw.js → usePrinter-B4-qiZp3.js} +1 -1
- package/dist/{usePrinter-CMRlY9rc.cjs → usePrinter-fs3l3gnB.cjs} +1 -1
- package/dist/{vue-data-ui-CMHydJ3z.js → vue-data-ui-BgpNWNqc.js} +61 -61
- package/dist/{vue-data-ui-Cl21-Qn-.cjs → vue-data-ui-CiIQJgvu.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BB9IHMFV.cjs → vue-ui-3d-bar-DmsqEue_.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-CiVt8Lvp.js → vue-ui-3d-bar-Sxl3Zs19.js} +9 -9
- package/dist/{vue-ui-accordion-Zeu2qcSI.js → vue-ui-accordion-BnQrFX7-.js} +3 -3
- package/dist/{vue-ui-accordion-D86VhQnK.cjs → vue-ui-accordion-CiPtE4C5.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CaZSG2fN.js → vue-ui-age-pyramid-BMLSHqix.js} +10 -10
- package/dist/{vue-ui-age-pyramid-t5v8gG7E.cjs → vue-ui-age-pyramid-DhFVwfnk.cjs} +1 -1
- package/dist/{vue-ui-annotator-DqMnXHaK.js → vue-ui-annotator-BOQOfVRi.js} +1 -1
- package/dist/{vue-ui-annotator-DPQRwLra.cjs → vue-ui-annotator-D8CD5njW.cjs} +1 -1
- package/dist/{vue-ui-bullet-oN99bgSq.js → vue-ui-bullet-CFhLYNX0.js} +8 -8
- package/dist/{vue-ui-bullet-DfJ9YR2-.cjs → vue-ui-bullet-CuhFNGas.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BIznNizW.js → vue-ui-candlestick-Ca3RyIlE.js} +11 -11
- package/dist/{vue-ui-candlestick-CbvO_6uK.cjs → vue-ui-candlestick-Drw87cBU.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DjWEv7sx.js → vue-ui-carousel-table-CzWQO7o8.js} +4 -4
- package/dist/{vue-ui-carousel-table-DKQSfGt-.cjs → vue-ui-carousel-table-ZPxDGxHL.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DJsFMi3a.cjs → vue-ui-chestnut-BmAhPQAV.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DtC70R0X.js → vue-ui-chestnut-CHq2YDla.js} +8 -8
- package/dist/vue-ui-circle-pack-CUS8c5qb.cjs +1 -0
- package/dist/vue-ui-circle-pack-DRa-twBC.js +657 -0
- package/dist/{vue-ui-cursor-BbrupWFh.js → vue-ui-cursor-B6otBk5O.js} +2 -2
- package/dist/{vue-ui-cursor-Bh3F6uU7.cjs → vue-ui-cursor-CV1yQWQq.cjs} +1 -1
- package/dist/{vue-ui-dashboard-he9hja0v.js → vue-ui-dashboard-BxzUDFYN.js} +2 -2
- package/dist/{vue-ui-dashboard-CR09TdSL.cjs → vue-ui-dashboard-ChUs9hjn.cjs} +1 -1
- package/dist/{vue-ui-digits-CrQuYkCF.cjs → vue-ui-digits-CSBA8-rP.cjs} +1 -1
- package/dist/{vue-ui-digits-eow8_8IF.js → vue-ui-digits-D6J-zOTg.js} +2 -2
- package/dist/{vue-ui-donut-Dh75AMUR.cjs → vue-ui-donut-BzqHaS9U.cjs} +1 -1
- package/dist/{vue-ui-donut-C2Ab0qsE.js → vue-ui-donut-CavmyRb9.js} +12 -12
- package/dist/{vue-ui-donut-evolution-C4ZSty9k.js → vue-ui-donut-evolution-Bs9eaisH.js} +11 -11
- package/dist/{vue-ui-donut-evolution-CwPKiglD.cjs → vue-ui-donut-evolution-OnJlabzf.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BN8fJSvG.js → vue-ui-dumbbell-BJHDVx_f.js} +10 -10
- package/dist/{vue-ui-dumbbell-CafiAGaw.cjs → vue-ui-dumbbell-H_D431z2.cjs} +1 -1
- package/dist/{vue-ui-flow-BWm4K97n.cjs → vue-ui-flow-BygsUZtu.cjs} +1 -1
- package/dist/{vue-ui-flow-DKpHc3FI.js → vue-ui-flow-CJyZd1H6.js} +9 -9
- package/dist/{vue-ui-funnel-C25z-XuU.cjs → vue-ui-funnel-0Q_LpBDZ.cjs} +1 -1
- package/dist/{vue-ui-funnel-DkmKmnNf.js → vue-ui-funnel-gTjgs4j9.js} +9 -9
- package/dist/{vue-ui-galaxy-oV4efmeX.js → vue-ui-galaxy-5g43syZ_.js} +11 -11
- package/dist/{vue-ui-galaxy-wgZKEqln.cjs → vue-ui-galaxy-CjzJzzjR.cjs} +1 -1
- package/dist/{vue-ui-gauge-CzA2PhpW.cjs → vue-ui-gauge-77KuagM8.cjs} +1 -1
- package/dist/{vue-ui-gauge-DEKM0_3Q.js → vue-ui-gauge-Khz7Rc8p.js} +7 -7
- package/dist/{vue-ui-gizmo-DlNuWEmn.cjs → vue-ui-gizmo-BNCE1QC7.cjs} +1 -1
- package/dist/{vue-ui-gizmo-UO3Zkeme.js → vue-ui-gizmo-BkzXwNSA.js} +3 -3
- package/dist/{vue-ui-heatmap-dnvzPPoV.cjs → vue-ui-heatmap-CtYEgexU.cjs} +1 -1
- package/dist/{vue-ui-heatmap-E_CcRS7D.js → vue-ui-heatmap-DrQmm7ns.js} +10 -10
- package/dist/{vue-ui-history-plot-EWyGCjPe.cjs → vue-ui-history-plot-DBxkk8uU.cjs} +1 -1
- package/dist/{vue-ui-history-plot-DRbZ8X1X.js → vue-ui-history-plot-DtAHeCIn.js} +11 -11
- package/dist/{vue-ui-kpi-DWJbsdvG.cjs → vue-ui-kpi-BJf_RiaZ.cjs} +1 -1
- package/dist/{vue-ui-kpi-BZxftzEv.js → vue-ui-kpi-wCJKise3.js} +3 -3
- package/dist/{vue-ui-mini-loader-DsCVKpe9.js → vue-ui-mini-loader-DTdkdhel.js} +2 -2
- package/dist/{vue-ui-mini-loader-BvWPS_gQ.cjs → vue-ui-mini-loader-QjTF0M7X.cjs} +1 -1
- package/dist/{vue-ui-molecule-BnYkqFk0.js → vue-ui-molecule-BmpVr_gK.js} +10 -10
- package/dist/{vue-ui-molecule-BdANdT7O.cjs → vue-ui-molecule-CMzB-8rG.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-D_uLYLXE.cjs → vue-ui-mood-radar-CcPYNvdi.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Cgn-5GqE.js → vue-ui-mood-radar-xFIV8rX7.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BP9UnBkw.js → vue-ui-nested-donuts-CSf69O8o.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BzOUk2Kz.cjs → vue-ui-nested-donuts-CX4ADWaJ.cjs} +1 -1
- package/dist/{vue-ui-onion-vu27Cwcx.js → vue-ui-onion-D4BQdTiM.js} +11 -11
- package/dist/{vue-ui-onion-DGw3Ce3f.cjs → vue-ui-onion-DuMvm2D7.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Bo-yxxDH.cjs → vue-ui-parallel-coordinate-plot-BbLVVerv.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Dy3yQFd1.js → vue-ui-parallel-coordinate-plot-Dc6N5YHX.js} +12 -12
- package/dist/{vue-ui-quadrant-B9GkwB5l.cjs → vue-ui-quadrant-B4iH_goy.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DgQqkCxk.js → vue-ui-quadrant-CPHUxz0i.js} +12 -12
- package/dist/{vue-ui-quick-chart-CMQFeKWK.cjs → vue-ui-quick-chart-BdRCSnMP.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DcpVDq8t.js → vue-ui-quick-chart-x1bjHLL_.js} +9 -9
- package/dist/{vue-ui-radar-CnqMJrEU.cjs → vue-ui-radar-BJW8f9Ha.cjs} +1 -1
- package/dist/{vue-ui-radar-cwhwGVar.js → vue-ui-radar-BLhC82mY.js} +12 -12
- package/dist/{vue-ui-rating-Bub3mYba.cjs → vue-ui-rating-DnyFmWGj.cjs} +1 -1
- package/dist/{vue-ui-rating-BmtemUqF.js → vue-ui-rating-nsK29Mwb.js} +2 -2
- package/dist/{vue-ui-relation-circle-D0py_PRH.cjs → vue-ui-relation-circle-B8k_TzBX.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BerdR_4-.js → vue-ui-relation-circle-Blb-GooX.js} +7 -7
- package/dist/{vue-ui-rings-BSm_KC-r.js → vue-ui-rings-ClHVJNrR.js} +12 -12
- package/dist/{vue-ui-rings-zQ-4JnNS.cjs → vue-ui-rings-k9gIeUIA.cjs} +1 -1
- package/dist/{vue-ui-scatter-DXAm7w2U.cjs → vue-ui-scatter-1i_9Zs70.cjs} +1 -1
- package/dist/{vue-ui-scatter-D0dIO0lS.js → vue-ui-scatter-B0kbnm8B.js} +12 -12
- package/dist/{vue-ui-screenshot-_KsufqYT.js → vue-ui-screenshot-BucDcruu.js} +1 -1
- package/dist/{vue-ui-screenshot-BdJzHzn9.cjs → vue-ui-screenshot-rdceQU35.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CjC_RR5C.js → vue-ui-skeleton-CrROSIXs.js} +3 -3
- package/dist/{vue-ui-skeleton-CNtHe3B_.cjs → vue-ui-skeleton-DOrpie3d.cjs} +1 -1
- package/dist/{vue-ui-smiley-CdYhD3n7.js → vue-ui-smiley-B0S7szh0.js} +2 -2
- package/dist/{vue-ui-smiley-C-dKXMYz.cjs → vue-ui-smiley-CeVvVZJJ.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DT0q7zha.js → vue-ui-spark-trend-BC1zG3z1.js} +5 -5
- package/dist/{vue-ui-spark-trend-ZSffEbvM.cjs → vue-ui-spark-trend-DSKhap1U.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Ca8RoM26.cjs → vue-ui-sparkbar-CXQ8rWwv.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-hm3wy78R.js → vue-ui-sparkbar-DK5zyF2q.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Dsy3BtE1.js → vue-ui-sparkgauge-CLF23Z6B.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Wzb-9Nec.cjs → vue-ui-sparkgauge-DoxNseQu.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CcyyqdgC.cjs → vue-ui-sparkhistogram-CeNlChEK.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DIccfqcP.js → vue-ui-sparkhistogram-DFx2PdMT.js} +5 -5
- package/dist/{vue-ui-sparkline-CJfM9R-P.cjs → vue-ui-sparkline-CgdJGWkW.cjs} +1 -1
- package/dist/{vue-ui-sparkline-edCpjS99.js → vue-ui-sparkline-hDosQh2z.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-BCkwH7OH.cjs → vue-ui-sparkstackbar-Bx_O0E2Q.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-UzWOXV8T.js → vue-ui-sparkstackbar-CiQRicBj.js} +5 -5
- package/dist/{vue-ui-stackbar-DtxiLdkG.js → vue-ui-stackbar-BpCvkxTQ.js} +13 -13
- package/dist/{vue-ui-stackbar-DLw1lhqT.cjs → vue-ui-stackbar-DFrui-nK.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DZBPceJC.js → vue-ui-strip-plot-BaLGfp02.js} +11 -11
- package/dist/{vue-ui-strip-plot-Bot6lWVZ.cjs → vue-ui-strip-plot-CJvbeG6e.cjs} +1 -1
- package/dist/{vue-ui-table-CyT0sQtg.cjs → vue-ui-table-DQ_t1xTE.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-IsfxseMB.cjs → vue-ui-table-heatmap-CZZDVnzr.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-D4JBAEBg.js → vue-ui-table-heatmap-Czx9ATpO.js} +4 -4
- package/dist/{vue-ui-table-sparkline-ClYyMljO.js → vue-ui-table-sparkline-B73dlAI6.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Do9vWT7v.cjs → vue-ui-table-sparkline-CftOKg9N.cjs} +1 -1
- package/dist/{vue-ui-table-DR-vUv2U.js → vue-ui-table-sunBd8sR.js} +1 -1
- package/dist/{vue-ui-thermometer-CkN0NXuR.cjs → vue-ui-thermometer-BVkI8vlH.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CY0Gi2uj.js → vue-ui-thermometer-CLRznn3m.js} +7 -7
- package/dist/{vue-ui-timer-t0fSn-_9.js → vue-ui-timer-Beaj2sv_.js} +5 -5
- package/dist/{vue-ui-timer-Zx3zQyAq.cjs → vue-ui-timer-BuamplsS.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-5YPN_NoO.js → vue-ui-tiremarks-Dda1Ogkj.js} +7 -7
- package/dist/{vue-ui-tiremarks-0JbzmUh6.cjs → vue-ui-tiremarks-kw2cLJwr.cjs} +1 -1
- package/dist/{vue-ui-treemap-B4BUhmni.cjs → vue-ui-treemap-9i7zH6_D.cjs} +1 -1
- package/dist/{vue-ui-treemap-kwbjdy0P.js → vue-ui-treemap-qMgWCw7y.js} +11 -11
- package/dist/{vue-ui-vertical-bar-CCNvuAMI.cjs → vue-ui-vertical-bar-D6VWdpxb.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DRuH5f-B.js → vue-ui-vertical-bar-Dau3LmOt.js} +12 -12
- package/dist/{vue-ui-waffle-B9zlDgeL.js → vue-ui-waffle-CSQBfdSt.js} +12 -12
- package/dist/{vue-ui-waffle-CqVwTFrC.cjs → vue-ui-waffle-DEyKQoF1.cjs} +1 -1
- package/dist/{vue-ui-wheel-CAS9hnki.js → vue-ui-wheel-Cq7qBq00.js} +7 -7
- package/dist/{vue-ui-wheel-CGWDNbH-.cjs → vue-ui-wheel-xExPUamV.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CxbTioTG.cjs → vue-ui-word-cloud-B_ZFfVkQ.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BKRBPyWR.js → vue-ui-word-cloud-CzQIP7Ov.js} +10 -10
- package/dist/{vue-ui-xy-D_OI_ry8.js → vue-ui-xy-BKvIGkT4.js} +14 -14
- package/dist/{vue-ui-xy-DRn-1RsC.cjs → vue-ui-xy-BVbXEFgP.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DXDh8Vzd.js → vue-ui-xy-canvas-C-1Z6nVa.js} +12 -12
- package/dist/{vue-ui-xy-canvas-DrjjMaQM.cjs → vue-ui-xy-canvas-C1FLTlGQ.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-circle-pack-Bi3Usmkl.js +0 -648
- package/dist/vue-ui-circle-pack-KCMKYM9w.cjs +0 -1
|
@@ -0,0 +1,657 @@
|
|
|
1
|
+
import { useCssVars as Xe, computed as w, ref as p, watch as ze, onMounted as Ye, watchEffect as Ze, createElementBlock as b, openBlock as f, unref as y, normalizeStyle as J, normalizeClass as $e, createBlock as M, createCommentVNode as k, renderSlot as x, createSlots as Je, withCtx as _, normalizeProps as U, guardReactiveProps as B, createVNode as Ke, Fragment as K, renderList as Qe, createElementVNode as C, mergeProps as Te, toDisplayString as j, createTextVNode as et, nextTick as Pe } from "vue";
|
|
2
|
+
import { u as tt, c as Ie, t as ie, p as Q, a as lt, o as at, e as ot, b as st, d as nt, h as Oe, f as ce, X as rt, l as ut, G as q, a7 as it, q as ct, r as vt, i as Se } from "./index-CORoDQCP.js";
|
|
3
|
+
import { u as Ne } from "./useNestedProp-BP2kns_4.js";
|
|
4
|
+
import { u as dt, U as ht } from "./usePrinter-B4-qiZp3.js";
|
|
5
|
+
import { _ as ft } from "./Title-Cp_BaOUM.js";
|
|
6
|
+
import { P as yt } from "./PenAndPaper-SlsCQe6h.js";
|
|
7
|
+
import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { _ as pt } from "./PackageVersion-iMtoLiV5.js";
|
|
9
|
+
import bt from "./vue-ui-accordion-BnQrFX7-.js";
|
|
10
|
+
import { D as gt } from "./DataTable-Rgwt5jLm.js";
|
|
11
|
+
import kt from "./vue-ui-skeleton-CrROSIXs.js";
|
|
12
|
+
import { u as xt } from "./useChartAccessibility-BWojgys7.js";
|
|
13
|
+
import { t as wt, u as Ct } from "./useResponsive-vZgZwV-S.js";
|
|
14
|
+
import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
function Fe(r, c = 0) {
|
|
16
|
+
const h = r.reduce((a, { x: s, r: i }) => Math.min(a, s - i - c), 1 / 0), u = r.reduce((a, { x: s, r: i }) => Math.max(a, s + i + c), -1 / 0), v = r.reduce((a, { y: s, r: i }) => Math.min(a, s - i - c), 1 / 0), o = r.reduce((a, { y: s, r: i }) => Math.max(a, s + i + c), -1 / 0);
|
|
17
|
+
return [h, v, u - h, o - v];
|
|
18
|
+
}
|
|
19
|
+
function zt(r, c, h) {
|
|
20
|
+
const u = r._, v = r.next._, o = u.r + v.r, a = (u.x * v.r + v.x * u.r) / o, s = (u.y * v.r + v.y * u.r) / o;
|
|
21
|
+
return Math.max(Math.abs(a * h), Math.abs(s * c));
|
|
22
|
+
}
|
|
23
|
+
function Me(r, c, h) {
|
|
24
|
+
const u = zt, v = r.length;
|
|
25
|
+
if (!v) return r;
|
|
26
|
+
let o, a, s;
|
|
27
|
+
if (o = r[0], o.x = 0, o.y = 0, !(v > 1) || (a = r[1], o.x = -a.r, a.x = o.r, a.y = 0, !(v > 2))) return r;
|
|
28
|
+
Re(a, o, s = r[2]), o = new ee(o), a = new ee(a), s = new ee(s), o.next = s.previous = a, a.next = o.previous = s, s.next = a.previous = o;
|
|
29
|
+
e: for (let i = 3; i < v; ++i) {
|
|
30
|
+
Re(o._, a._, s = r[i]), s = new ee(s);
|
|
31
|
+
let g = a.next, z = o.previous, R = a._.r, A = o._.r;
|
|
32
|
+
do
|
|
33
|
+
if (R <= A) {
|
|
34
|
+
if (Ae(g._, s._)) {
|
|
35
|
+
a = g, o.next = a, a.previous = o, --i;
|
|
36
|
+
continue e;
|
|
37
|
+
}
|
|
38
|
+
R += g._.r, g = g.next;
|
|
39
|
+
} else {
|
|
40
|
+
if (Ae(z._, s._)) {
|
|
41
|
+
o = z, o.next = a, a.previous = o, --i;
|
|
42
|
+
continue e;
|
|
43
|
+
}
|
|
44
|
+
A += z._.r, z = z.previous;
|
|
45
|
+
}
|
|
46
|
+
while (g !== z.next);
|
|
47
|
+
s.previous = o, s.next = a, o.next = a.previous = a = s;
|
|
48
|
+
let E = u(o, h, c), W;
|
|
49
|
+
for (; (s = s.next) !== a; )
|
|
50
|
+
(W = u(s, h, c)) < E && (o = s, E = W);
|
|
51
|
+
a = o.next;
|
|
52
|
+
}
|
|
53
|
+
return r;
|
|
54
|
+
}
|
|
55
|
+
function Re(r, c, h) {
|
|
56
|
+
const u = r.x - c.x, v = r.y - c.y, o = u * u + v * v;
|
|
57
|
+
if (o) {
|
|
58
|
+
const a = (c.r + h.r) ** 2, s = (r.r + h.r) ** 2;
|
|
59
|
+
if (a > s) {
|
|
60
|
+
const i = (o + s - a) / (2 * o), g = Math.sqrt(Math.max(0, s / o - i * i));
|
|
61
|
+
h.x = r.x - i * u - g * v, h.y = r.y - i * v + g * u;
|
|
62
|
+
} else {
|
|
63
|
+
const i = (o + a - s) / (2 * o), g = Math.sqrt(Math.max(0, a / o - i * i));
|
|
64
|
+
h.x = c.x + i * u - g * v, h.y = c.y + i * v + g * u;
|
|
65
|
+
}
|
|
66
|
+
} else
|
|
67
|
+
h.x = c.x + h.r, h.y = c.y;
|
|
68
|
+
}
|
|
69
|
+
function Ae(r, c) {
|
|
70
|
+
const h = r.r + c.r - 1e-6, u = c.x - r.x, v = c.y - r.y;
|
|
71
|
+
return h > 0 && h * h > u * u + v * v;
|
|
72
|
+
}
|
|
73
|
+
class ee {
|
|
74
|
+
constructor(c) {
|
|
75
|
+
this._ = c, this.next = null, this.previous = null;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const $t = ["id"], Tt = ["xmlns", "viewBox", "height", "width"], Pt = ["x", "y", "width", "height"], It = ["id"], Ot = ["stop-color"], St = ["stop-color"], Nt = ["stop-color"], Ft = { key: 0 }, Mt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onClick"], Rt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], At = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Et = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Dt = ["cx", "cy", "r", "opacity", "stroke", "stroke-width", "fill"], Lt = {
|
|
79
|
+
key: 0,
|
|
80
|
+
style: { pointerEvents: "none" }
|
|
81
|
+
}, Vt = { key: 1 }, Gt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Ht = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Ut = {
|
|
82
|
+
key: 6,
|
|
83
|
+
class: "vue-data-ui-watermark"
|
|
84
|
+
}, Bt = ["innerHTML"], jt = {
|
|
85
|
+
__name: "vue-ui-circle-pack",
|
|
86
|
+
props: {
|
|
87
|
+
config: {
|
|
88
|
+
type: Object,
|
|
89
|
+
default() {
|
|
90
|
+
return {};
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
dataset: {
|
|
94
|
+
type: Array,
|
|
95
|
+
default() {
|
|
96
|
+
return [];
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
emits: ["selectDatapoint"],
|
|
101
|
+
setup(r, { expose: c, emit: h }) {
|
|
102
|
+
Xe((t) => ({
|
|
103
|
+
aa1e4ba6: Le.value,
|
|
104
|
+
"2f469fb7": F.value,
|
|
105
|
+
23363570: oe.value
|
|
106
|
+
}));
|
|
107
|
+
const u = r, v = h, { vue_ui_circle_pack: o } = tt(), a = w(() => !!u.dataset && u.dataset.length), s = p(Ie()), i = p(null), g = p(null), z = p(null), R = p(0), A = p(0), E = p(0), W = p(null), e = w({
|
|
108
|
+
get: () => fe(),
|
|
109
|
+
set: (t) => t
|
|
110
|
+
}), { svgRef: ve } = xt({ config: e.value.style.chart.title }), {
|
|
111
|
+
userOptionsVisible: te,
|
|
112
|
+
setUserOptionsVisibility: de,
|
|
113
|
+
keepUserOptionState: he
|
|
114
|
+
} = mt({ config: e.value });
|
|
115
|
+
function fe() {
|
|
116
|
+
const t = Ne({
|
|
117
|
+
userConfig: u.config,
|
|
118
|
+
defaultConfig: o
|
|
119
|
+
});
|
|
120
|
+
return t.theme ? {
|
|
121
|
+
...Ne({
|
|
122
|
+
userConfig: lt.vue_ui_circle_pack[t.theme] || u.config,
|
|
123
|
+
defaultConfig: t
|
|
124
|
+
}),
|
|
125
|
+
customPalette: ie[t.theme] || Q
|
|
126
|
+
} : t;
|
|
127
|
+
}
|
|
128
|
+
ze(() => u.config, (t) => {
|
|
129
|
+
e.value = fe(), te.value = !e.value.userOptions.showOnChartHover, ae(), R.value += 1, A.value += 1, D.value.showTable = e.value.table.show;
|
|
130
|
+
}, { deep: !0 });
|
|
131
|
+
const { isPrinting: ye, isImaging: me, generatePdf: pe, generateImage: be } = dt({
|
|
132
|
+
elementId: `vue-ui-circle-pack_${s.value}`,
|
|
133
|
+
fileName: e.value.style.chart.title.text || "vue-ui-circle-pack"
|
|
134
|
+
}), Ee = w(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = p({
|
|
135
|
+
showTable: e.value.table.show
|
|
136
|
+
}), ge = p(null), $ = p({ h: 10, w: 10 }), le = p(0), S = p([0, 0, 100, 100]);
|
|
137
|
+
async function ae() {
|
|
138
|
+
at(u.dataset) && ot({
|
|
139
|
+
componentName: "VueUiCirclePack",
|
|
140
|
+
type: "dataset"
|
|
141
|
+
}), N.value = await Me(X.value), T.value = Fe(N.value, 1).join(" ");
|
|
142
|
+
const t = wt(() => {
|
|
143
|
+
const { width: n, height: l, heightTitle: m, heightNoTitle: O } = Ct({
|
|
144
|
+
chart: i.value,
|
|
145
|
+
title: g.value,
|
|
146
|
+
noTitle: z.value
|
|
147
|
+
}), re = n || 10, ue = l && l > 10 ? l : 10;
|
|
148
|
+
le.value = e.value.style.chart.title.text ? m : O, requestAnimationFrame(() => {
|
|
149
|
+
$.value.w = re, $.value.h = ue - le.value, Pe(async () => {
|
|
150
|
+
const qe = X.value.map((We) => ({ ...We }));
|
|
151
|
+
N.value = await Me(qe, $.value.h, $.value.w), S.value = Fe(N.value, 1), T.value = S.value.join(" ");
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
ge.value = new ResizeObserver(t), ge.value.observe(i.value.parentNode);
|
|
156
|
+
}
|
|
157
|
+
function ke(t, n) {
|
|
158
|
+
return n === 0 ? t : ke(n, t % n);
|
|
159
|
+
}
|
|
160
|
+
function De(t, n) {
|
|
161
|
+
const l = ke(t, n), m = t / l, O = n / l;
|
|
162
|
+
return `${m}/${O}`;
|
|
163
|
+
}
|
|
164
|
+
const Le = w(() => De($.value.w, $.value.h - le.value));
|
|
165
|
+
Ye(ae), ze(() => u.dataset, async (t) => {
|
|
166
|
+
await ae();
|
|
167
|
+
}, { deep: !0 });
|
|
168
|
+
const Ve = w(() => st(e.value.customPalette)), X = w(() => u.dataset.map((t, n) => {
|
|
169
|
+
const l = nt(t.color) || Ve.value[n] || ie[e.value.theme || "default"][n % ie[e.value.theme || "default"].length] || Q[n] || Q[n % Q.length];
|
|
170
|
+
return {
|
|
171
|
+
...t,
|
|
172
|
+
r: t.value,
|
|
173
|
+
id: Ie(),
|
|
174
|
+
color: l
|
|
175
|
+
};
|
|
176
|
+
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), N = p([]), T = p("0 0 100 100"), L = w(() => Math.max(...N.value.map((t) => t.r)));
|
|
177
|
+
function xe(t, n) {
|
|
178
|
+
return n / L.value * t;
|
|
179
|
+
}
|
|
180
|
+
const d = p(null);
|
|
181
|
+
function Ge(t) {
|
|
182
|
+
e.value.style.chart.circles.zoom.show && (d.value = t);
|
|
183
|
+
}
|
|
184
|
+
const F = w(() => d.value ? d.value.r : 0), oe = w(() => I.value ? F.value : d.value ? d.value.r > S.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio ? d.value.r : S.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), P = p(0), He = w(() => ({
|
|
185
|
+
pointerEvents: "none",
|
|
186
|
+
opacity: P.value,
|
|
187
|
+
filter: `drop-shadow(0px 0px 6px ${Oe(d.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
|
|
188
|
+
})), V = p(F.value);
|
|
189
|
+
Ze(() => {
|
|
190
|
+
V.value = F.value, P.value = 0;
|
|
191
|
+
let t = null;
|
|
192
|
+
function n(l) {
|
|
193
|
+
t || (t = l);
|
|
194
|
+
const m = (l - t) / e.value.style.chart.circles.zoom.animationFrameMs;
|
|
195
|
+
m < 1 ? (V.value = F.value + (oe.value - F.value) * m, P.value = 0 + e.value.style.chart.circles.zoom.opacity * m, requestAnimationFrame(n)) : (V.value = oe.value, P.value = e.value.style.chart.circles.zoom.opacity);
|
|
196
|
+
}
|
|
197
|
+
requestAnimationFrame(n);
|
|
198
|
+
});
|
|
199
|
+
const G = w(() => ({
|
|
200
|
+
name: e.value.style.chart.circles.zoom.label.name.fontSize * S.value[3] / 300,
|
|
201
|
+
value: e.value.style.chart.circles.zoom.label.value.fontSize * S.value[3] / 300
|
|
202
|
+
}));
|
|
203
|
+
function se(t) {
|
|
204
|
+
return Se(
|
|
205
|
+
e.value.style.chart.circles.labels.value.formatter,
|
|
206
|
+
t.value,
|
|
207
|
+
ce({
|
|
208
|
+
p: e.value.style.chart.circles.labels.value.prefix,
|
|
209
|
+
v: t.value,
|
|
210
|
+
s: e.value.style.chart.circles.labels.value.suffix,
|
|
211
|
+
r: e.value.style.chart.circles.labels.value.rounding
|
|
212
|
+
})
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
function Ue() {
|
|
216
|
+
return Se(
|
|
217
|
+
e.value.style.chart.circles.zoom.label.value.formatter,
|
|
218
|
+
d.value.value,
|
|
219
|
+
ce({
|
|
220
|
+
p: e.value.style.chart.circles.zoom.label.value.prefix,
|
|
221
|
+
v: d.value.value,
|
|
222
|
+
s: e.value.style.chart.circles.zoom.label.value.suffix,
|
|
223
|
+
r: e.value.style.chart.circles.zoom.label.value.rounding
|
|
224
|
+
})
|
|
225
|
+
);
|
|
226
|
+
}
|
|
227
|
+
function we(t) {
|
|
228
|
+
if (!t)
|
|
229
|
+
return 0;
|
|
230
|
+
const n = t.r / se(t).length * (se(t).length === 1 ? 1 : 2);
|
|
231
|
+
return Math.min(t.r / 2.5, n);
|
|
232
|
+
}
|
|
233
|
+
const H = p(!1);
|
|
234
|
+
function Be(t) {
|
|
235
|
+
H.value = t, E.value += 1;
|
|
236
|
+
}
|
|
237
|
+
const I = p(!1);
|
|
238
|
+
function ne() {
|
|
239
|
+
I.value = !I.value;
|
|
240
|
+
}
|
|
241
|
+
const Y = w(() => {
|
|
242
|
+
const t = X.value.map((l) => ({
|
|
243
|
+
name: l.name,
|
|
244
|
+
value: l.value,
|
|
245
|
+
color: l.color
|
|
246
|
+
})).toSorted((l, m) => m.value - l.value), n = t.map((l) => l.value);
|
|
247
|
+
return { head: t, body: n };
|
|
248
|
+
});
|
|
249
|
+
function Ce() {
|
|
250
|
+
Pe(() => {
|
|
251
|
+
const t = Y.value.head.map((m, O) => [[
|
|
252
|
+
m.name
|
|
253
|
+
], [Y.value.body[O]]]), n = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(t), l = ct(n);
|
|
254
|
+
vt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
const Z = w(() => {
|
|
258
|
+
const t = [
|
|
259
|
+
e.value.table.columnNames.datapoint,
|
|
260
|
+
e.value.table.columnNames.value
|
|
261
|
+
], n = Y.value.head.map((O, re) => {
|
|
262
|
+
const ue = ce({
|
|
263
|
+
p: e.value.style.chart.circles.labels.value.prefix,
|
|
264
|
+
v: Y.value.body[re],
|
|
265
|
+
s: e.value.style.chart.circles.labels.value.suffix,
|
|
266
|
+
r: e.value.style.chart.circles.labels.value.rounding
|
|
267
|
+
});
|
|
268
|
+
return [
|
|
269
|
+
{
|
|
270
|
+
color: O.color,
|
|
271
|
+
name: O.name
|
|
272
|
+
},
|
|
273
|
+
ue
|
|
274
|
+
];
|
|
275
|
+
}), l = {
|
|
276
|
+
th: {
|
|
277
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
278
|
+
color: e.value.table.th.color,
|
|
279
|
+
outline: e.value.table.th.outline
|
|
280
|
+
},
|
|
281
|
+
td: {
|
|
282
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
283
|
+
color: e.value.table.td.color,
|
|
284
|
+
outline: e.value.table.td.outline
|
|
285
|
+
},
|
|
286
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
287
|
+
};
|
|
288
|
+
return {
|
|
289
|
+
colNames: [
|
|
290
|
+
e.value.table.columnNames.datapoint,
|
|
291
|
+
e.value.table.columnNames.value
|
|
292
|
+
],
|
|
293
|
+
head: t,
|
|
294
|
+
body: n,
|
|
295
|
+
config: l
|
|
296
|
+
};
|
|
297
|
+
});
|
|
298
|
+
function _e() {
|
|
299
|
+
D.value.showTable = !D.value.showTable;
|
|
300
|
+
}
|
|
301
|
+
function je() {
|
|
302
|
+
return X.value;
|
|
303
|
+
}
|
|
304
|
+
return c({
|
|
305
|
+
getData: je,
|
|
306
|
+
generateCsv: Ce,
|
|
307
|
+
generatePdf: pe,
|
|
308
|
+
generateImage: be,
|
|
309
|
+
toggleTable: _e,
|
|
310
|
+
toggleAnnotator: ne
|
|
311
|
+
}), (t, n) => (f(), b("div", {
|
|
312
|
+
id: `vue-ui-circle-pack_${s.value}`,
|
|
313
|
+
class: $e(`vue-ui-circle-pack ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
314
|
+
ref_key: "circlePackChart",
|
|
315
|
+
ref: i,
|
|
316
|
+
style: J(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
317
|
+
onMouseenter: n[2] || (n[2] = () => y(de)(!0)),
|
|
318
|
+
onMouseleave: n[3] || (n[3] = () => y(de)(!1))
|
|
319
|
+
}, [
|
|
320
|
+
e.value.userOptions.buttons.annotator ? (f(), M(yt, {
|
|
321
|
+
key: 0,
|
|
322
|
+
svgRef: y(ve),
|
|
323
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
324
|
+
color: e.value.style.chart.color,
|
|
325
|
+
active: I.value,
|
|
326
|
+
scale: L.value / 100,
|
|
327
|
+
onClose: ne
|
|
328
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "scale"])) : k("", !0),
|
|
329
|
+
x(t.$slots, "userConfig", {}, void 0, !0),
|
|
330
|
+
Ee.value ? (f(), b("div", {
|
|
331
|
+
key: 1,
|
|
332
|
+
ref_key: "noTitle",
|
|
333
|
+
ref: z,
|
|
334
|
+
class: "vue-data-ui-no-title-space",
|
|
335
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
336
|
+
}, null, 512)) : k("", !0),
|
|
337
|
+
e.value.style.chart.title.text ? (f(), b("div", {
|
|
338
|
+
key: 2,
|
|
339
|
+
ref_key: "chartTitle",
|
|
340
|
+
ref: g,
|
|
341
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
342
|
+
}, [
|
|
343
|
+
(f(), M(ft, {
|
|
344
|
+
key: `title_${R.value}`,
|
|
345
|
+
config: {
|
|
346
|
+
title: {
|
|
347
|
+
cy: "donut-div-title",
|
|
348
|
+
...e.value.style.chart.title
|
|
349
|
+
},
|
|
350
|
+
subtitle: {
|
|
351
|
+
cy: "donut-div-subtitle",
|
|
352
|
+
...e.value.style.chart.title.subtitle
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}, null, 8, ["config"]))
|
|
356
|
+
], 512)) : k("", !0),
|
|
357
|
+
e.value.userOptions.show && a.value && (y(he) || y(te)) ? (f(), M(ht, {
|
|
358
|
+
ref: "details",
|
|
359
|
+
key: `user_option_${E.value}`,
|
|
360
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
361
|
+
color: e.value.style.chart.color,
|
|
362
|
+
isPrinting: y(ye),
|
|
363
|
+
isImaging: y(me),
|
|
364
|
+
uid: s.value,
|
|
365
|
+
hasTooltip: !1,
|
|
366
|
+
hasLabel: !1,
|
|
367
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
368
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
369
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
370
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
371
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
372
|
+
isFullscreen: H.value,
|
|
373
|
+
chartElement: i.value,
|
|
374
|
+
position: e.value.userOptions.position,
|
|
375
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
376
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
377
|
+
isAnnotation: I.value,
|
|
378
|
+
onToggleFullscreen: Be,
|
|
379
|
+
onGeneratePdf: y(pe),
|
|
380
|
+
onGenerateCsv: Ce,
|
|
381
|
+
onGenerateImage: y(be),
|
|
382
|
+
onToggleTable: _e,
|
|
383
|
+
onToggleAnnotator: ne,
|
|
384
|
+
style: J({
|
|
385
|
+
visibility: y(he) ? y(te) ? "visible" : "hidden" : "visible"
|
|
386
|
+
})
|
|
387
|
+
}, Je({ _: 2 }, [
|
|
388
|
+
t.$slots.menuIcon ? {
|
|
389
|
+
name: "menuIcon",
|
|
390
|
+
fn: _(({ isOpen: l, color: m }) => [
|
|
391
|
+
x(t.$slots, "menuIcon", U(B({ isOpen: l, color: m })), void 0, !0)
|
|
392
|
+
]),
|
|
393
|
+
key: "0"
|
|
394
|
+
} : void 0,
|
|
395
|
+
t.$slots.optionPdf ? {
|
|
396
|
+
name: "optionPdf",
|
|
397
|
+
fn: _(() => [
|
|
398
|
+
x(t.$slots, "optionPdf", {}, void 0, !0)
|
|
399
|
+
]),
|
|
400
|
+
key: "1"
|
|
401
|
+
} : void 0,
|
|
402
|
+
t.$slots.optionCsv ? {
|
|
403
|
+
name: "optionCsv",
|
|
404
|
+
fn: _(() => [
|
|
405
|
+
x(t.$slots, "optionCsv", {}, void 0, !0)
|
|
406
|
+
]),
|
|
407
|
+
key: "2"
|
|
408
|
+
} : void 0,
|
|
409
|
+
t.$slots.optionImg ? {
|
|
410
|
+
name: "optionImg",
|
|
411
|
+
fn: _(() => [
|
|
412
|
+
x(t.$slots, "optionImg", {}, void 0, !0)
|
|
413
|
+
]),
|
|
414
|
+
key: "3"
|
|
415
|
+
} : void 0,
|
|
416
|
+
t.$slots.optionTable ? {
|
|
417
|
+
name: "optionTable",
|
|
418
|
+
fn: _(() => [
|
|
419
|
+
x(t.$slots, "optionTable", {}, void 0, !0)
|
|
420
|
+
]),
|
|
421
|
+
key: "4"
|
|
422
|
+
} : void 0,
|
|
423
|
+
t.$slots.optionFullscreen ? {
|
|
424
|
+
name: "optionFullscreen",
|
|
425
|
+
fn: _(({ toggleFullscreen: l, isFullscreen: m }) => [
|
|
426
|
+
x(t.$slots, "optionFullscreen", U(B({ toggleFullscreen: l, isFullscreen: m })), void 0, !0)
|
|
427
|
+
]),
|
|
428
|
+
key: "5"
|
|
429
|
+
} : void 0,
|
|
430
|
+
t.$slots.optionAnnotator ? {
|
|
431
|
+
name: "optionAnnotator",
|
|
432
|
+
fn: _(({ toggleAnnotator: l, isAnnotator: m }) => [
|
|
433
|
+
x(t.$slots, "optionAnnotator", U(B({ toggleAnnotator: l, isAnnotator: m })), void 0, !0)
|
|
434
|
+
]),
|
|
435
|
+
key: "6"
|
|
436
|
+
} : void 0
|
|
437
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
|
|
438
|
+
a.value ? (f(), b("svg", {
|
|
439
|
+
key: 4,
|
|
440
|
+
ref_key: "svgRef",
|
|
441
|
+
ref: ve,
|
|
442
|
+
xmlns: y(rt),
|
|
443
|
+
viewBox: T.value,
|
|
444
|
+
height: $.value.h,
|
|
445
|
+
width: $.value.w,
|
|
446
|
+
class: $e({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
|
|
447
|
+
style: J(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`)
|
|
448
|
+
}, [
|
|
449
|
+
Ke(pt),
|
|
450
|
+
t.$slots["chart-background"] ? (f(), b("foreignObject", {
|
|
451
|
+
key: 0,
|
|
452
|
+
x: T.value.x,
|
|
453
|
+
y: T.value.y,
|
|
454
|
+
width: T.value.width,
|
|
455
|
+
height: T.value.height,
|
|
456
|
+
style: {
|
|
457
|
+
pointerEvents: "none"
|
|
458
|
+
}
|
|
459
|
+
}, [
|
|
460
|
+
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
461
|
+
], 8, Pt)) : k("", !0),
|
|
462
|
+
(f(!0), b(K, null, Qe(N.value, (l) => (f(), b(K, null, [
|
|
463
|
+
C("defs", null, [
|
|
464
|
+
C("radialGradient", {
|
|
465
|
+
id: l.id,
|
|
466
|
+
fy: "30%"
|
|
467
|
+
}, [
|
|
468
|
+
C("stop", {
|
|
469
|
+
offset: "10%",
|
|
470
|
+
"stop-color": y(ut)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
|
|
471
|
+
}, null, 8, Ot),
|
|
472
|
+
C("stop", {
|
|
473
|
+
offset: "90%",
|
|
474
|
+
"stop-color": y(Oe)(l.color, 0.1)
|
|
475
|
+
}, null, 8, St),
|
|
476
|
+
C("stop", {
|
|
477
|
+
offset: "100%",
|
|
478
|
+
"stop-color": l.color
|
|
479
|
+
}, null, 8, Nt)
|
|
480
|
+
], 8, It)
|
|
481
|
+
]),
|
|
482
|
+
t.$slots.pattern ? (f(), b("g", Ft, [
|
|
483
|
+
C("defs", null, [
|
|
484
|
+
x(t.$slots, "pattern", Te({ ref_for: !0 }, { ...l, patternId: `pattern_${s.value}_${l.id}` }), void 0, !0)
|
|
485
|
+
])
|
|
486
|
+
])) : k("", !0),
|
|
487
|
+
C("rect", {
|
|
488
|
+
x: l.x - l.r,
|
|
489
|
+
y: l.y - l.r,
|
|
490
|
+
width: l.r * 2,
|
|
491
|
+
height: l.r * 2,
|
|
492
|
+
stroke: e.value.style.chart.circles.stroke,
|
|
493
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth * L.value / 100,
|
|
494
|
+
fill: e.value.style.chart.circles.gradient.show ? `url(#${l.id})` : l.color,
|
|
495
|
+
rx: l.r,
|
|
496
|
+
onMouseenter: () => Ge(l),
|
|
497
|
+
onMouseout: n[0] || (n[0] = (m) => d.value = null),
|
|
498
|
+
onClick: (m) => v("selectDatapoint", l)
|
|
499
|
+
}, null, 40, Mt),
|
|
500
|
+
t.$slots.pattern ? (f(), b("rect", {
|
|
501
|
+
key: 1,
|
|
502
|
+
x: l.x - l.r,
|
|
503
|
+
y: l.y - l.r,
|
|
504
|
+
width: l.r * 2,
|
|
505
|
+
height: l.r * 2,
|
|
506
|
+
stroke: e.value.style.chart.circles.stroke,
|
|
507
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth * L.value / 100,
|
|
508
|
+
fill: `url(#pattern_${s.value}_${l.id})`,
|
|
509
|
+
rx: l.r,
|
|
510
|
+
style: {
|
|
511
|
+
pointerEvents: "none"
|
|
512
|
+
}
|
|
513
|
+
}, null, 8, Rt)) : k("", !0),
|
|
514
|
+
t.$slots["data-label"] ? x(t.$slots, "data-label", Te({
|
|
515
|
+
key: 2,
|
|
516
|
+
ref_for: !0
|
|
517
|
+
}, { ...l, createTSpans: y(it), fontSize: { name: l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio, value: we(l) * e.value.style.chart.circles.labels.value.fontSizeRatio }, color: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : y(q)(l.color) }), void 0, !0) : (f(), b(K, { key: 3 }, [
|
|
518
|
+
e.value.style.chart.circles.labels.name.show && l.name ? (f(), b("text", {
|
|
519
|
+
key: 0,
|
|
520
|
+
style: {
|
|
521
|
+
pointerEvents: "none",
|
|
522
|
+
transition: "opacity 0.2s ease-in-out"
|
|
523
|
+
},
|
|
524
|
+
opacity: d.value && !I.value ? 0.2 : 1,
|
|
525
|
+
x: l.x,
|
|
526
|
+
y: l.y + xe(l.r, e.value.style.chart.circles.labels.name.offsetY) - l.r / 10,
|
|
527
|
+
"font-size": l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
528
|
+
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : y(q)(l.color),
|
|
529
|
+
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
530
|
+
"text-anchor": "middle"
|
|
531
|
+
}, j(l.name), 9, At)) : k("", !0),
|
|
532
|
+
e.value.style.chart.circles.labels.value.show ? (f(), b("text", {
|
|
533
|
+
key: 1,
|
|
534
|
+
style: {
|
|
535
|
+
pointerEvents: "none",
|
|
536
|
+
transition: "opacity 0.2s ease-in-out"
|
|
537
|
+
},
|
|
538
|
+
opacity: d.value && !I.value ? 0.2 : 1,
|
|
539
|
+
x: l.x,
|
|
540
|
+
y: l.y + xe(l.r, e.value.style.chart.circles.labels.value.offsetY) + l.r / 2.5,
|
|
541
|
+
"font-size": we(l) * e.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
542
|
+
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : y(q)(l.color),
|
|
543
|
+
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
544
|
+
"text-anchor": "middle"
|
|
545
|
+
}, j(se(l)), 9, Et)) : k("", !0)
|
|
546
|
+
], 64))
|
|
547
|
+
], 64))), 256)),
|
|
548
|
+
d.value && e.value.style.chart.circles.zoom.show && !I.value ? (f(), b(K, { key: 1 }, [
|
|
549
|
+
C("circle", {
|
|
550
|
+
style: J(He.value),
|
|
551
|
+
cx: d.value.x,
|
|
552
|
+
cy: d.value.y,
|
|
553
|
+
r: V.value,
|
|
554
|
+
opacity: P.value,
|
|
555
|
+
stroke: e.value.style.chart.circles.stroke,
|
|
556
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth * L.value / 100,
|
|
557
|
+
fill: e.value.style.chart.circles.gradient.show ? `url(#${d.value.id})` : d.value.color
|
|
558
|
+
}, null, 12, Dt),
|
|
559
|
+
t.$slots["zoom-label"] ? (f(), b("g", Lt, [
|
|
560
|
+
x(t.$slots, "zoom-label", U(B({ ...d.value, zoomOpacity: P.value, currentRadius: V.value, fontSize: G.value })), void 0, !0)
|
|
561
|
+
])) : (f(), b("g", Vt, [
|
|
562
|
+
C("text", {
|
|
563
|
+
style: {
|
|
564
|
+
pointerEvents: "none"
|
|
565
|
+
},
|
|
566
|
+
opacity: P.value,
|
|
567
|
+
x: d.value.x,
|
|
568
|
+
y: d.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - G.value.name / 4,
|
|
569
|
+
"text-anchor": "middle",
|
|
570
|
+
"font-size": G.value.name,
|
|
571
|
+
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : y(q)(d.value.color),
|
|
572
|
+
"font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
|
|
573
|
+
}, j(d.value.name), 9, Gt),
|
|
574
|
+
C("text", {
|
|
575
|
+
style: {
|
|
576
|
+
pointerEvents: "none"
|
|
577
|
+
},
|
|
578
|
+
opacity: P.value,
|
|
579
|
+
x: d.value.x,
|
|
580
|
+
y: d.value.y + G.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
|
|
581
|
+
"text-anchor": "middle",
|
|
582
|
+
"font-size": G.value.value,
|
|
583
|
+
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : y(q)(d.value.color),
|
|
584
|
+
"font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
|
|
585
|
+
}, j(Ue()), 9, Ht)
|
|
586
|
+
]))
|
|
587
|
+
], 64)) : k("", !0),
|
|
588
|
+
x(t.$slots, "svg", {
|
|
589
|
+
svg: { ...T.value }
|
|
590
|
+
}, void 0, !0)
|
|
591
|
+
], 14, Tt)) : k("", !0),
|
|
592
|
+
a.value ? k("", !0) : (f(), M(kt, {
|
|
593
|
+
key: 5,
|
|
594
|
+
config: {
|
|
595
|
+
type: "circlePack",
|
|
596
|
+
style: {
|
|
597
|
+
color: "#CCCCCC"
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
})),
|
|
601
|
+
t.$slots.watermark ? (f(), b("div", Ut, [
|
|
602
|
+
x(t.$slots, "watermark", U(B({ isPrinting: y(ye) || y(me) })), void 0, !0)
|
|
603
|
+
])) : k("", !0),
|
|
604
|
+
t.$slots.source ? (f(), b("div", {
|
|
605
|
+
key: 7,
|
|
606
|
+
ref_key: "source",
|
|
607
|
+
ref: W,
|
|
608
|
+
dir: "auto"
|
|
609
|
+
}, [
|
|
610
|
+
x(t.$slots, "source", {}, void 0, !0)
|
|
611
|
+
], 512)) : k("", !0),
|
|
612
|
+
a.value ? (f(), M(bt, {
|
|
613
|
+
key: 8,
|
|
614
|
+
hideDetails: "",
|
|
615
|
+
config: {
|
|
616
|
+
open: D.value.showTable,
|
|
617
|
+
maxHeight: 1e4,
|
|
618
|
+
body: {
|
|
619
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
620
|
+
color: e.value.style.chart.color
|
|
621
|
+
},
|
|
622
|
+
head: {
|
|
623
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
624
|
+
color: e.value.style.chart.color
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}, {
|
|
628
|
+
content: _(() => [
|
|
629
|
+
(f(), M(gt, {
|
|
630
|
+
key: `table_${A.value}`,
|
|
631
|
+
colNames: Z.value.colNames,
|
|
632
|
+
head: Z.value.head,
|
|
633
|
+
body: Z.value.body,
|
|
634
|
+
config: Z.value.config,
|
|
635
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
636
|
+
onClose: n[1] || (n[1] = (l) => D.value.showTable = !1)
|
|
637
|
+
}, {
|
|
638
|
+
th: _(({ th: l }) => [
|
|
639
|
+
C("div", {
|
|
640
|
+
innerHTML: l,
|
|
641
|
+
style: { display: "flex", "align-items": "center" }
|
|
642
|
+
}, null, 8, Bt)
|
|
643
|
+
]),
|
|
644
|
+
td: _(({ td: l }) => [
|
|
645
|
+
et(j(l.name || l), 1)
|
|
646
|
+
]),
|
|
647
|
+
_: 1
|
|
648
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
649
|
+
]),
|
|
650
|
+
_: 1
|
|
651
|
+
}, 8, ["config"])) : k("", !0)
|
|
652
|
+
], 46, $t));
|
|
653
|
+
}
|
|
654
|
+
}, nl = /* @__PURE__ */ _t(jt, [["__scopeId", "data-v-3a9df29d"]]);
|
|
655
|
+
export {
|
|
656
|
+
nl as default
|
|
657
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as c, computed as _, onMounted as R, onBeforeUnmount as S, createElementBlock as l, createCommentVNode as o, openBlock as i, normalizeStyle as E, unref as m, createElementVNode as r, normalizeClass as C, toDisplayString as p, nextTick as b } from "vue";
|
|
2
|
-
import { u as F } from "./useNestedProp-
|
|
3
|
-
import { u as L, c as z, X as O, s as I } from "./index-
|
|
2
|
+
import { u as F } from "./useNestedProp-BP2kns_4.js";
|
|
3
|
+
import { u as L, c as z, X as O, s as I } from "./index-CORoDQCP.js";
|
|
4
4
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const N = ["xmlns", "height", "width"], T = {
|
|
6
6
|
id: "follower",
|