Polygon
-
class
Markup.Shapes.
Polygon
() This class represents a shape bounded by the polyline formed from its points.
Constructors
Methods
Methods
getFillColor
-
Polygon.
getFillColor
() Gets the fill color for this shape
Returns: the fill color Return type: Color
getFillOpacity
-
Polygon.
getFillOpacity
() Gets the fill opacity for this shape
Returns: the fill opacity Return type: number
getPoints
-
Polygon.
getPoints
() Gets the points in this polyline
Returns: the points in this polygon Return type: [Point2]
getStrokeColor
-
Polygon.
getStrokeColor
() Gets the stroke color for this shape
Returns: the stroke color Return type: Color
getStrokeWidth
-
Polygon.
getStrokeWidth
() Gets the stroke width for this shape in pixels
Returns: the stroke width in pixels Return type: number
pushPoint
setFillColor
setFillOpacity
-
Polygon.
setFillOpacity
(fillOpacity) Arguments: - fillOpacity (
number()
) – the fill opacity
Sets the fill opacity for this shape
Return type: void - fillOpacity (