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

Compare commits

..

No commits in common. "e8bb291ffba7a08ae9e5470c3c9f7033e06e7771" and "2616b8996b432cca1ee014558a19ff5edbe2648c" have entirely different histories.

4 changed files with 11308 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,6 +1,5 @@
.env
.yarn
.pnp.*
dist
src/private
src/*.json

9230
.pnp.cjs generated Normal file

File diff suppressed because one or more lines are too long

2076
.pnp.loader.mjs generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -85,7 +85,7 @@ export default class CanvasBuilder {
const Y = ((1 - (currentValue / top)) * size[1]) + origin[1];
const nextValue = data[i + 1];
const previousValue = data[i - 1];
this.ctx.strokeStyle = type === 'players' ? gradient : null;
this.ctx.strokeStyle = type === 'players' ? gradient : null;
this.ctx.beginPath();
if (lastCoordinates.length) this.ctx.moveTo(lastCoordinates[0], lastCoordinates[1]);
@ -106,7 +106,7 @@ export default class CanvasBuilder {
// Balls. What else? I mean.. I'm not that creative, I'm just a comment not a funny comedian.
this.ctx.fillStyle = type === 'players' ? gradient : null;
this.ctx.beginPath();
this.ctx.arc(X, Y, this.ctx.lineWidth * 0.8, 1, 2 * Math.PI);
this.ctx.arc(X, Y, this.ctx.lineWidth * 1.2, 0, 2 * Math.PI);
this.ctx.closePath();
this.ctx.fill();
}