(private) new xrx.shape.PolygonCreatable(polygon)
A class representing a creatable polygon shape.
Parameters:
Name | Type | Description |
---|---|---|
polygon |
xrx.shape.Polygon | A styled polygon to be drawn. |
Members
-
(private) xrx.shape.PolygonCreatable#close_ :xrx.shape.Dragger
-
The first vertex created by the user, which at the same time closes the polygon when clicked.
Type:
-
(private) xrx.shape.PolygonCreatable#count_ :number
-
Number of vertexes the user has created so far.
Type:
- number
Methods
-
xrx.shape.PolygonCreatable#disposeInternal()
-
Disposes this creatable polygon shape.
-
(private) xrx.shape.PolygonCreatable#getCoords()
-
Returns the coordinates of the poly-line currently creating a polygon.
Returns:
ArrayThe coordinates. -
(private) xrx.shape.PolygonCreatable#handleDown()
-
(private) xrx.shape.PolygonCreatable#handleMove()
-
(private) xrx.shape.PolygonCreatable#handleUp()