styled.ts 710 B

123456789101112131415161718192021222324252627282930
  1. import styled from 'styled-components';
  2. export const PageWrapper = styled('div')<{width: number; height: number; rotation?: number}>`
  3. direction: ltr;
  4. position: relative;
  5. overflow: visible;
  6. background-clip: content-box;
  7. display: inline-block;
  8. margin: 25px auto;
  9. width: ${props => props.width}px;
  10. height: ${props => props.height}px;
  11. transform: rotate(${props => props.rotation}deg);
  12. background-color: white;
  13. `;
  14. export const CanvasWrapper = styled.div``;
  15. export const PdfCanvas = styled.canvas`
  16. margin: 0;
  17. display: block;
  18. width: 100%;
  19. height: 100%;
  20. `;
  21. export const AnnotationLayer = styled.div``;
  22. export const TextLayer = styled.div``;
  23. export const LoadingLayer = styled.div``;