projects
/
brackets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1520458
)
Adjust spacing
author
Jacob Casper
<dev@jacobcasper.com>
Sun, 19 Apr 2020 04:51:50 +0000
(23:51 -0500)
committer
Jacob Casper
<dev@jacobcasper.com>
Sun, 19 Apr 2020 04:51:50 +0000
(23:51 -0500)
frontend/index.js
patch
|
blob
|
blame
|
history
diff --git
a/frontend/index.js
b/frontend/index.js
index
07d0d2d
..
6385dbe
100644
(file)
--- a/
frontend/index.js
+++ b/
frontend/index.js
@@
-76,7
+76,7
@@
const drawBranchFrom = (ctx, x, y, xDist, yDist, left, up) => {
}
const drawArtistOnCtx = (ctx, artistName, x, y) => {
}
const drawArtistOnCtx = (ctx, artistName, x, y) => {
- ctx.font = "
1em
sans serif";
+ ctx.font = "
20px
sans serif";
ctx.strokeText(artistName, x, y);
}
ctx.strokeText(artistName, x, y);
}
@@
-137,8
+137,8
@@
const drawBracket = (canvas, artists, genre) => {
for (let group = 1; group <= groups; group++) {
drawMatchup(
canvas,
for (let group = 1; group <= groups; group++) {
drawMatchup(
canvas,
- mid_x + (Math.pow(-1, group) * (rect_width /
4
)),
- mid_y + (Math.pow(-1, Math.floor(group / 2)) * (rect_height * 2)),
+ mid_x + (Math.pow(-1, group) * (rect_width /
6
)),
+ mid_y + (Math.pow(-1, Math.floor(group / 2)) * (rect_height * 2
.5
)),
0,
rounds,
Math.pow(-1, group),
0,
rounds,
Math.pow(-1, group),