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 Highmaps JS v5.0.10 (2017-03-31) 2 Highmaps JS v5.0.12 (2017-05-24)
3 Highmaps as a plugin for Highcharts 4.1.x or Highstock 2.1.x (x being the patch version of this file) 3 Highmaps as a plugin for Highcharts 4.1.x or Highstock 2.1.x (x being the patch version of this file)
Line 4... Line 4...
4   4  
Line 5... Line 5...
5 (c) 2011-2017 Torstein Honsi 5 (c) 2011-2017 Torstein Honsi
6   6  
7 License: www.highcharts.com/license 7 License: www.highcharts.com/license
8 */ 8 */
9 (function(x){"object"===typeof module&&module.exports?module.exports=x:x(Highcharts)})(function(x){(function(a){var k=a.Axis,m=a.each,h=a.pick;a=a.wrap;a(k.prototype,"getSeriesExtremes",function(a){var c=this.isXAxis,n,u,k=[],l;c&&m(this.series,function(b,a){b.useMapGeometry&&(k[a]=b.xData,b.xData=[])});a.call(this);c&&(n=h(this.dataMin,Number.MAX_VALUE),u=h(this.dataMax,-Number.MAX_VALUE),m(this.series,function(b,a){b.useMapGeometry&&(n=Math.min(n,h(b.minX,n)),u=Math.max(u,h(b.maxX,n)),b.xData=k[a], 9 (function(x){"object"===typeof module&&module.exports?module.exports=x:x(Highcharts)})(function(x){(function(a){var h=a.Axis,l=a.each,d=a.pick;a=a.wrap;a(h.prototype,"getSeriesExtremes",function(a){var g=this.isXAxis,n,u,h=[],m;g&&l(this.series,function(a,b){a.useMapGeometry&&(h[b]=a.xData,a.xData=[])});a.call(this);g&&(n=d(this.dataMin,Number.MAX_VALUE),u=d(this.dataMax,-Number.MAX_VALUE),l(this.series,function(a,b){a.useMapGeometry&&(n=Math.min(n,d(a.minX,n)),u=Math.max(u,d(a.maxX,n)),a.xData=h[b],
10 l=!0)}),l&&(this.dataMin=n,this.dataMax=u))});a(k.prototype,"setAxisTranslation",function(a){var c=this.chart,n=c.plotWidth/c.plotHeight,c=c.xAxis[0],h;a.call(this);"yAxis"===this.coll&&void 0!==c.transA&&m(this.series,function(a){a.preserveAspectRatio&&(h=!0)});if(h&&(this.transA=c.transA=Math.min(this.transA,c.transA),a=n/((c.max-c.min)/(this.max-this.min)),a=1>a?this:c,n=(a.max-a.min)*a.transA,a.pixelPadding=a.len-n,a.minPixelPadding=a.pixelPadding/2,n=a.fixTo)){n=n[1]-a.toValue(n[0],!0);n*=a.transA; 10 m=!0)}),m&&(this.dataMin=n,this.dataMax=u))});a(h.prototype,"setAxisTranslation",function(a){var g=this.chart,n=g.plotWidth/g.plotHeight,g=g.xAxis[0],d;a.call(this);"yAxis"===this.coll&&void 0!==g.transA&&l(this.series,function(a){a.preserveAspectRatio&&(d=!0)});if(d&&(this.transA=g.transA=Math.min(this.transA,g.transA),a=n/((g.max-g.min)/(this.max-this.min)),a=1>a?this:g,n=(a.max-a.min)*a.transA,a.pixelPadding=a.len-n,a.minPixelPadding=a.pixelPadding/2,n=a.fixTo)){n=n[1]-a.toValue(n[0],!0);n*=a.transA;
11 if(Math.abs(n)>a.minPixelPadding||a.min===a.dataMin&&a.max===a.dataMax)n=0;a.minPixelPadding-=n}});a(k.prototype,"render",function(a){a.call(this);this.fixTo=null})})(x);(function(a){var k=a.Axis,m=a.Chart,h=a.color,c,t=a.each,n=a.extend,u=a.isNumber,v=a.Legend,l=a.LegendSymbolMixin,b=a.noop,f=a.merge,e=a.pick,q=a.wrap;c=a.ColorAxis=function(){this.init.apply(this,arguments)};n(c.prototype,k.prototype);n(c.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72, 11 if(Math.abs(n)>a.minPixelPadding||a.min===a.dataMin&&a.max===a.dataMax)n=0;a.minPixelPadding-=n}});a(h.prototype,"render",function(a){a.call(this);this.fixTo=null})})(x);(function(a){var h=a.Axis,l=a.Chart,d=a.color,g,t=a.each,n=a.extend,u=a.isNumber,v=a.Legend,m=a.LegendSymbolMixin,c=a.noop,b=a.merge,e=a.pick,r=a.wrap;g=a.ColorAxis=function(){this.init.apply(this,arguments)};n(g.prototype,h.prototype);n(g.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,
12 startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(k.prototype.keepProps),init:function(a,g){var d="vertical"!==a.options.legend.layout,b;this.coll="colorAxis";b=f(this.defaultColorAxisOptions,{side:d?2:1,reversed:!d},g,{opposite:!d,showEmpty:!1,title:null});k.prototype.init.call(this, 12 startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(h.prototype.keepProps),init:function(a,k){var f="vertical"!==a.options.legend.layout,p;this.coll="colorAxis";p=b(this.defaultColorAxisOptions,{side:f?2:1,reversed:!f},k,{opposite:!f,showEmpty:!1,title:null});h.prototype.init.call(this,
13 a,b);g.dataClasses&&this.initDataClasses(g);this.initStops(g);this.horiz=d;this.zoomEnabled=!1;this.defaultLegendLength=200},tweenColors:function(a,g,d){var b;g.rgba.length&&a.rgba.length?(a=a.rgba,g=g.rgba,b=1!==g[3]||1!==a[3],a=(b?"rgba(":"rgb(")+Math.round(g[0]+(a[0]-g[0])*(1-d))+","+Math.round(g[1]+(a[1]-g[1])*(1-d))+","+Math.round(g[2]+(a[2]-g[2])*(1-d))+(b?","+(g[3]+(a[3]-g[3])*(1-d)):"")+")"):a=g.input||"none";return a},initDataClasses:function(a){var g=this,d,b=0,p=this.chart.options.chart.colorCount, 13 a,p);k.dataClasses&&this.initDataClasses(k);this.initStops();this.horiz=f;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var p,f=0,q=this.chart.options.chart.colorCount,w=this.options,e=a.dataClasses.length;this.dataClasses=p=[];this.legendItems=[];t(a.dataClasses,function(a,k){a=b(a);p.push(a);a.color||("category"===w.dataClassColor?(a.colorIndex=f,f++,f===q&&(f=0)):a.color=d(w.minColor).tweenTo(d(w.maxColor),2>e?.5:k/(e-1)))})},initStops:function(){this.stops=this.options.stops||
14 e=this.options,c=a.dataClasses.length;this.dataClasses=d=[];this.legendItems=[];t(a.dataClasses,function(a,r){a=f(a);d.push(a);a.color||("category"===e.dataClassColor?(a.colorIndex=b,b++,b===p&&(b=0)):a.color=g.tweenColors(h(e.minColor),h(e.maxColor),2>c?.5:r/(c-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];t(this.stops,function(a){a.color=h(a[1])})},setOptions:function(a){k.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker}, 14 [[0,this.options.minColor],[1,this.options.maxColor]];t(this.stops,function(a){a.color=d(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,k=this.chart,f=k.options.legend||{},q,b;a?(this.left=f=a.attr("x"),this.top=q=a.attr("y"),this.width=b=a.attr("width"),this.height=a=a.attr("height"),this.right=k.chartWidth-f-b,this.bottom=k.chartHeight-q-a,this.len=this.horiz?b:a,this.pos=this.horiz?f:
15 setAxisSize:function(){var a=this.legendSymbol,g=this.chart,d=g.options.legend||{},b,f;a?(this.left=d=a.attr("x"),this.top=b=a.attr("y"),this.width=f=a.attr("width"),this.height=a=a.attr("height"),this.right=g.chartWidth-d-f,this.bottom=g.chartHeight-b-a,this.len=this.horiz?f:a,this.pos=this.horiz?d:b):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||this.defaultLegendLength},toColor:function(a,g){var d=this.stops,b,f,e=this.dataClasses,p,c;if(e)for(c=e.length;c--;){if(p=e[c],b=p.from,d=p.to,(void 0=== 15 q):this.len=(this.horiz?f.symbolWidth:f.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,k){var f=this.stops,q,b,p=this.dataClasses,e,c;if(p)for(c=p.length;c--;){if(e=p[c],q=e.from,f=e.to,(void 0===q||a>=q)&&(void 0===f||a<=f)){b=e.color;k&&(k.dataClass=c,k.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(c=f.length;c--&&!(a>f[c][0]););q=f[c]||f[c+1];f=f[c+1]||q;a=
16 b||a>=b)&&(void 0===d||a<=d)){f=p.color;g&&(g.dataClass=c,g.colorIndex=p.colorIndex);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min||1);for(c=d.length;c--&&!(a>d[c][0]););b=d[c]||d[c+1];d=d[c+1]||b;a=1-(d[0]-a)/(d[0]-b[0]||1);f=this.tweenColors(b.color,d.color,a)}return f},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,k.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight= 16 1-(f[0]-a)/(f[0]-q[0]||1);b=q.color.tweenTo(f.color,a)}return b},getOffset:function(){var a=this.legendGroup,k=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=k)},setLegendColor:function(){var a,k=this.reversed;a=k?1:0;k=k?0:1;a=this.horiz?[a,0,k,0]:[0,k,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,
17   17 k){var f=a.padding,q=a.options,b=this.horiz,c=e(q.symbolWidth,b?this.defaultLegendLength:12),p=e(q.symbolHeight,b?12:this.defaultLegendLength),r=e(q.labelPadding,b?16:30),q=e(q.itemDistance,10);this.setLegendColor();k.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,c,p).attr({zIndex:1}).add(k.legendGroup);this.legendItemWidth=c+f+(b?q:r);this.legendItemHeight=p+f+(b?r:0)},setState:c,visible:!0,setVisible:c,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=
18   18 -Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var f=b&&b.plotX,q=b&&b.plotY,k,e=this.pos,c=this.len;b&&(k=this.toPixels(b[b.series.colorKey]),ke+c&&(k=e+c+2),b.plotX=k,b.plotY=this.len-k,h.prototype.drawCrosshair.call(this,a,b),b.plotX=f,b.plotY=q,this.cross&&this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup))},getPlotLinePath:function(a,b,f,
19   19 q,e){return u(e)?this.horiz?["M",e-4,this.top-6,"L",e+4,this.top-6,e,this.top,"Z"]:["M",this.left,e,"L",this.left-6,e+6,this.left-6,e-6,"Z"]:h.prototype.getPlotLinePath.call(this,a,b,f,q)},update:function(a,e){var f=this.chart,q=f.legend;t(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&q.allItems&&(t(q.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),f.isDirtyLegend=!0);f.options[this.coll]=b(this.userOptions,a);h.prototype.update.call(this,a,e);this.legendItem&&
20   20 (this.setLegendColor(),q.colorizeItem(this,!0))},remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var b=this,e=this.chart,f=this.legendItems,q=e.options.legend,r=q.valueDecimals,g=q.valueSuffix||"",d;f.length||t(this.dataClasses,function(q,k){var p=!0,w=q.from,h=q.to;d="";void 0===w?d="\x3c ":void 0===h&&(d="\x3e ");void 0!==w&&(d+=a.numberFormat(w,r)+g);void 0!==w&&void 0!==h&&(d+=" - ");void 0!==h&&(d+=a.numberFormat(h,
21   21 r)+g);f.push(n({chart:e,name:d,options:{},drawLegendSymbol:m.drawRectangle,visible:!0,setState:c,isDataClass:!0,setVisible:function(){p=this.visible=!p;t(b.series,function(a){t(a.points,function(a){a.dataClass===k&&a.setVisible(p)})});e.legend.colorizeItem(this,p)}},q))});return f},name:""});t(["fill","stroke"],function(b){a.Fx.prototype[b+"Setter"]=function(){this.elem.attr(b,d(this.start).tweenTo(d(this.end),this.pos),null,!0)}});r(l.prototype,"getAxes",function(a){var b=this.options.colorAxis;
22   22 a.call(this);this.colorAxis=[];b&&new g(this,b)});r(v.prototype,"getAllItems",function(a){var b=[],f=this.chart.colorAxis[0];f&&f.options&&(f.options.showInLegend&&(f.options.dataClasses?b=b.concat(f.getDataClassLegendSymbols()):b.push(f)),t(f.series,function(a){a.options.showInLegend=!1}));return b.concat(a.call(this))});r(v.prototype,"colorizeItem",function(a,b,f){a.call(this,b,f);f&&b.legendColor&&b.legendSymbol.attr({fill:b.legendColor})})})(x);(function(a){var h=a.defined,l=a.each,d=a.noop;a.colorPointMixin=
23   23 {isValid:function(){return null!==this.value},setVisible:function(a){var g=this,d=a?"show":"hide";l(["graphic","dataLabel"],function(a){if(g[a])g[a][d]()})},setState:function(g){a.Point.prototype.setState.call(this,g);this.graphic&&this.graphic.attr({zIndex:"hover"===g?1:0})}};a.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:d,parallelArrays:["x","y","value"],colorKey:"value",
24   24 translateColors:function(){var a=this,t=this.options.nullColor,d=this.colorAxis,h=this.colorKey;l(this.data,function(g){var m=g[h];if(m=g.options.color||(g.isNull?t:d&&void 0!==m?d.toColor(m,g):g.color||a.color))g.color=m})},colorAttribs:function(a){var g={};h(a.color)&&(g[this.colorProp||"fill"]=a.color);return g}}})(x);(function(a){function h(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function l(a){this.init(a)}var d=a.addEvent,g=a.Chart,
25   25 t=a.doc,n=a.each,u=a.extend,v=a.merge,m=a.pick,c=a.wrap;l.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};l.prototype.update=function(b){var e=this.chart,c=e.options.mapNavigation,p,k=function(a){this.handler.call(e,a);h(a)},f=e.mapNavButtons;b&&(c=e.options.mapNavigation=v(e.options.mapNavigation,b));for(;f.length;)f.pop().destroy();m(c.enableButtons,c.enabled)&&!e.renderer.forExport&&a.objectEach(c.buttons,function(a,b){p=v(c.buttonOptions,a);a=e.renderer.button(p.text,0,0,k,void 0,
26   26 void 0,void 0,0,"zoomIn"===b?"topbutton":"bottombutton").addClass("highcharts-map-navigation").attr({width:p.width,height:p.height,title:e.options.lang[b],padding:p.padding,zIndex:5}).add();a.handler=p.onclick;a.align(u(p,{width:a.width,height:2*a.height}),null,p.alignTo);d(a.element,"dblclick",h);f.push(a)});this.updateEvents(c)};l.prototype.updateEvents=function(a){var b=this.chart;m(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||d(b.container,
27   27 "dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());m(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||d(b.container,void 0===t.onmousewheel?"DOMMouseScroll":"mousewheel",function(a){b.pointer.onContainerMouseWheel(a);h(a);return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(g.prototype,{fitToBox:function(a,e){n([["x","width"],["y","height"]],function(b){var c=b[0];
28 <=d)){f=p.color;g&&(g.dataClass=c,g.colorIndex=p.colorIndex);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.unbindMouseWheel=this.unbindMouseWheel())};u(c.prototype,{fitToBox:function(a,f){n([["x","width"],["y","height"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>f[e]+f[b]&&(a[b]>f[b]?(a[b]=f[b],a[e]=f[e]):a[e]=f[e]+f[b]-a[b]);a[b]>f[b]&&(a[b]=f[b]);a[e]2),w=d*a,d=this.yAxis[0],q=d.max-d.min,h=l(e,d.min+q/2),q=q*a,r=this.fitToBox({x:r-w*(c?(c-b.pos)/b.len:.5),y:h-q*(p?(p-d.pos)/d.len:.5),width:w, 28 b=b[1];a[c]+a[b]>e[c]+e[b]&&(a[b]>e[b]?(a[b]=e[b],a[c]=e[c]):a[c]=e[c]+e[b]-a[b]);a[b]>e[b]&&(a[b]=e[b]);a[c]2),r=b*a,b=this.yAxis[0],d=b.max-b.min,t=m(g,b.min+d/2),d=d*a,e=this.fitToBox({x:e-r*(p?(p-f.pos)/f.len:.5),y:t-d*(k?(k-b.pos)/b.len:.5),width:r,height:d},{x:f.dataMin,y:b.dataMin,width:f.dataMax-f.dataMin,height:b.dataMax-b.dataMin}),r=e.x<=f.dataMin&&e.width>=f.dataMax-f.dataMin&&e.y<=
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  
59   59  
60   60  
61   61  
62   62  
63   63  
64   64