You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pingAnQiYeWeb/public/modules/control_cdtpjt.js

1 line
33 KiB

1 year ago
/**/_jsload2 && _jsload2('control', 'function Rh(a){a&&(a.so.style.border="1px solid "+B.Fq.Hq,a.Jh.style.backgroundColor=B.Fq.Hq,a.Jh.style.opacity="0.5",a.Jh.style.filter="Alpha(opacity=50);")}function Sh(a){a&&(a.so.style.border="1px solid "+B.Fq.WG,a.Jh.style.backgroundColor=B.Fq.WG,a.Jh.style.opacity="1",a.Jh.style.filter="")} x.object.extend(pb.prototype,{yf:function(){this.D&&this.Ie(this.D)},initialize:function(a){Rc.prototype.initialize.call(this,a);this.Er();this.Ba();this.ca();var b=this;this.D.oy()?b.bB():this.D.addEventListener("load",function(){b.bB()});x.M(this.C,"click",oa);x.M(this.C,"dblclick",oa);x.M(this.C,"mousewheel",oa);x.M(this.C,"mouseup",function(a){a=window.event||a;2==a.button&&oa(a)});window.addEventListener&&this.C.addEventListener("DOMMouseScroll",function(a){oa(a)},o);return this.C},Er:function(){this.Ui|| (this.Ui=o,this.Vq=1,this.Db=4,this.Za=p,this.ho=this.Gf=this.Uh=-1,this.Kv=this.Hw=1,this.Qa={},this.io="",this.bw=q)},gI:function(){if(this.D){var a=this.D.Na-this.k.k1;return a<this.Uh?this.Uh:a>this.Gf?this.Gf:a}},Ba:function(){Rc.prototype.Ba.call(this);var a=x.da.ma!=q?" BMap_ie"+x.da.ma:"",b=this.C;b.innerHTML=this.sr();x.K.Ta(b,"BMap_omCtrl"+a);this.Jc=b.children[0].children[0];this.fJ=this.Jc.children[0];this.mb=this.Jc.children[1];this.Pr=this.mb.children[0];this.Ja=b.children[1];this.Ce(this.k.size); this.mb.style.cursor=I.Xb},sr:ea(\'<div class="BMap_omOutFrame"><div class="BMap_omInnFrame"><div class="BMap_omMapContainer"></div><div class="BMap_omViewMv"><div class="BMap_omViewInnFrame"><div></div></div></div></div></div><div class="BMap_omBtn"></div>\'),ca:function(){var a=this;x.M(this.Ja,"click",function(){a.se()});x.da.ma&&x.M(this.Ja,"dblclick",function(){a.se()});if(!x.da.ma||6<x.da.ma)this.Ja.onmouseover=function(){x.K.Ta(a.Ja,"hover")},this.Ja.onmouseout=function(){x.K.Tb(a.Ja,"hover")}; x.M(this.mb,"mousedown",function(b){if(!a.mb||!(Kb(a.mb.lr)&&"true"==a.mb.lr))if(b=window.event||b,2!=b.button)return a.mb.lr="true",b=window.event||b,a.mb.setCapture&&a.mb.setCapture(),a.ca.TY=parseInt(Ya(a.mb).left),a.ca.UY=parseInt(Ya(a.mb).top),a.ca.Tp=b.pageX||b.clientX,a.ca.Nk=b.pageY||b.clientY,a.ca.oh=0,a.ca.h=0,a.KJ(I.Id),oa(b),Gb(b)});x.M(document,"mousemove",function(b){if(a.mb&&"true"==a.mb.lr){var b=window.event||b,c=b.pageY||b.clientY;a.ca.xm=a.ca.TY+(b.pageX||b.clientX)-a.ca.Tp;a.ca.ym= a.ca.UY+c-a.ca.Nk;a.ca.Il=0;a.ca.Jl=0;0>=a.ca.xm&&(a.ca.Il=3);0>=a.ca.ym&&(a.ca.Jl=3);a.ca.xm+a.mb.offsetWidth>=a.Za.width&&(a.ca.Il=-3);a.ca.ym+a.mb.offsetHeight>=a.Za.height&&(a.ca.Jl=-3);a.mb.style.left=a.ca.xm+"px";a.mb.style.top=a.ca.ym+"px";if((0!=a.ca.Il||0!=a.ca.Jl)&&!a.ca.Nt){a.ca.TI=o;var d=a.Za.offsetX+a.ca.Il,e=a.Za.offsetY+a.ca.Jl;a.Za.Me(d,e);a.ca.Nt=setInterval(function(){var b=a.ca.Il!=0?a.ca.Il>0?a.ca.oh=a.ca.oh+3:a.ca.oh=a.ca.oh-3:a.ca.oh,c=a.ca.Jl!=0?a.ca.Jl>0?a.ca.h=a.ca.h+3:a.ca.h= a.ca.h-3:a.ca.h;a.Za.Me(d+b,e+c)},30)}0==a.ca.Il&&0==a.ca.Jl&&(clearInterval(a.ca.Nt),delete a.ca.Nt,a.ca.oh=0,a.ca.h=0);oa(b);return Gb(b)}});x.M(document,"mouseup",function(b){if(a.mb&&"true"==a.mb.lr){a.mb.lr="";a.KJ(I.Xb);a.mb.releaseCapture&&a.mb.releaseCapture();if(a.ca.m4==a.ca.xm&&a.ca.n4==a.ca.ym)return oa(b),Gb(b);a.io="dragView";a.Za.B.OD=q;a.D.R.Ic=o;if(Kb(a.ca.xm)&&Kb(a.ca.ym)){var c=a.ca.xm+parseInt(a.mb.style.width)/2+1,d=a.ca.ym+parseInt(a.mb.style.height)/2+1;delete a.ca.xm;delete a.ca.ym; var e=a.Za.Rb({x:c,y:d},a.Za.Na);a.D.R.Ic=q;a.ca.TI==o&&(clearInterval(a.ca.Nt),delete a.ca.Nt,a.ca.TI=q);a.D.R.Ic=o;setTimeout(function(){a.D.R.Ic=q;a.D.Ai(e)},50);oa(b);return Gb(b)}}})},bB:function(){if(this.bw!=o){var a=this,b=a.D;b.addEventListener("resize",function(){a.Za!=p&&a.Za.Xf(b.pc());a.pe!=p&&(a.pe.ta(b.pc()),a.ks());a.qc(a.k.anchor)});if(this.k.Va!=q){this.Pi||(b.addEventListener("loadcode",function(){a.gJ()}),b.addEventListener("moving",function(){a.ST()}),b.addEventListener("moveend", function(b){a.ZT(b)}),b.addEventListener("zoomend",function(b){a.gJ(b)}),b.addEventListener("maptypechange",function(){a.ks()}),this.Pi=o);var c=b.pc();this.Uh=Oa.up();this.Gf=Oa.Jm();thi