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

placement function

Where a label of `aspect` (width over height) lies on `shape`: the band's bottom and top and the angle it wraps.

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

. 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.

function placement(shape: Shape, aspect: number): [number, number, number]

Parameters

NameTypeDescription
shapeShape
aspectnumber

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