sigit.io/src/types/mark.ts

34 lines
589 B
TypeScript
Raw Normal View History

2024-08-20 14:27:35 +03:00
import { MarkType } from './drawing'
export interface CurrentUserMark {
id: number
mark: Mark
isLast: boolean
isCompleted: boolean
currentValue?: string
}
2025-01-14 10:30:03 +02:00
// Both PdfFileHash and FileHash currently exist.
// It enables backward compatibility
export interface Mark {
id: number
npub: string
type: MarkType
location: MarkLocation
2024-08-14 12:24:15 +03:00
fileName: string
2025-01-09 12:58:23 +02:00
pdfFileHash?: string
fileHash?: string
value?: string
}
export interface MarkLocation extends MarkRect {
page: number
}
export interface MarkRect {
left: number
top: number
width: number
height: number
}