ParamDoc interface
Description of one param in an effect's `.doc.ts`.
import type { ParamDoc } from '@dioramajs/diorama/effects'interface ParamDocMembers
| Name | Type | Description |
|---|---|---|
readonly description | string | One sentence. |
readonly range? | readonly [number, number] | Bounds of a slider; values outside still work. Numbers and vector components only. |
readonly step? | number | Slider step. Default: 1 for integer params, else a hundredth of the range. |
readonly unit? | 's' | 'px' | 'deg' | 'em' | 'deg/s' | 'px/s' | Unit shown next to the value: seconds for time, CSS px or em for lengths, degrees for angles, 0..1 for fractions. |
Also exported from @dioramajs/effects.
Defined in packages/effects/src/doc.ts.