From e5df12fd97ee5c96798cebe9e94f9f7b93372765 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Thu, 8 Aug 2024 07:39:48 -0600 Subject: [PATCH] Fix removal X / square drawing in our canvas renderer --- engine/package.json | 2 +- package.json | 2 +- src/Goban/CanvasRenderer.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/engine/package.json b/engine/package.json index dedf11a8..5a7caf26 100644 --- a/engine/package.json +++ b/engine/package.json @@ -1,6 +1,6 @@ { "name": "goban-engine", - "version": "8.3.19", + "version": "8.3.20", "description": "", "main": "build/goban-engine.js", "types": "build/engine/index.d.ts", diff --git a/package.json b/package.json index 9e3ad0f3..f07a8ec2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "goban", - "version": "8.3.19", + "version": "8.3.20", "description": "", "main": "build/goban.js", "types": "build/src/index.d.ts", diff --git a/src/Goban/CanvasRenderer.ts b/src/Goban/CanvasRenderer.ts index 55d900b2..e2d41625 100644 --- a/src/Goban/CanvasRenderer.ts +++ b/src/Goban/CanvasRenderer.ts @@ -1740,7 +1740,8 @@ export class GobanCanvas extends Goban implements GobanCanvasInterface { this.score_estimator.removal[j][i]) || pos.stone_removed ) { - draw_removal_x = true; + //draw_removal_x = true; + draw_removal_x = this.themes["removal-graphic"] === "x"; } } }