Class: xrx.shape.PolygonCreatable

xrx.shape. PolygonCreatable

(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.
Source:

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:
Source:

(private) xrx.shape.PolygonCreatable#count_ :number

Number of vertexes the user has created so far.
Type:
  • number
Source:

Methods

xrx.shape.PolygonCreatable#disposeInternal()

Disposes this creatable polygon shape.
Source:

(private) xrx.shape.PolygonCreatable#getCoords()

Returns the coordinates of the poly-line currently creating a polygon.
Source:
Returns:
Array The coordinates.

(private) xrx.shape.PolygonCreatable#handleDown()

Source:

(private) xrx.shape.PolygonCreatable#handleMove()

Source:

(private) xrx.shape.PolygonCreatable#handleUp()

Source: