"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.attachSprite = void 0;
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;
}
exports.attachSprite = attachSprite;
//# sourceMappingURL=attachSprite.js.map