/* Highcharts JS v8.0.0 (2019-12-10) 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(e){a(e);a.Highcharts=e;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function e(a,e,n,g){a.hasOwnProperty(e)||(a[e]=g.apply(null,n))}a=a?a._modules:{};e(a,"modules/dependency-wheel.src.js",[a["parts/Globals.js"],a["parts/Utilities.js"]],function(a, e){var n=e.animObject,g=a.seriesTypes.sankey.prototype;a.seriesType("dependencywheel","sankey",{center:[null,null],curveFactor:.6,startAngle:0},{orderNodes:!1,getCenter:a.seriesTypes.pie.prototype.getCenter,createNodeColumns:function(){var a=[this.createNodeColumn()];this.nodes.forEach(function(c){c.column=0;a[0].push(c)});return a},getNodePadding:function(){return this.options.nodePadding/Math.PI},createNode:function(a){var c=g.createNode.call(this,a);c.index=this.nodes.length-1;c.getSum=function(){return c.linksFrom.concat(c.linksTo).reduce(function(a, c){return a+c.weight},0)};c.offset=function(a){function l(a){return a.fromNode===c?a.toNode:a.fromNode}var p=0,b,h=c.linksFrom.concat(c.linksTo);h.sort(function(a,c){return l(a).index-l(c).index});for(b=0;bc.index){h=h.slice(0,b).reverse().concat(h.slice(b).reverse());var f=!0;break}f||h.reverse();for(b=0;bMath.PI&&(b=2*Math.PI-b);b*=k;bthis.angle||this.angle>Math.PI,g=f.start,b=f.end;this.dataLabelPath||(this.dataLabelPath=c.arc({open:!0}).add(a));this.dataLabelPath.attr({x:f.x,y:f.y,r:f.r+(this.dataLabel.options.distance||0),start:e? g:b,end:e?b:g,clockwise:+e});return this.dataLabelPath},isValid:function(){return!0}});""});e(a,"masters/modules/dependency-wheel.src.js",[],function(){})}); //# sourceMappingURL=dependency-wheel.js.map