PolygonProps
Props of Polygon: the [x, y] points it closes, and paint.
Utilização
Draw a closed shape.
Este tipo é usado por Polygon
// 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
export interface PolygonProps extends PolylineProps {}Membros 15
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
points | readonly (readonly [number, 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.