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

Callout interface

A label to place a card for, in the host's px: its point, its card and where that goes.

View as Markdown
import type { Callout } from '@dioramajs/model/hotspots'
interface Callout

Members

NameTypeDescription
awayboolean

Turned away: keeps its place, takes no room from the others.

heightnumber
reachnumber

Horizontal px from the point to the near edge of the card.

shiftnumber

Vertical px from the point to the middle of the card.

sidenumber

-1 left of the point, 1 right; 0 before the first layout.

widthnumber
xnumber
ynumber

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