Fixed graphics bug + updated docs

Fixed issue with getBounds being incorrect for graphics
Updated docs
Linted code
This commit is contained in:
Mat Groves 2014-01-01 23:54:45 +00:00
parent 53506da65e
commit 7713731ab3
145 changed files with 15583 additions and 24078 deletions

View file

@ -19,7 +19,7 @@
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.3.0</em>
<em>API Docs for: 1.4.0</em>
</div>
</div>
<div id="bd" class="yui3-g">
@ -45,6 +45,8 @@
<li><a href="../classes/AssetLoader.html">AssetLoader</a></li>
<li><a href="../classes/AtlasLoader.html">AtlasLoader</a></li>
<li><a href="../classes/BaseTexture.html">BaseTexture</a></li>
<li><a href="../classes/BitmapFontLoader.html">BitmapFontLoader</a></li>
@ -61,7 +63,7 @@
<li><a href="../classes/ColorMatrixFilter.html">ColorMatrixFilter</a></li>
<li><a href="../classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="../classes/ColorStepFilter.html">ColorStepFilter</a></li>
<li><a href="../classes/DisplacementFilter.html">DisplacementFilter</a></li>
@ -75,7 +77,7 @@
<li><a href="../classes/Graphics.html">Graphics</a></li>
<li><a href="../classes/GreyFilter.html">GreyFilter</a></li>
<li><a href="../classes/GrayFilter.html">GrayFilter</a></li>
<li><a href="../classes/ImageLoader.html">ImageLoader</a></li>
@ -87,6 +89,8 @@
<li><a href="../classes/PixelateFilter.html">PixelateFilter</a></li>
<li><a href="../classes/PIXI.PixiShader.html">PIXI.PixiShader</a></li>
<li><a href="../classes/Point.html">Point</a></li>
<li><a href="../classes/Polygon.html">Polygon</a></li>
@ -109,10 +113,10 @@
<li><a href="../classes/Spine.html">Spine</a></li>
<li><a href="../classes/Sprite.html">Sprite</a></li>
<li><a href="../classes/SpriteSheetLoader.html">SpriteSheetLoader</a></li>
<li><a href="../classes/Sprite™.html">Sprite™</a></li>
<li><a href="../classes/Stage.html">Stage</a></li>
<li><a href="../classes/Text.html">Text</a></li>
@ -121,8 +125,6 @@
<li><a href="../classes/TilingSprite.html">TilingSprite</a></li>
<li><a href="../classes/WebGLBatch.html">WebGLBatch</a></li>
<li><a href="../classes/WebGLRenderer.html">WebGLRenderer</a></li>
</ul>
@ -200,12 +202,12 @@
<div class="box intro">
<p>The sprite sheet loader is used to load in JSON sprite sheet data
To generate the data you can use <a href="http://www.codeandweb.com/texturepacker">http://www.codeandweb.com/texturepacker</a> and publish the &quot;JSON&quot; format
To generate the data you can use <a href="http://www.codeandweb.com/texturepacker">http://www.codeandweb.com/texturepacker</a> and publish the &#39;JSON&#39; format
There is a free version so thats nice, although the paid version is great value for money.
It is highly recommended to use Sprite sheets (also know as texture atlas&quot;) as it means sprite&quot;s can be batched and drawn together for highly increased rendering speed.
It is highly recommended to use Sprite sheets (also know as texture atlas&#39;) as it means sprite&#39;s can be batched and drawn together for highly increased rendering speed.
Once the data has been loaded the frames are stored in the PIXI texture cache and can be accessed though PIXI.Texture.fromFrameId() and PIXI.Sprite.fromFromeId()
This loader will also load the image file that the Spritesheet points to as well as the data.
When loaded this class will dispatch a &quot;loaded&quot; event</p>
When loaded this class will dispatch a &#39;loaded&#39; event</p>
</div>
@ -460,7 +462,7 @@ When loaded this class will dispatch a &quot;loaded&quot; event</p>
<a href="../files/src_pixi_loaders_SpriteSheetLoader.js.html#l74"><code>src&#x2F;pixi&#x2F;loaders&#x2F;SpriteSheetLoader.js:74</code></a>
<a href="../files/src_pixi_loaders_SpriteSheetLoader.js.html#l73"><code>src&#x2F;pixi&#x2F;loaders&#x2F;SpriteSheetLoader.js:73</code></a>
</p>
@ -517,7 +519,7 @@ When loaded this class will dispatch a &quot;loaded&quot; event</p>
<a href="../files/src_pixi_loaders_SpriteSheetLoader.js.html#l89"><code>src&#x2F;pixi&#x2F;loaders&#x2F;SpriteSheetLoader.js:89</code></a>
<a href="../files/src_pixi_loaders_SpriteSheetLoader.js.html#l88"><code>src&#x2F;pixi&#x2F;loaders&#x2F;SpriteSheetLoader.js:88</code></a>
</p>
@ -628,7 +630,7 @@ When loaded this class will dispatch a &quot;loaded&quot; event</p>
<a href="../files/src_pixi_loaders_SpriteSheetLoader.js.html#l45"><code>src&#x2F;pixi&#x2F;loaders&#x2F;SpriteSheetLoader.js:45</code></a>
<a href="../files/src_pixi_loaders_SpriteSheetLoader.js.html#l44"><code>src&#x2F;pixi&#x2F;loaders&#x2F;SpriteSheetLoader.js:44</code></a>
</p>
@ -673,7 +675,7 @@ When loaded this class will dispatch a &quot;loaded&quot; event</p>
<a href="../files/src_pixi_loaders_SpriteSheetLoader.js.html#l37"><code>src&#x2F;pixi&#x2F;loaders&#x2F;SpriteSheetLoader.js:37</code></a>
<a href="../files/src_pixi_loaders_SpriteSheetLoader.js.html#l36"><code>src&#x2F;pixi&#x2F;loaders&#x2F;SpriteSheetLoader.js:36</code></a>
</p>
@ -718,7 +720,7 @@ When loaded this class will dispatch a &quot;loaded&quot; event</p>
<a href="../files/src_pixi_loaders_SpriteSheetLoader.js.html#l62"><code>src&#x2F;pixi&#x2F;loaders&#x2F;SpriteSheetLoader.js:62</code></a>
<a href="../files/src_pixi_loaders_SpriteSheetLoader.js.html#l61"><code>src&#x2F;pixi&#x2F;loaders&#x2F;SpriteSheetLoader.js:61</code></a>
</p>
@ -763,7 +765,7 @@ When loaded this class will dispatch a &quot;loaded&quot; event</p>
<a href="../files/src_pixi_loaders_SpriteSheetLoader.js.html#l54"><code>src&#x2F;pixi&#x2F;loaders&#x2F;SpriteSheetLoader.js:54</code></a>
<a href="../files/src_pixi_loaders_SpriteSheetLoader.js.html#l53"><code>src&#x2F;pixi&#x2F;loaders&#x2F;SpriteSheetLoader.js:53</code></a>
</p>
@ -808,7 +810,7 @@ When loaded this class will dispatch a &quot;loaded&quot; event</p>
<a href="../files/src_pixi_loaders_SpriteSheetLoader.js.html#l29"><code>src&#x2F;pixi&#x2F;loaders&#x2F;SpriteSheetLoader.js:29</code></a>
<a href="../files/src_pixi_loaders_SpriteSheetLoader.js.html#l28"><code>src&#x2F;pixi&#x2F;loaders&#x2F;SpriteSheetLoader.js:28</code></a>
</p>