mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Lint
This commit is contained in:
parent
f09089cf77
commit
7c7c554ee7
84 changed files with 13879 additions and 14510 deletions
42
types/section.d.ts
vendored
42
types/section.d.ts
vendored
|
@ -1,32 +1,31 @@
|
|||
import { HooksObject } from "./utils/hook";
|
||||
|
||||
export interface GlobalLayout {
|
||||
layout: string,
|
||||
spread: string,
|
||||
orientation: string
|
||||
layout: string;
|
||||
spread: string;
|
||||
orientation: string;
|
||||
}
|
||||
|
||||
export interface LayoutSettings {
|
||||
layout: string,
|
||||
spread: string,
|
||||
orientation: string
|
||||
layout: string;
|
||||
spread: string;
|
||||
orientation: string;
|
||||
}
|
||||
|
||||
export interface SpineItem {
|
||||
index: number,
|
||||
cfiBase: string,
|
||||
href?: string,
|
||||
url?: string,
|
||||
canonical?: string,
|
||||
properties?: Array<string>,
|
||||
linear?: string,
|
||||
next: () => SpineItem,
|
||||
prev: () => SpineItem,
|
||||
index: number;
|
||||
cfiBase: string;
|
||||
href?: string;
|
||||
url?: string;
|
||||
canonical?: string;
|
||||
properties?: Array<string>;
|
||||
linear?: string;
|
||||
next: () => SpineItem;
|
||||
prev: () => SpineItem;
|
||||
}
|
||||
|
||||
export default class Section {
|
||||
constructor(item: SpineItem, hooks: HooksObject);
|
||||
|
||||
idref: string;
|
||||
linear: boolean;
|
||||
properties: Array<string>;
|
||||
|
@ -37,28 +36,17 @@ export default class Section {
|
|||
next: () => SpineItem;
|
||||
prev: () => SpineItem;
|
||||
cfiBase: string;
|
||||
|
||||
document: Document;
|
||||
contents: Element;
|
||||
output: string;
|
||||
|
||||
hooks: HooksObject;
|
||||
|
||||
load(_request?: Function): Document;
|
||||
|
||||
render(_request?: Function): string;
|
||||
|
||||
find(_query: string): Array<Element>;
|
||||
|
||||
reconcileLayoutSettings(globalLayout: GlobalLayout): LayoutSettings;
|
||||
|
||||
cfiFromRange(_range: Range): string;
|
||||
|
||||
cfiFromElement(el: Element): string;
|
||||
|
||||
unload(): void;
|
||||
|
||||
destroy(): void;
|
||||
|
||||
private base(): void;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue