ImagePageSource

ImagePageSource

Callback-driven page source for host-owned page models.

Constructor

new ImagePageSource(options)

Source:
Parameters:
Name Type Description
options ImagePageSourceOptions

Source callbacks.

Classes

ImagePageSource

Methods

getInternalBook() → {Object|null}

Description:
  • Returns the optional host-owned mutable book.

Source:
Returns:

Internal book, if supplied.

Type
Object | null

getPageCount() → {number}

Source:
Returns:

Page count.

Type
number

(async) getPageHighRes(index, targetEdgePx) → {Promise.<(CanvasImageSource|null)>}

Source:
Parameters:
Name Type Description
index number

Page index.

targetEdgePx number

Requested maximum edge in pixels.

Returns:

High-resolution bitmap.

Type
Promise.<(CanvasImageSource|null)>

getPageMetadata(index) → {PageMetadata|null}

Source:
Parameters:
Name Type Description
index number

Page index.

Returns:

Page metadata.

Type
PageMetadata | null

(async) getPagePreview(index) → {Promise.<(CanvasImageSource|null)>}

Source:
Parameters:
Name Type Description
index number

Page index.

Returns:

Preview bitmap.

Type
Promise.<(CanvasImageSource|null)>