/**
* <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> implementation of the <a href="Ellipse.html">`Ellipse`</a> class.
* `CanvasEllipse` is not intended to be used directly. Instead, use the <a href="Ellipse.html">`Ellipse`</a> class.
* If the browser lacks <a href="http://www.w3.org/TR/SVG/">SVG</a> capabilities but has
* <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> capabilities, the <a href="Ellipse.html">`Ellipse`</a>
* class will point to the `CanvasEllipse` class.
*
* @module graphics
* @class CanvasEllipse
* @constructor
*/
CanvasEllipse = function(cfg)
{
CanvasEllipse.superclass.constructor.apply(this, arguments);
};
CanvasEllipse.NAME = "canvasEllipse";
Y.extend(CanvasEllipse, CanvasShape, {
/**
* Indicates the type of shape
*
* @property _type
* @type String
* @private
*/
_type: "ellipse",
/**
* Draws the shape.
*
* @method _draw
* @private
*/
_draw: function()
{
var w = this.get("width"),
h = this.get("height");
this.clear();
this.drawEllipse(0, 0, w, h);
this._closePath();
}
});
CanvasEllipse.ATTRS = CanvasShape.ATTRS;
Y.CanvasEllipse = CanvasEllipse;