initialPdfState.ts 696 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. export type StateType = {
  2. totalPage: number;
  3. currentPage: number;
  4. pdf: any;
  5. progress: ProgressType;
  6. viewport: ViewportType;
  7. scale: number;
  8. rotation: number;
  9. annotations: AnnotationType[];
  10. watermark: WatermarkType;
  11. textDivs: any;
  12. };
  13. export default {
  14. totalPage: 0,
  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. watermark: {
  26. type: 'text',
  27. textcolor: '#c0c0c0',
  28. opacity: 0.3,
  29. text: '',
  30. scale: 2,
  31. rotation: 45,
  32. vertalign: 'center',
  33. horizalign: 'center',
  34. xoffset: 0,
  35. yoffset: 0,
  36. imagepath: '',
  37. isfront: 'yes',
  38. },
  39. textDivs: {},
  40. };