Group
Combines Shapes or other Groups into hierarchies that can be transformed as a set.
render() {
return (
<Surface>
<Group x={0} y={0}>
<Shape/>
<Shape/>
</Group>
<Shape/>
</Surface>
)
}
Props
Reference
Props
x
X-coordinate of the group starting from the top-left corner
Type | Required |
---|---|
number | No |
y
X-coordinate of the group starting from the top-left corner
Type | Required |
---|---|
number | No |