Ellipse
La traduction de cette page manque ou n'est plus à jour : elle s'affiche en anglais. Lire en anglais
Draw an ellipse. Use it for oval markers and illustrations.
Draw a vector ellipse
import { Drawing, Ellipse } from 'kuito';
export function Example() {
return (
<Drawing viewBox={[0, 0, 100, 100]} width={120} height={120} label="Vector example">
<Ellipse cx={50} cy={50} rx={40} ry={25} fill="#2563eb" />
</Drawing>
);
}Behavior
Place this shape inside Drawing. Coordinates use its viewBox, not screen points. Fill and stroke control paint. Shapes are drawing instructions rather than independently accessible native views.
Continue
Read Drawing for a complete workflow. See the complete prop reference for types and documented defaults.
Référence
Signatures
Props: EllipseProps
Props (props héritées incluses) 18
| Nom | Type | Requis | Description |
|---|---|---|---|
cx | number | Non | — |
cy | number | Non | — |
rx | number | Oui | — |
ry | number | Oui | — |
fill | string | Non | A hex color, or none; black by default. |
fillRule | FillRule | Non | — |
stroke | string | Non | A hex color, or none, the default. |
strokeWidth | number | Non | In user units; 1 by default. |
strokeLinecap | StrokeLinecap | Non | — |
strokeLinejoin | StrokeLinejoin | Non | — |
strokeMiterlimit | number | Non | — |
strokeDasharray | readonly number[] | Non | Dash and gap lengths in user units, repeated. |
strokeDashoffset | number | Non | — |
opacity | number | Non | Multiplies with its Groups' opacity. |
translateX | number | Non | In user units, then rotate in degrees and scale, about the origin. |
translateY | number | Non | — |
scale | number | Non | — |
rotate | number | Non | — |
Généré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.