MCPcopy Create free account
hub / github.com/ShareDropio/sharedrop / path

Method path

app/components/circular-progress.js:17–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 }
16
17 get path() {
18 const π = Math.PI;
19 const α = this.args.value * 360;
20 const r = (α * π) / 180;
21 const mid = α > 180 ? 1 : 0;
22 const x = Math.sin(r) * 38;
23 const y = Math.cos(r) * -38;
24
25 return `M 0 0 v -38 A 38 38 1 ${mid} 1 ${x} ${y} z`;
26 }
27}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected