multixy: fix drawing glitch with some letters in points' labels (e.g. "j")

This commit is contained in:
jean-emmanuel 2018-07-19 16:34:59 +02:00
parent 9e855d1858
commit fd73cb2f68
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,7 @@
- bug fixes
- matrix: recreation loop issue with matrices of clones
- multixy: glitch when some letters are used in the points' labels
## 0.33.2

View file

@ -215,7 +215,7 @@ module.exports = class MultiXy extends Pad {
this.ctx.fillStyle = this.colors.text
this.ctx.fillText(t, x + 0.5 * PXSCALE, y + 0.5 * PXSCALE)
this.clearRect[i] = [x - length / 2, y - this.fontSize / 2, length, this.fontSize]
this.clearRect[i] = [x - length / 2, y - this.fontSize / 2, length, this.fontSize + 2 * PXSCALE]
}