# @dioramajs/media/flipbook

Exports of @dioramajs/media/flipbook.

## Functions and values

- [default](/docs/api/media-flipbook/default.md): The page images of a container as a book: spreads whose pages bend as they turn by drag, click or keys. Without WebGL the pages are the site's layout. Fires `dio:index` when a spread is reached.
- [first](/docs/api/media-flipbook/first.md): The first page of `spread`, what `index` names it by.
- [pageSize](/docs/api/media-flipbook/page-size.md): Page width and height of a book of `aspect` pages contained in the box.
- [position](/docs/api/media-flipbook/position.md): Where `index` is in spreads: a whole spread at its first page, a turn between two.
- [sides](/docs/api/media-flipbook/sides.md): The left and right page of `spread`, -1 where there is none.
- [spine](/docs/api/media-flipbook/spine.md): 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.
- [spreadOf](/docs/api/media-flipbook/spread-of.md): The spread that holds `page`.
- [spreads](/docs/api/media-flipbook/spreads.md): Number of spreads.
- [twoUp](/docs/api/media-flipbook/two-up.md): Two pages side by side when the box holds them at three quarters of a page's height or more.

## Types

- [Book](/docs/api/media-flipbook/types/book.md): How the pages fall into spreads.
