"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const namespaceURI_1 = require("../../../../../client/component/namespaceURI");
const element_1 = require("../../../../../client/element");
const propHandler_1 = require("../../../../../client/propHandler");
const style_1 = require("../../../../../client/style");
class SVGDefs extends element_1.Element {
    constructor($props, $system) {
        super($props, $system);
        const { style = {}, className } = this.$props;
        this.$element = this.$system.api.document.createElementNS(namespaceURI_1.namespaceURI, 'defs');
        if (className) {
            this.$element.classList.add(className);
        }
        (0, style_1.applyStyle)(this.$element, style);
        this._prop_handler = (0, propHandler_1.svgPropHandler)(this, this.$element, {});
    }
    onPropChanged(name, current) {
        this._prop_handler[name](current);
    }
}
exports.default = SVGDefs;
//# sourceMappingURL=Component.js.map