Viewport interface
Signature:
export interface Viewport
Properties
Property | Modifiers | Type | Description | Default |
---|---|---|---|---|
deviceScaleFactor |
| number | Specify device scale factor. See devicePixelRatio for more info. Remarks: Setting this value to |
|
hasTouch |
| boolean | Specify if the viewport supports touch events. |
|
height | number | The page height in CSS pixels. Remarks: Setting this value to | ||
isLandscape |
| boolean | Specifies if the viewport is in landscape mode. |
|
isMobile |
| boolean | Whether the |
|
width | number | The page width in CSS pixels. Remarks: Setting this value to |