iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: https://fs.jtbc.co.kr/i-jam/js/jam/lib/highcharts-new/highcharts-3d.js
/* Highcharts JS v7.1.3 (2019-08-14) 3D features for Highcharts JS License: www.highcharts.com/license */ (function(u){"object"===typeof module&&module.exports?(u["default"]=u,module.exports=u):"function"===typeof define&&define.amd?define("highcharts/highcharts-3d",["highcharts"],function(B){u(B);u.Highcharts=B;return u}):u("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(u){function B(b,t,z,q){b.hasOwnProperty(t)||(b[t]=q.apply(null,z))}u=u?u._modules:{};B(u,"parts-3d/Math.js",[u["parts/Globals.js"]],function(b){var t=b.deg2rad,z=b.pick;b.perspective3D=function(b,g,v){g=0b&&f-b>Math.PI/2+.0001?(m=m.concat(z(a,d,e,D,b,b+Math.PI/2,h,l)),m=m.concat(z(a,d,e,D,b+Math.PI/2,f,h,l))):fMath.PI/2+.0001?(m=m.concat(z(a,d,e,D,b,b-Math.PI/2,h,l)),m=m.concat(z(a,d,e,D,b-Math.PI/2,f,h,l))):["C",a+e*Math.cos(b)-e*c*E*Math.sin(b)+h,d+D*Math.sin(b)+D*c*E*Math.cos(b)+l,a+e*Math.cos(f)+e*c*E*Math.sin(f)+h,d+D*Math.sin(f)-D*c* E*Math.cos(f)+l,a+e*Math.cos(f)+h,d+D*Math.sin(f)+l]}var q=t.defined,g=t.objectEach,v=Math.cos,A=Math.PI,r=Math.sin,w=b.animObject,x=b.charts,y=b.color,l=b.deg2rad,a=b.extend,f=b.merge,h=b.perspective,k=b.pick,d=b.SVGElement;t=b.SVGRenderer;var c=4*(Math.sqrt(2)-1)/3/(A/2);t.prototype.toLinePath=function(a,c){var e=[];a.forEach(function(a){e.push("L",a.x,a.y)});a.length&&(e[0]="M",c&&e.push("Z"));return e};t.prototype.toLineSegments=function(a){var c=[],e=!0;a.forEach(function(a){c.push(e?"M":"L", a.x,a.y);e=!e});return c};t.prototype.face3d=function(a){var c=this,e=this.createElement("path");e.vertexes=[];e.insidePlotArea=!1;e.enabled=!0;e.attr=function(a){if("object"===typeof a&&(q(a.enabled)||q(a.vertexes)||q(a.insidePlotArea))){this.enabled=k(a.enabled,this.enabled);this.vertexes=k(a.vertexes,this.vertexes);this.insidePlotArea=k(a.insidePlotArea,this.insidePlotArea);delete a.enabled;delete a.vertexes;delete a.insidePlotArea;var e=h(this.vertexes,x[c.chartIndex],this.insidePlotArea),m=c.toLinePath(e, !0);e=b.shapeArea(e);e=this.enabled&&0a.faces.length;)e.faces.pop().destroy(); for(;e.faces.lengtha.faces.length;)e.faces.pop().destroy();for(;e.faces.lengthb.shapeArea(a)?d=[a,0]:0>b.shapeArea(e)&&(d=[e,1]);return d};var r=v([3,2,1,0],[7,6,5,4]);a=r[0];l=r[1];r=v([1,6,7,0],[4,5,2,3]);f=r[0];k=r[1];r=v([1,2,5,6],[0,7,4,3]);v=r[0];r=r[1];1===r?p+=1E4*(1E3-e):r||(p+=1E4*e);p+=10*(!k||0<=y&&180>=y||360>y&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,d=a.y,b=a.start,f=a.end-.00001,h=a.r,l=a.innerR||0,m=a.depth||0,n=a.alpha,k=a.beta,y=Math.cos(b),p=Math.sin(b);a=Math.cos(f);var g=Math.sin(f),w=h*Math.cos(k);h*=Math.cos(n);var t=l*Math.cos(k),x=l*Math.cos(n);l=m*Math.sin(k);var q=m*Math.sin(n);m=["M",e+w*y,d+h*p];m=m.concat(z(e,d,w,h,b,f,0,0));m=m.concat(["L",e+t*a,d+x*g]);m=m.concat(z(e,d,t,x,f,b,0,0));m=m.concat(["Z"]);var u=0-u?b:f>-u?-u:b;var B=fC&&bA-k&&bp&&(e=Math.min(e,1-Math.abs((a+d)/(p+d))%1));fm&&(e=0>m?Math.min(e,(h+c)/(-m+h+c)):Math.min(e,1-(h+c)/(m+c)%1));ka?-1:0},n=p([{x:f,y:d,z:c},{x:h,y:d,z:c},{x:h,y:d,z:0},{x:f,y:d,z:0}]),m=p([{x:f,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:f,y:k,z:c}]),v=p([{x:f,y:k,z:0},{x:f,y:k,z:c},{x:f,y:d,z:c},{x:f,y:d,z:0}]),e=p([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:d,z:0},{x:h,y:d,z:c}]),w=p([{x:f,y:d, z:0},{x:h,y:d,z:0},{x:h,y:k,z:0},{x:f,y:k,z:0}]);p=p([{x:f,y:k,z:c},{x:h,y:k,z:c},{x:h,y:d,z:c},{x:f,y:d,z:c}]);var t=!1,q=!1,x=!1,u=!1;[].concat(g.xAxis,g.yAxis,g.zAxis).forEach(function(a){a&&(a.horiz?a.opposite?q=!0:t=!0:a.opposite?u=!0:x=!0)});var z=function(a,c,d){for(var e=["size","color","visible"],b={},f=0;fd*b[e][c]?e=f:d*b[f][c]===d*b[e][c]&&b[f].zthis.pos&&(q(this.start)||q(this.end))){var b=this.start||[1,0,0,1,0,0],l=this.end||[1,0,0,1,0,0];var a= [];for(var f=0;6>f;f++)a.push(this.pos*l[f]+(1-this.pos)*b[f])}else a=this.end;this.elem.attr(this.prop,a,null,!0)};""});B(u,"parts-3d/Axis.js",[u["parts/Globals.js"],u["parts/Utilities.js"]],function(b,t){function u(d,c,b){if(!d.chart.is3d()||"colorAxis"===d.coll)return c;var f=d.chart,h=A*f.options.chart.options3d.alpha,k=A*f.options.chart.options3d.beta,e=l(b&&d.options.title.position3d,d.options.labels.position3d);b=l(b&&d.options.title.skew3d,d.options.labels.skew3d);var g=f.frame3d,p=f.plotLeft, r=f.plotWidth+p,y=f.plotTop,v=f.plotHeight+y;f=!1;var w=0,t=0,q={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===g.axes.z.top)return{};t=c.y-y;c.x=g.axes.z.top.x;c.y=g.axes.z.top.y;p=g.axes.z.top.xDir;f=!g.top.frontFacing}else{if(null===g.axes.z.bottom)return{};t=c.y-v;c.x=g.axes.z.bottom.x;c.y=g.axes.z.bottom.y;p=g.axes.z.bottom.xDir;f=!g.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===g.axes.x.top)return{};t=c.y-y;c.y=g.axes.x.top.y;c.z=g.axes.x.top.z; p=g.axes.x.top.xDir;f=!g.top.frontFacing}else{if(null===g.axes.x.bottom)return{};t=c.y-v;c.y=g.axes.x.bottom.y;c.z=g.axes.x.bottom.z;p=g.axes.x.bottom.xDir;f=!g.bottom.frontFacing}else if(d.opposite){if(null===g.axes.y.right)return{};w=c.x-r;c.x=g.axes.y.right.x;c.z=g.axes.y.right.z;p=g.axes.y.right.xDir;p={x:p.z,y:p.y,z:-p.x}}else{if(null===g.axes.y.left)return{};w=c.x-p;c.x=g.axes.y.left.x;c.z=g.axes.y.left.z;p=g.axes.y.left.xDir}"chart"!==e&&("flap"===e?d.horiz?(k=Math.sin(h),h=Math.cos(h),d.opposite&& (k=-k),f&&(k=-k),q={x:p.z*k,y:h,z:-p.x*k}):p={x:Math.cos(k),y:0,z:Math.sin(k)}:"ortho"===e?d.horiz?(q=Math.cos(h),e=Math.sin(k)*q,h=-Math.sin(h),k=-q*Math.cos(k),q={x:p.y*k-p.z*h,y:p.z*e-p.x*k,z:p.x*h-p.y*e},h=1/Math.sqrt(q.x*q.x+q.y*q.y+q.z*q.z),f&&(h=-h),q={x:h*q.x,y:h*q.y,z:h*q.z}):p={x:Math.cos(k),y:0,z:Math.sin(k)}:d.horiz?q={x:Math.sin(k)*Math.sin(h),y:Math.cos(h),z:-Math.cos(k)*Math.sin(h)}:p={x:Math.cos(k),y:0,z:Math.sin(k)});c.x+=w*p.x+t*q.x;c.y+=w*p.y+t*q.y;c.z+=w*p.z+t*q.z;f=x([c],d.chart)[0]; b&&(0>a(x([c,{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z},{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z}],d.chart))&&(p={x:-p.x,y:-p.y,z:-p.z}),d=x([{x:c.x,y:c.y,z:c.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z},{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z}],d.chart),f.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,f.x,f.y],f.matrix[4]-=f.x*f.matrix[0]+f.y*f.matrix[2],f.matrix[5]-=f.x*f.matrix[1]+f.y*f.matrix[3]);return f}var q=t.splat;t=b.addEvent;var g=b.Axis,v=b.Chart,A=b.deg2rad,r=b.extend,w=b.merge,x=b.perspective,y=b.perspective3D, l=b.pick,a=b.shapeArea,f=b.Tick,h=b.wrap;w(!0,g.prototype.defaultOptions,{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,"afterSetOptions",function(){if(this.chart.is3d&&this.chart.is3d()&&"colorAxis"!==this.coll){var a=this.options;a.tickWidth=l(a.tickWidth,0);a.gridLineWidth=l(a.gridLineWidth,1)}});h(g.prototype,"getPlotLinePath",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||"colorAxis"===this.coll||null===c)return c;var d=this.chart, b=d.options.chart.options3d;b=this.isZAxis?d.plotWidth:b.depth;d=d.frame3d;c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})];b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&& b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=x(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});h(g.prototype,"getLinePath",function(a){return this.chart.is3d()&&"colorAxis"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});h(g.prototype,"getPlotBandPath",function(a){if(!this.chart.is3d()||"colorAxis"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[];c=this.getPlotLinePath({value:c[1]});d=this.getPlotLinePath({value:d}); if(c&&d)for(var f=0;f=v.min&&x<=v.max: !1}else w.plotZ=0;w.axisXpos=w.plotX;w.axisYpos=w.plotY;w.axisZpos=w.plotZ;t.push({x:w.plotX,y:w.plotY,z:w.plotZ})}b=u(t,b,!0);for(r=0;rn&&(c[d[1]]+=c[d[0]]+k,c[d[0]]=-k,n=0);n+c[d[1]]>b[d[0]+"Axis"].len&&0!==c[d[1]]&&(c[d[1]]=b[d[0]+"Axis"].len-c[d[0]]);if(0!==c[d[1]]&&(c[d[0]]>=b[d[0]+"Axis"].len||c[d[0]]+c[d[1]]<=k)){for(var f in c)c[f]=0;a.outside3dPlot=!0}});"rect"===a.shapeType&&(a.shapeType="cuboid");c.z=h;c.depth=f;c.insidePlotArea=!0;d=g([{x:d[0],y:d[1],z:h}],l,!0)[0];a.tooltipPos=[d.x,d.y]}});b.z=h};x(r.column.prototype,"animate",function(b){if(this.chart.is3d()){var g= arguments[1],a=this.yAxis,f=this,h=this.yAxis.reversed;w&&(g?f.data.forEach(function(b){null!==b.y&&(b.height=b.shapeArgs.height,b.shapey=b.shapeArgs.y,b.shapeArgs.height=1,h||(b.shapeArgs.y=b.stackY?b.plotY+a.translate(b.stackY):b.plotY+(b.negative?-b.height:b.height)))}):(f.data.forEach(function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments, 1))});x(r.column.prototype,"plotGroup",function(b,g,a,f,h,k){this.chart.is3d()&&(this[g]&&delete this[g],k&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g("columnGroup").add(k)),this[g]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[g].survive=!0,"group"===g||"markerGroup"===g))&&(arguments[3]="visible");return b.apply(this,Array.prototype.slice.call(arguments,1))});x(r.column.prototype,"setVisible",function(b,g){var a=this,f;a.chart.is3d()&&a.data.forEach(function(b){f= (b.visible=b.options.visible=g=void 0===g?!v(a.visible,b.visible):g)?"visible":"hidden";a.options.data[a.data.indexOf(b)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});r.column.prototype.handle3dGrouping=!0;q(A,"afterInit",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,g=b.grouping,a=b.stacking,f=v(this.yAxis.options.reversedStacks,!0),h=0;if(void 0===g||g){g=this.chart.retrieveStacks(a);h=b.stack||0;for(a= 0;a{point.x}
y: {point.y}
z: {point.z}
"}},{pointAttribs:function(g){var t=q.scatter.prototype.pointAttribs.apply(this,arguments);this.chart.is3d()&&g&&(t.zIndex=b.pointCameraDistance(g,this.chart));return t},axisTypes:["xAxis","yAxis","zAxis"],pointArrayMap:["x","y","z"],parallelArrays:["x","y","z"],directTouch:!0},{applyOptions:function(){t.prototype.applyOptions.apply(this, arguments);void 0===this.z&&(this.z=0);return this}});""});B(u,"parts-3d/VMLRenderer.js",[u["parts/Globals.js"]],function(b){var t=b.addEvent,u=b.Axis,q=b.SVGRenderer,g=b.VMLRenderer;g&&(b.setOptions({animate:!1}),g.prototype.face3d=q.prototype.face3d,g.prototype.polyhedron=q.prototype.polyhedron,g.prototype.elements3d=q.prototype.elements3d,g.prototype.element3d=q.prototype.element3d,g.prototype.cuboid=q.prototype.cuboid,g.prototype.cuboidPath=q.prototype.cuboidPath,g.prototype.toLinePath=q.prototype.toLinePath, g.prototype.toLineSegments=q.prototype.toLineSegments,g.prototype.arc3d=function(b){b=q.prototype.arc3d.call(this,b);b.css({zIndex:b.zIndex});return b},b.VMLRenderer.prototype.arc3dPath=b.SVGRenderer.prototype.arc3dPath,t(u,"render",function(){this.sideFrame&&(this.sideFrame.css({zIndex:0}),this.sideFrame.front.attr({fill:this.sideFrame.color}));this.bottomFrame&&(this.bottomFrame.css({zIndex:1}),this.bottomFrame.front.attr({fill:this.bottomFrame.color}));this.backFrame&&(this.backFrame.css({zIndex:0}), this.backFrame.front.attr({fill:this.backFrame.color}))}))});B(u,"masters/highcharts-3d.src.js",[],function(){})}); //# sourceMappingURL=highcharts-3d.js.map