Class: xrx.svg.Stylable

xrx.svg. Stylable

(private) new xrx.svg.Stylable(element)

SVG class representing a stylable element.
Parameters:
Name Type Description
element SVGElement An SVG element.
Source:

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

xrx.svg.Stylable#setFillOpacity(factor)

Sets the fill opacity of the stylable element.
Parameters:
Name Type Description
factor number The fill opacity.
Source:

xrx.svg.Stylable#setStrokeColor(color)

Sets the stroke color of the stylable element.
Parameters:
Name Type Description
color string The stroke color.
Source:

xrx.svg.Stylable#setStrokeWidth(width)

Sets the stroke width of the stylable element.
Parameters:
Name Type Description
width number The stroke width.
Source:

(private) xrx.svg.Stylable#strokeAndFill_()

Source: