Docs updated Builds updated

This commit is contained in:
Mat Groves 2013-07-02 10:48:05 +01:00
parent b1b2e417a3
commit 69b3be322e
93 changed files with 6214 additions and 1190 deletions

View file

@ -4,7 +4,7 @@
* Copyright (c) 2012, Mat Groves
* http://goodboydigital.com/
*
* Compiled: 2013-07-01
* Compiled: 2013-07-02
*
* Pixi.JS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
@ -180,7 +180,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*/
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i<this.points.length; i++) {
@ -196,7 +196,7 @@ PIXI.Polygon.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Polygon.contains = function(x, y)
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;
@ -255,7 +255,7 @@ PIXI.Circle = function(x, y, radius)
* @method clone
* @return a copy of the polygon
*/
PIXI.Circle.clone = function()
PIXI.Circle.prototype.clone = function()
{
return new PIXI.Circle(this.x, this.y, this.radius);
}
@ -266,7 +266,7 @@ PIXI.Circle.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Circle.contains = function(x, y)
PIXI.Circle.prototype.contains = function(x, y)
{
if(this.radius <= 0)
return false;
@ -331,7 +331,7 @@ PIXI.Ellipse = function(x, y, width, height)
* @method clone
* @return a copy of the polygon
*/
PIXI.Ellipse.clone = function()
PIXI.Ellipse.prototype.clone = function()
{
return new PIXI.Ellipse(this.x, this.y, this.width, this.height);
}
@ -342,7 +342,7 @@ PIXI.Ellipse.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Ellipse.contains = function(x, y)
PIXI.Ellipse.prototype.contains = function(x, y)
{
if(this.width <= 0 || this.height <= 0)
return false;
@ -864,9 +864,13 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', {
}
});
county = 0;
/**
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
* In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
* To remove a mask, set this property to null.
* @property mask
* @type PIXI.Graphics
*/
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
get: function() {
return this._mask;
@ -886,7 +890,9 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
}
});
/*
* private
*/
PIXI.DisplayObject.prototype.addFilter = function(mask)
{
if(this.filter)return;
@ -912,7 +918,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an start filter
* insert start
*
*/
@ -945,7 +951,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an end filter
* insert end filter
*
*/
var childFirst = end
@ -979,8 +985,6 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
this.first = start;
// TODO need to check if the stage already exists...
// if webGL...
if(this.__renderGroup)
{
@ -1008,8 +1012,6 @@ PIXI.DisplayObject.prototype.removeFilter = function()
this.first = startBlock._iNext;
// this will NEVER be true!
// remove the end filter
var lastBlock = this.last;
@ -1328,9 +1330,14 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
*/
PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
{
/*
* this funtion needs to be recoded..
* can be done a lot faster..
*/
return;
// need to fix this function :/
// need to fix this function :/
/*
// TODO I already know this??
var index = this.children.indexOf( child );
var index2 = this.children.indexOf( child2 );
@ -1349,7 +1356,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
this.stage.__addChild(child);
this.stage.__addChild(child2);
}*/
}
// swap the positions..
this.children[index] = child2;
@ -1359,7 +1366,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
else
{
throw new Error(child + " Both the supplied DisplayObjects must be a child of the caller " + this);
}
}*/
}
/**
@ -2502,11 +2509,13 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
//a sprite or display object with a hit area defined
if(item.hitArea && item.hitArea.contains && item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
if(item.hitArea && item.hitArea.contains) {
if(item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
return true;
return true;
}
}
// a sprite with no hitarea defined
else if(isSprite)
@ -4835,7 +4844,6 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
// TODO what if its already has an object? should remove it
this.root = displayObject;
//displayObject.__renderGroup = this;
this.addDisplayObjectAndChildren(displayObject);
}

File diff suppressed because one or more lines are too long

View file

@ -7,9 +7,11 @@ YUI.add("yuidoc-meta", function(Y) {
"BitmapText",
"CanvasGraphics",
"CanvasRenderer",
"Circle",
"CustomRenderable",
"DisplayObject",
"DisplayObjectContainer",
"Ellipse",
"Graphics",
"ImageLoader",
"InteractionData",

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -502,6 +506,20 @@ http://www.bmglyph.com/ for mac.</p>
</li>
<li class="index-item property inherited">
<a href="#property_interactive">interactive</a>
</li>
<li class="index-item property inherited">
<a href="#property_mask">mask</a>
</li>
<li class="index-item property inherited">
@ -606,7 +624,7 @@ http://www.bmglyph.com/ for mac.</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l41"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:41</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l42"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:42</code></a>
</p>
@ -696,7 +714,7 @@ http://www.bmglyph.com/ for mac.</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l73"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:73</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l139"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:139</code></a>
</p>
@ -795,7 +813,7 @@ http://www.bmglyph.com/ for mac.</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l106"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:106</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l109"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:109</code></a>
</p>
@ -879,7 +897,7 @@ http://www.bmglyph.com/ for mac.</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l274"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:274</code></a>
</p>
@ -963,7 +981,7 @@ http://www.bmglyph.com/ for mac.</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l112"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:112</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l115"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:115</code></a>
</p>
@ -1047,7 +1065,7 @@ http://www.bmglyph.com/ for mac.</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l138"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:138</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l141"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:141</code></a>
</p>
@ -1131,7 +1149,7 @@ http://www.bmglyph.com/ for mac.</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l132"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:132</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l135"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:135</code></a>
</p>
@ -1215,7 +1233,7 @@ http://www.bmglyph.com/ for mac.</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l118"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:118</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l121"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:121</code></a>
</p>
@ -1300,7 +1318,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l125"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:125</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:128</code></a>
</p>
@ -1385,7 +1403,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l186"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:186</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l291"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:291</code></a>
</p>
@ -1469,7 +1487,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l190"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:190</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l193"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:193</code></a>
</p>
@ -1480,7 +1498,8 @@ for this callback to be fired, The touch must have started over the displayObjec
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
<p>[Deprecated] Indicates if the sprite will have touch and mouse interactivity. It is false by default
Instead of using this function you can now simply set the interactive property to true or false</p>
</div>
@ -1764,7 +1783,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:128</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l227"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:227</code></a>
</p>
@ -1863,7 +1882,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l149"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:149</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l152"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:152</code></a>
</p>
@ -1948,7 +1967,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l162"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:162</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l165"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:165</code></a>
</p>
@ -2032,7 +2051,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l171"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:171</code></a>
</p>
@ -2117,7 +2136,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l156"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:156</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l159"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:159</code></a>
</p>
@ -2190,7 +2209,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l40"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:40</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l43"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:43</code></a>
</p>
@ -2231,7 +2250,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l95"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:95</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l98"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:98</code></a>
</p>
@ -2313,7 +2332,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l69"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:69</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l72"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:72</code></a>
</p>
@ -2332,6 +2351,90 @@ Setting it is a neat way of optimising the hitTest function that the interaction
</div>
<div id="property_interactive" class="property item inherited">
<h3 class="name"><code>interactive</code></h3>
<span class="type">Boolean</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_interactive">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l204"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:204</code></a>
</p>
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
</div>
</div>
<div id="property_mask" class="property item inherited">
<h3 class="name"><code>mask</code></h3>
<span class="type">PIXI.Graphics</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_mask">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l222"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:222</code></a>
</p>
</div>
<div class="description">
<p>Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
To remove a mask, set this property to null.</p>
</div>
</div>
@ -2355,7 +2458,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l55"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:55</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l58"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:58</code></a>
</p>
@ -2396,7 +2499,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l26"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:26</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l29"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:29</code></a>
</p>
@ -2437,7 +2540,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l12"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:12</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l15"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:15</code></a>
</p>
@ -2478,7 +2581,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l33"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:33</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l36"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:36</code></a>
</p>
@ -2519,7 +2622,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l19"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:19</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l22"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:22</code></a>
</p>
@ -2560,7 +2663,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l62"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:62</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l65"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:65</code></a>
</p>
@ -2601,7 +2704,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l47"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:47</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l50"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:50</code></a>
</p>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

751
docs/classes/Circle.html Normal file
View file

@ -0,0 +1,751 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Circle - Pixi.JS</title>
<link rel="stylesheet" href="http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;3.8.0&#x2F;build&#x2F;cssgrids&#x2F;cssgrids-min.css">
<link rel="stylesheet" href="..&#x2F;assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="..&#x2F;assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="..&#x2F;assets/favicon.png">
<script src="http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;combo?3.8.0&#x2F;build&#x2F;yui&#x2F;yui-min.js"></script>
</head>
<body class="yui3-skin-sam">
<div id="doc">
<div id="hd" class="yui3-g header">
<div class="yui3-u-3-4">
<h1><img src="http:&#x2F;&#x2F;www.goodboydigital.com&#x2F;pixijs&#x2F;logo_small.png" title="Pixi.JS"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.3.0</em>
</div>
</div>
<div id="bd" class="yui3-g">
<div class="yui3-u-1-4">
<div id="docs-sidebar" class="sidebar apidocs">
<div id="api-list">
<h2 class="off-left">APIs</h2>
<div id="api-tabview" class="tabview">
<ul class="tabs">
<li><a href="#api-classes">Classes</a></li>
<li><a href="#api-modules">Modules</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" id="api-filter" placeholder="Type to filter APIs">
</div>
<div id="api-tabview-panel">
<ul id="api-classes" class="apis classes">
<li><a href="..&#x2F;classes/AssetLoader.html">AssetLoader</a></li>
<li><a href="..&#x2F;classes/BaseTexture.html">BaseTexture</a></li>
<li><a href="..&#x2F;classes/BitmapFontLoader.html">BitmapFontLoader</a></li>
<li><a href="..&#x2F;classes/BitmapText.html">BitmapText</a></li>
<li><a href="..&#x2F;classes/CanvasGraphics.html">CanvasGraphics</a></li>
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
<li><a href="..&#x2F;classes/InteractionData.html">InteractionData</a></li>
<li><a href="..&#x2F;classes/InteractionManager.html">InteractionManager</a></li>
<li><a href="..&#x2F;classes/JsonLoader.html">JsonLoader</a></li>
<li><a href="..&#x2F;classes/MovieClip.html">MovieClip</a></li>
<li><a href="..&#x2F;classes/Point.html">Point</a></li>
<li><a href="..&#x2F;classes/Polygon.html">Polygon</a></li>
<li><a href="..&#x2F;classes/Rectangle.html">Rectangle</a></li>
<li><a href="..&#x2F;classes/RenderTexture.html">RenderTexture</a></li>
<li><a href="..&#x2F;classes/Spine.html">Spine</a></li>
<li><a href="..&#x2F;classes/Sprite.html">Sprite</a></li>
<li><a href="..&#x2F;classes/SpriteSheetLoader.html">SpriteSheetLoader</a></li>
<li><a href="..&#x2F;classes/Stage.html">Stage</a></li>
<li><a href="..&#x2F;classes/Text.html">Text</a></li>
<li><a href="..&#x2F;classes/Texture.html">Texture</a></li>
<li><a href="..&#x2F;classes/TilingSprite.html">TilingSprite</a></li>
<li><a href="..&#x2F;classes/WebGLBatch.html">WebGLBatch</a></li>
<li><a href="..&#x2F;classes/WebGLRenderer.html">WebGLRenderer</a></li>
</ul>
<ul id="api-modules" class="apis modules">
<li><a href="..&#x2F;modules/PIXI.html">PIXI</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="yui3-u-3-4">
<div id="api-options">
Show:
<label for="api-show-inherited">
<input type="checkbox" id="api-show-inherited" checked>
Inherited
</label>
<label for="api-show-protected">
<input type="checkbox" id="api-show-protected">
Protected
</label>
<label for="api-show-private">
<input type="checkbox" id="api-show-private">
Private
</label>
<label for="api-show-deprecated">
<input type="checkbox" id="api-show-deprecated">
Deprecated
</label>
</div>
<div class="apidocs">
<div id="docs-main">
<div class="content">
<h1>Circle Class</h1>
<div class="box meta">
<div class="foundat">
Defined in: <a href="..&#x2F;files&#x2F;src_pixi_core_Circle.js.html#l5"><code>src&#x2F;pixi&#x2F;core&#x2F;Circle.js:5</code></a>
</div>
Module: <a href="../modules/PIXI.html">PIXI</a>
</div>
<div class="box intro">
</div>
<div class="constructor">
<h2>Constructor</h2>
<div id="method_Circle" class="method item">
<h3 class="name"><code>Circle</code></h3>
<div class="args">
<span class="paren">(</span><ul class="args-list inline commas">
<li class="arg">
<code>x</code>
</li>
<li class="arg">
<code>y</code>
</li>
<li class="arg">
<code>radius</code>
</li>
</ul><span class="paren">)</span>
</div>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_core_Circle.js.html#l5"><code>src&#x2F;pixi&#x2F;core&#x2F;Circle.js:5</code></a>
</p>
</div>
<div class="description">
</div>
<div class="params">
<h4>Parameters:</h4>
<ul class="params-list">
<li class="param">
<code class="param-name">x</code>
<span class="type">Number</span>
<div class="param-description">
<p>The X coord of the upper-left corner of the framing rectangle of this circle</p>
</div>
</li>
<li class="param">
<code class="param-name">y</code>
<span class="type">Number</span>
<div class="param-description">
<p>The Y coord of the upper-left corner of the framing rectangle of this circle</p>
</div>
</li>
<li class="param">
<code class="param-name">radius</code>
<span class="type">Number</span>
<div class="param-description">
<p>The radius of the circle</p>
</div>
</li>
</ul>
</div>
</div>
</div>
<div id="classdocs" class="tabview">
<ul class="api-class-tabs">
<li class="api-class-tab index"><a href="#index">Index</a></li>
<li class="api-class-tab methods"><a href="#methods">Methods</a></li>
<li class="api-class-tab properties"><a href="#properties">Properties</a></li>
</ul>
<div>
<div id="index" class="api-class-tabpanel index">
<h2 class="off-left">Item Index</h2>
<div class="index-section methods">
<h3>Methods</h3>
<ul class="index-list methods">
<li class="index-item method">
<a href="#method_clone">clone</a>
</li>
<li class="index-item method">
<a href="#method_contains">contains</a>
</li>
</ul>
</div>
<div class="index-section properties">
<h3>Properties</h3>
<ul class="index-list properties">
<li class="index-item property">
<a href="#property_radius">radius</a>
</li>
<li class="index-item property">
<a href="#property_x">x</a>
</li>
<li class="index-item property">
<a href="#property_y">y</a>
</li>
</ul>
</div>
</div>
<div id="methods" class="api-class-tabpanel">
<h2 class="off-left">Methods</h2>
<div id="method_clone" class="method item">
<h3 class="name"><code>clone</code></h3>
<span class="paren">()</span>
<span class="returns-inline">
<span class="type"></span>
</span>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_core_Circle.js.html#l36"><code>src&#x2F;pixi&#x2F;core&#x2F;Circle.js:36</code></a>
</p>
</div>
<div class="description">
</div>
<div class="returns">
<h4>Returns:</h4>
<div class="returns-description">
a copy of the polygon
</div>
</div>
</div>
<div id="method_contains" class="method item">
<h3 class="name"><code>contains</code></h3>
<div class="args">
<span class="paren">(</span><ul class="args-list inline commas">
<li class="arg">
<code>x</code>
</li>
<li class="arg">
<code>y</code>
</li>
</ul><span class="paren">)</span>
</div>
<span class="returns-inline">
<span class="type"></span>
</span>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_core_Circle.js.html#l45"><code>src&#x2F;pixi&#x2F;core&#x2F;Circle.js:45</code></a>
</p>
</div>
<div class="description">
</div>
<div class="params">
<h4>Parameters:</h4>
<ul class="params-list">
<li class="param">
<code class="param-name">x</code>
<span class="type">Number</span>
<div class="param-description">
<p>The X coord of the point to test</p>
</div>
</li>
<li class="param">
<code class="param-name">y</code>
<span class="type">Number</span>
<div class="param-description">
<p>The Y coord of the point to test</p>
</div>
</li>
</ul>
</div>
<div class="returns">
<h4>Returns:</h4>
<div class="returns-description">
if the x/y coords are within this polygon
</div>
</div>
</div>
</div>
<div id="properties" class="api-class-tabpanel">
<h2 class="off-left">Properties</h2>
<div id="property_radius" class="property item">
<h3 class="name"><code>radius</code></h3>
<span class="type">Number</span>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_core_Circle.js.html#l28"><code>src&#x2F;pixi&#x2F;core&#x2F;Circle.js:28</code></a>
</p>
</div>
<div class="description">
</div>
<p><strong>Default:</strong> 0</p>
</div>
<div id="property_x" class="property item">
<h3 class="name"><code>x</code></h3>
<span class="type">Number</span>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_core_Circle.js.html#l14"><code>src&#x2F;pixi&#x2F;core&#x2F;Circle.js:14</code></a>
</p>
</div>
<div class="description">
</div>
<p><strong>Default:</strong> 0</p>
</div>
<div id="property_y" class="property item">
<h3 class="name"><code>y</code></h3>
<span class="type">Number</span>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_core_Circle.js.html#l21"><code>src&#x2F;pixi&#x2F;core&#x2F;Circle.js:21</code></a>
</p>
</div>
<div class="description">
</div>
<p><strong>Default:</strong> 0</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="..&#x2F;assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="..&#x2F;assets/js/yui-prettify.js"></script>
<script src="..&#x2F;assets/../api.js"></script>
<script src="..&#x2F;assets/js/api-filter.js"></script>
<script src="..&#x2F;assets/js/api-list.js"></script>
<script src="..&#x2F;assets/js/api-search.js"></script>
<script src="..&#x2F;assets/js/apidocs.js"></script>
</body>
</html>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -358,6 +362,20 @@
</li>
<li class="index-item property inherited">
<a href="#property_interactive">interactive</a>
</li>
<li class="index-item property inherited">
<a href="#property_mask">mask</a>
</li>
<li class="index-item property inherited">
@ -462,7 +480,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l106"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:106</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l109"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:109</code></a>
</p>
@ -546,7 +564,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l112"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:112</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l115"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:115</code></a>
</p>
@ -630,7 +648,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l138"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:138</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l141"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:141</code></a>
</p>
@ -714,7 +732,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l132"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:132</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l135"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:135</code></a>
</p>
@ -798,7 +816,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l118"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:118</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l121"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:121</code></a>
</p>
@ -883,7 +901,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l125"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:125</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:128</code></a>
</p>
@ -968,7 +986,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l190"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:190</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l193"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:193</code></a>
</p>
@ -979,7 +997,8 @@ for this callback to be fired, The touch must have started over the displayObjec
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
<p>[Deprecated] Indicates if the sprite will have touch and mouse interactivity. It is false by default
Instead of using this function you can now simply set the interactive property to true or false</p>
</div>
@ -1052,7 +1071,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l149"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:149</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l152"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:152</code></a>
</p>
@ -1137,7 +1156,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l162"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:162</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l165"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:165</code></a>
</p>
@ -1221,7 +1240,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l171"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:171</code></a>
</p>
@ -1306,7 +1325,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l156"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:156</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l159"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:159</code></a>
</p>
@ -1379,7 +1398,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l40"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:40</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l43"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:43</code></a>
</p>
@ -1420,7 +1439,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l95"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:95</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l98"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:98</code></a>
</p>
@ -1461,7 +1480,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l69"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:69</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l72"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:72</code></a>
</p>
@ -1480,6 +1499,90 @@ Setting it is a neat way of optimising the hitTest function that the interaction
</div>
<div id="property_interactive" class="property item inherited">
<h3 class="name"><code>interactive</code></h3>
<span class="type">Boolean</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_interactive">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l204"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:204</code></a>
</p>
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
</div>
</div>
<div id="property_mask" class="property item inherited">
<h3 class="name"><code>mask</code></h3>
<span class="type">PIXI.Graphics</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_mask">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l222"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:222</code></a>
</p>
</div>
<div class="description">
<p>Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
To remove a mask, set this property to null.</p>
</div>
</div>
@ -1503,7 +1606,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l55"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:55</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l58"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:58</code></a>
</p>
@ -1544,7 +1647,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l26"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:26</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l29"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:29</code></a>
</p>
@ -1585,7 +1688,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l12"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:12</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l15"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:15</code></a>
</p>
@ -1626,7 +1729,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l33"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:33</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l36"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:36</code></a>
</p>
@ -1667,7 +1770,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l19"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:19</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l22"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:22</code></a>
</p>
@ -1708,7 +1811,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l62"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:62</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l65"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:65</code></a>
</p>
@ -1749,7 +1852,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l47"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:47</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l50"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:50</code></a>
</p>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -354,6 +358,20 @@
</li>
<li class="index-item property">
<a href="#property_interactive">interactive</a>
</li>
<li class="index-item property">
<a href="#property_mask">mask</a>
</li>
<li class="index-item property">
@ -461,7 +479,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l106"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:106</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l109"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:109</code></a>
</p>
@ -548,7 +566,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l112"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:112</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l115"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:115</code></a>
</p>
@ -635,7 +653,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l138"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:138</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l141"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:141</code></a>
</p>
@ -722,7 +740,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l132"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:132</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l135"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:135</code></a>
</p>
@ -809,7 +827,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l118"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:118</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l121"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:121</code></a>
</p>
@ -897,7 +915,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l125"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:125</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:128</code></a>
</p>
@ -985,7 +1003,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l190"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:190</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l193"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:193</code></a>
</p>
@ -996,7 +1014,8 @@ for this callback to be fired, The touch must have started over the displayObjec
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
<p>[Deprecated] Indicates if the sprite will have touch and mouse interactivity. It is false by default
Instead of using this function you can now simply set the interactive property to true or false</p>
</div>
@ -1072,7 +1091,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l149"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:149</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l152"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:152</code></a>
</p>
@ -1160,7 +1179,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l162"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:162</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l165"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:165</code></a>
</p>
@ -1247,7 +1266,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l171"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:171</code></a>
</p>
@ -1335,7 +1354,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l156"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:156</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l159"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:159</code></a>
</p>
@ -1411,7 +1430,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l40"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:40</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l43"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:43</code></a>
</p>
@ -1455,7 +1474,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l95"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:95</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l98"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:98</code></a>
</p>
@ -1499,7 +1518,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l69"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:69</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l72"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:72</code></a>
</p>
@ -1518,6 +1537,96 @@ Setting it is a neat way of optimising the hitTest function that the interaction
</div>
<div id="property_interactive" class="property item">
<h3 class="name"><code>interactive</code></h3>
<span class="type">Boolean</span>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l204"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:204</code></a>
</p>
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
</div>
</div>
<div id="property_mask" class="property item">
<h3 class="name"><code>mask</code></h3>
<span class="type">PIXI.Graphics</span>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l222"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:222</code></a>
</p>
</div>
<div class="description">
<p>Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
To remove a mask, set this property to null.</p>
</div>
</div>
@ -1544,7 +1653,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l55"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:55</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l58"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:58</code></a>
</p>
@ -1588,7 +1697,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l26"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:26</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l29"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:29</code></a>
</p>
@ -1632,7 +1741,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l12"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:12</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l15"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:15</code></a>
</p>
@ -1676,7 +1785,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l33"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:33</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l36"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:36</code></a>
</p>
@ -1720,7 +1829,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l19"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:19</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l22"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:22</code></a>
</p>
@ -1764,7 +1873,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l62"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:62</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l65"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:65</code></a>
</p>
@ -1808,7 +1917,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l47"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:47</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l50"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:50</code></a>
</p>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -400,6 +404,20 @@
</li>
<li class="index-item property inherited">
<a href="#property_interactive">interactive</a>
</li>
<li class="index-item property inherited">
<a href="#property_mask">mask</a>
</li>
<li class="index-item property inherited">
@ -507,7 +525,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l41"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:41</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l42"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:42</code></a>
</p>
@ -600,7 +618,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l73"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:73</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l139"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:139</code></a>
</p>
@ -699,7 +717,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l106"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:106</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l109"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:109</code></a>
</p>
@ -786,7 +804,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l274"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:274</code></a>
</p>
@ -870,7 +888,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l112"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:112</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l115"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:115</code></a>
</p>
@ -954,7 +972,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l138"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:138</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l141"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:141</code></a>
</p>
@ -1038,7 +1056,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l132"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:132</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l135"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:135</code></a>
</p>
@ -1122,7 +1140,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l118"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:118</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l121"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:121</code></a>
</p>
@ -1207,7 +1225,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l125"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:125</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:128</code></a>
</p>
@ -1295,7 +1313,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l186"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:186</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l291"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:291</code></a>
</p>
@ -1379,7 +1397,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l190"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:190</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l193"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:193</code></a>
</p>
@ -1390,7 +1408,8 @@ for this callback to be fired, The touch must have started over the displayObjec
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
<p>[Deprecated] Indicates if the sprite will have touch and mouse interactivity. It is false by default
Instead of using this function you can now simply set the interactive property to true or false</p>
</div>
@ -1472,7 +1491,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:128</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l227"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:227</code></a>
</p>
@ -1571,7 +1590,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l149"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:149</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l152"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:152</code></a>
</p>
@ -1656,7 +1675,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l162"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:162</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l165"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:165</code></a>
</p>
@ -1740,7 +1759,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l171"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:171</code></a>
</p>
@ -1825,7 +1844,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l156"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:156</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l159"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:159</code></a>
</p>
@ -1898,7 +1917,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l40"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:40</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l43"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:43</code></a>
</p>
@ -1939,7 +1958,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l95"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:95</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l98"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:98</code></a>
</p>
@ -2024,7 +2043,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l69"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:69</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l72"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:72</code></a>
</p>
@ -2043,6 +2062,90 @@ Setting it is a neat way of optimising the hitTest function that the interaction
</div>
<div id="property_interactive" class="property item inherited">
<h3 class="name"><code>interactive</code></h3>
<span class="type">Boolean</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_interactive">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l204"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:204</code></a>
</p>
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
</div>
</div>
<div id="property_mask" class="property item inherited">
<h3 class="name"><code>mask</code></h3>
<span class="type">PIXI.Graphics</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_mask">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l222"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:222</code></a>
</p>
</div>
<div class="description">
<p>Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
To remove a mask, set this property to null.</p>
</div>
</div>
@ -2066,7 +2169,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l55"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:55</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l58"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:58</code></a>
</p>
@ -2107,7 +2210,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l26"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:26</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l29"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:29</code></a>
</p>
@ -2148,7 +2251,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l12"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:12</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l15"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:15</code></a>
</p>
@ -2189,7 +2292,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l33"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:33</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l36"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:36</code></a>
</p>
@ -2230,7 +2333,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l19"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:19</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l22"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:22</code></a>
</p>
@ -2271,7 +2374,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l62"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:62</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l65"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:65</code></a>
</p>
@ -2312,7 +2415,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l47"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:47</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l50"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:50</code></a>
</p>

825
docs/classes/Ellipse.html Normal file
View file

@ -0,0 +1,825 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Ellipse - Pixi.JS</title>
<link rel="stylesheet" href="http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;3.8.0&#x2F;build&#x2F;cssgrids&#x2F;cssgrids-min.css">
<link rel="stylesheet" href="..&#x2F;assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="..&#x2F;assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="..&#x2F;assets/favicon.png">
<script src="http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;combo?3.8.0&#x2F;build&#x2F;yui&#x2F;yui-min.js"></script>
</head>
<body class="yui3-skin-sam">
<div id="doc">
<div id="hd" class="yui3-g header">
<div class="yui3-u-3-4">
<h1><img src="http:&#x2F;&#x2F;www.goodboydigital.com&#x2F;pixijs&#x2F;logo_small.png" title="Pixi.JS"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.3.0</em>
</div>
</div>
<div id="bd" class="yui3-g">
<div class="yui3-u-1-4">
<div id="docs-sidebar" class="sidebar apidocs">
<div id="api-list">
<h2 class="off-left">APIs</h2>
<div id="api-tabview" class="tabview">
<ul class="tabs">
<li><a href="#api-classes">Classes</a></li>
<li><a href="#api-modules">Modules</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" id="api-filter" placeholder="Type to filter APIs">
</div>
<div id="api-tabview-panel">
<ul id="api-classes" class="apis classes">
<li><a href="..&#x2F;classes/AssetLoader.html">AssetLoader</a></li>
<li><a href="..&#x2F;classes/BaseTexture.html">BaseTexture</a></li>
<li><a href="..&#x2F;classes/BitmapFontLoader.html">BitmapFontLoader</a></li>
<li><a href="..&#x2F;classes/BitmapText.html">BitmapText</a></li>
<li><a href="..&#x2F;classes/CanvasGraphics.html">CanvasGraphics</a></li>
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
<li><a href="..&#x2F;classes/InteractionData.html">InteractionData</a></li>
<li><a href="..&#x2F;classes/InteractionManager.html">InteractionManager</a></li>
<li><a href="..&#x2F;classes/JsonLoader.html">JsonLoader</a></li>
<li><a href="..&#x2F;classes/MovieClip.html">MovieClip</a></li>
<li><a href="..&#x2F;classes/Point.html">Point</a></li>
<li><a href="..&#x2F;classes/Polygon.html">Polygon</a></li>
<li><a href="..&#x2F;classes/Rectangle.html">Rectangle</a></li>
<li><a href="..&#x2F;classes/RenderTexture.html">RenderTexture</a></li>
<li><a href="..&#x2F;classes/Spine.html">Spine</a></li>
<li><a href="..&#x2F;classes/Sprite.html">Sprite</a></li>
<li><a href="..&#x2F;classes/SpriteSheetLoader.html">SpriteSheetLoader</a></li>
<li><a href="..&#x2F;classes/Stage.html">Stage</a></li>
<li><a href="..&#x2F;classes/Text.html">Text</a></li>
<li><a href="..&#x2F;classes/Texture.html">Texture</a></li>
<li><a href="..&#x2F;classes/TilingSprite.html">TilingSprite</a></li>
<li><a href="..&#x2F;classes/WebGLBatch.html">WebGLBatch</a></li>
<li><a href="..&#x2F;classes/WebGLRenderer.html">WebGLRenderer</a></li>
</ul>
<ul id="api-modules" class="apis modules">
<li><a href="..&#x2F;modules/PIXI.html">PIXI</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="yui3-u-3-4">
<div id="api-options">
Show:
<label for="api-show-inherited">
<input type="checkbox" id="api-show-inherited" checked>
Inherited
</label>
<label for="api-show-protected">
<input type="checkbox" id="api-show-protected">
Protected
</label>
<label for="api-show-private">
<input type="checkbox" id="api-show-private">
Private
</label>
<label for="api-show-deprecated">
<input type="checkbox" id="api-show-deprecated">
Deprecated
</label>
</div>
<div class="apidocs">
<div id="docs-main">
<div class="content">
<h1>Ellipse Class</h1>
<div class="box meta">
<div class="foundat">
Defined in: <a href="..&#x2F;files&#x2F;src_pixi_core_Ellipse.js.html#l5"><code>src&#x2F;pixi&#x2F;core&#x2F;Ellipse.js:5</code></a>
</div>
Module: <a href="../modules/PIXI.html">PIXI</a>
</div>
<div class="box intro">
</div>
<div class="constructor">
<h2>Constructor</h2>
<div id="method_Ellipse" class="method item">
<h3 class="name"><code>Ellipse</code></h3>
<div class="args">
<span class="paren">(</span><ul class="args-list inline commas">
<li class="arg">
<code>x</code>
</li>
<li class="arg">
<code>y</code>
</li>
<li class="arg">
<code>width</code>
</li>
<li class="arg">
<code>height</code>
</li>
</ul><span class="paren">)</span>
</div>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_core_Ellipse.js.html#l5"><code>src&#x2F;pixi&#x2F;core&#x2F;Ellipse.js:5</code></a>
</p>
</div>
<div class="description">
</div>
<div class="params">
<h4>Parameters:</h4>
<ul class="params-list">
<li class="param">
<code class="param-name">x</code>
<span class="type">Number</span>
<div class="param-description">
<p>The X coord of the upper-left corner of the framing rectangle of this circle</p>
</div>
</li>
<li class="param">
<code class="param-name">y</code>
<span class="type">Number</span>
<div class="param-description">
<p>The Y coord of the upper-left corner of the framing rectangle of this circle</p>
</div>
</li>
<li class="param">
<code class="param-name">width</code>
<span class="type">Number</span>
<div class="param-description">
<p>The overall height of this ellipse</p>
</div>
</li>
<li class="param">
<code class="param-name">height</code>
<span class="type">Number</span>
<div class="param-description">
<p>The overall width of this ellipse</p>
</div>
</li>
</ul>
</div>
</div>
</div>
<div id="classdocs" class="tabview">
<ul class="api-class-tabs">
<li class="api-class-tab index"><a href="#index">Index</a></li>
<li class="api-class-tab methods"><a href="#methods">Methods</a></li>
<li class="api-class-tab properties"><a href="#properties">Properties</a></li>
</ul>
<div>
<div id="index" class="api-class-tabpanel index">
<h2 class="off-left">Item Index</h2>
<div class="index-section methods">
<h3>Methods</h3>
<ul class="index-list methods">
<li class="index-item method">
<a href="#method_clone">clone</a>
</li>
<li class="index-item method">
<a href="#method_contains">contains</a>
</li>
</ul>
</div>
<div class="index-section properties">
<h3>Properties</h3>
<ul class="index-list properties">
<li class="index-item property">
<a href="#property_height">height</a>
</li>
<li class="index-item property">
<a href="#property_width">width</a>
</li>
<li class="index-item property">
<a href="#property_x">x</a>
</li>
<li class="index-item property">
<a href="#property_y">y</a>
</li>
</ul>
</div>
</div>
<div id="methods" class="api-class-tabpanel">
<h2 class="off-left">Methods</h2>
<div id="method_clone" class="method item">
<h3 class="name"><code>clone</code></h3>
<span class="paren">()</span>
<span class="returns-inline">
<span class="type"></span>
</span>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_core_Ellipse.js.html#l44"><code>src&#x2F;pixi&#x2F;core&#x2F;Ellipse.js:44</code></a>
</p>
</div>
<div class="description">
</div>
<div class="returns">
<h4>Returns:</h4>
<div class="returns-description">
a copy of the polygon
</div>
</div>
</div>
<div id="method_contains" class="method item">
<h3 class="name"><code>contains</code></h3>
<div class="args">
<span class="paren">(</span><ul class="args-list inline commas">
<li class="arg">
<code>x</code>
</li>
<li class="arg">
<code>y</code>
</li>
</ul><span class="paren">)</span>
</div>
<span class="returns-inline">
<span class="type"></span>
</span>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_core_Ellipse.js.html#l53"><code>src&#x2F;pixi&#x2F;core&#x2F;Ellipse.js:53</code></a>
</p>
</div>
<div class="description">
</div>
<div class="params">
<h4>Parameters:</h4>
<ul class="params-list">
<li class="param">
<code class="param-name">x</code>
<span class="type">Number</span>
<div class="param-description">
<p>The X coord of the point to test</p>
</div>
</li>
<li class="param">
<code class="param-name">y</code>
<span class="type">Number</span>
<div class="param-description">
<p>The Y coord of the point to test</p>
</div>
</li>
</ul>
</div>
<div class="returns">
<h4>Returns:</h4>
<div class="returns-description">
if the x/y coords are within this polygon
</div>
</div>
</div>
</div>
<div id="properties" class="api-class-tabpanel">
<h2 class="off-left">Properties</h2>
<div id="property_height" class="property item">
<h3 class="name"><code>height</code></h3>
<span class="type">Number</span>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_core_Ellipse.js.html#l36"><code>src&#x2F;pixi&#x2F;core&#x2F;Ellipse.js:36</code></a>
</p>
</div>
<div class="description">
</div>
<p><strong>Default:</strong> 0</p>
</div>
<div id="property_width" class="property item">
<h3 class="name"><code>width</code></h3>
<span class="type">Number</span>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_core_Ellipse.js.html#l29"><code>src&#x2F;pixi&#x2F;core&#x2F;Ellipse.js:29</code></a>
</p>
</div>
<div class="description">
</div>
<p><strong>Default:</strong> 0</p>
</div>
<div id="property_x" class="property item">
<h3 class="name"><code>x</code></h3>
<span class="type">Number</span>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_core_Ellipse.js.html#l15"><code>src&#x2F;pixi&#x2F;core&#x2F;Ellipse.js:15</code></a>
</p>
</div>
<div class="description">
</div>
<p><strong>Default:</strong> 0</p>
</div>
<div id="property_y" class="property item">
<h3 class="name"><code>y</code></h3>
<span class="type">Number</span>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_core_Ellipse.js.html#l22"><code>src&#x2F;pixi&#x2F;core&#x2F;Ellipse.js:22</code></a>
</p>
</div>
<div class="description">
</div>
<p><strong>Default:</strong> 0</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="..&#x2F;assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="..&#x2F;assets/js/yui-prettify.js"></script>
<script src="..&#x2F;assets/../api.js"></script>
<script src="..&#x2F;assets/js/api-filter.js"></script>
<script src="..&#x2F;assets/js/api-list.js"></script>
<script src="..&#x2F;assets/js/api-search.js"></script>
<script src="..&#x2F;assets/js/apidocs.js"></script>
</body>
</html>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -465,6 +469,20 @@ Complex polys will not be filled. Heres an example of a complex poly: http://www
</li>
<li class="index-item property inherited">
<a href="#property_interactive">interactive</a>
</li>
<li class="index-item property inherited">
<a href="#property_mask">mask</a>
</li>
<li class="index-item property inherited">
@ -569,7 +587,7 @@ Complex polys will not be filled. Heres an example of a complex poly: http://www
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l41"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:41</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l42"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:42</code></a>
</p>
@ -659,7 +677,7 @@ Complex polys will not be filled. Heres an example of a complex poly: http://www
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l73"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:73</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l139"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:139</code></a>
</p>
@ -920,7 +938,7 @@ Complex polys will not be filled. Heres an example of a complex poly: http://www
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l106"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:106</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l109"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:109</code></a>
</p>
@ -1487,7 +1505,7 @@ Complex polys will not be filled. Heres an example of a complex poly: http://www
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l274"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:274</code></a>
</p>
@ -1808,7 +1826,7 @@ Complex polys will not be filled. Heres an example of a complex poly: http://www
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l112"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:112</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l115"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:115</code></a>
</p>
@ -1892,7 +1910,7 @@ Complex polys will not be filled. Heres an example of a complex poly: http://www
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l138"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:138</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l141"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:141</code></a>
</p>
@ -1976,7 +1994,7 @@ Complex polys will not be filled. Heres an example of a complex poly: http://www
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l132"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:132</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l135"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:135</code></a>
</p>
@ -2060,7 +2078,7 @@ Complex polys will not be filled. Heres an example of a complex poly: http://www
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l118"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:118</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l121"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:121</code></a>
</p>
@ -2145,7 +2163,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l125"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:125</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:128</code></a>
</p>
@ -2338,7 +2356,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l186"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:186</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l291"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:291</code></a>
</p>
@ -2422,7 +2440,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l190"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:190</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l193"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:193</code></a>
</p>
@ -2433,7 +2451,8 @@ for this callback to be fired, The touch must have started over the displayObjec
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
<p>[Deprecated] Indicates if the sprite will have touch and mouse interactivity. It is false by default
Instead of using this function you can now simply set the interactive property to true or false</p>
</div>
@ -2512,7 +2531,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:128</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l227"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:227</code></a>
</p>
@ -2611,7 +2630,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l149"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:149</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l152"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:152</code></a>
</p>
@ -2696,7 +2715,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l162"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:162</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l165"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:165</code></a>
</p>
@ -2780,7 +2799,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l171"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:171</code></a>
</p>
@ -2865,7 +2884,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l156"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:156</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l159"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:159</code></a>
</p>
@ -2938,7 +2957,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l40"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:40</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l43"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:43</code></a>
</p>
@ -2979,7 +2998,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l95"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:95</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l98"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:98</code></a>
</p>
@ -3061,7 +3080,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l69"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:69</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l72"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:72</code></a>
</p>
@ -3080,6 +3099,90 @@ Setting it is a neat way of optimising the hitTest function that the interaction
</div>
<div id="property_interactive" class="property item inherited">
<h3 class="name"><code>interactive</code></h3>
<span class="type">Boolean</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_interactive">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l204"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:204</code></a>
</p>
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
</div>
</div>
<div id="property_mask" class="property item inherited">
<h3 class="name"><code>mask</code></h3>
<span class="type">PIXI.Graphics</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_mask">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l222"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:222</code></a>
</p>
</div>
<div class="description">
<p>Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
To remove a mask, set this property to null.</p>
</div>
</div>
@ -3103,7 +3206,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l55"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:55</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l58"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:58</code></a>
</p>
@ -3144,7 +3247,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l26"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:26</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l29"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:29</code></a>
</p>
@ -3185,7 +3288,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l12"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:12</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l15"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:15</code></a>
</p>
@ -3226,7 +3329,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l33"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:33</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l36"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:36</code></a>
</p>
@ -3267,7 +3370,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l19"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:19</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l22"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:22</code></a>
</p>
@ -3308,7 +3411,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l62"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:62</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l65"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:65</code></a>
</p>
@ -3349,7 +3452,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l47"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:47</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l50"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:50</code></a>
</p>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -146,7 +150,7 @@
<div class="foundat">
Defined in: <a href="..&#x2F;files&#x2F;src_pixi_InteractionManager.js.html#l524"><code>src&#x2F;pixi&#x2F;InteractionManager.js:524</code></a>
Defined in: <a href="..&#x2F;files&#x2F;src_pixi_InteractionManager.js.html#l493"><code>src&#x2F;pixi&#x2F;InteractionManager.js:493</code></a>
</div>
@ -200,7 +204,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_InteractionManager.js.html#l524"><code>src&#x2F;pixi&#x2F;InteractionManager.js:524</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_InteractionManager.js.html#l493"><code>src&#x2F;pixi&#x2F;InteractionManager.js:493</code></a>
</p>
@ -346,7 +350,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_InteractionManager.js.html#l555"><code>src&#x2F;pixi&#x2F;InteractionManager.js:555</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_InteractionManager.js.html#l524"><code>src&#x2F;pixi&#x2F;InteractionManager.js:524</code></a>
</p>
@ -435,7 +439,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_InteractionManager.js.html#l530"><code>src&#x2F;pixi&#x2F;InteractionManager.js:530</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_InteractionManager.js.html#l499"><code>src&#x2F;pixi&#x2F;InteractionManager.js:499</code></a>
</p>
@ -479,7 +483,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_InteractionManager.js.html#l547"><code>src&#x2F;pixi&#x2F;InteractionManager.js:547</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_InteractionManager.js.html#l516"><code>src&#x2F;pixi&#x2F;InteractionManager.js:516</code></a>
</p>
@ -523,7 +527,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_InteractionManager.js.html#l540"><code>src&#x2F;pixi&#x2F;InteractionManager.js:540</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_InteractionManager.js.html#l509"><code>src&#x2F;pixi&#x2F;InteractionManager.js:509</code></a>
</p>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -503,6 +507,13 @@
</li>
<li class="index-item property inherited">
<a href="#property_interactive">interactive</a>
</li>
<li class="index-item property">
@ -510,6 +521,13 @@
</li>
<li class="index-item property inherited">
<a href="#property_mask">mask</a>
</li>
<li class="index-item property">
@ -649,7 +667,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l41"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:41</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l42"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:42</code></a>
</p>
@ -739,7 +757,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l73"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:73</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l139"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:139</code></a>
</p>
@ -838,7 +856,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l106"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:106</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l109"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:109</code></a>
</p>
@ -922,7 +940,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l274"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:274</code></a>
</p>
@ -1180,7 +1198,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l112"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:112</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l115"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:115</code></a>
</p>
@ -1264,7 +1282,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l138"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:138</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l141"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:141</code></a>
</p>
@ -1348,7 +1366,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l132"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:132</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l135"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:135</code></a>
</p>
@ -1432,7 +1450,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l118"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:118</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l121"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:121</code></a>
</p>
@ -1517,7 +1535,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l125"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:125</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:128</code></a>
</p>
@ -1656,7 +1674,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l186"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:186</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l291"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:291</code></a>
</p>
@ -1740,7 +1758,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l190"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:190</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l193"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:193</code></a>
</p>
@ -1751,7 +1769,8 @@ for this callback to be fired, The touch must have started over the displayObjec
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
<p>[Deprecated] Indicates if the sprite will have touch and mouse interactivity. It is false by default
Instead of using this function you can now simply set the interactive property to true or false</p>
</div>
@ -1968,7 +1987,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:128</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l227"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:227</code></a>
</p>
@ -2067,7 +2086,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l149"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:149</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l152"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:152</code></a>
</p>
@ -2152,7 +2171,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l162"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:162</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l165"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:165</code></a>
</p>
@ -2236,7 +2255,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l171"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:171</code></a>
</p>
@ -2321,7 +2340,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l156"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:156</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l159"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:159</code></a>
</p>
@ -2394,7 +2413,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l40"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:40</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l43"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:43</code></a>
</p>
@ -2565,7 +2584,7 @@ currently supports PIXI.blendModes.NORMAL and PIXI.blendModes.SCREEN</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l95"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:95</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l98"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:98</code></a>
</p>
@ -2732,7 +2751,7 @@ currently supports PIXI.blendModes.NORMAL and PIXI.blendModes.SCREEN</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l69"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:69</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l72"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:72</code></a>
</p>
@ -2751,6 +2770,47 @@ Setting it is a neat way of optimising the hitTest function that the interaction
</div>
<div id="property_interactive" class="property item inherited">
<h3 class="name"><code>interactive</code></h3>
<span class="type">Boolean</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_interactive">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l204"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:204</code></a>
</p>
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
</div>
</div>
@ -2795,6 +2855,49 @@ Setting it is a neat way of optimising the hitTest function that the interaction
</div>
<div id="property_mask" class="property item inherited">
<h3 class="name"><code>mask</code></h3>
<span class="type">PIXI.Graphics</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_mask">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l222"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:222</code></a>
</p>
</div>
<div class="description">
<p>Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
To remove a mask, set this property to null.</p>
</div>
</div>
@ -2862,7 +2965,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l55"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:55</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l58"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:58</code></a>
</p>
@ -2903,7 +3006,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l26"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:26</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l29"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:29</code></a>
</p>
@ -2988,7 +3091,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l12"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:12</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l15"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:15</code></a>
</p>
@ -3029,7 +3132,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l33"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:33</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l36"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:36</code></a>
</p>
@ -3070,7 +3173,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l19"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:19</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l22"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:22</code></a>
</p>
@ -3111,7 +3214,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l62"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:62</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l65"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:65</code></a>
</p>
@ -3237,7 +3340,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l47"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:47</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l50"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:50</code></a>
</p>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -233,13 +237,14 @@
<li class="param">
<code class="param-name">points</code>
<span class="type">Array</span>
<span class="type">Array<Point> | Array<Number></span>
<div class="param-description">
<p>This cna be an array of Points or a flat array of numbers
that will be interpreted as [x,y, x,y, ...]</p>
</div>
@ -284,6 +289,13 @@
</li>
<li class="index-item method">
<a href="#method_contains">contains</a>
</li>
</ul>
@ -338,7 +350,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_core_Polygon.js.html#l15"><code>src&#x2F;pixi&#x2F;core&#x2F;Polygon.js:15</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_core_Polygon.js.html#l28"><code>src&#x2F;pixi&#x2F;core&#x2F;Polygon.js:28</code></a>
</p>
@ -368,6 +380,129 @@
</div>
<div id="method_contains" class="method item">
<h3 class="name"><code>contains</code></h3>
<div class="args">
<span class="paren">(</span><ul class="args-list inline commas">
<li class="arg">
<code>x</code>
</li>
<li class="arg">
<code>y</code>
</li>
</ul><span class="paren">)</span>
</div>
<span class="returns-inline">
<span class="type"></span>
</span>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_core_Polygon.js.html#l42"><code>src&#x2F;pixi&#x2F;core&#x2F;Polygon.js:42</code></a>
</p>
</div>
<div class="description">
</div>
<div class="params">
<h4>Parameters:</h4>
<ul class="params-list">
<li class="param">
<code class="param-name">x</code>
<span class="type">Number</span>
<div class="param-description">
<p>The X coord of the point to test</p>
</div>
</li>
<li class="param">
<code class="param-name">y</code>
<span class="type">Number</span>
<div class="param-description">
<p>The Y coord of the point to test</p>
</div>
</li>
</ul>
</div>
<div class="returns">
<h4>Returns:</h4>
<div class="returns-description">
if the x/y coords are within this polygon
</div>
</div>
</div>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -349,6 +353,13 @@
</li>
<li class="index-item method">
<a href="#method_contains">contains</a>
</li>
</ul>
@ -469,6 +480,129 @@
</div>
<div id="method_contains" class="method item">
<h3 class="name"><code>contains</code></h3>
<div class="args">
<span class="paren">(</span><ul class="args-list inline commas">
<li class="arg">
<code>x</code>
</li>
<li class="arg">
<code>y</code>
</li>
</ul><span class="paren">)</span>
</div>
<span class="returns-inline">
<span class="type"></span>
</span>
<div class="meta">
<p>
Defined in
<a href="..&#x2F;files&#x2F;src_pixi_core_Rectangle.js.html#l54"><code>src&#x2F;pixi&#x2F;core&#x2F;Rectangle.js:54</code></a>
</p>
</div>
<div class="description">
</div>
<div class="params">
<h4>Parameters:</h4>
<ul class="params-list">
<li class="param">
<code class="param-name">x</code>
<span class="type">Number</span>
<div class="param-description">
<p>The X coord of the point to test</p>
</div>
</li>
<li class="param">
<code class="param-name">y</code>
<span class="type">Number</span>
<div class="param-description">
<p>The Y coord of the point to test</p>
</div>
</li>
</ul>
</div>
<div class="returns">
<h4>Returns:</h4>
<div class="returns-description">
if the x/y coords are within this polygon
</div>
</div>
</div>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -438,6 +442,20 @@ When loaded this class will dispatch a "loaded" event</p>
</li>
<li class="index-item property inherited">
<a href="#property_interactive">interactive</a>
</li>
<li class="index-item property inherited">
<a href="#property_mask">mask</a>
</li>
<li class="index-item property inherited">
@ -542,7 +560,7 @@ When loaded this class will dispatch a "loaded" event</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l41"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:41</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l42"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:42</code></a>
</p>
@ -632,7 +650,7 @@ When loaded this class will dispatch a "loaded" event</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l73"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:73</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l139"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:139</code></a>
</p>
@ -731,7 +749,7 @@ When loaded this class will dispatch a "loaded" event</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l106"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:106</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l109"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:109</code></a>
</p>
@ -815,7 +833,7 @@ When loaded this class will dispatch a "loaded" event</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l274"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:274</code></a>
</p>
@ -899,7 +917,7 @@ When loaded this class will dispatch a "loaded" event</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l112"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:112</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l115"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:115</code></a>
</p>
@ -983,7 +1001,7 @@ When loaded this class will dispatch a "loaded" event</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l138"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:138</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l141"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:141</code></a>
</p>
@ -1067,7 +1085,7 @@ When loaded this class will dispatch a "loaded" event</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l132"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:132</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l135"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:135</code></a>
</p>
@ -1151,7 +1169,7 @@ When loaded this class will dispatch a "loaded" event</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l118"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:118</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l121"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:121</code></a>
</p>
@ -1236,7 +1254,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l125"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:125</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:128</code></a>
</p>
@ -1321,7 +1339,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l186"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:186</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l291"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:291</code></a>
</p>
@ -1405,7 +1423,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l190"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:190</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l193"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:193</code></a>
</p>
@ -1416,7 +1434,8 @@ for this callback to be fired, The touch must have started over the displayObjec
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
<p>[Deprecated] Indicates if the sprite will have touch and mouse interactivity. It is false by default
Instead of using this function you can now simply set the interactive property to true or false</p>
</div>
@ -1495,7 +1514,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:128</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l227"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:227</code></a>
</p>
@ -1594,7 +1613,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l149"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:149</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l152"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:152</code></a>
</p>
@ -1679,7 +1698,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l162"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:162</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l165"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:165</code></a>
</p>
@ -1763,7 +1782,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l171"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:171</code></a>
</p>
@ -1848,7 +1867,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l156"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:156</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l159"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:159</code></a>
</p>
@ -1921,7 +1940,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l40"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:40</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l43"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:43</code></a>
</p>
@ -1962,7 +1981,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l95"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:95</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l98"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:98</code></a>
</p>
@ -2044,7 +2063,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l69"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:69</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l72"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:72</code></a>
</p>
@ -2063,6 +2082,90 @@ Setting it is a neat way of optimising the hitTest function that the interaction
</div>
<div id="property_interactive" class="property item inherited">
<h3 class="name"><code>interactive</code></h3>
<span class="type">Boolean</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_interactive">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l204"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:204</code></a>
</p>
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
</div>
</div>
<div id="property_mask" class="property item inherited">
<h3 class="name"><code>mask</code></h3>
<span class="type">PIXI.Graphics</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_mask">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l222"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:222</code></a>
</p>
</div>
<div class="description">
<p>Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
To remove a mask, set this property to null.</p>
</div>
</div>
@ -2086,7 +2189,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l55"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:55</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l58"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:58</code></a>
</p>
@ -2127,7 +2230,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l26"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:26</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l29"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:29</code></a>
</p>
@ -2168,7 +2271,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l12"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:12</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l15"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:15</code></a>
</p>
@ -2209,7 +2312,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l33"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:33</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l36"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:36</code></a>
</p>
@ -2250,7 +2353,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l19"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:19</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l22"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:22</code></a>
</p>
@ -2291,7 +2394,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l62"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:62</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l65"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:65</code></a>
</p>
@ -2332,7 +2435,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l47"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:47</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l50"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:50</code></a>
</p>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -479,6 +483,20 @@
</li>
<li class="index-item property inherited">
<a href="#property_interactive">interactive</a>
</li>
<li class="index-item property inherited">
<a href="#property_mask">mask</a>
</li>
<li class="index-item property inherited">
@ -597,7 +615,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l41"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:41</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l42"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:42</code></a>
</p>
@ -687,7 +705,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l73"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:73</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l139"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:139</code></a>
</p>
@ -786,7 +804,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l106"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:106</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l109"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:109</code></a>
</p>
@ -1084,7 +1102,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l274"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:274</code></a>
</p>
@ -1168,7 +1186,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l112"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:112</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l115"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:115</code></a>
</p>
@ -1252,7 +1270,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l138"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:138</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l141"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:141</code></a>
</p>
@ -1336,7 +1354,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l132"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:132</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l135"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:135</code></a>
</p>
@ -1420,7 +1438,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l118"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:118</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l121"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:121</code></a>
</p>
@ -1505,7 +1523,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l125"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:125</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:128</code></a>
</p>
@ -1590,7 +1608,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l186"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:186</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l291"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:291</code></a>
</p>
@ -1674,7 +1692,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l190"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:190</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l193"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:193</code></a>
</p>
@ -1685,7 +1703,8 @@ for this callback to be fired, The touch must have started over the displayObjec
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
<p>[Deprecated] Indicates if the sprite will have touch and mouse interactivity. It is false by default
Instead of using this function you can now simply set the interactive property to true or false</p>
</div>
@ -1851,7 +1870,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:128</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l227"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:227</code></a>
</p>
@ -1950,7 +1969,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l149"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:149</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l152"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:152</code></a>
</p>
@ -2035,7 +2054,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l162"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:162</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l165"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:165</code></a>
</p>
@ -2119,7 +2138,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l171"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:171</code></a>
</p>
@ -2204,7 +2223,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l156"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:156</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l159"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:159</code></a>
</p>
@ -2277,7 +2296,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l40"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:40</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l43"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:43</code></a>
</p>
@ -2410,7 +2429,7 @@ currently supports PIXI.blendModes.NORMAL and PIXI.blendModes.SCREEN</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l95"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:95</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l98"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:98</code></a>
</p>
@ -2536,7 +2555,7 @@ currently supports PIXI.blendModes.NORMAL and PIXI.blendModes.SCREEN</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l69"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:69</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l72"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:72</code></a>
</p>
@ -2555,6 +2574,90 @@ Setting it is a neat way of optimising the hitTest function that the interaction
</div>
<div id="property_interactive" class="property item inherited">
<h3 class="name"><code>interactive</code></h3>
<span class="type">Boolean</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_interactive">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l204"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:204</code></a>
</p>
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
</div>
</div>
<div id="property_mask" class="property item inherited">
<h3 class="name"><code>mask</code></h3>
<span class="type">PIXI.Graphics</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_mask">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l222"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:222</code></a>
</p>
</div>
<div class="description">
<p>Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
To remove a mask, set this property to null.</p>
</div>
</div>
@ -2578,7 +2681,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l55"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:55</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l58"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:58</code></a>
</p>
@ -2619,7 +2722,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l26"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:26</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l29"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:29</code></a>
</p>
@ -2660,7 +2763,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l12"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:12</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l15"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:15</code></a>
</p>
@ -2701,7 +2804,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l33"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:33</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l36"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:36</code></a>
</p>
@ -2742,7 +2845,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l19"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:19</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l22"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:22</code></a>
</p>
@ -2783,7 +2886,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l62"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:62</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l65"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:65</code></a>
</p>
@ -2868,7 +2971,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l47"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:47</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l50"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:50</code></a>
</p>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -475,6 +479,20 @@
</li>
<li class="index-item property inherited">
<a href="#property_interactive">interactive</a>
</li>
<li class="index-item property inherited">
<a href="#property_mask">mask</a>
</li>
<li class="index-item property inherited">
@ -579,7 +597,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l41"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:41</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l42"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:42</code></a>
</p>
@ -669,7 +687,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l73"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:73</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l139"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:139</code></a>
</p>
@ -768,7 +786,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l106"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:106</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l109"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:109</code></a>
</p>
@ -852,7 +870,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l274"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:274</code></a>
</p>
@ -933,7 +951,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_Stage.js.html#l76"><code>src&#x2F;pixi&#x2F;display&#x2F;Stage.js:76</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_Stage.js.html#l78"><code>src&#x2F;pixi&#x2F;display&#x2F;Stage.js:78</code></a>
</p>
@ -1007,7 +1025,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l112"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:112</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l115"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:115</code></a>
</p>
@ -1091,7 +1109,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l138"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:138</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l141"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:141</code></a>
</p>
@ -1175,7 +1193,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l132"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:132</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l135"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:135</code></a>
</p>
@ -1259,7 +1277,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l118"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:118</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l121"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:121</code></a>
</p>
@ -1344,7 +1362,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l125"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:125</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:128</code></a>
</p>
@ -1429,7 +1447,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l186"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:186</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l291"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:291</code></a>
</p>
@ -1516,7 +1534,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_Stage.js.html#l63"><code>src&#x2F;pixi&#x2F;display&#x2F;Stage.js:63</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_Stage.js.html#l65"><code>src&#x2F;pixi&#x2F;display&#x2F;Stage.js:65</code></a>
</p>
@ -1600,7 +1618,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l190"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:190</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l193"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:193</code></a>
</p>
@ -1611,7 +1629,8 @@ for this callback to be fired, The touch must have started over the displayObjec
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
<p>[Deprecated] Indicates if the sprite will have touch and mouse interactivity. It is false by default
Instead of using this function you can now simply set the interactive property to true or false</p>
</div>
@ -1690,7 +1709,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:128</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l227"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:227</code></a>
</p>
@ -1789,7 +1808,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l149"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:149</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l152"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:152</code></a>
</p>
@ -1874,7 +1893,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l162"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:162</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l165"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:165</code></a>
</p>
@ -1958,7 +1977,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l171"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:171</code></a>
</p>
@ -2043,7 +2062,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l156"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:156</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l159"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:159</code></a>
</p>
@ -2120,7 +2139,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_Stage.js.html#l40"><code>src&#x2F;pixi&#x2F;display&#x2F;Stage.js:40</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_Stage.js.html#l42"><code>src&#x2F;pixi&#x2F;display&#x2F;Stage.js:42</code></a>
</p>
@ -2170,7 +2189,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l40"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:40</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l43"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:43</code></a>
</p>
@ -2211,7 +2230,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l95"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:95</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l98"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:98</code></a>
</p>
@ -2293,7 +2312,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l69"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:69</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l72"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:72</code></a>
</p>
@ -2312,6 +2331,90 @@ Setting it is a neat way of optimising the hitTest function that the interaction
</div>
<div id="property_interactive" class="property item inherited">
<h3 class="name"><code>interactive</code></h3>
<span class="type">Boolean</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_interactive">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l204"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:204</code></a>
</p>
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
</div>
</div>
<div id="property_mask" class="property item inherited">
<h3 class="name"><code>mask</code></h3>
<span class="type">PIXI.Graphics</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_mask">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l222"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:222</code></a>
</p>
</div>
<div class="description">
<p>Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
To remove a mask, set this property to null.</p>
</div>
</div>
@ -2335,7 +2438,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l55"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:55</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l58"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:58</code></a>
</p>
@ -2376,7 +2479,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l26"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:26</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l29"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:29</code></a>
</p>
@ -2417,7 +2520,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l12"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:12</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l15"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:15</code></a>
</p>
@ -2458,7 +2561,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l33"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:33</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l36"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:36</code></a>
</p>
@ -2499,7 +2602,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l19"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:19</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l22"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:22</code></a>
</p>
@ -2540,7 +2643,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l62"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:62</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l65"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:65</code></a>
</p>
@ -2581,7 +2684,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l47"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:47</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l50"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:50</code></a>
</p>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -592,6 +596,20 @@
</li>
<li class="index-item property inherited">
<a href="#property_interactive">interactive</a>
</li>
<li class="index-item property inherited">
<a href="#property_mask">mask</a>
</li>
<li class="index-item property inherited">
@ -710,7 +728,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l41"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:41</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l42"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:42</code></a>
</p>
@ -800,7 +818,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l73"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:73</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l139"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:139</code></a>
</p>
@ -899,7 +917,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l106"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:106</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l109"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:109</code></a>
</p>
@ -983,7 +1001,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l274"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:274</code></a>
</p>
@ -1067,7 +1085,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l112"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:112</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l115"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:115</code></a>
</p>
@ -1151,7 +1169,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l138"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:138</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l141"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:141</code></a>
</p>
@ -1235,7 +1253,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l132"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:132</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l135"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:135</code></a>
</p>
@ -1319,7 +1337,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l118"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:118</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l121"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:121</code></a>
</p>
@ -1404,7 +1422,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l125"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:125</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:128</code></a>
</p>
@ -1489,7 +1507,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l186"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:186</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l291"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:291</code></a>
</p>
@ -1573,7 +1591,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l190"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:190</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l193"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:193</code></a>
</p>
@ -1584,7 +1602,8 @@ for this callback to be fired, The touch must have started over the displayObjec
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
<p>[Deprecated] Indicates if the sprite will have touch and mouse interactivity. It is false by default
Instead of using this function you can now simply set the interactive property to true or false</p>
</div>
@ -1944,7 +1963,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:128</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l227"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:227</code></a>
</p>
@ -2043,7 +2062,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l149"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:149</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l152"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:152</code></a>
</p>
@ -2128,7 +2147,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l162"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:162</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l165"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:165</code></a>
</p>
@ -2212,7 +2231,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l171"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:171</code></a>
</p>
@ -2297,7 +2316,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l156"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:156</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l159"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:159</code></a>
</p>
@ -2370,7 +2389,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l40"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:40</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l43"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:43</code></a>
</p>
@ -2497,7 +2516,7 @@ currently supports PIXI.blendModes.NORMAL and PIXI.blendModes.SCREEN</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l95"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:95</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l98"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:98</code></a>
</p>
@ -2620,7 +2639,7 @@ currently supports PIXI.blendModes.NORMAL and PIXI.blendModes.SCREEN</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l69"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:69</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l72"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:72</code></a>
</p>
@ -2639,6 +2658,90 @@ Setting it is a neat way of optimising the hitTest function that the interaction
</div>
<div id="property_interactive" class="property item inherited">
<h3 class="name"><code>interactive</code></h3>
<span class="type">Boolean</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_interactive">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l204"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:204</code></a>
</p>
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
</div>
</div>
<div id="property_mask" class="property item inherited">
<h3 class="name"><code>mask</code></h3>
<span class="type">PIXI.Graphics</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_mask">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l222"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:222</code></a>
</p>
</div>
<div class="description">
<p>Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
To remove a mask, set this property to null.</p>
</div>
</div>
@ -2662,7 +2765,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l55"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:55</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l58"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:58</code></a>
</p>
@ -2703,7 +2806,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l26"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:26</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l29"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:29</code></a>
</p>
@ -2744,7 +2847,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l12"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:12</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l15"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:15</code></a>
</p>
@ -2785,7 +2888,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l33"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:33</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l36"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:36</code></a>
</p>
@ -2826,7 +2929,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l19"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:19</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l22"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:22</code></a>
</p>
@ -2867,7 +2970,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l62"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:62</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l65"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:65</code></a>
</p>
@ -2949,7 +3052,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l47"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:47</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l50"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:50</code></a>
</p>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -475,6 +479,20 @@
</li>
<li class="index-item property inherited">
<a href="#property_interactive">interactive</a>
</li>
<li class="index-item property inherited">
<a href="#property_mask">mask</a>
</li>
<li class="index-item property inherited">
@ -593,7 +611,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l41"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:41</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l42"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:42</code></a>
</p>
@ -683,7 +701,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l73"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:73</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l139"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:139</code></a>
</p>
@ -782,7 +800,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l106"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:106</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l109"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:109</code></a>
</p>
@ -866,7 +884,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l274"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:274</code></a>
</p>
@ -950,7 +968,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l112"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:112</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l115"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:115</code></a>
</p>
@ -1034,7 +1052,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l138"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:138</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l141"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:141</code></a>
</p>
@ -1118,7 +1136,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l132"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:132</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l135"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:135</code></a>
</p>
@ -1202,7 +1220,7 @@
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l118"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:118</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l121"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:121</code></a>
</p>
@ -1287,7 +1305,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l125"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:125</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:128</code></a>
</p>
@ -1372,7 +1390,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l186"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:186</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l291"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:291</code></a>
</p>
@ -1456,7 +1474,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l190"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:190</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l193"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:193</code></a>
</p>
@ -1467,7 +1485,8 @@ for this callback to be fired, The touch must have started over the displayObjec
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
<p>[Deprecated] Indicates if the sprite will have touch and mouse interactivity. It is false by default
Instead of using this function you can now simply set the interactive property to true or false</p>
</div>
@ -1546,7 +1565,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l128"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:128</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObjectContainer.js.html#l227"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObjectContainer.js:227</code></a>
</p>
@ -1645,7 +1664,7 @@ for this callback to be fired, The touch must have started over the displayObjec
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l149"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:149</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l152"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:152</code></a>
</p>
@ -1730,7 +1749,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l162"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:162</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l165"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:165</code></a>
</p>
@ -1814,7 +1833,7 @@ basically a touch version of click</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l168"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:168</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l171"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:171</code></a>
</p>
@ -1899,7 +1918,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l156"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:156</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l159"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:159</code></a>
</p>
@ -1972,7 +1991,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l40"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:40</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l43"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:43</code></a>
</p>
@ -2013,7 +2032,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l95"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:95</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l98"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:98</code></a>
</p>
@ -2095,7 +2114,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l69"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:69</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l72"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:72</code></a>
</p>
@ -2114,6 +2133,90 @@ Setting it is a neat way of optimising the hitTest function that the interaction
</div>
<div id="property_interactive" class="property item inherited">
<h3 class="name"><code>interactive</code></h3>
<span class="type">Boolean</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_interactive">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l204"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:204</code></a>
</p>
</div>
<div class="description">
<p>Indicates if the sprite will have touch and mouse interactivity. It is false by default</p>
</div>
</div>
<div id="property_mask" class="property item inherited">
<h3 class="name"><code>mask</code></h3>
<span class="type">PIXI.Graphics</span>
<div class="meta">
<p>Inherited from
<a href="..&#x2F;classes&#x2F;DisplayObject.html#property_mask">DisplayObject</a>:
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l222"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:222</code></a>
</p>
</div>
<div class="description">
<p>Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
To remove a mask, set this property to null.</p>
</div>
</div>
@ -2137,7 +2240,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l55"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:55</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l58"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:58</code></a>
</p>
@ -2178,7 +2281,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l26"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:26</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l29"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:29</code></a>
</p>
@ -2219,7 +2322,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l12"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:12</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l15"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:15</code></a>
</p>
@ -2260,7 +2363,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l33"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:33</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l36"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:36</code></a>
</p>
@ -2301,7 +2404,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l19"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:19</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l22"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:22</code></a>
</p>
@ -2342,7 +2445,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l62"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:62</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l65"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:65</code></a>
</p>
@ -2386,7 +2489,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_extras_TilingSprite.js.html#l29"><code>src&#x2F;pixi&#x2F;extras&#x2F;TilingSprite.js:29</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_extras_TilingSprite.js.html#l28"><code>src&#x2F;pixi&#x2F;extras&#x2F;TilingSprite.js:28</code></a>
</p>
@ -2430,7 +2533,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_extras_TilingSprite.js.html#l23"><code>src&#x2F;pixi&#x2F;extras&#x2F;TilingSprite.js:23</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_extras_TilingSprite.js.html#l22"><code>src&#x2F;pixi&#x2F;extras&#x2F;TilingSprite.js:22</code></a>
</p>
@ -2471,7 +2574,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l47"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:47</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_display_DisplayObject.js.html#l50"><code>src&#x2F;pixi&#x2F;display&#x2F;DisplayObject.js:50</code></a>
</p>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -415,7 +419,7 @@ Dont forget to add the view to your DOM or you will not see anything :)</p>
<a href="..&#x2F;files&#x2F;src_pixi_renderers_webgl_WebGLRenderer.js.html#l116"><code>src&#x2F;pixi&#x2F;renderers&#x2F;webgl&#x2F;WebGLRenderer.js:116</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_renderers_webgl_WebGLRenderer.js.html#l121"><code>src&#x2F;pixi&#x2F;renderers&#x2F;webgl&#x2F;WebGLRenderer.js:121</code></a>
</p>
@ -508,7 +512,7 @@ Dont forget to add the view to your DOM or you will not see anything :)</p>
<a href="..&#x2F;files&#x2F;src_pixi_renderers_webgl_WebGLRenderer.js.html#l258"><code>src&#x2F;pixi&#x2F;renderers&#x2F;webgl&#x2F;WebGLRenderer.js:258</code></a>
<a href="..&#x2F;files&#x2F;src_pixi_renderers_webgl_WebGLRenderer.js.html#l263"><code>src&#x2F;pixi&#x2F;renderers&#x2F;webgl&#x2F;WebGLRenderer.js:263</code></a>
</p>

View file

@ -7,6 +7,24 @@
"logo": "http://www.goodboydigital.com/pixijs/logo_small.png"
},
"files": {
"src/pixi/core/Circle.js": {
"name": "src/pixi/core/Circle.js",
"modules": {},
"classes": {
"Circle": 1
},
"fors": {},
"namespaces": {}
},
"src/pixi/core/Ellipse.js": {
"name": "src/pixi/core/Ellipse.js",
"modules": {},
"classes": {
"Ellipse": 1
},
"fors": {},
"namespaces": {}
},
"src/pixi/core/Point.js": {
"name": "src/pixi/core/Point.js",
"modules": {},
@ -118,6 +136,20 @@
"fors": {},
"namespaces": {}
},
"src/pixi/filters/FilterBlock.js": {
"name": "src/pixi/filters/FilterBlock.js",
"modules": {},
"classes": {},
"fors": {},
"namespaces": {}
},
"src/pixi/filters/MaskFilter.js": {
"name": "src/pixi/filters/MaskFilter.js",
"modules": {},
"classes": {},
"fors": {},
"namespaces": {}
},
"src/pixi/loaders/AssetLoader.js": {
"name": "src/pixi/loaders/AssetLoader.js",
"modules": {},
@ -343,6 +375,8 @@
"name": "PIXI",
"submodules": {},
"classes": {
"Circle": 1,
"Ellipse": 1,
"Point": 1,
"Polygon": 1,
"Rectangle": 1,
@ -376,10 +410,75 @@
"namespaces": {},
"tag": "module",
"file": "src/pixi/InteractionManager.js",
"line": 524
"line": 493
}
},
"classes": {
"Circle": {
"name": "Circle",
"shortname": "Circle",
"classitems": [],
"plugins": [],
"extensions": [],
"plugin_for": [],
"extension_for": [],
"module": "PIXI",
"file": "src/pixi/core/Circle.js",
"line": 5,
"is_constructor": 1,
"params": [
{
"name": "x",
"description": "The X coord of the upper-left corner of the framing rectangle of this circle",
"type": "Number"
},
{
"name": "y",
"description": "The Y coord of the upper-left corner of the framing rectangle of this circle",
"type": "Number"
},
{
"name": "radius",
"description": "The radius of the circle",
"type": "Number"
}
]
},
"Ellipse": {
"name": "Ellipse",
"shortname": "Ellipse",
"classitems": [],
"plugins": [],
"extensions": [],
"plugin_for": [],
"extension_for": [],
"module": "PIXI",
"file": "src/pixi/core/Ellipse.js",
"line": 5,
"is_constructor": 1,
"params": [
{
"name": "x",
"description": "The X coord of the upper-left corner of the framing rectangle of this circle",
"type": "Number"
},
{
"name": "y",
"description": "The Y coord of the upper-left corner of the framing rectangle of this circle",
"type": "Number"
},
{
"name": "width",
"description": "The overall height of this ellipse",
"type": "Number"
},
{
"name": "height",
"description": "The overall width of this ellipse",
"type": "Number"
}
]
},
"Point": {
"name": "Point",
"shortname": "Point",
@ -421,8 +520,8 @@
"params": [
{
"name": "points",
"description": "",
"type": "Array"
"description": "This cna be an array of Points or a flat array of numbers\n that will be interpreted as [x,y, x,y, ...]",
"type": "Array<Point>|Array<Number>"
}
]
},
@ -1112,11 +1211,150 @@
"extension_for": [],
"module": "PIXI",
"file": "src/pixi/InteractionManager.js",
"line": 524,
"line": 493,
"is_constructor": 1
}
},
"classitems": [
{
"file": "src/pixi/core/Circle.js",
"line": 1,
"author": "Chad Engler <chad@pantherdev.com>",
"class": "Circle"
},
{
"file": "src/pixi/core/Circle.js",
"line": 14,
"itemtype": "property",
"name": "x",
"type": "Number",
"default": "0",
"class": "Circle"
},
{
"file": "src/pixi/core/Circle.js",
"line": 21,
"itemtype": "property",
"name": "y",
"type": "Number",
"default": "0",
"class": "Circle"
},
{
"file": "src/pixi/core/Circle.js",
"line": 28,
"itemtype": "property",
"name": "radius",
"type": "Number",
"default": "0",
"class": "Circle"
},
{
"file": "src/pixi/core/Circle.js",
"line": 36,
"itemtype": "method",
"name": "clone",
"return": {
"description": "a copy of the polygon"
},
"class": "Circle"
},
{
"file": "src/pixi/core/Circle.js",
"line": 45,
"itemtype": "method",
"name": "contains",
"params": [
{
"name": "x",
"description": "The X coord of the point to test",
"type": "Number"
},
{
"name": "y",
"description": "The Y coord of the point to test",
"type": "Number"
}
],
"return": {
"description": "if the x/y coords are within this polygon"
},
"class": "Circle"
},
{
"file": "src/pixi/core/Ellipse.js",
"line": 1,
"author": "Chad Engler <chad@pantherdev.com>",
"class": "Ellipse"
},
{
"file": "src/pixi/core/Ellipse.js",
"line": 15,
"itemtype": "property",
"name": "x",
"type": "Number",
"default": "0",
"class": "Ellipse"
},
{
"file": "src/pixi/core/Ellipse.js",
"line": 22,
"itemtype": "property",
"name": "y",
"type": "Number",
"default": "0",
"class": "Ellipse"
},
{
"file": "src/pixi/core/Ellipse.js",
"line": 29,
"itemtype": "property",
"name": "width",
"type": "Number",
"default": "0",
"class": "Ellipse"
},
{
"file": "src/pixi/core/Ellipse.js",
"line": 36,
"itemtype": "property",
"name": "height",
"type": "Number",
"default": "0",
"class": "Ellipse"
},
{
"file": "src/pixi/core/Ellipse.js",
"line": 44,
"itemtype": "method",
"name": "clone",
"return": {
"description": "a copy of the polygon"
},
"class": "Ellipse"
},
{
"file": "src/pixi/core/Ellipse.js",
"line": 53,
"itemtype": "method",
"name": "contains",
"params": [
{
"name": "x",
"description": "The X coord of the point to test",
"type": "Number"
},
{
"name": "y",
"description": "The Y coord of the point to test",
"type": "Number"
}
],
"return": {
"description": "if the x/y coords are within this polygon"
},
"class": "Ellipse"
},
{
"file": "src/pixi/core/Point.js",
"line": 1,
@ -1159,7 +1397,7 @@
},
{
"file": "src/pixi/core/Polygon.js",
"line": 15,
"line": 28,
"itemtype": "method",
"name": "clone",
"return": {
@ -1167,6 +1405,28 @@
},
"class": "Polygon"
},
{
"file": "src/pixi/core/Polygon.js",
"line": 42,
"itemtype": "method",
"name": "contains",
"params": [
{
"name": "x",
"description": "The X coord of the point to test",
"type": "Number"
},
{
"name": "y",
"description": "The Y coord of the point to test",
"type": "Number"
}
],
"return": {
"description": "if the x/y coords are within this polygon"
},
"class": "Polygon"
},
{
"file": "src/pixi/core/Rectangle.js",
"line": 1,
@ -1219,6 +1479,28 @@
},
"class": "Rectangle"
},
{
"file": "src/pixi/core/Rectangle.js",
"line": 54,
"itemtype": "method",
"name": "contains",
"params": [
{
"name": "x",
"description": "The X coord of the point to test",
"type": "Number"
},
{
"name": "y",
"description": "The Y coord of the point to test",
"type": "Number"
}
],
"return": {
"description": "if the x/y coords are within this polygon"
},
"class": "Rectangle"
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 1,
@ -1227,7 +1509,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 12,
"line": 15,
"description": "The coordinate of the object relative to the local coordinates of the parent.",
"itemtype": "property",
"name": "position",
@ -1236,7 +1518,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 19,
"line": 22,
"description": "The scale factor of the object.",
"itemtype": "property",
"name": "scale",
@ -1245,7 +1527,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 26,
"line": 29,
"description": "The pivot point of the displayObject that it rotates around",
"itemtype": "property",
"name": "pivot",
@ -1254,7 +1536,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 33,
"line": 36,
"description": "The rotation of the object in radians.",
"itemtype": "property",
"name": "rotation",
@ -1263,7 +1545,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 40,
"line": 43,
"description": "The opacity of the object.",
"itemtype": "property",
"name": "alpha",
@ -1272,7 +1554,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 47,
"line": 50,
"description": "The visibility of the object.",
"itemtype": "property",
"name": "visible",
@ -1281,7 +1563,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 55,
"line": 58,
"description": "[read-only] The display object container that contains this display object.",
"itemtype": "property",
"name": "parent",
@ -1290,7 +1572,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 62,
"line": 65,
"description": "[read-only] The stage the display object is connected to, or undefined if it is not connected to the stage.",
"itemtype": "property",
"name": "stage",
@ -1299,7 +1581,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 69,
"line": 72,
"description": "This is the defined area that will pick up mouse / touch events. It is null by default.\nSetting it is a neat way of optimising the hitTest function that the interactionManager will use (as it will not need to hit test all the children)",
"itemtype": "property",
"name": "hitArea",
@ -1308,7 +1590,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 95,
"line": 98,
"description": "This is used to indicate if the displayObject should display a mouse hand cursor on rollover",
"itemtype": "property",
"name": "buttonMode",
@ -1317,7 +1599,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 106,
"line": 109,
"description": "A callback that is used when the users clicks on the displayObject with their mouse",
"itemtype": "method",
"name": "click",
@ -1332,7 +1614,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 112,
"line": 115,
"description": "A callback that is used when the user clicks the mouse down over the sprite",
"itemtype": "method",
"name": "mousedown",
@ -1347,7 +1629,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 118,
"line": 121,
"description": "A callback that is used when the user releases the mouse that was over the displayObject\nfor this callback to be fired the mouse must have been pressed down over the displayObject",
"itemtype": "method",
"name": "mouseup",
@ -1362,7 +1644,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 125,
"line": 128,
"description": "A callback that is used when the user releases the mouse that was over the displayObject but is no longer over the displayObject\nfor this callback to be fired, The touch must have started over the displayObject",
"itemtype": "method",
"name": "mouseupoutside",
@ -1377,7 +1659,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 132,
"line": 135,
"description": "A callback that is used when the users mouse rolls over the displayObject",
"itemtype": "method",
"name": "mouseover",
@ -1392,7 +1674,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 138,
"line": 141,
"description": "A callback that is used when the users mouse leaves the displayObject",
"itemtype": "method",
"name": "mouseout",
@ -1407,7 +1689,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 149,
"line": 152,
"description": "A callback that is used when the users taps on the sprite with their finger\nbasically a touch version of click",
"itemtype": "method",
"name": "tap",
@ -1422,7 +1704,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 156,
"line": 159,
"description": "A callback that is used when the user touch's over the displayObject",
"itemtype": "method",
"name": "touchstart",
@ -1437,7 +1719,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 162,
"line": 165,
"description": "A callback that is used when the user releases a touch over the displayObject",
"itemtype": "method",
"name": "touchend",
@ -1452,7 +1734,7 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 168,
"line": 171,
"description": "A callback that is used when the user releases the touch that was over the displayObject\nfor this callback to be fired, The touch must have started over the sprite",
"itemtype": "method",
"name": "touchendoutside",
@ -1467,8 +1749,8 @@
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 190,
"description": "Indicates if the sprite will have touch and mouse interactivity. It is false by default",
"line": 193,
"description": "[Deprecated] Indicates if the sprite will have touch and mouse interactivity. It is false by default\nInstead of using this function you can now simply set the interactive property to true or false",
"itemtype": "method",
"name": "setInteractive",
"params": [
@ -1483,6 +1765,24 @@
{
"file": "src/pixi/display/DisplayObject.js",
"line": 204,
"description": "Indicates if the sprite will have touch and mouse interactivity. It is false by default",
"itemtype": "property",
"name": "interactive",
"type": "Boolean",
"class": "DisplayObject"
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 222,
"description": "Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.\nIn PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.\nTo remove a mask, set this property to null.",
"itemtype": "property",
"name": "mask",
"type": "PIXI.Graphics",
"class": "DisplayObject"
},
{
"file": "src/pixi/display/DisplayObject.js",
"line": 403,
"access": "private",
"tagname": "",
"class": "DisplayObject"
@ -1504,7 +1804,7 @@
},
{
"file": "src/pixi/display/DisplayObjectContainer.js",
"line": 41,
"line": 42,
"description": "Adds a child to the container.",
"itemtype": "method",
"name": "addChild",
@ -1519,7 +1819,7 @@
},
{
"file": "src/pixi/display/DisplayObjectContainer.js",
"line": 73,
"line": 139,
"description": "Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown",
"itemtype": "method",
"name": "addChildAt",
@ -1539,7 +1839,7 @@
},
{
"file": "src/pixi/display/DisplayObjectContainer.js",
"line": 128,
"line": 227,
"description": "Swaps the depth of 2 displayObjects",
"itemtype": "method",
"name": "swapChildren",
@ -1559,7 +1859,7 @@
},
{
"file": "src/pixi/display/DisplayObjectContainer.js",
"line": 168,
"line": 274,
"description": "Returns the Child at the specified index",
"itemtype": "method",
"name": "getChildAt",
@ -1574,7 +1874,7 @@
},
{
"file": "src/pixi/display/DisplayObjectContainer.js",
"line": 186,
"line": 291,
"description": "Removes a child from the container.",
"itemtype": "method",
"name": "removeChild",
@ -1589,7 +1889,7 @@
},
{
"file": "src/pixi/display/DisplayObjectContainer.js",
"line": 226,
"line": 358,
"access": "private",
"tagname": "",
"class": "DisplayObjectContainer"
@ -1819,7 +2119,7 @@
},
{
"file": "src/pixi/display/Stage.js",
"line": 40,
"line": 42,
"itemtype": "method",
"name": "updateTransform",
"internal": "",
@ -1827,7 +2127,7 @@
},
{
"file": "src/pixi/display/Stage.js",
"line": 63,
"line": 65,
"itemtype": "method",
"name": "setBackgroundColor",
"params": [
@ -1841,7 +2141,7 @@
},
{
"file": "src/pixi/display/Stage.js",
"line": 76,
"line": 78,
"description": "This will return the point containing global coords of the mouse.",
"itemtype": "method",
"name": "getMousePosition",
@ -2005,7 +2305,7 @@
},
{
"file": "src/pixi/extras/TilingSprite.js",
"line": 23,
"line": 22,
"description": "The scaling of the image that is being tiled",
"itemtype": "property",
"name": "tileScale",
@ -2014,13 +2314,25 @@
},
{
"file": "src/pixi/extras/TilingSprite.js",
"line": 29,
"line": 28,
"description": "The offset position of the image that is being tiled",
"itemtype": "property",
"name": "tilePosition",
"type": "Point",
"class": "TilingSprite"
},
{
"file": "src/pixi/filters/FilterBlock.js",
"line": 1,
"author": "Mat Groves http://matgroves.com/ @Doormat23",
"class": "AssetLoader"
},
{
"file": "src/pixi/filters/MaskFilter.js",
"line": 1,
"author": "Mat Groves http://matgroves.com/ @Doormat23",
"class": "AssetLoader"
},
{
"file": "src/pixi/loaders/AssetLoader.js",
"line": 1,
@ -2473,21 +2785,21 @@
},
{
"file": "src/pixi/renderers/canvas/CanvasRenderer.js",
"line": 218,
"line": 235,
"access": "private",
"tagname": "",
"class": "CanvasRenderer"
},
{
"file": "src/pixi/renderers/canvas/CanvasRenderer.js",
"line": 253,
"line": 268,
"access": "private",
"tagname": "",
"class": "CanvasRenderer"
},
{
"file": "src/pixi/renderers/canvas/CanvasRenderer.js",
"line": 284,
"line": 299,
"access": "private",
"tagname": "",
"class": "CanvasRenderer"
@ -2674,35 +2986,35 @@
},
{
"file": "src/pixi/renderers/webgl/WebGLRenderGroup.js",
"line": 624,
"line": 725,
"access": "private",
"tagname": "",
"class": "WebGLBatch"
},
{
"file": "src/pixi/renderers/webgl/WebGLRenderGroup.js",
"line": 710,
"line": 732,
"access": "private",
"tagname": "",
"class": "WebGLBatch"
},
{
"file": "src/pixi/renderers/webgl/WebGLRenderGroup.js",
"line": 765,
"line": 787,
"access": "private",
"tagname": "",
"class": "WebGLBatch"
},
{
"file": "src/pixi/renderers/webgl/WebGLRenderGroup.js",
"line": 853,
"line": 875,
"access": "private",
"tagname": "",
"class": "WebGLBatch"
},
{
"file": "src/pixi/renderers/webgl/WebGLRenderGroup.js",
"line": 890,
"line": 912,
"access": "private",
"tagname": "",
"class": "WebGLBatch"
@ -2715,28 +3027,28 @@
},
{
"file": "src/pixi/renderers/webgl/WebGLRenderer.js",
"line": 85,
"line": 90,
"access": "private",
"tagname": "",
"class": "WebGLRenderer"
},
{
"file": "src/pixi/renderers/webgl/WebGLRenderer.js",
"line": 100,
"line": 105,
"access": "private",
"tagname": "",
"class": "WebGLRenderer"
},
{
"file": "src/pixi/renderers/webgl/WebGLRenderer.js",
"line": 110,
"line": 115,
"access": "private",
"tagname": "",
"class": "WebGLRenderer"
},
{
"file": "src/pixi/renderers/webgl/WebGLRenderer.js",
"line": 116,
"line": 121,
"description": "Renders the stage to its webGL view",
"itemtype": "method",
"name": "render",
@ -2751,14 +3063,14 @@
},
{
"file": "src/pixi/renderers/webgl/WebGLRenderer.js",
"line": 199,
"line": 204,
"access": "private",
"tagname": "",
"class": "WebGLRenderer"
},
{
"file": "src/pixi/renderers/webgl/WebGLRenderer.js",
"line": 258,
"line": 263,
"description": "resizes the webGL view to the specified width and height",
"itemtype": "method",
"name": "resize",
@ -2778,14 +3090,14 @@
},
{
"file": "src/pixi/renderers/webgl/WebGLRenderer.js",
"line": 285,
"line": 290,
"access": "private",
"tagname": "",
"class": "WebGLRenderer"
},
{
"file": "src/pixi/renderers/webgl/WebGLRenderer.js",
"line": 294,
"line": 299,
"access": "private",
"tagname": "",
"class": "WebGLRenderer"
@ -3276,7 +3588,7 @@
},
{
"file": "src/pixi/InteractionManager.js",
"line": 530,
"line": 499,
"description": "This point stores the global coords of where the touch/mouse event happened",
"itemtype": "property",
"name": "global",
@ -3285,7 +3597,7 @@
},
{
"file": "src/pixi/InteractionManager.js",
"line": 540,
"line": 509,
"description": "The target Sprite that was interacted with",
"itemtype": "property",
"name": "target",
@ -3294,7 +3606,7 @@
},
{
"file": "src/pixi/InteractionManager.js",
"line": 547,
"line": 516,
"description": "When passed to an event handler, this will be the original DOM Event that was captured",
"itemtype": "property",
"name": "originalEvent",
@ -3303,7 +3615,7 @@
},
{
"file": "src/pixi/InteractionManager.js",
"line": 555,
"line": 524,
"description": "This will return the local coords of the specified displayObject for this InteractionData",
"itemtype": "method",
"name": "getLocalPosition",
@ -3342,7 +3654,7 @@
"warnings": [
{
"message": "unknown tag: internal",
"line": " src/pixi/display/Stage.js:40"
"line": " src/pixi/display/Stage.js:42"
},
{
"message": "unknown tag: methos",
@ -3352,6 +3664,14 @@
"message": "unknown tag: methos",
"line": " src/pixi/text/Text.js:63"
},
{
"message": "Missing item type",
"line": " src/pixi/core/Circle.js:1"
},
{
"message": "Missing item type",
"line": " src/pixi/core/Ellipse.js:1"
},
{
"message": "Missing item type",
"line": " src/pixi/core/Point.js:1"
@ -3370,7 +3690,7 @@
},
{
"message": "Missing item type",
"line": " src/pixi/display/DisplayObject.js:204"
"line": " src/pixi/display/DisplayObject.js:403"
},
{
"message": "Missing item type",
@ -3378,7 +3698,7 @@
},
{
"message": "Missing item type",
"line": " src/pixi/display/DisplayObjectContainer.js:226"
"line": " src/pixi/display/DisplayObjectContainer.js:358"
},
{
"message": "Missing item type",
@ -3512,6 +3832,14 @@
"message": "Missing item type",
"line": " src/pixi/extras/TilingSprite.js:1"
},
{
"message": "Missing item type",
"line": " src/pixi/filters/FilterBlock.js:1"
},
{
"message": "Missing item type",
"line": " src/pixi/filters/MaskFilter.js:1"
},
{
"message": "Missing item type",
"line": " src/pixi/loaders/AssetLoader.js:1"
@ -3618,15 +3946,15 @@
},
{
"message": "Missing item type",
"line": " src/pixi/renderers/canvas/CanvasRenderer.js:218"
"line": " src/pixi/renderers/canvas/CanvasRenderer.js:235"
},
{
"message": "Missing item type",
"line": " src/pixi/renderers/canvas/CanvasRenderer.js:253"
"line": " src/pixi/renderers/canvas/CanvasRenderer.js:268"
},
{
"message": "Missing item type",
"line": " src/pixi/renderers/canvas/CanvasRenderer.js:284"
"line": " src/pixi/renderers/canvas/CanvasRenderer.js:299"
},
{
"message": "Missing item type",
@ -3662,23 +3990,23 @@
},
{
"message": "Missing item type",
"line": " src/pixi/renderers/webgl/WebGLRenderGroup.js:624"
"line": " src/pixi/renderers/webgl/WebGLRenderGroup.js:725"
},
{
"message": "Missing item type",
"line": " src/pixi/renderers/webgl/WebGLRenderGroup.js:710"
"line": " src/pixi/renderers/webgl/WebGLRenderGroup.js:732"
},
{
"message": "Missing item type",
"line": " src/pixi/renderers/webgl/WebGLRenderGroup.js:765"
"line": " src/pixi/renderers/webgl/WebGLRenderGroup.js:787"
},
{
"message": "Missing item type",
"line": " src/pixi/renderers/webgl/WebGLRenderGroup.js:853"
"line": " src/pixi/renderers/webgl/WebGLRenderGroup.js:875"
},
{
"message": "Missing item type",
"line": " src/pixi/renderers/webgl/WebGLRenderGroup.js:890"
"line": " src/pixi/renderers/webgl/WebGLRenderGroup.js:912"
},
{
"message": "Missing item type",
@ -3686,27 +4014,27 @@
},
{
"message": "Missing item type",
"line": " src/pixi/renderers/webgl/WebGLRenderer.js:85"
"line": " src/pixi/renderers/webgl/WebGLRenderer.js:90"
},
{
"message": "Missing item type",
"line": " src/pixi/renderers/webgl/WebGLRenderer.js:100"
"line": " src/pixi/renderers/webgl/WebGLRenderer.js:105"
},
{
"message": "Missing item type",
"line": " src/pixi/renderers/webgl/WebGLRenderer.js:110"
"line": " src/pixi/renderers/webgl/WebGLRenderer.js:115"
},
{
"message": "Missing item type",
"line": " src/pixi/renderers/webgl/WebGLRenderer.js:199"
"line": " src/pixi/renderers/webgl/WebGLRenderer.js:204"
},
{
"message": "Missing item type",
"line": " src/pixi/renderers/webgl/WebGLRenderer.js:285"
"line": " src/pixi/renderers/webgl/WebGLRenderer.js:290"
},
{
"message": "Missing item type",
"line": " src/pixi/renderers/webgl/WebGLRenderer.js:294"
"line": " src/pixi/renderers/webgl/WebGLRenderer.js:299"
},
{
"message": "Missing item type",

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -201,7 +205,6 @@ PIXI.InteractionManager.prototype.collectInteractiveSprite = function(displayObj
var children = displayObject.children;
var length = children.length;
&#x2F;&#x2F;this.interactiveItems = [];
&#x2F;&#x2F;&#x2F; make an interaction tree... {item.__interactiveParent}
for (var i = length-1; i &gt;= 0; i--)
{
@ -459,42 +462,12 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
&#x2F;&#x2F;a sprite or display object with a hit area defined
if(item.hitArea)
{
var hitArea = item.hitArea;
if(item.hitArea &amp;&amp; item.hitArea.contains) {
if(item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
&#x2F;&#x2F;Polygon hit area
if(item.hitArea instanceof PIXI.Polygon) {
var inside = false;
&#x2F;&#x2F; use some raycasting to test hits
&#x2F;&#x2F; https:&#x2F;&#x2F;github.com&#x2F;substack&#x2F;point-in-polygon&#x2F;blob&#x2F;master&#x2F;index.js
for(var i = 0, j = item.hitArea.points.length - 1; i &lt; item.hitArea.points.length; j = i++) {
var xi = item.hitArea.points[i].x, yi = item.hitArea.points[i].y,
xj = item.hitArea.points[j].x, yj = item.hitArea.points[j].y,
intersect = ((yi &gt; y) != (yj &gt; y)) &amp;&amp; (x &lt; (xj - xi) * (y - yi) &#x2F; (yj - yi) + xi);
if(intersect) inside = !inside;
}
if(inside) {
if(isSprite) interactionData.target = item;
return true;
}
}
&#x2F;&#x2F;Rectangle hit area
else {
var x1 = hitArea.x;
if(x &gt; x1 &amp;&amp; x &lt; x1 + hitArea.width)
{
var y1 = hitArea.y;
if(y &gt; y1 &amp;&amp; y &lt; y1 + hitArea.height)
{
if(isSprite) interactionData.target = item;
return true;
}
}
return true;
}
}
&#x2F;&#x2F; a sprite with no hitarea defined

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -0,0 +1,235 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>src&#x2F;pixi&#x2F;core&#x2F;Circle.js - Pixi.JS</title>
<link rel="stylesheet" href="http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;3.8.0&#x2F;build&#x2F;cssgrids&#x2F;cssgrids-min.css">
<link rel="stylesheet" href="..&#x2F;assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="..&#x2F;assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="..&#x2F;assets/favicon.png">
<script src="http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;combo?3.8.0&#x2F;build&#x2F;yui&#x2F;yui-min.js"></script>
</head>
<body class="yui3-skin-sam">
<div id="doc">
<div id="hd" class="yui3-g header">
<div class="yui3-u-3-4">
<h1><img src="http:&#x2F;&#x2F;www.goodboydigital.com&#x2F;pixijs&#x2F;logo_small.png" title="Pixi.JS"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.3.0</em>
</div>
</div>
<div id="bd" class="yui3-g">
<div class="yui3-u-1-4">
<div id="docs-sidebar" class="sidebar apidocs">
<div id="api-list">
<h2 class="off-left">APIs</h2>
<div id="api-tabview" class="tabview">
<ul class="tabs">
<li><a href="#api-classes">Classes</a></li>
<li><a href="#api-modules">Modules</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" id="api-filter" placeholder="Type to filter APIs">
</div>
<div id="api-tabview-panel">
<ul id="api-classes" class="apis classes">
<li><a href="..&#x2F;classes/AssetLoader.html">AssetLoader</a></li>
<li><a href="..&#x2F;classes/BaseTexture.html">BaseTexture</a></li>
<li><a href="..&#x2F;classes/BitmapFontLoader.html">BitmapFontLoader</a></li>
<li><a href="..&#x2F;classes/BitmapText.html">BitmapText</a></li>
<li><a href="..&#x2F;classes/CanvasGraphics.html">CanvasGraphics</a></li>
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
<li><a href="..&#x2F;classes/InteractionData.html">InteractionData</a></li>
<li><a href="..&#x2F;classes/InteractionManager.html">InteractionManager</a></li>
<li><a href="..&#x2F;classes/JsonLoader.html">JsonLoader</a></li>
<li><a href="..&#x2F;classes/MovieClip.html">MovieClip</a></li>
<li><a href="..&#x2F;classes/Point.html">Point</a></li>
<li><a href="..&#x2F;classes/Polygon.html">Polygon</a></li>
<li><a href="..&#x2F;classes/Rectangle.html">Rectangle</a></li>
<li><a href="..&#x2F;classes/RenderTexture.html">RenderTexture</a></li>
<li><a href="..&#x2F;classes/Spine.html">Spine</a></li>
<li><a href="..&#x2F;classes/Sprite.html">Sprite</a></li>
<li><a href="..&#x2F;classes/SpriteSheetLoader.html">SpriteSheetLoader</a></li>
<li><a href="..&#x2F;classes/Stage.html">Stage</a></li>
<li><a href="..&#x2F;classes/Text.html">Text</a></li>
<li><a href="..&#x2F;classes/Texture.html">Texture</a></li>
<li><a href="..&#x2F;classes/TilingSprite.html">TilingSprite</a></li>
<li><a href="..&#x2F;classes/WebGLBatch.html">WebGLBatch</a></li>
<li><a href="..&#x2F;classes/WebGLRenderer.html">WebGLRenderer</a></li>
</ul>
<ul id="api-modules" class="apis modules">
<li><a href="..&#x2F;modules/PIXI.html">PIXI</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="yui3-u-3-4">
<div id="api-options">
Show:
<label for="api-show-inherited">
<input type="checkbox" id="api-show-inherited" checked>
Inherited
</label>
<label for="api-show-protected">
<input type="checkbox" id="api-show-protected">
Protected
</label>
<label for="api-show-private">
<input type="checkbox" id="api-show-private">
Private
</label>
<label for="api-show-deprecated">
<input type="checkbox" id="api-show-deprecated">
Deprecated
</label>
</div>
<div class="apidocs">
<div id="docs-main">
<div class="content">
<h1 class="file-heading">File: src&#x2F;pixi&#x2F;core&#x2F;Circle.js</h1>
<div class="file">
<pre class="code prettyprint linenums">
&#x2F;**
* @author Chad Engler &lt;chad@pantherdev.com&gt;
*&#x2F;
&#x2F;**
* @class Circle
* @constructor
* @param x {Number} The X coord of the upper-left corner of the framing rectangle of this circle
* @param y {Number} The Y coord of the upper-left corner of the framing rectangle of this circle
* @param radius {Number} The radius of the circle
*&#x2F;
PIXI.Circle = function(x, y, radius)
{
&#x2F;**
* @property x
* @type Number
* @default 0
*&#x2F;
this.x = x || 0;
&#x2F;**
* @property y
* @type Number
* @default 0
*&#x2F;
this.y = y || 0;
&#x2F;**
* @property radius
* @type Number
* @default 0
*&#x2F;
this.radius = radius || 0;
}
&#x2F;**
* @method clone
* @return a copy of the polygon
*&#x2F;
PIXI.Circle.prototype.clone = function()
{
return new PIXI.Circle(this.x, this.y, this.radius);
}
&#x2F;**
* @method contains
* @param x {Number} The X coord of the point to test
* @param y {Number} The Y coord of the point to test
* @return if the x&#x2F;y coords are within this polygon
*&#x2F;
PIXI.Circle.prototype.contains = function(x, y)
{
if(this.radius &lt;= 0)
return false;
var dx = (this.x - x),
dy = (this.y - y),
r2 = this.radius * this.radius;
dx *= dx;
dy *= dy;
return (dx + dy &lt;= r2);
}
PIXI.Circle.constructor = PIXI.Circle;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="..&#x2F;assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="..&#x2F;assets/js/yui-prettify.js"></script>
<script src="..&#x2F;assets/../api.js"></script>
<script src="..&#x2F;assets/js/api-filter.js"></script>
<script src="..&#x2F;assets/js/api-list.js"></script>
<script src="..&#x2F;assets/js/api-search.js"></script>
<script src="..&#x2F;assets/js/apidocs.js"></script>
</body>
</html>

View file

@ -0,0 +1,249 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>src&#x2F;pixi&#x2F;core&#x2F;Ellipse.js - Pixi.JS</title>
<link rel="stylesheet" href="http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;3.8.0&#x2F;build&#x2F;cssgrids&#x2F;cssgrids-min.css">
<link rel="stylesheet" href="..&#x2F;assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="..&#x2F;assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="..&#x2F;assets/favicon.png">
<script src="http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;combo?3.8.0&#x2F;build&#x2F;yui&#x2F;yui-min.js"></script>
</head>
<body class="yui3-skin-sam">
<div id="doc">
<div id="hd" class="yui3-g header">
<div class="yui3-u-3-4">
<h1><img src="http:&#x2F;&#x2F;www.goodboydigital.com&#x2F;pixijs&#x2F;logo_small.png" title="Pixi.JS"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.3.0</em>
</div>
</div>
<div id="bd" class="yui3-g">
<div class="yui3-u-1-4">
<div id="docs-sidebar" class="sidebar apidocs">
<div id="api-list">
<h2 class="off-left">APIs</h2>
<div id="api-tabview" class="tabview">
<ul class="tabs">
<li><a href="#api-classes">Classes</a></li>
<li><a href="#api-modules">Modules</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" id="api-filter" placeholder="Type to filter APIs">
</div>
<div id="api-tabview-panel">
<ul id="api-classes" class="apis classes">
<li><a href="..&#x2F;classes/AssetLoader.html">AssetLoader</a></li>
<li><a href="..&#x2F;classes/BaseTexture.html">BaseTexture</a></li>
<li><a href="..&#x2F;classes/BitmapFontLoader.html">BitmapFontLoader</a></li>
<li><a href="..&#x2F;classes/BitmapText.html">BitmapText</a></li>
<li><a href="..&#x2F;classes/CanvasGraphics.html">CanvasGraphics</a></li>
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
<li><a href="..&#x2F;classes/InteractionData.html">InteractionData</a></li>
<li><a href="..&#x2F;classes/InteractionManager.html">InteractionManager</a></li>
<li><a href="..&#x2F;classes/JsonLoader.html">JsonLoader</a></li>
<li><a href="..&#x2F;classes/MovieClip.html">MovieClip</a></li>
<li><a href="..&#x2F;classes/Point.html">Point</a></li>
<li><a href="..&#x2F;classes/Polygon.html">Polygon</a></li>
<li><a href="..&#x2F;classes/Rectangle.html">Rectangle</a></li>
<li><a href="..&#x2F;classes/RenderTexture.html">RenderTexture</a></li>
<li><a href="..&#x2F;classes/Spine.html">Spine</a></li>
<li><a href="..&#x2F;classes/Sprite.html">Sprite</a></li>
<li><a href="..&#x2F;classes/SpriteSheetLoader.html">SpriteSheetLoader</a></li>
<li><a href="..&#x2F;classes/Stage.html">Stage</a></li>
<li><a href="..&#x2F;classes/Text.html">Text</a></li>
<li><a href="..&#x2F;classes/Texture.html">Texture</a></li>
<li><a href="..&#x2F;classes/TilingSprite.html">TilingSprite</a></li>
<li><a href="..&#x2F;classes/WebGLBatch.html">WebGLBatch</a></li>
<li><a href="..&#x2F;classes/WebGLRenderer.html">WebGLRenderer</a></li>
</ul>
<ul id="api-modules" class="apis modules">
<li><a href="..&#x2F;modules/PIXI.html">PIXI</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="yui3-u-3-4">
<div id="api-options">
Show:
<label for="api-show-inherited">
<input type="checkbox" id="api-show-inherited" checked>
Inherited
</label>
<label for="api-show-protected">
<input type="checkbox" id="api-show-protected">
Protected
</label>
<label for="api-show-private">
<input type="checkbox" id="api-show-private">
Private
</label>
<label for="api-show-deprecated">
<input type="checkbox" id="api-show-deprecated">
Deprecated
</label>
</div>
<div class="apidocs">
<div id="docs-main">
<div class="content">
<h1 class="file-heading">File: src&#x2F;pixi&#x2F;core&#x2F;Ellipse.js</h1>
<div class="file">
<pre class="code prettyprint linenums">
&#x2F;**
* @author Chad Engler &lt;chad@pantherdev.com&gt;
*&#x2F;
&#x2F;**
* @class Ellipse
* @constructor
* @param x {Number} The X coord of the upper-left corner of the framing rectangle of this circle
* @param y {Number} The Y coord of the upper-left corner of the framing rectangle of this circle
* @param width {Number} The overall height of this ellipse
* @param height {Number} The overall width of this ellipse
*&#x2F;
PIXI.Ellipse = function(x, y, width, height)
{
&#x2F;**
* @property x
* @type Number
* @default 0
*&#x2F;
this.x = x || 0;
&#x2F;**
* @property y
* @type Number
* @default 0
*&#x2F;
this.y = y || 0;
&#x2F;**
* @property width
* @type Number
* @default 0
*&#x2F;
this.width = width || 0;
&#x2F;**
* @property height
* @type Number
* @default 0
*&#x2F;
this.height = height || 0;
}
&#x2F;**
* @method clone
* @return a copy of the polygon
*&#x2F;
PIXI.Ellipse.prototype.clone = function()
{
return new PIXI.Ellipse(this.x, this.y, this.width, this.height);
}
&#x2F;**
* @method contains
* @param x {Number} The X coord of the point to test
* @param y {Number} The Y coord of the point to test
* @return if the x&#x2F;y coords are within this polygon
*&#x2F;
PIXI.Ellipse.prototype.contains = function(x, y)
{
if(this.width &lt;= 0 || this.height &lt;= 0)
return false;
&#x2F;&#x2F;normalize the coords to an ellipse with center 0,0
&#x2F;&#x2F;and a radius of 0.5
var normx = ((x - this.x) &#x2F; this.width) - 0.5,
normy = ((y - this.y) &#x2F; this.height) - 0.5;
normx *= normx;
normy *= normy;
return (normx + normy &lt; 0.25);
}
PIXI.Ellipse.getBounds = function()
{
return new PIXI.Rectangle(this.x, this.y, this.width, this.height);
}
PIXI.Ellipse.constructor = PIXI.Ellipse;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="..&#x2F;assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="..&#x2F;assets/js/yui-prettify.js"></script>
<script src="..&#x2F;assets/../api.js"></script>
<script src="..&#x2F;assets/js/api-filter.js"></script>
<script src="..&#x2F;assets/js/api-list.js"></script>
<script src="..&#x2F;assets/js/api-search.js"></script>
<script src="..&#x2F;assets/js/apidocs.js"></script>
</body>
</html>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -149,10 +153,23 @@
&#x2F;**
* @class Polygon
* @constructor
* @param points {Array}
* @param points {Array&lt;Point&gt;|Array&lt;Number&gt;} This cna be an array of Points or a flat array of numbers
* that will be interpreted as [x,y, x,y, ...]
*&#x2F;
PIXI.Polygon = function(points)
{
&#x2F;&#x2F;if this is a flat array of numbers, convert it to points
if(typeof points[0] === &#x27;number&#x27;) {
var p = [];
for(var i = 0, il = points.length; i &lt; il; i+=2) {
p.push(
new PIXI.Point(points[i], points[i + 1])
);
}
points = p;
}
this.points = points;
}
@ -160,7 +177,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*&#x2F;
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i&lt;this.points.length; i++) {
@ -170,6 +187,29 @@ PIXI.Polygon.clone = function()
return new PIXI.Polygon(points);
}
&#x2F;**
* @method contains
* @param x {Number} The X coord of the point to test
* @param y {Number} The Y coord of the point to test
* @return if the x&#x2F;y coords are within this polygon
*&#x2F;
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;
&#x2F;&#x2F; use some raycasting to test hits
&#x2F;&#x2F; https:&#x2F;&#x2F;github.com&#x2F;substack&#x2F;point-in-polygon&#x2F;blob&#x2F;master&#x2F;index.js
for(var i = 0, j = this.points.length - 1; i &lt; this.points.length; j = i++) {
var xi = this.points[i].x, yi = this.points[i].y,
xj = this.points[j].x, yj = this.points[j].y,
intersect = ((yi &gt; y) != (yj &gt; y)) &amp;&amp; (x &lt; (xj - xi) * (y - yi) &#x2F; (yj - yi) + xi);
if(intersect) inside = !inside;
}
return inside;
}
PIXI.Polygon.constructor = PIXI.Polygon;

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -195,6 +199,31 @@ PIXI.Rectangle.prototype.clone = function()
return new PIXI.Rectangle(this.x, this.y, this.width, this.height);
}
&#x2F;**
* @method contains
* @param x {Number} The X coord of the point to test
* @param y {Number} The Y coord of the point to test
* @return if the x&#x2F;y coords are within this polygon
*&#x2F;
PIXI.Rectangle.prototype.contains = function(x, y)
{
if(this.width &lt;= 0 || this.height &lt;= 0)
return false;
var x1 = this.x;
if(x &gt; x1 &amp;&amp; x &lt; x1 + this.width)
{
var y1 = this.y;
if(y &gt; y1 &amp;&amp; y &lt; y1 + this.height)
{
return true;
}
}
return false;
}
&#x2F;&#x2F; constructor
PIXI.Rectangle.constructor = PIXI.Rectangle;

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -153,6 +157,9 @@
*&#x2F;
PIXI.DisplayObject = function()
{
this.last = this;
this.first = this;
&#x2F;**
* The coordinate of the object relative to the local coordinates of the parent.
* @property position
@ -234,7 +241,7 @@ PIXI.DisplayObject = function()
this.renderable = false;
&#x2F;&#x2F; [readonly] best not to toggle directly! use setInteractive()
this.interactive = false;
this._interactive = false;
&#x2F;**
* This is used to indicate if the displayObject should display a mouse hand cursor on rollover
@ -332,18 +339,214 @@ Object.defineProperty(PIXI.DisplayObject.prototype, &#x27;visible&#x27;, {
});*&#x2F;
&#x2F;**
* Indicates if the sprite will have touch and mouse interactivity. It is false by default
* [Deprecated] Indicates if the sprite will have touch and mouse interactivity. It is false by default
* Instead of using this function you can now simply set the interactive property to true or false
* @method setInteractive
* @param interactive {Boolean}
*&#x2F;
PIXI.DisplayObject.prototype.setInteractive = function(interactive)
{
this.interactive = interactive;
&#x2F;&#x2F; TODO more to be done here..
&#x2F;&#x2F; need to sort out a re-crawl!
if(this.stage)this.stage.dirty = true;
}
&#x2F;**
* Indicates if the sprite will have touch and mouse interactivity. It is false by default
* @property interactive
* @type Boolean
*&#x2F;
Object.defineProperty(PIXI.DisplayObject.prototype, &#x27;interactive&#x27;, {
get: function() {
return this._interactive;
},
set: function(value) {
this._interactive = value;
&#x2F;&#x2F; TODO more to be done here..
&#x2F;&#x2F; need to sort out a re-crawl!
if(this.stage)this.stage.dirty = true;
}
});
&#x2F;**
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
* In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
* To remove a mask, set this property to null.
* @property mask
* @type PIXI.Graphics
*&#x2F;
Object.defineProperty(PIXI.DisplayObject.prototype, &#x27;mask&#x27;, {
get: function() {
return this._mask;
},
set: function(value) {
this._mask = value;
if(value)
{
this.addFilter(value)
}
else
{
this.removeFilter();
}
}
});
&#x2F;*
* private
*&#x2F;
PIXI.DisplayObject.prototype.addFilter = function(mask)
{
if(this.filter)return;
this.filter = true;
&#x2F;&#x2F; insert a filter block..
var start = new PIXI.FilterBlock();
var end = new PIXI.FilterBlock();
start.mask = mask;
end.mask = mask;
start.id = end.id = county
county++;
start.first = start.last = this;
end.first = end.last = this;
start.open = true;
&#x2F;*
*
* insert start
*
*&#x2F;
var childFirst = start
var childLast = start
var nextObject;
var previousObject;
previousObject = this.first._iPrev;
if(previousObject)
{
nextObject = previousObject._iNext;
childFirst._iPrev = previousObject;
previousObject._iNext = childFirst;
}
else
{
nextObject = this;
}
if(nextObject)
{
nextObject._iPrev = childLast;
childLast._iNext = nextObject;
}
&#x2F;&#x2F; now insert the end filter block..
&#x2F;*
*
* insert end filter
*
*&#x2F;
var childFirst = end
var childLast = end
var nextObject = null;
var previousObject = null;
previousObject = this.last;
nextObject = previousObject._iNext;
if(nextObject)
{
nextObject._iPrev = childLast;
childLast._iNext = nextObject;
}
childFirst._iPrev = previousObject;
previousObject._iNext = childFirst;
var updateLast = this;
var prevLast = this.last;
while(updateLast)
{
if(updateLast.last == prevLast)
{
updateLast.last = end;
}
updateLast = updateLast.parent;
}
this.first = start;
&#x2F;&#x2F; if webGL...
if(this.__renderGroup)
{
this.__renderGroup.addFilterBlocks(start, end);
}
mask.renderable = false;
}
PIXI.DisplayObject.prototype.removeFilter = function()
{
if(!this.filter)return;
this.filter = false;
&#x2F;&#x2F; modify the list..
var startBlock = this.first;
var nextObject = startBlock._iNext;
var previousObject = startBlock._iPrev;
if(nextObject)nextObject._iPrev = previousObject;
if(previousObject)previousObject._iNext = nextObject;
this.first = startBlock._iNext;
&#x2F;&#x2F; remove the end filter
var lastBlock = this.last;
var nextObject = lastBlock._iNext;
var previousObject = lastBlock._iPrev;
if(nextObject)nextObject._iPrev = previousObject;
previousObject._iNext = nextObject;
&#x2F;&#x2F; this is always true too!
&#x2F;&#x2F; if(this.last == lastBlock)
&#x2F;&#x2F;{
var tempLast = lastBlock._iPrev;
&#x2F;&#x2F; need to make sure the parents last is updated too
var updateLast = this;
while(updateLast.last == lastBlock)
{
updateLast.last = tempLast;
updateLast = updateLast.parent;
if(!updateLast)break;
}
var mask = startBlock.mask
mask.renderable = true;
&#x2F;&#x2F; if webGL...
if(this.__renderGroup)
{
this.__renderGroup.removeFilterBlocks(startBlock, lastBlock);
}
&#x2F;&#x2F;}
}
&#x2F;**
* @private
@ -367,24 +570,21 @@ PIXI.DisplayObject.prototype.updateTransform = function()
localTransform[3] = this._sr * this.scale.x;
localTransform[4] = this._cr * this.scale.y;
&#x2F;&#x2F;&#x2F;AAARR GETTER SETTTER!
&#x2F;&#x2F;localTransform[2] = this.position.x;
&#x2F;&#x2F;localTransform[5] = this.position.y;
&#x2F;&#x2F; TODO --&gt; do we even need a local matrix???
var px = this.pivot.x;
var py = this.pivot.y;
&#x2F;&#x2F;&#x2F;AAARR GETTER SETTTER!
localTransform[2] = this.position.x - localTransform[0] * px - py * localTransform[1];
localTransform[5] = this.position.y - localTransform[4] * py - px * localTransform[3];
&#x2F;&#x2F; Cache the matrix values (makes for huge speed increases!)
var a00 = localTransform[0], a01 = localTransform[1], a02 = localTransform[2],
a10 = localTransform[3], a11 = localTransform[4], a12 = localTransform[5],
var a00 = localTransform[0], a01 = localTransform[1], a02 = this.position.x - localTransform[0] * px - py * localTransform[1],
a10 = localTransform[3], a11 = localTransform[4], a12 = this.position.y - localTransform[4] * py - px * localTransform[3],
b00 = parentTransform[0], b01 = parentTransform[1], b02 = parentTransform[2],
b10 = parentTransform[3], b11 = parentTransform[4], b12 = parentTransform[5];
localTransform[2] = a02
localTransform[5] = a12
worldTransform[0] = b00 * a00 + b01 * a10;
worldTransform[1] = b00 * a01 + b01 * a11;
worldTransform[2] = b00 * a02 + b01 * a12 + b02;
@ -397,7 +597,6 @@ PIXI.DisplayObject.prototype.updateTransform = function()
&#x2F;&#x2F; mat3.multiply(this.localTransform, this.parent.worldTransform, this.worldTransform);
this.worldAlpha = this.alpha * this.parent.worldAlpha;
}
</pre>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -164,6 +168,7 @@ PIXI.DisplayObjectContainer = function()
this.children = [];
&#x2F;&#x2F;s
this.renderable = false;
}
&#x2F;&#x2F; constructor
@ -189,21 +194,85 @@ Object.defineProperty(PIXI.DisplayObjectContainer.prototype, &#x27;visible&#x27;
*&#x2F;
PIXI.DisplayObjectContainer.prototype.addChild = function(child)
{
&#x2F;&#x2F;this.addChildAt(child, this.children.length)
&#x2F;&#x2F;return;
if(child.parent != undefined)
{
&#x2F;&#x2F;&#x2F;&#x2F; COULD BE THIS???
child.parent.removeChild(child);
&#x2F;&#x2F; return;
}
child.parent = this;
child.childIndex = this.children.length;
&#x2F;&#x2F;child.childIndex = this.children.length;
this.children.push(child);
&#x2F;&#x2F; updae the stage refference..
if(this.stage)
{
this.stage.__addChild(child);
var tmpChild = child;
do
{
if(tmpChild.interactive)this.stage.dirty = true;
tmpChild.stage = this.stage;
tmpChild = tmpChild._iNext;
}
while(tmpChild)
}
&#x2F;&#x2F; LINKED LIST &#x2F;&#x2F;
&#x2F;&#x2F; modify the list..
var childFirst = child.first
var childLast = child.last;
&#x2F;&#x2F; console.log(childFirst)
var nextObject;
var previousObject;
&#x2F;&#x2F; this could be wrong if there is a filter??
if(this.filter)
{
previousObject = this.last._iPrev;
}
else
{
previousObject = this.last;
}
&#x2F;&#x2F; if(this.last._iNext)
&#x2F;&#x2F;console.log( this.last._iNext);
nextObject = previousObject._iNext;
&#x2F;&#x2F; always true in this case
&#x2F;&#x2F;this.last = child.last;
&#x2F;&#x2F; need to make sure the parents last is updated too
var updateLast = this;
var prevLast = previousObject;
while(updateLast)
{
if(updateLast.last == prevLast)
{
updateLast.last = child.last;
}
updateLast = updateLast.parent;
}
if(nextObject)
{
nextObject._iPrev = childLast;
childLast._iNext = nextObject;
}
childFirst._iPrev = previousObject;
previousObject._iNext = childFirst;
&#x2F;&#x2F; console.log(childFirst);
&#x2F;&#x2F; need to remove any render groups..
if(this.__renderGroup)
{
@ -212,6 +281,7 @@ PIXI.DisplayObjectContainer.prototype.addChild = function(child)
&#x2F;&#x2F; add them to the new render group..
this.__renderGroup.addDisplayObjectAndChildren(child);
}
}
&#x2F;**
@ -228,30 +298,63 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
{
child.parent.removeChild(child);
}
if (index == this.children.length)
{
this.children.push(child);
}
else
{
this.children.splice(index, 0, child);
}
child.parent = this;
child.childIndex = index;
var length = this.children.length;
for (var i=index; i &lt; length; i++)
{
this.children[i].childIndex = i;
}
if(this.stage)
{
this.stage.__addChild(child);
var tmpChild = child;
do
{
if(tmpChild.interactive)this.stage.dirty = true;
tmpChild.stage = this.stage;
tmpChild = tmpChild._iNext;
}
while(tmpChild)
}
&#x2F;&#x2F; modify the list..
var childFirst = child.first
var childLast = child.last;
var nextObject;
var previousObject;
if(index == this.children.length)
{
previousObject = this.last;
var updateLast = this;&#x2F;&#x2F;.parent;
var prevLast = this.last;
while(updateLast)
{
if(updateLast.last == prevLast)
{
updateLast.last = child.last;
}
updateLast = updateLast.parent;
}
}
else if(index == 0)
{
previousObject = this;
}
else
{
previousObject = this.children[index-1].last;
}
nextObject = previousObject._iNext;
&#x2F;&#x2F; always true in this case
if(nextObject)
{
nextObject._iPrev = childLast;
childLast._iNext = nextObject;
}
childFirst._iPrev = previousObject;
previousObject._iNext = childFirst;
this.children.splice(index, 0, child);
&#x2F;&#x2F; need to remove any render groups..
if(this.__renderGroup)
{
@ -260,11 +363,11 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
&#x2F;&#x2F; add them to the new render group..
this.__renderGroup.addDisplayObjectAndChildren(child);
}
console.log(this.children)
}
else
{
&#x2F;&#x2F; error!
throw new Error(child + &quot; The index &quot;+ index +&quot; supplied is out of bounds &quot; + this.children.length);
}
}
@ -277,6 +380,14 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
*&#x2F;
PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
{
&#x2F;*
* this funtion needs to be recoded..
* can be done a lot faster..
*&#x2F;
return;
&#x2F;&#x2F; need to fix this function :&#x2F;
&#x2F;*
&#x2F;&#x2F; TODO I already know this??
var index = this.children.indexOf( child );
var index2 = this.children.indexOf( child2 );
@ -284,6 +395,8 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
if ( index !== -1 &amp;&amp; index2 !== -1 )
{
&#x2F;&#x2F; cool
&#x2F;*
if(this.stage)
{
&#x2F;&#x2F; this is to satisfy the webGL batching..
@ -295,9 +408,6 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
this.stage.__addChild(child2);
}
&#x2F;&#x2F; swap the indexes..
child.childIndex = index2;
child2.childIndex = index;
&#x2F;&#x2F; swap the positions..
this.children[index] = child2;
this.children[index2] = child;
@ -306,7 +416,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
else
{
throw new Error(child + &quot; Both the supplied DisplayObjects must be a child of the caller &quot; + this);
}
}*&#x2F;
}
&#x2F;**
@ -323,7 +433,6 @@ PIXI.DisplayObjectContainer.prototype.getChildAt = function(index)
else
{
throw new Error(child + &quot; Both the supplied DisplayObjects must be a child of the caller &quot; + this);
}
}
@ -335,30 +444,57 @@ PIXI.DisplayObjectContainer.prototype.getChildAt = function(index)
PIXI.DisplayObjectContainer.prototype.removeChild = function(child)
{
var index = this.children.indexOf( child );
if ( index !== -1 )
{
if(this.stage)
&#x2F;&#x2F;console.log(&quot;&gt;&gt;&quot;)
&#x2F;&#x2F; unlink &#x2F;&#x2F;
&#x2F;&#x2F; modify the list..
var childFirst = child.first
var childLast = child.last;
var nextObject = childLast._iNext;
var previousObject = childFirst._iPrev;
if(nextObject)nextObject._iPrev = previousObject;
previousObject._iNext = nextObject;
if(this.last == childLast)
{
this.stage.__removeChild(child);
var tempLast = childFirst._iPrev;
&#x2F;&#x2F; need to make sure the parents last is updated too
var updateLast = this;
while(updateLast.last == childLast.last)
{
updateLast.last = tempLast;
updateLast = updateLast.parent;
if(!updateLast)break;
}
}
childLast._iNext = null;
childFirst._iPrev = null;
&#x2F;&#x2F; update the stage reference..
if(this.stage)
{
var tmpChild = child;
do
{
if(tmpChild.interactive)this.stage.dirty = true;
tmpChild.stage = null;
tmpChild = tmpChild._iNext;
}
while(tmpChild)
}
&#x2F;&#x2F; webGL trim
if(child.__renderGroup)
{
child.__renderGroup.removeDisplayObjectAndChildren(child);
}
&#x2F;&#x2F; console.log(&quot;&gt;&quot; + child.__renderGroup)
child.parent = undefined;
this.children.splice( index, 1 );
&#x2F;&#x2F; update in dexs!
for(var i=index,j=this.children.length; i&lt;j; i++)
{
this.children[i].childIndex -= 1;
}
}
else
{

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -158,21 +162,23 @@ PIXI.Stage = function(backgroundColor, interactive)
{
PIXI.DisplayObjectContainer.call( this );
this.worldTransform = PIXI.mat3.create()
this.__childrenAdded = [];
this.__childrenRemoved = [];
this.childIndex = 0;
this.stage= this;
&#x2F;&#x2F;this.childIndex = 0;
this.stage = this;
this.interactive = interactive;
this.stage.hitArea = new PIXI.Rectangle(0,0,100000, 100000);
&#x2F;&#x2F; interaction!
this.interactive = !!interactive;
&#x2F;&#x2F; this.interactive = !!interactive;
this.interactionManager = new PIXI.InteractionManager(this);
this.setBackgroundColor(backgroundColor);
this.worldVisible = true;
this.stage.dirty = true;
}
@ -226,7 +232,7 @@ PIXI.Stage.prototype.getMousePosition = function()
{
return this.interactionManager.mouse.global;
}
&#x2F;*
PIXI.Stage.prototype.__addChild = function(child)
{
if(child.interactive)this.dirty = true;
@ -257,7 +263,7 @@ PIXI.Stage.prototype.__removeChild = function(child)
this.__removeChild(child.children[i]);
}
}
}
}*&#x2F;
</pre>
</div>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -163,7 +167,6 @@ PIXI.TilingSprite = function(texture, width, height)
this.width = width;
this.height = height;
this.renderable = true;
&#x2F;**
* The scaling of the image that is being tiled
* @property tileScale

View file

@ -0,0 +1,181 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>src&#x2F;pixi&#x2F;filters&#x2F;FilterBlock.js - Pixi.JS</title>
<link rel="stylesheet" href="http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;3.8.0&#x2F;build&#x2F;cssgrids&#x2F;cssgrids-min.css">
<link rel="stylesheet" href="..&#x2F;assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="..&#x2F;assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="..&#x2F;assets/favicon.png">
<script src="http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;combo?3.8.0&#x2F;build&#x2F;yui&#x2F;yui-min.js"></script>
</head>
<body class="yui3-skin-sam">
<div id="doc">
<div id="hd" class="yui3-g header">
<div class="yui3-u-3-4">
<h1><img src="http:&#x2F;&#x2F;www.goodboydigital.com&#x2F;pixijs&#x2F;logo_small.png" title="Pixi.JS"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.3.0</em>
</div>
</div>
<div id="bd" class="yui3-g">
<div class="yui3-u-1-4">
<div id="docs-sidebar" class="sidebar apidocs">
<div id="api-list">
<h2 class="off-left">APIs</h2>
<div id="api-tabview" class="tabview">
<ul class="tabs">
<li><a href="#api-classes">Classes</a></li>
<li><a href="#api-modules">Modules</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" id="api-filter" placeholder="Type to filter APIs">
</div>
<div id="api-tabview-panel">
<ul id="api-classes" class="apis classes">
<li><a href="..&#x2F;classes/AssetLoader.html">AssetLoader</a></li>
<li><a href="..&#x2F;classes/BaseTexture.html">BaseTexture</a></li>
<li><a href="..&#x2F;classes/BitmapFontLoader.html">BitmapFontLoader</a></li>
<li><a href="..&#x2F;classes/BitmapText.html">BitmapText</a></li>
<li><a href="..&#x2F;classes/CanvasGraphics.html">CanvasGraphics</a></li>
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
<li><a href="..&#x2F;classes/InteractionData.html">InteractionData</a></li>
<li><a href="..&#x2F;classes/InteractionManager.html">InteractionManager</a></li>
<li><a href="..&#x2F;classes/JsonLoader.html">JsonLoader</a></li>
<li><a href="..&#x2F;classes/MovieClip.html">MovieClip</a></li>
<li><a href="..&#x2F;classes/Point.html">Point</a></li>
<li><a href="..&#x2F;classes/Polygon.html">Polygon</a></li>
<li><a href="..&#x2F;classes/Rectangle.html">Rectangle</a></li>
<li><a href="..&#x2F;classes/RenderTexture.html">RenderTexture</a></li>
<li><a href="..&#x2F;classes/Spine.html">Spine</a></li>
<li><a href="..&#x2F;classes/Sprite.html">Sprite</a></li>
<li><a href="..&#x2F;classes/SpriteSheetLoader.html">SpriteSheetLoader</a></li>
<li><a href="..&#x2F;classes/Stage.html">Stage</a></li>
<li><a href="..&#x2F;classes/Text.html">Text</a></li>
<li><a href="..&#x2F;classes/Texture.html">Texture</a></li>
<li><a href="..&#x2F;classes/TilingSprite.html">TilingSprite</a></li>
<li><a href="..&#x2F;classes/WebGLBatch.html">WebGLBatch</a></li>
<li><a href="..&#x2F;classes/WebGLRenderer.html">WebGLRenderer</a></li>
</ul>
<ul id="api-modules" class="apis modules">
<li><a href="..&#x2F;modules/PIXI.html">PIXI</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="yui3-u-3-4">
<div id="api-options">
Show:
<label for="api-show-inherited">
<input type="checkbox" id="api-show-inherited" checked>
Inherited
</label>
<label for="api-show-protected">
<input type="checkbox" id="api-show-protected">
Protected
</label>
<label for="api-show-private">
<input type="checkbox" id="api-show-private">
Private
</label>
<label for="api-show-deprecated">
<input type="checkbox" id="api-show-deprecated">
Deprecated
</label>
</div>
<div class="apidocs">
<div id="docs-main">
<div class="content">
<h1 class="file-heading">File: src&#x2F;pixi&#x2F;filters&#x2F;FilterBlock.js</h1>
<div class="file">
<pre class="code prettyprint linenums">
&#x2F;**
* @author Mat Groves http:&#x2F;&#x2F;matgroves.com&#x2F; @Doormat23
*&#x2F;
PIXI.FilterBlock = function(mask)
{
this.graphics = mask
this.visible = true;
this.renderable = true;
}
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="..&#x2F;assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="..&#x2F;assets/js/yui-prettify.js"></script>
<script src="..&#x2F;assets/../api.js"></script>
<script src="..&#x2F;assets/js/api-filter.js"></script>
<script src="..&#x2F;assets/js/api-list.js"></script>
<script src="..&#x2F;assets/js/api-search.js"></script>
<script src="..&#x2F;assets/js/apidocs.js"></script>
</body>
</html>

View file

@ -0,0 +1,180 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>src&#x2F;pixi&#x2F;filters&#x2F;MaskFilter.js - Pixi.JS</title>
<link rel="stylesheet" href="http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;3.8.0&#x2F;build&#x2F;cssgrids&#x2F;cssgrids-min.css">
<link rel="stylesheet" href="..&#x2F;assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="..&#x2F;assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="..&#x2F;assets/favicon.png">
<script src="http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;combo?3.8.0&#x2F;build&#x2F;yui&#x2F;yui-min.js"></script>
</head>
<body class="yui3-skin-sam">
<div id="doc">
<div id="hd" class="yui3-g header">
<div class="yui3-u-3-4">
<h1><img src="http:&#x2F;&#x2F;www.goodboydigital.com&#x2F;pixijs&#x2F;logo_small.png" title="Pixi.JS"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.3.0</em>
</div>
</div>
<div id="bd" class="yui3-g">
<div class="yui3-u-1-4">
<div id="docs-sidebar" class="sidebar apidocs">
<div id="api-list">
<h2 class="off-left">APIs</h2>
<div id="api-tabview" class="tabview">
<ul class="tabs">
<li><a href="#api-classes">Classes</a></li>
<li><a href="#api-modules">Modules</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" id="api-filter" placeholder="Type to filter APIs">
</div>
<div id="api-tabview-panel">
<ul id="api-classes" class="apis classes">
<li><a href="..&#x2F;classes/AssetLoader.html">AssetLoader</a></li>
<li><a href="..&#x2F;classes/BaseTexture.html">BaseTexture</a></li>
<li><a href="..&#x2F;classes/BitmapFontLoader.html">BitmapFontLoader</a></li>
<li><a href="..&#x2F;classes/BitmapText.html">BitmapText</a></li>
<li><a href="..&#x2F;classes/CanvasGraphics.html">CanvasGraphics</a></li>
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
<li><a href="..&#x2F;classes/InteractionData.html">InteractionData</a></li>
<li><a href="..&#x2F;classes/InteractionManager.html">InteractionManager</a></li>
<li><a href="..&#x2F;classes/JsonLoader.html">JsonLoader</a></li>
<li><a href="..&#x2F;classes/MovieClip.html">MovieClip</a></li>
<li><a href="..&#x2F;classes/Point.html">Point</a></li>
<li><a href="..&#x2F;classes/Polygon.html">Polygon</a></li>
<li><a href="..&#x2F;classes/Rectangle.html">Rectangle</a></li>
<li><a href="..&#x2F;classes/RenderTexture.html">RenderTexture</a></li>
<li><a href="..&#x2F;classes/Spine.html">Spine</a></li>
<li><a href="..&#x2F;classes/Sprite.html">Sprite</a></li>
<li><a href="..&#x2F;classes/SpriteSheetLoader.html">SpriteSheetLoader</a></li>
<li><a href="..&#x2F;classes/Stage.html">Stage</a></li>
<li><a href="..&#x2F;classes/Text.html">Text</a></li>
<li><a href="..&#x2F;classes/Texture.html">Texture</a></li>
<li><a href="..&#x2F;classes/TilingSprite.html">TilingSprite</a></li>
<li><a href="..&#x2F;classes/WebGLBatch.html">WebGLBatch</a></li>
<li><a href="..&#x2F;classes/WebGLRenderer.html">WebGLRenderer</a></li>
</ul>
<ul id="api-modules" class="apis modules">
<li><a href="..&#x2F;modules/PIXI.html">PIXI</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="yui3-u-3-4">
<div id="api-options">
Show:
<label for="api-show-inherited">
<input type="checkbox" id="api-show-inherited" checked>
Inherited
</label>
<label for="api-show-protected">
<input type="checkbox" id="api-show-protected">
Protected
</label>
<label for="api-show-private">
<input type="checkbox" id="api-show-private">
Private
</label>
<label for="api-show-deprecated">
<input type="checkbox" id="api-show-deprecated">
Deprecated
</label>
</div>
<div class="apidocs">
<div id="docs-main">
<div class="content">
<h1 class="file-heading">File: src&#x2F;pixi&#x2F;filters&#x2F;MaskFilter.js</h1>
<div class="file">
<pre class="code prettyprint linenums">
&#x2F;**
* @author Mat Groves http:&#x2F;&#x2F;matgroves.com&#x2F; @Doormat23
*&#x2F;
PIXI.MaskFilter = function(graphics)
{
&#x2F;&#x2F; the graphics data that will be used for filtering
this.graphics;
}
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="..&#x2F;assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="..&#x2F;assets/js/yui-prettify.js"></script>
<script src="..&#x2F;assets/../api.js"></script>
<script src="..&#x2F;assets/js/api-filter.js"></script>
<script src="..&#x2F;assets/js/api-list.js"></script>
<script src="..&#x2F;assets/js/api-search.js"></script>
<script src="..&#x2F;assets/js/apidocs.js"></script>
</body>
</html>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -163,8 +167,8 @@ PIXI.Graphics = function()
this.fillAlpha = 1;
this.lineWidth = 2;
this.lineColor = &quot;#FF0000&quot;;
this.lineWidth = 0;
this.lineColor = &quot;black&quot;;
this.graphicsData = [];

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -179,7 +183,6 @@ PIXI.CanvasGraphics.renderGraphics = function(graphics, context)
if(data.type == PIXI.Graphics.POLY)
{
&#x2F;&#x2F;if(data.lineWidth &lt;= 0)continue;
context.beginPath();
@ -211,12 +214,13 @@ PIXI.CanvasGraphics.renderGraphics = function(graphics, context)
}
else if(data.type == PIXI.Graphics.RECT)
{
&#x2F;&#x2F; TODO - need to be Undefined!
if(data.fillColor)
{
context.globalAlpha = data.fillAlpha * worldAlpha;
context.fillStyle = color = &#x27;#&#x27; + (&#x27;00000&#x27; + ( data.fillColor | 0).toString(16)).substr(-6);
context.fillRect(points[0], points[1], points[2], points[3]);
context.rect(points[0], points[1], points[2], points[3]);
}
if(data.lineWidth)
@ -224,6 +228,7 @@ PIXI.CanvasGraphics.renderGraphics = function(graphics, context)
context.globalAlpha = data.lineAlpha * worldAlpha;
context.strokeRect(points[0], points[1], points[2], points[3]);
}
}
else if(data.type == PIXI.Graphics.CIRC)
{
@ -288,6 +293,94 @@ PIXI.CanvasGraphics.renderGraphics = function(graphics, context)
}
}
};
}
&#x2F;*
* @private
* @static
* @method renderGraphicsMask
* @param graphics {Graphics}
* @param context {Context2D}
*&#x2F;
PIXI.CanvasGraphics.renderGraphicsMask = function(graphics, context)
{
var worldAlpha = graphics.worldAlpha;
var len = graphics.graphicsData.length;
if(len &gt; 1)
{
len = 1;
console.log(&quot;Pixi.js warning: masks in canvas can only mask using the first path in the graphics object&quot;)
}
for (var i=0; i &lt; 1; i++)
{
var data = graphics.graphicsData[i];
var points = data.points;
if(data.type == PIXI.Graphics.POLY)
{
&#x2F;&#x2F;if(data.lineWidth &lt;= 0)continue;
context.beginPath();
context.moveTo(points[0], points[1]);
for (var j=1; j &lt; points.length&#x2F;2; j++)
{
context.lineTo(points[j * 2], points[j * 2 + 1]);
}
&#x2F;&#x2F; if the first and last point are the same close the path - much neater :)
if(points[0] == points[points.length-2] &amp;&amp; points[1] == points[points.length-1])
{
context.closePath();
}
}
else if(data.type == PIXI.Graphics.RECT)
{
context.beginPath();
context.rect(points[0], points[1], points[2], points[3]);
context.closePath();
}
else if(data.type == PIXI.Graphics.CIRC)
{
&#x2F;&#x2F; TODO - need to be Undefined!
context.beginPath();
context.arc(points[0], points[1], points[2],0,2*Math.PI);
context.closePath();
}
else if(data.type == PIXI.Graphics.ELIP)
{
&#x2F;&#x2F; elipse code taken from: http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;2172798&#x2F;how-to-draw-an-oval-in-html5-canvas
var elipseData = data.points;
var w = elipseData[2] * 2;
var h = elipseData[3] * 2;
var x = elipseData[0] - w&#x2F;2;
var y = elipseData[1] - h&#x2F;2;
context.beginPath();
var kappa = .5522848,
ox = (w &#x2F; 2) * kappa, &#x2F;&#x2F; control point offset horizontal
oy = (h &#x2F; 2) * kappa, &#x2F;&#x2F; control point offset vertical
xe = x + w, &#x2F;&#x2F; x-end
ye = y + h, &#x2F;&#x2F; y-end
xm = x + w &#x2F; 2, &#x2F;&#x2F; x-middle
ym = y + h &#x2F; 2; &#x2F;&#x2F; y-middle
context.moveTo(x, ym);
context.bezierCurveTo(x, ym - oy, xm - ox, y, xm, y);
context.bezierCurveTo(xm + ox, y, xe, ym - oy, xe, ym);
context.bezierCurveTo(xe, ym + oy, xm + ox, ye, xm, ye);
context.bezierCurveTo(xm - ox, ye, x, ym + oy, x, ym);
context.closePath();
}
};
}

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -271,47 +275,43 @@ PIXI.CanvasRenderer.prototype.resize = function(width, height)
PIXI.CanvasRenderer.prototype.renderDisplayObject = function(displayObject)
{
var transform = displayObject.worldTransform;
&#x2F;&#x2F; no loger recurrsive!
var transform;
var context = this.context;
&#x2F;&#x2F;context.globalCompositeOperation = &quot;source-over&quot;
var blit = false;
if(!displayObject.visible)return;
if(displayObject instanceof PIXI.Sprite)
context.globalCompositeOperation = &#x27;source-over&#x27;;
&#x2F;&#x2F; one the display object hits this. we can break the loop
var testObject = displayObject.last._iNext;
displayObject = displayObject.first;
do
{
var frame = displayObject.texture.frame;
transform = displayObject.worldTransform;
if(frame)
if(!displayObject.visible)
{
context.globalAlpha = displayObject.worldAlpha;
displayObject = displayObject.last._iNext;
continue;
}
if(!displayObject.renderable)
{
displayObject = displayObject._iNext;
continue;
}
if(displayObject instanceof PIXI.Sprite)
{
var frame = displayObject.texture.frame;
&#x2F;&#x2F; BLITZ!!!
&#x2F;*
* if the rotation is 0 then we can blitz it
* meaning we dont need to do a transform and also we
* can round to the nearest round number for a little extra speed!
*&#x2F;
&#x2F;*if(displayObject.rotation == 0)
if(frame)
{
if(!blit)this.context.setTransform(1,0,0,1,0,0);
blit = true;
context.drawImage(displayObject.texture.baseTexture.image,
frame.x,
frame.y,
frame.width,
frame.height,
(transform[2]+ ((displayObject.anchor.x - displayObject.texture.trim.x) * -frame.width) * transform[0]),
(transform[5]+ ((displayObject.anchor.y - displayObject.texture.trim.y) * -frame.height)* transform[4]),
(displayObject.width * transform[0]),
(displayObject.height * transform[4]));
context.globalAlpha = displayObject.worldAlpha;
}
else
{*&#x2F;
&#x2F;&#x2F; blit = false;
context.setTransform(transform[0], transform[3], transform[1], transform[4], transform[2], transform[5]);
context.drawImage(displayObject.texture.baseTexture.source,
frame.x,
frame.y,
@ -319,46 +319,67 @@ PIXI.CanvasRenderer.prototype.renderDisplayObject = function(displayObject)
frame.height,
(displayObject.anchor.x) * -frame.width,
(displayObject.anchor.y) * -frame.height,
&#x2F;&#x2F; (displayObject.anchor.x - displayObject.texture.trim.x) * -frame.width,
&#x2F;&#x2F; (displayObject.anchor.y - displayObject.texture.trim.y) * -frame.height,
frame.width,
frame.height);
&#x2F;&#x2F;}
}
}
else if(displayObject instanceof PIXI.Strip)
{
context.setTransform(transform[0], transform[3], transform[1], transform[4], transform[2], transform[5])
this.renderStrip(displayObject);
}
else if(displayObject instanceof PIXI.TilingSprite)
{
context.setTransform(transform[0], transform[3], transform[1], transform[4], transform[2], transform[5])
this.renderTilingSprite(displayObject);
}
else if(displayObject instanceof PIXI.CustomRenderable)
{
displayObject.renderCanvas(this);
}
else if(displayObject instanceof PIXI.Graphics)
{
context.setTransform(transform[0], transform[3], transform[1], transform[4], transform[2], transform[5])
PIXI.CanvasGraphics.renderGraphics(displayObject, context);
}
&#x2F;&#x2F; render!
if(displayObject.children)
{
for (var i=0; i &lt; displayObject.children.length; i++)
}
}
else if(displayObject instanceof PIXI.Strip)
{
this.renderDisplayObject(displayObject.children[i]);
context.setTransform(transform[0], transform[3], transform[1], transform[4], transform[2], transform[5])
this.renderStrip(displayObject);
}
else if(displayObject instanceof PIXI.TilingSprite)
{
context.setTransform(transform[0], transform[3], transform[1], transform[4], transform[2], transform[5])
this.renderTilingSprite(displayObject);
}
else if(displayObject instanceof PIXI.CustomRenderable)
{
displayObject.renderCanvas(this);
}
else if(displayObject instanceof PIXI.Graphics)
{
context.setTransform(transform[0], transform[3], transform[1], transform[4], transform[2], transform[5])
PIXI.CanvasGraphics.renderGraphics(displayObject, context);
}
else if(displayObject instanceof PIXI.FilterBlock)
{
if(displayObject.open)
{
context.save();
var cacheAlpha = displayObject.mask.alpha;
var maskTransform = displayObject.mask.worldTransform;
context.setTransform(maskTransform[0], maskTransform[3], maskTransform[1], maskTransform[4], maskTransform[2], maskTransform[5])
displayObject.mask.worldAlpha = 0.5;
context.worldAlpha = 0;
PIXI.CanvasGraphics.renderGraphicsMask(displayObject.mask, context);
&#x2F;&#x2F; context.fillStyle = 0xFF0000;
&#x2F;&#x2F; context.fillRect(0, 0, 200, 200);
context.clip();
displayObject.mask.worldAlpha = cacheAlpha;
&#x2F;&#x2F;context.globalCompositeOperation = &#x27;lighter&#x27;;
}
else
{
&#x2F;&#x2F;context.globalCompositeOperation = &#x27;source-over&#x27;;
context.restore();
}
}
&#x2F;&#x2F; count++
displayObject = displayObject._iNext;
}
this.context.setTransform(1,0,0,1,0,0);
while(displayObject != testObject)
}
&#x2F;**
* @private
*&#x2F;
@ -387,11 +408,9 @@ PIXI.CanvasRenderer.prototype.renderStripFlat = function(strip)
};
&#x2F;&#x2F; context.globalCompositeOperation = &#x27;lighter&#x27;;
context.fillStyle = &quot;#FF0000&quot;;
context.fill();
context.closePath();
&#x2F;&#x2F;context.globalCompositeOperation = &#x27;source-over&#x27;;
}
&#x2F;**

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -680,7 +684,6 @@ PIXI.WebGLBatch.prototype.render = function(start, end)
var gl = this.gl;
&#x2F;&#x2F;TODO optimize this!
gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
var shaderProgram = PIXI.shaderProgram;
gl.useProgram(shaderProgram);
@ -723,7 +726,7 @@ PIXI.WebGLBatch.prototype.render = function(start, end)
var len = end - start;
&#x2F;&#x2F; console.log(this.size)
&#x2F;&#x2F; DRAW THAT this!
&#x2F;&#x2F; gl.drawElements(gl.TRIANGLES, len * 6, gl.UNSIGNED_SHORT, start * 2 * 6 );
gl.drawElements(gl.TRIANGLES, len * 6, gl.UNSIGNED_SHORT, start * 2 * 6 );
}

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -210,13 +214,9 @@ PIXI.WebGLGraphics.renderGraphics = function(graphics, projection)
gl.vertexAttribPointer(PIXI.primitiveProgram.vertexPositionAttribute, 2, gl.FLOAT, false, 4 * 6, 0);
gl.vertexAttribPointer(PIXI.primitiveProgram.colorAttribute, 4, gl.FLOAT, false,4 * 6, 2 * 4);
&#x2F;&#x2F; console.log(PIXI.primitiveProgram.vertexPositionAttribute);
&#x2F;&#x2F;console.log(&quot;Color &quot; + PIXI.primitiveProgram.colorAttribute);
&#x2F;&#x2F; set the index buffer!
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, graphics._webGL.indexBuffer);
gl.drawElements(gl.TRIANGLE_STRIP, graphics._webGL.indices.length, gl.UNSIGNED_SHORT, 0 );
&#x2F;&#x2F; return to default shader...

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -166,7 +170,6 @@ PIXI.WebGLRenderGroup = function(gl)
this.toRemove = [];
}
&#x2F;&#x2F; constructor
PIXI.WebGLRenderGroup.constructor = PIXI.WebGLRenderGroup;
@ -182,9 +185,7 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
&#x2F;&#x2F; TODO what if its already has an object? should remove it
this.root = displayObject;
&#x2F;&#x2F;displayObject.__renderGroup = this;
this.addDisplayObjectAndChildren(displayObject);
&#x2F;&#x2F;displayObject
}
PIXI.WebGLRenderGroup.prototype.render = function(projection)
@ -193,11 +194,9 @@ PIXI.WebGLRenderGroup.prototype.render = function(projection)
var gl = this.gl;
&#x2F;&#x2F; set the flipped matrix..
&#x2F;&#x2F; gl.uniformMatrix4fv(PIXI.shaderProgram.mvMatrixUniform, false, PIXI.projectionMatrix);
gl.uniform2f(PIXI.shaderProgram.projectionVector, projection.x, projection.y);
gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
&#x2F;&#x2F; TODO remove this by replacing visible with getter setters..
this.checkVisibility(this.root, this.root.visible);
@ -222,12 +221,41 @@ PIXI.WebGLRenderGroup.prototype.render = function(projection)
}
else if(renderable instanceof PIXI.Graphics)
{
if(renderable.visible) PIXI.WebGLGraphics.renderGraphics(renderable, projection);&#x2F;&#x2F;, projectionMatrix);
if(renderable.visible &amp;&amp; renderable.renderable) PIXI.WebGLGraphics.renderGraphics(renderable, projection);&#x2F;&#x2F;, projectionMatrix);
}
else if(renderable instanceof PIXI.FilterBlock)
{
&#x2F;*
* for now only masks are supported..
*&#x2F;
if(renderable.open)
{
gl.enable(gl.STENCIL_TEST);
gl.colorMask(false, false, false, false);
gl.stencilFunc(gl.ALWAYS,1,0xff);
gl.stencilOp(gl.KEEP,gl.KEEP,gl.REPLACE);
PIXI.WebGLGraphics.renderGraphics(renderable.mask, projection);
gl.colorMask(true, true, true, false);
gl.stencilFunc(gl.NOTEQUAL,0,0xff);
gl.stencilOp(gl.KEEP,gl.KEEP,gl.KEEP);
}
else
{
gl.disable(gl.STENCIL_TEST);
}
}
}
}
PIXI.WebGLRenderGroup.prototype.handleFilter = function(filter, projection)
{
}
PIXI.WebGLRenderGroup.prototype.renderSpecific = function(displayObject, projection)
{
PIXI.WebGLRenderer.updateTextures();
@ -238,8 +266,6 @@ PIXI.WebGLRenderGroup.prototype.renderSpecific = function(displayObject, project
&#x2F;&#x2F; gl.uniformMatrix4fv(PIXI.shaderProgram.mvMatrixUniform, false, projectionMatrix);
gl.uniform2f(PIXI.shaderProgram.projectionVector, projection.x, projection.y);
&#x2F;&#x2F;console.log(&quot;SPECIFIC&quot;);
&#x2F;&#x2F; to do!
&#x2F;&#x2F; render part of the scene...
@ -249,8 +275,18 @@ PIXI.WebGLRenderGroup.prototype.renderSpecific = function(displayObject, project
var endIndex;
var endBatchIndex;
&#x2F;&#x2F; get NEXT Renderable!
var nextRenderable = displayObject.renderable ? displayObject : this.getNextRenderable(displayObject);
&#x2F;*
* LOOK FOR THE NEXT SPRITE
* This part looks for the closest next sprite that can go into a batch
* it keeps looking until it finds a sprite or gets to the end of the display
* scene graph
*&#x2F;
var nextRenderable = displayObject.last;
while(nextRenderable._iNext)
{
nextRenderable = nextRenderable._iNext;
if(nextRenderable.renderable &amp;&amp; nextRenderable.__renderGroup)break;
}
var startBatch = nextRenderable.batch;
if(nextRenderable instanceof PIXI.Sprite)
@ -388,20 +424,44 @@ PIXI.WebGLRenderGroup.prototype.renderSpecial = function(renderable)
}
else if(renderable instanceof PIXI.Graphics)
{
if(renderable.visible) PIXI.WebGLGraphics.renderGraphics(renderable);&#x2F;&#x2F;, projectionMatrix);
if(renderable.visible &amp;&amp; renderable.renderable) PIXI.WebGLGraphics.renderGraphics(renderable);&#x2F;&#x2F;, projectionMatrix);
}
else if(renderable instanceof PIXI.FilterBlock)
{
&#x2F;*
* for now only masks are supported..
*&#x2F;
if(renderable.open)
{
gl.enable(gl.STENCIL_TEST);
gl.colorMask(false, false, false, false);
gl.stencilFunc(gl.ALWAYS,1,0xff);
gl.stencilOp(gl.KEEP,gl.KEEP,gl.REPLACE);
PIXI.WebGLGraphics.renderGraphics(renderable.mask, projection);
gl.colorMask(true, true, true, false);
gl.stencilFunc(gl.NOTEQUAL,0,0xff);
gl.stencilOp(gl.KEEP,gl.KEEP,gl.KEEP);
}
else
{
gl.disable(gl.STENCIL_TEST);
}
}
}
PIXI.WebGLRenderGroup.prototype.checkVisibility = function(displayObject, globalVisible)
{
&#x2F;&#x2F; give the dp a refference to its renderGroup...
&#x2F;&#x2F; give the dp a reference to its renderGroup...
var children = displayObject.children;
&#x2F;&#x2F;displayObject.worldVisible = globalVisible;
for (var i=0; i &lt; children.length; i++)
{
var child = children[i];
&#x2F;&#x2F; TODO optimize... shouldt need to loop through everything all the time
&#x2F;&#x2F; TODO optimize... should&#x27;nt need to loop through everything all the time
child.worldVisible = child.visible &amp;&amp; globalVisible;
&#x2F;&#x2F; everything should have a batch!
@ -409,12 +469,7 @@ PIXI.WebGLRenderGroup.prototype.checkVisibility = function(displayObject, global
if(child.textureChange)
{
child.textureChange = false;
if(child.worldVisible)
{
this.removeDisplayObject(child);
this.addDisplayObject(child);
&#x2F;&#x2F;this.updateTexture(child);
}
if(child.worldVisible)this.updateTexture(child);
&#x2F;&#x2F; update texture!!
}
@ -427,123 +482,150 @@ PIXI.WebGLRenderGroup.prototype.checkVisibility = function(displayObject, global
PIXI.WebGLRenderGroup.prototype.updateTexture = function(displayObject)
{
&#x2F;&#x2F; we know this exists..
&#x2F;&#x2F; is it in a batch..
&#x2F;&#x2F; check batch length
if(displayObject.batch.length == 1)
&#x2F;&#x2F; TODO definitely can optimse this function..
this.removeObject(displayObject);
&#x2F;*
* LOOK FOR THE PREVIOUS RENDERABLE
* This part looks for the closest previous sprite that can go into a batch
* It keeps going back until it finds a sprite or the stage
*&#x2F;
var previousRenderable = displayObject.first;
while(previousRenderable != this.root)
{
&#x2F;&#x2F; just one! this guy! so simply swap the texture
displayObject.batch.texture = displayObject.texture.baseTexture;
return;
previousRenderable = previousRenderable._iPrev;
if(previousRenderable.renderable &amp;&amp; previousRenderable.__renderGroup)break;
}
&#x2F;&#x2F; early out!
if(displayObject.batch.texture == displayObject.texture.baseTexture)return;
&#x2F;*
* LOOK FOR THE NEXT SPRITE
* This part looks for the closest next sprite that can go into a batch
* it keeps looking until it finds a sprite or gets to the end of the display
* scene graph
*&#x2F;
var nextRenderable = displayObject.last;
while(nextRenderable._iNext)
{
nextRenderable = nextRenderable._iNext;
if(nextRenderable.renderable &amp;&amp; nextRenderable.__renderGroup)break;
}
if(displayObject.batch.head == displayObject)
{
&#x2F;&#x2F;console.log(&quot;HEAD&quot;)
var currentBatch = displayObject.batch;
var index = this.batchs.indexOf( currentBatch );
var previousBatch = this.batchs[index-1];
currentBatch.remove(displayObject);
if(previousBatch)
{
if(previousBatch.texture == displayObject.texture.baseTexture &amp;&amp; previousBatch.blendMode == displayObject.blendMode)
{
previousBatch.insertAfter(displayObject, previousBatch.tail);
}
else
{
&#x2F;&#x2F; add it before..
var batch = PIXI.WebGLRenderer.getBatch();
batch.init(displayObject);
this.batchs.splice(index-1, 0, batch);
}
}
else
{
&#x2F;&#x2F; we are 0!
var batch = PIXI.WebGLRenderer.getBatch();
batch.init(displayObject);
this.batchs.splice(0, 0, batch);
}
}
else if(displayObject.batch.tail == displayObject)
{
var currentBatch = displayObject.batch;
var index = this.batchs.indexOf( currentBatch );
var nextBatch = this.batchs[index+1];
currentBatch.remove(displayObject);
if(nextBatch)
{
if(nextBatch.texture == displayObject.texture.baseTexture &amp;&amp; nextBatch.blendMode == displayObject.blendMode)
{
nextBatch.insertBefore(displayObject, nextBatch.head);
return;
}
else
{
&#x2F;&#x2F; add it before..
var batch = PIXI.WebGLRenderer.getBatch();
batch.init(displayObject);
this.batchs.splice(index+1, 0, batch);
}
}
else
{
&#x2F;&#x2F; we are 0!
var batch = PIXI.WebGLRenderer.getBatch();
batch.init(displayObject);
this.batchs.push(batch);
}
}
else
{
&#x2F;&#x2F; console.log(&quot;MIDDLE&quot;)
var currentBatch = displayObject.batch;
&#x2F;&#x2F; split the batch into 2
&#x2F;&#x2F; AH! dont split on the current display object as the texture is wrong!
var splitBatch = currentBatch.split(displayObject);
&#x2F;&#x2F; now remove the display object
splitBatch.remove(displayObject);
var batch = PIXI.WebGLRenderer.getBatch();
var index = this.batchs.indexOf( currentBatch );
batch.init(displayObject);
this.batchs.splice(index+1, 0, batch, splitBatch);
}
this.insertObject(displayObject, previousRenderable, nextRenderable);
}
PIXI.WebGLRenderGroup.prototype.addDisplayObject = function(displayObject)
PIXI.WebGLRenderGroup.prototype.addFilterBlocks = function(start, end)
{
start.__renderGroup = this;
end.__renderGroup = this;
&#x2F;*
* LOOK FOR THE PREVIOUS RENDERABLE
* This part looks for the closest previous sprite that can go into a batch
* It keeps going back until it finds a sprite or the stage
*&#x2F;
var previousRenderable = start;
while(previousRenderable != this.root)
{
previousRenderable = previousRenderable._iPrev;
if(previousRenderable.renderable &amp;&amp; previousRenderable.__renderGroup)break;
}
this.insertAfter(start, previousRenderable);
&#x2F;*
* LOOK FOR THE NEXT SPRITE
* This part looks for the closest next sprite that can go into a batch
* it keeps looking until it finds a sprite or gets to the end of the display
* scene graph
*&#x2F;
var previousRenderable2 = end;
while(previousRenderable2 != this.root)
{
previousRenderable2 = previousRenderable2._iPrev;
if(previousRenderable2.renderable &amp;&amp; previousRenderable2.__renderGroup)break;
}
this.insertAfter(end, previousRenderable2);
}
PIXI.WebGLRenderGroup.prototype.removeFilterBlocks = function(start, end)
{
this.removeObject(start);
this.removeObject(end);
}
PIXI.WebGLRenderGroup.prototype.addDisplayObjectAndChildren = function(displayObject)
{
&#x2F;&#x2F; add a child to the render group..
if(displayObject.__renderGroup)displayObject.__renderGroup.removeDisplayObjectAndChildren(displayObject);
&#x2F;&#x2F; DONT htink this is needed?
&#x2F;&#x2F; displayObject.batch = null;
displayObject.__renderGroup = this;
&#x2F;*
* LOOK FOR THE PREVIOUS RENDERABLE
* This part looks for the closest previous sprite that can go into a batch
* It keeps going back until it finds a sprite or the stage
*&#x2F;
var previousRenderable = displayObject.first;
while(previousRenderable != this.root)
{
previousRenderable = previousRenderable._iPrev;
if(previousRenderable.renderable &amp;&amp; previousRenderable.__renderGroup)break;
}
&#x2F;*
* LOOK FOR THE NEXT SPRITE
* This part looks for the closest next sprite that can go into a batch
* it keeps looking until it finds a sprite or gets to the end of the display
* scene graph
*&#x2F;
var nextRenderable = displayObject.last;
while(nextRenderable._iNext)
{
nextRenderable = nextRenderable._iNext;
if(nextRenderable.renderable &amp;&amp; nextRenderable.__renderGroup)break;
}
&#x2F;&#x2F; one the display object hits this. we can break the loop
var tempObject = displayObject.first;
var testObject = displayObject.last._iNext;
do
{
tempObject.__renderGroup = this;
if(tempObject.renderable)
{
this.insertObject(tempObject, previousRenderable, nextRenderable);
previousRenderable = tempObject;
}
tempObject = tempObject._iNext;
}
while(tempObject != testObject)
}
&#x2F;&#x2F;displayObject.cacheVisible = true;
if(!displayObject.renderable)return;
PIXI.WebGLRenderGroup.prototype.removeDisplayObjectAndChildren = function(displayObject)
{
if(displayObject.__renderGroup != this)return;
&#x2F;&#x2F; var displayObject = displayObject.first;
var lastObject = displayObject.last;
do
{
displayObject.__renderGroup = null;
if(displayObject.renderable)this.removeObject(displayObject);
displayObject = displayObject._iNext;
}
while(displayObject)
}
PIXI.WebGLRenderGroup.prototype.insertObject = function(displayObject, previousObject, nextObject)
{
&#x2F;&#x2F; while looping below THE OBJECT MAY NOT HAVE BEEN ADDED
&#x2F;&#x2F;displayObject.__inWebGL = true;
var previousSprite = previousObject;
var nextSprite = nextObject;
var previousSprite = this.getPreviousRenderable(displayObject);
var nextSprite = this.getNextRenderable(displayObject);
&#x2F;*
* so now we have the next renderable and the previous renderable
*
@ -612,6 +694,7 @@ PIXI.WebGLRenderGroup.prototype.addDisplayObject = function(displayObject)
else
{
&#x2F;&#x2F; TODO re-word!
nextBatch = nextSprite;
}
}
@ -634,49 +717,88 @@ PIXI.WebGLRenderGroup.prototype.addDisplayObject = function(displayObject)
{
this.batchs.push(batch);
}
return;
}
else if(displayObject instanceof PIXI.TilingSprite)
{
&#x2F;&#x2F; add to a batch!!
this.initTilingSprite(displayObject);
this.batchs.push(displayObject);
&#x2F;&#x2F; this.batchs.push(displayObject);
}
else if(displayObject instanceof PIXI.Strip)
{
&#x2F;&#x2F; add to a batch!!
this.initStrip(displayObject);
this.batchs.push(displayObject);
&#x2F;&#x2F; this.batchs.push(displayObject);
}
else if(displayObject instanceof PIXI.Graphics)
else if(displayObject)&#x2F;&#x2F; instanceof PIXI.Graphics)
{
&#x2F;&#x2F;displayObject.initWebGL(this);
&#x2F;&#x2F; add to a batch!!
&#x2F;&#x2F;this.initStrip(displayObject);
this.batchs.push(displayObject);
&#x2F;&#x2F;this.batchs.push(displayObject);
}
&#x2F;&#x2F; if its somthing else... then custom codes!
this.batchUpdate = true;
this.insertAfter(displayObject, previousSprite);
&#x2F;&#x2F; insert and SPLIT!
}
PIXI.WebGLRenderGroup.prototype.addDisplayObjectAndChildren = function(displayObject)
PIXI.WebGLRenderGroup.prototype.insertAfter = function(item, displayObject)
{
&#x2F;&#x2F; TODO - this can be faster - but not as important right now
this.addDisplayObject(displayObject);
var children = displayObject.children;
for (var i=0; i &lt; children.length; i++)
if(displayObject instanceof PIXI.Sprite)
{
this.addDisplayObjectAndChildren(children[i]);
};
var previousBatch = displayObject.batch;
if(previousBatch)
{
&#x2F;&#x2F; so this object is in a batch!
&#x2F;&#x2F; is it not? need to split the batch
if(previousBatch.tail == displayObject)
{
&#x2F;&#x2F; is it tail? insert in to batchs
var index = this.batchs.indexOf( previousBatch );
this.batchs.splice(index+1, 0, item);
}
else
{
&#x2F;&#x2F; TODO MODIFY ADD &#x2F; REMOVE CHILD TO ACCOUNT FOR FILTERS (also get prev and next) &#x2F;&#x2F;
&#x2F;&#x2F; THERE IS A SPLIT IN THIS BATCH! &#x2F;&#x2F;
var splitBatch = previousBatch.split(displayObject.__next);
&#x2F;&#x2F; COOL!
&#x2F;&#x2F; add it back into the array
&#x2F;*
* OOPS!
* seems the new sprite is in the middle of a batch
* lets split it..
*&#x2F;
var index = this.batchs.indexOf( previousBatch );
this.batchs.splice(index+1, 0, item, splitBatch);
}
}
else
{
this.batchs.push(item);
}
}
else
{
var index = this.batchs.indexOf( displayObject );
this.batchs.splice(index+1, 0, item);
}
}
PIXI.WebGLRenderGroup.prototype.removeDisplayObject = function(displayObject)
PIXI.WebGLRenderGroup.prototype.removeObject = function(displayObject)
{
&#x2F;&#x2F; loop through children..
&#x2F;&#x2F; display object &#x2F;&#x2F;
@ -684,10 +806,7 @@ PIXI.WebGLRenderGroup.prototype.removeDisplayObject = function(displayObject)
&#x2F;&#x2F; add a child from the render group..
&#x2F;&#x2F; remove it and all its children!
&#x2F;&#x2F;displayObject.cacheVisible = false;&#x2F;&#x2F;displayObject.visible;
displayObject.__renderGroup = null;
if(!displayObject.renderable)return;
&#x2F;*
* removing is a lot quicker..
*
@ -745,111 +864,18 @@ PIXI.WebGLRenderGroup.prototype.removeDisplayObject = function(displayObject)
}
}
this.batchs.splice(index, 1);
if(batchToRemove instanceof PIXI.WebGLBatch)PIXI.WebGLRenderer.returnBatch(batchToRemove);
}
}
PIXI.WebGLRenderGroup.prototype.removeDisplayObjectAndChildren = function(displayObject)
{
&#x2F;&#x2F; TODO - this can be faster - but not as important right now
if(displayObject.__renderGroup != this)return;
this.removeDisplayObject(displayObject);
var children = displayObject.children;
for (var i=0; i &lt; children.length; i++)
{
this.removeDisplayObjectAndChildren(children[i]);
};
}
&#x2F;**
* @private
*&#x2F;
PIXI.WebGLRenderGroup.prototype.getNextRenderable = function(displayObject)
{
&#x2F;*
* LOOK FOR THE NEXT SPRITE
* This part looks for the closest next sprite that can go into a batch
* it keeps looking until it finds a sprite or gets to the end of the display
* scene graph
*
* These look a lot scarier than the actually are...
*&#x2F;
var nextSprite = displayObject;
do
{
&#x2F;&#x2F; moving forward!
&#x2F;&#x2F; if it has no children..
if(nextSprite.children.length == 0)
{
&#x2F;&#x2F;maynot have a parent
if(!nextSprite.parent)return null;
&#x2F;&#x2F; go along to the parent..
while(nextSprite.childIndex == nextSprite.parent.children.length-1)
{
nextSprite = nextSprite.parent;
&#x2F;&#x2F;console.log(&quot;&gt;&quot; + nextSprite);
&#x2F;&#x2F; console.log(&quot;&gt;-&quot; + this.root);
if(nextSprite == this.root || !nextSprite.parent)&#x2F;&#x2F;displayObject.stage)
{
nextSprite = null
break;
}
}
if(nextSprite)nextSprite = nextSprite.parent.children[nextSprite.childIndex+1];
}
else
{
nextSprite = nextSprite.children[0];
}
if(!nextSprite)break;
}
while(!nextSprite.renderable || !nextSprite.__renderGroup)
return nextSprite;
}
PIXI.WebGLRenderGroup.prototype.getPreviousRenderable = function(displayObject)
{
&#x2F;*
* LOOK FOR THE PREVIOUS SPRITE
* This part looks for the closest previous sprite that can go into a batch
* It keeps going back until it finds a sprite or the stage
*&#x2F;
var previousSprite = displayObject;
do
{
if(previousSprite.childIndex == 0)
{
previousSprite = previousSprite.parent;
if(!previousSprite)return null;
}
else
{
previousSprite = previousSprite.parent.children[previousSprite.childIndex-1];
&#x2F;&#x2F; what if the bloop has children???
while(previousSprite.children.length != 0)
{
&#x2F;&#x2F; keep diggin till we get to the last child
previousSprite = previousSprite.children[previousSprite.children.length-1];
}
}
if(previousSprite == this.root)break;
}
while(!previousSprite.renderable || !previousSprite.__renderGroup);
return previousSprite;
}
&#x2F;**
* @private
@ -930,7 +956,7 @@ PIXI.WebGLRenderGroup.prototype.renderStrip = function(strip, projection)
gl.uniform2f(PIXI.stripShaderProgram.projectionVector, projection.x, projection.y);
gl.uniform1f(PIXI.stripShaderProgram.alpha, strip.worldAlpha);
&#x2F;*
if(strip.blendMode == PIXI.blendModes.NORMAL)
{
gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
@ -939,7 +965,7 @@ PIXI.WebGLRenderGroup.prototype.renderStrip = function(strip, projection)
{
gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_COLOR);
}
*&#x2F;
if(!strip.dirty)

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -192,7 +196,8 @@ PIXI.WebGLRenderer = function(width, height, view, transparent)
PIXI.gl = this.gl = this.view.getContext(&quot;experimental-webgl&quot;, {
alpha: this.transparent,
antialias:true, &#x2F;&#x2F; SPEED UP??
premultipliedAlpha:false
premultipliedAlpha:false,
stencil:true
});
}
catch (e)
@ -212,6 +217,10 @@ PIXI.WebGLRenderer = function(width, height, view, transparent)
this.batch = new PIXI.WebGLBatch(gl);
gl.disable(gl.DEPTH_TEST);
gl.disable(gl.CULL_FACE);
&#x2F;&#x2F;
gl.enable(gl.BLEND);
gl.colorMask(true, true, true, this.transparent);

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -242,7 +246,6 @@ PIXI.primitiveShaderVertexSrc = [
PIXI.initPrimitiveShader = function()
{
return;
var gl = PIXI.gl;
var shaderProgram = PIXI.compileProgram(PIXI.primitiveShaderVertexSrc, PIXI.primitiveShaderFragmentSrc)
@ -325,21 +328,6 @@ PIXI._CompileShader = function(gl, shaderSrc, shaderType)
return shader;
}
PIXI.activateDefaultShader = function()
{
var gl = PIXI.gl;
var shaderProgram = PIXI.shaderProgram;
gl.useProgram(shaderProgram);
gl.enableVertexAttribArray(shaderProgram.vertexPositionAttribute);
gl.enableVertexAttribArray(shaderProgram.textureCoordAttribute);
gl.enableVertexAttribArray(shaderProgram.colorAttribute);
}
PIXI.compileProgram = function(vertexSrc, fragmentSrc)
{
@ -360,6 +348,22 @@ PIXI.compileProgram = function(vertexSrc, fragmentSrc)
return shaderProgram;
}
PIXI.activateDefaultShader = function()
{
var gl = PIXI.gl;
var shaderProgram = PIXI.shaderProgram;
gl.useProgram(shaderProgram);
gl.enableVertexAttribArray(shaderProgram.vertexPositionAttribute);
gl.enableVertexAttribArray(shaderProgram.textureCoordAttribute);
gl.enableVertexAttribArray(shaderProgram.colorAttribute);
}
PIXI.activatePrimitiveShader = function()
{
var gl = PIXI.gl;

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -231,7 +235,32 @@ var AjaxRequest = PIXI.AjaxRequest = function()
}
}
&#x2F;*
* DEBUGGING ONLY
*&#x2F;
PIXI.runList = function(item)
{
console.log(&quot;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&quot;)
console.log(&quot;_&quot;)
var safe = 0;
var tmp = item.first;
console.log(tmp);
while(tmp._iNext)
{
safe++;
&#x2F;&#x2F; console.log(tmp.childIndex + tmp);
tmp = tmp._iNext;
console.log(tmp);&#x2F;&#x2F;.childIndex);
&#x2F;&#x2F; console.log(tmp);
if(safe &gt; 100)
{
console.log(&quot;BREAK&quot;)
break
}
}
}

View file

@ -53,12 +53,16 @@
<li><a href=".&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href=".&#x2F;classes/Circle.html">Circle</a></li>
<li><a href=".&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href=".&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href=".&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href=".&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href=".&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href=".&#x2F;classes/ImageLoader.html">ImageLoader</a></li>

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -146,7 +150,7 @@
<div class="foundat">
Defined in: <a href="..&#x2F;files&#x2F;src_pixi_InteractionManager.js.html#l524"><code>src&#x2F;pixi&#x2F;InteractionManager.js:524</code></a>
Defined in: <a href="..&#x2F;files&#x2F;src_pixi_InteractionManager.js.html#l493"><code>src&#x2F;pixi&#x2F;InteractionManager.js:493</code></a>
</div>
@ -204,6 +208,12 @@
</a>
</li>
<li class="module-class">
<a href="..&#x2F;classes/Circle.html">
Circle
</a>
</li>
<li class="module-class">
<a href="..&#x2F;classes/CustomRenderable.html">
CustomRenderable
@ -222,6 +232,12 @@
</a>
</li>
<li class="module-class">
<a href="..&#x2F;classes/Ellipse.html">
Ellipse
</a>
</li>
<li class="module-class">
<a href="..&#x2F;classes/Graphics.html">
Graphics

View file

@ -4,7 +4,7 @@
* Copyright (c) 2012, Mat Groves
* http://goodboydigital.com/
*
* Compiled: 2013-07-01
* Compiled: 2013-07-02
*
* Pixi.JS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
@ -180,7 +180,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*/
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i<this.points.length; i++) {
@ -196,7 +196,7 @@ PIXI.Polygon.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Polygon.contains = function(x, y)
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;
@ -255,7 +255,7 @@ PIXI.Circle = function(x, y, radius)
* @method clone
* @return a copy of the polygon
*/
PIXI.Circle.clone = function()
PIXI.Circle.prototype.clone = function()
{
return new PIXI.Circle(this.x, this.y, this.radius);
}
@ -266,7 +266,7 @@ PIXI.Circle.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Circle.contains = function(x, y)
PIXI.Circle.prototype.contains = function(x, y)
{
if(this.radius <= 0)
return false;
@ -331,7 +331,7 @@ PIXI.Ellipse = function(x, y, width, height)
* @method clone
* @return a copy of the polygon
*/
PIXI.Ellipse.clone = function()
PIXI.Ellipse.prototype.clone = function()
{
return new PIXI.Ellipse(this.x, this.y, this.width, this.height);
}
@ -342,7 +342,7 @@ PIXI.Ellipse.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Ellipse.contains = function(x, y)
PIXI.Ellipse.prototype.contains = function(x, y)
{
if(this.width <= 0 || this.height <= 0)
return false;
@ -864,9 +864,13 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', {
}
});
county = 0;
/**
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
* In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
* To remove a mask, set this property to null.
* @property mask
* @type PIXI.Graphics
*/
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
get: function() {
return this._mask;
@ -886,7 +890,9 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
}
});
/*
* private
*/
PIXI.DisplayObject.prototype.addFilter = function(mask)
{
if(this.filter)return;
@ -912,7 +918,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an start filter
* insert start
*
*/
@ -945,7 +951,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an end filter
* insert end filter
*
*/
var childFirst = end
@ -979,8 +985,6 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
this.first = start;
// TODO need to check if the stage already exists...
// if webGL...
if(this.__renderGroup)
{
@ -1008,8 +1012,6 @@ PIXI.DisplayObject.prototype.removeFilter = function()
this.first = startBlock._iNext;
// this will NEVER be true!
// remove the end filter
var lastBlock = this.last;
@ -1328,9 +1330,14 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
*/
PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
{
/*
* this funtion needs to be recoded..
* can be done a lot faster..
*/
return;
// need to fix this function :/
// need to fix this function :/
/*
// TODO I already know this??
var index = this.children.indexOf( child );
var index2 = this.children.indexOf( child2 );
@ -1349,7 +1356,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
this.stage.__addChild(child);
this.stage.__addChild(child2);
}*/
}
// swap the positions..
this.children[index] = child2;
@ -1359,7 +1366,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
else
{
throw new Error(child + " Both the supplied DisplayObjects must be a child of the caller " + this);
}
}*/
}
/**
@ -2502,11 +2509,13 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
//a sprite or display object with a hit area defined
if(item.hitArea && item.hitArea.contains && item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
if(item.hitArea && item.hitArea.contains) {
if(item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
return true;
return true;
}
}
// a sprite with no hitarea defined
else if(isSprite)
@ -4835,7 +4844,6 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
// TODO what if its already has an object? should remove it
this.root = displayObject;
//displayObject.__renderGroup = this;
this.addDisplayObjectAndChildren(displayObject);
}

View file

@ -4,7 +4,7 @@
* Copyright (c) 2012, Mat Groves
* http://goodboydigital.com/
*
* Compiled: 2013-07-01
* Compiled: 2013-07-02
*
* Pixi.JS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
@ -180,7 +180,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*/
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i<this.points.length; i++) {
@ -196,7 +196,7 @@ PIXI.Polygon.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Polygon.contains = function(x, y)
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;
@ -255,7 +255,7 @@ PIXI.Circle = function(x, y, radius)
* @method clone
* @return a copy of the polygon
*/
PIXI.Circle.clone = function()
PIXI.Circle.prototype.clone = function()
{
return new PIXI.Circle(this.x, this.y, this.radius);
}
@ -266,7 +266,7 @@ PIXI.Circle.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Circle.contains = function(x, y)
PIXI.Circle.prototype.contains = function(x, y)
{
if(this.radius <= 0)
return false;
@ -331,7 +331,7 @@ PIXI.Ellipse = function(x, y, width, height)
* @method clone
* @return a copy of the polygon
*/
PIXI.Ellipse.clone = function()
PIXI.Ellipse.prototype.clone = function()
{
return new PIXI.Ellipse(this.x, this.y, this.width, this.height);
}
@ -342,7 +342,7 @@ PIXI.Ellipse.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Ellipse.contains = function(x, y)
PIXI.Ellipse.prototype.contains = function(x, y)
{
if(this.width <= 0 || this.height <= 0)
return false;
@ -864,9 +864,13 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', {
}
});
county = 0;
/**
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
* In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
* To remove a mask, set this property to null.
* @property mask
* @type PIXI.Graphics
*/
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
get: function() {
return this._mask;
@ -886,7 +890,9 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
}
});
/*
* private
*/
PIXI.DisplayObject.prototype.addFilter = function(mask)
{
if(this.filter)return;
@ -912,7 +918,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an start filter
* insert start
*
*/
@ -945,7 +951,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an end filter
* insert end filter
*
*/
var childFirst = end
@ -979,8 +985,6 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
this.first = start;
// TODO need to check if the stage already exists...
// if webGL...
if(this.__renderGroup)
{
@ -1008,8 +1012,6 @@ PIXI.DisplayObject.prototype.removeFilter = function()
this.first = startBlock._iNext;
// this will NEVER be true!
// remove the end filter
var lastBlock = this.last;
@ -1328,9 +1330,14 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
*/
PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
{
/*
* this funtion needs to be recoded..
* can be done a lot faster..
*/
return;
// need to fix this function :/
// need to fix this function :/
/*
// TODO I already know this??
var index = this.children.indexOf( child );
var index2 = this.children.indexOf( child2 );
@ -1349,7 +1356,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
this.stage.__addChild(child);
this.stage.__addChild(child2);
}*/
}
// swap the positions..
this.children[index] = child2;
@ -1359,7 +1366,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
else
{
throw new Error(child + " Both the supplied DisplayObjects must be a child of the caller " + this);
}
}*/
}
/**
@ -2502,11 +2509,13 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
//a sprite or display object with a hit area defined
if(item.hitArea && item.hitArea.contains && item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
if(item.hitArea && item.hitArea.contains) {
if(item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
return true;
return true;
}
}
// a sprite with no hitarea defined
else if(isSprite)
@ -4835,7 +4844,6 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
// TODO what if its already has an object? should remove it
this.root = displayObject;
//displayObject.__renderGroup = this;
this.addDisplayObjectAndChildren(displayObject);
}

View file

@ -4,7 +4,7 @@
* Copyright (c) 2012, Mat Groves
* http://goodboydigital.com/
*
* Compiled: 2013-07-01
* Compiled: 2013-07-02
*
* Pixi.JS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
@ -180,7 +180,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*/
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i<this.points.length; i++) {
@ -196,7 +196,7 @@ PIXI.Polygon.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Polygon.contains = function(x, y)
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;
@ -255,7 +255,7 @@ PIXI.Circle = function(x, y, radius)
* @method clone
* @return a copy of the polygon
*/
PIXI.Circle.clone = function()
PIXI.Circle.prototype.clone = function()
{
return new PIXI.Circle(this.x, this.y, this.radius);
}
@ -266,7 +266,7 @@ PIXI.Circle.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Circle.contains = function(x, y)
PIXI.Circle.prototype.contains = function(x, y)
{
if(this.radius <= 0)
return false;
@ -331,7 +331,7 @@ PIXI.Ellipse = function(x, y, width, height)
* @method clone
* @return a copy of the polygon
*/
PIXI.Ellipse.clone = function()
PIXI.Ellipse.prototype.clone = function()
{
return new PIXI.Ellipse(this.x, this.y, this.width, this.height);
}
@ -342,7 +342,7 @@ PIXI.Ellipse.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Ellipse.contains = function(x, y)
PIXI.Ellipse.prototype.contains = function(x, y)
{
if(this.width <= 0 || this.height <= 0)
return false;
@ -864,9 +864,13 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', {
}
});
county = 0;
/**
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
* In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
* To remove a mask, set this property to null.
* @property mask
* @type PIXI.Graphics
*/
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
get: function() {
return this._mask;
@ -886,7 +890,9 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
}
});
/*
* private
*/
PIXI.DisplayObject.prototype.addFilter = function(mask)
{
if(this.filter)return;
@ -912,7 +918,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an start filter
* insert start
*
*/
@ -945,7 +951,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an end filter
* insert end filter
*
*/
var childFirst = end
@ -979,8 +985,6 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
this.first = start;
// TODO need to check if the stage already exists...
// if webGL...
if(this.__renderGroup)
{
@ -1008,8 +1012,6 @@ PIXI.DisplayObject.prototype.removeFilter = function()
this.first = startBlock._iNext;
// this will NEVER be true!
// remove the end filter
var lastBlock = this.last;
@ -1328,9 +1330,14 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
*/
PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
{
/*
* this funtion needs to be recoded..
* can be done a lot faster..
*/
return;
// need to fix this function :/
// need to fix this function :/
/*
// TODO I already know this??
var index = this.children.indexOf( child );
var index2 = this.children.indexOf( child2 );
@ -1349,7 +1356,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
this.stage.__addChild(child);
this.stage.__addChild(child2);
}*/
}
// swap the positions..
this.children[index] = child2;
@ -1359,7 +1366,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
else
{
throw new Error(child + " Both the supplied DisplayObjects must be a child of the caller " + this);
}
}*/
}
/**
@ -2502,11 +2509,13 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
//a sprite or display object with a hit area defined
if(item.hitArea && item.hitArea.contains && item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
if(item.hitArea && item.hitArea.contains) {
if(item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
return true;
return true;
}
}
// a sprite with no hitarea defined
else if(isSprite)
@ -4835,7 +4844,6 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
// TODO what if its already has an object? should remove it
this.root = displayObject;
//displayObject.__renderGroup = this;
this.addDisplayObjectAndChildren(displayObject);
}

View file

@ -4,7 +4,7 @@
* Copyright (c) 2012, Mat Groves
* http://goodboydigital.com/
*
* Compiled: 2013-07-01
* Compiled: 2013-07-02
*
* Pixi.JS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
@ -180,7 +180,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*/
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i<this.points.length; i++) {
@ -196,7 +196,7 @@ PIXI.Polygon.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Polygon.contains = function(x, y)
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;
@ -255,7 +255,7 @@ PIXI.Circle = function(x, y, radius)
* @method clone
* @return a copy of the polygon
*/
PIXI.Circle.clone = function()
PIXI.Circle.prototype.clone = function()
{
return new PIXI.Circle(this.x, this.y, this.radius);
}
@ -266,7 +266,7 @@ PIXI.Circle.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Circle.contains = function(x, y)
PIXI.Circle.prototype.contains = function(x, y)
{
if(this.radius <= 0)
return false;
@ -331,7 +331,7 @@ PIXI.Ellipse = function(x, y, width, height)
* @method clone
* @return a copy of the polygon
*/
PIXI.Ellipse.clone = function()
PIXI.Ellipse.prototype.clone = function()
{
return new PIXI.Ellipse(this.x, this.y, this.width, this.height);
}
@ -342,7 +342,7 @@ PIXI.Ellipse.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Ellipse.contains = function(x, y)
PIXI.Ellipse.prototype.contains = function(x, y)
{
if(this.width <= 0 || this.height <= 0)
return false;
@ -864,9 +864,13 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', {
}
});
county = 0;
/**
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
* In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
* To remove a mask, set this property to null.
* @property mask
* @type PIXI.Graphics
*/
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
get: function() {
return this._mask;
@ -886,7 +890,9 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
}
});
/*
* private
*/
PIXI.DisplayObject.prototype.addFilter = function(mask)
{
if(this.filter)return;
@ -912,7 +918,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an start filter
* insert start
*
*/
@ -945,7 +951,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an end filter
* insert end filter
*
*/
var childFirst = end
@ -979,8 +985,6 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
this.first = start;
// TODO need to check if the stage already exists...
// if webGL...
if(this.__renderGroup)
{
@ -1008,8 +1012,6 @@ PIXI.DisplayObject.prototype.removeFilter = function()
this.first = startBlock._iNext;
// this will NEVER be true!
// remove the end filter
var lastBlock = this.last;
@ -1328,9 +1330,14 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
*/
PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
{
/*
* this funtion needs to be recoded..
* can be done a lot faster..
*/
return;
// need to fix this function :/
// need to fix this function :/
/*
// TODO I already know this??
var index = this.children.indexOf( child );
var index2 = this.children.indexOf( child2 );
@ -1349,7 +1356,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
this.stage.__addChild(child);
this.stage.__addChild(child2);
}*/
}
// swap the positions..
this.children[index] = child2;
@ -1359,7 +1366,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
else
{
throw new Error(child + " Both the supplied DisplayObjects must be a child of the caller " + this);
}
}*/
}
/**
@ -2502,11 +2509,13 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
//a sprite or display object with a hit area defined
if(item.hitArea && item.hitArea.contains && item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
if(item.hitArea && item.hitArea.contains) {
if(item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
return true;
return true;
}
}
// a sprite with no hitarea defined
else if(isSprite)
@ -4835,7 +4844,6 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
// TODO what if its already has an object? should remove it
this.root = displayObject;
//displayObject.__renderGroup = this;
this.addDisplayObjectAndChildren(displayObject);
}

View file

@ -4,7 +4,7 @@
* Copyright (c) 2012, Mat Groves
* http://goodboydigital.com/
*
* Compiled: 2013-07-01
* Compiled: 2013-07-02
*
* Pixi.JS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
@ -180,7 +180,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*/
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i<this.points.length; i++) {
@ -196,7 +196,7 @@ PIXI.Polygon.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Polygon.contains = function(x, y)
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;
@ -255,7 +255,7 @@ PIXI.Circle = function(x, y, radius)
* @method clone
* @return a copy of the polygon
*/
PIXI.Circle.clone = function()
PIXI.Circle.prototype.clone = function()
{
return new PIXI.Circle(this.x, this.y, this.radius);
}
@ -266,7 +266,7 @@ PIXI.Circle.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Circle.contains = function(x, y)
PIXI.Circle.prototype.contains = function(x, y)
{
if(this.radius <= 0)
return false;
@ -331,7 +331,7 @@ PIXI.Ellipse = function(x, y, width, height)
* @method clone
* @return a copy of the polygon
*/
PIXI.Ellipse.clone = function()
PIXI.Ellipse.prototype.clone = function()
{
return new PIXI.Ellipse(this.x, this.y, this.width, this.height);
}
@ -342,7 +342,7 @@ PIXI.Ellipse.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Ellipse.contains = function(x, y)
PIXI.Ellipse.prototype.contains = function(x, y)
{
if(this.width <= 0 || this.height <= 0)
return false;
@ -864,9 +864,13 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', {
}
});
county = 0;
/**
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
* In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
* To remove a mask, set this property to null.
* @property mask
* @type PIXI.Graphics
*/
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
get: function() {
return this._mask;
@ -886,7 +890,9 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
}
});
/*
* private
*/
PIXI.DisplayObject.prototype.addFilter = function(mask)
{
if(this.filter)return;
@ -912,7 +918,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an start filter
* insert start
*
*/
@ -945,7 +951,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an end filter
* insert end filter
*
*/
var childFirst = end
@ -979,8 +985,6 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
this.first = start;
// TODO need to check if the stage already exists...
// if webGL...
if(this.__renderGroup)
{
@ -1008,8 +1012,6 @@ PIXI.DisplayObject.prototype.removeFilter = function()
this.first = startBlock._iNext;
// this will NEVER be true!
// remove the end filter
var lastBlock = this.last;
@ -1328,9 +1330,14 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
*/
PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
{
/*
* this funtion needs to be recoded..
* can be done a lot faster..
*/
return;
// need to fix this function :/
// need to fix this function :/
/*
// TODO I already know this??
var index = this.children.indexOf( child );
var index2 = this.children.indexOf( child2 );
@ -1349,7 +1356,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
this.stage.__addChild(child);
this.stage.__addChild(child2);
}*/
}
// swap the positions..
this.children[index] = child2;
@ -1359,7 +1366,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
else
{
throw new Error(child + " Both the supplied DisplayObjects must be a child of the caller " + this);
}
}*/
}
/**
@ -2502,11 +2509,13 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
//a sprite or display object with a hit area defined
if(item.hitArea && item.hitArea.contains && item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
if(item.hitArea && item.hitArea.contains) {
if(item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
return true;
return true;
}
}
// a sprite with no hitarea defined
else if(isSprite)
@ -4835,7 +4844,6 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
// TODO what if its already has an object? should remove it
this.root = displayObject;
//displayObject.__renderGroup = this;
this.addDisplayObjectAndChildren(displayObject);
}

View file

@ -4,7 +4,7 @@
* Copyright (c) 2012, Mat Groves
* http://goodboydigital.com/
*
* Compiled: 2013-07-01
* Compiled: 2013-07-02
*
* Pixi.JS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
@ -180,7 +180,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*/
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i<this.points.length; i++) {
@ -196,7 +196,7 @@ PIXI.Polygon.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Polygon.contains = function(x, y)
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;
@ -255,7 +255,7 @@ PIXI.Circle = function(x, y, radius)
* @method clone
* @return a copy of the polygon
*/
PIXI.Circle.clone = function()
PIXI.Circle.prototype.clone = function()
{
return new PIXI.Circle(this.x, this.y, this.radius);
}
@ -266,7 +266,7 @@ PIXI.Circle.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Circle.contains = function(x, y)
PIXI.Circle.prototype.contains = function(x, y)
{
if(this.radius <= 0)
return false;
@ -331,7 +331,7 @@ PIXI.Ellipse = function(x, y, width, height)
* @method clone
* @return a copy of the polygon
*/
PIXI.Ellipse.clone = function()
PIXI.Ellipse.prototype.clone = function()
{
return new PIXI.Ellipse(this.x, this.y, this.width, this.height);
}
@ -342,7 +342,7 @@ PIXI.Ellipse.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Ellipse.contains = function(x, y)
PIXI.Ellipse.prototype.contains = function(x, y)
{
if(this.width <= 0 || this.height <= 0)
return false;
@ -864,9 +864,13 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', {
}
});
county = 0;
/**
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
* In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
* To remove a mask, set this property to null.
* @property mask
* @type PIXI.Graphics
*/
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
get: function() {
return this._mask;
@ -886,7 +890,9 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
}
});
/*
* private
*/
PIXI.DisplayObject.prototype.addFilter = function(mask)
{
if(this.filter)return;
@ -912,7 +918,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an start filter
* insert start
*
*/
@ -945,7 +951,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an end filter
* insert end filter
*
*/
var childFirst = end
@ -979,8 +985,6 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
this.first = start;
// TODO need to check if the stage already exists...
// if webGL...
if(this.__renderGroup)
{
@ -1008,8 +1012,6 @@ PIXI.DisplayObject.prototype.removeFilter = function()
this.first = startBlock._iNext;
// this will NEVER be true!
// remove the end filter
var lastBlock = this.last;
@ -1328,9 +1330,14 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
*/
PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
{
/*
* this funtion needs to be recoded..
* can be done a lot faster..
*/
return;
// need to fix this function :/
// need to fix this function :/
/*
// TODO I already know this??
var index = this.children.indexOf( child );
var index2 = this.children.indexOf( child2 );
@ -1349,7 +1356,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
this.stage.__addChild(child);
this.stage.__addChild(child2);
}*/
}
// swap the positions..
this.children[index] = child2;
@ -1359,7 +1366,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
else
{
throw new Error(child + " Both the supplied DisplayObjects must be a child of the caller " + this);
}
}*/
}
/**
@ -2502,11 +2509,13 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
//a sprite or display object with a hit area defined
if(item.hitArea && item.hitArea.contains && item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
if(item.hitArea && item.hitArea.contains) {
if(item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
return true;
return true;
}
}
// a sprite with no hitarea defined
else if(isSprite)
@ -4835,7 +4844,6 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
// TODO what if its already has an object? should remove it
this.root = displayObject;
//displayObject.__renderGroup = this;
this.addDisplayObjectAndChildren(displayObject);
}

View file

@ -4,7 +4,7 @@
* Copyright (c) 2012, Mat Groves
* http://goodboydigital.com/
*
* Compiled: 2013-07-01
* Compiled: 2013-07-02
*
* Pixi.JS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
@ -180,7 +180,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*/
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i<this.points.length; i++) {
@ -196,7 +196,7 @@ PIXI.Polygon.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Polygon.contains = function(x, y)
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;
@ -255,7 +255,7 @@ PIXI.Circle = function(x, y, radius)
* @method clone
* @return a copy of the polygon
*/
PIXI.Circle.clone = function()
PIXI.Circle.prototype.clone = function()
{
return new PIXI.Circle(this.x, this.y, this.radius);
}
@ -266,7 +266,7 @@ PIXI.Circle.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Circle.contains = function(x, y)
PIXI.Circle.prototype.contains = function(x, y)
{
if(this.radius <= 0)
return false;
@ -331,7 +331,7 @@ PIXI.Ellipse = function(x, y, width, height)
* @method clone
* @return a copy of the polygon
*/
PIXI.Ellipse.clone = function()
PIXI.Ellipse.prototype.clone = function()
{
return new PIXI.Ellipse(this.x, this.y, this.width, this.height);
}
@ -342,7 +342,7 @@ PIXI.Ellipse.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Ellipse.contains = function(x, y)
PIXI.Ellipse.prototype.contains = function(x, y)
{
if(this.width <= 0 || this.height <= 0)
return false;
@ -864,9 +864,13 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', {
}
});
county = 0;
/**
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
* In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
* To remove a mask, set this property to null.
* @property mask
* @type PIXI.Graphics
*/
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
get: function() {
return this._mask;
@ -886,7 +890,9 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
}
});
/*
* private
*/
PIXI.DisplayObject.prototype.addFilter = function(mask)
{
if(this.filter)return;
@ -912,7 +918,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an start filter
* insert start
*
*/
@ -945,7 +951,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an end filter
* insert end filter
*
*/
var childFirst = end
@ -979,8 +985,6 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
this.first = start;
// TODO need to check if the stage already exists...
// if webGL...
if(this.__renderGroup)
{
@ -1008,8 +1012,6 @@ PIXI.DisplayObject.prototype.removeFilter = function()
this.first = startBlock._iNext;
// this will NEVER be true!
// remove the end filter
var lastBlock = this.last;
@ -1328,9 +1330,14 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
*/
PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
{
/*
* this funtion needs to be recoded..
* can be done a lot faster..
*/
return;
// need to fix this function :/
// need to fix this function :/
/*
// TODO I already know this??
var index = this.children.indexOf( child );
var index2 = this.children.indexOf( child2 );
@ -1349,7 +1356,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
this.stage.__addChild(child);
this.stage.__addChild(child2);
}*/
}
// swap the positions..
this.children[index] = child2;
@ -1359,7 +1366,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
else
{
throw new Error(child + " Both the supplied DisplayObjects must be a child of the caller " + this);
}
}*/
}
/**
@ -2502,11 +2509,13 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
//a sprite or display object with a hit area defined
if(item.hitArea && item.hitArea.contains && item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
if(item.hitArea && item.hitArea.contains) {
if(item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
return true;
return true;
}
}
// a sprite with no hitarea defined
else if(isSprite)
@ -4835,7 +4844,6 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
// TODO what if its already has an object? should remove it
this.root = displayObject;
//displayObject.__renderGroup = this;
this.addDisplayObjectAndChildren(displayObject);
}

View file

@ -4,7 +4,7 @@
* Copyright (c) 2012, Mat Groves
* http://goodboydigital.com/
*
* Compiled: 2013-07-01
* Compiled: 2013-07-02
*
* Pixi.JS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
@ -180,7 +180,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*/
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i<this.points.length; i++) {
@ -196,7 +196,7 @@ PIXI.Polygon.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Polygon.contains = function(x, y)
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;
@ -255,7 +255,7 @@ PIXI.Circle = function(x, y, radius)
* @method clone
* @return a copy of the polygon
*/
PIXI.Circle.clone = function()
PIXI.Circle.prototype.clone = function()
{
return new PIXI.Circle(this.x, this.y, this.radius);
}
@ -266,7 +266,7 @@ PIXI.Circle.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Circle.contains = function(x, y)
PIXI.Circle.prototype.contains = function(x, y)
{
if(this.radius <= 0)
return false;
@ -331,7 +331,7 @@ PIXI.Ellipse = function(x, y, width, height)
* @method clone
* @return a copy of the polygon
*/
PIXI.Ellipse.clone = function()
PIXI.Ellipse.prototype.clone = function()
{
return new PIXI.Ellipse(this.x, this.y, this.width, this.height);
}
@ -342,7 +342,7 @@ PIXI.Ellipse.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Ellipse.contains = function(x, y)
PIXI.Ellipse.prototype.contains = function(x, y)
{
if(this.width <= 0 || this.height <= 0)
return false;
@ -864,9 +864,13 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', {
}
});
county = 0;
/**
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
* In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
* To remove a mask, set this property to null.
* @property mask
* @type PIXI.Graphics
*/
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
get: function() {
return this._mask;
@ -886,7 +890,9 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
}
});
/*
* private
*/
PIXI.DisplayObject.prototype.addFilter = function(mask)
{
if(this.filter)return;
@ -912,7 +918,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an start filter
* insert start
*
*/
@ -945,7 +951,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an end filter
* insert end filter
*
*/
var childFirst = end
@ -979,8 +985,6 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
this.first = start;
// TODO need to check if the stage already exists...
// if webGL...
if(this.__renderGroup)
{
@ -1008,8 +1012,6 @@ PIXI.DisplayObject.prototype.removeFilter = function()
this.first = startBlock._iNext;
// this will NEVER be true!
// remove the end filter
var lastBlock = this.last;
@ -1328,9 +1330,14 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
*/
PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
{
/*
* this funtion needs to be recoded..
* can be done a lot faster..
*/
return;
// need to fix this function :/
// need to fix this function :/
/*
// TODO I already know this??
var index = this.children.indexOf( child );
var index2 = this.children.indexOf( child2 );
@ -1349,7 +1356,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
this.stage.__addChild(child);
this.stage.__addChild(child2);
}*/
}
// swap the positions..
this.children[index] = child2;
@ -1359,7 +1366,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
else
{
throw new Error(child + " Both the supplied DisplayObjects must be a child of the caller " + this);
}
}*/
}
/**
@ -2502,11 +2509,13 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
//a sprite or display object with a hit area defined
if(item.hitArea && item.hitArea.contains && item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
if(item.hitArea && item.hitArea.contains) {
if(item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
return true;
return true;
}
}
// a sprite with no hitarea defined
else if(isSprite)
@ -4835,7 +4844,6 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
// TODO what if its already has an object? should remove it
this.root = displayObject;
//displayObject.__renderGroup = this;
this.addDisplayObjectAndChildren(displayObject);
}

View file

@ -4,7 +4,7 @@
* Copyright (c) 2012, Mat Groves
* http://goodboydigital.com/
*
* Compiled: 2013-07-01
* Compiled: 2013-07-02
*
* Pixi.JS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
@ -180,7 +180,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*/
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i<this.points.length; i++) {
@ -196,7 +196,7 @@ PIXI.Polygon.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Polygon.contains = function(x, y)
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;
@ -255,7 +255,7 @@ PIXI.Circle = function(x, y, radius)
* @method clone
* @return a copy of the polygon
*/
PIXI.Circle.clone = function()
PIXI.Circle.prototype.clone = function()
{
return new PIXI.Circle(this.x, this.y, this.radius);
}
@ -266,7 +266,7 @@ PIXI.Circle.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Circle.contains = function(x, y)
PIXI.Circle.prototype.contains = function(x, y)
{
if(this.radius <= 0)
return false;
@ -331,7 +331,7 @@ PIXI.Ellipse = function(x, y, width, height)
* @method clone
* @return a copy of the polygon
*/
PIXI.Ellipse.clone = function()
PIXI.Ellipse.prototype.clone = function()
{
return new PIXI.Ellipse(this.x, this.y, this.width, this.height);
}
@ -342,7 +342,7 @@ PIXI.Ellipse.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Ellipse.contains = function(x, y)
PIXI.Ellipse.prototype.contains = function(x, y)
{
if(this.width <= 0 || this.height <= 0)
return false;
@ -864,9 +864,13 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', {
}
});
county = 0;
/**
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
* In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
* To remove a mask, set this property to null.
* @property mask
* @type PIXI.Graphics
*/
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
get: function() {
return this._mask;
@ -886,7 +890,9 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
}
});
/*
* private
*/
PIXI.DisplayObject.prototype.addFilter = function(mask)
{
if(this.filter)return;
@ -912,7 +918,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an start filter
* insert start
*
*/
@ -945,7 +951,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an end filter
* insert end filter
*
*/
var childFirst = end
@ -979,8 +985,6 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
this.first = start;
// TODO need to check if the stage already exists...
// if webGL...
if(this.__renderGroup)
{
@ -1008,8 +1012,6 @@ PIXI.DisplayObject.prototype.removeFilter = function()
this.first = startBlock._iNext;
// this will NEVER be true!
// remove the end filter
var lastBlock = this.last;
@ -1328,9 +1330,14 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
*/
PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
{
/*
* this funtion needs to be recoded..
* can be done a lot faster..
*/
return;
// need to fix this function :/
// need to fix this function :/
/*
// TODO I already know this??
var index = this.children.indexOf( child );
var index2 = this.children.indexOf( child2 );
@ -1349,7 +1356,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
this.stage.__addChild(child);
this.stage.__addChild(child2);
}*/
}
// swap the positions..
this.children[index] = child2;
@ -1359,7 +1366,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
else
{
throw new Error(child + " Both the supplied DisplayObjects must be a child of the caller " + this);
}
}*/
}
/**
@ -2502,11 +2509,13 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
//a sprite or display object with a hit area defined
if(item.hitArea && item.hitArea.contains && item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
if(item.hitArea && item.hitArea.contains) {
if(item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
return true;
return true;
}
}
// a sprite with no hitarea defined
else if(isSprite)
@ -4835,7 +4844,6 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
// TODO what if its already has an object? should remove it
this.root = displayObject;
//displayObject.__renderGroup = this;
this.addDisplayObjectAndChildren(displayObject);
}

View file

@ -4,7 +4,7 @@
* Copyright (c) 2012, Mat Groves
* http://goodboydigital.com/
*
* Compiled: 2013-07-01
* Compiled: 2013-07-02
*
* Pixi.JS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
@ -180,7 +180,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*/
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i<this.points.length; i++) {
@ -196,7 +196,7 @@ PIXI.Polygon.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Polygon.contains = function(x, y)
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;
@ -255,7 +255,7 @@ PIXI.Circle = function(x, y, radius)
* @method clone
* @return a copy of the polygon
*/
PIXI.Circle.clone = function()
PIXI.Circle.prototype.clone = function()
{
return new PIXI.Circle(this.x, this.y, this.radius);
}
@ -266,7 +266,7 @@ PIXI.Circle.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Circle.contains = function(x, y)
PIXI.Circle.prototype.contains = function(x, y)
{
if(this.radius <= 0)
return false;
@ -331,7 +331,7 @@ PIXI.Ellipse = function(x, y, width, height)
* @method clone
* @return a copy of the polygon
*/
PIXI.Ellipse.clone = function()
PIXI.Ellipse.prototype.clone = function()
{
return new PIXI.Ellipse(this.x, this.y, this.width, this.height);
}
@ -342,7 +342,7 @@ PIXI.Ellipse.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Ellipse.contains = function(x, y)
PIXI.Ellipse.prototype.contains = function(x, y)
{
if(this.width <= 0 || this.height <= 0)
return false;
@ -864,9 +864,13 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', {
}
});
county = 0;
/**
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
* In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
* To remove a mask, set this property to null.
* @property mask
* @type PIXI.Graphics
*/
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
get: function() {
return this._mask;
@ -886,7 +890,9 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
}
});
/*
* private
*/
PIXI.DisplayObject.prototype.addFilter = function(mask)
{
if(this.filter)return;
@ -912,7 +918,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an start filter
* insert start
*
*/
@ -945,7 +951,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an end filter
* insert end filter
*
*/
var childFirst = end
@ -979,8 +985,6 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
this.first = start;
// TODO need to check if the stage already exists...
// if webGL...
if(this.__renderGroup)
{
@ -1008,8 +1012,6 @@ PIXI.DisplayObject.prototype.removeFilter = function()
this.first = startBlock._iNext;
// this will NEVER be true!
// remove the end filter
var lastBlock = this.last;
@ -1328,9 +1330,14 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
*/
PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
{
/*
* this funtion needs to be recoded..
* can be done a lot faster..
*/
return;
// need to fix this function :/
// need to fix this function :/
/*
// TODO I already know this??
var index = this.children.indexOf( child );
var index2 = this.children.indexOf( child2 );
@ -1349,7 +1356,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
this.stage.__addChild(child);
this.stage.__addChild(child2);
}*/
}
// swap the positions..
this.children[index] = child2;
@ -1359,7 +1366,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
else
{
throw new Error(child + " Both the supplied DisplayObjects must be a child of the caller " + this);
}
}*/
}
/**
@ -2502,11 +2509,13 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
//a sprite or display object with a hit area defined
if(item.hitArea && item.hitArea.contains && item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
if(item.hitArea && item.hitArea.contains) {
if(item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
return true;
return true;
}
}
// a sprite with no hitarea defined
else if(isSprite)
@ -4835,7 +4844,6 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
// TODO what if its already has an object? should remove it
this.root = displayObject;
//displayObject.__renderGroup = this;
this.addDisplayObjectAndChildren(displayObject);
}

View file

@ -4,7 +4,7 @@
* Copyright (c) 2012, Mat Groves
* http://goodboydigital.com/
*
* Compiled: 2013-07-01
* Compiled: 2013-07-02
*
* Pixi.JS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
@ -180,7 +180,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*/
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i<this.points.length; i++) {
@ -196,7 +196,7 @@ PIXI.Polygon.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Polygon.contains = function(x, y)
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;
@ -255,7 +255,7 @@ PIXI.Circle = function(x, y, radius)
* @method clone
* @return a copy of the polygon
*/
PIXI.Circle.clone = function()
PIXI.Circle.prototype.clone = function()
{
return new PIXI.Circle(this.x, this.y, this.radius);
}
@ -266,7 +266,7 @@ PIXI.Circle.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Circle.contains = function(x, y)
PIXI.Circle.prototype.contains = function(x, y)
{
if(this.radius <= 0)
return false;
@ -331,7 +331,7 @@ PIXI.Ellipse = function(x, y, width, height)
* @method clone
* @return a copy of the polygon
*/
PIXI.Ellipse.clone = function()
PIXI.Ellipse.prototype.clone = function()
{
return new PIXI.Ellipse(this.x, this.y, this.width, this.height);
}
@ -342,7 +342,7 @@ PIXI.Ellipse.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Ellipse.contains = function(x, y)
PIXI.Ellipse.prototype.contains = function(x, y)
{
if(this.width <= 0 || this.height <= 0)
return false;
@ -864,9 +864,13 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', {
}
});
county = 0;
/**
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
* In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
* To remove a mask, set this property to null.
* @property mask
* @type PIXI.Graphics
*/
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
get: function() {
return this._mask;
@ -886,7 +890,9 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
}
});
/*
* private
*/
PIXI.DisplayObject.prototype.addFilter = function(mask)
{
if(this.filter)return;
@ -912,7 +918,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an start filter
* insert start
*
*/
@ -945,7 +951,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an end filter
* insert end filter
*
*/
var childFirst = end
@ -979,8 +985,6 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
this.first = start;
// TODO need to check if the stage already exists...
// if webGL...
if(this.__renderGroup)
{
@ -1008,8 +1012,6 @@ PIXI.DisplayObject.prototype.removeFilter = function()
this.first = startBlock._iNext;
// this will NEVER be true!
// remove the end filter
var lastBlock = this.last;
@ -1328,9 +1330,14 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
*/
PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
{
/*
* this funtion needs to be recoded..
* can be done a lot faster..
*/
return;
// need to fix this function :/
// need to fix this function :/
/*
// TODO I already know this??
var index = this.children.indexOf( child );
var index2 = this.children.indexOf( child2 );
@ -1349,7 +1356,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
this.stage.__addChild(child);
this.stage.__addChild(child2);
}*/
}
// swap the positions..
this.children[index] = child2;
@ -1359,7 +1366,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
else
{
throw new Error(child + " Both the supplied DisplayObjects must be a child of the caller " + this);
}
}*/
}
/**
@ -2502,11 +2509,13 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
//a sprite or display object with a hit area defined
if(item.hitArea && item.hitArea.contains && item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
if(item.hitArea && item.hitArea.contains) {
if(item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
return true;
return true;
}
}
// a sprite with no hitarea defined
else if(isSprite)
@ -4835,7 +4844,6 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
// TODO what if its already has an object? should remove it
this.root = displayObject;
//displayObject.__renderGroup = this;
this.addDisplayObjectAndChildren(displayObject);
}

View file

@ -4,7 +4,7 @@
* Copyright (c) 2012, Mat Groves
* http://goodboydigital.com/
*
* Compiled: 2013-07-01
* Compiled: 2013-07-02
*
* Pixi.JS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
@ -180,7 +180,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*/
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i<this.points.length; i++) {
@ -196,7 +196,7 @@ PIXI.Polygon.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Polygon.contains = function(x, y)
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;
@ -255,7 +255,7 @@ PIXI.Circle = function(x, y, radius)
* @method clone
* @return a copy of the polygon
*/
PIXI.Circle.clone = function()
PIXI.Circle.prototype.clone = function()
{
return new PIXI.Circle(this.x, this.y, this.radius);
}
@ -266,7 +266,7 @@ PIXI.Circle.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Circle.contains = function(x, y)
PIXI.Circle.prototype.contains = function(x, y)
{
if(this.radius <= 0)
return false;
@ -331,7 +331,7 @@ PIXI.Ellipse = function(x, y, width, height)
* @method clone
* @return a copy of the polygon
*/
PIXI.Ellipse.clone = function()
PIXI.Ellipse.prototype.clone = function()
{
return new PIXI.Ellipse(this.x, this.y, this.width, this.height);
}
@ -342,7 +342,7 @@ PIXI.Ellipse.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Ellipse.contains = function(x, y)
PIXI.Ellipse.prototype.contains = function(x, y)
{
if(this.width <= 0 || this.height <= 0)
return false;
@ -864,9 +864,13 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', {
}
});
county = 0;
/**
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
* In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
* To remove a mask, set this property to null.
* @property mask
* @type PIXI.Graphics
*/
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
get: function() {
return this._mask;
@ -886,7 +890,9 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
}
});
/*
* private
*/
PIXI.DisplayObject.prototype.addFilter = function(mask)
{
if(this.filter)return;
@ -912,7 +918,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an start filter
* insert start
*
*/
@ -945,7 +951,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an end filter
* insert end filter
*
*/
var childFirst = end
@ -979,8 +985,6 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
this.first = start;
// TODO need to check if the stage already exists...
// if webGL...
if(this.__renderGroup)
{
@ -1008,8 +1012,6 @@ PIXI.DisplayObject.prototype.removeFilter = function()
this.first = startBlock._iNext;
// this will NEVER be true!
// remove the end filter
var lastBlock = this.last;
@ -1328,9 +1330,14 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
*/
PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
{
/*
* this funtion needs to be recoded..
* can be done a lot faster..
*/
return;
// need to fix this function :/
// need to fix this function :/
/*
// TODO I already know this??
var index = this.children.indexOf( child );
var index2 = this.children.indexOf( child2 );
@ -1349,7 +1356,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
this.stage.__addChild(child);
this.stage.__addChild(child2);
}*/
}
// swap the positions..
this.children[index] = child2;
@ -1359,7 +1366,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
else
{
throw new Error(child + " Both the supplied DisplayObjects must be a child of the caller " + this);
}
}*/
}
/**
@ -2502,11 +2509,13 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
//a sprite or display object with a hit area defined
if(item.hitArea && item.hitArea.contains && item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
if(item.hitArea && item.hitArea.contains) {
if(item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
return true;
return true;
}
}
// a sprite with no hitarea defined
else if(isSprite)
@ -4835,7 +4844,6 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
// TODO what if its already has an object? should remove it
this.root = displayObject;
//displayObject.__renderGroup = this;
this.addDisplayObjectAndChildren(displayObject);
}

View file

@ -4,7 +4,7 @@
* Copyright (c) 2012, Mat Groves
* http://goodboydigital.com/
*
* Compiled: 2013-07-01
* Compiled: 2013-07-02
*
* Pixi.JS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
@ -180,7 +180,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*/
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i<this.points.length; i++) {
@ -196,7 +196,7 @@ PIXI.Polygon.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Polygon.contains = function(x, y)
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;
@ -255,7 +255,7 @@ PIXI.Circle = function(x, y, radius)
* @method clone
* @return a copy of the polygon
*/
PIXI.Circle.clone = function()
PIXI.Circle.prototype.clone = function()
{
return new PIXI.Circle(this.x, this.y, this.radius);
}
@ -266,7 +266,7 @@ PIXI.Circle.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Circle.contains = function(x, y)
PIXI.Circle.prototype.contains = function(x, y)
{
if(this.radius <= 0)
return false;
@ -331,7 +331,7 @@ PIXI.Ellipse = function(x, y, width, height)
* @method clone
* @return a copy of the polygon
*/
PIXI.Ellipse.clone = function()
PIXI.Ellipse.prototype.clone = function()
{
return new PIXI.Ellipse(this.x, this.y, this.width, this.height);
}
@ -342,7 +342,7 @@ PIXI.Ellipse.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Ellipse.contains = function(x, y)
PIXI.Ellipse.prototype.contains = function(x, y)
{
if(this.width <= 0 || this.height <= 0)
return false;
@ -864,9 +864,13 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', {
}
});
county = 0;
/**
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
* In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
* To remove a mask, set this property to null.
* @property mask
* @type PIXI.Graphics
*/
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
get: function() {
return this._mask;
@ -886,7 +890,9 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
}
});
/*
* private
*/
PIXI.DisplayObject.prototype.addFilter = function(mask)
{
if(this.filter)return;
@ -912,7 +918,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an start filter
* insert start
*
*/
@ -945,7 +951,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an end filter
* insert end filter
*
*/
var childFirst = end
@ -979,8 +985,6 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
this.first = start;
// TODO need to check if the stage already exists...
// if webGL...
if(this.__renderGroup)
{
@ -1008,8 +1012,6 @@ PIXI.DisplayObject.prototype.removeFilter = function()
this.first = startBlock._iNext;
// this will NEVER be true!
// remove the end filter
var lastBlock = this.last;
@ -1328,9 +1330,14 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
*/
PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
{
/*
* this funtion needs to be recoded..
* can be done a lot faster..
*/
return;
// need to fix this function :/
// need to fix this function :/
/*
// TODO I already know this??
var index = this.children.indexOf( child );
var index2 = this.children.indexOf( child2 );
@ -1349,7 +1356,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
this.stage.__addChild(child);
this.stage.__addChild(child2);
}*/
}
// swap the positions..
this.children[index] = child2;
@ -1359,7 +1366,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
else
{
throw new Error(child + " Both the supplied DisplayObjects must be a child of the caller " + this);
}
}*/
}
/**
@ -2502,11 +2509,13 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
//a sprite or display object with a hit area defined
if(item.hitArea && item.hitArea.contains && item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
if(item.hitArea && item.hitArea.contains) {
if(item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
return true;
return true;
}
}
// a sprite with no hitarea defined
else if(isSprite)
@ -4835,7 +4844,6 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
// TODO what if its already has an object? should remove it
this.root = displayObject;
//displayObject.__renderGroup = this;
this.addDisplayObjectAndChildren(displayObject);
}

View file

@ -4,7 +4,7 @@
* Copyright (c) 2012, Mat Groves
* http://goodboydigital.com/
*
* Compiled: 2013-07-01
* Compiled: 2013-07-02
*
* Pixi.JS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
@ -180,7 +180,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*/
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i<this.points.length; i++) {
@ -196,7 +196,7 @@ PIXI.Polygon.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Polygon.contains = function(x, y)
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;
@ -255,7 +255,7 @@ PIXI.Circle = function(x, y, radius)
* @method clone
* @return a copy of the polygon
*/
PIXI.Circle.clone = function()
PIXI.Circle.prototype.clone = function()
{
return new PIXI.Circle(this.x, this.y, this.radius);
}
@ -266,7 +266,7 @@ PIXI.Circle.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Circle.contains = function(x, y)
PIXI.Circle.prototype.contains = function(x, y)
{
if(this.radius <= 0)
return false;
@ -331,7 +331,7 @@ PIXI.Ellipse = function(x, y, width, height)
* @method clone
* @return a copy of the polygon
*/
PIXI.Ellipse.clone = function()
PIXI.Ellipse.prototype.clone = function()
{
return new PIXI.Ellipse(this.x, this.y, this.width, this.height);
}
@ -342,7 +342,7 @@ PIXI.Ellipse.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Ellipse.contains = function(x, y)
PIXI.Ellipse.prototype.contains = function(x, y)
{
if(this.width <= 0 || this.height <= 0)
return false;
@ -864,9 +864,13 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', {
}
});
county = 0;
/**
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
* In PIXI a regular mask must be a PIXI.Ggraphics object. This allows for much faster masking in canvas as it utilises shape clipping.
* To remove a mask, set this property to null.
* @property mask
* @type PIXI.Graphics
*/
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
get: function() {
return this._mask;
@ -886,7 +890,9 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
}
});
/*
* private
*/
PIXI.DisplayObject.prototype.addFilter = function(mask)
{
if(this.filter)return;
@ -912,7 +918,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an start filter
* insert start
*
*/
@ -945,7 +951,7 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
/*
*
* and an end filter
* insert end filter
*
*/
var childFirst = end
@ -979,8 +985,6 @@ PIXI.DisplayObject.prototype.addFilter = function(mask)
this.first = start;
// TODO need to check if the stage already exists...
// if webGL...
if(this.__renderGroup)
{
@ -1008,8 +1012,6 @@ PIXI.DisplayObject.prototype.removeFilter = function()
this.first = startBlock._iNext;
// this will NEVER be true!
// remove the end filter
var lastBlock = this.last;
@ -1328,9 +1330,14 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
*/
PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
{
/*
* this funtion needs to be recoded..
* can be done a lot faster..
*/
return;
// need to fix this function :/
// need to fix this function :/
/*
// TODO I already know this??
var index = this.children.indexOf( child );
var index2 = this.children.indexOf( child2 );
@ -1349,7 +1356,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
this.stage.__addChild(child);
this.stage.__addChild(child2);
}*/
}
// swap the positions..
this.children[index] = child2;
@ -1359,7 +1366,7 @@ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2)
else
{
throw new Error(child + " Both the supplied DisplayObjects must be a child of the caller " + this);
}
}*/
}
/**
@ -2502,11 +2509,13 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
//a sprite or display object with a hit area defined
if(item.hitArea && item.hitArea.contains && item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
if(item.hitArea && item.hitArea.contains) {
if(item.hitArea.contains(x, y)) {
if(isSprite)
interactionData.target = item;
return true;
return true;
}
}
// a sprite with no hitarea defined
else if(isSprite)
@ -4835,7 +4844,6 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
// TODO what if its already has an object? should remove it
this.root = displayObject;
//displayObject.__renderGroup = this;
this.addDisplayObjectAndChildren(displayObject);
}