CanvasPath.js revision 9eaaa502227248d304ac9170902697d02158c1d9
/**
* The CanvasPath class creates a graphic object with editable
* properties.
*
* @class CanvasPath
* @extends CanvasShape
*/
CanvasPath = function(cfg)
{
};
/**
* Indicates the type of shape
*
* @property _type
* @readOnly
* @type String
*/
_type: "path",
/**
* @private
*/
_addListeners: function() {},
/**
* @private
*/
_draw: function()
{
this._paint();
},
/**
* Completes a drawing operation.
*
* @method end
*/
end: function()
{
this._draw();
}
});
/**
* Indicates the width of the shape
*
* @attribute width
* @type Number
*/
width: {
getter: function()
{
return this._width;
},
{
return val;
}
},
/**
* Indicates the height of the shape
*
* @attribute height
* @type Number
*/
height: {
getter: function()
{
return this._height;
},
{
return val;
}
},
/**
* Indicates the path used for the node.
*
* @attribute path
* @type String
*/
path: {
getter: function()
{
return this._path;
},
{
return val;
}
}
});
Y.CanvasPath = CanvasPath;