Skip to content

Commit

Permalink
Fix gray lines appearing 2x offset
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Aug 23, 2024
1 parent 825e9e2 commit 21a80bc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Goban/SVGRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1237,9 +1237,9 @@ export class SVGRenderer extends Goban implements GobanSVGInterface {
}

const l = i * ss + ox;
const r = (i + 1) * ss + ox;
//const r = (i + 1) * ss + ox;
const t = j * ss + oy;
const b = (j + 1) * ss + oy;
//const b = (j + 1) * ss + oy;

//const cx = l + this.metrics.mid;
//const cy = t + this.metrics.mid;
Expand Down Expand Up @@ -1315,12 +1315,12 @@ export class SVGRenderer extends Goban implements GobanSVGInterface {
/* Fade our lines if we have text to draw */
if (have_text_to_draw) {
/* draw lighter colored lines */
let sx = l;
let ex = r;
const mx = (r + l) / 2 - this.metrics.offset;
let sy = t;
let ey = b;
const my = (t + b) / 2 - this.metrics.offset;
let sx = 0;
let ex = ss;
const mx = ss / 2 - this.metrics.offset;
let sy = 0;
let ey = ss;
const my = ss / 2 - this.metrics.offset;

if (i === 0) {
sx += this.metrics.mid;
Expand Down

0 comments on commit 21a80bc

Please sign in to comment.