initialPdfState.ts 502 B

12345678910111213141516171819202122232425262728
  1. import { ProgressType, ViewportType, AnnotationType } from '../constants/type';
  2. export type StateType = {
  3. totalPage: number;
  4. currentPage: number;
  5. pdf: any;
  6. progress: ProgressType;
  7. viewport: ViewportType;
  8. scale: number;
  9. rotation: number;
  10. annotations: AnnotationType[];
  11. isInit: boolean;
  12. };
  13. export default {
  14. totalPage: 1,
  15. currentPage: 1,
  16. pdf: null,
  17. progress: {
  18. loaded: 0,
  19. total: 1,
  20. },
  21. viewport: {},
  22. scale: 1,
  23. rotation: 0,
  24. annotations: [],
  25. isInit: false,
  26. };