Phaser API Documentation

  Version: 
<static, constant> 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.

Type:
number
Since: 3.16.0