Merge pull request #1226 from nantas/v1.3

fix api doc reference
This commit is contained in:
Wang Nan
2016-10-20 18:39:40 +08:00
committed by GitHub
111 changed files with 726 additions and 676 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ _p = null;
* @name cc.ENGINE_VERSION
*/
var engineVersion;
engineVersion = '1.3.0-beta.8';
engineVersion = '1.3.0-rc.1';
window['CocosEngine'] = cc.ENGINE_VERSION = engineVersion;
/**
+1 -1
View File
@@ -255,7 +255,7 @@ cc.FiniteTimeAction = cc.Action.extend({
* @warning This action can't be Sequenceable because it is not an cc.IntervalAction
* @class Speed
* @extends Action
* @constructor
*
* @param {ActionInterval} action
* @param {Number} speed
*/
+4 -4
View File
@@ -103,7 +103,7 @@ function cloneControlPoints (controlPoints) {
*
* @class CardinalSplineTo
* @extends ActionInterval
* @constructor
*
* @param {Number} duration
* @param {Array} points array of control points
* @param {Number} tension
@@ -251,7 +251,7 @@ cc.cardinalSplineTo = function (duration, points, tension) {
*
* @class CardinalSplineBy
* @extends CardinalSplineTo
* @constructor
*
* @param {Number} duration
* @param {Array} points
* @param {Number} tension
@@ -355,7 +355,7 @@ cc.cardinalSplineBy = function (duration, points, tension) {
*
* @class CatmullRomTo
* @extends CardinalSplineTo
* @constructor
*
* @param {Number} dt
* @param {Array} points
*
@@ -402,7 +402,7 @@ cc.catmullRomTo = function (dt, points) {
*
* @class CatmullRomBy
* @extends CardinalSplineBy
* @constructor
*
* @param {Number} dt
* @param {Array} points
*
+10 -10
View File
@@ -29,7 +29,7 @@
* @class
* @extends cc.ActionInterval
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
*/
cc.GridAction = cc.ActionInterval.extend(/** @lends cc.GridAction# */{
_gridSize:null,
@@ -38,7 +38,7 @@ cc.GridAction = cc.ActionInterval.extend(/** @lends cc.GridAction# */{
/**
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
*/
ctor:function(duration, gridSize){
cc.sys._checkWebGLRenderMode();
@@ -101,7 +101,7 @@ cc.GridAction = cc.ActionInterval.extend(/** @lends cc.GridAction# */{
/**
* Initializes the action with size and duration.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @return {Boolean}
*/
initWithDuration:function (duration, gridSize) {
@@ -127,7 +127,7 @@ cc.GridAction = cc.ActionInterval.extend(/** @lends cc.GridAction# */{
* creates the action with size and duration
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @return {cc.GridAction}
*/
cc.gridAction = function (duration, gridSize) {
@@ -138,7 +138,7 @@ cc.gridAction = function (duration, gridSize) {
* Please use cc.gridAction instead. <br />
* Creates the action with size and duration.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @return {cc.GridAction}
* @static
* @deprecated since v3.0 <br /> Please use cc.gridAction instead.
@@ -163,7 +163,7 @@ cc.Grid3DAction = cc.GridAction.extend(/** @lends cc.Grid3DAction# */{
/**
* get rect of the grid
* @return {cc.Rect} rect
* @return {Rect} rect
*/
getGridRect:function () {
return this._gridNodeTarget.getGridRect();
@@ -221,7 +221,7 @@ cc.Grid3DAction = cc.GridAction.extend(/** @lends cc.Grid3DAction# */{
* creates the action with size and duration
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @return {cc.Grid3DAction}
*/
cc.grid3DAction = function (duration, gridSize) {
@@ -231,7 +231,7 @@ cc.grid3DAction = function (duration, gridSize) {
* Please use cc.grid3DAction instead. <br />
* creates the action with size and duration. <br />
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @return {cc.Grid3DAction}
* @static
* @deprecated since v3.0 <br /> Please use cc.grid3DAction instead.
@@ -305,7 +305,7 @@ cc.TiledGrid3DAction = cc.GridAction.extend(/** @lends cc.TiledGrid3DAction# */{
* Creates the action with duration and grid size
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @return {cc.TiledGrid3DAction}
*/
cc.tiledGrid3DAction = function (duration, gridSize) {
@@ -316,7 +316,7 @@ cc.tiledGrid3DAction = function (duration, gridSize) {
* Please use cc.tiledGrid3DAction instead
* Creates the action with duration and grid size
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @return {cc.TiledGrid3DAction}
* @static
* @deprecated since v3.0 <br /> Please use cc.tiledGrid3DAction instead.
+36 -36
View File
@@ -30,7 +30,7 @@
* @class
* @extends cc.Grid3DAction
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
*/
@@ -43,7 +43,7 @@ cc.Waves3D = cc.Grid3DAction.extend(/** @lends cc.Waves3D# */{
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
* Create a wave 3d action with duration, grid size, waves and amplitude.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
*/
@@ -87,7 +87,7 @@ cc.Waves3D = cc.Grid3DAction.extend(/** @lends cc.Waves3D# */{
/**
* initializes an action with duration, grid size, waves and amplitude
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
* @return {Boolean}
@@ -128,7 +128,7 @@ cc.Waves3D = cc.Grid3DAction.extend(/** @lends cc.Waves3D# */{
* Create a wave 3d action with duration, grid size, waves and amplitude.
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
*/
@@ -139,7 +139,7 @@ cc.waves3D = function (duration, gridSize, waves, amplitude) {
* Please use cc.waves3D instead. <br />
* Create a wave 3d action with duration, grid size, waves and amplitude.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
* @static
@@ -179,7 +179,7 @@ cc.FlipX3D = cc.Grid3DAction.extend(/** @lends cc.FlipX3D# */{
/**
* initializes the action with gridSize and duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} duration
* @return {Boolean}
*/
@@ -400,7 +400,7 @@ cc.FlipY3D.create = cc.flipY3D;
* @class
* @extends cc.Grid3DAction
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {cc.Vec2} position
* @param {Number} radius
*/
@@ -418,7 +418,7 @@ cc.Lens3D = cc.Grid3DAction.extend(/** @lends cc.Lens3D# */{
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
* creates a lens 3d action with center position, radius.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {cc.Vec2} position
* @param {Number} radius
*/
@@ -476,7 +476,7 @@ cc.Lens3D = cc.Grid3DAction.extend(/** @lends cc.Lens3D# */{
/**
* initializes the action with center position, radius, a grid size and duration
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {cc.Vec2} position
* @param {Number} radius
* @return {Boolean}
@@ -544,7 +544,7 @@ cc.Lens3D = cc.Grid3DAction.extend(/** @lends cc.Lens3D# */{
* creates a lens 3d action with center position, radius
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {cc.Vec2} position
* @param {Number} radius
* @return {cc.Lens3D}
@@ -557,7 +557,7 @@ cc.lens3D = function (duration, gridSize, position, radius) {
* Please use cc.lens3D instead
* creates a lens 3d action with center position, radius
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {cc.Vec2} position
* @param {Number} radius
* @return {cc.Lens3D}
@@ -572,7 +572,7 @@ cc.Lens3D.create = cc.lens3D;
* @class
* @extends cc.Grid3DAction
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {cc.Vec2} position
* @param {Number} radius
* @param {Number} waves
@@ -590,7 +590,7 @@ cc.Ripple3D = cc.Grid3DAction.extend(/** @lends cc.Ripple3D# */{
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
* creates a ripple 3d action with radius, number of waves, amplitude.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {cc.Vec2} position
* @param {Number} radius
* @param {Number} waves
@@ -655,7 +655,7 @@ cc.Ripple3D = cc.Grid3DAction.extend(/** @lends cc.Ripple3D# */{
/**
* initializes the action with radius, number of waves, amplitude, a grid size and duration
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {cc.Vec2} position
* @param {Number} radius
* @param {Number} waves
@@ -709,7 +709,7 @@ cc.Ripple3D = cc.Grid3DAction.extend(/** @lends cc.Ripple3D# */{
* creates a ripple 3d action with radius, number of waves, amplitude
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {cc.Vec2} position
* @param {Number} radius
* @param {Number} waves
@@ -724,7 +724,7 @@ cc.ripple3D = function (duration, gridSize, position, radius, waves, amplitude)
* Please use cc.ripple3D instead
* creates a ripple 3d action with radius, number of waves, amplitude
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {cc.Vec2} position
* @param {Number} radius
* @param {Number} waves
@@ -741,7 +741,7 @@ cc.Ripple3D.create = cc.ripple3D;
* @class
* @extends cc.Grid3DAction
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} range
* @param {Boolean} shakeZ
*/
@@ -753,7 +753,7 @@ cc.Shaky3D = cc.Grid3DAction.extend(/** @lends cc.Shaky3D# */{
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
* Create a shaky3d action with a range, shake Z vertices.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} range
* @param {Boolean} shakeZ
*/
@@ -765,7 +765,7 @@ cc.Shaky3D = cc.Grid3DAction.extend(/** @lends cc.Shaky3D# */{
/**
* initializes the action with a range, shake Z vertices, a grid and duration
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} range
* @param {Boolean} shakeZ
* @return {Boolean}
@@ -807,7 +807,7 @@ cc.Shaky3D = cc.Grid3DAction.extend(/** @lends cc.Shaky3D# */{
* creates the action with a range, shake Z vertices, a grid and duration
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} range
* @param {Boolean} shakeZ
* @return {cc.Shaky3D}
@@ -820,7 +820,7 @@ cc.shaky3D = function (duration, gridSize, range, shakeZ) {
* Please use cc.shaky3D instead
* creates the action with a range, shake Z vertices, a grid and duration
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} range
* @param {Boolean} shakeZ
* @return {cc.Shaky3D}
@@ -835,7 +835,7 @@ cc.Shaky3D.create = cc.shaky3D;
* @class
* @extends cc.Grid3DAction
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
*/
@@ -848,7 +848,7 @@ cc.Liquid = cc.Grid3DAction.extend(/** @lends cc.Liquid# */{
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
* Create a liquid action with amplitude, a grid and duration.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
*/
@@ -892,7 +892,7 @@ cc.Liquid = cc.Grid3DAction.extend(/** @lends cc.Liquid# */{
/**
* initializes the action with amplitude, a grid and duration
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
* @return {Boolean}
@@ -933,7 +933,7 @@ cc.Liquid = cc.Grid3DAction.extend(/** @lends cc.Liquid# */{
* creates the action with amplitude, a grid and duration
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
* @return {cc.Liquid}
@@ -946,7 +946,7 @@ cc.liquid = function (duration, gridSize, waves, amplitude) {
* Please use cc.liquid instead
* creates the action with amplitude, a grid and duration
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
* @return {cc.Liquid}
@@ -961,7 +961,7 @@ cc.Liquid.create = cc.liquid;
* @class
* @extends cc.Grid3DAction
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
* @param {Boolean} horizontal
@@ -978,7 +978,7 @@ cc.Waves = cc.Grid3DAction.extend(/** @lends cc.Waves# */{
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
* Create a wave action with amplitude, horizontal sin, vertical sin, a grid and duration.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
* @param {Boolean} horizontal
@@ -1024,7 +1024,7 @@ cc.Waves = cc.Grid3DAction.extend(/** @lends cc.Waves# */{
/**
* initializes the action with amplitude, horizontal sin, vertical sin, a grid and duration
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
* @param {Boolean} horizontal
@@ -1072,7 +1072,7 @@ cc.Waves = cc.Grid3DAction.extend(/** @lends cc.Waves# */{
* initializes the action with amplitude, horizontal sin, vertical sin, a grid and duration
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
* @param {Boolean} horizontal
@@ -1087,7 +1087,7 @@ cc.waves = function (duration, gridSize, waves, amplitude, horizontal, vertical)
* Please use cc.waves instead
* initializes the action with amplitude, horizontal sin, vertical sin, a grid and duration
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
* @param {Boolean} horizontal
@@ -1105,7 +1105,7 @@ cc.Waves.create = cc.waves;
* @class
* @extends cc.Grid3DAction
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {cc.Vec2} position
* @param {Number} twirls
* @param {Number} amplitude
@@ -1121,7 +1121,7 @@ cc.Twirl = cc.Grid3DAction.extend(/** @lends cc.Twirl# */{
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
* Create a grid 3d action with center position, number of twirls, amplitude, a grid size and duration.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {cc.Vec2} position
* @param {Number} twirls
* @param {Number} amplitude
@@ -1232,7 +1232,7 @@ cc.Twirl = cc.Grid3DAction.extend(/** @lends cc.Twirl# */{
* creates the action with center position, number of twirls, amplitude, a grid size and duration
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {cc.Vec2} position
* @param {Number} twirls
* @param {Number} amplitude
@@ -1246,7 +1246,7 @@ cc.twirl = function (duration, gridSize, position, twirls, amplitude) {
* Please use cc.twirl instead
* creates the action with center position, number of twirls, amplitude, a grid size and duration
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {cc.Vec2} position
* @param {Number} twirls
* @param {Number} amplitude
@@ -1254,4 +1254,4 @@ cc.twirl = function (duration, gridSize, position, twirls, amplitude) {
* @static
* @deprecated since v3.0 <br /> Please use cc.twirl instead.
*/
cc.Twirl.create = cc.twirl;
cc.Twirl.create = cc.twirl;
+3 -3
View File
@@ -112,7 +112,7 @@ cc.PageTurn3D = cc.Grid3DAction.extend(/** @lends cc.PageTurn3D# */{
* create PageTurn3D action
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @return {cc.PageTurn3D}
*/
cc.pageTurn3D = function (duration, gridSize) {
@@ -122,9 +122,9 @@ cc.pageTurn3D = function (duration, gridSize) {
* Please use cc.pageTurn3D instead
* create PageTurn3D action
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @return {cc.PageTurn3D}
* @static
* @deprecated since v3.0 please use cc.pageTurn3D instead.
*/
cc.PageTurn3D.create = cc.pageTurn3D;
cc.PageTurn3D.create = cc.pageTurn3D;
+38 -38
View File
@@ -30,7 +30,7 @@
* @class
* @extends cc.TiledGrid3DAction
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} range
* @param {Boolean} shakeZ
*/
@@ -42,7 +42,7 @@ cc.ShakyTiles3D = cc.TiledGrid3DAction.extend(/** @lends cc.ShakyTiles3D# */{
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
* Creates the action with a range, whether or not to shake Z vertices, a grid size, and duration.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} range
* @param {Boolean} shakeZ
*/
@@ -54,7 +54,7 @@ cc.ShakyTiles3D = cc.TiledGrid3DAction.extend(/** @lends cc.ShakyTiles3D# */{
/**
* Initializes the action with a range, whether or not to shake Z vertices, a grid size, and duration.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} range
* @param {Boolean} shakeZ
* @return {Boolean}
@@ -111,7 +111,7 @@ cc.ShakyTiles3D = cc.TiledGrid3DAction.extend(/** @lends cc.ShakyTiles3D# */{
* Reference the test cases (Effects Test)
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} range
* @param {Boolean} shakeZ
* @return {cc.ShakyTiles3D}
@@ -125,7 +125,7 @@ cc.shakyTiles3D = function (duration, gridSize, range, shakeZ) {
* creates the action with a range, whether or not to shake Z vertices, a grid size, and duration. <br />
* Reference the test cases (Effects Test)
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} range
* @param {Boolean} shakeZ
* @return {cc.ShakyTiles3D}
@@ -140,7 +140,7 @@ cc.ShakyTiles3D.create = cc.shakyTiles3D;
* @class
* @extends cc.TiledGrid3DAction
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} range
* @param {Boolean} shatterZ
*/
@@ -153,7 +153,7 @@ cc.ShatteredTiles3D = cc.TiledGrid3DAction.extend(/** @lends cc.ShatteredTiles3D
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
* Creates the action with a range, whether of not to shatter Z vertices, a grid size and duration.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} range
* @param {Boolean} shatterZ
*/
@@ -165,7 +165,7 @@ cc.ShatteredTiles3D = cc.TiledGrid3DAction.extend(/** @lends cc.ShatteredTiles3D
/**
* Initializes the action with a range, whether or not to shatter Z vertices, a grid size and duration. <br />
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} range
* @param {Boolean} shatterZ
* @return {Boolean}
@@ -225,7 +225,7 @@ cc.ShatteredTiles3D = cc.TiledGrid3DAction.extend(/** @lends cc.ShatteredTiles3D
* Reference the test cases (Effects Test)
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} range
* @param {Boolean} shatterZ
* @return {cc.ShatteredTiles3D}
@@ -239,7 +239,7 @@ cc.shatteredTiles3D = function (duration, gridSize, range, shatterZ) {
* Creates the action with a range, whether of not to shatter Z vertices, a grid size and duration. <br />
* Reference the test cases (Effects Test)
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} range
* @param {Boolean} shatterZ
* @return {cc.ShatteredTiles3D}
@@ -251,10 +251,10 @@ cc.ShatteredTiles3D.create = cc.shatteredTiles3D;
/**
* A Tile composed of position, startPosition and delta.
* @Class
* @constructor
*
* @param {cc.Vec2} [position=cc.p(0,0)]
* @param {cc.Vec2} [startPosition=cc.p(0,0)]
* @param {cc.Size} [delta=cc.p(0,0)]
* @param {Size} [delta=cc.p(0,0)]
*/
cc.Tile = function (position, startPosition, delta) {
this.position = position || cc.p(0,0);
@@ -268,7 +268,7 @@ cc.Tile = function (position, startPosition, delta) {
* @class
* @extends cc.TiledGrid3DAction
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} seed
*/
cc.ShuffleTiles = cc.TiledGrid3DAction.extend(/** @lends cc.ShuffleTiles# */{
@@ -281,7 +281,7 @@ cc.ShuffleTiles = cc.TiledGrid3DAction.extend(/** @lends cc.ShuffleTiles# */{
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
* Creates the action with a random seed, the grid size and the duration.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} seed
*/
ctor:function (duration, gridSize, seed) {
@@ -295,7 +295,7 @@ cc.ShuffleTiles = cc.TiledGrid3DAction.extend(/** @lends cc.ShuffleTiles# */{
/**
* Initializes the action with a random seed, the grid size and the duration.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} seed
* @return {Boolean}
*/
@@ -325,7 +325,7 @@ cc.ShuffleTiles = cc.TiledGrid3DAction.extend(/** @lends cc.ShuffleTiles# */{
/**
* Get Delta
* @param {cc.Size} pos
* @param {Size} pos
*/
getDelta:function (pos) {
var locGridSize = this._gridSize;
@@ -421,7 +421,7 @@ cc.ShuffleTiles = cc.TiledGrid3DAction.extend(/** @lends cc.ShuffleTiles# */{
* Reference the test cases (Effects Test)
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} seed
* @return {cc.ShuffleTiles}
*/
@@ -434,7 +434,7 @@ cc.shuffleTiles = function (duration, gridSize, seed) {
* Creates the action with a random seed, the grid size and the duration. <br />
* Reference the test cases (Effects Test)
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} seed
* @return {cc.ShuffleTiles}
* @static
@@ -635,7 +635,7 @@ cc.FadeOutUpTiles = cc.FadeOutTRTiles.extend(/** @lends cc.FadeOutUpTiles# */{
* Reference the test cases (Effects Test)
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @return {cc.FadeOutUpTiles}
*/
cc.fadeOutUpTiles = function (duration, gridSize) {
@@ -647,7 +647,7 @@ cc.fadeOutUpTiles = function (duration, gridSize) {
* Creates the action with the grid size and the duration. <br />
* Reference the test cases (Effects Test)
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @return {cc.FadeOutUpTiles}
* @static
* @deprecated since v3.0 <br /> Please use cc.fadeOutUpTiles instead.
@@ -679,7 +679,7 @@ cc.FadeOutDownTiles = cc.FadeOutUpTiles.extend(/** @lends cc.FadeOutDownTiles# *
* Reference the test cases (Effects Test)
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @return {cc.FadeOutDownTiles}
*/
cc.fadeOutDownTiles = function (duration, gridSize) {
@@ -690,7 +690,7 @@ cc.fadeOutDownTiles = function (duration, gridSize) {
* Creates the action with the grid size and the duration. <br />
* Reference the test cases (Effects Test)
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @return {cc.FadeOutDownTiles}
* @static
* @deprecated since v3.0 <br /> Please use cc.fadeOutDownTiles instead.
@@ -704,7 +704,7 @@ cc.FadeOutDownTiles.create = cc.fadeOutDownTiles;
* @class
* @extends cc.TiledGrid3DAction
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number|Null} [seed=0]
* @example
* // turnOffTiles without seed
@@ -722,7 +722,7 @@ cc.TurnOffTiles = cc.TiledGrid3DAction.extend(/** @lends cc.TurnOffTiles# */{
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
* Creates the action with a random seed, the grid size and the duration.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number|Null} [seed=0]
*/
ctor:function (duration, gridSize, seed) {
@@ -735,7 +735,7 @@ cc.TurnOffTiles = cc.TiledGrid3DAction.extend(/** @lends cc.TurnOffTiles# */{
/**
* Initializes the action with a random seed, the grid size and the duration.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number|Null} [seed=0]
* @return {Boolean}
*/
@@ -817,7 +817,7 @@ cc.TurnOffTiles = cc.TiledGrid3DAction.extend(/** @lends cc.TurnOffTiles# */{
* Reference the test cases (Effects Test)
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number|Null} [seed=0]
* @return {cc.TurnOffTiles}
* @example
@@ -836,7 +836,7 @@ cc.turnOffTiles = function (duration, gridSize, seed) {
* Creates the action with a random seed, the grid size and the duration. <br />
* Reference the test cases (Effects Test)
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number|Null} [seed=0]
* @return {cc.TurnOffTiles}
* @static
@@ -850,7 +850,7 @@ cc.TurnOffTiles.create = cc.turnOffTiles;
* @class
* @extends cc.TiledGrid3DAction
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
*/
@@ -863,7 +863,7 @@ cc.WavesTiles3D = cc.TiledGrid3DAction.extend(/** @lends cc.WavesTiles3D# */{
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
* creates the action with a number of waves, the waves amplitude, the grid size and the duration.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
*/
@@ -907,7 +907,7 @@ cc.WavesTiles3D = cc.TiledGrid3DAction.extend(/** @lends cc.WavesTiles3D# */{
/**
* initializes the action with a number of waves, the waves amplitude, the grid size and the duration
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
* @return {Boolean}
@@ -950,7 +950,7 @@ cc.WavesTiles3D = cc.TiledGrid3DAction.extend(/** @lends cc.WavesTiles3D# */{
* Reference the test cases (Effects Test)
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
* @return {cc.WavesTiles3D}
@@ -963,7 +963,7 @@ cc.wavesTiles3D = function (duration, gridSize, waves, amplitude) {
* creates the action with a number of waves, the waves amplitude, the grid size and the duration. <br />
* Reference the test cases (Effects Test)
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} waves
* @param {Number} amplitude
* @return {cc.WavesTiles3D}
@@ -978,7 +978,7 @@ cc.WavesTiles3D.create = cc.wavesTiles3D;
* @class
* @extends cc.TiledGrid3DAction
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} numberOfJumps
* @param {Number} amplitude
*/
@@ -991,7 +991,7 @@ cc.JumpTiles3D = cc.TiledGrid3DAction.extend(/** @lends cc.JumpTiles3D# */{
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
* creates the action with the number of jumps, the sin amplitude, the grid size and the duration.
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} numberOfJumps
* @param {Number} amplitude
*/
@@ -1035,7 +1035,7 @@ cc.JumpTiles3D = cc.TiledGrid3DAction.extend(/** @lends cc.JumpTiles3D# */{
/**
* initializes the action with the number of jumps, the sin amplitude, the grid size and the duration
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} numberOfJumps
* @param {Number} amplitude
*/
@@ -1092,7 +1092,7 @@ cc.JumpTiles3D = cc.TiledGrid3DAction.extend(/** @lends cc.JumpTiles3D# */{
* Reference the test cases (Effects Test)
* @function
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} numberOfJumps
* @param {Number} amplitude
* @return {cc.JumpTiles3D}
@@ -1106,7 +1106,7 @@ cc.jumpTiles3D = function (duration, gridSize, numberOfJumps, amplitude) {
* creates the action with the number of jumps, the sin amplitude, the grid size and the duration. <br />
* Reference the test cases (Effects Test)
* @param {Number} duration
* @param {cc.Size} gridSize
* @param {Size} gridSize
* @param {Number} numberOfJumps
* @param {Number} amplitude
* @return {cc.JumpTiles3D}
@@ -1297,4 +1297,4 @@ cc.splitCols = function (duration, cols) {
* @static
* @deprecated since v3.0 <br /> Please use cc.splitCols instead.
*/
cc.SplitCols.create = cc.splitCols;
cc.SplitCols.create = cc.splitCols;
+2 -2
View File
@@ -4,7 +4,7 @@
* !#zh 动画剪辑,用于存储动画数据。
* @class AnimationClip
* @extends Asset
* @constructor
*
*/
var AnimationClip = cc.Class({
name: 'cc.AnimationClip',
@@ -92,7 +92,7 @@ var AnimationClip = cc.Class({
* @example
*
* var clip = cc.AnimationClip.createWithSpriteFrames(spriteFrames, 10);
*
*
*/
createWithSpriteFrames: function (spriteFrames, sample) {
if (!Array.isArray(spriteFrames)) {
+5 -5
View File
@@ -32,7 +32,7 @@ function computeRatioByType (ratio, type) {
// 虽然叫做 AnimCurve,但除了曲线,可以保存任何类型的值。
//
// @class AnimCurve
// @constructor
//
//
var AnimCurve = cc.Class({
name: 'cc.AnimCurve',
@@ -53,7 +53,7 @@ var AnimCurve = cc.Class({
// 区别于 SampledAnimCurve。
//
// @class DynamicAnimCurve
// @constructor
//
// @extends AnimCurve
//
var DynamicAnimCurve = cc.Class({
@@ -205,7 +205,7 @@ DynamicAnimCurve.Bezier = function (controlPoints) {
*
* @class SampledAnimCurve
* @private
* @constructor
*
* @extends DynamicAnimCurve
*/
var SampledAnimCurve = cc.Class({
@@ -243,7 +243,7 @@ var SampledAnimCurve = cc.Class({
/**
* Event information,
* @class EventInfo
* @constructor
*
*/
var EventInfo = function () {
this.events = [];
@@ -264,7 +264,7 @@ EventInfo.prototype.add = function (func, params) {
/**
*
* @class EventAnimCurve
* @constructor
*
* @extends AnimCurve
*/
var EventAnimCurve = cc.Class({
+2 -2
View File
@@ -11,7 +11,7 @@ var AnimationNode = require('./types').AnimationNode;
* 大多数情况下 动画组件 是足够和易于使用的。如果您需要更多的动画控制接口,请使用 AnimationState。
* @class AnimationState
* @extends AnimationNode
* @constructor
*
*/
/**
@@ -79,7 +79,7 @@ state.onPlay = function () {
state.onStop = function () {
AnimationNode.prototype.onStop.call(this);
if (this.animator) {
this.animator.removeAnimation(this);
}
+2 -2
View File
@@ -2,7 +2,7 @@ var JS = cc.js;
/**
* @class Playable
* @constructor
*
*/
function Playable () {
this._isPlaying = false;
@@ -122,7 +122,7 @@ prototype.pause = function () {
prototype.resume = function () {
if (this._isPlaying) {
this._isPaused = false;
this.onResume();
this.onResume();
}
};
+5 -5
View File
@@ -77,7 +77,7 @@ cc.WrapMode = WrapMode;
* !#en The abstract interface for all playing animation.
* !#zh 所有播放动画的抽象接口。
* @class AnimationNodeBase
* @constructor
*
* @extends Playable
*/
var AnimationNodeBase = function () {
@@ -98,7 +98,7 @@ AnimationNodeBase.prototype.update = function (deltaTime) {};
* !#zh 动画曲线的集合,根据当前时间计算出每条曲线的状态。
* @class AnimationNode
* @extends AnimationNodeBase
* @constructor
*
* @param {Animator} animator
* @param {AnimCurve[]} [curves]
* @param {Object} [timingInput] - This dictionary is used as a convenience for specifying the timing properties of an Animation in bulk.
@@ -166,10 +166,10 @@ function AnimationNode (animator, curves, timingInput) {
this.speed = 1;
/**
* !#en
* !#en
* Wrapping mode of the playing animation.
* Notice : dynamic change wrapMode will reset time and repeatCount property
* !#zh
* !#zh
* 动画循环方式。
* 需要注意的是,动态修改 wrapMode 时,会重置 time 以及 repeatCount
*
@@ -400,7 +400,7 @@ JS.mixin(AnimationNode.prototype, {
cc.defineGetterSetter(AnimationNode.prototype, 'wrapMode',
function () {
return this._wrapMode;
},
},
function (value) {
this._wrapMode = value;
+19
View File
@@ -56,10 +56,29 @@ Audio.Type = {
UNKNOWN: 'UNKNOWN'
};
/**
* !#en Audio state.
* !#zh 声音播放状态
* @enum audioEngine.AudioState
* @memberof cc
*/
Audio.State = {
/**
* @property {Number} ERROR
*/
ERROR : -1,
/**
* @property {Number} INITIALZING
*/
INITIALZING: 0,
/**
* @property {Number} PLAYING
*/
PLAYING: 1,
/**
* @property {Number} PAUSED
*/
PAUSED: 2
};
+1 -1
View File
@@ -249,7 +249,7 @@ var audioEngine = {
* !#zh 获取音频状态。
* @method getState
* @param {Number} audioID audio id.
* @return {cc.audioEngine.AudioState} audio duration.
* @return {audioEngine.AudioState} audio duration.
* @example
* //example
* var state = cc.audioEngine.getState(id);
+3 -3
View File
@@ -299,9 +299,9 @@ cc.DrawingPrimitiveCanvas = cc._Class.extend(/** @lends cc.DrawingPrimitiveCanva
* @override
* @param {HTMLImageElement|HTMLCanvasElement} image
* @param {cc.Vec2} sourcePoint
* @param {cc.Size} sourceSize
* @param {Size} sourceSize
* @param {cc.Vec2} destPoint
* @param {cc.Size} destSize
* @param {Size} destSize
*/
drawImage:function (image, sourcePoint, sourceSize, destPoint, destSize) {
var len = arguments.length;
@@ -430,4 +430,4 @@ cc.DrawingPrimitiveCanvas = cc._Class.extend(/** @lends cc.DrawingPrimitiveCanva
setLineWidth:function (width) {
this._renderContext.getContext().lineWidth = width * cc.view.getScaleX();
}
});
});
-1
View File
@@ -42,7 +42,6 @@ var RawAsset = require('./CCRawAsset');
*
* @class Asset
* @extends RawAsset
* @constructor
*/
cc.Asset = cc.Class({
name: 'cc.Asset', extends: RawAsset,
+1 -1
View File
@@ -28,7 +28,7 @@
* !#zh 音频资源类。
* @class AudioClip
* @extends RawAsset
* @constructor
*
*/
var AudioClip = cc.Class({
name: 'cc.AudioClip',
+2 -2
View File
@@ -22,7 +22,7 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
/**
* @module cc
*/
@@ -31,7 +31,7 @@
* !#zh 位图字体资源类。
* @class BitmapFont
* @extends RawAsset
* @constructor
*
*/
var BitmapFont = cc.Class({
name: 'cc.BitmapFont',
+1 -1
View File
@@ -31,7 +31,7 @@
* !#zh 字体资源类。
* @class Font
* @extends RawAsset
* @constructor
*
*/
var Font = cc.Class({
name: 'cc.Font',
+1 -1
View File
@@ -37,7 +37,7 @@ function visitWrapper (wrapper, visitor) {
* !#zh 预制资源类。
* @class Prefab
* @extends Asset
* @constructor
*
*/
var Prefab = cc.Class({
name: 'cc.Prefab',
+2 -2
View File
@@ -28,7 +28,7 @@
* !#zh 场景资源类。
* @class SceneAsset
* @extends Asset
* @constructor
*
*/
var Scene = cc.Class({
name: 'cc.SceneAsset',
@@ -37,7 +37,7 @@ var Scene = cc.Class({
properties: {
/**
* @property {cc.Scene} scene
* @property {Scene} scene
* @default null
*/
scene: null,
+3 -3
View File
@@ -28,7 +28,7 @@
* !#zh Script 资源类。
* @class _Script
* @extends Asset
* @constructor
*
* @private
*/
var Script = cc.Class({
@@ -44,7 +44,7 @@ cc._Script = Script;
* @class _JavaScript
* @extends Asset
* @private
* @constructor
*
*/
var JavaScript = cc.Class({
name: 'cc.JavaScript',
@@ -58,7 +58,7 @@ cc._JavaScript = JavaScript;
* !#zh CoffeeScript 资源类。
* @class CoffeeScript
* @extends Asset
* @constructor
*
*/
var CoffeeScript = cc.Class({
name: 'cc.CoffeeScript',
+3 -3
View File
@@ -28,7 +28,7 @@
* !#zh 精灵图集资源类。
* @class SpriteAtlas
* @extends RawAsset
* @constructor
*
*/
var SpriteAtlas = cc.Class({
name: 'cc.SpriteAtlas',
@@ -42,7 +42,7 @@ var SpriteAtlas = cc.Class({
/**
* Returns the texture of the sprite atlas
* @method getTexture
* @returns {cc.Texture2D}
* @returns {Texture2D}
*/
getTexture: function () {
var keys = Object.keys(this._spriteFrames);
@@ -73,7 +73,7 @@ var SpriteAtlas = cc.Class({
getSpriteFrames: function () {
var frames = [];
var spriteFrames = this._spriteFrames;
for (var key in spriteFrames) {
frames.push(spriteFrames[key]);
}
+1 -1
View File
@@ -31,7 +31,7 @@
* !#zh TTF 字体资源类。
* @class TTFFont
* @extends Asset
* @constructor
*
*/
var TTFFont = cc.Class({
name: 'cc.TTFFont',
+1 -1
View File
@@ -28,7 +28,7 @@
* !#zh 文本资源类。
* @class TextAsset
* @extends Asset
* @constructor
*
*/
var TextAsset = cc.Class({
name: 'cc.TextAsset',
+4 -4
View File
@@ -1030,7 +1030,7 @@ _ccsg.Node = cc.Class({
/**
* Returns a "local" axis aligned bounding box of the node. <br/>
* @deprecated since v3.0, please use getBoundingBox instead
* @return {cc.Rect}
* @return {Rect}
*/
boundingBox: function(){
cc.log(cc._LogInfos.Node.boundingBox);
@@ -1041,7 +1041,7 @@ _ccsg.Node = cc.Class({
* Returns a "local" axis aligned bounding box of the node. <br/>
* The returned box is relative only to its parent.
* @function
* @return {cc.Rect} The calculated bounding box of the node
* @return {Rect} The calculated bounding box of the node
*/
getBoundingBox: function () {
var rect = cc.rect(0, 0, this._contentSize.width, this._contentSize.height);
@@ -1868,7 +1868,7 @@ _ccsg.Node = cc.Class({
var point = cc.director.convertToGL(touch.getLocation());
return this.convertToNodeSpaceAR(point);
},
/**
* <p>
* Calls children's updateTransform() method recursively. <br/>
@@ -2015,7 +2015,7 @@ _ccsg.Node = cc.Class({
/**
* Returns a "world" axis aligned bounding box of the node.
* @function
* @return {cc.Rect}
* @return {Rect}
*/
getBoundingBoxToWorld: function () {
var rect = cc.rect(0, 0, this._contentSize.width, this._contentSize.height);
+1 -1
View File
@@ -74,7 +74,7 @@ var Canvas = cc.Class({
/**
* !#en The desigin resolution for current scene.
* !#zh 当前场景设计分辨率。
* @property {cc.Size} designResolution
* @property {Size} designResolution
* @default new cc.Size(960, 640)
*/
_designResolution: cc.size(960, 640),
-1
View File
@@ -245,7 +245,6 @@ function _callPreloadOnNode (node) {
*
* @class Component
* @extends Object
* @constructor
*/
var Component = cc.Class({
name: 'cc.Component',
+1 -1
View File
@@ -344,7 +344,7 @@ var Label = cc.Class({
/**
* !#en The font of label.
* !#zh 文本字体。
* @property {cc.Font} font
* @property {Font} font
*/
font: {
get: function () {
+1 -1
View File
@@ -306,7 +306,7 @@ var PageView = cc.Class({
* !#zh 滚动到指定页面
* @method scrollToPage
* @param {Number} idx index of page.
* @param {Float} timeInSecond scrolling time
* @param {Number} timeInSecond scrolling time
*/
scrollToPage: function (idx, timeInSecond) {
if (idx < 0 || idx > this._pages.length)
+2 -2
View File
@@ -95,7 +95,7 @@ var RichText = cc.Class({
/**
* !#en Horizontal Alignment of each line in RichText.
* !#zh 文本内容的水平对齐方式。
* @property {RichText.HorizontalAlign} horizontalAlign
* @property {TextAlignment} horizontalAlign
*/
horizontalAlign: {
default: HorizontalAlign.LEFT,
@@ -161,7 +161,7 @@ var RichText = cc.Class({
/**
* !#en The image atlas for the img tag. For each src value in the img tag, there should be a valid spriteFrame in the image atlas.
* !#zh 对于 img 标签里面的 src 属性名称,都需要在 imageAtlas 里面找到一个有效的 spriteFrame,否则 img tag 会判定为无效。
* @property {cc.SpriteAtlas} imageAtlas
* @property {SpriteAtlas} imageAtlas
*/
imageAtlas: {
default: null,
+1 -1
View File
@@ -68,7 +68,7 @@ var Scrollbar = cc.Class({
/**
* !#en The "handle" part of the scrollbar.
* !#zh 作为当前滚动区域位置显示的滑块 Sprite。
* @property {cc.Sprite} handle
* @property {Sprite} handle
*/
handle: {
default: null,
+1 -1
View File
@@ -66,7 +66,7 @@ var Slider = cc.Class({
/**
* !#en The "handle" part of the slider
* !#zh 滑动器滑块按钮部件
* @property {cc.Button} handle
* @property {Button} handle
*/
handle: {
default: null,
+2 -2
View File
@@ -59,7 +59,7 @@ var Toggle = cc.Class({
* Otherwise, the toggle is a RadioButton.
* !#zh Toggle 所属的 ToggleGroup,这个属性是可选的。如果这个属性为 null,则 Toggle 是一个 CheckBox,
* 否则,Toggle 是一个 RadioButton。
* @property {cc.ToggleGroup} toggleGroup
* @property {ToggleGroup} toggleGroup
*/
toggleGroup: {
default: null,
@@ -70,7 +70,7 @@ var Toggle = cc.Class({
/**
* !#en The image used for the checkmark.
* !#zh Toggle 处于选中状态时显示的图片
* @property {cc.Sprite} checkMark
* @property {Sprite} checkMark
*/
checkMark: {
default: null,
+1 -1
View File
@@ -199,7 +199,7 @@ var VideoPlayer = cc.Class({
/**
* !#en the video player's callback, it will be triggered when certain event occurs, like: playing, paused, stopped and completed.
* !#zh 视频播放回调函数,该回调函数会在特定情况被触发,比如播放中,暂时,停止和完成播放。
* @property {cc.Component.EventHandler[]} videoPlayerEvent
* @property {Component.EventHandler[]} videoPlayerEvent
*/
videoPlayerEvent: {
default: [],
+1 -1
View File
@@ -88,7 +88,7 @@ var WebView = cc.Class({
/**
* !#en The webview's event callback , it will be triggered when certain webview event occurs.
* !#zh WebView 的回调事件,当网页加载过程中,加载完成后或者加载出错时都会回调此函数
* @property {cc.Component.EventHandler[]} webviewLoadedEvents
* @property {Component.EventHandler[]} webviewLoadedEvents
*/
webviewEvents: {
default: [],
+5 -5
View File
@@ -62,7 +62,7 @@ cc.Event.ACCELERATION = 'acceleration';
* !#en The mouse event
* !#zh 鼠标事件类型
* @class Event.EventMouse
* @constructor
*
* @extends Event
* @param {Number} eventType - The mouse event type, UP, DOWN, MOVE, CANCELED
* @param {Boolean} [bubbles=false] - A boolean indicating whether the event bubbles up through the tree or not
@@ -336,7 +336,7 @@ EventMouse.BUTTON_8 = 7;
* !#en The touch event
* !#zh 触摸事件
* @class Event.EventTouch
* @constructor
*
* @extends Event
* @param {Array} touchArr - The array of the touches
* @param {Boolean} bubbles - A boolean indicating whether the event bubbles up through the tree or not
@@ -532,7 +532,7 @@ EventTouch.CANCELED = 3;
* !#zh 加速度事件
* @class Event.EventAcceleration
* @extends Event
* @constructor
*
* @param {Object} acc - The acceleration
* @param {Boolean} bubbles - A boolean indicating whether the event bubbles up through the tree or not
*/
@@ -547,7 +547,7 @@ JS.extend(EventAcceleration, cc.Event);
* !#zh 键盘事件
* @class Event.EventKeyboard
* @extends Event
* @constructor
*
* @param {Number} keyCode - The key code of which triggered this event
* @param {Boolean} isPressed - A boolean indicating whether the key have been pressed
* @param {Boolean} bubbles - A boolean indicating whether the event bubbles up through the tree or not
@@ -564,4 +564,4 @@ cc.Event.EventTouch = EventTouch;
cc.Event.EventAcceleration = EventAcceleration;
cc.Event.EventKeyboard = EventKeyboard;
module.exports = Event;
module.exports = Event;
+3 -3
View File
@@ -29,7 +29,7 @@ var JS = require("../platform/js");
* !#en Base class of all kinds of events.
* !#zh 包含事件相关信息的对象。
* @class Event
* @constructor
*
*/
/**
@@ -241,7 +241,7 @@ cc.Event.BUBBLING_PHASE = 3;
* !#en The Custom event
* !#zh 自定义事件
* @class Event.EventCustom
* @constructor
*
* @extends Event
*/
@@ -296,4 +296,4 @@ JS.mixin(EventCustom.prototype, {
cc.Event.EventCustom = EventCustom;
module.exports = cc.Event;
module.exports = cc.Event;
+5 -5
View File
@@ -36,7 +36,7 @@
* @param {String} text
* @param {String|cc.FontDefinition} [fontName="Arial"]
* @param {Number} [fontSize=16]
* @param {cc.Size} [dimensions=cc.size(0,0)]
* @param {Size} [dimensions=cc.size(0,0)]
* @param {cc.TextAlignment} [hAlignment=cc.TextAlignment.LEFT]
* @param {cc.VerticalTextAlignment} [vAlignment=cc.VerticalTextAlignment.TOP]
* @example
@@ -106,7 +106,7 @@ cc.LabelTTF = _ccsg.Sprite.extend(/** @lends cc.LabelTTF# */{
* @param {String} label string
* @param {String} fontName
* @param {Number} fontSize
* @param {cc.Size} [dimensions=]
* @param {Size} [dimensions=]
* @param {Number} [hAlignment=]
* @param {Number} [vAlignment=]
* @return {Boolean} return false on error
@@ -228,7 +228,7 @@ cc.LabelTTF = _ccsg.Sprite.extend(/** @lends cc.LabelTTF# */{
/**
* Returns the dimensions of cc.LabelTTF, the dimension is the maximum size of the label, set it so that label will automatically change lines when necessary.
* @see cc.LabelTTF#setDimensions, cc.LabelTTF#boundingWidth and cc.LabelTTF#boundingHeight
* @return {cc.Size}
* @return {Size}
*/
getDimensions: function () {
return cc.size(this._dimensions);
@@ -796,7 +796,7 @@ cc.LabelTTF = _ccsg.Sprite.extend(/** @lends cc.LabelTTF# */{
/**
* Returns the actual content size of the label, the content size is the real size that the label occupied while dimension is the outer bounding box of the label.
* @returns {cc.Size} The content size
* @returns {Size} The content size
*/
getContentSize: function () {
if (this._needUpdateTexture)
@@ -877,7 +877,7 @@ cc.LabelTTF._fontStyleRE = /^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/;
* @param {String} text
* @param {String|cc.FontDefinition} [fontName="Arial"]
* @param {Number} [fontSize=16]
* @param {cc.Size} [dimensions=cc.size(0,0)]
* @param {Size} [dimensions=cc.size(0,0)]
* @param {cc.TextAlignment} [hAlignment=cc.TextAlignment.LEFT]
* @param {cc.VerticalTextAlignment} [vAlignment=cc.VerticalTextAlignment.TOP]
* @return {cc.LabelTTF|Null}
+3 -3
View File
@@ -32,7 +32,7 @@ function Entry (uuid, type) {
* !#en AssetTable is used to find asset's uuid by url.
* !#zh AssetTable 用于查找资源的 uuid 和 url。
* @class AssetTable
* @constructor
*
*/
function AssetTable () {
@@ -48,7 +48,7 @@ function isMatchByWord (path, test) {
}
cc.js.mixin(AssetTable.prototype, {
getUuid: function (path, type) {
path = cc.url.normalize(path);
var item = this._pathToUuid[path];
@@ -129,7 +129,7 @@ cc.js.mixin(AssetTable.prototype, {
getAllPaths: function () {
return Object.keys(this._pathToUuid);
},
/**
* !#en TODO
* !#zh 以路径为 key,uuid 为值添加到表中。
+19 -2
View File
@@ -246,10 +246,27 @@ var LoadingItems = function (pipeline, urlList, onProgress, onComplete) {
* !#en The item states of the LoadingItems, its value could be LoadingItems.ItemState.WORKING | LoadingItems.ItemState.COMPLETET | LoadingItems.ItemState.ERROR
* !#zh LoadingItems 队列中的加载项状态,状态的值可能是 LoadingItems.ItemState.WORKING | LoadingItems.ItemState.COMPLETET | LoadingItems.ItemState.ERROR
* @enum LoadingItems.ItemState
* @static
*/
/**
* @property {Number} WORKING
*/
/**
* @property {Number} COMPLETET
*/
/**
* @property {Number} ERROR
*/
LoadingItems.ItemState = new cc.Enum(ItemState);
/**
* @class LoadingItems
* @extends CallbacksInvoker
*/
/**
* !#en The constructor function of LoadingItems, this will use recycled LoadingItems in the internal pool if possible.
* You can pass onProgress and onComplete callbacks to visualize the loading process.
@@ -570,7 +587,7 @@ JS.mixin(LoadingItems.prototype, CallbacksInvoker.prototype, {
* !#en Complete an item in the LoadingItems queue, please do not call this method unless you know what's happening.
* !#zh 通知 LoadingItems 队列一个 item 对象已完成,请不要调用这个函数,除非你知道自己在做什么。
* @method itemComplete
* @param {id} item The item id
* @param {String} item The item id
*/
itemComplete: function (id) {
var item = this.map[id];
+1 -1
View File
@@ -40,7 +40,7 @@ var PersistentMask = ~(ToDestroy | Dirty | Destroying | DontDestroy | Activating
/**
* The base class of most of all the objects in Fireball.
* @class Object
* @constructor
*
* @main
* @private
*/
+2 -2
View File
@@ -29,7 +29,7 @@ var JS = require('./js');
* The CallbacksHandler is an abstract class that can register and unregister callbacks by key.
* Subclasses should implement their own methods about how to invoke the callbacks.
* @class _CallbacksHandler
* @constructor
*
* @private
*/
var CallbacksHandler = (function () {
@@ -224,7 +224,7 @@ CallbacksHandler.prototype.remove = function (key, callback, target) {
* !#en The callbacks invoker to handle and invoke callbacks by key.
* !#zh CallbacksInvoker 用来根据 Key 管理并调用回调方法。
* @class CallbacksInvoker
* @constructor
*
* @extends _CallbacksHandler
*/
var CallbacksInvoker = function () {
+1 -1
View File
@@ -33,7 +33,7 @@ var Attr = require('./attribute');
* !#en Contains information collected during deserialization
* !#zh 包含反序列化时的一些信息
* @class Details
* @constructor
*
*/
var Details = function () {
+2 -2
View File
@@ -282,8 +282,8 @@ cc.SpriteFrameAnimation = cc._Class.extend({
/**
* Adds a frame with a texture and a rect. Internally it will create a cc.SpriteFrame and it will add it. The frame will be added with one "delay unit".
* @method addSpriteFrameWithTexture
* @param {cc.Texture2D} texture
* @param {cc.Rect} rect
* @param {Texture2D} texture
* @param {Rect} rect
*/
addSpriteFrameWithTexture:function (texture, rect) {
var pFrame = new cc.SpriteFrame(texture, rect);
+9 -9
View File
@@ -52,7 +52,7 @@ var EventTarget = require("../cocos2d/core/event/event-target");
* @extends _ccsg.Node
*
* @param {String|cc.SpriteFrame|HTMLImageElement|cc.Texture2D} fileName The string which indicates a path to image file, e.g., "scene1/monster.png".
* @param {cc.Rect} rect Only the contents inside rect of pszFileName's texture will be applied for this sprite.
* @param {Rect} rect Only the contents inside rect of pszFileName's texture will be applied for this sprite.
* @param {Boolean} [rotated] Whether or not the texture rectangle is rotated.
* @example
*
@@ -79,7 +79,7 @@ var EventTarget = require("../cocos2d/core/event/event-target");
* @property {Number} offsetX - <@readonly> The offset position on x axis of the sprite in texture. Calculated automatically by editors like Zwoptex.
* @property {Number} offsetY - <@readonly> The offset position on x axis of the sprite in texture. Calculated automatically by editors like Zwoptex.
* @property {Number} atlasIndex - The index used on the TextureAtlas.
* @property {cc.Texture2D} texture - Texture used to render the sprite.
* @property {Texture2D} texture - Texture used to render the sprite.
* @property {Boolean} textureRectRotated - <@readonly> Indicate whether the texture rectangle is rotated.
* @property {cc.TextureAtlas} textureAtlas - The weak reference of the cc.TextureAtlas when the sprite is rendered using via cc.SpriteBatchNode.
* @property {cc.SpriteBatchNode} batchNode - The batch node object if this sprite is rendered by cc.SpriteBatchNode.
@@ -197,7 +197,7 @@ _ccsg.Sprite = _ccsg.Node.extend({
/**
* Returns the rect of the _ccsg.Sprite in points
* @return {cc.Rect}
* @return {Rect}
*/
getTextureRect:function () {
return cc.rect(this._rect);
@@ -300,7 +300,7 @@ _ccsg.Sprite = _ccsg.Node.extend({
* Do not call it manually. Use setTextureRect instead. <br/>
* (override this method to generate "double scale" sprites)
* </p>
* @param {cc.Rect} rect
* @param {Rect} rect
*/
setVertexRect:function (rect) {
var locRect = this._rect;
@@ -530,7 +530,7 @@ _ccsg.Sprite = _ccsg.Node.extend({
// CCTextureProtocol
/**
* Returns the texture of the sprite node
* @returns {cc.Texture2D}
* @returns {Texture2D}
*/
getTexture:function () {
return this._texture;
@@ -640,7 +640,7 @@ _ccsg.Sprite = _ccsg.Node.extend({
* Please pass parameters to the constructor to initialize the sprite, do not call this function yourself.
* </p>
* @param {String} filename The path to an image file in local file system
* @param {cc.Rect} rect The rectangle assigned the content area from texture.
* @param {Rect} rect The rectangle assigned the content area from texture.
* @return {Boolean} true if the sprite is initialized properly, false otherwise.
*/
initWithFile:function (filename, rect) {
@@ -665,7 +665,7 @@ _ccsg.Sprite = _ccsg.Node.extend({
* Please pass parameters to the constructor to initialize the sprite, do not call this function yourself.
* @function
* @param {cc.Texture2D|HTMLImageElement|HTMLCanvasElement} texture A pointer to an existing CCTexture2D object. You can use a CCTexture2D object for many sprites.
* @param {cc.Rect} [rect] Only the contents inside rect of this texture will be applied for this sprite.
* @param {Rect} [rect] Only the contents inside rect of this texture will be applied for this sprite.
* @param {Boolean} [rotated] Whether or not the texture rectangle is rotated.
* @param {Boolean} [counterclockwise=true] Whether or not the texture rectangle rotation is counterclockwise (texture package is counterclockwise, spine is clockwise).
* @return {Boolean} true if the sprite is initialized properly, false otherwise.
@@ -734,9 +734,9 @@ _ccsg.Sprite = _ccsg.Node.extend({
/**
* Updates the texture rect of the CCSprite in points.
* @function
* @param {cc.Rect} rect a rect of texture
* @param {Rect} rect a rect of texture
* @param {Boolean} [rotated] Whether or not the texture is rotated
* @param {cc.Size} [untrimmedSize] The original pixels size of the texture
* @param {Size} [untrimmedSize] The original pixels size of the texture
* @param {Boolean} [needConvert] contentScaleFactor switch
*/
setTextureRect: function (rect, rotated, untrimmedSize, needConvert) {
+8 -8
View File
@@ -56,8 +56,8 @@ var dataPool = {
};
var FIX_ARTIFACTS_BY_STRECHING_TEXEL = cc.macro.FIX_ARTIFACTS_BY_STRECHING_TEXEL,
webgl,
vl, vb, vt, vr,
webgl,
vl, vb, vt, vr,
cornerId = [];
/*
@@ -74,8 +74,8 @@ var FIX_ARTIFACTS_BY_STRECHING_TEXEL = cc.macro.FIX_ARTIFACTS_BY_STRECHING_TEXEL
* @class
* @extends _ccsg.Node
*
* @property {cc.Size} preferredSize - The preferred size of the 9-slice sprite
* @property {cc.Rect} capInsets - The cap insets of the 9-slice sprite
* @property {Size} preferredSize - The preferred size of the 9-slice sprite
* @property {Rect} capInsets - The cap insets of the 9-slice sprite
* @property {Number} insetLeft - The left inset of the 9-slice sprite
* @property {Number} insetTop - The top inset of the 9-slice sprite
* @property {Number} insetRight - The right inset of the 9-slice sprite
@@ -302,7 +302,7 @@ var scale9QuadGenerator = {
v[2] = (leftWidth + textureRect.y) / atlasHeight;
v[1] = (leftWidth + centerWidth + textureRect.y) / atlasHeight;
v[0] = (textureRect.y + textureRect.width - texelCorrect) / atlasHeight;
for (row = 0; row < 4; row++) {
for (col = 0; col < 4; col++) {
uvs[offset] = u[row];
@@ -358,7 +358,7 @@ var tiledQuadGenerator = {
v0 = (textureRect.y + textureRect.height - texelCorrect) / atlasHeight;
v1 = (textureRect.y + texelCorrect) / atlasHeight;
}
//build quads
var rectWidth = textureRect.width;
var rectHeight = textureRect.height;
@@ -451,7 +451,7 @@ var fillQuadGeneratorBar = {
uvs = sprite._uvs;
var fillEnd;
//build vertices
var l = 0, b = 0,
var l = 0, b = 0,
r = contentSize.width, t = contentSize.height;
//build uvs
var atlasWidth = spriteFrame._texture._pixelWidth;
@@ -637,7 +637,7 @@ var fillQuadGeneratorRadial = {
if(center.y > _vertices[1].y) {
center.y = _vertices[1].y;
}
rawVerts[0] = rawVerts[4] = this._vertices[0].x;
rawVerts[2] = rawVerts[6] = this._vertices[1].x;
rawVerts[1] = rawVerts[3] = this._vertices[0].y;
+4 -4
View File
@@ -321,7 +321,7 @@ cc.SpriteBatchNode = _ccsg.Node.extend(/** @lends cc.SpriteBatchNode# */{
/**
* Set the texture property
* @function
* @param {cc.Texture2D} tex
* @param {Texture2D} tex
* @return {Boolean}
*/
initWithTexture: function (tex) {
@@ -333,7 +333,7 @@ cc.SpriteBatchNode = _ccsg.Node.extend(/** @lends cc.SpriteBatchNode# */{
/**
* Returns texture of the sprite batch node
* @function
* @return {cc.Texture2D}
* @return {Texture2D}
*/
getTexture: function () {
return this._texture;
@@ -342,7 +342,7 @@ cc.SpriteBatchNode = _ccsg.Node.extend(/** @lends cc.SpriteBatchNode# */{
/**
* Sets the texture of the sprite batch node.
* @function
* @param {cc.Texture2D} texture
* @param {Texture2D} texture
*/
setTexture: function(texture){
this._texture = texture;
@@ -388,7 +388,7 @@ cc.SpriteBatchNode = _ccsg.Node.extend(/** @lends cc.SpriteBatchNode# */{
zOrder = (zOrder === undefined) ? child.zIndex : zOrder;
tag = (tag === undefined) ? child.tag : tag;
_ccsg.Node.prototype.addChild.call(this, child, zOrder, tag);
// Apply shader
if (this._renderCmd._shaderProgram) {
child.shaderProgram = this._renderCmd._shaderProgram;
+1 -1
View File
@@ -49,7 +49,7 @@ var EventTarget = require("../event/event-target");
*
* @class SpriteFrame
* @extends Asset
* @constructor
*
* @example
* // load a cc.SpriteFrame with image path (Recommend)
* var self = this;
+2 -2
View File
@@ -37,7 +37,7 @@ var game = require('../CCGame');
* Quads can be re-ordered in runtime <br />
* The TextureAtlas capacity can be increased or decreased in runtime.</p>
* @class TextureAtlas
* @constructor
*
*/
var TextureAtlas = Class.extend(/** @lends cc.TextureAtlas# */{ //WebGL only
@@ -729,4 +729,4 @@ if (cc._renderType === game.RENDER_TYPE_WEBGL) {
* @readonly
*/
cc.TextureAtlas = module.exports = TextureAtlas;
cc.TextureAtlas = module.exports = TextureAtlas;
+17 -4
View File
@@ -28,10 +28,10 @@
* !#en the device accelerometer reports values for each axis in units of g-force.
* !#zh 设备重力传感器传递的各个轴的数据。
* @class Acceleration
* @constructor
*
*/
/**
* @method Acceleration
* @method Acceleration
* @param {Number} x
* @param {Number} y
* @param {Number} z
@@ -52,7 +52,7 @@ cc.Acceleration = function (x, y, z, timestamp) {
* @Constructor
*/
/**
* @method BlendFunc
* @method BlendFunc
* @param {Number} src1 source blend function
* @param {Number} dst1 destination blend function
* @return {BlendFunc}
@@ -201,7 +201,7 @@ cc.blendFuncDisable = cc.BlendFunc._disable;
* });
*
* @class FontDefinition
* @constructor
*
*/
/*
* !#en TODO
@@ -248,9 +248,22 @@ cc.FontDefinition.prototype._getCanvasFontStr = function(){
return this.fontStyle + " " + this.fontWeight + " " + this.fontSize + "px/"+lineHeight+" '" + this.fontName + "'";
};
/**
* @enum TextAlignment
*/
cc.TextAlignment = cc.Enum({
/**
* @property {Number} LEFT
*/
LEFT: 0,
/**
* @property {Number} CENTER
*/
CENTER: 1,
/**
* @property {Number} RIGHT
*/
RIGHT: 2
});
+18 -18
View File
@@ -33,7 +33,7 @@
/**
* @class WebGLColor
* @constructor
*
*/
/**
* @method WebGLColor
@@ -114,7 +114,7 @@ cc.js.getset(_p, "a", _p._getA, _p._setA);
* @contructor
*/
/**
* @method Vertex2F
* @method Vertex2F
* @param {Number} x
* @param {Number}y
* @param {Array} arrayBuffer
@@ -155,9 +155,9 @@ cc.js.getset(_p, "y", _p._getY, _p._setY);
// redefine cc.Vertex3F
/**
* @class Vertex3F
* @constructor
*
*/
/**
/**
* @method Vertex3F
* @param {Number} x
* @param {Number} y
@@ -209,9 +209,9 @@ cc.js.getset(_p, "z", _p._getZ, _p._setZ);
// redefine cc.Tex2F
/**
* @class Tex2F
* @constructor
*
*/
/**
/**
* @method Tex2F
* @param {Number} u
* @param {Number} v
@@ -228,7 +228,7 @@ cc.Tex2F = function (u, v, arrayBuffer, offset) {
this._view[1] = v || 0;
};
/**
* @property BYTES_PER_ELEMENT
* @property BYTES_PER_ELEMENT
* @final
* @type {Number}
*/
@@ -253,10 +253,10 @@ cc.js.getset(_p, "v", _p._getV, _p._setV);
//redefine cc.Quad2
/**
* @class Quad2
* @constructor
*
*/
/**
/**
* @method Quad2
* @param {Vertex2F} tl
* @param {Vertex2F} tr
@@ -327,7 +327,7 @@ cc.js.getset(_p, "br", _p._getBR, _p._setBR);
* @Construct
*/
/**
* @method Quad3
* @method Quad3
* @param {Vertex3F} bl1
* @param {Vertex3F} br1
* @param {Vertex3F} tl1
@@ -339,7 +339,7 @@ cc.js.getset(_p, "br", _p._getBR, _p._setBR);
cc.Quad3 = function (bl1, br1, tl1, tr1, arrayBuffer, offset) {
this._arrayBuffer = arrayBuffer || new ArrayBuffer(cc.Quad3.BYTES_PER_ELEMENT);
this._offset = offset || 0;
var locArrayBuffer = this._arrayBuffer, locOffset = this._offset, locElementLen = cc.Vertex3F.BYTES_PER_ELEMENT;
this.bl = bl ? new cc.Vertex3F(bl.x, bl.y, bl.z, locArrayBuffer, locOffset) : new cc.Vertex3F(0, 0, 0, locArrayBuffer, locOffset);
locOffset += locElementLen;
@@ -358,9 +358,9 @@ cc.Quad3.BYTES_PER_ELEMENT = 48;
//redefine cc.V3F_C4B_T2F
/**
* @class V3F_C4B_T2F
* @constructor
*
*/
/**
/**
* @method V3F_C4B_T2F
* @param {Vertex3F} vertices
* @param {Color} colors
@@ -426,10 +426,10 @@ cc.js.getset(_p, "texCoords", _p._getTexCoords, _p._setTexCoords);
//redefine cc.V3F_C4B_T2F_Quad
/**
* @class V3F_C4B_T2F_Quad
* @constructor
*
*/
/**
* @method V3F_C4B_T2F_Quad
* @method V3F_C4B_T2F_Quad
* @param {V3F_C4B_T2F} tl
* @param {V3F_C4B_T2F} bl
* @param {V3F_C4B_T2F} tr
@@ -568,9 +568,9 @@ cc.V3F_C4B_T2F_QuadsCopy = function (sourceQuads) {
//redefine cc.V2F_C4B_T2F
/**
* @class V2F_C4B_T2F
* @constructor
*
*/
/**
/**
* @method V2F_C4B_T2F
* @param {Vertex2F} vertices
* @param {Color} colors
@@ -633,7 +633,7 @@ cc.js.getset(_p, "texCoords", _p._getTexCoords, _p._setTexCoords);
//redefine cc.V2F_C4B_T2F_Triangle
/**
* @class V2F_C4B_T2F_Triangle
* @constructor
*
*/
/**
* @method V2F_C4B_T2F_Triangle
+1 -1
View File
@@ -29,7 +29,7 @@ var JS = require('../platform/js');
* !#en The base class of all value types.
* !#zh 所有值类型的基类。
* @class ValueType
* @constructor
*
*/
function ValueType () {}
JS.setClassName('cc.ValueType', ValueType);
+1 -1
View File
@@ -33,7 +33,7 @@ var CCClass = require('../platform/CCClass');
*
* @class Vec2
* @extends ValueType
* @constructor
*
*/
/**
+3 -3
View File
@@ -50,7 +50,7 @@ cc.Grabber = cc._Class.extend({
/**
* grab
* @param {cc.Texture2D} texture
* @param {Texture2D} texture
*/
grab:function (texture) {
var locGL = this._gl;
@@ -69,7 +69,7 @@ cc.Grabber = cc._Class.extend({
/**
* should be invoked before drawing
* @param {cc.Texture2D} texture
* @param {Texture2D} texture
*/
beforeRender:function (texture) {
var locGL = this._gl;
@@ -93,7 +93,7 @@ cc.Grabber = cc._Class.extend({
/**
* should be invoked after drawing
* @param {cc.Texture2D} texture
* @param {Texture2D} texture
*/
afterRender:function (texture) {
var locGL = this._gl;
+15 -15
View File
@@ -62,10 +62,10 @@ cc.GridBase = cc._Class.extend(/** @lends cc.GridBase# */{
/**
* create one cc.GridBase Object
* Constructor of cc.GridBase
* @param {cc.Size} gridSize
* @param {cc.Texture2D} [texture=]
* @param {Size} gridSize
* @param {Texture2D} [texture=]
* @param {Boolean} [flipped=]
* @param {cc.Rect} rect
* @param {Rect} rect
*/
ctor:function (gridSize, texture, flipped, rect) {
cc.sys._checkWebGLRenderMode();
@@ -123,7 +123,7 @@ cc.GridBase = cc._Class.extend(/** @lends cc.GridBase# */{
/**
* get size of the grid
* @return {cc.Size}
* @return {Size}
*/
getGridSize:function () {
return cc.size(this._gridSize.width, this._gridSize.height);
@@ -131,7 +131,7 @@ cc.GridBase = cc._Class.extend(/** @lends cc.GridBase# */{
/**
* set size of the grid
* @param {cc.Size} gridSize
* @param {Size} gridSize
*/
setGridSize:function (gridSize) {
this._gridSize.width = parseInt(gridSize.width);
@@ -140,7 +140,7 @@ cc.GridBase = cc._Class.extend(/** @lends cc.GridBase# */{
/**
* set rect of the grid
* @param {cc.Rect} rect
* @param {Rect} rect
*/
setGridRect:function (rect) {
this._gridRect = rect;
@@ -148,7 +148,7 @@ cc.GridBase = cc._Class.extend(/** @lends cc.GridBase# */{
/**
* get rect of the grid
* @return {cc.Rect} rect
* @return {Rect} rect
*/
getGridRect:function () {
return this._gridRect;
@@ -192,10 +192,10 @@ cc.GridBase = cc._Class.extend(/** @lends cc.GridBase# */{
/**
*
* @param {cc.Size} gridSize
* @param {cc.Texture2D} [texture=]
* @param {Size} gridSize
* @param {Texture2D} [texture=]
* @param {Boolean} [flipped=false]
* @param {cc.Rect} [rect=]
* @param {Rect} [rect=]
* @returns {boolean}
*/
initWithSize:function (gridSize, texture, flipped, rect) {
@@ -345,10 +345,10 @@ cc.Grid3D = cc.GridBase.extend(/** @lends cc.Grid3D# */{
/**
* create one Grid3D object
* Constructor of cc.Grid3D
* @param {cc.Size} gridSize
* @param {cc.Texture2D} [texture=]
* @param {Size} gridSize
* @param {Texture2D} [texture=]
* @param {Boolean} [flipped=]
* @param {cc.Rect} [rect=]
* @param {Rect} [rect=]
*/
ctor:function (gridSize, texture, flipped, rect) {
cc.GridBase.prototype.ctor.call(this);
@@ -595,8 +595,8 @@ cc.TiledGrid3D = cc.GridBase.extend(/** @lends cc.TiledGrid3D# */{
/**
* create one TiledGrid3D object
* Constructor of cc.TiledGrid3D
* @param {cc.Size} gridSize
* @param {cc.Texture2D} [texture=]
* @param {Size} gridSize
* @param {Texture2D} [texture=]
* @param {Boolean} [flipped=]
*/
ctor:function (gridSize, texture, flipped, rect) {
+2 -2
View File
@@ -30,7 +30,7 @@
* The stack of cc.math.Matrix4
* @param {cc.math.Matrix4} [top]
* @param {Array} [stack]
* @constructor
*
*/
cc.math.Matrix4Stack = function(top, stack) {
this.top = top;
@@ -73,4 +73,4 @@ proto._getFromPool = function (item) {
proto._putInPool = function(matrix){
this._matrixPool.push(matrix);
};
};
+1 -1
View File
@@ -32,7 +32,7 @@
* @param {Number} [y=0]
* @param {Number} [z=0]
* @param {Number} [w=0]
* @constructor
*
*/
cc.math.Quaternion = function (x, y, z, w) {
if (x && y === undefined) {
+2 -2
View File
@@ -129,7 +129,7 @@ cc.MenuItem = _ccsg.Node.extend(/** @lends cc.MenuItem# */{
/**
* return rect value of cc.MenuItem
* @return {cc.Rect}
* @return {Rect}
*/
rect: function () {
var locPosition = this._position, locContentSize = this._contentSize, locAnchorPoint = this._anchorPoint;
@@ -739,7 +739,7 @@ cc.MenuItemSprite = cc.MenuItem.extend(/** @lends cc.MenuItemSprite# */{
if (this._normalImage) {
this.removeChild(this._normalImage, true);
}
this._normalImage = normalImage;
if(!this._normalImage)
return;
+3 -3
View File
@@ -180,7 +180,7 @@ function vertexListIsClockwise (verts) {
* @class
* @extends _ccsg.Node
*
* @property {cc.Texture2D} texture - Texture used for the motion streak.
* @property {Texture2D} texture - Texture used for the motion streak.
* @property {Boolean} fastMode - Indicate whether use fast mode.
* @property {Boolean} startingPositionInitialized - Indicate whether starting position initialized.
* @example
@@ -297,7 +297,7 @@ _ccsg.MotionStreak = _ccsg.Node.extend({
/**
* Gets the texture.
* @return {cc.Texture2D}
* @return {Texture2D}
*/
getTexture:function () {
return this.texture;
@@ -305,7 +305,7 @@ _ccsg.MotionStreak = _ccsg.Node.extend({
/**
* Set the texture.
* @param {cc.Texture2D} texture
* @param {Texture2D} texture
*/
setTexture:function (texture) {
if (this.texture !== texture)
+1 -1
View File
@@ -27,7 +27,7 @@
* Class for particle asset handling.
* @class ParticleAsset
* @extends RawAsset
* @constructor
*
*/
var ParticleAsset = cc.Class({
name: 'cc.ParticleAsset',
+2 -2
View File
@@ -328,7 +328,7 @@ cc.ParticleBatchNode = _ccsg.Node.extend(/** @lends cc.ParticleBatchNode# */{
/**
* returns the used texture
* @return {cc.Texture2D}
* @return {Texture2D}
*/
getTexture:function () {
return this.textureAtlas.texture;
@@ -336,7 +336,7 @@ cc.ParticleBatchNode = _ccsg.Node.extend(/** @lends cc.ParticleBatchNode# */{
/**
* sets a new texture. it will be retained
* @param {cc.Texture2D} texture
* @param {Texture2D} texture
*/
setTexture:function (texture) {
this.textureAtlas.texture = texture;
+1 -1
View File
@@ -662,7 +662,7 @@ properties.emitterMode.type = EmitterMode;
* emitter.startSpin = 0;
*
* @class ParticleSystem
* @extends cc._RendererUnderSG
* @extends _RendererUnderSG
*/
var ParticleSystem = cc.Class({
name: 'cc.ParticleSystem',
+10 -10
View File
@@ -57,8 +57,8 @@ var tiffReader = require('../cocos2d/particle/CCTIFFReader');
* @param {cc.Vec2} [startPos=cc.p(0,0)]
* @param {cc.Color} [color= cc.color(0, 0, 0, 255)]
* @param {cc.Color} [deltaColor=cc.color(0, 0, 0, 255)]
* @param {cc.Size} [size=0]
* @param {cc.Size} [deltaSize=0]
* @param {Size} [size=0]
* @param {Size} [deltaSize=0]
* @param {Number} [rotation=0]
* @param {Number} [deltaRotation=0]
* @param {Number} [timeToLive=0]
@@ -160,7 +160,7 @@ cc.Particle.TemporaryPoints = [
* - radius direction (Radius mode) (Particle Designer supports outwards to inwards direction only) <br/>
* It is possible to customize any of the above mentioned properties in runtime. Example: <br/>
* </p>
* @class
* @class _ccsg.ParticleSystem
* @extends _ccsg.Node
*
* @property {Boolean} opacityModifyRGB - Indicate whether the alpha value modify color.
@@ -207,7 +207,7 @@ cc.Particle.TemporaryPoints = [
* @property {ccsg.ParticleSystem.Type} positionType - Particles movement type: ccsg.ParticleSystem.Type.FREE | ccsg.ParticleSystem.Type.GROUPED.
* @property {Number} totalParticles - Maximum particles of the system.
* @property {Boolean} autoRemoveOnFinish - Indicate whether the node will be auto-removed when it has no particles left.
* @property {cc.Texture2D} texture - Texture of Particle System.
* @property {Texture2D} texture - Texture of Particle System.
*
* @example
* emitter.radialAccel = 15;
@@ -371,7 +371,7 @@ _ccsg.ParticleSystem = _ccsg.Node.extend({
* <p> initializes the texture with a rectangle measured Points<br/>
* pointRect should be in Texture coordinates, not pixel coordinates
* </p>
* @param {cc.Rect} pointRect
* @param {Rect} pointRect
*/
initTexCoordsWithRect:function (pointRect) {
this._renderCmd.initTexCoordsWithRect(pointRect);
@@ -1052,7 +1052,7 @@ _ccsg.ParticleSystem = _ccsg.Node.extend({
/**
* get Texture of Particle System
* @return {cc.Texture2D}
* @return {Texture2D}
*/
getTexture:function () {
return this._texture;
@@ -1131,7 +1131,7 @@ _ccsg.ParticleSystem = _ccsg.Node.extend({
* dest blend function = GL_ONE;
*/
isBlendAdditive:function () {
return (( this._blendFunc.src === cc.macro.SRC_ALPHA && this._blendFunc.dst === cc.macro.ONE) ||
return (( this._blendFunc.src === cc.macro.SRC_ALPHA && this._blendFunc.dst === cc.macro.ONE) ||
(this._blendFunc.src === cc.macro.ONE && this._blendFunc.dst === cc.macro.ONE));
},
@@ -1236,7 +1236,7 @@ _ccsg.ParticleSystem = _ccsg.Node.extend({
/**
* return bounding box of particle system in world space
* @return {cc.Rect}
* @return {Rect}
*/
getBoundingBoxToWorld:function () {
return cc.rect(0, 0, cc._canvas.width, cc._canvas.height);
@@ -1971,8 +1971,8 @@ _ccsg.ParticleSystem = _ccsg.Node.extend({
/**
* Sets a new texture with a rect. The rect is in Points.
* @param {cc.Texture2D} texture
* @param {cc.Rect} rect
* @param {Texture2D} texture
* @param {Rect} rect
*/
setTextureWithRect: function (texture, rect) {
var locTexture = this._texture;
+3 -3
View File
@@ -45,7 +45,7 @@
* Create a PhysicsSprite with filename and rect
* Constructor of cc.PhysicsSprite for Box2d
* @param {String|cc.Texture2D|cc.SpriteFrame} fileName
* @param {cc.Rect} rect
* @param {Rect} rect
* @example
*
* 1.Create a sprite with image path and rect
@@ -209,7 +209,7 @@
* Create a PhysicsSprite with filename and rect
* Constructor of cc.PhysicsSprite for chipmunk
* @param {String|cc.Texture2D|cc.SpriteFrame} fileName
* @param {cc.Rect} rect
* @param {Rect} rect
* @example
*
* 1.Create a sprite with image path and rect
@@ -416,7 +416,7 @@
* Create a PhysicsSprite with filename and rect
* @deprecated since v3.0, please use new cc.PhysicsSprite(fileName, rect) instead
* @param {String|cc.Texture2D|cc.SpriteFrame} fileName
* @param {cc.Rect} rect
* @param {Rect} rect
* @return {cc.PhysicsSprite}
*/
cc.PhysicsSprite.create = function (fileName, rect) {
+2 -2
View File
@@ -126,8 +126,8 @@ cc.RenderTexture = _ccsg.Node.extend(/** @lends cc.RenderTexture# */{
/**
* Used for grab part of screen to a texture.
* @param {cc.Vec2} rtBegin
* @param {cc.Rect} fullRect
* @param {cc.Rect} fullViewport
* @param {Rect} fullRect
* @param {Rect} fullViewport
*/
setVirtualViewport: function(rtBegin, fullRect, fullViewport){
this._renderCmd.setVirtualViewport(rtBegin, fullRect, fullViewport);
+4 -4
View File
@@ -239,7 +239,7 @@ cc.gl.setProjectionMatrixDirty = function () {
* If the texture is not already bound, it binds it.<br/>
* If cc.macro.ENABLE_GL_STATE_CACHE is disabled, it will call glBindTexture() directly.
* @function
* @param {cc.Texture2D} textureId
* @param {Texture2D} textureId
*/
cc.gl.bindTexture2D = function (textureId) {
cc.gl.bindTexture2DN(0, textureId);
@@ -250,7 +250,7 @@ cc.gl.bindTexture2D = function (textureId) {
* If cc.macro.ENABLE_GL_STATE_CACHE is disabled, it will call glBindTexture() directly.
* @function
* @param {Number} textureUnit
* @param {cc.Texture2D} textureId
* @param {Texture2D} textureId
*/
cc.gl.bindTexture2DN = ENABLE_GL_STATE_CACHE ? function (textureUnit, textureId) {
if (_currentBoundTexture[textureUnit] === textureId)
@@ -276,7 +276,7 @@ cc.gl.bindTexture2DN = ENABLE_GL_STATE_CACHE ? function (textureUnit, textureId)
* It will delete a given texture. If the texture was bound, it will invalidate the cached. <br/>
* If cc.macro.ENABLE_GL_STATE_CACHE is disabled, it will call glDeleteTextures() directly.
* @function
* @param {cc.Texture2D} textureId
* @param {Texture2D} textureId
*/
cc.gl.deleteTexture2D = function (textureId) {
cc.gl.deleteTexture2DN(0, textureId);
@@ -287,7 +287,7 @@ cc.gl.deleteTexture2D = function (textureId) {
* If cc.macro.ENABLE_GL_STATE_CACHE is disabled, it will call glDeleteTextures() directly.
* @function
* @param {Number} textureUnit
* @param {cc.Texture2D} textureId
* @param {Texture2D} textureId
*/
cc.gl.deleteTexture2DN = function (textureUnit, textureId) {
if (ENABLE_GL_STATE_CACHE) {
+2 -2
View File
@@ -26,8 +26,8 @@
/**
* IME Keyboard Notification Info structure
* @param {cc.Rect} begin the soft keyboard rectangle when animatin begin
* @param {cc.Rect} end the soft keyboard rectangle when animatin end
* @param {Rect} begin the soft keyboard rectangle when animatin begin
* @param {Rect} end the soft keyboard rectangle when animatin end
* @param {Number} duration the soft keyboard animation duration
*/
cc.IMEKeyboardNotificationInfo = function (begin, end, duration) {
+4 -4
View File
@@ -91,7 +91,7 @@ cc.TextFieldDelegate = cc._Class.extend(/** @lends cc.TextFieldDelegate# */{
* @property {cc.Color} colorSpaceHolder
*
* @param {String} placeholder
* @param {cc.Size} dimensions
* @param {Size} dimensions
* @param {Number} alignment
* @param {String} fontName
* @param {Number} fontSize
@@ -118,7 +118,7 @@ cc.TextFieldTTF = cc.LabelTTF.extend(/** @lends cc.TextFieldTTF# */{
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
* creates a cc.TextFieldTTF from a fontName, alignment, dimension and font size.
* @param {String} placeholder
* @param {cc.Size} dimensions
* @param {Size} dimensions
* @param {Number} alignment
* @param {String} fontName
* @param {Number} fontSize
@@ -210,7 +210,7 @@ cc.TextFieldTTF = cc.LabelTTF.extend(/** @lends cc.TextFieldTTF# */{
/**
* Initializes the cc.TextFieldTTF with a font name, alignment, dimension and font size
* @param {String} placeholder
* @param {cc.Size} dimensions
* @param {Size} dimensions
* @param {Number} alignment
* @param {String} fontName
* @param {Number} fontSize
@@ -488,7 +488,7 @@ cc.defineGetterSetter(_p, "placeHolder", _p.getPlaceHolder, _p.setPlaceHolder);
* Creates a cc.TextFieldTTF from a fontName, alignment, dimension and font size.
* @deprecated since v3.0 Please use new TextFieldTTF instead.
* @param {String} placeholder
* @param {cc.Size} dimensions
* @param {Size} dimensions
* @param {Number} alignment
* @param {String} fontName
* @param {Number} fontSize
+4 -4
View File
@@ -129,7 +129,7 @@ _ccsg.TMXTiledMap = _ccsg.Node.extend(/** @lends _ccsg.TMXTiledMap# */{
/**
* Gets the map size.
* @return {cc.Size}
* @return {Size}
*/
getMapSize:function () {
return cc.size(this._mapSize.width, this._mapSize.height);
@@ -137,7 +137,7 @@ _ccsg.TMXTiledMap = _ccsg.Node.extend(/** @lends _ccsg.TMXTiledMap# */{
/**
* Set the map size.
* @param {cc.Size} Var
* @param {Size} Var
*/
setMapSize:function (Var) {
this._mapSize.width = Var.width;
@@ -159,7 +159,7 @@ _ccsg.TMXTiledMap = _ccsg.Node.extend(/** @lends _ccsg.TMXTiledMap# */{
/**
* Gets the tile size.
* @return {cc.Size}
* @return {Size}
*/
getTileSize:function () {
return cc.size(this._tileSize.width, this._tileSize.height);
@@ -167,7 +167,7 @@ _ccsg.TMXTiledMap = _ccsg.Node.extend(/** @lends _ccsg.TMXTiledMap# */{
/**
* Set the tile size
* @param {cc.Size} Var
* @param {Size} Var
*/
setTileSize:function (Var) {
this._tileSize.width = Var.width;
+5 -5
View File
@@ -200,7 +200,7 @@ cc.TMXTilesetInfo = cc._Class.extend(/** @lends cc.TMXTilesetInfo# */{
/**
* Return rect
* @param {Number} gid
* @return {cc.Rect}
* @return {Rect}
*/
rectForGID:function (gid, result) {
var rect = result || cc.rect(0, 0, 0, 0);
@@ -370,7 +370,7 @@ cc.TMXMapInfo = cc.SAXParser.extend(/** @lends cc.TMXMapInfo# */{
/**
* Map width & height
* @return {cc.Size}
* @return {Size}
*/
getMapSize:function () {
return cc.size(this._mapSize.width,this._mapSize.height);
@@ -378,7 +378,7 @@ cc.TMXMapInfo = cc.SAXParser.extend(/** @lends cc.TMXMapInfo# */{
/**
* Map width & height
* @param {cc.Size} value
* @param {Size} value
*/
setMapSize:function (value) {
this._mapSize.width = value.width;
@@ -400,7 +400,7 @@ cc.TMXMapInfo = cc.SAXParser.extend(/** @lends cc.TMXMapInfo# */{
/**
* Tiles width & height
* @return {cc.Size}
* @return {Size}
*/
getTileSize:function () {
return cc.size(this._tileSize.width, this._tileSize.height);
@@ -408,7 +408,7 @@ cc.TMXMapInfo = cc.SAXParser.extend(/** @lends cc.TMXMapInfo# */{
/**
* Tiles width & height
* @param {cc.Size} value
* @param {Size} value
*/
setTileSize:function (value) {
this._tileSize.width = value.width;
+10 -10
View File
@@ -225,7 +225,7 @@ var TiledMap = cc.Class({
},
properties: {
// the detached array of TiledLayer
// the detached array of TiledLayer
_detachedChildren: {
default: [],
serializable: false,
@@ -238,7 +238,7 @@ var TiledMap = cc.Class({
/**
* !#en The TiledMap Asset.
* !#zh TiledMap 资源。
* @property {cc.TiledMapAsset} tmxAsset
* @property {TiledMapAsset} tmxAsset
* @default ""
*/
tmxAsset : {
@@ -334,7 +334,7 @@ var TiledMap = cc.Class({
* !#en object groups.
* !#zh 获取所有的对象层。
* @method getObjectGroups
* @return {cc.TiledObjectGroup[]}
* @return {TiledObjectGroup[]}
* @example
* var objGroups = titledMap.getObjectGroups();
* for (var i = 0; i < objGroups.length; ++i) {
@@ -394,7 +394,7 @@ var TiledMap = cc.Class({
* !#en Return All layers array.
* !#zh 返回包含所有 layer 的数组。
* @method allLayers
* @returns {cc.TiledLayer[]}
* @returns {TiledLayer[]}
* @example
* var layers = titledMap.allLayers();
* for (var i = 0; i < layers.length; ++i) {
@@ -443,7 +443,7 @@ var TiledMap = cc.Class({
* !#zh 获取指定的 TMXObjectGroup。
* @method getObjectGroup
* @param {String} groupName
* @return {cc.TiledObjectGroup}
* @return {TiledObjectGroup}
* @example
* var group = titledMap.getObjectGroup("Players");
* cc.log("ObjectGroup: " + group);
@@ -609,14 +609,14 @@ var TiledMap = cc.Class({
var existedGroups = [];
var otherChildrenInfo = [];
var i, n;
// restore detached layers & groups
for (i = 0; i < this._detachedChildren.length; i++) {
var info = this._detachedChildren[i];
this._sgNode.addChild(info.sgNode, info.zorder, info.zorder);
}
this._detachedChildren.length = 0;
// get the layer names in scene graph.
var layerNames = this._sgNode.allLayers().map(function (layer) {
return layer.getLayerName();
@@ -753,7 +753,7 @@ var TiledMap = cc.Class({
},
_anchorChanged: function() {
// align children with current node
// align children with current node
var children = this.node.children;
var anchor = this.node.getAnchorPoint();
for (var i = 0, n = children.length; i < n; i++) {
@@ -764,7 +764,7 @@ var TiledMap = cc.Class({
}
}
},
_childAdded: function(event) {
var node = event.detail;
if (node) {
@@ -849,4 +849,4 @@ cc.js.obsolete(cc.TiledMap.prototype, 'cc.TiledMap.tmxFile', 'tmxAsset', true);
cc.js.get(cc.TiledMap.prototype, 'mapLoaded', function () {
cc.error('Property "mapLoaded" is unused now. Please write the logic to the callback "start".');
return [];
}, false);
}, false);
+1 -1
View File
@@ -27,7 +27,7 @@
* Class for tiled map asset handling.
* @class TiledMapAsset
* @extends Asset
* @constructor
*
*/
var TiledMapAsset = cc.Class({
name: 'cc.TiledMapAsset',
+4 -4
View File
@@ -1349,7 +1349,7 @@ cc.TransitionFadeTR = cc.TransitionScene.extend(/** @lends cc.TransitionFadeTR#
},
/**
* @param {cc.Size} size
* @param {Size} size
* @return {*}
*/
actionWithSize:function (size) {
@@ -1389,7 +1389,7 @@ cc.TransitionFadeBL = cc.TransitionFadeTR.extend(/** @lends cc.TransitionFadeBL#
},
/**
* @param {cc.Size} size
* @param {Size} size
* @return {*}
*/
actionWithSize:function (size) {
@@ -1431,7 +1431,7 @@ cc.TransitionFadeUp = cc.TransitionFadeTR.extend(/** @lends cc.TransitionFadeUp#
},
/**
* @param {cc.Size} size
* @param {Size} size
* @return {cc.FadeOutUpTiles}
*/
actionWithSize:function (size) {
@@ -1472,7 +1472,7 @@ cc.TransitionFadeDown = cc.TransitionFadeTR.extend(/** @lends cc.TransitionFadeD
},
/**
* @param {cc.Size} size
* @param {Size} size
* @return {*}
*/
actionWithSize:function (size) {
+1 -1
View File
@@ -80,7 +80,7 @@ cc.TransitionPageTurn = cc.TransitionScene.extend(/** @lends cc.TransitionPageTu
},
/**
* @param {cc.Size} vector
* @param {Size} vector
* @return {cc.ReverseTime|cc.TransitionScene}
*/
actionWithSize:function (vector) {
File diff suppressed because it is too large Load Diff
+7 -7
View File
@@ -427,7 +427,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
var component = this._getOrCreateLayoutComponent();
component.setUsingPercentContentSize(true);
component.setPercentContentSize(percent);
component.refreshLayout();
component.refreshLayout();
return;
}
@@ -482,7 +482,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
/**
* updates its size by size type and its position by position type.
* @param {cc.Size} [parentSize] parent size
* @param {Size} [parentSize] parent size
*/
updateSizeAndPosition: function (parentSize) {
if(!parentSize){
@@ -587,7 +587,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
/**
* Get custom size of ccui.Widget
* @returns {cc.Size}
* @returns {Size}
*/
getCustomSize: function () {
return cc.size(this._customSize);
@@ -595,7 +595,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
/**
* Gets layout size of ccui.Widget.
* @returns {cc.Size}
* @returns {Size}
*/
getLayoutSize: function(){
return cc.size(this._contentSize);
@@ -899,7 +899,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
return this._enabled && this._touchEnabled;
else if (type === cc.Event.FOCUS)
return this._enabled && this._focusEnabled;
else
else
return this._enabled;
},
@@ -1614,7 +1614,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
/**
* Changes the size that is widget's size
* @deprecated since v3.0, please use setContentSize instead.
* @param {cc.Size} size that is widget's size
* @param {Size} size that is widget's size
*/
setSize: function (size) {
this.setContentSize(size);
@@ -1623,7 +1623,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
/**
* Returns size of widget
* @deprecated since v3.0, please use getContentSize instead.
* @returns {cc.Size}
* @returns {Size}
*/
getSize: function () {
return this.getContentSize();
+3 -3
View File
@@ -32,7 +32,7 @@ ccui.HBox = ccui.Layout.extend(/** @lends ccui.HBox# */{
/**
* The constructor of ccui.HBox
* @function
* @param {cc.Size} [size]
* @param {Size} [size]
*/
ctor: function(size){
ccui.Layout.prototype.ctor.call(this, size);
@@ -72,9 +72,9 @@ ccui.HBox = ccui.Layout.extend(/** @lends ccui.HBox# */{
/**
* Creates a HBox object
* @deprecated since v3.0, please use new ccui.HBox(size) instead.
* @param {cc.Size} size
* @param {Size} size
* @returns {ccui.HBox}
*/
ccui.HBox.create = function(size){
return new ccui.HBox(size);
};
};
+5 -5
View File
@@ -534,7 +534,7 @@ ccui.Layout = ccui.Widget.extend(/** @lends ccui.Layout# */{
/**
* Sets a background image CapInsets for layout, if the background image is a scale9 render.
* @param {cc.Rect} capInsets capinsets of background image.
* @param {Rect} capInsets capinsets of background image.
*/
setBackGroundImageCapInsets: function (capInsets) {
if(!capInsets)
@@ -550,7 +550,7 @@ ccui.Layout = ccui.Widget.extend(/** @lends ccui.Layout# */{
/**
* Gets background image capinsets of ccui.Layout.
* @returns {cc.Rect}
* @returns {Rect}
*/
getBackGroundImageCapInsets: function () {
return cc.rect(this._backGroundImageCapInsets);
@@ -816,7 +816,7 @@ ccui.Layout = ccui.Widget.extend(/** @lends ccui.Layout# */{
/**
* Gets background image texture size.
* @returns {cc.Size}
* @returns {Size}
*/
getBackGroundImageTextureSize: function () {
return this._backGroundImageTextureSize;
@@ -887,7 +887,7 @@ ccui.Layout = ccui.Widget.extend(/** @lends ccui.Layout# */{
/**
* Gets the content size of the layout, it will accumulate all its children's content size
* @returns {cc.Size}
* @returns {Size}
* @private
*/
_getLayoutAccumulatedSize: function(){
@@ -1552,4 +1552,4 @@ ccui.Layout.BACKGROUND_IMAGE_ZORDER = -1;
* @type {number}
* @constant
*/
ccui.Layout.BACKGROUND_RENDERER_ZORDER = -2;
ccui.Layout.BACKGROUND_RENDERER_ZORDER = -2;
+4 -4
View File
@@ -32,7 +32,7 @@ ccui.RelativeBox = ccui.Layout.extend(/** @lends ccui.RelativeBox# */{
/**
* The constructor of ccui.RelativeBox
* @function
* @param {cc.Size} [size]
* @param {Size} [size]
*/
ctor: function(size){
if(size)
@@ -56,7 +56,7 @@ ccui.RelativeBox = ccui.Layout.extend(/** @lends ccui.RelativeBox# */{
/**
* Initializes a relative box with size
* @param {cc.Size} [size]
* @param {Size} [size]
* @returns {boolean}
*/
initWithSize: function(size){
@@ -71,9 +71,9 @@ ccui.RelativeBox = ccui.Layout.extend(/** @lends ccui.RelativeBox# */{
/**
* Creates a relative box
* @deprecated since v3.0, please use new ccui.RelativeBox(size) instead.
* @param {cc.Size} size
* @param {Size} size
* @returns {ccui.RelativeBox}
*/
ccui.RelativeBox.create = function(size){
return new ccui.RelativeBox(size);
};
};
+4 -4
View File
@@ -32,7 +32,7 @@ ccui.VBox = ccui.Layout.extend(/** @lends ccui.VBox# */{
/**
* The constructor of ccui.VBox
* @function
* @param {cc.Size} size
* @param {Size} size
*/
ctor: function(size){
ccui.Layout.prototype.ctor.call(this, size);
@@ -57,7 +57,7 @@ ccui.VBox = ccui.Layout.extend(/** @lends ccui.VBox# */{
/**
* Initializes a VBox with size.
* @param {cc.Size} size
* @param {Size} size
* @returns {boolean}
*/
initWithSize: function(size){
@@ -71,9 +71,9 @@ ccui.VBox = ccui.Layout.extend(/** @lends ccui.VBox# */{
/**
* Creates a VBox
* @param {cc.Size} size
* @param {Size} size
* @returns {ccui.VBox}
*/
ccui.VBox.create = function(size){
return new ccui.VBox(size);
};
};
+2 -2
View File
@@ -144,8 +144,8 @@ ccui.helper = {
/**
* restrict capInsetSize, when the capInsets' width is larger than the textureSize, it will restrict to 0, <br/>
* the height goes the same way as width.
* @param {cc.Rect} capInsets
* @param {cc.Size} textureSize
* @param {Rect} capInsets
* @param {Size} textureSize
*/
restrictCapInsetRect: function (capInsets, textureSize) {
var x = capInsets.x, y = capInsets.y;
+10 -10
View File
@@ -217,7 +217,7 @@ ccui.Button = ccui.Widget.extend(/** @lends ccui.Button# */{
/**
* Returns the renderer size.
* @returns {cc.Size}
* @returns {Size}
*/
getVirtualRendererSize: function(){
if (this._unifySize)
@@ -381,7 +381,7 @@ ccui.Button = ccui.Widget.extend(/** @lends ccui.Button# */{
/**
* Sets capinsets for button, if button is using scale9 renderer.
* @param {cc.Rect} capInsets
* @param {Rect} capInsets
*/
setCapInsets: function (capInsets) {
this.setCapInsetsNormalRenderer(capInsets);
@@ -391,7 +391,7 @@ ccui.Button = ccui.Widget.extend(/** @lends ccui.Button# */{
/**
* Sets capinsets for button, if button is using scale9 renderer.
* @param {cc.Rect} capInsets
* @param {Rect} capInsets
*/
setCapInsetsNormalRenderer: function (capInsets) {
if(!capInsets)
@@ -421,7 +421,7 @@ ccui.Button = ccui.Widget.extend(/** @lends ccui.Button# */{
/**
* Returns normal renderer cap insets.
* @returns {cc.Rect}
* @returns {Rect}
*/
getCapInsetsNormalRenderer:function(){
return cc.rect(this._capInsetsNormal);
@@ -429,7 +429,7 @@ ccui.Button = ccui.Widget.extend(/** @lends ccui.Button# */{
/**
* Sets capinsets for button, if button is using scale9 renderer.
* @param {cc.Rect} capInsets
* @param {Rect} capInsets
*/
setCapInsetsPressedRenderer: function (capInsets) {
if(!capInsets || !this._scale9Enabled)
@@ -458,7 +458,7 @@ ccui.Button = ccui.Widget.extend(/** @lends ccui.Button# */{
/**
* Returns pressed renderer cap insets.
* @returns {cc.Rect}
* @returns {Rect}
*/
getCapInsetsPressedRenderer: function () {
return cc.rect(this._capInsetsPressed);
@@ -466,7 +466,7 @@ ccui.Button = ccui.Widget.extend(/** @lends ccui.Button# */{
/**
* Sets capinsets for button, if button is using scale9 renderer.
* @param {cc.Rect} capInsets
* @param {Rect} capInsets
*/
setCapInsetsDisabledRenderer: function (capInsets) {
if(!capInsets || !this._scale9Enabled)
@@ -495,7 +495,7 @@ ccui.Button = ccui.Widget.extend(/** @lends ccui.Button# */{
/**
* Returns disable renderer cap insets.
* @returns {cc.Rect}
* @returns {Rect}
*/
getCapInsetsDisabledRenderer: function () {
return cc.rect(this._capInsetsDisabled);
@@ -778,7 +778,7 @@ ccui.Button = ccui.Widget.extend(/** @lends ccui.Button# */{
/**
* Sets title fontSize to ccui.Button
* @param {cc.Size} size
* @param {Size} size
*/
setTitleFontSize: function (size) {
this._titleRenderer.setFontSize(size);
@@ -815,7 +815,7 @@ ccui.Button = ccui.Widget.extend(/** @lends ccui.Button# */{
/**
* Returns the normalize of texture size
* @since v3.3
* @returns {cc.Size}
* @returns {Size}
*/
getNormalTextureSize: function(){
return this._normalTextureSize;
+1 -1
View File
@@ -493,7 +493,7 @@ ccui.CheckBox = ccui.Widget.extend(/** @lends ccui.CheckBox# */{
/**
* Returns the content size of Renderer.
* @returns {cc.Size}
* @returns {Size}
*/
getVirtualRendererSize: function(){
return this._backGroundBoxRenderer.getContentSize();
+5 -5
View File
@@ -133,7 +133,7 @@ ccui.ImageView = ccui.Widget.extend(/** @lends ccui.ImageView# */{
/**
* Sets texture rect
* @param {cc.Rect} rect
* @param {Rect} rect
*/
setTextureRect: function (rect) {
if (!this._scale9Enabled)
@@ -191,7 +191,7 @@ ccui.ImageView = ccui.Widget.extend(/** @lends ccui.ImageView# */{
/**
* Sets capinsets for button, if button is using scale9 renderer.
* @param {cc.Rect} capInsets
* @param {Rect} capInsets
*/
setCapInsets: function (capInsets) {
if(!capInsets)
@@ -209,7 +209,7 @@ ccui.ImageView = ccui.Widget.extend(/** @lends ccui.ImageView# */{
/**
* Returns cap insets of ccui.ImageView.
* @returns {cc.Rect}
* @returns {Rect}
*/
getCapInsets:function(){
return cc.rect(this._capInsets);
@@ -229,7 +229,7 @@ ccui.ImageView = ccui.Widget.extend(/** @lends ccui.ImageView# */{
/**
* Returns the image's texture size.
* @returns {cc.Size}
* @returns {Size}
*/
getVirtualRendererSize: function(){
return cc.size(this._imageTextureSize);
@@ -326,4 +326,4 @@ ccui.ImageView.create = function (imageFileName, texType) {
* @constant
* @type {number}
*/
ccui.ImageView.RENDERER_ZORDER = -1;
ccui.ImageView.RENDERER_ZORDER = -1;
+3 -3
View File
@@ -202,7 +202,7 @@ ccui.LoadingBar = ccui.Widget.extend(/** @lends ccui.LoadingBar# */{
/**
* Sets capinsets for LoadingBar, if LoadingBar is using scale9 renderer.
* @param {cc.Rect} capInsets
* @param {Rect} capInsets
*/
setCapInsets: function (capInsets) {
if(!capInsets)
@@ -219,7 +219,7 @@ ccui.LoadingBar = ccui.Widget.extend(/** @lends ccui.LoadingBar# */{
/**
* Returns cap insets for loadingBar.
* @returns {cc.Rect}
* @returns {Rect}
*/
getCapInsets: function () {
return cc.rect(this._capInsets);
@@ -440,4 +440,4 @@ ccui.LoadingBar.Type = cc.Enum({
* @constant
* @type {number}
*/
ccui.LoadingBar.RENDERER_ZORDER = -1;
ccui.LoadingBar.RENDERER_ZORDER = -1;
+2 -2
View File
@@ -608,7 +608,7 @@ ccui.RichText = ccui.Widget.extend(/** @lends ccui.RichText# */{
/**
* Returns the renderer container's content size.
* @override
* @returns {cc.Size}
* @returns {Size}
*/
getVirtualRendererSize: function(){
return this._elementRenderersContainer.getContentSize();
@@ -629,7 +629,7 @@ ccui.RichText = ccui.Widget.extend(/** @lends ccui.RichText# */{
/**
* Gets the content size of ccui.RichText
* @override
* @return {cc.Size}
* @return {Size}
*/
getContentSize: function(){
this.formatText();
+7 -7
View File
@@ -261,7 +261,7 @@ ccui.Slider = ccui.Widget.extend(/** @lends ccui.Slider# */{
/**
* Sets capinsets for slider, if slider is using scale9 renderer.
* @param {cc.Rect} capInsets
* @param {Rect} capInsets
*/
setCapInsets: function (capInsets) {
this.setCapInsetsBarRenderer(capInsets);
@@ -270,7 +270,7 @@ ccui.Slider = ccui.Widget.extend(/** @lends ccui.Slider# */{
/**
* Sets capinsets for slider's renderer, if slider is using scale9 renderer.
* @param {cc.Rect} capInsets
* @param {Rect} capInsets
*/
setCapInsetsBarRenderer: function (capInsets) {
if(!capInsets)
@@ -287,7 +287,7 @@ ccui.Slider = ccui.Widget.extend(/** @lends ccui.Slider# */{
/**
* Returns cap insets for slider.
* @returns {cc.Rect}
* @returns {Rect}
*/
getCapInsetsBarRenderer: function () {
return cc.rect(this._capInsetsBarRenderer);
@@ -295,7 +295,7 @@ ccui.Slider = ccui.Widget.extend(/** @lends ccui.Slider# */{
/**
* Sets capinsets of ProgressBar for slider, if slider is using scale9 renderer.
* @param {cc.Rect} capInsets
* @param {Rect} capInsets
*/
setCapInsetProgressBarRenderer: function (capInsets) {
if(!capInsets)
@@ -312,7 +312,7 @@ ccui.Slider = ccui.Widget.extend(/** @lends ccui.Slider# */{
/**
* Returns cap insets of ProgressBar for slider.
* @returns {cc.Rect}
* @returns {Rect}
*/
getCapInsetsProgressBarRenderer: function () {
return cc.rect(this._capInsetsProgressBarRenderer);
@@ -575,7 +575,7 @@ ccui.Slider = ccui.Widget.extend(/** @lends ccui.Slider# */{
/**
* Returns the content size of bar renderer.
* @returns {cc.Size}
* @returns {Size}
*/
getVirtualRendererSize: function(){
return this._barRenderer.getContentSize();
@@ -759,4 +759,4 @@ ccui.Slider.PROGRESSBAR_RENDERER_ZORDER = -2;
* @constant
* @type {number}
*/
ccui.Slider.BALL_RENDERER_ZORDER = -1;
ccui.Slider.BALL_RENDERER_ZORDER = -1;
+6 -6
View File
@@ -209,7 +209,7 @@ ccui.Text = ccui.Widget.extend(/** @lends ccui.Text# */{
/**
* Sets text Area Size
* @param {cc.Size} size
* @param {Size} size
*/
setTextAreaSize: function (size) {
this._labelRenderer.setDimensions(size);
@@ -222,7 +222,7 @@ ccui.Text = ccui.Widget.extend(/** @lends ccui.Text# */{
/**
* Returns renderer's dimension.
* @returns {cc.Size}
* @returns {Size}
*/
getTextAreaSize: function(){
return this._labelRenderer.getDimensions();
@@ -312,7 +312,7 @@ ccui.Text = ccui.Widget.extend(/** @lends ccui.Text# */{
/**
* Returns the renderer's content size.
* @override
* @returns {cc.Size}
* @returns {Size}
*/
getVirtualRendererSize: function(){
return this._labelRenderer.getContentSize();
@@ -371,7 +371,7 @@ ccui.Text = ccui.Widget.extend(/** @lends ccui.Text# */{
/**
* Enables shadow style and sets color, offset and blur radius styles.
* @param {cc.Color} shadowColor
* @param {cc.Size} offset
* @param {Size} offset
* @param {Number} blurRadius
*/
enableShadow: function(shadowColor, offset, blurRadius){
@@ -381,7 +381,7 @@ ccui.Text = ccui.Widget.extend(/** @lends ccui.Text# */{
/**
* Enables outline style and sets outline's color and size.
* @param {cc.Color} outlineColor
* @param {cc.Size} outlineSize
* @param {Size} outlineSize
*/
enableOutline: function(outlineColor, outlineSize){
this._labelRenderer.enableStroke(outlineColor, outlineSize);
@@ -512,4 +512,4 @@ ccui.Text.RENDERER_ZORDER = -1;
ccui.Text.Type = {
SYSTEM: 0,
TTF: 1
};
};
+2 -2
View File
@@ -154,7 +154,7 @@ ccui.TextAtlas = ccui.Widget.extend(/** @lends ccui.TextAtlas# */{
/**
* Returns the renderer's content size
* @overrider
* @returns {cc.Size}
* @returns {Size}
*/
getVirtualRendererSize: function(){
return this._labelAtlasRenderer.getContentSize();
@@ -226,4 +226,4 @@ ccui.TextAtlas.create = function (stringValue, charMapFile, itemWidth, itemHeigh
* The zOrder value of ccui.TextAtlas's renderer.
* @type {number}
*/
ccui.TextAtlas.RENDERER_ZORDER = -1;
ccui.TextAtlas.RENDERER_ZORDER = -1;
+1 -1
View File
@@ -140,7 +140,7 @@ ccui.LabelBMFont = ccui.TextBMFont = ccui.Widget.extend(/** @lends ccui.TextBMFo
/**
* Returns TextBMFont's content size
* @override
* @returns {cc.Size}
* @returns {Size}
*/
getVirtualRendererSize: function(){
return this._labelBMFontRenderer.getContentSize();
+5 -5
View File
@@ -289,7 +289,7 @@ ccui.TextField = ccui.Widget.extend(/** @lends ccui.TextField# */{
/**
* Sets touch size of ccui.TextField.
* @param {cc.Size} size
* @param {Size} size
*/
setTouchSize: function (size) {
this._touchWidth = size.width;
@@ -326,7 +326,7 @@ ccui.TextField = ccui.Widget.extend(/** @lends ccui.TextField# */{
/**
* Returns touch size of ccui.TextField.
* @returns {cc.Size}
* @returns {Size}
*/
getTouchSize: function () {
return cc.size(this._touchWidth, this._touchHeight);
@@ -749,7 +749,7 @@ ccui.TextField = ccui.Widget.extend(/** @lends ccui.TextField# */{
/**
* Returns the ccui.TextField's content size.
* @returns {cc.Size}
* @returns {Size}
*/
getVirtualRendererSize: function(){
return this._textFieldRenderer.getContentSize();
@@ -803,7 +803,7 @@ ccui.TextField = ccui.Widget.extend(/** @lends ccui.TextField# */{
/**
* Sets the text area size to ccui.TextField.
* @param {cc.Size} size
* @param {Size} size
*/
setTextAreaSize: function(size){
this.setContentSize(size);
@@ -912,4 +912,4 @@ ccui.TextField.EVENT_DELETE_BACKWARD = 3;
* @constant
* @type {number}
*/
ccui.TextField.RENDERER_ZORDER = -1;
ccui.TextField.RENDERER_ZORDER = -1;
@@ -180,7 +180,7 @@ ccui.ScrollView = ccui.Layout.extend(/** @lends ccui.ScrollView# */{
/**
* Changes inner container size of ScrollView. <br/>
* Inner container size must be larger than or equal the size of ScrollView.
* @param {cc.Size} size inner container size.
* @param {Size} size inner container size.
*/
setInnerContainerSize: function (size) {
var innerContainer = this._innerContainer;
@@ -293,7 +293,7 @@ ccui.ScrollView = ccui.Layout.extend(/** @lends ccui.ScrollView# */{
* Returns inner container size of ScrollView. <br/>
* Inner container size must be larger than or equal ScrollView's size.
*
* @return {cc.Size} inner container size.
* @return {Size} inner container size.
*/
getInnerContainerSize: function () {
return this._innerContainer.getContentSize();
+1 -1
View File
@@ -343,7 +343,7 @@ ccs.Armature = ccs.Node.extend(/** @lends ccs.Armature# */{
/**
* This boundingBox will calculate all bones' boundingBox every time
* @returns {cc.Rect}
* @returns {Rect}
*/
getBoundingBox: function(){
var minX, minY, maxX, maxY = 0;
@@ -67,7 +67,7 @@ ccs.AnimationEvent = ccs.Class.extend(/** @lends ccs.AnimationEvent# */{
/**
* The movement event class for Armature.
* @constructor
*
*
* @property {ccs.Armature} armature - The armature reference of movement event.
* @property {Number} movementType - The type of movement.
@@ -81,7 +81,7 @@ ccs.MovementEvent = function () {
/**
* The frame event class for Armature.
* @constructor
*
*
* @property {ccs.Bone} bone - The bone reference of frame event.
* @property {String} frameEventName - The name of frame event.
@@ -650,7 +650,7 @@ ccs.MovementBoneData = ccs.Class.extend(/** @lends ccs.MovementBoneData# */{
/**
* The movement data information of Cocos Armature.
* @class ccs.MovementData
* @constructor
*
*/
ccs.MovementData = function(){
this.name = "";
@@ -742,7 +742,7 @@ ccs.AnimationData.prototype.getMovementCount = function(){
* @class ccs.ContourVertex2
* @param {Number} x
* @param {Number} y
* @constructor
*
*/
ccs.ContourVertex2 = function (x, y) {
this.x = x || 0;
@@ -752,7 +752,7 @@ ccs.ContourVertex2 = function (x, y) {
/**
* The Contour data information of Cocos Armature.
* @class ccs.ContourData
* @constructor
*
*/
ccs.ContourData = function(){
this.vertexList = [];
@@ -29,7 +29,7 @@
* @extends ccs.Sprite
*
* @param {String} [fileName]
* @param {cc.Rect} [rect]
* @param {Rect} [rect]
*
* @property {Object} skinData - The data of the skin
* @property {ccs.Bone} bone - The bone of the skin
@@ -86,7 +86,7 @@ ccs.Skin = ccs.Sprite.extend(/** @lends ccs.Skin# */{
/**
* Initializes with texture file name.
* @param {String} fileName
* @param {cc.Rect} rect
* @param {Rect} rect
* @returns {Boolean}
*/
initWithFile: function (fileName, rect) {
@@ -196,7 +196,7 @@ _p = null;
/**
* allocates and initializes a skin.
* @param {String} [fileName] fileName or sprite frame name
* @param {cc.Rect} [rect]
* @param {Rect} [rect]
* @returns {ccs.Skin}
* @deprecated since v3.1, please use new construction instead
*/
@@ -25,7 +25,7 @@
/**
* RelativeData uses to save plist files, armature files, animations and textures for armature data manager.
* @constructor
*
*/
ccs.RelativeData = function(){
this.plistFiles=[];
@@ -322,4 +322,4 @@ ccs.armatureDataManager = /** @lends ccs.armatureDataManager# */{
ccs.spriteFrameCacheHelper.clear();
ccs.dataReaderHelper.clear();
}
};
};
@@ -125,7 +125,7 @@ ccs.CONST_CONTENT_SCALE = "content_scale";
/**
* @ignore
* @constructor
*
*/
ccs.DataInfo = function () {
this.asyncStruct = null;
@@ -106,7 +106,7 @@
/**
* stores the designSize of UI file.
* @param {String} fileName
* @param {cc.Size} size
* @param {Size} size
*/
storeFileDesignSize: function (fileName, size) {
this._fileDesignSizes[fileName] = size;
@@ -116,7 +116,7 @@
/**
* Gets the design size by filename.
* @param {String} fileName
* @returns {cc.Size}
* @returns {Size}
*/
getFileDesignSize: function (fileName) {
return this._fileDesignSizes[fileName];
@@ -248,4 +248,4 @@
cc.audioEngine.end();
}
};
})();
})();

Some files were not shown because too many files have changed in this diff Show More