From 4e49f21b91ca59a7276d764e9194e535f6d9209e Mon Sep 17 00:00:00 2001 From: Jens Cornelsen <79703163+IB-Cornelsen@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:00:17 +0100 Subject: [PATCH] CD --- .../faq/erstellung-energieausweise/index.astro | 16 ---------------- 1 file changed, 16 deletions(-) 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();