r2-shared-js
Version:
Readium 2 'shared' for NodeJS (TypeScript)
21 lines (20 loc) • 427 B
TypeScript
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;
cssSelector?: string;
position?: number;
progression?: number;
}