screenOf function
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.
import { screenOf } from '@dioramajs/model/device'.
function screenOf(frame: Frame, aspect: number): numberParameters
| Name | Type | Description |
|---|---|---|
frame | Frame | |
aspect | number |
Defined in packages/model/src/device.ts.