"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.attachSVG = void 0;
const namespaceURI_1 = require("../component/namespaceURI");
const resizeWith_1 = require("../resizeWith");
function attachSVG(system) {
    const { root, foreground, api: { document: { createElementNS }, }, } = system;
    const svg = createElementNS(namespaceURI_1.namespaceURI, 'svg');
    svg.classList.add('__SYSTEM__SVG__');
    svg.style.pointerEvents = 'none';
    svg.style.position = 'absolute';
    svg.style.top = '0';
    svg.style.left = '0';
    svg.style.zIndex = '1';
    (0, resizeWith_1.default)(system, svg, root);
    root.shadowRoot.appendChild(svg);
    foreground.svg = svg;
}
exports.attachSVG = attachSVG;
//# sourceMappingURL=attachSVG.js.map