VMLEllipse.js revision 0fdefaa9ca017edfb76b736c825b34186f33045a
/**
* <a href="http://www.w3.org/TR/NOTE-VML">VML</a> implementation of the <a href="Ellipse.html">`Ellipse`</a> class.
* `VMLEllipse` 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> and <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 `VMLEllipse` class.
*
* @class VMLEllipse
* @constructor
*/
VMLEllipse = function()
{
};
/**
* Indicates the type of shape
*
* @property _type
* @readOnly
* @type String
*/
_type: "oval"
});
/**
* Horizontal radius for the ellipse.
*
* @config xRadius
* @type Number
*/
xRadius: {
lazyAdd: false,
getter: function()
{
return val;
},
{
var w = val * 2;
this.set("width", w);
return val;
}
},
/**
* Vertical radius for the ellipse.
*
* @config yRadius
* @type Number
*/
yRadius: {
lazyAdd: false,
getter: function()
{
return val;
},
{
var h = val * 2;
this.set("height", h);
return val;
}
}
});
Y.VMLEllipse = VMLEllipse;