corrade-nucleus-nucleons – Blame information for rev

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /*
2 Highcharts JS v5.0.10 (2017-03-31)
3  
4 3D features for Highcharts JS
5  
6 @license: www.highcharts.com/license
7 */
8 (function(t){"object"===typeof module&&module.exports?module.exports=t:t(Highcharts)})(function(t){(function(b){var r=b.deg2rad,d=b.pick;b.perspective=function(p,q,y){var h=q.options.chart.options3d,m=y?q.inverted:!1,l=q.plotWidth/2,e=q.plotHeight/2,f=h.depth/2,n=d(h.depth,1)*d(h.viewDistance,0),c=q.scale3d||1,a=r*h.beta*(m?-1:1),h=r*h.alpha*(m?-1:1),k=Math.cos(h),u=Math.cos(-a),z=Math.sin(h),A=Math.sin(-a);y||(l+=q.plotLeft,e+=q.plotTop);return b.map(p,function(a){var b,h;h=(m?a.y:a.x)-l;var d=(m?
9 a.x:a.y)-e,p=(a.z||0)-f;b=u*h-A*p;a=-z*A*h+k*d-u*z*p;h=k*A*h+z*d+k*u*p;d=0(h+f+n):1;b=b*d*c+l;a=a*d*c+e;return{x:m?a:b,y:m?b:a,z:h*c+f}})};b.pointCameraDistance=function(b,q){var p=q.options.chart.options3d,h=q.plotWidth/2;q=q.plotHeight/2;p=d(p.depth,1)*d(p.viewDistance,0)+p.depth;return Math.sqrt(Math.pow(h-b.plotX,2)+Math.pow(q-b.plotY,2)+Math.pow(p-b.plotZ,2))}})(t);(function(b){function r(a){var c=0,g,D;for(g=0;g<a.length;g++)D=(g+1)%a.length,c+=a[g].x*a[D].y-
10 a[D].x*a[g].y;return c/2}function d(a){var c=0,g;for(g=0;ga.length:0}function p(a,c,g,D,b,E,k,f){var e=[],h=E-b;return E>b&&E-b>Math.PI/2+.0001?(e=e.concat(p(a,c,g,D,b,b+Math.PI/2,k,f)),e=e.concat(p(a,c,g,D,b+Math.PI/2,E,k,f))):EMath.PI/2+.0001?(e=e.concat(p(a,c,g,D,b,b-Math.PI/2,k,f)),e=e.concat(p(a,c,g,D,b-Math.PI/2,E,k,f))):["C",a+g*Math.cos(b)-g*v*h*Math.sin(b)+k,c+D*Math.sin(b)+D*v*h*Math.cos(b)+f,a+g*Math.cos(E)+g*v*h*Math.sin(E)+k,c+D*Math.sin(E)-
11 D*v*h*Math.cos(E)+f,a+g*Math.cos(E)+k,c+D*Math.sin(E)+f]}var q=Math.cos,y=Math.PI,h=Math.sin,m=b.animObject,l=b.charts,e=b.color,f=b.defined,n=b.deg2rad,c=b.each,a=b.extend,k=b.inArray,u=b.map,z=b.merge,A=b.perspective,t=b.pick,G=b.SVGElement,C=b.SVGRenderer,w=b.wrap,v=4*(Math.sqrt(2)-1)/3/(y/2);w(C.prototype,"init",function(a){a.apply(this,[].slice.call(arguments,1));c([{name:"darker",slope:.6},{name:"brighter",slope:1.4}],function(a){this.definition({tagName:"filter",id:"highcharts-"+a.name,children:[{tagName:"feComponentTransfer",
12 children:[{tagName:"feFuncR",type:"linear",slope:a.slope},{tagName:"feFuncG",type:"linear",slope:a.slope},{tagName:"feFuncB",type:"linear",slope:a.slope}]}]})},this)});C.prototype.toLinePath=function(a,b){var g=[];c(a,function(a){g.push("L",a.x,a.y)});a.length&&(g[0]="M",b&&g.push("Z"));return g};C.prototype.cuboid=function(a){var c=this.g(),g=c.destroy;a=this.cuboidPath(a);c.front=this.path(a[0]).attr({"class":"highcharts-3d-front",zIndex:a[3]}).add(c);c.top=this.path(a[1]).attr({"class":"highcharts-3d-top",
13 zIndex:a[4]}).add(c);c.side=this.path(a[2]).attr({"class":"highcharts-3d-side",zIndex:a[5]}).add(c);c.fillSetter=function(a){this.front.attr({fill:a});this.top.attr({fill:e(a).brighten(.1).get()});this.side.attr({fill:e(a).brighten(-.1).get()});this.color=a;return this};c.opacitySetter=function(a){this.front.attr({opacity:a});this.top.attr({opacity:a});this.side.attr({opacity:a});return this};c.attr=function(a,c){if("string"===typeof a&&"undefined"!==typeof c){var g=a;a={};a[g]=c}if(a.shapeArgs||
14 f(a.x))a=this.renderer.cuboidPath(a.shapeArgs||a),this.front.attr({d:a[0],zIndex:a[3]}),this.top.attr({d:a[1],zIndex:a[4]}),this.side.attr({d:a[2],zIndex:a[5]});else return b.SVGElement.prototype.attr.call(this,a);return this};c.animate=function(a,c,g){f(a.x)&&f(a.y)?(a=this.renderer.cuboidPath(a),this.front.attr({zIndex:a[3]}).animate({d:a[0]},c,g),this.top.attr({zIndex:a[4]}).animate({d:a[1]},c,g),this.side.attr({zIndex:a[5]}).animate({d:a[2]},c,g),this.attr({zIndex:-a[6]})):a.opacity?(this.front.animate(a,
15 c,g),this.top.animate(a,c,g),this.side.animate(a,c,g)):G.prototype.animate.call(this,a,c,g);return this};c.destroy=function(){this.front.destroy();this.top.destroy();this.side.destroy();return g.call(this)};c.attr({zIndex:-a[6]});return c};C.prototype.cuboidPath=function(a){function c(a){return n[a]}var g=a.x,b=a.y,k=a.z,f=a.height,e=a.width,h=a.depth,n=[{x:g,y:b,z:k},{x:g+e,y:b,z:k},{x:g+e,y:b+f,z:k},{x:g,y:b+f,z:k},{x:g,y:b+f,z:k+h},{x:g+e,y:b+f,z:k+h},{x:g+e,y:b,z:k+h},{x:g,y:b,z:k+h}],n=A(n,l[this.chartIndex],
16 a.insidePlotArea),k=function(a,b){var g=[];a=u(a,c);b=u(b,c);0>r(a)?g=a:0>r(b)&&(g=b);return g};a=k([3,2,1,0],[7,6,5,4]);g=[4,5,2,3];b=k([1,6,7,0],g);k=k([1,2,5,6],[0,7,4,3]);return[this.toLinePath(a,!0),this.toLinePath(b,!0),this.toLinePath(k,!0),d(a),d(b),d(k),9E9*d(u(g,c))]};b.SVGRenderer.prototype.arc3d=function(b){function f(a){var c=!1,b={};a=z(a);for(var g in a)-1!==k(g,l)&&(b[g]=a[g],delete a[g],c=!0);return c?b:!1}var g=this.g(),h=g.renderer,l="x y r innerR start end".split(" ");b=z(b);b.alpha*=
17 n;b.beta*=n;g.top=h.path();g.side1=h.path();g.side2=h.path();g.inn=h.path();g.out=h.path();g.onAdd=function(){var a=g.parentGroup,b=g.attr("class");g.top.add(g);c(["out","inn","side1","side2"],function(c){g[c].addClass(b+" highcharts-3d-side").add(a)})};g.setPaths=function(a){var c=g.renderer.arc3dPath(a),b=100*c.zTop;g.attribs=a;g.top.attr({d:c.top,zIndex:c.zTop});g.inn.attr({d:c.inn,zIndex:c.zInn});g.out.attr({d:c.out,zIndex:c.zOut});g.side1.attr({d:c.side1,zIndex:c.zSide1});g.side2.attr({d:c.side2,
18 zIndex:c.zSide2});g.zIndex=b;g.attr({zIndex:b});a.center&&(g.top.setRadialReference(a.center),delete a.center)};g.setPaths(b);g.fillSetter=function(a){var c=e(a).brighten(-.1).get();this.fill=a;this.side1.attr({fill:c});this.side2.attr({fill:c});this.inn.attr({fill:c});this.out.attr({fill:c});this.top.attr({fill:a});return this};c(["opacity","translateX","translateY","visibility"],function(a){g[a+"Setter"]=function(a,b){g[b]=a;c(["out","inn","side1","side2","top"],function(c){g[c].attr(b,a)})}});
19 w(g,"attr",function(c,b){var k;"object"===typeof b&&(k=f(b))&&(a(g.attribs,k),g.setPaths(g.attribs));return c.apply(this,[].slice.call(arguments,1))});w(g,"animate",function(a,c,b,g){var k,h=this.attribs,e;delete c.center;delete c.z;delete c.depth;delete c.alpha;delete c.beta;e=m(t(b,this.renderer.globalAnimation));e.duration&&(k=f(c),c.dummy=1,k&&(e.step=function(a,c){function b(a){return h[a]+(t(k[a],h[a])-h[a])*c.pos}"dummy"===c.prop&&c.elem.setPaths(z(h,{x:b("x"),y:b("y"),r:b("r"),innerR:b("innerR"),
20 start:b("start"),end:b("end")}))}),b=e);return a.call(this,c,b,g)});g.destroy=function(){this.top.destroy();this.out.destroy();this.inn.destroy();this.side1.destroy();this.side2.destroy();G.prototype.destroy.call(this)};g.hide=function(){this.top.hide();this.out.hide();this.inn.hide();this.side1.hide();this.side2.hide()};g.show=function(){this.top.show();this.out.show();this.inn.show();this.side1.show();this.side2.show()};return g};C.prototype.arc3dPath=function(a){function c(a){a%=2*Math.PI;a>Math.PI&&
21 (a=2*Math.PI-a);return a}var b=a.x,k=a.y,f=a.start,e=a.end-.00001,n=a.r,l=a.innerR,m=a.depth,d=a.alpha,u=a.beta,z=Math.cos(f),r=Math.sin(f);a=Math.cos(e);var A=Math.sin(e),x=n*Math.cos(u),n=n*Math.cos(d),v=l*Math.cos(u),w=l*Math.cos(d),l=m*Math.sin(u),B=m*Math.sin(d),m=["M",b+x*z,k+n*r],m=m.concat(p(b,k,x,n,f,e,0,0)),m=m.concat(["L",b+v*a,k+w*A]),m=m.concat(p(b,k,v,w,e,f,0,0)),m=m.concat(["Z"]),C=02:0,u=0<d?0:Math.PI/2,C=f>-C?f:e>-C?-C:f,F=e
22 t&&fy-u&&f
23 2+A);k=c(k);
24 return{top:m,zTop:1E5*Math.PI+1,out:d,zOut:Math.max(f,e,k),inn:u,zInn:Math.max(f,e,k),side1:z,zSide1:.99*k,side2:b,zSide2:.99*e}}})(t);(function(b){function r(b,f){var e=b.plotLeft,c=b.plotWidth+e,a=b.plotTop,k=b.plotHeight+a,h=e+b.plotWidth/2,d=a+b.plotHeight/2,l=Number.MAX_VALUE,m=-Number.MAX_VALUE,q=Number.MAX_VALUE,r=-Number.MAX_VALUE,w,v=1;w=[{x:e,y:a,z:0},{x:e,y:a,z:f}];p([0,1],function(a){w.push({x:c,y:w[a].y,z:w[a].z})});p([0,1,2,3],function(a){w.push({x:w[a].x,
25 function(a){l=Math.min(l,a.x);m=Math.max(m,a.x);q=Math.min(q,a.y);r=Math.max(r,a.y)});e>l&&(v=Math.min(v,1-Math.abs((e+h)/(l+h))%1));c(m-h)));a>q&&(v=0>q?Math.min(v,(a+d)/(-q+a+d)):Math.min(v,1-(a+d)/(q+d)%1));k<r&&(v=Math.min(v,Math.abs((k-d)/(r-d))));return v}var d=b.Chart,p=b.each,q=b.merge,y=b.perspective,h=b.pick,m=b.wrap;d.prototype.is3d=function(){return this.options.chart.options3d&&this.options.chart.options3d.enabled};d.prototype.propsRequireDirtyBox.push("chart.options3d");
26 d.prototype.propsRequireUpdateSeries.push("chart.options3d");b.wrap(b.Chart.prototype,"isInsidePlot",function(b){return this.is3d()||b.apply(this,[].slice.call(arguments,1))});var l=b.getOptions();q(!0,l,{chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,frame:{bottom:{size:1},side:{size:1},back:{size:1}}}}});m(d.prototype,"getContainer",function(b){b.apply(this,[].slice.call(arguments,1));this.renderer.definition({tagName:"style",textContent:".highcharts-3d-top{filter: url(#highcharts-brighter)}\n.highcharts-3d-side{filter: url(#highcharts-darker)}\n"})});
27 m(d.prototype,"setClassName",function(b){b.apply(this,[].slice.call(arguments,1));this.is3d()&&(this.container.className+=" highcharts-3d-chart")});b.wrap(b.Chart.prototype,"setChartSize",function(b){var f=this.options.chart.options3d;b.apply(this,[].slice.call(arguments,1));if(this.is3d()){var e=this.inverted,c=this.clipBox,a=this.margin;c[e?"y":"x"]=-(a[3]||0);c[e?"x":"y"]=-(a[0]||0);c[e?"height":"width"]=this.chartWidth+(a[3]||0)+(a[1]||0);c[e?"width":"height"]=this.chartHeight+(a[0]||0)+(a[2]||
28 0);this.scale3d=1;!0===f.fitToPlot&&(this.scale3d=r(this,f.depth))}});m(d.prototype,"redraw",function(b){this.is3d()&&(this.isDirtyBox=!0);b.apply(this,[].slice.call(arguments,1))});m(d.prototype,"renderSeries",function(b){var f=this.series.length;if(this.is3d())for(;f--;)b=this.series[f],b.translate(),b.render();else b.call(this)});d.prototype.retrieveStacks=function(b){var f=this.series,e={},c,a=1;p(this.series,function(k){c=h(k.options.stack,b?0:f.length-1-k.index);e[c]?e[c].series.push(k):(e[c]=
29 {series:[k],position:a},a++)});e.totalStacks=a+1;return e}})(t);(function(b){var r,d=b.Axis,p=b.Chart,q=b.each,y=b.extend,h=b.merge,m=b.perspective,l=b.pick,e=b.splat,f=b.Tick,n=b.wrap;n(d.prototype,"setOptions",function(b,a){b.call(this,a);this.chart.is3d()&&"colorAxis"!==this.coll&&(b=this.options,b.tickWidth=l(b.tickWidth,0),b.gridLineWidth=l(b.gridLineWidth,1))});n(d.prototype,"render",function(b){b.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()&&"colorAxis"!==this.coll){var a=this.chart,
30 c=a.renderer,f=a.options.chart.options3d,e=f.frame,d=e.bottom,h=e.back,e=e.side,l=f.depth,n=this.height,m=this.width,p=this.left,q=this.top;this.isZAxis||(this.horiz?(d={x:p,y:q+(a.xAxis[0].opposite?-d.size:n),z:0,width:m,height:d.size,depth:l,insidePlotArea:!1},this.bottomFrame?this.bottomFrame.animate(d):this.bottomFrame=c.cuboid(d).attr({"class":"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:a.yAxis[0].reversed&&0
31
32
33
34
35
36
37
38
39
40
41
42
43 2;!1!==m.grouping&&(c=0);d(h.data,function(a){var b=a.shapeArgs;a.shapeType="arc3d";b.z=c;b.depth=.75*l;b.alpha=f;b.beta=n;b.center=h.center;b=(b.end+b.start)/2;a.slicedTranslation={translateX:Math.round(Math.cos(b)*m.slicedOffset*Math.cos(f*r)),translateY:Math.round(Math.sin(b)*m.slicedOffset*Math.cos(f*r))}})}});b(p.pie.prototype.pointClass.prototype,
44 "haloPath",function(b){var d=arguments;return this.series.chart.is3d()?[]:b.call(this,d[1])});b(p.pie.prototype,"drawPoints",function(b){b.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&d(this.points,function(b){var d=b.graphic;if(d)d[b.y&&b.visible?"show":"hide"]()})});b(p.pie.prototype,"drawDataLabels",function(b){if(this.chart.is3d()){var h=this.chart.options.chart.options3d;d(this.data,function(b){var l=b.shapeArgs,e=l.r,f=(l.start+l.end)/2,m=b.labelPos,c=-e*(1-Math.cos((l.alpha||h.alpha)*
45 Math.sin(f),a=e*(Math.cos((l.beta||h.beta)*r)-1)*Math.cos(f);d([0,2,4],function(b){m[b]+=a;m[b+1]+=c})})}b.apply(this,[].slice.call(arguments,1))});b(p.pie.prototype,"addPoint",function(b){b.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&this.update(this.userOptions,!0)});b(p.pie.prototype,"animate",function(b){if(this.chart.is3d()){var d=arguments[1],m=this.options.animation,l=this.center,e=this.group,f=this.markerGroup;q&&(!0===m&&(m={}),d?(e.oldtranslateX=e.translateX,e.oldtranslateY=
46 this.animate=null))}else b.apply(this,[].slice.call(arguments,1))})})(t);(function(b){var r=b.perspective,d=b.pick,p=b.Point,q=b.seriesTypes,t=b.wrap;t(q.scatter.prototype,"translate",function(b){b.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var h=
47 this.chart,l=d(this.zAxis,h.options.zAxis[0]),e=[],f,n,c;for(c=0;c<this.data.length;c++)f=this.data[c],n=l.isLog&&l.val2lin?l.val2lin(f.z):f.z,f.plotZ=l.translate(n),f.isInside=f.isInside?n>=l.min&&n<=l.max:!1,e.push({x:f.plotX,y:f.plotY,z:f.plotZ});h=r(e,h,!0);for(c=0;c<this.data.length;c++)f=this.data[c],l=h[c],f.plotXold=f.plotX,f.plotYold=f.plotY,f.plotZold=f.plotZ,f.plotX=l.x,f.plotY=l.y,f.plotZ=l.z}});t(q.scatter.prototype,"init",function(b,d,l){d.is3d()&&(this.axisTypes=["xAxis","yAxis","zAxis"],
48 this.pointArrayMap=["x","y","z"],this.parallelArrays=["x","y","z"],this.directTouch=!0);b=b.apply(this,[d,l]);this.chart.is3d()&&(this.tooltipOptions.pointFormat=this.userOptions.tooltip?this.userOptions.tooltip.pointFormat||"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e":"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e");return b});t(q.scatter.prototype,
49 "pointAttribs",function(d,m){var h=d.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&m&&(h.zIndex=b.pointCameraDistance(m,this.chart));return h});t(p.prototype,"applyOptions",function(b){var d=b.apply(this,[].slice.call(arguments,1));this.series.chart.is3d()&&void 0===d.z&&(d.z=0);return d})})(t)});