ParamMeta interface
One param in `meta.json`.
import type { ParamMeta } from '@dioramajs/diorama/effects'interface ParamMetaMembers
| Name | Type | Description |
|---|---|---|
readonly attribute | string | data-dio-<kebab>. |
readonly caps? | { high?: number; low?: number; medium?: number } | Upper bounds by quality tier. |
readonly default | string | number | boolean | readonly number[] | Default value. |
readonly description | string | One sentence, from |
readonly live | boolean | false: a change re-runs setup (strings, choices, rebuild). |
readonly name | string | The param name in code. |
readonly preload | boolean | In the light entry: readable and tweenable before the module loads. |
readonly range? | readonly [number, number] | Bounds of a slider, from |
readonly step? | number | Slider step, from |
readonly type | 'string' | 'number' | 'boolean' | 'vec3' | 'vec2' | 'vec4' | Kind of value. |
readonly unit? | string | Unit, from |
readonly values? | readonly string[] | Choices of a oneOf param. |
Also exported from @dioramajs/effects.
Defined in packages/effects/src/doc.ts.