• Robert Knight's avatar
    Make page index retrieval work in EPUB-based books · 133ef3e7
    Robert Knight authored
    In real EPUB-based VS books, the `index` field of `PageInfo` objects returned by
    the `getCurrentPage` and `getPages` methods is undefined. Our mock VS book was
    incorrect in this respect.
    
    Correct the mock book to behave like real VS books here, and add a fallback
    method to obtain a page index for EPUB-based books by looking up the page in the
    list of pages returned by `MosaicBookElement.getPages`.
    133ef3e7
Name
Last commit
Last update
..
test Loading commit data...
html-metadata.ts Loading commit data...
html-side-by-side.ts Loading commit data...
html.ts Loading commit data...
image-text-layer.ts Loading commit data...
index.ts Loading commit data...
pdf-metadata.ts Loading commit data...
pdf.tsx Loading commit data...
vitalsource.ts Loading commit data...