new RegularShape(options)
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
Methods
-
Clones the style. If an atlasmanager was provided to the original style it will be used in the cloned style, too.
Returns:
The cloned style.
-
getAnchor()
style/RegularShape.js, line 203 -
-
getAngle(){number}
style/RegularShape.js, line 212 -
Get the angle used in generating the shape.
Returns:
Shape's rotation in radians.
-
Get the fill style for the shape.
Returns:
Fill style.
-
getImage()
style/RegularShape.js, line 236 -
-
getOrigin()
style/RegularShape.js, line 265 -
-
getPoints(){number}
style/RegularShape.js, line 274 -
Get the number of points for generating the shape.
Returns:
Number of points for stars and regular polygons.
-
getRadius(){number}
style/RegularShape.js, line 283 -
Get the (primary) radius for the shape.
Returns:
Radius.
-
getRadius2(){number|undefined}
style/RegularShape.js, line 292 -
Get the secondary radius for the shape.
Returns:
Radius2.
-
getSize()
style/RegularShape.js, line 300 -
-
Get the stroke style for the shape.
Returns:
Stroke style.