/*
 Highcharts JS v10.3.1 (2022-10-31)

 Series on point module

 (c) 2010-2022 Highsoft AS
 Author: Rafal Sebestjanski and Piotr Madej

 License: www.highcharts.com/license
*/
(function(c){"object"===typeof module&&module.exports?(c["default"]=c,module.exports=c):"function"===typeof define&&define.amd?define("highcharts/modules/series-on-point",["highcharts"],function(g){c(g);c.Highcharts=g;return c}):c("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(c){function g(c,d,a,g){c.hasOwnProperty(d)||(c[d]=g.apply(null,a),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:d,module:c[d]}})))}var a=c?c._modules:
{};g(a,"Series/SeriesOnPointComposition.js",[a["Core/Series/Point.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(c,d,a,g,h){a=a.seriesTypes;var n=a.bubble,q=a.pie,k=h.addEvent,l=h.defined,r=h.find,t=h.isNumber,m;(function(a){var h=[];a.compose=function(c,p){var b=m.prototype,e=b.chartGetZData,f=b.seriesAfterInit,a=b.seriesAfterRender,u=b.seriesGetCenter,g=b.seriesShowOrHide;b=b.seriesTranslate;q.prototype.onPointSupported=
!0;-1===h.indexOf(c)&&(h.push(c),k(d,"afterInit",f),k(d,"afterRender",a),k(d,"afterGetCenter",u),k(d,"hide",g),k(d,"show",g),k(d,"translate",b));-1===h.indexOf(p)&&(h.push(p),k(p,"beforeRender",e),k(p,"beforeRedraw",e));return c};var m=function(){function a(a){this.getRadii=n.prototype.getRadii;this.getRadius=n.prototype.getRadius;this.getPxExtremes=n.prototype.getPxExtremes;this.getZExtremes=n.prototype.getZExtremes;this.chart=a.chart;this.series=a;this.options=a.options.onPoint}a.prototype.drawConnector=
function(){this.connector||(this.connector=this.series.chart.renderer.path().addClass("highcharts-connector-seriesonpoint").attr({zIndex:-1}).add(this.series.markerGroup));var a=this.getConnectorAttributes();a&&this.connector.animate(a)};a.prototype.getConnectorAttributes=function(){var a=this.series.chart,b=this.options;if(b){var e=b.connectorOptions||{},f=b.position,d=a.get(b.id);if(d instanceof c&&f&&l(d.plotX)&&l(d.plotY)){b=l(f.x)?f.x:d.plotX;var h=l(f.y)?f.y:d.plotY,k=e.width||1;d=e.stroke||
this.series.color;e=e.dashstyle;f={d:g.prototype.crispLine([["M",b,h],["L",b+(f.offsetX||0),h+(f.offsetY||0)]],k,"ceil"),"stroke-width":k};a.styledMode||(f.stroke=d,f.dashstyle=e);return f}}};a.prototype.seriesAfterInit=function(){this.onPointSupported&&this.options.onPoint&&(this.useMapGeometry=this.bubblePadding=!0,this.onPoint=new a(this))};a.prototype.seriesAfterRender=function(){delete this.chart.bubbleZExtremes;this.onPoint&&this.onPoint.drawConnector()};a.prototype.seriesGetCenter=function(a){var b=
this.options.onPoint,e=a.positions;if(b){var f=this.chart.get(b.id);f instanceof c&&l(f.plotX)&&l(f.plotY)&&(e[0]=f.plotX,e[1]=f.plotY);if(b=b.position)l(b.x)&&(e[0]=b.x),l(b.y)&&(e[1]=b.y),b.offsetX&&(e[0]+=b.offsetX),b.offsetY&&(e[1]+=b.offsetY)}b=this.radii&&this.radii[this.index];t(b)&&(e[2]=2*b);a.positions=e};a.prototype.seriesShowOrHide=function(){var a=this.chart.series;this.points.forEach(function(b){var c=r(a,function(a){return(a=((a.onPoint||{}).options||{}).id)?a===b.id:!1});c&&c.setVisible(!c.visible,
!1)})};a.prototype.seriesTranslate=function(){this.onPoint&&(this.onPoint.getRadii(),this.radii=this.onPoint.radii)};a.prototype.chartGetZData=function(){var a=[];this.series.forEach(function(b){b=b.options.onPoint;a.push(b&&b.z?b.z:null)});this.series.forEach(function(b){b.onPoint&&(b.onPoint.zData=b.zData=a)})};return a}();a.Additions=m})(m||(m={}));"";return m});g(a,"masters/modules/series-on-point.src.js",[a["Series/SeriesOnPointComposition.js"]],function(a){a.compose(c.Series,c.Chart)})});
//# sourceMappingURL=series-on-point.js.map