1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import styled from 'styled-components';
- export const PageWrapper = styled('div')<{width: number; height: number; rotation?: number}>`
- direction: ltr;
- position: relative;
- overflow: visible;
- background-clip: content-box;
- display: inline-block;
- margin: 25px auto;
- width: ${props => props.width}px;
- height: ${props => props.height}px;
- transform: rotate(${props => props.rotation}deg);
- background-color: white;
- &:first-of-type {
- margin-top: 40px;
- }
- `;
- export const PdfCanvas = styled.canvas`
- margin: 0;
- display: block;
- width: 100%;
- height: 100%;
- `;
- export const AnnotationLayer = styled.div`
- position: absolute;
- left: 0;
- top: 0;
- `;
- export const TextLayer = styled.div`
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- margin: auto;
- overflow: hidden;
- line-height: 1.0;
- & > span {
- color: transparent;
- position: absolute;
- white-space: pre;
- cursor: text;
- transform-origin: 0% 0%;
- }
- `;
- export const LoadingLayer = styled.div``;
|