# EffectMeta

interface in `@dioramajs/diorama/effects`

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

One effect in `meta.json`: what the definition says plus its `.doc.ts`.

```ts
interface EffectMeta
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `bleed` | `number` | Extra px around the box for visibility. |
| `builtIn` | `boolean` | start() registers it without options. |
| `category` | `EffectCategory` | The gallery group, from `.doc.ts`. |
| `children?` | `readonly ChildDoc[]` | Attributes and child elements the effect reads, from `.doc.ts`. |
| `cost` | `{ readonly chunk: number; readonly data?: number; readonly gpu: string; readonly memory: string }` | chunk: bytes min+gzip of the effect's lazy chunk, three external, data included; data: the bundled data part of it, if any. |
| `credits?` | `string` | Credits for bundled data, from `.doc.ts`. |
| `events?` | `readonly EventDoc[]` | DOM events the effect dispatches, from `.doc.ts`. |
| `examples` | `readonly DocExample[]` | Examples from `.doc.ts`. |
| `frames` | `{ readonly note: string; readonly policy: 'function' \| 'hover' \| 'input' \| 'update' \| 'visible' \| 'fps' }` | The frame policy and a note for people. 'update': the update's answer decides. |
| `import` | `string` | '@dioramajs/media/reveal', for `app.attach(el, effect())`. |
| `inputs` | `readonly string[]` | Inputs the effect reads, from the probe: 'progress', 'presence', 'pointer', 'delta'… |
| `looks` | `string` | What it looks like, two to four sentences. |
| `media?` | `boolean` | Needs the <img> or <video> as a texture. |
| `module` | `'media' \| 'text' \| 'audio' \| 'data' \| 'backgrounds' \| 'model' \| 'globe' \| 'particles' \| 'blocks'` | Module name. |
| `name` | `string` | The token in `data-dio`. |
| `on?` | `string` | Selector of the elements the effect accepts. |
| `package` | `string` | npm package, '@dioramajs/media'. |
| `params` | `readonly ParamMeta[]` | Every param in definition order. |
| `parts?` | `readonly PartDoc[]` | Shadow parts of the effect's own UI, from `.doc.ts`. |
| `presence` | `{ readonly mode: 'fade' \| 'custom'; readonly note: string }` | How the copy enters and leaves pages. |
| `quality` | `{ readonly min: QualityTier; readonly notes: { high?: string; low?: string; medium?: string } }` | The lowest tier and what each tier changes. |
| `reducedMotion` | `{ readonly mode: 'static' \| 'off'; readonly note: string }` | Behaviour under reduced motion. |
| `source` | `string` | Path of the definition in the library repo, for a Source link. |
| `summary` | `string` | One sentence for the lede and the gallery card. |
| `tags?` | `readonly EffectCategory[]` | Other groups it also shows in, from `.doc.ts`; never repeats `category`. |
| `target` | `string` | What to put it on, for people. |
| `touch` | `string` | Behaviour on touch devices. |
| `when?` | `string` | Media query the page must match. |

Also exported from `@dioramajs/effects`.

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