# magnification

function in `@dioramajs/text/lens`

```ts
import { magnification } from '@dioramajs/text/lens'
```

The magnification at the lens's centre at `height` over the page.

```ts
function magnification(
  aperture: number,
  thickness: number,
  height: number,
  ior: number,
  distance: number,
): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `aperture` | `number` |  |
| `thickness` | `number` |  |
| `height` | `number` |  |
| `ior` | `number` |  |
| `distance` | `number` |  |

Defined in [packages/text/src/lens.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/lens.ts#L157).
