📅  最后修改于: 2022-03-11 14:47:45.342000             🧑  作者: Mango
class ProgressRing extends React.Component {
constructor(props) {
super(props);
const { radius, stroke } = this.props;
this.normalizedRadius = radius - stroke * 2;
this.circumference = this.normalizedRadius * 2 * Math.PI;
}
}