Utilização

Draw a closed shape.

Este tipo é usado por Polygon

tsx
// Draw a closed shape.
import { Drawing, Polygon } from 'kuito';

<Drawing label="Play" viewBox={[0, 0, 24, 24]} width={24} height={24}>
  <Polygon
    points={[
      [7, 4],
      [20, 12],
      [7, 20],
    ]}
    fill="#111827"
    strokeLinejoin="round"
  />
</Drawing>;

Declaração do tipo

ts
export interface PolygonProps extends PolylineProps {}

Membros 15

NomeTipoObrigatórioDescrição
pointsreadonly (readonly [number, number])[]Sim—
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.