(private) new xrx.svg.Stylable(element)
SVG class representing a stylable element.
Parameters:
Name | Type | Description |
---|---|---|
element |
SVGElement | An SVG element. |
Extends
Members
-
xrx.svg.Stylable#element_ :SVGElement
-
The SVG element.
Type:
- SVGElement
- Inherited From:
- Source:
Methods
-
xrx.svg.Stylable#getElement() → {SVGElement}
-
Returns the SVG element.
- Inherited From:
- Source:
Returns:
The SVG element.- Type
- SVGElement
-
xrx.svg.Stylable#setFillColor(color)
-
Sets the fill color of the stylable element.
Parameters:
Name Type Description color
string The fill color. -
xrx.svg.Stylable#setFillOpacity(factor)
-
Sets the fill opacity of the stylable element.
Parameters:
Name Type Description factor
number The fill opacity. -
xrx.svg.Stylable#setStrokeColor(color)
-
Sets the stroke color of the stylable element.
Parameters:
Name Type Description color
string The stroke color. -
xrx.svg.Stylable#setStrokeWidth(width)
-
Sets the stroke width of the stylable element.
Parameters:
Name Type Description width
number The stroke width. -
(private) xrx.svg.Stylable#strokeAndFill_()