diff --git a/src/GobanSVG.ts b/src/GobanSVG.ts index 116096f3..ddcbb243 100644 --- a/src/GobanSVG.ts +++ b/src/GobanSVG.ts @@ -1784,7 +1784,11 @@ export class GobanSVG extends GobanCore implements GobanSVGInterface { text.setAttribute("x", cx.toString()); let yy = cy; yy -= this.square_size / 6; - yy += this.square_size * 0.6; + if (letter) { + yy += this.square_size * 0.6; + } else { + yy += this.square_size * 0.275; + } text.setAttribute("y", yy.toString()); text.textContent = subscript; if (transparent) { diff --git a/src/test.tsx b/src/test.tsx index a894617a..a8867717 100644 --- a/src/test.tsx +++ b/src/test.tsx @@ -354,8 +354,8 @@ function ReactGoban( let i = 0; const start = Date.now(); - const NUM_MOVES = 300; - //const NUM_MOVES = 20; + //const NUM_MOVES = 300; + const NUM_MOVES = 20; const interval = setInterval(() => { i++; if (i >= NUM_MOVES) { @@ -420,6 +420,7 @@ function ReactGoban( goban.setMark(15, 13, "cross", true); goban.setMark(15, 12, "top", true); goban.setSubscriptMark(15, 12, "sub", true); + goban.setSubscriptMark(16, 12, "sub", true); goban.setMark(15, 11, "A", true); // pen marks