Files
koodo-reader/src/containers/htmlViewer/interface.tsx
troyeguo 0c77abb4c7 fix bug
Former-commit-id: add57f52da5608b8d5b71ee0c5bb3cc407d89da1
2021-11-28 12:58:08 +08:00

38 lines
998 B
TypeScript

import BookModel from "../../model/Book";
import HtmlBookModel from "../../model/HtmlBook";
export interface ViewerProps {
book: BookModel;
rendition: any;
currentBook: BookModel;
books: BookModel[];
isReading: boolean;
htmlBook: HtmlBookModel;
isShow: boolean;
handleRenderFunc: (renderFunc: () => void) => void;
t: (title: string) => string;
handleReadingState: (isReading: boolean) => void;
handleReadingBook: (book: BookModel) => void;
handleHtmlBook: (htmlBook: HtmlBookModel) => void;
handleLeaveReader: (position: string) => void;
handleEnterReader: (position: string) => void;
handleFetchBooks: () => void;
handleFetchNotes: () => void;
handleFetchBookmarks: () => void;
}
export interface ViewerState {
key: string;
scale: string;
isFirst: boolean;
chapterTitle: string;
margin: number;
readerMode: string;
chapter: string;
chapterIndex: number;
pageWidth: number;
pageHeight: number;
cfiRange: any;
contents: any;
rect: any;
}