补充安装文档

This commit is contained in:
2023-12-21 13:00:01 +08:00
parent 73d895dc2b
commit 231e7f4376
2 changed files with 19 additions and 17 deletions

View File

@@ -162,17 +162,6 @@ export class Chessboard {
context.lineTo(边距, 边距)
context.stroke()
//// 绘制棋子们
//context.font = '20px serif'
//context.fillStyle = 'red'
//context.fillText('車', 0+边距-(比例/5), 20+边距-(比例/5))
//context.stroke()
//// 绘制棋子们
//context.font = '20px serif'
//context.fillStyle = 'red'
//context.fillText('馬', 0+边距-(比例/5) + (比例*1), 20+边距-(比例/5))
//context.stroke()
// 单独保存绘制好的棋盘
const chessboard = canvas.toDataURL()