(private) new xrx.svg.Circle(element)
SVG rendering class representing a circle.
Parameters:
Name | Type | Description |
---|---|---|
element |
SVGCircleElement | The SVG circle element. |
Extends
Members
-
xrx.svg.Circle#element_ :SVGElement
-
The SVG element.
Type:
- SVGElement
- Inherited From:
- Source:
Methods
-
(static) xrx.svg.Circle.create()
-
Creates a new circle.
-
xrx.svg.Circle#draw(cx, cy, r, fillColor, fillOpacity, strokeColor, strokeWidth)
-
Draws the circle on the canvas.
Parameters:
Name Type Description cx
number X-coordinate of the circle's center point. cy
number Y-coordinate of the circle's center point. r
number Radius of the circle. fillColor
string The fill color. fillOpacity
number Opacity of the fill color. strokeColor
string The stroke color. strokeWidth
number The stroke width. -
xrx.svg.Circle#getElement() → {SVGElement}
-
Returns the SVG element.
- Inherited From:
- Source:
Returns:
The SVG element.- Type
- SVGElement
-
xrx.svg.Circle#setCenter(cx, cy)
-
Sets the centre point of a circle.
Parameters:
Name Type Description cx
number The X coordinate of the centre point. cy
number The Y coordinate of the centre point. -
xrx.svg.Circle#setFillColor(color)
-
Sets the fill color of the stylable element.
Parameters:
Name Type Description color
string The fill color. - Inherited From:
- Source:
-
xrx.svg.Circle#setFillOpacity(factor)
-
Sets the fill opacity of the stylable element.
Parameters:
Name Type Description factor
number The fill opacity. - Inherited From:
- Source:
-
xrx.svg.Circle#setRadius(r)
-
Sets the radius of the circle.
Parameters:
Name Type Description r
number The radius. -
xrx.svg.Circle#setStrokeColor(color)
-
Sets the stroke color of the stylable element.
Parameters:
Name Type Description color
string The stroke color. - Inherited From:
- Source:
-
xrx.svg.Circle#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.Circle#strokeAndFill_()
-
- Inherited From:
- Source: