vue-data-ui 3.28.11 → 3.29.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/BaseScanner-m6QR9rwD.js +1 -0
- package/dist/{PackageVersion-ksOit8fp.js → PackageVersion-B9qiUJPH.js} +1 -1
- package/dist/SlicerPreview-Ks9FNVzh.js +1 -0
- package/dist/Tooltip-B432XpvC.js +1 -0
- package/dist/{XyAnalysisOptions-CUtj1x2f.js → XyAnalysisOptions-DKCLKOkA.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-graph.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/package-GInOA5jS.js +1 -0
- package/dist/{render-common-CPA2hfDW.js → render-common-DF3B4DW7.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +56 -9
- package/dist/useAnimationFrame-D8gcRfnW.js +1 -0
- package/dist/useConfig-9oDGTWWG.js +1 -0
- package/dist/useLoading-BwiplGDB.js +1 -0
- package/dist/{useObjectBindings-D789Dz63.js → useObjectBindings-DlxSTJOa.js} +1 -1
- package/dist/usePanZoom-CTGk8aJt.js +1 -0
- package/dist/utils.js +1 -1
- package/dist/vue-data-ui-Bx6exT7_.js +1 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DkehT0SI.js +10 -0
- package/dist/{vue-ui-accordion-DxGxf-Rm.js → vue-ui-accordion-CnAwFOgA.js} +1 -1
- package/dist/vue-ui-age-pyramid-DXEyySR3.js +1 -0
- package/dist/vue-ui-annotator-DqrdF7bH.js +259 -0
- package/dist/vue-ui-bullet-BNgmEm8g.js +11 -0
- package/dist/vue-ui-bump-nFpAoRy7.js +8 -0
- package/dist/vue-ui-candlestick-DvBj3KWq.js +22 -0
- package/dist/vue-ui-carousel-table-ChEpsK7w.js +1 -0
- package/dist/vue-ui-chestnut-C-_fkI6E.js +1 -0
- package/dist/vue-ui-chord-WqXXM4Qs.js +9 -0
- package/dist/vue-ui-circle-pack-Bti7Wq1h.js +13 -0
- package/dist/vue-ui-cursor-C_zzn7Ua.js +1 -0
- package/dist/vue-ui-dag-BevQ37Gp.js +7 -0
- package/dist/vue-ui-dashboard-ruhBa6cl.js +1 -0
- package/dist/vue-ui-digits-B9ksORds.js +1 -0
- package/dist/{vue-ui-donut-iyVVIGoJ.js → vue-ui-donut-DhrhMru7.js} +1 -1
- package/dist/vue-ui-donut-SbqIxWeM.js +23 -0
- package/dist/vue-ui-donut-evolution-BkuALrYS.js +2 -0
- package/dist/vue-ui-dumbbell-SOI5CdGX.js +9 -0
- package/dist/vue-ui-flow-DqVrfXJo.js +3 -0
- package/dist/vue-ui-funnel-Byx_0z_B.js +1 -0
- package/dist/vue-ui-galaxy-BYbvOTrG.js +1 -0
- package/dist/vue-ui-gauge-3_cwmDni.js +1 -0
- package/dist/vue-ui-geo-HaNxzfYO.js +1 -0
- package/dist/vue-ui-gizmo-C38WKy7L.js +1 -0
- package/dist/{vue-ui-graph-C4kfE4G8.js → vue-ui-graph-Dp5FNReE.js} +2 -2
- package/dist/vue-ui-heatmap-DM0tteNh.js +1 -0
- package/dist/{vue-ui-hill-3GVfKQmi.js → vue-ui-hill-Dr6Du4gm.js} +1 -1
- package/dist/vue-ui-history-plot-C7iVkeuY.js +2 -0
- package/dist/vue-ui-horizontal-bar-BP2tt9hA.js +4 -0
- package/dist/vue-ui-kpi-8BL_aylw.js +1 -0
- package/dist/{vue-ui-label-CBrMoFDG.js → vue-ui-label-D9tcQ8rR.js} +1 -1
- package/dist/{vue-ui-mini-loader-PsWZLMLF.js → vue-ui-mini-loader-D5-HI4Wi.js} +1 -1
- package/dist/vue-ui-molecule-Bg1GqvBM.js +1 -0
- package/dist/vue-ui-mood-radar-DIiMInOP.js +1 -0
- package/dist/vue-ui-nested-donuts-BCyX7Z7n.js +19 -0
- package/dist/vue-ui-onion-EkxCuuTI.js +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-CE80aawg.js +9 -0
- package/dist/vue-ui-quadrant-DJIuGrF9.js +2 -0
- package/dist/vue-ui-quick-chart-BBsBw9K3.js +9 -0
- package/dist/vue-ui-radar-BMYyMdOg.js +1 -0
- package/dist/{vue-ui-rating-D0QvpD3V.js → vue-ui-rating--jhcSeor.js} +1 -1
- package/dist/vue-ui-relation-circle-BLeJaQJH.js +1 -0
- package/dist/vue-ui-ridgeline-w92zZqP2.js +2 -0
- package/dist/vue-ui-rings-DUEitXix.js +1 -0
- package/dist/vue-ui-scatter-D1XzJLsA.js +9 -0
- package/dist/{vue-ui-skeleton-BLyh-ESb.js → vue-ui-skeleton-Bpwe9ox7.js} +2 -2
- package/dist/{vue-ui-smiley-C00q-teB.js → vue-ui-smiley-AEw3JB0L.js} +1 -1
- package/dist/vue-ui-spark-trend-B3TKtyLN.js +1 -0
- package/dist/vue-ui-sparkbar-CjLLQ0Ja.js +1 -0
- package/dist/vue-ui-sparkgauge-9g7UUVWq.js +1 -0
- package/dist/vue-ui-sparkhistogram-B_rUkfjQ.js +1 -0
- package/dist/vue-ui-sparkline-BJj8LCeA.js +1 -0
- package/dist/vue-ui-sparkstackbar-B5rGYUUe.js +1 -0
- package/dist/vue-ui-stackbar-k0mVr3qM.js +29 -0
- package/dist/vue-ui-stackline-D1sDzsaB.js +17 -0
- package/dist/vue-ui-strip-plot-bZisAUWl.js +2 -0
- package/dist/vue-ui-table-YFjpQD5z.js +14 -0
- package/dist/vue-ui-table-heatmap-Bl_rGqXv.js +1 -0
- package/dist/{vue-ui-table-sparkline-itq8yRCe.js → vue-ui-table-sparkline-D-FHk6aF.js} +1 -1
- package/dist/vue-ui-thermometer-1gRm4qfW.js +1 -0
- package/dist/vue-ui-timer-Urv_5Bq7.js +65 -0
- package/dist/vue-ui-tiremarks-CUCnVEGx.js +1 -0
- package/dist/vue-ui-treemap-NgjoCq7g.js +1 -0
- package/dist/vue-ui-waffle-Cy9bR4eg.js +1 -0
- package/dist/vue-ui-wheel-DdwADpJ9.js +1 -0
- package/dist/vue-ui-word-cloud-I1lrCi6H.js +4 -0
- package/dist/vue-ui-world-CFZoRY_U.js +19 -0
- package/dist/vue-ui-xy-BjZ7rM8l.js +27 -0
- package/dist/vue-ui-xy-BqivEt9H.js +31 -0
- package/dist/{vue-ui-xy-canvas-CRSisgSA.js → vue-ui-xy-canvas-DGniRsGt.js} +2 -2
- package/dist/xyScaleTicks-DMX-D9Wd.js +1 -0
- package/dist/xyScales-Cb-Z9Qso.js +1 -0
- package/package.json +3 -3
- package/dist/BaseScanner-8NdoBs7B.js +0 -1
- package/dist/SlicerPreview-0m9E7Zh_.js +0 -1
- package/dist/Tooltip-C1q0Qoh7.js +0 -1
- package/dist/package-vXTjpYqq.js +0 -1
- package/dist/useConfig-_JwRfIqE.js +0 -1
- package/dist/usePanZoom-CE6Ofyy8.js +0 -1
- package/dist/vue-data-ui-0NKIVNqt.js +0 -1
- package/dist/vue-ui-3d-bar-Cs-_W1Av.js +0 -19
- package/dist/vue-ui-age-pyramid-cWWVFoCj.js +0 -1
- package/dist/vue-ui-annotator-D31LD4-s.js +0 -331
- package/dist/vue-ui-bullet-CMQzoLKs.js +0 -34
- package/dist/vue-ui-bump-SSu5eVbF.js +0 -8
- package/dist/vue-ui-candlestick-Cm9jS3n7.js +0 -22
- package/dist/vue-ui-carousel-table-D-F54W90.js +0 -1
- package/dist/vue-ui-chestnut-DNe1s8TT.js +0 -1
- package/dist/vue-ui-chord-DGzpBpuI.js +0 -21
- package/dist/vue-ui-circle-pack--iJQtXys.js +0 -13
- package/dist/vue-ui-cursor-B7DJRSGD.js +0 -1
- package/dist/vue-ui-dag-tsM65e_V.js +0 -9
- package/dist/vue-ui-dashboard-CC7IhQZu.js +0 -1
- package/dist/vue-ui-digits-hv2QeC-H.js +0 -42
- package/dist/vue-ui-donut-B9WXaiPn.js +0 -47
- package/dist/vue-ui-donut-evolution-Wz_-FYab.js +0 -2
- package/dist/vue-ui-dumbbell-p3Q2LkBV.js +0 -9
- package/dist/vue-ui-flow-BCH8YU8H.js +0 -3
- package/dist/vue-ui-funnel-DdrBD9oX.js +0 -1
- package/dist/vue-ui-galaxy-DYKEOEL-.js +0 -1
- package/dist/vue-ui-gauge-CPgvR_YB.js +0 -1
- package/dist/vue-ui-geo-DhJ3Wr_5.js +0 -1
- package/dist/vue-ui-gizmo-BTy4Vr1e.js +0 -1
- package/dist/vue-ui-heatmap-lti43RhW.js +0 -1
- package/dist/vue-ui-history-plot-DMTPygZA.js +0 -2
- package/dist/vue-ui-horizontal-bar-DwWo0CvX.js +0 -4
- package/dist/vue-ui-kpi-BTMK37Ix.js +0 -1
- package/dist/vue-ui-molecule-rbDnRA7c.js +0 -1
- package/dist/vue-ui-mood-radar-8s1jnO3P.js +0 -1
- package/dist/vue-ui-nested-donuts-8bY4HvC-.js +0 -19
- package/dist/vue-ui-onion-CgLNDFrZ.js +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-ms14eLus.js +0 -9
- package/dist/vue-ui-quadrant-6GgQZ8fW.js +0 -2
- package/dist/vue-ui-quick-chart-CzRbFXIS.js +0 -16
- package/dist/vue-ui-radar-BxsD2JBj.js +0 -1
- package/dist/vue-ui-relation-circle-BFPAlaWQ.js +0 -1
- package/dist/vue-ui-ridgeline-G2m7eFWe.js +0 -2
- package/dist/vue-ui-rings-l_BLWL48.js +0 -1
- package/dist/vue-ui-scatter-C4hXe3DM.js +0 -9
- package/dist/vue-ui-spark-trend-D0hz9kNt.js +0 -1
- package/dist/vue-ui-sparkbar-Dweyr8h-.js +0 -1
- package/dist/vue-ui-sparkgauge-DQfCXKFj.js +0 -1
- package/dist/vue-ui-sparkhistogram-DOfAu86W.js +0 -1
- package/dist/vue-ui-sparkline-DuX09S8A.js +0 -1
- package/dist/vue-ui-sparkstackbar-vXOpiyrI.js +0 -1
- package/dist/vue-ui-stackbar-DsrwNY0p.js +0 -29
- package/dist/vue-ui-stackline-e7EYZet7.js +0 -39
- package/dist/vue-ui-strip-plot-2DxzeUXU.js +0 -2
- package/dist/vue-ui-table-B344jLaG.js +0 -14
- package/dist/vue-ui-table-heatmap-BwoRcqFD.js +0 -1
- package/dist/vue-ui-thermometer-BSRjS7l3.js +0 -1
- package/dist/vue-ui-timer-DM-urc2D.js +0 -64
- package/dist/vue-ui-tiremarks-CbIOAO3F.js +0 -1
- package/dist/vue-ui-treemap-Cgal4H5O.js +0 -1
- package/dist/vue-ui-waffle-BZFI7JLd.js +0 -1
- package/dist/vue-ui-wheel-DdKm_Vd8.js +0 -1
- package/dist/vue-ui-word-cloud-D40vUb5e.js +0 -4
- package/dist/vue-ui-world-BseI3A0C.js +0 -19
- package/dist/vue-ui-xy-Bl-DUFcf.js +0 -27
- package/dist/vue-ui-xy-DNVd3FPA.js +0 -31
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./userOptionsSlots-CWtXN5Q6.js";import{n as ee,r as i,t as a}from"./annotationSlots-OLiW25XN.js";import{n as o,t as s}from"./tableIntegration-CNoJ1CIY.js";import{t as te}from"./chartImage-DPGnEuYM.js";import{n as ne}from"./resolveChartConfig-0IvbmIE_.js";import{$ as c,D as re,Ht as ie,J as ae,N as oe,P as se,S as ce,U as le,X as ue,Xt as de,at as fe,i as pe,in as me,nt as he,r as ge,t as _e,tt as ve,w as ye,xt as be,yt as xe,zt as Se}from"./lib-rPeBMZrn.js";import{c as Ce}from"./canvas-lib-22VpOI4_.js";import{n as we,t as Te}from"./useHints-C-TwxM0Y.js";import{t as Ee}from"./useConfig-9oDGTWWG.js";import{t as De}from"./useLoading-BwiplGDB.js";import{t as Oe}from"./usePrinter-DVf3YcG5.js";import{t as ke}from"./useResponsive-CENUxfEL.js";import{t as Ae}from"./useTimeLabels-Das5O74F.js";import{t as je}from"./useChartExport-BZts4KFb.js";import{t as Me}from"./useUserOptionState-CXlFnwPv.js";import{t as Ne}from"./useChartAccessibility-DOMuYJfm.js";import{t as Pe}from"./useTimeLabelCollider-BTybMUFi.js";import{t as Fe}from"./vue_ui_ridgeline-BIaWjw_v.js";import{t as Ie}from"./Legend-W9YVYVX-.js";import{n as Le}from"./Title-BliHuXfT.js";import{t as Re}from"./Shape-CRe8woTu.js";import{t as ze}from"./BaseScanner-m6QR9rwD.js";import{t as Be}from"./A11yDataTable-DWNlWXzs.js";import{t as Ve}from"./BaseLegendToggle-VzX69MCo.js";import{t as He}from"./DefGrad-DKMq1REY.js";import{t as Ue}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{Fragment as l,computed as u,createBlock as d,createCommentVNode as f,createElementBlock as p,createElementVNode as m,createSlots as We,createTextVNode as Ge,createVNode as Ke,defineAsyncComponent as h,guardReactiveProps as qe,mergeProps as Je,nextTick as Ye,normalizeClass as Xe,normalizeProps as Ze,normalizeStyle as g,onBeforeUnmount as Qe,openBlock as _,ref as v,renderList as y,renderSlot as b,resolveDynamicComponent as $e,shallowRef as et,toDisplayString as x,toRefs as tt,unref as S,watch as nt,watchEffect as rt,withCtx as C}from"vue";var it=/* @__PURE__ */ e({default:()=>Dt}),at=[`id`],ot=[`id`],st={style:{position:`relative`}},ct=[`xmlns`,`aria-describedby`,`viewBox`],lt={key:0},ut=[`fill`,`d`],dt=[`stroke`,`stroke-width`,`d`],ft=[`fill`,`d`],pt=[`stroke`,`stroke-dasharray`,`stroke-width`,`d`],mt=[`x1`,`y1`,`x2`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`],ht=[`cx`,`cy`,`stroke`,`stroke-width`,`r`,`fill`],gt=[`x`,`y`,`font-size`,`font-weight`,`fill`,`text-decoration`,`onMouseenter`,`onClick`],_t={key:0},vt=[`font-size`,`fill`,`stroke`,`font-weight`,`transform`,`text-anchor`],yt=[`font-size`,`fill`,`font-weight`,`transform`,`text-anchor`,`innerHTML`],bt=[`x`,`y`,`width`,`height`,`onMouseenter`,`onMouseleave`,`onClick`],xt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`],St=[`cx`,`cy`,`stroke`,`stroke-width`,`r`,`fill`],Ct=[`x`,`y`,`stroke`,`text-anchor`,`font-size`,`fill`],wt={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},Tt={key:5,class:`vue-data-ui-watermark`},Et=[`onClick`],Dt=/*#__PURE__*/ Ue({__name:`vue-ui-ridgeline`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`selectLegend`,`selectDatapoint`,`selectX`,`copyAlt`],setup(e,{expose:Ue,emit:it}){let Dt=h(()=>import(`./vue-ui-xy-BjZ7rM8l.js`).then(e=>e.n)),Ot=h(()=>import(`./BaseIcon-CoY0vuL3.js`).then(e=>e.n)),kt=h(()=>import(`./vue-ui-accordion-CnAwFOgA.js`).then(e=>e.n)),At=h(()=>import(`./DataTable-KeuZB1JM.js`)),jt=h(()=>import(`./PenAndPaper-BV5ODysA.js`).then(e=>e.t)),Mt=h(()=>import(`./UserOptions-K1N7zQRx.js`).then(e=>e.n)),Nt=h(()=>import(`./PackageVersion-B9qiUJPH.js`).then(e=>e.t)),Pt=h(()=>import(`./BaseDraggableDialog-DVstuNhT.js`).then(e=>e.n)),{vue_ui_ridgeline:Ft}=Ee(),w=e,It=u({get(){return Array.isArray(B.value)&&B.value.length>0},set(e){return e}}),Lt=it,T=v(null),Rt=v(null),zt=v(null),E=et(null),D=et(null),Bt=v(null),Vt=v(null),Ht=v(0),Ut=v(0),Wt=v(0),O=v(ue()),Gt=v(0),Kt=v(0),qt=v(512),k=v(null),A=v(null),Jt=v(null),Yt=v(0),Xt=v(null),Zt=v(null),Qt=v(null),j=v(null),$t=v(!1);function en(){return ne(w.config,Ft,Fe)}let M=v(en()),N=u(()=>M.value.userOptions),P=u(()=>M.value.style.chart.areas),F=u(()=>M.value.style.chart.selector),I=u(()=>M.value.style.chart.xAxis.labels),L=u(()=>M.value.style.chart.yAxis.labels),R=u(()=>M.value.style.chart);we({config:()=>M.value,dataset:()=>w.dataset,component:`VueUiRidgeline`,rules:[Te.emptyArray,{test:e=>e.length>31,message:[`👀 The number of series > 31. Consider:`,``,`▶️ Using filters to let users choose a maximum number of series to display`,``,`▶️ Use several instances of the component to show related series`]},{test:e=>e.some(e=>e.datapoints.some(e=>e.values.length>200)),message:[`👀 Some series contain > 200 data points, which can affect performance. Consider if you really need this level of detail.`,``,`▶️ Use larger time scales, or aggregated values.`,``,`▶️ Filter the time range by adding date inputs in your UI.`]},{test:e=>e.length<6&&e.length>0,message:[`👀 The number of series < 6. Consider:`,``,`▶️ Using VueUiXy instead`]}]});let z=u(()=>M.value.userOptions.useCursorPointer),tn=u(()=>me({defaultConfig:{userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,areas:{maxPoint:{show:!1},opacity:.9,stroke:{useSerieColor:!0}},legend:{backgroundColor:`transparent`},padding:{right:-24,left:0},xAxis:{labels:{values:[]}},yAxis:{labels:{fontSize:0}},zeroLine:{show:!1}}}},userConfig:M.value.skeletonConfig??{}})),{loading:nn,FINAL_DATASET:B,manualLoading:rn}=De({...tt(w),FINAL_CONFIG:M,prepareConfig:en,skeletonDataset:w.config?.skeletonDataset??[{name:`_`,datapoints:[{name:`__`,color:`#999999`,values:[28.639,32.04,41.134,44.525,21.151,2.436,.218,.024,.002,0,0,0]},{name:`_`,color:`#CACACA`,values:[13.253,15.621,23.36,33.698,29.935,10.874,2.364,.561,.107,.02,.006,.004]}]},{name:`_`,datapoints:[{name:`_`,color:`#999999`,values:[10.851,13.195,21.617,36.556,42.292,21.006,3.398,.223,.013,.001,0,0]},{name:`_`,color:`#CACACA`,values:[3.171,4.115,8.108,18.248,31.641,29.063,12.031,2.742,.504,.102,.032,.021]}]},{name:`_`,datapoints:[{name:`_`,color:`#999999`,values:[1.731,2.334,5.125,13.626,29.911,38.524,24.168,7.646,1.575,.317,.097,.063]},{name:`_`,color:`#CACACA`,values:[.25,.367,1.026,3.944,13.635,28.891,30.149,15.419,4.714,1.246,.442,.299]}]},{name:`_`,datapoints:[{name:`_`,color:`#999999`,values:[.034,.054,.194,1.065,5.747,20.735,38.306,32.899,15.318,5.566,2.422,1.76]},{name:`_`,color:`#CACACA`,values:[.001,.002,.009,.095,1.124,8.342,27.115,35.08,21.449,9.093,4.243,3.143]}]},{name:`_`,datapoints:[{name:`_`,color:`#999999`,values:[0,.001,.004,.051,.567,3.322,14.215,44.783,40.351,20.377,9.866,7.378]},{name:`_`,color:`#CACACA`,values:[0,0,0,0,.001,.11,4.136,27.498,43.24,29.807,17.345,13.678]}]},{name:`_`,datapoints:[{name:`_`,color:`#999999`,values:[0,0,0,0,.025,.598,3.886,10.645,54.479,45.953,30.814,24.55]},{name:`_`,color:`#CACACA`,values:[0,0,0,0,0,0,.007,1.655,26.63,52.017,45.192,39.651]}]}],skeletonConfig:me({defaultConfig:M.value,userConfig:tn.value})}),V=v(Math.min(P.value.height,P.value.rowHeight)),{userOptionsVisible:an,setUserOptionsVisibility:on,keepUserOptionState:sn}=Me({config:M.value}),{svgRef:H}=Ne({config:R.value.title}),cn=u(()=>M.value.debug);function ln(){let e=B.value||[];if(!Array.isArray(e)||e.length===0)fe({componentName:`VueUiRidgeline`,type:`dataset`,debug:cn.value}),rn.value=!0;else if(e.forEach((e,t)=>{xe({datasetObject:e,requiredAttributes:[`name`,`datapoints`]}).forEach(e=>{It.value=!1,fe({componentName:`VueUiRidgeline`,type:`datasetSerieAttribute`,property:e,index:t,debug:cn.value})}),Array.isArray(e.datapoints)&&e.datapoints.length&&e.datapoints.forEach((e,n)=>{xe({datasetObject:e,requiredAttributes:[`name`,`values`]}).forEach(e=>{It.value=!1,fe({componentName:`VueUiRidgeline`,type:`datasetSerieAttribute`,property:`datapoint.${e}`,index:`${t}-${n}`,debug:cn.value})})})}),Kt.value=e.length,V.value=Math.min(P.value.height,P.value.rowHeight),Se(w.dataset)||(rn.value=M.value.loading),M.value.responsive){let t=Ce(()=>{let{width:t,height:n}=ke({chart:T.value,title:R.value.title.text?Rt.value:null,legend:R.value.legend.show?zt.value:null,source:Bt.value,noTitle:Vt.value,padding:R.value.padding});requestAnimationFrame(()=>{qt.value=t,V.value=e.length?n/e.length:0,Yt.value=n-12})});E.value&&(D.value&&E.value.unobserve(D.value),E.value.disconnect()),E.value=new ResizeObserver(t),D.value=T.value?.parentNode||null,D.value&&E.value.observe(D.value)}}Qe(()=>{E.value&&(D.value&&E.value.unobserve(D.value),E.value.disconnect())});let{isPrinting:un,isImaging:dn,generatePdf:fn,generateImage:pn}=Oe({elementId:`vue-ui-ridgeline_${O.value}`,fileName:R.value.title.text||`vue-ui-ridgeline`,options:M.value.userOptions.print}),mn=u(()=>M.value.userOptions.show&&!R.value.title.text),hn=u(()=>ye(M.value.customPalette)),U=v({showTable:M.value.table.show});nt(()=>B.value,async e=>{Array.isArray(e)&&e.length&&(an.value=!M.value.userOptions.showOnChartHover,await Ye(),ln(),Ht.value+=1,Wt.value+=1,U.value.showTable=M.value.table.show)},{deep:!0,immediate:!0}),nt(()=>w.dataset,e=>{Array.isArray(e)&&e.length>0&&(rn.value=!1)},{deep:!0}),nt(()=>nn.value,async e=>{e||(await Ye(),ln())},{immediate:!0}),nt(()=>w.config,()=>{M.value=en(B.value||null),an.value=!M.value.userOptions.showOnChartHover,V.value=Math.min(P.value.height,P.value.rowHeight),U.value.showTable=M.value.table.show,Ht.value+=1,Wt.value+=1},{deep:!0});let gn=u(()=>P.value.height/P.value.rowHeight);function _n(){X.value.length?X.value=[]:Z.value.forEach(e=>{X.value.push(e.id)}),Lt(`selectLegend`,Y.value)}function vn(e){X.value.includes(e)?X.value=X.value.filter(t=>t!==e):X.value.push(e),Lt(`selectLegend`,Y.value)}function yn(e){return Z.value.length?Z.value.find(t=>t.name===e)||(cn.value&&console.warn(`VueUiRidgeline - Series name not found "${e}"`),null):(cn.value&&console.warn(`VueUiRidgeline - There are no series to show.`),null)}function bn(e){let t=yn(e);t!==null&&X.value.includes(t.id)&&vn(t.id)}function xn(e){let t=yn(e);t!==null&&(X.value.includes(t.id)||vn(t.id))}let W=u(()=>It.value?(B.value||[]).map(e=>({...e,labelLen:Fn(e.name,L.value.fontSize),uid:ue(),datapoints:e.datapoints.map((e,t)=>{let n=e.color?ce(e.color):hn.value[t]||ie[t]||ie[t%ie.length],r=de(e.name);return{...e,color:n,id:r}})})):[]),Sn=u(()=>R.value.padding.top+V.value*(B.value||[]).length+V.value*gn.value+R.value.padding.bottom),G=u(()=>{let e=R.value.padding;return{width:qt.value,height:Sn.value,padding:e}}),Cn=u(()=>G.value.width),wn=u(()=>G.value.height),Tn=v(0),En=Ce(e=>{Tn.value=e},100);rt(e=>{let t=Xt.value;if(!t)return;let n=new ResizeObserver(e=>{En(e[0].contentRect.height)});n.observe(t),e(()=>n.disconnect())}),Qe(()=>{Tn.value=0});let K=u(()=>({fullHeight:G.value.height+Tn.value,top:G.value.padding.top,left:G.value.padding.left,right:G.value.width-G.value.padding.right,bottom:G.value.height-R.value.padding.bottom,width:G.value.width-(G.value.padding.left+G.value.padding.right)})),Dn=u(()=>Math.max(...W.value.flatMap(e=>e.datapoints.map(e=>e.values.length)))),q=v([]),On=0;rt(()=>{let e=++On;(async()=>{let t=await Ae({values:I.value.values,maxDatapoints:Dn.value,formatter:I.value.datetimeFormatter,start:0,end:I.value.values.length});e===On&&(q.value=t)})()});let J=u(()=>{let e=Math.max(...W.value.map(e=>e.labelLen)),t=G.value.padding.left+e+16+L.value.offsetX,n=(K.value.width-t)/Dn.value,r=[];for(let e=0;e<Dn.value;e+=1)r.push({selectorX:t+n*e,x:t+n*e-n/2,y:K.value.top,label:I.value.values[e]?q.value[e]?.text??``:``,index:e,width:n,height:Sn.value});return r});function kn(e){return W.value.map(t=>t.datapoints.map(t=>({dp:t,selected:t.values[e.index]})))}function An(e){k.value=e;let t=kn(e);M.value.events.datapointEnter&&M.value.events.datapointEnter({datapoint:t,seriesIndex:e.index})}function jn(e){k.value=null;let t=kn(e);M.value.events.datapointLeave&&M.value.events.datapointLeave({datapoint:t,seriesIndex:e.index})}function Mn(e){let t=kn(e);M.value.events.datapointClick&&M.value.events.datapointClick({datapoint:t,seriesIndex:e.index}),Lt(`selectX`,t)}function Nn(e,t){return e.length*t/2+t}function Pn(e,t,n){return e+Nn(t,n)>K.value.right}function Fn(e,t,n=`sans-serif`){let r=document.createElement(`canvas`).getContext(`2d`);return r.font=`${typeof t==`number`?`${t}px`:t} ${n}`,r.measureText(e).width}let Y=u(()=>{V.value;let e=Math.max(...W.value.map(e=>e.labelLen)),t=Math.max(...W.value.flatMap(e=>e.datapoints.flatMap(e=>e.values))),n=Math.min(...W.value.flatMap(e=>e.datapoints.flatMap(e=>e.values))),r=G.value.padding.left+e+16+L.value.offsetX,ee=(K.value.width-r)/Dn.value,i=Math.abs(Math.min(n,0)),a=t+i;function o(e){return isNaN(e/a)?0:e/a}return W.value.map((e,t)=>{let n=V.value*gn.value*(1-o(i)),a=K.value.top+V.value*t,s=K.value.top+a+n;return{...e,label:{x:r-L.value.fontSize,y:(L.value.centered?s-n/2:s)+L.value.offsetY},datapoints:e.datapoints.map(e=>{let t=e.values.map((t,n)=>{let te=isNaN(t)||[void 0,null,`NaN`,NaN,1/0,-1/0].includes(t)?0:t||0;return{x:r+ee*n,y:K.value.top+a+V.value*gn.value*(1-o(te+i)),value:t,isMaxPoint:t===Math.max(...e.values),zero:s}}),n=`${oe(t,s,!1,!1)}`,te=`M ${r},${s} ${le(t)} ${t.at(-1).x},${s}`,ne=`M ${r},${s} ${t.at(-1).x},${s}`,c=`M ${se(t)}`,re=`M ${le(t)}`,ie=be(P.value.smooth?c:re);return{...e,uid:ue(),plots:t,smoothPath:n,straightPath:te,zeroPath:ne,pathLength:ie,smoothPathRidge:c,straightPathRidge:re}}).filter(e=>!X.value.includes(e.id))}})}),X=v([]);function In(e){let t=/* @__PURE__ */ new Map;return e.forEach(e=>{e.datapoints.forEach((e,n)=>{let r=de(e.name);t.has(r)||t.set(r,{id:r,name:e.name,color:e.color,shape:`circle`,segregate:()=>vn(r),isSegregated:X.value.includes(r),opacity:X.value.includes(r)?.5:1})})}),Array.from(t.values())}let Z=u(()=>In(W.value)),Ln=u(()=>({cy:`donut-div-legend`,backgroundColor:R.value.legend.backgroundColor,color:R.value.legend.color,fontSize:R.value.legend.fontSize,paddingBottom:12,fontWeight:R.value.legend.bold?`bold`:``})),Q=v(!1);function Rn(e){Q.value=e,Gt.value+=1}let zn=v({}),Bn=v([]);function Vn(e){Lt(`selectDatapoint`,e),R.value.dialog.show&&(Bn.value=e.datapoints.map(e=>({name:e.name,color:e.color,type:`line`,useArea:!0,smooth:P.value.smooth,series:e.values})),A.value=e,zn.value=ve({...R.value.dialog.xyChart,responsive:!0,chart:{...R.value.dialog.xyChart.chart,grid:{...R.value.dialog.xyChart.chart.grid,labels:{...R.value.dialog.xyChart.chart.grid.labels,xAxisLabels:{...R.value.dialog.xyChart.chart.grid.labels.xAxisLabels,values:I.value.values,autoRotate:{enable:!0,angle:R.value.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle},datetimeFormatter:I.value.datetimeFormatter}}},tooltip:{...R.value.dialog.xyChart.chart.tooltip,showTimeLabel:I.value.values.length>0},userOptions:{...R.value.dialog.xyChart.chart.userOptions,buttons:{...R.value.dialog.xyChart.chart.userOptions.buttons,altCopy:M.value.userOptions.buttons.altCopy},callbacks:{...R.value.dialog.xyChart.chart.userOptions.callbacks,altCopy:()=>{}},useCursorPointer:M.value.userOptions.useCursorPointer}}}),Jt.value&&Jt.value.open())}let Hn=v(null);function Un(e){Hn.value=e}function Wn(){Hn.value=null}let Gn=v(!1);function Kn(){Gn.value=!Gn.value}function qn(){U.value.showTable=!U.value.showTable}let Jn=u(()=>({body:Y.value.flatMap(e=>e.datapoints.flatMap(t=>({...t,rowName:`${e.name}: ${t.name}`}))).map(e=>[{name:e.rowName,color:e.color},...e.values])})),$=u(()=>{let e=[M.value.table.columnNames.series,...q.value.map(e=>e.text)],t={th:{backgroundColor:M.value.table.th.backgroundColor,color:M.value.table.th.color,outline:M.value.table.th.outline},td:{backgroundColor:M.value.table.td.backgroundColor,color:M.value.table.td.color,outline:M.value.table.td.outline},breakpoint:M.value.table.responsiveBreakpoint};return{colNames:[M.value.table.columnNames.series,...q.value.map(e=>e.text)],head:e,body:Jn.value.body,config:t}});function Yn(e=null){Ye(()=>{let t=[[M.value.table.columnNames.series,...q.map(e=>[e.text])],...Jn.value.body.map((e,t)=>[e[0].name,...e.slice(1)])],n=[[R.value.title.text],[R.value.title.subtitle.text]].concat(t),r=re(n);e?e(r):he({csvContent:r,title:R.value.title.text||`vue-ui-ridgeline`})})}function Xn(){return Y.value}let Zn=te(T,()=>R.value.title.text),Qn=u(()=>({min:0,max:Dn.value}));Pe({timeLabelsEls:Xt,timeLabels:q,slicer:Qn,configRef:M,rotationPath:[`style`,`chart`,`xAxis`,`labels`,`rotation`],autoRotatePath:[`style`,`chart`,`xAxis`,`labels`,`autoRotate`,`enable`],isAutoSize:!1,width:Cn,height:wn,targetClass:`.vue-ui-ridgeline-x-axis-label`,angle:I.value.autoRotate.angle});let $n=u(()=>s({config:M,style:R,mutableConfig:U,dialog:Pt,accordion:kt,isFullscreen:Q,parent:T,maxWidth:800,isCursorPointer:z}));nt(()=>U.value.showTable,e=>o(e,M,Zt));function er(){U.value.showTable=!1,Qt.value&&Qt.value.setTableIconState(!1)}let tr=u(()=>R.value.backgroundColor),nr=u(()=>({...R.value.legend,position:`bottom`})),rr=u(()=>R.value.title),{isCallbackImaging:ir,isCallbackSvg:ar,generateSvg:or,onGenerateImage:sr}=je({svg:H,title:rr,legend:nr,legendItems:Z,backgroundColor:tr,getSvgCallback:()=>M.value.userOptions.callbacks.svg,generateImage:pn});function cr(e){lr(`xy-zoom`,e.dataset,e.config)}async function lr(e=`main-chart`,t=null,n=null){Lt(`copyAlt`,{source:e,config:e===`main-chart`?M.value:zn.value,dataset:e===`main-chart`?Y.value:Bn.value}),M.value.userOptions.callbacks.altCopy?await Promise.resolve(M.value.userOptions.callbacks.altCopy({source:e,config:e===`main-chart`?M.value:zn.value,dataset:e===`main-chart`?Y.value:Bn.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function ur(){j.value=null,$t.value=!0}function dr(){hr(),$t.value=!1}function fr(e){if(!H.value||Gn.value||document.activeElement!==H.value||!Y.value.length)return;let t=e.key===`ArrowUp`,n=e.key===`ArrowDown`,r=e.key===`ArrowLeft`,ee=e.key===`ArrowRight`,i=e.key===`Enter`||e.key===` `,a=e.key===`Escape`;if(!t&&!n&&!r&&!ee&&!i&&!a)return;if(e.preventDefault(),e.stopPropagation(),a){hr();return}if(i){if(j.value!==null){let e=Y.value[j.value];e&&Vn(e);return}k.value&&Mn(k.value);return}if(t||n){let e=j.value;e=e===null?n?0:Y.value.length-1:pr(e+(n?1:-1)),j.value=e,Hn.value=e;return}if(!J.value.length)return;let o=k.value?.index??null;o=o===null?ee?0:J.value.length-1:mr(o+(ee?1:-1));let s=J.value[o];s&&An(s)}function pr(e){let t=Y.value.length;return t?(e%t+t)%t:null}function mr(e){let t=J.value.length;return t?(e%t+t)%t:null}function hr(){j.value=null,Hn.value=null,k.value?jn(k.value):k.value=null}let gr=u(()=>({head:$.value.head,body:$.value.body.map(e=>[e[0]?.name??``,...e.slice(1)]),caption:M.value.a11y.translations.tableCaption,notice:M.value.a11y.translations.tableAvailable}));return Ue({getData:Xn,getImage:Zn,generateImage:pn,generateSvg:or,generatePdf:fn,generateCsv:Yn,hideSeries:xn,showSeries:bn,toggleAnnotator:Kn,toggleTable:qn,toggleFullscreen:Rn,copyAlt:lr}),(e,o)=>(_(),p(`div`,{ref_key:`ridgelineChart`,ref:T,class:Xe(`vue-data-ui-component vue-ui-ridgeline ${Q.value?`vue-data-ui-wrapper-fullscreen`:``}`),id:`vue-ui-ridgeline_${O.value}`,style:g({fontFamily:M.value.style.fontFamily,width:`100%`,textAlign:`center`,background:R.value.backgroundColor,height:M.value.responsive?`100%`:void 0}),onMouseenter:o[3]||=()=>S(on)(!0),onMouseleave:o[4]||=()=>S(on)(!1)},[m(`div`,{id:`chart-instructions-${O.value}`,class:`sr-only`},[m(`p`,null,x(M.value.a11y.translations.keyboardNavigation),1)],8,ot),M.value.a11y.includeTable&&gr.value.body.length?(_(),d(Be,{key:0,uid:O.value,head:gr.value.head,body:gr.value.body,caption:gr.value.caption,notice:gr.value.notice},null,8,[`uid`,`head`,`body`,`caption`,`notice`])):f(``,!0),N.value.buttons.annotator&&S(H)?(_(),d(S(jt),Je({key:1},S(i)(N.value.annotator),{color:R.value.color,backgroundColor:R.value.backgroundColor,active:Gn.value,svgRef:S(H),isCursorPointer:z.value,onClose:Kn}),We({_:2},[y(S(a),t=>({name:t,fn:C(n=>[b(e.$slots,t,Ze(qe(S(ee)(t,n))),void 0,!0)])}))]),1040,[`color`,`backgroundColor`,`active`,`svgRef`,`isCursorPointer`])):f(``,!0),b(e.$slots,`userConfig`,{},void 0,!0),mn.value?(_(),p(`div`,{key:2,ref_key:`noTitle`,ref:Vt,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):f(``,!0),R.value.title.text?(_(),p(`div`,{key:3,ref_key:`chartTitle`,ref:Rt,style:`width:100%;background:transparent;padding-bottom:24px`},[(_(),d(Le,{key:`title_${Ht.value}`,config:{title:{cy:`ridgeline-div-title`,...R.value.title},subtitle:{cy:`ridgeline-div-subtitle`,...R.value.title.subtitle}}},null,8,[`config`]))],512)):f(``,!0),N.value.show&&It.value&&(S(sn)||S(an))?(_(),d(S(Mt),Je({ref_key:`userOptionsRef`,ref:Qt,key:`user_option_${Gt.value}`,backgroundColor:R.value.backgroundColor,color:R.value.color,isPrinting:S(un),isImaging:S(dn),uid:O.value,hasTooltip:!1,hasLabel:!1,isFullscreen:Q.value,chartElement:T.value},S(n)(N.value,`pdf csv img svg table fullscreen altCopy annotator`),{isTooltip:!1,isAnnotation:Gn.value,tableDialog:M.value.table.useDialog,style:{visibility:S(sn)?S(an)?`visible`:`hidden`:`visible`},isCursorPointer:z.value,onToggleFullscreen:Rn,onGeneratePdf:S(fn),onGenerateCsv:Yn,onGenerateImage:S(sr),onGenerateSvg:S(or),onToggleTable:qn,onToggleAnnotator:Kn,onCopyAlt:lr}),We({_:2},[y(S(t)(e.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:C(n=>[b(e.$slots,t,Ze(qe(S(r)(t,n))),void 0,!0)])}))]),1040,[`backgroundColor`,`color`,`isPrinting`,`isImaging`,`uid`,`isFullscreen`,`chartElement`,`isAnnotation`,`tableDialog`,`style`,`isCursorPointer`,`onGeneratePdf`,`onGenerateImage`,`onGenerateSvg`])):f(``,!0),m(`div`,st,[(_(),p(`svg`,{ref_key:`svgRef`,ref:H,xmlns:S(_e),"aria-describedby":`chart-instructions-${O.value}`,class:Xe({"vue-data-ui-fullscreen--on":Q.value,"vue-data-ui-fulscreen--off":!Q.value}),viewBox:`0 0 ${G.value.width<=0?10:G.value.width} ${K.value.fullHeight<=0?10:K.value.fullHeight}`,style:g(`max-width:100%;overflow:visible;background:transparent;color:${R.value.color};${M.value.responsive?`height: ${Yt.value}px; width: 100%;`:``}`),tabindex:`0`,onFocus:ur,onBlur:dr,onKeydown:fr},[Ke(S(Nt)),b(e.$slots,`svg-underlayer`,{svg:{...G.value,drawingArea:K.value,isPrintingImg:S(un)||S(dn)||S(ir),isPrintingSvg:S(ar),data:Y.value}},void 0,!0),m(`defs`,null,[(_(!0),p(l,null,y(Z.value,(e,t)=>(_(),d(He,{t:`linear`,id:`gradient-${e.id}-${O.value}`,key:`gradient-${e.id}-${O.value}`,x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,stops:[[`0%`,e.color,1],[`30%`,e.color,.7],[`70%`,e.color,.3],[`100%`,e.color,.1]]},null,8,[`id`,`stops`]))),128)),(_(!0),p(l,null,y(Y.value,(e,t)=>(_(),p(l,null,[(_(!0),p(l,null,y(e.datapoints,(e,t)=>(_(),d(He,{t:`linear`,key:`grad${e.id}`,id:`gradient-single-${O.value}-${e.uid}`,x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,stops:[[`0%`,e.color,1],[`30%`,e.color,.7],[`70%`,e.color,.3],[`100%`,e.color,.1]]},null,8,[`id`,`stops`]))),128))],64))),256))]),(_(!0),p(l,null,y(Y.value,(t,n)=>(_(),p(`g`,{key:`ds-${n}`},[(_(!0),p(l,null,y(t.datapoints,(t,r)=>(_(),p(`g`,{key:t.id},[e.$slots.pattern?(_(),p(`g`,lt,[m(`defs`,null,[b(e.$slots,`pattern`,Je({ref_for:!0},{datapointIndex:n,seriesIndex:r,patternId:`pattern_${O.value}_${t.uid}`}),void 0,!0)])])):f(``,!0),m(`path`,{fill:e.$slots.pattern?`url(#pattern_${O.value}_${t.uid})`:R.value.backgroundColor,stroke:`none`,"stroke-linecap":`round`,d:P.value.smooth?t.smoothPath:t.straightPath,style:g({opacity:P.value.opacity})},null,12,ut),m(`path`,{fill:`none`,stroke:P.value.stroke.useSerieColor?t.color:P.value.stroke.color,"stroke-width":P.value.strokeWidth,d:P.value.smooth?t.smoothPathRidge:t.straightPathRidge,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:g({strokeDasharray:t.pathLength,strokeDashoffset:M.value.useCssAnimation?t.pathLength:0})},null,12,dt),m(`path`,{fill:P.value.useGradient?P.value.useCommonColor?`url(#gradient-${t.id}-${O.value})`:`url(#gradient-single-${O.value}-${t.uid})`:t.color,stroke:`none`,d:P.value.smooth?t.smoothPath:t.straightPath,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:g({strokeDasharray:t.pathLength,strokeDashoffset:M.value.useCssAnimation?t.pathLength:0})},null,12,ft),R.value.zeroLine.show?(_(),p(`path`,{key:1,stroke:R.value.zeroLine.useSerieColor?t.color:R.value.zeroLine.stroke,"stroke-dasharray":R.value.zeroLine.strokeDasharray,"stroke-width":R.value.zeroLine.strokeWidth,d:t.zeroPath,"stroke-linecap":`round`},null,8,pt)):f(``,!0),P.value.maxPoint.show&&t.plots.length>1?(_(!0),p(l,{key:2},y(t.plots,e=>(_(),p(l,null,[e.isMaxPoint?(_(),p(`line`,{key:0,x1:e.x,y1:e.y,x2:e.x,y2:e.zero,stroke:P.value.maxPoint.adaptStrokeToBackground?S(ge)(t.color):P.value.maxPoint.stroke,"stroke-width":P.value.maxPoint.strokeWidth,"stroke-linecap":`round`,"stroke-dasharray":P.value.maxPoint.strokeDasharray},null,8,mt)):f(``,!0)],64))),256)):f(``,!0),t.plots.length===1?(_(),p(`circle`,{key:3,cx:t.plots[0].x,cy:t.plots[0].y,stroke:F.value.dot.stroke,"stroke-width":F.value.dot.strokeWidth,r:F.value.dot.radius,fill:F.value.dot.useDatapointColor?t.color:F.value.dot.fill,style:{pointerEvents:`none`}},null,8,ht)):f(``,!0)]))),128)),m(`text`,{x:t.label.x,y:t.label.y,"text-anchor":`end`,"font-size":L.value.fontSize,"font-weight":L.value.bold?`bold`:`normal`,fill:L.value.color,style:g({cursor:R.value.dialog.show&&z.value?`pointer`:`default`}),"text-decoration":R.value.dialog.show&&(Hn.value===n||A.value&&t.uid===A.value.uid||j.value===n)?`underline`:``,"dominant-baseline":`middle`,onMouseenter:e=>Un(n),onMouseleave:Wn,onClick:e=>Vn(t)},x(t.name),45,gt)]))),128)),I.value.values.length?(_(),p(`g`,{key:0,ref_key:`timeLabelsEls`,ref:Xt},[(_(!0),p(l,null,y(J.value,(t,n)=>b(e.$slots,`time-label`,Je({ref_for:!0},{show:t&&!I.value.showOnlyFirstAndLast&&!I.value.showOnlyAtModulo||t&&I.value.showOnlyFirstAndLast&&(n===0||n===J.value.length-1)||t&&k.value&&k.value.index===n||t&&!I.value.showOnlyFirstAndLast&&I.value.showOnlyAtModulo&&n%Math.max(1,Math.floor(Number(R.value.xAxis.labels.modulo)||1))===0,fontSize:I.value.fontSize,content:t.label,textAnchor:I.value.rotation>0?`start`:I.value.rotation<0?`end`:`middle`,fill:I.value.color,transform:`translate(${t.selectorX}, ${K.value.top+t.height+I.value.offsetY}), rotate(${I.value.rotation})`,x:t.selectorX,y:K.value.bottom+I.value.offsetY}),()=>[t&&!I.value.showOnlyFirstAndLast&&!I.value.showOnlyAtModulo||t&&I.value.showOnlyFirstAndLast&&(n===0||n===J.value.length-1)||t&&k.value&&k.value.index===n||t&&!I.value.showOnlyFirstAndLast&&I.value.showOnlyAtModulo&&n%Math.max(1,Math.floor(Number(R.value.xAxis.labels.modulo)||1))===0?(_(),p(`g`,_t,[String(t.label).includes(`
|
|
2
|
+
`)?(_(),p(`text`,{key:1,class:`vue-ui-ridgeline-x-axis-label`,"font-size":I.value.fontSize,fill:I.value.color,"font-weight":I.value.bold?`bold`:`normal`,transform:`translate(${t.selectorX}, ${K.value.bottom+I.value.offsetY}), rotate(${I.value.rotation})`,"text-anchor":I.value.rotation>0?`start`:R.value.xAxis.labels.rotation<0?`end`:`middle`,style:g({opacity:k.value?k.value.index===n?1:.2:1}),innerHTML:S(ae)({content:String(t.label),fontSize:R.value.xAxis.labels.fontSize,fill:R.value.xAxis.labels.color,stroke:R.value.backgroundColor,x:0,y:0})},null,12,yt)):(_(),p(`text`,{key:0,class:`vue-ui-ridgeline-x-axis-label`,"font-size":I.value.fontSize,fill:I.value.color,stroke:R.value.backgroundColor,"stroke-width":`3`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"paint-order":`stroke fill`,"font-weight":I.value.bold?`bold`:`normal`,transform:`translate(${t.selectorX}, ${K.value.bottom+I.value.offsetY}), rotate(${I.value.rotation})`,"text-anchor":I.value.rotation>0?`start`:R.value.xAxis.labels.rotation<0?`end`:`middle`,style:g({opacity:k.value?k.value.index===n?1:.2:1})},x(t.label),13,vt))])):f(``,!0)],!0)),256))],512)):f(``,!0),m(`g`,null,[(_(!0),p(l,null,y(J.value,(e,t)=>(_(),p(`rect`,{x:e.x,y:e.y,width:e.width<0?.1:e.width,height:e.height<0?.1:e.height,fill:`transparent`,onMouseenter:t=>An(e),onMouseleave:t=>jn(e),onClick:()=>Mn(e)},null,40,bt))),256)),F.value.show&&k.value?(_(),p(`line`,{key:0,x1:k.value.selectorX,x2:k.value.selectorX,y1:k.value.y,y2:k.value.y+k.value.height-V.value/2,stroke:F.value.stroke,"stroke-width":F.value.strokeWidth,"stroke-dasharray":F.value.strokeDasharray,"stroke-linecap":`round`,style:{pointerEvents:`none`}},null,8,xt)):f(``,!0),k.value||F.value.labels.showLast?(_(!0),p(l,{key:1},y(Y.value,e=>(_(),p(l,null,[(_(!0),p(l,null,y(e.datapoints,e=>(_(),p(l,null,[(_(!0),p(l,null,y(e.plots,(t,n)=>(_(),p(l,null,[k.value&&k.value.index===n||!k.value&&n===e.plots.length-1&&R.value.selector.labels.showLast?(_(),p(`circle`,{key:0,cx:t.x,cy:t.y,stroke:F.value.dot.stroke,"stroke-width":F.value.dot.strokeWidth,r:F.value.dot.radius,fill:F.value.dot.useDatapointColor?e.color:R.value.selector.dot.fill,style:{pointerEvents:`none`}},null,8,St)):f(``,!0),k.value&&k.value.index===n||!k.value&&n===e.plots.length-1&&R.value.selector.labels.showLast?(_(),p(`text`,{key:1,x:Pn(t.x,S(pe)(R.value.selector.labels.formatter,t.value,S(c)({p:M.value.style.chart.xAxis.labels.prefix,v:t.value,s:M.value.style.chart.xAxis.labels.suffix,r:M.value.style.chart.selector.labels.rounding})),R.value.selector.labels.fontSize)?t.x-R.value.selector.labels.fontSize/2:t.x+R.value.selector.labels.fontSize/2,y:t.y,"dominant-baseline":`middle`,stroke:R.value.backgroundColor,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`,"paint-order":`stroke fill`,"text-anchor":Pn(t.x,S(pe)(R.value.selector.labels.formatter,t.value,S(c)({p:M.value.style.chart.xAxis.labels.prefix,v:t.value,s:M.value.style.chart.xAxis.labels.suffix,r:M.value.style.chart.selector.labels.rounding})),R.value.selector.labels.fontSize)?`end`:`start`,"font-size":F.value.labels.fontSize,fill:F.value.labels.color,style:{pointerEvents:`none`}},x(S(pe)(R.value.selector.labels.formatter,t.value,S(c)({p:R.value.xAxis.labels.prefix,v:t.value,s:R.value.xAxis.labels.suffix,r:R.value.selector.labels.rounding}))),9,Ct)):f(``,!0)],64))),256))],64))),256))],64))),256)):f(``,!0)]),b(e.$slots,`svg`,{svg:{...G.value,drawingArea:K.value,isPrintingImg:S(un)||S(dn)||S(ir),isPrintingSvg:S(ar),data:Y.value}},void 0,!0)],46,ct)),e.$slots.hint?(_(),p(`div`,wt,[b(e.$slots,`hint`,Ze(qe({hint:M.value.a11y.translations.keyboardNavigation,isVisible:$t.value})),void 0,!0)])):f(``,!0)]),e.$slots.watermark?(_(),p(`div`,Tt,[b(e.$slots,`watermark`,Ze(qe({isPrinting:S(un)||S(dn)||S(ir)||S(ar)})),void 0,!0)])):f(``,!0),m(`div`,{ref_key:`chartLegend`,ref:zt},[b(e.$slots,`legend`,{legend:Z.value},()=>[R.value.legend.show?(_(),d(Ie,{key:`legend_${Wt.value}`,legendSet:Z.value,config:Ln.value,isCursorPointer:z.value,onClickMarker:o[0]||=({legend:e})=>vn(e.id)},We({item:C(({legend:e})=>[S(nn)?f(``,!0):(_(),p(`div`,{key:0,style:g(`opacity:${X.value.includes(e.id)?.5:1}`),onClick:t=>e.segregate()},x(e.name),13,Et))]),legendToggle:C(()=>[Z.value.length>2&&R.value.legend.selectAllToggle.show&&!S(nn)?(_(),d(Ve,{key:0,backgroundColor:R.value.legend.selectAllToggle.backgroundColor,color:R.value.legend.selectAllToggle.color,fontSize:R.value.legend.fontSize,checked:X.value.length>0,isCursorPointer:z.value,onToggle:_n},null,8,[`backgroundColor`,`color`,`fontSize`,`checked`,`isCursorPointer`])):f(``,!0)]),_:2},[e.$slots.pattern?{name:`legend-pattern`,fn:C(({legend:e,index:t})=>[Ke(Re,{shape:e.shape,radius:30,stroke:`none`,plot:{x:30,y:30},fill:`url(#pattern_${O.value}_${t})`},null,8,[`shape`,`fill`])]),key:`0`}:void 0]),1032,[`legendSet`,`config`,`isCursorPointer`])):f(``,!0)],!0)],512),e.$slots.source?(_(),p(`div`,{key:6,ref_key:`source`,ref:Bt,dir:`auto`},[b(e.$slots,`source`,{},void 0,!0)],512)):f(``,!0),It.value&&N.value.buttons.table?(_(),d($e($n.value.component),Je({key:7},$n.value.props,{ref_key:`tableUnit`,ref:Zt,onClose:er}),We({content:C(()=>[(_(),d(S(At),{key:`table_${Ut.value}`,colNames:$.value.colNames,head:$.value.head,body:$.value.body,config:$.value.config,title:M.value.table.useDialog?``:$n.value.title,withCloseButton:!M.value.table.useDialog,isCursorPointer:z.value,onClose:er},{th:C(({th:e})=>[m(`div`,null,x(e),1)]),td:C(({td:e})=>[Ge(x(e.name?e.name:S(pe)(F.value.labels.formatter,e,S(c)({p:R.value.xAxis.labels.prefix,v:e,s:R.value.xAxis.labels.suffix,r:M.value.table.td.roundingValue}))),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[M.value.table.useDialog?{name:`title`,fn:C(()=>[Ge(x($n.value.title),1)]),key:`0`}:void 0,M.value.table.useDialog?{name:`actions`,fn:C(()=>[m(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:o[1]||=e=>Yn(N.value.callbacks.csv),style:g({cursor:z.value?`pointer`:`default`})},[Ke(S(Ot),{name:`fileCsv`,stroke:$n.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):f(``,!0),R.value.dialog.show?(_(),d(S(Pt),{key:8,ref_key:`dialog`,ref:Jt,onClose:o[2]||=e=>A.value=null,backgroundColor:R.value.dialog.backgroundColor,color:R.value.dialog.color,headerBg:R.value.dialog.header.backgroundColor,headerColor:R.value.dialog.header.color,isFullscreen:Q.value,fullscreenParent:T.value,isCursorPointer:z.value,withPadding:``},{title:C(()=>[Ge(x(A.value.name),1)]),content:C(()=>[A.value?(_(),d(S(Dt),{key:0,config:zn.value,dataset:Bn.value,onCopyAlt:cr},null,8,[`config`,`dataset`])):f(``,!0)]),_:1},8,[`backgroundColor`,`color`,`headerBg`,`headerColor`,`isFullscreen`,`fullscreenParent`,`isCursorPointer`])):f(``,!0),b(e.$slots,`skeleton`,{},()=>[S(nn)?(_(),d(ze,{key:0})):f(``,!0)],!0)],46,at))}},[[`__scopeId`,`data-v-58694d85`]]);export{it as n,Dt as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./userOptionsSlots-CWtXN5Q6.js";import{n as i,r as a,t as ee}from"./annotationSlots-OLiW25XN.js";import{n as te,t as ne}from"./tableIntegration-CNoJ1CIY.js";import{t as re}from"./chartImage-DPGnEuYM.js";import{$ as o,D as ie,Dt as ae,Ht as oe,J as se,Jt as ce,S as le,X as ue,Yt as de,at as fe,i as pe,in as me,nt as he,t as ge,w as _e,yt as ve}from"./lib-rPeBMZrn.js";import{t as ye}from"./labelUtils-CdtU-yB_.js";import{n as be,t as xe}from"./useHints-C-TwxM0Y.js";import{t as Se}from"./useConfig-9oDGTWWG.js";import{n as Ce}from"./resolveChartConfig-0IvbmIE_.js";import{t as we}from"./usePrinter-DVf3YcG5.js";import{t as Te}from"./useResponsive-CENUxfEL.js";import{t as Ee}from"./useChartExport-BZts4KFb.js";import{t as De}from"./useTransitions-ChGGrtrv.js";import{t as Oe}from"./useChartAccessibility-DOMuYJfm.js";import{t as ke}from"./Shape-CRe8woTu.js";import{n as Ae}from"./Title-BliHuXfT.js";import{t as je}from"./vue_ui_rings-C0puwNW1.js";import{t as Me}from"./Legend-W9YVYVX-.js";import{t as Ne}from"./BaseScanner-m6QR9rwD.js";import{t as Pe}from"./A11yDataTable-DWNlWXzs.js";import{t as Fe}from"./BaseLegendToggle-VzX69MCo.js";import{t as Ie}from"./DefGrad-DKMq1REY.js";import{t as Le}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{Fragment as Re,Teleport as ze,computed as s,createBlock as c,createCommentVNode as l,createElementBlock as u,createElementVNode as d,createSlots as Be,createTextVNode as Ve,createVNode as f,defineAsyncComponent as p,guardReactiveProps as m,mergeProps as He,nextTick as Ue,normalizeClass as h,normalizeProps as g,normalizeStyle as We,onBeforeUnmount as Ge,onMounted as Ke,openBlock as _,ref as v,renderList as qe,renderSlot as y,resolveDynamicComponent as Je,shallowRef as Ye,toDisplayString as Xe,unref as b,useSlots as Ze,watch as x,withCtx as S,withModifiers as Qe}from"vue";var $e=/* @__PURE__ */ e({default:()=>xt}),et=[`id`],tt=[`id`],nt=[`id`],rt={style:{position:`relative`}},it=[`xmlns`,`viewBox`,`aria-describedby`],at=[`width`,`height`],ot={key:1},st=[`onAnimationend`],ct=[`stroke`,`cx`,`cy`,`r`,`fill`],lt=[`stroke`,`stroke-width`,`cx`,`cy`,`r`,`fill`],ut=[`stroke`,`stroke-width`,`cx`,`cy`,`r`,`fill`],dt=[`cx`,`cy`,`r`,`onMouseenter`,`onMouseleave`,`onClick`],ft=[`x`,`y`,`width`,`height`,`fill`,`rx`],pt=[`cx`,`cy`,`r`,`fill`,`stroke`],mt=[`text-anchor`,`font-size`,`fill`,`font-weight`,`transform`,`onMouseenter`,`onMouseleave`,`onClick`,`innerHTML`],ht={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},gt={key:5,class:`vue-data-ui-watermark`},_t=[`id`],vt=[`onClick`],yt={key:0},bt={key:1},xt=/*#__PURE__*/ Le({__name:`vue-ui-rings`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`selectLegend`,`copyAlt`],setup(e,{expose:Le,emit:$e}){let xt=p(()=>import(`./Tooltip-B432XpvC.js`)),St=p(()=>import(`./BaseIcon-CoY0vuL3.js`).then(e=>e.n)),Ct=p(()=>import(`./vue-ui-accordion-CnAwFOgA.js`).then(e=>e.n)),wt=p(()=>import(`./DataTable-KeuZB1JM.js`)),Tt=p(()=>import(`./PenAndPaper-BV5ODysA.js`).then(e=>e.t)),Et=p(()=>import(`./UserOptions-K1N7zQRx.js`).then(e=>e.n)),Dt=p(()=>import(`./PackageVersion-B9qiUJPH.js`).then(e=>e.t)),Ot=p(()=>import(`./BaseDraggableDialog-DVstuNhT.js`).then(e=>e.n)),{vue_ui_rings:kt}=Se(),At=Ze(),C=e;function jt(e){return Array.isArray(e)&&e.length>0&&Array.from(e,e=>e&&Object.keys(e).includes(`name`)&&Array.isArray(e.values)&&e.values.length>0).every(Boolean)}let Mt=s(()=>jt(C.dataset)),w=v(ue()),Nt=v(!1),Pt=v(``),T=v(null),Ft=v(0),E=v(null),It=v(null),Lt=v(null),Rt=v(null),zt=v(null),Bt=v(!1),Vt=v(!1),Ht=v(null),Ut=v(null),D=v(null),Wt=v({x:0,y:0}),Gt=v(`pointer`),Kt=v(!1),O=v(Qt());x(()=>C.config,()=>{O.value=Qt()},{deep:!0});let k=s(()=>!!C.config.loading||!Mt.value),A=s(()=>k.value?me({defaultConfig:O.value,userConfig:qt.value}):O.value),qt=s(()=>me({defaultConfig:{userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,layout:{rings:{stroke:`#6A6A6A`,gradient:{underlayerColor:`#FFFFFF`}},labels:{dataLabels:{show:!1}}},legend:{backgroundColor:`transparent`}}}},userConfig:O.value.skeletonConfig??{}})),j=s(()=>A.value.userOptions),M=s(()=>A.value.style.chart.layout.rings),N=s(()=>A.value.style.chart.layout.labels),P=s(()=>A.value.style.chart.tooltip),F=s(()=>A.value.style.chart);be({config:()=>A.value,dataset:()=>C.dataset,component:`VueUiRings`,rules:[xe.singleSeries,xe.emptyArray,{test:e=>e.length>6,message:[`👀 The number of series is > 6. Consider:`,``,`▶️ Grouping small values dynamically into a single "Other" series.`,``,`▶️ Using filters to let users choose a maximum number of series to display.`,``,`▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read.`]}]});let{transitionEnabled:I}=De({config:()=>A.value.transitions,dataset:()=>C.dataset}),L=s(()=>A.value.userOptions.useCursorPointer),Jt=s(()=>k.value?jt(C.config.skeletonDataset)?C.config.skeletonDataset:[{name:`_`,values:[13],color:`#808080`},{name:`_`,values:[8],color:`#969696`},{name:`_`,values:[5],color:`#ADADAD`},{name:`_`,values:[3],color:`#C4C4C4`},{name:`_`,values:[2],color:`#DBDBDB`}]:C.dataset),Yt=v(!A.value.userOptions.showOnChartHover),Xt=s(()=>A.value.userOptions.keepStateOnChartLeave);function Zt(e=!1){A.value.userOptions.showOnChartHover&&(Yt.value=e)}x(()=>A.value.userOptions.showOnChartHover,e=>{Yt.value=!e});let{svgRef:R}=Oe({config:F.value.title});function Qt(){return Ce(C.config,kt,je)}let $t=s(()=>{let{markers:e}=N.value.dataLabels,t=Pn.value/2,n=pn.value?e.position===`left`?t:-t:0,r=pn.value?U.value.width/2-t:0,i=e.position===`left`?r:-r;return{x:A.value.responsive?i:n/F.value.size*U.value.width,y:0/F.value.size*U.value.height}}),z=s(()=>({x:U.value.width/2+$t.value.x,y:U.value.height/2+$t.value.y})),en=Ye(null),tn=Ye(null),B=null,nn=!1,V=s(()=>O.value.debug);function rn(){!Array.isArray(C.dataset)||!C.dataset.length?fe({componentName:`VueUiRings`,type:`dataset`,debug:V.value}):Array.from(C.dataset).forEach((e,t)=>{ve({datasetObject:e??{},requiredAttributes:[`name`,`values`]}).forEach(e=>{fe({componentName:`VueUiRings`,type:`datasetSerieAttribute`,property:e,index:t,debug:V.value})}),V.value&&(Array.isArray(e?.values)?e.values.length||fe({componentName:`VueUiRings`,type:`dataset`,debug:!0}):e&&Object.keys(e).includes(`values`)&&console.warn(`VueUiRings: dataset[${t}].values must be an array.`))})}x([()=>C.dataset,V],rn,{immediate:!0,deep:!0});function an(){en.value?.disconnect(),en.value=null,B!==null&&cancelAnimationFrame(B),B=null,Bt.value=!1}function on(){if(an(),tn.value=null,!A.value.responsive||!E.value?.parentNode)return;let e=new ResizeObserver(t);function t(){nn||en.value!==e||(B!==null&&cancelAnimationFrame(B),Bt.value=!0,B=requestAnimationFrame(()=>{if(nn||en.value!==e)return;B=null;let{width:t,height:n}=Te({chart:E.value,title:F.value.title.text?It.value:null,legend:F.value.legend.show?Lt.value:null,source:Rt.value,noTitle:zt.value});tn.value={width:Math.max(.1,t),height:Math.max(.1,n-12)},Bt.value=!1}))}en.value=e;for(let t of[E.value.parentNode,It.value,Lt.value,Rt.value,zt.value])t&&e.observe(t);t()}x([()=>A.value.responsive,It,Lt,Rt,zt,()=>F.value.title.text,()=>F.value.legend.show,()=>F.value.legend.position],on,{flush:`post`}),Ke(()=>{Vt.value=!0,on()}),Ge(()=>{nn=!0,an()});let{isPrinting:sn,isImaging:cn,generatePdf:ln,generateImage:un}=we({elementId:`rings_${w.value}`,fileName:F.value.title.text||`vue-ui-rings`,options:A.value.userOptions.print}),dn=s(()=>A.value.userOptions.show&&!F.value.title.text),fn=s(()=>_e(A.value.customPalette)),H=v({showTable:O.value.table.show,showTooltip:O.value.style.chart.tooltip.show,showLabels:O.value.style.chart.layout.labels.dataLabels.show});x(()=>O.value.table.show,e=>{H.value.showTable=e}),x(()=>O.value.style.chart.tooltip.show,e=>{H.value.showTooltip=e}),x(()=>O.value.style.chart.layout.labels.dataLabels.show,e=>{H.value.showLabels=e});let pn=s(()=>k.value?N.value.dataLabels.show:H.value.showLabels),U=s(()=>tn.value??{height:F.value.size,width:F.value.size}),mn=s(()=>Math.min(U.value.height,U.value.width)),hn=$e,gn=v(/* @__PURE__ */ new Set);function _n(e){gn.value.add(e)}function vn(){G.value.forEach(e=>_n(e.uid))}let W=v([]);function yn(){k.value||(vn(),W.value.length?W.value=[]:jn.value.forEach(e=>{W.value.push(e.uid)}),bn())}function bn(){hn(`selectLegend`,q.value.map(e=>({name:e.name,color:e.color,value:e.value})))}function xn(e){if(!k.value){if(vn(),W.value.includes(e))W.value=W.value.filter(t=>t!==e);else{if(W.value.length===G.value.length-1)return;W.value.push(e)}bn()}}function Sn(e){return G.value.length?G.value.find(t=>t.name===e)||(V.value&&console.warn(`VueUiRings - Series name not found "${e}"`),null):(V.value&&console.warn(`VueUiRings - There are no series to show.`),null)}function Cn(e){let t=Sn(e);t!==null&&W.value.includes(t.uid)&&xn(t.uid)}function wn(e){let t=Sn(e);t!==null&&(W.value.includes(t.uid)||xn(t.uid))}let Tn=/* @__PURE__ */ new Map,En=s(()=>{let e=/* @__PURE__ */ new Map,t=/* @__PURE__ */ new Set,n=Jt.value.map((n,r)=>{let i=e.get(n.name)??0;e.set(n.name,i+1);let a=JSON.stringify([k.value,n.name,i]);return t.add(a),Tn.has(a)||Tn.set(a,ue()),{name:n.name,color:n.color,absoluteValues:n.values,value:n.values.reduce((e,t)=>e+(Number.isFinite(t)?t:0),0),uid:Tn.get(a),absoluteIndex:r}});for(let e of Tn.keys())e.startsWith(`[${k.value},`)&&!t.has(e)&&Tn.delete(e);let r=n.reduce((e,t)=>e+t.value,0);return n.map(e=>({...e,proportion:Dn(e.value,r)}))});function Dn(e,t){let n=e/t;return Number.isFinite(n)?n:0}let G=s(()=>En.value.map((e,t)=>({...e,color:e.color||le(e.color)||fn.value[t]||oe[t%oe.length]}))),On=s(()=>G.value.filter(e=>!W.value.includes(e.uid))),kn=s(()=>On.value.reduce((e,t)=>Math.max(e,t.value),-1/0));function An(e){return Dn(e,kn.value)}let jn=s(()=>G.value.map((e,t)=>{let n=pe(N.value.dataLabels.formatter,e.value,o({p:N.value.dataLabels.prefix,v:e.value,s:N.value.dataLabels.suffix,r:F.value.legend.roundingValue}),{datapoint:e,index:t}),r=Number.isFinite(e.value/K.value)?o({v:e.value/K.value*100,s:`%`,r:F.value.legend.roundingPercentage}):`-`,i=Ln({showVal:F.value.legend.showValue,showPercentage:F.value.legend.showPercentage,val:n,percentage:W.value.includes(e.uid)?`-%`:r});return{...e,shape:`circle`,opacity:W.value.includes(e.uid)?.5:1,segregate:()=>xn(e.uid),isSegregated:W.value.includes(e.uid),display:`${e.name}${F.value.legend.showPercentage||F.value.legend.showValue?`: `:``}${i}`}}).toSorted((e,t)=>t.value-e.value)),Mn=s(()=>({cy:`rings-div-legend`,backgroundColor:F.value.legend.backgroundColor,color:F.value.legend.color,fontSize:F.value.legend.fontSize,paddingBottom:12,fontWeight:F.value.legend.bold?`bold`:``})),K=s(()=>On.value.reduce((e,t)=>e+t.value,0)),q=s(()=>On.value.map(e=>({...e,proportion:An(e.value),percentage:Dn(e.value,K.value)*100,strokeWidth:M.value.strokeWidth*An(e.value)})).toSorted((e,t)=>t.value-e.value));x(()=>En.value.map(e=>e.uid),e=>{k.value||(W.value=W.value.filter(t=>e.includes(t)))});function Nn(){return q.value.map(({name:e,color:t,value:n,absoluteValues:r,percentage:i})=>({name:e,color:t,value:n,absoluteValues:r,percentage:i}))}let Pn=s(()=>mn.value-M.value.strokeWidth*2);function Fn(e,t){k.value||A.value.events.datapointClick&&A.value.events.datapointClick({datapoint:e,seriesIndex:t})}function J(){Un.value=null,T.value=null,Nt.value=!1,D.value=null,Gt.value=`pointer`,Y.value=null,Pt.value=``}function In(e,t){k.value||(J(),A.value.events.datapointLeave&&A.value.events.datapointLeave({datapoint:e,seriesIndex:t}))}function Ln({val:e,percentage:t,showVal:n,showPercentage:r}){let i=N.value.dataLabels;return ye({config:i,val:e,percentage:t,showVal:n,showPercentage:r})}function Rn(e){let t=N.value.dataLabels,n=pe(t.formatter,e.value,o({p:t.prefix,v:e.value,s:t.suffix,r:t.roundingValue})),r=o({v:e.percentage,s:`%`,r:t.roundingPercentage});return`${e.name}\n${Ln({val:n,percentage:r,showVal:t.showValue,showPercentage:t.showPercentage})}`}function zn(e){return Math.max(1e-4,Pn.value*e.proportion/2*.9)}let Bn=s(()=>z.value.y+(q.value.length?zn(q.value[0]):0));function Vn(e){return Bn.value-zn(e)}function Hn(e,t){let n=N.value.dataLabels.markers.position===`left`?-(Pn.value/2):Pn.value/2;return{x:z.value.x+n,y:Vn(e,t)-zn(e)}}let Y=v(null),Un=v(null);function Wn(e,t,n=`pointer`,r=!0){if(k.value||!e||(r&&A.value.events.datapointEnter&&A.value.events.datapointEnter({datapoint:e,seriesIndex:t}),W.value.length===C.dataset.length))return;Y.value={datapoint:e,seriesIndex:t,series:q.value,config:A.value},Un.value=e.uid,T.value=t,D.value=t,Gt.value=n;let i=q.value[t],a=P.value.customFormat,ee=ae(a)?a(Y.value):null;if(typeof ee==`string`)Pt.value=ee;else{let n=``;n+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${P.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${i.name}</div>`,n+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${i.color}" />${At.pattern?`<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${w.value}_${e.absoluteIndex})" />`:``}</svg>`,n+=`<b>${Ln({showVal:P.value.showValue,showPercentage:P.value.showPercentage,val:`<span>${pe(N.value.dataLabels.formatter,i.value,o({p:N.value.dataLabels.prefix,v:i.value,s:N.value.dataLabels.suffix,r:P.value.roundingValue}),{datapoint:e,seriesIndex:t})}</span>`,percentage:o({v:i.percentage,s:`%`,r:P.value.roundingPercentage})})}</b></div>`,Pt.value=n}Nt.value=!0}let X=s(()=>({head:q.value.map(e=>({name:e.name,color:e.color})),body:q.value.map(e=>e.value)})),Z=s(()=>{let e=[`__SUM__`,o({p:N.value.dataLabels.prefix,v:K.value,s:N.value.dataLabels.suffix,r:A.value.table.td.roundingValue}),`100%`],t=X.value.head.map((e,t)=>[{color:e.color,name:e.name},o({p:N.value.dataLabels.prefix,v:X.value.body[t],s:N.value.dataLabels.suffix,r:A.value.table.td.roundingValue}),Number.isFinite(X.value.body[t]/K.value)?(X.value.body[t]/K.value*100).toFixed(A.value.table.td.roundingPercentage)+`%`:`-`]);return{head:e,body:t,a11yBody:t.map(e=>e.map((e,t)=>t===0?e.name:e)),config:{th:{backgroundColor:A.value.table.th.backgroundColor,color:A.value.table.th.color,outline:A.value.table.th.outline},td:{backgroundColor:A.value.table.td.backgroundColor,color:A.value.table.td.color,outline:A.value.table.td.outline},breakpoint:A.value.table.responsiveBreakpoint},colNames:[A.value.table.columnNames.series,A.value.table.columnNames.value,A.value.table.columnNames.percentage]}});function Gn(e=null){Ue(()=>{let t=X.value.head.map((e,t)=>[[e.name],[X.value.body[t]],[Number.isFinite(X.value.body[t]/K.value)?X.value.body[t]/K.value*100:`-`]]),n=[[F.value.title.text],[F.value.title.subtitle.text],[[A.value.table.columnNames.series],[A.value.table.columnNames.value],[A.value.table.columnNames.percentage]]].concat(t),r=ie(n);e?e(r):he({csvContent:r,title:F.value.title.text||`vue-ui-rings`})})}let Q=v(!1);function Kn(e){Q.value=e,Ft.value+=1}function qn(){H.value.showTable=!H.value.showTable}function Jn(){H.value.showTooltip=!H.value.showTooltip}function Yn(){H.value.showLabels=!pn.value}let Xn=v(!1);function Zn(){Xn.value=!Xn.value}let Qn=re(E,()=>F.value.title.text),$n=s(()=>ne({config:A,style:F,mutableConfig:H,dialog:Ot,accordion:Ct,isFullscreen:Q,parent:E,maxWidth:800,isCursorPointer:L}));x([()=>H.value.showTable,Ht,()=>A.value.table.useDialog],([e])=>{Ht.value&&te(e,A,Ht)},{flush:`post`});function er(){H.value.showTable=!1,Ut.value&&Ut.value.setTableIconState(!1)}let tr=s(()=>jn.value.map(e=>({...e,name:e.display}))),nr=s(()=>F.value.backgroundColor),rr=s(()=>F.value.legend),ir=s(()=>F.value.title),{isCallbackImaging:ar,isCallbackSvg:or,generateSvg:sr,onGenerateImage:cr}=Ee({svg:R,title:ir,legend:rr,legendItems:tr,backgroundColor:nr,getSvgCallback:()=>A.value.userOptions.callbacks.svg,generateImage:un});async function lr(){hn(`copyAlt`,{config:A.value,dataset:q.value}),A.value.userOptions.callbacks.altCopy?await Promise.resolve(A.value.userOptions.callbacks.altCopy({config:A.value,dataset:q.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function ur(){J(),Kt.value=!0}function dr(){J(),Kt.value=!1}function fr(e){if(!R.value||Xn.value||k.value||document.activeElement!==R.value||!q.value.length||W.value.length===C.dataset.length)return;let t=[`ArrowLeft`,`ArrowUp`].includes(e.key),n=[`ArrowRight`,`ArrowDown`].includes(e.key),r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){J();return}if(r){if(D.value===null)return;let e=q.value[D.value];if(!e)return;Fn(e,D.value);return}let a=D.value;a===null||a<0||a>=q.value.length?a=n?0:q.value.length-1:n?(a+=1,a>=q.value.length&&(a=0)):t&&(--a,a<0&&(a=q.value.length-1));let ee=q.value[a];ee&&(pr(a),Wn(ee,a,`keyboard`))}function pr(e){if(!Number.isFinite(e)||!R.value)return;let t=q.value[e];if(!t)return;let n=Hn(t,e),r=R.value.getBoundingClientRect();Wt.value={x:r.left+n.x/U.value.width*r.width,y:r.top+n.y/U.value.height*r.height}}x([q,U,z,P,()=>A.value],()=>{if(Un.value===null)return;let e=q.value.findIndex(e=>e.uid===Un.value);k.value||e<0?J():(Gt.value===`keyboard`&&pr(e),Wn(q.value[e],e,Gt.value,!1))},{flush:`post`});let mr=s(()=>q.value.map(Rn)),$=s(()=>q.value.map((e,t)=>({radius:zn(e),y:Vn(e,t),marker:Hn(e,t)}))),hr=s(()=>({headers:Z.value?.colNames??[],rows:Z.value?.a11yBody??[]}));return Le({getData:Nn,getImage:Qn,generatePdf:ln,generateCsv:Gn,generateImage:un,generateSvg:sr,hideSeries:wn,showSeries:Cn,toggleTable:qn,toggleTooltip:Jn,toggleAnnotator:Zn,toggleFullscreen:Kn,toggleLabels:Yn,copyAlt:lr}),(e,te)=>(_(),u(`div`,{ref_key:`ringsChart`,ref:E,class:h(`vue-data-ui-component vue-ui-rings ${Q.value?`vue-data-ui-wrapper-fullscreen`:``} ${A.value.useCssAnimation?``:`vue-ui-dna`}`),style:We(`font-family:${A.value.style.fontFamily};text-align:center;width:100%;background:${F.value.backgroundColor};${A.value.responsive?`height: 100%`:``}`),id:`rings_${w.value}`,onMouseleave:te[2]||=e=>{J(),Zt(!1)},onMouseenter:te[3]||=()=>Zt(!0)},[d(`div`,{id:`chart-instructions-${w.value}`,class:`sr-only`},[d(`p`,null,Xe(A.value.a11y.translations.keyboardNavigation),1)],8,tt),A.value.a11y.includeTable&&hr.value?.rows?.length?(_(),c(Pe,{key:0,uid:w.value,head:hr.value.headers,body:hr.value.rows,notice:A.value.a11y.translations.tableAvailable,caption:A.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):l(``,!0),j.value.buttons.annotator?(_(),c(b(Tt),He({key:1},b(a)(j.value.annotator),{svgRef:b(R),backgroundColor:F.value.backgroundColor,color:F.value.color,active:Xn.value,isCursorPointer:L.value,palette:j.value.annotatorPalette,onClose:Zn}),Be({_:2},[qe(b(ee),t=>({name:t,fn:S(n=>[y(e.$slots,t,g(m(b(i)(t,n))),void 0,!0)])}))]),1040,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):l(``,!0),dn.value?(_(),u(`div`,{key:2,ref_key:`noTitle`,ref:zt,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):l(``,!0),F.value.title.text?(_(),u(`div`,{key:3,ref_key:`chartTitle`,ref:It,style:`width:100%;background:transparent`},[f(Ae,{config:{title:{cy:`rings-div-title`,...F.value.title},subtitle:{cy:`rings-div-subtitle`,...F.value.title.subtitle}}},null,8,[`config`])],512)):l(``,!0),d(`div`,{id:`legend-top-${w.value}`},null,8,nt),j.value.show&&Mt.value&&(Xt.value||Yt.value)?(_(),c(b(Et),He({ref_key:`userOptionsRef`,ref:Ut,key:`user_options_${Ft.value}`,backgroundColor:F.value.backgroundColor,color:F.value.color,isPrinting:b(sn),isImaging:b(cn),uid:w.value,hasTooltip:j.value.buttons.tooltip&&P.value.show,isTooltip:H.value.showTooltip,isFullscreen:Q.value,chartElement:E.value},b(n)(j.value,`pdf csv img svg labels table fullscreen altCopy annotator`),{isAnnotation:Xn.value,tableDialog:A.value.table.useDialog,isCursorPointer:L.value,onToggleFullscreen:Kn,onGeneratePdf:b(ln),onGenerateCsv:Gn,onGenerateImage:b(cr),onGenerateSvg:b(sr),onToggleTable:qn,onToggleTooltip:Jn,onToggleAnnotator:Zn,onToggleLabels:Yn,onCopyAlt:lr,style:{visibility:Xt.value?Yt.value?`visible`:`hidden`:`visible`}}),Be({_:2},[qe(b(t)(e.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionLabels optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:S(n=>[y(e.$slots,t,g(m(b(r)(t,n))),void 0,!0)])}))]),1040,[`backgroundColor`,`color`,`isPrinting`,`isImaging`,`uid`,`hasTooltip`,`isTooltip`,`isFullscreen`,`chartElement`,`isAnnotation`,`tableDialog`,`isCursorPointer`,`onGeneratePdf`,`onGenerateImage`,`onGenerateSvg`,`style`])):l(``,!0),d(`div`,rt,[(_(),u(`svg`,{ref_key:`svgRef`,ref:R,xmlns:b(ge),class:h({"vue-data-ui-fullscreen--on":Q.value,"vue-data-ui-fulscreen--off":!Q.value,resizing:Bt.value||k.value,"vue-data-ui-no-transition":!b(I)}),viewBox:`0 0 ${U.value.width<=0?10:U.value.width} ${U.value.height<=0?10:U.value.height}`,style:We(`max-width:100%;overflow:hidden;background:transparent;color:${F.value.color}`),"aria-describedby":`chart-instructions-${w.value}`,tabindex:`0`,onFocus:ur,onBlur:dr,onKeydown:fr},[f(b(Dt)),y(e.$slots,`svg-underlayer`,{svg:{...U.value,isPrintingImg:b(sn)||b(cn)||b(ar),isPrintingSvg:b(or)}},void 0,!0),e.$slots[`chart-background`]?(_(),u(`foreignObject`,{key:0,x:0,y:0,width:U.value.width<=0?10:U.value.width,height:U.value.height<=0?10:U.value.height,style:{pointerEvents:`none`}},[y(e.$slots,`chart-background`,{},void 0,!0)],8,at)):l(``,!0),d(`defs`,null,[(_(!0),u(Re,null,qe(q.value,(e,t)=>(_(),c(Ie,{t:`radial`,cx:`50%`,cy:`30%`,r:`50%`,fx:`50%`,fy:`50%`,id:`gradient_${w.value}_${t}`,key:`gradient_${w.value}_${t}`,stops:[[`0%`,b(ce)(b(de)(e.color,.05),100-M.value.gradient.intensity),1],[`100%`,e.color,1]]},null,8,[`id`,`stops`]))),128))]),e.$slots.pattern?(_(),u(`g`,ot,[(_(!0),u(Re,null,qe(G.value,t=>(_(),u(`defs`,null,[y(e.$slots,`pattern`,He({ref_for:!0},{seriesIndex:t.absoluteIndex,patternId:`pattern_${w.value}_${t.absoluteIndex}`}),void 0,!0)]))),256))])):l(``,!0),(_(!0),u(Re,null,qe(q.value,(t,n)=>(_(),u(`g`,{key:`r_${t.uid}`,onAnimationend:Qe(e=>_n(t.uid),[`self`]),class:h({"vue-rings-item-onload":A.value.useCssAnimation&&A.value.transitions.enable&&!k.value&&!gn.value.has(t.uid)}),style:We({transformOrigin:`${z.value.x}px ${Bn.value}px`,animationDelay:`${(q.value.length-1-n)*100}ms`})},[d(`circle`,{class:h({"vue-data-ui-transition":b(I),"vue-ui-rings-opacity":A.value.useBlurOnHover&&T.value!==null&&T.value!==n}),stroke:M.value.stroke,cx:z.value.x,cy:$.value[n].y,r:$.value[n].radius,fill:M.value.gradient.underlayerColor},null,10,ct),d(`circle`,{class:h({"vue-data-ui-transition":b(I),"vue-ui-rings-shadow":M.value.useShadow,"vue-ui-rings-blur":A.value.useBlurOnHover&&T.value!==null&&T.value!==n}),stroke:M.value.stroke,"stroke-width":t.strokeWidth<.5?.5:t.strokeWidth,cx:z.value.x,cy:$.value[n].y,r:$.value[n].radius,fill:M.value.gradient.show?`url(#gradient_${w.value}_${n})`:t.color},null,10,lt),e.$slots.pattern?(_(),u(`circle`,{key:0,class:h({"vue-data-ui-transition":b(I),"vue-ui-rings-shadow":M.value.useShadow,"vue-ui-rings-blur":A.value.useBlurOnHover&&T.value!==null&&T.value!==n}),stroke:M.value.stroke,"stroke-width":t.strokeWidth<.5?.5:t.strokeWidth,cx:z.value.x,cy:$.value[n].y,r:$.value[n].radius,fill:`url(#pattern_${w.value}_${t.absoluteIndex})`},null,10,ut)):l(``,!0),d(`circle`,{stroke:`none`,cx:z.value.x,cy:$.value[n].y,r:$.value[n].radius,fill:`transparent`,onMouseenter:e=>Wn(t,n,`pointer`),onMouseleave:e=>In(t,n),onClick:e=>Fn(t,n)},null,40,dt),pn.value?(_(),u(Re,{key:1},[d(`rect`,{x:N.value.dataLabels.markers.position===`left`?$.value[n].marker.x:z.value.x,y:$.value[n].marker.y-N.value.dataLabels.markers.strokeWidth/2,width:Math.abs(z.value.x-$.value[n].marker.x),height:N.value.dataLabels.markers.strokeWidth,fill:N.value.dataLabels.markers.stroke,rx:N.value.dataLabels.markers.strokeWidth,class:h({"vue-data-ui-transition":b(I),"vue-ui-rings-shadow":M.value.useShadow,"vue-ui-rings-blur":A.value.useBlurOnHover&&T.value!==null&&T.value!==n})},null,10,ft),d(`circle`,{cx:$.value[n].marker.x,cy:$.value[n].marker.y,r:N.value.dataLabels.markers.radius,fill:t.color,stroke:F.value.backgroundColor,class:h({"vue-data-ui-transition":b(I),"vue-ui-rings-shadow":M.value.useShadow,"vue-ui-rings-blur":A.value.useBlurOnHover&&T.value!==null&&T.value!==n})},null,10,pt),d(`text`,{"text-anchor":N.value.dataLabels.markers.position===`left`?`end`:`start`,"font-size":N.value.dataLabels.fontSize,fill:N.value.dataLabels.color,"font-weight":N.value.dataLabels.bold?`bold`:`normal`,class:h({"vue-data-ui-transition":b(I),"vue-ui-rings-shadow":M.value.useShadow,"vue-ui-rings-blur":A.value.useBlurOnHover&&T.value!==null&&T.value!==n}),transform:`translate(${$.value[n].marker.x+(N.value.dataLabels.markers.position===`left`?-N.value.dataLabels.offsetX-14:N.value.dataLabels.offsetX)+6}, ${$.value[n].marker.y+N.value.dataLabels.fontSize/3})`,onMouseenter:e=>Wn(t,n,`pointer`),onMouseleave:e=>In(t,n),onClick:e=>Fn(t,n),innerHTML:b(se)({content:mr.value[n],fontSize:N.value.dataLabels.fontSize,fill:N.value.dataLabels.color,x:0,y:0,translateY:!0})},null,42,mt)],64)):l(``,!0)],46,st))),128)),y(e.$slots,`svg`,{svg:{...U.value,isPrintingImg:b(sn)||b(cn)||b(ar),isPrintingSvg:b(or)}},void 0,!0)],46,it)),e.$slots.hint?(_(),u(`div`,ht,[y(e.$slots,`hint`,g(m({hint:A.value.a11y.translations.keyboardNavigation,isVisible:Kt.value})),void 0,!0)])):l(``,!0)]),e.$slots.watermark?(_(),u(`div`,gt,[y(e.$slots,`watermark`,g(m({isPrinting:b(sn)||b(cn)||b(ar)||b(or)})),void 0,!0)])):l(``,!0),d(`div`,{id:`legend-bottom-${w.value}`},null,8,_t),Vt.value&&(F.value.legend.show||e.$slots.legend)?(_(),c(ze,{key:6,to:F.value.legend.position===`top`?`#legend-top-${w.value}`:`#legend-bottom-${w.value}`},[d(`div`,{ref_key:`chartLegend`,ref:Lt},[y(e.$slots,`legend`,{legend:jn.value},()=>[F.value.legend.show?(_(),c(Me,{key:0,legendSet:jn.value,config:Mn.value,isCursorPointer:L.value,onClickMarker:te[0]||=({legend:e})=>xn(e.uid)},Be({item:S(({legend:e,index:t})=>[k.value?l(``,!0):(_(),u(`div`,{key:0,onClick:t=>xn(e.uid),style:We(`opacity:${W.value.includes(e.uid)?.5:1}`)},Xe(e.display),13,vt))]),legendToggle:S(()=>[jn.value.length>2&&F.value.legend.selectAllToggle.show&&!k.value?(_(),c(Fe,{key:0,backgroundColor:F.value.legend.selectAllToggle.backgroundColor,color:F.value.legend.selectAllToggle.color,fontSize:F.value.legend.fontSize,checked:W.value.length>0,isCursorPointer:L.value,onToggle:yn},null,8,[`backgroundColor`,`color`,`fontSize`,`checked`,`isCursorPointer`])):l(``,!0)]),_:2},[e.$slots.pattern?{name:`legend-pattern`,fn:S(({legend:e,index:t})=>[f(ke,{shape:e.shape,radius:30,stroke:`none`,plot:{x:30,y:30},fill:`url(#pattern_${w.value}_${e.absoluteIndex})`},null,8,[`shape`,`fill`])]),key:`0`}:void 0]),1032,[`legendSet`,`config`,`isCursorPointer`])):l(``,!0)],!0)],512)],8,[`to`])):l(``,!0),e.$slots.source?(_(),u(`div`,{key:7,ref_key:`source`,ref:Rt,dir:`auto`},[y(e.$slots,`source`,{},void 0,!0)],512)):l(``,!0),f(b(xt),{teleportTo:P.value.teleportTo,show:H.value.showTooltip&&Nt.value&&W.value.length<C.dataset.length,backgroundColor:P.value.backgroundColor,color:P.value.color,borderRadius:P.value.borderRadius,borderColor:P.value.borderColor,borderWidth:P.value.borderWidth,fontSize:P.value.fontSize,backgroundOpacity:P.value.backgroundOpacity,position:P.value.position,offsetX:P.value.offsetX,offsetY:P.value.offsetY,parent:E.value,content:Pt.value,isFullscreen:Q.value,isCustom:P.value.customFormat&&typeof P.value.customFormat==`function`,smooth:P.value.smooth,backdropFilter:P.value.backdropFilter,smoothForce:P.value.smoothForce,smoothSnapThreshold:P.value.smoothSnapThreshold,isA11yMode:Gt.value===`keyboard`,a11yPosition:Wt.value},{"tooltip-before":S(()=>[y(e.$slots,`tooltip-before`,g(m({...Y.value})),void 0,!0)]),tooltip:S(()=>[y(e.$slots,`tooltip`,g(m({...Y.value})),void 0,!0)]),"tooltip-after":S(()=>[y(e.$slots,`tooltip-after`,g(m({...Y.value})),void 0,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`borderRadius`,`borderColor`,`borderWidth`,`fontSize`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`isCustom`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),!k.value&&Mt.value&&j.value.buttons.table?(_(),c(Je($n.value.component),He({key:8},$n.value.props,{ref_key:`tableUnit`,ref:Ht,onClose:er}),Be({content:S(()=>[f(b(wt),{colNames:Z.value.colNames,head:Z.value.head,body:Z.value.body,config:Z.value.config,title:A.value.table.useDialog?``:$n.value.title,withCloseButton:!A.value.table.useDialog,isCursorPointer:L.value,onClose:er},{th:S(({th:e})=>[e===`__SUM__`?(_(),u(`div`,yt,[f(b(St),{name:`sigma`,stroke:Z.value.config.th.color,size:16},null,8,[`stroke`])])):(_(),u(`div`,bt,Xe(e),1))]),td:S(({td:e})=>[Ve(Xe(e.name||e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`])]),_:2},[A.value.table.useDialog?{name:`title`,fn:S(()=>[Ve(Xe($n.value.title),1)]),key:`0`}:void 0,A.value.table.useDialog?{name:`actions`,fn:S(()=>[d(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:te[1]||=e=>Gn(j.value.callbacks.csv),style:We({cursor:L.value?`pointer`:`default`})},[f(b(St),{name:`fileCsv`,stroke:$n.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):l(``,!0),y(e.$slots,`skeleton`,{},()=>[k.value?(_(),c(Ne,{key:0})):l(``,!0)],!0)],46,et))}},[[`__scopeId`,`data-v-5087967c`]]);export{$e as n,xt as t};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./userOptionsSlots-CWtXN5Q6.js";import{n as i,r as a,t as o}from"./annotationSlots-OLiW25XN.js";import{n as s,t as c}from"./tableIntegration-CNoJ1CIY.js";import{n as l}from"./resolveChartConfig-0IvbmIE_.js";import{$ as u,Ct as d,D as f,Dt as p,F as m,Ht as h,Jt as g,P as ee,Qt as te,S as ne,X as re,_ as ie,at as ae,b as oe,i as se,in as ce,jt as le,nt as ue,t as de,tn as fe,v as pe,w as me,yt as he,zt as ge}from"./lib-rPeBMZrn.js";import{n as _e,t as ve}from"./useHints-C-TwxM0Y.js";import{t as ye}from"./useSvgLabelLayout-42Kats14.js";import{t as be}from"./useConfig-9oDGTWWG.js";import{t as xe}from"./useLoading-BwiplGDB.js";import{t as Se}from"./usePrinter-DVf3YcG5.js";import{t as Ce}from"./useResponsive-CENUxfEL.js";import{t as we}from"./useChartExport-BZts4KFb.js";import{t as Te}from"./useTransitions-ChGGrtrv.js";import{t as Ee}from"./useUserOptionState-CXlFnwPv.js";import{t as De}from"./useChartAccessibility-DOMuYJfm.js";import{t as Oe}from"./chartImage-DPGnEuYM.js";import{t as ke}from"./Shape-CRe8woTu.js";import{n as Ae}from"./Title-BliHuXfT.js";import{t as je}from"./vue_ui_scatter-4as114Wa.js";import{t as Me}from"./Legend-W9YVYVX-.js";import{t as Ne}from"./BaseScanner-m6QR9rwD.js";import{t as Pe}from"./A11yDataTable-DWNlWXzs.js";import{t as Fe}from"./BaseLegendToggle-VzX69MCo.js";import{t as Ie}from"./DefGrad-DKMq1REY.js";import{t as Le}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{Fragment as _,Teleport as Re,computed as v,createBlock as y,createCommentVNode as b,createElementBlock as x,createElementVNode as S,createSlots as ze,createTextVNode as Be,createVNode as Ve,defineAsyncComponent as He,guardReactiveProps as Ue,mergeProps as We,nextTick as Ge,normalizeClass as Ke,normalizeProps as qe,normalizeStyle as Je,onBeforeUnmount as Ye,onMounted as Xe,openBlock as C,ref as w,renderList as T,renderSlot as E,resolveDynamicComponent as Ze,shallowRef as Qe,toDisplayString as D,toRefs as $e,unref as O,watch as et,withCtx as k}from"vue";var tt=/* @__PURE__ */ e({default:()=>vn}),nt=[`id`],rt=[`id`],it={key:0,class:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`},at=[`id`],ot={style:{position:`relative`}},st=[`xmlns`,`aria-describedby`,`viewBox`],ct=[`width`,`height`],lt={key:1},ut=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],dt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],ft={key:2},pt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],mt=[`opacity`],ht=[`stroke`,`stroke-width`,`d`],gt=[`transform`,`font-size`,`fill`,`stroke`],_t={key:4},vt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],yt=[`opacity`],bt=[`d`,`stroke`,`stroke-width`],xt=[`transform`,`font-size`,`fill`,`stroke`],St={key:6},Ct=[`data-cy`,`fill`,`stroke`,`stroke-width`,`rx`],wt=[`onMouseenter`],Tt={key:2,style:{"pointer-events":`none`}},Et=[`fill`,`fill-opacity`],Dt=[`stroke`,`stroke-dasharray`,`stroke-width`],Ot={key:0,style:{"pointer-events":`none`}},kt=[`d`,`stroke`,`stroke-width`],At=[`d`,`stroke`,`stroke-width`],jt=[`d`,`stroke`,`stroke-width`],Mt=[`d`,`stroke`,`stroke-width`],Nt={key:7},Pt=[`points`,`fill`,`stroke-width`,`stroke-dasharray`,`stroke`],Ft={key:0,class:`vue-ui-scatter-datapoint`},It=[`cx`,`cy`,`r`,`fill`,`stroke`,`stroke-width`,`onMouseover`,`onMouseleave`,`onClick`],Lt={key:1},Rt=[`transform`,`font-size`,`fill`,`onMouseover`,`onMouseleave`,`onClick`],zt=[`d`,`fill`,`stroke`,`stroke-width`,`stroke-opacity`],Bt={key:0,style:{"pointer-events":`none`}},Vt=[`x`,`y`,`width`,`height`],Ht={key:0,style:{"pointer-events":`none !important`}},Ut=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`],Wt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`],Gt=[`x`,`y`,`font-size`,`fill`,`font-weight`,`text-anchor`],Kt=[`x`,`y`,`font-size`,`fill`,`font-weight`],qt=[`x`,`y`,`font-size`,`fill`],Jt=[`x`,`y`,`font-size`,`fill`],Yt=[`cx`,`cy`,`r`,`fill`,`stroke`,`stroke-width`],Xt=[`cx`,`cy`,`r`,`fill`,`stroke`,`stroke-width`],Zt=[`x`,`y`,`font-size`,`fill`,`font-weight`,`text-anchor`],Qt=[`id`,`transform`,`font-size`,`font-weight`,`fill`],$t=[`font-size`,`fill`,`transform`],en=[`transform`,`font-size`,`fill`],tn=[`x`,`y`,`font-size`,`fill`],nn=[`x`,`y`,`font-size`,`fill`],rn=[`font-size`,`font-weight`,`fill`,`x`,`y`],an=[`id`],on=[`x`,`y`,`width`,`height`],sn={key:14,style:{pointerEvents:`none`}},cn=[`x1`,`x2`,`y1`,`y2`,`stroke-dasharray`,`stroke`,`stroke-width`,`clip-path`],ln=[`x`,`y`,`fill`,`font-size`,`font-weight`],un={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},dn={key:6,class:`vue-data-ui-watermark`},fn=[`id`],pn=[`onClick`],mn={key:0,style:{width:`100%`,display:`flex`,"align-items":`center`,"justify-content":`center`}},hn={viewBox:`0 0 20 20`,height:`20`,width:`20`,style:{overflow:`hidden`,background:`transparent`}},gn={key:0},_n=[`innerHTML`],vn=/*#__PURE__*/ Le({__name:`vue-ui-scatter`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`copyAlt`,`selectLegend`],setup(e,{expose:Le,emit:tt}){let vn=He(()=>import(`./Tooltip-B432XpvC.js`)),yn=He(()=>import(`./BaseIcon-CoY0vuL3.js`).then(e=>e.n)),bn=He(()=>import(`./vue-ui-accordion-CnAwFOgA.js`).then(e=>e.n)),xn=He(()=>import(`./DataTable-KeuZB1JM.js`)),Sn=He(()=>import(`./PenAndPaper-BV5ODysA.js`).then(e=>e.t)),Cn=He(()=>import(`./UserOptions-K1N7zQRx.js`).then(e=>e.n)),wn=He(()=>import(`./PackageVersion-B9qiUJPH.js`).then(e=>e.t)),Tn=He(()=>import(`./BaseDraggableDialog-DVstuNhT.js`).then(e=>e.n)),{vue_ui_scatter:En}=be(),A=e,Dn=tt,On=v(()=>!!A.dataset&&A.dataset.length),j=w(re()),kn=w(!1),An=w(``),jn=w(0),M=w(null),Mn=w(null),Nn=w(null),Pn=w(null),Fn=w(null),In=w(0),Ln=w(0),Rn=w(0),N=w([]),zn=w(!1),Bn=w(null),Vn=w(null),Hn=w(null),Un=w(null),Wn=w(null),Gn=w(null),Kn=w(null),qn=w(null),Jn=w(null),Yn=w(null),Xn=w({x:0,y:0}),Zn=w(`pointer`),Qn=w(!1),$n=w(null),P=w(fr()),er=v(()=>P.value.userOptions),F=v(()=>P.value.style.layout.dataLabels.xAxis),I=v(()=>P.value.style.layout.dataLabels.yAxis),L=v(()=>P.value.style.layout.marginalBars),R=v(()=>P.value.style.layout.plots),z=v(()=>P.value.style.tooltip),B=v(()=>P.value.style);_e({config:()=>P.value,dataset:()=>A.dataset,component:`VueUiScatter`,rules:[ve.emptyArray,{test:e=>e.length>6,message:[`👀 The number of series (clusters) is > 6. Consider:`,``,``,`▶️ Using filters to let users choose a maximum number of series (clusters) to display.`]}]});let{transitionEnabled:tr}=Te({config:()=>P.value.transitions,dataset:()=>A.dataset}),nr=v(()=>P.value.userOptions.useCursorPointer),rr=v(()=>p(P.value.events?.datapointClick));function ir(e=100,t=.8,n={}){let{meanX:r=0,sdX:i=1,meanY:a=0,sdY:o=1,seed:s}=n,c=(s??Math.floor(Math.random()*2**31))>>>0,l=()=>(c=c*1664525+1013904223>>>0,c/2**32),u=()=>{let e=0,t=0;for(;e===0;)e=l();for(;t===0;)t=l();return Math.sqrt(-2*Math.log(e))*Math.cos(2*Math.PI*t)},d=e/2,f=Array.from({length:d},u),p=Array.from({length:d},u),m=e=>e.reduce((e,t)=>e+t,0)/e.length,h=m(f),g=m(p);for(let e=0;e<d;e+=1)f[e]-=h,p[e]-=g;let ee=(e,t)=>e.reduce((e,n,r)=>e+n*t[r],0),te=e=>ee(e,e),ne=ee(p,f)/te(f),re=p.map((e,t)=>e-ne*f[t]),ie=te(f)/d,ae=te(re)/d,oe=Math.sqrt((1-t*t)*ie/ae),se=f.map((e,n)=>t*e+oe*re[n]),ce=f.concat(f.map(e=>-e)),le=se.concat(se.map(e=>-e)),ue=e=>Math.sqrt(te(e)/e.length),de=(e,t,n)=>{let r=ue(e);return e.map(e=>n+(r?e/r*t:0))},fe=de(ce,i,r),pe=de(le,o,a);for(let e=fe.length-1;e>0;--e){let t=Math.floor(l()*(e+1));[fe[e],fe[t]]=[fe[t],fe[e]],[pe[e],pe[t]]=[pe[t],pe[e]]}return fe.map((e,t)=>({x:e,y:pe[t]}))}let ar=v(()=>ce({defaultConfig:{userOptions:{show:!1},table:{show:!1},useCssAnimation:!1,style:{backgroundColor:`#99999930`,layout:{axis:{stroke:`#6A6A6A`},correlation:{label:{show:!1}},dataLabels:{xAxis:{show:!1},yAxis:{show:!1}},marginalBars:{fill:`#99999960`},padding:{top:12,right:12,bottom:12,left:12},plots:{stroke:`#6A6A6A`}},legend:{backgroundColor:`transparent`}}},userConfig:P.value.skeletonConfig??{}})),{loading:or,FINAL_DATASET:sr,manualLoading:cr}=xe({...$e(A),FINAL_CONFIG:P,prepareConfig:fr,skeletonDataset:A.config?.skeletonDataset??[{name:``,color:`#999999`,values:ir(100,.5,{seed:42})}],skeletonConfig:ce({defaultConfig:P.value,userConfig:ar.value})}),{userOptionsVisible:lr,setUserOptionsVisibility:ur,keepUserOptionState:dr}=Ee({config:P.value}),{svgRef:V}=De({config:B.value.title});function fr(){return l(A.config,En,je)}let pr=te(A.config);et(()=>A.config,(e,t)=>{let n=te(e),r=n!==pr;pr=n;let i=fr();r?(or.value||(P.value=i),lr.value=!P.value.userOptions.showOnChartHover,yr(),In.value+=1,Ln.value+=1,Rn.value+=1,H.value.showTable=P.value.table.show,H.value.showTooltip=z.value.show,vr.value&&P.value.usePerformanceMode&&console.warn(`VueUiScatter : You are using performance mode
|
|
2
|
+
|
|
3
|
+
- downsampling is disabled in this mode, all plots are rendered
|
|
4
|
+
|
|
5
|
+
- plot significance is not active in this mode (all plots have the same opacity)
|
|
6
|
+
|
|
7
|
+
- Depending on plot density, shapes might not display a border (stroke) to avoid fuzziness
|
|
8
|
+
|
|
9
|
+
ℹ️ To remove this warning, set config.debug to false.`)):(P.value.style.tooltip=i.style.tooltip,H.value.showTooltip=P.value.style.tooltip.show)},{deep:!0}),et(()=>A.dataset,e=>{Array.isArray(e)&&e.length>0&&(cr.value=!1)},{deep:!0});let mr=Qe(null),hr=!1,gr=w(!1),_r=0;Xe(async()=>{yr(),xr(),await Ge(),zn.value=!0});let vr=v(()=>P.value.debug);function yr(){ge(A.dataset)&&(ae({componentName:`VueUiScatter`,type:`dataset`,debug:vr.value}),cr.value=!0),ge(A.dataset)||(cr.value=P.value.loading)}function br(){mr.value?.disconnect(),mr.value=null,cancelAnimationFrame(_r),_r=0}function xr(){if(br(),gr.value=!1,hr)return;if(!P.value.responsive){U.value={width:B.value.layout.width,height:B.value.layout.height};return}if(!M.value)return;let e=()=>{!hr&&P.value.responsive&&(cancelAnimationFrame(_r),_r=requestAnimationFrame(()=>{if(_r=0,hr)return;let{width:e,height:t}=Ce({chart:M.value,title:B.value.title.text?Mn.value:null,legend:B.value.legend.show?Nn.value:null,source:Pn.value,noTitle:Fn.value});U.value={width:e,height:t},gr.value=!0}))};mr.value=new ResizeObserver(e),mr.value.observe(M.value.parentNode),e()}Ye(()=>{hr=!0,br()});let{isPrinting:Sr,isImaging:Cr,generatePdf:wr,generateImage:Tr}=Se({elementId:`vue-ui-scatter_${j.value}`,fileName:B.value.title.text||`vue-ui-scatter`,options:P.value.userOptions.print}),Er=v(()=>P.value.userOptions.show&&!B.value.title.text),Dr=v(()=>me(P.value.customPalette)),H=w({showTable:P.value.table.show,showTooltip:z.value.show});et(P,()=>{H.value={showTable:P.value.table.show,showTooltip:z.value.show}},{immediate:!0});let U=w({height:B.value.layout.height,width:B.value.layout.width});et(P,xr,{flush:`post`});let Or=v(()=>L.value.show?L.value.size+L.value.offset:0),{metrics:kr,ready:Ar,settling:jr,update:Mr}=ye({svgRef:V,canMeasure:()=>!P.value.responsive||gr.value,initialMetrics:{left:0,right:0,bottom:0},measure:e=>{let t=I.value.scales.show?e(qn.value).textWidth:0,n=t=>{let n=e(t);return Math.max(0,n.x+n.width-U.value.width)},r=Gn.value?n(Gn.value):0,i=F.value.scales.show&&Jn.value?Math.max(0,...[...Jn.value.querySelectorAll(`text`)].map(n)):0,a=Math.max(r,i);return{left:Math.max(e(Wn.value).width,t?t+12:0),right:a?a+6:0,bottom:Kn.value?e(Kn.value).height+6:0}}}),W=v(()=>{let{left:e,right:t,bottom:n}=kr.value;return{top:B.value.layout.padding.top+Or.value+I.value.fontSize*2,right:U.value.width-B.value.layout.padding.right-Or.value-6-t,bottom:U.value.height-B.value.layout.padding.bottom-n,left:B.value.layout.padding.left+e,height:U.value.height-B.value.layout.padding.top-B.value.layout.padding.bottom-Or.value-n-I.value.fontSize*2,width:U.value.width-B.value.layout.padding.left-B.value.layout.padding.right-Or.value-e-t-6}}),Nr=v(()=>{vr.value&&sr.value.forEach((e,t)=>{he({datasetObject:e,requiredAttributes:[`values`]}).forEach(e=>{ae({componentName:`VueUiScatter`,type:`datasetSerieAttribute`,property:e,index:t})}),e.values&&e.values.forEach((e,n)=>{he({datasetObject:e,requiredAttributes:[`x`,`y`]}).forEach(e=>{ae({componentName:`VueUiScatter`,type:`datasetSerieAttribute`,property:`values.${e}`,index:`${t} - ${n}`})})})});let e=1/0,t=-1/0,n=1/0,r=-1/0;for(let i of Xr.value)for(let{x:a,y:o}of i.values)e=Math.min(e,a),t=Math.max(t,a),n=Math.min(n,o),r=Math.max(r,o);return{xMin:e<0?e:0,xMax:t,yMin:n<0?n:0,yMax:r}}),Pr=v(()=>{let e=B.value.layout.axis;return{xMin:e.xMin!==null&&e.xMin!==void 0?e.xMin:Nr.value.xMin,xMax:e.xMax!==null&&e.xMax!==void 0?e.xMax:Nr.value.xMax,yMin:e.yMin!==null&&e.yMin!==void 0?e.yMin:Nr.value.yMin,yMax:e.yMax!==null&&e.yMax!==void 0?e.yMax:Nr.value.yMax}});function Fr(e){return Number.isFinite(e)?e<2?2:Math.trunc(e):5}function Ir(e){return e.roundingValue!==void 0&&e.roundingValue!==null?e.roundingValue:e.rounding!==void 0&&e.rounding!==null?e.rounding:0}function Lr({minimum:e,maximum:t,stepCount:n,useNiceScale:r}){let i=Fr(n);if(e===t){let n=t+(e===0?1:Math.abs(e)*.01);return(r?ie:pe)(e,n,i)}return(r?ie:pe)(e,t,i)}let Rr=v(()=>{let e=F.value;return Lr({minimum:Pr.value.xMin,maximum:Pr.value.xMax,stepCount:e.scales.steps,useNiceScale:e.scales.useNiceScale})}),zr=v(()=>{let e=I.value;return Lr({minimum:Pr.value.yMin,maximum:Pr.value.yMax,stepCount:e.scales.steps,useNiceScale:e.scales.useNiceScale})}),G=v(()=>({xMin:Rr.value.min,xMax:Rr.value.max,yMin:zr.value.min,yMax:zr.value.max}));function K(e,t,n,r){return se(t,oe(e),u({p:R.value.selectors.labels.prefix,v:oe(e),s:R.value.selectors.labels.suffix,r:n}),...r?[r]:[])}function Br(e,t,n,r){return t.ticks.map(t=>({value:t,[e]:r(t),label:K(t,n.scales.labels.formatter,Ir(n))}))}let Vr=v(()=>Br(`x`,Rr.value,F.value,Gr)),Hr=v(()=>Br(`y`,zr.value,I.value,Kr)),Ur=v(()=>gi.value.length>0&&F.value.scales.show),Wr=v(()=>gi.value.length>0&&I.value.scales.show);function Gr(e){let t=G.value.xMax-G.value.xMin;return t===0?W.value.left:W.value.left+(e-G.value.xMin)/t*W.value.width}function Kr(e){let t=G.value.yMax-G.value.yMin;return t===0?W.value.bottom:W.value.bottom-(e-G.value.yMin)/t*W.value.height}let q=v(()=>{let{xMin:e,xMax:t,yMin:n,yMax:r}=G.value,i=e>0?e:t<0?t:0,a=n>0?n:r<0?r:0;return{x:Gr(i),y:Kr(a)}}),qr=v(()=>sr.value.map((e,t)=>{let n=`cluster_${j.value}_${t}`;return{...e,values:le({data:e.values,threshold:P.value.usePerformanceMode?e.values.length+1:P.value.downsample.threshold}),id:n,color:e.color?e.color:Dr.value[t]||h[t]||h[t%h.length],shape:e.shape??`circle`}}));function Jr(e){return{...e,opacity:N.value.includes(e.id)?.5:1,isSegregated:N.value.includes(e.id),hasGroupSelection:!!di.value,isGroupSelected:di.value===e.id,segregate:()=>wi(e.id),onEnter:()=>pi(e.id),onLeave:mi}}let Yr=v(()=>qr.value.map(Jr)),Xr=v(()=>qr.value.filter(e=>!N.value.includes(e.id))),Zr=v(()=>({cy:`scatter-div-legend`,backgroundColor:B.value.legend.backgroundColor,color:B.value.legend.color,fontSize:B.value.legend.fontSize,paddingBottom:12,fontWeight:B.value.legend.bold?`bold`:``})),Qr=v(()=>qr.value.map((e,t)=>({...e,plots:e.values.map((n,r)=>({x:Gr(n.x),y:Kr(n.y),v:{...n,name:n.name||``},clusterName:e.name,clusterId:e.id,color:e.color,id:`plot_${j.value}_${t}_${r}`,weight:n.weight??R.value.radius}))})).filter(e=>!N.value.includes(e.id))),$r=v(()=>{let e=1e-9,t=({m:t,b:n,rect:r,verticalX:i=null})=>{let{left:a,right:o,top:s,bottom:c}=r,l=[],u=(e,t)=>{Number.isFinite(e)&&Number.isFinite(t)&&l.push({x:e,y:t})},d=({x:t,y:n})=>t>=a-e&&t<=o+e&&n>=s-e&&n<=c+e;i===null?Number.isFinite(t)&&(u(a,t*a+n),u(o,t*o+n),Math.abs(t)>e?(u((s-n)/t,s),u((c-n)/t,c)):n>=s-e&&n<=c+e&&(u(a,n),u(o,n))):i>=a-e&&i<=o+e&&(u(i,s),u(i,c));let f=l.filter(d),p=[];for(let e of f)p.some(t=>Math.abs(t.x-e.x)<1e-6&&Math.abs(t.y-e.y)<1e-6)||p.push(e);if(p.length<2)return null;let m=p[0],h=p[1],g=0;for(let e=0;e<p.length;e+=1)for(let t=e+1;t<p.length;t+=1){let n=p[e].x-p[t].x,r=p[e].y-p[t].y,i=n*n+r*r;i>g&&(g=i,m=p[e],h=p[t])}return{x1:m.x,y1:m.y,x2:h.x,y2:h.y}};return Qr.value.map(n=>{let r=n.plots.length,i=n.plots.reduce((e,t)=>e+t.x,0)/r,a=n.plots.reduce((e,t)=>e+t.y,0)/r,o=0,s=0,c=0;for(let e of n.plots){let t=e.x-i,n=e.y-a;o+=t*n,s+=t*t,c+=n*n}let l,u,d=null;s<e?(d=i,l=1/0,u=null):(l=o/s,u=a-l*i);let f,p;d===null?(f=l,p=u):(f=1/0,p=null);let m=n.plots.every(e=>e.v&&typeof e.v.x==`number`&&typeof e.v.y==`number`),h=NaN;if(r>=2){let t=0,o=0;m?(t=n.plots.reduce((e,t)=>e+t.v.x,0)/r,o=n.plots.reduce((e,t)=>e+t.v.y,0)/r):(t=i,o=-a);let s=0,c=0,l=0;for(let e of n.plots){let n=m?e.v.x:e.x,r=m?e.v.y:-e.y,i=n-t,a=r-o;s+=i*a,c+=i*i,l+=a*a}if(c>=e&&l>=e){let e=s/Math.sqrt(c*l);h=Math.max(-1,Math.min(1,e))}}let g=t({m:f,b:p,rect:W.value,verticalX:d});if(!g)return{...n,correlation:null,label:null,plots:n.plots.map(e=>({...e,deviation:0,shape:n.shape,color:ne(n.color)}))};let ee={x:(g.x1+g.x2)/2,y:(g.y1+g.y2)/2};return{...n,color:ne(n.color),correlation:{...g,coefficient:h},label:ee,plots:n.plots.map(t=>{let r,i;d===null?Math.abs(f)<e?(r=t.x,i=p):(r=(t.x+f*t.y-f*p)/(1+f*f),i=(f*t.x+f*f*t.y+p)/(1+f*f)):(r=d,i=t.y);let a=t.x-r,o=t.y-i,s=Math.sqrt(a*a+o*o);return{...t,deviation:s,shape:n.shape,color:ne(n.color)}})}})}),ei=v(()=>Qr.value.map(Jr)),J=v(()=>$r.value.map(Jr)),ti=v(()=>Math.max(...$r.value.flatMap(e=>e.plots.map(e=>Math.abs(e.deviation)))));function ni(){return J.value}function ri(e,t){let n=Array.isArray(e)?e.flatMap(e=>e.plots.map(e=>({x:e.x,y:e.y}))):e.plots.map(e=>({x:e.x,y:e.y})),r=1/0,i=-1/0,a=1/0,o=-1/0;n.forEach(({x:e,y:t})=>{r=Math.min(r,e),i=Math.max(i,e),a=Math.min(a,t),o=Math.max(o,t)});let s=i-r,c=o-a,l=s/t,u=c/t,d=Array(t).fill(0),f=Array(t).fill(0),p=(e,n,r)=>r>0?Math.max(0,Math.min(t-1,Math.floor((e-n)/r+1e-10))):0;n.forEach(({x:e,y:t})=>{let n=p(e,r,l),i=p(t,a,u);d[n]||(d[n]=0),f[i]||(f[i]=0),d[n]+=1,f[i]+=1});let m=[],h=[];for(let e=0;e<t;e+=1)m.push(r+(e+.5)*l),h.push(a+(e+.5)*u);return{x:d,y:f,avgX:m,avgY:h,maxX:Math.max(...d),maxY:Math.max(...f)}}let ii=v(()=>L.value.tranches),ai=v(()=>ri(Qr.value,ii.value)),oi=[{key:`x`,onEnter:Ri,get selected(){return Bn.value}},{key:`y`,onEnter:zi,get selected(){return Vn.value}}],si=v(()=>Object.fromEntries(oi.map(({key:e})=>{let t=e===`x`,n=W.value,r=L.value,i=ai.value,a=t?i.avgX:i.avgY,o=t?i.maxX:i.maxY,s=(t?n.width:n.height)/ii.value,c=s<=0?1e-4:s;return[e,i[e].map((e,i)=>{let l=a[i],u=l-s/2,d=e/o*r.size,f=d<=0?1e-4:d;return{count:e,average:l,bar:t?{x:u,y:n.top-r.offset-d,width:c,height:f}:{x:n.right+r.offset,y:u,width:f,height:c},trap:t?{x:u,y:n.top-r.offset-r.size,width:c,height:Math.max(.1,r.size)}:{x:n.right+r.offset,y:u,width:Math.max(.1,r.size),height:c},highlight:t?{x:u,y:n.top,width:c,height:n.height}:{x:n.left,y:u,width:n.width,height:c},lines:[u,u+c].map(e=>t?{x1:e,x2:e,y1:0,y2:n.top+n.height}:{x1:n.left,x2:U.value.width,y1:e,y2:e})}})]}))),ci=v(()=>{let e=W.value.top-L.value.offset,t=W.value.right+L.value.offset;return Qr.value.map(n=>{let r=ri(n,ii.value);return{coords:r,dX:ee(r.avgX.map((t,n)=>({x:t,y:e-r.x[n]/r.maxX*L.value.size}))),dY:m(r.avgY.map((e,n)=>({y:e,x:t+L.value.size*r.y[n]/r.maxY}))),color:n.color,id:n.id}})}),Y=w(void 0),X=w(null),Z=w([]),li=w(!1),ui=w(null),di=w(void 0);function fi(){kn.value=!1,Y.value=void 0,Z.value=[],X.value=null,$n.value=null,Yn.value=null,di.value=void 0}function pi(e){let t=J.value.find(t=>t.id===e);t?(Z.value=t.plots.map(e=>e.id),di.value=e):Z.value=[]}function mi(){Z.value=[],di.value=void 0}function hi(e){if(!V.value||!e)return;let t=fe(e.x,e.y,V.value);t&&(Xn.value=t)}let gi=v(()=>X.value?[X.value]:Z.value.length?J.value.flatMap(e=>e.plots).filter(e=>Z.value.includes(e.id)):[]);function _i(e){return K(e.v.x,F.value.scales.labels.formatter,Ir(F.value),{datapoint:e})}function vi(e){return K(e.v.y,I.value.scales.labels.formatter,Ir(I.value),{datapoint:e})}function yi(e,t,n){let r=e.v[t];return isNaN(r)?`-`:se(R.value.selectors.labels[t].formatter,r,u({p:z.value.prefix,v:r,s:z.value.suffix,r:z.value.roundingValue}),{datapoint:e,seriesIndex:n})}function bi(e,t,n=`pointer`,r=null){Y.value=e.id,X.value=e,Zn.value=n,$n.value=r,Yn.value=e.id;let i=``;P.value.events.datapointEnter&&P.value.events.datapointEnter({datapoint:e,seriesIndex:t});let a={datapoint:e,seriesIndex:t,series:J.value,config:P.value};ui.value=a;let o=z.value.customFormat,s=p(o)?o(a):void 0;typeof s==`string`?An.value=s:(e.clusterName&&(i+=`<div style="display:flex;gap:3px;align-items:center">${e.clusterName}</div>`),e.v.name&&(i+=`<div>${e.v.name}</div>`),i+=`<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${z.value.borderColor}">`,i+=`<div>${F.value.name}: <b>${yi(e,`x`,t)}</b></div>`,i+=`<div>${I.value.name}: <b>${yi(e,`y`,t)}</b></div>`,i+=`${R.value.deviation.translation}: <b>${u({v:e.deviation,r:R.value.deviation.roundingValue})}</b>`,i+=`</div>`,An.value=`<div>${i}</div>`),kn.value=!0,n===`keyboard`&&Ge(()=>{hi(e)})}function xi(e,t){P.value.events.datapointLeave&&P.value.events.datapointLeave({datapoint:e,seriesIndex:t}),(Zn.value!==`keyboard`||Yn.value!==e?.id)&&(kn.value=!1,Y.value=void 0,X.value=null)}function Si(e,t){P.value.events.datapointClick&&P.value.events.datapointClick({datapoint:e,seriesIndex:t})}function Ci(){N.value.length?N.value=[]:Yr.value.forEach(e=>{N.value.push(e.id)}),Dn(`selectLegend`,ei.value)}function wi(e){N.value.includes(e)?N.value=N.value.filter(t=>t!==e):N.value.length<sr.value.length-1&&N.value.push(e),Dn(`selectLegend`,ei.value)}function Ti(e){return Yr.value.length?Yr.value.find(t=>t.name===e)||(vr.value&&console.warn(`VueUiScatter - Series name not found "${e}"`),null):(vr.value&&console.warn(`VueUiScatter - There are no series to show.`),null)}function Ei(e){let t=Ti(e);t!==null&&N.value.includes(t.id)&&wi(t.id)}function Di(e){let t=Ti(e);t!==null&&(N.value.includes(t.id)||wi(t.id))}let Oi=v(()=>$r.value.map(e=>{let t=e.plots.length,n=n=>e.plots.reduce((e,t)=>e+(t.v[n]??0),0)/t;return{series:e,count:t,coefficient:e.correlation?.coefficient??0,averageX:n(`x`),averageY:n(`y`)}}));function ki(e=null){Ge(()=>{let t=[``,P.value.table.translations.correlationCoefficient,P.value.table.translations.nbrPlots,`${F.value.name} ${P.value.table.translations.average}`,`${I.value.name} ${P.value.table.translations.average}`],n=Oi.value.map(({series:e,coefficient:t,count:n,averageX:r,averageY:i})=>[e.name,t,n,r,i]),r=[[B.value.title.text],[B.value.title.subtitle.text],[[``],[``],[``]],t].concat(n),i=f(r);e?e(i):ue({csvContent:i,title:B.value.title.text||`vue-ui-scatter`})})}let Ai=v(()=>{let e=[P.value.table.translations.series,P.value.table.translations.correlationCoefficient,P.value.table.translations.nbrPlots,`${F.value.name} ${P.value.table.translations.average}`,`${I.value.name} ${P.value.table.translations.average}`],t=Oi.value.map(({series:e,coefficient:t,count:n,averageX:r,averageY:i})=>{let a=(e,t)=>Number(e.toFixed(t)).toLocaleString();return[{shape:e.shape,content:e.name??`-`,color:e.color},a(t,P.value.table.td.roundingValue),n.toLocaleString(),a(r,P.value.table.td.roundingAverage),a(i,P.value.table.td.roundingAverage)]});return{head:e,body:t,a11yBody:t.map(e=>e.map((e,t)=>t===0?e.content:e)),config:{th:{backgroundColor:P.value.table.th.backgroundColor,color:P.value.table.th.color,outline:P.value.table.th.outline},td:{backgroundColor:P.value.table.td.backgroundColor,color:P.value.table.td.color,outline:P.value.table.td.outline},breakpoint:P.value.table.responsiveBreakpoint},colNames:e}}),ji=w(!1);function Mi(e){ji.value=e,jn.value+=1}function Ni(){H.value.showTable=!H.value.showTable}function Pi(){H.value.showTooltip=!H.value.showTooltip}let Fi=w(!1);function Ii(){Fi.value=!Fi.value}let Li=Oe(M,()=>B.value.title.text);function Ri(e){Bn.value=e,L.value.highlighter.highlightBothAxes&&(Vn.value=ai.value.y.length-2-e)}function zi(e){Vn.value=e,L.value.highlighter.highlightBothAxes&&(Bn.value=e)}function Bi(){Bn.value=null,Vn.value=null}function Vi(e){return Y.value===e.id||Z.value.includes(e.id)}function Hi(e){return Y.value&&Y.value!==e.id||Z.value.length&&!Z.value.includes(e.id)}function Ui(e){return e.weight*(Vi(e)?R.value.hoverRadiusRatio:1)}function Wi(e,t){return g(t,(Hi(e)?R.value.opacityNotSelected:R.value.opacity)*100)}function Gi(e){if(Vi(e))return 1;let t=R.value.significance;return t.useDistanceOpacity?ti.value>0?1-Math.abs(e.deviation)/ti.value:1:t.show&&Math.abs(e.deviation)>t.deviationThreshold?t.opacity:1}let Ki={circle:1,square:1,diamond:1,triangle:1.2,star:1.3,pentagon:1.3,hexagon:1.3},Q=e=>e.toFixed(3);function qi({shape:e=`circle`,cx:t,cy:n,r}){if(!P.value.usePerformanceMode)return``;let i=Ki[e]*r;switch(e){case`circle`:{let e=Q(t-i),r=Q(n),a=Q(t+i),o=Q(i);return`M ${e} ${r} A ${o} ${o} 0 1 0 ${a} ${r} A ${o} ${o} 0 1 0 ${e} ${r} Z`}case`square`:{let e=Q(t-i),r=Q(n-i),a=Q(t+i),o=Q(n+i);return`M ${e} ${r} L ${a} ${r} L ${a} ${o} L ${e} ${o} Z`}case`diamond`:{let e=Q(t),r=Q(n);return`M ${e} ${Q(n-i)} L ${Q(t+i)} ${r} L ${e} ${Q(n+i)} L ${Q(t-i)} ${r} Z`}case`triangle`:{let e=i*Math.sqrt(3),r=t,a=n-2/3*e,o=t-i,s=n+1/3*e,c=t+i,l=s;return`M ${Q(r)} ${Q(a)} L ${Q(o)} ${Q(s)} L ${Q(c)} ${Q(l)} Z`}case`star`:{let e=i,r=i*.5,a=[];for(let i=0;i<10;i+=1){let o=(-90+i*36)*Math.PI/180,s=i%2==0?e:r;a.push([t+s*Math.cos(o),n+s*Math.sin(o)])}let o=`M ${Q(a[0][0])} ${Q(a[0][1])}`;for(let e=1;e<a.length;e+=1)o+=` L ${Q(a[e][0])} ${Q(a[e][1])}`;return o+` Z`}case`pentagon`:case`hexagon`:{let r=e===`pentagon`?5:6,a=e===`pentagon`?-90:-60;return`M ${Array.from({length:r},(e,o)=>{let s=(a+360/r*o)*Math.PI/180;return`${Q(t+i*Math.cos(s))} ${Q(n+i*Math.sin(s))}`}).join(` L `)} Z`}default:{let e=Q(t-i),r=Q(n),a=Q(t+i),o=Q(i);return`M ${e} ${r} A ${o} ${o} 0 1 0 ${a} ${r} A ${o} ${o} 0 1 0 ${e} ${r} Z`}}}let Ji=v(()=>{if(!P.value.usePerformanceMode)return[``];let{left:e,right:t,top:n,bottom:r}=W.value,i=Math.max(1,(t-e)*(r-n)),a=e=>e/i*1e4,o=R.value.stroke,s=R.value.strokeWidth,c=R.value.opacity;return $r.value.map(i=>{let l=[];for(let a of i.plots){let o=a.x,s=a.y;if(o<e||o>t||s<n||s>r)continue;let c=Math.max(R.value.radius,a.weight);l.push(qi({shape:i.shape||`circle`,cx:o,cy:s,r:c}))}if(!l.length)return null;let u=a(i.plots.length)>2.5||i.plots.length>1e3;return{id:i.id,d:l.join(``),fill:g(i.color,c*100),stroke:u?`none`:o,strokeWidth:u?0:s,strokeOpacity:1}}).filter(Boolean)});function Yi(e){if(!P.value.usePerformanceMode)return;let t=V.value;if(!t)return;let n=t.createSVGPoint();n.x=e.clientX,n.y=e.clientY;let r=t.getScreenCTM();if(!r)return;let i=r.inverse(),a=n.matrixTransform(i),o=null,s=1/0,c=-1;if(J.value.forEach((e,t)=>{e.plots.forEach(e=>{let n=e.x-a.x,r=e.y-a.y,i=n*n+r*r;i<=64&&i<s&&(s=i,o=e,c=t)})}),li.value=!!o,o)Y.value!==o.id&&(Y.value=o.id,bi(o,c,`pointer`,$.value.get(o.id)??null));else if(Y.value){let e=X.value;Y.value=void 0,xi(e,c)}}function Xi(){if(li.value=!1,Y.value){let e=X.value;Y.value=void 0,xi(e,null)}}function Zi(e){let t=X.value;if(t){let e=J.value.findIndex(e=>e.id===t.clusterId);Si(t,e>=0?e:0)}}let Qi=v(()=>c({config:P,style:B,mutableConfig:H,dialog:Tn,accordion:bn,isFullscreen:ji,parent:M,maxWidth:800,isCursorPointer:nr}));et(()=>H.value.showTable,e=>s(e,P,Hn));function $i(){H.value.showTable=!1,Un.value&&Un.value.setTableIconState(!1)}let ea=v(()=>B.value.backgroundColor),ta=v(()=>B.value.legend),na=v(()=>B.value.title),{isCallbackImaging:ra,isCallbackSvg:ia,generateSvg:aa,onGenerateImage:oa}=we({svg:V,title:na,legend:ta,legendItems:Yr,backgroundColor:ea,getSvgCallback:()=>P.value.userOptions.callbacks.svg,generateImage:Tr});async function sa(){Dn(`copyAlt`,{config:P.value,dataset:ei.value}),P.value.userOptions.callbacks.altCopy?await Promise.resolve(P.value.userOptions.callbacks.altCopy({config:P.value,dataset:ei.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function ca(e,t){let n=pa.value.filter(t=>t.id!==e.id);if(!n.length)return null;let r=(n=>{if(!n.length)return null;let r=null,i=1/0;return n.forEach(n=>{let a=n.x-e.x,o=n.y-e.y,s=0,c=0;t===`right`||t===`left`?(s=Math.abs(a),c=Math.abs(o)):(s=Math.abs(o),c=Math.abs(a));let l=s*1e3+c;l<i&&(r=n,i=l)}),r})(n.filter(n=>t===`right`?n.x>e.x:t===`left`?n.x<e.x:t===`down`?n.y>e.y:t===`up`&&n.y<e.y));if(r)return r;let i=[];if(t===`right`){let e=Math.min(...n.map(e=>e.x));i=n.filter(t=>t.x===e)}if(t===`left`){let e=Math.max(...n.map(e=>e.x));i=n.filter(t=>t.x===e)}if(t===`down`){let e=Math.min(...n.map(e=>e.y));i=n.filter(t=>t.y===e)}if(t===`up`){let e=Math.max(...n.map(e=>e.y));i=n.filter(t=>t.y===e)}return i.length?i.reduce((n,r)=>{if(!n)return r;let i=Math.abs(t===`right`||t===`left`?n.y-e.y:n.x-e.x);return Math.abs(t===`right`||t===`left`?r.y-e.y:r.x-e.x)<i?r:n},null):null}function la(){$n.value=null,Yn.value=null,Qn.value=!0}function ua(){fi(),Zn.value=`pointer`,Qn.value=!1}function da(e){if(!V.value||Fi.value||document.activeElement!==V.value||!pa.value.length)return;let t=e.key===`ArrowLeft`,n=e.key===`ArrowRight`,r=e.key===`ArrowUp`,i=e.key===`ArrowDown`,a=e.key===`Enter`||e.key===` `,o=e.key===`Escape`;if(!t&&!n&&!r&&!i&&!a&&!o)return;if(e.preventDefault(),e.stopPropagation(),o){fi(),Zn.value=`pointer`;return}if(a){if($n.value===null)return;let e=pa.value[$n.value];if(!e)return;Si(e,e.seriesIndex);return}let s=null;if(n&&(s=`right`),t&&(s=`left`),i&&(s=`down`),r&&(s=`up`),Yn.value===null){let e=X.value;if(e&&e.id){let t=ca(e,s);if(!t){let t=$.value.get(e.id);if(t===void 0)return;bi(e,e.seriesIndex,`keyboard`,t);return}let n=$.value.get(t.id);if(n===void 0)return;bi(t,t.seriesIndex,`keyboard`,n);return}let t=pa.value[0];if(!t)return;let n=$.value.get(t.id)??0;bi(t,t.seriesIndex,`keyboard`,n);return}let c=$.value.get(Yn.value);if(c===void 0)return;let l=pa.value[c];if(!l)return;let u=ca(l,s);if(!u)return;let d=$.value.get(u.id);d!==void 0&&bi(u,u.seriesIndex,`keyboard`,d)}let fa=v(()=>{if(!X.value)return``;let e=X.value,t=yi(e,`x`,e.seriesIndex),n=yi(e,`y`,e.seriesIndex);return[e.clusterName||``,e.v.name||``,`${F.value.name}: ${t}`,`${I.value.name}: ${n}`].filter(Boolean).join(`. `)}),pa=v(()=>J.value.flatMap((e,t)=>e.plots.map(n=>({...n,seriesIndex:t,seriesId:e.id,seriesName:e.name,shape:e.shape||`circle`,color:e.color})))),$=v(()=>{let e=/* @__PURE__ */ new Map;return pa.value.forEach((t,n)=>{e.set(t.id,n)}),e}),ma=v(()=>({headers:Ai.value?.colNames??[],rows:Ai.value?.a11yBody??[]}));return Le({getData:ni,getImage:Li,generatePdf:wr,generateCsv:ki,generateImage:Tr,generateSvg:aa,hideSeries:Di,showSeries:Ei,toggleTable:Ni,toggleTooltip:Pi,toggleAnnotator:Ii,toggleFullscreen:Mi,copyAlt:sa}),et(()=>[U.value,F.value,I.value,B.value.layout.padding,Or.value,G.value,R.value.selectors.labels,P.value.style.fontFamily,A.dataset,N.value,gr.value,Wn.value,Gn.value,Kn.value,Jn.value,qn.value],Mr,{flush:`post`,deep:!0}),(e,s)=>(C(),x(`div`,{class:Ke(`vue-data-ui-component vue-ui-scatter ${ji.value?`vue-data-ui-wrapper-fullscreen`:``} ${P.value.useCssAnimation?``:`vue-ui-dna`}`),ref_key:`scatterChart`,ref:M,id:`vue-ui-scatter_${j.value}`,style:Je(`font-family:${B.value.fontFamily};width:100%; text-align:center;background:${B.value.backgroundColor};${P.value.responsive?`height: 100%`:``}`),onMouseenter:s[3]||=()=>O(ur)(!0),onMouseleave:s[4]||=()=>{O(ur)(!1),Qn.value||fi()}},[S(`div`,{id:`chart-instructions-${j.value}`,class:`sr-only`},[S(`p`,null,D(P.value.a11y.translations.keyboardNavigation),1)],8,rt),H.value.showTooltip?b(``,!0):(C(),x(`div`,it,D(fa.value),1)),P.value.a11y.includeTable&&ma.value?.rows?.length&&On.value?(C(),y(Pe,{key:1,uid:j.value,head:ma.value.headers,body:ma.value.rows,notice:P.value.a11y.translations.tableAvailable,caption:P.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):b(``,!0),er.value.buttons.annotator?(C(),y(O(Sn),We({key:2},O(a)(er.value.annotator),{svgRef:O(V),backgroundColor:B.value.backgroundColor,color:B.value.color,active:Fi.value,isCursorPointer:nr.value,palette:er.value.annotatorPalette,onClose:Ii}),ze({_:2},[T(O(o),t=>({name:t,fn:k(n=>[E(e.$slots,t,qe(Ue(O(i)(t,n))),void 0,!0)])}))]),1040,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):b(``,!0),Er.value?(C(),x(`div`,{key:3,ref_key:`noTitle`,ref:Fn,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):b(``,!0),B.value.title.text?(C(),x(`div`,{key:4,ref_key:`chartTitle`,ref:Mn,style:`width:100%;background:transparent`},[(C(),y(Ae,{key:`title_${In.value}`,config:{title:{cy:`scatter-div-title`,...B.value.title},subtitle:{cy:`scatter-div-subtitle`,...B.value.title.subtitle}}},null,8,[`config`]))],512)):b(``,!0),S(`div`,{id:`legend-top-${j.value}`},null,8,at),er.value.show&&On.value&&(O(dr)||O(lr))?(C(),y(O(Cn),We({ref_key:`userOptionsRef`,ref:Un,key:`user_options_${jn.value}`,backgroundColor:B.value.backgroundColor,color:B.value.color,isImaging:O(Cr),isPrinting:O(Sr),uid:j.value,hasTooltip:er.value.buttons.tooltip&&z.value.show,isTooltip:H.value.showTooltip,isFullscreen:ji.value,chartElement:M.value},O(n)(er.value,`pdf csv img svg table fullscreen altCopy annotator`),{isAnnotation:Fi.value,tableDialog:P.value.table.useDialog,isCursorPointer:nr.value,onToggleFullscreen:Mi,onGeneratePdf:O(wr),onGenerateCsv:ki,onGenerateImage:O(oa),onGenerateSvg:O(aa),onToggleTable:Ni,onToggleTooltip:Pi,onToggleAnnotator:Ii,onCopyAlt:sa,style:{visibility:O(dr)?O(lr)?`visible`:`hidden`:`visible`}}),ze({_:2},[T(O(t)(e.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:k(n=>[E(e.$slots,t,qe(Ue(O(r)(t,n))),void 0,!0)])}))]),1040,[`backgroundColor`,`color`,`isImaging`,`isPrinting`,`uid`,`hasTooltip`,`isTooltip`,`isFullscreen`,`chartElement`,`isAnnotation`,`tableDialog`,`isCursorPointer`,`onGeneratePdf`,`onGenerateImage`,`onGenerateSvg`,`style`])):b(``,!0),S(`div`,ot,[(C(),x(`svg`,{ref_key:`svgRef`,ref:V,xmlns:O(de),"aria-describedby":`chart-instructions-${j.value}`,class:Ke({"vue-data-ui-fullscreen--on":ji.value,"vue-data-ui-fulscreen--off":!ji.value,"vue-data-ui-no-transition":!O(tr)||O(jr)}),viewBox:`0 0 ${U.value.width<=0?10:U.value.width} ${U.value.height<=0?10:U.value.height}`,style:Je(`max-width:100%;overflow:visible;background:transparent;color:${B.value.color};visibility:${O(Ar)?`visible`:`hidden`}`),onMouseleave:Bi,tabindex:`0`,onFocus:la,onBlur:ua,onKeydown:da},[Ve(O(wn)),E(e.$slots,`svg-underlayer`,{svg:{...U.value,drawingArea:{...W.value,zero:q.value},data:ei.value,isPrintingImg:O(Sr)||O(Cr)||O(ra),isPrintingSvg:O(ia)}},void 0,!0),e.$slots[`chart-background`]?(C(),x(`foreignObject`,{key:0,x:0,y:0,width:U.value.width<=0?10:U.value.width,height:U.value.height<=0?10:U.value.height,style:{pointerEvents:`none`}},[E(e.$slots,`chart-background`,{},void 0,!0)],8,ct)):b(``,!0),B.value.layout.axis.show?(C(),x(`g`,lt,[S(`line`,{x1:q.value.x,x2:q.value.x,y1:W.value.top,y2:W.value.bottom,stroke:B.value.layout.axis.stroke,"stroke-width":B.value.layout.axis.strokeWidth,"stroke-linecap":`round`},null,8,ut),S(`line`,{x1:W.value.left,x2:W.value.right,y1:q.value.y,y2:q.value.y,stroke:B.value.layout.axis.stroke,"stroke-width":B.value.layout.axis.strokeWidth,"stroke-linecap":`round`},null,8,dt)])):b(``,!0),F.value.scales.verticalLines.show?(C(),x(`g`,ft,[(C(!0),x(_,null,T(Vr.value,(e,t)=>(C(),x(`line`,{key:`scatter-x-scale-line-${j.value}-${t}`,x1:e.x,x2:e.x,y1:W.value.top,y2:W.value.bottom,stroke:F.value.scales.verticalLines.stroke,"stroke-width":F.value.scales.verticalLines.strokeWidth,"stroke-linecap":`round`},null,8,pt))),128))])):b(``,!0),F.value.scales.show?(C(),x(`g`,{key:3,ref_key:`xAxisScaleLabels`,ref:Jn},[(C(!0),x(_,null,T(Vr.value,(e,t)=>(C(),x(`g`,{class:`vue-ui-scatter-scale-group`,key:`scatter-x-scale-${j.value}-${t}`,opacity:+!Ur.value},[S(`path`,{class:Ke({"vue-data-ui-transition":O(tr)&&!O(jr)}),stroke:B.value.layout.axis.stroke,"stroke-width":B.value.layout.axis.strokeWidth,d:`M${e.x},${q.value.y-4} ${e.x},${q.value.y+4}`,"stroke-linecap":`round`},null,10,ht),S(`text`,{class:Ke({"vue-data-ui-transition":O(tr)&&!O(jr)}),transform:`translate(${e.x}, ${q.value.y+F.value.scales.labels.fontSize+6+F.value.scales.labels.offsetY})`,"text-anchor":`middle`,"font-size":F.value.scales.labels.fontSize,fill:F.value.scales.labels.color,stroke:B.value.backgroundColor,"stroke-width":`2`,"paint-order":`stroke`},D(e.label),11,gt)],8,mt))),128))],512)):b(``,!0),I.value.scales.horizontalLines.show?(C(),x(`g`,_t,[(C(!0),x(_,null,T(Hr.value,(e,t)=>(C(),x(`line`,{key:`scatter-y-scale-line-${j.value}-${t}`,x1:W.value.left,x2:W.value.right,y1:e.y,y2:e.y,stroke:I.value.scales.horizontalLines.stroke,"stroke-width":I.value.scales.horizontalLines.strokeWidth,"stroke-linecap":`round`},null,8,vt))),128))])):b(``,!0),I.value.scales.show?(C(),x(`g`,{key:5,ref_key:`yAxisScaleLabels`,ref:qn,opacity:+!Wr.value,style:{transition:`opacity 0.1s ease-in-out`},class:`vue-ui-scatter-scale-group`},[(C(!0),x(_,null,T(Hr.value,(e,t)=>(C(),x(`g`,{key:`scatter-y-scale-${j.value}-${t}`},[S(`path`,{class:Ke({"vue-data-ui-transition":O(tr)&&!O(jr)}),d:`M${q.value.x-4},${e.y} ${q.value.x+4},${e.y}`,stroke:B.value.layout.axis.stroke,"stroke-width":B.value.layout.axis.strokeWidth,"stroke-linecap":`round`},null,10,bt),S(`text`,{class:Ke({"vue-data-ui-transition":O(tr)&&!O(jr)}),transform:`translate(${q.value.x-I.value.scales.labels.fontSize/2-8+I.value.scales.labels.offsetX}, ${e.y+I.value.scales.labels.fontSize/3})`,"text-anchor":`end`,"font-size":I.value.scales.labels.fontSize,fill:I.value.scales.labels.color,stroke:B.value.backgroundColor,"stroke-width":`2`,"paint-order":`stroke`},D(e.label),11,xt)]))),128))],8,yt)):b(``,!0),L.value.show?(C(),x(`g`,St,[S(`defs`,null,[Ve(Ie,{t:`linear`,id:`marginal_x_${j.value}`,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`,stops:[[`0%`,L.value.fill,1],[`100%`,B.value.backgroundColor,1]]},null,8,[`id`,`stops`]),Ve(Ie,{t:`linear`,id:`marginal_y_${j.value}`,x1:`0%`,x2:`100%`,y1:`0%`,y2:`0%`,stops:[[`0%`,B.value.backgroundColor,1],[`100%`,L.value.fill,1]]},null,8,[`id`,`stops`])]),(C(),x(_,null,T(oi,e=>(C(),x(_,{key:e.key},[(C(!0),x(_,null,T(si.value[e.key],(t,n)=>(C(),x(`g`,null,[t.count&&t.average?(C(),x(`rect`,We({key:0,"data-cy":O(!1)?`marginal-bar-`+e.key:void 0},{ref_for:!0},t.bar,{fill:L.value.useGradient?`url(#marginal_${e.key}_${j.value})`:L.value.fill,style:[`opacity:${L.value.opacity}`,{"pointer-events":`none`}],stroke:B.value.backgroundColor,"stroke-width":L.value.strokeWidth,rx:L.value.borderRadius}),null,16,Ct)):b(``,!0),t.average?(C(),x(`rect`,We({key:1,ref_for:!0},t.trap,{fill:`transparent`,onMouseenter:t=>e.onEnter(n),onMouseleave:s[0]||=e=>Bi()}),null,16,wt)):b(``,!0),t.average&&e.selected!=null&&e.selected===n?(C(),x(`g`,Tt,[S(`rect`,We({ref_for:!0},t.highlight,{fill:L.value.highlighter.color,"fill-opacity":L.value.highlighter.opacity}),null,16,Et),(C(!0),x(_,null,T(t.lines,e=>(C(),x(`line`,We({ref_for:!0},e,{stroke:L.value.highlighter.stroke,"stroke-dasharray":L.value.highlighter.strokeDasharray,"stroke-width":L.value.highlighter.strokeWidth,style:{transition:`none !important`,animation:`none !important`}}),null,16,Dt))),256))])):b(``,!0)]))),256))],64))),64)),L.value.showLines?(C(),x(`g`,Ot,[(C(!0),x(_,null,T(ci.value,e=>(C(),x(_,null,[S(`path`,{d:`M ${e.dX}`,stroke:B.value.backgroundColor,"stroke-width":L.value.linesStrokeWidth+1,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},null,8,kt),S(`path`,{d:`M ${e.dX}`,stroke:e.color,"stroke-width":L.value.linesStrokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},null,8,At),S(`path`,{d:`M ${e.dY}`,stroke:B.value.backgroundColor,"stroke-width":L.value.linesStrokeWidth+1,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},null,8,jt),S(`path`,{d:`M ${e.dY}`,stroke:e.color,"stroke-width":L.value.linesStrokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},null,8,Mt)],64))),256))])):b(``,!0)])):b(``,!0),R.value.giftWrap.show?(C(),x(`g`,Nt,[(C(!0),x(_,null,T(J.value,(e,t)=>(C(),x(`g`,null,[e.plots.length>2?(C(),x(`polygon`,{key:0,points:O(d)({series:e.plots}),fill:O(g)(e.color,R.value.giftWrap.fillOpacity*100),"stroke-width":R.value.giftWrap.strokeWidth,"stroke-dasharray":R.value.giftWrap.strokeDasharray,stroke:e.color,"stroke-linejoin":`round`,"stroke-linecap":`round`},null,8,Pt)):b(``,!0)]))),256))])):b(``,!0),P.value.usePerformanceMode?b(``,!0):(C(!0),x(_,{key:8},T(J.value,(e,t)=>(C(),x(`g`,{key:e.id},[!e.shape||e.shape===`circle`?(C(),x(`g`,Ft,[(C(!0),x(_,null,T(e.plots,(n,r)=>(C(),x(`circle`,{key:n.id,cx:n.x,cy:n.y,r:Ui(n),fill:Wi(n,e.color),stroke:R.value.stroke,"stroke-width":R.value.strokeWidth,style:Je({opacity:Gi(n)}),onMouseover:e=>bi(n,t,`pointer`,$.value.get(n.id)),onMouseleave:e=>xi(n,t),onClick:e=>Si(n,t)},null,44,It))),128))])):(C(),x(`g`,Lt,[(C(!0),x(_,null,T(e.plots,(n,r)=>(C(),y(ke,{class:`vue-ui-scatter-datapoint`,plot:{x:n.x,y:n.y},radius:Ui(n),shape:e.shape,color:Wi(n,e.color),stroke:R.value.stroke,strokeWidth:R.value.strokeWidth,style:Je({opacity:Gi(n)}),onMouseover:e=>bi(n,t,`pointer`,$.value.get(n.id)),onMouseleave:e=>xi(n,t),onClick:e=>Si(n,t)},null,8,[`plot`,`radius`,`shape`,`color`,`stroke`,`strokeWidth`,`style`,`onMouseover`,`onMouseleave`,`onClick`]))),256))])),R.value.name.show?(C(!0),x(_,{key:2},T(e.plots,(e,n)=>(C(),x(`text`,{class:`vue-ui-scatter-datapoint-label`,key:`datalabel-${e.id}`,transform:`translate(${e.x}, ${e.y-e.weight-R.value.name.fontSize+R.value.name.offsetY})`,"text-anchor":`middle`,"font-size":R.value.name.fontSize,fill:O(g)(R.value.name.color,Y.value&&Y.value!==e.id||Z.value.length&&!Z.value.includes(e.id)?R.value.opacityNotSelected*100:100),onMouseover:n=>bi(e,t,`pointer`,$.value.get(e.id)),onMouseleave:n=>xi(e,t),onClick:n=>Si(e,t)},D(e.clusterName),41,Rt))),128)):b(``,!0)]))),128)),P.value.usePerformanceMode?(C(),x(_,{key:9},[S(`g`,null,[(C(!0),x(_,null,T(Ji.value,e=>(C(),x(`path`,{key:e.id,d:e.d,fill:e.fill,stroke:e.stroke,"stroke-width":e.strokeWidth,"stroke-opacity":e.strokeOpacity,"vector-effect":`non-scaling-stroke`,"paint-order":`fill`},null,8,zt))),128))]),X.value?(C(),x(`g`,Bt,[Ve(ke,{shape:X.value.shape||`circle`,color:X.value.color,plot:{x:X.value.x,y:X.value.y},radius:X.value.weight*R.value.hoverRadiusRatio,stroke:R.value.stroke,strokeWidth:R.value.strokeWidth},null,8,[`shape`,`color`,`plot`,`radius`,`stroke`,`strokeWidth`])])):b(``,!0),S(`rect`,{x:W.value.left,y:W.value.top,width:Math.max(1e-4,W.value.width),height:Math.max(1e-4,W.value.height),fill:`transparent`,style:Je({cursor:li.value&&rr.value?`pointer`:`default`}),onMousemove:Yi,onMouseleave:Xi,onClick:Zi},null,44,Vt)],64)):b(``,!0),(C(!0),x(_,null,T(gi.value,e=>(C(),x(_,{key:`selector_${e.id}`},[R.value.selectors.show?(C(),x(`g`,Ht,[S(`line`,{x1:q.value.x,x2:e.x,y1:e.y,y2:e.y,stroke:R.value.selectors.stroke,"stroke-width":R.value.selectors.strokeWidth,"stroke-dasharray":R.value.selectors.strokeDasharray,"stroke-linecap":`round`,class:`line-pointer`},null,8,Ut),S(`line`,{x1:e.x,x2:e.x,y1:q.value.y,y2:e.y,stroke:R.value.selectors.stroke,"stroke-width":R.value.selectors.strokeWidth,"stroke-dasharray":R.value.selectors.strokeDasharray,"stroke-linecap":`round`,class:`line-pointer`},null,8,Wt),I.value.scales.show?b(``,!0):(C(),x(`text`,{key:0,x:q.value.x+(e.x>q.value.x?-6:6),y:e.y+R.value.selectors.labels.fontSize/3,"font-size":R.value.selectors.labels.fontSize,fill:R.value.selectors.labels.color,"font-weight":R.value.selectors.labels.bold?`bold`:`normal`,"text-anchor":e.x>q.value.x?`end`:`start`},D(K(e.v.y,R.value.selectors.labels.y.formatter,R.value.selectors.labels.rounding,{datapoint:e})),9,Gt)),F.value.scales.show?b(``,!0):(C(),x(`text`,{key:1,x:e.x,y:q.value.y+(e.y>q.value.y?-6:R.value.selectors.labels.fontSize+6),"font-size":R.value.selectors.labels.fontSize,fill:R.value.selectors.labels.color,"font-weight":R.value.selectors.labels.bold?`bold`:`normal`,"text-anchor":`middle`},D(K(e.v.x,R.value.selectors.labels.x.formatter,R.value.selectors.labels.rounding,{datapoint:e})),9,Kt)),F.value.scales.show?(C(),x(`text`,{key:2,x:e.x,y:q.value.y+F.value.scales.labels.fontSize+6+F.value.scales.labels.offsetY,"text-anchor":`middle`,"font-size":F.value.scales.labels.fontSize,fill:F.value.scales.labels.color},D(_i(e)),9,qt)):b(``,!0),I.value.scales.show?(C(),x(`text`,{key:3,x:q.value.x-I.value.scales.labels.fontSize/2-8+I.value.scales.labels.offsetX,y:e.y+I.value.scales.labels.fontSize/3,"text-anchor":`end`,"font-size":I.value.scales.labels.fontSize,fill:I.value.scales.labels.color},D(vi(e)),9,Jt)):b(``,!0),S(`circle`,{cx:q.value.x,cy:e.y,r:R.value.selectors.markers.radius,fill:R.value.selectors.markers.fill,stroke:R.value.selectors.markers.stroke,"stroke-width":R.value.selectors.markers.strokeWidth,class:`line-pointer`},null,8,Yt),S(`circle`,{cx:e.x,cy:q.value.y,r:R.value.selectors.markers.radius,fill:R.value.selectors.markers.fill,stroke:R.value.selectors.markers.stroke,"stroke-width":R.value.selectors.markers.strokeWidth,class:`line-pointer`},null,8,Xt),R.value.selectors.labels.showName&&!R.value.name.show?(C(),x(`text`,{key:4,x:e.x,y:e.y+(e.y<q.value.y?-R.value.selectors.labels.fontSize/2:R.value.selectors.labels.fontSize),"font-size":R.value.selectors.labels.fontSize,fill:R.value.selectors.labels.color,"font-weight":R.value.selectors.labels.bold?`bold`:`normal`,"text-anchor":e.x<W.value.left+100?`start`:e.x>W.value.right-100?`end`:e.x>q.value.x?`start`:`end`},D(e.v.name),9,Zt)):b(``,!0)])):b(``,!0)],64))),128)),F.value.show?(C(),x(`g`,{key:10,ref_key:`xAxisLabelLeft`,ref:Wn},[S(`text`,{id:`vue-ui-scatter-xAxis-label-${j.value}`,transform:`translate(${F.value.fontSize+(B.value.layout.dataLabels.reverseAxisLabels?I.value.offsetX:F.value.offsetX)}, ${W.value.top+W.value.height/2+(B.value.layout.dataLabels.reverseAxisLabels?I.value.offsetY:F.value.offsetY)}), rotate(-90)`,"text-anchor":`middle`,"font-size":F.value.fontSize,"font-weight":F.value.bold?`bold`:`normal`,fill:F.value.color},D(B.value.layout.dataLabels.reverseAxisLabels?I.value.name:F.value.name),9,Qt),F.value.showValue?(C(),x(`text`,{key:0,"text-anchor":`middle`,"font-size":F.value.fontSize,fill:F.value.color,transform:`translate(${F.value.name?F.value.fontSize*3:0}, ${q.value.y+F.value.fontSize/3}), rotate(-90)`},D(K(G.value.xMin,R.value.selectors.labels.x.formatter,B.value.layout.dataLabels.xAxis.roundingValue)),9,$t)):b(``,!0)],512)):b(``,!0),F.value.show&&F.value.showValue?(C(),x(`text`,{key:11,ref_key:`xAxisLabelRight`,ref:Gn,"text-anchor":`middle`,transform:`translate(${W.value.right+B.value.layout.padding.right+6}, ${q.value.y+F.value.fontSize/3}), rotate(-90)`,"font-size":F.value.fontSize,fill:F.value.color},D(K(G.value.xMax,R.value.selectors.labels.x.formatter,F.value.rounding)),9,en)):b(``,!0),I.value.show&&I.value.showValue?(C(),x(`text`,{key:12,x:q.value.x,y:W.value.top-I.value.fontSize,"text-anchor":`middle`,"font-size":I.value.fontSize,fill:I.value.color},D(K(G.value.yMax,R.value.selectors.labels.y.formatter,I.value.rounding)),9,tn)):b(``,!0),I.value.show?(C(),x(`g`,{key:13,ref_key:`yAxisLabelBottom`,ref:Kn},[I.value.showValue?(C(),x(`text`,{key:0,x:q.value.x,y:U.value.height-I.value.fontSize*2,"text-anchor":`middle`,"font-size":I.value.fontSize,fill:I.value.color},D(K(G.value.yMin,R.value.selectors.labels.y.formatter,B.value.layout.dataLabels.yAxis.roundingValue)),9,nn)):b(``,!0),S(`text`,{"text-anchor":`middle`,"font-size":I.value.fontSize,"font-weight":I.value.bold?`bold`:`normal`,fill:I.value.color,x:W.value.left+W.value.width/2+(B.value.layout.dataLabels.reverseAxisLabels?F.value.offsetX:I.value.offsetX),y:U.value.height+(B.value.layout.dataLabels.reverseAxisLabels?F.value.offsetY:I.value.offsetY)},D(B.value.layout.dataLabels.reverseAxisLabels?F.value.name:I.value.name),9,rn)],512)):b(``,!0),S(`clipPath`,{id:`clip_path_${j.value}`},[S(`rect`,{x:W.value.left,y:W.value.top,width:W.value.width<=0?1e-4:W.value.width,height:W.value.height<=0?1e-4:W.value.height},null,8,on)],8,an),B.value.layout.correlation.show?(C(),x(`g`,sn,[(C(!0),x(_,null,T(J.value.filter(e=>e.correlation),(e,t)=>(C(),x(`line`,{x1:e.correlation.x1,x2:e.correlation.x2,y1:e.correlation.y1,y2:e.correlation.y2,"stroke-dasharray":B.value.layout.correlation.strokeDasharray,stroke:e.color,"stroke-width":B.value.layout.correlation.strokeWidth,"clip-path":`url(#clip_path_${j.value})`},null,8,cn))),256)),(C(!0),x(_,null,T(J.value.filter(e=>e.correlation),(e,t)=>(C(),x(`g`,null,[B.value.layout.correlation.label.show?(C(),x(`text`,{key:0,x:e.correlation.x2,y:e.correlation.y2,fill:B.value.layout.correlation.label.useSerieColor?e.color:B.value.layout.correlation.label.color,"text-anchor":`end`,"font-size":B.value.layout.correlation.label.fontSize,"font-weight":B.value.layout.correlation.label.bold?`bold`:`normal`},D(O(u)({v:O(oe)(e.correlation?.coefficient??0),r:B.value.layout.correlation.label.roundingValue})),9,ln)):b(``,!0)]))),256))])):b(``,!0),E(e.$slots,`svg`,{svg:{...U.value,drawingArea:{...W.value,zero:q.value},data:ei.value,isPrintingImg:O(Sr)||O(Cr)||O(ra),isPrintingSvg:O(ia)}},void 0,!0)],46,st)),e.$slots.hint?(C(),x(`div`,un,[E(e.$slots,`hint`,qe(Ue({hint:P.value.a11y.translations.keyboardNavigation,isVisible:Qn.value})),void 0,!0)])):b(``,!0)]),e.$slots.watermark?(C(),x(`div`,dn,[E(e.$slots,`watermark`,qe(Ue({isPrinting:O(Sr)||O(Cr)||O(ra)||O(ia)})),void 0,!0)])):b(``,!0),S(`div`,{id:`legend-bottom-${j.value}`},null,8,fn),On.value&&zn.value&&(B.value.legend.show||e.$slots.legend)?(C(),y(Re,{key:7,to:B.value.legend.position===`top`?`#legend-top-${j.value}`:`#legend-bottom-${j.value}`},[S(`div`,{ref_key:`chartLegend`,ref:Nn},[E(e.$slots,`legend`,{legend:Yr.value},()=>[B.value.legend.show?(C(),y(Me,{key:`legend_${Rn.value}`,legendSet:Yr.value,config:Zr.value,isCursorPointer:nr.value,onClickMarker:s[1]||=({legend:e})=>wi(e.id)},{item:k(({legend:e})=>[S(`div`,{onClick:t=>e.segregate(),style:Je(`opacity:${N.value.includes(e.id)?.5:1}`)},D(e.name),13,pn)]),legendToggle:k(()=>[Yr.value.length>2&&B.value.legend.selectAllToggle.show&&!O(or)?(C(),y(Fe,{key:0,backgroundColor:B.value.legend.selectAllToggle.backgroundColor,color:B.value.legend.selectAllToggle.color,fontSize:B.value.legend.fontSize,checked:N.value.length>0,isCursorPointer:nr.value,onToggle:Ci},null,8,[`backgroundColor`,`color`,`fontSize`,`checked`,`isCursorPointer`])):b(``,!0)]),_:1},8,[`legendSet`,`config`,`isCursorPointer`])):b(``,!0)],!0)],512)],8,[`to`])):b(``,!0),e.$slots.source?(C(),x(`div`,{key:8,ref_key:`source`,ref:Pn,dir:`auto`},[E(e.$slots,`source`,{},void 0,!0)],512)):b(``,!0),Ve(O(vn),{teleportTo:z.value.teleportTo,show:H.value.showTooltip&&kn.value,backgroundColor:z.value.backgroundColor,color:z.value.color,borderRadius:z.value.borderRadius,borderColor:z.value.borderColor,borderWidth:z.value.borderWidth,fontSize:z.value.fontSize,backgroundOpacity:z.value.backgroundOpacity,position:z.value.position,offsetX:z.value.offsetX,offsetY:z.value.offsetY,parent:M.value,content:An.value,isFullscreen:ji.value,isCustom:z.value.customFormat&&typeof z.value.customFormat==`function`,smooth:z.value.smooth,backdropFilter:z.value.backdropFilter,smoothForce:z.value.smoothForce,smoothSnapThreshold:z.value.smoothSnapThreshold,isA11yMode:Zn.value===`keyboard`,a11yPosition:Xn.value},{"tooltip-before":k(()=>[E(e.$slots,`tooltip-before`,qe(Ue({...ui.value})),void 0,!0)]),tooltip:k(()=>[E(e.$slots,`tooltip`,qe(Ue({...ui.value})),void 0,!0)]),"tooltip-after":k(()=>[E(e.$slots,`tooltip-after`,qe(Ue({...ui.value})),void 0,!0)]),default:k(()=>[z.value.showShape?(C(),x(`div`,mn,[(C(),x(`svg`,hn,[Ve(ke,{shape:X.value.shape,color:X.value.color,plot:{x:10,y:10},radius:7},null,8,[`shape`,`color`])]))])):b(``,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`borderRadius`,`borderColor`,`borderWidth`,`fontSize`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`isCustom`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),On.value&&er.value.buttons.table?(C(),y(Ze(Qi.value.component),We({key:9},Qi.value.props,{ref_key:`tableUnit`,ref:Hn,onClose:$i}),ze({content:k(()=>[(C(),y(O(xn),{key:`table_${Ln.value}`,colNames:Ai.value.colNames,head:Ai.value.head,body:Ai.value.body,config:Ai.value.config,title:P.value.table.useDialog?``:Qi.value.title,withCloseButton:!P.value.table.useDialog,isCursorPointer:nr.value,onClose:$i},{th:k(({th:e})=>[Be(D(e),1)]),td:k(({td:e})=>[e.shape?(C(),x(`div`,gn,[S(`span`,null,D(e.content),1)])):(C(),x(`div`,{key:1,innerHTML:e},null,8,_n))]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[P.value.table.useDialog?{name:`title`,fn:k(()=>[Be(D(Qi.value.title),1)]),key:`0`}:void 0,P.value.table.useDialog?{name:`actions`,fn:k(()=>[S(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:s[2]||=e=>ki(er.value.callbacks.csv),style:Je({cursor:nr.value?`pointer`:`default`})},[Ve(O(yn),{name:`fileCsv`,stroke:Qi.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):b(``,!0),E(e.$slots,`skeleton`,{},()=>[O(or)?(C(),y(Ne,{key:0})):b(``,!0)],!0)],46,nt))}},[[`__scopeId`,`data-v-1311bdd5`]]);export{tt as n,vn as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{B as t,Jt as n,M as r,X as i,t as a}from"./lib-rPeBMZrn.js";import{t as ee}from"./useNestedProp-DnGoh-XS.js";import{n as te,t as ne}from"./useHints-C-TwxM0Y.js";import{t as re}from"./useConfig-_JwRfIqE.js";import{n as o}from"./PackageVersion-ksOit8fp.js";import{t as ie}from"./DefGrad-DKMq1REY.js";import{t as s}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{Fragment as c,computed as l,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createStaticVNode as p,createVNode as m,normalizeClass as ae,normalizeStyle as h,openBlock as g,ref as _,renderList as v,unref as y}from"vue";var b=/* @__PURE__ */ e({default:()=>G}),oe=[`id`],se=[`xmlns`],ce={transform:`translate(300, 300)`},le=[`d`,`fill`,`stroke`],ue=[`xmlns`],x=[`fill`,`stroke`],S=[`fill`,`stroke`],C=[`fill`,`stroke`],w=[`fill`,`stroke`],T=[`fill`,`stroke`],E=[`xmlns`],D=[`stroke`],O=[`stroke`],k=[`stroke`],A=[`fill`,`stroke`],j=[`fill`],M=[`fill`,`stroke`],N=[`fill`],P=[`fill`,`stroke`],F=[`fill`],I=[`fill`,`stroke`],L=[`fill`],R=[`fill`,`stroke`],z=[`fill`],B=[`fill`,`stroke`],V=[`fill`],H=[`xmlns`],U=[`stroke`],de=[`stroke`],fe=[`stroke`],pe=[`stroke`],me=[`stroke`],he=[`stroke`],ge=[`stroke`],_e=[`stroke`],ve=[`stroke`],ye=[`xmlns`],be=[`stroke`,`fill`],xe=[`xmlns`],Se=[`stroke`,`fill`],Ce=[`xmlns`],we=[`fill`],Te=[`fill`],Ee=[`fill`],De=[`fill`],Oe=[`xmlns`],ke=[`stroke`],Ae=[`fill`],je=[`stroke`,`fill`],Me=[`stroke`,`fill`],Ne=[`fill`],Pe=[`stroke`,`fill`],Fe=[`stroke`,`fill`],Ie=[`fill`],Le=[`stroke`,`fill`],Re=[`stroke`,`fill`],ze=[`fill`],Be=[`stroke`,`fill`],Ve=[`stroke`,`fill`],He=[`fill`],Ue=[`stroke`,`fill`],We=[`stroke`,`fill`],Ge=[`xmlns`],Ke=[`stroke`],qe=[`stroke`],Je=[`stroke`,`fill`],Ye=[`stroke`,`fill`],Xe=[`stroke`,`fill`],Ze=[`stroke`,`fill`],Qe=[`stroke`,`fill`],$e=[`stroke`,`fill`],et=[`stroke`,`fill`],tt=[`stroke`,`fill`],nt=[`stroke`,`fill`],rt=[`stroke`,`fill`],it=[`stroke`,`fill`],at=[`stroke`,`fill`],ot=[`stroke`,`fill`],st=[`stroke`,`fill`],ct=[`stroke`,`fill`],lt=[`stroke`,`fill`],ut=[`stroke`,`fill`],dt=[`stroke`,`fill`],ft=[`stroke`,`fill`],pt=[`stroke`,`fill`],mt=[`stroke`,`fill`],ht=[`stroke`,`fill`],gt=[`stroke`,`fill`],_t=[`xmlns`],vt=[`stroke`],yt=[`xmlns`],bt=[`stroke`],xt=[`xmlns`],St=[`stroke`],Ct=[`xmlns`],wt=[`fill`],Tt=[`fill`],Et=[`fill`],Dt=[`fill`],Ot=[`fill`],kt=[`fill`],At=[`fill`],jt=[`fill`],Mt=[`fill`],Nt=[`fill`],Pt=[`fill`],Ft=[`fill`],It=[`xmlns`],Lt=[`stroke`],Rt=[`stroke`],zt=[`stroke`],Bt=[`stroke`],Vt=[`stroke`],Ht=[`stroke`],Ut=[`xmlns`],Wt=[`stroke`],Gt=[`stroke`],Kt=[`stroke`],qt=[`stroke`],Jt=[`stroke`],Yt=[`stroke`],Xt=[`stroke`],Zt=[`stroke`],Qt=[`stroke`],$t=[`xmlns`],en=[`stroke`],tn=[`xmlns`],nn=[`stroke`],rn=[`stroke`],an=[`stroke`],on=[`stroke`],sn=[`stroke`],cn=[`stroke`],ln=[`stroke`],un=[`stroke`],dn=[`stroke`],fn=[`xmlns`],pn=[`x1`,`x2`,`stroke`],mn=[`xmlns`],hn=[`x`,`y`,`width`,`height`,`fill`],gn=[`y`,`width`,`height`,`fill`],_n=[`xmlns`],vn=[`fill`],yn=[`fill`],bn=[`fill`],xn=[`xmlns`],Sn=[`x1`,`x2`,`y1`,`y2`,`stroke`],Cn=[`stroke`],wn=[`fill`],Tn=[`xmlns`],En=[`fill`],Dn=[`fill`],On=[`x1`,`y1`,`x2`,`y2`,`stroke-width`,`stroke`],kn=[`xmlns`],An={key:0},jn=[`stroke`,`stroke-width`],Mn=[`stroke`,`stroke-width`],Nn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],Pn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],Fn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],In=[`x`,`y`,`height`,`width`,`fill`],Ln=[`xmlns`,`viewBox`],Rn=[`x`,`y`,`stroke`,`fill`],zn=[`xmlns`],Bn=[`d`,`stroke`],Vn=[`cx`,`cy`,`r`,`fill`,`stroke`],Hn=[`cx`,`cy`,`r`,`fill`,`stroke`],Un=[`x`,`y`,`width`,`fill`],Wn=[`cx`,`cy`,`fill`],Gn=[`cx`,`cy`,`fill`],Kn=[`stroke`],qn=[`xmlns`],Jn=[`stroke`,`stroke-width`],Yn=[`stroke`,`stroke-width`],Xn=[`stroke`,`stroke-width`],Zn=[`fill`],Qn=[`fill`],$n=[`fill`],er=[`fill`],tr=[`fill`],nr=[`fill`],rr=[`xmlns`],ir={key:0},ar=[`stroke`,`stroke-width`],or=[`stroke`,`stroke-width`],sr=[`stroke`,`stroke-width`],cr={key:1},lr=[`r`,`fill`],ur=[`r`,`fill`],dr=[`xmlns`],fr={key:0},pr=[`stroke`,`stroke-width`],mr=[`stroke`,`stroke-width`],hr=[`fill`,`rx`,`x`,`y`,`width`,`height`],gr=[`xmlns`],_r=[`stroke-width`,`stroke`],vr=[`stroke-width`,`stroke`],yr=[`stroke-width`,`stroke`],br=[`xmlns`],xr=[`stroke`],Sr=[`stroke`],Cr=[`stroke`],wr=[`stroke`],Tr=[`fill`],Er=[`stroke`],Dr=[`xmlns`],Or=[`stroke`,`stroke-width`],kr=[`stroke`,`stroke-width`],Ar=[`fill`,`r`],jr=[`fill`,`r`],Mr=[`fill`,`r`],Nr=[`fill`,`r`],Pr=[`fill`,`r`],Fr=[`fill`,`r`],Ir=[`fill`,`r`],Lr=[`fill`,`r`],Rr=[`fill`,`r`],zr=[`xmlns`],Br=[`d`,`stroke`,`stroke-width`],Vr=[`d`,`stroke`,`stroke-width`],Hr=[`d`,`stroke`,`stroke-width`],Ur=[`d`,`stroke`,`stroke-width`],Wr=[`stroke`,`stroke-width`],Gr=[`stroke`,`stroke-width`],Kr=[`stroke`,`stroke-width`],qr=[`fill`],Jr=[`fill`],Yr=[`xmlns`],Xr=[`x`,`y`,`fill`],Zr=[`x`,`y`,`fill`],Qr=[`x`,`y`,`fill`],$r=[`xmlns`],ei=[`fill`],ti=[`fill`],ni=[`y1`,`y2`,`stroke`,`stroke-width`],ri=[`x1`,`x2`,`stroke`,`stroke-width`],ii=[`xmlns`,`stroke`],ai=[`fill`],oi=[`xmlns`,`stroke`],si=[`xmlns`,`stroke`],ci=[`fill`],li=[`xmlns`,`stroke`],ui=[`xmlns`,`stroke`],di=[`fill`],fi=[`xmlns`,`stroke`],pi=[`xmlns`,`stroke`],mi=[`fill`],hi=[`xmlns`,`stroke`],W=[`xmlns`,`stroke`],gi=[`fill`],_i=[`xmlns`,`stroke`],vi=[`xmlns`],yi=[`points`,`fill`,`stroke`,`stroke-width`],bi=[`xmlns`],xi={key:0},Si=[`stroke`,`stroke-width`],Ci=[`y`,`width`,`fill`,`rx`],G=/*#__PURE__*/ s({__name:`vue-ui-skeleton`,props:{config:{type:Object,default(){return{}}}},setup(e){let{vue_ui_skeleton:s}=re(),b=e,G=_(`vue-ui-skeleton-${i()}`),K=l(()=>ee({userConfig:b.config,defaultConfig:s})),q=l(()=>K.value.style);te({config:()=>K.value,dataset:()=>[],component:`VueUiSkeleton`,rules:[ne.noHint]});let wi=l(()=>K.value.style.animated),J=l(()=>K.value.type),Ti=_([60,50,55,36,40,25,26,12]),Ei=l(()=>r({plot:{x:50,y:50},radius:40,sides:6}).path),Di=l(()=>r({plot:{x:50,y:50},radius:30,sides:6}).path),Oi=l(()=>r({plot:{x:50,y:50},radius:20,sides:6}).path),ki=l(()=>r({plot:{x:50,y:50},radius:10,sides:6}).path),Y=_([{root:{x:70,y:77,r:44,opacity:100},bars:[{x:200,y:37,opacity:100,width:240},{x:200,y:118,opacity:100,width:180},{x:200,y:253,opacity:100,width:80}]},{root:{x:70,y:177,r:32,opacity:70},bars:[{x:200,y:145,opacity:70,width:160},{x:200,y:172,opacity:70,width:140},{x:200,y:199,opacity:70,width:120}]},{root:{x:70,y:257,r:24,opacity:40},bars:[{x:200,y:64,opacity:40,width:220},{x:200,y:91,opacity:40,width:200},{x:200,y:226,opacity:40,width:100}]}]),X=_([{y:200,height:100,bar:50},{y:180,height:100,bar:40},{y:150,height:100,bar:30},{y:120,height:80,bar:50},{y:110,height:60,bar:30},{y:80,height:80,bar:10},{y:50,height:80,bar:40},{y:24,height:40,bar:24},{y:44,height:20,bar:13},{y:32,height:45,bar:19}]),Z=_([[3,2.5],[4,3.1],[8,6],[9.5,6.5],[12,11],[16,15],[18,18.2],[25,24],[24,26],[32,32],[33,32],[32,31],[38,37],[37,38],[42,41],[40,41],[44,45],[38,35],[31,32]]),Q=_([{x:40,y:30},{x:45,y:28},{x:50,y:25},{x:55,y:20},{x:60,y:27},{x:65,y:14},{x:70,y:23},{x:75,y:16},{x:80,y:25},{x:85,y:10},{x:90,y:18},{x:95,y:7},{x:100,y:12},{x:105,y:10},{x:110,y:20},{x:115,y:7},{x:120,y:14},{x:125,y:10},{x:130,y:19},{x:135,y:3},{x:140,y:10},{x:145,y:2},{x:150,y:1}]);function $(e,t=1){let n=29.85;return{x:200+160*Math.cos(n+e*Math.PI/180)*t,y:200+160*Math.sin(n+e*Math.PI/180)*t}}let Ai=l(()=>{let e=[];for(let t=0;t<100;t+=1)e.push({x1:$(360/100*t).x,y1:$(360/100*t).y,x2:$(360/100*t,.9).x,y2:$(360/100*t,.9).y,color:K.value.style.wheel.color});return e}),ji=_([`M1.74 203.99A204 204 0 01-131.29-156.13l15.44 18.36A180 180 0 001.53 179.99Z`,`M-123.33-162.5A204 204 0 01-10.2-203.75L-9-179.78a180 180 0 00-99.82 36.4Z`,`M0-180A180 180 0 01175.19 41.33l23.36 5.51A204 204 0 000-204Z`,`M172.91 50.03A180 180 0 0110.53 179.69l1.4 23.96A204 204 0 00195.96 56.7Z`,`M-166.87-67.49a180 180 0 0151.02-70.28Q0 0 119.83-134.32a180 180 0 0152.13 81.13Q0 0-166.87-67.49Z`,`M-29.99-177.48a180 180 0 0110.73-1.49Q0 0 112.89 140.2A180 180 0 0153.63 171.83Q0 0-29.99-177.48Z`,`M179.71 10.29a180 180 0 01-4.52 31.04Q0 0-40.87-175.3a180 180 0 0110.88-2.18Q0 0 179.71 10.29Z`,`M-19.26-178.97Q0 0-166.87-67.49a180 180 0 00-12.14 86.36Q0 0-9-179.78a180 180 0 00-10.26.81Z`,`M-108.82-143.38Q0 0-40.87-175.3a180 180 0 00-67.95 31.92Q0 0-40.87-175.3a180 180 0 00-67.95 31.92Z`,`M0-180a180 180 0 01119.83 45.68Q0 0 0-180a180 180 0 01119.83 45.68Q0 0 0-180Z`,`M-148.85 101.22Q0 0-179.01 18.87a180 180 0 0030.16 82.35Q0 0-179.01 18.87a180 180 0 0030.16 82.35Z`,`M1.53 179.99Q0 0 31.73 177.18a180 180 0 0021.9-5.35Q0 0-148.85 101.22A180 180 0 001.53 179.99Z`,`M31.73 177.18a180 180 0 01-21.2 2.51Q0 0 171.96-53.19a180 180 0 017.75 63.48Q0 0 31.73 177.18Z`,`M172.91 50.03Q0 0 112.89 140.2a180 180 0 0060.02-90.17Q0 0 112.89 140.2a180 180 0 0060.02-90.17Z`]);return(e,r)=>(g(),d(`div`,{id:G.value,class:ae({"vue-data-ui-component":!0,"vue-ui-skeleton":!0,"vue-ui-skeleton-animated":wi.value}),style:h(`background:${q.value.backgroundColor};color:${q.value.color};display:flex;align-items:center;justify-content:center;`)},[J.value===`chord`?(g(),d(`svg`,{key:0,xmlns:y(a),width:`100%`,viewBox:`0 0 600 600`,style:h({background:q.value.backgroundColor})},[m(o),f(`g`,ce,[(g(!0),d(c,null,v(ji.value,(e,t)=>(g(),d(`path`,{key:e,d:e,fill:q.value.chord.color,stroke:q.value.backgroundColor,"stroke-width":`2`,style:h({opacity:t>3?.6:1})},null,12,le))),128))])],12,se)):u(``,!0),J.value===`ridgeline`?(g(),d(`svg`,{key:1,xmlns:y(a),width:`100%`,viewBox:`20 0 512 200`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`defs`,null,[m(ie,{t:`linear`,id:`ridgeline-gradient-${G.value}`,x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,stops:[[`0%`,q.value.ridgeline.color,1],[`30%`,q.value.ridgeline.color,.7],[`70%`,q.value.ridgeline.color,.3],[`100%`,q.value.ridgeline.color,.1]]},null,8,[`id`,`stops`])]),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 60c6.18-.6 12.36-1.11 18.55-1.79 6.18-.68 12.37-2.38 18.55-2.4 6.19-.01 12.37 0 18.56-.01 6.18-.02 12.37-5.3 18.55-5.3 6.19 0 12.37 4.95 18.56 4.95 6.18 0 12.37-2.78 18.55-2.78 6.19 0 12.37 1.02 18.56 1.92 6.18.9 12.37 4.58 18.55 4.58s12.37-6.71 18.55-6.71c6.19 0 12.37.89 18.56.89 6.18 0 12.37-4.48 18.55-4.48 6.19 0 12.37 4.79 18.56 4.79 6.18 0 12.37-26.07 18.55-26.07 6.19 0 12.37 9.31 18.56 13.85 6.18 4.54 12.37 13.39 18.55 13.39 6.19 0 12.37-36.14 18.56-36.14 6.18 0 12.36 38.45 18.55 38.45 6.18 0 12.37-11.46 18.55-16.94 6.19-5.48 12.37-15.97 18.56-15.97 6.18 0 12.37 16.4 18.55 16.4 6.19 0 12.37-.12 18.56-.35 6.18-.22 12.37-38.08 18.55-38.08 6.19 0 12.37 24.07 18.56 36.1V60`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,x),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 90c6.18-.22 12.36-.35 18.55-.67 6.18-.32 12.37-1.65 18.55-1.65 6.19 0 12.37 1.66 18.56 1.66 6.18 0 12.37-8.76 18.55-8.76 6.19 0 12.37 4.15 18.56 4.15 6.18 0 12.37-8.44 18.55-8.44 6.19 0 12.37 10.87 18.56 10.87 6.18 0 12.37-9.21 18.55-12.16 6.18-2.96 12.37-6.97 18.55-6.97 6.19 0 12.37 9.59 18.56 12.77 6.18 3.18 12.37 7.6 18.55 7.6 6.19 0 12.37-24.44 18.56-24.44 6.18 0 12.37 16.97 18.55 16.97 6.19 0 12.37-20.62 18.56-20.62 6.18 0 12.37 20.37 18.55 20.37 6.19 0 12.37-13.13 18.56-13.13 6.18 0 12.36 13.51 18.55 13.51 6.18 0 12.37-26.41 18.55-26.41 6.19 0 12.37.49 18.56 1.26 6.18.78 12.37 13.82 18.55 13.82 6.19 0 12.37-5.3 18.56-8.3 6.18-3 12.37-9.81 18.55-9.81 6.19 0 12.37 19.82 18.56 29.72V90`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,S),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 120c6.18-.34 12.36-.55 18.55-1.01 6.18-.46 12.37-1.17 18.55-2.15 6.19-.99 12.37-3.7 18.56-4.69 6.18-.98 12.37-2.15 18.55-2.15 6.19 0 12.37.52 18.56 1.2 6.18.68 12.37 6.67 18.55 6.67 6.19 0 12.37-12.15 18.56-12.15 6.18 0 12.37 4.6 18.55 4.6S227.5 99.7 233.68 98.99c6.19-.71 12.37-1.18 18.56-1.18 6.18 0 12.37 17.75 18.55 18.22 6.19.48 12.37.74 18.56.74 6.18 0 12.37-17.09 18.55-17.09 6.19 0 12.37 12.68 18.56 12.68 6.18 0 12.37-.33 18.55-.67 6.19-.34 12.37-.79 18.56-2.06 6.18-1.26 12.36-25.45 18.55-25.45 6.18 0 12.37 10.35 18.55 10.35 6.19 0 12.37-21.07 18.56-21.07 6.18 0 12.37 33.27 18.55 33.27 6.19 0 12.37-26.97 18.56-26.97 6.18 0 12.37 26.97 18.55 27.36 6.19.4 12.37.41 18.56.61V120`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,C),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 150c6.18-.52 12.36-1.57 18.55-1.57 6.18 0 12.37 1.36 18.55 1.36 6.19 0 12.37-1.75 18.56-3.18 6.18-1.43 12.37-6.62 18.55-6.62 6.19 0 12.37 9.98 18.56 9.98 6.18 0 12.37-4.94 18.55-5.64 6.19-.71 12.37-.52 18.56-1.31 6.18-.78 12.37-12.43 18.55-12.43s12.37 18.52 18.55 18.52c6.19 0 12.37-2.49 18.56-2.49 6.18 0 12.37 3.02 18.55 3.02 6.19 0 12.37-29.39 18.56-29.39 6.18 0 12.37 5.56 18.55 8.36 6.19 2.81 12.37 5.14 18.56 8.47 6.18 3.34 12.37 12.25 18.55 12.25 6.19 0 12.37-4.3 18.56-8.78 6.18-4.48 12.36-28.77 18.55-28.77 6.18 0 12.37 1.29 18.55 3.02 6.19 1.72 12.37 18.36 18.56 18.36 6.18 0 12.37-7.68 18.55-12.92 6.19-5.24 12.37-18.51 18.56-20.1 6.18-1.58 12.37-2.7 18.55-2.7 6.19 0 12.37 34.69 18.56 52.04V150`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,w),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 180c6.18-.6 12.36-1.07 18.55-1.81 6.18-.74 12.37-2.86 18.55-2.86 6.19 0 12.37 2.14 18.56 2.14 6.18 0 12.37-7.08 18.55-7.08 6.19 0 12.37 1.08 18.56 2.03 6.18.95 12.37 4.75 18.55 4.75 6.19 0 12.37-2.45 18.56-4.62 6.18-2.17 12.37-10.99 18.55-10.99s12.37 9.58 18.55 9.58c6.19 0 12.37-.25 18.56-.69 6.18-.43 12.37-13.6 18.55-13.6 6.19 0 12.37 17.23 18.56 17.23 6.18 0 12.37-2.5 18.55-5.19 6.19-2.68 12.37-15.45 18.56-18 6.18-2.55 12.37-4.86 18.55-4.86 6.19 0 12.37 18.61 18.56 18.61 6.18 0 12.36-24.22 18.55-26.66 6.18-2.45 12.37-4.25 18.55-4.25 6.19 0 12.37 7.92 18.56 7.92 6.18 0 12.37-1.95 18.55-1.95 6.19 0 12.37 29.69 18.56 29.69 6.18 0 12.37-2.55 18.55-6.14 6.19-3.58 12.37-28.83 18.56-43.25v60`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,T)],12,ue)):u(``,!0),J.value===`historyPlot`?(g(),d(`svg`,{key:2,xmlns:y(a),width:`100%`,viewBox:`0 0 612 512`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`line`,{x1:`12`,x2:`12`,y1:`12`,y2:`500`,stroke:q.value.historyPlot.color,"stroke-width":`3`,"stroke-linecap":`round`},null,8,D),f(`line`,{x1:`12`,x2:`600`,y1:`500`,y2:`500`,stroke:q.value.historyPlot.color,"stroke-width":`3`,"stroke-linecap":`round`},null,8,O),f(`path`,{d:`M 80,100 300,200 400,150 560,230 360,420 230,320`,fill:`none`,stroke:q.value.historyPlot.color,"stroke-width":`3`},null,8,k),f(`circle`,{cx:`80`,cy:`100`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,A),f(`text`,{x:`80`,y:`108`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 1 `,8,j),f(`circle`,{cx:`300`,cy:`200`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,M),f(`text`,{x:`300`,y:`208`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 2 `,8,N),f(`circle`,{cx:`400`,cy:`150`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,P),f(`text`,{x:`400`,y:`158`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 3 `,8,F),f(`circle`,{cx:`560`,cy:`230`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,I),f(`text`,{x:`560`,y:`238`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 4 `,8,L),f(`circle`,{cx:`360`,cy:`420`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,R),f(`text`,{x:`360`,y:`428`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 5 `,8,z),f(`circle`,{cx:`230`,cy:`320`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,B),f(`text`,{x:`230`,y:`328`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 6 `,8,V)],12,E)):u(``,!0),J.value===`circlePack`?(g(),d(`svg`,{key:3,xmlns:y(a),width:`100%`,viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[f(`circle`,{cx:50,cy:50,r:20,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,U),f(`circle`,{cx:80,cy:50,r:10,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,de),f(`circle`,{cx:28,cy:30,r:10,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,fe),f(`circle`,{cx:25,cy:76,r:16,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,pe),f(`circle`,{cx:60,cy:78.5,r:10,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,me),f(`circle`,{cx:64,cy:20,r:13,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,he),f(`circle`,{cx:72,cy:37,r:5,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,ge),f(`circle`,{cx:25,cy:45,r:5,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,_e),f(`circle`,{cx:70,cy:66,r:5,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,ve)],12,H)):u(``,!0),J.value===`flow`?(g(),d(`svg`,{key:4,xmlns:y(a),width:`100%`,viewBox:`0 0 80 60`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:`M5 5V55M75 5V55M28 5V55M52 5V55M5 8l23 4L52 9 75 8v4H52L28 21 5 29ZM5 34l23 1L52 24l23-3v6L52 30 28 44l24-5 23 2v6L52 45 28 52H5Z`,stroke:q.value.flow.color,"stroke-width":.8,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:q.value.flow.color},null,8,be)],12,ye)):u(``,!0),J.value===`parallelCoordinatePlot`?(g(),d(`svg`,{key:5,xmlns:y(a),width:`100%`,viewBox:`0 0 80 60`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:`M5 5V55M75 5V55M28 5V55M52 5V55M5 10a1 1 0 000 2 1 1 0 000-2m23 5a1 1 0 000 2 1 1 0 000-2M52 8a1 1 0 000 2 1 1 0 000-2m23 3a1 1 0 000 2 1 1 0 000-2M6 11l21 5m2 0L51 9m2 0 21 3M5 50a1 1 0 000-2 1 1 0 000 2M28 39a1 1 0 000 2 1 1 0 000-2m24 6a1 1 0 000 2 1 1 0 000-2m23 0a1 1 0 000 2 1 1 0 000-2M6 49l21-9m2 0 22 6m2 0H74M5 25a1 1 0 000 2 1 1 0 000-2m23 6a1 1 0 000 2 1 1 0 000-2m24-8a1 1 0 000 2 1 1 0 000-2m23-2a1 1 0 000 2 1 1 0 000-2M6 26l21 6m2 0 22-8m2 0 21-2`,stroke:q.value.parallelCoordinatePlot.color,"stroke-width":.8,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:q.value.parallelCoordinatePlot.color},null,8,Se)],12,xe)):u(``,!0),J.value===`bullet`?(g(),d(`svg`,{key:6,xmlns:y(a),width:`100%`,viewBox:`0 0 600 96`,style:h(`background:${q.value.backgroundColor}`)},[f(`rect`,{fill:q.value.bullet.color,x:24,y:12,width:300,height:72,style:{opacity:`0.8`}},null,8,we),f(`rect`,{fill:q.value.bullet.color,x:324,y:12,width:150,height:72,style:{opacity:`0.6`}},null,8,Te),f(`rect`,{fill:q.value.bullet.color,x:474,y:12,width:102,height:72,style:{opacity:`0.3`}},null,8,Ee),f(`rect`,{fill:q.value.bullet.color,x:24,y:36,width:490,height:24,style:{opacity:`1`}},null,8,De)],12,Ce)):u(``,!0),J.value===`dumbbell`?(g(),d(`svg`,{key:7,xmlns:y(a),width:`100%`,viewBox:`0 0 100 55`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`line`,{x1:`3`,x2:`3`,y1:`3`,y2:`67`,stroke:q.value.dumbbell.color,"stroke-width":.5,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,ke),f(`path`,{d:`
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{B as t,Jt as n,M as r,X as i,t as a}from"./lib-rPeBMZrn.js";import{t as ee}from"./useNestedProp-DnGoh-XS.js";import{n as te,t as ne}from"./useHints-C-TwxM0Y.js";import{t as re}from"./useConfig-9oDGTWWG.js";import{n as o}from"./PackageVersion-B9qiUJPH.js";import{t as ie}from"./DefGrad-DKMq1REY.js";import{t as s}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{Fragment as c,computed as l,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createStaticVNode as p,createVNode as m,normalizeClass as ae,normalizeStyle as h,openBlock as g,ref as _,renderList as v,unref as y}from"vue";var b=/* @__PURE__ */ e({default:()=>G}),oe=[`id`],se=[`xmlns`],ce={transform:`translate(300, 300)`},le=[`d`,`fill`,`stroke`],ue=[`xmlns`],x=[`fill`,`stroke`],S=[`fill`,`stroke`],C=[`fill`,`stroke`],w=[`fill`,`stroke`],T=[`fill`,`stroke`],E=[`xmlns`],D=[`stroke`],O=[`stroke`],k=[`stroke`],A=[`fill`,`stroke`],j=[`fill`],M=[`fill`,`stroke`],N=[`fill`],P=[`fill`,`stroke`],F=[`fill`],I=[`fill`,`stroke`],L=[`fill`],R=[`fill`,`stroke`],z=[`fill`],B=[`fill`,`stroke`],V=[`fill`],H=[`xmlns`],U=[`stroke`],de=[`stroke`],fe=[`stroke`],pe=[`stroke`],me=[`stroke`],he=[`stroke`],ge=[`stroke`],_e=[`stroke`],ve=[`stroke`],ye=[`xmlns`],be=[`stroke`,`fill`],xe=[`xmlns`],Se=[`stroke`,`fill`],Ce=[`xmlns`],we=[`fill`],Te=[`fill`],Ee=[`fill`],De=[`fill`],Oe=[`xmlns`],ke=[`stroke`],Ae=[`fill`],je=[`stroke`,`fill`],Me=[`stroke`,`fill`],Ne=[`fill`],Pe=[`stroke`,`fill`],Fe=[`stroke`,`fill`],Ie=[`fill`],Le=[`stroke`,`fill`],Re=[`stroke`,`fill`],ze=[`fill`],Be=[`stroke`,`fill`],Ve=[`stroke`,`fill`],He=[`fill`],Ue=[`stroke`,`fill`],We=[`stroke`,`fill`],Ge=[`xmlns`],Ke=[`stroke`],qe=[`stroke`],Je=[`stroke`,`fill`],Ye=[`stroke`,`fill`],Xe=[`stroke`,`fill`],Ze=[`stroke`,`fill`],Qe=[`stroke`,`fill`],$e=[`stroke`,`fill`],et=[`stroke`,`fill`],tt=[`stroke`,`fill`],nt=[`stroke`,`fill`],rt=[`stroke`,`fill`],it=[`stroke`,`fill`],at=[`stroke`,`fill`],ot=[`stroke`,`fill`],st=[`stroke`,`fill`],ct=[`stroke`,`fill`],lt=[`stroke`,`fill`],ut=[`stroke`,`fill`],dt=[`stroke`,`fill`],ft=[`stroke`,`fill`],pt=[`stroke`,`fill`],mt=[`stroke`,`fill`],ht=[`stroke`,`fill`],gt=[`stroke`,`fill`],_t=[`xmlns`],vt=[`stroke`],yt=[`xmlns`],bt=[`stroke`],xt=[`xmlns`],St=[`stroke`],Ct=[`xmlns`],wt=[`fill`],Tt=[`fill`],Et=[`fill`],Dt=[`fill`],Ot=[`fill`],kt=[`fill`],At=[`fill`],jt=[`fill`],Mt=[`fill`],Nt=[`fill`],Pt=[`fill`],Ft=[`fill`],It=[`xmlns`],Lt=[`stroke`],Rt=[`stroke`],zt=[`stroke`],Bt=[`stroke`],Vt=[`stroke`],Ht=[`stroke`],Ut=[`xmlns`],Wt=[`stroke`],Gt=[`stroke`],Kt=[`stroke`],qt=[`stroke`],Jt=[`stroke`],Yt=[`stroke`],Xt=[`stroke`],Zt=[`stroke`],Qt=[`stroke`],$t=[`xmlns`],en=[`stroke`],tn=[`xmlns`],nn=[`stroke`],rn=[`stroke`],an=[`stroke`],on=[`stroke`],sn=[`stroke`],cn=[`stroke`],ln=[`stroke`],un=[`stroke`],dn=[`stroke`],fn=[`xmlns`],pn=[`x1`,`x2`,`stroke`],mn=[`xmlns`],hn=[`x`,`y`,`width`,`height`,`fill`],gn=[`y`,`width`,`height`,`fill`],_n=[`xmlns`],vn=[`fill`],yn=[`fill`],bn=[`fill`],xn=[`xmlns`],Sn=[`x1`,`x2`,`y1`,`y2`,`stroke`],Cn=[`stroke`],wn=[`fill`],Tn=[`xmlns`],En=[`fill`],Dn=[`fill`],On=[`x1`,`y1`,`x2`,`y2`,`stroke-width`,`stroke`],kn=[`xmlns`],An={key:0},jn=[`stroke`,`stroke-width`],Mn=[`stroke`,`stroke-width`],Nn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],Pn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],Fn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],In=[`x`,`y`,`height`,`width`,`fill`],Ln=[`xmlns`,`viewBox`],Rn=[`x`,`y`,`stroke`,`fill`],zn=[`xmlns`],Bn=[`d`,`stroke`],Vn=[`cx`,`cy`,`r`,`fill`,`stroke`],Hn=[`cx`,`cy`,`r`,`fill`,`stroke`],Un=[`x`,`y`,`width`,`fill`],Wn=[`cx`,`cy`,`fill`],Gn=[`cx`,`cy`,`fill`],Kn=[`stroke`],qn=[`xmlns`],Jn=[`stroke`,`stroke-width`],Yn=[`stroke`,`stroke-width`],Xn=[`stroke`,`stroke-width`],Zn=[`fill`],Qn=[`fill`],$n=[`fill`],er=[`fill`],tr=[`fill`],nr=[`fill`],rr=[`xmlns`],ir={key:0},ar=[`stroke`,`stroke-width`],or=[`stroke`,`stroke-width`],sr=[`stroke`,`stroke-width`],cr={key:1},lr=[`r`,`fill`],ur=[`r`,`fill`],dr=[`xmlns`],fr={key:0},pr=[`stroke`,`stroke-width`],mr=[`stroke`,`stroke-width`],hr=[`fill`,`rx`,`x`,`y`,`width`,`height`],gr=[`xmlns`],_r=[`stroke-width`,`stroke`],vr=[`stroke-width`,`stroke`],yr=[`stroke-width`,`stroke`],br=[`xmlns`],xr=[`stroke`],Sr=[`stroke`],Cr=[`stroke`],wr=[`stroke`],Tr=[`fill`],Er=[`stroke`],Dr=[`xmlns`],Or=[`stroke`,`stroke-width`],kr=[`stroke`,`stroke-width`],Ar=[`fill`,`r`],jr=[`fill`,`r`],Mr=[`fill`,`r`],Nr=[`fill`,`r`],Pr=[`fill`,`r`],Fr=[`fill`,`r`],Ir=[`fill`,`r`],Lr=[`fill`,`r`],Rr=[`fill`,`r`],zr=[`xmlns`],Br=[`d`,`stroke`,`stroke-width`],Vr=[`d`,`stroke`,`stroke-width`],Hr=[`d`,`stroke`,`stroke-width`],Ur=[`d`,`stroke`,`stroke-width`],Wr=[`stroke`,`stroke-width`],Gr=[`stroke`,`stroke-width`],Kr=[`stroke`,`stroke-width`],qr=[`fill`],Jr=[`fill`],Yr=[`xmlns`],Xr=[`x`,`y`,`fill`],Zr=[`x`,`y`,`fill`],Qr=[`x`,`y`,`fill`],$r=[`xmlns`],ei=[`fill`],ti=[`fill`],ni=[`y1`,`y2`,`stroke`,`stroke-width`],ri=[`x1`,`x2`,`stroke`,`stroke-width`],ii=[`xmlns`,`stroke`],ai=[`fill`],oi=[`xmlns`,`stroke`],si=[`xmlns`,`stroke`],ci=[`fill`],li=[`xmlns`,`stroke`],ui=[`xmlns`,`stroke`],di=[`fill`],fi=[`xmlns`,`stroke`],pi=[`xmlns`,`stroke`],mi=[`fill`],hi=[`xmlns`,`stroke`],W=[`xmlns`,`stroke`],gi=[`fill`],_i=[`xmlns`,`stroke`],vi=[`xmlns`],yi=[`points`,`fill`,`stroke`,`stroke-width`],bi=[`xmlns`],xi={key:0},Si=[`stroke`,`stroke-width`],Ci=[`y`,`width`,`fill`,`rx`],G=/*#__PURE__*/ s({__name:`vue-ui-skeleton`,props:{config:{type:Object,default(){return{}}}},setup(e){let{vue_ui_skeleton:s}=re(),b=e,G=_(`vue-ui-skeleton-${i()}`),K=l(()=>ee({userConfig:b.config,defaultConfig:s})),q=l(()=>K.value.style);te({config:()=>K.value,dataset:()=>[],component:`VueUiSkeleton`,rules:[ne.noHint]});let wi=l(()=>K.value.style.animated),J=l(()=>K.value.type),Ti=_([60,50,55,36,40,25,26,12]),Ei=l(()=>r({plot:{x:50,y:50},radius:40,sides:6}).path),Di=l(()=>r({plot:{x:50,y:50},radius:30,sides:6}).path),Oi=l(()=>r({plot:{x:50,y:50},radius:20,sides:6}).path),ki=l(()=>r({plot:{x:50,y:50},radius:10,sides:6}).path),Y=_([{root:{x:70,y:77,r:44,opacity:100},bars:[{x:200,y:37,opacity:100,width:240},{x:200,y:118,opacity:100,width:180},{x:200,y:253,opacity:100,width:80}]},{root:{x:70,y:177,r:32,opacity:70},bars:[{x:200,y:145,opacity:70,width:160},{x:200,y:172,opacity:70,width:140},{x:200,y:199,opacity:70,width:120}]},{root:{x:70,y:257,r:24,opacity:40},bars:[{x:200,y:64,opacity:40,width:220},{x:200,y:91,opacity:40,width:200},{x:200,y:226,opacity:40,width:100}]}]),X=_([{y:200,height:100,bar:50},{y:180,height:100,bar:40},{y:150,height:100,bar:30},{y:120,height:80,bar:50},{y:110,height:60,bar:30},{y:80,height:80,bar:10},{y:50,height:80,bar:40},{y:24,height:40,bar:24},{y:44,height:20,bar:13},{y:32,height:45,bar:19}]),Z=_([[3,2.5],[4,3.1],[8,6],[9.5,6.5],[12,11],[16,15],[18,18.2],[25,24],[24,26],[32,32],[33,32],[32,31],[38,37],[37,38],[42,41],[40,41],[44,45],[38,35],[31,32]]),Q=_([{x:40,y:30},{x:45,y:28},{x:50,y:25},{x:55,y:20},{x:60,y:27},{x:65,y:14},{x:70,y:23},{x:75,y:16},{x:80,y:25},{x:85,y:10},{x:90,y:18},{x:95,y:7},{x:100,y:12},{x:105,y:10},{x:110,y:20},{x:115,y:7},{x:120,y:14},{x:125,y:10},{x:130,y:19},{x:135,y:3},{x:140,y:10},{x:145,y:2},{x:150,y:1}]);function $(e,t=1){let n=29.85;return{x:200+160*Math.cos(n+e*Math.PI/180)*t,y:200+160*Math.sin(n+e*Math.PI/180)*t}}let Ai=l(()=>{let e=[];for(let t=0;t<100;t+=1)e.push({x1:$(360/100*t).x,y1:$(360/100*t).y,x2:$(360/100*t,.9).x,y2:$(360/100*t,.9).y,color:K.value.style.wheel.color});return e}),ji=_([`M1.74 203.99A204 204 0 01-131.29-156.13l15.44 18.36A180 180 0 001.53 179.99Z`,`M-123.33-162.5A204 204 0 01-10.2-203.75L-9-179.78a180 180 0 00-99.82 36.4Z`,`M0-180A180 180 0 01175.19 41.33l23.36 5.51A204 204 0 000-204Z`,`M172.91 50.03A180 180 0 0110.53 179.69l1.4 23.96A204 204 0 00195.96 56.7Z`,`M-166.87-67.49a180 180 0 0151.02-70.28Q0 0 119.83-134.32a180 180 0 0152.13 81.13Q0 0-166.87-67.49Z`,`M-29.99-177.48a180 180 0 0110.73-1.49Q0 0 112.89 140.2A180 180 0 0153.63 171.83Q0 0-29.99-177.48Z`,`M179.71 10.29a180 180 0 01-4.52 31.04Q0 0-40.87-175.3a180 180 0 0110.88-2.18Q0 0 179.71 10.29Z`,`M-19.26-178.97Q0 0-166.87-67.49a180 180 0 00-12.14 86.36Q0 0-9-179.78a180 180 0 00-10.26.81Z`,`M-108.82-143.38Q0 0-40.87-175.3a180 180 0 00-67.95 31.92Q0 0-40.87-175.3a180 180 0 00-67.95 31.92Z`,`M0-180a180 180 0 01119.83 45.68Q0 0 0-180a180 180 0 01119.83 45.68Q0 0 0-180Z`,`M-148.85 101.22Q0 0-179.01 18.87a180 180 0 0030.16 82.35Q0 0-179.01 18.87a180 180 0 0030.16 82.35Z`,`M1.53 179.99Q0 0 31.73 177.18a180 180 0 0021.9-5.35Q0 0-148.85 101.22A180 180 0 001.53 179.99Z`,`M31.73 177.18a180 180 0 01-21.2 2.51Q0 0 171.96-53.19a180 180 0 017.75 63.48Q0 0 31.73 177.18Z`,`M172.91 50.03Q0 0 112.89 140.2a180 180 0 0060.02-90.17Q0 0 112.89 140.2a180 180 0 0060.02-90.17Z`]);return(e,r)=>(g(),d(`div`,{id:G.value,class:ae({"vue-data-ui-component":!0,"vue-ui-skeleton":!0,"vue-ui-skeleton-animated":wi.value}),style:h(`background:${q.value.backgroundColor};color:${q.value.color};display:flex;align-items:center;justify-content:center;`)},[J.value===`chord`?(g(),d(`svg`,{key:0,xmlns:y(a),width:`100%`,viewBox:`0 0 600 600`,style:h({background:q.value.backgroundColor})},[m(o),f(`g`,ce,[(g(!0),d(c,null,v(ji.value,(e,t)=>(g(),d(`path`,{key:e,d:e,fill:q.value.chord.color,stroke:q.value.backgroundColor,"stroke-width":`2`,style:h({opacity:t>3?.6:1})},null,12,le))),128))])],12,se)):u(``,!0),J.value===`ridgeline`?(g(),d(`svg`,{key:1,xmlns:y(a),width:`100%`,viewBox:`20 0 512 200`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`defs`,null,[m(ie,{t:`linear`,id:`ridgeline-gradient-${G.value}`,x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,stops:[[`0%`,q.value.ridgeline.color,1],[`30%`,q.value.ridgeline.color,.7],[`70%`,q.value.ridgeline.color,.3],[`100%`,q.value.ridgeline.color,.1]]},null,8,[`id`,`stops`])]),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 60c6.18-.6 12.36-1.11 18.55-1.79 6.18-.68 12.37-2.38 18.55-2.4 6.19-.01 12.37 0 18.56-.01 6.18-.02 12.37-5.3 18.55-5.3 6.19 0 12.37 4.95 18.56 4.95 6.18 0 12.37-2.78 18.55-2.78 6.19 0 12.37 1.02 18.56 1.92 6.18.9 12.37 4.58 18.55 4.58s12.37-6.71 18.55-6.71c6.19 0 12.37.89 18.56.89 6.18 0 12.37-4.48 18.55-4.48 6.19 0 12.37 4.79 18.56 4.79 6.18 0 12.37-26.07 18.55-26.07 6.19 0 12.37 9.31 18.56 13.85 6.18 4.54 12.37 13.39 18.55 13.39 6.19 0 12.37-36.14 18.56-36.14 6.18 0 12.36 38.45 18.55 38.45 6.18 0 12.37-11.46 18.55-16.94 6.19-5.48 12.37-15.97 18.56-15.97 6.18 0 12.37 16.4 18.55 16.4 6.19 0 12.37-.12 18.56-.35 6.18-.22 12.37-38.08 18.55-38.08 6.19 0 12.37 24.07 18.56 36.1V60`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,x),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 90c6.18-.22 12.36-.35 18.55-.67 6.18-.32 12.37-1.65 18.55-1.65 6.19 0 12.37 1.66 18.56 1.66 6.18 0 12.37-8.76 18.55-8.76 6.19 0 12.37 4.15 18.56 4.15 6.18 0 12.37-8.44 18.55-8.44 6.19 0 12.37 10.87 18.56 10.87 6.18 0 12.37-9.21 18.55-12.16 6.18-2.96 12.37-6.97 18.55-6.97 6.19 0 12.37 9.59 18.56 12.77 6.18 3.18 12.37 7.6 18.55 7.6 6.19 0 12.37-24.44 18.56-24.44 6.18 0 12.37 16.97 18.55 16.97 6.19 0 12.37-20.62 18.56-20.62 6.18 0 12.37 20.37 18.55 20.37 6.19 0 12.37-13.13 18.56-13.13 6.18 0 12.36 13.51 18.55 13.51 6.18 0 12.37-26.41 18.55-26.41 6.19 0 12.37.49 18.56 1.26 6.18.78 12.37 13.82 18.55 13.82 6.19 0 12.37-5.3 18.56-8.3 6.18-3 12.37-9.81 18.55-9.81 6.19 0 12.37 19.82 18.56 29.72V90`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,S),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 120c6.18-.34 12.36-.55 18.55-1.01 6.18-.46 12.37-1.17 18.55-2.15 6.19-.99 12.37-3.7 18.56-4.69 6.18-.98 12.37-2.15 18.55-2.15 6.19 0 12.37.52 18.56 1.2 6.18.68 12.37 6.67 18.55 6.67 6.19 0 12.37-12.15 18.56-12.15 6.18 0 12.37 4.6 18.55 4.6S227.5 99.7 233.68 98.99c6.19-.71 12.37-1.18 18.56-1.18 6.18 0 12.37 17.75 18.55 18.22 6.19.48 12.37.74 18.56.74 6.18 0 12.37-17.09 18.55-17.09 6.19 0 12.37 12.68 18.56 12.68 6.18 0 12.37-.33 18.55-.67 6.19-.34 12.37-.79 18.56-2.06 6.18-1.26 12.36-25.45 18.55-25.45 6.18 0 12.37 10.35 18.55 10.35 6.19 0 12.37-21.07 18.56-21.07 6.18 0 12.37 33.27 18.55 33.27 6.19 0 12.37-26.97 18.56-26.97 6.18 0 12.37 26.97 18.55 27.36 6.19.4 12.37.41 18.56.61V120`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,C),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 150c6.18-.52 12.36-1.57 18.55-1.57 6.18 0 12.37 1.36 18.55 1.36 6.19 0 12.37-1.75 18.56-3.18 6.18-1.43 12.37-6.62 18.55-6.62 6.19 0 12.37 9.98 18.56 9.98 6.18 0 12.37-4.94 18.55-5.64 6.19-.71 12.37-.52 18.56-1.31 6.18-.78 12.37-12.43 18.55-12.43s12.37 18.52 18.55 18.52c6.19 0 12.37-2.49 18.56-2.49 6.18 0 12.37 3.02 18.55 3.02 6.19 0 12.37-29.39 18.56-29.39 6.18 0 12.37 5.56 18.55 8.36 6.19 2.81 12.37 5.14 18.56 8.47 6.18 3.34 12.37 12.25 18.55 12.25 6.19 0 12.37-4.3 18.56-8.78 6.18-4.48 12.36-28.77 18.55-28.77 6.18 0 12.37 1.29 18.55 3.02 6.19 1.72 12.37 18.36 18.56 18.36 6.18 0 12.37-7.68 18.55-12.92 6.19-5.24 12.37-18.51 18.56-20.1 6.18-1.58 12.37-2.7 18.55-2.7 6.19 0 12.37 34.69 18.56 52.04V150`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,w),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 180c6.18-.6 12.36-1.07 18.55-1.81 6.18-.74 12.37-2.86 18.55-2.86 6.19 0 12.37 2.14 18.56 2.14 6.18 0 12.37-7.08 18.55-7.08 6.19 0 12.37 1.08 18.56 2.03 6.18.95 12.37 4.75 18.55 4.75 6.19 0 12.37-2.45 18.56-4.62 6.18-2.17 12.37-10.99 18.55-10.99s12.37 9.58 18.55 9.58c6.19 0 12.37-.25 18.56-.69 6.18-.43 12.37-13.6 18.55-13.6 6.19 0 12.37 17.23 18.56 17.23 6.18 0 12.37-2.5 18.55-5.19 6.19-2.68 12.37-15.45 18.56-18 6.18-2.55 12.37-4.86 18.55-4.86 6.19 0 12.37 18.61 18.56 18.61 6.18 0 12.36-24.22 18.55-26.66 6.18-2.45 12.37-4.25 18.55-4.25 6.19 0 12.37 7.92 18.56 7.92 6.18 0 12.37-1.95 18.55-1.95 6.19 0 12.37 29.69 18.56 29.69 6.18 0 12.37-2.55 18.55-6.14 6.19-3.58 12.37-28.83 18.56-43.25v60`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,T)],12,ue)):u(``,!0),J.value===`historyPlot`?(g(),d(`svg`,{key:2,xmlns:y(a),width:`100%`,viewBox:`0 0 612 512`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`line`,{x1:`12`,x2:`12`,y1:`12`,y2:`500`,stroke:q.value.historyPlot.color,"stroke-width":`3`,"stroke-linecap":`round`},null,8,D),f(`line`,{x1:`12`,x2:`600`,y1:`500`,y2:`500`,stroke:q.value.historyPlot.color,"stroke-width":`3`,"stroke-linecap":`round`},null,8,O),f(`path`,{d:`M 80,100 300,200 400,150 560,230 360,420 230,320`,fill:`none`,stroke:q.value.historyPlot.color,"stroke-width":`3`},null,8,k),f(`circle`,{cx:`80`,cy:`100`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,A),f(`text`,{x:`80`,y:`108`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 1 `,8,j),f(`circle`,{cx:`300`,cy:`200`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,M),f(`text`,{x:`300`,y:`208`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 2 `,8,N),f(`circle`,{cx:`400`,cy:`150`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,P),f(`text`,{x:`400`,y:`158`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 3 `,8,F),f(`circle`,{cx:`560`,cy:`230`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,I),f(`text`,{x:`560`,y:`238`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 4 `,8,L),f(`circle`,{cx:`360`,cy:`420`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,R),f(`text`,{x:`360`,y:`428`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 5 `,8,z),f(`circle`,{cx:`230`,cy:`320`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,B),f(`text`,{x:`230`,y:`328`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 6 `,8,V)],12,E)):u(``,!0),J.value===`circlePack`?(g(),d(`svg`,{key:3,xmlns:y(a),width:`100%`,viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[f(`circle`,{cx:50,cy:50,r:20,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,U),f(`circle`,{cx:80,cy:50,r:10,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,de),f(`circle`,{cx:28,cy:30,r:10,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,fe),f(`circle`,{cx:25,cy:76,r:16,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,pe),f(`circle`,{cx:60,cy:78.5,r:10,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,me),f(`circle`,{cx:64,cy:20,r:13,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,he),f(`circle`,{cx:72,cy:37,r:5,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,ge),f(`circle`,{cx:25,cy:45,r:5,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,_e),f(`circle`,{cx:70,cy:66,r:5,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,ve)],12,H)):u(``,!0),J.value===`flow`?(g(),d(`svg`,{key:4,xmlns:y(a),width:`100%`,viewBox:`0 0 80 60`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:`M5 5V55M75 5V55M28 5V55M52 5V55M5 8l23 4L52 9 75 8v4H52L28 21 5 29ZM5 34l23 1L52 24l23-3v6L52 30 28 44l24-5 23 2v6L52 45 28 52H5Z`,stroke:q.value.flow.color,"stroke-width":.8,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:q.value.flow.color},null,8,be)],12,ye)):u(``,!0),J.value===`parallelCoordinatePlot`?(g(),d(`svg`,{key:5,xmlns:y(a),width:`100%`,viewBox:`0 0 80 60`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:`M5 5V55M75 5V55M28 5V55M52 5V55M5 10a1 1 0 000 2 1 1 0 000-2m23 5a1 1 0 000 2 1 1 0 000-2M52 8a1 1 0 000 2 1 1 0 000-2m23 3a1 1 0 000 2 1 1 0 000-2M6 11l21 5m2 0L51 9m2 0 21 3M5 50a1 1 0 000-2 1 1 0 000 2M28 39a1 1 0 000 2 1 1 0 000-2m24 6a1 1 0 000 2 1 1 0 000-2m23 0a1 1 0 000 2 1 1 0 000-2M6 49l21-9m2 0 22 6m2 0H74M5 25a1 1 0 000 2 1 1 0 000-2m23 6a1 1 0 000 2 1 1 0 000-2m24-8a1 1 0 000 2 1 1 0 000-2m23-2a1 1 0 000 2 1 1 0 000-2M6 26l21 6m2 0 22-8m2 0 21-2`,stroke:q.value.parallelCoordinatePlot.color,"stroke-width":.8,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:q.value.parallelCoordinatePlot.color},null,8,Se)],12,xe)):u(``,!0),J.value===`bullet`?(g(),d(`svg`,{key:6,xmlns:y(a),width:`100%`,viewBox:`0 0 600 96`,style:h(`background:${q.value.backgroundColor}`)},[f(`rect`,{fill:q.value.bullet.color,x:24,y:12,width:300,height:72,style:{opacity:`0.8`}},null,8,we),f(`rect`,{fill:q.value.bullet.color,x:324,y:12,width:150,height:72,style:{opacity:`0.6`}},null,8,Te),f(`rect`,{fill:q.value.bullet.color,x:474,y:12,width:102,height:72,style:{opacity:`0.3`}},null,8,Ee),f(`rect`,{fill:q.value.bullet.color,x:24,y:36,width:490,height:24,style:{opacity:`1`}},null,8,De)],12,Ce)):u(``,!0),J.value===`dumbbell`?(g(),d(`svg`,{key:7,xmlns:y(a),width:`100%`,viewBox:`0 0 100 55`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`line`,{x1:`3`,x2:`3`,y1:`3`,y2:`67`,stroke:q.value.dumbbell.color,"stroke-width":.5,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,ke),f(`path`,{d:`
|
|
2
2
|
M 30,11
|
|
3
3
|
C 39,10 39,10
|
|
4
4
|
45,11
|
|
@@ -38,4 +38,4 @@ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{B as t,Jt as n,M as r,
|
|
|
38
38
|
C${t.x-20},${t.y+i}
|
|
39
39
|
${t.x-80},${t.y+i}
|
|
40
40
|
${e.root.x+e.root.r/2}, ${e.root.y}
|
|
41
|
-
`,stroke:y(n)(q.value.chestnut.color,t.opacity*.2),fill:`none`,"stroke-width":`2`,"shape-rendering":`cirspEdges`},null,8,Bn)),64))]))),256))]))),256)),(g(!0),d(c,null,v(Y.value,e=>(g(),d(`circle`,{cx:e.root.x,cy:e.root.y,r:e.root.r,fill:`${q.value.backgroundColor}`,stroke:K.value.backgroundColor,"stroke-width":3},null,8,Vn))),256)),(g(!0),d(c,null,v(Y.value,e=>(g(),d(`circle`,{cx:e.root.x,cy:e.root.y,r:e.root.r,fill:y(n)(q.value.chestnut.color,e.root.opacity),stroke:q.value.backgroundColor,"stroke-width":3},null,8,Hn))),256)),(g(!0),d(c,null,v(Y.value,e=>(g(),d(`g`,null,[(g(!0),d(c,null,v(e.bars,e=>(g(),d(`rect`,{rx:`2`,x:e.x,y:e.y,width:e.width,height:22,fill:y(n)(q.value.chestnut.color,e.opacity)},null,8,Un))),256)),(g(!0),d(c,null,v(e.bars,e=>(g(),d(`circle`,{cx:e.x+e.width+32,cy:e.y+11,r:11,fill:y(n)(q.value.chestnut.color,e.opacity)},null,8,Wn))),256)),(g(!0),d(c,null,v(e.bars,e=>(g(),d(`circle`,{cx:e.x+e.width+32,cy:e.y+11,r:5,fill:q.value.backgroundColor},null,8,Gn))),256))]))),256)),f(`line`,{x1:200,x2:200,y1:10,y2:300,stroke:q.value.backgroundColor,"stroke-width":3},null,8,Kn)],12,zn)):u(``,!0),J.value===`donutEvolution`?(g(),d(`svg`,{key:26,xmlns:y(a),width:`100%`,viewBox:`0 0 108 70`,style:h(`background:${q.value.backgroundColor}`)},[m(o),q.value.line.axis.show?(g(),d(`path`,{key:0,d:`M3 3 3 67 105 67`,stroke:q.value.donutEvolution.axis.color,"stroke-width":q.value.donutEvolution.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},null,8,Jn)):u(``,!0),f(`path`,{fill:`none`,d:`M10 55a1 1 0 0010 0A1 1 0 0010 55m2 0a1 1 0 006 0 1 1 0 00-6 0m-2 0h2m3-3V50m12-5a1 1 0 0010 0A1 1 0 0027 45m2 0a1 1 0 006 0 1 1 0 00-6 0m3 3v2m3-5h2m7 5a1 1 0 0010 0A1 1 0 0044 50m2 0a1 1 0 006 0 1 1 0 00-6 0m3-5v2m0 6v2M61 35a1 1 0 0010 0A1 1 0 0061 35m2 0a1 1 0 006 0 1 1 0 00-6 0m3-5v2m-5 3h2m15 6a1 1 0 0010 0A1 1 0 0078 41m2 0a1 1 0 006 0 1 1 0 00-6 0m-2 0h2m6 0h2m7-27a1 1 0 0010 0A1 1 0 0095 14m2 0a1 1 0 006 0 1 1 0 00-6 0m-2 0h2m3 3v2`,stroke:q.value.donutEvolution.donuts.color,"stroke-width":q.value.donutEvolution.donuts.strokeWidth},null,8,Yn),f(`path`,{fill:`none`,d:`M19 52l8-7m10 0 7 4m8-3 10-8m9-2 7 4m8-3L97 18`,stroke:q.value.donutEvolution.axis.color,"stroke-width":q.value.donutEvolution.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Xn),f(`path`,{d:`M10 55h2c0-2 2-3 3-3V50c-2 0-5 2-5 5`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,Zn),f(`path`,{d:`M32 48v2c3 0 5-3 5-5H35c0 2-2 3-3 3`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,Qn),f(`path`,{d:`M49 53v2a1 1 0 000-10v2c4 0 4 6 0 6`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,$n),f(`path`,{d:`M63 35c0-2 2-3 3-3V30c-3 0-5 3-5 5h2`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,er),f(`path`,{d:`M78 41h2c0 4 6 4 6 0h2A1 1 0 0178 41`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,tr),f(`path`,{d:`M95 14h2c0 2 2 3 3 3v2c-2 0-5-2-5-5`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,nr)],12,qn)):u(``,!0),J.value===`line`?(g(),d(`svg`,{key:27,xmlns:y(a),width:`100%`,viewBox:`0 0 100 70`,style:h(`background:${q.value.backgroundColor}`)},[m(o),q.value.line.axis.show?(g(),d(`g`,ir,[f(`line`,{x1:`3`,x2:`3`,y1:`3`,y2:`67`,stroke:q.value.line.axis.color,"stroke-width":q.value.line.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,ar),f(`line`,{x1:`3`,x2:`97`,y1:`67`,y2:`67`,stroke:q.value.line.axis.color,"stroke-width":q.value.line.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,or)])):u(``,!0),f(`path`,{d:`M 9,60 22,50 35,55 48,36 61,40 74,25 87,26 90,12`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,stroke:q.value.line.path.color,"stroke-width":q.value.line.path.strokeWidth},null,8,sr),q.value.line.path.showPlots?(g(),d(`g`,cr,[f(`circle`,{cx:`9`,cy:`60`,r:q.value.line.path.strokeWidth,fill:q.value.line.path.color},null,8,lr),f(`circle`,{cx:`90`,cy:`12`,r:q.value.line.path.strokeWidth,fill:q.value.line.path.color},null,8,ur)])):u(``,!0)],12,rr)):u(``,!0),J.value===`bar`?(g(),d(`svg`,{key:28,xmlns:y(a),width:`100%`,viewBox:`0 0 100 70`,style:h(`background:${q.value.backgroundColor}`)},[m(o),q.value.bar.axis.show?(g(),d(`g`,fr,[f(`line`,{x1:`3`,x2:`3`,y1:`3`,y2:`67`,stroke:q.value.bar.axis.color,"stroke-width":q.value.bar.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,pr),f(`line`,{x1:`3`,x2:`97`,y1:`67`,y2:`67`,stroke:q.value.bar.axis.color,"stroke-width":q.value.bar.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,mr)])):u(``,!0),(g(!0),d(c,null,v(Ti.value,(e,t)=>(g(),d(`rect`,{fill:q.value.bar.color,rx:q.value.bar.borderRadius,x:6+11.2*t,y:e,width:q.value.bar.barWidth,height:67-e},null,8,hr))),256))],12,dr)):u(``,!0),J.value===`donut`?(g(),d(`svg`,{key:29,xmlns:y(a),width:`100%`,viewBox:`0 0 400 400`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:` M 300 200 A 100 100 0 0 1 113 250`,fill:`none`,"stroke-width":q.value.donut.strokeWidth,stroke:q.value.donut.color},null,8,_r),f(`path`,{d:` M 113 250 A 100 100 0 0 1 250 113`,fill:`none`,"stroke-width":q.value.donut.strokeWidth,stroke:y(n)(q.value.donut.color,60)},null,8,vr),f(`path`,{d:` M 250 113 A 100 100 0 0 1 300 200`,fill:`none`,"stroke-width":q.value.donut.strokeWidth,stroke:y(n)(q.value.donut.color,30)},null,8,yr)],12,gr)):u(``,!0),J.value===`onion`?(g(),d(`svg`,{key:30,xmlns:y(a),width:`100%`,viewBox:`0 0 400 400`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:` M 200 60 A 140 140 0 1 1 60 200`,stroke:q.value.onion.color,"stroke-linecap":`round`,"stroke-width":`20`,fill:`none`},null,8,xr),f(`path`,{d:` M 200 100 A 100 100 0 1 1 100 200`,stroke:y(n)(q.value.onion.color,60),"stroke-linecap":`round`,"stroke-width":`20`,fill:`none`},null,8,Sr),f(`path`,{d:` M 200 140 A 60 60 0 1 1 140 200`,fill:`none`,stroke:y(n)(q.value.onion.color,40),"stroke-linecap":`round`,"stroke-width":`20`},null,8,Cr)],12,br)):u(``,!0),J.value===`gauge`?(g(),d(`svg`,{key:31,width:`100%`,viewBox:`0 0 400 400`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:` M 82 255 A 120 120 0 1 1 318 255`,fill:`none`,stroke:q.value.gauge.color,"stroke-linecap":`round`,"stroke-width":`20`},null,8,wr),f(`circle`,{cx:`200`,cy:`256`,r:`12`,fill:q.value.gauge.color},null,8,Tr),f(`line`,{x1:`200`,y1:`256`,x2:`250`,y2:`160`,"stroke-width":`8`,stroke:q.value.gauge.color,"stroke-linecap":`round`},null,8,Er)],4)):u(``,!0),J.value===`quadrant`?(g(),d(`svg`,{key:32,xmlns:y(a),viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`line`,{x1:`50`,x2:`50`,y1:`3`,y2:`97`,stroke:q.value.quadrant.grid.color,"stroke-width":q.value.quadrant.grid.strokeWidth},null,8,Or),f(`line`,{x1:`3`,x2:`97`,y1:`50`,y2:`50`,stroke:q.value.quadrant.grid.color,"stroke-width":q.value.quadrant.grid.strokeWidth},null,8,kr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`20`,cy:`20`},null,8,Ar),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`80`,cy:`60`},null,8,jr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`65`,cy:`55`},null,8,Mr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`36`,cy:`67`},null,8,Nr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`15`,cy:`75`},null,8,Pr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`40`,cy:`55`},null,8,Fr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`76`,cy:`32`},null,8,Ir),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`85`,cy:`26`},null,8,Lr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`55`,cy:`46`},null,8,Rr)],12,Dr)):u(``,!0),J.value===`radar`?(g(),d(`svg`,{key:33,xmlns:y(a),viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:Ei.value,fill:`none`,stroke:q.value.radar.grid.color,"stroke-width":q.value.radar.grid.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Br),f(`path`,{d:Di.value,fill:`none`,stroke:y(n)(q.value.radar.grid.color,70),"stroke-width":q.value.radar.grid.strokeWidth/2,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Vr),f(`path`,{d:Oi.value,fill:`none`,stroke:y(n)(q.value.radar.grid.color,70),"stroke-width":q.value.radar.grid.strokeWidth/2,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Hr),f(`path`,{d:ki.value,fill:`none`,stroke:y(n)(q.value.radar.grid.color,70),"stroke-width":q.value.radar.grid.strokeWidth/2.5,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Ur),f(`path`,{d:`M 9,50 91,50`,stroke:y(n)(q.value.radar.grid.color,50),"stroke-width":q.value.radar.grid.strokeWidth/2},null,8,Wr),f(`path`,{d:`M 29.5,14.5 70.5 85.5`,stroke:y(n)(q.value.radar.grid.color,50),"stroke-width":q.value.radar.grid.strokeWidth/2},null,8,Gr),f(`path`,{d:`M 29.5,85.5 70.5 14.5`,stroke:y(n)(q.value.radar.grid.color,50),"stroke-width":q.value.radar.grid.strokeWidth/2},null,8,Kr),f(`path`,{d:`M 34,23 68.5,18, 70,50 61.5,70 35,75.5 10,50 Z`,stroke:`none`,"stroke-linejoin":`round`,fill:y(n)(q.value.radar.shapes.color,30)},null,8,qr),f(`path`,{d:`M 43.5,40 64.5,25, 84,50 55.5,60 29.5,85.5 25,50 Z`,stroke:`none`,"stroke-linejoin":`round`,fill:y(n)(q.value.radar.shapes.color,50)},null,8,Jr)],12,zr)):u(``,!0),J.value===`waffle`?(g(),d(`svg`,{key:34,xmlns:y(a),viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(o),(g(),d(c,null,v(10,(e,t)=>f(`g`,null,[(g(),d(c,null,v(10,(e,r)=>f(`g`,null,[f(`rect`,{x:3+r*9.5,y:3+t*9.5,height:9,width:9,fill:y(n)(q.value.waffle.color,20),rx:`1`},null,8,Xr)])),64))])),64)),(g(),d(c,null,v(10,(e,t)=>f(`g`,null,[(g(),d(c,null,v(10,(e,r)=>f(`g`,null,[t>2?(g(),d(`rect`,{key:0,x:3+r*9.5,y:3+t*9.5,height:9,width:9,fill:y(n)(q.value.waffle.color,30),rx:`1`},null,8,Zr)):u(``,!0)])),64))])),64)),(g(),d(c,null,v(10,(e,t)=>f(`g`,null,[(g(),d(c,null,v(10,(e,r)=>f(`g`,null,[t>6?(g(),d(`rect`,{key:0,x:3+r*9.5,y:3+t*9.5,height:9,width:9,fill:y(n)(q.value.waffle.color,50),rx:`1`},null,8,Qr)):u(``,!0)])),64))])),64))],12,Yr)):u(``,!0),J.value===`table`?(g(),d(`svg`,{key:35,xmlns:y(a),width:`100%`,viewBox:`0 0 100 70`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`rect`,{fill:y(n)(q.value.table.th.color,50),x:3.5,y:5,height:`10`,width:`93`},null,8,ei),f(`rect`,{fill:y(n)(q.value.table.th.color,50),x:3.5,y:15,height:`50`,width:`23.25`},null,8,ti),(g(),d(c,null,v(7,(e,t)=>f(`line`,{x1:`3.7`,x2:`96.3`,y1:5+t*10,y2:5+t*10,stroke:q.value.table.td.color,"stroke-width":q.value.table.td.strokeWidth,"stroke-linecap":`round`},null,8,ni)),64)),(g(),d(c,null,v(5,(e,t)=>f(`line`,{x1:3.5+t*23.25,x2:3.5+t*23.25,y1:`5`,y2:`65`,stroke:q.value.table.td.color,"stroke-width":q.value.table.td.strokeWidth,"stroke-linecap":`round`},null,8,ri)),64))],12,$r)):u(``,!0),J.value===`rating`?(g(),d(c,{key:36},[q.value.rating.useSmiley?(g(),d(`div`,{key:0,style:h(`display:flex;flex-direction:row;align-items:center;justify-content:center;width:${q.value.rating.maxWidth}px`)},[q.value.rating.filled?(g(),d(`svg`,{key:0,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[m(o),r[0]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-5 9.86a4.5 4.5 0 00-3.214 1.35 1 1 0 101.428 1.4 2.5 2.5 0 013.572 0 1 1 0 001.428-1.4A4.5 4.5 0 0012 13.2zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,ai)],12,ii)):(g(),d(`svg`,{key:1,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...r[1]||=[p(`<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-58349b71></path><path d="M3 12a9 9 0 1018 0A9 9 0 103 12" data-v-58349b71></path><path d="M9 10l.01 0" data-v-58349b71></path><path d="M15 10l.01 0" data-v-58349b71></path><path d="M9.5 15.25a3.5 3.5 0 015 0" data-v-58349b71></path>`,5)]],12,oi)),q.value.rating.filled?(g(),d(`svg`,{key:2,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[r[2]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 14H9l-.117.007a1 1 0 000 1.986L9 16h6l.117-.007a1 1 0 000-1.986L15 14zm-5.99-5-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,ci)],12,si)):(g(),d(`svg`,{key:3,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...r[3]||=[p(`<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-58349b71></path><path d="M3 12a9 9 0 1018 0A9 9 0 103 12" data-v-58349b71></path><path d="M9 10l.01 0" data-v-58349b71></path><path d="M15 10l.01 0" data-v-58349b71></path><path d="M9 15l6 0" data-v-58349b71></path>`,5)]],12,li)),q.value.rating.filled?(g(),d(`svg`,{key:4,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[r[4]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,di)],12,ui)):(g(),d(`svg`,{key:5,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...r[5]||=[f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M3 12a9 9 0 1018 0A9 9 0 103 12`},null,-1),f(`path`,{d:`M9 10l.01 0`},null,-1),f(`path`,{d:`M15 10l.01 0`},null,-1)]],12,fi)),q.value.rating.filled?(g(),d(`svg`,{key:6,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[r[6]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-1.8 10.946a1 1 0 00-1.414.014 2.5 2.5 0 01-3.572 0 1 1 0 00-1.428 1.4 4.5 4.5 0 006.428 0 1 1 0 00-.014-1.414zM9.01 9l-.127.007A1 1 0 009 11l.127-.007A1 1 0 009.01 9zm6 0-.127.007A1 1 0 0015 11l.127-.007A1 1 0 0015.01 9z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,mi)],12,pi)):(g(),d(`svg`,{key:7,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...r[7]||=[p(`<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-58349b71></path><path d="M3 12a9 9 0 1018 0A9 9 0 103 12" data-v-58349b71></path><path d="M9 10l.01 0" data-v-58349b71></path><path d="M15 10l.01 0" data-v-58349b71></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-58349b71></path>`,5)]],12,hi)),q.value.rating.filled?(g(),d(`svg`,{key:8,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[r[8]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 13H9a1 1 0 00-1 1v.05a3.975 3.975 0 003.777 3.97l.227.005a4.026 4.026 0 003.99-3.79l.006-.206A1 1 0 0015 13zm-5.99-5-.127.007A1 1 0 009 10l.127-.007A1 1 0 009.01 8zm6 0-.127.007A1 1 0 0015 10l.127-.007A1 1 0 0015.01 8z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,gi)],12,W)):(g(),d(`svg`,{key:9,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...r[9]||=[p(`<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-58349b71></path><path d="M3 12a9 9 0 1018 0A9 9 0 103 12" data-v-58349b71></path><path d="M9 9l.01 0" data-v-58349b71></path><path d="M15 9l.01 0" data-v-58349b71></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-58349b71></path>`,5)]],12,_i))],4)):(g(),d(`svg`,{key:1,xmlns:y(a),width:`100%`,viewBox:`0 0 100 30`,style:h(`background:${q.value.backgroundColor};max-width:${q.value.rating.maxWidth}px`)},[m(o),(g(),d(c,null,v(5,(e,n)=>f(`polygon`,{points:y(t)({plot:{x:10+n*20,y:15},radius:6}),fill:q.value.rating.filled?q.value.rating.color:`none`,stroke:q.value.rating.color,"stroke-width":q.value.rating.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,yi)),64))],12,vi))],64)):u(``,!0),J.value===`verticalBar`?(g(),d(`svg`,{key:37,xmlns:y(a),width:`100%`,viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(o),q.value.verticalBar.axis.show?(g(),d(`g`,xi,[f(`line`,{x1:3,x2:3,y1:3,y2:97,stroke:q.value.verticalBar.axis.color,"stroke-width":q.value.verticalBar.axis.strokeWidth},null,8,Si)])):u(``,!0),(g(),d(c,null,v(6,(e,t)=>f(`rect`,{x:3,y:5+t*15.6,height:`12`,width:94-94*t/6,fill:q.value.verticalBar.color,rx:q.value.verticalBar.borderRadius},null,8,Ci)),64))],12,bi)):u(``,!0)],14,oe))}},[[`__scopeId`,`data-v-58349b71`]]);export{b as n,G as t};
|
|
41
|
+
`,stroke:y(n)(q.value.chestnut.color,t.opacity*.2),fill:`none`,"stroke-width":`2`,"shape-rendering":`cirspEdges`},null,8,Bn)),64))]))),256))]))),256)),(g(!0),d(c,null,v(Y.value,e=>(g(),d(`circle`,{cx:e.root.x,cy:e.root.y,r:e.root.r,fill:`${q.value.backgroundColor}`,stroke:K.value.style.backgroundColor,"stroke-width":3},null,8,Vn))),256)),(g(!0),d(c,null,v(Y.value,e=>(g(),d(`circle`,{cx:e.root.x,cy:e.root.y,r:e.root.r,fill:y(n)(q.value.chestnut.color,e.root.opacity),stroke:q.value.backgroundColor,"stroke-width":3},null,8,Hn))),256)),(g(!0),d(c,null,v(Y.value,e=>(g(),d(`g`,null,[(g(!0),d(c,null,v(e.bars,e=>(g(),d(`rect`,{rx:`2`,x:e.x,y:e.y,width:e.width,height:22,fill:y(n)(q.value.chestnut.color,e.opacity)},null,8,Un))),256)),(g(!0),d(c,null,v(e.bars,e=>(g(),d(`circle`,{cx:e.x+e.width+32,cy:e.y+11,r:11,fill:y(n)(q.value.chestnut.color,e.opacity)},null,8,Wn))),256)),(g(!0),d(c,null,v(e.bars,e=>(g(),d(`circle`,{cx:e.x+e.width+32,cy:e.y+11,r:5,fill:q.value.backgroundColor},null,8,Gn))),256))]))),256)),f(`line`,{x1:200,x2:200,y1:10,y2:300,stroke:q.value.backgroundColor,"stroke-width":3},null,8,Kn)],12,zn)):u(``,!0),J.value===`donutEvolution`?(g(),d(`svg`,{key:26,xmlns:y(a),width:`100%`,viewBox:`0 0 108 70`,style:h(`background:${q.value.backgroundColor}`)},[m(o),q.value.line.axis.show?(g(),d(`path`,{key:0,d:`M3 3 3 67 105 67`,stroke:q.value.donutEvolution.axis.color,"stroke-width":q.value.donutEvolution.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},null,8,Jn)):u(``,!0),f(`path`,{fill:`none`,d:`M10 55a1 1 0 0010 0A1 1 0 0010 55m2 0a1 1 0 006 0 1 1 0 00-6 0m-2 0h2m3-3V50m12-5a1 1 0 0010 0A1 1 0 0027 45m2 0a1 1 0 006 0 1 1 0 00-6 0m3 3v2m3-5h2m7 5a1 1 0 0010 0A1 1 0 0044 50m2 0a1 1 0 006 0 1 1 0 00-6 0m3-5v2m0 6v2M61 35a1 1 0 0010 0A1 1 0 0061 35m2 0a1 1 0 006 0 1 1 0 00-6 0m3-5v2m-5 3h2m15 6a1 1 0 0010 0A1 1 0 0078 41m2 0a1 1 0 006 0 1 1 0 00-6 0m-2 0h2m6 0h2m7-27a1 1 0 0010 0A1 1 0 0095 14m2 0a1 1 0 006 0 1 1 0 00-6 0m-2 0h2m3 3v2`,stroke:q.value.donutEvolution.donuts.color,"stroke-width":q.value.donutEvolution.donuts.strokeWidth},null,8,Yn),f(`path`,{fill:`none`,d:`M19 52l8-7m10 0 7 4m8-3 10-8m9-2 7 4m8-3L97 18`,stroke:q.value.donutEvolution.axis.color,"stroke-width":q.value.donutEvolution.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Xn),f(`path`,{d:`M10 55h2c0-2 2-3 3-3V50c-2 0-5 2-5 5`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,Zn),f(`path`,{d:`M32 48v2c3 0 5-3 5-5H35c0 2-2 3-3 3`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,Qn),f(`path`,{d:`M49 53v2a1 1 0 000-10v2c4 0 4 6 0 6`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,$n),f(`path`,{d:`M63 35c0-2 2-3 3-3V30c-3 0-5 3-5 5h2`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,er),f(`path`,{d:`M78 41h2c0 4 6 4 6 0h2A1 1 0 0178 41`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,tr),f(`path`,{d:`M95 14h2c0 2 2 3 3 3v2c-2 0-5-2-5-5`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,nr)],12,qn)):u(``,!0),J.value===`line`?(g(),d(`svg`,{key:27,xmlns:y(a),width:`100%`,viewBox:`0 0 100 70`,style:h(`background:${q.value.backgroundColor}`)},[m(o),q.value.line.axis.show?(g(),d(`g`,ir,[f(`line`,{x1:`3`,x2:`3`,y1:`3`,y2:`67`,stroke:q.value.line.axis.color,"stroke-width":q.value.line.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,ar),f(`line`,{x1:`3`,x2:`97`,y1:`67`,y2:`67`,stroke:q.value.line.axis.color,"stroke-width":q.value.line.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,or)])):u(``,!0),f(`path`,{d:`M 9,60 22,50 35,55 48,36 61,40 74,25 87,26 90,12`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,stroke:q.value.line.path.color,"stroke-width":q.value.line.path.strokeWidth},null,8,sr),q.value.line.path.showPlots?(g(),d(`g`,cr,[f(`circle`,{cx:`9`,cy:`60`,r:q.value.line.path.strokeWidth,fill:q.value.line.path.color},null,8,lr),f(`circle`,{cx:`90`,cy:`12`,r:q.value.line.path.strokeWidth,fill:q.value.line.path.color},null,8,ur)])):u(``,!0)],12,rr)):u(``,!0),J.value===`bar`?(g(),d(`svg`,{key:28,xmlns:y(a),width:`100%`,viewBox:`0 0 100 70`,style:h(`background:${q.value.backgroundColor}`)},[m(o),q.value.bar.axis.show?(g(),d(`g`,fr,[f(`line`,{x1:`3`,x2:`3`,y1:`3`,y2:`67`,stroke:q.value.bar.axis.color,"stroke-width":q.value.bar.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,pr),f(`line`,{x1:`3`,x2:`97`,y1:`67`,y2:`67`,stroke:q.value.bar.axis.color,"stroke-width":q.value.bar.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,mr)])):u(``,!0),(g(!0),d(c,null,v(Ti.value,(e,t)=>(g(),d(`rect`,{fill:q.value.bar.color,rx:q.value.bar.borderRadius,x:6+11.2*t,y:e,width:q.value.bar.barWidth,height:67-e},null,8,hr))),256))],12,dr)):u(``,!0),J.value===`donut`?(g(),d(`svg`,{key:29,xmlns:y(a),width:`100%`,viewBox:`0 0 400 400`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:` M 300 200 A 100 100 0 0 1 113 250`,fill:`none`,"stroke-width":q.value.donut.strokeWidth,stroke:q.value.donut.color},null,8,_r),f(`path`,{d:` M 113 250 A 100 100 0 0 1 250 113`,fill:`none`,"stroke-width":q.value.donut.strokeWidth,stroke:y(n)(q.value.donut.color,60)},null,8,vr),f(`path`,{d:` M 250 113 A 100 100 0 0 1 300 200`,fill:`none`,"stroke-width":q.value.donut.strokeWidth,stroke:y(n)(q.value.donut.color,30)},null,8,yr)],12,gr)):u(``,!0),J.value===`onion`?(g(),d(`svg`,{key:30,xmlns:y(a),width:`100%`,viewBox:`0 0 400 400`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:` M 200 60 A 140 140 0 1 1 60 200`,stroke:q.value.onion.color,"stroke-linecap":`round`,"stroke-width":`20`,fill:`none`},null,8,xr),f(`path`,{d:` M 200 100 A 100 100 0 1 1 100 200`,stroke:y(n)(q.value.onion.color,60),"stroke-linecap":`round`,"stroke-width":`20`,fill:`none`},null,8,Sr),f(`path`,{d:` M 200 140 A 60 60 0 1 1 140 200`,fill:`none`,stroke:y(n)(q.value.onion.color,40),"stroke-linecap":`round`,"stroke-width":`20`},null,8,Cr)],12,br)):u(``,!0),J.value===`gauge`?(g(),d(`svg`,{key:31,width:`100%`,viewBox:`0 0 400 400`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:` M 82 255 A 120 120 0 1 1 318 255`,fill:`none`,stroke:q.value.gauge.color,"stroke-linecap":`round`,"stroke-width":`20`},null,8,wr),f(`circle`,{cx:`200`,cy:`256`,r:`12`,fill:q.value.gauge.color},null,8,Tr),f(`line`,{x1:`200`,y1:`256`,x2:`250`,y2:`160`,"stroke-width":`8`,stroke:q.value.gauge.color,"stroke-linecap":`round`},null,8,Er)],4)):u(``,!0),J.value===`quadrant`?(g(),d(`svg`,{key:32,xmlns:y(a),viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`line`,{x1:`50`,x2:`50`,y1:`3`,y2:`97`,stroke:q.value.quadrant.grid.color,"stroke-width":q.value.quadrant.grid.strokeWidth},null,8,Or),f(`line`,{x1:`3`,x2:`97`,y1:`50`,y2:`50`,stroke:q.value.quadrant.grid.color,"stroke-width":q.value.quadrant.grid.strokeWidth},null,8,kr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`20`,cy:`20`},null,8,Ar),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`80`,cy:`60`},null,8,jr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`65`,cy:`55`},null,8,Mr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`36`,cy:`67`},null,8,Nr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`15`,cy:`75`},null,8,Pr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`40`,cy:`55`},null,8,Fr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`76`,cy:`32`},null,8,Ir),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`85`,cy:`26`},null,8,Lr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`55`,cy:`46`},null,8,Rr)],12,Dr)):u(``,!0),J.value===`radar`?(g(),d(`svg`,{key:33,xmlns:y(a),viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:Ei.value,fill:`none`,stroke:q.value.radar.grid.color,"stroke-width":q.value.radar.grid.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Br),f(`path`,{d:Di.value,fill:`none`,stroke:y(n)(q.value.radar.grid.color,70),"stroke-width":q.value.radar.grid.strokeWidth/2,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Vr),f(`path`,{d:Oi.value,fill:`none`,stroke:y(n)(q.value.radar.grid.color,70),"stroke-width":q.value.radar.grid.strokeWidth/2,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Hr),f(`path`,{d:ki.value,fill:`none`,stroke:y(n)(q.value.radar.grid.color,70),"stroke-width":q.value.radar.grid.strokeWidth/2.5,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Ur),f(`path`,{d:`M 9,50 91,50`,stroke:y(n)(q.value.radar.grid.color,50),"stroke-width":q.value.radar.grid.strokeWidth/2},null,8,Wr),f(`path`,{d:`M 29.5,14.5 70.5 85.5`,stroke:y(n)(q.value.radar.grid.color,50),"stroke-width":q.value.radar.grid.strokeWidth/2},null,8,Gr),f(`path`,{d:`M 29.5,85.5 70.5 14.5`,stroke:y(n)(q.value.radar.grid.color,50),"stroke-width":q.value.radar.grid.strokeWidth/2},null,8,Kr),f(`path`,{d:`M 34,23 68.5,18, 70,50 61.5,70 35,75.5 10,50 Z`,stroke:`none`,"stroke-linejoin":`round`,fill:y(n)(q.value.radar.shapes.color,30)},null,8,qr),f(`path`,{d:`M 43.5,40 64.5,25, 84,50 55.5,60 29.5,85.5 25,50 Z`,stroke:`none`,"stroke-linejoin":`round`,fill:y(n)(q.value.radar.shapes.color,50)},null,8,Jr)],12,zr)):u(``,!0),J.value===`waffle`?(g(),d(`svg`,{key:34,xmlns:y(a),viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(o),(g(),d(c,null,v(10,(e,t)=>f(`g`,null,[(g(),d(c,null,v(10,(e,r)=>f(`g`,null,[f(`rect`,{x:3+r*9.5,y:3+t*9.5,height:9,width:9,fill:y(n)(q.value.waffle.color,20),rx:`1`},null,8,Xr)])),64))])),64)),(g(),d(c,null,v(10,(e,t)=>f(`g`,null,[(g(),d(c,null,v(10,(e,r)=>f(`g`,null,[t>2?(g(),d(`rect`,{key:0,x:3+r*9.5,y:3+t*9.5,height:9,width:9,fill:y(n)(q.value.waffle.color,30),rx:`1`},null,8,Zr)):u(``,!0)])),64))])),64)),(g(),d(c,null,v(10,(e,t)=>f(`g`,null,[(g(),d(c,null,v(10,(e,r)=>f(`g`,null,[t>6?(g(),d(`rect`,{key:0,x:3+r*9.5,y:3+t*9.5,height:9,width:9,fill:y(n)(q.value.waffle.color,50),rx:`1`},null,8,Qr)):u(``,!0)])),64))])),64))],12,Yr)):u(``,!0),J.value===`table`?(g(),d(`svg`,{key:35,xmlns:y(a),width:`100%`,viewBox:`0 0 100 70`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`rect`,{fill:y(n)(q.value.table.th.color,50),x:3.5,y:5,height:`10`,width:`93`},null,8,ei),f(`rect`,{fill:y(n)(q.value.table.th.color,50),x:3.5,y:15,height:`50`,width:`23.25`},null,8,ti),(g(),d(c,null,v(7,(e,t)=>f(`line`,{x1:`3.7`,x2:`96.3`,y1:5+t*10,y2:5+t*10,stroke:q.value.table.td.color,"stroke-width":q.value.table.td.strokeWidth,"stroke-linecap":`round`},null,8,ni)),64)),(g(),d(c,null,v(5,(e,t)=>f(`line`,{x1:3.5+t*23.25,x2:3.5+t*23.25,y1:`5`,y2:`65`,stroke:q.value.table.td.color,"stroke-width":q.value.table.td.strokeWidth,"stroke-linecap":`round`},null,8,ri)),64))],12,$r)):u(``,!0),J.value===`rating`?(g(),d(c,{key:36},[q.value.rating.useSmiley?(g(),d(`div`,{key:0,style:h(`display:flex;flex-direction:row;align-items:center;justify-content:center;width:${q.value.rating.maxWidth}px`)},[q.value.rating.filled?(g(),d(`svg`,{key:0,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[m(o),r[0]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-5 9.86a4.5 4.5 0 00-3.214 1.35 1 1 0 101.428 1.4 2.5 2.5 0 013.572 0 1 1 0 001.428-1.4A4.5 4.5 0 0012 13.2zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,ai)],12,ii)):(g(),d(`svg`,{key:1,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...r[1]||=[p(`<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-14d10499></path><path d="M3 12a9 9 0 1018 0A9 9 0 103 12" data-v-14d10499></path><path d="M9 10l.01 0" data-v-14d10499></path><path d="M15 10l.01 0" data-v-14d10499></path><path d="M9.5 15.25a3.5 3.5 0 015 0" data-v-14d10499></path>`,5)]],12,oi)),q.value.rating.filled?(g(),d(`svg`,{key:2,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[r[2]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 14H9l-.117.007a1 1 0 000 1.986L9 16h6l.117-.007a1 1 0 000-1.986L15 14zm-5.99-5-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,ci)],12,si)):(g(),d(`svg`,{key:3,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...r[3]||=[p(`<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-14d10499></path><path d="M3 12a9 9 0 1018 0A9 9 0 103 12" data-v-14d10499></path><path d="M9 10l.01 0" data-v-14d10499></path><path d="M15 10l.01 0" data-v-14d10499></path><path d="M9 15l6 0" data-v-14d10499></path>`,5)]],12,li)),q.value.rating.filled?(g(),d(`svg`,{key:4,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[r[4]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,di)],12,ui)):(g(),d(`svg`,{key:5,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...r[5]||=[f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M3 12a9 9 0 1018 0A9 9 0 103 12`},null,-1),f(`path`,{d:`M9 10l.01 0`},null,-1),f(`path`,{d:`M15 10l.01 0`},null,-1)]],12,fi)),q.value.rating.filled?(g(),d(`svg`,{key:6,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[r[6]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-1.8 10.946a1 1 0 00-1.414.014 2.5 2.5 0 01-3.572 0 1 1 0 00-1.428 1.4 4.5 4.5 0 006.428 0 1 1 0 00-.014-1.414zM9.01 9l-.127.007A1 1 0 009 11l.127-.007A1 1 0 009.01 9zm6 0-.127.007A1 1 0 0015 11l.127-.007A1 1 0 0015.01 9z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,mi)],12,pi)):(g(),d(`svg`,{key:7,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...r[7]||=[p(`<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-14d10499></path><path d="M3 12a9 9 0 1018 0A9 9 0 103 12" data-v-14d10499></path><path d="M9 10l.01 0" data-v-14d10499></path><path d="M15 10l.01 0" data-v-14d10499></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-14d10499></path>`,5)]],12,hi)),q.value.rating.filled?(g(),d(`svg`,{key:8,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[r[8]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 13H9a1 1 0 00-1 1v.05a3.975 3.975 0 003.777 3.97l.227.005a4.026 4.026 0 003.99-3.79l.006-.206A1 1 0 0015 13zm-5.99-5-.127.007A1 1 0 009 10l.127-.007A1 1 0 009.01 8zm6 0-.127.007A1 1 0 0015 10l.127-.007A1 1 0 0015.01 8z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,gi)],12,W)):(g(),d(`svg`,{key:9,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...r[9]||=[p(`<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-14d10499></path><path d="M3 12a9 9 0 1018 0A9 9 0 103 12" data-v-14d10499></path><path d="M9 9l.01 0" data-v-14d10499></path><path d="M15 9l.01 0" data-v-14d10499></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-14d10499></path>`,5)]],12,_i))],4)):(g(),d(`svg`,{key:1,xmlns:y(a),width:`100%`,viewBox:`0 0 100 30`,style:h(`background:${q.value.backgroundColor};max-width:${q.value.rating.maxWidth}px`)},[m(o),(g(),d(c,null,v(5,(e,n)=>f(`polygon`,{points:y(t)({plot:{x:10+n*20,y:15},radius:6}),fill:q.value.rating.filled?q.value.rating.color:`none`,stroke:q.value.rating.color,"stroke-width":q.value.rating.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,yi)),64))],12,vi))],64)):u(``,!0),J.value===`verticalBar`?(g(),d(`svg`,{key:37,xmlns:y(a),width:`100%`,viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(o),q.value.verticalBar.axis.show?(g(),d(`g`,xi,[f(`line`,{x1:3,x2:3,y1:3,y2:97,stroke:q.value.verticalBar.axis.color,"stroke-width":q.value.verticalBar.axis.strokeWidth},null,8,Si)])):u(``,!0),(g(),d(c,null,v(6,(e,t)=>f(`rect`,{x:3,y:5+t*15.6,height:`12`,width:94-94*t/6,fill:q.value.verticalBar.color,rx:q.value.verticalBar.borderRadius},null,8,Ci)),64))],12,bi)):u(``,!0)],14,oe))}},[[`__scopeId`,`data-v-14d10499`]]);export{b as n,G as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{$ as t,Yt as n,at as r,i,t as a,zt as o}from"./lib-rPeBMZrn.js";import{t as s}from"./useNestedProp-DnGoh-XS.js";import{n as c,t as l}from"./useHints-C-TwxM0Y.js";import{t as u}from"./useConfig-_JwRfIqE.js";import{t as d}from"./DefGrad-DKMq1REY.js";import{t as f}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{Fragment as p,computed as m,createCommentVNode as h,createElementBlock as g,createElementVNode as _,createTextVNode as v,createVNode as y,normalizeClass as b,normalizeStyle as x,onMounted as S,openBlock as C,ref as w,renderList as T,renderSlot as E,toDisplayString as D,unref as O,useSlots as k,watch as A,withCtx as j,withKeys as M}from"vue";var N=[`xmlns`,`stroke`],P=[`stroke`],F=[`xmlns`,`viewBox`,`stroke`],I=[`viewBox`,`stroke`],L=/*#__PURE__*/ f({__name:`BaseSmilingUnit`,props:{config:{type:Object},unit:{type:Number},currentRating:{type:Number},getActiveColor:{type:Function},calcShapeFill:{type:Function},isReadonly:{type:Boolean},hasBreakdown:{type:Boolean},hoveredValue:{type:Number},isCursorPointer:{type:Boolean}},emits:[`rate`,`mouseenter`,`mouseleave`],setup(e,{emit:t}){let r=e,i=t;return(t,o)=>(C(),g(`div`,{tabindex:`0`,class:b({"vue-ui-smiley-rated":!e.config.readonly&&e.currentRating===e.unit}),style:x({cursor:e.config.readonly?`default`:r.isCursorPointer?`pointer`:`default`,height:e.config.style.itemSize+`px`,aspectRatio:`1/1`,position:`relative`}),onMouseenter:o[0]||=e=>i(`mouseenter`),onMouseleave:o[1]||=e=>i(`mouseleave`),onClick:o[2]||=t=>i(`rate`,e.unit),onKeyup:o[3]||=M(t=>i(`rate`,e.unit),[`enter`])},[e.config.style.tooltip.show&&e.hasBreakdown&&e.isReadonly?(C(),g(`div`,{key:0,class:`vue-ui-rating-tooltip`,style:x({border:`1px solid ${e.config.style.tooltip.borderColor}`,position:`absolute`,top:`${e.config.style.tooltip.offsetY-48}px`,left:`50%`,transform:`translateX(-50%)`,width:`fit-content`,textAlign:`center`,background:e.config.style.tooltip.backgroundColor,display:e.hoveredValue===e.unit-1?`block`:`none`,padding:`2px 12px`,borderRadius:e.config.style.tooltip.borderRadius+`px`,boxShadow:e.config.style.tooltip.boxShadow})},[_(`div`,{style:x({width:`100%`,display:`flex`,flexDirection:`row`,gap:`6px`,position:`relative`,textAlign:`center`,color:e.config.style.tooltip.color})},[_(`span`,{style:x(`font-size:${e.config.style.tooltip.fontSize}px`)},D(e.unit)+`:`,5),_(`span`,{style:x(`font-weight:${e.config.style.tooltip.bold?`bold`:`normal`};font-size:${e.config.style.tooltip.fontSize}px`)},[E(t.$slots,`rating`,{},void 0,!0)],4),_(`div`,{style:x(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${e.config.style.tooltip.borderColor}`)},` ▼ `,4)],4)],4)):h(``,!0),e.config.style.icons.filled?(C(),g(`svg`,{key:1,xmlns:O(a),style:{transition:`all 0.1s ease-in-out`,position:`absolute`,top:`0`,left:`0`},height:`100%`,viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:e.getActiveColor(e.unit-1),fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[_(`defs`,null,[y(d,{t:`radial`,id:`vueUiSmiley${e.unit-1}`,stops:[[`0%`,O(n)(e.config.style.colors.active[e.unit-1],.05),1],[`100%`,e.config.style.colors.active[e.unit-1],1]]},null,8,[`id`,`stops`])]),E(t.$slots,`path-icon-filled`,{},void 0,!0)],8,N)):(C(),g(`svg`,{key:2,style:{position:`absolute`,top:`0`,left:`0`,transition:`all 0.1s ease-in-out`},height:`100%`,viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:e.getActiveColor(e.unit-1),fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[E(t.$slots,`path-icon`,{},void 0,!0)],8,P)),e.config.style.icons.filled&&e.isReadonly?(C(),g(`svg`,{key:3,xmlns:O(a),style:{transition:`all 0.1s ease-in-out`,position:`absolute`,top:`0`,left:`0`},height:`100%`,viewBox:`0 0 ${e.calcShapeFill(e.unit-1)} 24`,"stroke-width":`1.5`,stroke:e.config.style.colors.activeReadonly[e.unit-1],fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[_(`defs`,null,[y(d,{t:`radial`,id:`vueUiSmiley${e.unit-1}`,stops:[[`0%`,O(n)(e.config.style.colors.activeReadonly[e.unit-1],.05),1],[`100%`,e.config.style.colors.activeReadonly[e.unit-1],1]]},null,8,[`id`,`stops`])]),E(t.$slots,`path-icon-filled-readonly`,{},void 0,!0)],8,F)):h(``,!0),!e.config.style.icons.filled&&e.isReadonly?(C(),g(`svg`,{key:4,style:{position:`absolute`,top:`0`,left:`0`,transition:`all 0.1s ease-in-out`},height:`100%`,viewBox:`0 0 ${e.calcShapeFill(e.unit-1)} 24`,"stroke-width":`1.5`,stroke:e.config.style.colors.activeReadonly[e.unit-1],fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[E(t.$slots,`path-icon-readonly`,{},void 0,!0)],8,I)):h(``,!0)],38))}},[[`__scopeId`,`data-v-9734e83c`]]),R=/* @__PURE__ */ e({default:()=>W}),z={key:0,class:`vue-ui-rating-title`,style:{width:`100%`}},B=[`d`,`fill`],V=[`d`],H=[`d`,`fill`],U=[`d`],W={__name:`vue-ui-smiley`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:[`rate`],setup(e,{expose:n,emit:a}){let{vue_ui_smiley:d}=u(),f=e,b=k(),E=a,O=w(null),M=w(W()),N=m(()=>M.value.style.rating),P=m(()=>M.value.style),F=m(()=>M.value.debug);S(()=>{b[`chart-background`]&&F.value&&console.warn(`VueUiSmiley does not support the #chart-background slot.`)});function I(){(!Object.hasOwn(f.dataset,`rating`)||o(f.dataset))&&r({componentName:`VueUiSmiley`,type:`datasetAttribute`,property:`rating`,debug:F.value})}S(I),c({config:()=>M.value,dataset:()=>[],component:`VueUiSmiley`,rules:[l.noHint]});let R=m(()=>M.value.useCursorPointer);function W(){return s({userConfig:f.config,defaultConfig:d})}A(()=>f.config,e=>{M.value=W(),J.value=M.value.readonly,I()},{deep:!0});let G=m(()=>{let e=f.dataset.rating;return e&&typeof e==`object`&&!Array.isArray(e)?X(e):e??null}),K=m(()=>typeof f.dataset.rating==`object`&&!Array.isArray(f.dataset.rating)),q=w(G.value);A(G,e=>{q.value=e});let J=w(M.value.readonly),Y=[{key:`smiley_0`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-5 9.86a4.5 4.5 0 00-3.214 1.35 1 1 0 101.428 1.4 2.5 2.5 0 013.572 0 1 1 0 001.428-1.4A4.5 4.5 0 0012 13.2zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9.5 15.25a3.5 3.5 0 015 0`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-5 9.86a4.5 4.5 0 00-3.214 1.35 1 1 0 101.428 1.4 2.5 2.5 0 013.572 0 1 1 0 001.428-1.4A4.5 4.5 0 0012 13.2zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9.5 15.25a3.5 3.5 0 015 0`},{key:`smiley_1`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 14H9l-.117.007a1 1 0 000 1.986L9 16h6l.117-.007a1 1 0 000-1.986L15 14zm-5.99-5-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9 15h6`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 14H9l-.117.007a1 1 0 000 1.986L9 16h6l.117-.007a1 1 0 000-1.986L15 14zm-5.99-5-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9 15h6`},{key:`smiley_2`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01`},{key:`smiley_3`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-1.8 10.946a1 1 0 00-1.414.014 2.5 2.5 0 01-3.572 0 1 1 0 00-1.428 1.4 4.5 4.5 0 006.428 0 1 1 0 00-.014-1.414zM9.01 9l-.127.007A1 1 0 009 11l.127-.007A1 1 0 009.01 9zm6 0-.127.007A1 1 0 0015 11l.127-.007A1 1 0 0015.01 9z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9.5 15a3.5 3.5 0 005 0`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-1.8 10.946a1 1 0 00-1.414.014 2.5 2.5 0 01-3.572 0 1 1 0 00-1.428 1.4 4.5 4.5 0 006.428 0 1 1 0 00-.014-1.414zM9.01 9l-.127.007A1 1 0 009 11l.127-.007A1 1 0 009.01 9zm6 0-.127.007A1 1 0 0015 11l.127-.007A1 1 0 0015.01 9z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9.5 15a3.5 3.5 0 005 0`},{key:`smiley_4`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 13H9a1 1 0 00-1 1v.05a3.975 3.975 0 003.777 3.97l.227.005a4.026 4.026 0 003.99-3.79l.006-.206A1 1 0 0015 13zm-5.99-5-.127.007A1 1 0 009 10l.127-.007A1 1 0 009.01 8zm6 0-.127.007A1 1 0 0015 10l.127-.007A1 1 0 0015.01 8z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12M9 9h.01M15 9h.01M8 13a4 4 0 108 0H8`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 13H9a1 1 0 00-1 1v.05a3.975 3.975 0 003.777 3.97l.227.005a4.026 4.026 0 003.99-3.79l.006-.206A1 1 0 0015 13zm-5.99-5-.127.007A1 1 0 009 10l.127-.007A1 1 0 009.01 8zm6 0-.127.007A1 1 0 0015 10l.127-.007A1 1 0 0015.01 8z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12M9 9h.01M15 9h.01M8 13a4 4 0 108 0H8`}];function X(e){if(e==null)return null;let t=0,n=0;for(let r in e){let i=Number(r),a=e[r];Number.isFinite(i)&&(t+=i*a,n+=a)}return n===0?0:t/n}function Z(e){let t=q.value-e;switch(!0){case t<0:return 0;case t>1:return 24;default:return t*24}}function Q(e){return M.value.readonly?P.value.colors.inactive[e]:q.value===e+1||O.value!==null&&O.value===e?P.value.icons.useGradient&&P.value.icons.filled?`url(#vueUiSmiley${e})`:P.value.colors.active[e]:P.value.colors.inactive[e]}let $=m(()=>({value:e,tooltip:n=!1})=>i(n?P.value.tooltip.formatter:N.value.formatter,e,t({v:e,r:n?P.value.tooltip.roundingValue:N.value.roundingValue}),M.value));function ee(e){J.value||(q.value=e,E(`rate`,e))}function te(){return q.value}function ne(e=!0){J.value=e}return n({getData:te,toggleReadonly:ne}),(e,t)=>(C(),g(`div`,{class:`vue-data-ui-component vue-ui-smiley`,style:x(`background:${P.value.backgroundColor};font-family:${P.value.fontFamily};width:100%;`),onMouseleave:t[1]||=e=>O.value=void 0},[P.value.title.text?(C(),g(`div`,z,[_(`div`,{style:x(`color:${P.value.title.color};font-weight:${P.value.title.bold?`bold`:`normal`};text-align:${P.value.title.textAlign};margin-bottom:${P.value.title.offsetY}px;font-size:${P.value.title.fontSize}px`)},D(P.value.title.text),5),P.value.title.subtitle.text?(C(),g(`div`,{key:0,style:x(`color:${P.value.title.subtitle.color};font-size:${P.value.title.subtitle.fontSize}px;text-align:${P.value.title.textAlign};margin-bottom:${P.value.title.subtitle.offsetY}px;font-weight:${P.value.title.subtitle.bold?`bold`:`normal`}`)},D(P.value.title.subtitle.text),5)):h(``,!0)])):h(``,!0),N.value.show&&N.value.position===`top`?(C(),g(`div`,{key:1,style:x(`width:100%;text-align:center;margin-bottom:${N.value.offsetY}px;font-size:${N.value.fontSize}px;font-weight:${N.value.bold?`bold`:`normal`};margin-left:${N.value.offsetX}px`)},D($.value({value:q.value})),5)):h(``,!0),_(`div`,{class:`vue-ui-smiley-wrapper`,style:x(`overflow:visible;height:${P.value.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)},[N.value.show&&N.value.position===`left`?(C(),g(`div`,{key:0,style:x(`width:fit-content;text-align:center;margin-bottom:${N.value.offsetY}px;font-size:${N.value.fontSize}px;font-weight:${N.value.bold?`bold`:`normal`};padding-right:${N.value.offsetX}px`)},D($.value({value:q.value})),5)):h(``,!0),(C(),g(p,null,T(Y,(e,n)=>y(L,{key:e.key,config:M.value,unit:n+1,currentRating:q.value,isReadonly:J.value,hasBreakdown:K.value,hoveredValue:O.value,getActiveColor:Q,calcShapeFill:Z,isCursorPointer:R.value,onMouseenter:e=>O.value=n,onMouseleave:t[0]||=e=>O.value=null,onRate:e=>ee(n+1)},{rating:j(()=>[v(D($.value({value:f.dataset.rating[String(n+1)],tooltip:!0})),1)]),"path-icon-filled":j(()=>[_(`path`,{d:e.pathIconFilled,"stroke-width":`0`,fill:Q(n)},null,8,B)]),"path-icon":j(()=>[_(`path`,{d:e.pathIcon},null,8,V)]),"path-icon-filled-readonly":j(()=>[_(`path`,{d:e.pathIconFilledReadonly,"stroke-width":`0`,fill:P.value.icons.useGradient?`url(#vueUiSmiley${n})`:P.value.colors.activeReadonly[n]},null,8,H)]),"path-icon-readonly":j(()=>[_(`path`,{d:e.pathIconReadonly},null,8,U)]),_:2},1032,[`config`,`unit`,`currentRating`,`isReadonly`,`hasBreakdown`,`hoveredValue`,`isCursorPointer`,`onMouseenter`,`onRate`])),64)),N.value.show&&N.value.position===`right`?(C(),g(`div`,{key:1,style:x(`width:fit-content;text-align:center;margin-bottom:${N.value.offsetY}px;font-size:${N.value.fontSize}px;font-weight:${N.value.bold?`bold`:`normal`};padding-left:${N.value.offsetX}px`)},D($.value({value:q.value})),5)):h(``,!0)],4),N.value.show&&N.value.position===`bottom`?(C(),g(`div`,{key:2,style:x(`width:100%;text-align:center;margin-top:${N.value.offsetY}px;font-size:${N.value.fontSize}px;font-weight:${N.value.bold?`bold`:`normal`};margin-left:${N.value.offsetX}px`)},D($.value({value:q.value})),5)):h(``,!0)],36))}};export{R as n,W as t};
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{$ as t,Yt as n,at as r,i,t as a,zt as o}from"./lib-rPeBMZrn.js";import{t as s}from"./useNestedProp-DnGoh-XS.js";import{n as c,t as l}from"./useHints-C-TwxM0Y.js";import{t as u}from"./useConfig-9oDGTWWG.js";import{t as d}from"./DefGrad-DKMq1REY.js";import{t as f}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{Fragment as p,computed as m,createCommentVNode as h,createElementBlock as g,createElementVNode as _,createTextVNode as v,createVNode as y,normalizeClass as b,normalizeStyle as x,onMounted as S,openBlock as C,ref as w,renderList as T,renderSlot as E,toDisplayString as D,unref as O,useSlots as k,watch as A,withCtx as j,withKeys as M}from"vue";var N=[`xmlns`,`stroke`],P=[`stroke`],F=[`xmlns`,`viewBox`,`stroke`],I=[`viewBox`,`stroke`],L=/*#__PURE__*/ f({__name:`BaseSmilingUnit`,props:{config:{type:Object},unit:{type:Number},currentRating:{type:Number},getActiveColor:{type:Function},calcShapeFill:{type:Function},isReadonly:{type:Boolean},hasBreakdown:{type:Boolean},hoveredValue:{type:Number},isCursorPointer:{type:Boolean}},emits:[`rate`,`mouseenter`,`mouseleave`],setup(e,{emit:t}){let r=e,i=t;return(t,o)=>(C(),g(`div`,{tabindex:`0`,class:b({"vue-ui-smiley-rated":!e.config.readonly&&e.currentRating===e.unit}),style:x({cursor:e.config.readonly?`default`:r.isCursorPointer?`pointer`:`default`,height:e.config.style.itemSize+`px`,aspectRatio:`1/1`,position:`relative`}),onMouseenter:o[0]||=e=>i(`mouseenter`),onMouseleave:o[1]||=e=>i(`mouseleave`),onClick:o[2]||=t=>i(`rate`,e.unit),onKeyup:o[3]||=M(t=>i(`rate`,e.unit),[`enter`])},[e.config.style.tooltip.show&&e.hasBreakdown&&e.isReadonly?(C(),g(`div`,{key:0,class:`vue-ui-rating-tooltip`,style:x({border:`1px solid ${e.config.style.tooltip.borderColor}`,position:`absolute`,top:`${e.config.style.tooltip.offsetY-48}px`,left:`50%`,transform:`translateX(-50%)`,width:`fit-content`,textAlign:`center`,background:e.config.style.tooltip.backgroundColor,display:e.hoveredValue===e.unit-1?`block`:`none`,padding:`2px 12px`,borderRadius:e.config.style.tooltip.borderRadius+`px`,boxShadow:e.config.style.tooltip.boxShadow})},[_(`div`,{style:x({width:`100%`,display:`flex`,flexDirection:`row`,gap:`6px`,position:`relative`,textAlign:`center`,color:e.config.style.tooltip.color})},[_(`span`,{style:x(`font-size:${e.config.style.tooltip.fontSize}px`)},D(e.unit)+`:`,5),_(`span`,{style:x(`font-weight:${e.config.style.tooltip.bold?`bold`:`normal`};font-size:${e.config.style.tooltip.fontSize}px`)},[E(t.$slots,`rating`,{},void 0,!0)],4),_(`div`,{style:x(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${e.config.style.tooltip.borderColor}`)},` ▼ `,4)],4)],4)):h(``,!0),e.config.style.icons.filled?(C(),g(`svg`,{key:1,xmlns:O(a),style:{transition:`all 0.1s ease-in-out`,position:`absolute`,top:`0`,left:`0`},height:`100%`,viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:e.getActiveColor(e.unit-1),fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[_(`defs`,null,[y(d,{t:`radial`,id:`vueUiSmiley${e.unit-1}`,stops:[[`0%`,O(n)(e.config.style.colors.active[e.unit-1],.05),1],[`100%`,e.config.style.colors.active[e.unit-1],1]]},null,8,[`id`,`stops`])]),E(t.$slots,`path-icon-filled`,{},void 0,!0)],8,N)):(C(),g(`svg`,{key:2,style:{position:`absolute`,top:`0`,left:`0`,transition:`all 0.1s ease-in-out`},height:`100%`,viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:e.getActiveColor(e.unit-1),fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[E(t.$slots,`path-icon`,{},void 0,!0)],8,P)),e.config.style.icons.filled&&e.isReadonly?(C(),g(`svg`,{key:3,xmlns:O(a),style:{transition:`all 0.1s ease-in-out`,position:`absolute`,top:`0`,left:`0`},height:`100%`,viewBox:`0 0 ${e.calcShapeFill(e.unit-1)} 24`,"stroke-width":`1.5`,stroke:e.config.style.colors.activeReadonly[e.unit-1],fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[_(`defs`,null,[y(d,{t:`radial`,id:`vueUiSmiley${e.unit-1}`,stops:[[`0%`,O(n)(e.config.style.colors.activeReadonly[e.unit-1],.05),1],[`100%`,e.config.style.colors.activeReadonly[e.unit-1],1]]},null,8,[`id`,`stops`])]),E(t.$slots,`path-icon-filled-readonly`,{},void 0,!0)],8,F)):h(``,!0),!e.config.style.icons.filled&&e.isReadonly?(C(),g(`svg`,{key:4,style:{position:`absolute`,top:`0`,left:`0`,transition:`all 0.1s ease-in-out`},height:`100%`,viewBox:`0 0 ${e.calcShapeFill(e.unit-1)} 24`,"stroke-width":`1.5`,stroke:e.config.style.colors.activeReadonly[e.unit-1],fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[E(t.$slots,`path-icon-readonly`,{},void 0,!0)],8,I)):h(``,!0)],38))}},[[`__scopeId`,`data-v-9734e83c`]]),R=/* @__PURE__ */ e({default:()=>W}),z={key:0,class:`vue-ui-rating-title`,style:{width:`100%`}},B=[`d`,`fill`],V=[`d`],H=[`d`,`fill`],U=[`d`],W={__name:`vue-ui-smiley`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:[`rate`],setup(e,{expose:n,emit:a}){let{vue_ui_smiley:d}=u(),f=e,b=k(),E=a,O=w(null),M=w(W()),N=m(()=>M.value.style.rating),P=m(()=>M.value.style),F=m(()=>M.value.debug);S(()=>{b[`chart-background`]&&F.value&&console.warn(`VueUiSmiley does not support the #chart-background slot.`)});function I(){(!Object.hasOwn(f.dataset,`rating`)||o(f.dataset))&&r({componentName:`VueUiSmiley`,type:`datasetAttribute`,property:`rating`,debug:F.value})}S(I),c({config:()=>M.value,dataset:()=>[],component:`VueUiSmiley`,rules:[l.noHint]});let R=m(()=>M.value.useCursorPointer);function W(){return s({userConfig:f.config,defaultConfig:d})}A(()=>f.config,e=>{M.value=W(),J.value=M.value.readonly,I()},{deep:!0});let G=m(()=>{let e=f.dataset.rating;return e&&typeof e==`object`&&!Array.isArray(e)?X(e):e??null}),K=m(()=>typeof f.dataset.rating==`object`&&!Array.isArray(f.dataset.rating)),q=w(G.value);A(G,e=>{q.value=e});let J=w(M.value.readonly),Y=[{key:`smiley_0`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-5 9.86a4.5 4.5 0 00-3.214 1.35 1 1 0 101.428 1.4 2.5 2.5 0 013.572 0 1 1 0 001.428-1.4A4.5 4.5 0 0012 13.2zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9.5 15.25a3.5 3.5 0 015 0`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-5 9.86a4.5 4.5 0 00-3.214 1.35 1 1 0 101.428 1.4 2.5 2.5 0 013.572 0 1 1 0 001.428-1.4A4.5 4.5 0 0012 13.2zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9.5 15.25a3.5 3.5 0 015 0`},{key:`smiley_1`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 14H9l-.117.007a1 1 0 000 1.986L9 16h6l.117-.007a1 1 0 000-1.986L15 14zm-5.99-5-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9 15h6`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 14H9l-.117.007a1 1 0 000 1.986L9 16h6l.117-.007a1 1 0 000-1.986L15 14zm-5.99-5-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9 15h6`},{key:`smiley_2`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01`},{key:`smiley_3`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-1.8 10.946a1 1 0 00-1.414.014 2.5 2.5 0 01-3.572 0 1 1 0 00-1.428 1.4 4.5 4.5 0 006.428 0 1 1 0 00-.014-1.414zM9.01 9l-.127.007A1 1 0 009 11l.127-.007A1 1 0 009.01 9zm6 0-.127.007A1 1 0 0015 11l.127-.007A1 1 0 0015.01 9z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9.5 15a3.5 3.5 0 005 0`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-1.8 10.946a1 1 0 00-1.414.014 2.5 2.5 0 01-3.572 0 1 1 0 00-1.428 1.4 4.5 4.5 0 006.428 0 1 1 0 00-.014-1.414zM9.01 9l-.127.007A1 1 0 009 11l.127-.007A1 1 0 009.01 9zm6 0-.127.007A1 1 0 0015 11l.127-.007A1 1 0 0015.01 9z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9.5 15a3.5 3.5 0 005 0`},{key:`smiley_4`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 13H9a1 1 0 00-1 1v.05a3.975 3.975 0 003.777 3.97l.227.005a4.026 4.026 0 003.99-3.79l.006-.206A1 1 0 0015 13zm-5.99-5-.127.007A1 1 0 009 10l.127-.007A1 1 0 009.01 8zm6 0-.127.007A1 1 0 0015 10l.127-.007A1 1 0 0015.01 8z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12M9 9h.01M15 9h.01M8 13a4 4 0 108 0H8`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 13H9a1 1 0 00-1 1v.05a3.975 3.975 0 003.777 3.97l.227.005a4.026 4.026 0 003.99-3.79l.006-.206A1 1 0 0015 13zm-5.99-5-.127.007A1 1 0 009 10l.127-.007A1 1 0 009.01 8zm6 0-.127.007A1 1 0 0015 10l.127-.007A1 1 0 0015.01 8z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12M9 9h.01M15 9h.01M8 13a4 4 0 108 0H8`}];function X(e){if(e==null)return null;let t=0,n=0;for(let r in e){let i=Number(r),a=e[r];Number.isFinite(i)&&(t+=i*a,n+=a)}return n===0?0:t/n}function Z(e){let t=q.value-e;switch(!0){case t<0:return 0;case t>1:return 24;default:return t*24}}function Q(e){return M.value.readonly?P.value.colors.inactive[e]:q.value===e+1||O.value!==null&&O.value===e?P.value.icons.useGradient&&P.value.icons.filled?`url(#vueUiSmiley${e})`:P.value.colors.active[e]:P.value.colors.inactive[e]}let $=m(()=>({value:e,tooltip:n=!1})=>i(n?P.value.tooltip.formatter:N.value.formatter,e,t({v:e,r:n?P.value.tooltip.roundingValue:N.value.roundingValue}),M.value));function ee(e){J.value||(q.value=e,E(`rate`,e))}function te(){return q.value}function ne(e=!0){J.value=e}return n({getData:te,toggleReadonly:ne}),(e,t)=>(C(),g(`div`,{class:`vue-data-ui-component vue-ui-smiley`,style:x(`background:${P.value.backgroundColor};font-family:${P.value.fontFamily};width:100%;`),onMouseleave:t[1]||=e=>O.value=void 0},[P.value.title.text?(C(),g(`div`,z,[_(`div`,{style:x(`color:${P.value.title.color};font-weight:${P.value.title.bold?`bold`:`normal`};text-align:${P.value.title.textAlign};margin-bottom:${P.value.title.offsetY}px;font-size:${P.value.title.fontSize}px`)},D(P.value.title.text),5),P.value.title.subtitle.text?(C(),g(`div`,{key:0,style:x(`color:${P.value.title.subtitle.color};font-size:${P.value.title.subtitle.fontSize}px;text-align:${P.value.title.textAlign};margin-bottom:${P.value.title.subtitle.offsetY}px;font-weight:${P.value.title.subtitle.bold?`bold`:`normal`}`)},D(P.value.title.subtitle.text),5)):h(``,!0)])):h(``,!0),N.value.show&&N.value.position===`top`?(C(),g(`div`,{key:1,style:x(`width:100%;text-align:center;margin-bottom:${N.value.offsetY}px;font-size:${N.value.fontSize}px;font-weight:${N.value.bold?`bold`:`normal`};margin-left:${N.value.offsetX}px`)},D($.value({value:q.value})),5)):h(``,!0),_(`div`,{class:`vue-ui-smiley-wrapper`,style:x(`overflow:visible;height:${P.value.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)},[N.value.show&&N.value.position===`left`?(C(),g(`div`,{key:0,style:x(`width:fit-content;text-align:center;margin-bottom:${N.value.offsetY}px;font-size:${N.value.fontSize}px;font-weight:${N.value.bold?`bold`:`normal`};padding-right:${N.value.offsetX}px`)},D($.value({value:q.value})),5)):h(``,!0),(C(),g(p,null,T(Y,(e,n)=>y(L,{key:e.key,config:M.value,unit:n+1,currentRating:q.value,isReadonly:J.value,hasBreakdown:K.value,hoveredValue:O.value,getActiveColor:Q,calcShapeFill:Z,isCursorPointer:R.value,onMouseenter:e=>O.value=n,onMouseleave:t[0]||=e=>O.value=null,onRate:e=>ee(n+1)},{rating:j(()=>[v(D($.value({value:f.dataset.rating[String(n+1)],tooltip:!0})),1)]),"path-icon-filled":j(()=>[_(`path`,{d:e.pathIconFilled,"stroke-width":`0`,fill:Q(n)},null,8,B)]),"path-icon":j(()=>[_(`path`,{d:e.pathIcon},null,8,V)]),"path-icon-filled-readonly":j(()=>[_(`path`,{d:e.pathIconFilledReadonly,"stroke-width":`0`,fill:P.value.icons.useGradient?`url(#vueUiSmiley${n})`:P.value.colors.activeReadonly[n]},null,8,H)]),"path-icon-readonly":j(()=>[_(`path`,{d:e.pathIconReadonly},null,8,U)]),_:2},1032,[`config`,`unit`,`currentRating`,`isReadonly`,`hasBreakdown`,`hoveredValue`,`isCursorPointer`,`onMouseenter`,`onRate`])),64)),N.value.show&&N.value.position===`right`?(C(),g(`div`,{key:1,style:x(`width:fit-content;text-align:center;margin-bottom:${N.value.offsetY}px;font-size:${N.value.fontSize}px;font-weight:${N.value.bold?`bold`:`normal`};padding-left:${N.value.offsetX}px`)},D($.value({value:q.value})),5)):h(``,!0)],4),N.value.show&&N.value.position===`bottom`?(C(),g(`div`,{key:2,style:x(`width:100%;text-align:center;margin-top:${N.value.offsetY}px;font-size:${N.value.fontSize}px;font-weight:${N.value.bold?`bold`:`normal`};margin-left:${N.value.offsetX}px`)},D($.value({value:q.value})),5)):h(``,!0)],36))}};export{R as n,W as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useAnimationFrame-D8gcRfnW.js";import{t as n}from"./resolveChartConfig-0IvbmIE_.js";import{$ as r,Jt as i,Mt as a,P as ee,X as te,at as ne,b as o,g as re,i as ie,in as ae,t as oe,zt as s}from"./lib-rPeBMZrn.js";import{c as se}from"./canvas-lib-22VpOI4_.js";import{n as ce,t as le}from"./useHints-C-TwxM0Y.js";import{t as ue}from"./useConfig-9oDGTWWG.js";import{t as de}from"./useLoading-BwiplGDB.js";import{t as fe}from"./useFitSvgText-C1QC4P5G.js";import{t as pe}from"./useResponsive-CENUxfEL.js";import{t as me}from"./usePrefersMotion-XLHwega2.js";import{t as he}from"./vue_ui_spark_trend-BgPQfeCz.js";import{t as ge}from"./BaseScanner-m6QR9rwD.js";import{t as _e}from"./DefGrad-DKMq1REY.js";import{t as ve}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{computed as c,createBlock as ye,createCommentVNode as l,createElementBlock as u,createElementVNode as be,createVNode as xe,defineAsyncComponent as Se,nextTick as Ce,normalizeStyle as we,onBeforeUnmount as Te,onMounted as Ee,openBlock as d,ref as f,renderSlot as p,toDisplayString as m,toRefs as De,unref as h,watch as g}from"vue";var Oe=/* @__PURE__ */ e({default:()=>_}),ke=[`id`,`aria-describedby`],Ae=[`id`],je=[`xmlns`,`viewBox`],Me=[`width`,`height`],Ne={key:1},Pe=[`d`,`fill`],Fe=[`d`,`fill`],Ie=[`d`,`stroke`,`stroke-width`,`stroke-linecap`,`stroke-linejoin`],Le=[`d`,`stroke`,`stroke-width`,`stroke-linecap`,`stroke-linejoin`],Re=[`d`],ze=[`fill`,`d`],Be=[`x`,`y`,`width`,`height`],Ve=[`x`,`y`,`fill`,`font-size`,`font-weight`],He=[`stroke`,`cx`,`cy`,`fill`],Ue=[`x`,`y`,`font-size`,`fill`,`font-weight`],_=/*#__PURE__*/ ve({__name:`vue-ui-spark-trend`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(e){let ve=Se(()=>import(`./PackageVersion-B9qiUJPH.js`).then(e=>e.t)),{vue_ui_spark_trend:Oe}=ue(),_=me(),v=e,y=f(null),We=f(null),b=f(null),x=f(null),S=f(null),C=t(),w=0;function Ge(){w+=1,C.cancel(),x.value?.disconnect(),x.value=null,S.value=null}Te(Ge);let T=f(!1),E=t(),D=f(te()),O=f(L()),k=c(()=>O.value.style.dataLabel),A=c(()=>O.value.style.trendLabel),j=c(()=>O.value.style.line),M=c(()=>O.value.style.area),N=c(()=>O.value.style);ce({config:()=>O.value,dataset:()=>v.dataset,component:`VueUiSparkTrend`,rules:[le.emptyArray,{test:e=>e.length>1095,message:[`👀 The dataset has > 1095 datapoints. Above this threshold, the dataset is computed through an LTTB algorithm, to preserve the shape of the data without increasing the number of datapoints.`,``,`▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance will be impacted.`]}]});let Ke=c(()=>ae({defaultConfig:{style:{animation:{show:!1},backgroundColor:`#99999930`,line:{stroke:`#6A6A6A`,useColorTrend:!1},dataLabel:{show:!1,useColorTrend:!1,color:`#6A6A6A`}}},userConfig:O.value.skeletonConfig??{}})),{loading:P,FINAL_DATASET:F,manualLoading:I}=de({...De(v),FINAL_CONFIG:O,prepareConfig:L,skeletonDataset:v.config?.skeletonDataset??[1,2,3,5,8,13,21,34,55,89,144,233],skeletonConfig:ae({defaultConfig:O.value,userConfig:Ke.value})});function L(){return n(v.config,Oe,he)}let R=c(()=>a({data:F.value,threshold:O.value.downsample.threshold}));g(()=>v.config,e=>{O.value=L(),H.value=N.value.width,U.value=N.value.height,Je()},{deep:!0});function z(e){return e.map(e=>o(e))}let B=f(a({data:F.value,threshold:O.value.downsample.threshold}).map(e=>N.value.animation.show&&!_.value||[void 0,1/0,-1/0,null,NaN].includes(e)?null:e));g(R,e=>{E.cancel(),N.value.animation.show&&!_.value?B.value=Array(e.length).fill(null):B.value=e.map(e=>![void 0,1/0,-1/0,null].includes(e)&&!Number.isNaN(e)?e:null),V(),Ce(()=>$(`.vue-ui-sparktrend-progress-label`,6))},{deep:!0,immediate:!0}),g(()=>JSON.stringify(v.dataset),()=>{E.cancel(),I.value=s(v.dataset);let e=R.value;B.value=N.value.animation.show&&!_.value?Array(e.length).fill(null):e.map(e=>Number.isFinite(e)?e:null),V(),Ce(()=>$(`.vue-ui-sparktrend-progress-label`,6))},{deep:!1,immediate:!0});function V(){if(E.cancel(),E.isDisposed())return;T.value=!1;let e=N.value.animation.animationFrames,t=1e3/e,n=performance.now();if(!P.value&&N.value.animation.show&&!_.value&&Number.isFinite(e)&&e>0&&F.value.length>1){B.value=[];let e=0;function r(){T.value=!0;let i=performance.now(),a=i-n;a>t?(n=i-a%t,e<R.value.length?(B.value.push(R.value[e]),e+=1,E.request(r)):(E.cancel(),B.value=z(R.value),T.value=!1,$(`.vue-ui-sparktrend-progress-label`,6))):E.request(r)}r()}else B.value=z(R.value)}g([()=>N.value.animation.show,_],([e,t])=>{(!e||t)&&V()}),Ee(()=>{Je()});let qe=c(()=>O.value.debug);function Je(){if(Ge(),s(v.dataset)&&(ne({componentName:`VueUiSparkTrend`,type:`dataset`,debug:qe.value}),I.value=!0),s(v.dataset)||(I.value=!1),O.value.responsive&&y.value?.parentNode){let e=w,t=se(()=>{if(e!==w||C.isDisposed())return;let{width:t,height:n}=pe({chart:y.value,source:b.value});C.request(()=>{H.value=t,U.value=n})});x.value=new ResizeObserver(t),S.value=y.value.parentNode,x.value.observe(S.value)}V(),$(`.vue-ui-sparktrend-progress-label`,6)}let H=f(N.value.width),U=f(N.value.height),W=c(()=>({height:U.value,width:H.value})),G=c(()=>({top:N.value.padding.top,left:N.value.padding.left,right:W.value.width-N.value.padding.right,bottom:W.value.height-N.value.padding.bottom,height:W.value.height-(N.value.padding.top+N.value.padding.bottom)-(k.value.show?k.value.fontSize:0),width:W.value.width-(N.value.padding.left+N.value.padding.right)})),K=c(()=>{let e=z(R.value).filter(Number.isFinite);if(!e.length)return{max:0,min:0};let t=e[0],n=e[0];for(let r=1;r<e.length;r++){let i=e[r];i>t&&(t=i),i<n&&(n=i)}return{max:t,min:n}}),Ye=c(()=>{let e=R.value,t=e.length?e[e.length-1]:`x`;return[D.value,e.length,Number.isFinite(t)?t:`x`,O.value.downsample.threshold,j.value.smooth?`s`:`l`].join(`-`)}),q=c(()=>{let e=K.value.min>=0?0:K.value.min;return Math.abs(e)}),Xe=c(()=>K.value.max+q.value);function Ze(e){return e/Xe.value}let Qe=c(()=>R.value.length),J=c(()=>B.value.map((e,t)=>{let n=isNaN(e)||[void 0,null,`NaN`,NaN,1/0,-1/0].includes(e)?0:e||0;return{value:o(e),absoluteValue:o(n),plotValue:o(n+q.value),toMax:Ze(n+q.value),x:G.value.left+o(t*(G.value.width/(Qe.value-1)))-N.value.padding.right,y:G.value.bottom-o(G.value.height*Ze(n+q.value))}})),Y=c(()=>{let e=z(R.value);return A.value.trendType===`global`?re(e):A.value.trendType===`n-1`&&e.length>1?(e.at(-1)/e.at(-2)-1)*100:A.value.trendType===`lastToFirst`?(e.at(-1)/e[0]-1)*100:0}),X=c(()=>T.value||Y.value===0?`neutral`:Y.value>0?`positive`:`negative`),Z=c(()=>N.value.arrow.colors[X.value]),$e=c(()=>{let e={x:J.value[0].x,y:W.value.height-6},t={x:J.value[J.value.length-1].x,y:W.value.height-6},n=[];return J.value.forEach(e=>{n.push(`${e.x},${e.y} `)}),[e.x,e.y,...n,t.x,t.y].toString()}),et=c(()=>{let e=[];return J.value.forEach(t=>{e.push(`${t.x},${t.y} `)}),`M ${e.toString()}`}),Q=c(()=>U.value/2-A.value.fontSize),tt=c(()=>G.value.left*.8),{fitText:$}=fe({svgRef:We,unitWidth:tt,fontSize:A.value.fontSize}),nt=c(()=>{if(P.value||T.value)return`Trend chart loading`;let e=J.value?.at(-1),t=e?.value,n=r({p:Y.value>0?`+`:``,v:Y.value,s:`%`,r:A.value.rounding}),i=t==null?`not available`:ie(k.value.formatter,t,r({p:k.value.prefix,v:t,s:k.value.suffix,r:k.value.rounding}),{datapoint:e});return`Progression ${X.value===`positive`?`up ${n}`:X.value===`negative`?`down ${n}`:`stable at ${n}`}. Last value ${i}.`}),rt=c(()=>`sparktrend-a11y-${D.value}`);return(e,t)=>(d(),u(`div`,{ref_key:`sparkTrendChart`,ref:y,class:`vue-data-ui-component vue-ui-spark-trend`,id:D.value,style:we(`width:100%;font-family:${N.value.fontFamily};background:${N.value.backgroundColor}`),role:`img`,"aria-describedby":rt.value},[be(`p`,{id:rt.value,class:`sr-only`,"aria-live":`polite`},m(nt.value),9,Ae),(d(),u(`svg`,{key:Ye.value,ref_key:`svgRef`,ref:We,xmlns:h(oe),viewBox:`0 0 ${W.value.width} ${W.value.height}`,style:`width:100%;background:transparent;overflow:visible`,"aria-hidden":`true`},[xe(h(ve)),e.$slots[`chart-background`]?(d(),u(`foreignObject`,{key:0,x:0,y:0,width:W.value.width<=0?10:W.value.width,height:W.value.height<=0?10:W.value.height,style:{pointerEvents:`none`}},[p(e.$slots,`chart-background`,{},void 0,!0)],8,Me)):l(``,!0),be(`defs`,null,[xe(_e,{t:`linear`,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`,id:`pill_gradient_${D.value}`,stops:[[`0%`,h(i)(j.value.useColorTrend?Z.value:j.value.stroke,M.value.opacity),1],[`100%`,N.value.backgroundColor,1]]},null,8,[`id`,`stops`])]),M.value.show&&J.value[0]?(d(),u(`g`,Ne,[j.value.smooth?(d(),u(`path`,{key:0,d:`M ${J.value[0].x},${G.value.bottom} ${h(ee)(J.value)} L ${J.value.at(-1).x},${G.value.bottom} Z`,fill:M.value.useGradient?`url(#pill_gradient_${D.value})`:h(i)(j.value.useColorTrend?Z.value:j.value.stroke,M.value.opacity),stroke:`none`},null,8,Pe)):(d(),u(`path`,{key:1,d:`M${$e.value}Z`,fill:M.value.useGradient?`url(#pill_gradient_${D.value})`:h(i)(j.value.useColorTrend?Z.value:j.value.stroke,M.value.opacity),stroke:`none`},null,8,Fe))])):l(``,!0),j.value.smooth&&J.value.length?(d(),u(`path`,{key:2,d:`M ${h(ee)(J.value)}`,stroke:j.value.useColorTrend?Z.value:j.value.stroke,fill:`none`,"stroke-width":j.value.strokeWidth,"stroke-linecap":j.value.strokeLinecap,"stroke-linejoin":j.value.strokeLinejoin},null,8,Ie)):l(``,!0),!j.value.smooth&&J.value.length?(d(),u(`path`,{key:3,d:et.value,stroke:j.value.useColorTrend?Z.value:j.value.stroke,fill:`none`,"stroke-width":j.value.strokeWidth,"stroke-linecap":j.value.strokeLinecap,"stroke-linejoin":j.value.strokeLinejoin},null,8,Le)):l(``,!0),h(P)?(d(),u(`path`,{key:4,fill:`#6A6A6A`,d:`M ${G.value.left/2+6}, ${Q.value+7} ${G.value.left/2-7}, ${Q.value} ${G.value.left/2-7}, ${Q.value+14} Z`},null,8,Re)):(d(),u(`path`,{key:5,fill:Z.value,d:X.value===`positive`?`M ${G.value.left/2}, ${Q.value} ${G.value.left/2-7}, ${Q.value+12} ${G.value.left/2+7}, ${Q.value+12} Z`:X.value===`negative`?`M ${G.value.left/2}, ${Q.value+12} ${G.value.left/2-7}, ${Q.value} ${G.value.left/2+7}, ${Q.value} Z`:`M ${G.value.left/2+6}, ${Q.value+7} ${G.value.left/2-7}, ${Q.value} ${G.value.left/2-7}, ${Q.value+14} Z`},null,8,ze)),h(P)?(d(),u(`rect`,{key:6,x:G.value.left/2-A.value.fontSize-2,y:U.value/2+A.value.fontSize-2,width:A.value.fontSize*2,height:A.value.fontSize,fill:`#6A6A6A80`,rx:`3`},null,8,Be)):l(``,!0),!T.value&&!h(P)?(d(),u(`text`,{key:7,class:`vue-ui-sparktrend-progress-label`,x:G.value.left/2,y:U.value/2+A.value.fontSize*2,"text-anchor":`middle`,fill:A.value.useColorTrend?Z.value:A.value.color,"font-size":A.value.fontSize,"font-weight":A.value.bold?`bold`:`normal`},m(h(r)({p:Y.value>0?`+`:``,v:Y.value,s:`%`,r:A.value.rounding})),9,Ve)):l(``,!0),J.value.length&&J.value.at(-1).x!==void 0?(d(),u(`circle`,{key:8,stroke:N.value.backgroundColor,"stroke-width":2,cx:J.value.at(-1).x,cy:J.value.at(-1).y,r:4,fill:h(P)?`#6A6A6A`:Z.value},null,8,He)):l(``,!0),J.value.length&&J.value.at(-1).x!==void 0&&k.value.show?(d(),u(`text`,{key:9,"text-anchor":`middle`,x:J.value.at(-1).x,y:J.value.at(-1).y-k.value.fontSize/1.5,"font-size":k.value.fontSize,fill:k.value.useColorTrend?Z.value:k.value.color,"font-weight":k.value.bold?`bold`:`normal`},m(h(ie)(k.value.formatter,J.value.at(-1).value,h(r)({p:k.value.prefix,v:J.value.at(-1).value,s:k.value.suffix,r:k.value.rounding}),{datapoint:J.value.at(-1)})),9,Ue)):l(``,!0)],8,je)),e.$slots.source?(d(),u(`div`,{key:0,ref_key:`source`,ref:b,dir:`auto`},[p(e.$slots,`source`,{},void 0,!0)],512)):l(``,!0),p(e.$slots,`skeleton`,{},()=>[h(P)?(d(),ye(ge,{key:0})):l(``,!0)],!0)],12,ke))}},[[`__scopeId`,`data-v-c60cf883`]]);export{Oe as n,_ as t};
|