# EffectsOptions

interface in `@dioramajs/diorama/effects`

```ts
import type { EffectsOptions } from '@dioramajs/diorama/effects'
```

Options of the `effects` preset.

```ts
interface EffectsOptions
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `effects` | `EffectEntries` | Effects, loaders or entries by name. The key is the token in markup. |
| `enabled` | `boolean \| 'auto'` | 'auto' (default) is off under Save-Data and unavailable without WebGPU or WebGL 2. `true` ignores Save-Data but not a missing GPU: the page stays plain, as with 'auto'. `false` is off. |
| `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: `() => import('@dioramajs/quality').then((m) => m.quality())`. |
| `load` | `'near' \| 'eager' \| 'manual'` | 'near' (default) boots when the first effect element nears the viewport, 'eager' at app:start, 'manual' only on `load()`. |
| `margin` | `string` | IntersectionObserver rootMargin that starts loading. Default '100% 0px', one viewport ahead. |
| `markup` | `boolean` | Read `data-dio` markup. Default true. |
| `prefetch` | `boolean` | Downloads the engine in idle time after window load. Default true, never under Save-Data. |
| `render` | `Partial<RenderOptions>` | Options for `render` when effects adds it. Ignored with a warning if the app already has render. |
| `root` | `string \| ParentNode \| undefined` | Scanned subtree, default `document.documentElement`. A selector is re-resolved: the observer watches the document and filters candidates with `el.closest(root)`. |

Also exported from `@dioramajs/effects`.

Defined in [packages/effects/src/types.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/types.ts#L994).
