We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90a23c5 commit 11d4719Copy full SHA for 11d4719
1 file changed
scripts/benchmark-svg.ts
@@ -18,19 +18,15 @@ const baseParams = {
18
speed: sanitizeSpeed('8s'),
19
};
20
21
-const deterministicContributionCount = (
22
- weekIndex: number,
23
- dayIndex: number,
24
-):
25
-number => {
+const deterministicContributionCount = (weekIndex: number, dayIndex: number): number => {
26
return ((weekIndex * 7 + dayIndex) * 13) % 20;
27
28
29
const calendar = {
30
totalContributions: 1240,
31
weeks: Array.from({ length: 14 }, (_, weekIndex) => ({
32
contributionDays: Array.from({ length: 7 }, (_, dayIndex) => ({
33
- contributionCount:deterministicContributionCount(weekIndex,dayIndex),
+ contributionCount: deterministicContributionCount(weekIndex, dayIndex),
34
date: `2026-05-${String(weekIndex * 7 + dayIndex + 1).padStart(2, '0')}`,
35
})),
36
0 commit comments