import { ProgressType, ViewportType, AnnotationType, WatermarkType, } from '../constants/type'; import { color as theme } from '../constants/style'; export type StateType = { totalPage: number; currentPage: number; pdf: any; progress: ProgressType; viewport: ViewportType; scale: number; rotation: number; annotations: AnnotationType[]; isInit: boolean; watermark: WatermarkType; }; export default { totalPage: 1, currentPage: 1, pdf: null, progress: { loaded: 0, total: 1, }, viewport: {}, scale: 1, rotation: 0, annotations: [], isInit: false, watermark: { type: 'text', textcolor: theme.gray, opacity: 0.5, text: '', scale: 1, rotation: 0, vertalign: 'center', horizalign: 'center', xoffset: 0, yoffset: 0, imagepath: '', isfront: 'yes', }, };