This commit is contained in:
Jens Cornelsen
2024-12-09 23:22:35 +01:00
parent 7fd868ad28
commit b1986b692a

View File

@@ -23,7 +23,7 @@ import Layout from "#layouts/cadLayout.astro";
const ctx = canvas.getContext('2d');
const lineLog = document.getElementById('line-log');
const pixelToMeter = 0.01; // Conversion factor: 1 pixel = 0.01 meter
const gridSize = 5; // Size of each grid cell in pixels
const gridSize = 20; // Size of each grid cell in pixels
let startX = null;
let startY = null;
let capturedLines = [];