createCirclePath
import { Circle, Clip, createCirclePath } from "@pibbl/core";CirclePathOptions is accepted by createCirclePath(options): Path2D, which creates a fresh circle
from a nonnegative numeric radius and optional cx/cy. It is pure and owns
no render state, events, or cache.
<Clip style={{ d: createCirclePath({ cx: 80, cy: 80, radius: 56 }) }}> <Circle style={{ cx: 80, cy: 80, radius: 64, fill: "#2563eb" }} /></Clip>Numeric path creators do not accept percentages or "auto".
API details from source
Section titled “API details from source”
Creates a Canvas Path2D for circle geometry from validated options.
createCirclePath: (options: Readonly<CirclePathOptions>) => Path2DRelated API: createCirclePath, CirclePathOptions.
Parameters
Section titled “Parameters”options— Circle center and radius. See CirclePathOptions.
Returns
Section titled “Returns”A native Canvas path containing the circle.
See also
Section titled “See also”View source — packages/core/src/lib/geometry/circle.ts:25
Implementation guidance for agents
Section titled “Implementation guidance for agents”Read the Drawing, layout, and effects companion for ownership, adaptation, failure modes, and verification. Agent start provides the version-selection workflow.
Complete minimal examples
Section titled “Complete minimal examples”- Circular path factories: Create circle, ellipse, arc, and wedge Path2D shapes. Plain source
Documentation version
Section titled “Documentation version”Documentation built with @pibbl/core 0.0.2, revision 272a94a. ALPHA — NOT FOR PRODUCTION USE.