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

Compare commits

..

5 Commits

Author SHA1 Message Date
Toast
9f6c6e6fc4
Merge e8bb291ffb into 4daf56dcb4 2024-03-19 05:57:18 +00:00
toast-ts
e8bb291ffb Delete Yarn PnP files as per #99 2024-03-19 16:57:15 +11:00
toast-ts
1390937028 Merge branch 'master' into sequelize-v7 2024-03-19 16:55:49 +11:00
Toast
4daf56dcb4
Delete pointless Yarn PnP files (#99)
* Delete .pnp.cjs

* Delete .pnp.loader.mjs

* Update .gitignore
2024-03-19 16:52:01 +11:00
toast-ts
2e133dcbb8 Adjust the balls on Canvas graph 2024-03-19 10:36:45 +11:00
4 changed files with 3 additions and 11308 deletions

1
.gitignore vendored
View File

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

9230
.pnp.cjs generated

File diff suppressed because one or more lines are too long

2076
.pnp.loader.mjs generated

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 Y = ((1 - (currentValue / top)) * size[1]) + origin[1];
const nextValue = data[i + 1]; const nextValue = data[i + 1];
const previousValue = 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(); this.ctx.beginPath();
if (lastCoordinates.length) this.ctx.moveTo(lastCoordinates[0], lastCoordinates[1]); 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. // 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.fillStyle = type === 'players' ? gradient : null;
this.ctx.beginPath(); this.ctx.beginPath();
this.ctx.arc(X, Y, this.ctx.lineWidth * 1.2, 0, 2 * Math.PI); this.ctx.arc(X, Y, this.ctx.lineWidth * 0.8, 1, 2 * Math.PI);
this.ctx.closePath(); this.ctx.closePath();
this.ctx.fill(); this.ctx.fill();
} }