MCPcopy Create free account
hub / github.com/ElemeFE/element-react / trackPath

Method trackPath

src/progress/Progress.jsx:31–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 }
30
31 trackPath(): string {
32 const radius = parseInt(
33 50 - parseFloat(this.relativeStrokeWidth()) / 2,
34 10
35 );
36 return `M 50 50 m 0 -${radius} a ${radius} ${radius} 0 1 1 0 ${radius * 2} a ${radius} ${radius} 0 1 1 0 -${radius * 2}`;
37 }
38
39 perimeter(): number {
40 const radius = 50 - parseFloat(this.relativeStrokeWidth()) / 2;

Callers 1

renderMethod · 0.95

Calls 1

relativeStrokeWidthMethod · 0.95

Tested by

no test coverage detected