/** * Highcharts JS v11.2.0 (2023-10-30) * * Highcharts funnel module * * (c) 2010-2021 Kacper Madej * * License: www.highcharts.com/license */!function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/modules/funnel3d",["highcharts","highcharts/highcharts-3d","highcharts/modules/cylinder"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function r(t,e,r,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,r),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}r(e,"Series/Funnel3D/SVGElement3DFunnel.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(t,e,r,i){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=t.parse,a=e.charts,h=r.getRendererType().prototype.Element3D,d=i.merge;return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.mainParts=["top","bottom"],e.parts=["top","bottom","frontUpper","backUpper","frontLower","backLower","rightUpper","rightLower"],e.sideGroups=["upperGroup","lowerGroup"],e.sideParts={upperGroup:["frontUpper","backUpper","rightUpper"],lowerGroup:["frontLower","backLower","rightLower"]},e.pathType="funnel3d",e}return o(e,t),e.prototype.opacitySetter=function(t,e,r){var i=parseFloat(t),n=this.parts,o=a[this.renderer.chartIndex],s="group-opacity-"+i+"-"+o.index;if(this.parts=this.mainParts,this.singleSetterForParts("opacity",i),this.parts=n,!o.renderer.filterId){o.renderer.definition({tagName:"filter",attributes:{id:s},children:[{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"table",tableValues:"0 "+i}}]}]});for(var h=0,d=this.sideGroups;hf(this.translatedThreshold,this.yAxis.len),s=f(r.inside,!!this.options.stacking),a={x:i.x,y:i.y,height:0};r.align=f(r.align,!n||s?"center":o?"right":"left"),r.verticalAlign=f(r.verticalAlign,n||s?"middle":o?"top":"bottom"),"top"!==r.verticalAlign&&(a.y+=i.bottom/("bottom"===r.verticalAlign?1:2)),a.width=this.getWidthAt(a.y),this.options.reversed&&(a.width=i.fullWidth-a.width),s?a.x-=a.width/2:"left"===r.align?(r.align="right",a.x-=1.5*a.width):"right"===r.align?(r.align="left",a.x+=a.width/2):a.x-=a.width/2,t.dlBox=a,u.prototype.alignDataLabel.apply(this,arguments)},i.prototype.bindAxes=function(){p.prototype.bindAxes.apply(this,arguments),c(this.xAxis.options,{gridLineWidth:0,lineWidth:0,title:void 0,tickPositions:[]}),g(!0,this.yAxis.options,{gridLineWidth:0,title:void 0,labels:{enabled:!1}})},i.prototype.translate=function(){p.prototype.translate.apply(this,arguments);var t,e,r,i,n,o,s,a,h,d=this.chart,u=this.options,g=u.reversed,w=u.ignoreHiddenPoint,x=d.plotWidth,m=d.plotHeight,v=u.center,b=y(v[0],x),C=y(v[1],m),S=y(u.width,x),F=y(u.height,m),j=y(u.neckWidth,x),_=y(u.neckHeight,m),U=C-F/2+F-_,L=this.data,G=0,A=0;this.getWidthAt=e=function(t){return t>U||F===_?j:j+(S-j)*(1-(t-(C-F/2))/(F-_))},this.center=[b,C,F],this.centerX=b;for(var D=0;D=U?h.isCylinder=!0:o>U&&(s=o,t=e(U),o=U,h.bottom.width=t,h.middle={fraction:a?(U-n)/a:0,width:t}),g&&(h.y=n=C+F/2-(A+r)*F,h.middle&&(h.middle.fraction=1-(a?h.middle.fraction:0)),t=h.width,h.width=h.bottom.width,h.bottom.width=t),E.shapeArgs=c(E.shapeArgs,h),E.percentage=100*r,E.plotX=b,g?E.plotY=C+F/2-(A+r/2)*F:E.plotY=(n+(s||o))/2,i=l([{x:b,y:E.plotY,z:g?-(S-e(E.plotY))/2:-e(E.plotY)/2}],d,!0)[0],E.tooltipPos=[i.x,i.y],E.dlBoxRaw={x:b,width:e(E.plotY),y:n,bottom:h.height||0,fullWidth:S},w&&!1===E.visible||(A+=r)}},i.compose=t.compose,i.defaultOptions=g(u.defaultOptions,e),i}(u);return c(w.prototype,{pointClass:r,translate3dShapes:d}),o.registerSeriesType("funnel3d",w),w}),r(e,"masters/modules/funnel3d.src.js",[e["Core/Renderer/RendererRegistry.js"],e["Series/Funnel3D/Funnel3DSeries.js"]],function(t,e){return e.compose(t.getRendererType()),e})});//# sourceMappingURL=funnel3d.js.map