multixy: draw labels above points

This commit is contained in:
jean-emmanuel 2018-11-03 19:24:37 +01:00
parent dbb9047dc6
commit 3ee351d6f3
2 changed files with 2 additions and 1 deletions

View file

@ -194,7 +194,7 @@ module.exports = class MultiXy extends Pad {
length = this.fontSize * t.length
this.ctx.globalAlpha = 1
this.ctx.fillStyle = this.colors.text
this.ctx.fillStyle = this.pads[i].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 + 2 * PXSCALE]