UNPKG

r2-navigator-js

Version:

Readium 2 'navigator' for NodeJS (TypeScript)

18 lines (17 loc) 1.5 kB
import { IEventPayload_R2_EVENT_READIUMCSS } from "./events"; import { IwidthHeight } from "./fxl"; import { WebViewSlotEnum } from "./styles"; export declare const READIUM2_BASEURL_ID = "r2_BASEURL_ID"; export declare function isDocVertical(documant: Document): boolean; export declare function isDocRTL(documant: Document): boolean; export declare function isPaginated(documant: Document): boolean; export declare function readiumCSSSet(documant: Document, messageJson: IEventPayload_R2_EVENT_READIUMCSS, isVerticalWritingMode: boolean, isRTL: boolean): void; export declare function configureFixedLayout(documant: Document, isFixedLayout: boolean, fxlViewportWidth: number, fxlViewportHeight: number, innerWidth: number, innerHeight: number, wvSlot: WebViewSlotEnum, zoomPercent: number): IwidthHeight | undefined; export declare function ensureHead(documant: Document): void; export declare function appendCSSInline(documant: Document, id: string, css: string): void; export declare function appendCSS(documant: Document, mod: string, urlRoot: string): void; export declare function removeCSS(documant: Document, mod: string): void; export declare function removeAllCSS(documant: Document): void; export declare function injectDefaultCSS(documant: Document): void; export declare function injectReadPosCSS(documant: Document): void; export declare function readiumCssTransformHtml(htmlStr: string, readiumcssJson: IEventPayload_R2_EVENT_READIUMCSS | undefined, mediaType: string | undefined): string;