mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
fix some comments
This commit is contained in:
@@ -565,7 +565,7 @@ proto.copy = proto.clone;
|
||||
* The originalSize is the size in pixels of the frame before being trimmed.
|
||||
* </p>
|
||||
* since v3.0, please use new constructor {{#crossLink "SpriteFrame/SpriteFrame:method"}}SpriteFrame(){{/crossLink}} instead.
|
||||
* @method cc.SpriteFrame.create
|
||||
* @method create
|
||||
* @param {String|cc.Texture2D} filename
|
||||
* @param {cc.Rect} rect if parameters' length equal 2, rect in points, else rect in pixels
|
||||
* @param {Boolean} rotated
|
||||
@@ -579,7 +579,7 @@ cc.SpriteFrame.create = function (filename, rect, rotated, offset, originalSize)
|
||||
|
||||
/**
|
||||
* deprecated since v3.0, please use new construction instead
|
||||
* @method cc.SpriteFrame.createWithTexture
|
||||
* @method createWithTexture
|
||||
* @deprecated
|
||||
*/
|
||||
cc.SpriteFrame.createWithTexture = cc.SpriteFrame.create;
|
||||
|
||||
@@ -266,7 +266,7 @@ var BaseNode = cc.Class(/** @lends cc.Node# */{
|
||||
|
||||
/**
|
||||
* Rotation on y axis
|
||||
* @property rotationX
|
||||
* @property rotationY
|
||||
* @type {Number}
|
||||
*/
|
||||
rotationY: {
|
||||
@@ -622,10 +622,12 @@ var BaseNode = cc.Class(/** @lends cc.Node# */{
|
||||
* Current active scene graph node which provides content size.
|
||||
*
|
||||
* @property _sizeProvider
|
||||
* @type {_ccsg.Node}
|
||||
* @type {Object}
|
||||
* @private
|
||||
*/
|
||||
// _ccsg.Node
|
||||
this._sizeProvider = null;
|
||||
|
||||
},
|
||||
|
||||
destroy: function () {
|
||||
|
||||
Reference in New Issue
Block a user