# @dioramajs/model/device

Exports of @dioramajs/model/device.

## Functions and values

- [build](/docs/api/model-device/build.md): The device of a frame around a screen for a box of `aspect` (width over height), the screen 1 unit tall. Proportions follow the real devices: screen aspect, bezels, depth and corner radius, `radius` times as round.
- [coverOf](/docs/api/model-device/cover-of.md): Crop of a picture of `media` aspect that covers a screen of `screen` aspect: scale and offset of the UV, centred across and from the top down, as a screenshot is read.
- [default](/docs/api/model-device/default.md): A screenshot or a video in a 3D phone, tablet, laptop or browser window that leans toward the pointer.
- [fitOf](/docs/api/model-device/fit-of.md): Px per unit that fits the device in the box in its rest pose, and the shift that centres it: the corners of its parts turned by pitch and yaw, each grown by the perspective of its depth seen from `distance` px.
- [screenOf](/docs/api/model-device/screen-of.md): The screen aspect (width over height) of a frame for a box of `aspect`: within the range of the real device, in the box's orientation for a phone or a tablet, always landscape for a laptop.

## Types

- [Built](/docs/api/model-device/types/built.md): A built device: its group, centred on its bounds, and its size at rest in screen heights.
- [Frame](/docs/api/model-device/types/frame.md)
- [Kit](/docs/api/model-device/types/kit.md): The materials one device is built from.
