Utilização

Draw a vector circle

Este tipo é usado por Circle

tsx
import { Drawing, Circle } from 'kuito';

export function Example() {
  return (
    <Drawing viewBox={[0, 0, 100, 100]} width={120} height={120} label="Vector example">
      <Circle cx={50} cy={50} r={35} fill="#2563eb" />
    </Drawing>
  );
}

Declaração do tipo

ts
export interface CircleProps extends ShapePaint {
  cx?: number;
  cy?: number;
  r: number;
}

Membros 17

NomeTipoObrigatórioDescrição
cxnumberNão—
cynumberNão—
rnumberSim—
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.