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