@dioramajs/media/flipbook
Exports of @dioramajs/media/flipbook.
On this page
import { default, first, pageSize } from '@dioramajs/media/flipbook'Functions
first | The first page of `spread`, what `index` names it by. |
pageSize | Page width and height of a book of `aspect` pages contained in the box. |
position | Where `index` is in spreads: a whole spread at its first page, a turn between two. |
sides | The left and right page of `spread`, -1 where there is none. |
spine | 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 | The spread that holds `page`. |
spreads | Number of spreads. |
twoUp | Two pages side by side when the box holds them at three quarters of a page's height or more. |
Constants
default | 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. |
Interfaces
Book | How the pages fall into spreads. |