vue-data-ui 3.17.13 → 3.18.0
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-BU2Z7mfz.js +116 -0
- package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
- package/dist/BaseIcon-CL6Y7alf.js +499 -0
- package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
- package/dist/BaseScanner-C7dmAref.js +27 -0
- package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
- package/dist/ColorPicker-BGbMrtup.js +255 -0
- package/dist/DataTable-ZG4GX2Zg.js +150 -0
- package/dist/Legend-BPb8i4aC.js +114 -0
- package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
- package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
- package/dist/PenAndPaper-DxBCVZAx.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-Dbug7CtK.js +141 -0
- package/dist/Slicer-SEdaKYPX.js +1144 -0
- package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
- package/dist/SparkTooltip-BaONR2nq.js +93 -0
- package/dist/Title-ByyzJzpc.js +87 -0
- package/dist/Tooltip-V6Z0Ko-1.js +307 -0
- package/dist/UserOptions-Gaw1761w.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-C9UOX1d2.js +237 -0
- package/dist/exposedLib-BQjH823l.js +19 -0
- package/dist/geoProjections-CQIkC70z.js +146 -0
- package/dist/img-NMY-_LiJ.js +74 -0
- package/dist/labelUtils-BiSegLOT.js +19 -0
- package/dist/lib-B83ZCydz.js +1879 -0
- package/dist/patternUtils-B7BWu5bV.js +258 -0
- package/dist/pdf-Ey2KFETK.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 +4766 -630
- 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-De0rTecW.js +50 -0
- package/dist/useChartAccessibility-Do37qcw2.js +12 -0
- package/dist/useConfig-KnOLHtlJ.js +7419 -0
- package/dist/useFitSvgText-C-MEdAfe.js +63 -0
- package/dist/useNestedProp-CcxL1gUU.js +10 -0
- package/dist/useObjectBindings-Dc8Rf6Qy.js +189 -0
- package/dist/usePanZoom-B-4M_gmY.js +157 -0
- package/dist/usePrefersMotion-BywLbIko.js +15 -0
- package/dist/usePrinter-CMLF900n.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-D1REqS_k.js +274 -0
- package/dist/vue-data-ui.js +76 -167
- package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
- package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
- package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
- package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
- package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
- package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
- package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
- package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
- package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
- package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
- package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
- package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
- package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
- package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
- package/dist/vue-ui-digits-CcB3odN7.js +209 -0
- package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
- package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
- package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
- package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
- package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
- package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
- package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
- package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
- package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
- package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
- package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
- package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
- package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
- package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
- package/dist/vue-ui-molecule-D72kzel_.js +912 -0
- package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
- package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
- package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
- package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.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-zNFIXNt9.js +1966 -0
- package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
- package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
- package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
- package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
- package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
- package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
- package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
- package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
- package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
- package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
- package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
- package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
- package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
- package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
- package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
- package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
- package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
- package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
- package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
- package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
- package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
- package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
- package/dist/vue-ui-timer-DCbxsREb.js +439 -0
- package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
- package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
- package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
- package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
- package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
- package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
- package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
- package/dist/vue-ui-xy-canvas-DU7vFrQr.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,910 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { B as t, C as n, Ct as r, G as i, H as a, Lt as ee, Rt as o, St as s, Tt as te, X as c, bt as l, i as u, jt as ne, ot as re, t as ie, u as ae, v as oe, x as se, y as ce, zt as le } from "./lib-B83ZCydz.js";
|
|
3
|
+
import { t as ue } from "./useConfig-KnOLHtlJ.js";
|
|
4
|
+
import { t as de } from "./usePrinter-CMLF900n.js";
|
|
5
|
+
import { n as fe, t as pe } from "./BaseScanner-C7dmAref.js";
|
|
6
|
+
import { t as me } from "./useSvgExport-Dtu973wa.js";
|
|
7
|
+
import { t as he } from "./useNestedProp-CcxL1gUU.js";
|
|
8
|
+
import { t as ge } from "./useThemeCheck-rFK9Zlb_.js";
|
|
9
|
+
import { t as _e } from "./img-NMY-_LiJ.js";
|
|
10
|
+
import { n as ve } from "./Title-ByyzJzpc.js";
|
|
11
|
+
import { t as ye } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
12
|
+
import { c as be } from "./canvas-lib-DTaADQOK.js";
|
|
13
|
+
import { t as xe } from "./useResponsive-CrAInupd.js";
|
|
14
|
+
import { t as Se } from "./useUserOptionState-CjPJPTg2.js";
|
|
15
|
+
import { t as Ce } from "./useChartAccessibility-Do37qcw2.js";
|
|
16
|
+
import { t as we } from "./useAutoSizeLabelsInsideViewbox-De0rTecW.js";
|
|
17
|
+
import { t as Te } from "./vue_ui_gauge-C17CgfzN.js";
|
|
18
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Ee, createVNode as De, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as y, nextTick as Oe, normalizeClass as ke, normalizeProps as b, normalizeStyle as Ae, onBeforeUnmount as je, onMounted as Me, openBlock as x, ref as S, renderList as C, renderSlot as w, shallowRef as Ne, toDisplayString as T, toRefs as Pe, unref as E, watch as Fe, withCtx as D } from "vue";
|
|
19
|
+
//#region src/components/vue-ui-gauge.vue
|
|
20
|
+
var Ie = /* @__PURE__ */ e({ default: () => vt }), Le = ["id"], Re = { key: 0 }, ze = ["xmlns", "viewBox"], Be = ["width", "height"], Ve = ["id"], He = ["stop-color"], Ue = ["stop-color"], We = ["stop-color"], Ge = ["id"], Ke = ["stdDeviation"], qe = { key: 1 }, Je = [
|
|
21
|
+
"d",
|
|
22
|
+
"fill",
|
|
23
|
+
"stroke"
|
|
24
|
+
], Ye = [
|
|
25
|
+
"d",
|
|
26
|
+
"fill",
|
|
27
|
+
"stroke"
|
|
28
|
+
], Xe = ["d", "fill"], Ze = ["id", "d"], Qe = [
|
|
29
|
+
"fill",
|
|
30
|
+
"font-size",
|
|
31
|
+
"font-weight"
|
|
32
|
+
], $e = ["href", "startOffset"], et = [
|
|
33
|
+
"text-anchor",
|
|
34
|
+
"fill",
|
|
35
|
+
"font-size",
|
|
36
|
+
"font-weight",
|
|
37
|
+
"innerHTML"
|
|
38
|
+
], tt = ["d", "filter"], nt = ["stroke", "stroke-width"], rt = ["stroke", "stroke-width"], it = ["stroke", "stroke-width"], at = ["stroke", "stroke-width"], ot = { key: 8 }, st = [
|
|
39
|
+
"x",
|
|
40
|
+
"y",
|
|
41
|
+
"text-anchor",
|
|
42
|
+
"font-size",
|
|
43
|
+
"font-weight",
|
|
44
|
+
"fill"
|
|
45
|
+
], ct = [
|
|
46
|
+
"x",
|
|
47
|
+
"y",
|
|
48
|
+
"font-size",
|
|
49
|
+
"font-weight",
|
|
50
|
+
"fill"
|
|
51
|
+
], lt = { key: 0 }, ut = [
|
|
52
|
+
"x1",
|
|
53
|
+
"y1",
|
|
54
|
+
"x2",
|
|
55
|
+
"y2",
|
|
56
|
+
"stroke",
|
|
57
|
+
"stroke-width"
|
|
58
|
+
], dt = [
|
|
59
|
+
"x1",
|
|
60
|
+
"y1",
|
|
61
|
+
"x2",
|
|
62
|
+
"y2",
|
|
63
|
+
"stroke",
|
|
64
|
+
"stroke-width"
|
|
65
|
+
], ft = [
|
|
66
|
+
"x1",
|
|
67
|
+
"y1",
|
|
68
|
+
"x2",
|
|
69
|
+
"y2",
|
|
70
|
+
"stroke-width",
|
|
71
|
+
"filter"
|
|
72
|
+
], pt = { key: 1 }, mt = [
|
|
73
|
+
"d",
|
|
74
|
+
"fill",
|
|
75
|
+
"stroke",
|
|
76
|
+
"stroke-width"
|
|
77
|
+
], ht = [
|
|
78
|
+
"cx",
|
|
79
|
+
"cy",
|
|
80
|
+
"fill",
|
|
81
|
+
"r",
|
|
82
|
+
"stroke-width",
|
|
83
|
+
"stroke"
|
|
84
|
+
], gt = [
|
|
85
|
+
"x",
|
|
86
|
+
"y",
|
|
87
|
+
"font-size",
|
|
88
|
+
"fill"
|
|
89
|
+
], _t = {
|
|
90
|
+
key: 4,
|
|
91
|
+
class: "vue-data-ui-watermark"
|
|
92
|
+
}, vt = /* @__PURE__ */ ye({
|
|
93
|
+
__name: "vue-ui-gauge",
|
|
94
|
+
props: {
|
|
95
|
+
config: {
|
|
96
|
+
type: Object,
|
|
97
|
+
default() {
|
|
98
|
+
return {};
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
dataset: {
|
|
102
|
+
type: Object,
|
|
103
|
+
default() {
|
|
104
|
+
return {};
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
emits: ["copyAlt"],
|
|
109
|
+
setup(e, { expose: ye, emit: Ie }) {
|
|
110
|
+
let vt = _(() => import("./PenAndPaper-DxBCVZAx.js").then((e) => e.t)), yt = _(() => import("./UserOptions-Gaw1761w.js").then((e) => e.n)), bt = _(() => import("./PackageVersion-B1cPtZ3Q.js").then((e) => e.t)), { vue_ui_gauge: xt } = ue(), { isThemeValid: St, warnInvalidTheme: Ct } = ge(), O = e, wt = Ie, Tt = f(() => !!O.dataset && Object.keys(O.dataset).length > 0 && O.dataset.series && O.dataset.series.length), k = S(a()), Et = S(null), Dt = S(0), A = S(null), Ot = S(null), kt = S(null), At = S(null), jt = S(null), Mt = S(0), j = S(!1), M = S(!1), N = S(zt()), Nt = f(() => N.value.userOptions.useCursorPointer), Pt = f(() => le({
|
|
111
|
+
defaultConfig: {
|
|
112
|
+
userOptions: { show: !1 },
|
|
113
|
+
style: { chart: {
|
|
114
|
+
backgroundColor: "#99999930",
|
|
115
|
+
animation: { use: !1 },
|
|
116
|
+
layout: {
|
|
117
|
+
markers: { show: !1 },
|
|
118
|
+
segmentSeparators: { stroke: "#6A6A6A" },
|
|
119
|
+
segmentNames: { show: !1 },
|
|
120
|
+
indicatorArc: { fill: "#6A6A6A50" },
|
|
121
|
+
pointer: {
|
|
122
|
+
stroke: "#6A6A6A",
|
|
123
|
+
useRatingColor: !0,
|
|
124
|
+
circle: {
|
|
125
|
+
stroke: "#6A6A6A",
|
|
126
|
+
color: "#6A6A6A"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
legend: { show: !1 }
|
|
131
|
+
} }
|
|
132
|
+
},
|
|
133
|
+
userConfig: N.value.skeletonConfig ?? {}
|
|
134
|
+
})), { loading: Ft, FINAL_DATASET: P, manualLoading: F } = fe({
|
|
135
|
+
...Pe(O),
|
|
136
|
+
FINAL_CONFIG: N,
|
|
137
|
+
prepareConfig: zt,
|
|
138
|
+
callback: () => {
|
|
139
|
+
Promise.resolve().then(async () => {
|
|
140
|
+
await Oe();
|
|
141
|
+
});
|
|
142
|
+
},
|
|
143
|
+
skeletonDataset: O.config?.skeletonDataset ?? {
|
|
144
|
+
value: 0,
|
|
145
|
+
series: [{
|
|
146
|
+
from: -1,
|
|
147
|
+
to: 0,
|
|
148
|
+
name: "_",
|
|
149
|
+
color: "#A1A1A1"
|
|
150
|
+
}, {
|
|
151
|
+
from: 0,
|
|
152
|
+
to: 1,
|
|
153
|
+
name: "__",
|
|
154
|
+
color: "#CACACA"
|
|
155
|
+
}]
|
|
156
|
+
},
|
|
157
|
+
skeletonConfig: le({
|
|
158
|
+
defaultConfig: N.value,
|
|
159
|
+
userConfig: Pt.value
|
|
160
|
+
})
|
|
161
|
+
}), { userOptionsVisible: It, setUserOptionsVisibility: Lt, keepUserOptionState: Rt } = Se({ config: N.value }), { svgRef: I } = Ce({ config: N.value.style.chart.title });
|
|
162
|
+
Fe(() => O.config, (e) => {
|
|
163
|
+
Ft.value || (N.value = zt()), It.value = !N.value.userOptions.showOnChartHover, Yt(), Mt.value += 1;
|
|
164
|
+
}, { deep: !0 }), Fe(() => O.dataset, (e) => {
|
|
165
|
+
Yt(), e && Object.keys(e).length > 0 && (F.value = N.value?.loading ?? !1);
|
|
166
|
+
}, {
|
|
167
|
+
deep: !0,
|
|
168
|
+
immediate: !1
|
|
169
|
+
});
|
|
170
|
+
function zt() {
|
|
171
|
+
let e = he({
|
|
172
|
+
userConfig: O.config,
|
|
173
|
+
defaultConfig: xt
|
|
174
|
+
}), t = e.theme;
|
|
175
|
+
if (!t) return e;
|
|
176
|
+
if (!St.value(e)) return Ct(e), e;
|
|
177
|
+
let n = he({
|
|
178
|
+
userConfig: Te[t] || O.config,
|
|
179
|
+
defaultConfig: e
|
|
180
|
+
}), r = he({
|
|
181
|
+
userConfig: O.config,
|
|
182
|
+
defaultConfig: n
|
|
183
|
+
});
|
|
184
|
+
return {
|
|
185
|
+
...r,
|
|
186
|
+
customPalette: r.customPalette.length ? r.customPalette : ee[t] || te
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
let { isPrinting: Bt, isImaging: Vt, generatePdf: Ht, generateImage: Ut } = de({
|
|
190
|
+
elementId: `vue-ui-gauge_${k.value}`,
|
|
191
|
+
fileName: N.value.style.chart.title.text || "vue-ui-gauge",
|
|
192
|
+
options: N.value.userOptions.print
|
|
193
|
+
}), Wt = f(() => N.value.userOptions.show && !N.value.style.chart.title.text), Gt = f(() => se(N.value.customPalette)), L = f(() => {
|
|
194
|
+
if (s(P.value.series || {})) return {
|
|
195
|
+
value: 0,
|
|
196
|
+
series: [{
|
|
197
|
+
from: 0,
|
|
198
|
+
to: 0
|
|
199
|
+
}]
|
|
200
|
+
};
|
|
201
|
+
let e = [];
|
|
202
|
+
(P.value.series || []).forEach((t) => {
|
|
203
|
+
e.push(t.from || 1e-7), e.push(t.to || 1e-7);
|
|
204
|
+
});
|
|
205
|
+
let t = Math.max(...e);
|
|
206
|
+
return {
|
|
207
|
+
...P.value,
|
|
208
|
+
series: (P.value.series || []).map((e, n) => ({
|
|
209
|
+
...e,
|
|
210
|
+
color: ce(e.color) || Gt.value[n] || te[n],
|
|
211
|
+
value: ((e.to || 0) - (e.from || 0)) / t * 100
|
|
212
|
+
}))
|
|
213
|
+
};
|
|
214
|
+
}), R = S(512), z = S({
|
|
215
|
+
height: 358.4,
|
|
216
|
+
width: R.value,
|
|
217
|
+
top: 0,
|
|
218
|
+
bottom: 358.4,
|
|
219
|
+
centerX: 179.2,
|
|
220
|
+
centerY: R.value / 2,
|
|
221
|
+
labelFontSize: 18,
|
|
222
|
+
legendFontSize: N.value.style.chart.legend.fontSize,
|
|
223
|
+
pointerRadius: N.value.style.chart.layout.pointer.circle.radius,
|
|
224
|
+
trackSize: N.value.style.chart.layout.track.size,
|
|
225
|
+
pointerSize: N.value.style.chart.layout.pointer.size,
|
|
226
|
+
pointerStrokeWidth: N.value.style.chart.layout.pointer.strokeWidth,
|
|
227
|
+
markerOffset: N.value.style.chart.layout.markers.offsetY + 3,
|
|
228
|
+
segmentFontSize: N.value.style.chart.layout.segmentNames.fontSize
|
|
229
|
+
}), B = S(0), V = S(0), H = S(N.value.style.chart.animation.use ? Math.min(...P.value.series.map((e) => e.from)) : P.value.value);
|
|
230
|
+
Fe(() => P.value.value, () => {
|
|
231
|
+
Xt(P.value.value);
|
|
232
|
+
});
|
|
233
|
+
let U = f(() => {
|
|
234
|
+
let e = z.value.width / 2, t = J.value.base, n = Math.PI * ((H.value + 0 - V.value) / (B.value - V.value)) + Math.PI;
|
|
235
|
+
return {
|
|
236
|
+
x1: e,
|
|
237
|
+
y1: t,
|
|
238
|
+
x2: e + J.value.pointerSize * z.value.pointerSize * .9 * Math.cos(n),
|
|
239
|
+
y2: t + J.value.pointerSize * z.value.pointerSize * .9 * Math.sin(n)
|
|
240
|
+
};
|
|
241
|
+
}), Kt = f(() => {
|
|
242
|
+
let e = z.value.width / 2, t = J.value.base, n = Math.PI * ((H.value + 0 - V.value) / (B.value - V.value)) + Math.PI, r = e + J.value.pointerSize * z.value.pointerSize * .9 * Math.cos(n), i = t + J.value.pointerSize * z.value.pointerSize * .9 * Math.sin(n), a = z.value.pointerRadius, ee = e + a * Math.cos(n + Math.PI / 2), o = t + a * Math.sin(n + Math.PI / 2), s = e + a * Math.cos(n - Math.PI / 2), te = t + a * Math.sin(n - Math.PI / 2);
|
|
243
|
+
return isNaN(r) ? null : `M ${r},${i} ${ee},${o} ${s},${te} Z`;
|
|
244
|
+
}), qt = f(() => {
|
|
245
|
+
for (let e = 0; e < L.value.series.length; e += 1) {
|
|
246
|
+
let { color: t, from: n, to: r } = L.value.series[e];
|
|
247
|
+
if (H.value >= n && H.value <= r) return t;
|
|
248
|
+
}
|
|
249
|
+
return "#2D353C";
|
|
250
|
+
}), W = Ne(null), G = Ne(null), K = f({
|
|
251
|
+
get: () => z.value.segmentFontSize,
|
|
252
|
+
set: (e) => e
|
|
253
|
+
}), { autoSizeLabels: Jt } = we({
|
|
254
|
+
svgRef: I,
|
|
255
|
+
fontSize: z.value.segmentFontSize,
|
|
256
|
+
minFontSize: N.value.style.chart.layout.segmentNames.minFontSize,
|
|
257
|
+
sizeRef: K,
|
|
258
|
+
labelClass: ".vue-ui-gauge-label-flat"
|
|
259
|
+
}), q = f(() => !!N.value.debug);
|
|
260
|
+
function Yt() {
|
|
261
|
+
let e = !1;
|
|
262
|
+
if (s(O.dataset) ? (c({
|
|
263
|
+
componentName: "VueUiGauge",
|
|
264
|
+
type: "dataset",
|
|
265
|
+
debug: q.value
|
|
266
|
+
}), F.value = !0, e = !0) : (re({
|
|
267
|
+
datasetObject: O.dataset,
|
|
268
|
+
requiredAttributes: ["value", "series"]
|
|
269
|
+
}).forEach((t) => {
|
|
270
|
+
c({
|
|
271
|
+
componentName: "VueUiGauge",
|
|
272
|
+
type: "datasetAttribute",
|
|
273
|
+
property: t,
|
|
274
|
+
debug: q.value
|
|
275
|
+
}), F.value = !0, e = !0;
|
|
276
|
+
}), Object.hasOwn(O.dataset, "series") && (O.dataset.series.length ? O.dataset.series.forEach((t, n) => {
|
|
277
|
+
re({
|
|
278
|
+
datasetObject: t,
|
|
279
|
+
requiredAttributes: ["from", "to"]
|
|
280
|
+
}).forEach((t) => {
|
|
281
|
+
c({
|
|
282
|
+
componentName: "VueUiGauge",
|
|
283
|
+
type: "datasetSerieAttribute",
|
|
284
|
+
property: t,
|
|
285
|
+
index: n,
|
|
286
|
+
debug: q.value
|
|
287
|
+
}), F.value = !0, e = !0;
|
|
288
|
+
});
|
|
289
|
+
}) : (c({
|
|
290
|
+
componentName: "VueUiGauge",
|
|
291
|
+
type: "datasetAttributeEmpty",
|
|
292
|
+
property: "series",
|
|
293
|
+
debug: q.value
|
|
294
|
+
}), F.value = !0, e = !0))), F.value = e, Xt(P.value.value || 0), N.value.responsive) {
|
|
295
|
+
let e = be(() => {
|
|
296
|
+
let { width: e, height: t } = xe({
|
|
297
|
+
chart: A.value,
|
|
298
|
+
title: N.value.style.chart.title.text ? Ot.value : null,
|
|
299
|
+
legend: kt.value,
|
|
300
|
+
source: At.value,
|
|
301
|
+
noTitle: jt.value
|
|
302
|
+
});
|
|
303
|
+
t -= 12, requestAnimationFrame(() => {
|
|
304
|
+
z.value.width = e, z.value.height = t, z.value.centerX = e / 2, z.value.centerY = R.value / 2 / 358.4 * t, z.value.bottom = t, z.value.labelFontSize = 18 / R.value * Math.min(t, e) < 10 ? 10 : 18 / R.value * Math.min(t, e), z.value.legendFontSize = N.value.style.chart.legend.fontSize / R.value * Math.min(t, e) < 14 ? 14 : N.value.style.chart.legend.fontSize / R.value * Math.min(t, e), z.value.pointerRadius = N.value.style.chart.layout.pointer.circle.radius / R.value * Math.min(t, e), z.value.trackSize = N.value.style.chart.layout.track.size / R.value * Math.min(t, e), z.value.pointerStrokeWidth = o({
|
|
305
|
+
relator: Math.min(e, t),
|
|
306
|
+
adjuster: R.value,
|
|
307
|
+
source: N.value.style.chart.layout.pointer.strokeWidth,
|
|
308
|
+
threshold: 2,
|
|
309
|
+
fallback: 2
|
|
310
|
+
}), z.value.markerOffset = o({
|
|
311
|
+
relator: Math.max(e, t),
|
|
312
|
+
adjuster: R.value,
|
|
313
|
+
source: N.value.style.chart.layout.markers.offsetY + 3,
|
|
314
|
+
threshold: 2,
|
|
315
|
+
fallback: 2
|
|
316
|
+
}), z.value.segmentFontSize = o({
|
|
317
|
+
relator: Math.min(e, t),
|
|
318
|
+
adjuster: R.value,
|
|
319
|
+
source: N.value.style.chart.layout.segmentNames.fontSize,
|
|
320
|
+
threshold: 8,
|
|
321
|
+
fallback: 8
|
|
322
|
+
});
|
|
323
|
+
}), Jt();
|
|
324
|
+
});
|
|
325
|
+
W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect()), W.value = new ResizeObserver(e), G.value = A.value.parentNode, W.value.observe(G.value);
|
|
326
|
+
}
|
|
327
|
+
Jt();
|
|
328
|
+
}
|
|
329
|
+
Me(() => {
|
|
330
|
+
Yt();
|
|
331
|
+
}), je(() => {
|
|
332
|
+
W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect());
|
|
333
|
+
});
|
|
334
|
+
function Xt(e) {
|
|
335
|
+
let t = [];
|
|
336
|
+
(L.value.series || []).forEach((e) => {
|
|
337
|
+
t.push(e.from || 0), t.push(e.to || 0);
|
|
338
|
+
}), B.value = Math.max(...t), V.value = Math.min(...t);
|
|
339
|
+
let n = N.value.style.chart.animation.speed, r = Math.abs(e - H.value) / (n * 60);
|
|
340
|
+
function i() {
|
|
341
|
+
H.value < e ? H.value = Math.min(H.value + r, e) : H.value > e && (H.value = Math.max(H.value - r, e)), H.value !== e && requestAnimationFrame(i);
|
|
342
|
+
}
|
|
343
|
+
i();
|
|
344
|
+
}
|
|
345
|
+
let J = f(() => {
|
|
346
|
+
let e = N.value.responsive ? Math.min(z.value.width, z.value.height) : z.value.width, t = 2.5 / N.value.style.chart.layout.radiusRatio;
|
|
347
|
+
return {
|
|
348
|
+
arcs: e / t,
|
|
349
|
+
gradients: e / (t * 1.1),
|
|
350
|
+
base: N.value.responsive ? z.value.height / 1.618 : z.value.height * .7,
|
|
351
|
+
ratingBase: N.value.responsive ? z.value.height / 2 + z.value.height / 4 : z.value.height * .9,
|
|
352
|
+
pointerSize: N.value.responsive ? Math.min(z.value.width, z.value.height) / 3 : z.value.width / 3.2
|
|
353
|
+
};
|
|
354
|
+
}), Y = f(() => l({ series: L.value.series }, z.value.width / 2, J.value.base, J.value.arcs, J.value.arcs, 1, 1, 1, 180, 109.9495, 40 * z.value.trackSize)), Zt = f(() => l({ series: L.value.series }, z.value.width / 2, J.value.base, J.value.arcs * N.value.style.chart.layout.segmentNames.offsetRatio, J.value.arcs * N.value.style.chart.layout.segmentNames.offsetRatio, 1, 1, 1, 180, 109.9495, 40 * z.value.trackSize)), X = f(() => Y.value.map((e) => J.value.arcs * N.value.style.chart.layout.segmentNames.offsetRatio * (e.nameOffsetRatio || 1))), Qt = f(() => {
|
|
355
|
+
let { x: e, y: t } = r({
|
|
356
|
+
initX: Y.value[0].firstSeparator.x,
|
|
357
|
+
initY: Y.value[0].firstSeparator.y,
|
|
358
|
+
centerX: U.value.x1,
|
|
359
|
+
centerY: U.value.y1,
|
|
360
|
+
offset: -N.value.style.chart.layout.segmentSeparators.offsetIn
|
|
361
|
+
}), { x: n, y: i } = r({
|
|
362
|
+
initX: Y.value[0].startX,
|
|
363
|
+
initY: Y.value[0].startY,
|
|
364
|
+
centerX: U.value.x1,
|
|
365
|
+
centerY: U.value.y1,
|
|
366
|
+
offset: N.value.style.chart.layout.segmentSeparators.offsetOut
|
|
367
|
+
});
|
|
368
|
+
return {
|
|
369
|
+
x1: e,
|
|
370
|
+
y1: t,
|
|
371
|
+
x2: n,
|
|
372
|
+
y2: i
|
|
373
|
+
};
|
|
374
|
+
}), $t = f(() => Y.value.map((e) => {
|
|
375
|
+
let { x: t, y: n } = r({
|
|
376
|
+
initX: e.separator.x,
|
|
377
|
+
initY: e.separator.y,
|
|
378
|
+
centerX: U.value.x1,
|
|
379
|
+
centerY: U.value.y1,
|
|
380
|
+
offset: -N.value.style.chart.layout.segmentSeparators.offsetIn
|
|
381
|
+
}), { x: i, y: a } = r({
|
|
382
|
+
initX: e.endX,
|
|
383
|
+
initY: e.endY,
|
|
384
|
+
centerX: U.value.x1,
|
|
385
|
+
centerY: U.value.y1,
|
|
386
|
+
offset: N.value.style.chart.layout.segmentSeparators.offsetOut
|
|
387
|
+
});
|
|
388
|
+
return {
|
|
389
|
+
x1: t,
|
|
390
|
+
y1: n,
|
|
391
|
+
x2: i,
|
|
392
|
+
y2: a
|
|
393
|
+
};
|
|
394
|
+
}));
|
|
395
|
+
function en(e) {
|
|
396
|
+
if (e.reduce((e, t) => e + t, 0) > 100) throw Error("Total % must not exceed 100");
|
|
397
|
+
let t = 0;
|
|
398
|
+
return e.map((e) => (t += e, `${t / 100 * 50 - e / 4}%`));
|
|
399
|
+
}
|
|
400
|
+
let tn = f(() => en(Y.value.map((e) => e.proportion * 100))), nn = f(() => l({ series: L.value.series }, z.value.width / 2, J.value.base, J.value.gradients, J.value.gradients, .95, 1, 1, 180, 110.02, 2 * z.value.trackSize)), rn = f(() => {
|
|
401
|
+
let e = V.value >= 0 ? -V.value : Math.abs(V.value);
|
|
402
|
+
return n({
|
|
403
|
+
radius: N.value.style.chart.layout.indicatorArc.radius * z.value.trackSize,
|
|
404
|
+
centerX: z.value.width / 2,
|
|
405
|
+
centerY: J.value.base,
|
|
406
|
+
percentage: oe((H.value + e) / (B.value + e))
|
|
407
|
+
});
|
|
408
|
+
}), Z = S(!1);
|
|
409
|
+
function an(e) {
|
|
410
|
+
Z.value = e, Dt.value += 1;
|
|
411
|
+
}
|
|
412
|
+
let Q = S(!1);
|
|
413
|
+
function $() {
|
|
414
|
+
Q.value = !Q.value;
|
|
415
|
+
}
|
|
416
|
+
async function on({ scale: e = 2 } = {}) {
|
|
417
|
+
if (!A.value) return;
|
|
418
|
+
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await _e({
|
|
419
|
+
domElement: A.value,
|
|
420
|
+
base64: !0,
|
|
421
|
+
img: !0,
|
|
422
|
+
scale: e
|
|
423
|
+
});
|
|
424
|
+
return {
|
|
425
|
+
imageUri: i,
|
|
426
|
+
base64: a,
|
|
427
|
+
title: N.value.style.chart.title.text,
|
|
428
|
+
width: t,
|
|
429
|
+
height: n,
|
|
430
|
+
aspectRatio: r
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
let sn = f(() => N.value.style.chart.backgroundColor), { exportSvg: cn, getSvg: ln } = me({
|
|
434
|
+
svg: I,
|
|
435
|
+
title: f(() => N.value.style.chart.title),
|
|
436
|
+
backgroundColor: sn
|
|
437
|
+
});
|
|
438
|
+
async function un({ isCb: e }) {
|
|
439
|
+
M.value = !0, await Oe();
|
|
440
|
+
try {
|
|
441
|
+
if (e) {
|
|
442
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await ln();
|
|
443
|
+
await Promise.resolve(N.value.userOptions.callbacks.svg({
|
|
444
|
+
blob: e,
|
|
445
|
+
url: t,
|
|
446
|
+
text: n,
|
|
447
|
+
dataUrl: r
|
|
448
|
+
}));
|
|
449
|
+
} else await Promise.resolve(cn());
|
|
450
|
+
} finally {
|
|
451
|
+
M.value = !1;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
function dn(e) {
|
|
455
|
+
if (e?.stage === "start") {
|
|
456
|
+
j.value = !0;
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
if (e?.stage === "end") {
|
|
460
|
+
j.value = !1;
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
463
|
+
Ut();
|
|
464
|
+
}
|
|
465
|
+
async function fn() {
|
|
466
|
+
if (wt("copyAlt", {
|
|
467
|
+
config: N.value,
|
|
468
|
+
dataset: L.value
|
|
469
|
+
}), !N.value.userOptions.callbacks.altCopy) {
|
|
470
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
await Promise.resolve(N.value.userOptions.callbacks.altCopy({
|
|
474
|
+
config: N.value,
|
|
475
|
+
dataset: L.value
|
|
476
|
+
}));
|
|
477
|
+
}
|
|
478
|
+
return ye({
|
|
479
|
+
getImage: on,
|
|
480
|
+
generatePdf: Ht,
|
|
481
|
+
generateImage: Ut,
|
|
482
|
+
generateSvg: un,
|
|
483
|
+
toggleAnnotator: $,
|
|
484
|
+
toggleFullscreen: an,
|
|
485
|
+
copyAlt: fn
|
|
486
|
+
}), (e, n) => (x(), h("div", {
|
|
487
|
+
class: ke(`vue-data-ui-component vue-ui-gauge ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
488
|
+
ref_key: "gaugeChart",
|
|
489
|
+
ref: A,
|
|
490
|
+
id: `vue-ui-gauge_${k.value}`,
|
|
491
|
+
style: Ae(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${N.value.style.chart.backgroundColor};${N.value.responsive ? "height: 100%" : ""}`),
|
|
492
|
+
onMouseenter: n[0] ||= () => E(Lt)(!0),
|
|
493
|
+
onMouseleave: n[1] ||= () => E(Lt)(!1)
|
|
494
|
+
}, [
|
|
495
|
+
N.value.userOptions.buttons.annotator ? (x(), p(E(vt), {
|
|
496
|
+
key: 0,
|
|
497
|
+
svgRef: E(I),
|
|
498
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
499
|
+
color: N.value.style.chart.color,
|
|
500
|
+
active: Q.value,
|
|
501
|
+
isCursorPointer: Nt.value,
|
|
502
|
+
onClose: $
|
|
503
|
+
}, {
|
|
504
|
+
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
505
|
+
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
506
|
+
"annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
|
|
507
|
+
"annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
|
|
508
|
+
"annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
|
|
509
|
+
"annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
|
|
510
|
+
_: 3
|
|
511
|
+
}, 8, [
|
|
512
|
+
"svgRef",
|
|
513
|
+
"backgroundColor",
|
|
514
|
+
"color",
|
|
515
|
+
"active",
|
|
516
|
+
"isCursorPointer"
|
|
517
|
+
])) : m("", !0),
|
|
518
|
+
Wt.value ? (x(), h("div", {
|
|
519
|
+
key: 1,
|
|
520
|
+
ref_key: "noTitle",
|
|
521
|
+
ref: jt,
|
|
522
|
+
class: "vue-data-ui-no-title-space",
|
|
523
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
524
|
+
}, null, 512)) : m("", !0),
|
|
525
|
+
N.value.style.chart.title.text ? (x(), h("div", {
|
|
526
|
+
key: 2,
|
|
527
|
+
ref_key: "chartTitle",
|
|
528
|
+
ref: Ot,
|
|
529
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
530
|
+
}, [(x(), p(ve, {
|
|
531
|
+
key: `title_${Mt.value}`,
|
|
532
|
+
config: {
|
|
533
|
+
title: {
|
|
534
|
+
cy: "gauge-div-title",
|
|
535
|
+
...N.value.style.chart.title
|
|
536
|
+
},
|
|
537
|
+
subtitle: {
|
|
538
|
+
cy: "gauge-div-subtitle",
|
|
539
|
+
...N.value.style.chart.title.subtitle
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}, {
|
|
543
|
+
default: D(() => [N.value.translations.base && E(P).base ? (x(), h("span", Re, T(N.value.translations.base) + ": " + T(E(P).base), 1)) : m("", !0)]),
|
|
544
|
+
_: 1
|
|
545
|
+
}, 8, ["config"]))], 512)) : m("", !0),
|
|
546
|
+
N.value.userOptions.show && Tt.value && (E(Rt) || E(It)) ? (x(), p(E(yt), {
|
|
547
|
+
ref_key: "details",
|
|
548
|
+
ref: Et,
|
|
549
|
+
key: `user_options_${Dt.value}`,
|
|
550
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
551
|
+
color: N.value.style.chart.color,
|
|
552
|
+
isImaging: E(Vt),
|
|
553
|
+
isPrinting: E(Bt),
|
|
554
|
+
uid: k.value,
|
|
555
|
+
hasXls: !1,
|
|
556
|
+
hasPdf: N.value.userOptions.buttons.pdf,
|
|
557
|
+
hasImg: N.value.userOptions.buttons.img,
|
|
558
|
+
hasSvg: N.value.userOptions.buttons.svg,
|
|
559
|
+
hasFullscreen: N.value.userOptions.buttons.fullscreen,
|
|
560
|
+
hasAltCopy: N.value.userOptions.buttons.altCopy,
|
|
561
|
+
isFullscreen: Z.value,
|
|
562
|
+
titles: { ...N.value.userOptions.buttonTitles },
|
|
563
|
+
chartElement: A.value,
|
|
564
|
+
callbacks: N.value.userOptions.callbacks,
|
|
565
|
+
printScale: N.value.userOptions.print.scale,
|
|
566
|
+
position: N.value.userOptions.position,
|
|
567
|
+
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
568
|
+
isAnnotation: Q.value,
|
|
569
|
+
isCursorPointer: Nt.value,
|
|
570
|
+
onToggleFullscreen: an,
|
|
571
|
+
onGeneratePdf: E(Ht),
|
|
572
|
+
onGenerateImage: dn,
|
|
573
|
+
onGenerateSvg: un,
|
|
574
|
+
onToggleAnnotator: $,
|
|
575
|
+
onCopyAlt: fn,
|
|
576
|
+
style: Ae({ visibility: E(Rt) ? E(It) ? "visible" : "hidden" : "visible" })
|
|
577
|
+
}, Ee({ _: 2 }, [
|
|
578
|
+
e.$slots.menuIcon ? {
|
|
579
|
+
name: "menuIcon",
|
|
580
|
+
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(v({
|
|
581
|
+
isOpen: t,
|
|
582
|
+
color: n
|
|
583
|
+
})), void 0, !0)]),
|
|
584
|
+
key: "0"
|
|
585
|
+
} : void 0,
|
|
586
|
+
e.$slots.optionPdf ? {
|
|
587
|
+
name: "optionPdf",
|
|
588
|
+
fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
589
|
+
key: "1"
|
|
590
|
+
} : void 0,
|
|
591
|
+
e.$slots.optionImg ? {
|
|
592
|
+
name: "optionImg",
|
|
593
|
+
fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
594
|
+
key: "2"
|
|
595
|
+
} : void 0,
|
|
596
|
+
e.$slots.optionSvg ? {
|
|
597
|
+
name: "optionSvg",
|
|
598
|
+
fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
599
|
+
key: "3"
|
|
600
|
+
} : void 0,
|
|
601
|
+
e.$slots.optionFullscreen ? {
|
|
602
|
+
name: "optionFullscreen",
|
|
603
|
+
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", b(v({
|
|
604
|
+
toggleFullscreen: t,
|
|
605
|
+
isFullscreen: n
|
|
606
|
+
})), void 0, !0)]),
|
|
607
|
+
key: "4"
|
|
608
|
+
} : void 0,
|
|
609
|
+
e.$slots.optionAnnotator ? {
|
|
610
|
+
name: "optionAnnotator",
|
|
611
|
+
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", b(v({
|
|
612
|
+
toggleAnnotator: t,
|
|
613
|
+
isAnnotator: n
|
|
614
|
+
})), void 0, !0)]),
|
|
615
|
+
key: "5"
|
|
616
|
+
} : void 0,
|
|
617
|
+
e.$slots.optionAltCopy ? {
|
|
618
|
+
name: "optionAltCopy",
|
|
619
|
+
fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
|
|
620
|
+
key: "6"
|
|
621
|
+
} : void 0
|
|
622
|
+
]), 1032, [
|
|
623
|
+
"backgroundColor",
|
|
624
|
+
"color",
|
|
625
|
+
"isImaging",
|
|
626
|
+
"isPrinting",
|
|
627
|
+
"uid",
|
|
628
|
+
"hasPdf",
|
|
629
|
+
"hasImg",
|
|
630
|
+
"hasSvg",
|
|
631
|
+
"hasFullscreen",
|
|
632
|
+
"hasAltCopy",
|
|
633
|
+
"isFullscreen",
|
|
634
|
+
"titles",
|
|
635
|
+
"chartElement",
|
|
636
|
+
"callbacks",
|
|
637
|
+
"printScale",
|
|
638
|
+
"position",
|
|
639
|
+
"hasAnnotator",
|
|
640
|
+
"isAnnotation",
|
|
641
|
+
"isCursorPointer",
|
|
642
|
+
"onGeneratePdf",
|
|
643
|
+
"style"
|
|
644
|
+
])) : m("", !0),
|
|
645
|
+
(x(), h("svg", {
|
|
646
|
+
ref_key: "svgRef",
|
|
647
|
+
ref: I,
|
|
648
|
+
xmlns: E(ie),
|
|
649
|
+
class: ke({
|
|
650
|
+
"vue-data-ui-fullscreen--on": Z.value,
|
|
651
|
+
"vue-data-ui-fulscreen--off": !Z.value
|
|
652
|
+
}),
|
|
653
|
+
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
654
|
+
style: Ae(`max-width:100%;overflow:hidden !important;background:transparent;color:${N.value.style.chart.color}`)
|
|
655
|
+
}, [
|
|
656
|
+
De(E(bt)),
|
|
657
|
+
e.$slots["chart-background"] ? (x(), h("foreignObject", {
|
|
658
|
+
key: 0,
|
|
659
|
+
x: 0,
|
|
660
|
+
y: 0,
|
|
661
|
+
width: z.value.width <= 0 ? 10 : z.value.width,
|
|
662
|
+
height: z.value.height <= 0 ? 10 : z.value.height,
|
|
663
|
+
style: { pointerEvents: "none" }
|
|
664
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Be)) : m("", !0),
|
|
665
|
+
g("defs", null, [g("radialGradient", {
|
|
666
|
+
id: `gradient_${k.value}`,
|
|
667
|
+
cx: "50%",
|
|
668
|
+
cy: "50%",
|
|
669
|
+
r: "50%",
|
|
670
|
+
fx: "50%",
|
|
671
|
+
fy: "50%"
|
|
672
|
+
}, [
|
|
673
|
+
g("stop", {
|
|
674
|
+
offset: "0%",
|
|
675
|
+
"stop-color": E(ne)("#FFFFFF", 1)
|
|
676
|
+
}, null, 8, He),
|
|
677
|
+
g("stop", {
|
|
678
|
+
offset: "80%",
|
|
679
|
+
"stop-color": E(ne)("#FFFFFF", N.value.style.chart.layout.track.gradientIntensity)
|
|
680
|
+
}, null, 8, Ue),
|
|
681
|
+
g("stop", {
|
|
682
|
+
offset: "100%",
|
|
683
|
+
"stop-color": E(ne)("#FFFFFF", 1)
|
|
684
|
+
}, null, 8, We)
|
|
685
|
+
], 8, Ve)]),
|
|
686
|
+
g("defs", null, [g("filter", {
|
|
687
|
+
id: `blur_${k.value}`,
|
|
688
|
+
x: "-50%",
|
|
689
|
+
y: "-50%",
|
|
690
|
+
width: "200%",
|
|
691
|
+
height: "200%"
|
|
692
|
+
}, [g("feGaussianBlur", {
|
|
693
|
+
in: "SourceGraphic",
|
|
694
|
+
stdDeviation: 100 / N.value.style.chart.layout.track.gradientIntensity
|
|
695
|
+
}, null, 8, Ke)], 8, Ge)]),
|
|
696
|
+
e.$slots.pattern ? (x(), h("g", qe, [(x(!0), h(d, null, C(Y.value, (t, n) => (x(), h("defs", null, [w(e.$slots, "pattern", y({ ref_for: !0 }, {
|
|
697
|
+
seriesIndex: n,
|
|
698
|
+
patternId: `pattern_${k.value}_${n}`
|
|
699
|
+
}), void 0, !0)]))), 256))])) : m("", !0),
|
|
700
|
+
(x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("path", {
|
|
701
|
+
key: `arc_${t}`,
|
|
702
|
+
d: e.arcSlice,
|
|
703
|
+
fill: e.color,
|
|
704
|
+
stroke: N.value.style.chart.backgroundColor,
|
|
705
|
+
"stroke-linecap": "round"
|
|
706
|
+
}, null, 8, Je))), 128)),
|
|
707
|
+
e.$slots.pattern ? (x(!0), h(d, { key: 2 }, C(Y.value, (e, t) => (x(), h("path", {
|
|
708
|
+
key: `arc_${t}`,
|
|
709
|
+
d: e.arcSlice,
|
|
710
|
+
fill: `url(#pattern_${k.value}_${t})`,
|
|
711
|
+
stroke: N.value.style.chart.backgroundColor,
|
|
712
|
+
"stroke-linecap": "round"
|
|
713
|
+
}, null, 8, Ye))), 128)) : m("", !0),
|
|
714
|
+
N.value.style.chart.layout.indicatorArc.show ? (x(), h("path", {
|
|
715
|
+
key: 3,
|
|
716
|
+
d: rn.value,
|
|
717
|
+
fill: N.value.style.chart.layout.indicatorArc.fill
|
|
718
|
+
}, null, 8, Xe)) : m("", !0),
|
|
719
|
+
N.value.style.chart.layout.segmentNames.show && N.value.style.chart.layout.segmentNames.curved ? (x(), h(d, { key: 4 }, [(x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("path", {
|
|
720
|
+
id: `curve_${k.value}_${t}`,
|
|
721
|
+
d: `M ${U.value.x1},${U.value.y1} m -${X.value[t]},0 a ${X.value[t]},${X.value[t]} 0 1,1 ${2 * X.value[t]},0 a ${X.value[t]},${X.value[t]} 0 1,1 -${2 * X.value[t]},0`,
|
|
722
|
+
fill: "transparent"
|
|
723
|
+
}, null, 8, Ze))), 256)), (x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("text", {
|
|
724
|
+
fill: N.value.style.chart.layout.segmentNames.useSerieColor ? e.color : N.value.style.chart.layout.segmentNames.color,
|
|
725
|
+
"font-size": K.value,
|
|
726
|
+
"font-weight": N.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
727
|
+
"text-anchor": "middle"
|
|
728
|
+
}, [g("textPath", {
|
|
729
|
+
href: `#curve_${k.value}_${t}`,
|
|
730
|
+
startOffset: tn.value[t]
|
|
731
|
+
}, T(e.name || ""), 9, $e)], 8, Qe))), 256))], 64)) : m("", !0),
|
|
732
|
+
N.value.style.chart.layout.segmentNames.show && !N.value.style.chart.layout.segmentNames.curved ? (x(!0), h(d, { key: 5 }, C(Zt.value, (e, n) => (x(), h("text", {
|
|
733
|
+
class: "vue-ui-gauge-label-flat",
|
|
734
|
+
"text-anchor": E(ae)(e, !1, 12).anchor,
|
|
735
|
+
fill: N.value.style.chart.layout.segmentNames.useSerieColor ? e.color : N.value.style.chart.layout.segmentNames.color,
|
|
736
|
+
"font-size": K.value,
|
|
737
|
+
"font-weight": N.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
738
|
+
innerHTML: E(t)({
|
|
739
|
+
content: String(e.name ?? ""),
|
|
740
|
+
fontSize: K.value,
|
|
741
|
+
fill: N.value.style.chart.layout.segmentNames.useSerieColor ? e.color : N.value.style.chart.layout.segmentNames.color,
|
|
742
|
+
x: e.center.endX,
|
|
743
|
+
y: e.center.endY
|
|
744
|
+
})
|
|
745
|
+
}, null, 8, et))), 256)) : m("", !0),
|
|
746
|
+
N.value.style.chart.layout.track.useGradient ? (x(!0), h(d, { key: 6 }, C(nn.value, (e, t) => (x(), h("path", {
|
|
747
|
+
key: `arc_${t}`,
|
|
748
|
+
d: e.arcSlice,
|
|
749
|
+
fill: "#FFFFFF",
|
|
750
|
+
stroke: "none",
|
|
751
|
+
"stroke-linecap": "round",
|
|
752
|
+
filter: `url(#blur_${k.value})`
|
|
753
|
+
}, null, 8, tt))), 128)) : m("", !0),
|
|
754
|
+
N.value.style.chart.layout.segmentSeparators.show ? (x(), h(d, { key: 7 }, [
|
|
755
|
+
g("line", y(Qt.value, {
|
|
756
|
+
stroke: N.value.style.chart.backgroundColor,
|
|
757
|
+
"stroke-width": N.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
758
|
+
"stroke-linecap": "round"
|
|
759
|
+
}), null, 16, nt),
|
|
760
|
+
g("line", y(Qt.value, {
|
|
761
|
+
stroke: N.value.style.chart.layout.segmentSeparators.stroke,
|
|
762
|
+
"stroke-width": N.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
763
|
+
"stroke-linecap": "round"
|
|
764
|
+
}), null, 16, rt),
|
|
765
|
+
(x(!0), h(d, null, C($t.value, (e) => (x(), h("line", y({ ref_for: !0 }, e, {
|
|
766
|
+
stroke: N.value.style.chart.backgroundColor,
|
|
767
|
+
"stroke-width": N.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
768
|
+
"stroke-linecap": "round"
|
|
769
|
+
}), null, 16, it))), 256)),
|
|
770
|
+
(x(!0), h(d, null, C($t.value, (e) => (x(), h("line", y({ ref_for: !0 }, e, {
|
|
771
|
+
stroke: N.value.style.chart.layout.segmentSeparators.stroke,
|
|
772
|
+
"stroke-width": N.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
773
|
+
"stroke-linecap": "round"
|
|
774
|
+
}), null, 16, at))), 256))
|
|
775
|
+
], 64)) : m("", !0),
|
|
776
|
+
N.value.style.chart.layout.markers.show ? (x(), h("g", ot, [(x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("text", {
|
|
777
|
+
x: E(r)({
|
|
778
|
+
centerX: U.value.x1,
|
|
779
|
+
centerY: J.value.base,
|
|
780
|
+
initX: e.center.startX,
|
|
781
|
+
initY: e.center.startY,
|
|
782
|
+
offset: z.value.markerOffset
|
|
783
|
+
}).x,
|
|
784
|
+
y: E(r)({
|
|
785
|
+
centerX: U.value.x1,
|
|
786
|
+
centerY: J.value.base,
|
|
787
|
+
initX: e.center.startX,
|
|
788
|
+
initY: e.center.startY,
|
|
789
|
+
offset: z.value.markerOffset
|
|
790
|
+
}).y,
|
|
791
|
+
"text-anchor": e.center.startX < U.value.x1 - 5 ? "end" : e.center.startX > U.value.x1 + 5 ? "start" : "middle",
|
|
792
|
+
"font-size": z.value.labelFontSize * N.value.style.chart.layout.markers.fontSizeRatio,
|
|
793
|
+
"font-weight": `${N.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
794
|
+
fill: N.value.style.chart.layout.markers.color
|
|
795
|
+
}, T(E(u)(N.value.style.chart.layout.markers.formatter, e.from, E(i)({
|
|
796
|
+
p: N.value.style.chart.layout.markers.prefix,
|
|
797
|
+
v: e.from,
|
|
798
|
+
s: N.value.style.chart.layout.markers.suffix,
|
|
799
|
+
r: N.value.style.chart.layout.markers.roundingValue
|
|
800
|
+
}))), 9, st))), 256))])) : m("", !0),
|
|
801
|
+
N.value.style.chart.layout.markers.show ? (x(), h("text", {
|
|
802
|
+
key: 9,
|
|
803
|
+
x: E(r)({
|
|
804
|
+
centerX: z.value.width / 2,
|
|
805
|
+
centerY: J.value.base,
|
|
806
|
+
initX: Y.value.at(-1).endX,
|
|
807
|
+
initY: Y.value.at(-1).endY,
|
|
808
|
+
offset: z.value.markerOffset
|
|
809
|
+
}).x,
|
|
810
|
+
y: E(r)({
|
|
811
|
+
centerX: z.value.width / 2,
|
|
812
|
+
centerY: J.value.base,
|
|
813
|
+
initX: Y.value.at(-1).endX,
|
|
814
|
+
initY: Y.value.at(-1).endY,
|
|
815
|
+
offset: z.value.markerOffset
|
|
816
|
+
}).y,
|
|
817
|
+
"text-anchor": "start",
|
|
818
|
+
"font-size": z.value.labelFontSize * N.value.style.chart.layout.markers.fontSizeRatio,
|
|
819
|
+
"font-weight": `${N.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
820
|
+
fill: N.value.style.chart.layout.markers.color
|
|
821
|
+
}, T(E(u)(N.value.style.chart.layout.markers.formatter, B.value, E(i)({
|
|
822
|
+
p: N.value.style.chart.layout.markers.prefix,
|
|
823
|
+
v: B.value,
|
|
824
|
+
s: N.value.style.chart.layout.markers.suffix,
|
|
825
|
+
r: N.value.style.chart.layout.markers.roundingValue
|
|
826
|
+
}))), 9, ct)) : m("", !0),
|
|
827
|
+
N.value.style.chart.layout.pointer.show ? (x(), h(d, { key: 10 }, [N.value.style.chart.layout.pointer.type === "rounded" ? (x(), h("g", lt, [
|
|
828
|
+
isNaN(U.value.x2) ? m("", !0) : (x(), h("line", {
|
|
829
|
+
key: 0,
|
|
830
|
+
x1: U.value.x1,
|
|
831
|
+
y1: U.value.y1,
|
|
832
|
+
x2: U.value.x2,
|
|
833
|
+
y2: U.value.y2,
|
|
834
|
+
stroke: N.value.style.chart.layout.pointer.stroke,
|
|
835
|
+
"stroke-width": z.value.pointerStrokeWidth,
|
|
836
|
+
"stroke-linecap": "round"
|
|
837
|
+
}, null, 8, ut)),
|
|
838
|
+
isNaN(U.value.x2) ? m("", !0) : (x(), h("line", {
|
|
839
|
+
key: 1,
|
|
840
|
+
x1: U.value.x1,
|
|
841
|
+
y1: U.value.y1,
|
|
842
|
+
x2: U.value.x2,
|
|
843
|
+
y2: U.value.y2,
|
|
844
|
+
stroke: N.value.style.chart.layout.pointer.useRatingColor ? qt.value : N.value.style.chart.layout.pointer.color,
|
|
845
|
+
"stroke-linecap": "round",
|
|
846
|
+
"stroke-width": z.value.pointerStrokeWidth * .7
|
|
847
|
+
}, null, 8, dt)),
|
|
848
|
+
!isNaN(U.value.x2) && N.value.style.chart.layout.track.useGradient ? (x(), h("line", {
|
|
849
|
+
key: 2,
|
|
850
|
+
x1: U.value.x1,
|
|
851
|
+
y1: U.value.y1,
|
|
852
|
+
x2: U.value.x2,
|
|
853
|
+
y2: U.value.y2,
|
|
854
|
+
stroke: "white",
|
|
855
|
+
"stroke-linecap": "round",
|
|
856
|
+
"stroke-width": z.value.pointerStrokeWidth * .3,
|
|
857
|
+
filter: `url(#blur_${k.value})`
|
|
858
|
+
}, null, 8, ft)) : m("", !0)
|
|
859
|
+
])) : (x(), h("g", pt, [Kt.value ? (x(), h("path", {
|
|
860
|
+
key: 0,
|
|
861
|
+
d: Kt.value,
|
|
862
|
+
fill: N.value.style.chart.layout.pointer.useRatingColor ? qt.value : N.value.style.chart.layout.pointer.color,
|
|
863
|
+
stroke: N.value.style.chart.layout.pointer.stroke,
|
|
864
|
+
"stroke-width": N.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
865
|
+
"stroke-linejoin": "round"
|
|
866
|
+
}, null, 8, mt)) : m("", !0)])), g("circle", {
|
|
867
|
+
cx: z.value.width / 2,
|
|
868
|
+
cy: J.value.base,
|
|
869
|
+
fill: N.value.style.chart.layout.pointer.circle.color,
|
|
870
|
+
r: z.value.pointerRadius <= 0 ? 1e-4 : z.value.pointerRadius,
|
|
871
|
+
"stroke-width": N.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
872
|
+
stroke: N.value.style.chart.layout.pointer.circle.stroke
|
|
873
|
+
}, null, 8, ht)], 64)) : m("", !0),
|
|
874
|
+
N.value.style.chart.legend.show ? (x(), h("text", {
|
|
875
|
+
key: 11,
|
|
876
|
+
x: z.value.width / 2,
|
|
877
|
+
y: J.value.ratingBase,
|
|
878
|
+
"text-anchor": "middle",
|
|
879
|
+
"font-size": z.value.legendFontSize,
|
|
880
|
+
"font-weight": "bold",
|
|
881
|
+
fill: N.value.style.chart.legend.useRatingColor ? qt.value : N.value.style.chart.legend.color
|
|
882
|
+
}, T(E(u)(N.value.style.chart.legend.formatter, H.value, E(i)({
|
|
883
|
+
p: N.value.style.chart.legend.prefix + (N.value.style.chart.legend.showPlusSymbol && H.value > 0 ? "+" : ""),
|
|
884
|
+
v: H.value,
|
|
885
|
+
s: N.value.style.chart.legend.suffix,
|
|
886
|
+
r: N.value.style.chart.legend.roundingValue
|
|
887
|
+
}))), 9, gt)) : m("", !0),
|
|
888
|
+
w(e.$slots, "svg", { svg: {
|
|
889
|
+
...z.value,
|
|
890
|
+
isPrintingImg: E(Bt) || E(Vt) || j.value,
|
|
891
|
+
isPrintingSvg: M.value
|
|
892
|
+
} }, void 0, !0)
|
|
893
|
+
], 14, ze)),
|
|
894
|
+
e.$slots.watermark ? (x(), h("div", _t, [w(e.$slots, "watermark", b(v({ isPrinting: E(Bt) || E(Vt) || j.value || M.value })), void 0, !0)])) : m("", !0),
|
|
895
|
+
g("div", {
|
|
896
|
+
ref_key: "chartLegend",
|
|
897
|
+
ref: kt
|
|
898
|
+
}, [w(e.$slots, "legend", { legend: L.value }, void 0, !0)], 512),
|
|
899
|
+
e.$slots.source ? (x(), h("div", {
|
|
900
|
+
key: 5,
|
|
901
|
+
ref_key: "source",
|
|
902
|
+
ref: At,
|
|
903
|
+
dir: "auto"
|
|
904
|
+
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
905
|
+
w(e.$slots, "skeleton", {}, () => [E(Ft) ? (x(), p(pe, { key: 0 })) : m("", !0)], !0)
|
|
906
|
+
], 46, Le));
|
|
907
|
+
}
|
|
908
|
+
}, [["__scopeId", "data-v-24fb9a06"]]);
|
|
909
|
+
//#endregion
|
|
910
|
+
export { Ie as n, vt as t };
|