GroupProps
Props of Group: the paint and transform its shapes share, and the shapes.
Utilização
Transform several drawing shapes together.
Este tipo é usado por Group
// Transform several drawing shapes together.
import { Circle, Drawing, Group } from 'kuito';
<Drawing label="Three dots" viewBox={[0, 0, 30, 10]} width={60} height={20}>
<Group fill="#8a8a96" translateX={5} translateY={5}>
<Circle r={3} />
<Circle cx={10} r={3} />
<Circle cx={20} r={3} />
</Group>
</Drawing>;Declaração do tipo
export interface GroupProps extends ShapePaint {
children?: KuitoNode;
}Membros 15
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
children | KuitoNode | Não | — |
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.