From 3a2adf079e127cc4371679095ec545aa229395bb Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sat, 3 Nov 2018 19:24:37 +0100 Subject: [PATCH] multixy: draw labels above points --- src/client/app/widgets/pads/multixy.js | 2 +- src/scss/widgets/pads.scss | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/app/widgets/pads/multixy.js b/src/client/app/widgets/pads/multixy.js index 02ec7d08..ecdeba44 100644 --- a/src/client/app/widgets/pads/multixy.js +++ b/src/client/app/widgets/pads/multixy.js @@ -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] diff --git a/src/scss/widgets/pads.scss b/src/scss/widgets/pads.scss index d7da9817..1f53caa5 100644 --- a/src/scss/widgets/pads.scss +++ b/src/scss/widgets/pads.scss @@ -169,6 +169,7 @@ > canvas { top:0; left:0; + z-index: 2; } > .pad {