ShapeContainerMixin.createGroup
Creates a new group containing the specified shapes
ShapeContainerMixin.createGroup() method
Creates a new group containing the specified shapes
Signature:
createGroup(opts?: GroupOptions): Group;Parameters
Parameter | Type | Description |
|---|---|---|
opts | (Optional) Optional configuration for creating a group |
Returns:
The newly created group
Example
// Create a group containing two shapes
const group = await layer.createGroup({ shapes: [shape1, shape2] });
// Create an empty group
const emptyGroup = await layer.createGroup();Last updated: August 5, 2026 at 11:47 AMEdit this page