var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { ElementModel } from './base.js';
import { yfield } from './decorators.js';
export class TextElementModel extends ElementModel {
    constructor() {
        super(...arguments);
        this.xywh = '[0,0,0,0]';
        this.rotate = 0;
    }
    get type() {
        return 'text';
    }
}
__decorate([
    yfield()
], TextElementModel.prototype, "xywh", void 0);
__decorate([
    yfield()
], TextElementModel.prototype, "rotate", void 0);
__decorate([
    yfield()
], TextElementModel.prototype, "text", void 0);
__decorate([
    yfield()
], TextElementModel.prototype, "color", void 0);
__decorate([
    yfield()
], TextElementModel.prototype, "fontSize", void 0);
__decorate([
    yfield()
], TextElementModel.prototype, "fontFamily", void 0);
__decorate([
    yfield()
], TextElementModel.prototype, "fontWeight", void 0);
__decorate([
    yfield()
], TextElementModel.prototype, "fontStyle", void 0);
__decorate([
    yfield()
], TextElementModel.prototype, "textAlign", void 0);
__decorate([
    yfield()
], TextElementModel.prototype, "hasMaxWidth", void 0);
//# sourceMappingURL=text.js.map