r2-shared-js
Version:
Readium 2 'shared' for NodeJS (TypeScript)
18 lines (17 loc) • 353 B
TypeScript
export interface Locator {
href: string;
title?: string;
text?: LocatorText;
locations: LocatorLocations;
}
export interface LocatorText {
before?: string;
highlight?: string;
after?: string;
}
export interface LocatorLocations {
cfi?: string;
cssSelector?: string;
position?: number;
progression?: number;
}