fix(pdf): dynamic mark scaling #165

Merged
enes merged 9 commits from 146-pdf-scaling into staging 2024-08-28 11:23:34 +00:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit 31f36750cd - Show all commits

View File

@ -23,6 +23,10 @@
justify-content: center;
align-items: center;
font-family: Arial;
font-size: 16px;
font-weight: normal;
&.nonEditable {
cursor: default;
visibility: hidden;

View File

@ -1,6 +1,6 @@
import { CurrentUserMark } from '../../types/mark.ts'
import styles from '../DrawPDFFields/style.module.scss'
import { inPx } from '../../utils/pdf.ts'
import { FONT_TYPE, inPx } from '../../utils/pdf.ts'
interface PdfMarkItemProps {
userMark: CurrentUserMark
@ -31,7 +31,8 @@ const PdfMarkItem = ({
left: inPx(location.left),
top: inPx(location.top),
width: inPx(location.width),
height: inPx(location.height)
height: inPx(location.height),
fontFamily: FONT_TYPE
}}
>
{getMarkValue()}