# pageSize

function in `@dioramajs/media/flipbook`

```ts
import { pageSize } from '@dioramajs/media/flipbook'
```

Page width and height of a book of `aspect` pages contained in the box.

```ts
function pageSize(
  width: number,
  height: number,
  aspect: number,
  double: boolean,
): [number, number]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `width` | `number` |  |
| `height` | `number` |  |
| `aspect` | `number` |  |
| `double` | `boolean` |  |

Defined in [packages/media/src/flipbook.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/media/src/flipbook.ts#L138).
