From c8b35966b396820ef9329e1cbb876a1fce265285 Mon Sep 17 00:00:00 2001 From: Yaosanqi137 Date: Wed, 4 Mar 2026 01:23:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5canvas?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/landing-hero-canvas.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/assets/js/landing-hero-canvas.js b/assets/js/landing-hero-canvas.js index de8ceeb..7b83c1b 100644 --- a/assets/js/landing-hero-canvas.js +++ b/assets/js/landing-hero-canvas.js @@ -683,17 +683,6 @@ ctx.fillStyle = palette.divider; ctx.fillRect(gutterWidth, 0, 1, height); - ctx.strokeStyle = palette.guide; - ctx.lineWidth = 1; - const guideOffset = compact ? (narrow ? 54 : 64) : 110; - const guideGap = compact ? (narrow ? 68 : 76) : 120; - for (let x = codeStartX + guideOffset; x < width; x += guideGap) { - ctx.beginPath(); - ctx.moveTo(x, 0); - ctx.lineTo(x, height); - ctx.stroke(); - } - const cyclePos = isStatic ? totalTypingDuration + holdDuration : elapsed % cycleDuration; const writingPhase = cyclePos < totalTypingDuration;