FitOptions interface
Options of `ctx.fit`.
import type { FitOptions } from '@dioramajs/diorama/effects'interface FitOptionsMembers
| Name | Type | Description |
|---|---|---|
readonly fit? | 'none' | 'cover' | 'contain' | 'fill' | 'scale-down' | CSS object-fit. Default 'cover'. |
readonly position? | readonly [number, number] | CSS object-position as fractions of the free space, [0.5, 0.5] is centre. |
Also exported from @dioramajs/effects.
Defined in packages/effects/src/types.ts.