Add card art crop functionality and update Card interface for better image handling

This commit is contained in:
Matthieu
2025-11-24 17:44:43 +01:00
parent a7681357b5
commit 304676a06b
2 changed files with 31 additions and 8 deletions

View File

@@ -5,13 +5,28 @@ export interface User {
themeColor: 'red' | 'green' | 'blue' | 'yellow' | 'grey' | 'purple';
}
export interface CardImageUris {
small?: string;
normal?: string;
large?: string;
art_crop?: string;
border_crop?: string;
png?: string;
}
export interface CardFace {
name?: string;
mana_cost?: string;
type_line?: string;
oracle_text?: string;
image_uris?: CardImageUris;
}
export interface Card {
id: string;
name: string;
image_uris?: {
normal: string;
art_crop: string;
};
image_uris?: CardImageUris;
card_faces?: CardFace[];
mana_cost?: string;
type_line?: string;
oracle_text?: string;