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 191 -
-
getAngle(){number}
style/RegularShape.js, line 200 -
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 224 -
-
getOrigin()
style/RegularShape.js, line 253 -
-
getPoints(){number}
style/RegularShape.js, line 262 -
Get the number of points for generating the shape.
Returns:
Number of points for stars and regular polygons.
-
getRadius(){number}
style/RegularShape.js, line 271 -
Get the (primary) radius for the shape.
Returns:
Radius.
-
getRadius2(){number|undefined}
style/RegularShape.js, line 280 -
Get the secondary radius for the shape.
Returns:
Radius2.
-
getSize()
style/RegularShape.js, line 288 -
-
Get the stroke style for the shape.
Returns:
Stroke style.