|
|
8 |
(function(E){"object"===typeof module&&module.exports?module.exports=E:E(Highcharts)})(function(E){(function(a){var q=a.deg2rad,k=a.pick;a.perspective=function(p,n,u){var m=n.options.chart.options3d,g=u?n.inverted:!1,h=n.plotWidth/2,r=n.plotHeight/2,e=m.depth/2,f=k(m.depth,1)*k(m.viewDistance,0),d=n.scale3d||1,b=q*m.beta*(g?-1:1),m=q*m.alpha*(g?-1:1),c=Math.cos(m),w=Math.cos(-b),x=Math.sin(m),y=Math.sin(-b);u||(h+=n.plotLeft,r+=n.plotTop);return a.map(p,function(b){var a,m;m=(g?b.y:b.x)-h;var n=(g? |
|
|
9 |
b.x:b.y)-r,k=(b.z||0)-e;a=w*m-y*k;b=-x*y*m+c*n-w*x*k;m=c*y*m+x*n+c*w*k;n=0(m+e+f):1;a=a*n*d+h;b=b*n*d+r;return{x:g?b:a,y:g?a:b,z:m*d+e}})};a.pointCameraDistance=function(a,n){var p=n.options.chart.options3d,m=n.plotWidth/2;n=n.plotHeight/2;p=k(p.depth,1)*k(p.viewDistance,0)+p.depth;return Math.sqrt(Math.pow(m-a.plotX,2)+Math.pow(n-a.plotY,2)+Math.pow(p-a.plotZ,2))}})(E);(function(a){function q(b){var d=0,l,C;for(l=0;l<b.length;l++)C=(l+1)%b.length,d+=b[l].x*b[C].y- |
|
|
10 |
b[C].x*b[l].y;return d/2}function k(b){var d=0,l;for(l=0;lb.length:0}function p(b,d,l,C,a,c,e,f){var g=[],H=c-a;return c>a&&c-a>Math.PI/2+.0001?(g=g.concat(p(b,d,l,C,a,a+Math.PI/2,e,f)),g=g.concat(p(b,d,l,C,a+Math.PI/2,c,e,f))):cMath.PI/2+.0001?(g=g.concat(p(b,d,l,C,a,a-Math.PI/2,e,f)),g=g.concat(p(b,d,l,C,a-Math.PI/2,c,e,f))):["C",b+l*Math.cos(a)-l*t*H*Math.sin(a)+e,d+C*Math.sin(a)+C*t*H*Math.cos(a)+f,b+l*Math.cos(c)+l*t*H*Math.sin(c)+e,d+C*Math.sin(c)- |