Skip to content

BookEvents

BookEvents = object

Defined in: core/src/book.ts:17

changeOrientation: object

Defined in: core/src/book.ts:32

readonly orientation: Orientation


changeState: object

Defined in: core/src/book.ts:31

readonly state: FlipState


flip: object

Defined in: core/src/book.ts:23

A different spread is showing. page is the first page of it.

readonly page: number


flipProgress: FlipProgress

Defined in: core/src/book.ts:30

A page moved: fires as each frame of a turn is drawn, whether the turn is animated, dragged or a hovered edge furling, and once more with progress 0 when a turn ends without landing. For anything that should move in step with the page, like a shadow under the book; write it to a style rather than to state.


init: object

Defined in: core/src/book.ts:19

The book is laid out and showing startPage. Fires once, after createBook returns.

readonly orientation: Orientation

readonly page: number


update: object

Defined in: core/src/book.ts:21

Pages were replaced with setPages.

readonly orientation: Orientation

readonly page: number