SVGPath.js revision 9eaaa502227248d304ac9170902697d02158c1d9
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * The SVGPath class creates a shape through the use of drawing methods.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @class SVGPath
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @extends SVGShape
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp SVGPath.superclass.constructor.apply(this, arguments);
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * Left edge of the path
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * Right edge of the path
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * Top edge of the path
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * Bottom edge of the path
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * Indicates the type of shape
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @property _type
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @readOnly
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @type String
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * Draws the path.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @method _draw
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp _draw: function()
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp //Use transform to handle positioning.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp this._transformArgs.translate = [left + tx, top + ty];
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * Applies translate transformation.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @method translate
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @param {Number} x The x-coordinate
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @param {Number} y The y-coordinate
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp translate: function(x, y)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp //do nothing
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * Completes a drawing operation.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @method end
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp end: function()
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * Clears the path.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @method clear
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp clear: function()
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * Returns the bounds for a shape.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @method getBounds
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @return Object
9eaaa502227248d304ac9170902697d02158c1d9Tripp * Path string of the shape
9eaaa502227248d304ac9170902697d02158c1d9Tripp * @attribute path
9eaaa502227248d304ac9170902697d02158c1d9Tripp * @type String
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp getter: function()
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp return this._path;
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * Indicates the height of the shape
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @attribute height
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @type Number
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp getter: function()
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * Indicates the height of the shape
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @attribute height
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @type Number
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp getter: function()