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

createApp function

Creates an app with the built-in web layer and the given presets and plugins.

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

Call start() to run it.

function createApp<P extends readonly PresetEntry[] = [], E extends readonly PluginEntry[] = []>(
  options?: AppOptions<P, E>,
): App<ServicesOf<PresetPlugins<P[number]> | Extract<E[number], AnyPlugin>>>

Parameters

NameTypeDescription
options?AppOptions<P, E>

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

Defined in packages/core/src/index.ts.