Structs

Phaser.Structs

NONE

NONE: number

Description:

Do not make the size fit the aspect ratio. Change the ratio when the size changes.

Source: src/structs/Size.js#L722
Since: 3.16.0

WIDTH_CONTROLS_HEIGHT

WIDTH_CONTROLS_HEIGHT: number

Description:

The height is automatically adjusted based on the width.

Source: src/structs/Size.js#L732
Since: 3.16.0

HEIGHT_CONTROLS_WIDTH

HEIGHT_CONTROLS_WIDTH: number

Description:

The width is automatically adjusted based on the height.

Source: src/structs/Size.js#L742
Since: 3.16.0

FIT

FIT: number

Description:

The width and height are automatically adjusted to fit inside the given target area, while keeping the aspect ratio. Depending on the aspect ratio there may be some space inside the area which is not covered.

Source: src/structs/Size.js#L752
Since: 3.16.0

ENVELOP

ENVELOP: number

Description:

The width and height are automatically adjusted to make the size cover the entire target area while keeping the aspect ratio. This may extend further out than the target size.

Source: src/structs/Size.js#L762
Since: 3.16.0

Updated on