We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7308da commit a8e05ceCopy full SHA for a8e05ce
1 file changed
src/gameobjects/shape/Shape.js
@@ -327,6 +327,27 @@ var Shape = new Class({
327
return this;
328
},
329
330
+ /**
331
+ * Sets the display size of this Shape.
332
+ *
333
+ * Calling this will adjust the scale.
334
335
+ * @method Phaser.GameObjects.Shape#setDisplaySize
336
+ * @since 3.53.0
337
338
+ * @param {number} width - The display width of this Shape.
339
+ * @param {number} height - The display height of this Shape.
340
341
+ * @return {this} This Shape instance.
342
+ */
343
+ setDisplaySize: function (width, height)
344
+ {
345
+ this.displayWidth = width;
346
+ this.displayHeight = height;
347
+
348
+ return this;
349
+ },
350
351
/**
352
* Internal destroy handler, called as part of the destroy process.
353
*
0 commit comments