vue-data-ui 2.6.49 → 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-shhEXYsq.cjs → Arrow-BgUU76S-.cjs} +1 -1
- package/dist/{Arrow-Dv70pgNR.js → Arrow-zUP7YWwK.js} +1 -1
- package/dist/{BaseIcon-D6QkKJpU.cjs → BaseIcon-C86xshge.cjs} +1 -1
- package/dist/{BaseIcon-ZZc7VY8d.js → BaseIcon-CTAy5_xi.js} +1 -1
- package/dist/{ColorPicker-CUJpXuSS.js → ColorPicker-Bytmrdr3.js} +3 -3
- package/dist/{ColorPicker-CGbS8gKN.cjs → ColorPicker-D0HD4Quw.cjs} +1 -1
- package/dist/{DataTable-CmnlvDKM.js → DataTable-BciZ6nvV.js} +2 -2
- package/dist/{DataTable-CRuMrwb8.cjs → DataTable-Bm_s0nuy.cjs} +1 -1
- package/dist/{Legend-B3rCxiju.js → Legend-Cz7Cx76P.js} +2 -2
- package/dist/{Legend-KLm00z8t.cjs → Legend-DgFKLfrI.cjs} +1 -1
- package/dist/{PackageVersion-DavVl5j6.js → PackageVersion-o03zxIgy.js} +1 -1
- package/dist/{PackageVersion-DwKk69DU.cjs → PackageVersion-t17AmNwO.cjs} +1 -1
- package/dist/{PenAndPaper-CGAd_cD9.js → PenAndPaper-CkHrxfug.js} +3 -3
- package/dist/{PenAndPaper-hlX2Djxv.cjs → PenAndPaper-aD8jM7bo.cjs} +1 -1
- package/dist/{Shape-BGYZa31d.cjs → Shape-CGopvwTa.cjs} +1 -1
- package/dist/{Shape-CWFBkvfP.js → Shape-D-YK0lYU.js} +1 -1
- package/dist/{Slicer-BEOWbyKm.js → Slicer-AvtKQlUL.js} +2 -2
- package/dist/{Slicer-CAyYbVK-.cjs → Slicer-B8Egk1-K.cjs} +1 -1
- package/dist/{Title-Iy2d-Bd1.cjs → Title-BJ2lOafm.cjs} +1 -1
- package/dist/{Title-Ch602IT9.js → Title-D-dsYBke.js} +1 -1
- package/dist/{Tooltip-DhV-T1A4.cjs → Tooltip-7LYTKhzY.cjs} +1 -1
- package/dist/{Tooltip-0IaPNa9t.js → Tooltip-DFPLXjvj.js} +1 -1
- package/dist/{index-C4TeRZvT.cjs → index-BprEQiKM.cjs} +1 -1
- package/dist/{index-C7spnOfS.js → index-C3amwS0l.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BS-4R8zR.cjs → useNestedProp-Cf-JPzTa.cjs} +1 -1
- package/dist/{useNestedProp-BXHzK3EV.js → useNestedProp-D9I77VlT.js} +1 -1
- package/dist/usePanZoom-CUkkqW81.js +116 -0
- package/dist/usePanZoom-PXRi2Rwx.cjs +1 -0
- package/dist/{usePrinter-bFMowLOh.cjs → usePrinter-CAGQW2cC.cjs} +1 -1
- package/dist/{usePrinter-BDUIRBP4.js → usePrinter-CUdxA1Bg.js} +1 -1
- package/dist/{vue-data-ui-CAyq9OfR.cjs → vue-data-ui-Banpw0iL.cjs} +1 -1
- package/dist/{vue-data-ui-Be5Tgffi.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-CtOPLOD3.js → vue-ui-3d-bar-Bd6XLFya.js} +9 -9
- package/dist/{vue-ui-3d-bar-M3DFCjSK.cjs → vue-ui-3d-bar-CJfSnDyo.cjs} +1 -1
- package/dist/{vue-ui-accordion-BIbie2vw.cjs → vue-ui-accordion-B-rPe8KM.cjs} +1 -1
- package/dist/{vue-ui-accordion-Bk2aYAD-.js → vue-ui-accordion-BBc1ZMpG.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CR9x-PgJ.cjs → vue-ui-age-pyramid-BNj-4LHe.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-hyVqCFgO.js → vue-ui-age-pyramid-Bn_mzS13.js} +10 -10
- package/dist/{vue-ui-annotator-BXHTI64K.cjs → vue-ui-annotator-Ye4UmfpY.cjs} +1 -1
- package/dist/{vue-ui-annotator-Qn0uc5GZ.js → vue-ui-annotator-vFbCgJEZ.js} +1 -1
- package/dist/{vue-ui-bullet-DM6lx30F.cjs → vue-ui-bullet-B6KpjWl_.cjs} +1 -1
- package/dist/{vue-ui-bullet-CrWBMd4n.js → vue-ui-bullet-DyGZmH-g.js} +8 -8
- package/dist/{vue-ui-candlestick-DUZlc7tm.cjs → vue-ui-candlestick-BoH-d4sf.cjs} +1 -1
- package/dist/{vue-ui-candlestick-B2jTfGz7.js → vue-ui-candlestick-DUfXOizp.js} +11 -11
- package/dist/{vue-ui-carousel-table-3QViQ5Bi.cjs → vue-ui-carousel-table-Cbl6UzEH.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Cy39XJq8.js → vue-ui-carousel-table-DZzht2CZ.js} +4 -4
- package/dist/{vue-ui-chestnut-CAEZuh12.cjs → vue-ui-chestnut-DWPp1zKx.cjs} +1 -1
- package/dist/{vue-ui-chestnut-Dr3sUQIO.js → vue-ui-chestnut-DWQumnLS.js} +8 -8
- package/dist/{vue-ui-circle-pack-DNSLbFV_.cjs → vue-ui-circle-pack-1RcCvaYs.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-C8lFd9HI.js → vue-ui-circle-pack-SLB70Z_8.js} +9 -9
- package/dist/{vue-ui-cursor-B4KSNGDd.cjs → vue-ui-cursor-DMCSD6tW.cjs} +1 -1
- package/dist/{vue-ui-cursor-Bim9FO5p.js → vue-ui-cursor-DqwobFdf.js} +2 -2
- package/dist/{vue-ui-dashboard-q2N-lR5R.js → vue-ui-dashboard-BoVqjFT-.js} +2 -2
- package/dist/{vue-ui-dashboard-BlMkdmJG.cjs → vue-ui-dashboard-Cewv6xvc.cjs} +1 -1
- package/dist/{vue-ui-digits-BxsLTjn3.cjs → vue-ui-digits-CicHxnLg.cjs} +1 -1
- package/dist/{vue-ui-digits-Cs5S9-t4.js → vue-ui-digits-CkqC9SEJ.js} +2 -2
- package/dist/{vue-ui-donut-CsK4bhU9.js → vue-ui-donut-BIJLbkro.js} +12 -12
- package/dist/{vue-ui-donut-CHAu83aL.cjs → vue-ui-donut-D03_Yedr.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DRIjATMj.js → vue-ui-donut-evolution-Bu7kKtpK.js} +11 -11
- package/dist/{vue-ui-donut-evolution-DIgg0r1H.cjs → vue-ui-donut-evolution-LqcL3OxY.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-RqWpXNMb.js → vue-ui-dumbbell-B3sbV0fk.js} +10 -10
- package/dist/{vue-ui-dumbbell-Dnd5xBoE.cjs → vue-ui-dumbbell-Drrm__Nn.cjs} +1 -1
- package/dist/{vue-ui-flow-Wl9BdRET.js → vue-ui-flow-DMK3963a.js} +9 -9
- package/dist/{vue-ui-flow-DLkZ_RPK.cjs → vue-ui-flow-NPMbdbtS.cjs} +1 -1
- package/dist/{vue-ui-funnel-C9kqSvdp.cjs → vue-ui-funnel-BiSRxqzO.cjs} +1 -1
- package/dist/{vue-ui-funnel-BtEiPtWV.js → vue-ui-funnel-C7EwDAdS.js} +9 -9
- package/dist/{vue-ui-galaxy-DuHBx10N.cjs → vue-ui-galaxy-CaDXpBs3.cjs} +1 -1
- package/dist/{vue-ui-galaxy-Dy0szrMW.js → vue-ui-galaxy-Cotibz3o.js} +11 -11
- package/dist/{vue-ui-gauge-BHTXAsP3.cjs → vue-ui-gauge-DK2g4x7s.cjs} +1 -1
- package/dist/{vue-ui-gauge-Bl5tGVHq.js → vue-ui-gauge-DKNwFB05.js} +7 -7
- package/dist/{vue-ui-gizmo-DMyPBBMU.js → vue-ui-gizmo-DO5PUFbp.js} +3 -3
- package/dist/{vue-ui-gizmo-C4BrHDh4.cjs → vue-ui-gizmo-DhSfekXS.cjs} +1 -1
- package/dist/{vue-ui-heatmap-sFIr2K5p.cjs → vue-ui-heatmap-DbWoJVGe.cjs} +1 -1
- package/dist/{vue-ui-heatmap-TlpTNG5t.js → vue-ui-heatmap-DulCLx2a.js} +10 -10
- package/dist/{vue-ui-history-plot-Dy1j0BxQ.js → vue-ui-history-plot-BcLWVk_q.js} +11 -11
- package/dist/{vue-ui-history-plot-DAjdzGlR.cjs → vue-ui-history-plot-H6t6DvQ_.cjs} +1 -1
- package/dist/{vue-ui-kpi-BcmSRMqx.js → vue-ui-kpi-CG43D1rb.js} +3 -3
- package/dist/{vue-ui-kpi-ujEXx77P.cjs → vue-ui-kpi-CdnXw9hF.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CjnStv_v.js → vue-ui-mini-loader-CLjqXzvH.js} +2 -2
- package/dist/{vue-ui-mini-loader-DAPA-14x.cjs → vue-ui-mini-loader-DXU3rfwQ.cjs} +1 -1
- package/dist/{vue-ui-molecule-JFJY9rsO.js → vue-ui-molecule-BYetzB_N.js} +253 -226
- package/dist/vue-ui-molecule-fuZ8vxv7.cjs +1 -0
- package/dist/{vue-ui-mood-radar-BaysMegc.cjs → vue-ui-mood-radar-B4mRD0GQ.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-COoBSKNH.js → vue-ui-mood-radar-BnUc15e9.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DYBuISa1.cjs → vue-ui-nested-donuts-B_29kUHS.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CtFedcCD.js → vue-ui-nested-donuts-Dk7fcRR3.js} +11 -11
- package/dist/{vue-ui-onion-CEUV1mny.js → vue-ui-onion-BbucE7AX.js} +11 -11
- package/dist/{vue-ui-onion-D6ZwBWQg.cjs → vue-ui-onion-CtI9xbLn.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BxNT4su_.cjs → vue-ui-parallel-coordinate-plot-CFWG0onH.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DYTDHl62.js → vue-ui-parallel-coordinate-plot-CLIOyXQc.js} +12 -12
- package/dist/{vue-ui-quadrant-j31KXFQl.cjs → vue-ui-quadrant-BFu1K90E.cjs} +1 -1
- package/dist/{vue-ui-quadrant-Bgw63sh8.js → vue-ui-quadrant-DinfyJBM.js} +12 -12
- package/dist/{vue-ui-quick-chart-DQQj-yff.js → vue-ui-quick-chart-D5JhRHUd.js} +9 -9
- package/dist/{vue-ui-quick-chart-oEQhbqjr.cjs → vue-ui-quick-chart-Dp6hQbfz.cjs} +1 -1
- package/dist/{vue-ui-radar-D8z1eA3O.js → vue-ui-radar-CUFZHgr3.js} +12 -12
- package/dist/{vue-ui-radar-C5pUYB_x.cjs → vue-ui-radar-Ds39hdq4.cjs} +1 -1
- package/dist/{vue-ui-rating-CGh8TQ5M.cjs → vue-ui-rating-BfqOFA-n.cjs} +1 -1
- package/dist/{vue-ui-rating-CEIibBYU.js → vue-ui-rating-D1EUcFL0.js} +2 -2
- package/dist/{vue-ui-relation-circle-Bf6kjYWL.cjs → vue-ui-relation-circle-CiULD7PK.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BrIe8bZU.js → vue-ui-relation-circle-D65EImKT.js} +7 -7
- package/dist/{vue-ui-rings-6l5DQ0_9.js → vue-ui-rings-9zTtxZif.js} +12 -12
- package/dist/{vue-ui-rings-BmSQzToz.cjs → vue-ui-rings-DtMD95_q.cjs} +1 -1
- package/dist/{vue-ui-scatter-g67ClUSv.cjs → vue-ui-scatter-DXzppvmP.cjs} +1 -1
- package/dist/{vue-ui-scatter-0geSLTUp.js → vue-ui-scatter-DsF27c6e.js} +12 -12
- package/dist/{vue-ui-screenshot-r5tJCW0O.cjs → vue-ui-screenshot-C8TpXNBS.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CshpwrmO.js → vue-ui-screenshot-CQHpwksn.js} +1 -1
- package/dist/{vue-ui-skeleton-Bn49rVXa.js → vue-ui-skeleton-CrT5EE2W.js} +3 -3
- package/dist/{vue-ui-skeleton-D7ijXB6x.cjs → vue-ui-skeleton-a_FvGOK6.cjs} +1 -1
- package/dist/{vue-ui-smiley-HofydNoz.cjs → vue-ui-smiley-CpC75CYj.cjs} +1 -1
- package/dist/{vue-ui-smiley-CzAtJD1G.js → vue-ui-smiley-DK8TadZl.js} +2 -2
- package/dist/{vue-ui-spark-trend-B70DhKVg.js → vue-ui-spark-trend-BCN37BvU.js} +5 -5
- package/dist/{vue-ui-spark-trend-CdTdbj6x.cjs → vue-ui-spark-trend-oZCQCarV.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CZ8Nw4fl.js → vue-ui-sparkbar-CE8WVA2T.js} +4 -4
- package/dist/{vue-ui-sparkbar-cJ7Wu051.cjs → vue-ui-sparkbar-CoCEXvSI.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BWNkoMqk.cjs → vue-ui-sparkgauge-DRGJ2R72.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-D-VwonfZ.js → vue-ui-sparkgauge-DoZQ6ZYY.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BK58LMOs.js → vue-ui-sparkhistogram-Bol-aQuY.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-hBwVKdOS.cjs → vue-ui-sparkhistogram-wzpO76Dd.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BD4gkpj_.cjs → vue-ui-sparkline-BdBLfCAO.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DORXFea9.js → vue-ui-sparkline-C9FJaLay.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CNu5TNGE.js → vue-ui-sparkstackbar-CQSP1urd.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-ClcY4WWe.cjs → vue-ui-sparkstackbar-DcGfGfpf.cjs} +1 -1
- package/dist/{vue-ui-stackbar--aCaS5x2.js → vue-ui-stackbar-CDFfxSCS.js} +13 -13
- package/dist/{vue-ui-stackbar-CkMwpXvU.cjs → vue-ui-stackbar-DZEOEvnN.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-CFVbMS6X.js → vue-ui-strip-plot-Mroaxrtl.js} +11 -11
- package/dist/{vue-ui-strip-plot-BiFHgg1S.cjs → vue-ui-strip-plot-cwg3sgfW.cjs} +1 -1
- package/dist/{vue-ui-table-B_3Ilpbe.js → vue-ui-table-DMGZN-3h.js} +1 -1
- package/dist/{vue-ui-table-DR255TsX.cjs → vue-ui-table-JunVPtv-.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-GUBFCD5M.cjs → vue-ui-table-heatmap-B-K-sXUr.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BNxAz0s0.js → vue-ui-table-heatmap-Cvd3LF-p.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DSOduMZf.js → vue-ui-table-sparkline-D6LrWje8.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B4tLXnLP.cjs → vue-ui-table-sparkline-DZcJ1rQX.cjs} +1 -1
- package/dist/{vue-ui-thermometer-D4xuEt1d.cjs → vue-ui-thermometer-61KP0jn1.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DmM-HnTb.js → vue-ui-thermometer-BSMW00bJ.js} +7 -7
- package/dist/{vue-ui-timer-Cv3Nx66b.js → vue-ui-timer-B2iP7RSf.js} +5 -5
- package/dist/{vue-ui-timer-CRvBgkAk.cjs → vue-ui-timer-jeD5NmuN.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-ASWxcVYt.js → vue-ui-tiremarks-C1WyRyfc.js} +7 -7
- package/dist/{vue-ui-tiremarks-BCm4J3AS.cjs → vue-ui-tiremarks-D2kbp6KR.cjs} +1 -1
- package/dist/{vue-ui-treemap-K-I2E3e-.cjs → vue-ui-treemap-BxbeEbWT.cjs} +1 -1
- package/dist/{vue-ui-treemap-DkTT9Fpa.js → vue-ui-treemap-DyJ_Ath1.js} +12 -12
- package/dist/{vue-ui-vertical-bar-CYsYkq04.cjs → vue-ui-vertical-bar-C0cbPo6B.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CKAyFHu9.js → vue-ui-vertical-bar-yzivBWJt.js} +12 -12
- package/dist/{vue-ui-waffle-DA1_yNZ7.js → vue-ui-waffle-BByWdS7G.js} +12 -12
- package/dist/{vue-ui-waffle-WHpYY_yA.cjs → vue-ui-waffle-CF3e6ft5.cjs} +1 -1
- package/dist/{vue-ui-wheel-CWY3hkRC.cjs → vue-ui-wheel-D7R1yr52.cjs} +1 -1
- package/dist/{vue-ui-wheel-vebQiYtM.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-C2OQ78CJ.js → vue-ui-xy-DmwPJ7Bc.js} +14 -14
- package/dist/{vue-ui-xy-canvas-DvZgi7HV.js → vue-ui-xy-canvas-CmXVo7kC.js} +12 -12
- package/dist/{vue-ui-xy-canvas-D5iPJqoe.cjs → vue-ui-xy-canvas-aZQ9FHGI.cjs} +1 -1
- package/dist/{vue-ui-xy-CrCJrk6u.cjs → vue-ui-xy-uJqJ5M1Y.cjs} +1 -1
- package/package.json +1 -1
- package/dist/usePanZoom-CWL8SzZN.js +0 -79
- package/dist/usePanZoom-CppTL3G-.cjs +0 -1
- package/dist/vue-ui-molecule-DR0XoKl0.cjs +0 -1
- package/dist/vue-ui-word-cloud-CABqCfl5.js +0 -571
- package/dist/vue-ui-word-cloud-H7016Zdi.cjs +0 -1
|
@@ -1,571 +0,0 @@
|
|
|
1
|
-
import { computed as O, ref as p, watch as re, onMounted as nt, onBeforeUnmount as st, createElementBlock as P, openBlock as C, unref as b, normalizeStyle as ue, createBlock as E, createCommentVNode as z, createVNode as _e, createSlots as rt, withCtx as S, renderSlot as x, normalizeProps as _, guardReactiveProps as I, normalizeClass as Ie, createElementVNode as Re, Fragment as ut, renderList as it, toDisplayString as We, createTextVNode as ct, nextTick as Ve } from "vue";
|
|
2
|
-
import { u as dt, c as Ue, a6 as vt, v as ht, t as ft, p as Z, a as mt, o as pt, e as De, g as gt, f as yt, X as bt, q as wt, r as Ct, x as kt } from "./index-C7spnOfS.js";
|
|
3
|
-
import { _ as $t } from "./Title-Ch602IT9.js";
|
|
4
|
-
import { u as xt, U as Tt } from "./usePrinter-BDUIRBP4.js";
|
|
5
|
-
import { t as St, u as Mt, d as Ft } from "./useResponsive-Cw4oZ8sQ.js";
|
|
6
|
-
import Pt from "./vue-ui-accordion-Bk2aYAD-.js";
|
|
7
|
-
import { D as zt } from "./DataTable-CmnlvDKM.js";
|
|
8
|
-
import { u as Be } from "./useNestedProp-BXHzK3EV.js";
|
|
9
|
-
import { _ as Ot } from "./PackageVersion-DavVl5j6.js";
|
|
10
|
-
import { _ as At } from "./Tooltip-0IaPNa9t.js";
|
|
11
|
-
import { P as Nt } from "./PenAndPaper-CGAd_cD9.js";
|
|
12
|
-
import { u as _t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
13
|
-
import { u as It } from "./useChartAccessibility-BWojgys7.js";
|
|
14
|
-
import { u as Rt } from "./usePanZoom-CWL8SzZN.js";
|
|
15
|
-
import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const Vt = ["id"], Ut = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["transform"], Et = ["fill", "font-weight", "x", "y", "font-size", "transform", "onMouseover"], Gt = {
|
|
17
|
-
key: 4,
|
|
18
|
-
class: "vue-data-ui-watermark"
|
|
19
|
-
}, Lt = ["innerHTML"], Ht = {
|
|
20
|
-
__name: "vue-ui-word-cloud",
|
|
21
|
-
props: {
|
|
22
|
-
config: {
|
|
23
|
-
type: Object,
|
|
24
|
-
default() {
|
|
25
|
-
return {};
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
dataset: {
|
|
29
|
-
type: [Array, String],
|
|
30
|
-
default() {
|
|
31
|
-
return [];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
setup(Ee, { expose: Ge }) {
|
|
36
|
-
const { vue_ui_word_cloud: Le } = dt(), M = Ee, G = O({
|
|
37
|
-
get() {
|
|
38
|
-
return !!M.dataset && M.dataset.length;
|
|
39
|
-
},
|
|
40
|
-
set(t) {
|
|
41
|
-
return t;
|
|
42
|
-
}
|
|
43
|
-
}), J = p(Ue()), ie = p(0), R = p(null), ce = p(null), de = p(null), ve = p(0), he = p(0), K = p(!1), e = O({
|
|
44
|
-
get: () => ge(),
|
|
45
|
-
set: (t) => t
|
|
46
|
-
}), A = p(fe());
|
|
47
|
-
function fe() {
|
|
48
|
-
return typeof M.dataset == "string" ? vt(M.dataset) : M.dataset.map((t, l) => ({
|
|
49
|
-
...t,
|
|
50
|
-
value: ht(t.value)
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
53
|
-
re(() => M.dataset, () => {
|
|
54
|
-
A.value = fe(), te();
|
|
55
|
-
});
|
|
56
|
-
const { userOptionsVisible: Q, setUserOptionsVisibility: me, keepUserOptionState: pe } = _t({ config: e.value }), { svgRef: ee } = It({ config: e.value.style.chart.title });
|
|
57
|
-
function ge() {
|
|
58
|
-
const t = Be({
|
|
59
|
-
userConfig: M.config,
|
|
60
|
-
defaultConfig: Le
|
|
61
|
-
});
|
|
62
|
-
return t.theme ? {
|
|
63
|
-
...Be({
|
|
64
|
-
userConfig: mt.vue_ui_word_cloud[t.theme] || M.config,
|
|
65
|
-
defaultConfig: t
|
|
66
|
-
}),
|
|
67
|
-
customPalette: ft[t.theme] || Z
|
|
68
|
-
} : t;
|
|
69
|
-
}
|
|
70
|
-
re(() => M.config, (t) => {
|
|
71
|
-
e.value = ge(), Q.value = !e.value.userOptions.showOnChartHover, ye(), ve.value += 1, he.value += 1, refreshSlicer(), k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
72
|
-
}, { deep: !0 });
|
|
73
|
-
const n = p({
|
|
74
|
-
width: e.value.style.chart.width,
|
|
75
|
-
height: e.value.style.chart.height,
|
|
76
|
-
maxFontSize: e.value.style.chart.words.maxFontSize,
|
|
77
|
-
minFontSize: e.value.style.chart.words.minFontSize
|
|
78
|
-
}), He = Ft(() => {
|
|
79
|
-
te();
|
|
80
|
-
}, 10), je = St(() => {
|
|
81
|
-
const { width: t, height: l } = Mt({
|
|
82
|
-
chart: R.value,
|
|
83
|
-
title: e.value.style.chart.title.text ? ce.value : null,
|
|
84
|
-
source: de.value
|
|
85
|
-
});
|
|
86
|
-
requestAnimationFrame(() => {
|
|
87
|
-
n.value.width = t, n.value.height = l, Ve(He);
|
|
88
|
-
});
|
|
89
|
-
}), L = p(null);
|
|
90
|
-
nt(ye);
|
|
91
|
-
function ye() {
|
|
92
|
-
pt(M.dataset) ? De({
|
|
93
|
-
componentName: "VueUiWordCloud",
|
|
94
|
-
type: "dataset"
|
|
95
|
-
}) : A.value.forEach((t, l) => {
|
|
96
|
-
gt({
|
|
97
|
-
datasetObject: t,
|
|
98
|
-
requiredAttributes: ["name", "value"]
|
|
99
|
-
}).forEach((o) => {
|
|
100
|
-
G.value = !1, De({
|
|
101
|
-
componentName: "VueUiWordCloud",
|
|
102
|
-
type: "datasetSerieAttribute",
|
|
103
|
-
property: o,
|
|
104
|
-
index: l
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
}), e.value.responsive && (L.value = new ResizeObserver(je), L.value.observe(R.value.parentNode));
|
|
108
|
-
}
|
|
109
|
-
st(() => {
|
|
110
|
-
L.value && L.value.disconnect();
|
|
111
|
-
});
|
|
112
|
-
const { isPrinting: be, isImaging: we, generatePdf: Ce, generateImage: ke } = xt({
|
|
113
|
-
elementId: `wordCloud_${J.value}`,
|
|
114
|
-
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
|
|
115
|
-
options: e.value.userOptions.print
|
|
116
|
-
}), k = p({
|
|
117
|
-
showTable: e.value.table.show,
|
|
118
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
119
|
-
});
|
|
120
|
-
function Xe(t, l, o = "Arial") {
|
|
121
|
-
const a = document.createElement("canvas").getContext("2d");
|
|
122
|
-
return a.font = `${l}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
|
|
123
|
-
width: a.measureText(t).width + e.value.style.chart.words.proximity,
|
|
124
|
-
height: l
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
function qe(t, l, o) {
|
|
128
|
-
const s = Math.round(l), a = Math.round(o), $ = 1, T = n.value.minFontSize, D = n.value.maxFontSize, Se = e.value.style.chart.words.proximity || 0, Me = t.map((h) => h.value), ne = Math.min(...Me), Fe = Math.max(...Me), Y = new Uint8Array(s * a), B = document.createElement("canvas"), F = B.getContext("2d", { willReadFrequently: !0 });
|
|
129
|
-
B.width = s, B.height = a;
|
|
130
|
-
function Pe(h, g, y) {
|
|
131
|
-
F.save(), F.font = `${n.value.style && n.value.style.bold ? "bold " : ""}${g}px Arial`;
|
|
132
|
-
const f = F.measureText(h.name), c = Math.ceil(f.width) + 2 + (y ? y * 2 : 0), r = Math.ceil(g) + 2 + (y ? y * 2 : 0);
|
|
133
|
-
B.width = c, B.height = r, F.clearRect(0, 0, c, r), F.font = `${n.value.style && n.value.style.bold ? "bold " : ""}${g}px Arial`, F.textAlign = "center", F.textBaseline = "middle", F.fillStyle = "black", F.fillText(h.name, c / 2, r / 2);
|
|
134
|
-
const i = F.getImageData(0, 0, c, r).data, d = [];
|
|
135
|
-
for (let m = 0; m < r; m += 1)
|
|
136
|
-
for (let v = 0; v < c; v += 1)
|
|
137
|
-
i[(m * c + v) * 4 + 3] > 1 && d.push([v, m]);
|
|
138
|
-
return F.restore(), { w: c, h: r, wordMask: d };
|
|
139
|
-
}
|
|
140
|
-
function ze(h, g, y, f, c, r) {
|
|
141
|
-
for (let u = 0; u < r.length; u += 1) {
|
|
142
|
-
const i = f + r[u][0], d = c + r[u][1];
|
|
143
|
-
if (i < 0 || d < 0 || i >= g || d >= y || h[d * g + i]) return !1;
|
|
144
|
-
}
|
|
145
|
-
return !0;
|
|
146
|
-
}
|
|
147
|
-
function Oe(h, g, y, f, c, r) {
|
|
148
|
-
for (let u = 0; u < r.length; u += 1) {
|
|
149
|
-
const i = f + r[u][0], d = c + r[u][1];
|
|
150
|
-
i >= 0 && d >= 0 && i < g && d < y && (h[d * g + i] = 1);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
const Qe = 6, et = 2, tt = 2, ot = 1, Ae = Math.floor(s / 2), Ne = Math.floor(a / 2), at = [...t].sort((h, g) => g.value - h.value), se = [];
|
|
154
|
-
function lt(h, g, y, f = 1) {
|
|
155
|
-
const c = new Set(h.map(([u, i]) => `${u},${i}`)), r = new Set(c);
|
|
156
|
-
for (let [u, i] of h)
|
|
157
|
-
for (let d = -f; d <= f; d += 1)
|
|
158
|
-
for (let m = -f; m <= f; m += 1) {
|
|
159
|
-
if (d === 0 && m === 0) continue;
|
|
160
|
-
const v = u + d, w = i + m;
|
|
161
|
-
v >= 0 && v < g && w >= 0 && w < y && r.add(`${v},${w}`);
|
|
162
|
-
}
|
|
163
|
-
return Array.from(r).map((u) => u.split(",").map(Number));
|
|
164
|
-
}
|
|
165
|
-
for (const h of at) {
|
|
166
|
-
let g = T;
|
|
167
|
-
Fe !== ne && (g = (h.value - ne) / (Fe - ne) * (D - T) + T), g = Math.max(T, Math.min(D, g));
|
|
168
|
-
let y = !1, f = g;
|
|
169
|
-
for (; !y && f >= $; ) {
|
|
170
|
-
let { w: c, h: r, wordMask: u } = Pe(h, f, Se);
|
|
171
|
-
u = lt(u, c, r, 2);
|
|
172
|
-
let i = 0, d = 0;
|
|
173
|
-
for (; i < Math.max(s, a) && !y && d < 1e4; ) {
|
|
174
|
-
for (let m = 0; m < 360; m += Qe) {
|
|
175
|
-
d += 1;
|
|
176
|
-
const v = Math.round(Ae + i * Math.cos(m * Math.PI / 180) - c / 2), w = Math.round(Ne + i * Math.sin(m * Math.PI / 180) - r / 2);
|
|
177
|
-
if (!(v < 0 || w < 0 || v + c > s || w + r > a) && ze(Y, s, a, v, w, u)) {
|
|
178
|
-
se.push({ ...h, x: v - s / 2, y: w - a / 2, fontSize: f, width: c, height: r, angle: 0 }), Oe(Y, s, a, v, w, u), y = !0;
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
i += et;
|
|
183
|
-
}
|
|
184
|
-
y || (f -= 1);
|
|
185
|
-
}
|
|
186
|
-
if (!y && f < $) {
|
|
187
|
-
f = $;
|
|
188
|
-
const { w: c, h: r, wordMask: u } = Pe(h, f, Se);
|
|
189
|
-
let i = 0, d = 0;
|
|
190
|
-
for (; i < Math.max(s, a) && !y && d < 25e3; ) {
|
|
191
|
-
for (let m = 0; m < 360; m += tt) {
|
|
192
|
-
d += 1;
|
|
193
|
-
const v = Math.round(Ae + i * Math.cos(m * Math.PI / 180) - c / 2), w = Math.round(Ne + i * Math.sin(m * Math.PI / 180) - r / 2);
|
|
194
|
-
if (!(v < 0 || w < 0 || v + c > s || w + r > a) && ze(Y, s, a, v, w, u)) {
|
|
195
|
-
se.push({ ...h, x: v - s / 2, y: w - a / 2, fontSize: f, width: c, height: r, angle: 0 }), Oe(Y, s, a, v, w, u), y = !0;
|
|
196
|
-
break;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
i += ot;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
return se;
|
|
204
|
-
}
|
|
205
|
-
const W = p([]);
|
|
206
|
-
re(() => M.dataset, te, { immediate: !0 }), O(() => Math.round(Math.min(...A.value.map((t) => t.value)))), O(() => Math.round(Math.max(...A.value.map((t) => t.value))));
|
|
207
|
-
function te() {
|
|
208
|
-
const t = [...A.value].map((a) => a.value), l = Math.max(...t), o = Math.min(...t), s = [...A.value].map((a, $) => {
|
|
209
|
-
let T = (a.value - o) / (l - o) * (n.value.maxFontSize - n.value.minFontSize) + n.value.minFontSize;
|
|
210
|
-
T = isNaN(T) ? n.value.minFontSize : T;
|
|
211
|
-
const D = Xe(a.name, T);
|
|
212
|
-
return {
|
|
213
|
-
...a,
|
|
214
|
-
id: Ue(),
|
|
215
|
-
fontSize: T,
|
|
216
|
-
width: D.width,
|
|
217
|
-
height: D.height,
|
|
218
|
-
color: e.value.style.chart.words.usePalette ? e.value.customPalette[$] || e.value.customPalette[$ % e.value.customPalette.length] || Z[$] || Z[$ % Z.length] : e.value.style.chart.words.color
|
|
219
|
-
};
|
|
220
|
-
});
|
|
221
|
-
W.value = qe(s, n.value.width, n.value.height).sort((a, $) => $.fontSize - a.fontSize);
|
|
222
|
-
}
|
|
223
|
-
const H = O(() => {
|
|
224
|
-
const t = W.value.map((o) => ({
|
|
225
|
-
name: o.name,
|
|
226
|
-
color: o.color
|
|
227
|
-
})), l = W.value.map((o) => o.value);
|
|
228
|
-
return { head: t, body: l };
|
|
229
|
-
});
|
|
230
|
-
function $e() {
|
|
231
|
-
Ve(() => {
|
|
232
|
-
const t = H.value.head.map((s, a) => [[
|
|
233
|
-
s.name
|
|
234
|
-
], [H.value.body[a]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(t), o = wt(l);
|
|
235
|
-
Ct({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
const j = O(() => {
|
|
239
|
-
const t = [
|
|
240
|
-
e.value.table.columnNames.series,
|
|
241
|
-
e.value.table.columnNames.value
|
|
242
|
-
], l = H.value.head.map((a, $) => {
|
|
243
|
-
const T = yt({ p: e.value.table.td.prefix, v: H.value.body[$], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
|
|
244
|
-
return [
|
|
245
|
-
{
|
|
246
|
-
color: a.color,
|
|
247
|
-
name: a.name
|
|
248
|
-
},
|
|
249
|
-
T
|
|
250
|
-
];
|
|
251
|
-
}), o = {
|
|
252
|
-
th: {
|
|
253
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
254
|
-
color: e.value.table.th.color,
|
|
255
|
-
outline: e.value.table.th.outline
|
|
256
|
-
},
|
|
257
|
-
td: {
|
|
258
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
259
|
-
color: e.value.table.td.color,
|
|
260
|
-
outline: e.value.table.td.outline
|
|
261
|
-
},
|
|
262
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
263
|
-
};
|
|
264
|
-
return {
|
|
265
|
-
colNames: [
|
|
266
|
-
e.value.table.columnNames.series,
|
|
267
|
-
e.value.table.columnNames.value
|
|
268
|
-
],
|
|
269
|
-
head: t,
|
|
270
|
-
body: l,
|
|
271
|
-
config: o
|
|
272
|
-
};
|
|
273
|
-
}), X = p(!1);
|
|
274
|
-
function Ye(t) {
|
|
275
|
-
X.value = t, ie.value += 1;
|
|
276
|
-
}
|
|
277
|
-
function Ze() {
|
|
278
|
-
return W.value;
|
|
279
|
-
}
|
|
280
|
-
function xe() {
|
|
281
|
-
k.value.showTable = !k.value.showTable;
|
|
282
|
-
}
|
|
283
|
-
function Te() {
|
|
284
|
-
k.value.showTooltip = !k.value.showTooltip;
|
|
285
|
-
}
|
|
286
|
-
const V = p(!1);
|
|
287
|
-
function oe() {
|
|
288
|
-
V.value = !V.value;
|
|
289
|
-
}
|
|
290
|
-
const Je = O(() => !V.value && e.value.style.chart.zoom.show), { viewBox: q } = Rt(ee, {
|
|
291
|
-
x: 0,
|
|
292
|
-
y: 0,
|
|
293
|
-
width: n.value.width <= 0 ? 10 : n.value.width,
|
|
294
|
-
height: n.value.height <= 0 ? 10 : n.value.height
|
|
295
|
-
}, 1, Je);
|
|
296
|
-
Ge({
|
|
297
|
-
getData: Ze,
|
|
298
|
-
generateCsv: $e,
|
|
299
|
-
generatePdf: Ce,
|
|
300
|
-
generateImage: ke,
|
|
301
|
-
toggleTable: xe,
|
|
302
|
-
toggleTooltip: Te,
|
|
303
|
-
toggleAnnotator: oe
|
|
304
|
-
});
|
|
305
|
-
const N = p(null), U = p(!1), ae = p(""), le = p(null);
|
|
306
|
-
function Ke(t) {
|
|
307
|
-
if (!k.value.showTooltip) return;
|
|
308
|
-
N.value = t.id, le.value = { datapoint: t, config: e.value };
|
|
309
|
-
const l = e.value.style.chart.tooltip.customFormat;
|
|
310
|
-
if (U.value = !1, kt(l))
|
|
311
|
-
try {
|
|
312
|
-
const o = l({
|
|
313
|
-
datapoint: t,
|
|
314
|
-
config: e.value
|
|
315
|
-
});
|
|
316
|
-
typeof o == "string" && (ae.value = o, U.value = !0);
|
|
317
|
-
} catch {
|
|
318
|
-
console.warn("Custom format cannot be applied."), U.value = !1;
|
|
319
|
-
}
|
|
320
|
-
if (!U.value) {
|
|
321
|
-
let o = `<svg viewBox="0 0 10 10" height="${e.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${t.color}"/></svg><span>${t.name}:</span><b>${(t.value || 0).toFixed(e.value.style.chart.tooltip.roundingValue)}</b>`;
|
|
322
|
-
ae.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${o}</div>`;
|
|
323
|
-
}
|
|
324
|
-
K.value = !0;
|
|
325
|
-
}
|
|
326
|
-
return (t, l) => (C(), P("div", {
|
|
327
|
-
class: "vue-ui-word-cloud",
|
|
328
|
-
ref_key: "wordCloudChart",
|
|
329
|
-
ref: R,
|
|
330
|
-
id: `wordCloud_${J.value}`,
|
|
331
|
-
style: ue(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
332
|
-
onMouseenter: l[2] || (l[2] = () => b(me)(!0)),
|
|
333
|
-
onMouseleave: l[3] || (l[3] = () => b(me)(!1))
|
|
334
|
-
}, [
|
|
335
|
-
e.value.userOptions.buttons.annotator ? (C(), E(Nt, {
|
|
336
|
-
key: 0,
|
|
337
|
-
svgRef: b(ee),
|
|
338
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
339
|
-
color: e.value.style.chart.color,
|
|
340
|
-
active: V.value,
|
|
341
|
-
onClose: oe
|
|
342
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : z("", !0),
|
|
343
|
-
e.value.style.chart.title.text ? (C(), P("div", {
|
|
344
|
-
key: 1,
|
|
345
|
-
ref_key: "chartTitle",
|
|
346
|
-
ref: ce,
|
|
347
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
348
|
-
}, [
|
|
349
|
-
(C(), E($t, {
|
|
350
|
-
key: `title_${ve.value}`,
|
|
351
|
-
config: {
|
|
352
|
-
title: {
|
|
353
|
-
...e.value.style.chart.title
|
|
354
|
-
},
|
|
355
|
-
subtitle: {
|
|
356
|
-
...e.value.style.chart.title.subtitle
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}, null, 8, ["config"]))
|
|
360
|
-
], 512)) : z("", !0),
|
|
361
|
-
e.value.userOptions.show && G.value && (b(pe) || b(Q)) ? (C(), E(Tt, {
|
|
362
|
-
ref: "details",
|
|
363
|
-
key: `user_option_${ie.value}`,
|
|
364
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
365
|
-
color: e.value.style.chart.color,
|
|
366
|
-
isPrinting: b(be),
|
|
367
|
-
isImaging: b(we),
|
|
368
|
-
uid: J.value,
|
|
369
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
370
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
371
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
372
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
373
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
374
|
-
isFullscreen: X.value,
|
|
375
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
376
|
-
chartElement: R.value,
|
|
377
|
-
position: e.value.userOptions.position,
|
|
378
|
-
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
379
|
-
isTooltip: k.value.showTooltip,
|
|
380
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
381
|
-
isAnnotation: V.value,
|
|
382
|
-
onToggleFullscreen: Ye,
|
|
383
|
-
onGeneratePdf: b(Ce),
|
|
384
|
-
onGenerateCsv: $e,
|
|
385
|
-
onGenerateImage: b(ke),
|
|
386
|
-
onToggleTable: xe,
|
|
387
|
-
onToggleTooltip: Te,
|
|
388
|
-
onToggleAnnotator: oe,
|
|
389
|
-
style: ue({
|
|
390
|
-
visibility: b(pe) ? b(Q) ? "visible" : "hidden" : "visible"
|
|
391
|
-
})
|
|
392
|
-
}, rt({ _: 2 }, [
|
|
393
|
-
t.$slots.menuIcon ? {
|
|
394
|
-
name: "menuIcon",
|
|
395
|
-
fn: S(({ isOpen: o, color: s }) => [
|
|
396
|
-
x(t.$slots, "menuIcon", _(I({ isOpen: o, color: s })), void 0, !0)
|
|
397
|
-
]),
|
|
398
|
-
key: "0"
|
|
399
|
-
} : void 0,
|
|
400
|
-
t.$slots.optionPdf ? {
|
|
401
|
-
name: "optionPdf",
|
|
402
|
-
fn: S(() => [
|
|
403
|
-
x(t.$slots, "optionPdf", {}, void 0, !0)
|
|
404
|
-
]),
|
|
405
|
-
key: "1"
|
|
406
|
-
} : void 0,
|
|
407
|
-
t.$slots.optionCsv ? {
|
|
408
|
-
name: "optionCsv",
|
|
409
|
-
fn: S(() => [
|
|
410
|
-
x(t.$slots, "optionCsv", {}, void 0, !0)
|
|
411
|
-
]),
|
|
412
|
-
key: "2"
|
|
413
|
-
} : void 0,
|
|
414
|
-
t.$slots.optionImg ? {
|
|
415
|
-
name: "optionImg",
|
|
416
|
-
fn: S(() => [
|
|
417
|
-
x(t.$slots, "optionImg", {}, void 0, !0)
|
|
418
|
-
]),
|
|
419
|
-
key: "3"
|
|
420
|
-
} : void 0,
|
|
421
|
-
t.$slots.optionTable ? {
|
|
422
|
-
name: "optionTable",
|
|
423
|
-
fn: S(() => [
|
|
424
|
-
x(t.$slots, "optionTable", {}, void 0, !0)
|
|
425
|
-
]),
|
|
426
|
-
key: "4"
|
|
427
|
-
} : void 0,
|
|
428
|
-
t.$slots.optionFullscreen ? {
|
|
429
|
-
name: "optionFullscreen",
|
|
430
|
-
fn: S(({ toggleFullscreen: o, isFullscreen: s }) => [
|
|
431
|
-
x(t.$slots, "optionFullscreen", _(I({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
|
|
432
|
-
]),
|
|
433
|
-
key: "5"
|
|
434
|
-
} : void 0,
|
|
435
|
-
t.$slots.optionAnnotator ? {
|
|
436
|
-
name: "optionAnnotator",
|
|
437
|
-
fn: S(({ toggleAnnotator: o, isAnnotator: s }) => [
|
|
438
|
-
x(t.$slots, "optionAnnotator", _(I({ toggleAnnotator: o, isAnnotator: s })), void 0, !0)
|
|
439
|
-
]),
|
|
440
|
-
key: "6"
|
|
441
|
-
} : void 0
|
|
442
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : z("", !0),
|
|
443
|
-
G.value ? (C(), P("svg", {
|
|
444
|
-
key: 3,
|
|
445
|
-
ref_key: "svgRef",
|
|
446
|
-
ref: ee,
|
|
447
|
-
class: Ie({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
|
|
448
|
-
xmlns: b(bt),
|
|
449
|
-
viewBox: `${b(q).x} ${b(q).y} ${b(q).width} ${b(q).height}`,
|
|
450
|
-
style: "overflow:hidden;background:transparent;"
|
|
451
|
-
}, [
|
|
452
|
-
_e(Ot),
|
|
453
|
-
t.$slots["chart-background"] ? (C(), P("foreignObject", {
|
|
454
|
-
key: 0,
|
|
455
|
-
x: 0,
|
|
456
|
-
y: 0,
|
|
457
|
-
width: n.value.width <= 0 ? 10 : n.value.width,
|
|
458
|
-
height: n.value.height <= 0 ? 10 : n.value.height,
|
|
459
|
-
style: {
|
|
460
|
-
pointerEvents: "none"
|
|
461
|
-
}
|
|
462
|
-
}, [
|
|
463
|
-
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
464
|
-
], 8, Dt)) : z("", !0),
|
|
465
|
-
Re("g", {
|
|
466
|
-
transform: `translate(${(n.value.width <= 0 ? 10 : n.value.width) / 2}, ${(n.value.height <= 0 ? 10 : n.value.height) / 2})`
|
|
467
|
-
}, [
|
|
468
|
-
(C(!0), P(ut, null, it(W.value, (o, s) => (C(), P("g", null, [
|
|
469
|
-
(C(), P("text", {
|
|
470
|
-
fill: o.color,
|
|
471
|
-
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
472
|
-
key: s,
|
|
473
|
-
x: o.x,
|
|
474
|
-
y: o.y,
|
|
475
|
-
"font-size": o.fontSize,
|
|
476
|
-
transform: `translate(${o.width / 2}, ${o.height / 2})`,
|
|
477
|
-
class: Ie({ animated: e.value.useCssAnimation, "word-selected": N.value && N.value === o.id && k.value.showTooltip, "word-not-selected": N.value && N.value !== o.id && k.value.showTooltip }),
|
|
478
|
-
"text-anchor": "middle",
|
|
479
|
-
"dominant-baseline": "central",
|
|
480
|
-
onMouseover: (a) => Ke(o),
|
|
481
|
-
onMouseleave: l[0] || (l[0] = (a) => {
|
|
482
|
-
N.value = null, K.value = !1;
|
|
483
|
-
}),
|
|
484
|
-
style: ue(`animation-delay:${s * e.value.animationDelayMs}ms !important;`)
|
|
485
|
-
}, We(o.name), 47, Et))
|
|
486
|
-
]))), 256))
|
|
487
|
-
], 8, Bt),
|
|
488
|
-
x(t.$slots, "svg", {
|
|
489
|
-
svg: { height: n.value.height, width: n.value.width }
|
|
490
|
-
}, void 0, !0)
|
|
491
|
-
], 10, Ut)) : z("", !0),
|
|
492
|
-
t.$slots.watermark ? (C(), P("div", Gt, [
|
|
493
|
-
x(t.$slots, "watermark", _(I({ isPrinting: b(be) || b(we) })), void 0, !0)
|
|
494
|
-
])) : z("", !0),
|
|
495
|
-
_e(At, {
|
|
496
|
-
show: k.value.showTooltip && K.value,
|
|
497
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
498
|
-
color: e.value.style.chart.tooltip.color,
|
|
499
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
500
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
501
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
502
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
503
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
504
|
-
position: e.value.style.chart.tooltip.position,
|
|
505
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
506
|
-
parent: R.value,
|
|
507
|
-
content: ae.value,
|
|
508
|
-
isCustom: U.value
|
|
509
|
-
}, {
|
|
510
|
-
"tooltip-before": S(() => [
|
|
511
|
-
x(t.$slots, "tooltip-before", _(I({ ...le.value })), void 0, !0)
|
|
512
|
-
]),
|
|
513
|
-
"tooltip-after": S(() => [
|
|
514
|
-
x(t.$slots, "tooltip-after", _(I({ ...le.value })), void 0, !0)
|
|
515
|
-
]),
|
|
516
|
-
_: 3
|
|
517
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
518
|
-
t.$slots.source ? (C(), P("div", {
|
|
519
|
-
key: 5,
|
|
520
|
-
ref_key: "source",
|
|
521
|
-
ref: de,
|
|
522
|
-
dir: "auto"
|
|
523
|
-
}, [
|
|
524
|
-
x(t.$slots, "source", {}, void 0, !0)
|
|
525
|
-
], 512)) : z("", !0),
|
|
526
|
-
G.value ? (C(), E(Pt, {
|
|
527
|
-
key: 6,
|
|
528
|
-
hideDetails: "",
|
|
529
|
-
config: {
|
|
530
|
-
open: k.value.showTable,
|
|
531
|
-
maxHeight: 1e4,
|
|
532
|
-
body: {
|
|
533
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
534
|
-
color: e.value.style.chart.color
|
|
535
|
-
},
|
|
536
|
-
head: {
|
|
537
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
538
|
-
color: e.value.style.chart.color
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
}, {
|
|
542
|
-
content: S(() => [
|
|
543
|
-
(C(), E(zt, {
|
|
544
|
-
key: `table_${he.value}`,
|
|
545
|
-
colNames: j.value.colNames,
|
|
546
|
-
head: j.value.head,
|
|
547
|
-
body: j.value.body,
|
|
548
|
-
config: j.value.config,
|
|
549
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
550
|
-
onClose: l[1] || (l[1] = (o) => k.value.showTable = !1)
|
|
551
|
-
}, {
|
|
552
|
-
th: S(({ th: o }) => [
|
|
553
|
-
Re("div", {
|
|
554
|
-
innerHTML: o,
|
|
555
|
-
style: { display: "flex", "align-items": "center" }
|
|
556
|
-
}, null, 8, Lt)
|
|
557
|
-
]),
|
|
558
|
-
td: S(({ td: o }) => [
|
|
559
|
-
ct(We(o.name || o), 1)
|
|
560
|
-
]),
|
|
561
|
-
_: 1
|
|
562
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
563
|
-
]),
|
|
564
|
-
_: 1
|
|
565
|
-
}, 8, ["config"])) : z("", !0)
|
|
566
|
-
], 44, Vt));
|
|
567
|
-
}
|
|
568
|
-
}, ro = /* @__PURE__ */ Wt(Ht, [["__scopeId", "data-v-a7ce3b3e"]]);
|
|
569
|
-
export {
|
|
570
|
-
ro as default
|
|
571
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./index-C4TeRZvT.cjs"),Ue=require("./Title-Iy2d-Bd1.cjs"),xe=require("./usePrinter-bFMowLOh.cjs"),J=require("./useResponsive-DQmBAoBf.cjs"),De=require("./vue-ui-accordion-BIbie2vw.cjs"),Ge=require("./DataTable-CRuMrwb8.cjs"),Se=require("./useNestedProp-BS-4R8zR.cjs"),He=require("./PackageVersion-DwKk69DU.cjs"),Le=require("./Tooltip-DhV-T1A4.cjs"),je=require("./PenAndPaper-hlX2Djxv.cjs"),Xe=require("./useUserOptionState-BgepsfED.cjs"),Ye=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ze=require("./usePanZoom-CppTL3G-.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;
|