📄 radrectangle.js
字号:
if ("u\x6e\x64efined"==typeof(RadDockNamespace)){RadDockNamespace=new Object(); }RadDockNamespace.O1t= function (left,top,width,height){ this.left=(null!=left?left: 0); this.top=(null!=top?top: 0); this.width=(null!=width?width: 0); this.height=(null!=height?height: 0); this.right=left+width; this.bottom=top+height; } ; RadDockNamespace.O1t.prototype.l1t= function (){return new O1t(this.left,this.top,this.width,this.height); };RadDockNamespace.O1t.prototype.I1c= function (x,y){return (this.left<=x && x<=(this.left+this.width) && this.top<=y && y<=(this.top+this.height)); } ; RadDockNamespace.O1t.prototype.i1t= function (lz){if (null==lz)return false; if (this ==lz)return true; return (lz.left<this.right && lz.top<this.bottom && lz.right>this.left && lz.bottom>this.top); } ; RadDockNamespace.O1t.prototype.ToString= function (){return "\154eft:"+this.left+" "+"\x72ig\x68\x74:"+this.right+"\x20"+"\x74op:"+this.top+"\x20"+"\x62ottom:"+this.bottom+"\x20"+"("+this.width+" x "+this.height+")"; } ; RadDockNamespace.O1t.prototype.I1t= function (lz){if (null==lz)return false; if (this ==lz)return this.l1t(); if (!this.i1t(lz))return new O1t(); var left=Math.max(this.left,lz.left); var top=Math.max(this.top,lz.top); var right=Math.min(this.right,lz.right); var bottom=Math.min(this.bottom,lz.bottom); return new O1t(left,right,right-left,bottom-top); } ; function RadGetElementRect(L){if (!L){L=this ; }var left=0; var top=0; var width=L.offsetWidth; var height=L.offsetHeight; if (L.x){left=L.x; top=L.y; }else {var o1u=L; while (o1u!=null){left+=o1u.offsetLeft; top+=o1u.offsetTop; o1u=o1u.offsetParent; }}left=RadDockNamespace.O1f(left,0); top=RadDockNamespace.O1f(top,0); width=RadDockNamespace.O1f(width,0); height=RadDockNamespace.O1f(height,0); return new RadDockNamespace.O1t(left,top,width,height); }RadDockNamespace.O1u= function (L){if (L.currentStyle){return L.currentStyle; }else {return document.defaultView.getComputedStyle(L,null); }} ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -