/*Obfuscated by JShaman.com*/var listPoints=[{'z':0x0,'x':0x0,'y':0x0,'temp':0x0},{'z':0x1,'x':0x0,'y':0x0,'temp':0x0},{'z':0x2,'x':0x0,'y':0x0,'temp':0x0},{'z':0x3,'x':0x0,'y':0x0,'temp':0x0},{'z':0x4,'x':0x0,'y':0x0,'temp':0x0},{'z':0x5,'x':0x0,'y':0x0,'temp':0x0},{'z':0x6,'x':0x0,'y':0x0,'temp':0x0},{'z':0x7,'x':0x0,'y':0x0,'temp':0x0},{'z':0x8,'x':0x0,'y':0x0,'temp':0x0},{'z':0x9,'x':0x0,'y':0x0,'temp':0x0}];var listLays=[{'z':0x1,'tempMin':0x0,'tempMax':0x0,'tempAve':0x0},{'z':0x2,'tempMin':0x0,'tempMax':0x0,'tempAve':0x0},{'z':0x3,'tempMin':0x0,'tempMax':0x0,'tempAve':0x0},{'z':0x4,'tempMin':0x0,'tempMax':0x0,'tempAve':0x0},{'z':0x5,'tempMin':0x0,'tempMax':0x0,'tempAve':0x0},{'z':0x6,'tempMin':0x0,'tempMax':0x0,'tempAve':0x0},{'z':0x7,'tempMin':0x0,'tempMax':0x0,'tempAve':0x0},{'z':0x8,'tempMin':0x0,'tempMax':0x0,'tempAve':0x0},{'z':0x9,'tempMin':0x0,'tempMax':0x0,'tempAve':0x0},{'z':0xa,'tempMin':0x0,'tempMax':0x0,'tempAve':0x0}];var distrList=[0x1];var bottomList=[0xa];var layPoints=[];var cirNum=distrList['length'];var layNum=bottomList[bottomList['length']-0x1];var longAxis=0x78;var shortAxis=0x14;var spaceCir=0x23;var intervalTop=0x14;var spaceLay=0x32;var maxSpace=cirNum*spaceCir;var curVal=0x1;var edge_distance=0x0;var initAngle=0x0;var clockwise=!![];var displayMode='all';var textSize=0xf;var arr=[];var color=null;var R=0x0;var G=0x0;var B=0x0;var timer;var t=-0x2;function initCanvasParam(){cirNum=distrList['length'];layNum=bottomList[bottomList['length']-0x1];longAxis=0x64;shortAxis=0x14;spaceCir=0x1e;intervalTop=0x14;spaceLay=0x3c;maxSpace=cirNum*spaceCir;curVal=0x1;edge_distance=0x0;initAngle=0x0;clockwise=!![];displayMode='all';textSize=0xf;arr=[];};function sleep(){t++;if(t>=0x0){flash();}if(timer){clearInterval(timer);}timer=setTimeout('sleep()',0x190);}function flash(){var _0x1ad946=document['getElementById']('canvas');var _0xefef9e=_0x1ad946['getContext']('2d');_0x1ad946['height']=_0x1ad946['height'];layPoints=[];arr=[];make_ellipse(_0xefef9e);gainData(_0xefef9e);entityBlock(_0xefef9e);make_top_ellipse(_0xefef9e);title(_0xefef9e);}var center_x,center_y;function draw(_0x29cd28){var _0x576287=document['getElementById']('canvas');var _0x29cd28=_0x576287['getContext']('2d');center_x=_0x576287['width']/0x3;center_y=shortAxis/0x3+maxSpace+intervalTop;_0x29cd28['strokeStyle']='black';_0x29cd28['lineWidth']=0x1;autoAdjust(_0x576287);make_ellipse(_0x29cd28);gainData(_0x29cd28);entityBlock(_0x29cd28);make_top_ellipse(_0x29cd28);title(_0x29cd28);showIndex(_0x576287,_0x29cd28);}function make_top_ellipse(_0xd79e1d){_0xd79e1d['beginPath']();_0xd79e1d['strokeStyle']='rgba(0,0,0,0.5)';_0xd79e1d['ellipse'](center_x,center_y,longAxis+maxSpace,shortAxis+maxSpace,0x0,0x0,Math['PI']*0x2);_0xd79e1d['stroke']();_0xd79e1d['closePath']();}var caseHeight,sum_long;function autoAdjust(_0x47ea00){caseHeight=spaceLay*(layNum-0x1);sum_long=caseHeight+0x2*(maxSpace+shortAxis+intervalTop);if(eval(canvas['height'])<eval(sum_long)){caseHeight=canvas['height']-0x2*(maxSpace+shortAxis+intervalTop);spaceLay=caseHeight/layNum;}}function make_ellipse(_0x54a02a){_0x54a02a['beginPath']();_0x54a02a['moveTo'](center_x+(longAxis+maxSpace),center_y);_0x54a02a['lineTo'](center_x+(longAxis+maxSpace),center_y+caseHeight);_0x54a02a['moveTo'](center_x-(longAxis+maxSpace),center_y);_0x54a02a['lineTo'](center_x-(longAxis+maxSpace),center_y+caseHeight);_0x54a02a['stroke']();_0x54a02a['closePath']();var _0x4c43e2=_0x54a02a['createRadialGradient'](center_x,center_y+caseHeight-longAxis,shortAxis,center_x,center_y+caseHeight-0x2*longAxis,0x5*longAxis);_0x4c43e2['addColorStop'](0x0,'white');_0x4c43e2['addColorStop'](0x1,'rgba(115,200,231,1)');_0x54a02a['beginPath']();_0x54a02a['fillStyle']=_0x4c43e2;_0x54a02a['moveTo'](center_x+(longAxis+maxSpace),center_y+caseHeight);_0x54a02a['lineTo'](center_x+(longAxis+maxSpace),center_y);_0x54a02a['ellipse'](center_x,center_y,longAxis+maxSpace,shortAxis+maxSpace,0x0,0x0,Math['PI'],anticlockwise=!![]);_0x54a02a['lineTo'](center_x-(longAxis+maxSpace),center_y+caseHeight);_0x54a02a['fill']();_0x54a02a['closePath']();var _0x4c43e2=_0x54a02a['createRadialGradient'](center_x,center_y+caseHeight-longAxis,shortAxis,center_x,center_y+caseHeight-0x2*longAxis,0x5*longAxis);_0x4c43e2['addColorStop'](0x0,'white');_0x4c43e2['addColorStop'](0x1,'rgba(115,200,231,1)');_0x54a02a['beginPath']();_0x54a02a['fillStyle']=_0x4c43e2;_0x54a02a['ellipse'](center_x,center_y+caseHeight,longAxis+maxSpace,shortAxis+maxSpace,0x0,0x0,Math['PI']*0x2);_0x54a02a['stroke']();_0x54a02a['fill']();_0x54a02a['closePath']();}function gainData(){for(var _0x420cfa=0x0;_0x420cfa<listPoints['length'];_0x420cfa++){if(listPoints[_0x420cfa]['z']+0x1===curVal){layPoints['push'](listPoints[_0x420cfa]);}}}function entityBlock(_0x4e318b){var _0x454dd3=[0x1,cirNum];var _0x141a1f=['e9e9e9','bbe5cc','f8dabc','f4c8d5','958a9b','9f9aa0'];var _0x550535=null;for(i=0x0;i<bottomList['length'];i++){if(curVal===bottomList[i]){_0x550535=cirNum-i;break;}else{_0x550535=cirNum;}}var _0x2e89a6=_0x550535;for(i=_0x550535;i>=0x1;i--){if(displayMode==='outside'&&!(i===cirNum)){continue;}else if(displayMode==='inner'&&i===cirNum){_0x2e89a6-=0x1;continue;}var _0x113bc8=distrList[i-0x1];_0x4e318b['beginPath']();_0x4e318b['strokeStyle']='rgba(0,0,0,1)';_0x4e318b['ellipse'](center_x,center_y+curVal*spaceLay,longAxis+i*spaceCir,shortAxis+i*spaceCir,0x0,0x0,Math['PI']*0x2);if(i===0x1){var _0x3bed57=_0x4e318b['createRadialGradient'](center_x,center_y+caseHeight-longAxis,shortAxis,center_x,center_y+caseHeight-0x2*longAxis,0x5*longAxis);_0x3bed57['addColorStop'](0x0,'white');_0x3bed57['addColorStop'](0x1,'rgba(115,200,231,1)');_0x4e318b['fillStyle']=_0x3bed57;_0x4e318b['fill']();}else{var _0x3bed57=_0x4e318b['createRadialGradient'](center_x,center_y+caseHeight-longAxis,shortAxis,center_x,center_y+caseHeight-0x2*longAxis,0x2*longAxis);_0x3bed57['addColorStop'](0x0,'white');_0x3bed57['addColorStop'](0x1,'#'+_0x141a1f[i]);_0x4e318b['fillStyle']=_0x3bed57;_0x4e318b['fill']();}_0x4e318b['stroke']();_0x4e318b['closePath']();point=null;for(j=0x0;j<_0x113bc8;j++){for(z=0x0;z<layPoints['length'];z++){if(layPoints[z]['x']===i-0x1&&layPoints[z]['y']===j){point=layPoints[z];break;}}if(clockwise){angle=0x2*Math['PI']/_0x113bc8*j+initAngle;}else{angle=0x2*Math['PI']/_0x113bc8*(_0x113bc8-j)+initAngle;}point_x=center_x+(longAxis+i*spaceCir)*Math['cos'](angle);point_y=center_y+curVal*spaceLay+(shortAxis+i*spaceCir)*Math['sin'](angle);textBox(_0x4e318b,point,point_x,point_y);}}}function textBox(_0x28b685,_0x2f127e,_0x11ae78,_0x5f39b5){var _0x49cd10=-0x64;if(_0x2f127e){_0x49cd10=_0x2f127e['temp'];}if(t%0x2===0x1){if(_0x49cd10==listLays[curVal-0x1]['tempMax']){_0x28b685['fillStyle']='rgba(229,29,29,1)';}else if(_0x49cd10==listLays[curVal-0x1]['tempMin']){_0x28b685['fillStyle']='rgba(0,255,28,1)';}else{_0x28b685['fillStyle']=getColor(_0x49cd10);}}else{_0x28b685['fillStyle']=getColor(_0x49cd10);}if(_0x49cd10<=-0x64){_0x49cd10='备用';}if(_0x49cd10<=-0x65){_0x49cd10='故障';}_0x28b685['beginPath']();_0x28b685['lineWidth']=0x1;_0x28b685['arc'](_0x11ae78,_0x5f39b5,textSize,0x0,0x2*Math['PI']);_0x28b685['stroke']();_0x28b685['fill']();_0x28b685['fillStyle']='rgba(0,0,0,1)';_0x28b685['textAlign']='center';_0x28b685['fillText'](_0x49cd10,_0x11ae78,_0x5f39b5+0x3);_0x28b685['closePath']();arr['push']({'x':_0x11ae78-0.6*textSize,'y':_0x5f39b5-0.7*textSize,'width':2.1*textSize,'height':2.2*textSize,'type':'val','lay':_0x2f127e['z'],'col':_0x2f127e['y'],'val':_0x49cd10});}function getColor(_0x5a174f){if(_0x5a174f<=-0x64){color='rgba(220,220,220,220)';return color;}if(_0x5a174f>=0x32){color='rgba(255,0,0,1)';return color;}else if(_0x5a174f>=0x14){G=Math['round'](0xff-0xff*((_0x5a174f-0x14)/0x1e));color='rgba(255,'+G+',0,1)';return color;}else if(_0x5a174f>=0x0){R=Math['round'](0x64+0x9b/0x14*_0x5a174f);B=Math['round'](0x1e-1.5*_0x5a174f);color='rgba('+R+',255,'+B+',1)';return color;}else if(_0x5a174f>=-0xa){R=Math['round'](0x64-6.6*(_0x5a174f*-0x1));G=Math['round'](0xff-2.2*(_0x5a174f*-0x1));B=Math['round'](0x1e+1.2*(_0x5a174f*-0x1));color='rgba('+R+','+G+','+B+',1)';return color;}else{color='rgba(34,233,42,1)';return color;}}function title(_0x504afd){var _0x4ff00b,_0x4f4379,_0x30de71;for(i=0x1;i<=layNum;i++){_0x4ff00b=center_x+(longAxis+maxSpace)+0x14;_0x4f4379=center_y+spaceLay*(i-0x1);if(curVal===i){var _0x2a0177=_0x504afd['createLinearGradient'](_0x4ff00b,_0x4f4379,_0x4ff00b+0x2*spaceLay,_0x4f4379);_0x2a0177['addColorStop'](0x0,'#2f2fff');_0x2a0177['addColorStop'](0.7,'#b3b3ff');_0x2a0177['addColorStop'](0x1,'#ffffff');}else{var _0x2a0177=_0x504afd['createLinearGradient'](_0x4ff00b,_0x4f4379,_0x4ff00b+0x2*spaceLay,_0x4f4379);_0x2a0177['addColorStop'](0x0,'#a2baef');_0x2a0177['addColorStop'](0.8,'#ffffff');}_0x504afd['fillStyle']=_0x2a0177;_0x504afd['lineWidth']=0x1;_0x504afd['strokeStyle']='rgba(214,223,232,1)';_0x504afd['beginPath']();_0x504afd['moveTo'](_0x4ff00b,_0x4f4379+0x1);_0x504afd['lineTo'](_0x4ff00b+1.8*spaceLay,_0x4f4379+0x1);_0x504afd['lineTo'](_0x4ff00b+1.8*spaceLay,_0x4f4379+spaceLay-0x1);_0x504afd['lineTo'](_0x4ff00b,_0x4f4379+spaceLay-0x1);_0x504afd['lineTo'](_0x4ff00b,_0x4f4379+0x1);_0x504afd['stroke']();_0x504afd['fill']();_0x504afd['closePath']();if(curVal===i){_0x504afd['fillStyle']='rgba(255,14,0,1)';}else{_0x504afd['fillStyle']='rgba(30,30,30,1)';}_0x30de71='第'+i+'层';_0x504afd['font']='15px\x20Arial';_0x504afd['textAlign']='center';_0x504afd['fillText'](_0x30de71,_0x4ff00b+0.9*spaceLay,_0x4f4379+0.7*spaceLay);arr['push']({'x':_0x4ff00b,'y':_0x4f4379+0x1,'width':1.8*spaceLay,'height':spaceLay,'num':i,'type':'title'});}}function draws(_0x57e2df,_0x48eea7,_0x566ea7,_0xfdc283){var _0x1da2f9=$('#canvas_parent');var _0x359bc1=_0x1da2f9['offset']()['left'],_0x44bebe=_0x1da2f9['offset']()['top'];_0xfdc283['rect'](0x0,0x0,_0x566ea7['width'],_0x566ea7['height']);arr['forEach'](function(_0x2a3bde,_0x311c51){_0xfdc283['beginPath']();_0xfdc283['rect'](_0x2a3bde['x']+_0x359bc1,_0x2a3bde['y']+_0x44bebe,_0x2a3bde['width'],_0x2a3bde['height']);_0xfdc283['closePath']();if(_0xfdc283['isPointInPath'](_0x57e2df,_0x48eea7)){if(_0x2a3bde['type']==='val'){layer['msg']('层='+(_0x2a3bde['lay']+0x1)+'\x0a列='+(_0x2a3bde['col']+0x1)+'\x0a温度='+_0x2a3bde['val']);}else{curVal=_0x2a3bde['num'];flash();}}});}function showIndex(_0x169d3d,_0x23315a){_0x169d3d['addEventListener']('click',function _0x3bfe48(_0x4c1c99){x=_0x4c1c99['clientX'];y=_0x4c1c99['clientY'];draws(x,y,_0x169d3d,_0x23315a);},![]);}function last(){if(curVal===0x1){curVal=Number(layNum);}else{curVal-=0x1;}flash();renderGrainByLay(curVal);}function next(){if(curVal===Number(layNum)){curVal=0x1;}else{curVal+=0x1;}flash();renderGrainByLay(curVal);}function clockSwitch(){if(clockwise){clockwise=![];}else{clockwise=!![];}flash();}function rotate(){initAngle+=document['getElementById']('rotate')['value']*0x2*Math['PI']/0x168;flash();}function display_all(){displayMode='all';flash();}function display_outside(){displayMode='outside';flash();}function display_inside(){displayMode='inner';flash();}function initGrainChar3d(){draw();};function clearGrainChart3d(){initCanvasParam();draw();};function resetGrainChart3d(){listPoints=grainData['listPoints'];listLays=grainData['listLays'];distrList=grainData['cable']['split']('-')['map'](Number);bottomList=grainData['cableCir']['split']('-')['map'](Number);initCanvasParam();draw();sleep();curType='z';curVal=0x1;renderGrainByLay(curVal);}function renderGrainByLay(_0x33dfc3){var _0x4b1c11;$['each'](listLays,function(_0x5d6a68,_0x327fe1){if(_0x33dfc3==_0x327fe1['z']){_0x4b1c11=_0x327fe1;$('#dynamicAve')['text'](_0x4b1c11['tempAve']);$('#dynamicMax')['text'](_0x4b1c11['tempMax']);$('#dynamicMin')['text'](_0x4b1c11['tempMin']);$('#dynamicAveName')['text']('层均温');$('#dynamicMaxName')['text']('层高温');$('#dynamicMinName')['text']('层低温');return;}});};
|