vue-data-ui 3.27.0 → 3.27.1-beta.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/dist/A11yDataTable-DWNlWXzs.js +1 -0
- package/dist/Arrow-CJeSufxg.js +1 -0
- package/dist/BaseDraggableDialog-T1gEsQid.js +1 -0
- package/dist/BaseIcon-Cz30ODFA.js +1 -0
- package/dist/BaseLegendToggle-Dn_tNvn4.js +1 -0
- package/dist/BaseScanner-8NdoBs7B.js +1 -0
- package/dist/BaseZoomControls-xq3tWD3j.js +1 -0
- package/dist/ColorPicker-CUjEw53A.js +1 -0
- package/dist/DataTable-DSUA5M9p.js +1 -0
- package/dist/DefGrad-DKMq1REY.js +1 -0
- package/dist/HillActions-DdvXld3a.js +1 -0
- package/dist/Legend-DokTll4u.js +1 -0
- package/dist/NonSvgPenAndPaper-BLzQuIm6.js +1 -0
- package/dist/PackageVersion-D6pKL176.js +1 -0
- package/dist/PenAndPaper-DvJJaeU2.js +1 -0
- package/dist/RecursiveCircles-BftI1kwF.js +1 -0
- package/dist/RecursiveLabels-B0d04xSj.js +1 -0
- package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
- package/dist/Shape-tkp65OcG.js +1 -0
- package/dist/SlicerPreview-GFRs2EWB.js +1 -0
- package/dist/SparkTooltip-BlJLvizH.js +1 -0
- package/dist/Title-BRAjxtjG.js +1 -0
- package/dist/Tooltip-BUXB0i6z.js +1 -0
- package/dist/UserOptions-D65t74CM.js +1 -0
- package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
- package/dist/annotationSlots-BRR85CqJ.js +1 -0
- package/dist/chartImage-NwZO-elv.js +1 -0
- package/dist/components/arrow.js +1 -2
- package/dist/components/vue-ui-3d-bar.js +1 -2
- package/dist/components/vue-ui-accordion.js +1 -2
- package/dist/components/vue-ui-age-pyramid.js +1 -2
- package/dist/components/vue-ui-annotator.js +1 -2
- package/dist/components/vue-ui-bullet.js +1 -2
- package/dist/components/vue-ui-bump.js +1 -2
- package/dist/components/vue-ui-candlestick.js +1 -2
- package/dist/components/vue-ui-carousel-table.js +1 -2
- package/dist/components/vue-ui-chestnut.js +1 -2
- package/dist/components/vue-ui-chord.js +1 -2
- package/dist/components/vue-ui-circle-pack.js +1 -2
- package/dist/components/vue-ui-cursor.js +1 -2
- package/dist/components/vue-ui-dag.js +1 -2
- package/dist/components/vue-ui-dashboard.js +1 -2
- package/dist/components/vue-ui-digits.js +1 -2
- package/dist/components/vue-ui-donut-evolution.js +1 -2
- package/dist/components/vue-ui-donut.js +1 -2
- package/dist/components/vue-ui-dumbbell.js +1 -2
- package/dist/components/vue-ui-flow.js +1 -2
- package/dist/components/vue-ui-funnel.js +1 -2
- package/dist/components/vue-ui-galaxy.js +1 -2
- package/dist/components/vue-ui-gauge.js +1 -2
- package/dist/components/vue-ui-geo.js +1 -2
- package/dist/components/vue-ui-gizmo.js +1 -2
- package/dist/components/vue-ui-heatmap.js +1 -2
- package/dist/components/vue-ui-hill.js +1 -2
- package/dist/components/vue-ui-history-plot.js +1 -2
- package/dist/components/vue-ui-horizontal-bar.js +1 -2
- package/dist/components/vue-ui-icon.js +1 -2
- package/dist/components/vue-ui-kpi.js +1 -2
- package/dist/components/vue-ui-label.js +1 -2
- package/dist/components/vue-ui-mini-loader.js +1 -2
- package/dist/components/vue-ui-molecule.js +1 -2
- package/dist/components/vue-ui-mood-radar.js +1 -2
- package/dist/components/vue-ui-nested-donuts.js +1 -2
- package/dist/components/vue-ui-onion.js +1 -2
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
- package/dist/components/vue-ui-pattern-seed.js +1 -2
- package/dist/components/vue-ui-pattern.js +1 -2
- package/dist/components/vue-ui-quadrant.js +1 -2
- package/dist/components/vue-ui-quick-chart.js +1 -2
- package/dist/components/vue-ui-radar.js +1 -2
- package/dist/components/vue-ui-rating.js +1 -2
- package/dist/components/vue-ui-relation-circle.js +1 -2
- package/dist/components/vue-ui-ridgeline.js +1 -2
- package/dist/components/vue-ui-rings.js +1 -2
- package/dist/components/vue-ui-scatter.js +1 -2
- package/dist/components/vue-ui-skeleton.js +1 -2
- package/dist/components/vue-ui-smiley.js +1 -2
- package/dist/components/vue-ui-spark-trend.js +1 -2
- package/dist/components/vue-ui-sparkbar.js +1 -2
- package/dist/components/vue-ui-sparkgauge.js +1 -2
- package/dist/components/vue-ui-sparkhistogram.js +1 -2
- package/dist/components/vue-ui-sparkline.js +1 -2
- package/dist/components/vue-ui-sparkstackbar.js +1 -2
- package/dist/components/vue-ui-stackbar.js +1 -2
- package/dist/components/vue-ui-stackline.js +1 -2
- package/dist/components/vue-ui-strip-plot.js +1 -2
- package/dist/components/vue-ui-table-heatmap.js +1 -2
- package/dist/components/vue-ui-table-sparkline.js +1 -2
- package/dist/components/vue-ui-table.js +1 -2
- package/dist/components/vue-ui-thermometer.js +1 -2
- package/dist/components/vue-ui-timer.js +1 -2
- package/dist/components/vue-ui-tiremarks.js +1 -2
- package/dist/components/vue-ui-treemap.js +1 -2
- package/dist/components/vue-ui-vertical-bar.js +1 -2
- package/dist/components/vue-ui-waffle.js +1 -2
- package/dist/components/vue-ui-wheel.js +1 -2
- package/dist/components/vue-ui-word-cloud.js +1 -2
- package/dist/components/vue-ui-world.js +1 -2
- package/dist/components/vue-ui-xy-canvas.js +1 -2
- package/dist/components/vue-ui-xy.js +1 -2
- package/dist/composables.js +1 -5
- package/dist/dom-to-png-Cp3WLHmJ.js +3 -0
- package/dist/exposedLib-CMTeSmyW.js +1 -0
- package/dist/geoProjections-Bvj-eMvq.js +1 -0
- package/dist/img-8sM3sVWU.js +1 -0
- package/dist/labelUtils-Djp5nJtN.js +1 -0
- package/dist/lib-zDxoqrgo.js +12 -0
- package/dist/package-DIR2F6AE.js +1 -0
- package/dist/patternUtils-_q3ArM3g.js +1 -0
- package/dist/pdf-Dlv_ks7R.js +1 -0
- package/dist/render-common-DOYi0f4Z.js +1 -0
- package/dist/resolveChartConfig-BSo1Oe9n.js +1 -0
- package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
- package/dist/ssr/vue-ui-donut.js +1 -2
- package/dist/ssr/vue-ui-xy.js +1 -2
- package/dist/ssr.js +1 -3
- package/dist/style.css +1 -1
- package/dist/tableIntegration-CNoJ1CIY.js +1 -0
- package/dist/types/composables.d.ts +12 -12
- package/dist/types/ssr.d.ts +84 -84
- package/dist/types/utils.d.ts +82 -73
- package/dist/types/vue-data-ui.d.ts +17961 -17958
- package/dist/types/vue-ui-3d-bar.d.ts +24 -91
- package/dist/types/vue-ui-accordion.d.ts +2 -10
- package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
- package/dist/types/vue-ui-annotator.d.ts +12 -88
- package/dist/types/vue-ui-bullet.d.ts +21 -83
- package/dist/types/vue-ui-bump.d.ts +23 -90
- package/dist/types/vue-ui-candlestick.d.ts +27 -108
- package/dist/types/vue-ui-carousel-table.d.ts +11 -57
- package/dist/types/vue-ui-chestnut.d.ts +27 -96
- package/dist/types/vue-ui-chord.d.ts +31 -108
- package/dist/types/vue-ui-circle-pack.d.ts +30 -124
- package/dist/types/vue-ui-cursor.d.ts +2 -8
- package/dist/types/vue-ui-dag.d.ts +35 -125
- package/dist/types/vue-ui-dashboard.d.ts +18 -66
- package/dist/types/vue-ui-digits.d.ts +2 -11
- package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
- package/dist/types/vue-ui-donut.d.ts +31 -121
- package/dist/types/vue-ui-dumbbell.d.ts +24 -92
- package/dist/types/vue-ui-flow.d.ts +28 -104
- package/dist/types/vue-ui-funnel.d.ts +18 -77
- package/dist/types/vue-ui-galaxy.d.ts +30 -112
- package/dist/types/vue-ui-gauge.d.ts +22 -87
- package/dist/types/vue-ui-geo.d.ts +22 -92
- package/dist/types/vue-ui-gizmo.d.ts +5 -20
- package/dist/types/vue-ui-heatmap.d.ts +25 -101
- package/dist/types/vue-ui-hill.d.ts +22 -88
- package/dist/types/vue-ui-history-plot.d.ts +30 -112
- package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
- package/dist/types/vue-ui-icon.d.ts +1 -13
- package/dist/types/vue-ui-kpi.d.ts +5 -23
- package/dist/types/vue-ui-label.d.ts +11 -48
- package/dist/types/vue-ui-mini-loader.d.ts +4 -13
- package/dist/types/vue-ui-molecule.d.ts +27 -110
- package/dist/types/vue-ui-mood-radar.d.ts +23 -90
- package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
- package/dist/types/vue-ui-onion.d.ts +26 -104
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
- package/dist/types/vue-ui-pattern.d.ts +1 -13
- package/dist/types/vue-ui-quadrant.d.ts +33 -123
- package/dist/types/vue-ui-quick-chart.d.ts +30 -110
- package/dist/types/vue-ui-radar.d.ts +31 -114
- package/dist/types/vue-ui-rating.d.ts +8 -40
- package/dist/types/vue-ui-relation-circle.d.ts +26 -90
- package/dist/types/vue-ui-ridgeline.d.ts +27 -104
- package/dist/types/vue-ui-rings.d.ts +21 -96
- package/dist/types/vue-ui-scatter.d.ts +22 -95
- package/dist/types/vue-ui-skeleton.d.ts +2 -10
- package/dist/types/vue-ui-smiley.d.ts +6 -26
- package/dist/types/vue-ui-spark-trend.d.ts +2 -18
- package/dist/types/vue-ui-sparkbar.d.ts +10 -47
- package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
- package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
- package/dist/types/vue-ui-sparkline.d.ts +16 -61
- package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
- package/dist/types/vue-ui-stackbar.d.ts +36 -130
- package/dist/types/vue-ui-stackline.d.ts +29 -116
- package/dist/types/vue-ui-strip-plot.d.ts +22 -96
- package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
- package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
- package/dist/types/vue-ui-table.d.ts +9 -36
- package/dist/types/vue-ui-thermometer.d.ts +14 -68
- package/dist/types/vue-ui-timer.d.ts +10 -47
- package/dist/types/vue-ui-tiremarks.d.ts +14 -68
- package/dist/types/vue-ui-treemap.d.ts +26 -105
- package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
- package/dist/types/vue-ui-waffle.d.ts +23 -99
- package/dist/types/vue-ui-wheel.d.ts +14 -68
- package/dist/types/vue-ui-word-cloud.d.ts +20 -95
- package/dist/types/vue-ui-world.d.ts +22 -96
- package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
- package/dist/types/vue-ui-xy.d.ts +42 -146
- package/dist/unpackTheme-CNsFKCeq.js +1 -0
- package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
- package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
- package/dist/useChartExport-DtPNpc9M.js +1 -0
- package/dist/useConfig-CKdzPrcf.js +1 -0
- package/dist/useFitSvgText-C1QC4P5G.js +1 -0
- package/dist/useHints-BH9r_0Vd.js +6 -0
- package/dist/useNestedProp-CT9phgWx.js +1 -0
- package/dist/useObjectBindings-DM3xDKV3.js +1 -0
- package/dist/usePanZoom-BdjP5Suc.js +1 -0
- package/dist/usePrefersMotion-XLHwega2.js +1 -0
- package/dist/usePrinter-CnyKPIFM.js +1 -0
- package/dist/useResponsive-D2CPcpda.js +1 -0
- package/dist/useStableElementSize-CegFbRlF.js +1 -0
- package/dist/useTableResponsive-uSz_qZOB.js +1 -0
- package/dist/useThemeCheck-BKNRbGeC.js +1 -0
- package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
- package/dist/useTimeLabels-Das5O74F.js +1 -0
- package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
- package/dist/useTransitions-DfSHzsdz.js +1 -0
- package/dist/useUserOptionState-CXlFnwPv.js +1 -0
- package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
- package/dist/utils.js +1 -30
- package/dist/vClickOutside-BxNzkY17.js +1 -0
- package/dist/vue-data-ui-BG41UScx.js +1 -0
- package/dist/vue-data-ui.js +1 -79
- package/dist/vue-ui-3d-bar-DiaiNy-k.js +19 -0
- package/dist/vue-ui-accordion-Dy5OVFKr.js +1 -0
- package/dist/vue-ui-age-pyramid-OeUr1yxi.js +1 -0
- package/dist/vue-ui-annotator-DA_xAFql.js +331 -0
- package/dist/vue-ui-bullet-B9lcCTVb.js +34 -0
- package/dist/vue-ui-bump-DYajIrva.js +10 -0
- package/dist/vue-ui-candlestick-CdAZuNxo.js +22 -0
- package/dist/vue-ui-carousel-table-ihGH0LDH.js +1 -0
- package/dist/vue-ui-chestnut-B2aNXFNO.js +1 -0
- package/dist/vue-ui-chord-fAckHfOW.js +21 -0
- package/dist/vue-ui-circle-pack-BWHVImkS.js +13 -0
- package/dist/vue-ui-cursor-DdXKXmhr.js +1 -0
- package/dist/vue-ui-dag-a0fNoIcJ.js +9 -0
- package/dist/vue-ui-dashboard-DkdYMB7n.js +1 -0
- package/dist/vue-ui-digits-CL9SuIEI.js +42 -0
- package/dist/vue-ui-donut-BaEodt-3.js +22 -0
- package/dist/vue-ui-donut-DaYxdQmP.js +47 -0
- package/dist/vue-ui-donut-evolution-T8cRXKRQ.js +2 -0
- package/dist/vue-ui-dumbbell-B6HJxEZp.js +9 -0
- package/dist/vue-ui-flow-BlTCVFr3.js +3 -0
- package/dist/vue-ui-funnel-WgLFJadZ.js +1 -0
- package/dist/vue-ui-galaxy-B3nuI6E8.js +1 -0
- package/dist/vue-ui-gauge-BwTP65O4.js +1 -0
- package/dist/vue-ui-geo-CX3yH18H.js +1 -0
- package/dist/vue-ui-gizmo-CNHcBsku.js +1 -0
- package/dist/vue-ui-heatmap-CTdeoar7.js +1 -0
- package/dist/vue-ui-hill-DR5k8GWZ.js +1 -0
- package/dist/vue-ui-history-plot-C-9uH-Uj.js +2 -0
- package/dist/vue-ui-horizontal-bar-qqF7pL7U.js +4 -0
- package/dist/vue-ui-kpi-DVcLXGqG.js +1 -0
- package/dist/vue-ui-label-D1Aog-zO.js +7 -0
- package/dist/vue-ui-mini-loader-CX0Dx9tT.js +1 -0
- package/dist/vue-ui-molecule-B13qVX71.js +1 -0
- package/dist/vue-ui-mood-radar-C1BtB8lg.js +1 -0
- package/dist/vue-ui-nested-donuts-B90yrlJG.js +19 -0
- package/dist/vue-ui-onion-UMVO2DE_.js +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-C0ofFivm.js +9 -0
- package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
- package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
- package/dist/vue-ui-quadrant-CPG6yAiu.js +2 -0
- package/dist/vue-ui-quick-chart-BTPb-Iz8.js +17 -0
- package/dist/vue-ui-radar-Hd-pE9ih.js +1 -0
- package/dist/vue-ui-rating-C_YxQYa_.js +1 -0
- package/dist/vue-ui-relation-circle-CHYG7ZJl.js +1 -0
- package/dist/vue-ui-ridgeline-DS1Gvljt.js +2 -0
- package/dist/vue-ui-rings-B-Hb13Uu.js +1 -0
- package/dist/vue-ui-scatter-BTgvOmuo.js +9 -0
- package/dist/vue-ui-skeleton-B-Acw3CC.js +41 -0
- package/dist/vue-ui-smiley-Ciwqt6ek.js +1 -0
- package/dist/vue-ui-spark-trend-CYqy6c0S.js +1 -0
- package/dist/vue-ui-sparkbar-CTXIgjmP.js +1 -0
- package/dist/vue-ui-sparkgauge-CObOL6s2.js +1 -0
- package/dist/vue-ui-sparkhistogram-ClFyDez-.js +1 -0
- package/dist/vue-ui-sparkline-DP_nYlW8.js +1 -0
- package/dist/vue-ui-sparkstackbar-B2f0ePMg.js +1 -0
- package/dist/vue-ui-stackbar-nMWHZ-f0.js +29 -0
- package/dist/vue-ui-stackline-B95y6Zc5.js +39 -0
- package/dist/vue-ui-strip-plot-gFNC4r-X.js +2 -0
- package/dist/vue-ui-table-Br2JgD_L.js +14 -0
- package/dist/vue-ui-table-heatmap-Btu2ejF4.js +1 -0
- package/dist/vue-ui-table-sparkline-B9mYHAxp.js +1 -0
- package/dist/vue-ui-thermometer-C6u1eLfo.js +1 -0
- package/dist/vue-ui-timer-DLgsfB1U.js +64 -0
- package/dist/vue-ui-tiremarks-8B9uE1Bx.js +1 -0
- package/dist/vue-ui-treemap-C4Mot-Os.js +1 -0
- package/dist/vue-ui-waffle-BwcwNpf7.js +1 -0
- package/dist/vue-ui-wheel-B3OGCXg7.js +1 -0
- package/dist/vue-ui-word-cloud-BPIyMBXq.js +4 -0
- package/dist/vue-ui-world-Cp0DeauH.js +19 -0
- package/dist/vue-ui-xy-BOE1jvUS.js +31 -0
- package/dist/vue-ui-xy-DSyKSn4L.js +24 -0
- package/dist/vue-ui-xy-canvas-CaxxiKSa.js +9 -0
- package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
- package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
- package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
- package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
- package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
- package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
- package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
- package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
- package/dist/vue_ui_dag-1b_dLSym.js +1 -0
- package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
- package/dist/vue_ui_donut_evolution-nzVwNQYv.js +1 -0
- package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
- package/dist/vue_ui_flow-kvV56Es9.js +1 -0
- package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
- package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
- package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
- package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
- package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
- package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
- package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
- package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
- package/dist/vue_ui_label-dtPqyFsj.js +1 -0
- package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
- package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
- package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
- package/dist/vue_ui_onion-C9BedU_-.js +1 -0
- package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
- package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
- package/dist/vue_ui_quick_chart-Da1GwklM.js +1 -0
- package/dist/vue_ui_radar-68iK9Fam.js +1 -0
- package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
- package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
- package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
- package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
- package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
- package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
- package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
- package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
- package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
- package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
- package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
- package/dist/vue_ui_stackline-D7b63K84.js +1 -0
- package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
- package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
- package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
- package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
- package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
- package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
- package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
- package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
- package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
- package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
- package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
- package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
- package/package.json +2 -2
- package/dist/A11yDataTable-DdRsVULz.js +0 -45
- package/dist/Arrow-DKO1l8oR.js +0 -116
- package/dist/BaseDraggableDialog-C50TEJFv.js +0 -272
- package/dist/BaseIcon-Cx9FD751.js +0 -484
- package/dist/BaseLegendToggle-CP3sddwv.js +0 -56
- package/dist/BaseScanner-Dzc8VT3j.js +0 -30
- package/dist/BaseZoomControls-vNi8YykO.js +0 -111
- package/dist/ColorPicker-hmC2bvwS.js +0 -257
- package/dist/DataTable-CjF_An2h.js +0 -150
- package/dist/DefGrad-DVBqDjhO.js +0 -48
- package/dist/HillActions-DqqGB33u.js +0 -187
- package/dist/Legend-CulFgjUY.js +0 -156
- package/dist/NonSvgPenAndPaper-BK1v_MfW.js +0 -577
- package/dist/PackageVersion-D7H9nfK0.js +0 -12
- package/dist/PenAndPaper-CNiuGw6k.js +0 -906
- package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
- package/dist/RecursiveLabels-D9rfID6q.js +0 -56
- package/dist/RecursiveLinks-BygcpDiT.js +0 -78
- package/dist/Shape-DSwamtmO.js +0 -143
- package/dist/SlicerPreview-k5YerMA9.js +0 -1730
- package/dist/SparkTooltip-D35KVv6N.js +0 -93
- package/dist/Title-BMCuINbv.js +0 -87
- package/dist/Tooltip-C4ZTwkLF.js +0 -312
- package/dist/UserOptions-CORYQiif.js +0 -1412
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/dom-to-png-CBusMkua.js +0 -237
- package/dist/exposedLib-UNxZlnAS.js +0 -28
- package/dist/geoProjections-BYthUA8l.js +0 -302
- package/dist/img-Bb5rHcpO.js +0 -129
- package/dist/labelUtils-Ccn9kK7T.js +0 -19
- package/dist/lib-D4wK6ljP.js +0 -2146
- package/dist/package-DmQufM0G.js +0 -4
- package/dist/patternUtils-CS7hn6at.js +0 -258
- package/dist/pdf-BzIQHx-F.js +0 -90
- package/dist/render-common-BtfjXdkJ.js +0 -152
- package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
- package/dist/useChartAccessibility-DYqac8yF.js +0 -12
- package/dist/useChartExport-iwOqiIWX.js +0 -803
- package/dist/useConfig-D_6ZrPMD.js +0 -8090
- package/dist/useFitSvgText-CXTzBplU.js +0 -65
- package/dist/useHints-Dq_w2E8B.js +0 -66
- package/dist/useNestedProp-DR_8JPol.js +0 -12
- package/dist/useObjectBindings-DvasYMGu.js +0 -191
- package/dist/usePanZoom-CYU3B4T3.js +0 -157
- package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
- package/dist/usePrinter-DdW2GSm0.js +0 -49
- package/dist/useResponsive-ZtArZtUf.js +0 -97
- package/dist/useStableElementSize-C7KADDKj.js +0 -77
- package/dist/useTableResponsive-BAqJPR68.js +0 -25
- package/dist/useThemeCheck-C43Tcqmk.js +0 -24
- package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
- package/dist/useTimeLabels-d2f-W1L4.js +0 -270
- package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
- package/dist/useTransitions-g_zBREk2.js +0 -39
- package/dist/useUserOptionState-DK-_1ddE.js +0 -15
- package/dist/vClickOutside-DUrZWttG.js +0 -13
- package/dist/vue-data-ui-Df7WV80w.js +0 -191
- package/dist/vue-ui-3d-bar-CJjNPwhG.js +0 -1831
- package/dist/vue-ui-accordion-CaoNWreI.js +0 -81
- package/dist/vue-ui-age-pyramid-BYcM0uIP.js +0 -1305
- package/dist/vue-ui-annotator-BmqjDjRF.js +0 -3325
- package/dist/vue-ui-bullet-DBOAvpBB.js +0 -702
- package/dist/vue-ui-bump-rPYwDJ4o.js +0 -1242
- package/dist/vue-ui-candlestick-WQHIQNv_.js +0 -2144
- package/dist/vue-ui-carousel-table-Dojcvt49.js +0 -467
- package/dist/vue-ui-chestnut-BdhEByUf.js +0 -2016
- package/dist/vue-ui-chord-MF4xF5az.js +0 -1347
- package/dist/vue-ui-circle-pack-BwDim7G8.js +0 -1647
- package/dist/vue-ui-cursor-w_5cbpSb.js +0 -283
- package/dist/vue-ui-dag-D2EUqeDN.js +0 -2931
- package/dist/vue-ui-dashboard-BLnVXosj.js +0 -522
- package/dist/vue-ui-digits-zSqwYWHm.js +0 -217
- package/dist/vue-ui-donut-ZYZfqIhi.js +0 -974
- package/dist/vue-ui-donut-evolution-DtLbWi3h.js +0 -1869
- package/dist/vue-ui-donut-nLDLZwig.js +0 -2427
- package/dist/vue-ui-dumbbell-Qgn3wRyI.js +0 -1533
- package/dist/vue-ui-flow-iSH6dyGw.js +0 -1229
- package/dist/vue-ui-funnel-Cc2z2zS5.js +0 -749
- package/dist/vue-ui-galaxy-GhuBSU0o.js +0 -1097
- package/dist/vue-ui-gauge-BAjBO13a.js +0 -934
- package/dist/vue-ui-geo-mwTtvIHY.js +0 -1495
- package/dist/vue-ui-gizmo-B5vOOrZX.js +0 -238
- package/dist/vue-ui-heatmap-fimkY1nN.js +0 -1613
- package/dist/vue-ui-hill-DPfTt3UE.js +0 -1747
- package/dist/vue-ui-history-plot-B1WgzqTb.js +0 -1710
- package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +0 -1723
- package/dist/vue-ui-kpi-D-p0CSQh.js +0 -104
- package/dist/vue-ui-label-r3-QloJL.js +0 -1451
- package/dist/vue-ui-mini-loader-CnrBGAtM.js +0 -133
- package/dist/vue-ui-molecule-BhdAYX_H.js +0 -941
- package/dist/vue-ui-mood-radar-CdlnPrQf.js +0 -1111
- package/dist/vue-ui-nested-donuts-DceVEyUc.js +0 -1515
- package/dist/vue-ui-onion-_L0uEATI.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +0 -1444
- package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
- package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
- package/dist/vue-ui-quadrant-CDDFLRcX.js +0 -1979
- package/dist/vue-ui-quick-chart-Dom257hl.js +0 -2775
- package/dist/vue-ui-radar-BLdri1bA.js +0 -1386
- package/dist/vue-ui-rating-C_iTttXB.js +0 -359
- package/dist/vue-ui-relation-circle-BmxTSgjd.js +0 -905
- package/dist/vue-ui-ridgeline-CsUrcVmL.js +0 -1630
- package/dist/vue-ui-rings-D_GPkgbD.js +0 -1264
- package/dist/vue-ui-scatter-D_C-IhnW.js +0 -2418
- package/dist/vue-ui-skeleton-t7e6KEZ2.js +0 -2567
- package/dist/vue-ui-smiley-Dl95YWVo.js +0 -376
- package/dist/vue-ui-spark-trend-pkZA7u5V.js +0 -457
- package/dist/vue-ui-sparkbar-Ds7OJjhG.js +0 -401
- package/dist/vue-ui-sparkgauge-US1M88qc.js +0 -268
- package/dist/vue-ui-sparkhistogram-FISVpSvv.js +0 -589
- package/dist/vue-ui-sparkline-DvE1dHcs.js +0 -2067
- package/dist/vue-ui-sparkstackbar-CWtF9eG-.js +0 -750
- package/dist/vue-ui-stackbar-fMgrHzZe.js +0 -3273
- package/dist/vue-ui-stackline-CSMuUup2.js +0 -2829
- package/dist/vue-ui-strip-plot-TGD2UFHS.js +0 -1752
- package/dist/vue-ui-table-BCEIbg8-.js +0 -1352
- package/dist/vue-ui-table-heatmap-CvUcFWMf.js +0 -363
- package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +0 -738
- package/dist/vue-ui-thermometer-BYFAZCzh.js +0 -758
- package/dist/vue-ui-timer-BKr8RVnn.js +0 -451
- package/dist/vue-ui-tiremarks-BYu3cEoy.js +0 -540
- package/dist/vue-ui-treemap-BR3rX5_L.js +0 -1745
- package/dist/vue-ui-waffle-mP8g5aQk.js +0 -1633
- package/dist/vue-ui-wheel-CZsSO2R6.js +0 -873
- package/dist/vue-ui-word-cloud-CJ30onqy.js +0 -1723
- package/dist/vue-ui-world-BZ09DOiF.js +0 -3021
- package/dist/vue-ui-xy-C3h54loZ.js +0 -1387
- package/dist/vue-ui-xy-canvas-BwgK8drp.js +0 -2151
- package/dist/vue-ui-xy-jemv5dsf.js +0 -5777
- package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
- package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
- package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
- package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
- package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
- package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
- package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
- package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
- package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
- package/dist/vue_ui_donut-BDGqG07h.js +0 -358
- package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
- package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
- package/dist/vue_ui_flow-BewZjjKG.js +0 -238
- package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
- package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
- package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
- package/dist/vue_ui_geo-B8TODs-G.js +0 -248
- package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
- package/dist/vue_ui_hill-dnltu0L-.js +0 -368
- package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
- package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
- package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
- package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
- package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
- package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
- package/dist/vue_ui_onion-1FTFFS46.js +0 -293
- package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
- package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
- package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
- package/dist/vue_ui_radar-jafTED5j.js +0 -306
- package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
- package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
- package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
- package/dist/vue_ui_scatter-I0POnicu.js +0 -479
- package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
- package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
- package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
- package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
- package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
- package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
- package/dist/vue_ui_stackbar-yQyvT4Su.js +0 -537
- package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
- package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
- package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
- package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
- package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
- package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
- package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
- package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
- package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
- package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
- package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
- package/dist/vue_ui_xy-CcJADijP.js +0 -614
- package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
|
@@ -1,1747 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n, Ht as r, X as i, a, en as o, i as s, nt as c, r as l, x as u } from "./lib-D4wK6ljP.js";
|
|
3
|
-
import { n as d, t as f } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as p } from "./useConfig-D_6ZrPMD.js";
|
|
5
|
-
import { t as m } from "./usePrinter-DdW2GSm0.js";
|
|
6
|
-
import { t as h } from "./useNestedProp-DR_8JPol.js";
|
|
7
|
-
import { t as ee } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
-
import { t as te } from "./useChartExport-iwOqiIWX.js";
|
|
9
|
-
import { t as ne } from "./useTransitions-g_zBREk2.js";
|
|
10
|
-
import { t as re } from "./img-Bb5rHcpO.js";
|
|
11
|
-
import { n as ie } from "./Title-BMCuINbv.js";
|
|
12
|
-
import { t as ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
-
import { t as oe } from "./useUserOptionState-DK-_1ddE.js";
|
|
14
|
-
import { t as se } from "./vue_ui_hill-dnltu0L-.js";
|
|
15
|
-
import { Fragment as g, computed as _, createBlock as ce, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as le, createVNode as ue, defineAsyncComponent as de, guardReactiveProps as x, nextTick as fe, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as pe, onMounted as me, openBlock as T, ref as E, renderList as he, renderSlot as D, shallowRef as ge, toDisplayString as O, unref as k, useTemplateRef as _e, watch as ve, withCtx as A, withKeys as ye, withModifiers as be } from "vue";
|
|
16
|
-
//#region src/components/vue-ui-hill.vue
|
|
17
|
-
var xe = /* @__PURE__ */ e({ default: () => ht }), Se = ["id", "data-editing"], Ce = {
|
|
18
|
-
key: 0,
|
|
19
|
-
ref: "chartTitle",
|
|
20
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
21
|
-
}, we = {
|
|
22
|
-
key: 3,
|
|
23
|
-
class: "vue-ui-hill__toolbar",
|
|
24
|
-
"data-dom-to-png-ignore": ""
|
|
25
|
-
}, Te = ["viewBox"], Ee = ["width", "height"], De = [
|
|
26
|
-
"x1",
|
|
27
|
-
"x2",
|
|
28
|
-
"y1",
|
|
29
|
-
"y2",
|
|
30
|
-
"stroke",
|
|
31
|
-
"stroke-width",
|
|
32
|
-
"stroke-dasharray"
|
|
33
|
-
], Oe = [
|
|
34
|
-
"x1",
|
|
35
|
-
"x2",
|
|
36
|
-
"y1",
|
|
37
|
-
"y2",
|
|
38
|
-
"stroke",
|
|
39
|
-
"stroke-width",
|
|
40
|
-
"stroke-dasharray"
|
|
41
|
-
], ke = [
|
|
42
|
-
"d",
|
|
43
|
-
"stroke",
|
|
44
|
-
"stroke-width",
|
|
45
|
-
"stroke-dasharray"
|
|
46
|
-
], Ae = {
|
|
47
|
-
key: 0,
|
|
48
|
-
"pointer-events": "none"
|
|
49
|
-
}, je = [
|
|
50
|
-
"d",
|
|
51
|
-
"stroke",
|
|
52
|
-
"stroke-width",
|
|
53
|
-
"stroke-dasharray"
|
|
54
|
-
], Me = [
|
|
55
|
-
"cx",
|
|
56
|
-
"cy",
|
|
57
|
-
"r",
|
|
58
|
-
"fill",
|
|
59
|
-
"stroke",
|
|
60
|
-
"stroke-width"
|
|
61
|
-
], Ne = [
|
|
62
|
-
"transform",
|
|
63
|
-
"font-size",
|
|
64
|
-
"fill",
|
|
65
|
-
"stroke"
|
|
66
|
-
], Pe = [
|
|
67
|
-
"transform",
|
|
68
|
-
"data-datapoint-index",
|
|
69
|
-
"data-datapoint-id",
|
|
70
|
-
"tabindex",
|
|
71
|
-
"aria-valuenow",
|
|
72
|
-
"aria-valuetext",
|
|
73
|
-
"aria-label",
|
|
74
|
-
"onFocus",
|
|
75
|
-
"onBlur",
|
|
76
|
-
"onKeydown",
|
|
77
|
-
"onPointerenter",
|
|
78
|
-
"onPointerleave",
|
|
79
|
-
"onClick"
|
|
80
|
-
], Fe = ["r", "onPointerdown"], Ie = [
|
|
81
|
-
"r",
|
|
82
|
-
"fill",
|
|
83
|
-
"stroke",
|
|
84
|
-
"stroke-width"
|
|
85
|
-
], Le = ["stroke", "stroke-width"], Re = ["d"], ze = [
|
|
86
|
-
"x",
|
|
87
|
-
"y",
|
|
88
|
-
"text-anchor",
|
|
89
|
-
"fill",
|
|
90
|
-
"font-size",
|
|
91
|
-
"font-weight",
|
|
92
|
-
"stroke",
|
|
93
|
-
"stroke-width"
|
|
94
|
-
], Be = [
|
|
95
|
-
"transform",
|
|
96
|
-
"tabindex",
|
|
97
|
-
"aria-label",
|
|
98
|
-
"aria-expanded",
|
|
99
|
-
"onClick",
|
|
100
|
-
"onFocus",
|
|
101
|
-
"onKeydown"
|
|
102
|
-
], Ve = {
|
|
103
|
-
key: 0,
|
|
104
|
-
class: "vue-ui-hill__stack-overflow-collapse-ghosts",
|
|
105
|
-
"pointer-events": "none",
|
|
106
|
-
"aria-hidden": "true"
|
|
107
|
-
}, He = [
|
|
108
|
-
"cx",
|
|
109
|
-
"cy",
|
|
110
|
-
"r",
|
|
111
|
-
"fill",
|
|
112
|
-
"stroke",
|
|
113
|
-
"stroke-width"
|
|
114
|
-
], Ue = ["from", "dur"], We = ["from", "dur"], Ge = [
|
|
115
|
-
"from",
|
|
116
|
-
"to",
|
|
117
|
-
"dur"
|
|
118
|
-
], Ke = ["dur"], qe = ["r"], Je = [
|
|
119
|
-
"x",
|
|
120
|
-
"y",
|
|
121
|
-
"width",
|
|
122
|
-
"height",
|
|
123
|
-
"fill",
|
|
124
|
-
"stroke",
|
|
125
|
-
"stroke-width"
|
|
126
|
-
], Ye = ["stroke", "stroke-width"], Xe = ["d"], Ze = [
|
|
127
|
-
"y",
|
|
128
|
-
"fill",
|
|
129
|
-
"font-size",
|
|
130
|
-
"font-weight",
|
|
131
|
-
"stroke"
|
|
132
|
-
], Qe = [
|
|
133
|
-
"x",
|
|
134
|
-
"y",
|
|
135
|
-
"fill",
|
|
136
|
-
"font-size",
|
|
137
|
-
"font-weight",
|
|
138
|
-
"letter-spacing"
|
|
139
|
-
], $e = [
|
|
140
|
-
"x",
|
|
141
|
-
"y",
|
|
142
|
-
"fill",
|
|
143
|
-
"font-size",
|
|
144
|
-
"font-weight",
|
|
145
|
-
"letter-spacing"
|
|
146
|
-
], et = [
|
|
147
|
-
"x",
|
|
148
|
-
"y",
|
|
149
|
-
"rx",
|
|
150
|
-
"width",
|
|
151
|
-
"height",
|
|
152
|
-
"fill"
|
|
153
|
-
], tt = ["id"], nt = [
|
|
154
|
-
"x",
|
|
155
|
-
"y",
|
|
156
|
-
"width",
|
|
157
|
-
"height",
|
|
158
|
-
"rx",
|
|
159
|
-
"ry"
|
|
160
|
-
], rt = ["clip-path"], it = [
|
|
161
|
-
"width",
|
|
162
|
-
"x",
|
|
163
|
-
"y",
|
|
164
|
-
"fill",
|
|
165
|
-
"height",
|
|
166
|
-
"onPointerenter",
|
|
167
|
-
"onPointerleave"
|
|
168
|
-
], at = [
|
|
169
|
-
"x1",
|
|
170
|
-
"x2",
|
|
171
|
-
"y1",
|
|
172
|
-
"y2",
|
|
173
|
-
"stroke",
|
|
174
|
-
"stroke-width"
|
|
175
|
-
], ot = [
|
|
176
|
-
"x",
|
|
177
|
-
"y",
|
|
178
|
-
"width",
|
|
179
|
-
"height",
|
|
180
|
-
"rx",
|
|
181
|
-
"ry",
|
|
182
|
-
"stroke",
|
|
183
|
-
"stroke-width"
|
|
184
|
-
], st = [
|
|
185
|
-
"x",
|
|
186
|
-
"y",
|
|
187
|
-
"fill",
|
|
188
|
-
"font-size"
|
|
189
|
-
], ct = ["aria-label", "onKeydown"], lt = {
|
|
190
|
-
key: 0,
|
|
191
|
-
class: "vue-ui-hill__stack-overflow-menu-title"
|
|
192
|
-
}, ut = [
|
|
193
|
-
"disabled",
|
|
194
|
-
"aria-label",
|
|
195
|
-
"onClick"
|
|
196
|
-
], dt = { class: "vue-ui-hill__stack-overflow-menu-label" }, ft = { class: "vue-ui-hill__stack-overflow-menu-value" }, pt = {
|
|
197
|
-
key: 6,
|
|
198
|
-
class: "vue-data-ui-watermark"
|
|
199
|
-
}, mt = {
|
|
200
|
-
key: 7,
|
|
201
|
-
class: "vue-ui-hill__loading",
|
|
202
|
-
"data-dom-to-png-ignore": ""
|
|
203
|
-
}, ht = /*#__PURE__*/ ae({
|
|
204
|
-
__name: "vue-ui-hill",
|
|
205
|
-
props: {
|
|
206
|
-
config: {
|
|
207
|
-
type: Object,
|
|
208
|
-
default() {
|
|
209
|
-
return {};
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
dataset: {
|
|
213
|
-
type: Array,
|
|
214
|
-
default() {
|
|
215
|
-
return [];
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
emits: [
|
|
220
|
-
"edit",
|
|
221
|
-
"save",
|
|
222
|
-
"cancel",
|
|
223
|
-
"copyAlt",
|
|
224
|
-
"change",
|
|
225
|
-
"dragStart",
|
|
226
|
-
"dragEnd",
|
|
227
|
-
"datapointEnter",
|
|
228
|
-
"datapointLeave",
|
|
229
|
-
"selectDatapoint"
|
|
230
|
-
],
|
|
231
|
-
setup(e, { expose: ae, emit: xe }) {
|
|
232
|
-
let ht = de(() => import("./HillActions-DqqGB33u.js")), gt = de(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), _t = de(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), vt = de(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), yt = de(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), { vue_ui_hill: bt } = p(), { isThemeValid: xt, warnInvalidTheme: St } = ee(), Ct = e, wt = E(i()), j = ge(null), Tt = _e("hillChartRef"), M = _e("svgRef"), Et = _e("overflowMenuRef"), Dt = _e("userOptionsRef"), Ot = E(0), kt = xe;
|
|
233
|
-
function At() {
|
|
234
|
-
let e = h({
|
|
235
|
-
userConfig: Ct.config,
|
|
236
|
-
defaultConfig: bt
|
|
237
|
-
}), t = {}, n = e.theme;
|
|
238
|
-
if (!n) t = e;
|
|
239
|
-
else if (!xt.value(e)) St(e), t = e;
|
|
240
|
-
else {
|
|
241
|
-
let r = h({
|
|
242
|
-
userConfig: se[n] || Ct.config,
|
|
243
|
-
defaultConfig: e
|
|
244
|
-
});
|
|
245
|
-
t = {
|
|
246
|
-
...h({
|
|
247
|
-
userConfig: Ct.config,
|
|
248
|
-
defaultConfig: r
|
|
249
|
-
}),
|
|
250
|
-
customPalette: e.customPalette.length ? e.customPalette : o[n] || Jt
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
return t;
|
|
254
|
-
}
|
|
255
|
-
let N = E(At()), P = _(() => N.value.style.chart.layout.plots), F = _(() => N.value.style.chart);
|
|
256
|
-
d({
|
|
257
|
-
config: () => N.value,
|
|
258
|
-
dataset: () => Ct.dataset,
|
|
259
|
-
component: "VueUiHill",
|
|
260
|
-
rules: [f.emptyArray, f.noHint]
|
|
261
|
-
});
|
|
262
|
-
let { transitionEnabled: jt } = ne({
|
|
263
|
-
config: () => N.value.transitions,
|
|
264
|
-
dataset: () => Ct.dataset
|
|
265
|
-
}), { userOptionsVisible: Mt, setUserOptionsVisibility: Nt, keepUserOptionState: Pt } = oe({ config: N.value });
|
|
266
|
-
function Ft() {
|
|
267
|
-
Nt(!0);
|
|
268
|
-
}
|
|
269
|
-
function It() {
|
|
270
|
-
Nt(!1), qn.value = null, $.value = null, Kn.value = null;
|
|
271
|
-
}
|
|
272
|
-
let { isPrinting: Lt, isImaging: Rt, generatePdf: zt, generateImage: Bt } = m({
|
|
273
|
-
elementId: `hill_${wt.value}`,
|
|
274
|
-
fileName: F.value.title.text || "vue-ui-hill",
|
|
275
|
-
options: N.value.userOptions.print
|
|
276
|
-
}), Vt = _(() => N.value.userOptions.useCursorPointer), Ht = E(0), Ut = E(!1);
|
|
277
|
-
function Wt(e) {
|
|
278
|
-
Ut.value = e, Ht.value += 1;
|
|
279
|
-
}
|
|
280
|
-
let Gt = E(!1);
|
|
281
|
-
function Kt() {
|
|
282
|
-
Gt.value = !Gt.value;
|
|
283
|
-
}
|
|
284
|
-
let qt = _(() => N.value.userOptions.position === "left" ? "right" : "left");
|
|
285
|
-
ve(() => Ct.config, () => {
|
|
286
|
-
j.value = null, N.value = At(), Ht.value += 1, I.value !== N.value.editing && (I.value = N.value.editing && !N.value.readonly);
|
|
287
|
-
}, { deep: !0 });
|
|
288
|
-
let Jt = _(() => {
|
|
289
|
-
let e = N.value.customPalette;
|
|
290
|
-
return Array.isArray(e) && e.length ? e : r;
|
|
291
|
-
});
|
|
292
|
-
function Yt(e) {
|
|
293
|
-
let t = Number(e);
|
|
294
|
-
return Number.isFinite(t) ? Math.min(1, Math.max(0, t)) : 0;
|
|
295
|
-
}
|
|
296
|
-
function Xt(e) {
|
|
297
|
-
if (e <= 0) return "todo";
|
|
298
|
-
if (e >= 1) return "done";
|
|
299
|
-
let t = .5, n = Math.min(t, Math.max(0, Number(N.value.interaction.peakTolerance) || 0)), r = t - n, i = t + n;
|
|
300
|
-
return e >= r && e <= i ? "top" : e < t ? "left" : "right";
|
|
301
|
-
}
|
|
302
|
-
function Zt(e, t) {
|
|
303
|
-
let n = e && typeof e == "object" ? e : {}, r = `Item ${t + 1}`, i = String(n.name ?? n.label ?? r), a = Yt(n.position ?? n.value ?? 0);
|
|
304
|
-
return {
|
|
305
|
-
...n,
|
|
306
|
-
id: String(n.id ?? `${i}-${t}`),
|
|
307
|
-
name: i,
|
|
308
|
-
label: String(n.label ?? i),
|
|
309
|
-
position: a,
|
|
310
|
-
color: n.color || Jt.value[t % Jt.value.length],
|
|
311
|
-
muted: !!n.muted,
|
|
312
|
-
disabled: !!n.disabled,
|
|
313
|
-
status: Xt(e.position),
|
|
314
|
-
labelSide: [
|
|
315
|
-
"left",
|
|
316
|
-
"right",
|
|
317
|
-
"auto"
|
|
318
|
-
].includes(n.labelSide) ? n.labelSide : "auto",
|
|
319
|
-
__index: t
|
|
320
|
-
};
|
|
321
|
-
}
|
|
322
|
-
let Qt = _(() => Array.isArray(Ct.dataset) ? Ct.dataset.map(Zt) : []);
|
|
323
|
-
function $t(e) {
|
|
324
|
-
return e.map((e) => ({ ...e }));
|
|
325
|
-
}
|
|
326
|
-
function en(e) {
|
|
327
|
-
let { __index: t, ...n } = e;
|
|
328
|
-
return Object.prototype.hasOwnProperty.call(n, "value") && (n.value = n.position), n;
|
|
329
|
-
}
|
|
330
|
-
function tn(e = L.value) {
|
|
331
|
-
return e.map(en);
|
|
332
|
-
}
|
|
333
|
-
let nn = _(() => N.value.editing && !N.value.readonly), I = E(nn.value), L = E($t(Qt.value)), R = E(null);
|
|
334
|
-
ve(Qt, (e) => {
|
|
335
|
-
I.value || (j.value = null, L.value = $t(e));
|
|
336
|
-
}, { deep: !0 });
|
|
337
|
-
let z = _(() => !N.value.readonly);
|
|
338
|
-
ve(z, (e) => {
|
|
339
|
-
e || (R.value = null, j.value = null, I.value = !1, L.value = $t(Qt.value));
|
|
340
|
-
});
|
|
341
|
-
function B(e, t) {
|
|
342
|
-
kt(e, t);
|
|
343
|
-
let n = N.value.events?.[e];
|
|
344
|
-
typeof n == "function" && n(t);
|
|
345
|
-
}
|
|
346
|
-
let V = _(() => F.value), rn = _(() => V.value.layout), H = _(() => rn.value.hill), U = _(() => rn.value.plots), W = _(() => rn.value.labels.item), G = _(() => rn.value.labels.phases), K = _(() => V.value.toolbar), q = _(() => rn.value.stackbar), J = _(() => {
|
|
347
|
-
let e = U.value.stacking?.overflow || {}, t = Math.max(0, Number(U.value.radius) || 0);
|
|
348
|
-
return {
|
|
349
|
-
show: e.show !== !1,
|
|
350
|
-
marker: {
|
|
351
|
-
radius: Math.max(4, Number(e.marker?.radius) || t),
|
|
352
|
-
fill: e.marker.fill,
|
|
353
|
-
stroke: e.marker?.stroke || U.value.stroke,
|
|
354
|
-
strokeWidth: e.marker.strokeWidth,
|
|
355
|
-
color: e.marker.labelColor,
|
|
356
|
-
fontSize: e.marker.fontSize,
|
|
357
|
-
bold: e.marker?.bold !== !1,
|
|
358
|
-
offsetY: e.marker.labelOffsetY
|
|
359
|
-
},
|
|
360
|
-
hysteresis: t * 1.5,
|
|
361
|
-
transitionDuration: jt.value ? e.transitionDuration : 0,
|
|
362
|
-
menu: {
|
|
363
|
-
width: Math.max(160, Number(e.menu?.width) || 220),
|
|
364
|
-
maxHeight: Math.max(96, Number(e.menu?.maxHeight) || 220),
|
|
365
|
-
backgroundColor: e.menu?.backgroundColor || V.value.backgroundColor,
|
|
366
|
-
color: e.menu?.color || V.value.color,
|
|
367
|
-
borderColor: e.menu?.borderColor || U.value.stroke,
|
|
368
|
-
borderRadius: Math.max(0, Number(e.menu?.borderRadius) || 6)
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
|
-
});
|
|
372
|
-
function an(e, t, n = 1) {
|
|
373
|
-
let r = Number(e);
|
|
374
|
-
return Number.isFinite(r) ? Math.min(n, Math.max(0, r)) : t;
|
|
375
|
-
}
|
|
376
|
-
let Y = _(() => {
|
|
377
|
-
let e = H.value.geometry || {}, t = Math.max(0, Number(V.value.width) || 0), n = Math.max(0, Number(V.value.height) || 0), r = an(e.horizontalPaddingRatio, .02, .49), i = an(e.topPaddingRatio, .12, .49), a = an(e.bottomPaddingRatio, .2, .49), o = an(e.curvature, .65), s = t * r, c = t / 2, l = t * (1 - r), u = n * i, d = n * (1 - a), f = c - s, p = l - c, m = s + f * o, h = c + p * (1 - o);
|
|
378
|
-
return {
|
|
379
|
-
startX: s,
|
|
380
|
-
centerX: c,
|
|
381
|
-
endX: l,
|
|
382
|
-
baseY: d,
|
|
383
|
-
peakY: u,
|
|
384
|
-
width: f + p,
|
|
385
|
-
left: [
|
|
386
|
-
{
|
|
387
|
-
x: s,
|
|
388
|
-
y: d
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
x: m,
|
|
392
|
-
y: d
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
x: m,
|
|
396
|
-
y: u
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
x: c,
|
|
400
|
-
y: u
|
|
401
|
-
}
|
|
402
|
-
],
|
|
403
|
-
right: [
|
|
404
|
-
{
|
|
405
|
-
x: c,
|
|
406
|
-
y: u
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
x: h,
|
|
410
|
-
y: u
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
x: h,
|
|
414
|
-
y: d
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
x: l,
|
|
418
|
-
y: d
|
|
419
|
-
}
|
|
420
|
-
]
|
|
421
|
-
};
|
|
422
|
-
}), on = _(() => {
|
|
423
|
-
let { left: e, right: t } = Y.value;
|
|
424
|
-
return [
|
|
425
|
-
`M${e[0].x} ${e[0].y}`,
|
|
426
|
-
`C${e[1].x} ${e[1].y} ${e[2].x} ${e[2].y} ${e[3].x} ${e[3].y}`,
|
|
427
|
-
`C${t[1].x} ${t[1].y} ${t[2].x} ${t[2].y} ${t[3].x} ${t[3].y}`
|
|
428
|
-
].join(" ");
|
|
429
|
-
});
|
|
430
|
-
function sn(e, t, n, r, i) {
|
|
431
|
-
let a = 1 - i;
|
|
432
|
-
return a ** 3 * e + 3 * a ** 2 * i * t + 3 * a * i ** 2 * n + i ** 3 * r;
|
|
433
|
-
}
|
|
434
|
-
function cn(e, t, n, r, i) {
|
|
435
|
-
let a = 1 - i;
|
|
436
|
-
return 3 * a ** 2 * (t - e) + 6 * a * i * (n - t) + 3 * i ** 2 * (r - n);
|
|
437
|
-
}
|
|
438
|
-
function ln(e) {
|
|
439
|
-
let t = Yt(e), { startX: n, centerX: r, endX: i, left: a, right: o } = Y.value, s = n + (t - 0) / 1 * (i - n), c = s <= r ? a : o, l = 0, u = 1;
|
|
440
|
-
for (let e = 0; e < 28; e += 1) {
|
|
441
|
-
let e = (l + u) / 2;
|
|
442
|
-
sn(c[0].x, c[1].x, c[2].x, c[3].x, e) < s ? l = e : u = e;
|
|
443
|
-
}
|
|
444
|
-
let d = (l + u) / 2, f = sn(c[0].y, c[1].y, c[2].y, c[3].y, d), p = cn(c[0].x, c[1].x, c[2].x, c[3].x, d), m = cn(c[0].y, c[1].y, c[2].y, c[3].y, d), h = Math.hypot(p, m) || 1;
|
|
445
|
-
return {
|
|
446
|
-
x: s,
|
|
447
|
-
y: f,
|
|
448
|
-
normalX: m / h,
|
|
449
|
-
normalY: -p / h
|
|
450
|
-
};
|
|
451
|
-
}
|
|
452
|
-
function un(e) {
|
|
453
|
-
let t = Number(U.value.stacking.overlapThresholdRatio);
|
|
454
|
-
return e * (2 - (Number.isFinite(t) ? Math.min(2, Math.max(0, t)) : .5));
|
|
455
|
-
}
|
|
456
|
-
function dn(e, t) {
|
|
457
|
-
let n = /* @__PURE__ */ new Map(), r = U.value.stacking;
|
|
458
|
-
if (e.forEach((e) => {
|
|
459
|
-
n.set(e.id, {
|
|
460
|
-
position: e.position,
|
|
461
|
-
index: 0,
|
|
462
|
-
size: 1,
|
|
463
|
-
stackId: `stack:${e.id}`
|
|
464
|
-
});
|
|
465
|
-
}), !r.show || e.length < 2 || t <= 0) return n;
|
|
466
|
-
let i = un(t), a = e.map((e, t) => ({
|
|
467
|
-
datapoint: e,
|
|
468
|
-
index: t,
|
|
469
|
-
point: ln(e.position)
|
|
470
|
-
})).sort((e, t) => e.point.x - t.point.x || e.datapoint.position - t.datapoint.position || e.index - t.index), o = 0;
|
|
471
|
-
for (; o < a.length;) {
|
|
472
|
-
let e = [a[o]], t = o + 1;
|
|
473
|
-
for (; t < a.length;) {
|
|
474
|
-
let n = e[e.length - 1], r = a[t];
|
|
475
|
-
if (Math.hypot(r.point.x - n.point.x, r.point.y - n.point.y) >= i) break;
|
|
476
|
-
e.push(r), t += 1;
|
|
477
|
-
}
|
|
478
|
-
if (e.length > 1) {
|
|
479
|
-
let t = e[0].datapoint.position, r = `stack:${e.map(({ datapoint: e }) => e.id).sort().join("|")}`;
|
|
480
|
-
e.forEach(({ datapoint: i }, a) => {
|
|
481
|
-
n.set(i.id, {
|
|
482
|
-
position: t,
|
|
483
|
-
index: a,
|
|
484
|
-
size: e.length,
|
|
485
|
-
stackId: r
|
|
486
|
-
});
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
o = t;
|
|
490
|
-
}
|
|
491
|
-
return n;
|
|
492
|
-
}
|
|
493
|
-
function fn(e) {
|
|
494
|
-
let t = e + Math.max(0, Number(U.value.strokeWidth) || 0) / 2, n = U.value.stacking.gap ?? e / 2;
|
|
495
|
-
return t * 2 + n;
|
|
496
|
-
}
|
|
497
|
-
let pn = E(null), X = E(null), Z = E(null), mn = E(null), hn = E(null), gn = /* @__PURE__ */ new Set(), _n = null, vn = null, Q = null;
|
|
498
|
-
function yn(e) {
|
|
499
|
-
let t = Math.max(0, Number(U.value.strokeWidth) || 0), n = U.value.shadow.show ? Math.max(0, Number(U.value.shadow.blur) || 0) + Math.max(0, -(Number(U.value.shadow.offsetY) || 0)) : 0;
|
|
500
|
-
return e + t / 2 + n;
|
|
501
|
-
}
|
|
502
|
-
function bn(e, t, n) {
|
|
503
|
-
if (t <= 1) return e - yn(n);
|
|
504
|
-
let r = fn(n);
|
|
505
|
-
return e - (t - 1) * r - yn(n);
|
|
506
|
-
}
|
|
507
|
-
function xn(e, t, n, r) {
|
|
508
|
-
if (n <= 1) return gn.delete(e), !1;
|
|
509
|
-
let i = bn(t, n, r), a = gn.has(e), o = J.value.hysteresis, s = a ? i < o : i < 0;
|
|
510
|
-
return s ? gn.add(e) : gn.delete(e), s;
|
|
511
|
-
}
|
|
512
|
-
let Sn = _(() => {
|
|
513
|
-
let e = Math.max(0, Number(U.value.radius) || 0), t = fn(e), n = dn(L.value, e), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = [], o = /* @__PURE__ */ new Set(), s = R.value?.id ?? null;
|
|
514
|
-
J.value.show || gn.clear(), L.value.forEach((e) => {
|
|
515
|
-
let t = n.get(e.id) || {
|
|
516
|
-
position: e.position,
|
|
517
|
-
index: 0,
|
|
518
|
-
size: 1,
|
|
519
|
-
stackId: `stack:${e.id}`
|
|
520
|
-
};
|
|
521
|
-
r.has(t.stackId) || r.set(t.stackId, []), r.get(t.stackId).push({
|
|
522
|
-
datapoint: e,
|
|
523
|
-
stack: t
|
|
524
|
-
});
|
|
525
|
-
});
|
|
526
|
-
let c = new Set(r.keys());
|
|
527
|
-
return gn.forEach((e) => {
|
|
528
|
-
c.has(e) || gn.delete(e);
|
|
529
|
-
}), r.forEach((n, r) => {
|
|
530
|
-
let c = [...n].sort((e, t) => e.stack.index - t.stack.index || e.datapoint.__index - t.datapoint.__index), l = c.reduce((e, t) => e + (Number(t.datapoint.position) || 0), 0) / c.length, u = ln(l);
|
|
531
|
-
if (!(J.value.show && xn(r, u.y, c.length, e))) {
|
|
532
|
-
c.forEach((e) => {
|
|
533
|
-
i.set(e.datapoint.id, {
|
|
534
|
-
hidden: !1,
|
|
535
|
-
displayIndex: e.stack.index,
|
|
536
|
-
stackId: r,
|
|
537
|
-
stackSize: c.length,
|
|
538
|
-
promotedFromOverflow: !1,
|
|
539
|
-
renderPosition: e.stack.position
|
|
540
|
-
});
|
|
541
|
-
});
|
|
542
|
-
return;
|
|
543
|
-
}
|
|
544
|
-
c.forEach(({ datapoint: e }) => {
|
|
545
|
-
o.add(e.id);
|
|
546
|
-
});
|
|
547
|
-
let d = s ? c.find(({ datapoint: e }) => e.id === s) : null, f = c.find(({ datapoint: e }) => e.id === pn.value), p = d || f || null, m = p ? c.filter(({ datapoint: e }) => e.id !== p.datapoint.id) : c, h = X.value, ee = !(!f || h?.datapointId !== f.datapoint.id || h.moved), te = m.length ? ee ? l : m.reduce((e, t) => e + (Number(t.datapoint.position) || 0), 0) / m.length : l, ne = ln(te);
|
|
548
|
-
c.forEach((e) => {
|
|
549
|
-
let t = p?.datapoint.id === e.datapoint.id, n = t && f?.datapoint.id === e.datapoint.id;
|
|
550
|
-
i.set(e.datapoint.id, {
|
|
551
|
-
hidden: !t,
|
|
552
|
-
displayIndex: +!!t,
|
|
553
|
-
stackId: r,
|
|
554
|
-
stackSize: c.length,
|
|
555
|
-
promotedFromOverflow: n,
|
|
556
|
-
renderPosition: te
|
|
557
|
-
});
|
|
558
|
-
}), m.length && a.push({
|
|
559
|
-
stackId: r,
|
|
560
|
-
anchorPosition: te,
|
|
561
|
-
x: ne.x,
|
|
562
|
-
y: ne.y,
|
|
563
|
-
hiddenCount: m.length,
|
|
564
|
-
hiddenDatapoints: m.map(({ datapoint: e }) => e),
|
|
565
|
-
memberIds: c.map(({ datapoint: e }) => e.id),
|
|
566
|
-
collapseDatapoints: m.map(({ datapoint: e, stack: n }) => {
|
|
567
|
-
let r = ln(n.position);
|
|
568
|
-
return {
|
|
569
|
-
id: e.id,
|
|
570
|
-
color: e.color,
|
|
571
|
-
relativeX: r.x - ne.x,
|
|
572
|
-
relativeY: r.y - n.index * t - ne.y
|
|
573
|
-
};
|
|
574
|
-
})
|
|
575
|
-
});
|
|
576
|
-
}), {
|
|
577
|
-
layoutMap: n,
|
|
578
|
-
displayMap: i,
|
|
579
|
-
markers: a,
|
|
580
|
-
overflowMemberIds: o
|
|
581
|
-
};
|
|
582
|
-
});
|
|
583
|
-
function Cn(e) {
|
|
584
|
-
let t = Tn.value.filter((e) => !e.isStackOverflowHidden), n = t.find((t) => t.id === e), r = new Map(t.filter((t) => t.id !== e).map((e) => [e.id, {
|
|
585
|
-
x: e.x,
|
|
586
|
-
y: e.y
|
|
587
|
-
}]));
|
|
588
|
-
if (!n || !U.value.stacking.show) return r;
|
|
589
|
-
let i = t.filter((e) => Math.abs(e.x - n.x) < .001).sort((e, t) => t.y - e.y || e.datasetIndex - t.datasetIndex);
|
|
590
|
-
if (i.length < 2) return r;
|
|
591
|
-
let a = fn(Math.max(0, Number(U.value.radius) || 0)), o = Math.max(...i.map((e) => e.y));
|
|
592
|
-
return i.filter((t) => t.id !== e).forEach((e, t) => {
|
|
593
|
-
r.set(e.id, {
|
|
594
|
-
x: n.x,
|
|
595
|
-
y: o - t * a
|
|
596
|
-
});
|
|
597
|
-
}), r;
|
|
598
|
-
}
|
|
599
|
-
function wn() {
|
|
600
|
-
return new Map(Tn.value.filter((e) => !e.isStackOverflowHidden).map((e) => [e.id, {
|
|
601
|
-
x: e.x,
|
|
602
|
-
y: e.y
|
|
603
|
-
}]));
|
|
604
|
-
}
|
|
605
|
-
let Tn = _(() => {
|
|
606
|
-
let e = Math.max(0, Number(U.value.radius) || 0), { layoutMap: t, displayMap: n, markers: r } = Sn.value, i = fn(e), a = R.value, o = a?.stationaryLayout, s = o instanceof Map ? o : j.value instanceof Map ? j.value : null, c = null;
|
|
607
|
-
if (a && o instanceof Map && U.value.stacking.show && e > 0) {
|
|
608
|
-
let t = L.value.find((e) => e.id === a.id);
|
|
609
|
-
if (t) {
|
|
610
|
-
let n = r.find((e) => e.memberIds.includes(t.id));
|
|
611
|
-
if (n) c = {
|
|
612
|
-
x: n.x,
|
|
613
|
-
y: n.y - i
|
|
614
|
-
};
|
|
615
|
-
else {
|
|
616
|
-
let n = ln(t.position), r = un(e), s = L.value.filter((e) => e.id !== a.id && o.has(e.id)).map((e) => {
|
|
617
|
-
let t = ln(e.position);
|
|
618
|
-
return {
|
|
619
|
-
datapoint: e,
|
|
620
|
-
distance: Math.hypot(t.x - n.x, t.y - n.y)
|
|
621
|
-
};
|
|
622
|
-
}).filter(({ distance: e }) => e < r).sort((e, t) => e.distance - t.distance)[0];
|
|
623
|
-
if (s) {
|
|
624
|
-
let e = o.get(s.datapoint.id), t = [...o.values()].filter((t) => Math.abs(t.x - e.x) < .001), n = Math.min(e.y, ...t.map((e) => e.y));
|
|
625
|
-
c = {
|
|
626
|
-
x: e.x,
|
|
627
|
-
y: n - i
|
|
628
|
-
};
|
|
629
|
-
} else c = n;
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
return L.value.map((e, r) => {
|
|
634
|
-
let o = t.get(e.id) || {
|
|
635
|
-
position: e.position,
|
|
636
|
-
index: 0,
|
|
637
|
-
size: 1,
|
|
638
|
-
stackId: `stack:${e.id}`
|
|
639
|
-
}, l = n.get(e.id) || {
|
|
640
|
-
hidden: !1,
|
|
641
|
-
displayIndex: o.index,
|
|
642
|
-
stackId: o.stackId,
|
|
643
|
-
stackSize: o.size,
|
|
644
|
-
renderPosition: o.position
|
|
645
|
-
}, d = ln(l.renderPosition ?? o.position), f = e.id !== a?.id && !l.promotedFromOverflow && s instanceof Map ? s.get(e.id) : null, p = e.id === a?.id && c ? c : f || {
|
|
646
|
-
x: d.x,
|
|
647
|
-
y: d.y - l.displayIndex * i
|
|
648
|
-
}, m = e.labelSide === "auto" ? null : e.labelSide, h = u(W.value.autoSideThreshold, .5, 1), ee = m || (e.position > h ? "left" : "right"), te = Math.abs(Number(W.value.offsetX) || 0) + U.value.radius + W.value.fontSize / 2;
|
|
649
|
-
return {
|
|
650
|
-
...e,
|
|
651
|
-
datasetIndex: r,
|
|
652
|
-
x: p.x,
|
|
653
|
-
y: p.y,
|
|
654
|
-
stackId: l.stackId,
|
|
655
|
-
stackSize: l.stackSize,
|
|
656
|
-
stackDisplayIndex: l.displayIndex,
|
|
657
|
-
isStackOverflowHidden: l.hidden,
|
|
658
|
-
isPromotedFromStackOverflow: l.promotedFromOverflow,
|
|
659
|
-
labelSide: ee,
|
|
660
|
-
labelX: ee === "left" ? -te : te,
|
|
661
|
-
textAnchor: ee === "left" ? "end" : "start"
|
|
662
|
-
};
|
|
663
|
-
});
|
|
664
|
-
});
|
|
665
|
-
function En(e) {
|
|
666
|
-
return L.value.find((t) => t.id === e);
|
|
667
|
-
}
|
|
668
|
-
function Dn(e, t) {
|
|
669
|
-
let n = Yt(t), r;
|
|
670
|
-
L.value = L.value.map((t) => t.id === e ? (r = {
|
|
671
|
-
...t,
|
|
672
|
-
position: n
|
|
673
|
-
}, r) : t), r && (pr(r.id, r.position), B("change", {
|
|
674
|
-
datapoint: en(r),
|
|
675
|
-
dataset: tn()
|
|
676
|
-
}));
|
|
677
|
-
}
|
|
678
|
-
function On(e) {
|
|
679
|
-
let t = M.value;
|
|
680
|
-
if (!t) return null;
|
|
681
|
-
let n = t.getScreenCTM();
|
|
682
|
-
if (!n) return null;
|
|
683
|
-
let r = t.createSVGPoint();
|
|
684
|
-
r.x = e, r.y = 0;
|
|
685
|
-
let i = r.matrixTransform(n.inverse()), { startX: a, endX: o } = Y.value;
|
|
686
|
-
return Yt(0 + (i.x - a) / (o - a) * 1);
|
|
687
|
-
}
|
|
688
|
-
function kn() {
|
|
689
|
-
z.value && (Z.value = null, pn.value = null, X.value = null, hn.value = null, or(), j.value = null, L.value = $t(Qt.value), I.value = !0, B("edit", tn()));
|
|
690
|
-
}
|
|
691
|
-
function An() {
|
|
692
|
-
let e = tn();
|
|
693
|
-
Z.value = null, pn.value = null, X.value = null, hn.value = null, or(), R.value = null, I.value = !1, B("save", e);
|
|
694
|
-
}
|
|
695
|
-
function jn() {
|
|
696
|
-
Z.value = null, pn.value = null, X.value = null, hn.value = null, or(), R.value = null, j.value = null, L.value = $t(Qt.value), I.value = !1, B("cancel", tn());
|
|
697
|
-
}
|
|
698
|
-
function Mn(e, t) {
|
|
699
|
-
if (!z.value || !I.value || t.disabled) return;
|
|
700
|
-
Z.value = null;
|
|
701
|
-
let n = e.currentTarget.closest(".vue-ui-hill__datapoint");
|
|
702
|
-
n && typeof n.focus == "function" && (n.focus(), $.value = t.id), e.preventDefault();
|
|
703
|
-
let r = Cn(t.id), i = X.value?.datapointId === t.id && !X.value?.moved;
|
|
704
|
-
if (R.value = {
|
|
705
|
-
id: t.id,
|
|
706
|
-
pointerId: e.pointerId,
|
|
707
|
-
stationaryLayout: r,
|
|
708
|
-
startClientX: e.clientX,
|
|
709
|
-
hasMoved: !1,
|
|
710
|
-
deferPositionUpdate: i
|
|
711
|
-
}, M.value?.setPointerCapture(e.pointerId), !i) {
|
|
712
|
-
let n = On(e.clientX);
|
|
713
|
-
n !== null && Dn(t.id, n);
|
|
714
|
-
}
|
|
715
|
-
let a = En(t.id);
|
|
716
|
-
a && B("dragStart", en(a));
|
|
717
|
-
}
|
|
718
|
-
function Nn(e) {
|
|
719
|
-
if (!R.value || R.value.pointerId !== e.pointerId) return;
|
|
720
|
-
e.preventDefault();
|
|
721
|
-
let t = Math.abs(e.clientX - R.value.startClientX);
|
|
722
|
-
if (R.value.deferPositionUpdate && !R.value.hasMoved && t < 3) return;
|
|
723
|
-
R.value.hasMoved || (R.value = {
|
|
724
|
-
...R.value,
|
|
725
|
-
hasMoved: !0
|
|
726
|
-
});
|
|
727
|
-
let n = On(e.clientX);
|
|
728
|
-
n !== null && Dn(R.value.id, n);
|
|
729
|
-
}
|
|
730
|
-
function Pn(e) {
|
|
731
|
-
let t = R.value;
|
|
732
|
-
if (!t || t.pointerId !== e.pointerId) return;
|
|
733
|
-
M.value?.hasPointerCapture(e.pointerId) && M.value.releasePointerCapture(e.pointerId);
|
|
734
|
-
let n = e.type === "pointerup" && !t.hasMoved, r = En(t.id);
|
|
735
|
-
j.value = wn(), R.value = null, r && (n && B("selectDatapoint", Ln(r)), B("dragEnd", en(r)));
|
|
736
|
-
}
|
|
737
|
-
function Fn(e, t) {
|
|
738
|
-
if (!z.value || !I.value || t.disabled) return;
|
|
739
|
-
let n = Math.max(0, Number(N.value.interaction.keyboardStep) || 0), r = null;
|
|
740
|
-
switch (e.key) {
|
|
741
|
-
case "ArrowLeft":
|
|
742
|
-
case "ArrowDown":
|
|
743
|
-
r = t.position - n;
|
|
744
|
-
break;
|
|
745
|
-
case "ArrowRight":
|
|
746
|
-
case "ArrowUp":
|
|
747
|
-
r = t.position + n;
|
|
748
|
-
break;
|
|
749
|
-
case "Home":
|
|
750
|
-
r = 0;
|
|
751
|
-
break;
|
|
752
|
-
case "End":
|
|
753
|
-
r = 1;
|
|
754
|
-
break;
|
|
755
|
-
default: return;
|
|
756
|
-
}
|
|
757
|
-
e.preventDefault();
|
|
758
|
-
let i = e.currentTarget;
|
|
759
|
-
$.value = t.id, R.value = {
|
|
760
|
-
id: t.id,
|
|
761
|
-
pointerId: null,
|
|
762
|
-
stationaryLayout: Cn(t.id)
|
|
763
|
-
}, Dn(t.id, r), j.value = wn(), R.value = null, fe(() => {
|
|
764
|
-
i?.isConnected && i.focus({ preventScroll: !0 });
|
|
765
|
-
});
|
|
766
|
-
}
|
|
767
|
-
function In(e) {
|
|
768
|
-
let t = .5, n = Math.max(0, Number(N.value.interaction.peakTolerance) || 0);
|
|
769
|
-
return Math.abs(e - t) <= n ? N.value.a11y.translations.topOfHill : e < t ? G.value.left.text : G.value.right.text;
|
|
770
|
-
}
|
|
771
|
-
function Ln(e) {
|
|
772
|
-
return {
|
|
773
|
-
datapoint: en(e),
|
|
774
|
-
index: e.__index
|
|
775
|
-
};
|
|
776
|
-
}
|
|
777
|
-
function Rn(e) {
|
|
778
|
-
$.value = null, qn.value = e.id, ![0, 1].includes(e.position) && $.value !== e.id && Xn(e), B("datapointEnter", Ln(e));
|
|
779
|
-
}
|
|
780
|
-
function zn(e) {
|
|
781
|
-
qn.value === e.id && (qn.value = null), Kn.value === e.id && $.value !== e.id && R.value?.id !== e.id && (Kn.value = null), B("datapointLeave", Ln(e));
|
|
782
|
-
}
|
|
783
|
-
function Bn(e) {
|
|
784
|
-
I.value && z.value || B("selectDatapoint", Ln(e));
|
|
785
|
-
}
|
|
786
|
-
let Vn = _(() => {
|
|
787
|
-
let e = V.value;
|
|
788
|
-
return {
|
|
789
|
-
width: "100%",
|
|
790
|
-
maxWidth: "100%",
|
|
791
|
-
color: e.color,
|
|
792
|
-
backgroundColor: e.backgroundColor,
|
|
793
|
-
fontFamily: N.value.style.fontFamily,
|
|
794
|
-
"--vue-ui-hill-button-hover-border": K.value.buttons.hoverBorderColor,
|
|
795
|
-
"--vue-ui-hill-button-active-offset": `${K.value.buttons.activeTranslateY}px`
|
|
796
|
-
};
|
|
797
|
-
}), Hn = _(() => ({
|
|
798
|
-
color: K.value.status.color,
|
|
799
|
-
fontSize: `${K.value.status.fontSize}px`,
|
|
800
|
-
fontWeight: K.value.status.bold ? "bold" : "normal",
|
|
801
|
-
lineHeight: K.value.status.lineHeight
|
|
802
|
-
}));
|
|
803
|
-
_(() => ({
|
|
804
|
-
color: V.value.title.color,
|
|
805
|
-
fontSize: `${V.value.title.fontSize}px`,
|
|
806
|
-
fontWeight: V.value.title.bold ? "bold" : "normal",
|
|
807
|
-
textAlign: V.value.title.textAlign
|
|
808
|
-
})), _(() => ({
|
|
809
|
-
color: V.value.title.subtitle.color,
|
|
810
|
-
fontSize: `${V.value.title.subtitle.fontSize}px`,
|
|
811
|
-
fontWeight: V.value.title.subtitle.bold ? "bold" : "normal"
|
|
812
|
-
}));
|
|
813
|
-
let Un = _(() => {
|
|
814
|
-
let e = Math.max(0, Number(V.value.height) || 0);
|
|
815
|
-
return Math.min(e, Y.value.baseY + e) + G.value.offsetY;
|
|
816
|
-
});
|
|
817
|
-
function Wn(e) {
|
|
818
|
-
return G.value[e].text;
|
|
819
|
-
}
|
|
820
|
-
function Gn(e) {
|
|
821
|
-
return e.position === 0 || e.position === 1;
|
|
822
|
-
}
|
|
823
|
-
let Kn = E(null), qn = E(null), $ = E(null);
|
|
824
|
-
function Jn(e) {
|
|
825
|
-
$.value = e.id;
|
|
826
|
-
}
|
|
827
|
-
function Yn(e) {
|
|
828
|
-
$.value === e.id && ($.value = null), Kn.value === e.id && qn.value !== e.id && R.value?.id !== e.id && (Kn.value = null);
|
|
829
|
-
}
|
|
830
|
-
function Xn(e) {
|
|
831
|
-
e?.id && (Kn.value = e.id);
|
|
832
|
-
}
|
|
833
|
-
let Zn = _(() => {
|
|
834
|
-
let e = [], t = [], n = null;
|
|
835
|
-
return Tn.value.forEach((r) => {
|
|
836
|
-
if (!r.isStackOverflowHidden) {
|
|
837
|
-
if (r.id === Kn.value) {
|
|
838
|
-
n = r;
|
|
839
|
-
return;
|
|
840
|
-
}
|
|
841
|
-
Gn(r) ? e.push(r) : t.push(r);
|
|
842
|
-
}
|
|
843
|
-
}), [
|
|
844
|
-
...e,
|
|
845
|
-
...t,
|
|
846
|
-
...n ? [n] : []
|
|
847
|
-
];
|
|
848
|
-
}), Qn = _(() => Sn.value.markers), $n = _(() => Qn.value.find((e) => e.stackId === Z.value) || null), er = _(() => {
|
|
849
|
-
let e = Math.max(160, Number(J.value.menu.width) || 220), t = Math.max(80, Number(J.value.menu.maxHeight) || 220);
|
|
850
|
-
return {
|
|
851
|
-
visibility: mn.value ? "visible" : "hidden",
|
|
852
|
-
width: "max-content",
|
|
853
|
-
minWidth: `${e}px`,
|
|
854
|
-
maxWidth: "calc(100% - 16px)",
|
|
855
|
-
maxHeight: `${t}px`,
|
|
856
|
-
backgroundColor: J.value.menu.backgroundColor,
|
|
857
|
-
color: J.value.menu.color,
|
|
858
|
-
borderColor: J.value.menu.borderColor,
|
|
859
|
-
borderRadius: `${J.value.menu.borderRadius}px`
|
|
860
|
-
};
|
|
861
|
-
});
|
|
862
|
-
function tr(e, t) {
|
|
863
|
-
let n = M.value, r = Tt.value;
|
|
864
|
-
if (!n || !r) return null;
|
|
865
|
-
let i = n.getScreenCTM();
|
|
866
|
-
if (!i) return null;
|
|
867
|
-
let a = n.createSVGPoint();
|
|
868
|
-
a.x = e, a.y = t;
|
|
869
|
-
let o = a.matrixTransform(i), s = r.getBoundingClientRect();
|
|
870
|
-
return {
|
|
871
|
-
x: o.x - s.left,
|
|
872
|
-
y: o.y - s.top
|
|
873
|
-
};
|
|
874
|
-
}
|
|
875
|
-
function nr() {
|
|
876
|
-
let e = $n.value, t = Et.value, n = Tt.value;
|
|
877
|
-
if (!e || !t || !n) {
|
|
878
|
-
mn.value = null;
|
|
879
|
-
return;
|
|
880
|
-
}
|
|
881
|
-
let r = tr(e.x, e.y), i = tr(e.x, e.y + J.value.marker.radius);
|
|
882
|
-
if (!r || !i) {
|
|
883
|
-
mn.value = null;
|
|
884
|
-
return;
|
|
885
|
-
}
|
|
886
|
-
let a = n.getBoundingClientRect(), o = t.offsetWidth, s = t.offsetHeight, c = Math.abs(i.y - r.y), l = Math.max(0, a.width - 16), u = Math.min(o, l), d = r.x;
|
|
887
|
-
if (u >= l) d = a.width / 2;
|
|
888
|
-
else {
|
|
889
|
-
let e = u / 2;
|
|
890
|
-
d = Math.min(a.width - 8 - e, Math.max(8 + e, r.x));
|
|
891
|
-
}
|
|
892
|
-
let f = r.y + c + 8, p = r.y - c - 8 - s, m = f + s <= a.height - 8, h = p >= 8, ee = f;
|
|
893
|
-
!m && h ? ee = p : m || (ee = Math.min(Math.max(8, f), Math.max(8, a.height - s - 8))), mn.value = {
|
|
894
|
-
left: `${d}px`,
|
|
895
|
-
top: `${ee}px`,
|
|
896
|
-
transform: "translateX(-50%)",
|
|
897
|
-
visibility: "visible"
|
|
898
|
-
};
|
|
899
|
-
}
|
|
900
|
-
function rr() {
|
|
901
|
-
typeof window < "u" && (Q !== null && window.cancelAnimationFrame(Q), Q = window.requestAnimationFrame(() => {
|
|
902
|
-
Q = null, nr();
|
|
903
|
-
}));
|
|
904
|
-
}
|
|
905
|
-
ve(Qn, (e) => {
|
|
906
|
-
Z.value && !e.some((e) => e.stackId === Z.value) && ar();
|
|
907
|
-
}), ve(() => {
|
|
908
|
-
let e = $n.value;
|
|
909
|
-
return e ? [
|
|
910
|
-
e.stackId,
|
|
911
|
-
e.x,
|
|
912
|
-
e.y,
|
|
913
|
-
e.hiddenDatapoints.length,
|
|
914
|
-
e.hiddenDatapoints.map((e) => `${e.id}:${e.label}:${e.position}`).join("|"),
|
|
915
|
-
J.value.marker.radius,
|
|
916
|
-
J.value.menu.width,
|
|
917
|
-
J.value.menu.maxHeight,
|
|
918
|
-
J.value.menu.backgroundColor,
|
|
919
|
-
J.value.menu.color,
|
|
920
|
-
J.value.menu.borderColor,
|
|
921
|
-
J.value.menu.borderRadius,
|
|
922
|
-
Ut.value
|
|
923
|
-
] : null;
|
|
924
|
-
}, (e) => {
|
|
925
|
-
if (!e) {
|
|
926
|
-
mn.value = null;
|
|
927
|
-
return;
|
|
928
|
-
}
|
|
929
|
-
fe(rr);
|
|
930
|
-
}, { flush: "post" }), ve(Et, (e, t) => {
|
|
931
|
-
t && vn && vn.unobserve(t), e && vn && (vn.observe(e), fe(rr));
|
|
932
|
-
}, { flush: "post" }), ve(() => {
|
|
933
|
-
let e = pn.value;
|
|
934
|
-
return !e || Sn.value.overflowMemberIds.has(e);
|
|
935
|
-
}, (e) => {
|
|
936
|
-
e || (pn.value = null, X.value = null);
|
|
937
|
-
});
|
|
938
|
-
function ir(e) {
|
|
939
|
-
if (e) {
|
|
940
|
-
if (Z.value === e.stackId) {
|
|
941
|
-
rr();
|
|
942
|
-
return;
|
|
943
|
-
}
|
|
944
|
-
mn.value = null, Z.value = e.stackId, fe(rr);
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
function ar() {
|
|
948
|
-
Z.value = null, mn.value = null, typeof window < "u" && Q !== null && (window.cancelAnimationFrame(Q), Q = null);
|
|
949
|
-
}
|
|
950
|
-
function or() {
|
|
951
|
-
_n !== null && (clearTimeout(_n), _n = null);
|
|
952
|
-
}
|
|
953
|
-
function sr() {
|
|
954
|
-
let e = X.value;
|
|
955
|
-
e && !e.moved && (or(), hn.value = e.stackId, pn.value = null, X.value = null, ar(), _n = setTimeout(() => {
|
|
956
|
-
hn.value = null, _n = null;
|
|
957
|
-
}, J.value.transitionDuration + 80));
|
|
958
|
-
}
|
|
959
|
-
function cr(e) {
|
|
960
|
-
if (!(e instanceof Element)) return {
|
|
961
|
-
isMenu: !1,
|
|
962
|
-
isMarker: !1,
|
|
963
|
-
isSelectedDatapoint: !1
|
|
964
|
-
};
|
|
965
|
-
let t = X.value, n = e.closest("[data-datapoint-id]");
|
|
966
|
-
return {
|
|
967
|
-
isMenu: !!e.closest("[data-stack-overflow-menu]"),
|
|
968
|
-
isMarker: !!e.closest("[data-stack-overflow-marker]"),
|
|
969
|
-
isSelectedDatapoint: !!(t && n?.getAttribute("data-datapoint-id") === t.datapointId)
|
|
970
|
-
};
|
|
971
|
-
}
|
|
972
|
-
function lr(e) {
|
|
973
|
-
let t = cr(e.target);
|
|
974
|
-
Z.value && !t.isMenu && !t.isMarker && ar(), X.value && !X.value.moved && !t.isMenu && !t.isMarker && !t.isSelectedDatapoint && sr();
|
|
975
|
-
}
|
|
976
|
-
function ur(e) {
|
|
977
|
-
let t = Tn.value.find((t) => t.id === e);
|
|
978
|
-
if (!t || t.isStackOverflowHidden) return;
|
|
979
|
-
let n = M.value?.querySelector(`[data-datapoint-index="${t.__index}"]`);
|
|
980
|
-
n && typeof n.focus == "function" && n.focus({ preventScroll: !0 });
|
|
981
|
-
}
|
|
982
|
-
function dr(e) {
|
|
983
|
-
if (!e || e.disabled || N.value.readonly) return;
|
|
984
|
-
let t = $n.value?.stackId;
|
|
985
|
-
t && (or(), hn.value = null, pn.value = e.id, X.value = {
|
|
986
|
-
datapointId: e.id,
|
|
987
|
-
stackId: t,
|
|
988
|
-
initialPosition: e.position,
|
|
989
|
-
moved: !1
|
|
990
|
-
}, ar(), fe(() => {
|
|
991
|
-
ur(e.id);
|
|
992
|
-
let t = Tn.value.find((t) => t.id === e.id);
|
|
993
|
-
t && B("selectDatapoint", Ln(t));
|
|
994
|
-
}));
|
|
995
|
-
}
|
|
996
|
-
function fr() {
|
|
997
|
-
let e = Math.max(1, Number(Y.value.width) || 1);
|
|
998
|
-
return Math.max(1e-6, 1 / e * 2);
|
|
999
|
-
}
|
|
1000
|
-
function pr(e, t) {
|
|
1001
|
-
let n = X.value;
|
|
1002
|
-
n && n.datapointId === e && !n.moved && Math.abs(t - n.initialPosition) >= fr() && (X.value = {
|
|
1003
|
-
...n,
|
|
1004
|
-
moved: !0
|
|
1005
|
-
});
|
|
1006
|
-
}
|
|
1007
|
-
me(() => {
|
|
1008
|
-
document.addEventListener("pointerdown", lr), window.addEventListener("resize", rr, { passive: !0 }), typeof ResizeObserver < "u" && (vn = new ResizeObserver(() => {
|
|
1009
|
-
$n.value && rr();
|
|
1010
|
-
}), Tt.value && vn.observe(Tt.value), M.value && vn.observe(M.value));
|
|
1011
|
-
}), pe(() => {
|
|
1012
|
-
document.removeEventListener("pointerdown", lr), window.removeEventListener("resize", rr), vn?.disconnect(), vn = null, Q !== null && (window.cancelAnimationFrame(Q), Q = null), or();
|
|
1013
|
-
});
|
|
1014
|
-
function mr(e) {
|
|
1015
|
-
return R.value ? R.value.id === e.id : qn.value === e.id || $.value === e.id;
|
|
1016
|
-
}
|
|
1017
|
-
function hr(e) {
|
|
1018
|
-
return s(P.value.dragMarker.positionIndicator.value.formatter, e.position, t({
|
|
1019
|
-
p: "",
|
|
1020
|
-
v: e.position * 100,
|
|
1021
|
-
s: "%",
|
|
1022
|
-
r: P.value.dragMarker.positionIndicator.value.rounding
|
|
1023
|
-
}));
|
|
1024
|
-
}
|
|
1025
|
-
let gr = _(() => F.value.backgroundColor), _r = _(() => F.value.legend), vr = _(() => F.value.title), { isCallbackImaging: yr, isCallbackSvg: br, generateSvg: xr, onGenerateImage: Sr } = te({
|
|
1026
|
-
svg: M,
|
|
1027
|
-
title: vr,
|
|
1028
|
-
legend: _r,
|
|
1029
|
-
legendItems: null,
|
|
1030
|
-
backgroundColor: gr,
|
|
1031
|
-
getSvgCallback: () => N.value.userOptions.callbacks.svg,
|
|
1032
|
-
generateImage: Bt
|
|
1033
|
-
});
|
|
1034
|
-
function Cr(e = null) {
|
|
1035
|
-
fe(() => {
|
|
1036
|
-
let t = tn().map((e) => [
|
|
1037
|
-
[e.name],
|
|
1038
|
-
[e.position],
|
|
1039
|
-
[hr(e)],
|
|
1040
|
-
[In(e.position)]
|
|
1041
|
-
]), r = [
|
|
1042
|
-
[F.value.title.text],
|
|
1043
|
-
[F.value.title.subtitle.text],
|
|
1044
|
-
[
|
|
1045
|
-
["Name"],
|
|
1046
|
-
["Position"],
|
|
1047
|
-
["Percentage"],
|
|
1048
|
-
["Phase"]
|
|
1049
|
-
]
|
|
1050
|
-
].concat(t), i = n(r);
|
|
1051
|
-
e ? e(i) : c({
|
|
1052
|
-
csvContent: i,
|
|
1053
|
-
title: F.value.title.text || "vue-ui-hill"
|
|
1054
|
-
});
|
|
1055
|
-
});
|
|
1056
|
-
}
|
|
1057
|
-
let wr = _(() => F.value.layout.stackbar.show), Tr = _(() => {
|
|
1058
|
-
let e = Tn.value.length;
|
|
1059
|
-
Tn.value.reduce((e, t) => e + (t?.position ?? 0), 0);
|
|
1060
|
-
let t = 0, n = Tn.value.every((e) => e.position === 1);
|
|
1061
|
-
return Tn.value.toSorted((e, t) => {
|
|
1062
|
-
if (n) return e.__index - t.__index;
|
|
1063
|
-
let r = (e?.position ?? 0) - (t?.position ?? 0);
|
|
1064
|
-
return r === 0 ? e.__index - t.__index : r;
|
|
1065
|
-
}).map((n) => {
|
|
1066
|
-
let r = n?.position ?? 0, i = e > 0 ? r / e : 0, a = {
|
|
1067
|
-
...n,
|
|
1068
|
-
proportion: i,
|
|
1069
|
-
proportionStart: t
|
|
1070
|
-
};
|
|
1071
|
-
return t += i, a;
|
|
1072
|
-
});
|
|
1073
|
-
}), Er = _(() => Math.min(1, Math.max(0, Tr.value.reduce((e, t) => e + t.proportion, 0)))), Dr = _(() => Er.value * 100), Or = _(() => Y.value.left[0].x + Y.value.width * Er.value), kr = _(() => V.value.height + 32 + q.value.paddingTop);
|
|
1074
|
-
function Ar() {
|
|
1075
|
-
return s(q.value.label.formatter, Dr.value, t({
|
|
1076
|
-
p: "",
|
|
1077
|
-
v: Dr.value,
|
|
1078
|
-
s: "%",
|
|
1079
|
-
r: 0
|
|
1080
|
-
}));
|
|
1081
|
-
}
|
|
1082
|
-
let jr = _(() => `${wt.value}-stackbar-clip`);
|
|
1083
|
-
async function Mr() {
|
|
1084
|
-
let e = tn();
|
|
1085
|
-
if (kt("copyAlt", {
|
|
1086
|
-
config: N.value,
|
|
1087
|
-
dataset: e
|
|
1088
|
-
}), !N.value.userOptions.callbacks.altCopy) {
|
|
1089
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1090
|
-
return;
|
|
1091
|
-
}
|
|
1092
|
-
await Promise.resolve(N.value.userOptions.callbacks.altCopy({
|
|
1093
|
-
config: N.value,
|
|
1094
|
-
dataset: e
|
|
1095
|
-
}));
|
|
1096
|
-
}
|
|
1097
|
-
async function Nr({ scale: e = 2 } = {}) {
|
|
1098
|
-
if (!Tt.value) return;
|
|
1099
|
-
let { width: t, height: n } = Tt.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await re({
|
|
1100
|
-
domElement: Tt.value,
|
|
1101
|
-
base64: !0,
|
|
1102
|
-
img: !0,
|
|
1103
|
-
scale: e
|
|
1104
|
-
});
|
|
1105
|
-
return {
|
|
1106
|
-
imageUri: i,
|
|
1107
|
-
base64: a,
|
|
1108
|
-
title: F.value.title.text,
|
|
1109
|
-
width: t,
|
|
1110
|
-
height: n,
|
|
1111
|
-
aspectRatio: r
|
|
1112
|
-
};
|
|
1113
|
-
}
|
|
1114
|
-
function Pr() {
|
|
1115
|
-
return tn();
|
|
1116
|
-
}
|
|
1117
|
-
return ae({
|
|
1118
|
-
isEditing: I,
|
|
1119
|
-
beginEditing: kn,
|
|
1120
|
-
save: An,
|
|
1121
|
-
cancel: jn,
|
|
1122
|
-
getData: Pr,
|
|
1123
|
-
copyAlt: Mr,
|
|
1124
|
-
toggleFullscreen: Wt,
|
|
1125
|
-
toggleAnnotator: Kt,
|
|
1126
|
-
generateImage: Bt,
|
|
1127
|
-
generateSvg: xr,
|
|
1128
|
-
generatePdf: zt,
|
|
1129
|
-
generateCsv: Cr,
|
|
1130
|
-
getImage: Nr
|
|
1131
|
-
}), (e, t) => (T(), y("div", {
|
|
1132
|
-
ref_key: "hillChartRef",
|
|
1133
|
-
ref: Tt,
|
|
1134
|
-
class: S("vue-data-ui-component vue-ui-hill"),
|
|
1135
|
-
style: w(Vn.value),
|
|
1136
|
-
id: `hill_${wt.value}`,
|
|
1137
|
-
onMouseenter: Ft,
|
|
1138
|
-
onMouseleave: It,
|
|
1139
|
-
"data-editing": I.value
|
|
1140
|
-
}, [
|
|
1141
|
-
F.value.title.text ? (T(), y("div", Ce, [(T(), ce(ie, {
|
|
1142
|
-
key: `title_${Ot.value}`,
|
|
1143
|
-
config: {
|
|
1144
|
-
title: {
|
|
1145
|
-
cy: "hill-div-title",
|
|
1146
|
-
...F.value.title
|
|
1147
|
-
},
|
|
1148
|
-
subtitle: {
|
|
1149
|
-
cy: "hill-div-subtitle",
|
|
1150
|
-
...F.value.title.subtitle
|
|
1151
|
-
}
|
|
1152
|
-
}
|
|
1153
|
-
}, null, 8, ["config"]))], 512)) : v("", !0),
|
|
1154
|
-
N.value.userOptions.buttons.annotator && M.value ? (T(), ce(k(vt), {
|
|
1155
|
-
key: 1,
|
|
1156
|
-
color: F.value.color,
|
|
1157
|
-
backgroundColor: F.value.backgroundColor,
|
|
1158
|
-
active: Gt.value,
|
|
1159
|
-
svgRef: M.value,
|
|
1160
|
-
isCursorPointer: Vt.value,
|
|
1161
|
-
palette: N.value.userOptions.annotatorPalette,
|
|
1162
|
-
onClose: Kt
|
|
1163
|
-
}, {
|
|
1164
|
-
"annotator-action-close": A(() => [D(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1165
|
-
"annotator-action-color": A(({ color: t }) => [D(e.$slots, "annotator-action-color", C(x({ color: t })), void 0, !0)]),
|
|
1166
|
-
"annotator-action-draw": A(({ mode: t }) => [D(e.$slots, "annotator-action-draw", C(x({ mode: t })), void 0, !0)]),
|
|
1167
|
-
"annotator-action-undo": A(({ disabled: t }) => [D(e.$slots, "annotator-action-undo", C(x({ disabled: t })), void 0, !0)]),
|
|
1168
|
-
"annotator-action-redo": A(({ disabled: t }) => [D(e.$slots, "annotator-action-redo", C(x({ disabled: t })), void 0, !0)]),
|
|
1169
|
-
"annotator-action-delete": A(({ disabled: t }) => [D(e.$slots, "annotator-action-delete", C(x({ disabled: t })), void 0, !0)]),
|
|
1170
|
-
_: 3
|
|
1171
|
-
}, 8, [
|
|
1172
|
-
"color",
|
|
1173
|
-
"backgroundColor",
|
|
1174
|
-
"active",
|
|
1175
|
-
"svgRef",
|
|
1176
|
-
"isCursorPointer",
|
|
1177
|
-
"palette"
|
|
1178
|
-
])) : v("", !0),
|
|
1179
|
-
K.value.show ? (T(), ce(k(ht), {
|
|
1180
|
-
key: 2,
|
|
1181
|
-
"is-editing": I.value,
|
|
1182
|
-
"is-editable": z.value,
|
|
1183
|
-
"is-fullscreen": Ut.value,
|
|
1184
|
-
position: qt.value,
|
|
1185
|
-
color: F.value.color,
|
|
1186
|
-
"background-color": F.value.backgroundColor,
|
|
1187
|
-
translations: K.value.buttons.translations,
|
|
1188
|
-
"is-cursor-pointer": Vt.value,
|
|
1189
|
-
onUpdate: kn,
|
|
1190
|
-
onCancel: jn,
|
|
1191
|
-
onSave: An
|
|
1192
|
-
}, {
|
|
1193
|
-
"hill-edit": A(() => [D(e.$slots, "hill-edit", {}, void 0, !0)]),
|
|
1194
|
-
"hill-cancel": A(() => [D(e.$slots, "hill-cancel", {}, void 0, !0)]),
|
|
1195
|
-
"hill-save": A(() => [D(e.$slots, "hill-save", {}, void 0, !0)]),
|
|
1196
|
-
_: 3
|
|
1197
|
-
}, 8, [
|
|
1198
|
-
"is-editing",
|
|
1199
|
-
"is-editable",
|
|
1200
|
-
"is-fullscreen",
|
|
1201
|
-
"position",
|
|
1202
|
-
"color",
|
|
1203
|
-
"background-color",
|
|
1204
|
-
"translations",
|
|
1205
|
-
"is-cursor-pointer"
|
|
1206
|
-
])) : v("", !0),
|
|
1207
|
-
K.value.show ? (T(), y("div", we, [b("p", {
|
|
1208
|
-
class: "vue-ui-hill__status",
|
|
1209
|
-
style: w(Hn.value),
|
|
1210
|
-
"aria-live": "polite"
|
|
1211
|
-
}, O(I.value ? K.value.status.editInstruction : K.value.status.lastUpdated), 5)])) : v("", !0),
|
|
1212
|
-
N.value.userOptions.show && (k(Pt) || k(Mt)) ? (T(), ce(k(gt), {
|
|
1213
|
-
ref_key: "userOptionsRef",
|
|
1214
|
-
ref: Dt,
|
|
1215
|
-
key: `uo_${Ht.value}`,
|
|
1216
|
-
backgroundColor: F.value.backgroundColor,
|
|
1217
|
-
color: F.value.color,
|
|
1218
|
-
isPrinting: k(Lt),
|
|
1219
|
-
isImaging: k(Rt),
|
|
1220
|
-
uid: wt.value,
|
|
1221
|
-
hasTooltip: !1,
|
|
1222
|
-
hasPdf: N.value.userOptions.buttons.pdf,
|
|
1223
|
-
hasImg: N.value.userOptions.buttons.img,
|
|
1224
|
-
hasSvg: N.value.userOptions.buttons.svg,
|
|
1225
|
-
hasXls: N.value.userOptions.buttons.csv,
|
|
1226
|
-
hasTable: N.value.userOptions.buttons.table,
|
|
1227
|
-
hasLabel: N.value.userOptions.buttons.labels,
|
|
1228
|
-
hasFullscreen: N.value.userOptions.buttons.fullscreen,
|
|
1229
|
-
hasAltCopy: N.value.userOptions.buttons.altCopy,
|
|
1230
|
-
chartElement: Tt.value,
|
|
1231
|
-
position: N.value.userOptions.position,
|
|
1232
|
-
callbacks: N.value.userOptions.callbacks,
|
|
1233
|
-
titles: { ...N.value.userOptions.buttonTitles },
|
|
1234
|
-
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
1235
|
-
isAnnotation: Gt.value,
|
|
1236
|
-
printScale: N.value.userOptions.print.scale,
|
|
1237
|
-
isCursorPointer: Vt.value,
|
|
1238
|
-
onToggleFullscreen: Wt,
|
|
1239
|
-
onGeneratePdf: k(zt),
|
|
1240
|
-
onGenerateCsv: Cr,
|
|
1241
|
-
onGenerateImage: k(Sr),
|
|
1242
|
-
onGenerateSvg: k(xr),
|
|
1243
|
-
onToggleAnnotator: Kt,
|
|
1244
|
-
onCopyAlt: Mr,
|
|
1245
|
-
style: w({ visibility: k(Pt) ? k(Mt) ? "visible" : "hidden" : "visible" })
|
|
1246
|
-
}, le({ _: 2 }, [
|
|
1247
|
-
e.$slots.menuIcon ? {
|
|
1248
|
-
name: "menuIcon",
|
|
1249
|
-
fn: A(({ isOpen: t, color: n }) => [D(e.$slots, "menuIcon", C(x({
|
|
1250
|
-
isOpen: t,
|
|
1251
|
-
color: n
|
|
1252
|
-
})), void 0, !0)]),
|
|
1253
|
-
key: "0"
|
|
1254
|
-
} : void 0,
|
|
1255
|
-
e.$slots.optionPdf ? {
|
|
1256
|
-
name: "optionPdf",
|
|
1257
|
-
fn: A(() => [D(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1258
|
-
key: "1"
|
|
1259
|
-
} : void 0,
|
|
1260
|
-
e.$slots.optionCsv ? {
|
|
1261
|
-
name: "optionCsv",
|
|
1262
|
-
fn: A(() => [D(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1263
|
-
key: "2"
|
|
1264
|
-
} : void 0,
|
|
1265
|
-
e.$slots.optionImg ? {
|
|
1266
|
-
name: "optionImg",
|
|
1267
|
-
fn: A(() => [D(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1268
|
-
key: "3"
|
|
1269
|
-
} : void 0,
|
|
1270
|
-
e.$slots.optionSvg ? {
|
|
1271
|
-
name: "optionSvg",
|
|
1272
|
-
fn: A(() => [D(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1273
|
-
key: "4"
|
|
1274
|
-
} : void 0,
|
|
1275
|
-
e.$slots.optionFullscreen ? {
|
|
1276
|
-
name: "optionFullscreen",
|
|
1277
|
-
fn: A(({ toggleFullscreen: t, isFullscreen: n }) => [D(e.$slots, "optionFullscreen", C(x({
|
|
1278
|
-
toggleFullscreen: t,
|
|
1279
|
-
isFullscreen: n
|
|
1280
|
-
})), void 0, !0)]),
|
|
1281
|
-
key: "5"
|
|
1282
|
-
} : void 0,
|
|
1283
|
-
e.$slots.optionAnnotator ? {
|
|
1284
|
-
name: "optionAnnotator",
|
|
1285
|
-
fn: A(({ toggleAnnotator: t, isAnnotator: n }) => [D(e.$slots, "optionAnnotator", C(x({
|
|
1286
|
-
toggleAnnotator: t,
|
|
1287
|
-
isAnnotator: n
|
|
1288
|
-
})), void 0, !0)]),
|
|
1289
|
-
key: "6"
|
|
1290
|
-
} : void 0,
|
|
1291
|
-
e.$slots.optionAltCopy ? {
|
|
1292
|
-
name: "optionAltCopy",
|
|
1293
|
-
fn: A(({ altCopy: t }) => [D(e.$slots, "optionAltCopy", C(x({ altCopy: t })), void 0, !0)]),
|
|
1294
|
-
key: "7"
|
|
1295
|
-
} : void 0,
|
|
1296
|
-
e.$slots["custom-menu-before"] ? {
|
|
1297
|
-
name: "custom-menu-before",
|
|
1298
|
-
fn: A(() => [D(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1299
|
-
key: "8"
|
|
1300
|
-
} : void 0,
|
|
1301
|
-
e.$slots["custom-menu-after"] ? {
|
|
1302
|
-
name: "custom-menu-after",
|
|
1303
|
-
fn: A(() => [D(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1304
|
-
key: "9"
|
|
1305
|
-
} : void 0
|
|
1306
|
-
]), 1032, [
|
|
1307
|
-
"backgroundColor",
|
|
1308
|
-
"color",
|
|
1309
|
-
"isPrinting",
|
|
1310
|
-
"isImaging",
|
|
1311
|
-
"uid",
|
|
1312
|
-
"hasPdf",
|
|
1313
|
-
"hasImg",
|
|
1314
|
-
"hasSvg",
|
|
1315
|
-
"hasXls",
|
|
1316
|
-
"hasTable",
|
|
1317
|
-
"hasLabel",
|
|
1318
|
-
"hasFullscreen",
|
|
1319
|
-
"hasAltCopy",
|
|
1320
|
-
"chartElement",
|
|
1321
|
-
"position",
|
|
1322
|
-
"callbacks",
|
|
1323
|
-
"titles",
|
|
1324
|
-
"hasAnnotator",
|
|
1325
|
-
"isAnnotation",
|
|
1326
|
-
"printScale",
|
|
1327
|
-
"isCursorPointer",
|
|
1328
|
-
"onGeneratePdf",
|
|
1329
|
-
"onGenerateImage",
|
|
1330
|
-
"onGenerateSvg",
|
|
1331
|
-
"style"
|
|
1332
|
-
])) : v("", !0),
|
|
1333
|
-
(T(), y("svg", {
|
|
1334
|
-
ref_key: "svgRef",
|
|
1335
|
-
ref: M,
|
|
1336
|
-
style: w({
|
|
1337
|
-
background: "transparent",
|
|
1338
|
-
color: F.value.color,
|
|
1339
|
-
fontFamily: N.value.style.fontFamily
|
|
1340
|
-
}),
|
|
1341
|
-
class: S({ "vue-data-ui-no-transition": !k(jt) }),
|
|
1342
|
-
viewBox: `0 0 ${V.value.width} ${V.value.height + (wr.value ? 32 + q.value.paddingTop + q.value.paddingBottom + q.value.height : 0)}`,
|
|
1343
|
-
role: "group",
|
|
1344
|
-
"aria-live": "polite",
|
|
1345
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
1346
|
-
onPointermove: Nn,
|
|
1347
|
-
onPointerup: Pn,
|
|
1348
|
-
onPointercancel: Pn
|
|
1349
|
-
}, [
|
|
1350
|
-
ue(k(_t)),
|
|
1351
|
-
e.$slots["chart-background"] ? (T(), y("foreignObject", {
|
|
1352
|
-
key: 0,
|
|
1353
|
-
x: 0,
|
|
1354
|
-
y: 0,
|
|
1355
|
-
width: Math.max(.1, V.value.width),
|
|
1356
|
-
height: Math.max(.1, V.value.height + (wr.value ? 32 + q.value.paddingTop + q.value.paddingBottom + q.value.height : 0)),
|
|
1357
|
-
style: { pointerEvents: "none" }
|
|
1358
|
-
}, [D(e.$slots, "chart-background", {}, void 0, !0)], 8, Ee)) : v("", !0),
|
|
1359
|
-
H.value.baseline.show ? (T(), y("line", {
|
|
1360
|
-
key: 1,
|
|
1361
|
-
x1: Y.value.startX,
|
|
1362
|
-
x2: Y.value.endX,
|
|
1363
|
-
y1: Y.value.baseY,
|
|
1364
|
-
y2: Y.value.baseY,
|
|
1365
|
-
stroke: H.value.baseline.stroke,
|
|
1366
|
-
"stroke-width": H.value.baseline.strokeWidth,
|
|
1367
|
-
"stroke-dasharray": H.value.baseline.strokeDasharray,
|
|
1368
|
-
"vector-effect": "non-scaling-stroke"
|
|
1369
|
-
}, null, 8, De)) : v("", !0),
|
|
1370
|
-
H.value.midline.show ? (T(), y("line", {
|
|
1371
|
-
key: 2,
|
|
1372
|
-
x1: Y.value.centerX,
|
|
1373
|
-
x2: Y.value.centerX,
|
|
1374
|
-
y1: Y.value.peakY,
|
|
1375
|
-
y2: Y.value.baseY,
|
|
1376
|
-
stroke: H.value.midline.stroke,
|
|
1377
|
-
"stroke-width": H.value.midline.strokeWidth,
|
|
1378
|
-
"stroke-dasharray": H.value.midline.strokeDasharray,
|
|
1379
|
-
"vector-effect": "non-scaling-stroke"
|
|
1380
|
-
}, null, 8, Oe)) : v("", !0),
|
|
1381
|
-
b("path", {
|
|
1382
|
-
d: on.value,
|
|
1383
|
-
fill: "none",
|
|
1384
|
-
stroke: H.value.curve.stroke,
|
|
1385
|
-
"stroke-width": H.value.curve.strokeWidth,
|
|
1386
|
-
"stroke-dasharray": H.value.curve.strokeDasharray,
|
|
1387
|
-
"stroke-linecap": "round",
|
|
1388
|
-
"stroke-linejoin": "round",
|
|
1389
|
-
"vector-effect": "non-scaling-stroke"
|
|
1390
|
-
}, null, 8, ke),
|
|
1391
|
-
P.value.dragMarker.positionIndicator.show ? (T(!0), y(g, { key: 3 }, he(Zn.value, (e) => (T(), y("g", { key: `position-indicator-${e.id}` }, [mr(e) && U.value.dragMarker.show ? (T(), y("g", Ae, [
|
|
1392
|
-
b("path", {
|
|
1393
|
-
d: `M${e.x},${e.y} ${e.x},${Y.value.baseY}`,
|
|
1394
|
-
stroke: P.value.dragMarker.positionIndicator.useSerieColor ? e.color : P.value.dragMarker.positionIndicator.color,
|
|
1395
|
-
"stroke-width": P.value.dragMarker.positionIndicator.strokeWidth,
|
|
1396
|
-
"stroke-dasharray": P.value.dragMarker.positionIndicator.strokeDasharray,
|
|
1397
|
-
"stroke-linecap": "round",
|
|
1398
|
-
"vector-effect": "non-scaling-stroke",
|
|
1399
|
-
class: S({ "vue-data-ui-transition": k(jt) && R.value?.id !== e.id })
|
|
1400
|
-
}, null, 10, je),
|
|
1401
|
-
P.value.dragMarker.positionIndicator.circle.show ? (T(), y("circle", {
|
|
1402
|
-
key: 0,
|
|
1403
|
-
cx: e.x,
|
|
1404
|
-
cy: Y.value.baseY,
|
|
1405
|
-
r: P.value.dragMarker.positionIndicator.circle.radius,
|
|
1406
|
-
fill: P.value.dragMarker.positionIndicator.useSerieColor ? e.color : P.value.dragMarker.positionIndicator.color,
|
|
1407
|
-
stroke: P.value.dragMarker.positionIndicator.circle.stroke,
|
|
1408
|
-
"stroke-width": P.value.dragMarker.positionIndicator.circle.strokeWidth,
|
|
1409
|
-
"vector-effect": "non-scaling-stroke",
|
|
1410
|
-
"paint-order": "stroke fill",
|
|
1411
|
-
class: S({ "vue-data-ui-transition": k(jt) && R.value?.id !== e.id })
|
|
1412
|
-
}, null, 10, Me)) : v("", !0),
|
|
1413
|
-
P.value.dragMarker.positionIndicator.value.show ? (T(), y("text", {
|
|
1414
|
-
key: 1,
|
|
1415
|
-
"paint-order": "stroke fill",
|
|
1416
|
-
"vector-effect": "non-scaling-stroke",
|
|
1417
|
-
"text-anchor": "middle",
|
|
1418
|
-
transform: `translate(${e.x}, ${Y.value.baseY + P.value.radius + P.value.dragMarker.positionIndicator.value.offsetY + P.value.dragMarker.positionIndicator.value.fontSize})`,
|
|
1419
|
-
"font-size": P.value.dragMarker.positionIndicator.value.fontSize,
|
|
1420
|
-
fill: P.value.dragMarker.positionIndicator.value.useSerieColor ? e.color : P.value.dragMarker.positionIndicator.value.color,
|
|
1421
|
-
stroke: F.value.backgroundColor,
|
|
1422
|
-
"stroke-width": "1",
|
|
1423
|
-
class: S({ "vue-data-ui-transition": k(jt) && R.value?.id !== e.id })
|
|
1424
|
-
}, O(hr(e)), 11, Ne)) : v("", !0)
|
|
1425
|
-
])) : v("", !0)]))), 128)) : v("", !0),
|
|
1426
|
-
(T(!0), y(g, null, he(Zn.value, (e) => (T(), y("g", {
|
|
1427
|
-
key: e.id,
|
|
1428
|
-
"data-cy-datapoint": "",
|
|
1429
|
-
class: S({
|
|
1430
|
-
"vue-ui-hill__datapoint": !0,
|
|
1431
|
-
"vue-data-ui-transition": k(jt) && R.value?.id !== e.id,
|
|
1432
|
-
"vue-ui-hill__datapoint--promoted": k(jt) && e.isPromotedFromStackOverflow
|
|
1433
|
-
}),
|
|
1434
|
-
style: w({ opacity: [0, 1].includes(e.position) || e?.muted ? U.value.mutedOpacity : e?.disabled ? U.value.disabledOpacity : 1 }),
|
|
1435
|
-
transform: `translate(${e.x} ${e.y})`,
|
|
1436
|
-
"data-datapoint-index": e.__index,
|
|
1437
|
-
"data-datapoint-id": e.id,
|
|
1438
|
-
role: "slider",
|
|
1439
|
-
tabindex: I.value && z.value && !e.disabled ? 0 : -1,
|
|
1440
|
-
"aria-orientation": "horizontal",
|
|
1441
|
-
"aria-valuemin": "0",
|
|
1442
|
-
"aria-valuemax": "100",
|
|
1443
|
-
"aria-valuenow": hr(e),
|
|
1444
|
-
"aria-valuetext": `${e.label}: ${In(e.position)}, ${hr(e)}`,
|
|
1445
|
-
"aria-label": e.label,
|
|
1446
|
-
onFocus: (t) => Jn(e),
|
|
1447
|
-
onBlur: (t) => Yn(e),
|
|
1448
|
-
onKeydown: (t) => Fn(t, e),
|
|
1449
|
-
onPointerenter: (t) => Rn(e),
|
|
1450
|
-
onPointerleave: (t) => zn(e),
|
|
1451
|
-
onClick: (t) => Bn(e)
|
|
1452
|
-
}, [
|
|
1453
|
-
b("circle", {
|
|
1454
|
-
r: U.value.hitRadius,
|
|
1455
|
-
fill: "transparent",
|
|
1456
|
-
class: S({
|
|
1457
|
-
"vue-ui-hill__hit-area--active": I.value && z.value && !e.disabled,
|
|
1458
|
-
"vue-ui-hill__hit-area--dragging": R.value?.id === e.id
|
|
1459
|
-
}),
|
|
1460
|
-
onPointerdown: (t) => Mn(t, e)
|
|
1461
|
-
}, null, 42, Fe),
|
|
1462
|
-
b("circle", {
|
|
1463
|
-
class: "vue-ui-hill-circle",
|
|
1464
|
-
r: U.value.radius,
|
|
1465
|
-
fill: e.color,
|
|
1466
|
-
stroke: U.value.stroke,
|
|
1467
|
-
"stroke-width": U.value.strokeWidth,
|
|
1468
|
-
style: w({ filter: U.value.shadow.show ? `drop-shadow(${U.value.shadow.offsetX}px ${U.value.shadow.offsetY}px ${U.value.shadow.blur}px ${U.value.shadow.color})` : "none" }),
|
|
1469
|
-
"vector-effect": "non-scaling-stroke",
|
|
1470
|
-
"pointer-events": "none"
|
|
1471
|
-
}, null, 12, Ie),
|
|
1472
|
-
I.value && (R.value?.id === e.id && U.value.dragMarker.show || mr(e)) && !e?.disabled ? (T(), y("g", {
|
|
1473
|
-
key: 0,
|
|
1474
|
-
fill: "none",
|
|
1475
|
-
stroke: k(l)(e.color),
|
|
1476
|
-
"stroke-width": U.value.dragMarker.strokeWidth,
|
|
1477
|
-
"stroke-linecap": "round",
|
|
1478
|
-
"stroke-linejoin": "round",
|
|
1479
|
-
"pointer-events": "none",
|
|
1480
|
-
"vector-effect": "non-scaling-stroke",
|
|
1481
|
-
"aria-hidden": "true"
|
|
1482
|
-
}, [b("path", { d: U.value.dragMarker.crossPath }, null, 8, Re)], 8, Le)) : v("", !0),
|
|
1483
|
-
W.value.show ? (T(), y("text", {
|
|
1484
|
-
key: 1,
|
|
1485
|
-
x: e.labelX,
|
|
1486
|
-
y: W.value.offsetY,
|
|
1487
|
-
"text-anchor": e.textAnchor,
|
|
1488
|
-
fill: W.value.useSerieColor ? e.color : W.value.color,
|
|
1489
|
-
"font-size": W.value.fontSize,
|
|
1490
|
-
"font-weight": W.value.bold ? "bold" : "normal",
|
|
1491
|
-
"paint-order": "stroke fill",
|
|
1492
|
-
stroke: W.value.stroke,
|
|
1493
|
-
"stroke-width": W.value.strokeWidth,
|
|
1494
|
-
"stroke-linejoin": "round",
|
|
1495
|
-
"stroke-linecap": "round",
|
|
1496
|
-
"pointer-events": "none",
|
|
1497
|
-
style: { "user-select": "none" },
|
|
1498
|
-
"dominant-baseline": "central"
|
|
1499
|
-
}, O(k(a)(e.label, W.value.ellipsisThresholdChars)), 9, ze)) : v("", !0)
|
|
1500
|
-
], 46, Pe))), 128)),
|
|
1501
|
-
(T(!0), y(g, null, he(Qn.value, (e) => (T(), y("g", {
|
|
1502
|
-
key: `stack-overflow-${e.stackId}`,
|
|
1503
|
-
class: S(["vue-ui-hill__stack-overflow-marker", {
|
|
1504
|
-
"vue-ui-hill__stack-overflow-marker--animated": k(jt),
|
|
1505
|
-
"vue-ui-hill__stack-overflow-marker--restored": hn.value === e.stackId
|
|
1506
|
-
}]),
|
|
1507
|
-
style: w({
|
|
1508
|
-
"--vue-ui-hill-overflow-marker-duration": `${J.value.transitionDuration * .7}ms`,
|
|
1509
|
-
"--vue-ui-hill-overflow-marker-delay": `${J.value.transitionDuration * .3}ms`,
|
|
1510
|
-
"--vue-ui-hill-overflow-label-duration": `${J.value.transitionDuration * .55}ms`,
|
|
1511
|
-
"--vue-ui-hill-overflow-label-delay": `${J.value.transitionDuration * .45}ms`,
|
|
1512
|
-
cursor: Vt.value && !N.value.readonly ? "pointer" : "default"
|
|
1513
|
-
}),
|
|
1514
|
-
transform: `translate(${e.x} ${e.y})`,
|
|
1515
|
-
"data-stack-overflow-marker": "",
|
|
1516
|
-
role: "button",
|
|
1517
|
-
tabindex: I.value && z.value ? 0 : -1,
|
|
1518
|
-
"aria-label": `${e.hiddenCount} stacked datapoints. Activate to choose one.`,
|
|
1519
|
-
"aria-expanded": Z.value === e.stackId,
|
|
1520
|
-
onPointerdown: t[0] ||= be(() => {}, ["stop"]),
|
|
1521
|
-
onClick: be((t) => ir(e), ["stop"]),
|
|
1522
|
-
onFocus: (t) => ir(e),
|
|
1523
|
-
onKeydown: [
|
|
1524
|
-
ye(be((t) => ir(e), ["prevent", "stop"]), ["enter"]),
|
|
1525
|
-
ye(be((t) => ir(e), ["prevent", "stop"]), ["space"]),
|
|
1526
|
-
ye(be(ar, ["prevent", "stop"]), ["esc"])
|
|
1527
|
-
]
|
|
1528
|
-
}, [
|
|
1529
|
-
k(jt) && hn.value !== e.stackId ? (T(), y("g", Ve, [(T(!0), y(g, null, he(e.collapseDatapoints, (t) => (T(), y("circle", {
|
|
1530
|
-
key: `overflow-ghost-${e.stackId}-${t.id}`,
|
|
1531
|
-
cx: t.relativeX,
|
|
1532
|
-
cy: t.relativeY,
|
|
1533
|
-
r: U.value.radius,
|
|
1534
|
-
fill: t.color,
|
|
1535
|
-
stroke: U.value.stroke,
|
|
1536
|
-
"stroke-width": U.value.strokeWidth,
|
|
1537
|
-
opacity: "0.8",
|
|
1538
|
-
"vector-effect": "non-scaling-stroke"
|
|
1539
|
-
}, [
|
|
1540
|
-
b("animate", {
|
|
1541
|
-
attributeName: "cx",
|
|
1542
|
-
from: t.relativeX,
|
|
1543
|
-
to: "0",
|
|
1544
|
-
dur: `${J.value.transitionDuration}ms`,
|
|
1545
|
-
fill: "freeze",
|
|
1546
|
-
calcMode: "spline",
|
|
1547
|
-
keyTimes: "0;1",
|
|
1548
|
-
keySplines: "0.22 1 0.36 1"
|
|
1549
|
-
}, null, 8, Ue),
|
|
1550
|
-
b("animate", {
|
|
1551
|
-
attributeName: "cy",
|
|
1552
|
-
from: t.relativeY,
|
|
1553
|
-
to: "0",
|
|
1554
|
-
dur: `${J.value.transitionDuration}ms`,
|
|
1555
|
-
fill: "freeze",
|
|
1556
|
-
calcMode: "spline",
|
|
1557
|
-
keyTimes: "0;1",
|
|
1558
|
-
keySplines: "0.22 1 0.36 1"
|
|
1559
|
-
}, null, 8, We),
|
|
1560
|
-
b("animate", {
|
|
1561
|
-
attributeName: "r",
|
|
1562
|
-
from: U.value.radius,
|
|
1563
|
-
to: J.value.marker.radius * .7,
|
|
1564
|
-
dur: `${J.value.transitionDuration}ms`,
|
|
1565
|
-
fill: "freeze"
|
|
1566
|
-
}, null, 8, Ge),
|
|
1567
|
-
b("animate", {
|
|
1568
|
-
attributeName: "opacity",
|
|
1569
|
-
from: "0.8",
|
|
1570
|
-
to: "0",
|
|
1571
|
-
dur: `${J.value.transitionDuration * .85}ms`,
|
|
1572
|
-
fill: "freeze"
|
|
1573
|
-
}, null, 8, Ke)
|
|
1574
|
-
], 8, He))), 128))])) : v("", !0),
|
|
1575
|
-
b("circle", {
|
|
1576
|
-
r: Math.max(U.value.hitRadius, J.value.marker.radius),
|
|
1577
|
-
fill: "transparent",
|
|
1578
|
-
"pointer-events": "all"
|
|
1579
|
-
}, null, 8, qe),
|
|
1580
|
-
b("rect", {
|
|
1581
|
-
class: "vue-ui-hill__stack-overflow-marker-rect",
|
|
1582
|
-
x: -J.value.marker.radius,
|
|
1583
|
-
y: -J.value.marker.radius,
|
|
1584
|
-
width: J.value.marker.radius * 2,
|
|
1585
|
-
height: J.value.marker.radius * 2,
|
|
1586
|
-
fill: J.value.marker.fill,
|
|
1587
|
-
stroke: J.value.marker.stroke,
|
|
1588
|
-
"stroke-width": J.value.marker.strokeWidth,
|
|
1589
|
-
"vector-effect": "non-scaling-stroke",
|
|
1590
|
-
"pointer-events": "none"
|
|
1591
|
-
}, null, 8, Je),
|
|
1592
|
-
b("g", {
|
|
1593
|
-
class: "vue-ui-hill__stack-overflow-focus-cross",
|
|
1594
|
-
fill: "none",
|
|
1595
|
-
stroke: k(l)(H.value.curve.stroke),
|
|
1596
|
-
"stroke-width": U.value.dragMarker.strokeWidth,
|
|
1597
|
-
"stroke-linecap": "round",
|
|
1598
|
-
"stroke-linejoin": "round",
|
|
1599
|
-
"pointer-events": "none",
|
|
1600
|
-
"vector-effect": "non-scaling-stroke",
|
|
1601
|
-
"aria-hidden": "true"
|
|
1602
|
-
}, [b("path", { d: U.value.dragMarker.crossPath }, null, 8, Xe)], 8, Ye),
|
|
1603
|
-
$n.value ? v("", !0) : (T(), y("text", {
|
|
1604
|
-
key: 1,
|
|
1605
|
-
class: "vue-ui-hill__stack-overflow-marker-label",
|
|
1606
|
-
"text-anchor": "middle",
|
|
1607
|
-
y: J.value.marker.radius + J.value.marker.offsetY + J.value.marker.fontSize,
|
|
1608
|
-
fill: J.value.marker.color,
|
|
1609
|
-
"font-size": J.value.marker.fontSize,
|
|
1610
|
-
"font-weight": J.value.marker.bold ? "bold" : "normal",
|
|
1611
|
-
"pointer-events": "none",
|
|
1612
|
-
style: { "user-select": "none" },
|
|
1613
|
-
"paint-order": "stroke fill",
|
|
1614
|
-
"vector-effect": "non-scaling-stroke",
|
|
1615
|
-
stroke: F.value.backgroundColor,
|
|
1616
|
-
"stroke-width": "3"
|
|
1617
|
-
}, " +" + O(e.hiddenCount), 9, Ze))
|
|
1618
|
-
], 46, Be))), 128)),
|
|
1619
|
-
G.value.show ? (T(), y(g, { key: 4 }, [b("text", {
|
|
1620
|
-
x: (Y.value.startX + Y.value.centerX) / 2,
|
|
1621
|
-
y: Un.value,
|
|
1622
|
-
"text-anchor": "middle",
|
|
1623
|
-
fill: G.value.color,
|
|
1624
|
-
"font-size": G.value.fontSize,
|
|
1625
|
-
"font-weight": G.value.bold ? "bold" : "normal",
|
|
1626
|
-
"letter-spacing": G.value.letterSpacing
|
|
1627
|
-
}, O(Wn("left")), 9, Qe), b("text", {
|
|
1628
|
-
x: (Y.value.centerX + Y.value.endX) / 2,
|
|
1629
|
-
y: Un.value,
|
|
1630
|
-
"text-anchor": "middle",
|
|
1631
|
-
fill: G.value.color,
|
|
1632
|
-
"font-size": G.value.fontSize,
|
|
1633
|
-
"font-weight": G.value.bold ? "bold" : "normal",
|
|
1634
|
-
"letter-spacing": G.value.letterSpacing
|
|
1635
|
-
}, O(Wn("right")), 9, $e)], 64)) : v("", !0),
|
|
1636
|
-
wr.value ? (T(), y(g, { key: 5 }, [
|
|
1637
|
-
b("rect", {
|
|
1638
|
-
x: Y.value.left[0].x,
|
|
1639
|
-
y: kr.value,
|
|
1640
|
-
rx: q.value.height / 2,
|
|
1641
|
-
width: Y.value.width,
|
|
1642
|
-
height: q.value.height,
|
|
1643
|
-
fill: q.value.gutterColor
|
|
1644
|
-
}, null, 8, et),
|
|
1645
|
-
b("defs", null, [b("clipPath", { id: jr.value }, [b("rect", {
|
|
1646
|
-
x: Y.value.left[0].x,
|
|
1647
|
-
y: kr.value,
|
|
1648
|
-
width: Y.value.width * Er.value,
|
|
1649
|
-
height: q.value.height,
|
|
1650
|
-
rx: Math.min(q.value.height / 2, Y.value.width * Er.value / 2),
|
|
1651
|
-
ry: Math.min(q.value.height / 2, Y.value.width * Er.value / 2)
|
|
1652
|
-
}, null, 8, nt)], 8, tt)]),
|
|
1653
|
-
b("g", { "clip-path": `url(#${jr.value})` }, [(T(!0), y(g, null, he(Tr.value, (e) => (T(), y("rect", {
|
|
1654
|
-
key: `bar_fill_${e.id}`,
|
|
1655
|
-
width: Y.value.width * e.proportion,
|
|
1656
|
-
x: Y.value.left[0].x + Y.value.width * e.proportionStart,
|
|
1657
|
-
y: V.value.height + 32 + q.value.paddingTop,
|
|
1658
|
-
fill: e.color,
|
|
1659
|
-
height: q.value.height,
|
|
1660
|
-
onPointerenter: (t) => Rn(e),
|
|
1661
|
-
onPointerleave: (t) => zn(e)
|
|
1662
|
-
}, null, 40, it))), 128))], 8, rt),
|
|
1663
|
-
(T(!0), y(g, null, he(Tr.value.slice(1), (e) => (T(), y("line", {
|
|
1664
|
-
key: `bar_separator_${e.id}`,
|
|
1665
|
-
x1: Y.value.left[0].x + Y.value.width * e.proportionStart,
|
|
1666
|
-
x2: Y.value.left[0].x + Y.value.width * e.proportionStart,
|
|
1667
|
-
y1: V.value.height + 32 + q.value.paddingTop,
|
|
1668
|
-
y2: V.value.height + 32 + q.value.paddingTop + q.value.height,
|
|
1669
|
-
stroke: q.value.stroke,
|
|
1670
|
-
"stroke-width": q.value.strokeWidth,
|
|
1671
|
-
"vector-effect": "non-scaling-stroke"
|
|
1672
|
-
}, null, 8, at))), 128)),
|
|
1673
|
-
b("rect", {
|
|
1674
|
-
x: Y.value.left[0].x,
|
|
1675
|
-
y: V.value.height + 32 + q.value.paddingTop,
|
|
1676
|
-
width: Y.value.width * Er.value,
|
|
1677
|
-
height: q.value.height,
|
|
1678
|
-
rx: Math.min(q.value.height / 2, Y.value.width * Er.value / 2),
|
|
1679
|
-
ry: Math.min(q.value.height / 2, Y.value.width * Er.value / 2),
|
|
1680
|
-
fill: "none",
|
|
1681
|
-
stroke: q.value.stroke,
|
|
1682
|
-
"stroke-width": q.value.strokeWidth,
|
|
1683
|
-
"vector-effect": "non-scaling-stroke"
|
|
1684
|
-
}, null, 8, ot),
|
|
1685
|
-
q.value.label.show && Er.value > 0 ? (T(), y("text", {
|
|
1686
|
-
key: 0,
|
|
1687
|
-
x: Or.value,
|
|
1688
|
-
y: kr.value - 6,
|
|
1689
|
-
fill: q.value.label.color,
|
|
1690
|
-
"font-size": q.value.label.fontSize,
|
|
1691
|
-
"text-anchor": "end",
|
|
1692
|
-
"dominant-baseline": "auto",
|
|
1693
|
-
"pointer-events": "none",
|
|
1694
|
-
style: { "user-select": "none" }
|
|
1695
|
-
}, O(Ar()), 9, st)) : v("", !0)
|
|
1696
|
-
], 64)) : v("", !0),
|
|
1697
|
-
D(e.$slots, "svg", { svg: {
|
|
1698
|
-
drawingArea: Y.value,
|
|
1699
|
-
isEditing: I.value,
|
|
1700
|
-
datapoints: Zn.value,
|
|
1701
|
-
isPrintingImg: k(Lt) || k(Rt) || k(yr),
|
|
1702
|
-
isPrintingSvg: k(br)
|
|
1703
|
-
} }, void 0, !0)
|
|
1704
|
-
], 46, Te)),
|
|
1705
|
-
$n.value ? (T(), y("div", {
|
|
1706
|
-
ref_key: "overflowMenuRef",
|
|
1707
|
-
ref: Et,
|
|
1708
|
-
key: `stack-overflow-menu-${$n.value.stackId}`,
|
|
1709
|
-
class: "vue-ui-hill__stack-overflow-menu",
|
|
1710
|
-
"data-stack-overflow-menu": "",
|
|
1711
|
-
"data-dom-to-png-ignore": "",
|
|
1712
|
-
style: w([er.value, mn.value]),
|
|
1713
|
-
role: "listbox",
|
|
1714
|
-
"aria-label": `Choose one of ${$n.value.hiddenCount} stacked datapoints`,
|
|
1715
|
-
onPointerdown: t[1] ||= be(() => {}, ["stop"]),
|
|
1716
|
-
onClick: t[2] ||= be(() => {}, ["stop"]),
|
|
1717
|
-
onKeydown: ye(be(ar, ["prevent", "stop"]), ["esc"])
|
|
1718
|
-
}, [P.value.stacking.overflow.menu.title ? (T(), y("div", lt, O(P.value.stacking.overflow.menu.title), 1)) : v("", !0), (T(!0), y(g, null, he($n.value.hiddenDatapoints, (e) => (T(), y("button", {
|
|
1719
|
-
key: `hidden-${e.id}`,
|
|
1720
|
-
type: "button",
|
|
1721
|
-
class: S(["vue-ui-hill__stack-overflow-menu-item", { readonly: N.value.readonly }]),
|
|
1722
|
-
role: "option",
|
|
1723
|
-
disabled: e.disabled,
|
|
1724
|
-
"aria-label": `${e.label}, ${hr(e)}`,
|
|
1725
|
-
onClick: be((t) => dr(e), ["stop"]),
|
|
1726
|
-
style: w({ cursor: Vt.value && !N.value.readonly ? "pointer" : "default" })
|
|
1727
|
-
}, [
|
|
1728
|
-
b("span", {
|
|
1729
|
-
class: "vue-ui-hill__stack-overflow-menu-swatch",
|
|
1730
|
-
style: w({ backgroundColor: e.color }),
|
|
1731
|
-
"aria-hidden": "true"
|
|
1732
|
-
}, null, 4),
|
|
1733
|
-
b("span", dt, O(k(a)(e.label, W.value.ellipsisThresholdChars)), 1),
|
|
1734
|
-
b("span", ft, O(hr(e)), 1)
|
|
1735
|
-
], 14, ut))), 128))], 44, ct)) : v("", !0),
|
|
1736
|
-
D(e.$slots, "analysis", { data: { ...Tr.value } }, void 0, !0),
|
|
1737
|
-
e.$slots.watermark ? (T(), y("div", pt, [D(e.$slots, "watermark", C(x({ isPrinting: k(Lt) || k(Rt) || k(yr) || k(br) })), void 0, !0)])) : v("", !0),
|
|
1738
|
-
N.value.loading ? (T(), y("div", mt, [N.value.loading ? D(e.$slots, "loading", {}, () => [ue(k(yt), {
|
|
1739
|
-
name: "spinner2",
|
|
1740
|
-
stroke: F.value.color,
|
|
1741
|
-
"is-spin": !0
|
|
1742
|
-
}, null, 8, ["stroke"])], !0, 0) : v("", !0)])) : v("", !0)
|
|
1743
|
-
], 44, Se));
|
|
1744
|
-
}
|
|
1745
|
-
}, [["__scopeId", "data-v-2653f37e"]]);
|
|
1746
|
-
//#endregion
|
|
1747
|
-
export { xe as n, ht as t };
|