(private) new xrx.svg.Ellipse(element)
SVG rendering class representing an ellipse.
Parameters:
| Name | Type | Description |
|---|---|---|
element |
SVGEllipseElement | The SVG ellipse element. |
Extends
Members
-
xrx.svg.Ellipse#element_ :SVGElement
-
The SVG element.
Type:
- SVGElement
- Inherited From:
- Source:
Methods
-
(static) xrx.svg.Ellipse.create()
-
Creates a new circle.
-
xrx.svg.Ellipse#draw(cx, cy, rx, ry, fillColor, fillOpacity, strokeColor, strokeWidth)
-
Draws this ellipse on the canvas.
Parameters:
Name Type Description cxnumber X-coordinate of the ellipse's center point. cynumber Y-coordinate of the ellipse's center point. rxnumber Major-radius of the ellipse. rynumber Minor-radius of the ellipse. fillColorstring The fill color. fillOpacitynumber Opacity of the fill color. strokeColorstring The stroke color. strokeWidthnumber The stroke width. -
xrx.svg.Ellipse#getElement() → {SVGElement}
-
Returns the SVG element.
- Inherited From:
- Source:
Returns:
The SVG element.- Type
- SVGElement
-
xrx.svg.Ellipse#setCenter(cx, cy)
-
Sets the center point of this ellipse.
Parameters:
Name Type Description cxnumber The X coordinate of the center point. cynumber The Y coordinate of the center point. -
xrx.svg.Ellipse#setFillColor(color)
-
Sets the fill color of the stylable element.
Parameters:
Name Type Description colorstring The fill color. - Inherited From:
- Source:
-
xrx.svg.Ellipse#setFillOpacity(factor)
-
Sets the fill opacity of the stylable element.
Parameters:
Name Type Description factornumber The fill opacity. - Inherited From:
- Source:
-
xrx.svg.Ellipse#setRadiusX(rx)
-
Sets the ellipse's major-axis radius.
Parameters:
Name Type Description rxnumber The major-axis radius. -
xrx.svg.Ellipse#setRadiusY(ry)
-
Sets the ellipse's minor-axis radius.
Parameters:
Name Type Description rynumber The minor-axis radius. -
xrx.svg.Ellipse#setStrokeColor(color)
-
Sets the stroke color of the stylable element.
Parameters:
Name Type Description colorstring The stroke color. - Inherited From:
- Source:
-
xrx.svg.Ellipse#setStrokeWidth(width)
-
Sets the stroke width of the stylable element.
Parameters:
Name Type Description widthnumber The stroke width. - Inherited From:
- Source:
-
(private) xrx.svg.Ellipse#strokeAndFill_()
-
- Inherited From:
- Source: