From de06553a8de5fc10de5ffbb0b56c3b11c1b9401b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Wed, 1 Nov 2023 00:45:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=8B=E7=9B=98=E6=97=A0=E8=BE=B9=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ChineseChess.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ChineseChess.js b/src/ChineseChess.js index 4fdf234..fe34fee 100644 --- a/src/ChineseChess.js +++ b/src/ChineseChess.js @@ -140,11 +140,11 @@ export class Chessboard { context.beginPath() // 棋盘描边 - context.moveTo(10, 10) - context.lineTo(10, width * 9.6) - context.lineTo(width * 8.6, width * 9.6) - context.lineTo(width * 8.6, 10) - context.lineTo(10, 10) + context.moveTo(20, 20) + context.lineTo(20, width * 9.4) + context.lineTo(width * 8.4, width * 9.4) + context.lineTo(width * 8.4, 20) + context.lineTo(20, 20) context.stroke() }; img.src = canvas.toDataURL()