vue-data-ui 3.17.2 → 3.17.4
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/README.md +228 -228
- package/dist/{A11yDataTable-KcVAX2cP.js → A11yDataTable-BpmuNomI.js} +1 -1
- package/dist/{Arrow-Bn-9n3bm.js → Arrow-dSvLFssU.js} +1 -1
- package/dist/{BaseDraggableDialog-CIb-iD9g.js → BaseDraggableDialog-Di8Hlru3.js} +26 -24
- package/dist/{BaseIcon-Cb3zzG6s.js → BaseIcon-DX0hTWa-.js} +11 -5
- package/dist/{BaseLegendToggle-BQVIawmA.js → BaseLegendToggle-cMP8M2u0.js} +4 -4
- package/dist/BaseScanner-BON3d_Sx.js +38 -0
- package/dist/{BaseZoomControls-DievbOeJ.js → BaseZoomControls-CVSC1-SU.js} +11 -5
- package/dist/{ColorPicker-B0mV4xzu.js → ColorPicker-bAxGcXK0.js} +38 -22
- package/dist/{DataTable-DT2kIdQ6.js → DataTable-cMnb68Ik.js} +15 -11
- package/dist/{Legend-CS7Xo5LK.js → Legend-DGN5lY60.js} +15 -12
- package/dist/{NonSvgPenAndPaper-VyJFyJ6X.js → NonSvgPenAndPaper-B6E0zEYe.js} +34 -12
- package/dist/{PackageVersion-PjmqM4wb.js → PackageVersion-DVvvyQXB.js} +1 -1
- package/dist/{PenAndPaper-Ct3qJ4lA.js → PenAndPaper-CJDoB5H9.js} +87 -27
- package/dist/{Shape-BKRUOeKk.js → Shape-CxJ5_Rre.js} +1 -1
- package/dist/{Slicer-CIHwwuNR.js → Slicer-D7UcO8sN.js} +75 -33
- package/dist/{SlicerPreview-BMx3cqgX.js → SlicerPreview-D_CgrN_7.js} +198 -102
- package/dist/{SparkTooltip-BorBpltj.js → SparkTooltip-D4bM-kfz.js} +5 -5
- package/dist/{Title-BeMKE1cj.js → Title-BbKoiBk2.js} +1 -1
- package/dist/{Tooltip-C8KGyqQk.js → Tooltip-Cvt7Fi0Q.js} +9 -2
- package/dist/{UserOptions-rW2fRf3V.js → UserOptions-DVduN6X7.js} +48 -14
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-pattern-seed.js +5 -0
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-CtxhhdWb.js → dom-to-png-DGvx6i5V.js} +21 -6
- package/dist/{exposedLib-DlqmhBx3.js → exposedLib-sJvY1pST.js} +1 -1
- package/dist/{geoProjections-D0Vxsz_O.js → geoProjections-BFq2sOBY.js} +19 -11
- package/dist/{img-LXxMLmCg.js → img-CjTQXS0U.js} +31 -7
- package/dist/{labelUtils-CqTHa20R.js → labelUtils-DX9oyq3C.js} +2 -6
- package/dist/{lib-DBptbyyI.js → lib-DMzrGQHK.js} +337 -124
- package/dist/patternUtils-BINhU4Ky.js +615 -0
- package/dist/{pdf-B4tTdfvl.js → pdf-C4H4o1Cj.js} +11 -2
- package/dist/style.css +1 -1
- package/dist/types/arrow.d.ts +1 -1
- package/dist/types/utils.d.ts +500 -451
- package/dist/types/vue-data-ui.d.ts +2124 -1786
- package/dist/types/vue-ui-3d-bar.d.ts +10 -7
- package/dist/types/vue-ui-accordion.d.ts +2 -4
- package/dist/types/vue-ui-age-pyramid.d.ts +10 -8
- package/dist/types/vue-ui-annotator.d.ts +3 -3
- package/dist/types/vue-ui-bullet.d.ts +10 -7
- package/dist/types/vue-ui-bump.d.ts +9 -6
- package/dist/types/vue-ui-candlestick.d.ts +10 -7
- package/dist/types/vue-ui-carousel-table.d.ts +2 -2
- package/dist/types/vue-ui-chestnut.d.ts +9 -6
- package/dist/types/vue-ui-chord.d.ts +10 -7
- package/dist/types/vue-ui-circle-pack.d.ts +10 -7
- package/dist/types/vue-ui-cursor.d.ts +2 -2
- package/dist/types/vue-ui-dag.d.ts +10 -7
- package/dist/types/vue-ui-dashboard.d.ts +3 -3
- package/dist/types/vue-ui-digits.d.ts +2 -2
- package/dist/types/vue-ui-donut-evolution.d.ts +11 -8
- package/dist/types/vue-ui-donut.d.ts +11 -8
- package/dist/types/vue-ui-dumbbell.d.ts +11 -8
- package/dist/types/vue-ui-flow.d.ts +11 -8
- package/dist/types/vue-ui-funnel.d.ts +11 -8
- package/dist/types/vue-ui-galaxy.d.ts +11 -8
- package/dist/types/vue-ui-gauge.d.ts +11 -8
- package/dist/types/vue-ui-geo.d.ts +13 -6
- package/dist/types/vue-ui-gizmo.d.ts +2 -5
- package/dist/types/vue-ui-heatmap.d.ts +11 -8
- package/dist/types/vue-ui-history-plot.d.ts +11 -8
- package/dist/types/vue-ui-horizontal-bar.d.ts +11 -8
- package/dist/types/vue-ui-icon.d.ts +2 -4
- package/dist/types/vue-ui-kpi.d.ts +2 -4
- package/dist/types/vue-ui-mini-loader.d.ts +4 -4
- package/dist/types/vue-ui-molecule.d.ts +11 -8
- package/dist/types/vue-ui-mood-radar.d.ts +11 -8
- package/dist/types/vue-ui-nested-donuts.d.ts +11 -8
- package/dist/types/vue-ui-onion.d.ts +11 -8
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +11 -8
- package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
- package/dist/types/vue-ui-pattern.d.ts +2 -4
- package/dist/types/vue-ui-quadrant.d.ts +11 -8
- package/dist/types/vue-ui-quick-chart.d.ts +11 -8
- package/dist/types/vue-ui-radar.d.ts +11 -8
- package/dist/types/vue-ui-rating.d.ts +4 -4
- package/dist/types/vue-ui-relation-circle.d.ts +11 -8
- package/dist/types/vue-ui-ridgeline.d.ts +11 -8
- package/dist/types/vue-ui-rings.d.ts +11 -8
- package/dist/types/vue-ui-scatter.d.ts +11 -8
- package/dist/types/vue-ui-skeleton.d.ts +2 -4
- package/dist/types/vue-ui-smiley.d.ts +2 -5
- package/dist/types/vue-ui-spark-trend.d.ts +2 -4
- package/dist/types/vue-ui-sparkbar.d.ts +4 -4
- package/dist/types/vue-ui-sparkgauge.d.ts +4 -4
- package/dist/types/vue-ui-sparkhistogram.d.ts +4 -4
- package/dist/types/vue-ui-sparkline.d.ts +4 -4
- package/dist/types/vue-ui-sparkstackbar.d.ts +4 -4
- package/dist/types/vue-ui-stackbar.d.ts +11 -8
- package/dist/types/vue-ui-stackline.d.ts +11 -8
- package/dist/types/vue-ui-strip-plot.d.ts +11 -8
- package/dist/types/vue-ui-table-heatmap.d.ts +4 -4
- package/dist/types/vue-ui-table-sparkline.d.ts +4 -4
- package/dist/types/vue-ui-table.d.ts +4 -4
- package/dist/types/vue-ui-thermometer.d.ts +11 -8
- package/dist/types/vue-ui-timer.d.ts +2 -4
- package/dist/types/vue-ui-tiremarks.d.ts +11 -8
- package/dist/types/vue-ui-treemap.d.ts +11 -8
- package/dist/types/vue-ui-vertical-bar.d.ts +11 -8
- package/dist/types/vue-ui-waffle.d.ts +11 -8
- package/dist/types/vue-ui-wheel.d.ts +11 -8
- package/dist/types/vue-ui-word-cloud.d.ts +11 -8
- package/dist/types/vue-ui-world.d.ts +11 -8
- package/dist/types/vue-ui-xy-canvas.d.ts +11 -8
- package/dist/types/vue-ui-xy.d.ts +9 -6
- package/dist/{useAutoSizeLabelsInsideViewbox-DX7LdvFX.js → useAutoSizeLabelsInsideViewbox-izlGDfwu.js} +1 -1
- package/dist/{useChartAccessibility-9icAAmYg.js → useChartAccessibility-cp6XQtqi.js} +4 -1
- package/dist/{useConfig-C40HvGpD.js → useConfig-DTHxOX6V.js} +2 -8
- package/dist/{useNestedProp-Bf5XFbs8.js → useNestedProp-DH0BEVVS.js} +1 -1
- package/dist/{useObjectBindings-DOokNdQ_.js → useObjectBindings-BjkVidN3.js} +17 -6
- package/dist/{usePanZoom-CDF7rb3o.js → usePanZoom-BbDhcKWf.js} +11 -2
- package/dist/{usePrefersMotion-CUKm8_t8.js → usePrefersMotion-Co0nj1eS.js} +3 -1
- package/dist/{usePrinter-CEpYU3r5.js → usePrinter-C4t8DdQ-.js} +3 -8
- package/dist/{useStableElementSize-DCNs0Tx7.js → useStableElementSize-C48ZVcZQ.js} +4 -1
- package/dist/{useSvgExport-ByUukOZt.js → useSvgExport-BTG4hVPO.js} +154 -34
- package/dist/{useTableResponsive-Cbx-ACcP.js → useTableResponsive-BpfiEtzR.js} +7 -3
- package/dist/{useThemeCheck-D1ZYXUwG.js → useThemeCheck-C9Ccl7U9.js} +4 -2
- package/dist/{useTimeLabelCollider-CIsgDrl9.js → useTimeLabelCollider-D3JeJ6Ye.js} +13 -5
- package/dist/{useTimeLabels-C-A2uZKi.js → useTimeLabels-Cv0tD9In.js} +22 -6
- package/dist/{useUserOptionState-BIvW1Kz7.js → useUserOptionState-B7Ej974k.js} +6 -4
- package/dist/utils.js +28 -25
- package/dist/{vue-data-ui-CGsJdqdx.js → vue-data-ui-C0aMSe2G.js} +138 -72
- package/dist/vue-data-ui.js +103 -99
- package/dist/{vue-ui-3d-bar-Bnm0MPNr.js → vue-ui-3d-bar-CzXlsUEJ.js} +328 -101
- package/dist/{vue-ui-accordion-DDuJT1xA.js → vue-ui-accordion-BHmfmb_6.js} +26 -14
- package/dist/{vue-ui-age-pyramid-vvDMkGxw.js → vue-ui-age-pyramid-DMZ9oYFv.js} +180 -73
- package/dist/{vue-ui-annotator-BdmTltyl.js → vue-ui-annotator-Db4eooqI.js} +162 -53
- package/dist/{vue-ui-bullet-CM5pK6Sj.js → vue-ui-bullet-CEH6eppC.js} +92 -35
- package/dist/{vue-ui-bump-DAo_mV8M.js → vue-ui-bump-JbKFEe2A.js} +205 -102
- package/dist/{vue-ui-candlestick-DsiOmaj1.js → vue-ui-candlestick-BX01sTaY.js} +285 -100
- package/dist/{vue-ui-carousel-table-DUl5G_cg.js → vue-ui-carousel-table-BOAti3gd.js} +66 -29
- package/dist/{vue-ui-chestnut-DMMCHoHB.js → vue-ui-chestnut-B0rhAzCA.js} +277 -88
- package/dist/{vue-ui-chord-75V7kRrX.js → vue-ui-chord-DKIHZ39Z.js} +226 -96
- package/dist/{vue-ui-circle-pack-BGXpEnmN.js → vue-ui-circle-pack-Ct2roluW.js} +196 -111
- package/dist/{vue-ui-cursor-BpPe14qk.js → vue-ui-cursor-B3cJoPku.js} +14 -7
- package/dist/{vue-ui-dag-D20FezGN.js → vue-ui-dag-DCq1VMNd.js} +261 -99
- package/dist/{vue-ui-dashboard-BcafQJ1Y.js → vue-ui-dashboard-BqAYr0Fr.js} +261 -94
- package/dist/{vue-ui-digits-gFYVzPkE.js → vue-ui-digits-D16SQQ4M.js} +6 -6
- package/dist/{vue-ui-donut-Cz7rvM7I.js → vue-ui-donut-d0LLrlKG.js} +532 -157
- package/dist/{vue-ui-donut-evolution-Cp0-8Deg.js → vue-ui-donut-evolution-6sMhQduN.js} +311 -92
- package/dist/{vue-ui-dumbbell-D_13qNsV.js → vue-ui-dumbbell-CUybhrwj.js} +266 -93
- package/dist/{vue-ui-flow-BuaVAVvN.js → vue-ui-flow-BZ-9RFsy.js} +121 -48
- package/dist/{vue-ui-funnel-Cv18o2ax.js → vue-ui-funnel-BJgvIvlz.js} +91 -39
- package/dist/{vue-ui-galaxy-n17IGTDo.js → vue-ui-galaxy-DR9WL985.js} +161 -69
- package/dist/{vue-ui-gauge-2bks6sjR.js → vue-ui-gauge-x96W5OPx.js} +95 -37
- package/dist/{vue-ui-geo-D6BoOtIP.js → vue-ui-geo-qTfYs5qi.js} +113 -43
- package/dist/{vue-ui-gizmo-CV07ZThl.js → vue-ui-gizmo-C8HOirN9.js} +25 -12
- package/dist/{vue-ui-heatmap-DfbRacVm.js → vue-ui-heatmap-Cy9o-A7B.js} +316 -125
- package/dist/{vue-ui-history-plot-5sPJfAue.js → vue-ui-history-plot-j0DMfNPJ.js} +186 -73
- package/dist/{vue-ui-horizontal-bar-BhMvbsvs.js → vue-ui-horizontal-bar-CRScV3rx.js} +151 -56
- package/dist/{vue-ui-kpi-P92uuJ_R.js → vue-ui-kpi-CEx3P3Do.js} +35 -14
- package/dist/{vue-ui-mini-loader-DrROXJIX.js → vue-ui-mini-loader-CyDOoarO.js} +17 -11
- package/dist/{vue-ui-molecule-BI6zROGn.js → vue-ui-molecule-B_19tjnI.js} +226 -120
- package/dist/{vue-ui-mood-radar-Byc_xyhw.js → vue-ui-mood-radar-DrkGtt7m.js} +166 -56
- package/dist/{vue-ui-nested-donuts-BZu1ntbw.js → vue-ui-nested-donuts-C3enuKq1.js} +196 -89
- package/dist/{vue-ui-onion-O2tKgfXh.js → vue-ui-onion-DMMLNXVu.js} +155 -74
- package/dist/{vue-ui-parallel-coordinate-plot-CbDGHCzy.js → vue-ui-parallel-coordinate-plot-YokoI6TP.js} +262 -84
- package/dist/vue-ui-pattern-seed-BcNlxb2i.js +36 -0
- package/dist/{vue-ui-quadrant-CPgUkle7.js → vue-ui-quadrant-D8vI4gIT.js} +240 -88
- package/dist/{vue-ui-quick-chart-CgDH-APs.js → vue-ui-quick-chart-BdwHAQyA.js} +445 -150
- package/dist/{vue-ui-radar-Belp_vQe.js → vue-ui-radar-DQWyecSD.js} +186 -68
- package/dist/{vue-ui-rating-C1f6x_PD.js → vue-ui-rating-DKmEn0VK.js} +30 -11
- package/dist/{vue-ui-relation-circle-AWRDIZzF.js → vue-ui-relation-circle-XQH3QkrI.js} +119 -45
- package/dist/{vue-ui-ridgeline-Cao4_cEs.js → vue-ui-ridgeline-ksI62sSU.js} +349 -85
- package/dist/{vue-ui-rings-Dl462hDH.js → vue-ui-rings-Dwbo1Fro.js} +179 -81
- package/dist/{vue-ui-scatter-BrVEK5YL.js → vue-ui-scatter-GFzM-YYz.js} +282 -102
- package/dist/{vue-ui-skeleton-BsTtcR3x.js → vue-ui-skeleton-xLPY1FKW.js} +161 -144
- package/dist/{vue-ui-smiley-M5Gn70_Z.js → vue-ui-smiley-BLMl69Ca.js} +28 -17
- package/dist/{vue-ui-spark-trend-CbtI2yPI.js → vue-ui-spark-trend-Bkxd18l5.js} +76 -31
- package/dist/{vue-ui-sparkbar-DgrwoANx.js → vue-ui-sparkbar-D2abFa-u.js} +113 -59
- package/dist/{vue-ui-sparkgauge-CepspA5J.js → vue-ui-sparkgauge-D6IF3ZQR.js} +47 -18
- package/dist/{vue-ui-sparkhistogram-BAVAkN0U.js → vue-ui-sparkhistogram-Dl8WlJLW.js} +145 -60
- package/dist/{vue-ui-sparkline-BMcsfaUW.js → vue-ui-sparkline-BY05SDNv.js} +226 -68
- package/dist/{vue-ui-sparkstackbar-BAzr99-y.js → vue-ui-sparkstackbar-BLFjfklb.js} +84 -36
- package/dist/{vue-ui-stackbar-BnepTc3z.js → vue-ui-stackbar-Dw-CI94e.js} +482 -169
- package/dist/{vue-ui-stackline-p3Utm59w.js → vue-ui-stackline-CkgSbKkp.js} +473 -164
- package/dist/{vue-ui-strip-plot-BfYmPTZT.js → vue-ui-strip-plot-P16Y5yN1.js} +239 -132
- package/dist/{vue-ui-table-BNmt2bQy.js → vue-ui-table-BPLypaeX.js} +339 -122
- package/dist/{vue-ui-table-heatmap-C6rSAGDu.js → vue-ui-table-heatmap-CWp_5d1z.js} +89 -25
- package/dist/{vue-ui-table-sparkline-BMt2q1FS.js → vue-ui-table-sparkline-CpjyrPic.js} +127 -47
- package/dist/{vue-ui-thermometer-Bf22bEzP.js → vue-ui-thermometer-B9nc954A.js} +129 -48
- package/dist/{vue-ui-timer-CkEPkE7B.js → vue-ui-timer-BDfbM4vl.js} +32 -15
- package/dist/{vue-ui-tiremarks-ltmjDwug.js → vue-ui-tiremarks-DHV_oSQ0.js} +90 -35
- package/dist/vue-ui-treemap-DLWOi_EG.js +1748 -0
- package/dist/{vue-ui-waffle-AUF7SKGN.js → vue-ui-waffle-CpNJSzAD.js} +206 -87
- package/dist/{vue-ui-wheel-Dn1nmx7r.js → vue-ui-wheel-DqBmaQ6h.js} +231 -61
- package/dist/{vue-ui-word-cloud-Bll30XSc.js → vue-ui-word-cloud-DexRxuh1.js} +443 -350
- package/dist/vue-ui-world-DAJgtvpz.js +14451 -0
- package/dist/{vue-ui-xy-BGC31q8v.js → vue-ui-xy-Cv-50xHj.js} +840 -252
- package/dist/{vue-ui-xy-canvas-BR-Qogdl.js → vue-ui-xy-canvas-BNUX13xH.js} +448 -159
- package/package.json +120 -119
- package/dist/BaseScanner-BhhkKVoj.js +0 -30
- package/dist/vue-ui-treemap-CGbTrwdn.js +0 -1726
- package/dist/vue-ui-world-CiNUxqIq.js +0 -1011
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
import { defineAsyncComponent as se, computed as G, ref as
|
|
1
|
+
import { defineAsyncComponent as se, computed as G, ref as M, toRefs as Qt, watch as Pe, shallowRef as mt, onMounted as eo, onBeforeUnmount as to, openBlock as Y, createElementBlock as K, unref as T, normalizeStyle as ze, createElementVNode as fe, toDisplayString as Ye, createBlock as oe, createCommentVNode as L, withCtx as F, renderSlot as A, normalizeProps as Z, guardReactiveProps as V, createSlots as ht, normalizeClass as pt, createVNode as je, Fragment as oo, renderList as ao, resolveDynamicComponent as no, mergeProps as lo, createTextVNode as gt, nextTick as We } from "vue";
|
|
2
2
|
import { d as yt, u as so } from "./useResponsive-DfdjqQps.js";
|
|
3
|
-
import { j as io, t as bt, e as uo, K as ro, m as co, p as De, o as wt, q as kt, r as vo, l as
|
|
4
|
-
import { u as yo } from "./useConfig-
|
|
5
|
-
import { u as bo, B as wo } from "./BaseScanner-
|
|
6
|
-
import { u as ko } from "./usePrinter-
|
|
7
|
-
import { u as xo } from "./useSvgExport-
|
|
8
|
-
import { u as Ge } from "./useNestedProp-
|
|
9
|
-
import { u as Co } from "./useThemeCheck-
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { u as
|
|
16
|
-
import { A as
|
|
17
|
-
import { B as xt } from "./BaseZoomControls-
|
|
18
|
-
import { _ as
|
|
3
|
+
import { j as io, t as bt, e as uo, K as ro, m as co, p as De, o as wt, q as kt, r as vo, l as fo, X as mo, a0 as ho, a1 as po, T as go } from "./lib-DMzrGQHK.js";
|
|
4
|
+
import { u as yo } from "./useConfig-DTHxOX6V.js";
|
|
5
|
+
import { u as bo, B as wo } from "./BaseScanner-BON3d_Sx.js";
|
|
6
|
+
import { u as ko } from "./usePrinter-C4t8DdQ-.js";
|
|
7
|
+
import { u as xo } from "./useSvgExport-BTG4hVPO.js";
|
|
8
|
+
import { u as Ge } from "./useNestedProp-DH0BEVVS.js";
|
|
9
|
+
import { u as Co } from "./useThemeCheck-C9Ccl7U9.js";
|
|
10
|
+
import { u as $o } from "./useUserOptionState-B7Ej974k.js";
|
|
11
|
+
import { u as So } from "./useChartAccessibility-cp6XQtqi.js";
|
|
12
|
+
import To from "./img-CjTQXS0U.js";
|
|
13
|
+
import Po from "./Title-BbKoiBk2.js";
|
|
14
|
+
import Mo from "./vue_ui_word_cloud-mKAtBxHR.js";
|
|
15
|
+
import { u as Io } from "./usePanZoom-BbDhcKWf.js";
|
|
16
|
+
import { A as Ao } from "./A11yDataTable-BpmuNomI.js";
|
|
17
|
+
import { B as xt } from "./BaseZoomControls-CVSC1-SU.js";
|
|
18
|
+
import { _ as Fo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
19
|
function Oo({
|
|
20
20
|
word: a,
|
|
21
21
|
fontSize: s,
|
|
22
|
-
pad:
|
|
22
|
+
pad: m,
|
|
23
23
|
canvas: c,
|
|
24
24
|
ctx: r,
|
|
25
|
-
svg:
|
|
25
|
+
svg: f
|
|
26
26
|
}) {
|
|
27
|
-
const n = `${
|
|
27
|
+
const n = `${f.style && f.style.bold ? "bold " : ""}${s}px Arial`;
|
|
28
28
|
r.font = n;
|
|
29
|
-
const p = r.measureText(a.name), h = Math.ceil(p.width) + 2 + (
|
|
29
|
+
const p = r.measureText(a.name), h = Math.ceil(p.width) + 2 + (m ? m * 2 : 0), g = Math.ceil(s) + 2 + (m ? m * 2 : 0);
|
|
30
30
|
c.width = h, c.height = g, r.font = n, r.textAlign = "center", r.textBaseline = "middle", r.fillStyle = "black", r.fillText(a.name, h / 2, g / 2);
|
|
31
31
|
const y = r.getImageData(0, 0, h, g).data, k = [], l = [];
|
|
32
|
-
let u = h,
|
|
32
|
+
let u = h, I = g, x = 0, P = 0, d = !1;
|
|
33
33
|
for (let C = 0; C < g; C += 1) {
|
|
34
34
|
const _ = C * h * 4;
|
|
35
35
|
let E = -1, N = !1;
|
|
36
36
|
for (let z = 0; z < h; z += 1) {
|
|
37
37
|
const q = _ + z * 4 + 3;
|
|
38
|
-
y[q] > 1 ? (k.push([z, C]), d = !0, z < u && (u = z), z > x && (x = z), C <
|
|
38
|
+
y[q] > 1 ? (k.push([z, C]), d = !0, z < u && (u = z), z > x && (x = z), C < I && (I = C), C > P && (P = C), N || (N = !0, E = z)) : N && (l.push([C, E, z - 1]), N = !1, E = -1);
|
|
39
39
|
}
|
|
40
40
|
N && l.push([C, E, h - 1]);
|
|
41
41
|
}
|
|
42
|
-
return d || (u = 0,
|
|
42
|
+
return d || (u = 0, I = 0, x = 0, P = 0), {
|
|
43
43
|
w: h,
|
|
44
44
|
h: g,
|
|
45
45
|
wordMask: k,
|
|
46
46
|
runs: l,
|
|
47
47
|
minX: u,
|
|
48
|
-
minY:
|
|
48
|
+
minY: I,
|
|
49
49
|
maxX: x,
|
|
50
|
-
maxY:
|
|
50
|
+
maxY: P
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
function Xo(a) {
|
|
54
54
|
const s = [];
|
|
55
55
|
if (!a.length) return s;
|
|
56
|
-
let
|
|
57
|
-
for (let
|
|
58
|
-
const i = a[
|
|
59
|
-
n !==
|
|
56
|
+
let m = a[0][1], c = a[0][0], r = c;
|
|
57
|
+
for (let f = 1; f < a.length; f += 1) {
|
|
58
|
+
const i = a[f][0], n = a[f][1];
|
|
59
|
+
n !== m ? (s.push([m, c, r]), m = n, c = i, r = i) : (i === r + 1 || (s.push([m, c, r]), c = i), r = i);
|
|
60
60
|
}
|
|
61
|
-
return s.push([
|
|
61
|
+
return s.push([m, c, r]), s;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Tt(a, s) {
|
|
64
64
|
return 4294967295 >>> 32 - (s - a + 1) << a >>> 0;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Pt(a) {
|
|
67
67
|
return 4294967295 << a >>> 0;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Mt(a) {
|
|
70
70
|
return 4294967295 >>> 31 - a >>> 0;
|
|
71
71
|
}
|
|
72
72
|
function Ro({
|
|
73
73
|
maskBits: a,
|
|
74
74
|
maskRowStride: s,
|
|
75
|
-
maskW:
|
|
75
|
+
maskW: m,
|
|
76
76
|
maskH: c,
|
|
77
77
|
wx: r,
|
|
78
|
-
wy:
|
|
78
|
+
wy: f,
|
|
79
79
|
runs: i
|
|
80
80
|
}) {
|
|
81
81
|
for (let n = 0; n < i.length; n += 1) {
|
|
82
|
-
const p = i[n][0], h = i[n][1], g = i[n][2], b =
|
|
82
|
+
const p = i[n][0], h = i[n][1], g = i[n][2], b = f + p;
|
|
83
83
|
if (b < 0 || b >= c) return !1;
|
|
84
84
|
const y = r + h, k = r + g;
|
|
85
|
-
if (y < 0 || k >=
|
|
86
|
-
const l = b * s, u = y >>> 5,
|
|
87
|
-
if (u ===
|
|
88
|
-
const d = a[l + u], C =
|
|
85
|
+
if (y < 0 || k >= m) return !1;
|
|
86
|
+
const l = b * s, u = y >>> 5, I = k >>> 5, x = y & 31, P = k & 31;
|
|
87
|
+
if (u === I) {
|
|
88
|
+
const d = a[l + u], C = Tt(x, P);
|
|
89
89
|
if (d & C) return !1;
|
|
90
90
|
} else {
|
|
91
91
|
{
|
|
92
|
-
const d = a[l + u], C =
|
|
92
|
+
const d = a[l + u], C = Pt(x);
|
|
93
93
|
if (d & C) return !1;
|
|
94
94
|
}
|
|
95
|
-
for (let d = u + 1; d <
|
|
95
|
+
for (let d = u + 1; d < I; d += 1)
|
|
96
96
|
if (a[l + d]) return !1;
|
|
97
97
|
{
|
|
98
|
-
const d = a[l +
|
|
98
|
+
const d = a[l + I], C = Mt(P);
|
|
99
99
|
if (d & C) return !1;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
@@ -105,46 +105,46 @@ function Ro({
|
|
|
105
105
|
function zo({
|
|
106
106
|
maskBits: a,
|
|
107
107
|
maskRowStride: s,
|
|
108
|
-
maskW:
|
|
108
|
+
maskW: m,
|
|
109
109
|
maskH: c,
|
|
110
110
|
wx: r,
|
|
111
|
-
wy:
|
|
111
|
+
wy: f,
|
|
112
112
|
runs: i
|
|
113
113
|
}) {
|
|
114
114
|
for (let n = 0; n < i.length; n += 1) {
|
|
115
|
-
const p = i[n][0], h = i[n][1], g = i[n][2], b =
|
|
115
|
+
const p = i[n][0], h = i[n][1], g = i[n][2], b = f + p;
|
|
116
116
|
if (b < 0 || b >= c) continue;
|
|
117
117
|
const y = r + h, k = r + g;
|
|
118
|
-
if (k < 0 || y >=
|
|
119
|
-
const l = b * s, u = y >>> 5,
|
|
120
|
-
if (u ===
|
|
121
|
-
const d =
|
|
118
|
+
if (k < 0 || y >= m) continue;
|
|
119
|
+
const l = b * s, u = y >>> 5, I = k >>> 5, x = y & 31, P = k & 31;
|
|
120
|
+
if (u === I) {
|
|
121
|
+
const d = Tt(x, P);
|
|
122
122
|
a[l + u] |= d;
|
|
123
123
|
} else {
|
|
124
124
|
{
|
|
125
|
-
const d =
|
|
125
|
+
const d = Pt(x);
|
|
126
126
|
a[l + u] |= d;
|
|
127
127
|
}
|
|
128
|
-
for (let d = u + 1; d <
|
|
128
|
+
for (let d = u + 1; d < I; d += 1)
|
|
129
129
|
a[l + d] = 4294967295;
|
|
130
130
|
{
|
|
131
|
-
const d =
|
|
132
|
-
a[l +
|
|
131
|
+
const d = Mt(P);
|
|
132
|
+
a[l + I] |= d;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
function Yo({ wordMask: a, w: s, h:
|
|
138
|
-
const r = new Uint8Array(s *
|
|
137
|
+
function Yo({ wordMask: a, w: s, h: m, dilation: c }) {
|
|
138
|
+
const r = new Uint8Array(s * m), f = [];
|
|
139
139
|
for (let n = 0; n < a.length; n += 1) {
|
|
140
140
|
const p = a[n][0], g = a[n][1] * s + p;
|
|
141
|
-
r[g] || (r[g] = 1,
|
|
141
|
+
r[g] || (r[g] = 1, f.push(g));
|
|
142
142
|
}
|
|
143
|
-
for (let n = 0; n <
|
|
144
|
-
const p =
|
|
143
|
+
for (let n = 0; n < f.length; n += 1) {
|
|
144
|
+
const p = f[n], h = p / s | 0, g = p - h * s;
|
|
145
145
|
for (let b = -c; b <= c; b += 1) {
|
|
146
146
|
const y = h + b;
|
|
147
|
-
if (y < 0 || y >=
|
|
147
|
+
if (y < 0 || y >= m) continue;
|
|
148
148
|
const k = y * s;
|
|
149
149
|
for (let l = -c; l <= c; l += 1) {
|
|
150
150
|
if (l === 0 && b === 0) continue;
|
|
@@ -161,25 +161,20 @@ function Yo({ wordMask: a, w: s, h: f, dilation: c }) {
|
|
|
161
161
|
}
|
|
162
162
|
return i;
|
|
163
163
|
}
|
|
164
|
-
function Wo({
|
|
165
|
-
|
|
166
|
-
w: s,
|
|
167
|
-
h: f,
|
|
168
|
-
dilation: c
|
|
169
|
-
}) {
|
|
170
|
-
const r = new Uint8Array(s * f), m = [];
|
|
164
|
+
function Wo({ runs: a, w: s, h: m, dilation: c }) {
|
|
165
|
+
const r = new Uint8Array(s * m), f = [];
|
|
171
166
|
for (let n = 0; n < a.length; n += 1) {
|
|
172
167
|
const p = a[n], h = p[0], g = p[1], b = p[2], y = h * s;
|
|
173
168
|
for (let k = g; k <= b; k += 1) {
|
|
174
169
|
const l = y + k;
|
|
175
|
-
r[l] || (r[l] = 1,
|
|
170
|
+
r[l] || (r[l] = 1, f.push(l));
|
|
176
171
|
}
|
|
177
172
|
}
|
|
178
|
-
for (let n = 0; n <
|
|
179
|
-
const p =
|
|
173
|
+
for (let n = 0; n < f.length; n += 1) {
|
|
174
|
+
const p = f[n], h = p / s | 0, g = p - h * s;
|
|
180
175
|
for (let b = -c; b <= c; b += 1) {
|
|
181
176
|
const y = h + b;
|
|
182
|
-
if (y < 0 || y >=
|
|
177
|
+
if (y < 0 || y >= m) continue;
|
|
183
178
|
const k = y * s;
|
|
184
179
|
for (let l = -c; l <= c; l += 1) {
|
|
185
180
|
if (l === 0 && b === 0) continue;
|
|
@@ -189,7 +184,7 @@ function Wo({
|
|
|
189
184
|
}
|
|
190
185
|
}
|
|
191
186
|
const i = [];
|
|
192
|
-
for (let n = 0; n <
|
|
187
|
+
for (let n = 0; n < m; n += 1) {
|
|
193
188
|
const p = n * s;
|
|
194
189
|
let h = -1, g = !1;
|
|
195
190
|
for (let b = 0; b < s; b += 1)
|
|
@@ -199,19 +194,22 @@ function Wo({
|
|
|
199
194
|
return i;
|
|
200
195
|
}
|
|
201
196
|
function Do(a, s) {
|
|
202
|
-
const
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
197
|
+
const m = a.runs, c = a.w, r = a.h, f = Math.max(1, Math.round(c * s)), i = Math.max(
|
|
198
|
+
1,
|
|
199
|
+
Math.round(r * s)
|
|
200
|
+
), n = new Array(i);
|
|
201
|
+
let p = f, h = i, g = 0, b = 0, y = !1;
|
|
202
|
+
for (let l = 0; l < m.length; l += 1) {
|
|
203
|
+
const u = m[l], I = u[0], x = u[1], P = u[2], d = Math.round(I * s);
|
|
206
204
|
if (d < 0 || d >= i) continue;
|
|
207
|
-
const C = Math.round(x * s), _ = Math.round((
|
|
205
|
+
const C = Math.round(x * s), _ = Math.round((P + 1) * s) - 1;
|
|
208
206
|
if (_ < C) continue;
|
|
209
207
|
let E = n[d];
|
|
210
208
|
E || (E = [], n[d] = E), E.push([C, _]), y = !0, C < p && (p = C), _ > g && (g = _), d < h && (h = d), d > b && (b = d);
|
|
211
209
|
}
|
|
212
210
|
if (!y)
|
|
213
211
|
return {
|
|
214
|
-
w:
|
|
212
|
+
w: f,
|
|
215
213
|
h: i,
|
|
216
214
|
runs: [],
|
|
217
215
|
minX: 0,
|
|
@@ -223,16 +221,16 @@ function Do(a, s) {
|
|
|
223
221
|
for (let l = 0; l < i; l += 1) {
|
|
224
222
|
const u = n[l];
|
|
225
223
|
if (!u || u.length === 0) continue;
|
|
226
|
-
u.sort((
|
|
227
|
-
let
|
|
228
|
-
for (let
|
|
229
|
-
const d = u[
|
|
230
|
-
d <= x + 1 ? C > x && (x = C) : (k.push([l,
|
|
224
|
+
u.sort((P, d) => P[0] - d[0]);
|
|
225
|
+
let I = u[0][0], x = u[0][1];
|
|
226
|
+
for (let P = 1; P < u.length; P += 1) {
|
|
227
|
+
const d = u[P][0], C = u[P][1];
|
|
228
|
+
d <= x + 1 ? C > x && (x = C) : (k.push([l, I, x]), I = d, x = C);
|
|
231
229
|
}
|
|
232
|
-
k.push([l,
|
|
230
|
+
k.push([l, I, x]);
|
|
233
231
|
}
|
|
234
232
|
return {
|
|
235
|
-
w:
|
|
233
|
+
w: f,
|
|
236
234
|
h: i,
|
|
237
235
|
runs: k,
|
|
238
236
|
minX: p,
|
|
@@ -241,63 +239,75 @@ function Do(a, s) {
|
|
|
241
239
|
maxY: b
|
|
242
240
|
};
|
|
243
241
|
}
|
|
244
|
-
const Ct = /* @__PURE__ */ new Map(),
|
|
245
|
-
function Eo({ word: a, fontSize: s, pad:
|
|
246
|
-
const r = c.style && c.style.bold ? 1 : 0,
|
|
247
|
-
return `${a.name}::${s}::${
|
|
242
|
+
const Ct = /* @__PURE__ */ new Map(), $t = /* @__PURE__ */ new Map();
|
|
243
|
+
function Eo({ word: a, fontSize: s, pad: m, svg: c }) {
|
|
244
|
+
const r = c.style && c.style.bold ? 1 : 0, f = m || 0;
|
|
245
|
+
return `${a.name}::${s}::${f}::${r}`;
|
|
248
246
|
}
|
|
249
247
|
function No({
|
|
250
248
|
word: a,
|
|
251
249
|
fontSize: s,
|
|
252
|
-
pad:
|
|
250
|
+
pad: m,
|
|
253
251
|
canvas: c,
|
|
254
252
|
ctx: r,
|
|
255
|
-
svg:
|
|
253
|
+
svg: f
|
|
256
254
|
}) {
|
|
257
|
-
const i = Eo({ word: a, fontSize: s, pad:
|
|
255
|
+
const i = Eo({ word: a, fontSize: s, pad: m, svg: f }), n = Ct.get(i);
|
|
258
256
|
if (n) return { key: i, bitmap: n };
|
|
259
|
-
const p = Oo({
|
|
257
|
+
const p = Oo({
|
|
258
|
+
word: a,
|
|
259
|
+
fontSize: s,
|
|
260
|
+
pad: m,
|
|
261
|
+
canvas: c,
|
|
262
|
+
ctx: r,
|
|
263
|
+
svg: f
|
|
264
|
+
});
|
|
260
265
|
return Ct.set(i, p), { key: i, bitmap: p };
|
|
261
266
|
}
|
|
262
267
|
function Bo({
|
|
263
268
|
bitmapKey: a,
|
|
264
269
|
wordMask: s,
|
|
265
|
-
w:
|
|
270
|
+
w: m,
|
|
266
271
|
h: c,
|
|
267
272
|
dilation: r
|
|
268
273
|
}) {
|
|
269
|
-
const
|
|
274
|
+
const f = `${a}::d${r}`, i = $t.get(f);
|
|
270
275
|
if (i) return i;
|
|
271
|
-
const n = Yo({
|
|
272
|
-
|
|
276
|
+
const n = Yo({
|
|
277
|
+
wordMask: s,
|
|
278
|
+
w: m,
|
|
279
|
+
h: c,
|
|
280
|
+
dilation: r
|
|
281
|
+
}), p = Xo(n), h = { wordMask: n, runs: p };
|
|
282
|
+
return $t.set(f, h), h;
|
|
273
283
|
}
|
|
274
|
-
const Zo = 6, Vo = 2,
|
|
284
|
+
const Zo = 6, Vo = 2, It = Math.PI / 180, At = [], Ft = [];
|
|
275
285
|
for (let a = 0; a < 360; a += Zo) {
|
|
276
|
-
const s = a *
|
|
277
|
-
|
|
286
|
+
const s = a * It;
|
|
287
|
+
At.push(Math.cos(s)), Ft.push(Math.sin(s));
|
|
278
288
|
}
|
|
279
289
|
const Ot = [], Xt = [];
|
|
280
290
|
for (let a = 0; a < 360; a += Vo) {
|
|
281
|
-
const s = a *
|
|
291
|
+
const s = a * It;
|
|
282
292
|
Ot.push(Math.cos(s)), Xt.push(Math.sin(s));
|
|
283
293
|
}
|
|
284
|
-
function _o(a, s,
|
|
294
|
+
function _o(a, s, m) {
|
|
285
295
|
if (!a.length) return;
|
|
286
|
-
let c = 1 / 0, r = -1 / 0,
|
|
296
|
+
let c = 1 / 0, r = -1 / 0, f = 1 / 0, i = -1 / 0;
|
|
287
297
|
for (let l = 0; l < a.length; l += 1) {
|
|
288
|
-
const u = a[l],
|
|
289
|
-
|
|
298
|
+
const u = a[l], I = u.x + u.minX, x = u.x + u.maxX, P = u.y + u.minY, d = u.y + u.maxY;
|
|
299
|
+
I < c && (c = I), x > r && (r = x), P < f && (f = P), d > i && (i = d);
|
|
290
300
|
}
|
|
291
|
-
if (!isFinite(c) || !isFinite(r) || !isFinite(
|
|
301
|
+
if (!isFinite(c) || !isFinite(r) || !isFinite(f) || !isFinite(i)) return;
|
|
292
302
|
const n = Math.max(
|
|
293
303
|
Math.abs(c),
|
|
294
304
|
Math.abs(r)
|
|
295
305
|
), p = Math.max(
|
|
296
|
-
Math.abs(
|
|
306
|
+
Math.abs(f),
|
|
297
307
|
Math.abs(i)
|
|
298
308
|
);
|
|
299
309
|
if (n === 0 || p === 0) return;
|
|
300
|
-
const h = 0.9, g = s * 0.5 * h / n, b =
|
|
310
|
+
const h = 0.9, g = s * 0.5 * h / n, b = m * 0.5 * h / p;
|
|
301
311
|
let y = Math.min(g, b);
|
|
302
312
|
if (y <= 1) return;
|
|
303
313
|
const k = 4;
|
|
@@ -313,13 +323,13 @@ function Uo() {
|
|
|
313
323
|
function Lo({
|
|
314
324
|
value: a,
|
|
315
325
|
minimumValue: s,
|
|
316
|
-
maximumValue:
|
|
326
|
+
maximumValue: m,
|
|
317
327
|
configuredMinimumFontSize: c,
|
|
318
328
|
maximumFontSize: r
|
|
319
329
|
}) {
|
|
320
|
-
if (
|
|
330
|
+
if (m === s)
|
|
321
331
|
return r;
|
|
322
|
-
const i = (a - s) / (
|
|
332
|
+
const i = (a - s) / (m - s) * (r - c) + c;
|
|
323
333
|
return Math.max(
|
|
324
334
|
c,
|
|
325
335
|
Math.min(r, i)
|
|
@@ -328,21 +338,21 @@ function Lo({
|
|
|
328
338
|
function qo({
|
|
329
339
|
currentBitmap: a,
|
|
330
340
|
strictPixelPadding: s,
|
|
331
|
-
scaleFactor:
|
|
341
|
+
scaleFactor: m,
|
|
332
342
|
baseBitmap: c,
|
|
333
343
|
bitmapKey: r
|
|
334
344
|
}) {
|
|
335
|
-
let
|
|
345
|
+
let f = a.runs;
|
|
336
346
|
const i = a.w, n = a.h, p = a.minX, h = a.minY, g = a.maxX, b = a.maxY;
|
|
337
|
-
return !s || !
|
|
338
|
-
runs:
|
|
347
|
+
return !s || !f.length ? {
|
|
348
|
+
runs: f,
|
|
339
349
|
bitmapWidth: i,
|
|
340
350
|
bitmapHeight: n,
|
|
341
351
|
bitmapMinimumX: p,
|
|
342
352
|
bitmapMinimumY: h,
|
|
343
353
|
bitmapMaximumX: g,
|
|
344
354
|
bitmapMaximumY: b
|
|
345
|
-
} :
|
|
355
|
+
} : m === 1 ? {
|
|
346
356
|
runs: Bo({
|
|
347
357
|
bitmapKey: r,
|
|
348
358
|
wordMask: c.wordMask,
|
|
@@ -358,7 +368,7 @@ function qo({
|
|
|
358
368
|
bitmapMaximumY: b
|
|
359
369
|
} : {
|
|
360
370
|
runs: Wo({
|
|
361
|
-
runs:
|
|
371
|
+
runs: f,
|
|
362
372
|
w: i,
|
|
363
373
|
h: n,
|
|
364
374
|
dilation: 2
|
|
@@ -371,13 +381,13 @@ function qo({
|
|
|
371
381
|
bitmapMaximumY: b
|
|
372
382
|
};
|
|
373
383
|
}
|
|
374
|
-
async function
|
|
384
|
+
async function St({
|
|
375
385
|
baseBitmap: a,
|
|
376
386
|
baseFontSize: s,
|
|
377
|
-
minimumScaleFactor:
|
|
387
|
+
minimumScaleFactor: m,
|
|
378
388
|
maskBits: c,
|
|
379
389
|
maskRowStride: r,
|
|
380
|
-
maskWidth:
|
|
390
|
+
maskWidth: f,
|
|
381
391
|
maskHeight: i,
|
|
382
392
|
centerX: n,
|
|
383
393
|
centerY: p,
|
|
@@ -388,13 +398,13 @@ async function $t({
|
|
|
388
398
|
minimumFontSize: k,
|
|
389
399
|
rawWord: l,
|
|
390
400
|
cosineArray: u,
|
|
391
|
-
sineArray:
|
|
401
|
+
sineArray: I,
|
|
392
402
|
radiusStep: x,
|
|
393
|
-
maximumAttempts:
|
|
403
|
+
maximumAttempts: P,
|
|
394
404
|
maybeYield: d
|
|
395
405
|
}) {
|
|
396
406
|
let C = 1;
|
|
397
|
-
for (; C >=
|
|
407
|
+
for (; C >= m; ) {
|
|
398
408
|
const _ = C === 1 ? a : Do(a, C), E = qo({
|
|
399
409
|
currentBitmap: _,
|
|
400
410
|
strictPixelPadding: b,
|
|
@@ -411,20 +421,20 @@ async function $t({
|
|
|
411
421
|
bitmapMaximumY: re
|
|
412
422
|
} = E;
|
|
413
423
|
let J = 0, H = 0;
|
|
414
|
-
for (; J < h && H <
|
|
424
|
+
for (; J < h && H < P; ) {
|
|
415
425
|
for (let O = 0; O < u.length; O += 1) {
|
|
416
426
|
H += 1;
|
|
417
427
|
const Q = Math.round(
|
|
418
428
|
n + J * u[O] - z / 2
|
|
419
429
|
), ee = Math.round(
|
|
420
|
-
p + J *
|
|
430
|
+
p + J * I[O] - q / 2
|
|
421
431
|
);
|
|
422
|
-
if (Q < 0 || ee < 0 || Q + z >
|
|
432
|
+
if (Q < 0 || ee < 0 || Q + z > f || ee + q > i)
|
|
423
433
|
continue;
|
|
424
434
|
if (Ro({
|
|
425
435
|
maskBits: c,
|
|
426
436
|
maskRowStride: r,
|
|
427
|
-
maskW:
|
|
437
|
+
maskW: f,
|
|
428
438
|
maskH: i,
|
|
429
439
|
wx: Q,
|
|
430
440
|
wy: ee,
|
|
@@ -433,9 +443,9 @@ async function $t({
|
|
|
433
443
|
const { __wcIndex: e, ...R } = l, we = Math.max(
|
|
434
444
|
k,
|
|
435
445
|
Math.round(s * C)
|
|
436
|
-
),
|
|
446
|
+
), me = {
|
|
437
447
|
...R,
|
|
438
|
-
x: Q -
|
|
448
|
+
x: Q - f / 2,
|
|
439
449
|
y: ee - i / 2,
|
|
440
450
|
fontSize: we,
|
|
441
451
|
width: z,
|
|
@@ -449,12 +459,12 @@ async function $t({
|
|
|
449
459
|
return zo({
|
|
450
460
|
maskBits: c,
|
|
451
461
|
maskRowStride: r,
|
|
452
|
-
maskW:
|
|
462
|
+
maskW: f,
|
|
453
463
|
maskH: i,
|
|
454
464
|
wx: Q,
|
|
455
465
|
wy: ee,
|
|
456
466
|
runs: N
|
|
457
|
-
}),
|
|
467
|
+
}), me;
|
|
458
468
|
}
|
|
459
469
|
}
|
|
460
470
|
J += x, (H & 1023) === 0 && await d();
|
|
@@ -466,10 +476,10 @@ async function $t({
|
|
|
466
476
|
async function Ho({
|
|
467
477
|
baseBitmap: a,
|
|
468
478
|
baseFontSize: s,
|
|
469
|
-
minimumScaleFactor:
|
|
479
|
+
minimumScaleFactor: m,
|
|
470
480
|
maskBits: c,
|
|
471
481
|
maskRowStride: r,
|
|
472
|
-
maskWidth:
|
|
482
|
+
maskWidth: f,
|
|
473
483
|
maskHeight: i,
|
|
474
484
|
centerX: n,
|
|
475
485
|
centerY: p,
|
|
@@ -480,16 +490,16 @@ async function Ho({
|
|
|
480
490
|
minimumFontSize: k,
|
|
481
491
|
rawWord: l,
|
|
482
492
|
maybeYield: u,
|
|
483
|
-
spiralRadiusStep:
|
|
493
|
+
spiralRadiusStep: I,
|
|
484
494
|
fallbackSpiralRadiusStep: x
|
|
485
495
|
}) {
|
|
486
|
-
const
|
|
496
|
+
const P = await St({
|
|
487
497
|
baseBitmap: a,
|
|
488
498
|
baseFontSize: s,
|
|
489
|
-
minimumScaleFactor:
|
|
499
|
+
minimumScaleFactor: m,
|
|
490
500
|
maskBits: c,
|
|
491
501
|
maskRowStride: r,
|
|
492
|
-
maskWidth:
|
|
502
|
+
maskWidth: f,
|
|
493
503
|
maskHeight: i,
|
|
494
504
|
centerX: n,
|
|
495
505
|
centerY: p,
|
|
@@ -499,19 +509,19 @@ async function Ho({
|
|
|
499
509
|
bitmapKey: y,
|
|
500
510
|
minimumFontSize: k,
|
|
501
511
|
rawWord: l,
|
|
502
|
-
cosineArray:
|
|
503
|
-
sineArray:
|
|
504
|
-
radiusStep:
|
|
512
|
+
cosineArray: At,
|
|
513
|
+
sineArray: Ft,
|
|
514
|
+
radiusStep: I,
|
|
505
515
|
maximumAttempts: 1e4,
|
|
506
516
|
maybeYield: u
|
|
507
517
|
});
|
|
508
|
-
return
|
|
518
|
+
return P || await St({
|
|
509
519
|
baseBitmap: a,
|
|
510
520
|
baseFontSize: s,
|
|
511
|
-
minimumScaleFactor:
|
|
521
|
+
minimumScaleFactor: m,
|
|
512
522
|
maskBits: c,
|
|
513
523
|
maskRowStride: r,
|
|
514
|
-
maskWidth:
|
|
524
|
+
maskWidth: f,
|
|
515
525
|
maskHeight: i,
|
|
516
526
|
centerX: n,
|
|
517
527
|
centerY: p,
|
|
@@ -531,17 +541,17 @@ async function Ho({
|
|
|
531
541
|
async function jo({
|
|
532
542
|
words: a,
|
|
533
543
|
proximity: s = 0,
|
|
534
|
-
svg:
|
|
544
|
+
svg: m,
|
|
535
545
|
strictPixelPadding: c,
|
|
536
546
|
onProgress: r,
|
|
537
|
-
debugTiming:
|
|
547
|
+
debugTiming: f = !1
|
|
538
548
|
}) {
|
|
539
549
|
const i = Uo(), n = i(), p = 12;
|
|
540
550
|
let h = n;
|
|
541
551
|
async function g() {
|
|
542
552
|
i() - h >= p && (await new Promise((R) => setTimeout(R, 0)), h = i());
|
|
543
553
|
}
|
|
544
|
-
const b =
|
|
554
|
+
const b = m.width, y = m.height, k = Math.round(b), l = Math.round(y), u = 1, I = m.minFontSize, x = Math.min(m.maxFontSize, 100), P = a.map((e) => e.value), d = Math.min(...P), C = Math.max(...P);
|
|
545
555
|
if (k <= 0 || l <= 0) return [];
|
|
546
556
|
const _ = k + 31 >>> 5, E = new Uint32Array(_ * l), N = document.createElement("canvas"), z = N.getContext("2d", { willReadFrequently: !0 });
|
|
547
557
|
N.width = k, N.height = l;
|
|
@@ -557,27 +567,27 @@ async function jo({
|
|
|
557
567
|
value: R.value,
|
|
558
568
|
minimumValue: d,
|
|
559
569
|
maximumValue: C,
|
|
560
|
-
configuredMinimumFontSize:
|
|
570
|
+
configuredMinimumFontSize: I,
|
|
561
571
|
maximumFontSize: x
|
|
562
|
-
}),
|
|
572
|
+
}), Me = No({
|
|
563
573
|
word: R,
|
|
564
574
|
fontSize: de,
|
|
565
575
|
pad: s,
|
|
566
576
|
canvas: N,
|
|
567
577
|
ctx: z,
|
|
568
|
-
svg:
|
|
569
|
-
}), he =
|
|
570
|
-
if (ke <= 0 ||
|
|
578
|
+
svg: m
|
|
579
|
+
}), he = Me.key, pe = Me.bitmap, ke = pe.w, Ie = pe.h;
|
|
580
|
+
if (ke <= 0 || Ie <= 0) {
|
|
571
581
|
await g();
|
|
572
582
|
continue;
|
|
573
583
|
}
|
|
574
|
-
const
|
|
584
|
+
const Ae = Math.max(
|
|
575
585
|
u / de,
|
|
576
586
|
0.1
|
|
577
587
|
), j = await Ho({
|
|
578
588
|
baseBitmap: pe,
|
|
579
589
|
baseFontSize: de,
|
|
580
|
-
minimumScaleFactor:
|
|
590
|
+
minimumScaleFactor: Ae,
|
|
581
591
|
maskBits: E,
|
|
582
592
|
maskRowStride: _,
|
|
583
593
|
maskWidth: k,
|
|
@@ -604,7 +614,7 @@ async function jo({
|
|
|
604
614
|
return [];
|
|
605
615
|
_o(O, k, l);
|
|
606
616
|
const ce = i() - n;
|
|
607
|
-
return
|
|
617
|
+
return f && typeof console < "u" && console.log && console.log(
|
|
608
618
|
"[vue-data-ui][word-cloud] positionWordsAsync:",
|
|
609
619
|
`${ce.toFixed(2)} ms for ${a.length} words`
|
|
610
620
|
), O.sort((e, R) => R.fontSize - e.fontSize);
|
|
@@ -638,15 +648,25 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
638
648
|
}
|
|
639
649
|
},
|
|
640
650
|
emits: ["copyAlt"],
|
|
641
|
-
setup(a, { expose: s, emit:
|
|
642
|
-
const c = se(() => import("./Tooltip-
|
|
651
|
+
setup(a, { expose: s, emit: m }) {
|
|
652
|
+
const c = se(() => import("./Tooltip-Cvt7Fi0Q.js")), r = se(() => import("./BaseIcon-DX0hTWa-.js")), f = se(() => import("./vue-ui-accordion-BHmfmb_6.js")), i = se(() => import("./DataTable-cMnb68Ik.js")), n = se(
|
|
653
|
+
() => import("./PenAndPaper-CJDoB5H9.js")
|
|
654
|
+
), p = se(
|
|
655
|
+
() => import("./UserOptions-DVduN6X7.js")
|
|
656
|
+
), h = se(
|
|
657
|
+
() => import("./PackageVersion-DVvvyQXB.js")
|
|
658
|
+
), g = se(
|
|
659
|
+
() => import("./BaseDraggableDialog-Di8Hlru3.js")
|
|
660
|
+
), { vue_ui_word_cloud: b } = yo(), { isThemeValid: y, warnInvalidTheme: k } = Co(), l = a, u = m, I = G({
|
|
643
661
|
get() {
|
|
644
662
|
return !!l.dataset && l.dataset.length;
|
|
645
663
|
},
|
|
646
664
|
set(t) {
|
|
647
665
|
return t;
|
|
648
666
|
}
|
|
649
|
-
}), x =
|
|
667
|
+
}), x = M(io()), P = M(0), d = M(null), C = M(null), _ = M(null), E = M(0), N = M(0), z = M(!1), q = M(null), ae = M(null), ie = M(!1), ue = M(!1), re = M(null), J = M(!1), H = M(!1), O = M(null), Q = M({ x: 0, y: 0 }), ee = M("pointer"), ce = M(!1), e = M(xe()), R = G(
|
|
668
|
+
() => e.value.userOptions.useCursorPointer
|
|
669
|
+
), we = G(() => bt({
|
|
650
670
|
defaultConfig: {
|
|
651
671
|
userOptions: { show: !1 },
|
|
652
672
|
table: { show: !1 },
|
|
@@ -666,7 +686,7 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
666
686
|
}
|
|
667
687
|
},
|
|
668
688
|
userConfig: e.value.skeletonConfig ?? {}
|
|
669
|
-
})), { loading:
|
|
689
|
+
})), { loading: me, FINAL_DATASET: de, manualLoading: Me } = bo({
|
|
670
690
|
...Qt(l),
|
|
671
691
|
FINAL_CONFIG: e,
|
|
672
692
|
prepareConfig: xe,
|
|
@@ -729,14 +749,16 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
729
749
|
defaultConfig: e.value,
|
|
730
750
|
userConfig: we.value
|
|
731
751
|
})
|
|
732
|
-
}), he =
|
|
752
|
+
}), he = M(pe());
|
|
733
753
|
function pe() {
|
|
734
754
|
return typeof de.value == "string" ? uo(de.value) : de.value.map((t, v) => ({
|
|
735
755
|
...t,
|
|
736
756
|
value: ro(t.value)
|
|
737
757
|
}));
|
|
738
758
|
}
|
|
739
|
-
const { userOptionsVisible: ke, setUserOptionsVisibility:
|
|
759
|
+
const { userOptionsVisible: ke, setUserOptionsVisibility: Ie, keepUserOptionState: Ae } = $o({ config: e.value }), { svgRef: j } = So({
|
|
760
|
+
config: e.value.style.chart.title
|
|
761
|
+
});
|
|
740
762
|
function xe() {
|
|
741
763
|
const t = Ge({
|
|
742
764
|
userConfig: l.config,
|
|
@@ -746,18 +768,18 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
746
768
|
if (!y.value(t))
|
|
747
769
|
return k(t), t;
|
|
748
770
|
const o = Ge({
|
|
749
|
-
userConfig:
|
|
771
|
+
userConfig: Mo[v] || l.config,
|
|
750
772
|
defaultConfig: t
|
|
751
|
-
}),
|
|
773
|
+
}), S = Ge({
|
|
752
774
|
userConfig: l.config,
|
|
753
775
|
defaultConfig: o
|
|
754
776
|
});
|
|
755
777
|
return {
|
|
756
|
-
|
|
757
|
-
customPalette:
|
|
778
|
+
...S,
|
|
779
|
+
customPalette: S.customPalette.length ? S.customPalette : co[v] || De
|
|
758
780
|
};
|
|
759
781
|
}
|
|
760
|
-
const Ee =
|
|
782
|
+
const Ee = M({ x: 0, y: 0 });
|
|
761
783
|
function Ne() {
|
|
762
784
|
const t = {
|
|
763
785
|
x: 0,
|
|
@@ -768,17 +790,24 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
768
790
|
Bt(t), Ee.value = {
|
|
769
791
|
x: t.x + t.width / 2,
|
|
770
792
|
y: t.y + t.height / 2
|
|
771
|
-
},
|
|
793
|
+
}, $e();
|
|
772
794
|
}
|
|
773
795
|
const Rt = yt(() => {
|
|
774
796
|
et();
|
|
775
|
-
}, 100),
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
797
|
+
}, 100), Fe = M(!1);
|
|
798
|
+
Pe(
|
|
799
|
+
() => Fe.value,
|
|
800
|
+
(t) => {
|
|
801
|
+
t === !1 && (ue.value = !0, Rt(), Ne());
|
|
802
|
+
}
|
|
803
|
+
), Pe(
|
|
804
|
+
() => l.config,
|
|
805
|
+
(t) => {
|
|
806
|
+
e.value = xe(), ke.value = !e.value.userOptions.showOnChartHover, Ke(), E.value += 1, N.value += 1, X.value.showTable = e.value.table.show, X.value.showTooltip = e.value.style.chart.tooltip.show, X.value.showZoom = e.value.style.chart.zoom.show;
|
|
807
|
+
},
|
|
808
|
+
{ deep: !0 }
|
|
809
|
+
);
|
|
810
|
+
const D = M({
|
|
782
811
|
width: e.value.style.chart.width,
|
|
783
812
|
height: e.value.style.chart.height,
|
|
784
813
|
maxFontSize: e.value.style.chart.words.maxFontSize,
|
|
@@ -792,11 +821,11 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
792
821
|
source: _.value
|
|
793
822
|
});
|
|
794
823
|
requestAnimationFrame(async () => {
|
|
795
|
-
D.value.width = Math.max(10, t), D.value.height = Math.max(10, v - 12), await We(),
|
|
824
|
+
D.value.width = Math.max(10, t), D.value.height = Math.max(10, v - 12), await We(), Fe.value = !1;
|
|
796
825
|
});
|
|
797
826
|
}, 100), Yt = () => {
|
|
798
|
-
|
|
799
|
-
}, ne =
|
|
827
|
+
Fe.value = !0, zt();
|
|
828
|
+
}, ne = mt(null), ge = mt(null);
|
|
800
829
|
eo(Ke);
|
|
801
830
|
const Be = G(() => !!e.value.debug);
|
|
802
831
|
function Ke() {
|
|
@@ -809,7 +838,7 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
809
838
|
datasetObject: t,
|
|
810
839
|
requiredAttributes: ["name", "value"]
|
|
811
840
|
}).forEach((o) => {
|
|
812
|
-
|
|
841
|
+
I.value = !1, kt({
|
|
813
842
|
componentName: "VueUiWordCloud",
|
|
814
843
|
type: "datasetSerieAttribute",
|
|
815
844
|
property: o,
|
|
@@ -817,7 +846,7 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
817
846
|
debug: Be.value
|
|
818
847
|
});
|
|
819
848
|
});
|
|
820
|
-
}), wt(l.dataset) || (
|
|
849
|
+
}), wt(l.dataset) || (Me.value = e.value.loading), e.value.responsive && (ne.value && (ge.value && ne.value.unobserve(ge.value), ne.value.disconnect()), ne.value = new ResizeObserver(Yt), ge.value = d.value.parentNode, ne.value.observe(ge.value)), Ne();
|
|
821
850
|
}
|
|
822
851
|
to(() => {
|
|
823
852
|
ne.value && (ge.value && ne.value.unobserve(ge.value), ne.value.disconnect());
|
|
@@ -826,30 +855,34 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
826
855
|
elementId: `wordCloud_${x.value}`,
|
|
827
856
|
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
|
|
828
857
|
options: e.value.userOptions.print
|
|
829
|
-
}), X =
|
|
858
|
+
}), X = M({
|
|
830
859
|
showTable: e.value.table.show,
|
|
831
860
|
showTooltip: e.value.style.chart.tooltip.show,
|
|
832
861
|
showZoom: e.value.style.chart.zoom.show
|
|
833
862
|
});
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
863
|
+
Pe(
|
|
864
|
+
e,
|
|
865
|
+
() => {
|
|
866
|
+
X.value.showTable = e.value.table.show, X.value.showTooltip = e.value.style.chart.tooltip.show, X.value.showZoom = e.value.style.chart.zoom.show;
|
|
867
|
+
},
|
|
868
|
+
{ immediate: !0 }
|
|
869
|
+
);
|
|
837
870
|
function Wt(t, v, o = "Arial") {
|
|
838
|
-
const
|
|
839
|
-
return
|
|
840
|
-
width:
|
|
871
|
+
const $ = document.createElement("canvas").getContext("2d");
|
|
872
|
+
return $.font = `${v}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
|
|
873
|
+
width: $.measureText(t).width + e.value.style.chart.words.proximity,
|
|
841
874
|
height: v
|
|
842
875
|
};
|
|
843
876
|
}
|
|
844
|
-
const W =
|
|
877
|
+
const W = M([]), Ce = /* @__PURE__ */ new Map();
|
|
845
878
|
function et() {
|
|
846
|
-
const t = [...he.value].map((
|
|
847
|
-
let B = (
|
|
879
|
+
const t = [...he.value].map(($) => $.value), v = Math.max(...t), o = Math.min(...t), S = [...he.value].map(($, w) => {
|
|
880
|
+
let B = ($.value - o) / (v - o) * (D.value.maxFontSize - D.value.minFontSize) + D.value.minFontSize;
|
|
848
881
|
B = isNaN(B) ? D.value.minFontSize : B;
|
|
849
|
-
const U = Wt(
|
|
882
|
+
const U = Wt($.name, B);
|
|
850
883
|
return {
|
|
851
|
-
|
|
852
|
-
id:
|
|
884
|
+
...$,
|
|
885
|
+
id: $.id ?? `${$.name}__${w}`,
|
|
853
886
|
fontSize: B,
|
|
854
887
|
width: U.width,
|
|
855
888
|
height: U.height,
|
|
@@ -858,12 +891,12 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
858
891
|
});
|
|
859
892
|
W.value.length = 0, Ce.clear(), jo({
|
|
860
893
|
debugTiming: Be.value,
|
|
861
|
-
words:
|
|
894
|
+
words: S,
|
|
862
895
|
svg: D.value,
|
|
863
896
|
proximity: e.value.style.chart.words.proximity,
|
|
864
897
|
strictPixelPadding: e.value.strictPixelPadding,
|
|
865
|
-
onProgress: ({ all:
|
|
866
|
-
for (const w of
|
|
898
|
+
onProgress: ({ all: $ }) => {
|
|
899
|
+
for (const w of $) {
|
|
867
900
|
const B = w.id;
|
|
868
901
|
let U = Ce.get(B);
|
|
869
902
|
if (U === void 0)
|
|
@@ -874,8 +907,8 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
874
907
|
}
|
|
875
908
|
}
|
|
876
909
|
}
|
|
877
|
-
}), W.value.sort((
|
|
878
|
-
Ce.set(
|
|
910
|
+
}), W.value.sort(($, w) => w.fontSize - $.fontSize), Ce.clear(), W.value.forEach(($, w) => {
|
|
911
|
+
Ce.set($.id, w);
|
|
879
912
|
}), ie.value = !0, ue.value = !1;
|
|
880
913
|
}
|
|
881
914
|
const Oe = G(() => {
|
|
@@ -887,10 +920,15 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
887
920
|
});
|
|
888
921
|
function _e(t = null) {
|
|
889
922
|
We(() => {
|
|
890
|
-
const v = Oe.value.head.map((
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
923
|
+
const v = Oe.value.head.map(($, w) => [[$.name], [Oe.value.body[w]]]), o = [
|
|
924
|
+
[e.value.style.chart.title.text],
|
|
925
|
+
[e.value.style.chart.title.subtitle.text],
|
|
926
|
+
[[""], [e.value.table.columnNames.value]]
|
|
927
|
+
].concat(v), S = ho(o);
|
|
928
|
+
t ? t(S) : po({
|
|
929
|
+
csvContent: S,
|
|
930
|
+
title: e.value.style.chart.title.text || "vue-ui-word-cloud"
|
|
931
|
+
});
|
|
894
932
|
});
|
|
895
933
|
}
|
|
896
934
|
const ye = G(() => {
|
|
@@ -898,7 +936,12 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
898
936
|
e.value.table.columnNames.series,
|
|
899
937
|
e.value.table.columnNames.value
|
|
900
938
|
], v = Oe.value.head.map((w, B) => {
|
|
901
|
-
const U =
|
|
939
|
+
const U = fo({
|
|
940
|
+
p: e.value.table.td.prefix,
|
|
941
|
+
v: Oe.value.body[B],
|
|
942
|
+
s: e.value.table.td.suffix,
|
|
943
|
+
r: e.value.table.td.roundingValue
|
|
944
|
+
});
|
|
902
945
|
return [
|
|
903
946
|
{
|
|
904
947
|
color: w.color,
|
|
@@ -906,7 +949,7 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
906
949
|
},
|
|
907
950
|
U
|
|
908
951
|
];
|
|
909
|
-
}), o = v.map((w) => w.map((B, U) => U === 0 ? B.name : B)),
|
|
952
|
+
}), o = v.map((w) => w.map((B, U) => U === 0 ? B.name : B)), S = {
|
|
910
953
|
th: {
|
|
911
954
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
912
955
|
color: e.value.table.th.color,
|
|
@@ -927,11 +970,11 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
927
970
|
head: t,
|
|
928
971
|
body: v,
|
|
929
972
|
a11yBody: o,
|
|
930
|
-
config:
|
|
973
|
+
config: S
|
|
931
974
|
};
|
|
932
|
-
}), le =
|
|
975
|
+
}), le = M(!1);
|
|
933
976
|
function tt(t) {
|
|
934
|
-
le.value = t,
|
|
977
|
+
le.value = t, P.value += 1;
|
|
935
978
|
}
|
|
936
979
|
function Dt() {
|
|
937
980
|
return W.value;
|
|
@@ -942,38 +985,54 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
942
985
|
function at() {
|
|
943
986
|
X.value.showTooltip = !X.value.showTooltip;
|
|
944
987
|
}
|
|
945
|
-
const be =
|
|
988
|
+
const be = M(!1);
|
|
946
989
|
function Ue() {
|
|
947
990
|
be.value = !be.value;
|
|
948
991
|
}
|
|
949
992
|
function nt() {
|
|
950
993
|
X.value.showZoom = !X.value.showZoom;
|
|
951
994
|
}
|
|
952
|
-
const Et = G(
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
995
|
+
const Et = G(
|
|
996
|
+
() => !be.value && X.value.showZoom
|
|
997
|
+
), { viewBox: Xe, resetZoom: $e, isZoom: Nt, setInitialViewBox: Bt, zoomByFactor: lt, scale: st } = Io(
|
|
998
|
+
j,
|
|
999
|
+
{
|
|
1000
|
+
x: 0,
|
|
1001
|
+
y: 0,
|
|
1002
|
+
width: D.value.width <= 0 ? 10 : D.value.width,
|
|
1003
|
+
height: D.value.height <= 0 ? 10 : D.value.height
|
|
1004
|
+
},
|
|
1005
|
+
1,
|
|
1006
|
+
Et
|
|
1007
|
+
);
|
|
1008
|
+
Pe(
|
|
1009
|
+
() => l.dataset,
|
|
1010
|
+
() => {
|
|
1011
|
+
he.value = pe(), e.value.responsive || (et(), Ne());
|
|
1012
|
+
},
|
|
1013
|
+
{ immediate: !0 }
|
|
1014
|
+
);
|
|
961
1015
|
async function Zt({ scale: t = 2 } = {}) {
|
|
962
1016
|
if (!d.value) return;
|
|
963
|
-
const { width: v, height: o } = d.value.getBoundingClientRect(),
|
|
1017
|
+
const { width: v, height: o } = d.value.getBoundingClientRect(), S = v / o, { imageUri: $, base64: w } = await To({
|
|
1018
|
+
domElement: d.value,
|
|
1019
|
+
base64: !0,
|
|
1020
|
+
img: !0,
|
|
1021
|
+
scale: t
|
|
1022
|
+
});
|
|
964
1023
|
return {
|
|
965
|
-
imageUri:
|
|
1024
|
+
imageUri: $,
|
|
966
1025
|
base64: w,
|
|
967
1026
|
title: e.value.style.chart.title.text,
|
|
968
1027
|
width: v,
|
|
969
1028
|
height: o,
|
|
970
|
-
aspectRatio:
|
|
1029
|
+
aspectRatio: S
|
|
971
1030
|
};
|
|
972
1031
|
}
|
|
973
|
-
const
|
|
1032
|
+
const Se = G(() => {
|
|
974
1033
|
const t = e.value.table.useDialog && !e.value.table.show, v = X.value.showTable;
|
|
975
1034
|
return {
|
|
976
|
-
component: t ? g :
|
|
1035
|
+
component: t ? g : f,
|
|
977
1036
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
978
1037
|
props: t ? {
|
|
979
1038
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -1001,9 +1060,12 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1001
1060
|
}
|
|
1002
1061
|
};
|
|
1003
1062
|
});
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1063
|
+
Pe(
|
|
1064
|
+
() => X.value.showTable,
|
|
1065
|
+
(t) => {
|
|
1066
|
+
e.value.table.show || (t && e.value.table.useDialog && q.value ? q.value.open() : "close" in q.value && q.value.close());
|
|
1067
|
+
}
|
|
1068
|
+
);
|
|
1007
1069
|
function it() {
|
|
1008
1070
|
X.value.showTable = !1, ae.value && ae.value.setTableIconState(!1);
|
|
1009
1071
|
}
|
|
@@ -1016,8 +1078,15 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1016
1078
|
H.value = !0, await We();
|
|
1017
1079
|
try {
|
|
1018
1080
|
if (t) {
|
|
1019
|
-
const { blob: v, url: o, text:
|
|
1020
|
-
await Promise.resolve(
|
|
1081
|
+
const { blob: v, url: o, text: S, dataUrl: $ } = await Lt();
|
|
1082
|
+
await Promise.resolve(
|
|
1083
|
+
e.value.userOptions.callbacks.svg({
|
|
1084
|
+
blob: v,
|
|
1085
|
+
url: o,
|
|
1086
|
+
text: S,
|
|
1087
|
+
dataUrl: $
|
|
1088
|
+
})
|
|
1089
|
+
);
|
|
1021
1090
|
} else
|
|
1022
1091
|
await Promise.resolve(Ut());
|
|
1023
1092
|
} finally {
|
|
@@ -1041,19 +1110,27 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1041
1110
|
function ct() {
|
|
1042
1111
|
lt(1 / 1.5, !0);
|
|
1043
1112
|
}
|
|
1044
|
-
const ve =
|
|
1113
|
+
const ve = M(null), Te = M(!1), Le = M(""), Re = M(null);
|
|
1045
1114
|
function qe() {
|
|
1046
1115
|
ve.value = null, O.value = null, z.value = !1;
|
|
1047
1116
|
}
|
|
1048
1117
|
function Ht(t, v) {
|
|
1049
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({
|
|
1118
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({
|
|
1119
|
+
datapoint: t,
|
|
1120
|
+
seriesIndex: v
|
|
1121
|
+
}), !(O.value === v && ee.value === "keyboard") && (ve.value = null, z.value = !1);
|
|
1050
1122
|
}
|
|
1051
1123
|
function dt(t, v) {
|
|
1052
|
-
e.value.events.datapointClick && e.value.events.datapointClick({
|
|
1124
|
+
e.value.events.datapointClick && e.value.events.datapointClick({
|
|
1125
|
+
datapoint: t,
|
|
1126
|
+
seriesIndex: v
|
|
1127
|
+
});
|
|
1053
1128
|
}
|
|
1054
1129
|
function jt(t) {
|
|
1055
1130
|
if (!j.value || t === null || t === void 0) return;
|
|
1056
|
-
const v = j.value.querySelector(
|
|
1131
|
+
const v = j.value.querySelector(
|
|
1132
|
+
`[data-a11y-word-index="${t}-${x.value}"]`
|
|
1133
|
+
);
|
|
1057
1134
|
if (!v) return;
|
|
1058
1135
|
const o = v.getBoundingClientRect();
|
|
1059
1136
|
Q.value = {
|
|
@@ -1062,39 +1139,46 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1062
1139
|
};
|
|
1063
1140
|
}
|
|
1064
1141
|
function vt(t, v, o = "pointer") {
|
|
1065
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({
|
|
1142
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({
|
|
1143
|
+
datapoint: t,
|
|
1144
|
+
seriesIndex: v
|
|
1145
|
+
}), !X.value.showTooltip) return;
|
|
1066
1146
|
ee.value = o, O.value = v, ve.value = t.id, Re.value = { datapoint: t, config: e.value };
|
|
1067
|
-
const
|
|
1068
|
-
if (
|
|
1147
|
+
const S = e.value.style.chart.tooltip.customFormat;
|
|
1148
|
+
if (Te.value = !1, go(S))
|
|
1069
1149
|
try {
|
|
1070
|
-
const
|
|
1150
|
+
const $ = S({
|
|
1071
1151
|
datapoint: t,
|
|
1072
1152
|
config: e.value
|
|
1073
1153
|
});
|
|
1074
|
-
typeof
|
|
1154
|
+
typeof $ == "string" && (Le.value = $, Te.value = !0);
|
|
1075
1155
|
} catch {
|
|
1076
|
-
console.warn("Custom format cannot be applied."),
|
|
1156
|
+
console.warn("Custom format cannot be applied."), Te.value = !1;
|
|
1077
1157
|
}
|
|
1078
|
-
if (!
|
|
1079
|
-
let
|
|
1080
|
-
Le.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${
|
|
1158
|
+
if (!Te.value) {
|
|
1159
|
+
let $ = `<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>`;
|
|
1160
|
+
Le.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${$}</div>`;
|
|
1081
1161
|
}
|
|
1082
1162
|
o === "keyboard" && We(() => {
|
|
1083
1163
|
jt(v);
|
|
1084
1164
|
}), z.value = !0;
|
|
1085
1165
|
}
|
|
1086
|
-
async function
|
|
1166
|
+
async function ft() {
|
|
1087
1167
|
if (u("copyAlt", {
|
|
1088
1168
|
config: e.value,
|
|
1089
1169
|
dataset: W.value
|
|
1090
1170
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
1091
|
-
console.warn(
|
|
1171
|
+
console.warn(
|
|
1172
|
+
"Vue Data UI - A callback must be set for `altCopy` in userOptions."
|
|
1173
|
+
);
|
|
1092
1174
|
return;
|
|
1093
1175
|
}
|
|
1094
|
-
await Promise.resolve(
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1176
|
+
await Promise.resolve(
|
|
1177
|
+
e.value.userOptions.callbacks.altCopy({
|
|
1178
|
+
config: e.value,
|
|
1179
|
+
dataset: W.value
|
|
1180
|
+
})
|
|
1181
|
+
);
|
|
1098
1182
|
}
|
|
1099
1183
|
function Gt() {
|
|
1100
1184
|
O.value = null, ce.value = !0;
|
|
@@ -1104,13 +1188,14 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1104
1188
|
}
|
|
1105
1189
|
function Jt(t) {
|
|
1106
1190
|
if (!j.value || be.value || document.activeElement !== j.value || !W.value.length) return;
|
|
1107
|
-
const v = t.key === "ArrowLeft" || t.key === "ArrowUp", o = t.key === "ArrowRight" || t.key === "ArrowDown",
|
|
1108
|
-
if (!v && !o &&
|
|
1109
|
-
|
|
1191
|
+
const v = t.key === "ArrowLeft" || t.key === "ArrowUp", o = t.key === "ArrowRight" || t.key === "ArrowDown", S = t.key === "Enter" || t.key === " ", $ = t.key === "Escape";
|
|
1192
|
+
if (!v && !o && !S && !$)
|
|
1193
|
+
return;
|
|
1194
|
+
if (t.preventDefault(), t.stopPropagation(), $) {
|
|
1110
1195
|
qe();
|
|
1111
1196
|
return;
|
|
1112
1197
|
}
|
|
1113
|
-
if (
|
|
1198
|
+
if (S) {
|
|
1114
1199
|
if (O.value === null) return;
|
|
1115
1200
|
const U = W.value[O.value];
|
|
1116
1201
|
if (!U) return;
|
|
@@ -1133,33 +1218,33 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1133
1218
|
generatePdf: Je,
|
|
1134
1219
|
generateImage: Qe,
|
|
1135
1220
|
generateSvg: ut,
|
|
1136
|
-
resetZoom:
|
|
1221
|
+
resetZoom: $e,
|
|
1137
1222
|
toggleTable: ot,
|
|
1138
1223
|
toggleTooltip: at,
|
|
1139
1224
|
toggleAnnotator: Ue,
|
|
1140
1225
|
toggleFullscreen: tt,
|
|
1141
1226
|
toggleZoom: nt,
|
|
1142
|
-
copyAlt:
|
|
1227
|
+
copyAlt: ft
|
|
1143
1228
|
}), (t, v) => (Y(), K("div", {
|
|
1144
1229
|
class: "vue-data-ui-component vue-ui-word-cloud",
|
|
1145
1230
|
ref_key: "wordCloudChart",
|
|
1146
1231
|
ref: d,
|
|
1147
1232
|
id: `wordCloud_${x.value}`,
|
|
1148
|
-
"data-resizing":
|
|
1233
|
+
"data-resizing": Fe.value,
|
|
1149
1234
|
"data-relayout": ue.value,
|
|
1150
1235
|
style: ze(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
1151
|
-
onMouseenter: v[3] || (v[3] = () =>
|
|
1236
|
+
onMouseenter: v[3] || (v[3] = () => T(Ie)(!0)),
|
|
1152
1237
|
onMouseleave: v[4] || (v[4] = () => {
|
|
1153
|
-
|
|
1238
|
+
T(Ie)(!1), ce.value || qe();
|
|
1154
1239
|
})
|
|
1155
1240
|
}, [
|
|
1156
|
-
|
|
1241
|
+
fe("div", {
|
|
1157
1242
|
id: `chart-instructions-${x.value}`,
|
|
1158
1243
|
class: "sr-only"
|
|
1159
1244
|
}, [
|
|
1160
|
-
|
|
1245
|
+
fe("p", null, Ye(e.value.a11y.translations.keyboardNavigation), 1)
|
|
1161
1246
|
], 8, Ko),
|
|
1162
|
-
He.value?.rows?.length ? (Y(), oe(
|
|
1247
|
+
He.value?.rows?.length ? (Y(), oe(Ao, {
|
|
1163
1248
|
key: 0,
|
|
1164
1249
|
uid: x.value,
|
|
1165
1250
|
head: He.value.headers,
|
|
@@ -1167,32 +1252,32 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1167
1252
|
notice: e.value.a11y.translations.tableAvailable,
|
|
1168
1253
|
caption: e.value.a11y.translations.tableCaption
|
|
1169
1254
|
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : L("", !0),
|
|
1170
|
-
e.value.userOptions.buttons.annotator ? (Y(), oe(
|
|
1255
|
+
e.value.userOptions.buttons.annotator ? (Y(), oe(T(n), {
|
|
1171
1256
|
key: 1,
|
|
1172
|
-
svgRef:
|
|
1257
|
+
svgRef: T(j),
|
|
1173
1258
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1174
1259
|
color: e.value.style.chart.color,
|
|
1175
1260
|
active: be.value,
|
|
1176
1261
|
isCursorPointer: R.value,
|
|
1177
1262
|
onClose: Ue
|
|
1178
1263
|
}, {
|
|
1179
|
-
"annotator-action-close":
|
|
1180
|
-
|
|
1264
|
+
"annotator-action-close": F(() => [
|
|
1265
|
+
A(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1181
1266
|
]),
|
|
1182
|
-
"annotator-action-color":
|
|
1183
|
-
|
|
1267
|
+
"annotator-action-color": F(({ color: o }) => [
|
|
1268
|
+
A(t.$slots, "annotator-action-color", Z(V({ color: o })), void 0, !0)
|
|
1184
1269
|
]),
|
|
1185
|
-
"annotator-action-draw":
|
|
1186
|
-
|
|
1270
|
+
"annotator-action-draw": F(({ mode: o }) => [
|
|
1271
|
+
A(t.$slots, "annotator-action-draw", Z(V({ mode: o })), void 0, !0)
|
|
1187
1272
|
]),
|
|
1188
|
-
"annotator-action-undo":
|
|
1189
|
-
|
|
1273
|
+
"annotator-action-undo": F(({ disabled: o }) => [
|
|
1274
|
+
A(t.$slots, "annotator-action-undo", Z(V({ disabled: o })), void 0, !0)
|
|
1190
1275
|
]),
|
|
1191
|
-
"annotator-action-redo":
|
|
1192
|
-
|
|
1276
|
+
"annotator-action-redo": F(({ disabled: o }) => [
|
|
1277
|
+
A(t.$slots, "annotator-action-redo", Z(V({ disabled: o })), void 0, !0)
|
|
1193
1278
|
]),
|
|
1194
|
-
"annotator-action-delete":
|
|
1195
|
-
|
|
1279
|
+
"annotator-action-delete": F(({ disabled: o }) => [
|
|
1280
|
+
A(t.$slots, "annotator-action-delete", Z(V({ disabled: o })), void 0, !0)
|
|
1196
1281
|
]),
|
|
1197
1282
|
_: 3
|
|
1198
1283
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : L("", !0),
|
|
@@ -1202,7 +1287,7 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1202
1287
|
ref: C,
|
|
1203
1288
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1204
1289
|
}, [
|
|
1205
|
-
(Y(), oe(
|
|
1290
|
+
(Y(), oe(Po, {
|
|
1206
1291
|
key: `title_${E.value}`,
|
|
1207
1292
|
config: {
|
|
1208
1293
|
title: {
|
|
@@ -1214,14 +1299,14 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1214
1299
|
}
|
|
1215
1300
|
}, null, 8, ["config"]))
|
|
1216
1301
|
], 512)) : L("", !0),
|
|
1217
|
-
e.value.userOptions.show &&
|
|
1302
|
+
e.value.userOptions.show && I.value && (T(Ae) || T(ke)) ? (Y(), oe(T(p), {
|
|
1218
1303
|
ref_key: "userOptionsRef",
|
|
1219
1304
|
ref: ae,
|
|
1220
|
-
key: `user_option_${
|
|
1305
|
+
key: `user_option_${P.value}`,
|
|
1221
1306
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1222
1307
|
color: e.value.style.chart.color,
|
|
1223
|
-
isPrinting:
|
|
1224
|
-
isImaging:
|
|
1308
|
+
isPrinting: T(Ze),
|
|
1309
|
+
isImaging: T(Ve),
|
|
1225
1310
|
uid: x.value,
|
|
1226
1311
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
1227
1312
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -1245,7 +1330,7 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1245
1330
|
isZoom: X.value.showZoom,
|
|
1246
1331
|
isCursorPointer: R.value,
|
|
1247
1332
|
onToggleFullscreen: tt,
|
|
1248
|
-
onGeneratePdf:
|
|
1333
|
+
onGeneratePdf: T(Je),
|
|
1249
1334
|
onGenerateCsv: _e,
|
|
1250
1335
|
onGenerateImage: qt,
|
|
1251
1336
|
onGenerateSvg: ut,
|
|
@@ -1253,109 +1338,112 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1253
1338
|
onToggleTooltip: at,
|
|
1254
1339
|
onToggleAnnotator: Ue,
|
|
1255
1340
|
onToggleZoom: nt,
|
|
1256
|
-
onCopyAlt:
|
|
1341
|
+
onCopyAlt: ft,
|
|
1257
1342
|
style: ze({
|
|
1258
|
-
visibility:
|
|
1343
|
+
visibility: T(Ae) ? T(ke) ? "visible" : "hidden" : "visible"
|
|
1259
1344
|
})
|
|
1260
1345
|
}, ht({ _: 2 }, [
|
|
1261
1346
|
t.$slots.menuIcon ? {
|
|
1262
1347
|
name: "menuIcon",
|
|
1263
|
-
fn:
|
|
1264
|
-
|
|
1348
|
+
fn: F(({ isOpen: o, color: S }) => [
|
|
1349
|
+
A(t.$slots, "menuIcon", Z(V({ isOpen: o, color: S })), void 0, !0)
|
|
1265
1350
|
]),
|
|
1266
1351
|
key: "0"
|
|
1267
1352
|
} : void 0,
|
|
1268
1353
|
t.$slots.optionPdf ? {
|
|
1269
1354
|
name: "optionPdf",
|
|
1270
|
-
fn:
|
|
1271
|
-
|
|
1355
|
+
fn: F(() => [
|
|
1356
|
+
A(t.$slots, "optionPdf", {}, void 0, !0)
|
|
1272
1357
|
]),
|
|
1273
1358
|
key: "1"
|
|
1274
1359
|
} : void 0,
|
|
1275
1360
|
t.$slots.optionCsv ? {
|
|
1276
1361
|
name: "optionCsv",
|
|
1277
|
-
fn:
|
|
1278
|
-
|
|
1362
|
+
fn: F(() => [
|
|
1363
|
+
A(t.$slots, "optionCsv", {}, void 0, !0)
|
|
1279
1364
|
]),
|
|
1280
1365
|
key: "2"
|
|
1281
1366
|
} : void 0,
|
|
1282
1367
|
t.$slots.optionImg ? {
|
|
1283
1368
|
name: "optionImg",
|
|
1284
|
-
fn:
|
|
1285
|
-
|
|
1369
|
+
fn: F(() => [
|
|
1370
|
+
A(t.$slots, "optionImg", {}, void 0, !0)
|
|
1286
1371
|
]),
|
|
1287
1372
|
key: "3"
|
|
1288
1373
|
} : void 0,
|
|
1289
1374
|
t.$slots.optionSvg ? {
|
|
1290
1375
|
name: "optionSvg",
|
|
1291
|
-
fn:
|
|
1292
|
-
|
|
1376
|
+
fn: F(() => [
|
|
1377
|
+
A(t.$slots, "optionSvg", {}, void 0, !0)
|
|
1293
1378
|
]),
|
|
1294
1379
|
key: "4"
|
|
1295
1380
|
} : void 0,
|
|
1296
1381
|
t.$slots.optionTable ? {
|
|
1297
1382
|
name: "optionTable",
|
|
1298
|
-
fn:
|
|
1299
|
-
|
|
1383
|
+
fn: F(() => [
|
|
1384
|
+
A(t.$slots, "optionTable", {}, void 0, !0)
|
|
1300
1385
|
]),
|
|
1301
1386
|
key: "5"
|
|
1302
1387
|
} : void 0,
|
|
1303
1388
|
t.$slots.optionFullscreen ? {
|
|
1304
1389
|
name: "optionFullscreen",
|
|
1305
|
-
fn:
|
|
1306
|
-
|
|
1390
|
+
fn: F(({ toggleFullscreen: o, isFullscreen: S }) => [
|
|
1391
|
+
A(t.$slots, "optionFullscreen", Z(V({ toggleFullscreen: o, isFullscreen: S })), void 0, !0)
|
|
1307
1392
|
]),
|
|
1308
1393
|
key: "6"
|
|
1309
1394
|
} : void 0,
|
|
1310
1395
|
t.$slots.optionAnnotator ? {
|
|
1311
1396
|
name: "optionAnnotator",
|
|
1312
|
-
fn:
|
|
1313
|
-
|
|
1397
|
+
fn: F(({ toggleAnnotator: o, isAnnotator: S }) => [
|
|
1398
|
+
A(t.$slots, "optionAnnotator", Z(V({ toggleAnnotator: o, isAnnotator: S })), void 0, !0)
|
|
1314
1399
|
]),
|
|
1315
1400
|
key: "7"
|
|
1316
1401
|
} : void 0,
|
|
1317
1402
|
t.$slots.optionZoom ? {
|
|
1318
1403
|
name: "optionZoom",
|
|
1319
|
-
fn:
|
|
1320
|
-
|
|
1404
|
+
fn: F(({ toggleZoom: o, isZoomLocked: S }) => [
|
|
1405
|
+
A(t.$slots, "optionZoom", Z(V({ toggleZoom: o, isZoomLocked: S })), void 0, !0)
|
|
1321
1406
|
]),
|
|
1322
1407
|
key: "8"
|
|
1323
1408
|
} : void 0,
|
|
1324
1409
|
t.$slots.optionAltCopy ? {
|
|
1325
1410
|
name: "optionAltCopy",
|
|
1326
|
-
fn:
|
|
1327
|
-
|
|
1411
|
+
fn: F(({ altCopy: o }) => [
|
|
1412
|
+
A(t.$slots, "optionAltCopy", Z(V({ altCopy: o })), void 0, !0)
|
|
1328
1413
|
]),
|
|
1329
1414
|
key: "9"
|
|
1330
1415
|
} : void 0
|
|
1331
1416
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "hasZoom", "isZoom", "isCursorPointer", "onGeneratePdf", "style"])) : L("", !0),
|
|
1332
|
-
e.value.style.chart.controls.position === "top" && e.value.style.chart.controls.show && !
|
|
1417
|
+
e.value.style.chart.controls.position === "top" && e.value.style.chart.controls.show && !T(me) ? (Y(), oe(xt, {
|
|
1333
1418
|
key: 4,
|
|
1334
1419
|
ref_key: "zoomControls",
|
|
1335
1420
|
ref: re,
|
|
1336
1421
|
config: e.value,
|
|
1337
|
-
scale:
|
|
1422
|
+
scale: T(st),
|
|
1338
1423
|
isFullscreen: le.value,
|
|
1339
1424
|
isCursorPointer: R.value,
|
|
1340
1425
|
onZoomIn: rt,
|
|
1341
1426
|
onZoomOut: ct,
|
|
1342
|
-
onResetZoom: v[0] || (v[0] = (o) =>
|
|
1427
|
+
onResetZoom: v[0] || (v[0] = (o) => T($e)(!0))
|
|
1343
1428
|
}, null, 8, ["config", "scale", "isFullscreen", "isCursorPointer"])) : L("", !0),
|
|
1344
|
-
|
|
1429
|
+
fe("div", Jo, [
|
|
1345
1430
|
(Y(), K("svg", {
|
|
1346
1431
|
ref_key: "svgRef",
|
|
1347
1432
|
ref: j,
|
|
1348
|
-
class: pt({
|
|
1433
|
+
class: pt({
|
|
1434
|
+
"vue-data-ui-fullscreen--on": le.value,
|
|
1435
|
+
"vue-data-ui-fulscreen--off": !le.value
|
|
1436
|
+
}),
|
|
1349
1437
|
"aria-describedby": `chart-instructions-${x.value}`,
|
|
1350
|
-
xmlns:
|
|
1351
|
-
viewBox: `${
|
|
1438
|
+
xmlns: T(mo),
|
|
1439
|
+
viewBox: `${T(Xe).x} ${T(Xe).y} ${T(Xe).width} ${T(Xe).height}`,
|
|
1352
1440
|
style: "overflow:hidden;background:transparent;display:block",
|
|
1353
1441
|
tabindex: "0",
|
|
1354
1442
|
onFocus: Gt,
|
|
1355
1443
|
onBlur: Kt,
|
|
1356
1444
|
onKeydown: Jt
|
|
1357
1445
|
}, [
|
|
1358
|
-
je(
|
|
1446
|
+
je(T(h)),
|
|
1359
1447
|
t.$slots["chart-background"] ? (Y(), K("foreignObject", {
|
|
1360
1448
|
key: 0,
|
|
1361
1449
|
x: 0,
|
|
@@ -1366,20 +1454,20 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1366
1454
|
pointerEvents: "none"
|
|
1367
1455
|
}
|
|
1368
1456
|
}, [
|
|
1369
|
-
|
|
1457
|
+
A(t.$slots, "chart-background", {}, void 0, !0)
|
|
1370
1458
|
], 8, ea)) : L("", !0),
|
|
1371
|
-
|
|
1459
|
+
fe("g", {
|
|
1372
1460
|
transform: `translate(${Ee.value.x}, ${Ee.value.y})`,
|
|
1373
1461
|
class: pt({ "wc-finalized": ie.value })
|
|
1374
1462
|
}, [
|
|
1375
|
-
(Y(!0), K(oo, null, ao(W.value, (o,
|
|
1463
|
+
(Y(!0), K(oo, null, ao(W.value, (o, S) => (Y(), K("g", {
|
|
1376
1464
|
key: o.id,
|
|
1377
1465
|
class: "vue-ui-word-cloud-word",
|
|
1378
1466
|
transform: `translate(${o.x}, ${o.y})`
|
|
1379
1467
|
}, [
|
|
1380
1468
|
o.minX !== void 0 ? (Y(), K("rect", {
|
|
1381
1469
|
key: 0,
|
|
1382
|
-
"data-a11y-word-index": `${
|
|
1470
|
+
"data-a11y-word-index": `${S}-${x.value}`,
|
|
1383
1471
|
x: o.minX,
|
|
1384
1472
|
y: o.minY * 1.25,
|
|
1385
1473
|
width: o.maxX - o.minX,
|
|
@@ -1387,11 +1475,11 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1387
1475
|
fill: "transparent",
|
|
1388
1476
|
"pointer-events": "visiblePainted",
|
|
1389
1477
|
"aria-label": `${o.name}: ${(o.value || 0).toFixed(e.value.style.chart.tooltip.roundingValue)}`,
|
|
1390
|
-
onMouseover: (
|
|
1391
|
-
onMouseleave: (
|
|
1392
|
-
onClick: (
|
|
1478
|
+
onMouseover: ($) => vt(o, S),
|
|
1479
|
+
onMouseleave: ($) => Ht(o, S),
|
|
1480
|
+
onClick: ($) => dt(o, S)
|
|
1393
1481
|
}, null, 40, aa)) : L("", !0),
|
|
1394
|
-
|
|
1482
|
+
fe("text", {
|
|
1395
1483
|
fill: o.color,
|
|
1396
1484
|
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
1397
1485
|
x: 0,
|
|
@@ -1412,37 +1500,42 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1412
1500
|
}, Ye(o.name), 13, na)
|
|
1413
1501
|
], 8, oa))), 128))
|
|
1414
1502
|
], 10, ta),
|
|
1415
|
-
|
|
1503
|
+
A(t.$slots, "svg", {
|
|
1416
1504
|
svg: {
|
|
1417
1505
|
...D.value,
|
|
1418
|
-
isPrintingImg:
|
|
1506
|
+
isPrintingImg: T(Ze) | T(Ve) | J.value,
|
|
1419
1507
|
isPrintingSvg: H.value
|
|
1420
1508
|
}
|
|
1421
1509
|
}, void 0, !0)
|
|
1422
1510
|
], 42, Qo)),
|
|
1423
1511
|
t.$slots.hint ? (Y(), K("div", la, [
|
|
1424
|
-
|
|
1512
|
+
A(t.$slots, "hint", Z(V({
|
|
1513
|
+
hint: e.value.a11y.translations.keyboardNavigation,
|
|
1514
|
+
isVisible: ce.value
|
|
1515
|
+
})), void 0, !0)
|
|
1425
1516
|
])) : L("", !0)
|
|
1426
1517
|
]),
|
|
1427
1518
|
t.$slots.watermark ? (Y(), K("div", sa, [
|
|
1428
|
-
|
|
1519
|
+
A(t.$slots, "watermark", Z(V({
|
|
1520
|
+
isPrinting: T(Ze) || T(Ve) || J.value || H.value
|
|
1521
|
+
})), void 0, !0)
|
|
1429
1522
|
])) : L("", !0),
|
|
1430
|
-
|
|
1431
|
-
|
|
1523
|
+
T(Nt) ? (Y(), K("div", ia, [
|
|
1524
|
+
A(t.$slots, "reset-action", { reset: T($e) }, void 0, !0)
|
|
1432
1525
|
])) : L("", !0),
|
|
1433
|
-
e.value.style.chart.controls.position === "bottom" && e.value.style.chart.controls.show && !
|
|
1526
|
+
e.value.style.chart.controls.position === "bottom" && e.value.style.chart.controls.show && !T(me) ? (Y(), oe(xt, {
|
|
1434
1527
|
key: 7,
|
|
1435
1528
|
ref_key: "zoomControls",
|
|
1436
1529
|
ref: re,
|
|
1437
1530
|
config: e.value,
|
|
1438
|
-
scale:
|
|
1531
|
+
scale: T(st),
|
|
1439
1532
|
isFullscreen: le.value,
|
|
1440
1533
|
isCursorPointer: R.value,
|
|
1441
1534
|
onZoomIn: rt,
|
|
1442
1535
|
onZoomOut: ct,
|
|
1443
|
-
onResetZoom: v[1] || (v[1] = (o) =>
|
|
1536
|
+
onResetZoom: v[1] || (v[1] = (o) => T($e)(!0))
|
|
1444
1537
|
}, null, 8, ["config", "scale", "isFullscreen", "isCursorPointer"])) : L("", !0),
|
|
1445
|
-
je(
|
|
1538
|
+
je(T(c), {
|
|
1446
1539
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1447
1540
|
show: X.value.showTooltip && z.value,
|
|
1448
1541
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1456,7 +1549,7 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1456
1549
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1457
1550
|
parent: d.value,
|
|
1458
1551
|
content: Le.value,
|
|
1459
|
-
isCustom:
|
|
1552
|
+
isCustom: Te.value,
|
|
1460
1553
|
isFullscreen: le.value,
|
|
1461
1554
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1462
1555
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
@@ -1465,14 +1558,14 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1465
1558
|
isA11yMode: ee.value === "keyboard",
|
|
1466
1559
|
a11yPosition: Q.value
|
|
1467
1560
|
}, {
|
|
1468
|
-
"tooltip-before":
|
|
1469
|
-
|
|
1561
|
+
"tooltip-before": F(() => [
|
|
1562
|
+
A(t.$slots, "tooltip-before", Z(V({ ...Re.value })), void 0, !0)
|
|
1470
1563
|
]),
|
|
1471
|
-
tooltip:
|
|
1472
|
-
|
|
1564
|
+
tooltip: F(() => [
|
|
1565
|
+
A(t.$slots, "tooltip", Z(V({ ...Re.value })), void 0, !0)
|
|
1473
1566
|
]),
|
|
1474
|
-
"tooltip-after":
|
|
1475
|
-
|
|
1567
|
+
"tooltip-after": F(() => [
|
|
1568
|
+
A(t.$slots, "tooltip-after", Z(V({ ...Re.value })), void 0, !0)
|
|
1476
1569
|
]),
|
|
1477
1570
|
_: 3
|
|
1478
1571
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
@@ -1482,32 +1575,32 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1482
1575
|
ref: _,
|
|
1483
1576
|
dir: "auto"
|
|
1484
1577
|
}, [
|
|
1485
|
-
|
|
1578
|
+
A(t.$slots, "source", {}, void 0, !0)
|
|
1486
1579
|
], 512)) : L("", !0),
|
|
1487
|
-
|
|
1580
|
+
I.value && e.value.userOptions.buttons.table ? (Y(), oe(no(Se.value.component), lo({ key: 9 }, Se.value.props, {
|
|
1488
1581
|
ref_key: "tableUnit",
|
|
1489
1582
|
ref: q,
|
|
1490
1583
|
onClose: it
|
|
1491
1584
|
}), ht({
|
|
1492
|
-
content:
|
|
1493
|
-
(Y(), oe(
|
|
1585
|
+
content: F(() => [
|
|
1586
|
+
(Y(), oe(T(i), {
|
|
1494
1587
|
key: `table_${N.value}`,
|
|
1495
1588
|
colNames: ye.value.colNames,
|
|
1496
1589
|
head: ye.value.head,
|
|
1497
1590
|
body: ye.value.body,
|
|
1498
1591
|
config: ye.value.config,
|
|
1499
|
-
title: e.value.table.useDialog ? "" :
|
|
1592
|
+
title: e.value.table.useDialog ? "" : Se.value.title,
|
|
1500
1593
|
withCloseButton: !e.value.table.useDialog,
|
|
1501
1594
|
isCursorPointer: R.value,
|
|
1502
1595
|
onClose: it
|
|
1503
1596
|
}, {
|
|
1504
|
-
th:
|
|
1505
|
-
|
|
1597
|
+
th: F(({ th: o }) => [
|
|
1598
|
+
fe("div", {
|
|
1506
1599
|
innerHTML: o,
|
|
1507
1600
|
style: { display: "flex", "align-items": "center" }
|
|
1508
1601
|
}, null, 8, ua)
|
|
1509
1602
|
]),
|
|
1510
|
-
td:
|
|
1603
|
+
td: F(({ td: o }) => [
|
|
1511
1604
|
gt(Ye(o.name || o), 1)
|
|
1512
1605
|
]),
|
|
1513
1606
|
_: 1
|
|
@@ -1517,35 +1610,35 @@ const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style:
|
|
|
1517
1610
|
}, [
|
|
1518
1611
|
e.value.table.useDialog ? {
|
|
1519
1612
|
name: "title",
|
|
1520
|
-
fn:
|
|
1521
|
-
gt(Ye(
|
|
1613
|
+
fn: F(() => [
|
|
1614
|
+
gt(Ye(Se.value.title), 1)
|
|
1522
1615
|
]),
|
|
1523
1616
|
key: "0"
|
|
1524
1617
|
} : void 0,
|
|
1525
1618
|
e.value.table.useDialog ? {
|
|
1526
1619
|
name: "actions",
|
|
1527
|
-
fn:
|
|
1528
|
-
|
|
1620
|
+
fn: F(() => [
|
|
1621
|
+
fe("button", {
|
|
1529
1622
|
tabindex: "0",
|
|
1530
1623
|
class: "vue-ui-user-options-button",
|
|
1531
1624
|
onClick: v[2] || (v[2] = (o) => _e(e.value.userOptions.callbacks.csv)),
|
|
1532
1625
|
style: ze({ cursor: R.value ? "pointer" : "default" })
|
|
1533
1626
|
}, [
|
|
1534
|
-
je(
|
|
1627
|
+
je(T(r), {
|
|
1535
1628
|
name: "fileCsv",
|
|
1536
|
-
stroke:
|
|
1629
|
+
stroke: Se.value.props.color
|
|
1537
1630
|
}, null, 8, ["stroke"])
|
|
1538
1631
|
], 4)
|
|
1539
1632
|
]),
|
|
1540
1633
|
key: "1"
|
|
1541
1634
|
} : void 0
|
|
1542
1635
|
]), 1040)) : L("", !0),
|
|
1543
|
-
|
|
1544
|
-
|
|
1636
|
+
A(t.$slots, "skeleton", {}, () => [
|
|
1637
|
+
T(me) ? (Y(), oe(wo, { key: 0 })) : L("", !0)
|
|
1545
1638
|
], !0)
|
|
1546
1639
|
], 44, Go));
|
|
1547
1640
|
}
|
|
1548
|
-
},
|
|
1641
|
+
}, Ma = /* @__PURE__ */ Fo(ra, [["__scopeId", "data-v-d5a6f6e2"]]);
|
|
1549
1642
|
export {
|
|
1550
|
-
|
|
1643
|
+
Ma as default
|
|
1551
1644
|
};
|