WebPortal_TongZhou/02.UI/script/jquery-easyui-1.2.4/plugins/jquery.resizable.js

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/**
 * jQuery EasyUI 1.2.4
 * 
 * Licensed under the GPL terms
 * To use it on other terms please contact us
 *
 * Copyright(c) 2009-2011 stworthy [ stworthy@gmail.com ] 
 * 
 */
(function($){
$.fn.resizable=function(_1,_2){
if(typeof _1=="string"){
return $.fn.resizable.methods[_1](this,_2);
}
function _3(e){
var _4=e.data;
var _5=$.data(_4.target,"resizable").options;
if(_4.dir.indexOf("e")!=-1){
var _6=_4.startWidth+e.pageX-_4.startX;
_6=Math.min(Math.max(_6,_5.minWidth),_5.maxWidth);
_4.width=_6;
}
if(_4.dir.indexOf("s")!=-1){
var _7=_4.startHeight+e.pageY-_4.startY;
_7=Math.min(Math.max(_7,_5.minHeight),_5.maxHeight);
_4.height=_7;
}
if(_4.dir.indexOf("w")!=-1){
_4.width=_4.startWidth-e.pageX+_4.startX;
if(_4.width>=_5.minWidth&&_4.width<=_5.maxWidth){
_4.left=_4.startLeft+e.pageX-_4.startX;
}
}
if(_4.dir.indexOf("n")!=-1){
_4.height=_4.startHeight-e.pageY+_4.startY;
if(_4.height>=_5.minHeight&&_4.height<=_5.maxHeight){
_4.top=_4.startTop+e.pageY-_4.startY;
}
}
};
function _8(e){
var _9=e.data;
var _a=_9.target;
if($.boxModel==true){
$(_a).css({width:_9.width-_9.deltaWidth,height:_9.height-_9.deltaHeight,left:_9.left,top:_9.top});
}else{
$(_a).css({width:_9.width,height:_9.height,left:_9.left,top:_9.top});
}
};
function _b(e){
$.data(e.data.target,"resizable").options.onStartResize.call(e.data.target,e);
return false;
};
function _c(e){
_3(e);
if($.data(e.data.target,"resizable").options.onResize.call(e.data.target,e)!=false){
_8(e);
}
return false;
};
后面还有 88 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。