(private) new xrx.vml.Polygon(The)
VML class representing a polygon.
Parameters:
| Name | Type | Description |
|---|---|---|
The |
HTMLElement | HTML element. |
Extends
Members
-
xrx.vml.Polygon#element_
-
- Inherited From:
- Source:
Methods
-
(static) xrx.vml.Polygon.create(canvas)
-
Creates a new polygon.
Parameters:
Name Type Description canvasxrx.vml.Canvas The parent canvas object. -
xrx.vml.Polygon#draw(coords, fillColor, fillOpacity, strokeColor, strokeWidth)
-
Draws the polygon.
Parameters:
Name Type Description coordsArray.<number> The polygon's coordinates. fillColorstring The fill color. fillOpacitynumber Opacity of the fill color. strokeColorstring The stroke color. strokeWidthnumber The stroke width. -
xrx.vml.Polygon#getElement() → {HTMLElement}
-
Returns the HTML element held by the Raphael object.
- Inherited From:
- Source:
Returns:
The HTML element.- Type
- HTMLElement
-
xrx.vml.Polygon#setCoords(coords)
-
Sets the coordinates for the polygon.
Parameters:
Name Type Description coordsArray.<number> The coordinates. -
xrx.vml.Polygon#setFillColor(color)
-
Sets the fill color of the stylable element.
Parameters:
Name Type Description colorstring The fill color. - Inherited From:
- Source:
-
xrx.vml.Polygon#setFillOpacity(factor)
-
Sets the fill opacity of the stylable element.
Parameters:
Name Type Description factornumber The fill opacity. - Inherited From:
- Source:
-
xrx.vml.Polygon#setStrokeColor(color)
-
Sets the stroke color of the stylable element.
Parameters:
Name Type Description colorstring The stroke color. - Inherited From:
- Source:
-
xrx.vml.Polygon#setStrokeWidth(width)
-
Sets the stroke width of the stylable element.
Parameters:
Name Type Description widthnumber The stroke width. - Inherited From:
- Source:
-
(private) xrx.vml.Polygon#strokeAndFill_()
-
- Inherited From:
- Source: