SVGEllipse.js revision 828c58761d90445b8b9d20a82d85dc1479317f71
/**
* Draws an ellipse
*/
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 = SVGEllipse;