namespace RolemasterDb.ImportTool.Parsing;

public class PositionedTextFragment(
    int pageNumber,
    int top,
    int left,
    int width,
    int height,
    string text,
    int? confidence = null)
{
    public int PageNumber { get; } = pageNumber;
    public int Top { get; } = top;
    public int Left { get; } = left;
    public int Width { get; } = width;
    public int Height { get; } = height;
    public string Text { get; } = text;
    public int? Confidence { get; } = confidence;
    public double CenterX => Left + (Width / 2.0);
}
