PDF Markings #114

Merged
eugene merged 33 commits from issue-99 into staging 2024-08-06 10:02:04 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 4690cc0115 - Show all commits

View File

@ -101,7 +101,7 @@ export const DrawPDFFields = (props: Props) => {
* It is re rendered and visible right away * It is re rendered and visible right away
* *
* @param event Mouse event * @param event Mouse event
* @param page PdfItem where press happened * @param page PdfPage where press happened
*/ */
const onMouseDown = (event: any, page: PdfPage) => { const onMouseDown = (event: any, page: PdfPage) => {
// Proceed only if left click // Proceed only if left click
@ -154,7 +154,7 @@ export const DrawPDFFields = (props: Props) => {
* After {@link onMouseDown} create an drawing element, this function gets called on every pixel moved * After {@link onMouseDown} create an drawing element, this function gets called on every pixel moved
* which alters the newly created drawing element, resizing it while mouse move * which alters the newly created drawing element, resizing it while mouse move
* @param event Mouse event * @param event Mouse event
* @param page PdfItem where moving is happening * @param page PdfPage where moving is happening
*/ */
const onMouseMove = (event: any, page: PdfPage) => { const onMouseMove = (event: any, page: PdfPage) => {
if (mouseState.clicked && selectedTool) { if (mouseState.clicked && selectedTool) {

View File

@ -42,7 +42,7 @@ import {
filterMarksByPubkey, filterMarksByPubkey,
getCurrentUserMarks, getCurrentUserMarks,
isCurrentUserMarksComplete, updateMarks isCurrentUserMarksComplete, updateMarks
} from '../../utils/mark.ts' } from '../../utils'
import PdfMarking from '../../components/PDFView/PdfMarking.tsx' import PdfMarking from '../../components/PDFView/PdfMarking.tsx'
enum SignedStatus { enum SignedStatus {
Fully_Signed, Fully_Signed,