/* Highcharts JS v8.2.2 (2020-10-22) Dependency wheel module (c) 2010-2018 Torstein Honsi License: www.highcharts.com/license */ (function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/dependency-wheel",["highcharts","highcharts/modules/sankey"],function(f){a(f);a.Highcharts=f;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function f(a,k,f,n){a.hasOwnProperty(k)||(a[k]=n.apply(null,f))}a=a?a._modules:{};f(a,"Series/DependencyWheelSeries.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Series/Series.js"], a["Core/Globals.js"],a["Mixins/Nodes.js"]],function(a,f,r,n){var k=a.animObject,q=f.seriesTypes.sankey.prototype;f.seriesType("dependencywheel","sankey",{center:[null,null],curveFactor:.6,startAngle:0},{orderNodes:!1,getCenter:f.seriesTypes.pie.prototype.getCenter,createNodeColumns:function(){var a=[this.createNodeColumn()];this.nodes.forEach(function(b){b.column=0;a[0].push(b)});return a},getNodePadding:function(){return this.options.nodePadding/Math.PI},createNode:function(a){var b=q.createNode.call(this, a);b.index=this.nodes.length-1;b.getSum=function(){return b.linksFrom.concat(b.linksTo).reduce(function(a,b){return a+b.weight},0)};b.offset=function(a){function h(a){return a.fromNode===b?a.toNode:a.fromNode}var d=0,c,g=b.linksFrom.concat(b.linksTo);g.sort(function(a,b){return h(a).index-h(b).index});for(c=0;cb.index){g=g.slice(0,c).reverse().concat(g.slice(c).reverse());var p=!0;break}p||g.reverse();for(c=0;cMath.PI&&(d=2*Math.PI-d);d*=l;dthis.angle||this.angle>Math.PI,d=f.start,c=f.end;this.dataLabelPath||(this.dataLabelPath=b.arc({open:!0}).add(a)); this.dataLabelPath.attr({x:f.x,y:f.y,r:f.r+(this.dataLabel.options.distance||0),start:h?d:c,end:h?c:d,clockwise:+h});return this.dataLabelPath},isValid:function(){return!0}});""});f(a,"masters/modules/dependency-wheel.src.js",[],function(){})}); //# sourceMappingURL=dependency-wheel.js.map