2024-08-14 17:19:32 +03:00
|
|
|
import { MarkType } from "./drawing";
|
2024-07-11 16:16:36 +02:00
|
|
|
|
2024-07-18 15:38:07 +03:00
|
|
|
export interface CurrentUserMark {
|
2024-08-11 22:19:26 +03:00
|
|
|
id: number
|
2024-07-18 15:38:07 +03:00
|
|
|
mark: Mark
|
|
|
|
isLast: boolean
|
|
|
|
isCompleted: boolean
|
2024-08-11 22:19:26 +03:00
|
|
|
currentValue?: string
|
2024-07-18 15:38:07 +03:00
|
|
|
}
|
|
|
|
|
2024-07-11 16:16:36 +02:00
|
|
|
export interface Mark {
|
2024-08-11 22:19:26 +03:00
|
|
|
id: number
|
|
|
|
npub: string
|
|
|
|
pdfFileHash: string
|
|
|
|
type: MarkType
|
|
|
|
location: MarkLocation
|
2024-08-14 12:24:15 +03:00
|
|
|
fileName: string
|
2024-08-11 22:19:26 +03:00
|
|
|
value?: string
|
2024-07-11 16:16:36 +02:00
|
|
|
}
|
|
|
|
|
2024-07-17 11:25:02 +03:00
|
|
|
export interface MarkLocation {
|
2024-08-11 22:19:26 +03:00
|
|
|
top: number
|
|
|
|
left: number
|
|
|
|
height: number
|
|
|
|
width: number
|
|
|
|
page: number
|
2024-07-11 16:16:36 +02:00
|
|
|
}
|