/*Obfuscated by JShaman.com*/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}];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}];distrList=[0x1];bottomList=[0x9];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 waterShift=0x0;var arr=[];var waterMax=0xc;var curWater=0xa;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=0x78;shortAxis=0x14;spaceCir=0x23;intervalTop=0x14;spaceLay=0x32;maxSpace=cirNum*spaceCir;curVal=0x1;edge_distance=0x0;initAngle=0x0;clockwise=!![];displayMode='all';textSize=0xf;waterShift=0x0;arr=[];};function sleep(){t++;if(t>=0x0){waterShift+=0x1;flash();}if(timer){clearInterval(timer);}timer=setTimeout('sleep()',0x190);}function flash(){var _0x3b8581=document['getElementById']('canvas');var _0x28e5cd=_0x3b8581['getContext']('2d');_0x3b8581['height']=_0x3b8581['height'];layPoints=[];arr=[];make_ellipse(_0x28e5cd);gainData(_0x28e5cd);entityBlock(_0x28e5cd);make_top_ellipse(_0x28e5cd);title(_0x28e5cd);waterLine(_0x28e5cd);scaleShow(_0x28e5cd);}function draw(_0x373a5b){var _0x364420=document['getElementById']('canvas');var _0x373a5b=_0x364420['getContext']('2d');center_x=_0x364420['width']/0x3;center_y=shortAxis/0x3+maxSpace+intervalTop;_0x373a5b['strokeStyle']='black';_0x373a5b['lineWidth']=0x1;autoAdjust(_0x364420);make_ellipse(_0x373a5b);gainData(_0x373a5b);entityBlock(_0x373a5b);make_top_ellipse(_0x373a5b);make_top_ellipse(_0x373a5b);title(_0x373a5b);showIndex(_0x364420,_0x373a5b);waterLine(_0x373a5b);scaleShow(_0x373a5b);}function make_top_ellipse(_0x18f428){_0x18f428['beginPath']();_0x18f428['strokeStyle']='rgba(0,0,0,0.5)';_0x18f428['ellipse'](center_x,center_y,longAxis+maxSpace,shortAxis+maxSpace,0x0,0x0,Math['PI']*0x2);_0x18f428['stroke']();_0x18f428['closePath']();}function autoAdjust(_0x2bae27){caseHeight=spaceLay*layNum;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(_0x3dc3c3){_0x3dc3c3['beginPath']();_0x3dc3c3['moveTo'](center_x+(longAxis+maxSpace),center_y);_0x3dc3c3['lineTo'](center_x+(longAxis+maxSpace),center_y+caseHeight);_0x3dc3c3['moveTo'](center_x-(longAxis+maxSpace),center_y);_0x3dc3c3['lineTo'](center_x-(longAxis+maxSpace),center_y+caseHeight);_0x3dc3c3['stroke']();_0x3dc3c3['closePath']();var _0x104a7a=_0x3dc3c3['createRadialGradient'](center_x,center_y+caseHeight-longAxis,shortAxis,center_x,center_y+caseHeight-0x2*longAxis,0x5*longAxis);_0x104a7a['addColorStop'](0x0,'white');_0x104a7a['addColorStop'](0x1,'rgba(115,200,231,1)');_0x3dc3c3['beginPath']();_0x3dc3c3['fillStyle']=_0x104a7a;_0x3dc3c3['moveTo'](center_x+(longAxis+maxSpace),center_y+caseHeight);_0x3dc3c3['lineTo'](center_x+(longAxis+maxSpace),center_y);_0x3dc3c3['ellipse'](center_x,center_y,longAxis+maxSpace,shortAxis+maxSpace,0x0,0x0,Math['PI'],anticlockwise=!![]);_0x3dc3c3['lineTo'](center_x-(longAxis+maxSpace),center_y+caseHeight);_0x3dc3c3['fill']();_0x3dc3c3['closePath']();var _0x104a7a=_0x3dc3c3['createRadialGradient'](center_x,center_y+caseHeight-longAxis,shortAxis,center_x,center_y+caseHeight-0x2*longAxis,0x5*longAxis);_0x104a7a['addColorStop'](0x0,'white');_0x104a7a['addColorStop'](0x1,'rgba(115,200,231,1)');_0x3dc3c3['beginPath']();_0x3dc3c3['fillStyle']=_0x104a7a;_0x3dc3c3['ellipse'](center_x,center_y+caseHeight,longAxis+maxSpace,shortAxis+maxSpace,0x0,0x0,Math['PI']*0x2);_0x3dc3c3['stroke']();_0x3dc3c3['fill']();_0x3dc3c3['closePath']();}function gainData(){for(var _0x1ad077=0x0;_0x1ad077<listPoints['length'];_0x1ad077++){if(listPoints[_0x1ad077]['z']+0x1===curVal){layPoints['push'](listPoints[_0x1ad077]);}}}function entityBlock(_0x1b925c){z_peak=[0x1,cirNum];color_list=['e9e9e9','bbe5cc','f8dabc','f4c8d5','958a9b','9f9aa0'];turns=null;for(i=0x0;i<bottomList['length'];i++){if(curVal===bottomList[i]){turns=cirNum-i;break;}else{turns=cirNum;}}showMax=turns;for(i=turns;i>=0x1;i--){if(displayMode==='outside'&&!(i===cirNum)){_0x1b925c['beginPath']();_0x1b925c['setLineDash']([0x8,0x5]);_0x1b925c['strokeStyle']='rgba(0,0,0,1)';_0x1b925c['ellipse'](center_x,center_y+curVal*spaceLay,longAxis+i*spaceCir,shortAxis+i*spaceCir,0x0,0x0,Math['PI']*0x2);var _0x2f7f59=_0x1b925c['createRadialGradient'](center_x,center_y+caseHeight-longAxis,shortAxis,center_x,center_y+caseHeight-0x2*longAxis,0x5*longAxis);_0x2f7f59['addColorStop'](0x0,'white');_0x2f7f59['addColorStop'](0x1,'rgba(115,200,231,1)');_0x1b925c['fillStyle']=_0x2f7f59;_0x1b925c['fill']();_0x1b925c['closePath']();_0x1b925c['setLineDash']([]);break;}else if(displayMode==='inner'&&i===cirNum){showMax-=0x1;continue;}splNum=distrList[i-0x1];if(splNum===0x1){point=null;for(k=0x0;k<layPoints['length'];k++){if(layPoints[k]['x']===0x0&&layPoints[k]['y']===0x0){point=layPoints[k];break;}}point_x=center_x;point_y=center_y+curVal*spaceLay;textBox(_0x1b925c,point,point_x,point_y);continue;}_0x1b925c['beginPath']();_0x1b925c['setLineDash']([0x8,0x5]);_0x1b925c['strokeStyle']='rgba(0,0,0,1)';_0x1b925c['ellipse'](center_x,center_y+curVal*spaceLay,longAxis+i*spaceCir,shortAxis+i*spaceCir,0x0,0x0,Math['PI']*0x2);if(i===0x1){var _0x2f7f59=_0x1b925c['createRadialGradient'](center_x,center_y+caseHeight-longAxis,shortAxis,center_x,center_y+caseHeight-0x2*longAxis,0x5*longAxis);_0x2f7f59['addColorStop'](0x0,'white');_0x2f7f59['addColorStop'](0x1,'rgba(115,200,231,1)');_0x1b925c['fillStyle']=_0x2f7f59;_0x1b925c['fill']();}else{var _0x2f7f59=_0x1b925c['createRadialGradient'](center_x,center_y+caseHeight-longAxis,shortAxis,center_x,center_y+caseHeight-0x2*longAxis,0x2*longAxis);_0x2f7f59['addColorStop'](0x0,'white');_0x2f7f59['addColorStop'](0x1,'#'+color_list[i]);_0x1b925c['fillStyle']=_0x2f7f59;_0x1b925c['fill']();_0x1b925c['stroke']();}_0x1b925c['closePath']();_0x1b925c['setLineDash']([]);point=null;for(j=0x0;j<splNum;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']/splNum*j+initAngle;}else{angle=0x2*Math['PI']/splNum*(splNum-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(_0x1b925c,point,point_x,point_y);}}}function textBox(_0x21b0f3,_0x4db01e,_0x594d3e,_0x2e2319){var _0x37e843=-0x64;if(_0x4db01e){_0x37e843=_0x4db01e['temp'];}if(t%0x2===0x1){if(_0x37e843==listLays[curVal-0x1]['tempMax']){_0x21b0f3['fillStyle']='rgba(229,29,29,1)';}else if(_0x37e843==listLays[curVal-0x1]['tempMin']){_0x21b0f3['fillStyle']='rgba(0,255,28,1)';}else{_0x21b0f3['fillStyle']=getColor(_0x37e843);}}else{_0x21b0f3['fillStyle']=getColor(_0x37e843);}if(_0x37e843<=-0x64){_0x37e843='备用';}if(_0x37e843<=-0x65){_0x37e843='故障';}_0x21b0f3['beginPath']();_0x21b0f3['lineWidth']=0x1;_0x21b0f3['arc'](_0x594d3e,_0x2e2319,textSize,0x0,0x2*Math['PI']);_0x21b0f3['stroke']();_0x21b0f3['fill']();_0x21b0f3['fillStyle']='rgba(0,0,0,1)';_0x21b0f3['textAlign']='center';_0x21b0f3['fillText'](_0x37e843,_0x594d3e,_0x2e2319+0x3);_0x21b0f3['closePath']();arr['push']({'x':_0x594d3e-0.6*textSize,'y':_0x2e2319-0.7*textSize,'width':2.1*textSize,'height':2.2*textSize,'type':'val','lay':_0x4db01e['z'],'col':_0x4db01e['y'],'val':_0x37e843});}function getColor(_0x353eb2){if(_0x353eb2<=-0x64){color='rgba(220,220,220,220)';return color;}if(_0x353eb2>=0x32){color='rgba(255,0,0,1)';return color;}else if(_0x353eb2>=0x14){G=Math['round'](0xff-0xff*((_0x353eb2-0x14)/0x1e));color='rgba(255,'+G+',0,1)';return color;}else if(_0x353eb2>=0x0){R=Math['round'](0x64+0x9b/0x14*_0x353eb2);B=Math['round'](0x1e-1.5*_0x353eb2);color='rgba('+R+',255,'+B+',1)';return color;}else if(_0x353eb2>=-0xa){R=Math['round'](0x64-6.6*(_0x353eb2*-0x1));G=Math['round'](0xff-2.2*(_0x353eb2*-0x1));B=Math['round'](0x1e+1.2*(_0x353eb2*-0x1));color='rgba('+R+','+G+','+B+',1)';return color;}else{color='rgba(34,233,42,1)';return color;}}function waterLine(_0x381893){var _0x12fc86=center_x+(longAxis+maxSpace)+0x14+0x3*spaceLay;var _0x42401c=center_y+caseHeight*(0x1-curWater/waterMax);_0x381893['beginPath']();_0x381893['moveTo'](_0x12fc86,_0x42401c);for(i=0x0;i<=0x2*spaceLay;i++){x=i;y=Math['sin'](i/0x14+waterShift)*0x5;_0x381893['lineTo'](_0x12fc86+x,_0x42401c-y);}_0x381893['lineTo'](_0x12fc86+0x2*spaceLay,center_y+caseHeight);_0x381893['lineTo'](_0x12fc86,center_y+caseHeight);_0x381893['lineTo'](_0x12fc86,_0x42401c);_0x381893['fillStyle']='rgba(183,233,221,1)';_0x381893['fill']();_0x381893['closePath']();_0x381893['beginPath']();_0x381893['moveTo'](_0x12fc86,_0x42401c);for(i=0x0;i<=0x2*spaceLay;i++){x=i;y=Math['sin'](i/0xa+0x1+waterShift)*0x5;_0x381893['lineTo'](_0x12fc86+x,_0x42401c-y);}_0x381893['lineTo'](_0x12fc86+0x2*spaceLay,center_y+caseHeight);_0x381893['lineTo'](_0x12fc86,center_y+caseHeight);_0x381893['lineTo'](_0x12fc86,_0x42401c);_0x381893['fillStyle']='rgba(71,205,198,1)';_0x381893['fill']();_0x381893['closePath']();}function title(_0x5de1a9){for(i=0x1;i<=layNum;i++){start_x=center_x+(longAxis+maxSpace)+0x14;start_y=center_y+spaceLay*(i-0x1);if(curVal===i){var _0x416dc0=_0x5de1a9['createLinearGradient'](start_x,start_y,start_x+0x2*spaceLay,start_y);_0x416dc0['addColorStop'](0x0,'#2f2fff');_0x416dc0['addColorStop'](0.7,'#b3b3ff');_0x416dc0['addColorStop'](0x1,'#ffffff');}else{var _0x416dc0=_0x5de1a9['createLinearGradient'](start_x,start_y,start_x+0x2*spaceLay,start_y);_0x416dc0['addColorStop'](0x0,'#a2baef');_0x416dc0['addColorStop'](0.8,'#ffffff');}_0x5de1a9['fillStyle']=_0x416dc0;_0x5de1a9['lineWidth']=0x1;_0x5de1a9['strokeStyle']='rgba(214,223,232,1)';_0x5de1a9['beginPath']();_0x5de1a9['moveTo'](start_x,start_y+0x1);_0x5de1a9['lineTo'](start_x+1.8*spaceLay,start_y+0x1);_0x5de1a9['lineTo'](start_x+1.8*spaceLay,start_y+spaceLay-0x1);_0x5de1a9['lineTo'](start_x,start_y+spaceLay-0x1);_0x5de1a9['lineTo'](start_x,start_y+0x1);_0x5de1a9['stroke']();_0x5de1a9['fill']();_0x5de1a9['closePath']();if(curVal===i){_0x5de1a9['fillStyle']='rgba(255,14,0,1)';}else{_0x5de1a9['fillStyle']='rgba(30,30,30,1)';}var _0x5e68ce='第'+i+'层';_0x5de1a9['font']='15px\x20Arial';_0x5de1a9['textAlign']='center';_0x5de1a9['fillText'](_0x5e68ce,start_x+0.9*spaceLay,start_y+0.7*spaceLay);arr['push']({'x':start_x,'y':start_y+0x1,'width':1.8*spaceLay,'height':spaceLay,'num':i,'type':'titel'});}}function draws(_0x1315fb,_0x7aa7ba,_0x38c7ff,_0x4fb00f){var _0xf4ccd=$('#canvas_parent');var _0x43e7af=_0xf4ccd['offset']()['left'],_0x7fe4b1=_0xf4ccd['offset']()['top'];_0x4fb00f['rect'](0x0,0x0,_0x38c7ff['width'],_0x38c7ff['height']);arr['forEach'](function(_0x41a94f,_0x17faf5){_0x4fb00f['beginPath']();_0x4fb00f['rect'](_0x41a94f['x']+_0x43e7af,_0x41a94f['y']+_0x7fe4b1,_0x41a94f['width'],_0x41a94f['height']);_0x4fb00f['closePath']();if(_0x4fb00f['isPointInPath'](_0x1315fb,_0x7aa7ba)){if(_0x41a94f['type']==='val'){layer['msg']('层='+(_0x41a94f['lay']+0x1)+'\x0a列='+(_0x41a94f['col']+0x1)+'\x0a温度='+_0x41a94f['val']);}else{curVal=_0x41a94f['num'];flash();}}});}function showIndex(_0x502eec,_0x1dbe9e){_0x502eec['addEventListener']('click',function _0x109023(_0x32151f){x=_0x32151f['clientX'];y=_0x32151f['clientY'];draws(x,y,_0x502eec,_0x1dbe9e);},![]);}function waterShow(_0x3cdba1){start_x=center_x+(longAxis+maxSpace)+0x14+0x3*spaceLay;start_y=center_y;_0x3cdba1['beginPath']();_0x3cdba1['strokeStyle']='rgba(0,0,0,1)';_0x3cdba1['moveTo'](start_x,start_y);_0x3cdba1['lineTo'](start_x+0x2*spaceLay,start_y);_0x3cdba1['lineTo'](start_x+0x2*spaceLay,start_y+caseHeight);_0x3cdba1['lineTo'](start_x,start_y+caseHeight);_0x3cdba1['lineTo'](start_x,start_y);_0x3cdba1['stroke']();_0x3cdba1['closePath']();}function scaleShow(_0x5c2859){start_x=center_x+(longAxis+maxSpace)+0x14+0x5*spaceLay;start_y=center_y+caseHeight*(0x1-curWater/waterMax);_0x5c2859['beginPath']();_0x5c2859['moveTo'](start_x,start_y);_0x5c2859['lineTo'](start_x+0x1e,start_y+0xa);_0x5c2859['lineTo'](start_x+0x14,start_y);_0x5c2859['lineTo'](start_x+0x1e,start_y-0xa);_0x5c2859['lineTo'](start_x,start_y);_0x5c2859['fillStyle']='rgba(207,86,128,1)';_0x5c2859['fill']();_0x5c2859['closePath']();_0x5c2859['beginPath']();_0x5c2859['strokeStyle']='rgba(0,0,0,1)';_0x5c2859['moveTo'](start_x+0x14,start_y);_0x5c2859['lineTo'](start_x+0x32,start_y);_0x5c2859['stroke']();_0x5c2859['lineTo'](start_x+0x28,start_y+0x14);_0x5c2859['arcTo'](start_x+0x28,start_y+0x1e,start_x+0x32,start_y+0x1e,0xa);_0x5c2859['arcTo'](start_x+0x3c,start_y+0x1e,start_x+0x3c,start_y+0x14,0xa);_0x5c2859['lineTo'](start_x+0x32,start_y);_0x5c2859['fillStyle']='rgba(71,205,198,1)';_0x5c2859['fill']();_0x5c2859['font']='12px\x20Arial';_0x5c2859['textAlign']='center';_0x5c2859['fillStyle']='rgba(231,30,43,1)';_0x5c2859['fillText'](curWater+'m',start_x+0x32,start_y+0x19);_0x5c2859['closePath']();}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);var _0x1292fa=grainData['oilHeight']['split']('-')['map'](Number);curWater=_0x1292fa[0x0];waterMax=_0x1292fa[0x1];initCanvasParam();draw();sleep();curType='z';curVal=0x1;renderGrainByLay(curVal);}function renderGrainByLay(_0x4a02df){var _0x278c8f;$['each'](listLays,function(_0x28a460,_0x319774){if(_0x4a02df==_0x319774['z']){_0x278c8f=_0x319774;$('#dynamicAve')['text'](_0x278c8f['tempAve']);$('#dynamicMax')['text'](_0x278c8f['tempMax']);$('#dynamicMin')['text'](_0x278c8f['tempMin']);$('#dynamicAveName')['text']('层均温');$('#dynamicMaxName')['text']('层高温');$('#dynamicMinName')['text']('层低温');return;}});};
|