UNPKG

@progress/kendo-vue-charts

Version:
9 lines (8 loc) 1.25 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),a=require("./Crosshair.js"),l=["categoryAxis","valueAxis","xAxis","yAxis"];function c(e){const t={};for(let i=0;i<l.length;i++){const s=p(e,l[i]);for(let o=0;o<s.length;o++){const n=s[o];t[n.name+n.index]=n}}return t}function p(e,t){const i=[];if(e[t]){const s=[].concat(e[t]);for(let o=0;o<s.length;o++){const n=(s[o].crosshair||{}).tooltip;n&&n.visible&&i.push({index:o,name:t})}}return i}const u=r.defineComponent({name:"KendoCrosshairContainer",props:{optionsState:Object},computed:{tooltips(){return c(this.optionsState)}},render(){const e=Object.keys(this.tooltips).map(function(t){return r.createVNode(a.CrosshairTooltip,{index:this.tooltips[t].index,name:this.tooltips[t].name,key:t},null)},this);return r.createVNode("div",null,[e])}});exports.CrosshairContainer=u;