-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtypes.ts
More file actions
25 lines (22 loc) · 705 Bytes
/
Copy pathtypes.ts
File metadata and controls
25 lines (22 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
export interface AnnotationPoint {
id: string;
pageIndex: number; // 1-based index for UI, but we might handle 0-based internally
x: number; // PDF Point coordinates (bottom-left origin)
y: number; // PDF Point coordinates (bottom-left origin)
displayX: number; // CSS/View coordinates relative to page top-left (unscaled)
displayY: number; // CSS/View coordinates relative to page top-left (unscaled)
}
export interface PageDimensions {
width: number;
height: number;
}
export enum ToolMode {
VIEW = 'VIEW',
ANNOTATE = 'ANNOTATE',
}
export enum CoordinateOrigin {
BOTTOM_LEFT = 'BOTTOM_LEFT',
TOP_LEFT = 'TOP_LEFT',
TOP_RIGHT = 'TOP_RIGHT',
BOTTOM_RIGHT = 'BOTTOM_RIGHT',
}