GroupPremium
Represents a set of drawing elements, possibly including other groups.
| Name | Type | Default | Description | 
|---|---|---|---|
| children | 
 | The children of this group. | |
| options | 
 | The configuration of this element. | 
Constructors
Group
(options?: GroupOptions)
Creates a new Group instance with the specified options.
Parameters
options?
Configuration options for the group.
Methods
| bbox | ||||
|---|---|---|---|---|
| Returns the bounding box of the element with applied transformations. | ||||
| 
 | 
| className | ||||
|---|---|---|---|---|
| Gets the class attribute of the element. The class will be rendered only for SVG output. | ||||
| 
 | 
| className | ||||||
|---|---|---|---|---|---|---|
| Sets the class attribute of the element. The class will be rendered only for SVG output. | ||||||
| 
 | 
| clear | 
|---|
| Removes all child elements from the group. | 
| clip | ||||||
|---|---|---|---|---|---|---|
| Sets the clipping path for this element. The Path instance will be monitored for changes. Can be replaced by calling the  The following example demonstrates how to set a clipping path on a Circle. Change Theme Theme Loading ... The following example demonstrates how to clear a clipping path. Change Theme Theme Loading ... | ||||||
| 
 | 
| clippedBBox | ||||
|---|---|---|---|---|
| Returns the bounding box of the element with clipping and transformations applied. This is the rectangle that will fit around the actual rendered element. | ||||
| 
 | 
| containsPoint | ||||||
|---|---|---|---|---|---|---|
| Returns  | ||||||
| 
 | ||||||
| 
 | 
| insert | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Inserts an element at the specified position. | |||||||||
| 
 | 
| opacity | ||||
|---|---|---|---|---|
| Gets the element opacity. | ||||
| 
 | 
| opacity | ||||||
|---|---|---|---|---|---|---|
| Sets the opacity of the element. Change Theme Theme Loading ... | ||||||
| 
 | 
| remove | ||||||
|---|---|---|---|---|---|---|
| Removes the specified element from the group. | ||||||
| 
 | 
| removeAt | ||||||
|---|---|---|---|---|---|---|
| Removes the child element at the specified position. | ||||||
| 
 | 
| transform | ||||
|---|---|---|---|---|
| Gets the transformation of the element. | ||||
| 
 | 
| transform | ||||||
|---|---|---|---|---|---|---|
| Sets the transformation of the element. Change Theme Theme Loading ... | ||||||
| 
 | 
| visible | ||||
|---|---|---|---|---|
| Gets the visibility of the element. | ||||
| 
 | 
| visible | ||||||
|---|---|---|---|---|---|---|
| Sets the visibility of the element. Change Theme Theme Loading ... | ||||||
| 
 |