/*
 * SDK Pullenti Unitext, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved. 
 * Non-Commercial Freeware and Commercial Software. 
 * This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C# project. 
 * The latest version of the code is available on the site www.pullenti.ru
 */


class PdfRect {
    
    constructor() {
        this.x1 = 0;
        this.x2 = 0;
        this.y1 = 0;
        this.y2 = 0;
        this.tag = null;
    }
    
    get left() {
        return this.x1;
    }
    
    get right() {
        return this.x2;
    }
    
    get width() {
        return this.x2 - this.x1;
    }
    
    get top() {
        return this.y1;
    }
    
    get bottom() {
        return this.y2;
    }
    
    get height() {
        return this.y2 - this.y1;
    }
    
    toString() {
        return ("[x1=" + this.x1 + ", x2=" + this.x2 + ", y1=" + this.y1 + ", y2=" + this.y2);
    }
}


module.exports = PdfRect