"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.attachSprite = attachSprite;
const namespaceURI_1 = require("../component/namespaceURI");
const ensureIcon_1 = require("../ensureIcon");
function attachSprite(system) {
    const { root, api: { document: { createElementNS }, }, } = system;
    const sprite = createElementNS(namespaceURI_1.namespaceURI, 'svg');
    sprite.id = ensureIcon_1.SYSTEM_SPRITESHEET_ID;
    sprite.style.display = 'none';
    root.shadowRoot.appendChild(sprite);
    system.foreground.sprite = sprite;
}
//# sourceMappingURL=attachSprite.js.map