diff --git a/src/pages/faq/erstellung-energieausweise/index.astro b/src/pages/faq/erstellung-energieausweise/index.astro index 1f334b6b..4521a5dc 100644 --- a/src/pages/faq/erstellung-energieausweise/index.astro +++ b/src/pages/faq/erstellung-energieausweise/index.astro @@ -204,14 +204,6 @@ import Layout from "#layouts/layoutCAD.astro"; const endX = snapToGrid(e.offsetX); const endY = snapToGrid(e.offsetY); - // If it's a point, draw a point - if (startX === endX && startY === endY) { - drawPoint(startX, startY); - } else { - // Otherwise, draw the line - drawLine(startX, startY, endX, endY); - } - // Update the last endpoint lastEndPoint = { x: endX, y: endY }; @@ -230,14 +222,6 @@ import Layout from "#layouts/layoutCAD.astro"; ctx.stroke(); } - // Function to draw a point - function drawPoint(x, y) { - ctx.beginPath(); - ctx.fillStyle = "#000000"; // Black point - ctx.arc(x, y, 3, 0, 2 * Math.PI); // Draw a small circle for the point - ctx.fill(); - } - // Initialize the canvas drawGrid();