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

Preload interface

Settles once everything has settled.

View as Markdown
import type { Preload } from '@dioramajs/diorama/assets'

Never rejects.

interface Preload extends PromiseLike<void>

Members

NameTypeDescription
dispose
dispose(): void

Same as release, for page.onDispose(app.assets.preload(doc)).

release
release(): void

Drops the leases now. Otherwise they are held until the next preload of the same kind.

then
then<TResult1 = void, TResult2 = never>(
  onfulfilled?: (value: void) => TResult1 | PromiseLike<TResult1> | null,
  onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2> | null,
): PromiseLike<TResult1 | TResult2>

Attaches callbacks for the resolution and/or rejection of the Promise.

Also exported from @dioramajs/assets.

Defined in packages/assets/src/types.ts.