mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 06:30:38 +00:00
Add Phaser.GameObjects.Shape#setDisplaySize()
This commit is contained in:
parent
a7308da7a3
commit
a8e05cec3e
1 changed files with 21 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue