"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCanvasMousePos = void 0;
var getCanvasMousePos = function (canvas, event) {
    var rect = canvas.getBoundingClientRect();
    var x = ((event.clientX - rect.left) / (rect.right - rect.left)) * canvas.width;
    var y = ((event.clientY - rect.top) / (rect.bottom - rect.top)) * canvas.height;
    return { x: x, y: y };
};
exports.getCanvasMousePos = getCanvasMousePos;
