vue-data-ui 3.17.13 → 3.18.1
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 +1 -1
- package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
- package/dist/Arrow-Cj6W6Xbi.js +116 -0
- package/dist/BaseDraggableDialog-BQcmQAK5.js +272 -0
- package/dist/BaseIcon-CEmt3Ifx.js +499 -0
- package/dist/BaseLegendToggle-DUIqQmwM.js +56 -0
- package/dist/BaseScanner-C7dmAref.js +27 -0
- package/dist/BaseZoomControls-Ce1yqas1.js +111 -0
- package/dist/ColorPicker-DS_QkH3W.js +255 -0
- package/dist/DataTable-BvDJEAma.js +150 -0
- package/dist/Legend-Gg5Q4Clb.js +114 -0
- package/dist/NonSvgPenAndPaper-D4Gh7O43.js +577 -0
- package/dist/PackageVersion-DhDKg-ez.js +11 -0
- package/dist/PenAndPaper-DwpL8Z0l.js +461 -0
- package/dist/RecursiveCircles-DPpLel6f.js +117 -0
- package/dist/RecursiveLabels-DBMJf_to.js +56 -0
- package/dist/RecursiveLinks-D06dBL4a.js +78 -0
- package/dist/Shape-DEGOZ6GG.js +141 -0
- package/dist/Slicer-BlfyiHHD.js +1144 -0
- package/dist/SlicerPreview-BPS8mYO2.js +1523 -0
- package/dist/SparkTooltip-c2DL7gqD.js +93 -0
- package/dist/Title-__gWq2g6.js +87 -0
- package/dist/Tooltip-B7lmdbac.js +307 -0
- package/dist/UserOptions-DMw8EZEo.js +1407 -0
- package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
- package/dist/canvas-lib-DTaADQOK.js +79 -0
- package/dist/components/arrow.js +2 -5
- package/dist/components/vue-ui-3d-bar.js +2 -5
- package/dist/components/vue-ui-accordion.js +2 -5
- package/dist/components/vue-ui-age-pyramid.js +2 -5
- package/dist/components/vue-ui-annotator.js +2 -5
- package/dist/components/vue-ui-bullet.js +2 -5
- package/dist/components/vue-ui-bump.js +2 -5
- package/dist/components/vue-ui-candlestick.js +2 -5
- package/dist/components/vue-ui-carousel-table.js +2 -5
- package/dist/components/vue-ui-chestnut.js +2 -5
- package/dist/components/vue-ui-chord.js +2 -5
- package/dist/components/vue-ui-circle-pack.js +2 -5
- package/dist/components/vue-ui-cursor.js +2 -5
- package/dist/components/vue-ui-dag.js +2 -5
- package/dist/components/vue-ui-dashboard.js +2 -5
- package/dist/components/vue-ui-digits.js +2 -5
- package/dist/components/vue-ui-donut-evolution.js +2 -5
- package/dist/components/vue-ui-donut.js +2 -5
- package/dist/components/vue-ui-dumbbell.js +2 -5
- package/dist/components/vue-ui-flow.js +2 -5
- package/dist/components/vue-ui-funnel.js +2 -5
- package/dist/components/vue-ui-galaxy.js +2 -5
- package/dist/components/vue-ui-gauge.js +2 -5
- package/dist/components/vue-ui-geo.js +2 -5
- package/dist/components/vue-ui-gizmo.js +2 -5
- package/dist/components/vue-ui-heatmap.js +2 -5
- package/dist/components/vue-ui-history-plot.js +2 -5
- package/dist/components/vue-ui-horizontal-bar.js +2 -5
- package/dist/components/vue-ui-icon.js +2 -5
- package/dist/components/vue-ui-kpi.js +2 -5
- package/dist/components/vue-ui-mini-loader.js +2 -5
- package/dist/components/vue-ui-molecule.js +2 -5
- package/dist/components/vue-ui-mood-radar.js +2 -5
- package/dist/components/vue-ui-nested-donuts.js +2 -5
- package/dist/components/vue-ui-onion.js +2 -5
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
- package/dist/components/vue-ui-pattern-seed.js +2 -5
- package/dist/components/vue-ui-pattern.js +2 -5
- package/dist/components/vue-ui-quadrant.js +2 -5
- package/dist/components/vue-ui-quick-chart.js +2 -5
- package/dist/components/vue-ui-radar.js +2 -5
- package/dist/components/vue-ui-rating.js +2 -5
- package/dist/components/vue-ui-relation-circle.js +2 -5
- package/dist/components/vue-ui-ridgeline.js +2 -5
- package/dist/components/vue-ui-rings.js +2 -5
- package/dist/components/vue-ui-scatter.js +2 -5
- package/dist/components/vue-ui-skeleton.js +2 -5
- package/dist/components/vue-ui-smiley.js +2 -5
- package/dist/components/vue-ui-spark-trend.js +2 -5
- package/dist/components/vue-ui-sparkbar.js +2 -5
- package/dist/components/vue-ui-sparkgauge.js +2 -5
- package/dist/components/vue-ui-sparkhistogram.js +2 -5
- package/dist/components/vue-ui-sparkline.js +2 -5
- package/dist/components/vue-ui-sparkstackbar.js +2 -5
- package/dist/components/vue-ui-stackbar.js +2 -5
- package/dist/components/vue-ui-stackline.js +2 -5
- package/dist/components/vue-ui-strip-plot.js +2 -5
- package/dist/components/vue-ui-table-heatmap.js +2 -5
- package/dist/components/vue-ui-table-sparkline.js +2 -5
- package/dist/components/vue-ui-table.js +2 -5
- package/dist/components/vue-ui-thermometer.js +2 -5
- package/dist/components/vue-ui-timer.js +2 -5
- package/dist/components/vue-ui-tiremarks.js +2 -5
- package/dist/components/vue-ui-treemap.js +2 -5
- package/dist/components/vue-ui-vertical-bar.js +2 -5
- package/dist/components/vue-ui-waffle.js +2 -5
- package/dist/components/vue-ui-wheel.js +2 -5
- package/dist/components/vue-ui-word-cloud.js +2 -5
- package/dist/components/vue-ui-world.js +2 -5
- package/dist/components/vue-ui-xy-canvas.js +2 -5
- package/dist/components/vue-ui-xy.js +2 -5
- package/dist/dom-to-png-9WSt6hXe.js +237 -0
- package/dist/exposedLib-CwWU4zv-.js +19 -0
- package/dist/geoProjections-CQIkC70z.js +146 -0
- package/dist/img-BjOr008R.js +74 -0
- package/dist/labelUtils-Cr97N8E1.js +19 -0
- package/dist/lib-BkiwukKO.js +1879 -0
- package/dist/patternUtils-B7BWu5bV.js +258 -0
- package/dist/pdf-DSXSFUnK.js +90 -0
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/style.css +2 -1
- package/dist/types/arrow.d.ts +1 -1
- package/dist/types/utils.d.ts +23 -0
- package/dist/types/vue-data-ui.d.ts +4775 -627
- package/dist/types/vue-ui-3d-bar.d.ts +64 -9
- package/dist/types/vue-ui-accordion.d.ts +4 -3
- package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
- package/dist/types/vue-ui-annotator.d.ts +3 -5
- package/dist/types/vue-ui-bullet.d.ts +60 -9
- package/dist/types/vue-ui-bump.d.ts +65 -9
- package/dist/types/vue-ui-candlestick.d.ts +83 -9
- package/dist/types/vue-ui-carousel-table.d.ts +36 -6
- package/dist/types/vue-ui-chestnut.d.ts +66 -9
- package/dist/types/vue-ui-chord.d.ts +78 -9
- package/dist/types/vue-ui-circle-pack.d.ts +86 -9
- package/dist/types/vue-ui-cursor.d.ts +4 -2
- package/dist/types/vue-ui-dag.d.ts +92 -9
- package/dist/types/vue-ui-dashboard.d.ts +43 -6
- package/dist/types/vue-ui-digits.d.ts +4 -2
- package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
- package/dist/types/vue-ui-donut.d.ts +92 -9
- package/dist/types/vue-ui-dumbbell.d.ts +65 -9
- package/dist/types/vue-ui-flow.d.ts +79 -9
- package/dist/types/vue-ui-funnel.d.ts +55 -9
- package/dist/types/vue-ui-galaxy.d.ts +83 -9
- package/dist/types/vue-ui-gauge.d.ts +64 -9
- package/dist/types/vue-ui-geo.d.ts +71 -9
- package/dist/types/vue-ui-gizmo.d.ts +17 -6
- package/dist/types/vue-ui-heatmap.d.ts +73 -9
- package/dist/types/vue-ui-history-plot.d.ts +82 -9
- package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
- package/dist/types/vue-ui-icon.d.ts +2 -2
- package/dist/types/vue-ui-kpi.d.ts +21 -7
- package/dist/types/vue-ui-mini-loader.d.ts +5 -3
- package/dist/types/vue-ui-molecule.d.ts +86 -9
- package/dist/types/vue-ui-mood-radar.d.ts +66 -9
- package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
- package/dist/types/vue-ui-onion.d.ts +77 -9
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
- package/dist/types/vue-ui-pattern.d.ts +2 -2
- package/dist/types/vue-ui-quadrant.d.ts +86 -9
- package/dist/types/vue-ui-quick-chart.d.ts +79 -9
- package/dist/types/vue-ui-radar.d.ts +83 -9
- package/dist/types/vue-ui-rating.d.ts +22 -6
- package/dist/types/vue-ui-relation-circle.d.ts +66 -9
- package/dist/types/vue-ui-ridgeline.d.ts +69 -9
- package/dist/types/vue-ui-rings.d.ts +70 -9
- package/dist/types/vue-ui-scatter.d.ts +67 -9
- package/dist/types/vue-ui-skeleton.d.ts +3 -2
- package/dist/types/vue-ui-smiley.d.ts +3 -2
- package/dist/types/vue-ui-spark-trend.d.ts +14 -6
- package/dist/types/vue-ui-sparkbar.d.ts +27 -6
- package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
- package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
- package/dist/types/vue-ui-sparkline.d.ts +35 -6
- package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
- package/dist/types/vue-ui-stackbar.d.ts +85 -9
- package/dist/types/vue-ui-stackline.d.ts +81 -9
- package/dist/types/vue-ui-strip-plot.d.ts +66 -9
- package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
- package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
- package/dist/types/vue-ui-table.d.ts +10 -2
- package/dist/types/vue-ui-thermometer.d.ts +46 -9
- package/dist/types/vue-ui-timer.d.ts +31 -5
- package/dist/types/vue-ui-tiremarks.d.ts +46 -9
- package/dist/types/vue-ui-treemap.d.ts +73 -9
- package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
- package/dist/types/vue-ui-waffle.d.ts +72 -9
- package/dist/types/vue-ui-wheel.d.ts +46 -9
- package/dist/types/vue-ui-word-cloud.d.ts +73 -9
- package/dist/types/vue-ui-world.d.ts +68 -9
- package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
- package/dist/types/vue-ui-xy.d.ts +108 -10
- package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +50 -0
- package/dist/useChartAccessibility-Do37qcw2.js +12 -0
- package/dist/useConfig-BV0kTCnO.js +7431 -0
- package/dist/useFitSvgText-C-MEdAfe.js +63 -0
- package/dist/useNestedProp-Ck4hsrpu.js +10 -0
- package/dist/useObjectBindings-Ce_ZZk-f.js +189 -0
- package/dist/usePanZoom-B-4M_gmY.js +157 -0
- package/dist/usePrefersMotion-BywLbIko.js +15 -0
- package/dist/usePrinter-X0yWOynH.js +49 -0
- package/dist/useResponsive-CrAInupd.js +19 -0
- package/dist/useStableElementSize-0I1IpHPl.js +77 -0
- package/dist/useSvgExport-Dtu973wa.js +755 -0
- package/dist/useTableResponsive-DrM1xqII.js +24 -0
- package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
- package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
- package/dist/useTimeLabels-C0x7zUXP.js +272 -0
- package/dist/useUserOptionState-CjPJPTg2.js +15 -0
- package/dist/utils.js +27 -44
- package/dist/vClickOutside-CbX_bC9A.js +13 -0
- package/dist/vue-data-ui-DIh8ayZc.js +274 -0
- package/dist/vue-data-ui.js +76 -167
- package/dist/vue-ui-3d-bar-BZ8_6ylo.js +1747 -0
- package/dist/vue-ui-accordion-cVv18nTV.js +81 -0
- package/dist/vue-ui-age-pyramid-BR3i-CgS.js +1226 -0
- package/dist/vue-ui-annotator-B9mA_PlF.js +2899 -0
- package/dist/vue-ui-bullet-ByJdNLVf.js +700 -0
- package/dist/vue-ui-bump-Ps1gkA-F.js +1239 -0
- package/dist/vue-ui-candlestick-0C1QFoV4.js +1802 -0
- package/dist/vue-ui-carousel-table-1P28pCRK.js +445 -0
- package/dist/vue-ui-chestnut-CJOCGWwX.js +2000 -0
- package/dist/vue-ui-chord-BpiVJCCm.js +1381 -0
- package/dist/vue-ui-circle-pack-C3wvXz1f.js +1183 -0
- package/dist/vue-ui-cursor-CNn_3b24.js +283 -0
- package/dist/vue-ui-dag-DRVXVCJV.js +2899 -0
- package/dist/vue-ui-dashboard-gOXyms0o.js +503 -0
- package/dist/vue-ui-digits-DIKyN3z6.js +209 -0
- package/dist/vue-ui-donut-RogzKj0G.js +2396 -0
- package/dist/vue-ui-donut-evolution-Bxz06Qqf.js +1490 -0
- package/dist/vue-ui-dumbbell-D10T4gmB.js +1517 -0
- package/dist/vue-ui-flow-OK563Z46.js +1223 -0
- package/dist/vue-ui-funnel-nWmbiJu5.js +767 -0
- package/dist/vue-ui-galaxy-CtaTlHWZ.js +1062 -0
- package/dist/vue-ui-gauge-DWTEHJqX.js +910 -0
- package/dist/vue-ui-geo-DUpWvv5m.js +1504 -0
- package/dist/vue-ui-gizmo-vddzP4dM.js +225 -0
- package/dist/vue-ui-heatmap-CUE_zJQa.js +1556 -0
- package/dist/vue-ui-history-plot-CcRg_NgJ.js +1551 -0
- package/dist/vue-ui-horizontal-bar-DX5aZOEn.js +1669 -0
- package/dist/vue-ui-kpi-B74v84Hu.js +96 -0
- package/dist/vue-ui-mini-loader-BcCG6Yqb.js +125 -0
- package/dist/vue-ui-molecule-CVdB8rxf.js +912 -0
- package/dist/vue-ui-mood-radar-CWDVBOck.js +1138 -0
- package/dist/vue-ui-nested-donuts-Be8b5d81.js +1472 -0
- package/dist/vue-ui-onion-Cs90yQQZ.js +1188 -0
- package/dist/vue-ui-parallel-coordinate-plot-D-mZdTop.js +1413 -0
- package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
- package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
- package/dist/vue-ui-quadrant-DLD_ZR9M.js +1966 -0
- package/dist/vue-ui-quick-chart-UWjZdmzt.js +2459 -0
- package/dist/vue-ui-radar-Bxu07MOG.js +1214 -0
- package/dist/vue-ui-rating-DA9Bmfyb.js +343 -0
- package/dist/vue-ui-relation-circle-O5s1UJtt.js +914 -0
- package/dist/vue-ui-ridgeline-C3siN0d_.js +1612 -0
- package/dist/vue-ui-rings-DVVDtwhB.js +1231 -0
- package/dist/vue-ui-scatter-Cfvh06OC.js +2380 -0
- package/dist/vue-ui-skeleton-CxTmGCQp.js +2556 -0
- package/dist/vue-ui-smiley-B6nc7b71.js +356 -0
- package/dist/vue-ui-spark-trend--39vutfQ.js +438 -0
- package/dist/vue-ui-sparkbar-DhCRNOu4.js +393 -0
- package/dist/vue-ui-sparkgauge-6Igkqlqs.js +255 -0
- package/dist/vue-ui-sparkhistogram-BLEzZSZi.js +560 -0
- package/dist/vue-ui-sparkline-ppwKM4aO.js +1503 -0
- package/dist/vue-ui-sparkstackbar-uIzSq9Wh.js +660 -0
- package/dist/vue-ui-stackbar-CdOkMCbI.js +2235 -0
- package/dist/vue-ui-stackline-DifD9OXC.js +2362 -0
- package/dist/vue-ui-strip-plot-D1LjIVqK.js +1328 -0
- package/dist/vue-ui-table-WDkEyyQ0.js +1338 -0
- package/dist/vue-ui-table-heatmap-CfGJVzI3.js +334 -0
- package/dist/vue-ui-table-sparkline-BEWWP4Rq.js +697 -0
- package/dist/vue-ui-thermometer-CFWOAB8K.js +753 -0
- package/dist/vue-ui-timer-D1DQyf9i.js +439 -0
- package/dist/vue-ui-tiremarks-IeM3BlPW.js +542 -0
- package/dist/vue-ui-treemap-BGZM7ibv.js +1575 -0
- package/dist/vue-ui-waffle-a3dFVBk4.js +1350 -0
- package/dist/vue-ui-wheel-OnIRQJ8a.js +875 -0
- package/dist/vue-ui-word-cloud-C9SkyutR.js +1644 -0
- package/dist/vue-ui-world-CEevuFbk.js +14252 -0
- package/dist/vue-ui-xy-1hee-IEM.js +4114 -0
- package/dist/vue-ui-xy-canvas-D2f0d45c.js +1774 -0
- package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
- package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
- package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
- package/dist/vue_ui_bump-frnXaXul.js +201 -0
- package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
- package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
- package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
- package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
- package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
- package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
- package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
- package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
- package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
- package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
- package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
- package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
- package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
- package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
- package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
- package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
- package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
- package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
- package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
- package/dist/vue_ui_onion-DTV9cup-.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
- package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
- package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
- package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
- package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
- package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
- package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
- package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
- package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
- package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
- package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
- package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
- package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
- package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
- package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
- package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
- package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
- package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
- package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
- package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
- package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
- package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
- package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
- package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
- package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
- package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
- package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
- package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
- package/package.json +7 -7
- package/dist/A11yDataTable-BpmuNomI.js +0 -54
- package/dist/Arrow-dSvLFssU.js +0 -101
- package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
- package/dist/BaseIcon-DX0hTWa-.js +0 -476
- package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
- package/dist/BaseScanner-C2j3TsSY.js +0 -36
- package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
- package/dist/ColorPicker-bAxGcXK0.js +0 -271
- package/dist/DataTable-cMnb68Ik.js +0 -145
- package/dist/Legend-DGN5lY60.js +0 -104
- package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
- package/dist/PackageVersion-BfrCAH6_.js +0 -10
- package/dist/PenAndPaper-CJDoB5H9.js +0 -527
- package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
- package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
- package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
- package/dist/Shape-CxJ5_Rre.js +0 -116
- package/dist/Slicer-D7UcO8sN.js +0 -1145
- package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
- package/dist/SparkTooltip-D4bM-kfz.js +0 -68
- package/dist/Title-BbKoiBk2.js +0 -88
- package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
- package/dist/UserOptions-DVduN6X7.js +0 -1474
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/dom-to-png-DGvx6i5V.js +0 -262
- package/dist/exposedLib-sJvY1pST.js +0 -22
- package/dist/geoProjections-BFq2sOBY.js +0 -162
- package/dist/img-CjTQXS0U.js +0 -57
- package/dist/labelUtils-DX9oyq3C.js +0 -26
- package/dist/lib-DMzrGQHK.js +0 -2477
- package/dist/patternUtils-BINhU4Ky.js +0 -615
- package/dist/pdf-C4H4o1Cj.js +0 -88
- package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
- package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
- package/dist/useConfig-CG4HT3wS.js +0 -7901
- package/dist/useFitSvgText-2crs6Fv5.js +0 -69
- package/dist/useNestedProp-DH0BEVVS.js +0 -13
- package/dist/useObjectBindings-Dixg-RIe.js +0 -228
- package/dist/usePanZoom-BbDhcKWf.js +0 -141
- package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
- package/dist/usePrinter-C4t8DdQ-.js +0 -51
- package/dist/useResponsive-DfdjqQps.js +0 -195
- package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
- package/dist/useSvgExport-BTG4hVPO.js +0 -870
- package/dist/useTableResponsive-BpfiEtzR.js +0 -26
- package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
- package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
- package/dist/useTimeLabels-Cv0tD9In.js +0 -307
- package/dist/useUserOptionState-B7Ej974k.js +0 -19
- package/dist/vClickOutside-C6WiFswA.js +0 -13
- package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
- package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
- package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
- package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
- package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
- package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
- package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
- package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
- package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
- package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
- package/dist/vue-ui-chord-DWyar45U.js +0 -1457
- package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
- package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
- package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
- package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
- package/dist/vue-ui-digits-CZmdir8V.js +0 -211
- package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
- package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
- package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
- package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
- package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
- package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
- package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
- package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
- package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
- package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
- package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
- package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
- package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
- package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
- package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
- package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
- package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
- package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
- package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
- package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
- package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
- package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
- package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
- package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
- package/dist/vue-ui-rating-CqPlP88P.js +0 -370
- package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
- package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
- package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
- package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
- package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
- package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
- package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
- package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
- package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
- package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
- package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
- package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
- package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
- package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
- package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
- package/dist/vue-ui-table-BX2iMku4.js +0 -1726
- package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
- package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
- package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
- package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
- package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
- package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
- package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
- package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
- package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
- package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
- package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
- package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
- package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
- package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
- package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
- package/dist/vue_ui_bump-CIht647H.js +0 -22
- package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
- package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
- package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
- package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
- package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
- package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
- package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
- package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
- package/dist/vue_ui_flow-BErINgox.js +0 -22
- package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
- package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
- package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
- package/dist/vue_ui_geo--kg4VoVX.js +0 -22
- package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
- package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
- package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
- package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
- package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
- package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
- package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
- package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
- package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
- package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
- package/dist/vue_ui_radar-DryGBOrz.js +0 -22
- package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
- package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
- package/dist/vue_ui_rings-CxOrekqA.js +0 -22
- package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
- package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
- package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
- package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
- package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
- package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
- package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
- package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
- package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
- package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
- package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
- package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
- package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
- package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
- package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
- package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
- package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
- package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
- package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
- package/dist/vue_ui_xy-esktmpg-.js +0 -22
- package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
|
@@ -0,0 +1,1644 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { G as t, H as n, J as r, Lt as i, S as a, St as o, Tt as s, U as c, X as l, ot as u, pt as d, t as f, v as p, zt as m } from "./lib-BkiwukKO.js";
|
|
3
|
+
import { t as h } from "./useConfig-BV0kTCnO.js";
|
|
4
|
+
import { t as g } from "./usePrinter-X0yWOynH.js";
|
|
5
|
+
import { n as _, t as v } from "./BaseScanner-C7dmAref.js";
|
|
6
|
+
import { t as ee } from "./useSvgExport-Dtu973wa.js";
|
|
7
|
+
import { t as y } from "./useNestedProp-Ck4hsrpu.js";
|
|
8
|
+
import { t as b } from "./useThemeCheck-rFK9Zlb_.js";
|
|
9
|
+
import { t as te } from "./img-BjOr008R.js";
|
|
10
|
+
import { n as ne } from "./Title-__gWq2g6.js";
|
|
11
|
+
import { t as re } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
12
|
+
import { r as ie } from "./canvas-lib-DTaADQOK.js";
|
|
13
|
+
import { t as ae } from "./useResponsive-CrAInupd.js";
|
|
14
|
+
import { t as x } from "./A11yDataTable-q2-8fSlJ.js";
|
|
15
|
+
import { t as S } from "./useUserOptionState-CjPJPTg2.js";
|
|
16
|
+
import { t as oe } from "./useChartAccessibility-Do37qcw2.js";
|
|
17
|
+
import { t as se } from "./usePanZoom-B-4M_gmY.js";
|
|
18
|
+
import { t as ce } from "./vue_ui_word_cloud-B1PbsYPc.js";
|
|
19
|
+
import { t as le } from "./BaseZoomControls-Ce1yqas1.js";
|
|
20
|
+
import { Fragment as ue, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createSlots as de, createTextVNode as fe, createVNode as pe, defineAsyncComponent as O, guardReactiveProps as k, mergeProps as me, nextTick as he, normalizeClass as ge, normalizeProps as A, normalizeStyle as _e, onBeforeUnmount as ve, onMounted as ye, openBlock as j, ref as M, renderList as be, renderSlot as N, resolveDynamicComponent as xe, shallowRef as Se, toDisplayString as Ce, toRefs as we, unref as P, watch as Te, withCtx as F } from "vue";
|
|
21
|
+
//#region src/wordcloud.js
|
|
22
|
+
function Ee({ word: e, fontSize: t, pad: n, canvas: r, ctx: i, svg: a }) {
|
|
23
|
+
let o = `${a.style && a.style.bold ? "bold " : ""}${t}px Arial`;
|
|
24
|
+
i.font = o;
|
|
25
|
+
let s = i.measureText(e.name), c = Math.ceil(s.width) + 2 + (n ? n * 2 : 0), l = Math.ceil(t) + 2 + (n ? n * 2 : 0);
|
|
26
|
+
r.width = c, r.height = l, i.font = o, i.textAlign = "center", i.textBaseline = "middle", i.fillStyle = "black", i.fillText(e.name, c / 2, l / 2);
|
|
27
|
+
let u = i.getImageData(0, 0, c, l).data, d = [], f = [], p = c, m = l, h = 0, g = 0, _ = !1;
|
|
28
|
+
for (let e = 0; e < l; e += 1) {
|
|
29
|
+
let t = e * c * 4, n = -1, r = !1;
|
|
30
|
+
for (let i = 0; i < c; i += 1) u[t + i * 4 + 3] > 1 ? (d.push([i, e]), _ = !0, i < p && (p = i), i > h && (h = i), e < m && (m = e), e > g && (g = e), r || (r = !0, n = i)) : r && (f.push([
|
|
31
|
+
e,
|
|
32
|
+
n,
|
|
33
|
+
i - 1
|
|
34
|
+
]), r = !1, n = -1);
|
|
35
|
+
r && f.push([
|
|
36
|
+
e,
|
|
37
|
+
n,
|
|
38
|
+
c - 1
|
|
39
|
+
]);
|
|
40
|
+
}
|
|
41
|
+
return _ || (p = 0, m = 0, h = 0, g = 0), {
|
|
42
|
+
w: c,
|
|
43
|
+
h: l,
|
|
44
|
+
wordMask: d,
|
|
45
|
+
runs: f,
|
|
46
|
+
minX: p,
|
|
47
|
+
minY: m,
|
|
48
|
+
maxX: h,
|
|
49
|
+
maxY: g
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function De(e) {
|
|
53
|
+
let t = [];
|
|
54
|
+
if (!e.length) return t;
|
|
55
|
+
let n = e[0][1], r = e[0][0], i = r;
|
|
56
|
+
for (let a = 1; a < e.length; a += 1) {
|
|
57
|
+
let o = e[a][0], s = e[a][1];
|
|
58
|
+
s === n ? o === i + 1 ? i = o : (t.push([
|
|
59
|
+
n,
|
|
60
|
+
r,
|
|
61
|
+
i
|
|
62
|
+
]), r = o, i = o) : (t.push([
|
|
63
|
+
n,
|
|
64
|
+
r,
|
|
65
|
+
i
|
|
66
|
+
]), n = s, r = o, i = o);
|
|
67
|
+
}
|
|
68
|
+
return t.push([
|
|
69
|
+
n,
|
|
70
|
+
r,
|
|
71
|
+
i
|
|
72
|
+
]), t;
|
|
73
|
+
}
|
|
74
|
+
function Oe(e, t) {
|
|
75
|
+
return 4294967295 >>> 32 - (t - e + 1) << e >>> 0;
|
|
76
|
+
}
|
|
77
|
+
function ke(e) {
|
|
78
|
+
return 4294967295 << e >>> 0;
|
|
79
|
+
}
|
|
80
|
+
function Ae(e) {
|
|
81
|
+
return 4294967295 >>> 31 - e >>> 0;
|
|
82
|
+
}
|
|
83
|
+
function je({ maskBits: e, maskRowStride: t, maskW: n, maskH: r, wx: i, wy: a, runs: o }) {
|
|
84
|
+
for (let s = 0; s < o.length; s += 1) {
|
|
85
|
+
let c = o[s][0], l = o[s][1], u = o[s][2], d = a + c;
|
|
86
|
+
if (d < 0 || d >= r) return !1;
|
|
87
|
+
let f = i + l, p = i + u;
|
|
88
|
+
if (f < 0 || p >= n) return !1;
|
|
89
|
+
let m = d * t, h = f >>> 5, g = p >>> 5, _ = f & 31, v = p & 31;
|
|
90
|
+
if (h === g) {
|
|
91
|
+
if (e[m + h] & Oe(_, v)) return !1;
|
|
92
|
+
} else {
|
|
93
|
+
if (e[m + h] & ke(_)) return !1;
|
|
94
|
+
for (let t = h + 1; t < g; t += 1) if (e[m + t]) return !1;
|
|
95
|
+
if (e[m + g] & Ae(v)) return !1;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return !0;
|
|
99
|
+
}
|
|
100
|
+
function Me({ maskBits: e, maskRowStride: t, maskW: n, maskH: r, wx: i, wy: a, runs: o }) {
|
|
101
|
+
for (let s = 0; s < o.length; s += 1) {
|
|
102
|
+
let c = o[s][0], l = o[s][1], u = o[s][2], d = a + c;
|
|
103
|
+
if (d < 0 || d >= r) continue;
|
|
104
|
+
let f = i + l, p = i + u;
|
|
105
|
+
if (p < 0 || f >= n) continue;
|
|
106
|
+
let m = d * t, h = f >>> 5, g = p >>> 5, _ = f & 31, v = p & 31;
|
|
107
|
+
if (h === g) {
|
|
108
|
+
let t = Oe(_, v);
|
|
109
|
+
e[m + h] |= t;
|
|
110
|
+
} else {
|
|
111
|
+
{
|
|
112
|
+
let t = ke(_);
|
|
113
|
+
e[m + h] |= t;
|
|
114
|
+
}
|
|
115
|
+
for (let t = h + 1; t < g; t += 1) e[m + t] = 4294967295;
|
|
116
|
+
{
|
|
117
|
+
let t = Ae(v);
|
|
118
|
+
e[m + g] |= t;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function Ne({ wordMask: e, w: t, h: n, dilation: r }) {
|
|
124
|
+
let i = new Uint8Array(t * n), a = [];
|
|
125
|
+
for (let n = 0; n < e.length; n += 1) {
|
|
126
|
+
let r = e[n][0], o = e[n][1] * t + r;
|
|
127
|
+
i[o] || (i[o] = 1, a.push(o));
|
|
128
|
+
}
|
|
129
|
+
for (let e = 0; e < a.length; e += 1) {
|
|
130
|
+
let o = a[e], s = o / t | 0, c = o - s * t;
|
|
131
|
+
for (let e = -r; e <= r; e += 1) {
|
|
132
|
+
let a = s + e;
|
|
133
|
+
if (a < 0 || a >= n) continue;
|
|
134
|
+
let o = a * t;
|
|
135
|
+
for (let n = -r; n <= r; n += 1) {
|
|
136
|
+
if (n === 0 && e === 0) continue;
|
|
137
|
+
let r = c + n;
|
|
138
|
+
r < 0 || r >= t || (i[o + r] = 1);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
let o = [];
|
|
143
|
+
for (let e = 0; e < i.length; e += 1) if (i[e]) {
|
|
144
|
+
let n = e / t | 0, r = e - n * t;
|
|
145
|
+
o.push([r, n]);
|
|
146
|
+
}
|
|
147
|
+
return o;
|
|
148
|
+
}
|
|
149
|
+
function Pe({ runs: e, w: t, h: n, dilation: r }) {
|
|
150
|
+
let i = new Uint8Array(t * n), a = [];
|
|
151
|
+
for (let n = 0; n < e.length; n += 1) {
|
|
152
|
+
let r = e[n], o = r[0], s = r[1], c = r[2], l = o * t;
|
|
153
|
+
for (let e = s; e <= c; e += 1) {
|
|
154
|
+
let t = l + e;
|
|
155
|
+
i[t] || (i[t] = 1, a.push(t));
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
for (let e = 0; e < a.length; e += 1) {
|
|
159
|
+
let o = a[e], s = o / t | 0, c = o - s * t;
|
|
160
|
+
for (let e = -r; e <= r; e += 1) {
|
|
161
|
+
let a = s + e;
|
|
162
|
+
if (a < 0 || a >= n) continue;
|
|
163
|
+
let o = a * t;
|
|
164
|
+
for (let n = -r; n <= r; n += 1) {
|
|
165
|
+
if (n === 0 && e === 0) continue;
|
|
166
|
+
let r = c + n;
|
|
167
|
+
r < 0 || r >= t || (i[o + r] = 1);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
let o = [];
|
|
172
|
+
for (let e = 0; e < n; e += 1) {
|
|
173
|
+
let n = e * t, r = -1, a = !1;
|
|
174
|
+
for (let s = 0; s < t; s += 1) i[n + s] ? a || (a = !0, r = s) : a && (o.push([
|
|
175
|
+
e,
|
|
176
|
+
r,
|
|
177
|
+
s - 1
|
|
178
|
+
]), a = !1, r = -1);
|
|
179
|
+
a && o.push([
|
|
180
|
+
e,
|
|
181
|
+
r,
|
|
182
|
+
t - 1
|
|
183
|
+
]);
|
|
184
|
+
}
|
|
185
|
+
return o;
|
|
186
|
+
}
|
|
187
|
+
function Fe(e, t) {
|
|
188
|
+
let n = e.runs, r = e.w, i = e.h, a = Math.max(1, Math.round(r * t)), o = Math.max(1, Math.round(i * t)), s = Array(o), c = a, l = o, u = 0, d = 0, f = !1;
|
|
189
|
+
for (let e = 0; e < n.length; e += 1) {
|
|
190
|
+
let r = n[e], i = r[0], a = r[1], p = r[2], m = Math.round(i * t);
|
|
191
|
+
if (m < 0 || m >= o) continue;
|
|
192
|
+
let h = Math.round(a * t), g = Math.round((p + 1) * t) - 1;
|
|
193
|
+
if (g < h) continue;
|
|
194
|
+
let _ = s[m];
|
|
195
|
+
_ || (_ = [], s[m] = _), _.push([h, g]), f = !0, h < c && (c = h), g > u && (u = g), m < l && (l = m), m > d && (d = m);
|
|
196
|
+
}
|
|
197
|
+
if (!f) return {
|
|
198
|
+
w: a,
|
|
199
|
+
h: o,
|
|
200
|
+
runs: [],
|
|
201
|
+
minX: 0,
|
|
202
|
+
minY: 0,
|
|
203
|
+
maxX: 0,
|
|
204
|
+
maxY: 0
|
|
205
|
+
};
|
|
206
|
+
let p = [];
|
|
207
|
+
for (let e = 0; e < o; e += 1) {
|
|
208
|
+
let t = s[e];
|
|
209
|
+
if (!t || t.length === 0) continue;
|
|
210
|
+
t.sort((e, t) => e[0] - t[0]);
|
|
211
|
+
let n = t[0][0], r = t[0][1];
|
|
212
|
+
for (let i = 1; i < t.length; i += 1) {
|
|
213
|
+
let a = t[i][0], o = t[i][1];
|
|
214
|
+
a <= r + 1 ? o > r && (r = o) : (p.push([
|
|
215
|
+
e,
|
|
216
|
+
n,
|
|
217
|
+
r
|
|
218
|
+
]), n = a, r = o);
|
|
219
|
+
}
|
|
220
|
+
p.push([
|
|
221
|
+
e,
|
|
222
|
+
n,
|
|
223
|
+
r
|
|
224
|
+
]);
|
|
225
|
+
}
|
|
226
|
+
return {
|
|
227
|
+
w: a,
|
|
228
|
+
h: o,
|
|
229
|
+
runs: p,
|
|
230
|
+
minX: c,
|
|
231
|
+
minY: l,
|
|
232
|
+
maxX: u,
|
|
233
|
+
maxY: d
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
var Ie = /* @__PURE__ */ new Map(), Le = /* @__PURE__ */ new Map();
|
|
237
|
+
function I({ word: e, fontSize: t, pad: n, svg: r }) {
|
|
238
|
+
let i = r.style && r.style.bold ? 1 : 0, a = n || 0;
|
|
239
|
+
return `${e.name}::${t}::${a}::${i}`;
|
|
240
|
+
}
|
|
241
|
+
function Re({ word: e, fontSize: t, pad: n, canvas: r, ctx: i, svg: a }) {
|
|
242
|
+
let o = I({
|
|
243
|
+
word: e,
|
|
244
|
+
fontSize: t,
|
|
245
|
+
pad: n,
|
|
246
|
+
svg: a
|
|
247
|
+
}), s = Ie.get(o);
|
|
248
|
+
if (s) return {
|
|
249
|
+
key: o,
|
|
250
|
+
bitmap: s
|
|
251
|
+
};
|
|
252
|
+
let c = Ee({
|
|
253
|
+
word: e,
|
|
254
|
+
fontSize: t,
|
|
255
|
+
pad: n,
|
|
256
|
+
canvas: r,
|
|
257
|
+
ctx: i,
|
|
258
|
+
svg: a
|
|
259
|
+
});
|
|
260
|
+
return Ie.set(o, c), {
|
|
261
|
+
key: o,
|
|
262
|
+
bitmap: c
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
function ze({ bitmapKey: e, wordMask: t, w: n, h: r, dilation: i }) {
|
|
266
|
+
let a = `${e}::d${i}`, o = Le.get(a);
|
|
267
|
+
if (o) return o;
|
|
268
|
+
let s = Ne({
|
|
269
|
+
wordMask: t,
|
|
270
|
+
w: n,
|
|
271
|
+
h: r,
|
|
272
|
+
dilation: i
|
|
273
|
+
}), c = {
|
|
274
|
+
wordMask: s,
|
|
275
|
+
runs: De(s)
|
|
276
|
+
};
|
|
277
|
+
return Le.set(a, c), c;
|
|
278
|
+
}
|
|
279
|
+
var L = 6, Be = 2, R = Math.PI / 180, Ve = [], He = [];
|
|
280
|
+
for (let e = 0; e < 360; e += L) {
|
|
281
|
+
let t = e * R;
|
|
282
|
+
Ve.push(Math.cos(t)), He.push(Math.sin(t));
|
|
283
|
+
}
|
|
284
|
+
var Ue = [], We = [];
|
|
285
|
+
for (let e = 0; e < 360; e += Be) {
|
|
286
|
+
let t = e * R;
|
|
287
|
+
Ue.push(Math.cos(t)), We.push(Math.sin(t));
|
|
288
|
+
}
|
|
289
|
+
function Ge(e, t, n) {
|
|
290
|
+
if (!e.length) return;
|
|
291
|
+
let r = Infinity, i = -Infinity, a = Infinity, o = -Infinity;
|
|
292
|
+
for (let t = 0; t < e.length; t += 1) {
|
|
293
|
+
let n = e[t], s = n.x + n.minX, c = n.x + n.maxX, l = n.y + n.minY, u = n.y + n.maxY;
|
|
294
|
+
s < r && (r = s), c > i && (i = c), l < a && (a = l), u > o && (o = u);
|
|
295
|
+
}
|
|
296
|
+
if (!isFinite(r) || !isFinite(i) || !isFinite(a) || !isFinite(o)) return;
|
|
297
|
+
let s = Math.max(Math.abs(r), Math.abs(i)), c = Math.max(Math.abs(a), Math.abs(o));
|
|
298
|
+
if (s === 0 || c === 0) return;
|
|
299
|
+
let l = .9, u = t * .5 * l / s, d = n * .5 * l / c, f = Math.min(u, d);
|
|
300
|
+
if (!(f <= 1)) {
|
|
301
|
+
f > 4 && (f = 4);
|
|
302
|
+
for (let t = 0; t < e.length; t += 1) {
|
|
303
|
+
let n = e[t];
|
|
304
|
+
n.x *= f, n.y *= f, n.width *= f, n.height *= f, n.fontSize *= f, n.minX *= f, n.maxX *= f, n.minY *= f, n.maxY *= f;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
function z() {
|
|
309
|
+
return typeof performance < "u" && typeof performance.now == "function" ? () => performance.now() : () => Date.now();
|
|
310
|
+
}
|
|
311
|
+
function Ke({ value: e, minimumValue: t, maximumValue: n, configuredMinimumFontSize: r, maximumFontSize: i }) {
|
|
312
|
+
if (n === t) return i;
|
|
313
|
+
let a = (e - t) / (n - t) * (i - r) + r;
|
|
314
|
+
return Math.max(r, Math.min(i, a));
|
|
315
|
+
}
|
|
316
|
+
function qe({ currentBitmap: e, strictPixelPadding: t, scaleFactor: n, baseBitmap: r, bitmapKey: i }) {
|
|
317
|
+
let a = e.runs, o = e.w, s = e.h, c = e.minX, l = e.minY, u = e.maxX, d = e.maxY;
|
|
318
|
+
return !t || !a.length ? {
|
|
319
|
+
runs: a,
|
|
320
|
+
bitmapWidth: o,
|
|
321
|
+
bitmapHeight: s,
|
|
322
|
+
bitmapMinimumX: c,
|
|
323
|
+
bitmapMinimumY: l,
|
|
324
|
+
bitmapMaximumX: u,
|
|
325
|
+
bitmapMaximumY: d
|
|
326
|
+
} : n === 1 ? {
|
|
327
|
+
runs: ze({
|
|
328
|
+
bitmapKey: i,
|
|
329
|
+
wordMask: r.wordMask,
|
|
330
|
+
w: r.w,
|
|
331
|
+
h: r.h,
|
|
332
|
+
dilation: 2
|
|
333
|
+
}).runs,
|
|
334
|
+
bitmapWidth: o,
|
|
335
|
+
bitmapHeight: s,
|
|
336
|
+
bitmapMinimumX: c,
|
|
337
|
+
bitmapMinimumY: l,
|
|
338
|
+
bitmapMaximumX: u,
|
|
339
|
+
bitmapMaximumY: d
|
|
340
|
+
} : {
|
|
341
|
+
runs: Pe({
|
|
342
|
+
runs: a,
|
|
343
|
+
w: o,
|
|
344
|
+
h: s,
|
|
345
|
+
dilation: 2
|
|
346
|
+
}),
|
|
347
|
+
bitmapWidth: o,
|
|
348
|
+
bitmapHeight: s,
|
|
349
|
+
bitmapMinimumX: c,
|
|
350
|
+
bitmapMinimumY: l,
|
|
351
|
+
bitmapMaximumX: u,
|
|
352
|
+
bitmapMaximumY: d
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
async function Je({ baseBitmap: e, baseFontSize: t, minimumScaleFactor: n, maskBits: r, maskRowStride: i, maskWidth: a, maskHeight: o, centerX: s, centerY: c, maximumRadius: l, scaleStep: u, strictPixelPadding: d, bitmapKey: f, minimumFontSize: p, rawWord: m, cosineArray: h, sineArray: g, radiusStep: _, maximumAttempts: v, maybeYield: ee }) {
|
|
356
|
+
let y = 1;
|
|
357
|
+
for (; y >= n;) {
|
|
358
|
+
let { runs: n, bitmapWidth: b, bitmapHeight: te, bitmapMinimumX: ne, bitmapMinimumY: re, bitmapMaximumX: ie, bitmapMaximumY: ae } = qe({
|
|
359
|
+
currentBitmap: y === 1 ? e : Fe(e, y),
|
|
360
|
+
strictPixelPadding: d,
|
|
361
|
+
scaleFactor: y,
|
|
362
|
+
baseBitmap: e,
|
|
363
|
+
bitmapKey: f
|
|
364
|
+
}), x = 0, S = 0;
|
|
365
|
+
for (; x < l && S < v;) {
|
|
366
|
+
for (let e = 0; e < h.length; e += 1) {
|
|
367
|
+
S += 1;
|
|
368
|
+
let l = Math.round(s + x * h[e] - b / 2), u = Math.round(c + x * g[e] - te / 2);
|
|
369
|
+
if (!(l < 0 || u < 0 || l + b > a || u + te > o) && je({
|
|
370
|
+
maskBits: r,
|
|
371
|
+
maskRowStride: i,
|
|
372
|
+
maskW: a,
|
|
373
|
+
maskH: o,
|
|
374
|
+
wx: l,
|
|
375
|
+
wy: u,
|
|
376
|
+
runs: n
|
|
377
|
+
})) {
|
|
378
|
+
let { __wcIndex: e, ...s } = m, c = Math.max(p, Math.round(t * y)), d = {
|
|
379
|
+
...s,
|
|
380
|
+
x: l - a / 2,
|
|
381
|
+
y: u - o / 2,
|
|
382
|
+
fontSize: c,
|
|
383
|
+
width: b,
|
|
384
|
+
height: te,
|
|
385
|
+
angle: 0,
|
|
386
|
+
minX: ne,
|
|
387
|
+
minY: re,
|
|
388
|
+
maxX: ie,
|
|
389
|
+
maxY: ae
|
|
390
|
+
};
|
|
391
|
+
return Me({
|
|
392
|
+
maskBits: r,
|
|
393
|
+
maskRowStride: i,
|
|
394
|
+
maskW: a,
|
|
395
|
+
maskH: o,
|
|
396
|
+
wx: l,
|
|
397
|
+
wy: u,
|
|
398
|
+
runs: n
|
|
399
|
+
}), d;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
x += _, S & 1023 || await ee();
|
|
403
|
+
}
|
|
404
|
+
y *= u, await ee();
|
|
405
|
+
}
|
|
406
|
+
return null;
|
|
407
|
+
}
|
|
408
|
+
async function Ye({ baseBitmap: e, baseFontSize: t, minimumScaleFactor: n, maskBits: r, maskRowStride: i, maskWidth: a, maskHeight: o, centerX: s, centerY: c, maximumRadius: l, scaleStep: u, strictPixelPadding: d, bitmapKey: f, minimumFontSize: p, rawWord: m, maybeYield: h, spiralRadiusStep: g, fallbackSpiralRadiusStep: _ }) {
|
|
409
|
+
return await Je({
|
|
410
|
+
baseBitmap: e,
|
|
411
|
+
baseFontSize: t,
|
|
412
|
+
minimumScaleFactor: n,
|
|
413
|
+
maskBits: r,
|
|
414
|
+
maskRowStride: i,
|
|
415
|
+
maskWidth: a,
|
|
416
|
+
maskHeight: o,
|
|
417
|
+
centerX: s,
|
|
418
|
+
centerY: c,
|
|
419
|
+
maximumRadius: l,
|
|
420
|
+
scaleStep: u,
|
|
421
|
+
strictPixelPadding: d,
|
|
422
|
+
bitmapKey: f,
|
|
423
|
+
minimumFontSize: p,
|
|
424
|
+
rawWord: m,
|
|
425
|
+
cosineArray: Ve,
|
|
426
|
+
sineArray: He,
|
|
427
|
+
radiusStep: g,
|
|
428
|
+
maximumAttempts: 1e4,
|
|
429
|
+
maybeYield: h
|
|
430
|
+
}) || await Je({
|
|
431
|
+
baseBitmap: e,
|
|
432
|
+
baseFontSize: t,
|
|
433
|
+
minimumScaleFactor: n,
|
|
434
|
+
maskBits: r,
|
|
435
|
+
maskRowStride: i,
|
|
436
|
+
maskWidth: a,
|
|
437
|
+
maskHeight: o,
|
|
438
|
+
centerX: s,
|
|
439
|
+
centerY: c,
|
|
440
|
+
maximumRadius: l,
|
|
441
|
+
scaleStep: u,
|
|
442
|
+
strictPixelPadding: d,
|
|
443
|
+
bitmapKey: f,
|
|
444
|
+
minimumFontSize: p,
|
|
445
|
+
rawWord: m,
|
|
446
|
+
cosineArray: Ue,
|
|
447
|
+
sineArray: We,
|
|
448
|
+
radiusStep: _,
|
|
449
|
+
maximumAttempts: 25e3,
|
|
450
|
+
maybeYield: h
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
async function Xe({ words: e, proximity: t = 0, svg: n, strictPixelPadding: r, onProgress: i, debugTiming: a = !1 }) {
|
|
454
|
+
let o = z(), s = o(), c = s;
|
|
455
|
+
async function l() {
|
|
456
|
+
o() - c >= 12 && (await new Promise((e) => setTimeout(e, 0)), c = o());
|
|
457
|
+
}
|
|
458
|
+
let u = n.width, d = n.height, f = Math.round(u), p = Math.round(d), m = n.minFontSize, h = Math.min(n.maxFontSize, 100), g = e.map((e) => e.value), _ = Math.min(...g), v = Math.max(...g);
|
|
459
|
+
if (f <= 0 || p <= 0) return [];
|
|
460
|
+
let ee = f + 31 >>> 5, y = new Uint32Array(ee * p), b = document.createElement("canvas"), te = b.getContext("2d", { willReadFrequently: !0 });
|
|
461
|
+
b.width = f, b.height = p;
|
|
462
|
+
let ne = Math.max(f, p), re = Math.floor(f / 2), ie = Math.floor(p / 2), ae = [...e.map((e, t) => ({
|
|
463
|
+
...e,
|
|
464
|
+
__wcIndex: t,
|
|
465
|
+
id: e.id == null ? `${e.name}__${t}` : e.id
|
|
466
|
+
}))].sort((e, t) => t.value - e.value), x = [];
|
|
467
|
+
for (let e = 0; e < ae.length; e += 1) {
|
|
468
|
+
let a = ae[e], o = x.length, s = Ke({
|
|
469
|
+
value: a.value,
|
|
470
|
+
minimumValue: _,
|
|
471
|
+
maximumValue: v,
|
|
472
|
+
configuredMinimumFontSize: m,
|
|
473
|
+
maximumFontSize: h
|
|
474
|
+
}), c = Re({
|
|
475
|
+
word: a,
|
|
476
|
+
fontSize: s,
|
|
477
|
+
pad: t,
|
|
478
|
+
canvas: b,
|
|
479
|
+
ctx: te,
|
|
480
|
+
svg: n
|
|
481
|
+
}), u = c.key, d = c.bitmap, g = d.w, S = d.h;
|
|
482
|
+
if (g <= 0 || S <= 0) {
|
|
483
|
+
await l();
|
|
484
|
+
continue;
|
|
485
|
+
}
|
|
486
|
+
let oe = await Ye({
|
|
487
|
+
baseBitmap: d,
|
|
488
|
+
baseFontSize: s,
|
|
489
|
+
minimumScaleFactor: Math.max(1 / s, .1),
|
|
490
|
+
maskBits: y,
|
|
491
|
+
maskRowStride: ee,
|
|
492
|
+
maskWidth: f,
|
|
493
|
+
maskHeight: p,
|
|
494
|
+
centerX: re,
|
|
495
|
+
centerY: ie,
|
|
496
|
+
maximumRadius: ne,
|
|
497
|
+
scaleStep: .9,
|
|
498
|
+
strictPixelPadding: r,
|
|
499
|
+
bitmapKey: u,
|
|
500
|
+
minimumFontSize: 1,
|
|
501
|
+
rawWord: a,
|
|
502
|
+
maybeYield: l,
|
|
503
|
+
spiralRadiusStep: 2,
|
|
504
|
+
fallbackSpiralRadiusStep: 1
|
|
505
|
+
});
|
|
506
|
+
if (oe && (x.push(oe), i && x.length > o)) {
|
|
507
|
+
let e = x[x.length - 1];
|
|
508
|
+
i({
|
|
509
|
+
word: e,
|
|
510
|
+
all: x
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
await l();
|
|
514
|
+
}
|
|
515
|
+
if (!x.length) return [];
|
|
516
|
+
Ge(x, f, p);
|
|
517
|
+
let S = o() - s;
|
|
518
|
+
return a && typeof console < "u" && console.log && console.log("[vue-data-ui][word-cloud] positionWordsAsync:", `${S.toFixed(2)} ms for ${e.length} words`), x.sort((e, t) => t.fontSize - e.fontSize);
|
|
519
|
+
}
|
|
520
|
+
//#endregion
|
|
521
|
+
//#region src/components/vue-ui-word-cloud.vue
|
|
522
|
+
var Ze = /* @__PURE__ */ e({ default: () => B }), Qe = [
|
|
523
|
+
"id",
|
|
524
|
+
"data-resizing",
|
|
525
|
+
"data-relayout"
|
|
526
|
+
], $e = ["id"], et = { style: { position: "relative" } }, tt = [
|
|
527
|
+
"aria-describedby",
|
|
528
|
+
"xmlns",
|
|
529
|
+
"viewBox"
|
|
530
|
+
], nt = ["width", "height"], rt = ["transform"], it = ["transform"], at = [
|
|
531
|
+
"data-a11y-word-index",
|
|
532
|
+
"x",
|
|
533
|
+
"y",
|
|
534
|
+
"width",
|
|
535
|
+
"height",
|
|
536
|
+
"aria-label",
|
|
537
|
+
"onMouseover",
|
|
538
|
+
"onMouseleave",
|
|
539
|
+
"onClick"
|
|
540
|
+
], ot = [
|
|
541
|
+
"fill",
|
|
542
|
+
"font-weight",
|
|
543
|
+
"font-size",
|
|
544
|
+
"transform",
|
|
545
|
+
"stroke",
|
|
546
|
+
"stroke-width"
|
|
547
|
+
], st = {
|
|
548
|
+
key: 0,
|
|
549
|
+
style: {
|
|
550
|
+
position: "absolute",
|
|
551
|
+
top: "100%",
|
|
552
|
+
left: "0",
|
|
553
|
+
width: "100%"
|
|
554
|
+
},
|
|
555
|
+
"data-dom-to-png-ignore": "",
|
|
556
|
+
"aria-hidden": "true"
|
|
557
|
+
}, ct = {
|
|
558
|
+
key: 5,
|
|
559
|
+
class: "vue-data-ui-watermark"
|
|
560
|
+
}, lt = {
|
|
561
|
+
key: 6,
|
|
562
|
+
"data-dom-to-png-ignore": "",
|
|
563
|
+
class: "reset-wrapper"
|
|
564
|
+
}, ut = ["innerHTML"], B = /* @__PURE__ */ re({
|
|
565
|
+
__name: "vue-ui-word-cloud",
|
|
566
|
+
props: {
|
|
567
|
+
config: {
|
|
568
|
+
type: Object,
|
|
569
|
+
default() {
|
|
570
|
+
return {};
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
dataset: {
|
|
574
|
+
type: [Array, String],
|
|
575
|
+
default() {
|
|
576
|
+
return [];
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
emits: ["copyAlt"],
|
|
581
|
+
setup(e, { expose: re, emit: Ee }) {
|
|
582
|
+
let De = O(() => import("./Tooltip-B7lmdbac.js")), Oe = O(() => import("./BaseIcon-CEmt3Ifx.js").then((e) => e.n)), ke = O(() => import("./vue-ui-accordion-cVv18nTV.js").then((e) => e.n)), Ae = O(() => import("./DataTable-BvDJEAma.js")), je = O(() => import("./PenAndPaper-DwpL8Z0l.js").then((e) => e.t)), Me = O(() => import("./UserOptions-DMw8EZEo.js").then((e) => e.n)), Ne = O(() => import("./PackageVersion-DhDKg-ez.js").then((e) => e.t)), Pe = O(() => import("./BaseDraggableDialog-BQcmQAK5.js").then((e) => e.n)), { vue_ui_word_cloud: Fe } = h(), { isThemeValid: Ie, warnInvalidTheme: Le } = b(), I = e, Re = Ee, ze = C({
|
|
583
|
+
get() {
|
|
584
|
+
return !!I.dataset && I.dataset.length;
|
|
585
|
+
},
|
|
586
|
+
set(e) {
|
|
587
|
+
return e;
|
|
588
|
+
}
|
|
589
|
+
}), L = M(n()), Be = M(0), R = M(null), Ve = M(null), He = M(null), Ue = M(0), We = M(0), Ge = M(!1), z = M(null), Ke = M(null), qe = M(!1), Je = M(!1), Ye = M(null), Ze = M(!1), B = M(!1), V = M(null), dt = M({
|
|
590
|
+
x: 0,
|
|
591
|
+
y: 0
|
|
592
|
+
}), ft = M("pointer"), pt = M(!1), H = M(Ct()), U = C(() => H.value.userOptions.useCursorPointer), mt = C(() => m({
|
|
593
|
+
defaultConfig: {
|
|
594
|
+
userOptions: { show: !1 },
|
|
595
|
+
table: { show: !1 },
|
|
596
|
+
useCssAnimation: !1,
|
|
597
|
+
animationDelayMs: 0,
|
|
598
|
+
nodeCategories: {},
|
|
599
|
+
nodeCategoryColors: {},
|
|
600
|
+
style: { chart: {
|
|
601
|
+
backgroundColor: "#99999930",
|
|
602
|
+
words: {
|
|
603
|
+
color: "#6A6A6A",
|
|
604
|
+
usePalette: !1,
|
|
605
|
+
selectedStroke: "#CCCCCC"
|
|
606
|
+
}
|
|
607
|
+
} }
|
|
608
|
+
},
|
|
609
|
+
userConfig: H.value.skeletonConfig ?? {}
|
|
610
|
+
})), { loading: ht, FINAL_DATASET: gt, manualLoading: _t } = _({
|
|
611
|
+
...we(I),
|
|
612
|
+
FINAL_CONFIG: H,
|
|
613
|
+
prepareConfig: Ct,
|
|
614
|
+
callback: () => {
|
|
615
|
+
Promise.resolve().then(() => {
|
|
616
|
+
J.value.showTable = H.value.table.show, J.value.showTooltip = H.value.style.chart.tooltip.show, J.value.showZoom = H.value.style.chart.zoom.show;
|
|
617
|
+
});
|
|
618
|
+
},
|
|
619
|
+
skeletonDataset: I.config?.skeletonDataset ?? [
|
|
620
|
+
{
|
|
621
|
+
name: "Lorem",
|
|
622
|
+
value: 6
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
name: "ipsum",
|
|
626
|
+
value: 3
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
name: "dolor",
|
|
630
|
+
value: 1
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
name: "sit",
|
|
634
|
+
value: 3
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
name: "amet",
|
|
638
|
+
value: 3
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
name: "consectetur",
|
|
642
|
+
value: 2
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
name: "adipiscing",
|
|
646
|
+
value: 1
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
name: "elit",
|
|
650
|
+
value: 2
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
name: "Vivamus",
|
|
654
|
+
value: 2
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
name: "pulvinar",
|
|
658
|
+
value: 1
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
name: "pretium",
|
|
662
|
+
value: 1
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
name: "venenatis",
|
|
666
|
+
value: 2
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
name: "Donec",
|
|
670
|
+
value: 1
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
name: "imperdiet",
|
|
674
|
+
value: 3
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
name: "id",
|
|
678
|
+
value: 1
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
name: "porttitor",
|
|
682
|
+
value: 2
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
name: "tristique",
|
|
686
|
+
value: 1
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
name: "Aenean",
|
|
690
|
+
value: 2
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
name: "ac",
|
|
694
|
+
value: 5
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
name: "commodo",
|
|
698
|
+
value: 2
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
name: "justo",
|
|
702
|
+
value: 2
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
name: "Vestibulum",
|
|
706
|
+
value: 2
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
name: "placerat",
|
|
710
|
+
value: 1
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
name: "molestie",
|
|
714
|
+
value: 1
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
name: "nisl",
|
|
718
|
+
value: 1
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
name: "lacinia",
|
|
722
|
+
value: 2
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
name: "nulla",
|
|
726
|
+
value: 1
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
name: "posuere",
|
|
730
|
+
value: 2
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
name: "quis",
|
|
734
|
+
value: 3
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
name: "ullamcorper",
|
|
738
|
+
value: 1
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
name: "eu",
|
|
742
|
+
value: 1
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
name: "ex",
|
|
746
|
+
value: 1
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
name: "vitae",
|
|
750
|
+
value: 3
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
name: "facilisis",
|
|
754
|
+
value: 1
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
name: "Aliquam",
|
|
758
|
+
value: 1
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
name: "erat",
|
|
762
|
+
value: 1
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
name: "volutpat",
|
|
766
|
+
value: 1
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
name: "Proin",
|
|
770
|
+
value: 1
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
name: "nunc",
|
|
774
|
+
value: 1
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
name: "felis",
|
|
778
|
+
value: 1
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
name: "gravida",
|
|
782
|
+
value: 3
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
name: "sed",
|
|
786
|
+
value: 1
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
name: "orci",
|
|
790
|
+
value: 1
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
name: "Interdum",
|
|
794
|
+
value: 1
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
name: "et",
|
|
798
|
+
value: 1
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
name: "malesuada",
|
|
802
|
+
value: 1
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
name: "fames",
|
|
806
|
+
value: 1
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
name: "ante",
|
|
810
|
+
value: 1
|
|
811
|
+
}
|
|
812
|
+
],
|
|
813
|
+
skeletonConfig: m({
|
|
814
|
+
defaultConfig: H.value,
|
|
815
|
+
userConfig: mt.value
|
|
816
|
+
})
|
|
817
|
+
}), vt = M(yt());
|
|
818
|
+
function yt() {
|
|
819
|
+
return typeof gt.value == "string" ? c(gt.value) : gt.value.map((e, t) => ({
|
|
820
|
+
...e,
|
|
821
|
+
value: p(e.value)
|
|
822
|
+
}));
|
|
823
|
+
}
|
|
824
|
+
let { userOptionsVisible: bt, setUserOptionsVisibility: xt, keepUserOptionState: St } = S({ config: H.value }), { svgRef: W } = oe({ config: H.value.style.chart.title });
|
|
825
|
+
function Ct() {
|
|
826
|
+
let e = y({
|
|
827
|
+
userConfig: I.config,
|
|
828
|
+
defaultConfig: Fe
|
|
829
|
+
}), t = e.theme;
|
|
830
|
+
if (!t) return e;
|
|
831
|
+
if (!Ie.value(e)) return Le(e), e;
|
|
832
|
+
let n = y({
|
|
833
|
+
userConfig: ce[t] || I.config,
|
|
834
|
+
defaultConfig: e
|
|
835
|
+
}), r = y({
|
|
836
|
+
userConfig: I.config,
|
|
837
|
+
defaultConfig: n
|
|
838
|
+
});
|
|
839
|
+
return {
|
|
840
|
+
...r,
|
|
841
|
+
customPalette: r.customPalette.length ? r.customPalette : i[t] || s
|
|
842
|
+
};
|
|
843
|
+
}
|
|
844
|
+
let wt = M({
|
|
845
|
+
x: 0,
|
|
846
|
+
y: 0
|
|
847
|
+
});
|
|
848
|
+
function Tt() {
|
|
849
|
+
let e = {
|
|
850
|
+
x: 0,
|
|
851
|
+
y: 0,
|
|
852
|
+
width: Math.max(10, G.value.width),
|
|
853
|
+
height: Math.max(10, G.value.height)
|
|
854
|
+
};
|
|
855
|
+
Zt(e), wt.value = {
|
|
856
|
+
x: e.x + e.width / 2,
|
|
857
|
+
y: e.y + e.height / 2
|
|
858
|
+
}, Yt();
|
|
859
|
+
}
|
|
860
|
+
let Et = ie(() => {
|
|
861
|
+
Rt();
|
|
862
|
+
}, 100), Dt = M(!1);
|
|
863
|
+
Te(() => Dt.value, (e) => {
|
|
864
|
+
e === !1 && (Je.value = !0, Et(), Tt());
|
|
865
|
+
}), Te(() => I.config, (e) => {
|
|
866
|
+
H.value = Ct(), bt.value = !H.value.userOptions.showOnChartHover, jt(), Ue.value += 1, We.value += 1, J.value.showTable = H.value.table.show, J.value.showTooltip = H.value.style.chart.tooltip.show, J.value.showZoom = H.value.style.chart.zoom.show;
|
|
867
|
+
}, { deep: !0 });
|
|
868
|
+
let G = M({
|
|
869
|
+
width: H.value.style.chart.width,
|
|
870
|
+
height: H.value.style.chart.height,
|
|
871
|
+
maxFontSize: H.value.style.chart.words.maxFontSize,
|
|
872
|
+
minFontSize: H.value.style.chart.words.minFontSize,
|
|
873
|
+
bold: H.value.style.chart.words.bold
|
|
874
|
+
}), Ot = ie(() => {
|
|
875
|
+
let { width: e, height: t } = ae({
|
|
876
|
+
chart: R.value,
|
|
877
|
+
title: H.value.style.chart.title.text ? Ve.value : null,
|
|
878
|
+
legend: H.value.style.chart.controls.show ? Ye.value?.$el : null,
|
|
879
|
+
source: He.value
|
|
880
|
+
});
|
|
881
|
+
requestAnimationFrame(async () => {
|
|
882
|
+
G.value.width = Math.max(10, e), G.value.height = Math.max(10, t - 12), await he(), Dt.value = !1;
|
|
883
|
+
});
|
|
884
|
+
}, 100), kt = () => {
|
|
885
|
+
Dt.value = !0, Ot();
|
|
886
|
+
}, K = Se(null), q = Se(null);
|
|
887
|
+
ye(jt);
|
|
888
|
+
let At = C(() => !!H.value.debug);
|
|
889
|
+
function jt() {
|
|
890
|
+
o(I.dataset) ? l({
|
|
891
|
+
componentName: "VueUiWordCloud",
|
|
892
|
+
type: "dataset",
|
|
893
|
+
debug: At.value
|
|
894
|
+
}) : vt.value.forEach((e, t) => {
|
|
895
|
+
u({
|
|
896
|
+
datasetObject: e,
|
|
897
|
+
requiredAttributes: ["name", "value"]
|
|
898
|
+
}).forEach((e) => {
|
|
899
|
+
ze.value = !1, l({
|
|
900
|
+
componentName: "VueUiWordCloud",
|
|
901
|
+
type: "datasetSerieAttribute",
|
|
902
|
+
property: e,
|
|
903
|
+
index: t,
|
|
904
|
+
debug: At.value
|
|
905
|
+
});
|
|
906
|
+
});
|
|
907
|
+
}), o(I.dataset) || (_t.value = H.value.loading), H.value.responsive && (K.value && (q.value && K.value.unobserve(q.value), K.value.disconnect()), K.value = new ResizeObserver(kt), q.value = R.value.parentNode, K.value.observe(q.value)), Tt();
|
|
908
|
+
}
|
|
909
|
+
ve(() => {
|
|
910
|
+
K.value && (q.value && K.value.unobserve(q.value), K.value.disconnect());
|
|
911
|
+
});
|
|
912
|
+
let { isPrinting: Mt, isImaging: Nt, generatePdf: Pt, generateImage: Ft } = g({
|
|
913
|
+
elementId: `wordCloud_${L.value}`,
|
|
914
|
+
fileName: H.value.style.chart.title.text || "vue-ui-word-cloud",
|
|
915
|
+
options: H.value.userOptions.print
|
|
916
|
+
}), J = M({
|
|
917
|
+
showTable: H.value.table.show,
|
|
918
|
+
showTooltip: H.value.style.chart.tooltip.show,
|
|
919
|
+
showZoom: H.value.style.chart.zoom.show
|
|
920
|
+
});
|
|
921
|
+
Te(H, () => {
|
|
922
|
+
J.value.showTable = H.value.table.show, J.value.showTooltip = H.value.style.chart.tooltip.show, J.value.showZoom = H.value.style.chart.zoom.show;
|
|
923
|
+
}, { immediate: !0 });
|
|
924
|
+
function It(e, t, n = "Arial") {
|
|
925
|
+
let r = document.createElement("canvas").getContext("2d");
|
|
926
|
+
return r.font = `${t}px ${H.value.style.chart.words.bold ? "bold" : "normal"} ${n}`, {
|
|
927
|
+
width: r.measureText(e).width + H.value.style.chart.words.proximity,
|
|
928
|
+
height: t
|
|
929
|
+
};
|
|
930
|
+
}
|
|
931
|
+
let Y = M([]), Lt = /* @__PURE__ */ new Map();
|
|
932
|
+
function Rt() {
|
|
933
|
+
let e = [...vt.value].map((e) => e.value), t = Math.max(...e), n = Math.min(...e), r = [...vt.value].map((e, r) => {
|
|
934
|
+
let i = (e.value - n) / (t - n) * (G.value.maxFontSize - G.value.minFontSize) + G.value.minFontSize;
|
|
935
|
+
i = isNaN(i) ? G.value.minFontSize : i;
|
|
936
|
+
let a = It(e.name, i);
|
|
937
|
+
return {
|
|
938
|
+
...e,
|
|
939
|
+
id: e.id ?? `${e.name}__${r}`,
|
|
940
|
+
fontSize: i,
|
|
941
|
+
width: a.width,
|
|
942
|
+
height: a.height,
|
|
943
|
+
color: H.value.style.chart.words.usePalette ? H.value.customPalette[r] || H.value.customPalette[r % H.value.customPalette.length] || s[r] || s[r % s.length] : H.value.style.chart.words.color
|
|
944
|
+
};
|
|
945
|
+
});
|
|
946
|
+
Y.value.length = 0, Lt.clear(), Xe({
|
|
947
|
+
debugTiming: At.value,
|
|
948
|
+
words: r,
|
|
949
|
+
svg: G.value,
|
|
950
|
+
proximity: H.value.style.chart.words.proximity,
|
|
951
|
+
strictPixelPadding: H.value.strictPixelPadding,
|
|
952
|
+
onProgress: ({ all: e }) => {
|
|
953
|
+
for (let t of e) {
|
|
954
|
+
let e = t.id, n = Lt.get(e);
|
|
955
|
+
if (n === void 0) n = Y.value.length, Lt.set(e, n), Y.value.push({ ...t });
|
|
956
|
+
else {
|
|
957
|
+
let e = Y.value[n];
|
|
958
|
+
e.x = t.x, e.y = t.y, e.width = t.width, e.height = t.height, e.fontSize = t.fontSize, e.minX = t.minX, e.minY = t.minY, e.maxX = t.maxX, e.maxY = t.maxY;
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
}), Y.value.sort((e, t) => t.fontSize - e.fontSize), Lt.clear(), Y.value.forEach((e, t) => {
|
|
963
|
+
Lt.set(e.id, t);
|
|
964
|
+
}), qe.value = !0, Je.value = !1;
|
|
965
|
+
}
|
|
966
|
+
let zt = C(() => ({
|
|
967
|
+
head: Y.value.map((e) => ({
|
|
968
|
+
name: e.name,
|
|
969
|
+
color: e.color
|
|
970
|
+
})),
|
|
971
|
+
body: Y.value.map((e) => e.value)
|
|
972
|
+
}));
|
|
973
|
+
function Bt(e = null) {
|
|
974
|
+
he(() => {
|
|
975
|
+
let t = zt.value.head.map((e, t) => [[e.name], [zt.value.body[t]]]), n = a([
|
|
976
|
+
[H.value.style.chart.title.text],
|
|
977
|
+
[H.value.style.chart.title.subtitle.text],
|
|
978
|
+
[[""], [H.value.table.columnNames.value]]
|
|
979
|
+
].concat(t));
|
|
980
|
+
e ? e(n) : r({
|
|
981
|
+
csvContent: n,
|
|
982
|
+
title: H.value.style.chart.title.text || "vue-ui-word-cloud"
|
|
983
|
+
});
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
let X = C(() => {
|
|
987
|
+
let e = [H.value.table.columnNames.series, H.value.table.columnNames.value], n = zt.value.head.map((e, n) => {
|
|
988
|
+
let r = t({
|
|
989
|
+
p: H.value.table.td.prefix,
|
|
990
|
+
v: zt.value.body[n],
|
|
991
|
+
s: H.value.table.td.suffix,
|
|
992
|
+
r: H.value.table.td.roundingValue
|
|
993
|
+
});
|
|
994
|
+
return [{
|
|
995
|
+
color: e.color,
|
|
996
|
+
name: e.name
|
|
997
|
+
}, r];
|
|
998
|
+
}), r = n.map((e) => e.map((e, t) => t === 0 ? e.name : e)), i = {
|
|
999
|
+
th: {
|
|
1000
|
+
backgroundColor: H.value.table.th.backgroundColor,
|
|
1001
|
+
color: H.value.table.th.color,
|
|
1002
|
+
outline: H.value.table.th.outline
|
|
1003
|
+
},
|
|
1004
|
+
td: {
|
|
1005
|
+
backgroundColor: H.value.table.td.backgroundColor,
|
|
1006
|
+
color: H.value.table.td.color,
|
|
1007
|
+
outline: H.value.table.td.outline
|
|
1008
|
+
},
|
|
1009
|
+
breakpoint: H.value.table.responsiveBreakpoint
|
|
1010
|
+
};
|
|
1011
|
+
return {
|
|
1012
|
+
colNames: [H.value.table.columnNames.series, H.value.table.columnNames.value],
|
|
1013
|
+
head: e,
|
|
1014
|
+
body: n,
|
|
1015
|
+
a11yBody: r,
|
|
1016
|
+
config: i
|
|
1017
|
+
};
|
|
1018
|
+
}), Z = M(!1);
|
|
1019
|
+
function Vt(e) {
|
|
1020
|
+
Z.value = e, Be.value += 1;
|
|
1021
|
+
}
|
|
1022
|
+
function Ht() {
|
|
1023
|
+
return Y.value;
|
|
1024
|
+
}
|
|
1025
|
+
function Ut() {
|
|
1026
|
+
J.value.showTable = !J.value.showTable;
|
|
1027
|
+
}
|
|
1028
|
+
function Wt() {
|
|
1029
|
+
J.value.showTooltip = !J.value.showTooltip;
|
|
1030
|
+
}
|
|
1031
|
+
let Q = M(!1);
|
|
1032
|
+
function Gt() {
|
|
1033
|
+
Q.value = !Q.value;
|
|
1034
|
+
}
|
|
1035
|
+
function Kt() {
|
|
1036
|
+
J.value.showZoom = !J.value.showZoom;
|
|
1037
|
+
}
|
|
1038
|
+
let qt = C(() => !Q.value && J.value.showZoom), { viewBox: Jt, resetZoom: Yt, isZoom: Xt, setInitialViewBox: Zt, zoomByFactor: Qt, scale: $t } = se(W, {
|
|
1039
|
+
x: 0,
|
|
1040
|
+
y: 0,
|
|
1041
|
+
width: G.value.width <= 0 ? 10 : G.value.width,
|
|
1042
|
+
height: G.value.height <= 0 ? 10 : G.value.height
|
|
1043
|
+
}, 1, qt);
|
|
1044
|
+
Te(() => I.dataset, () => {
|
|
1045
|
+
vt.value = yt(), H.value.responsive || (Rt(), Tt());
|
|
1046
|
+
}, { immediate: !0 });
|
|
1047
|
+
async function en({ scale: e = 2 } = {}) {
|
|
1048
|
+
if (!R.value) return;
|
|
1049
|
+
let { width: t, height: n } = R.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await te({
|
|
1050
|
+
domElement: R.value,
|
|
1051
|
+
base64: !0,
|
|
1052
|
+
img: !0,
|
|
1053
|
+
scale: e
|
|
1054
|
+
});
|
|
1055
|
+
return {
|
|
1056
|
+
imageUri: i,
|
|
1057
|
+
base64: a,
|
|
1058
|
+
title: H.value.style.chart.title.text,
|
|
1059
|
+
width: t,
|
|
1060
|
+
height: n,
|
|
1061
|
+
aspectRatio: r
|
|
1062
|
+
};
|
|
1063
|
+
}
|
|
1064
|
+
let tn = C(() => {
|
|
1065
|
+
let e = H.value.table.useDialog && !H.value.table.show, t = J.value.showTable;
|
|
1066
|
+
return {
|
|
1067
|
+
component: e ? Pe : ke,
|
|
1068
|
+
title: `${H.value.style.chart.title.text}${H.value.style.chart.title.subtitle.text ? `: ${H.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1069
|
+
props: e ? {
|
|
1070
|
+
backgroundColor: H.value.table.th.backgroundColor,
|
|
1071
|
+
color: H.value.table.th.color,
|
|
1072
|
+
headerColor: H.value.table.th.color,
|
|
1073
|
+
headerBg: H.value.table.th.backgroundColor,
|
|
1074
|
+
isFullscreen: Z.value,
|
|
1075
|
+
fullscreenParent: R.value,
|
|
1076
|
+
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
1077
|
+
isCursorPointer: U.value
|
|
1078
|
+
} : {
|
|
1079
|
+
hideDetails: !0,
|
|
1080
|
+
config: {
|
|
1081
|
+
open: t,
|
|
1082
|
+
maxHeight: 1e4,
|
|
1083
|
+
body: {
|
|
1084
|
+
backgroundColor: H.value.style.chart.backgroundColor,
|
|
1085
|
+
color: H.value.style.chart.color
|
|
1086
|
+
},
|
|
1087
|
+
head: {
|
|
1088
|
+
backgroundColor: H.value.style.chart.backgroundColor,
|
|
1089
|
+
color: H.value.style.chart.color
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
};
|
|
1094
|
+
});
|
|
1095
|
+
Te(() => J.value.showTable, (e) => {
|
|
1096
|
+
H.value.table.show || (e && H.value.table.useDialog && z.value ? z.value.open() : "close" in z.value && z.value.close());
|
|
1097
|
+
});
|
|
1098
|
+
function nn() {
|
|
1099
|
+
J.value.showTable = !1, Ke.value && Ke.value.setTableIconState(!1);
|
|
1100
|
+
}
|
|
1101
|
+
let rn = C(() => H.value.style.chart.backgroundColor), { exportSvg: an, getSvg: on } = ee({
|
|
1102
|
+
svg: W,
|
|
1103
|
+
title: C(() => H.value.style.chart.title),
|
|
1104
|
+
backgroundColor: rn
|
|
1105
|
+
});
|
|
1106
|
+
async function sn({ isCb: e }) {
|
|
1107
|
+
B.value = !0, await he();
|
|
1108
|
+
try {
|
|
1109
|
+
if (e) {
|
|
1110
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await on();
|
|
1111
|
+
await Promise.resolve(H.value.userOptions.callbacks.svg({
|
|
1112
|
+
blob: e,
|
|
1113
|
+
url: t,
|
|
1114
|
+
text: n,
|
|
1115
|
+
dataUrl: r
|
|
1116
|
+
}));
|
|
1117
|
+
} else await Promise.resolve(an());
|
|
1118
|
+
} finally {
|
|
1119
|
+
B.value = !1;
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
function cn(e) {
|
|
1123
|
+
if (e?.stage === "start") {
|
|
1124
|
+
Ze.value = !0;
|
|
1125
|
+
return;
|
|
1126
|
+
}
|
|
1127
|
+
if (e?.stage === "end") {
|
|
1128
|
+
Ze.value = !1;
|
|
1129
|
+
return;
|
|
1130
|
+
}
|
|
1131
|
+
Ft();
|
|
1132
|
+
}
|
|
1133
|
+
function ln() {
|
|
1134
|
+
Qt(1.5, !0);
|
|
1135
|
+
}
|
|
1136
|
+
function un() {
|
|
1137
|
+
Qt(1 / 1.5, !0);
|
|
1138
|
+
}
|
|
1139
|
+
let $ = M(null), dn = M(!1), fn = M(""), pn = M(null);
|
|
1140
|
+
function mn() {
|
|
1141
|
+
$.value = null, V.value = null, Ge.value = !1;
|
|
1142
|
+
}
|
|
1143
|
+
function hn(e, t) {
|
|
1144
|
+
H.value.events.datapointLeave && H.value.events.datapointLeave({
|
|
1145
|
+
datapoint: e,
|
|
1146
|
+
seriesIndex: t
|
|
1147
|
+
}), !(V.value === t && ft.value === "keyboard") && ($.value = null, Ge.value = !1);
|
|
1148
|
+
}
|
|
1149
|
+
function gn(e, t) {
|
|
1150
|
+
H.value.events.datapointClick && H.value.events.datapointClick({
|
|
1151
|
+
datapoint: e,
|
|
1152
|
+
seriesIndex: t
|
|
1153
|
+
});
|
|
1154
|
+
}
|
|
1155
|
+
function _n(e) {
|
|
1156
|
+
if (!W.value || e == null) return;
|
|
1157
|
+
let t = W.value.querySelector(`[data-a11y-word-index="${e}-${L.value}"]`);
|
|
1158
|
+
if (!t) return;
|
|
1159
|
+
let n = t.getBoundingClientRect();
|
|
1160
|
+
dt.value = {
|
|
1161
|
+
x: n.left + n.width / 2,
|
|
1162
|
+
y: n.top + n.height / 2
|
|
1163
|
+
};
|
|
1164
|
+
}
|
|
1165
|
+
function vn(e, t, n = "pointer") {
|
|
1166
|
+
if (H.value.events.datapointEnter && H.value.events.datapointEnter({
|
|
1167
|
+
datapoint: e,
|
|
1168
|
+
seriesIndex: t
|
|
1169
|
+
}), !J.value.showTooltip) return;
|
|
1170
|
+
ft.value = n, V.value = t, $.value = e.id, pn.value = {
|
|
1171
|
+
datapoint: e,
|
|
1172
|
+
config: H.value,
|
|
1173
|
+
seriesIndex: t
|
|
1174
|
+
};
|
|
1175
|
+
let r = H.value.style.chart.tooltip.customFormat;
|
|
1176
|
+
if (dn.value = !1, d(r)) try {
|
|
1177
|
+
let t = r({
|
|
1178
|
+
datapoint: e,
|
|
1179
|
+
config: H.value
|
|
1180
|
+
});
|
|
1181
|
+
typeof t == "string" && (fn.value = t, dn.value = !0);
|
|
1182
|
+
} catch {
|
|
1183
|
+
console.warn("Custom format cannot be applied."), dn.value = !1;
|
|
1184
|
+
}
|
|
1185
|
+
dn.value || (fn.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${`<svg viewBox="0 0 10 10" height="${H.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${e.color}"/></svg><span>${e.name}:</span><b>${(e.value || 0).toFixed(H.value.style.chart.tooltip.roundingValue)}</b>`}</div>`), n === "keyboard" && he(() => {
|
|
1186
|
+
_n(t);
|
|
1187
|
+
}), Ge.value = !0;
|
|
1188
|
+
}
|
|
1189
|
+
async function yn() {
|
|
1190
|
+
if (Re("copyAlt", {
|
|
1191
|
+
config: H.value,
|
|
1192
|
+
dataset: Y.value
|
|
1193
|
+
}), !H.value.userOptions.callbacks.altCopy) {
|
|
1194
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1195
|
+
return;
|
|
1196
|
+
}
|
|
1197
|
+
await Promise.resolve(H.value.userOptions.callbacks.altCopy({
|
|
1198
|
+
config: H.value,
|
|
1199
|
+
dataset: Y.value
|
|
1200
|
+
}));
|
|
1201
|
+
}
|
|
1202
|
+
function bn() {
|
|
1203
|
+
V.value = null, pt.value = !0;
|
|
1204
|
+
}
|
|
1205
|
+
function xn() {
|
|
1206
|
+
mn(), pt.value = !1;
|
|
1207
|
+
}
|
|
1208
|
+
function Sn(e) {
|
|
1209
|
+
if (!W.value || Q.value || document.activeElement !== W.value || !Y.value.length) return;
|
|
1210
|
+
let t = e.key === "ArrowLeft" || e.key === "ArrowUp", n = e.key === "ArrowRight" || e.key === "ArrowDown", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1211
|
+
if (!t && !n && !r && !i) return;
|
|
1212
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1213
|
+
mn();
|
|
1214
|
+
return;
|
|
1215
|
+
}
|
|
1216
|
+
if (r) {
|
|
1217
|
+
if (V.value === null) return;
|
|
1218
|
+
let e = Y.value[V.value];
|
|
1219
|
+
if (!e) return;
|
|
1220
|
+
gn(e, V.value);
|
|
1221
|
+
return;
|
|
1222
|
+
}
|
|
1223
|
+
let a = V.value;
|
|
1224
|
+
a === null || a < 0 || a >= Y.value.length ? a = n ? 0 : Y.value.length - 1 : (a += n ? 1 : -1, a < 0 && (a = Y.value.length - 1), a >= Y.value.length && (a = 0));
|
|
1225
|
+
let o = Y.value[a];
|
|
1226
|
+
o && vn(o, a, "keyboard");
|
|
1227
|
+
}
|
|
1228
|
+
let Cn = C(() => ({
|
|
1229
|
+
headers: X.value?.colNames ?? [],
|
|
1230
|
+
rows: X.value?.a11yBody ?? []
|
|
1231
|
+
}));
|
|
1232
|
+
return re({
|
|
1233
|
+
getData: Ht,
|
|
1234
|
+
getImage: en,
|
|
1235
|
+
generateCsv: Bt,
|
|
1236
|
+
generatePdf: Pt,
|
|
1237
|
+
generateImage: Ft,
|
|
1238
|
+
generateSvg: sn,
|
|
1239
|
+
resetZoom: Yt,
|
|
1240
|
+
toggleTable: Ut,
|
|
1241
|
+
toggleTooltip: Wt,
|
|
1242
|
+
toggleAnnotator: Gt,
|
|
1243
|
+
toggleFullscreen: Vt,
|
|
1244
|
+
toggleZoom: Kt,
|
|
1245
|
+
copyAlt: yn
|
|
1246
|
+
}), (e, t) => (j(), E("div", {
|
|
1247
|
+
class: "vue-data-ui-component vue-ui-word-cloud",
|
|
1248
|
+
ref_key: "wordCloudChart",
|
|
1249
|
+
ref: R,
|
|
1250
|
+
id: `wordCloud_${L.value}`,
|
|
1251
|
+
"data-resizing": Dt.value,
|
|
1252
|
+
"data-relayout": Je.value,
|
|
1253
|
+
style: _e(`width: 100%; font-family:${H.value.style.fontFamily};background:${H.value.style.chart.backgroundColor};${H.value.responsive ? "height:100%" : ""}`),
|
|
1254
|
+
onMouseenter: t[3] ||= () => P(xt)(!0),
|
|
1255
|
+
onMouseleave: t[4] ||= () => {
|
|
1256
|
+
P(xt)(!1), pt.value || mn();
|
|
1257
|
+
}
|
|
1258
|
+
}, [
|
|
1259
|
+
D("div", {
|
|
1260
|
+
id: `chart-instructions-${L.value}`,
|
|
1261
|
+
class: "sr-only"
|
|
1262
|
+
}, [D("p", null, Ce(H.value.a11y.translations.keyboardNavigation), 1)], 8, $e),
|
|
1263
|
+
Cn.value?.rows?.length ? (j(), w(x, {
|
|
1264
|
+
key: 0,
|
|
1265
|
+
uid: L.value,
|
|
1266
|
+
head: Cn.value.headers,
|
|
1267
|
+
body: Cn.value.rows,
|
|
1268
|
+
notice: H.value.a11y.translations.tableAvailable,
|
|
1269
|
+
caption: H.value.a11y.translations.tableCaption
|
|
1270
|
+
}, null, 8, [
|
|
1271
|
+
"uid",
|
|
1272
|
+
"head",
|
|
1273
|
+
"body",
|
|
1274
|
+
"notice",
|
|
1275
|
+
"caption"
|
|
1276
|
+
])) : T("", !0),
|
|
1277
|
+
H.value.userOptions.buttons.annotator ? (j(), w(P(je), {
|
|
1278
|
+
key: 1,
|
|
1279
|
+
svgRef: P(W),
|
|
1280
|
+
backgroundColor: H.value.style.chart.backgroundColor,
|
|
1281
|
+
color: H.value.style.chart.color,
|
|
1282
|
+
active: Q.value,
|
|
1283
|
+
isCursorPointer: U.value,
|
|
1284
|
+
onClose: Gt
|
|
1285
|
+
}, {
|
|
1286
|
+
"annotator-action-close": F(() => [N(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1287
|
+
"annotator-action-color": F(({ color: t }) => [N(e.$slots, "annotator-action-color", A(k({ color: t })), void 0, !0)]),
|
|
1288
|
+
"annotator-action-draw": F(({ mode: t }) => [N(e.$slots, "annotator-action-draw", A(k({ mode: t })), void 0, !0)]),
|
|
1289
|
+
"annotator-action-undo": F(({ disabled: t }) => [N(e.$slots, "annotator-action-undo", A(k({ disabled: t })), void 0, !0)]),
|
|
1290
|
+
"annotator-action-redo": F(({ disabled: t }) => [N(e.$slots, "annotator-action-redo", A(k({ disabled: t })), void 0, !0)]),
|
|
1291
|
+
"annotator-action-delete": F(({ disabled: t }) => [N(e.$slots, "annotator-action-delete", A(k({ disabled: t })), void 0, !0)]),
|
|
1292
|
+
_: 3
|
|
1293
|
+
}, 8, [
|
|
1294
|
+
"svgRef",
|
|
1295
|
+
"backgroundColor",
|
|
1296
|
+
"color",
|
|
1297
|
+
"active",
|
|
1298
|
+
"isCursorPointer"
|
|
1299
|
+
])) : T("", !0),
|
|
1300
|
+
H.value.style.chart.title.text ? (j(), E("div", {
|
|
1301
|
+
key: 2,
|
|
1302
|
+
ref_key: "chartTitle",
|
|
1303
|
+
ref: Ve,
|
|
1304
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1305
|
+
}, [(j(), w(ne, {
|
|
1306
|
+
key: `title_${Ue.value}`,
|
|
1307
|
+
config: {
|
|
1308
|
+
title: { ...H.value.style.chart.title },
|
|
1309
|
+
subtitle: { ...H.value.style.chart.title.subtitle }
|
|
1310
|
+
}
|
|
1311
|
+
}, null, 8, ["config"]))], 512)) : T("", !0),
|
|
1312
|
+
H.value.userOptions.show && ze.value && (P(St) || P(bt)) ? (j(), w(P(Me), {
|
|
1313
|
+
ref_key: "userOptionsRef",
|
|
1314
|
+
ref: Ke,
|
|
1315
|
+
key: `user_option_${Be.value}`,
|
|
1316
|
+
backgroundColor: H.value.style.chart.backgroundColor,
|
|
1317
|
+
color: H.value.style.chart.color,
|
|
1318
|
+
isPrinting: P(Mt),
|
|
1319
|
+
isImaging: P(Nt),
|
|
1320
|
+
uid: L.value,
|
|
1321
|
+
hasPdf: H.value.userOptions.buttons.pdf,
|
|
1322
|
+
hasXls: H.value.userOptions.buttons.csv,
|
|
1323
|
+
hasImg: H.value.userOptions.buttons.img,
|
|
1324
|
+
hasSvg: H.value.userOptions.buttons.svg,
|
|
1325
|
+
hasTable: H.value.userOptions.buttons.table,
|
|
1326
|
+
hasFullscreen: H.value.userOptions.buttons.fullscreen,
|
|
1327
|
+
hasAltCopy: H.value.userOptions.buttons.altCopy,
|
|
1328
|
+
isFullscreen: Z.value,
|
|
1329
|
+
titles: { ...H.value.userOptions.buttonTitles },
|
|
1330
|
+
chartElement: R.value,
|
|
1331
|
+
position: H.value.userOptions.position,
|
|
1332
|
+
hasTooltip: H.value.style.chart.tooltip.show && H.value.userOptions.buttons.tooltip,
|
|
1333
|
+
isTooltip: J.value.showTooltip,
|
|
1334
|
+
hasAnnotator: H.value.userOptions.buttons.annotator,
|
|
1335
|
+
isAnnotation: Q.value,
|
|
1336
|
+
callbacks: H.value.userOptions.callbacks,
|
|
1337
|
+
printScale: H.value.userOptions.print.scale,
|
|
1338
|
+
tableDialog: H.value.table.useDialog,
|
|
1339
|
+
hasZoom: H.value.userOptions.buttons.zoom,
|
|
1340
|
+
isZoom: J.value.showZoom,
|
|
1341
|
+
isCursorPointer: U.value,
|
|
1342
|
+
onToggleFullscreen: Vt,
|
|
1343
|
+
onGeneratePdf: P(Pt),
|
|
1344
|
+
onGenerateCsv: Bt,
|
|
1345
|
+
onGenerateImage: cn,
|
|
1346
|
+
onGenerateSvg: sn,
|
|
1347
|
+
onToggleTable: Ut,
|
|
1348
|
+
onToggleTooltip: Wt,
|
|
1349
|
+
onToggleAnnotator: Gt,
|
|
1350
|
+
onToggleZoom: Kt,
|
|
1351
|
+
onCopyAlt: yn,
|
|
1352
|
+
style: _e({ visibility: P(St) ? P(bt) ? "visible" : "hidden" : "visible" })
|
|
1353
|
+
}, de({ _: 2 }, [
|
|
1354
|
+
e.$slots.menuIcon ? {
|
|
1355
|
+
name: "menuIcon",
|
|
1356
|
+
fn: F(({ isOpen: t, color: n }) => [N(e.$slots, "menuIcon", A(k({
|
|
1357
|
+
isOpen: t,
|
|
1358
|
+
color: n
|
|
1359
|
+
})), void 0, !0)]),
|
|
1360
|
+
key: "0"
|
|
1361
|
+
} : void 0,
|
|
1362
|
+
e.$slots.optionTooltip ? {
|
|
1363
|
+
name: "optionTooltip",
|
|
1364
|
+
fn: F(() => [N(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1365
|
+
key: "1"
|
|
1366
|
+
} : void 0,
|
|
1367
|
+
e.$slots.optionPdf ? {
|
|
1368
|
+
name: "optionPdf",
|
|
1369
|
+
fn: F(() => [N(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1370
|
+
key: "2"
|
|
1371
|
+
} : void 0,
|
|
1372
|
+
e.$slots.optionCsv ? {
|
|
1373
|
+
name: "optionCsv",
|
|
1374
|
+
fn: F(() => [N(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1375
|
+
key: "3"
|
|
1376
|
+
} : void 0,
|
|
1377
|
+
e.$slots.optionImg ? {
|
|
1378
|
+
name: "optionImg",
|
|
1379
|
+
fn: F(() => [N(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1380
|
+
key: "4"
|
|
1381
|
+
} : void 0,
|
|
1382
|
+
e.$slots.optionSvg ? {
|
|
1383
|
+
name: "optionSvg",
|
|
1384
|
+
fn: F(() => [N(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1385
|
+
key: "5"
|
|
1386
|
+
} : void 0,
|
|
1387
|
+
e.$slots.optionTable ? {
|
|
1388
|
+
name: "optionTable",
|
|
1389
|
+
fn: F(() => [N(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1390
|
+
key: "6"
|
|
1391
|
+
} : void 0,
|
|
1392
|
+
e.$slots.optionFullscreen ? {
|
|
1393
|
+
name: "optionFullscreen",
|
|
1394
|
+
fn: F(({ toggleFullscreen: t, isFullscreen: n }) => [N(e.$slots, "optionFullscreen", A(k({
|
|
1395
|
+
toggleFullscreen: t,
|
|
1396
|
+
isFullscreen: n
|
|
1397
|
+
})), void 0, !0)]),
|
|
1398
|
+
key: "7"
|
|
1399
|
+
} : void 0,
|
|
1400
|
+
e.$slots.optionAnnotator ? {
|
|
1401
|
+
name: "optionAnnotator",
|
|
1402
|
+
fn: F(({ toggleAnnotator: t, isAnnotator: n }) => [N(e.$slots, "optionAnnotator", A(k({
|
|
1403
|
+
toggleAnnotator: t,
|
|
1404
|
+
isAnnotator: n
|
|
1405
|
+
})), void 0, !0)]),
|
|
1406
|
+
key: "8"
|
|
1407
|
+
} : void 0,
|
|
1408
|
+
e.$slots.optionZoom ? {
|
|
1409
|
+
name: "optionZoom",
|
|
1410
|
+
fn: F(({ toggleZoom: t, isZoomLocked: n }) => [N(e.$slots, "optionZoom", A(k({
|
|
1411
|
+
toggleZoom: t,
|
|
1412
|
+
isZoomLocked: n
|
|
1413
|
+
})), void 0, !0)]),
|
|
1414
|
+
key: "9"
|
|
1415
|
+
} : void 0,
|
|
1416
|
+
e.$slots.optionAltCopy ? {
|
|
1417
|
+
name: "optionAltCopy",
|
|
1418
|
+
fn: F(({ altCopy: t }) => [N(e.$slots, "optionAltCopy", A(k({ altCopy: t })), void 0, !0)]),
|
|
1419
|
+
key: "10"
|
|
1420
|
+
} : void 0
|
|
1421
|
+
]), 1032, /* @__PURE__ */ "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".split("."))) : T("", !0),
|
|
1422
|
+
H.value.style.chart.controls.position === "top" && H.value.style.chart.controls.show && !P(ht) ? (j(), w(le, {
|
|
1423
|
+
key: 4,
|
|
1424
|
+
ref_key: "zoomControls",
|
|
1425
|
+
ref: Ye,
|
|
1426
|
+
config: H.value,
|
|
1427
|
+
scale: P($t),
|
|
1428
|
+
isFullscreen: Z.value,
|
|
1429
|
+
isCursorPointer: U.value,
|
|
1430
|
+
onZoomIn: ln,
|
|
1431
|
+
onZoomOut: un,
|
|
1432
|
+
onResetZoom: t[0] ||= (e) => P(Yt)(!0)
|
|
1433
|
+
}, null, 8, [
|
|
1434
|
+
"config",
|
|
1435
|
+
"scale",
|
|
1436
|
+
"isFullscreen",
|
|
1437
|
+
"isCursorPointer"
|
|
1438
|
+
])) : T("", !0),
|
|
1439
|
+
D("div", et, [(j(), E("svg", {
|
|
1440
|
+
ref_key: "svgRef",
|
|
1441
|
+
ref: W,
|
|
1442
|
+
class: ge({
|
|
1443
|
+
"vue-data-ui-fullscreen--on": Z.value,
|
|
1444
|
+
"vue-data-ui-fulscreen--off": !Z.value
|
|
1445
|
+
}),
|
|
1446
|
+
"aria-describedby": `chart-instructions-${L.value}`,
|
|
1447
|
+
xmlns: P(f),
|
|
1448
|
+
viewBox: `${P(Jt).x} ${P(Jt).y} ${P(Jt).width} ${P(Jt).height}`,
|
|
1449
|
+
style: "overflow:hidden;background:transparent;display:block",
|
|
1450
|
+
tabindex: "0",
|
|
1451
|
+
onFocus: bn,
|
|
1452
|
+
onBlur: xn,
|
|
1453
|
+
onKeydown: Sn
|
|
1454
|
+
}, [
|
|
1455
|
+
pe(P(Ne)),
|
|
1456
|
+
e.$slots["chart-background"] ? (j(), E("foreignObject", {
|
|
1457
|
+
key: 0,
|
|
1458
|
+
x: 0,
|
|
1459
|
+
y: 0,
|
|
1460
|
+
width: G.value.width <= 0 ? 10 : G.value.width,
|
|
1461
|
+
height: G.value.height <= 0 ? 10 : G.value.height,
|
|
1462
|
+
style: { pointerEvents: "none" }
|
|
1463
|
+
}, [N(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : T("", !0),
|
|
1464
|
+
D("g", {
|
|
1465
|
+
transform: `translate(${wt.value.x}, ${wt.value.y})`,
|
|
1466
|
+
class: ge({ "wc-finalized": qe.value })
|
|
1467
|
+
}, [(j(!0), E(ue, null, be(Y.value, (e, t) => (j(), E("g", {
|
|
1468
|
+
key: e.id,
|
|
1469
|
+
class: "vue-ui-word-cloud-word",
|
|
1470
|
+
transform: `translate(${e.x}, ${e.y})`
|
|
1471
|
+
}, [e.minX === void 0 ? T("", !0) : (j(), E("rect", {
|
|
1472
|
+
key: 0,
|
|
1473
|
+
"data-a11y-word-index": `${t}-${L.value}`,
|
|
1474
|
+
x: e.minX,
|
|
1475
|
+
y: e.minY * 1.25,
|
|
1476
|
+
width: e.maxX - e.minX,
|
|
1477
|
+
height: e.maxY - e.minY,
|
|
1478
|
+
fill: "transparent",
|
|
1479
|
+
"pointer-events": "visiblePainted",
|
|
1480
|
+
"aria-label": `${e.name}: ${(e.value || 0).toFixed(H.value.style.chart.tooltip.roundingValue)}`,
|
|
1481
|
+
onMouseover: (n) => vn(e, t),
|
|
1482
|
+
onMouseleave: (n) => hn(e, t),
|
|
1483
|
+
onClick: (n) => gn(e, t)
|
|
1484
|
+
}, null, 40, at)), D("text", {
|
|
1485
|
+
fill: e.color,
|
|
1486
|
+
"font-weight": H.value.style.chart.words.bold ? "bold" : "normal",
|
|
1487
|
+
x: 0,
|
|
1488
|
+
y: 0,
|
|
1489
|
+
"font-size": e.fontSize,
|
|
1490
|
+
transform: `translate(${e.width / 2}, ${e.height / 2})`,
|
|
1491
|
+
"text-anchor": "middle",
|
|
1492
|
+
"dominant-baseline": "central",
|
|
1493
|
+
"paint-order": "stroke fill",
|
|
1494
|
+
stroke: !$.value || $.value === e.id ? H.value.style.chart.words.selectedStroke : void 0,
|
|
1495
|
+
"stroke-width": e.height * .05,
|
|
1496
|
+
"stroke-linecap": "round",
|
|
1497
|
+
"stroke-linejoin": "round",
|
|
1498
|
+
style: _e(`
|
|
1499
|
+
pointer-events:none;
|
|
1500
|
+
fill-opacity:${!$.value || $.value === e.id || !qe.value ? 1 : H.value.style.chart.words.hoverOpacity} !important;
|
|
1501
|
+
`)
|
|
1502
|
+
}, Ce(e.name), 13, ot)], 8, it))), 128))], 10, rt),
|
|
1503
|
+
N(e.$slots, "svg", { svg: {
|
|
1504
|
+
...G.value,
|
|
1505
|
+
isPrintingImg: P(Mt) || P(Nt) || Ze.value,
|
|
1506
|
+
isPrintingSvg: B.value
|
|
1507
|
+
} }, void 0, !0)
|
|
1508
|
+
], 42, tt)), e.$slots.hint ? (j(), E("div", st, [N(e.$slots, "hint", A(k({
|
|
1509
|
+
hint: H.value.a11y.translations.keyboardNavigation,
|
|
1510
|
+
isVisible: pt.value
|
|
1511
|
+
})), void 0, !0)])) : T("", !0)]),
|
|
1512
|
+
e.$slots.watermark ? (j(), E("div", ct, [N(e.$slots, "watermark", A(k({ isPrinting: P(Mt) || P(Nt) || Ze.value || B.value })), void 0, !0)])) : T("", !0),
|
|
1513
|
+
P(Xt) ? (j(), E("div", lt, [N(e.$slots, "reset-action", { reset: P(Yt) }, void 0, !0)])) : T("", !0),
|
|
1514
|
+
H.value.style.chart.controls.position === "bottom" && H.value.style.chart.controls.show && !P(ht) ? (j(), w(le, {
|
|
1515
|
+
key: 7,
|
|
1516
|
+
ref_key: "zoomControls",
|
|
1517
|
+
ref: Ye,
|
|
1518
|
+
config: H.value,
|
|
1519
|
+
scale: P($t),
|
|
1520
|
+
isFullscreen: Z.value,
|
|
1521
|
+
isCursorPointer: U.value,
|
|
1522
|
+
onZoomIn: ln,
|
|
1523
|
+
onZoomOut: un,
|
|
1524
|
+
onResetZoom: t[1] ||= (e) => P(Yt)(!0)
|
|
1525
|
+
}, null, 8, [
|
|
1526
|
+
"config",
|
|
1527
|
+
"scale",
|
|
1528
|
+
"isFullscreen",
|
|
1529
|
+
"isCursorPointer"
|
|
1530
|
+
])) : T("", !0),
|
|
1531
|
+
pe(P(De), {
|
|
1532
|
+
teleportTo: H.value.style.chart.tooltip.teleportTo,
|
|
1533
|
+
show: J.value.showTooltip && Ge.value,
|
|
1534
|
+
backgroundColor: H.value.style.chart.tooltip.backgroundColor,
|
|
1535
|
+
color: H.value.style.chart.tooltip.color,
|
|
1536
|
+
fontSize: H.value.style.chart.tooltip.fontSize,
|
|
1537
|
+
borderRadius: H.value.style.chart.tooltip.borderRadius,
|
|
1538
|
+
borderColor: H.value.style.chart.tooltip.borderColor,
|
|
1539
|
+
borderWidth: H.value.style.chart.tooltip.borderWidth,
|
|
1540
|
+
backgroundOpacity: H.value.style.chart.tooltip.backgroundOpacity,
|
|
1541
|
+
position: H.value.style.chart.tooltip.position,
|
|
1542
|
+
offsetY: H.value.style.chart.tooltip.offsetY,
|
|
1543
|
+
parent: R.value,
|
|
1544
|
+
content: fn.value,
|
|
1545
|
+
isCustom: dn.value,
|
|
1546
|
+
isFullscreen: Z.value,
|
|
1547
|
+
smooth: H.value.style.chart.tooltip.smooth,
|
|
1548
|
+
backdropFilter: H.value.style.chart.tooltip.backdropFilter,
|
|
1549
|
+
smoothForce: H.value.style.chart.tooltip.smoothForce,
|
|
1550
|
+
smoothSnapThreshold: H.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1551
|
+
isA11yMode: ft.value === "keyboard",
|
|
1552
|
+
a11yPosition: dt.value
|
|
1553
|
+
}, {
|
|
1554
|
+
"tooltip-before": F(() => [N(e.$slots, "tooltip-before", A(k({ ...pn.value })), void 0, !0)]),
|
|
1555
|
+
tooltip: F(() => [N(e.$slots, "tooltip", A(k({ ...pn.value })), void 0, !0)]),
|
|
1556
|
+
"tooltip-after": F(() => [N(e.$slots, "tooltip-after", A(k({ ...pn.value })), void 0, !0)]),
|
|
1557
|
+
_: 3
|
|
1558
|
+
}, 8, [
|
|
1559
|
+
"teleportTo",
|
|
1560
|
+
"show",
|
|
1561
|
+
"backgroundColor",
|
|
1562
|
+
"color",
|
|
1563
|
+
"fontSize",
|
|
1564
|
+
"borderRadius",
|
|
1565
|
+
"borderColor",
|
|
1566
|
+
"borderWidth",
|
|
1567
|
+
"backgroundOpacity",
|
|
1568
|
+
"position",
|
|
1569
|
+
"offsetY",
|
|
1570
|
+
"parent",
|
|
1571
|
+
"content",
|
|
1572
|
+
"isCustom",
|
|
1573
|
+
"isFullscreen",
|
|
1574
|
+
"smooth",
|
|
1575
|
+
"backdropFilter",
|
|
1576
|
+
"smoothForce",
|
|
1577
|
+
"smoothSnapThreshold",
|
|
1578
|
+
"isA11yMode",
|
|
1579
|
+
"a11yPosition"
|
|
1580
|
+
]),
|
|
1581
|
+
e.$slots.source ? (j(), E("div", {
|
|
1582
|
+
key: 8,
|
|
1583
|
+
ref_key: "source",
|
|
1584
|
+
ref: He,
|
|
1585
|
+
dir: "auto"
|
|
1586
|
+
}, [N(e.$slots, "source", {}, void 0, !0)], 512)) : T("", !0),
|
|
1587
|
+
ze.value && H.value.userOptions.buttons.table ? (j(), w(xe(tn.value.component), me({ key: 9 }, tn.value.props, {
|
|
1588
|
+
ref_key: "tableUnit",
|
|
1589
|
+
ref: z,
|
|
1590
|
+
onClose: nn
|
|
1591
|
+
}), de({
|
|
1592
|
+
content: F(() => [(j(), w(P(Ae), {
|
|
1593
|
+
key: `table_${We.value}`,
|
|
1594
|
+
colNames: X.value.colNames,
|
|
1595
|
+
head: X.value.head,
|
|
1596
|
+
body: X.value.body,
|
|
1597
|
+
config: X.value.config,
|
|
1598
|
+
title: H.value.table.useDialog ? "" : tn.value.title,
|
|
1599
|
+
withCloseButton: !H.value.table.useDialog,
|
|
1600
|
+
isCursorPointer: U.value,
|
|
1601
|
+
onClose: nn
|
|
1602
|
+
}, {
|
|
1603
|
+
th: F(({ th: e }) => [D("div", {
|
|
1604
|
+
innerHTML: e,
|
|
1605
|
+
style: {
|
|
1606
|
+
display: "flex",
|
|
1607
|
+
"align-items": "center"
|
|
1608
|
+
}
|
|
1609
|
+
}, null, 8, ut)]),
|
|
1610
|
+
td: F(({ td: e }) => [fe(Ce(e.name || e), 1)]),
|
|
1611
|
+
_: 1
|
|
1612
|
+
}, 8, [
|
|
1613
|
+
"colNames",
|
|
1614
|
+
"head",
|
|
1615
|
+
"body",
|
|
1616
|
+
"config",
|
|
1617
|
+
"title",
|
|
1618
|
+
"withCloseButton",
|
|
1619
|
+
"isCursorPointer"
|
|
1620
|
+
]))]),
|
|
1621
|
+
_: 2
|
|
1622
|
+
}, [H.value.table.useDialog ? {
|
|
1623
|
+
name: "title",
|
|
1624
|
+
fn: F(() => [fe(Ce(tn.value.title), 1)]),
|
|
1625
|
+
key: "0"
|
|
1626
|
+
} : void 0, H.value.table.useDialog ? {
|
|
1627
|
+
name: "actions",
|
|
1628
|
+
fn: F(() => [D("button", {
|
|
1629
|
+
tabindex: "0",
|
|
1630
|
+
class: "vue-ui-user-options-button",
|
|
1631
|
+
onClick: t[2] ||= (e) => Bt(H.value.userOptions.callbacks.csv),
|
|
1632
|
+
style: _e({ cursor: U.value ? "pointer" : "default" })
|
|
1633
|
+
}, [pe(P(Oe), {
|
|
1634
|
+
name: "fileCsv",
|
|
1635
|
+
stroke: tn.value.props.color
|
|
1636
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1637
|
+
key: "1"
|
|
1638
|
+
} : void 0]), 1040)) : T("", !0),
|
|
1639
|
+
N(e.$slots, "skeleton", {}, () => [P(ht) ? (j(), w(v, { key: 0 })) : T("", !0)], !0)
|
|
1640
|
+
], 44, Qe));
|
|
1641
|
+
}
|
|
1642
|
+
}, [["__scopeId", "data-v-f9c4fa7c"]]);
|
|
1643
|
+
//#endregion
|
|
1644
|
+
export { Ze as n, B as t };
|