diff --git a/src/pixi/extras/Rope.js b/src/pixi/extras/Rope.js index c51b725..f4b0852 100644 --- a/src/pixi/extras/Rope.js +++ b/src/pixi/extras/Rope.js @@ -5,6 +5,7 @@ * * @class Rope * @constructor + * @extends Strip * @param texture {Texture} The texture to use * @param points {Array} * diff --git a/src/pixi/extras/Rope.js b/src/pixi/extras/Rope.js index c51b725..f4b0852 100644 --- a/src/pixi/extras/Rope.js +++ b/src/pixi/extras/Rope.js @@ -5,6 +5,7 @@ * * @class Rope * @constructor + * @extends Strip * @param texture {Texture} The texture to use * @param points {Array} * diff --git a/src/pixi/extras/Strip.js b/src/pixi/extras/Strip.js index 0ef5799..ad6d27d 100644 --- a/src/pixi/extras/Strip.js +++ b/src/pixi/extras/Strip.js @@ -16,6 +16,13 @@ { PIXI.DisplayObjectContainer.call( this ); + + /** + * The texture of the strip + * + * @property texture + * @type Texture + */ this.texture = texture; // set up the main bits.. @@ -33,8 +40,24 @@ this.indices = new PIXI.Uint16Array([0, 1, 2, 3]); - + /** + * Whether the strip is dirty or not + * + * @property dirty + * @type Boolean + */ this.dirty = true; + + + /** + * if you need a padding, not yet implemented + * + * @property padding + * @type Number + */ + this.padding = 0; + // NYI, TODO padding ? + }; // constructor @@ -184,7 +207,7 @@ var x0 = verticies[index], x1 = verticies[index+2], x2 = verticies[index+4]; var y0 = verticies[index+1], y1 = verticies[index+3], y2 = verticies[index+5]; - if(true) + if(this.padding === 0) { //expand();