Add Phaser.GameObjects.Shape#setDisplaySize()

This commit is contained in:
samme 2021-01-30 09:33:21 -08:00
parent a7308da7a3
commit a8e05cec3e

View file

@ -327,6 +327,27 @@ var Shape = new Class({
return this;
},
/**
* Sets the display size of this Shape.
*
* Calling this will adjust the scale.
*
* @method Phaser.GameObjects.Shape#setDisplaySize
* @since 3.53.0
*
* @param {number} width - The display width of this Shape.
* @param {number} height - The display height of this Shape.
*
* @return {this} This Shape instance.
*/
setDisplaySize: function (width, height)
{
this.displayWidth = width;
this.displayHeight = height;
return this;
},
/**
* Internal destroy handler, called as part of the destroy process.
*