Skip to content

Commit 4578a9e

Browse files
committed
Fixed this return types for Phaser.GameObjects.Quad
1 parent fca6327 commit 4578a9e

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/gameobjects/quad/Quad.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ var Quad = new Class({
499499
* @param {number} x - The horizontal coordinate of the vertex.
500500
* @param {number} y - The vertical coordinate of the vertex.
501501
*
502-
* @return {Phaser.GameObjects.Quad} This Game Object.
502+
* @return {this} This Game Object.
503503
*/
504504
setTopLeft: function (x, y)
505505
{
@@ -518,7 +518,7 @@ var Quad = new Class({
518518
* @param {number} x - The horizontal coordinate of the vertex.
519519
* @param {number} y - The vertical coordinate of the vertex.
520520
*
521-
* @return {Phaser.GameObjects.Quad} This Game Object.
521+
* @return {this} This Game Object.
522522
*/
523523
setTopRight: function (x, y)
524524
{
@@ -537,7 +537,7 @@ var Quad = new Class({
537537
* @param {number} x - The horizontal coordinate of the vertex.
538538
* @param {number} y - The vertical coordinate of the vertex.
539539
*
540-
* @return {Phaser.GameObjects.Quad} This Game Object.
540+
* @return {this} This Game Object.
541541
*/
542542
setBottomLeft: function (x, y)
543543
{
@@ -556,7 +556,7 @@ var Quad = new Class({
556556
* @param {number} x - The horizontal coordinate of the vertex.
557557
* @param {number} y - The vertical coordinate of the vertex.
558558
*
559-
* @return {Phaser.GameObjects.Quad} This Game Object.
559+
* @return {this} This Game Object.
560560
*/
561561
setBottomRight: function (x, y)
562562
{
@@ -572,7 +572,7 @@ var Quad = new Class({
572572
* @method Phaser.GameObjects.Quad#resetPosition
573573
* @since 3.0.0
574574
*
575-
* @return {Phaser.GameObjects.Quad} This Game Object.
575+
* @return {this} This Game Object.
576576
*/
577577
resetPosition: function ()
578578
{
@@ -595,7 +595,7 @@ var Quad = new Class({
595595
* @method Phaser.GameObjects.Quad#resetAlpha
596596
* @since 3.0.0
597597
*
598-
* @return {Phaser.GameObjects.Quad} This Game Object.
598+
* @return {this} This Game Object.
599599
*/
600600
resetAlpha: function ()
601601
{
@@ -617,7 +617,7 @@ var Quad = new Class({
617617
* @method Phaser.GameObjects.Quad#resetColors
618618
* @since 3.0.0
619619
*
620-
* @return {Phaser.GameObjects.Quad} This Game Object.
620+
* @return {this} This Game Object.
621621
*/
622622
resetColors: function ()
623623
{
@@ -639,7 +639,7 @@ var Quad = new Class({
639639
* @method Phaser.GameObjects.Quad#reset
640640
* @since 3.0.0
641641
*
642-
* @return {Phaser.GameObjects.Quad} This Game Object.
642+
* @return {this} This Game Object.
643643
*/
644644
reset: function ()
645645
{

types/phaser.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22169,48 +22169,48 @@ declare namespace Phaser {
2216922169
* @param x The horizontal coordinate of the vertex.
2217022170
* @param y The vertical coordinate of the vertex.
2217122171
*/
22172-
setTopLeft(x: number, y: number): Phaser.GameObjects.Quad;
22172+
setTopLeft(x: number, y: number): this;
2217322173

2217422174
/**
2217522175
* Sets the top-right vertex position of this Quad.
2217622176
* @param x The horizontal coordinate of the vertex.
2217722177
* @param y The vertical coordinate of the vertex.
2217822178
*/
22179-
setTopRight(x: number, y: number): Phaser.GameObjects.Quad;
22179+
setTopRight(x: number, y: number): this;
2218022180

2218122181
/**
2218222182
* Sets the bottom-left vertex position of this Quad.
2218322183
* @param x The horizontal coordinate of the vertex.
2218422184
* @param y The vertical coordinate of the vertex.
2218522185
*/
22186-
setBottomLeft(x: number, y: number): Phaser.GameObjects.Quad;
22186+
setBottomLeft(x: number, y: number): this;
2218722187

2218822188
/**
2218922189
* Sets the bottom-right vertex position of this Quad.
2219022190
* @param x The horizontal coordinate of the vertex.
2219122191
* @param y The vertical coordinate of the vertex.
2219222192
*/
22193-
setBottomRight(x: number, y: number): Phaser.GameObjects.Quad;
22193+
setBottomRight(x: number, y: number): this;
2219422194

2219522195
/**
2219622196
* Resets the positions of the four corner vertices of this Quad.
2219722197
*/
22198-
resetPosition(): Phaser.GameObjects.Quad;
22198+
resetPosition(): this;
2219922199

2220022200
/**
2220122201
* Resets the alpha values used by this Quad back to 1.
2220222202
*/
22203-
resetAlpha(): Phaser.GameObjects.Quad;
22203+
resetAlpha(): this;
2220422204

2220522205
/**
2220622206
* Resets the color values used by this Quad back to 0xffffff.
2220722207
*/
22208-
resetColors(): Phaser.GameObjects.Quad;
22208+
resetColors(): this;
2220922209

2221022210
/**
2221122211
* Resets the position, alpha and color values used by this Quad.
2221222212
*/
22213-
reset(): Phaser.GameObjects.Quad;
22213+
reset(): this;
2221422214

2221522215
/**
2221622216
* Sets the Blend Mode being used by this Game Object.

0 commit comments

Comments
 (0)