namespace RolemasterDb.ImportTool.Parsing;

public sealed class XmlTextFragment(
    int pageNumber,
    int top,
    int left,
    int width,
    int height,
    string text)
{
    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 double CenterX => Left + (Width / 2.0);
}
