diff --git a/bin/pixi.dev.js b/bin/pixi.dev.js index 8002a37..64801e0 100644 --- a/bin/pixi.dev.js +++ b/bin/pixi.dev.js @@ -1438,7 +1438,6 @@ PIXI.DisplayObjectContainer.prototype.removeStageReference = function() for(var i=0,j=this.children.length; i=c&&a<=c+this.width){var d=this.y;if(b>=d&&b<=d+this.height)return!0}return!1},e.Rectangle.prototype.constructor=e.Rectangle,e.Polygon=function(a){if(a instanceof Array||(a=Array.prototype.slice.call(arguments)),"number"==typeof a[0]){for(var b=[],c=0,d=a.length;d>c;c+=2)b.push(new e.Point(a[c],a[c+1]));a=b}this.points=a},e.Polygon.prototype.clone=function(){for(var a=[],b=0;bb!=i>b&&(h-f)*(b-g)/(i-g)+f>a;j&&(c=!c)}return c},e.Polygon.prototype.constructor=e.Polygon,e.Circle=function(a,b,c){this.x=a||0,this.y=b||0,this.radius=c||0},e.Circle.prototype.clone=function(){return new e.Circle(this.x,this.y,this.radius)},e.Circle.prototype.contains=function(a,b){if(this.radius<=0)return!1;var c=this.x-a,d=this.y-b,e=this.radius*this.radius;return c*=c,d*=d,e>=c+d},e.Circle.prototype.constructor=e.Circle,e.Ellipse=function(a,b,c,d){this.x=a||0,this.y=b||0,this.width=c||0,this.height=d||0},e.Ellipse.prototype.clone=function(){return new e.Ellipse(this.x,this.y,this.width,this.height)},e.Ellipse.prototype.contains=function(a,b){if(this.width<=0||this.height<=0)return!1;var c=(a-this.x)/this.width-.5,d=(b-this.y)/this.height-.5;return c*=c,d*=d,.25>c+d},e.Ellipse.prototype.getBounds=function(){return new e.Rectangle(this.x,this.y,this.width,this.height)},e.Ellipse.prototype.constructor=e.Ellipse,c(),e.mat3={},e.mat3.create=function(){var a=new e.Matrix(9);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=1,a[5]=0,a[6]=0,a[7]=0,a[8]=1,a},e.mat3.identity=function(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=1,a[5]=0,a[6]=0,a[7]=0,a[8]=1,a},e.mat4={},e.mat4.create=function(){var a=new e.Matrix(16);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a},e.mat3.multiply=function(a,b,c){c||(c=a);var d=a[0],e=a[1],f=a[2],g=a[3],h=a[4],i=a[5],j=a[6],k=a[7],l=a[8],m=b[0],n=b[1],o=b[2],p=b[3],q=b[4],r=b[5],s=b[6],t=b[7],u=b[8];return c[0]=m*d+n*g+o*j,c[1]=m*e+n*h+o*k,c[2]=m*f+n*i+o*l,c[3]=p*d+q*g+r*j,c[4]=p*e+q*h+r*k,c[5]=p*f+q*i+r*l,c[6]=s*d+t*g+u*j,c[7]=s*e+t*h+u*k,c[8]=s*f+t*i+u*l,c},e.mat3.clone=function(a){var b=new e.Matrix(9);return b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b[4]=a[4],b[5]=a[5],b[6]=a[6],b[7]=a[7],b[8]=a[8],b},e.mat3.transpose=function(a,b){if(!b||a===b){var c=a[1],d=a[2],e=a[5];return a[1]=a[3],a[2]=a[6],a[3]=c,a[5]=a[7],a[6]=d,a[7]=e,a}return b[0]=a[0],b[1]=a[3],b[2]=a[6],b[3]=a[1],b[4]=a[4],b[5]=a[7],b[6]=a[2],b[7]=a[5],b[8]=a[8],b},e.mat3.toMat4=function(a,b){return b||(b=e.mat4.create()),b[15]=1,b[14]=0,b[13]=0,b[12]=0,b[11]=0,b[10]=a[8],b[9]=a[7],b[8]=a[6],b[7]=0,b[6]=a[5],b[5]=a[4],b[4]=a[3],b[3]=0,b[2]=a[2],b[1]=a[1],b[0]=a[0],b},e.mat4.create=function(){var a=new e.Matrix(16);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a},e.mat4.transpose=function(a,b){if(!b||a===b){var c=a[1],d=a[2],e=a[3],f=a[6],g=a[7],h=a[11];return a[1]=a[4],a[2]=a[8],a[3]=a[12],a[4]=c,a[6]=a[9],a[7]=a[13],a[8]=d,a[9]=f,a[11]=a[14],a[12]=e,a[13]=g,a[14]=h,a}return b[0]=a[0],b[1]=a[4],b[2]=a[8],b[3]=a[12],b[4]=a[1],b[5]=a[5],b[6]=a[9],b[7]=a[13],b[8]=a[2],b[9]=a[6],b[10]=a[10],b[11]=a[14],b[12]=a[3],b[13]=a[7],b[14]=a[11],b[15]=a[15],b},e.mat4.multiply=function(a,b,c){c||(c=a);var d=a[0],e=a[1],f=a[2],g=a[3],h=a[4],i=a[5],j=a[6],k=a[7],l=a[8],m=a[9],n=a[10],o=a[11],p=a[12],q=a[13],r=a[14],s=a[15],t=b[0],u=b[1],v=b[2],w=b[3];return c[0]=t*d+u*h+v*l+w*p,c[1]=t*e+u*i+v*m+w*q,c[2]=t*f+u*j+v*n+w*r,c[3]=t*g+u*k+v*o+w*s,t=b[4],u=b[5],v=b[6],w=b[7],c[4]=t*d+u*h+v*l+w*p,c[5]=t*e+u*i+v*m+w*q,c[6]=t*f+u*j+v*n+w*r,c[7]=t*g+u*k+v*o+w*s,t=b[8],u=b[9],v=b[10],w=b[11],c[8]=t*d+u*h+v*l+w*p,c[9]=t*e+u*i+v*m+w*q,c[10]=t*f+u*j+v*n+w*r,c[11]=t*g+u*k+v*o+w*s,t=b[12],u=b[13],v=b[14],w=b[15],c[12]=t*d+u*h+v*l+w*p,c[13]=t*e+u*i+v*m+w*q,c[14]=t*f+u*j+v*n+w*r,c[15]=t*g+u*k+v*o+w*s,c},e.identityMatrix=e.mat3.create(),e.DisplayObject=function(){this.last=this,this.first=this,this.position=new e.Point,this.scale=new e.Point(1,1),this.pivot=new e.Point(0,0),this.rotation=0,this.alpha=1,this.visible=!0,this.hitArea=null,this.buttonMode=!1,this.renderable=!1,this.parent=null,this.stage=null,this.worldAlpha=1,this._interactive=!1,this.defaultCursor="pointer",this.worldTransform=e.mat3.create(),this.localTransform=e.mat3.create(),this.color=[],this.dynamic=!0,this._sr=0,this._cr=1,this.filterArea=new e.Rectangle(0,0,1,1),this._bounds=new e.Rectangle(0,0,1,1),this._currentBounds=null,this._mask=null},e.DisplayObject.prototype.constructor=e.DisplayObject,e.DisplayObject.prototype.setInteractive=function(a){this.interactive=a},Object.defineProperty(e.DisplayObject.prototype,"interactive",{get:function(){return this._interactive},set:function(a){this._interactive=a,this.stage&&(this.stage.dirty=!0)}}),Object.defineProperty(e.DisplayObject.prototype,"worldVisible",{get:function(){var a=this;do{if(!a.visible)return!1;a=a.parent}while(a&&a.parent);return!0}}),Object.defineProperty(e.DisplayObject.prototype,"mask",{get:function(){return this._mask},set:function(a){this._mask&&(this._mask.isMask=!1),this._mask=a,this._mask&&(this._mask.isMask=!0)}}),Object.defineProperty(e.DisplayObject.prototype,"filters",{get:function(){return this._filters},set:function(a){if(a){for(var b=[],c=0;c=0&&b<=this.children.length))throw new Error(a+" The index "+b+" supplied is out of bounds "+this.children.length);a.parent&&a.parent.removeChild(a),a.parent=this,this.children.splice(b,0,a),this.stage&&this.setStageReference(this.stage)},e.DisplayObjectContainer.prototype.swapChildren=function(a,b){if(a!==b){var c=this.children.indexOf(a),d=this.children.indexOf(b);if(0>c||0>d)throw new Error("swapChildren: Both the supplied DisplayObjects must be a child of the caller.");this.children[c]=b,this.children[d]=a}},e.DisplayObjectContainer.prototype.getChildAt=function(a){if(a>=0&&aa;a++)this.children[a].updateTransform()}},e.DisplayObjectContainer.prototype.getBounds=function(){if(0===this.children.length)return e.EmptyRectangle;for(var a,b,c,d=1/0,f=1/0,g=-1/0,h=-1/0,i=0,j=this.children.length;j>i;i++){var k=this.children[i];k.visible&&(a=this.children[i].getBounds(),d=db?g:b,h=h>c?h:c)}var l=this._bounds;return l.x=d,l.y=f,l.width=g-d,l.height=h-f,l},e.DisplayObjectContainer.prototype.setStageReference=function(a){this.stage=a;for(var b=0,c=this.children.length;c>b;b++){var d=this.children[b];d.interactive&&(this.stage.dirty=!0),d.setStageReference(a)}},e.DisplayObjectContainer.prototype.removeStageReference=function(){for(var a=0,b=this.children.length;b>a;a++){var c=this.children[a];c.interactive&&(this.stage.dirty=!0),c.removeStageReference()}this.stage=null},e.DisplayObjectContainer.prototype._renderWebGL=function(a){if(this.visible!==!1&&0!==this.alpha){var b,c;if(this._mask||this._filters){for(this._mask&&(a.spriteBatch.stop(),a.maskManager.pushMask(this.mask,a),a.spriteBatch.start()),this._filters&&(a.spriteBatch.flush(),a.filterManager.pushFilter(this._filterBlock)),b=0,c=this.children.length;c>b;b++)this.children[b]._renderWebGL(a);a.spriteBatch.stop(),this._filters&&a.filterManager.popFilter(),this._mask&&a.maskManager.popMask(a),a.spriteBatch.start()}else for(b=0,c=this.children.length;c>b;b++)this.children[b]._renderWebGL(a)}},e.DisplayObjectContainer.prototype._renderCanvas=function(a){if(this.visible!==!1&&0!==this.alpha){this._mask&&a.maskManager.pushMask(this._mask,a.context);for(var b=0,c=this.children.length;c>b;b++){var d=this.children[b];d._renderCanvas(a)}this._mask&&a.maskManager.popMask(a.context)}},e.blendModes={},e.blendModes.NORMAL=0,e.blendModes.ADD=1,e.blendModes.MULTIPLY=2,e.blendModes.SCREEN=3,e.Sprite=function(a){e.DisplayObjectContainer.call(this),this.anchor=new e.Point,this.texture=a,this._width=0,this._height=0,this.tint=16777215,this.blendMode=e.blendModes.NORMAL,a.baseTexture.hasLoaded?this.onTextureUpdate():(this.onTextureUpdateBind=this.onTextureUpdate.bind(this),this.texture.addEventListener("update",this.onTextureUpdateBind)),this.renderable=!0},e.Sprite.prototype=Object.create(e.DisplayObjectContainer.prototype),e.Sprite.prototype.constructor=e.Sprite,Object.defineProperty(e.Sprite.prototype,"width",{get:function(){return this.scale.x*this.texture.frame.width},set:function(a){this.scale.x=a/this.texture.frame.width,this._width=a}}),Object.defineProperty(e.Sprite.prototype,"height",{get:function(){return this.scale.y*this.texture.frame.height},set:function(a){this.scale.y=a/this.texture.frame.height,this._height=a}}),e.Sprite.prototype.setTexture=function(a){this.texture.baseTexture!==a.baseTexture?(this.textureChange=!0,this.texture=a):this.texture=a,this.cachedTint=16777215,this.updateFrame=!0},e.Sprite.prototype.onTextureUpdate=function(){this._width&&(this.scale.x=this._width/this.texture.frame.width),this._height&&(this.scale.y=this._height/this.texture.frame.height),this.updateFrame=!0},e.Sprite.prototype.getBounds=function(){var a=this.texture.frame.width,b=this.texture.frame.height,c=a*(1-this.anchor.x),d=a*-this.anchor.x,e=b*(1-this.anchor.y),f=b*-this.anchor.y,g=this.worldTransform,h=g[0],i=g[3],j=g[1],k=g[4],l=g[2],m=g[5],n=h*d+j*f+l,o=k*f+i*d+m,p=h*c+j*f+l,q=k*f+i*c+m,r=h*c+j*e+l,s=k*e+i*c+m,t=h*d+j*e+l,u=k*e+i*d+m,v=-1/0,w=-1/0,x=1/0,y=1/0;x=x>n?n:x,x=x>p?p:x,x=x>r?r:x,x=x>t?t:x,y=y>o?o:y,y=y>q?q:y,y=y>s?s:y,y=y>u?u:y,v=n>v?n:v,v=p>v?p:v,v=r>v?r:v,v=t>v?t:v,w=o>w?o:w,w=q>w?q:w,w=s>w?s:w,w=u>w?u:w;var z=this._bounds;return z.x=x,z.width=v-x,z.y=y,z.height=w-y,this._currentBounds=z,z},e.Sprite.prototype._renderWebGL=function(a){if(this.visible!==!1&&0!==this.alpha){var b,c;if(this._mask||this._filters){var d=a.spriteBatch;for(this._mask&&(d.stop(),a.maskManager.pushMask(this.mask,a),d.start()),this._filters&&(d.flush(),a.filterManager.pushFilter(this._filterBlock)),d.render(this),b=0,c=this.children.length;c>b;b++)this.children[b]._renderWebGL(a);d.stop(),this._filters&&a.filterManager.popFilter(),this._mask&&a.maskManager.popMask(a),d.start()}else for(a.spriteBatch.render(this),b=0,c=this.children.length;c>b;b++)this.children[b]._renderWebGL(a)}},e.Sprite.prototype._renderCanvas=function(a){if(this.visible!==!1&&0!==this.alpha){this._mask&&a.maskManager.pushMask(this._mask,a.context);var b=this.texture.frame,c=a.context,d=this.texture;if(b&&b.width&&b.height&&d.baseTexture.source){c.globalAlpha=this.worldAlpha;var f=this.worldTransform;if(c.setTransform(f[0],f[3],f[1],f[4],f[2],f[5]),this.blendMode!==a.currentBlendMode&&(a.currentBlendMode=this.blendMode,c.globalCompositeOperation=e.blendModesCanvas[a.currentBlendMode]),16777215!==this.tint){if(this.cachedTint!==this.tint){if(!d.baseTexture.hasLoaded)return;this.cachedTint=this.tint,this.tintedTexture=e.CanvasTinter.getTintedTexture(this,this.tint)}c.drawImage(this.tintedTexture,0,0,b.width,b.height,this.anchor.x*-b.width,this.anchor.y*-b.height,b.width,b.height)}else if(d.trimmed){var g=d.trim;c.drawImage(this.texture.baseTexture.source,b.x,b.y,b.width,b.height,g.x-this.anchor.x*g.realWidth,g.y-this.anchor.y*g.realHeight,b.width,b.height)}else c.drawImage(this.texture.baseTexture.source,b.x,b.y,b.width,b.height,this.anchor.x*-b.width,this.anchor.y*-b.height,b.width,b.height)}for(var h=0,i=this.children.length;i>h;h++){var j=this.children[h];j._renderCanvas(a)}this._mask&&a.maskManager.popMask(a.context)}},e.Sprite.fromFrame=function(a){var b=e.TextureCache[a];if(!b)throw new Error('The frameId "'+a+'" does not exist in the texture cache'+this);return new e.Sprite(b)},e.Sprite.fromImage=function(a){var b=e.Texture.fromImage(a);return new e.Sprite(b)},e.MovieClip=function(a){e.Sprite.call(this,a[0]),this.textures=a,this.animationSpeed=1,this.loop=!0,this.onComplete=null,this.currentFrame=0,this.playing=!1},e.MovieClip.prototype=Object.create(e.Sprite.prototype),e.MovieClip.prototype.constructor=e.MovieClip,Object.defineProperty(e.MovieClip.prototype,"totalFrames",{get:function(){return this.textures.length}}),e.MovieClip.prototype.stop=function(){this.playing=!1},e.MovieClip.prototype.play=function(){this.playing=!0},e.MovieClip.prototype.gotoAndStop=function(a){this.playing=!1,this.currentFrame=a;var b=this.currentFrame+.5|0;this.setTexture(this.textures[b%this.textures.length])},e.MovieClip.prototype.gotoAndPlay=function(a){this.currentFrame=a,this.playing=!0},e.MovieClip.prototype.updateTransform=function(){if(e.Sprite.prototype.updateTransform.call(this),this.playing){this.currentFrame+=this.animationSpeed;var a=this.currentFrame+.5|0;this.loop||a=this.textures.length&&(this.gotoAndStop(this.textures.length-1),this.onComplete&&this.onComplete())}},e.FilterBlock=function(){this.visible=!0,this.renderable=!0},e.Text=function(a,b){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),e.Sprite.call(this,e.Texture.fromCanvas(this.canvas)),this.setText(a),this.setStyle(b),this.updateText(),this.dirty=!1},e.Text.prototype=Object.create(e.Sprite.prototype),e.Text.prototype.constructor=e.Text,e.Text.prototype.setStyle=function(a){a=a||{},a.font=a.font||"bold 20pt Arial",a.fill=a.fill||"black",a.align=a.align||"left",a.stroke=a.stroke||"black",a.strokeThickness=a.strokeThickness||0,a.wordWrap=a.wordWrap||!1,a.wordWrapWidth=a.wordWrapWidth||100,this.style=a,this.dirty=!0},e.Text.prototype.setText=function(a){this.text=a.toString()||" ",this.dirty=!0},e.Text.prototype.updateText=function(){this.context.font=this.style.font;var a=this.text;this.style.wordWrap&&(a=this.wordWrap(this.text));for(var b=a.split(/(?:\r\n|\r|\n)/),c=[],d=0,f=0;fe?(g>0&&(b+="\n"),b+=f[g]+" ",e=this.style.wordWrapWidth-h):(e-=i,b+=f[g]+" ")}b+="\n"}return b},e.Text.prototype.destroy=function(a){a&&this.texture.destroy()},e.Text.heightCache={},e.BitmapText=function(a,b){e.DisplayObjectContainer.call(this),this.setText(a),this.setStyle(b),this.updateText(),this.dirty=!1},e.BitmapText.prototype=Object.create(e.DisplayObjectContainer.prototype),e.BitmapText.prototype.constructor=e.BitmapText,e.BitmapText.prototype.setText=function(a){this.text=a||" ",this.dirty=!0},e.BitmapText.prototype.setStyle=function(a){a=a||{},a.align=a.align||"left",this.style=a;var b=a.font.split(" ");this.fontName=b[b.length-1],this.fontSize=b.length>=2?parseInt(b[b.length-2],10):e.BitmapText.fonts[this.fontName].size,this.dirty=!0},e.BitmapText.prototype.updateText=function(){for(var a=e.BitmapText.fonts[this.fontName],b=new e.Point,c=null,d=[],f=0,g=[],h=0,i=this.fontSize/a.size,j=0;j=j;j++){var n=0;"right"===this.style.align?n=f-g[j]:"center"===this.style.align&&(n=(f-g[j])/2),m.push(n)}for(j=0;j0;)this.removeChild(this.getChildAt(0));this.updateText(),this.dirty=!1}e.DisplayObjectContainer.prototype.updateTransform.call(this)},e.BitmapText.fonts={},e.InteractionManager=function(a){this.stage=a,this.mouse=new e.InteractionData,this.touchs={},this.tempPoint=new e.Point,this.mouseoverEnabled=!0,this.pool=[],this.interactiveItems=[],this.interactionDOMElement=null,this.onMouseMove=this.onMouseMove.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.last=0},e.InteractionManager.prototype.constructor=e.InteractionManager,e.InteractionManager.prototype.collectInteractiveSprite=function(a,b){for(var c=a.children,d=c.length,e=d-1;e>=0;e--){var f=c[e];f.interactive?(b.interactiveChildren=!0,this.interactiveItems.push(f),f.children.length>0&&this.collectInteractiveSprite(f,f)):(f.__iParent=null,f.children.length>0&&this.collectInteractiveSprite(f,b))}},e.InteractionManager.prototype.setTarget=function(a){this.target=a,null===this.interactionDOMElement&&this.setTargetDomElement(a.view),document.body.addEventListener("mouseup",this.onMouseUp,!0)},e.InteractionManager.prototype.setTargetDomElement=function(a){null!==this.interactionDOMElement&&(this.interactionDOMElement.style["-ms-content-zooming"]="",this.interactionDOMElement.style["-ms-touch-action"]="",this.interactionDOMElement.removeEventListener("mousemove",this.onMouseMove,!0),this.interactionDOMElement.removeEventListener("mousedown",this.onMouseDown,!0),this.interactionDOMElement.removeEventListener("mouseout",this.onMouseOut,!0),this.interactionDOMElement.removeEventListener("touchstart",this.onTouchStart,!0),this.interactionDOMElement.removeEventListener("touchend",this.onTouchEnd,!0),this.interactionDOMElement.removeEventListener("touchmove",this.onTouchMove,!0)),window.navigator.msPointerEnabled&&(a.style["-ms-content-zooming"]="none",a.style["-ms-touch-action"]="none"),this.interactionDOMElement=a,a.addEventListener("mousemove",this.onMouseMove,!0),a.addEventListener("mousedown",this.onMouseDown,!0),a.addEventListener("mouseout",this.onMouseOut,!0),a.addEventListener("touchstart",this.onTouchStart,!0),a.addEventListener("touchend",this.onTouchEnd,!0),a.addEventListener("touchmove",this.onTouchMove,!0)},e.InteractionManager.prototype.update=function(){if(this.target){var a=Date.now(),b=a-this.last;if(b=30*b/1e3,!(1>b)){this.last=a;var c=0;if(this.dirty){this.dirty=!1;var d=this.interactiveItems.length;for(c=0;d>c;c++)this.interactiveItems[c].interactiveChildren=!1;this.interactiveItems=[],this.stage.interactive&&this.interactiveItems.push(this.stage),this.collectInteractiveSprite(this.stage,this.stage)}var e=this.interactiveItems.length;for(this.interactionDOMElement.style.cursor="inherit",c=0;e>c;c++){var f=this.interactiveItems[c];(f.mouseover||f.mouseout||f.buttonMode)&&(f.__hit=this.hitTest(f,this.mouse),this.mouse.target=f,f.__hit?(f.buttonMode&&(this.interactionDOMElement.style.cursor=f.defaultCursor),f.__isOver||(f.mouseover&&f.mouseover(this.mouse),f.__isOver=!0)):f.__isOver&&(f.mouseout&&f.mouseout(this.mouse),f.__isOver=!1))}}}},e.InteractionManager.prototype.onMouseMove=function(a){this.mouse.originalEvent=a||window.event;var b=this.interactionDOMElement.getBoundingClientRect();this.mouse.global.x=(a.clientX-b.left)*(this.target.width/b.width),this.mouse.global.y=(a.clientY-b.top)*(this.target.height/b.height);for(var c=this.interactiveItems.length,d=0;c>d;d++){var e=this.interactiveItems[d];e.mousemove&&e.mousemove(this.mouse)}},e.InteractionManager.prototype.onMouseDown=function(a){this.mouse.originalEvent=a||window.event;for(var b=this.interactiveItems.length,c=0;b>c;c++){var d=this.interactiveItems[c];if((d.mousedown||d.click)&&(d.__mouseIsDown=!0,d.__hit=this.hitTest(d,this.mouse),d.__hit&&(d.mousedown&&d.mousedown(this.mouse),d.__isDown=!0,!d.interactiveChildren)))break}},e.InteractionManager.prototype.onMouseOut=function(){var a=this.interactiveItems.length;this.interactionDOMElement.style.cursor="inherit";for(var b=0;a>b;b++){var c=this.interactiveItems[b];c.__isOver&&(this.mouse.target=c,c.mouseout&&c.mouseout(this.mouse),c.__isOver=!1)}},e.InteractionManager.prototype.onMouseUp=function(a){this.mouse.originalEvent=a||window.event;for(var b=this.interactiveItems.length,c=!1,d=0;b>d;d++){var e=this.interactiveItems[d];(e.mouseup||e.mouseupoutside||e.click)&&(e.__hit=this.hitTest(e,this.mouse),e.__hit&&!c?(e.mouseup&&e.mouseup(this.mouse),e.__isDown&&e.click&&e.click(this.mouse),e.interactiveChildren||(c=!0)):e.__isDown&&e.mouseupoutside&&e.mouseupoutside(this.mouse),e.__isDown=!1)}},e.InteractionManager.prototype.hitTest=function(a,b){var c=b.global;if(!a.worldVisible)return!1;var d=a instanceof e.Sprite,f=a.worldTransform,g=f[0],h=f[1],i=f[2],j=f[3],k=f[4],l=f[5],m=1/(g*k+h*-j),n=k*m*c.x+-h*m*c.y+(l*h-i*k)*m,o=g*m*c.y+-j*m*c.x+(-l*g+i*j)*m;if(b.target=a,a.hitArea&&a.hitArea.contains)return a.hitArea.contains(n,o)?(b.target=a,!0):!1;if(d){var p,q=a.texture.frame.width,r=a.texture.frame.height,s=-q*a.anchor.x;if(n>s&&s+q>n&&(p=-r*a.anchor.y,o>p&&p+r>o))return b.target=a,!0}for(var t=a.children.length,u=0;t>u;u++){var v=a.children[u],w=this.hitTest(v,b);if(w)return b.target=a,!0}return!1},e.InteractionManager.prototype.onTouchMove=function(a){var b,c=this.interactionDOMElement.getBoundingClientRect(),d=a.changedTouches,e=0;for(e=0;ee;e++){var h=this.interactiveItems[e];h.touchmove&&h.touchmove(b)}},e.InteractionManager.prototype.onTouchStart=function(a){for(var b=this.interactionDOMElement.getBoundingClientRect(),c=a.changedTouches,d=0;di;i++){var j=this.interactiveItems[i];if((j.touchstart||j.tap)&&(j.__hit=this.hitTest(j,g),j.__hit&&(j.touchstart&&j.touchstart(g),j.__isDown=!0,j.__touchData=g,!j.interactiveChildren)))break}}},e.InteractionManager.prototype.onTouchEnd=function(a){for(var b=this.interactionDOMElement.getBoundingClientRect(),c=a.changedTouches,d=0;di;i++){var j=this.interactiveItems[i],k=j.__touchData;j.__hit=this.hitTest(j,f),k===f&&(f.originalEvent=a||window.event,(j.touchend||j.tap)&&(j.__hit&&!g?(j.touchend&&j.touchend(f),j.__isDown&&j.tap&&j.tap(f),j.interactiveChildren||(g=!0)):j.__isDown&&j.touchendoutside&&j.touchendoutside(f),j.__isDown=!1),j.__touchData=null)}this.pool.push(f),this.touchs[e.identifier]=null}},e.InteractionData=function(){this.global=new e.Point,this.local=new e.Point,this.target=null,this.originalEvent=null},e.InteractionData.prototype.getLocalPosition=function(a){var b=a.worldTransform,c=this.global,d=b[0],f=b[1],g=b[2],h=b[3],i=b[4],j=b[5],k=1/(d*i+f*-h);return new e.Point(i*k*c.x+-f*k*c.y+(j*f-g*i)*k,d*k*c.y+-h*k*c.x+(-j*d+g*h)*k)},e.InteractionData.prototype.constructor=e.InteractionData,e.Stage=function(a){e.DisplayObjectContainer.call(this),this.worldTransform=e.mat3.create(),this.interactive=!0,this.interactionManager=new e.InteractionManager(this),this.dirty=!0,this.__childrenAdded=[],this.__childrenRemoved=[],this.stage=this,this.stage.hitArea=new e.Rectangle(0,0,1e5,1e5),this.setBackgroundColor(a),this.worldVisible=!0},e.Stage.prototype=Object.create(e.DisplayObjectContainer.prototype),e.Stage.prototype.constructor=e.Stage,e.Stage.prototype.setInteractionDelegate=function(a){this.interactionManager.setTargetDomElement(a)},e.Stage.prototype.updateTransform=function(){this.worldAlpha=1,this.vcount=e.visibleCount;for(var a=0,b=this.children.length;b>a;a++)this.children[a].updateTransform();this.dirty&&(this.dirty=!1,this.interactionManager.dirty=!0),this.interactive&&this.interactionManager.update()},e.Stage.prototype.setBackgroundColor=function(a){this.backgroundColor=a||0,this.backgroundColorSplit=e.hex2rgb(this.backgroundColor);var b=this.backgroundColor.toString(16);b="000000".substr(0,6-b.length)+b,this.backgroundColorString="#"+b},e.Stage.prototype.getMousePosition=function(){return this.interactionManager.mouse.global};for(var f=0,h=["ms","moz","webkit","o"],i=0;i>16&255)/255,(a>>8&255)/255,(255&a)/255]},e.rgb2hex=function(a){return(255*a[0]<<16)+(255*a[1]<<8)+255*a[2]},"function"!=typeof Function.prototype.bind&&(Function.prototype.bind=function(){var a=Array.prototype.slice;return function(b){function c(){var f=e.concat(a.call(arguments));d.apply(this instanceof c?this:b,f)}var d=this,e=a.call(arguments,1);if("function"!=typeof d)throw new TypeError;return c.prototype=function f(a){return a&&(f.prototype=a),this instanceof f?void 0:new f}(d.prototype),c}}()),e.AjaxRequest=function(){var a=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Microsoft.XMLHTTP"];if(!window.ActiveXObject)return window.XMLHttpRequest?new window.XMLHttpRequest:!1;for(var b=0;b0&&0===(a&a-1))return a;for(var b=1;a>b;)b<<=1;return b},e.EventTarget=function(){var a={};this.addEventListener=this.on=function(b,c){void 0===a[b]&&(a[b]=[]),-1===a[b].indexOf(c)&&a[b].push(c)},this.dispatchEvent=this.emit=function(b){if(a[b.type]&&a[b.type].length)for(var c=0,d=a[b.type].length;d>c;c++)a[b.type][c](b)},this.removeEventListener=this.off=function(b,c){var d=a[b].indexOf(c);-1!==d&&a[b].splice(d,1)},this.removeAllEventListeners=function(b){var c=a[b];c&&(c.length=0)}},e.autoDetectRenderer=function(a,b,c,d,f){a||(a=800),b||(b=600);var g=function(){try{var a=document.createElement("canvas");return!!window.WebGLRenderingContext&&(a.getContext("webgl")||a.getContext("experimental-webgl"))}catch(b){return!1}}();if(g){var h=-1!==navigator.userAgent.toLowerCase().indexOf("trident");g=!h}return g?new e.WebGLRenderer(a,b,c,d,f):new e.CanvasRenderer(a,b,c,d)},e.PolyK={},e.PolyK.Triangulate=function(a){var b=!0,c=a.length>>1;if(3>c)return[];for(var d=[],f=[],g=0;c>g;g++)f.push(g);g=0;for(var h=c;h>3;){var i=f[(g+0)%h],j=f[(g+1)%h],k=f[(g+2)%h],l=a[2*i],m=a[2*i+1],n=a[2*j],o=a[2*j+1],p=a[2*k],q=a[2*k+1],r=!1; -if(e.PolyK._convex(l,m,n,o,p,q,b)){r=!0;for(var s=0;h>s;s++){var t=f[s];if(t!==i&&t!==j&&t!==k&&e.PolyK._PointInTriangle(a[2*t],a[2*t+1],l,m,n,o,p,q)){r=!1;break}}}if(r)d.push(i,j,k),f.splice((g+1)%h,1),h--,g=0;else if(g++>3*h){if(!b)return window.console.log("PIXI Warning: shape too complex to fill"),[];for(d=[],f=[],g=0;c>g;g++)f.push(g);g=0,h=c,b=!1}}return d.push(f[0],f[1],f[2]),d},e.PolyK._PointInTriangle=function(a,b,c,d,e,f,g,h){var i=g-c,j=h-d,k=e-c,l=f-d,m=a-c,n=b-d,o=i*i+j*j,p=i*k+j*l,q=i*m+j*n,r=k*k+l*l,s=k*m+l*n,t=1/(o*r-p*p),u=(r*q-p*s)*t,v=(o*s-p*q)*t;return u>=0&&v>=0&&1>u+v},e.PolyK._convex=function(a,b,c,d,e,f,g){return(b-d)*(e-c)+(c-a)*(f-d)>=0===g},e.initDefaultShaders=function(){},e.CompileVertexShader=function(a,b){return e._CompileShader(a,b,a.VERTEX_SHADER)},e.CompileFragmentShader=function(a,b){return e._CompileShader(a,b,a.FRAGMENT_SHADER)},e._CompileShader=function(a,b,c){var d=b.join("\n"),e=a.createShader(c);return a.shaderSource(e,d),a.compileShader(e),a.getShaderParameter(e,a.COMPILE_STATUS)?e:(window.console.log(a.getShaderInfoLog(e)),null)},e.compileProgram=function(a,b,c){var d=e.CompileFragmentShader(a,c),f=e.CompileVertexShader(a,b),g=a.createProgram();return a.attachShader(g,f),a.attachShader(g,d),a.linkProgram(g),a.getProgramParameter(g,a.LINK_STATUS)||window.console.log("Could not initialise shaders"),g},e.PixiShader=function(a){this.gl=a,this.program=null,this.fragmentSrc=["precision lowp float;","varying vec2 vTextureCoord;","varying vec4 vColor;","uniform sampler2D uSampler;","void main(void) {"," gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor ;","}"],this.textureCount=0,this.init()},e.PixiShader.prototype.init=function(){var a=this.gl,b=e.compileProgram(a,this.vertexSrc||e.PixiShader.defaultVertexSrc,this.fragmentSrc);a.useProgram(b),this.uSampler=a.getUniformLocation(b,"uSampler"),this.projectionVector=a.getUniformLocation(b,"projectionVector"),this.offsetVector=a.getUniformLocation(b,"offsetVector"),this.dimensions=a.getUniformLocation(b,"dimensions"),this.aVertexPosition=a.getAttribLocation(b,"aVertexPosition"),this.aTextureCoord=a.getAttribLocation(b,"aTextureCoord"),this.colorAttribute=a.getAttribLocation(b,"aColor"),-1===this.colorAttribute&&(this.colorAttribute=2);for(var c in this.uniforms)this.uniforms[c].uniformLocation=a.getUniformLocation(b,c);this.initUniforms(),this.program=b},e.PixiShader.prototype.initUniforms=function(){this.textureCount=1;var a,b=this.gl;for(var c in this.uniforms){a=this.uniforms[c];var d=a.type;"sampler2D"===d?(a._init=!1,null!==a.value&&this.initSampler2D(a)):"mat2"===d||"mat3"===d||"mat4"===d?(a.glMatrix=!0,a.glValueLength=1,"mat2"===d?a.glFunc=b.uniformMatrix2fv:"mat3"===d?a.glFunc=b.uniformMatrix3fv:"mat4"===d&&(a.glFunc=b.uniformMatrix4fv)):(a.glFunc=b["uniform"+d],a.glValueLength="2f"===d||"2i"===d?2:"3f"===d||"3i"===d?3:"4f"===d||"4i"===d?4:1)}},e.PixiShader.prototype.initSampler2D=function(a){if(a.value&&a.value.baseTexture&&a.value.baseTexture.hasLoaded){var b=this.gl;if(b.activeTexture(b["TEXTURE"+this.textureCount]),b.bindTexture(b.TEXTURE_2D,a.value.baseTexture._glTexture),a.textureData){var c=a.textureData,d=c.magFilter?c.magFilter:b.LINEAR,e=c.minFilter?c.minFilter:b.LINEAR,f=c.wrapS?c.wrapS:b.CLAMP_TO_EDGE,g=c.wrapT?c.wrapT:b.CLAMP_TO_EDGE,h=c.luminance?b.LUMINANCE:b.RGBA;if(c.repeat&&(f=b.REPEAT,g=b.REPEAT),b.pixelStorei(b.UNPACK_FLIP_Y_WEBGL,!1),c.width){var i=c.width?c.width:512,j=c.height?c.height:2,k=c.border?c.border:0;b.texImage2D(b.TEXTURE_2D,0,h,i,j,k,h,b.UNSIGNED_BYTE,null)}else b.texImage2D(b.TEXTURE_2D,0,h,b.RGBA,b.UNSIGNED_BYTE,a.value.baseTexture.source);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,d),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,e),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,f),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,g)}b.uniform1i(a.uniformLocation,this.textureCount),a._init=!0,this.textureCount++}},e.PixiShader.prototype.syncUniforms=function(){this.textureCount=1;var a,b=this.gl;for(var c in this.uniforms)a=this.uniforms[c],1===a.glValueLength?a.glMatrix===!0?a.glFunc.call(b,a.uniformLocation,a.transpose,a.value):a.glFunc.call(b,a.uniformLocation,a.value):2===a.glValueLength?a.glFunc.call(b,a.uniformLocation,a.value.x,a.value.y):3===a.glValueLength?a.glFunc.call(b,a.uniformLocation,a.value.x,a.value.y,a.value.z):4===a.glValueLength?a.glFunc.call(b,a.uniformLocation,a.value.x,a.value.y,a.value.z,a.value.w):"sampler2D"===a.type&&(a._init?(b.activeTexture(b["TEXTURE"+this.textureCount]),b.bindTexture(b.TEXTURE_2D,a.value.baseTexture._glTextures[b.id]||e.createWebGLTexture(a.value.baseTexture,b)),b.uniform1i(a.uniformLocation,this.textureCount),this.textureCount++):this.initSampler2D(a))},e.PixiShader.defaultVertexSrc=["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute vec2 aColor;","uniform vec2 projectionVector;","uniform vec2 offsetVector;","varying vec2 vTextureCoord;","varying vec4 vColor;","const vec2 center = vec2(-1.0, 1.0);","void main(void) {"," gl_Position = vec4( ((aVertexPosition + offsetVector) / projectionVector) + center , 0.0, 1.0);"," vTextureCoord = aTextureCoord;"," vec3 color = mod(vec3(aColor.y/65536.0, aColor.y/256.0, aColor.y), 256.0) / 256.0;"," vColor = vec4(color * aColor.x, aColor.x);","}"],e.StripShader=function(){this.program=null,this.fragmentSrc=["precision mediump float;","varying vec2 vTextureCoord;","varying float vColor;","uniform float alpha;","uniform sampler2D uSampler;","void main(void) {"," gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y));"," gl_FragColor = gl_FragColor * alpha;","}"],this.vertexSrc=["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute float aColor;","uniform mat3 translationMatrix;","uniform vec2 projectionVector;","varying vec2 vTextureCoord;","uniform vec2 offsetVector;","varying float vColor;","void main(void) {"," vec3 v = translationMatrix * vec3(aVertexPosition, 1.0);"," v -= offsetVector.xyx;"," gl_Position = vec4( v.x / projectionVector.x -1.0, v.y / projectionVector.y + 1.0 , 0.0, 1.0);"," vTextureCoord = aTextureCoord;"," vColor = aColor;","}"]},e.StripShader.prototype.init=function(){var a=e.gl,b=e.compileProgram(a,this.vertexSrc,this.fragmentSrc);a.useProgram(b),this.uSampler=a.getUniformLocation(b,"uSampler"),this.projectionVector=a.getUniformLocation(b,"projectionVector"),this.offsetVector=a.getUniformLocation(b,"offsetVector"),this.colorAttribute=a.getAttribLocation(b,"aColor"),this.aVertexPosition=a.getAttribLocation(b,"aVertexPosition"),this.aTextureCoord=a.getAttribLocation(b,"aTextureCoord"),this.translationMatrix=a.getUniformLocation(b,"translationMatrix"),this.alpha=a.getUniformLocation(b,"alpha"),this.program=b},e.PrimitiveShader=function(a){this.gl=a,this.program=null,this.fragmentSrc=["precision mediump float;","varying vec4 vColor;","void main(void) {"," gl_FragColor = vColor;","}"],this.vertexSrc=["attribute vec2 aVertexPosition;","attribute vec4 aColor;","uniform mat3 translationMatrix;","uniform vec2 projectionVector;","uniform vec2 offsetVector;","uniform float alpha;","uniform vec3 tint;","varying vec4 vColor;","void main(void) {"," vec3 v = translationMatrix * vec3(aVertexPosition , 1.0);"," v -= offsetVector.xyx;"," gl_Position = vec4( v.x / projectionVector.x -1.0, v.y / -projectionVector.y + 1.0 , 0.0, 1.0);"," vColor = aColor * vec4(tint * alpha, alpha);","}"],this.init()},e.PrimitiveShader.prototype.init=function(){var a=this.gl,b=e.compileProgram(a,this.vertexSrc,this.fragmentSrc);a.useProgram(b),this.projectionVector=a.getUniformLocation(b,"projectionVector"),this.offsetVector=a.getUniformLocation(b,"offsetVector"),this.tintColor=a.getUniformLocation(b,"tint"),this.aVertexPosition=a.getAttribLocation(b,"aVertexPosition"),this.colorAttribute=a.getAttribLocation(b,"aColor"),this.translationMatrix=a.getUniformLocation(b,"translationMatrix"),this.alpha=a.getUniformLocation(b,"alpha"),this.program=b},e.WebGLGraphics=function(){},e.WebGLGraphics.renderGraphics=function(a,b){var c=b.gl,d=b.projection,f=b.offset,g=b.shaderManager.primitiveShader;a._webGL[c.id]||(a._webGL[c.id]={points:[],indices:[],lastIndex:0,buffer:c.createBuffer(),indexBuffer:c.createBuffer()});var h=a._webGL[c.id];a.dirty&&(a.dirty=!1,a.clearDirty&&(a.clearDirty=!1,h.lastIndex=0,h.points=[],h.indices=[]),e.WebGLGraphics.updateGraphics(a,c)),b.shaderManager.activatePrimitiveShader();var i=e.mat3.clone(a.worldTransform);e.mat3.transpose(i),c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA),c.uniformMatrix3fv(g.translationMatrix,!1,i),c.uniform2f(g.projectionVector,d.x,-d.y),c.uniform2f(g.offsetVector,-f.x,-f.y),c.uniform3fv(g.tintColor,e.hex2rgb(a.tint)),c.uniform1f(g.alpha,a.worldAlpha),c.bindBuffer(c.ARRAY_BUFFER,h.buffer),c.vertexAttribPointer(g.aVertexPosition,2,c.FLOAT,!1,24,0),c.vertexAttribPointer(g.colorAttribute,4,c.FLOAT,!1,24,8),c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,h.indexBuffer),c.drawElements(c.TRIANGLE_STRIP,h.indices.length,c.UNSIGNED_SHORT,0),b.shaderManager.deactivatePrimitiveShader()},e.WebGLGraphics.updateGraphics=function(a,b){for(var c=a._webGL[b.id],d=c.lastIndex;d3&&e.WebGLGraphics.buildPoly(f,c),f.lineWidth>0&&e.WebGLGraphics.buildLine(f,c)):f.type===e.Graphics.RECT?e.WebGLGraphics.buildRectangle(f,c):(f.type===e.Graphics.CIRC||f.type===e.Graphics.ELIP)&&e.WebGLGraphics.buildCircle(f,c)}c.lastIndex=a.graphicsData.length,c.glPoints=new Float32Array(c.points),b.bindBuffer(b.ARRAY_BUFFER,c.buffer),b.bufferData(b.ARRAY_BUFFER,c.glPoints,b.STATIC_DRAW),c.glIndicies=new Uint16Array(c.indices),b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,c.indexBuffer),b.bufferData(b.ELEMENT_ARRAY_BUFFER,c.glIndicies,b.STATIC_DRAW)},e.WebGLGraphics.buildRectangle=function(a,b){var c=a.points,d=c[0],f=c[1],g=c[2],h=c[3];if(a.fill){var i=e.hex2rgb(a.fillColor),j=a.fillAlpha,k=i[0]*j,l=i[1]*j,m=i[2]*j,n=b.points,o=b.indices,p=n.length/6;n.push(d,f),n.push(k,l,m,j),n.push(d+g,f),n.push(k,l,m,j),n.push(d,f+h),n.push(k,l,m,j),n.push(d+g,f+h),n.push(k,l,m,j),o.push(p,p,p+1,p+2,p+3,p+3)}a.lineWidth&&(a.points=[d,f,d+g,f,d+g,f+h,d,f+h,d,f],e.WebGLGraphics.buildLine(a,b))},e.WebGLGraphics.buildCircle=function(a,b){var c=a.points,d=c[0],f=c[1],g=c[2],h=c[3],i=40,j=2*Math.PI/i,k=0;if(a.fill){var l=e.hex2rgb(a.fillColor),m=a.fillAlpha,n=l[0]*m,o=l[1]*m,p=l[2]*m,q=b.points,r=b.indices,s=q.length/6;for(r.push(s),k=0;i+1>k;k++)q.push(d,f,n,o,p,m),q.push(d+Math.sin(j*k)*g,f+Math.cos(j*k)*h,n,o,p,m),r.push(s++,s++);r.push(s-1)}if(a.lineWidth){for(a.points=[],k=0;i+1>k;k++)a.points.push(d+Math.sin(j*k)*g,f+Math.cos(j*k)*h);e.WebGLGraphics.buildLine(a,b)}},e.WebGLGraphics.buildLine=function(a,b){var c=0,d=a.points;if(0!==d.length){if(a.lineWidth%2)for(c=0;cc;c++)l=d[2*(c-1)],m=d[2*(c-1)+1],n=d[2*c],o=d[2*c+1],p=d[2*(c+1)],q=d[2*(c+1)+1],r=-(m-o),s=l-n,F=Math.sqrt(r*r+s*s),r/=F,s/=F,r*=L,s*=L,t=-(o-q),u=n-p,F=Math.sqrt(t*t+u*u),t/=F,u/=F,t*=L,u*=L,x=-s+m-(-s+o),y=-r+n-(-r+l),z=(-r+l)*(-s+o)-(-r+n)*(-s+m),A=-u+q-(-u+o),B=-t+n-(-t+p),C=(-t+p)*(-u+o)-(-t+n)*(-u+q),D=x*B-A*y,Math.abs(D)<.1?(D+=10.1,G.push(n-r,o-s,O,P,Q,N),G.push(n+r,o+s,O,P,Q,N)):(j=(y*C-B*z)/D,k=(A*z-x*C)/D,E=(j-n)*(j-n)+(k-o)+(k-o),E>19600?(v=r-t,w=s-u,F=Math.sqrt(v*v+w*w),v/=F,w/=F,v*=L,w*=L,G.push(n-v,o-w),G.push(O,P,Q,N),G.push(n+v,o+w),G.push(O,P,Q,N),G.push(n-v,o-w),G.push(O,P,Q,N),J++):(G.push(j,k),G.push(O,P,Q,N),G.push(n-(j-n),o-(k-o)),G.push(O,P,Q,N)));for(l=d[2*(I-2)],m=d[2*(I-2)+1],n=d[2*(I-1)],o=d[2*(I-1)+1],r=-(m-o),s=l-n,F=Math.sqrt(r*r+s*s),r/=F,s/=F,r*=L,s*=L,G.push(n-r,o-s),G.push(O,P,Q,N),G.push(n+r,o+s),G.push(O,P,Q,N),H.push(K),c=0;J>c;c++)H.push(K++);H.push(K-1)}},e.WebGLGraphics.buildPoly=function(a,b){var c=a.points;if(!(c.length<6)){var d=b.points,f=b.indices,g=c.length/2,h=e.hex2rgb(a.fillColor),i=a.fillAlpha,j=h[0]*i,k=h[1]*i,l=h[2]*i,m=e.PolyK.Triangulate(c),n=d.length/6,o=0;for(o=0;oo;o++)d.push(c[2*o],c[2*o+1],j,k,l,i)}},e._defaultFrame=new e.Rectangle(0,0,1,1),e.gl=null,e.WebGLRenderer=function(a,b,c,d,f){e.defaultRenderer||(e.defaultRenderer=this),this.type=e.WEBGL_RENDERER,this.transparent=!!d,this.width=a||800,this.height=b||600,this.view=c||document.createElement("canvas"),this.view.width=this.width,this.view.height=this.height;var g=this;this.view.addEventListener("webglcontextlost",function(a){g.handleContextLost(a)},!1),this.view.addEventListener("webglcontextrestored",function(a){g.handleContextRestored(a)},!1),this.batchs=[],this.options={alpha:this.transparent,antialias:!!f,premultipliedAlpha:!1,stencil:!0};try{this.gl=this.view.getContext("experimental-webgl",this.options)}catch(h){try{this.gl=this.view.getContext("webgl",this.options)}catch(i){throw new Error(" This browser does not support webGL. Try using the canvas renderer"+this)}}var j=this.gl;this.glContextId=j.id=e.WebGLRenderer.glContextId++,e.blendModesWebGL||(e.blendModesWebGL=[],e.blendModesWebGL[e.blendModes.NORMAL]=[j.ONE,j.ONE_MINUS_SRC_ALPHA],e.blendModesWebGL[e.blendModes.ADD]=[j.SRC_ALPHA,j.DST_ALPHA],e.blendModesWebGL[e.blendModes.MULTIPLY]=[j.DST_COLOR,j.ONE_MINUS_SRC_ALPHA],e.blendModesWebGL[e.blendModes.SCREEN]=[j.SRC_ALPHA,j.ONE]),this.projection=new e.Point,this.projection.x=this.width/2,this.projection.y=-this.height/2,this.offset=new e.Point(0,0),this.resize(this.width,this.height),this.contextLost=!1,this.shaderManager=new e.WebGLShaderManager(j),this.spriteBatch=new e.WebGLSpriteBatch(j),this.maskManager=new e.WebGLMaskManager(j),this.filterManager=new e.WebGLFilterManager(j,this.transparent),this.renderSession={},this.renderSession.gl=this.gl,this.renderSession.drawCount=0,this.renderSession.shaderManager=this.shaderManager,this.renderSession.maskManager=this.maskManager,this.renderSession.filterManager=this.filterManager,this.renderSession.spriteBatch=this.spriteBatch,j.useProgram(this.shaderManager.defaultShader.program),e.WebGLRenderer.gl=j,j.disable(j.DEPTH_TEST),j.disable(j.CULL_FACE),j.enable(j.BLEND),j.colorMask(!0,!0,!0,this.transparent)},e.WebGLRenderer.prototype.constructor=e.WebGLRenderer,e.WebGLRenderer.prototype.render=function(a){if(!this.contextLost){this.__stage!==a&&(this.__stage=a),e.WebGLRenderer.updateTextures(),a.updateTransform();var b=this.gl;b.colorMask(!0,!0,!0,this.transparent),b.viewport(0,0,this.width,this.height),b.bindFramebuffer(b.FRAMEBUFFER,null),b.clearColor(a.backgroundColorSplit[0],a.backgroundColorSplit[1],a.backgroundColorSplit[2],!this.transparent),b.clear(b.COLOR_BUFFER_BIT),this.renderDisplayObject(a,this.projection),a.interactive&&(a._interactiveEventsAdded||(a._interactiveEventsAdded=!0,a.interactionManager.setTarget(this)))}},e.WebGLRenderer.prototype.renderDisplayObject=function(a,b){this.renderSession.drawCount=0,this.renderSession.currentBlendMode=9999,this.renderSession.projection=b,this.renderSession.offset=this.offset,this.spriteBatch.begin(this.renderSession),this.filterManager.begin(this.renderSession,null),a._renderWebGL(this.renderSession),this.spriteBatch.end()},e.WebGLRenderer.updateTextures=function(){var a=0;for(a=0;ad;d+=6,e+=4)this.indices[d+0]=e+0,this.indices[d+1]=e+1,this.indices[d+2]=e+2,this.indices[d+3]=e+0,this.indices[d+4]=e+2,this.indices[d+5]=e+3;this.drawing=!1,this.currentBatchSize=0,this.currentBaseTexture=null,this.setContext(a)},e.WebGLSpriteBatch.prototype.setContext=function(a){this.gl=a,this.vertexBuffer=a.createBuffer(),this.indexBuffer=a.createBuffer(),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.indexBuffer),a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.indices,a.STATIC_DRAW),a.bindBuffer(a.ARRAY_BUFFER,this.vertexBuffer),a.bufferData(a.ARRAY_BUFFER,this.vertices,a.DYNAMIC_DRAW),this.currentBlendMode=99999},e.WebGLSpriteBatch.prototype.begin=function(a){this.renderSession=a,this.shader=this.renderSession.shaderManager.defaultShader,this.start()},e.WebGLSpriteBatch.prototype.end=function(){this.flush()},e.WebGLSpriteBatch.prototype.render=function(a){(a.texture.baseTexture!==this.currentBaseTexture||this.currentBatchSize>=this.size)&&(this.flush(),this.currentBaseTexture=a.texture.baseTexture),a.blendMode!==this.currentBlendMode&&this.setBlendMode(a.blendMode);var b=a._uvs||a.texture._uvs;if(b){var c,d,e,f,g=a.worldAlpha,h=a.tint,i=this.vertices,j=a.texture.frame.width,k=a.texture.frame.height,l=a.anchor.x,m=a.anchor.y;if(a.texture.trimmed){var n=a.texture.trim;d=n.x-l*n.realWidth,c=d+j,f=n.y-m*n.realHeight,e=f+k}else c=j*(1-l),d=j*-l,e=k*(1-m),f=k*-m;var o=4*this.currentBatchSize*this.vertSize,p=a.worldTransform,q=p[0],r=p[3],s=p[1],t=p[4],u=p[2],v=p[5];i[o++]=q*d+s*f+u,i[o++]=t*f+r*d+v,i[o++]=b[0],i[o++]=b[1],i[o++]=g,i[o++]=h,i[o++]=q*c+s*f+u,i[o++]=t*f+r*c+v,i[o++]=b[2],i[o++]=b[3],i[o++]=g,i[o++]=h,i[o++]=q*c+s*e+u,i[o++]=t*e+r*c+v,i[o++]=b[4],i[o++]=b[5],i[o++]=g,i[o++]=h,i[o++]=q*d+s*e+u,i[o++]=t*e+r*d+v,i[o++]=b[6],i[o++]=b[7],i[o++]=g,i[o++]=h,this.currentBatchSize++}},e.WebGLSpriteBatch.prototype.renderTilingSprite=function(a){var b=a.texture;(b.baseTexture!==this.currentBaseTexture||this.currentBatchSize>=this.size)&&(this.flush(),this.currentBaseTexture=b.baseTexture),a.blendMode!==this.currentBlendMode&&this.setBlendMode(a.blendMode),a._uvs||(a._uvs=new Float32Array(8));var c=a._uvs,d=a.tilePosition.x/b.baseTexture.width,e=a.tilePosition.y/b.baseTexture.height,f=a.width/b.baseTexture.width/a.tileScale.x,g=a.height/b.baseTexture.height/a.tileScale.y;c[0]=0-d,c[1]=0-e,c[2]=1*f-d,c[3]=0-e,c[4]=1*f-d,c[5]=1*g-e,c[6]=0-d,c[7]=1*g-e;var h=a.worldAlpha,i=a.tint,j=this.vertices,k=a.width,l=a.height,m=a.anchor.x,n=a.anchor.y,o=k*(1-m),p=k*-m,q=l*(1-n),r=l*-n,s=4*this.currentBatchSize*this.vertSize,t=a.worldTransform,u=t[0],v=t[3],w=t[1],x=t[4],y=t[2],z=t[5];j[s++]=u*p+w*r+y,j[s++]=x*r+v*p+z,j[s++]=c[0],j[s++]=c[1],j[s++]=h,j[s++]=i,j[s++]=u*o+w*r+y,j[s++]=x*r+v*o+z,j[s++]=c[2],j[s++]=c[3],j[s++]=h,j[s++]=i,j[s++]=u*o+w*q+y,j[s++]=x*q+v*o+z,j[s++]=c[4],j[s++]=c[5],j[s++]=h,j[s++]=i,j[s++]=u*p+w*q+y,j[s++]=x*q+v*p+z,j[s++]=c[6],j[s++]=c[7],j[s++]=h,j[s++]=i,this.currentBatchSize++},e.WebGLSpriteBatch.prototype.flush=function(){if(0!==this.currentBatchSize){var a=this.gl;a.bindTexture(a.TEXTURE_2D,this.currentBaseTexture._glTextures[a.id]||e.createWebGLTexture(this.currentBaseTexture,a));var b=this.vertices.subarray(0,4*this.currentBatchSize*this.vertSize);a.bufferSubData(a.ARRAY_BUFFER,0,b),a.drawElements(a.TRIANGLES,6*this.currentBatchSize,a.UNSIGNED_SHORT,0),this.currentBatchSize=0,this.renderSession.drawCount++}},e.WebGLSpriteBatch.prototype.stop=function(){this.flush()},e.WebGLSpriteBatch.prototype.start=function(){var a=this.gl;a.activeTexture(a.TEXTURE0),a.bindBuffer(a.ARRAY_BUFFER,this.vertexBuffer),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.indexBuffer);var b=this.renderSession.projection;a.uniform2f(this.shader.projectionVector,b.x,b.y);var c=4*this.vertSize;a.vertexAttribPointer(this.shader.aVertexPosition,2,a.FLOAT,!1,c,0),a.vertexAttribPointer(this.shader.aTextureCoord,2,a.FLOAT,!1,c,8),a.vertexAttribPointer(this.shader.colorAttribute,2,a.FLOAT,!1,c,16),this.currentBlendMode!==e.blendModes.NORMAL&&this.setBlendMode(e.blendModes.NORMAL)},e.WebGLSpriteBatch.prototype.setBlendMode=function(a){this.flush(),this.currentBlendMode=a;var b=e.blendModesWebGL[this.currentBlendMode];this.gl.blendFunc(b[0],b[1])},e.WebGLFilterManager=function(a,b){this.transparent=b,this.filterStack=[],this.offsetX=0,this.offsetY=0,this.setContext(a)},e.WebGLFilterManager.prototype.setContext=function(a){this.gl=a,this.texturePool=[],this.initShaderBuffers()},e.WebGLFilterManager.prototype.begin=function(a,b){this.renderSession=a,this.defaultShader=a.shaderManager.defaultShader;var c=this.renderSession.projection;this.width=2*c.x,this.height=2*-c.y,this.buffer=b},e.WebGLFilterManager.prototype.pushFilter=function(a){var b=this.gl,c=this.renderSession.projection,d=this.renderSession.offset;this.filterStack.push(a);var f=a.filterPasses[0];this.offsetX+=a.target.filterArea.x,this.offsetY+=a.target.filterArea.y;var g=this.texturePool.pop();g?g.resize(this.width,this.height):g=new e.FilterTexture(this.gl,this.width,this.height),b.bindTexture(b.TEXTURE_2D,g.texture),a.target.filterArea=a.target.getBounds();var h=a.target.filterArea,i=f.padding;h.x-=i,h.y-=i,h.width+=2*i,h.height+=2*i,h.x<0&&(h.x=0),h.width>this.width&&(h.width=this.width),h.y<0&&(h.y=0),h.height>this.height&&(h.height=this.height),b.bindFramebuffer(b.FRAMEBUFFER,g.frameBuffer),b.viewport(0,0,h.width,h.height),c.x=h.width/2,c.y=-h.height/2,d.x=-h.x,d.y=-h.y,b.uniform2f(this.defaultShader.projectionVector,h.width/2,-h.height/2),b.uniform2f(this.defaultShader.offsetVector,-h.x,-h.y),b.colorMask(!0,!0,!0,!0),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),a._glFilterTexture=g},e.WebGLFilterManager.prototype.popFilter=function(){var a=this.gl,b=this.filterStack.pop(),c=b.target.filterArea,d=b._glFilterTexture,f=this.renderSession.projection,g=this.renderSession.offset;if(b.filterPasses.length>1){a.viewport(0,0,c.width,c.height),a.bindBuffer(a.ARRAY_BUFFER,this.vertexBuffer),this.vertexArray[0]=0,this.vertexArray[1]=c.height,this.vertexArray[2]=c.width,this.vertexArray[3]=c.height,this.vertexArray[4]=0,this.vertexArray[5]=0,this.vertexArray[6]=c.width,this.vertexArray[7]=0,a.bufferSubData(a.ARRAY_BUFFER,0,this.vertexArray),a.bindBuffer(a.ARRAY_BUFFER,this.uvBuffer),this.uvArray[2]=c.width/this.width,this.uvArray[5]=c.height/this.height,this.uvArray[6]=c.width/this.width,this.uvArray[7]=c.height/this.height,a.bufferSubData(a.ARRAY_BUFFER,0,this.uvArray);var h=d,i=this.texturePool.pop();i||(i=new e.FilterTexture(this.gl,this.width,this.height)),a.bindFramebuffer(a.FRAMEBUFFER,i.frameBuffer),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.BLEND);for(var j=0;j0&&(e.Texture.frameUpdates=[])},e.CanvasRenderer.prototype.resize=function(a,b){this.width=a,this.height=b,this.view.width=a,this.view.height=b},e.CanvasRenderer.prototype.renderDisplayObject=function(a,b){this.renderSession.context=b||this.context,a._renderCanvas(this.renderSession)},e.CanvasRenderer.prototype.renderStripFlat=function(a){var b=this.context,c=a.verticies,d=c.length/2;this.count++,b.beginPath();for(var e=1;d-2>e;e++){var f=2*e,g=c[f],h=c[f+2],i=c[f+4],j=c[f+1],k=c[f+3],l=c[f+5];b.moveTo(g,j),b.lineTo(h,k),b.lineTo(i,l)}b.fillStyle="#FF0000",b.fill(),b.closePath()},e.CanvasRenderer.prototype.renderStrip=function(a){var b=this.context,c=a.verticies,d=a.uvs,e=c.length/2;this.count++;for(var f=1;e-2>f;f++){var g=2*f,h=c[g],i=c[g+2],j=c[g+4],k=c[g+1],l=c[g+3],m=c[g+5],n=d[g]*a.texture.width,o=d[g+2]*a.texture.width,p=d[g+4]*a.texture.width,q=d[g+1]*a.texture.height,r=d[g+3]*a.texture.height,s=d[g+5]*a.texture.height;b.save(),b.beginPath(),b.moveTo(h,k),b.lineTo(i,l),b.lineTo(j,m),b.closePath(),b.clip();var t=n*r+q*p+o*s-r*p-q*o-n*s,u=h*r+q*j+i*s-r*j-q*i-h*s,v=n*i+h*p+o*j-i*p-h*o-n*j,w=n*r*j+q*i*p+h*o*s-h*r*p-q*o*j-n*i*s,x=k*r+q*m+l*s-r*m-q*l-k*s,y=n*l+k*p+o*m-l*p-k*o-n*m,z=n*r*m+q*l*p+k*o*s-k*r*p-q*o*m-n*l*s;b.transform(u/t,x/t,v/t,y/t,w/t,z/t),b.drawImage(a.texture.baseTexture.source,0,0),b.restore()}},e.CanvasBuffer=function(a,b){this.width=a,this.height=b,this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.canvas.width=a,this.canvas.height=b},e.CanvasBuffer.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},e.CanvasBuffer.prototype.resize=function(a,b){this.width=this.canvas.width=a,this.height=this.canvas.height=b},e.CanvasGraphics=function(){},e.CanvasGraphics.renderGraphics=function(a,b){for(var c=a.worldAlpha,d="",f=0;f1&&(c=1,window.console.log("Pixi.js warning: masks in canvas can only mask using the first path in the graphics object"));for(var d=0;1>d;d++){var f=a.graphicsData[d],g=f.points;if(f.type===e.Graphics.POLY){b.beginPath(),b.moveTo(g[0],g[1]);for(var h=1;hl?l:v,v=v>n?n:v,v=v>p?p:v,v=v>r?r:v,w=w>m?m:w,w=w>o?o:w,w=w>q?q:w,w=w>s?s:w,t=l>t?l:t,t=n>t?n:t,t=p>t?p:t,t=r>t?r:t,u=m>u?m:u,u=o>u?o:u,u=q>u?q:u,u=s>u?s:u;var x=this._bounds;return x.x=v,x.width=t-v,x.y=w,x.height=u-w,x},e.Graphics.prototype.updateBounds=function(){for(var a,b,c,d=1/0,f=-1/0,g=1/0,h=-1/0,i=0;ib?b:d,f=b+m>f?b+m:f,g=g>c?b:g,h=c+n>h?c+n:h}else if(k===e.Graphics.CIRC||k===e.Graphics.ELIP){b=a.x,c=a.y;var o=a.radius+l/2;d=d>b-o?b-o:d,f=b+o>f?b+o:f,g=g>c-o?c-o:g,h=c+o>h?c+o:h}else for(var p=0;pb-l?b-l:d,f=b+l>f?b+l:f,g=g>c-l?c-l:g,h=c+l>h?c+l:h}this.bounds=new e.Rectangle(d,g,f-d,h-g)},e.Graphics.POLY=0,e.Graphics.RECT=1,e.Graphics.CIRC=2,e.Graphics.ELIP=3,e.Strip=function(a,b,c){e.DisplayObjectContainer.call(this),this.texture=a,this.blendMode=e.blendModes.NORMAL;try{this.uvs=new Float32Array([0,1,1,1,1,0,0,1]),this.verticies=new Float32Array([0,0,0,0,0,0,0,0,0]),this.colors=new Float32Array([1,1,1,1]),this.indices=new Uint16Array([0,1,2,3])}catch(d){this.uvs=[0,1,1,1,1,0,0,1],this.verticies=[0,0,0,0,0,0,0,0,0],this.colors=[1,1,1,1],this.indices=[0,1,2,3]}this.width=b,this.height=c,a.baseTexture.hasLoaded?(this.width=this.texture.frame.width,this.height=this.texture.frame.height,this.updateFrame=!0):(this.onTextureUpdateBind=this.onTextureUpdate.bind(this),this.texture.addEventListener("update",this.onTextureUpdateBind)),this.renderable=!0},e.Strip.prototype=Object.create(e.DisplayObjectContainer.prototype),e.Strip.prototype.constructor=e.Strip,e.Strip.prototype.setTexture=function(a){this.texture=a,this.width=a.frame.width,this.height=a.frame.height,this.updateFrame=!0},e.Strip.prototype.onTextureUpdate=function(){this.updateFrame=!0},e.Rope=function(a,b){e.Strip.call(this,a),this.points=b;try{this.verticies=new Float32Array(4*b.length),this.uvs=new Float32Array(4*b.length),this.colors=new Float32Array(2*b.length),this.indices=new Uint16Array(2*b.length)}catch(c){this.verticies=new Array(4*b.length),this.uvs=new Array(4*b.length),this.colors=new Array(2*b.length),this.indices=new Array(2*b.length)}this.refresh()},e.Rope.prototype=Object.create(e.Strip.prototype),e.Rope.prototype.constructor=e.Rope,e.Rope.prototype.refresh=function(){var a=this.points;if(!(a.length<1)){var b=this.uvs,c=a[0],d=this.indices,e=this.colors;this.count-=.2,b[0]=0,b[1]=1,b[2]=0,b[3]=1,e[0]=1,e[1]=1,d[0]=0,d[1]=1;for(var f,g,h,i=a.length,j=1;i>j;j++)f=a[j],g=4*j,h=j/(i-1),j%2?(b[g]=h,b[g+1]=0,b[g+2]=h,b[g+3]=1):(b[g]=h,b[g+1]=0,b[g+2]=h,b[g+3]=1),g=2*j,e[g]=1,e[g+1]=1,g=2*j,d[g]=g,d[g+1]=g+1,c=f}},e.Rope.prototype.updateTransform=function(){var a=this.points;if(!(a.length<1)){var b,c=a[0],d={x:0,y:0};this.count-=.2;var f=this.verticies;f[0]=c.x+d.x,f[1]=c.y+d.y,f[2]=c.x-d.x,f[3]=c.y-d.y;for(var g,h,i,j,k,l=a.length,m=1;l>m;m++)g=a[m],h=4*m,b=m1&&(i=1),j=Math.sqrt(d.x*d.x+d.y*d.y),k=this.texture.height/2,d.x/=j,d.y/=j,d.x*=k,d.y*=k,f[h]=g.x+d.x,f[h+1]=g.y+d.y,f[h+2]=g.x-d.x,f[h+3]=g.y-d.y,c=g;e.DisplayObjectContainer.prototype.updateTransform.call(this)}},e.Rope.prototype.setTexture=function(a){this.texture=a,this.updateFrame=!0},e.TilingSprite=function(a,b,c){e.Sprite.call(this,a),this.width=b||100,this.height=c||100,a.baseTexture._powerOf2=!0,this.tileScale=new e.Point(1,1),this.tilePosition=new e.Point(0,0),this.renderable=!0,this.tint=16777215,this.blendMode=e.blendModes.NORMAL},e.TilingSprite.prototype=Object.create(e.Sprite.prototype),e.TilingSprite.prototype.constructor=e.TilingSprite,Object.defineProperty(e.TilingSprite.prototype,"width",{get:function(){return this._width},set:function(a){this._width=a}}),Object.defineProperty(e.TilingSprite.prototype,"height",{get:function(){return this._height},set:function(a){this._height=a}}),e.TilingSprite.prototype.onTextureUpdate=function(){this.updateFrame=!0},e.TilingSprite.prototype._renderWebGL=function(a){if(this.visible!==!1&&0!==this.alpha){var b,c;if(this.mask||this.filters){for(this.mask&&(a.spriteBatch.stop(),a.maskManager.pushMask(this.mask,a.projection),a.spriteBatch.start()),this.filters&&(a.spriteBatch.flush(),a.filterManager.pushFilter(this._filterBlock)),a.spriteBatch.renderTilingSprite(this),b=0,c=this.children.length;c>b;b++)this.children[b]._renderWebGL(a);a.spriteBatch.stop(),this.filters&&a.filterManager.popFilter(),this.mask&&a.maskManager.popMask(a.projection),a.spriteBatch.start()}else for(a.spriteBatch.renderTilingSprite(this),b=0,c=this.children.length;c>b;b++)this.children[b]._renderWebGL(a)}},e.TilingSprite.prototype._renderCanvas=function(a){if(this.visible!==!1&&0!==this.alpha){var b=a.context;b.globalAlpha=this.worldAlpha;var c=this.worldTransform;b.setTransform(c[0],c[3],c[1],c[4],c[2],c[5]),this.__tilePattern||(this.__tilePattern=b.createPattern(this.texture.baseTexture.source,"repeat")),this.blendMode!==a.currentBlendMode&&(a.currentBlendMode=this.blendMode,b.globalCompositeOperation=e.blendModesCanvas[a.currentBlendMode]),b.beginPath();var d=this.tilePosition,f=this.tileScale;b.scale(f.x,f.y),b.translate(d.x,d.y),b.fillStyle=this.__tilePattern,b.fillRect(-d.x,-d.y,this.width/f.x,this.height/f.y),b.scale(1/f.x,1/f.y),b.translate(-d.x,-d.y),b.closePath()}},e.TilingSprite.prototype.getBounds=function(){var a=this._width,b=this._height,c=a*(1-this.anchor.x),d=a*-this.anchor.x,e=b*(1-this.anchor.y),f=b*-this.anchor.y,g=this.worldTransform,h=g[0],i=g[3],j=g[1],k=g[4],l=g[2],m=g[5],n=h*d+j*f+l,o=k*f+i*d+m,p=h*c+j*f+l,q=k*f+i*c+m,r=h*c+j*e+l,s=k*e+i*c+m,t=h*d+j*e+l,u=k*e+i*d+m,v=-1/0,w=-1/0,x=1/0,y=1/0;x=x>n?n:x,x=x>p?p:x,x=x>r?r:x,x=x>t?t:x,y=y>o?o:y,y=y>q?q:y,y=y>s?s:y,y=y>u?u:y,v=n>v?n:v,v=p>v?p:v,v=r>v?r:v,v=t>v?t:v,w=o>w?o:w,w=q>w?q:w,w=s>w?s:w,w=u>w?u:w;var z=this._bounds;return z.x=x,z.width=v-x,z.y=y,z.height=w-y,this._currentBounds=z,z};var j={};j.BoneData=function(a,b){this.name=a,this.parent=b},j.BoneData.prototype={length:0,x:0,y:0,rotation:0,scaleX:1,scaleY:1},j.SlotData=function(a,b){this.name=a,this.boneData=b},j.SlotData.prototype={r:1,g:1,b:1,a:1,attachmentName:null},j.Bone=function(a,b){this.data=a,this.parent=b,this.setToSetupPose()},j.Bone.yDown=!1,j.Bone.prototype={x:0,y:0,rotation:0,scaleX:1,scaleY:1,m00:0,m01:0,worldX:0,m10:0,m11:0,worldY:0,worldRotation:0,worldScaleX:1,worldScaleY:1,updateWorldTransform:function(a,b){var c=this.parent;null!=c?(this.worldX=this.x*c.m00+this.y*c.m01+c.worldX,this.worldY=this.x*c.m10+this.y*c.m11+c.worldY,this.worldScaleX=c.worldScaleX*this.scaleX,this.worldScaleY=c.worldScaleY*this.scaleY,this.worldRotation=c.worldRotation+this.rotation):(this.worldX=this.x,this.worldY=this.y,this.worldScaleX=this.scaleX,this.worldScaleY=this.scaleY,this.worldRotation=this.rotation);var d=this.worldRotation*Math.PI/180,e=Math.cos(d),f=Math.sin(d);this.m00=e*this.worldScaleX,this.m10=f*this.worldScaleX,this.m01=-f*this.worldScaleY,this.m11=e*this.worldScaleY,a&&(this.m00=-this.m00,this.m01=-this.m01),b&&(this.m10=-this.m10,this.m11=-this.m11),j.Bone.yDown&&(this.m10=-this.m10,this.m11=-this.m11)},setToSetupPose:function(){var a=this.data;this.x=a.x,this.y=a.y,this.rotation=a.rotation,this.scaleX=a.scaleX,this.scaleY=a.scaleY}},j.Slot=function(a,b,c){this.data=a,this.skeleton=b,this.bone=c,this.setToSetupPose()},j.Slot.prototype={r:1,g:1,b:1,a:1,_attachmentTime:0,attachment:null,setAttachment:function(a){this.attachment=a,this._attachmentTime=this.skeleton.time},setAttachmentTime:function(a){this._attachmentTime=this.skeleton.time-a},getAttachmentTime:function(){return this.skeleton.time-this._attachmentTime},setToSetupPose:function(){var a=this.data;this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a;for(var b=this.skeleton.data.slots,c=0,d=b.length;d>c;c++)if(b[c]==a){this.setAttachment(a.attachmentName?this.skeleton.getAttachmentBySlotIndex(c,a.attachmentName):null);break}}},j.Skin=function(a){this.name=a,this.attachments={}},j.Skin.prototype={addAttachment:function(a,b,c){this.attachments[a+":"+b]=c},getAttachment:function(a,b){return this.attachments[a+":"+b]},_attachAll:function(a,b){for(var c in b.attachments){var d=c.indexOf(":"),e=parseInt(c.substring(0,d),10),f=c.substring(d+1),g=a.slots[e];if(g.attachment&&g.attachment.name==f){var h=this.getAttachment(e,f);h&&g.setAttachment(h)}}}},j.Animation=function(a,b,c){this.name=a,this.timelines=b,this.duration=c},j.Animation.prototype={apply:function(a,b,c){c&&this.duration&&(b%=this.duration);for(var d=this.timelines,e=0,f=d.length;f>e;e++)d[e].apply(a,b,1)},mix:function(a,b,c,d){c&&this.duration&&(b%=this.duration);for(var e=this.timelines,f=0,g=e.length;g>f;f++)e[f].apply(a,b,d)}},j.binarySearch=function(a,b,c){var d=0,e=Math.floor(a.length/c)-2;if(!e)return c;for(var f=e>>>1;;){if(a[(f+1)*c]<=b?d=f+1:e=f,d==e)return(d+1)*c;f=d+e>>>1}},j.linearSearch=function(a,b,c){for(var d=0,e=a.length-c;e>=d;d+=c)if(a[d]>b)return d;return-1},j.Curves=function(a){this.curves=[],this.curves.length=6*(a-1)},j.Curves.prototype={setLinear:function(a){this.curves[6*a]=0},setStepped:function(a){this.curves[6*a]=-1},setCurve:function(a,b,c,d,e){var f=.1,g=f*f,h=g*f,i=3*f,j=3*g,k=6*g,l=6*h,m=2*-b+d,n=2*-c+e,o=3*(b-d)+1,p=3*(c-e)+1,q=6*a,r=this.curves;r[q]=b*i+m*j+o*h,r[q+1]=c*i+n*j+p*h,r[q+2]=m*k+o*l,r[q+3]=n*k+p*l,r[q+4]=o*l,r[q+5]=p*l},getCurvePercent:function(a,b){b=0>b?0:b>1?1:b;var c=6*a,d=this.curves,e=d[c];if(!e)return b;if(-1==e)return 0;for(var f=d[c+1],g=d[c+2],h=d[c+3],i=d[c+4],j=d[c+5],k=e,l=f,m=8;;){if(k>=b){var n=k-e,o=l-f;return o+(l-o)*(b-n)/(k-n)}if(!m)break;m--,e+=g,f+=h,g+=i,h+=j,k+=e,l+=f}return l+(1-l)*(b-k)/(1-k)}},j.RotateTimeline=function(a){this.curves=new j.Curves(a),this.frames=[],this.frames.length=2*a},j.RotateTimeline.prototype={boneIndex:0,getFrameCount:function(){return this.frames.length/2},setFrame:function(a,b,c){a*=2,this.frames[a]=b,this.frames[a+1]=c},apply:function(a,b,c){var d,e=this.frames;if(!(b=e[e.length-2]){for(d=f.data.rotation+e[e.length-1]-f.rotation;d>180;)d-=360;for(;-180>d;)d+=360;return f.rotation+=d*c,void 0}var g=j.binarySearch(e,b,2),h=e[g-1],i=e[g],k=1-(b-i)/(e[g-2]-i);for(k=this.curves.getCurvePercent(g/2-1,k),d=e[g+1]-h;d>180;)d-=360;for(;-180>d;)d+=360;for(d=f.data.rotation+(h+d*k)-f.rotation;d>180;)d-=360;for(;-180>d;)d+=360;f.rotation+=d*c}}},j.TranslateTimeline=function(a){this.curves=new j.Curves(a),this.frames=[],this.frames.length=3*a},j.TranslateTimeline.prototype={boneIndex:0,getFrameCount:function(){return this.frames.length/3},setFrame:function(a,b,c,d){a*=3,this.frames[a]=b,this.frames[a+1]=c,this.frames[a+2]=d},apply:function(a,b,c){var d=this.frames;if(!(b=d[d.length-3])return e.x+=(e.data.x+d[d.length-2]-e.x)*c,e.y+=(e.data.y+d[d.length-1]-e.y)*c,void 0;var f=j.binarySearch(d,b,3),g=d[f-2],h=d[f-1],i=d[f],k=1-(b-i)/(d[f+-3]-i);k=this.curves.getCurvePercent(f/3-1,k),e.x+=(e.data.x+g+(d[f+1]-g)*k-e.x)*c,e.y+=(e.data.y+h+(d[f+2]-h)*k-e.y)*c}}},j.ScaleTimeline=function(a){this.curves=new j.Curves(a),this.frames=[],this.frames.length=3*a},j.ScaleTimeline.prototype={boneIndex:0,getFrameCount:function(){return this.frames.length/3},setFrame:function(a,b,c,d){a*=3,this.frames[a]=b,this.frames[a+1]=c,this.frames[a+2]=d},apply:function(a,b,c){var d=this.frames;if(!(b=d[d.length-3])return e.scaleX+=(e.data.scaleX-1+d[d.length-2]-e.scaleX)*c,e.scaleY+=(e.data.scaleY-1+d[d.length-1]-e.scaleY)*c,void 0;var f=j.binarySearch(d,b,3),g=d[f-2],h=d[f-1],i=d[f],k=1-(b-i)/(d[f+-3]-i);k=this.curves.getCurvePercent(f/3-1,k),e.scaleX+=(e.data.scaleX-1+g+(d[f+1]-g)*k-e.scaleX)*c,e.scaleY+=(e.data.scaleY-1+h+(d[f+2]-h)*k-e.scaleY)*c}}},j.ColorTimeline=function(a){this.curves=new j.Curves(a),this.frames=[],this.frames.length=5*a},j.ColorTimeline.prototype={slotIndex:0,getFrameCount:function(){return this.frames.length/2},setFrame:function(c,d){c*=5,this.frames[c]=d,this.frames[c+1]=r,this.frames[c+2]=g,this.frames[c+3]=b,this.frames[c+4]=a},apply:function(a,b,c){var d=this.frames;if(!(b=d[d.length-5]){var f=d.length-1;return e.r=d[f-3],e.g=d[f-2],e.b=d[f-1],e.a=d[f],void 0}var g=j.binarySearch(d,b,5),h=d[g-4],i=d[g-3],k=d[g-2],l=d[g-1],m=d[g],n=1-(b-m)/(d[g-5]-m);n=this.curves.getCurvePercent(g/5-1,n);var o=h+(d[g+1]-h)*n,p=i+(d[g+2]-i)*n,q=k+(d[g+3]-k)*n,r=l+(d[g+4]-l)*n;1>c?(e.r+=(o-e.r)*c,e.g+=(p-e.g)*c,e.b+=(q-e.b)*c,e.a+=(r-e.a)*c):(e.r=o,e.g=p,e.b=q,e.a=r)}}},j.AttachmentTimeline=function(a){this.curves=new j.Curves(a),this.frames=[],this.frames.length=a,this.attachmentNames=[],this.attachmentNames.length=a},j.AttachmentTimeline.prototype={slotIndex:0,getFrameCount:function(){return this.frames.length},setFrame:function(a,b,c){this.frames[a]=b,this.attachmentNames[a]=c},apply:function(a,b){var c=this.frames;if(!(b=c[c.length-1]?c.length-1:j.binarySearch(c,b,1)-1;var e=this.attachmentNames[d];a.slots[this.slotIndex].setAttachment(e?a.getAttachmentBySlotIndex(this.slotIndex,e):null)}}},j.SkeletonData=function(){this.bones=[],this.slots=[],this.skins=[],this.animations=[]},j.SkeletonData.prototype={defaultSkin:null,findBone:function(a){for(var b=this.bones,c=0,d=b.length;d>c;c++)if(b[c].name==a)return b[c];return null},findBoneIndex:function(a){for(var b=this.bones,c=0,d=b.length;d>c;c++)if(b[c].name==a)return c;return-1},findSlot:function(a){for(var b=this.slots,c=0,d=b.length;d>c;c++)if(b[c].name==a)return slot[c];return null},findSlotIndex:function(a){for(var b=this.slots,c=0,d=b.length;d>c;c++)if(b[c].name==a)return c;return-1},findSkin:function(a){for(var b=this.skins,c=0,d=b.length;d>c;c++)if(b[c].name==a)return b[c];return null},findAnimation:function(a){for(var b=this.animations,c=0,d=b.length;d>c;c++)if(b[c].name==a)return b[c];return null}},j.Skeleton=function(a){this.data=a,this.bones=[];for(var b=0,c=a.bones.length;c>b;b++){var d=a.bones[b],e=d.parent?this.bones[a.bones.indexOf(d.parent)]:null;this.bones.push(new j.Bone(d,e))}for(this.slots=[],this.drawOrder=[],b=0,c=a.slots.length;c>b;b++){var f=a.slots[b],g=this.bones[a.bones.indexOf(f.boneData)],h=new j.Slot(f,this,g);this.slots.push(h),this.drawOrder.push(h)}},j.Skeleton.prototype={x:0,y:0,skin:null,r:1,g:1,b:1,a:1,time:0,flipX:!1,flipY:!1,updateWorldTransform:function(){for(var a=this.flipX,b=this.flipY,c=this.bones,d=0,e=c.length;e>d;d++)c[d].updateWorldTransform(a,b)},setToSetupPose:function(){this.setBonesToSetupPose(),this.setSlotsToSetupPose()},setBonesToSetupPose:function(){for(var a=this.bones,b=0,c=a.length;c>b;b++)a[b].setToSetupPose()},setSlotsToSetupPose:function(){for(var a=this.slots,b=0,c=a.length;c>b;b++)a[b].setToSetupPose(b)},getRootBone:function(){return this.bones.length?this.bones[0]:null},findBone:function(a){for(var b=this.bones,c=0,d=b.length;d>c;c++)if(b[c].data.name==a)return b[c];return null},findBoneIndex:function(a){for(var b=this.bones,c=0,d=b.length;d>c;c++)if(b[c].data.name==a)return c;return-1},findSlot:function(a){for(var b=this.slots,c=0,d=b.length;d>c;c++)if(b[c].data.name==a)return b[c];return null},findSlotIndex:function(a){for(var b=this.slots,c=0,d=b.length;d>c;c++)if(b[c].data.name==a)return c;return-1},setSkinByName:function(a){var b=this.data.findSkin(a);if(!b)throw"Skin not found: "+a;this.setSkin(b)},setSkin:function(a){this.skin&&a&&a._attachAll(this,this.skin),this.skin=a},getAttachmentBySlotName:function(a,b){return this.getAttachmentBySlotIndex(this.data.findSlotIndex(a),b)},getAttachmentBySlotIndex:function(a,b){if(this.skin){var c=this.skin.getAttachment(a,b);if(c)return c}return this.data.defaultSkin?this.data.defaultSkin.getAttachment(a,b):null},setAttachment:function(a,b){for(var c=this.slots,d=0,e=c.size;e>d;d++){var f=c[d];if(f.data.name==a){var g=null;if(b&&(g=this.getAttachment(d,b),null==g))throw"Attachment not found: "+b+", for slot: "+a;return f.setAttachment(g),void 0}}throw"Slot not found: "+a},update:function(a){time+=a}},j.AttachmentType={region:0},j.RegionAttachment=function(){this.offset=[],this.offset.length=8,this.uvs=[],this.uvs.length=8},j.RegionAttachment.prototype={x:0,y:0,rotation:0,scaleX:1,scaleY:1,width:0,height:0,rendererObject:null,regionOffsetX:0,regionOffsetY:0,regionWidth:0,regionHeight:0,regionOriginalWidth:0,regionOriginalHeight:0,setUVs:function(a,b,c,d,e){var f=this.uvs;e?(f[2]=a,f[3]=d,f[4]=a,f[5]=b,f[6]=c,f[7]=b,f[0]=c,f[1]=d):(f[0]=a,f[1]=d,f[2]=a,f[3]=b,f[4]=c,f[5]=b,f[6]=c,f[7]=d)},updateOffset:function(){var a=this.width/this.regionOriginalWidth*this.scaleX,b=this.height/this.regionOriginalHeight*this.scaleY,c=-this.width/2*this.scaleX+this.regionOffsetX*a,d=-this.height/2*this.scaleY+this.regionOffsetY*b,e=c+this.regionWidth*a,f=d+this.regionHeight*b,g=this.rotation*Math.PI/180,h=Math.cos(g),i=Math.sin(g),j=c*h+this.x,k=c*i,l=d*h+this.y,m=d*i,n=e*h+this.x,o=e*i,p=f*h+this.y,q=f*i,r=this.offset;r[0]=j-m,r[1]=l+k,r[2]=j-q,r[3]=p+k,r[4]=n-q,r[5]=p+o,r[6]=n-m,r[7]=l+o},computeVertices:function(a,b,c,d){a+=c.worldX,b+=c.worldY;var e=c.m00,f=c.m01,g=c.m10,h=c.m11,i=this.offset;d[0]=i[0]*e+i[1]*f+a,d[1]=i[0]*g+i[1]*h+b,d[2]=i[2]*e+i[3]*f+a,d[3]=i[2]*g+i[3]*h+b,d[4]=i[4]*e+i[5]*f+a,d[5]=i[4]*g+i[5]*h+b,d[6]=i[6]*e+i[7]*f+a,d[7]=i[6]*g+i[7]*h+b}},j.AnimationStateData=function(a){this.skeletonData=a,this.animationToMixTime={}},j.AnimationStateData.prototype={defaultMix:0,setMixByName:function(a,b,c){var d=this.skeletonData.findAnimation(a);if(!d)throw"Animation not found: "+a;var e=this.skeletonData.findAnimation(b);if(!e)throw"Animation not found: "+b;this.setMix(d,e,c)},setMix:function(a,b,c){this.animationToMixTime[a.name+":"+b.name]=c},getMix:function(a,b){var c=this.animationToMixTime[a.name+":"+b.name];return c?c:this.defaultMix}},j.AnimationState=function(a){this.data=a,this.queue=[]},j.AnimationState.prototype={current:null,previous:null,currentTime:0,previousTime:0,currentLoop:!1,previousLoop:!1,mixTime:0,mixDuration:0,update:function(a){if(this.currentTime+=a,this.previousTime+=a,this.mixTime+=a,this.queue.length>0){var b=this.queue[0];this.currentTime>=b.delay&&(this._setAnimation(b.animation,b.loop),this.queue.shift())}},apply:function(a){if(this.current)if(this.previous){this.previous.apply(a,this.previousTime,this.previousLoop);var b=this.mixTime/this.mixDuration;b>=1&&(b=1,this.previous=null),this.current.mix(a,this.currentTime,this.currentLoop,b)}else this.current.apply(a,this.currentTime,this.currentLoop)},clearAnimation:function(){this.previous=null,this.current=null,this.queue.length=0},_setAnimation:function(a,b){this.previous=null,a&&this.current&&(this.mixDuration=this.data.getMix(this.current,a),this.mixDuration>0&&(this.mixTime=0,this.previous=this.current,this.previousTime=this.currentTime,this.previousLoop=this.currentLoop)),this.current=a,this.currentLoop=b,this.currentTime=0},setAnimationByName:function(a,b){var c=this.data.skeletonData.findAnimation(a);if(!c)throw"Animation not found: "+a;this.setAnimation(c,b)},setAnimation:function(a,b){this.queue.length=0,this._setAnimation(a,b)},addAnimationByName:function(a,b,c){var d=this.data.skeletonData.findAnimation(a);if(!d)throw"Animation not found: "+a;this.addAnimation(d,b,c)},addAnimation:function(a,b,c){var d={};if(d.animation=a,d.loop=b,!c||0>=c){var e=this.queue.length?this.queue[this.queue.length-1].animation:this.current;c=null!=e?e.duration-this.data.getMix(e,a)+(c||0):0}d.delay=c,this.queue.push(d)},isComplete:function(){return!this.current||this.currentTime>=this.current.duration -}},j.SkeletonJson=function(a){this.attachmentLoader=a},j.SkeletonJson.prototype={scale:1,readSkeletonData:function(a){for(var b,c=new j.SkeletonData,d=a.bones,e=0,f=d.length;f>e;e++){var g=d[e],h=null;if(g.parent&&(h=c.findBone(g.parent),!h))throw"Parent bone not found: "+g.parent;b=new j.BoneData(g.name,h),b.length=(g.length||0)*this.scale,b.x=(g.x||0)*this.scale,b.y=(g.y||0)*this.scale,b.rotation=g.rotation||0,b.scaleX=g.scaleX||1,b.scaleY=g.scaleY||1,c.bones.push(b)}var i=a.slots;for(e=0,f=i.length;f>e;e++){var k=i[e];if(b=c.findBone(k.bone),!b)throw"Slot bone not found: "+k.bone;var l=new j.SlotData(k.name,b),m=k.color;m&&(l.r=j.SkeletonJson.toColor(m,0),l.g=j.SkeletonJson.toColor(m,1),l.b=j.SkeletonJson.toColor(m,2),l.a=j.SkeletonJson.toColor(m,3)),l.attachmentName=k.attachment,c.slots.push(l)}var n=a.skins;for(var o in n)if(n.hasOwnProperty(o)){var p=n[o],q=new j.Skin(o);for(var r in p)if(p.hasOwnProperty(r)){var s=c.findSlotIndex(r),t=p[r];for(var u in t)if(t.hasOwnProperty(u)){var v=this.readAttachment(q,u,t[u]);null!=v&&q.addAttachment(s,u,v)}}c.skins.push(q),"default"==q.name&&(c.defaultSkin=q)}var w=a.animations;for(var x in w)w.hasOwnProperty(x)&&this.readAnimation(x,w[x],c);return c},readAttachment:function(a,b,c){b=c.name||b;var d=j.AttachmentType[c.type||"region"];if(d==j.AttachmentType.region){var e=new j.RegionAttachment;return e.x=(c.x||0)*this.scale,e.y=(c.y||0)*this.scale,e.scaleX=c.scaleX||1,e.scaleY=c.scaleY||1,e.rotation=c.rotation||0,e.width=(c.width||32)*this.scale,e.height=(c.height||32)*this.scale,e.updateOffset(),e.rendererObject={},e.rendererObject.name=b,e.rendererObject.scale={},e.rendererObject.scale.x=e.scaleX,e.rendererObject.scale.y=e.scaleY,e.rendererObject.rotation=-e.rotation*Math.PI/180,e}throw"Unknown attachment type: "+d},readAnimation:function(a,b,c){var d,e,f,g,h,i,k,l=[],m=0,n=b.bones;for(var o in n)if(n.hasOwnProperty(o)){var p=c.findBoneIndex(o);if(-1==p)throw"Bone not found: "+o;var q=n[o];for(f in q)if(q.hasOwnProperty(f))if(h=q[f],"rotate"==f){for(e=new j.RotateTimeline(h.length),e.boneIndex=p,d=0,i=0,k=h.length;k>i;i++)g=h[i],e.setFrame(d,g.time,g.angle),j.SkeletonJson.readCurve(e,d,g),d++;l.push(e),m=Math.max(m,e.frames[2*e.getFrameCount()-2])}else{if("translate"!=f&&"scale"!=f)throw"Invalid timeline type for a bone: "+f+" ("+o+")";var r=1;for("scale"==f?e=new j.ScaleTimeline(h.length):(e=new j.TranslateTimeline(h.length),r=this.scale),e.boneIndex=p,d=0,i=0,k=h.length;k>i;i++){g=h[i];var s=(g.x||0)*r,t=(g.y||0)*r;e.setFrame(d,g.time,s,t),j.SkeletonJson.readCurve(e,d,g),d++}l.push(e),m=Math.max(m,e.frames[3*e.getFrameCount()-3])}}var u=b.slots;for(var v in u)if(u.hasOwnProperty(v)){var w=u[v],x=c.findSlotIndex(v);for(f in w)if(w.hasOwnProperty(f))if(h=w[f],"color"==f){for(e=new j.ColorTimeline(h.length),e.slotIndex=x,d=0,i=0,k=h.length;k>i;i++){g=h[i];var y=g.color,z=j.SkeletonJson.toColor(y,0),A=j.SkeletonJson.toColor(y,1),B=j.SkeletonJson.toColor(y,2),C=j.SkeletonJson.toColor(y,3);e.setFrame(d,g.time,z,A,B,C),j.SkeletonJson.readCurve(e,d,g),d++}l.push(e),m=Math.max(m,e.frames[5*e.getFrameCount()-5])}else{if("attachment"!=f)throw"Invalid timeline type for a slot: "+f+" ("+v+")";for(e=new j.AttachmentTimeline(h.length),e.slotIndex=x,d=0,i=0,k=h.length;k>i;i++)g=h[i],e.setFrame(d++,g.time,g.name);l.push(e),m=Math.max(m,e.frames[e.getFrameCount()-1])}}c.animations.push(new j.Animation(a,l,m))}},j.SkeletonJson.readCurve=function(a,b,c){var d=c.curve;d&&("stepped"==d?a.curves.setStepped(b):d instanceof Array&&a.curves.setCurve(b,d[0],d[1],d[2],d[3]))},j.SkeletonJson.toColor=function(a,b){if(8!=a.length)throw"Color hexidecimal length must be 8, recieved: "+a;return parseInt(a.substring(2*b,2),16)/255},j.Atlas=function(a,b){this.textureLoader=b,this.pages=[],this.regions=[];var c=new j.AtlasReader(a),d=[];d.length=4;for(var e=null;;){var f=c.readLine();if(null==f)break;if(f=c.trim(f),f.length)if(e){var g=new j.AtlasRegion;g.name=f,g.page=e,g.rotate="true"==c.readValue(),c.readTuple(d);var h=parseInt(d[0],10),i=parseInt(d[1],10);c.readTuple(d);var k=parseInt(d[0],10),l=parseInt(d[1],10);g.u=h/e.width,g.v=i/e.height,g.rotate?(g.u2=(h+l)/e.width,g.v2=(i+k)/e.height):(g.u2=(h+k)/e.width,g.v2=(i+l)/e.height),g.x=h,g.y=i,g.width=Math.abs(k),g.height=Math.abs(l),4==c.readTuple(d)&&(g.splits=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10),parseInt(d[3],10)],4==c.readTuple(d)&&(g.pads=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10),parseInt(d[3],10)],c.readTuple(d))),g.originalWidth=parseInt(d[0],10),g.originalHeight=parseInt(d[1],10),c.readTuple(d),g.offsetX=parseInt(d[0],10),g.offsetY=parseInt(d[1],10),g.index=parseInt(c.readValue(),10),this.regions.push(g)}else{e=new j.AtlasPage,e.name=f,e.format=j.Atlas.Format[c.readValue()],c.readTuple(d),e.minFilter=j.Atlas.TextureFilter[d[0]],e.magFilter=j.Atlas.TextureFilter[d[1]];var m=c.readValue();e.uWrap=j.Atlas.TextureWrap.clampToEdge,e.vWrap=j.Atlas.TextureWrap.clampToEdge,"x"==m?e.uWrap=j.Atlas.TextureWrap.repeat:"y"==m?e.vWrap=j.Atlas.TextureWrap.repeat:"xy"==m&&(e.uWrap=e.vWrap=j.Atlas.TextureWrap.repeat),b.load(e,f),this.pages.push(e)}else e=null}},j.Atlas.prototype={findRegion:function(a){for(var b=this.regions,c=0,d=b.length;d>c;c++)if(b[c].name==a)return b[c];return null},dispose:function(){for(var a=this.pages,b=0,c=a.length;c>b;b++)this.textureLoader.unload(a[b].rendererObject)},updateUVs:function(a){for(var b=this.regions,c=0,d=b.length;d>c;c++){var e=b[c];e.page==a&&(e.u=e.x/a.width,e.v=e.y/a.height,e.rotate?(e.u2=(e.x+e.height)/a.width,e.v2=(e.y+e.width)/a.height):(e.u2=(e.x+e.width)/a.width,e.v2=(e.y+e.height)/a.height))}}},j.Atlas.Format={alpha:0,intensity:1,luminanceAlpha:2,rgb565:3,rgba4444:4,rgb888:5,rgba8888:6},j.Atlas.TextureFilter={nearest:0,linear:1,mipMap:2,mipMapNearestNearest:3,mipMapLinearNearest:4,mipMapNearestLinear:5,mipMapLinearLinear:6},j.Atlas.TextureWrap={mirroredRepeat:0,clampToEdge:1,repeat:2},j.AtlasPage=function(){},j.AtlasPage.prototype={name:null,format:null,minFilter:null,magFilter:null,uWrap:null,vWrap:null,rendererObject:null,width:0,height:0},j.AtlasRegion=function(){},j.AtlasRegion.prototype={page:null,name:null,x:0,y:0,width:0,height:0,u:0,v:0,u2:0,v2:0,offsetX:0,offsetY:0,originalWidth:0,originalHeight:0,index:0,rotate:!1,splits:null,pads:null},j.AtlasReader=function(a){this.lines=a.split(/\r\n|\r|\n/)},j.AtlasReader.prototype={index:0,trim:function(a){return a.replace(/^\s+|\s+$/g,"")},readLine:function(){return this.index>=this.lines.length?null:this.lines[this.index++]},readValue:function(){var a=this.readLine(),b=a.indexOf(":");if(-1==b)throw"Invalid line: "+a;return this.trim(a.substring(b+1))},readTuple:function(a){var b=this.readLine(),c=b.indexOf(":");if(-1==c)throw"Invalid line: "+b;for(var d=0,e=c+1;3>d;d++){var f=b.indexOf(",",e);if(-1==f){if(!d)throw"Invalid line: "+b;break}a[d]=this.trim(b.substr(e,f-e)),e=f+1}return a[d]=this.trim(b.substring(e)),d+1}},j.AtlasAttachmentLoader=function(a){this.atlas=a},j.AtlasAttachmentLoader.prototype={newAttachment:function(a,b,c){switch(b){case j.AttachmentType.region:var d=this.atlas.findRegion(c);if(!d)throw"Region not found in atlas: "+c+" ("+b+")";var e=new j.RegionAttachment(c);return e.rendererObject=d,e.setUVs(d.u,d.v,d.u2,d.v2,d.rotate),e.regionOffsetX=d.offsetX,e.regionOffsetY=d.offsetY,e.regionWidth=d.width,e.regionHeight=d.height,e.regionOriginalWidth=d.originalWidth,e.regionOriginalHeight=d.originalHeight,e}throw"Unknown attachment type: "+b}},j.Bone.yDown=!0,e.AnimCache={},e.Spine=function(a){if(e.DisplayObjectContainer.call(this),this.spineData=e.AnimCache[a],!this.spineData)throw new Error("Spine data must be preloaded using PIXI.SpineLoader or PIXI.AssetLoader: "+a);this.skeleton=new j.Skeleton(this.spineData),this.skeleton.updateWorldTransform(),this.stateData=new j.AnimationStateData(this.spineData),this.state=new j.AnimationState(this.stateData),this.slotContainers=[];for(var b=0,c=this.skeleton.drawOrder.length;c>b;b++){var d=this.skeleton.drawOrder[b],f=d.attachment,g=new e.DisplayObjectContainer;if(this.slotContainers.push(g),this.addChild(g),f instanceof j.RegionAttachment){var h=f.rendererObject.name,i=this.createSprite(d,f.rendererObject);d.currentSprite=i,d.currentSpriteName=h,g.addChild(i)}}},e.Spine.prototype=Object.create(e.DisplayObjectContainer.prototype),e.Spine.prototype.constructor=e.Spine,e.Spine.prototype.updateTransform=function(){this.lastTime=this.lastTime||Date.now();var a=.001*(Date.now()-this.lastTime);this.lastTime=Date.now(),this.state.update(a),this.state.apply(this.skeleton),this.skeleton.updateWorldTransform();for(var b=this.skeleton.drawOrder,c=0,d=b.length;d>c;c++){var f=b[c],g=f.attachment,h=this.slotContainers[c];if(g instanceof j.RegionAttachment){if(g.rendererObject&&(!f.currentSpriteName||f.currentSpriteName!=g.name)){var i=g.rendererObject.name;if(void 0!==f.currentSprite&&(f.currentSprite.visible=!1),f.sprites=f.sprites||{},void 0!==f.sprites[i])f.sprites[i].visible=!0;else{var k=this.createSprite(f,g.rendererObject);h.addChild(k)}f.currentSprite=f.sprites[i],f.currentSpriteName=i}h.visible=!0;var l=f.bone;h.position.x=l.worldX+g.x*l.m00+g.y*l.m01,h.position.y=l.worldY+g.x*l.m10+g.y*l.m11,h.scale.x=l.worldScaleX,h.scale.y=l.worldScaleY,h.rotation=-(f.bone.worldRotation*Math.PI/180)}else h.visible=!1}e.DisplayObjectContainer.prototype.updateTransform.call(this)},e.Spine.prototype.createSprite=function(a,b){var c=e.TextureCache[b.name]?b.name:b.name+".png",d=new e.Sprite(e.Texture.fromFrame(c));return d.scale=b.scale,d.rotation=b.rotation,d.anchor.x=d.anchor.y=.5,a.sprites=a.sprites||{},a.sprites[b.name]=d,d},e.BaseTextureCache={},e.texturesToUpdate=[],e.texturesToDestroy=[],e.BaseTexture=function(a,b){if(e.EventTarget.call(this),this.width=100,this.height=100,this.scaleMode=b||e.BaseTexture.SCALE_MODE.DEFAULT,this.hasLoaded=!1,this.source=a,a){if(this.source instanceof Image||this.source instanceof HTMLImageElement)if(this.source.complete)this.hasLoaded=!0,this.width=this.source.width,this.height=this.source.height,e.texturesToUpdate.push(this);else{var c=this;this.source.onload=function(){c.hasLoaded=!0,c.width=c.source.width,c.height=c.source.height,e.texturesToUpdate.push(c),c.dispatchEvent({type:"loaded",content:c})}}else this.hasLoaded=!0,this.width=this.source.width,this.height=this.source.height,e.texturesToUpdate.push(this);this.imageUrl=null,this._powerOf2=!1,this._glTextures=[]}},e.BaseTexture.prototype.constructor=e.BaseTexture,e.BaseTexture.prototype.destroy=function(){this.source instanceof Image&&(this.imageUrl in e.BaseTextureCache&&delete e.BaseTextureCache[this.imageUrl],this.imageUrl=null,this.source.src=null),this.source=null,e.texturesToDestroy.push(this)},e.BaseTexture.prototype.updateSourceImage=function(a){this.hasLoaded=!1,this.source.src=null,this.source.src=a},e.BaseTexture.fromImage=function(a,b,c){var d=e.BaseTextureCache[a];if(!d){var f=new Image;b&&(f.crossOrigin=""),f.src=a,d=new e.BaseTexture(f,c),d.imageUrl=a,e.BaseTextureCache[a]=d}return d},e.BaseTexture.SCALE_MODE={DEFAULT:0,LINEAR:0,NEAREST:1},e.TextureCache={},e.FrameCache={},e.Texture=function(a,b){if(e.EventTarget.call(this),b||(this.noFrame=!0,b=new e.Rectangle(0,0,1,1)),a instanceof e.Texture&&(a=a.baseTexture),this.baseTexture=a,this.frame=b,this.trim=new e.Point,this.scope=this,a.hasLoaded)this.noFrame&&(b=new e.Rectangle(0,0,a.width,a.height)),this.setFrame(b);else{var c=this;a.addEventListener("loaded",function(){c.onBaseTextureLoaded()})}},e.Texture.prototype.constructor=e.Texture,e.Texture.prototype.onBaseTextureLoaded=function(){var a=this.baseTexture;a.removeEventListener("loaded",this.onLoaded),this.noFrame&&(this.frame=new e.Rectangle(0,0,a.width,a.height)),this.setFrame(this.frame),this.scope.dispatchEvent({type:"update",content:this})},e.Texture.prototype.destroy=function(a){a&&this.baseTexture.destroy()},e.Texture.prototype.setFrame=function(a){if(this.frame=a,this.width=a.width,this.height=a.height,a.x+a.width>this.baseTexture.width||a.y+a.height>this.baseTexture.height)throw new Error("Texture Error: frame does not fit inside the base Texture dimensions "+this);this.updateFrame=!0,e.Texture.frameUpdates.push(this)},e.Texture.prototype._updateWebGLuvs=function(){this._uvs||(this._uvs=new Float32Array(8));var a=this.frame,b=this.baseTexture.width,c=this.baseTexture.height;this._uvs[0]=a.x/b,this._uvs[1]=a.y/c,this._uvs[2]=(a.x+a.width)/b,this._uvs[3]=a.y/c,this._uvs[4]=(a.x+a.width)/b,this._uvs[5]=(a.y+a.height)/c,this._uvs[6]=a.x/b,this._uvs[7]=(a.y+a.height)/c},e.Texture.fromImage=function(a,b,c){var d=e.TextureCache[a];return d||(d=new e.Texture(e.BaseTexture.fromImage(a,b,c)),e.TextureCache[a]=d),d},e.Texture.fromFrame=function(a){var b=e.TextureCache[a];if(!b)throw new Error('The frameId "'+a+'" does not exist in the texture cache '+this);return b},e.Texture.fromCanvas=function(a,b){var c=new e.BaseTexture(a,b);return new e.Texture(c)},e.Texture.addTextureToCache=function(a,b){e.TextureCache[b]=a},e.Texture.removeTextureFromCache=function(a){var b=e.TextureCache[a];return e.TextureCache[a]=null,b},e.Texture.frameUpdates=[],e.Texture.SCALE_MODE=e.BaseTexture.SCALE_MODE,e.RenderTexture=function(a,b,c){if(e.EventTarget.call(this),this.width=a||100,this.height=b||100,this.indetityMatrix=e.mat3.create(),this.frame=new e.Rectangle(0,0,this.width,this.height),this.baseTexture=new e.BaseTexture,this.baseTexture.width=this.width,this.baseTexture.height=this.height,this.baseTexture._glTextures=[],this.baseTexture.hasLoaded=!0,this.renderer=c||e.defaultRenderer,this.renderer.type===e.WEBGL_RENDERER){var d=this.renderer.gl;this.textureBuffer=new e.FilterTexture(d,this.width,this.height),this.baseTexture._glTextures[d.id]=this.textureBuffer.texture,this.render=this.renderWebGL,this.projection=new e.Point(this.width/2,-this.height/2)}else this.render=this.renderCanvas,this.textureBuffer=new e.CanvasBuffer(this.width,this.height),this.baseTexture.source=this.textureBuffer.canvas;e.Texture.frameUpdates.push(this)},e.RenderTexture.prototype=Object.create(e.Texture.prototype),e.RenderTexture.prototype.constructor=e.RenderTexture,e.RenderTexture.prototype.resize=function(a,b){if(this.width=a,this.height=b,this.frame.width=this.width,this.frame.height=this.height,this.renderer.type===e.WEBGL_RENDERER){this.projection.x=this.width/2,this.projection.y=-this.height/2;var c=this.gl;c.bindTexture(c.TEXTURE_2D,this.baseTexture._glTextures[c.id]),c.texImage2D(c.TEXTURE_2D,0,c.RGBA,this.width,this.height,0,c.RGBA,c.UNSIGNED_BYTE,null)}else this.textureBuffer.resize(this.width,this.height);e.Texture.frameUpdates.push(this)},e.RenderTexture.prototype.renderWebGL=function(a,b,c){var d=this.renderer.gl;d.colorMask(!0,!0,!0,!0),d.viewport(0,0,this.width,this.height),d.bindFramebuffer(d.FRAMEBUFFER,this.textureBuffer.frameBuffer),c&&this.textureBuffer.clear();var f=a.children,g=a.worldTransform;a.worldTransform=e.mat3.create(),a.worldTransform[4]=-1,a.worldTransform[5]=-2*this.projection.y,b&&(a.worldTransform[2]=b.x,a.worldTransform[5]-=b.y),e.visibleCount++,a.vcount=e.visibleCount;for(var h=0,i=f.length;i>h;h++)f[h].updateTransform();this.renderer.renderDisplayObject(a,this.projection),a.worldTransform=g},e.RenderTexture.prototype.renderCanvas=function(a,b,c){var d=a.children;a.worldTransform=e.mat3.create(),b&&(a.worldTransform[2]=b.x,a.worldTransform[5]=b.y);for(var f=0,g=d.length;g>f;f++)d[f].updateTransform();c&&this.textureBuffer.clear();var h=this.textureBuffer.context;this.renderer.renderDisplayObject(a,h),h.setTransform(1,0,0,1,0,0)},e.AssetLoader=function(a,b){e.EventTarget.call(this),this.assetURLs=a,this.crossorigin=b,this.loadersByType={jpg:e.ImageLoader,jpeg:e.ImageLoader,png:e.ImageLoader,gif:e.ImageLoader,json:e.JsonLoader,atlas:e.AtlasLoader,anim:e.SpineLoader,xml:e.BitmapFontLoader,fnt:e.BitmapFontLoader}},e.AssetLoader.prototype.constructor=e.AssetLoader,e.AssetLoader.prototype._getDataType=function(a){var b="data:",c=a.slice(0,b.length).toLowerCase();if(c===b){var d=a.slice(b.length),e=d.indexOf(",");if(-1===e)return null;var f=d.slice(0,e).split(";")[0];return f&&"text/plain"!==f.toLowerCase()?f.split("/").pop().toLowerCase():"txt"}return null},e.AssetLoader.prototype.load=function(){function a(){b.onAssetLoaded()}var b=this;this.loadCount=this.assetURLs.length;for(var c=0;c0){if(f===g)this.atlas.meta.image.push(a[g]),c=this.atlas.meta.image.length-1,this.atlas.frames.push({}),b=-3;else if(b>0)if(b%7===1)null!=d&&(this.atlas.frames[c][d.name]=d),d={name:a[g],frame:{}};else{var j=a[g].split(" ");if(b%7===3)d.frame.x=Number(j[1].replace(",","")),d.frame.y=Number(j[2]);else if(b%7===4)d.frame.w=Number(j[1].replace(",","")),d.frame.h=Number(j[2]);else if(b%7===5){var k={x:0,y:0,w:Number(j[1].replace(",","")),h:Number(j[2])};k.w>d.frame.w||k.h>d.frame.h?(d.trimmed=!0,d.realSize=k):d.trimmed=!1}}b++}if(null!=d&&(this.atlas.frames[c][d.name]=d),this.atlas.meta.image.length>0){for(this.images=[],h=0;hthis.currentImageId?(this.currentImageId++,this.images[this.currentImageId].load()):(this.loaded=!0,this.dispatchEvent({type:"loaded",content:this}))},e.AtlasLoader.prototype.onError=function(){this.dispatchEvent({type:"error",content:this})},e.SpriteSheetLoader=function(a,b){e.EventTarget.call(this),this.url=a,this.crossorigin=b,this.baseUrl=a.replace(/[^\/]*$/,""),this.texture=null,this.frames={}},e.SpriteSheetLoader.prototype.constructor=e.SpriteSheetLoader,e.SpriteSheetLoader.prototype.load=function(){var a=this,b=new e.JsonLoader(this.url,this.crossorigin);b.addEventListener("loaded",function(b){a.json=b.content.json,a.onJSONLoaded()}),b.load()},e.SpriteSheetLoader.prototype.onJSONLoaded=function(){var a=this,b=this.baseUrl+this.json.meta.image,c=new e.ImageLoader(b,this.crossorigin),d=this.json.frames;this.texture=c.texture.baseTexture,c.addEventListener("loaded",function(){a.onLoaded()});for(var f in d){var g=d[f].frame;g&&(e.TextureCache[f]=new e.Texture(this.texture,{x:g.x,y:g.y,width:g.w,height:g.h}),d[f].trimmed&&(e.TextureCache[f].realSize=d[f].spriteSourceSize,e.TextureCache[f].trim.x=0))}c.load()},e.SpriteSheetLoader.prototype.onLoaded=function(){this.dispatchEvent({type:"loaded",content:this})},e.ImageLoader=function(a,b){e.EventTarget.call(this),this.texture=e.Texture.fromImage(a,b),this.frames=[]},e.ImageLoader.prototype.constructor=e.ImageLoader,e.ImageLoader.prototype.load=function(){if(this.texture.baseTexture.hasLoaded)this.onLoaded();else{var a=this;this.texture.baseTexture.addEventListener("loaded",function(){a.onLoaded()})}},e.ImageLoader.prototype.onLoaded=function(){this.dispatchEvent({type:"loaded",content:this})},e.ImageLoader.prototype.loadFramedSpriteSheet=function(a,b,c){this.frames=[];for(var d=Math.floor(this.texture.width/a),f=Math.floor(this.texture.height/b),g=0,h=0;f>h;h++)for(var i=0;d>i;i++,g++){var j=new e.Texture(this.texture,{x:i*a,y:h*b,width:a,height:b});this.frames.push(j),c&&(e.TextureCache[c+"-"+g]=j)}if(this.texture.baseTexture.hasLoaded)this.onLoaded();else{var k=this;this.texture.baseTexture.addEventListener("loaded",function(){k.onLoaded()})}},e.BitmapFontLoader=function(a,b){e.EventTarget.call(this),this.url=a,this.crossorigin=b,this.baseUrl=a.replace(/[^\/]*$/,""),this.texture=null},e.BitmapFontLoader.prototype.constructor=e.BitmapFontLoader,e.BitmapFontLoader.prototype.load=function(){this.ajaxRequest=new XMLHttpRequest;var a=this;this.ajaxRequest.onreadystatechange=function(){a.onXMLLoaded()},this.ajaxRequest.open("GET",this.url,!0),this.ajaxRequest.overrideMimeType&&this.ajaxRequest.overrideMimeType("application/xml"),this.ajaxRequest.send(null)},e.BitmapFontLoader.prototype.onXMLLoaded=function(){if(4===this.ajaxRequest.readyState&&(200===this.ajaxRequest.status||-1===window.location.protocol.indexOf("http"))){var a=this.baseUrl+this.ajaxRequest.responseXML.getElementsByTagName("page")[0].attributes.getNamedItem("file").nodeValue,b=new e.ImageLoader(a,this.crossorigin);this.texture=b.texture.baseTexture;var c={},d=this.ajaxRequest.responseXML.getElementsByTagName("info")[0],f=this.ajaxRequest.responseXML.getElementsByTagName("common")[0];c.font=d.attributes.getNamedItem("face").nodeValue,c.size=parseInt(d.attributes.getNamedItem("size").nodeValue,10),c.lineHeight=parseInt(f.attributes.getNamedItem("lineHeight").nodeValue,10),c.chars={};for(var g=this.ajaxRequest.responseXML.getElementsByTagName("char"),h=0;h=c&&a<=c+this.width){var d=this.y;if(b>=d&&b<=d+this.height)return!0}return!1},e.Rectangle.prototype.constructor=e.Rectangle,e.Polygon=function(a){if(a instanceof Array||(a=Array.prototype.slice.call(arguments)),"number"==typeof a[0]){for(var b=[],c=0,d=a.length;d>c;c+=2)b.push(new e.Point(a[c],a[c+1]));a=b}this.points=a},e.Polygon.prototype.clone=function(){for(var a=[],b=0;bb!=i>b&&(h-f)*(b-g)/(i-g)+f>a;j&&(c=!c)}return c},e.Polygon.prototype.constructor=e.Polygon,e.Circle=function(a,b,c){this.x=a||0,this.y=b||0,this.radius=c||0},e.Circle.prototype.clone=function(){return new e.Circle(this.x,this.y,this.radius)},e.Circle.prototype.contains=function(a,b){if(this.radius<=0)return!1;var c=this.x-a,d=this.y-b,e=this.radius*this.radius;return c*=c,d*=d,e>=c+d},e.Circle.prototype.constructor=e.Circle,e.Ellipse=function(a,b,c,d){this.x=a||0,this.y=b||0,this.width=c||0,this.height=d||0},e.Ellipse.prototype.clone=function(){return new e.Ellipse(this.x,this.y,this.width,this.height)},e.Ellipse.prototype.contains=function(a,b){if(this.width<=0||this.height<=0)return!1;var c=(a-this.x)/this.width-.5,d=(b-this.y)/this.height-.5;return c*=c,d*=d,.25>c+d},e.Ellipse.prototype.getBounds=function(){return new e.Rectangle(this.x,this.y,this.width,this.height)},e.Ellipse.prototype.constructor=e.Ellipse,c(),e.mat3={},e.mat3.create=function(){var a=new e.Matrix(9);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=1,a[5]=0,a[6]=0,a[7]=0,a[8]=1,a},e.mat3.identity=function(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=1,a[5]=0,a[6]=0,a[7]=0,a[8]=1,a},e.mat4={},e.mat4.create=function(){var a=new e.Matrix(16);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a},e.mat3.multiply=function(a,b,c){c||(c=a);var d=a[0],e=a[1],f=a[2],g=a[3],h=a[4],i=a[5],j=a[6],k=a[7],l=a[8],m=b[0],n=b[1],o=b[2],p=b[3],q=b[4],r=b[5],s=b[6],t=b[7],u=b[8];return c[0]=m*d+n*g+o*j,c[1]=m*e+n*h+o*k,c[2]=m*f+n*i+o*l,c[3]=p*d+q*g+r*j,c[4]=p*e+q*h+r*k,c[5]=p*f+q*i+r*l,c[6]=s*d+t*g+u*j,c[7]=s*e+t*h+u*k,c[8]=s*f+t*i+u*l,c},e.mat3.clone=function(a){var b=new e.Matrix(9);return b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b[4]=a[4],b[5]=a[5],b[6]=a[6],b[7]=a[7],b[8]=a[8],b},e.mat3.transpose=function(a,b){if(!b||a===b){var c=a[1],d=a[2],e=a[5];return a[1]=a[3],a[2]=a[6],a[3]=c,a[5]=a[7],a[6]=d,a[7]=e,a}return b[0]=a[0],b[1]=a[3],b[2]=a[6],b[3]=a[1],b[4]=a[4],b[5]=a[7],b[6]=a[2],b[7]=a[5],b[8]=a[8],b},e.mat3.toMat4=function(a,b){return b||(b=e.mat4.create()),b[15]=1,b[14]=0,b[13]=0,b[12]=0,b[11]=0,b[10]=a[8],b[9]=a[7],b[8]=a[6],b[7]=0,b[6]=a[5],b[5]=a[4],b[4]=a[3],b[3]=0,b[2]=a[2],b[1]=a[1],b[0]=a[0],b},e.mat4.create=function(){var a=new e.Matrix(16);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a},e.mat4.transpose=function(a,b){if(!b||a===b){var c=a[1],d=a[2],e=a[3],f=a[6],g=a[7],h=a[11];return a[1]=a[4],a[2]=a[8],a[3]=a[12],a[4]=c,a[6]=a[9],a[7]=a[13],a[8]=d,a[9]=f,a[11]=a[14],a[12]=e,a[13]=g,a[14]=h,a}return b[0]=a[0],b[1]=a[4],b[2]=a[8],b[3]=a[12],b[4]=a[1],b[5]=a[5],b[6]=a[9],b[7]=a[13],b[8]=a[2],b[9]=a[6],b[10]=a[10],b[11]=a[14],b[12]=a[3],b[13]=a[7],b[14]=a[11],b[15]=a[15],b},e.mat4.multiply=function(a,b,c){c||(c=a);var d=a[0],e=a[1],f=a[2],g=a[3],h=a[4],i=a[5],j=a[6],k=a[7],l=a[8],m=a[9],n=a[10],o=a[11],p=a[12],q=a[13],r=a[14],s=a[15],t=b[0],u=b[1],v=b[2],w=b[3];return c[0]=t*d+u*h+v*l+w*p,c[1]=t*e+u*i+v*m+w*q,c[2]=t*f+u*j+v*n+w*r,c[3]=t*g+u*k+v*o+w*s,t=b[4],u=b[5],v=b[6],w=b[7],c[4]=t*d+u*h+v*l+w*p,c[5]=t*e+u*i+v*m+w*q,c[6]=t*f+u*j+v*n+w*r,c[7]=t*g+u*k+v*o+w*s,t=b[8],u=b[9],v=b[10],w=b[11],c[8]=t*d+u*h+v*l+w*p,c[9]=t*e+u*i+v*m+w*q,c[10]=t*f+u*j+v*n+w*r,c[11]=t*g+u*k+v*o+w*s,t=b[12],u=b[13],v=b[14],w=b[15],c[12]=t*d+u*h+v*l+w*p,c[13]=t*e+u*i+v*m+w*q,c[14]=t*f+u*j+v*n+w*r,c[15]=t*g+u*k+v*o+w*s,c},e.identityMatrix=e.mat3.create(),e.DisplayObject=function(){this.last=this,this.first=this,this.position=new e.Point,this.scale=new e.Point(1,1),this.pivot=new e.Point(0,0),this.rotation=0,this.alpha=1,this.visible=!0,this.hitArea=null,this.buttonMode=!1,this.renderable=!1,this.parent=null,this.stage=null,this.worldAlpha=1,this._interactive=!1,this.defaultCursor="pointer",this.worldTransform=e.mat3.create(),this.localTransform=e.mat3.create(),this.color=[],this.dynamic=!0,this._sr=0,this._cr=1,this.filterArea=new e.Rectangle(0,0,1,1),this._bounds=new e.Rectangle(0,0,1,1),this._currentBounds=null,this._mask=null},e.DisplayObject.prototype.constructor=e.DisplayObject,e.DisplayObject.prototype.setInteractive=function(a){this.interactive=a},Object.defineProperty(e.DisplayObject.prototype,"interactive",{get:function(){return this._interactive},set:function(a){this._interactive=a,this.stage&&(this.stage.dirty=!0)}}),Object.defineProperty(e.DisplayObject.prototype,"worldVisible",{get:function(){var a=this;do{if(!a.visible)return!1;a=a.parent}while(a&&a.parent);return!0}}),Object.defineProperty(e.DisplayObject.prototype,"mask",{get:function(){return this._mask},set:function(a){this._mask&&(this._mask.isMask=!1),this._mask=a,this._mask&&(this._mask.isMask=!0)}}),Object.defineProperty(e.DisplayObject.prototype,"filters",{get:function(){return this._filters},set:function(a){if(a){for(var b=[],c=0;c=0&&b<=this.children.length))throw new Error(a+" The index "+b+" supplied is out of bounds "+this.children.length);a.parent&&a.parent.removeChild(a),a.parent=this,this.children.splice(b,0,a),this.stage&&this.setStageReference(this.stage)},e.DisplayObjectContainer.prototype.swapChildren=function(a,b){if(a!==b){var c=this.children.indexOf(a),d=this.children.indexOf(b);if(0>c||0>d)throw new Error("swapChildren: Both the supplied DisplayObjects must be a child of the caller.");this.children[c]=b,this.children[d]=a}},e.DisplayObjectContainer.prototype.getChildAt=function(a){if(a>=0&&aa;a++)this.children[a].updateTransform()}},e.DisplayObjectContainer.prototype.getBounds=function(){if(0===this.children.length)return e.EmptyRectangle;for(var a,b,c,d=1/0,f=1/0,g=-1/0,h=-1/0,i=0,j=this.children.length;j>i;i++){var k=this.children[i];k.visible&&(a=this.children[i].getBounds(),d=db?g:b,h=h>c?h:c)}var l=this._bounds;return l.x=d,l.y=f,l.width=g-d,l.height=h-f,l},e.DisplayObjectContainer.prototype.setStageReference=function(a){this.stage=a;for(var b=0,c=this.children.length;c>b;b++){var d=this.children[b];d.interactive&&(this.stage.dirty=!0),d.setStageReference(a)}},e.DisplayObjectContainer.prototype.removeStageReference=function(){for(var a=0,b=this.children.length;b>a;a++){var c=this.children[a];c.removeStageReference()}this.stage=null},e.DisplayObjectContainer.prototype._renderWebGL=function(a){if(this.visible!==!1&&0!==this.alpha){var b,c;if(this._mask||this._filters){for(this._mask&&(a.spriteBatch.stop(),a.maskManager.pushMask(this.mask,a),a.spriteBatch.start()),this._filters&&(a.spriteBatch.flush(),a.filterManager.pushFilter(this._filterBlock)),b=0,c=this.children.length;c>b;b++)this.children[b]._renderWebGL(a);a.spriteBatch.stop(),this._filters&&a.filterManager.popFilter(),this._mask&&a.maskManager.popMask(a),a.spriteBatch.start()}else for(b=0,c=this.children.length;c>b;b++)this.children[b]._renderWebGL(a)}},e.DisplayObjectContainer.prototype._renderCanvas=function(a){if(this.visible!==!1&&0!==this.alpha){this._mask&&a.maskManager.pushMask(this._mask,a.context);for(var b=0,c=this.children.length;c>b;b++){var d=this.children[b];d._renderCanvas(a)}this._mask&&a.maskManager.popMask(a.context)}},e.blendModes={},e.blendModes.NORMAL=0,e.blendModes.ADD=1,e.blendModes.MULTIPLY=2,e.blendModes.SCREEN=3,e.Sprite=function(a){e.DisplayObjectContainer.call(this),this.anchor=new e.Point,this.texture=a,this._width=0,this._height=0,this.tint=16777215,this.blendMode=e.blendModes.NORMAL,a.baseTexture.hasLoaded?this.onTextureUpdate():(this.onTextureUpdateBind=this.onTextureUpdate.bind(this),this.texture.addEventListener("update",this.onTextureUpdateBind)),this.renderable=!0},e.Sprite.prototype=Object.create(e.DisplayObjectContainer.prototype),e.Sprite.prototype.constructor=e.Sprite,Object.defineProperty(e.Sprite.prototype,"width",{get:function(){return this.scale.x*this.texture.frame.width},set:function(a){this.scale.x=a/this.texture.frame.width,this._width=a}}),Object.defineProperty(e.Sprite.prototype,"height",{get:function(){return this.scale.y*this.texture.frame.height},set:function(a){this.scale.y=a/this.texture.frame.height,this._height=a}}),e.Sprite.prototype.setTexture=function(a){this.texture.baseTexture!==a.baseTexture?(this.textureChange=!0,this.texture=a):this.texture=a,this.cachedTint=16777215,this.updateFrame=!0},e.Sprite.prototype.onTextureUpdate=function(){this._width&&(this.scale.x=this._width/this.texture.frame.width),this._height&&(this.scale.y=this._height/this.texture.frame.height),this.updateFrame=!0},e.Sprite.prototype.getBounds=function(){var a=this.texture.frame.width,b=this.texture.frame.height,c=a*(1-this.anchor.x),d=a*-this.anchor.x,e=b*(1-this.anchor.y),f=b*-this.anchor.y,g=this.worldTransform,h=g[0],i=g[3],j=g[1],k=g[4],l=g[2],m=g[5],n=h*d+j*f+l,o=k*f+i*d+m,p=h*c+j*f+l,q=k*f+i*c+m,r=h*c+j*e+l,s=k*e+i*c+m,t=h*d+j*e+l,u=k*e+i*d+m,v=-1/0,w=-1/0,x=1/0,y=1/0;x=x>n?n:x,x=x>p?p:x,x=x>r?r:x,x=x>t?t:x,y=y>o?o:y,y=y>q?q:y,y=y>s?s:y,y=y>u?u:y,v=n>v?n:v,v=p>v?p:v,v=r>v?r:v,v=t>v?t:v,w=o>w?o:w,w=q>w?q:w,w=s>w?s:w,w=u>w?u:w;var z=this._bounds;return z.x=x,z.width=v-x,z.y=y,z.height=w-y,this._currentBounds=z,z},e.Sprite.prototype._renderWebGL=function(a){if(this.visible!==!1&&0!==this.alpha){var b,c;if(this._mask||this._filters){var d=a.spriteBatch;for(this._mask&&(d.stop(),a.maskManager.pushMask(this.mask,a),d.start()),this._filters&&(d.flush(),a.filterManager.pushFilter(this._filterBlock)),d.render(this),b=0,c=this.children.length;c>b;b++)this.children[b]._renderWebGL(a);d.stop(),this._filters&&a.filterManager.popFilter(),this._mask&&a.maskManager.popMask(a),d.start()}else for(a.spriteBatch.render(this),b=0,c=this.children.length;c>b;b++)this.children[b]._renderWebGL(a)}},e.Sprite.prototype._renderCanvas=function(a){if(this.visible!==!1&&0!==this.alpha){this._mask&&a.maskManager.pushMask(this._mask,a.context);var b=this.texture.frame,c=a.context,d=this.texture;if(b&&b.width&&b.height&&d.baseTexture.source){c.globalAlpha=this.worldAlpha;var f=this.worldTransform;if(c.setTransform(f[0],f[3],f[1],f[4],f[2],f[5]),this.blendMode!==a.currentBlendMode&&(a.currentBlendMode=this.blendMode,c.globalCompositeOperation=e.blendModesCanvas[a.currentBlendMode]),16777215!==this.tint){if(this.cachedTint!==this.tint){if(!d.baseTexture.hasLoaded)return;this.cachedTint=this.tint,this.tintedTexture=e.CanvasTinter.getTintedTexture(this,this.tint)}c.drawImage(this.tintedTexture,0,0,b.width,b.height,this.anchor.x*-b.width,this.anchor.y*-b.height,b.width,b.height)}else if(d.trimmed){var g=d.trim;c.drawImage(this.texture.baseTexture.source,b.x,b.y,b.width,b.height,g.x-this.anchor.x*g.realWidth,g.y-this.anchor.y*g.realHeight,b.width,b.height)}else c.drawImage(this.texture.baseTexture.source,b.x,b.y,b.width,b.height,this.anchor.x*-b.width,this.anchor.y*-b.height,b.width,b.height)}for(var h=0,i=this.children.length;i>h;h++){var j=this.children[h];j._renderCanvas(a)}this._mask&&a.maskManager.popMask(a.context)}},e.Sprite.fromFrame=function(a){var b=e.TextureCache[a];if(!b)throw new Error('The frameId "'+a+'" does not exist in the texture cache'+this);return new e.Sprite(b)},e.Sprite.fromImage=function(a){var b=e.Texture.fromImage(a);return new e.Sprite(b)},e.MovieClip=function(a){e.Sprite.call(this,a[0]),this.textures=a,this.animationSpeed=1,this.loop=!0,this.onComplete=null,this.currentFrame=0,this.playing=!1},e.MovieClip.prototype=Object.create(e.Sprite.prototype),e.MovieClip.prototype.constructor=e.MovieClip,Object.defineProperty(e.MovieClip.prototype,"totalFrames",{get:function(){return this.textures.length}}),e.MovieClip.prototype.stop=function(){this.playing=!1},e.MovieClip.prototype.play=function(){this.playing=!0},e.MovieClip.prototype.gotoAndStop=function(a){this.playing=!1,this.currentFrame=a;var b=this.currentFrame+.5|0;this.setTexture(this.textures[b%this.textures.length])},e.MovieClip.prototype.gotoAndPlay=function(a){this.currentFrame=a,this.playing=!0},e.MovieClip.prototype.updateTransform=function(){if(e.Sprite.prototype.updateTransform.call(this),this.playing){this.currentFrame+=this.animationSpeed;var a=this.currentFrame+.5|0;this.loop||a=this.textures.length&&(this.gotoAndStop(this.textures.length-1),this.onComplete&&this.onComplete())}},e.FilterBlock=function(){this.visible=!0,this.renderable=!0},e.Text=function(a,b){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),e.Sprite.call(this,e.Texture.fromCanvas(this.canvas)),this.setText(a),this.setStyle(b),this.updateText(),this.dirty=!1},e.Text.prototype=Object.create(e.Sprite.prototype),e.Text.prototype.constructor=e.Text,e.Text.prototype.setStyle=function(a){a=a||{},a.font=a.font||"bold 20pt Arial",a.fill=a.fill||"black",a.align=a.align||"left",a.stroke=a.stroke||"black",a.strokeThickness=a.strokeThickness||0,a.wordWrap=a.wordWrap||!1,a.wordWrapWidth=a.wordWrapWidth||100,this.style=a,this.dirty=!0},e.Text.prototype.setText=function(a){this.text=a.toString()||" ",this.dirty=!0},e.Text.prototype.updateText=function(){this.context.font=this.style.font;var a=this.text;this.style.wordWrap&&(a=this.wordWrap(this.text));for(var b=a.split(/(?:\r\n|\r|\n)/),c=[],d=0,f=0;fe?(g>0&&(b+="\n"),b+=f[g]+" ",e=this.style.wordWrapWidth-h):(e-=i,b+=f[g]+" ")}b+="\n"}return b},e.Text.prototype.destroy=function(a){a&&this.texture.destroy()},e.Text.heightCache={},e.BitmapText=function(a,b){e.DisplayObjectContainer.call(this),this.setText(a),this.setStyle(b),this.updateText(),this.dirty=!1},e.BitmapText.prototype=Object.create(e.DisplayObjectContainer.prototype),e.BitmapText.prototype.constructor=e.BitmapText,e.BitmapText.prototype.setText=function(a){this.text=a||" ",this.dirty=!0},e.BitmapText.prototype.setStyle=function(a){a=a||{},a.align=a.align||"left",this.style=a;var b=a.font.split(" ");this.fontName=b[b.length-1],this.fontSize=b.length>=2?parseInt(b[b.length-2],10):e.BitmapText.fonts[this.fontName].size,this.dirty=!0},e.BitmapText.prototype.updateText=function(){for(var a=e.BitmapText.fonts[this.fontName],b=new e.Point,c=null,d=[],f=0,g=[],h=0,i=this.fontSize/a.size,j=0;j=j;j++){var n=0;"right"===this.style.align?n=f-g[j]:"center"===this.style.align&&(n=(f-g[j])/2),m.push(n)}for(j=0;j0;)this.removeChild(this.getChildAt(0));this.updateText(),this.dirty=!1}e.DisplayObjectContainer.prototype.updateTransform.call(this)},e.BitmapText.fonts={},e.InteractionManager=function(a){this.stage=a,this.mouse=new e.InteractionData,this.touchs={},this.tempPoint=new e.Point,this.mouseoverEnabled=!0,this.pool=[],this.interactiveItems=[],this.interactionDOMElement=null,this.onMouseMove=this.onMouseMove.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.last=0},e.InteractionManager.prototype.constructor=e.InteractionManager,e.InteractionManager.prototype.collectInteractiveSprite=function(a,b){for(var c=a.children,d=c.length,e=d-1;e>=0;e--){var f=c[e];f.interactive?(b.interactiveChildren=!0,this.interactiveItems.push(f),f.children.length>0&&this.collectInteractiveSprite(f,f)):(f.__iParent=null,f.children.length>0&&this.collectInteractiveSprite(f,b))}},e.InteractionManager.prototype.setTarget=function(a){this.target=a,null===this.interactionDOMElement&&this.setTargetDomElement(a.view),document.body.addEventListener("mouseup",this.onMouseUp,!0)},e.InteractionManager.prototype.setTargetDomElement=function(a){null!==this.interactionDOMElement&&(this.interactionDOMElement.style["-ms-content-zooming"]="",this.interactionDOMElement.style["-ms-touch-action"]="",this.interactionDOMElement.removeEventListener("mousemove",this.onMouseMove,!0),this.interactionDOMElement.removeEventListener("mousedown",this.onMouseDown,!0),this.interactionDOMElement.removeEventListener("mouseout",this.onMouseOut,!0),this.interactionDOMElement.removeEventListener("touchstart",this.onTouchStart,!0),this.interactionDOMElement.removeEventListener("touchend",this.onTouchEnd,!0),this.interactionDOMElement.removeEventListener("touchmove",this.onTouchMove,!0)),window.navigator.msPointerEnabled&&(a.style["-ms-content-zooming"]="none",a.style["-ms-touch-action"]="none"),this.interactionDOMElement=a,a.addEventListener("mousemove",this.onMouseMove,!0),a.addEventListener("mousedown",this.onMouseDown,!0),a.addEventListener("mouseout",this.onMouseOut,!0),a.addEventListener("touchstart",this.onTouchStart,!0),a.addEventListener("touchend",this.onTouchEnd,!0),a.addEventListener("touchmove",this.onTouchMove,!0)},e.InteractionManager.prototype.update=function(){if(this.target){var a=Date.now(),b=a-this.last;if(b=30*b/1e3,!(1>b)){this.last=a;var c=0;if(this.dirty){this.dirty=!1;var d=this.interactiveItems.length;for(c=0;d>c;c++)this.interactiveItems[c].interactiveChildren=!1;this.interactiveItems=[],this.stage.interactive&&this.interactiveItems.push(this.stage),this.collectInteractiveSprite(this.stage,this.stage)}var e=this.interactiveItems.length;for(this.interactionDOMElement.style.cursor="inherit",c=0;e>c;c++){var f=this.interactiveItems[c];(f.mouseover||f.mouseout||f.buttonMode)&&(f.__hit=this.hitTest(f,this.mouse),this.mouse.target=f,f.__hit?(f.buttonMode&&(this.interactionDOMElement.style.cursor=f.defaultCursor),f.__isOver||(f.mouseover&&f.mouseover(this.mouse),f.__isOver=!0)):f.__isOver&&(f.mouseout&&f.mouseout(this.mouse),f.__isOver=!1))}}}},e.InteractionManager.prototype.onMouseMove=function(a){this.mouse.originalEvent=a||window.event;var b=this.interactionDOMElement.getBoundingClientRect();this.mouse.global.x=(a.clientX-b.left)*(this.target.width/b.width),this.mouse.global.y=(a.clientY-b.top)*(this.target.height/b.height);for(var c=this.interactiveItems.length,d=0;c>d;d++){var e=this.interactiveItems[d];e.mousemove&&e.mousemove(this.mouse)}},e.InteractionManager.prototype.onMouseDown=function(a){this.mouse.originalEvent=a||window.event;for(var b=this.interactiveItems.length,c=0;b>c;c++){var d=this.interactiveItems[c];if((d.mousedown||d.click)&&(d.__mouseIsDown=!0,d.__hit=this.hitTest(d,this.mouse),d.__hit&&(d.mousedown&&d.mousedown(this.mouse),d.__isDown=!0,!d.interactiveChildren)))break}},e.InteractionManager.prototype.onMouseOut=function(){var a=this.interactiveItems.length;this.interactionDOMElement.style.cursor="inherit";for(var b=0;a>b;b++){var c=this.interactiveItems[b];c.__isOver&&(this.mouse.target=c,c.mouseout&&c.mouseout(this.mouse),c.__isOver=!1)}},e.InteractionManager.prototype.onMouseUp=function(a){this.mouse.originalEvent=a||window.event;for(var b=this.interactiveItems.length,c=!1,d=0;b>d;d++){var e=this.interactiveItems[d];(e.mouseup||e.mouseupoutside||e.click)&&(e.__hit=this.hitTest(e,this.mouse),e.__hit&&!c?(e.mouseup&&e.mouseup(this.mouse),e.__isDown&&e.click&&e.click(this.mouse),e.interactiveChildren||(c=!0)):e.__isDown&&e.mouseupoutside&&e.mouseupoutside(this.mouse),e.__isDown=!1)}},e.InteractionManager.prototype.hitTest=function(a,b){var c=b.global;if(!a.worldVisible)return!1;var d=a instanceof e.Sprite,f=a.worldTransform,g=f[0],h=f[1],i=f[2],j=f[3],k=f[4],l=f[5],m=1/(g*k+h*-j),n=k*m*c.x+-h*m*c.y+(l*h-i*k)*m,o=g*m*c.y+-j*m*c.x+(-l*g+i*j)*m;if(b.target=a,a.hitArea&&a.hitArea.contains)return a.hitArea.contains(n,o)?(b.target=a,!0):!1;if(d){var p,q=a.texture.frame.width,r=a.texture.frame.height,s=-q*a.anchor.x;if(n>s&&s+q>n&&(p=-r*a.anchor.y,o>p&&p+r>o))return b.target=a,!0}for(var t=a.children.length,u=0;t>u;u++){var v=a.children[u],w=this.hitTest(v,b);if(w)return b.target=a,!0}return!1},e.InteractionManager.prototype.onTouchMove=function(a){var b,c=this.interactionDOMElement.getBoundingClientRect(),d=a.changedTouches,e=0;for(e=0;ee;e++){var h=this.interactiveItems[e];h.touchmove&&h.touchmove(b)}},e.InteractionManager.prototype.onTouchStart=function(a){for(var b=this.interactionDOMElement.getBoundingClientRect(),c=a.changedTouches,d=0;di;i++){var j=this.interactiveItems[i];if((j.touchstart||j.tap)&&(j.__hit=this.hitTest(j,g),j.__hit&&(j.touchstart&&j.touchstart(g),j.__isDown=!0,j.__touchData=g,!j.interactiveChildren)))break}}},e.InteractionManager.prototype.onTouchEnd=function(a){for(var b=this.interactionDOMElement.getBoundingClientRect(),c=a.changedTouches,d=0;di;i++){var j=this.interactiveItems[i],k=j.__touchData;j.__hit=this.hitTest(j,f),k===f&&(f.originalEvent=a||window.event,(j.touchend||j.tap)&&(j.__hit&&!g?(j.touchend&&j.touchend(f),j.__isDown&&j.tap&&j.tap(f),j.interactiveChildren||(g=!0)):j.__isDown&&j.touchendoutside&&j.touchendoutside(f),j.__isDown=!1),j.__touchData=null)}this.pool.push(f),this.touchs[e.identifier]=null}},e.InteractionData=function(){this.global=new e.Point,this.local=new e.Point,this.target=null,this.originalEvent=null},e.InteractionData.prototype.getLocalPosition=function(a){var b=a.worldTransform,c=this.global,d=b[0],f=b[1],g=b[2],h=b[3],i=b[4],j=b[5],k=1/(d*i+f*-h);return new e.Point(i*k*c.x+-f*k*c.y+(j*f-g*i)*k,d*k*c.y+-h*k*c.x+(-j*d+g*h)*k)},e.InteractionData.prototype.constructor=e.InteractionData,e.Stage=function(a){e.DisplayObjectContainer.call(this),this.worldTransform=e.mat3.create(),this.interactive=!0,this.interactionManager=new e.InteractionManager(this),this.dirty=!0,this.__childrenAdded=[],this.__childrenRemoved=[],this.stage=this,this.stage.hitArea=new e.Rectangle(0,0,1e5,1e5),this.setBackgroundColor(a),this.worldVisible=!0},e.Stage.prototype=Object.create(e.DisplayObjectContainer.prototype),e.Stage.prototype.constructor=e.Stage,e.Stage.prototype.setInteractionDelegate=function(a){this.interactionManager.setTargetDomElement(a)},e.Stage.prototype.updateTransform=function(){this.worldAlpha=1,this.vcount=e.visibleCount;for(var a=0,b=this.children.length;b>a;a++)this.children[a].updateTransform();this.dirty&&(this.dirty=!1,this.interactionManager.dirty=!0),this.interactive&&this.interactionManager.update()},e.Stage.prototype.setBackgroundColor=function(a){this.backgroundColor=a||0,this.backgroundColorSplit=e.hex2rgb(this.backgroundColor);var b=this.backgroundColor.toString(16);b="000000".substr(0,6-b.length)+b,this.backgroundColorString="#"+b},e.Stage.prototype.getMousePosition=function(){return this.interactionManager.mouse.global};for(var f=0,h=["ms","moz","webkit","o"],i=0;i>16&255)/255,(a>>8&255)/255,(255&a)/255]},e.rgb2hex=function(a){return(255*a[0]<<16)+(255*a[1]<<8)+255*a[2]},"function"!=typeof Function.prototype.bind&&(Function.prototype.bind=function(){var a=Array.prototype.slice;return function(b){function c(){var f=e.concat(a.call(arguments));d.apply(this instanceof c?this:b,f)}var d=this,e=a.call(arguments,1);if("function"!=typeof d)throw new TypeError;return c.prototype=function f(a){return a&&(f.prototype=a),this instanceof f?void 0:new f}(d.prototype),c}}()),e.AjaxRequest=function(){var a=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Microsoft.XMLHTTP"];if(!window.ActiveXObject)return window.XMLHttpRequest?new window.XMLHttpRequest:!1;for(var b=0;b0&&0===(a&a-1))return a;for(var b=1;a>b;)b<<=1;return b},e.EventTarget=function(){var a={};this.addEventListener=this.on=function(b,c){void 0===a[b]&&(a[b]=[]),-1===a[b].indexOf(c)&&a[b].push(c)},this.dispatchEvent=this.emit=function(b){if(a[b.type]&&a[b.type].length)for(var c=0,d=a[b.type].length;d>c;c++)a[b.type][c](b)},this.removeEventListener=this.off=function(b,c){var d=a[b].indexOf(c);-1!==d&&a[b].splice(d,1)},this.removeAllEventListeners=function(b){var c=a[b];c&&(c.length=0)}},e.autoDetectRenderer=function(a,b,c,d,f){a||(a=800),b||(b=600);var g=function(){try{var a=document.createElement("canvas");return!!window.WebGLRenderingContext&&(a.getContext("webgl")||a.getContext("experimental-webgl"))}catch(b){return!1}}();if(g){var h=-1!==navigator.userAgent.toLowerCase().indexOf("trident");g=!h}return g?new e.WebGLRenderer(a,b,c,d,f):new e.CanvasRenderer(a,b,c,d)},e.PolyK={},e.PolyK.Triangulate=function(a){var b=!0,c=a.length>>1;if(3>c)return[]; +for(var d=[],f=[],g=0;c>g;g++)f.push(g);g=0;for(var h=c;h>3;){var i=f[(g+0)%h],j=f[(g+1)%h],k=f[(g+2)%h],l=a[2*i],m=a[2*i+1],n=a[2*j],o=a[2*j+1],p=a[2*k],q=a[2*k+1],r=!1;if(e.PolyK._convex(l,m,n,o,p,q,b)){r=!0;for(var s=0;h>s;s++){var t=f[s];if(t!==i&&t!==j&&t!==k&&e.PolyK._PointInTriangle(a[2*t],a[2*t+1],l,m,n,o,p,q)){r=!1;break}}}if(r)d.push(i,j,k),f.splice((g+1)%h,1),h--,g=0;else if(g++>3*h){if(!b)return window.console.log("PIXI Warning: shape too complex to fill"),[];for(d=[],f=[],g=0;c>g;g++)f.push(g);g=0,h=c,b=!1}}return d.push(f[0],f[1],f[2]),d},e.PolyK._PointInTriangle=function(a,b,c,d,e,f,g,h){var i=g-c,j=h-d,k=e-c,l=f-d,m=a-c,n=b-d,o=i*i+j*j,p=i*k+j*l,q=i*m+j*n,r=k*k+l*l,s=k*m+l*n,t=1/(o*r-p*p),u=(r*q-p*s)*t,v=(o*s-p*q)*t;return u>=0&&v>=0&&1>u+v},e.PolyK._convex=function(a,b,c,d,e,f,g){return(b-d)*(e-c)+(c-a)*(f-d)>=0===g},e.initDefaultShaders=function(){},e.CompileVertexShader=function(a,b){return e._CompileShader(a,b,a.VERTEX_SHADER)},e.CompileFragmentShader=function(a,b){return e._CompileShader(a,b,a.FRAGMENT_SHADER)},e._CompileShader=function(a,b,c){var d=b.join("\n"),e=a.createShader(c);return a.shaderSource(e,d),a.compileShader(e),a.getShaderParameter(e,a.COMPILE_STATUS)?e:(window.console.log(a.getShaderInfoLog(e)),null)},e.compileProgram=function(a,b,c){var d=e.CompileFragmentShader(a,c),f=e.CompileVertexShader(a,b),g=a.createProgram();return a.attachShader(g,f),a.attachShader(g,d),a.linkProgram(g),a.getProgramParameter(g,a.LINK_STATUS)||window.console.log("Could not initialise shaders"),g},e.PixiShader=function(a){this.gl=a,this.program=null,this.fragmentSrc=["precision lowp float;","varying vec2 vTextureCoord;","varying vec4 vColor;","uniform sampler2D uSampler;","void main(void) {"," gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor ;","}"],this.textureCount=0,this.init()},e.PixiShader.prototype.init=function(){var a=this.gl,b=e.compileProgram(a,this.vertexSrc||e.PixiShader.defaultVertexSrc,this.fragmentSrc);a.useProgram(b),this.uSampler=a.getUniformLocation(b,"uSampler"),this.projectionVector=a.getUniformLocation(b,"projectionVector"),this.offsetVector=a.getUniformLocation(b,"offsetVector"),this.dimensions=a.getUniformLocation(b,"dimensions"),this.aVertexPosition=a.getAttribLocation(b,"aVertexPosition"),this.aTextureCoord=a.getAttribLocation(b,"aTextureCoord"),this.colorAttribute=a.getAttribLocation(b,"aColor"),-1===this.colorAttribute&&(this.colorAttribute=2);for(var c in this.uniforms)this.uniforms[c].uniformLocation=a.getUniformLocation(b,c);this.initUniforms(),this.program=b},e.PixiShader.prototype.initUniforms=function(){this.textureCount=1;var a,b=this.gl;for(var c in this.uniforms){a=this.uniforms[c];var d=a.type;"sampler2D"===d?(a._init=!1,null!==a.value&&this.initSampler2D(a)):"mat2"===d||"mat3"===d||"mat4"===d?(a.glMatrix=!0,a.glValueLength=1,"mat2"===d?a.glFunc=b.uniformMatrix2fv:"mat3"===d?a.glFunc=b.uniformMatrix3fv:"mat4"===d&&(a.glFunc=b.uniformMatrix4fv)):(a.glFunc=b["uniform"+d],a.glValueLength="2f"===d||"2i"===d?2:"3f"===d||"3i"===d?3:"4f"===d||"4i"===d?4:1)}},e.PixiShader.prototype.initSampler2D=function(a){if(a.value&&a.value.baseTexture&&a.value.baseTexture.hasLoaded){var b=this.gl;if(b.activeTexture(b["TEXTURE"+this.textureCount]),b.bindTexture(b.TEXTURE_2D,a.value.baseTexture._glTexture),a.textureData){var c=a.textureData,d=c.magFilter?c.magFilter:b.LINEAR,e=c.minFilter?c.minFilter:b.LINEAR,f=c.wrapS?c.wrapS:b.CLAMP_TO_EDGE,g=c.wrapT?c.wrapT:b.CLAMP_TO_EDGE,h=c.luminance?b.LUMINANCE:b.RGBA;if(c.repeat&&(f=b.REPEAT,g=b.REPEAT),b.pixelStorei(b.UNPACK_FLIP_Y_WEBGL,!1),c.width){var i=c.width?c.width:512,j=c.height?c.height:2,k=c.border?c.border:0;b.texImage2D(b.TEXTURE_2D,0,h,i,j,k,h,b.UNSIGNED_BYTE,null)}else b.texImage2D(b.TEXTURE_2D,0,h,b.RGBA,b.UNSIGNED_BYTE,a.value.baseTexture.source);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,d),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,e),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,f),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,g)}b.uniform1i(a.uniformLocation,this.textureCount),a._init=!0,this.textureCount++}},e.PixiShader.prototype.syncUniforms=function(){this.textureCount=1;var a,b=this.gl;for(var c in this.uniforms)a=this.uniforms[c],1===a.glValueLength?a.glMatrix===!0?a.glFunc.call(b,a.uniformLocation,a.transpose,a.value):a.glFunc.call(b,a.uniformLocation,a.value):2===a.glValueLength?a.glFunc.call(b,a.uniformLocation,a.value.x,a.value.y):3===a.glValueLength?a.glFunc.call(b,a.uniformLocation,a.value.x,a.value.y,a.value.z):4===a.glValueLength?a.glFunc.call(b,a.uniformLocation,a.value.x,a.value.y,a.value.z,a.value.w):"sampler2D"===a.type&&(a._init?(b.activeTexture(b["TEXTURE"+this.textureCount]),b.bindTexture(b.TEXTURE_2D,a.value.baseTexture._glTextures[b.id]||e.createWebGLTexture(a.value.baseTexture,b)),b.uniform1i(a.uniformLocation,this.textureCount),this.textureCount++):this.initSampler2D(a))},e.PixiShader.defaultVertexSrc=["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute vec2 aColor;","uniform vec2 projectionVector;","uniform vec2 offsetVector;","varying vec2 vTextureCoord;","varying vec4 vColor;","const vec2 center = vec2(-1.0, 1.0);","void main(void) {"," gl_Position = vec4( ((aVertexPosition + offsetVector) / projectionVector) + center , 0.0, 1.0);"," vTextureCoord = aTextureCoord;"," vec3 color = mod(vec3(aColor.y/65536.0, aColor.y/256.0, aColor.y), 256.0) / 256.0;"," vColor = vec4(color * aColor.x, aColor.x);","}"],e.StripShader=function(){this.program=null,this.fragmentSrc=["precision mediump float;","varying vec2 vTextureCoord;","varying float vColor;","uniform float alpha;","uniform sampler2D uSampler;","void main(void) {"," gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y));"," gl_FragColor = gl_FragColor * alpha;","}"],this.vertexSrc=["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute float aColor;","uniform mat3 translationMatrix;","uniform vec2 projectionVector;","varying vec2 vTextureCoord;","uniform vec2 offsetVector;","varying float vColor;","void main(void) {"," vec3 v = translationMatrix * vec3(aVertexPosition, 1.0);"," v -= offsetVector.xyx;"," gl_Position = vec4( v.x / projectionVector.x -1.0, v.y / projectionVector.y + 1.0 , 0.0, 1.0);"," vTextureCoord = aTextureCoord;"," vColor = aColor;","}"]},e.StripShader.prototype.init=function(){var a=e.gl,b=e.compileProgram(a,this.vertexSrc,this.fragmentSrc);a.useProgram(b),this.uSampler=a.getUniformLocation(b,"uSampler"),this.projectionVector=a.getUniformLocation(b,"projectionVector"),this.offsetVector=a.getUniformLocation(b,"offsetVector"),this.colorAttribute=a.getAttribLocation(b,"aColor"),this.aVertexPosition=a.getAttribLocation(b,"aVertexPosition"),this.aTextureCoord=a.getAttribLocation(b,"aTextureCoord"),this.translationMatrix=a.getUniformLocation(b,"translationMatrix"),this.alpha=a.getUniformLocation(b,"alpha"),this.program=b},e.PrimitiveShader=function(a){this.gl=a,this.program=null,this.fragmentSrc=["precision mediump float;","varying vec4 vColor;","void main(void) {"," gl_FragColor = vColor;","}"],this.vertexSrc=["attribute vec2 aVertexPosition;","attribute vec4 aColor;","uniform mat3 translationMatrix;","uniform vec2 projectionVector;","uniform vec2 offsetVector;","uniform float alpha;","uniform vec3 tint;","varying vec4 vColor;","void main(void) {"," vec3 v = translationMatrix * vec3(aVertexPosition , 1.0);"," v -= offsetVector.xyx;"," gl_Position = vec4( v.x / projectionVector.x -1.0, v.y / -projectionVector.y + 1.0 , 0.0, 1.0);"," vColor = aColor * vec4(tint * alpha, alpha);","}"],this.init()},e.PrimitiveShader.prototype.init=function(){var a=this.gl,b=e.compileProgram(a,this.vertexSrc,this.fragmentSrc);a.useProgram(b),this.projectionVector=a.getUniformLocation(b,"projectionVector"),this.offsetVector=a.getUniformLocation(b,"offsetVector"),this.tintColor=a.getUniformLocation(b,"tint"),this.aVertexPosition=a.getAttribLocation(b,"aVertexPosition"),this.colorAttribute=a.getAttribLocation(b,"aColor"),this.translationMatrix=a.getUniformLocation(b,"translationMatrix"),this.alpha=a.getUniformLocation(b,"alpha"),this.program=b},e.WebGLGraphics=function(){},e.WebGLGraphics.renderGraphics=function(a,b){var c=b.gl,d=b.projection,f=b.offset,g=b.shaderManager.primitiveShader;a._webGL[c.id]||(a._webGL[c.id]={points:[],indices:[],lastIndex:0,buffer:c.createBuffer(),indexBuffer:c.createBuffer()});var h=a._webGL[c.id];a.dirty&&(a.dirty=!1,a.clearDirty&&(a.clearDirty=!1,h.lastIndex=0,h.points=[],h.indices=[]),e.WebGLGraphics.updateGraphics(a,c)),b.shaderManager.activatePrimitiveShader();var i=e.mat3.clone(a.worldTransform);e.mat3.transpose(i),c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA),c.uniformMatrix3fv(g.translationMatrix,!1,i),c.uniform2f(g.projectionVector,d.x,-d.y),c.uniform2f(g.offsetVector,-f.x,-f.y),c.uniform3fv(g.tintColor,e.hex2rgb(a.tint)),c.uniform1f(g.alpha,a.worldAlpha),c.bindBuffer(c.ARRAY_BUFFER,h.buffer),c.vertexAttribPointer(g.aVertexPosition,2,c.FLOAT,!1,24,0),c.vertexAttribPointer(g.colorAttribute,4,c.FLOAT,!1,24,8),c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,h.indexBuffer),c.drawElements(c.TRIANGLE_STRIP,h.indices.length,c.UNSIGNED_SHORT,0),b.shaderManager.deactivatePrimitiveShader()},e.WebGLGraphics.updateGraphics=function(a,b){for(var c=a._webGL[b.id],d=c.lastIndex;d3&&e.WebGLGraphics.buildPoly(f,c),f.lineWidth>0&&e.WebGLGraphics.buildLine(f,c)):f.type===e.Graphics.RECT?e.WebGLGraphics.buildRectangle(f,c):(f.type===e.Graphics.CIRC||f.type===e.Graphics.ELIP)&&e.WebGLGraphics.buildCircle(f,c)}c.lastIndex=a.graphicsData.length,c.glPoints=new Float32Array(c.points),b.bindBuffer(b.ARRAY_BUFFER,c.buffer),b.bufferData(b.ARRAY_BUFFER,c.glPoints,b.STATIC_DRAW),c.glIndicies=new Uint16Array(c.indices),b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,c.indexBuffer),b.bufferData(b.ELEMENT_ARRAY_BUFFER,c.glIndicies,b.STATIC_DRAW)},e.WebGLGraphics.buildRectangle=function(a,b){var c=a.points,d=c[0],f=c[1],g=c[2],h=c[3];if(a.fill){var i=e.hex2rgb(a.fillColor),j=a.fillAlpha,k=i[0]*j,l=i[1]*j,m=i[2]*j,n=b.points,o=b.indices,p=n.length/6;n.push(d,f),n.push(k,l,m,j),n.push(d+g,f),n.push(k,l,m,j),n.push(d,f+h),n.push(k,l,m,j),n.push(d+g,f+h),n.push(k,l,m,j),o.push(p,p,p+1,p+2,p+3,p+3)}a.lineWidth&&(a.points=[d,f,d+g,f,d+g,f+h,d,f+h,d,f],e.WebGLGraphics.buildLine(a,b))},e.WebGLGraphics.buildCircle=function(a,b){var c=a.points,d=c[0],f=c[1],g=c[2],h=c[3],i=40,j=2*Math.PI/i,k=0;if(a.fill){var l=e.hex2rgb(a.fillColor),m=a.fillAlpha,n=l[0]*m,o=l[1]*m,p=l[2]*m,q=b.points,r=b.indices,s=q.length/6;for(r.push(s),k=0;i+1>k;k++)q.push(d,f,n,o,p,m),q.push(d+Math.sin(j*k)*g,f+Math.cos(j*k)*h,n,o,p,m),r.push(s++,s++);r.push(s-1)}if(a.lineWidth){for(a.points=[],k=0;i+1>k;k++)a.points.push(d+Math.sin(j*k)*g,f+Math.cos(j*k)*h);e.WebGLGraphics.buildLine(a,b)}},e.WebGLGraphics.buildLine=function(a,b){var c=0,d=a.points;if(0!==d.length){if(a.lineWidth%2)for(c=0;cc;c++)l=d[2*(c-1)],m=d[2*(c-1)+1],n=d[2*c],o=d[2*c+1],p=d[2*(c+1)],q=d[2*(c+1)+1],r=-(m-o),s=l-n,F=Math.sqrt(r*r+s*s),r/=F,s/=F,r*=L,s*=L,t=-(o-q),u=n-p,F=Math.sqrt(t*t+u*u),t/=F,u/=F,t*=L,u*=L,x=-s+m-(-s+o),y=-r+n-(-r+l),z=(-r+l)*(-s+o)-(-r+n)*(-s+m),A=-u+q-(-u+o),B=-t+n-(-t+p),C=(-t+p)*(-u+o)-(-t+n)*(-u+q),D=x*B-A*y,Math.abs(D)<.1?(D+=10.1,G.push(n-r,o-s,O,P,Q,N),G.push(n+r,o+s,O,P,Q,N)):(j=(y*C-B*z)/D,k=(A*z-x*C)/D,E=(j-n)*(j-n)+(k-o)+(k-o),E>19600?(v=r-t,w=s-u,F=Math.sqrt(v*v+w*w),v/=F,w/=F,v*=L,w*=L,G.push(n-v,o-w),G.push(O,P,Q,N),G.push(n+v,o+w),G.push(O,P,Q,N),G.push(n-v,o-w),G.push(O,P,Q,N),J++):(G.push(j,k),G.push(O,P,Q,N),G.push(n-(j-n),o-(k-o)),G.push(O,P,Q,N)));for(l=d[2*(I-2)],m=d[2*(I-2)+1],n=d[2*(I-1)],o=d[2*(I-1)+1],r=-(m-o),s=l-n,F=Math.sqrt(r*r+s*s),r/=F,s/=F,r*=L,s*=L,G.push(n-r,o-s),G.push(O,P,Q,N),G.push(n+r,o+s),G.push(O,P,Q,N),H.push(K),c=0;J>c;c++)H.push(K++);H.push(K-1)}},e.WebGLGraphics.buildPoly=function(a,b){var c=a.points;if(!(c.length<6)){var d=b.points,f=b.indices,g=c.length/2,h=e.hex2rgb(a.fillColor),i=a.fillAlpha,j=h[0]*i,k=h[1]*i,l=h[2]*i,m=e.PolyK.Triangulate(c),n=d.length/6,o=0;for(o=0;oo;o++)d.push(c[2*o],c[2*o+1],j,k,l,i)}},e._defaultFrame=new e.Rectangle(0,0,1,1),e.gl=null,e.WebGLRenderer=function(a,b,c,d,f){e.defaultRenderer||(e.defaultRenderer=this),this.type=e.WEBGL_RENDERER,this.transparent=!!d,this.width=a||800,this.height=b||600,this.view=c||document.createElement("canvas"),this.view.width=this.width,this.view.height=this.height;var g=this;this.view.addEventListener("webglcontextlost",function(a){g.handleContextLost(a)},!1),this.view.addEventListener("webglcontextrestored",function(a){g.handleContextRestored(a)},!1),this.batchs=[],this.options={alpha:this.transparent,antialias:!!f,premultipliedAlpha:!1,stencil:!0};try{this.gl=this.view.getContext("experimental-webgl",this.options)}catch(h){try{this.gl=this.view.getContext("webgl",this.options)}catch(i){throw new Error(" This browser does not support webGL. Try using the canvas renderer"+this)}}var j=this.gl;this.glContextId=j.id=e.WebGLRenderer.glContextId++,e.blendModesWebGL||(e.blendModesWebGL=[],e.blendModesWebGL[e.blendModes.NORMAL]=[j.ONE,j.ONE_MINUS_SRC_ALPHA],e.blendModesWebGL[e.blendModes.ADD]=[j.SRC_ALPHA,j.DST_ALPHA],e.blendModesWebGL[e.blendModes.MULTIPLY]=[j.DST_COLOR,j.ONE_MINUS_SRC_ALPHA],e.blendModesWebGL[e.blendModes.SCREEN]=[j.SRC_ALPHA,j.ONE]),this.projection=new e.Point,this.projection.x=this.width/2,this.projection.y=-this.height/2,this.offset=new e.Point(0,0),this.resize(this.width,this.height),this.contextLost=!1,this.shaderManager=new e.WebGLShaderManager(j),this.spriteBatch=new e.WebGLSpriteBatch(j),this.maskManager=new e.WebGLMaskManager(j),this.filterManager=new e.WebGLFilterManager(j,this.transparent),this.renderSession={},this.renderSession.gl=this.gl,this.renderSession.drawCount=0,this.renderSession.shaderManager=this.shaderManager,this.renderSession.maskManager=this.maskManager,this.renderSession.filterManager=this.filterManager,this.renderSession.spriteBatch=this.spriteBatch,j.useProgram(this.shaderManager.defaultShader.program),e.WebGLRenderer.gl=j,j.disable(j.DEPTH_TEST),j.disable(j.CULL_FACE),j.enable(j.BLEND),j.colorMask(!0,!0,!0,this.transparent)},e.WebGLRenderer.prototype.constructor=e.WebGLRenderer,e.WebGLRenderer.prototype.render=function(a){if(!this.contextLost){this.__stage!==a&&(this.__stage=a),e.WebGLRenderer.updateTextures(),a.updateTransform();var b=this.gl;b.colorMask(!0,!0,!0,this.transparent),b.viewport(0,0,this.width,this.height),b.bindFramebuffer(b.FRAMEBUFFER,null),b.clearColor(a.backgroundColorSplit[0],a.backgroundColorSplit[1],a.backgroundColorSplit[2],!this.transparent),b.clear(b.COLOR_BUFFER_BIT),this.renderDisplayObject(a,this.projection),a.interactive&&(a._interactiveEventsAdded||(a._interactiveEventsAdded=!0,a.interactionManager.setTarget(this)))}},e.WebGLRenderer.prototype.renderDisplayObject=function(a,b){this.renderSession.drawCount=0,this.renderSession.currentBlendMode=9999,this.renderSession.projection=b,this.renderSession.offset=this.offset,this.spriteBatch.begin(this.renderSession),this.filterManager.begin(this.renderSession,null),a._renderWebGL(this.renderSession),this.spriteBatch.end()},e.WebGLRenderer.updateTextures=function(){var a=0;for(a=0;ad;d+=6,e+=4)this.indices[d+0]=e+0,this.indices[d+1]=e+1,this.indices[d+2]=e+2,this.indices[d+3]=e+0,this.indices[d+4]=e+2,this.indices[d+5]=e+3;this.drawing=!1,this.currentBatchSize=0,this.currentBaseTexture=null,this.setContext(a)},e.WebGLSpriteBatch.prototype.setContext=function(a){this.gl=a,this.vertexBuffer=a.createBuffer(),this.indexBuffer=a.createBuffer(),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.indexBuffer),a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.indices,a.STATIC_DRAW),a.bindBuffer(a.ARRAY_BUFFER,this.vertexBuffer),a.bufferData(a.ARRAY_BUFFER,this.vertices,a.DYNAMIC_DRAW),this.currentBlendMode=99999},e.WebGLSpriteBatch.prototype.begin=function(a){this.renderSession=a,this.shader=this.renderSession.shaderManager.defaultShader,this.start()},e.WebGLSpriteBatch.prototype.end=function(){this.flush()},e.WebGLSpriteBatch.prototype.render=function(a){(a.texture.baseTexture!==this.currentBaseTexture||this.currentBatchSize>=this.size)&&(this.flush(),this.currentBaseTexture=a.texture.baseTexture),a.blendMode!==this.currentBlendMode&&this.setBlendMode(a.blendMode);var b=a._uvs||a.texture._uvs;if(b){var c,d,e,f,g=a.worldAlpha,h=a.tint,i=this.vertices,j=a.texture.frame.width,k=a.texture.frame.height,l=a.anchor.x,m=a.anchor.y;if(a.texture.trimmed){var n=a.texture.trim;d=n.x-l*n.realWidth,c=d+j,f=n.y-m*n.realHeight,e=f+k}else c=j*(1-l),d=j*-l,e=k*(1-m),f=k*-m;var o=4*this.currentBatchSize*this.vertSize,p=a.worldTransform,q=p[0],r=p[3],s=p[1],t=p[4],u=p[2],v=p[5];i[o++]=q*d+s*f+u,i[o++]=t*f+r*d+v,i[o++]=b[0],i[o++]=b[1],i[o++]=g,i[o++]=h,i[o++]=q*c+s*f+u,i[o++]=t*f+r*c+v,i[o++]=b[2],i[o++]=b[3],i[o++]=g,i[o++]=h,i[o++]=q*c+s*e+u,i[o++]=t*e+r*c+v,i[o++]=b[4],i[o++]=b[5],i[o++]=g,i[o++]=h,i[o++]=q*d+s*e+u,i[o++]=t*e+r*d+v,i[o++]=b[6],i[o++]=b[7],i[o++]=g,i[o++]=h,this.currentBatchSize++}},e.WebGLSpriteBatch.prototype.renderTilingSprite=function(a){var b=a.texture;(b.baseTexture!==this.currentBaseTexture||this.currentBatchSize>=this.size)&&(this.flush(),this.currentBaseTexture=b.baseTexture),a.blendMode!==this.currentBlendMode&&this.setBlendMode(a.blendMode),a._uvs||(a._uvs=new Float32Array(8));var c=a._uvs,d=a.tilePosition.x/b.baseTexture.width,e=a.tilePosition.y/b.baseTexture.height,f=a.width/b.baseTexture.width/a.tileScale.x,g=a.height/b.baseTexture.height/a.tileScale.y;c[0]=0-d,c[1]=0-e,c[2]=1*f-d,c[3]=0-e,c[4]=1*f-d,c[5]=1*g-e,c[6]=0-d,c[7]=1*g-e;var h=a.worldAlpha,i=a.tint,j=this.vertices,k=a.width,l=a.height,m=a.anchor.x,n=a.anchor.y,o=k*(1-m),p=k*-m,q=l*(1-n),r=l*-n,s=4*this.currentBatchSize*this.vertSize,t=a.worldTransform,u=t[0],v=t[3],w=t[1],x=t[4],y=t[2],z=t[5];j[s++]=u*p+w*r+y,j[s++]=x*r+v*p+z,j[s++]=c[0],j[s++]=c[1],j[s++]=h,j[s++]=i,j[s++]=u*o+w*r+y,j[s++]=x*r+v*o+z,j[s++]=c[2],j[s++]=c[3],j[s++]=h,j[s++]=i,j[s++]=u*o+w*q+y,j[s++]=x*q+v*o+z,j[s++]=c[4],j[s++]=c[5],j[s++]=h,j[s++]=i,j[s++]=u*p+w*q+y,j[s++]=x*q+v*p+z,j[s++]=c[6],j[s++]=c[7],j[s++]=h,j[s++]=i,this.currentBatchSize++},e.WebGLSpriteBatch.prototype.flush=function(){if(0!==this.currentBatchSize){var a=this.gl;a.bindTexture(a.TEXTURE_2D,this.currentBaseTexture._glTextures[a.id]||e.createWebGLTexture(this.currentBaseTexture,a));var b=this.vertices.subarray(0,4*this.currentBatchSize*this.vertSize);a.bufferSubData(a.ARRAY_BUFFER,0,b),a.drawElements(a.TRIANGLES,6*this.currentBatchSize,a.UNSIGNED_SHORT,0),this.currentBatchSize=0,this.renderSession.drawCount++}},e.WebGLSpriteBatch.prototype.stop=function(){this.flush()},e.WebGLSpriteBatch.prototype.start=function(){var a=this.gl;a.activeTexture(a.TEXTURE0),a.bindBuffer(a.ARRAY_BUFFER,this.vertexBuffer),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.indexBuffer);var b=this.renderSession.projection;a.uniform2f(this.shader.projectionVector,b.x,b.y);var c=4*this.vertSize;a.vertexAttribPointer(this.shader.aVertexPosition,2,a.FLOAT,!1,c,0),a.vertexAttribPointer(this.shader.aTextureCoord,2,a.FLOAT,!1,c,8),a.vertexAttribPointer(this.shader.colorAttribute,2,a.FLOAT,!1,c,16),this.currentBlendMode!==e.blendModes.NORMAL&&this.setBlendMode(e.blendModes.NORMAL)},e.WebGLSpriteBatch.prototype.setBlendMode=function(a){this.flush(),this.currentBlendMode=a;var b=e.blendModesWebGL[this.currentBlendMode];this.gl.blendFunc(b[0],b[1])},e.WebGLFilterManager=function(a,b){this.transparent=b,this.filterStack=[],this.offsetX=0,this.offsetY=0,this.setContext(a)},e.WebGLFilterManager.prototype.setContext=function(a){this.gl=a,this.texturePool=[],this.initShaderBuffers()},e.WebGLFilterManager.prototype.begin=function(a,b){this.renderSession=a,this.defaultShader=a.shaderManager.defaultShader;var c=this.renderSession.projection;this.width=2*c.x,this.height=2*-c.y,this.buffer=b},e.WebGLFilterManager.prototype.pushFilter=function(a){var b=this.gl,c=this.renderSession.projection,d=this.renderSession.offset;this.filterStack.push(a);var f=a.filterPasses[0];this.offsetX+=a.target.filterArea.x,this.offsetY+=a.target.filterArea.y;var g=this.texturePool.pop();g?g.resize(this.width,this.height):g=new e.FilterTexture(this.gl,this.width,this.height),b.bindTexture(b.TEXTURE_2D,g.texture),a.target.filterArea=a.target.getBounds();var h=a.target.filterArea,i=f.padding;h.x-=i,h.y-=i,h.width+=2*i,h.height+=2*i,h.x<0&&(h.x=0),h.width>this.width&&(h.width=this.width),h.y<0&&(h.y=0),h.height>this.height&&(h.height=this.height),b.bindFramebuffer(b.FRAMEBUFFER,g.frameBuffer),b.viewport(0,0,h.width,h.height),c.x=h.width/2,c.y=-h.height/2,d.x=-h.x,d.y=-h.y,b.uniform2f(this.defaultShader.projectionVector,h.width/2,-h.height/2),b.uniform2f(this.defaultShader.offsetVector,-h.x,-h.y),b.colorMask(!0,!0,!0,!0),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),a._glFilterTexture=g},e.WebGLFilterManager.prototype.popFilter=function(){var a=this.gl,b=this.filterStack.pop(),c=b.target.filterArea,d=b._glFilterTexture,f=this.renderSession.projection,g=this.renderSession.offset;if(b.filterPasses.length>1){a.viewport(0,0,c.width,c.height),a.bindBuffer(a.ARRAY_BUFFER,this.vertexBuffer),this.vertexArray[0]=0,this.vertexArray[1]=c.height,this.vertexArray[2]=c.width,this.vertexArray[3]=c.height,this.vertexArray[4]=0,this.vertexArray[5]=0,this.vertexArray[6]=c.width,this.vertexArray[7]=0,a.bufferSubData(a.ARRAY_BUFFER,0,this.vertexArray),a.bindBuffer(a.ARRAY_BUFFER,this.uvBuffer),this.uvArray[2]=c.width/this.width,this.uvArray[5]=c.height/this.height,this.uvArray[6]=c.width/this.width,this.uvArray[7]=c.height/this.height,a.bufferSubData(a.ARRAY_BUFFER,0,this.uvArray);var h=d,i=this.texturePool.pop();i||(i=new e.FilterTexture(this.gl,this.width,this.height)),a.bindFramebuffer(a.FRAMEBUFFER,i.frameBuffer),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.BLEND);for(var j=0;j0&&(e.Texture.frameUpdates=[])},e.CanvasRenderer.prototype.resize=function(a,b){this.width=a,this.height=b,this.view.width=a,this.view.height=b},e.CanvasRenderer.prototype.renderDisplayObject=function(a,b){this.renderSession.context=b||this.context,a._renderCanvas(this.renderSession)},e.CanvasRenderer.prototype.renderStripFlat=function(a){var b=this.context,c=a.verticies,d=c.length/2;this.count++,b.beginPath();for(var e=1;d-2>e;e++){var f=2*e,g=c[f],h=c[f+2],i=c[f+4],j=c[f+1],k=c[f+3],l=c[f+5];b.moveTo(g,j),b.lineTo(h,k),b.lineTo(i,l)}b.fillStyle="#FF0000",b.fill(),b.closePath()},e.CanvasRenderer.prototype.renderStrip=function(a){var b=this.context,c=a.verticies,d=a.uvs,e=c.length/2;this.count++;for(var f=1;e-2>f;f++){var g=2*f,h=c[g],i=c[g+2],j=c[g+4],k=c[g+1],l=c[g+3],m=c[g+5],n=d[g]*a.texture.width,o=d[g+2]*a.texture.width,p=d[g+4]*a.texture.width,q=d[g+1]*a.texture.height,r=d[g+3]*a.texture.height,s=d[g+5]*a.texture.height;b.save(),b.beginPath(),b.moveTo(h,k),b.lineTo(i,l),b.lineTo(j,m),b.closePath(),b.clip();var t=n*r+q*p+o*s-r*p-q*o-n*s,u=h*r+q*j+i*s-r*j-q*i-h*s,v=n*i+h*p+o*j-i*p-h*o-n*j,w=n*r*j+q*i*p+h*o*s-h*r*p-q*o*j-n*i*s,x=k*r+q*m+l*s-r*m-q*l-k*s,y=n*l+k*p+o*m-l*p-k*o-n*m,z=n*r*m+q*l*p+k*o*s-k*r*p-q*o*m-n*l*s;b.transform(u/t,x/t,v/t,y/t,w/t,z/t),b.drawImage(a.texture.baseTexture.source,0,0),b.restore()}},e.CanvasBuffer=function(a,b){this.width=a,this.height=b,this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.canvas.width=a,this.canvas.height=b},e.CanvasBuffer.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},e.CanvasBuffer.prototype.resize=function(a,b){this.width=this.canvas.width=a,this.height=this.canvas.height=b},e.CanvasGraphics=function(){},e.CanvasGraphics.renderGraphics=function(a,b){for(var c=a.worldAlpha,d="",f=0;f1&&(c=1,window.console.log("Pixi.js warning: masks in canvas can only mask using the first path in the graphics object"));for(var d=0;1>d;d++){var f=a.graphicsData[d],g=f.points;if(f.type===e.Graphics.POLY){b.beginPath(),b.moveTo(g[0],g[1]);for(var h=1;hl?l:v,v=v>n?n:v,v=v>p?p:v,v=v>r?r:v,w=w>m?m:w,w=w>o?o:w,w=w>q?q:w,w=w>s?s:w,t=l>t?l:t,t=n>t?n:t,t=p>t?p:t,t=r>t?r:t,u=m>u?m:u,u=o>u?o:u,u=q>u?q:u,u=s>u?s:u;var x=this._bounds;return x.x=v,x.width=t-v,x.y=w,x.height=u-w,x},e.Graphics.prototype.updateBounds=function(){for(var a,b,c,d=1/0,f=-1/0,g=1/0,h=-1/0,i=0;ib?b:d,f=b+m>f?b+m:f,g=g>c?b:g,h=c+n>h?c+n:h}else if(k===e.Graphics.CIRC||k===e.Graphics.ELIP){b=a.x,c=a.y;var o=a.radius+l/2;d=d>b-o?b-o:d,f=b+o>f?b+o:f,g=g>c-o?c-o:g,h=c+o>h?c+o:h}else for(var p=0;pb-l?b-l:d,f=b+l>f?b+l:f,g=g>c-l?c-l:g,h=c+l>h?c+l:h}this.bounds=new e.Rectangle(d,g,f-d,h-g)},e.Graphics.POLY=0,e.Graphics.RECT=1,e.Graphics.CIRC=2,e.Graphics.ELIP=3,e.Strip=function(a,b,c){e.DisplayObjectContainer.call(this),this.texture=a,this.blendMode=e.blendModes.NORMAL;try{this.uvs=new Float32Array([0,1,1,1,1,0,0,1]),this.verticies=new Float32Array([0,0,0,0,0,0,0,0,0]),this.colors=new Float32Array([1,1,1,1]),this.indices=new Uint16Array([0,1,2,3])}catch(d){this.uvs=[0,1,1,1,1,0,0,1],this.verticies=[0,0,0,0,0,0,0,0,0],this.colors=[1,1,1,1],this.indices=[0,1,2,3]}this.width=b,this.height=c,a.baseTexture.hasLoaded?(this.width=this.texture.frame.width,this.height=this.texture.frame.height,this.updateFrame=!0):(this.onTextureUpdateBind=this.onTextureUpdate.bind(this),this.texture.addEventListener("update",this.onTextureUpdateBind)),this.renderable=!0},e.Strip.prototype=Object.create(e.DisplayObjectContainer.prototype),e.Strip.prototype.constructor=e.Strip,e.Strip.prototype.setTexture=function(a){this.texture=a,this.width=a.frame.width,this.height=a.frame.height,this.updateFrame=!0},e.Strip.prototype.onTextureUpdate=function(){this.updateFrame=!0},e.Rope=function(a,b){e.Strip.call(this,a),this.points=b;try{this.verticies=new Float32Array(4*b.length),this.uvs=new Float32Array(4*b.length),this.colors=new Float32Array(2*b.length),this.indices=new Uint16Array(2*b.length)}catch(c){this.verticies=new Array(4*b.length),this.uvs=new Array(4*b.length),this.colors=new Array(2*b.length),this.indices=new Array(2*b.length)}this.refresh()},e.Rope.prototype=Object.create(e.Strip.prototype),e.Rope.prototype.constructor=e.Rope,e.Rope.prototype.refresh=function(){var a=this.points;if(!(a.length<1)){var b=this.uvs,c=a[0],d=this.indices,e=this.colors;this.count-=.2,b[0]=0,b[1]=1,b[2]=0,b[3]=1,e[0]=1,e[1]=1,d[0]=0,d[1]=1;for(var f,g,h,i=a.length,j=1;i>j;j++)f=a[j],g=4*j,h=j/(i-1),j%2?(b[g]=h,b[g+1]=0,b[g+2]=h,b[g+3]=1):(b[g]=h,b[g+1]=0,b[g+2]=h,b[g+3]=1),g=2*j,e[g]=1,e[g+1]=1,g=2*j,d[g]=g,d[g+1]=g+1,c=f}},e.Rope.prototype.updateTransform=function(){var a=this.points;if(!(a.length<1)){var b,c=a[0],d={x:0,y:0};this.count-=.2;var f=this.verticies;f[0]=c.x+d.x,f[1]=c.y+d.y,f[2]=c.x-d.x,f[3]=c.y-d.y;for(var g,h,i,j,k,l=a.length,m=1;l>m;m++)g=a[m],h=4*m,b=m1&&(i=1),j=Math.sqrt(d.x*d.x+d.y*d.y),k=this.texture.height/2,d.x/=j,d.y/=j,d.x*=k,d.y*=k,f[h]=g.x+d.x,f[h+1]=g.y+d.y,f[h+2]=g.x-d.x,f[h+3]=g.y-d.y,c=g;e.DisplayObjectContainer.prototype.updateTransform.call(this)}},e.Rope.prototype.setTexture=function(a){this.texture=a,this.updateFrame=!0},e.TilingSprite=function(a,b,c){e.Sprite.call(this,a),this.width=b||100,this.height=c||100,a.baseTexture._powerOf2=!0,this.tileScale=new e.Point(1,1),this.tilePosition=new e.Point(0,0),this.renderable=!0,this.tint=16777215,this.blendMode=e.blendModes.NORMAL},e.TilingSprite.prototype=Object.create(e.Sprite.prototype),e.TilingSprite.prototype.constructor=e.TilingSprite,Object.defineProperty(e.TilingSprite.prototype,"width",{get:function(){return this._width},set:function(a){this._width=a}}),Object.defineProperty(e.TilingSprite.prototype,"height",{get:function(){return this._height},set:function(a){this._height=a}}),e.TilingSprite.prototype.onTextureUpdate=function(){this.updateFrame=!0},e.TilingSprite.prototype._renderWebGL=function(a){if(this.visible!==!1&&0!==this.alpha){var b,c;if(this.mask||this.filters){for(this.mask&&(a.spriteBatch.stop(),a.maskManager.pushMask(this.mask,a.projection),a.spriteBatch.start()),this.filters&&(a.spriteBatch.flush(),a.filterManager.pushFilter(this._filterBlock)),a.spriteBatch.renderTilingSprite(this),b=0,c=this.children.length;c>b;b++)this.children[b]._renderWebGL(a);a.spriteBatch.stop(),this.filters&&a.filterManager.popFilter(),this.mask&&a.maskManager.popMask(a.projection),a.spriteBatch.start()}else for(a.spriteBatch.renderTilingSprite(this),b=0,c=this.children.length;c>b;b++)this.children[b]._renderWebGL(a)}},e.TilingSprite.prototype._renderCanvas=function(a){if(this.visible!==!1&&0!==this.alpha){var b=a.context;b.globalAlpha=this.worldAlpha;var c=this.worldTransform;b.setTransform(c[0],c[3],c[1],c[4],c[2],c[5]),this.__tilePattern||(this.__tilePattern=b.createPattern(this.texture.baseTexture.source,"repeat")),this.blendMode!==a.currentBlendMode&&(a.currentBlendMode=this.blendMode,b.globalCompositeOperation=e.blendModesCanvas[a.currentBlendMode]),b.beginPath();var d=this.tilePosition,f=this.tileScale;b.scale(f.x,f.y),b.translate(d.x,d.y),b.fillStyle=this.__tilePattern,b.fillRect(-d.x,-d.y,this.width/f.x,this.height/f.y),b.scale(1/f.x,1/f.y),b.translate(-d.x,-d.y),b.closePath()}},e.TilingSprite.prototype.getBounds=function(){var a=this._width,b=this._height,c=a*(1-this.anchor.x),d=a*-this.anchor.x,e=b*(1-this.anchor.y),f=b*-this.anchor.y,g=this.worldTransform,h=g[0],i=g[3],j=g[1],k=g[4],l=g[2],m=g[5],n=h*d+j*f+l,o=k*f+i*d+m,p=h*c+j*f+l,q=k*f+i*c+m,r=h*c+j*e+l,s=k*e+i*c+m,t=h*d+j*e+l,u=k*e+i*d+m,v=-1/0,w=-1/0,x=1/0,y=1/0;x=x>n?n:x,x=x>p?p:x,x=x>r?r:x,x=x>t?t:x,y=y>o?o:y,y=y>q?q:y,y=y>s?s:y,y=y>u?u:y,v=n>v?n:v,v=p>v?p:v,v=r>v?r:v,v=t>v?t:v,w=o>w?o:w,w=q>w?q:w,w=s>w?s:w,w=u>w?u:w;var z=this._bounds;return z.x=x,z.width=v-x,z.y=y,z.height=w-y,this._currentBounds=z,z};var j={};j.BoneData=function(a,b){this.name=a,this.parent=b},j.BoneData.prototype={length:0,x:0,y:0,rotation:0,scaleX:1,scaleY:1},j.SlotData=function(a,b){this.name=a,this.boneData=b},j.SlotData.prototype={r:1,g:1,b:1,a:1,attachmentName:null},j.Bone=function(a,b){this.data=a,this.parent=b,this.setToSetupPose()},j.Bone.yDown=!1,j.Bone.prototype={x:0,y:0,rotation:0,scaleX:1,scaleY:1,m00:0,m01:0,worldX:0,m10:0,m11:0,worldY:0,worldRotation:0,worldScaleX:1,worldScaleY:1,updateWorldTransform:function(a,b){var c=this.parent;null!=c?(this.worldX=this.x*c.m00+this.y*c.m01+c.worldX,this.worldY=this.x*c.m10+this.y*c.m11+c.worldY,this.worldScaleX=c.worldScaleX*this.scaleX,this.worldScaleY=c.worldScaleY*this.scaleY,this.worldRotation=c.worldRotation+this.rotation):(this.worldX=this.x,this.worldY=this.y,this.worldScaleX=this.scaleX,this.worldScaleY=this.scaleY,this.worldRotation=this.rotation);var d=this.worldRotation*Math.PI/180,e=Math.cos(d),f=Math.sin(d);this.m00=e*this.worldScaleX,this.m10=f*this.worldScaleX,this.m01=-f*this.worldScaleY,this.m11=e*this.worldScaleY,a&&(this.m00=-this.m00,this.m01=-this.m01),b&&(this.m10=-this.m10,this.m11=-this.m11),j.Bone.yDown&&(this.m10=-this.m10,this.m11=-this.m11)},setToSetupPose:function(){var a=this.data;this.x=a.x,this.y=a.y,this.rotation=a.rotation,this.scaleX=a.scaleX,this.scaleY=a.scaleY}},j.Slot=function(a,b,c){this.data=a,this.skeleton=b,this.bone=c,this.setToSetupPose()},j.Slot.prototype={r:1,g:1,b:1,a:1,_attachmentTime:0,attachment:null,setAttachment:function(a){this.attachment=a,this._attachmentTime=this.skeleton.time},setAttachmentTime:function(a){this._attachmentTime=this.skeleton.time-a},getAttachmentTime:function(){return this.skeleton.time-this._attachmentTime},setToSetupPose:function(){var a=this.data;this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a;for(var b=this.skeleton.data.slots,c=0,d=b.length;d>c;c++)if(b[c]==a){this.setAttachment(a.attachmentName?this.skeleton.getAttachmentBySlotIndex(c,a.attachmentName):null);break}}},j.Skin=function(a){this.name=a,this.attachments={}},j.Skin.prototype={addAttachment:function(a,b,c){this.attachments[a+":"+b]=c},getAttachment:function(a,b){return this.attachments[a+":"+b]},_attachAll:function(a,b){for(var c in b.attachments){var d=c.indexOf(":"),e=parseInt(c.substring(0,d),10),f=c.substring(d+1),g=a.slots[e];if(g.attachment&&g.attachment.name==f){var h=this.getAttachment(e,f);h&&g.setAttachment(h)}}}},j.Animation=function(a,b,c){this.name=a,this.timelines=b,this.duration=c},j.Animation.prototype={apply:function(a,b,c){c&&this.duration&&(b%=this.duration);for(var d=this.timelines,e=0,f=d.length;f>e;e++)d[e].apply(a,b,1)},mix:function(a,b,c,d){c&&this.duration&&(b%=this.duration);for(var e=this.timelines,f=0,g=e.length;g>f;f++)e[f].apply(a,b,d)}},j.binarySearch=function(a,b,c){var d=0,e=Math.floor(a.length/c)-2;if(!e)return c;for(var f=e>>>1;;){if(a[(f+1)*c]<=b?d=f+1:e=f,d==e)return(d+1)*c;f=d+e>>>1}},j.linearSearch=function(a,b,c){for(var d=0,e=a.length-c;e>=d;d+=c)if(a[d]>b)return d;return-1},j.Curves=function(a){this.curves=[],this.curves.length=6*(a-1)},j.Curves.prototype={setLinear:function(a){this.curves[6*a]=0},setStepped:function(a){this.curves[6*a]=-1},setCurve:function(a,b,c,d,e){var f=.1,g=f*f,h=g*f,i=3*f,j=3*g,k=6*g,l=6*h,m=2*-b+d,n=2*-c+e,o=3*(b-d)+1,p=3*(c-e)+1,q=6*a,r=this.curves;r[q]=b*i+m*j+o*h,r[q+1]=c*i+n*j+p*h,r[q+2]=m*k+o*l,r[q+3]=n*k+p*l,r[q+4]=o*l,r[q+5]=p*l},getCurvePercent:function(a,b){b=0>b?0:b>1?1:b;var c=6*a,d=this.curves,e=d[c];if(!e)return b;if(-1==e)return 0;for(var f=d[c+1],g=d[c+2],h=d[c+3],i=d[c+4],j=d[c+5],k=e,l=f,m=8;;){if(k>=b){var n=k-e,o=l-f;return o+(l-o)*(b-n)/(k-n)}if(!m)break;m--,e+=g,f+=h,g+=i,h+=j,k+=e,l+=f}return l+(1-l)*(b-k)/(1-k)}},j.RotateTimeline=function(a){this.curves=new j.Curves(a),this.frames=[],this.frames.length=2*a},j.RotateTimeline.prototype={boneIndex:0,getFrameCount:function(){return this.frames.length/2},setFrame:function(a,b,c){a*=2,this.frames[a]=b,this.frames[a+1]=c},apply:function(a,b,c){var d,e=this.frames;if(!(b=e[e.length-2]){for(d=f.data.rotation+e[e.length-1]-f.rotation;d>180;)d-=360;for(;-180>d;)d+=360;return f.rotation+=d*c,void 0}var g=j.binarySearch(e,b,2),h=e[g-1],i=e[g],k=1-(b-i)/(e[g-2]-i);for(k=this.curves.getCurvePercent(g/2-1,k),d=e[g+1]-h;d>180;)d-=360;for(;-180>d;)d+=360;for(d=f.data.rotation+(h+d*k)-f.rotation;d>180;)d-=360;for(;-180>d;)d+=360;f.rotation+=d*c}}},j.TranslateTimeline=function(a){this.curves=new j.Curves(a),this.frames=[],this.frames.length=3*a},j.TranslateTimeline.prototype={boneIndex:0,getFrameCount:function(){return this.frames.length/3},setFrame:function(a,b,c,d){a*=3,this.frames[a]=b,this.frames[a+1]=c,this.frames[a+2]=d},apply:function(a,b,c){var d=this.frames;if(!(b=d[d.length-3])return e.x+=(e.data.x+d[d.length-2]-e.x)*c,e.y+=(e.data.y+d[d.length-1]-e.y)*c,void 0;var f=j.binarySearch(d,b,3),g=d[f-2],h=d[f-1],i=d[f],k=1-(b-i)/(d[f+-3]-i);k=this.curves.getCurvePercent(f/3-1,k),e.x+=(e.data.x+g+(d[f+1]-g)*k-e.x)*c,e.y+=(e.data.y+h+(d[f+2]-h)*k-e.y)*c}}},j.ScaleTimeline=function(a){this.curves=new j.Curves(a),this.frames=[],this.frames.length=3*a},j.ScaleTimeline.prototype={boneIndex:0,getFrameCount:function(){return this.frames.length/3},setFrame:function(a,b,c,d){a*=3,this.frames[a]=b,this.frames[a+1]=c,this.frames[a+2]=d},apply:function(a,b,c){var d=this.frames;if(!(b=d[d.length-3])return e.scaleX+=(e.data.scaleX-1+d[d.length-2]-e.scaleX)*c,e.scaleY+=(e.data.scaleY-1+d[d.length-1]-e.scaleY)*c,void 0;var f=j.binarySearch(d,b,3),g=d[f-2],h=d[f-1],i=d[f],k=1-(b-i)/(d[f+-3]-i);k=this.curves.getCurvePercent(f/3-1,k),e.scaleX+=(e.data.scaleX-1+g+(d[f+1]-g)*k-e.scaleX)*c,e.scaleY+=(e.data.scaleY-1+h+(d[f+2]-h)*k-e.scaleY)*c}}},j.ColorTimeline=function(a){this.curves=new j.Curves(a),this.frames=[],this.frames.length=5*a},j.ColorTimeline.prototype={slotIndex:0,getFrameCount:function(){return this.frames.length/2},setFrame:function(c,d){c*=5,this.frames[c]=d,this.frames[c+1]=r,this.frames[c+2]=g,this.frames[c+3]=b,this.frames[c+4]=a},apply:function(a,b,c){var d=this.frames;if(!(b=d[d.length-5]){var f=d.length-1;return e.r=d[f-3],e.g=d[f-2],e.b=d[f-1],e.a=d[f],void 0}var g=j.binarySearch(d,b,5),h=d[g-4],i=d[g-3],k=d[g-2],l=d[g-1],m=d[g],n=1-(b-m)/(d[g-5]-m);n=this.curves.getCurvePercent(g/5-1,n);var o=h+(d[g+1]-h)*n,p=i+(d[g+2]-i)*n,q=k+(d[g+3]-k)*n,r=l+(d[g+4]-l)*n;1>c?(e.r+=(o-e.r)*c,e.g+=(p-e.g)*c,e.b+=(q-e.b)*c,e.a+=(r-e.a)*c):(e.r=o,e.g=p,e.b=q,e.a=r)}}},j.AttachmentTimeline=function(a){this.curves=new j.Curves(a),this.frames=[],this.frames.length=a,this.attachmentNames=[],this.attachmentNames.length=a},j.AttachmentTimeline.prototype={slotIndex:0,getFrameCount:function(){return this.frames.length},setFrame:function(a,b,c){this.frames[a]=b,this.attachmentNames[a]=c},apply:function(a,b){var c=this.frames;if(!(b=c[c.length-1]?c.length-1:j.binarySearch(c,b,1)-1;var e=this.attachmentNames[d];a.slots[this.slotIndex].setAttachment(e?a.getAttachmentBySlotIndex(this.slotIndex,e):null)}}},j.SkeletonData=function(){this.bones=[],this.slots=[],this.skins=[],this.animations=[]},j.SkeletonData.prototype={defaultSkin:null,findBone:function(a){for(var b=this.bones,c=0,d=b.length;d>c;c++)if(b[c].name==a)return b[c];return null},findBoneIndex:function(a){for(var b=this.bones,c=0,d=b.length;d>c;c++)if(b[c].name==a)return c;return-1},findSlot:function(a){for(var b=this.slots,c=0,d=b.length;d>c;c++)if(b[c].name==a)return slot[c];return null},findSlotIndex:function(a){for(var b=this.slots,c=0,d=b.length;d>c;c++)if(b[c].name==a)return c;return-1},findSkin:function(a){for(var b=this.skins,c=0,d=b.length;d>c;c++)if(b[c].name==a)return b[c];return null},findAnimation:function(a){for(var b=this.animations,c=0,d=b.length;d>c;c++)if(b[c].name==a)return b[c];return null}},j.Skeleton=function(a){this.data=a,this.bones=[];for(var b=0,c=a.bones.length;c>b;b++){var d=a.bones[b],e=d.parent?this.bones[a.bones.indexOf(d.parent)]:null;this.bones.push(new j.Bone(d,e))}for(this.slots=[],this.drawOrder=[],b=0,c=a.slots.length;c>b;b++){var f=a.slots[b],g=this.bones[a.bones.indexOf(f.boneData)],h=new j.Slot(f,this,g);this.slots.push(h),this.drawOrder.push(h)}},j.Skeleton.prototype={x:0,y:0,skin:null,r:1,g:1,b:1,a:1,time:0,flipX:!1,flipY:!1,updateWorldTransform:function(){for(var a=this.flipX,b=this.flipY,c=this.bones,d=0,e=c.length;e>d;d++)c[d].updateWorldTransform(a,b)},setToSetupPose:function(){this.setBonesToSetupPose(),this.setSlotsToSetupPose()},setBonesToSetupPose:function(){for(var a=this.bones,b=0,c=a.length;c>b;b++)a[b].setToSetupPose()},setSlotsToSetupPose:function(){for(var a=this.slots,b=0,c=a.length;c>b;b++)a[b].setToSetupPose(b)},getRootBone:function(){return this.bones.length?this.bones[0]:null},findBone:function(a){for(var b=this.bones,c=0,d=b.length;d>c;c++)if(b[c].data.name==a)return b[c];return null},findBoneIndex:function(a){for(var b=this.bones,c=0,d=b.length;d>c;c++)if(b[c].data.name==a)return c;return-1},findSlot:function(a){for(var b=this.slots,c=0,d=b.length;d>c;c++)if(b[c].data.name==a)return b[c];return null},findSlotIndex:function(a){for(var b=this.slots,c=0,d=b.length;d>c;c++)if(b[c].data.name==a)return c;return-1},setSkinByName:function(a){var b=this.data.findSkin(a);if(!b)throw"Skin not found: "+a;this.setSkin(b)},setSkin:function(a){this.skin&&a&&a._attachAll(this,this.skin),this.skin=a},getAttachmentBySlotName:function(a,b){return this.getAttachmentBySlotIndex(this.data.findSlotIndex(a),b)},getAttachmentBySlotIndex:function(a,b){if(this.skin){var c=this.skin.getAttachment(a,b);if(c)return c}return this.data.defaultSkin?this.data.defaultSkin.getAttachment(a,b):null},setAttachment:function(a,b){for(var c=this.slots,d=0,e=c.size;e>d;d++){var f=c[d];if(f.data.name==a){var g=null;if(b&&(g=this.getAttachment(d,b),null==g))throw"Attachment not found: "+b+", for slot: "+a;return f.setAttachment(g),void 0}}throw"Slot not found: "+a},update:function(a){time+=a}},j.AttachmentType={region:0},j.RegionAttachment=function(){this.offset=[],this.offset.length=8,this.uvs=[],this.uvs.length=8},j.RegionAttachment.prototype={x:0,y:0,rotation:0,scaleX:1,scaleY:1,width:0,height:0,rendererObject:null,regionOffsetX:0,regionOffsetY:0,regionWidth:0,regionHeight:0,regionOriginalWidth:0,regionOriginalHeight:0,setUVs:function(a,b,c,d,e){var f=this.uvs;e?(f[2]=a,f[3]=d,f[4]=a,f[5]=b,f[6]=c,f[7]=b,f[0]=c,f[1]=d):(f[0]=a,f[1]=d,f[2]=a,f[3]=b,f[4]=c,f[5]=b,f[6]=c,f[7]=d)},updateOffset:function(){var a=this.width/this.regionOriginalWidth*this.scaleX,b=this.height/this.regionOriginalHeight*this.scaleY,c=-this.width/2*this.scaleX+this.regionOffsetX*a,d=-this.height/2*this.scaleY+this.regionOffsetY*b,e=c+this.regionWidth*a,f=d+this.regionHeight*b,g=this.rotation*Math.PI/180,h=Math.cos(g),i=Math.sin(g),j=c*h+this.x,k=c*i,l=d*h+this.y,m=d*i,n=e*h+this.x,o=e*i,p=f*h+this.y,q=f*i,r=this.offset;r[0]=j-m,r[1]=l+k,r[2]=j-q,r[3]=p+k,r[4]=n-q,r[5]=p+o,r[6]=n-m,r[7]=l+o},computeVertices:function(a,b,c,d){a+=c.worldX,b+=c.worldY;var e=c.m00,f=c.m01,g=c.m10,h=c.m11,i=this.offset;d[0]=i[0]*e+i[1]*f+a,d[1]=i[0]*g+i[1]*h+b,d[2]=i[2]*e+i[3]*f+a,d[3]=i[2]*g+i[3]*h+b,d[4]=i[4]*e+i[5]*f+a,d[5]=i[4]*g+i[5]*h+b,d[6]=i[6]*e+i[7]*f+a,d[7]=i[6]*g+i[7]*h+b}},j.AnimationStateData=function(a){this.skeletonData=a,this.animationToMixTime={}},j.AnimationStateData.prototype={defaultMix:0,setMixByName:function(a,b,c){var d=this.skeletonData.findAnimation(a);if(!d)throw"Animation not found: "+a;var e=this.skeletonData.findAnimation(b);if(!e)throw"Animation not found: "+b;this.setMix(d,e,c)},setMix:function(a,b,c){this.animationToMixTime[a.name+":"+b.name]=c},getMix:function(a,b){var c=this.animationToMixTime[a.name+":"+b.name];return c?c:this.defaultMix}},j.AnimationState=function(a){this.data=a,this.queue=[]},j.AnimationState.prototype={current:null,previous:null,currentTime:0,previousTime:0,currentLoop:!1,previousLoop:!1,mixTime:0,mixDuration:0,update:function(a){if(this.currentTime+=a,this.previousTime+=a,this.mixTime+=a,this.queue.length>0){var b=this.queue[0];this.currentTime>=b.delay&&(this._setAnimation(b.animation,b.loop),this.queue.shift())}},apply:function(a){if(this.current)if(this.previous){this.previous.apply(a,this.previousTime,this.previousLoop);var b=this.mixTime/this.mixDuration;b>=1&&(b=1,this.previous=null),this.current.mix(a,this.currentTime,this.currentLoop,b)}else this.current.apply(a,this.currentTime,this.currentLoop)},clearAnimation:function(){this.previous=null,this.current=null,this.queue.length=0},_setAnimation:function(a,b){this.previous=null,a&&this.current&&(this.mixDuration=this.data.getMix(this.current,a),this.mixDuration>0&&(this.mixTime=0,this.previous=this.current,this.previousTime=this.currentTime,this.previousLoop=this.currentLoop)),this.current=a,this.currentLoop=b,this.currentTime=0 +},setAnimationByName:function(a,b){var c=this.data.skeletonData.findAnimation(a);if(!c)throw"Animation not found: "+a;this.setAnimation(c,b)},setAnimation:function(a,b){this.queue.length=0,this._setAnimation(a,b)},addAnimationByName:function(a,b,c){var d=this.data.skeletonData.findAnimation(a);if(!d)throw"Animation not found: "+a;this.addAnimation(d,b,c)},addAnimation:function(a,b,c){var d={};if(d.animation=a,d.loop=b,!c||0>=c){var e=this.queue.length?this.queue[this.queue.length-1].animation:this.current;c=null!=e?e.duration-this.data.getMix(e,a)+(c||0):0}d.delay=c,this.queue.push(d)},isComplete:function(){return!this.current||this.currentTime>=this.current.duration}},j.SkeletonJson=function(a){this.attachmentLoader=a},j.SkeletonJson.prototype={scale:1,readSkeletonData:function(a){for(var b,c=new j.SkeletonData,d=a.bones,e=0,f=d.length;f>e;e++){var g=d[e],h=null;if(g.parent&&(h=c.findBone(g.parent),!h))throw"Parent bone not found: "+g.parent;b=new j.BoneData(g.name,h),b.length=(g.length||0)*this.scale,b.x=(g.x||0)*this.scale,b.y=(g.y||0)*this.scale,b.rotation=g.rotation||0,b.scaleX=g.scaleX||1,b.scaleY=g.scaleY||1,c.bones.push(b)}var i=a.slots;for(e=0,f=i.length;f>e;e++){var k=i[e];if(b=c.findBone(k.bone),!b)throw"Slot bone not found: "+k.bone;var l=new j.SlotData(k.name,b),m=k.color;m&&(l.r=j.SkeletonJson.toColor(m,0),l.g=j.SkeletonJson.toColor(m,1),l.b=j.SkeletonJson.toColor(m,2),l.a=j.SkeletonJson.toColor(m,3)),l.attachmentName=k.attachment,c.slots.push(l)}var n=a.skins;for(var o in n)if(n.hasOwnProperty(o)){var p=n[o],q=new j.Skin(o);for(var r in p)if(p.hasOwnProperty(r)){var s=c.findSlotIndex(r),t=p[r];for(var u in t)if(t.hasOwnProperty(u)){var v=this.readAttachment(q,u,t[u]);null!=v&&q.addAttachment(s,u,v)}}c.skins.push(q),"default"==q.name&&(c.defaultSkin=q)}var w=a.animations;for(var x in w)w.hasOwnProperty(x)&&this.readAnimation(x,w[x],c);return c},readAttachment:function(a,b,c){b=c.name||b;var d=j.AttachmentType[c.type||"region"];if(d==j.AttachmentType.region){var e=new j.RegionAttachment;return e.x=(c.x||0)*this.scale,e.y=(c.y||0)*this.scale,e.scaleX=c.scaleX||1,e.scaleY=c.scaleY||1,e.rotation=c.rotation||0,e.width=(c.width||32)*this.scale,e.height=(c.height||32)*this.scale,e.updateOffset(),e.rendererObject={},e.rendererObject.name=b,e.rendererObject.scale={},e.rendererObject.scale.x=e.scaleX,e.rendererObject.scale.y=e.scaleY,e.rendererObject.rotation=-e.rotation*Math.PI/180,e}throw"Unknown attachment type: "+d},readAnimation:function(a,b,c){var d,e,f,g,h,i,k,l=[],m=0,n=b.bones;for(var o in n)if(n.hasOwnProperty(o)){var p=c.findBoneIndex(o);if(-1==p)throw"Bone not found: "+o;var q=n[o];for(f in q)if(q.hasOwnProperty(f))if(h=q[f],"rotate"==f){for(e=new j.RotateTimeline(h.length),e.boneIndex=p,d=0,i=0,k=h.length;k>i;i++)g=h[i],e.setFrame(d,g.time,g.angle),j.SkeletonJson.readCurve(e,d,g),d++;l.push(e),m=Math.max(m,e.frames[2*e.getFrameCount()-2])}else{if("translate"!=f&&"scale"!=f)throw"Invalid timeline type for a bone: "+f+" ("+o+")";var r=1;for("scale"==f?e=new j.ScaleTimeline(h.length):(e=new j.TranslateTimeline(h.length),r=this.scale),e.boneIndex=p,d=0,i=0,k=h.length;k>i;i++){g=h[i];var s=(g.x||0)*r,t=(g.y||0)*r;e.setFrame(d,g.time,s,t),j.SkeletonJson.readCurve(e,d,g),d++}l.push(e),m=Math.max(m,e.frames[3*e.getFrameCount()-3])}}var u=b.slots;for(var v in u)if(u.hasOwnProperty(v)){var w=u[v],x=c.findSlotIndex(v);for(f in w)if(w.hasOwnProperty(f))if(h=w[f],"color"==f){for(e=new j.ColorTimeline(h.length),e.slotIndex=x,d=0,i=0,k=h.length;k>i;i++){g=h[i];var y=g.color,z=j.SkeletonJson.toColor(y,0),A=j.SkeletonJson.toColor(y,1),B=j.SkeletonJson.toColor(y,2),C=j.SkeletonJson.toColor(y,3);e.setFrame(d,g.time,z,A,B,C),j.SkeletonJson.readCurve(e,d,g),d++}l.push(e),m=Math.max(m,e.frames[5*e.getFrameCount()-5])}else{if("attachment"!=f)throw"Invalid timeline type for a slot: "+f+" ("+v+")";for(e=new j.AttachmentTimeline(h.length),e.slotIndex=x,d=0,i=0,k=h.length;k>i;i++)g=h[i],e.setFrame(d++,g.time,g.name);l.push(e),m=Math.max(m,e.frames[e.getFrameCount()-1])}}c.animations.push(new j.Animation(a,l,m))}},j.SkeletonJson.readCurve=function(a,b,c){var d=c.curve;d&&("stepped"==d?a.curves.setStepped(b):d instanceof Array&&a.curves.setCurve(b,d[0],d[1],d[2],d[3]))},j.SkeletonJson.toColor=function(a,b){if(8!=a.length)throw"Color hexidecimal length must be 8, recieved: "+a;return parseInt(a.substring(2*b,2),16)/255},j.Atlas=function(a,b){this.textureLoader=b,this.pages=[],this.regions=[];var c=new j.AtlasReader(a),d=[];d.length=4;for(var e=null;;){var f=c.readLine();if(null==f)break;if(f=c.trim(f),f.length)if(e){var g=new j.AtlasRegion;g.name=f,g.page=e,g.rotate="true"==c.readValue(),c.readTuple(d);var h=parseInt(d[0],10),i=parseInt(d[1],10);c.readTuple(d);var k=parseInt(d[0],10),l=parseInt(d[1],10);g.u=h/e.width,g.v=i/e.height,g.rotate?(g.u2=(h+l)/e.width,g.v2=(i+k)/e.height):(g.u2=(h+k)/e.width,g.v2=(i+l)/e.height),g.x=h,g.y=i,g.width=Math.abs(k),g.height=Math.abs(l),4==c.readTuple(d)&&(g.splits=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10),parseInt(d[3],10)],4==c.readTuple(d)&&(g.pads=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10),parseInt(d[3],10)],c.readTuple(d))),g.originalWidth=parseInt(d[0],10),g.originalHeight=parseInt(d[1],10),c.readTuple(d),g.offsetX=parseInt(d[0],10),g.offsetY=parseInt(d[1],10),g.index=parseInt(c.readValue(),10),this.regions.push(g)}else{e=new j.AtlasPage,e.name=f,e.format=j.Atlas.Format[c.readValue()],c.readTuple(d),e.minFilter=j.Atlas.TextureFilter[d[0]],e.magFilter=j.Atlas.TextureFilter[d[1]];var m=c.readValue();e.uWrap=j.Atlas.TextureWrap.clampToEdge,e.vWrap=j.Atlas.TextureWrap.clampToEdge,"x"==m?e.uWrap=j.Atlas.TextureWrap.repeat:"y"==m?e.vWrap=j.Atlas.TextureWrap.repeat:"xy"==m&&(e.uWrap=e.vWrap=j.Atlas.TextureWrap.repeat),b.load(e,f),this.pages.push(e)}else e=null}},j.Atlas.prototype={findRegion:function(a){for(var b=this.regions,c=0,d=b.length;d>c;c++)if(b[c].name==a)return b[c];return null},dispose:function(){for(var a=this.pages,b=0,c=a.length;c>b;b++)this.textureLoader.unload(a[b].rendererObject)},updateUVs:function(a){for(var b=this.regions,c=0,d=b.length;d>c;c++){var e=b[c];e.page==a&&(e.u=e.x/a.width,e.v=e.y/a.height,e.rotate?(e.u2=(e.x+e.height)/a.width,e.v2=(e.y+e.width)/a.height):(e.u2=(e.x+e.width)/a.width,e.v2=(e.y+e.height)/a.height))}}},j.Atlas.Format={alpha:0,intensity:1,luminanceAlpha:2,rgb565:3,rgba4444:4,rgb888:5,rgba8888:6},j.Atlas.TextureFilter={nearest:0,linear:1,mipMap:2,mipMapNearestNearest:3,mipMapLinearNearest:4,mipMapNearestLinear:5,mipMapLinearLinear:6},j.Atlas.TextureWrap={mirroredRepeat:0,clampToEdge:1,repeat:2},j.AtlasPage=function(){},j.AtlasPage.prototype={name:null,format:null,minFilter:null,magFilter:null,uWrap:null,vWrap:null,rendererObject:null,width:0,height:0},j.AtlasRegion=function(){},j.AtlasRegion.prototype={page:null,name:null,x:0,y:0,width:0,height:0,u:0,v:0,u2:0,v2:0,offsetX:0,offsetY:0,originalWidth:0,originalHeight:0,index:0,rotate:!1,splits:null,pads:null},j.AtlasReader=function(a){this.lines=a.split(/\r\n|\r|\n/)},j.AtlasReader.prototype={index:0,trim:function(a){return a.replace(/^\s+|\s+$/g,"")},readLine:function(){return this.index>=this.lines.length?null:this.lines[this.index++]},readValue:function(){var a=this.readLine(),b=a.indexOf(":");if(-1==b)throw"Invalid line: "+a;return this.trim(a.substring(b+1))},readTuple:function(a){var b=this.readLine(),c=b.indexOf(":");if(-1==c)throw"Invalid line: "+b;for(var d=0,e=c+1;3>d;d++){var f=b.indexOf(",",e);if(-1==f){if(!d)throw"Invalid line: "+b;break}a[d]=this.trim(b.substr(e,f-e)),e=f+1}return a[d]=this.trim(b.substring(e)),d+1}},j.AtlasAttachmentLoader=function(a){this.atlas=a},j.AtlasAttachmentLoader.prototype={newAttachment:function(a,b,c){switch(b){case j.AttachmentType.region:var d=this.atlas.findRegion(c);if(!d)throw"Region not found in atlas: "+c+" ("+b+")";var e=new j.RegionAttachment(c);return e.rendererObject=d,e.setUVs(d.u,d.v,d.u2,d.v2,d.rotate),e.regionOffsetX=d.offsetX,e.regionOffsetY=d.offsetY,e.regionWidth=d.width,e.regionHeight=d.height,e.regionOriginalWidth=d.originalWidth,e.regionOriginalHeight=d.originalHeight,e}throw"Unknown attachment type: "+b}},j.Bone.yDown=!0,e.AnimCache={},e.Spine=function(a){if(e.DisplayObjectContainer.call(this),this.spineData=e.AnimCache[a],!this.spineData)throw new Error("Spine data must be preloaded using PIXI.SpineLoader or PIXI.AssetLoader: "+a);this.skeleton=new j.Skeleton(this.spineData),this.skeleton.updateWorldTransform(),this.stateData=new j.AnimationStateData(this.spineData),this.state=new j.AnimationState(this.stateData),this.slotContainers=[];for(var b=0,c=this.skeleton.drawOrder.length;c>b;b++){var d=this.skeleton.drawOrder[b],f=d.attachment,g=new e.DisplayObjectContainer;if(this.slotContainers.push(g),this.addChild(g),f instanceof j.RegionAttachment){var h=f.rendererObject.name,i=this.createSprite(d,f.rendererObject);d.currentSprite=i,d.currentSpriteName=h,g.addChild(i)}}},e.Spine.prototype=Object.create(e.DisplayObjectContainer.prototype),e.Spine.prototype.constructor=e.Spine,e.Spine.prototype.updateTransform=function(){this.lastTime=this.lastTime||Date.now();var a=.001*(Date.now()-this.lastTime);this.lastTime=Date.now(),this.state.update(a),this.state.apply(this.skeleton),this.skeleton.updateWorldTransform();for(var b=this.skeleton.drawOrder,c=0,d=b.length;d>c;c++){var f=b[c],g=f.attachment,h=this.slotContainers[c];if(g instanceof j.RegionAttachment){if(g.rendererObject&&(!f.currentSpriteName||f.currentSpriteName!=g.name)){var i=g.rendererObject.name;if(void 0!==f.currentSprite&&(f.currentSprite.visible=!1),f.sprites=f.sprites||{},void 0!==f.sprites[i])f.sprites[i].visible=!0;else{var k=this.createSprite(f,g.rendererObject);h.addChild(k)}f.currentSprite=f.sprites[i],f.currentSpriteName=i}h.visible=!0;var l=f.bone;h.position.x=l.worldX+g.x*l.m00+g.y*l.m01,h.position.y=l.worldY+g.x*l.m10+g.y*l.m11,h.scale.x=l.worldScaleX,h.scale.y=l.worldScaleY,h.rotation=-(f.bone.worldRotation*Math.PI/180)}else h.visible=!1}e.DisplayObjectContainer.prototype.updateTransform.call(this)},e.Spine.prototype.createSprite=function(a,b){var c=e.TextureCache[b.name]?b.name:b.name+".png",d=new e.Sprite(e.Texture.fromFrame(c));return d.scale=b.scale,d.rotation=b.rotation,d.anchor.x=d.anchor.y=.5,a.sprites=a.sprites||{},a.sprites[b.name]=d,d},e.BaseTextureCache={},e.texturesToUpdate=[],e.texturesToDestroy=[],e.BaseTexture=function(a,b){if(e.EventTarget.call(this),this.width=100,this.height=100,this.scaleMode=b||e.BaseTexture.SCALE_MODE.DEFAULT,this.hasLoaded=!1,this.source=a,a){if(this.source instanceof Image||this.source instanceof HTMLImageElement)if(this.source.complete)this.hasLoaded=!0,this.width=this.source.width,this.height=this.source.height,e.texturesToUpdate.push(this);else{var c=this;this.source.onload=function(){c.hasLoaded=!0,c.width=c.source.width,c.height=c.source.height,e.texturesToUpdate.push(c),c.dispatchEvent({type:"loaded",content:c})}}else this.hasLoaded=!0,this.width=this.source.width,this.height=this.source.height,e.texturesToUpdate.push(this);this.imageUrl=null,this._powerOf2=!1,this._glTextures=[]}},e.BaseTexture.prototype.constructor=e.BaseTexture,e.BaseTexture.prototype.destroy=function(){this.source instanceof Image&&(this.imageUrl in e.BaseTextureCache&&delete e.BaseTextureCache[this.imageUrl],this.imageUrl=null,this.source.src=null),this.source=null,e.texturesToDestroy.push(this)},e.BaseTexture.prototype.updateSourceImage=function(a){this.hasLoaded=!1,this.source.src=null,this.source.src=a},e.BaseTexture.fromImage=function(a,b,c){var d=e.BaseTextureCache[a];if(!d){var f=new Image;b&&(f.crossOrigin=""),f.src=a,d=new e.BaseTexture(f,c),d.imageUrl=a,e.BaseTextureCache[a]=d}return d},e.BaseTexture.SCALE_MODE={DEFAULT:0,LINEAR:0,NEAREST:1},e.TextureCache={},e.FrameCache={},e.Texture=function(a,b){if(e.EventTarget.call(this),b||(this.noFrame=!0,b=new e.Rectangle(0,0,1,1)),a instanceof e.Texture&&(a=a.baseTexture),this.baseTexture=a,this.frame=b,this.trim=new e.Point,this.scope=this,a.hasLoaded)this.noFrame&&(b=new e.Rectangle(0,0,a.width,a.height)),this.setFrame(b);else{var c=this;a.addEventListener("loaded",function(){c.onBaseTextureLoaded()})}},e.Texture.prototype.constructor=e.Texture,e.Texture.prototype.onBaseTextureLoaded=function(){var a=this.baseTexture;a.removeEventListener("loaded",this.onLoaded),this.noFrame&&(this.frame=new e.Rectangle(0,0,a.width,a.height)),this.setFrame(this.frame),this.scope.dispatchEvent({type:"update",content:this})},e.Texture.prototype.destroy=function(a){a&&this.baseTexture.destroy()},e.Texture.prototype.setFrame=function(a){if(this.frame=a,this.width=a.width,this.height=a.height,a.x+a.width>this.baseTexture.width||a.y+a.height>this.baseTexture.height)throw new Error("Texture Error: frame does not fit inside the base Texture dimensions "+this);this.updateFrame=!0,e.Texture.frameUpdates.push(this)},e.Texture.prototype._updateWebGLuvs=function(){this._uvs||(this._uvs=new Float32Array(8));var a=this.frame,b=this.baseTexture.width,c=this.baseTexture.height;this._uvs[0]=a.x/b,this._uvs[1]=a.y/c,this._uvs[2]=(a.x+a.width)/b,this._uvs[3]=a.y/c,this._uvs[4]=(a.x+a.width)/b,this._uvs[5]=(a.y+a.height)/c,this._uvs[6]=a.x/b,this._uvs[7]=(a.y+a.height)/c},e.Texture.fromImage=function(a,b,c){var d=e.TextureCache[a];return d||(d=new e.Texture(e.BaseTexture.fromImage(a,b,c)),e.TextureCache[a]=d),d},e.Texture.fromFrame=function(a){var b=e.TextureCache[a];if(!b)throw new Error('The frameId "'+a+'" does not exist in the texture cache '+this);return b},e.Texture.fromCanvas=function(a,b){var c=new e.BaseTexture(a,b);return new e.Texture(c)},e.Texture.addTextureToCache=function(a,b){e.TextureCache[b]=a},e.Texture.removeTextureFromCache=function(a){var b=e.TextureCache[a];return e.TextureCache[a]=null,b},e.Texture.frameUpdates=[],e.Texture.SCALE_MODE=e.BaseTexture.SCALE_MODE,e.RenderTexture=function(a,b,c){if(e.EventTarget.call(this),this.width=a||100,this.height=b||100,this.indetityMatrix=e.mat3.create(),this.frame=new e.Rectangle(0,0,this.width,this.height),this.baseTexture=new e.BaseTexture,this.baseTexture.width=this.width,this.baseTexture.height=this.height,this.baseTexture._glTextures=[],this.baseTexture.hasLoaded=!0,this.renderer=c||e.defaultRenderer,this.renderer.type===e.WEBGL_RENDERER){var d=this.renderer.gl;this.textureBuffer=new e.FilterTexture(d,this.width,this.height),this.baseTexture._glTextures[d.id]=this.textureBuffer.texture,this.render=this.renderWebGL,this.projection=new e.Point(this.width/2,-this.height/2)}else this.render=this.renderCanvas,this.textureBuffer=new e.CanvasBuffer(this.width,this.height),this.baseTexture.source=this.textureBuffer.canvas;e.Texture.frameUpdates.push(this)},e.RenderTexture.prototype=Object.create(e.Texture.prototype),e.RenderTexture.prototype.constructor=e.RenderTexture,e.RenderTexture.prototype.resize=function(a,b){if(this.width=a,this.height=b,this.frame.width=this.width,this.frame.height=this.height,this.renderer.type===e.WEBGL_RENDERER){this.projection.x=this.width/2,this.projection.y=-this.height/2;var c=this.gl;c.bindTexture(c.TEXTURE_2D,this.baseTexture._glTextures[c.id]),c.texImage2D(c.TEXTURE_2D,0,c.RGBA,this.width,this.height,0,c.RGBA,c.UNSIGNED_BYTE,null)}else this.textureBuffer.resize(this.width,this.height);e.Texture.frameUpdates.push(this)},e.RenderTexture.prototype.renderWebGL=function(a,b,c){var d=this.renderer.gl;d.colorMask(!0,!0,!0,!0),d.viewport(0,0,this.width,this.height),d.bindFramebuffer(d.FRAMEBUFFER,this.textureBuffer.frameBuffer),c&&this.textureBuffer.clear();var f=a.children,g=a.worldTransform;a.worldTransform=e.mat3.create(),a.worldTransform[4]=-1,a.worldTransform[5]=-2*this.projection.y,b&&(a.worldTransform[2]=b.x,a.worldTransform[5]-=b.y),e.visibleCount++,a.vcount=e.visibleCount;for(var h=0,i=f.length;i>h;h++)f[h].updateTransform();this.renderer.renderDisplayObject(a,this.projection),a.worldTransform=g},e.RenderTexture.prototype.renderCanvas=function(a,b,c){var d=a.children;a.worldTransform=e.mat3.create(),b&&(a.worldTransform[2]=b.x,a.worldTransform[5]=b.y);for(var f=0,g=d.length;g>f;f++)d[f].updateTransform();c&&this.textureBuffer.clear();var h=this.textureBuffer.context;this.renderer.renderDisplayObject(a,h),h.setTransform(1,0,0,1,0,0)},e.AssetLoader=function(a,b){e.EventTarget.call(this),this.assetURLs=a,this.crossorigin=b,this.loadersByType={jpg:e.ImageLoader,jpeg:e.ImageLoader,png:e.ImageLoader,gif:e.ImageLoader,json:e.JsonLoader,atlas:e.AtlasLoader,anim:e.SpineLoader,xml:e.BitmapFontLoader,fnt:e.BitmapFontLoader}},e.AssetLoader.prototype.constructor=e.AssetLoader,e.AssetLoader.prototype._getDataType=function(a){var b="data:",c=a.slice(0,b.length).toLowerCase();if(c===b){var d=a.slice(b.length),e=d.indexOf(",");if(-1===e)return null;var f=d.slice(0,e).split(";")[0];return f&&"text/plain"!==f.toLowerCase()?f.split("/").pop().toLowerCase():"txt"}return null},e.AssetLoader.prototype.load=function(){function a(){b.onAssetLoaded()}var b=this;this.loadCount=this.assetURLs.length;for(var c=0;c0){if(f===g)this.atlas.meta.image.push(a[g]),c=this.atlas.meta.image.length-1,this.atlas.frames.push({}),b=-3;else if(b>0)if(b%7===1)null!=d&&(this.atlas.frames[c][d.name]=d),d={name:a[g],frame:{}};else{var j=a[g].split(" ");if(b%7===3)d.frame.x=Number(j[1].replace(",","")),d.frame.y=Number(j[2]);else if(b%7===4)d.frame.w=Number(j[1].replace(",","")),d.frame.h=Number(j[2]);else if(b%7===5){var k={x:0,y:0,w:Number(j[1].replace(",","")),h:Number(j[2])};k.w>d.frame.w||k.h>d.frame.h?(d.trimmed=!0,d.realSize=k):d.trimmed=!1}}b++}if(null!=d&&(this.atlas.frames[c][d.name]=d),this.atlas.meta.image.length>0){for(this.images=[],h=0;hthis.currentImageId?(this.currentImageId++,this.images[this.currentImageId].load()):(this.loaded=!0,this.dispatchEvent({type:"loaded",content:this}))},e.AtlasLoader.prototype.onError=function(){this.dispatchEvent({type:"error",content:this})},e.SpriteSheetLoader=function(a,b){e.EventTarget.call(this),this.url=a,this.crossorigin=b,this.baseUrl=a.replace(/[^\/]*$/,""),this.texture=null,this.frames={}},e.SpriteSheetLoader.prototype.constructor=e.SpriteSheetLoader,e.SpriteSheetLoader.prototype.load=function(){var a=this,b=new e.JsonLoader(this.url,this.crossorigin);b.addEventListener("loaded",function(b){a.json=b.content.json,a.onJSONLoaded()}),b.load()},e.SpriteSheetLoader.prototype.onJSONLoaded=function(){var a=this,b=this.baseUrl+this.json.meta.image,c=new e.ImageLoader(b,this.crossorigin),d=this.json.frames;this.texture=c.texture.baseTexture,c.addEventListener("loaded",function(){a.onLoaded()});for(var f in d){var g=d[f].frame;g&&(e.TextureCache[f]=new e.Texture(this.texture,{x:g.x,y:g.y,width:g.w,height:g.h}),d[f].trimmed&&(e.TextureCache[f].realSize=d[f].spriteSourceSize,e.TextureCache[f].trim.x=0))}c.load()},e.SpriteSheetLoader.prototype.onLoaded=function(){this.dispatchEvent({type:"loaded",content:this})},e.ImageLoader=function(a,b){e.EventTarget.call(this),this.texture=e.Texture.fromImage(a,b),this.frames=[]},e.ImageLoader.prototype.constructor=e.ImageLoader,e.ImageLoader.prototype.load=function(){if(this.texture.baseTexture.hasLoaded)this.onLoaded();else{var a=this;this.texture.baseTexture.addEventListener("loaded",function(){a.onLoaded()})}},e.ImageLoader.prototype.onLoaded=function(){this.dispatchEvent({type:"loaded",content:this})},e.ImageLoader.prototype.loadFramedSpriteSheet=function(a,b,c){this.frames=[];for(var d=Math.floor(this.texture.width/a),f=Math.floor(this.texture.height/b),g=0,h=0;f>h;h++)for(var i=0;d>i;i++,g++){var j=new e.Texture(this.texture,{x:i*a,y:h*b,width:a,height:b});this.frames.push(j),c&&(e.TextureCache[c+"-"+g]=j)}if(this.texture.baseTexture.hasLoaded)this.onLoaded();else{var k=this;this.texture.baseTexture.addEventListener("loaded",function(){k.onLoaded()})}},e.BitmapFontLoader=function(a,b){e.EventTarget.call(this),this.url=a,this.crossorigin=b,this.baseUrl=a.replace(/[^\/]*$/,""),this.texture=null},e.BitmapFontLoader.prototype.constructor=e.BitmapFontLoader,e.BitmapFontLoader.prototype.load=function(){this.ajaxRequest=new XMLHttpRequest;var a=this;this.ajaxRequest.onreadystatechange=function(){a.onXMLLoaded()},this.ajaxRequest.open("GET",this.url,!0),this.ajaxRequest.overrideMimeType&&this.ajaxRequest.overrideMimeType("application/xml"),this.ajaxRequest.send(null)},e.BitmapFontLoader.prototype.onXMLLoaded=function(){if(4===this.ajaxRequest.readyState&&(200===this.ajaxRequest.status||-1===window.location.protocol.indexOf("http"))){var a=this.baseUrl+this.ajaxRequest.responseXML.getElementsByTagName("page")[0].attributes.getNamedItem("file").nodeValue,b=new e.ImageLoader(a,this.crossorigin);this.texture=b.texture.baseTexture;var c={},d=this.ajaxRequest.responseXML.getElementsByTagName("info")[0],f=this.ajaxRequest.responseXML.getElementsByTagName("common")[0];c.font=d.attributes.getNamedItem("face").nodeValue,c.size=parseInt(d.attributes.getNamedItem("size").nodeValue,10),c.lineHeight=parseInt(f.attributes.getNamedItem("lineHeight").nodeValue,10),c.chars={};for(var g=this.ajaxRequest.responseXML.getElementsByTagName("char"),h=0;h - AbstractFilter - Pixi.JS + AbstractFilter - pixi.js @@ -15,7 +15,7 @@
-

+

@@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/AssetLoader.html b/docs/classes/AssetLoader.html index 846fece..4244c5f 100644 --- a/docs/classes/AssetLoader.html +++ b/docs/classes/AssetLoader.html @@ -2,7 +2,7 @@ - AssetLoader - Pixi.JS + AssetLoader - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/AtlasLoader.html b/docs/classes/AtlasLoader.html index d1969e5..cdb5cc7 100644 --- a/docs/classes/AtlasLoader.html +++ b/docs/classes/AtlasLoader.html @@ -2,7 +2,7 @@ - AtlasLoader - Pixi.JS + AtlasLoader - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/BaseTexture.html b/docs/classes/BaseTexture.html index 3143731..216a2cd 100644 --- a/docs/classes/BaseTexture.html +++ b/docs/classes/BaseTexture.html @@ -2,7 +2,7 @@ - BaseTexture - Pixi.JS + BaseTexture - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/BitmapFontLoader.html b/docs/classes/BitmapFontLoader.html index ac81380..013b426 100644 --- a/docs/classes/BitmapFontLoader.html +++ b/docs/classes/BitmapFontLoader.html @@ -2,7 +2,7 @@ - BitmapFontLoader - Pixi.JS + BitmapFontLoader - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/BitmapText.html b/docs/classes/BitmapText.html index e006905..e9fc942 100644 --- a/docs/classes/BitmapText.html +++ b/docs/classes/BitmapText.html @@ -2,7 +2,7 @@ - BitmapText - Pixi.JS + BitmapText - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -560,6 +562,13 @@ You can generate the fnt files using + + +
  • + defaultCursor + + +
  • @@ -686,6 +695,13 @@ You can generate the fnt files using +
  • + +
  • + worldVisible + + +
  • @@ -741,7 +757,7 @@ You can generate the fnt files using - src/pixi/display/DisplayObjectContainer.js:69 + src/pixi/display/DisplayObjectContainer.js:70

    @@ -833,7 +849,7 @@ You can generate the fnt files using - src/pixi/display/DisplayObjectContainer.js:94 + src/pixi/display/DisplayObjectContainer.js:95

    @@ -935,7 +951,7 @@ You can generate the fnt files using - src/pixi/display/DisplayObject.js:185 + src/pixi/display/DisplayObject.js:193

    @@ -1020,7 +1036,7 @@ You can generate the fnt files using - src/pixi/display/DisplayObjectContainer.js:148 + src/pixi/display/DisplayObjectContainer.js:149

    @@ -1106,7 +1122,7 @@ You can generate the fnt files using - src/pixi/display/DisplayObject.js:191 + src/pixi/display/DisplayObject.js:199

    @@ -1191,7 +1207,7 @@ You can generate the fnt files using - src/pixi/display/DisplayObject.js:217 + src/pixi/display/DisplayObject.js:225

    @@ -1276,7 +1292,7 @@ You can generate the fnt files using - src/pixi/display/DisplayObject.js:211 + src/pixi/display/DisplayObject.js:219

    @@ -1361,7 +1377,7 @@ You can generate the fnt files using - src/pixi/display/DisplayObject.js:197 + src/pixi/display/DisplayObject.js:205

    @@ -1447,7 +1463,7 @@ for this callback to be fired the mouse must have been pressed down over the dis - src/pixi/display/DisplayObject.js:204 + src/pixi/display/DisplayObject.js:212

    @@ -1533,7 +1549,7 @@ for this callback to be fired, The touch must have started over the displayObjec - src/pixi/display/DisplayObjectContainer.js:166 + src/pixi/display/DisplayObjectContainer.js:167

    @@ -1621,7 +1637,7 @@ for this callback to be fired, The touch must have started over the displayObjec - src/pixi/display/DisplayObject.js:258 + src/pixi/display/DisplayObject.js:266

    @@ -1928,7 +1944,7 @@ Instead of using this function you can now simply set the interactive property t - src/pixi/display/DisplayObjectContainer.js:122 + src/pixi/display/DisplayObjectContainer.js:123

    @@ -2028,7 +2044,7 @@ Instead of using this function you can now simply set the interactive property t - src/pixi/display/DisplayObject.js:228 + src/pixi/display/DisplayObject.js:236

    @@ -2114,7 +2130,7 @@ basically a touch version of click

    - src/pixi/display/DisplayObject.js:241 + src/pixi/display/DisplayObject.js:249

    @@ -2199,7 +2215,7 @@ basically a touch version of click

    - src/pixi/display/DisplayObject.js:247 + src/pixi/display/DisplayObject.js:255

    @@ -2285,7 +2301,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:235 + src/pixi/display/DisplayObject.js:243

    @@ -2645,7 +2661,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:147 + src/pixi/display/DisplayObject.js:154

    @@ -2664,6 +2680,48 @@ for this callback to be fired, The touch must have started over the sprite

    +
    + + +
    +

    defaultCursor

    + String + + + + + + + + + +
    + + +

    Inherited from + DisplayObject: + + + + src/pixi/display/DisplayObject.js:125 + +

    + + + + +
    + +
    +

    This is the curser that will be used when the mouse is over this object. To enable this the element must have interaction = true and buttonMode = true

    + +
    + + + + + +
    @@ -2689,7 +2747,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:156 + src/pixi/display/DisplayObject.js:163

    @@ -2731,7 +2789,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:314 + src/pixi/display/DisplayObject.js:340

    @@ -2777,7 +2835,7 @@ To remove filters simply set this property to 'null' - src/pixi/display/DisplayObjectContainer.js:50 + src/pixi/display/DisplayObjectContainer.js:51

    @@ -2862,7 +2920,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:271 + src/pixi/display/DisplayObject.js:279

    @@ -2908,7 +2966,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:137 + src/pixi/display/DisplayObject.js:144

    @@ -2950,7 +3008,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:291 + src/pixi/display/DisplayObject.js:320

    @@ -3416,7 +3474,7 @@ To remove a mask, set this property to null.

    - src/pixi/display/DisplayObject.js:127 + src/pixi/display/DisplayObject.js:134

    @@ -3435,6 +3493,48 @@ To remove a mask, set this property to null.

    +
    + + +
    +

    worldVisible

    + Boolean + + + + + + + + + +
    + + +

    Inherited from + DisplayObject: + + + + src/pixi/display/DisplayObject.js:299 + +

    + + + + +
    + +
    +

    [read-only] Indicates if the sprite is globaly visible.

    + +
    + + + + + +
    diff --git a/docs/classes/BlurFilter.html b/docs/classes/BlurFilter.html index 69b02d8..fde23e7 100644 --- a/docs/classes/BlurFilter.html +++ b/docs/classes/BlurFilter.html @@ -2,7 +2,7 @@ - BlurFilter - Pixi.JS + BlurFilter - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/CanvasGraphics.html b/docs/classes/CanvasGraphics.html index d27a00f..dd09c1f 100644 --- a/docs/classes/CanvasGraphics.html +++ b/docs/classes/CanvasGraphics.html @@ -2,7 +2,7 @@ - CanvasGraphics - Pixi.JS + CanvasGraphics - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -342,7 +344,7 @@ - src/pixi/renderers/webgl/utils/WebGLGraphics.js:207 + src/pixi/renderers/webgl/utils/WebGLGraphics.js:206

    @@ -455,7 +457,7 @@ - src/pixi/renderers/webgl/utils/WebGLGraphics.js:276 + src/pixi/renderers/webgl/utils/WebGLGraphics.js:275

    @@ -568,7 +570,7 @@ - src/pixi/renderers/webgl/utils/WebGLGraphics.js:486 + src/pixi/renderers/webgl/utils/WebGLGraphics.js:485

    @@ -681,7 +683,7 @@ - src/pixi/renderers/webgl/utils/WebGLGraphics.js:143 + src/pixi/renderers/webgl/utils/WebGLGraphics.js:142

    @@ -901,7 +903,7 @@ - src/pixi/renderers/webgl/utils/WebGLGraphics.js:89 + src/pixi/renderers/webgl/utils/WebGLGraphics.js:88

    diff --git a/docs/classes/CanvasRenderer.html b/docs/classes/CanvasRenderer.html index ace7aa5..272b7d9 100644 --- a/docs/classes/CanvasRenderer.html +++ b/docs/classes/CanvasRenderer.html @@ -2,7 +2,7 @@ - CanvasRenderer - Pixi.JS + CanvasRenderer - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/Circle.html b/docs/classes/Circle.html index f4d13c5..9e7f851 100644 --- a/docs/classes/Circle.html +++ b/docs/classes/Circle.html @@ -2,7 +2,7 @@ - Circle - Pixi.JS + Circle - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/ColorMatrixFilter.html b/docs/classes/ColorMatrixFilter.html index 11148fe..bcd9f7c 100644 --- a/docs/classes/ColorMatrixFilter.html +++ b/docs/classes/ColorMatrixFilter.html @@ -2,7 +2,7 @@ - ColorMatrixFilter - Pixi.JS + ColorMatrixFilter - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/ColorStepFilter.html b/docs/classes/ColorStepFilter.html index 4eb88d8..fc9b16c 100644 --- a/docs/classes/ColorStepFilter.html +++ b/docs/classes/ColorStepFilter.html @@ -2,7 +2,7 @@ - ColorStepFilter - Pixi.JS + ColorStepFilter - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/DisplacementFilter.html b/docs/classes/DisplacementFilter.html index 89afcc3..c1ccc34 100644 --- a/docs/classes/DisplacementFilter.html +++ b/docs/classes/DisplacementFilter.html @@ -2,7 +2,7 @@ - DisplacementFilter - Pixi.JS + DisplacementFilter - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/DisplayObject.html b/docs/classes/DisplayObject.html index 0c801ec..1e75486 100644 --- a/docs/classes/DisplayObject.html +++ b/docs/classes/DisplayObject.html @@ -2,7 +2,7 @@ - DisplayObject - Pixi.JS + DisplayObject - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -394,6 +396,13 @@ + + +
  • + defaultCursor + + +
  • @@ -506,6 +515,13 @@ +
  • + +
  • + worldVisible + + +
  • @@ -564,7 +580,7 @@ - src/pixi/display/DisplayObject.js:185 + src/pixi/display/DisplayObject.js:193

    @@ -652,7 +668,7 @@ - src/pixi/display/DisplayObject.js:191 + src/pixi/display/DisplayObject.js:199

    @@ -740,7 +756,7 @@ - src/pixi/display/DisplayObject.js:217 + src/pixi/display/DisplayObject.js:225

    @@ -828,7 +844,7 @@ - src/pixi/display/DisplayObject.js:211 + src/pixi/display/DisplayObject.js:219

    @@ -916,7 +932,7 @@ - src/pixi/display/DisplayObject.js:197 + src/pixi/display/DisplayObject.js:205

    @@ -1005,7 +1021,7 @@ for this callback to be fired the mouse must have been pressed down over the dis - src/pixi/display/DisplayObject.js:204 + src/pixi/display/DisplayObject.js:212

    @@ -1096,7 +1112,7 @@ for this callback to be fired, The touch must have started over the displayObjec - src/pixi/display/DisplayObject.js:258 + src/pixi/display/DisplayObject.js:266

    @@ -1187,7 +1203,7 @@ Instead of using this function you can now simply set the interactive property t - src/pixi/display/DisplayObject.js:228 + src/pixi/display/DisplayObject.js:236

    @@ -1276,7 +1292,7 @@ basically a touch version of click

    - src/pixi/display/DisplayObject.js:241 + src/pixi/display/DisplayObject.js:249

    @@ -1364,7 +1380,7 @@ basically a touch version of click

    - src/pixi/display/DisplayObject.js:247 + src/pixi/display/DisplayObject.js:255

    @@ -1453,7 +1469,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:235 + src/pixi/display/DisplayObject.js:243

    @@ -1669,7 +1685,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:147 + src/pixi/display/DisplayObject.js:154

    @@ -1688,6 +1704,51 @@ for this callback to be fired, The touch must have started over the sprite

    +
    + + +
    +

    defaultCursor

    + String + + + + + + + + + +
    + + + +

    + + Defined in + + + + + src/pixi/display/DisplayObject.js:125 + +

    + + + + +
    + +
    +

    This is the curser that will be used when the mouse is over this object. To enable this the element must have interaction = true and buttonMode = true

    + +
    + + + + + +
    @@ -1716,7 +1777,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:156 + src/pixi/display/DisplayObject.js:163

    @@ -1761,7 +1822,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:314 + src/pixi/display/DisplayObject.js:340

    @@ -1856,7 +1917,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:271 + src/pixi/display/DisplayObject.js:279

    @@ -1905,7 +1966,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:137 + src/pixi/display/DisplayObject.js:144

    @@ -1950,7 +2011,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:291 + src/pixi/display/DisplayObject.js:320

    @@ -2404,7 +2465,7 @@ To remove a mask, set this property to null.

    - src/pixi/display/DisplayObject.js:127 + src/pixi/display/DisplayObject.js:134

    @@ -2423,6 +2484,51 @@ To remove a mask, set this property to null.

    +
    + + +
    +

    worldVisible

    + Boolean + + + + + + + + + +
    + + + +

    + + Defined in + + + + + src/pixi/display/DisplayObject.js:299 + +

    + + + + +
    + +
    +

    [read-only] Indicates if the sprite is globaly visible.

    + +
    + + + + + +
    diff --git a/docs/classes/DisplayObjectContainer.html b/docs/classes/DisplayObjectContainer.html index b0a9f66..89919d1 100644 --- a/docs/classes/DisplayObjectContainer.html +++ b/docs/classes/DisplayObjectContainer.html @@ -2,7 +2,7 @@ - DisplayObjectContainer - Pixi.JS + DisplayObjectContainer - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -441,6 +443,13 @@ It is the base class of all display objects that act as a container for other ob + + +
  • + defaultCursor + + +
  • @@ -567,6 +576,13 @@ It is the base class of all display objects that act as a container for other ob +
  • + +
  • + worldVisible + + +
  • @@ -625,7 +641,7 @@ It is the base class of all display objects that act as a container for other ob - src/pixi/display/DisplayObjectContainer.js:69 + src/pixi/display/DisplayObjectContainer.js:70

    @@ -720,7 +736,7 @@ It is the base class of all display objects that act as a container for other ob - src/pixi/display/DisplayObjectContainer.js:94 + src/pixi/display/DisplayObjectContainer.js:95

    @@ -822,7 +838,7 @@ It is the base class of all display objects that act as a container for other ob - src/pixi/display/DisplayObject.js:185 + src/pixi/display/DisplayObject.js:193

    @@ -910,7 +926,7 @@ It is the base class of all display objects that act as a container for other ob - src/pixi/display/DisplayObjectContainer.js:148 + src/pixi/display/DisplayObjectContainer.js:149

    @@ -996,7 +1012,7 @@ It is the base class of all display objects that act as a container for other ob - src/pixi/display/DisplayObject.js:191 + src/pixi/display/DisplayObject.js:199

    @@ -1081,7 +1097,7 @@ It is the base class of all display objects that act as a container for other ob - src/pixi/display/DisplayObject.js:217 + src/pixi/display/DisplayObject.js:225

    @@ -1166,7 +1182,7 @@ It is the base class of all display objects that act as a container for other ob - src/pixi/display/DisplayObject.js:211 + src/pixi/display/DisplayObject.js:219

    @@ -1251,7 +1267,7 @@ It is the base class of all display objects that act as a container for other ob - src/pixi/display/DisplayObject.js:197 + src/pixi/display/DisplayObject.js:205

    @@ -1337,7 +1353,7 @@ for this callback to be fired the mouse must have been pressed down over the dis - src/pixi/display/DisplayObject.js:204 + src/pixi/display/DisplayObject.js:212

    @@ -1426,7 +1442,7 @@ for this callback to be fired, The touch must have started over the displayObjec - src/pixi/display/DisplayObjectContainer.js:166 + src/pixi/display/DisplayObjectContainer.js:167

    @@ -1514,7 +1530,7 @@ for this callback to be fired, The touch must have started over the displayObjec - src/pixi/display/DisplayObject.js:258 + src/pixi/display/DisplayObject.js:266

    @@ -1613,7 +1629,7 @@ Instead of using this function you can now simply set the interactive property t - src/pixi/display/DisplayObjectContainer.js:122 + src/pixi/display/DisplayObjectContainer.js:123

    @@ -1713,7 +1729,7 @@ Instead of using this function you can now simply set the interactive property t - src/pixi/display/DisplayObject.js:228 + src/pixi/display/DisplayObject.js:236

    @@ -1799,7 +1815,7 @@ basically a touch version of click

    - src/pixi/display/DisplayObject.js:241 + src/pixi/display/DisplayObject.js:249

    @@ -1884,7 +1900,7 @@ basically a touch version of click

    - src/pixi/display/DisplayObject.js:247 + src/pixi/display/DisplayObject.js:255

    @@ -1970,7 +1986,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:235 + src/pixi/display/DisplayObject.js:243

    @@ -2219,7 +2235,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:147 + src/pixi/display/DisplayObject.js:154

    @@ -2238,6 +2254,48 @@ for this callback to be fired, The touch must have started over the sprite

    +
    + + +
    +

    defaultCursor

    + String + + + + + + + + + +
    + + +

    Inherited from + DisplayObject: + + + + src/pixi/display/DisplayObject.js:125 + +

    + + + + +
    + +
    +

    This is the curser that will be used when the mouse is over this object. To enable this the element must have interaction = true and buttonMode = true

    + +
    + + + + + +
    @@ -2263,7 +2321,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:156 + src/pixi/display/DisplayObject.js:163

    @@ -2305,7 +2363,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:314 + src/pixi/display/DisplayObject.js:340

    @@ -2354,7 +2412,7 @@ To remove filters simply set this property to 'null' - src/pixi/display/DisplayObjectContainer.js:50 + src/pixi/display/DisplayObjectContainer.js:51

    @@ -2439,7 +2497,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:271 + src/pixi/display/DisplayObject.js:279

    @@ -2485,7 +2543,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:137 + src/pixi/display/DisplayObject.js:144

    @@ -2527,7 +2585,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:291 + src/pixi/display/DisplayObject.js:320

    @@ -2996,7 +3054,7 @@ To remove a mask, set this property to null.

    - src/pixi/display/DisplayObject.js:127 + src/pixi/display/DisplayObject.js:134

    @@ -3015,6 +3073,48 @@ To remove a mask, set this property to null.

    +
    + + +
    +

    worldVisible

    + Boolean + + + + + + + + + +
    + + +

    Inherited from + DisplayObject: + + + + src/pixi/display/DisplayObject.js:299 + +

    + + + + +
    + +
    +

    [read-only] Indicates if the sprite is globaly visible.

    + +
    + + + + + +
    diff --git a/docs/classes/Ellipse.html b/docs/classes/Ellipse.html index f3b146a..46de308 100644 --- a/docs/classes/Ellipse.html +++ b/docs/classes/Ellipse.html @@ -2,7 +2,7 @@ - Ellipse - Pixi.JS + Ellipse - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/EventTarget.html b/docs/classes/EventTarget.html index f94e5a3..5bb814f 100644 --- a/docs/classes/EventTarget.html +++ b/docs/classes/EventTarget.html @@ -2,7 +2,7 @@ - EventTarget - Pixi.JS + EventTarget - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/Graphics.html b/docs/classes/Graphics.html index a3f0b0c..946423c 100644 --- a/docs/classes/Graphics.html +++ b/docs/classes/Graphics.html @@ -2,7 +2,7 @@ - Graphics - Pixi.JS + Graphics - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -512,6 +514,13 @@ Complex polys will not be filled. Heres an example of a complex poly: + defaultCursor + + +
  • @@ -666,6 +675,13 @@ Complex polys will not be filled. Heres an example of a complex poly: + worldVisible + + +
  • @@ -721,7 +737,7 @@ Complex polys will not be filled. Heres an example of a complex poly: src/pixi/display/DisplayObjectContainer.js:69 + src/pixi/display/DisplayObjectContainer.js:70

    @@ -813,7 +829,7 @@ Complex polys will not be filled. Heres an example of a complex poly: src/pixi/display/DisplayObjectContainer.js:94 + src/pixi/display/DisplayObjectContainer.js:95

    @@ -924,7 +940,7 @@ Complex polys will not be filled. Heres an example of a complex poly: src/pixi/primitives/Graphics.js:129 + src/pixi/primitives/Graphics.js:144

    @@ -1020,7 +1036,7 @@ Complex polys will not be filled. Heres an example of a complex poly: src/pixi/primitives/Graphics.js:220 + src/pixi/primitives/Graphics.js:235

    @@ -1082,7 +1098,7 @@ Complex polys will not be filled. Heres an example of a complex poly: src/pixi/display/DisplayObject.js:185 + src/pixi/display/DisplayObject.js:193

    @@ -1182,7 +1198,7 @@ Complex polys will not be filled. Heres an example of a complex poly: src/pixi/primitives/Graphics.js:177 + src/pixi/primitives/Graphics.js:192

    @@ -1321,7 +1337,7 @@ Complex polys will not be filled. Heres an example of a complex poly: src/pixi/primitives/Graphics.js:198 + src/pixi/primitives/Graphics.js:213

    @@ -1472,7 +1488,7 @@ Complex polys will not be filled. Heres an example of a complex poly: src/pixi/primitives/Graphics.js:157 + src/pixi/primitives/Graphics.js:172

    @@ -1598,7 +1614,7 @@ Complex polys will not be filled. Heres an example of a complex poly: src/pixi/primitives/Graphics.js:145 + src/pixi/primitives/Graphics.js:160

    @@ -1660,7 +1676,7 @@ Complex polys will not be filled. Heres an example of a complex poly: src/pixi/display/DisplayObjectContainer.js:148 + src/pixi/display/DisplayObjectContainer.js:149

    @@ -1761,7 +1777,7 @@ Complex polys will not be filled. Heres an example of a complex poly: src/pixi/primitives/Graphics.js:74 + src/pixi/primitives/Graphics.js:89

    @@ -1888,7 +1904,7 @@ Complex polys will not be filled. Heres an example of a complex poly: src/pixi/primitives/Graphics.js:115 + src/pixi/primitives/Graphics.js:130

    @@ -1991,7 +2007,7 @@ the current drawing position is then set to (x, y).

    - src/pixi/display/DisplayObject.js:191 + src/pixi/display/DisplayObject.js:199

    @@ -2076,7 +2092,7 @@ the current drawing position is then set to (x, y).

    - src/pixi/display/DisplayObject.js:217 + src/pixi/display/DisplayObject.js:225

    @@ -2161,7 +2177,7 @@ the current drawing position is then set to (x, y).

    - src/pixi/display/DisplayObject.js:211 + src/pixi/display/DisplayObject.js:219

    @@ -2246,7 +2262,7 @@ the current drawing position is then set to (x, y).

    - src/pixi/display/DisplayObject.js:197 + src/pixi/display/DisplayObject.js:205

    @@ -2332,7 +2348,7 @@ for this callback to be fired the mouse must have been pressed down over the dis - src/pixi/display/DisplayObject.js:204 + src/pixi/display/DisplayObject.js:212

    @@ -2427,7 +2443,7 @@ for this callback to be fired, The touch must have started over the displayObjec - src/pixi/primitives/Graphics.js:96 + src/pixi/primitives/Graphics.js:111

    @@ -2529,7 +2545,7 @@ for this callback to be fired, The touch must have started over the displayObjec - src/pixi/display/DisplayObjectContainer.js:166 + src/pixi/display/DisplayObjectContainer.js:167

    @@ -2617,7 +2633,7 @@ for this callback to be fired, The touch must have started over the displayObjec - src/pixi/display/DisplayObject.js:258 + src/pixi/display/DisplayObject.js:266

    @@ -2713,7 +2729,7 @@ Instead of using this function you can now simply set the interactive property t - src/pixi/display/DisplayObjectContainer.js:122 + src/pixi/display/DisplayObjectContainer.js:123

    @@ -2813,7 +2829,7 @@ Instead of using this function you can now simply set the interactive property t - src/pixi/display/DisplayObject.js:228 + src/pixi/display/DisplayObject.js:236

    @@ -2899,7 +2915,7 @@ basically a touch version of click

    - src/pixi/display/DisplayObject.js:241 + src/pixi/display/DisplayObject.js:249

    @@ -2984,7 +3000,7 @@ basically a touch version of click

    - src/pixi/display/DisplayObject.js:247 + src/pixi/display/DisplayObject.js:255

    @@ -3070,7 +3086,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:235 + src/pixi/display/DisplayObject.js:243

    @@ -3316,7 +3332,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:147 + src/pixi/display/DisplayObject.js:154

    @@ -3382,6 +3398,48 @@ for this callback to be fired, The touch must have started over the sprite

    +
    + + +
    +

    defaultCursor

    + String + + + + + + + + + +
    + + +

    Inherited from + DisplayObject: + + + + src/pixi/display/DisplayObject.js:125 + +

    + + + + +
    + +
    +

    This is the curser that will be used when the mouse is over this object. To enable this the element must have interaction = true and buttonMode = true

    + +
    + + + + + +
    @@ -3407,7 +3465,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:156 + src/pixi/display/DisplayObject.js:163

    @@ -3494,7 +3552,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:314 + src/pixi/display/DisplayObject.js:340

    @@ -3587,7 +3645,7 @@ To remove filters simply set this property to 'null' - src/pixi/display/DisplayObjectContainer.js:50 + src/pixi/display/DisplayObjectContainer.js:51

    @@ -3672,7 +3730,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:271 + src/pixi/display/DisplayObject.js:279

    @@ -3808,7 +3866,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:137 + src/pixi/display/DisplayObject.js:144

    @@ -3850,7 +3908,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:291 + src/pixi/display/DisplayObject.js:320

    @@ -4316,7 +4374,7 @@ To remove a mask, set this property to null.

    - src/pixi/display/DisplayObject.js:127 + src/pixi/display/DisplayObject.js:134

    @@ -4335,6 +4393,48 @@ To remove a mask, set this property to null.

    +
    + + +
    +

    worldVisible

    + Boolean + + + + + + + + + +
    + + +

    Inherited from + DisplayObject: + + + + src/pixi/display/DisplayObject.js:299 + +

    + + + + +
    + +
    +

    [read-only] Indicates if the sprite is globaly visible.

    + +
    + + + + + +
    diff --git a/docs/classes/GrayFilter.html b/docs/classes/GrayFilter.html index d34239e..b5319ce 100644 --- a/docs/classes/GrayFilter.html +++ b/docs/classes/GrayFilter.html @@ -2,7 +2,7 @@ - GrayFilter - Pixi.JS + GrayFilter - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/ImageLoader.html b/docs/classes/ImageLoader.html index e05c328..98ec0ef 100644 --- a/docs/classes/ImageLoader.html +++ b/docs/classes/ImageLoader.html @@ -2,7 +2,7 @@ - ImageLoader - Pixi.JS + ImageLoader - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/InvertFilter.html b/docs/classes/InvertFilter.html index a4d973b..5461cdf 100644 --- a/docs/classes/InvertFilter.html +++ b/docs/classes/InvertFilter.html @@ -2,7 +2,7 @@ - InvertFilter - Pixi.JS + InvertFilter - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/JsonLoader.html b/docs/classes/JsonLoader.html index 2f1ff37..a2bb074 100644 --- a/docs/classes/JsonLoader.html +++ b/docs/classes/JsonLoader.html @@ -2,7 +2,7 @@ - JsonLoader - Pixi.JS + JsonLoader - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/MovieClip.html b/docs/classes/MovieClip.html index a39c0a7..7cdab7c 100644 --- a/docs/classes/MovieClip.html +++ b/docs/classes/MovieClip.html @@ -2,7 +2,7 @@ - MovieClip - Pixi.JS + MovieClip - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/PIXI.PixiShader.html b/docs/classes/PIXI.PixiShader.html index 2ac47b3..c390805 100644 --- a/docs/classes/PIXI.PixiShader.html +++ b/docs/classes/PIXI.PixiShader.html @@ -2,7 +2,7 @@ - PIXI.PixiShader - Pixi.JS + PIXI.PixiShader - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -176,7 +178,7 @@ @@ -230,7 +232,7 @@ - src/pixi/renderers/webgl/PixiShader.js:6 + src/pixi/renderers/webgl/shaders/PixiShader.js:6

    @@ -383,7 +385,7 @@ - src/pixi/renderers/webgl/PixiShader.js:42 + src/pixi/renderers/webgl/shaders/PixiShader.js:42

    @@ -437,7 +439,7 @@ - src/pixi/renderers/webgl/PixiShader.js:150 + src/pixi/renderers/webgl/shaders/PixiShader.js:164

    @@ -492,7 +494,7 @@ - src/pixi/renderers/webgl/PixiShader.js:77 + src/pixi/renderers/webgl/shaders/PixiShader.js:91

    @@ -549,7 +551,7 @@ Uniforms are specified in the GLSL_ES Specification: src/pixi/renderers/webgl/PixiShader.js:225 + src/pixi/renderers/webgl/shaders/PixiShader.js:239

    @@ -603,7 +605,7 @@ Uniforms are specified in the GLSL_ES Specification: src/pixi/renderers/webgl/PixiShader.js:19 + src/pixi/renderers/webgl/shaders/PixiShader.js:19

    @@ -647,7 +649,7 @@ Uniforms are specified in the GLSL_ES Specification: src/pixi/renderers/webgl/PixiShader.js:14 + src/pixi/renderers/webgl/shaders/PixiShader.js:14

    @@ -691,7 +693,7 @@ Uniforms are specified in the GLSL_ES Specification: src/pixi/renderers/webgl/PixiShader.js:33 + src/pixi/renderers/webgl/shaders/PixiShader.js:33

    diff --git a/docs/classes/PixelateFilter.html b/docs/classes/PixelateFilter.html index a23d950..1567bb7 100644 --- a/docs/classes/PixelateFilter.html +++ b/docs/classes/PixelateFilter.html @@ -2,7 +2,7 @@ - PixelateFilter - Pixi.JS + PixelateFilter - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/Point.html b/docs/classes/Point.html index 60f3bfc..6b2bba8 100644 --- a/docs/classes/Point.html +++ b/docs/classes/Point.html @@ -2,7 +2,7 @@ - Point - Pixi.JS + Point - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/PolyK.AjaxRequest.html b/docs/classes/PolyK.AjaxRequest.html index 7ff4f61..96b4d8f 100644 --- a/docs/classes/PolyK.AjaxRequest.html +++ b/docs/classes/PolyK.AjaxRequest.html @@ -2,7 +2,7 @@ - PolyK.AjaxRequest - Pixi.JS + PolyK.AjaxRequest - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/PolyK.InteractionData.html b/docs/classes/PolyK.InteractionData.html index fe90bab..950db55 100644 --- a/docs/classes/PolyK.InteractionData.html +++ b/docs/classes/PolyK.InteractionData.html @@ -2,7 +2,7 @@ - PolyK.InteractionData - Pixi.JS + PolyK.InteractionData - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -176,7 +178,7 @@ @@ -231,7 +233,7 @@ - src/pixi/InteractionManager.js:638 + src/pixi/InteractionManager.js:640

    @@ -377,7 +379,7 @@ - src/pixi/InteractionManager.js:674 + src/pixi/InteractionManager.js:676

    @@ -469,7 +471,7 @@ - src/pixi/InteractionManager.js:646 + src/pixi/InteractionManager.js:648

    @@ -514,7 +516,7 @@ - src/pixi/InteractionManager.js:665 + src/pixi/InteractionManager.js:667

    @@ -559,7 +561,7 @@ - src/pixi/InteractionManager.js:657 + src/pixi/InteractionManager.js:659

    diff --git a/docs/classes/PolyK.InteractionManager.html b/docs/classes/PolyK.InteractionManager.html index f270b0e..ebb85a0 100644 --- a/docs/classes/PolyK.InteractionManager.html +++ b/docs/classes/PolyK.InteractionManager.html @@ -2,7 +2,7 @@ - PolyK.InteractionManager - Pixi.JS + PolyK.InteractionManager - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -978,7 +980,7 @@ This manager also supports multitouch.

    - src/pixi/InteractionManager.js:565 + src/pixi/InteractionManager.js:567

    @@ -1069,7 +1071,7 @@ This manager also supports multitouch.

    - src/pixi/InteractionManager.js:482 + src/pixi/InteractionManager.js:484

    @@ -1160,7 +1162,7 @@ This manager also supports multitouch.

    - src/pixi/InteractionManager.js:516 + src/pixi/InteractionManager.js:518

    diff --git a/docs/classes/PolyK._PointInTriangle.html b/docs/classes/PolyK._PointInTriangle.html index 516bc32..011f0a8 100644 --- a/docs/classes/PolyK._PointInTriangle.html +++ b/docs/classes/PolyK._PointInTriangle.html @@ -2,7 +2,7 @@ - PolyK._PointInTriangle - Pixi.JS + PolyK._PointInTriangle - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/PolyK._convex.html b/docs/classes/PolyK._convex.html index 24df56b..b3112fe 100644 --- a/docs/classes/PolyK._convex.html +++ b/docs/classes/PolyK._convex.html @@ -2,7 +2,7 @@ - PolyK._convex - Pixi.JS + PolyK._convex - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/Polygon.html b/docs/classes/Polygon.html index dd999b8..8ae2af0 100644 --- a/docs/classes/Polygon.html +++ b/docs/classes/Polygon.html @@ -2,7 +2,7 @@ - Polygon - Pixi.JS + Polygon - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/Rectangle.html b/docs/classes/Rectangle.html index b27c3d5..d04a4ef 100644 --- a/docs/classes/Rectangle.html +++ b/docs/classes/Rectangle.html @@ -2,7 +2,7 @@ - Rectangle - Pixi.JS + Rectangle - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/RenderTexture.html b/docs/classes/RenderTexture.html index d26f2a0..52a7cf9 100644 --- a/docs/classes/RenderTexture.html +++ b/docs/classes/RenderTexture.html @@ -2,7 +2,7 @@ - RenderTexture - Pixi.JS + RenderTexture - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/SepiaFilter.html b/docs/classes/SepiaFilter.html index 602c608..b93557c 100644 --- a/docs/classes/SepiaFilter.html +++ b/docs/classes/SepiaFilter.html @@ -2,7 +2,7 @@ - SepiaFilter - Pixi.JS + SepiaFilter - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/Spine.html b/docs/classes/Spine.html index 8b4b133..c50497c 100644 --- a/docs/classes/Spine.html +++ b/docs/classes/Spine.html @@ -2,7 +2,7 @@ - Spine - Pixi.JS + Spine - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -516,6 +518,13 @@ When loaded this class will dispatch a "loaded" event

    + + +
  • + defaultCursor + + +
  • @@ -656,6 +665,13 @@ When loaded this class will dispatch a "loaded" event

    +
  • + +
  • + worldVisible + + +
  • @@ -711,7 +727,7 @@ When loaded this class will dispatch a "loaded" event

    - src/pixi/display/DisplayObjectContainer.js:69 + src/pixi/display/DisplayObjectContainer.js:70

    @@ -803,7 +819,7 @@ When loaded this class will dispatch a "loaded" event

    - src/pixi/display/DisplayObjectContainer.js:94 + src/pixi/display/DisplayObjectContainer.js:95

    @@ -905,7 +921,7 @@ When loaded this class will dispatch a "loaded" event

    - src/pixi/display/DisplayObject.js:185 + src/pixi/display/DisplayObject.js:193

    @@ -990,7 +1006,7 @@ When loaded this class will dispatch a "loaded" event

    - src/pixi/display/DisplayObjectContainer.js:148 + src/pixi/display/DisplayObjectContainer.js:149

    @@ -1131,7 +1147,7 @@ When loaded this class will dispatch a "loaded" event

    - src/pixi/display/DisplayObject.js:191 + src/pixi/display/DisplayObject.js:199

    @@ -1216,7 +1232,7 @@ When loaded this class will dispatch a "loaded" event

    - src/pixi/display/DisplayObject.js:217 + src/pixi/display/DisplayObject.js:225

    @@ -1301,7 +1317,7 @@ When loaded this class will dispatch a "loaded" event

    - src/pixi/display/DisplayObject.js:211 + src/pixi/display/DisplayObject.js:219

    @@ -1386,7 +1402,7 @@ When loaded this class will dispatch a "loaded" event

    - src/pixi/display/DisplayObject.js:197 + src/pixi/display/DisplayObject.js:205

    @@ -1472,7 +1488,7 @@ for this callback to be fired the mouse must have been pressed down over the dis - src/pixi/display/DisplayObject.js:204 + src/pixi/display/DisplayObject.js:212

    @@ -1672,7 +1688,7 @@ for this callback to be fired, The touch must have started over the displayObjec - src/pixi/display/DisplayObjectContainer.js:166 + src/pixi/display/DisplayObjectContainer.js:167

    @@ -1760,7 +1776,7 @@ for this callback to be fired, The touch must have started over the displayObjec - src/pixi/display/DisplayObject.js:258 + src/pixi/display/DisplayObject.js:266

    @@ -1856,7 +1872,7 @@ Instead of using this function you can now simply set the interactive property t - src/pixi/display/DisplayObjectContainer.js:122 + src/pixi/display/DisplayObjectContainer.js:123

    @@ -1956,7 +1972,7 @@ Instead of using this function you can now simply set the interactive property t - src/pixi/display/DisplayObject.js:228 + src/pixi/display/DisplayObject.js:236

    @@ -2042,7 +2058,7 @@ basically a touch version of click

    - src/pixi/display/DisplayObject.js:241 + src/pixi/display/DisplayObject.js:249

    @@ -2127,7 +2143,7 @@ basically a touch version of click

    - src/pixi/display/DisplayObject.js:247 + src/pixi/display/DisplayObject.js:255

    @@ -2213,7 +2229,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:235 + src/pixi/display/DisplayObject.js:243

    @@ -2459,7 +2475,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:147 + src/pixi/display/DisplayObject.js:154

    @@ -2523,6 +2539,48 @@ for this callback to be fired, The touch must have started over the sprite

    +
    + + +
    +

    defaultCursor

    + String + + + + + + + + + +
    + + +

    Inherited from + DisplayObject: + + + + src/pixi/display/DisplayObject.js:125 + +

    + + + + +
    + +
    +

    This is the curser that will be used when the mouse is over this object. To enable this the element must have interaction = true and buttonMode = true

    + +
    + + + + + +
    @@ -2548,7 +2606,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:156 + src/pixi/display/DisplayObject.js:163

    @@ -2590,7 +2648,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:314 + src/pixi/display/DisplayObject.js:340

    @@ -2636,7 +2694,7 @@ To remove filters simply set this property to 'null' - src/pixi/display/DisplayObjectContainer.js:50 + src/pixi/display/DisplayObjectContainer.js:51

    @@ -2721,7 +2779,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:271 + src/pixi/display/DisplayObject.js:279

    @@ -2812,7 +2870,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:137 + src/pixi/display/DisplayObject.js:144

    @@ -2854,7 +2912,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:291 + src/pixi/display/DisplayObject.js:320

    @@ -3365,7 +3423,7 @@ To remove a mask, set this property to null.

    - src/pixi/display/DisplayObject.js:127 + src/pixi/display/DisplayObject.js:134

    @@ -3384,6 +3442,48 @@ To remove a mask, set this property to null.

    +
    + + +
    +

    worldVisible

    + Boolean + + + + + + + + + +
    + + +

    Inherited from + DisplayObject: + + + + src/pixi/display/DisplayObject.js:299 + +

    + + + + +
    + +
    +

    [read-only] Indicates if the sprite is globaly visible.

    + +
    + + + + + +
    diff --git a/docs/classes/SpriteSheetLoader.html b/docs/classes/SpriteSheetLoader.html index 0219761..ac93b9f 100644 --- a/docs/classes/SpriteSheetLoader.html +++ b/docs/classes/SpriteSheetLoader.html @@ -2,7 +2,7 @@ - SpriteSheetLoader - Pixi.JS + SpriteSheetLoader - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/Spriteâ„¢.html b/docs/classes/Spriteâ„¢.html index 09b9b52..a389db1 100644 --- a/docs/classes/Spriteâ„¢.html +++ b/docs/classes/Spriteâ„¢.html @@ -2,7 +2,7 @@ - Spriteâ„¢ - Pixi.JS + Spriteâ„¢ - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -534,6 +536,13 @@ + + +
  • + defaultCursor + + +
  • @@ -641,7 +650,7 @@
  • -
  • +
  • tint @@ -674,6 +683,13 @@ +
  • + +
  • + worldVisible + + +
  • @@ -729,7 +745,7 @@ - src/pixi/display/DisplayObjectContainer.js:69 + src/pixi/display/DisplayObjectContainer.js:70

    @@ -821,7 +837,7 @@ - src/pixi/display/DisplayObjectContainer.js:94 + src/pixi/display/DisplayObjectContainer.js:95

    @@ -923,7 +939,7 @@ - src/pixi/display/DisplayObject.js:185 + src/pixi/display/DisplayObject.js:193

    @@ -1017,7 +1033,7 @@ - src/pixi/display/Sprite.js:416 + src/pixi/display/Sprite.js:415

    @@ -1127,7 +1143,7 @@ - src/pixi/display/Sprite.js:433 + src/pixi/display/Sprite.js:432

    @@ -1228,7 +1244,7 @@ - src/pixi/display/DisplayObjectContainer.js:148 + src/pixi/display/DisplayObjectContainer.js:149

    @@ -1314,7 +1330,7 @@ - src/pixi/display/DisplayObject.js:191 + src/pixi/display/DisplayObject.js:199

    @@ -1399,7 +1415,7 @@ - src/pixi/display/DisplayObject.js:217 + src/pixi/display/DisplayObject.js:225

    @@ -1484,7 +1500,7 @@ - src/pixi/display/DisplayObject.js:211 + src/pixi/display/DisplayObject.js:219

    @@ -1569,7 +1585,7 @@ - src/pixi/display/DisplayObject.js:197 + src/pixi/display/DisplayObject.js:205

    @@ -1655,7 +1671,7 @@ for this callback to be fired the mouse must have been pressed down over the dis - src/pixi/display/DisplayObject.js:204 + src/pixi/display/DisplayObject.js:212

    @@ -1746,7 +1762,7 @@ for this callback to be fired, The touch must have started over the displayObjec - src/pixi/display/Sprite.js:156 + src/pixi/display/Sprite.js:152

    @@ -1831,7 +1847,7 @@ for this callback to be fired, The touch must have started over the displayObjec - src/pixi/display/DisplayObjectContainer.js:166 + src/pixi/display/DisplayObjectContainer.js:167

    @@ -1919,7 +1935,7 @@ for this callback to be fired, The touch must have started over the displayObjec - src/pixi/display/DisplayObject.js:258 + src/pixi/display/DisplayObject.js:266

    @@ -2010,7 +2026,7 @@ Instead of using this function you can now simply set the interactive property t - src/pixi/display/Sprite.js:133 + src/pixi/display/Sprite.js:129

    @@ -2104,7 +2120,7 @@ Instead of using this function you can now simply set the interactive property t - src/pixi/display/DisplayObjectContainer.js:122 + src/pixi/display/DisplayObjectContainer.js:123

    @@ -2204,7 +2220,7 @@ Instead of using this function you can now simply set the interactive property t - src/pixi/display/DisplayObject.js:228 + src/pixi/display/DisplayObject.js:236

    @@ -2290,7 +2306,7 @@ basically a touch version of click

    - src/pixi/display/DisplayObject.js:241 + src/pixi/display/DisplayObject.js:249

    @@ -2375,7 +2391,7 @@ basically a touch version of click

    - src/pixi/display/DisplayObject.js:247 + src/pixi/display/DisplayObject.js:255

    @@ -2461,7 +2477,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:235 + src/pixi/display/DisplayObject.js:243

    @@ -2540,7 +2556,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/Sprite.js:61 + src/pixi/display/Sprite.js:52

    @@ -2631,7 +2647,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/Sprite.js:52 + src/pixi/display/Sprite.js:43

    @@ -2766,7 +2782,7 @@ Setting the anchor to 1,1 would mean the textures origin points will be the bott - src/pixi/display/Sprite.js:43 + src/pixi/display/Sprite.js:71

    @@ -2776,12 +2792,13 @@ Setting the anchor to 1,1 would mean the textures origin points will be the bott
    -

    The blend mode of sprite. -currently supports PIXI.blendModes.NORMAL and PIXI.blendModes.SCREEN

    +

    The blend mode to be applied to the sprite

    +

    Default: PIXI.blendModes.NORMAL;

    + @@ -2895,7 +2912,7 @@ currently supports PIXI.blendModes.NORMAL and PIXI.blendModes.SCREEN

    - src/pixi/display/DisplayObject.js:147 + src/pixi/display/DisplayObject.js:154

    @@ -2914,6 +2931,48 @@ currently supports PIXI.blendModes.NORMAL and PIXI.blendModes.SCREEN

    +
    + + +
    +

    defaultCursor

    + String + + + + + + + + + +
    + + +

    Inherited from + DisplayObject: + + + + src/pixi/display/DisplayObject.js:125 + +

    + + + + +
    + +
    +

    This is the curser that will be used when the mouse is over this object. To enable this the element must have interaction = true and buttonMode = true

    + +
    + + + + + +
    @@ -2939,7 +2998,7 @@ currently supports PIXI.blendModes.NORMAL and PIXI.blendModes.SCREEN

    - src/pixi/display/DisplayObject.js:156 + src/pixi/display/DisplayObject.js:163

    @@ -2981,7 +3040,7 @@ currently supports PIXI.blendModes.NORMAL and PIXI.blendModes.SCREEN

    - src/pixi/display/DisplayObject.js:314 + src/pixi/display/DisplayObject.js:340

    @@ -3030,7 +3089,7 @@ To remove filters simply set this property to 'null' - src/pixi/display/Sprite.js:117 + src/pixi/display/Sprite.js:113

    @@ -3115,7 +3174,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:271 + src/pixi/display/DisplayObject.js:279

    @@ -3161,7 +3220,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:137 + src/pixi/display/DisplayObject.js:144

    @@ -3203,7 +3262,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:291 + src/pixi/display/DisplayObject.js:320

    @@ -3566,15 +3625,13 @@ To remove a mask, set this property to null.

    -
    +

    tint

    Number - private - @@ -3591,7 +3648,7 @@ To remove a mask, set this property to null.

    - src/pixi/display/Sprite.js:71 + src/pixi/display/Sprite.js:62

    @@ -3680,7 +3737,7 @@ To remove a mask, set this property to null.

    - src/pixi/display/Sprite.js:101 + src/pixi/display/Sprite.js:97

    @@ -3766,7 +3823,7 @@ To remove a mask, set this property to null.

    - src/pixi/display/DisplayObject.js:127 + src/pixi/display/DisplayObject.js:134

    @@ -3785,6 +3842,48 @@ To remove a mask, set this property to null.

    +
    + + +
    +

    worldVisible

    + Boolean + + + + + + + + + +
    + + +

    Inherited from + DisplayObject: + + + + src/pixi/display/DisplayObject.js:299 + +

    + + + + +
    + +
    +

    [read-only] Indicates if the sprite is globaly visible.

    + +
    + + + + + +
    diff --git a/docs/classes/Stage.html b/docs/classes/Stage.html index 1e53e45..aefbdff 100644 --- a/docs/classes/Stage.html +++ b/docs/classes/Stage.html @@ -2,7 +2,7 @@ - Stage - Pixi.JS + Stage - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -496,6 +498,13 @@ + + +
  • + defaultCursor + + +
  • @@ -636,6 +645,13 @@ +
  • + +
  • + worldVisible + + +
  • @@ -691,7 +707,7 @@ - src/pixi/display/DisplayObjectContainer.js:69 + src/pixi/display/DisplayObjectContainer.js:70

    @@ -783,7 +799,7 @@ - src/pixi/display/DisplayObjectContainer.js:94 + src/pixi/display/DisplayObjectContainer.js:95

    @@ -885,7 +901,7 @@ - src/pixi/display/DisplayObject.js:185 + src/pixi/display/DisplayObject.js:193

    @@ -970,7 +986,7 @@ - src/pixi/display/DisplayObjectContainer.js:148 + src/pixi/display/DisplayObjectContainer.js:149

    @@ -1129,7 +1145,7 @@ - src/pixi/display/DisplayObject.js:191 + src/pixi/display/DisplayObject.js:199

    @@ -1214,7 +1230,7 @@ - src/pixi/display/DisplayObject.js:217 + src/pixi/display/DisplayObject.js:225

    @@ -1299,7 +1315,7 @@ - src/pixi/display/DisplayObject.js:211 + src/pixi/display/DisplayObject.js:219

    @@ -1384,7 +1400,7 @@ - src/pixi/display/DisplayObject.js:197 + src/pixi/display/DisplayObject.js:205

    @@ -1470,7 +1486,7 @@ for this callback to be fired the mouse must have been pressed down over the dis - src/pixi/display/DisplayObject.js:204 + src/pixi/display/DisplayObject.js:212

    @@ -1556,7 +1572,7 @@ for this callback to be fired, The touch must have started over the displayObjec - src/pixi/display/DisplayObjectContainer.js:166 + src/pixi/display/DisplayObjectContainer.js:167

    @@ -1824,7 +1840,7 @@ This is useful for when you have other DOM elements ontop of the Canvas element. - src/pixi/display/DisplayObject.js:258 + src/pixi/display/DisplayObject.js:266

    @@ -1920,7 +1936,7 @@ Instead of using this function you can now simply set the interactive property t - src/pixi/display/DisplayObjectContainer.js:122 + src/pixi/display/DisplayObjectContainer.js:123

    @@ -2020,7 +2036,7 @@ Instead of using this function you can now simply set the interactive property t - src/pixi/display/DisplayObject.js:228 + src/pixi/display/DisplayObject.js:236

    @@ -2106,7 +2122,7 @@ basically a touch version of click

    - src/pixi/display/DisplayObject.js:241 + src/pixi/display/DisplayObject.js:249

    @@ -2191,7 +2207,7 @@ basically a touch version of click

    - src/pixi/display/DisplayObject.js:247 + src/pixi/display/DisplayObject.js:255

    @@ -2277,7 +2293,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:235 + src/pixi/display/DisplayObject.js:243

    @@ -2523,7 +2539,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:147 + src/pixi/display/DisplayObject.js:154

    @@ -2542,6 +2558,48 @@ for this callback to be fired, The touch must have started over the sprite

    +
    + + +
    +

    defaultCursor

    + String + + + + + + + + + +
    + + +

    Inherited from + DisplayObject: + + + + src/pixi/display/DisplayObject.js:125 + +

    + + + + +
    + +
    +

    This is the curser that will be used when the mouse is over this object. To enable this the element must have interaction = true and buttonMode = true

    + +
    + + + + + +
    @@ -2614,7 +2672,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:156 + src/pixi/display/DisplayObject.js:163

    @@ -2656,7 +2714,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:314 + src/pixi/display/DisplayObject.js:340

    @@ -2702,7 +2760,7 @@ To remove filters simply set this property to 'null' - src/pixi/display/DisplayObjectContainer.js:50 + src/pixi/display/DisplayObjectContainer.js:51

    @@ -2879,7 +2937,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:137 + src/pixi/display/DisplayObject.js:144

    @@ -2921,7 +2979,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:291 + src/pixi/display/DisplayObject.js:320

    @@ -3409,6 +3467,48 @@ To remove a mask, set this property to null.

    +
    + + +
    +

    worldVisible

    + Boolean + + + + + + + + + +
    + + +

    Inherited from + DisplayObject: + + + + src/pixi/display/DisplayObject.js:299 + +

    + + + + +
    + +
    +

    [read-only] Indicates if the sprite is globaly visible.

    + +
    + + + + + +
    diff --git a/docs/classes/Text.html b/docs/classes/Text.html index 0ef4930..fa3ec25 100644 --- a/docs/classes/Text.html +++ b/docs/classes/Text.html @@ -2,7 +2,7 @@ - Text - Pixi.JS + Text - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/Texture.html b/docs/classes/Texture.html index 6eabfed..bab3310 100644 --- a/docs/classes/Texture.html +++ b/docs/classes/Texture.html @@ -2,7 +2,7 @@ - Texture - Pixi.JS + Texture - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/classes/TilingSprite.html b/docs/classes/TilingSprite.html index db27990..5f20d7c 100644 --- a/docs/classes/TilingSprite.html +++ b/docs/classes/TilingSprite.html @@ -2,7 +2,7 @@ - TilingSprite - Pixi.JS + TilingSprite - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -518,6 +520,13 @@ + + +
  • + defaultCursor + + +
  • @@ -658,6 +667,13 @@ +
  • + +
  • + worldVisible + + +
  • @@ -713,7 +729,7 @@ - src/pixi/display/DisplayObjectContainer.js:69 + src/pixi/display/DisplayObjectContainer.js:70

    @@ -805,7 +821,7 @@ - src/pixi/display/DisplayObjectContainer.js:94 + src/pixi/display/DisplayObjectContainer.js:95

    @@ -907,7 +923,7 @@ - src/pixi/display/DisplayObject.js:185 + src/pixi/display/DisplayObject.js:193

    @@ -992,7 +1008,7 @@ - src/pixi/display/DisplayObjectContainer.js:148 + src/pixi/display/DisplayObjectContainer.js:149

    @@ -1078,7 +1094,7 @@ - src/pixi/display/DisplayObject.js:191 + src/pixi/display/DisplayObject.js:199

    @@ -1163,7 +1179,7 @@ - src/pixi/display/DisplayObject.js:217 + src/pixi/display/DisplayObject.js:225

    @@ -1248,7 +1264,7 @@ - src/pixi/display/DisplayObject.js:211 + src/pixi/display/DisplayObject.js:219

    @@ -1333,7 +1349,7 @@ - src/pixi/display/DisplayObject.js:197 + src/pixi/display/DisplayObject.js:205

    @@ -1419,7 +1435,7 @@ for this callback to be fired the mouse must have been pressed down over the dis - src/pixi/display/DisplayObject.js:204 + src/pixi/display/DisplayObject.js:212

    @@ -1505,7 +1521,7 @@ for this callback to be fired, The touch must have started over the displayObjec - src/pixi/display/DisplayObjectContainer.js:166 + src/pixi/display/DisplayObjectContainer.js:167

    @@ -1593,7 +1609,7 @@ for this callback to be fired, The touch must have started over the displayObjec - src/pixi/display/DisplayObject.js:258 + src/pixi/display/DisplayObject.js:266

    @@ -1689,7 +1705,7 @@ Instead of using this function you can now simply set the interactive property t - src/pixi/display/DisplayObjectContainer.js:122 + src/pixi/display/DisplayObjectContainer.js:123

    @@ -1789,7 +1805,7 @@ Instead of using this function you can now simply set the interactive property t - src/pixi/display/DisplayObject.js:228 + src/pixi/display/DisplayObject.js:236

    @@ -1875,7 +1891,7 @@ basically a touch version of click

    - src/pixi/display/DisplayObject.js:241 + src/pixi/display/DisplayObject.js:249

    @@ -1960,7 +1976,7 @@ basically a touch version of click

    - src/pixi/display/DisplayObject.js:247 + src/pixi/display/DisplayObject.js:255

    @@ -2046,7 +2062,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:235 + src/pixi/display/DisplayObject.js:243

    @@ -2292,7 +2308,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:147 + src/pixi/display/DisplayObject.js:154

    @@ -2311,6 +2327,48 @@ for this callback to be fired, The touch must have started over the sprite

    +
    + + +
    +

    defaultCursor

    + String + + + + + + + + + +
    + + +

    Inherited from + DisplayObject: + + + + src/pixi/display/DisplayObject.js:125 + +

    + + + + +
    + +
    +

    This is the curser that will be used when the mouse is over this object. To enable this the element must have interaction = true and buttonMode = true

    + +
    + + + + + +
    @@ -2336,7 +2394,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:156 + src/pixi/display/DisplayObject.js:163

    @@ -2378,7 +2436,7 @@ for this callback to be fired, The touch must have started over the sprite

    - src/pixi/display/DisplayObject.js:314 + src/pixi/display/DisplayObject.js:340

    @@ -2512,7 +2570,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:271 + src/pixi/display/DisplayObject.js:279

    @@ -2558,7 +2616,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:137 + src/pixi/display/DisplayObject.js:144

    @@ -2600,7 +2658,7 @@ Setting it is a neat way of optimising the hitTest function that the interaction - src/pixi/display/DisplayObject.js:291 + src/pixi/display/DisplayObject.js:320

    @@ -3159,7 +3217,7 @@ To remove a mask, set this property to null.

    - src/pixi/display/DisplayObject.js:127 + src/pixi/display/DisplayObject.js:134

    @@ -3178,6 +3236,48 @@ To remove a mask, set this property to null.

    +
    + + +
    +

    worldVisible

    + Boolean + + + + + + + + + +
    + + +

    Inherited from + DisplayObject: + + + + src/pixi/display/DisplayObject.js:299 + +

    + + + + +
    + +
    +

    [read-only] Indicates if the sprite is globaly visible.

    + +
    + + + + + +
    diff --git a/docs/classes/WebGLRenderer.html b/docs/classes/WebGLRenderer.html index 572e229..14e6bef 100644 --- a/docs/classes/WebGLRenderer.html +++ b/docs/classes/WebGLRenderer.html @@ -2,7 +2,7 @@ - WebGLRenderer - Pixi.JS + WebGLRenderer - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -784,7 +786,7 @@ Dont forget to add the view to your DOM or you will not see anything :)

    - src/pixi/renderers/webgl/WebGLRenderer.js:125 + src/pixi/renderers/webgl/WebGLRenderer.js:126

    diff --git a/docs/data.json b/docs/data.json index cc4d2e2..47cd728 100644 --- a/docs/data.json +++ b/docs/data.json @@ -1,6 +1,6 @@ { "project": { - "name": "Pixi.JS", + "name": "pixi.js", "description": "Pixi.js is a fast lightweight 2D library that works across all devices.", "version": "1.4.0", "url": "http://goodboydigital.com/", @@ -136,6 +136,15 @@ "fors": {}, "namespaces": {} }, + "src/pixi/filters/AlphaMaskFilter.js": { + "name": "src/pixi/filters/AlphaMaskFilter.js", + "modules": {}, + "classes": { + "AlphaMaskFilter": 1 + }, + "fors": {}, + "namespaces": {} + }, "src/pixi/filters/BlurFilter.js": { "name": "src/pixi/filters/BlurFilter.js", "modules": {}, @@ -366,6 +375,29 @@ "fors": {}, "namespaces": {} }, + "src/pixi/renderers/webgl/shaders/PixiShader.js": { + "name": "src/pixi/renderers/webgl/shaders/PixiShader.js", + "modules": {}, + "classes": { + "PIXI.PixiShader": 1 + }, + "fors": {}, + "namespaces": {} + }, + "src/pixi/renderers/webgl/shaders/PrimitiveShader.js": { + "name": "src/pixi/renderers/webgl/shaders/PrimitiveShader.js", + "modules": {}, + "classes": {}, + "fors": {}, + "namespaces": {} + }, + "src/pixi/renderers/webgl/shaders/StripShader.js": { + "name": "src/pixi/renderers/webgl/shaders/StripShader.js", + "modules": {}, + "classes": {}, + "fors": {}, + "namespaces": {} + }, "src/pixi/renderers/webgl/utils/WebGLFilterManager.js": { "name": "src/pixi/renderers/webgl/utils/WebGLFilterManager.js", "modules": {}, @@ -396,6 +428,13 @@ "fors": {}, "namespaces": {} }, + "src/pixi/renderers/webgl/utils/WebGLShaderUtils.js": { + "name": "src/pixi/renderers/webgl/utils/WebGLShaderUtils.js", + "modules": {}, + "classes": {}, + "fors": {}, + "namespaces": {} + }, "src/pixi/renderers/webgl/utils/WebGLSpriteBatch.js": { "name": "src/pixi/renderers/webgl/utils/WebGLSpriteBatch.js", "modules": {}, @@ -403,29 +442,6 @@ "fors": {}, "namespaces": {} }, - "src/pixi/renderers/webgl/PixiShader.js": { - "name": "src/pixi/renderers/webgl/PixiShader.js", - "modules": {}, - "classes": { - "PIXI.PixiShader": 1 - }, - "fors": {}, - "namespaces": {} - }, - "src/pixi/renderers/webgl/PrimitiveShader.js": { - "name": "src/pixi/renderers/webgl/PrimitiveShader.js", - "modules": {}, - "classes": {}, - "fors": {}, - "namespaces": {} - }, - "src/pixi/renderers/webgl/StripShader.js": { - "name": "src/pixi/renderers/webgl/StripShader.js", - "modules": {}, - "classes": {}, - "fors": {}, - "namespaces": {} - }, "src/pixi/renderers/webgl/WebGLRenderer.js": { "name": "src/pixi/renderers/webgl/WebGLRenderer.js", "modules": {}, @@ -435,13 +451,6 @@ "fors": {}, "namespaces": {} }, - "src/pixi/renderers/webgl/WebGLShaders.js": { - "name": "src/pixi/renderers/webgl/WebGLShaders.js", - "modules": {}, - "classes": {}, - "fors": {}, - "namespaces": {} - }, "src/pixi/text/BitmapText.js": { "name": "src/pixi/text/BitmapText.js", "modules": {}, @@ -576,6 +585,7 @@ "Spine": 1, "TilingSprite": 1, "AbstractFilter": 1, + "AlphaMaskFilter": 1, "BlurFilter": 1, "ColorMatrixFilter": 1, "ColorStepFilter": 1, @@ -611,7 +621,7 @@ "namespaces": {}, "tag": "module", "file": "src/pixi/InteractionManager.js", - "line": 638 + "line": 640 } }, "classes": { @@ -942,6 +952,27 @@ } ] }, + "AlphaMaskFilter": { + "name": "AlphaMaskFilter", + "shortname": "AlphaMaskFilter", + "classitems": [], + "plugins": [], + "extensions": [], + "plugin_for": [], + "extension_for": [], + "module": "PIXI", + "file": "src/pixi/filters/AlphaMaskFilter.js", + "line": 5, + "description": "The AlphaMaskFilter class uses the pixel values from the specified texture (called the displacement map) to perform a displacement of an object.\n You can use this filter to apply all manor of crazy warping effects\n Currently the r property of the texture is used offset the x and the g propery of the texture is used to offset the y.", + "contructor": "", + "params": [ + { + "name": "texture", + "description": "The texture used for the displacemtent map * must be power of 2 texture at the moment", + "type": "Texture" + } + ] + }, "BlurFilter": { "name": "BlurFilter", "shortname": "BlurFilter", @@ -1306,7 +1337,7 @@ "plugin_for": [], "extension_for": [], "module": "PIXI", - "file": "src/pixi/renderers/webgl/PixiShader.js", + "file": "src/pixi/renderers/webgl/shaders/PixiShader.js", "line": 6, "is_constructor": 1 }, @@ -1654,7 +1685,7 @@ "module": "PIXI", "namespace": "PolyK", "file": "src/pixi/InteractionManager.js", - "line": 638, + "line": 640, "description": "Holds all information related to an Interaction event", "is_constructor": 1 } @@ -2094,7 +2125,16 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 127, + "line": 125, + "description": "This is the curser that will be used when the mouse is over this object. To enable this the element must have interaction = true and buttonMode = true", + "itemtype": "property", + "name": "defaultCursor", + "type": "String", + "class": "DisplayObject" + }, + { + "file": "src/pixi/display/DisplayObject.js", + "line": 134, "description": "[read-only] Current transform of the object based on world (parent) factors", "itemtype": "property", "name": "worldTransform", @@ -2106,7 +2146,7 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 137, + "line": 144, "description": "[read-only] Current transform of the object locally", "itemtype": "property", "name": "localTransform", @@ -2118,7 +2158,7 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 147, + "line": 154, "description": "[NYI] Unkown", "itemtype": "property", "name": "color", @@ -2129,7 +2169,7 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 156, + "line": 163, "description": "[NYI] Holds whether or not this object is dynamic, for rendering optimization", "itemtype": "property", "name": "dynamic", @@ -2140,12 +2180,12 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 173, + "line": 180, "class": "DisplayObject" }, { "file": "src/pixi/display/DisplayObject.js", - "line": 185, + "line": 193, "description": "A callback that is used when the users clicks on the displayObject with their mouse", "itemtype": "method", "name": "click", @@ -2160,7 +2200,7 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 191, + "line": 199, "description": "A callback that is used when the user clicks the mouse down over the sprite", "itemtype": "method", "name": "mousedown", @@ -2175,7 +2215,7 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 197, + "line": 205, "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", @@ -2190,7 +2230,7 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 204, + "line": 212, "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", @@ -2205,7 +2245,7 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 211, + "line": 219, "description": "A callback that is used when the users mouse rolls over the displayObject", "itemtype": "method", "name": "mouseover", @@ -2220,7 +2260,7 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 217, + "line": 225, "description": "A callback that is used when the users mouse leaves the displayObject", "itemtype": "method", "name": "mouseout", @@ -2235,7 +2275,7 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 228, + "line": 236, "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", @@ -2250,7 +2290,7 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 235, + "line": 243, "description": "A callback that is used when the user touch's over the displayObject", "itemtype": "method", "name": "touchstart", @@ -2265,7 +2305,7 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 241, + "line": 249, "description": "A callback that is used when the user releases a touch over the displayObject", "itemtype": "method", "name": "touchend", @@ -2280,7 +2320,7 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 247, + "line": 255, "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", @@ -2295,7 +2335,7 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 258, + "line": 266, "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", @@ -2312,7 +2352,7 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 271, + "line": 279, "description": "Indicates if the sprite will have touch and mouse interactivity. It is false by default", "itemtype": "property", "name": "interactive", @@ -2322,7 +2362,16 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 291, + "line": 299, + "description": "[read-only] Indicates if the sprite is globaly visible.", + "itemtype": "property", + "name": "worldVisible", + "type": "Boolean", + "class": "DisplayObject" + }, + { + "file": "src/pixi/display/DisplayObject.js", + "line": 320, "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", @@ -2331,7 +2380,7 @@ }, { "file": "src/pixi/display/DisplayObject.js", - "line": 314, + "line": 340, "description": "Sets the filters for the displayObject.\n* IMPORTANT: This is a webGL only feature and will be ignored by the canvas renderer.\nTo remove filters simply set this property to 'null'", "itemtype": "property", "name": "filters", @@ -2365,7 +2414,7 @@ }, { "file": "src/pixi/display/DisplayObjectContainer.js", - "line": 50, + "line": 51, "description": "The height of the displayObjectContainer, setting this will actually modify the scale to acheive the value set", "itemtype": "property", "name": "height", @@ -2374,7 +2423,7 @@ }, { "file": "src/pixi/display/DisplayObjectContainer.js", - "line": 69, + "line": 70, "description": "Adds a child to the container.", "itemtype": "method", "name": "addChild", @@ -2389,7 +2438,7 @@ }, { "file": "src/pixi/display/DisplayObjectContainer.js", - "line": 94, + "line": 95, "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", @@ -2409,7 +2458,7 @@ }, { "file": "src/pixi/display/DisplayObjectContainer.js", - "line": 122, + "line": 123, "description": "[NYI] Swaps the depth of 2 displayObjects", "itemtype": "method", "name": "swapChildren", @@ -2431,7 +2480,7 @@ }, { "file": "src/pixi/display/DisplayObjectContainer.js", - "line": 148, + "line": 149, "description": "Returns the Child at the specified index", "itemtype": "method", "name": "getChildAt", @@ -2446,7 +2495,7 @@ }, { "file": "src/pixi/display/DisplayObjectContainer.js", - "line": 166, + "line": 167, "description": "Removes a child from the container.", "itemtype": "method", "name": "removeChild", @@ -2608,15 +2657,6 @@ { "file": "src/pixi/display/Sprite.js", "line": 43, - "description": "The blend mode of sprite.\ncurrently supports PIXI.blendModes.NORMAL and PIXI.blendModes.SCREEN", - "itemtype": "property", - "name": "blendMode", - "type": "Number", - "class": "Spriteâ„¢" - }, - { - "file": "src/pixi/display/Sprite.js", - "line": 52, "description": "The width of the sprite (this is initially set by the texture)", "itemtype": "property", "name": "_width", @@ -2627,7 +2667,7 @@ }, { "file": "src/pixi/display/Sprite.js", - "line": 61, + "line": 52, "description": "The height of the sprite (this is initially set by the texture)", "itemtype": "property", "name": "_height", @@ -2638,19 +2678,27 @@ }, { "file": "src/pixi/display/Sprite.js", - "line": 71, + "line": 62, "description": "The tint applied to the sprite. This is a hex value", "itemtype": "property", "name": "tint", "type": "Number", "default": "0xFFFFFF", - "access": "private", - "tagname": "", "class": "Spriteâ„¢" }, { "file": "src/pixi/display/Sprite.js", - "line": 101, + "line": 71, + "description": "The blend mode to be applied to the sprite", + "itemtype": "property", + "name": "blendMode", + "type": "Number", + "default": "PIXI.blendModes.NORMAL;", + "class": "Spriteâ„¢" + }, + { + "file": "src/pixi/display/Sprite.js", + "line": 97, "description": "The width of the sprite, setting this will actually modify the scale to acheive the value set", "itemtype": "property", "name": "width", @@ -2659,7 +2707,7 @@ }, { "file": "src/pixi/display/Sprite.js", - "line": 117, + "line": 113, "description": "The height of the sprite, setting this will actually modify the scale to acheive the value set", "itemtype": "property", "name": "height", @@ -2668,7 +2716,7 @@ }, { "file": "src/pixi/display/Sprite.js", - "line": 133, + "line": 129, "description": "Sets the texture of the sprite", "itemtype": "method", "name": "setTexture", @@ -2683,7 +2731,7 @@ }, { "file": "src/pixi/display/Sprite.js", - "line": 156, + "line": 152, "description": "When the texture is updated, this event will fire to update the scale and frame", "itemtype": "method", "name": "onTextureUpdate", @@ -2699,7 +2747,7 @@ }, { "file": "src/pixi/display/Sprite.js", - "line": 416, + "line": 415, "description": "Helper function that creates a sprite that will contain a texture from the TextureCache based on the frameId\n The frame ids are created when a Texture packer file has been loaded", "itemtype": "method", "name": "fromFrame", @@ -2719,7 +2767,7 @@ }, { "file": "src/pixi/display/Sprite.js", - "line": 433, + "line": 432, "description": "Helper function that creates a sprite that will contain a texture based on an image url\n If the image is not in the texture cache it will be loaded", "itemtype": "method", "name": "fromImage", @@ -3034,6 +3082,39 @@ "tagname": "", "class": "AbstractFilter" }, + { + "file": "src/pixi/filters/AlphaMaskFilter.js", + "line": 1, + "author": "Mat Groves http://matgroves.com/ @Doormat23", + "class": "AlphaMaskFilter" + }, + { + "file": "src/pixi/filters/AlphaMaskFilter.js", + "line": 86, + "description": "The texture used for the displacemtent map * must be power of 2 texture at the moment", + "itemtype": "property", + "name": "map", + "type": "Texture", + "class": "AlphaMaskFilter" + }, + { + "file": "src/pixi/filters/AlphaMaskFilter.js", + "line": 101, + "description": "The multiplier used to scale the displacement result from the map calculation.", + "itemtype": "property", + "name": "scale", + "type": "Point", + "class": "AlphaMaskFilter" + }, + { + "file": "src/pixi/filters/AlphaMaskFilter.js", + "line": 116, + "description": "The offset used to move the displacement map.", + "itemtype": "property", + "name": "offset", + "type": "Point", + "class": "AlphaMaskFilter" + }, { "file": "src/pixi/filters/BlurFilter.js", "line": 1, @@ -3802,7 +3883,7 @@ }, { "file": "src/pixi/primitives/Graphics.js", - "line": 74, + "line": 89, "description": "Specifies a line style used for subsequent calls to Graphics methods such as the lineTo() method or the drawCircle() method.", "itemtype": "method", "name": "lineStyle", @@ -3827,7 +3908,7 @@ }, { "file": "src/pixi/primitives/Graphics.js", - "line": 96, + "line": 111, "description": "Moves the current drawing position to (x, y).", "itemtype": "method", "name": "moveTo", @@ -3847,7 +3928,7 @@ }, { "file": "src/pixi/primitives/Graphics.js", - "line": 115, + "line": 130, "description": "Draws a line using the current line style from the current drawing position to (x, y);\nthe current drawing position is then set to (x, y).", "itemtype": "method", "name": "lineTo", @@ -3867,7 +3948,7 @@ }, { "file": "src/pixi/primitives/Graphics.js", - "line": 129, + "line": 144, "description": "Specifies a simple one-color fill that subsequent calls to other Graphics methods\n(such as lineTo() or drawCircle()) use when drawing.", "itemtype": "method", "name": "beginFill", @@ -3887,7 +3968,7 @@ }, { "file": "src/pixi/primitives/Graphics.js", - "line": 145, + "line": 160, "description": "Applies a fill to the lines and shapes that were added since the last call to the beginFill() method.", "itemtype": "method", "name": "endFill", @@ -3895,7 +3976,7 @@ }, { "file": "src/pixi/primitives/Graphics.js", - "line": 157, + "line": 172, "itemtype": "method", "name": "drawRect", "params": [ @@ -3924,7 +4005,7 @@ }, { "file": "src/pixi/primitives/Graphics.js", - "line": 177, + "line": 192, "description": "Draws a circle.", "itemtype": "method", "name": "drawCircle", @@ -3949,7 +4030,7 @@ }, { "file": "src/pixi/primitives/Graphics.js", - "line": 198, + "line": 213, "description": "Draws an ellipse.", "itemtype": "method", "name": "drawEllipse", @@ -3979,7 +4060,7 @@ }, { "file": "src/pixi/primitives/Graphics.js", - "line": 220, + "line": 235, "description": "Clears the graphics that were drawn to this Graphics object, and resets fill and line style settings.", "itemtype": "method", "name": "clear", @@ -4133,6 +4214,79 @@ "tagname": "", "class": "CanvasRenderer" }, + { + "file": "src/pixi/renderers/webgl/shaders/PixiShader.js", + "line": 1, + "author": "Richard Davey http://www.photonstorm.com @photonstorm", + "class": "PIXI.PixiShader" + }, + { + "file": "src/pixi/renderers/webgl/shaders/PixiShader.js", + "line": 14, + "itemtype": "property", + "name": "program - The WebGL program.", + "type": "Any", + "class": "PIXI.PixiShader" + }, + { + "file": "src/pixi/renderers/webgl/shaders/PixiShader.js", + "line": 19, + "itemtype": "property", + "name": "fragmentSrc - The fragment shader.", + "type": "Array", + "class": "PIXI.PixiShader" + }, + { + "file": "src/pixi/renderers/webgl/shaders/PixiShader.js", + "line": 33, + "itemtype": "property", + "name": "textureCount - A local texture counter for multi-texture shaders.", + "type": "Number", + "class": "PIXI.PixiShader" + }, + { + "file": "src/pixi/renderers/webgl/shaders/PixiShader.js", + "line": 42, + "itemtype": "method", + "name": "PIXI.PixiShader#init", + "class": "PIXI.PixiShader" + }, + { + "file": "src/pixi/renderers/webgl/shaders/PixiShader.js", + "line": 91, + "description": "Initialises the shader uniform values.\nUniforms are specified in the GLSL_ES Specification: http://www.khronos.org/registry/webgl/specs/latest/1.0/\nhttp://www.khronos.org/registry/gles/specs/2.0/GLSL_ES_Specification_1.0.17.pdf", + "itemtype": "method", + "name": "PIXI.PixiShader#initUniforms", + "class": "PIXI.PixiShader" + }, + { + "file": "src/pixi/renderers/webgl/shaders/PixiShader.js", + "line": 164, + "description": "Initialises a Sampler2D uniform (which may only be available later on after initUniforms once the texture is has loaded)", + "itemtype": "method", + "name": "PIXI.PixiShader#initSampler2D", + "class": "PIXI.PixiShader" + }, + { + "file": "src/pixi/renderers/webgl/shaders/PixiShader.js", + "line": 239, + "description": "Updates the shader uniform values.", + "itemtype": "method", + "name": "PIXI.PixiShader#syncUniforms", + "class": "PIXI.PixiShader" + }, + { + "file": "src/pixi/renderers/webgl/shaders/PrimitiveShader.js", + "line": 1, + "author": "Mat Groves http://matgroves.com/ @Doormat23", + "class": "CanvasGraphics" + }, + { + "file": "src/pixi/renderers/webgl/shaders/StripShader.js", + "line": 1, + "author": "Mat Groves http://matgroves.com/ @Doormat23", + "class": "CanvasGraphics" + }, { "file": "src/pixi/renderers/webgl/utils/WebGLFilterManager.js", "line": 1, @@ -4170,7 +4324,7 @@ }, { "file": "src/pixi/renderers/webgl/utils/WebGLGraphics.js", - "line": 89, + "line": 88, "description": "Updates the graphics object", "static": 1, "access": "private", @@ -4188,7 +4342,7 @@ }, { "file": "src/pixi/renderers/webgl/utils/WebGLGraphics.js", - "line": 143, + "line": 142, "description": "Builds a rectangle to draw", "static": 1, "access": "private", @@ -4211,7 +4365,7 @@ }, { "file": "src/pixi/renderers/webgl/utils/WebGLGraphics.js", - "line": 207, + "line": 206, "description": "Builds a circle to draw", "static": 1, "access": "private", @@ -4234,7 +4388,7 @@ }, { "file": "src/pixi/renderers/webgl/utils/WebGLGraphics.js", - "line": 276, + "line": 275, "description": "Builds a line to draw", "static": 1, "access": "private", @@ -4257,7 +4411,7 @@ }, { "file": "src/pixi/renderers/webgl/utils/WebGLGraphics.js", - "line": 486, + "line": 485, "description": "Builds a polygon to draw", "static": 1, "access": "private", @@ -4282,91 +4436,24 @@ "file": "src/pixi/renderers/webgl/utils/WebGLMaskManager.js", "line": 1, "author": "Mat Groves http://matgroves.com/ @Doormat23", - "class": "PIXI.PixiShader" + "class": "WebGLRenderer" }, { "file": "src/pixi/renderers/webgl/utils/WebGLShaderManager.js", "line": 1, "author": "Mat Groves http://matgroves.com/ @Doormat23", - "class": "PIXI.PixiShader" + "class": "WebGLRenderer" + }, + { + "file": "src/pixi/renderers/webgl/utils/WebGLShaderUtils.js", + "line": 1, + "author": "Mat Groves http://matgroves.com/ @Doormat23", + "class": "WebGLRenderer" }, { "file": "src/pixi/renderers/webgl/utils/WebGLSpriteBatch.js", "line": 1, "author": "Mat Groves\n\nBig thanks to the very clever Matt DesLauriers https://github.com/mattdesl/\nfor creating the original pixi version!\n\nHeavily inspired by LibGDX's WebGLSpriteBatch:\nhttps://github.com/libgdx/libgdx/blob/master/gdx/src/com/badlogic/gdx/graphics/g2d/WebGLSpriteBatch.java", - "class": "PIXI.PixiShader" - }, - { - "file": "src/pixi/renderers/webgl/PixiShader.js", - "line": 1, - "author": "Richard Davey http://www.photonstorm.com @photonstorm", - "class": "PIXI.PixiShader" - }, - { - "file": "src/pixi/renderers/webgl/PixiShader.js", - "line": 14, - "itemtype": "property", - "name": "program - The WebGL program.", - "type": "Any", - "class": "PIXI.PixiShader" - }, - { - "file": "src/pixi/renderers/webgl/PixiShader.js", - "line": 19, - "itemtype": "property", - "name": "fragmentSrc - The fragment shader.", - "type": "Array", - "class": "PIXI.PixiShader" - }, - { - "file": "src/pixi/renderers/webgl/PixiShader.js", - "line": 33, - "itemtype": "property", - "name": "textureCount - A local texture counter for multi-texture shaders.", - "type": "Number", - "class": "PIXI.PixiShader" - }, - { - "file": "src/pixi/renderers/webgl/PixiShader.js", - "line": 42, - "itemtype": "method", - "name": "PIXI.PixiShader#init", - "class": "PIXI.PixiShader" - }, - { - "file": "src/pixi/renderers/webgl/PixiShader.js", - "line": 77, - "description": "Initialises the shader uniform values.\nUniforms are specified in the GLSL_ES Specification: http://www.khronos.org/registry/webgl/specs/latest/1.0/\nhttp://www.khronos.org/registry/gles/specs/2.0/GLSL_ES_Specification_1.0.17.pdf", - "itemtype": "method", - "name": "PIXI.PixiShader#initUniforms", - "class": "PIXI.PixiShader" - }, - { - "file": "src/pixi/renderers/webgl/PixiShader.js", - "line": 150, - "description": "Initialises a Sampler2D uniform (which may only be available later on after initUniforms once the texture is has loaded)", - "itemtype": "method", - "name": "PIXI.PixiShader#initSampler2D", - "class": "PIXI.PixiShader" - }, - { - "file": "src/pixi/renderers/webgl/PixiShader.js", - "line": 225, - "description": "Updates the shader uniform values.", - "itemtype": "method", - "name": "PIXI.PixiShader#syncUniforms", - "class": "PIXI.PixiShader" - }, - { - "file": "src/pixi/renderers/webgl/PrimitiveShader.js", - "line": 1, - "author": "Mat Groves http://matgroves.com/ @Doormat23", - "class": "WebGLRenderer" - }, - { - "file": "src/pixi/renderers/webgl/StripShader.js", - "line": 1, - "author": "Mat Groves http://matgroves.com/ @Doormat23", "class": "WebGLRenderer" }, { @@ -4377,7 +4464,7 @@ }, { "file": "src/pixi/renderers/webgl/WebGLRenderer.js", - "line": 125, + "line": 126, "description": "Renders the stage to its webGL view", "itemtype": "method", "name": "render", @@ -4490,12 +4577,6 @@ "tagname": "", "class": "WebGLRenderer" }, - { - "file": "src/pixi/renderers/webgl/WebGLShaders.js", - "line": 1, - "author": "Mat Groves http://matgroves.com/ @Doormat23", - "class": "BitmapText" - }, { "file": "src/pixi/text/BitmapText.js", "line": 1, @@ -5322,7 +5403,7 @@ }, { "file": "src/pixi/InteractionManager.js", - "line": 482, + "line": 484, "description": "Is called when a touch is moved accross the renderer element", "itemtype": "method", "name": "onTouchMove", @@ -5340,7 +5421,7 @@ }, { "file": "src/pixi/InteractionManager.js", - "line": 516, + "line": 518, "description": "Is called when a touch is started on the renderer element", "itemtype": "method", "name": "onTouchStart", @@ -5358,7 +5439,7 @@ }, { "file": "src/pixi/InteractionManager.js", - "line": 565, + "line": 567, "description": "Is called when a touch is ended on the renderer element", "itemtype": "method", "name": "onTouchEnd", @@ -5376,7 +5457,7 @@ }, { "file": "src/pixi/InteractionManager.js", - "line": 646, + "line": 648, "description": "This point stores the global coords of where the touch/mouse event happened", "itemtype": "property", "name": "global", @@ -5386,7 +5467,7 @@ }, { "file": "src/pixi/InteractionManager.js", - "line": 657, + "line": 659, "description": "The target Sprite that was interacted with", "itemtype": "property", "name": "target", @@ -5396,7 +5477,7 @@ }, { "file": "src/pixi/InteractionManager.js", - "line": 665, + "line": 667, "description": "When passed to an event handler, this will be the original DOM Event that was captured", "itemtype": "property", "name": "originalEvent", @@ -5406,7 +5487,7 @@ }, { "file": "src/pixi/InteractionManager.js", - "line": 674, + "line": 676, "description": "This will return the local coords of the specified displayObject for this InteractionData", "itemtype": "method", "name": "getLocalPosition", @@ -5447,6 +5528,10 @@ } ], "warnings": [ + { + "message": "unknown tag: contructor", + "line": " src/pixi/filters/AlphaMaskFilter.js:5" + }, { "message": "unknown tag: contructor", "line": " src/pixi/filters/BlurFilter.js:5" @@ -5513,7 +5598,7 @@ }, { "message": "Missing item type", - "line": " src/pixi/display/DisplayObject.js:173" + "line": " src/pixi/display/DisplayObject.js:180" }, { "message": "Missing item type", @@ -5647,6 +5732,10 @@ "message": "Missing item type", "line": " src/pixi/filters/AbstractFilter.js:1" }, + { + "message": "Missing item type", + "line": " src/pixi/filters/AlphaMaskFilter.js:1" + }, { "message": "Missing item type", "line": " src/pixi/filters/BlurFilter.js:1" @@ -5779,6 +5868,18 @@ "message": "Missing item type", "line": " src/pixi/renderers/canvas/CanvasRenderer.js:1" }, + { + "message": "Missing item type", + "line": " src/pixi/renderers/webgl/shaders/PixiShader.js:1" + }, + { + "message": "Missing item type", + "line": " src/pixi/renderers/webgl/shaders/PrimitiveShader.js:1" + }, + { + "message": "Missing item type", + "line": " src/pixi/renderers/webgl/shaders/StripShader.js:1" + }, { "message": "Missing item type", "line": " src/pixi/renderers/webgl/utils/WebGLFilterManager.js:1" @@ -5795,30 +5896,18 @@ "message": "Missing item type", "line": " src/pixi/renderers/webgl/utils/WebGLShaderManager.js:1" }, + { + "message": "Missing item type", + "line": " src/pixi/renderers/webgl/utils/WebGLShaderUtils.js:1" + }, { "message": "Missing item type", "line": " src/pixi/renderers/webgl/utils/WebGLSpriteBatch.js:1" }, - { - "message": "Missing item type", - "line": " src/pixi/renderers/webgl/PixiShader.js:1" - }, - { - "message": "Missing item type", - "line": " src/pixi/renderers/webgl/PrimitiveShader.js:1" - }, - { - "message": "Missing item type", - "line": " src/pixi/renderers/webgl/StripShader.js:1" - }, { "message": "Missing item type", "line": " src/pixi/renderers/webgl/WebGLRenderer.js:1" }, - { - "message": "Missing item type", - "line": " src/pixi/renderers/webgl/WebGLShaders.js:1" - }, { "message": "Missing item type", "line": " src/pixi/text/BitmapText.js:1" diff --git a/docs/files/src_pixi_InteractionManager.js.html b/docs/files/src_pixi_InteractionManager.js.html index 21b7e87..17bebb9 100644 --- a/docs/files/src_pixi_InteractionManager.js.html +++ b/docs/files/src_pixi_InteractionManager.js.html @@ -2,7 +2,7 @@ - src/pixi/InteractionManager.js - Pixi.JS + src/pixi/InteractionManager.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -592,8 +594,10 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData) { var global = interactionData.global; - if(item.vcount !== PIXI.visibleCount)return false; + if( !item.worldVisible )return false; + // temp fix for if the element is in a non visible + var isSprite = (item instanceof PIXI.Sprite), worldTransform = item.worldTransform, a00 = worldTransform[0], a01 = worldTransform[1], a02 = worldTransform[2], diff --git a/docs/files/src_pixi_Intro.js.html b/docs/files/src_pixi_Intro.js.html index 9d627e7..6282641 100644 --- a/docs/files/src_pixi_Intro.js.html +++ b/docs/files/src_pixi_Intro.js.html @@ -2,7 +2,7 @@ - src/pixi/Intro.js - Pixi.JS + src/pixi/Intro.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_Outro.js.html b/docs/files/src_pixi_Outro.js.html index d54ce08..9edb6cc 100644 --- a/docs/files/src_pixi_Outro.js.html +++ b/docs/files/src_pixi_Outro.js.html @@ -2,7 +2,7 @@ - src/pixi/Outro.js - Pixi.JS + src/pixi/Outro.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_Pixi.js.html b/docs/files/src_pixi_Pixi.js.html index a51bb00..99da429 100644 --- a/docs/files/src_pixi_Pixi.js.html +++ b/docs/files/src_pixi_Pixi.js.html @@ -2,7 +2,7 @@ - src/pixi/Pixi.js - Pixi.JS + src/pixi/Pixi.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_core_Circle.js.html b/docs/files/src_pixi_core_Circle.js.html index 2ead135..8308d16 100644 --- a/docs/files/src_pixi_core_Circle.js.html +++ b/docs/files/src_pixi_core_Circle.js.html @@ -2,7 +2,7 @@ - src/pixi/core/Circle.js - Pixi.JS + src/pixi/core/Circle.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_core_Ellipse.js.html b/docs/files/src_pixi_core_Ellipse.js.html index 77ea157..8422ca2 100644 --- a/docs/files/src_pixi_core_Ellipse.js.html +++ b/docs/files/src_pixi_core_Ellipse.js.html @@ -2,7 +2,7 @@ - src/pixi/core/Ellipse.js - Pixi.JS + src/pixi/core/Ellipse.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_core_Point.js.html b/docs/files/src_pixi_core_Point.js.html index 8b0dc8e..5efce98 100644 --- a/docs/files/src_pixi_core_Point.js.html +++ b/docs/files/src_pixi_core_Point.js.html @@ -2,7 +2,7 @@ - src/pixi/core/Point.js - Pixi.JS + src/pixi/core/Point.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_core_Polygon.js.html b/docs/files/src_pixi_core_Polygon.js.html index 5eb8e26..cbccb9c 100644 --- a/docs/files/src_pixi_core_Polygon.js.html +++ b/docs/files/src_pixi_core_Polygon.js.html @@ -2,7 +2,7 @@ - src/pixi/core/Polygon.js - Pixi.JS + src/pixi/core/Polygon.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_core_Rectangle.js.html b/docs/files/src_pixi_core_Rectangle.js.html index 03a59a2..3c1e837 100644 --- a/docs/files/src_pixi_core_Rectangle.js.html +++ b/docs/files/src_pixi_core_Rectangle.js.html @@ -2,7 +2,7 @@ - src/pixi/core/Rectangle.js - Pixi.JS + src/pixi/core/Rectangle.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_display_DisplayObject.js.html b/docs/files/src_pixi_display_DisplayObject.js.html index e325116..4bacb35 100644 --- a/docs/files/src_pixi_display_DisplayObject.js.html +++ b/docs/files/src_pixi_display_DisplayObject.js.html @@ -2,7 +2,7 @@ - src/pixi/display/DisplayObject.js - Pixi.JS + src/pixi/display/DisplayObject.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -296,6 +298,13 @@ PIXI.DisplayObject = function() */ this._interactive = false; + /** + * This is the curser that will be used when the mouse is over this object. To enable this the element must have interaction = true and buttonMode = true + * + * @property defaultCursor + * @type String + * + */ this.defaultCursor = 'pointer'; /** @@ -351,6 +360,7 @@ PIXI.DisplayObject = function() */ this._bounds = new PIXI.Rectangle(0, 0, 1, 1); this._currentBounds = null; + this._mask = null; /* * MOUSE Callbacks @@ -462,6 +472,27 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', { } }); +/** + * [read-only] Indicates if the sprite is globaly visible. + * + * @property worldVisible + * @type Boolean + */ +Object.defineProperty(PIXI.DisplayObject.prototype, 'worldVisible', { + get: function() { + var item = this; + + do + { + if(!item.visible)return false; + item = item.parent; + } + while(item && item.parent); + + return true; + } +}); + /** * 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. @@ -471,11 +502,8 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', { * @type Graphics */ Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', { - get: function() { - return this._mask; - }, set: function(value) { @@ -513,8 +541,6 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'filters', { // TODO change this as it is legacy this._filterBlock = {target:this, filterPasses:passes}; - - } this._filters = value; @@ -576,12 +602,26 @@ PIXI.DisplayObject.prototype.updateTransform = function() this.vcount = PIXI.visibleCount; }; - PIXI.DisplayObject.prototype.getBounds = function() { return PIXI.EmptyRectangle; }; +PIXI.DisplayObject.prototype.getLocalBounds = function() +{ + var matrixCache = this.worldTransform; + + this.worldTransform = PIXI.identityMatrix; + + this.updateTransform(); + + var bounds = this.getBounds(); + + this.worldTransform = matrixCache; + + return bounds; +}; + PIXI.DisplayObject.prototype._renderWebGL = function(renderSession) { @@ -600,6 +640,7 @@ PIXI.DisplayObject.prototype._renderCanvas = function(renderSession) PIXI.EmptyRectangle = new PIXI.Rectangle(0,0,0,0); PIXI.visibleCount = 0; +
    diff --git a/docs/files/src_pixi_display_DisplayObjectContainer.js.html b/docs/files/src_pixi_display_DisplayObjectContainer.js.html index 5abfcd1..8045f24 100644 --- a/docs/files/src_pixi_display_DisplayObjectContainer.js.html +++ b/docs/files/src_pixi_display_DisplayObjectContainer.js.html @@ -2,7 +2,7 @@ - src/pixi/display/DisplayObjectContainer.js - Pixi.JS + src/pixi/display/DisplayObjectContainer.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -213,14 +215,15 @@ PIXI.DisplayObjectContainer.prototype.constructor = PIXI.DisplayObjectContainer; /* Object.defineProperty(PIXI.DisplayObjectContainer.prototype, 'width', { get: function() { - return this.scale.x * this.getBounds().width; + return this.scale.x * this.getLocalBounds().width; }, set: function(value) { - this.scale.x = value / (this.getBounds().width/this.scale.x); + this.scale.x = value / (this.getLocalBounds().width/this.scale.x); this._width = value; } }); */ + /** * The height of the displayObjectContainer, setting this will actually modify the scale to acheive the value set * @@ -231,10 +234,10 @@ Object.defineProperty(PIXI.DisplayObjectContainer.prototype, 'width', /* Object.defineProperty(PIXI.DisplayObjectContainer.prototype, 'height', { get: function() { - return this.scale.y * this.getBounds().height; + return this.scale.y * this.getLocalBounds().height; }, set: function(value) { - this.scale.y = value / (this.getBounds().height/this.scale.y); + this.scale.y = value / (this.getLocalBounds().height/this.scale.y); this._height = value; } }); @@ -248,7 +251,7 @@ Object.defineProperty(PIXI.DisplayObjectContainer.prototype, 'height', */ PIXI.DisplayObjectContainer.prototype.addChild = function(child) { - if(child.parent) + if(child.parent && child.parent !== this) { //// COULD BE THIS??? child.parent.removeChild(child); @@ -333,7 +336,7 @@ PIXI.DisplayObjectContainer.prototype.getChildAt = function(index) } else { - throw new Error('Both the supplied DisplayObjects must be a child of the caller ' + this); + throw new Error('The supplied DisplayObjects must be a child of the caller ' + this); } }; @@ -445,10 +448,10 @@ PIXI.DisplayObjectContainer.prototype.removeStageReference = function() for(var i=0,j=this.children.length; i<j; i++) { var child = this.children[i]; - if(child.interactive)this.stage.dirty = true; child.removeStageReference(); - child.stage = null; } + + this.stage = null; }; PIXI.DisplayObjectContainer.prototype._renderWebGL = function(renderSession) @@ -516,6 +519,8 @@ PIXI.DisplayObjectContainer.prototype._renderCanvas = function(renderSession) } }; + +
    diff --git a/docs/files/src_pixi_display_MovieClip.js.html b/docs/files/src_pixi_display_MovieClip.js.html index fc15d93..dfa3e8f 100644 --- a/docs/files/src_pixi_display_MovieClip.js.html +++ b/docs/files/src_pixi_display_MovieClip.js.html @@ -2,7 +2,7 @@ - src/pixi/display/MovieClip.js - Pixi.JS + src/pixi/display/MovieClip.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_display_Sprite.js.html b/docs/files/src_pixi_display_Sprite.js.html index dd4246c..7922bf8 100644 --- a/docs/files/src_pixi_display_Sprite.js.html +++ b/docs/files/src_pixi_display_Sprite.js.html @@ -2,7 +2,7 @@ - src/pixi/display/Sprite.js - Pixi.JS + src/pixi/display/Sprite.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -214,15 +216,6 @@ PIXI.Sprite = function(texture) */ this.texture = texture; - /** - * The blend mode of sprite. - * currently supports PIXI.blendModes.NORMAL and PIXI.blendModes.SCREEN - * - * @property blendMode - * @type Number - */ - this.blendMode = PIXI.blendModes.NORMAL; - /** * The width of the sprite (this is initially set by the texture) * @@ -248,15 +241,20 @@ PIXI.Sprite = function(texture) * @property tint * @type Number * @default 0xFFFFFF - * @private */ this.tint = 0xFFFFFF;// * Math.random(); + /** + * The blend mode to be applied to the sprite + * + * @property blendMode + * @type Number + * @default PIXI.blendModes.NORMAL; + */ this.blendMode = PIXI.blendModes.NORMAL; if(texture.baseTexture.hasLoaded) { - this.updateFrame = true; this.onTextureUpdate(); } else @@ -519,11 +517,14 @@ PIXI.Sprite.prototype._renderCanvas = function(renderSession) { if(this.cachedTint !== this.tint) { + // no point tinting an image that has not loaded yet! + if(!texture.baseTexture.hasLoaded)return; + this.cachedTint = this.tint; //TODO clean up cacheing - how to clean up the caches? this.tintedTexture = PIXI.CanvasTinter.getTintedTexture(this, this.tint); - + } context.drawImage(this.tintedTexture, diff --git a/docs/files/src_pixi_display_Stage.js.html b/docs/files/src_pixi_display_Stage.js.html index 9664f55..cf8f266 100644 --- a/docs/files/src_pixi_display_Stage.js.html +++ b/docs/files/src_pixi_display_Stage.js.html @@ -2,7 +2,7 @@ - src/pixi/display/Stage.js - Pixi.JS + src/pixi/display/Stage.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_extras_Rope.js.html b/docs/files/src_pixi_extras_Rope.js.html index 6aaadfc..0399bd9 100644 --- a/docs/files/src_pixi_extras_Rope.js.html +++ b/docs/files/src_pixi_extras_Rope.js.html @@ -2,7 +2,7 @@ - src/pixi/extras/Rope.js - Pixi.JS + src/pixi/extras/Rope.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_extras_Spine.js.html b/docs/files/src_pixi_extras_Spine.js.html index 97d84de..585dcc6 100644 --- a/docs/files/src_pixi_extras_Spine.js.html +++ b/docs/files/src_pixi_extras_Spine.js.html @@ -2,7 +2,7 @@ - src/pixi/extras/Spine.js - Pixi.JS + src/pixi/extras/Spine.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_extras_Strip.js.html b/docs/files/src_pixi_extras_Strip.js.html index 2e3c647..a617da9 100644 --- a/docs/files/src_pixi_extras_Strip.js.html +++ b/docs/files/src_pixi_extras_Strip.js.html @@ -2,7 +2,7 @@ - src/pixi/extras/Strip.js - Pixi.JS + src/pixi/extras/Strip.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_extras_TilingSprite.js.html b/docs/files/src_pixi_extras_TilingSprite.js.html index 40a34ca..ca7f707 100644 --- a/docs/files/src_pixi_extras_TilingSprite.js.html +++ b/docs/files/src_pixi_extras_TilingSprite.js.html @@ -2,7 +2,7 @@ - src/pixi/extras/TilingSprite.js - Pixi.JS + src/pixi/extras/TilingSprite.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -320,6 +322,14 @@ PIXI.TilingSprite.prototype._renderCanvas = function(renderSession) context.globalAlpha = this.worldAlpha; + + var transform = this.worldTransform; + + // alow for trimming + + context.setTransform(transform[0], transform[3], transform[1], transform[4], transform[2], transform[5]); + + if(!this.__tilePattern) this.__tilePattern = context.createPattern(this.texture.baseTexture.source, 'repeat'); @@ -348,6 +358,78 @@ PIXI.TilingSprite.prototype._renderCanvas = function(renderSession) context.closePath(); }; +PIXI.TilingSprite.prototype.getBounds = function() +{ + + var width = this._width; + var height = this._height; + + var w0 = width * (1-this.anchor.x); + var w1 = width * -this.anchor.x; + + var h0 = height * (1-this.anchor.y); + var h1 = height * -this.anchor.y; + + var worldTransform = this.worldTransform; + + var a = worldTransform[0]; + var b = worldTransform[3]; + var c = worldTransform[1]; + var d = worldTransform[4]; + var tx = worldTransform[2]; + var ty = worldTransform[5]; + + var x1 = a * w1 + c * h1 + tx; + var y1 = d * h1 + b * w1 + ty; + + var x2 = a * w0 + c * h1 + tx; + var y2 = d * h1 + b * w0 + ty; + + var x3 = a * w0 + c * h0 + tx; + var y3 = d * h0 + b * w0 + ty; + + var x4 = a * w1 + c * h0 + tx; + var y4 = d * h0 + b * w1 + ty; + + var maxX = -Infinity; + var maxY = -Infinity; + + var minX = Infinity; + var minY = Infinity; + + minX = x1 < minX ? x1 : minX; + minX = x2 < minX ? x2 : minX; + minX = x3 < minX ? x3 : minX; + minX = x4 < minX ? x4 : minX; + + minY = y1 < minY ? y1 : minY; + minY = y2 < minY ? y2 : minY; + minY = y3 < minY ? y3 : minY; + minY = y4 < minY ? y4 : minY; + + maxX = x1 > maxX ? x1 : maxX; + maxX = x2 > maxX ? x2 : maxX; + maxX = x3 > maxX ? x3 : maxX; + maxX = x4 > maxX ? x4 : maxX; + + maxY = y1 > maxY ? y1 : maxY; + maxY = y2 > maxY ? y2 : maxY; + maxY = y3 > maxY ? y3 : maxY; + maxY = y4 > maxY ? y4 : maxY; + + var bounds = this._bounds; + + bounds.x = minX; + bounds.width = maxX - minX; + + bounds.y = minY; + bounds.height = maxY - minY; + + // store a refferance so that if this function gets called again in the render cycle we do not have to recacalculate + this._currentBounds = bounds; + + return bounds; +};
    diff --git a/docs/files/src_pixi_filters_AbstractFilter.js.html b/docs/files/src_pixi_filters_AbstractFilter.js.html index 4b3588a..53bebc4 100644 --- a/docs/files/src_pixi_filters_AbstractFilter.js.html +++ b/docs/files/src_pixi_filters_AbstractFilter.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/AbstractFilter.js - Pixi.JS + src/pixi/filters/AbstractFilter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_filters_AlphaMaskFilter.js.html b/docs/files/src_pixi_filters_AlphaMaskFilter.js.html new file mode 100644 index 0000000..d34a826 --- /dev/null +++ b/docs/files/src_pixi_filters_AlphaMaskFilter.js.html @@ -0,0 +1,325 @@ + + + + + src/pixi/filters/AlphaMaskFilter.js - pixi.js + + + + + + + + +
    +
    +
    + +

    + +
    +
    + API Docs for: 1.4.0 +
    +
    +
    + + +
    +
    + Show: + + + + + + + +
    + + +
    +
    +
    +

    File: src/pixi/filters/AlphaMaskFilter.js

    + +
    +
    +/**
    + * @author Mat Groves http://matgroves.com/ @Doormat23
    + */
    +
    +/**
    + *
    + * The AlphaMaskFilter class uses the pixel values from the specified texture (called the displacement map) to perform a displacement of an object.
    + * You can use this filter to apply all manor of crazy warping effects
    + * Currently the r property of the texture is used offset the x and the g propery of the texture is used to offset the y.
    + * @class AlphaMaskFilter
    + * @contructor
    + * @param texture {Texture} The texture used for the displacemtent map * must be power of 2 texture at the moment
    + */
    +PIXI.AlphaMaskFilter = function(texture)
    +{
    +    PIXI.AbstractFilter.call( this );
    +
    +    this.passes = [this];
    +    texture.baseTexture._powerOf2 = true;
    +
    +    // set the uniforms
    +    //console.log()
    +    this.uniforms = {
    +        displacementMap: {type: 'sampler2D', value:texture},
    +        scale:           {type: '2f', value:{x:30, y:30}},
    +        offset:          {type: '2f', value:{x:0, y:0}},
    +        mapDimensions:   {type: '2f', value:{x:1, y:5112}},
    +        dimensions:   {type: '4fv', value:[0,0,0,0]}
    +    };
    +
    +    if(texture.baseTexture.hasLoaded)
    +    {
    +        this.uniforms.mapDimensions.value.x = texture.width;
    +        this.uniforms.mapDimensions.value.y = texture.height;
    +    }
    +    else
    +    {
    +        this.boundLoadedFunction = this.onTextureLoaded.bind(this);
    +
    +        texture.baseTexture.on('loaded', this.boundLoadedFunction);
    +    }
    +
    +    this.fragmentSrc = [
    +        'precision mediump float;',
    +        'varying vec2 vTextureCoord;',
    +        'varying vec4 vColor;',
    +        'uniform sampler2D displacementMap;',
    +        'uniform sampler2D uSampler;',
    +        'uniform vec2 scale;',
    +        'uniform vec2 offset;',
    +        'uniform vec4 dimensions;',
    +        'uniform vec2 mapDimensions;',// = vec2(256.0, 256.0);',
    +        // 'const vec2 textureDimensions = vec2(750.0, 750.0);',
    +
    +        'void main(void) {',
    +        '   vec2 mapCords = vTextureCoord.xy;',
    +        //'   mapCords -= ;',
    +        '   mapCords += (dimensions.zw + offset)/ dimensions.xy ;',
    +        '   mapCords.y *= -1.0;',
    +        '   mapCords.y += 1.0;',
    +        '   vec2 matSample = texture2D(displacementMap, mapCords).xy;',
    +        '   matSample -= 0.5;',
    +        '   matSample *= scale;',
    +        '   matSample /= mapDimensions;',
    +        '   gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.x + matSample.x, vTextureCoord.y + matSample.y));',
    +        '   gl_FragColor.rgb = mix( gl_FragColor.rgb, gl_FragColor.rgb, 1.0);',
    +        '   vec2 cord = vTextureCoord;',
    +
    +        //'   gl_FragColor =  texture2D(displacementMap, cord);',
    +     //   '   gl_FragColor = gl_FragColor;',
    +        '}'
    +    ];
    +};
    +
    +PIXI.AlphaMaskFilter.prototype = Object.create( PIXI.AbstractFilter.prototype );
    +PIXI.AlphaMaskFilter.prototype.constructor = PIXI.AlphaMaskFilter;
    +
    +PIXI.AlphaMaskFilter.prototype.onTextureLoaded = function()
    +{
    +    this.uniforms.mapDimensions.value.x = this.uniforms.displacementMap.value.width;
    +    this.uniforms.mapDimensions.value.y = this.uniforms.displacementMap.value.height;
    +
    +    this.uniforms.displacementMap.value.baseTexture.off('loaded', this.boundLoadedFunction);
    +};
    +
    +/**
    + * The texture used for the displacemtent map * must be power of 2 texture at the moment
    + *
    + * @property map
    + * @type Texture
    + */
    +Object.defineProperty(PIXI.AlphaMaskFilter.prototype, 'map', {
    +    get: function() {
    +        return this.uniforms.displacementMap.value;
    +    },
    +    set: function(value) {
    +        this.uniforms.displacementMap.value = value;
    +    }
    +});
    +
    +/**
    + * The multiplier used to scale the displacement result from the map calculation.
    + *
    + * @property scale
    + * @type Point
    + */
    +Object.defineProperty(PIXI.AlphaMaskFilter.prototype, 'scale', {
    +    get: function() {
    +        return this.uniforms.scale.value;
    +    },
    +    set: function(value) {
    +        this.uniforms.scale.value = value;
    +    }
    +});
    +
    +/**
    + * The offset used to move the displacement map.
    + *
    + * @property offset
    + * @type Point
    + */
    +Object.defineProperty(PIXI.AlphaMaskFilter.prototype, 'offset', {
    +    get: function() {
    +        return this.uniforms.offset.value;
    +    },
    +    set: function(value) {
    +        this.uniforms.offset.value = value;
    +    }
    +});
    +
    +    
    +
    + +
    +
    +
    +
    +
    +
    + + + + + + + + + + diff --git a/docs/files/src_pixi_filters_BlurFilter.js.html b/docs/files/src_pixi_filters_BlurFilter.js.html index 74538b8..1aed839 100644 --- a/docs/files/src_pixi_filters_BlurFilter.js.html +++ b/docs/files/src_pixi_filters_BlurFilter.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/BlurFilter.js - Pixi.JS + src/pixi/filters/BlurFilter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_filters_BlurXFilter.js.html b/docs/files/src_pixi_filters_BlurXFilter.js.html index 17ac461..e054c3d 100644 --- a/docs/files/src_pixi_filters_BlurXFilter.js.html +++ b/docs/files/src_pixi_filters_BlurXFilter.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/BlurXFilter.js - Pixi.JS + src/pixi/filters/BlurXFilter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_filters_BlurYFilter.js.html b/docs/files/src_pixi_filters_BlurYFilter.js.html index b94ab32..b80f673 100644 --- a/docs/files/src_pixi_filters_BlurYFilter.js.html +++ b/docs/files/src_pixi_filters_BlurYFilter.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/BlurYFilter.js - Pixi.JS + src/pixi/filters/BlurYFilter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_filters_ColorMatrixFilter.js.html b/docs/files/src_pixi_filters_ColorMatrixFilter.js.html index 49f0e2c..116260c 100644 --- a/docs/files/src_pixi_filters_ColorMatrixFilter.js.html +++ b/docs/files/src_pixi_filters_ColorMatrixFilter.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/ColorMatrixFilter.js - Pixi.JS + src/pixi/filters/ColorMatrixFilter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_filters_ColorStepFilter.js.html b/docs/files/src_pixi_filters_ColorStepFilter.js.html index fda48e8..362cfd7 100644 --- a/docs/files/src_pixi_filters_ColorStepFilter.js.html +++ b/docs/files/src_pixi_filters_ColorStepFilter.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/ColorStepFilter.js - Pixi.JS + src/pixi/filters/ColorStepFilter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_filters_CrossHatchFilter.js.html b/docs/files/src_pixi_filters_CrossHatchFilter.js.html index 3c19965..75b3cc2 100644 --- a/docs/files/src_pixi_filters_CrossHatchFilter.js.html +++ b/docs/files/src_pixi_filters_CrossHatchFilter.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/CrossHatchFilter.js - Pixi.JS + src/pixi/filters/CrossHatchFilter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_filters_DisplacementFilter.js.html b/docs/files/src_pixi_filters_DisplacementFilter.js.html index 23cbab6..251aaa0 100644 --- a/docs/files/src_pixi_filters_DisplacementFilter.js.html +++ b/docs/files/src_pixi_filters_DisplacementFilter.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/DisplacementFilter.js - Pixi.JS + src/pixi/filters/DisplacementFilter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_filters_DotScreenFilter.js.html b/docs/files/src_pixi_filters_DotScreenFilter.js.html index e619678..0478cf5 100644 --- a/docs/files/src_pixi_filters_DotScreenFilter.js.html +++ b/docs/files/src_pixi_filters_DotScreenFilter.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/DotScreenFilter.js - Pixi.JS + src/pixi/filters/DotScreenFilter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_filters_FilterBlock.js.html b/docs/files/src_pixi_filters_FilterBlock.js.html index 77e8eac..83ea26a 100644 --- a/docs/files/src_pixi_filters_FilterBlock.js.html +++ b/docs/files/src_pixi_filters_FilterBlock.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/FilterBlock.js - Pixi.JS + src/pixi/filters/FilterBlock.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_filters_GrayFilter.js.html b/docs/files/src_pixi_filters_GrayFilter.js.html index 440c2a3..905ecbb 100644 --- a/docs/files/src_pixi_filters_GrayFilter.js.html +++ b/docs/files/src_pixi_filters_GrayFilter.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/GrayFilter.js - Pixi.JS + src/pixi/filters/GrayFilter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_filters_InvertFilter.js.html b/docs/files/src_pixi_filters_InvertFilter.js.html index 2c66e5d..4c13566 100644 --- a/docs/files/src_pixi_filters_InvertFilter.js.html +++ b/docs/files/src_pixi_filters_InvertFilter.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/InvertFilter.js - Pixi.JS + src/pixi/filters/InvertFilter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_filters_PixelateFilter.js.html b/docs/files/src_pixi_filters_PixelateFilter.js.html index b94056d..e8e64cc 100644 --- a/docs/files/src_pixi_filters_PixelateFilter.js.html +++ b/docs/files/src_pixi_filters_PixelateFilter.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/PixelateFilter.js - Pixi.JS + src/pixi/filters/PixelateFilter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_filters_RGBSplitFilter.js.html b/docs/files/src_pixi_filters_RGBSplitFilter.js.html index 0aa4e0e..fd8608d 100644 --- a/docs/files/src_pixi_filters_RGBSplitFilter.js.html +++ b/docs/files/src_pixi_filters_RGBSplitFilter.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/RGBSplitFilter.js - Pixi.JS + src/pixi/filters/RGBSplitFilter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_filters_SepiaFilter.js.html b/docs/files/src_pixi_filters_SepiaFilter.js.html index 7314324..36f2695 100644 --- a/docs/files/src_pixi_filters_SepiaFilter.js.html +++ b/docs/files/src_pixi_filters_SepiaFilter.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/SepiaFilter.js - Pixi.JS + src/pixi/filters/SepiaFilter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_filters_SmartBlurFilter.js.html b/docs/files/src_pixi_filters_SmartBlurFilter.js.html index d050e27..994a5fb 100644 --- a/docs/files/src_pixi_filters_SmartBlurFilter.js.html +++ b/docs/files/src_pixi_filters_SmartBlurFilter.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/SmartBlurFilter.js - Pixi.JS + src/pixi/filters/SmartBlurFilter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_filters_TwistFilter.js.html b/docs/files/src_pixi_filters_TwistFilter.js.html index 65e7f1a..ebf7dfc 100644 --- a/docs/files/src_pixi_filters_TwistFilter.js.html +++ b/docs/files/src_pixi_filters_TwistFilter.js.html @@ -2,7 +2,7 @@ - src/pixi/filters/TwistFilter.js - Pixi.JS + src/pixi/filters/TwistFilter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_loaders_AssetLoader.js.html b/docs/files/src_pixi_loaders_AssetLoader.js.html index d9f0bf6..b797e4d 100644 --- a/docs/files/src_pixi_loaders_AssetLoader.js.html +++ b/docs/files/src_pixi_loaders_AssetLoader.js.html @@ -2,7 +2,7 @@ - src/pixi/loaders/AssetLoader.js - Pixi.JS + src/pixi/loaders/AssetLoader.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_loaders_AtlasLoader.js.html b/docs/files/src_pixi_loaders_AtlasLoader.js.html index b6b0475..01fac98 100644 --- a/docs/files/src_pixi_loaders_AtlasLoader.js.html +++ b/docs/files/src_pixi_loaders_AtlasLoader.js.html @@ -2,7 +2,7 @@ - src/pixi/loaders/AtlasLoader.js - Pixi.JS + src/pixi/loaders/AtlasLoader.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_loaders_BitmapFontLoader.js.html b/docs/files/src_pixi_loaders_BitmapFontLoader.js.html index 6b7e263..3dee5ec 100644 --- a/docs/files/src_pixi_loaders_BitmapFontLoader.js.html +++ b/docs/files/src_pixi_loaders_BitmapFontLoader.js.html @@ -2,7 +2,7 @@ - src/pixi/loaders/BitmapFontLoader.js - Pixi.JS + src/pixi/loaders/BitmapFontLoader.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_loaders_ImageLoader.js.html b/docs/files/src_pixi_loaders_ImageLoader.js.html index 78cb9eb..a50e9ea 100644 --- a/docs/files/src_pixi_loaders_ImageLoader.js.html +++ b/docs/files/src_pixi_loaders_ImageLoader.js.html @@ -2,7 +2,7 @@ - src/pixi/loaders/ImageLoader.js - Pixi.JS + src/pixi/loaders/ImageLoader.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_loaders_JsonLoader.js.html b/docs/files/src_pixi_loaders_JsonLoader.js.html index ed786d6..b676085 100644 --- a/docs/files/src_pixi_loaders_JsonLoader.js.html +++ b/docs/files/src_pixi_loaders_JsonLoader.js.html @@ -2,7 +2,7 @@ - src/pixi/loaders/JsonLoader.js - Pixi.JS + src/pixi/loaders/JsonLoader.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_loaders_SpineLoader.js.html b/docs/files/src_pixi_loaders_SpineLoader.js.html index 9d33eac..4ac3877 100644 --- a/docs/files/src_pixi_loaders_SpineLoader.js.html +++ b/docs/files/src_pixi_loaders_SpineLoader.js.html @@ -2,7 +2,7 @@ - src/pixi/loaders/SpineLoader.js - Pixi.JS + src/pixi/loaders/SpineLoader.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_loaders_SpriteSheetLoader.js.html b/docs/files/src_pixi_loaders_SpriteSheetLoader.js.html index 642a3eb..4847072 100644 --- a/docs/files/src_pixi_loaders_SpriteSheetLoader.js.html +++ b/docs/files/src_pixi_loaders_SpriteSheetLoader.js.html @@ -2,7 +2,7 @@ - src/pixi/loaders/SpriteSheetLoader.js - Pixi.JS + src/pixi/loaders/SpriteSheetLoader.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_primitives_Graphics.js.html b/docs/files/src_pixi_primitives_Graphics.js.html index 8d743f6..94cfdb0 100644 --- a/docs/files/src_pixi_primitives_Graphics.js.html +++ b/docs/files/src_pixi_primitives_Graphics.js.html @@ -2,7 +2,7 @@ - src/pixi/primitives/Graphics.js - Pixi.JS + src/pixi/primitives/Graphics.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -239,12 +241,27 @@ PIXI.Graphics = function() this.currentPath = {points:[]}; this._webGL = []; + + this.isMask = false; }; // constructor PIXI.Graphics.prototype = Object.create( PIXI.DisplayObjectContainer.prototype ); PIXI.Graphics.prototype.constructor = PIXI.Graphics; +/* +* Not yet implemented +*/ +Object.defineProperty(PIXI.Graphics.prototype, "cacheAsBitmap", { + get: function() { + return this._cacheAsBitmap; + }, + set: function(value) { + this._cacheAsBitmap = value; + } +}); + + /** * Specifies a line style used for subsequent calls to Graphics methods such as the lineTo() method or the drawCircle() method. * @@ -414,8 +431,12 @@ PIXI.Graphics.prototype._renderWebGL = function(renderSession) // if the sprite is not visible or the alpha is 0 then no need to render this element if(this.visible === false || this.alpha === 0 || this.isMask === true)return; + renderSession.spriteBatch.stop(); + if(this._mask)renderSession.maskManager.pushMask(this.mask, renderSession); + if(this._filters)renderSession.filterManager.pushFilter(this._filterBlock); + // check blend mode if(this.blendMode !== renderSession.spriteBatch.currentBlendMode) { @@ -423,9 +444,14 @@ PIXI.Graphics.prototype._renderWebGL = function(renderSession) var blendModeWebGL = PIXI.blendModesWebGL[renderSession.spriteBatch.currentBlendMode]; this.spriteBatch.gl.blendFunc(blendModeWebGL[0], blendModeWebGL[1]); } - + PIXI.WebGLGraphics.renderGraphics(this, renderSession); + if(this._filters)renderSession.filterManager.popFilter(); + if(this._mask)renderSession.maskManager.popMask(renderSession); + + renderSession.drawCount++; + renderSession.spriteBatch.start(); }; @@ -452,9 +478,9 @@ PIXI.Graphics.prototype.getBounds = function() if(!this.bounds)this.updateBounds(); var w0 = this.bounds.x; - var w1 = this.bounds.y; + var w1 = this.bounds.width + this.bounds.x; - var h0 = this.bounds.width + this.bounds.x; + var h0 = this.bounds.y; var h1 = this.bounds.height + this.bounds.y; var worldTransform = this.worldTransform; @@ -518,7 +544,6 @@ PIXI.Graphics.prototype.getBounds = function() PIXI.Graphics.prototype.updateBounds = function() { - var minX = Infinity; var maxX = -Infinity; @@ -567,7 +592,6 @@ PIXI.Graphics.prototype.updateBounds = function() x = points[j]; y = points[j+1]; - minX = x-lineWidth < minX ? x-lineWidth : minX; maxX = x+lineWidth > maxX ? x+lineWidth : maxX; @@ -578,8 +602,6 @@ PIXI.Graphics.prototype.updateBounds = function() } this.bounds = new PIXI.Rectangle(minX, minY, maxX - minX, maxY - minY); - -// console.log(this.bounds); }; // SOME TYPES: diff --git a/docs/files/src_pixi_renderers_canvas_CanvasGraphics.js.html b/docs/files/src_pixi_renderers_canvas_CanvasGraphics.js.html index a9eed2b..cb54464 100644 --- a/docs/files/src_pixi_renderers_canvas_CanvasGraphics.js.html +++ b/docs/files/src_pixi_renderers_canvas_CanvasGraphics.js.html @@ -2,7 +2,7 @@ - src/pixi/renderers/canvas/CanvasGraphics.js - Pixi.JS + src/pixi/renderers/canvas/CanvasGraphics.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_renderers_canvas_CanvasRenderer.js.html b/docs/files/src_pixi_renderers_canvas_CanvasRenderer.js.html index ae7063f..1e60cf4 100644 --- a/docs/files/src_pixi_renderers_canvas_CanvasRenderer.js.html +++ b/docs/files/src_pixi_renderers_canvas_CanvasRenderer.js.html @@ -2,7 +2,7 @@ - src/pixi/renderers/canvas/CanvasRenderer.js - Pixi.JS + src/pixi/renderers/canvas/CanvasRenderer.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_renderers_canvas_utils_CanvasMaskManager.js.html b/docs/files/src_pixi_renderers_canvas_utils_CanvasMaskManager.js.html index b78571b..4f57f1a 100644 --- a/docs/files/src_pixi_renderers_canvas_utils_CanvasMaskManager.js.html +++ b/docs/files/src_pixi_renderers_canvas_utils_CanvasMaskManager.js.html @@ -2,7 +2,7 @@ - src/pixi/renderers/canvas/utils/CanvasMaskManager.js - Pixi.JS + src/pixi/renderers/canvas/utils/CanvasMaskManager.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_renderers_canvas_utils_CanvasTinter.js.html b/docs/files/src_pixi_renderers_canvas_utils_CanvasTinter.js.html index 0b69d7c..51b51d5 100644 --- a/docs/files/src_pixi_renderers_canvas_utils_CanvasTinter.js.html +++ b/docs/files/src_pixi_renderers_canvas_utils_CanvasTinter.js.html @@ -2,7 +2,7 @@ - src/pixi/renderers/canvas/utils/CanvasTinter.js - Pixi.JS + src/pixi/renderers/canvas/utils/CanvasTinter.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_renderers_webgl_WebGLRenderer.js.html b/docs/files/src_pixi_renderers_webgl_WebGLRenderer.js.html index 870cbf4..3f4f9df 100644 --- a/docs/files/src_pixi_renderers_webgl_WebGLRenderer.js.html +++ b/docs/files/src_pixi_renderers_webgl_WebGLRenderer.js.html @@ -2,7 +2,7 @@ - src/pixi/renderers/webgl/WebGLRenderer.js - Pixi.JS + src/pixi/renderers/webgl/WebGLRenderer.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -255,9 +257,9 @@ PIXI.WebGLRenderer = function(width, height, view, transparent, antialias) PIXI.blendModesWebGL[PIXI.blendModes.SCREEN] = [gl.SRC_ALPHA, gl.ONE]; } - - + + this.projection = new PIXI.Point(); this.projection.x = this.width/2; this.projection.y = -this.height/2; @@ -276,6 +278,7 @@ PIXI.WebGLRenderer = function(width, height, view, transparent, antialias) // this.renderSession = {}; this.renderSession.gl = this.gl; + this.renderSession.drawCount = 0; this.renderSession.shaderManager = this.shaderManager; this.renderSession.maskManager = this.maskManager; this.renderSession.filterManager = this.filterManager; @@ -317,7 +320,7 @@ PIXI.WebGLRenderer.prototype.render = function(stage) // update any textures this includes uvs and uploading them to the gpu PIXI.WebGLRenderer.updateTextures(); - + // update the scene graph stage.updateTransform(); @@ -330,7 +333,6 @@ PIXI.WebGLRenderer.prototype.render = function(stage) // make sure we are bound to the main frame buffer gl.bindFramebuffer(gl.FRAMEBUFFER, null); - gl.clearColor(stage.backgroundColorSplit[0],stage.backgroundColorSplit[1],stage.backgroundColorSplit[2], !this.transparent); gl.clear(gl.COLOR_BUFFER_BIT); @@ -380,7 +382,7 @@ PIXI.WebGLRenderer.prototype.renderDisplayObject = function(displayObject, proje this.renderSession.projection = projection; this.renderSession.offset = this.offset; - + // start the sprite batch this.spriteBatch.begin(this.renderSession); @@ -512,19 +514,19 @@ PIXI.WebGLRenderer.prototype.resize = function(width, height) this.view.height = height; this.gl.viewport(0, 0, this.width, this.height); - + this.projection.x = this.width/2; this.projection.y = -this.height/2; }; PIXI.createWebGLTexture = function(texture, gl) { - + if(texture.hasLoaded) { texture._glTextures[gl.id] = gl.createTexture(); - + gl.bindTexture(gl.TEXTURE_2D, texture._glTextures[gl.id]); gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, true); @@ -571,7 +573,7 @@ PIXI.WebGLRenderer.prototype.handleContextLost = function(event) */ PIXI.WebGLRenderer.prototype.handleContextRestored = function() { - + //try 'experimental-webgl' try { this.gl = this.view.getContext('experimental-webgl', this.options); @@ -596,15 +598,15 @@ PIXI.WebGLRenderer.prototype.handleContextRestored = function() this.maskManager.setContext(gl); this.filterManager.setContext(gl); - + this.renderSession.gl = this.gl; - + gl.disable(gl.DEPTH_TEST); gl.disable(gl.CULL_FACE); gl.enable(gl.BLEND); gl.colorMask(true, true, true, this.transparent); - + this.gl.viewport(0, 0, this.width, this.height); for(var key in PIXI.TextureCache) @@ -614,7 +616,7 @@ PIXI.WebGLRenderer.prototype.handleContextRestored = function() } this.contextLost = false; - + }; PIXI.WebGLRenderer.glContextId = 0; diff --git a/docs/files/src_pixi_renderers_webgl_PixiShader.js.html b/docs/files/src_pixi_renderers_webgl_shaders_PixiShader.js.html similarity index 95% rename from docs/files/src_pixi_renderers_webgl_PixiShader.js.html rename to docs/files/src_pixi_renderers_webgl_shaders_PixiShader.js.html index 173e0aa..8ccc2ac 100644 --- a/docs/files/src_pixi_renderers_webgl_PixiShader.js.html +++ b/docs/files/src_pixi_renderers_webgl_shaders_PixiShader.js.html @@ -2,7 +2,7 @@ - src/pixi/renderers/webgl/PixiShader.js - Pixi.JS + src/pixi/renderers/webgl/shaders/PixiShader.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -168,7 +170,7 @@
    -

    File: src/pixi/renderers/webgl/PixiShader.js

    +

    File: src/pixi/renderers/webgl/shaders/PixiShader.js

    @@ -233,8 +235,22 @@ PIXI.PixiShader.prototype.init = function()
     
         // get and store the attributes
         this.aVertexPosition = gl.getAttribLocation(program, 'aVertexPosition');
    -    this.colorAttribute = gl.getAttribLocation(program, 'aColor');
         this.aTextureCoord = gl.getAttribLocation(program, 'aTextureCoord');
    +    this.colorAttribute = gl.getAttribLocation(program, 'aColor');
    +
    +
    +    // Begin worst hack eva //
    +
    +    // WHY??? ONLY on my chrome pixel the line above returns -1 when using filters?
    +    // maybe its somthing to do with the current state of the gl context.
    +    // Im convinced this is a bug in the chrome browser as there is NO reason why this should be returning -1 especially as it only manifests on my chrome pixel
    +    // If theres any webGL people that know why could happen please help :)
    +    if(this.colorAttribute === -1)
    +    {
    +        this.colorAttribute = 2;
    +    }
    +
    +    // End worst hack eva //
     
         // add those custom shaders!
         for (var key in this.uniforms)
    @@ -461,8 +477,8 @@ PIXI.PixiShader.defaultVertexSrc = [
     
         'uniform vec2 projectionVector;',
         'uniform vec2 offsetVector;',
    -    'varying vec2 vTextureCoord;',
     
    +    'varying vec2 vTextureCoord;',
         'varying vec4 vColor;',
     
         'const vec2 center = vec2(-1.0, 1.0);',
    diff --git a/docs/files/src_pixi_renderers_webgl_PrimitiveShader.js.html b/docs/files/src_pixi_renderers_webgl_shaders_PrimitiveShader.js.html
    similarity index 97%
    rename from docs/files/src_pixi_renderers_webgl_PrimitiveShader.js.html
    rename to docs/files/src_pixi_renderers_webgl_shaders_PrimitiveShader.js.html
    index 2c40066..67326be 100644
    --- a/docs/files/src_pixi_renderers_webgl_PrimitiveShader.js.html
    +++ b/docs/files/src_pixi_renderers_webgl_shaders_PrimitiveShader.js.html
    @@ -2,7 +2,7 @@
     
     
         
    -    src/pixi/renderers/webgl/PrimitiveShader.js - Pixi.JS
    +    src/pixi/renderers/webgl/shaders/PrimitiveShader.js - pixi.js
         
         
         
    @@ -15,7 +15,7 @@
         
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -168,7 +170,7 @@
    -

    File: src/pixi/renderers/webgl/PrimitiveShader.js

    +

    File: src/pixi/renderers/webgl/shaders/PrimitiveShader.js

    diff --git a/docs/files/src_pixi_renderers_webgl_StripShader.js.html b/docs/files/src_pixi_renderers_webgl_shaders_StripShader.js.html
    similarity index 96%
    rename from docs/files/src_pixi_renderers_webgl_StripShader.js.html
    rename to docs/files/src_pixi_renderers_webgl_shaders_StripShader.js.html
    index 151fdbd..f59c649 100644
    --- a/docs/files/src_pixi_renderers_webgl_StripShader.js.html
    +++ b/docs/files/src_pixi_renderers_webgl_shaders_StripShader.js.html
    @@ -2,7 +2,7 @@
     
     
         
    -    src/pixi/renderers/webgl/StripShader.js - Pixi.JS
    +    src/pixi/renderers/webgl/shaders/StripShader.js - pixi.js
         
         
         
    @@ -15,7 +15,7 @@
         
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -168,7 +170,7 @@
    -

    File: src/pixi/renderers/webgl/StripShader.js

    +

    File: src/pixi/renderers/webgl/shaders/StripShader.js

    @@ -202,7 +204,7 @@ PIXI.StripShader = function()
             'uniform mat3 translationMatrix;',
             'uniform vec2 projectionVector;',
             'varying vec2 vTextureCoord;',
    -        'attribute vec2 offsetVector;',
    +        'uniform vec2 offsetVector;',
             'varying float vColor;',
     
             'void main(void) {',
    diff --git a/docs/files/src_pixi_renderers_webgl_utils_WebGLFilterManager.js.html b/docs/files/src_pixi_renderers_webgl_utils_WebGLFilterManager.js.html
    index 8f8901b..21e7a95 100644
    --- a/docs/files/src_pixi_renderers_webgl_utils_WebGLFilterManager.js.html
    +++ b/docs/files/src_pixi_renderers_webgl_utils_WebGLFilterManager.js.html
    @@ -2,7 +2,7 @@
     
     
         
    -    src/pixi/renderers/webgl/utils/WebGLFilterManager.js - Pixi.JS
    +    src/pixi/renderers/webgl/utils/WebGLFilterManager.js - pixi.js
         
         
         
    @@ -15,7 +15,7 @@
         
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -240,10 +242,10 @@ PIXI.WebGLFilterManager.prototype.pushFilter = function(filterBlock) gl.bindTexture(gl.TEXTURE_2D, texture.texture); - this.getBounds(filterBlock.target); +// this.getBounds(filterBlock.target); filterBlock.target.filterArea = filterBlock.target.getBounds(); - + // console.log(filterBlock.target.filterArea) // console.log(filterBlock.target.filterArea); // addpadding? //displayObject.filterArea.x @@ -507,12 +509,14 @@ PIXI.WebGLFilterManager.prototype.applyFilterPass = function(filter, filterArea, gl.vertexAttribPointer(shader.aTextureCoord, 2, gl.FLOAT, false, 0, 0); gl.bindBuffer(gl.ARRAY_BUFFER, this.colorBuffer); - gl.vertexAttribPointer(shader.colorAttribute, 1, gl.FLOAT, false, 0, 0); + gl.vertexAttribPointer(shader.colorAttribute, 2, gl.FLOAT, false, 0, 0); gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, this.indexBuffer); // draw the filter... gl.drawElements(gl.TRIANGLES, 6, gl.UNSIGNED_SHORT, 0 ); + + this.renderSession.drawCount++; }; PIXI.WebGLFilterManager.prototype.initShaderBuffers = function() @@ -552,7 +556,10 @@ PIXI.WebGLFilterManager.prototype.initShaderBuffers = function() this.uvArray, gl.STATIC_DRAW); - this.colorArray = new Float32Array([1.0, 1.0 , 1.0, 1.0]); + this.colorArray = new Float32Array([1.0, 0xFFFFFF, + 1.0, 0xFFFFFF, + 1.0, 0xFFFFFF, + 1.0, 0xFFFFFF]); gl.bindBuffer(gl.ARRAY_BUFFER, this.colorBuffer); gl.bufferData( @@ -568,127 +575,8 @@ PIXI.WebGLFilterManager.prototype.initShaderBuffers = function() gl.STATIC_DRAW); }; -PIXI.WebGLFilterManager.prototype.getBounds = function(displayObject) -{ - // time to get the width and height of the object! - var worldTransform, width, height, aX, aY, w0, w1, h0, h1, doTest; - var a, b, c, d, tx, ty, x1, x2, x3, x4, y1, y2, y3, y4; - - var tempObject = displayObject.first; - var testObject = displayObject.last._iNext; - - var maxX = -Infinity; - var maxY = -Infinity; - - var minX = Infinity; - var minY = Infinity; - - do - { - // TODO can be optimized! - what if there is no scale / rotation? - - if(tempObject.visible) - { - if(tempObject instanceof PIXI.Sprite) - { - width = tempObject.texture.frame.width; - height = tempObject.texture.frame.height; - - // TODO trim?? - aX = tempObject.anchor.x; - aY = tempObject.anchor.y; - w0 = width * (1-aX); - w1 = width * -aX; - - h0 = height * (1-aY); - h1 = height * -aY; - - doTest = true; - } - else if(tempObject instanceof PIXI.Graphics) - { - tempObject.updateFilterBounds(); - - var bounds = tempObject.bounds; - - width = bounds.width; - height = bounds.height; - - w0 = bounds.x; - w1 = bounds.x + bounds.width; - - h0 = bounds.y; - h1 = bounds.y + bounds.height; - - doTest = true; - } - } - - if(doTest) - { - worldTransform = tempObject.worldTransform; - - a = worldTransform[0]; - b = worldTransform[3]; - c = worldTransform[1]; - d = worldTransform[4]; - tx = worldTransform[2]; - ty = worldTransform[5]; - - x1 = a * w1 + c * h1 + tx; - y1 = d * h1 + b * w1 + ty; - - x2 = a * w0 + c * h1 + tx; - y2 = d * h1 + b * w0 + ty; - - x3 = a * w0 + c * h0 + tx; - y3 = d * h0 + b * w0 + ty; - - x4 = a * w1 + c * h0 + tx; - y4 = d * h0 + b * w1 + ty; - - minX = x1 < minX ? x1 : minX; - minX = x2 < minX ? x2 : minX; - minX = x3 < minX ? x3 : minX; - minX = x4 < minX ? x4 : minX; - - minY = y1 < minY ? y1 : minY; - minY = y2 < minY ? y2 : minY; - minY = y3 < minY ? y3 : minY; - minY = y4 < minY ? y4 : minY; - - maxX = x1 > maxX ? x1 : maxX; - maxX = x2 > maxX ? x2 : maxX; - maxX = x3 > maxX ? x3 : maxX; - maxX = x4 > maxX ? x4 : maxX; - - maxY = y1 > maxY ? y1 : maxY; - maxY = y2 > maxY ? y2 : maxY; - maxY = y3 > maxY ? y3 : maxY; - maxY = y4 > maxY ? y4 : maxY; - } - - doTest = false; - tempObject = tempObject._iNext; - - } - while(tempObject !== testObject); - - // maximum bounds is the size of the screen.. - //minX = minX > 0 ? minX : 0; - //minY = minY > 0 ? minY : 0; - - displayObject.filterArea.x = minX; - displayObject.filterArea.y = minY; - -// console.log(maxX+ " : " + minX) - displayObject.filterArea.width = maxX - minX; - displayObject.filterArea.height = maxY - minY; -}; - PIXI.FilterTexture = function(gl, width, height) { - // var gl = PIXI.gl; this.gl = gl; // next time to create a frame buffer and texture diff --git a/docs/files/src_pixi_renderers_webgl_utils_WebGLGraphics.js.html b/docs/files/src_pixi_renderers_webgl_utils_WebGLGraphics.js.html index 0859b40..8048df0 100644 --- a/docs/files/src_pixi_renderers_webgl_utils_WebGLGraphics.js.html +++ b/docs/files/src_pixi_renderers_webgl_utils_WebGLGraphics.js.html @@ -2,7 +2,7 @@ - src/pixi/renderers/webgl/utils/WebGLGraphics.js - Pixi.JS + src/pixi/renderers/webgl/utils/WebGLGraphics.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -242,7 +244,6 @@ PIXI.WebGLGraphics.renderGraphics = function(graphics, renderSession)//projectio gl.uniform3fv(shader.tintColor, PIXI.hex2rgb(graphics.tint)); - gl.uniform1f(shader.alpha, graphics.worldAlpha); gl.uniform1f(shader.alpha, graphics.worldAlpha); gl.bindBuffer(gl.ARRAY_BUFFER, webGL.buffer); diff --git a/docs/files/src_pixi_renderers_webgl_utils_WebGLMaskManager.js.html b/docs/files/src_pixi_renderers_webgl_utils_WebGLMaskManager.js.html index c8d7300..6c71672 100644 --- a/docs/files/src_pixi_renderers_webgl_utils_WebGLMaskManager.js.html +++ b/docs/files/src_pixi_renderers_webgl_utils_WebGLMaskManager.js.html @@ -2,7 +2,7 @@ - src/pixi/renderers/webgl/utils/WebGLMaskManager.js - Pixi.JS + src/pixi/renderers/webgl/utils/WebGLMaskManager.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_renderers_webgl_utils_WebGLShaderManager.js.html b/docs/files/src_pixi_renderers_webgl_utils_WebGLShaderManager.js.html index 05a4410..7831eaf 100644 --- a/docs/files/src_pixi_renderers_webgl_utils_WebGLShaderManager.js.html +++ b/docs/files/src_pixi_renderers_webgl_utils_WebGLShaderManager.js.html @@ -2,7 +2,7 @@ - src/pixi/renderers/webgl/utils/WebGLShaderManager.js - Pixi.JS + src/pixi/renderers/webgl/utils/WebGLShaderManager.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_renderers_webgl_WebGLShaders.js.html b/docs/files/src_pixi_renderers_webgl_utils_WebGLShaderUtils.js.html similarity index 80% rename from docs/files/src_pixi_renderers_webgl_WebGLShaders.js.html rename to docs/files/src_pixi_renderers_webgl_utils_WebGLShaderUtils.js.html index d841836..632a520 100644 --- a/docs/files/src_pixi_renderers_webgl_WebGLShaders.js.html +++ b/docs/files/src_pixi_renderers_webgl_utils_WebGLShaderUtils.js.html @@ -2,7 +2,7 @@ - src/pixi/renderers/webgl/WebGLShaders.js - Pixi.JS + src/pixi/renderers/webgl/utils/WebGLShaderUtils.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • @@ -168,7 +170,7 @@
    -

    File: src/pixi/renderers/webgl/WebGLShaders.js

    +

    File: src/pixi/renderers/webgl/utils/WebGLShaderUtils.js

    @@ -178,75 +180,11 @@
     
     PIXI.initDefaultShaders = function()
     {
    -   // PIXI.primitiveShader = new PIXI.PrimitiveShader();
    -  //  PIXI.primitiveShader.init();
    +   
    +  //  PIXI.stripShader = new PIXI.StripShader();
    +//    PIXI.stripShader.init();
     
    -    PIXI.stripShader = new PIXI.StripShader();
    -    PIXI.stripShader.init();
    -
    -  //  PIXI.defaultShader = new PIXI.PixiShader();
    -//    PIXI.defaultShader.init();
    -
    -  /*  var gl = PIXI.gl;
    -    var shaderProgram = PIXI.defaultShader.program;
    -
    -    gl.useProgram(shaderProgram);
    -
    -    gl.enableVertexAttribArray(PIXI.defaultShader.aVertexPosition);
    -    gl.enableVertexAttribArray(PIXI.defaultShader.colorAttribute);
    -    gl.enableVertexAttribArray(PIXI.defaultShader.aTextureCoord);*/
     };
    -/*
    -PIXI.activatePrimitiveShader = function()
    -{
    -    var gl = PIXI.gl;
    -
    -    gl.useProgram(PIXI.primitiveShader.program);
    -
    -    gl.disableVertexAttribArray(PIXI.defaultShader.aVertexPosition);
    -    gl.disableVertexAttribArray(PIXI.defaultShader.colorAttribute);
    -    gl.disableVertexAttribArray(PIXI.defaultShader.aTextureCoord);
    -
    -    gl.enableVertexAttribArray(PIXI.primitiveShader.aVertexPosition);
    -    gl.enableVertexAttribArray(PIXI.primitiveShader.colorAttribute);
    -};
    -
    -PIXI.deactivatePrimitiveShader = function()
    -{
    -    var gl = PIXI.gl;
    -
    -    gl.useProgram(PIXI.defaultShader.program);
    -
    -    gl.disableVertexAttribArray(PIXI.primitiveShader.aVertexPosition);
    -    gl.disableVertexAttribArray(PIXI.primitiveShader.colorAttribute);
    -
    -    gl.enableVertexAttribArray(PIXI.defaultShader.aVertexPosition);
    -    gl.enableVertexAttribArray(PIXI.defaultShader.colorAttribute);
    -    gl.enableVertexAttribArray(PIXI.defaultShader.aTextureCoord);
    -};
    -*/
    -
    -/*
    -PIXI.activateStripShader = function()
    -{
    -    var gl = PIXI.gl;
    -
    -    gl.useProgram(PIXI.stripShader.program);
    - // gl.disableVertexAttribArray(PIXI.defaultShader.aTextureCoord);
    -};
    -
    -PIXI.deactivateStripShader = function()
    -{
    -    var gl = PIXI.gl;
    -
    -    gl.useProgram(PIXI.defaultShader.program);
    -    //gl.enableVertexAttribArray(PIXI.defaultShader.aTextureCoord);
    -};
    -*/
    -/*
    -
    -SHADER COMPILER HELPERS
    -*/
     
     PIXI.CompileVertexShader = function(gl, shaderSrc)
     {
    diff --git a/docs/files/src_pixi_renderers_webgl_utils_WebGLSpriteBatch.js.html b/docs/files/src_pixi_renderers_webgl_utils_WebGLSpriteBatch.js.html
    index bf7e1dd..b4bbd80 100644
    --- a/docs/files/src_pixi_renderers_webgl_utils_WebGLSpriteBatch.js.html
    +++ b/docs/files/src_pixi_renderers_webgl_utils_WebGLSpriteBatch.js.html
    @@ -2,7 +2,7 @@
     
     
         
    -    src/pixi/renderers/webgl/utils/WebGLSpriteBatch.js - Pixi.JS
    +    src/pixi/renderers/webgl/utils/WebGLSpriteBatch.js - pixi.js
         
         
         
    @@ -15,7 +15,7 @@
         
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_text_BitmapText.js.html b/docs/files/src_pixi_text_BitmapText.js.html index 90d057e..fba5af9 100644 --- a/docs/files/src_pixi_text_BitmapText.js.html +++ b/docs/files/src_pixi_text_BitmapText.js.html @@ -2,7 +2,7 @@ - src/pixi/text/BitmapText.js - Pixi.JS + src/pixi/text/BitmapText.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_text_Text.js.html b/docs/files/src_pixi_text_Text.js.html index d818952..859d6fe 100644 --- a/docs/files/src_pixi_text_Text.js.html +++ b/docs/files/src_pixi_text_Text.js.html @@ -2,7 +2,7 @@ - src/pixi/text/Text.js - Pixi.JS + src/pixi/text/Text.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_textures_BaseTexture.js.html b/docs/files/src_pixi_textures_BaseTexture.js.html index 61f3487..94ef18d 100644 --- a/docs/files/src_pixi_textures_BaseTexture.js.html +++ b/docs/files/src_pixi_textures_BaseTexture.js.html @@ -2,7 +2,7 @@ - src/pixi/textures/BaseTexture.js - Pixi.JS + src/pixi/textures/BaseTexture.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_textures_RenderTexture.js.html b/docs/files/src_pixi_textures_RenderTexture.js.html index 41383a6..a93d444 100644 --- a/docs/files/src_pixi_textures_RenderTexture.js.html +++ b/docs/files/src_pixi_textures_RenderTexture.js.html @@ -2,7 +2,7 @@ - src/pixi/textures/RenderTexture.js - Pixi.JS + src/pixi/textures/RenderTexture.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_textures_Texture.js.html b/docs/files/src_pixi_textures_Texture.js.html index 4c5c257..f85adf6 100644 --- a/docs/files/src_pixi_textures_Texture.js.html +++ b/docs/files/src_pixi_textures_Texture.js.html @@ -2,7 +2,7 @@ - src/pixi/textures/Texture.js - Pixi.JS + src/pixi/textures/Texture.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_utils_Detector.js.html b/docs/files/src_pixi_utils_Detector.js.html index 8501a71..f914f37 100644 --- a/docs/files/src_pixi_utils_Detector.js.html +++ b/docs/files/src_pixi_utils_Detector.js.html @@ -2,7 +2,7 @@ - src/pixi/utils/Detector.js - Pixi.JS + src/pixi/utils/Detector.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_utils_EventTarget.js.html b/docs/files/src_pixi_utils_EventTarget.js.html index 416de4b..a26bd08 100644 --- a/docs/files/src_pixi_utils_EventTarget.js.html +++ b/docs/files/src_pixi_utils_EventTarget.js.html @@ -2,7 +2,7 @@ - src/pixi/utils/EventTarget.js - Pixi.JS + src/pixi/utils/EventTarget.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_utils_Polyk.js.html b/docs/files/src_pixi_utils_Polyk.js.html index 5fe9e1c..3eb6627 100644 --- a/docs/files/src_pixi_utils_Polyk.js.html +++ b/docs/files/src_pixi_utils_Polyk.js.html @@ -2,7 +2,7 @@ - src/pixi/utils/Polyk.js - Pixi.JS + src/pixi/utils/Polyk.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/files/src_pixi_utils_Utils.js.html b/docs/files/src_pixi_utils_Utils.js.html index 4aac872..cbc58db 100644 --- a/docs/files/src_pixi_utils_Utils.js.html +++ b/docs/files/src_pixi_utils_Utils.js.html @@ -2,7 +2,7 @@ - src/pixi/utils/Utils.js - Pixi.JS + src/pixi/utils/Utils.js - pixi.js @@ -15,7 +15,7 @@
    -

    +

    @@ -43,6 +43,8 @@
  • AbstractFilter
  • +
  • AlphaMaskFilter
  • +
  • AssetLoader
  • AtlasLoader
  • diff --git a/docs/index.html b/docs/index.html index 79c7a59..9a3761f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,7 +2,7 @@ - Pixi.JS + pixi.js @@ -15,7 +15,7 @@