Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

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.

View as Markdown
import { screenOf } from '@dioramajs/model/device'

.

function screenOf(frame: Frame, aspect: number): number

Parameters

NameTypeDescription
frameFrame
aspectnumber

Defined in packages/model/src/device.ts.