createArcPath
import { createArcPath, Path } from "@pibbl/core";ArcPathOptions is accepted by createArcPath(options): Path2D, a pure numeric constructor.
It accepts finite logical-unit center/radius/sweep options and returns a fresh,
open Path2D; it owns no render state, events, or cache.
<Path style={{ d: createArcPath({ radius: 48, startAngle: 0, endAngle: Math.PI }), stroke: "#2563eb", }}/>Use a component when geometry needs percentage or allocation resolution.
API details from source
Section titled “API details from source”
Creates a Canvas Path2D for arc geometry from validated options.
createArcPath: (options: Readonly<ArcPathOptions>) => Path2DRelated API: createArcPath, ArcPathOptions.
Parameters
Section titled “Parameters”options— Circle center, radius, angles, and sweep direction. See ArcPathOptions.
Returns
Section titled “Returns”A native Canvas path containing the arc.
See also
Section titled “See also”View source — packages/core/src/lib/geometry/circular-sweep.ts:77
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 2dccb19. ALPHA — NOT FOR PRODUCTION USE.