"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const namespaceURI_1 = require("../../../../../client/component/namespaceURI");
const svg_1 = require("../../../../../client/svg");
class SVGLine extends svg_1.SVGElement_ {
    constructor($props, $system) {
        super($props, $system, $system.api.document.createElementNS(namespaceURI_1.namespaceURI, 'line'), $system.style['line'], {}, {
            x1: (x1 = 0) => {
                this.$element.setAttribute('x1', `${x1}`);
            },
            y1: (y1 = 0) => {
                this.$element.setAttribute('y1', `${y1}`);
            },
            x2: (x2 = 0) => {
                this.$element.setAttribute('x2', `${x2}`);
            },
            y2: (y2 = 0) => {
                this.$element.setAttribute('y2', `${y2}`);
            },
        });
        const { className, x1 = 0, y1 = 0, x2 = 0, y2 = 0 } = $props;
        if (className !== undefined) {
            this.$element.classList.value = className;
        }
        this.$element.setAttribute('x1', `${x1}`);
        this.$element.setAttribute('y1', `${y1}`);
        this.$element.setAttribute('x2', `${x2}`);
        this.$element.setAttribute('y2', `${y2}`);
    }
}
exports.default = SVGLine;
//# sourceMappingURL=Component.js.map