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>
@ -420,13 +422,6 @@
</li>
<li class="index-item method private">
<a href="#method_onTextureUpdate">onTextureUpdate</a>
</li>
<li class="index-item method inherited">
@ -443,13 +438,6 @@
<span class="flag deprecated">deprecated</span>
</li>
<li class="index-item method">
<a href="#method_setTexture">setTexture</a>
</li>
<li class="index-item method private inherited">
@ -546,7 +534,7 @@
</li>
<li class="index-item property">
<li class="index-item property inherited">
<a href="#property_height">height</a>
@ -628,13 +616,6 @@
</li>
<li class="index-item property">
<a href="#property_texture">texture</a>
</li>
<li class="index-item property">
@ -658,7 +639,7 @@
</li>
<li class="index-item property">
<li class="index-item property inherited">
<a href="#property_width">width</a>
@ -732,7 +713,7 @@
<a href="../files/src_pixi_display_DisplayObjectContainer.js.html#l32"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:32</code></a>
<a href="../files/src_pixi_display_DisplayObjectContainer.js.html#l69"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:69</code></a>
</p>
@ -824,7 +805,7 @@
<a href="../files/src_pixi_display_DisplayObjectContainer.js.html#l120"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:120</code></a>
<a href="../files/src_pixi_display_DisplayObjectContainer.js.html#l94"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:94</code></a>
</p>
@ -926,7 +907,7 @@
<a href="../files/src_pixi_display_DisplayObject.js.html#l174"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:174</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l185"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:185</code></a>
</p>
@ -1011,7 +992,7 @@
<a href="../files/src_pixi_display_DisplayObjectContainer.js.html#l256"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:256</code></a>
<a href="../files/src_pixi_display_DisplayObjectContainer.js.html#l148"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:148</code></a>
</p>
@ -1097,7 +1078,7 @@
<a href="../files/src_pixi_display_DisplayObject.js.html#l180"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:180</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l191"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:191</code></a>
</p>
@ -1182,7 +1163,7 @@
<a href="../files/src_pixi_display_DisplayObject.js.html#l206"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:206</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l217"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:217</code></a>
</p>
@ -1267,7 +1248,7 @@
<a href="../files/src_pixi_display_DisplayObject.js.html#l200"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:200</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l211"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:211</code></a>
</p>
@ -1352,7 +1333,7 @@
<a href="../files/src_pixi_display_DisplayObject.js.html#l186"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:186</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l197"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:197</code></a>
</p>
@ -1438,7 +1419,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
<a href="../files/src_pixi_display_DisplayObject.js.html#l193"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:193</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l204"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:204</code></a>
</p>
@ -1482,96 +1463,6 @@ for this callback to be fired, The touch must have started over the displayObjec
</div>
<div id="method_onTextureUpdate" class="method item private">
<h3 class="name"><code>onTextureUpdate</code></h3>
<div class="args">
<span class="paren">(</span><ul class="args-list inline commas">
<li class="arg">
<code>event</code>
</li>
</ul><span class="paren">)</span>
</div>
<span class="flag private">private</span>
<div class="meta">
<p>
Defined in
<a href="../files/src_pixi_extras_TilingSprite.js.html#l84"><code>src&#x2F;pixi&#x2F;extras&#x2F;TilingSprite.js:84</code></a>
</p>
</div>
<div class="description">
<p>When the texture is updated, this event will fire to update the frame</p>
</div>
<div class="params">
<h4>Parameters:</h4>
<ul class="params-list">
<li class="param">
<code class="param-name">event</code>
<span class="type">Object</span>
<div class="param-description">
</div>
</li>
</ul>
</div>
</div>
@ -1614,7 +1505,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="../files/src_pixi_display_DisplayObjectContainer.js.html#l274"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:274</code></a>
<a href="../files/src_pixi_display_DisplayObjectContainer.js.html#l166"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:166</code></a>
</p>
@ -1702,7 +1593,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="../files/src_pixi_display_DisplayObject.js.html#l247"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:247</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l258"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:258</code></a>
</p>
@ -1748,95 +1639,6 @@ Instead of using this function you can now simply set the interactive property t
</div>
<div id="method_setTexture" class="method item">
<h3 class="name"><code>setTexture</code></h3>
<div class="args">
<span class="paren">(</span><ul class="args-list inline commas">
<li class="arg">
<code>texture</code>
</li>
</ul><span class="paren">)</span>
</div>
<div class="meta">
<p>
Defined in
<a href="../files/src_pixi_extras_TilingSprite.js.html#l68"><code>src&#x2F;pixi&#x2F;extras&#x2F;TilingSprite.js:68</code></a>
</p>
</div>
<div class="description">
<p>Sets the texture of the tiling sprite</p>
</div>
<div class="params">
<h4>Parameters:</h4>
<ul class="params-list">
<li class="param">
<code class="param-name">texture</code>
<span class="type"><a href="../classes/Texture.html" class="crosslink">Texture</a></span>
<div class="param-description">
<p>The PIXI texture that is displayed by the sprite</p>
</div>
</li>
</ul>
</div>
</div>
@ -1887,7 +1689,7 @@ Instead of using this function you can now simply set the interactive property t
<a href="../files/src_pixi_display_DisplayObjectContainer.js.html#l207"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:207</code></a>
<a href="../files/src_pixi_display_DisplayObjectContainer.js.html#l122"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:122</code></a>
</p>
@ -1917,7 +1719,7 @@ Instead of using this function you can now simply set the interactive property t
<div class="param-description">
</div>
@ -1932,7 +1734,7 @@ Instead of using this function you can now simply set the interactive property t
<div class="param-description">
</div>
@ -1987,7 +1789,7 @@ Instead of using this function you can now simply set the interactive property t
<a href="../files/src_pixi_display_DisplayObject.js.html#l217"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:217</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l228"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:228</code></a>
</p>
@ -2073,7 +1875,7 @@ basically a touch version of click</p>
<a href="../files/src_pixi_display_DisplayObject.js.html#l230"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:230</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l241"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:241</code></a>
</p>
@ -2158,7 +1960,7 @@ basically a touch version of click</p>
<a href="../files/src_pixi_display_DisplayObject.js.html#l236"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:236</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l247"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:247</code></a>
</p>
@ -2244,7 +2046,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="../files/src_pixi_display_DisplayObject.js.html#l224"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:224</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l235"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:235</code></a>
</p>
@ -2490,7 +2292,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="../files/src_pixi_display_DisplayObject.js.html#l145"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:145</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l147"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:147</code></a>
</p>
@ -2534,7 +2336,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="../files/src_pixi_display_DisplayObject.js.html#l154"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:154</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l156"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:156</code></a>
</p>
@ -2576,7 +2378,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="../files/src_pixi_display_DisplayObject.js.html#l318"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:318</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l314"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:314</code></a>
</p>
@ -2586,9 +2388,11 @@ for this callback to be fired, The touch must have started over the sprite</p>
</div>
<div class="description">
<p>Sets the filters for the displayObject.
* IMPORTANT: This is a webGL only feature and will be ignored by the canvas renderer.
To remove filters simply set this property to &#39;null&#39;</p>
<p><p>Sets the filters for the displayObject.</p></p>
<ul>
<li>IMPORTANT: This is a webGL only feature and will be ignored by the canvas renderer.
To remove filters simply set this property to &#39;null&#39;</li>
</ul>
</div>
@ -2614,16 +2418,16 @@ To remove filters simply set this property to &#39;null&#39;</p>
<div class="meta">
<p>Inherited from
<a href="../classes/DisplayObjectContainer.html#property_height">
DisplayObjectContainer
</a>
<p>
Defined in
but overwritten in
<a href="../files/src_pixi_extras_TilingSprite.js.html#l35"><code>src&#x2F;pixi&#x2F;extras&#x2F;TilingSprite.js:35</code></a>
<a href="../files/src_pixi_extras_TilingSprite.js.html#l67"><code>src&#x2F;pixi&#x2F;extras&#x2F;TilingSprite.js:67</code></a>
</p>
@ -2633,7 +2437,7 @@ To remove filters simply set this property to &#39;null&#39;</p>
</div>
<div class="description">
<p>The height of the tiling sprite</p>
<p>The height of the TilingSprite, setting this will actually modify the scale to acheive the value set</p>
</div>
@ -2708,7 +2512,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="../files/src_pixi_display_DisplayObject.js.html#l260"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:260</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l271"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:271</code></a>
</p>
@ -2754,7 +2558,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="../files/src_pixi_display_DisplayObject.js.html#l135"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:135</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l137"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:137</code></a>
</p>
@ -2796,7 +2600,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="../files/src_pixi_display_DisplayObject.js.html#l280"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:280</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l291"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:291</code></a>
</p>
@ -3111,51 +2915,6 @@ To remove a mask, set this property to null.</p>
</div>
<div id="property_texture" class="property item">
<h3 class="name"><code>texture</code></h3>
<span class="type"><a href="../classes/Texture.html" class="crosslink">Texture</a></span>
<div class="meta">
<p>
Defined in
<a href="../files/src_pixi_extras_TilingSprite.js.html#l19"><code>src&#x2F;pixi&#x2F;extras&#x2F;TilingSprite.js:19</code></a>
</p>
</div>
<div class="description">
<p>The texture that the sprite is using</p>
</div>
</div>
@ -3182,7 +2941,7 @@ To remove a mask, set this property to null.</p>
<a href="../files/src_pixi_extras_TilingSprite.js.html#l51"><code>src&#x2F;pixi&#x2F;extras&#x2F;TilingSprite.js:51</code></a>
<a href="../files/src_pixi_extras_TilingSprite.js.html#l32"><code>src&#x2F;pixi&#x2F;extras&#x2F;TilingSprite.js:32</code></a>
</p>
@ -3227,7 +2986,7 @@ To remove a mask, set this property to null.</p>
<a href="../files/src_pixi_extras_TilingSprite.js.html#l43"><code>src&#x2F;pixi&#x2F;extras&#x2F;TilingSprite.js:43</code></a>
<a href="../files/src_pixi_extras_TilingSprite.js.html#l24"><code>src&#x2F;pixi&#x2F;extras&#x2F;TilingSprite.js:24</code></a>
</p>
@ -3305,16 +3064,16 @@ To remove a mask, set this property to null.</p>
<div class="meta">
<p>Inherited from
<a href="../classes/DisplayObjectContainer.html#property_width">
DisplayObjectContainer
</a>
<p>
Defined in
but overwritten in
<a href="../files/src_pixi_extras_TilingSprite.js.html#l27"><code>src&#x2F;pixi&#x2F;extras&#x2F;TilingSprite.js:27</code></a>
<a href="../files/src_pixi_extras_TilingSprite.js.html#l51"><code>src&#x2F;pixi&#x2F;extras&#x2F;TilingSprite.js:51</code></a>
</p>
@ -3324,7 +3083,7 @@ To remove a mask, set this property to null.</p>
</div>
<div class="description">
<p>The width of the tiling sprite</p>
<p>The width of the sprite, setting this will actually modify the scale to acheive the value set</p>
</div>
@ -3400,7 +3159,7 @@ To remove a mask, set this property to null.</p>
<a href="../files/src_pixi_display_DisplayObject.js.html#l125"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:125</code></a>
<a href="../files/src_pixi_display_DisplayObject.js.html#l127"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:127</code></a>
</p>