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

build function

The device of a frame around a screen for a box of `aspect` (width over height), the screen 1 unit tall.

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

. Proportions follow the real devices: screen aspect, bezels, depth and corner radius, radius times as round.

function build(frame: Frame, aspect: number, radius: number, kit: Kit): Built

Parameters

NameTypeDescription
frameFrame
aspectnumber
radiusnumber
kitKit

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