SafetyScreen-ui/public/static/map/modules/oppc_10riq5.js

1 line
14 KiB
JavaScript
Raw Permalink Normal View History

2024-11-06 09:03:49 +08:00
_jsload2&&_jsload2('oppc', 'function Lg(a,b){b||(b=document.createElement("canvas"));b.getContext("2d").drawImage(a,0,0)}var Mg=256,Ng=32;function Og(){this.C=s}var Pg;B.Ye(function(a){if(!a.K.Yx){var b=new Og;Ab(a.Wa,b.va(a.K.Vb));b.C=a.Wa.lastChild;a.R.a1=b}}); Og.prototype.va=function(a){a=[\'<div id=zoomer style="position:absolute;z-index:0;top:0px;left:0px;overflow:hidden;visibility:hidden;cursor:\'+a+\'">\'];a.push(\'<div class="BMap_zoomer" style="top:0;left:0;"></div>\');a.push(\'<div class="BMap_zoomer" style="top:0;right:0;"></div>\');a.push(\'<div class="BMap_zoomer" style="bottom:0;left:0;"></div>\');a.push(\'<div class="BMap_zoomer" style="bottom:0;right:0;"></div>\');a.push("</div>");return a.join("")}; Og.prototype.action=function(a,b){if(!Pg){var c=this.C;if(c){var e=4/3,f=Math.ceil((b?60:120)/2),g=Math.max(15,f/e),i=c.style;i.width=2*f+"px";i.height=2*g+"px";i.visibility="visible";c=c.children;b?(c[0].style.backgroundPosition="0 0",c[1].style.backgroundPosition="-7px 0",c[2].style.backgroundPosition="0 -7px",c[3].style.backgroundPosition="-7px -7px"):(c[0].style.backgroundPosition="-7px -7px",c[1].style.backgroundPosition="0 -7px",c[2].style.backgroundPosition="-7px 0",c[3].style.backgroundPosition= "0 0");var c=s,k=a.x-f,m=a.y-g;if(!isNaN(k)&&!isNaN(m)){i.left=k+"px";i.top=m+"px";var n=Math.ceil((b?120:60)/2),o=Math.max(15,n/e),n=n-f,o=Math.ceil(o-g),p=this.C.style;Pg&&Pg.end();Pg=new tb({Ic:20,duration:240,kc:ub.iD,No:100,va:function(a){if(!(a<0.1)){var b=Math.ceil(n*a),a=Math.ceil(o*a);p.width=(f+b)*2+"px";p.height=(g+a)*2+"px";p.left=k-b+"px";p.top=m-a+"px"}},finish:function(){Pg=t;setTimeout(function(){i.visibility="hidden"},300)}})}}}};B.Ye(function(a){function b(a){if(g.K.Uo){var b=new P("ondeepzoommousewheel");c(a,la(b,a));k.R0.call(k,b);Cb(a)}}function c(a,b){var c=a.srcElement||a.target,e=a.offsetX||a.layerX||0,f=a.offsetY||a.layerY||0,i=s,k=s;1!==c.nodeType&&(c=c.parentNode);for(;c&&c!==g.Wa;){c.aa&&(z.lang.Nc(c.aa)instanceof gb&&(i=z.lang.Nc(c.aa)),z.lang.Nc(c.aa)instanceof tc&&(k=z.lang.Nc(c.aa)));if(!(0===c.clientWidth&&0===c.clientHeight&&c.offsetParent&&"TD"===c.offsetParent.nodeName)&&"http://www.w3.org/2000/svg"!==c.namespaceURI)e+= c.offsetLeft||0,f+=c.offsetTop||0;else if("http://www.w3.org/2000/svg"===c.namespaceURI&&B.hq){var A=B.hq.Ws(g).hf;if(-1<navigator.userAgent.indexOf("Opera")&&"svg"!==c.tagName){if(c=z.lang.Nc(c.aa))c=c.ve(),e+=g.$b(c.Ve()).x,f+=g.$b(c.Rf()).y;break}if(39<=z.ca.Te||51<=z.ca.Qw)e=a.layerX||0,f=a.layerY||0;if(A&&!(window.ActiveXObject||"ActiveXObject"in window))e+=parseFloat(A.style.left)+g.offsetX,f+=parseFloat(A.style.top)+g.offsetY;if(A&&((window.ActiveXObject||"ActiveXObject"in window)&&"svg"=== c.nodeName.toLowerCase())&&!c.aa)e+=parseFloat(A.style.left)+g.offsetX,f+=parseFloat(A.style.top)+g.offsetY;if((9<=z.ca.ia||-1<navigator.userAgent.toLowerCase().indexOf("trident"))&&"svg"!==c.nodeName.toLowerCase()){e+=g.offsetX;f+=g.offsetY;break}if(!z.ca.ia)break}c=c.offsetParent}if((65<=z.ca.Qw||60<=z.ca.Te)&&"ondeepzoommousewheel"===b.type){e=a.clientX+window.scrollX;f=a.clientY+window.scrollY;for(c=g.La();c;)e-=c.offsetLeft,f-=c.offsetTop,c=c.offsetParent}b.offsetX=e;b.offsetY=f;b.pixel=b.lb= new Q(e,f);b.point=b.point=g.xb(b.lb);b.overlay=b.fb=i;b.domEvent=a;b.zb=k;return b}function e(a){var b=g.R,e=!b.ky&&!b.ly;if(b.Fy)clearTimeout(b.Fy),b.Fy=s,e&&(g.dispatchEvent(c(a,la(new P("onrightclick"),a))),g.Sa|=Mg,g.dispatchEvent(c(a,la(new P("onrightdblclick"),a))),g.Sa^=Mg);else{e&&g.dispatchEvent(c(a,la(new P("onrightclick"),a)));var f=c(a,la(new P("onrightclickex"),a));b.Fy=setTimeout(function(){b.Fy=s;e&&g.dispatchEvent(f)},g.K.tC)}}function f(a){if(g.K.Uo){var b=g.R;b.ob&&(b.ob.stop(), b.ob=s,setTimeout(function(){g.dispatchEvent(new P("onmoveend"))},1));g.Sa|=Ng;a=window.event||a;g.Oc=g.Oa;b=new P("onmousewheel");b.Zp=0<=a.wheelDelta||0>a.detail;var e=new Date;b.Zp===q&&g.Oa===g.oa().sm()||b.Zp===t&&g.Oa===g.oa().bp()||220>e-i?g.Sa^=Ng:(i=e,c(a,la(b,a)),g.dispatchEvent(b),g.Sa^=Ng,a.returnValue=t);Cb(a)}}var g=a;g.bZ=a.Sb();a.Wa.I4=ca(t);z.M(g.platform,"mous