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

twoUp function

Two pages side by side when the box holds them at three quarters of a page's height or more.

View as Markdown
import { twoUp } from '@dioramajs/media/flipbook'
function twoUp(width: number, height: number, aspect: number): boolean

Parameters

NameTypeDescription
widthnumber
heightnumber
aspectnumber

Defined in packages/media/src/flipbook.ts.