Open this page in the API Guide

MapViewportData.width Property

Gets or sets the available width of the current viewport.
 

Property Value

Type: Number
A width in pixels.