Skip to content
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

Open
wants to merge 1 commit into
base: i28/badge-page
Choose a base branch
from

Conversation

redrei
Copy link
Member

@redrei redrei commented Feb 21, 2022

No description provided.

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.
@redrei redrei linked an issue Feb 21, 2022 that may be closed by this pull request
@redrei redrei added this to the Iteration 1 - Demo/pre-MVP milestone Feb 21, 2022
@redrei redrei changed the base branch from master to i28/badge-page February 21, 2022 20:07
@redrei redrei requested a review from Espenbfo February 21, 2022 20:08
@redrei redrei self-assigned this Feb 21, 2022
@redrei redrei added bug Something isn't working PWA Related to PWA development labels Feb 21, 2022
@@ -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)
Copy link
Collaborator

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)
Copy link
Collaborator

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)
Copy link
Collaborator

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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PWA Related to PWA development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SVG in badge-image background sometimes fails to render
2 participants