vue-data-ui 2.6.50 → 2.6.51
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-Cj0UP9DN.cjs → Arrow-BgUU76S-.cjs} +1 -1
- package/dist/{Arrow-DgCzka34.js → Arrow-zUP7YWwK.js} +1 -1
- package/dist/{BaseIcon-BeRHKYU4.cjs → BaseIcon-C86xshge.cjs} +1 -1
- package/dist/{BaseIcon-Dug6kYBB.js → BaseIcon-CTAy5_xi.js} +1 -1
- package/dist/{ColorPicker-8EgjF14O.js → ColorPicker-Bytmrdr3.js} +3 -3
- package/dist/{ColorPicker-C-VVlvta.cjs → ColorPicker-D0HD4Quw.cjs} +1 -1
- package/dist/{DataTable-Qe7lM3JL.js → DataTable-BciZ6nvV.js} +2 -2
- package/dist/{DataTable-DtXoZKgy.cjs → DataTable-Bm_s0nuy.cjs} +1 -1
- package/dist/{Legend-lzTl1S1b.js → Legend-Cz7Cx76P.js} +2 -2
- package/dist/{Legend-CjiKxR8b.cjs → Legend-DgFKLfrI.cjs} +1 -1
- package/dist/{PackageVersion-DqsBfaeh.js → PackageVersion-o03zxIgy.js} +1 -1
- package/dist/{PackageVersion-yiiAD1cf.cjs → PackageVersion-t17AmNwO.cjs} +1 -1
- package/dist/{PenAndPaper-AvORsvqF.js → PenAndPaper-CkHrxfug.js} +3 -3
- package/dist/{PenAndPaper-Btnlb4RH.cjs → PenAndPaper-aD8jM7bo.cjs} +1 -1
- package/dist/{Shape-2KuBmTJV.cjs → Shape-CGopvwTa.cjs} +1 -1
- package/dist/{Shape-Jg6afnuk.js → Shape-D-YK0lYU.js} +1 -1
- package/dist/{Slicer-DPPVa8zE.js → Slicer-AvtKQlUL.js} +2 -2
- package/dist/{Slicer-BGrOB5Ac.cjs → Slicer-B8Egk1-K.cjs} +1 -1
- package/dist/{Title-cjYd6IYr.cjs → Title-BJ2lOafm.cjs} +1 -1
- package/dist/{Title-DPXXRQ-w.js → Title-D-dsYBke.js} +1 -1
- package/dist/{Tooltip-YBqthQ_8.cjs → Tooltip-7LYTKhzY.cjs} +1 -1
- package/dist/{Tooltip-C4H6zELy.js → Tooltip-DFPLXjvj.js} +1 -1
- package/dist/{index-BVYLM95-.cjs → index-BprEQiKM.cjs} +1 -1
- package/dist/{index-BdAppyf2.js → index-C3amwS0l.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-B3UWJnDQ.cjs → useNestedProp-Cf-JPzTa.cjs} +1 -1
- package/dist/{useNestedProp-BGSJvQb3.js → useNestedProp-D9I77VlT.js} +1 -1
- package/dist/usePanZoom-CUkkqW81.js +116 -0
- package/dist/usePanZoom-PXRi2Rwx.cjs +1 -0
- package/dist/{usePrinter-CkJDEgjQ.cjs → usePrinter-CAGQW2cC.cjs} +1 -1
- package/dist/{usePrinter-Bvq0gUmP.js → usePrinter-CUdxA1Bg.js} +1 -1
- package/dist/{vue-data-ui-CgyB5G6z.cjs → vue-data-ui-Banpw0iL.cjs} +1 -1
- package/dist/{vue-data-ui-B66itXhe.js → vue-data-ui-DH842rfS.js} +61 -61
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-kESBThJe.js → vue-ui-3d-bar-Bd6XLFya.js} +9 -9
- package/dist/{vue-ui-3d-bar-Bp1Qx_3s.cjs → vue-ui-3d-bar-CJfSnDyo.cjs} +1 -1
- package/dist/{vue-ui-accordion-Btv7fZHc.cjs → vue-ui-accordion-B-rPe8KM.cjs} +1 -1
- package/dist/{vue-ui-accordion-dAJcVBnP.js → vue-ui-accordion-BBc1ZMpG.js} +3 -3
- package/dist/{vue-ui-age-pyramid-yogLIZ0-.cjs → vue-ui-age-pyramid-BNj-4LHe.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DOf4u3G7.js → vue-ui-age-pyramid-Bn_mzS13.js} +10 -10
- package/dist/{vue-ui-annotator-DVCxXtI-.cjs → vue-ui-annotator-Ye4UmfpY.cjs} +1 -1
- package/dist/{vue-ui-annotator-CSE9-lNO.js → vue-ui-annotator-vFbCgJEZ.js} +1 -1
- package/dist/{vue-ui-bullet-C12nLt5L.cjs → vue-ui-bullet-B6KpjWl_.cjs} +1 -1
- package/dist/{vue-ui-bullet-CrO7QKNT.js → vue-ui-bullet-DyGZmH-g.js} +8 -8
- package/dist/{vue-ui-candlestick-DdwcejCS.cjs → vue-ui-candlestick-BoH-d4sf.cjs} +1 -1
- package/dist/{vue-ui-candlestick-fZNnGqnR.js → vue-ui-candlestick-DUfXOizp.js} +11 -11
- package/dist/{vue-ui-carousel-table-Be2jjnQa.cjs → vue-ui-carousel-table-Cbl6UzEH.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-D7TTErUh.js → vue-ui-carousel-table-DZzht2CZ.js} +4 -4
- package/dist/{vue-ui-chestnut-OYsNRpL_.cjs → vue-ui-chestnut-DWPp1zKx.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DXxpU3iH.js → vue-ui-chestnut-DWQumnLS.js} +8 -8
- package/dist/{vue-ui-circle-pack-CzGyZQx0.cjs → vue-ui-circle-pack-1RcCvaYs.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-i0GUh3ui.js → vue-ui-circle-pack-SLB70Z_8.js} +9 -9
- package/dist/{vue-ui-cursor-BjYOyMry.cjs → vue-ui-cursor-DMCSD6tW.cjs} +1 -1
- package/dist/{vue-ui-cursor-7vhZ073K.js → vue-ui-cursor-DqwobFdf.js} +2 -2
- package/dist/{vue-ui-dashboard-Z0ukqnTc.js → vue-ui-dashboard-BoVqjFT-.js} +2 -2
- package/dist/{vue-ui-dashboard-zYOnUnUa.cjs → vue-ui-dashboard-Cewv6xvc.cjs} +1 -1
- package/dist/{vue-ui-digits-er9gte-s.cjs → vue-ui-digits-CicHxnLg.cjs} +1 -1
- package/dist/{vue-ui-digits-CnSmR9jO.js → vue-ui-digits-CkqC9SEJ.js} +2 -2
- package/dist/{vue-ui-donut-DlBL_0yx.js → vue-ui-donut-BIJLbkro.js} +12 -12
- package/dist/{vue-ui-donut-DVg5ro7B.cjs → vue-ui-donut-D03_Yedr.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-U0GNz2fp.js → vue-ui-donut-evolution-Bu7kKtpK.js} +11 -11
- package/dist/{vue-ui-donut-evolution-BDuXBSjv.cjs → vue-ui-donut-evolution-LqcL3OxY.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-aIYpaGN0.js → vue-ui-dumbbell-B3sbV0fk.js} +10 -10
- package/dist/{vue-ui-dumbbell-PioEuDZQ.cjs → vue-ui-dumbbell-Drrm__Nn.cjs} +1 -1
- package/dist/{vue-ui-flow-BcaSo6z0.js → vue-ui-flow-DMK3963a.js} +9 -9
- package/dist/{vue-ui-flow-BOlMAhh0.cjs → vue-ui-flow-NPMbdbtS.cjs} +1 -1
- package/dist/{vue-ui-funnel-DrkVJPw1.cjs → vue-ui-funnel-BiSRxqzO.cjs} +1 -1
- package/dist/{vue-ui-funnel-AgQn4mH5.js → vue-ui-funnel-C7EwDAdS.js} +9 -9
- package/dist/{vue-ui-galaxy-D85_jVQh.cjs → vue-ui-galaxy-CaDXpBs3.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DWSIn-eK.js → vue-ui-galaxy-Cotibz3o.js} +11 -11
- package/dist/{vue-ui-gauge-BHj3D_VH.cjs → vue-ui-gauge-DK2g4x7s.cjs} +1 -1
- package/dist/{vue-ui-gauge-8ULXCGzO.js → vue-ui-gauge-DKNwFB05.js} +7 -7
- package/dist/{vue-ui-gizmo-D1j6MDV_.js → vue-ui-gizmo-DO5PUFbp.js} +3 -3
- package/dist/{vue-ui-gizmo-CEsmiN_U.cjs → vue-ui-gizmo-DhSfekXS.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Cww1BNvU.cjs → vue-ui-heatmap-DbWoJVGe.cjs} +1 -1
- package/dist/{vue-ui-heatmap-tMQOgzTJ.js → vue-ui-heatmap-DulCLx2a.js} +10 -10
- package/dist/{vue-ui-history-plot-17Ayxmx8.js → vue-ui-history-plot-BcLWVk_q.js} +11 -11
- package/dist/{vue-ui-history-plot-CrVMrU9H.cjs → vue-ui-history-plot-H6t6DvQ_.cjs} +1 -1
- package/dist/{vue-ui-kpi-C9kltMQ9.js → vue-ui-kpi-CG43D1rb.js} +3 -3
- package/dist/{vue-ui-kpi-BALQ_M2s.cjs → vue-ui-kpi-CdnXw9hF.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-zkvcqGEg.js → vue-ui-mini-loader-CLjqXzvH.js} +2 -2
- package/dist/{vue-ui-mini-loader-DzObX7ZU.cjs → vue-ui-mini-loader-DXU3rfwQ.cjs} +1 -1
- package/dist/{vue-ui-molecule-C8d0BNOu.js → vue-ui-molecule-BYetzB_N.js} +253 -226
- package/dist/vue-ui-molecule-fuZ8vxv7.cjs +1 -0
- package/dist/{vue-ui-mood-radar-B-I03OhG.cjs → vue-ui-mood-radar-B4mRD0GQ.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Bl-PDTeX.js → vue-ui-mood-radar-BnUc15e9.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DnuV1MXZ.cjs → vue-ui-nested-donuts-B_29kUHS.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BxTLEwZg.js → vue-ui-nested-donuts-Dk7fcRR3.js} +11 -11
- package/dist/{vue-ui-onion-ChlD0lEh.js → vue-ui-onion-BbucE7AX.js} +11 -11
- package/dist/{vue-ui-onion-jrh-OYsj.cjs → vue-ui-onion-CtI9xbLn.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DEsxCUkG.cjs → vue-ui-parallel-coordinate-plot-CFWG0onH.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DaQ5VVjw.js → vue-ui-parallel-coordinate-plot-CLIOyXQc.js} +12 -12
- package/dist/{vue-ui-quadrant-BhwxemSE.cjs → vue-ui-quadrant-BFu1K90E.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DHwHNx0L.js → vue-ui-quadrant-DinfyJBM.js} +12 -12
- package/dist/{vue-ui-quick-chart-DCKBR3yK.js → vue-ui-quick-chart-D5JhRHUd.js} +9 -9
- package/dist/{vue-ui-quick-chart-CKzMyPRh.cjs → vue-ui-quick-chart-Dp6hQbfz.cjs} +1 -1
- package/dist/{vue-ui-radar-B5llyhiL.js → vue-ui-radar-CUFZHgr3.js} +12 -12
- package/dist/{vue-ui-radar-BKa6M5Wq.cjs → vue-ui-radar-Ds39hdq4.cjs} +1 -1
- package/dist/{vue-ui-rating-ChPyKOUl.cjs → vue-ui-rating-BfqOFA-n.cjs} +1 -1
- package/dist/{vue-ui-rating-BLdhelA-.js → vue-ui-rating-D1EUcFL0.js} +2 -2
- package/dist/{vue-ui-relation-circle-CS8SHw7f.cjs → vue-ui-relation-circle-CiULD7PK.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CDhd8AAr.js → vue-ui-relation-circle-D65EImKT.js} +7 -7
- package/dist/{vue-ui-rings-bZCTJMWv.js → vue-ui-rings-9zTtxZif.js} +12 -12
- package/dist/{vue-ui-rings-DJS0iOwC.cjs → vue-ui-rings-DtMD95_q.cjs} +1 -1
- package/dist/{vue-ui-scatter-BP8fVV4q.cjs → vue-ui-scatter-DXzppvmP.cjs} +1 -1
- package/dist/{vue-ui-scatter-BKvtGb58.js → vue-ui-scatter-DsF27c6e.js} +12 -12
- package/dist/{vue-ui-screenshot-BLvYddQy.cjs → vue-ui-screenshot-C8TpXNBS.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CAciP-qg.js → vue-ui-screenshot-CQHpwksn.js} +1 -1
- package/dist/{vue-ui-skeleton-BvIz3HzY.js → vue-ui-skeleton-CrT5EE2W.js} +3 -3
- package/dist/{vue-ui-skeleton-CIPY7Xfo.cjs → vue-ui-skeleton-a_FvGOK6.cjs} +1 -1
- package/dist/{vue-ui-smiley-Dcw6DDUd.cjs → vue-ui-smiley-CpC75CYj.cjs} +1 -1
- package/dist/{vue-ui-smiley-CF97kVSw.js → vue-ui-smiley-DK8TadZl.js} +2 -2
- package/dist/{vue-ui-spark-trend-DDWZF8FE.js → vue-ui-spark-trend-BCN37BvU.js} +5 -5
- package/dist/{vue-ui-spark-trend-H77En2yP.cjs → vue-ui-spark-trend-oZCQCarV.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DS7rL1J8.js → vue-ui-sparkbar-CE8WVA2T.js} +4 -4
- package/dist/{vue-ui-sparkbar-D_J5RsQ7.cjs → vue-ui-sparkbar-CoCEXvSI.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-lyri9BYV.cjs → vue-ui-sparkgauge-DRGJ2R72.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-MSEo6cmu.js → vue-ui-sparkgauge-DoZQ6ZYY.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DZPn2dDv.js → vue-ui-sparkhistogram-Bol-aQuY.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-qNy_nXl3.cjs → vue-ui-sparkhistogram-wzpO76Dd.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DhUWmLtU.cjs → vue-ui-sparkline-BdBLfCAO.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DmMQ2SZ_.js → vue-ui-sparkline-C9FJaLay.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DgmKIPN-.js → vue-ui-sparkstackbar-CQSP1urd.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-DSWq3rmC.cjs → vue-ui-sparkstackbar-DcGfGfpf.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DYOgS1Qd.js → vue-ui-stackbar-CDFfxSCS.js} +13 -13
- package/dist/{vue-ui-stackbar-2RHJInUq.cjs → vue-ui-stackbar-DZEOEvnN.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Dt2b8qR2.js → vue-ui-strip-plot-Mroaxrtl.js} +11 -11
- package/dist/{vue-ui-strip-plot-6VO97qw1.cjs → vue-ui-strip-plot-cwg3sgfW.cjs} +1 -1
- package/dist/{vue-ui-table-CUXgc62i.js → vue-ui-table-DMGZN-3h.js} +1 -1
- package/dist/{vue-ui-table-DB16XLTw.cjs → vue-ui-table-JunVPtv-.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Awh619At.cjs → vue-ui-table-heatmap-B-K-sXUr.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CCE1VZlG.js → vue-ui-table-heatmap-Cvd3LF-p.js} +4 -4
- package/dist/{vue-ui-table-sparkline-Cmmla_Dx.js → vue-ui-table-sparkline-D6LrWje8.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DYQYdZbN.cjs → vue-ui-table-sparkline-DZcJ1rQX.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DOwFD-a9.cjs → vue-ui-thermometer-61KP0jn1.cjs} +1 -1
- package/dist/{vue-ui-thermometer-C-9ZCOYE.js → vue-ui-thermometer-BSMW00bJ.js} +7 -7
- package/dist/{vue-ui-timer-BJWfxtwA.js → vue-ui-timer-B2iP7RSf.js} +5 -5
- package/dist/{vue-ui-timer-DhmCBz29.cjs → vue-ui-timer-jeD5NmuN.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DWb36mmN.js → vue-ui-tiremarks-C1WyRyfc.js} +7 -7
- package/dist/{vue-ui-tiremarks-C_fjzZx1.cjs → vue-ui-tiremarks-D2kbp6KR.cjs} +1 -1
- package/dist/{vue-ui-treemap-ksooFSp3.cjs → vue-ui-treemap-BxbeEbWT.cjs} +1 -1
- package/dist/{vue-ui-treemap-BvQ-fZ2Q.js → vue-ui-treemap-DyJ_Ath1.js} +12 -12
- package/dist/{vue-ui-vertical-bar-BX82g5XY.cjs → vue-ui-vertical-bar-C0cbPo6B.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-Bx-Hgjrl.js → vue-ui-vertical-bar-yzivBWJt.js} +12 -12
- package/dist/{vue-ui-waffle-XBYHZddH.js → vue-ui-waffle-BByWdS7G.js} +12 -12
- package/dist/{vue-ui-waffle-6bPlupZ9.cjs → vue-ui-waffle-CF3e6ft5.cjs} +1 -1
- package/dist/{vue-ui-wheel-BAGyz9kV.cjs → vue-ui-wheel-D7R1yr52.cjs} +1 -1
- package/dist/{vue-ui-wheel-B3opMdjn.js → vue-ui-wheel-iDX0u5LU.js} +7 -7
- package/dist/vue-ui-word-cloud-BPQFUEFg.js +628 -0
- package/dist/vue-ui-word-cloud-CSnrXzqi.cjs +1 -0
- package/dist/{vue-ui-xy-DCMV8GPA.js → vue-ui-xy-DmwPJ7Bc.js} +14 -14
- package/dist/{vue-ui-xy-canvas-DDf9P1hu.js → vue-ui-xy-canvas-CmXVo7kC.js} +12 -12
- package/dist/{vue-ui-xy-canvas-DKhymJYh.cjs → vue-ui-xy-canvas-aZQ9FHGI.cjs} +1 -1
- package/dist/{vue-ui-xy-aSB6TWYQ.cjs → vue-ui-xy-uJqJ5M1Y.cjs} +1 -1
- package/package.json +1 -1
- package/dist/usePanZoom-BI9ALAYy.cjs +0 -1
- package/dist/usePanZoom-D76xCBni.js +0 -97
- package/dist/vue-ui-molecule-mDLCkrh8.cjs +0 -1
- package/dist/vue-ui-word-cloud-1Lsf7r8k.cjs +0 -1
- package/dist/vue-ui-word-cloud-DJGCUigw.js +0 -571
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { ref as s, onMounted as V, onUnmounted as G, watchEffect as H } from "vue";
|
|
2
|
-
function O(m, A = { x: 0, y: 0, width: 100, height: 100 }, Z = 1, k) {
|
|
3
|
-
const a = s({ ...A }), l = s(1), p = s(!1), h = s({ x: 0, y: 0 }), y = s(0), Y = s(null), E = s(!1);
|
|
4
|
-
let u = { x: 0, y: 0 }, L = null, f = null;
|
|
5
|
-
function D(e) {
|
|
6
|
-
if (e.length < 2) return 0;
|
|
7
|
-
const t = e[0].clientX - e[1].clientX, n = e[0].clientY - e[1].clientY;
|
|
8
|
-
return Math.sqrt(t * t + n * n);
|
|
9
|
-
}
|
|
10
|
-
function r(e) {
|
|
11
|
-
var i;
|
|
12
|
-
const t = m.value;
|
|
13
|
-
if (!t) return { x: 0, y: 0 };
|
|
14
|
-
const n = t.createSVGPoint();
|
|
15
|
-
n.x = e.clientX, n.y = e.clientY;
|
|
16
|
-
const o = (i = t.getScreenCTM()) == null ? void 0 : i.inverse();
|
|
17
|
-
return o ? n.matrixTransform(o) : { x: 0, y: 0 };
|
|
18
|
-
}
|
|
19
|
-
function g(e) {
|
|
20
|
-
p.value = !0;
|
|
21
|
-
const t = r(e.touches ? e.touches[0] : e);
|
|
22
|
-
h.value = { x: t.x, y: t.y }, u = { x: 0, y: 0 };
|
|
23
|
-
}
|
|
24
|
-
function w(e) {
|
|
25
|
-
if (!p.value) return;
|
|
26
|
-
const t = r(e.touches ? e.touches[0] : e);
|
|
27
|
-
let n = t.x - h.value.x, o = t.y - h.value.y;
|
|
28
|
-
Math.abs(n) < 0.3 && Math.abs(o) < 0.3 || (u.x = n * 0.8 + u.x * 0.2, u.y = o * 0.8 + u.y * 0.2, h.value = t, L || (L = requestAnimationFrame(q)));
|
|
29
|
-
}
|
|
30
|
-
function q() {
|
|
31
|
-
a.value.x -= u.x, a.value.y -= u.y, L = null;
|
|
32
|
-
}
|
|
33
|
-
function v() {
|
|
34
|
-
p.value = !1;
|
|
35
|
-
}
|
|
36
|
-
function X(e) {
|
|
37
|
-
e.preventDefault();
|
|
38
|
-
const t = e.deltaY > 0 ? 0.9 : 1.1;
|
|
39
|
-
P(t, r(e));
|
|
40
|
-
}
|
|
41
|
-
function M(e) {
|
|
42
|
-
e.preventDefault();
|
|
43
|
-
const t = r(e), n = 1.02 * (1 + Z / 100);
|
|
44
|
-
B(n, t);
|
|
45
|
-
}
|
|
46
|
-
function B(e, t) {
|
|
47
|
-
f && cancelAnimationFrame(f);
|
|
48
|
-
let n = l.value, o = n * e, i = 0;
|
|
49
|
-
const c = () => {
|
|
50
|
-
i += 0.02;
|
|
51
|
-
let d = n + (o - n) * C(i);
|
|
52
|
-
if (i >= 1) {
|
|
53
|
-
l.value = o, f = null;
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
P(d / n, t), f = requestAnimationFrame(c);
|
|
57
|
-
};
|
|
58
|
-
c();
|
|
59
|
-
}
|
|
60
|
-
const C = (e) => e < 0.5 ? 2 * e * e : -1 + (4 - 2 * e) * e;
|
|
61
|
-
function P(e, t) {
|
|
62
|
-
const n = l.value * e, o = n / l.value, i = a.value.width / o, c = a.value.height / o, d = (t.x - a.value.x) * (1 - 1 / o), F = (t.y - a.value.y) * (1 - 1 / o);
|
|
63
|
-
a.value.x += d, a.value.y += F, a.value.width = i, a.value.height = c, l.value = n;
|
|
64
|
-
}
|
|
65
|
-
function T(e) {
|
|
66
|
-
e.touches.length === 2 ? (E.value = !0, y.value = D(e.touches), Y.value = { ...a.value }) : (e.preventDefault(), g(e));
|
|
67
|
-
}
|
|
68
|
-
function b(e) {
|
|
69
|
-
if (E.value && e.touches.length === 2) {
|
|
70
|
-
e.preventDefault();
|
|
71
|
-
const t = D(e.touches);
|
|
72
|
-
if (y.value) {
|
|
73
|
-
const n = t / y.value, i = m.value.getBoundingClientRect(), c = (e.touches[0].clientX + e.touches[1].clientX) / 2 - i.left, d = (e.touches[0].clientY + e.touches[1].clientY) / 2 - i.top, F = r({ clientX: c + i.left, clientY: d + i.top });
|
|
74
|
-
a.value = { ...Y.value }, P(n, F);
|
|
75
|
-
}
|
|
76
|
-
} else
|
|
77
|
-
e.preventDefault(), w(e);
|
|
78
|
-
}
|
|
79
|
-
function x(e) {
|
|
80
|
-
e.touches.length < 2 && (E.value = !1), v();
|
|
81
|
-
}
|
|
82
|
-
V(z), G(S);
|
|
83
|
-
function z() {
|
|
84
|
-
const e = m.value;
|
|
85
|
-
e && (e.addEventListener("mousedown", g), e.addEventListener("mousemove", w), e.addEventListener("mouseup", v), e.addEventListener("mouseleave", v), e.addEventListener("wheel", X, { passive: !1 }), e.addEventListener("dblclick", M), e.addEventListener("touchstart", T, { passive: !1 }), e.addEventListener("touchmove", b, { passive: !1 }), e.addEventListener("touchend", x), e.addEventListener("touchcancel", x));
|
|
86
|
-
}
|
|
87
|
-
function S() {
|
|
88
|
-
const e = m.value;
|
|
89
|
-
e && (e.removeEventListener("mousedown", g), e.removeEventListener("mousemove", w), e.removeEventListener("mouseup", v), e.removeEventListener("mouseleave", v), e.removeEventListener("wheel", X), e.removeEventListener("dblclick", M), e.removeEventListener("touchstart", T), e.removeEventListener("touchmove", b), e.removeEventListener("touchend", x), e.removeEventListener("touchcancel", x));
|
|
90
|
-
}
|
|
91
|
-
return H(() => (k.value ? z() : S(), () => {
|
|
92
|
-
S();
|
|
93
|
-
})), { viewBox: a };
|
|
94
|
-
}
|
|
95
|
-
export {
|
|
96
|
-
O as u
|
|
97
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("./index-BVYLM95-.cjs"),Ce=require("./Title-cjYd6IYr.cjs"),ne=require("./usePrinter-CkJDEgjQ.cjs"),Be=require("./DataTable-DtXoZKgy.cjs"),we=require("./Tooltip-YBqthQ_8.cjs"),$e=require("./vue-ui-skeleton-CIPY7Xfo.cjs"),Pe=require("./vue-ui-accordion-Btv7fZHc.cjs"),ae=require("./useNestedProp-B3UWJnDQ.cjs"),Ne=require("./PackageVersion-yiiAD1cf.cjs"),Te=require("./PenAndPaper-Btnlb4RH.cjs"),Fe=require("./useUserOptionState-BgepsfED.cjs"),Se=require("./useChartAccessibility-Cm7nkzTG.cjs"),xe=require("./usePanZoom-BI9ALAYy.cjs"),Ee=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Re=["cx","cy","r","fill","stroke","stroke-width","onClick","onMouseover"],Ve=["x","y","height","width","onClick","onMouseover"],Oe={__name:"RecursiveCircles",props:{color:{type:String,default:"#000000"},dataset:{type:Array,default:()=>[]},hoveredUid:{type:String,default:null},linkColor:{type:String,default:"#CCCCCC"},stroke:{type:String,default:"#FFFFFF"},strokeHovered:{type:String,default:"#000000"}},emits:["click","hover"],setup(a,{emit:$}){const P=a,y=$;function d(r){y("click",r)}function g(r){y("hover",r)}return e.toRef(P,"dataset").value.forEach(r=>{r.nodes&&r.nodes.length>0&&r.nodes.forEach(f=>{f.ancestor=r})}),(r,f)=>{const V=e.resolveComponent("RecursiveCircles",!0);return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.dataset,i=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.polygonPath&&i.polygonPath.coordinates?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.polygonPath.coordinates,(k,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("circle",{cx:k.x,cy:k.y,r:i.circleRadius,fill:`url(#gradient_${i.color})`,stroke:a.hoveredUid&&a.hoveredUid===i.uid?a.strokeHovered:a.stroke,"stroke-width":a.hoveredUid&&a.hoveredUid===i.uid?i.circleRadius/6:i.circleRadius/12,style:{cursor:"pointer"},onClick:w=>d(i),onMouseover:w=>g(i),onMouseleave:f[0]||(f[0]=w=>g(null))},null,40,Re),r.$slots.node?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:k.x-i.circleRadius,y:k.y-i.circleRadius,height:i.circleRadius*2,width:i.circleRadius*2,style:{overflow:"visible"},onClick:e.withModifiers(w=>d(i),["stop"]),onMouseover:w=>g(i),onMouseleave:f[1]||(f[1]=w=>g(null))},[e.renderSlot(r.$slots,"node",e.mergeProps({ref_for:!0},{node:i}))],40,Ve)):e.createCommentVNode("",!0)],64))),256)),i.nodes&&i.nodes.length>0?(e.openBlock(),e.createBlock(V,{key:0,dataset:i.nodes,color:a.color,stroke:a.stroke,strokeHovered:a.strokeHovered,hoveredUid:a.hoveredUid,onClick:d,onHover:g},{node:e.withCtx(({node:k})=>[e.renderSlot(r.$slots,"node",e.mergeProps({ref_for:!0},{node:k}))]),_:2},1032,["dataset","color","stroke","strokeHovered","hoveredUid"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),256)}}},Ae=["x1","y1","x2","y2","stroke","stroke-width"],Le=["x1","y1","x2","y2","stroke","stroke-width"],Ue={__name:"RecursiveLinks",props:{dataset:{type:Array,default:()=>[]},color:{type:String,default:"#DDDDDD"},backgroundColor:{type:String,default:"#FFFFFF"}},setup(a){const $=a;return e.toRef($,"dataset").value.forEach(y=>{y.nodes&&y.nodes.length>0&&y.nodes.forEach(d=>{d.ancestor=y})}),(y,d)=>{const g=e.resolveComponent("RecursiveLinks",!0);return e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.dataset,s=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.polygonPath&&s.polygonPath.coordinates?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.polygonPath.coordinates,(r,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.ancestor&&s.ancestor.polygonPath?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("line",{x1:r.x,y1:r.y,x2:s.ancestor.polygonPath.coordinates[0].x,y2:s.ancestor.polygonPath.coordinates[0].y,stroke:a.backgroundColor,"stroke-width":s.circleRadius/1.5},null,8,Ae),e.createElementVNode("line",{x1:r.x,y1:r.y,x2:s.ancestor.polygonPath.coordinates[0].x,y2:s.ancestor.polygonPath.coordinates[0].y,stroke:a.color,"stroke-width":s.circleRadius/2},null,8,Le)],64)):e.createCommentVNode("",!0)],64))),256)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.dataset,s=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.polygonPath&&s.polygonPath.coordinates?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.nodes&&s.nodes.length>0?(e.openBlock(),e.createBlock(g,{key:0,dataset:s.nodes,color:a.color,backgroundColor:a.backgroundColor},null,8,["dataset","color","backgroundColor"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),256))],64)}}},De=["x","y","fill","font-size"],Ie={__name:"RecursiveLabels",props:{color:{type:String,default:"#000000"},dataset:{type:Array,default:()=>[]},hoveredUid:{type:String,default:null}},emits:["zoom","hover"],setup(a,{emit:$}){const P=a;return e.toRef(P,"dataset").value.forEach(d=>{d.nodes&&d.nodes.length>0&&d.nodes.forEach(g=>{g.ancestor=d})}),(d,g)=>{const s=e.resolveComponent("RecursiveLabels",!0);return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.dataset,r=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[r.polygonPath&&r.polygonPath.coordinates?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.polygonPath.coordinates,f=>(e.openBlock(),e.createElementBlock("text",{x:f.x,y:f.y+r.circleRadius*2,fill:a.color,"font-size":r.circleRadius,"text-anchor":"middle",style:{opacity:"0.8","pointer-events":"none"}},e.toDisplayString(r.name),9,De))),256)),r.nodes&&r.nodes.length>0?(e.openBlock(),e.createBlock(s,{key:0,dataset:r.nodes,color:a.color,hoveredUid:a.hoveredUid},null,8,["dataset","color","hoveredUid"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),256)}}},ze=["id"],_e={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},He={key:2,style:"width:100%;background:transparent;"},Me=["xmlns","viewBox"],qe=["width","height"],Ge=["id"],je=["stop-color"],We=["stop-color"],Xe={key:5,class:"vue-data-ui-watermark"},Ye={key:7,ref:"source",dir:"auto"},Ze=["innerHTML"],Je={__name:"vue-ui-molecule",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectNode"],setup(a,{expose:$,emit:P}){const{vue_ui_molecule:y}=v.useConfig(),d=a,g=P,s=e.computed(()=>!!d.dataset&&d.dataset.length);e.onMounted(()=>{r()});function r(){v.objectIsEmpty(d.dataset)&&v.error({componentName:"VueUiMolecule",type:"dataset"})}const f=e.ref(v.createUid()),V=e.ref(null),i=e.ref(!1),k=e.ref(""),E=e.ref(null),w=e.ref(0),z=e.ref(0),_=e.ref(0),t=e.computed({get:()=>q(),set:o=>o}),{userOptionsVisible:O,setUserOptionsVisibility:H,keepUserOptionState:M}=Fe.useUserOptionState({config:t.value}),{svgRef:A}=Se.useChartAccessibility({config:t.value.style.chart.title});function q(){const o=ae.useNestedProp({userConfig:d.config,defaultConfig:y});return o.theme?{...ae.useNestedProp({userConfig:v.themes.vue_ui_molecule[o.theme]||d.config,defaultConfig:o}),customPalette:v.themePalettes[o.theme]||v.palette}:o}e.watch(()=>d.config,o=>{t.value=q(),O.value=!t.value.userOptions.showOnChartHover,r(),z.value+=1,_.value+=1,m.value.showTable=t.value.table.show,m.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:G,isImaging:j,generatePdf:W,generateImage:X}=ne.usePrinter({elementId:`cluster_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-molecule",options:t.value.userOptions.print}),se=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),ie=e.computed(()=>v.convertCustomPalette(t.value.customPalette)),m=e.ref({showTable:t.value.table.show,showDataLabels:!0,showTooltip:t.value.style.chart.tooltip.show});function Y(o,n=0){return Array.isArray(o)&&o.length>0&&o[0].nodes?Y(o[0].nodes,n+1):n}function ue(){const o=Y(d.dataset);let n=100,l=n;for(let c=0;c<o;c+=1)n/=1,l+=n;return{height:l,width:l}}const p=e.ref(ue());e.ref(`0 0 ${p.value.width} ${p.value.height}`);function Z(o,n={x:-p.value.width/2.43,y:p.value.height/2},l=p.value.width/1.1,c=24,u=0,h=0,b="#BBBBBB",D=0){if(!Array.isArray(o)||o.length===0)return o;const be=v.createPolygonPath({plot:n,radius:l,sides:o.length,rotation:u});return o.forEach((C,oe)=>{const le=be.coordinates[oe],re=C.color?(()=>{let I=v.convertColorToHex(C.color);return I.startsWith("#")?I:`#${I}`})():null;let T;re?T=re:D===0?T=b:D===1?(T=ie.value[h]||v.palette[h]||b,h+=1):T=b,C.polygonPath={coordinates:[le]},C.circleRadius=c,C.color=T,C.uid=v.createUid(),Array.isArray(C.nodes)&&C.nodes.length&&(C.nodes=Z(C.nodes,le,l/2.9,c/2.2,u+Math.PI*oe/C.nodes.length,h,T,D+1))}),o}function ce(o){const n=new Set;function l(u){u.forEach(h=>{if(!h.color)return;let b=h.color;/^#?[0-9A-F]{6}$/i.test(b)||(b=v.convertColorToHex(b)),b.startsWith("#")||(b=`#${b}`),n.add(b),Array.isArray(h.nodes)&&h.nodes.length&&l(h.nodes)})}l(o);const c={};return Array.from(n).forEach(u=>{const h=u.slice(1);c[u]=`gradient_${h}`}),c}const de=e.computed(()=>ce(B.value)),B=e.computed(()=>{const o=v.deepClone(d.dataset);return Z(o)}),L=e.ref(null);function ve(o){L.value={datapoint:o,seriesIndex:-1,series:B.value,config:t.value};const n=t.value.style.chart.tooltip.customFormat;if(v.isFunction(n)&&v.functionReturnsString(()=>n({seriesIndex:-1,datapoint:o,series:B.value,config:t.value})))k.value=n({seriesIndex:-1,datapoint:o,series:B.value,config:t.value});else{let l="";l+=`<div style="display:flex;align-items:center;gap:3px"><div style="color:${o.color}">⬤</div><div>${o.name}</div></div>`,o.details&&(l+=`<div style="width:100%;border-top:1px solid ${t.value.style.chart.tooltip.borderColor};margin-top: 2px">${o.details}</div>`),k.value=`<div style="font-family:inherit">${l}</div>`}}const J=e.ref(null),F=e.ref(null);function he(o){J.value=o,o?(i.value=!0,ve(o),F.value=o.uid):(i.value=!1,k.value="",F.value=null)}function fe(o){const n=[];function l(c){c.forEach(u=>{const h={name:u.name,details:u.details||"-",ancestor:u.ancestor&&u.ancestor.name||"-",color:u.color||""};n.push(h),u.nodes&&u.nodes.length>0&&l(u.nodes,u.name)})}return l(o),n}const pe=e.computed(()=>fe(B.value)),N=e.computed(()=>{const o=[t.value.table.translations.nodeName,t.value.table.translations.details,t.value.table.translations.ancestor],n=pe.value.map((u,h)=>[{color:u.color,name:u.name},u.details,u.ancestor||""]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},c=[t.value.table.translations.nodeName,t.value.table.translations.details,t.value.table.translations.ancestor];return{head:o,body:n,config:l,colNames:c}});function K(){e.nextTick(()=>{const o=N.value.body.map((c,u)=>[[c[0].name],[c[1]],[c[2]]]),n=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[...N.value.head]]].concat(o),l=v.createCsvContent(n);v.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-molecule"})})}function me(){return B.value}const S=e.ref(!1);function ge(o){S.value=o,w.value+=1}function Q(){m.value.showTable=!m.value.showTable}function ee(){m.value.showDataLabels=!m.value.showDataLabels}function te(){m.value.showTooltip=!m.value.showTooltip}const x=e.ref(!1);function U(){x.value=!x.value}const ye=e.computed(()=>!x.value),{viewBox:R}=xe.usePanZoom(A,{x:0,y:0,width:p.value.width<=0?10:p.value.width,height:p.value.height<=0?10:p.value.height},t.value.style.chart.zoom.speed,ye);function ke(o){g("selectNode",o)}return $({getData:me,generatePdf:W,generateCsv:K,generateImage:X,toggleTable:Q,toggleLabels:ee,toggleTooltip:te,toggleAnnotator:U}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"moleculeChart",ref:E,class:e.normalizeClass(`vue-ui-molecule ${S.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`cluster_${f.value}`,onMouseleave:n[1]||(n[1]=l=>{J.value=null,F.value=null,e.unref(H)(!1)}),onMouseenter:n[2]||(n[2]=()=>e.unref(H)(!0))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Te.PenAndPaper,{key:0,svgRef:e.unref(A),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:x.value,onClose:U},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),se.value?(e.openBlock(),e.createElementBlock("div",_e,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",He,[(e.openBlock(),e.createBlock(Ce._sfc_main,{key:`title_${z.value}`,config:{title:{cy:"molecule-div-title",...t.value.style.chart.title},subtitle:{cy:"molecule-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&s.value&&(e.unref(M)||e.unref(O))?(e.openBlock(),e.createBlock(ne.UserOptions,{ref_key:"details",ref:V,key:`user_options_${w.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(G),isImaging:e.unref(j),uid:f.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:m.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:E.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:x.value,onToggleFullscreen:ge,onGeneratePdf:e.unref(W),onGenerateCsv:K,onGenerateImage:e.unref(X),onToggleTable:Q,onToggleLabels:ee,onToggleTooltip:te,onToggleAnnotator:U,style:e.normalizeStyle({visibility:e.unref(M)?e.unref(O)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:c})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:c})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionLabels",{},void 0,!0)]),key:"6"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:c})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:c})),void 0,!0)]),key:"7"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:c})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:c})),void 0,!0)]),key:"8"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:A,xmlns:e.unref(v.XMLNS),viewBox:`${e.unref(R).x} ${e.unref(R).y} ${e.unref(R).width} ${e.unref(R).height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":S.value,"vue-data-ui-fulscreen--off":!S.value}),style:e.normalizeStyle(`overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ne._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:p.value.width<=0?10:p.value.width,height:p.value.height<=0?10:p.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,qe)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(de.value),l=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_${l}`,cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(v.lightenHexColor)(l,.5)},null,8,je),e.createElementVNode("stop",{offset:"100%","stop-color":l},null,8,We)],8,Ge))),256))]),e.createVNode(Ue,{dataset:B.value,color:t.value.style.chart.links.stroke,backgroundColor:t.value.style.chart.backgroundColor},null,8,["dataset","color","backgroundColor"]),e.createVNode(Oe,{dataset:B.value,hoveredUid:F.value,stroke:t.value.style.chart.nodes.stroke,strokeHovered:t.value.style.chart.nodes.strokeHovered,onClick:ke,onHover:he},{node:e.withCtx(({node:l})=>[e.renderSlot(o.$slots,"node",e.normalizeProps(e.guardReactiveProps({node:l})),void 0,!0)]),_:3},8,["dataset","hoveredUid","stroke","strokeHovered"]),m.value.showDataLabels?(e.openBlock(),e.createBlock(Ie,{key:1,dataset:B.value,color:t.value.style.chart.color,hoveredUid:F.value},null,8,["dataset","color","hoveredUid"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:p.value},void 0,!0)],14,Me)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Xe,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(G)||e.unref(j)})),void 0,!0)])):e.createCommentVNode("",!0),s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($e.default,{key:6,config:{type:"molecule",style:{backgroundColor:t.value.style.chart.backgroundColor,molecule:{color:"#CCCCCC"}}}},null,8,["config"])),o.$slots.source?(e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(we._sfc_main,{show:m.value.showTooltip&&i.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:E.value,content:k.value,isFullscreen:S.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),s.value?(e.openBlock(),e.createBlock(Pe.default,{key:8,hideDetails:"",config:{open:m.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Be.DataTable,{key:`table_${_.value}`,colNames:N.value.colNames,head:N.value.head,body:N.value.body,config:N.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:n[0]||(n[0]=l=>m.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Ze)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,ze))}},Ke=Ee._export_sfc(Je,[["__scopeId","data-v-d296dc0b"]]);exports.default=Ke;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./index-BVYLM95-.cjs"),Ue=require("./Title-cjYd6IYr.cjs"),xe=require("./usePrinter-CkJDEgjQ.cjs"),J=require("./useResponsive-DQmBAoBf.cjs"),De=require("./vue-ui-accordion-Btv7fZHc.cjs"),Ge=require("./DataTable-DtXoZKgy.cjs"),Se=require("./useNestedProp-B3UWJnDQ.cjs"),He=require("./PackageVersion-yiiAD1cf.cjs"),Le=require("./Tooltip-YBqthQ_8.cjs"),je=require("./PenAndPaper-Btnlb4RH.cjs"),Xe=require("./useUserOptionState-BgepsfED.cjs"),Ye=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ze=require("./usePanZoom-BI9ALAYy.cjs"),Je=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ke=["id"],Qe=["xmlns","viewBox"],et=["width","height"],tt=["transform"],ot=["fill","font-weight","x","y","font-size","transform","onMouseover"],at={key:4,class:"vue-data-ui-watermark"},lt=["innerHTML"],nt={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup($e,{expose:Te}){const{vue_ui_word_cloud:Pe}=f.useConfig(),S=$e,A=e.computed({get(){return!!S.dataset&&S.dataset.length},set(o){return o}}),W=e.ref(f.createUid()),K=e.ref(0),M=e.ref(null),Q=e.ref(null),ee=e.ref(null),te=e.ref(0),oe=e.ref(0),U=e.ref(!1),t=e.computed({get:()=>re(),set:o=>o}),T=e.ref(ae());function ae(){return typeof S.dataset=="string"?f.createWordCloudDatasetFromPlainText(S.dataset):S.dataset.map((o,n)=>({...o,value:f.checkNaN(o.value)}))}e.watch(()=>S.dataset,()=>{T.value=ae(),H()});const{userOptionsVisible:D,setUserOptionsVisibility:le,keepUserOptionState:ne}=Xe.useUserOptionState({config:t.value}),{svgRef:G}=Ye.useChartAccessibility({config:t.value.style.chart.title});function re(){const o=Se.useNestedProp({userConfig:S.config,defaultConfig:Pe});return o.theme?{...Se.useNestedProp({userConfig:f.themes.vue_ui_word_cloud[o.theme]||S.config,defaultConfig:o}),customPalette:f.themePalettes[o.theme]||f.palette}:o}e.watch(()=>S.config,o=>{t.value=re(),D.value=!t.value.userOptions.showOnChartHover,se(),te.value+=1,oe.value+=1,refreshSlicer(),k.value.showTable=t.value.table.show,k.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const r=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),Me=J.debounce(()=>{H()},10),ze=J.throttle(()=>{const{width:o,height:n}=J.useResponsive({chart:M.value,title:t.value.style.chart.title.text?Q.value:null,source:ee.value});requestAnimationFrame(()=>{r.value.width=o,r.value.height=n,e.nextTick(Me)})}),I=e.ref(null);e.onMounted(se);function se(){f.objectIsEmpty(S.dataset)?f.error({componentName:"VueUiWordCloud",type:"dataset"}):T.value.forEach((o,n)=>{f.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(a=>{A.value=!1,f.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:a,index:n})})}),t.value.responsive&&(I.value=new ResizeObserver(ze),I.value.observe(M.value.parentNode))}e.onBeforeUnmount(()=>{I.value&&I.value.disconnect()});const{isPrinting:ue,isImaging:ie,generatePdf:ce,generateImage:de}=xe.usePrinter({elementId:`wordCloud_${W.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud",options:t.value.userOptions.print}),k=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function Fe(o,n,a="Arial"){const l=document.createElement("canvas").getContext("2d");return l.font=`${n}px ${t.value.style.chart.words.bold?"bold":"normal"} ${a}`,{width:l.measureText(o).width+t.value.style.chart.words.proximity,height:n}}function Ne(o,n,a){const s=Math.round(n),l=Math.round(a),C=1,x=r.value.minFontSize,B=r.value.maxFontSize,pe=t.value.style.chart.words.proximity||0,me=o.map(p=>p.value),Y=Math.min(...me),ge=Math.max(...me),q=new Uint8Array(s*l),O=document.createElement("canvas"),$=O.getContext("2d",{willReadFrequently:!0});O.width=s,O.height=l;function ye(p,y,b){$.save(),$.font=`${r.value.style&&r.value.style.bold?"bold ":""}${y}px Arial`;const m=$.measureText(p.name),d=Math.ceil(m.width)+2+(b?b*2:0),u=Math.ceil(y)+2+(b?b*2:0);O.width=d,O.height=u,$.clearRect(0,0,d,u),$.font=`${r.value.style&&r.value.style.bold?"bold ":""}${y}px Arial`,$.textAlign="center",$.textBaseline="middle",$.fillStyle="black",$.fillText(p.name,d/2,u/2);const c=$.getImageData(0,0,d,u).data,v=[];for(let g=0;g<u;g+=1)for(let h=0;h<d;h+=1)c[(g*d+h)*4+3]>1&&v.push([h,g]);return $.restore(),{w:d,h:u,wordMask:v}}function be(p,y,b,m,d,u){for(let i=0;i<u.length;i+=1){const c=m+u[i][0],v=d+u[i][1];if(c<0||v<0||c>=y||v>=b||p[v*y+c])return!1}return!0}function we(p,y,b,m,d,u){for(let i=0;i<u.length;i+=1){const c=m+u[i][0],v=d+u[i][1];c>=0&&v>=0&&c<y&&v<b&&(p[v*y+c]=1)}}const Ve=6,_e=2,Re=2,Ee=1,ke=Math.floor(s/2),Ce=Math.floor(l/2),qe=[...o].sort((p,y)=>y.value-p.value),Z=[];function We(p,y,b,m=1){const d=new Set(p.map(([i,c])=>`${i},${c}`)),u=new Set(d);for(let[i,c]of p)for(let v=-m;v<=m;v+=1)for(let g=-m;g<=m;g+=1){if(v===0&&g===0)continue;const h=i+v,w=c+g;h>=0&&h<y&&w>=0&&w<b&&u.add(`${h},${w}`)}return Array.from(u).map(i=>i.split(",").map(Number))}for(const p of qe){let y=x;ge!==Y&&(y=(p.value-Y)/(ge-Y)*(B-x)+x),y=Math.max(x,Math.min(B,y));let b=!1,m=y;for(;!b&&m>=C;){let{w:d,h:u,wordMask:i}=ye(p,m,pe);i=We(i,d,u,2);let c=0,v=0;for(;c<Math.max(s,l)&&!b&&v<1e4;){for(let g=0;g<360;g+=Ve){v+=1;const h=Math.round(ke+c*Math.cos(g*Math.PI/180)-d/2),w=Math.round(Ce+c*Math.sin(g*Math.PI/180)-u/2);if(!(h<0||w<0||h+d>s||w+u>l)&&be(q,s,l,h,w,i)){Z.push({...p,x:h-s/2,y:w-l/2,fontSize:m,width:d,height:u,angle:0}),we(q,s,l,h,w,i),b=!0;break}}c+=_e}b||(m-=1)}if(!b&&m<C){m=C;const{w:d,h:u,wordMask:i}=ye(p,m,pe);let c=0,v=0;for(;c<Math.max(s,l)&&!b&&v<25e3;){for(let g=0;g<360;g+=Re){v+=1;const h=Math.round(ke+c*Math.cos(g*Math.PI/180)-d/2),w=Math.round(Ce+c*Math.sin(g*Math.PI/180)-u/2);if(!(h<0||w<0||h+d>s||w+u>l)&&be(q,s,l,h,w,i)){Z.push({...p,x:h-s/2,y:w-l/2,fontSize:m,width:d,height:u,angle:0}),we(q,s,l,h,w,i),b=!0;break}}c+=Ee}}}return Z}const z=e.ref([]);e.watch(()=>S.dataset,H,{immediate:!0}),e.computed(()=>Math.round(Math.min(...T.value.map(o=>o.value)))),e.computed(()=>Math.round(Math.max(...T.value.map(o=>o.value))));function H(){const o=[...T.value].map(l=>l.value),n=Math.max(...o),a=Math.min(...o),s=[...T.value].map((l,C)=>{let x=(l.value-a)/(n-a)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize;x=isNaN(x)?r.value.minFontSize:x;const B=Fe(l.name,x);return{...l,id:f.createUid(),fontSize:x,width:B.width,height:B.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[C]||t.value.customPalette[C%t.value.customPalette.length]||f.palette[C]||f.palette[C%f.palette.length]:t.value.style.chart.words.color}});z.value=Ne(s,r.value.width,r.value.height).sort((l,C)=>C.fontSize-l.fontSize)}const V=e.computed(()=>{const o=z.value.map(a=>({name:a.name,color:a.color})),n=z.value.map(a=>a.value);return{head:o,body:n}});function ve(){e.nextTick(()=>{const o=V.value.head.map((s,l)=>[[s.name],[V.value.body[l]]]),n=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),a=f.createCsvContent(n);f.downloadCsv({csvContent:a,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const _=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],n=V.value.head.map((l,C)=>{const x=f.dataLabel({p:t.value.table.td.prefix,v:V.value.body[C],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:l.color,name:l.name},x]}),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:n,config:a}}),R=e.ref(!1);function Be(o){R.value=o,K.value+=1}function Oe(){return z.value}function he(){k.value.showTable=!k.value.showTable}function fe(){k.value.showTooltip=!k.value.showTooltip}const F=e.ref(!1);function L(){F.value=!F.value}const Ae=e.computed(()=>!F.value&&t.value.style.chart.zoom.show),{viewBox:E}=Ze.usePanZoom(G,{x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height},1,Ae);Te({getData:Oe,generateCsv:ve,generatePdf:ce,generateImage:de,toggleTable:he,toggleTooltip:fe,toggleAnnotator:L});const P=e.ref(null),N=e.ref(!1),j=e.ref(""),X=e.ref(null);function Ie(o){if(!k.value.showTooltip)return;P.value=o.id,X.value={datapoint:o,config:t.value};const n=t.value.style.chart.tooltip.customFormat;if(N.value=!1,f.isFunction(n))try{const a=n({datapoint:o,config:t.value});typeof a=="string"&&(j.value=a,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.value){let a=`<svg viewBox="0 0 10 10" height="${t.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${o.color}"/></svg><span>${o.name}:</span><b>${(o.value||0).toFixed(t.value.style.chart.tooltip.roundingValue)}</b>`;j.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${a}</div>`}U.value=!0}return(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:M,id:`wordCloud_${W.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:n[2]||(n[2]=()=>e.unref(le)(!0)),onMouseleave:n[3]||(n[3]=()=>e.unref(le)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(je.PenAndPaper,{key:0,svgRef:e.unref(G),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:F.value,onClose:L},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:Q,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(Ue._sfc_main,{key:`title_${te.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&A.value&&(e.unref(ne)||e.unref(D))?(e.openBlock(),e.createBlock(xe.UserOptions,{ref:"details",key:`user_option_${K.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ue),isImaging:e.unref(ie),uid:W.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:R.value,titles:{...t.value.userOptions.buttonTitles},chartElement:M.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:k.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:F.value,onToggleFullscreen:Be,onGeneratePdf:e.unref(ce),onGenerateCsv:ve,onGenerateImage:e.unref(de),onToggleTable:he,onToggleTooltip:fe,onToggleAnnotator:L,style:e.normalizeStyle({visibility:e.unref(ne)?e.unref(D)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:a,color:s})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:a,color:s})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:s})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:s})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:s})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:s})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:G,class:e.normalizeClass({"vue-data-ui-fullscreen--on":R.value,"vue-data-ui-fulscreen--off":!R.value}),xmlns:e.unref(f.XMLNS),viewBox:`${e.unref(E).x} ${e.unref(E).y} ${e.unref(E).width} ${e.unref(E).height}`,style:"overflow:hidden;background:transparent;"},[e.createVNode(He._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,et)):e.createCommentVNode("",!0),e.createElementVNode("g",{transform:`translate(${(r.value.width<=0?10:r.value.width)/2}, ${(r.value.height<=0?10:r.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,(a,s)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:a.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:s,x:a.x,y:a.y,"font-size":a.fontSize,transform:`translate(${a.width/2}, ${a.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":P.value&&P.value===a.id&&k.value.showTooltip,"word-not-selected":P.value&&P.value!==a.id&&k.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:l=>Ie(a),onMouseleave:n[0]||(n[0]=l=>{P.value=null,U.value=!1}),style:e.normalizeStyle(`animation-delay:${s*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(a.name),47,ot))]))),256))],8,tt),e.renderSlot(o.$slots,"svg",{svg:{height:r.value.height,width:r.value.width}},void 0,!0)],10,Qe)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",at,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ue)||e.unref(ie)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Le._sfc_main,{show:k.value.showTooltip&&U.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:M.value,content:j.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...X.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...X.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:ee,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createBlock(De.default,{key:6,hideDetails:"",config:{open:k.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ge.DataTable,{key:`table_${oe.value}`,colNames:_.value.colNames,head:_.value.head,body:_.value.body,config:_.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:n[1]||(n[1]=a=>k.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,lt)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a.name||a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,Ke))}},rt=Je._export_sfc(nt,[["__scopeId","data-v-a7ce3b3e"]]);exports.default=rt;
|