"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GridSnapper = void 0;
class GridSnapper {
    static snap(originalPoint) {
        if (originalPoint) {
            return {
                x: Math.round(originalPoint.x / this.GRID_X) * this.GRID_X,
                y: Math.round(originalPoint.y / this.GRID_Y) * this.GRID_Y
            };
        }
        else {
            return undefined;
        }
    }
}
exports.GridSnapper = GridSnapper;
GridSnapper.GRID_X = 10.0;
GridSnapper.GRID_Y = 10.0;
//# sourceMappingURL=grid-snapper.js.map