# spine

function in `@dioramajs/media/flipbook`

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

Where the spine stands at spread position `at`, in page widths from the box centre. A book with
a cover, closed on it or on the back cover, stands in the middle of the box, and so does every
open spread; between two spreads it slides with the turn. One page a spread: its left edge.

```ts
function spine(book: Book, at: number): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `book` | `Book` |  |
| `at` | `number` |  |

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