Circle
A circle shape.
Name | Type | Default | Description |
---|---|---|---|
options |
|
The configuration of this element. |
Constructors
Circle
(geometry: Circle, options?: ShapeOptions)
Creates a new Circle instance with the specified configuration.
Parameters
geometry
The geometric object that defines the circle center and radius.
options?
The configuration options.
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. | ||||||
|
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 | ||||||
| ||||||
|
fill | |||||||||
---|---|---|---|---|---|---|---|---|---|
Sets the fill of the Shape (see the basic usage example). | |||||||||
| |||||||||
|
geometry | ||||
---|---|---|---|---|
Gets the geometry of the circle. | ||||
|
geometry | ||||||
---|---|---|---|---|---|---|
Sets the geometry of the circle. | ||||||
|
opacity | ||||
---|---|---|---|---|
Gets the element opacity. | ||||
|
opacity | ||||||
---|---|---|---|---|---|---|
Sets the opacity of the element. Example View Source Change Theme: | ||||||
|
stroke | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Sets the stroke of the Shape. | ||||||||||||
| ||||||||||||
|
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: | ||||||
|