"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const namespaceURI_1 = require("../../../../../client/component/namespaceURI");
const svg_1 = require("../../../../../client/svg");
class SVGMarker extends svg_1.SVGElement_ {
    constructor($props, $system) {
        super($props, $system, $system.api.document.createElementNS(namespaceURI_1.namespaceURI, 'marker'), $system.style['marker']);
        const { id, className, markerHeight, markerWidth, refX, refY, orient } = this.$props;
        if (id !== undefined) {
            this.$element.id = id;
        }
        if (className) {
            this.$element.classList.add(className);
        }
        if (markerHeight !== undefined) {
            this.$element.setAttribute('markerHeight', `${markerHeight}`);
        }
        if (markerWidth !== undefined) {
            this.$element.setAttribute('markerWidth', `${markerWidth}`);
        }
        if (refX !== undefined) {
            this.$element.setAttribute('refX', `${refX}`);
        }
        if (refY !== undefined) {
            this.$element.setAttribute('refY', `${refY}`);
        }
        if (orient !== undefined) {
            this.$element.setAttribute('orient', orient);
        }
    }
}
exports.default = SVGMarker;
//# sourceMappingURL=Component.js.map