mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-27 04:15:38 -05:00
Fix overlapping
This commit is contained in:
parent
02c33a0e64
commit
d9c611df93
@ -29,10 +29,10 @@ export default class CanvasBuilder {
|
|||||||
const origin = [15, 65];
|
const origin = [15, 65];
|
||||||
const size = [1300, 630];
|
const size = [1300, 630];
|
||||||
const nodeWidth = size[0] / (data.length - 1);
|
const nodeWidth = size[0] / (data.length - 1);
|
||||||
this.ctx.globalAlpha = 0;
|
if (type === 'leaderboard') this.ctx.globalAlpha = 0;
|
||||||
this.ctx.fillStyle = this.palette.background;
|
this.ctx.fillStyle = this.palette.background;
|
||||||
this.ctx.fillRect(0, 0, this.canvas.width, this.canvas.height);
|
this.ctx.fillRect(0, 0, this.canvas.width, this.canvas.height);
|
||||||
this.ctx.globalAlpha = 1;
|
if (type === 'leaderboard') this.ctx.globalAlpha = 1;
|
||||||
|
|
||||||
// Grey horizontal lines
|
// Grey horizontal lines
|
||||||
this.ctx.lineWidth = 5;
|
this.ctx.lineWidth = 5;
|
||||||
|
Loading…
Reference in New Issue
Block a user