forked from genify/nej
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
110 additions
and
36 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/* | ||
* ------------------------------------------ | ||
* 裁剪功能封装实现文件 | ||
* @version 1.0 | ||
* @author genify([email protected]) | ||
* ------------------------------------------ | ||
*/ | ||
var f = function(){ | ||
var _ = NEJ.P, | ||
_o = NEJ.O, | ||
_f = NEJ.F, | ||
_e = _('nej.e'), | ||
_v = _('nej.v'), | ||
_p = _('nej.ut'), | ||
_proClip; | ||
if (!!_p._$$Clip) return; | ||
/** | ||
* 裁剪功能封装 | ||
* | ||
* 脚本举例 | ||
* [code] | ||
* | ||
* [/code] | ||
* | ||
* @class {nej.ut._$$Clip} | ||
* @extends {nej.ut._$$Event} | ||
* | ||
* @param {Object} 可选配置参数,已处理参数列表如下 | ||
* @config {Node} resizer | ||
* | ||
* [hr] | ||
* 大小变化开始触发事件 | ||
* @event {onresizestart} | ||
* @param {Object} 事件信息 | ||
* @cofnig {Number} top 距离上 | ||
* @cofnig {Number} left 距离左 | ||
* @cofnig {Number} width 宽 | ||
* @cofnig {Number} height 高 | ||
* | ||
* [hr] | ||
* 大小变化触发事件 | ||
* @event {onresize} | ||
* @param {Object} 事件信息 | ||
* @cofnig {Number} top 距离上 | ||
* @cofnig {Number} left 距离左 | ||
* @cofnig {Number} width 宽 | ||
* @cofnig {Number} height 高 | ||
* | ||
* [hr] | ||
* 大小变化结束触发事件 | ||
* @event {onresizeend} | ||
* @param {Object} 事件信息 | ||
* @cofnig {Number} top 距离上 | ||
* @cofnig {Number} left 距离左 | ||
* @cofnig {Number} width 宽 | ||
* @cofnig {Number} height 高 | ||
* [hr] | ||
* 区域移动触发事件 | ||
* @event {onmove} | ||
* @param {Object} 事件信息 | ||
* @cofnig {Number} top 距离上 | ||
* @cofnig {Number} left 距离左 | ||
* @cofnig {Number} width 宽 | ||
* @cofnig {Number} height 高 | ||
* | ||
*/ | ||
_p._$$Clip = NEJ.C(); | ||
_proClip = _p._$$Clip._$extend(_p._$$Event); | ||
/** | ||
* 控件重置 | ||
* @protected | ||
* @method {__reset} | ||
* @param {Object} 可选配置参数 | ||
* @return {Void} | ||
*/ | ||
_proClip.__reset = function(_options){ | ||
this.__supReset(_options); | ||
|
||
}; | ||
/** | ||
* 控件销毁 | ||
* @protected | ||
* @method {__destroy} | ||
* @return {Void} | ||
*/ | ||
_proClip.__destroy = function(){ | ||
this.__supDestroy(); | ||
|
||
}; | ||
}; | ||
NEJ.define('{lib}util/clip/clip.js', | ||
['{lib}util/resize/resize.js'],f); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters