createEllipsePath
import { createEllipsePath, Path } from "@pibbl/core";EllipsePathOptions is accepted by createEllipsePath(options): Path2D, which creates a fresh path
from nonnegative numeric radii, optional center, and finite radian rotation.
It is pure and has no render lifecycle.
<Path style={{ d: createEllipsePath({ radiusX: 64, radiusY: 30, rotation: 0.4 }), fill: "#38bdf8", }}/>See the Ellipse live example.
API details from source
Section titled “API details from source”
Creates a Canvas Path2D for ellipse geometry from validated options.
createEllipsePath: (options: Readonly<EllipsePathOptions>) => Path2DRelated API: createEllipsePath, EllipsePathOptions.
Parameters
Section titled “Parameters”options— Ellipse center, radii, and rotation. See EllipsePathOptions.
Returns
Section titled “Returns”A native Canvas path containing the ellipse.
See also
Section titled “See also”View source — packages/core/src/lib/geometry/ellipse.ts:29
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.