-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I30/svg in badge image background sometimes fails to render #32
base: i28/badge-page
Are you sure you want to change the base?
I30/svg in badge image background sometimes fails to render #32
Conversation
Now handles when the calculated fraction is NaN, something which occured when a badge had no requirements. The current handling is to set the fraction to one, meaning that the badge shows up as completed.
@@ -29,33 +29,33 @@ protected override void OnInitialized() | |||
Console.WriteLine($"{id}, {description}, {image}, {list}, {logo}, {complete}"); | |||
} | |||
|
|||
private double RightBorderY(double deg) | |||
public double RightBorderY(double deg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to make these public?
{ | ||
return 75.0; | ||
} | ||
return Math.Sin(-deg * Math.PI * 2 + Math.PI) * 75 + 75; | ||
} | ||
private double RightBorderX(double deg) | ||
public double RightBorderX(double deg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
{ | ||
return 150; | ||
} | ||
return Math.Cos(-deg * Math.PI * 2 + Math.PI) * 75 + 75; | ||
} | ||
private double LeftBorderY(double deg) | ||
public double LeftBorderY(double deg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
{ | ||
return 150.0; | ||
} | ||
return Math.Sin(-deg * Math.PI * 2 + Math.PI) * 75 + 75; | ||
} | ||
private double LeftBorderX(double deg) | ||
public double LeftBorderX(double deg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
No description provided.