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,875 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { G as t, H as n, Mt as r, St as i, X as a, bt as o, i as s, t as c, v as l, yt as u, zt as d } from "./lib-B83ZCydz.js";
|
|
3
|
+
import { t as f } from "./useConfig-KnOLHtlJ.js";
|
|
4
|
+
import { t as p } from "./usePrinter-CMLF900n.js";
|
|
5
|
+
import { n as m, t as h } from "./BaseScanner-C7dmAref.js";
|
|
6
|
+
import { t as g } from "./useSvgExport-Dtu973wa.js";
|
|
7
|
+
import { t as _ } from "./useNestedProp-CcxL1gUU.js";
|
|
8
|
+
import { t as v } from "./useThemeCheck-rFK9Zlb_.js";
|
|
9
|
+
import { t as y } from "./img-NMY-_LiJ.js";
|
|
10
|
+
import { n as b } from "./Title-ByyzJzpc.js";
|
|
11
|
+
import { t as x } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
12
|
+
import { c as S } from "./canvas-lib-DTaADQOK.js";
|
|
13
|
+
import { t as ee } from "./useResponsive-CrAInupd.js";
|
|
14
|
+
import { t as C } from "./useUserOptionState-CjPJPTg2.js";
|
|
15
|
+
import { t as te } from "./useChartAccessibility-Do37qcw2.js";
|
|
16
|
+
import { t as ne } from "./usePrefersMotion-BywLbIko.js";
|
|
17
|
+
import { t as re } from "./vue_ui_wheel-DdkTPXJU.js";
|
|
18
|
+
import { Fragment as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as ie, createSlots as ae, createVNode as oe, defineAsyncComponent as se, guardReactiveProps as k, nextTick as ce, normalizeClass as A, normalizeProps as j, normalizeStyle as le, onBeforeUnmount as ue, onMounted as de, openBlock as M, ref as N, renderList as P, renderSlot as F, shallowRef as fe, toDisplayString as pe, toRefs as me, unref as I, useCssVars as he, watch as ge, withCtx as L } from "vue";
|
|
19
|
+
//#region src/components/vue-ui-wheel.vue
|
|
20
|
+
var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
21
|
+
"xmlns",
|
|
22
|
+
"viewBox",
|
|
23
|
+
"aria-labelledby",
|
|
24
|
+
"aria-describedby"
|
|
25
|
+
], be = ["id"], xe = ["id"], Se = [
|
|
26
|
+
"x",
|
|
27
|
+
"y",
|
|
28
|
+
"width",
|
|
29
|
+
"height"
|
|
30
|
+
], Ce = [
|
|
31
|
+
"d",
|
|
32
|
+
"stroke",
|
|
33
|
+
"stroke-width"
|
|
34
|
+
], we = [
|
|
35
|
+
"cx",
|
|
36
|
+
"cy",
|
|
37
|
+
"r",
|
|
38
|
+
"stroke",
|
|
39
|
+
"stroke-width"
|
|
40
|
+
], Te = { key: 0 }, Ee = [
|
|
41
|
+
"x1",
|
|
42
|
+
"y1",
|
|
43
|
+
"x2",
|
|
44
|
+
"y2",
|
|
45
|
+
"stroke",
|
|
46
|
+
"stroke-width",
|
|
47
|
+
"stroke-linecap"
|
|
48
|
+
], De = [
|
|
49
|
+
"x1",
|
|
50
|
+
"y1",
|
|
51
|
+
"x2",
|
|
52
|
+
"y2",
|
|
53
|
+
"stroke",
|
|
54
|
+
"stroke-width",
|
|
55
|
+
"stroke-linecap"
|
|
56
|
+
], Oe = { key: 1 }, ke = [
|
|
57
|
+
"d",
|
|
58
|
+
"fill",
|
|
59
|
+
"stroke",
|
|
60
|
+
"stroke-width"
|
|
61
|
+
], Ae = [
|
|
62
|
+
"d",
|
|
63
|
+
"fill",
|
|
64
|
+
"stroke",
|
|
65
|
+
"stroke-width"
|
|
66
|
+
], je = [
|
|
67
|
+
"d",
|
|
68
|
+
"fill",
|
|
69
|
+
"stroke",
|
|
70
|
+
"stroke-width"
|
|
71
|
+
], Me = [
|
|
72
|
+
"x1",
|
|
73
|
+
"x2",
|
|
74
|
+
"y1",
|
|
75
|
+
"y2",
|
|
76
|
+
"stroke",
|
|
77
|
+
"stroke-width",
|
|
78
|
+
"stroke-linecap"
|
|
79
|
+
], Ne = [
|
|
80
|
+
"d",
|
|
81
|
+
"fill",
|
|
82
|
+
"stroke",
|
|
83
|
+
"stroke-width"
|
|
84
|
+
], Pe = ["aria-label"], Fe = [
|
|
85
|
+
"x",
|
|
86
|
+
"y",
|
|
87
|
+
"height"
|
|
88
|
+
], Ie = [
|
|
89
|
+
"x",
|
|
90
|
+
"y",
|
|
91
|
+
"font-size",
|
|
92
|
+
"fill",
|
|
93
|
+
"font-weight",
|
|
94
|
+
"stroke",
|
|
95
|
+
"stroke-width"
|
|
96
|
+
], Le = {
|
|
97
|
+
key: 4,
|
|
98
|
+
class: "vue-data-ui-watermark"
|
|
99
|
+
}, Re = /* @__PURE__ */ x({
|
|
100
|
+
__name: "vue-ui-wheel",
|
|
101
|
+
props: {
|
|
102
|
+
config: {
|
|
103
|
+
type: Object,
|
|
104
|
+
default() {
|
|
105
|
+
return {};
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
dataset: {
|
|
109
|
+
type: Object,
|
|
110
|
+
default() {
|
|
111
|
+
return {};
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
emits: ["copyAlt"],
|
|
116
|
+
setup(e, { expose: x, emit: _e }) {
|
|
117
|
+
he((e) => ({
|
|
118
|
+
v0cea6fed: Ft.value,
|
|
119
|
+
v5e468eda: It.value,
|
|
120
|
+
v5e46c9b4: Lt.value
|
|
121
|
+
}));
|
|
122
|
+
let Re = se(() => import("./PenAndPaper-DxBCVZAx.js").then((e) => e.t)), ze = se(() => import("./UserOptions-Gaw1761w.js").then((e) => e.n)), Be = se(() => import("./PackageVersion-B1cPtZ3Q.js").then((e) => e.t)), { vue_ui_wheel: Ve } = f(), { isThemeValid: He, warnInvalidTheme: Ue } = v(), R = ne(), z = e, We = _e, Ge = T(() => !!z.dataset && Object.keys(z.dataset).length), B = N(n()), Ke = N(null), qe = N(0), V = N(null), Je = N(null), Ye = N(null), Xe = N(null), Ze = N(0), Qe = N(!1), $e = N(!1), H = N(st()), et = T(() => H.value.userOptions.useCursorPointer), tt = T(() => d({
|
|
123
|
+
defaultConfig: {
|
|
124
|
+
userOptions: { show: !1 },
|
|
125
|
+
style: { chart: {
|
|
126
|
+
backgroundColor: "#99999930",
|
|
127
|
+
animation: { use: !1 },
|
|
128
|
+
layout: {
|
|
129
|
+
wheel: { ticks: {
|
|
130
|
+
activeColor: "#6A6A6A80",
|
|
131
|
+
inactiveColor: "#CACACA80"
|
|
132
|
+
} },
|
|
133
|
+
innerCircle: { stroke: "#CACACA80" }
|
|
134
|
+
}
|
|
135
|
+
} }
|
|
136
|
+
},
|
|
137
|
+
userConfig: H.value.skeletonConfig ?? {}
|
|
138
|
+
})), { loading: nt, FINAL_DATASET: U } = m({
|
|
139
|
+
...me(z),
|
|
140
|
+
FINAL_CONFIG: H,
|
|
141
|
+
prepareConfig: st,
|
|
142
|
+
skeletonDataset: z.config?.skeletonDataset ?? { percentage: 50 },
|
|
143
|
+
skeletonConfig: d({
|
|
144
|
+
defaultConfig: H.value,
|
|
145
|
+
userConfig: tt.value
|
|
146
|
+
})
|
|
147
|
+
}), { userOptionsVisible: rt, setUserOptionsVisibility: it, keepUserOptionState: at } = C({ config: H.value }), { svgRef: ot } = te({ config: H.value.style.chart.title });
|
|
148
|
+
function st() {
|
|
149
|
+
let e = _({
|
|
150
|
+
userConfig: z.config,
|
|
151
|
+
defaultConfig: Ve
|
|
152
|
+
}), t = e.theme;
|
|
153
|
+
if (!t) return e;
|
|
154
|
+
if (!He.value(e)) return Ue(e), e;
|
|
155
|
+
let n = _({
|
|
156
|
+
userConfig: re[t] || z.config,
|
|
157
|
+
defaultConfig: e
|
|
158
|
+
});
|
|
159
|
+
return _({
|
|
160
|
+
userConfig: z.config,
|
|
161
|
+
defaultConfig: n
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
ge(() => z.config, (e) => {
|
|
165
|
+
H.value = st(), rt.value = !H.value.userOptions.showOnChartHover, ht(), Ze.value += 1;
|
|
166
|
+
}, { deep: !0 });
|
|
167
|
+
let { isPrinting: ct, isImaging: lt, generatePdf: ut, generateImage: dt } = p({
|
|
168
|
+
elementId: B.value,
|
|
169
|
+
fileName: H.value.style.chart.title.text || "vue-ui-wheel",
|
|
170
|
+
options: H.value.userOptions.print
|
|
171
|
+
}), ft = T(() => H.value.userOptions.show && !H.value.style.chart.title.text), W = N({
|
|
172
|
+
size: 360,
|
|
173
|
+
height: 360,
|
|
174
|
+
width: 360
|
|
175
|
+
}), G = N(H.value.style.chart.layout.percentage.fontSize), K = T(() => ({
|
|
176
|
+
radius: Math.min(W.value.width, W.value.height) * .9 / 2 * H.value.style.chart.layout.wheel.radiusRatio,
|
|
177
|
+
centerX: W.value.width / 2,
|
|
178
|
+
centerY: W.value.height / 2
|
|
179
|
+
}));
|
|
180
|
+
function pt(e, t = 1) {
|
|
181
|
+
let n = 29.85;
|
|
182
|
+
return {
|
|
183
|
+
x: K.value.centerX + K.value.radius * Math.cos(n + e * Math.PI / 180) * t,
|
|
184
|
+
y: K.value.centerY + K.value.radius * Math.sin(n + e * Math.PI / 180) * t
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
let q = N(H.value.style.chart.animation.use && !R.value ? 0 : U.value.percentage || 0);
|
|
188
|
+
ge(() => U.value, (e) => {
|
|
189
|
+
H.value.style.chart.animation.use && !R.value ? Dt(e.percentage) : q.value = e.percentage || 0;
|
|
190
|
+
}, { deep: !0 });
|
|
191
|
+
let J = fe(null), Y = fe(null);
|
|
192
|
+
de(() => {
|
|
193
|
+
ht();
|
|
194
|
+
});
|
|
195
|
+
let mt = T(() => !!H.value.debug);
|
|
196
|
+
function ht() {
|
|
197
|
+
if (i(z.dataset) && a({
|
|
198
|
+
componentName: "VueUiWheel",
|
|
199
|
+
type: "dataset",
|
|
200
|
+
debug: mt.value
|
|
201
|
+
}), H.value.responsive) {
|
|
202
|
+
let e = S(() => {
|
|
203
|
+
let { width: e, height: t } = ee({
|
|
204
|
+
chart: V.value,
|
|
205
|
+
title: H.value.style.chart.title.text ? Je.value : null,
|
|
206
|
+
source: Ye.value,
|
|
207
|
+
noTitle: Xe.value
|
|
208
|
+
});
|
|
209
|
+
requestAnimationFrame(() => {
|
|
210
|
+
W.value.width = e, W.value.height = t, G.value = H.value.style.chart.layout.percentage.fontSize / 360 * Math.min(e, t);
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
J.value && (Y.value && J.value.unobserve(Y.value), J.value.disconnect()), J.value = new ResizeObserver(e), Y.value = V.value.parentNode, J.value.observe(Y.value);
|
|
214
|
+
}
|
|
215
|
+
Dt(U.value.percentage || 0), H.value.style.chart.animation.use && !R.value || (q.value = U.value.percentage || 0);
|
|
216
|
+
}
|
|
217
|
+
ue(() => {
|
|
218
|
+
J.value && (Y.value && J.value.unobserve(Y.value), J.value.disconnect());
|
|
219
|
+
});
|
|
220
|
+
function gt([e, t, n], r) {
|
|
221
|
+
let i = Math.cos(r), a = Math.sin(r);
|
|
222
|
+
return [
|
|
223
|
+
e,
|
|
224
|
+
t * i - n * a,
|
|
225
|
+
t * a + n * i
|
|
226
|
+
];
|
|
227
|
+
}
|
|
228
|
+
function _t([e, t, n], r) {
|
|
229
|
+
let i = r / (r - n);
|
|
230
|
+
return [
|
|
231
|
+
e * i,
|
|
232
|
+
t * i,
|
|
233
|
+
n,
|
|
234
|
+
i
|
|
235
|
+
];
|
|
236
|
+
}
|
|
237
|
+
function vt(e, t) {
|
|
238
|
+
let n = e.replace("#", ""), r = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), a = parseInt(n.substring(4, 6), 16), o = 1 - Math.min(1, Math.max(0, H.value.style.chart.layout.wheel.ticks.shadeColorRatio3d)) * t, s = Math.max(0, Math.min(255, Math.round(r * o))), c = Math.max(0, Math.min(255, Math.round(i * o))), l = Math.max(0, Math.min(255, Math.round(a * o)));
|
|
239
|
+
return `#${s.toString(16).padStart(2, "0")}${c.toString(16).padStart(2, "0")}${l.toString(16).padStart(2, "0")}`;
|
|
240
|
+
}
|
|
241
|
+
function yt({ cx: e, cy: t, radius: n, innerRatio: i = .8, count: a = 120, startDeg: o = 0, axDeg: s = 50, f: c = 520, baseStroke: l = 5, activeColor: u, inactiveColor: d, getActive: f }) {
|
|
242
|
+
let p = s * Math.PI / 180, m = n, h = n * i, g = [];
|
|
243
|
+
for (let n = 0; n < a; n += 1) {
|
|
244
|
+
let i = (n / a * 360 + o) * Math.PI / 180, s = e + m * Math.cos(i), _ = t + m * Math.sin(i), v = e + h * Math.cos(i), y = t + h * Math.sin(i), b = [
|
|
245
|
+
s - e,
|
|
246
|
+
_ - t,
|
|
247
|
+
0
|
|
248
|
+
], x = [
|
|
249
|
+
v - e,
|
|
250
|
+
y - t,
|
|
251
|
+
0
|
|
252
|
+
], [S, ee, C] = gt(b, p), [te, ne, re] = gt(x, p), [w, T, , E] = _t([
|
|
253
|
+
S,
|
|
254
|
+
ee,
|
|
255
|
+
C
|
|
256
|
+
], c), [D, O, , ie] = _t([
|
|
257
|
+
te,
|
|
258
|
+
ne,
|
|
259
|
+
re
|
|
260
|
+
], c), ae = e + w, oe = t + T, se = e + D, k = t + O, ce = (Math.max(C, re) - -m * Math.sin(p)) / (2 * m * Math.sin(p) || 1), A = f ? f(n) : !0, j = H.value.style.chart.layout.wheel.ticks.gradient.show ? r(u, n * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : u, le = vt(A ? j : d, ce), ue = Math.max(1.25, l * E * (Math.min(W.value.width, W.value.height) / 360));
|
|
261
|
+
g.push({
|
|
262
|
+
i: n,
|
|
263
|
+
x1: ae,
|
|
264
|
+
y1: oe,
|
|
265
|
+
x2: se,
|
|
266
|
+
y2: k,
|
|
267
|
+
stroke: ue,
|
|
268
|
+
color: le,
|
|
269
|
+
z: Math.max(C, re)
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
return g.sort((e, t) => e.z - t.z), g;
|
|
273
|
+
}
|
|
274
|
+
let bt = T(() => {
|
|
275
|
+
if (!H.value.layout === "3d") return null;
|
|
276
|
+
let e = Z.value, t = H.value.style.chart.layout.wheel.ticks.gradient.show ? r(H.value.style.chart.layout.wheel.ticks.activeColor, 0) : H.value.style.chart.layout.wheel.ticks.activeColor, n = H.value.style.chart.layout.wheel.ticks.inactiveColor, i = H.value.style.chart.layout.wheel.ticks.strokeWidth;
|
|
277
|
+
return yt({
|
|
278
|
+
cx: K.value.centerX,
|
|
279
|
+
cy: K.value.centerY,
|
|
280
|
+
radius: K.value.radius,
|
|
281
|
+
innerRatio: H.value.style.chart.layout.wheel.ticks.sizeRatio,
|
|
282
|
+
count: e,
|
|
283
|
+
startDeg: -90,
|
|
284
|
+
axDeg: H.value.style.chart.layout.wheel.tiltAngle3d,
|
|
285
|
+
f: Math.min(W.value.width, W.value.height) * 1.45,
|
|
286
|
+
baseStroke: i,
|
|
287
|
+
activeColor: t,
|
|
288
|
+
inactiveColor: n,
|
|
289
|
+
getActive: (e) => q.value > e * Q.value
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
function xt({ cx: e, cy: t, r: n, count: r = 180, startDeg: i = -90, axDeg: a = 50, f: o }) {
|
|
293
|
+
let s = a * Math.PI / 180, c = [], l = 0;
|
|
294
|
+
for (let a = 0; a < r; a += 1) {
|
|
295
|
+
let u = (a / r * 360 + i) * Math.PI / 180, [d, f, p] = gt([
|
|
296
|
+
n * Math.cos(u),
|
|
297
|
+
n * Math.sin(u),
|
|
298
|
+
0
|
|
299
|
+
], s), [m, h, , g] = _t([
|
|
300
|
+
d,
|
|
301
|
+
f,
|
|
302
|
+
p
|
|
303
|
+
], o);
|
|
304
|
+
l += g, c.push([e + m, t + h]);
|
|
305
|
+
}
|
|
306
|
+
let u = `M ${c[0][0]} ${c[0][1]}`;
|
|
307
|
+
for (let e = 1; e < c.length; e += 1) u += ` L ${c[e][0]} ${c[e][1]}`;
|
|
308
|
+
u += " Z";
|
|
309
|
+
let d = l / r;
|
|
310
|
+
return {
|
|
311
|
+
d: u,
|
|
312
|
+
avgScale: d,
|
|
313
|
+
pts: c
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
let X = T(() => {
|
|
317
|
+
if (H.value.layout !== "3d") return null;
|
|
318
|
+
let e = Math.min(W.value.width, W.value.height) * 1.45, t = H.value.style.chart.layout.wheel.tiltAngle3d, n = K.value.radius, { pts: r, avgScale: i } = (() => {
|
|
319
|
+
let r = n, i = t, { d: a, avgScale: o, pts: s } = xt({
|
|
320
|
+
cx: K.value.centerX,
|
|
321
|
+
cy: K.value.centerY,
|
|
322
|
+
r,
|
|
323
|
+
startDeg: -90,
|
|
324
|
+
axDeg: i,
|
|
325
|
+
f: e
|
|
326
|
+
});
|
|
327
|
+
return {
|
|
328
|
+
pts: s,
|
|
329
|
+
avgScale: o
|
|
330
|
+
};
|
|
331
|
+
})(), a = Infinity, o = Infinity, s = -Infinity, c = -Infinity;
|
|
332
|
+
for (let [e, t] of r) e < a && (a = e), t < o && (o = t), e > s && (s = e), t > c && (c = t);
|
|
333
|
+
let l = H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height), u = H.value.style.chart.layout.innerCircle.strokeWidth || 0, d = .5 * Math.max(l, u * (i || 1)), f = Math.max(0, Number(H.value.style.chart.layout.wheel.ticks.depth3d) || 0), p = d;
|
|
334
|
+
return {
|
|
335
|
+
x: a - p,
|
|
336
|
+
y: o - f - p,
|
|
337
|
+
w: s - a + 2 * p,
|
|
338
|
+
h: c - (o - f) + 2 * p
|
|
339
|
+
};
|
|
340
|
+
});
|
|
341
|
+
function St(e) {
|
|
342
|
+
let t = Math.min(W.value.width, W.value.height) * 1.45, { d: n, avgScale: r } = xt({
|
|
343
|
+
cx: K.value.centerX,
|
|
344
|
+
cy: K.value.centerY,
|
|
345
|
+
r: e,
|
|
346
|
+
startDeg: -90,
|
|
347
|
+
axDeg: H.value.style.chart.layout.wheel.tiltAngle3d,
|
|
348
|
+
f: t
|
|
349
|
+
}), i = (H.value.style.chart.layout.innerCircle.strokeWidth || 1) * r;
|
|
350
|
+
return {
|
|
351
|
+
d: n,
|
|
352
|
+
stroke: H.value.style.chart.layout.innerCircle.stroke,
|
|
353
|
+
strokeWidth: i
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
let Ct = T(() => St(Math.max(0, K.value.radius * .8 * H.value.style.chart.layout.innerCircle.radiusRatio)));
|
|
357
|
+
function wt({ cx: e, cy: t, r: n, aRad: r, ax: i, f: a }) {
|
|
358
|
+
let [o, s, c] = gt([
|
|
359
|
+
n * Math.cos(r),
|
|
360
|
+
n * Math.sin(r),
|
|
361
|
+
0
|
|
362
|
+
], i), [l, u, , d] = _t([
|
|
363
|
+
o,
|
|
364
|
+
s,
|
|
365
|
+
c
|
|
366
|
+
], a);
|
|
367
|
+
return {
|
|
368
|
+
x: e + l,
|
|
369
|
+
y: t + u,
|
|
370
|
+
z: c,
|
|
371
|
+
s: d
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
function Tt({ cx: e, cy: t, radius: n, innerRatio: i = .8, count: a = 120, startDeg: o = -87, axDeg: s = 45, f: c = 600, activeColor: l, inactiveColor: u, getActive: d, Y: f = 0 }) {
|
|
375
|
+
let p = s * Math.PI / 180, m = n, h = n * i, g = 2 * Math.PI / a, _ = [];
|
|
376
|
+
for (let n = 0; n < a; n += 1) {
|
|
377
|
+
let i = o * Math.PI / 180 + g * n, s = i + g * Math.min(1, H.value.style.chart.layout.wheel.ticks.spacingRatio3d), v = wt({
|
|
378
|
+
cx: e,
|
|
379
|
+
cy: t + f,
|
|
380
|
+
r: m,
|
|
381
|
+
aRad: i,
|
|
382
|
+
ax: p,
|
|
383
|
+
f: c
|
|
384
|
+
}), y = wt({
|
|
385
|
+
cx: e,
|
|
386
|
+
cy: t + f,
|
|
387
|
+
r: m,
|
|
388
|
+
aRad: s,
|
|
389
|
+
ax: p,
|
|
390
|
+
f: c
|
|
391
|
+
}), b = wt({
|
|
392
|
+
cx: e,
|
|
393
|
+
cy: t + f,
|
|
394
|
+
r: h,
|
|
395
|
+
aRad: s,
|
|
396
|
+
ax: p,
|
|
397
|
+
f: c
|
|
398
|
+
}), x = wt({
|
|
399
|
+
cx: e,
|
|
400
|
+
cy: t + f,
|
|
401
|
+
r: h,
|
|
402
|
+
aRad: i,
|
|
403
|
+
ax: p,
|
|
404
|
+
f: c
|
|
405
|
+
}), S = (v.z + y.z + x.z + b.z) / 4, ee = vt(!d || d(n) ? H.value.style.chart.layout.wheel.ticks.gradient.show ? r(H.value.style.chart.layout.wheel.ticks.activeColor, 100 / a * n / 100 * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : l : u, (() => {
|
|
406
|
+
let e = m * Math.sin(p) || 1;
|
|
407
|
+
return (S - -e) / (2 * e);
|
|
408
|
+
})()), C = `M ${v.x} ${v.y} L ${y.x} ${y.y} L ${b.x} ${b.y} L ${x.x} ${x.y} Z`;
|
|
409
|
+
_.push({
|
|
410
|
+
i: n,
|
|
411
|
+
d: C,
|
|
412
|
+
fill: ee,
|
|
413
|
+
z: S
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
return _.sort((e, t) => e.z - t.z), _;
|
|
417
|
+
}
|
|
418
|
+
let Et = T(() => {
|
|
419
|
+
if (H.value.layout !== "3d") return null;
|
|
420
|
+
let e = Z.value;
|
|
421
|
+
return (t) => Tt({
|
|
422
|
+
cx: K.value.centerX,
|
|
423
|
+
cy: K.value.centerY,
|
|
424
|
+
radius: K.value.radius,
|
|
425
|
+
innerRatio: H.value.style.chart.layout.wheel.ticks.sizeRatio,
|
|
426
|
+
count: e,
|
|
427
|
+
startDeg: -90,
|
|
428
|
+
axDeg: H.value.style.chart.layout.wheel.tiltAngle3d,
|
|
429
|
+
f: Math.min(W.value.width, W.value.height) * 1.45,
|
|
430
|
+
activeColor: H.value.style.chart.layout.wheel.ticks.activeColor,
|
|
431
|
+
inactiveColor: H.value.style.chart.layout.wheel.ticks.inactiveColor,
|
|
432
|
+
getActive: (t) => q.value > 100 / e * t,
|
|
433
|
+
Y: t
|
|
434
|
+
});
|
|
435
|
+
});
|
|
436
|
+
function Dt(e) {
|
|
437
|
+
let t = H.value.style.chart.animation.speed, n = Math.abs(e - q.value) / (t * 120);
|
|
438
|
+
function r() {
|
|
439
|
+
q.value < e ? q.value = Math.min(q.value + n, e) : q.value > e && (q.value = Math.max(q.value - n, e)), q.value !== e && requestAnimationFrame(r);
|
|
440
|
+
}
|
|
441
|
+
r();
|
|
442
|
+
}
|
|
443
|
+
let Z = T(() => (H.value.debug && H.value.style.chart.layout.wheel.ticks.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), H.value.debug && H.value.style.chart.layout.wheel.ticks.quantity > 200 && console.warn("VueUiWheel - The max number of ticks is 200"), Math.max(12, Math.min(H.value.style.chart.layout.wheel.ticks.quantity, 200)))), Q = T(() => 100 / Z.value), Ot = T(() => {
|
|
444
|
+
let e = [];
|
|
445
|
+
for (let t = 0; t < Z.value; t += 1) {
|
|
446
|
+
let n = q.value > t * Q.value ? H.value.style.chart.layout.wheel.ticks.activeColor : H.value.style.chart.layout.wheel.ticks.inactiveColor, { x: i, y: a } = pt(W.value.size / Z.value * t), { x: o, y: s } = pt(W.value.size / Z.value * t, H.value.style.chart.layout.wheel.ticks.sizeRatio);
|
|
447
|
+
e.push({
|
|
448
|
+
x1: i,
|
|
449
|
+
y1: a,
|
|
450
|
+
x2: o,
|
|
451
|
+
y2: s,
|
|
452
|
+
color: H.value.style.chart.layout.wheel.ticks.gradient.show ? r(n, t * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : n
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
return e;
|
|
456
|
+
}), kt = T(() => o({ series: Ot.value.map((e) => ({
|
|
457
|
+
name: "",
|
|
458
|
+
value: 1,
|
|
459
|
+
color: e.color
|
|
460
|
+
})) }, K.value.centerX, K.value.centerY, K.value.radius, K.value.radius, 1.99999, 2, 1, 360, 105.25, K.value.radius * (1 - H.value.style.chart.layout.wheel.ticks.sizeRatio))), At = N(!1);
|
|
461
|
+
function jt(e) {
|
|
462
|
+
At.value = e, qe.value += 1;
|
|
463
|
+
}
|
|
464
|
+
let Mt = N(!1);
|
|
465
|
+
function Nt() {
|
|
466
|
+
Mt.value = !Mt.value;
|
|
467
|
+
}
|
|
468
|
+
async function Pt({ scale: e = 2 } = {}) {
|
|
469
|
+
if (!V.value) return;
|
|
470
|
+
let { width: t, height: n } = V.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await y({
|
|
471
|
+
domElement: V.value,
|
|
472
|
+
base64: !0,
|
|
473
|
+
img: !0,
|
|
474
|
+
scale: e
|
|
475
|
+
});
|
|
476
|
+
return {
|
|
477
|
+
imageUri: i,
|
|
478
|
+
base64: a,
|
|
479
|
+
title: H.value.style.chart.title.text,
|
|
480
|
+
width: t,
|
|
481
|
+
height: n,
|
|
482
|
+
aspectRatio: r
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
let Ft = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth * 2), It = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * .75), Lt = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth), $ = T(() => Math.max(1, Math.min(20, H.value.style.chart.layout.wheel.ticks.depth3d))), Rt = T(() => H.value.style.chart.backgroundColor), { exportSvg: zt, getSvg: Bt } = g({
|
|
486
|
+
svg: ot,
|
|
487
|
+
title: T(() => H.value.style.chart.title),
|
|
488
|
+
backgroundColor: Rt,
|
|
489
|
+
stretchTitle: !0
|
|
490
|
+
});
|
|
491
|
+
async function Vt({ isCb: e }) {
|
|
492
|
+
$e.value = !0, await ce();
|
|
493
|
+
try {
|
|
494
|
+
if (e) {
|
|
495
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Bt();
|
|
496
|
+
await Promise.resolve(H.value.userOptions.callbacks.svg({
|
|
497
|
+
blob: e,
|
|
498
|
+
url: t,
|
|
499
|
+
text: n,
|
|
500
|
+
dataUrl: r
|
|
501
|
+
}));
|
|
502
|
+
} else await Promise.resolve(zt());
|
|
503
|
+
} finally {
|
|
504
|
+
$e.value = !1;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
function Ht(e) {
|
|
508
|
+
if (e?.stage === "start") {
|
|
509
|
+
Qe.value = !0;
|
|
510
|
+
return;
|
|
511
|
+
}
|
|
512
|
+
if (e?.stage === "end") {
|
|
513
|
+
Qe.value = !1;
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
dt();
|
|
517
|
+
}
|
|
518
|
+
async function Ut() {
|
|
519
|
+
if (We("copyAlt", {
|
|
520
|
+
config: H.value,
|
|
521
|
+
dataset: U.value
|
|
522
|
+
}), !H.value.userOptions.callbacks.altCopy) {
|
|
523
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
524
|
+
return;
|
|
525
|
+
}
|
|
526
|
+
await Promise.resolve(H.value.userOptions.callbacks.altCopy({
|
|
527
|
+
config: H.value,
|
|
528
|
+
dataset: U.value
|
|
529
|
+
}));
|
|
530
|
+
}
|
|
531
|
+
let Wt = T(() => `${B.value}-title`), Gt = T(() => `${B.value}-desc`), Kt = T(() => s(H.value.style.chart.layout.percentage.formatter, l(q.value), t({
|
|
532
|
+
v: l(q.value),
|
|
533
|
+
s: "%",
|
|
534
|
+
r: H.value.style.chart.layout.percentage.rounding
|
|
535
|
+
}))), qt = T(() => H.value.style.chart.title.text || ""), Jt = T(() => nt.value ? "..." : `${Kt.value}`);
|
|
536
|
+
return x({
|
|
537
|
+
getImage: Pt,
|
|
538
|
+
generatePdf: ut,
|
|
539
|
+
generateImage: dt,
|
|
540
|
+
generateSvg: Vt,
|
|
541
|
+
toggleAnnotator: Nt,
|
|
542
|
+
toggleFullscreen: jt,
|
|
543
|
+
copyAlt: Ut
|
|
544
|
+
}), (e, t) => (M(), O("div", {
|
|
545
|
+
class: A(["vue-ui-wheel", {
|
|
546
|
+
"vue-data-ui-component": !0,
|
|
547
|
+
"vue-ui-wheel-3d-wrap": H.value.layout === "3d"
|
|
548
|
+
}]),
|
|
549
|
+
ref_key: "wheelChart",
|
|
550
|
+
ref: V,
|
|
551
|
+
id: B.value,
|
|
552
|
+
style: le(`font-family:${H.value.style.fontFamily};width:100%; text-align:center;background:${H.value.style.chart.backgroundColor};${H.value.responsive ? "height:100%" : ""}`),
|
|
553
|
+
onMouseenter: t[0] ||= () => I(it)(!0),
|
|
554
|
+
onMouseleave: t[1] ||= () => I(it)(!1)
|
|
555
|
+
}, [
|
|
556
|
+
H.value.userOptions.buttons.annotator ? (M(), E(I(Re), {
|
|
557
|
+
key: 0,
|
|
558
|
+
svgRef: I(ot),
|
|
559
|
+
backgroundColor: H.value.style.chart.backgroundColor,
|
|
560
|
+
color: H.value.style.chart.color,
|
|
561
|
+
active: Mt.value,
|
|
562
|
+
isCursorPointer: et.value,
|
|
563
|
+
onClose: Nt
|
|
564
|
+
}, {
|
|
565
|
+
"annotator-action-close": L(() => [F(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
566
|
+
"annotator-action-color": L(({ color: t }) => [F(e.$slots, "annotator-action-color", j(k({ color: t })), void 0, !0)]),
|
|
567
|
+
"annotator-action-draw": L(({ mode: t }) => [F(e.$slots, "annotator-action-draw", j(k({ mode: t })), void 0, !0)]),
|
|
568
|
+
"annotator-action-undo": L(({ disabled: t }) => [F(e.$slots, "annotator-action-undo", j(k({ disabled: t })), void 0, !0)]),
|
|
569
|
+
"annotator-action-redo": L(({ disabled: t }) => [F(e.$slots, "annotator-action-redo", j(k({ disabled: t })), void 0, !0)]),
|
|
570
|
+
"annotator-action-delete": L(({ disabled: t }) => [F(e.$slots, "annotator-action-delete", j(k({ disabled: t })), void 0, !0)]),
|
|
571
|
+
_: 3
|
|
572
|
+
}, 8, [
|
|
573
|
+
"svgRef",
|
|
574
|
+
"backgroundColor",
|
|
575
|
+
"color",
|
|
576
|
+
"active",
|
|
577
|
+
"isCursorPointer"
|
|
578
|
+
])) : D("", !0),
|
|
579
|
+
ft.value ? (M(), O("div", {
|
|
580
|
+
key: 1,
|
|
581
|
+
ref_key: "noTitle",
|
|
582
|
+
ref: Xe,
|
|
583
|
+
class: "vue-data-ui-no-title-space",
|
|
584
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
585
|
+
}, null, 512)) : D("", !0),
|
|
586
|
+
H.value.style.chart.title.text ? (M(), O("div", {
|
|
587
|
+
key: 2,
|
|
588
|
+
ref_key: "chartTitle",
|
|
589
|
+
ref: Je,
|
|
590
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
591
|
+
}, [(M(), E(b, {
|
|
592
|
+
key: `title_${Ze.value}`,
|
|
593
|
+
config: {
|
|
594
|
+
title: {
|
|
595
|
+
cy: "wheel-title",
|
|
596
|
+
...H.value.style.chart.title
|
|
597
|
+
},
|
|
598
|
+
subtitle: {
|
|
599
|
+
cy: "wheel-subtitle",
|
|
600
|
+
...H.value.style.chart.title.subtitle
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}, null, 8, ["config"]))], 512)) : D("", !0),
|
|
604
|
+
H.value.userOptions.show && Ge.value && (I(at) || I(rt)) ? (M(), E(I(ze), {
|
|
605
|
+
ref_key: "details",
|
|
606
|
+
ref: Ke,
|
|
607
|
+
key: `user_options_${qe.value}`,
|
|
608
|
+
backgroundColor: H.value.style.chart.backgroundColor,
|
|
609
|
+
color: H.value.style.chart.color,
|
|
610
|
+
isPrinting: I(ct),
|
|
611
|
+
isImaging: I(lt),
|
|
612
|
+
uid: B.value,
|
|
613
|
+
hasPdf: H.value.userOptions.buttons.pdf,
|
|
614
|
+
hasImg: H.value.userOptions.buttons.img,
|
|
615
|
+
hasSvg: H.value.userOptions.buttons.svg,
|
|
616
|
+
hasFullscreen: H.value.userOptions.buttons.fullscreen,
|
|
617
|
+
hasAltCopy: H.value.userOptions.buttons.altCopy,
|
|
618
|
+
hasXls: !1,
|
|
619
|
+
isFullscreen: At.value,
|
|
620
|
+
position: H.value.userOptions.position,
|
|
621
|
+
titles: { ...H.value.userOptions.buttonTitles },
|
|
622
|
+
hasAnnotator: H.value.userOptions.buttons.annotator,
|
|
623
|
+
isAnnotation: Mt.value,
|
|
624
|
+
chartElement: V.value,
|
|
625
|
+
callbacks: H.value.userOptions.callbacks,
|
|
626
|
+
printScale: H.value.userOptions.print.scale,
|
|
627
|
+
isCursorPointer: et.value,
|
|
628
|
+
onToggleFullscreen: jt,
|
|
629
|
+
onGeneratePdf: I(ut),
|
|
630
|
+
onGenerateImage: Ht,
|
|
631
|
+
onGenerateSvg: Vt,
|
|
632
|
+
onToggleAnnotator: Nt,
|
|
633
|
+
onCopyAlt: Ut,
|
|
634
|
+
style: le({ visibility: I(at) ? I(rt) ? "visible" : "hidden" : "visible" })
|
|
635
|
+
}, ae({ _: 2 }, [
|
|
636
|
+
e.$slots.menuIcon ? {
|
|
637
|
+
name: "menuIcon",
|
|
638
|
+
fn: L(({ isOpen: t, color: n }) => [F(e.$slots, "menuIcon", j(k({
|
|
639
|
+
isOpen: t,
|
|
640
|
+
color: n
|
|
641
|
+
})), void 0, !0)]),
|
|
642
|
+
key: "0"
|
|
643
|
+
} : void 0,
|
|
644
|
+
e.$slots.optionPdf ? {
|
|
645
|
+
name: "optionPdf",
|
|
646
|
+
fn: L(() => [F(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
647
|
+
key: "1"
|
|
648
|
+
} : void 0,
|
|
649
|
+
e.$slots.optionImg ? {
|
|
650
|
+
name: "optionImg",
|
|
651
|
+
fn: L(() => [F(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
652
|
+
key: "2"
|
|
653
|
+
} : void 0,
|
|
654
|
+
e.$slots.optionSvg ? {
|
|
655
|
+
name: "optionSvg",
|
|
656
|
+
fn: L(() => [F(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
657
|
+
key: "3"
|
|
658
|
+
} : void 0,
|
|
659
|
+
e.$slots.optionFullscreen ? {
|
|
660
|
+
name: "optionFullscreen",
|
|
661
|
+
fn: L(({ toggleFullscreen: t, isFullscreen: n }) => [F(e.$slots, "optionFullscreen", j(k({
|
|
662
|
+
toggleFullscreen: t,
|
|
663
|
+
isFullscreen: n
|
|
664
|
+
})), void 0, !0)]),
|
|
665
|
+
key: "4"
|
|
666
|
+
} : void 0,
|
|
667
|
+
e.$slots.optionAnnotator ? {
|
|
668
|
+
name: "optionAnnotator",
|
|
669
|
+
fn: L(({ toggleAnnotator: t, isAnnotator: n }) => [F(e.$slots, "optionAnnotator", j(k({
|
|
670
|
+
toggleAnnotator: t,
|
|
671
|
+
isAnnotator: n
|
|
672
|
+
})), void 0, !0)]),
|
|
673
|
+
key: "5"
|
|
674
|
+
} : void 0,
|
|
675
|
+
e.$slots.optionAltCopy ? {
|
|
676
|
+
name: "optionAltCopy",
|
|
677
|
+
fn: L(({ altCopy: t }) => [F(e.$slots, "optionAltCopy", j(k({ altCopy: t })), void 0, !0)]),
|
|
678
|
+
key: "6"
|
|
679
|
+
} : void 0
|
|
680
|
+
]), 1032, [
|
|
681
|
+
"backgroundColor",
|
|
682
|
+
"color",
|
|
683
|
+
"isPrinting",
|
|
684
|
+
"isImaging",
|
|
685
|
+
"uid",
|
|
686
|
+
"hasPdf",
|
|
687
|
+
"hasImg",
|
|
688
|
+
"hasSvg",
|
|
689
|
+
"hasFullscreen",
|
|
690
|
+
"hasAltCopy",
|
|
691
|
+
"isFullscreen",
|
|
692
|
+
"position",
|
|
693
|
+
"titles",
|
|
694
|
+
"hasAnnotator",
|
|
695
|
+
"isAnnotation",
|
|
696
|
+
"chartElement",
|
|
697
|
+
"callbacks",
|
|
698
|
+
"printScale",
|
|
699
|
+
"isCursorPointer",
|
|
700
|
+
"onGeneratePdf",
|
|
701
|
+
"style"
|
|
702
|
+
])) : D("", !0),
|
|
703
|
+
(M(), O("svg", {
|
|
704
|
+
ref_key: "svgRef",
|
|
705
|
+
ref: ot,
|
|
706
|
+
xmlns: I(c),
|
|
707
|
+
class: A({
|
|
708
|
+
"vue-data-ui-fullscreen--on": At.value,
|
|
709
|
+
"vue-data-ui-fulscreen--off": !At.value,
|
|
710
|
+
"vue-ui-wheel-3d-svg": H.value.layout === "3d"
|
|
711
|
+
}),
|
|
712
|
+
viewBox: H.value.layout === "3d" && !H.value.responsive ? `${X.value?.x - 10} ${X.value?.y ?? 0} ${X.value?.w + 20 ?? Math.max(10, W.value.width)} ${X.value?.h ?? Math.max(10, W.value.height)}` : `0 0 ${Math.max(10, W.value.width)} ${Math.max(10, W.value.height)}`,
|
|
713
|
+
style: le(`max-width:100%;overflow:visible;background:transparent;color:${H.value.style.chart.color}`),
|
|
714
|
+
role: "img",
|
|
715
|
+
"aria-labelledby": Wt.value,
|
|
716
|
+
"aria-describedby": Gt.value
|
|
717
|
+
}, [
|
|
718
|
+
ie("title", { id: Wt.value }, pe(qt.value), 9, be),
|
|
719
|
+
ie("desc", { id: Gt.value }, pe(Jt.value), 9, xe),
|
|
720
|
+
oe(I(Be)),
|
|
721
|
+
e.$slots["chart-background"] ? (M(), O("foreignObject", {
|
|
722
|
+
key: 0,
|
|
723
|
+
x: H.value.layout === "3d" && !H.value.responsive ? X.value?.x - 10 : 0,
|
|
724
|
+
y: H.value.layout === "3d" && !H.value.responsive ? X.value?.y ?? 0 : 0,
|
|
725
|
+
width: H.value.layout === "3d" && !H.value.responsive ? X.value?.w + 20 ?? Math.max(10, W.value.width) : Math.max(10, W.value.width),
|
|
726
|
+
height: H.value.layout === "3d" && !H.value.responsive ? X.value?.h ?? Math.max(10, W.value.height) : Math.max(10, W.value.height),
|
|
727
|
+
style: { pointerEvents: "none" }
|
|
728
|
+
}, [F(e.$slots, "chart-background", {}, void 0, !0)], 8, Se)) : D("", !0),
|
|
729
|
+
H.value.layout === "3d" && Ct.value ? (M(), O("path", {
|
|
730
|
+
key: 1,
|
|
731
|
+
class: "vue-ui-wheel-inner-circle",
|
|
732
|
+
d: Ct.value.d,
|
|
733
|
+
stroke: H.value.style.chart.layout.innerCircle.stroke,
|
|
734
|
+
"stroke-width": H.value.style.chart.layout.innerCircle.strokeWidth,
|
|
735
|
+
fill: "none"
|
|
736
|
+
}, null, 8, Ce)) : H.value.style.chart.layout.innerCircle.show ? (M(), O("circle", {
|
|
737
|
+
key: 2,
|
|
738
|
+
class: "vue-ui-wheel-inner-circle",
|
|
739
|
+
cx: K.value.centerX,
|
|
740
|
+
cy: K.value.centerY,
|
|
741
|
+
r: Math.max(0, K.value.radius * H.value.style.chart.layout.innerCircle.radiusRatio * .8),
|
|
742
|
+
stroke: H.value.style.chart.layout.innerCircle.stroke,
|
|
743
|
+
"stroke-width": H.value.style.chart.layout.innerCircle.strokeWidth,
|
|
744
|
+
fill: "none"
|
|
745
|
+
}, null, 8, we)) : D("", !0),
|
|
746
|
+
H.value.layout === "3d" ? (M(), O(w, { key: 3 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(), O("g", Te, [(M(!0), O(w, null, P($.value, (e) => (M(), O("g", null, [(M(!0), O(w, null, P(bt.value || [], (t) => (M(), O("line", {
|
|
747
|
+
key: t.i,
|
|
748
|
+
x1: t.x1,
|
|
749
|
+
y1: t.y1 - e,
|
|
750
|
+
x2: t.x2,
|
|
751
|
+
y2: t.y2 - e,
|
|
752
|
+
stroke: I(u)(t.color, .25 * e / 5),
|
|
753
|
+
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
|
|
754
|
+
"stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
755
|
+
class: A({
|
|
756
|
+
"vue-ui-wheel-tick": !0,
|
|
757
|
+
"vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t.i * Q.value <= q.value
|
|
758
|
+
})
|
|
759
|
+
}, null, 10, Ee))), 128))]))), 256)), (M(!0), O(w, null, P(bt.value || [], (e) => (M(), O("line", {
|
|
760
|
+
key: e.i,
|
|
761
|
+
x1: e.x1,
|
|
762
|
+
y1: e.y1 - $.value,
|
|
763
|
+
x2: e.x2,
|
|
764
|
+
y2: e.y2 - $.value,
|
|
765
|
+
stroke: e.color,
|
|
766
|
+
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
|
|
767
|
+
"stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
768
|
+
class: A({
|
|
769
|
+
"vue-ui-wheel-tick": !0,
|
|
770
|
+
"vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && e.i * Q.value <= q.value
|
|
771
|
+
})
|
|
772
|
+
}, null, 10, De))), 128))])) : (M(), O("g", Oe, [(M(!0), O(w, null, P($.value, (e) => (M(), O("g", null, [(M(!0), O(w, null, P(Et.value(-e) || [], (e) => (M(), O("path", {
|
|
773
|
+
key: e.i,
|
|
774
|
+
d: e.d,
|
|
775
|
+
fill: H.value.style.chart.layout.wheel.ticks.inactiveColor,
|
|
776
|
+
stroke: H.value.style.chart.layout.wheel.ticks.stroke,
|
|
777
|
+
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
|
|
778
|
+
"stroke-linecap": "round",
|
|
779
|
+
"stroke-linejoin": "round",
|
|
780
|
+
class: "vue-ui-wheel-tick"
|
|
781
|
+
}, null, 8, ke))), 128)), (M(!0), O(w, null, P(Et.value(-e) || [], (t) => (M(), O("path", {
|
|
782
|
+
key: t.i,
|
|
783
|
+
d: t.d,
|
|
784
|
+
fill: I(u)(t.fill, .5 * e / $.value),
|
|
785
|
+
stroke: H.value.style.chart.layout.wheel.ticks.stroke,
|
|
786
|
+
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
|
|
787
|
+
"stroke-linecap": "round",
|
|
788
|
+
"stroke-linejoin": "round",
|
|
789
|
+
class: A({
|
|
790
|
+
"vue-ui-wheel-tick": !0,
|
|
791
|
+
"vue-ui-tick-animated-3d": H.value.style.chart.animation.use && !I(R) && t.i * Q.value <= q.value
|
|
792
|
+
})
|
|
793
|
+
}, null, 10, Ae))), 128))]))), 256)), ie("g", null, [(M(!0), O(w, null, P(Et.value(-$.value) || [], (e) => (M(), O("path", {
|
|
794
|
+
key: e.i,
|
|
795
|
+
d: e.d,
|
|
796
|
+
fill: e.fill,
|
|
797
|
+
stroke: H.value.style.chart.layout.wheel.ticks.stroke,
|
|
798
|
+
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
|
|
799
|
+
"stroke-linecap": "round",
|
|
800
|
+
"stroke-linejoin": "round",
|
|
801
|
+
class: A({
|
|
802
|
+
"vue-ui-wheel-tick": !0,
|
|
803
|
+
"vue-ui-tick-animated-3d": H.value.style.chart.animation.use && !I(R) && e.i * Q.value <= q.value
|
|
804
|
+
})
|
|
805
|
+
}, null, 10, je))), 128))])]))], 64)) : (M(), O(w, { key: 4 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(!0), O(w, { key: 0 }, P(Ot.value, (e, t) => (M(), O("line", {
|
|
806
|
+
x1: e.x1,
|
|
807
|
+
x2: e.x2,
|
|
808
|
+
y1: e.y1,
|
|
809
|
+
y2: e.y2,
|
|
810
|
+
stroke: e.color,
|
|
811
|
+
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
|
|
812
|
+
"stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
813
|
+
class: A({
|
|
814
|
+
"vue-ui-wheel-tick": !0,
|
|
815
|
+
"vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t * Q.value <= q.value
|
|
816
|
+
})
|
|
817
|
+
}, null, 10, Me))), 256)) : (M(!0), O(w, { key: 1 }, P(kt.value, (e, t) => (M(), O("path", {
|
|
818
|
+
d: e.arcSlice,
|
|
819
|
+
fill: e.color,
|
|
820
|
+
class: A({
|
|
821
|
+
"vue-ui-wheel-tick": !0,
|
|
822
|
+
"vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t * Q.value <= q.value
|
|
823
|
+
}),
|
|
824
|
+
stroke: H.value.style.chart.layout.wheel.ticks.stroke,
|
|
825
|
+
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth
|
|
826
|
+
}, null, 10, Ne))), 256))], 64)),
|
|
827
|
+
H.value.style.chart.layout.percentage.show ? (M(), O("g", {
|
|
828
|
+
key: 5,
|
|
829
|
+
role: "status",
|
|
830
|
+
"aria-live": "polite",
|
|
831
|
+
"aria-label": I(nt) ? "..." : Kt.value
|
|
832
|
+
}, [I(nt) ? (M(), O("rect", {
|
|
833
|
+
key: 0,
|
|
834
|
+
x: K.value.centerX - 40,
|
|
835
|
+
y: K.value.centerY - G.value / 2,
|
|
836
|
+
width: 80,
|
|
837
|
+
height: G.value,
|
|
838
|
+
fill: "#6A6A6A80",
|
|
839
|
+
rx: "3"
|
|
840
|
+
}, null, 8, Fe)) : (M(), O("text", {
|
|
841
|
+
key: 1,
|
|
842
|
+
"aria-hidden": "true",
|
|
843
|
+
x: K.value.centerX + H.value.style.chart.layout.percentage.offsetX,
|
|
844
|
+
y: K.value.centerY + G.value / 3 + H.value.style.chart.layout.percentage.offsetY,
|
|
845
|
+
"font-size": G.value,
|
|
846
|
+
fill: H.value.style.chart.layout.wheel.ticks.gradient.show ? I(r)(H.value.style.chart.layout.wheel.ticks.activeColor, q.value / 100 * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : H.value.style.chart.layout.wheel.ticks.activeColor,
|
|
847
|
+
"text-anchor": "middle",
|
|
848
|
+
"font-weight": H.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
849
|
+
style: { "font-variant-numeric": "tabluar-nums" },
|
|
850
|
+
stroke: H.value.style.chart.layout.percentage.stroke,
|
|
851
|
+
"stroke-width": H.value.style.chart.layout.percentage.strokeWidth,
|
|
852
|
+
"stroke-linecap": "round",
|
|
853
|
+
"stroke-linejoin": "round",
|
|
854
|
+
"paint-order": "stroke fill",
|
|
855
|
+
class: A({ "vue-ui-wheel-label": H.value.layout === "3d" })
|
|
856
|
+
}, pe(Kt.value), 11, Ie))], 8, Pe)) : D("", !0),
|
|
857
|
+
F(e.$slots, "svg", { svg: {
|
|
858
|
+
...W.value,
|
|
859
|
+
isPrintingImg: I(ct) || I(lt) || Qe.value,
|
|
860
|
+
isPrintingSvg: $e.value
|
|
861
|
+
} }, void 0, !0)
|
|
862
|
+
], 14, ye)),
|
|
863
|
+
e.$slots.watermark ? (M(), O("div", Le, [F(e.$slots, "watermark", j(k({ isPrinting: I(ct) || I(lt) || Qe.value || $e.value })), void 0, !0)])) : D("", !0),
|
|
864
|
+
e.$slots.source ? (M(), O("div", {
|
|
865
|
+
key: 5,
|
|
866
|
+
ref_key: "source",
|
|
867
|
+
ref: Ye,
|
|
868
|
+
dir: "auto"
|
|
869
|
+
}, [F(e.$slots, "source", {}, void 0, !0)], 512)) : D("", !0),
|
|
870
|
+
F(e.$slots, "skeleton", {}, () => [I(nt) ? (M(), E(h, { key: 0 })) : D("", !0)], !0)
|
|
871
|
+
], 46, ve));
|
|
872
|
+
}
|
|
873
|
+
}, [["__scopeId", "data-v-d1a4d6e1"]]);
|
|
874
|
+
//#endregion
|
|
875
|
+
export { _e as n, Re as t };
|