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

AssetsOptions interface

Options of the `assets` plugin.

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

Members

NameTypeDescription
readonly concurrencynumber

Parallel requests. Default 6. At most 2 of them low, and only while no high request waits.

readonly decodersPartial<DecoderOptions>

Where the Draco, KTX2 and Meshopt decoders come from.

readonly loadersReadonly<Record<string, LoaderEntry>>

Own loaders by type, next to the built-in ones. A lazy one is picked by type only.

readonly preloadboolean

Reads data-dio-preload. Default true. Off under Save-Data or 2g.

readonly retainnumber

Bytes of unused entries kept for reuse (back navigation, preloads), LRU. Default 32 MB, 0 disables.

Also exported from @dioramajs/assets.

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