GroupProps
Props of Group: the paint and transform its shapes share, and the shapes.
Utilisation
Transform several drawing shapes together.
Ce type est utilisé par 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>;Déclaration du type
export interface GroupProps extends ShapePaint {
children?: KuitoNode;
}Membres 15
| Nom | Type | Requis | Description |
|---|---|---|---|
children | KuitoNode | Non | — |
fill | string | Non | A hex color, or none; black by default. |
fillRule | FillRule | Non | — |
stroke | string | Non | A hex color, or none, the default. |
strokeWidth | number | Non | In user units; 1 by default. |
strokeLinecap | StrokeLinecap | Non | — |
strokeLinejoin | StrokeLinejoin | Non | — |
strokeMiterlimit | number | Non | — |
strokeDasharray | readonly number[] | Non | Dash and gap lengths in user units, repeated. |
strokeDashoffset | number | Non | — |
opacity | number | Non | Multiplies with its Groups' opacity. |
translateX | number | Non | In user units, then rotate in degrees and scale, about the origin. |
translateY | number | Non | — |
scale | number | Non | — |
rotate | number | Non | — |
Généré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.