"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.attachCanvas = void 0;
const resizeWith_1 = require("../resizeWith");
function attachCanvas(system) {
    const { root, api: { document: { createElement }, }, } = system;
    const canvas = createElement('canvas');
    canvas.classList.add('__SYSTEM__CANVAS__');
    canvas.style.pointerEvents = 'none';
    canvas.style.zIndex = '1';
    (0, resizeWith_1.default)(system, canvas, root);
    root.shadowRoot.appendChild(canvas);
    system.foreground.canvas = canvas;
}
exports.attachCanvas = attachCanvas;
//# sourceMappingURL=attachCanvas.js.map