From 032d2d2abdb869067f25812535b111e3a0cdb9de Mon Sep 17 00:00:00 2001 From: Nan Wang Date: Thu, 20 Oct 2016 18:36:01 +0800 Subject: [PATCH] fix api doc reference --- CCBoot.js | 2 +- cocos2d/actions/CCAction.js | 2 +- cocos2d/actions/CCActionCatmullRom.js | 8 +- cocos2d/actions3d/CCActionGrid.js | 20 +- cocos2d/actions3d/CCActionGrid3D.js | 72 +-- cocos2d/actions3d/CCActionPageTurn3D.js | 6 +- cocos2d/actions3d/CCActionTiledGrid.js | 76 +-- cocos2d/animation/animation-clip.js | 4 +- cocos2d/animation/animation-curves.js | 10 +- cocos2d/animation/animation-state.js | 4 +- cocos2d/animation/playable.js | 4 +- cocos2d/animation/types.js | 10 +- cocos2d/audio/CCAudio.js | 19 + cocos2d/audio/CCAudioEngine.js | 2 +- cocos2d/core/CCDrawingPrimitivesCanvas.js | 6 +- cocos2d/core/assets/CCAsset.js | 1 - cocos2d/core/assets/CCAudioClip.js | 2 +- cocos2d/core/assets/CCBitmapFont.js | 4 +- cocos2d/core/assets/CCFont.js | 2 +- cocos2d/core/assets/CCPrefab.js | 2 +- cocos2d/core/assets/CCSceneAsset.js | 4 +- cocos2d/core/assets/CCScripts.js | 6 +- cocos2d/core/assets/CCSpriteAtlas.js | 6 +- cocos2d/core/assets/CCTTFFont.js | 2 +- cocos2d/core/assets/CCTextAsset.js | 2 +- cocos2d/core/base-nodes/CCSGNode.js | 8 +- cocos2d/core/components/CCCanvas.js | 2 +- cocos2d/core/components/CCComponent.js | 1 - cocos2d/core/components/CCLabel.js | 2 +- cocos2d/core/components/CCPageView.js | 2 +- cocos2d/core/components/CCRichText.js | 4 +- cocos2d/core/components/CCScrollBar.js | 2 +- cocos2d/core/components/CCSlider.js | 2 +- cocos2d/core/components/CCToggle.js | 4 +- cocos2d/core/components/CCVideoPlayer.js | 2 +- cocos2d/core/components/CCWebView.js | 2 +- cocos2d/core/event-manager/CCEvent.js | 10 +- cocos2d/core/event/event.js | 6 +- cocos2d/core/labelttf/CCLabelTTF.js | 10 +- cocos2d/core/load-pipeline/asset-table.js | 6 +- cocos2d/core/load-pipeline/loading-items.js | 21 +- cocos2d/core/platform/CCObject.js | 2 +- cocos2d/core/platform/callbacks-invoker.js | 4 +- cocos2d/core/platform/deserialize.js | 2 +- cocos2d/core/sprites/CCAnimation.js | 4 +- cocos2d/core/sprites/CCSGSprite.js | 18 +- cocos2d/core/sprites/CCScale9Sprite.js | 16 +- cocos2d/core/sprites/CCSpriteBatchNode.js | 8 +- cocos2d/core/sprites/CCSpriteFrame.js | 2 +- cocos2d/core/textures/CCTextureAtlas.js | 4 +- cocos2d/core/value-types/CCTypes.js | 21 +- cocos2d/core/value-types/CCTypesWebGL.js | 36 +- cocos2d/core/value-types/CCValueType.js | 2 +- cocos2d/core/value-types/CCVec2.js | 2 +- cocos2d/effects/CCGrabber.js | 6 +- cocos2d/effects/CCGrid.js | 30 +- cocos2d/kazmath/gl/mat4stack.js | 4 +- cocos2d/kazmath/quaternion.js | 2 +- cocos2d/menus/CCMenuItem.js | 4 +- cocos2d/motion-streak/CCSGMotionStreak.js | 6 +- cocos2d/particle/CCParticleAsset.js | 2 +- cocos2d/particle/CCParticleBatchNode.js | 4 +- cocos2d/particle/CCParticleSystem.js | 2 +- cocos2d/particle/CCSGParticleSystem.js | 20 +- cocos2d/physics/CCPhysicsSprite.js | 6 +- cocos2d/render-texture/CCRenderTexture.js | 4 +- cocos2d/shaders/CCGLStateCache.js | 8 +- cocos2d/text-input/CCIMEDispatcher.js | 4 +- cocos2d/text-input/CCTextFieldTTF.js | 8 +- cocos2d/tilemap/CCSGTMXTiledMap.js | 8 +- cocos2d/tilemap/CCTMXXMLParser.js | 10 +- cocos2d/tilemap/CCTiledMap.js | 20 +- cocos2d/tilemap/CCTiledMapAsset.js | 2 +- cocos2d/transitions/CCTransition.js | 8 +- cocos2d/transitions/CCTransitionPageTurn.js | 2 +- extensions/anysdk/jsb_anysdk.js | 542 +++++++++--------- extensions/ccui/base-classes/UIWidget.js | 14 +- extensions/ccui/layouts/UIHBox.js | 6 +- extensions/ccui/layouts/UILayout.js | 10 +- extensions/ccui/layouts/UIRelativeBox.js | 8 +- extensions/ccui/layouts/UIVBox.js | 8 +- extensions/ccui/system/UIHelper.js | 4 +- extensions/ccui/uiwidgets/UIButton.js | 20 +- extensions/ccui/uiwidgets/UICheckBox.js | 2 +- extensions/ccui/uiwidgets/UIImageView.js | 10 +- extensions/ccui/uiwidgets/UILoadingBar.js | 6 +- extensions/ccui/uiwidgets/UIRichText.js | 4 +- extensions/ccui/uiwidgets/UISlider.js | 14 +- extensions/ccui/uiwidgets/UIText.js | 12 +- extensions/ccui/uiwidgets/UITextAtlas.js | 4 +- extensions/ccui/uiwidgets/UITextBMFont.js | 2 +- extensions/ccui/uiwidgets/UITextField.js | 10 +- .../uiwidgets/scroll-widget/UIScrollView.js | 4 +- extensions/cocostudio/armature/CCArmature.js | 2 +- .../armature/animation/CCArmatureAnimation.js | 4 +- .../cocostudio/armature/datas/CCDatas.js | 6 +- .../cocostudio/armature/display/CCSkin.js | 6 +- .../armature/utils/CCArmatureDataManager.js | 4 +- .../armature/utils/CCDataReaderHelper.js | 2 +- .../cocostudio/loader/parsers/compatible.js | 6 +- extensions/dragonbones/ArmatureDisplay.js | 8 +- .../dragonbones/DragonBonesAtlasAsset.js | 2 +- .../gui/control-extension/CCControlButton.js | 2 +- .../gui/control-extension/CCControlSwitch.js | 2 +- .../gui/control-extension/CCControlUtils.js | 4 +- extensions/gui/scrollview/CCScrollView.js | 10 +- extensions/gui/scrollview/CCTableView.js | 6 +- extensions/spine/SGSkeleton.js | 2 +- extensions/spine/Skeleton.js | 3 +- extensions/spine/SkeletonData.js | 4 +- jsb/jsb-apis.js | 8 +- 111 files changed, 726 insertions(+), 676 deletions(-) diff --git a/CCBoot.js b/CCBoot.js index 7b82d634db..8170ce63ea 100644 --- a/CCBoot.js +++ b/CCBoot.js @@ -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; /** diff --git a/cocos2d/actions/CCAction.js b/cocos2d/actions/CCAction.js index 2ce7ac7d71..49f8356af6 100644 --- a/cocos2d/actions/CCAction.js +++ b/cocos2d/actions/CCAction.js @@ -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 */ diff --git a/cocos2d/actions/CCActionCatmullRom.js b/cocos2d/actions/CCActionCatmullRom.js index 22ea1adff3..20e2d2a2b4 100644 --- a/cocos2d/actions/CCActionCatmullRom.js +++ b/cocos2d/actions/CCActionCatmullRom.js @@ -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 * diff --git a/cocos2d/actions3d/CCActionGrid.js b/cocos2d/actions3d/CCActionGrid.js index c395c68796..606ac5e526 100644 --- a/cocos2d/actions3d/CCActionGrid.js +++ b/cocos2d/actions3d/CCActionGrid.js @@ -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.
* 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
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.
* creates the action with size and duration.
* @param {Number} duration - * @param {cc.Size} gridSize + * @param {Size} gridSize * @return {cc.Grid3DAction} * @static * @deprecated since v3.0
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
Please use cc.tiledGrid3DAction instead. diff --git a/cocos2d/actions3d/CCActionGrid3D.js b/cocos2d/actions3d/CCActionGrid3D.js index 6a57691dfb..eb8232d4c8 100644 --- a/cocos2d/actions3d/CCActionGrid3D.js +++ b/cocos2d/actions3d/CCActionGrid3D.js @@ -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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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
Please use cc.twirl instead. */ -cc.Twirl.create = cc.twirl; \ No newline at end of file +cc.Twirl.create = cc.twirl; diff --git a/cocos2d/actions3d/CCActionPageTurn3D.js b/cocos2d/actions3d/CCActionPageTurn3D.js index ae7313b2dd..63d5e791f9 100644 --- a/cocos2d/actions3d/CCActionPageTurn3D.js +++ b/cocos2d/actions3d/CCActionPageTurn3D.js @@ -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; \ No newline at end of file +cc.PageTurn3D.create = cc.pageTurn3D; diff --git a/cocos2d/actions3d/CCActionTiledGrid.js b/cocos2d/actions3d/CCActionTiledGrid.js index 56603d4075..012a0c90fe 100644 --- a/cocos2d/actions3d/CCActionTiledGrid.js +++ b/cocos2d/actions3d/CCActionTiledGrid.js @@ -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.
* 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.
* 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.
* 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.
* @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.
* 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.
* 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.
* 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.
* Reference the test cases (Effects Test) * @param {Number} duration - * @param {cc.Size} gridSize + * @param {Size} gridSize * @return {cc.FadeOutUpTiles} * @static * @deprecated since v3.0
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.
* Reference the test cases (Effects Test) * @param {Number} duration - * @param {cc.Size} gridSize + * @param {Size} gridSize * @return {cc.FadeOutDownTiles} * @static * @deprecated since v3.0
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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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
Please use cc.splitCols instead. */ -cc.SplitCols.create = cc.splitCols; \ No newline at end of file +cc.SplitCols.create = cc.splitCols; diff --git a/cocos2d/animation/animation-clip.js b/cocos2d/animation/animation-clip.js index a7e4928972..3e23b13849 100644 --- a/cocos2d/animation/animation-clip.js +++ b/cocos2d/animation/animation-clip.js @@ -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)) { diff --git a/cocos2d/animation/animation-curves.js b/cocos2d/animation/animation-curves.js index abc51e9011..ee1821a384 100644 --- a/cocos2d/animation/animation-curves.js +++ b/cocos2d/animation/animation-curves.js @@ -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({ diff --git a/cocos2d/animation/animation-state.js b/cocos2d/animation/animation-state.js index 5f28adaf9c..aafe901c3a 100644 --- a/cocos2d/animation/animation-state.js +++ b/cocos2d/animation/animation-state.js @@ -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); } diff --git a/cocos2d/animation/playable.js b/cocos2d/animation/playable.js index 04b1be2f7a..20d3514d65 100644 --- a/cocos2d/animation/playable.js +++ b/cocos2d/animation/playable.js @@ -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(); } }; diff --git a/cocos2d/animation/types.js b/cocos2d/animation/types.js index ff2637a98f..f41b3e6b9f 100644 --- a/cocos2d/animation/types.js +++ b/cocos2d/animation/types.js @@ -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; diff --git a/cocos2d/audio/CCAudio.js b/cocos2d/audio/CCAudio.js index d12299d5db..aaf45a66b9 100644 --- a/cocos2d/audio/CCAudio.js +++ b/cocos2d/audio/CCAudio.js @@ -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 }; diff --git a/cocos2d/audio/CCAudioEngine.js b/cocos2d/audio/CCAudioEngine.js index 5ddd532a6b..c8498c5173 100644 --- a/cocos2d/audio/CCAudioEngine.js +++ b/cocos2d/audio/CCAudioEngine.js @@ -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); diff --git a/cocos2d/core/CCDrawingPrimitivesCanvas.js b/cocos2d/core/CCDrawingPrimitivesCanvas.js index 059b264910..09d3202153 100644 --- a/cocos2d/core/CCDrawingPrimitivesCanvas.js +++ b/cocos2d/core/CCDrawingPrimitivesCanvas.js @@ -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(); } -}); \ No newline at end of file +}); diff --git a/cocos2d/core/assets/CCAsset.js b/cocos2d/core/assets/CCAsset.js index b99f7c9cd0..7e5462744b 100644 --- a/cocos2d/core/assets/CCAsset.js +++ b/cocos2d/core/assets/CCAsset.js @@ -42,7 +42,6 @@ var RawAsset = require('./CCRawAsset'); * * @class Asset * @extends RawAsset - * @constructor */ cc.Asset = cc.Class({ name: 'cc.Asset', extends: RawAsset, diff --git a/cocos2d/core/assets/CCAudioClip.js b/cocos2d/core/assets/CCAudioClip.js index a08f47f86c..68b48f23a5 100644 --- a/cocos2d/core/assets/CCAudioClip.js +++ b/cocos2d/core/assets/CCAudioClip.js @@ -28,7 +28,7 @@ * !#zh 音频资源类。 * @class AudioClip * @extends RawAsset - * @constructor + * */ var AudioClip = cc.Class({ name: 'cc.AudioClip', diff --git a/cocos2d/core/assets/CCBitmapFont.js b/cocos2d/core/assets/CCBitmapFont.js index 6e09bc761a..bae8a009e1 100644 --- a/cocos2d/core/assets/CCBitmapFont.js +++ b/cocos2d/core/assets/CCBitmapFont.js @@ -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', diff --git a/cocos2d/core/assets/CCFont.js b/cocos2d/core/assets/CCFont.js index 07b17770ce..f3993d1bbe 100644 --- a/cocos2d/core/assets/CCFont.js +++ b/cocos2d/core/assets/CCFont.js @@ -31,7 +31,7 @@ * !#zh 字体资源类。 * @class Font * @extends RawAsset - * @constructor + * */ var Font = cc.Class({ name: 'cc.Font', diff --git a/cocos2d/core/assets/CCPrefab.js b/cocos2d/core/assets/CCPrefab.js index 453aa6722a..c618e5d9f2 100644 --- a/cocos2d/core/assets/CCPrefab.js +++ b/cocos2d/core/assets/CCPrefab.js @@ -37,7 +37,7 @@ function visitWrapper (wrapper, visitor) { * !#zh 预制资源类。 * @class Prefab * @extends Asset - * @constructor + * */ var Prefab = cc.Class({ name: 'cc.Prefab', diff --git a/cocos2d/core/assets/CCSceneAsset.js b/cocos2d/core/assets/CCSceneAsset.js index bb6109c6f7..783aa56502 100644 --- a/cocos2d/core/assets/CCSceneAsset.js +++ b/cocos2d/core/assets/CCSceneAsset.js @@ -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, diff --git a/cocos2d/core/assets/CCScripts.js b/cocos2d/core/assets/CCScripts.js index 3f9568ffdf..dc8a2b335a 100644 --- a/cocos2d/core/assets/CCScripts.js +++ b/cocos2d/core/assets/CCScripts.js @@ -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', diff --git a/cocos2d/core/assets/CCSpriteAtlas.js b/cocos2d/core/assets/CCSpriteAtlas.js index ccd36701ba..15966f6dbe 100644 --- a/cocos2d/core/assets/CCSpriteAtlas.js +++ b/cocos2d/core/assets/CCSpriteAtlas.js @@ -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]); } diff --git a/cocos2d/core/assets/CCTTFFont.js b/cocos2d/core/assets/CCTTFFont.js index d0535609aa..7e314eda3d 100644 --- a/cocos2d/core/assets/CCTTFFont.js +++ b/cocos2d/core/assets/CCTTFFont.js @@ -31,7 +31,7 @@ * !#zh TTF 字体资源类。 * @class TTFFont * @extends Asset - * @constructor + * */ var TTFFont = cc.Class({ name: 'cc.TTFFont', diff --git a/cocos2d/core/assets/CCTextAsset.js b/cocos2d/core/assets/CCTextAsset.js index 7a5c69a48c..4a5627c342 100644 --- a/cocos2d/core/assets/CCTextAsset.js +++ b/cocos2d/core/assets/CCTextAsset.js @@ -28,7 +28,7 @@ * !#zh 文本资源类。 * @class TextAsset * @extends Asset - * @constructor + * */ var TextAsset = cc.Class({ name: 'cc.TextAsset', diff --git a/cocos2d/core/base-nodes/CCSGNode.js b/cocos2d/core/base-nodes/CCSGNode.js index ad34d5dada..db0937e745 100644 --- a/cocos2d/core/base-nodes/CCSGNode.js +++ b/cocos2d/core/base-nodes/CCSGNode.js @@ -1030,7 +1030,7 @@ _ccsg.Node = cc.Class({ /** * Returns a "local" axis aligned bounding box of the node.
* @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.
* 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); }, - + /** *

* Calls children's updateTransform() method recursively.
@@ -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); diff --git a/cocos2d/core/components/CCCanvas.js b/cocos2d/core/components/CCCanvas.js index 0dc326ac02..9ed56aeafe 100644 --- a/cocos2d/core/components/CCCanvas.js +++ b/cocos2d/core/components/CCCanvas.js @@ -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), diff --git a/cocos2d/core/components/CCComponent.js b/cocos2d/core/components/CCComponent.js index 7f9a68cac5..05e11a688f 100644 --- a/cocos2d/core/components/CCComponent.js +++ b/cocos2d/core/components/CCComponent.js @@ -245,7 +245,6 @@ function _callPreloadOnNode (node) { * * @class Component * @extends Object - * @constructor */ var Component = cc.Class({ name: 'cc.Component', diff --git a/cocos2d/core/components/CCLabel.js b/cocos2d/core/components/CCLabel.js index 868c3cad03..8df4a92d3f 100644 --- a/cocos2d/core/components/CCLabel.js +++ b/cocos2d/core/components/CCLabel.js @@ -344,7 +344,7 @@ var Label = cc.Class({ /** * !#en The font of label. * !#zh 文本字体。 - * @property {cc.Font} font + * @property {Font} font */ font: { get: function () { diff --git a/cocos2d/core/components/CCPageView.js b/cocos2d/core/components/CCPageView.js index d3af08a70f..60b44c9a58 100644 --- a/cocos2d/core/components/CCPageView.js +++ b/cocos2d/core/components/CCPageView.js @@ -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) diff --git a/cocos2d/core/components/CCRichText.js b/cocos2d/core/components/CCRichText.js index 7c5726ed64..b621d2ace1 100644 --- a/cocos2d/core/components/CCRichText.js +++ b/cocos2d/core/components/CCRichText.js @@ -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, diff --git a/cocos2d/core/components/CCScrollBar.js b/cocos2d/core/components/CCScrollBar.js index ff46963aeb..63dcacba82 100644 --- a/cocos2d/core/components/CCScrollBar.js +++ b/cocos2d/core/components/CCScrollBar.js @@ -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, diff --git a/cocos2d/core/components/CCSlider.js b/cocos2d/core/components/CCSlider.js index 3715326841..8cc4108d74 100644 --- a/cocos2d/core/components/CCSlider.js +++ b/cocos2d/core/components/CCSlider.js @@ -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, diff --git a/cocos2d/core/components/CCToggle.js b/cocos2d/core/components/CCToggle.js index 307f3de557..fcc584665c 100644 --- a/cocos2d/core/components/CCToggle.js +++ b/cocos2d/core/components/CCToggle.js @@ -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, diff --git a/cocos2d/core/components/CCVideoPlayer.js b/cocos2d/core/components/CCVideoPlayer.js index 33730940ff..ddd6ab7b90 100644 --- a/cocos2d/core/components/CCVideoPlayer.js +++ b/cocos2d/core/components/CCVideoPlayer.js @@ -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: [], diff --git a/cocos2d/core/components/CCWebView.js b/cocos2d/core/components/CCWebView.js index 41b853c1ba..b69d9431fc 100644 --- a/cocos2d/core/components/CCWebView.js +++ b/cocos2d/core/components/CCWebView.js @@ -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: [], diff --git a/cocos2d/core/event-manager/CCEvent.js b/cocos2d/core/event-manager/CCEvent.js index 7a389e1a9e..4d6542772b 100644 --- a/cocos2d/core/event-manager/CCEvent.js +++ b/cocos2d/core/event-manager/CCEvent.js @@ -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; \ No newline at end of file +module.exports = Event; diff --git a/cocos2d/core/event/event.js b/cocos2d/core/event/event.js index 73c30d686f..52b3011ca7 100644 --- a/cocos2d/core/event/event.js +++ b/cocos2d/core/event/event.js @@ -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; \ No newline at end of file +module.exports = cc.Event; diff --git a/cocos2d/core/labelttf/CCLabelTTF.js b/cocos2d/core/labelttf/CCLabelTTF.js index 3bfc0b82ea..c24881e5bd 100644 --- a/cocos2d/core/labelttf/CCLabelTTF.js +++ b/cocos2d/core/labelttf/CCLabelTTF.js @@ -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} diff --git a/cocos2d/core/load-pipeline/asset-table.js b/cocos2d/core/load-pipeline/asset-table.js index 886261835a..9600cd6aca 100644 --- a/cocos2d/core/load-pipeline/asset-table.js +++ b/cocos2d/core/load-pipeline/asset-table.js @@ -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 为值添加到表中。 diff --git a/cocos2d/core/load-pipeline/loading-items.js b/cocos2d/core/load-pipeline/loading-items.js index 36ef9fd34d..1410ad6eef 100644 --- a/cocos2d/core/load-pipeline/loading-items.js +++ b/cocos2d/core/load-pipeline/loading-items.js @@ -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]; diff --git a/cocos2d/core/platform/CCObject.js b/cocos2d/core/platform/CCObject.js index f77a8065ea..1b8dee79e7 100644 --- a/cocos2d/core/platform/CCObject.js +++ b/cocos2d/core/platform/CCObject.js @@ -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 */ diff --git a/cocos2d/core/platform/callbacks-invoker.js b/cocos2d/core/platform/callbacks-invoker.js index b6790eed77..7e028a2dc0 100644 --- a/cocos2d/core/platform/callbacks-invoker.js +++ b/cocos2d/core/platform/callbacks-invoker.js @@ -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 () { diff --git a/cocos2d/core/platform/deserialize.js b/cocos2d/core/platform/deserialize.js index d94ef033ff..5a530f1724 100644 --- a/cocos2d/core/platform/deserialize.js +++ b/cocos2d/core/platform/deserialize.js @@ -33,7 +33,7 @@ var Attr = require('./attribute'); * !#en Contains information collected during deserialization * !#zh 包含反序列化时的一些信息 * @class Details - * @constructor + * */ var Details = function () { diff --git a/cocos2d/core/sprites/CCAnimation.js b/cocos2d/core/sprites/CCAnimation.js index 8195b538bc..ae2c040244 100644 --- a/cocos2d/core/sprites/CCAnimation.js +++ b/cocos2d/core/sprites/CCAnimation.js @@ -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); diff --git a/cocos2d/core/sprites/CCSGSprite.js b/cocos2d/core/sprites/CCSGSprite.js index c0bde3d40a..4dd40e0c6c 100644 --- a/cocos2d/core/sprites/CCSGSprite.js +++ b/cocos2d/core/sprites/CCSGSprite.js @@ -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.
* (override this method to generate "double scale" sprites) *

- * @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. *

* @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) { diff --git a/cocos2d/core/sprites/CCScale9Sprite.js b/cocos2d/core/sprites/CCScale9Sprite.js index cb29379ebf..ce0f631ebd 100644 --- a/cocos2d/core/sprites/CCScale9Sprite.js +++ b/cocos2d/core/sprites/CCScale9Sprite.js @@ -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; diff --git a/cocos2d/core/sprites/CCSpriteBatchNode.js b/cocos2d/core/sprites/CCSpriteBatchNode.js index 847bfe231e..2fe2f96fa9 100644 --- a/cocos2d/core/sprites/CCSpriteBatchNode.js +++ b/cocos2d/core/sprites/CCSpriteBatchNode.js @@ -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; diff --git a/cocos2d/core/sprites/CCSpriteFrame.js b/cocos2d/core/sprites/CCSpriteFrame.js index 8065abc8ba..fa35f17ec1 100644 --- a/cocos2d/core/sprites/CCSpriteFrame.js +++ b/cocos2d/core/sprites/CCSpriteFrame.js @@ -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; diff --git a/cocos2d/core/textures/CCTextureAtlas.js b/cocos2d/core/textures/CCTextureAtlas.js index 4d15b04839..dada06a179 100644 --- a/cocos2d/core/textures/CCTextureAtlas.js +++ b/cocos2d/core/textures/CCTextureAtlas.js @@ -37,7 +37,7 @@ var game = require('../CCGame'); * Quads can be re-ordered in runtime
* The TextureAtlas capacity can be increased or decreased in runtime.

* @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; \ No newline at end of file +cc.TextureAtlas = module.exports = TextureAtlas; diff --git a/cocos2d/core/value-types/CCTypes.js b/cocos2d/core/value-types/CCTypes.js index 1472d5aeb3..dd052046fa 100644 --- a/cocos2d/core/value-types/CCTypes.js +++ b/cocos2d/core/value-types/CCTypes.js @@ -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 }); diff --git a/cocos2d/core/value-types/CCTypesWebGL.js b/cocos2d/core/value-types/CCTypesWebGL.js index 755c8748ef..eaac56e4f2 100644 --- a/cocos2d/core/value-types/CCTypesWebGL.js +++ b/cocos2d/core/value-types/CCTypesWebGL.js @@ -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 diff --git a/cocos2d/core/value-types/CCValueType.js b/cocos2d/core/value-types/CCValueType.js index ef48556ca5..af4ada939d 100644 --- a/cocos2d/core/value-types/CCValueType.js +++ b/cocos2d/core/value-types/CCValueType.js @@ -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); diff --git a/cocos2d/core/value-types/CCVec2.js b/cocos2d/core/value-types/CCVec2.js index 178d4bc28e..742ed2b9bd 100644 --- a/cocos2d/core/value-types/CCVec2.js +++ b/cocos2d/core/value-types/CCVec2.js @@ -33,7 +33,7 @@ var CCClass = require('../platform/CCClass'); * * @class Vec2 * @extends ValueType - * @constructor + * */ /** diff --git a/cocos2d/effects/CCGrabber.js b/cocos2d/effects/CCGrabber.js index bbc754ae67..9ebf48ca61 100644 --- a/cocos2d/effects/CCGrabber.js +++ b/cocos2d/effects/CCGrabber.js @@ -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; diff --git a/cocos2d/effects/CCGrid.js b/cocos2d/effects/CCGrid.js index 5e1bb258eb..2d390c3824 100644 --- a/cocos2d/effects/CCGrid.js +++ b/cocos2d/effects/CCGrid.js @@ -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) { diff --git a/cocos2d/kazmath/gl/mat4stack.js b/cocos2d/kazmath/gl/mat4stack.js index d9a1cbe783..b3ca3ba7ea 100644 --- a/cocos2d/kazmath/gl/mat4stack.js +++ b/cocos2d/kazmath/gl/mat4stack.js @@ -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); -}; \ No newline at end of file +}; diff --git a/cocos2d/kazmath/quaternion.js b/cocos2d/kazmath/quaternion.js index ebead45e44..fcd9c98b75 100644 --- a/cocos2d/kazmath/quaternion.js +++ b/cocos2d/kazmath/quaternion.js @@ -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) { diff --git a/cocos2d/menus/CCMenuItem.js b/cocos2d/menus/CCMenuItem.js index c6a3d204cf..a77cf8771a 100644 --- a/cocos2d/menus/CCMenuItem.js +++ b/cocos2d/menus/CCMenuItem.js @@ -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; diff --git a/cocos2d/motion-streak/CCSGMotionStreak.js b/cocos2d/motion-streak/CCSGMotionStreak.js index e06fdc7ea4..2e0e8ec6b6 100644 --- a/cocos2d/motion-streak/CCSGMotionStreak.js +++ b/cocos2d/motion-streak/CCSGMotionStreak.js @@ -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) diff --git a/cocos2d/particle/CCParticleAsset.js b/cocos2d/particle/CCParticleAsset.js index eb3acc1500..26a85702ab 100644 --- a/cocos2d/particle/CCParticleAsset.js +++ b/cocos2d/particle/CCParticleAsset.js @@ -27,7 +27,7 @@ * Class for particle asset handling. * @class ParticleAsset * @extends RawAsset - * @constructor + * */ var ParticleAsset = cc.Class({ name: 'cc.ParticleAsset', diff --git a/cocos2d/particle/CCParticleBatchNode.js b/cocos2d/particle/CCParticleBatchNode.js index 8a6c0cbb60..302fbf1be2 100644 --- a/cocos2d/particle/CCParticleBatchNode.js +++ b/cocos2d/particle/CCParticleBatchNode.js @@ -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; diff --git a/cocos2d/particle/CCParticleSystem.js b/cocos2d/particle/CCParticleSystem.js index 357d5715a9..b8227949e4 100644 --- a/cocos2d/particle/CCParticleSystem.js +++ b/cocos2d/particle/CCParticleSystem.js @@ -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', diff --git a/cocos2d/particle/CCSGParticleSystem.js b/cocos2d/particle/CCSGParticleSystem.js index de190a0321..4d33a4993e 100644 --- a/cocos2d/particle/CCSGParticleSystem.js +++ b/cocos2d/particle/CCSGParticleSystem.js @@ -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)
* It is possible to customize any of the above mentioned properties in runtime. Example:
*

- * @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({ *

initializes the texture with a rectangle measured Points
* pointRect should be in Texture coordinates, not pixel coordinates *

- * @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; diff --git a/cocos2d/physics/CCPhysicsSprite.js b/cocos2d/physics/CCPhysicsSprite.js index d408324807..0cfcc4d629 100644 --- a/cocos2d/physics/CCPhysicsSprite.js +++ b/cocos2d/physics/CCPhysicsSprite.js @@ -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) { diff --git a/cocos2d/render-texture/CCRenderTexture.js b/cocos2d/render-texture/CCRenderTexture.js index b0e3651bfc..f6df090e1e 100644 --- a/cocos2d/render-texture/CCRenderTexture.js +++ b/cocos2d/render-texture/CCRenderTexture.js @@ -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); diff --git a/cocos2d/shaders/CCGLStateCache.js b/cocos2d/shaders/CCGLStateCache.js index 7bfbde03a1..2481fd1e86 100644 --- a/cocos2d/shaders/CCGLStateCache.js +++ b/cocos2d/shaders/CCGLStateCache.js @@ -239,7 +239,7 @@ cc.gl.setProjectionMatrixDirty = function () { * If the texture is not already bound, it binds it.
* 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.
* 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) { diff --git a/cocos2d/text-input/CCIMEDispatcher.js b/cocos2d/text-input/CCIMEDispatcher.js index 8f1bd27644..5079c98e60 100644 --- a/cocos2d/text-input/CCIMEDispatcher.js +++ b/cocos2d/text-input/CCIMEDispatcher.js @@ -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) { diff --git a/cocos2d/text-input/CCTextFieldTTF.js b/cocos2d/text-input/CCTextFieldTTF.js index 2f3cefe958..3e9861c069 100644 --- a/cocos2d/text-input/CCTextFieldTTF.js +++ b/cocos2d/text-input/CCTextFieldTTF.js @@ -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.
* 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 diff --git a/cocos2d/tilemap/CCSGTMXTiledMap.js b/cocos2d/tilemap/CCSGTMXTiledMap.js index 8c9dfec91e..bcb23d605a 100644 --- a/cocos2d/tilemap/CCSGTMXTiledMap.js +++ b/cocos2d/tilemap/CCSGTMXTiledMap.js @@ -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; diff --git a/cocos2d/tilemap/CCTMXXMLParser.js b/cocos2d/tilemap/CCTMXXMLParser.js index ed80fe38e4..87aaa825f8 100644 --- a/cocos2d/tilemap/CCTMXXMLParser.js +++ b/cocos2d/tilemap/CCTMXXMLParser.js @@ -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; diff --git a/cocos2d/tilemap/CCTiledMap.js b/cocos2d/tilemap/CCTiledMap.js index 65e5103a7c..634351ce50 100644 --- a/cocos2d/tilemap/CCTiledMap.js +++ b/cocos2d/tilemap/CCTiledMap.js @@ -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); \ No newline at end of file +}, false); diff --git a/cocos2d/tilemap/CCTiledMapAsset.js b/cocos2d/tilemap/CCTiledMapAsset.js index 02dc5ab2c6..bf008e0db3 100644 --- a/cocos2d/tilemap/CCTiledMapAsset.js +++ b/cocos2d/tilemap/CCTiledMapAsset.js @@ -27,7 +27,7 @@ * Class for tiled map asset handling. * @class TiledMapAsset * @extends Asset - * @constructor + * */ var TiledMapAsset = cc.Class({ name: 'cc.TiledMapAsset', diff --git a/cocos2d/transitions/CCTransition.js b/cocos2d/transitions/CCTransition.js index 992d1abb0f..a032552c3e 100644 --- a/cocos2d/transitions/CCTransition.js +++ b/cocos2d/transitions/CCTransition.js @@ -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) { diff --git a/cocos2d/transitions/CCTransitionPageTurn.js b/cocos2d/transitions/CCTransitionPageTurn.js index 2008d032ce..7421a5caac 100644 --- a/cocos2d/transitions/CCTransitionPageTurn.js +++ b/cocos2d/transitions/CCTransitionPageTurn.js @@ -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) { diff --git a/extensions/anysdk/jsb_anysdk.js b/extensions/anysdk/jsb_anysdk.js index b6bbc8e366..d71de959dc 100644 --- a/extensions/anysdk/jsb_anysdk.js +++ b/extensions/anysdk/jsb_anysdk.js @@ -48,12 +48,12 @@ anysdk.agentManager = anysdk.AgentManager.getInstance(); * !#zh * 插件管理类 * @class AgentManager - * @constructor + * */ anysdk.AgentManager = { /** * !#en - * AppKey appSecret and privateKey are the only three parameters generated + * AppKey appSecret and privateKey are the only three parameters generated * after the packing tool client finishes creating the game. * The oauthLoginServer parameter is the API address provided by the game service * to login verification @@ -71,9 +71,9 @@ anysdk.AgentManager = { /** * !#en - * load all plugins, the operation includes SDK`s initialization + * load all plugins, the operation includes SDK`s initialization * !#zh - * 加载所有插件,该操作包含了 SDKs 初始化 + * 加载所有插件,该操作包含了 SDKs 初始化 * @method loadAllPlugins * @param {Function} callback * @param {object} target The object to bind to. @@ -83,19 +83,19 @@ anysdk.AgentManager = { /** * !#en - * unload all plugins + * unload all plugins * !#zh - * 卸载插件 + * 卸载插件 * @method unloadAllPlugins */ unloadAllPlugins: function(){ }, - /** + /** * !#en - * get user system plugin + * get user system plugin * !#zh - * 获取用户系统插件 + * 获取用户系统插件 * @method getUserPlugin * @return {anysdk.ProtocolUser} */ @@ -103,9 +103,9 @@ anysdk.AgentManager = { return anysdk.ProtocolUser; }, - /** + /** * !#en - * get IAP system plugins + * get IAP system plugins * !#zh * 获取支付系统插件 * @method getIAPPlugins @@ -115,9 +115,9 @@ anysdk.AgentManager = { return {anysdk.ProtocolIAP}; }, - /** + /** * !#en - * get IAP system plugin + * get IAP system plugin * !#zh * 获取支付系统插件 * @method getIAPPlugin @@ -129,7 +129,7 @@ anysdk.AgentManager = { /** * !#en - * get social system plugin + * get social system plugin * !#zh * 获取社交系统插件 * @method getSocialPlugin @@ -141,7 +141,7 @@ anysdk.AgentManager = { /** * !#en - * get share system plugin + * get share system plugin * !#zh * 获取分享系统插件 * @method getSharePlugin @@ -153,7 +153,7 @@ anysdk.AgentManager = { /** * !#en - * get analytics system plugin + * get analytics system plugin * !#zh * 获取统计系统插件 * @method getAnalyticsPlugin @@ -165,7 +165,7 @@ anysdk.AgentManager = { /** * !#en - * get ads system plugin + * get ads system plugin * !#zh * 获取广告系统插件 * @method getAdsPlugin @@ -177,7 +177,7 @@ anysdk.AgentManager = { /** * !#en - * get push system plugin + * get push system plugin * !#zh * 获取推送系统插件 * @method getPushPlugin @@ -189,7 +189,7 @@ anysdk.AgentManager = { /** * !#en - * get REC system plugin + * get REC system plugin * !#zh * 获取录屏系统插件 * @method getRECPlugin @@ -201,7 +201,7 @@ anysdk.AgentManager = { /** * !#en - * get crash system plugin + * get crash system plugin * !#zh * 获取崩溃分析系统插件 * @method getCrashPlugin @@ -213,7 +213,7 @@ anysdk.AgentManager = { /** * !#en - * get ad track system plugin + * get ad track system plugin * !#zh * 获取广告追踪系统插件 * @method getAdTrackingPlugin @@ -225,7 +225,7 @@ anysdk.AgentManager = { /** * !#en - * get custom system plugin + * get custom system plugin * !#zh * 获取自定义系统插件 * @method getCustomPlugin @@ -237,7 +237,7 @@ anysdk.AgentManager = { /** * !#en - * get custom parameter + * get custom parameter * !#zh * 获取自定义参数 * @method getCustomParam @@ -249,7 +249,7 @@ anysdk.AgentManager = { /** * !#en - * get channel id + * get channel id * !#zh * 获取渠道唯一表示符 * @method getChannelId @@ -261,11 +261,11 @@ anysdk.AgentManager = { /** * !#en - * get status of analytics + * get status of analytics * !#zh * 获取统计状态 * @method isAnaylticsEnabled - * @return {boolean} + * @return {boolean} */ isAnaylticsEnabled: function(){ return boolean; @@ -273,20 +273,20 @@ anysdk.AgentManager = { /** * !#en - * set whether to analytics + * set whether to analytics * !#zh * 设置是否统计 * @method setIsAnaylticsEnabled - * @param {boolean} enabled + * @param {boolean} enabled */ setIsAnaylticsEnabled: function(enabled){ }, /** - * !#en - * destory instance + * !#en + * destory instance * !#zh - * 销毁单例 + * 销毁单例 * @method end * @static */ @@ -294,8 +294,8 @@ anysdk.AgentManager = { }, /** - * !#en - * get instance + * !#en + * get instance * !#zh * 获取单例 * @method getInstance @@ -310,7 +310,7 @@ anysdk.AgentManager = { /** - * !#en + * !#en * plugin protocol * !#zh * 插件协议 @@ -320,7 +320,7 @@ anysdk.AgentManager = { anysdk.PluginProtocol = { /** - * !#en + * !#en * Check whether the function is supported * !#zh * 判断函数是否支持 @@ -334,7 +334,7 @@ anysdk.PluginProtocol = { }, /** - * !#en + * !#en * get plugin name * !#zh * 获取插件名称 @@ -346,7 +346,7 @@ anysdk.PluginProtocol = { }, /** - * !#en + * !#en * get plugin version * !#zh * 获取插件版本 @@ -358,7 +358,7 @@ anysdk.PluginProtocol = { }, /** - * !#en + * !#en * get SDK version * !#zh * 获取 SDK 版本 @@ -367,10 +367,10 @@ anysdk.PluginProtocol = { */ getSDKVersion: function(){ return String; - }, + }, /** - * !#en + * !#en * void methods for reflections with parameter * !#zh * 反射调用带参数的void方法 @@ -383,7 +383,7 @@ anysdk.PluginProtocol = { }, /** - * !#en + * !#en * String methods for reflections with parameter * !#zh * 反射调用带参数的 String 方法 @@ -398,7 +398,7 @@ anysdk.PluginProtocol = { }, /** - * !#en + * !#en * int methods for reflections with parameter * !#zh * 反射调用带参数的 Int 方法 @@ -413,7 +413,7 @@ anysdk.PluginProtocol = { }, /** - * !#en + * !#en * boolean methods for reflections with parameter * !#zh * 反射调用带参数的 boolean 方法 @@ -428,7 +428,7 @@ anysdk.PluginProtocol = { }, /** - * !#en + * !#en * float methods for reflections with parameter * !#zh * 反射调用带参数的 float 方法 @@ -440,7 +440,7 @@ anysdk.PluginProtocol = { */ callFloatFuncWithParam: function(funName){ return float; - }, + }, }; /** @@ -454,7 +454,7 @@ anysdk.PluginProtocol = { anysdk.ProtocolUser = PluginProtocol.extend({ /** - * !#en + * !#en * login interface * !#zh * 登录接口 @@ -465,8 +465,8 @@ anysdk.ProtocolUser = PluginProtocol.extend({ }, /** - * !#en - * get status of login + * !#en + * get status of login * !#zh * 获取登录状态 * @method isLogined @@ -478,8 +478,8 @@ anysdk.ProtocolUser = PluginProtocol.extend({ }, /** - * !#en - * get user ID + * !#en + * get user ID * !#zh * 获取用户唯一标示符 * @method getUserID @@ -491,8 +491,8 @@ anysdk.ProtocolUser = PluginProtocol.extend({ }, /** - * !#en - * get plugin ID + * !#en + * get plugin ID * !#zh * 获取插件ID * @method getPluginId @@ -503,31 +503,31 @@ anysdk.ProtocolUser = PluginProtocol.extend({ }, /** - * !#en + * !#en * set listener * !#zh * 设置用户系统的监听 * @method setListener - * @param {Function} listener + * @param {Function} listener * @param {Object} target */ setListener: function(listener, target) { }, /** - * !#en + * !#en * get listener * !#zh * 获取用户系统的监听 * @method getListener - * @return {Function} listener + * @return {Function} listener */ getListener: function() { return Function; }, /** - * !#en + * !#en * logout * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -538,7 +538,7 @@ anysdk.ProtocolUser = PluginProtocol.extend({ }, /** - * !#en + * !#en * show toolbar * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -550,7 +550,7 @@ anysdk.ProtocolUser = PluginProtocol.extend({ }, /** - * !#en + * !#en * hide toolbar * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -561,8 +561,8 @@ anysdk.ProtocolUser = PluginProtocol.extend({ }, /** - * !#en - * enter platform + * !#en + * enter platform * Before to invoke, you need to verdict whether this properties existed * !#zh * 显示平台中心,调用前需要判断属性是否存在 @@ -572,7 +572,7 @@ anysdk.ProtocolUser = PluginProtocol.extend({ }, /** - * !#en + * !#en * show exit page * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -583,7 +583,7 @@ anysdk.ProtocolUser = PluginProtocol.extend({ }, /** - * !#en + * !#en * show pause page * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -594,8 +594,8 @@ anysdk.ProtocolUser = PluginProtocol.extend({ }, /** - * !#en - * Real-name registration + * !#en + * Real-name registration * Before to invoke, you need to verdict whether this properties existed * !#zh * 实名注册,调用前需要判断属性是否存在 @@ -605,7 +605,7 @@ anysdk.ProtocolUser = PluginProtocol.extend({ }, /** - * !#en + * !#en * Anti-addiction query * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -616,56 +616,56 @@ anysdk.ProtocolUser = PluginProtocol.extend({ }, /** - * !#en + * !#en * submit game role information * Before to invoke, you need to verdict whether this properties existed * !#zh * 提交角色信息,调用前需要判断属性是否存在 * @method submitLoginGameRole - * @param {Object} data + * @param {Object} data */ submitLoginGameRole: function(data){ }, /** - * !#en + * !#en * get user information * Before to invoke, you need to verdict whether this properties existed * !#zh * 获取用户信息,调用前需要判断属性是否存在 * @method getUserInfo - * @param {Object} info + * @param {Object} info */ getUserInfo:function(info){ }, /** - * !#en + * !#en * set login type * Before to invoke, you need to verdict whether this properties existed * !#zh * 设置登录类型,调用前需要判断属性是否存在 * @method getAvailableLoginType - * @param {Object} info + * @param {Object} info */ getAvailableLoginType:function(info){ }, /** - * !#en + * !#en * set login type * Before to invoke, you need to verdict whether this properties existed * !#zh * 设置登录类型,调用前需要判断属性是否存在 * @method setLoginType - * @param {String} loginType + * @param {String} loginType */ setLoginType:function(loginType){ }, - + /** - * !#en - * send to desktop + * !#en + * send to desktop * Before to invoke, you need to verdict whether this properties existed * !#zh * 发送到桌面,调用前需要判断属性是否存在 @@ -675,7 +675,7 @@ anysdk.ProtocolUser = PluginProtocol.extend({ }, /** - * !#en + * !#en * open bbs * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -699,7 +699,7 @@ anysdk.ProtocolUser = PluginProtocol.extend({ anysdk.ProtocolIAP = PluginProtocol.extend({ /** - * !#en + * !#en * pay interface * !#zh * 支付接口 @@ -710,8 +710,8 @@ anysdk.ProtocolIAP = PluginProtocol.extend({ }, /** - * !#en - * get order ID + * !#en + * get order ID * !#zh * 获取订单ID * @method getOrderId @@ -722,7 +722,7 @@ anysdk.ProtocolIAP = PluginProtocol.extend({ }, /** - * !#en + * !#en * reset the pay status * !#zh * 重置支付状态 @@ -733,8 +733,8 @@ anysdk.ProtocolIAP = PluginProtocol.extend({ }, /** - * !#en - * get plugin ID + * !#en + * get plugin ID * !#zh * 获取插件ID * @method getPluginId @@ -745,24 +745,24 @@ anysdk.ProtocolIAP = PluginProtocol.extend({ }, /** - * !#en + * !#en * set listener * !#zh * 设置支付系统的监听 * @method setListener - * @param {Function} listener + * @param {Function} listener * @param {Object} target */ setListener: function(listener, target) { }, /** - * !#en + * !#en * get listener * !#zh * 获取支付系统的监听 * @method getListener - * @return {Function} listener + * @return {Function} listener */ getListener: function() { return Function; @@ -781,7 +781,7 @@ anysdk.ProtocolIAP = PluginProtocol.extend({ anysdk.ProtocolAnalytics = PluginProtocol.extend({ /** - * !#en + * !#en * Start a new session. * !#zh * 启动会话 @@ -791,7 +791,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * Stop a session. * !#zh * 关闭会话 @@ -801,7 +801,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * Set the timeout for expiring a session. * !#zh * 设置会话超时时间 @@ -812,7 +812,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * log an error * !#zh * 捕捉异常 @@ -824,7 +824,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * log an event. * !#zh * 捕捉事件 @@ -836,7 +836,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * Track an event begin. * !#zh * 统计事件开始 @@ -847,7 +847,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * Track an event end. * !#zh * 统计事件结束 @@ -858,18 +858,18 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * set Whether to catch uncaught exceptions to server. * !#zh * 设置是否开启自动异常捕捉 * @method setCaptureUncaughtException - * @param {boolean} enabled + * @param {boolean} enabled */ setCaptureUncaughtException: function(enabled){ }, /** - * !#en + * !#en * analytics account information * !#zh * 统计玩家帐户信息 @@ -880,7 +880,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * track user to request payment * !#zh * 跟踪用户支付请求 @@ -891,7 +891,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * track Successful payment * !#zh * 追踪用户支付成功 @@ -902,7 +902,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * track failed payment * !#zh * 追踪用户支付失败 @@ -913,7 +913,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * track Successful payment * !#zh * 统计玩家支付成功 @@ -924,7 +924,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * track user purchase * !#zh * 统计玩家消费 @@ -935,7 +935,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * track user to use goods * !#zh * 统计玩家使用道具 @@ -946,7 +946,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * track user to reward goods * !#zh * 统计玩家获取奖励 @@ -957,7 +957,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * start level * !#zh * 开始关卡 @@ -968,7 +968,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * finish level * !#zh * 结束关卡 @@ -979,7 +979,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * failed level * !#zh * 关卡失败 @@ -990,7 +990,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * start task * !#zh * 开始任务 @@ -1001,7 +1001,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * finish task * !#zh * 完成任务 @@ -1012,7 +1012,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ }, /** - * !#en + * !#en * failed task * !#zh * 任务失败 @@ -1037,7 +1037,7 @@ anysdk.ProtocolAnalytics = PluginProtocol.extend({ anysdk.ProtocolShare = PluginProtocol.extend({ /** - * !#en + * !#en * share interface * !#zh * 分享 @@ -1047,24 +1047,24 @@ anysdk.ProtocolShare = PluginProtocol.extend({ share: function(info){ }, /** - * !#en + * !#en * set listener * !#zh * 设置分享系统的监听 * @method setListener - * @param {Function} listener + * @param {Function} listener * @param {Object} target */ setListener: function(listener, target) { }, /** - * !#en + * !#en * get listener * !#zh * 获取分享系统的监听 * @method getListener - * @return {Function} listener + * @return {Function} listener */ getListener: function() { return Function; @@ -1082,7 +1082,7 @@ anysdk.ProtocolShare = PluginProtocol.extend({ */ anysdk.ProtocolAds = PluginProtocol.extend({ /* - * !#en + * !#en * show ads view * !#zh * 显示广告 @@ -1093,7 +1093,7 @@ anysdk.ProtocolAds = PluginProtocol.extend({ }, /** - * !#en + * !#en * hide ads view * !#zh * 隐藏广告 @@ -1105,7 +1105,7 @@ anysdk.ProtocolAds = PluginProtocol.extend({ }, /** - * !#en + * !#en * preload ads view * !#zh * 预加载广告 @@ -1117,7 +1117,7 @@ anysdk.ProtocolAds = PluginProtocol.extend({ }, /** - * !#en + * !#en * query points * !#zh * 查询分数 @@ -1129,8 +1129,8 @@ anysdk.ProtocolAds = PluginProtocol.extend({ }, /** - * !#en - * get whether the ads type is supported + * !#en + * get whether the ads type is supported * !#zh * 获取广告类型是否支持 * @method isAdTypeSupported @@ -1142,8 +1142,8 @@ anysdk.ProtocolAds = PluginProtocol.extend({ }, /** - * !#en - * spend point + * !#en + * spend point * !#zh * 消费分数 * @method spendPoints @@ -1153,24 +1153,24 @@ anysdk.ProtocolAds = PluginProtocol.extend({ }, /** - * !#en + * !#en * set listener * !#zh * 设置广告系统的监听 * @method setListener - * @param {Function} listener + * @param {Function} listener * @param {Object} target */ setListener: function(listener, target) { }, /** - * !#en + * !#en * get listener * !#zh * 获取广告系统的监听 * @method getListener - * @return {Function} listener + * @return {Function} listener */ getListener: function() { return Function; @@ -1189,7 +1189,7 @@ anysdk.ProtocolAds = PluginProtocol.extend({ anysdk.ProtocolSocial = PluginProtocol.extend({ /** - * !#en + * !#en * sign in * !#zh * 登录 @@ -1199,7 +1199,7 @@ anysdk.ProtocolSocial = PluginProtocol.extend({ }, /** - * !#en + * !#en * sign out * !#zh * 登出 @@ -1209,7 +1209,7 @@ anysdk.ProtocolSocial = PluginProtocol.extend({ }, /** - * !#en + * !#en * submit score * !#zh * 提交分数 @@ -1221,7 +1221,7 @@ anysdk.ProtocolSocial = PluginProtocol.extend({ }, /** - * !#en + * !#en * show the id of Leaderboard page * !#zh * 根据唯一标识符显示排行榜 @@ -1232,7 +1232,7 @@ anysdk.ProtocolSocial = PluginProtocol.extend({ }, /** - * !#en + * !#en * show the page of achievements * !#zh * 显示成就榜 @@ -1242,7 +1242,7 @@ anysdk.ProtocolSocial = PluginProtocol.extend({ }, /** - * !#en + * !#en * unlock achievement * !#zh * 解锁成就 @@ -1253,32 +1253,32 @@ anysdk.ProtocolSocial = PluginProtocol.extend({ }, /** - * !#en + * !#en * set listener * !#zh * 设置社交系统的监听 * @method setListener - * @param {Function} listener + * @param {Function} listener * @param {Object} target */ setListener: function(listener, target) { }, /** - * !#en + * !#en * get listener * !#zh * 获取社交系统的监听 * @method getListener - * @return {Function} listener + * @return {Function} listener */ getListener: function() { return Function; }, - + /** - * !#en + * !#en * get friends info * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -1289,7 +1289,7 @@ anysdk.ProtocolSocial = PluginProtocol.extend({ }, /** - * !#en + * !#en * interact * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -1300,7 +1300,7 @@ anysdk.ProtocolSocial = PluginProtocol.extend({ }, /** - * !#en + * !#en * subscribe * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -1322,7 +1322,7 @@ anysdk.ProtocolSocial = PluginProtocol.extend({ anysdk.ProtocolPush = PluginProtocol.extend({ /** - * !#en + * !#en * start Push services * !#zh * 启动推送服务 @@ -1332,7 +1332,7 @@ anysdk.ProtocolPush = PluginProtocol.extend({ }, /** - * !#en + * !#en * close Push services * !#zh * 暂停推送服务 @@ -1342,7 +1342,7 @@ anysdk.ProtocolPush = PluginProtocol.extend({ }, /** - * !#en + * !#en * delete alias * !#zh * 删除别名 @@ -1353,7 +1353,7 @@ anysdk.ProtocolPush = PluginProtocol.extend({ }, /** - * !#en + * !#en * set alias * !#zh * 设置别名 @@ -1364,7 +1364,7 @@ anysdk.ProtocolPush = PluginProtocol.extend({ }, /** - * !#en + * !#en * delete tags * !#zh * 删除标签 @@ -1375,7 +1375,7 @@ anysdk.ProtocolPush = PluginProtocol.extend({ }, /** - * !#en + * !#en * set tags * !#zh * 设置标签 @@ -1386,24 +1386,24 @@ anysdk.ProtocolPush = PluginProtocol.extend({ }, /** - * !#en + * !#en * set listener * !#zh * 设置推送系统的监听 * @method setListener - * @param {Function} listener + * @param {Function} listener * @param {Object} target */ setListener: function(listener, target) { }, /** - * !#en + * !#en * get listener * !#zh * 获取推送系统的监听 * @method getListener - * @return {Function} listener + * @return {Function} listener */ getListener: function() { return Function; @@ -1422,7 +1422,7 @@ anysdk.ProtocolPush = PluginProtocol.extend({ anysdk.ProtocolCrash = PluginProtocol.extend({ /** - * !#en + * !#en * set user identifier * !#zh * 统计用户唯一标识符 @@ -1434,19 +1434,19 @@ anysdk.ProtocolCrash = PluginProtocol.extend({ }, /** - * !#en + * !#en * The uploader captured in exception information * !#zh * 上报异常信息 * @method reportException * @param {String} message - * @param {String} exception + * @param {String} exception */ reportException: function(message, exception){ }, /** - * !#en + * !#en * customize logging * !#zh * 自定义日志记录 @@ -1470,7 +1470,7 @@ anysdk.ProtocolCrash = PluginProtocol.extend({ anysdk.ProtocolREC = PluginProtocol.extend({ /** - * !#en + * !#en * share video * !#zh * 分享视频 @@ -1481,7 +1481,7 @@ anysdk.ProtocolREC = PluginProtocol.extend({ }, /** - * !#en + * !#en * Start to record video * !#zh * 开始录制视频 @@ -1491,7 +1491,7 @@ anysdk.ProtocolREC = PluginProtocol.extend({ }, /** - * !#en + * !#en * Start to record video * !#zh * 结束录制视频 @@ -1501,31 +1501,31 @@ anysdk.ProtocolREC = PluginProtocol.extend({ }, /** - * !#en + * !#en * set listener * !#zh * 设置录屏系统的监听 * @method setListener - * @param {Function} listener + * @param {Function} listener * @param {Object} target */ setListener: function(listener, target) { }, /** - * !#en + * !#en * get listener * !#zh * 获取录屏系统的监听 * @method getListener - * @return {Function} listener + * @return {Function} listener */ getListener: function() { return Function; }, /** - * !#en + * !#en * pause to record video * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -1536,7 +1536,7 @@ anysdk.ProtocolREC = PluginProtocol.extend({ }, /** - * !#en + * !#en * resume to record video * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -1548,12 +1548,12 @@ anysdk.ProtocolREC = PluginProtocol.extend({ /** * !#en - * get whether the device is isAvailable + * get whether the device is isAvailable * Before to invoke, you need to verdict whether this properties existed * !#zh * 获取设备是否可用,调用前需要判断属性是否存在 * @method isAvailable - * @return {boolean} + * @return {boolean} */ isAvailable: function(){ return boolean; @@ -1561,19 +1561,19 @@ anysdk.ProtocolREC = PluginProtocol.extend({ /** * !#en - * get status of recording - * Before to invoke, you need to verdict whether this properties existed + * get status of recording + * Before to invoke, you need to verdict whether this properties existed * !#zh * 获取录制状态,调用前需要判断属性是否存在 * @method isRecording - * @return {boolean} + * @return {boolean} */ isRecording: function(){ return boolean; }, /** - * !#en + * !#en * show toolbar * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -1584,7 +1584,7 @@ anysdk.ProtocolREC = PluginProtocol.extend({ }, /** - * !#en + * !#en * hide toolbar * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -1595,7 +1595,7 @@ anysdk.ProtocolREC = PluginProtocol.extend({ }, /** - * !#en + * !#en * show video center * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -1606,8 +1606,8 @@ anysdk.ProtocolREC = PluginProtocol.extend({ }, /** - * !#en - * enter platform + * !#en + * enter platform * Before to invoke, you need to verdict whether this properties existed * !#zh * 显示平台中心,调用前需要判断属性是否存在 @@ -1617,7 +1617,7 @@ anysdk.ProtocolREC = PluginProtocol.extend({ }, /** - * !#en + * !#en * Set the video data, it is recommended to check whether are recorded firstly * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -1643,7 +1643,7 @@ anysdk.ProtocolREC = PluginProtocol.extend({ anysdk.ProtocolAdTracking = PluginProtocol.extend({ /** - * !#en + * !#en * Call this method if you want to track register events as happening during a section. * !#zh * 统计用户注册信息 @@ -1654,7 +1654,7 @@ anysdk.ProtocolAdTracking = PluginProtocol.extend({ }, /** - * !#en + * !#en * Call this method if you want to track register events as happening during a section. * !#zh * 统计用户注册信息 @@ -1665,7 +1665,7 @@ anysdk.ProtocolAdTracking = PluginProtocol.extend({ }, /** - * !#en + * !#en * Call this method if you want to track register events as happening during a section. * !#zh * 统计用户注册信息 @@ -1676,7 +1676,7 @@ anysdk.ProtocolAdTracking = PluginProtocol.extend({ }, /** - * !#en + * !#en * Call this method if you want to track custom events with parameters as happening during a section. * !#zh * 统计自定义事件 @@ -1688,7 +1688,7 @@ anysdk.ProtocolAdTracking = PluginProtocol.extend({ }, /** - * !#en + * !#en * Call this method with parameters if you want to create role as happening during a section. * !#zh * 统计创建角色事件,调用前需要判断属性是否存在 @@ -1699,7 +1699,7 @@ anysdk.ProtocolAdTracking = PluginProtocol.extend({ }, /** - * !#en + * !#en * Call this method if you want to track levelup events with parameters as happening during a section. * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -1711,7 +1711,7 @@ anysdk.ProtocolAdTracking = PluginProtocol.extend({ }, /** - * !#en + * !#en * Invoke this method with parameters if you want to start to pay as happening during a section. * Before to invoke, you need to verdict whether this properties existed * !#zh @@ -1734,24 +1734,24 @@ anysdk.ProtocolAdTracking = PluginProtocol.extend({ */ anysdk.ProtocolCustom = PluginProtocol.extend({ /** - * !#en + * !#en * set listener * !#zh * 设置自定义系统的监听 * @method setListener - * @param {Function} listener + * @param {Function} listener * @param {Object} target */ setListener: function(listener, target) { }, /** - * !#en + * !#en * get listener * !#zh * 获取自定义系统的监听 * @method getListener - * @return {Function} listener + * @return {Function} listener */ getListener: function() { return Function; @@ -1763,12 +1763,12 @@ anysdk.ProtocolCustom = PluginProtocol.extend({ * Data structure class * !#zh * 数据结构类 - * @constructor + * * @class PluginParam */ anysdk.PluginParam = { /** - * !#en + * !#en * create plugin parameters * !#zh * 创建对象 @@ -1789,14 +1789,14 @@ anysdk.PluginParam = { */ anysdk.UserActionResultCode = { /** - * !#en The callback of succeeding in initing sdk + * !#en The callback of succeeding in initing sdk * !#zh 用户系统的初始化成功回调 * @property {Number} kInitSuccess */ kInitSuccess: 0, /** - * !#en The callback of failing to init sdk + * !#en The callback of failing to init sdk * !#zh 用户系统的初始化失败回调 * @property {Number} kInitFail */ @@ -1814,70 +1814,70 @@ anysdk.UserActionResultCode = { * !#zh 用户系统的初始化成功回调 * @property {Number} kLoginNetworkError */ - kLoginNetworkError: 3, + kLoginNetworkError: 3, /** - * !#en The callback of no need login. + * !#en The callback of no need login. * !#zh 用户系统的无需登录回调 * @property {Number} kLoginNoNeed */ kLoginNoNeed: 4, /** - * !#en The callback of failing to login + * !#en The callback of failing to login * !#zh 用户系统的登录失败回调 * @property {Number} kLoginFail */ - kLoginFail: 5, + kLoginFail: 5, /** * !#en The callback of canceling to login. * !#zh 用户系统的登录取消回调 * @property {Number} kLoginCancel */ - kLoginCancel: 6, + kLoginCancel: 6, /** * !#en The callback of succeeding in logout * !#zh 用户系统的登出成功回调 * @property {Number} kLogoutSuccess */ - kLogoutSuccess: 7, + kLogoutSuccess: 7, /** * !#en The callback of failing to logout * !#zh 用户系统的登出失败回调 * @property {Number} kLogoutFail */ - kLogoutFail: 8, + kLogoutFail: 8, /** * !#en The callback after enter platform.. * !#zh 用户系统的进入平台回调 * @property {Number} kPlatformEnter */ - kPlatformEnter: 9, + kPlatformEnter: 9, /** * !#en The callback after exit antiAddiction * !#zh 用户系统的退出平台回调 * @property {Number} kPlatformBack */ - kPlatformBack: 10, + kPlatformBack: 10, /** - * !#en The callback after exit pause page + * !#en The callback after exit pause page * !#zh 用户系统的暂停界面回调 * @property {Number} kPausePage */ - kPausePage: 11, + kPausePage: 11, /** - * !#en The callback after exit page + * !#en The callback after exit page * !#zh 用户系统的退出界面回调 * @property {Number} kExitPage */ - kExitPage: 12, + kExitPage: 12, /** * !#en The callback after querying antiAddiction @@ -1901,18 +1901,18 @@ anysdk.UserActionResultCode = { kAccountSwitchSuccess: 15, /** - * !#en The callback of failing to switch account + * !#en The callback of failing to switch account * !#zh 用户系统的切换账号失败回调 * @property {Number} kAccountSwitchFail */ - kAccountSwitchFail: 16, + kAccountSwitchFail: 16, /** * !#en The callback of opening the shop * !#zh 用户系统的打开商店回调 * @property {Number} kOpenShop */ - kOpenShop: 17, + kOpenShop: 17, /** * !#en The callback of canceling to switch account. @@ -1922,34 +1922,34 @@ anysdk.UserActionResultCode = { kAccountSwitchCancel: 18, /** - * !#en extension code of user type + * !#en extension code of user type * !#zh 用户系统的扩展回调 * @property {Number} kUserExtension */ - kUserExtension: 50000, + kUserExtension: 50000, /** * !#en The callback of succeeding in sending to desktop * !#zh 用户系统的发送到桌面成功回调 * @property {Number} kSendToDesktopSuccess */ - kSendToDesktopSuccess: 51001, + kSendToDesktopSuccess: 51001, /** * !#en The callback of failing to sending to desktop * !#zh 用户系统的发送到桌面失败回调 * @property {Number} kSendToDesktopFail */ - kSendToDesktopFail: 51002, - + kSendToDesktopFail: 51002, + /** - * !#en The callback of succeeding in getting available login type + * !#en The callback of succeeding in getting available login type * !#zh 用户系统的获取可登录类型成功回调 * @property {Number} kGetAvailableLoginTypeSuccess */ kGetAvailableLoginTypeSuccess: 51003, /** - * !#en The callback of failing to get available login type + * !#en The callback of failing to get available login type * !#zh 用户系统的获取可登录类型失败回调 * @property {Number} kGetAvailableLoginTypeFail */ @@ -1960,7 +1960,7 @@ anysdk.UserActionResultCode = { * !#zh 用户系统的获取用户信息成功回调 * @property {Number} kGetUserInfoSuccess */ - kGetUserInfoSuccess: 51005, + kGetUserInfoSuccess: 51005, /** * !#en The callback of failing in getting user`s info @@ -1974,7 +1974,7 @@ anysdk.UserActionResultCode = { * !#zh 用户系统的进入论坛成功回调 * @property {Number} kOpenBBSSuccess */ - kOpenBBSSuccess: 51007, + kOpenBBSSuccess: 51007, /** * !#en The callback of failing in opening BBS @@ -2006,7 +2006,7 @@ anysdk.ToolBarPlace = { kToolBarTopRight: 2, /** - * !#en at the left of the center + * !#en at the left of the center * !#zh 中间偏左 * @property {Number} kToolBarMidLeft */ @@ -2031,7 +2031,7 @@ anysdk.ToolBarPlace = { * !#zh 右下方 * @property {Number} kToolBarBottomRight */ - kToolBarBottomRight: 6 + kToolBarBottomRight: 6 }; /** @@ -2041,11 +2041,11 @@ anysdk.ToolBarPlace = { */ anysdk.PayResultCode = { /** - * !#en The callback of succeeding in paying + * !#en The callback of succeeding in paying * !#zh 支付系统的支付成功回调 * @property {Number} kPaySuccess */ - kPaySuccess: 0, + kPaySuccess: 0, /** * !#en The callback of failing to pay @@ -2059,7 +2059,7 @@ anysdk.PayResultCode = { * !#zh 支付系统的支付取消回调 * @property {Number} kPayCancel */ - kPayCancel: 2, + kPayCancel: 2, /** * !#en The callback of network error @@ -2069,25 +2069,25 @@ anysdk.PayResultCode = { kPayNetworkError: 3, /** - * !#en The callback of incompleting info + * !#en The callback of incompleting info * !#zh 支付系统的支付信息不完整回调 * @property {Number} kPayProductionInforIncomplete */ - kPayProductionInforIncomplete: 4, + kPayProductionInforIncomplete: 4, /** - * !#en callback of succeeding in initing sdk . + * !#en callback of succeeding in initing sdk . * !#zh 支付系统的初始化成功回调 * @property {Number} kPayInitSuccess */ - kPayInitSuccess: 5, + kPayInitSuccess: 5, /** - * !#en The callback of failing to init sdk + * !#en The callback of failing to init sdk * !#zh 支付系统的初始化失败回调 * @property {Number} kPayInitFail */ - kPayInitFail: 6, + kPayInitFail: 6, /** * !#en The callback of paying now @@ -2104,7 +2104,7 @@ anysdk.PayResultCode = { kPayReStringgeSuccess: 8, /** - * !#en extension code of user type + * !#en extension code of user type * !#zh 支付系统的扩展回调 * @property {Number} kPayExtension */ @@ -2115,7 +2115,7 @@ anysdk.PayResultCode = { * !#zh 支付系统的重登陆回调 * @property {Number} kPayNeedLoginAgain */ - kPayNeedLoginAgain: 31002 + kPayNeedLoginAgain: 31002 }; /** @@ -2129,14 +2129,14 @@ anysdk.RequestResultCode = { * !#zh 支付系统的请求成功回调 * @property {Number} kRequestSuccess */ - kRequestSuccess: 31000, + kRequestSuccess: 31000, /** * !#en The callback of failing to requesting . * !#zh 支付系统的请求失败回调 * @property {Number} kRequestFail */ - kRequestFail: 31001 + kRequestFail: 31001 }; /** @@ -2302,36 +2302,36 @@ anysdk.ShareResultCode = { * !#en The callback of failing to sharing * !#zh 分享系统的分享成功回调 * @property {Number} kShareSuccess - */ - kShareSuccess: 0, + */ + kShareSuccess: 0, /** * !#en The callback of failing to share * !#zh 分享系统的分享失败回调 * @property {Number} kShareFail */ - kShareFail: 1, + kShareFail: 1, /** * !#en The callback of canceling to share * !#zh 分享系统的分享取消回调 * @property {Number} kShareCancel */ - kShareCancel: 2, + kShareCancel: 2, /** * !#en The callback of network error * !#zh 分享系统的网络错误回调 * @property {Number} kShareNetworkError */ - kShareNetworkError: 3, + kShareNetworkError: 3, /** * !#en The extension code of share system * !#zh 分享系统的扩展回调 * @property {Number} kShareExtension */ - kShareExtension: 10000 + kShareExtension: 10000 }; /** @@ -2340,13 +2340,13 @@ anysdk.ShareResultCode = { * @enum SocialRetCode */ anysdk.SocialRetCode = { - + /** * !#en The callback of succeeding in submiting. * !#zh 社交系统的成功提交回调 * @property {Number} kScoreSubmitSucceed */ - kScoreSubmitSucceed: 1, + kScoreSubmitSucceed: 1, /** * !#en The callback of failing to submit. @@ -2395,38 +2395,38 @@ anysdk.SocialRetCode = { * !#zh 社交系统的登出失败回调 * @property {Number} kSocialSignOutFail */ - kSocialSignOutFail: 8, + kSocialSignOutFail: 8, /** * !#en The callback of getting friends`s . * !#zh 社交系统的获取好友回调 * @property {Number} kSocialGetGameFriends */ - kSocialGetGameFriends: 9, + kSocialGetGameFriends: 9, /** * !#en The extension code of social system * !#zh 社交系统的扩展回调 * @property {Number} kSocialExtensionCode */ - kSocialExtensionCode:20000, + kSocialExtensionCode:20000, /** * !#en The callback of succeeding in getting friends`s info * !#zh 社交系统的获取好友信息成功回调 * @property {Number} kSocialGetFriendsInfoSuccess */ - kSocialGetFriendsInfoSuccess: 21001, + kSocialGetFriendsInfoSuccess: 21001, /** * !#en The callback of failing in getting friends`s info. * !#zh 社交系统的获取好友信息失败回调 * @property {Number} kSocialGetFriendsInfoFail */ - kSocialGetFriendsInfoFail: 21002, + kSocialGetFriendsInfoFail: 21002, /** - * !#en The callback of subscription + * !#en The callback of subscription * !#zh 社交系统的订阅回调 * @property {Number} kSocialAlreadySubscription */ @@ -2437,14 +2437,14 @@ anysdk.SocialRetCode = { * !#zh 社交系统的无需订阅回调 * @property {Number} kSocialNoSubscription */ - kSocialNoSubscription: 21004, + kSocialNoSubscription: 21004, /** * !#en The callback of failing in subscription * !#zh 社交系统的订阅失败回调 * @property {Number} kSocialSubscriptionFail */ - kSocialSubscriptionFail: 21005, + kSocialSubscriptionFail: 21005, }; /** @@ -2459,28 +2459,28 @@ anysdk.AdsResultCode = { * !#zh 广告系统的接受广告回调 * @property {Number} kAdsReceived */ - kAdsReceived: 0, + kAdsReceived: 0, /** * !#en The callback: the advertisement dismissed. * !#zh 广告系统的显示广告回调 * @property {Number} kAdsShown */ - kAdsShown: 1, + kAdsShown: 1, /** * !#en The callback: the advertisement dismissed. * !#zh 广告系统的广告消失回调 * @property {Number} kAdsDismissed */ - kAdsDismissed: 2, + kAdsDismissed: 2, /** - * !#en The callback: the points spend succeed. + * !#en The callback: the points spend succeed. * !#zh 广告系统的花费积分成功回调 * @property {Number} kPointsSpendSucceed */ - kPointsSpendSucceed: 3, + kPointsSpendSucceed: 3, /** * !#en The callback: the points spend failed. @@ -2490,25 +2490,25 @@ anysdk.AdsResultCode = { kPointsSpendFailed: 4, /** - * !#en The callback of network error + * !#en The callback of network error * !#zh 广告系统的网络错误回调 * @property {Number} kNetworkError */ - kNetworkError: 5, + kNetworkError: 5, /** * !#en The callback of Unknown error. * !#zh 广告系统的未知错误回调 * @property {Number} kUnknownError */ - kUnknownError: 6, + kUnknownError: 6, /** * !#en The callback of Changing the point of offerwall. * !#zh 广告系统的积金墙积金变化回调 * @property {Number} kOfferWallOnPointsChanged */ - kOfferWallOnPointsChanged: 7, + kOfferWallOnPointsChanged: 7, /** * !#en The callback of receive the reward of rewardedvideo @@ -2536,8 +2536,8 @@ anysdk.AdsResultCode = { * !#zh 广告系统的扩展回调 * @property {Number} kAdsExtension */ - kAdsExtension: 40000 -}; + kAdsExtension: 40000 +}; /** * !#en The enum of ads position @@ -2551,14 +2551,14 @@ anysdk.AdsPos = { * !#zh 中间 * @property {Number} kPosCenter */ - kPosCenter:0, + kPosCenter:0, /** * !#en at the top of center * !#zh 上方 * @property {Number} kPosTop */ - kPosTop:1, + kPosTop:1, /** * !#en the upper left corner @@ -2572,21 +2572,21 @@ anysdk.AdsPos = { * !#zh 右上方 * @property {Number} kPosTopRight */ - kPosTopRight:3, + kPosTopRight:3, /** - * !#en at the bottom of the center + * !#en at the bottom of the center * !#zh 底部 * @property {Number} kPosBottom */ - kPosBottom: 4, + kPosBottom: 4, /** * !#en the lower left corner * !#zh 左下方 * @property {Number} kPosBottomLeft */ - kPosBottomLeft: 5, + kPosBottomLeft: 5, /** * !#en the lower right corner @@ -2594,7 +2594,7 @@ anysdk.AdsPos = { * @property {Number} kPosBottomRight */ kPosBottomRight: 6 -}; +}; /** * !#en The enum of ads type @@ -2608,14 +2608,14 @@ anysdk.AdsType = { * !#zh 横幅广告 * @property {Number} AD_TYPE_BANNER */ - AD_TYPE_BANNER: 0, + AD_TYPE_BANNER: 0, /** * !#en Full Screen Ads * !#zh 插屏广告 * @property {Number} AD_TYPE_FULLSCREEN */ - AD_TYPE_FULLSCREEN: 1, + AD_TYPE_FULLSCREEN: 1, /** * !#en Move APP Ads @@ -2664,7 +2664,7 @@ anysdk.PushActionResultCode = { * !#zh 推送系统的接受消息回调 * @property {Number} kPushReceiveMessage */ - kPushReceiveMessage: 0, + kPushReceiveMessage: 0, /** * !#en The extension code @@ -2696,7 +2696,7 @@ anysdk.CustomResultCode = { anysdk.RECResultCode = { /** - * !#en The callback of succeeding in initing sdk + * !#en The callback of succeeding in initing sdk * !#zh 录屏系统的初始化成功回调 * @property {Number} kRECInitSuccess */ @@ -2710,7 +2710,7 @@ anysdk.RECResultCode = { kRECInitFail: 1, /** - * !#en The callback of starting to record. + * !#en The callback of starting to record. * !#zh 录屏系统的开始录屏回调 * @property {Number} kRECStartRecording */ @@ -2752,7 +2752,7 @@ anysdk.RECResultCode = { kRECQuitSDKPage: 7, /** - * !#en The callback of succeeding in initing sdk + * !#en The callback of succeeding in initing sdk * !#zh 录屏系统的分享成功回调 * @property {Number} kRECShareSuccess */ diff --git a/extensions/ccui/base-classes/UIWidget.js b/extensions/ccui/base-classes/UIWidget.js index ac376092f5..e8a58ffaba 100644 --- a/extensions/ccui/base-classes/UIWidget.js +++ b/extensions/ccui/base-classes/UIWidget.js @@ -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(); diff --git a/extensions/ccui/layouts/UIHBox.js b/extensions/ccui/layouts/UIHBox.js index 69657952ed..4ff22f65af 100644 --- a/extensions/ccui/layouts/UIHBox.js +++ b/extensions/ccui/layouts/UIHBox.js @@ -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); -}; \ No newline at end of file +}; diff --git a/extensions/ccui/layouts/UILayout.js b/extensions/ccui/layouts/UILayout.js index 8b3269143e..b903f87531 100644 --- a/extensions/ccui/layouts/UILayout.js +++ b/extensions/ccui/layouts/UILayout.js @@ -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; \ No newline at end of file +ccui.Layout.BACKGROUND_RENDERER_ZORDER = -2; diff --git a/extensions/ccui/layouts/UIRelativeBox.js b/extensions/ccui/layouts/UIRelativeBox.js index 14a357853e..8c87d828ae 100644 --- a/extensions/ccui/layouts/UIRelativeBox.js +++ b/extensions/ccui/layouts/UIRelativeBox.js @@ -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); -}; \ No newline at end of file +}; diff --git a/extensions/ccui/layouts/UIVBox.js b/extensions/ccui/layouts/UIVBox.js index 352d21bafe..08af9b4f59 100644 --- a/extensions/ccui/layouts/UIVBox.js +++ b/extensions/ccui/layouts/UIVBox.js @@ -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); -}; \ No newline at end of file +}; diff --git a/extensions/ccui/system/UIHelper.js b/extensions/ccui/system/UIHelper.js index 260d61d5dc..026c6657c2 100644 --- a/extensions/ccui/system/UIHelper.js +++ b/extensions/ccui/system/UIHelper.js @@ -144,8 +144,8 @@ ccui.helper = { /** * restrict capInsetSize, when the capInsets' width is larger than the textureSize, it will restrict to 0,
* 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; diff --git a/extensions/ccui/uiwidgets/UIButton.js b/extensions/ccui/uiwidgets/UIButton.js index 11867fb8f4..48ce5c1064 100644 --- a/extensions/ccui/uiwidgets/UIButton.js +++ b/extensions/ccui/uiwidgets/UIButton.js @@ -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; diff --git a/extensions/ccui/uiwidgets/UICheckBox.js b/extensions/ccui/uiwidgets/UICheckBox.js index ac7e4caade..1219c91068 100644 --- a/extensions/ccui/uiwidgets/UICheckBox.js +++ b/extensions/ccui/uiwidgets/UICheckBox.js @@ -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(); diff --git a/extensions/ccui/uiwidgets/UIImageView.js b/extensions/ccui/uiwidgets/UIImageView.js index e32d64a6e9..09ba719d85 100644 --- a/extensions/ccui/uiwidgets/UIImageView.js +++ b/extensions/ccui/uiwidgets/UIImageView.js @@ -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; \ No newline at end of file +ccui.ImageView.RENDERER_ZORDER = -1; diff --git a/extensions/ccui/uiwidgets/UILoadingBar.js b/extensions/ccui/uiwidgets/UILoadingBar.js index 9e8a97504e..8ef932729b 100644 --- a/extensions/ccui/uiwidgets/UILoadingBar.js +++ b/extensions/ccui/uiwidgets/UILoadingBar.js @@ -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; \ No newline at end of file +ccui.LoadingBar.RENDERER_ZORDER = -1; diff --git a/extensions/ccui/uiwidgets/UIRichText.js b/extensions/ccui/uiwidgets/UIRichText.js index 5c8586fd94..20a6825945 100644 --- a/extensions/ccui/uiwidgets/UIRichText.js +++ b/extensions/ccui/uiwidgets/UIRichText.js @@ -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(); diff --git a/extensions/ccui/uiwidgets/UISlider.js b/extensions/ccui/uiwidgets/UISlider.js index 0d1f1d4be9..574eaad457 100644 --- a/extensions/ccui/uiwidgets/UISlider.js +++ b/extensions/ccui/uiwidgets/UISlider.js @@ -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; \ No newline at end of file +ccui.Slider.BALL_RENDERER_ZORDER = -1; diff --git a/extensions/ccui/uiwidgets/UIText.js b/extensions/ccui/uiwidgets/UIText.js index 4ecd1db2af..5ad827d785 100644 --- a/extensions/ccui/uiwidgets/UIText.js +++ b/extensions/ccui/uiwidgets/UIText.js @@ -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 -}; \ No newline at end of file +}; diff --git a/extensions/ccui/uiwidgets/UITextAtlas.js b/extensions/ccui/uiwidgets/UITextAtlas.js index 0b3fcb476b..71c0a81f4d 100644 --- a/extensions/ccui/uiwidgets/UITextAtlas.js +++ b/extensions/ccui/uiwidgets/UITextAtlas.js @@ -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; \ No newline at end of file +ccui.TextAtlas.RENDERER_ZORDER = -1; diff --git a/extensions/ccui/uiwidgets/UITextBMFont.js b/extensions/ccui/uiwidgets/UITextBMFont.js index e1c3e3e3e6..c8dcd2d8d4 100644 --- a/extensions/ccui/uiwidgets/UITextBMFont.js +++ b/extensions/ccui/uiwidgets/UITextBMFont.js @@ -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(); diff --git a/extensions/ccui/uiwidgets/UITextField.js b/extensions/ccui/uiwidgets/UITextField.js index 064127b016..a650f0ec0d 100644 --- a/extensions/ccui/uiwidgets/UITextField.js +++ b/extensions/ccui/uiwidgets/UITextField.js @@ -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; \ No newline at end of file +ccui.TextField.RENDERER_ZORDER = -1; diff --git a/extensions/ccui/uiwidgets/scroll-widget/UIScrollView.js b/extensions/ccui/uiwidgets/scroll-widget/UIScrollView.js index d213378e7b..658fe139a9 100644 --- a/extensions/ccui/uiwidgets/scroll-widget/UIScrollView.js +++ b/extensions/ccui/uiwidgets/scroll-widget/UIScrollView.js @@ -180,7 +180,7 @@ ccui.ScrollView = ccui.Layout.extend(/** @lends ccui.ScrollView# */{ /** * Changes inner container size of ScrollView.
* 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.
* 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(); diff --git a/extensions/cocostudio/armature/CCArmature.js b/extensions/cocostudio/armature/CCArmature.js index 41778fc45b..7af2ac3dfb 100644 --- a/extensions/cocostudio/armature/CCArmature.js +++ b/extensions/cocostudio/armature/CCArmature.js @@ -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; diff --git a/extensions/cocostudio/armature/animation/CCArmatureAnimation.js b/extensions/cocostudio/armature/animation/CCArmatureAnimation.js index 870ba7ed0f..b40c5947ce 100644 --- a/extensions/cocostudio/armature/animation/CCArmatureAnimation.js +++ b/extensions/cocostudio/armature/animation/CCArmatureAnimation.js @@ -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. diff --git a/extensions/cocostudio/armature/datas/CCDatas.js b/extensions/cocostudio/armature/datas/CCDatas.js index 4526071f81..4e43d21d72 100644 --- a/extensions/cocostudio/armature/datas/CCDatas.js +++ b/extensions/cocostudio/armature/datas/CCDatas.js @@ -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 = []; diff --git a/extensions/cocostudio/armature/display/CCSkin.js b/extensions/cocostudio/armature/display/CCSkin.js index 1106711c90..38c37836b5 100644 --- a/extensions/cocostudio/armature/display/CCSkin.js +++ b/extensions/cocostudio/armature/display/CCSkin.js @@ -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 */ diff --git a/extensions/cocostudio/armature/utils/CCArmatureDataManager.js b/extensions/cocostudio/armature/utils/CCArmatureDataManager.js index 89f06fb2d0..1cc43b0db3 100644 --- a/extensions/cocostudio/armature/utils/CCArmatureDataManager.js +++ b/extensions/cocostudio/armature/utils/CCArmatureDataManager.js @@ -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(); } -}; \ No newline at end of file +}; diff --git a/extensions/cocostudio/armature/utils/CCDataReaderHelper.js b/extensions/cocostudio/armature/utils/CCDataReaderHelper.js index b6b881c654..0885d7acd4 100644 --- a/extensions/cocostudio/armature/utils/CCDataReaderHelper.js +++ b/extensions/cocostudio/armature/utils/CCDataReaderHelper.js @@ -125,7 +125,7 @@ ccs.CONST_CONTENT_SCALE = "content_scale"; /** * @ignore - * @constructor + * */ ccs.DataInfo = function () { this.asyncStruct = null; diff --git a/extensions/cocostudio/loader/parsers/compatible.js b/extensions/cocostudio/loader/parsers/compatible.js index ad10d18d02..20082fdcde 100644 --- a/extensions/cocostudio/loader/parsers/compatible.js +++ b/extensions/cocostudio/loader/parsers/compatible.js @@ -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(); } }; -})(); \ No newline at end of file +})(); diff --git a/extensions/dragonbones/ArmatureDisplay.js b/extensions/dragonbones/ArmatureDisplay.js index fc3c5a8e18..7cc08b2486 100644 --- a/extensions/dragonbones/ArmatureDisplay.js +++ b/extensions/dragonbones/ArmatureDisplay.js @@ -48,8 +48,7 @@ function setEnumAttr (obj, propName, enumDef) { * 多个 Armature Display 可以使用相同的骨骼数据,其中包括所有的动画,皮肤和 attachments。)
* * @class ArmatureDisplay - * @extends cc._RendererUnderSG - * @constructor + * @extends _RendererUnderSG */ dragonBones.ArmatureDisplay = cc.Class({ name: 'dragonBones.ArmatureDisplay', @@ -518,3 +517,8 @@ dragonBones.ArmatureDisplay = cc.Class({ return null; } }); + +/** + * module that contains all Dragon Bones runtime API + * @module dragonBones + */ diff --git a/extensions/dragonbones/DragonBonesAtlasAsset.js b/extensions/dragonbones/DragonBonesAtlasAsset.js index f7789b0b57..66a9b90613 100644 --- a/extensions/dragonbones/DragonBonesAtlasAsset.js +++ b/extensions/dragonbones/DragonBonesAtlasAsset.js @@ -43,7 +43,7 @@ var DragonBonesAtlasAsset = cc.Class({ }, /** - * @property {cc.Texture2D} texture + * @property {Texture2D} texture */ texture: { default: '', diff --git a/extensions/gui/control-extension/CCControlButton.js b/extensions/gui/control-extension/CCControlButton.js index a338db8eb2..519be0c2b7 100644 --- a/extensions/gui/control-extension/CCControlButton.js +++ b/extensions/gui/control-extension/CCControlButton.js @@ -38,7 +38,7 @@ cc.CONTROL_ZOOM_ACTION_TAG = 0xCCCB0001; * * @property {Boolean} adjustBackgroundImage - Indicate whether the background image will be adjusted * @property {Boolean} zoomOnTouchDown - Indicate whether the button will be zoomed while touch down - * @property {cc.Size} preferredSize - The preferred size of the control button + * @property {Size} preferredSize - The preferred size of the control button * @property {Boolean} labelAnchor - The anchor point for the label of the control button */ cc.ControlButton = cc.Control.extend(/** @lends cc.ControlButton# */{ diff --git a/extensions/gui/control-extension/CCControlSwitch.js b/extensions/gui/control-extension/CCControlSwitch.js index 6042edf7ef..8ae9bf06af 100644 --- a/extensions/gui/control-extension/CCControlSwitch.js +++ b/extensions/gui/control-extension/CCControlSwitch.js @@ -171,7 +171,7 @@ cc.ControlSwitch.create = function (maskSprite, onSprite, offSprite, thumbSprite * @property {Number} sliderX - Slider's x position * @property {cc.Vec2} onPos - The position of slider when switch is on * @property {cc.Vec2} offPos - The position of slider when switch is off - * @property {cc.Texture2D} maskTexture - The texture of the mask + * @property {Texture2D} maskTexture - The texture of the mask * @property {cc.Vec2} texturePos - The position of the texture * @property {cc.Vec2} maskPos - The position of the mask * @property {_ccsg.Sprite} onSprite - The sprite of switch on diff --git a/extensions/gui/control-extension/CCControlUtils.js b/extensions/gui/control-extension/CCControlUtils.js index abdb737ee3..512d8ae44b 100644 --- a/extensions/gui/control-extension/CCControlUtils.js +++ b/extensions/gui/control-extension/CCControlUtils.js @@ -36,7 +36,7 @@ * @param {Number} g * @param {Number} b * @param {Number} a - * @constructor + * */ cc.RGBA = function(r,g,b,a){ this.r = r ; // percent @@ -174,4 +174,4 @@ cc.ControlUtils.RGBfromHSV = function(hsvValue){ cc.ControlUtils.CCRectUnion = function(rect1, rect2){ return cc.rectUnion(rect1,rect2); -}; \ No newline at end of file +}; diff --git a/extensions/gui/scrollview/CCScrollView.js b/extensions/gui/scrollview/CCScrollView.js index b9d55c4f41..7bcbaac7a0 100644 --- a/extensions/gui/scrollview/CCScrollView.js +++ b/extensions/gui/scrollview/CCScrollView.js @@ -65,7 +65,7 @@ cc.ScrollViewDelegate = cc._Class.extend({ * @property {cc.Vec2} minOffset - <@readonly> The current container's minimum offset * @property {cc.Vec2} maxOffset - <@readonly> The current container's maximum offset * @property {Boolean} bounceable - Indicate whether the scroll view is bounceable - * @property {cc.Size} viewSize - The size of the scroll view + * @property {Size} viewSize - The size of the scroll view * @property {cc.Layer} container - The inside container of the scroll view * @property {Number} direction - The direction allowed to scroll: cc.SCROLLVIEW_DIRECTION_BOTH by default, or cc.SCROLLVIEW_DIRECTION_NONE | cc.SCROLLVIEW_DIRECTION_HORIZONTAL | cc.SCROLLVIEW_DIRECTION_VERTICAL * @property {cc.ScrollViewDelegate} delegate - The inside container of the scroll view @@ -133,7 +133,7 @@ cc.ScrollView = cc.Layer.extend(/** @lends cc.ScrollView# */{ /** * initialized whether success or fail - * @param {cc.Size} size + * @param {Size} size * @param {_ccsg.Node} container * @return {Boolean} */ @@ -698,7 +698,7 @@ cc.ScrollView = cc.Layer.extend(/** @lends cc.ScrollView# */{ //check to see if offset lies within the inset bounds var newX = this._container.getPositionX(); var newY = this._container.getPositionY(); - + locScrollDistance.x = locScrollDistance.x * SCROLL_DEACCEL_RATE; locScrollDistance.y = locScrollDistance.y * SCROLL_DEACCEL_RATE; @@ -817,10 +817,10 @@ _p = null; /** * Returns an autoreleased scroll view object. * @deprecated - * @param {cc.Size} size view size + * @param {Size} size view size * @param {_ccsg.Node} container parent object * @return {cc.ScrollView} scroll view object */ cc.ScrollView.create = function (size, container) { return new cc.ScrollView(size, container); -}; \ No newline at end of file +}; diff --git a/extensions/gui/scrollview/CCTableView.js b/extensions/gui/scrollview/CCTableView.js index 961fb014a6..d2eecd31de 100644 --- a/extensions/gui/scrollview/CCTableView.js +++ b/extensions/gui/scrollview/CCTableView.js @@ -138,7 +138,7 @@ cc.TableViewDataSource = cc._Class.extend(/** @lends cc.TableViewDataSource# */{ * cell size for a given index * @param {cc.TableView} table table to hold the instances of Class * @param {Number} idx the index of a cell to get a size - * @return {cc.Size} size of a cell at given index + * @return {Size} size of a cell at given index */ tableCellSizeForIndex:function(table, idx){ return this.cellSizeForTable(table); @@ -147,7 +147,7 @@ cc.TableViewDataSource = cc._Class.extend(/** @lends cc.TableViewDataSource# */{ * cell height for a given table. * * @param {cc.TableView} table table to hold the instances of Class - * @return {cc.Size} cell size + * @return {Size} cell size */ cellSizeForTable:function (table) { return cc.size(0,0); @@ -711,7 +711,7 @@ _p = null; * An initialized table view object * @deprecated * @param {cc.TableViewDataSource} dataSource data source; - * @param {cc.Size} size view size + * @param {Size} size view size * @param {_ccsg.Node} [container] parent object for cells * @return {cc.TableView} table view */ diff --git a/extensions/spine/SGSkeleton.js b/extensions/spine/SGSkeleton.js index 763feda021..e5bb0b64d3 100644 --- a/extensions/spine/SGSkeleton.js +++ b/extensions/spine/SGSkeleton.js @@ -143,7 +143,7 @@ sp._SGSkeleton = _ccsg.Node.extend({ /** * Returns the bounding box of sp._SGSkeleton. - * @returns {cc.Rect} + * @returns {Rect} */ getBoundingBox: function () { var minX = cc.macro.FLT_MAX, minY = cc.macro.FLT_MAX, maxX = cc.macro.FLT_MIN, maxY = cc.macro.FLT_MIN; diff --git a/extensions/spine/Skeleton.js b/extensions/spine/Skeleton.js index 4a882db871..0fb27a6fec 100644 --- a/extensions/spine/Skeleton.js +++ b/extensions/spine/Skeleton.js @@ -52,8 +52,7 @@ function setEnumAttr (obj, propName, enumDef) { * 多个 Skeleton 可以使用相同的骨骼数据,其中包括所有的动画,皮肤和 attachments。 * * @class Skeleton - * @extends cc._RendererUnderSG - * @constructor + * @extends _RendererUnderSG */ // 由于 Spine 的 _sgNode 需要参数才能初始化, 所以这里的 _sgNode 不在构造函数中赋值, 每次访问前都要先判断一次是否初始化了 diff --git a/extensions/spine/SkeletonData.js b/extensions/spine/SkeletonData.js index 03d751d287..2844f5c29c 100644 --- a/extensions/spine/SkeletonData.js +++ b/extensions/spine/SkeletonData.js @@ -76,7 +76,7 @@ var TextureLoader = cc.Class({ * !#en The skeleton data of spine. * !#zh Spine 的 骨骼数据。 * @class SkeletonData - * @extends cc.Asset + * @extends Asset */ var SkeletonData = cc.Class({ name: 'sp.SkeletonData', @@ -128,7 +128,7 @@ var SkeletonData = cc.Class({ // ------------------------------------------------- /** - * @property {cc.Texture2D} textures + * @property {Texture2D} textures */ textures: { default: [], diff --git a/jsb/jsb-apis.js b/jsb/jsb-apis.js index 1fe936fa71..26c105fb71 100644 --- a/jsb/jsb-apis.js +++ b/jsb/jsb-apis.js @@ -384,7 +384,7 @@ jsb.EventAssetsManager = cc._Class.extend(/** @lends jsb.EventAssetsManager# */{ /** * @function EventAssetsManager - * @constructor + * * @param {String} arg0 * @param {cc.AssetsManager} arg1 * @param {cc.EventAssetsManager::EventCode} arg2 @@ -446,7 +446,7 @@ jsb.EventListenerAssetsManager = cc._Class.extend(/** @lends jsb.EventListenerAs /** * @function EventListenerAssetsManager - * @constructor + * */ EventListenerAssetsManager : function ( ) @@ -533,7 +533,7 @@ jsb.AssetsManager = cc._Class.extend(/** @lends jsb.AssetsManager# */{ /** * @function AssetsManager - * @constructor + * * @param {String} arg0 * @param {String} arg1 */ @@ -616,4 +616,4 @@ jsb.reflection = /** @lends jsb.reflection# */{ */ callStaticMethod : function(){ } -}; \ No newline at end of file +};