Usage

Transform several drawing shapes together.

This type is used by Group

tsx
// 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>;

Type declaration

ts
export interface GroupProps extends ShapePaint {
  children?: KuitoNode;
}

Members 15

NameTypeRequiredDescription
childrenKuitoNodeNo—
fillstringNoA hex color, or none; black by default.
fillRuleFillRuleNo—
strokestringNoA hex color, or none, the default.
strokeWidthnumberNoIn user units; 1 by default.
strokeLinecapStrokeLinecapNo—
strokeLinejoinStrokeLinejoinNo—
strokeMiterlimitnumberNo—
strokeDasharrayreadonly number[]NoDash and gap lengths in user units, repeated.
strokeDashoffsetnumberNo—
opacitynumberNoMultiplies with its Groups' opacity.
translateXnumberNoIn user units, then rotate in degrees and scale, about the origin.
translateYnumberNo—
scalenumberNo—
rotatenumberNo—
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.