Skip to content

Commit dfa4c7f

Browse files
committed
fix: some display hacking
1 parent 73cb300 commit dfa4c7f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

index.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1975,9 +1975,10 @@ const createORCAVisual = (container) => {
19751975
let H = 93;
19761976
if (d.type === "contributor") {
19771977
if (d.data && d.data.orca_received) H = 134;
1978-
else H = 109;
1978+
else H = 80;
19791979
} else if (d.type === "repo") {
1980-
if (d.data.languages.length > 3) H = 222;
1980+
if (d.id === central_repo.id) H = 80;
1981+
else if (d.data.languages.length > 3) H = 222;
19811982
else if (d.data.languages.length > 0) H = 210;
19821983
else H = 169;
19831984

@@ -2092,15 +2093,20 @@ const createORCAVisual = (container) => {
20922093
setFont(context, font_size * SF, 400, "italic");
20932094
context.fillStyle = COL;
20942095
text = "";
2095-
if (d.type === "contributor") text = "Contributor";
2096+
if (d.id === central_repo.id) text = "Development Seed";
2097+
else if (d.type === "contributor") text = "Contributor";
20962098
else if (d.type === "repo") text = "Repository";
20972099
else if (d.type === "owner") text = "Owner";
20982100
renderText(context, text, x * SF, y * SF, 2.5 * SF);
20992101

21002102
context.fillStyle = COLOR_TEXT;
21012103
y += 24;
21022104

2103-
if (d.type === "contributor") {
2105+
if (d.id === central_repo.id) {
2106+
font_size = 15;
2107+
setFont(context, font_size * SF, 700, "normal");
2108+
renderText(context, "Development Seed", x * SF, y * SF, 1.25 * SF);
2109+
} else if (d.type === "contributor") {
21042110
// The contributor's name
21052111
font_size = 16;
21062112
setFont(context, font_size * SF, 700, "normal");

0 commit comments

Comments
 (0)