File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 29
29
* @class cc.Point
30
30
* @param {Number } x
31
31
* @param {Number } y
32
+ *
33
+ * @property x {Number}
34
+ * @property y {Number}
32
35
* @see cc.p
33
36
*/
34
37
cc . Point = function ( x , y ) {
@@ -79,6 +82,8 @@ cc.pointEqualToPoint = function (point1, point2) {
79
82
* @class cc.Size
80
83
* @param {Number } width
81
84
* @param {Number } height
85
+ * @property {Number } width
86
+ * @property {Number } height
82
87
* @see cc.size
83
88
*/
84
89
cc . Size = function ( width , height ) {
@@ -127,8 +132,16 @@ cc.sizeEqualToSize = function (size1, size2) {
127
132
/**
128
133
* cc.Rect is the class for rect object, please do not use its constructor to create rects, use cc.rect() alias function instead.
129
134
* @class cc.Rect
135
+ * @param {Number } x
136
+ * @param {Number } y
130
137
* @param {Number } width
131
138
* @param {Number } height
139
+ *
140
+ * @property {Number } x
141
+ * @property {Number } y
142
+ * @property {Number } width
143
+ * @property {Number } height
144
+ *
132
145
* @see cc.rect
133
146
*/
134
147
cc . Rect = function ( x , y , width , height ) {
@@ -323,5 +336,3 @@ cc.rectIntersection = function (rectA, rectB) {
323
336
intersection . height = Math . min ( cc . rectGetMaxY ( rectA ) , cc . rectGetMaxY ( rectB ) ) - cc . rectGetMinY ( intersection ) ;
324
337
return intersection ;
325
338
} ;
326
-
327
-
Original file line number Diff line number Diff line change 50
50
* @extends cc.Node
51
51
*
52
52
* @param {String|cc.SpriteFrame|HTMLImageElement|cc.Texture2D } fileName The string which indicates a path to image file, e.g., "scene1/monster.png".
53
- * @param {cc.Rect } rect Only the contents inside rect of pszFileName's texture will be applied for this sprite.
53
+ * @param {cc.Rect } [ rect] Only the contents inside rect of pszFileName's texture will be applied for this sprite.
54
54
* @param {Boolean } [rotated] Whether or not the texture rectangle is rotated.
55
55
* @example
56
56
*
You can’t perform that action at this time.
0 commit comments