"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const namespaceURI_1 = require("../../../../../client/component/namespaceURI");
const element_1 = require("../../../../../client/element");
const style_1 = require("../../../../../client/style");
class SVGG extends element_1.Element {
    constructor($props, $system) {
        super($props, $system);
        const { className, style = {} } = this.$props;
        const g_el = this.$system.api.document.createElementNS(namespaceURI_1.namespaceURI, 'g');
        if (className !== undefined) {
            g_el.classList.value = className;
        }
        (0, style_1.applyStyle)(g_el, style);
        this._g_el = g_el;
        this.$element = g_el;
    }
    onPropChanged(prop, current) {
        if (prop === 'style') {
            (0, style_1.applyStyle)(this._g_el, current);
        }
    }
}
exports.default = SVGG;
//# sourceMappingURL=Component.js.map