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

@dioramajs/model/label

Exports of @dioramajs/model/label.

View as Markdown
On this page
import { default, placement, SHAPES } from '@dioramajs/model/label'

Functions

placementWhere a label of `aspect` (width over height) lies on `shape`: the band's bottom and top and the angle it wraps. It keeps its proportions: the band's height, and the angle that width takes around the body; a label too long for one turn gets a lower band instead.

Constants

defaultA label image wrapped around a can, a bottle or a jar, at the angle its width takes around the body: the whole label shows as it turns with a drag, the scroll or on its own.
SHAPES

Interfaces

ShapeA 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. Proportions of a 330 ml can, a 750 ml wine bottle and a 250 ml jar.

Types