Skip to content

Documentation / device / DeviceViewport

Type Alias: DeviceViewport

DeviceViewport = object

Defined in: libs/device/src/base_types.ts:2456

Structure that contains the device viewport information

Properties

x

x: number

Defined in: libs/device/src/base_types.ts:2458

viewport left


y

y: number

Defined in: libs/device/src/base_types.ts:2460

viewport top


width

width: number

Defined in: libs/device/src/base_types.ts:2462

viewport width


height

height: number

Defined in: libs/device/src/base_types.ts:2464

viewport height


default

default: boolean

Defined in: libs/device/src/base_types.ts:2470

A boolean value that indicates whether this is full screen viewport

Remarks

The full screen viewport will be automatically resized when the screen size chenged

Released under the MIT License.