StartOptions interface
Options of `start()`.
import type { StartOptions } from '@dioramajs/diorama'Every field is optional.
interface StartOptionsMembers
| Name | Type | Description |
|---|---|---|
readonly background? | string | number | Clear colour: a number or any CSS colour, e.g. |
readonly canvas? | 'over' | 'behind' | 'over' (default) draws above the page, 'behind' draws under a transparent page. |
readonly effects? | { [name: string]: EntryPatch | EffectSource } | Effects besides the folder's and the catalogue's: a new entry replaces the one of its name, a patch ( |
readonly enabled? | boolean | 'auto' | 'auto' (default) is off under Save-Data and unavailable without WebGPU or WebGL 2. |
readonly gsap? | GsapLike | The site's GSAP. Its tweens and the frame share one ticker, and |
readonly lenis? | LenisLike | The site's Lenis instance, so smooth scroll lands in the same frame as the canvas. |
readonly load? | 'near' | 'eager' | 'manual' | When the engine boots: 'near' (default), 'eager' or 'manual'. |
readonly margin? | string | IntersectionObserver rootMargin that starts loading. Default '100% 0px'. |
readonly plugins? | readonly PluginEntry[] | Extra plugins, your own or official ones with more options. |
readonly prefetch? | boolean | Download the engine in idle time after window load. Default true. |
readonly quality? | false | 'auto' | QualityTier | Partial<QualityOptions> | Quality tiers for weaker GPUs: 'auto' (default) detects and adapts, a tier pins it, |
readonly render? | Partial<RenderOptions> | Renderer options beyond |
readonly ScrollTrigger? | ScrollTriggerStatic | The site's ScrollTrigger. Pins and scrubbed timelines drive |
readonly transitions? | boolean | Partial<TransitionsOptions> & { … } | Page transitions by |
Also exported from @dioramajs/diorama/auto.
Defined in packages/diorama/src/index.ts.