1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-18 00:31:00 -05:00

Hopefully fix the overlapping this time

This commit is contained in:
toast-ts 2024-03-28 11:08:58 +11:00
parent 1d8e4d3424
commit 0fa09c5de9

View File

@ -29,10 +29,11 @@ export default class CanvasBuilder {
const origin = [15, 65];
const size = [1300, 630];
const nodeWidth = size[0] / (data.length - 1);
if (type === 'leaderboard') this.ctx.globalAlpha = 0;
this.ctx.globalAlpha = 0;
this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
this.ctx.fillStyle = this.palette.background;
this.ctx.fillRect(0, 0, this.canvas.width, this.canvas.height);
if (type === 'leaderboard') this.ctx.globalAlpha = 1;
this.ctx.globalAlpha = 1;
// Grey horizontal lines
this.ctx.lineWidth = 5;