"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_ATTR = void 0;
const namespaceURI_1 = require("../../../../../client/component/namespaceURI");
const svg_1 = require("../../../../../client/svg");
exports.DEFAULT_ATTR = {
    width: 100,
    height: 100,
    x: 0,
    y: 0,
    rx: 0,
    ry: 0,
};
class SVGRect extends svg_1.SVGElement_ {
    constructor($props, $system) {
        super($props, $system, $system.api.document.createElementNS(namespaceURI_1.namespaceURI, 'rect'), $system.style['rect'], {}, {});
        const { className, x = exports.DEFAULT_ATTR.x, y = exports.DEFAULT_ATTR.y, rx = exports.DEFAULT_ATTR.rx, ry = exports.DEFAULT_ATTR.ry, width = exports.DEFAULT_ATTR.width, height = exports.DEFAULT_ATTR.height, } = $props;
        if (className !== undefined) {
            this.$element.classList.value = className;
        }
        this.$element.setAttribute('x', `${x}`);
        this.$element.setAttribute('y', `${y}`);
        this.$element.setAttribute('rx', `${rx}`);
        this.$element.setAttribute('ry', `${ry}`);
        this.$element.setAttribute('width', `${width}`);
        this.$element.setAttribute('height', `${height}`);
    }
}
exports.default = SVGRect;
//# sourceMappingURL=Component.js.map