Skip to content

Commit

Permalink
fix: sumLineY when no best times
Browse files Browse the repository at this point in the history
  • Loading branch information
evvvritt committed Aug 2, 2024
1 parent ad14f89 commit 829f12a
Show file tree
Hide file tree
Showing 3 changed files with 4,810 additions and 11 deletions.
4,817 changes: 4,808 additions & 9 deletions dist/module.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/module.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/visuals.js
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ export const Visuals = {
bestTime.toFixed(2),
`${diff > 0 ? '+' : '-'}${Math.abs(diff).toFixed(2)}`
]
const sumLineY = middleBoxY + rowHeight * bestTimes.length
const sumLineY = middleBoxY + rowHeight * Math.min(5, LEVELS)
const sumLineHeight = 80
const sumLineYText = sumLineY + sumLineHeight / 2
p.textAlign(p.LEFT, p.CENTER)
Expand Down

0 comments on commit 829f12a

Please sign in to comment.