"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 = {
    points: '',
};
class SVGPolygon extends svg_1.SVGElement_ {
    constructor($props, $system) {
        super($props, $system, $system.api.document.createElementNS(namespaceURI_1.namespaceURI, 'rect'), $system.style['rect'], {}, {
            points: (points = this.$props.attr.x ?? exports.DEFAULT_ATTR.points) => {
                this.$element.setAttribute('points', `${points}`);
            },
        });
        const { points = exports.DEFAULT_ATTR.points } = $props;
        this.$element.setAttribute('points', `${points}`);
    }
}
exports.default = SVGPolygon;
//# sourceMappingURL=Component.js.map