The Phaser.Scale.Events#RESIZE event no longer sends the resolution as a parameter.

This commit is contained in:
Richard Davey 2020-09-12 11:58:50 +01:00
parent e4b1093e72
commit 68946f3894

View file

@ -6,7 +6,7 @@
/**
* The Scale Manager Resize Event.
*
*
* This event is dispatched whenever the Scale Manager detects a resize event from the browser.
* It sends three parameters to the callback, each of them being Size components. You can read
* the `width`, `height`, `aspectRatio` and other properties of these components to help with
@ -14,11 +14,10 @@
*
* @event Phaser.Scale.Events#RESIZE
* @since 3.16.1
*
*
* @param {Phaser.Structs.Size} gameSize - A reference to the Game Size component. This is the un-scaled size of your game canvas.
* @param {Phaser.Structs.Size} baseSize - A reference to the Base Size component. This is the game size multiplied by resolution.
* @param {Phaser.Structs.Size} baseSize - A reference to the Base Size component. This is the game size.
* @param {Phaser.Structs.Size} displaySize - A reference to the Display Size component. This is the scaled canvas size, after applying zoom and scale mode.
* @param {number} resolution - The current resolution. Defaults to 1 at the moment.
* @param {number} previousWidth - If the `gameSize` has changed, this value contains its previous width, otherwise it contains the current width.
* @param {number} previousHeight - If the `gameSize` has changed, this value contains its previous height, otherwise it contains the current height.
*/