"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setupCanvas = void 0;
function setupCanvas(canvas) {
    const canvas_ctx = canvas.getContext('2d');
    const dpr = window.devicePixelRatio || 1;
    const rect = canvas.getBoundingClientRect();
    canvas.width = rect.width * dpr;
    canvas.height = rect.height * dpr;
    canvas_ctx.scale(dpr, dpr);
    canvas.style.transform = `scale(${1 / dpr})`;
}
exports.setupCanvas = setupCanvas;
//# sourceMappingURL=setupCanvas.js.map