Constructor
new Ellipse(geoJSON)
The `Ellipse` class represents an ellipse annotation item. It inherits from the `AnnotationItem` class and provides methods to work with ellipse annotations.
Parameters:
Name | Type | Description |
---|---|---|
geoJSON |
Object | The GeoJSON object containing annotation data. |
Properties:
Name | Type | Description |
---|---|---|
_paperItem |
paper.CompoundPath | The associated paper item representing the ellipse. |
- Source:
Throws:
-
Throws an error if the GeoJSON type or subtype is invalid.
- Type
- string
Extends
- AnnotationItem
Methods
getCoordinates() → {Array}
This method returns an array of coordinates representing the position of the center of the ellipse.
- Source:
Returns:
An array containing the x and y coordinates of the center.
- Type
- Array
getGeoJSONType() → {Object}
Get the type of this object.
- Source:
Returns:
with fields `type === 'Point'` and `subtype === 'Ellipse'`
- Type
- Object
getProperties() → {Object}
This method returns the properties associated with the ellipse.
- Source:
Returns:
The properties object.
- Type
- Object
(static) onTransform(…operation)
This static method handles transformation operations on the ellipse item, such as rotation.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
operation |
string |
<repeatable> |
The transformation operation. |
- Source:
(static) supportsGeoJSONType(type, subtypeopt) → {Boolean}
Retrieves the supported types by the Ellipse annotation item.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
type |
String | ||
subtype |
String |
<optional> |
- Source:
Returns:
Whether this constructor supports the requested type/subtype
- Type
- Boolean