QualityOptions interface
Options of the `quality` plugin.
import type { QualityOptions } from '@dioramajs/diorama/quality'interface QualityOptionsMembers
| Name | Type | Description |
|---|---|---|
readonly adapt | boolean | Lower the tier when the browser misses frames while the site draws. Default true. |
readonly pixelRatio | Readonly<Record<QualityTier, number>> | Pixel ratio bound per tier. Default |
readonly remember | boolean | Keep the settled tier for the rest of the session (sessionStorage, keyed by GPU). Default true. |
readonly tier | 'auto' | QualityTier | 'auto' (default) detects and adapts. A tier pins it. |
Also exported from @dioramajs/quality.
Defined in packages/quality/src/index.ts.