From b892a9a76f4eed70faa01b1a4a5b0d48a3081f46 Mon Sep 17 00:00:00 2001 From: chndfang Date: Sat, 21 Jun 2025 01:14:35 +0800 Subject: [PATCH] fix --- src/services/editor.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/editor.service.ts b/src/services/editor.service.ts index 24243f2..c128938 100644 --- a/src/services/editor.service.ts +++ b/src/services/editor.service.ts @@ -798,7 +798,7 @@ function drawLine(ctx: CanvasRenderingContext2D, pen: MapPen): void { const { x: dx2 = 0, y: dy2 = 0 } = c2 ?? {}; const [c1x, c1y] = [x1 + dx1 * s, y1 + dy1 * s]; const [c2x, c2y] = [x2 + dx2 * s, y2 + dy2 * s]; - const t = direction < 0 ? 0.5 : 0.5; + const t = direction < 0 ? 0.55 : 0.45; ctx.save(); ctx.beginPath();