feat: Implement dynamic art cropping for small cards and refine preview suppression for large cards.
This commit is contained in:
@@ -10,6 +10,7 @@ export interface DraftCard {
|
||||
layout?: string;
|
||||
colors: string[];
|
||||
image: string;
|
||||
imageArtCrop?: string;
|
||||
set: string;
|
||||
setCode: string;
|
||||
setType: string;
|
||||
@@ -95,6 +96,7 @@ export class PackGeneratorService {
|
||||
layout: layout,
|
||||
colors: cardData.colors || [],
|
||||
image: cardData.image_uris?.normal || cardData.card_faces?.[0]?.image_uris?.normal || '',
|
||||
imageArtCrop: cardData.image_uris?.art_crop || cardData.card_faces?.[0]?.image_uris?.art_crop || '',
|
||||
set: cardData.set_name,
|
||||
setCode: cardData.set,
|
||||
setType: setType,
|
||||
|
||||
@@ -31,7 +31,7 @@ export interface ScryfallCard {
|
||||
image_uris?: { normal: string; small?: string; large?: string; png?: string; art_crop?: string; border_crop?: string };
|
||||
card_faces?: {
|
||||
name: string;
|
||||
image_uris?: { normal: string; };
|
||||
image_uris?: { normal: string; art_crop?: string; };
|
||||
type_line?: string;
|
||||
mana_cost?: string;
|
||||
oracle_text?: string;
|
||||
|
||||
Reference in New Issue
Block a user