UNPKG

r2-navigator-js

Version:

Readium 2 'navigator' for NodeJS (TypeScript)

24 lines (23 loc) 525 B
import { ISelectionInfo } from "./selection"; export interface Locator { href: string; title?: string; text?: LocatorText; locations: LocatorLocations; } export interface LocatorText { before?: string; highlight?: string; after?: string; beforeRaw?: string; highlightRaw?: string; afterRaw?: string; } export interface LocatorLocations { cfi?: string; xpath?: string; cssSelector?: string; position?: number; progression?: number; caretInfo?: ISelectionInfo; }