VMLPath.js revision 4f117ca9be1d1a5a285b20cac401d1c2ee340c5b
/**
* The VMLPath class creates a graphic object with editable
* properties.
*
* @class VMLPath
* @extends VMLShape
*/
VMLPath = function()
{
VMLPath.superclass.constructor.apply(this, arguments);
};
VMLPath.NAME = "vmlPath";
Y.extend(VMLPath, Y.VMLShape, Y.merge(Y.VMLDrawing.prototype, {
/**
* @private
*/
_draw: function()
{
var host = this;
host._fillChangeHandler();
host._strokeChangeHandler();
host._updateTransform();
}
}));
VMLPath.ATTRS = Y.merge(Y.VMLShape.ATTRS, {
/**
* Indicates the width of the shape
*
* @attribute width
* @type Number
*/
width: {
getter: function()
{
return this._width;
},
setter: function(val)
{
this._width = val;
return val;
}
},
/**
* Indicates the height of the shape
*
* @attribute height
* @type Number
*/
height: {
getter: function()
{
return this._height;
},
setter: function(val)
{
this._height = val;
return val;
}
},
/**
* Indicates the path used for the node.
*
* @attribute path
* @type String
*/
path: {
readOnly: true,
getter: function()
{
return this._path;
}
}
});
Y.VMLPath = VMLPath;