MCPcopy Create free account
hub / github.com/adobe/react-spectrum / circlePath

Function circlePath

packages/react-aria/src/color/useColorWheel.ts:383–385  ·  view source on GitHub ↗
(cx: number, cy: number, r: number)

Source from the content-addressed store, hash-verified

381
382// Creates an SVG path string for a circle.
383function circlePath(cx: number, cy: number, r: number) {
384 return `M ${cx}, ${cy} m ${-r}, 0 a ${r}, ${r}, 0, 1, 0, ${r * 2}, 0 a ${r}, ${r}, 0, 1, 0 ${-r * 2}, 0`;
385}

Callers 1

useColorWheelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected