mirror of
https://github.com/koodo-reader/koodo-reader.git
synced 2026-10-07 13:22:17 -04:00
55 lines
1.7 KiB
TypeScript
55 lines
1.7 KiB
TypeScript
import BookModel from "../../models/Book";
|
|
import HtmlBookModel from "../../models/HtmlBook";
|
|
export interface ReaderProps {
|
|
currentBook: BookModel;
|
|
percentage: number;
|
|
t: (title: string) => string;
|
|
htmlBook: HtmlBookModel;
|
|
isNavLocked: boolean;
|
|
isSettingLocked: boolean;
|
|
isConvertOpen: boolean;
|
|
isPdfCropOpen: boolean;
|
|
isSpeechOpen: boolean;
|
|
isAnnotationOpen: boolean;
|
|
isOpenPopupOptionDialog: boolean;
|
|
isSearch: boolean;
|
|
isAuthed: boolean;
|
|
isSettingOpen: boolean;
|
|
isHideMenuButton: boolean;
|
|
readerMode: string;
|
|
scale: string;
|
|
handleFetchNotes: () => void;
|
|
handleReaderMode: (readerMode: string) => void;
|
|
handleConvertDialog: (isConvertOpen: boolean) => void;
|
|
handlePdfCropDialog: (isPdfCropOpen: boolean) => void;
|
|
handleSpeechDialog: (isSpeechOpen: boolean) => void;
|
|
handleAnnotationDialog: (isAnnotationOpen: boolean) => void;
|
|
handleMenuMode: (menuMode: string) => void;
|
|
handleOriginalText: (originalText: string) => void;
|
|
handleFetchBooks: () => void;
|
|
handleBackgroundColor: (backgroundColor: string) => void;
|
|
handleOpenMenu: (isOpen: boolean) => void;
|
|
handleFetchBookmarks: () => void;
|
|
handleFetchPercentage: (currentBook: BookModel) => void;
|
|
handleReadingBook: (book: BookModel) => void;
|
|
handleScale: (scale: string) => void;
|
|
renderBookFunc: () => void;
|
|
handleFetchAuthed: () => void;
|
|
handleFetchUserInfo: () => Promise<any>;
|
|
}
|
|
|
|
export interface ReaderState {
|
|
isOpenRightPanel: boolean;
|
|
isOpenTopPanel: boolean;
|
|
isOpenBottomPanel: boolean;
|
|
isOpenLeftPanel: boolean;
|
|
isTouch: boolean;
|
|
isPreventTrigger: boolean;
|
|
hoverPanel: string;
|
|
scale: string;
|
|
isShowScale: boolean;
|
|
isNearEdge: boolean;
|
|
totalDuration: number;
|
|
currentDuration: number;
|
|
}
|