/* Highcharts JS v11.1.0 (2023-06-05) Wind barb series module (c) 2010-2021 Torstein Honsi License: www.highcharts.com/license */ 'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/windbarb",["highcharts"],function(f){a(f);a.Highcharts=f;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function f(a,h,q,f){a.hasOwnProperty(h)||(a[h]=f.apply(null,q),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:h,module:a[h]}})))}a=a?a._modules: {};f(a,"Extensions/DataGrouping/ApproximationRegistry.js",[],function(){return{}});f(a,"Series/OnSeriesComposition.js",[a["Series/Column/ColumnSeries.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,h,f){const {prototype:q}=a,{prototype:r}=h,{defined:w,stableSort:x}=f;var p;(function(a){function h(a){return r.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,a)}function p(){q.translate.apply(this);const a=this;var g=a.options,m=a.chart;const e=a.points; var d=g.onSeries;const c=(d=d&&m.get(d))&&d.options.step,b=d&&d.points,h=m.inverted,f=a.xAxis,p=a.yAxis;m=e.length-1;let l;g=g.onKey||"y";let t=b&&b.length,r=0,n,u,v,y;if(d&&d.visible&&t){r=(d.pointXOffset||0)+(d.barW||0)/2;var k=d.currentDataGrouping;u=b[t-1].x+(k?k.totalRange:0);x(e,(a,b)=>a.x-b.x);for(g="plot"+g[0].toUpperCase()+g.substr(1);t--&&e[m]&&!(n=b[t],k=e[m],k.y=n.y,n.x<=k.x&&"undefined"!==typeof n[g]&&(k.x<=u&&(k.plotY=n[g],n.xm)););}e.forEach((b,c)=>{let m;b.plotX+=r;if("undefined"===typeof b.plotY||h)0<=b.plotX&&b.plotX<=f.len?h?(b.plotY=f.translate(b.x,0,1,0,1),b.plotX=w(b.y)?p.translate(b.y,0,0,0,1):0):b.plotY=(f.opposite?0:a.yAxis.len)+f.offset:b.shapeArgs={};(l=e[c-1])&&l.plotX===b.plotX&&("undefined"===typeof l.stackIndex&&(l.stackIndex=0),m=l.stackIndex+1);b.stackIndex=m});this.onSeries=d}const l=[];a.compose=function(a){if(f.pushUnique(l,a)){const g= a.prototype;g.getPlotBox=h;g.translate=p}return a};a.getPlotBox=h;a.translate=p})(p||(p={}));return p});f(a,"Series/Windbarb/WindbarbPoint.js",[a["Core/Utilities.js"],a["Series/Column/ColumnSeries.js"]],function(a,f){const {isNumber:h}=a;class l extends f.prototype.pointClass{constructor(){super(...arguments);this.series=this.options=this.direction=this.beaufortLevel=this.beaufort=void 0}isValid(){return h(this.value)&&0<=this.value}}return l});f(a,"Series/Windbarb/WindbarbSeries.js",[a["Core/Animation/AnimationUtilities.js"], a["Extensions/DataGrouping/ApproximationRegistry.js"],a["Core/Globals.js"],a["Series/OnSeriesComposition.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"],a["Series/Windbarb/WindbarbPoint.js"]],function(a,f,q,l,r,z,x){const {animObject:h}=a,{series:w,seriesTypes:{column:u}}=r,{extend:B,merge:C,pick:A}=z;class g extends u{constructor(){super(...arguments);this.points=this.options=this.data=void 0}static registerApproximation(){f.windbarb||(f.windbarb=function(a,e){let d=0,c=0,b,m=a.length; for(b=0;b\u25cf {series.name}: {point.value} ({point.beaufort})
'},vectorLength:20,colorKey:"value",yOffset:-20,xOffset:0});l.compose(g);B(g.prototype,{beaufortFloor:[0,.3,1.6,3.4,5.5,8,10.8,13.9,17.2,20.8,24.5,28.5,32.7],beaufortName:"Calm;Light air;Light breeze;Gentle breeze;Moderate breeze;Fresh breeze;Strong breeze;Near gale;Gale;Strong gale;Storm;Violent storm;Hurricane".split(";"), invertible:!1,parallelArrays:["x","value","direction"],pointArrayMap:["value","direction"],pointClass:x,trackerGroups:["markerGroup"],translate:function(){const a=this.beaufortFloor,e=this.beaufortName;l.translate.call(this);this.points.forEach(function(d){let c=0;for(;cd.value);c++);d.beaufortLevel=c-1;d.beaufort=e[c-1]})}});g.registerApproximation();r.registerSeriesType("windbarb",g);"";return g});f(a,"masters/modules/windbarb.src.js",[],function(){})}); //# sourceMappingURL=windbarb.js.map