(private) new xrx.svg.Polyline(element)
SVG class representing a poly-line.
Parameters:
Name | Type | Description |
---|---|---|
element |
SVGPolylineElement | The SVG polyline element. |
Extends
Members
-
xrx.svg.Polyline#element_ :SVGElement
-
The SVG element.
Type:
- SVGElement
- Inherited From:
- Source:
Methods
-
(static) xrx.svg.Polyline.create()
-
Creates a new poly-line.
-
xrx.svg.Polyline#draw(coords, fillColor, fillOpacity, strokeColor, strokeWidth)
-
Draws the poly-line.
Parameters:
Name Type Description coords
Array.<number> The coordinates of the poly-line. fillColor
string The fill color. fillOpacity
number Opacity of the fill color. strokeColor
string The stroke color. strokeWidth
number The stroke width. -
xrx.svg.Polyline#getElement() → {SVGElement}
-
Returns the SVG element.
- Inherited From:
- Source:
Returns:
The SVG element.- Type
- SVGElement
-
xrx.svg.Polyline#setCoords(coords)
-
Sets the coordinates for the poly-line.
Parameters:
Name Type Description coords
Array.<number> The coordinates. -
xrx.svg.Polyline#setFillColor(color)
-
Sets the fill color of the stylable element.
Parameters:
Name Type Description color
string The fill color. - Inherited From:
- Source:
-
xrx.svg.Polyline#setFillOpacity(factor)
-
Sets the fill opacity of the stylable element.
Parameters:
Name Type Description factor
number The fill opacity. - Inherited From:
- Source:
-
xrx.svg.Polyline#setStrokeColor(color)
-
Sets the stroke color of the stylable element.
Parameters:
Name Type Description color
string The stroke color. - Inherited From:
- Source:
-
xrx.svg.Polyline#setStrokeWidth(width)
-
Sets the stroke width of the stylable element.
Parameters:
Name Type Description width
number The stroke width. - Inherited From:
- Source:
-
(private) xrx.svg.Polyline#strokeAndFill_()
-
- Inherited From:
- Source: