Skip to content

Commit

Permalink
Merge pull request #315 from manipalutsav/testing
Browse files Browse the repository at this point in the history
Testing
  • Loading branch information
Pawardevelops authored Mar 15, 2024
2 parents d67a997 + 660aa3b commit 6a04648
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Rounds/Leaderboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,13 @@ export default class extends React.Component {
// context.font = "bold 37.4px Verdana";
context.font = "bold 37.4px Rye";
context.fillStyle = "#ffffff";
context.textAlign = "left";
context.textAlign = "center";
let textStr = event + " Results";
let textWidth = context.measureText(textStr).width;
context.fillText((event + " Results").toUpperCase(), (canvas.width / 2) - (textWidth/2), 365);
context.fillText((textStr).toUpperCase(), (canvas.width/2), 365);
context.font = "bold 34px Rye";
context.textAlign = "left";

for (let i = 0; i < placesArray[0].length; i++) {
context.font = "bold 34px HammersmithOne";
let text = placesArray[0][i]["name"];
Expand Down

0 comments on commit 6a04648

Please sign in to comment.