Props
X-coordinate of the circle’s center point in pixels.
Y-coordinate of the circle’s center point in pixels.
Radius for a perfect circle in pixels.Use this for circular shapes. Cannot be used with
rx or ry.Horizontal radius for an ellipse in pixels.Use with
ry to create elliptical shapes. Cannot be used with radius.Vertical radius for an ellipse in pixels.Use with
rx to create elliptical shapes. Cannot be used with radius.You must provide either
radius for a circle, or both rx and ry for an ellipse.Usage
Basic Circle
Ellipse
Circle with Stroke
Multiple Circles in One Shape
Transparent Circle
Elliptical Ring
Parent-Child Relationships
- Parent: Must be a child of Shape
- Children: Circle does not accept children
The position (
x, y) represents the center point and is relative to the parent Shape’s transform. If the Shape has x={100}, a Circle with x={50} will have its center at pixel position 150.TypeScript Interface
packages/fiber/src/types.ts:173-198