corrade-nucleus-nucleons – Diff between revs 1 and 11
?pathlinks?
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==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)/ |
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]),k |
|
19 | |
19 |
|
|
20 | |
20 |
|
|
21 | |
21 |
|
|
22 | |
22 |
|
|
23 | |
23 |
|
|
24 | |
24 |
|
|
25 | |
25 |
|
|
26 | |
26 |
|
|
27 | |
27 |
|
|
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)/ |
28 |
|
|
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 | |