EffectsOptions interface
Options of the `effects` preset.
import type { EffectsOptions } from '@dioramajs/diorama/effects'interface EffectsOptionsMembers
| Name | Type | Description |
|---|---|---|
readonly effects | EffectEntries | Effects, loaders or entries by name. The key is the token in markup. |
readonly enabled | boolean | 'auto' | 'auto' (default) is off under Save-Data and unavailable without WebGPU or WebGL 2. |
readonly extend | readonly (() => PluginEntry | readonly PluginEntry[] | Promise<PluginEntry | readonly PluginEntry[]>)[] | Plugins that need three (e.g. postfx, quality). Each is used after render in its own transaction: |
readonly load | 'near' | 'eager' | 'manual' | 'near' (default) boots when the first effect element nears the viewport, 'eager' at app:start, 'manual' only on |
readonly margin | string | IntersectionObserver rootMargin that starts loading. Default '100% 0px', one viewport ahead. |
readonly markup | boolean | Read |
readonly prefetch | boolean | Downloads the engine in idle time after window load. Default true, never under Save-Data. |
readonly render | Partial<RenderOptions> | Options for |
readonly root | string | ParentNode | undefined | Scanned subtree, default |
Also exported from @dioramajs/effects.
Defined in packages/effects/src/types.ts.