export interface CardDimensions {
	width: number; // mm
	height: number; // mm
}

export interface PhotoDimensions {
	width: number; // mm
	height: number; // mm
}

export interface TextPosition {
	x: number; // mm, relative to cell top-left
	y: number; // mm, relative to cell top-left
	size: number; // font size in points
}

export interface PhotoPosition {
	x: number; // mm, relative to cell top-left
	y: number; // mm, relative to cell top-left
	width: number; // mm
	height: number; // mm
}

export interface TextFieldLayout {
	name: TextPosition;
	nationality: TextPosition;
	birthday: TextPosition;
	studiesAt: TextPosition;
	esnSection: TextPosition;
	validityStart: TextPosition;
}

export interface PhotoFieldLayout {
	photo: PhotoPosition;
	name: TextPosition;
}

export interface Card {
	name: string;
	image: string;
	textCard: CardDimensions;
	photoCard: CardDimensions;
	photo: PhotoDimensions;
	textFields: TextFieldLayout;
	photoFields: PhotoFieldLayout;
}
