import { GeomObject } from './geomObject';
import { Rectangle } from './../../math/geometry/rectangle';
import { Point } from '../..';
// import {Assert} from '../../utils/assert'
export class GeomLabel extends GeomObject {
    constructor(size, label) {
        super(label);
        /*Assert.assert(label instanceof Label)*/
        this.boundingBox = Rectangle.mkPP(new Point(0, 0), new Point(size.width, size.height));
    }
    get label() {
        return this.attrCont;
    }
    get width() {
        return this.boundingBox.width;
    }
    set width(value) {
        this.boundingBox.width = value;
    }
    get height() {
        return this.boundingBox.height;
    }
    set height(value) {
        this.boundingBox.height = value;
    }
    get center() {
        return this.boundingBox.center;
    }
    set center(value) {
        this.boundingBox.center = value;
    }
}
//# sourceMappingURL=geomLabel.js.map