(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 cxnumber X-coordinate of the circle's center point. cynumber Y-coordinate of the circle's center point. rnumber Radius of the circle. fillColorstring The fill color. fillOpacitynumber Opacity of the fill color. strokeColorstring The stroke color. strokeWidthnumber 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 cxnumber The X coordinate of the centre point. cynumber The Y coordinate of the centre point. -
xrx.svg.Circle#setFillColor(color)
-
Sets the fill color of the stylable element.
Parameters:
Name Type Description colorstring The fill color. - Inherited From:
- Source:
-
xrx.svg.Circle#setFillOpacity(factor)
-
Sets the fill opacity of the stylable element.
Parameters:
Name Type Description factornumber The fill opacity. - Inherited From:
- Source:
-
xrx.svg.Circle#setRadius(r)
-
Sets the radius of the circle.
Parameters:
Name Type Description rnumber The radius. -
xrx.svg.Circle#setStrokeColor(color)
-
Sets the stroke color of the stylable element.
Parameters:
Name Type Description colorstring The stroke color. - Inherited From:
- Source:
-
xrx.svg.Circle#setStrokeWidth(width)
-
Sets the stroke width of the stylable element.
Parameters:
Name Type Description widthnumber The stroke width. - Inherited From:
- Source:
-
(private) xrx.svg.Circle#strokeAndFill_()
-
- Inherited From:
- Source: