fix: add captureId to RefImage for reliable capture dedupe
Browse files- src/types.ts +60 -60
src/types.ts
CHANGED
|
@@ -1,60 +1,60 @@
|
|
| 1 |
-
export interface RefImage {
|
| 2 |
-
id: string;
|
| 3 |
-
url: string;
|
| 4 |
-
sourceUrl?: string;
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
}
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
}
|
|
|
|
| 1 |
+
export interface RefImage {
|
| 2 |
+
id: string;
|
| 3 |
+
url: string;
|
| 4 |
+
sourceUrl?: string;
|
| 5 |
+
captureId?: string;
|
| 6 |
+
x: number;
|
| 7 |
+
y: number;
|
| 8 |
+
width: number;
|
| 9 |
+
height: number;
|
| 10 |
+
aspectRatio: number;
|
| 11 |
+
isDesaturated?: boolean;
|
| 12 |
+
isFlippedH?: boolean;
|
| 13 |
+
isFlippedV?: boolean;
|
| 14 |
+
groupId?: string;
|
| 15 |
+
crop?: { left: number; right: number; top: number; bottom: number };
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
export interface TextNote {
|
| 19 |
+
id: string;
|
| 20 |
+
text: string;
|
| 21 |
+
x: number;
|
| 22 |
+
y: number;
|
| 23 |
+
width: number;
|
| 24 |
+
height?: number;
|
| 25 |
+
color?: string;
|
| 26 |
+
bgColor?: string;
|
| 27 |
+
fontSize?: number;
|
| 28 |
+
fontFamily?: string;
|
| 29 |
+
alignment?: 'left' | 'center' | 'right';
|
| 30 |
+
isBold?: boolean;
|
| 31 |
+
isItalic?: boolean;
|
| 32 |
+
isUnderline?: boolean;
|
| 33 |
+
groupId?: string;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
export type ContextMenuState = {
|
| 37 |
+
x: number;
|
| 38 |
+
y: number;
|
| 39 |
+
imageId: string | null;
|
| 40 |
+
} | null;
|
| 41 |
+
|
| 42 |
+
export interface Point {
|
| 43 |
+
x: number;
|
| 44 |
+
y: number;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
export interface Palette {
|
| 48 |
+
imageId: string;
|
| 49 |
+
colors: string[];
|
| 50 |
+
x: number;
|
| 51 |
+
y: number;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
export interface AnnotationPath {
|
| 55 |
+
id: string;
|
| 56 |
+
points: Point[];
|
| 57 |
+
color: string;
|
| 58 |
+
strokeWidth: number;
|
| 59 |
+
groupId?: string;
|
| 60 |
+
}
|