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