mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
fix containsRect api error for creator-api-docs/issues/19 (#2333)
This commit is contained in:
@@ -346,8 +346,8 @@ proto.contains = function (point) {
|
||||
* @param {Rect} rect
|
||||
* @type {Boolean}
|
||||
* @example
|
||||
* var a = new cc.Rect(0, 0, 10, 10);
|
||||
* var b = new cc.Rect(0, 0, 20, 20);
|
||||
* var a = new cc.Rect(0, 0, 20, 20);
|
||||
* var b = new cc.Rect(0, 0, 10, 10);
|
||||
* a.containsRect(b);// true
|
||||
*/
|
||||
proto.containsRect = function (rect) {
|
||||
|
||||
Reference in New Issue
Block a user