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

Shape interface

A container one unit tall: its profile from the bottom centre up to the top centre as radius and height pairs, the band the label may take, where the cap begins and the default colours.

View as Markdown
import type { Shape } from '@dioramajs/model/label'

. Proportions of a 330 ml can, a 750 ml wine bottle and a 250 ml jar.

interface Shape

Members

NameTypeDescription
readonly bandreadonly [number, number]
readonly capnumber
readonly capColorstring
readonly colorstring
readonly profilereadonly readonly [number, number][]
readonly radiusnumber

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