# FitOptions

interface in `@dioramajs/diorama/effects`

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

Options of `ctx.fit`.

```ts
interface FitOptions
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `fit?` | `'none' \| 'cover' \| 'contain' \| 'fill' \| 'scale-down'` | CSS object-fit. Default 'cover'. |
| `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](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/types.ts#L366).
