Group
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
append | ||||||
---|---|---|---|---|---|---|
Appends the specified element as a last child of the group. | ||||||
|
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 | ||||
---|---|---|---|---|
Gets the clipping path for this element. | ||||
|
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. Example View Source Change Theme: The following example demonstrates how to clear a clipping path. Example View Source Change Theme: | ||||||
|
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. Example View Source Change Theme: | ||||||
|
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. Example View Source Change Theme: | ||||||
|
visible | ||||
---|---|---|---|---|
Gets the visibility of the element. | ||||
|
visible | ||||||
---|---|---|---|---|---|---|
Sets the visibility of the element. Example View Source Change Theme: | ||||||
|