CanvasPath.js revision 04f886d0ad2a12c3c0e4ec29a1c42e8732e9327f
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> implementation of the <a href="Path.html">`Path`</a> class.
661bfa5aae55ac2f94fa1cb131ea2323e5f6e633vboxsync * `CanvasPath` is not intended to be used directly. Instead, use the <a href="Path.html">`Path`</a> class.
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * If the browser lacks <a href="http://www.w3.org/TR/SVG/">SVG</a> capabilities but has
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> capabilities, the <a href="Path.html">`Path`</a>
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * class will point to the `CanvasPath` class.
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * @module graphics
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * @class CanvasPath
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * @extends CanvasShape
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync CanvasPath.superclass.constructor.apply(this, arguments);
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * Indicates the type of shape
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * @property _type
661bfa5aae55ac2f94fa1cb131ea2323e5f6e633vboxsync * @type String
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * Draws the shape.
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * @method _draw
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * Creates the dom node for the shape.
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * @method createNode
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @return HTMLElement
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync this.addClass("yui3-" + SHAPE + " yui3-" + this.name);
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Completes a drawing operation.
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * @method end
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync end: function()
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Indicates the width of the shape
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * @config width
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @type Number
c66c4413faa5a72ce047742f9acfa85e94dec8afvboxsync var offset = this._stroke && this._strokeWeight ? (this._strokeWeight * 2) : 0;
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Indicates the height of the shape
0c94a8282c9042b02f022302a3d987746140eab9vboxsync * @config height
0c94a8282c9042b02f022302a3d987746140eab9vboxsync * @type Number
0c94a8282c9042b02f022302a3d987746140eab9vboxsync var offset = this._stroke && this._strokeWeight ? (this._strokeWeight * 2) : 0;
0c94a8282c9042b02f022302a3d987746140eab9vboxsync * Indicates the path used for the node.
0c94a8282c9042b02f022302a3d987746140eab9vboxsync * @config path
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @type String
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @readOnly
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync return this._path;