Utilização

Draw an ellipse.

Este tipo é usado por Ellipse

tsx
// 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

ts
export interface EllipseProps extends ShapePaint {
  cx?: number;
  cy?: number;
  rx: number;
  ry: number;
}

Membros 18

NomeTipoObrigatórioDescrição
cxnumberNão—
cynumberNão—
rxnumberSim—
rynumberSim—
fillstringNãoA hex color, or none; black by default.
fillRuleFillRuleNão—
strokestringNãoA hex color, or none, the default.
strokeWidthnumberNãoIn user units; 1 by default.
strokeLinecapStrokeLinecapNão—
strokeLinejoinStrokeLinejoinNão—
strokeMiterlimitnumberNão—
strokeDasharrayreadonly number[]NãoDash and gap lengths in user units, repeated.
strokeDashoffsetnumberNão—
opacitynumberNãoMultiplies with its Groups' opacity.
translateXnumberNãoIn user units, then rotate in degrees and scale, about the origin.
translateYnumberNão—
scalenumberNão—
rotatenumberNã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.