multixy: draw labels above points
This commit is contained in:
parent
f37d5b1e3e
commit
3a2adf079e
2 changed files with 2 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -169,6 +169,7 @@
|
|||
> canvas {
|
||||
top:0;
|
||||
left:0;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
> .pad {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue