CanvasPath.js revision e7c7565d9550eaa87043aef0df77125ada996dea
/**
* 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
*/
_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: {
readOnly: true,
getter: function()
{
return this._path;
}
}
});
Y.CanvasPath = CanvasPath;