EllipseProps
Props of Ellipse: its center and radii in user units, and paint.
Utilização
Draw an ellipse.
Este tipo é usado por Ellipse
// Draw an ellipse.
import { Drawing, Ellipse } from 'kuito';
<Drawing label="Shadow" viewBox={[0, 0, 40, 20]} width={80} height={40}>
<Ellipse cx={20} cy={10} rx={18} ry={6} fill="#00000033" />
</Drawing>;Declaração do tipo
export interface EllipseProps extends ShapePaint {
cx?: number;
cy?: number;
rx: number;
ry: number;
}Membros 18
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
cx | number | Não | — |
cy | number | Não | — |
rx | number | Sim | — |
ry | number | Sim | — |
fill | string | Não | A hex color, or none; black by default. |
fillRule | FillRule | Não | — |
stroke | string | Não | A hex color, or none, the default. |
strokeWidth | number | Não | In user units; 1 by default. |
strokeLinecap | StrokeLinecap | Não | — |
strokeLinejoin | StrokeLinejoin | Não | — |
strokeMiterlimit | number | Não | — |
strokeDasharray | readonly number[] | Não | Dash and gap lengths in user units, repeated. |
strokeDashoffset | number | Não | — |
opacity | number | Não | Multiplies with its Groups' opacity. |
translateX | number | Não | In user units, then rotate in degrees and scale, about the origin. |
translateY | number | Não | — |
scale | number | Não | — |
rotate | number | Não | — |
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.