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
|
@@ -1,648 +0,0 @@
|
|
|
1
|
-
import { useCssVars as je, computed as w, ref as m, watch as _e, onMounted as qe, watchEffect as Xe, createElementBlock as b, openBlock as f, unref as y, normalizeStyle as J, normalizeClass as ze, createBlock as M, createCommentVNode as k, renderSlot as x, createSlots as Ye, withCtx as _, normalizeProps as B, guardReactiveProps as H, createVNode as We, Fragment as K, renderList as Ze, createElementVNode as C, mergeProps as $e, toDisplayString as j, createTextVNode as Je, nextTick as Te } from "vue";
|
|
2
|
-
import { u as Ke, c as Pe, t as ue, p as Q, a as Qe, o as et, e as tt, b as lt, d as at, h as Ie, f as ie, X as ot, l as st, G as q, a7 as nt, q as rt, r as ut, i as Oe } from "./index-BVM1Hjat.js";
|
|
3
|
-
import { u as Se } from "./useNestedProp-B7524T_I.js";
|
|
4
|
-
import { u as it, U as ct } from "./usePrinter-BuEZ1Mqw.js";
|
|
5
|
-
import { _ as vt } from "./Title-CUbvh4nY.js";
|
|
6
|
-
import { P as dt } from "./PenAndPaper-Dq-ECAue.js";
|
|
7
|
-
import { u as ht } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
-
import { _ as ft } from "./PackageVersion-V-_CbVlt.js";
|
|
9
|
-
import yt from "./vue-ui-accordion-Zeu2qcSI.js";
|
|
10
|
-
import { D as mt } from "./DataTable-2Igu4lk9.js";
|
|
11
|
-
import pt from "./vue-ui-skeleton-CjC_RR5C.js";
|
|
12
|
-
import { u as bt } from "./useChartAccessibility-BWojgys7.js";
|
|
13
|
-
import { t as gt, u as kt } from "./useResponsive-vZgZwV-S.js";
|
|
14
|
-
import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
function Ne(n, c = 0) {
|
|
16
|
-
const h = n.reduce((a, { x: s, r: u }) => Math.min(a, s - u - c), 1 / 0), r = n.reduce((a, { x: s, r: u }) => Math.max(a, s + u + c), -1 / 0), v = n.reduce((a, { y: s, r: u }) => Math.min(a, s - u - c), 1 / 0), o = n.reduce((a, { y: s, r: u }) => Math.max(a, s + u + c), -1 / 0);
|
|
17
|
-
return [h, v, r - h, o - v];
|
|
18
|
-
}
|
|
19
|
-
function wt(n, c, h) {
|
|
20
|
-
const r = n._, v = n.next._, o = r.r + v.r, a = (r.x * v.r + v.x * r.r) / o, s = (r.y * v.r + v.y * r.r) / o;
|
|
21
|
-
return Math.max(Math.abs(a * h), Math.abs(s * c));
|
|
22
|
-
}
|
|
23
|
-
function Fe(n, c, h) {
|
|
24
|
-
const r = wt, v = n.length;
|
|
25
|
-
if (!v) return n;
|
|
26
|
-
let o, a, s;
|
|
27
|
-
if (o = n[0], o.x = 0, o.y = 0, !(v > 1) || (a = n[1], o.x = -a.r, a.x = o.r, a.y = 0, !(v > 2))) return n;
|
|
28
|
-
Me(a, o, s = n[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 u = 3; u < v; ++u) {
|
|
30
|
-
Me(o._, a._, s = n[u]), 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 (Re(g._, s._)) {
|
|
35
|
-
a = g, o.next = a, a.previous = o, --u;
|
|
36
|
-
continue e;
|
|
37
|
-
}
|
|
38
|
-
R += g._.r, g = g.next;
|
|
39
|
-
} else {
|
|
40
|
-
if (Re(z._, s._)) {
|
|
41
|
-
o = z, o.next = a, a.previous = o, --u;
|
|
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 = r(o, h, c), X;
|
|
49
|
-
for (; (s = s.next) !== a; )
|
|
50
|
-
(X = r(s, h, c)) < E && (o = s, E = X);
|
|
51
|
-
a = o.next;
|
|
52
|
-
}
|
|
53
|
-
return n;
|
|
54
|
-
}
|
|
55
|
-
function Me(n, c, h) {
|
|
56
|
-
const r = n.x - c.x, v = n.y - c.y, o = r * r + v * v;
|
|
57
|
-
if (o) {
|
|
58
|
-
const a = (c.r + h.r) ** 2, s = (n.r + h.r) ** 2;
|
|
59
|
-
if (a > s) {
|
|
60
|
-
const u = (o + s - a) / (2 * o), g = Math.sqrt(Math.max(0, s / o - u * u));
|
|
61
|
-
h.x = n.x - u * r - g * v, h.y = n.y - u * v + g * r;
|
|
62
|
-
} else {
|
|
63
|
-
const u = (o + a - s) / (2 * o), g = Math.sqrt(Math.max(0, a / o - u * u));
|
|
64
|
-
h.x = c.x + u * r - g * v, h.y = c.y + u * v + g * r;
|
|
65
|
-
}
|
|
66
|
-
} else
|
|
67
|
-
h.x = c.x + h.r, h.y = c.y;
|
|
68
|
-
}
|
|
69
|
-
function Re(n, c) {
|
|
70
|
-
const h = n.r + c.r - 1e-6, r = c.x - n.x, v = c.y - n.y;
|
|
71
|
-
return h > 0 && h * h > r * r + v * v;
|
|
72
|
-
}
|
|
73
|
-
class ee {
|
|
74
|
-
constructor(c) {
|
|
75
|
-
this._ = c, this.next = null, this.previous = null;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
const Ct = ["id"], _t = ["xmlns", "viewBox", "height", "width"], zt = ["x", "y", "width", "height"], $t = ["id"], Tt = ["stop-color"], Pt = ["stop-color"], It = ["stop-color"], Ot = { key: 0 }, St = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onClick"], Nt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], Ft = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Mt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Rt = ["cx", "cy", "r", "opacity", "stroke", "stroke-width", "fill"], At = {
|
|
79
|
-
key: 0,
|
|
80
|
-
style: { pointerEvents: "none" }
|
|
81
|
-
}, Et = { key: 1 }, Dt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Lt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Vt = {
|
|
82
|
-
key: 6,
|
|
83
|
-
class: "vue-data-ui-watermark"
|
|
84
|
-
}, Gt = ["innerHTML"], Ut = {
|
|
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(n, { expose: c, emit: h }) {
|
|
102
|
-
je((l) => ({
|
|
103
|
-
a03951ec: N.value,
|
|
104
|
-
"002ea583": ae.value
|
|
105
|
-
}));
|
|
106
|
-
const r = n, v = h, { vue_ui_circle_pack: o } = Ke(), a = w(() => !!r.dataset && r.dataset.length), s = m(Pe()), u = m(null), g = m(null), z = m(null), R = m(0), A = m(0), E = m(0), X = m(null), e = w({
|
|
107
|
-
get: () => he(),
|
|
108
|
-
set: (l) => l
|
|
109
|
-
}), { svgRef: ce } = bt({ config: e.value.style.chart.title }), {
|
|
110
|
-
userOptionsVisible: te,
|
|
111
|
-
setUserOptionsVisibility: ve,
|
|
112
|
-
keepUserOptionState: de
|
|
113
|
-
} = ht({ config: e.value });
|
|
114
|
-
function he() {
|
|
115
|
-
const l = Se({
|
|
116
|
-
userConfig: r.config,
|
|
117
|
-
defaultConfig: o
|
|
118
|
-
});
|
|
119
|
-
return l.theme ? {
|
|
120
|
-
...Se({
|
|
121
|
-
userConfig: Qe.vue_ui_circle_pack[l.theme] || r.config,
|
|
122
|
-
defaultConfig: l
|
|
123
|
-
}),
|
|
124
|
-
customPalette: ue[l.theme] || Q
|
|
125
|
-
} : l;
|
|
126
|
-
}
|
|
127
|
-
_e(() => r.config, (l) => {
|
|
128
|
-
e.value = he(), te.value = !e.value.userOptions.showOnChartHover, le(), R.value += 1, A.value += 1, D.value.showTable = e.value.table.show;
|
|
129
|
-
}, { deep: !0 });
|
|
130
|
-
const { isPrinting: fe, isImaging: ye, generatePdf: me, generateImage: pe } = it({
|
|
131
|
-
elementId: `vue-ui-circle-pack_${s.value}`,
|
|
132
|
-
fileName: e.value.style.chart.title.text || "vue-ui-circle-pack"
|
|
133
|
-
}), Ae = w(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = m({
|
|
134
|
-
showTable: e.value.table.show
|
|
135
|
-
}), be = m(null), I = m({ h: 10, w: 10 }), ge = m(0), O = m([0, 0, 100, 100]);
|
|
136
|
-
async function le() {
|
|
137
|
-
et(r.dataset) && tt({
|
|
138
|
-
componentName: "VueUiCirclePack",
|
|
139
|
-
type: "dataset"
|
|
140
|
-
}), S.value = await Fe(Y.value), $.value = Ne(S.value, 1).join(" ");
|
|
141
|
-
const l = gt(() => {
|
|
142
|
-
const { width: i, height: t, heightTitle: p, heightNoTitle: F } = kt({
|
|
143
|
-
chart: u.value,
|
|
144
|
-
title: g.value,
|
|
145
|
-
noTitle: z.value
|
|
146
|
-
}), ne = i || 10, re = t && t > 10 ? t : 10;
|
|
147
|
-
ge.value = e.value.style.chart.title.text ? p : F, requestAnimationFrame(() => {
|
|
148
|
-
I.value.w = ne, I.value.h = re - ge.value, Te(async () => {
|
|
149
|
-
const Be = Y.value.map((He) => ({ ...He }));
|
|
150
|
-
S.value = await Fe(Be, I.value.h, I.value.w), O.value = Ne(S.value, 1), $.value = O.value.join(" ");
|
|
151
|
-
});
|
|
152
|
-
});
|
|
153
|
-
});
|
|
154
|
-
be.value = new ResizeObserver(l), be.value.observe(u.value.parentNode);
|
|
155
|
-
}
|
|
156
|
-
qe(le), _e(() => r.dataset, async (l) => {
|
|
157
|
-
await le();
|
|
158
|
-
}, { deep: !0 });
|
|
159
|
-
const Ee = w(() => lt(e.value.customPalette)), Y = w(() => r.dataset.map((l, i) => {
|
|
160
|
-
const t = at(l.color) || Ee.value[i] || ue[e.value.theme || "default"][i % ue[e.value.theme || "default"].length] || Q[i] || Q[i % Q.length];
|
|
161
|
-
return {
|
|
162
|
-
...l,
|
|
163
|
-
r: l.value,
|
|
164
|
-
id: Pe(),
|
|
165
|
-
color: t
|
|
166
|
-
};
|
|
167
|
-
}).filter((l) => ![null, void 0, 1 / 0, -1 / 0].includes(l.value))), S = m([]), $ = m("0 0 100 100"), L = w(() => Math.max(...S.value.map((l) => l.r)));
|
|
168
|
-
function ke(l, i) {
|
|
169
|
-
return i / L.value * l;
|
|
170
|
-
}
|
|
171
|
-
const d = m(null);
|
|
172
|
-
function De(l) {
|
|
173
|
-
e.value.style.chart.circles.zoom.show && (d.value = l);
|
|
174
|
-
}
|
|
175
|
-
const N = w(() => d.value ? d.value.r : 0), ae = w(() => P.value ? N.value : d.value ? d.value.r > O.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio ? d.value.r : O.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), T = m(0), Le = w(() => ({
|
|
176
|
-
pointerEvents: "none",
|
|
177
|
-
opacity: T.value,
|
|
178
|
-
filter: `drop-shadow(0px 0px 6px ${Ie(d.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
|
|
179
|
-
})), V = m(N.value);
|
|
180
|
-
Xe(() => {
|
|
181
|
-
V.value = N.value, T.value = 0;
|
|
182
|
-
let l = null;
|
|
183
|
-
function i(t) {
|
|
184
|
-
l || (l = t);
|
|
185
|
-
const p = (t - l) / e.value.style.chart.circles.zoom.animationFrameMs;
|
|
186
|
-
p < 1 ? (V.value = N.value + (ae.value - N.value) * p, T.value = 0 + e.value.style.chart.circles.zoom.opacity * p, requestAnimationFrame(i)) : (V.value = ae.value, T.value = e.value.style.chart.circles.zoom.opacity);
|
|
187
|
-
}
|
|
188
|
-
requestAnimationFrame(i);
|
|
189
|
-
});
|
|
190
|
-
const G = w(() => ({
|
|
191
|
-
name: e.value.style.chart.circles.zoom.label.name.fontSize * O.value[3] / 300,
|
|
192
|
-
value: e.value.style.chart.circles.zoom.label.value.fontSize * O.value[3] / 300
|
|
193
|
-
}));
|
|
194
|
-
function oe(l) {
|
|
195
|
-
return Oe(
|
|
196
|
-
e.value.style.chart.circles.labels.value.formatter,
|
|
197
|
-
l.value,
|
|
198
|
-
ie({
|
|
199
|
-
p: e.value.style.chart.circles.labels.value.prefix,
|
|
200
|
-
v: l.value,
|
|
201
|
-
s: e.value.style.chart.circles.labels.value.suffix,
|
|
202
|
-
r: e.value.style.chart.circles.labels.value.rounding
|
|
203
|
-
})
|
|
204
|
-
);
|
|
205
|
-
}
|
|
206
|
-
function Ve() {
|
|
207
|
-
return Oe(
|
|
208
|
-
e.value.style.chart.circles.zoom.label.value.formatter,
|
|
209
|
-
d.value.value,
|
|
210
|
-
ie({
|
|
211
|
-
p: e.value.style.chart.circles.zoom.label.value.prefix,
|
|
212
|
-
v: d.value.value,
|
|
213
|
-
s: e.value.style.chart.circles.zoom.label.value.suffix,
|
|
214
|
-
r: e.value.style.chart.circles.zoom.label.value.rounding
|
|
215
|
-
})
|
|
216
|
-
);
|
|
217
|
-
}
|
|
218
|
-
function xe(l) {
|
|
219
|
-
if (!l)
|
|
220
|
-
return 0;
|
|
221
|
-
const i = l.r / oe(l).length * (oe(l).length === 1 ? 1 : 2);
|
|
222
|
-
return Math.min(l.r / 2.5, i);
|
|
223
|
-
}
|
|
224
|
-
const U = m(!1);
|
|
225
|
-
function Ge(l) {
|
|
226
|
-
U.value = l, E.value += 1;
|
|
227
|
-
}
|
|
228
|
-
const P = m(!1);
|
|
229
|
-
function se() {
|
|
230
|
-
P.value = !P.value;
|
|
231
|
-
}
|
|
232
|
-
const W = w(() => {
|
|
233
|
-
const l = Y.value.map((t) => ({
|
|
234
|
-
name: t.name,
|
|
235
|
-
value: t.value,
|
|
236
|
-
color: t.color
|
|
237
|
-
})).toSorted((t, p) => p.value - t.value), i = l.map((t) => t.value);
|
|
238
|
-
return { head: l, body: i };
|
|
239
|
-
});
|
|
240
|
-
function we() {
|
|
241
|
-
Te(() => {
|
|
242
|
-
const l = W.value.head.map((p, F) => [[
|
|
243
|
-
p.name
|
|
244
|
-
], [W.value.body[F]]]), i = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(l), t = rt(i);
|
|
245
|
-
ut({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
const Z = w(() => {
|
|
249
|
-
const l = [
|
|
250
|
-
e.value.table.columnNames.datapoint,
|
|
251
|
-
e.value.table.columnNames.value
|
|
252
|
-
], i = W.value.head.map((F, ne) => {
|
|
253
|
-
const re = ie({
|
|
254
|
-
p: e.value.style.chart.circles.labels.value.prefix,
|
|
255
|
-
v: W.value.body[ne],
|
|
256
|
-
s: e.value.style.chart.circles.labels.value.suffix,
|
|
257
|
-
r: e.value.style.chart.circles.labels.value.rounding
|
|
258
|
-
});
|
|
259
|
-
return [
|
|
260
|
-
{
|
|
261
|
-
color: F.color,
|
|
262
|
-
name: F.name
|
|
263
|
-
},
|
|
264
|
-
re
|
|
265
|
-
];
|
|
266
|
-
}), t = {
|
|
267
|
-
th: {
|
|
268
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
269
|
-
color: e.value.table.th.color,
|
|
270
|
-
outline: e.value.table.th.outline
|
|
271
|
-
},
|
|
272
|
-
td: {
|
|
273
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
274
|
-
color: e.value.table.td.color,
|
|
275
|
-
outline: e.value.table.td.outline
|
|
276
|
-
},
|
|
277
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
278
|
-
};
|
|
279
|
-
return {
|
|
280
|
-
colNames: [
|
|
281
|
-
e.value.table.columnNames.datapoint,
|
|
282
|
-
e.value.table.columnNames.value
|
|
283
|
-
],
|
|
284
|
-
head: l,
|
|
285
|
-
body: i,
|
|
286
|
-
config: t
|
|
287
|
-
};
|
|
288
|
-
});
|
|
289
|
-
function Ce() {
|
|
290
|
-
D.value.showTable = !D.value.showTable;
|
|
291
|
-
}
|
|
292
|
-
function Ue() {
|
|
293
|
-
return Y.value;
|
|
294
|
-
}
|
|
295
|
-
return c({
|
|
296
|
-
getData: Ue,
|
|
297
|
-
generateCsv: we,
|
|
298
|
-
generatePdf: me,
|
|
299
|
-
generateImage: pe,
|
|
300
|
-
toggleTable: Ce,
|
|
301
|
-
toggleAnnotator: se
|
|
302
|
-
}), (l, i) => (f(), b("div", {
|
|
303
|
-
id: `vue-ui-circle-pack_${s.value}`,
|
|
304
|
-
class: ze(`vue-ui-circle-pack ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
305
|
-
ref_key: "circlePackChart",
|
|
306
|
-
ref: u,
|
|
307
|
-
style: J(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
308
|
-
onMouseenter: i[2] || (i[2] = () => y(ve)(!0)),
|
|
309
|
-
onMouseleave: i[3] || (i[3] = () => y(ve)(!1))
|
|
310
|
-
}, [
|
|
311
|
-
e.value.userOptions.buttons.annotator ? (f(), M(dt, {
|
|
312
|
-
key: 0,
|
|
313
|
-
svgRef: y(ce),
|
|
314
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
315
|
-
color: e.value.style.chart.color,
|
|
316
|
-
active: P.value,
|
|
317
|
-
scale: L.value / 100,
|
|
318
|
-
onClose: se
|
|
319
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "scale"])) : k("", !0),
|
|
320
|
-
x(l.$slots, "userConfig", {}, void 0, !0),
|
|
321
|
-
Ae.value ? (f(), b("div", {
|
|
322
|
-
key: 1,
|
|
323
|
-
ref_key: "noTitle",
|
|
324
|
-
ref: z,
|
|
325
|
-
class: "vue-data-ui-no-title-space",
|
|
326
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
327
|
-
}, null, 512)) : k("", !0),
|
|
328
|
-
e.value.style.chart.title.text ? (f(), b("div", {
|
|
329
|
-
key: 2,
|
|
330
|
-
ref_key: "chartTitle",
|
|
331
|
-
ref: g,
|
|
332
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
333
|
-
}, [
|
|
334
|
-
(f(), M(vt, {
|
|
335
|
-
key: `title_${R.value}`,
|
|
336
|
-
config: {
|
|
337
|
-
title: {
|
|
338
|
-
cy: "donut-div-title",
|
|
339
|
-
...e.value.style.chart.title
|
|
340
|
-
},
|
|
341
|
-
subtitle: {
|
|
342
|
-
cy: "donut-div-subtitle",
|
|
343
|
-
...e.value.style.chart.title.subtitle
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}, null, 8, ["config"]))
|
|
347
|
-
], 512)) : k("", !0),
|
|
348
|
-
e.value.userOptions.show && a.value && (y(de) || y(te)) ? (f(), M(ct, {
|
|
349
|
-
ref: "details",
|
|
350
|
-
key: `user_option_${E.value}`,
|
|
351
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
352
|
-
color: e.value.style.chart.color,
|
|
353
|
-
isPrinting: y(fe),
|
|
354
|
-
isImaging: y(ye),
|
|
355
|
-
uid: s.value,
|
|
356
|
-
hasTooltip: !1,
|
|
357
|
-
hasLabel: !1,
|
|
358
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
359
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
360
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
361
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
362
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
363
|
-
isFullscreen: U.value,
|
|
364
|
-
chartElement: u.value,
|
|
365
|
-
position: e.value.userOptions.position,
|
|
366
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
367
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
368
|
-
isAnnotation: P.value,
|
|
369
|
-
onToggleFullscreen: Ge,
|
|
370
|
-
onGeneratePdf: y(me),
|
|
371
|
-
onGenerateCsv: we,
|
|
372
|
-
onGenerateImage: y(pe),
|
|
373
|
-
onToggleTable: Ce,
|
|
374
|
-
onToggleAnnotator: se,
|
|
375
|
-
style: J({
|
|
376
|
-
visibility: y(de) ? y(te) ? "visible" : "hidden" : "visible"
|
|
377
|
-
})
|
|
378
|
-
}, Ye({ _: 2 }, [
|
|
379
|
-
l.$slots.menuIcon ? {
|
|
380
|
-
name: "menuIcon",
|
|
381
|
-
fn: _(({ isOpen: t, color: p }) => [
|
|
382
|
-
x(l.$slots, "menuIcon", B(H({ isOpen: t, color: p })), void 0, !0)
|
|
383
|
-
]),
|
|
384
|
-
key: "0"
|
|
385
|
-
} : void 0,
|
|
386
|
-
l.$slots.optionPdf ? {
|
|
387
|
-
name: "optionPdf",
|
|
388
|
-
fn: _(() => [
|
|
389
|
-
x(l.$slots, "optionPdf", {}, void 0, !0)
|
|
390
|
-
]),
|
|
391
|
-
key: "1"
|
|
392
|
-
} : void 0,
|
|
393
|
-
l.$slots.optionCsv ? {
|
|
394
|
-
name: "optionCsv",
|
|
395
|
-
fn: _(() => [
|
|
396
|
-
x(l.$slots, "optionCsv", {}, void 0, !0)
|
|
397
|
-
]),
|
|
398
|
-
key: "2"
|
|
399
|
-
} : void 0,
|
|
400
|
-
l.$slots.optionImg ? {
|
|
401
|
-
name: "optionImg",
|
|
402
|
-
fn: _(() => [
|
|
403
|
-
x(l.$slots, "optionImg", {}, void 0, !0)
|
|
404
|
-
]),
|
|
405
|
-
key: "3"
|
|
406
|
-
} : void 0,
|
|
407
|
-
l.$slots.optionTable ? {
|
|
408
|
-
name: "optionTable",
|
|
409
|
-
fn: _(() => [
|
|
410
|
-
x(l.$slots, "optionTable", {}, void 0, !0)
|
|
411
|
-
]),
|
|
412
|
-
key: "4"
|
|
413
|
-
} : void 0,
|
|
414
|
-
l.$slots.optionFullscreen ? {
|
|
415
|
-
name: "optionFullscreen",
|
|
416
|
-
fn: _(({ toggleFullscreen: t, isFullscreen: p }) => [
|
|
417
|
-
x(l.$slots, "optionFullscreen", B(H({ toggleFullscreen: t, isFullscreen: p })), void 0, !0)
|
|
418
|
-
]),
|
|
419
|
-
key: "5"
|
|
420
|
-
} : void 0,
|
|
421
|
-
l.$slots.optionAnnotator ? {
|
|
422
|
-
name: "optionAnnotator",
|
|
423
|
-
fn: _(({ toggleAnnotator: t, isAnnotator: p }) => [
|
|
424
|
-
x(l.$slots, "optionAnnotator", B(H({ toggleAnnotator: t, isAnnotator: p })), void 0, !0)
|
|
425
|
-
]),
|
|
426
|
-
key: "6"
|
|
427
|
-
} : void 0
|
|
428
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
|
|
429
|
-
a.value ? (f(), b("svg", {
|
|
430
|
-
key: 4,
|
|
431
|
-
ref_key: "svgRef",
|
|
432
|
-
ref: ce,
|
|
433
|
-
xmlns: y(ot),
|
|
434
|
-
viewBox: $.value,
|
|
435
|
-
height: I.value.h,
|
|
436
|
-
width: I.value.w,
|
|
437
|
-
class: ze({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
438
|
-
style: J(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`)
|
|
439
|
-
}, [
|
|
440
|
-
We(ft),
|
|
441
|
-
l.$slots["chart-background"] ? (f(), b("foreignObject", {
|
|
442
|
-
key: 0,
|
|
443
|
-
x: $.value.x,
|
|
444
|
-
y: $.value.y,
|
|
445
|
-
width: $.value.width,
|
|
446
|
-
height: $.value.height,
|
|
447
|
-
style: {
|
|
448
|
-
pointerEvents: "none"
|
|
449
|
-
}
|
|
450
|
-
}, [
|
|
451
|
-
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
452
|
-
], 8, zt)) : k("", !0),
|
|
453
|
-
(f(!0), b(K, null, Ze(S.value, (t) => (f(), b(K, null, [
|
|
454
|
-
C("defs", null, [
|
|
455
|
-
C("radialGradient", {
|
|
456
|
-
id: t.id,
|
|
457
|
-
fy: "30%"
|
|
458
|
-
}, [
|
|
459
|
-
C("stop", {
|
|
460
|
-
offset: "10%",
|
|
461
|
-
"stop-color": y(st)(t.color, e.value.style.chart.circles.gradient.intensity / 100)
|
|
462
|
-
}, null, 8, Tt),
|
|
463
|
-
C("stop", {
|
|
464
|
-
offset: "90%",
|
|
465
|
-
"stop-color": y(Ie)(t.color, 0.1)
|
|
466
|
-
}, null, 8, Pt),
|
|
467
|
-
C("stop", {
|
|
468
|
-
offset: "100%",
|
|
469
|
-
"stop-color": t.color
|
|
470
|
-
}, null, 8, It)
|
|
471
|
-
], 8, $t)
|
|
472
|
-
]),
|
|
473
|
-
l.$slots.pattern ? (f(), b("g", Ot, [
|
|
474
|
-
C("defs", null, [
|
|
475
|
-
x(l.$slots, "pattern", $e({ ref_for: !0 }, { ...t, patternId: `pattern_${s.value}_${t.id}` }), void 0, !0)
|
|
476
|
-
])
|
|
477
|
-
])) : k("", !0),
|
|
478
|
-
C("rect", {
|
|
479
|
-
x: t.x - t.r,
|
|
480
|
-
y: t.y - t.r,
|
|
481
|
-
width: t.r * 2,
|
|
482
|
-
height: t.r * 2,
|
|
483
|
-
stroke: e.value.style.chart.circles.stroke,
|
|
484
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth * L.value / 100,
|
|
485
|
-
fill: e.value.style.chart.circles.gradient.show ? `url(#${t.id})` : t.color,
|
|
486
|
-
rx: t.r,
|
|
487
|
-
onMouseenter: () => De(t),
|
|
488
|
-
onMouseout: i[0] || (i[0] = (p) => d.value = null),
|
|
489
|
-
onClick: (p) => v("selectDatapoint", t)
|
|
490
|
-
}, null, 40, St),
|
|
491
|
-
l.$slots.pattern ? (f(), b("rect", {
|
|
492
|
-
key: 1,
|
|
493
|
-
x: t.x - t.r,
|
|
494
|
-
y: t.y - t.r,
|
|
495
|
-
width: t.r * 2,
|
|
496
|
-
height: t.r * 2,
|
|
497
|
-
stroke: e.value.style.chart.circles.stroke,
|
|
498
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth * L.value / 100,
|
|
499
|
-
fill: `url(#pattern_${s.value}_${t.id})`,
|
|
500
|
-
rx: t.r,
|
|
501
|
-
style: {
|
|
502
|
-
pointerEvents: "none"
|
|
503
|
-
}
|
|
504
|
-
}, null, 8, Nt)) : k("", !0),
|
|
505
|
-
l.$slots["data-label"] ? x(l.$slots, "data-label", $e({
|
|
506
|
-
key: 2,
|
|
507
|
-
ref_for: !0
|
|
508
|
-
}, { ...t, createTSpans: y(nt), fontSize: { name: t.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio, value: xe(t) * 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)(t.color) }), void 0, !0) : (f(), b(K, { key: 3 }, [
|
|
509
|
-
e.value.style.chart.circles.labels.name.show && t.name ? (f(), b("text", {
|
|
510
|
-
key: 0,
|
|
511
|
-
style: {
|
|
512
|
-
pointerEvents: "none",
|
|
513
|
-
transition: "opacity 0.2s ease-in-out"
|
|
514
|
-
},
|
|
515
|
-
opacity: d.value && !P.value ? 0.2 : 1,
|
|
516
|
-
x: t.x,
|
|
517
|
-
y: t.y + ke(t.r, e.value.style.chart.circles.labels.name.offsetY) - t.r / 10,
|
|
518
|
-
"font-size": t.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
519
|
-
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : y(q)(t.color),
|
|
520
|
-
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
521
|
-
"text-anchor": "middle"
|
|
522
|
-
}, j(t.name), 9, Ft)) : k("", !0),
|
|
523
|
-
e.value.style.chart.circles.labels.value.show ? (f(), b("text", {
|
|
524
|
-
key: 1,
|
|
525
|
-
style: {
|
|
526
|
-
pointerEvents: "none",
|
|
527
|
-
transition: "opacity 0.2s ease-in-out"
|
|
528
|
-
},
|
|
529
|
-
opacity: d.value && !P.value ? 0.2 : 1,
|
|
530
|
-
x: t.x,
|
|
531
|
-
y: t.y + ke(t.r, e.value.style.chart.circles.labels.value.offsetY) + t.r / 2.5,
|
|
532
|
-
"font-size": xe(t) * e.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
533
|
-
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : y(q)(t.color),
|
|
534
|
-
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
535
|
-
"text-anchor": "middle"
|
|
536
|
-
}, j(oe(t)), 9, Mt)) : k("", !0)
|
|
537
|
-
], 64))
|
|
538
|
-
], 64))), 256)),
|
|
539
|
-
d.value && e.value.style.chart.circles.zoom.show && !P.value ? (f(), b(K, { key: 1 }, [
|
|
540
|
-
C("circle", {
|
|
541
|
-
style: J(Le.value),
|
|
542
|
-
cx: d.value.x,
|
|
543
|
-
cy: d.value.y,
|
|
544
|
-
r: V.value,
|
|
545
|
-
opacity: T.value,
|
|
546
|
-
stroke: e.value.style.chart.circles.stroke,
|
|
547
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth * L.value / 100,
|
|
548
|
-
fill: e.value.style.chart.circles.gradient.show ? `url(#${d.value.id})` : d.value.color
|
|
549
|
-
}, null, 12, Rt),
|
|
550
|
-
l.$slots["zoom-label"] ? (f(), b("g", At, [
|
|
551
|
-
x(l.$slots, "zoom-label", B(H({ ...d.value, zoomOpacity: T.value, currentRadius: V.value, fontSize: G.value })), void 0, !0)
|
|
552
|
-
])) : (f(), b("g", Et, [
|
|
553
|
-
C("text", {
|
|
554
|
-
style: {
|
|
555
|
-
pointerEvents: "none"
|
|
556
|
-
},
|
|
557
|
-
opacity: T.value,
|
|
558
|
-
x: d.value.x,
|
|
559
|
-
y: d.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - G.value.name / 4,
|
|
560
|
-
"text-anchor": "middle",
|
|
561
|
-
"font-size": G.value.name,
|
|
562
|
-
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : y(q)(d.value.color),
|
|
563
|
-
"font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
|
|
564
|
-
}, j(d.value.name), 9, Dt),
|
|
565
|
-
C("text", {
|
|
566
|
-
style: {
|
|
567
|
-
pointerEvents: "none"
|
|
568
|
-
},
|
|
569
|
-
opacity: T.value,
|
|
570
|
-
x: d.value.x,
|
|
571
|
-
y: d.value.y + G.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
|
|
572
|
-
"text-anchor": "middle",
|
|
573
|
-
"font-size": G.value.value,
|
|
574
|
-
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : y(q)(d.value.color),
|
|
575
|
-
"font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
|
|
576
|
-
}, j(Ve()), 9, Lt)
|
|
577
|
-
]))
|
|
578
|
-
], 64)) : k("", !0),
|
|
579
|
-
x(l.$slots, "svg", {
|
|
580
|
-
svg: { ...$.value }
|
|
581
|
-
}, void 0, !0)
|
|
582
|
-
], 14, _t)) : k("", !0),
|
|
583
|
-
a.value ? k("", !0) : (f(), M(pt, {
|
|
584
|
-
key: 5,
|
|
585
|
-
config: {
|
|
586
|
-
type: "circlePack",
|
|
587
|
-
style: {
|
|
588
|
-
color: "#CCCCCC"
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
})),
|
|
592
|
-
l.$slots.watermark ? (f(), b("div", Vt, [
|
|
593
|
-
x(l.$slots, "watermark", B(H({ isPrinting: y(fe) || y(ye) })), void 0, !0)
|
|
594
|
-
])) : k("", !0),
|
|
595
|
-
l.$slots.source ? (f(), b("div", {
|
|
596
|
-
key: 7,
|
|
597
|
-
ref_key: "source",
|
|
598
|
-
ref: X,
|
|
599
|
-
dir: "auto"
|
|
600
|
-
}, [
|
|
601
|
-
x(l.$slots, "source", {}, void 0, !0)
|
|
602
|
-
], 512)) : k("", !0),
|
|
603
|
-
a.value ? (f(), M(yt, {
|
|
604
|
-
key: 8,
|
|
605
|
-
hideDetails: "",
|
|
606
|
-
config: {
|
|
607
|
-
open: D.value.showTable,
|
|
608
|
-
maxHeight: 1e4,
|
|
609
|
-
body: {
|
|
610
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
611
|
-
color: e.value.style.chart.color
|
|
612
|
-
},
|
|
613
|
-
head: {
|
|
614
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
615
|
-
color: e.value.style.chart.color
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
}, {
|
|
619
|
-
content: _(() => [
|
|
620
|
-
(f(), M(mt, {
|
|
621
|
-
key: `table_${A.value}`,
|
|
622
|
-
colNames: Z.value.colNames,
|
|
623
|
-
head: Z.value.head,
|
|
624
|
-
body: Z.value.body,
|
|
625
|
-
config: Z.value.config,
|
|
626
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
627
|
-
onClose: i[1] || (i[1] = (t) => D.value.showTable = !1)
|
|
628
|
-
}, {
|
|
629
|
-
th: _(({ th: t }) => [
|
|
630
|
-
C("div", {
|
|
631
|
-
innerHTML: t,
|
|
632
|
-
style: { display: "flex", "align-items": "center" }
|
|
633
|
-
}, null, 8, Gt)
|
|
634
|
-
]),
|
|
635
|
-
td: _(({ td: t }) => [
|
|
636
|
-
Je(j(t.name || t), 1)
|
|
637
|
-
]),
|
|
638
|
-
_: 1
|
|
639
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
640
|
-
]),
|
|
641
|
-
_: 1
|
|
642
|
-
}, 8, ["config"])) : k("", !0)
|
|
643
|
-
], 46, Ct));
|
|
644
|
-
}
|
|
645
|
-
}, al = /* @__PURE__ */ xt(Ut, [["__scopeId", "data-v-98ca8327"]]);
|
|
646
|
-
export {
|
|
647
|
-
al as default
|
|
648
|
-
};
|