corrade-nucleus-nucleons – Diff between revs 1 and 11

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 1 Rev 11
Line 1... Line 1...
1 /* 1 /*
2 Highcharts JS v5.0.10 (2017-03-31) 2 Highcharts JS v5.0.12 (2017-05-24)
Line 3... Line 3...
3   3  
Line 4... Line 4...
4 (c) 2009-2016 Torstein Honsi 4 (c) 2009-2016 Torstein Honsi
5   5  
6 License: www.highcharts.com/license 6 License: www.highcharts.com/license
7 */ 7 */
8 (function(w){"object"===typeof module&&module.exports?module.exports=w:w(Highcharts)})(function(w){(function(a){function n(a,c){this.init(a,c)}var r=a.CenteredSeriesMixin,u=a.each,h=a.extend,e=a.merge,m=a.splat;h(n.prototype,{coll:"pane",init:function(a,c){this.chart=c;this.background=[];c.pane.push(this);this.setOptions(a)},setOptions:function(a){this.options=e(this.defaultOptions,this.chart.angular?{background:{}}:void 0,a)},render:function(){var a=this.options,c=this.options.background,d=this.chart.renderer; 8 (function(v){"object"===typeof module&&module.exports?module.exports=v:v(Highcharts)})(function(v){(function(a){function n(a,c){this.init(a,c)}var r=a.CenteredSeriesMixin,u=a.each,h=a.extend,f=a.merge,k=a.splat;h(n.prototype,{coll:"pane",init:function(a,c){this.chart=c;this.background=[];c.pane.push(this);this.setOptions(a)},setOptions:function(a){this.options=f(this.defaultOptions,this.chart.angular?{background:{}}:void 0,a)},render:function(){var a=this.options,c=this.options.background,e=this.chart.renderer;
9 this.group||(this.group=d.g("pane-group").attr({zIndex:a.zIndex||0}).add());this.updateCenter();if(c)for(c=m(c),a=Math.max(c.length,this.background.length||0),d=0;d<a;d++)c[d]?this.renderBackground(e(this.defaultBackgroundOptions,c[d]),d):this.background[d]&&(this.background[d]=this.background[d].destroy(),this.background.splice(d,1))},renderBackground:function(a,c){var d="animate";this.background[c]||(this.background[c]=this.chart.renderer.path().add(this.group),d="attr");this.background[c][d]({d:this.axis.getPlotBandPath(a.from, 9 this.group||(this.group=e.g("pane-group").attr({zIndex:a.zIndex||0}).add());this.updateCenter();if(c)for(c=k(c),a=Math.max(c.length,this.background.length||0),e=0;e<a;e++)c[e]&&this.axis?this.renderBackground(f(this.defaultBackgroundOptions,c[e]),e):this.background[e]&&(this.background[e]=this.background[e].destroy(),this.background.splice(e,1))},renderBackground:function(a,c){var e="animate";this.background[c]||(this.background[c]=this.chart.renderer.path().add(this.group),e="attr");this.background[c][e]({d:this.axis.getPlotBandPath(a.from,
10 a.to,a)}).attr({"class":"highcharts-pane "+(a.className||"")})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{shape:"circle",from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},updateCenter:function(a){this.center=(a||this.axis||{}).center=r.getCenter.call(this)},update:function(a,c){e(!0,this.options,a);this.setOptions(this.options);this.render();u(this.chart.axes,function(d){d.pane===this&&(d.pane=null,d.update({},c))},this)}}); 10 a.to,a)}).attr({"class":"highcharts-pane "+(a.className||"")})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{shape:"circle",from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},updateCenter:function(a){this.center=(a||this.axis||{}).center=r.getCenter.call(this)},update:function(a,c){f(!0,this.options,a);this.setOptions(this.options);this.render();u(this.chart.axes,function(e){e.pane===this&&(e.pane=null,e.update({},c))},this)}});
11 a.Pane=n})(w);(function(a){var n=a.each,r=a.extend,u=a.map,h=a.merge,e=a.noop,m=a.pick,q=a.pInt,c=a.wrap,d,g,k=a.Axis.prototype;a=a.Tick.prototype;d={getOffset:e,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:e,setCategories:e,setTitle:e};g={defaultRadialGaugeOptions:{labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0}, 11 a.Pane=n})(v);(function(a){var n=a.each,r=a.extend,u=a.map,h=a.merge,f=a.noop,k=a.pick,p=a.pInt,c=a.wrap,e,g,l=a.Axis.prototype;a=a.Tick.prototype;e={getOffset:f,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:f,setCategories:f,setTitle:f};g={defaultRadialGaugeOptions:{labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},
12 zIndex:2},defaultRadialXOptions:{gridLineWidth:1,labels:{align:null,distance:15,x:0,y:null},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},defaultRadialYOptions:{gridLineInterpolation:"circle",labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(b){b=this.options=h(this.defaultOptions,this.defaultRadialOptions,b);b.plotBands||(b.plotBands=[])},getOffset:function(){k.getOffset.call(this);this.chart.axisOffset[this.side]=0},getLinePath:function(b, 12 zIndex:2},defaultRadialXOptions:{gridLineWidth:1,labels:{align:null,distance:15,x:0,y:null},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},defaultRadialYOptions:{gridLineInterpolation:"circle",labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(b){b=this.options=h(this.defaultOptions,this.defaultRadialOptions,b);b.plotBands||(b.plotBands=[])},getOffset:function(){l.getOffset.call(this);this.chart.axisOffset[this.side]=0},getLinePath:function(b,
13 f){b=this.center;var c=this.chart,d=m(f,b[2]/2-this.offset);this.isCircular||void 0!==f?f=this.chart.renderer.symbols.arc(this.left+b[0],this.top+b[1],d,d,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0}):(f=this.postTranslate(this.angleRad,d),f=["M",b[0]+c.plotLeft,b[1]+c.plotTop,"L",f.x,f.y]);return f},setAxisTranslation:function(){k.setAxisTranslation.call(this);this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.center[2]/ 13 d){b=this.center;var c=this.chart,e=k(d,b[2]/2-this.offset);this.isCircular||void 0!==d?d=this.chart.renderer.symbols.arc(this.left+b[0],this.top+b[1],e,e,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0}):(d=this.postTranslate(this.angleRad,e),d=["M",b[0]+c.plotLeft,b[1]+c.plotTop,"L",d.x,d.y]);return d},setAxisTranslation:function(){l.setAxisTranslation.call(this);this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.center[2]/
14 2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)},beforeSetTickPositions:function(){if(this.autoConnect=this.isCircular&&void 0===m(this.userMax,this.options.max)&&this.endAngleRad-this.startAngleRad===2*Math.PI)this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0},setAxisSize:function(){k.setAxisSize.call(this);this.isRadial&&(this.pane.updateCenter(this),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width= 14 2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)},beforeSetTickPositions:function(){if(this.autoConnect=this.isCircular&&void 0===k(this.userMax,this.options.max)&&this.endAngleRad-this.startAngleRad===2*Math.PI)this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0},setAxisSize:function(){l.setAxisSize.call(this);this.isRadial&&(this.pane.updateCenter(this),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=
15 this.height=this.center[2]*m(this.sector,1)/2)},getPosition:function(b,f){return this.postTranslate(this.isCircular?this.translate(b):this.angleRad,m(this.isCircular?f:this.translate(b),this.center[2]/2)-this.offset)},postTranslate:function(b,f){var c=this.chart,d=this.center;b=this.startAngleRad+b;return{x:c.plotLeft+d[0]+Math.cos(b)*f,y:c.plotTop+d[1]+Math.sin(b)*f}},getPlotBandPath:function(b,f,c){var d=this.center,p=this.startAngleRad,a=d[2]/2,g=[m(c.outerRadius,"100%"),c.innerRadius,m(c.thickness, 15 this.height=this.center[2]*k(this.sector,1)/2)},getPosition:function(b,d){return this.postTranslate(this.isCircular?this.translate(b):this.angleRad,k(this.isCircular?d:this.translate(b),this.center[2]/2)-this.offset)},postTranslate:function(b,d){var c=this.chart,e=this.center;b=this.startAngleRad+b;return{x:c.plotLeft+e[0]+Math.cos(b)*d,y:c.plotTop+e[1]+Math.sin(b)*d}},getPlotBandPath:function(b,d,c){var e=this.center,q=this.startAngleRad,a=e[2]/2,g=[k(c.outerRadius,"100%"),c.innerRadius,k(c.thickness,
16 10)],k=Math.min(this.offset,0),e=/%$/,x,h=this.isCircular;"polygon"===this.options.gridLineInterpolation?d=this.getPlotLinePath(b).concat(this.getPlotLinePath(f,!0)):(b=Math.max(b,this.min),f=Math.min(f,this.max),h||(g[0]=this.translate(b),g[1]=this.translate(f)),g=u(g,function(b){e.test(b)&&(b=q(b,10)*a/100);return b}),"circle"!==c.shape&&h?(b=p+this.translate(b),f=p+this.translate(f)):(b=-Math.PI/2,f=1.5*Math.PI,x=!0),g[0]-=k,g[2]-=k,d=this.chart.renderer.symbols.arc(this.left+d[0],this.top+d[1], 16 10)],l=Math.min(this.offset,0),f=/%$/,y,h=this.isCircular;"polygon"===this.options.gridLineInterpolation?e=this.getPlotLinePath(b).concat(this.getPlotLinePath(d,!0)):(b=Math.max(b,this.min),d=Math.min(d,this.max),h||(g[0]=this.translate(b),g[1]=this.translate(d)),g=u(g,function(b){f.test(b)&&(b=p(b,10)*a/100);return b}),"circle"!==c.shape&&h?(b=q+this.translate(b),d=q+this.translate(d)):(b=-Math.PI/2,d=1.5*Math.PI,y=!0),g[0]-=l,g[2]-=l,e=this.chart.renderer.symbols.arc(this.left+e[0],this.top+e[1],
17 g[0],g[0],{start:Math.min(b,f),end:Math.max(b,f),innerR:m(g[1],g[0]-g[2]),open:x}));return d},getPlotLinePath:function(b,f){var c=this,d=c.center,g=c.chart,a=c.getPosition(b),k,q,e;c.isCircular?e=["M",d[0]+g.plotLeft,d[1]+g.plotTop,"L",a.x,a.y]:"circle"===c.options.gridLineInterpolation?(b=c.translate(b))&&(e=c.getLinePath(0,b)):(n(g.xAxis,function(b){b.pane===c.pane&&(k=b)}),e=[],b=c.translate(b),d=k.tickPositions,k.autoConnect&&(d=d.concat([d[0]])),f&&(d=[].concat(d).reverse()),n(d,function(c,d){q= 17 g[0],g[0],{start:Math.min(b,d),end:Math.max(b,d),innerR:k(g[1],g[0]-g[2]),open:y}));return e},getPlotLinePath:function(b,c){var e=this,d=e.center,g=e.chart,a=e.getPosition(b),l,p,f;e.isCircular?f=["M",d[0]+g.plotLeft,d[1]+g.plotTop,"L",a.x,a.y]:"circle"===e.options.gridLineInterpolation?(b=e.translate(b))&&(f=e.getLinePath(0,b)):(n(g.xAxis,function(b){b.pane===e.pane&&(l=b)}),f=[],b=e.translate(b),d=l.tickPositions,l.autoConnect&&(d=d.concat([d[0]])),c&&(d=[].concat(d).reverse()),n(d,function(e,d){p=
18 k.getPosition(c,b);e.push(d?"L":"M",q.x,q.y)}));return e},getTitlePosition:function(){var b=this.center,c=this.chart,d=this.options.title;return{x:c.plotLeft+b[0]+(d.x||0),y:c.plotTop+b[1]-{high:.5,middle:.25,low:0}[d.align]*b[2]+(d.y||0)}}};c(k,"init",function(b,c,a){var f=c.angular,l=c.polar,p=a.isX,k=f&&p,e,q=c.options,x=this.pane=c.pane[a.pane||0],n=x.options;if(f){if(r(this,k?d:g),e=!p)this.defaultRadialOptions=this.defaultRadialGaugeOptions}else l&&(r(this,g),this.defaultRadialOptions=(e=p)? 18 l.getPosition(e,b);f.push(d?"L":"M",p.x,p.y)}));return f},getTitlePosition:function(){var b=this.center,e=this.chart,c=this.options.title;return{x:e.plotLeft+b[0]+(c.x||0),y:e.plotTop+b[1]-{high:.5,middle:.25,low:0}[c.align]*b[2]+(c.y||0)}}};c(l,"init",function(b,c,a){var d=c.angular,q=c.polar,l=a.isX,f=d&&l,p,F=c.options,y=this.pane=c.pane[a.pane||0],n=y.options;if(d){if(r(this,f?e:g),p=!l)this.defaultRadialOptions=this.defaultRadialGaugeOptions}else q&&(r(this,g),this.defaultRadialOptions=(p=l)?
19 this.defaultRadialXOptions:h(this.defaultYAxisOptions,this.defaultRadialYOptions));f||l?(this.isRadial=!0,c.inverted=!1,q.chart.zoomType=null):this.isRadial=!1;e&&(x.axis=this);b.call(this,c,a);k||!f&&!l||(b=this.options,this.angleRad=(b.angle||0)*Math.PI/180,this.startAngleRad=(n.startAngle-90)*Math.PI/180,this.endAngleRad=(m(n.endAngle,n.startAngle+360)-90)*Math.PI/180,this.offset=b.offset||0,this.isCircular=e)});c(k,"autoLabelAlign",function(b){if(!this.isRadial)return b.apply(this,[].slice.call(arguments, 19 this.defaultRadialXOptions:h(this.defaultYAxisOptions,this.defaultRadialYOptions));d||q?(this.isRadial=!0,c.inverted=!1,F.chart.zoomType=null):this.isRadial=!1;p&&(y.axis=this);b.call(this,c,a);f||!d&&!q||(b=this.options,this.angleRad=(b.angle||0)*Math.PI/180,this.startAngleRad=(n.startAngle-90)*Math.PI/180,this.endAngleRad=(k(n.endAngle,n.startAngle+360)-90)*Math.PI/180,this.offset=b.offset||0,this.isCircular=p)});c(l,"autoLabelAlign",function(b){if(!this.isRadial)return b.apply(this,[].slice.call(arguments,
20 1))});c(a,"getPosition",function(b,c,d,g,a){var f=this.axis;return f.getPosition?f.getPosition(d):b.call(this,c,d,g,a)});c(a,"getLabelPosition",function(b,c,d,g,a,k,e,q,h){var f=this.axis,p=k.y,l=20,v=k.align,t=(f.translate(this.pos)+f.startAngleRad+Math.PI/2)/Math.PI*180%360;f.isRadial?(b=f.getPosition(this.pos,f.center[2]/2+m(k.distance,-25)),"auto"===k.rotation?g.attr({rotation:t}):null===p&&(p=f.chart.renderer.fontMetrics(g.styles.fontSize).b-g.getBBox().height/2),null===v&&(f.isCircular?(this.label.getBBox().width> 20 1))});c(a,"getPosition",function(b,c,e,g,a){var d=this.axis;return d.getPosition?d.getPosition(e):b.call(this,c,e,g,a)});c(a,"getLabelPosition",function(b,c,e,g,a,l,p,f,h){var d=this.axis,q=l.y,m=20,t=l.align,x=(d.translate(this.pos)+d.startAngleRad+Math.PI/2)/Math.PI*180%360;d.isRadial?(b=d.getPosition(this.pos,d.center[2]/2+k(l.distance,-25)),"auto"===l.rotation?g.attr({rotation:x}):null===q&&(q=d.chart.renderer.fontMetrics(g.styles.fontSize).b-g.getBBox().height/2),null===t&&(d.isCircular?(this.label.getBBox().width>
21 f.len*f.tickInterval/(f.max-f.min)&&(l=0),v=t>l&&t<180-l?"left":t>180+l&&t<360-l?"right":"center"):v="center",g.attr({align:v})),b.x+=k.x,b.y+=p):b=b.call(this,c,d,g,a,k,e,q,h);return b});c(a,"getMarkPath",function(b,c,d,g,a,k,e){var f=this.axis;f.isRadial?(b=f.getPosition(this.pos,f.center[2]/2+g),c=["M",c,d,"L",b.x,b.y]):c=b.call(this,c,d,g,a,k,e);return c})})(w);(function(a){var n=a.each,r=a.noop,u=a.pick,h=a.Series,e=a.seriesType,m=a.seriesTypes;e("arearange","area",{marker:null,threshold:null, 21 d.len*d.tickInterval/(d.max-d.min)&&(m=0),t=x>m&&x<180-m?"left":x>180+m&&x<360-m?"right":"center"):t="center",g.attr({align:t})),b.x+=l.x,b.y+=q):b=b.call(this,c,e,g,a,l,p,f,h);return b});c(a,"getMarkPath",function(b,c,e,g,a,l,p){var d=this.axis;d.isRadial?(b=d.getPosition(this.pos,d.center[2]/2+g),c=["M",c,e,"L",b.x,b.y]):c=b.call(this,c,e,g,a,l,p);return c})})(v);(function(a){var n=a.each,r=a.noop,u=a.pick,h=a.Series,f=a.seriesType,k=a.seriesTypes;f("arearange","area",{marker:null,threshold:null,
22   22  
23   23  
24   24  
25   25  
26   26  
27   27  
28 <180-l?"left":t><360-l?"right":"center"):v="center",g.attr({align:v})),b.x+=k.x,b.y+=p):b=b.call(this,c,d,g,a,k,e,q,h);return b});c(a,"getMarkPath",function(b,c,d,g,a,k,e){var f=this.axis;f.isRadial?(b=f.getPosition(this.pos,f.center[2]/m("columnrange","arearange",u(n.column,n.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var c=this,d=c.yAxis,a=c.xAxis,k=a.startAngleRad,b,f=c.chart,p=c.xAxis.isRadial,v;q.translate.apply(c);r(c.points,function(g){var l=g.shapeArgs,t=c.options.minPointLength,h,m;g.plotHigh=v=d.translate(g.high,0,1,0,1);g.plotLow=g.plotY;m=v;h=e(g.rectPlotY,g.plotY)-v;Math.abs(h)<t?(t-=h,h+=t,m-=t/2):0>h&&(h*=-1,m-=h);p?(b=g.barX+k,g.shapeType="path",g.shapeArgs={d:c.polarArc(m+h,m,b,b+g.pointWidth)}): 28 <180-m?"left":x><360-m?"right":"center"):t="center",g.attr({align:t})),b.x+=l.x,b.y+=q):b=b.call(this,c,e,g,a,l,p,f,h);return b});c(a,"getMarkPath",function(b,c,e,g,a,l,p){var d=this.axis;d.isRadial?(b=d.getPosition(this.pos,d.center[2]/p=a.seriesTypes.column.prototype;k("columnrange","arearange",u(n.column,n.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var c=this,e=c.yAxis,a=c.xAxis,l=a.startAngleRad,b,d=c.chart,q=c.xAxis.isRadial,t;p.translate.apply(c);r(c.points,function(g){var m=g.shapeArgs,w=c.options.minPointLength,h,k;g.plotHigh=t=e.translate(g.high,0,1,0,1);g.plotLow=g.plotY;k=t;h=f(g.rectPlotY,g.plotY)-t;Math.abs(h)<w?(w-=h,h+=w,k-=w/2):0>h&&(h*=-1,k-=h);q?(b=g.barX+l,g.shapeType="path",g.shapeArgs={d:c.polarArc(k+
29   29  
30   30  
31   31  
32   32  
33   33  
34   34  
35   35  
36   36  
37   37  
38   38  
39   39  
40   40  
41   41  
42   42  
43   43  
44   44  
45   45  
46   46  
47   47  
48   48  
49   49  
50   50  
51   51  
52   52  
53   53  
54   54  
55   55  
56   56  
57   57  
58   58