Canvas.viewportWidth Property

Gets the width of the viewport in pixels.
 

Property Value

Type: Number