Phaser API Documentation

  Version: 
width: number

Description:

The width of the canvas being rendered to. This is populated in the onResize event handler.

Type:
number
Since: 3.0.0