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

Function circlePath

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

Source from the content-addressed store, hash-verified

388
389// Creates an SVG path string for a circle.
390function circlePath(cx: number, cy: number, r: number) {
391 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`;
392}

Callers 1

useColorWheelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected