sigit.io/src/types/mark.ts

25 lines
389 B
TypeScript
Raw Normal View History

import { MarkType } from "./drawing";
export interface CurrentUserMark {
mark: Mark
isLast: boolean
isCompleted: boolean
}
export interface Mark {
id: number;
npub: string;
pdfFileHash: string;
type: MarkType;
location: MarkLocation;
value?: string;
}
export interface MarkLocation {
top: number;
left: number;
height: number;
width: number;
page: number;
}