-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
fix(progress-circle): render determinate and indeterminate across all supported browsers #375
Conversation
@@ -3,15 +3,12 @@ | |||
@import "default-theme"; | |||
|
|||
/* Animation Durations */ | |||
$md-progress-circle-duration : 5.25s !default; | |||
$md-progress-circle-value-change-duration : $md-progress-circle-duration * 0.25 !default; | |||
$md-progress-circle-duration : 5332ms !default; |
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.
Can you add any info on where this value comes from?
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.
Reverted back
@joeyperson Now needs rebasing on my mega change #384. Let me know if you need any help with that (next week, of course). |
Rebased. |
// total circumference. | ||
private _renderCircle(animateFrom: number, animateTo: number, | ||
ease: (currentTime: number, startValue: number, | ||
changeInValue: number, duration: number) => number, |
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.
You should be able to alias this type so that it's a little more readable here:
type EasingFn = (currentTime: number, startValue: number, changeInValue: number, duration: number) => number
(see the Dir
directive for an example)
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.
Done
/** | ||
* Determines the path value to define the arc. | ||
*/ | ||
function getSvgArc(current: number, rotation: number) { |
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.
Need more explanation about what the function is returning.
LGTM aside from a couple minor style nits. |
* The cdk-table guide became the overview document for the cdk table component. Therefore it's no longer a guide.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
For #295