SVGEllipse.js revision 09688ec5ffb8b9cf9883a770e2f9ebd60b28888d
/**
* Draws an ellipse
*/
var Y_SVGShape = Y.SVGShape,
Y_SVGEllipse = function(cfg)
{
};
/**
* Indicates the type of shape
*
* @property _type
* @readOnly
* @type String
*/
_type: "ellipse",
/**
* Updates the shape.
*
* @method _draw
* @private
*/
_draw: function()
{
w = this.get("width"),
h = this.get("height"),
x = this.get("x"),
y = this.get("y"),
xRadius = w * 0.5,
yRadius = h * 0.5,
this._fillChangeHandler();
this._strokeChangeHandler();
this._updateTransform();
}
});
/**
* Horizontal radius for the ellipse.
*
* @attribute xRadius
* @type Number
* @readOnly
*/
xRadius: {
{
},
getter: function()
{
if(val)
{
val *= 0.5;
}
return val;
}
},
/**
* Vertical radius for the ellipse.
*
* @attribute yRadius
* @type Number
* @readOnly
*/
yRadius: {
{
},
getter: function()
{
if(val)
{
val *= 0.5;
}
return val;
}
}
});
Y.SVGEllipse = Y_SVGEllipse;