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

oneOf function

String param limited to these values.

View as Markdown
import { oneOf } from '@dioramajs/diorama'

The first one is the default.

function oneOf<T extends string>(...values: [T, ...T[]]): ChoiceParam<T>

Parameters

NameTypeDescription
values[T, ...T[]]

Also exported from @dioramajs/diorama/auto, @dioramajs/diorama/effects, @dioramajs/effects.

Defined in packages/effects/src/define.ts.