{"version":3,"sources":["node_modules/browser-pack/_prelude.js","../pixi-gl-core/src/GLBuffer.js","../pixi-gl-core/src/GLFramebuffer.js","../pixi-gl-core/src/GLShader.js","../pixi-gl-core/src/GLTexture.js","../pixi-gl-core/src/VertexArrayObject.js","../pixi-gl-core/src/createContext.js","../pixi-gl-core/src/index.js","../pixi-gl-core/src/setVertexAttribArrays.js","../pixi-gl-core/src/shader/compileProgram.js","../pixi-gl-core/src/shader/defaultValue.js","../pixi-gl-core/src/shader/extractAttributes.js","../pixi-gl-core/src/shader/extractUniforms.js","../pixi-gl-core/src/shader/generateUniformAccessObject.js","../pixi-gl-core/src/shader/index.js","../pixi-gl-core/src/shader/mapSize.js","../pixi-gl-core/src/shader/mapType.js","node_modules/async/eachLimit.js","node_modules/async/eachSeries.js","node_modules/async/internal/DoublyLinkedList.js","node_modules/async/internal/doLimit.js","node_modules/async/internal/eachOfLimit.js","node_modules/async/internal/getIterator.js","node_modules/async/internal/iterator.js","node_modules/async/internal/once.js","node_modules/async/internal/onlyOnce.js","node_modules/async/internal/queue.js","node_modules/async/internal/setImmediate.js","node_modules/async/internal/withoutIndex.js","node_modules/async/queue.js","node_modules/bit-twiddle/twiddle.js","node_modules/earcut/src/earcut.js","node_modules/eventemitter3/index.js","node_modules/ismobilejs/isMobile.js","node_modules/lodash/_apply.js","node_modules/lodash/_arrayEach.js","node_modules/lodash/_arrayLikeKeys.js","node_modules/lodash/_baseKeys.js","node_modules/lodash/_baseRest.js","node_modules/lodash/_baseTimes.js","node_modules/lodash/_isIndex.js","node_modules/lodash/_isPrototype.js","node_modules/lodash/_nativeKeys.js","node_modules/lodash/_overArg.js","node_modules/lodash/isArguments.js","node_modules/lodash/isArray.js","node_modules/lodash/isArrayLike.js","node_modules/lodash/isArrayLikeObject.js","node_modules/lodash/isFunction.js","node_modules/lodash/isLength.js","node_modules/lodash/isObject.js","node_modules/lodash/isObjectLike.js","node_modules/lodash/isSymbol.js","node_modules/lodash/keys.js","node_modules/lodash/noop.js","node_modules/lodash/rest.js","node_modules/lodash/toFinite.js","node_modules/lodash/toInteger.js","node_modules/lodash/toNumber.js","node_modules/object-assign/index.js","node_modules/path-browserify/index.js","node_modules/process/browser.js","node_modules/punycode/punycode.js","node_modules/querystring-es3/decode.js","node_modules/querystring-es3/encode.js","node_modules/querystring-es3/index.js","node_modules/resource-loader/src/Loader.js","node_modules/resource-loader/src/Resource.js","node_modules/resource-loader/src/b64.js","node_modules/resource-loader/src/index.js","node_modules/resource-loader/src/middlewares/caching/memory.js","node_modules/resource-loader/src/middlewares/parsing/blob.js","node_modules/url/url.js","node_modules/url/util.js","src/accessibility/AccessibilityManager.js","src/accessibility/accessibleTarget.js","src/accessibility/index.js","src/core/Shader.js","src/core/const.js","src/core/display/Bounds.js","src/core/display/Container.js","src/core/display/DisplayObject.js","src/core/display/Transform.js","src/core/display/TransformBase.js","src/core/display/TransformStatic.js","src/core/graphics/Graphics.js","src/core/graphics/GraphicsData.js","src/core/graphics/canvas/CanvasGraphicsRenderer.js","src/core/graphics/utils/bezierCurveTo.js","src/core/graphics/webgl/GraphicsRenderer.js","src/core/graphics/webgl/WebGLGraphicsData.js","src/core/graphics/webgl/shaders/PrimitiveShader.js","src/core/graphics/webgl/utils/buildCircle.js","src/core/graphics/webgl/utils/buildLine.js","src/core/graphics/webgl/utils/buildPoly.js","src/core/graphics/webgl/utils/buildRectangle.js","src/core/graphics/webgl/utils/buildRoundedRectangle.js","src/core/index.js","src/core/math/GroupD8.js","src/core/math/Matrix.js","src/core/math/ObservablePoint.js","src/core/math/Point.js","src/core/math/index.js","src/core/math/shapes/Circle.js","src/core/math/shapes/Ellipse.js","src/core/math/shapes/Polygon.js","src/core/math/shapes/Rectangle.js","src/core/math/shapes/RoundedRectangle.js","src/core/renderers/SystemRenderer.js","src/core/renderers/canvas/CanvasRenderer.js","src/core/renderers/canvas/utils/CanvasMaskManager.js","src/core/renderers/canvas/utils/CanvasRenderTarget.js","src/core/renderers/canvas/utils/canUseNewCanvasBlendModes.js","src/core/renderers/canvas/utils/mapCanvasBlendModesToPixi.js","src/core/renderers/webgl/TextureGarbageCollector.js","src/core/renderers/webgl/TextureManager.js","src/core/renderers/webgl/WebGLRenderer.js","src/core/renderers/webgl/WebGLState.js","src/core/renderers/webgl/filters/Filter.js","src/core/renderers/webgl/filters/extractUniformsFromSrc.js","src/core/renderers/webgl/filters/filterTransforms.js","src/core/renderers/webgl/filters/spriteMask/SpriteMaskFilter.js","src/core/renderers/webgl/managers/FilterManager.js","src/core/renderers/webgl/managers/MaskManager.js","src/core/renderers/webgl/managers/StencilManager.js","src/core/renderers/webgl/managers/WebGLManager.js","src/core/renderers/webgl/utils/ObjectRenderer.js","src/core/renderers/webgl/utils/Quad.js","src/core/renderers/webgl/utils/RenderTarget.js","src/core/renderers/webgl/utils/checkMaxIfStatmentsInShader.js","src/core/renderers/webgl/utils/mapWebGLBlendModesToPixi.js","src/core/renderers/webgl/utils/mapWebGLDrawModesToPixi.js","src/core/renderers/webgl/utils/validateContext.js","src/core/sprites/Sprite.js","src/core/sprites/canvas/CanvasSpriteRenderer.js","src/core/sprites/canvas/CanvasTinter.js","src/core/sprites/webgl/BatchBuffer.js","src/core/sprites/webgl/SpriteRenderer.js","src/core/sprites/webgl/generateMultiTextureShader.js","src/core/text/Text.js","src/core/text/TextStyle.js","src/core/textures/BaseRenderTexture.js","src/core/textures/BaseTexture.js","src/core/textures/RenderTexture.js","src/core/textures/Texture.js","src/core/textures/TextureUvs.js","src/core/textures/VideoBaseTexture.js","src/core/ticker/Ticker.js","src/core/ticker/index.js","src/core/utils/createIndicesForQuads.js","src/core/utils/determineCrossOrigin.js","src/core/utils/index.js","src/core/utils/maxRecommendedTextures.js","src/core/utils/pluginTarget.js","src/deprecation.js","src/extract/canvas/CanvasExtract.js","src/extract/index.js","src/extract/webgl/WebGLExtract.js","src/extras/BitmapText.js","src/extras/MovieClip.js","src/extras/TilingSprite.js","src/extras/cacheAsBitmap.js","src/extras/getChildByName.js","src/extras/getGlobalPosition.js","src/extras/index.js","src/extras/webgl/TilingShader.js","src/filters/blur/BlurFilter.js","src/filters/blur/BlurXFilter.js","src/filters/blur/BlurYFilter.js","src/filters/blur/generateBlurFragSource.js","src/filters/blur/generateBlurVertSource.js","src/filters/blur/getMaxBlurKernelSize.js","src/filters/colormatrix/ColorMatrixFilter.js","src/filters/displacement/DisplacementFilter.js","src/filters/fxaa/FXAAFilter.js","src/filters/index.js","src/filters/noise/NoiseFilter.js","src/filters/void/VoidFilter.js","src/interaction/InteractionData.js","src/interaction/InteractionManager.js","src/interaction/index.js","src/interaction/interactiveTarget.js","src/loaders/bitmapFontParser.js","src/loaders/index.js","src/loaders/loader.js","src/loaders/spritesheetParser.js","src/loaders/textureParser.js","src/mesh/Mesh.js","src/mesh/NineSlicePlane.js","src/mesh/Plane.js","src/mesh/Rope.js","src/mesh/index.js","src/mesh/webgl/MeshShader.js","src/particles/ParticleContainer.js","src/particles/index.js","src/particles/webgl/ParticleBuffer.js","src/particles/webgl/ParticleRenderer.js","src/particles/webgl/ParticleShader.js"],"names":["f","exports","module","define","amd","g","window","global","self","this","PIXI","e","t","n","r","s","o","u","a","require","i","Error","code","l","call","length","1","EMPTY_ARRAY_BUFFER","ArrayBuffer","Buffer","gl","type","data","drawType","buffer","createBuffer","ARRAY_BUFFER","STATIC_DRAW","upload","prototype","offset","dontBind","bind","byteLength","bufferSubData","bufferData","bindBuffer","createVertexBuffer","createIndexBuffer","ELEMENT_ARRAY_BUFFER","create","destroy","deleteBuffer","Texture","Framebuffer","width","height","framebuffer","createFramebuffer","stencil","texture","enableTexture","framebufferTexture2D","FRAMEBUFFER","COLOR_ATTACHMENT0","TEXTURE_2D","enableStencil","createRenderbuffer","bindRenderbuffer","RENDERBUFFER","framebufferRenderbuffer","DEPTH_STENCIL_ATTACHMENT","renderbufferStorage","DEPTH_STENCIL","clear","b","clearColor","COLOR_BUFFER_BIT","unbind","bindFramebuffer","resize","uploadData","deleteFramebuffer","createRGBA","fromData","enableNearestScaling","enableWrapClamp","fbo","createFloat32","compileProgram","extractAttributes","extractUniforms","generateUniformAccessObject","Shader","vertexSrc","fragmentSrc","program","attributes","uniformData","uniforms","useProgram","format","createTexture","mipmap","premultiplyAlpha","RGBA","UNSIGNED_BYTE","source","pixelStorei","UNPACK_PREMULTIPLY_ALPHA_WEBGL","newWidth","videoWidth","newHeight","videoHeight","texImage2D","texSubImage2D","FLOATING_POINT_AVAILABLE","Float32Array","ext","getExtension","FLOAT","location","undefined","activeTexture","TEXTURE0","bindTexture","minFilter","linear","texParameteri","TEXTURE_MIN_FILTER","LINEAR_MIPMAP_LINEAR","NEAREST_MIPMAP_NEAREST","LINEAR","NEAREST","magFilter","TEXTURE_MAG_FILTER","enableMipmap","generateMipmap","enableLinearScaling","TEXTURE_WRAP_S","CLAMP_TO_EDGE","TEXTURE_WRAP_T","enableWrapRepeat","REPEAT","enableWrapMirrorRepeat","MIRRORED_REPEAT","deleteTexture","fromSource","VertexArrayObject","state","nativeVaoExtension","FORCE_NATIVE","nativeState","nativeVao","createVertexArrayOES","maxAttribs","getParameter","MAX_VERTEX_ATTRIBS","tempAttribState","Array","attribState","indexBuffer","dirty","setVertexAttribArrays","constructor","bindVertexArrayOES","activate","lastBuffer","attrib","vertexAttribPointer","attribute","size","normalized","stride","start","addAttribute","push","addIndex","draw","drawElements","UNSIGNED_SHORT","deleteVertexArrayOES","createContext","canvas","options","getContext","GLBuffer","GLFramebuffer","GLShader","GLTexture","shader","glCore","attribs","enableVertexAttribArray","disableVertexAttribArray","glVertShader","compileShader","VERTEX_SHADER","glFragShader","FRAGMENT_SHADER","createProgram","attachShader","linkProgram","getProgramParameter","LINK_STATUS","console","error","VALIDATE_STATUS","getError","getProgramInfoLog","warn","deleteProgram","deleteShader","src","createShader","shaderSource","getShaderParameter","COMPILE_STATUS","log","getShaderInfoLog","defaultValue","Int32Array","booleanArray","array","mapType","mapSize","totalAttributes","ACTIVE_ATTRIBUTES","attribData","getActiveAttrib","name","getAttribLocation","pointer","totalUniforms","ACTIVE_UNIFORMS","getActiveUniform","replace","getUniformLocation","value","uniformKeys","Object","keys","fullName","nameTokens","split","uniformGroup","getUniformGroup","uniform","defineProperty","get","generateGetter","set","generateSetter","template","getterTemplate","Function","setTemplate","setterTemplate","GLSL_TO_SINGLE_SETTERS","GLSL_TO_ARRAY_SETTERS","cur","join","float","vec2","vec3","vec4","int","ivec2","ivec3","ivec4","bool","bvec2","bvec3","bvec4","mat2","mat3","mat4","sampler2D","GLSL_TO_SIZE","GL_TABLE","typeNames","GL_TO_GLSL_TYPES","tn","FLOAT_VEC2","FLOAT_VEC3","FLOAT_VEC4","INT","INT_VEC2","INT_VEC3","INT_VEC4","BOOL","BOOL_VEC2","BOOL_VEC3","BOOL_VEC4","FLOAT_MAT2","FLOAT_MAT3","FLOAT_MAT4","SAMPLER_2D","_interopRequireDefault","obj","__esModule","default","eachLimit","coll","limit","iteratee","callback","_eachOfLimit2","_withoutIndex2","_eachOfLimit","_withoutIndex","_eachLimit","_eachLimit2","_doLimit","_doLimit2","DLL","head","tail","setInitial","dll","node","removeLink","prev","next","empty","insertAfter","newNode","insertBefore","unshift","shift","pop","doLimit","fn","iterable","iterateeCallback","err","running","done","replenish","elem","nextElem","key","_onlyOnce2","_once2","_noop2","_iterator2","_noop","_once","_iterator","_onlyOnce","iteratorSymbol","Symbol","iterator","createArrayIterator","len","createES2015Iterator","item","createObjectIterator","okeys","_keys2","_isArrayLike2","_getIterator2","_isArrayLike","_getIterator","_keys","once","callFn","apply","arguments","onlyOnce","queue","worker","concurrency","payload","_insert","insertAtFront","q","started","_isArray2","idle","_setImmediate2","drain","_arrayEach2","task","_tasks","process","_next","tasks","_rest2","args","workers","workersList","index","splice","unsaturated","_DoublyLinkedList2","saturated","paused","kill","Math","min","cb","pause","resume","resumeCount","w","_arrayEach","_isArray","_rest","_setImmediate","_DoublyLinkedList","fallback","setTimeout","wrap","defer","hasNextTick","hasSetImmediate","_defer","setImmediate","nextTick","_queue2","items","_queue","countTrailingZeros","v","c","INT_BITS","INT_MAX","INT_MIN","sign","abs","mask","x","y","max","isPow2","log2","log10","popCount","nextPow2","prevPow2","parity","REVERSE_TABLE","tab","reverse","interleave2","deinterleave2","interleave3","z","deinterleave3","nextCombination","earcut","holeIndices","dim","hasHoles","outerLen","outerNode","linkedList","triangles","minX","minY","maxX","maxY","eliminateHoles","earcutLinked","end","clockwise","last","signedArea","insertNode","equals","removeNode","filterPoints","again","p","steiner","area","ear","pass","indexCurve","stop","isEarHashed","isEar","cureLocalIntersections","splitEarcut","pointInTriangle","minTX","minTY","maxTX","maxTY","minZ","zOrder","maxZ","nextZ","prevZ","intersects","locallyInside","isValidDiagonal","splitPolygon","list","getLeftmost","sort","compareX","eliminateHole","hole","findHoleBridge","m","hx","hy","qx","Infinity","tan","mx","my","tanMin","sortLinked","numMerges","pSize","qSize","inSize","leftmost","ax","ay","bx","by","cx","cy","px","py","intersectsPolygon","middleInside","p1","p2","q1","q2","inside","a2","Node","b2","an","bp","sum","j","deviation","polygonArea","trianglesArea","flatten","result","vertices","holes","dimensions","holeIndex","d","EE","context","EventEmitter","has","hasOwnProperty","prefix","_events","eventNames","events","names","slice","getOwnPropertySymbols","concat","listeners","event","exists","evt","available","ee","emit","a1","a3","a4","a5","removeListener","on","listener","removeAllListeners","off","addListener","setMaxListeners","prefixed","apple_phone","apple_ipod","apple_tablet","android_phone","android_tablet","amazon_phone","amazon_tablet","windows_phone","windows_tablet","other_blackberry","other_blackberry_10","other_opera","other_chrome","other_firefox","seven_inch","RegExp","match","regex","userAgent","test","IsMobileClass","ua","navigator","tmp","apple","phone","ipod","tablet","device","amazon","android","windows","other","blackberry","blackberry10","opera","firefox","chrome","any","instantiate","IM","Class","isMobile","func","thisArg","arrayEach","arrayLikeKeys","inherited","isArray","isArguments","baseTimes","String","skipIndexes","isIndex","objectProto","baseKeys","object","isPrototype","nativeKeys","baseRest","nativeMax","otherArgs","MAX_SAFE_INTEGER","reIsUint","Ctor","proto","overArg","transform","arg","isArrayLikeObject","propertyIsEnumerable","objectToString","argsTag","toString","isArrayLike","isLength","isFunction","isObjectLike","tag","isObject","funcTag","genTag","isSymbol","symbolTag","noop","rest","TypeError","FUNC_ERROR_TEXT","toInteger","toFinite","toNumber","INFINITY","MAX_INTEGER","remainder","NAN","valueOf","reTrim","isBinary","reIsBinary","reIsOctal","freeParseInt","reIsBadHex","parseInt","toObject","val","shouldUseNative","assign","test1","getOwnPropertyNames","test2","fromCharCode","order2","map","test3","forEach","letter","propIsEnumerable","target","from","symbols","to","normalizeArray","parts","allowAboveRoot","up","filter","xs","res","splitPathRe","splitPath","filename","exec","resolve","resolvedPath","resolvedAbsolute","path","cwd","charAt","normalize","isAbsolute","trailingSlash","substr","paths","relative","trim","arr","fromParts","toParts","samePartsLength","outputParts","sep","delimiter","dirname","root","dir","basename","extname","str","runTimeout","fun","cachedSetTimeout","runClearTimeout","marker","cachedClearTimeout","clearTimeout","cleanUpNextTick","draining","currentQueue","queueIndex","drainQueue","timeout","run","Item","title","browser","env","argv","version","versions","binding","chdir","umask","RangeError","errors","mapDomain","string","regexSeparators","labels","encoded","ucs2decode","extra","output","counter","charCodeAt","ucs2encode","stringFromCharCode","basicToDigit","codePoint","base","digitToBasic","digit","flag","adapt","delta","numPoints","firstTime","k","floor","damp","baseMinusTMin","tMax","skew","decode","input","out","basic","oldi","baseMinusT","inputLength","initialN","bias","initialBias","lastIndexOf","maxInt","tMin","encode","handledCPCount","basicLength","currentValue","handledCPCountPlusOne","qMinusT","toUnicode","regexPunycode","toLowerCase","toASCII","regexNonASCII","freeExports","nodeType","freeModule","freeGlobal","punycode","overflow","not-basic","invalid-input","ucs2","prop","qs","eq","regexp","maxKeys","kstr","vstr","idx","indexOf","decodeURIComponent","stringifyPrimitive","isFinite","objectKeys","ks","encodeURIComponent","parse","stringify","Loader","baseUrl","DEFAULT_CONCURRENCY","progress","loading","_progressChunk","_beforeMiddleware","_afterMiddleware","_boundLoadResource","_loadResource","_buffer","_numToLoad","asyncQueue","resources","asyncEachSeries","urlParser","Resource","MAX_PROGRESS","add","enqueue","url","onComplete","_prepareUrl","before","pre","after","use","reset","_onLoad","isLoading","abort","load","parsedUrl","protocol","pathname","resource","dequeue","_dequeue","isComplete","_onComplete","LOAD_TYPE","XHR_RESPONSE_TYPE","isDataUrl","crossOrigin","loadType","_determineLoadType","xhrType","metadata","xhr","isJson","isXml","isImage","isAudio","isVideo","_boundComplete","complete","_boundOnError","_onError","_boundOnProgress","_onProgress","_boundXhrOnError","_xhrOnError","_boundXhrOnAbort","_xhrOnAbort","_boundXhrOnLoad","_xhrOnLoad","_boundXdrOnTimeout","_xdrOnTimeout","reqType","setExtMap","substring","_url","useXdr","XDomainRequest","XMLHttpRequest","tempAnchor","STATUS_NONE","STATUS_OK","STATUS_EMPTY","removeEventListener","onerror","ontimeout","onprogress","onload","message","xdr","firstChild","removeChild","_determineCrossOrigin","IMAGE","_loadElement","AUDIO","_loadSourceElement","VIDEO","XHR","_loadXdr","_loadXhr","loadElement","Image","document","createElement","skipSource","typeName","toUpperCase","addEventListener","Audio","isCocoonJS","appendChild","_createSource","_determineXhrType","open","JSON","DOCUMENT","responseType","TEXT","send","mime","nodeName","lengthComputable","loaded","total","status","statusText","responseText","responseURL","DOMParser","domparser","parseFromString","div","innerHTML","response","loc","href","samePort","port","hostname","_xhrTypeMap","_getExtension","_loadTypeMap","slashIndex","queryStart","_getMimeFromXhrType","BUFFER","BLOB","DEFAULT","gif","png","bmp","jpg","jpeg","tif","tiff","webp","tga","svg+xml","xhtml","html","htm","xml","tmx","tsx","svg","json","text","txt","setExtensionLoadType","setExtensionXhrType","_keyStr","encodeBinary","bytebuffer","encodedCharIndexes","inx","jnx","paddingBytes","middleware","caching","memory","parsing","blob","cache","b64","Url","URL","webkitURL","Blob","createObjectURL","revokeObjectURL","getResponseHeader","slashes","auth","host","hash","search","query","urlParse","parseQueryString","slashesDenoteHost","util","urlFormat","isString","urlResolve","urlResolveObject","resolveObject","protocolPattern","portPattern","simplePathPattern","delims","unwise","autoEscape","nonHostChars","hostEndingChars","hostnameMaxLen","hostnamePartPattern","hostnamePartStart","unsafeProtocol","javascript","javascript:","hostlessProtocol","slashedProtocol","http","https","ftp","gopher","file","http:","https:","ftp:","gopher:","file:","querystring","queryIndex","splitter","uSplit","slashRegex","simplePath","lowerProto","hostEnd","hec","atSign","parseHost","ipv6Hostname","hostparts","part","newpart","validParts","notHost","bit","h","ae","esc","escape","qm","rel","tkeys","tk","tkey","rkeys","rk","rkey","relPath","isSourceAbs","isRelAbs","mustEndAbs","removeAllDots","srcPath","psychotic","isNullOrUndefined","authInHost","isNull","hasTrailingSlash","AccessibilityManager","renderer","Device","createTouchHook","style","position","top","left","zIndex","pool","renderId","debug","children","_onKeyDown","_onMouseMove","isActive","isMobileAccessabillity","core","DisplayObject","hookDiv","backgroundColor","body","update","view","parentNode","deactivate","updateAccessibleObjects","displayObject","visible","accessible","interactive","_accessibleActive","addChild","renderingToScreen","_lastObjectRendered","rect","getBoundingClientRect","sx","sy","child","utils","removeItems","_accessibleDiv","hitArea","wt","worldTransform","tx","ty","getBounds","capHitArea","borderStyle","_onClick","_onFocus","_onFocusOut","accessibleTitle","accessibleHint","tabIndex","setAttribute","interactionManager","plugins","interaction","dispatchEvent","eventData","keyCode","WebGLRenderer","registerPlugin","CanvasRenderer","accessibleTarget","checkPrecision","copy","Const","PRECISION","CONST","VERSION","PI_2","PI","RAD_TO_DEG","DEG_TO_RAD","TARGET_FPMS","RENDERER_TYPE","UNKNOWN","WEBGL","CANVAS","BLEND_MODES","NORMAL","ADD","MULTIPLY","SCREEN","OVERLAY","DARKEN","LIGHTEN","COLOR_DODGE","COLOR_BURN","HARD_LIGHT","SOFT_LIGHT","DIFFERENCE","EXCLUSION","HUE","SATURATION","COLOR","LUMINOSITY","DRAW_MODES","POINTS","LINES","LINE_LOOP","LINE_STRIP","TRIANGLES","TRIANGLE_STRIP","TRIANGLE_FAN","SCALE_MODES","WRAP_MODES","CLAMP","GC_MODES","AUTO","MANUAL","MIPMAP_TEXTURES","RETINA_PREFIX","RESOLUTION","FILTER_RESOLUTION","DEFAULT_RENDER_OPTIONS","resolution","antialias","forceFXAA","autoResize","transparent","clearBeforeRender","preserveDrawingBuffer","roundPixels","SHAPES","POLY","RECT","CIRC","ELIP","RREC","LOW","MEDIUM","HIGH","TRANSFORM_MODE","STATIC","DYNAMIC","TEXT_GRADIENT","LINEAR_VERTICAL","LINEAR_HORIZONTAL","SPRITE_BATCH_SIZE","SPRITE_MAX_TEXTURES","Bounds","math","Rectangle","isEmpty","updateID","getRectangle","EMPTY","addPoint","point","addQuad","addFrame","x0","y0","x1","y1","matrix","addVertices","beginOffset","endOffset","rawX","rawY","addBounds","bounds","Container","defineProperties","scale","getLocalBounds","_width","_height","onChildrenChange","argumentsLength","parent","_parentID","addChildAt","swapChildren","child2","index1","getChildIndex","index2","setChildIndex","currentIndex","getChildAt","removeChildAt","removeChildren","beginIndex","endIndex","removed","begin","range","updateTransform","_boundsID","worldAlpha","alpha","containerUpdateTransform","calculateBounds","_bounds","_calculateBounds","_lastBoundsID","renderWebGL","renderable","_mask","_filters","renderAdvancedWebGL","_renderWebGL","currentRenderer","flush","filters","_enabledFilters","enabled","filterManager","pushFilter","maskManager","pushMask","popMask","popFilter","_renderCanvas","renderCanvas","destroyChildren","oldChildren","TransformClass","TransformStatic","Transform","filterArea","_boundsRect","_localBoundsRect","_tempDisplayObjectParent","localTransform","pivot","rotation","worldVisible","displayObjectUpdateTransform","_recursivePostUpdateTransform","skipUpdate","_worldID","transformRef","parentRef","toGlobal","toLocal","applyInverse","setParent","container","setTransform","scaleX","scaleY","skewX","skewY","pivotX","pivotY","_currentBounds","TransformBase","Point","ObservablePoint","updateSkew","_rotation","_sr","sin","_cr","cos","_cy","_sy","_nsx","_cx","updateLocalTransform","lt","parentTransform","pt","setFromMatrix","decompose","Matrix","updateWorldTransform","IDENTITY","onChange","_localID","_currentLocalID","_y","_x","Graphics","fillAlpha","lineWidth","lineColor","graphicsData","tint","_prevTint","blendMode","currentPath","_webGL","isMask","boundsPadding","_localBounds","fastRectDirty","clearDirty","boundsDirty","cachedSpriteDirty","_spriteRect","_fastRect","canvasRenderer","RenderTexture","GraphicsData","Sprite","bezierCurveTo","tempMatrix","tempPoint","_SPRITE_TEXTURE","clone","updateLocalBounds","lineStyle","color","lineAlpha","shape","points","Polygon","closed","drawShape","moveTo","lineTo","quadraticCurveTo","cpX","cpY","toX","toY","xa","ya","fromX","fromY","cpX2","cpY2","arcTo","x2","y2","radius","b1","mm","dd","cc","tt","k1","sqrt","k2","j1","j2","qy","startAngle","atan2","endAngle","arc","anticlockwise","sweep","segs","ceil","startX","startY","theta","theta2","cTheta","sTheta","segMinus","real","angle","beginFill","filling","fillColor","fill","endFill","drawRect","drawRoundedRect","RoundedRectangle","drawCircle","Circle","drawEllipse","Ellipse","drawPolygon","isFastRect","_renderSpriteRect","setObjectRenderer","graphics","render","currentRenderTarget","_activeRenderTarget","bindRenderTexture","bindRenderTarget","_frame","anchor","onAnchorUpdate","lb","containsPoint","contains","padding","generateCanvasTexture","scaleMode","canvasBuffer","fromCanvas","baseTexture","_canvasRenderTarget","closePath","close","addHole","id","_webgl","_lineTint","_fillTint","CanvasGraphicsRenderer","updateGraphicsTint","setBlendMode","beginPath","renderPolygon","globalAlpha","fillStyle","strokeStyle","stroke","fillRect","strokeRect","kappa","ox","oy","xe","ye","xm","ym","rx","ry","maxRadius","tintR","tintG","tintB","dt","dt2","dt3","t2","t3","GraphicsRenderer","ObjectRenderer","graphicsDataPool","primitiveShader","CONTEXT_UID","WebGLGraphicsData","PrimitiveShader","buildPoly","buildRectangle","buildRoundedRectangle","buildCircle","onContextChange","webGLData","webGL","updateGraphics","bindShader","shaderTemp","translationMatrix","toArray","hex2rgb","vao","indices","lastIndex","getWebGLData","attribsState","glPoints","glIndices","aVertexPosition","aColor","Uint16Array","buildLine","circleData","totalSegs","seg","verts","vecPos","tempPoints","firstPoint","lastPoint","midPointX","midPointY","p1x","p1y","p2x","p2y","p3x","p3y","perpx","perpy","perp2x","perp2y","perp3x","perp3y","c1","c2","denom","pdist","dist","indexCount","indexStart","holeArray","vertPos","rectData","rrectData","recPoints","quadraticBezierCurve","getPt","n1","n2","perc","diff","xb","yb","ticker","CanvasSpriteRenderer","CanvasTinter","SpriteRenderer","Text","TextStyle","BaseTexture","BaseRenderTexture","VideoBaseTexture","TextureUvs","CanvasRenderTarget","WebGLManager","RenderTarget","Quad","SpriteMaskFilter","Filter","autoDetectRenderer","noWebGL","isWebGLSupported","signum","init","row","mul","_ux","ux","vx","uy","_uy","vy","_vx","_vy","mat","tempMatrices","GroupD8","E","SE","S","SW","W","NW","N","NE","MIRROR_VERTICAL","MIRROR_HORIZONTAL","uX","ind","uY","vX","vY","inv","rotationSecond","rotationFirst","sub","rotate180","isSwapWidthHeight","byDirection","dx","dy","matrixAppendRotationInv","append","fromArray","transpose","pos","newPos","translate","rotate","tx1","d1","sr","cr","nsx","prepend","invert","identity","TEMP_MATRIX","scope","r2","normx","normy","points_","il","xi","yi","xj","yj","intersect","rectangle","pad","paddingX","paddingY","fit","enlarge","SystemRenderer","system","sayHello","blendModes","_backgroundColor","_backgroundColorRgba","_backgroundColorString","hex2string","generateTexture","renderTexture","removeView","rootContext","rootResolution","refresh","CanvasMaskManager","smoothProperty","imageSmoothingEnabled","webkitImageSmoothingEnabled","mozImageSmoothingEnabled","oImageSmoothingEnabled","msImageSmoothingEnabled","initPlugins","mapCanvasBlendModesToPixi","_activeBlendMode","pluginTarget","mixin","skipUpdateTransform","valid","cacheParent","tempWt","globalCompositeOperation","screencanvas","clearRect","tempContext","destroyPlugins","maskData","save","cacheAlpha","_texture","renderGraphicsShape","clip","restore","canUseNewCanvasBlendModes","pngHead","pngEnd","magenta","yellow","drawImage","imageData","getImageData","TextureGarbageCollector","count","checkCount","maxIdle","checkCountMax","mode","tm","textureManager","managedTextures","_managedTextures","wasRemoved","_glRenderTargets","touched","destroyTexture","unload","TextureManager","getTexture","updateTexture","isRenderTexture","hasLoaded","glTexture","_glTextures","renderTarget","isPowerOfTwo","wrapMode","skipRemove","removeAll","handleContextLost","handleContextRestored","_contextOptions","premultipliedAlpha","MaskManager","stencilManager","StencilManager","emptyRenderer","validateContext","WebGLState","_initContext","FilterManager","drawModes","mapWebGLDrawModesToPixi","_activeShader","_activeTextureLocation","_activeTexture","textureGC","resetToDefault","rootRenderTarget","isContextLost","objectRenderer","projectionMatrix","_id","setFrame","frame","setMaskStack","stencilMaskStack","createVao","preventDefault","uid","loseContext","activeState","Uint8Array","defaultState","stackIndex","stack","mapWebGLBlendModesToPixi","BLEND","DEPTH_TEST","FRONT_FACE","CULL_FACE","BLEND_FUNC","setState","setBlend","setDepthTest","setFrontFace","setCullFace","enable","disable","blendFunc","frontFace","CW","CCW","resetAttributes","UNPACK_FLIP_Y_WEBGL","defaultVertexSrc","defaultFragmentSrc","extractUniformsFromSrc","glShaders","SOURCE_KEY_MAP","glShaderKey","applyFilter","vertUniforms","extractUniformsFromString","fragUniforms","nameSplit","maskRegex","lines","line","splitLine","Number","calculateScreenSpaceMatrix","outputMatrix","textureSize","mappedMatrix","calculateNormalizedScreenSpaceMatrix","translateScaleX","translateScaleY","calculateSpriteMatrix","sprite","ratio","maskMatrix","maskSprite","otherMatrix","quad","shaderCache","filterData","filterTransforms","bitTwiddle","FilterState","sourceFrame","destinationFrame","filterStack","filterState","currentState","targetBounds","getPotRenderTarget","lastState","freePotRenderTarget","flip","flop","initVao","SCISSOR_TEST","scissorRenderTarget","pushScissorMask","scissorData","syncUniforms","textureCount","filterClamp","getRenderTarget","returnRenderTarget","emptyPool","minWidth","minHeight","defaultFrame","textures","scissor","enableScissor","alphaMaskPool","alphaMaskIndex","AlphaMaskFilter","pushSpriteMask","rot","round","pushStencilMask","popSpriteMask","popScissorMask","popStencilMask","alphaMaskFilter","pushStencil","popStencil","STENCIL_TEST","attachStencilBuffer","sms","STENCIL_BUFFER_BIT","stencilFunc","ALWAYS","colorMask","stencilOp","KEEP","INCR","NOTEQUAL","DECR","stencilStack","uvs","interleaved","createIndicesForQuads","vertexBuffer","aTextureCoord","targetTextureFrame","frameBuffer","stencilBuffer","calculateProjection","viewport","pm","projectionFrame","generateIfTestSrc","maxIfs","fragTemplate","checkMaxIfStatmentsInShader","createTempContext","tinyCanvas","ONE","ONE_MINUS_SRC_ALPHA","DST_ALPHA","DST_COLOR","ONE_MINUS_SRC_COLOR","getContextAttributes","_tint","_tintRGB","cachedTint","vertexData","vertexTrimmedData","_transformID","_textureID","orig","_onTextureUpdate","calculateVertices","_updateID","w0","w1","h0","h1","calculateTrimmedVertices","destroyBaseTexture","fromFrame","frameId","TextureCache","fromImage","imageId","crossorigin","canvasRenderWorldTransform","smoothingEnabled","tintedTexture","getTintedTexture","roundColor","stringColor","tintCache","tintMethod","convertTintToImage","tintImage","toDataURL","tintWithMultiply","crop","tintWithOverlay","tintWithPerPixel","rgbValues","pixelData","pixels","putImageData","step","cacheStepsPerColorChannel","rgb2hex","canUseMultiply","float32View","uint32View","Uint32Array","positions","colors","vertSize","vertByteSize","buffers","numVertsTemp","shaders","TICK","groups","ids","blend","sprites","vertexBuffers","vaos","vaoMax","vertexCount","onPrerender","generateMultiTextureShader","MAX_TEXTURES","MAX_TEXTURE_IMAGE_UNITS","STREAM_DRAW","aTextureId","currentBlendMode","_uvs","nextTexture","currentTexture","textureId","np2","groupCount","currentGroup","_enabled","uvsUint32","group","groupTextureCount","maxTextures","generateSampleSrc","sampleValues","uSamplers","_text","_style","_styleListener","_font","localStyleID","defaultDestroyOptions","fontPropertiesCache","fontPropertiesCanvas","fontPropertiesContext","updateText","respectDirty","styleID","fontSizeString","fontSize","fontStyle","fontVariant","fontWeight","fontFamily","font","outputText","wordWrap","lineWidths","maxLineWidth","fontProperties","determineFontProperties","measureText","letterSpacing","strokeThickness","dropShadow","dropShadowDistance","lineHeight","textBaseline","lineJoin","miterLimit","linePositionX","linePositionY","dropShadowBlur","shadowColor","dropShadowColor","shadowBlur","xShadowOffset","dropShadowAngle","yShadowOffset","ascent","align","drawLetterSpacing","_generateFillStyle","isStroke","strokeText","fillText","current","characters","currentPosition","realWidth","realHeight","properties","baseline","imagedata","descent","wordWrapWidth","spaceLeft","words","wordWidth","breakWords","characterWidth","wordWidthWithSpace","_onStyleChange","gradient","totalIterations","currentIteration","fillGradientType","createLinearGradient","addColorStop","_defaults","getColor","clonedProperties","_align","_breakWords","_dropShadow","_dropShadowAngle","_dropShadowBlur","_dropShadowColor","outputColor","_dropShadowDistance","_fill","_fillGradientType","_fontFamily","_fontSize","_fontStyle","_fontVariant","_fontWeight","_letterSpacing","_lineHeight","_lineJoin","_miterLimit","_padding","_stroke","_strokeThickness","_textBaseline","_wordWrap","_wordWrapWidth","imageUrl","loadSource","determineCrossOrigin","naturalWidth","naturalHeight","wasLoading","_sourceLoaded","BaseTextureCache","_pixiId","dispose","updateSourceImage","newSrc","image","getResolutionOfUrl","baseRenderTexture","legacyRenderer","_updateUvs","doNotResizeBaseTexture","noFrame","requiresUpdate","_rotate","onBaseTextureUpdated","onBaseTextureLoaded","destroyBase","fromVideo","video","fromVideoUrl","videoUrl","fromUrl","HTMLCanvasElement","HTMLVideoElement","addTextureToCache","removeTextureFromCache","x3","y3","baseFrame","tw","th","w2","h2","cX","cY","readyState","HAVE_ENOUGH_DATA","HAVE_FUTURE_DATA","autoUpdate","_onUpdate","_onCanPlay","_onPlayStart","_onPlayStop","__loaded","createSource","requestAnimationFrame","play","videoSrc","fromUrls","Ticker","_this","_tick","time","_requestId","_emitter","_maxElapsedMS","autoStart","deltaTime","elapsedMS","lastTime","speed","FPS","minFPS","fps","minFPMS","_requestIfNeeded","performance","now","_cancelIfNeeded","cancelAnimationFrame","_startIfPossible","addOnce","remove","currentTime","shared","totalIndices","_uid","_saidHello","hex","rgb","parseFloat","contextOptions","failIfMajorPerformanceCaveat","WebGLRenderingContext","success","startIdx","removeCount","maxRecommendedTextures","__plugins","pluginName","ctor","./core","./extras","./filters","./mesh","./particles","155","CanvasExtract","extract","tempRect","base64","canvasData","../../core","156","./canvas/CanvasExtract","./webgl/WebGLExtract","157","WebGLExtract","textureBuffer","flipY","webGLPixels","readPixels","158","BitmapText","textWidth","textHeight","_glyphs","maxWidth","maxLineHeight","_anchor","makeDirty","fonts","prevCharCode","chars","lastLineWidth","lastSpace","lastSpaceWidth","charCode","charData","kerning","xOffset","yOffset","xAdvance","lineAlignOffsets","alignOffset","lenChars","validate","../core","../core/math/ObservablePoint","159","MovieClip","_textures","_durations","animationSpeed","loop","_currentTime","playing","totalFrames","currentFrame","gotoAndStop","frameNumber","gotoAndPlay","elapsed","lag","fromFrames","frames","fromImages","images","160","TilingSprite","tileScale","tilePosition","_canvasPattern","_glDatas","TilingShader","tempArray","glData","textureUvs","textureWidth","textureHeight","textureBaseWidth","textureBaseHeight","uPixelSize","uFrame","uTransform","uColor","modX","modY","tempCanvas","createPattern","compositeOperation","x4","y4","_tileScaleOffset","../core/sprites/canvas/CanvasTinter","../core/textures/Texture","./webgl/TilingShader","161","_tempMatrix","_cacheAsBitmap","_cacheData","CacheData","originalRenderWebGL","originalRenderCanvas","originalUpdateTransform","originalHitTest","originalDestroy","originalMask","originalFilterArea","cacheAsBitmap","originalGetBounds","originalContainsPoint","_renderCachedWebGL","_renderCachedCanvas","_cacheAsBitmapDestroy","_destroyCachedDisplayObject","_initCachedDisplayObject","cachedRenderTarget","_getCachedBounds","cachedSprite","_initCachedDisplayObjectCanvas","162","getChildByName","163","getGlobalPosition","164","./BitmapText","./MovieClip","./TilingSprite","./cacheAsBitmap","./getChildByName","./getGlobalPosition","165","../../core/Shader","166","BlurFilter","strength","quality","blurXFilter","BlurXFilter","blurYFilter","BlurYFilter","blur","blurX","blurY","./BlurXFilter","./BlurYFilter","167","vertSrc","generateBlurVertSource","fragSrc","generateBlurFragSource","_quality","firstRun","getMaxBlurKernelSize","kernelSize","passes","temp","./generateBlurFragSource","./generateBlurVertSource","./getMaxBlurKernelSize","168","169","GAUSSIAN_VALUES","5","7","9","11","13","15","generateFragBlurSource","kernel","halfLength","fragSource","blurLoop","170","vertTemplate","generateVertBlurSource","vertSource","171","getMaxKernelSize","maxVaryings","MAX_VARYING_VECTORS","172","ColorMatrixFilter","_loadMatrix","multiply","newMatrix","_multiply","_colorMatrix","brightness","greyscale","grayscale","blackAndWhite","hue","cosR","sinR","sqrW","a00","a01","a02","a10","a11","a12","a20","a21","a22","contrast","amount","saturate","desaturate","negative","sepia","technicolor","polaroid","toBGR","kodachrome","browni","vintage","colorTone","desaturation","toned","lightColor","darkColor","lR","lG","lB","dR","dG","dB","night","intensity","predator","lsd","173","DisplacementFilter","mapSampler","filterMatrix","174","FXAAFilter","175","NoiseFilter","VoidFilter","./blur/BlurFilter","./blur/BlurXFilter","./blur/BlurYFilter","./colormatrix/ColorMatrixFilter","./displacement/DisplacementFilter","./fxaa/FXAAFilter","./noise/NoiseFilter","./void/VoidFilter","176","noise","177","178","InteractionData","originalEvent","getLocalPosition","globalPos","179","InteractionManager","autoPreventDefault","interactionFrequency","mouse","stopped","stopPropagation","interactiveDataPool","interactionDOMElement","moveWhenInside","eventsAdded","onMouseUp","processMouseUp","onMouseDown","processMouseDown","onMouseMove","processMouseMove","onMouseOut","processMouseOverOut","onMouseOver","onTouchStart","processTouchStart","onTouchEnd","processTouchEnd","onTouchMove","processTouchMove","defaultCursorStyle","currentCursorStyle","_tempPoint","setTargetElement","element","removeEvents","addEvents","msPointerEnabled","_deltaTime","didMove","cursor","processInteractive","eventString","mapPositionToPoint","parentElement","hitTest","hit","interactiveParent","interactiveChildren","clientX","clientY","isRightButton","button","which","isDown","_over","buttonMode","defaultCursor","changedTouches","cLength","touchEvent","touchData","getTouchData","returnTouchData","_touchDown","identifier","globalX","globalY","./InteractionData","./interactiveTarget","eventemitter3","180","interactiveTarget","./InteractionManager","181","_isLeftDown","_isRightDown","182","info","getElementsByTagName","common","getAttribute","letters","textureRect","kernings","first","second","bitmapFont","extras","xmlUrl","textureUrl","loadOptions","imageMetadata","../extras","resource-loader","183","bitmapFontParser","spritesheetParser","textureParser","./bitmapFontParser","./loader","./spritesheetParser","./textureParser","184","ResourceLoader","_pixiMiddleware","addPixiMiddleware","185","BATCH_SIZE","resourcePath","imageResourceName","meta","processFrames","initialFrameIndex","maxFrames","frameIndex","frameKeys","sourceSize","rotated","trimmed","spriteSourceSize","shouldProcessNextBatch","batchIndex","processNextBatch","iteration","186","187","Mesh","drawMode","indexDirty","canvasPadding","TRIANGLE_MESH","tintRgb","tempPolygon","uvBuffer","_renderCanvasTriangleMesh","_renderCanvasTriangles","_renderCanvasDrawTriangle","index0","textureSource","u0","u1","u2","v0","v1","v2","centerX","centerY","normX","normY","deltaA","deltaB","deltaC","deltaD","deltaE","deltaF","renderMeshFlat","ind0","ind1","ind2","./webgl/MeshShader","pixi-gl-core","188","NineSlicePlane","leftWidth","topHeight","rightWidth","bottomHeight","Plane","_origWidth","_origHeight","_uvw","_uvh","DEFAULT_BORDER_SIZE","updateVerticalVertices","updateHorizontalVertices","_leftWidth","_rightWidth","_topHeight","_bottomHeight","drawSegment","sw","sh","dw","dh","./Plane","189","verticesX","verticesY","_ready","segmentsX","segmentsY","sizeX","sizeY","totalSub","xpos","ypos","value2","value3","value4","./Mesh","190","Rope","factor","nextPoint","perpLength","num","perpX","perpY","191","MeshShader","./NineSlicePlane","./Rope","192","193","ParticleContainer","maxSize","batchSize","maxBatchSize","_properties","_maxSize","_batchSize","_glBuffers","_bufferToUpdate","setProperties","particle","smallestChildIndex","bufferIndex","isRotated","positionX","positionY","finalWidth","finalHeight","childTransform","_buffers","194","ParticleRenderer","./ParticleContainer","./webgl/ParticleRenderer","195","ParticleBuffer","dynamicPropertyFlags","dynamicProperties","staticProperties","property","uploadFunction","staticStride","staticBuffer","staticData","dynamicStride","dynamicBuffer","dynamicData","initBuffers","dynamicOffset","staticOffset","uploadDynamic","startIndex","uploadStatic","../../core/utils/createIndicesForQuads","196","ParticleShader","uploadVertices","aPositionCoord","uploadPosition","aRotation","uploadRotation","uploadUvs","uploadAlpha","totalChildren","generateBuffers","uAlpha","spritePosition","spriteRotation","spriteAlpha","./ParticleBuffer","./ParticleShader","197","198","isNaN","199","object-assign","200","./Math.sign","./Object.assign","./requestAnimationFrame","201","Date","getTime","startTime","vendors","delay","202","CanvasPrepare","register","203","./canvas/CanvasPrepare","./webgl/WebGLPrepare","204","WebGLPrepare","addHooks","uploadHooks","completes","ticking","findBaseTextures","uploadBaseTextures","findGraphics","uploadGraphics","SharedTicker","UPLOADS_PER_FRAME","numLeft","tick","uploaded","addHook","uploadHook","205","loaders","mesh","particles","accessibility","prepare","loader","./accessibility","./deprecation","./extract","./interaction","./loaders","./polyfill","./prepare"],"mappings":";;;;;;;CAAA,SAAAA,GAAA,GAAA,gBAAAC,UAAA,mBAAAC,QAAAA,OAAAD,QAAAD,QAAA,IAAA,kBAAAG,SAAAA,OAAAC,IAAAD,UAAAH,OAAA,CAAA,GAAAK,EAAAA,GAAA,mBAAAC,QAAAA,OAAA,mBAAAC,QAAAA,OAAA,mBAAAC,MAAAA,KAAAC,KAAAJ,EAAAK,KAAAV,MAAA,WAAA,GAAAG,EAAA,OAAA,SAAAQ,GAAAC,EAAAC,EAAAC,GAAA,QAAAC,GAAAC,EAAAC,GAAA,IAAAJ,EAAAG,GAAA,CAAA,IAAAJ,EAAAI,GAAA,CAAA,GAAAE,GAAA,kBAAAC,UAAAA,OAAA,KAAAF,GAAAC,EAAA,MAAAA,GAAAF,GAAA,EAAA,IAAAI,EAAA,MAAAA,GAAAJ,GAAA,EAAA,IAAAhB,GAAA,GAAAqB,OAAA,uBAAAL,EAAA,IAAA,MAAAhB,GAAAsB,KAAA,mBAAAtB,EAAA,GAAAuB,GAAAV,EAAAG,IAAAf,WAAAW,GAAAI,GAAA,GAAAQ,KAAAD,EAAAtB,QAAA,SAAAU,GAAA,GAAAE,GAAAD,EAAAI,GAAA,GAAAL,EAAA,OAAAI,GAAAF,EAAAA,EAAAF,IAAAY,EAAAA,EAAAtB,QAAAU,EAAAC,EAA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AAgkB,gBAAA,IAAAC,YAAA,IAAAhkB,WAAA,IAAAC,YAAA,IAAAgkB,gBAAA,IAAAC,YAAA,IAAAhkB,SAAA,IAAAC,cAAA,IAAAgkB,aAAA,IAAAC,YAAA,WAAA,MAAA","file":"pixi.min.js","sourcesContent":["(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o= data.byteLength)\n\t{\n\t\tgl.bufferSubData(this.type, offset, data);\n\t}\n\telse\n\t{\n\t\tgl.bufferData(this.type, data, this.drawType);\n\t}\n\n\tthis.data = data;\n};\n/**\n * Binds the buffer\n *\n */\nBuffer.prototype.bind = function()\n{\n\tvar gl = this.gl;\n\tgl.bindBuffer(this.type, this.buffer);\n};\n\nBuffer.createVertexBuffer = function(gl, data, drawType)\n{\n\treturn new Buffer(gl, gl.ARRAY_BUFFER, data, drawType);\n};\n\nBuffer.createIndexBuffer = function(gl, data, drawType)\n{\n\treturn new Buffer(gl, gl.ELEMENT_ARRAY_BUFFER, data, drawType);\n};\n\nBuffer.create = function(gl, type, data, drawType)\n{\n\treturn new Buffer(gl, type, data, drawType);\n};\n\n/**\n * Destroys the buffer\n *\n */\nBuffer.prototype.destroy = function(){\n\tthis.gl.deleteBuffer(this.buffer);\n};\n\nmodule.exports = Buffer;\n","\nvar Texture = require('./GLTexture');\n\n/**\n * Helper class to create a webGL Framebuffer\n *\n * @class\n * @memberof PIXI.glCore\n * @param gl {WebGLRenderingContext} The current WebGL rendering context\n * @param width {Number} the width of the drawing area of the frame buffer\n * @param height {Number} the height of the drawing area of the frame buffer\n */\nvar Framebuffer = function(gl, width, height)\n{\n /**\n * The current WebGL rendering context\n *\n * @member {WebGLRenderingContext}\n */\n this.gl = gl;\n\n /**\n * The frame buffer\n *\n * @member {WebGLFramebuffer}\n */\n this.framebuffer = gl.createFramebuffer();\n\n /**\n * The stencil buffer\n *\n * @member {WebGLRenderbuffer}\n */\n this.stencil = null;\n\n /**\n * The stencil buffer\n *\n * @member {PIXI.glCore.GLTexture}\n */\n this.texture = null;\n\n /**\n * The width of the drawing area of the buffer\n *\n * @member {Number}\n */\n this.width = width || 100;\n /**\n * The height of the drawing area of the buffer\n *\n * @member {Number}\n */\n this.height = height || 100;\n};\n\n/**\n * Adds a texture to the frame buffer\n * @param texture {PIXI.glCore.GLTexture}\n */\nFramebuffer.prototype.enableTexture = function(texture)\n{\n var gl = this.gl;\n\n this.texture = texture || new Texture(gl);\n\n this.texture.bind();\n\n //gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, this.width, this.height, 0, gl.RGBA, gl.UNSIGNED_BYTE, null);\n\n this.bind();\n\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, this.texture.texture, 0);\n};\n\n/**\n * Initialises the stencil buffer\n */\nFramebuffer.prototype.enableStencil = function()\n{\n if(this.stencil)return;\n\n var gl = this.gl;\n\n this.stencil = gl.createRenderbuffer();\n\n gl.bindRenderbuffer(gl.RENDERBUFFER, this.stencil);\n\n // TODO.. this is depth AND stencil?\n gl.framebufferRenderbuffer(gl.FRAMEBUFFER, gl.DEPTH_STENCIL_ATTACHMENT, gl.RENDERBUFFER, this.stencil);\n gl.renderbufferStorage(gl.RENDERBUFFER, gl.DEPTH_STENCIL, this.width , this.height );\n};\n\n/**\n * Erases the drawing area and fills it with a colour\n * @param r {Number} the red value of the clearing colour\n * @param g {Number} the green value of the clearing colour\n * @param b {Number} the blue value of the clearing colour\n * @param a {Number} the alpha value of the clearing colour\n */\nFramebuffer.prototype.clear = function( r, g, b, a )\n{\n this.bind();\n\n var gl = this.gl;\n\n gl.clearColor(r, g, b, a);\n gl.clear(gl.COLOR_BUFFER_BIT);\n};\n\n/**\n * Binds the frame buffer to the WebGL context\n */\nFramebuffer.prototype.bind = function()\n{\n var gl = this.gl;\n\n if(this.texture)\n {\n this.texture.unbind();\n }\n\n gl.bindFramebuffer(gl.FRAMEBUFFER, this.framebuffer );\n};\n\n/**\n * Unbinds the frame buffer to the WebGL context\n */\nFramebuffer.prototype.unbind = function()\n{\n var gl = this.gl;\n gl.bindFramebuffer(gl.FRAMEBUFFER, null );\n};\n/**\n * Resizes the drawing area of the buffer to the given width and height\n * @param width {Number} the new width\n * @param height {Number} the new height\n */\nFramebuffer.prototype.resize = function(width, height)\n{\n var gl = this.gl;\n\n this.width = width;\n this.height = height;\n\n if ( this.texture )\n {\n this.texture.uploadData(null, width, height);\n }\n\n if ( this.stencil )\n {\n // update the stencil buffer width and height\n gl.bindRenderbuffer(gl.RENDERBUFFER, this.stencil);\n gl.renderbufferStorage(gl.RENDERBUFFER, gl.DEPTH_STENCIL, width, height);\n }\n};\n\n/**\n * Destroys this buffer\n */\nFramebuffer.prototype.destroy = function()\n{\n var gl = this.gl;\n\n //TODO\n if(this.texture)\n {\n this.texture.destroy();\n }\n\n gl.deleteFramebuffer(this.framebuffer);\n\n this.gl = null;\n\n this.stencil = null;\n this.texture = null;\n};\n\n/**\n * Creates a frame buffer with a texture containing the given data\n * @static\n * @param gl {WebGLRenderingContext} The current WebGL rendering context\n * @param width {Number} the width of the drawing area of the frame buffer\n * @param height {Number} the height of the drawing area of the frame buffer\n * @param data {ArrayBuffer| SharedArrayBuffer|ArrayBufferView} an array of data\n */\nFramebuffer.createRGBA = function(gl, width, height, data)\n{\n var texture = Texture.fromData(gl, null, width, height);\n texture.enableNearestScaling();\n texture.enableWrapClamp();\n\n //now create the framebuffer object and attach the texture to it.\n var fbo = new Framebuffer(gl, width, height);\n fbo.enableTexture(texture);\n\n fbo.unbind();\n\n return fbo;\n};\n\n/**\n * Creates a frame buffer with a texture containing the given data\n * @static\n * @param gl {WebGLRenderingContext} The current WebGL rendering context\n * @param width {Number} the width of the drawing area of the frame buffer\n * @param height {Number} the height of the drawing area of the frame buffer\n * @param data {ArrayBuffer| SharedArrayBuffer|ArrayBufferView} an array of data\n */\nFramebuffer.createFloat32 = function(gl, width, height, data)\n{\n // create a new texture..\n var texture = new Texture.fromData(gl, data, width, height);\n texture.enableNearestScaling();\n texture.enableWrapClamp();\n\n //now create the framebuffer object and attach the texture to it.\n var fbo = new Framebuffer(gl, width, height);\n fbo.enableTexture(texture);\n\n fbo.unbind();\n\n return fbo;\n};\n\nmodule.exports = Framebuffer;\n","\nvar compileProgram = require('./shader/compileProgram'),\n\textractAttributes = require('./shader/extractAttributes'),\n\textractUniforms = require('./shader/extractUniforms'),\n\tgenerateUniformAccessObject = require('./shader/generateUniformAccessObject');\n\n/**\n * Helper class to create a webGL Shader\n *\n * @class\n * @memberof PIXI.glCore\n * @param gl {WebGLRenderingContext}\n * @param vertexSrc {string|string[]} The vertex shader source as an array of strings.\n * @param fragmentSrc {string|string[]} The fragment shader source as an array of strings.\n */\nvar Shader = function(gl, vertexSrc, fragmentSrc)\n{\n\t/**\n\t * The current WebGL rendering context\n\t *\n\t * @member {WebGLRenderingContext}\n\t */\n\tthis.gl = gl;\n\n\t/**\n\t * The shader program\n\t *\n\t * @member {WebGLProgram}\n\t */\n\t// First compile the program..\n\tthis.program = compileProgram(gl, vertexSrc, fragmentSrc);\n\n\n\t/**\n\t * The attributes of the shader as an object containing the following properties\n\t * {\n\t * \ttype,\n\t * \tsize,\n\t * \tlocation,\n\t * \tpointer\n\t * }\n\t * @member {Object}\n\t */\n\t// next extract the attributes\n\tthis.attributes = extractAttributes(gl, this.program);\n\n var uniformData = extractUniforms(gl, this.program);\n\n\t/**\n\t * The uniforms of the shader as an object containing the following properties\n\t * {\n\t * \tgl,\n\t * \tdata\n\t * }\n\t * @member {Object}\n\t */\n this.uniforms = generateUniformAccessObject( gl, uniformData );\n};\n/**\n * Uses this shader\n */\nShader.prototype.bind = function()\n{\n\tthis.gl.useProgram(this.program);\n};\n\n/**\n * Destroys this shader\n * TODO\n */\nShader.prototype.destroy = function()\n{\n\t// var gl = this.gl;\n};\n\nmodule.exports = Shader;\n","\n/**\n * Helper class to create a WebGL Texture\n *\n * @class\n * @memberof PIXI.glCore\n * @param gl {WebGLRenderingContext} The current WebGL context\n * @param width {number} the width of the texture\n * @param height {number} the height of the texture\n * @param format {number} the pixel format of the texture. defaults to gl.RGBA\n * @param type {number} the gl type of the texture. defaults to gl.UNSIGNED_BYTE\n */\nvar Texture = function(gl, width, height, format, type)\n{\n\t/**\n\t * The current WebGL rendering context\n\t *\n\t * @member {WebGLRenderingContext}\n\t */\n\tthis.gl = gl;\n\n\n\t/**\n\t * The WebGL texture\n\t *\n\t * @member {WebGLTexture}\n\t */\n\tthis.texture = gl.createTexture();\n\n\t/**\n\t * If mipmapping was used for this texture, enable and disable with enableMipmap()\n\t *\n\t * @member {Boolean}\n\t */\n\t// some settings..\n\tthis.mipmap = false;\n\n\n\t/**\n\t * Set to true to enable pre-multiplied alpha\n\t *\n\t * @member {Boolean}\n\t */\n\tthis.premultiplyAlpha = false;\n\n\t/**\n\t * The width of texture\n\t *\n\t * @member {Number}\n\t */\n\tthis.width = width || -1;\n\t/**\n\t * The height of texture\n\t *\n\t * @member {Number}\n\t */\n\tthis.height = height || -1;\n\n\t/**\n\t * The pixel format of the texture. defaults to gl.RGBA\n\t *\n\t * @member {Number}\n\t */\n\tthis.format = format || gl.RGBA;\n\n\t/**\n\t * The gl type of the texture. defaults to gl.UNSIGNED_BYTE\n\t *\n\t * @member {Number}\n\t */\n\tthis.type = type || gl.UNSIGNED_BYTE;\n\n\n};\n\n/**\n * Uploads this texture to the GPU\n * @param source {HTMLImageElement|ImageData|HTMLVideoElement} the source image of the texture\n */\nTexture.prototype.upload = function(source)\n{\n\tthis.bind();\n\n\tvar gl = this.gl;\n\n\n\tgl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, this.premultiplyAlpha);\n\n\tvar newWidth = source.videoWidth || source.width;\n\tvar newHeight = source.videoHeight || source.height;\n\n\tif(newHeight !== this.height || newWidth !== this.width)\n\t{\n \tgl.texImage2D(gl.TEXTURE_2D, 0, this.format, this.format, this.type, source);\n\t}\n\telse\n\t{\n \tgl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, this.format, this.type, source);\n\t}\n\n\t// if the source is a video, we need to use the videoWidth / videoHeight properties as width / height will be incorrect.\n\tthis.width = newWidth;\n\tthis.height = newHeight;\n\n};\n\nvar FLOATING_POINT_AVAILABLE = false;\n\n/**\n * Use a data source and uploads this texture to the GPU\n * @param data {TypedArray} the data to upload to the texture\n * @param width {number} the new width of the texture\n * @param height {number} the new height of the texture\n */\nTexture.prototype.uploadData = function(data, width, height)\n{\n\tthis.bind();\n\n\tvar gl = this.gl;\n\n\n\tif(data instanceof Float32Array)\n\t{\n\t\tif(!FLOATING_POINT_AVAILABLE)\n\t\t{\n\t\t\tvar ext = gl.getExtension(\"OES_texture_float\");\n\n\t\t\tif(ext)\n\t\t\t{\n\t\t\t\tFLOATING_POINT_AVAILABLE = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new Error('floating point textures not available');\n\t\t\t}\n\t\t}\n\n\t\tthis.type = gl.FLOAT;\n\t}\n\telse\n\t{\n\t\t// TODO support for other types\n\t\tthis.type = gl.UNSIGNED_BYTE;\n\t}\n\n\t// what type of data?\n\tgl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, this.premultiplyAlpha);\n\n\n\tif(width !== this.width || height !== this.height)\n\t{\n\t\tgl.texImage2D(gl.TEXTURE_2D, 0, this.format, width, height, 0, this.format, this.type, data || null);\n\t}\n\telse\n\t{\n\t\tgl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, width, height, this.format, this.type, data || null);\n\t}\n\n\tthis.width = width;\n\tthis.height = height;\n\n\n//\ttexSubImage2D\n};\n\n/**\n * Binds the texture\n * @param location\n */\nTexture.prototype.bind = function(location)\n{\n\tvar gl = this.gl;\n\n\tif(location !== undefined)\n\t{\n\t\tgl.activeTexture(gl.TEXTURE0 + location);\n\t}\n\n\tgl.bindTexture(gl.TEXTURE_2D, this.texture);\n};\n\n/**\n * Unbinds the texture\n */\nTexture.prototype.unbind = function()\n{\n\tvar gl = this.gl;\n\tgl.bindTexture(gl.TEXTURE_2D, null);\n};\n\n/**\n * @param linear {Boolean} if we want to use linear filtering or nearest neighbour interpolation\n */\nTexture.prototype.minFilter = function( linear )\n{\n\tvar gl = this.gl;\n\n\tthis.bind();\n\n\tif(this.mipmap)\n\t{\n\t\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, linear ? gl.LINEAR_MIPMAP_LINEAR : gl.NEAREST_MIPMAP_NEAREST);\n\t}\n\telse\n\t{\n\t\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, linear ? gl.LINEAR : gl.NEAREST);\n\t}\n};\n\n/**\n * @param linear {Boolean} if we want to use linear filtering or nearest neighbour interpolation\n */\nTexture.prototype.magFilter = function( linear )\n{\n\tvar gl = this.gl;\n\n\tthis.bind();\n\n\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, linear ? gl.LINEAR : gl.NEAREST);\n};\n\n/**\n * Enables mipmapping\n */\nTexture.prototype.enableMipmap = function()\n{\n\tvar gl = this.gl;\n\n\tthis.bind();\n\n\tthis.mipmap = true;\n\n\tgl.generateMipmap(gl.TEXTURE_2D);\n};\n\n/**\n * Enables linear filtering\n */\nTexture.prototype.enableLinearScaling = function()\n{\n\tthis.minFilter(true);\n\tthis.magFilter(true);\n};\n\n/**\n * Enables nearest neighbour interpolation\n */\nTexture.prototype.enableNearestScaling = function()\n{\n\tthis.minFilter(false);\n\tthis.magFilter(false);\n};\n\n/**\n * Enables clamping on the texture so WebGL will not repeat it\n */\nTexture.prototype.enableWrapClamp = function()\n{\n\tvar gl = this.gl;\n\n\tthis.bind();\n\n\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n};\n\n/**\n * Enable tiling on the texture\n */\nTexture.prototype.enableWrapRepeat = function()\n{\n\tvar gl = this.gl;\n\n\tthis.bind();\n\n\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.REPEAT);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.REPEAT);\n};\n\nTexture.prototype.enableWrapMirrorRepeat = function()\n{\n\tvar gl = this.gl;\n\n\tthis.bind();\n\n\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.MIRRORED_REPEAT);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.MIRRORED_REPEAT);\n};\n\n\n/**\n * Destroys this texture\n */\nTexture.prototype.destroy = function()\n{\n\tvar gl = this.gl;\n\t//TODO\n\tgl.deleteTexture(this.texture);\n};\n\n/**\n * @static\n * @param gl {WebGLRenderingContext} The current WebGL context\n * @param source {HTMLImageElement|ImageData} the source image of the texture\n * @param premultiplyAlpha {Boolean} If we want to use pre-multiplied alpha\n */\nTexture.fromSource = function(gl, source, premultiplyAlpha)\n{\n\tvar texture = new Texture(gl);\n\ttexture.premultiplyAlpha = premultiplyAlpha || false;\n\ttexture.upload(source);\n\n\treturn texture;\n};\n\n/**\n * @static\n * @param gl {WebGLRenderingContext} The current WebGL context\n * @param data {TypedArray} the data to upload to the texture\n * @param width {number} the new width of the texture\n * @param height {number} the new height of the texture\n */\nTexture.fromData = function(gl, data, width, height)\n{\n\t//console.log(data, width, height);\n\tvar texture = new Texture(gl);\n\ttexture.uploadData(data, width, height);\n\n\treturn texture;\n};\n\n\nmodule.exports = Texture;\n","\n// state object//\nvar setVertexAttribArrays = require( './setVertexAttribArrays' );\n\n/**\n * Helper class to work with WebGL VertexArrayObjects (vaos)\n * Only works if WebGL extensions are enabled (they usually are)\n *\n * @class\n * @memberof PIXI.glCore\n * @param gl {WebGLRenderingContext} The current WebGL rendering context\n */\nfunction VertexArrayObject(gl, state)\n{\n this.nativeVaoExtension = null;\n\n if(!VertexArrayObject.FORCE_NATIVE)\n {\n this.nativeVaoExtension = gl.getExtension('OES_vertex_array_object') ||\n gl.getExtension('MOZ_OES_vertex_array_object') ||\n gl.getExtension('WEBKIT_OES_vertex_array_object');\n }\n\n this.nativeState = state;\n\n if(this.nativeVaoExtension)\n {\n this.nativeVao = this.nativeVaoExtension.createVertexArrayOES();\n\n var maxAttribs = gl.getParameter(gl.MAX_VERTEX_ATTRIBS);\n\n // VAO - overwrite the state..\n this.nativeState = {\n tempAttribState: new Array(maxAttribs),\n attribState: new Array(maxAttribs)\n };\n }\n\n /**\n * The current WebGL rendering context\n *\n * @member {WebGLRenderingContext}\n */\n this.gl = gl;\n\n /**\n * An array of attributes\n *\n * @member {Array}\n */\n this.attributes = [];\n\n /**\n * @member {PIXI.glCore.GLBuffer}\n */\n this.indexBuffer = null;\n\n /**\n * A boolean flag\n *\n * @member {Boolean}\n */\n this.dirty = false;\n}\n\nVertexArrayObject.prototype.constructor = VertexArrayObject;\nmodule.exports = VertexArrayObject;\n\n/**\n* Some devices behave a bit funny when using the newer extensions (im looking at you ipad 2!)\n* If you find on older devices that things have gone a bit weird then set this to true.\n*/\n/**\n * Lets the VAO know if you should use the WebGL extension or the native methods.\n * Some devices behave a bit funny when using the newer extensions (im looking at you ipad 2!)\n * If you find on older devices that things have gone a bit weird then set this to true.\n * @static\n * @property {Boolean} FORCE_NATIVE\n */\nVertexArrayObject.FORCE_NATIVE = false;\n\n/**\n * Binds the buffer\n */\nVertexArrayObject.prototype.bind = function()\n{\n if(this.nativeVao)\n {\n this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao);\n\n if(this.dirty)\n {\n this.dirty = false;\n this.activate();\n }\n }\n else\n {\n\n this.activate();\n }\n\n return this;\n};\n\n/**\n * Unbinds the buffer\n */\nVertexArrayObject.prototype.unbind = function()\n{\n if(this.nativeVao)\n {\n this.nativeVaoExtension.bindVertexArrayOES(null);\n }\n\n return this;\n};\n\n/**\n * Uses this vao\n */\nVertexArrayObject.prototype.activate = function()\n{\n\n var gl = this.gl;\n var lastBuffer = null;\n\n for (var i = 0; i < this.attributes.length; i++)\n {\n var attrib = this.attributes[i];\n\n if(lastBuffer !== attrib.buffer)\n {\n attrib.buffer.bind();\n lastBuffer = attrib.buffer;\n }\n\n //attrib.attribute.pointer(attrib.type, attrib.normalized, attrib.stride, attrib.start);\n gl.vertexAttribPointer(attrib.attribute.location,\n attrib.attribute.size, attrib.type || gl.FLOAT,\n attrib.normalized || false,\n attrib.stride || 0,\n attrib.start || 0);\n\n\n }\n\n setVertexAttribArrays(gl, this.attributes, this.nativeState);\n\n this.indexBuffer.bind();\n\n return this;\n};\n\n/**\n *\n * @param buffer {PIXI.gl.GLBuffer}\n * @param attribute {*}\n * @param type {String}\n * @param normalized {Boolean}\n * @param stride {Number}\n * @param start {Number}\n */\nVertexArrayObject.prototype.addAttribute = function(buffer, attribute, type, normalized, stride, start)\n{\n this.attributes.push({\n buffer: buffer,\n attribute: attribute,\n\n location: attribute.location,\n type: type || this.gl.FLOAT,\n normalized: normalized || false,\n stride: stride || 0,\n start: start || 0\n });\n\n this.dirty = true;\n\n return this;\n};\n\n/**\n *\n * @param buffer {PIXI.gl.GLBuffer}\n */\nVertexArrayObject.prototype.addIndex = function(buffer/*, options*/)\n{\n this.indexBuffer = buffer;\n\n this.dirty = true;\n\n return this;\n};\n\n/**\n * Unbinds this vao and disables it\n */\nVertexArrayObject.prototype.clear = function()\n{\n // var gl = this.gl;\n\n // TODO - should this function unbind after clear?\n // for now, no but lets see what happens in the real world!\n if(this.nativeVao)\n {\n this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao);\n }\n\n this.attributes.length = 0;\n this.indexBuffer = null;\n\n return this;\n};\n\n/**\n * @param type {Number}\n * @param size {Number}\n * @param start {Number}\n */\nVertexArrayObject.prototype.draw = function(type, size, start)\n{\n var gl = this.gl;\n gl.drawElements(type, size, gl.UNSIGNED_SHORT, start || 0);\n\n return this;\n};\n\n/**\n * Destroy this vao\n */\nVertexArrayObject.prototype.destroy = function()\n{\n // lose references\n this.gl = null;\n this.indexBuffer = null;\n this.attributes = null;\n this.nativeState = null;\n\n if(this.nativeVao)\n {\n this.nativeVaoExtension.deleteVertexArrayOES(this.nativeVao);\n }\n\n this.nativeVaoExtension = null;\n this.nativeVao = null;\n};\n","\n/**\n * Helper class to create a webGL Context\n *\n * @class\n * @memberof PIXI.glCore\n * @param canvas {HTMLCanvasElement} the canvas element that we will get the context from\n * @param options {Object} An options object that gets passed in to the canvas element containing the context attributes,\n * see https://developer.mozilla.org/en/docs/Web/API/HTMLCanvasElement/getContext for the options available\n * @return {WebGLRenderingContext} the WebGL context\n */\nvar createContext = function(canvas, options)\n{\n var gl = canvas.getContext('webgl', options) || \n canvas.getContext('experimental-webgl', options);\n\n if (!gl)\n {\n // fail, not able to get a context\n throw new Error('This browser does not support webGL. Try using the canvas renderer');\n }\n\n return gl;\n};\n\nmodule.exports = createContext;\n","var gl = {\n createContext: require('./createContext'),\n setVertexAttribArrays: require('./setVertexAttribArrays'),\n GLBuffer: require('./GLBuffer'),\n GLFramebuffer: require('./GLFramebuffer'),\n GLShader: require('./GLShader'),\n GLTexture: require('./GLTexture'),\n VertexArrayObject: require('./VertexArrayObject'),\n shader: require('./shader')\n};\n\n// Export for Node-compatible environments\nif (typeof module !== 'undefined' && module.exports)\n{\n // Export the module\n module.exports = gl;\n}\n\n// Add to the browser window pixi.gl\nif (typeof window !== 'undefined')\n{\n // add the window object\n window.PIXI = window.PIXI || {};\n window.PIXI.glCore = gl;\n}\n","// var GL_MAP = {};\n\n/**\n * @param gl {WebGLRenderingContext} The current WebGL context\n * @param attribs {*}\n * @param state {*}\n */\nvar setVertexAttribArrays = function (gl, attribs, state)\n{\n var i;\n if(state)\n {\n var tempAttribState = state.tempAttribState,\n attribState = state.attribState;\n\n for (i = 0; i < tempAttribState.length; i++)\n {\n tempAttribState[i] = false;\n }\n\n // set the new attribs\n for (i = 0; i < attribs.length; i++)\n {\n tempAttribState[attribs[i].attribute.location] = true;\n }\n\n for (i = 0; i < attribState.length; i++)\n {\n if (attribState[i] !== tempAttribState[i])\n {\n attribState[i] = tempAttribState[i];\n\n if (state.attribState[i])\n {\n gl.enableVertexAttribArray(i);\n }\n else\n {\n gl.disableVertexAttribArray(i);\n }\n }\n }\n\n }\n else\n {\n for (i = 0; i < attribs.length; i++)\n {\n var attrib = attribs[i];\n gl.enableVertexAttribArray(attrib.attribute.location);\n }\n }\n};\n\nmodule.exports = setVertexAttribArrays;\n","\n/**\n * @class\n * @memberof PIXI.glCore.shader\n * @param gl {WebGLRenderingContext} The current WebGL context {WebGLProgram}\n * @param vertexSrc {string|string[]} The vertex shader source as an array of strings.\n * @param fragmentSrc {string|string[]} The fragment shader source as an array of strings.\n * @return {WebGLProgram} the shader program\n */\nvar compileProgram = function(gl, vertexSrc, fragmentSrc)\n{\n var glVertShader = compileShader(gl, gl.VERTEX_SHADER, vertexSrc);\n var glFragShader = compileShader(gl, gl.FRAGMENT_SHADER, fragmentSrc);\n\n var program = gl.createProgram();\n\n gl.attachShader(program, glVertShader);\n gl.attachShader(program, glFragShader);\n gl.linkProgram(program);\n\n // if linking fails, then log and cleanup\n if (!gl.getProgramParameter(program, gl.LINK_STATUS))\n {\n console.error('Pixi.js Error: Could not initialize shader.');\n console.error('gl.VALIDATE_STATUS', gl.getProgramParameter(program, gl.VALIDATE_STATUS));\n console.error('gl.getError()', gl.getError());\n\n // if there is a program info log, log it\n if (gl.getProgramInfoLog(program) !== '')\n {\n console.warn('Pixi.js Warning: gl.getProgramInfoLog()', gl.getProgramInfoLog(program));\n }\n\n gl.deleteProgram(program);\n program = null;\n }\n\n // clean up some shaders\n gl.deleteShader(glVertShader);\n gl.deleteShader(glFragShader);\n\n return program;\n};\n\n/**\n * @private\n * @param gl {WebGLRenderingContext} The current WebGL context {WebGLProgram}\n * @param type {Number} the type, can be either VERTEX_SHADER or FRAGMENT_SHADER\n * @param vertexSrc {string|string[]} The vertex shader source as an array of strings.\n * @return {WebGLShader} the shader\n */\nvar compileShader = function (gl, type, src)\n{\n var shader = gl.createShader(type);\n\n gl.shaderSource(shader, src);\n gl.compileShader(shader);\n\n if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS))\n {\n console.log(gl.getShaderInfoLog(shader));\n return null;\n }\n\n return shader;\n};\n\nmodule.exports = compileProgram;\n","/**\n * @class\n * @memberof PIXI.glCore.shader\n * @param type {String} Type of value\n * @param size {Number}\n */\nvar defaultValue = function(type, size) \n{\n switch (type)\n {\n case 'float':\n return 0;\n\n case 'vec2': \n return new Float32Array(2 * size);\n\n case 'vec3':\n return new Float32Array(3 * size);\n\n case 'vec4': \n return new Float32Array(4 * size);\n \n case 'int':\n case 'sampler2D':\n return 0;\n\n case 'ivec2': \n return new Int32Array(2 * size);\n\n case 'ivec3':\n return new Int32Array(3 * size);\n\n case 'ivec4': \n return new Int32Array(4 * size);\n\n case 'bool': \n return false;\n\n case 'bvec2':\n\n return booleanArray( 2 * size);\n\n case 'bvec3':\n return booleanArray(3 * size);\n\n case 'bvec4':\n return booleanArray(4 * size);\n\n case 'mat2':\n return new Float32Array([1, 0,\n 0, 1]);\n\n case 'mat3': \n return new Float32Array([1, 0, 0,\n 0, 1, 0,\n 0, 0, 1]);\n\n case 'mat4':\n return new Float32Array([1, 0, 0, 0,\n 0, 1, 0, 0,\n 0, 0, 1, 0,\n 0, 0, 0, 1]);\n }\n};\n\nvar booleanArray = function(size)\n{\n var array = new Array(size);\n\n for (var i = 0; i < array.length; i++) \n {\n array[i] = false;\n }\n\n return array;\n};\n\nmodule.exports = defaultValue;\n","\nvar mapType = require('./mapType');\nvar mapSize = require('./mapSize');\n\n/**\n * Extracts the attributes\n * @class\n * @memberof PIXI.glCore.shader\n * @param gl {WebGLRenderingContext} The current WebGL rendering context\n * @param program {WebGLProgram} The shader program to get the attributes from\n * @return attributes {Object}\n */\nvar extractAttributes = function(gl, program)\n{\n var attributes = {};\n\n var totalAttributes = gl.getProgramParameter(program, gl.ACTIVE_ATTRIBUTES);\n\n for (var i = 0; i < totalAttributes; i++)\n {\n var attribData = gl.getActiveAttrib(program, i);\n var type = mapType(gl, attribData.type);\n\n attributes[attribData.name] = {\n type:type,\n size:mapSize(type),\n location:gl.getAttribLocation(program, attribData.name),\n //TODO - make an attribute object\n pointer: pointer\n };\n }\n\n return attributes;\n};\n\nvar pointer = function(type, normalized, stride, start){\n // console.log(this.location)\n gl.vertexAttribPointer(this.location,this.size, type || gl.FLOAT, normalized || false, stride || 0, start || 0);\n};\n\nmodule.exports = extractAttributes;\n","var mapType = require('./mapType');\nvar defaultValue = require('./defaultValue');\n\n/**\n * Extracts the uniforms\n * @class\n * @memberof PIXI.glCore.shader\n * @param gl {WebGLRenderingContext} The current WebGL rendering context\n * @param program {WebGLProgram} The shader program to get the uniforms from\n * @return uniforms {Object}\n */\nvar extractUniforms = function(gl, program)\n{\n\tvar uniforms = {};\n\n var totalUniforms = gl.getProgramParameter(program, gl.ACTIVE_UNIFORMS);\n\n for (var i = 0; i < totalUniforms; i++)\n {\n \tvar uniformData = gl.getActiveUniform(program, i);\n \tvar name = uniformData.name.replace(/\\[.*?\\]/, \"\");\n var type = mapType(gl, uniformData.type );\n\n \tuniforms[name] = {\n \t\ttype:type,\n \t\tsize:uniformData.size,\n \t\tlocation:gl.getUniformLocation(program, name),\n \t\tvalue:defaultValue(type, uniformData.size)\n \t};\n }\n\n\treturn uniforms;\n};\n\nmodule.exports = extractUniforms;\n","/**\n * Extracts the attributes\n * @class\n * @memberof PIXI.glCore.shader\n * @param gl {WebGLRenderingContext} The current WebGL rendering context\n * @param uniforms {Array} @mat ?\n * @return attributes {Object}\n */\nvar generateUniformAccessObject = function(gl, uniformData)\n{\n // this is the object we will be sending back.\n // an object hierachy will be created for structs\n var uniforms = {data:{}};\n\n uniforms.gl = gl;\n\n var uniformKeys= Object.keys(uniformData);\n\n for (var i = 0; i < uniformKeys.length; i++)\n {\n var fullName = uniformKeys[i];\n\n var nameTokens = fullName.split('.');\n var name = nameTokens[nameTokens.length - 1];\n\n var uniformGroup = getUniformGroup(nameTokens, uniforms);\n\n var uniform = uniformData[fullName];\n uniformGroup.data[name] = uniform;\n\n uniformGroup.gl = gl;\n\n Object.defineProperty(uniformGroup, name, {\n get: generateGetter(name),\n set: generateSetter(name, uniform)\n });\n }\n\n return uniforms;\n};\n\nvar generateGetter = function(name)\n{\n\tvar template = getterTemplate.replace('%%', name);\n\treturn new Function(template); // jshint ignore:line\n};\n\nvar generateSetter = function(name, uniform)\n{\n var template = setterTemplate.replace(/%%/g, name);\n var setTemplate;\n\n if(uniform.size === 1)\n {\n setTemplate = GLSL_TO_SINGLE_SETTERS[uniform.type];\n }\n else\n {\n setTemplate = GLSL_TO_ARRAY_SETTERS[uniform.type];\n }\n\n if(setTemplate)\n {\n template += \"\\nthis.gl.\" + setTemplate + \";\";\n }\n\n \treturn new Function('value', template); // jshint ignore:line\n};\n\nvar getUniformGroup = function(nameTokens, uniform)\n{\n var cur = uniform;\n\n for (var i = 0; i < nameTokens.length - 1; i++)\n {\n var o = cur[nameTokens[i]] || {data:{}};\n cur[nameTokens[i]] = o;\n cur = o;\n }\n\n return cur;\n};\n\nvar getterTemplate = [\n 'return this.data.%%.value;',\n].join('\\n');\n\nvar setterTemplate = [\n 'this.data.%%.value = value;',\n 'var location = this.data.%%.location;'\n].join('\\n');\n\n\nvar GLSL_TO_SINGLE_SETTERS = {\n\n 'float': 'uniform1f(location, value)',\n\n 'vec2': 'uniform2f(location, value[0], value[1])',\n 'vec3': 'uniform3f(location, value[0], value[1], value[2])',\n 'vec4': 'uniform4f(location, value[0], value[1], value[2], value[3])',\n\n 'int': 'uniform1i(location, value)',\n 'ivec2': 'uniform2i(location, value[0], value[1])',\n 'ivec3': 'uniform3i(location, value[0], value[1], value[2])',\n 'ivec4': 'uniform4i(location, value[0], value[1], value[2], value[3])',\n\n 'bool': 'uniform1i(location, value)',\n 'bvec2': 'uniform2i(location, value[0], value[1])',\n 'bvec3': 'uniform3i(location, value[0], value[1], value[2])',\n 'bvec4': 'uniform4i(location, value[0], value[1], value[2], value[3])',\n\n 'mat2': 'uniformMatrix2fv(location, false, value)',\n 'mat3': 'uniformMatrix3fv(location, false, value)',\n 'mat4': 'uniformMatrix4fv(location, false, value)',\n\n 'sampler2D':'uniform1i(location, value)'\n};\n\nvar GLSL_TO_ARRAY_SETTERS = {\n\n 'float': 'uniform1fv(location, value)',\n\n 'vec2': 'uniform2fv(location, value)',\n 'vec3': 'uniform3fv(location, value)',\n 'vec4': 'uniform4fv(location, value)',\n\n 'int': 'uniform1iv(location, value)',\n 'ivec2': 'uniform2iv(location, value)',\n 'ivec3': 'uniform3iv(location, value)',\n 'ivec4': 'uniform4iv(location, value)',\n\n 'bool': 'uniform1iv(location, value)',\n 'bvec2': 'uniform2iv(location, value)',\n 'bvec3': 'uniform3iv(location, value)',\n 'bvec4': 'uniform4iv(location, value)',\n\n 'sampler2D':'uniform1iv(location, value)'\n};\n\nmodule.exports = generateUniformAccessObject;\n","module.exports = {\n compileProgram: require('./compileProgram'),\n defaultValue: require('./defaultValue'),\n extractAttributes: require('./extractAttributes'),\n extractUniforms: require('./extractUniforms'),\n generateUniformAccessObject: require('./generateUniformAccessObject'),\n mapSize: require('./mapSize'),\n mapType: require('./mapType') \n};","/**\n * @class\n * @memberof PIXI.glCore.shader\n * @param type {String}\n * @return {Number}\n */\nvar mapSize = function(type) \n{ \n return GLSL_TO_SIZE[type];\n};\n\n\nvar GLSL_TO_SIZE = {\n 'float': 1,\n 'vec2': 2,\n 'vec3': 3,\n 'vec4': 4,\n\n 'int': 1,\n 'ivec2': 2,\n 'ivec3': 3,\n 'ivec4': 4,\n\n 'bool': 1,\n 'bvec2': 2,\n 'bvec3': 3,\n 'bvec4': 4,\n\n 'mat2': 4,\n 'mat3': 9,\n 'mat4': 16,\n\n 'sampler2D': 1\n};\n\nmodule.exports = mapSize;\n","\n\nvar mapSize = function(gl, type) \n{\n if(!GL_TABLE) \n {\n var typeNames = Object.keys(GL_TO_GLSL_TYPES);\n\n GL_TABLE = {};\n\n for(var i = 0; i < typeNames.length; ++i) \n {\n var tn = typeNames[i];\n GL_TABLE[ gl[tn] ] = GL_TO_GLSL_TYPES[tn];\n }\n }\n\n return GL_TABLE[type];\n};\n\nvar GL_TABLE = null;\n\nvar GL_TO_GLSL_TYPES = {\n 'FLOAT': 'float',\n 'FLOAT_VEC2': 'vec2',\n 'FLOAT_VEC3': 'vec3',\n 'FLOAT_VEC4': 'vec4',\n\n 'INT': 'int',\n 'INT_VEC2': 'ivec2',\n 'INT_VEC3': 'ivec3',\n 'INT_VEC4': 'ivec4',\n \n 'BOOL': 'bool',\n 'BOOL_VEC2': 'bvec2',\n 'BOOL_VEC3': 'bvec3',\n 'BOOL_VEC4': 'bvec4',\n \n 'FLOAT_MAT2': 'mat2',\n 'FLOAT_MAT3': 'mat3',\n 'FLOAT_MAT4': 'mat4',\n \n 'SAMPLER_2D': 'sampler2D' \n};\n\nmodule.exports = mapSize;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = eachLimit;\n\nvar _eachOfLimit = require('./internal/eachOfLimit');\n\nvar _eachOfLimit2 = _interopRequireDefault(_eachOfLimit);\n\nvar _withoutIndex = require('./internal/withoutIndex');\n\nvar _withoutIndex2 = _interopRequireDefault(_withoutIndex);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * The same as [`each`]{@link module:Collections.each} but runs a maximum of `limit` async operations at a time.\n *\n * @name eachLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.each]{@link module:Collections.each}\n * @alias forEachLimit\n * @category Collection\n * @param {Array|Iterable|Object} coll - A colleciton to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {Function} iteratee - A function to apply to each item in `coll`. The\n * iteratee is passed a `callback(err)` which must be called once it has\n * completed. If no error has occurred, the `callback` should be run without\n * arguments or with an explicit `null` argument. The array index is not passed\n * to the iteratee. Invoked with (item, callback). If you need the index, use\n * `eachOfLimit`.\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n */\nfunction eachLimit(coll, limit, iteratee, callback) {\n (0, _eachOfLimit2.default)(limit)(coll, (0, _withoutIndex2.default)(iteratee), callback);\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _eachLimit = require('./eachLimit');\n\nvar _eachLimit2 = _interopRequireDefault(_eachLimit);\n\nvar _doLimit = require('./internal/doLimit');\n\nvar _doLimit2 = _interopRequireDefault(_doLimit);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * The same as [`each`]{@link module:Collections.each} but runs only a single async operation at a time.\n *\n * @name eachSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.each]{@link module:Collections.each}\n * @alias forEachSeries\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - A function to apply to each\n * item in `coll`. The iteratee is passed a `callback(err)` which must be called\n * once it has completed. If no error has occurred, the `callback` should be run\n * without arguments or with an explicit `null` argument. The array index is\n * not passed to the iteratee. Invoked with (item, callback). If you need the\n * index, use `eachOfSeries`.\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n */\nexports.default = (0, _doLimit2.default)(_eachLimit2.default, 1);\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = DLL;\n// Simple doubly linked list (https://en.wikipedia.org/wiki/Doubly_linked_list) implementation\n// used for queues. This implementation assumes that the node provided by the user can be modified\n// to adjust the next and last properties. We implement only the minimal functionality\n// for queue support.\nfunction DLL() {\n this.head = this.tail = null;\n this.length = 0;\n}\n\nfunction setInitial(dll, node) {\n dll.length = 1;\n dll.head = dll.tail = node;\n}\n\nDLL.prototype.removeLink = function (node) {\n if (node.prev) node.prev.next = node.next;else this.head = node.next;\n if (node.next) node.next.prev = node.prev;else this.tail = node.prev;\n\n node.prev = node.next = null;\n this.length -= 1;\n return node;\n};\n\nDLL.prototype.empty = DLL;\n\nDLL.prototype.insertAfter = function (node, newNode) {\n newNode.prev = node;\n newNode.next = node.next;\n if (node.next) node.next.prev = newNode;else this.tail = newNode;\n node.next = newNode;\n this.length += 1;\n};\n\nDLL.prototype.insertBefore = function (node, newNode) {\n newNode.prev = node.prev;\n newNode.next = node;\n if (node.prev) node.prev.next = newNode;else this.head = newNode;\n node.prev = newNode;\n this.length += 1;\n};\n\nDLL.prototype.unshift = function (node) {\n if (this.head) this.insertBefore(this.head, node);else setInitial(this, node);\n};\n\nDLL.prototype.push = function (node) {\n if (this.tail) this.insertAfter(this.tail, node);else setInitial(this, node);\n};\n\nDLL.prototype.shift = function () {\n return this.head && this.removeLink(this.head);\n};\n\nDLL.prototype.pop = function () {\n return this.tail && this.removeLink(this.tail);\n};\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = doLimit;\nfunction doLimit(fn, limit) {\n return function (iterable, iteratee, callback) {\n return fn(iterable, limit, iteratee, callback);\n };\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = _eachOfLimit;\n\nvar _noop = require('lodash/noop');\n\nvar _noop2 = _interopRequireDefault(_noop);\n\nvar _once = require('./once');\n\nvar _once2 = _interopRequireDefault(_once);\n\nvar _iterator = require('./iterator');\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _onlyOnce = require('./onlyOnce');\n\nvar _onlyOnce2 = _interopRequireDefault(_onlyOnce);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _eachOfLimit(limit) {\n return function (obj, iteratee, callback) {\n callback = (0, _once2.default)(callback || _noop2.default);\n if (limit <= 0 || !obj) {\n return callback(null);\n }\n var nextElem = (0, _iterator2.default)(obj);\n var done = false;\n var running = 0;\n\n function iterateeCallback(err) {\n running -= 1;\n if (err) {\n done = true;\n callback(err);\n } else if (done && running <= 0) {\n return callback(null);\n } else {\n replenish();\n }\n }\n\n function replenish() {\n while (running < limit && !done) {\n var elem = nextElem();\n if (elem === null) {\n done = true;\n if (running <= 0) {\n callback(null);\n }\n return;\n }\n running += 1;\n iteratee(elem.value, elem.key, (0, _onlyOnce2.default)(iterateeCallback));\n }\n }\n\n replenish();\n };\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports.default = function (coll) {\n return iteratorSymbol && coll[iteratorSymbol] && coll[iteratorSymbol]();\n};\n\nvar iteratorSymbol = typeof Symbol === 'function' && Symbol.iterator;\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = iterator;\n\nvar _isArrayLike = require('lodash/isArrayLike');\n\nvar _isArrayLike2 = _interopRequireDefault(_isArrayLike);\n\nvar _getIterator = require('./getIterator');\n\nvar _getIterator2 = _interopRequireDefault(_getIterator);\n\nvar _keys = require('lodash/keys');\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createArrayIterator(coll) {\n var i = -1;\n var len = coll.length;\n return function next() {\n return ++i < len ? { value: coll[i], key: i } : null;\n };\n}\n\nfunction createES2015Iterator(iterator) {\n var i = -1;\n return function next() {\n var item = iterator.next();\n if (item.done) return null;\n i++;\n return { value: item.value, key: i };\n };\n}\n\nfunction createObjectIterator(obj) {\n var okeys = (0, _keys2.default)(obj);\n var i = -1;\n var len = okeys.length;\n return function next() {\n var key = okeys[++i];\n return i < len ? { value: obj[key], key: key } : null;\n };\n}\n\nfunction iterator(coll) {\n if ((0, _isArrayLike2.default)(coll)) {\n return createArrayIterator(coll);\n }\n\n var iterator = (0, _getIterator2.default)(coll);\n return iterator ? createES2015Iterator(iterator) : createObjectIterator(coll);\n}\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = once;\nfunction once(fn) {\n return function () {\n if (fn === null) return;\n var callFn = fn;\n fn = null;\n callFn.apply(this, arguments);\n };\n}\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = onlyOnce;\nfunction onlyOnce(fn) {\n return function () {\n if (fn === null) throw new Error(\"Callback was already called.\");\n var callFn = fn;\n fn = null;\n callFn.apply(this, arguments);\n };\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = queue;\n\nvar _arrayEach = require('lodash/_arrayEach');\n\nvar _arrayEach2 = _interopRequireDefault(_arrayEach);\n\nvar _isArray = require('lodash/isArray');\n\nvar _isArray2 = _interopRequireDefault(_isArray);\n\nvar _noop = require('lodash/noop');\n\nvar _noop2 = _interopRequireDefault(_noop);\n\nvar _rest = require('lodash/rest');\n\nvar _rest2 = _interopRequireDefault(_rest);\n\nvar _onlyOnce = require('./onlyOnce');\n\nvar _onlyOnce2 = _interopRequireDefault(_onlyOnce);\n\nvar _setImmediate = require('./setImmediate');\n\nvar _setImmediate2 = _interopRequireDefault(_setImmediate);\n\nvar _DoublyLinkedList = require('./DoublyLinkedList');\n\nvar _DoublyLinkedList2 = _interopRequireDefault(_DoublyLinkedList);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction queue(worker, concurrency, payload) {\n if (concurrency == null) {\n concurrency = 1;\n } else if (concurrency === 0) {\n throw new Error('Concurrency must not be zero');\n }\n\n function _insert(data, insertAtFront, callback) {\n if (callback != null && typeof callback !== 'function') {\n throw new Error('task callback must be a function');\n }\n q.started = true;\n if (!(0, _isArray2.default)(data)) {\n data = [data];\n }\n if (data.length === 0 && q.idle()) {\n // call drain immediately if there are no tasks\n return (0, _setImmediate2.default)(function () {\n q.drain();\n });\n }\n (0, _arrayEach2.default)(data, function (task) {\n var item = {\n data: task,\n callback: callback || _noop2.default\n };\n\n if (insertAtFront) {\n q._tasks.unshift(item);\n } else {\n q._tasks.push(item);\n }\n });\n (0, _setImmediate2.default)(q.process);\n }\n\n function _next(tasks) {\n return (0, _rest2.default)(function (args) {\n workers -= 1;\n\n (0, _arrayEach2.default)(tasks, function (task) {\n (0, _arrayEach2.default)(workersList, function (worker, index) {\n if (worker === task) {\n workersList.splice(index, 1);\n return false;\n }\n });\n\n task.callback.apply(task, args);\n\n if (args[0] != null) {\n q.error(args[0], task.data);\n }\n });\n\n if (workers <= q.concurrency - q.buffer) {\n q.unsaturated();\n }\n\n if (q.idle()) {\n q.drain();\n }\n q.process();\n });\n }\n\n var workers = 0;\n var workersList = [];\n var q = {\n _tasks: new _DoublyLinkedList2.default(),\n concurrency: concurrency,\n payload: payload,\n saturated: _noop2.default,\n unsaturated: _noop2.default,\n buffer: concurrency / 4,\n empty: _noop2.default,\n drain: _noop2.default,\n error: _noop2.default,\n started: false,\n paused: false,\n push: function (data, callback) {\n _insert(data, false, callback);\n },\n kill: function () {\n q.drain = _noop2.default;\n q._tasks.empty();\n },\n unshift: function (data, callback) {\n _insert(data, true, callback);\n },\n process: function () {\n while (!q.paused && workers < q.concurrency && q._tasks.length) {\n var tasks = [],\n data = [];\n var l = q._tasks.length;\n if (q.payload) l = Math.min(l, q.payload);\n for (var i = 0; i < l; i++) {\n var node = q._tasks.shift();\n tasks.push(node);\n data.push(node.data);\n }\n\n if (q._tasks.length === 0) {\n q.empty();\n }\n workers += 1;\n workersList.push(tasks[0]);\n\n if (workers === q.concurrency) {\n q.saturated();\n }\n\n var cb = (0, _onlyOnce2.default)(_next(tasks));\n worker(data, cb);\n }\n },\n length: function () {\n return q._tasks.length;\n },\n running: function () {\n return workers;\n },\n workersList: function () {\n return workersList;\n },\n idle: function () {\n return q._tasks.length + workers === 0;\n },\n pause: function () {\n q.paused = true;\n },\n resume: function () {\n if (q.paused === false) {\n return;\n }\n q.paused = false;\n var resumeCount = Math.min(q.concurrency, q._tasks.length);\n // Need to call q.process once per concurrent\n // worker to preserve full concurrency after pause\n for (var w = 1; w <= resumeCount; w++) {\n (0, _setImmediate2.default)(q.process);\n }\n }\n };\n return q;\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.hasNextTick = exports.hasSetImmediate = undefined;\nexports.fallback = fallback;\nexports.wrap = wrap;\n\nvar _rest = require('lodash/rest');\n\nvar _rest2 = _interopRequireDefault(_rest);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar hasSetImmediate = exports.hasSetImmediate = typeof setImmediate === 'function' && setImmediate;\nvar hasNextTick = exports.hasNextTick = typeof process === 'object' && typeof process.nextTick === 'function';\n\nfunction fallback(fn) {\n setTimeout(fn, 0);\n}\n\nfunction wrap(defer) {\n return (0, _rest2.default)(function (fn, args) {\n defer(function () {\n fn.apply(null, args);\n });\n });\n}\n\nvar _defer;\n\nif (hasSetImmediate) {\n _defer = setImmediate;\n} else if (hasNextTick) {\n _defer = process.nextTick;\n} else {\n _defer = fallback;\n}\n\nexports.default = wrap(_defer);","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = _withoutIndex;\nfunction _withoutIndex(iteratee) {\n return function (value, index, callback) {\n return iteratee(value, callback);\n };\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports.default = function (worker, concurrency) {\n return (0, _queue2.default)(function (items, cb) {\n worker(items[0], cb);\n }, concurrency, 1);\n};\n\nvar _queue = require('./internal/queue');\n\nvar _queue2 = _interopRequireDefault(_queue);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nmodule.exports = exports['default'];\n\n/**\n * A queue of tasks for the worker function to complete.\n * @typedef {Object} QueueObject\n * @memberOf module:ControlFlow\n * @property {Function} length - a function returning the number of items\n * waiting to be processed. Invoke with `queue.length()`.\n * @property {boolean} started - a boolean indicating whether or not any\n * items have been pushed and processed by the queue.\n * @property {Function} running - a function returning the number of items\n * currently being processed. Invoke with `queue.running()`.\n * @property {Function} workersList - a function returning the array of items\n * currently being processed. Invoke with `queue.workersList()`.\n * @property {Function} idle - a function returning false if there are items\n * waiting or being processed, or true if not. Invoke with `queue.idle()`.\n * @property {number} concurrency - an integer for determining how many `worker`\n * functions should be run in parallel. This property can be changed after a\n * `queue` is created to alter the concurrency on-the-fly.\n * @property {Function} push - add a new task to the `queue`. Calls `callback`\n * once the `worker` has finished processing the task. Instead of a single task,\n * a `tasks` array can be submitted. The respective callback is used for every\n * task in the list. Invoke with `queue.push(task, [callback])`,\n * @property {Function} unshift - add a new task to the front of the `queue`.\n * Invoke with `queue.unshift(task, [callback])`.\n * @property {Function} saturated - a callback that is called when the number of\n * running workers hits the `concurrency` limit, and further tasks will be\n * queued.\n * @property {Function} unsaturated - a callback that is called when the number\n * of running workers is less than the `concurrency` & `buffer` limits, and\n * further tasks will not be queued.\n * @property {number} buffer - A minimum threshold buffer in order to say that\n * the `queue` is `unsaturated`.\n * @property {Function} empty - a callback that is called when the last item\n * from the `queue` is given to a `worker`.\n * @property {Function} drain - a callback that is called when the last item\n * from the `queue` has returned from the `worker`.\n * @property {Function} error - a callback that is called when a task errors.\n * Has the signature `function(error, task)`.\n * @property {boolean} paused - a boolean for determining whether the queue is\n * in a paused state.\n * @property {Function} pause - a function that pauses the processing of tasks\n * until `resume()` is called. Invoke with `queue.pause()`.\n * @property {Function} resume - a function that resumes the processing of\n * queued tasks when the queue is paused. Invoke with `queue.resume()`.\n * @property {Function} kill - a function that removes the `drain` callback and\n * empties remaining tasks from the queue forcing it to go idle. Invoke with `queue.kill()`.\n */\n\n/**\n * Creates a `queue` object with the specified `concurrency`. Tasks added to the\n * `queue` are processed in parallel (up to the `concurrency` limit). If all\n * `worker`s are in progress, the task is queued until one becomes available.\n * Once a `worker` completes a `task`, that `task`'s callback is called.\n *\n * @name queue\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Function} worker - An asynchronous function for processing a queued\n * task, which must call its `callback(err)` argument when finished, with an\n * optional `error` as an argument. If you want to handle errors from an\n * individual task, pass a callback to `q.push()`. Invoked with\n * (task, callback).\n * @param {number} [concurrency=1] - An `integer` for determining how many\n * `worker` functions should be run in parallel. If omitted, the concurrency\n * defaults to `1`. If the concurrency is `0`, an error is thrown.\n * @returns {module:ControlFlow.QueueObject} A queue object to manage the tasks. Callbacks can\n * attached as certain properties to listen for specific events during the\n * lifecycle of the queue.\n * @example\n *\n * // create a queue object with concurrency 2\n * var q = async.queue(function(task, callback) {\n * console.log('hello ' + task.name);\n * callback();\n * }, 2);\n *\n * // assign a callback\n * q.drain = function() {\n * console.log('all items have been processed');\n * };\n *\n * // add some items to the queue\n * q.push({name: 'foo'}, function(err) {\n * console.log('finished processing foo');\n * });\n * q.push({name: 'bar'}, function (err) {\n * console.log('finished processing bar');\n * });\n *\n * // add some items to the queue (batch-wise)\n * q.push([{name: 'baz'},{name: 'bay'},{name: 'bax'}], function(err) {\n * console.log('finished processing item');\n * });\n *\n * // add some items to the front of the queue\n * q.unshift({name: 'bar'}, function (err) {\n * console.log('finished processing bar');\n * });\n */","/**\n * Bit twiddling hacks for JavaScript.\n *\n * Author: Mikola Lysenko\n *\n * Ported from Stanford bit twiddling hack library:\n * http://graphics.stanford.edu/~seander/bithacks.html\n */\n\n\"use strict\"; \"use restrict\";\n\n//Number of bits in an integer\nvar INT_BITS = 32;\n\n//Constants\nexports.INT_BITS = INT_BITS;\nexports.INT_MAX = 0x7fffffff;\nexports.INT_MIN = -1<<(INT_BITS-1);\n\n//Returns -1, 0, +1 depending on sign of x\nexports.sign = function(v) {\n return (v > 0) - (v < 0);\n}\n\n//Computes absolute value of integer\nexports.abs = function(v) {\n var mask = v >> (INT_BITS-1);\n return (v ^ mask) - mask;\n}\n\n//Computes minimum of integers x and y\nexports.min = function(x, y) {\n return y ^ ((x ^ y) & -(x < y));\n}\n\n//Computes maximum of integers x and y\nexports.max = function(x, y) {\n return x ^ ((x ^ y) & -(x < y));\n}\n\n//Checks if a number is a power of two\nexports.isPow2 = function(v) {\n return !(v & (v-1)) && (!!v);\n}\n\n//Computes log base 2 of v\nexports.log2 = function(v) {\n var r, shift;\n r = (v > 0xFFFF) << 4; v >>>= r;\n shift = (v > 0xFF ) << 3; v >>>= shift; r |= shift;\n shift = (v > 0xF ) << 2; v >>>= shift; r |= shift;\n shift = (v > 0x3 ) << 1; v >>>= shift; r |= shift;\n return r | (v >> 1);\n}\n\n//Computes log base 10 of v\nexports.log10 = function(v) {\n return (v >= 1000000000) ? 9 : (v >= 100000000) ? 8 : (v >= 10000000) ? 7 :\n (v >= 1000000) ? 6 : (v >= 100000) ? 5 : (v >= 10000) ? 4 :\n (v >= 1000) ? 3 : (v >= 100) ? 2 : (v >= 10) ? 1 : 0;\n}\n\n//Counts number of bits\nexports.popCount = function(v) {\n v = v - ((v >>> 1) & 0x55555555);\n v = (v & 0x33333333) + ((v >>> 2) & 0x33333333);\n return ((v + (v >>> 4) & 0xF0F0F0F) * 0x1010101) >>> 24;\n}\n\n//Counts number of trailing zeros\nfunction countTrailingZeros(v) {\n var c = 32;\n v &= -v;\n if (v) c--;\n if (v & 0x0000FFFF) c -= 16;\n if (v & 0x00FF00FF) c -= 8;\n if (v & 0x0F0F0F0F) c -= 4;\n if (v & 0x33333333) c -= 2;\n if (v & 0x55555555) c -= 1;\n return c;\n}\nexports.countTrailingZeros = countTrailingZeros;\n\n//Rounds to next power of 2\nexports.nextPow2 = function(v) {\n v += v === 0;\n --v;\n v |= v >>> 1;\n v |= v >>> 2;\n v |= v >>> 4;\n v |= v >>> 8;\n v |= v >>> 16;\n return v + 1;\n}\n\n//Rounds down to previous power of 2\nexports.prevPow2 = function(v) {\n v |= v >>> 1;\n v |= v >>> 2;\n v |= v >>> 4;\n v |= v >>> 8;\n v |= v >>> 16;\n return v - (v>>>1);\n}\n\n//Computes parity of word\nexports.parity = function(v) {\n v ^= v >>> 16;\n v ^= v >>> 8;\n v ^= v >>> 4;\n v &= 0xf;\n return (0x6996 >>> v) & 1;\n}\n\nvar REVERSE_TABLE = new Array(256);\n\n(function(tab) {\n for(var i=0; i<256; ++i) {\n var v = i, r = i, s = 7;\n for (v >>>= 1; v; v >>>= 1) {\n r <<= 1;\n r |= v & 1;\n --s;\n }\n tab[i] = (r << s) & 0xff;\n }\n})(REVERSE_TABLE);\n\n//Reverse bits in a 32 bit word\nexports.reverse = function(v) {\n return (REVERSE_TABLE[ v & 0xff] << 24) |\n (REVERSE_TABLE[(v >>> 8) & 0xff] << 16) |\n (REVERSE_TABLE[(v >>> 16) & 0xff] << 8) |\n REVERSE_TABLE[(v >>> 24) & 0xff];\n}\n\n//Interleave bits of 2 coordinates with 16 bits. Useful for fast quadtree codes\nexports.interleave2 = function(x, y) {\n x &= 0xFFFF;\n x = (x | (x << 8)) & 0x00FF00FF;\n x = (x | (x << 4)) & 0x0F0F0F0F;\n x = (x | (x << 2)) & 0x33333333;\n x = (x | (x << 1)) & 0x55555555;\n\n y &= 0xFFFF;\n y = (y | (y << 8)) & 0x00FF00FF;\n y = (y | (y << 4)) & 0x0F0F0F0F;\n y = (y | (y << 2)) & 0x33333333;\n y = (y | (y << 1)) & 0x55555555;\n\n return x | (y << 1);\n}\n\n//Extracts the nth interleaved component\nexports.deinterleave2 = function(v, n) {\n v = (v >>> n) & 0x55555555;\n v = (v | (v >>> 1)) & 0x33333333;\n v = (v | (v >>> 2)) & 0x0F0F0F0F;\n v = (v | (v >>> 4)) & 0x00FF00FF;\n v = (v | (v >>> 16)) & 0x000FFFF;\n return (v << 16) >> 16;\n}\n\n\n//Interleave bits of 3 coordinates, each with 10 bits. Useful for fast octree codes\nexports.interleave3 = function(x, y, z) {\n x &= 0x3FF;\n x = (x | (x<<16)) & 4278190335;\n x = (x | (x<<8)) & 251719695;\n x = (x | (x<<4)) & 3272356035;\n x = (x | (x<<2)) & 1227133513;\n\n y &= 0x3FF;\n y = (y | (y<<16)) & 4278190335;\n y = (y | (y<<8)) & 251719695;\n y = (y | (y<<4)) & 3272356035;\n y = (y | (y<<2)) & 1227133513;\n x |= (y << 1);\n \n z &= 0x3FF;\n z = (z | (z<<16)) & 4278190335;\n z = (z | (z<<8)) & 251719695;\n z = (z | (z<<4)) & 3272356035;\n z = (z | (z<<2)) & 1227133513;\n \n return x | (z << 2);\n}\n\n//Extracts nth interleaved component of a 3-tuple\nexports.deinterleave3 = function(v, n) {\n v = (v >>> n) & 1227133513;\n v = (v | (v>>>2)) & 3272356035;\n v = (v | (v>>>4)) & 251719695;\n v = (v | (v>>>8)) & 4278190335;\n v = (v | (v>>>16)) & 0x3FF;\n return (v<<22)>>22;\n}\n\n//Computes next combination in colexicographic order (this is mistakenly called nextPermutation on the bit twiddling hacks page)\nexports.nextCombination = function(v) {\n var t = v | (v - 1);\n return (t + 1) | (((~t & -~t) - 1) >>> (countTrailingZeros(v) + 1));\n}\n\n","'use strict';\n\nmodule.exports = earcut;\n\nfunction earcut(data, holeIndices, dim) {\n\n dim = dim || 2;\n\n var hasHoles = holeIndices && holeIndices.length,\n outerLen = hasHoles ? holeIndices[0] * dim : data.length,\n outerNode = linkedList(data, 0, outerLen, dim, true),\n triangles = [];\n\n if (!outerNode) return triangles;\n\n var minX, minY, maxX, maxY, x, y, size;\n\n if (hasHoles) outerNode = eliminateHoles(data, holeIndices, outerNode, dim);\n\n // if the shape is not too simple, we'll use z-order curve hash later; calculate polygon bbox\n if (data.length > 80 * dim) {\n minX = maxX = data[0];\n minY = maxY = data[1];\n\n for (var i = dim; i < outerLen; i += dim) {\n x = data[i];\n y = data[i + 1];\n if (x < minX) minX = x;\n if (y < minY) minY = y;\n if (x > maxX) maxX = x;\n if (y > maxY) maxY = y;\n }\n\n // minX, minY and size are later used to transform coords into integers for z-order calculation\n size = Math.max(maxX - minX, maxY - minY);\n }\n\n earcutLinked(outerNode, triangles, dim, minX, minY, size);\n\n return triangles;\n}\n\n// create a circular doubly linked list from polygon points in the specified winding order\nfunction linkedList(data, start, end, dim, clockwise) {\n var i, last;\n\n if (clockwise === (signedArea(data, start, end, dim) > 0)) {\n for (i = start; i < end; i += dim) last = insertNode(i, data[i], data[i + 1], last);\n } else {\n for (i = end - dim; i >= start; i -= dim) last = insertNode(i, data[i], data[i + 1], last);\n }\n\n if (last && equals(last, last.next)) {\n removeNode(last);\n last = last.next;\n }\n\n return last;\n}\n\n// eliminate colinear or duplicate points\nfunction filterPoints(start, end) {\n if (!start) return start;\n if (!end) end = start;\n\n var p = start,\n again;\n do {\n again = false;\n\n if (!p.steiner && (equals(p, p.next) || area(p.prev, p, p.next) === 0)) {\n removeNode(p);\n p = end = p.prev;\n if (p === p.next) return null;\n again = true;\n\n } else {\n p = p.next;\n }\n } while (again || p !== end);\n\n return end;\n}\n\n// main ear slicing loop which triangulates a polygon (given as a linked list)\nfunction earcutLinked(ear, triangles, dim, minX, minY, size, pass) {\n if (!ear) return;\n\n // interlink polygon nodes in z-order\n if (!pass && size) indexCurve(ear, minX, minY, size);\n\n var stop = ear,\n prev, next;\n\n // iterate through ears, slicing them one by one\n while (ear.prev !== ear.next) {\n prev = ear.prev;\n next = ear.next;\n\n if (size ? isEarHashed(ear, minX, minY, size) : isEar(ear)) {\n // cut off the triangle\n triangles.push(prev.i / dim);\n triangles.push(ear.i / dim);\n triangles.push(next.i / dim);\n\n removeNode(ear);\n\n // skipping the next vertice leads to less sliver triangles\n ear = next.next;\n stop = next.next;\n\n continue;\n }\n\n ear = next;\n\n // if we looped through the whole remaining polygon and can't find any more ears\n if (ear === stop) {\n // try filtering points and slicing again\n if (!pass) {\n earcutLinked(filterPoints(ear), triangles, dim, minX, minY, size, 1);\n\n // if this didn't work, try curing all small self-intersections locally\n } else if (pass === 1) {\n ear = cureLocalIntersections(ear, triangles, dim);\n earcutLinked(ear, triangles, dim, minX, minY, size, 2);\n\n // as a last resort, try splitting the remaining polygon into two\n } else if (pass === 2) {\n splitEarcut(ear, triangles, dim, minX, minY, size);\n }\n\n break;\n }\n }\n}\n\n// check whether a polygon node forms a valid ear with adjacent nodes\nfunction isEar(ear) {\n var a = ear.prev,\n b = ear,\n c = ear.next;\n\n if (area(a, b, c) >= 0) return false; // reflex, can't be an ear\n\n // now make sure we don't have other points inside the potential ear\n var p = ear.next.next;\n\n while (p !== ear.prev) {\n if (pointInTriangle(a.x, a.y, b.x, b.y, c.x, c.y, p.x, p.y) &&\n area(p.prev, p, p.next) >= 0) return false;\n p = p.next;\n }\n\n return true;\n}\n\nfunction isEarHashed(ear, minX, minY, size) {\n var a = ear.prev,\n b = ear,\n c = ear.next;\n\n if (area(a, b, c) >= 0) return false; // reflex, can't be an ear\n\n // triangle bbox; min & max are calculated like this for speed\n var minTX = a.x < b.x ? (a.x < c.x ? a.x : c.x) : (b.x < c.x ? b.x : c.x),\n minTY = a.y < b.y ? (a.y < c.y ? a.y : c.y) : (b.y < c.y ? b.y : c.y),\n maxTX = a.x > b.x ? (a.x > c.x ? a.x : c.x) : (b.x > c.x ? b.x : c.x),\n maxTY = a.y > b.y ? (a.y > c.y ? a.y : c.y) : (b.y > c.y ? b.y : c.y);\n\n // z-order range for the current triangle bbox;\n var minZ = zOrder(minTX, minTY, minX, minY, size),\n maxZ = zOrder(maxTX, maxTY, minX, minY, size);\n\n // first look for points inside the triangle in increasing z-order\n var p = ear.nextZ;\n\n while (p && p.z <= maxZ) {\n if (p !== ear.prev && p !== ear.next &&\n pointInTriangle(a.x, a.y, b.x, b.y, c.x, c.y, p.x, p.y) &&\n area(p.prev, p, p.next) >= 0) return false;\n p = p.nextZ;\n }\n\n // then look for points in decreasing z-order\n p = ear.prevZ;\n\n while (p && p.z >= minZ) {\n if (p !== ear.prev && p !== ear.next &&\n pointInTriangle(a.x, a.y, b.x, b.y, c.x, c.y, p.x, p.y) &&\n area(p.prev, p, p.next) >= 0) return false;\n p = p.prevZ;\n }\n\n return true;\n}\n\n// go through all polygon nodes and cure small local self-intersections\nfunction cureLocalIntersections(start, triangles, dim) {\n var p = start;\n do {\n var a = p.prev,\n b = p.next.next;\n\n if (!equals(a, b) && intersects(a, p, p.next, b) && locallyInside(a, b) && locallyInside(b, a)) {\n\n triangles.push(a.i / dim);\n triangles.push(p.i / dim);\n triangles.push(b.i / dim);\n\n // remove two nodes involved\n removeNode(p);\n removeNode(p.next);\n\n p = start = b;\n }\n p = p.next;\n } while (p !== start);\n\n return p;\n}\n\n// try splitting polygon into two and triangulate them independently\nfunction splitEarcut(start, triangles, dim, minX, minY, size) {\n // look for a valid diagonal that divides the polygon into two\n var a = start;\n do {\n var b = a.next.next;\n while (b !== a.prev) {\n if (a.i !== b.i && isValidDiagonal(a, b)) {\n // split the polygon in two by the diagonal\n var c = splitPolygon(a, b);\n\n // filter colinear points around the cuts\n a = filterPoints(a, a.next);\n c = filterPoints(c, c.next);\n\n // run earcut on each half\n earcutLinked(a, triangles, dim, minX, minY, size);\n earcutLinked(c, triangles, dim, minX, minY, size);\n return;\n }\n b = b.next;\n }\n a = a.next;\n } while (a !== start);\n}\n\n// link every hole into the outer loop, producing a single-ring polygon without holes\nfunction eliminateHoles(data, holeIndices, outerNode, dim) {\n var queue = [],\n i, len, start, end, list;\n\n for (i = 0, len = holeIndices.length; i < len; i++) {\n start = holeIndices[i] * dim;\n end = i < len - 1 ? holeIndices[i + 1] * dim : data.length;\n list = linkedList(data, start, end, dim, false);\n if (list === list.next) list.steiner = true;\n queue.push(getLeftmost(list));\n }\n\n queue.sort(compareX);\n\n // process holes from left to right\n for (i = 0; i < queue.length; i++) {\n eliminateHole(queue[i], outerNode);\n outerNode = filterPoints(outerNode, outerNode.next);\n }\n\n return outerNode;\n}\n\nfunction compareX(a, b) {\n return a.x - b.x;\n}\n\n// find a bridge between vertices that connects hole with an outer ring and and link it\nfunction eliminateHole(hole, outerNode) {\n outerNode = findHoleBridge(hole, outerNode);\n if (outerNode) {\n var b = splitPolygon(outerNode, hole);\n filterPoints(b, b.next);\n }\n}\n\n// David Eberly's algorithm for finding a bridge between hole and outer polygon\nfunction findHoleBridge(hole, outerNode) {\n var p = outerNode,\n hx = hole.x,\n hy = hole.y,\n qx = -Infinity,\n m;\n\n // find a segment intersected by a ray from the hole's leftmost point to the left;\n // segment's endpoint with lesser x will be potential connection point\n do {\n if (hy <= p.y && hy >= p.next.y) {\n var x = p.x + (hy - p.y) * (p.next.x - p.x) / (p.next.y - p.y);\n if (x <= hx && x > qx) {\n qx = x;\n if (x === hx) {\n if (hy === p.y) return p;\n if (hy === p.next.y) return p.next;\n }\n m = p.x < p.next.x ? p : p.next;\n }\n }\n p = p.next;\n } while (p !== outerNode);\n\n if (!m) return null;\n\n if (hx === qx) return m.prev; // hole touches outer segment; pick lower endpoint\n\n // look for points inside the triangle of hole point, segment intersection and endpoint;\n // if there are no points found, we have a valid connection;\n // otherwise choose the point of the minimum angle with the ray as connection point\n\n var stop = m,\n mx = m.x,\n my = m.y,\n tanMin = Infinity,\n tan;\n\n p = m.next;\n\n while (p !== stop) {\n if (hx >= p.x && p.x >= mx &&\n pointInTriangle(hy < my ? hx : qx, hy, mx, my, hy < my ? qx : hx, hy, p.x, p.y)) {\n\n tan = Math.abs(hy - p.y) / (hx - p.x); // tangential\n\n if ((tan < tanMin || (tan === tanMin && p.x > m.x)) && locallyInside(p, hole)) {\n m = p;\n tanMin = tan;\n }\n }\n\n p = p.next;\n }\n\n return m;\n}\n\n// interlink polygon nodes in z-order\nfunction indexCurve(start, minX, minY, size) {\n var p = start;\n do {\n if (p.z === null) p.z = zOrder(p.x, p.y, minX, minY, size);\n p.prevZ = p.prev;\n p.nextZ = p.next;\n p = p.next;\n } while (p !== start);\n\n p.prevZ.nextZ = null;\n p.prevZ = null;\n\n sortLinked(p);\n}\n\n// Simon Tatham's linked list merge sort algorithm\n// http://www.chiark.greenend.org.uk/~sgtatham/algorithms/listsort.html\nfunction sortLinked(list) {\n var i, p, q, e, tail, numMerges, pSize, qSize,\n inSize = 1;\n\n do {\n p = list;\n list = null;\n tail = null;\n numMerges = 0;\n\n while (p) {\n numMerges++;\n q = p;\n pSize = 0;\n for (i = 0; i < inSize; i++) {\n pSize++;\n q = q.nextZ;\n if (!q) break;\n }\n\n qSize = inSize;\n\n while (pSize > 0 || (qSize > 0 && q)) {\n\n if (pSize === 0) {\n e = q;\n q = q.nextZ;\n qSize--;\n } else if (qSize === 0 || !q) {\n e = p;\n p = p.nextZ;\n pSize--;\n } else if (p.z <= q.z) {\n e = p;\n p = p.nextZ;\n pSize--;\n } else {\n e = q;\n q = q.nextZ;\n qSize--;\n }\n\n if (tail) tail.nextZ = e;\n else list = e;\n\n e.prevZ = tail;\n tail = e;\n }\n\n p = q;\n }\n\n tail.nextZ = null;\n inSize *= 2;\n\n } while (numMerges > 1);\n\n return list;\n}\n\n// z-order of a point given coords and size of the data bounding box\nfunction zOrder(x, y, minX, minY, size) {\n // coords are transformed into non-negative 15-bit integer range\n x = 32767 * (x - minX) / size;\n y = 32767 * (y - minY) / size;\n\n x = (x | (x << 8)) & 0x00FF00FF;\n x = (x | (x << 4)) & 0x0F0F0F0F;\n x = (x | (x << 2)) & 0x33333333;\n x = (x | (x << 1)) & 0x55555555;\n\n y = (y | (y << 8)) & 0x00FF00FF;\n y = (y | (y << 4)) & 0x0F0F0F0F;\n y = (y | (y << 2)) & 0x33333333;\n y = (y | (y << 1)) & 0x55555555;\n\n return x | (y << 1);\n}\n\n// find the leftmost node of a polygon ring\nfunction getLeftmost(start) {\n var p = start,\n leftmost = start;\n do {\n if (p.x < leftmost.x) leftmost = p;\n p = p.next;\n } while (p !== start);\n\n return leftmost;\n}\n\n// check if a point lies within a convex triangle\nfunction pointInTriangle(ax, ay, bx, by, cx, cy, px, py) {\n return (cx - px) * (ay - py) - (ax - px) * (cy - py) >= 0 &&\n (ax - px) * (by - py) - (bx - px) * (ay - py) >= 0 &&\n (bx - px) * (cy - py) - (cx - px) * (by - py) >= 0;\n}\n\n// check if a diagonal between two polygon nodes is valid (lies in polygon interior)\nfunction isValidDiagonal(a, b) {\n return a.next.i !== b.i && a.prev.i !== b.i && !intersectsPolygon(a, b) &&\n locallyInside(a, b) && locallyInside(b, a) && middleInside(a, b);\n}\n\n// signed area of a triangle\nfunction area(p, q, r) {\n return (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y);\n}\n\n// check if two points are equal\nfunction equals(p1, p2) {\n return p1.x === p2.x && p1.y === p2.y;\n}\n\n// check if two segments intersect\nfunction intersects(p1, q1, p2, q2) {\n if ((equals(p1, q1) && equals(p2, q2)) ||\n (equals(p1, q2) && equals(p2, q1))) return true;\n return area(p1, q1, p2) > 0 !== area(p1, q1, q2) > 0 &&\n area(p2, q2, p1) > 0 !== area(p2, q2, q1) > 0;\n}\n\n// check if a polygon diagonal intersects any polygon segments\nfunction intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}\n\n// check if a polygon diagonal is locally inside the polygon\nfunction locallyInside(a, b) {\n return area(a.prev, a, a.next) < 0 ?\n area(a, b, a.next) >= 0 && area(a, a.prev, b) >= 0 :\n area(a, b, a.prev) < 0 || area(a, a.next, b) < 0;\n}\n\n// check if the middle point of a polygon diagonal is inside the polygon\nfunction middleInside(a, b) {\n var p = a,\n inside = false,\n px = (a.x + b.x) / 2,\n py = (a.y + b.y) / 2;\n do {\n if (((p.y > py) !== (p.next.y > py)) && (px < (p.next.x - p.x) * (py - p.y) / (p.next.y - p.y) + p.x))\n inside = !inside;\n p = p.next;\n } while (p !== a);\n\n return inside;\n}\n\n// link two polygon vertices with a bridge; if the vertices belong to the same ring, it splits polygon into two;\n// if one belongs to the outer ring and another to a hole, it merges it into a single ring\nfunction splitPolygon(a, b) {\n var a2 = new Node(a.i, a.x, a.y),\n b2 = new Node(b.i, b.x, b.y),\n an = a.next,\n bp = b.prev;\n\n a.next = b;\n b.prev = a;\n\n a2.next = an;\n an.prev = a2;\n\n b2.next = a2;\n a2.prev = b2;\n\n bp.next = b2;\n b2.prev = bp;\n\n return b2;\n}\n\n// create a node and optionally link it with previous one (in a circular doubly linked list)\nfunction insertNode(i, x, y, last) {\n var p = new Node(i, x, y);\n\n if (!last) {\n p.prev = p;\n p.next = p;\n\n } else {\n p.next = last.next;\n p.prev = last;\n last.next.prev = p;\n last.next = p;\n }\n return p;\n}\n\nfunction removeNode(p) {\n p.next.prev = p.prev;\n p.prev.next = p.next;\n\n if (p.prevZ) p.prevZ.nextZ = p.nextZ;\n if (p.nextZ) p.nextZ.prevZ = p.prevZ;\n}\n\nfunction Node(i, x, y) {\n // vertice index in coordinates array\n this.i = i;\n\n // vertex coordinates\n this.x = x;\n this.y = y;\n\n // previous and next vertice nodes in a polygon ring\n this.prev = null;\n this.next = null;\n\n // z-order curve value\n this.z = null;\n\n // previous and next nodes in z-order\n this.prevZ = null;\n this.nextZ = null;\n\n // indicates whether this is a steiner point\n this.steiner = false;\n}\n\n// return a percentage difference between the polygon area and its triangulation area;\n// used to verify correctness of triangulation\nearcut.deviation = function (data, holeIndices, dim, triangles) {\n var hasHoles = holeIndices && holeIndices.length;\n var outerLen = hasHoles ? holeIndices[0] * dim : data.length;\n\n var polygonArea = Math.abs(signedArea(data, 0, outerLen, dim));\n if (hasHoles) {\n for (var i = 0, len = holeIndices.length; i < len; i++) {\n var start = holeIndices[i] * dim;\n var end = i < len - 1 ? holeIndices[i + 1] * dim : data.length;\n polygonArea -= Math.abs(signedArea(data, start, end, dim));\n }\n }\n\n var trianglesArea = 0;\n for (i = 0; i < triangles.length; i += 3) {\n var a = triangles[i] * dim;\n var b = triangles[i + 1] * dim;\n var c = triangles[i + 2] * dim;\n trianglesArea += Math.abs(\n (data[a] - data[c]) * (data[b + 1] - data[a + 1]) -\n (data[a] - data[b]) * (data[c + 1] - data[a + 1]));\n }\n\n return polygonArea === 0 && trianglesArea === 0 ? 0 :\n Math.abs((trianglesArea - polygonArea) / polygonArea);\n};\n\nfunction signedArea(data, start, end, dim) {\n var sum = 0;\n for (var i = start, j = end - dim; i < end; i += dim) {\n sum += (data[j] - data[i]) * (data[i + 1] + data[j + 1]);\n j = i;\n }\n return sum;\n}\n\n// turn a polygon in a multi-dimensional array form (e.g. as in GeoJSON) into a form Earcut accepts\nearcut.flatten = function (data) {\n var dim = data[0][0].length,\n result = {vertices: [], holes: [], dimensions: dim},\n holeIndex = 0;\n\n for (var i = 0; i < data.length; i++) {\n for (var j = 0; j < data[i].length; j++) {\n for (var d = 0; d < dim; d++) result.vertices.push(data[i][j][d]);\n }\n if (i > 0) {\n holeIndex += data[i - 1].length;\n result.holes.push(holeIndex);\n }\n }\n return result;\n};\n","'use strict';\n\nvar has = Object.prototype.hasOwnProperty;\n\n//\n// We store our EE objects in a plain object whose properties are event names.\n// If `Object.create(null)` is not supported we prefix the event names with a\n// `~` to make sure that the built-in object properties are not overridden or\n// used as an attack vector.\n// We also assume that `Object.create(null)` is available when the event name\n// is an ES6 Symbol.\n//\nvar prefix = typeof Object.create !== 'function' ? '~' : false;\n\n/**\n * Representation of a single EventEmitter function.\n *\n * @param {Function} fn Event handler to be called.\n * @param {Mixed} context Context for function execution.\n * @param {Boolean} [once=false] Only emit once\n * @api private\n */\nfunction EE(fn, context, once) {\n this.fn = fn;\n this.context = context;\n this.once = once || false;\n}\n\n/**\n * Minimal EventEmitter interface that is molded against the Node.js\n * EventEmitter interface.\n *\n * @constructor\n * @api public\n */\nfunction EventEmitter() { /* Nothing to set */ }\n\n/**\n * Hold the assigned EventEmitters by name.\n *\n * @type {Object}\n * @private\n */\nEventEmitter.prototype._events = undefined;\n\n/**\n * Return an array listing the events for which the emitter has registered\n * listeners.\n *\n * @returns {Array}\n * @api public\n */\nEventEmitter.prototype.eventNames = function eventNames() {\n var events = this._events\n , names = []\n , name;\n\n if (!events) return names;\n\n for (name in events) {\n if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);\n }\n\n if (Object.getOwnPropertySymbols) {\n return names.concat(Object.getOwnPropertySymbols(events));\n }\n\n return names;\n};\n\n/**\n * Return a list of assigned event listeners.\n *\n * @param {String} event The events that should be listed.\n * @param {Boolean} exists We only need to know if there are listeners.\n * @returns {Array|Boolean}\n * @api public\n */\nEventEmitter.prototype.listeners = function listeners(event, exists) {\n var evt = prefix ? prefix + event : event\n , available = this._events && this._events[evt];\n\n if (exists) return !!available;\n if (!available) return [];\n if (available.fn) return [available.fn];\n\n for (var i = 0, l = available.length, ee = new Array(l); i < l; i++) {\n ee[i] = available[i].fn;\n }\n\n return ee;\n};\n\n/**\n * Emit an event to all registered event listeners.\n *\n * @param {String} event The name of the event.\n * @returns {Boolean} Indication if we've emitted an event.\n * @api public\n */\nEventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events || !this._events[evt]) return false;\n\n var listeners = this._events[evt]\n , len = arguments.length\n , args\n , i;\n\n if ('function' === typeof listeners.fn) {\n if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);\n\n switch (len) {\n case 1: return listeners.fn.call(listeners.context), true;\n case 2: return listeners.fn.call(listeners.context, a1), true;\n case 3: return listeners.fn.call(listeners.context, a1, a2), true;\n case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;\n case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;\n case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;\n }\n\n for (i = 1, args = new Array(len -1); i < len; i++) {\n args[i - 1] = arguments[i];\n }\n\n listeners.fn.apply(listeners.context, args);\n } else {\n var length = listeners.length\n , j;\n\n for (i = 0; i < length; i++) {\n if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);\n\n switch (len) {\n case 1: listeners[i].fn.call(listeners[i].context); break;\n case 2: listeners[i].fn.call(listeners[i].context, a1); break;\n case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;\n default:\n if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {\n args[j - 1] = arguments[j];\n }\n\n listeners[i].fn.apply(listeners[i].context, args);\n }\n }\n }\n\n return true;\n};\n\n/**\n * Register a new EventListener for the given event.\n *\n * @param {String} event Name of the event.\n * @param {Function} fn Callback function.\n * @param {Mixed} [context=this] The context of the function.\n * @api public\n */\nEventEmitter.prototype.on = function on(event, fn, context) {\n var listener = new EE(fn, context || this)\n , evt = prefix ? prefix + event : event;\n\n if (!this._events) this._events = prefix ? {} : Object.create(null);\n if (!this._events[evt]) this._events[evt] = listener;\n else {\n if (!this._events[evt].fn) this._events[evt].push(listener);\n else this._events[evt] = [\n this._events[evt], listener\n ];\n }\n\n return this;\n};\n\n/**\n * Add an EventListener that's only called once.\n *\n * @param {String} event Name of the event.\n * @param {Function} fn Callback function.\n * @param {Mixed} [context=this] The context of the function.\n * @api public\n */\nEventEmitter.prototype.once = function once(event, fn, context) {\n var listener = new EE(fn, context || this, true)\n , evt = prefix ? prefix + event : event;\n\n if (!this._events) this._events = prefix ? {} : Object.create(null);\n if (!this._events[evt]) this._events[evt] = listener;\n else {\n if (!this._events[evt].fn) this._events[evt].push(listener);\n else this._events[evt] = [\n this._events[evt], listener\n ];\n }\n\n return this;\n};\n\n/**\n * Remove event listeners.\n *\n * @param {String} event The event we want to remove.\n * @param {Function} fn The listener that we need to find.\n * @param {Mixed} context Only remove listeners matching this context.\n * @param {Boolean} once Only remove once listeners.\n * @api public\n */\nEventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events || !this._events[evt]) return this;\n\n var listeners = this._events[evt]\n , events = [];\n\n if (fn) {\n if (listeners.fn) {\n if (\n listeners.fn !== fn\n || (once && !listeners.once)\n || (context && listeners.context !== context)\n ) {\n events.push(listeners);\n }\n } else {\n for (var i = 0, length = listeners.length; i < length; i++) {\n if (\n listeners[i].fn !== fn\n || (once && !listeners[i].once)\n || (context && listeners[i].context !== context)\n ) {\n events.push(listeners[i]);\n }\n }\n }\n }\n\n //\n // Reset the array, or remove it completely if we have no more listeners.\n //\n if (events.length) {\n this._events[evt] = events.length === 1 ? events[0] : events;\n } else {\n delete this._events[evt];\n }\n\n return this;\n};\n\n/**\n * Remove all listeners or only the listeners for the specified event.\n *\n * @param {String} event The event want to remove all listeners for.\n * @api public\n */\nEventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {\n if (!this._events) return this;\n\n if (event) delete this._events[prefix ? prefix + event : event];\n else this._events = prefix ? {} : Object.create(null);\n\n return this;\n};\n\n//\n// Alias methods names because people roll like that.\n//\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\nEventEmitter.prototype.addListener = EventEmitter.prototype.on;\n\n//\n// This function doesn't apply anymore.\n//\nEventEmitter.prototype.setMaxListeners = function setMaxListeners() {\n return this;\n};\n\n//\n// Expose the prefix.\n//\nEventEmitter.prefixed = prefix;\n\n//\n// Expose the module.\n//\nif ('undefined' !== typeof module) {\n module.exports = EventEmitter;\n}\n","/**\n * isMobile.js v0.4.0\n *\n * A simple library to detect Apple phones and tablets,\n * Android phones and tablets, other mobile devices (like blackberry, mini-opera and windows phone),\n * and any kind of seven inch device, via user agent sniffing.\n *\n * @author: Kai Mallea (kmallea@gmail.com)\n *\n * @license: http://creativecommons.org/publicdomain/zero/1.0/\n */\n(function (global) {\n\n var apple_phone = /iPhone/i,\n apple_ipod = /iPod/i,\n apple_tablet = /iPad/i,\n android_phone = /(?=.*\\bAndroid\\b)(?=.*\\bMobile\\b)/i, // Match 'Android' AND 'Mobile'\n android_tablet = /Android/i,\n amazon_phone = /(?=.*\\bAndroid\\b)(?=.*\\bSD4930UR\\b)/i,\n amazon_tablet = /(?=.*\\bAndroid\\b)(?=.*\\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\\b)/i,\n windows_phone = /IEMobile/i,\n windows_tablet = /(?=.*\\bWindows\\b)(?=.*\\bARM\\b)/i, // Match 'Windows' AND 'ARM'\n other_blackberry = /BlackBerry/i,\n other_blackberry_10 = /BB10/i,\n other_opera = /Opera Mini/i,\n other_chrome = /(CriOS|Chrome)(?=.*\\bMobile\\b)/i,\n other_firefox = /(?=.*\\bFirefox\\b)(?=.*\\bMobile\\b)/i, // Match 'Firefox' AND 'Mobile'\n seven_inch = new RegExp(\n '(?:' + // Non-capturing group\n\n 'Nexus 7' + // Nexus 7\n\n '|' + // OR\n\n 'BNTV250' + // B&N Nook Tablet 7 inch\n\n '|' + // OR\n\n 'Kindle Fire' + // Kindle Fire\n\n '|' + // OR\n\n 'Silk' + // Kindle Fire, Silk Accelerated\n\n '|' + // OR\n\n 'GT-P1000' + // Galaxy Tab 7 inch\n\n ')', // End non-capturing group\n\n 'i'); // Case-insensitive matching\n\n var match = function(regex, userAgent) {\n return regex.test(userAgent);\n };\n\n var IsMobileClass = function(userAgent) {\n var ua = userAgent || navigator.userAgent;\n\n // Facebook mobile app's integrated browser adds a bunch of strings that\n // match everything. Strip it out if it exists.\n var tmp = ua.split('[FBAN');\n if (typeof tmp[1] !== 'undefined') {\n ua = tmp[0];\n }\n\n // Twitter mobile app's integrated browser on iPad adds a \"Twitter for\n // iPhone\" string. Same probable happens on other tablet platforms.\n // This will confuse detection so strip it out if it exists.\n tmp = ua.split('Twitter');\n if (typeof tmp[1] !== 'undefined') {\n ua = tmp[0];\n }\n\n this.apple = {\n phone: match(apple_phone, ua),\n ipod: match(apple_ipod, ua),\n tablet: !match(apple_phone, ua) && match(apple_tablet, ua),\n device: match(apple_phone, ua) || match(apple_ipod, ua) || match(apple_tablet, ua)\n };\n this.amazon = {\n phone: match(amazon_phone, ua),\n tablet: !match(amazon_phone, ua) && match(amazon_tablet, ua),\n device: match(amazon_phone, ua) || match(amazon_tablet, ua)\n };\n this.android = {\n phone: match(amazon_phone, ua) || match(android_phone, ua),\n tablet: !match(amazon_phone, ua) && !match(android_phone, ua) && (match(amazon_tablet, ua) || match(android_tablet, ua)),\n device: match(amazon_phone, ua) || match(amazon_tablet, ua) || match(android_phone, ua) || match(android_tablet, ua)\n };\n this.windows = {\n phone: match(windows_phone, ua),\n tablet: match(windows_tablet, ua),\n device: match(windows_phone, ua) || match(windows_tablet, ua)\n };\n this.other = {\n blackberry: match(other_blackberry, ua),\n blackberry10: match(other_blackberry_10, ua),\n opera: match(other_opera, ua),\n firefox: match(other_firefox, ua),\n chrome: match(other_chrome, ua),\n device: match(other_blackberry, ua) || match(other_blackberry_10, ua) || match(other_opera, ua) || match(other_firefox, ua) || match(other_chrome, ua)\n };\n this.seven_inch = match(seven_inch, ua);\n this.any = this.apple.device || this.android.device || this.windows.device || this.other.device || this.seven_inch;\n\n // excludes 'other' devices and ipods, targeting touchscreen phones\n this.phone = this.apple.phone || this.android.phone || this.windows.phone;\n\n // excludes 7 inch devices, classifying as phone or tablet is left to the user\n this.tablet = this.apple.tablet || this.android.tablet || this.windows.tablet;\n\n if (typeof window === 'undefined') {\n return this;\n }\n };\n\n var instantiate = function() {\n var IM = new IsMobileClass();\n IM.Class = IsMobileClass;\n return IM;\n };\n\n if (typeof module !== 'undefined' && module.exports && typeof window === 'undefined') {\n //node\n module.exports = IsMobileClass;\n } else if (typeof module !== 'undefined' && module.exports && typeof window !== 'undefined') {\n //browserify\n module.exports = instantiate();\n } else if (typeof define === 'function' && define.amd) {\n //AMD\n define('isMobile', [], global.isMobile = instantiate());\n } else {\n global.isMobile = instantiate();\n }\n\n})(this);\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array ? array.length : 0;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nmodule.exports = arrayEach;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isIndex = require('./_isIndex');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n // Safari 9 makes `arguments.length` enumerable in strict mode.\n var result = (isArray(value) || isArguments(value))\n ? baseTimes(value.length, String)\n : [];\n\n var length = result.length,\n skipIndexes = !!length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (key == 'length' || isIndex(key, length)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = array;\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = baseRest;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length &&\n (typeof value == 'number' || reIsUint.test(value)) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var isArrayLikeObject = require('./isArrayLikeObject');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nfunction isArguments(value) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&\n (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n\nmodule.exports = isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","var isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8-9 which returns 'object' for typed array and other constructors.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n\nmodule.exports = isFunction;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n","var baseRest = require('./_baseRest'),\n toInteger = require('./toInteger');\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\nfunction rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined ? start : toInteger(start);\n return baseRest(func, start);\n}\n\nmodule.exports = rest;\n","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","var isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","'use strict';\n/* eslint-disable no-unused-vars */\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (e) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (Object.getOwnPropertySymbols) {\n\t\t\tsymbols = Object.getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes, empty elements, or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n } else if (last === '..') {\n parts.splice(i, 1);\n up++;\n } else if (up) {\n parts.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n}\n\n// Split a filename into [root, dir, basename, ext], unix version\n// 'root' is just a slash, or nothing.\nvar splitPathRe =\n /^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/;\nvar splitPath = function(filename) {\n return splitPathRe.exec(filename).slice(1);\n};\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n var resolvedPath = '',\n resolvedAbsolute = false;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = (i >= 0) ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (typeof path !== 'string') {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n return !!p;\n }), !resolvedAbsolute).join('/');\n\n return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n var isAbsolute = exports.isAbsolute(path),\n trailingSlash = substr(path, -1) === '/';\n\n // Normalize the path\n path = normalizeArray(filter(path.split('/'), function(p) {\n return !!p;\n }), !isAbsolute).join('/');\n\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n var paths = Array.prototype.slice.call(arguments, 0);\n return exports.normalize(filter(paths, function(p, index) {\n if (typeof p !== 'string') {\n throw new TypeError('Arguments to path.join must be strings');\n }\n return p;\n }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n from = exports.resolve(from).substr(1);\n to = exports.resolve(to).substr(1);\n\n function trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') break;\n }\n\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') break;\n }\n\n if (start > end) return [];\n return arr.slice(start, end - start + 1);\n }\n\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function(path) {\n var result = splitPath(path),\n root = result[0],\n dir = result[1];\n\n if (!root && !dir) {\n // No dirname whatsoever\n return '.';\n }\n\n if (dir) {\n // It has a dirname, strip trailing slash\n dir = dir.substr(0, dir.length - 1);\n }\n\n return root + dir;\n};\n\n\nexports.basename = function(path, ext) {\n var f = splitPath(path)[2];\n // TODO: make this comparison case-insensitive on windows?\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\n\n\nexports.extname = function(path) {\n return splitPath(path)[3];\n};\n\nfunction filter (xs, f) {\n if (xs.filter) return xs.filter(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n if (f(xs[i], i, xs)) res.push(xs[i]);\n }\n return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n ? function (str, start, len) { return str.substr(start, len) }\n : function (str, start, len) {\n if (start < 0) start = str.length + start;\n return str.substr(start, len);\n }\n;\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\n(function () {\n try {\n cachedSetTimeout = setTimeout;\n } catch (e) {\n cachedSetTimeout = function () {\n throw new Error('setTimeout is not defined');\n }\n }\n try {\n cachedClearTimeout = clearTimeout;\n } catch (e) {\n cachedClearTimeout = function () {\n throw new Error('clearTimeout is not defined');\n }\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","/*! https://mths.be/punycode v1.4.1 by @mathias */\n;(function(root) {\n\n\t/** Detect free variables */\n\tvar freeExports = typeof exports == 'object' && exports &&\n\t\t!exports.nodeType && exports;\n\tvar freeModule = typeof module == 'object' && module &&\n\t\t!module.nodeType && module;\n\tvar freeGlobal = typeof global == 'object' && global;\n\tif (\n\t\tfreeGlobal.global === freeGlobal ||\n\t\tfreeGlobal.window === freeGlobal ||\n\t\tfreeGlobal.self === freeGlobal\n\t) {\n\t\troot = freeGlobal;\n\t}\n\n\t/**\n\t * The `punycode` object.\n\t * @name punycode\n\t * @type Object\n\t */\n\tvar punycode,\n\n\t/** Highest positive signed 32-bit float value */\n\tmaxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1\n\n\t/** Bootstring parameters */\n\tbase = 36,\n\ttMin = 1,\n\ttMax = 26,\n\tskew = 38,\n\tdamp = 700,\n\tinitialBias = 72,\n\tinitialN = 128, // 0x80\n\tdelimiter = '-', // '\\x2D'\n\n\t/** Regular expressions */\n\tregexPunycode = /^xn--/,\n\tregexNonASCII = /[^\\x20-\\x7E]/, // unprintable ASCII chars + non-ASCII chars\n\tregexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g, // RFC 3490 separators\n\n\t/** Error messages */\n\terrors = {\n\t\t'overflow': 'Overflow: input needs wider integers to process',\n\t\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t\t'invalid-input': 'Invalid input'\n\t},\n\n\t/** Convenience shortcuts */\n\tbaseMinusTMin = base - tMin,\n\tfloor = Math.floor,\n\tstringFromCharCode = String.fromCharCode,\n\n\t/** Temporary variable */\n\tkey;\n\n\t/*--------------------------------------------------------------------------*/\n\n\t/**\n\t * A generic error utility function.\n\t * @private\n\t * @param {String} type The error type.\n\t * @returns {Error} Throws a `RangeError` with the applicable error message.\n\t */\n\tfunction error(type) {\n\t\tthrow new RangeError(errors[type]);\n\t}\n\n\t/**\n\t * A generic `Array#map` utility function.\n\t * @private\n\t * @param {Array} array The array to iterate over.\n\t * @param {Function} callback The function that gets called for every array\n\t * item.\n\t * @returns {Array} A new array of values returned by the callback function.\n\t */\n\tfunction map(array, fn) {\n\t\tvar length = array.length;\n\t\tvar result = [];\n\t\twhile (length--) {\n\t\t\tresult[length] = fn(array[length]);\n\t\t}\n\t\treturn result;\n\t}\n\n\t/**\n\t * A simple `Array#map`-like wrapper to work with domain name strings or email\n\t * addresses.\n\t * @private\n\t * @param {String} domain The domain name or email address.\n\t * @param {Function} callback The function that gets called for every\n\t * character.\n\t * @returns {Array} A new string of characters returned by the callback\n\t * function.\n\t */\n\tfunction mapDomain(string, fn) {\n\t\tvar parts = string.split('@');\n\t\tvar result = '';\n\t\tif (parts.length > 1) {\n\t\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t\t// the local part (i.e. everything up to `@`) intact.\n\t\t\tresult = parts[0] + '@';\n\t\t\tstring = parts[1];\n\t\t}\n\t\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\t\tstring = string.replace(regexSeparators, '\\x2E');\n\t\tvar labels = string.split('.');\n\t\tvar encoded = map(labels, fn).join('.');\n\t\treturn result + encoded;\n\t}\n\n\t/**\n\t * Creates an array containing the numeric code points of each Unicode\n\t * character in the string. While JavaScript uses UCS-2 internally,\n\t * this function will convert a pair of surrogate halves (each of which\n\t * UCS-2 exposes as separate characters) into a single code point,\n\t * matching UTF-16.\n\t * @see `punycode.ucs2.encode`\n\t * @see \n\t * @memberOf punycode.ucs2\n\t * @name decode\n\t * @param {String} string The Unicode input string (UCS-2).\n\t * @returns {Array} The new array of code points.\n\t */\n\tfunction ucs2decode(string) {\n\t\tvar output = [],\n\t\t counter = 0,\n\t\t length = string.length,\n\t\t value,\n\t\t extra;\n\t\twhile (counter < length) {\n\t\t\tvalue = string.charCodeAt(counter++);\n\t\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n\t\t\t\t// high surrogate, and there is a next character\n\t\t\t\textra = string.charCodeAt(counter++);\n\t\t\t\tif ((extra & 0xFC00) == 0xDC00) { // low surrogate\n\t\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n\t\t\t\t} else {\n\t\t\t\t\t// unmatched surrogate; only append this code unit, in case the next\n\t\t\t\t\t// code unit is the high surrogate of a surrogate pair\n\t\t\t\t\toutput.push(value);\n\t\t\t\t\tcounter--;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\toutput.push(value);\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}\n\n\t/**\n\t * Creates a string based on an array of numeric code points.\n\t * @see `punycode.ucs2.decode`\n\t * @memberOf punycode.ucs2\n\t * @name encode\n\t * @param {Array} codePoints The array of numeric code points.\n\t * @returns {String} The new Unicode string (UCS-2).\n\t */\n\tfunction ucs2encode(array) {\n\t\treturn map(array, function(value) {\n\t\t\tvar output = '';\n\t\t\tif (value > 0xFFFF) {\n\t\t\t\tvalue -= 0x10000;\n\t\t\t\toutput += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);\n\t\t\t\tvalue = 0xDC00 | value & 0x3FF;\n\t\t\t}\n\t\t\toutput += stringFromCharCode(value);\n\t\t\treturn output;\n\t\t}).join('');\n\t}\n\n\t/**\n\t * Converts a basic code point into a digit/integer.\n\t * @see `digitToBasic()`\n\t * @private\n\t * @param {Number} codePoint The basic numeric code point value.\n\t * @returns {Number} The numeric value of a basic code point (for use in\n\t * representing integers) in the range `0` to `base - 1`, or `base` if\n\t * the code point does not represent a value.\n\t */\n\tfunction basicToDigit(codePoint) {\n\t\tif (codePoint - 48 < 10) {\n\t\t\treturn codePoint - 22;\n\t\t}\n\t\tif (codePoint - 65 < 26) {\n\t\t\treturn codePoint - 65;\n\t\t}\n\t\tif (codePoint - 97 < 26) {\n\t\t\treturn codePoint - 97;\n\t\t}\n\t\treturn base;\n\t}\n\n\t/**\n\t * Converts a digit/integer into a basic code point.\n\t * @see `basicToDigit()`\n\t * @private\n\t * @param {Number} digit The numeric value of a basic code point.\n\t * @returns {Number} The basic code point whose value (when used for\n\t * representing integers) is `digit`, which needs to be in the range\n\t * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n\t * used; else, the lowercase form is used. The behavior is undefined\n\t * if `flag` is non-zero and `digit` has no uppercase form.\n\t */\n\tfunction digitToBasic(digit, flag) {\n\t\t// 0..25 map to ASCII a..z or A..Z\n\t\t// 26..35 map to ASCII 0..9\n\t\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n\t}\n\n\t/**\n\t * Bias adaptation function as per section 3.4 of RFC 3492.\n\t * https://tools.ietf.org/html/rfc3492#section-3.4\n\t * @private\n\t */\n\tfunction adapt(delta, numPoints, firstTime) {\n\t\tvar k = 0;\n\t\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\n\t\tdelta += floor(delta / numPoints);\n\t\tfor (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\n\t\t\tdelta = floor(delta / baseMinusTMin);\n\t\t}\n\t\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n\t}\n\n\t/**\n\t * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n\t * symbols.\n\t * @memberOf punycode\n\t * @param {String} input The Punycode string of ASCII-only symbols.\n\t * @returns {String} The resulting string of Unicode symbols.\n\t */\n\tfunction decode(input) {\n\t\t// Don't use UCS-2\n\t\tvar output = [],\n\t\t inputLength = input.length,\n\t\t out,\n\t\t i = 0,\n\t\t n = initialN,\n\t\t bias = initialBias,\n\t\t basic,\n\t\t j,\n\t\t index,\n\t\t oldi,\n\t\t w,\n\t\t k,\n\t\t digit,\n\t\t t,\n\t\t /** Cached calculation results */\n\t\t baseMinusT;\n\n\t\t// Handle the basic code points: let `basic` be the number of input code\n\t\t// points before the last delimiter, or `0` if there is none, then copy\n\t\t// the first basic code points to the output.\n\n\t\tbasic = input.lastIndexOf(delimiter);\n\t\tif (basic < 0) {\n\t\t\tbasic = 0;\n\t\t}\n\n\t\tfor (j = 0; j < basic; ++j) {\n\t\t\t// if it's not a basic code point\n\t\t\tif (input.charCodeAt(j) >= 0x80) {\n\t\t\t\terror('not-basic');\n\t\t\t}\n\t\t\toutput.push(input.charCodeAt(j));\n\t\t}\n\n\t\t// Main decoding loop: start just after the last delimiter if any basic code\n\t\t// points were copied; start at the beginning otherwise.\n\n\t\tfor (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\n\n\t\t\t// `index` is the index of the next character to be consumed.\n\t\t\t// Decode a generalized variable-length integer into `delta`,\n\t\t\t// which gets added to `i`. The overflow checking is easier\n\t\t\t// if we increase `i` as we go, then subtract off its starting\n\t\t\t// value at the end to obtain `delta`.\n\t\t\tfor (oldi = i, w = 1, k = base; /* no condition */; k += base) {\n\n\t\t\t\tif (index >= inputLength) {\n\t\t\t\t\terror('invalid-input');\n\t\t\t\t}\n\n\t\t\t\tdigit = basicToDigit(input.charCodeAt(index++));\n\n\t\t\t\tif (digit >= base || digit > floor((maxInt - i) / w)) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\ti += digit * w;\n\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\n\t\t\t\tif (digit < t) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tbaseMinusT = base - t;\n\t\t\t\tif (w > floor(maxInt / baseMinusT)) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\tw *= baseMinusT;\n\n\t\t\t}\n\n\t\t\tout = output.length + 1;\n\t\t\tbias = adapt(i - oldi, out, oldi == 0);\n\n\t\t\t// `i` was supposed to wrap around from `out` to `0`,\n\t\t\t// incrementing `n` each time, so we'll fix that now:\n\t\t\tif (floor(i / out) > maxInt - n) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tn += floor(i / out);\n\t\t\ti %= out;\n\n\t\t\t// Insert `n` at position `i` of the output\n\t\t\toutput.splice(i++, 0, n);\n\n\t\t}\n\n\t\treturn ucs2encode(output);\n\t}\n\n\t/**\n\t * Converts a string of Unicode symbols (e.g. a domain name label) to a\n\t * Punycode string of ASCII-only symbols.\n\t * @memberOf punycode\n\t * @param {String} input The string of Unicode symbols.\n\t * @returns {String} The resulting Punycode string of ASCII-only symbols.\n\t */\n\tfunction encode(input) {\n\t\tvar n,\n\t\t delta,\n\t\t handledCPCount,\n\t\t basicLength,\n\t\t bias,\n\t\t j,\n\t\t m,\n\t\t q,\n\t\t k,\n\t\t t,\n\t\t currentValue,\n\t\t output = [],\n\t\t /** `inputLength` will hold the number of code points in `input`. */\n\t\t inputLength,\n\t\t /** Cached calculation results */\n\t\t handledCPCountPlusOne,\n\t\t baseMinusT,\n\t\t qMinusT;\n\n\t\t// Convert the input in UCS-2 to Unicode\n\t\tinput = ucs2decode(input);\n\n\t\t// Cache the length\n\t\tinputLength = input.length;\n\n\t\t// Initialize the state\n\t\tn = initialN;\n\t\tdelta = 0;\n\t\tbias = initialBias;\n\n\t\t// Handle the basic code points\n\t\tfor (j = 0; j < inputLength; ++j) {\n\t\t\tcurrentValue = input[j];\n\t\t\tif (currentValue < 0x80) {\n\t\t\t\toutput.push(stringFromCharCode(currentValue));\n\t\t\t}\n\t\t}\n\n\t\thandledCPCount = basicLength = output.length;\n\n\t\t// `handledCPCount` is the number of code points that have been handled;\n\t\t// `basicLength` is the number of basic code points.\n\n\t\t// Finish the basic string - if it is not empty - with a delimiter\n\t\tif (basicLength) {\n\t\t\toutput.push(delimiter);\n\t\t}\n\n\t\t// Main encoding loop:\n\t\twhile (handledCPCount < inputLength) {\n\n\t\t\t// All non-basic code points < n have been handled already. Find the next\n\t\t\t// larger one:\n\t\t\tfor (m = maxInt, j = 0; j < inputLength; ++j) {\n\t\t\t\tcurrentValue = input[j];\n\t\t\t\tif (currentValue >= n && currentValue < m) {\n\t\t\t\t\tm = currentValue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Increase `delta` enough to advance the decoder's state to ,\n\t\t\t// but guard against overflow\n\t\t\thandledCPCountPlusOne = handledCPCount + 1;\n\t\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tdelta += (m - n) * handledCPCountPlusOne;\n\t\t\tn = m;\n\n\t\t\tfor (j = 0; j < inputLength; ++j) {\n\t\t\t\tcurrentValue = input[j];\n\n\t\t\t\tif (currentValue < n && ++delta > maxInt) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\tif (currentValue == n) {\n\t\t\t\t\t// Represent delta as a generalized variable-length integer\n\t\t\t\t\tfor (q = delta, k = base; /* no condition */; k += base) {\n\t\t\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\t\t\t\t\t\tif (q < t) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tqMinusT = q - t;\n\t\t\t\t\t\tbaseMinusT = base - t;\n\t\t\t\t\t\toutput.push(\n\t\t\t\t\t\t\tstringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\n\t\t\t\t\t\t);\n\t\t\t\t\t\tq = floor(qMinusT / baseMinusT);\n\t\t\t\t\t}\n\n\t\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\n\t\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n\t\t\t\t\tdelta = 0;\n\t\t\t\t\t++handledCPCount;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t++delta;\n\t\t\t++n;\n\n\t\t}\n\t\treturn output.join('');\n\t}\n\n\t/**\n\t * Converts a Punycode string representing a domain name or an email address\n\t * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n\t * it doesn't matter if you call it on a string that has already been\n\t * converted to Unicode.\n\t * @memberOf punycode\n\t * @param {String} input The Punycoded domain name or email address to\n\t * convert to Unicode.\n\t * @returns {String} The Unicode representation of the given Punycode\n\t * string.\n\t */\n\tfunction toUnicode(input) {\n\t\treturn mapDomain(input, function(string) {\n\t\t\treturn regexPunycode.test(string)\n\t\t\t\t? decode(string.slice(4).toLowerCase())\n\t\t\t\t: string;\n\t\t});\n\t}\n\n\t/**\n\t * Converts a Unicode string representing a domain name or an email address to\n\t * Punycode. Only the non-ASCII parts of the domain name will be converted,\n\t * i.e. it doesn't matter if you call it with a domain that's already in\n\t * ASCII.\n\t * @memberOf punycode\n\t * @param {String} input The domain name or email address to convert, as a\n\t * Unicode string.\n\t * @returns {String} The Punycode representation of the given domain name or\n\t * email address.\n\t */\n\tfunction toASCII(input) {\n\t\treturn mapDomain(input, function(string) {\n\t\t\treturn regexNonASCII.test(string)\n\t\t\t\t? 'xn--' + encode(string)\n\t\t\t\t: string;\n\t\t});\n\t}\n\n\t/*--------------------------------------------------------------------------*/\n\n\t/** Define the public API */\n\tpunycode = {\n\t\t/**\n\t\t * A string representing the current Punycode.js version number.\n\t\t * @memberOf punycode\n\t\t * @type String\n\t\t */\n\t\t'version': '1.4.1',\n\t\t/**\n\t\t * An object of methods to convert from JavaScript's internal character\n\t\t * representation (UCS-2) to Unicode code points, and back.\n\t\t * @see \n\t\t * @memberOf punycode\n\t\t * @type Object\n\t\t */\n\t\t'ucs2': {\n\t\t\t'decode': ucs2decode,\n\t\t\t'encode': ucs2encode\n\t\t},\n\t\t'decode': decode,\n\t\t'encode': encode,\n\t\t'toASCII': toASCII,\n\t\t'toUnicode': toUnicode\n\t};\n\n\t/** Expose `punycode` */\n\t// Some AMD build optimizers, like r.js, check for specific condition patterns\n\t// like the following:\n\tif (\n\t\ttypeof define == 'function' &&\n\t\ttypeof define.amd == 'object' &&\n\t\tdefine.amd\n\t) {\n\t\tdefine('punycode', function() {\n\t\t\treturn punycode;\n\t\t});\n\t} else if (freeExports && freeModule) {\n\t\tif (module.exports == freeExports) {\n\t\t\t// in Node.js, io.js, or RingoJS v0.8.0+\n\t\t\tfreeModule.exports = punycode;\n\t\t} else {\n\t\t\t// in Narwhal or RingoJS v0.7.0-\n\t\t\tfor (key in punycode) {\n\t\t\t\tpunycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);\n\t\t\t}\n\t\t}\n\t} else {\n\t\t// in Rhino or a web browser\n\t\troot.punycode = punycode;\n\t}\n\n}(this));\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n// If obj.hasOwnProperty has been overridden, then calling\n// obj.hasOwnProperty(prop) will break.\n// See: https://github.com/joyent/node/issues/1707\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nmodule.exports = function(qs, sep, eq, options) {\n sep = sep || '&';\n eq = eq || '=';\n var obj = {};\n\n if (typeof qs !== 'string' || qs.length === 0) {\n return obj;\n }\n\n var regexp = /\\+/g;\n qs = qs.split(sep);\n\n var maxKeys = 1000;\n if (options && typeof options.maxKeys === 'number') {\n maxKeys = options.maxKeys;\n }\n\n var len = qs.length;\n // maxKeys <= 0 means that we should not limit keys count\n if (maxKeys > 0 && len > maxKeys) {\n len = maxKeys;\n }\n\n for (var i = 0; i < len; ++i) {\n var x = qs[i].replace(regexp, '%20'),\n idx = x.indexOf(eq),\n kstr, vstr, k, v;\n\n if (idx >= 0) {\n kstr = x.substr(0, idx);\n vstr = x.substr(idx + 1);\n } else {\n kstr = x;\n vstr = '';\n }\n\n k = decodeURIComponent(kstr);\n v = decodeURIComponent(vstr);\n\n if (!hasOwnProperty(obj, k)) {\n obj[k] = v;\n } else if (isArray(obj[k])) {\n obj[k].push(v);\n } else {\n obj[k] = [obj[k], v];\n }\n }\n\n return obj;\n};\n\nvar isArray = Array.isArray || function (xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar stringifyPrimitive = function(v) {\n switch (typeof v) {\n case 'string':\n return v;\n\n case 'boolean':\n return v ? 'true' : 'false';\n\n case 'number':\n return isFinite(v) ? v : '';\n\n default:\n return '';\n }\n};\n\nmodule.exports = function(obj, sep, eq, name) {\n sep = sep || '&';\n eq = eq || '=';\n if (obj === null) {\n obj = undefined;\n }\n\n if (typeof obj === 'object') {\n return map(objectKeys(obj), function(k) {\n var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\n if (isArray(obj[k])) {\n return map(obj[k], function(v) {\n return ks + encodeURIComponent(stringifyPrimitive(v));\n }).join(sep);\n } else {\n return ks + encodeURIComponent(stringifyPrimitive(obj[k]));\n }\n }).join(sep);\n\n }\n\n if (!name) return '';\n return encodeURIComponent(stringifyPrimitive(name)) + eq +\n encodeURIComponent(stringifyPrimitive(obj));\n};\n\nvar isArray = Array.isArray || function (xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\n\nfunction map (xs, f) {\n if (xs.map) return xs.map(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n res.push(f(xs[i], i));\n }\n return res;\n}\n\nvar objectKeys = Object.keys || function (obj) {\n var res = [];\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);\n }\n return res;\n};\n","'use strict';\n\nexports.decode = exports.parse = require('./decode');\nexports.encode = exports.stringify = require('./encode');\n","'use strict';\n\nvar asyncQueue = require('async/queue');\nvar asyncEachSeries = require('async/eachSeries');\nvar urlParser = require('url');\nvar Resource = require('./Resource');\nvar EventEmitter = require('eventemitter3');\n\n// some constants\nvar DEFAULT_CONCURRENCY = 10;\nvar MAX_PROGRESS = 100;\n\n/**\n * Manages the state and loading of multiple resources to load.\n *\n * @class\n * @param {string} [baseUrl=''] - The base url for all resources loaded by this loader.\n * @param {number} [concurrency=10] - The number of resources to load concurrently.\n */\nfunction Loader(baseUrl, concurrency) {\n EventEmitter.call(this);\n\n concurrency = concurrency || DEFAULT_CONCURRENCY;\n\n /**\n * The base url for all resources loaded by this loader.\n *\n * @member {string}\n */\n this.baseUrl = baseUrl || '';\n\n /**\n * The progress percent of the loader going through the queue.\n *\n * @member {number}\n */\n this.progress = 0;\n\n /**\n * Loading state of the loader, true if it is currently loading resources.\n *\n * @member {boolean}\n */\n this.loading = false;\n\n /**\n * The percentage of total progress that a single resource represents.\n *\n * @member {number}\n */\n this._progressChunk = 0;\n\n /**\n * The middleware to run before loading each resource.\n *\n * @member {function[]}\n */\n this._beforeMiddleware = [];\n\n /**\n * The middleware to run after loading each resource.\n *\n * @member {function[]}\n */\n this._afterMiddleware = [];\n\n /**\n * The `_loadResource` function bound with this object context.\n *\n * @private\n * @member {function}\n */\n this._boundLoadResource = this._loadResource.bind(this);\n\n /**\n * The resource buffer that fills until `load` is called to start loading resources.\n *\n * @private\n * @member {Resource[]}\n */\n this._buffer = [];\n\n /**\n * Used to track load completion.\n *\n * @private\n * @member {number}\n */\n this._numToLoad = 0;\n\n /**\n * The resources waiting to be loaded.\n *\n * @private\n * @member {Resource[]}\n */\n this._queue = asyncQueue(this._boundLoadResource, concurrency);\n\n /**\n * All the resources for this loader keyed by name.\n *\n * @member {object}\n */\n this.resources = {};\n\n /**\n * Emitted once per loaded or errored resource.\n *\n * @event progress\n * @memberof Loader#\n */\n\n /**\n * Emitted once per errored resource.\n *\n * @event error\n * @memberof Loader#\n */\n\n /**\n * Emitted once per loaded resource.\n *\n * @event load\n * @memberof Loader#\n */\n\n /**\n * Emitted when the loader begins to process the queue.\n *\n * @event start\n * @memberof Loader#\n */\n\n /**\n * Emitted when the queued resources all load.\n *\n * @event complete\n * @memberof Loader#\n */\n}\n\nLoader.prototype = Object.create(EventEmitter.prototype);\nLoader.prototype.constructor = Loader;\nmodule.exports = Loader;\n\n/**\n * Adds a resource (or multiple resources) to the loader queue.\n *\n * This function can take a wide variety of different parameters. The only thing that is always\n * required the url to load. All the following will work:\n *\n * ```js\n * loader\n * // normal param syntax\n * .add('key', 'http://...', function () {})\n * .add('http://...', function () {})\n * .add('http://...')\n *\n * // object syntax\n * .add({\n * name: 'key2',\n * url: 'http://...'\n * }, function () {})\n * .add({\n * url: 'http://...'\n * }, function () {})\n * .add({\n * name: 'key3',\n * url: 'http://...'\n * onComplete: function () {}\n * })\n * .add({\n * url: 'https://...',\n * onComplete: function () {},\n * crossOrigin: true\n * })\n *\n * // you can also pass an array of objects or urls or both\n * .add([\n * { name: 'key4', url: 'http://...', onComplete: function () {} },\n * { url: 'http://...', onComplete: function () {} },\n * 'http://...'\n * ])\n *\n * // and you can use both params and options\n * .add('key', 'http://...', { crossOrigin: true }, function () {})\n * .add('http://...', { crossOrigin: true }, function () {});\n * ```\n *\n * @alias enqueue\n * @param {string} [name] - The name of the resource to load, if not passed the url is used.\n * @param {string} [url] - The url for this resource, relative to the baseUrl of this loader.\n * @param {object} [options] - The options for the load.\n * @param {boolean} [options.crossOrigin] - Is this request cross-origin? Default is to determine automatically.\n * @param {Resource.XHR_LOAD_TYPE} [options.loadType=Resource.LOAD_TYPE.XHR] - How should this resource be loaded?\n * @param {Resource.XHR_RESPONSE_TYPE} [options.xhrType=Resource.XHR_RESPONSE_TYPE.DEFAULT] - How should the data being\n * loaded be interpreted when using XHR?\n * @param {function} [cb] - Function to call when this specific resource completes loading.\n * @return {Loader} Returns itself.\n */\nLoader.prototype.add = Loader.prototype.enqueue = function (name, url, options, cb) {\n // special case of an array of objects or urls\n if (Array.isArray(name)) {\n for (var i = 0; i < name.length; ++i) {\n this.add(name[i]);\n }\n\n return this;\n }\n\n // if an object is passed instead of params\n if (typeof name === 'object') {\n cb = url || name.callback || name.onComplete;\n options = name;\n url = name.url;\n name = name.name || name.key || name.url;\n }\n\n // case where no name is passed shift all args over by one.\n if (typeof url !== 'string') {\n cb = options;\n options = url;\n url = name;\n }\n\n // now that we shifted make sure we have a proper url.\n if (typeof url !== 'string') {\n throw new Error('No url passed to add resource to loader.');\n }\n\n // options are optional so people might pass a function and no options\n if (typeof options === 'function') {\n cb = options;\n options = null;\n }\n\n // check if resource already exists.\n if (this.resources[name]) {\n throw new Error('Resource with name \"' + name + '\" already exists.');\n }\n\n // add base url if this isn't an absolute url\n url = this._prepareUrl(url);\n\n // create the store the resource\n this.resources[name] = new Resource(name, url, options);\n\n if (typeof cb === 'function') {\n this.resources[name].once('afterMiddleware', cb);\n }\n\n this._numToLoad++;\n\n // if already loading add it to the worker queue\n if (this._queue.started) {\n this._queue.push(this.resources[name]);\n this._progressChunk = (MAX_PROGRESS - this.progress) / (this._queue.length() + this._queue.running());\n }\n // otherwise buffer it to be added to the queue later\n else {\n this._buffer.push(this.resources[name]);\n this._progressChunk = MAX_PROGRESS / this._buffer.length;\n }\n\n return this;\n};\n\n/**\n * Sets up a middleware function that will run *before* the\n * resource is loaded.\n *\n * @alias pre\n * @method before\n * @param {function} fn - The middleware function to register.\n * @return {Loader} Returns itself.\n */\nLoader.prototype.before = Loader.prototype.pre = function (fn) {\n this._beforeMiddleware.push(fn);\n\n return this;\n};\n\n/**\n * Sets up a middleware function that will run *after* the\n * resource is loaded.\n *\n * @alias use\n * @method after\n * @param {function} fn - The middleware function to register.\n * @return {Loader} Returns itself.\n */\nLoader.prototype.after = Loader.prototype.use = function (fn) {\n this._afterMiddleware.push(fn);\n\n return this;\n};\n\n/**\n * Resets the queue of the loader to prepare for a new load.\n *\n * @return {Loader} Returns itself.\n */\nLoader.prototype.reset = function () {\n // this.baseUrl = baseUrl || '';\n\n this.progress = 0;\n\n this.loading = false;\n\n this._progressChunk = 0;\n\n // this._beforeMiddleware.length = 0;\n // this._afterMiddleware.length = 0;\n\n this._buffer.length = 0;\n\n this._numToLoad = 0;\n\n this._queue.kill();\n this._queue.started = false;\n\n // abort all resource loads\n for (var k in this.resources) {\n var res = this.resources[k];\n\n res.off('complete', this._onLoad, this);\n\n if (res.isLoading) {\n res.abort();\n }\n }\n\n this.resources = {};\n\n return this;\n};\n\n/**\n * Starts loading the queued resources.\n *\n * @fires start\n * @param {function} [cb] - Optional callback that will be bound to the `complete` event.\n * @return {Loader} Returns itself.\n */\nLoader.prototype.load = function (cb) {\n // register complete callback if they pass one\n if (typeof cb === 'function') {\n this.once('complete', cb);\n }\n\n // if the queue has already started we are done here\n if (this._queue.started) {\n return this;\n }\n\n // notify of start\n this.emit('start', this);\n\n // update loading state\n this.loading = true;\n\n // start the internal queue\n for (var i = 0; i < this._buffer.length; ++i) {\n this._queue.push(this._buffer[i]);\n }\n\n // empty the buffer\n this._buffer.length = 0;\n\n return this;\n};\n\n/**\n * Prepares a url for usage based on the configuration of this object\n *\n * @private\n * @param {string} url - The url to prepare.\n * @return {string} The prepared url.\n */\nLoader.prototype._prepareUrl = function (url) {\n var parsedUrl = urlParser.parse(url);\n\n // absolute url, just use it as is.\n if (parsedUrl.protocol || !parsedUrl.pathname || parsedUrl.pathname.indexOf('//') === 0) {\n return url;\n }\n\n // if baseUrl doesn't end in slash and url doesn't start with slash, then add a slash inbetween\n if (this.baseUrl.length\n && this.baseUrl.lastIndexOf('/') !== this.baseUrl.length - 1\n && url.charAt(0) !== '/'\n ) {\n return this.baseUrl + '/' + url;\n }\n\n return this.baseUrl + url;\n};\n\n/**\n * Loads a single resource.\n *\n * @private\n * @param {Resource} resource - The resource to load.\n * @param {function} dequeue - The function to call when we need to dequeue this item.\n */\nLoader.prototype._loadResource = function (resource, dequeue) {\n var self = this;\n\n resource._dequeue = dequeue;\n\n // run before middleware\n asyncEachSeries(\n this._beforeMiddleware,\n function (fn, next) {\n fn.call(self, resource, function () {\n // if the before middleware marks the resource as complete,\n // break and don't process any more before middleware\n next(resource.isComplete ? {} : null);\n });\n },\n function () {\n // resource.on('progress', self.emit.bind(self, 'progress'));\n\n if (resource.isComplete) {\n self._onLoad(resource);\n }\n else {\n resource.once('complete', self._onLoad, self);\n resource.load();\n }\n }\n );\n};\n\n/**\n * Called once each resource has loaded.\n *\n * @fires complete\n * @private\n */\nLoader.prototype._onComplete = function () {\n this.loading = false;\n\n this.emit('complete', this, this.resources);\n};\n\n/**\n * Called each time a resources is loaded.\n *\n * @fires progress\n * @fires error\n * @fires load\n * @private\n * @param {Resource} resource - The resource that was loaded\n */\nLoader.prototype._onLoad = function (resource) {\n var self = this;\n\n // run middleware, this *must* happen before dequeue so sub-assets get added properly\n asyncEachSeries(\n this._afterMiddleware,\n function (fn, next) {\n fn.call(self, resource, next);\n },\n function () {\n resource.emit('afterMiddleware', resource);\n\n self._numToLoad--;\n\n self.progress += self._progressChunk;\n self.emit('progress', self, resource);\n\n if (resource.error) {\n self.emit('error', resource.error, self, resource);\n }\n else {\n self.emit('load', self, resource);\n }\n\n // do completion check\n if (self._numToLoad === 0) {\n self.progress = 100;\n self._onComplete();\n }\n }\n );\n\n // remove this resource from the async queue\n resource._dequeue();\n};\n\nLoader.LOAD_TYPE = Resource.LOAD_TYPE;\nLoader.XHR_RESPONSE_TYPE = Resource.XHR_RESPONSE_TYPE;\n","'use strict';\n\nvar EventEmitter = require('eventemitter3');\nvar _url = require('url');\n\n// tests is CORS is supported in XHR, if not we need to use XDR\nvar useXdr = !!(window.XDomainRequest && !('withCredentials' in (new XMLHttpRequest())));\nvar tempAnchor = null;\n\n// some status constants\nvar STATUS_NONE = 0;\nvar STATUS_OK = 200;\nvar STATUS_EMPTY = 204;\n\n/**\n * Manages the state and loading of a single resource represented by\n * a single URL.\n *\n * @class\n * @param {string} name - The name of the resource to load.\n * @param {string|string[]} url - The url for this resource, for audio/video loads you can pass an array of sources.\n * @param {object} [options] - The options for the load.\n * @param {string|boolean} [options.crossOrigin] - Is this request cross-origin? Default is to determine automatically.\n * @param {Resource.LOAD_TYPE} [options.loadType=Resource.LOAD_TYPE.XHR] - How should this resource be loaded?\n * @param {Resource.XHR_RESPONSE_TYPE} [options.xhrType=Resource.XHR_RESPONSE_TYPE.DEFAULT] - How should the data being\n * loaded be interpreted when using XHR?\n * @param {object} [options.metadata] - Extra info for middleware.\n */\nfunction Resource(name, url, options) {\n EventEmitter.call(this);\n\n options = options || {};\n\n if (typeof name !== 'string' || typeof url !== 'string') {\n throw new Error('Both name and url are required for constructing a resource.');\n }\n\n /**\n * The name of this resource.\n *\n * @member {string}\n * @readonly\n */\n this.name = name;\n\n /**\n * The url used to load this resource.\n *\n * @member {string}\n * @readonly\n */\n this.url = url;\n\n /**\n * Stores whether or not this url is a data url.\n *\n * @member {boolean}\n * @readonly\n */\n this.isDataUrl = this.url.indexOf('data:') === 0;\n\n /**\n * The data that was loaded by the resource.\n *\n * @member {any}\n */\n this.data = null;\n\n /**\n * Is this request cross-origin? If unset, determined automatically.\n *\n * @member {string}\n */\n this.crossOrigin = options.crossOrigin === true ? 'anonymous' : options.crossOrigin;\n\n /**\n * The method of loading to use for this resource.\n *\n * @member {Resource.LOAD_TYPE}\n */\n this.loadType = options.loadType || this._determineLoadType();\n\n /**\n * The type used to load the resource via XHR. If unset, determined automatically.\n *\n * @member {string}\n */\n this.xhrType = options.xhrType;\n\n /**\n * Extra info for middleware, and controlling specifics about how the resource loads.\n *\n * Note that if you pass in a `loadElement`, the Resource class takes ownership of it.\n * Meaning it will modify it as it sees fit.\n *\n * @member {object}\n * @property {HTMLImageElement|HTMLAudioElement|HTMLVideoElement} [loadElement=null] - The\n * element to use for loading, instead of creating one.\n * @property {boolean} [skipSource=false] - Skips adding source(s) to the load element. This\n * is useful if you want to pass in a `loadElement` that you already added load sources\n * to.\n */\n this.metadata = options.metadata || {};\n\n /**\n * The error that occurred while loading (if any).\n *\n * @member {Error}\n * @readonly\n */\n this.error = null;\n\n /**\n * The XHR object that was used to load this resource. This is only set\n * when `loadType` is `Resource.LOAD_TYPE.XHR`.\n *\n * @member {XMLHttpRequest}\n */\n this.xhr = null;\n\n /**\n * Describes if this resource was loaded as json. Only valid after the resource\n * has completely loaded.\n *\n * @member {boolean}\n */\n this.isJson = false;\n\n /**\n * Describes if this resource was loaded as xml. Only valid after the resource\n * has completely loaded.\n *\n * @member {boolean}\n */\n this.isXml = false;\n\n /**\n * Describes if this resource was loaded as an image tag. Only valid after the resource\n * has completely loaded.\n *\n * @member {boolean}\n */\n this.isImage = false;\n\n /**\n * Describes if this resource was loaded as an audio tag. Only valid after the resource\n * has completely loaded.\n *\n * @member {boolean}\n */\n this.isAudio = false;\n\n /**\n * Describes if this resource was loaded as a video tag. Only valid after the resource\n * has completely loaded.\n *\n * @member {boolean}\n */\n this.isVideo = false;\n\n /**\n * Describes if this resource has finished loading. Is true when the resource has completely\n * loaded.\n *\n * @member {boolean}\n */\n this.isComplete = false;\n\n /**\n * Describes if this resource is currently loading. Is true when the resource starts loading,\n * and is false again when complete.\n *\n * @member {boolean}\n */\n this.isLoading = false;\n\n /**\n * The `dequeue` method that will be used a storage place for the async queue dequeue method\n * used privately by the loader.\n *\n * @private\n * @member {function}\n */\n this._dequeue = null;\n\n /**\n * The `complete` function bound to this resource's context.\n *\n * @private\n * @member {function}\n */\n this._boundComplete = this.complete.bind(this);\n\n /**\n * The `_onError` function bound to this resource's context.\n *\n * @private\n * @member {function}\n */\n this._boundOnError = this._onError.bind(this);\n\n /**\n * The `_onProgress` function bound to this resource's context.\n *\n * @private\n * @member {function}\n */\n this._boundOnProgress = this._onProgress.bind(this);\n\n // xhr callbacks\n this._boundXhrOnError = this._xhrOnError.bind(this);\n this._boundXhrOnAbort = this._xhrOnAbort.bind(this);\n this._boundXhrOnLoad = this._xhrOnLoad.bind(this);\n this._boundXdrOnTimeout = this._xdrOnTimeout.bind(this);\n\n /**\n * Emitted when the resource beings to load.\n *\n * @event start\n * @memberof Resource#\n */\n\n /**\n * Emitted each time progress of this resource load updates.\n * Not all resources types and loader systems can support this event\n * so sometimes it may not be available. If the resource\n * is being loaded on a modern browser, using XHR, and the remote server\n * properly sets Content-Length headers, then this will be available.\n *\n * @event progress\n * @memberof Resource#\n */\n\n /**\n * Emitted once this resource has loaded, if there was an error it will\n * be in the `error` property.\n *\n * @event complete\n * @memberof Resource#\n */\n}\n\nResource.prototype = Object.create(EventEmitter.prototype);\nResource.prototype.constructor = Resource;\nmodule.exports = Resource;\n\n/**\n * Marks the resource as complete.\n *\n * @fires complete\n */\nResource.prototype.complete = function () {\n // TODO: Clean this up in a wrapper or something...gross....\n if (this.data && this.data.removeEventListener) {\n this.data.removeEventListener('error', this._boundOnError, false);\n this.data.removeEventListener('load', this._boundComplete, false);\n this.data.removeEventListener('progress', this._boundOnProgress, false);\n this.data.removeEventListener('canplaythrough', this._boundComplete, false);\n }\n\n if (this.xhr) {\n if (this.xhr.removeEventListener) {\n this.xhr.removeEventListener('error', this._boundXhrOnError, false);\n this.xhr.removeEventListener('abort', this._boundXhrOnAbort, false);\n this.xhr.removeEventListener('progress', this._boundOnProgress, false);\n this.xhr.removeEventListener('load', this._boundXhrOnLoad, false);\n }\n else {\n this.xhr.onerror = null;\n this.xhr.ontimeout = null;\n this.xhr.onprogress = null;\n this.xhr.onload = null;\n }\n }\n\n if (this.isComplete) {\n throw new Error('Complete called again for an already completed resource.');\n }\n\n this.isComplete = true;\n this.isLoading = false;\n\n this.emit('complete', this);\n};\n\n/**\n * Aborts the loading of this resource, with an optional message.\n *\n * @param {string} message - The message to use for the error\n */\nResource.prototype.abort = function (message) {\n // abort can be called multiple times, ignore subsequent calls.\n if (this.error) {\n return;\n }\n\n // store error\n this.error = new Error(message);\n\n // abort the actual loading\n if (this.xhr) {\n this.xhr.abort();\n }\n else if (this.xdr) {\n this.xdr.abort();\n }\n else if (this.data) {\n // single source\n if (typeof this.data.src !== 'undefined') {\n this.data.src = '';\n }\n // multi-source\n else {\n while (this.data.firstChild) {\n this.data.removeChild(this.data.firstChild);\n }\n }\n }\n\n // done now.\n this.complete();\n};\n\n/**\n * Kicks off loading of this resource. This method is asynchronous.\n *\n * @fires start\n * @param {function} [cb] - Optional callback to call once the resource is loaded.\n */\nResource.prototype.load = function (cb) {\n if (this.isLoading) {\n return;\n }\n\n if (this.isComplete) {\n if (cb) {\n var self = this;\n\n setTimeout(function () {\n cb(self);\n }, 1);\n }\n\n return;\n }\n else if (cb) {\n this.once('complete', cb);\n }\n\n this.isLoading = true;\n\n this.emit('start', this);\n\n // if unset, determine the value\n if (this.crossOrigin === false || typeof this.crossOrigin !== 'string') {\n this.crossOrigin = this._determineCrossOrigin(this.url);\n }\n\n switch (this.loadType) {\n case Resource.LOAD_TYPE.IMAGE:\n this._loadElement('image');\n break;\n\n case Resource.LOAD_TYPE.AUDIO:\n this._loadSourceElement('audio');\n break;\n\n case Resource.LOAD_TYPE.VIDEO:\n this._loadSourceElement('video');\n break;\n\n case Resource.LOAD_TYPE.XHR:\n /* falls through */\n default:\n if (useXdr && this.crossOrigin) {\n this._loadXdr();\n }\n else {\n this._loadXhr();\n }\n break;\n }\n};\n\n/**\n * Loads this resources using an element that has a single source,\n * like an HTMLImageElement.\n *\n * @private\n * @param {string} type - The type of element to use.\n */\nResource.prototype._loadElement = function (type) {\n if (this.metadata.loadElement) {\n this.data = this.metadata.loadElement;\n }\n else if (type === 'image' && typeof window.Image !== 'undefined') {\n this.data = new Image();\n }\n else {\n this.data = document.createElement(type);\n }\n\n if (this.crossOrigin) {\n this.data.crossOrigin = this.crossOrigin;\n }\n\n if (!this.metadata.skipSource) {\n this.data.src = this.url;\n }\n\n var typeName = 'is' + type[0].toUpperCase() + type.substring(1);\n\n if (this[typeName] === false) {\n this[typeName] = true;\n }\n\n this.data.addEventListener('error', this._boundOnError, false);\n this.data.addEventListener('load', this._boundComplete, false);\n this.data.addEventListener('progress', this._boundOnProgress, false);\n};\n\n/**\n * Loads this resources using an element that has multiple sources,\n * like an HTMLAudioElement or HTMLVideoElement.\n *\n * @private\n * @param {string} type - The type of element to use.\n */\nResource.prototype._loadSourceElement = function (type) {\n if (this.metadata.loadElement) {\n this.data = this.metadata.loadElement;\n }\n else if (type === 'audio' && typeof window.Audio !== 'undefined') {\n this.data = new Audio();\n }\n else {\n this.data = document.createElement(type);\n }\n\n if (this.data === null) {\n this.abort('Unsupported element ' + type);\n\n return;\n }\n\n if (!this.metadata.skipSource) {\n // support for CocoonJS Canvas+ runtime, lacks document.createElement('source')\n if (navigator.isCocoonJS) {\n this.data.src = Array.isArray(this.url) ? this.url[0] : this.url;\n }\n else if (Array.isArray(this.url)) {\n for (var i = 0; i < this.url.length; ++i) {\n this.data.appendChild(this._createSource(type, this.url[i]));\n }\n }\n else {\n this.data.appendChild(this._createSource(type, this.url));\n }\n }\n\n this['is' + type[0].toUpperCase() + type.substring(1)] = true;\n\n this.data.addEventListener('error', this._boundOnError, false);\n this.data.addEventListener('load', this._boundComplete, false);\n this.data.addEventListener('progress', this._boundOnProgress, false);\n this.data.addEventListener('canplaythrough', this._boundComplete, false);\n\n this.data.load();\n};\n\n/**\n * Loads this resources using an XMLHttpRequest.\n *\n * @private\n */\nResource.prototype._loadXhr = function () {\n // if unset, determine the value\n if (typeof this.xhrType !== 'string') {\n this.xhrType = this._determineXhrType();\n }\n\n var xhr = this.xhr = new XMLHttpRequest();\n\n // set the request type and url\n xhr.open('GET', this.url, true);\n\n // load json as text and parse it ourselves. We do this because some browsers\n // *cough* safari *cough* can't deal with it.\n if (this.xhrType === Resource.XHR_RESPONSE_TYPE.JSON || this.xhrType === Resource.XHR_RESPONSE_TYPE.DOCUMENT) {\n xhr.responseType = Resource.XHR_RESPONSE_TYPE.TEXT;\n }\n else {\n xhr.responseType = this.xhrType;\n }\n\n xhr.addEventListener('error', this._boundXhrOnError, false);\n xhr.addEventListener('abort', this._boundXhrOnAbort, false);\n xhr.addEventListener('progress', this._boundOnProgress, false);\n xhr.addEventListener('load', this._boundXhrOnLoad, false);\n\n xhr.send();\n};\n\n/**\n * Loads this resources using an XDomainRequest. This is here because we need to support IE9 (gross).\n *\n * @private\n */\nResource.prototype._loadXdr = function () {\n // if unset, determine the value\n if (typeof this.xhrType !== 'string') {\n this.xhrType = this._determineXhrType();\n }\n\n var xdr = this.xhr = new XDomainRequest();\n\n // XDomainRequest has a few quirks. Occasionally it will abort requests\n // A way to avoid this is to make sure ALL callbacks are set even if not used\n // More info here: http://stackoverflow.com/questions/15786966/xdomainrequest-aborts-post-on-ie-9\n xdr.timeout = 5000;\n\n xdr.onerror = this._boundXhrOnError;\n xdr.ontimeout = this._boundXdrOnTimeout;\n xdr.onprogress = this._boundOnProgress;\n xdr.onload = this._boundXhrOnLoad;\n\n xdr.open('GET', this.url, true);\n\n // Note: The xdr.send() call is wrapped in a timeout to prevent an\n // issue with the interface where some requests are lost if multiple\n // XDomainRequests are being sent at the same time.\n // Some info here: https://github.com/photonstorm/phaser/issues/1248\n setTimeout(function () {\n xdr.send();\n }, 0);\n};\n\n/**\n * Creates a source used in loading via an element.\n *\n * @private\n * @param {string} type - The element type (video or audio).\n * @param {string} url - The source URL to load from.\n * @param {string} [mime] - The mime type of the video\n * @return {HTMLSourceElement} The source element.\n */\nResource.prototype._createSource = function (type, url, mime) {\n if (!mime) {\n mime = type + '/' + url.substr(url.lastIndexOf('.') + 1);\n }\n\n var source = document.createElement('source');\n\n source.src = url;\n source.type = mime;\n\n return source;\n};\n\n/**\n * Called if a load errors out.\n *\n * @param {Event} event - The error event from the element that emits it.\n * @private\n */\nResource.prototype._onError = function (event) {\n this.abort('Failed to load element using ' + event.target.nodeName);\n};\n\n/**\n * Called if a load progress event fires for xhr/xdr.\n *\n * @fires progress\n * @private\n * @param {XMLHttpRequestProgressEvent|Event} event - Progress event.\n */\nResource.prototype._onProgress = function (event) {\n if (event && event.lengthComputable) {\n this.emit('progress', this, event.loaded / event.total);\n }\n};\n\n/**\n * Called if an error event fires for xhr/xdr.\n *\n * @private\n * @param {XMLHttpRequestErrorEvent|Event} event - Error event.\n */\nResource.prototype._xhrOnError = function () {\n var xhr = this.xhr;\n\n this.abort(reqType(xhr) + ' Request failed. Status: ' + xhr.status + ', text: \"' + xhr.statusText + '\"');\n};\n\n/**\n * Called if an abort event fires for xhr.\n *\n * @private\n * @param {XMLHttpRequestAbortEvent} event - Abort Event\n */\nResource.prototype._xhrOnAbort = function () {\n this.abort(reqType(this.xhr) + ' Request was aborted by the user.');\n};\n\n/**\n * Called if a timeout event fires for xdr.\n *\n * @private\n * @param {Event} event - Timeout event.\n */\nResource.prototype._xdrOnTimeout = function () {\n this.abort(reqType(this.xhr) + ' Request timed out.');\n};\n\n/**\n * Called when data successfully loads from an xhr/xdr request.\n *\n * @private\n * @param {XMLHttpRequestLoadEvent|Event} event - Load event\n */\nResource.prototype._xhrOnLoad = function () {\n var xhr = this.xhr;\n var status = typeof xhr.status === 'undefined' ? xhr.status : STATUS_OK; // XDR has no `.status`, assume 200.\n\n // status can be 0 when using the file:// protocol, also check if a response was found\n if (status === STATUS_OK || status === STATUS_EMPTY || (status === STATUS_NONE && xhr.responseText.length > 0)) {\n // if text, just return it\n if (this.xhrType === Resource.XHR_RESPONSE_TYPE.TEXT) {\n this.data = xhr.responseText;\n }\n // if json, parse into json object\n else if (this.xhrType === Resource.XHR_RESPONSE_TYPE.JSON) {\n try {\n this.data = JSON.parse(xhr.responseText);\n this.isJson = true;\n }\n catch (e) {\n this.abort('Error trying to parse loaded json:', e);\n\n return;\n }\n }\n // if xml, parse into an xml document or div element\n else if (this.xhrType === Resource.XHR_RESPONSE_TYPE.DOCUMENT) {\n try {\n if (window.DOMParser) {\n var domparser = new DOMParser();\n\n this.data = domparser.parseFromString(xhr.responseText, 'text/xml');\n }\n else {\n var div = document.createElement('div');\n\n div.innerHTML = xhr.responseText;\n this.data = div;\n }\n this.isXml = true;\n }\n catch (e) {\n this.abort('Error trying to parse loaded xml:', e);\n\n return;\n }\n }\n // other types just return the response\n else {\n this.data = xhr.response || xhr.responseText;\n }\n }\n else {\n this.abort('[' + xhr.status + ']' + xhr.statusText + ':' + xhr.responseURL);\n\n return;\n }\n\n this.complete();\n};\n\n/**\n * Sets the `crossOrigin` property for this resource based on if the url\n * for this resource is cross-origin. If crossOrigin was manually set, this\n * function does nothing.\n *\n * @private\n * @param {string} url - The url to test.\n * @param {object} [loc=window.location] - The location object to test against.\n * @return {string} The crossOrigin value to use (or empty string for none).\n */\nResource.prototype._determineCrossOrigin = function (url, loc) {\n // data: and javascript: urls are considered same-origin\n if (url.indexOf('data:') === 0) {\n return '';\n }\n\n // default is window.location\n loc = loc || window.location;\n\n if (!tempAnchor) {\n tempAnchor = document.createElement('a');\n }\n\n // let the browser determine the full href for the url of this resource and then\n // parse with the node url lib, we can't use the properties of the anchor element\n // because they don't work in IE9 :(\n tempAnchor.href = url;\n url = _url.parse(tempAnchor.href);\n\n var samePort = (!url.port && loc.port === '') || (url.port === loc.port);\n\n // if cross origin\n if (url.hostname !== loc.hostname || !samePort || url.protocol !== loc.protocol) {\n return 'anonymous';\n }\n\n return '';\n};\n\n/**\n * Determines the responseType of an XHR request based on the extension of the\n * resource being loaded.\n *\n * @private\n * @return {Resource.XHR_RESPONSE_TYPE} The responseType to use.\n */\nResource.prototype._determineXhrType = function () {\n return Resource._xhrTypeMap[this._getExtension()] || Resource.XHR_RESPONSE_TYPE.TEXT;\n};\n\nResource.prototype._determineLoadType = function () {\n return Resource._loadTypeMap[this._getExtension()] || Resource.LOAD_TYPE.XHR;\n};\n\nResource.prototype._getExtension = function () {\n var url = this.url;\n var ext = '';\n\n if (this.isDataUrl) {\n var slashIndex = url.indexOf('/');\n\n ext = url.substring(slashIndex + 1, url.indexOf(';', slashIndex));\n }\n else {\n var queryStart = url.indexOf('?');\n\n if (queryStart !== -1) {\n url = url.substring(0, queryStart);\n }\n\n ext = url.substring(url.lastIndexOf('.') + 1);\n }\n\n return ext.toLowerCase();\n};\n\n/**\n * Determines the mime type of an XHR request based on the responseType of\n * resource being loaded.\n *\n * @private\n * @param {Resource.XHR_RESPONSE_TYPE} type - The type to get a mime type for.\n * @return {string} The mime type to use.\n */\nResource.prototype._getMimeFromXhrType = function (type) {\n switch (type) {\n case Resource.XHR_RESPONSE_TYPE.BUFFER:\n return 'application/octet-binary';\n\n case Resource.XHR_RESPONSE_TYPE.BLOB:\n return 'application/blob';\n\n case Resource.XHR_RESPONSE_TYPE.DOCUMENT:\n return 'application/xml';\n\n case Resource.XHR_RESPONSE_TYPE.JSON:\n return 'application/json';\n\n case Resource.XHR_RESPONSE_TYPE.DEFAULT:\n case Resource.XHR_RESPONSE_TYPE.TEXT:\n /* falls through */\n default:\n return 'text/plain';\n\n }\n};\n\n/**\n * Quick helper to get string xhr type.\n *\n * @ignore\n * @param {XMLHttpRequest|XDomainRequest} xhr - The request to check.\n * @return {string} The type.\n */\nfunction reqType(xhr) {\n return xhr.toString().replace('object ', '');\n}\n\n/**\n * The types of loading a resource can use.\n *\n * @static\n * @readonly\n * @enum {number}\n */\nResource.LOAD_TYPE = {\n /** Uses XMLHttpRequest to load the resource. */\n XHR: 1,\n /** Uses an `Image` object to load the resource. */\n IMAGE: 2,\n /** Uses an `Audio` object to load the resource. */\n AUDIO: 3,\n /** Uses a `Video` object to load the resource. */\n VIDEO: 4\n};\n\n/**\n * The XHR ready states, used internally.\n *\n * @static\n * @readonly\n * @enum {string}\n */\nResource.XHR_RESPONSE_TYPE = {\n /** defaults to text */\n DEFAULT: 'text',\n /** ArrayBuffer */\n BUFFER: 'arraybuffer',\n /** Blob */\n BLOB: 'blob',\n /** Document */\n DOCUMENT: 'document',\n /** Object */\n JSON: 'json',\n /** String */\n TEXT: 'text'\n};\n\nResource._loadTypeMap = {\n gif: Resource.LOAD_TYPE.IMAGE,\n png: Resource.LOAD_TYPE.IMAGE,\n bmp: Resource.LOAD_TYPE.IMAGE,\n jpg: Resource.LOAD_TYPE.IMAGE,\n jpeg: Resource.LOAD_TYPE.IMAGE,\n tif: Resource.LOAD_TYPE.IMAGE,\n tiff: Resource.LOAD_TYPE.IMAGE,\n webp: Resource.LOAD_TYPE.IMAGE,\n tga: Resource.LOAD_TYPE.IMAGE,\n 'svg+xml': Resource.LOAD_TYPE.IMAGE\n};\n\nResource._xhrTypeMap = {\n // xml\n xhtml: Resource.XHR_RESPONSE_TYPE.DOCUMENT,\n html: Resource.XHR_RESPONSE_TYPE.DOCUMENT,\n htm: Resource.XHR_RESPONSE_TYPE.DOCUMENT,\n xml: Resource.XHR_RESPONSE_TYPE.DOCUMENT,\n tmx: Resource.XHR_RESPONSE_TYPE.DOCUMENT,\n tsx: Resource.XHR_RESPONSE_TYPE.DOCUMENT,\n svg: Resource.XHR_RESPONSE_TYPE.DOCUMENT,\n\n // images\n gif: Resource.XHR_RESPONSE_TYPE.BLOB,\n png: Resource.XHR_RESPONSE_TYPE.BLOB,\n bmp: Resource.XHR_RESPONSE_TYPE.BLOB,\n jpg: Resource.XHR_RESPONSE_TYPE.BLOB,\n jpeg: Resource.XHR_RESPONSE_TYPE.BLOB,\n tif: Resource.XHR_RESPONSE_TYPE.BLOB,\n tiff: Resource.XHR_RESPONSE_TYPE.BLOB,\n webp: Resource.XHR_RESPONSE_TYPE.BLOB,\n tga: Resource.XHR_RESPONSE_TYPE.BLOB,\n\n // json\n json: Resource.XHR_RESPONSE_TYPE.JSON,\n\n // text\n text: Resource.XHR_RESPONSE_TYPE.TEXT,\n txt: Resource.XHR_RESPONSE_TYPE.TEXT\n};\n\n/**\n * Sets the load type to be used for a specific extension.\n *\n * @static\n * @param {string} extname - The extension to set the type for, e.g. \"png\" or \"fnt\"\n * @param {Resource.LOAD_TYPE} loadType - The load type to set it to.\n */\nResource.setExtensionLoadType = function (extname, loadType) {\n setExtMap(Resource._loadTypeMap, extname, loadType);\n};\n\n/**\n * Sets the load type to be used for a specific extension.\n *\n * @static\n * @param {string} extname - The extension to set the type for, e.g. \"png\" or \"fnt\"\n * @param {Resource.XHR_RESPONSE_TYPE} xhrType - The xhr type to set it to.\n */\nResource.setExtensionXhrType = function (extname, xhrType) {\n setExtMap(Resource._xhrTypeMap, extname, xhrType);\n};\n\nfunction setExtMap(map, extname, val) {\n if (extname && extname.indexOf('.') === 0) {\n extname = extname.substring(1);\n }\n\n if (!extname) {\n return;\n }\n\n map[extname] = val;\n}\n","/* eslint no-magic-numbers: 0 */\n'use strict';\n\nmodule.exports = {\n // private property\n _keyStr: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',\n\n encodeBinary: function (input) {\n var output = '';\n var bytebuffer;\n var encodedCharIndexes = new Array(4);\n var inx = 0;\n var jnx = 0;\n var paddingBytes = 0;\n\n while (inx < input.length) {\n // Fill byte buffer array\n bytebuffer = new Array(3);\n\n for (jnx = 0; jnx < bytebuffer.length; jnx++) {\n if (inx < input.length) {\n // throw away high-order byte, as documented at:\n // https://developer.mozilla.org/En/Using_XMLHttpRequest#Handling_binary_data\n bytebuffer[jnx] = input.charCodeAt(inx++) & 0xff;\n }\n else {\n bytebuffer[jnx] = 0;\n }\n }\n\n // Get each encoded character, 6 bits at a time\n // index 1: first 6 bits\n encodedCharIndexes[0] = bytebuffer[0] >> 2;\n // index 2: second 6 bits (2 least significant bits from input byte 1 + 4 most significant bits from byte 2)\n encodedCharIndexes[1] = ((bytebuffer[0] & 0x3) << 4) | (bytebuffer[1] >> 4);\n // index 3: third 6 bits (4 least significant bits from input byte 2 + 2 most significant bits from byte 3)\n encodedCharIndexes[2] = ((bytebuffer[1] & 0x0f) << 2) | (bytebuffer[2] >> 6);\n // index 3: forth 6 bits (6 least significant bits from input byte 3)\n encodedCharIndexes[3] = bytebuffer[2] & 0x3f;\n\n // Determine whether padding happened, and adjust accordingly\n paddingBytes = inx - (input.length - 1);\n switch (paddingBytes) {\n case 2:\n // Set last 2 characters to padding char\n encodedCharIndexes[3] = 64;\n encodedCharIndexes[2] = 64;\n break;\n\n case 1:\n // Set last character to padding char\n encodedCharIndexes[3] = 64;\n break;\n\n default:\n break; // No padding - proceed\n }\n\n // Now we will grab each appropriate character out of our keystring\n // based on our index array and append it to the output string\n for (jnx = 0; jnx < encodedCharIndexes.length; jnx++) {\n output += this._keyStr.charAt(encodedCharIndexes[jnx]);\n }\n }\n\n return output;\n }\n};\n","/* eslint global-require: 0 */\n'use strict';\n\nmodule.exports = require('./Loader');\nmodule.exports.Resource = require('./Resource');\nmodule.exports.middleware = {\n caching: {\n memory: require('./middlewares/caching/memory')\n },\n parsing: {\n blob: require('./middlewares/parsing/blob')\n }\n};\n\n","'use strict';\n\n// a simple in-memory cache for resources\nvar cache = {};\n\nmodule.exports = function () {\n return function (resource, next) {\n // if cached, then set data and complete the resource\n if (cache[resource.url]) {\n resource.data = cache[resource.url];\n resource.complete(); // marks resource load complete and stops processing before middlewares\n }\n // if not cached, wait for complete and store it in the cache.\n else {\n resource.once('complete', function () {\n cache[this.url] = this.data;\n });\n }\n\n next();\n };\n};\n","'use strict';\n\nvar Resource = require('../../Resource');\nvar b64 = require('../../b64');\n\nvar Url = window.URL || window.webkitURL;\n\n// a middleware for transforming XHR loaded Blobs into more useful objects\n\nmodule.exports = function () {\n return function (resource, next) {\n if (!resource.data) {\n next();\n\n return;\n }\n\n // if this was an XHR load of a blob\n if (resource.xhr && resource.xhrType === Resource.XHR_RESPONSE_TYPE.BLOB) {\n // if there is no blob support we probably got a binary string back\n if (!window.Blob || typeof resource.data === 'string') {\n var type = resource.xhr.getResponseHeader('content-type');\n\n // this is an image, convert the binary string into a data url\n if (type && type.indexOf('image') === 0) {\n resource.data = new Image();\n resource.data.src = 'data:' + type + ';base64,' + b64.encodeBinary(resource.xhr.responseText);\n\n resource.isImage = true;\n\n // wait until the image loads and then callback\n resource.data.onload = function () {\n resource.data.onload = null;\n\n next();\n };\n\n // next will be called on load\n return;\n }\n }\n // if content type says this is an image, then we should transform the blob into an Image object\n else if (resource.data.type.indexOf('image') === 0) {\n var src = Url.createObjectURL(resource.data);\n\n resource.blob = resource.data;\n resource.data = new Image();\n resource.data.src = src;\n\n resource.isImage = true;\n\n // cleanup the no longer used blob after the image loads\n resource.data.onload = function () {\n Url.revokeObjectURL(src);\n resource.data.onload = null;\n\n next();\n };\n\n // next will be called on load.\n return;\n }\n }\n\n next();\n };\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar punycode = require('punycode');\nvar util = require('./util');\n\nexports.parse = urlParse;\nexports.resolve = urlResolve;\nexports.resolveObject = urlResolveObject;\nexports.format = urlFormat;\n\nexports.Url = Url;\n\nfunction Url() {\n this.protocol = null;\n this.slashes = null;\n this.auth = null;\n this.host = null;\n this.port = null;\n this.hostname = null;\n this.hash = null;\n this.search = null;\n this.query = null;\n this.pathname = null;\n this.path = null;\n this.href = null;\n}\n\n// Reference: RFC 3986, RFC 1808, RFC 2396\n\n// define these here so at least they only have to be\n// compiled once on the first module load.\nvar protocolPattern = /^([a-z0-9.+-]+:)/i,\n portPattern = /:[0-9]*$/,\n\n // Special case for a simple path URL\n simplePathPattern = /^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,\n\n // RFC 2396: characters reserved for delimiting URLs.\n // We actually just auto-escape these.\n delims = ['<', '>', '\"', '`', ' ', '\\r', '\\n', '\\t'],\n\n // RFC 2396: characters not allowed for various reasons.\n unwise = ['{', '}', '|', '\\\\', '^', '`'].concat(delims),\n\n // Allowed by RFCs, but cause of XSS attacks. Always escape these.\n autoEscape = ['\\''].concat(unwise),\n // Characters that are never ever allowed in a hostname.\n // Note that any invalid chars are also handled, but these\n // are the ones that are *expected* to be seen, so we fast-path\n // them.\n nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),\n hostEndingChars = ['/', '?', '#'],\n hostnameMaxLen = 255,\n hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,\n hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,\n // protocols that can allow \"unsafe\" and \"unwise\" chars.\n unsafeProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that never have a hostname.\n hostlessProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that always contain a // bit.\n slashedProtocol = {\n 'http': true,\n 'https': true,\n 'ftp': true,\n 'gopher': true,\n 'file': true,\n 'http:': true,\n 'https:': true,\n 'ftp:': true,\n 'gopher:': true,\n 'file:': true\n },\n querystring = require('querystring');\n\nfunction urlParse(url, parseQueryString, slashesDenoteHost) {\n if (url && util.isObject(url) && url instanceof Url) return url;\n\n var u = new Url;\n u.parse(url, parseQueryString, slashesDenoteHost);\n return u;\n}\n\nUrl.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {\n if (!util.isString(url)) {\n throw new TypeError(\"Parameter 'url' must be a string, not \" + typeof url);\n }\n\n // Copy chrome, IE, opera backslash-handling behavior.\n // Back slashes before the query string get converted to forward slashes\n // See: https://code.google.com/p/chromium/issues/detail?id=25916\n var queryIndex = url.indexOf('?'),\n splitter =\n (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#',\n uSplit = url.split(splitter),\n slashRegex = /\\\\/g;\n uSplit[0] = uSplit[0].replace(slashRegex, '/');\n url = uSplit.join(splitter);\n\n var rest = url;\n\n // trim before proceeding.\n // This is to support parse stuff like \" http://foo.com \\n\"\n rest = rest.trim();\n\n if (!slashesDenoteHost && url.split('#').length === 1) {\n // Try fast path regexp\n var simplePath = simplePathPattern.exec(rest);\n if (simplePath) {\n this.path = rest;\n this.href = rest;\n this.pathname = simplePath[1];\n if (simplePath[2]) {\n this.search = simplePath[2];\n if (parseQueryString) {\n this.query = querystring.parse(this.search.substr(1));\n } else {\n this.query = this.search.substr(1);\n }\n } else if (parseQueryString) {\n this.search = '';\n this.query = {};\n }\n return this;\n }\n }\n\n var proto = protocolPattern.exec(rest);\n if (proto) {\n proto = proto[0];\n var lowerProto = proto.toLowerCase();\n this.protocol = lowerProto;\n rest = rest.substr(proto.length);\n }\n\n // figure out if it's got a host\n // user@server is *always* interpreted as a hostname, and url\n // resolution will treat //foo/bar as host=foo,path=bar because that's\n // how the browser resolves relative URLs.\n if (slashesDenoteHost || proto || rest.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)) {\n var slashes = rest.substr(0, 2) === '//';\n if (slashes && !(proto && hostlessProtocol[proto])) {\n rest = rest.substr(2);\n this.slashes = true;\n }\n }\n\n if (!hostlessProtocol[proto] &&\n (slashes || (proto && !slashedProtocol[proto]))) {\n\n // there's a hostname.\n // the first instance of /, ?, ;, or # ends the host.\n //\n // If there is an @ in the hostname, then non-host chars *are* allowed\n // to the left of the last @ sign, unless some host-ending character\n // comes *before* the @-sign.\n // URLs are obnoxious.\n //\n // ex:\n // http://a@b@c/ => user:a@b host:c\n // http://a@b?@c => user:a host:c path:/?@c\n\n // v0.12 TODO(isaacs): This is not quite how Chrome does things.\n // Review our test case against browsers more comprehensively.\n\n // find the first instance of any hostEndingChars\n var hostEnd = -1;\n for (var i = 0; i < hostEndingChars.length; i++) {\n var hec = rest.indexOf(hostEndingChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n hostEnd = hec;\n }\n\n // at this point, either we have an explicit point where the\n // auth portion cannot go past, or the last @ char is the decider.\n var auth, atSign;\n if (hostEnd === -1) {\n // atSign can be anywhere.\n atSign = rest.lastIndexOf('@');\n } else {\n // atSign must be in auth portion.\n // http://a@b/c@d => host:b auth:a path:/c@d\n atSign = rest.lastIndexOf('@', hostEnd);\n }\n\n // Now we have a portion which is definitely the auth.\n // Pull that off.\n if (atSign !== -1) {\n auth = rest.slice(0, atSign);\n rest = rest.slice(atSign + 1);\n this.auth = decodeURIComponent(auth);\n }\n\n // the host is the remaining to the left of the first non-host char\n hostEnd = -1;\n for (var i = 0; i < nonHostChars.length; i++) {\n var hec = rest.indexOf(nonHostChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n hostEnd = hec;\n }\n // if we still have not hit it, then the entire thing is a host.\n if (hostEnd === -1)\n hostEnd = rest.length;\n\n this.host = rest.slice(0, hostEnd);\n rest = rest.slice(hostEnd);\n\n // pull out port.\n this.parseHost();\n\n // we've indicated that there is a hostname,\n // so even if it's empty, it has to be present.\n this.hostname = this.hostname || '';\n\n // if hostname begins with [ and ends with ]\n // assume that it's an IPv6 address.\n var ipv6Hostname = this.hostname[0] === '[' &&\n this.hostname[this.hostname.length - 1] === ']';\n\n // validate a little.\n if (!ipv6Hostname) {\n var hostparts = this.hostname.split(/\\./);\n for (var i = 0, l = hostparts.length; i < l; i++) {\n var part = hostparts[i];\n if (!part) continue;\n if (!part.match(hostnamePartPattern)) {\n var newpart = '';\n for (var j = 0, k = part.length; j < k; j++) {\n if (part.charCodeAt(j) > 127) {\n // we replace non-ASCII char with a temporary placeholder\n // we need this to make sure size of hostname is not\n // broken by replacing non-ASCII by nothing\n newpart += 'x';\n } else {\n newpart += part[j];\n }\n }\n // we test again with ASCII char only\n if (!newpart.match(hostnamePartPattern)) {\n var validParts = hostparts.slice(0, i);\n var notHost = hostparts.slice(i + 1);\n var bit = part.match(hostnamePartStart);\n if (bit) {\n validParts.push(bit[1]);\n notHost.unshift(bit[2]);\n }\n if (notHost.length) {\n rest = '/' + notHost.join('.') + rest;\n }\n this.hostname = validParts.join('.');\n break;\n }\n }\n }\n }\n\n if (this.hostname.length > hostnameMaxLen) {\n this.hostname = '';\n } else {\n // hostnames are always lower case.\n this.hostname = this.hostname.toLowerCase();\n }\n\n if (!ipv6Hostname) {\n // IDNA Support: Returns a punycoded representation of \"domain\".\n // It only converts parts of the domain name that\n // have non-ASCII characters, i.e. it doesn't matter if\n // you call it with a domain that already is ASCII-only.\n this.hostname = punycode.toASCII(this.hostname);\n }\n\n var p = this.port ? ':' + this.port : '';\n var h = this.hostname || '';\n this.host = h + p;\n this.href += this.host;\n\n // strip [ and ] from the hostname\n // the host field still retains them, though\n if (ipv6Hostname) {\n this.hostname = this.hostname.substr(1, this.hostname.length - 2);\n if (rest[0] !== '/') {\n rest = '/' + rest;\n }\n }\n }\n\n // now rest is set to the post-host stuff.\n // chop off any delim chars.\n if (!unsafeProtocol[lowerProto]) {\n\n // First, make 100% sure that any \"autoEscape\" chars get\n // escaped, even if encodeURIComponent doesn't think they\n // need to be.\n for (var i = 0, l = autoEscape.length; i < l; i++) {\n var ae = autoEscape[i];\n if (rest.indexOf(ae) === -1)\n continue;\n var esc = encodeURIComponent(ae);\n if (esc === ae) {\n esc = escape(ae);\n }\n rest = rest.split(ae).join(esc);\n }\n }\n\n\n // chop off from the tail first.\n var hash = rest.indexOf('#');\n if (hash !== -1) {\n // got a fragment string.\n this.hash = rest.substr(hash);\n rest = rest.slice(0, hash);\n }\n var qm = rest.indexOf('?');\n if (qm !== -1) {\n this.search = rest.substr(qm);\n this.query = rest.substr(qm + 1);\n if (parseQueryString) {\n this.query = querystring.parse(this.query);\n }\n rest = rest.slice(0, qm);\n } else if (parseQueryString) {\n // no query string, but parseQueryString still requested\n this.search = '';\n this.query = {};\n }\n if (rest) this.pathname = rest;\n if (slashedProtocol[lowerProto] &&\n this.hostname && !this.pathname) {\n this.pathname = '/';\n }\n\n //to support http.request\n if (this.pathname || this.search) {\n var p = this.pathname || '';\n var s = this.search || '';\n this.path = p + s;\n }\n\n // finally, reconstruct the href based on what has been validated.\n this.href = this.format();\n return this;\n};\n\n// format a parsed object into a url string\nfunction urlFormat(obj) {\n // ensure it's an object, and not a string url.\n // If it's an obj, this is a no-op.\n // this way, you can call url_format() on strings\n // to clean up potentially wonky urls.\n if (util.isString(obj)) obj = urlParse(obj);\n if (!(obj instanceof Url)) return Url.prototype.format.call(obj);\n return obj.format();\n}\n\nUrl.prototype.format = function() {\n var auth = this.auth || '';\n if (auth) {\n auth = encodeURIComponent(auth);\n auth = auth.replace(/%3A/i, ':');\n auth += '@';\n }\n\n var protocol = this.protocol || '',\n pathname = this.pathname || '',\n hash = this.hash || '',\n host = false,\n query = '';\n\n if (this.host) {\n host = auth + this.host;\n } else if (this.hostname) {\n host = auth + (this.hostname.indexOf(':') === -1 ?\n this.hostname :\n '[' + this.hostname + ']');\n if (this.port) {\n host += ':' + this.port;\n }\n }\n\n if (this.query &&\n util.isObject(this.query) &&\n Object.keys(this.query).length) {\n query = querystring.stringify(this.query);\n }\n\n var search = this.search || (query && ('?' + query)) || '';\n\n if (protocol && protocol.substr(-1) !== ':') protocol += ':';\n\n // only the slashedProtocols get the //. Not mailto:, xmpp:, etc.\n // unless they had them to begin with.\n if (this.slashes ||\n (!protocol || slashedProtocol[protocol]) && host !== false) {\n host = '//' + (host || '');\n if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;\n } else if (!host) {\n host = '';\n }\n\n if (hash && hash.charAt(0) !== '#') hash = '#' + hash;\n if (search && search.charAt(0) !== '?') search = '?' + search;\n\n pathname = pathname.replace(/[?#]/g, function(match) {\n return encodeURIComponent(match);\n });\n search = search.replace('#', '%23');\n\n return protocol + host + pathname + search + hash;\n};\n\nfunction urlResolve(source, relative) {\n return urlParse(source, false, true).resolve(relative);\n}\n\nUrl.prototype.resolve = function(relative) {\n return this.resolveObject(urlParse(relative, false, true)).format();\n};\n\nfunction urlResolveObject(source, relative) {\n if (!source) return relative;\n return urlParse(source, false, true).resolveObject(relative);\n}\n\nUrl.prototype.resolveObject = function(relative) {\n if (util.isString(relative)) {\n var rel = new Url();\n rel.parse(relative, false, true);\n relative = rel;\n }\n\n var result = new Url();\n var tkeys = Object.keys(this);\n for (var tk = 0; tk < tkeys.length; tk++) {\n var tkey = tkeys[tk];\n result[tkey] = this[tkey];\n }\n\n // hash is always overridden, no matter what.\n // even href=\"\" will remove it.\n result.hash = relative.hash;\n\n // if the relative url is empty, then there's nothing left to do here.\n if (relative.href === '') {\n result.href = result.format();\n return result;\n }\n\n // hrefs like //foo/bar always cut to the protocol.\n if (relative.slashes && !relative.protocol) {\n // take everything except the protocol from relative\n var rkeys = Object.keys(relative);\n for (var rk = 0; rk < rkeys.length; rk++) {\n var rkey = rkeys[rk];\n if (rkey !== 'protocol')\n result[rkey] = relative[rkey];\n }\n\n //urlParse appends trailing / to urls like http://www.example.com\n if (slashedProtocol[result.protocol] &&\n result.hostname && !result.pathname) {\n result.path = result.pathname = '/';\n }\n\n result.href = result.format();\n return result;\n }\n\n if (relative.protocol && relative.protocol !== result.protocol) {\n // if it's a known url protocol, then changing\n // the protocol does weird things\n // first, if it's not file:, then we MUST have a host,\n // and if there was a path\n // to begin with, then we MUST have a path.\n // if it is file:, then the host is dropped,\n // because that's known to be hostless.\n // anything else is assumed to be absolute.\n if (!slashedProtocol[relative.protocol]) {\n var keys = Object.keys(relative);\n for (var v = 0; v < keys.length; v++) {\n var k = keys[v];\n result[k] = relative[k];\n }\n result.href = result.format();\n return result;\n }\n\n result.protocol = relative.protocol;\n if (!relative.host && !hostlessProtocol[relative.protocol]) {\n var relPath = (relative.pathname || '').split('/');\n while (relPath.length && !(relative.host = relPath.shift()));\n if (!relative.host) relative.host = '';\n if (!relative.hostname) relative.hostname = '';\n if (relPath[0] !== '') relPath.unshift('');\n if (relPath.length < 2) relPath.unshift('');\n result.pathname = relPath.join('/');\n } else {\n result.pathname = relative.pathname;\n }\n result.search = relative.search;\n result.query = relative.query;\n result.host = relative.host || '';\n result.auth = relative.auth;\n result.hostname = relative.hostname || relative.host;\n result.port = relative.port;\n // to support http.request\n if (result.pathname || result.search) {\n var p = result.pathname || '';\n var s = result.search || '';\n result.path = p + s;\n }\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n }\n\n var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),\n isRelAbs = (\n relative.host ||\n relative.pathname && relative.pathname.charAt(0) === '/'\n ),\n mustEndAbs = (isRelAbs || isSourceAbs ||\n (result.host && relative.pathname)),\n removeAllDots = mustEndAbs,\n srcPath = result.pathname && result.pathname.split('/') || [],\n relPath = relative.pathname && relative.pathname.split('/') || [],\n psychotic = result.protocol && !slashedProtocol[result.protocol];\n\n // if the url is a non-slashed url, then relative\n // links like ../.. should be able\n // to crawl up to the hostname, as well. This is strange.\n // result.protocol has already been set by now.\n // Later on, put the first path part into the host field.\n if (psychotic) {\n result.hostname = '';\n result.port = null;\n if (result.host) {\n if (srcPath[0] === '') srcPath[0] = result.host;\n else srcPath.unshift(result.host);\n }\n result.host = '';\n if (relative.protocol) {\n relative.hostname = null;\n relative.port = null;\n if (relative.host) {\n if (relPath[0] === '') relPath[0] = relative.host;\n else relPath.unshift(relative.host);\n }\n relative.host = null;\n }\n mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');\n }\n\n if (isRelAbs) {\n // it's absolute.\n result.host = (relative.host || relative.host === '') ?\n relative.host : result.host;\n result.hostname = (relative.hostname || relative.hostname === '') ?\n relative.hostname : result.hostname;\n result.search = relative.search;\n result.query = relative.query;\n srcPath = relPath;\n // fall through to the dot-handling below.\n } else if (relPath.length) {\n // it's relative\n // throw away the existing file, and take the new path instead.\n if (!srcPath) srcPath = [];\n srcPath.pop();\n srcPath = srcPath.concat(relPath);\n result.search = relative.search;\n result.query = relative.query;\n } else if (!util.isNullOrUndefined(relative.search)) {\n // just pull out the search.\n // like href='?foo'.\n // Put this after the other two cases because it simplifies the booleans\n if (psychotic) {\n result.hostname = result.host = srcPath.shift();\n //occationaly the auth can get stuck only in host\n //this especially happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\n result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n result.search = relative.search;\n result.query = relative.query;\n //to support http.request\n if (!util.isNull(result.pathname) || !util.isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') +\n (result.search ? result.search : '');\n }\n result.href = result.format();\n return result;\n }\n\n if (!srcPath.length) {\n // no path at all. easy.\n // we've already handled the other stuff above.\n result.pathname = null;\n //to support http.request\n if (result.search) {\n result.path = '/' + result.search;\n } else {\n result.path = null;\n }\n result.href = result.format();\n return result;\n }\n\n // if a url ENDs in . or .., then it must get a trailing slash.\n // however, if it ends in anything else non-slashy,\n // then it must NOT get a trailing slash.\n var last = srcPath.slice(-1)[0];\n var hasTrailingSlash = (\n (result.host || relative.host || srcPath.length > 1) &&\n (last === '.' || last === '..') || last === '');\n\n // strip single dots, resolve double dots to parent dir\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = srcPath.length; i >= 0; i--) {\n last = srcPath[i];\n if (last === '.') {\n srcPath.splice(i, 1);\n } else if (last === '..') {\n srcPath.splice(i, 1);\n up++;\n } else if (up) {\n srcPath.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (!mustEndAbs && !removeAllDots) {\n for (; up--; up) {\n srcPath.unshift('..');\n }\n }\n\n if (mustEndAbs && srcPath[0] !== '' &&\n (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {\n srcPath.unshift('');\n }\n\n if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {\n srcPath.push('');\n }\n\n var isAbsolute = srcPath[0] === '' ||\n (srcPath[0] && srcPath[0].charAt(0) === '/');\n\n // put the host back\n if (psychotic) {\n result.hostname = result.host = isAbsolute ? '' :\n srcPath.length ? srcPath.shift() : '';\n //occationaly the auth can get stuck only in host\n //this especially happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\n result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n\n mustEndAbs = mustEndAbs || (result.host && srcPath.length);\n\n if (mustEndAbs && !isAbsolute) {\n srcPath.unshift('');\n }\n\n if (!srcPath.length) {\n result.pathname = null;\n result.path = null;\n } else {\n result.pathname = srcPath.join('/');\n }\n\n //to support request.http\n if (!util.isNull(result.pathname) || !util.isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') +\n (result.search ? result.search : '');\n }\n result.auth = relative.auth || result.auth;\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n};\n\nUrl.prototype.parseHost = function() {\n var host = this.host;\n var port = portPattern.exec(host);\n if (port) {\n port = port[0];\n if (port !== ':') {\n this.port = port.substr(1);\n }\n host = host.substr(0, host.length - port.length);\n }\n if (host) this.hostname = host;\n};\n","'use strict';\n\nmodule.exports = {\n isString: function(arg) {\n return typeof(arg) === 'string';\n },\n isObject: function(arg) {\n return typeof(arg) === 'object' && arg !== null;\n },\n isNull: function(arg) {\n return arg === null;\n },\n isNullOrUndefined: function(arg) {\n return arg == null;\n }\n};\n","var core = require('../core');\nvar Device = require('ismobilejs');\n\n// add some extra variables to the container..\nObject.assign(\n core.DisplayObject.prototype,\n require('./accessibleTarget')\n);\n\n\n/**\n * The Accessibility manager reacreates the ability to tab and and have content read by screen readers. This is very important as it can possibly help people with disabilities access pixi content.\n * Much like interaction any DisplayObject can be made accessible. This manager will map the events as if the mouse was being used, minimizing the efferot required to implement.\n *\n * @class\n * @memberof PIXI\n * @param renderer {PIXI.CanvasRenderer|PIXI.WebGLRenderer} A reference to the current renderer\n */\nfunction AccessibilityManager(renderer)\n{\n\tif(Device.tablet || Device.phone)\n\t{\n\t\tthis.createTouchHook();\n\t}\n\n\t// first we create a div that will sit over the pixi element. This is where the div overlays will go.\n var div = document.createElement('div');\n\n div.style.width = 100 + 'px';\n div.style.height = 100 + 'px';\n div.style.position = 'absolute';\n div.style.top = 0;\n div.style.left = 0;\n //\n div.style.zIndex = 2;\n\n \t/**\n \t * This is the dom element that will sit over the pixi element. This is where the div overlays will go.\n \t *\n \t * @type {HTMLElement}\n \t * @private\n \t */\n \tthis.div = div;\n\n \t/**\n \t * A simple pool for storing divs.\n \t *\n \t * @type {*}\n \t * @private\n \t */\n \tthis.pool = [];\n\n \t/**\n \t * This is a tick used to check if an object is no longer being rendered.\n \t *\n \t * @type {Number}\n \t * @private\n \t */\n \tthis.renderId = 0;\n\n \t/**\n \t * Setting this to true will visually show the divs\n \t *\n \t * @type {boolean}\n \t */\n \tthis.debug = false;\n\n \t/**\n * The renderer this accessibility manager works for.\n *\n * @member {PIXI.SystemRenderer}\n */\n \tthis.renderer = renderer;\n\n \t/**\n * The array of currently active accessible items.\n *\n * @member {Array<*>}\n * @private\n */\n \tthis.children = [];\n\n \t/**\n * pre-bind the functions\n\t *\n \t * @private\n */\n \tthis._onKeyDown = this._onKeyDown.bind(this);\n \tthis._onMouseMove = this._onMouseMove.bind(this);\n\n \t/**\n * stores the state of the manager. If there are no accessible objects or the mouse is moving the will be false.\n *\n * @member {Array<*>}\n * @private\n */\n \tthis.isActive = false;\n \tthis.isMobileAccessabillity = false;\n\n \t// let listen for tab.. once pressed we can fire up and show the accessibility layer\n \twindow.addEventListener('keydown', this._onKeyDown, false);\n}\n\n\nAccessibilityManager.prototype.constructor = AccessibilityManager;\nmodule.exports = AccessibilityManager;\n\nAccessibilityManager.prototype.createTouchHook = function()\n{\n\tvar hookDiv = document.createElement('button');\n\thookDiv.style.width = 1 + 'px';\n hookDiv.style.height = 1 + 'px';\n hookDiv.style.position = 'absolute';\n hookDiv.style.top = -1000+'px';\n hookDiv.style.left = -1000+'px';\n hookDiv.style.zIndex = 2;\n hookDiv.style.backgroundColor = '#FF0000';\n hookDiv.title = 'HOOK DIV';\n\n hookDiv.addEventListener('focus', function(){\n\n \tthis.isMobileAccessabillity = true;\n \tthis.activate();\n \tdocument.body.removeChild(hookDiv);\n\n }.bind(this));\n\n document.body.appendChild(hookDiv);\n\n};\n\n/**\n * Activating will cause the Accessibility layer to be shown. This is called when a user preses the tab key\n * @private\n */\nAccessibilityManager.prototype.activate = function()\n{\n\tif(this.isActive )\n\t{\n\t\treturn;\n\t}\n\n\tthis.isActive = true;\n\n\twindow.document.addEventListener('mousemove', this._onMouseMove, true);\n\twindow.removeEventListener('keydown', this._onKeyDown, false);\n\n\tthis.renderer.on('postrender', this.update, this);\n\n\tif(this.renderer.view.parentNode)\n\t{\n\t\tthis.renderer.view.parentNode.appendChild(this.div);\n\t}\n};\n\n/**\n * Deactivating will cause the Accessibility layer to be hidden. This is called when a user moves the mouse\n * @private\n */\nAccessibilityManager.prototype.deactivate = function()\n{\n\n\tif(!this.isActive || this.isMobileAccessabillity)\n\t{\n\t\treturn;\n\t}\n\n\tthis.isActive = false;\n\n\twindow.document.removeEventListener('mousemove', this._onMouseMove);\n\twindow.addEventListener('keydown', this._onKeyDown, false);\n\n\tthis.renderer.off('postrender', this.update);\n\n\tif(this.div.parentNode)\n\t{\n\t\tthis.div.parentNode.removeChild(this.div);\n\t}\n\n};\n\n/**\n * This recursive function will run throught he scene graph and add any new accessible objects to the DOM layer.\n * @param displayObject {PIXI.Container} the DisplayObject to check.\n * @private\n */\nAccessibilityManager.prototype.updateAccessibleObjects = function(displayObject)\n{\n\tif(!displayObject.visible)\n\t{\n\t\treturn;\n\t}\n\n\tif(displayObject.accessible && displayObject.interactive)\n\t{\n\t\tif(!displayObject._accessibleActive)\n\t\t{\n\t\t\tthis.addChild(displayObject);\n\t\t}\n\n\t \tdisplayObject.renderId = this.renderId;\n\t}\n\n\tvar children = displayObject.children;\n\n\tfor (var i = children.length - 1; i >= 0; i--) {\n\n\t\tthis.updateAccessibleObjects(children[i]);\n\t}\n};\n\n\n/**\n * Before each render this function will ensure that all divs are mapped correctly to their DisplayObjects\n * @private\n */\nAccessibilityManager.prototype.update = function()\n{\n\tif(!this.renderer.renderingToScreen) {\n \treturn;\n \t}\n\n\t// update children...\n\tthis.updateAccessibleObjects(this.renderer._lastObjectRendered);\n\n\tvar rect = this.renderer.view.getBoundingClientRect();\n\tvar sx = rect.width / this.renderer.width;\n\tvar sy = rect.height / this.renderer.height;\n\n\tvar div = this.div;\n\n\tdiv.style.left = rect.left + 'px';\n\tdiv.style.top = rect.top + 'px';\n\tdiv.style.width = this.renderer.width + 'px';\n\tdiv.style.height = this.renderer.height + 'px';\n\n\tfor (var i = 0; i < this.children.length; i++)\n\t{\n\n\t\tvar child = this.children[i];\n\n\t\tif(child.renderId !== this.renderId)\n\t\t{\n\t\t\tchild._accessibleActive = false;\n\n core.utils.removeItems(this.children, i, 1);\n\t\t\tthis.div.removeChild( child._accessibleDiv );\n\t\t\tthis.pool.push(child._accessibleDiv);\n\t\t\tchild._accessibleDiv = null;\n\n\t\t\ti--;\n\n\t\t\tif(this.children.length === 0)\n\t\t\t{\n\t\t\t\tthis.deactivate();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// map div to display..\n\t\t\tdiv = child._accessibleDiv;\n\t\t\tvar hitArea = child.hitArea;\n\t\t\tvar wt = child.worldTransform;\n\n\t\t\tif(child.hitArea)\n\t\t\t{\n\t\t\t\tdiv.style.left = ((wt.tx + (hitArea.x * wt.a)) * sx) + 'px';\n\t\t\t\tdiv.style.top = ((wt.ty + (hitArea.y * wt.d)) * sy) + 'px';\n\n\t\t\t\tdiv.style.width = (hitArea.width * wt.a * sx) + 'px';\n\t\t\t\tdiv.style.height = (hitArea.height * wt.d * sy) + 'px';\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\thitArea = child.getBounds();\n\n\t\t\t\tthis.capHitArea(hitArea);\n\n\t\t\t\tdiv.style.left = (hitArea.x * sx) + 'px';\n\t\t\t\tdiv.style.top = (hitArea.y * sy) + 'px';\n\n\t\t\t\tdiv.style.width = (hitArea.width * sx) + 'px';\n\t\t\t\tdiv.style.height = (hitArea.height * sy) + 'px';\n\t\t\t}\n\t\t}\n\t}\n\n\t// increment the render id..\n\tthis.renderId++;\n};\n\nAccessibilityManager.prototype.capHitArea = function (hitArea)\n{\n if (hitArea.x < 0)\n {\n hitArea.width += hitArea.x;\n hitArea.x = 0;\n }\n\n if (hitArea.y < 0)\n {\n hitArea.height += hitArea.y;\n hitArea.y = 0;\n }\n\n if ( hitArea.x + hitArea.width > this.renderer.width )\n {\n hitArea.width = this.renderer.width - hitArea.x;\n }\n\n if ( hitArea.y + hitArea.height > this.renderer.height )\n {\n hitArea.height = this.renderer.height - hitArea.y;\n }\n};\n\n\n/**\n * Adds a DisplayObject to the accessibility manager\n * @private\n */\nAccessibilityManager.prototype.addChild = function(displayObject)\n{\n//\tthis.activate();\n\n\tvar div = this.pool.pop();\n\n\tif(!div)\n\t{\n\t\tdiv = document.createElement('button');\n\n\t div.style.width = 100 + 'px';\n\t div.style.height = 100 + 'px';\n\t div.style.backgroundColor = this.debug ? 'rgba(255,0,0,0.5)' : 'transparent';\n\t div.style.position = 'absolute';\n\t div.style.zIndex = 2;\n\t div.style.borderStyle = 'none';\n\n\n\t div.addEventListener('click', this._onClick.bind(this));\n\t div.addEventListener('focus', this._onFocus.bind(this));\n\t div.addEventListener('focusout', this._onFocusOut.bind(this));\n\t}\n\n\n\tif(displayObject.accessibleTitle)\n\t{\n\t\tdiv.title = displayObject.accessibleTitle;\n\t}\n\telse if (!displayObject.accessibleTitle && !displayObject.accessibleHint)\n\t{\n\t\tdiv.title = 'displayObject ' + this.tabIndex;\n\t}\n\n\tif(displayObject.accessibleHint)\n\t{\n\t\tdiv.setAttribute('aria-label', displayObject.accessibleHint);\n\t}\n\n\n\t//\n\n\tdisplayObject._accessibleActive = true;\n\tdisplayObject._accessibleDiv = div;\n\tdiv.displayObject = displayObject;\n\n\n\tthis.children.push(displayObject);\n\tthis.div.appendChild( displayObject._accessibleDiv );\n\tdisplayObject._accessibleDiv.tabIndex = displayObject.tabIndex;\n};\n\n\n/**\n * Maps the div button press to pixi's InteractionManager (click)\n * @private\n */\nAccessibilityManager.prototype._onClick = function(e)\n{\n\tvar interactionManager = this.renderer.plugins.interaction;\n\tinteractionManager.dispatchEvent(e.target.displayObject, 'click', interactionManager.eventData);\n};\n\n/**\n * Maps the div focus events to pixis InteractionManager (mouseover)\n * @private\n */\nAccessibilityManager.prototype._onFocus = function(e)\n{\n\tvar interactionManager = this.renderer.plugins.interaction;\n\tinteractionManager.dispatchEvent(e.target.displayObject, 'mouseover', interactionManager.eventData);\n};\n\n/**\n * Maps the div focus events to pixis InteractionManager (mouseout)\n * @private\n */\nAccessibilityManager.prototype._onFocusOut = function(e)\n{\n\tvar interactionManager = this.renderer.plugins.interaction;\n\tinteractionManager.dispatchEvent(e.target.displayObject, 'mouseout', interactionManager.eventData);\n};\n\n/**\n * Is called when a key is pressed\n *\n * @private\n */\nAccessibilityManager.prototype._onKeyDown = function(e)\n{\n\tif(e.keyCode !== 9)\n\t{\n\t\treturn;\n\t}\n\n\tthis.activate();\n};\n\n/**\n * Is called when the mouse moves across the renderer element\n *\n * @private\n */\nAccessibilityManager.prototype._onMouseMove = function()\n{\n\tthis.deactivate();\n};\n\n\n/**\n * Destroys the accessibility manager\n *\n */\nAccessibilityManager.prototype.destroy = function ()\n{\n\tthis.div = null;\n\n\tfor (var i = 0; i < this.children.length; i++)\n\t{\n\t\tthis.children[i].div = null;\n\t}\n\n\n\twindow.document.removeEventListener('mousemove', this._onMouseMove);\n\twindow.removeEventListener('keydown', this._onKeyDown);\n\n\tthis.pool = null;\n\tthis.children = null;\n\tthis.renderer = null;\n\n};\n\ncore.WebGLRenderer.registerPlugin('accessibility', AccessibilityManager);\ncore.CanvasRenderer.registerPlugin('accessibility', AccessibilityManager);\n","/**\n * Default property values of accessible objects\n * used by {@link PIXI.accessibility.AccessibilityManager}.\n *\n * @mixin\n * @memberof PIXI\n * @example\n * function MyObject() {}\n *\n * Object.assign(\n * MyObject.prototype,\n * PIXI.accessibility.accessibleTarget\n * );\n */\nvar accessibleTarget = {\n\n /**\n * Flag for if the object is accessible. If true AccessibilityManager will overlay a\n * shadow div with attributes set\n *\n * @member {boolean}\n */\n accessible:false,\n\n /**\n * Sets the title attribute of the shadow div\n * If accessibleTitle AND accessibleHint has not been this will default to 'displayObject [tabIndex]'\n *\n * @member {string}\n */\n accessibleTitle:null,\n\n /**\n * Sets the aria-label attribute of the shadow div\n *\n * @member {string}\n */\n accessibleHint:null,\n\n /**\n * @todo Needs docs.\n */\n tabIndex:0,\n\n /**\n * @todo Needs docs.\n */\n _accessibleActive:false,\n\n /**\n * @todo Needs docs.\n */\n _accessibleDiv:false\n\n};\n\nmodule.exports = accessibleTarget;\n","/**\n * @file Main export of the PIXI accessibility library\n * @author Mat Groves \n * @copyright 2013-2015 GoodBoyDigital\n * @license {@link https://github.com/pixijs/pixi.js/blob/master/LICENSE|MIT License}\n */\n\n/**\n * @namespace PIXI.AccessibilityManager\n */\nmodule.exports = {\n accessibleTarget: require('./accessibleTarget'),\n AccessibilityManager: require('./AccessibilityManager')\n};\n","var GLShader = require('pixi-gl-core').GLShader;\nvar Const = require('./const');\n\nfunction checkPrecision(src) {\n if (src instanceof Array) {\n if (src[0].substring(0,9) !== 'precision') {\n var copy = src.slice(0);\n copy.unshift('precision ' + Const.PRECISION.DEFAULT + ' float;');\n return copy;\n }\n } else {\n if (src.substring(0,9) !== 'precision') {\n return 'precision ' + Const.PRECISION.DEFAULT + ' float;\\n' + src;\n }\n }\n return src;\n}\n\n/**\n * Wrapper class, webGL Shader for Pixi.\n * Adds precision string if vertexSrc or fragmentSrc have no mention of it.\n *\n * @class\n * @memberof PIXI\n * @param gl {WebGLRenderingContext} The current WebGL rendering context\n * @param vertexSrc {string|string[]} The vertex shader source as an array of strings.\n * @param fragmentSrc {string|string[]} The fragment shader source as an array of strings.\n */\nvar Shader = function(gl, vertexSrc, fragmentSrc) {\n GLShader.call(this, gl, checkPrecision(vertexSrc), checkPrecision(fragmentSrc));\n};\n\nShader.prototype = Object.create(GLShader.prototype);\nShader.prototype.constructor = Shader;\nmodule.exports = Shader;\n","\n/**\n * Constant values used in pixi\n *\n * @lends PIXI\n */\nvar CONST = {\n /**\n * String of the current PIXI version.\n *\n * @static\n * @constant\n * @type {string}\n */\n VERSION: '4.0.0',\n\n /**\n * Two Pi.\n *\n * @static\n * @constant\n * @type {number}\n */\n PI_2: Math.PI * 2,\n\n /**\n * Conversion factor for converting radians to degrees.\n *\n * @static\n * @constant\n * @type {number}\n */\n RAD_TO_DEG: 180 / Math.PI,\n\n /**\n * Conversion factor for converting degrees to radians.\n *\n * @static\n * @constant\n * @type {number}\n */\n DEG_TO_RAD: Math.PI / 180,\n\n /**\n * Target frames per millisecond.\n *\n * @static\n * @constant\n * @type {number}\n * @default 0.06\n */\n TARGET_FPMS: 0.06,\n\n /**\n * Constant to identify the Renderer Type.\n *\n * @static\n * @constant\n * @type {object}\n * @property {number} UNKNOWN - Unknown render type.\n * @property {number} WEBGL - WebGL render type.\n * @property {number} CANVAS - Canvas render type.\n */\n RENDERER_TYPE: {\n UNKNOWN: 0,\n WEBGL: 1,\n CANVAS: 2\n },\n\n /**\n * Various blend modes supported by PIXI.\n *\n * IMPORTANT - The WebGL renderer only supports the NORMAL, ADD, MULTIPLY and SCREEN blend modes.\n * Anything else will silently act like NORMAL.\n *\n * @static\n * @constant\n * @type {object}\n * @property {number} NORMAL\n * @property {number} ADD\n * @property {number} MULTIPLY\n * @property {number} SCREEN\n * @property {number} OVERLAY\n * @property {number} DARKEN\n * @property {number} LIGHTEN\n * @property {number} COLOR_DODGE\n * @property {number} COLOR_BURN\n * @property {number} HARD_LIGHT\n * @property {number} SOFT_LIGHT\n * @property {number} DIFFERENCE\n * @property {number} EXCLUSION\n * @property {number} HUE\n * @property {number} SATURATION\n * @property {number} COLOR\n * @property {number} LUMINOSITY\n */\n BLEND_MODES: {\n NORMAL: 0,\n ADD: 1,\n MULTIPLY: 2,\n SCREEN: 3,\n OVERLAY: 4,\n DARKEN: 5,\n LIGHTEN: 6,\n COLOR_DODGE: 7,\n COLOR_BURN: 8,\n HARD_LIGHT: 9,\n SOFT_LIGHT: 10,\n DIFFERENCE: 11,\n EXCLUSION: 12,\n HUE: 13,\n SATURATION: 14,\n COLOR: 15,\n LUMINOSITY: 16\n },\n\n /**\n * Various webgl draw modes. These can be used to specify which GL drawMode to use\n * under certain situations and renderers.\n *\n * @static\n * @constant\n * @type {object}\n * @property {number} POINTS\n * @property {number} LINES\n * @property {number} LINE_LOOP\n * @property {number} LINE_STRIP\n * @property {number} TRIANGLES\n * @property {number} TRIANGLE_STRIP\n * @property {number} TRIANGLE_FAN\n */\n DRAW_MODES: {\n POINTS: 0,\n LINES: 1,\n LINE_LOOP: 2,\n LINE_STRIP: 3,\n TRIANGLES: 4,\n TRIANGLE_STRIP: 5,\n TRIANGLE_FAN: 6\n },\n\n /**\n * The scale modes that are supported by pixi.\n *\n * The DEFAULT scale mode affects the default scaling mode of future operations.\n * It can be re-assigned to either LINEAR or NEAREST, depending upon suitability.\n *\n * @static\n * @constant\n * @type {object}\n * @property {number} DEFAULT=LINEAR\n * @property {number} LINEAR Smooth scaling\n * @property {number} NEAREST Pixelating scaling\n */\n SCALE_MODES: {\n DEFAULT: 0,\n LINEAR: 0,\n NEAREST: 1\n },\n\n /**\n * The wrap modes that are supported by pixi.\n *\n * The DEFAULT wrap mode affects the default wraping mode of future operations.\n * It can be re-assigned to either CLAMP or REPEAT, depending upon suitability.\n * If the texture is non power of two then clamp will be used regardless as webGL can only use REPEAT if the texture is po2.\n * This property only affects WebGL.\n *\n * @static\n * @constant\n * @type {object}\n * @property {number} DEFAULT=CLAMP\n * @property {number} CLAMP - The textures uvs are clamped\n * @property {number} REPEAT - The texture uvs tile and repeat\n * @property {number} MIRRORED_REPEAT - The texture uvs tile and repeat with mirroring\n */\n WRAP_MODES: {\n DEFAULT: 0,\n CLAMP: 0,\n REPEAT: 1,\n MIRRORED_REPEAT:2\n },\n\n /**\n * The gc modes that are supported by pixi.\n *\n * The DEFAULT Garbage Collection mode for pixi textures is MANUAL\n * If set to DEFAULT, the renderer will occasianally check textures usage. If they are not used for a specified period of time they will be removed from the GPU.\n * They will of corse be uploaded again when they are required. This is a silent behind the scenes process that should ensure that the GPU does not get filled up.\n * Handy for mobile devices!\n * This property only affects WebGL.\n *\n * @static\n * @constant\n * @type {object}\n * @property {number} DEFAULT=MANUAL\n * @property {number} AUTO - Garbage collection will happen periodically automatically\n * @property {number} MANUAL - Garbage collection will need to be called manually\n */\n GC_MODES: {\n DEFAULT: 1,\n AUTO: 0,\n MANUAL: 1,\n },\n\n /**\n * If set to true WebGL will attempt make textures mimpaped by default.\n * Mipmapping will only succeed if the base texture uploaded has power of two dimensions.\n *\n * @static\n * @constant\n * @type {boolean}\n */\n MIPMAP_TEXTURES: true,\n\n /**\n * The prefix that denotes a URL is for a retina asset.\n *\n * @static\n * @constant\n * @type {RegExp|string}\n * @example `@2x`\n */\n RETINA_PREFIX: /@(.+)x/,\n\n /**\n * Default resolution / device pixel ratio of the renderer.\n *\n * @static\n * @constant\n * @type {number}\n */\n RESOLUTION: 1,\n\n /**\n * Default filter resolution.\n *\n * @static\n * @constant\n * @type {number}\n */\n FILTER_RESOLUTION:1,\n\n /**\n * The default render options if none are supplied to {@link PIXI.WebGLRenderer}\n * or {@link PIXI.CanvasRenderer}.\n *\n * @static\n * @constant\n * @type {object}\n * @property {HTMLCanvasElement} view=null\n * @property {number} resolution=1\n * @property {boolean} antialias=false\n * @property {boolean} forceFXAA=false\n * @property {boolean} autoResize=false\n * @property {boolean} transparent=false\n * @property {number} backgroundColor=0x000000\n * @property {boolean} clearBeforeRender=true\n * @property {boolean} preserveDrawingBuffer=false\n * @property {boolean} roundPixels=false\n */\n DEFAULT_RENDER_OPTIONS: {\n view: null,\n resolution: 1,\n antialias: false,\n forceFXAA: false,\n autoResize: false,\n transparent: false,\n backgroundColor: 0x000000,\n clearBeforeRender: true,\n preserveDrawingBuffer: false,\n roundPixels: false\n },\n\n /**\n * Constants that identify shapes, mainly to prevent `instanceof` calls.\n *\n * @static\n * @constant\n * @type {object}\n * @property {number} POLY\n * @property {number} RECT\n * @property {number} CIRC\n * @property {number} ELIP\n * @property {number} RREC\n */\n SHAPES: {\n POLY: 0,\n RECT: 1,\n CIRC: 2,\n ELIP: 3,\n RREC: 4\n },\n\n /**\n * Constants that specify float precision in shaders.\n *\n * @static\n * @constant\n * @type {object}\n * @property {number} DEFAULT='mediump'\n * @property {number} LOW='lowp'\n * @property {number} MEDIUM='mediump'\n * @property {number} HIGH='highp'\n */\n PRECISION: {\n DEFAULT: 'mediump',\n LOW: 'lowp',\n MEDIUM: 'mediump',\n HIGH: 'highp'\n },\n\n /**\n * Constants that specify the transform type.\n *\n * @static\n * @constant\n * @type {object}\n * @property {number} DEFAULT=STATIC\n * @property {number} STATIC\n * @property {number} DYNAMIC\n */\n TRANSFORM_MODE:{\n DEFAULT: 0,\n STATIC: 0,\n DYNAMIC: 1\n },\n\n /**\n * Constants that define the type of gradient on text.\n *\n * @static\n * @constant\n * @type {object}\n * @property {number} LINEAR_VERTICAL\n * @property {number} LINEAR_HORIZONTAL\n */\n TEXT_GRADIENT: {\n LINEAR_VERTICAL: 0,\n LINEAR_HORIZONTAL: 1\n },\n\n // TODO: maybe change to SPRITE.BATCH_SIZE: 2000\n // TODO: maybe add PARTICLE.BATCH_SIZE: 15000\n\n /**\n * The default sprite batch size.\n *\n * The default aims to balance desktop and mobile devices.\n *\n * @static\n * @constant\n * @type {number}\n * @default 4096\n */\n SPRITE_BATCH_SIZE: 4096,\n\n /**\n * The maximum textures that this device supports.\n *\n * @static\n * @constant\n * @type {number}\n */\n SPRITE_MAX_TEXTURES: require('./utils/maxRecommendedTextures')(32)\n};\n\nmodule.exports = CONST;\n","var math = require('../math'),\n Rectangle = math.Rectangle;\n\n/**\n * 'Builder' pattern for bounds rectangles\n * Axis-Aligned Bounding Box\n * It is not a shape! Its mutable thing, no 'EMPTY' or that kind of problems\n *\n * @class\n * @memberof PIXI\n */\nfunction Bounds()\n{\n /**\n * @member {number}\n * @default 0\n */\n this.minX = Infinity;\n\n /**\n * @member {number}\n * @default 0\n */\n this.minY = Infinity;\n\n /**\n * @member {number}\n * @default 0\n */\n this.maxX = -Infinity;\n\n /**\n * @member {number}\n * @default 0\n */\n this.maxY = -Infinity;\n\n this.rect = null;\n}\n\nBounds.prototype.constructor = Bounds;\nmodule.exports = Bounds;\n\nBounds.prototype.isEmpty = function()\n{\n return this.minX > this.maxX || this.minY > this.maxY;\n};\n\nBounds.prototype.clear = function()\n{\n this.updateID++;\n\n this.minX = Infinity;\n this.minY = Infinity;\n this.maxX = -Infinity;\n this.maxY = -Infinity;\n};\n\n/**\n * Can return Rectangle.EMPTY constant, either construct new rectangle, either use your rectangle\n * It is not guaranteed that it will return tempRect\n * @param tempRect {PIXI.Rectangle} temporary object will be used if AABB is not empty\n * @returns {PIXI.Rectangle}\n */\nBounds.prototype.getRectangle = function(rect)\n{\n if (this.minX > this.maxX || this.minY > this.maxY) {\n return Rectangle.EMPTY;\n }\n\n rect = rect || new Rectangle(0, 0, 1, 1);\n\n rect.x = this.minX;\n rect.y = this.minY;\n rect.width = this.maxX - this.minX;\n rect.height = this.maxY - this.minY;\n\n return rect;\n};\n\n/**\n * This function should be inlined when its possible\n * @param point {PIXI.Point}\n */\nBounds.prototype.addPoint = function (point)\n{\n this.minX = Math.min(this.minX, point.x);\n this.maxX = Math.max(this.maxX, point.x);\n this.minY = Math.min(this.minY, point.y);\n this.maxY = Math.max(this.maxY, point.y);\n};\n\n/**\n * Adds a quad, not transformed\n * @param vertices {Float32Array}\n * @returns {PIXI.Bounds}\n */\nBounds.prototype.addQuad = function(vertices)\n{\n var minX = this.minX, minY = this.minY, maxX = this.maxX, maxY = this.maxY;\n\n var x = vertices[0];\n var y = vertices[1];\n minX = x < minX ? x : minX;\n minY = y < minY ? y : minY;\n maxX = x > maxX ? x : maxX;\n maxY = y > maxY ? y : maxY;\n\n x = vertices[2];\n y = vertices[3];\n minX = x < minX ? x : minX;\n minY = y < minY ? y : minY;\n maxX = x > maxX ? x : maxX;\n maxY = y > maxY ? y : maxY;\n\n x = vertices[4];\n y = vertices[5];\n minX = x < minX ? x : minX;\n minY = y < minY ? y : minY;\n maxX = x > maxX ? x : maxX;\n maxY = y > maxY ? y : maxY;\n\n x = vertices[6];\n y = vertices[7];\n minX = x < minX ? x : minX;\n minY = y < minY ? y : minY;\n maxX = x > maxX ? x : maxX;\n maxY = y > maxY ? y : maxY;\n\n this.minX = minX;\n this.minY = minY;\n this.maxX = maxX;\n this.maxY = maxY;\n};\n\n/**\n * Adds sprite frame, transformed\n * @param transform {PIXI.TransformBase}\n * @param x0 {number}\n * @param y0 {number}\n * @param x1 {number}\n * @param y1 {number}\n */\nBounds.prototype.addFrame = function(transform, x0, y0, x1, y1)\n{\n var matrix = transform.worldTransform;\n var a = matrix.a, b = matrix.b, c = matrix.c, d = matrix.d, tx = matrix.tx, ty = matrix.ty;\n var minX = this.minX, minY = this.minY, maxX = this.maxX, maxY = this.maxY;\n\n var x = a * x0 + c * y0 + tx;\n var y = b * x0 + d * y0 + ty;\n minX = x < minX ? x : minX;\n minY = y < minY ? y : minY;\n maxX = x > maxX ? x : maxX;\n maxY = y > maxY ? y : maxY;\n\n x = a * x1 + c * y0 + tx;\n y = b * x1 + d * y0 + ty;\n minX = x < minX ? x : minX;\n minY = y < minY ? y : minY;\n maxX = x > maxX ? x : maxX;\n maxY = y > maxY ? y : maxY;\n\n x = a * x0 + c * y1 + tx;\n y = b * x0 + d * y1 + ty;\n minX = x < minX ? x : minX;\n minY = y < minY ? y : minY;\n maxX = x > maxX ? x : maxX;\n maxY = y > maxY ? y : maxY;\n\n x = a * x1 + c * y1 + tx;\n y = b * x1 + d * y1 + ty;\n minX = x < minX ? x : minX;\n minY = y < minY ? y : minY;\n maxX = x > maxX ? x : maxX;\n maxY = y > maxY ? y : maxY;\n\n this.minX = minX;\n this.minY = minY;\n this.maxX = maxX;\n this.maxY = maxY;\n};\n\n/**\n * add an array of vertices\n * @param transform {PIXI.TransformBase}\n * @param vertices {Float32Array}\n * @param beginOffset {number}\n * @param endOffset {number}\n */\nBounds.prototype.addVertices = function(transform, vertices, beginOffset, endOffset)\n{\n var matrix = transform.worldTransform;\n var a = matrix.a, b = matrix.b, c = matrix.c, d = matrix.d, tx = matrix.tx, ty = matrix.ty;\n var minX = this.minX, minY = this.minY, maxX = this.maxX, maxY = this.maxY;\n\n for (var i = beginOffset; i < endOffset; i += 2)\n {\n var rawX = vertices[i], rawY = vertices[i + 1];\n var x = (a * rawX) + (c * rawY) + tx;\n var y = (d * rawY) + (b * rawX) + ty;\n\n minX = x < minX ? x : minX;\n minY = y < minY ? y : minY;\n maxX = x > maxX ? x : maxX;\n maxY = y > maxY ? y : maxY;\n }\n\n this.minX = minX;\n this.minY = minY;\n this.maxX = maxX;\n this.maxY = maxY;\n};\n\nBounds.prototype.addBounds = function(bounds)\n{\n var minX = this.minX, minY = this.minY, maxX = this.maxX, maxY = this.maxY;\n\n this.minX = bounds.minX < minX ? bounds.minX : minX;\n this.minY = bounds.minY < minY ? bounds.minY : minY;\n this.maxX = bounds.maxX > maxX ? bounds.maxX : maxX;\n this.maxY = bounds.maxY > maxY ? bounds.maxY : maxY;\n};\n","var utils = require('../utils'),\n DisplayObject = require('./DisplayObject');\n\n/**\n * A Container represents a collection of display objects.\n * It is the base class of all display objects that act as a container for other objects.\n *\n *```js\n * var container = new PIXI.Container();\n * container.addChild(sprite);\n * ```\n * @class\n * @extends PIXI.DisplayObject\n * @memberof PIXI\n */\nfunction Container()\n{\n DisplayObject.call(this);\n\n /**\n * The array of children of this container.\n *\n * @member {PIXI.DisplayObject[]}\n * @readonly\n */\n this.children = [];\n}\n\n// constructor\nContainer.prototype = Object.create(DisplayObject.prototype);\nContainer.prototype.constructor = Container;\nmodule.exports = Container;\n\nObject.defineProperties(Container.prototype, {\n /**\n * The width of the Container, setting this will actually modify the scale to achieve the value set\n *\n * @member {number}\n * @memberof PIXI.Container#\n */\n width: {\n get: function ()\n {\n return this.scale.x * this.getLocalBounds().width;\n },\n set: function (value)\n {\n\n var width = this.getLocalBounds().width;\n\n if (width !== 0)\n {\n this.scale.x = value / width;\n }\n else\n {\n this.scale.x = 1;\n }\n\n\n this._width = value;\n }\n },\n\n /**\n * The height of the Container, setting this will actually modify the scale to achieve the value set\n *\n * @member {number}\n * @memberof PIXI.Container#\n */\n height: {\n get: function ()\n {\n return this.scale.y * this.getLocalBounds().height;\n },\n set: function (value)\n {\n\n var height = this.getLocalBounds().height;\n\n if (height !== 0)\n {\n this.scale.y = value / height ;\n }\n else\n {\n this.scale.y = 1;\n }\n\n this._height = value;\n }\n }\n});\n\n/**\n * Overridable method that can be used by Container subclasses whenever the children array is modified\n *\n * @private\n */\nContainer.prototype.onChildrenChange = function () {};\n\n/**\n * Adds a child or multiple children to the container.\n *\n * Multple items can be added like so: `myContainer.addChild(thinkOne, thingTwo, thingThree)`\n * @param child {...PIXI.DisplayObject} The DisplayObject(s) to add to the container\n * @return {PIXI.DisplayObject} The first child that was added.\n */\nContainer.prototype.addChild = function (child)\n{\n var argumentsLength = arguments.length;\n\n // if there is only one argument we can bypass looping through the them\n if(argumentsLength > 1)\n {\n // loop through the arguments property and add all children\n // use it the right way (.length and [i]) so that this function can still be optimised by JS runtimes\n for (var i = 0; i < argumentsLength; i++)\n {\n this.addChild( arguments[i] );\n }\n }\n else\n {\n // if the child has a parent then lets remove it as Pixi objects can only exist in one place\n if (child.parent)\n {\n child.parent.removeChild(child);\n }\n\n child.parent = this;\n\n // ensure a transform will be recalculated..\n this.transform._parentID = -1;\n\n this.children.push(child);\n\n // TODO - lets either do all callbacks or all events.. not both!\n this.onChildrenChange(this.children.length-1);\n child.emit('added', this);\n }\n\n return child;\n};\n\n/**\n * Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown\n *\n * @param child {PIXI.DisplayObject} The child to add\n * @param index {number} The index to place the child in\n * @return {PIXI.DisplayObject} The child that was added.\n */\nContainer.prototype.addChildAt = function (child, index)\n{\n if (index >= 0 && index <= this.children.length)\n {\n if (child.parent)\n {\n child.parent.removeChild(child);\n }\n\n child.parent = this;\n\n this.children.splice(index, 0, child);\n\n // TODO - lets either do all callbacks or all events.. not both!\n this.onChildrenChange(index);\n child.emit('added', this);\n\n return child;\n }\n else\n {\n throw new Error(child + 'addChildAt: The index '+ index +' supplied is out of bounds ' + this.children.length);\n }\n};\n\n/**\n * Swaps the position of 2 Display Objects within this container.\n *\n * @param child {PIXI.DisplayObject} First display object to swap\n * @param child2 {PIXI.DisplayObject} Second display object to swap\n */\nContainer.prototype.swapChildren = function (child, child2)\n{\n if (child === child2)\n {\n return;\n }\n\n var index1 = this.getChildIndex(child);\n var index2 = this.getChildIndex(child2);\n\n if (index1 < 0 || index2 < 0)\n {\n throw new Error('swapChildren: Both the supplied DisplayObjects must be children of the caller.');\n }\n\n this.children[index1] = child2;\n this.children[index2] = child;\n this.onChildrenChange(index1 < index2 ? index1 : index2);\n};\n\n/**\n * Returns the index position of a child DisplayObject instance\n *\n * @param child {PIXI.DisplayObject} The DisplayObject instance to identify\n * @return {number} The index position of the child display object to identify\n */\nContainer.prototype.getChildIndex = function (child)\n{\n var index = this.children.indexOf(child);\n\n if (index === -1)\n {\n throw new Error('The supplied DisplayObject must be a child of the caller');\n }\n\n return index;\n};\n\n/**\n * Changes the position of an existing child in the display object container\n *\n * @param child {PIXI.DisplayObject} The child DisplayObject instance for which you want to change the index number\n * @param index {number} The resulting index number for the child display object\n */\nContainer.prototype.setChildIndex = function (child, index)\n{\n if (index < 0 || index >= this.children.length)\n {\n throw new Error('The supplied index is out of bounds');\n }\n\n var currentIndex = this.getChildIndex(child);\n\n utils.removeItems(this.children, currentIndex, 1); // remove from old position\n this.children.splice(index, 0, child); //add at new position\n this.onChildrenChange(index);\n};\n\n/**\n * Returns the child at the specified index\n *\n * @param index {number} The index to get the child at\n * @return {PIXI.DisplayObject} The child at the given index, if any.\n */\nContainer.prototype.getChildAt = function (index)\n{\n if (index < 0 || index >= this.children.length)\n {\n throw new Error('getChildAt: Supplied index ' + index + ' does not exist in the child list, or the supplied DisplayObject is not a child of the caller');\n }\n\n return this.children[index];\n};\n\n/**\n * Removes a child from the container.\n *\n * @param child {PIXI.DisplayObject} The DisplayObject to remove\n * @return {PIXI.DisplayObject} The child that was removed.\n */\nContainer.prototype.removeChild = function (child)\n{\n var argumentsLength = arguments.length;\n\n // if there is only one argument we can bypass looping through the them\n if(argumentsLength > 1)\n {\n // loop through the arguments property and add all children\n // use it the right way (.length and [i]) so that this function can still be optimised by JS runtimes\n for (var i = 0; i < argumentsLength; i++)\n {\n this.removeChild( arguments[i] );\n }\n }\n else\n {\n var index = this.children.indexOf(child);\n\n if (index === -1)\n {\n return;\n }\n\n child.parent = null;\n utils.removeItems(this.children, index, 1);\n\n // TODO - lets either do all callbacks or all events.. not both!\n this.onChildrenChange(index);\n child.emit('removed', this);\n }\n\n return child;\n};\n\n/**\n * Removes a child from the specified index position.\n *\n * @param index {number} The index to get the child from\n * @return {PIXI.DisplayObject} The child that was removed.\n */\nContainer.prototype.removeChildAt = function (index)\n{\n var child = this.getChildAt(index);\n\n child.parent = null;\n utils.removeItems(this.children, index, 1);\n\n // TODO - lets either do all callbacks or all events.. not both!\n this.onChildrenChange(index);\n child.emit('removed', this);\n\n return child;\n};\n\n/**\n * Removes all children from this container that are within the begin and end indexes.\n *\n * @param [beginIndex=0] {number} The beginning position.\n * @param [endIndex=this.children.length] {number} The ending position. Default value is size of the container.\n */\nContainer.prototype.removeChildren = function (beginIndex, endIndex)\n{\n var begin = beginIndex || 0;\n var end = typeof endIndex === 'number' ? endIndex : this.children.length;\n var range = end - begin;\n var removed, i;\n\n if (range > 0 && range <= end)\n {\n removed = this.children.splice(begin, range);\n\n for (i = 0; i < removed.length; ++i)\n {\n removed[i].parent = null;\n }\n\n this.onChildrenChange(beginIndex);\n\n for (i = 0; i < removed.length; ++i)\n {\n removed[i].emit('removed', this);\n }\n\n return removed;\n }\n else if (range === 0 && this.children.length === 0)\n {\n return [];\n }\n else\n {\n throw new RangeError('removeChildren: numeric values are outside the acceptable range.');\n }\n};\n\n/*\n * Updates the transform on all children of this container for rendering\n *\n * @private\n */\nContainer.prototype.updateTransform = function ()\n{\n this._boundsID++;\n\n if (!this.visible)\n {\n return;\n }\n\n this.transform.updateTransform(this.parent.transform);\n\n //TODO: check render flags, how to process stuff here\n this.worldAlpha = this.alpha * this.parent.worldAlpha;\n\n for (var i = 0, j = this.children.length; i < j; ++i)\n {\n this.children[i].updateTransform();\n }\n};\n\n// performance increase to avoid using call.. (10x faster)\nContainer.prototype.containerUpdateTransform = Container.prototype.updateTransform;\n\n\nContainer.prototype.calculateBounds = function ()\n{\n this._bounds.clear();\n\n if(!this.visible)\n {\n return;\n }\n\n this._calculateBounds();\n\n for (var i = 0; i < this.children.length; i++)\n {\n var child = this.children[i];\n\n child.calculateBounds();\n\n this._bounds.addBounds(child._bounds);\n }\n\n this._boundsID = this._lastBoundsID;\n};\n\nContainer.prototype._calculateBounds = function ()\n{\n //FILL IN//\n};\n\n/**\n * Renders the object using the WebGL renderer\n *\n * @param renderer {PIXI.WebGLRenderer} The renderer\n */\nContainer.prototype.renderWebGL = function (renderer)\n{\n\n // if the object is not visible or the alpha is 0 then no need to render this element\n if (!this.visible || this.worldAlpha <= 0 || !this.renderable)\n {\n\n return;\n }\n\n\n // do a quick check to see if this element has a mask or a filter.\n if (this._mask || this._filters)\n {\n this.renderAdvancedWebGL(renderer);\n }\n else\n {\n this._renderWebGL(renderer);\n\n // simple render children!\n for (var i = 0, j = this.children.length; i < j; ++i)\n {\n this.children[i].renderWebGL(renderer);\n }\n }\n};\n\nContainer.prototype.renderAdvancedWebGL = function (renderer)\n{\n renderer.currentRenderer.flush();\n\n var filters = this._filters;\n var mask = this._mask;\n var i, j;\n\n // push filter first as we need to ensure the stencil buffer is correct for any masking\n if ( filters )\n {\n if(!this._enabledFilters)\n {\n this._enabledFilters = [];\n }\n\n this._enabledFilters.length = 0;\n\n for (i = 0; i < filters.length; i++)\n {\n if(filters[i].enabled)\n {\n this._enabledFilters.push( filters[i] );\n }\n }\n\n if( this._enabledFilters.length )\n {\n renderer.filterManager.pushFilter(this, this._enabledFilters);\n }\n }\n\n if ( mask )\n {\n renderer.maskManager.pushMask(this, this._mask);\n }\n\n renderer.currentRenderer.start();\n\n // add this object to the batch, only rendered if it has a texture.\n this._renderWebGL(renderer);\n\n // now loop through the children and make sure they get rendered\n for (i = 0, j = this.children.length; i < j; i++)\n {\n this.children[i].renderWebGL(renderer);\n }\n\n renderer.currentRenderer.flush();\n\n if ( mask )\n {\n renderer.maskManager.popMask(this, this._mask);\n }\n\n if ( filters && this._enabledFilters && this._enabledFilters.length )\n {\n renderer.filterManager.popFilter();\n }\n\n renderer.currentRenderer.start();\n};\n\n/**\n * To be overridden by the subclass\n *\n * @param renderer {PIXI.WebGLRenderer} The renderer\n * @private\n */\nContainer.prototype._renderWebGL = function (renderer) // jshint unused:false\n{\n // this is where content itself gets rendered...\n};\n\n/**\n * To be overridden by the subclass\n *\n * @param renderer {PIXI.CanvasRenderer} The renderer\n * @private\n */\nContainer.prototype._renderCanvas = function (renderer) // jshint unused:false\n{\n // this is where content itself gets rendered...\n};\n\n\n/**\n * Renders the object using the Canvas renderer\n *\n * @param renderer {PIXI.CanvasRenderer} The renderer\n */\nContainer.prototype.renderCanvas = function (renderer)\n{\n // if not visible or the alpha is 0 then no need to render this\n if (!this.visible || this.alpha <= 0 || !this.renderable)\n {\n return;\n }\n\n if (this._mask)\n {\n renderer.maskManager.pushMask(this._mask);\n }\n\n this._renderCanvas(renderer);\n for (var i = 0, j = this.children.length; i < j; ++i)\n {\n this.children[i].renderCanvas(renderer);\n }\n\n if (this._mask)\n {\n renderer.maskManager.popMask(renderer);\n }\n};\n\n/**\n * Removes all internal references and listeners as well as removes children from the display list. \n * Do not use a Container after calling `destroy`.\n * @param [options] {object|boolean} Options parameter. A boolean will act as if all options have been set to that value\n * @param [options.children=false] {boolean} if set to true, all the children will have their destroy\n * method called as well. 'options' will be passed on to those calls.\n */\nContainer.prototype.destroy = function (options)\n{\n DisplayObject.prototype.destroy.call(this);\n\n var destroyChildren = typeof options === 'boolean' ? options : options && options.children;\n\n var oldChildren = this.children;\n this.children = null;\n\n if (destroyChildren)\n {\n for (var i = oldChildren.length - 1; i >= 0; i--)\n {\n var child = oldChildren[i];\n child.parent = null;\n child.destroy(options);\n }\n }\n};\n","var EventEmitter = require('eventemitter3'),\n CONST = require('../const'),\n TransformStatic = require('./TransformStatic'),\n Transform = require('./Transform'),\n Bounds = require('./Bounds'),\n math = require('../math'),\n _tempDisplayObjectParent = new DisplayObject();\n\n/**\n * The base class for all objects that are rendered on the screen.\n * This is an abstract class and should not be used on its own rather it should be extended.\n *\n * @class\n * @extends EventEmitter\n * @mixes PIXI.interaction.interactiveTarget\n * @memberof PIXI\n */\nfunction DisplayObject()\n{\n EventEmitter.call(this);\n\n var TransformClass = CONST.TRANSFORM_MODE.DEFAULT === CONST.TRANSFORM_MODE.STATIC ? TransformStatic : Transform;\n\n //TODO: need to create Transform from factory\n /**\n * World transform and local transform of this object.\n * This will be reworked in v4.1, please do not use it yet unless you know what are you doing!\n *\n * @member {PIXI.TransformBase}\n */\n this.transform = new TransformClass();\n\n /**\n * The opacity of the object.\n *\n * @member {number}\n */\n this.alpha = 1;\n\n /**\n * The visibility of the object. If false the object will not be drawn, and\n * the updateTransform function will not be called.\n *\n * @member {boolean}\n */\n this.visible = true;\n\n /**\n * Can this object be rendered, if false the object will not be drawn but the updateTransform\n * methods will still be called.\n *\n * @member {boolean}\n */\n this.renderable = true;\n\n /**\n * The display object container that contains this display object.\n *\n * @member {PIXI.Container}\n * @readonly\n */\n this.parent = null;\n\n /**\n * The multiplied alpha of the displayObject\n *\n * @member {number}\n * @readonly\n */\n this.worldAlpha = 1;\n\n /**\n * The area the filter is applied to. This is used as more of an optimisation\n * rather than figuring out the dimensions of the displayObject each frame you can set this rectangle\n *\n * Also works as an interaction mask\n *\n * @member {PIXI.Rectangle}\n */\n this.filterArea = null;\n\n this._filters = null;\n this._enabledFilters = null;\n\n /**\n * The bounds object, this is used to calculate and store the bounds of the displayObject\n *\n * @member {PIXI.Rectangle}\n * @private\n */\n this._bounds = new Bounds();\n this._boundsID = 0;\n this._lastBoundsID = -1;\n this._boundsRect = null;\n this._localBoundsRect = null;\n\n /**\n * The original, cached mask of the object\n *\n * @member {PIXI.Rectangle}\n * @private\n */\n this._mask = null;\n\n\n}\n\n// constructor\nDisplayObject.prototype = Object.create(EventEmitter.prototype);\nDisplayObject.prototype.constructor = DisplayObject;\nmodule.exports = DisplayObject;\n\n\nObject.defineProperties(DisplayObject.prototype, {\n /**\n * The position of the displayObject on the x axis relative to the local coordinates of the parent.\n * An alias to position.x\n *\n * @member {number}\n * @memberof PIXI.DisplayObject#\n */\n x: {\n get: function ()\n {\n return this.position.x;\n },\n set: function (value)\n {\n this.transform.position.x = value;\n }\n },\n\n /**\n * The position of the displayObject on the y axis relative to the local coordinates of the parent.\n * An alias to position.y\n *\n * @member {number}\n * @memberof PIXI.DisplayObject#\n */\n y: {\n get: function ()\n {\n return this.position.y;\n },\n set: function (value)\n {\n this.transform.position.y = value;\n }\n },\n\n /**\n * Current transform of the object based on world (parent) factors\n *\n * @member {PIXI.Matrix}\n * @memberof PIXI.DisplayObject#\n * @readonly\n */\n worldTransform: {\n get: function ()\n {\n return this.transform.worldTransform;\n }\n },\n\n /**\n * Current transform of the object based on local factors: position, scale, other stuff\n *\n * @member {PIXI.Matrix}\n * @memberof PIXI.DisplayObject#\n * @readonly\n */\n localTransform: {\n get: function ()\n {\n return this.transform.localTransform;\n }\n },\n\n /**\n * The coordinate of the object relative to the local coordinates of the parent.\n * Assignment by value since pixi-v4.\n *\n * @member {PIXI.Point|PIXI.ObservablePoint}\n * @memberof PIXI.DisplayObject#\n */\n position: {\n get: function()\n {\n return this.transform.position;\n },\n set: function(value) {\n this.transform.position.copy(value);\n }\n },\n\n /**\n * The scale factor of the object.\n * Assignment by value since pixi-v4.\n *\n * @member {PIXI.Point|PIXI.ObservablePoint}\n * @memberof PIXI.DisplayObject#\n */\n scale: {\n get: function() {\n return this.transform.scale;\n },\n set: function(value) {\n this.transform.scale.copy(value);\n }\n },\n\n /**\n * The pivot point of the displayObject that it rotates around\n * Assignment by value since pixi-v4.\n *\n * @member {PIXI.Point|PIXI.ObservablePoint}\n * @memberof PIXI.DisplayObject#\n */\n pivot: {\n get: function() {\n return this.transform.pivot;\n },\n set: function(value) {\n this.transform.pivot.copy(value);\n }\n },\n\n /**\n * The skew factor for the object in radians.\n * Assignment by value since pixi-v4.\n *\n * @member {PIXI.ObservablePoint}\n * @memberof PIXI.DisplayObject#\n */\n skew: {\n get: function() {\n return this.transform.skew;\n },\n set: function(value) {\n this.transform.skew.copy(value);\n }\n },\n\n /**\n * The rotation of the object in radians.\n *\n * @member {number}\n * @memberof PIXI.DisplayObject#\n */\n rotation: {\n get: function ()\n {\n return this.transform.rotation;\n },\n set: function (value)\n {\n this.transform.rotation = value;\n }\n },\n\n /**\n * Indicates if the sprite is globally visible.\n *\n * @member {boolean}\n * @memberof PIXI.DisplayObject#\n * @readonly\n */\n worldVisible: {\n get: function ()\n {\n var item = this;\n\n do {\n if (!item.visible)\n {\n return false;\n }\n\n item = item.parent;\n } while (item);\n\n return true;\n }\n },\n\n /**\n * 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.\n * In PIXI a regular mask must be a PIXI.Graphics or a PIXI.Sprite object. This allows for much faster masking in canvas as it utilises shape clipping.\n * To remove a mask, set this property to null.\n *\n * @todo For the moment, PIXI.CanvasRenderer doesn't support PIXI.Sprite as mask.\n *\n * @member {PIXI.Graphics|PIXI.Sprite}\n * @memberof PIXI.DisplayObject#\n */\n mask: {\n get: function ()\n {\n return this._mask;\n },\n set: function (value)\n {\n if (this._mask)\n {\n this._mask.renderable = true;\n }\n\n this._mask = value;\n\n if (this._mask)\n {\n this._mask.renderable = false;\n }\n }\n },\n\n /**\n * Sets the filters for the displayObject.\n * * IMPORTANT: This is a webGL only feature and will be ignored by the canvas renderer.\n * To remove filters simply set this property to 'null'\n *\n * @member {PIXI.AbstractFilter[]}\n * @memberof PIXI.DisplayObject#\n */\n filters: {\n get: function ()\n {\n return this._filters && this._filters.slice();\n },\n set: function (value)\n {\n this._filters = value && value.slice();\n }\n }\n\n});\n\n/*\n * Updates the object transform for rendering\n *\n * TODO - Optimization pass!\n */\nDisplayObject.prototype.updateTransform = function ()\n{\n this.transform.updateTransform(this.parent.transform);\n // multiply the alphas..\n this.worldAlpha = this.alpha * this.parent.worldAlpha;\n\n this._bounds.updateID++;\n};\n\n// performance increase to avoid using call.. (10x faster)\nDisplayObject.prototype.displayObjectUpdateTransform = DisplayObject.prototype.updateTransform;\n\n/**\n * recursively updates transform of all objects from the root to this one\n * internal function for toLocal()\n */\nDisplayObject.prototype._recursivePostUpdateTransform = function()\n{\n if (this.parent)\n {\n this.parent._recursivePostUpdateTransform();\n this.transform.updateTransform(this.parent.transform);\n }\n else\n {\n this.transform.updateTransform(_tempDisplayObjectParent.transform);\n }\n};\n\n/**\n *\n *\n * Retrieves the bounds of the displayObject as a rectangle object.\n * @param skipUpdate {boolean} setting to true will stop the transforms of the scene graph from being updated. This means the calculation returned MAY be out of date BUT will give you a nice performance boost\n * @param rect {PIXI.Rectangle} Optional rectangle to store the result of the bounds calculation\n * @return {PIXI.Rectangle} the rectangular bounding area\n */\nDisplayObject.prototype.getBounds = function (skipUpdate, rect)\n{\n if(!skipUpdate)\n {\n if(!this.parent)\n {\n this.parent = _tempDisplayObjectParent;\n this.parent.transform._worldID++;\n this.updateTransform();\n this.parent = null;\n }\n else\n {\n this._recursivePostUpdateTransform();\n this.updateTransform();\n }\n }\n\n if(this._boundsID !== this._lastBoundsID)\n {\n this.calculateBounds();\n }\n\n if(!rect)\n {\n if(!this._boundsRect)\n {\n this._boundsRect = new math.Rectangle();\n }\n\n rect = this._boundsRect;\n }\n\n return this._bounds.getRectangle(rect);\n};\n\n/**\n * Retrieves the local bounds of the displayObject as a rectangle object\n * @param rect {PIXI.Rectangle} Optional rectangle to store the result of the bounds calculation\n * @return {PIXI.Rectangle} the rectangular bounding area\n */\nDisplayObject.prototype.getLocalBounds = function (rect)\n{\n var transformRef = this.transform;\n var parentRef = this.parent;\n\n this.parent = null;\n this.transform = _tempDisplayObjectParent.transform;\n\n if(!rect)\n {\n if(!this._localBoundsRect)\n {\n this._localBoundsRect = new math.Rectangle();\n }\n\n rect = this._localBoundsRect;\n }\n\n var bounds = this.getBounds(false, rect);\n\n this.parent = parentRef;\n this.transform = transformRef;\n\n return bounds;\n};\n\n/**\n * Calculates the global position of the display object\n *\n * @param position {PIXI.Point} The world origin to calculate from\n * @return {PIXI.Point} A point object representing the position of this object\n */\nDisplayObject.prototype.toGlobal = function (position, point, skipUpdate)\n{\n if(!skipUpdate)\n {\n this._recursivePostUpdateTransform();\n\n // this parent check is for just in case the item is a root object.\n // If it is we need to give it a temporary parent so that displayObjectUpdateTransform works correctly\n // this is mainly to avoid a parent check in the main loop. Every little helps for performance :)\n if(!this.parent)\n {\n this.parent = _tempDisplayObjectParent;\n this.displayObjectUpdateTransform();\n this.parent = null;\n }\n else\n {\n this.displayObjectUpdateTransform();\n }\n }\n\n // don't need to update the lot\n return this.worldTransform.apply(position, point);\n};\n\n/**\n * Calculates the local position of the display object relative to another point\n *\n * @param position {PIXI.Point} The world origin to calculate from\n * @param [from] {PIXI.DisplayObject} The DisplayObject to calculate the global position from\n * @param [point] {PIXI.Point} A Point object in which to store the value, optional (otherwise will create a new Point)\n * @return {PIXI.Point} A point object representing the position of this object\n */\nDisplayObject.prototype.toLocal = function (position, from, point, skipUpdate)\n{\n if (from)\n {\n position = from.toGlobal(position, point, skipUpdate);\n }\n\n if(! skipUpdate)\n {\n this._recursivePostUpdateTransform();\n\n // this parent check is for just in case the item is a root object.\n // If it is we need to give it a temporary parent so that displayObjectUpdateTransform works correctly\n // this is mainly to avoid a parent check in the main loop. Every little helps for performance :)\n if(!this.parent)\n {\n this.parent = _tempDisplayObjectParent;\n this.displayObjectUpdateTransform();\n this.parent = null;\n }\n else\n {\n this.displayObjectUpdateTransform();\n }\n }\n\n // simply apply the matrix..\n return this.worldTransform.applyInverse(position, point);\n};\n\n/**\n * Renders the object using the WebGL renderer\n *\n * @param renderer {PIXI.WebGLRenderer} The renderer\n */\nDisplayObject.prototype.renderWebGL = function (renderer) // jshint unused:false\n{\n // OVERWRITE;\n};\n\n/**\n * Renders the object using the Canvas renderer\n *\n * @param renderer {PIXI.CanvasRenderer} The renderer\n */\nDisplayObject.prototype.renderCanvas = function (renderer) // jshint unused:false\n{\n // OVERWRITE;\n};\n\n/**\n * Set the parent Container of this DisplayObject\n *\n * @param container {PIXI.Container} The Container to add this DisplayObject to\n * @return {PIXI.Container} The Container that this DisplayObject was added to\n */\nDisplayObject.prototype.setParent = function (container)\n{\n if (!container || !container.addChild)\n {\n throw new Error('setParent: Argument must be a Container');\n }\n\n container.addChild(this);\n return container;\n};\n\n/**\n * Convenience function to set the postion, scale, skew and pivot at once.\n *\n * @param [x=0] {number} The X position\n * @param [y=0] {number} The Y position\n * @param [scaleX=1] {number} The X scale value\n * @param [scaleY=1] {number} The Y scale value\n * @param [rotation=0] {number} The rotation\n * @param [skewX=0] {number} The X skew value\n * @param [skewY=0] {number} The Y skew value\n * @param [pivotX=0] {number} The X pivot value\n * @param [pivotY=0] {number} The Y pivot value\n * @return {PIXI.DisplayObject} The DisplayObject instance\n */\nDisplayObject.prototype.setTransform = function(x, y, scaleX, scaleY, rotation, skewX, skewY, pivotX, pivotY) //jshint ignore:line\n{\n this.position.x = x || 0;\n this.position.y = y || 0;\n this.scale.x = !scaleX ? 1 : scaleX;\n this.scale.y = !scaleY ? 1 : scaleY;\n this.rotation = rotation || 0;\n this.skew.x = skewX || 0;\n this.skew.y = skewY || 0;\n this.pivot.x = pivotX || 0;\n this.pivot.y = pivotY || 0;\n return this;\n};\n\n/**\n * Base destroy method for generic display objects. This will automatically\n * remove the display object from its parent Container as well as remove\n * all current event listeners and internal references. Do not use a DisplayObject \n * after calling `destroy`.\n */\nDisplayObject.prototype.destroy = function ()\n{\n this.removeAllListeners();\n if (this.parent)\n {\n this.parent.removeChild(this);\n }\n this.transform = null;\n\n this.parent = null;\n\n this._bounds = null;\n this._currentBounds = null;\n this._mask = null;\n\n this.filterArea = null;\n};\n","var math = require('../math'),\n TransformBase = require('./TransformBase');\n\n\n/**\n * Generic class to deal with traditional 2D matrix transforms\n * local transformation is calculated from position,scale,skew and rotation\n *\n * @class\n * @extends PIXI.TransformBase\n * @memberof PIXI\n */\nfunction Transform()\n{\n TransformBase.call(this);\n\n /**\n * The coordinate of the object relative to the local coordinates of the parent.\n *\n * @member {PIXI.Point}\n */\n this.position = new math.Point(0,0);\n\n /**\n * The scale factor of the object.\n *\n * @member {PIXI.Point}\n */\n this.scale = new math.Point(1,1);\n\n /**\n * The skew amount, on the x and y axis.\n *\n * @member {PIXI.ObservablePoint}\n */\n this.skew = new math.ObservablePoint(this.updateSkew, this, 0,0);\n\n /**\n * The pivot point of the displayObject that it rotates around\n *\n * @member {PIXI.Point}\n */\n this.pivot = new math.Point(0,0);\n\n /**\n * The rotation value of the object, in radians\n *\n * @member {Number}\n * @private\n */\n this._rotation = 0;\n\n this._sr = Math.sin(0);\n this._cr = Math.cos(0);\n this._cy = Math.cos(0);//skewY);\n this._sy = Math.sin(0);//skewY);\n this._nsx = Math.sin(0);//skewX);\n this._cx = Math.cos(0);//skewX);\n}\n\nTransform.prototype = Object.create(TransformBase.prototype);\nTransform.prototype.constructor = Transform;\n\nTransform.prototype.updateSkew = function ()\n{\n this._cy = Math.cos(this.skew.y);\n this._sy = Math.sin(this.skew.y);\n this._nsx = Math.sin(this.skew.x);\n this._cx = Math.cos(this.skew.x);\n};\n\n/**\n * Updates only local matrix\n */\nTransform.prototype.updateLocalTransform = function() {\n var lt = this.localTransform;\n var a, b, c, d;\n\n a = this._cr * this.scale.x;\n b = this._sr * this.scale.x;\n c = -this._sr * this.scale.y;\n d = this._cr * this.scale.y;\n\n lt.a = this._cy * a + this._sy * c;\n lt.b = this._cy * b + this._sy * d;\n lt.c = this._nsx * a + this._cx * c;\n lt.d = this._nsx * b + this._cx * d;\n};\n\n/**\n * Updates the values of the object and applies the parent's transform.\n * @param parentTransform {PIXI.Transform} The transform of the parent of this object\n */\nTransform.prototype.updateTransform = function (parentTransform)\n{\n\n var pt = parentTransform.worldTransform;\n var wt = this.worldTransform;\n var lt = this.localTransform;\n var a, b, c, d;\n\n a = this._cr * this.scale.x;\n b = this._sr * this.scale.x;\n c = -this._sr * this.scale.y;\n d = this._cr * this.scale.y;\n\n lt.a = this._cy * a + this._sy * c;\n lt.b = this._cy * b + this._sy * d;\n lt.c = this._nsx * a + this._cx * c;\n lt.d = this._nsx * b + this._cx * d;\n\n lt.tx = this.position.x - (this.pivot.x * lt.a + this.pivot.y * lt.c);\n lt.ty = this.position.y - (this.pivot.x * lt.b + this.pivot.y * lt.d);\n\n // concat the parent matrix with the objects transform.\n wt.a = lt.a * pt.a + lt.b * pt.c;\n wt.b = lt.a * pt.b + lt.b * pt.d;\n wt.c = lt.c * pt.a + lt.d * pt.c;\n wt.d = lt.c * pt.b + lt.d * pt.d;\n wt.tx = lt.tx * pt.a + lt.ty * pt.c + pt.tx;\n wt.ty = lt.tx * pt.b + lt.ty * pt.d + pt.ty;\n\n this._worldID ++;\n};\n\n/**\n * Decomposes a matrix and sets the transforms properties based on it.\n * @param {PIXI.Matrix} The matrix to decompose\n */\nTransform.prototype.setFromMatrix = function (matrix)\n{\n matrix.decompose(this);\n};\n\n\nObject.defineProperties(Transform.prototype, {\n /**\n * The rotation of the object in radians.\n *\n * @member {number}\n * @memberof PIXI.Transform#\n */\n rotation: {\n get: function () {\n return this._rotation;\n },\n set: function (value) {\n this._rotation = value;\n this._sr = Math.sin(value);\n this._cr = Math.cos(value);\n }\n }\n});\n\nmodule.exports = Transform;\n","var math = require('../math');\n\n\n/**\n * Generic class to deal with traditional 2D matrix transforms\n *\n * @class\n * @memberof PIXI\n */\nfunction TransformBase()\n{\n /**\n * The global matrix transform. It can be swapped temporarily by some functions like getLocalBounds()\n *\n * @member {PIXI.Matrix}\n */\n this.worldTransform = new math.Matrix();\n /**\n * The local matrix transform\n * \n * @member {PIXI.Matrix}\n */\n this.localTransform = new math.Matrix();\n\n this._worldID = 0;\n}\n\nTransformBase.prototype.constructor = TransformBase;\n\n/**\n * TransformBase does not have decomposition, so this function wont do anything\n */\nTransformBase.prototype.updateLocalTransform = function() { // jshint unused:false\n\n};\n\n/**\n * Updates the values of the object and applies the parent's transform.\n * @param parentTransform {PIXI.TransformBase} The transform of the parent of this object\n *\n */\nTransformBase.prototype.updateTransform = function (parentTransform)\n{\n var pt = parentTransform.worldTransform;\n var wt = this.worldTransform;\n var lt = this.localTransform;\n\n // concat the parent matrix with the objects transform.\n wt.a = lt.a * pt.a + lt.b * pt.c;\n wt.b = lt.a * pt.b + lt.b * pt.d;\n wt.c = lt.c * pt.a + lt.d * pt.c;\n wt.d = lt.c * pt.b + lt.d * pt.d;\n wt.tx = lt.tx * pt.a + lt.ty * pt.c + pt.tx;\n wt.ty = lt.tx * pt.b + lt.ty * pt.d + pt.ty;\n\n this._worldID ++;\n};\n\n/**\n * Updates the values of the object and applies the parent's transform.\n * @param parentTransform {PIXI.Transform} The transform of the parent of this object\n *\n */\nTransformBase.prototype.updateWorldTransform = TransformBase.prototype.updateTransform;\n\nTransformBase.IDENTITY = new TransformBase();\n\nmodule.exports = TransformBase;\n","var math = require('../math'),\n TransformBase = require('./TransformBase');\n\n/**\n * Transform that takes care about its versions\n *\n * @class\n * @extends PIXI.TransformBase\n * @memberof PIXI\n */\nfunction TransformStatic()\n{\n TransformBase.call(this);\n /**\n * The coordinate of the object relative to the local coordinates of the parent.\n *\n * @member {PIXI.ObservablePoint}\n */\n this.position = new math.ObservablePoint(this.onChange, this,0,0);\n\n /**\n * The scale factor of the object.\n *\n * @member {PIXI.ObservablePoint}\n */\n this.scale = new math.ObservablePoint(this.onChange, this,1,1);\n\n /**\n * The pivot point of the displayObject that it rotates around\n *\n * @member {PIXI.ObservablePoint}\n */\n this.pivot = new math.ObservablePoint(this.onChange, this,0, 0);\n\n /**\n * The skew amount, on the x and y axis.\n *\n * @member {PIXI.ObservablePoint}\n */\n this.skew = new math.ObservablePoint(this.updateSkew, this,0, 0);\n\n this._rotation = 0;\n\n this._sr = Math.sin(0);\n this._cr = Math.cos(0);\n this._cy = Math.cos(0);//skewY);\n this._sy = Math.sin(0);//skewY);\n this._nsx = Math.sin(0);//skewX);\n this._cx = Math.cos(0);//skewX);\n\n this._localID = 0;\n this._currentLocalID = 0;\n}\n\nTransformStatic.prototype = Object.create(TransformBase.prototype);\nTransformStatic.prototype.constructor = TransformStatic;\n\nTransformStatic.prototype.onChange = function ()\n{\n this._localID ++;\n};\n\nTransformStatic.prototype.updateSkew = function ()\n{\n this._cy = Math.cos(this.skew._y);\n this._sy = Math.sin(this.skew._y);\n this._nsx = Math.sin(this.skew._x);\n this._cx = Math.cos(this.skew._x);\n\n this._localID ++;\n};\n\n/**\n * Updates only local matrix\n */\nTransformStatic.prototype.updateLocalTransform = function() {\n var lt = this.localTransform;\n if(this._localID !== this._currentLocalID)\n {\n // get the matrix values of the displayobject based on its transform properties..\n var a,b,c,d;\n\n a = this._cr * this.scale._x;\n b = this._sr * this.scale._x;\n c = -this._sr * this.scale._y;\n d = this._cr * this.scale._y;\n\n lt.a = this._cy * a + this._sy * c;\n lt.b = this._cy * b + this._sy * d;\n lt.c = this._nsx * a + this._cx * c;\n lt.d = this._nsx * b + this._cx * d;\n\n lt.tx = this.position._x - (this.pivot._x * lt.a + this.pivot._y * lt.c);\n lt.ty = this.position._y - (this.pivot._x * lt.b + this.pivot._y * lt.d);\n this._currentLocalID = this._localID;\n\n // force an update..\n this._parentID = -1;\n }\n};\n\n/**\n * Updates the values of the object and applies the parent's transform.\n * @param parentTransform {PIXI.Transform} The transform of the parent of this object\n *\n */\nTransformStatic.prototype.updateTransform = function (parentTransform)\n{\n var pt = parentTransform.worldTransform;\n var wt = this.worldTransform;\n var lt = this.localTransform;\n\n if(this._localID !== this._currentLocalID)\n {\n // get the matrix values of the displayobject based on its transform properties..\n var a,b,c,d;\n\n a = this._cr * this.scale._x;\n b = this._sr * this.scale._x;\n c = -this._sr * this.scale._y;\n d = this._cr * this.scale._y;\n\n lt.a = this._cy * a + this._sy * c;\n lt.b = this._cy * b + this._sy * d;\n lt.c = this._nsx * a + this._cx * c;\n lt.d = this._nsx * b + this._cx * d;\n\n lt.tx = this.position._x - (this.pivot._x * lt.a + this.pivot._y * lt.c);\n lt.ty = this.position._y - (this.pivot._x * lt.b + this.pivot._y * lt.d);\n this._currentLocalID = this._localID;\n\n // force an update..\n this._parentID = -1;\n }\n\n if(this._parentID !== parentTransform._worldID)\n {\n // concat the parent matrix with the objects transform.\n wt.a = lt.a * pt.a + lt.b * pt.c;\n wt.b = lt.a * pt.b + lt.b * pt.d;\n wt.c = lt.c * pt.a + lt.d * pt.c;\n wt.d = lt.c * pt.b + lt.d * pt.d;\n wt.tx = lt.tx * pt.a + lt.ty * pt.c + pt.tx;\n wt.ty = lt.tx * pt.b + lt.ty * pt.d + pt.ty;\n\n this._parentID = parentTransform._worldID;\n\n // update the id of the transform..\n this._worldID ++;\n }\n};\n\n/**\n * Decomposes a matrix and sets the transforms properties based on it.\n * @param {PIXI.Matrix} The matrix to decompose\n */\nTransformStatic.prototype.setFromMatrix = function (matrix)\n{\n matrix.decompose(this);\n this._localID ++;\n};\n\nObject.defineProperties(TransformStatic.prototype, {\n /**\n * The rotation of the object in radians.\n *\n * @member {number}\n * @memberof PIXI.TransformStatic#\n */\n rotation: {\n get: function () {\n return this._rotation;\n },\n set: function (value) {\n this._rotation = value;\n this._sr = Math.sin(value);\n this._cr = Math.cos(value);\n this._localID ++;\n }\n }\n});\n\nmodule.exports = TransformStatic;\n","var Container = require('../display/Container'),\n RenderTexture = require('../textures/RenderTexture'),\n Texture = require('../textures/Texture'),\n GraphicsData = require('./GraphicsData'),\n Sprite = require('../sprites/Sprite'),\n math = require('../math'),\n CONST = require('../const'),\n Bounds = require('../display/Bounds'),\n bezierCurveTo = require('./utils/bezierCurveTo'),\n CanvasRenderer = require('../renderers/canvas/CanvasRenderer'),\n canvasRenderer,\n tempMatrix = new math.Matrix(),\n tempPoint = new math.Point();\n\n/**\n * The Graphics class contains methods used to draw primitive shapes such as lines, circles and\n * rectangles to the display, and to color and fill them.\n *\n * @class\n * @extends PIXI.Container\n * @memberof PIXI\n */\nfunction Graphics()\n{\n Container.call(this);\n\n /**\n * The alpha value used when filling the Graphics object.\n *\n * @member {number}\n * @default 1\n */\n this.fillAlpha = 1;\n\n /**\n * The width (thickness) of any lines drawn.\n *\n * @member {number}\n * @default 0\n */\n this.lineWidth = 0;\n\n /**\n * The color of any lines drawn.\n *\n * @member {string}\n * @default 0\n */\n this.lineColor = 0;\n\n /**\n * Graphics data\n *\n * @member {PIXI.GraphicsData[]}\n * @private\n */\n this.graphicsData = [];\n\n /**\n * The tint applied to the graphic shape. This is a hex value. Apply a value of 0xFFFFFF to reset the tint.\n *\n * @member {number}\n * @default 0xFFFFFF\n */\n this.tint = 0xFFFFFF;\n\n /**\n * The previous tint applied to the graphic shape. Used to compare to the current tint and check if theres change.\n *\n * @member {number}\n * @private\n * @default 0xFFFFFF\n */\n this._prevTint = 0xFFFFFF;\n\n /**\n * The blend mode to be applied to the graphic shape. Apply a value of `PIXI.BLEND_MODES.NORMAL` to reset the blend mode.\n *\n * @member {number}\n * @default PIXI.BLEND_MODES.NORMAL;\n * @see PIXI.BLEND_MODES\n */\n this.blendMode = CONST.BLEND_MODES.NORMAL;\n\n /**\n * Current path\n *\n * @member {PIXI.GraphicsData}\n * @private\n */\n this.currentPath = null;\n\n /**\n * Array containing some WebGL-related properties used by the WebGL renderer.\n *\n * @member {object}\n * @private\n */\n // TODO - _webgl should use a prototype object, not a random undocumented object...\n this._webGL = {};\n\n /**\n * Whether this shape is being used as a mask.\n *\n * @member {boolean}\n */\n this.isMask = false;\n\n /**\n * The bounds' padding used for bounds calculation.\n *\n * @member {number}\n */\n this.boundsPadding = 0;\n\n /**\n * A cache of the local bounds to prevent recalculation.\n *\n * @member {PIXI.Rectangle}\n * @private\n */\n this._localBounds = new Bounds();\n\n /**\n * Used to detect if the graphics object has changed. If this is set to true then the graphics\n * object will be recalculated.\n *\n * @member {boolean}\n * @private\n */\n this.dirty = 0;\n\n /**\n * Used to detect if we need to do a fast rect check using the id compare method\n * @type {Number}\n */\n this.fastRectDirty = -1;\n\n /**\n * Used to detect if we clear the graphics webGL data\n * @type {Number}\n */\n this.clearDirty = 0;\n\n /**\n * Used to detect if we we need to recalculate local bounds\n * @type {Number}\n */\n this.boundsDirty = -1;\n\n /**\n * Used to detect if the cached sprite object needs to be updated.\n *\n * @member {boolean}\n * @private\n */\n this.cachedSpriteDirty = false;\n\n\n this._spriteRect = null;\n this._fastRect = false;\n\n /**\n * When cacheAsBitmap is set to true the graphics object will be rendered as if it was a sprite.\n * This is useful if your graphics element does not change often, as it will speed up the rendering\n * of the object in exchange for taking up texture memory. It is also useful if you need the graphics\n * object to be anti-aliased, because it will be rendered using canvas. This is not recommended if\n * you are constantly redrawing the graphics element.\n *\n * @name cacheAsBitmap\n * @member {boolean}\n * @memberof PIXI.Graphics#\n * @default false\n */\n}\n\nGraphics._SPRITE_TEXTURE = null;\n\n// constructor\nGraphics.prototype = Object.create(Container.prototype);\nGraphics.prototype.constructor = Graphics;\nmodule.exports = Graphics;\n\n/**\n * Creates a new Graphics object with the same values as this one.\n * Note that the only the properties of the object are cloned, not its transform (position,scale,etc)\n *\n * @return {PIXI.Graphics} A clone of the graphics object\n */\nGraphics.prototype.clone = function ()\n{\n var clone = new Graphics();\n\n clone.renderable = this.renderable;\n clone.fillAlpha = this.fillAlpha;\n clone.lineWidth = this.lineWidth;\n clone.lineColor = this.lineColor;\n clone.tint = this.tint;\n clone.blendMode = this.blendMode;\n clone.isMask = this.isMask;\n clone.boundsPadding = this.boundsPadding;\n clone.dirty = 0;\n clone.cachedSpriteDirty = this.cachedSpriteDirty;\n\n // copy graphics data\n for (var i = 0; i < this.graphicsData.length; ++i)\n {\n clone.graphicsData.push(this.graphicsData[i].clone());\n }\n\n clone.currentPath = clone.graphicsData[clone.graphicsData.length - 1];\n\n clone.updateLocalBounds();\n\n return clone;\n};\n\n/**\n * Specifies the line style used for subsequent calls to Graphics methods such as the lineTo() method or the drawCircle() method.\n *\n * @param lineWidth {number} width of the line to draw, will update the objects stored style\n * @param color {number} color of the line to draw, will update the objects stored style\n * @param alpha {number} alpha of the line to draw, will update the objects stored style\n * @return {PIXI.Graphics} This Graphics object. Good for chaining method calls\n */\nGraphics.prototype.lineStyle = function (lineWidth, color, alpha)\n{\n this.lineWidth = lineWidth || 0;\n this.lineColor = color || 0;\n this.lineAlpha = (alpha === undefined) ? 1 : alpha;\n\n if (this.currentPath)\n {\n if (this.currentPath.shape.points.length)\n {\n // halfway through a line? start a new one!\n var shape = new math.Polygon(this.currentPath.shape.points.slice(-2));\n shape.closed = false;\n this.drawShape(shape);\n }\n else\n {\n // otherwise its empty so lets just set the line properties\n this.currentPath.lineWidth = this.lineWidth;\n this.currentPath.lineColor = this.lineColor;\n this.currentPath.lineAlpha = this.lineAlpha;\n }\n }\n\n return this;\n};\n\n/**\n * Moves the current drawing position to x, y.\n *\n * @param x {number} the X coordinate to move to\n * @param y {number} the Y coordinate to move to\n * @return {PIXI.Graphics} This Graphics object. Good for chaining method calls\n */\nGraphics.prototype.moveTo = function (x, y)\n{\n var shape = new math.Polygon([x,y]);\n shape.closed = false;\n this.drawShape(shape);\n\n return this;\n};\n\n/**\n * Draws a line using the current line style from the current drawing position to (x, y);\n * The current drawing position is then set to (x, y).\n *\n * @param x {number} the X coordinate to draw to\n * @param y {number} the Y coordinate to draw to\n * @return {PIXI.Graphics} This Graphics object. Good for chaining method calls\n */\nGraphics.prototype.lineTo = function (x, y)\n{\n this.currentPath.shape.points.push(x, y);\n this.dirty++;\n\n return this;\n};\n\n/**\n * Calculate the points for a quadratic bezier curve and then draws it.\n * Based on: https://stackoverflow.com/questions/785097/how-do-i-implement-a-bezier-curve-in-c\n *\n * @param cpX {number} Control point x\n * @param cpY {number} Control point y\n * @param toX {number} Destination point x\n * @param toY {number} Destination point y\n * @return {PIXI.Graphics} This Graphics object. Good for chaining method calls\n */\nGraphics.prototype.quadraticCurveTo = function (cpX, cpY, toX, toY)\n{\n if (this.currentPath)\n {\n if (this.currentPath.shape.points.length === 0)\n {\n this.currentPath.shape.points = [0, 0];\n }\n }\n else\n {\n this.moveTo(0,0);\n }\n\n\n var xa,\n ya,\n n = 20,\n points = this.currentPath.shape.points;\n\n if (points.length === 0)\n {\n this.moveTo(0, 0);\n }\n\n var fromX = points[points.length-2];\n var fromY = points[points.length-1];\n\n var j = 0;\n for (var i = 1; i <= n; ++i)\n {\n j = i / n;\n\n xa = fromX + ( (cpX - fromX) * j );\n ya = fromY + ( (cpY - fromY) * j );\n\n points.push( xa + ( ((cpX + ( (toX - cpX) * j )) - xa) * j ),\n ya + ( ((cpY + ( (toY - cpY) * j )) - ya) * j ) );\n }\n\n this.dirty++;\n\n return this;\n};\n\n/**\n * Calculate the points for a bezier curve and then draws it.\n *\n * @param cpX {number} Control point x\n * @param cpY {number} Control point y\n * @param cpX2 {number} Second Control point x\n * @param cpY2 {number} Second Control point y\n * @param toX {number} Destination point x\n * @param toY {number} Destination point y\n * @return {PIXI.Graphics} This Graphics object. Good for chaining method calls\n */\nGraphics.prototype.bezierCurveTo = function (cpX, cpY, cpX2, cpY2, toX, toY)\n{\n if (this.currentPath)\n {\n if (this.currentPath.shape.points.length === 0)\n {\n this.currentPath.shape.points = [0, 0];\n }\n }\n else\n {\n this.moveTo(0,0);\n }\n\n var points = this.currentPath.shape.points;\n\n var fromX = points[points.length-2];\n var fromY = points[points.length-1];\n\n points.length -= 2;\n\n bezierCurveTo(fromX, fromY, cpX, cpY, cpX2, cpY2, toX, toY, points);\n\n this.dirty++;\n\n return this;\n};\n\n/**\n * The arcTo() method creates an arc/curve between two tangents on the canvas.\n *\n * \"borrowed\" from https://code.google.com/p/fxcanvas/ - thanks google!\n *\n * @param x1 {number} The x-coordinate of the beginning of the arc\n * @param y1 {number} The y-coordinate of the beginning of the arc\n * @param x2 {number} The x-coordinate of the end of the arc\n * @param y2 {number} The y-coordinate of the end of the arc\n * @param radius {number} The radius of the arc\n * @return {PIXI.Graphics} This Graphics object. Good for chaining method calls\n */\nGraphics.prototype.arcTo = function (x1, y1, x2, y2, radius)\n{\n if (this.currentPath)\n {\n if (this.currentPath.shape.points.length === 0)\n {\n this.currentPath.shape.points.push(x1, y1);\n }\n }\n else\n {\n this.moveTo(x1, y1);\n }\n\n var points = this.currentPath.shape.points,\n fromX = points[points.length-2],\n fromY = points[points.length-1],\n a1 = fromY - y1,\n b1 = fromX - x1,\n a2 = y2 - y1,\n b2 = x2 - x1,\n mm = Math.abs(a1 * b2 - b1 * a2);\n\n if (mm < 1.0e-8 || radius === 0)\n {\n if (points[points.length-2] !== x1 || points[points.length-1] !== y1)\n {\n points.push(x1, y1);\n }\n }\n else\n {\n var dd = a1 * a1 + b1 * b1,\n cc = a2 * a2 + b2 * b2,\n tt = a1 * a2 + b1 * b2,\n k1 = radius * Math.sqrt(dd) / mm,\n k2 = radius * Math.sqrt(cc) / mm,\n j1 = k1 * tt / dd,\n j2 = k2 * tt / cc,\n cx = k1 * b2 + k2 * b1,\n cy = k1 * a2 + k2 * a1,\n px = b1 * (k2 + j1),\n py = a1 * (k2 + j1),\n qx = b2 * (k1 + j2),\n qy = a2 * (k1 + j2),\n startAngle = Math.atan2(py - cy, px - cx),\n endAngle = Math.atan2(qy - cy, qx - cx);\n\n this.arc(cx + x1, cy + y1, radius, startAngle, endAngle, b1 * a2 > b2 * a1);\n }\n\n this.dirty++;\n\n return this;\n};\n\n/**\n * The arc method creates an arc/curve (used to create circles, or parts of circles).\n *\n * @param cx {number} The x-coordinate of the center of the circle\n * @param cy {number} The y-coordinate of the center of the circle\n * @param radius {number} The radius of the circle\n * @param startAngle {number} The starting angle, in radians (0 is at the 3 o'clock position of the arc's circle)\n * @param endAngle {number} The ending angle, in radians\n * @param [anticlockwise=false] {boolean} Specifies whether the drawing should be counterclockwise or clockwise. False is default, and indicates clockwise, while true indicates counter-clockwise.\n * @return {PIXI.Graphics} This Graphics object. Good for chaining method calls\n */\nGraphics.prototype.arc = function(cx, cy, radius, startAngle, endAngle, anticlockwise)\n{\n anticlockwise = anticlockwise || false;\n\n if (startAngle === endAngle)\n {\n return this;\n }\n\n if( !anticlockwise && endAngle <= startAngle )\n {\n endAngle += Math.PI * 2;\n }\n else if( anticlockwise && startAngle <= endAngle )\n {\n startAngle += Math.PI * 2;\n }\n\n var sweep = anticlockwise ? (startAngle - endAngle) * -1 : (endAngle - startAngle);\n var segs = Math.ceil(Math.abs(sweep) / (Math.PI * 2)) * 40;\n\n if(sweep === 0)\n {\n return this;\n }\n\n var startX = cx + Math.cos(startAngle) * radius;\n var startY = cy + Math.sin(startAngle) * radius;\n\n if (this.currentPath)\n {\n this.currentPath.shape.points.push(startX, startY);\n }\n else\n {\n this.moveTo(startX, startY);\n }\n\n var points = this.currentPath.shape.points;\n\n var theta = sweep/(segs*2);\n var theta2 = theta*2;\n\n var cTheta = Math.cos(theta);\n var sTheta = Math.sin(theta);\n\n var segMinus = segs - 1;\n\n var remainder = ( segMinus % 1 ) / segMinus;\n\n for(var i=0; i<=segMinus; i++)\n {\n var real = i + remainder * i;\n\n\n var angle = ((theta) + startAngle + (theta2 * real));\n\n var c = Math.cos(angle);\n var s = -Math.sin(angle);\n\n points.push(( (cTheta * c) + (sTheta * s) ) * radius + cx,\n ( (cTheta * -s) + (sTheta * c) ) * radius + cy);\n }\n\n this.dirty++;\n\n return this;\n};\n\n/**\n * Specifies a simple one-color fill that subsequent calls to other Graphics methods\n * (such as lineTo() or drawCircle()) use when drawing.\n *\n * @param color {number} the color of the fill\n * @param alpha {number} the alpha of the fill\n * @return {PIXI.Graphics} This Graphics object. Good for chaining method calls\n */\nGraphics.prototype.beginFill = function (color, alpha)\n{\n this.filling = true;\n this.fillColor = color || 0;\n this.fillAlpha = (alpha === undefined) ? 1 : alpha;\n\n if (this.currentPath)\n {\n if (this.currentPath.shape.points.length <= 2)\n {\n this.currentPath.fill = this.filling;\n this.currentPath.fillColor = this.fillColor;\n this.currentPath.fillAlpha = this.fillAlpha;\n }\n }\n return this;\n};\n\n/**\n * Applies a fill to the lines and shapes that were added since the last call to the beginFill() method.\n *\n * @return {PIXI.Graphics} This Graphics object. Good for chaining method calls\n */\nGraphics.prototype.endFill = function ()\n{\n this.filling = false;\n this.fillColor = null;\n this.fillAlpha = 1;\n\n return this;\n};\n\n/**\n *\n * @param x {number} The X coord of the top-left of the rectangle\n * @param y {number} The Y coord of the top-left of the rectangle\n * @param width {number} The width of the rectangle\n * @param height {number} The height of the rectangle\n * @return {PIXI.Graphics} This Graphics object. Good for chaining method calls\n */\nGraphics.prototype.drawRect = function ( x, y, width, height )\n{\n this.drawShape(new math.Rectangle(x,y, width, height));\n\n return this;\n};\n\n/**\n *\n * @param x {number} The X coord of the top-left of the rectangle\n * @param y {number} The Y coord of the top-left of the rectangle\n * @param width {number} The width of the rectangle\n * @param height {number} The height of the rectangle\n * @param radius {number} Radius of the rectangle corners\n * @return {PIXI.Graphics} This Graphics object. Good for chaining method calls\n */\nGraphics.prototype.drawRoundedRect = function ( x, y, width, height, radius )\n{\n this.drawShape(new math.RoundedRectangle(x, y, width, height, radius));\n\n return this;\n};\n\n/**\n * Draws a circle.\n *\n * @param x {number} The X coordinate of the center of the circle\n * @param y {number} The Y coordinate of the center of the circle\n * @param radius {number} The radius of the circle\n * @return {PIXI.Graphics} This Graphics object. Good for chaining method calls\n */\nGraphics.prototype.drawCircle = function (x, y, radius)\n{\n this.drawShape(new math.Circle(x,y, radius));\n\n return this;\n};\n\n/**\n * Draws an ellipse.\n *\n * @param x {number} The X coordinate of the center of the ellipse\n * @param y {number} The Y coordinate of the center of the ellipse\n * @param width {number} The half width of the ellipse\n * @param height {number} The half height of the ellipse\n * @return {PIXI.Graphics} This Graphics object. Good for chaining method calls\n */\nGraphics.prototype.drawEllipse = function (x, y, width, height)\n{\n this.drawShape(new math.Ellipse(x, y, width, height));\n\n return this;\n};\n\n/**\n * Draws a polygon using the given path.\n *\n * @param path {number[]|PIXI.Point[]} The path data used to construct the polygon.\n * @return {PIXI.Graphics} This Graphics object. Good for chaining method calls\n */\nGraphics.prototype.drawPolygon = function (path)\n{\n // prevents an argument assignment deopt\n // see section 3.1: https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments\n var points = path;\n\n var closed = true;\n\n if (points instanceof math.Polygon)\n {\n closed = points.closed;\n points = points.points;\n }\n\n if (!Array.isArray(points))\n {\n // prevents an argument leak deopt\n // see section 3.2: https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments\n points = new Array(arguments.length);\n\n for (var i = 0; i < points.length; ++i)\n {\n points[i] = arguments[i];\n }\n }\n\n var shape = new math.Polygon(points);\n shape.closed = closed;\n\n this.drawShape(shape);\n\n return this;\n};\n\n/**\n * Clears the graphics that were drawn to this Graphics object, and resets fill and line style settings.\n *\n * @return {PIXI.Graphics} This Graphics object. Good for chaining method calls\n */\nGraphics.prototype.clear = function ()\n{\n this.lineWidth = 0;\n this.filling = false;\n\n this.dirty++;\n this.clearDirty++;\n this.graphicsData = [];\n\n return this;\n};\n\n/**\n * True if graphics consists of one rectangle, and thus, can be drawn like a Sprite and masked with gl.scissor\n * @returns {boolean}\n */\nGraphics.prototype.isFastRect = function() {\n return this.graphicsData.length === 1 && this.graphicsData[0].shape.type === CONST.SHAPES.RECT && !this.graphicsData[0].lineWidth;\n};\n\n/**\n * Renders the object using the WebGL renderer\n *\n * @param renderer {PIXI.WebGLRenderer}\n * @private\n */\nGraphics.prototype._renderWebGL = function (renderer)\n{\n // if the sprite is not visible or the alpha is 0 then no need to render this element\n if(this.dirty !== this.fastRectDirty)\n {\n this.fastRectDirty = this.dirty;\n this._fastRect = this.isFastRect();\n }\n\n //TODO this check can be moved to dirty?\n if(this._fastRect)\n {\n this._renderSpriteRect(renderer);\n }\n else\n {\n renderer.setObjectRenderer(renderer.plugins.graphics);\n renderer.plugins.graphics.render(this);\n }\n\n};\n\nGraphics.prototype._renderSpriteRect = function (renderer)\n{\n var rect = this.graphicsData[0].shape;\n if(!this._spriteRect)\n {\n if(!Graphics._SPRITE_TEXTURE)\n {\n Graphics._SPRITE_TEXTURE = RenderTexture.create(10, 10);\n\n var currentRenderTarget = renderer._activeRenderTarget;\n renderer.bindRenderTexture(Graphics._SPRITE_TEXTURE);\n renderer.clear([1,1,1,1]);\n renderer.bindRenderTarget(currentRenderTarget);\n }\n\n this._spriteRect = new Sprite(Graphics._SPRITE_TEXTURE);\n }\n this._spriteRect.tint = this.graphicsData[0].fillColor;\n this._spriteRect.alpha = this.graphicsData[0].fillAlpha;\n this._spriteRect.worldAlpha = this.worldAlpha * this._spriteRect.alpha;\n\n Graphics._SPRITE_TEXTURE._frame.width = rect.width;\n Graphics._SPRITE_TEXTURE._frame.height = rect.height;\n\n this._spriteRect.transform.worldTransform = this.transform.worldTransform;\n\n this._spriteRect.anchor.set(-rect.x / rect.width, -rect.y / rect.height);\n this._spriteRect.onAnchorUpdate();\n\n this._spriteRect._renderWebGL(renderer);\n};\n\n/**\n * Renders the object using the Canvas renderer\n *\n * @param renderer {PIXI.CanvasRenderer}\n * @private\n */\nGraphics.prototype._renderCanvas = function (renderer)\n{\n if (this.isMask === true)\n {\n return;\n }\n\n renderer.plugins.graphics.render(this);\n};\n\n/**\n * Retrieves the bounds of the graphic shape as a rectangle object\n *\n * @param [matrix] {PIXI.Matrix} The world transform matrix to use, defaults to this\n * object's worldTransform.\n * @return {PIXI.Rectangle} the rectangular bounding area\n */\nGraphics.prototype._calculateBounds = function ()\n{\n if (!this.renderable)\n {\n return;\n }\n\n if (this.boundsDirty !== this.dirty)\n {\n this.boundsDirty = this.dirty;\n this.updateLocalBounds();\n\n this.dirty++;\n this.cachedSpriteDirty = true;\n }\n\n var lb = this._localBounds;\n this._bounds.addFrame(this.transform, lb.minX, lb.minY, lb.maxX, lb.maxY);\n};\n\n/**\n* Tests if a point is inside this graphics object\n*\n* @param point {PIXI.Point} the point to test\n* @return {boolean} the result of the test\n*/\nGraphics.prototype.containsPoint = function( point )\n{\n this.worldTransform.applyInverse(point, tempPoint);\n\n var graphicsData = this.graphicsData;\n\n for (var i = 0; i < graphicsData.length; i++)\n {\n var data = graphicsData[i];\n\n if (!data.fill)\n {\n continue;\n }\n\n // only deal with fills..\n if (data.shape)\n {\n if ( data.shape.contains( tempPoint.x, tempPoint.y ) )\n {\n return true;\n }\n }\n }\n\n return false;\n};\n\n/**\n * Update the bounds of the object\n *\n */\nGraphics.prototype.updateLocalBounds = function ()\n{\n var minX = Infinity;\n var maxX = -Infinity;\n\n var minY = Infinity;\n var maxY = -Infinity;\n\n if (this.graphicsData.length)\n {\n var shape, points, x, y, w, h;\n\n for (var i = 0; i < this.graphicsData.length; i++)\n {\n var data = this.graphicsData[i];\n var type = data.type;\n var lineWidth = data.lineWidth;\n shape = data.shape;\n\n if (type === CONST.SHAPES.RECT || type === CONST.SHAPES.RREC)\n {\n x = shape.x - lineWidth/2;\n y = shape.y - lineWidth/2;\n w = shape.width + lineWidth;\n h = shape.height + lineWidth;\n\n minX = x < minX ? x : minX;\n maxX = x + w > maxX ? x + w : maxX;\n\n minY = y < minY ? y : minY;\n maxY = y + h > maxY ? y + h : maxY;\n }\n else if (type === CONST.SHAPES.CIRC)\n {\n x = shape.x;\n y = shape.y;\n w = shape.radius + lineWidth/2;\n h = shape.radius + lineWidth/2;\n\n minX = x - w < minX ? x - w : minX;\n maxX = x + w > maxX ? x + w : maxX;\n\n minY = y - h < minY ? y - h : minY;\n maxY = y + h > maxY ? y + h : maxY;\n }\n else if (type === CONST.SHAPES.ELIP)\n {\n x = shape.x;\n y = shape.y;\n w = shape.width + lineWidth/2;\n h = shape.height + lineWidth/2;\n\n minX = x - w < minX ? x - w : minX;\n maxX = x + w > maxX ? x + w : maxX;\n\n minY = y - h < minY ? y - h : minY;\n maxY = y + h > maxY ? y + h : maxY;\n }\n else\n {\n // POLY\n points = shape.points;\n\n for (var j = 0; j < points.length; j += 2)\n {\n x = points[j];\n y = points[j+1];\n\n minX = x-lineWidth < minX ? x-lineWidth : minX;\n maxX = x+lineWidth > maxX ? x+lineWidth : maxX;\n\n minY = y-lineWidth < minY ? y-lineWidth : minY;\n maxY = y+lineWidth > maxY ? y+lineWidth : maxY;\n }\n }\n }\n }\n else\n {\n minX = 0;\n maxX = 0;\n minY = 0;\n maxY = 0;\n }\n\n var padding = this.boundsPadding;\n\n this._localBounds.minX = minX - padding;\n this._localBounds.maxX = maxX + padding * 2;\n\n this._localBounds.minY = minY - padding;\n this._localBounds.maxY = maxY + padding * 2;\n};\n\n\n/**\n * Draws the given shape to this Graphics object. Can be any of Circle, Rectangle, Ellipse, Line or Polygon.\n *\n * @param shape {PIXI.Circle|PIXI.Ellipse|PIXI.Polygon|PIXI.Rectangle|PIXI.RoundedRectangle} The shape object to draw.\n * @return {PIXI.GraphicsData} The generated GraphicsData object.\n */\nGraphics.prototype.drawShape = function (shape)\n{\n if (this.currentPath)\n {\n // check current path!\n if (this.currentPath.shape.points.length <= 2)\n {\n this.graphicsData.pop();\n }\n }\n\n this.currentPath = null;\n\n var data = new GraphicsData(this.lineWidth, this.lineColor, this.lineAlpha, this.fillColor, this.fillAlpha, this.filling, shape);\n\n this.graphicsData.push(data);\n\n if (data.type === CONST.SHAPES.POLY)\n {\n data.shape.closed = data.shape.closed || this.filling;\n this.currentPath = data;\n }\n\n this.dirty++;\n\n return data;\n};\n\nGraphics.prototype.generateCanvasTexture = function(scaleMode, resolution)\n{\n resolution = resolution || 1;\n\n var bounds = this.getLocalBounds();\n\n var canvasBuffer = new RenderTexture.create(bounds.width * resolution, bounds.height * resolution);\n\n if(!canvasRenderer)\n {\n canvasRenderer = new CanvasRenderer();\n }\n\n tempMatrix.tx = -bounds.x;\n tempMatrix.ty = -bounds.y;\n\n canvasRenderer.render(this, canvasBuffer, false, tempMatrix);\n\n var texture = Texture.fromCanvas(canvasBuffer.baseTexture._canvasRenderTarget.canvas, scaleMode);\n texture.baseTexture.resolution = resolution;\n\n return texture;\n};\n\nGraphics.prototype.closePath = function ()\n{\n // ok so close path assumes next one is a hole!\n var currentPath = this.currentPath;\n if (currentPath && currentPath.shape)\n {\n currentPath.shape.close();\n }\n return this;\n};\n\nGraphics.prototype.addHole = function()\n{\n // this is a hole!\n var hole = this.graphicsData.pop();\n\n this.currentPath = this.graphicsData[this.graphicsData.length-1];\n\n this.currentPath.addHole(hole.shape);\n this.currentPath = null;\n\n return this;\n};\n\n/**\n * Destroys the Graphics object.\n */\nGraphics.prototype.destroy = function ()\n{\n Container.prototype.destroy.apply(this, arguments);\n\n // destroy each of the GraphicsData objects\n for (var i = 0; i < this.graphicsData.length; ++i) {\n this.graphicsData[i].destroy();\n }\n\n // for each webgl data entry, destroy the WebGLGraphicsData\n for (var id in this._webgl) {\n for (var j = 0; j < this._webgl[id].data.length; ++j) {\n this._webgl[id].data[j].destroy();\n }\n }\n\n if(this._spriteRect)\n {\n this._spriteRect.destroy();\n }\n this.graphicsData = null;\n\n this.currentPath = null;\n this._webgl = null;\n this._localBounds = null;\n};\n","/**\n * A GraphicsData object.\n *\n * @class\n * @memberof PIXI\n * @param lineWidth {number} the width of the line to draw\n * @param lineColor {number} the color of the line to draw\n * @param lineAlpha {number} the alpha of the line to draw\n * @param fillColor {number} the color of the fill\n * @param fillAlpha {number} the alpha of the fill\n * @param fill {boolean} whether or not the shape is filled with a colour\n * @param shape {PIXI.Circle|PIXI.Rectangle|PIXI.Ellipse|PIXI.Polygon} The shape object to draw.\n */\nfunction GraphicsData(lineWidth, lineColor, lineAlpha, fillColor, fillAlpha, fill, shape)\n{\n /*\n * @member {number} the width of the line to draw\n */\n this.lineWidth = lineWidth;\n\n /*\n * @member {number} the color of the line to draw\n */\n this.lineColor = lineColor;\n\n /*\n * @member {number} the alpha of the line to draw\n */\n this.lineAlpha = lineAlpha;\n\n /*\n * @member {number} cached tint of the line to draw\n */\n this._lineTint = lineColor;\n\n /*\n * @member {number} the color of the fill\n */\n this.fillColor = fillColor;\n\n /*\n * @member {number} the alpha of the fill\n */\n this.fillAlpha = fillAlpha;\n\n /*\n * @member {number} cached tint of the fill\n */\n this._fillTint = fillColor;\n\n /*\n * @member {boolean} whether or not the shape is filled with a colour\n */\n this.fill = fill;\n\n this.holes = [];\n\n /*\n * @member {PIXI.Circle|PIXI.Ellipse|PIXI.Polygon|PIXI.Rectangle|PIXI.RoundedRectangle} The shape object to draw.\n */\n this.shape = shape;\n\n /*\n * @member {number} The type of the shape, see the Const.Shapes file for all the existing types,\n */\n this.type = shape.type;\n}\n\nGraphicsData.prototype.constructor = GraphicsData;\nmodule.exports = GraphicsData;\n\n/**\n * Creates a new GraphicsData object with the same values as this one.\n *\n * @return {PIXI.GraphicsData} Cloned GraphicsData object\n */\nGraphicsData.prototype.clone = function ()\n{\n return new GraphicsData(\n this.lineWidth,\n this.lineColor,\n this.lineAlpha,\n this.fillColor,\n this.fillAlpha,\n this.fill,\n this.shape\n );\n};\n\n/**\n *\n *\n */\nGraphicsData.prototype.addHole = function (shape)\n{\n this.holes.push(shape);\n};\n\n/**\n * Destroys the Graphics data.\n */\nGraphicsData.prototype.destroy = function () {\n this.shape = null;\n this.holes = null;\n};\n","var CanvasRenderer = require('../../renderers/canvas/CanvasRenderer'),\n CONST = require('../../const');\n\n/**\n * @author Mat Groves\n *\n * Big thanks to the very clever Matt DesLauriers https://github.com/mattdesl/\n * for creating the original pixi version!\n * Also a thanks to https://github.com/bchevalier for tweaking the tint and alpha so that they now share 4 bytes on the vertex buffer\n *\n * Heavily inspired by LibGDX's CanvasGraphicsRenderer:\n * https://github.com/libgdx/libgdx/blob/master/gdx/src/com/badlogic/gdx/graphics/g2d/CanvasGraphicsRenderer.java\n */\n\n/**\n * Renderer dedicated to drawing and batching graphics objects.\n *\n * @class\n * @private\n * @memberof PIXI\n * @extends PIXI.ObjectRenderer\n * @param renderer {PIXI.SystemRenderer} The current PIXI renderer.\n */\nfunction CanvasGraphicsRenderer(renderer)\n{\n this.renderer = renderer;\n}\n\n\nCanvasGraphicsRenderer.prototype.constructor = CanvasGraphicsRenderer;\nmodule.exports = CanvasGraphicsRenderer;\n\nCanvasRenderer.registerPlugin('graphics', CanvasGraphicsRenderer);\n\n/*\n * Renders a Graphics object to a canvas.\n *\n * @param graphics {PIXI.Graphics} the actual graphics object to render\n * @param context {CanvasRenderingContext2D} the 2d drawing method of the canvas\n */\nCanvasGraphicsRenderer.prototype.render = function (graphics)\n{\n var renderer = this.renderer;\n var context = renderer.context;\n var worldAlpha = graphics.worldAlpha;\n var transform = graphics.transform.worldTransform;\n var resolution = renderer.resolution;\n\n // if the tint has changed, set the graphics object to dirty.\n if (this._prevTint !== this.tint) {\n this.dirty = true;\n }\n\n context.setTransform(\n transform.a * resolution,\n transform.b * resolution,\n transform.c * resolution,\n transform.d * resolution,\n transform.tx * resolution,\n transform.ty * resolution\n );\n\n\n if (graphics.dirty)\n {\n this.updateGraphicsTint(graphics);\n graphics.dirty = false;\n }\n\n renderer.setBlendMode(graphics.blendMode);\n\n for (var i = 0; i < graphics.graphicsData.length; i++)\n {\n var data = graphics.graphicsData[i];\n var shape = data.shape;\n\n var fillColor = data._fillTint;\n var lineColor = data._lineTint;\n\n context.lineWidth = data.lineWidth;\n\n if (data.type === CONST.SHAPES.POLY)\n {\n context.beginPath();\n\n this.renderPolygon(shape.points, shape.closed, context);\n\n for (var j = 0; j < data.holes.length; j++)\n {\n var hole = data.holes[j];\n this.renderPolygon(hole.points, true, context);\n }\n\n\n if (data.fill)\n {\n context.globalAlpha = data.fillAlpha * worldAlpha;\n context.fillStyle = '#' + ('00000' + ( fillColor | 0).toString(16)).substr(-6);\n context.fill();\n }\n if (data.lineWidth)\n {\n context.globalAlpha = data.lineAlpha * worldAlpha;\n context.strokeStyle = '#' + ('00000' + ( lineColor | 0).toString(16)).substr(-6);\n context.stroke();\n }\n }\n else if (data.type === CONST.SHAPES.RECT)\n {\n\n if (data.fillColor || data.fillColor === 0)\n {\n context.globalAlpha = data.fillAlpha * worldAlpha;\n context.fillStyle = '#' + ('00000' + ( fillColor | 0).toString(16)).substr(-6);\n context.fillRect(shape.x, shape.y, shape.width, shape.height);\n\n }\n if (data.lineWidth)\n {\n context.globalAlpha = data.lineAlpha * worldAlpha;\n context.strokeStyle = '#' + ('00000' + ( lineColor | 0).toString(16)).substr(-6);\n context.strokeRect(shape.x, shape.y, shape.width, shape.height);\n }\n }\n else if (data.type === CONST.SHAPES.CIRC)\n {\n // TODO - need to be Undefined!\n context.beginPath();\n context.arc(shape.x, shape.y, shape.radius,0,2*Math.PI);\n context.closePath();\n\n if (data.fill)\n {\n context.globalAlpha = data.fillAlpha * worldAlpha;\n context.fillStyle = '#' + ('00000' + ( fillColor | 0).toString(16)).substr(-6);\n context.fill();\n }\n if (data.lineWidth)\n {\n context.globalAlpha = data.lineAlpha * worldAlpha;\n context.strokeStyle = '#' + ('00000' + ( lineColor | 0).toString(16)).substr(-6);\n context.stroke();\n }\n }\n else if (data.type === CONST.SHAPES.ELIP)\n {\n // ellipse code taken from: http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas\n\n var w = shape.width * 2;\n var h = shape.height * 2;\n\n var x = shape.x - w/2;\n var y = shape.y - h/2;\n\n context.beginPath();\n\n var kappa = 0.5522848,\n ox = (w / 2) * kappa, // control point offset horizontal\n oy = (h / 2) * kappa, // control point offset vertical\n xe = x + w, // x-end\n ye = y + h, // y-end\n xm = x + w / 2, // x-middle\n ym = y + h / 2; // y-middle\n\n context.moveTo(x, ym);\n context.bezierCurveTo(x, ym - oy, xm - ox, y, xm, y);\n context.bezierCurveTo(xm + ox, y, xe, ym - oy, xe, ym);\n context.bezierCurveTo(xe, ym + oy, xm + ox, ye, xm, ye);\n context.bezierCurveTo(xm - ox, ye, x, ym + oy, x, ym);\n\n context.closePath();\n\n if (data.fill)\n {\n context.globalAlpha = data.fillAlpha * worldAlpha;\n context.fillStyle = '#' + ('00000' + ( fillColor | 0).toString(16)).substr(-6);\n context.fill();\n }\n if (data.lineWidth)\n {\n context.globalAlpha = data.lineAlpha * worldAlpha;\n context.strokeStyle = '#' + ('00000' + ( lineColor | 0).toString(16)).substr(-6);\n context.stroke();\n }\n }\n else if (data.type === CONST.SHAPES.RREC)\n {\n var rx = shape.x;\n var ry = shape.y;\n var width = shape.width;\n var height = shape.height;\n var radius = shape.radius;\n\n var maxRadius = Math.min(width, height) / 2 | 0;\n radius = radius > maxRadius ? maxRadius : radius;\n\n context.beginPath();\n context.moveTo(rx, ry + radius);\n context.lineTo(rx, ry + height - radius);\n context.quadraticCurveTo(rx, ry + height, rx + radius, ry + height);\n context.lineTo(rx + width - radius, ry + height);\n context.quadraticCurveTo(rx + width, ry + height, rx + width, ry + height - radius);\n context.lineTo(rx + width, ry + radius);\n context.quadraticCurveTo(rx + width, ry, rx + width - radius, ry);\n context.lineTo(rx + radius, ry);\n context.quadraticCurveTo(rx, ry, rx, ry + radius);\n context.closePath();\n\n if (data.fillColor || data.fillColor === 0)\n {\n context.globalAlpha = data.fillAlpha * worldAlpha;\n context.fillStyle = '#' + ('00000' + ( fillColor | 0).toString(16)).substr(-6);\n context.fill();\n\n }\n if (data.lineWidth)\n {\n context.globalAlpha = data.lineAlpha * worldAlpha;\n context.strokeStyle = '#' + ('00000' + ( lineColor | 0).toString(16)).substr(-6);\n context.stroke();\n }\n }\n }\n};\n\n/*\n * Updates the tint of a graphics object\n *\n * @private\n * @param graphics {PIXI.Graphics} the graphics that will have its tint updated\n *\n */\nCanvasGraphicsRenderer.prototype.updateGraphicsTint = function (graphics)\n{\n graphics._prevTint = graphics.tint;\n\n var tintR = (graphics.tint >> 16 & 0xFF) / 255;\n var tintG = (graphics.tint >> 8 & 0xFF) / 255;\n var tintB = (graphics.tint & 0xFF)/ 255;\n\n for (var i = 0; i < graphics.graphicsData.length; i++)\n {\n var data = graphics.graphicsData[i];\n\n var fillColor = data.fillColor | 0;\n var lineColor = data.lineColor | 0;\n\n // super inline cos im an optimization NAZI :)\n data._fillTint = (((fillColor >> 16 & 0xFF) / 255 * tintR*255 << 16) + ((fillColor >> 8 & 0xFF) / 255 * tintG*255 << 8) + (fillColor & 0xFF) / 255 * tintB*255);\n data._lineTint = (((lineColor >> 16 & 0xFF) / 255 * tintR*255 << 16) + ((lineColor >> 8 & 0xFF) / 255 * tintG*255 << 8) + (lineColor & 0xFF) / 255 * tintB*255);\n }\n};\n\nCanvasGraphicsRenderer.prototype.renderPolygon = function (points, close, context)\n{\n context.moveTo(points[0], points[1]);\n\n for (var j=1; j < points.length/2; j++)\n {\n context.lineTo(points[j * 2], points[j * 2 + 1]);\n }\n\n if (close)\n {\n context.closePath();\n }\n};\n\n/*\n * destroy graphics object\n *\n */\nCanvasGraphicsRenderer.prototype.destroy = function ()\n{\n this.renderer = null;\n};\n","\n/**\n * Calculate the points for a bezier curve and then draws it.\n *\n * Ignored from docs since it is not directly exposed.\n *\n * @ignore\n * @param fromX {number} Starting point x\n * @param fromY {number} Starting point y\n * @param cpX {number} Control point x\n * @param cpY {number} Control point y\n * @param cpX2 {number} Second Control point x\n * @param cpY2 {number} Second Control point y\n * @param toX {number} Destination point x\n * @param toY {number} Destination point y\n * @param [path=number[]] Path array to push points into\n * @return {PIXI.Graphics}\n */\nvar bezierCurveTo = function (fromX, fromY, cpX, cpY, cpX2, cpY2, toX, toY, path) // jshint ignore:line\n{\n path = path || [];\n\n var n = 20,\n dt,\n dt2,\n dt3,\n t2,\n t3;\n\n path.push(fromX, fromY);\n\n var j = 0;\n\n for (var i = 1; i <= n; ++i)\n {\n j = i / n;\n\n dt = (1 - j);\n dt2 = dt * dt;\n dt3 = dt2 * dt;\n\n t2 = j * j;\n t3 = t2 * j;\n\n path.push( dt3 * fromX + 3 * dt2 * j * cpX + 3 * dt * t2 * cpX2 + t3 * toX,\n dt3 * fromY + 3 * dt2 * j * cpY + 3 * dt * t2 * cpY2 + t3 * toY);\n }\n\n return path;\n};\n\nmodule.exports = bezierCurveTo;\n","var utils = require('../../utils'),\n CONST = require('../../const'),\n ObjectRenderer = require('../../renderers/webgl/utils/ObjectRenderer'),\n WebGLRenderer = require('../../renderers/webgl/WebGLRenderer'),\n WebGLGraphicsData = require('./WebGLGraphicsData'),\n PrimitiveShader = require('./shaders/PrimitiveShader'),\n\n // some drawing functions..\n buildPoly = require('./utils/buildPoly'),\n buildRectangle = require('./utils/buildRectangle'),\n buildRoundedRectangle = require('./utils/buildRoundedRectangle'),\n buildCircle = require('./utils/buildCircle');\n\n\n\n/**\n * Renders the graphics object.\n *\n * @class\n * @memberof PIXI\n * @extends PIXI.ObjectRenderer\n * @param renderer {PIXI.WebGLRenderer} The renderer this object renderer works for.\n */\nfunction GraphicsRenderer(renderer)\n{\n ObjectRenderer.call(this, renderer);\n\n this.graphicsDataPool = [];\n\n this.primitiveShader = null;\n\n this.gl = renderer.gl;\n\n // easy access!\n this.CONTEXT_UID = 0;\n}\n\nGraphicsRenderer.prototype = Object.create(ObjectRenderer.prototype);\nGraphicsRenderer.prototype.constructor = GraphicsRenderer;\nmodule.exports = GraphicsRenderer;\n\nWebGLRenderer.registerPlugin('graphics', GraphicsRenderer);\n\n/**\n * Called when there is a WebGL context change\n *\n * @private\n *\n */\nGraphicsRenderer.prototype.onContextChange = function()\n{\n this.gl = this.renderer.gl;\n this.CONTEXT_UID = this.renderer.CONTEXT_UID;\n this.primitiveShader = new PrimitiveShader(this.gl);\n};\n\n/**\n * Destroys this renderer.\n *\n */\nGraphicsRenderer.prototype.destroy = function ()\n{\n ObjectRenderer.prototype.destroy.call(this);\n\n for (var i = 0; i < this.graphicsDataPool.length; ++i) {\n this.graphicsDataPool[i].destroy();\n }\n\n this.graphicsDataPool = null;\n};\n\n/**\n * Renders a graphics object.\n *\n * @param graphics {PIXI.Graphics} The graphics object to render.\n */\nGraphicsRenderer.prototype.render = function(graphics)\n{\n var renderer = this.renderer;\n var gl = renderer.gl;\n\n var webGLData;\n\n var webGL = graphics._webGL[this.CONTEXT_UID];\n\n if (!webGL || graphics.dirty !== webGL.dirty )\n {\n\n this.updateGraphics(graphics);\n\n webGL = graphics._webGL[this.CONTEXT_UID];\n }\n\n\n\n // This could be speeded up for sure!\n var shader = this.primitiveShader;\n renderer.bindShader(shader);\n renderer.state.setBlendMode( graphics.blendMode );\n\n for (var i = 0, n = webGL.data.length; i < n; i++)\n {\n webGLData = webGL.data[i];\n var shaderTemp = webGLData.shader;\n\n renderer.bindShader(shaderTemp);\n shaderTemp.uniforms.translationMatrix = graphics.transform.worldTransform.toArray(true);\n shaderTemp.uniforms.tint = utils.hex2rgb(graphics.tint);\n shaderTemp.uniforms.alpha = graphics.worldAlpha;\n\n webGLData.vao.bind()\n .draw(gl.TRIANGLE_STRIP, webGLData.indices.length)\n .unbind();\n }\n};\n\n/**\n * Updates the graphics object\n *\n * @private\n * @param graphics {PIXI.Graphics} The graphics object to update\n */\nGraphicsRenderer.prototype.updateGraphics = function(graphics)\n{\n var gl = this.renderer.gl;\n\n // get the contexts graphics object\n var webGL = graphics._webGL[this.CONTEXT_UID];\n\n // if the graphics object does not exist in the webGL context time to create it!\n if (!webGL)\n {\n webGL = graphics._webGL[this.CONTEXT_UID] = {lastIndex:0, data:[], gl:gl, clearDirty:-1, dirty:-1};\n\n }\n\n // flag the graphics as not dirty as we are about to update it...\n webGL.dirty = graphics.dirty;\n\n var i;\n\n // if the user cleared the graphics object we will need to clear every object\n if (graphics.clearDirty !== webGL.clearDirty)\n {\n webGL.clearDirty = graphics.clearDirty;\n\n // loop through and return all the webGLDatas to the object pool so than can be reused later on\n for (i = 0; i < webGL.data.length; i++)\n {\n var graphicsData = webGL.data[i];\n this.graphicsDataPool.push( graphicsData );\n }\n\n // clear the array and reset the index..\n webGL.data = [];\n webGL.lastIndex = 0;\n }\n\n var webGLData;\n\n // loop through the graphics datas and construct each one..\n // if the object is a complex fill then the new stencil buffer technique will be used\n // other wise graphics objects will be pushed into a batch..\n for (i = webGL.lastIndex; i < graphics.graphicsData.length; i++)\n {\n var data = graphics.graphicsData[i];\n\n //TODO - this can be simplified\n webGLData = this.getWebGLData(webGL, 0);\n\n if (data.type === CONST.SHAPES.POLY)\n {\n buildPoly(data, webGLData);\n }\n if (data.type === CONST.SHAPES.RECT)\n {\n buildRectangle(data, webGLData);\n }\n else if (data.type === CONST.SHAPES.CIRC || data.type === CONST.SHAPES.ELIP)\n {\n buildCircle(data, webGLData);\n }\n else if (data.type === CONST.SHAPES.RREC)\n {\n buildRoundedRectangle(data, webGLData);\n }\n\n webGL.lastIndex++;\n }\n\n // upload all the dirty data...\n for (i = 0; i < webGL.data.length; i++)\n {\n webGLData = webGL.data[i];\n\n if (webGLData.dirty)\n {\n webGLData.upload();\n }\n }\n};\n\n/**\n *\n * @private\n * @param webGL {WebGLRenderingContext} the current WebGL drawing context\n * @param type {number} TODO @Alvin\n */\nGraphicsRenderer.prototype.getWebGLData = function (webGL, type)\n{\n var webGLData = webGL.data[webGL.data.length-1];\n\n if (!webGLData || webGLData.points.length > 320000)\n {\n webGLData = this.graphicsDataPool.pop() || new WebGLGraphicsData(this.renderer.gl, this.primitiveShader, this.renderer.state.attribsState);\n webGLData.reset(type);\n webGL.data.push(webGLData);\n }\n\n webGLData.dirty = true;\n\n return webGLData;\n};\n","var glCore = require('pixi-gl-core');\n\n\n/**\n * An object containing WebGL specific properties to be used by the WebGL renderer\n *\n * @class\n * @private\n * @memberof PIXI\n * @param gl {WebGLRenderingContext} The current WebGL drawing context\n * @param shader {PIXI.Shader} The shader\n * @param attribsState {object} The state for the VAO\n */\nfunction WebGLGraphicsData(gl, shader, attribsState)\n{\n\n /**\n * The current WebGL drawing context\n *\n * @member {WebGLRenderingContext}\n */\n this.gl = gl;\n\n //TODO does this need to be split before uploding??\n /**\n * An array of color components (r,g,b)\n * @member {number[]}\n */\n this.color = [0,0,0]; // color split!\n\n /**\n * An array of points to draw\n * @member {PIXI.Point[]}\n */\n this.points = [];\n\n /**\n * The indices of the vertices\n * @member {number[]}\n */\n this.indices = [];\n /**\n * The main buffer\n * @member {WebGLBuffer}\n */\n this.buffer = glCore.GLBuffer.createVertexBuffer(gl);\n\n /**\n * The index buffer\n * @member {WebGLBuffer}\n */\n this.indexBuffer = glCore.GLBuffer.createIndexBuffer(gl);\n\n /**\n * Whether this graphics is dirty or not\n * @member {boolean}\n */\n this.dirty = true;\n\n this.glPoints = null;\n this.glIndices = null;\n\n /**\n *\n * @member {PIXI.Shader}\n */\n this.shader = shader;\n\n this.vao = new glCore.VertexArrayObject(gl, attribsState)\n .addIndex(this.indexBuffer)\n .addAttribute(this.buffer, shader.attributes.aVertexPosition, gl.FLOAT, false, 4 * 6, 0)\n .addAttribute(this.buffer, shader.attributes.aColor, gl.FLOAT, false, 4 * 6, 2 * 4);\n\n\n}\n\nWebGLGraphicsData.prototype.constructor = WebGLGraphicsData;\nmodule.exports = WebGLGraphicsData;\n\n/**\n * Resets the vertices and the indices\n */\nWebGLGraphicsData.prototype.reset = function ()\n{\n this.points.length = 0;\n this.indices.length = 0;\n};\n\n/**\n * Binds the buffers and uploads the data\n */\nWebGLGraphicsData.prototype.upload = function ()\n{\n this.glPoints = new Float32Array(this.points);\n this.buffer.upload( this.glPoints );\n\n this.glIndices = new Uint16Array(this.indices);\n this.indexBuffer.upload( this.glIndices );\n\n this.dirty = false;\n};\n\n\n\n/**\n * Empties all the data\n */\nWebGLGraphicsData.prototype.destroy = function ()\n{\n this.color = null;\n this.points = null;\n this.indices = null;\n\n this.vao.destroy();\n this.buffer.destroy();\n this.indexBuffer.destroy();\n\n this.gl = null;\n\n this.buffer = null;\n this.indexBuffer = null;\n\n this.glPoints = null;\n this.glIndices = null;\n};\n","var Shader = require('../../../Shader');\n\n/**\n * This shader is used to draw simple primitive shapes for {@link PIXI.Graphics}.\n *\n * @class\n * @memberof PIXI\n * @extends PIXI.Shader\n * @param gl {WebGLRenderingContext} The webgl shader manager this shader works for.\n */\nfunction PrimitiveShader(gl)\n{\n Shader.call(this,\n gl,\n // vertex shader\n [\n 'attribute vec2 aVertexPosition;',\n 'attribute vec4 aColor;',\n\n 'uniform mat3 translationMatrix;',\n 'uniform mat3 projectionMatrix;',\n\n 'uniform float alpha;',\n 'uniform vec3 tint;',\n\n 'varying vec4 vColor;',\n\n 'void main(void){',\n ' gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);',\n ' vColor = aColor * vec4(tint * alpha, alpha);',\n '}'\n ].join('\\n'),\n // fragment shader\n [\n 'varying vec4 vColor;',\n\n 'void main(void){',\n ' gl_FragColor = vColor;',\n '}'\n ].join('\\n')\n );\n}\n\nPrimitiveShader.prototype = Object.create(Shader.prototype);\nPrimitiveShader.prototype.constructor = PrimitiveShader;\n\nmodule.exports = PrimitiveShader;\n","var buildLine = require('./buildLine'),\n CONST = require('../../../const'),\n utils = require('../../../utils');\n\n/**\n * Builds a circle to draw\n *\n * Ignored from docs since it is not directly exposed.\n *\n * @ignore\n * @private\n * @param graphicsData {PIXI.WebGLGraphicsData} The graphics object to draw\n * @param webGLData {object} an object containing all the webGL-specific information to create this shape\n */\nvar buildCircle = function (graphicsData, webGLData)\n{\n // need to convert points to a nice regular data\n var circleData = graphicsData.shape;\n var x = circleData.x;\n var y = circleData.y;\n var width;\n var height;\n\n // TODO - bit hacky??\n if (graphicsData.type === CONST.SHAPES.CIRC)\n {\n width = circleData.radius;\n height = circleData.radius;\n }\n else\n {\n width = circleData.width;\n height = circleData.height;\n }\n\n var totalSegs = Math.floor(30 * Math.sqrt(circleData.radius)) || Math.floor(15 * Math.sqrt(circleData.width + circleData.height));\n var seg = (Math.PI * 2) / totalSegs ;\n\n var i = 0;\n\n if (graphicsData.fill)\n {\n var color = utils.hex2rgb(graphicsData.fillColor);\n var alpha = graphicsData.fillAlpha;\n\n var r = color[0] * alpha;\n var g = color[1] * alpha;\n var b = color[2] * alpha;\n\n var verts = webGLData.points;\n var indices = webGLData.indices;\n\n var vecPos = verts.length/6;\n\n indices.push(vecPos);\n\n for (i = 0; i < totalSegs + 1 ; i++)\n {\n verts.push(x,y, r, g, b, alpha);\n\n verts.push(x + Math.sin(seg * i) * width,\n y + Math.cos(seg * i) * height,\n r, g, b, alpha);\n\n indices.push(vecPos++, vecPos++);\n }\n\n indices.push(vecPos-1);\n }\n\n if (graphicsData.lineWidth)\n {\n var tempPoints = graphicsData.points;\n\n graphicsData.points = [];\n\n for (i = 0; i < totalSegs + 1; i++)\n {\n graphicsData.points.push(x + Math.sin(seg * i) * width,\n y + Math.cos(seg * i) * height);\n }\n\n buildLine(graphicsData, webGLData);\n\n graphicsData.points = tempPoints;\n }\n};\n\n\nmodule.exports = buildCircle;\n","var math = require('../../../math'),\n utils = require('../../../utils');\n\n/**\n * Builds a line to draw\n *\n * Ignored from docs since it is not directly exposed.\n *\n * @ignore\n * @private\n * @param graphicsData {PIXI.WebGLGraphicsData} The graphics object containing all the necessary properties\n * @param webGLData {object} an object containing all the webGL-specific information to create this shape\n */\nvar buildLine = function (graphicsData, webGLData)\n{\n // TODO OPTIMISE!\n var i = 0;\n var points = graphicsData.points;\n\n if (points.length === 0)\n {\n return;\n }\n // if the line width is an odd number add 0.5 to align to a whole pixel\n // commenting this out fixes #711 and #1620\n // if (graphicsData.lineWidth%2)\n // {\n // for (i = 0; i < points.length; i++)\n // {\n // points[i] += 0.5;\n // }\n // }\n\n // get first and last point.. figure out the middle!\n var firstPoint = new math.Point(points[0], points[1]);\n var lastPoint = new math.Point(points[points.length - 2], points[points.length - 1]);\n\n // if the first point is the last point - gonna have issues :)\n if (firstPoint.x === lastPoint.x && firstPoint.y === lastPoint.y)\n {\n // need to clone as we are going to slightly modify the shape..\n points = points.slice();\n\n points.pop();\n points.pop();\n\n lastPoint = new math.Point(points[points.length - 2], points[points.length - 1]);\n\n var midPointX = lastPoint.x + (firstPoint.x - lastPoint.x) *0.5;\n var midPointY = lastPoint.y + (firstPoint.y - lastPoint.y) *0.5;\n\n points.unshift(midPointX, midPointY);\n points.push(midPointX, midPointY);\n }\n\n var verts = webGLData.points;\n var indices = webGLData.indices;\n var length = points.length / 2;\n var indexCount = points.length;\n var indexStart = verts.length/6;\n\n // DRAW the Line\n var width = graphicsData.lineWidth / 2;\n\n // sort color\n var color = utils.hex2rgb(graphicsData.lineColor);\n var alpha = graphicsData.lineAlpha;\n var r = color[0] * alpha;\n var g = color[1] * alpha;\n var b = color[2] * alpha;\n\n var px, py, p1x, p1y, p2x, p2y, p3x, p3y;\n var perpx, perpy, perp2x, perp2y, perp3x, perp3y;\n var a1, b1, c1, a2, b2, c2;\n var denom, pdist, dist;\n\n p1x = points[0];\n p1y = points[1];\n\n p2x = points[2];\n p2y = points[3];\n\n perpx = -(p1y - p2y);\n perpy = p1x - p2x;\n\n dist = Math.sqrt(perpx*perpx + perpy*perpy);\n\n perpx /= dist;\n perpy /= dist;\n perpx *= width;\n perpy *= width;\n\n // start\n verts.push(p1x - perpx , p1y - perpy,\n r, g, b, alpha);\n\n verts.push(p1x + perpx , p1y + perpy,\n r, g, b, alpha);\n\n for (i = 1; i < length-1; i++)\n {\n p1x = points[(i-1)*2];\n p1y = points[(i-1)*2 + 1];\n\n p2x = points[(i)*2];\n p2y = points[(i)*2 + 1];\n\n p3x = points[(i+1)*2];\n p3y = points[(i+1)*2 + 1];\n\n perpx = -(p1y - p2y);\n perpy = p1x - p2x;\n\n dist = Math.sqrt(perpx*perpx + perpy*perpy);\n perpx /= dist;\n perpy /= dist;\n perpx *= width;\n perpy *= width;\n\n perp2x = -(p2y - p3y);\n perp2y = p2x - p3x;\n\n dist = Math.sqrt(perp2x*perp2x + perp2y*perp2y);\n perp2x /= dist;\n perp2y /= dist;\n perp2x *= width;\n perp2y *= width;\n\n a1 = (-perpy + p1y) - (-perpy + p2y);\n b1 = (-perpx + p2x) - (-perpx + p1x);\n c1 = (-perpx + p1x) * (-perpy + p2y) - (-perpx + p2x) * (-perpy + p1y);\n a2 = (-perp2y + p3y) - (-perp2y + p2y);\n b2 = (-perp2x + p2x) - (-perp2x + p3x);\n c2 = (-perp2x + p3x) * (-perp2y + p2y) - (-perp2x + p2x) * (-perp2y + p3y);\n\n denom = a1*b2 - a2*b1;\n\n if (Math.abs(denom) < 0.1 )\n {\n\n denom+=10.1;\n verts.push(p2x - perpx , p2y - perpy,\n r, g, b, alpha);\n\n verts.push(p2x + perpx , p2y + perpy,\n r, g, b, alpha);\n\n continue;\n }\n\n px = (b1*c2 - b2*c1)/denom;\n py = (a2*c1 - a1*c2)/denom;\n\n\n pdist = (px -p2x) * (px -p2x) + (py -p2y) * (py -p2y);\n\n\n if (pdist > 140 * 140)\n {\n perp3x = perpx - perp2x;\n perp3y = perpy - perp2y;\n\n dist = Math.sqrt(perp3x*perp3x + perp3y*perp3y);\n perp3x /= dist;\n perp3y /= dist;\n perp3x *= width;\n perp3y *= width;\n\n verts.push(p2x - perp3x, p2y -perp3y);\n verts.push(r, g, b, alpha);\n\n verts.push(p2x + perp3x, p2y +perp3y);\n verts.push(r, g, b, alpha);\n\n verts.push(p2x - perp3x, p2y -perp3y);\n verts.push(r, g, b, alpha);\n\n indexCount++;\n }\n else\n {\n\n verts.push(px , py);\n verts.push(r, g, b, alpha);\n\n verts.push(p2x - (px-p2x), p2y - (py - p2y));\n verts.push(r, g, b, alpha);\n }\n }\n\n p1x = points[(length-2)*2];\n p1y = points[(length-2)*2 + 1];\n\n p2x = points[(length-1)*2];\n p2y = points[(length-1)*2 + 1];\n\n perpx = -(p1y - p2y);\n perpy = p1x - p2x;\n\n dist = Math.sqrt(perpx*perpx + perpy*perpy);\n perpx /= dist;\n perpy /= dist;\n perpx *= width;\n perpy *= width;\n\n verts.push(p2x - perpx , p2y - perpy);\n verts.push(r, g, b, alpha);\n\n verts.push(p2x + perpx , p2y + perpy);\n verts.push(r, g, b, alpha);\n\n indices.push(indexStart);\n\n for (i = 0; i < indexCount; i++)\n {\n indices.push(indexStart++);\n }\n\n indices.push(indexStart-1);\n};\n\nmodule.exports = buildLine;\n","var buildLine = require('./buildLine'),\n utils = require('../../../utils'),\n earcut = require('earcut');\n\n/**\n * Builds a polygon to draw\n *\n * Ignored from docs since it is not directly exposed.\n *\n * @ignore\n * @private\n * @param graphicsData {PIXI.WebGLGraphicsData} The graphics object containing all the necessary properties\n * @param webGLData {object} an object containing all the webGL-specific information to create this shape\n */\nvar buildPoly = function (graphicsData, webGLData)\n{\n graphicsData.points = graphicsData.shape.points.slice();\n\n var points = graphicsData.points;\n\n if(graphicsData.fill && points.length > 6)\n {\n\n var holeArray = [];\n // Process holes..\n var holes = graphicsData.holes;\n\n for (var i = 0; i < holes.length; i++) {\n var hole = holes[i];\n\n holeArray.push(points.length/2);\n\n points = points.concat(hole.points);\n }\n\n // get first and last point.. figure out the middle!\n var verts = webGLData.points;\n var indices = webGLData.indices;\n\n var length = points.length / 2;\n\n // sort color\n var color = utils.hex2rgb(graphicsData.fillColor);\n var alpha = graphicsData.fillAlpha;\n var r = color[0] * alpha;\n var g = color[1] * alpha;\n var b = color[2] * alpha;\n\n var triangles = earcut(points, holeArray, 2);\n\n if (!triangles) {\n return;\n }\n\n var vertPos = verts.length / 6;\n\n for (i = 0; i < triangles.length; i+=3)\n {\n indices.push(triangles[i] + vertPos);\n indices.push(triangles[i] + vertPos);\n indices.push(triangles[i+1] + vertPos);\n indices.push(triangles[i+2] +vertPos);\n indices.push(triangles[i+2] + vertPos);\n }\n\n for (i = 0; i < length; i++)\n {\n verts.push(points[i * 2], points[i * 2 + 1],\n r, g, b, alpha);\n }\n }\n\n if (graphicsData.lineWidth > 0)\n {\n buildLine(graphicsData, webGLData);\n }\n};\n\n\nmodule.exports = buildPoly;\n","var buildLine = require('./buildLine'),\n utils = require('../../../utils');\n\n/**\n * Builds a rectangle to draw\n *\n * Ignored from docs since it is not directly exposed.\n *\n * @ignore\n * @private\n * @param graphicsData {PIXI.WebGLGraphicsData} The graphics object containing all the necessary properties\n * @param webGLData {object} an object containing all the webGL-specific information to create this shape\n */\nvar buildRectangle = function (graphicsData, webGLData)\n{\n // --- //\n // need to convert points to a nice regular data\n //\n var rectData = graphicsData.shape;\n var x = rectData.x;\n var y = rectData.y;\n var width = rectData.width;\n var height = rectData.height;\n\n if (graphicsData.fill)\n {\n var color = utils.hex2rgb(graphicsData.fillColor);\n var alpha = graphicsData.fillAlpha;\n\n var r = color[0] * alpha;\n var g = color[1] * alpha;\n var b = color[2] * alpha;\n\n var verts = webGLData.points;\n var indices = webGLData.indices;\n\n var vertPos = verts.length/6;\n\n // start\n verts.push(x, y);\n verts.push(r, g, b, alpha);\n\n verts.push(x + width, y);\n verts.push(r, g, b, alpha);\n\n verts.push(x , y + height);\n verts.push(r, g, b, alpha);\n\n verts.push(x + width, y + height);\n verts.push(r, g, b, alpha);\n\n // insert 2 dead triangles..\n indices.push(vertPos, vertPos, vertPos+1, vertPos+2, vertPos+3, vertPos+3);\n }\n\n if (graphicsData.lineWidth)\n {\n var tempPoints = graphicsData.points;\n\n graphicsData.points = [x, y,\n x + width, y,\n x + width, y + height,\n x, y + height,\n x, y];\n\n\n buildLine(graphicsData, webGLData);\n\n graphicsData.points = tempPoints;\n }\n};\n\nmodule.exports = buildRectangle;\n","var earcut = require('earcut'),\n buildLine = require('./buildLine'),\n utils = require('../../../utils');\n\n/**\n * Builds a rounded rectangle to draw\n *\n * Ignored from docs since it is not directly exposed.\n *\n * @ignore\n * @private\n * @param graphicsData {PIXI.WebGLGraphicsData} The graphics object containing all the necessary properties\n * @param webGLData {object} an object containing all the webGL-specific information to create this shape\n */\nvar buildRoundedRectangle = function (graphicsData, webGLData)\n{\n var rrectData = graphicsData.shape;\n var x = rrectData.x;\n var y = rrectData.y;\n var width = rrectData.width;\n var height = rrectData.height;\n\n var radius = rrectData.radius;\n\n var recPoints = [];\n recPoints.push(x, y + radius);\n quadraticBezierCurve(x, y + height - radius, x, y + height, x + radius, y + height, recPoints);\n quadraticBezierCurve(x + width - radius, y + height, x + width, y + height, x + width, y + height - radius, recPoints);\n quadraticBezierCurve(x + width, y + radius, x + width, y, x + width - radius, y, recPoints);\n quadraticBezierCurve(x + radius, y, x, y, x, y + radius + 0.0000000001, recPoints);\n\n // this tiny number deals with the issue that occurs when points overlap and earcut fails to triangulate the item.\n // TODO - fix this properly, this is not very elegant.. but it works for now.\n\n if (graphicsData.fill)\n {\n var color = utils.hex2rgb(graphicsData.fillColor);\n var alpha = graphicsData.fillAlpha;\n\n var r = color[0] * alpha;\n var g = color[1] * alpha;\n var b = color[2] * alpha;\n\n var verts = webGLData.points;\n var indices = webGLData.indices;\n\n var vecPos = verts.length/6;\n\n var triangles = earcut(recPoints, null, 2);\n\n var i = 0;\n for (i = 0; i < triangles.length; i+=3)\n {\n indices.push(triangles[i] + vecPos);\n indices.push(triangles[i] + vecPos);\n indices.push(triangles[i+1] + vecPos);\n indices.push(triangles[i+2] + vecPos);\n indices.push(triangles[i+2] + vecPos);\n }\n\n for (i = 0; i < recPoints.length; i++)\n {\n verts.push(recPoints[i], recPoints[++i], r, g, b, alpha);\n }\n }\n\n if (graphicsData.lineWidth)\n {\n var tempPoints = graphicsData.points;\n\n graphicsData.points = recPoints;\n\n buildLine(graphicsData, webGLData);\n\n graphicsData.points = tempPoints;\n }\n};\n\n/**\n * Calculate the points for a quadratic bezier curve. (helper function..)\n * Based on: https://stackoverflow.com/questions/785097/how-do-i-implement-a-bezier-curve-in-c\n *\n * Ignored from docs since it is not directly exposed.\n *\n * @ignore\n * @private\n * @param fromX {number} Origin point x\n * @param fromY {number} Origin point x\n * @param cpX {number} Control point x\n * @param cpY {number} Control point y\n * @param toX {number} Destination point x\n * @param toY {number} Destination point y\n * @param [out] {number[]} The output array to add points into. If not passed, a new array is created.\n * @return {number[]} an array of points\n */\nvar quadraticBezierCurve = function (fromX, fromY, cpX, cpY, toX, toY, out)// jshint ignore:line\n{\n var xa,\n ya,\n xb,\n yb,\n x,\n y,\n n = 20,\n points = out || [];\n\n function getPt(n1 , n2, perc) {\n var diff = n2 - n1;\n\n return n1 + ( diff * perc );\n }\n\n var j = 0;\n for (var i = 0; i <= n; i++ ) {\n j = i / n;\n\n // The Green Line\n xa = getPt( fromX , cpX , j );\n ya = getPt( fromY , cpY , j );\n xb = getPt( cpX , toX , j );\n yb = getPt( cpY , toY , j );\n\n // The Black Dot\n x = getPt( xa , xb , j );\n y = getPt( ya , yb , j );\n\n points.push(x, y);\n }\n\n return points;\n};\n\n\nmodule.exports = buildRoundedRectangle;\n","/**\n * @file Main export of the PIXI core library\n * @author Mat Groves \n * @copyright 2013-2015 GoodBoyDigital\n * @license {@link https://github.com/pixijs/pixi.js/blob/master/LICENSE|MIT License}\n */\n\n/**\n * @namespace PIXI\n */\n// export core and const. We assign core to const so that the non-reference types in const remain in-tact\nvar core = module.exports = Object.assign(require('./const'), require('./math'), {\n // utils\n utils: require('./utils'),\n ticker: require('./ticker'),\n\n // display\n DisplayObject: require('./display/DisplayObject'),\n Container: require('./display/Container'),\n Transform: require('./display/Transform'),\n TransformStatic: require('./display/TransformStatic'),\n TransformBase: require('./display/TransformBase'),\n\n // sprites\n Sprite: require('./sprites/Sprite'),\n CanvasSpriteRenderer: require('./sprites/canvas/CanvasSpriteRenderer'),\n CanvasTinter: require('./sprites/canvas/CanvasTinter'),\n SpriteRenderer: require('./sprites/webgl/SpriteRenderer'),\n\n // text\n Text: require('./text/Text'),\n TextStyle: require('./text/TextStyle'),\n // primitives\n Graphics: require('./graphics/Graphics'),\n GraphicsData: require('./graphics/GraphicsData'),\n GraphicsRenderer: require('./graphics/webgl/GraphicsRenderer'),\n CanvasGraphicsRenderer: require('./graphics/canvas/CanvasGraphicsRenderer'),\n\n // textures\n Texture: require('./textures/Texture'),\n BaseTexture: require('./textures/BaseTexture'),\n RenderTexture: require('./textures/RenderTexture'),\n BaseRenderTexture: require('./textures/BaseRenderTexture'),\n VideoBaseTexture: require('./textures/VideoBaseTexture'),\n TextureUvs: require('./textures/TextureUvs'),\n\n // renderers - canvas\n CanvasRenderer: require('./renderers/canvas/CanvasRenderer'),\n CanvasRenderTarget: require('./renderers/canvas/utils/CanvasRenderTarget'),\n\n // renderers - webgl\n Shader: require('./Shader'),\n WebGLRenderer: require('./renderers/webgl/WebGLRenderer'),\n WebGLManager: require('./renderers/webgl/managers/WebGLManager'),\n ObjectRenderer: require('./renderers/webgl/utils/ObjectRenderer'),\n RenderTarget: require('./renderers/webgl/utils/RenderTarget'),\n Quad: require('./renderers/webgl/utils/Quad'),\n\n // filters - webgl\n SpriteMaskFilter: require('./renderers/webgl/filters/spriteMask/SpriteMaskFilter'),\n Filter: require('./renderers/webgl/filters/Filter'),\n\n glCore: require('pixi-gl-core'),\n\n /**\n * This helper function will automatically detect which renderer you should be using.\n * WebGL is the preferred renderer as it is a lot faster. If webGL is not supported by\n * the browser then this function will return a canvas renderer\n *\n * @memberof PIXI\n * @param width=800 {number} the width of the renderers view\n * @param height=600 {number} the height of the renderers view\n * @param [options] {object} The optional renderer parameters\n * @param [options.view] {HTMLCanvasElement} the canvas to use as a view, optional\n * @param [options.transparent=false] {boolean} If the render view is transparent, default false\n * @param [options.antialias=false] {boolean} sets antialias (only applicable in chrome at the moment)\n * @param [options.preserveDrawingBuffer=false] {boolean} enables drawing buffer preservation, enable this if you\n * need to call toDataUrl on the webgl context\n * @param [options.resolution=1] {number} The resolution / device pixel ratio of the renderer, retina would be 2\n * @param [noWebGL=false] {boolean} prevents selection of WebGL renderer, even if such is present\n *\n * @return {WebGLRenderer|CanvasRenderer} Returns WebGL renderer if available, otherwise CanvasRenderer\n */\n autoDetectRenderer: function (width, height, options, noWebGL)\n {\n width = width || 800;\n height = height || 600;\n\n if (!noWebGL && core.utils.isWebGLSupported())\n {\n return new core.WebGLRenderer(width, height, options);\n }\n\n return new core.CanvasRenderer(width, height, options);\n }\n});\n","// Your friendly neighbour https://en.wikipedia.org/wiki/Dihedral_group of order 16\n\nvar ux = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1];\nvar uy = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1];\nvar vx = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1];\nvar vy = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1];\nvar tempMatrices = [];\nvar Matrix = require('./Matrix');\n\nvar mul = [];\n\nfunction signum(x) {\n if (x < 0) {\n return -1;\n }\n if (x > 0) {\n return 1;\n }\n return 0;\n}\n\nfunction init() {\n for (var i = 0; i < 16; i++) {\n var row = [];\n mul.push(row);\n for (var j = 0; j < 16; j++) {\n var _ux = signum(ux[i] * ux[j] + vx[i] * uy[j]);\n var _uy = signum(uy[i] * ux[j] + vy[i] * uy[j]);\n var _vx = signum(ux[i] * vx[j] + vx[i] * vy[j]);\n var _vy = signum(uy[i] * vx[j] + vy[i] * vy[j]);\n for (var k = 0; k < 16; k++) {\n if (ux[k] === _ux && uy[k] === _uy && vx[k] === _vx && vy[k] === _vy) {\n row.push(k);\n break;\n }\n }\n }\n }\n\n for (i=0;i<16;i++) {\n var mat = new Matrix();\n mat.set(ux[i], uy[i], vx[i], vy[i], 0, 0);\n tempMatrices.push(mat);\n }\n}\n\ninit();\n\n/**\n * Implements Dihedral Group D_8, see [group D4]{@link http://mathworld.wolfram.com/DihedralGroupD4.html}, D8 is the same but with diagonals\n * Used for texture rotations\n * Vector xX(i), xY(i) is U-axis of sprite with rotation i\n * Vector yY(i), yY(i) is V-axis of sprite with rotation i\n * Rotations: 0 grad (0), 90 grad (2), 180 grad (4), 270 grad (6)\n * Mirrors: vertical (8), main diagonal (10), horizontal (12), reverse diagonal (14)\n * This is the small part of gameofbombs.com portal system. It works.\n * @author Ivan @ivanpopelyshev\n *\n * @namespace PIXI.GroupD8\n */\nvar GroupD8 = {\n E: 0,\n SE: 1,\n S: 2,\n SW: 3,\n W: 4,\n NW: 5,\n N: 6,\n NE: 7,\n MIRROR_VERTICAL: 8,\n MIRROR_HORIZONTAL: 12,\n uX: function (ind) {\n return ux[ind];\n },\n uY: function (ind) {\n return uy[ind];\n },\n vX: function (ind) {\n return vx[ind];\n },\n vY: function (ind) {\n return vy[ind];\n },\n inv: function (rotation) {\n if (rotation & 8) {\n return rotation & 15;\n }\n return (-rotation) & 7;\n },\n add: function (rotationSecond, rotationFirst) {\n return mul[rotationSecond][rotationFirst];\n },\n sub: function (rotationSecond, rotationFirst) {\n return mul[rotationSecond][GroupD8.inv(rotationFirst)];\n },\n /**\n * Adds 180 degrees to rotation. Commutative operation\n * @param rotation\n * @returns {number}\n */\n rotate180: function (rotation) {\n return rotation ^ 4;\n },\n /**\n * I dont know why sometimes width and heights needs to be swapped. We'll fix it later.\n * @param rotation\n * @returns {boolean}\n */\n isSwapWidthHeight: function(rotation) {\n return (rotation & 3) === 2;\n },\n byDirection: function (dx, dy) {\n if (Math.abs(dx) * 2 <= Math.abs(dy)) {\n if (dy >= 0) {\n return GroupD8.S;\n }\n else {\n return GroupD8.N;\n }\n } else if (Math.abs(dy) * 2 <= Math.abs(dx)) {\n if (dx > 0) {\n return GroupD8.E;\n }\n else {\n return GroupD8.W;\n }\n } else {\n if (dy > 0) {\n if (dx > 0) {\n return GroupD8.SE;\n }\n else {\n return GroupD8.SW;\n }\n }\n else if (dx > 0) {\n return GroupD8.NE;\n }\n else {\n return GroupD8.NW;\n }\n }\n },\n /**\n * Helps sprite to compensate texture packer rotation.\n * @param matrix {PIXI.Matrix} sprite world matrix\n * @param rotation {number}\n * @param tx {number|*} sprite anchoring\n * @param ty {number|*} sprite anchoring\n */\n matrixAppendRotationInv: function (matrix, rotation, tx, ty) {\n //Packer used \"rotation\", we use \"inv(rotation)\"\n var mat = tempMatrices[GroupD8.inv(rotation)];\n tx = tx || 0;\n ty = ty || 0;\n mat.tx = tx;\n mat.ty = ty;\n matrix.append(mat);\n }\n};\n\nmodule.exports = GroupD8;\n","// @todo - ignore the too many parameters warning for now\n// should either fix it or change the jshint config\n// jshint -W072\n\nvar Point = require('./Point');\n\n/**\n * The pixi Matrix class as an object, which makes it a lot faster,\n * here is a representation of it :\n * | a | b | tx|\n * | c | d | ty|\n * | 0 | 0 | 1 |\n *\n * @class\n * @memberof PIXI\n */\nfunction Matrix()\n{\n /**\n * @member {number}\n * @default 1\n */\n this.a = 1;\n\n /**\n * @member {number}\n * @default 0\n */\n this.b = 0;\n\n /**\n * @member {number}\n * @default 0\n */\n this.c = 0;\n\n /**\n * @member {number}\n * @default 1\n */\n this.d = 1;\n\n /**\n * @member {number}\n * @default 0\n */\n this.tx = 0;\n\n /**\n * @member {number}\n * @default 0\n */\n this.ty = 0;\n\n this.array = null;\n}\n\nMatrix.prototype.constructor = Matrix;\nmodule.exports = Matrix;\n\n/**\n * Creates a Matrix object based on the given array. The Element to Matrix mapping order is as follows:\n *\n * a = array[0]\n * b = array[1]\n * c = array[3]\n * d = array[4]\n * tx = array[2]\n * ty = array[5]\n *\n * @param array {number[]} The array that the matrix will be populated from.\n */\nMatrix.prototype.fromArray = function (array)\n{\n this.a = array[0];\n this.b = array[1];\n this.c = array[3];\n this.d = array[4];\n this.tx = array[2];\n this.ty = array[5];\n};\n\n\n/**\n * sets the matrix properties\n *\n * @param {number} a\n * @param {number} b\n * @param {number} c\n * @param {number} d\n * @param {number} tx\n * @param {number} ty\n *\n * @return {PIXI.Matrix} This matrix. Good for chaining method calls.\n */\nMatrix.prototype.set = function (a, b, c, d, tx, ty)\n{\n this.a = a;\n this.b = b;\n this.c = c;\n this.d = d;\n this.tx = tx;\n this.ty = ty;\n\n return this;\n};\n\n\n/**\n * Creates an array from the current Matrix object.\n *\n * @param transpose {boolean} Whether we need to transpose the matrix or not\n * @param [out=new Float32Array(9)] {Float32Array} If provided the array will be assigned to out\n * @return {number[]} the newly created array which contains the matrix\n */\nMatrix.prototype.toArray = function (transpose, out)\n{\n if (!this.array)\n {\n this.array = new Float32Array(9);\n }\n\n var array = out || this.array;\n\n if (transpose)\n {\n array[0] = this.a;\n array[1] = this.b;\n array[2] = 0;\n array[3] = this.c;\n array[4] = this.d;\n array[5] = 0;\n array[6] = this.tx;\n array[7] = this.ty;\n array[8] = 1;\n }\n else\n {\n array[0] = this.a;\n array[1] = this.c;\n array[2] = this.tx;\n array[3] = this.b;\n array[4] = this.d;\n array[5] = this.ty;\n array[6] = 0;\n array[7] = 0;\n array[8] = 1;\n }\n\n return array;\n};\n\n/**\n * Get a new position with the current transformation applied.\n * Can be used to go from a child's coordinate space to the world coordinate space. (e.g. rendering)\n *\n * @param pos {PIXI.Point} The origin\n * @param [newPos] {PIXI.Point} The point that the new position is assigned to (allowed to be same as input)\n * @return {PIXI.Point} The new point, transformed through this matrix\n */\nMatrix.prototype.apply = function (pos, newPos)\n{\n newPos = newPos || new Point();\n\n var x = pos.x;\n var y = pos.y;\n\n newPos.x = this.a * x + this.c * y + this.tx;\n newPos.y = this.b * x + this.d * y + this.ty;\n\n return newPos;\n};\n\n/**\n * Get a new position with the inverse of the current transformation applied.\n * Can be used to go from the world coordinate space to a child's coordinate space. (e.g. input)\n *\n * @param pos {PIXI.Point} The origin\n * @param [newPos] {PIXI.Point} The point that the new position is assigned to (allowed to be same as input)\n * @return {PIXI.Point} The new point, inverse-transformed through this matrix\n */\nMatrix.prototype.applyInverse = function (pos, newPos)\n{\n newPos = newPos || new Point();\n\n var id = 1 / (this.a * this.d + this.c * -this.b);\n\n var x = pos.x;\n var y = pos.y;\n\n newPos.x = this.d * id * x + -this.c * id * y + (this.ty * this.c - this.tx * this.d) * id;\n newPos.y = this.a * id * y + -this.b * id * x + (-this.ty * this.a + this.tx * this.b) * id;\n\n return newPos;\n};\n\n/**\n * Translates the matrix on the x and y.\n *\n * @param {number} x How much to translate x by\n * @param {number} y How much to translate y by\n * @return {PIXI.Matrix} This matrix. Good for chaining method calls.\n */\nMatrix.prototype.translate = function (x, y)\n{\n this.tx += x;\n this.ty += y;\n\n return this;\n};\n\n/**\n * Applies a scale transformation to the matrix.\n *\n * @param {number} x The amount to scale horizontally\n * @param {number} y The amount to scale vertically\n * @return {PIXI.Matrix} This matrix. Good for chaining method calls.\n */\nMatrix.prototype.scale = function (x, y)\n{\n this.a *= x;\n this.d *= y;\n this.c *= x;\n this.b *= y;\n this.tx *= x;\n this.ty *= y;\n\n return this;\n};\n\n\n/**\n * Applies a rotation transformation to the matrix.\n *\n * @param {number} angle - The angle in radians.\n * @return {PIXI.Matrix} This matrix. Good for chaining method calls.\n */\nMatrix.prototype.rotate = function (angle)\n{\n var cos = Math.cos( angle );\n var sin = Math.sin( angle );\n\n var a1 = this.a;\n var c1 = this.c;\n var tx1 = this.tx;\n\n this.a = a1 * cos-this.b * sin;\n this.b = a1 * sin+this.b * cos;\n this.c = c1 * cos-this.d * sin;\n this.d = c1 * sin+this.d * cos;\n this.tx = tx1 * cos - this.ty * sin;\n this.ty = tx1 * sin + this.ty * cos;\n\n return this;\n};\n\n/**\n * Appends the given Matrix to this Matrix.\n *\n * @param {PIXI.Matrix} matrix\n * @return {PIXI.Matrix} This matrix. Good for chaining method calls.\n */\nMatrix.prototype.append = function (matrix)\n{\n var a1 = this.a;\n var b1 = this.b;\n var c1 = this.c;\n var d1 = this.d;\n\n this.a = matrix.a * a1 + matrix.b * c1;\n this.b = matrix.a * b1 + matrix.b * d1;\n this.c = matrix.c * a1 + matrix.d * c1;\n this.d = matrix.c * b1 + matrix.d * d1;\n\n this.tx = matrix.tx * a1 + matrix.ty * c1 + this.tx;\n this.ty = matrix.tx * b1 + matrix.ty * d1 + this.ty;\n\n return this;\n};\n\n/**\n * Sets the matrix based on all the available properties\n *\n * @param {number} x Position on the x axis\n * @param {number} y Position on the y axis\n * @param {number} pivotX Pivot on the x axis\n * @param {number} pivotY Pivot on the y axis\n * @param {number} scaleX Scale on the x axis\n * @param {number} scaleY Scale on the y axis\n * @param {number} rotation Rotation in radians\n * @param {number} skewX Skew on the x axis\n * @param {number} skewY Skew on the y axis\n *\n * @return {PIXI.Matrix} This matrix. Good for chaining method calls.\n */\nMatrix.prototype.setTransform = function (x, y, pivotX, pivotY, scaleX, scaleY, rotation, skewX, skewY)\n{\n var a, b, c, d, sr, cr, cy, sy, nsx, cx;\n\n sr = Math.sin(rotation);\n cr = Math.cos(rotation);\n cy = Math.cos(skewY);\n sy = Math.sin(skewY);\n nsx = -Math.sin(skewX);\n cx = Math.cos(skewX);\n\n a = cr * scaleX;\n b = sr * scaleX;\n c = -sr * scaleY;\n d = cr * scaleY;\n\n this.a = cy * a + sy * c;\n this.b = cy * b + sy * d;\n this.c = nsx * a + cx * c;\n this.d = nsx * b + cx * d;\n\n this.tx = x + ( pivotX * a + pivotY * c );\n this.ty = y + ( pivotX * b + pivotY * d );\n\n return this;\n};\n\n/**\n * Prepends the given Matrix to this Matrix.\n *\n * @param {PIXI.Matrix} matrix\n * @return {PIXI.Matrix} This matrix. Good for chaining method calls.\n */\nMatrix.prototype.prepend = function(matrix)\n{\n var tx1 = this.tx;\n\n if (matrix.a !== 1 || matrix.b !== 0 || matrix.c !== 0 || matrix.d !== 1)\n {\n var a1 = this.a;\n var c1 = this.c;\n this.a = a1*matrix.a+this.b*matrix.c;\n this.b = a1*matrix.b+this.b*matrix.d;\n this.c = c1*matrix.a+this.d*matrix.c;\n this.d = c1*matrix.b+this.d*matrix.d;\n }\n\n this.tx = tx1*matrix.a+this.ty*matrix.c+matrix.tx;\n this.ty = tx1*matrix.b+this.ty*matrix.d+matrix.ty;\n\n return this;\n};\n\n/**\n * Decomposes the matrix (x, y, scaleX, scaleY, and rotation) and sets the properties on to a transform.\n * @param transform {PIXI.Transform|PIXI.TransformStatic} the transform to apply the properties to.\n * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properies\n*/\nMatrix.prototype.decompose = function(transform)\n{\n // sort out rotation / skew..\n var a = this.a,\n b = this.b,\n c = this.c,\n d = this.d;\n\n var skewX = Math.atan2(-c, d);\n var skewY = Math.atan2(b, a);\n\n var delta = Math.abs(1-skewX/skewY);\n\n if (delta < 0.00001)\n {\n transform.rotation = skewY;\n\n if (a < 0 && d >= 0)\n {\n transform.rotation += (transform.rotation <= 0) ? Math.PI : -Math.PI;\n }\n\n transform.skew.x = transform.skew.y = 0;\n\n }\n else\n {\n transform.skew.x = skewX;\n transform.skew.y = skewY;\n }\n\n // next set scale\n transform.scale.x = Math.sqrt(a * a + b * b);\n transform.scale.y = Math.sqrt(c * c + d * d);\n\n // next set position\n transform.position.x = this.tx;\n transform.position.y = this.ty;\n\n return transform;\n};\n\n\n/**\n * Inverts this matrix\n *\n * @return {PIXI.Matrix} This matrix. Good for chaining method calls.\n */\nMatrix.prototype.invert = function()\n{\n var a1 = this.a;\n var b1 = this.b;\n var c1 = this.c;\n var d1 = this.d;\n var tx1 = this.tx;\n var n = a1*d1-b1*c1;\n\n this.a = d1/n;\n this.b = -b1/n;\n this.c = -c1/n;\n this.d = a1/n;\n this.tx = (c1*this.ty-d1*tx1)/n;\n this.ty = -(a1*this.ty-b1*tx1)/n;\n\n return this;\n};\n\n\n/**\n * Resets this Matix to an identity (default) matrix.\n *\n * @return {PIXI.Matrix} This matrix. Good for chaining method calls.\n */\nMatrix.prototype.identity = function ()\n{\n this.a = 1;\n this.b = 0;\n this.c = 0;\n this.d = 1;\n this.tx = 0;\n this.ty = 0;\n\n return this;\n};\n\n/**\n * Creates a new Matrix object with the same values as this one.\n *\n * @return {PIXI.Matrix} A copy of this matrix. Good for chaining method calls.\n */\nMatrix.prototype.clone = function ()\n{\n var matrix = new Matrix();\n matrix.a = this.a;\n matrix.b = this.b;\n matrix.c = this.c;\n matrix.d = this.d;\n matrix.tx = this.tx;\n matrix.ty = this.ty;\n\n return matrix;\n};\n\n/**\n * Changes the values of the given matrix to be the same as the ones in this matrix\n *\n * @return {PIXI.Matrix} The matrix given in parameter with its values updated.\n */\nMatrix.prototype.copy = function (matrix)\n{\n matrix.a = this.a;\n matrix.b = this.b;\n matrix.c = this.c;\n matrix.d = this.d;\n matrix.tx = this.tx;\n matrix.ty = this.ty;\n\n return matrix;\n};\n\n/**\n * A default (identity) matrix\n *\n * @static\n * @const\n */\nMatrix.IDENTITY = new Matrix();\n\n/**\n * A temp matrix\n *\n * @static\n * @const\n */\nMatrix.TEMP_MATRIX = new Matrix();\n","/**\n * The Point object represents a location in a two-dimensional coordinate system, where x represents\n * the horizontal axis and y represents the vertical axis.\n * An observable point is a point that triggers a callback when the point's position is changed.\n *\n * @class\n * @memberof PIXI\n * @param cb {Function} callback when changed\n * @param scope {Object} owner of callback\n * @param [x=0] {number} position of the point on the x axis\n * @param [y=0] {number} position of the point on the y axis\n */\nfunction ObservablePoint(cb, scope, x, y)\n{\n this._x = x || 0;\n this._y = y || 0;\n\n this.cb = cb;\n this.scope = scope;\n}\n\nObservablePoint.prototype.constructor = ObservablePoint;\nmodule.exports = ObservablePoint;\n\n\n\nObject.defineProperties(ObservablePoint.prototype, {\n /**\n * The position of the displayObject on the x axis relative to the local coordinates of the parent.\n *\n * @member {number}\n * @memberof PIXI.ObservablePoint#\n */\n x: {\n get: function ()\n {\n return this._x;\n },\n set: function (value)\n {\n if (this._x !== value) {\n this._x = value;\n this.cb.call(this.scope);\n }\n }\n },\n /**\n * The position of the displayObject on the x axis relative to the local coordinates of the parent.\n *\n * @member {number}\n * @memberof PIXI.ObservablePoint#\n */\n y: {\n get: function ()\n {\n return this._y;\n },\n set: function (value)\n {\n if (this._y !== value) {\n this._y = value;\n this.cb.call(this.scope);\n }\n }\n }\n});\n\n/**\n * Sets the point to a new x and y position.\n * If y is omitted, both x and y will be set to x.\n *\n * @param [x=0] {number} position of the point on the x axis\n * @param [y=0] {number} position of the point on the y axis\n */\nObservablePoint.prototype.set = function (x, y)\n{\n var _x = x || 0;\n var _y = y || ( (y !== 0) ? _x : 0 );\n if (this._x !== _x || this._y !== _y)\n {\n this._x = _x;\n this._y = _y;\n this.cb.call(this.scope);\n }\n};\n\n/**\n * Copies the data from another point\n *\n * @param point {PIXI.Point|PIXI.ObservablePoint} point to copy from\n */\nObservablePoint.prototype.copy = function (point)\n{\n if (this._x !== point.x || this._y !== point.y)\n {\n this._x = point.x;\n this._y = point.y;\n this.cb.call(this.scope);\n }\n};\n","/**\n * The Point object represents a location in a two-dimensional coordinate system, where x represents\n * the horizontal axis and y represents the vertical axis.\n *\n * @class\n * @memberof PIXI\n * @param [x=0] {number} position of the point on the x axis\n * @param [y=0] {number} position of the point on the y axis\n */\nfunction Point(x, y)\n{\n /**\n * @member {number}\n * @default 0\n */\n this.x = x || 0;\n\n /**\n * @member {number}\n * @default 0\n */\n this.y = y || 0;\n}\n\nPoint.prototype.constructor = Point;\nmodule.exports = Point;\n\n/**\n * Creates a clone of this point\n *\n * @return {PIXI.Point} a copy of the point\n */\nPoint.prototype.clone = function ()\n{\n return new Point(this.x, this.y);\n};\n\n/**\n * Copies x and y from the given point\n *\n * @param p {PIXI.Point}\n */\nPoint.prototype.copy = function (p) {\n this.set(p.x, p.y);\n};\n\n/**\n * Returns true if the given point is equal to this point\n *\n * @param p {PIXI.Point}\n * @returns {boolean} Whether the given point equal to this point\n */\nPoint.prototype.equals = function (p) {\n return (p.x === this.x) && (p.y === this.y);\n};\n\n/**\n * Sets the point to a new x and y position.\n * If y is omitted, both x and y will be set to x.\n *\n * @param [x=0] {number} position of the point on the x axis\n * @param [y=0] {number} position of the point on the y axis\n */\nPoint.prototype.set = function (x, y)\n{\n this.x = x || 0;\n this.y = y || ( (y !== 0) ? this.x : 0 ) ;\n};\n","/**\n * Math classes and utilities mixed into PIXI namespace.\n *\n * @lends PIXI\n */\nmodule.exports = {\n // These will be mixed to be made publicly available,\n // while this module is used internally in core\n // to avoid circular dependencies and cut down on\n // internal module requires.\n\n Point: require('./Point'),\n ObservablePoint: require('./ObservablePoint'),\n Matrix: require('./Matrix'),\n GroupD8: require('./GroupD8'),\n\n Circle: require('./shapes/Circle'),\n Ellipse: require('./shapes/Ellipse'),\n Polygon: require('./shapes/Polygon'),\n Rectangle: require('./shapes/Rectangle'),\n RoundedRectangle: require('./shapes/RoundedRectangle')\n};\n","var Rectangle = require('./Rectangle'),\n CONST = require('../../const');\n\n/**\n * The Circle object can be used to specify a hit area for displayObjects\n *\n * @class\n * @memberof PIXI\n * @param x {number} The X coordinate of the center of this circle\n * @param y {number} The Y coordinate of the center of this circle\n * @param radius {number} The radius of the circle\n */\nfunction Circle(x, y, radius)\n{\n /**\n * @member {number}\n * @default 0\n */\n this.x = x || 0;\n\n /**\n * @member {number}\n * @default 0\n */\n this.y = y || 0;\n\n /**\n * @member {number}\n * @default 0\n */\n this.radius = radius || 0;\n\n /**\n * The type of the object, mainly used to avoid `instanceof` checks\n *\n * @member {number}\n * @readOnly\n * @default CONST.SHAPES.CIRC\n * @see PIXI.SHAPES\n */\n this.type = CONST.SHAPES.CIRC;\n}\n\nCircle.prototype.constructor = Circle;\nmodule.exports = Circle;\n\n/**\n * Creates a clone of this Circle instance\n *\n * @return {PIXI.Circle} a copy of the Circle\n */\nCircle.prototype.clone = function ()\n{\n return new Circle(this.x, this.y, this.radius);\n};\n\n/**\n * Checks whether the x and y coordinates given are contained within this circle\n *\n * @param x {number} The X coordinate of the point to test\n * @param y {number} The Y coordinate of the point to test\n * @return {boolean} Whether the x/y coordinates are within this Circle\n */\nCircle.prototype.contains = function (x, y)\n{\n if (this.radius <= 0)\n {\n return false;\n }\n\n var dx = (this.x - x),\n dy = (this.y - y),\n r2 = this.radius * this.radius;\n\n dx *= dx;\n dy *= dy;\n\n return (dx + dy <= r2);\n};\n\n/**\n* Returns the framing rectangle of the circle as a Rectangle object\n*\n* @return {PIXI.Rectangle} the framing rectangle\n*/\nCircle.prototype.getBounds = function ()\n{\n return new Rectangle(this.x - this.radius, this.y - this.radius, this.radius * 2, this.radius * 2);\n};\n","var Rectangle = require('./Rectangle'),\n CONST = require('../../const');\n\n/**\n * The Ellipse object can be used to specify a hit area for displayObjects\n *\n * @class\n * @memberof PIXI\n * @param x {number} The X coordinate of the center of the ellipse\n * @param y {number} The Y coordinate of the center of the ellipse\n * @param width {number} The half width of this ellipse\n * @param height {number} The half height of this ellipse\n */\nfunction Ellipse(x, y, width, height)\n{\n /**\n * @member {number}\n * @default 0\n */\n this.x = x || 0;\n\n /**\n * @member {number}\n * @default 0\n */\n this.y = y || 0;\n\n /**\n * @member {number}\n * @default 0\n */\n this.width = width || 0;\n\n /**\n * @member {number}\n * @default 0\n */\n this.height = height || 0;\n\n /**\n * The type of the object, mainly used to avoid `instanceof` checks\n *\n * @member {number}\n * @readOnly\n * @default CONST.SHAPES.ELIP\n * @see PIXI.SHAPES\n */\n this.type = CONST.SHAPES.ELIP;\n}\n\nEllipse.prototype.constructor = Ellipse;\nmodule.exports = Ellipse;\n\n/**\n * Creates a clone of this Ellipse instance\n *\n * @return {PIXI.Ellipse} a copy of the ellipse\n */\nEllipse.prototype.clone = function ()\n{\n return new Ellipse(this.x, this.y, this.width, this.height);\n};\n\n/**\n * Checks whether the x and y coordinates given are contained within this ellipse\n *\n * @param x {number} The X coordinate of the point to test\n * @param y {number} The Y coordinate of the point to test\n * @return {boolean} Whether the x/y coords are within this ellipse\n */\nEllipse.prototype.contains = function (x, y)\n{\n if (this.width <= 0 || this.height <= 0)\n {\n return false;\n }\n\n //normalize the coords to an ellipse with center 0,0\n var normx = ((x - this.x) / this.width),\n normy = ((y - this.y) / this.height);\n\n normx *= normx;\n normy *= normy;\n\n return (normx + normy <= 1);\n};\n\n/**\n * Returns the framing rectangle of the ellipse as a Rectangle object\n *\n * @return {PIXI.Rectangle} the framing rectangle\n */\nEllipse.prototype.getBounds = function ()\n{\n return new Rectangle(this.x - this.width, this.y - this.height, this.width, this.height);\n};\n","var Point = require('../Point'),\n CONST = require('../../const');\n\n/**\n * @class\n * @memberof PIXI\n * @param points_ {PIXI.Point[]|number[]|...PIXI.Point|...number} This can be an array of Points that form the polygon,\n * a flat array of numbers that will be interpreted as [x,y, x,y, ...], or the arguments passed can be\n * all the points of the polygon e.g. `new PIXI.Polygon(new PIXI.Point(), new PIXI.Point(), ...)`, or the\n * arguments passed can be flat x,y values e.g. `new Polygon(x,y, x,y, x,y, ...)` where `x` and `y` are\n * Numbers.\n */\nfunction Polygon(points_)\n{\n // prevents an argument assignment deopt\n // see section 3.1: https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments\n var points = points_;\n\n //if points isn't an array, use arguments as the array\n if (!Array.isArray(points))\n {\n // prevents an argument leak deopt\n // see section 3.2: https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments\n points = new Array(arguments.length);\n\n for (var a = 0; a < points.length; ++a) {\n points[a] = arguments[a];\n }\n }\n\n // if this is an array of points, convert it to a flat array of numbers\n if (points[0] instanceof Point)\n {\n var p = [];\n for (var i = 0, il = points.length; i < il; i++)\n {\n p.push(points[i].x, points[i].y);\n }\n\n points = p;\n }\n\n this.closed = true;\n\n /**\n * An array of the points of this polygon\n *\n * @member {number[]}\n */\n this.points = points;\n\n /**\n * The type of the object, mainly used to avoid `instanceof` checks\n *\n * @member {number}\n * @readOnly\n * @default CONST.SHAPES.POLY\n * @see PIXI.SHAPES\n */\n this.type = CONST.SHAPES.POLY;\n}\n\nPolygon.prototype.constructor = Polygon;\nmodule.exports = Polygon;\n\n/**\n * Creates a clone of this polygon\n *\n * @return {PIXI.Polygon} a copy of the polygon\n */\nPolygon.prototype.clone = function ()\n{\n return new Polygon(this.points.slice());\n};\n\n\nPolygon.prototype.close = function ()\n{\n var points = this.points;\n\n // close the poly if the value is true!\n if (points[0] !== points[points.length-2] || points[1] !== points[points.length-1])\n {\n points.push(points[0], points[1]);\n }\n};\n\n/**\n * Checks whether the x and y coordinates passed to this function are contained within this polygon\n *\n * @param x {number} The X coordinate of the point to test\n * @param y {number} The Y coordinate of the point to test\n * @return {boolean} Whether the x/y coordinates are within this polygon\n */\nPolygon.prototype.contains = function (x, y)\n{\n var inside = false;\n\n // use some raycasting to test hits\n // https://github.com/substack/point-in-polygon/blob/master/index.js\n var length = this.points.length / 2;\n\n for (var i = 0, j = length - 1; i < length; j = i++)\n {\n var xi = this.points[i * 2], yi = this.points[i * 2 + 1],\n xj = this.points[j * 2], yj = this.points[j * 2 + 1],\n intersect = ((yi > y) !== (yj > y)) && (x < (xj - xi) * (y - yi) / (yj - yi) + xi);\n\n if (intersect)\n {\n inside = !inside;\n }\n }\n\n return inside;\n};\n","var CONST = require('../../const');\n\n/**\n * the Rectangle object is an area defined by its position, as indicated by its top-left corner point (x, y) and by its width and its height.\n *\n * @class\n * @memberof PIXI\n * @param x {number} The X coordinate of the upper-left corner of the rectangle\n * @param y {number} The Y coordinate of the upper-left corner of the rectangle\n * @param width {number} The overall width of this rectangle\n * @param height {number} The overall height of this rectangle\n */\nfunction Rectangle(x, y, width, height)\n{\n /**\n * @member {number}\n * @default 0\n */\n this.x = x || 0;\n\n /**\n * @member {number}\n * @default 0\n */\n this.y = y || 0;\n\n /**\n * @member {number}\n * @default 0\n */\n this.width = width || 0;\n\n /**\n * @member {number}\n * @default 0\n */\n this.height = height || 0;\n\n /**\n * The type of the object, mainly used to avoid `instanceof` checks\n *\n * @member {number}\n * @readOnly\n * @default CONST.SHAPES.RECT\n * @see PIXI.SHAPES\n */\n this.type = CONST.SHAPES.RECT;\n}\n\nRectangle.prototype.constructor = Rectangle;\nmodule.exports = Rectangle;\n\n/**\n * A constant empty rectangle.\n *\n * @static\n * @constant\n */\nRectangle.EMPTY = new Rectangle(0, 0, 0, 0);\n\n\n/**\n * Creates a clone of this Rectangle\n *\n * @return {PIXI.Rectangle} a copy of the rectangle\n */\nRectangle.prototype.clone = function ()\n{\n return new Rectangle(this.x, this.y, this.width, this.height);\n};\n\nRectangle.prototype.copy = function (rectangle)\n{\n this.x = rectangle.x;\n this.y = rectangle.y;\n this.width = rectangle.width;\n this.height = rectangle.height;\n\n return this;\n};\n\n/**\n * Checks whether the x and y coordinates given are contained within this Rectangle\n *\n * @param x {number} The X coordinate of the point to test\n * @param y {number} The Y coordinate of the point to test\n * @return {boolean} Whether the x/y coordinates are within this Rectangle\n */\nRectangle.prototype.contains = function (x, y)\n{\n if (this.width <= 0 || this.height <= 0)\n {\n return false;\n }\n\n if (x >= this.x && x < this.x + this.width)\n {\n if (y >= this.y && y < this.y + this.height)\n {\n return true;\n }\n }\n\n return false;\n};\n\nRectangle.prototype.pad = function (paddingX, paddingY)\n{\n paddingX = paddingX || 0;\n paddingY = paddingY || ( (paddingY !== 0) ? paddingX : 0 );\n\n this.x -= paddingX;\n this.y -= paddingY;\n\n this.width += paddingX * 2;\n this.height += paddingY * 2;\n};\n\nRectangle.prototype.fit = function (rectangle)\n{\n if (this.x < rectangle.x)\n {\n this.width += this.x;\n if(this.width < 0) {\n this.width = 0;\n }\n\n this.x = rectangle.x;\n }\n\n if (this.y < rectangle.y)\n {\n this.height += this.y;\n if(this.height < 0) {\n this.height = 0;\n }\n this.y = rectangle.y;\n }\n\n if ( this.x + this.width > rectangle.x + rectangle.width )\n {\n this.width = rectangle.width - this.x;\n if(this.width < 0) {\n this.width = 0;\n }\n }\n\n if ( this.y + this.height > rectangle.y + rectangle.height )\n {\n this.height = rectangle.height - this.y;\n if(this.height < 0) {\n this.height = 0;\n }\n }\n};\n\nRectangle.prototype.enlarge = function (rect)\n{\n\n if (rect === Rectangle.EMPTY)\n {\n return;\n }\n\n var x1 = Math.min(this.x, rect.x);\n var x2 = Math.max(this.x + this.width, rect.x + rect.width);\n var y1 = Math.min(this.y, rect.y);\n var y2 = Math.max(this.y + this.height, rect.y + rect.height);\n this.x = x1;\n this.width = x2 - x1;\n this.y = y1;\n this.height = y2 - y1;\n};\n","var CONST = require('../../const');\n\n/**\n * The Rounded Rectangle object is an area that has nice rounded corners, as indicated by its top-left corner point (x, y) and by its width and its height and its radius.\n *\n * @class\n * @memberof PIXI\n * @param x {number} The X coordinate of the upper-left corner of the rounded rectangle\n * @param y {number} The Y coordinate of the upper-left corner of the rounded rectangle\n * @param width {number} The overall width of this rounded rectangle\n * @param height {number} The overall height of this rounded rectangle\n * @param radius {number} Controls the radius of the rounded corners\n */\nfunction RoundedRectangle(x, y, width, height, radius)\n{\n /**\n * @member {number}\n * @default 0\n */\n this.x = x || 0;\n\n /**\n * @member {number}\n * @default 0\n */\n this.y = y || 0;\n\n /**\n * @member {number}\n * @default 0\n */\n this.width = width || 0;\n\n /**\n * @member {number}\n * @default 0\n */\n this.height = height || 0;\n\n /**\n * @member {number}\n * @default 20\n */\n this.radius = radius || 20;\n\n /**\n * The type of the object, mainly used to avoid `instanceof` checks\n *\n * @member {number}\n * @readonly\n * @default CONST.SHAPES.RREC\n * @see PIXI.SHAPES\n */\n this.type = CONST.SHAPES.RREC;\n}\n\nRoundedRectangle.prototype.constructor = RoundedRectangle;\nmodule.exports = RoundedRectangle;\n\n/**\n * Creates a clone of this Rounded Rectangle\n *\n * @return {PIXI.RoundedRectangle} a copy of the rounded rectangle\n */\nRoundedRectangle.prototype.clone = function ()\n{\n return new RoundedRectangle(this.x, this.y, this.width, this.height, this.radius);\n};\n\n/**\n * Checks whether the x and y coordinates given are contained within this Rounded Rectangle\n *\n * @param x {number} The X coordinate of the point to test\n * @param y {number} The Y coordinate of the point to test\n * @return {boolean} Whether the x/y coordinates are within this Rounded Rectangle\n */\nRoundedRectangle.prototype.contains = function (x, y)\n{\n if (this.width <= 0 || this.height <= 0)\n {\n return false;\n }\n\n if (x >= this.x && x <= this.x + this.width)\n {\n if (y >= this.y && y <= this.y + this.height)\n {\n return true;\n }\n }\n\n return false;\n};\n","var utils = require('../utils'),\n math = require('../math'),\n CONST = require('../const'),\n Container = require('../display/Container'),\n RenderTexture = require('../textures/RenderTexture'),\n EventEmitter = require('eventemitter3'),\n tempMatrix = new math.Matrix();\n/**\n * The CanvasRenderer draws the scene and all its content onto a 2d canvas. This renderer should be used for browsers that do not support webGL.\n * Don't forget to add the CanvasRenderer.view to your DOM or you will not see anything :)\n *\n * @class\n * @memberof PIXI\n * @param system {string} The name of the system this renderer is for.\n * @param [width=800] {number} the width of the canvas view\n * @param [height=600] {number} the height of the canvas view\n * @param [options] {object} The optional renderer parameters\n * @param [options.view] {HTMLCanvasElement} the canvas to use as a view, optional\n * @param [options.transparent=false] {boolean} If the render view is transparent, default false\n * @param [options.autoResize=false] {boolean} If the render view is automatically resized, default false\n * @param [options.antialias=false] {boolean} sets antialias (only applicable in chrome at the moment)\n * @param [options.resolution=1] {number} The resolution / device pixel ratio of the renderer. The resolution of the renderer retina would be 2.\n * @param [options.clearBeforeRender=true] {boolean} This sets if the CanvasRenderer will clear the canvas or\n * not before the new render pass.\n * @param [options.backgroundColor=0x000000] {number} The background color of the rendered area (shown if not transparent).\n * @param [options.roundPixels=false] {boolean} If true Pixi will Math.floor() x/y values when rendering, stopping pixel interpolation.\n */\nfunction SystemRenderer(system, width, height, options)\n{\n EventEmitter.call(this);\n\n utils.sayHello(system);\n\n // prepare options\n if (options)\n {\n for (var i in CONST.DEFAULT_RENDER_OPTIONS)\n {\n if (typeof options[i] === 'undefined')\n {\n options[i] = CONST.DEFAULT_RENDER_OPTIONS[i];\n }\n }\n }\n else\n {\n options = CONST.DEFAULT_RENDER_OPTIONS;\n }\n\n /**\n * The type of the renderer.\n *\n * @member {number}\n * @default PIXI.RENDERER_TYPE.UNKNOWN\n * @see PIXI.RENDERER_TYPE\n */\n this.type = CONST.RENDERER_TYPE.UNKNOWN;\n\n /**\n * The width of the canvas view\n *\n * @member {number}\n * @default 800\n */\n this.width = width || 800;\n\n /**\n * The height of the canvas view\n *\n * @member {number}\n * @default 600\n */\n this.height = height || 600;\n\n /**\n * The canvas element that everything is drawn to\n *\n * @member {HTMLCanvasElement}\n */\n this.view = options.view || document.createElement('canvas');\n\n /**\n * The resolution / device pixel ratio of the renderer\n *\n * @member {number}\n * @default 1\n */\n this.resolution = options.resolution;\n\n /**\n * Whether the render view is transparent\n *\n * @member {boolean}\n */\n this.transparent = options.transparent;\n\n /**\n * Whether the render view should be resized automatically\n *\n * @member {boolean}\n */\n this.autoResize = options.autoResize || false;\n\n /**\n * Tracks the blend modes useful for this renderer.\n *\n * @member {object}\n */\n this.blendModes = null;\n\n /**\n * The value of the preserveDrawingBuffer flag affects whether or not the contents of the stencil buffer is retained after rendering.\n *\n * @member {boolean}\n */\n this.preserveDrawingBuffer = options.preserveDrawingBuffer;\n\n /**\n * This sets if the CanvasRenderer will clear the canvas or not before the new render pass.\n * If the scene is NOT transparent Pixi will use a canvas sized fillRect operation every frame to set the canvas background color.\n * If the scene is transparent Pixi will use clearRect to clear the canvas every frame.\n * Disable this by setting this to false. For example if your game has a canvas filling background image you often don't need this set.\n *\n * @member {boolean}\n * @default\n */\n this.clearBeforeRender = options.clearBeforeRender;\n\n /**\n * If true Pixi will Math.floor() x/y values when rendering, stopping pixel interpolation.\n * Handy for crisp pixel art and speed on legacy devices.\n *\n * @member {boolean}\n */\n this.roundPixels = options.roundPixels;\n\n /**\n * The background color as a number.\n *\n * @member {number}\n * @private\n */\n this._backgroundColor = 0x000000;\n\n /**\n * The background color as an [R, G, B] array.\n *\n * @member {number[]}\n * @private\n */\n this._backgroundColorRgba = [0, 0, 0, 0];\n\n /**\n * The background color as a string.\n *\n * @member {string}\n * @private\n */\n this._backgroundColorString = '#000000';\n\n this.backgroundColor = options.backgroundColor || this._backgroundColor; // run bg color setter\n\n /**\n * This temporary display object used as the parent of the currently being rendered item\n *\n * @member {PIXI.DisplayObject}\n * @private\n */\n this._tempDisplayObjectParent = new Container();\n\n /**\n * The last root object that the renderer tried to render.\n *\n * @member {PIXI.DisplayObject}\n * @private\n */\n this._lastObjectRendered = this._tempDisplayObjectParent;\n}\n\n// constructor\nSystemRenderer.prototype = Object.create(EventEmitter.prototype);\nSystemRenderer.prototype.constructor = SystemRenderer;\nmodule.exports = SystemRenderer;\n\nObject.defineProperties(SystemRenderer.prototype, {\n /**\n * The background color to fill if not transparent\n *\n * @member {number}\n * @memberof PIXI.SystemRenderer#\n */\n backgroundColor:\n {\n get: function ()\n {\n return this._backgroundColor;\n },\n set: function (val)\n {\n this._backgroundColor = val;\n this._backgroundColorString = utils.hex2string(val);\n utils.hex2rgb(val, this._backgroundColorRgba);\n }\n }\n});\n\n/**\n * Resizes the canvas view to the specified width and height\n *\n * @param width {number} the new width of the canvas view\n * @param height {number} the new height of the canvas view\n */\nSystemRenderer.prototype.resize = function (width, height) {\n this.width = width * this.resolution;\n this.height = height * this.resolution;\n\n this.view.width = this.width;\n this.view.height = this.height;\n\n if (this.autoResize)\n {\n this.view.style.width = this.width / this.resolution + 'px';\n this.view.style.height = this.height / this.resolution + 'px';\n }\n};\n\n/**\n * Useful function that returns a texture of the display object that can then be used to create sprites\n * This can be quite useful if your displayObject is complicated and needs to be reused multiple times.\n *\n * @param displayObject {PIXI.DisplayObject} The displayObject the object will be generated from\n * @param scaleMode {number} Should be one of the scaleMode consts\n * @param resolution {number} The resolution / device pixel ratio of the texture being generated\n * @return {PIXI.Texture} a texture of the graphics object\n */\nSystemRenderer.prototype.generateTexture = function (displayObject, scaleMode, resolution) {\n\n var bounds = displayObject.getLocalBounds();\n\n var renderTexture = RenderTexture.create(bounds.width | 0, bounds.height | 0, scaleMode, resolution);\n\n tempMatrix.tx = -bounds.x;\n tempMatrix.ty = -bounds.y;\n\n this.render(displayObject, renderTexture, false, tempMatrix, true);\n\n return renderTexture;\n};\n\n/**\n * Removes everything from the renderer and optionally removes the Canvas DOM element.\n *\n * @param [removeView=false] {boolean} Removes the Canvas element from the DOM.\n */\nSystemRenderer.prototype.destroy = function (removeView) {\n if (removeView && this.view.parentNode)\n {\n this.view.parentNode.removeChild(this.view);\n }\n\n this.type = CONST.RENDERER_TYPE.UNKNOWN;\n\n this.width = 0;\n this.height = 0;\n\n this.view = null;\n\n this.resolution = 0;\n\n this.transparent = false;\n\n this.autoResize = false;\n\n this.blendModes = null;\n\n this.preserveDrawingBuffer = false;\n this.clearBeforeRender = false;\n\n this.roundPixels = false;\n\n this._backgroundColor = 0;\n this._backgroundColorRgba = null;\n this._backgroundColorString = null;\n\n this.backgroundColor = 0;\n this._tempDisplayObjectParent = null;\n this._lastObjectRendered = null;\n};\n","var SystemRenderer = require('../SystemRenderer'),\n CanvasMaskManager = require('./utils/CanvasMaskManager'),\n CanvasRenderTarget = require('./utils/CanvasRenderTarget'),\n mapCanvasBlendModesToPixi = require('./utils/mapCanvasBlendModesToPixi'),\n utils = require('../../utils'),\n CONST = require('../../const');\n\n/**\n * The CanvasRenderer draws the scene and all its content onto a 2d canvas. This renderer should be used for browsers that do not support webGL.\n * Don't forget to add the CanvasRenderer.view to your DOM or you will not see anything :)\n *\n * @class\n * @memberof PIXI\n * @extends PIXI.SystemRenderer\n * @param [width=800] {number} the width of the canvas view\n * @param [height=600] {number} the height of the canvas view\n * @param [options] {object} The optional renderer parameters\n * @param [options.view] {HTMLCanvasElement} the canvas to use as a view, optional\n * @param [options.transparent=false] {boolean} If the render view is transparent, default false\n * @param [options.autoResize=false] {boolean} If the render view is automatically resized, default false\n * @param [options.antialias=false] {boolean} sets antialias (only applicable in chrome at the moment)\n * @param [options.resolution=1] {number} The resolution / device pixel ratio of the renderer. The resolution of the renderer retina would be 2.\n * @param [options.clearBeforeRender=true] {boolean} This sets if the CanvasRenderer will clear the canvas or\n * not before the new render pass.\n * @param [options.roundPixels=false] {boolean} If true Pixi will Math.floor() x/y values when rendering, stopping pixel interpolation.\n */\nfunction CanvasRenderer(width, height, options)\n{\n options = options || {};\n\n SystemRenderer.call(this, 'Canvas', width, height, options);\n\n this.type = CONST.RENDERER_TYPE.CANVAS;\n\n /**\n * The canvas 2d context that everything is drawn with.\n *\n * @member {CanvasRenderingContext2D}\n */\n this.rootContext = this.view.getContext('2d', { alpha: this.transparent });\n this.rootResolution = this.resolution;\n\n /**\n * Boolean flag controlling canvas refresh.\n *\n * @member {boolean}\n */\n this.refresh = true;\n\n /**\n * Instance of a CanvasMaskManager, handles masking when using the canvas renderer.\n *\n * @member {PIXI.CanvasMaskManager}\n */\n this.maskManager = new CanvasMaskManager(this);\n\n /**\n * The canvas property used to set the canvas smoothing property.\n *\n * @member {string}\n */\n this.smoothProperty = 'imageSmoothingEnabled';\n\n if (!this.rootContext.imageSmoothingEnabled)\n {\n if (this.rootContext.webkitImageSmoothingEnabled)\n {\n this.smoothProperty = 'webkitImageSmoothingEnabled';\n }\n else if (this.rootContext.mozImageSmoothingEnabled)\n {\n this.smoothProperty = 'mozImageSmoothingEnabled';\n }\n else if (this.rootContext.oImageSmoothingEnabled)\n {\n this.smoothProperty = 'oImageSmoothingEnabled';\n }\n else if (this.rootContext.msImageSmoothingEnabled)\n {\n this.smoothProperty = 'msImageSmoothingEnabled';\n }\n }\n\n this.initPlugins();\n\n this.blendModes = mapCanvasBlendModesToPixi();\n this._activeBlendMode = null;\n\n this.context = null;\n this.renderingToScreen = false;\n\n this.resize(width, height);\n}\n\n// constructor\nCanvasRenderer.prototype = Object.create(SystemRenderer.prototype);\nCanvasRenderer.prototype.constructor = CanvasRenderer;\nmodule.exports = CanvasRenderer;\nutils.pluginTarget.mixin(CanvasRenderer);\n\n\n/**\n * Renders the object to this canvas view\n *\n * @param displayObject {PIXI.DisplayObject} The object to be rendered\n * @param [renderTexture] {PIXI.RenderTexture} A render texture to be rendered to. If unset, it will render to the root context.\n * @param [clear=false] {boolean} Whether to clear the canvas before drawing\n * @param [transform] {PIXI.Transform} A transformation to be applied\n * @param [skipUpdateTransform=false] {boolean} Whether to skip the update transform\n */\nCanvasRenderer.prototype.render = function (displayObject, renderTexture, clear, transform, skipUpdateTransform)\n{\n\n if (!this.view){\n return;\n }\n\n // can be handy to know!\n this.renderingToScreen = !renderTexture;\n\n this.emit('prerender');\n\n if(renderTexture)\n {\n renderTexture = renderTexture.baseTexture || renderTexture;\n\n if(!renderTexture._canvasRenderTarget)\n {\n\n renderTexture._canvasRenderTarget = new CanvasRenderTarget(renderTexture.width, renderTexture.height, renderTexture.resolution);\n renderTexture.source = renderTexture._canvasRenderTarget.canvas;\n renderTexture.valid = true;\n }\n\n this.context = renderTexture._canvasRenderTarget.context;\n this.resolution = renderTexture._canvasRenderTarget.resolution;\n }\n else\n {\n\n this.context = this.rootContext;\n this.resolution = this.rootResolution;\n }\n\n var context = this.context;\n\n if(!renderTexture)\n {\n this._lastObjectRendered = displayObject;\n }\n\n\n\n\n if(!skipUpdateTransform)\n {\n // update the scene graph\n var cacheParent = displayObject.parent;\n var tempWt = this._tempDisplayObjectParent.transform.worldTransform;\n\n if(transform)\n {\n transform.copy(tempWt);\n }\n else\n {\n tempWt.identity();\n }\n\n displayObject.parent = this._tempDisplayObjectParent;\n displayObject.updateTransform();\n displayObject.parent = cacheParent;\n // displayObject.hitArea = //TODO add a temp hit area\n }\n\n\n context.setTransform(1, 0, 0, 1, 0, 0);\n context.globalAlpha = 1;\n context.globalCompositeOperation = this.blendModes[CONST.BLEND_MODES.NORMAL];\n\n if (navigator.isCocoonJS && this.view.screencanvas)\n {\n context.fillStyle = 'black';\n context.clear();\n }\n\n if(clear !== undefined ? clear : this.clearBeforeRender)\n {\n if (this.renderingToScreen) {\n if (this.transparent) {\n context.clearRect(0, 0, this.width, this.height);\n }\n else {\n context.fillStyle = this._backgroundColorString;\n context.fillRect(0, 0, this.width, this.height);\n }\n } //else {\n //TODO: implement background for CanvasRenderTarget or RenderTexture?\n //}\n }\n\n // TODO RENDER TARGET STUFF HERE..\n var tempContext = this.context;\n\n this.context = context;\n displayObject.renderCanvas(this);\n this.context = tempContext;\n\n this.emit('postrender');\n};\n\n\nCanvasRenderer.prototype.setBlendMode = function (blendMode)\n{\n if(this._activeBlendMode === blendMode) {\n return;\n }\n\n this.context.globalCompositeOperation = this.blendModes[blendMode];\n};\n\n/**\n * Removes everything from the renderer and optionally removes the Canvas DOM element.\n *\n * @param [removeView=false] {boolean} Removes the Canvas element from the DOM.\n */\nCanvasRenderer.prototype.destroy = function (removeView)\n{\n this.destroyPlugins();\n\n // call the base destroy\n SystemRenderer.prototype.destroy.call(this, removeView);\n\n this.context = null;\n\n this.refresh = true;\n\n this.maskManager.destroy();\n this.maskManager = null;\n\n this.smoothProperty = null;\n};\n\n/**\n * Resizes the canvas view to the specified width and height.\n *\n * @extends PIXI.SystemRenderer#resize\n *\n * @param width {number} The new width of the canvas view\n * @param height {number} The new height of the canvas view\n */\nCanvasRenderer.prototype.resize = function (width, height)\n{\n SystemRenderer.prototype.resize.call(this, width, height);\n\n //reset the scale mode.. oddly this seems to be reset when the canvas is resized.\n //surely a browser bug?? Let pixi fix that for you..\n if(this.smoothProperty)\n {\n this.rootContext[this.smoothProperty] = (CONST.SCALE_MODES.DEFAULT === CONST.SCALE_MODES.LINEAR);\n }\n\n};\n","var CONST = require('../../../const');\n/**\n * A set of functions used to handle masking.\n *\n * @class\n * @memberof PIXI\n */\nfunction CanvasMaskManager(renderer)\n{\n this.renderer = renderer;\n}\n\nCanvasMaskManager.prototype.constructor = CanvasMaskManager;\nmodule.exports = CanvasMaskManager;\n\n/**\n * This method adds it to the current stack of masks.\n *\n * @param maskData {object} the maskData that will be pushed\n */\nCanvasMaskManager.prototype.pushMask = function (maskData)\n{\n var renderer = this.renderer;\n\n renderer.context.save();\n\n var cacheAlpha = maskData.alpha;\n var transform = maskData.transform.worldTransform;\n var resolution = renderer.resolution;\n\n renderer.context.setTransform(\n transform.a * resolution,\n transform.b * resolution,\n transform.c * resolution,\n transform.d * resolution,\n transform.tx * resolution,\n transform.ty * resolution\n );\n\n //TODO suport sprite alpha masks??\n //lots of effort required. If demand is great enough..\n if(!maskData._texture)\n {\n this.renderGraphicsShape(maskData);\n renderer.context.clip();\n }\n\n maskData.worldAlpha = cacheAlpha;\n};\n\nCanvasMaskManager.prototype.renderGraphicsShape = function (graphics)\n{\n var context = this.renderer.context;\n var len = graphics.graphicsData.length;\n\n if (len === 0)\n {\n return;\n }\n\n context.beginPath();\n\n for (var i = 0; i < len; i++)\n {\n var data = graphics.graphicsData[i];\n var shape = data.shape;\n\n if (data.type === CONST.SHAPES.POLY)\n {\n\n var points = shape.points;\n\n context.moveTo(points[0], points[1]);\n\n for (var j=1; j < points.length/2; j++)\n {\n context.lineTo(points[j * 2], points[j * 2 + 1]);\n }\n\n // if the first and last point are the same close the path - much neater :)\n if (points[0] === points[points.length-2] && points[1] === points[points.length-1])\n {\n context.closePath();\n }\n\n }\n else if (data.type === CONST.SHAPES.RECT)\n {\n context.rect(shape.x, shape.y, shape.width, shape.height);\n context.closePath();\n }\n else if (data.type === CONST.SHAPES.CIRC)\n {\n // TODO - need to be Undefined!\n context.arc(shape.x, shape.y, shape.radius, 0, 2 * Math.PI);\n context.closePath();\n }\n else if (data.type === CONST.SHAPES.ELIP)\n {\n\n // ellipse code taken from: http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas\n\n var w = shape.width * 2;\n var h = shape.height * 2;\n\n var x = shape.x - w/2;\n var y = shape.y - h/2;\n\n var kappa = 0.5522848,\n ox = (w / 2) * kappa, // control point offset horizontal\n oy = (h / 2) * kappa, // control point offset vertical\n xe = x + w, // x-end\n ye = y + h, // y-end\n xm = x + w / 2, // x-middle\n ym = y + h / 2; // y-middle\n\n context.moveTo(x, ym);\n context.bezierCurveTo(x, ym - oy, xm - ox, y, xm, y);\n context.bezierCurveTo(xm + ox, y, xe, ym - oy, xe, ym);\n context.bezierCurveTo(xe, ym + oy, xm + ox, ye, xm, ye);\n context.bezierCurveTo(xm - ox, ye, x, ym + oy, x, ym);\n context.closePath();\n }\n else if (data.type === CONST.SHAPES.RREC)\n {\n\n var rx = shape.x;\n var ry = shape.y;\n var width = shape.width;\n var height = shape.height;\n var radius = shape.radius;\n\n var maxRadius = Math.min(width, height) / 2 | 0;\n radius = radius > maxRadius ? maxRadius : radius;\n\n context.moveTo(rx, ry + radius);\n context.lineTo(rx, ry + height - radius);\n context.quadraticCurveTo(rx, ry + height, rx + radius, ry + height);\n context.lineTo(rx + width - radius, ry + height);\n context.quadraticCurveTo(rx + width, ry + height, rx + width, ry + height - radius);\n context.lineTo(rx + width, ry + radius);\n context.quadraticCurveTo(rx + width, ry, rx + width - radius, ry);\n context.lineTo(rx + radius, ry);\n context.quadraticCurveTo(rx, ry, rx, ry + radius);\n context.closePath();\n }\n }\n};\n\n/**\n * Restores the current drawing context to the state it was before the mask was applied.\n *\n * @param renderer {PIXI.WebGLRenderer|PIXI.CanvasRenderer} The renderer context to use.\n */\nCanvasMaskManager.prototype.popMask = function (renderer)\n{\n renderer.context.restore();\n};\n\nCanvasMaskManager.prototype.destroy = function () {};\n","var CONST = require('../../../const');\n\n/**\n * Creates a Canvas element of the given size.\n *\n * @class\n * @memberof PIXI\n * @param width {number} the width for the newly created canvas\n * @param height {number} the height for the newly created canvas\n * @param [resolution=1] The resolution / device pixel ratio of the canvas\n */\nfunction CanvasRenderTarget(width, height, resolution)\n{\n /**\n * The Canvas object that belongs to this CanvasRenderTarget.\n *\n * @member {HTMLCanvasElement}\n */\n this.canvas = document.createElement('canvas');\n\n /**\n * A CanvasRenderingContext2D object representing a two-dimensional rendering context.\n *\n * @member {CanvasRenderingContext2D}\n */\n this.context = this.canvas.getContext('2d');\n\n this.resolution = resolution || CONST.RESOLUTION;\n\n this.resize(width, height);\n}\n\nCanvasRenderTarget.prototype.constructor = CanvasRenderTarget;\nmodule.exports = CanvasRenderTarget;\n\nObject.defineProperties(CanvasRenderTarget.prototype, {\n /**\n * The width of the canvas buffer in pixels.\n *\n * @member {number}\n * @memberof PIXI.CanvasRenderTarget#\n */\n width: {\n get: function ()\n {\n return this.canvas.width;\n },\n set: function (val)\n {\n this.canvas.width = val;\n }\n },\n /**\n * The height of the canvas buffer in pixels.\n *\n * @member {number}\n * @memberof PIXI.CanvasRenderTarget#\n */\n height: {\n get: function ()\n {\n return this.canvas.height;\n },\n set: function (val)\n {\n this.canvas.height = val;\n }\n }\n});\n\n/**\n * Clears the canvas that was created by the CanvasRenderTarget class.\n *\n * @private\n */\nCanvasRenderTarget.prototype.clear = function ()\n{\n this.context.setTransform(1, 0, 0, 1, 0, 0);\n this.context.clearRect(0,0, this.canvas.width, this.canvas.height);\n};\n\n/**\n * Resizes the canvas to the specified width and height.\n *\n * @param width {number} the new width of the canvas\n * @param height {number} the new height of the canvas\n */\nCanvasRenderTarget.prototype.resize = function (width, height)\n{\n\n this.canvas.width = width * this.resolution;\n this.canvas.height = height * this.resolution;\n};\n\n/**\n * Destroys this canvas.\n *\n */\nCanvasRenderTarget.prototype.destroy = function ()\n{\n this.context = null;\n this.canvas = null;\n};\n","\n/**\n * Checks whether the Canvas BlendModes are supported by the current browser\n *\n * @return {boolean} whether they are supported\n */\nvar canUseNewCanvasBlendModes = function ()\n{\n if (typeof document === 'undefined')\n {\n return false;\n }\n\n var pngHead = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/';\n var pngEnd = 'AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==';\n\n var magenta = new Image();\n magenta.src = pngHead + 'AP804Oa6' + pngEnd;\n\n var yellow = new Image();\n yellow.src = pngHead + '/wCKxvRF' + pngEnd;\n\n var canvas = document.createElement('canvas');\n canvas.width = 6;\n canvas.height = 1;\n\n var context = canvas.getContext('2d');\n context.globalCompositeOperation = 'multiply';\n context.drawImage(magenta, 0, 0);\n context.drawImage(yellow, 2, 0);\n\n var imageData = context.getImageData(2,0,1,1);\n \n if (!imageData)\n {\n return false;\n }\n \n var data = imageData.data;\n \n return (data[0] === 255 && data[1] === 0 && data[2] === 0);\n};\n\nmodule.exports = canUseNewCanvasBlendModes;\n","var CONST = require('../../../const'),\ncanUseNewCanvasBlendModes = require('./canUseNewCanvasBlendModes');\n\n/**\n * Maps blend combinations to Canvas\n * @class\n * @memberof PIXI\n * @param array\n */\nfunction mapCanvasBlendModesToPixi(array)\n{\n array = array || [];\n\n if (canUseNewCanvasBlendModes())\n {\n array[CONST.BLEND_MODES.NORMAL] = 'source-over';\n array[CONST.BLEND_MODES.ADD] = 'lighter'; //IS THIS OK???\n array[CONST.BLEND_MODES.MULTIPLY] = 'multiply';\n array[CONST.BLEND_MODES.SCREEN] = 'screen';\n array[CONST.BLEND_MODES.OVERLAY] = 'overlay';\n array[CONST.BLEND_MODES.DARKEN] = 'darken';\n array[CONST.BLEND_MODES.LIGHTEN] = 'lighten';\n array[CONST.BLEND_MODES.COLOR_DODGE] = 'color-dodge';\n array[CONST.BLEND_MODES.COLOR_BURN] = 'color-burn';\n array[CONST.BLEND_MODES.HARD_LIGHT] = 'hard-light';\n array[CONST.BLEND_MODES.SOFT_LIGHT] = 'soft-light';\n array[CONST.BLEND_MODES.DIFFERENCE] = 'difference';\n array[CONST.BLEND_MODES.EXCLUSION] = 'exclusion';\n array[CONST.BLEND_MODES.HUE] = 'hue';\n array[CONST.BLEND_MODES.SATURATION] = 'saturate';\n array[CONST.BLEND_MODES.COLOR] = 'color';\n array[CONST.BLEND_MODES.LUMINOSITY] = 'luminosity';\n }\n else\n {\n // this means that the browser does not support the cool new blend modes in canvas 'cough' ie 'cough'\n array[CONST.BLEND_MODES.NORMAL] = 'source-over';\n array[CONST.BLEND_MODES.ADD] = 'lighter'; //IS THIS OK???\n array[CONST.BLEND_MODES.MULTIPLY] = 'source-over';\n array[CONST.BLEND_MODES.SCREEN] = 'source-over';\n array[CONST.BLEND_MODES.OVERLAY] = 'source-over';\n array[CONST.BLEND_MODES.DARKEN] = 'source-over';\n array[CONST.BLEND_MODES.LIGHTEN] = 'source-over';\n array[CONST.BLEND_MODES.COLOR_DODGE] = 'source-over';\n array[CONST.BLEND_MODES.COLOR_BURN] = 'source-over';\n array[CONST.BLEND_MODES.HARD_LIGHT] = 'source-over';\n array[CONST.BLEND_MODES.SOFT_LIGHT] = 'source-over';\n array[CONST.BLEND_MODES.DIFFERENCE] = 'source-over';\n array[CONST.BLEND_MODES.EXCLUSION] = 'source-over';\n array[CONST.BLEND_MODES.HUE] = 'source-over';\n array[CONST.BLEND_MODES.SATURATION] = 'source-over';\n array[CONST.BLEND_MODES.COLOR] = 'source-over';\n array[CONST.BLEND_MODES.LUMINOSITY] = 'source-over';\n }\n\n return array;\n}\n\nmodule.exports = mapCanvasBlendModesToPixi;\n","\nvar CONST = require('../../const');\n\n/**\n * TextureGarbageCollector. This class manages the GPU and ensures that it does not get clogged up with textures that are no longer being used.\n *\n * @class\n * @memberof PIXI\n * @param renderer {PIXI.WebGLRenderer} The renderer this manager works for.\n */\nfunction TextureGarbageCollector(renderer)\n{\n this.renderer = renderer;\n\n this.count = 0;\n this.checkCount = 0;\n this.maxIdle = 60 * 60;\n this.checkCountMax = 60 * 10;\n\n this.mode = CONST.GC_MODES.DEFAULT;\n}\n\nTextureGarbageCollector.prototype.constructor = TextureGarbageCollector;\nmodule.exports = TextureGarbageCollector;\n\n/**\n * Checks to see when the last time a texture was used\n * if the texture has not been used for a specified amount of time it will be removed from the GPU\n */\nTextureGarbageCollector.prototype.update = function()\n{\n this.count++;\n\n if(this.mode === CONST.GC_MODES.MANUAL)\n {\n return;\n }\n\n this.checkCount++;\n\n\n if(this.checkCount > this.checkCountMax)\n {\n this.checkCount = 0;\n\n this.run();\n }\n};\n\n/**\n * Checks to see when the last time a texture was used\n * if the texture has not been used for a specified amount of time it will be removed from the GPU\n */\nTextureGarbageCollector.prototype.run = function()\n{\n var tm = this.renderer.textureManager;\n var managedTextures = tm._managedTextures;\n var wasRemoved = false;\n var i,j;\n\n for (i = 0; i < managedTextures.length; i++)\n {\n var texture = managedTextures[i];\n\n // only supports non generated textures at the moment!\n if (!texture._glRenderTargets && this.count - texture.touched > this.maxIdle)\n {\n tm.destroyTexture(texture, true);\n managedTextures[i] = null;\n wasRemoved = true;\n }\n }\n\n if (wasRemoved)\n {\n j = 0;\n\n for (i = 0; i < managedTextures.length; i++)\n {\n if (managedTextures[i] !== null)\n {\n managedTextures[j++] = managedTextures[i];\n }\n }\n\n managedTextures.length = j;\n }\n};\n\n/**\n * Removes all the textures within the specified displayObject and its children from the GPU\n *\n * @param displayObject {PIXI.DisplayObject} the displayObject to remove the textures from.\n */\nTextureGarbageCollector.prototype.unload = function( displayObject )\n{\n var tm = this.renderer.textureManager;\n\n if(displayObject._texture)\n {\n tm.destroyTexture(displayObject._texture, true);\n }\n\n for (var i = displayObject.children.length - 1; i >= 0; i--) {\n\n this.unload(displayObject.children[i]);\n\n }\n};\n","var GLTexture = require('pixi-gl-core').GLTexture,\n CONST = require('../../const'),\n RenderTarget = require('./utils/RenderTarget'),\n\tutils = require('../../utils');\n\n/**\n * Helper class to create a webGL Texture\n *\n * @class\n * @memberof PIXI\n * @param renderer {PIXI.WebGLRenderer} A reference to the current renderer\n */\nvar TextureManager = function(renderer)\n{\n /**\n * A reference to the current renderer\n *\n * @member {PIXI.WebGLRenderer}\n */\n this.renderer = renderer;\n\n /**\n * The current WebGL rendering context\n *\n * @member {WebGLRenderingContext}\n */\n\tthis.gl = renderer.gl;\n\n\t/**\n * Track textures in the renderer so we can no longer listen to them on destruction.\n *\n * @member {Array<*>}\n * @private\n */\n\tthis._managedTextures = [];\n};\n\nTextureManager.prototype.bindTexture = function()\n{\n};\n\n\nTextureManager.prototype.getTexture = function()\n{\n};\n\n/**\n * Updates and/or Creates a WebGL texture for the renderer's context.\n *\n * @param texture {PIXI.BaseTexture|PIXI.Texture} the texture to update\n */\nTextureManager.prototype.updateTexture = function(texture)\n{\n\ttexture = texture.baseTexture || texture;\n\n var isRenderTexture = !!texture._glRenderTargets;\n\n\tif (!texture.hasLoaded)\n {\n return;\n }\n\n var glTexture = texture._glTextures[this.renderer.CONTEXT_UID];\n\n if (!glTexture)\n {\n if(isRenderTexture)\n {\n var renderTarget = new RenderTarget(this.gl, texture.width, texture.height, texture.scaleMode, texture.resolution);\n renderTarget.resize(texture.width, texture.height);\n texture._glRenderTargets[this.renderer.CONTEXT_UID] = renderTarget;\n glTexture = renderTarget.texture;\n }\n else\n {\n glTexture = new GLTexture(this.gl);\n glTexture.premultiplyAlpha = true;\n glTexture.upload(texture.source);\n }\n\n texture._glTextures[this.renderer.CONTEXT_UID] = glTexture;\n\n texture.on('update', this.updateTexture, this);\n texture.on('dispose', this.destroyTexture, this);\n\n this._managedTextures.push(texture);\n\n if(texture.isPowerOfTwo)\n {\n if(texture.mipmap)\n {\n glTexture.enableMipmap();\n }\n\n if(texture.wrapMode === CONST.WRAP_MODES.CLAMP)\n {\n glTexture.enableWrapClamp();\n }\n else if(texture.wrapMode === CONST.WRAP_MODES.REPEAT)\n {\n glTexture.enableWrapRepeat();\n }\n else\n {\n glTexture.enableWrapMirrorRepeat();\n }\n }\n else\n {\n glTexture.enableWrapClamp();\n }\n\n if(texture.scaleMode === CONST.SCALE_MODES.NEAREST)\n {\n glTexture.enableNearestScaling();\n }\n else\n {\n glTexture.enableLinearScaling();\n }\n }\n else\n {\n // the textur ealrady exists so we only need to update it..\n if(isRenderTexture)\n {\n texture._glRenderTargets[this.renderer.CONTEXT_UID].resize(texture.width, texture.height);\n }\n else\n {\n glTexture.upload(texture.source);\n }\n }\n\n return glTexture;\n};\n\n/**\n * Deletes the texture from WebGL\n *\n * @param texture {PIXI.BaseTexture|PIXI.Texture} the texture to destroy\n * @param [skipRemove=false] {boolean} Whether to skip removing the texture from the TextureManager.\n */\nTextureManager.prototype.destroyTexture = function(texture, skipRemove)\n{\n\ttexture = texture.baseTexture || texture;\n\n if (!texture.hasLoaded)\n {\n return;\n }\n\n if (texture._glTextures[this.renderer.CONTEXT_UID])\n {\n texture._glTextures[this.renderer.CONTEXT_UID].destroy();\n texture.off('update', this.updateTexture, this);\n texture.off('dispose', this.destroyTexture, this);\n\n\n delete texture._glTextures[this.renderer.CONTEXT_UID];\n\n if (!skipRemove)\n {\n var i = this._managedTextures.indexOf(texture);\n if (i !== -1) {\n utils.removeItems(this._managedTextures, i, 1);\n }\n }\n }\n};\n\n/**\n * Deletes all the textures from WebGL\n */\nTextureManager.prototype.removeAll = function()\n{\n\t// empty all the old gl textures as they are useless now\n for (var i = 0; i < this._managedTextures.length; ++i)\n {\n var texture = this._managedTextures[i];\n if (texture._glTextures[this.renderer.CONTEXT_UID])\n {\n delete texture._glTextures[this.renderer.CONTEXT_UID];\n }\n }\n};\n\n/**\n * Destroys this manager and removes all its textures\n */\nTextureManager.prototype.destroy = function()\n{\n // destroy managed textures\n for (var i = 0; i < this._managedTextures.length; ++i)\n {\n var texture = this._managedTextures[i];\n this.destroyTexture(texture, true);\n texture.off('update', this.updateTexture, this);\n texture.off('dispose', this.destroyTexture, this);\n }\n\n this._managedTextures = null;\n};\n\nmodule.exports = TextureManager;\n","var SystemRenderer = require('../SystemRenderer'),\n MaskManager = require('./managers/MaskManager'),\n StencilManager = require('./managers/StencilManager'),\n FilterManager = require('./managers/FilterManager'),\n RenderTarget = require('./utils/RenderTarget'),\n ObjectRenderer = require('./utils/ObjectRenderer'),\n TextureManager = require('./TextureManager'),\n TextureGarbageCollector = require('./TextureGarbageCollector'),\n WebGLState = require('./WebGLState'),\n createContext = require('pixi-gl-core').createContext,\n mapWebGLDrawModesToPixi = require('./utils/mapWebGLDrawModesToPixi'),\n validateContext = require('./utils/validateContext'),\n utils = require('../../utils'),\n glCore = require('pixi-gl-core'),\n CONST = require('../../const');\n\nvar CONTEXT_UID = 0;\n\n/**\n * The WebGLRenderer draws the scene and all its content onto a webGL enabled canvas. This renderer\n * should be used for browsers that support webGL. This Render works by automatically managing webGLBatchs.\n * So no need for Sprite Batches or Sprite Clouds.\n * Don't forget to add the view to your DOM or you will not see anything :)\n *\n * @class\n * @memberof PIXI\n * @extends PIXI.SystemRenderer\n * @param [width=0] {number} the width of the canvas view\n * @param [height=0] {number} the height of the canvas view\n * @param [options] {object} The optional renderer parameters\n * @param [options.view] {HTMLCanvasElement} the canvas to use as a view, optional\n * @param [options.transparent=false] {boolean} If the render view is transparent, default false\n * @param [options.autoResize=false] {boolean} If the render view is automatically resized, default false\n * @param [options.antialias=false] {boolean} sets antialias. If not available natively then FXAA antialiasing is used\n * @param [options.forceFXAA=false] {boolean} forces FXAA antialiasing to be used over native. FXAA is faster, but may not always look as great\n * @param [options.resolution=1] {number} The resolution / device pixel ratio of the renderer. The resolution of the renderer retina would be 2.\n * @param [options.clearBeforeRender=true] {boolean} This sets if the CanvasRenderer will clear the canvas or\n * not before the new render pass. If you wish to set this to false, you *must* set preserveDrawingBuffer to `true`.\n * @param [options.preserveDrawingBuffer=false] {boolean} enables drawing buffer preservation, enable this if\n * you need to call toDataUrl on the webgl context.\n * @param [options.roundPixels=false] {boolean} If true Pixi will Math.floor() x/y values when rendering, stopping pixel interpolation.\n */\nfunction WebGLRenderer(width, height, options)\n{\n options = options || {};\n\n SystemRenderer.call(this, 'WebGL', width, height, options);\n /**\n * The type of this renderer as a standardised const\n *\n * @member {number}\n * @see PIXI.RENDERER_TYPE\n */\n this.type = CONST.RENDERER_TYPE.WEBGL;\n\n this.handleContextLost = this.handleContextLost.bind(this);\n this.handleContextRestored = this.handleContextRestored.bind(this);\n\n this.view.addEventListener('webglcontextlost', this.handleContextLost, false);\n this.view.addEventListener('webglcontextrestored', this.handleContextRestored, false);\n\n /**\n * The options passed in to create a new webgl context.\n *\n * @member {object}\n * @private\n */\n this._contextOptions = {\n alpha: this.transparent,\n antialias: options.antialias,\n premultipliedAlpha: this.transparent && this.transparent !== 'notMultiplied',\n stencil: true,\n preserveDrawingBuffer: options.preserveDrawingBuffer\n };\n\n this._backgroundColorRgba[3] = this.transparent ? 0 : 1;\n\n /**\n * Manages the masks using the stencil buffer.\n *\n * @member {PIXI.MaskManager}\n */\n this.maskManager = new MaskManager(this);\n\n /**\n * Manages the stencil buffer.\n *\n * @member {PIXI.StencilManager}\n */\n this.stencilManager = new StencilManager(this);\n\n /**\n * An empty renderer.\n *\n * @member {PIXI.ObjectRenderer}\n */\n this.emptyRenderer = new ObjectRenderer(this);\n\n /**\n * The currently active ObjectRenderer.\n *\n * @member {PIXI.ObjectRenderer}\n */\n this.currentRenderer = this.emptyRenderer;\n\n this.initPlugins();\n\n /**\n * The current WebGL rendering context, it is created here\n *\n * @member {WebGLRenderingContext}\n */\n // initialize the context so it is ready for the managers.\n if(options.context)\n {\n // checks to see if a context is valid..\n validateContext(options.context);\n }\n\n this.gl = options.context || createContext(this.view, this._contextOptions);\n\n this.CONTEXT_UID = CONTEXT_UID++;\n\n /**\n * The currently active ObjectRenderer.\n *\n * @member {PIXI.WebGLState}\n */\n this.state = new WebGLState(this.gl);\n\n this.renderingToScreen = true;\n\n\n\n this._initContext();\n\n /**\n * Manages the filters.\n *\n * @member {PIXI.FilterManager}\n */\n this.filterManager = new FilterManager(this);\n // map some webGL blend and drawmodes..\n this.drawModes = mapWebGLDrawModesToPixi(this.gl);\n\n\n /**\n * Holds the current shader\n *\n * @member {PIXI.Shader}\n */\n this._activeShader = null;\n\n /**\n * Holds the current render target\n *\n * @member {PIXI.RenderTarget}\n */\n this._activeRenderTarget = null;\n this._activeTextureLocation = 999;\n this._activeTexture = null;\n\n this.setBlendMode(0);\n\n\n}\n\n// constructor\nWebGLRenderer.prototype = Object.create(SystemRenderer.prototype);\nWebGLRenderer.prototype.constructor = WebGLRenderer;\nmodule.exports = WebGLRenderer;\nutils.pluginTarget.mixin(WebGLRenderer);\n\n/**\n * Creates the WebGL context\n *\n * @private\n */\nWebGLRenderer.prototype._initContext = function ()\n{\n var gl = this.gl;\n\n // create a texture manager...\n this.textureManager = new TextureManager(this);\n this.textureGC = new TextureGarbageCollector(this);\n\n this.state.resetToDefault();\n\n this.rootRenderTarget = new RenderTarget(gl, this.width, this.height, null, this.resolution, true);\n this.rootRenderTarget.clearColor = this._backgroundColorRgba;\n\n\n this.bindRenderTarget(this.rootRenderTarget);\n\n this.emit('context', gl);\n\n // setup the width/height properties and gl viewport\n this.resize(this.width, this.height);\n};\n\n/**\n * Renders the object to its webGL view\n *\n * @param displayObject {PIXI.DisplayObject} the object to be rendered\n * @param renderTexture {PIXI.RenderTexture}\n * @param [clear] {boolean} Should the canvas be cleared before the new render\n * @param [transform] {PIXI.Transform}\n * @param [skipUpdateTransform] {boolean}\n */\nWebGLRenderer.prototype.render = function (displayObject, renderTexture, clear, transform, skipUpdateTransform)\n{\n\n // can be handy to know!\n this.renderingToScreen = !renderTexture;\n\n this.emit('prerender');\n\n\n // no point rendering if our context has been blown up!\n if (!this.gl || this.gl.isContextLost())\n {\n return;\n }\n\n if(!renderTexture)\n {\n this._lastObjectRendered = displayObject;\n }\n\n if(!skipUpdateTransform)\n {\n // update the scene graph\n var cacheParent = displayObject.parent;\n displayObject.parent = this._tempDisplayObjectParent;\n displayObject.updateTransform();\n displayObject.parent = cacheParent;\n // displayObject.hitArea = //TODO add a temp hit area\n }\n\n this.bindRenderTexture(renderTexture, transform);\n\n this.currentRenderer.start();\n\n if(clear !== undefined ? clear : this.clearBeforeRender)\n {\n this._activeRenderTarget.clear();\n }\n\n displayObject.renderWebGL(this);\n\n // apply transform..\n this.currentRenderer.flush();\n\n //this.setObjectRenderer(this.emptyRenderer);\n\n this.textureGC.update();\n\n this.emit('postrender');\n};\n\n/**\n * Changes the current renderer to the one given in parameter\n *\n * @param objectRenderer {PIXI.ObjectRenderer} The object renderer to use.\n */\nWebGLRenderer.prototype.setObjectRenderer = function (objectRenderer)\n{\n if (this.currentRenderer === objectRenderer)\n {\n return;\n }\n\n this.currentRenderer.stop();\n this.currentRenderer = objectRenderer;\n this.currentRenderer.start();\n};\n\n/**\n * This shoudl be called if you wish to do some custom rendering\n * It will basically render anything that may be batched up such as sprites\n *\n */\nWebGLRenderer.prototype.flush = function ()\n{\n this.setObjectRenderer(this.emptyRenderer);\n};\n\n/**\n * Resizes the webGL view to the specified width and height.\n *\n * @param width {number} the new width of the webGL view\n * @param height {number} the new height of the webGL view\n */\nWebGLRenderer.prototype.resize = function (width, height)\n{\n // if(width * this.resolution === this.width && height * this.resolution === this.height)return;\n\n SystemRenderer.prototype.resize.call(this, width, height);\n\n this.rootRenderTarget.resize(width, height);\n\n if(this._activeRenderTarget === this.rootRenderTarget)\n {\n this.rootRenderTarget.activate();\n\n if(this._activeShader)\n {\n this._activeShader.uniforms.projectionMatrix = this.rootRenderTarget.projectionMatrix.toArray(true);\n }\n }\n};\n\n/**\n * Resizes the webGL view to the specified width and height.\n *\n * @param blendMode {number} the desired blend mode\n */\nWebGLRenderer.prototype.setBlendMode = function (blendMode)\n{\n this.state.setBlendMode(blendMode);\n};\n\n/**\n * Erases the active render target and fills the drawing area with a colour\n *\n * @param [clearColor] {number} The colour\n */\nWebGLRenderer.prototype.clear = function (clearColor)\n{\n this._activeRenderTarget.clear(clearColor);\n};\n\n/**\n * Sets the transform of the active render target to the given matrix\n *\n * @param matrix {PIXI.Matrix} The transformation matrix\n */\nWebGLRenderer.prototype.setTransform = function (matrix)\n{\n this._activeRenderTarget.transform = matrix;\n};\n\n\n/**\n * Binds a render texture for rendering\n *\n * @param renderTexture {PIXI.RenderTexture} The render texture to render\n * @param transform {PIXI.Transform} The transform to be applied to the render texture\n */\nWebGLRenderer.prototype.bindRenderTexture = function (renderTexture, transform)\n{\n var renderTarget;\n\n if(renderTexture)\n {\n var baseTexture = renderTexture.baseTexture;\n var gl = this.gl;\n\n if(!baseTexture._glRenderTargets[this.CONTEXT_UID])\n {\n\n this.textureManager.updateTexture(baseTexture);\n gl.bindTexture(gl.TEXTURE_2D, null);\n }\n else\n {\n // the texture needs to be unbound if its being rendererd too..\n this._activeTextureLocation = baseTexture._id;\n gl.activeTexture(gl.TEXTURE0 + baseTexture._id);\n gl.bindTexture(gl.TEXTURE_2D, null);\n }\n\n\n renderTarget = baseTexture._glRenderTargets[this.CONTEXT_UID];\n renderTarget.setFrame(renderTexture.frame);\n }\n else\n {\n renderTarget = this.rootRenderTarget;\n }\n\n renderTarget.transform = transform;\n this.bindRenderTarget(renderTarget);\n\n return this;\n};\n\n/**\n * Changes the current render target to the one given in parameter\n *\n * @param renderTarget {PIXI.RenderTarget} the new render target\n */\nWebGLRenderer.prototype.bindRenderTarget = function (renderTarget)\n{\n if(renderTarget !== this._activeRenderTarget)\n {\n this._activeRenderTarget = renderTarget;\n renderTarget.activate();\n\n if(this._activeShader)\n {\n this._activeShader.uniforms.projectionMatrix = renderTarget.projectionMatrix.toArray(true);\n }\n\n\n this.stencilManager.setMaskStack( renderTarget.stencilMaskStack );\n }\n\n return this;\n};\n\n/**\n * Changes the current shader to the one given in parameter\n *\n * @param shader {PIXI.Shader} the new shader\n */\nWebGLRenderer.prototype.bindShader = function (shader)\n{\n //TODO cache\n if(this._activeShader !== shader)\n {\n this._activeShader = shader;\n shader.bind();\n\n // automatically set the projection matrix\n shader.uniforms.projectionMatrix = this._activeRenderTarget.projectionMatrix.toArray(true);\n }\n\n return this;\n};\n\n/**\n * Binds the texture ... @mat\n *\n * @param texture {PIXI.Texture} the new texture\n * @param location {number} the texture location\n */\nWebGLRenderer.prototype.bindTexture = function (texture, location)\n{\n texture = texture.baseTexture || texture;\n\n var gl = this.gl;\n\n //TODO test perf of cache?\n location = location || 0;\n\n if(this._activeTextureLocation !== location)//\n {\n this._activeTextureLocation = location;\n gl.activeTexture(gl.TEXTURE0 + location );\n }\n\n //TODO - can we cache this texture too?\n this._activeTexture = texture;\n\n if (!texture._glTextures[this.CONTEXT_UID])\n {\n // this will also bind the texture..\n this.textureManager.updateTexture(texture);\n\n }\n else\n {\n texture.touched = this.textureGC.count;\n // bind the current texture\n texture._glTextures[this.CONTEXT_UID].bind();\n }\n\n return this;\n};\n\nWebGLRenderer.prototype.createVao = function ()\n{\n return new glCore.VertexArrayObject(this.gl, this.state.attribState);\n};\n\n/**\n * Resets the WebGL state so you can render things however you fancy!\n */\nWebGLRenderer.prototype.reset = function ()\n{\n this.setObjectRenderer(this.emptyRenderer);\n\n this._activeShader = null;\n this._activeRenderTarget = this.rootRenderTarget;\n this._activeTextureLocation = 999;\n this._activeTexture = null;\n\n // bind the main frame buffer (the screen);\n this.rootRenderTarget.activate();\n\n this.state.resetToDefault();\n\n return this;\n};\n\n/**\n * Handles a lost webgl context\n *\n * @private\n */\nWebGLRenderer.prototype.handleContextLost = function (event)\n{\n event.preventDefault();\n};\n\n/**\n * Handles a restored webgl context\n *\n * @private\n */\nWebGLRenderer.prototype.handleContextRestored = function ()\n{\n this._initContext();\n this.textureManager.removeAll();\n};\n\n/**\n * Removes everything from the renderer (event listeners, spritebatch, etc...)\n *\n * @param [removeView=false] {boolean} Removes the Canvas element from the DOM. https://github.com/pixijs/pixi.js/issues/2233\n */\nWebGLRenderer.prototype.destroy = function (removeView)\n{\n this.destroyPlugins();\n\n // remove listeners\n this.view.removeEventListener('webglcontextlost', this.handleContextLost);\n this.view.removeEventListener('webglcontextrestored', this.handleContextRestored);\n\n this.textureManager.destroy();\n\n // call base destroy\n SystemRenderer.prototype.destroy.call(this, removeView);\n\n this.uid = 0;\n\n // destroy the managers\n this.maskManager.destroy();\n this.stencilManager.destroy();\n this.filterManager.destroy();\n\n this.maskManager = null;\n this.filterManager = null;\n this.textureManager = null;\n this.currentRenderer = null;\n\n this.handleContextLost = null;\n this.handleContextRestored = null;\n\n this._contextOptions = null;\n this.gl.useProgram(null);\n\n if(this.gl.getExtension('WEBGL_lose_context'))\n {\n this.gl.getExtension('WEBGL_lose_context').loseContext();\n }\n\n this.gl = null;\n\n // this = null;\n};\n","var mapWebGLBlendModesToPixi = require('./utils/mapWebGLBlendModesToPixi');\n\n/**\n * A WebGL state machines\n *\n * @memberof PIXI\n * @class\n * @param gl {WebGLRenderingContext} The current WebGL rendering context\n */\nfunction WebGLState(gl)\n{\n /**\n * The current active state\n *\n * @member {Uint8Array}\n */\n this.activeState = new Uint8Array(16);\n\n /**\n * The default state\n *\n * @member {Uint8Array}\n */\n this.defaultState = new Uint8Array(16);\n\n // default blend mode..\n this.defaultState[0] = 1;\n\n /**\n * The current state index in the stack\n *\n * @member {number}\n * @private\n */\n this.stackIndex = 0;\n\n /**\n * The stack holding all the different states\n *\n * @member {Array<*>}\n * @private\n */\n this.stack = [];\n\n /**\n * The current WebGL rendering context\n *\n * @member {WebGLRenderingContext}\n */\n this.gl = gl;\n\n this.maxAttribs = gl.getParameter(gl.MAX_VERTEX_ATTRIBS);\n\n this.attribState = {tempAttribState:new Array(this.maxAttribs),\n attribState:new Array(this.maxAttribs)};\n\n this.blendModes = mapWebGLBlendModesToPixi(gl);\n\n // check we have vao..\n this.nativeVaoExtension = (\n gl.getExtension('OES_vertex_array_object') ||\n gl.getExtension('MOZ_OES_vertex_array_object') ||\n gl.getExtension('WEBKIT_OES_vertex_array_object')\n );\n}\n\n/**\n * Pushes a new active state\n */\nWebGLState.prototype.push = function()\n{\n // next state..\n var state = this.stack[++this.stackIndex];\n\n if(!state)\n {\n state = this.stack[this.stackIndex] = new Uint8Array(16);\n }\n\n // copy state..\n // set active state so we can force overrides of gl state\n for (var i = 0; i < this.activeState.length; i++)\n {\n this.activeState[i] = state[i];\n }\n};\n\nvar BLEND = 0,\n DEPTH_TEST = 1,\n FRONT_FACE = 2,\n CULL_FACE = 3,\n BLEND_FUNC = 4;\n\n/**\n * Pops a state out\n */\nWebGLState.prototype.pop = function()\n{\n var state = this.stack[--this.stackIndex];\n this.setState(state);\n};\n\n/**\n * Sets the current state\n * @param state {number}\n */\nWebGLState.prototype.setState = function(state)\n{\n this.setBlend(state[BLEND]);\n this.setDepthTest(state[DEPTH_TEST]);\n this.setFrontFace(state[FRONT_FACE]);\n this.setCullFace(state[CULL_FACE]);\n this.setBlendMode(state[BLEND_FUNC]);\n};\n\n/**\n * Sets the blend mode ? @mat\n * @param value {number}\n */\nWebGLState.prototype.setBlend = function(value)\n{\n if(this.activeState[BLEND] === value|0) {\n return;\n }\n\n this.activeState[BLEND] = value|0;\n\n var gl = this.gl;\n\n if(value)\n {\n gl.enable(gl.BLEND);\n }\n else\n {\n gl.disable(gl.BLEND);\n }\n};\n\n/**\n * Sets the blend mode ? @mat\n * @param value {number}\n */\nWebGLState.prototype.setBlendMode = function(value)\n{\n if(value === this.activeState[BLEND_FUNC]) {\n return;\n }\n\n this.activeState[BLEND_FUNC] = value;\n\n this.gl.blendFunc(this.blendModes[value][0], this.blendModes[value][1]);\n};\n\n/**\n * Sets the depth test @mat\n * @param value {number}\n */\nWebGLState.prototype.setDepthTest = function(value)\n{\n if(this.activeState[DEPTH_TEST] === value|0) {\n return;\n }\n\n this.activeState[DEPTH_TEST] = value|0;\n\n var gl = this.gl;\n\n if(value)\n {\n gl.enable(gl.DEPTH_TEST);\n }\n else\n {\n gl.disable(gl.DEPTH_TEST);\n }\n};\n\n/**\n * Sets the depth test @mat\n * @param value {number}\n */\nWebGLState.prototype.setCullFace = function(value)\n{\n if(this.activeState[CULL_FACE] === value|0) {\n return;\n }\n\n this.activeState[CULL_FACE] = value|0;\n\n var gl = this.gl;\n\n if(value)\n {\n gl.enable(gl.CULL_FACE);\n }\n else\n {\n gl.disable(gl.CULL_FACE);\n }\n};\n\n/**\n * Sets the depth test @mat\n * @param value {number}\n */\nWebGLState.prototype.setFrontFace = function(value)\n{\n if(this.activeState[FRONT_FACE] === value|0) {\n return;\n }\n\n this.activeState[FRONT_FACE] = value|0;\n\n var gl = this.gl;\n\n if(value)\n {\n gl.frontFace(gl.CW);\n }\n else\n {\n gl.frontFace(gl.CCW);\n }\n};\n\n/**\n * Disables all the vaos in use\n */\nWebGLState.prototype.resetAttributes = function()\n{\n var i;\n\n for ( i = 0; i < this.attribState.tempAttribState.length; i++) {\n this.attribState.tempAttribState[i] = 0;\n }\n\n for ( i = 0; i < this.attribState.attribState.length; i++) {\n this.attribState.attribState[i] = 0;\n }\n\n var gl = this.gl;\n\n // im going to assume one is always active for performance reasons.\n for (i = 1; i < this.maxAttribs; i++)\n {\n gl.disableVertexAttribArray(i);\n }\n};\n\n//used\n/**\n * Resets all the logic and disables the vaos\n */\nWebGLState.prototype.resetToDefault = function()\n{\n\n // unbind any VAO if they exist..\n if(this.nativeVaoExtension)\n {\n this.nativeVaoExtension.bindVertexArrayOES(null);\n }\n\n\n // reset all attributs..\n this.resetAttributes();\n\n // set active state so we can force overrides of gl state\n for (var i = 0; i < this.activeState.length; i++)\n {\n this.activeState[i] = 32;\n }\n\n var gl = this.gl;\n gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, false);\n\n\n this.setState(this.defaultState);\n};\n\nmodule.exports = WebGLState;\n","var extractUniformsFromSrc = require('./extractUniformsFromSrc'),\n utils = require('../../../utils'),\n CONST = require('../../../const'),\n SOURCE_KEY_MAP = {};\n\n// var math = require('../../../math');\n/**\n * @class\n * @memberof PIXI\n * @extends PIXI.Shader\n * @param [vertexSrc] {string} The source of the vertex shader.\n * @param [uniforms] {object} Custom uniforms to use to augment the built-in ones.\n * @param [fragmentSrc] {string} The source of the fragment shader.\n */\nfunction Filter(vertexSrc, fragmentSrc, uniforms)\n{\n\n /**\n * The vertex shader.\n *\n * @member {string}\n */\n this.vertexSrc = vertexSrc || Filter.defaultVertexSrc;\n\n /**\n * The fragment shader.\n *\n * @member {string}\n */\n this.fragmentSrc = fragmentSrc || Filter.defaultFragmentSrc;\n\n this.blendMode = CONST.BLEND_MODES.NORMAL;\n\n // pull out the vertex and shader uniforms if they are not specified..\n // currently this does not extract structs only default types\n this.uniformData = uniforms || extractUniformsFromSrc( this.vertexSrc, this.fragmentSrc, 'projectionMatrix|uSampler');\n\n this.uniforms = {};\n\n for (var i in this.uniformData)\n {\n this.uniforms[i] = this.uniformData[i].value;\n }\n\n // this is where we store shader references..\n // TODO we could cache this!\n this.glShaders = [];\n\n // used for cacheing.. sure there is a better way!\n if(!SOURCE_KEY_MAP[this.vertexSrc + this.fragmentSrc])\n {\n SOURCE_KEY_MAP[this.vertexSrc + this.fragmentSrc] = utils.uid();\n }\n\n this.glShaderKey = SOURCE_KEY_MAP[this.vertexSrc + this.fragmentSrc];\n\n /**\n * The padding of the filter. Some filters require extra space to breath such as a blur. Increasing this will add extra width and height to the bounds of the object that the filter is applied to.\n */\n this.padding = 4;\n\n /**\n * The resolution of the filter. Setting this to be lower will lower the quality but increase the performance of the filter.\n * @member {number}\n */\n this.resolution = 1;\n\n /**\n * If enabled is true the filter is applied, if false it will not.\n * @member {boolean}\n */\n this.enabled = true;\n}\n\n// constructor\n//Filter.prototype.constructor = Filter;\nmodule.exports = Filter;\n\n// var tempMatrix = new math.Matrix();\n\nFilter.prototype.apply = function(filterManager, input, output, clear)\n{\n // --- //\n // this.uniforms.filterMatrix = filterManager.calculateSpriteMatrix(tempMatrix, window.panda );\n\n // do as you please!\n\n filterManager.applyFilter(this, input, output, clear);\n\n // or just do a regular render..\n};\n\n/**\n * The default vertex shader source\n *\n * @static\n * @constant\n */\nFilter.defaultVertexSrc = [\n 'attribute vec2 aVertexPosition;',\n 'attribute vec2 aTextureCoord;',\n\n 'uniform mat3 projectionMatrix;',\n 'uniform mat3 filterMatrix;',\n\n 'varying vec2 vTextureCoord;',\n 'varying vec2 vFilterCoord;',\n\n 'void main(void){',\n ' gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);',\n ' vFilterCoord = ( filterMatrix * vec3( aTextureCoord, 1.0) ).xy;',\n ' vTextureCoord = aTextureCoord ;',\n '}'\n].join('\\n');\n\n/**\n * The default fragment shader source\n *\n * @static\n * @constant\n */\nFilter.defaultFragmentSrc = [\n 'varying vec2 vTextureCoord;',\n 'varying vec2 vFilterCoord;',\n\n 'uniform sampler2D uSampler;',\n 'uniform sampler2D filterSampler;',\n\n 'void main(void){',\n ' vec4 masky = texture2D(filterSampler, vFilterCoord);',\n ' vec4 sample = texture2D(uSampler, vTextureCoord);',\n ' vec4 color;',\n ' if(mod(vFilterCoord.x, 1.0) > 0.5)',\n ' {',\n ' color = vec4(1.0, 0.0, 0.0, 1.0);',\n ' }',\n ' else',\n ' {',\n ' color = vec4(0.0, 1.0, 0.0, 1.0);',\n ' }',\n // ' gl_FragColor = vec4(mod(vFilterCoord.x, 1.5), vFilterCoord.y,0.0,1.0);',\n ' gl_FragColor = mix(sample, masky, 0.5);',\n ' gl_FragColor *= sample.a;',\n '}'\n].join('\\n');\n","var defaultValue = require('pixi-gl-core').shader.defaultValue;\n\nfunction extractUniformsFromSrc(vertexSrc, fragmentSrc, mask)\n{\n var vertUniforms = extractUniformsFromString(vertexSrc, mask);\n var fragUniforms = extractUniformsFromString(fragmentSrc, mask);\n\n return Object.assign(vertUniforms, fragUniforms);\n}\n\n\nfunction extractUniformsFromString(string)\n{\n var maskRegex = new RegExp('^(projectionMatrix|uSampler|filterArea)$');\n\n var uniforms = {};\n var nameSplit;\n\n\n // clean the lines a little - remove extra spaces / teabs etc\n // then split along ';'\n var lines = string.replace(/\\s+/g,' ')\n .split(/\\s*;\\s*/);\n\n // loop through..\n for (var i = 0; i < lines.length; i++)\n {\n var line = lines[i].trim();\n\n if(line.indexOf('uniform') > -1)\n {\n var splitLine = line.split(' ');\n var type = splitLine[1];\n\n var name = splitLine[2];\n var size = 1;\n\n if(name.indexOf('[') > -1)\n {\n // array!\n nameSplit = name.split(/\\[|\\]/);\n name = nameSplit[0];\n size *= Number(nameSplit[1]);\n }\n\n if(!name.match(maskRegex))\n {\n uniforms[name] = {\n value:defaultValue(type, size),\n name:name,\n type:type\n };\n }\n }\n }\n\n return uniforms;\n}\n\nmodule.exports = extractUniformsFromSrc;\n","var math = require('../../../math');\n\n/*\n * Calculates the mapped matrix\n * @param filterArea {Rectangle} The filter area\n * @param sprite {Sprite} the target sprite\n * @param outputMatrix {Matrix} @alvin\n */\n// TODO playing around here.. this is temporary - (will end up in the shader)\n// thia returns a matrix that will normalise map filter cords in the filter to screen space\nvar calculateScreenSpaceMatrix = function (outputMatrix, filterArea, textureSize)\n{\n //var worldTransform = sprite.worldTransform.copy(math.Matrix.TEMP_MATRIX),\n // var texture = {width:1136, height:700};//sprite._texture.baseTexture;\n\n // TODO unwrap?\n var mappedMatrix = outputMatrix.identity();\n\n mappedMatrix.translate(filterArea.x / textureSize.width, filterArea.y / textureSize.height );\n\n mappedMatrix.scale( textureSize.width , textureSize.height );\n\n return mappedMatrix;\n\n};\n\nvar calculateNormalizedScreenSpaceMatrix = function (outputMatrix, filterArea, textureSize)\n{\n var mappedMatrix = outputMatrix.identity();\n\n mappedMatrix.translate(filterArea.x / textureSize.width, filterArea.y / textureSize.height );\n\n var translateScaleX = (textureSize.width / filterArea.width);\n var translateScaleY = (textureSize.height / filterArea.height);\n\n mappedMatrix.scale( translateScaleX , translateScaleY );\n\n return mappedMatrix;\n};\n\n// this will map the filter coord so that a texture can be used based on the transform of a sprite\nvar calculateSpriteMatrix = function (outputMatrix, filterArea, textureSize, sprite)\n{\n var worldTransform = sprite.worldTransform.copy(math.Matrix.TEMP_MATRIX),\n texture = sprite._texture.baseTexture;\n\n // TODO unwrap?\n var mappedMatrix = outputMatrix.identity();\n\n // scale..\n var ratio = textureSize.height / textureSize.width;\n\n mappedMatrix.translate(filterArea.x / textureSize.width, filterArea.y / textureSize.height );\n\n mappedMatrix.scale(1 , ratio);\n\n var translateScaleX = (textureSize.width / texture.width);\n var translateScaleY = (textureSize.height / texture.height);\n\n worldTransform.tx /= texture.width * translateScaleX;\n\n //this...? free beer for anyone who can explain why this makes sense!\n worldTransform.ty /= texture.width * translateScaleX;\n // worldTransform.ty /= texture.height * translateScaleY;\n\n worldTransform.invert();\n mappedMatrix.prepend(worldTransform);\n\n // apply inverse scale..\n mappedMatrix.scale(1 , 1/ratio);\n\n mappedMatrix.scale( translateScaleX , translateScaleY );\n\n mappedMatrix.translate(sprite.anchor.x, sprite.anchor.y);\n\n return mappedMatrix;\n};\n\nmodule.exports = {\n calculateScreenSpaceMatrix:calculateScreenSpaceMatrix,\n calculateNormalizedScreenSpaceMatrix:calculateNormalizedScreenSpaceMatrix,\n calculateSpriteMatrix:calculateSpriteMatrix\n};\n","var Filter = require('../Filter'),\n math = require('../../../../math');\n\n// @see https://github.com/substack/brfs/issues/25\n\n/**\n * The SpriteMaskFilter class\n *\n * @class\n * @extends PIXI.Filter\n * @memberof PIXI\n * @param sprite {PIXI.Sprite} the target sprite\n */\nfunction SpriteMaskFilter(sprite)\n{\n var maskMatrix = new math.Matrix();\n\n Filter.call(this,\n \"#define GLSLIFY 1\\nattribute vec2 aVertexPosition;\\nattribute vec2 aTextureCoord;\\n\\nuniform mat3 projectionMatrix;\\nuniform mat3 otherMatrix;\\n\\nvarying vec2 vMaskCoord;\\nvarying vec2 vTextureCoord;\\n\\nvoid main(void)\\n{\\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\\n vTextureCoord = aTextureCoord;\\n vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;\\n}\\n\",\n \"#define GLSLIFY 1\\nvarying vec2 vMaskCoord;\\nvarying vec2 vTextureCoord;\\n\\nuniform sampler2D uSampler;\\nuniform float alpha;\\nuniform sampler2D mask;\\n\\nvoid main(void)\\n{\\n // check clip! this will stop the mask bleeding out from the edges\\n vec2 text = abs( vMaskCoord - 0.5 );\\n text = step(0.5, text);\\n float clip = 1.0 - max(text.y, text.x);\\n vec4 original = texture2D(uSampler, vTextureCoord);\\n vec4 masky = texture2D(mask, vMaskCoord);\\n original *= (masky.r * masky.a * alpha * clip);\\n gl_FragColor = original;\\n}\\n\"\n );\n\n sprite.renderable = false;\n\n this.maskSprite = sprite;\n this.maskMatrix = maskMatrix;\n}\n\nSpriteMaskFilter.prototype = Object.create(Filter.prototype);\nSpriteMaskFilter.prototype.constructor = SpriteMaskFilter;\nmodule.exports = SpriteMaskFilter;\n\n/**\n * Applies the filter\n *\n * @param filterManager {PIXI.FilterManager} The renderer to retrieve the filter from\n * @param input {PIXI.RenderTarget}\n * @param output {PIXI.RenderTarget}\n */\nSpriteMaskFilter.prototype.apply = function (filterManager, input, output)\n{\n var maskSprite = this.maskSprite;\n\n this.uniforms.mask = maskSprite._texture;\n this.uniforms.otherMatrix = filterManager.calculateSpriteMatrix(this.maskMatrix, maskSprite );\n this.uniforms.alpha = maskSprite.worldAlpha;\n\n filterManager.applyFilter(this, input, output);\n};\n","\nvar WebGLManager = require('./WebGLManager'),\n RenderTarget = require('../utils/RenderTarget'),\n Quad = require('../utils/Quad'),\n math = require('../../../math'),\n Shader = require('../../../Shader'),\n filterTransforms = require('../filters/filterTransforms'),\n bitTwiddle = require('bit-twiddle');\n\nvar FilterState = function()\n{\n this.renderTarget = null;\n this.sourceFrame = new math.Rectangle();\n this.destinationFrame = new math.Rectangle();\n this.filters = [];\n this.target = null;\n this.resolution = 1;\n};\n\n\n/**\n * @class\n * @memberof PIXI\n * @extends PIXI.WebGLManager\n * @param renderer {PIXI.WebGLRenderer} The renderer this manager works for.\n */\nfunction FilterManager(renderer)\n{\n WebGLManager.call(this, renderer);\n\n this.gl = this.renderer.gl;\n // know about sprites!\n this.quad = new Quad(this.gl, renderer.state.attribState);\n\n this.shaderCache = {};\n // todo add default!\n this.pool = {};\n\n this.filterData = null;\n}\n\nFilterManager.prototype = Object.create(WebGLManager.prototype);\nFilterManager.prototype.constructor = FilterManager;\nmodule.exports = FilterManager;\n\nFilterManager.prototype.pushFilter = function(target, filters)\n{\n var renderer = this.renderer;\n\n var filterData = this.filterData;\n\n if(!filterData)\n {\n filterData = this.renderer._activeRenderTarget.filterStack;\n\n // add new stack\n var filterState = new FilterState();\n filterState.sourceFrame = filterState.destinationFrame = this.renderer._activeRenderTarget.size;\n filterState.renderTarget = renderer._activeRenderTarget;\n\n this.renderer._activeRenderTarget.filterData = filterData = {\n index:0,\n stack:[filterState]\n };\n\n this.filterData = filterData;\n }\n\n // get the current filter state..\n var currentState = filterData.stack[++filterData.index];\n if(!currentState)\n {\n currentState = filterData.stack[filterData.index] = new FilterState();\n }\n\n // for now we go off the filter of the first resolution..\n var resolution = filters[0].resolution;\n var padding = filters[0].padding;\n var targetBounds = target.filterArea || target.getBounds(true);\n var sourceFrame = currentState.sourceFrame;\n var destinationFrame = currentState.destinationFrame;\n\n sourceFrame.x = ((targetBounds.x * resolution) | 0) / resolution;\n sourceFrame.y = ((targetBounds.y * resolution) | 0) / resolution;\n sourceFrame.width = ((targetBounds.width * resolution) | 0) / resolution;\n sourceFrame.height = ((targetBounds.height * resolution) | 0) / resolution;\n\n if(filterData.stack[0].renderTarget.transform)\n {//jshint ignore:line\n\n // TODO we should fit the rect around the transform..\n\n }\n else\n {\n sourceFrame.fit(filterData.stack[0].destinationFrame);\n }\n\n // lets pplay the padding After we fit the element to the screen.\n // this should stop the strange side effects that can occour when cropping to the edges\n sourceFrame.pad(padding);\n\n\n\n destinationFrame.width = sourceFrame.width;\n destinationFrame.height = sourceFrame.height;\n\n var renderTarget = this.getPotRenderTarget(renderer.gl, sourceFrame.width, sourceFrame.height, resolution);\n\n currentState.target = target;\n currentState.filters = filters;\n currentState.resolution = resolution;\n currentState.renderTarget = renderTarget;\n\n // bind the render taget to draw the shape in the top corner..\n\n renderTarget.setFrame(destinationFrame, sourceFrame);\n // bind the render target\n renderer.bindRenderTarget(renderTarget);\n\n // clear the renderTarget\n renderer.clear();//[0.5,0.5,0.5, 1.0]);\n};\n\nFilterManager.prototype.popFilter = function()\n{\n var filterData = this.filterData;\n\n var lastState = filterData.stack[filterData.index-1];\n var currentState = filterData.stack[filterData.index];\n\n this.quad.map(currentState.renderTarget.size, currentState.sourceFrame).upload();\n\n var filters = currentState.filters;\n\n if(filters.length === 1)\n {\n filters[0].apply(this, currentState.renderTarget, lastState.renderTarget, false);\n this.freePotRenderTarget(currentState.renderTarget);\n }\n else\n {\n var flip = currentState.renderTarget;\n var flop = this.getPotRenderTarget(this.renderer.gl, currentState.sourceFrame.width, currentState.sourceFrame.height, 1);\n flop.setFrame(currentState.destinationFrame, currentState.sourceFrame);\n\n for (var i = 0; i < filters.length-1; i++)\n {\n filters[i].apply(this, flip, flop, true);\n\n var t = flip;\n flip = flop;\n flop = t;\n }\n\n filters[i].apply(this, flip, lastState.renderTarget, false);\n\n this.freePotRenderTarget(flip);\n this.freePotRenderTarget(flop);\n }\n\n filterData.index--;\n\n if(filterData.index === 0)\n {\n this.filterData = null;\n }\n};\n\nFilterManager.prototype.applyFilter = function (filter, input, output, clear)\n{\n var renderer = this.renderer;\n var shader = filter.glShaders[renderer.CONTEXT_UID];\n\n // cacheing..\n if(!shader)\n {\n if(filter.glShaderKey)\n {\n shader = this.shaderCache[filter.glShaderKey];\n\n if(!shader)\n {\n shader = filter.glShaders[renderer.CONTEXT_UID] = this.shaderCache[filter.glShaderKey] = new Shader(this.gl, filter.vertexSrc, filter.fragmentSrc);\n }\n }\n else\n {\n shader = filter.glShaders[renderer.CONTEXT_UID] = new Shader(this.gl, filter.vertexSrc, filter.fragmentSrc);\n }\n\n //TODO - this only needs to be done once?\n this.quad.initVao(shader);\n }\n\n renderer.bindRenderTarget(output);\n\n\n\n if(clear)\n {\n var gl = renderer.gl;\n\n gl.disable(gl.SCISSOR_TEST);\n renderer.clear();//[1, 1, 1, 1]);\n gl.enable(gl.SCISSOR_TEST);\n }\n\n // in case the render target is being masked using a scissor rect\n if(output === renderer.maskManager.scissorRenderTarget)\n {\n renderer.maskManager.pushScissorMask(null, renderer.maskManager.scissorData);\n }\n\n renderer.bindShader(shader);\n\n // this syncs the pixi filters uniforms with glsl uniforms\n this.syncUniforms(shader, filter);\n\n // bind the input texture..\n input.texture.bind(0);\n // when you manually bind a texture, please switch active texture location to it\n renderer._activeTextureLocation = 0;\n\n renderer.state.setBlendMode( filter.blendMode );\n\n this.quad.draw();\n};\n\n// this returns a matrix that will normalise map filter cords in the filter to screen space\nFilterManager.prototype.syncUniforms = function (shader, filter)\n{\n var uniformData = filter.uniformData;\n var uniforms = filter.uniforms;\n\n // 0 is reserverd for the pixi texture so we start at 1!\n var textureCount = 1;\n var currentState;\n\n if(shader.uniforms.data.filterArea)\n {\n currentState = this.filterData.stack[this.filterData.index];\n var filterArea = shader.uniforms.filterArea;\n\n filterArea[0] = currentState.renderTarget.size.width;\n filterArea[1] = currentState.renderTarget.size.height;\n filterArea[2] = currentState.sourceFrame.x;\n filterArea[3] = currentState.sourceFrame.y;\n\n shader.uniforms.filterArea = filterArea;\n }\n\n // use this to clamp displaced texture coords so they belong to filterArea\n // see displacementFilter fragment shader for an example\n if(shader.uniforms.data.filterClamp)\n {\n currentState = this.filterData.stack[this.filterData.index];\n var filterClamp = shader.uniforms.filterClamp;\n\n filterClamp[0] = 0.5 / currentState.renderTarget.size.width;\n filterClamp[1] = 0.5 / currentState.renderTarget.size.height;\n filterClamp[2] = (currentState.sourceFrame.width - 0.5) / currentState.renderTarget.size.width;\n filterClamp[3] = (currentState.sourceFrame.height - 0.5) / currentState.renderTarget.size.height;\n\n shader.uniforms.filterClamp = filterClamp;\n }\n\n var val;\n //TODO Cacheing layer..\n for(var i in uniformData)\n {\n if(uniformData[i].type === 'sampler2D')\n {\n shader.uniforms[i] = textureCount;\n\n if(uniforms[i].baseTexture)\n {\n this.renderer.bindTexture(uniforms[i].baseTexture, textureCount);\n }\n else\n {\n // this is helpful as renderTargets can also be set.\n // Although thinking about it, we could probably\n // make the filter texture cache return a RenderTexture\n // rather than a renderTarget\n var gl = this.renderer.gl;\n this.renderer._activeTextureLocation = gl.TEXTURE0 + textureCount;\n gl.activeTexture(gl.TEXTURE0 + textureCount );\n uniforms[i].texture.bind();\n }\n\n textureCount++;\n }\n else if(uniformData[i].type === 'mat3')\n {\n // check if its pixi matrix..\n if(uniforms[i].a !== undefined)\n {\n shader.uniforms[i] = uniforms[i].toArray(true);\n }\n else\n {\n shader.uniforms[i] = uniforms[i];\n }\n }\n else if(uniformData[i].type === 'vec2')\n {\n //check if its a point..\n if(uniforms[i].x !== undefined)\n {\n val = shader.uniforms[i] || new Float32Array(2);\n val[0] = uniforms[i].x;\n val[1] = uniforms[i].y;\n shader.uniforms[i] = val;\n }\n else\n {\n shader.uniforms[i] = uniforms[i];\n }\n }\n else if(uniformData[i].type === 'float')\n {\n if(shader.uniforms.data[i].value !== uniformData[i])\n {\n shader.uniforms[i] = uniforms[i];\n }\n }\n else\n {\n shader.uniforms[i] = uniforms[i];\n }\n }\n};\n\n\nFilterManager.prototype.getRenderTarget = function(clear, resolution)\n{\n var currentState = this.filterData.stack[this.filterData.index];\n var renderTarget = this.getPotRenderTarget(this.renderer.gl, currentState.sourceFrame.width, currentState.sourceFrame.height, resolution || currentState.resolution);\n renderTarget.setFrame(currentState.destinationFrame, currentState.sourceFrame);\n\n return renderTarget;\n};\n\nFilterManager.prototype.returnRenderTarget = function(renderTarget)\n{\n return this.freePotRenderTarget(renderTarget);\n};\n\n/*\n * Calculates the mapped matrix\n * @param filterArea {Rectangle} The filter area\n * @param sprite {Sprite} the target sprite\n * @param outputMatrix {Matrix} @alvin\n */\n// TODO playing around here.. this is temporary - (will end up in the shader)\n// thia returns a matrix that will normalise map filter cords in the filter to screen space\nFilterManager.prototype.calculateScreenSpaceMatrix = function (outputMatrix)\n{\n var currentState = this.filterData.stack[this.filterData.index];\n return filterTransforms.calculateScreenSpaceMatrix(outputMatrix, currentState.sourceFrame, currentState.renderTarget.size);\n};\n\n/**\n * Multiply vTextureCoord to this matrix to achieve (0,0,1,1) for filterArea\n *\n * @param outputMatrix {PIXI.Matrix}\n */\nFilterManager.prototype.calculateNormalizedScreenSpaceMatrix = function (outputMatrix)\n{\n var currentState = this.filterData.stack[this.filterData.index];\n\n return filterTransforms.calculateNormalizedScreenSpaceMatrix(outputMatrix, currentState.sourceFrame, currentState.renderTarget.size, currentState.destinationFrame);\n};\n\n// this will map the filter coord so that a texture can be used based on the transform of a sprite\nFilterManager.prototype.calculateSpriteMatrix = function (outputMatrix, sprite)\n{\n var currentState = this.filterData.stack[this.filterData.index];\n return filterTransforms.calculateSpriteMatrix(outputMatrix, currentState.sourceFrame, currentState.renderTarget.size, sprite);\n};\n\nFilterManager.prototype.destroy = function()\n{\n this.shaderCache = [];\n this.emptyPool();\n};\n\n\n\n//TODO move to a seperate class could be on renderer?\n//also - could cause issue with multiple contexts?\nFilterManager.prototype.getPotRenderTarget = function(gl, minWidth, minHeight, resolution)\n{\n //TODO you coud return a bigger texture if there is not one in the pool?\n minWidth = bitTwiddle.nextPow2(minWidth * resolution);\n minHeight = bitTwiddle.nextPow2(minHeight * resolution);\n\n var key = ((minWidth & 0xFFFF) << 16) | ( minHeight & 0xFFFF);\n\n if(!this.pool[key]) {\n this.pool[key] = [];\n }\n\n var renderTarget = this.pool[key].pop() || new RenderTarget(gl, minWidth, minHeight, null, 1);\n\n //manually tweak the resolution...\n //this will not modify the size of the frame buffer, just its resolution.\n renderTarget.resolution = resolution;\n renderTarget.defaultFrame.width = renderTarget.size.width = minWidth / resolution;\n renderTarget.defaultFrame.height = renderTarget.size.height = minHeight / resolution;\n return renderTarget;\n};\n\nFilterManager.prototype.emptyPool = function()\n{\n for (var i in this.pool)\n {\n var textures = this.pool[i];\n if(textures)\n {\n for (var j = 0; j < textures.length; j++)\n {\n textures[j].destroy(true);\n }\n }\n }\n\n this.pool = {};\n};\n\nFilterManager.prototype.freePotRenderTarget = function(renderTarget)\n{\n var minWidth = renderTarget.size.width * renderTarget.resolution;\n var minHeight = renderTarget.size.height * renderTarget.resolution;\n\n var key = ((minWidth & 0xFFFF) << 16) | (minHeight & 0xFFFF);\n this.pool[key].push(renderTarget);\n};\n","var WebGLManager = require('./WebGLManager'),\n AlphaMaskFilter = require('../filters/spriteMask/SpriteMaskFilter');\n\n/**\n * @class\n * @memberof PIXI\n * @param renderer {PIXI.WebGLRenderer} The renderer this manager works for.\n */\nfunction MaskManager(renderer)\n{\n WebGLManager.call(this, renderer);\n\n //TODO - we don't need both!\n this.scissor = false;\n this.scissorData = null;\n this.scissorRenderTarget = null;\n\n this.enableScissor = true;\n\n this.alphaMaskPool = [];\n this.alphaMaskIndex = 0;\n}\n\nMaskManager.prototype = Object.create(WebGLManager.prototype);\nMaskManager.prototype.constructor = MaskManager;\nmodule.exports = MaskManager;\n\n/**\n * Applies the Mask and adds it to the current filter stack.\n *\n * @param target {PIXI.DisplayObject} Display Object to push the mask to\n * @param maskData {PIXI.Sprite|PIXI.Graphics}\n */\nMaskManager.prototype.pushMask = function (target, maskData)\n{\n if (maskData.texture)\n {\n this.pushSpriteMask(target, maskData);\n }\n else\n {\n if(this.enableScissor && !this.scissor && !this.renderer.stencilManager.stencilMaskStack.length && maskData.isFastRect())\n {\n var matrix = maskData.worldTransform;\n\n var rot = Math.atan2(matrix.b, matrix.a);\n\n // use the nearest degree!\n rot = Math.round(rot * (180/Math.PI));\n\n if(rot % 90)\n {\n this.pushStencilMask(maskData);\n }\n else\n {\n this.pushScissorMask(target, maskData);\n }\n }\n else\n {\n this.pushStencilMask(maskData);\n }\n }\n};\n\n/**\n * Removes the last mask from the mask stack and doesn't return it.\n *\n * @param target {PIXI.DisplayObject} Display Object to pop the mask from\n * @param maskData {Array<*>}\n */\nMaskManager.prototype.popMask = function (target, maskData)\n{\n if (maskData.texture)\n {\n this.popSpriteMask(target, maskData);\n }\n else\n {\n if(this.enableScissor && !this.renderer.stencilManager.stencilMaskStack.length)\n {\n this.popScissorMask(target, maskData);\n }\n else\n {\n this.popStencilMask(target, maskData);\n }\n\n }\n};\n\n/**\n * Applies the Mask and adds it to the current filter stack.\n *\n * @param target {PIXI.RenderTarget} Display Object to push the sprite mask to\n * @param maskData {PIXI.Sprite} Sprite to be used as the mask\n */\nMaskManager.prototype.pushSpriteMask = function (target, maskData)\n{\n var alphaMaskFilter = this.alphaMaskPool[this.alphaMaskIndex];\n\n if (!alphaMaskFilter)\n {\n alphaMaskFilter = this.alphaMaskPool[this.alphaMaskIndex] = [new AlphaMaskFilter(maskData)];\n }\n\n alphaMaskFilter[0].resolution = this.renderer.resolution;\n alphaMaskFilter[0].maskSprite = maskData;\n\n //TODO - may cause issues!\n target.filterArea = maskData.getBounds(true);\n\n this.renderer.filterManager.pushFilter(target, alphaMaskFilter);\n\n this.alphaMaskIndex++;\n};\n\n/**\n * Removes the last filter from the filter stack and doesn't return it.\n *\n */\nMaskManager.prototype.popSpriteMask = function ()\n{\n this.renderer.filterManager.popFilter();\n this.alphaMaskIndex--;\n};\n\n\n/**\n * Applies the Mask and adds it to the current filter stack.\n *\n * @param maskData {Array<*>}\n */\nMaskManager.prototype.pushStencilMask = function (maskData)\n{\n this.renderer.currentRenderer.stop();\n this.renderer.stencilManager.pushStencil(maskData);\n};\n\n/**\n * Removes the last filter from the filter stack and doesn't return it.\n *\n */\nMaskManager.prototype.popStencilMask = function ()\n{\n this.renderer.currentRenderer.stop();\n this.renderer.stencilManager.popStencil();\n};\n\n/**\n *\n * @param target {PIXI.RenderTarget} Display Object to push the scissor mask to\n * @param maskData\n */\nMaskManager.prototype.pushScissorMask = function (target, maskData)\n{\n maskData.renderable = true;\n\n var renderTarget = this.renderer._activeRenderTarget;\n\n var bounds = maskData.getBounds();\n\n bounds.fit(renderTarget.size);\n maskData.renderable = false;\n\n this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST);\n\n var resolution = this.renderer.resolution;\n this.renderer.gl.scissor(bounds.x * resolution,\n (renderTarget.root ? renderTarget.size.height - bounds.y - bounds.height : bounds.y) * resolution,\n bounds.width * resolution,\n bounds.height * resolution);\n\n this.scissorRenderTarget = renderTarget;\n this.scissorData = maskData;\n this.scissor = true;\n};\n\n/**\n *\n *\n */\nMaskManager.prototype.popScissorMask = function ()\n{\n this.scissorRenderTarget = null;\n this.scissorData = null;\n this.scissor = false;\n\n // must be scissor!\n var gl = this.renderer.gl;\n gl.disable(gl.SCISSOR_TEST);\n};\n","var WebGLManager = require('./WebGLManager');\n\n/**\n * @class\n * @memberof PIXI\n * @param renderer {PIXI.WebGLRenderer} The renderer this manager works for.\n */\nfunction StencilManager(renderer)\n{\n WebGLManager.call(this, renderer);\n this.stencilMaskStack = null;\n}\n\nStencilManager.prototype = Object.create(WebGLManager.prototype);\nStencilManager.prototype.constructor = StencilManager;\nmodule.exports = StencilManager;\n\n/**\n * Changes the mask stack that is used by this manager.\n *\n * @param stencilMaskStack {PIXI.Graphics[]} The mask stack\n */\nStencilManager.prototype.setMaskStack = function ( stencilMaskStack )\n{\n this.stencilMaskStack = stencilMaskStack;\n\n var gl = this.renderer.gl;\n\n if (stencilMaskStack.length === 0)\n {\n gl.disable(gl.STENCIL_TEST);\n }\n else\n {\n gl.enable(gl.STENCIL_TEST);\n }\n};\n\n/**\n * Applies the Mask and adds it to the current filter stack. @alvin\n *\n * @param graphics {PIXI.Graphics}\n */\nStencilManager.prototype.pushStencil = function (graphics)\n{\n this.renderer.setObjectRenderer(this.renderer.plugins.graphics);\n\n this.renderer._activeRenderTarget.attachStencilBuffer();\n\n var gl = this.renderer.gl,\n sms = this.stencilMaskStack;\n\n if (sms.length === 0)\n {\n gl.enable(gl.STENCIL_TEST);\n gl.clear(gl.STENCIL_BUFFER_BIT);\n gl.stencilFunc(gl.ALWAYS,1,1);\n }\n\n sms.push(graphics);\n\n gl.colorMask(false, false, false, false);\n gl.stencilOp(gl.KEEP,gl.KEEP,gl.INCR);\n\n this.renderer.plugins.graphics.render(graphics);\n\n gl.colorMask(true, true, true, true);\n gl.stencilFunc(gl.NOTEQUAL,0, sms.length);\n gl.stencilOp(gl.KEEP,gl.KEEP,gl.KEEP);\n};\n\n/**\n * TODO @alvin\n */\nStencilManager.prototype.popStencil = function ()\n{\n this.renderer.setObjectRenderer(this.renderer.plugins.graphics);\n\n var gl = this.renderer.gl,\n sms = this.stencilMaskStack;\n\n var graphics = sms.pop();\n\n if (sms.length === 0)\n {\n // the stack is empty!\n gl.disable(gl.STENCIL_TEST);\n }\n else\n {\n gl.colorMask(false, false, false, false);\n gl.stencilOp(gl.KEEP,gl.KEEP,gl.DECR);\n\n this.renderer.plugins.graphics.render(graphics);\n\n gl.colorMask(true, true, true, true);\n gl.stencilFunc(gl.NOTEQUAL, 0, sms.length);\n gl.stencilOp(gl.KEEP,gl.KEEP,gl.KEEP);\n }\n};\n\n/**\n * Destroys the mask stack.\n *\n */\nStencilManager.prototype.destroy = function ()\n{\n WebGLManager.prototype.destroy.call(this);\n\n this.stencilMaskStack.stencilStack = null;\n};\n","/**\n * @class\n * @memberof PIXI\n * @param renderer {PIXI.WebGLRenderer} The renderer this manager works for.\n */\nfunction WebGLManager(renderer)\n{\n /**\n * The renderer this manager works for.\n *\n * @member {PIXI.WebGLRenderer}\n */\n this.renderer = renderer;\n\n this.renderer.on('context', this.onContextChange, this);\n}\n\nWebGLManager.prototype.constructor = WebGLManager;\nmodule.exports = WebGLManager;\n\n/**\n * Generic method called when there is a WebGL context change.\n *\n */\nWebGLManager.prototype.onContextChange = function ()\n{\n\t// do some codes init!\n};\n\n/**\n * Generic destroy methods to be overridden by the subclass\n *\n */\nWebGLManager.prototype.destroy = function ()\n{\n this.renderer.off('context', this.onContextChange, this);\n\n this.renderer = null;\n};\n","var WebGLManager = require('../managers/WebGLManager');\n\n/**\n * Base for a common object renderer that can be used as a system renderer plugin.\n *\n * @class\n * @extends PIXI.WebGLManager\n * @memberof PIXI\n * @param renderer {PIXI.WebGLRenderer} The renderer this object renderer works for.\n */\nfunction ObjectRenderer(renderer)\n{\n WebGLManager.call(this, renderer);\n}\n\n\nObjectRenderer.prototype = Object.create(WebGLManager.prototype);\nObjectRenderer.prototype.constructor = ObjectRenderer;\nmodule.exports = ObjectRenderer;\n\n/**\n * Starts the renderer and sets the shader\n *\n */\nObjectRenderer.prototype.start = function ()\n{\n // set the shader..\n};\n\n/**\n * Stops the renderer\n *\n */\nObjectRenderer.prototype.stop = function ()\n{\n this.flush();\n};\n\n/**\n * Stub method for rendering content and emptying the current batch.\n *\n */\nObjectRenderer.prototype.flush = function ()\n{\n // flush!\n};\n\n/**\n * Renders an object\n *\n * @param object {PIXI.DisplayObject} The object to render.\n */\nObjectRenderer.prototype.render = function (object) // jshint unused:false\n{\n // render the object\n};\n","var glCore = require('pixi-gl-core'),\n createIndicesForQuads = require('../../../utils/createIndicesForQuads');\n\n/**\n * Helper class to create a quad\n *\n * @class\n * @memberof PIXI\n * @param gl {WebGLRenderingContext} The gl context for this quad to use.\n * @param state {object} TODO: Description\n */\nfunction Quad(gl, state)\n{\n /*\n * the current WebGL drawing context\n *\n * @member {WebGLRenderingContext}\n */\n this.gl = gl;\n\n /**\n * An array of vertices\n *\n * @member {Float32Array}\n */\n this.vertices = new Float32Array([\n -1,-1,\n 1,-1,\n 1,1,\n -1,1\n ]);\n\n /**\n * The Uvs of the quad\n *\n * @member {Float32Array}\n */\n this.uvs = new Float32Array([\n 0,0,\n 1,0,\n 1,1,\n 0,1\n ]);\n\n this.interleaved = new Float32Array(8 * 2);\n\n for (var i = 0; i < 4; i++) {\n this.interleaved[i*4] = this.vertices[(i*2)];\n this.interleaved[(i*4)+1] = this.vertices[(i*2)+1];\n this.interleaved[(i*4)+2] = this.uvs[i*2];\n this.interleaved[(i*4)+3] = this.uvs[(i*2)+1];\n }\n\n /*\n * @member {Uint16Array} An array containing the indices of the vertices\n */\n this.indices = createIndicesForQuads(1);\n\n /*\n * @member {glCore.GLBuffer} The vertex buffer\n */\n this.vertexBuffer = glCore.GLBuffer.createVertexBuffer(gl, this.interleaved, gl.STATIC_DRAW);\n\n /*\n * @member {glCore.GLBuffer} The index buffer\n */\n this.indexBuffer = glCore.GLBuffer.createIndexBuffer(gl, this.indices, gl.STATIC_DRAW);\n\n /*\n * @member {glCore.VertexArrayObject} The index buffer\n */\n this.vao = new glCore.VertexArrayObject(gl, state);\n\n}\n\nQuad.prototype.constructor = Quad;\n\n/**\n * Initialises the vaos and uses the shader\n * @param shader {PIXI.Shader} the shader to use\n */\nQuad.prototype.initVao = function(shader)\n{\n this.vao.clear()\n .addIndex(this.indexBuffer)\n .addAttribute(this.vertexBuffer, shader.attributes.aVertexPosition, this.gl.FLOAT, false, 4 * 4, 0)\n .addAttribute(this.vertexBuffer, shader.attributes.aTextureCoord, this.gl.FLOAT, false, 4 * 4, 2 * 4);\n};\n\n/**\n * Maps two Rectangle to the quad\n * @param targetTextureFrame {PIXI.Rectangle} the first rectangle\n * @param destinationFrame {PIXI.Rectangle} the second rectangle\n */\nQuad.prototype.map = function(targetTextureFrame, destinationFrame)\n{\n var x = 0; //destinationFrame.x / targetTextureFrame.width;\n var y = 0; //destinationFrame.y / targetTextureFrame.height;\n\n this.uvs[0] = x;\n this.uvs[1] = y;\n\n this.uvs[2] = x + destinationFrame.width / targetTextureFrame.width;\n this.uvs[3] = y;\n\n this.uvs[4] = x + destinationFrame.width / targetTextureFrame.width;\n this.uvs[5] = y + destinationFrame.height / targetTextureFrame.height;\n\n this.uvs[6] = x;\n this.uvs[7] = y + destinationFrame.height / targetTextureFrame.height;\n\n /// -----\n x = destinationFrame.x;\n y = destinationFrame.y;\n\n this.vertices[0] = x;\n this.vertices[1] = y;\n\n this.vertices[2] = x + destinationFrame.width;\n this.vertices[3] = y;\n\n this.vertices[4] = x + destinationFrame.width;\n this.vertices[5] = y + destinationFrame.height;\n\n this.vertices[6] = x;\n this.vertices[7] = y + destinationFrame.height;\n\n return this;\n};\n\n/**\n * Draws the quad\n */\nQuad.prototype.draw = function()\n{\n this.vao.bind()\n .draw(this.gl.TRIANGLES, 6, 0)\n .unbind();\n\n return this;\n};\n\n/**\n * Binds the buffer and uploads the data\n */\nQuad.prototype.upload = function()\n{\n for (var i = 0; i < 4; i++) {\n this.interleaved[i*4] = this.vertices[(i*2)];\n this.interleaved[(i*4)+1] = this.vertices[(i*2)+1];\n this.interleaved[(i*4)+2] = this.uvs[i*2];\n this.interleaved[(i*4)+3] = this.uvs[(i*2)+1];\n }\n\n this.vertexBuffer.upload(this.interleaved);\n\n return this;\n};\n\n/**\n * Removes this quad from WebGL\n */\nQuad.prototype.destroy = function()\n{\n var gl = this.gl;\n\n gl.deleteBuffer(this.vertexBuffer);\n gl.deleteBuffer(this.indexBuffer);\n};\n\nmodule.exports = Quad;\n","var math = require('../../../math'),\n CONST = require('../../../const'),\n GLFramebuffer = require('pixi-gl-core').GLFramebuffer;\n\n/**\n * @author Mat Groves http://matgroves.com/ @Doormat23\n */\n\n/**\n * @class\n * @memberof PIXI\n * @param gl {WebGLRenderingContext} the current WebGL drawing context\n * @param [width=0] {number} the horizontal range of the filter\n * @param [height=0] {number} the vertical range of the filter\n * @param [scaleMode=PIXI.SCALE_MODES.DEFAULT] {number} See {@link PIXI.SCALE_MODES} for possible values\n * @param [resolution=1] {number} The current resolution / device pixel ratio\n * @param [root=false] {boolean} Whether this object is the root element or not\n */\nvar RenderTarget = function(gl, width, height, scaleMode, resolution, root)\n{\n //TODO Resolution could go here ( eg low res blurs )\n\n /**\n * The current WebGL drawing context.\n *\n * @member {WebGLRenderingContext}\n */\n this.gl = gl;\n\n // next time to create a frame buffer and texture\n\n /**\n * A frame buffer\n *\n * @member {PIXI.glCore.GLFramebuffer}\n */\n this.frameBuffer = null;\n\n /**\n * The texture\n *\n * @member {PIXI.glCore.GLTexture}\n */\n this.texture = null;\n\n /**\n * The background colour of this render target, as an array of [r,g,b,a] values\n *\n * @member {number[]}\n */\n this.clearColor = [0, 0, 0, 0];\n\n /**\n * The size of the object as a rectangle\n *\n * @member {PIXI.Rectangle}\n */\n this.size = new math.Rectangle(0, 0, 1, 1);\n\n /**\n * The current resolution / device pixel ratio\n *\n * @member {number}\n * @default 1\n */\n this.resolution = resolution || CONST.RESOLUTION;\n\n /**\n * The projection matrix\n *\n * @member {PIXI.Matrix}\n */\n this.projectionMatrix = new math.Matrix();\n\n /**\n * The object's transform\n *\n * @member {PIXI.Matrix}\n */\n this.transform = null;\n\n /**\n * The frame.\n *\n * @member {PIXI.Rectangle}\n */\n this.frame = null;\n\n /**\n * The stencil buffer stores masking data for the render target\n *\n * @member {glCore.GLBuffer}\n */\n this.defaultFrame = new math.Rectangle();\n this.destinationFrame = null;\n this.sourceFrame = null;\n\n /**\n * The stencil buffer stores masking data for the render target\n *\n * @member {glCore.GLBuffer}\n */\n this.stencilBuffer = null;\n\n /**\n * The data structure for the stencil masks\n *\n * @member {PIXI.Graphics[]}\n */\n this.stencilMaskStack = [];\n\n /**\n * Stores filter data for the render target\n *\n * @member {object[]}\n */\n this.filterData = null;\n\n /**\n * The scale mode.\n *\n * @member {number}\n * @default PIXI.SCALE_MODES.DEFAULT\n * @see PIXI.SCALE_MODES\n */\n this.scaleMode = scaleMode || CONST.SCALE_MODES.DEFAULT;\n\n /**\n * Whether this object is the root element or not\n *\n * @member {boolean}\n */\n this.root = root;\n\n\n if (!this.root)\n {\n this.frameBuffer = GLFramebuffer.createRGBA(gl, 100, 100);\n\n if( this.scaleMode === CONST.SCALE_MODES.NEAREST)\n {\n this.frameBuffer.texture.enableNearestScaling();\n }\n else\n {\n this.frameBuffer.texture.enableLinearScaling();\n\n }\n /*\n A frame buffer needs a target to render to..\n create a texture and bind it attach it to the framebuffer..\n */\n\n // this is used by the base texture\n this.texture = this.frameBuffer.texture;\n }\n else\n {\n // make it a null framebuffer..\n this.frameBuffer = new GLFramebuffer(gl, 100, 100);\n this.frameBuffer.framebuffer = null;\n\n }\n\n this.setFrame();\n\n this.resize(width, height);\n};\n\nRenderTarget.prototype.constructor = RenderTarget;\nmodule.exports = RenderTarget;\n\n/**\n * Clears the filter texture.\n *\n * @param [clearColor=this.clearColor] {number[]} Array of [r,g,b,a] to clear the framebuffer\n */\nRenderTarget.prototype.clear = function(clearColor)\n{\n var cc = clearColor || this.clearColor;\n this.frameBuffer.clear(cc[0],cc[1],cc[2],cc[3]);//r,g,b,a);\n};\n\n/**\n * Binds the stencil buffer.\n *\n */\nRenderTarget.prototype.attachStencilBuffer = function()\n{\n //TODO check if stencil is done?\n /**\n * The stencil buffer is used for masking in pixi\n * lets create one and then add attach it to the framebuffer..\n */\n if (!this.root)\n {\n this.frameBuffer.enableStencil();\n }\n};\n\nRenderTarget.prototype.setFrame = function(destinationFrame, sourceFrame)\n{\n this.destinationFrame = destinationFrame || this.destinationFrame || this.defaultFrame;\n this.sourceFrame = sourceFrame || this.sourceFrame || destinationFrame;\n};\n\n/**\n * Binds the buffers and initialises the viewport.\n *\n */\nRenderTarget.prototype.activate = function()\n{\n //TOOD refactor usage of frame..\n var gl = this.gl;\n\n // make surethe texture is unbound!\n this.frameBuffer.bind();\n\n this.calculateProjection( this.destinationFrame, this.sourceFrame );\n\n if(this.transform)\n {\n this.projectionMatrix.append(this.transform);\n }\n\n //TODO add a check as them may be the same!\n if(this.destinationFrame !== this.sourceFrame)\n {\n\n gl.enable(gl.SCISSOR_TEST);\n gl.scissor(this.destinationFrame.x | 0,this.destinationFrame.y | 0, (this.destinationFrame.width * this.resolution) | 0, (this.destinationFrame.height* this.resolution) | 0);\n }\n else\n {\n gl.disable(gl.SCISSOR_TEST);\n }\n\n\n // TODO - does not need to be updated all the time??\n gl.viewport(this.destinationFrame.x | 0,this.destinationFrame.y | 0, (this.destinationFrame.width * this.resolution) | 0, (this.destinationFrame.height * this.resolution)|0);\n\n\n};\n\n\n/**\n * Updates the projection matrix based on a projection frame (which is a rectangle)\n *\n */\nRenderTarget.prototype.calculateProjection = function (destinationFrame, sourceFrame)\n{\n var pm = this.projectionMatrix;\n\n sourceFrame = sourceFrame || destinationFrame;\n\n pm.identity();\n\n // TODO: make dest scale source\n if (!this.root)\n {\n pm.a = 1 / destinationFrame.width*2;\n pm.d = 1 / destinationFrame.height*2;\n\n pm.tx = -1 - sourceFrame.x * pm.a;\n pm.ty = -1 - sourceFrame.y * pm.d;\n }\n else\n {\n pm.a = 1 / destinationFrame.width*2;\n pm.d = -1 / destinationFrame.height*2;\n\n pm.tx = -1 - sourceFrame.x * pm.a;\n pm.ty = 1 - sourceFrame.y * pm.d;\n }\n};\n\n\n/**\n * Resizes the texture to the specified width and height\n *\n * @param width {Number} the new width of the texture\n * @param height {Number} the new height of the texture\n */\nRenderTarget.prototype.resize = function (width, height)\n{\n width = width | 0;\n height = height | 0;\n\n if (this.size.width === width && this.size.height === height)\n {\n return;\n }\n\n this.size.width = width;\n this.size.height = height;\n\n this.defaultFrame.width = width;\n this.defaultFrame.height = height;\n\n\n this.frameBuffer.resize(width * this.resolution, height * this.resolution);\n\n var projectionFrame = this.frame || this.size;\n\n this.calculateProjection( projectionFrame );\n};\n\n/**\n * Destroys the render target.\n *\n */\nRenderTarget.prototype.destroy = function ()\n{\n this.frameBuffer.destroy();\n\n this.frameBuffer = null;\n this.texture = null;\n};\n","var glCore = require('pixi-gl-core');\n\nvar fragTemplate = [\n 'precision mediump float;',\n 'void main(void){',\n 'float test = 0.1;',\n '%forloop%',\n 'gl_FragColor = vec4(0.0);',\n '}'\n].join('\\n');\n\nvar checkMaxIfStatmentsInShader = function(maxIfs, gl)\n{\n var createTempContext = !gl;\n\n if(createTempContext)\n {\n var tinyCanvas = document.createElement('canvas');\n tinyCanvas.width = 1;\n tinyCanvas.height = 1;\n\n gl = glCore.createContext(tinyCanvas);\n }\n\n var shader = gl.createShader(gl.FRAGMENT_SHADER);\n\n while(true)\n {\n var fragmentSrc = fragTemplate.replace(/%forloop%/gi, generateIfTestSrc(maxIfs));\n\n gl.shaderSource(shader, fragmentSrc);\n gl.compileShader(shader);\n\n if(!gl.getShaderParameter(shader, gl.COMPILE_STATUS))\n {\n maxIfs = (maxIfs/2)|0;\n }\n else\n {\n // valid!\n break;\n }\n }\n\n if(createTempContext)\n {\n // get rid of context\n if(gl.getExtension('WEBGL_lose_context'))\n {\n gl.getExtension('WEBGL_lose_context').loseContext();\n }\n }\n\n return maxIfs;\n};\n\n\n\nfunction generateIfTestSrc(maxIfs)\n{\n var src = '';\n\n for (var i = 0; i < maxIfs; i++)\n {\n if(i > 0)\n {\n src += '\\nelse ';\n }\n\n if(i < maxIfs-1)\n {\n src += 'if(test == ' + i + '.0){}';\n }\n }\n\n return src;\n}\n\nmodule.exports = checkMaxIfStatmentsInShader;\n","var CONST = require('../../../const');\n\n/**\n * Maps gl blend combinations to WebGL\n * @class\n * @memberof PIXI\n * @param gl {WebGLRenderingContext} The current WebGL drawing context\n * @param array\n */\nfunction mapWebGLBlendModesToPixi(gl, array)\n{\n array = array || [];\n\n //TODO - premultiply alpha would be different.\n //add a boolean for that!\n array[CONST.BLEND_MODES.NORMAL] = [gl.ONE, gl.ONE_MINUS_SRC_ALPHA];\n array[CONST.BLEND_MODES.ADD] = [gl.ONE, gl.DST_ALPHA];\n array[CONST.BLEND_MODES.MULTIPLY] = [gl.DST_COLOR, gl.ONE_MINUS_SRC_ALPHA];\n array[CONST.BLEND_MODES.SCREEN] = [gl.ONE, gl.ONE_MINUS_SRC_COLOR];\n array[CONST.BLEND_MODES.OVERLAY] = [gl.ONE, gl.ONE_MINUS_SRC_ALPHA];\n array[CONST.BLEND_MODES.DARKEN] = [gl.ONE, gl.ONE_MINUS_SRC_ALPHA];\n array[CONST.BLEND_MODES.LIGHTEN] = [gl.ONE, gl.ONE_MINUS_SRC_ALPHA];\n array[CONST.BLEND_MODES.COLOR_DODGE] = [gl.ONE, gl.ONE_MINUS_SRC_ALPHA];\n array[CONST.BLEND_MODES.COLOR_BURN] = [gl.ONE, gl.ONE_MINUS_SRC_ALPHA];\n array[CONST.BLEND_MODES.HARD_LIGHT] = [gl.ONE, gl.ONE_MINUS_SRC_ALPHA];\n array[CONST.BLEND_MODES.SOFT_LIGHT] = [gl.ONE, gl.ONE_MINUS_SRC_ALPHA];\n array[CONST.BLEND_MODES.DIFFERENCE] = [gl.ONE, gl.ONE_MINUS_SRC_ALPHA];\n array[CONST.BLEND_MODES.EXCLUSION] = [gl.ONE, gl.ONE_MINUS_SRC_ALPHA];\n array[CONST.BLEND_MODES.HUE] = [gl.ONE, gl.ONE_MINUS_SRC_ALPHA];\n array[CONST.BLEND_MODES.SATURATION] = [gl.ONE, gl.ONE_MINUS_SRC_ALPHA];\n array[CONST.BLEND_MODES.COLOR] = [gl.ONE, gl.ONE_MINUS_SRC_ALPHA];\n array[CONST.BLEND_MODES.LUMINOSITY] = [gl.ONE, gl.ONE_MINUS_SRC_ALPHA];\n\n return array;\n}\n\nmodule.exports = mapWebGLBlendModesToPixi;\n","var CONST = require('../../../const');\n\n/**\n * Generic Mask Stack data structure\n * @class\n * @memberof PIXI\n * @param gl {WebGLRenderingContext} The current WebGL drawing context\n * @param object\n */\nfunction mapWebGLDrawModesToPixi(gl, object)\n{\n\tobject= object || {};\n\n object[CONST.DRAW_MODES.POINTS] = gl.POINTS;\n object[CONST.DRAW_MODES.LINES] = gl.LINES;\n object[CONST.DRAW_MODES.LINE_LOOP] = gl.LINE_LOOP;\n object[CONST.DRAW_MODES.LINE_STRIP] = gl.LINE_STRIP;\n object[CONST.DRAW_MODES.TRIANGLES] = gl.TRIANGLES;\n object[CONST.DRAW_MODES.TRIANGLE_STRIP] = gl.TRIANGLE_STRIP;\n object[CONST.DRAW_MODES.TRIANGLE_FAN] = gl.TRIANGLE_FAN;\n\n}\n\nmodule.exports = mapWebGLDrawModesToPixi;\n","\n\nfunction validateContext(gl)\n{\n\tvar attributes = gl.getContextAttributes();\n\n\t// this is going to be fairly simple for now.. but at least we have rom to grow!\n\tif(!attributes.stencil)\n\t{\n\t\tconsole.warn('Provided WebGL context does not have a stencil buffer, masks may not render correctly'); // jshint ignore:line\n\t}\n}\n\nmodule.exports = validateContext;\n","var math = require('../math'),\n Texture = require('../textures/Texture'),\n Container = require('../display/Container'),\n utils = require('../utils'),\n CONST = require('../const'),\n tempPoint = new math.Point();\n\n/**\n * The Sprite object is the base for all textured objects that are rendered to the screen\n *\n * A sprite can be created directly from an image like this:\n *\n * ```js\n * var sprite = new PIXI.Sprite.fromImage('assets/image.png');\n * ```\n *\n * @class\n * @extends PIXI.Container\n * @memberof PIXI\n * @param texture {PIXI.Texture} The texture for this sprite\n */\nfunction Sprite(texture)\n{\n Container.call(this);\n\n /**\n * The anchor sets the origin point of the texture.\n * The default is 0,0 this means the texture's origin is the top left\n * Setting the anchor to 0.5,0.5 means the texture's origin is centered\n * Setting the anchor to 1,1 would mean the texture's origin point will be the bottom right corner\n *\n * @member {PIXI.ObservablePoint}\n */\n this.anchor = new math.ObservablePoint(this.onAnchorUpdate, this);\n\n /**\n * The texture that the sprite is using\n *\n * @member {PIXI.Texture}\n * @private\n */\n this._texture = null;\n\n /**\n * The width of the sprite (this is initially set by the texture)\n *\n * @member {number}\n * @private\n */\n this._width = 0;\n\n /**\n * The height of the sprite (this is initially set by the texture)\n *\n * @member {number}\n * @private\n */\n this._height = 0;\n\n /**\n * The tint applied to the sprite. This is a hex value. A value of 0xFFFFFF will remove any tint effect.\n *\n * @member {number}\n * @default 0xFFFFFF\n */\n this._tint = null;\n this._tintRGB = null;\n this.tint = 0xFFFFFF;\n\n /**\n * The blend mode to be applied to the sprite. Apply a value of `PIXI.BLEND_MODES.NORMAL` to reset the blend mode.\n *\n * @member {number}\n * @default PIXI.BLEND_MODES.NORMAL\n * @see PIXI.BLEND_MODES\n */\n this.blendMode = CONST.BLEND_MODES.NORMAL;\n\n /**\n * The shader that will be used to render the sprite. Set to null to remove a current shader.\n *\n * @member {PIXI.AbstractFilter|PIXI.Shader}\n */\n this.shader = null;\n\n /**\n * An internal cached value of the tint.\n *\n * @member {number}\n * @default 0xFFFFFF\n * @private\n */\n this.cachedTint = 0xFFFFFF;\n\n // call texture setter\n this.texture = texture || Texture.EMPTY;\n\n /**\n * this is used to store the vertex data of the sprite (basically a quad)\n * @type {Float32Array}\n */\n this.vertexData = new Float32Array(8);\n\n /**\n * this is used to calculate the bounds of the object IF it is a trimmed sprite\n * @type {Float32Array}\n */\n this.vertexTrimmedData = null;\n\n this._transformID = -1;\n this._textureID = -1;\n}\n\n// constructor\nSprite.prototype = Object.create(Container.prototype);\nSprite.prototype.constructor = Sprite;\nmodule.exports = Sprite;\n\nObject.defineProperties(Sprite.prototype, {\n /**\n * The width of the sprite, setting this will actually modify the scale to achieve the value set\n *\n * @member {number}\n * @memberof PIXI.Sprite#\n */\n width: {\n get: function ()\n {\n return Math.abs(this.scale.x) * this.texture.orig.width;\n },\n set: function (value)\n {\n var sign = utils.sign(this.scale.x) || 1;\n this.scale.x = sign * value / this.texture.orig.width;\n this._width = value;\n }\n },\n\n /**\n * The height of the sprite, setting this will actually modify the scale to achieve the value set\n *\n * @member {number}\n * @memberof PIXI.Sprite#\n */\n height: {\n get: function ()\n {\n return Math.abs(this.scale.y) * this.texture.orig.height;\n },\n set: function (value)\n {\n var sign = utils.sign(this.scale.y) || 1;\n this.scale.y = sign * value / this.texture.orig.height;\n this._height = value;\n }\n },\n\n tint: {\n get: function ()\n {\n return this._tint;\n },\n set: function (value)\n {\n this._tint = value;\n this._tintRGB = (value >> 16) + (value & 0xff00) + ((value & 0xff) << 16);\n }\n },\n\n /**\n * The texture that the sprite is using\n *\n * @member {PIXI.Texture}\n * @memberof PIXI.Sprite#\n */\n texture: {\n get: function ()\n {\n return this._texture;\n },\n set: function (value)\n {\n if (this._texture === value)\n {\n return;\n }\n\n this._texture = value;\n this.cachedTint = 0xFFFFFF;\n\n this._textureID = -1;\n\n if (value)\n {\n // wait for the texture to load\n if (value.baseTexture.hasLoaded)\n {\n this._onTextureUpdate();\n }\n else\n {\n value.once('update', this._onTextureUpdate, this);\n }\n }\n }\n }\n});\n\n/**\n * When the texture is updated, this event will fire to update the scale and frame\n *\n * @private\n */\nSprite.prototype._onTextureUpdate = function ()\n{\n this._textureID = -1;\n\n // so if _width is 0 then width was not set..\n if (this._width)\n {\n this.scale.x = utils.sign(this.scale.x) * this._width / this.texture.orig.width;\n }\n\n if (this._height)\n {\n this.scale.y = utils.sign(this.scale.y) * this._height / this.texture.orig.height;\n }\n};\n\nSprite.prototype.onAnchorUpdate = function()\n{\n this._transformID = -1;\n};\n\n/**\n * calculates worldTransform * vertices, store it in vertexData\n */\nSprite.prototype.calculateVertices = function ()\n{\n if(this._transformID === this.transform._worldID && this._textureID === this._texture._updateID)\n {\n return;\n }\n\n this._transformID = this.transform._worldID;\n this._textureID = this._texture._updateID;\n\n // set the vertex data\n\n var texture = this._texture,\n wt = this.transform.worldTransform,\n a = wt.a, b = wt.b, c = wt.c, d = wt.d, tx = wt.tx, ty = wt.ty,\n vertexData = this.vertexData,\n w0, w1, h0, h1,\n trim = texture.trim,\n orig = texture.orig;\n\n if (trim)\n {\n // if the sprite is trimmed and is not a tilingsprite then we need to add the extra space before transforming the sprite coords..\n w1 = trim.x - this.anchor._x * orig.width;\n w0 = w1 + trim.width;\n\n h1 = trim.y - this.anchor._y * orig.height;\n h0 = h1 + trim.height;\n\n }\n else\n {\n w0 = orig.width * (1-this.anchor._x);\n w1 = orig.width * -this.anchor._x;\n\n h0 = orig.height * (1-this.anchor._y);\n h1 = orig.height * -this.anchor._y;\n }\n\n // xy\n vertexData[0] = a * w1 + c * h1 + tx;\n vertexData[1] = d * h1 + b * w1 + ty;\n\n // xy\n vertexData[2] = a * w0 + c * h1 + tx;\n vertexData[3] = d * h1 + b * w0 + ty;\n\n // xy\n vertexData[4] = a * w0 + c * h0 + tx;\n vertexData[5] = d * h0 + b * w0 + ty;\n\n // xy\n vertexData[6] = a * w1 + c * h0 + tx;\n vertexData[7] = d * h0 + b * w1 + ty;\n};\n\n/**\n * calculates worldTransform * vertices for a non texture with a trim. store it in vertexTrimmedData\n * This is used to ensure that the true width and height of a trimmed texture is respected\n */\nSprite.prototype.calculateTrimmedVertices = function ()\n{\n if(!this.vertexTrimmedData)\n {\n this.vertexTrimmedData = new Float32Array(8);\n }\n\n // lets do some special trim code!\n var texture = this._texture,\n vertexData = this.vertexTrimmedData,\n orig = texture.orig;\n\n // lets calculate the new untrimmed bounds..\n var wt = this.transform.worldTransform,\n a = wt.a, b = wt.b, c = wt.c, d = wt.d, tx = wt.tx, ty = wt.ty,\n w0, w1, h0, h1;\n\n w0 = (orig.width ) * (1-this.anchor._x);\n w1 = (orig.width ) * -this.anchor._x;\n\n h0 = orig.height * (1-this.anchor._y);\n h1 = orig.height * -this.anchor._y;\n\n // xy\n vertexData[0] = a * w1 + c * h1 + tx;\n vertexData[1] = d * h1 + b * w1 + ty;\n\n // xy\n vertexData[2] = a * w0 + c * h1 + tx;\n vertexData[3] = d * h1 + b * w0 + ty;\n\n // xy\n vertexData[4] = a * w0 + c * h0 + tx;\n vertexData[5] = d * h0 + b * w0 + ty;\n\n // xy\n vertexData[6] = a * w1 + c * h0 + tx;\n vertexData[7] = d * h0 + b * w1 + ty;\n};\n\n/**\n*\n* Renders the object using the WebGL renderer\n*\n* @param renderer {PIXI.WebGLRenderer}\n* @private\n*/\nSprite.prototype._renderWebGL = function (renderer)\n{\n this.calculateVertices();\n\n renderer.setObjectRenderer(renderer.plugins.sprite);\n renderer.plugins.sprite.render(this);\n};\n\n/**\n* Renders the object using the Canvas renderer\n*\n* @param renderer {PIXI.CanvasRenderer} The renderer\n* @private\n*/\nSprite.prototype._renderCanvas = function (renderer)\n{\n renderer.plugins.sprite.render(this);\n};\n\n\nSprite.prototype._calculateBounds = function ()\n{\n\n var trim = this._texture.trim,\n orig = this._texture.orig;\n\n //First lets check to see if the current texture has a trim..\n if (!trim || trim.width === orig.width && trim.height === orig.height) {\n\n // no trim! lets use the usual calculations..\n this.calculateVertices();\n this._bounds.addQuad(this.vertexData);\n }\n else\n {\n // lets calculate a special trimmed bounds...\n this.calculateTrimmedVertices();\n this._bounds.addQuad(this.vertexTrimmedData);\n }\n};\n\n/**\n * Gets the local bounds of the sprite object.\n *\n */\n\nSprite.prototype.getLocalBounds = function (rect)\n{\n // we can do a fast local bounds if the sprite has no children!\n if(this.children.length === 0)\n {\n\n this._bounds.minX = -this._texture.orig.width * this.anchor._x;\n this._bounds.minY = -this._texture.orig.height * this.anchor._y;\n this._bounds.maxX = this._texture.orig.width;\n this._bounds.maxY = this._texture.orig.height;\n\n if(!rect)\n {\n if(!this._localBoundsRect)\n {\n this._localBoundsRect = new math.Rectangle();\n }\n\n rect = this._localBoundsRect;\n }\n\n return this._bounds.getRectangle(rect);\n }\n else\n {\n return Container.prototype.getLocalBounds.call(this, rect);\n }\n\n};\n\n/**\n* Tests if a point is inside this sprite\n*\n* @param point {PIXI.Point} the point to test\n* @return {boolean} the result of the test\n*/\nSprite.prototype.containsPoint = function( point )\n{\n this.worldTransform.applyInverse(point, tempPoint);\n\n var width = this._texture.orig.width;\n var height = this._texture.orig.height;\n var x1 = -width * this.anchor.x;\n var y1;\n\n if ( tempPoint.x > x1 && tempPoint.x < x1 + width )\n {\n y1 = -height * this.anchor.y;\n\n if ( tempPoint.y > y1 && tempPoint.y < y1 + height )\n {\n return true;\n }\n }\n\n return false;\n};\n\n\n/**\n * Destroys this sprite and optionally its texture and children\n *\n * @param [options] {object|boolean} Options parameter. A boolean will act as if all options have been set to that value\n * @param [options.children=false] {boolean} if set to true, all the children will have their destroy\n * method called as well. 'options' will be passed on to those calls.\n * @param [options.texture=false] {boolean} Should it destroy the current texture of the sprite as well\n * @param [options.baseTexture=false] {boolean} Should it destroy the base texture of the sprite as well\n */\nSprite.prototype.destroy = function (options)\n{\n Container.prototype.destroy.call(this, options);\n\n this.anchor = null;\n\n var destroyTexture = typeof options === 'boolean' ? options : options && options.texture;\n if (destroyTexture)\n {\n var destroyBaseTexture = typeof options === 'boolean' ? options : options && options.baseTexture;\n this._texture.destroy(!!destroyBaseTexture);\n }\n\n this._texture = null;\n this.shader = null;\n};\n\n// some helper functions..\n\n/**\n * Helper function that creates a new sprite based on the source you provide.\n * The source can be - frame id, image url, video url, canvas element, video element, base texture\n *\n * @static\n * @param {number|string|PIXI.BaseTexture|HTMLCanvasElement|HTMLVideoElement} source Source to create texture from\n * @return {PIXI.Texture} The newly created texture\n */\nSprite.from = function (source)\n{\n return new Sprite(Texture.from(source));\n};\n\n/**\n * 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\n *\n * @static\n * @param frameId {string} The frame Id of the texture in the cache\n * @return {PIXI.Sprite} A new Sprite using a texture from the texture cache matching the frameId\n */\nSprite.fromFrame = function (frameId)\n{\n var texture = utils.TextureCache[frameId];\n\n if (!texture)\n {\n throw new Error('The frameId \"' + frameId + '\" does not exist in the texture cache');\n }\n\n return new Sprite(texture);\n};\n\n/**\n * 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\n *\n * @static\n * @param imageId {string} The image url of the texture\n * @param [crossorigin=(auto)] {boolean} if you want to specify the cross-origin parameter\n * @param [scaleMode=PIXI.SCALE_MODES.DEFAULT] {number} if you want to specify the scale mode, see {@link PIXI.SCALE_MODES} for possible values\n * @return {PIXI.Sprite} A new Sprite using a texture from the texture cache matching the image id\n */\nSprite.fromImage = function (imageId, crossorigin, scaleMode)\n{\n return new Sprite(Texture.fromImage(imageId, crossorigin, scaleMode));\n};\n","var CanvasRenderer = require('../../renderers/canvas/CanvasRenderer'),\n CONST = require('../../const'),\n math = require('../../math'),\n canvasRenderWorldTransform = new math.Matrix(),\n CanvasTinter = require('./CanvasTinter');\n\n/**\n * @author Mat Groves\n *\n * Big thanks to the very clever Matt DesLauriers https://github.com/mattdesl/\n * for creating the original pixi version!\n * Also a thanks to https://github.com/bchevalier for tweaking the tint and alpha so that they now share 4 bytes on the vertex buffer\n *\n * Heavily inspired by LibGDX's CanvasSpriteRenderer:\n * https://github.com/libgdx/libgdx/blob/master/gdx/src/com/badlogic/gdx/graphics/g2d/CanvasSpriteRenderer.java\n */\n\n/**\n * Renderer dedicated to drawing and batching sprites.\n *\n * @class\n * @private\n * @memberof PIXI\n * @extends PIXI.ObjectRenderer\n * @param renderer {PIXI.WebGLRenderer} The renderer sprite this batch works for.\n */\nfunction CanvasSpriteRenderer(renderer)\n{\n this.renderer = renderer;\n}\n\n\nCanvasSpriteRenderer.prototype.constructor = CanvasSpriteRenderer;\nmodule.exports = CanvasSpriteRenderer;\n\nCanvasRenderer.registerPlugin('sprite', CanvasSpriteRenderer);\n\n/**\n * Renders the sprite object.\n *\n * @param sprite {PIXI.Sprite} the sprite to render when using this spritebatch\n */\nCanvasSpriteRenderer.prototype.render = function (sprite)\n{\n var texture = sprite._texture,\n renderer = this.renderer,\n wt = sprite.transform.worldTransform,\n dx,\n dy,\n width = texture._frame.width,\n height = texture._frame.height;\n\n if (texture.orig.width <= 0 || texture.orig.height <= 0 || !texture.baseTexture.source)\n {\n return;\n }\n\n renderer.setBlendMode(sprite.blendMode);\n\n // Ignore null sources\n if (texture.valid)\n {\n renderer.context.globalAlpha = sprite.worldAlpha;\n\n // If smoothingEnabled is supported and we need to change the smoothing property for sprite texture\n var smoothingEnabled = texture.baseTexture.scaleMode === CONST.SCALE_MODES.LINEAR;\n if (renderer.smoothProperty && renderer.context[renderer.smoothProperty] !== smoothingEnabled)\n {\n renderer.context[renderer.smoothProperty] = smoothingEnabled;\n }\n\n if (texture.trim) {\n dx = texture.trim.width/2 + texture.trim.x - sprite.anchor.x * texture.orig.width;\n dy = texture.trim.height/2 + texture.trim.y - sprite.anchor.y * texture.orig.height;\n } else {\n dx = (0.5 - sprite.anchor.x) * texture.orig.width;\n dy = (0.5 - sprite.anchor.y) * texture.orig.height;\n }\n if(texture.rotate) {\n wt.copy(canvasRenderWorldTransform);\n wt = canvasRenderWorldTransform;\n math.GroupD8.matrixAppendRotationInv(wt, texture.rotate, dx, dy);\n // the anchor has already been applied above, so lets set it to zero\n dx = 0;\n dy = 0;\n }\n dx -= width/2;\n dy -= height/2;\n // Allow for pixel rounding\n if (renderer.roundPixels)\n {\n renderer.context.setTransform(\n wt.a,\n wt.b,\n wt.c,\n wt.d,\n (wt.tx * renderer.resolution) | 0,\n (wt.ty * renderer.resolution) | 0\n );\n\n dx = dx | 0;\n dy = dy | 0;\n }\n else\n {\n renderer.context.setTransform(\n wt.a,\n wt.b,\n wt.c,\n wt.d,\n wt.tx * renderer.resolution,\n wt.ty * renderer.resolution\n );\n }\n\n var resolution = texture.baseTexture.resolution;\n\n if (sprite.tint !== 0xFFFFFF)\n {\n if (sprite.cachedTint !== sprite.tint)\n {\n sprite.cachedTint = sprite.tint;\n\n // TODO clean up caching - how to clean up the caches?\n sprite.tintedTexture = CanvasTinter.getTintedTexture(sprite, sprite.tint);\n }\n\n renderer.context.drawImage(\n sprite.tintedTexture,\n 0,\n 0,\n width * resolution,\n height * resolution,\n dx * renderer.resolution,\n dy * renderer.resolution,\n width * renderer.resolution,\n height * renderer.resolution\n );\n }\n else\n {\n\n renderer.context.drawImage(\n texture.baseTexture.source,\n texture._frame.x * resolution,\n texture._frame.y * resolution,\n width * resolution,\n height * resolution,\n dx * renderer.resolution,\n dy * renderer.resolution,\n width * renderer.resolution,\n height * renderer.resolution\n );\n }\n }\n};\n\n/**\n * destroy the sprite object.\n *\n */\nCanvasSpriteRenderer.prototype.destroy = function (){\n this.renderer = null;\n};\n","var utils = require('../../utils'),\n canUseNewCanvasBlendModes = require('../../renderers/canvas/utils/canUseNewCanvasBlendModes');\n\n/**\n * Utility methods for Sprite/Texture tinting.\n *\n * @namespace PIXI.CanvasTinter\n */\nvar CanvasTinter = module.exports = {\n /**\n * Basically this method just needs a sprite and a color and tints the sprite with the given color.\n *\n * @memberof PIXI.CanvasTinter\n * @param sprite {PIXI.Sprite} the sprite to tint\n * @param color {number} the color to use to tint the sprite with\n * @return {HTMLCanvasElement} The tinted canvas\n */\n getTintedTexture: function (sprite, color)\n {\n var texture = sprite.texture;\n\n color = CanvasTinter.roundColor(color);\n\n var stringColor = '#' + ('00000' + ( color | 0).toString(16)).substr(-6);\n\n texture.tintCache = texture.tintCache || {};\n\n if (texture.tintCache[stringColor])\n {\n return texture.tintCache[stringColor];\n }\n\n // clone texture..\n var canvas = CanvasTinter.canvas || document.createElement('canvas');\n\n //CanvasTinter.tintWithPerPixel(texture, stringColor, canvas);\n CanvasTinter.tintMethod(texture, color, canvas);\n\n if (CanvasTinter.convertTintToImage)\n {\n // is this better?\n var tintImage = new Image();\n tintImage.src = canvas.toDataURL();\n\n texture.tintCache[stringColor] = tintImage;\n }\n else\n {\n texture.tintCache[stringColor] = canvas;\n // if we are not converting the texture to an image then we need to lose the reference to the canvas\n CanvasTinter.canvas = null;\n }\n\n return canvas;\n },\n\n /**\n * Tint a texture using the 'multiply' operation.\n *\n * @memberof PIXI.CanvasTinter\n * @param texture {PIXI.Texture} the texture to tint\n * @param color {number} the color to use to tint the sprite with\n * @param canvas {HTMLCanvasElement} the current canvas\n */\n tintWithMultiply: function (texture, color, canvas)\n {\n var context = canvas.getContext( '2d' );\n var crop = texture._frame.clone();\n var resolution = texture.baseTexture.resolution;\n\n crop.x *= resolution;\n crop.y *= resolution;\n crop.width *= resolution;\n crop.height *= resolution;\n\n canvas.width = crop.width;\n canvas.height = crop.height;\n\n context.fillStyle = '#' + ('00000' + ( color | 0).toString(16)).substr(-6);\n\n context.fillRect(0, 0, crop.width, crop.height);\n\n context.globalCompositeOperation = 'multiply';\n\n context.drawImage(\n texture.baseTexture.source,\n crop.x,\n crop.y,\n crop.width,\n crop.height,\n 0,\n 0,\n crop.width,\n crop.height\n );\n\n context.globalCompositeOperation = 'destination-atop';\n\n context.drawImage(\n texture.baseTexture.source,\n crop.x,\n crop.y,\n crop.width,\n crop.height,\n 0,\n 0,\n crop.width,\n crop.height\n );\n },\n\n /**\n * Tint a texture using the 'overlay' operation.\n *\n * @memberof PIXI.CanvasTinter\n * @param texture {PIXI.Texture} the texture to tint\n * @param color {number} the color to use to tint the sprite with\n * @param canvas {HTMLCanvasElement} the current canvas\n */\n tintWithOverlay: function (texture, color, canvas)\n {\n var context = canvas.getContext( '2d' );\n var crop = texture._frame.clone();\n var resolution = texture.baseTexture.resolution;\n\n crop.x *= resolution;\n crop.y *= resolution;\n crop.width *= resolution;\n crop.height *= resolution;\n\n canvas.width = crop.width;\n canvas.height = crop.height;\n\n context.globalCompositeOperation = 'copy';\n context.fillStyle = '#' + ('00000' + ( color | 0).toString(16)).substr(-6);\n context.fillRect(0, 0, crop.width, crop.height);\n\n context.globalCompositeOperation = 'destination-atop';\n context.drawImage(\n texture.baseTexture.source,\n crop.x,\n crop.y,\n crop.width,\n crop.height,\n 0,\n 0,\n crop.width,\n crop.height\n );\n\n // context.globalCompositeOperation = 'copy';\n },\n\n /**\n * Tint a texture pixel per pixel.\n *\n * @memberof PIXI.CanvasTinter\n * @param texture {PIXI.Texture} the texture to tint\n * @param color {number} the color to use to tint the sprite with\n * @param canvas {HTMLCanvasElement} the current canvas\n */\n tintWithPerPixel: function (texture, color, canvas)\n {\n var context = canvas.getContext( '2d' );\n var crop = texture._frame.clone();\n var resolution = texture.baseTexture.resolution;\n\n crop.x *= resolution;\n crop.y *= resolution;\n crop.width *= resolution;\n crop.height *= resolution;\n\n canvas.width = crop.width;\n canvas.height = crop.height;\n\n context.globalCompositeOperation = 'copy';\n context.drawImage(\n texture.baseTexture.source,\n crop.x,\n crop.y,\n crop.width,\n crop.height,\n 0,\n 0,\n crop.width,\n crop.height\n );\n\n var rgbValues = utils.hex2rgb(color);\n var r = rgbValues[0], g = rgbValues[1], b = rgbValues[2];\n\n var pixelData = context.getImageData(0, 0, crop.width, crop.height);\n\n var pixels = pixelData.data;\n\n for (var i = 0; i < pixels.length; i += 4)\n {\n pixels[i+0] *= r;\n pixels[i+1] *= g;\n pixels[i+2] *= b;\n }\n\n context.putImageData(pixelData, 0, 0);\n },\n\n /**\n * Rounds the specified color according to the CanvasTinter.cacheStepsPerColorChannel.\n *\n * @memberof PIXI.CanvasTinter\n * @param color {number} the color to round, should be a hex color\n */\n roundColor: function (color)\n {\n var step = CanvasTinter.cacheStepsPerColorChannel;\n\n var rgbValues = utils.hex2rgb(color);\n\n rgbValues[0] = Math.min(255, (rgbValues[0] / step) * step);\n rgbValues[1] = Math.min(255, (rgbValues[1] / step) * step);\n rgbValues[2] = Math.min(255, (rgbValues[2] / step) * step);\n\n return utils.rgb2hex(rgbValues);\n },\n\n /**\n * Number of steps which will be used as a cap when rounding colors.\n *\n * @memberof PIXI.CanvasTinter\n * @type {number}\n */\n cacheStepsPerColorChannel: 8,\n\n /**\n * Tint cache boolean flag.\n *\n * @memberof PIXI.CanvasTinter\n * @type {boolean}\n */\n convertTintToImage: false,\n\n /**\n * Whether or not the Canvas BlendModes are supported, consequently the ability to tint using the multiply method.\n *\n * @memberof PIXI.CanvasTinter\n * @type {boolean}\n */\n canUseMultiply: canUseNewCanvasBlendModes(),\n\n /**\n * The tinting method that will be used.\n *\n * @memberof PIXI.CanvasTinter\n * @type {tintMethodFunctionType}\n */\n tintMethod: 0\n};\n\nCanvasTinter.tintMethod = CanvasTinter.canUseMultiply ? CanvasTinter.tintWithMultiply : CanvasTinter.tintWithPerPixel;\n\n/**\n * The tintMethod type.\n *\n * @memberof PIXI.CanvasTinter\n * @callback tintMethodFunctionType\n * @param texture {PIXI.Texture} the texture to tint\n * @param color {number} the color to use to tint the sprite with\n * @param canvas {HTMLCanvasElement} the current canvas\n */\n","\n\n var Buffer = function(size)\n {\n\n this.vertices = new ArrayBuffer(size);\n\n /**\n * View on the vertices as a Float32Array for positions\n *\n * @member {Float32Array}\n */\n this.float32View = new Float32Array(this.vertices);\n\n /**\n * View on the vertices as a Uint32Array for uvs\n *\n * @member {Float32Array}\n */\n this.uint32View = new Uint32Array(this.vertices);\n };\n\n module.exports = Buffer;\n\n Buffer.prototype.destroy = function(){\n this.vertices = null;\n this.positions = null;\n this.uvs = null;\n this.colors = null;\n };","var ObjectRenderer = require('../../renderers/webgl/utils/ObjectRenderer'),\n WebGLRenderer = require('../../renderers/webgl/WebGLRenderer'),\n createIndicesForQuads = require('../../utils/createIndicesForQuads'),\n generateMultiTextureShader = require('./generateMultiTextureShader'),\n checkMaxIfStatmentsInShader = require('../../renderers/webgl/utils/checkMaxIfStatmentsInShader'),\n Buffer = require('./BatchBuffer'),\n CONST = require('../../const'),\n glCore = require('pixi-gl-core'),\n bitTwiddle = require('bit-twiddle');\n\n var TICK = 0;\n/**\n * Renderer dedicated to drawing and batching sprites.\n *\n * @class\n * @private\n * @memberof PIXI\n * @extends PIXI.ObjectRenderer\n * @param renderer {PIXI.WebGLRenderer} The renderer this sprite batch works for.\n */\nfunction SpriteRenderer(renderer)\n{\n ObjectRenderer.call(this, renderer);\n\n /**\n * Number of values sent in the vertex buffer.\n * positionX, positionY, colorR, colorG, colorB = 5\n *\n * @member {number}\n */\n this.vertSize = 5;\n\n /**\n * The size of the vertex information in bytes.\n *\n * @member {number}\n */\n this.vertByteSize = this.vertSize * 4;\n\n /**\n * The number of images in the SpriteBatch before it flushes.\n *\n * @member {number}\n */\n this.size = CONST.SPRITE_BATCH_SIZE; // 2000 is a nice balance between mobile / desktop\n\n // the total number of bytes in our batch\n // var numVerts = this.size * 4 * this.vertByteSize;\n\n this.buffers = [];\n for (var i = 1; i <= bitTwiddle.nextPow2(this.size); i*=2) {\n var numVertsTemp = i * 4 * this.vertByteSize;\n this.buffers.push(new Buffer(numVertsTemp));\n }\n\n /**\n * Holds the indices of the geometry (quads) to draw\n *\n * @member {Uint16Array}\n */\n this.indices = createIndicesForQuads(this.size);\n\n /**\n * The default shaders that is used if a sprite doesn't have a more specific one.\n * there is a shader for each number of textures that can be rendererd.\n * These shaders will also be generated on the fly as required.\n * @member {PIXI.Shader[]}\n */\n this.shaders = null;\n\n this.currentIndex = 0;\n TICK =0;\n this.groups = [];\n\n for (var k = 0; k < this.size; k++)\n {\n this.groups[k] = {textures:[], textureCount:0, ids:[], size:0, start:0, blend:0};\n }\n\n this.sprites = [];\n\n this.vertexBuffers = [];\n this.vaos = [];\n\n this.vaoMax = 2;\n this.vertexCount = 0;\n\n this.renderer.on('prerender', this.onPrerender, this);\n}\n\n\nSpriteRenderer.prototype = Object.create(ObjectRenderer.prototype);\nSpriteRenderer.prototype.constructor = SpriteRenderer;\nmodule.exports = SpriteRenderer;\n\nWebGLRenderer.registerPlugin('sprite', SpriteRenderer);\n\n/**\n * Sets up the renderer context and necessary buffers.\n *\n * @private\n */\nSpriteRenderer.prototype.onContextChange = function ()\n{\n var gl = this.renderer.gl;\n\n // step 1: first check max textures the GPU can handle.\n this.MAX_TEXTURES = Math.min(gl.getParameter(gl.MAX_TEXTURE_IMAGE_UNITS), CONST.SPRITE_MAX_TEXTURES);\n\n // step 2: check the maximum number of if statements the shader can have too..\n this.MAX_TEXTURES = checkMaxIfStatmentsInShader( this.MAX_TEXTURES, gl );\n\n this.shaders = new Array(this.MAX_TEXTURES);\n this.shaders[0] = generateMultiTextureShader(gl, 1);\n this.shaders[1] = generateMultiTextureShader(gl, 2);\n\n // create a couple of buffers\n this.indexBuffer = glCore.GLBuffer.createIndexBuffer(gl, this.indices, gl.STATIC_DRAW);\n\n // we use the second shader as the first one depending on your browser may omit aTextureId\n // as it is not used by the shader so is optimized out.\n var shader = this.shaders[1];\n\n for (var i = 0; i < this.vaoMax; i++) {\n this.vertexBuffers[i] = glCore.GLBuffer.createVertexBuffer(gl, null, gl.STREAM_DRAW);\n\n // build the vao object that will render..\n this.vaos[i] = this.renderer.createVao()\n .addIndex(this.indexBuffer)\n .addAttribute(this.vertexBuffers[i], shader.attributes.aVertexPosition, gl.FLOAT, false, this.vertByteSize, 0)\n .addAttribute(this.vertexBuffers[i], shader.attributes.aTextureCoord, gl.UNSIGNED_SHORT, true, this.vertByteSize, 2 * 4)\n .addAttribute(this.vertexBuffers[i], shader.attributes.aColor, gl.UNSIGNED_BYTE, true, this.vertByteSize, 3 * 4)\n .addAttribute(this.vertexBuffers[i], shader.attributes.aTextureId, gl.FLOAT, false, this.vertByteSize, 4 * 4);\n }\n\n this.vao = this.vaos[0];\n this.currentBlendMode = 99999;\n};\n\nSpriteRenderer.prototype.onPrerender = function ()\n{\n this.vertexCount = 0;\n};\n\n/**\n * Renders the sprite object.\n *\n * @param sprite {PIXI.Sprite} the sprite to render when using this spritebatch\n */\nSpriteRenderer.prototype.render = function (sprite)\n{\n //TODO set blend modes..\n // check texture..\n if (this.currentIndex >= this.size)\n {\n this.flush();\n }\n\n\n // get the uvs for the texture\n\n\n // if the uvs have not updated then no point rendering just yet!\n if (!sprite.texture._uvs)\n {\n return;\n }\n\n // push a texture.\n // increment the batchsize\n this.sprites[this.currentIndex++] = sprite;\n};\n\n/**\n * Renders the content and empties the current batch.\n *\n */\nSpriteRenderer.prototype.flush = function ()\n{\n if (this.currentIndex === 0) {\n return;\n }\n\n var gl = this.renderer.gl;\n\n var np2 = bitTwiddle.nextPow2(this.currentIndex);\n var log2 = bitTwiddle.log2(np2);\n var buffer = this.buffers[log2];\n\n var sprites = this.sprites;\n var groups = this.groups;\n\n var float32View = buffer.float32View;\n var uint32View = buffer.uint32View;\n\n var index = 0;\n var nextTexture;\n var currentTexture;\n var groupCount = 1;\n var textureCount = 0;\n var currentGroup = groups[0];\n var vertexData;\n var tint;\n var uvs;\n var textureId;\n var blendMode = sprites[0].blendMode;\n var shader;\n\n currentGroup.textureCount = 0;\n currentGroup.start = 0;\n currentGroup.blend = blendMode;\n\n TICK++;\n\n for (var i = 0; i < this.currentIndex; i++)\n {\n // upload the sprite elemetns...\n // they have all ready been calculated so we just need to push them into the buffer.\n var sprite = sprites[i];\n\n nextTexture = sprite._texture.baseTexture;\n\n if(blendMode !== sprite.blendMode)\n {\n blendMode = sprite.blendMode;\n\n // force the batch to break!\n currentTexture = null;\n textureCount = this.MAX_TEXTURES;\n TICK++;\n }\n\n if(currentTexture !== nextTexture)\n {\n currentTexture = nextTexture;\n\n if(nextTexture._enabled !== TICK)\n {\n if(textureCount === this.MAX_TEXTURES)\n {\n TICK++;\n\n textureCount = 0;\n\n currentGroup.size = i - currentGroup.start;\n\n currentGroup = groups[groupCount++];\n currentGroup.textureCount = 0;\n currentGroup.blend = blendMode;\n currentGroup.start = i;\n }\n\n nextTexture._enabled = TICK;\n nextTexture._id = textureCount;\n\n currentGroup.textures[currentGroup.textureCount++] = nextTexture;\n textureCount++;\n }\n\n }\n\n vertexData = sprite.vertexData;\n\n //TODO this sum does not need to be set each frame..\n tint = sprite._tintRGB + (sprite.worldAlpha * 255 << 24);\n uvs = sprite._texture._uvs.uvsUint32;\n textureId = nextTexture._id;\n\n if (this.renderer.roundPixels)\n {\n var resolution = this.renderer.resolution;\n\n //xy\n float32View[index] = ((vertexData[0] * resolution) | 0) / resolution;\n float32View[index+1] = ((vertexData[1] * resolution) | 0) / resolution;\n\n // xy\n float32View[index+5] = ((vertexData[2] * resolution) | 0) / resolution;\n float32View[index+6] = ((vertexData[3] * resolution) | 0) / resolution;\n\n // xy\n float32View[index+10] = ((vertexData[4] * resolution) | 0) / resolution;\n float32View[index+11] = ((vertexData[5] * resolution) | 0) / resolution;\n\n // xy\n float32View[index+15] = ((vertexData[6] * resolution) | 0) / resolution;\n float32View[index+16] = ((vertexData[7] * resolution) | 0) / resolution;\n\n }\n else\n {\n //xy\n float32View[index] = vertexData[0];\n float32View[index+1] = vertexData[1];\n\n // xy\n float32View[index+5] = vertexData[2];\n float32View[index+6] = vertexData[3];\n\n // xy\n float32View[index+10] = vertexData[4];\n float32View[index+11] = vertexData[5];\n\n // xy\n float32View[index+15] = vertexData[6];\n float32View[index+16] = vertexData[7];\n }\n\n uint32View[index+2] = uvs[0];\n uint32View[index+7] = uvs[1];\n uint32View[index+12] = uvs[2];\n uint32View[index+17] = uvs[3];\n\n uint32View[index+3] = uint32View[index+8] = uint32View[index+13] = uint32View[index+18] = tint;\n float32View[index+4] = float32View[index+9] = float32View[index+14] = float32View[index+19] = textureId;\n\n index += 20;\n }\n\n currentGroup.size = i - currentGroup.start;\n\n this.vertexCount++;\n\n if(this.vaoMax <= this.vertexCount)\n {\n this.vaoMax++;\n shader = this.shaders[1];\n this.vertexBuffers[this.vertexCount] = glCore.GLBuffer.createVertexBuffer(gl, null, gl.STREAM_DRAW);\n // build the vao object that will render..\n this.vaos[this.vertexCount] = this.renderer.createVao()\n .addIndex(this.indexBuffer)\n .addAttribute(this.vertexBuffers[this.vertexCount], shader.attributes.aVertexPosition, gl.FLOAT, false, this.vertByteSize, 0)\n .addAttribute(this.vertexBuffers[this.vertexCount], shader.attributes.aTextureCoord, gl.UNSIGNED_SHORT, true, this.vertByteSize, 2 * 4)\n .addAttribute(this.vertexBuffers[this.vertexCount], shader.attributes.aColor, gl.UNSIGNED_BYTE, true, this.vertByteSize, 3 * 4)\n .addAttribute(this.vertexBuffers[this.vertexCount], shader.attributes.aTextureId, gl.FLOAT, false, this.vertByteSize, 4 * 4);\n }\n\n this.vertexBuffers[this.vertexCount].upload(buffer.vertices, 0);\n this.vao = this.vaos[this.vertexCount].bind();\n\n /// render the groups..\n for (i = 0; i < groupCount; i++) {\n\n var group = groups[i];\n var groupTextureCount = group.textureCount;\n shader = this.shaders[groupTextureCount-1];\n\n if(!shader)\n {\n shader = this.shaders[groupTextureCount-1] = generateMultiTextureShader(gl, groupTextureCount);\n //console.log(\"SHADER generated for \" + textureCount + \" textures\")\n }\n\n this.renderer.bindShader(shader);\n\n for (var j = 0; j < groupTextureCount; j++)\n {\n this.renderer.bindTexture(group.textures[j], j);\n }\n\n // set the blend mode..\n this.renderer.state.setBlendMode( group.blend );\n\n gl.drawElements(gl.TRIANGLES, group.size * 6, gl.UNSIGNED_SHORT, group.start * 6 * 2);\n }\n\n // reset elements for the next flush\n this.currentIndex = 0;\n};\n\n/**\n * Starts a new sprite batch.\n *\n */\nSpriteRenderer.prototype.start = function ()\n{\n //this.renderer.bindShader(this.shader);\n //TICK %= 1000;\n};\n\nSpriteRenderer.prototype.stop = function ()\n{\n this.flush();\n this.vao.unbind();\n};\n/**\n * Destroys the SpriteBatch.\n *\n */\nSpriteRenderer.prototype.destroy = function ()\n{\n for (var i = 0; i < this.vaoMax; i++) {\n this.vertexBuffers[i].destroy();\n this.vaos[i].destroy();\n }\n\n this.indexBuffer.destroy();\n\n this.renderer.off('prerender', this.onPrerender, this);\n ObjectRenderer.prototype.destroy.call(this);\n\n for (i = 0; i < this.shaders.length; i++) {\n\n if(this.shaders[i])\n {\n this.shaders[i].destroy();\n }\n }\n\n this.vertexBuffers = null;\n this.vaos = null;\n this.indexBuffer = null;\n this.indices = null;\n\n this.sprites = null;\n\n for (i = 0; i < this.buffers.length; i++) {\n this.buffers[i].destroy();\n }\n\n};\n","var Shader = require('../../Shader');\n\n\nvar fragTemplate = [\n 'varying vec2 vTextureCoord;',\n 'varying vec4 vColor;',\n 'varying float vTextureId;',\n 'uniform sampler2D uSamplers[%count%];',\n\n 'void main(void){',\n 'vec4 color;',\n 'float textureId = floor(vTextureId+0.5);',\n '%forloop%',\n 'gl_FragColor = color * vColor;',\n '}'\n].join('\\n');\n\nfunction generateMultiTextureShader(gl, maxTextures)\n{\n var vertexSrc = \"#define GLSLIFY 1\\nattribute vec2 aVertexPosition;\\nattribute vec2 aTextureCoord;\\nattribute vec4 aColor;\\nattribute float aTextureId;\\n\\nuniform mat3 projectionMatrix;\\n\\nvarying vec2 vTextureCoord;\\nvarying vec4 vColor;\\nvarying float vTextureId;\\n\\nvoid main(void){\\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\\n vTextureCoord = aTextureCoord;\\n vTextureId = aTextureId;\\n vColor = vec4(aColor.rgb * aColor.a, aColor.a);\\n}\\n\";\n var fragmentSrc = fragTemplate;\n\n fragmentSrc = fragmentSrc.replace(/%count%/gi, maxTextures);\n fragmentSrc = fragmentSrc.replace(/%forloop%/gi, generateSampleSrc(maxTextures));\n\n var shader = new Shader(gl, vertexSrc, fragmentSrc);\n\n var sampleValues = [];\n for (var i = 0; i < maxTextures; i++)\n {\n sampleValues[i] = i;\n }\n\n shader.bind();\n shader.uniforms.uSamplers = sampleValues;\n\n return shader;\n}\n\nfunction generateSampleSrc(maxTextures)\n{\n var src = '';\n\n src += '\\n';\n src += '\\n';\n\n for (var i = 0; i < maxTextures; i++)\n {\n if(i > 0)\n {\n src += '\\nelse ';\n }\n\n if(i < maxTextures-1)\n {\n src += 'if(textureId == ' + i + '.0)';\n }\n\n src += '\\n{';\n src += '\\n\\tcolor = texture2D(uSamplers['+i+'], vTextureCoord);';\n src += '\\n}';\n }\n\n src += '\\n';\n src += '\\n';\n\n return src;\n}\n\n\n\nmodule.exports = generateMultiTextureShader;\n","var Sprite = require('../sprites/Sprite'),\n Texture = require('../textures/Texture'),\n math = require('../math'),\n utils = require('../utils'),\n CONST = require('../const'),\n TextStyle = require('./TextStyle');\n\n var defaultDestroyOptions = {\n texture:true,\n children:false,\n baseTexture:true\n };\n/**\n * A Text Object will create a line or multiple lines of text. To split a line you can use '\\n' in your text string,\n * or add a wordWrap property set to true and and wordWrapWidth property with a value in the style object.\n *\n * A Text can be created directly from a string and a style object\n *\n * ```js\n * var text = new PIXI.Text('This is a pixi text',{font : '24px Arial', fill : 0xff1010, align : 'center'});\n * ```\n *\n * @class\n * @extends PIXI.Sprite\n * @memberof PIXI\n * @param text {string} The string that you would like the text to display\n * @param [style] {object|PIXI.TextStyle} The style parameters\n */\nfunction Text(text, style)\n{\n /**\n * The canvas element that everything is drawn to\n *\n * @member {HTMLCanvasElement}\n */\n this.canvas = document.createElement('canvas');\n\n /**\n * The canvas 2d context that everything is drawn with\n * @member {HTMLCanvasElement}\n */\n this.context = this.canvas.getContext('2d');\n\n /**\n * The resolution / device pixel ratio of the canvas. This is set automatically by the renderer.\n * @member {number}\n * @default 1\n */\n this.resolution = CONST.RESOLUTION;\n\n /**\n * Private tracker for the current text.\n *\n * @member {string}\n * @private\n */\n this._text = null;\n\n /**\n * Private tracker for the current style.\n *\n * @member {object}\n * @private\n */\n this._style = null;\n /**\n * Private listener to track style changes.\n *\n * @member {Function}\n * @private\n */\n this._styleListener = null;\n\n /**\n * Private tracker for the current font.\n *\n * @member {string}\n * @private\n */\n this._font = '';\n\n var texture = Texture.fromCanvas(this.canvas);\n texture.orig = new math.Rectangle();\n texture.trim = new math.Rectangle();\n Sprite.call(this, texture);\n\n this.text = text;\n this.style = style;\n\n this.localStyleID = -1;\n}\n\n// constructor\nText.prototype = Object.create(Sprite.prototype);\nText.prototype.constructor = Text;\nmodule.exports = Text;\n\nText.fontPropertiesCache = {};\nText.fontPropertiesCanvas = document.createElement('canvas');\nText.fontPropertiesContext = Text.fontPropertiesCanvas.getContext('2d');\n\nObject.defineProperties(Text.prototype, {\n /**\n * The width of the Text, setting this will actually modify the scale to achieve the value set\n *\n * @member {number}\n * @memberof PIXI.Text#\n */\n width: {\n get: function ()\n {\n this.updateText(true);\n\n return Math.abs(this.scale.x) * this.texture.orig.width;\n },\n set: function (value)\n {\n this.updateText(true);\n\n var sign = utils.sign(this.scale.x) || 1;\n this.scale.x = sign * value / this.texture.orig.width;\n this._width = value;\n }\n },\n\n /**\n * The height of the Text, setting this will actually modify the scale to achieve the value set\n *\n * @member {number}\n * @memberof PIXI.Text#\n */\n height: {\n get: function ()\n {\n this.updateText(true);\n\n return Math.abs(this.scale.y) * this._texture.orig.height;\n },\n set: function (value)\n {\n this.updateText(true);\n\n var sign = utils.sign(this.scale.x) || 1;\n this.scale.x = sign * value / this.texture.orig.width;\n this._width = value;\n }\n },\n\n /**\n * Set the style of the text. Set up an event listener to listen for changes on the style object and mark the text as dirty.\n *\n * @member {object|PIXI.TextStyle}\n * @memberof PIXI.Text#\n */\n style: {\n get: function ()\n {\n return this._style;\n },\n set: function (style)\n {\n\n style = style || {};\n if (style instanceof TextStyle)\n {\n this._style = style;\n }\n else\n {\n this._style = new TextStyle(style);\n }\n\n this.localStyleID = -1;\n this.dirty = true;\n }\n },\n\n /**\n * Set the copy for the text object. To split a line you can use '\\n'.\n *\n * @member {string}\n * @memberof PIXI.Text#\n */\n text: {\n get: function()\n {\n return this._text;\n },\n set: function (text){\n\n text = text || ' ';\n text = text.toString();\n\n if (this._text === text)\n {\n return;\n }\n this._text = text;\n this.dirty = true;\n }\n }\n});\n\n/**\n * Renders text and updates it when needed\n * @param respectDirty {boolean} Whether to abort updating the text if the Text isn't dirty and the function is called.\n * @private\n */\nText.prototype.updateText = function (respectDirty)\n{\n var style = this._style;\n\n // check if style has changed..\n if(this.localStyleID !== style.styleID)\n {\n this.dirty = true;\n this.localStyleID = style.styleID;\n }\n\n if (!this.dirty && respectDirty) {\n return;\n }\n\n // build canvas api font setting from invididual components. Convert a numeric style.fontSize to px\n var fontSizeString = (typeof style.fontSize === 'number') ? style.fontSize + 'px' : style.fontSize;\n this._font = style.fontStyle + ' ' + style.fontVariant + ' ' + style.fontWeight + ' ' + fontSizeString + ' ' + style.fontFamily;\n\n this.context.font = this._font;\n\n // word wrap\n // preserve original text\n var outputText = style.wordWrap ? this.wordWrap(this._text) : this._text;\n\n // split text into lines\n var lines = outputText.split(/(?:\\r\\n|\\r|\\n)/);\n\n // calculate text width\n var lineWidths = new Array(lines.length);\n var maxLineWidth = 0;\n var fontProperties = this.determineFontProperties(this._font);\n\n var i;\n for (i = 0; i < lines.length; i++)\n {\n var lineWidth = this.context.measureText(lines[i]).width + ((lines[i].length - 1) * style.letterSpacing);\n lineWidths[i] = lineWidth;\n maxLineWidth = Math.max(maxLineWidth, lineWidth);\n }\n\n var width = maxLineWidth + style.strokeThickness;\n if (style.dropShadow)\n {\n width += style.dropShadowDistance;\n }\n\n width += style.padding * 2;\n\n this.canvas.width = Math.ceil( ( width + this.context.lineWidth ) * this.resolution );\n\n // calculate text height\n var lineHeight = this.style.lineHeight || fontProperties.fontSize + style.strokeThickness;\n\n var height = Math.max(lineHeight, fontProperties.fontSize + style.strokeThickness) + (lines.length - 1) * lineHeight;\n if (style.dropShadow)\n {\n height += style.dropShadowDistance;\n }\n\n this.canvas.height = Math.ceil( ( height + this._style.padding * 2 ) * this.resolution );\n\n this.context.scale( this.resolution, this.resolution);\n\n if (navigator.isCocoonJS)\n {\n this.context.clearRect(0, 0, this.canvas.width, this.canvas.height);\n\n }\n\n// this.context.fillStyle=\"#FF0000\";\n// this.context.fillRect(0, 0, this.canvas.width, this.canvas.height);\n\n this.context.font = this._font;\n this.context.strokeStyle = style.stroke;\n this.context.lineWidth = style.strokeThickness;\n this.context.textBaseline = style.textBaseline;\n this.context.lineJoin = style.lineJoin;\n this.context.miterLimit = style.miterLimit;\n\n var linePositionX;\n var linePositionY;\n\n if (style.dropShadow)\n {\n if (style.dropShadowBlur > 0) {\n this.context.shadowColor = style.dropShadowColor;\n this.context.shadowBlur = style.dropShadowBlur;\n } else {\n this.context.fillStyle = style.dropShadowColor;\n }\n\n var xShadowOffset = Math.cos(style.dropShadowAngle) * style.dropShadowDistance;\n var yShadowOffset = Math.sin(style.dropShadowAngle) * style.dropShadowDistance;\n\n for (i = 0; i < lines.length; i++)\n {\n linePositionX = style.strokeThickness / 2;\n linePositionY = (style.strokeThickness / 2 + i * lineHeight) + fontProperties.ascent;\n\n if (style.align === 'right')\n {\n linePositionX += maxLineWidth - lineWidths[i];\n }\n else if (style.align === 'center')\n {\n linePositionX += (maxLineWidth - lineWidths[i]) / 2;\n }\n\n if (style.fill)\n {\n this.drawLetterSpacing(lines[i], linePositionX + xShadowOffset + style.padding, linePositionY + yShadowOffset + style.padding);\n\n if (style.stroke && style.strokeThickness)\n {\n this.context.strokeStyle = style.dropShadowColor;\n this.drawLetterSpacing(lines[i], linePositionX + xShadowOffset + style.padding, linePositionY + yShadowOffset + style.padding, true);\n this.context.strokeStyle = style.stroke;\n\t\t\t }\n }\n }\n }\n\n //set canvas text styles\n this.context.fillStyle = this._generateFillStyle(style, lines);\n\n //draw lines line by line\n for (i = 0; i < lines.length; i++)\n {\n linePositionX = style.strokeThickness / 2;\n linePositionY = (style.strokeThickness / 2 + i * lineHeight) + fontProperties.ascent;\n\n if (style.align === 'right')\n {\n linePositionX += maxLineWidth - lineWidths[i];\n }\n else if (style.align === 'center')\n {\n linePositionX += (maxLineWidth - lineWidths[i]) / 2;\n }\n\n if (style.stroke && style.strokeThickness)\n {\n this.drawLetterSpacing(lines[i], linePositionX + style.padding, linePositionY + style.padding, true);\n }\n\n if (style.fill)\n {\n this.drawLetterSpacing(lines[i], linePositionX + style.padding, linePositionY + style.padding);\n }\n }\n\n this.updateTexture();\n};\n\n/**\n * Render the text with letter-spacing.\n * @param {string} text - The text to draw\n * @param {number} x - Horizontal position to draw the text\n * @param {number} y - Vertical position to draw the text\n * @param {boolean} isStroke - Is this drawing for the outside stroke of the text? If not, it's for the inside fill\n * @private\n */\nText.prototype.drawLetterSpacing = function(text, x, y, isStroke)\n{\n var style = this._style;\n\n // letterSpacing of 0 means normal\n var letterSpacing = style.letterSpacing;\n\n if (letterSpacing === 0)\n {\n if (isStroke)\n {\n this.context.strokeText(text, x, y);\n }\n else\n {\n this.context.fillText(text, x, y);\n }\n return;\n }\n\n var characters = String.prototype.split.call(text, ''),\n index = 0,\n current,\n currentPosition = x;\n\n while (index < text.length)\n {\n current = characters[index++];\n if (isStroke)\n {\n this.context.strokeText(current, currentPosition, y);\n }\n else\n {\n this.context.fillText(current, currentPosition, y);\n }\n currentPosition += this.context.measureText(current).width + letterSpacing;\n }\n};\n\n/**\n * Updates texture size based on canvas size\n *\n * @private\n */\nText.prototype.updateTexture = function ()\n{\n var texture = this._texture;\n var style = this._style;\n\n texture.baseTexture.hasLoaded = true;\n texture.baseTexture.resolution = this.resolution;\n\n texture.baseTexture.realWidth = this.canvas.width;\n texture.baseTexture.realHeight = this.canvas.height;\n texture.baseTexture.width = this.canvas.width / this.resolution;\n texture.baseTexture.height = this.canvas.height / this.resolution;\n texture.trim.width = texture._frame.width = this.canvas.width / this.resolution;\n texture.trim.height = texture._frame.height = this.canvas.height / this.resolution;\n\n texture.trim.x = -style.padding;\n texture.trim.y = -style.padding;\n\n texture.orig.width = texture._frame.width;\n texture.orig.height = texture._frame.height - style.padding*2;\n\n //call sprite onTextureUpdate to update scale if _width or _height were set\n this._onTextureUpdate();\n\n texture.baseTexture.emit('update', texture.baseTexture);\n\n this.dirty = false;\n};\n\n/**\n * Renders the object using the WebGL renderer\n *\n * @param renderer {PIXI.WebGLRenderer} The renderer\n */\nText.prototype.renderWebGL = function (renderer)\n{\n if(this.resolution !== renderer.resolution)\n {\n this.resolution = renderer.resolution;\n this.dirty = true;\n }\n\n this.updateText(true);\n\n Sprite.prototype.renderWebGL.call(this, renderer);\n};\n\n/**\n * Renders the object using the Canvas renderer\n *\n * @param renderer {PIXI.CanvasRenderer} The renderer\n * @private\n */\nText.prototype._renderCanvas = function (renderer)\n{\n if(this.resolution !== renderer.resolution)\n {\n this.resolution = renderer.resolution;\n this.dirty = true;\n }\n\n this.updateText(true);\n\n Sprite.prototype._renderCanvas.call(this, renderer);\n};\n\n/**\n * Calculates the ascent, descent and fontSize of a given fontStyle\n *\n * @param fontStyle {string} String representing the style of the font\n * @return {Object} Font properties object\n * @private\n */\nText.prototype.determineFontProperties = function (fontStyle)\n{\n var properties = Text.fontPropertiesCache[fontStyle];\n\n if (!properties)\n {\n properties = {};\n\n var canvas = Text.fontPropertiesCanvas;\n var context = Text.fontPropertiesContext;\n\n context.font = fontStyle;\n\n var width = Math.ceil(context.measureText('|MÉq').width);\n var baseline = Math.ceil(context.measureText('M').width);\n var height = 2 * baseline;\n\n baseline = baseline * 1.4 | 0;\n\n canvas.width = width;\n canvas.height = height;\n\n context.fillStyle = '#f00';\n context.fillRect(0, 0, width, height);\n\n context.font = fontStyle;\n\n context.textBaseline = 'alphabetic';\n context.fillStyle = '#000';\n context.fillText('|MÉq', 0, baseline);\n\n var imagedata = context.getImageData(0, 0, width, height).data;\n var pixels = imagedata.length;\n var line = width * 4;\n\n var i, j;\n\n var idx = 0;\n var stop = false;\n\n // ascent. scan from top to bottom until we find a non red pixel\n for (i = 0; i < baseline; i++)\n {\n for (j = 0; j < line; j += 4)\n {\n if (imagedata[idx + j] !== 255)\n {\n stop = true;\n break;\n }\n }\n if (!stop)\n {\n idx += line;\n }\n else\n {\n break;\n }\n }\n\n properties.ascent = baseline - i;\n\n idx = pixels - line;\n stop = false;\n\n // descent. scan from bottom to top until we find a non red pixel\n for (i = height; i > baseline; i--)\n {\n for (j = 0; j < line; j += 4)\n {\n if (imagedata[idx + j] !== 255)\n {\n stop = true;\n break;\n }\n }\n if (!stop)\n {\n idx -= line;\n }\n else\n {\n break;\n }\n }\n\n properties.descent = i - baseline;\n properties.fontSize = properties.ascent + properties.descent;\n\n Text.fontPropertiesCache[fontStyle] = properties;\n }\n\n return properties;\n};\n\n/**\n * Applies newlines to a string to have it optimally fit into the horizontal\n * bounds set by the Text object's wordWrapWidth property.\n *\n * @param text {string} String to apply word wrapping to\n * @return {string} New string with new lines applied where required\n * @private\n */\nText.prototype.wordWrap = function (text)\n{\n // Greedy wrapping algorithm that will wrap words as the line grows longer\n // than its horizontal bounds.\n var result = '';\n var lines = text.split('\\n');\n var wordWrapWidth = this._style.wordWrapWidth;\n for (var i = 0; i < lines.length; i++)\n {\n var spaceLeft = wordWrapWidth;\n var words = lines[i].split(' ');\n for (var j = 0; j < words.length; j++)\n {\n var wordWidth = this.context.measureText(words[j]).width;\n if (this._style.breakWords && wordWidth > wordWrapWidth)\n {\n // Word should be split in the middle\n var characters = words[j].split('');\n for (var c = 0; c < characters.length; c++)\n {\n var characterWidth = this.context.measureText(characters[c]).width;\n if (characterWidth > spaceLeft)\n {\n result += '\\n' + characters[c];\n spaceLeft = wordWrapWidth - characterWidth;\n }\n else\n {\n if (c === 0)\n {\n result += ' ';\n }\n result += characters[c];\n spaceLeft -= characterWidth;\n }\n }\n }\n else\n {\n var wordWidthWithSpace = wordWidth + this.context.measureText(' ').width;\n if (j === 0 || wordWidthWithSpace > spaceLeft)\n {\n // Skip printing the newline if it's the first word of the line that is\n // greater than the word wrap width.\n if (j > 0)\n {\n result += '\\n';\n }\n result += words[j];\n spaceLeft = wordWrapWidth - wordWidth;\n }\n else\n {\n spaceLeft -= wordWidthWithSpace;\n result += ' ' + words[j];\n }\n }\n }\n\n if (i < lines.length-1)\n {\n result += '\\n';\n }\n }\n return result;\n};\n\n/**\n * calculates the bounds of the Text as a rectangle. The bounds calculation takes the worldTransform into account.\n */\nText.prototype._calculateBounds = function ()\n{\n this.updateText(true);\n this.calculateVertices();\n // if we have already done this on THIS frame.\n this._bounds.addQuad(this.vertexData);\n};\n\n/**\n * Method to be called upon a TextStyle change.\n * @private\n */\nText.prototype._onStyleChange = function ()\n{\n this.dirty = true;\n};\n\n/**\n * Generates the fill style. Can automatically generate a gradient based on the fill style being an array\n * @return string|Number|CanvasGradient\n * @private\n */\nText.prototype._generateFillStyle = function (style, lines)\n{\n if (!Array.isArray(style.fill))\n {\n return style.fill;\n }\n else\n {\n // the gradient will be evenly spaced out according to how large the array is.\n // ['#FF0000', '#00FF00', '#0000FF'] would created stops at 0.25, 0.5 and 0.75\n var i;\n var gradient;\n var totalIterations;\n var currentIteration;\n var stop;\n\n var width = this.canvas.width / this.resolution;\n var height = this.canvas.height / this.resolution;\n\n if (style.fillGradientType === CONST.TEXT_GRADIENT.LINEAR_VERTICAL)\n {\n // start the gradient at the top center of the canvas, and end at the bottom middle of the canvas\n gradient = this.context.createLinearGradient(width / 2, 0, width / 2, height);\n\n // we need to repeat the gradient so that each invididual line of text has the same vertical gradient effect\n // ['#FF0000', '#00FF00', '#0000FF'] over 2 lines would create stops at 0.125, 0.25, 0.375, 0.625, 0.75, 0.875\n totalIterations = ( style.fill.length + 1 ) * lines.length;\n currentIteration = 0;\n for (i = 0; i < lines.length; i++)\n {\n currentIteration += 1;\n for (var j = 0; j < style.fill.length; j++)\n {\n stop = (currentIteration / totalIterations);\n gradient.addColorStop(stop, style.fill[j]);\n currentIteration++;\n }\n }\n }\n else\n {\n // start the gradient at the center left of the canvas, and end at the center right of the canvas\n gradient = this.context.createLinearGradient(0, height / 2, width, height / 2);\n\n // can just evenly space out the gradients in this case, as multiple lines makes no difference to an even left to right gradient\n totalIterations = style.fill.length + 1;\n currentIteration = 1;\n\n for (i = 0; i < style.fill.length; i++)\n {\n stop = currentIteration / totalIterations;\n gradient.addColorStop(stop, style.fill[i]);\n currentIteration++;\n }\n }\n\n return gradient;\n }\n};\n\n/**\n * Destroys this text object.\n * Note* Unlike a Sprite, a Text object will automatically destroy its baseTexture and texture as\n * the majorety of the time the texture will not be shared with any other Sprites.\n *\n * @param [options] {object|boolean} Options parameter. A boolean will act as if all options have been set to that value\n * @param [options.children=false] {boolean} if set to true, all the children will have their destroy\n * method called as well. 'options' will be passed on to those calls.\n * @param [options.texture=true] {boolean} Should it destroy the current texture of the sprite as well\n * @param [options.baseTexture=true] {boolean} Should it destroy the base texture of the sprite as well\n */\nText.prototype.destroy = function (options)\n{\n if (typeof options === 'boolean') {\n options = { children: options };\n }\n\n options = Object.assign({}, defaultDestroyOptions, options);\n\n Sprite.prototype.destroy.call(this, options);\n\n // make sure to reset the the context and canvas.. dont want this hanging around in memory!\n this.context = null;\n this.canvas = null;\n\n this._style = null;\n};\n","var CONST = require('../const'),\n utils = require('../utils');\n\n/**\n * A TextStyle Object decorates a Text Object. It can be shared between\n * multiple Text objects. Changing the style will update all text objects using it.\n *\n * @class\n * @memberof PIXI\n * @param [style] {object} The style parameters\n * @param [style.align='left'] {string} Alignment for multiline text ('left', 'center' or 'right'), does not affect single line text\n * @param [style.breakWords=false] {boolean} Indicates if lines can be wrapped within words, it needs wordWrap to be set to true\n * @param [style.dropShadow=false] {boolean} Set a drop shadow for the text\n * @param [style.dropShadowAngle=Math.PI/6] {number} Set a angle of the drop shadow\n * @param [style.dropShadowBlur=0] {number} Set a shadow blur radius\n * @param [style.dropShadowColor='#000000'] {string} A fill style to be used on the dropshadow e.g 'red', '#00FF00'\n * @param [style.dropShadowDistance=5] {number} Set a distance of the drop shadow\n * @param [style.fill='black'] {string|string[]|number|number[]|CanvasGradient|CanvasPattern} A canvas fillstyle that will be used on the\n * text e.g 'red', '#00FF00'. Can be an array to create a gradient eg ['#000000','#FFFFFF'] @see {@link https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillStyle|MDN}\n * @param [style.fillGradientType=PIXI.TEXT_GRADIENT.LINEAR_VERTICAL] {number} If fills styles are supplied, this can change the type/direction of the gradient. See {@link PIXI.TEXT_GRADIENT} for possible values\n * @param [style.fontFamily='Arial'] {string} The font family\n * @param [style.fontSize=26] {number|string} The font size (as a number it converts to px, but as a string, equivalents are '26px','20pt','160%' or '1.6em')\n * @param [style.fontStyle='normal'] {string} The font style ('normal', 'italic' or 'oblique')\n * @param [style.fontVariant='normal'] {string} The font variant ('normal' or 'small-caps')\n * @param [style.fontWeight='normal'] {string} The font weight ('normal', 'bold', 'bolder', 'lighter' and '100', '200', '300', '400', '500', '600', '700', 800' or '900')\n * @param [style.letterSpacing=0] {number} The amount of spacing between letters, default is 0\n * @param [style.lineHeight] {number} The line height, a number that represents the vertical space that a letter uses\n * @param [style.lineJoin='miter'] {string} The lineJoin property sets the type of corner created, it can resolve\n * spiked text issues. Default is 'miter' (creates a sharp corner).\n * @param [style.miterLimit=10] {number} The miter limit to use when using the 'miter' lineJoin mode. This can reduce\n * or increase the spikiness of rendered text.\n * @param [style.padding=0] {number} Occasionally some fonts are cropped on top or bottom. Adding some padding will\n * prevent this from happening by adding padding to the top and bottom of text height.\n * @param [style.stroke='black'] {string|number} A canvas fillstyle that will be used on the text stroke e.g 'blue', '#FCFF00'\n * @param [style.strokeThickness=0] {number} A number that represents the thickness of the stroke. Default is 0 (no stroke)\n * @param [style.textBaseline='alphabetic'] {string} The baseline of the text that is rendered.\n * @param [style.wordWrap=false] {boolean} Indicates if word wrap should be used\n * @param [style.wordWrapWidth=100] {number} The width at which text will wrap, it needs wordWrap to be set to true\n */\nfunction TextStyle(style)\n{\n this.styleID = 0;\n Object.assign(this, this._defaults, style);\n}\n\nTextStyle.prototype.constructor = TextStyle;\nmodule.exports = TextStyle;\n\n// Default settings. Explained in the constructor.\nTextStyle.prototype._defaults = {\n align: 'left',\n breakWords: false,\n dropShadow: false,\n dropShadowAngle: Math.PI / 6,\n dropShadowBlur: 0,\n dropShadowColor: '#000000',\n dropShadowDistance: 5,\n fill: 'black',\n fillGradientType: CONST.TEXT_GRADIENT.LINEAR_VERTICAL,\n fontFamily: 'Arial',\n fontSize: 26,\n fontStyle: 'normal',\n fontVariant: 'normal',\n fontWeight: 'normal',\n letterSpacing: 0,\n lineHeight: 0,\n lineJoin: 'miter',\n miterLimit: 10,\n padding: 0,\n stroke: 'black',\n strokeThickness: 0,\n textBaseline: 'alphabetic',\n wordWrap: false,\n wordWrapWidth: 100\n};\n\n/**\n * Creates a new TextStyle object with the same values as this one.\n * Note that the only the properties of the object are cloned.\n *\n * @return {PIXI.TextStyle} New cloned TextStyle object\n */\nTextStyle.prototype.clone = function ()\n{\n var clonedProperties = {};\n for (var key in this._defaults)\n {\n clonedProperties[key] = this[key];\n }\n return new TextStyle(clonedProperties);\n};\n\n/**\n * Resets all properties to the defaults specified in TextStyle.prototype._default\n */\nTextStyle.prototype.reset = function ()\n{\n Object.assign(this, this._defaults);\n};\n\n/**\n * Create setters and getters for each of the style properties. Converts colors where necessary.\n */\nObject.defineProperties(TextStyle.prototype, {\n align: {\n get: function ()\n {\n return this._align;\n },\n set: function (align)\n {\n if (this._align !== align)\n {\n this._align = align;\n this.styleID++;\n }\n }\n },\n\n breakWords: {\n get: function ()\n {\n return this._breakWords;\n },\n set: function (breakWords)\n {\n if (this._breakWords !== breakWords)\n {\n this._breakWords = breakWords;\n this.styleID++;\n }\n }\n },\n\n dropShadow: {\n get: function ()\n {\n return this._dropShadow;\n },\n set: function (dropShadow)\n {\n if (this._dropShadow !== dropShadow)\n {\n this._dropShadow = dropShadow;\n this.styleID++;\n }\n }\n },\n\n dropShadowAngle: {\n get: function ()\n {\n return this._dropShadowAngle;\n },\n set: function (dropShadowAngle)\n {\n if (this._dropShadowAngle !== dropShadowAngle)\n {\n this._dropShadowAngle = dropShadowAngle;\n this.styleID++;\n }\n }\n },\n\n dropShadowBlur: {\n get: function ()\n {\n return this._dropShadowBlur;\n },\n set: function (dropShadowBlur)\n {\n if (this._dropShadowBlur !== dropShadowBlur)\n {\n this._dropShadowBlur = dropShadowBlur;\n this.styleID++;\n }\n }\n },\n\n dropShadowColor: {\n get: function ()\n {\n return this._dropShadowColor;\n },\n set: function (dropShadowColor)\n {\n var outputColor = getColor(dropShadowColor);\n if (this._dropShadowColor !== outputColor)\n {\n this._dropShadowColor = outputColor;\n this.styleID++;\n }\n }\n },\n\n dropShadowDistance: {\n get: function ()\n {\n return this._dropShadowDistance;\n },\n set: function (dropShadowDistance)\n {\n if (this._dropShadowDistance !== dropShadowDistance)\n {\n this._dropShadowDistance = dropShadowDistance;\n this.styleID++;\n }\n }\n },\n\n fill: {\n get: function ()\n {\n return this._fill;\n },\n set: function (fill)\n {\n var outputColor = getColor(fill);\n if (this._fill !== outputColor)\n {\n this._fill = outputColor;\n this.styleID++;\n }\n }\n },\n\n fillGradientType: {\n get: function ()\n {\n return this._fillGradientType;\n },\n set: function (fillGradientType)\n {\n if (this._fillGradientType !== fillGradientType)\n {\n this._fillGradientType = fillGradientType;\n this.styleID++;\n }\n }\n },\n\n fontFamily: {\n get: function ()\n {\n return this._fontFamily;\n },\n set: function (fontFamily)\n {\n if (this.fontFamily !== fontFamily)\n {\n this._fontFamily = fontFamily;\n this.styleID++;\n }\n }\n },\n\n fontSize: {\n get: function ()\n {\n return this._fontSize;\n },\n set: function (fontSize)\n {\n if (this._fontSize !== fontSize)\n {\n this._fontSize = fontSize;\n this.styleID++;\n }\n }\n },\n\n fontStyle: {\n get: function ()\n {\n return this._fontStyle;\n },\n set: function (fontStyle)\n {\n if (this._fontStyle !== fontStyle)\n {\n this._fontStyle = fontStyle;\n this.styleID++;\n }\n }\n },\n\n fontVariant: {\n get: function ()\n {\n return this._fontVariant;\n },\n set: function (fontVariant)\n {\n if (this._fontVariant !== fontVariant)\n {\n this._fontVariant = fontVariant;\n this.styleID++;\n }\n }\n },\n\n fontWeight: {\n get: function ()\n {\n return this._fontWeight;\n },\n set: function (fontWeight)\n {\n if (this._fontWeight !== fontWeight)\n {\n this._fontWeight = fontWeight;\n this.styleID++;\n }\n }\n },\n\n letterSpacing: {\n get: function ()\n {\n return this._letterSpacing;\n },\n set: function (letterSpacing)\n {\n if (this._letterSpacing !== letterSpacing)\n {\n this._letterSpacing = letterSpacing;\n this.styleID++;\n }\n }\n },\n\n lineHeight: {\n get: function ()\n {\n return this._lineHeight;\n },\n set: function (lineHeight)\n {\n if (this._lineHeight !== lineHeight)\n {\n this._lineHeight = lineHeight;\n this.styleID++;\n }\n }\n },\n\n lineJoin: {\n get: function ()\n {\n return this._lineJoin;\n },\n set: function (lineJoin)\n {\n if (this._lineJoin !== lineJoin)\n {\n this._lineJoin = lineJoin;\n this.styleID++;\n }\n }\n },\n\n miterLimit: {\n get: function ()\n {\n return this._miterLimit;\n },\n set: function (miterLimit)\n {\n if (this._miterLimit !== miterLimit)\n {\n this._miterLimit = miterLimit;\n this.styleID++;\n }\n }\n },\n\n padding: {\n get: function ()\n {\n return this._padding;\n },\n set: function (padding)\n {\n if (this._padding !== padding)\n {\n this._padding = padding;\n this.styleID++;\n }\n }\n },\n\n stroke: {\n get: function ()\n {\n return this._stroke;\n },\n set: function (stroke)\n {\n var outputColor = getColor(stroke);\n if (this._stroke !== outputColor)\n {\n this._stroke = outputColor;\n this.styleID++;\n }\n }\n },\n\n strokeThickness: {\n get: function ()\n {\n return this._strokeThickness;\n },\n set: function (strokeThickness)\n {\n if (this._strokeThickness !== strokeThickness)\n {\n this._strokeThickness = strokeThickness;\n this.styleID++;\n }\n }\n },\n\n textBaseline: {\n get: function ()\n {\n return this._textBaseline;\n },\n set: function (textBaseline)\n {\n if (this._textBaseline !== textBaseline)\n {\n this._textBaseline = textBaseline;\n this.styleID++;\n }\n }\n },\n\n wordWrap: {\n get: function ()\n {\n return this._wordWrap;\n },\n set: function (wordWrap)\n {\n if (this._wordWrap !== wordWrap)\n {\n this._wordWrap = wordWrap;\n this.styleID++;\n }\n }\n },\n\n wordWrapWidth: {\n get: function ()\n {\n return this._wordWrapWidth;\n },\n set: function (wordWrapWidth)\n {\n if (this._wordWrapWidth !== wordWrapWidth)\n {\n this._wordWrapWidth = wordWrapWidth;\n this.styleID++;\n }\n }\n }\n});\n\n/**\n * Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string.\n *\n * @return {string} The color as a string.\n */\nfunction getColor(color)\n{\n if (typeof color === 'number')\n {\n return utils.hex2string(color);\n }\n else if (Array.isArray(color))\n {\n for (var i = 0; i < color.length; ++i)\n {\n if (typeof color[i] === 'number')\n {\n color[i] = utils.hex2string(color[i]);\n }\n }\n }\n\n return color;\n}\n","var BaseTexture = require('./BaseTexture'),\n CONST = require('../const');\n\n/**\n * A BaseRenderTexture is a special texture that allows any Pixi display object to be rendered to it.\n *\n * __Hint__: All DisplayObjects (i.e. Sprites) that render to a BaseRenderTexture should be preloaded\n * otherwise black rectangles will be drawn instead.\n *\n * A BaseRenderTexture takes a snapshot of any Display Object given to its render method. The position\n * and rotation of the given Display Objects is ignored. For example:\n *\n * ```js\n * var renderer = PIXI.autoDetectRenderer(1024, 1024, { view: canvas, ratio: 1 });\n * var BaserenderTexture = new PIXI.BaseRenderTexture(renderer, 800, 600);\n * var sprite = PIXI.Sprite.fromImage(\"spinObj_01.png\");\n *\n * sprite.position.x = 800/2;\n * sprite.position.y = 600/2;\n * sprite.anchor.x = 0.5;\n * sprite.anchor.y = 0.5;\n *\n * BaserenderTexture.render(sprite);\n * ```\n *\n * The Sprite in this case will be rendered to a position of 0,0. To render this sprite at its actual\n * position a Container should be used:\n *\n * ```js\n * var doc = new PIXI.Container();\n *\n * doc.addChild(sprite);\n *\n * var baseRenderTexture = new PIXI.BaserenderTexture(100, 100);\n * var renderTexture = new PIXI.RenderTexture(baseRenderTexture);\n *\n * renderer.render(doc, renderTexture); // Renders to center of RenderTexture\n * ```\n *\n * @class\n * @extends PIXI.BaseTexture\n * @memberof PIXI\n * @param [width=100] {number} The width of the base render texture\n * @param [height=100] {number} The height of the base render texture\n * @param [scaleMode=PIXI.SCALE_MODES.DEFAULT] {number} See {@link PIXI.SCALE_MODES} for possible values\n * @param [resolution=1] {number} The resolution / device pixel ratio of the texture being generated\n */\nfunction BaseRenderTexture(width, height, scaleMode, resolution)\n{\n BaseTexture.call(this, null, scaleMode);\n\n this.resolution = resolution || CONST.RESOLUTION;\n\n this.width = width || 100;\n this.height = height || 100;\n\n this.realWidth = this.width * this.resolution;\n this.realHeight = this.height * this.resolution;\n\n this.scaleMode = scaleMode || CONST.SCALE_MODES.DEFAULT;\n this.hasLoaded = true;\n\n /**\n * A map of renderer IDs to webgl renderTargets\n *\n * @member {object}\n * @private\n */\n this._glRenderTargets = [];\n\n /**\n * A reference to the canvas render target (we only need one as this can be shared accross renderers)\n *\n * @member {object}\n * @private\n */\n this._canvasRenderTarget = null;\n\n /**\n * This will let the renderer know if the texture is valid. If it's not then it cannot be rendered.\n *\n * @member {boolean}\n */\n this.valid = false;\n}\n\nBaseRenderTexture.prototype = Object.create(BaseTexture.prototype);\nBaseRenderTexture.prototype.constructor = BaseRenderTexture;\nmodule.exports = BaseRenderTexture;\n\n/**\n * Resizes the BaseRenderTexture.\n *\n * @param width {number} The width to resize to.\n * @param height {number} The height to resize to.\n */\nBaseRenderTexture.prototype.resize = function (width, height)\n{\n\n if (width === this.width && height === this.height)\n {\n return;\n }\n\n this.valid = (width > 0 && height > 0);\n\n this.width = width;\n this.height = height;\n\n this.realWidth = this.width * this.resolution;\n this.realHeight = this.height * this.resolution;\n\n if (!this.valid)\n {\n return;\n }\n\n this.emit('update', this);\n\n};\n\n/**\n * Destroys this texture\n *\n */\nBaseRenderTexture.prototype.destroy = function ()\n{\n BaseTexture.prototype.destroy.call(this, true);\n this.renderer = null;\n};\n\n","var utils = require('../utils'),\n CONST = require('../const'),\n EventEmitter = require('eventemitter3'),\n determineCrossOrigin = require('../utils/determineCrossOrigin'),\n bitTwiddle = require('bit-twiddle');\n\n/**\n * A texture stores the information that represents an image. All textures have a base texture.\n *\n * @class\n * @memberof PIXI\n * @param [source ]{HTMLImageElement|HTMLCanvasElement} the source object of the texture.\n * @param [scaleMode=PIXI.SCALE_MODES.DEFAULT] {number} See {@link PIXI.SCALE_MODES} for possible values\n * @param [resolution=1] {number} The resolution / device pixel ratio of the texture\n */\nfunction BaseTexture(source, scaleMode, resolution)\n{\n EventEmitter.call(this);\n\n this.uid = utils.uid();\n\n this.touched = 0;\n\n /**\n * The resolution / device pixel ratio of the texture\n *\n * @member {number}\n * @default 1\n */\n this.resolution = resolution || CONST.RESOLUTION;\n\n /**\n * The width of the base texture set when the image has loaded\n *\n * @member {number}\n * @readonly\n */\n this.width = 100;\n\n /**\n * The height of the base texture set when the image has loaded\n *\n * @member {number}\n * @readonly\n */\n this.height = 100;\n\n // TODO docs\n // used to store the actual dimensions of the source\n /**\n * Used to store the actual width of the source of this texture\n *\n * @member {number}\n * @readonly\n */\n this.realWidth = 100;\n /**\n * Used to store the actual height of the source of this texture\n *\n * @member {number}\n * @readonly\n */\n this.realHeight = 100;\n\n /**\n * The scale mode to apply when scaling this texture\n *\n * @member {number}\n * @default PIXI.SCALE_MODES.DEFAULT\n * @see PIXI.SCALE_MODES\n */\n this.scaleMode = scaleMode || CONST.SCALE_MODES.DEFAULT;\n\n /**\n * Set to true once the base texture has successfully loaded.\n *\n * This is never true if the underlying source fails to load or has no texture data.\n *\n * @member {boolean}\n * @readonly\n */\n this.hasLoaded = false;\n\n /**\n * Set to true if the source is currently loading.\n *\n * If an Image source is loading the 'loaded' or 'error' event will be\n * dispatched when the operation ends. An underyling source that is\n * immediately-available bypasses loading entirely.\n *\n * @member {boolean}\n * @readonly\n */\n this.isLoading = false;\n\n /**\n * The image source that is used to create the texture.\n *\n * TODO: Make this a setter that calls loadSource();\n *\n * @member {HTMLImageElement|HTMLCanvasElement}\n * @readonly\n */\n this.source = null; // set in loadSource, if at all\n\n /**\n * Controls if RGB channels should be pre-multiplied by Alpha (WebGL only)\n * All blend modes, and shaders written for default value. Change it on your own risk.\n *\n * @member {boolean}\n * @default true\n */\n this.premultipliedAlpha = true;\n\n /**\n * The image url of the texture\n *\n * @member {string}\n */\n this.imageUrl = null;\n\n /**\n * Wether or not the texture is a power of two, try to use power of two textures as much as you can\n * @member {boolean}\n * @private\n */\n this.isPowerOfTwo = false;\n\n // used for webGL\n\n /**\n *\n * Set this to true if a mipmap of this texture needs to be generated. This value needs to be set before the texture is used\n * Also the texture must be a power of two size to work\n *\n * @member {boolean}\n * @see PIXI.MIPMAP_TEXTURES\n */\n this.mipmap = CONST.MIPMAP_TEXTURES;\n\n /**\n *\n * WebGL Texture wrap mode\n *\n * @member {number}\n * @see PIXI.WRAP_MODES\n */\n this.wrapMode = CONST.WRAP_MODES.DEFAULT;\n\n /**\n * A map of renderer IDs to webgl textures\n *\n * @member {object}\n * @private\n */\n this._glTextures = [];\n this._enabled = 0;\n this._id = 0;\n\n // if no source passed don't try to load\n if (source)\n {\n this.loadSource(source);\n }\n\n /**\n * Fired when a not-immediately-available source finishes loading.\n *\n * @event loaded\n * @memberof PIXI.BaseTexture#\n * @protected\n */\n\n /**\n * Fired when a not-immediately-available source fails to load.\n *\n * @event error\n * @memberof PIXI.BaseTexture#\n * @protected\n */\n}\n\nBaseTexture.prototype = Object.create(EventEmitter.prototype);\nBaseTexture.prototype.constructor = BaseTexture;\nmodule.exports = BaseTexture;\n\n/**\n * Updates the texture on all the webgl renderers, this also assumes the src has changed.\n *\n * @fires update\n */\nBaseTexture.prototype.update = function ()\n{\n this.realWidth = this.source.naturalWidth || this.source.videoWidth || this.source.width;\n this.realHeight = this.source.naturalHeight || this.source.videoHeight || this.source.height;\n\n this.width = this.realWidth / this.resolution;\n this.height = this.realHeight / this.resolution;\n\n this.isPowerOfTwo = bitTwiddle.isPow2(this.realWidth) && bitTwiddle.isPow2(this.realHeight);\n\n this.emit('update', this);\n};\n\n/**\n * Load a source.\n *\n * If the source is not-immediately-available, such as an image that needs to be\n * downloaded, then the 'loaded' or 'error' event will be dispatched in the future\n * and `hasLoaded` will remain false after this call.\n *\n * The logic state after calling `loadSource` directly or indirectly (eg. `fromImage`, `new BaseTexture`) is:\n *\n * if (texture.hasLoaded) {\n * // texture ready for use\n * } else if (texture.isLoading) {\n * // listen to 'loaded' and/or 'error' events on texture\n * } else {\n * // not loading, not going to load UNLESS the source is reloaded\n * // (it may still make sense to listen to the events)\n * }\n *\n * @protected\n * @param source {HTMLImageElement|HTMLCanvasElement} the source object of the texture.\n */\nBaseTexture.prototype.loadSource = function (source)\n{\n var wasLoading = this.isLoading;\n this.hasLoaded = false;\n this.isLoading = false;\n\n if (wasLoading && this.source)\n {\n this.source.onload = null;\n this.source.onerror = null;\n }\n\n this.source = source;\n\n // Apply source if loaded. Otherwise setup appropriate loading monitors.\n if ((this.source.complete || this.source.getContext) && this.source.width && this.source.height)\n {\n this._sourceLoaded();\n }\n else if (!source.getContext)\n {\n\n // Image fail / not ready\n this.isLoading = true;\n\n var scope = this;\n\n source.onload = function ()\n {\n source.onload = null;\n source.onerror = null;\n\n if (!scope.isLoading)\n {\n return;\n }\n\n scope.isLoading = false;\n scope._sourceLoaded();\n\n scope.emit('loaded', scope);\n };\n\n source.onerror = function ()\n {\n source.onload = null;\n source.onerror = null;\n\n if (!scope.isLoading)\n {\n return;\n }\n\n scope.isLoading = false;\n scope.emit('error', scope);\n };\n\n // Per http://www.w3.org/TR/html5/embedded-content-0.html#the-img-element\n // \"The value of `complete` can thus change while a script is executing.\"\n // So complete needs to be re-checked after the callbacks have been added..\n // NOTE: complete will be true if the image has no src so best to check if the src is set.\n if (source.complete && source.src)\n {\n this.isLoading = false;\n\n // ..and if we're complete now, no need for callbacks\n source.onload = null;\n source.onerror = null;\n\n if (source.width && source.height)\n {\n this._sourceLoaded();\n\n // If any previous subscribers possible\n if (wasLoading)\n {\n this.emit('loaded', this);\n }\n }\n else\n {\n // If any previous subscribers possible\n if (wasLoading)\n {\n this.emit('error', this);\n }\n }\n }\n }\n};\n\n/**\n * Used internally to update the width, height, and some other tracking vars once\n * a source has successfully loaded.\n *\n * @private\n */\nBaseTexture.prototype._sourceLoaded = function ()\n{\n this.hasLoaded = true;\n this.update();\n};\n\n/**\n * Destroys this base texture\n *\n */\nBaseTexture.prototype.destroy = function ()\n{\n if (this.imageUrl)\n {\n delete utils.BaseTextureCache[this.imageUrl];\n delete utils.TextureCache[this.imageUrl];\n\n this.imageUrl = null;\n\n if (!navigator.isCocoonJS)\n {\n this.source.src = '';\n }\n }\n else if (this.source && this.source._pixiId)\n {\n delete utils.BaseTextureCache[this.source._pixiId];\n }\n\n this.source = null;\n\n this.dispose();\n};\n\n/**\n * Frees the texture from WebGL memory without destroying this texture object.\n * This means you can still use the texture later which will upload it to GPU\n * memory again.\n *\n */\nBaseTexture.prototype.dispose = function ()\n{\n this.emit('dispose', this);\n\n // this should no longer be needed, the renderers should cleanup all the gl textures.\n // this._glTextures = {};\n};\n\n/**\n * Changes the source image of the texture.\n * The original source must be an Image element.\n *\n * @param newSrc {string} the path of the image\n */\nBaseTexture.prototype.updateSourceImage = function (newSrc)\n{\n this.source.src = newSrc;\n\n this.loadSource(this.source);\n};\n\n/**\n * Helper function that creates a base texture from the given image url.\n * If the image is not in the base texture cache it will be created and loaded.\n *\n * @static\n * @param imageUrl {string} The image url of the texture\n * @param [crossorigin=(auto)] {boolean} Should use anonymous CORS? Defaults to true if the URL is not a data-URI.\n * @param [scaleMode=PIXI.SCALE_MODES.DEFAULT] {number} See {@link PIXI.SCALE_MODES} for possible values\n * @return PIXI.BaseTexture\n */\nBaseTexture.fromImage = function (imageUrl, crossorigin, scaleMode)\n{\n var baseTexture = utils.BaseTextureCache[imageUrl];\n\n if (!baseTexture)\n {\n // new Image() breaks tex loading in some versions of Chrome.\n // See https://code.google.com/p/chromium/issues/detail?id=238071\n var image = new Image();//document.createElement('img');\n\n\n if (crossorigin === undefined && imageUrl.indexOf('data:') !== 0)\n {\n image.crossOrigin = determineCrossOrigin(imageUrl);\n }\n\n baseTexture = new BaseTexture(image, scaleMode);\n baseTexture.imageUrl = imageUrl;\n\n image.src = imageUrl;\n\n utils.BaseTextureCache[imageUrl] = baseTexture;\n\n // if there is an @2x at the end of the url we are going to assume its a highres image\n baseTexture.resolution = utils.getResolutionOfUrl(imageUrl);\n }\n\n return baseTexture;\n};\n\n/**\n * Helper function that creates a base texture from the given canvas element.\n *\n * @static\n * @param canvas {HTMLCanvasElement} The canvas element source of the texture\n * @param scaleMode {number} See {@link PIXI.SCALE_MODES} for possible values\n * @return PIXI.BaseTexture\n */\nBaseTexture.fromCanvas = function (canvas, scaleMode)\n{\n if (!canvas._pixiId)\n {\n canvas._pixiId = 'canvas_' + utils.uid();\n }\n\n var baseTexture = utils.BaseTextureCache[canvas._pixiId];\n\n if (!baseTexture)\n {\n baseTexture = new BaseTexture(canvas, scaleMode);\n utils.BaseTextureCache[canvas._pixiId] = baseTexture;\n }\n\n return baseTexture;\n};\n","var BaseRenderTexture = require('./BaseRenderTexture'),\n Texture = require('./Texture');\n\n/**\n * A RenderTexture is a special texture that allows any Pixi display object to be rendered to it.\n *\n * __Hint__: All DisplayObjects (i.e. Sprites) that render to a RenderTexture should be preloaded\n * otherwise black rectangles will be drawn instead.\n *\n * A RenderTexture takes a snapshot of any Display Object given to its render method. The position\n * and rotation of the given Display Objects is ignored. For example:\n *\n * ```js\n * var renderer = PIXI.autoDetectRenderer(1024, 1024, { view: canvas, ratio: 1 });\n * var renderTexture = PIXI.RenderTexture.create(800, 600);\n * var sprite = PIXI.Sprite.fromImage(\"spinObj_01.png\");\n *\n * sprite.position.x = 800/2;\n * sprite.position.y = 600/2;\n * sprite.anchor.x = 0.5;\n * sprite.anchor.y = 0.5;\n *\n * renderer.render(sprite, renderTexture);\n * ```\n *\n * The Sprite in this case will be rendered to a position of 0,0. To render this sprite at its actual\n * position a Container should be used:\n *\n * ```js\n * var doc = new PIXI.Container();\n *\n * doc.addChild(sprite);\n *\n * renderer.render(doc, renderTexture); // Renders to center of renderTexture\n * ```\n *\n * @class\n * @extends PIXI.Texture\n * @memberof PIXI\n * @param baseRenderTexture {PIXI.BaseRenderTexture} The renderer used for this RenderTexture\n * @param [frame] {PIXI.Rectangle} The rectangle frame of the texture to show\n */\nfunction RenderTexture(baseRenderTexture, frame)\n{\n // suport for legacy..\n this.legacyRenderer = null;\n\n if( !(baseRenderTexture instanceof BaseRenderTexture) )\n {\n var width = arguments[1];\n var height = arguments[2];\n var scaleMode = arguments[3] || 0;\n var resolution = arguments[4] || 1;\n\n // we have an old render texture..\n console.warn('v4 RenderTexture now expects a new BaseRenderTexture. Please use RenderTexture.create('+width+', '+height+')'); // jshint ignore:line\n this.legacyRenderer = arguments[0];\n\n frame = null;\n baseRenderTexture = new BaseRenderTexture(width, height, scaleMode, resolution);\n }\n\n\n /**\n * The base texture object that this texture uses\n *\n * @member {BaseTexture}\n */\n Texture.call(this,\n baseRenderTexture,\n frame\n );\n\n /**\n * This will let the renderer know if the texture is valid. If it's not then it cannot be rendered.\n *\n * @member {boolean}\n */\n this.valid = true;\n\n this._updateUvs();\n}\n\nRenderTexture.prototype = Object.create(Texture.prototype);\nRenderTexture.prototype.constructor = RenderTexture;\nmodule.exports = RenderTexture;\n\n/**\n * Resizes the RenderTexture.\n *\n * @param width {number} The width to resize to.\n * @param height {number} The height to resize to.\n * @param doNotResizeBaseTexture {boolean} Should the baseTexture.width and height values be resized as well?\n */\nRenderTexture.prototype.resize = function (width, height, doNotResizeBaseTexture)\n{\n\n //TODO - could be not required..\n this.valid = (width > 0 && height > 0);\n\n this._frame.width = this.orig.width = width;\n this._frame.height = this.orig.height = height;\n\n if (!doNotResizeBaseTexture)\n {\n this.baseTexture.resize(width, height);\n }\n\n this._updateUvs();\n};\n\n/**\n * A short hand way of creating a render texture..\n * @param [width=100] {number} The width of the render texture\n * @param [height=100] {number} The height of the render texture\n * @param [scaleMode=PIXI.SCALE_MODES.DEFAULT] {number} See {@link PIXI.SCALE_MODES} for possible values\n * @param [resolution=1] {number} The resolution / device pixel ratio of the texture being generated\n */\nRenderTexture.create = function(width, height, scaleMode, resolution)\n{\n return new RenderTexture(new BaseRenderTexture(width, height, scaleMode, resolution));\n};\n","var BaseTexture = require('./BaseTexture'),\n VideoBaseTexture = require('./VideoBaseTexture'),\n TextureUvs = require('./TextureUvs'),\n EventEmitter = require('eventemitter3'),\n math = require('../math'),\n utils = require('../utils');\n\n/**\n * A texture stores the information that represents an image or part of an image. It cannot be added\n * to the display list directly. Instead use it as the texture for a Sprite. If no frame is provided then the whole image is used.\n *\n * You can directly create a texture from an image and then reuse it multiple times like this :\n *\n * ```js\n * var texture = PIXI.Texture.fromImage('assets/image.png');\n * var sprite1 = new PIXI.Sprite(texture);\n * var sprite2 = new PIXI.Sprite(texture);\n * ```\n *\n * @class\n * @memberof PIXI\n * @param baseTexture {PIXI.BaseTexture} The base texture source to create the texture from\n * @param [frame] {PIXI.Rectangle} The rectangle frame of the texture to show\n * @param [orig] {PIXI.Rectangle} The area of original texture\n * @param [trim] {PIXI.Rectangle} Trimmed rectangle of original texture\n * @param [rotate] {number} indicates how the texture was rotated by texture packer. See {@link PIXI.GroupD8}\n */\nfunction Texture(baseTexture, frame, orig, trim, rotate)\n{\n EventEmitter.call(this);\n\n /**\n * Does this Texture have any frame data assigned to it?\n *\n * @member {boolean}\n */\n this.noFrame = false;\n\n if (!frame)\n {\n this.noFrame = true;\n frame = new math.Rectangle(0, 0, 1, 1);\n }\n\n if (baseTexture instanceof Texture)\n {\n baseTexture = baseTexture.baseTexture;\n }\n\n /**\n * The base texture that this texture uses.\n *\n * @member {PIXI.BaseTexture}\n */\n this.baseTexture = baseTexture;\n\n /**\n * This is the area of the BaseTexture image to actually copy to the Canvas / WebGL when rendering,\n * irrespective of the actual frame size or placement (which can be influenced by trimmed texture atlases)\n *\n * @member {PIXI.Rectangle}\n */\n this._frame = frame;\n\n /**\n * This is the trimmed area of original texture, before it was put in atlas\n *\n * @member {PIXI.Rectangle}\n */\n this.trim = trim;\n\n /**\n * This will let the renderer know if the texture is valid. If it's not then it cannot be rendered.\n *\n * @member {boolean}\n */\n this.valid = false;\n\n /**\n * This will let a renderer know that a texture has been updated (used mainly for webGL uv updates)\n *\n * @member {boolean}\n */\n this.requiresUpdate = false;\n\n /**\n * The WebGL UV data cache.\n *\n * @member {PIXI.TextureUvs}\n * @private\n */\n this._uvs = null;\n\n /**\n * This is the area of original texture, before it was put in atlas\n *\n * @member {PIXI.Rectangle}\n */\n this.orig = orig || frame;//new math.Rectangle(0, 0, 1, 1);\n\n this._rotate = +(rotate || 0);\n\n if (rotate === true) {\n // this is old texturepacker legacy, some games/libraries are passing \"true\" for rotated textures\n this._rotate = 2;\n } else {\n if (this._rotate % 2 !== 0) {\n throw 'attempt to use diamond-shaped UVs. If you are sure, set rotation manually';\n }\n }\n\n if (baseTexture.hasLoaded)\n {\n if (this.noFrame)\n {\n frame = new math.Rectangle(0, 0, baseTexture.width, baseTexture.height);\n\n // if there is no frame we should monitor for any base texture changes..\n baseTexture.on('update', this.onBaseTextureUpdated, this);\n }\n this.frame = frame;\n }\n else\n {\n baseTexture.once('loaded', this.onBaseTextureLoaded, this);\n }\n\n /**\n * Fired when the texture is updated. This happens if the frame or the baseTexture is updated.\n *\n * @event update\n * @memberof PIXI.Texture#\n * @protected\n */\n\n\n this._updateID = 0;\n}\n\nTexture.prototype = Object.create(EventEmitter.prototype);\nTexture.prototype.constructor = Texture;\nmodule.exports = Texture;\n\nObject.defineProperties(Texture.prototype, {\n /**\n * The frame specifies the region of the base texture that this texture uses.\n *\n * @member {PIXI.Rectangle}\n * @memberof PIXI.Texture#\n */\n frame: {\n get: function ()\n {\n return this._frame;\n },\n set: function (frame)\n {\n this._frame = frame;\n\n this.noFrame = false;\n\n if (frame.x + frame.width > this.baseTexture.width || frame.y + frame.height > this.baseTexture.height)\n {\n throw new Error('Texture Error: frame does not fit inside the base Texture dimensions ' + this);\n }\n\n //this.valid = frame && frame.width && frame.height && this.baseTexture.source && this.baseTexture.hasLoaded;\n this.valid = frame && frame.width && frame.height && this.baseTexture.hasLoaded;\n\n if (!this.trim && !this.rotate)\n {\n this.orig = frame;\n }\n\n if (this.valid)\n {\n this._updateUvs();\n }\n }\n },\n /**\n * Indicates whether the texture is rotated inside the atlas\n * set to 2 to compensate for texture packer rotation\n * set to 6 to compensate for spine packer rotation\n * can be used to rotate or mirror sprites\n * See {@link PIXI.GroupD8} for explanation\n *\n * @member {number}\n */\n rotate: {\n get: function ()\n {\n return this._rotate;\n },\n set: function (rotate)\n {\n this._rotate = rotate;\n if (this.valid)\n {\n this._updateUvs();\n }\n }\n },\n\n /**\n * The width of the Texture in pixels.\n *\n * @member {number}\n */\n width: {\n get: function() {\n return this.orig ? this.orig.width : 0;\n }\n },\n\n /**\n * The height of the Texture in pixels.\n *\n * @member {number}\n */\n height: {\n get: function() {\n return this.orig ? this.orig.height : 0;\n }\n }\n});\n\n/**\n * Updates this texture on the gpu.\n *\n */\nTexture.prototype.update = function ()\n{\n this.baseTexture.update();\n};\n\n/**\n * Called when the base texture is loaded\n *\n * @private\n */\nTexture.prototype.onBaseTextureLoaded = function (baseTexture)\n{\n this._updateID++;\n\n // TODO this code looks confusing.. boo to abusing getters and setterss!\n if (this.noFrame)\n {\n this.frame = new math.Rectangle(0, 0, baseTexture.width, baseTexture.height);\n }\n else\n {\n this.frame = this._frame;\n }\n\n this.baseTexture.on('update', this.onBaseTextureUpdated, this);\n this.emit('update', this);\n\n};\n\n/**\n * Called when the base texture is updated\n *\n * @private\n */\nTexture.prototype.onBaseTextureUpdated = function (baseTexture)\n{\n this._updateID++;\n\n this._frame.width = baseTexture.width;\n this._frame.height = baseTexture.height;\n\n this.emit('update', this);\n};\n\n/**\n * Destroys this texture\n *\n * @param [destroyBase=false] {boolean} Whether to destroy the base texture as well\n */\nTexture.prototype.destroy = function (destroyBase)\n{\n if (this.baseTexture)\n {\n\n if (destroyBase)\n {\n // delete the texture if it exists in the texture cache..\n // this only needs to be removed if the base texture is actually destoryed too..\n if(utils.TextureCache[this.baseTexture.imageUrl])\n {\n delete utils.TextureCache[this.baseTexture.imageUrl];\n }\n\n this.baseTexture.destroy();\n }\n\n this.baseTexture.off('update', this.onBaseTextureUpdated, this);\n this.baseTexture.off('loaded', this.onBaseTextureLoaded, this);\n\n this.baseTexture = null;\n }\n\n this._frame = null;\n this._uvs = null;\n this.trim = null;\n this.orig = null;\n\n this.valid = false;\n\n this.off('dispose', this.dispose, this);\n this.off('update', this.update, this);\n};\n\n/**\n * Creates a new texture object that acts the same as this one.\n *\n * @return {PIXI.Texture}\n */\nTexture.prototype.clone = function ()\n{\n return new Texture(this.baseTexture, this.frame, this.orig, this.trim, this.rotate);\n};\n\n/**\n * Updates the internal WebGL UV cache.\n *\n * @protected\n */\nTexture.prototype._updateUvs = function ()\n{\n if (!this._uvs)\n {\n this._uvs = new TextureUvs();\n }\n\n this._uvs.set(this._frame, this.baseTexture, this.rotate);\n\n this._updateID++;\n};\n\n/**\n * Helper function that creates a Texture object from the given image url.\n * If the image is not in the texture cache it will be created and loaded.\n *\n * @static\n * @param imageUrl {string} The image url of the texture\n * @param [crossorigin] {boolean} Whether requests should be treated as crossorigin\n * @param [scaleMode=PIXI.SCALE_MODES.DEFAULT] {number} See {@link PIXI.SCALE_MODES} for possible values\n * @return {PIXI.Texture} The newly created texture\n */\nTexture.fromImage = function (imageUrl, crossorigin, scaleMode)\n{\n var texture = utils.TextureCache[imageUrl];\n\n if (!texture)\n {\n texture = new Texture(BaseTexture.fromImage(imageUrl, crossorigin, scaleMode));\n utils.TextureCache[imageUrl] = texture;\n }\n\n return texture;\n};\n\n/**\n * 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\n *\n * @static\n * @param frameId {string} The frame Id of the texture in the cache\n * @return {PIXI.Texture} The newly created texture\n */\nTexture.fromFrame = function (frameId)\n{\n var texture = utils.TextureCache[frameId];\n\n if (!texture)\n {\n throw new Error('The frameId \"' + frameId + '\" does not exist in the texture cache');\n }\n\n return texture;\n};\n\n/**\n * Helper function that creates a new Texture based on the given canvas element.\n *\n * @static\n * @param canvas {HTMLCanvasElement} The canvas element source of the texture\n * @param [scaleMode=PIXI.SCALE_MODES.DEFAULT] {number} See {@link PIXI.SCALE_MODES} for possible values\n * @return {PIXI.Texture} The newly created texture\n */\nTexture.fromCanvas = function (canvas, scaleMode)\n{\n return new Texture(BaseTexture.fromCanvas(canvas, scaleMode));\n};\n\n/**\n * Helper function that creates a new Texture based on the given video element.\n *\n * @static\n * @param video {HTMLVideoElement|string} The URL or actual element of the video\n * @param [scaleMode=PIXI.SCALE_MODES.DEFAULT] {number} See {@link PIXI.SCALE_MODES} for possible values\n * @return {PIXI.Texture} The newly created texture\n */\nTexture.fromVideo = function (video, scaleMode)\n{\n if (typeof video === 'string')\n {\n return Texture.fromVideoUrl(video, scaleMode);\n }\n else\n {\n return new Texture(VideoBaseTexture.fromVideo(video, scaleMode));\n }\n};\n\n/**\n * Helper function that creates a new Texture based on the video url.\n *\n * @static\n * @param videoUrl {string} URL of the video\n * @param [scaleMode=PIXI.SCALE_MODES.DEFAULT] {number} See {@link PIXI.SCALE_MODES} for possible values\n * @return {PIXI.Texture} The newly created texture\n */\nTexture.fromVideoUrl = function (videoUrl, scaleMode)\n{\n return new Texture(VideoBaseTexture.fromUrl(videoUrl, scaleMode));\n};\n\n/**\n * Helper function that creates a new Texture based on the source you provide.\n * The soucre can be - frame id, image url, video url, canvae element, video element, base texture\n *\n * @static\n * @param {number|string|PIXI.BaseTexture|HTMLCanvasElement|HTMLVideoElement} source Source to create texture from\n * @return {PIXI.Texture} The newly created texture\n */\nTexture.from = function (source)\n{\n //TODO auto detect cross origin..\n //TODO pass in scale mode?\n if(typeof source === 'string')\n {\n var texture = utils.TextureCache[source];\n\n if (!texture)\n {\n // check if its a video..\n var isVideo = source.match(/\\.(mp4|webm|ogg|h264|avi|mov)$/) !== null;\n if(isVideo)\n {\n return Texture.fromVideoUrl(source);\n }\n\n return Texture.fromImage(source);\n }\n\n return texture;\n }\n else if(source instanceof HTMLCanvasElement)\n {\n return Texture.fromCanvas(source);\n }\n else if(source instanceof HTMLVideoElement)\n {\n return Texture.fromVideo(source);\n }\n else if(source instanceof BaseTexture)\n {\n return new Texture(BaseTexture);\n }\n};\n\n\n/**\n * Adds a texture to the global utils.TextureCache. This cache is shared across the whole PIXI object.\n *\n * @static\n * @param texture {PIXI.Texture} The Texture to add to the cache.\n * @param id {string} The id that the texture will be stored against.\n */\nTexture.addTextureToCache = function (texture, id)\n{\n utils.TextureCache[id] = texture;\n};\n\n/**\n * Remove a texture from the global utils.TextureCache.\n *\n * @static\n * @param id {string} The id of the texture to be removed\n * @return {PIXI.Texture} The texture that was removed\n */\nTexture.removeTextureFromCache = function (id)\n{\n var texture = utils.TextureCache[id];\n\n delete utils.TextureCache[id];\n delete utils.BaseTextureCache[id];\n\n return texture;\n};\n\n/**\n * An empty texture, used often to not have to create multiple empty textures.\n * Can not be destroyed.\n *\n * @static\n * @constant\n */\nTexture.EMPTY = new Texture(new BaseTexture());\nTexture.EMPTY.destroy = function() {};\nTexture.EMPTY.on = function() {};\nTexture.EMPTY.once = function() {};\nTexture.EMPTY.emit = function() {};\n\n","\n/**\n * A standard object to store the Uvs of a texture\n *\n * @class\n * @private\n * @memberof PIXI\n */\nfunction TextureUvs()\n{\n this.x0 = 0;\n this.y0 = 0;\n\n this.x1 = 1;\n this.y1 = 0;\n\n this.x2 = 1;\n this.y2 = 1;\n\n this.x3 = 0;\n this.y3 = 1;\n\n this.uvsUint32 = new Uint32Array(4);\n}\n\nmodule.exports = TextureUvs;\n\nvar GroupD8 = require('../math/GroupD8');\n\n/**\n * Sets the texture Uvs based on the given frame information\n * @param frame {PIXI.Rectangle}\n * @param baseFrame {PIXI.Rectangle}\n * @param rotate {number} Rotation of frame, see {@link PIXI.GroupD8}\n * @private\n */\nTextureUvs.prototype.set = function (frame, baseFrame, rotate)\n{\n var tw = baseFrame.width;\n var th = baseFrame.height;\n\n if(rotate)\n {\n //width and height div 2 div baseFrame size\n var w2 = frame.width / 2 / tw;\n var h2 = frame.height / 2 / th;\n //coordinates of center\n var cX = frame.x / tw + w2;\n var cY = frame.y / th + h2;\n rotate = GroupD8.add(rotate, GroupD8.NW); //NW is top-left corner\n this.x0 = cX + w2 * GroupD8.uX(rotate);\n this.y0 = cY + h2 * GroupD8.uY(rotate);\n rotate = GroupD8.add(rotate, 2); //rotate 90 degrees clockwise\n this.x1 = cX + w2 * GroupD8.uX(rotate);\n this.y1 = cY + h2 * GroupD8.uY(rotate);\n rotate = GroupD8.add(rotate, 2);\n this.x2 = cX + w2 * GroupD8.uX(rotate);\n this.y2 = cY + h2 * GroupD8.uY(rotate);\n rotate = GroupD8.add(rotate, 2);\n this.x3 = cX + w2 * GroupD8.uX(rotate);\n this.y3 = cY + h2 * GroupD8.uY(rotate);\n }\n else\n {\n\n this.x0 = frame.x / tw;\n this.y0 = frame.y / th;\n\n this.x1 = (frame.x + frame.width) / tw;\n this.y1 = frame.y / th;\n\n this.x2 = (frame.x + frame.width) / tw;\n this.y2 = (frame.y + frame.height) / th;\n\n this.x3 = frame.x / tw;\n this.y3 = (frame.y + frame.height) / th;\n }\n\n this.uvsUint32[0] = (((this.y0 * 65535) & 0xFFFF) << 16) | ((this.x0 * 65535) & 0xFFFF);\n this.uvsUint32[1] = (((this.y1 * 65535) & 0xFFFF) << 16) | ((this.x1 * 65535) & 0xFFFF);\n this.uvsUint32[2] = (((this.y2 * 65535) & 0xFFFF) << 16) | ((this.x2 * 65535) & 0xFFFF);\n this.uvsUint32[3] = (((this.y3 * 65535) & 0xFFFF) << 16) | ((this.x3 * 65535) & 0xFFFF);\n};\n","var BaseTexture = require('./BaseTexture'),\n utils = require('../utils');\n\n/**\n * A texture of a [playing] Video.\n *\n * Video base textures mimic Pixi BaseTexture.from.... method in their creation process.\n *\n * This can be used in several ways, such as:\n *\n * ```js\n * var texture = PIXI.VideoBaseTexture.fromUrl('http://mydomain.com/video.mp4');\n *\n * var texture = PIXI.VideoBaseTexture.fromUrl({ src: 'http://mydomain.com/video.mp4', mime: 'video/mp4' });\n *\n * var texture = PIXI.VideoBaseTexture.fromUrls(['/video.webm', '/video.mp4']);\n *\n * var texture = PIXI.VideoBaseTexture.fromUrls([\n * { src: '/video.webm', mime: 'video/webm' },\n * { src: '/video.mp4', mime: 'video/mp4' }\n * ]);\n * ```\n *\n * See the [\"deus\" demo](http://www.goodboydigital.com/pixijs/examples/deus/).\n *\n * @class\n * @extends PIXI.BaseTexture\n * @memberof PIXI\n * @param source {HTMLVideoElement} Video source\n * @param [scaleMode=PIXI.SCALE_MODES.DEFAULT] {number} See {@link PIXI.SCALE_MODES} for possible values\n */\nfunction VideoBaseTexture(source, scaleMode)\n{\n if (!source)\n {\n throw new Error('No video source element specified.');\n }\n\n // hook in here to check if video is already available.\n // BaseTexture looks for a source.complete boolean, plus width & height.\n\n if ((source.readyState === source.HAVE_ENOUGH_DATA || source.readyState === source.HAVE_FUTURE_DATA) && source.width && source.height)\n {\n source.complete = true;\n }\n\n BaseTexture.call(this, source, scaleMode);\n\n /**\n * Should the base texture automatically update itself, set to true by default\n *\n * @member {boolean}\n * @default true\n */\n this.autoUpdate = false;\n\n this._onUpdate = this._onUpdate.bind(this);\n this._onCanPlay = this._onCanPlay.bind(this);\n\n if (!source.complete)\n {\n source.addEventListener('canplay', this._onCanPlay);\n source.addEventListener('canplaythrough', this._onCanPlay);\n\n // started playing..\n source.addEventListener('play', this._onPlayStart.bind(this));\n source.addEventListener('pause', this._onPlayStop.bind(this));\n }\n\n this.__loaded = false;\n}\n\nVideoBaseTexture.prototype = Object.create(BaseTexture.prototype);\nVideoBaseTexture.prototype.constructor = VideoBaseTexture;\nmodule.exports = VideoBaseTexture;\n\n/**\n * The internal update loop of the video base texture, only runs when autoUpdate is set to true\n *\n * @private\n */\nVideoBaseTexture.prototype._onUpdate = function ()\n{\n if (this.autoUpdate)\n {\n window.requestAnimationFrame(this._onUpdate);\n this.update();\n }\n};\n\n/**\n * Runs the update loop when the video is ready to play\n *\n * @private\n */\nVideoBaseTexture.prototype._onPlayStart = function ()\n{\n if (!this.autoUpdate)\n {\n window.requestAnimationFrame(this._onUpdate);\n this.autoUpdate = true;\n }\n};\n\n/**\n * Fired when a pause event is triggered, stops the update loop\n *\n * @private\n */\nVideoBaseTexture.prototype._onPlayStop = function ()\n{\n this.autoUpdate = false;\n};\n\n/**\n * Fired when the video is loaded and ready to play\n *\n * @private\n */\nVideoBaseTexture.prototype._onCanPlay = function ()\n{\n this.hasLoaded = true;\n\n if (this.source)\n {\n this.source.removeEventListener('canplay', this._onCanPlay);\n this.source.removeEventListener('canplaythrough', this._onCanPlay);\n\n this.width = this.source.videoWidth;\n this.height = this.source.videoHeight;\n\n this.source.play();\n\n // prevent multiple loaded dispatches..\n if (!this.__loaded)\n {\n this.__loaded = true;\n this.emit('loaded', this);\n }\n }\n};\n\n/**\n * Destroys this texture\n *\n */\nVideoBaseTexture.prototype.destroy = function ()\n{\n if (this.source && this.source._pixiId)\n {\n delete utils.BaseTextureCache[ this.source._pixiId ];\n delete this.source._pixiId;\n }\n\n BaseTexture.prototype.destroy.call(this);\n};\n\n/**\n * Mimic Pixi BaseTexture.from.... method.\n *\n * @static\n * @param video {HTMLVideoElement} Video to create texture from\n * @param [scaleMode=PIXI.SCALE_MODES.DEFAULT] {number} See {@link PIXI.SCALE_MODES} for possible values\n * @return {PIXI.VideoBaseTexture} Newly created VideoBaseTexture\n */\nVideoBaseTexture.fromVideo = function (video, scaleMode)\n{\n if (!video._pixiId)\n {\n video._pixiId = 'video_' + utils.uid();\n }\n\n var baseTexture = utils.BaseTextureCache[video._pixiId];\n\n if (!baseTexture)\n {\n baseTexture = new VideoBaseTexture(video, scaleMode);\n utils.BaseTextureCache[ video._pixiId ] = baseTexture;\n }\n\n return baseTexture;\n};\n\n/**\n * Helper function that creates a new BaseTexture based on the given video element.\n * This BaseTexture can then be used to create a texture\n *\n * @static\n * @param videoSrc {string|object|string[]|object[]} The URL(s) for the video.\n * @param [videoSrc.src] {string} One of the source urls for the video\n * @param [videoSrc.mime] {string} The mimetype of the video (e.g. 'video/mp4'). If not specified\n * the url's extension will be used as the second part of the mime type.\n * @param scaleMode {number} See {@link PIXI.SCALE_MODES} for possible values\n * @return {PIXI.VideoBaseTexture} Newly created VideoBaseTexture\n */\nVideoBaseTexture.fromUrl = function (videoSrc, scaleMode)\n{\n var video = document.createElement('video');\n\n // array of objects or strings\n if (Array.isArray(videoSrc))\n {\n for (var i = 0; i < videoSrc.length; ++i)\n {\n video.appendChild(createSource(videoSrc[i].src || videoSrc[i], videoSrc[i].mime));\n }\n }\n // single object or string\n else\n {\n video.appendChild(createSource(videoSrc.src || videoSrc, videoSrc.mime));\n }\n\n video.load();\n video.play();\n\n return VideoBaseTexture.fromVideo(video, scaleMode);\n};\n\nVideoBaseTexture.fromUrls = VideoBaseTexture.fromUrl;\n\nfunction createSource(path, type)\n{\n if (!type)\n {\n type = 'video/' + path.substr(path.lastIndexOf('.') + 1);\n }\n\n var source = document.createElement('source');\n\n source.src = path;\n source.type = type;\n\n return source;\n}\n","var CONST = require('../const'),\n EventEmitter = require('eventemitter3'),\n // Internal event used by composed emitter\n TICK = 'tick';\n\n/**\n * A Ticker class that runs an update loop that other objects listen to.\n * This class is composed around an EventEmitter object to add listeners\n * meant for execution on the next requested animation frame.\n * Animation frames are requested only when necessary,\n * e.g. When the ticker is started and the emitter has listeners.\n *\n * @class\n * @memberof PIXI.ticker\n */\nfunction Ticker()\n{\n var _this = this;\n\n /**\n * Internal tick method bound to ticker instance.\n * This is because in early 2015, Function.bind\n * is still 60% slower in high performance scenarios.\n * Also separating frame requests from update method\n * so listeners may be called at any time and with\n * any animation API, just invoke ticker.update(time).\n *\n * @private\n */\n this._tick = function _tick(time) {\n\n _this._requestId = null;\n\n if (_this.started)\n {\n // Invoke listeners now\n _this.update(time);\n // Listener side effects may have modified ticker state.\n if (_this.started && _this._requestId === null && _this._emitter.listeners(TICK, true))\n {\n _this._requestId = requestAnimationFrame(_this._tick);\n }\n }\n };\n\n /**\n * Internal emitter used to fire 'tick' event\n * @private\n */\n this._emitter = new EventEmitter();\n\n /**\n * Internal current frame request ID\n * @private\n */\n this._requestId = null;\n\n /**\n * Internal value managed by minFPS property setter and getter.\n * This is the maximum allowed milliseconds between updates.\n * @private\n */\n this._maxElapsedMS = 100;\n\n /**\n * Whether or not this ticker should invoke the method\n * {@link PIXI.ticker.Ticker#start} automatically\n * when a listener is added.\n *\n * @member {boolean}\n * @default false\n */\n this.autoStart = false;\n\n /**\n * Scalar time value from last frame to this frame.\n * This value is capped by setting {@link PIXI.ticker.Ticker#minFPS}\n * and is scaled with {@link PIXI.ticker.Ticker#speed}.\n * **Note:** The cap may be exceeded by scaling.\n *\n * @member {number}\n * @default 1\n */\n this.deltaTime = 1;\n\n /**\n * Time elapsed in milliseconds from last frame to this frame.\n * Opposed to what the scalar {@link PIXI.ticker.Ticker#deltaTime}\n * is based, this value is neither capped nor scaled.\n * If the platform supports DOMHighResTimeStamp,\n * this value will have a precision of 1 µs.\n *\n * @member {number}\n * @default 1 / TARGET_FPMS\n */\n this.elapsedMS = 1 / CONST.TARGET_FPMS; // default to target frame time\n\n /**\n * The last time {@link PIXI.ticker.Ticker#update} was invoked.\n * This value is also reset internally outside of invoking\n * update, but only when a new animation frame is requested.\n * If the platform supports DOMHighResTimeStamp,\n * this value will have a precision of 1 µs.\n *\n * @member {number}\n * @default 0\n */\n this.lastTime = 0;\n\n /**\n * Factor of current {@link PIXI.ticker.Ticker#deltaTime}.\n * @example\n * // Scales ticker.deltaTime to what would be\n * // the equivalent of approximately 120 FPS\n * ticker.speed = 2;\n *\n * @member {number}\n * @default 1\n */\n this.speed = 1;\n\n /**\n * Whether or not this ticker has been started.\n * `true` if {@link PIXI.ticker.Ticker#start} has been called.\n * `false` if {@link PIXI.ticker.Ticker#stop} has been called.\n * While `false`, this value may change to `true` in the\n * event of {@link PIXI.ticker.Ticker#autoStart} being `true`\n * and a listener is added.\n *\n * @member {boolean}\n * @default false\n */\n this.started = false;\n}\n\nObject.defineProperties(Ticker.prototype, {\n /**\n * The frames per second at which this ticker is running.\n * The default is approximately 60 in most modern browsers.\n * **Note:** This does not factor in the value of\n * {@link PIXI.ticker.Ticker#speed}, which is specific\n * to scaling {@link PIXI.ticker.Ticker#deltaTime}.\n *\n * @memberof PIXI.ticker.Ticker#\n * @readonly\n */\n FPS: {\n get: function()\n {\n return 1000 / this.elapsedMS;\n }\n },\n\n /**\n * Manages the maximum amount of milliseconds allowed to\n * elapse between invoking {@link PIXI.ticker.Ticker#update}.\n * This value is used to cap {@link PIXI.ticker.Ticker#deltaTime},\n * but does not effect the measured value of {@link PIXI.ticker.Ticker#FPS}.\n * When setting this property it is clamped to a value between\n * `0` and `PIXI.TARGET_FPMS * 1000`.\n *\n * @memberof PIXI.ticker.Ticker#\n * @default 10\n */\n minFPS: {\n get: function()\n {\n return 1000 / this._maxElapsedMS;\n },\n set: function(fps)\n {\n // Clamp: 0 to TARGET_FPMS\n var minFPMS = Math.min(Math.max(0, fps) / 1000, CONST.TARGET_FPMS);\n this._maxElapsedMS = 1 / minFPMS;\n }\n }\n});\n\n/**\n * Conditionally requests a new animation frame.\n * If a frame has not already been requested, and if the internal\n * emitter has listeners, a new frame is requested.\n *\n * @private\n */\nTicker.prototype._requestIfNeeded = function _requestIfNeeded()\n{\n if (this._requestId === null && this._emitter.listeners(TICK, true))\n {\n // ensure callbacks get correct delta\n this.lastTime = performance.now();\n this._requestId = requestAnimationFrame(this._tick);\n }\n};\n\n/**\n * Conditionally cancels a pending animation frame.\n *\n * @private\n */\nTicker.prototype._cancelIfNeeded = function _cancelIfNeeded()\n{\n if (this._requestId !== null)\n {\n cancelAnimationFrame(this._requestId);\n this._requestId = null;\n }\n};\n\n/**\n * Conditionally requests a new animation frame.\n * If the ticker has been started it checks if a frame has not already\n * been requested, and if the internal emitter has listeners. If these\n * conditions are met, a new frame is requested. If the ticker has not\n * been started, but autoStart is `true`, then the ticker starts now,\n * and continues with the previous conditions to request a new frame.\n *\n * @private\n */\nTicker.prototype._startIfPossible = function _startIfPossible()\n{\n if (this.started)\n {\n this._requestIfNeeded();\n }\n else if (this.autoStart)\n {\n this.start();\n }\n};\n\n/**\n * Calls {@link module:eventemitter3.EventEmitter#on} internally for the\n * internal 'tick' event. It checks if the emitter has listeners,\n * and if so it requests a new animation frame at this point.\n *\n * @param fn {Function} The listener function to be added for updates\n * @param [context] {Function} The listener context\n * @returns {PIXI.ticker.Ticker} This instance of a ticker\n */\nTicker.prototype.add = function add(fn, context)\n{\n this._emitter.on(TICK, fn, context);\n\n this._startIfPossible();\n\n return this;\n};\n\n/**\n * Calls {@link module:eventemitter3.EventEmitter#once} internally for the\n * internal 'tick' event. It checks if the emitter has listeners,\n * and if so it requests a new animation frame at this point.\n *\n * @param fn {Function} The listener function to be added for one update\n * @param [context] {Function} The listener context\n * @returns {PIXI.ticker.Ticker} This instance of a ticker\n */\nTicker.prototype.addOnce = function addOnce(fn, context)\n{\n this._emitter.once(TICK, fn, context);\n\n this._startIfPossible();\n\n return this;\n};\n\n/**\n * Calls {@link module:eventemitter3.EventEmitter#off} internally for 'tick' event.\n * It checks if the emitter has listeners for 'tick' event.\n * If it does, then it cancels the animation frame.\n *\n * @param [fn] {Function} The listener function to be removed\n * @param [context] {Function} The listener context to be removed\n * @returns {PIXI.ticker.Ticker} This instance of a ticker\n */\nTicker.prototype.remove = function remove(fn, context)\n{\n this._emitter.off(TICK, fn, context);\n\n if (!this._emitter.listeners(TICK, true))\n {\n this._cancelIfNeeded();\n }\n\n return this;\n};\n\n/**\n * Starts the ticker. If the ticker has listeners\n * a new animation frame is requested at this point.\n */\nTicker.prototype.start = function start()\n{\n if (!this.started)\n {\n this.started = true;\n this._requestIfNeeded();\n }\n};\n\n/**\n * Stops the ticker. If the ticker has requested\n * an animation frame it is canceled at this point.\n */\nTicker.prototype.stop = function stop()\n{\n if (this.started)\n {\n this.started = false;\n this._cancelIfNeeded();\n }\n};\n\n/**\n * Triggers an update. An update entails setting the\n * current {@link PIXI.ticker.Ticker#elapsedMS},\n * the current {@link PIXI.ticker.Ticker#deltaTime},\n * invoking all listeners with current deltaTime,\n * and then finally setting {@link PIXI.ticker.Ticker#lastTime}\n * with the value of currentTime that was provided.\n * This method will be called automatically by animation\n * frame callbacks if the ticker instance has been started\n * and listeners are added.\n *\n * @param [currentTime=performance.now()] {number} the current time of execution\n */\nTicker.prototype.update = function update(currentTime)\n{\n var elapsedMS;\n\n // Allow calling update directly with default currentTime.\n currentTime = currentTime || performance.now();\n\n // If the difference in time is zero or negative, we ignore most of the work done here.\n // If there is no valid difference, then should be no reason to let anyone know about it.\n // A zero delta, is exactly that, nothing should update.\n //\n // The difference in time can be negative, and no this does not mean time traveling.\n // This can be the result of a race condition between when an animation frame is requested\n // on the current JavaScript engine event loop, and when the ticker's start method is invoked\n // (which invokes the internal _requestIfNeeded method). If a frame is requested before\n // _requestIfNeeded is invoked, then the callback for the animation frame the ticker requests,\n // can receive a time argument that can be less than the lastTime value that was set within\n // _requestIfNeeded. This difference is in microseconds, but this is enough to cause problems.\n //\n // This check covers this browser engine timing issue, as well as if consumers pass an invalid\n // currentTime value. This may happen if consumers opt-out of the autoStart, and update themselves.\n\n if (currentTime > this.lastTime)\n {\n // Save uncapped elapsedMS for measurement\n elapsedMS = this.elapsedMS = currentTime - this.lastTime;\n\n // cap the milliseconds elapsed used for deltaTime\n if (elapsedMS > this._maxElapsedMS)\n {\n elapsedMS = this._maxElapsedMS;\n }\n\n this.deltaTime = elapsedMS * CONST.TARGET_FPMS * this.speed;\n\n // Invoke listeners added to internal emitter\n this._emitter.emit(TICK, this.deltaTime);\n }\n else\n {\n this.deltaTime = this.elapsedMS = 0;\n }\n\n this.lastTime = currentTime;\n};\n\nmodule.exports = Ticker;\n","var Ticker = require('./Ticker');\n\n/**\n * The shared ticker instance used by {@link PIXI.extras.MovieClip}.\n * and by {@link PIXI.interaction.InteractionManager}.\n * The property {@link PIXI.ticker.Ticker#autoStart} is set to `true`\n * for this instance. Please follow the examples for usage, including\n * how to opt-out of auto-starting the shared ticker.\n *\n * @example\n * var ticker = PIXI.ticker.shared;\n * // Set this to prevent starting this ticker when listeners are added.\n * // By default this is true only for the PIXI.ticker.shared instance.\n * ticker.autoStart = false;\n * // FYI, call this to ensure the ticker is stopped. It should be stopped\n * // if you have not attempted to render anything yet.\n * ticker.stop();\n * // Call this when you are ready for a running shared ticker.\n * ticker.start();\n *\n * @example\n * // You may use the shared ticker to render...\n * var renderer = PIXI.autoDetectRenderer(800, 600);\n * var stage = new PIXI.Container();\n * var interactionManager = PIXI.interaction.InteractionManager(renderer);\n * document.body.appendChild(renderer.view);\n * ticker.add(function (time) {\n * renderer.render(stage);\n * });\n *\n * @example\n * // Or you can just update it manually.\n * ticker.autoStart = false;\n * ticker.stop();\n * function animate(time) {\n * ticker.update(time);\n * renderer.render(stage);\n * requestAnimationFrame(animate);\n * }\n * animate(performance.now());\n *\n * @type {PIXI.ticker.Ticker}\n * @memberof PIXI.ticker\n */\nvar shared = new Ticker();\nshared.autoStart = true;\n\n/**\n * @namespace PIXI.ticker\n */\nmodule.exports = {\n shared: shared,\n Ticker: Ticker\n};\n","/**\n * Generic Mask Stack data structure\n * @class\n * @memberof PIXI\n * @param size {number} Number of quads\n * @return {Uint16Array} indices\n */\nvar createIndicesForQuads = function (size)\n{\n // the total number of indices in our array, there are 6 points per quad.\n\n var totalIndices = size * 6;\n\n var indices = new Uint16Array(totalIndices);\n\n\t// fill the indices with the quads to draw\n for (var i=0, j=0; i < totalIndices; i += 6, j += 4)\n {\n indices[i + 0] = j + 0;\n indices[i + 1] = j + 1;\n indices[i + 2] = j + 2;\n indices[i + 3] = j + 0;\n indices[i + 4] = j + 2;\n indices[i + 5] = j + 3;\n }\n\n return indices;\n};\n\nmodule.exports = createIndicesForQuads;\n","var tempAnchor;\nvar _url = require('url');\n\n/**\n * Sets the `crossOrigin` property for this resource based on if the url\n * for this resource is cross-origin. If crossOrigin was manually set, this\n * function does nothing.\n * Nipped from the resource loader!\n * @private\n * @param url {string} The url to test.\n * @param loc [location=window.location] {object} The location object to test against.\n * @return {string} The crossOrigin value to use (or empty string for none).\n */\nvar determineCrossOrigin = function (url, loc) {\n // data: and javascript: urls are considered same-origin\n if (url.indexOf('data:') === 0) {\n return '';\n }\n\n // default is window.location\n loc = loc || window.location;\n\n if (!tempAnchor) {\n tempAnchor = document.createElement('a');\n }\n\n // let the browser determine the full href for the url of this resource and then\n // parse with the node url lib, we can't use the properties of the anchor element\n // because they don't work in IE9 :(\n tempAnchor.href = url;\n url = _url.parse(tempAnchor.href);\n\n var samePort = (!url.port && loc.port === '') || (url.port === loc.port);\n\n // if cross origin\n if (url.hostname !== loc.hostname || !samePort || url.protocol !== loc.protocol) {\n return 'anonymous';\n }\n\n return '';\n};\n\nmodule.exports = determineCrossOrigin;\n","var CONST = require('../const');\n\n/**\n * @namespace PIXI.utils\n */\nvar utils = module.exports = {\n _uid: 0,\n _saidHello: false,\n\n EventEmitter: require('eventemitter3'),\n pluginTarget: require('./pluginTarget'),\n\n /**\n * Gets the next unique identifier\n *\n * @memberof PIXI.utils\n * @return {number} The next unique identifier to use.\n */\n uid: function ()\n {\n return ++utils._uid;\n },\n\n /**\n * Converts a hex color number to an [R, G, B] array\n *\n * @memberof PIXI.utils\n * @param hex {number}\n * @param {number[]} [out=[]] If supplied, this array will be used rather than returning a new one\n * @return {number[]} An array representing the [R, G, B] of the color.\n */\n hex2rgb: function (hex, out)\n {\n out = out || [];\n\n out[0] = (hex >> 16 & 0xFF) / 255;\n out[1] = (hex >> 8 & 0xFF) / 255;\n out[2] = (hex & 0xFF) / 255;\n\n return out;\n },\n\n /**\n * Converts a hex color number to a string.\n *\n * @memberof PIXI.utils\n * @param hex {number} Number in hex\n * @return {string} The string color.\n */\n hex2string: function (hex)\n {\n hex = hex.toString(16);\n hex = '000000'.substr(0, 6 - hex.length) + hex;\n\n return '#' + hex;\n },\n\n /**\n * Converts a color as an [R, G, B] array to a hex number\n *\n * @memberof PIXI.utils\n * @param rgb {number[]} rgb array\n * @return {number} The color number\n */\n rgb2hex: function (rgb)\n {\n return ((rgb[0]*255 << 16) + (rgb[1]*255 << 8) + rgb[2]*255);\n },\n\n\n /**\n * get the resolution / device pixel ratio of an asset by looking for the prefix\n * used by spritesheets and image urls\n *\n * @memberof PIXI.utils\n * @param url {string} the image path\n * @return {number} resolution / device pixel ratio of an asset\n */\n getResolutionOfUrl: function (url)\n {\n var resolution = CONST.RETINA_PREFIX.exec(url);\n\n if (resolution)\n {\n return parseFloat(resolution[1]);\n }\n\n return 1;\n },\n\n /**\n * Logs out the version and renderer information for this running instance of PIXI.\n * If you don't want to see this message you can set `PIXI.utils._saidHello = true;`\n * so the library thinks it already said it. Keep in mind that doing that will forever\n * makes you a jerk face.\n *\n * @memberof PIXI.utils\n * @param {string} type - The string renderer type to log.\n * @constant\n * @static\n */\n sayHello: function (type)\n {\n if (utils._saidHello)\n {\n return;\n }\n\n if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1)\n {\n var args = [\n '\\n %c %c %c Pixi.js ' + CONST.VERSION + ' - ✰ ' + type + ' ✰ %c ' + ' %c ' + ' http://www.pixijs.com/ %c %c ♥%c♥%c♥ \\n\\n',\n 'background: #ff66a5; padding:5px 0;',\n 'background: #ff66a5; padding:5px 0;',\n 'color: #ff66a5; background: #030307; padding:5px 0;',\n 'background: #ff66a5; padding:5px 0;',\n 'background: #ffc3dc; padding:5px 0;',\n 'background: #ff66a5; padding:5px 0;',\n 'color: #ff2424; background: #fff; padding:5px 0;',\n 'color: #ff2424; background: #fff; padding:5px 0;',\n 'color: #ff2424; background: #fff; padding:5px 0;'\n ];\n\n window.console.log.apply(console, args); //jshint ignore:line\n }\n else if (window.console)\n {\n window.console.log('Pixi.js ' + CONST.VERSION + ' - ' + type + ' - http://www.pixijs.com/'); //jshint ignore:line\n }\n\n utils._saidHello = true;\n },\n\n /**\n * Helper for checking for webgl support\n *\n * @memberof PIXI.utils\n * @return {boolean} is webgl supported\n */\n isWebGLSupported: function ()\n {\n var contextOptions = { stencil: true, failIfMajorPerformanceCaveat: true };\n try\n {\n if (!window.WebGLRenderingContext)\n {\n return false;\n }\n\n var canvas = document.createElement('canvas'),\n gl = canvas.getContext('webgl', contextOptions) || canvas.getContext('experimental-webgl', contextOptions);\n\n var success = !!(gl && gl.getContextAttributes().stencil);\n if (gl)\n {\n var loseContext = gl.getExtension('WEBGL_lose_context');\n\n if(loseContext)\n {\n loseContext.loseContext();\n }\n }\n gl = null;\n\n return success;\n }\n catch (e)\n {\n return false;\n }\n },\n\n /**\n * Returns sign of number\n *\n * @memberof PIXI.utils\n * @param n {number}\n * @returns {number} 0 if n is 0, -1 if n is negative, 1 if n i positive\n */\n sign: function (n)\n {\n return n ? (n < 0 ? -1 : 1) : 0;\n },\n\n /**\n * Remove a range of items from an array\n *\n * @memberof PIXI.utils\n * @param {Array<*>} arr The target array\n * @param {number} startIdx The index to begin removing from (inclusive)\n * @param {number} removeCount How many items to remove\n */\n removeItems: function (arr, startIdx, removeCount)\n {\n var length = arr.length;\n\n if (startIdx >= length || removeCount === 0)\n {\n return;\n }\n\n removeCount = (startIdx+removeCount > length ? length-startIdx : removeCount);\n for (var i = startIdx, len = length-removeCount; i < len; ++i)\n {\n arr[i] = arr[i + removeCount];\n }\n\n arr.length = len;\n },\n\n /**\n * @todo Describe property usage\n *\n * @memberof PIXI.utils\n * @private\n */\n TextureCache: {},\n\n /**\n * @todo Describe property usage\n *\n * @memberof PIXI.utils\n * @private\n */\n BaseTextureCache: {}\n};\n","\n\nvar Device = require('ismobilejs');\n\nvar maxRecommendedTextures = function(max)\n{\n\n\tif(Device.tablet || Device.phone)\n\t{\n\t\t// check if the res is iphone 6 or higher..\n\t\treturn 2;\n\t}\n\telse\n\t{\n\t\t// desktop should be ok\n\t\treturn max;\n\t}\n};\n\nmodule.exports = maxRecommendedTextures;","/**\n * Mixins functionality to make an object have \"plugins\".\n *\n * @mixin\n * @memberof PIXI.utils\n * @param obj {object} The object to mix into.\n * @example\n * function MyObject() {}\n *\n * pluginTarget.mixin(MyObject);\n */\nfunction pluginTarget(obj)\n{\n obj.__plugins = {};\n\n /**\n * Adds a plugin to an object\n *\n * @param pluginName {string} The events that should be listed.\n * @param ctor {Function} The constructor function for the plugin.\n */\n obj.registerPlugin = function (pluginName, ctor)\n {\n obj.__plugins[pluginName] = ctor;\n };\n\n /**\n * Instantiates all the plugins of this object\n *\n */\n obj.prototype.initPlugins = function ()\n {\n this.plugins = this.plugins || {};\n\n for (var o in obj.__plugins)\n {\n this.plugins[o] = new (obj.__plugins[o])(this);\n }\n };\n\n /**\n * Removes all the plugins of this object\n *\n */\n obj.prototype.destroyPlugins = function ()\n {\n for (var o in this.plugins)\n {\n this.plugins[o].destroy();\n this.plugins[o] = null;\n }\n\n this.plugins = null;\n };\n}\n\n\nmodule.exports = {\n /**\n * Mixes in the properties of the pluginTarget into another object\n *\n * @param obj {object} The obj to mix into\n */\n mixin: function mixin(obj)\n {\n pluginTarget(obj);\n }\n};\n","// @if DEBUG\n/*global console */\nvar core = require('./core'),\n mesh = require('./mesh'),\n particles = require('./particles'),\n extras = require('./extras'),\n filters = require('./filters');\n\n// provide method to give a stack track for warnings\n// useful for tracking-down where deprecated methods/properties/classes\n// are being used within the code\nfunction warn(msg) {\n var stack = new Error().stack;\n\n // Handle IE < 10 and Safari < 6\n if (typeof stack === 'undefined') {\n console.warn('Deprecation Warning: ', msg);\n }\n else {\n // chop off the stack trace which includes pixi.js internal calls\n stack = stack.split('\\n').splice(3).join('\\n');\n\n if (console.groupCollapsed) {\n console.groupCollapsed('%cDeprecation Warning: %c%s', 'color:#614108;background:#fffbe6', 'font-weight:normal;color:#614108;background:#fffbe6', msg);\n console.warn(stack);\n console.groupEnd();\n }\n else {\n console.warn('Deprecation Warning: ', msg);\n console.warn(stack);\n }\n }\n}\n\n/**\n * @class\n * @private\n * @name SpriteBatch\n * @memberof PIXI\n * @see PIXI.ParticleContainer\n * @throws {ReferenceError} SpriteBatch does not exist any more, please use the new ParticleContainer instead.\n * @deprecated since version 3.0.0\n */\ncore.SpriteBatch = function()\n{\n throw new ReferenceError('SpriteBatch does not exist any more, please use the new ParticleContainer instead.');\n};\n\n/**\n * @class\n * @private\n * @name AssetLoader\n * @memberof PIXI\n * @see PIXI.loaders.Loader\n * @throws {ReferenceError} The loader system was overhauled in pixi v3, please see the new PIXI.loaders.Loader class.\n * @deprecated since version 3.0.0\n */\ncore.AssetLoader = function()\n{\n throw new ReferenceError('The loader system was overhauled in pixi v3, please see the new PIXI.loaders.Loader class.');\n};\n\nObject.defineProperties(core, {\n\n /**\n * @class\n * @private\n * @name Stage\n * @memberof PIXI\n * @see PIXI.Container\n * @deprecated since version 3.0.0\n */\n Stage: {\n get: function()\n {\n warn('You do not need to use a PIXI Stage any more, you can simply render any container.');\n return core.Container;\n }\n },\n\n /**\n * @class\n * @private\n * @name DisplayObjectContainer\n * @memberof PIXI\n * @see PIXI.Container\n * @deprecated since version 3.0.0\n */\n DisplayObjectContainer: {\n get: function()\n {\n warn('DisplayObjectContainer has been shortened to Container, please use Container from now on.');\n return core.Container;\n }\n },\n\n /**\n * @class\n * @private\n * @name Strip\n * @memberof PIXI\n * @see PIXI.mesh.Mesh\n * @deprecated since version 3.0.0\n */\n Strip: {\n get: function()\n {\n warn('The Strip class has been renamed to Mesh and moved to mesh.Mesh, please use mesh.Mesh from now on.');\n return mesh.Mesh;\n }\n },\n\n /**\n * @class\n * @private\n * @name Rope\n * @memberof PIXI\n * @see PIXI.mesh.Rope\n * @deprecated since version 3.0.0\n */\n Rope: {\n get: function()\n {\n warn('The Rope class has been moved to mesh.Rope, please use mesh.Rope from now on.');\n return mesh.Rope;\n }\n },\n\n /**\n * @class\n * @private\n * @name ParticleContainer\n * @memberof PIXI\n * @see PIXI.particles.ParticleContainer\n * @deprecated since version 4.0.0\n */\n ParticleContainer: {\n get: function() {\n warn('The ParticleContainer class has been moved to particles.ParticleContainer, please use particles.ParticleContainer from now on.');\n return particles.ParticleContainer;\n }\n },\n\n /**\n * @class\n * @private\n * @name MovieClip\n * @memberof PIXI\n * @see PIXI.extras.MovieClip\n * @deprecated since version 3.0.0\n */\n MovieClip: {\n get: function()\n {\n warn('The MovieClip class has been moved to extras.MovieClip, please use extras.MovieClip from now on.');\n return extras.MovieClip;\n }\n },\n\n /**\n * @class\n * @private\n * @name TilingSprite\n * @memberof PIXI\n * @see PIXI.extras.TilingSprite\n * @deprecated since version 3.0.0\n */\n TilingSprite: {\n get: function()\n {\n warn('The TilingSprite class has been moved to extras.TilingSprite, please use extras.TilingSprite from now on.');\n return extras.TilingSprite;\n }\n },\n\n /**\n * @class\n * @private\n * @name BitmapText\n * @memberof PIXI\n * @see PIXI.extras.BitmapText\n * @deprecated since version 3.0.0\n */\n BitmapText: {\n get: function()\n {\n warn('The BitmapText class has been moved to extras.BitmapText, please use extras.BitmapText from now on.');\n return extras.BitmapText;\n }\n },\n\n /**\n * @class\n * @private\n * @name blendModes\n * @memberof PIXI\n * @see PIXI.BLEND_MODES\n * @deprecated since version 3.0.0\n */\n blendModes: {\n get: function()\n {\n warn('The blendModes has been moved to BLEND_MODES, please use BLEND_MODES from now on.');\n return core.BLEND_MODES;\n }\n },\n\n /**\n * @class\n * @private\n * @name scaleModes\n * @memberof PIXI\n * @see PIXI.SCALE_MODES\n * @deprecated since version 3.0.0\n */\n scaleModes: {\n get: function()\n {\n warn('The scaleModes has been moved to SCALE_MODES, please use SCALE_MODES from now on.');\n return core.SCALE_MODES;\n }\n },\n\n /**\n * @class\n * @private\n * @name BaseTextureCache\n * @memberof PIXI\n * @see PIXI.utils.BaseTextureCache\n * @deprecated since version 3.0.0\n */\n BaseTextureCache: {\n get: function ()\n {\n warn('The BaseTextureCache class has been moved to utils.BaseTextureCache, please use utils.BaseTextureCache from now on.');\n return core.utils.BaseTextureCache;\n }\n },\n\n /**\n * @class\n * @private\n * @name TextureCache\n * @memberof PIXI\n * @see PIXI.utils.TextureCache\n * @deprecated since version 3.0.0\n */\n TextureCache: {\n get: function ()\n {\n warn('The TextureCache class has been moved to utils.TextureCache, please use utils.TextureCache from now on.');\n return core.utils.TextureCache;\n }\n },\n\n /**\n * @namespace\n * @private\n * @name math\n * @memberof PIXI\n * @see PIXI\n * @deprecated since version 3.0.6\n */\n math: {\n get: function ()\n {\n warn('The math namespace is deprecated, please access members already accessible on PIXI.');\n return core;\n }\n },\n\n /**\n * @class\n * @private\n * @name PIXI.AbstractFilter\n * @see PIXI.Filter\n * @deprecated since version 3.0.6\n */\n AbstractFilter: {\n get: function()\n {\n warn('AstractFilter has been renamed to Filter, please use PIXI.Filter');\n return core.Filter;\n }\n },\n\n /**\n * @class\n * @private\n * @name PIXI.TransformManual\n * @see PIXI.TransformBase\n * @deprecated since version 4.0.0\n */\n TransformManual: {\n get: function()\n {\n warn('TransformManual has been renamed to TransformBase, please update your pixi-spine');\n return core.TransformBase;\n }\n }\n});\n\ncore.DisplayObject.prototype.generateTexture = function(renderer, scaleMode, resolution)\n{\n warn('generateTexture has moved to the renderer, please use renderer.generateTexture(displayObject)');\n return renderer.generateTexture(this, scaleMode, resolution);\n};\n\n\ncore.Graphics.prototype.generateTexture = function(scaleMode, resolution)\n{\n warn('graphics generate texture has moved to the renderer. Or to render a graphics to a texture using canvas please use generateCanvasTexture');\n return this.generateCanvasTexture(scaleMode, resolution);\n};\n\ncore.RenderTexture.prototype.render = function(displayObject, matrix, clear, updateTransform)\n{\n this.legacyRenderer.render(displayObject, this, clear, matrix, !updateTransform);\n warn('RenderTexture.render is now deprecated, please use renderer.render(displayObject, renderTexture)');\n};\n\ncore.RenderTexture.prototype.getImage = function(target)\n{\n warn('RenderTexture.getImage is now deprecated, please use renderer.extract.image(target)');\n return this.legacyRenderer.extract.image(target);\n};\n\ncore.RenderTexture.prototype.getBase64 = function(target)\n{\n warn('RenderTexture.getBase64 is now deprecated, please use renderer.extract.base64(target)');\n return this.legacyRenderer.extract.base64(target);\n};\n\ncore.RenderTexture.prototype.getCanvas = function(target)\n{\n warn('RenderTexture.getCanvas is now deprecated, please use renderer.extract.canvas(target)');\n return this.legacyRenderer.extract.canvas(target);\n};\n\ncore.RenderTexture.prototype.getPixels = function(target)\n{\n warn('RenderTexture.getPixels is now deprecated, please use renderer.extract.pixels(target)');\n return this.legacyRenderer.pixels(target);\n};\n\n\n\n/**\n * @method\n * @private\n * @name PIXI.Sprite#setTexture\n * @see PIXI.Sprite#texture\n * @deprecated since version 3.0.0\n */\ncore.Sprite.prototype.setTexture = function(texture)\n{\n this.texture = texture;\n warn('setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture;');\n};\n\n\n\n/**\n * @method\n * @name PIXI.extras.BitmapText#setText\n * @see PIXI.extras.BitmapText#text\n * @deprecated since version 3.0.0\n */\nextras.BitmapText.prototype.setText = function(text)\n{\n this.text = text;\n warn('setText is now deprecated, please use the text property, e.g : myBitmapText.text = \\'my text\\';');\n};\n\n/**\n * @method\n * @name PIXI.Text#setText\n * @see PIXI.Text#text\n * @deprecated since version 3.0.0\n */\ncore.Text.prototype.setText = function(text)\n{\n this.text = text;\n warn('setText is now deprecated, please use the text property, e.g : myText.text = \\'my text\\';');\n};\n\n/**\n * @method\n * @name PIXI.Text#setStyle\n * @see PIXI.Text#style\n * @deprecated since version 3.0.0\n */\ncore.Text.prototype.setStyle = function(style)\n{\n this.style = style;\n warn('setStyle is now deprecated, please use the style property, e.g : myText.style = style;');\n};\n\nObject.defineProperties(core.TextStyle.prototype, {\n /**\n * Set all properties of a font as a single string\n *\n * @name PIXI.TextStyle#font\n * @deprecated since version 4.0.0\n */\n font: {\n get: function ()\n {\n warn('text style property \\'font\\' is now deprecated, please use the \\'fontFamily\\',\\'fontSize\\',fontStyle\\',\\'fontVariant\\' and \\'fontWeight\\' properties from now on');\n var fontSizeString = (typeof this._fontSize === 'number') ? this._fontSize + 'px' : this._fontSize;\n return this._fontStyle + ' ' + this._fontVariant + ' ' + this._fontWeight + ' ' + fontSizeString + ' ' + this._fontFamily;\n },\n set: function (font)\n {\n warn('text style property \\'font\\' is now deprecated, please use the \\'fontFamily\\',\\'fontSize\\',fontStyle\\',\\'fontVariant\\' and \\'fontWeight\\' properties from now on');\n\n // can work out fontStyle from search of whole string\n if ( font.indexOf('italic') > 1 )\n {\n this._fontStyle = 'italic';\n }\n else if ( font.indexOf('oblique') > -1 )\n {\n this._fontStyle = 'oblique';\n }\n else\n {\n this._fontStyle = 'normal';\n }\n\n // can work out fontVariant from search of whole string\n if ( font.indexOf('small-caps') > -1 )\n {\n this._fontVariant = 'small-caps';\n }\n else\n {\n this._fontVariant = 'normal';\n }\n\n // fontWeight and fontFamily are tricker to find, but it's easier to find the fontSize due to it's units\n var splits = font.split(' ');\n var i;\n var fontSizeIndex = -1;\n\n this._fontSize = 26;\n for ( i = 0; i < splits.length; ++i )\n {\n if ( splits[i].match( /(px|pt|em|%)/ ) )\n {\n fontSizeIndex = i;\n this._fontSize = splits[i];\n break;\n }\n }\n\n // we can now search for fontWeight as we know it must occur before the fontSize\n this._fontWeight = 'normal';\n for ( i = 0; i < fontSizeIndex; ++i )\n {\n if ( splits[i].match( /(bold|bolder|lighter|100|200|300|400|500|600|700|800|900)/ ) )\n {\n this._fontWeight = splits[i];\n break;\n }\n }\n\n // and finally join everything together after the fontSize in case the font family has multiple words\n if ( fontSizeIndex > -1 && fontSizeIndex < splits.length-1 )\n {\n this._fontFamily = '';\n for ( i = fontSizeIndex + 1; i < splits.length; ++i )\n {\n this._fontFamily += splits[i] + ' ';\n }\n\n this._fontFamily = this._fontFamily.slice(0, -1);\n }\n else\n {\n this._fontFamily = 'Arial';\n }\n\n this.styleID++;\n }\n }\n} );\n\n/**\n * @method\n * @name PIXI.Texture#setFrame\n * @see PIXI.Texture#setFrame\n * @deprecated since version 3.0.0\n */\ncore.Texture.prototype.setFrame = function(frame)\n{\n this.frame = frame;\n warn('setFrame is now deprecated, please use the frame property, e.g : myTexture.frame = frame;');\n};\n\nObject.defineProperties(filters, {\n\n /**\n * @class\n * @private\n * @name PIXI.filters.AbstractFilter\n * @see PIXI.AbstractFilter\n * @deprecated since version 3.0.6\n */\n AbstractFilter: {\n get: function()\n {\n warn('AstractFilter has been renamed to Filter, please use PIXI.Filter');\n return core.AbstractFilter;\n }\n },\n\n /**\n * @class\n * @private\n * @name PIXI.filters.SpriteMaskFilter\n * @see PIXI.SpriteMaskFilter\n * @deprecated since version 3.0.6\n */\n SpriteMaskFilter: {\n get: function()\n {\n warn('filters.SpriteMaskFilter is an undocumented alias, please use SpriteMaskFilter from now on.');\n return core.SpriteMaskFilter;\n }\n }\n});\n\n/**\n * @method\n * @name PIXI.utils.uuid\n * @see PIXI.utils.uid\n * @deprecated since version 3.0.6\n */\ncore.utils.uuid = function ()\n{\n warn('utils.uuid() is deprecated, please use utils.uid() from now on.');\n return core.utils.uid();\n};\n\n/**\n * @method\n * @name PIXI.utils.canUseNewCanvasBlendModes\n * @see PIXI.CanvasTinter\n * @deprecated\n */\ncore.utils.canUseNewCanvasBlendModes = function() {\n warn('utils.canUseNewCanvasBlendModes() is deprecated, please use CanvasTinter.canUseMultiply from now on');\n return core.CanvasTinter.canUseMultiply;\n};\n// @endif","var core = require('../../core'),\n tempRect = new core.Rectangle();\n\n/**\n * The extract manager provides functionality to export content from the renderers\n * @class\n * @memberof PIXI\n * @param renderer {PIXI.CanvasRenderer} A reference to the current renderer\n */\nfunction CanvasExtract(renderer)\n{\n this.renderer = renderer;\n renderer.extract = this;\n}\n\n\nCanvasExtract.prototype.constructor = CanvasExtract;\nmodule.exports = CanvasExtract;\n\n/**\n * Will return a HTML Image of the target\n *\n * @param target {PIXI.DisplayObject|PIXI.RenderTexture} A displayObject or renderTexture to convert. If left empty will use use the main renderer\n * @return {HTMLImageElement} HTML Image of the target\n */\nCanvasExtract.prototype.image = function ( target )\n{\n\tvar image = new Image();\n image.src = this.base64( target );\n return image;\n};\n\n/**\n * Will return a a base64 encoded string of this target. It works by calling CanvasExtract.getCanvas and then running toDataURL on that.\n * @param target {PIXI.DisplayObject|PIXI.RenderTexture} A displayObject or renderTexture to convert. If left empty will use use the main renderer\n * @return {string} A base64 encoded string of the texture.\n */\nCanvasExtract.prototype.base64 = function ( target )\n{\n return this.canvas( target ).toDataURL();\n};\n\n/**\n * Creates a Canvas element, renders this target to it and then returns it.\n * @param target {PIXI.DisplayObject|PIXI.RenderTexture} A displayObject or renderTexture to convert. If left empty will use use the main renderer\n * @return {HTMLCanvasElement} A Canvas element with the texture rendered on.\n */\nCanvasExtract.prototype.canvas = function ( target )\n{\n\tvar renderer = this.renderer;\n\tvar context;\n\tvar resolution;\n var frame;\n var renderTexture;\n\n if(target)\n {\n if(target instanceof core.RenderTexture)\n {\n renderTexture = target;\n }\n else\n {\n renderTexture = renderer.generateTexture(target);\n }\n }\n\n\tif(renderTexture)\n {\n context = renderTexture.baseTexture._canvasRenderTarget.context;\n resolution = renderTexture.baseTexture._canvasRenderTarget.resolution;\n frame = renderTexture.frame;\n }\n else\n {\n context = renderer.rootContext;\n resolution = renderer.rootResolution;\n\n frame = tempRect;\n frame.width = this.renderer.width;\n frame.height = this.renderer.height;\n }\n\n var width = frame.width * resolution;\n var height = frame.height * resolution;\n\n \tvar canvasBuffer = new core.CanvasRenderTarget(width, height);\n var canvasData = context.getImageData(frame.x * resolution, frame.y * resolution, width, height);\n canvasBuffer.context.putImageData(canvasData, 0, 0);\n\n\n // send the canvas back..\n return canvasBuffer.canvas;\n};\n\n/**\n * Will return a one-dimensional array containing the pixel data of the entire texture in RGBA order, with integer values between 0 and 255 (included).\n * @param target {PIXI.DisplayObject|PIXI.RenderTexture} A displayObject or renderTexture to convert. If left empty will use use the main renderer\n * @return {Uint8ClampedArray} One-dimensional array containing the pixel data of the entire texture\n */\nCanvasExtract.prototype.pixels = function ( target )\n{\n var renderer = this.renderer;\n var context;\n var resolution;\n var frame;\n var renderTexture;\n\n if(target)\n {\n if(target instanceof core.RenderTexture)\n {\n renderTexture = target;\n }\n else\n {\n renderTexture = renderer.generateTexture(target);\n }\n }\n\n if(renderTexture)\n {\n context = renderTexture.baseTexture._canvasRenderTarget.context;\n resolution = renderTexture.baseTexture._canvasRenderTarget.resolution;\n frame = renderTexture.frame;\n }\n else\n {\n context = renderer.rootContext;\n resolution = renderer.rootResolution;\n\n frame = tempRect;\n frame.width = renderer.width;\n frame.height = renderer.height;\n }\n\n return context.getImageData(0, 0, frame.width * resolution, frame.height * resolution).data;\n};\n\n/**\n * Destroys the extract\n *\n */\nCanvasExtract.prototype.destroy = function ()\n{\n this.renderer.extract = null;\n this.renderer = null;\n};\n\ncore.CanvasRenderer.registerPlugin('extract', CanvasExtract);\n","\nmodule.exports = {\n webGL: require('./webgl/WebGLExtract'),\n canvas: require('./canvas/CanvasExtract')\n};","var core = require('../../core'),\n tempRect = new core.Rectangle();\n\n/**\n * The extract manager provides functionality to export content from the renderers\n * @class\n * @memberof PIXI\n * @param renderer {PIXI.WebGLRenderer} A reference to the current renderer\n */\nfunction WebGLExtract(renderer)\n{\n this.renderer = renderer;\n renderer.extract = this;\n}\n\n\nWebGLExtract.prototype.constructor = WebGLExtract;\nmodule.exports = WebGLExtract;\n\n/**\n * Will return a HTML Image of the target\n *\n * @param target {PIXI.DisplayObject|PIXI.RenderTexture} A displayObject or renderTexture to convert. If left empty will use use the main renderer\n * @return {HTMLImageElement} HTML Image of the target\n */\nWebGLExtract.prototype.image = function ( target )\n{\n\tvar image = new Image();\n image.src = this.base64( target );\n return image;\n};\n\n/**\n * Will return a a base64 encoded string of this target. It works by calling WebGLExtract.getCanvas and then running toDataURL on that.\n * @param target {PIXI.DisplayObject|PIXI.RenderTexture} A displayObject or renderTexture to convert. If left empty will use use the main renderer\n * @return {string} A base64 encoded string of the texture.\n */\nWebGLExtract.prototype.base64 = function ( target )\n{\n return this.canvas( target ).toDataURL();\n};\n\n/**\n * Creates a Canvas element, renders this target to it and then returns it.\n * @param target {PIXI.DisplayObject|PIXI.RenderTexture} A displayObject or renderTexture to convert. If left empty will use use the main renderer\n * @return {HTMLCanvasElement} A Canvas element with the texture rendered on.\n */\nWebGLExtract.prototype.canvas = function ( target )\n{\n\tvar renderer = this.renderer;\n\tvar textureBuffer;\n\tvar resolution;\n var frame;\n var flipY = false;\n var renderTexture;\n\n if(target)\n {\n if(target instanceof core.RenderTexture)\n {\n renderTexture = target;\n }\n else\n {\n renderTexture = this.renderer.generateTexture(target);\n\n }\n }\n\n\tif(renderTexture)\n\t{\n\t\ttextureBuffer = renderTexture.baseTexture._glRenderTargets[this.renderer.CONTEXT_UID];\n\t\tresolution = textureBuffer.resolution;\n\t frame = renderTexture.frame;\n flipY = false;\n }\n\telse\n\t{\n\t\ttextureBuffer = this.renderer.rootRenderTarget;\n\t\tresolution = textureBuffer.resolution;\n flipY = true;\n\n frame = tempRect;\n frame.width = textureBuffer.size.width;\n frame.height = textureBuffer.size.height;\n\n\t}\n\n\n\n var width = frame.width * resolution;\n var height = frame.height * resolution;\n\n \tvar canvasBuffer = new core.CanvasRenderTarget(width, height);\n\n if(textureBuffer)\n {\n // bind the buffer\n renderer.bindRenderTarget(textureBuffer);\n\n // set up an array of pixels\n var webGLPixels = new Uint8Array(4 * width * height);\n\n // read pixels to the array\n var gl = renderer.gl;\n gl.readPixels(frame.x * resolution, frame.y * resolution, width, height, gl.RGBA, gl.UNSIGNED_BYTE, webGLPixels);\n\n // add the pixels to the canvas\n var canvasData = canvasBuffer.context.getImageData(0, 0, width, height);\n canvasData.data.set(webGLPixels);\n\n canvasBuffer.context.putImageData(canvasData, 0, 0);\n\n // pulling pixels\n if(flipY)\n {\n canvasBuffer.context.scale(1, -1);\n canvasBuffer.context.drawImage(canvasBuffer.canvas, 0,-height);\n }\n }\n\n // send the canvas back..\n return canvasBuffer.canvas;\n};\n\n/**\n * Will return a one-dimensional array containing the pixel data of the entire texture in RGBA order, with integer values between 0 and 255 (included).\n * @param target {PIXI.DisplayObject|PIXI.RenderTexture} A displayObject or renderTexture to convert. If left empty will use use the main renderer\n * @return {Uint8ClampedArray} One-dimensional array containing the pixel data of the entire texture\n */\nWebGLExtract.prototype.pixels = function ( target )\n{\n var renderer = this.renderer;\n var textureBuffer;\n var resolution;\n var frame;\n var renderTexture;\n\n if(target)\n {\n if(target instanceof core.RenderTexture)\n {\n renderTexture = target;\n }\n else\n {\n renderTexture = this.renderer.generateTexture(target);\n }\n }\n\n if(renderTexture)\n {\n textureBuffer = renderTexture.baseTexture._glRenderTargets[this.renderer.CONTEXT_UID];\n resolution = textureBuffer.resolution;\n frame = renderTexture.frame;\n\n }\n else\n {\n textureBuffer = this.renderer.rootRenderTarget;\n resolution = textureBuffer.resolution;\n\n frame = tempRect;\n frame.width = textureBuffer.size.width;\n frame.height = textureBuffer.size.height;\n }\n\n var width = frame.width * resolution;\n var height = frame.height * resolution;\n\n var webGLPixels = new Uint8Array(4 * width * height);\n\n if(textureBuffer)\n {\n // bind the buffer\n renderer.bindRenderTarget(textureBuffer);\n // read pixels to the array\n var gl = renderer.gl;\n gl.readPixels(frame.x * resolution, frame.y * resolution, width, height, gl.RGBA, gl.UNSIGNED_BYTE, webGLPixels);\n }\n\n return webGLPixels;\n};\n\n/**\n * Destroys the extract\n *\n */\nWebGLExtract.prototype.destroy = function ()\n{\n this.renderer.extract = null;\n this.renderer = null;\n};\n\ncore.WebGLRenderer.registerPlugin('extract', WebGLExtract);\n","var core = require('../core'),\n ObservablePoint = require('../core/math/ObservablePoint');\n\n/**\n * A BitmapText object will create a line or multiple lines of text using bitmap font. To\n * split a line you can use '\\n', '\\r' or '\\r\\n' in your string. You can generate the fnt files using:\n *\n * A BitmapText can only be created when the font is loaded\n *\n * ```js\n * // in this case the font is in a file called 'desyrel.fnt'\n * var bitmapText = new PIXI.extras.BitmapText(\"text using a fancy font!\", {font: \"35px Desyrel\", align: \"right\"});\n * ```\n *\n * http://www.angelcode.com/products/bmfont/ for windows or\n * http://www.bmglyph.com/ for mac.\n *\n * @class\n * @extends PIXI.Container\n * @memberof PIXI.extras\n * @param text {string} The copy that you would like the text to display\n * @param style {object} The style parameters\n * @param style.font {string|object} The font descriptor for the object, can be passed as a string of form\n * \"24px FontName\" or \"FontName\" or as an object with explicit name/size properties.\n * @param [style.font.name] {string} The bitmap font id\n * @param [style.font.size] {number} The size of the font in pixels, e.g. 24\n * @param [style.align='left'] {string} Alignment for multiline text ('left', 'center' or 'right'), does not affect\n * single line text\n * @param [style.tint=0xFFFFFF] {number} The tint color\n */\nfunction BitmapText(text, style)\n{\n core.Container.call(this);\n\n style = style || {};\n\n /**\n * The width of the overall text, different from fontSize,\n * which is defined in the style object\n *\n * @member {number}\n * @readonly\n */\n this.textWidth = 0;\n\n /**\n * The height of the overall text, different from fontSize,\n * which is defined in the style object\n *\n * @member {number}\n * @readonly\n */\n this.textHeight = 0;\n\n /**\n * Private tracker for the letter sprite pool.\n *\n * @member {PIXI.Sprite[]}\n * @private\n */\n this._glyphs = [];\n\n /**\n * Private tracker for the current style.\n *\n * @member {object}\n * @private\n */\n this._font = {\n tint: style.tint !== undefined ? style.tint : 0xFFFFFF,\n align: style.align || 'left',\n name: null,\n size: 0\n };\n\n /**\n * Private tracker for the current font.\n *\n * @member {object}\n * @private\n */\n this.font = style.font; // run font setter\n\n /**\n * Private tracker for the current text.\n *\n * @member {string}\n * @private\n */\n this._text = text;\n\n /**\n * The max width of this bitmap text in pixels. If the text provided is longer than the value provided, line breaks will be automatically inserted in the last whitespace.\n * Disable by setting value to 0\n *\n * @member {number}\n */\n this.maxWidth = 0;\n\n /**\n * The max line height. This is useful when trying to use the total height of the Text, ie: when trying to vertically align.\n *\n * @member {number}\n */\n this.maxLineHeight = 0;\n\n /**\n * Text anchor. read-only\n *\n * @member {PIXI.ObservablePoint}\n * @private\n */\n this._anchor = new ObservablePoint(this.makeDirty, this, 0, 0);\n\n /**\n * The dirty state of this object.\n *\n * @member {boolean}\n */\n this.dirty = false;\n\n this.updateText();\n}\n\n// constructor\nBitmapText.prototype = Object.create(core.Container.prototype);\nBitmapText.prototype.constructor = BitmapText;\nmodule.exports = BitmapText;\n\nObject.defineProperties(BitmapText.prototype, {\n /**\n * The tint of the BitmapText object\n *\n * @member {number}\n * @memberof PIXI.extras.BitmapText#\n */\n tint: {\n get: function ()\n {\n return this._font.tint;\n },\n set: function (value)\n {\n this._font.tint = (typeof value === 'number' && value >= 0) ? value : 0xFFFFFF;\n\n this.dirty = true;\n }\n },\n\n /**\n * The alignment of the BitmapText object\n *\n * @member {string}\n * @default 'left'\n * @memberof PIXI.extras.BitmapText#\n */\n align: {\n get: function ()\n {\n return this._font.align;\n },\n set: function (value)\n {\n this._font.align = value || 'left';\n\n this.dirty = true;\n }\n },\n\n /**\n * The anchor sets the origin point of the text.\n * The default is 0,0 this means the text's origin is the top left\n * Setting the anchor to 0.5,0.5 means the text's origin is centered\n * Setting the anchor to 1,1 would mean the text's origin point will be the bottom right corner\n *\n * @member {PIXI.Point | number}\n * @memberof PIXI.extras.BitmapText#\n */\n anchor: {\n get : function() {\n return this._anchor;\n },\n set: function(value) {\n if (typeof value === 'number'){\n this._anchor.set(value);\n }\n else {\n this._anchor.copy(value);\n }\n }\n },\n\n /**\n * The font descriptor of the BitmapText object\n *\n * @member {string|object}\n * @memberof PIXI.extras.BitmapText#\n */\n font: {\n get: function ()\n {\n return this._font;\n },\n set: function (value)\n {\n if (!value) {\n return;\n }\n\n if (typeof value === 'string') {\n value = value.split(' ');\n\n this._font.name = value.length === 1 ? value[0] : value.slice(1).join(' ');\n this._font.size = value.length >= 2 ? parseInt(value[0], 10) : BitmapText.fonts[this._font.name].size;\n }\n else {\n this._font.name = value.name;\n this._font.size = typeof value.size === 'number' ? value.size : parseInt(value.size, 10);\n }\n\n this.dirty = true;\n }\n },\n\n /**\n * The text of the BitmapText object\n *\n * @member {string}\n * @memberof PIXI.extras.BitmapText#\n */\n text: {\n get: function ()\n {\n return this._text;\n },\n set: function (value)\n {\n value = value.toString() || ' ';\n if (this._text === value)\n {\n return;\n }\n this._text = value;\n this.dirty = true;\n }\n }\n});\n\n/**\n * Renders text and updates it when needed\n *\n * @private\n */\nBitmapText.prototype.updateText = function ()\n{\n var data = BitmapText.fonts[this._font.name];\n var pos = new core.Point();\n var prevCharCode = null;\n var chars = [];\n var lastLineWidth = 0;\n var maxLineWidth = 0;\n var lineWidths = [];\n var line = 0;\n var scale = this._font.size / data.size;\n var lastSpace = -1;\n var lastSpaceWidth = 0;\n var maxLineHeight = 0;\n\n for (var i = 0; i < this.text.length; i++)\n {\n var charCode = this.text.charCodeAt(i);\n \n if(/(\\s)/.test(this.text.charAt(i))){\n lastSpace = i;\n lastSpaceWidth = lastLineWidth;\n }\n\n if (/(?:\\r\\n|\\r|\\n)/.test(this.text.charAt(i)))\n {\n lineWidths.push(lastLineWidth);\n maxLineWidth = Math.max(maxLineWidth, lastLineWidth);\n line++;\n\n pos.x = 0;\n pos.y += data.lineHeight;\n prevCharCode = null;\n continue;\n }\n\n if (lastSpace !== -1 && this.maxWidth > 0 && pos.x * scale > this.maxWidth)\n {\n core.utils.removeItems(chars, lastSpace, i - lastSpace);\n i = lastSpace;\n lastSpace = -1;\n\n lineWidths.push(lastSpaceWidth);\n maxLineWidth = Math.max(maxLineWidth, lastSpaceWidth);\n line++;\n\n pos.x = 0;\n pos.y += data.lineHeight;\n prevCharCode = null;\n continue;\n }\n\n var charData = data.chars[charCode];\n\n if (!charData)\n {\n continue;\n }\n\n if (prevCharCode && charData.kerning[prevCharCode])\n {\n pos.x += charData.kerning[prevCharCode];\n }\n\n chars.push({texture:charData.texture, line: line, charCode: charCode, position: new core.Point(pos.x + charData.xOffset, pos.y + charData.yOffset)});\n lastLineWidth = pos.x + (charData.texture.width + charData.xOffset);\n pos.x += charData.xAdvance;\n maxLineHeight = Math.max(maxLineHeight, (charData.yOffset + charData.texture.height));\n prevCharCode = charCode;\n }\n\n lineWidths.push(lastLineWidth);\n maxLineWidth = Math.max(maxLineWidth, lastLineWidth);\n\n var lineAlignOffsets = [];\n\n for (i = 0; i <= line; i++)\n {\n var alignOffset = 0;\n\n if (this._font.align === 'right')\n {\n alignOffset = maxLineWidth - lineWidths[i];\n }\n else if (this._font.align === 'center')\n {\n alignOffset = (maxLineWidth - lineWidths[i]) / 2;\n }\n\n lineAlignOffsets.push(alignOffset);\n }\n\n var lenChars = chars.length;\n var tint = this.tint;\n\n for (i = 0; i < lenChars; i++)\n {\n var c = this._glyphs[i]; // get the next glyph sprite\n\n if (c)\n {\n c.texture = chars[i].texture;\n }\n else\n {\n c = new core.Sprite(chars[i].texture);\n this._glyphs.push(c);\n }\n\n c.position.x = (chars[i].position.x + lineAlignOffsets[chars[i].line]) * scale;\n c.position.y = chars[i].position.y * scale;\n c.scale.x = c.scale.y = scale;\n c.tint = tint;\n\n if (!c.parent)\n {\n this.addChild(c);\n }\n }\n\n // remove unnecessary children.\n for (i = lenChars; i < this._glyphs.length; ++i)\n {\n this.removeChild(this._glyphs[i]);\n }\n\n this.textWidth = maxLineWidth * scale;\n this.textHeight = (pos.y + data.lineHeight) * scale;\n\n // apply anchor\n if (this.anchor.x !== 0 || this.anchor.y !== 0)\n {\n for (i = 0; i < lenChars; i++)\n {\n this._glyphs[i].x -= this.textWidth * this.anchor.x;\n this._glyphs[i].y -= this.textHeight * this.anchor.y;\n }\n }\n this.maxLineHeight = maxLineHeight * scale;\n};\n\n/**\n * Updates the transform of this object\n *\n * @private\n */\nBitmapText.prototype.updateTransform = function ()\n{\n this.validate();\n this.containerUpdateTransform();\n};\n\n/**\n * Validates text before calling parent's getLocalBounds\n *\n * @return {PIXI.Rectangle} The rectangular bounding area\n */\n\nBitmapText.prototype.getLocalBounds = function()\n{\n this.validate();\n return core.Container.prototype.getLocalBounds.call(this);\n};\n\n/**\n * Updates text when needed\n *\n * @private\n */\nBitmapText.prototype.validate = function()\n{\n if (this.dirty)\n {\n this.updateText();\n this.dirty = false;\n }\n};\n\nBitmapText.prototype.makeDirty = function() {\n this.dirty = true;\n};\n\nBitmapText.fonts = {};\n","var core = require('../core');\n\n/**\n * @typedef FrameObject\n * @type {object}\n * @property texture {PIXI.Texture} The {@link PIXI.Texture} of the frame\n * @property time {number} the duration of the frame in ms\n */\n\n/**\n * A MovieClip is a simple way to display an animation depicted by a list of textures.\n *\n * ```js\n * var alienImages = [\"image_sequence_01.png\",\"image_sequence_02.png\",\"image_sequence_03.png\",\"image_sequence_04.png\"];\n * var textureArray = [];\n *\n * for (var i=0; i < 4; i++)\n * {\n * var texture = PIXI.Texture.fromImage(alienImages[i]);\n * textureArray.push(texture);\n * };\n *\n * var mc = new PIXI.MovieClip(textureArray);\n * ```\n *\n *\n * @class\n * @extends PIXI.Sprite\n * @memberof PIXI.extras\n * @param textures {PIXI.Texture[]|FrameObject[]} an array of {@link PIXI.Texture} or frame objects that make up the animation\n */\nfunction MovieClip(textures)\n{\n core.Sprite.call(this, textures[0] instanceof core.Texture ? textures[0] : textures[0].texture);\n\n /**\n * @private\n */\n this._textures = null;\n\n /**\n * @private\n */\n this._durations = null;\n\n this.textures = textures;\n\n /**\n * The speed that the MovieClip will play at. Higher is faster, lower is slower\n *\n * @member {number}\n * @default 1\n */\n this.animationSpeed = 1;\n\n /**\n * Whether or not the movie clip repeats after playing.\n *\n * @member {boolean}\n * @default true\n */\n this.loop = true;\n\n /**\n * Function to call when a MovieClip finishes playing\n *\n * @method\n * @memberof PIXI.extras.MovieClip#\n */\n this.onComplete = null;\n\n /**\n * Elapsed time since animation has been started, used internally to display current texture\n *\n * @member {number}\n * @private\n */\n this._currentTime = 0;\n\n /**\n * Indicates if the MovieClip is currently playing\n *\n * @member {boolean}\n * @readonly\n */\n this.playing = false;\n}\n\n// constructor\nMovieClip.prototype = Object.create(core.Sprite.prototype);\nMovieClip.prototype.constructor = MovieClip;\nmodule.exports = MovieClip;\n\nObject.defineProperties(MovieClip.prototype, {\n /**\n * totalFrames is the total number of frames in the MovieClip. This is the same as number of textures\n * assigned to the MovieClip.\n *\n * @member {number}\n * @memberof PIXI.extras.MovieClip#\n * @default 0\n * @readonly\n */\n totalFrames: {\n get: function()\n {\n return this._textures.length;\n }\n },\n\n /**\n * The array of textures used for this MovieClip\n *\n * @member {PIXI.Texture[]}\n * @memberof PIXI.extras.MovieClip#\n *\n */\n textures: {\n get: function ()\n {\n return this._textures;\n },\n set: function (value)\n {\n if(value[0] instanceof core.Texture)\n {\n this._textures = value;\n this._durations = null;\n }\n else\n {\n this._textures = [];\n this._durations = [];\n for(var i = 0; i < value.length; i++)\n {\n this._textures.push(value[i].texture);\n this._durations.push(value[i].time);\n }\n }\n }\n },\n\n /**\n * The MovieClips current frame index\n *\n * @member {number}\n * @memberof PIXI.extras.MovieClip#\n * @readonly\n */\n currentFrame: {\n get: function ()\n {\n var currentFrame = Math.floor(this._currentTime) % this._textures.length;\n if (currentFrame < 0)\n {\n currentFrame += this._textures.length;\n }\n return currentFrame;\n }\n }\n\n});\n\n/**\n * Stops the MovieClip\n *\n */\nMovieClip.prototype.stop = function ()\n{\n if(!this.playing)\n {\n return;\n }\n\n this.playing = false;\n core.ticker.shared.remove(this.update, this);\n};\n\n/**\n * Plays the MovieClip\n *\n */\nMovieClip.prototype.play = function ()\n{\n if(this.playing)\n {\n return;\n }\n\n this.playing = true;\n core.ticker.shared.add(this.update, this);\n};\n\n/**\n * Stops the MovieClip and goes to a specific frame\n *\n * @param frameNumber {number} frame index to stop at\n */\nMovieClip.prototype.gotoAndStop = function (frameNumber)\n{\n this.stop();\n\n this._currentTime = frameNumber;\n\n this._texture = this._textures[this.currentFrame];\n this._textureID = -1;\n};\n\n/**\n * Goes to a specific frame and begins playing the MovieClip\n *\n * @param frameNumber {number} frame index to start at\n */\nMovieClip.prototype.gotoAndPlay = function (frameNumber)\n{\n this._currentTime = frameNumber;\n\n this.play();\n};\n\n/*\n * Updates the object transform for rendering\n * @private\n */\nMovieClip.prototype.update = function (deltaTime)\n{\n var elapsed = this.animationSpeed * deltaTime;\n\n if (this._durations !== null)\n {\n var lag = this._currentTime % 1 * this._durations[this.currentFrame];\n\n lag += elapsed / 60 * 1000;\n\n while (lag < 0)\n {\n this._currentTime--;\n lag += this._durations[this.currentFrame];\n }\n\n var sign = Math.sign(this.animationSpeed * deltaTime);\n this._currentTime = Math.floor(this._currentTime);\n\n while (lag >= this._durations[this.currentFrame])\n {\n lag -= this._durations[this.currentFrame] * sign;\n this._currentTime += sign;\n }\n\n this._currentTime += lag / this._durations[this.currentFrame];\n }\n else\n {\n this._currentTime += elapsed;\n }\n\n if (this._currentTime < 0 && !this.loop)\n {\n this.gotoAndStop(0);\n\n if (this.onComplete)\n {\n this.onComplete();\n }\n }\n else if (this._currentTime >= this._textures.length && !this.loop)\n {\n this.gotoAndStop(this._textures.length - 1);\n\n if (this.onComplete)\n {\n this.onComplete();\n }\n }\n else\n {\n this._texture = this._textures[this.currentFrame];\n this._textureID = -1;\n }\n\n};\n\n/*\n * Stops the MovieClip and destroys it\n *\n */\nMovieClip.prototype.destroy = function ( )\n{\n this.stop();\n core.Sprite.prototype.destroy.call(this);\n};\n\n/**\n * A short hand way of creating a movieclip from an array of frame ids\n *\n * @static\n * @param frames {string[]} the array of frames ids the movieclip will use as its texture frames\n */\nMovieClip.fromFrames = function (frames)\n{\n var textures = [];\n\n for (var i = 0; i < frames.length; ++i)\n {\n textures.push(core.Texture.fromFrame(frames[i]));\n }\n\n return new MovieClip(textures);\n};\n\n/**\n * A short hand way of creating a movieclip from an array of image ids\n *\n * @static\n * @param images {string[]} the array of image urls the movieclip will use as its texture frames\n */\nMovieClip.fromImages = function (images)\n{\n var textures = [];\n\n for (var i = 0; i < images.length; ++i)\n {\n textures.push(core.Texture.fromImage(images[i]));\n }\n\n return new MovieClip(textures);\n};\n","var core = require('../core'),\n tempPoint = new core.Point(),\n Texture = require('../core/textures/Texture'),\n CanvasTinter = require('../core/sprites/canvas/CanvasTinter'),\n TilingShader = require('./webgl/TilingShader'),\n tempArray = new Float32Array(4);\n/**\n * A tiling sprite is a fast way of rendering a tiling image\n *\n * @class\n * @extends PIXI.Sprite\n * @memberof PIXI.extras\n * @param texture {PIXI.Texture} the texture of the tiling sprite\n * @param width {number} the width of the tiling sprite\n * @param height {number} the height of the tiling sprite\n */\nfunction TilingSprite(texture, width, height)\n{\n core.Sprite.call(this, texture);\n\n /**\n * The scaling of the image that is being tiled\n *\n * @member {PIXI.Point}\n */\n this.tileScale = new core.Point(1,1);\n\n\n /**\n * The offset position of the image that is being tiled\n *\n * @member {PIXI.Point}\n */\n this.tilePosition = new core.Point(0,0);\n\n ///// private\n\n /**\n * The with of the tiling sprite\n *\n * @member {number}\n * @private\n */\n this._width = width || 100;\n\n /**\n * The height of the tiling sprite\n *\n * @member {number}\n * @private\n */\n this._height = height || 100;\n\n /**\n * An internal WebGL UV cache.\n *\n * @member {PIXI.TextureUvs}\n * @private\n */\n this._uvs = new core.TextureUvs();\n\n this._canvasPattern = null;\n\n this._glDatas = [];\n}\n\nTilingSprite.prototype = Object.create(core.Sprite.prototype);\nTilingSprite.prototype.constructor = TilingSprite;\nmodule.exports = TilingSprite;\n\n\nObject.defineProperties(TilingSprite.prototype, {\n /**\n * The width of the sprite, setting this will actually modify the scale to achieve the value set\n *\n * @member {number}\n * @memberof PIXI.extras.TilingSprite#\n */\n width: {\n get: function ()\n {\n return this._width;\n },\n set: function (value)\n {\n this._width = value;\n }\n },\n\n /**\n * The height of the TilingSprite, setting this will actually modify the scale to achieve the value set\n *\n * @member {number}\n * @memberof PIXI.extras.TilingSprite#\n */\n height: {\n get: function ()\n {\n return this._height;\n },\n set: function (value)\n {\n this._height = value;\n }\n }\n});\n\nTilingSprite.prototype._onTextureUpdate = function ()\n{\n return;\n};\n\n\n/**\n * Renders the object using the WebGL renderer\n *\n * @param renderer {PIXI.WebGLRenderer} The renderer\n * @private\n */\nTilingSprite.prototype._renderWebGL = function (renderer)\n{\n\n // tweak our texture temporarily..\n var texture = this._texture;\n\n if(!texture || !texture._uvs)\n {\n return;\n }\n\n // get rid of any thing that may be batching.\n renderer.flush();\n\n var gl = renderer.gl;\n var glData = this._glDatas[renderer.CONTEXT_UID];\n\n if(!glData)\n {\n glData = {\n shader:new TilingShader(gl),\n quad:new core.Quad(gl)\n };\n\n this._glDatas[renderer.CONTEXT_UID] = glData;\n\n glData.quad.initVao(glData.shader);\n }\n\n // if the sprite is trimmed and is not a tilingsprite then we need to add the extra space before transforming the sprite coords..\n var vertices = glData.quad.vertices;\n\n vertices[0] = vertices[6] = ( this._width ) * -this.anchor.x;\n vertices[1] = vertices[3] = this._height * -this.anchor.y;\n\n vertices[2] = vertices[4] = ( this._width ) * (1-this.anchor.x);\n vertices[5] = vertices[7] = this._height * (1-this.anchor.y);\n\n glData.quad.upload();\n\n renderer.bindShader(glData.shader);\n\n var textureUvs = texture._uvs,\n textureWidth = texture._frame.width,\n textureHeight = texture._frame.height,\n textureBaseWidth = texture.baseTexture.width,\n textureBaseHeight = texture.baseTexture.height;\n\n var uPixelSize = glData.shader.uniforms.uPixelSize;\n uPixelSize[0] = 1.0/textureBaseWidth;\n uPixelSize[1] = 1.0/textureBaseHeight;\n glData.shader.uniforms.uPixelSize = uPixelSize;\n\n var uFrame = glData.shader.uniforms.uFrame;\n uFrame[0] = textureUvs.x0;\n uFrame[1] = textureUvs.y0;\n uFrame[2] = textureUvs.x1 - textureUvs.x0;\n uFrame[3] = textureUvs.y2 - textureUvs.y0;\n glData.shader.uniforms.uFrame = uFrame;\n\n var uTransform = glData.shader.uniforms.uTransform;\n uTransform[0] = (this.tilePosition.x % (textureWidth * this.tileScale.x)) / this._width;\n uTransform[1] = (this.tilePosition.y % (textureHeight * this.tileScale.y)) / this._height;\n uTransform[2] = ( textureBaseWidth / this._width ) * this.tileScale.x;\n uTransform[3] = ( textureBaseHeight / this._height ) * this.tileScale.y;\n glData.shader.uniforms.uTransform = uTransform;\n\n glData.shader.uniforms.translationMatrix = this.worldTransform.toArray(true);\n\n var color = tempArray;\n\n core.utils.hex2rgb(this.tint, color);\n color[3] = this.worldAlpha;\n\n glData.shader.uniforms.uColor = color;\n\n renderer.bindTexture(this._texture, 0);\n\n renderer.state.setBlendMode( this.blendMode );\n glData.quad.draw();\n};\n\n/**\n * Renders the object using the Canvas renderer\n *\n * @param renderer {PIXI.CanvasRenderer} a reference to the canvas renderer\n * @private\n */\nTilingSprite.prototype._renderCanvas = function (renderer)\n{\n var texture = this._texture;\n\n if (!texture.baseTexture.hasLoaded)\n {\n return;\n }\n\n var context = renderer.context,\n transform = this.worldTransform,\n resolution = renderer.resolution,\n baseTexture = texture.baseTexture,\n modX = (this.tilePosition.x / this.tileScale.x) % texture._frame.width,\n modY = (this.tilePosition.y / this.tileScale.y) % texture._frame.height;\n\n // create a nice shiny pattern!\n // TODO this needs to be refreshed if texture changes..\n if(!this._canvasPattern)\n {\n // cut an object from a spritesheet..\n var tempCanvas = new core.CanvasRenderTarget(texture._frame.width, texture._frame.height);\n\n // Tint the tiling sprite\n if (this.tint !== 0xFFFFFF)\n {\n if (this.cachedTint !== this.tint)\n {\n this.cachedTint = this.tint;\n\n this.tintedTexture = CanvasTinter.getTintedTexture(this, this.tint);\n }\n tempCanvas.context.drawImage(this.tintedTexture, 0, 0);\n }\n else\n {\n tempCanvas.context.drawImage(baseTexture.source, -texture._frame.x, -texture._frame.y);\n }\n this._canvasPattern = tempCanvas.context.createPattern( tempCanvas.canvas, 'repeat' );\n }\n\n // set context state..\n context.globalAlpha = this.worldAlpha;\n context.setTransform(transform.a * resolution,\n transform.b * resolution,\n transform.c * resolution,\n transform.d * resolution,\n transform.tx * resolution,\n transform.ty * resolution);\n\n // TODO - this should be rolled into the setTransform above..\n context.scale(this.tileScale.x,this.tileScale.y);\n\n context.translate(modX + (this.anchor.x * -this._width ),\n modY + (this.anchor.y * -this._height));\n\n // check blend mode\n var compositeOperation = renderer.blendModes[this.blendMode];\n if (compositeOperation !== renderer.context.globalCompositeOperation)\n {\n context.globalCompositeOperation = compositeOperation;\n }\n\n // fill the pattern!\n context.fillStyle = this._canvasPattern;\n context.fillRect(-modX,\n -modY,\n this._width / this.tileScale.x,\n this._height / this.tileScale.y);\n\n\n //TODO - pretty sure this can be deleted...\n //context.translate(-this.tilePosition.x + (this.anchor.x * this._width), -this.tilePosition.y + (this.anchor.y * this._height));\n //context.scale(1 / this.tileScale.x, 1 / this.tileScale.y);\n};\n\n\n/**\n * Returns the framing rectangle of the sprite as a Rectangle object\n*\n * @return {PIXI.Rectangle} the framing rectangle\n */\nTilingSprite.prototype.getBounds = function ()\n{\n var width = this._width;\n var height = this._height;\n\n var w0 = width * (1-this.anchor.x);\n var w1 = width * -this.anchor.x;\n\n var h0 = height * (1-this.anchor.y);\n var h1 = height * -this.anchor.y;\n\n var worldTransform = this.worldTransform;\n\n var a = worldTransform.a;\n var b = worldTransform.b;\n var c = worldTransform.c;\n var d = worldTransform.d;\n var tx = worldTransform.tx;\n var ty = worldTransform.ty;\n\n var x1 = a * w1 + c * h1 + tx;\n var y1 = d * h1 + b * w1 + ty;\n\n var x2 = a * w0 + c * h1 + tx;\n var y2 = d * h1 + b * w0 + ty;\n\n var x3 = a * w0 + c * h0 + tx;\n var y3 = d * h0 + b * w0 + ty;\n\n var x4 = a * w1 + c * h0 + tx;\n var y4 = d * h0 + b * w1 + ty;\n\n var minX,\n maxX,\n minY,\n maxY;\n\n minX = x1;\n minX = x2 < minX ? x2 : minX;\n minX = x3 < minX ? x3 : minX;\n minX = x4 < minX ? x4 : minX;\n\n minY = y1;\n minY = y2 < minY ? y2 : minY;\n minY = y3 < minY ? y3 : minY;\n minY = y4 < minY ? y4 : minY;\n\n maxX = x1;\n maxX = x2 > maxX ? x2 : maxX;\n maxX = x3 > maxX ? x3 : maxX;\n maxX = x4 > maxX ? x4 : maxX;\n\n maxY = y1;\n maxY = y2 > maxY ? y2 : maxY;\n maxY = y3 > maxY ? y3 : maxY;\n maxY = y4 > maxY ? y4 : maxY;\n\n var bounds = this._bounds;\n\n bounds.x = minX;\n bounds.width = maxX - minX;\n\n bounds.y = minY;\n bounds.height = maxY - minY;\n\n // store a reference so that if this function gets called again in the render cycle we do not have to recalculate\n this._currentBounds = bounds;\n\n return bounds;\n};\n\n/**\n * Checks if a point is inside this tiling sprite\n * @param point {PIXI.Point} the point to check\n */\nTilingSprite.prototype.containsPoint = function( point )\n{\n this.worldTransform.applyInverse(point, tempPoint);\n\n var width = this._width;\n var height = this._height;\n var x1 = -width * this.anchor.x;\n var y1;\n\n if ( tempPoint.x > x1 && tempPoint.x < x1 + width )\n {\n y1 = -height * this.anchor.y;\n\n if ( tempPoint.y > y1 && tempPoint.y < y1 + height )\n {\n return true;\n }\n }\n\n return false;\n};\n\n/**\n * Destroys this tiling sprite\n *\n */\nTilingSprite.prototype.destroy = function () {\n core.Sprite.prototype.destroy.call(this);\n\n this.tileScale = null;\n this._tileScaleOffset = null;\n this.tilePosition = null;\n\n this._uvs = null;\n};\n\n/**\n * Helper function that creates a new tiling sprite based on the source you provide.\n * The source can be - frame id, image url, video url, canvas element, video element, base texture\n *\n * @static\n * @param {number|string|PIXI.BaseTexture|HTMLCanvasElement|HTMLVideoElement} source Source to create texture from\n* @param width {number} the width of the tiling sprite\n * @param height {number} the height of the tiling sprite\n * @return {PIXI.Texture} The newly created texture\n */\nTilingSprite.from = function (source,width,height)\n{\n return new TilingSprite(Texture.from(source),width,height);\n};\n\n\n\n/**\n * Helper function that creates a tiling sprite that will use a texture from the TextureCache based on the frameId\n * The frame ids are created when a Texture packer file has been loaded\n *\n * @static\n * @param frameId {string} The frame Id of the texture in the cache\n * @return {PIXI.extras.TilingSprite} A new TilingSprite using a texture from the texture cache matching the frameId\n * @param width {number} the width of the tiling sprite\n * @param height {number} the height of the tiling sprite\n * @return {PIXI.extras.TilingSprite} A new TilingSprite\n */\nTilingSprite.fromFrame = function (frameId,width,height)\n{\n var texture = core.utils.TextureCache[frameId];\n\n if (!texture)\n {\n throw new Error('The frameId \"' + frameId + '\" does not exist in the texture cache ' + this);\n }\n\n return new TilingSprite(texture,width,height);\n};\n\n/**\n * 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\n *\n * @static\n * @param imageId {string} The image url of the texture\n * @param width {number} the width of the tiling sprite\n * @param height {number} the height of the tiling sprite\n * @param [crossorigin=(auto)] {boolean} if you want to specify the cross-origin parameter\n * @param [scaleMode=PIXI.SCALE_MODES.DEFAULT] {number} if you want to specify the scale mode, see {@link PIXI.SCALE_MODES} for possible values\n * @return {PIXI.extras.TilingSprite} A new TilingSprite using a texture from the texture cache matching the image id\n */\nTilingSprite.fromImage = function (imageId, width, height, crossorigin, scaleMode)\n{\n return new TilingSprite(core.Texture.fromImage(imageId, crossorigin, scaleMode),width,height);\n};\n","var core = require('../core'),\n DisplayObject = core.DisplayObject,\n _tempMatrix = new core.Matrix();\n\nDisplayObject.prototype._cacheAsBitmap = false;\nDisplayObject.prototype._cacheData = false;\n\n// figured theres no point adding ALL the extra variables to prototype.\n// this model can hold the information needed. This can also be generated on demand as\n// most objects are not cached as bitmaps.\nvar CacheData = function(){\n\n this.originalRenderWebGL = null;\n this.originalRenderCanvas = null;\n\n this.originalUpdateTransform = null;\n this.originalHitTest = null;\n this.originalDestroy = null;\n this.originalMask = null;\n this.originalFilterArea = null;\n this.sprite = null;\n};\n\n\nObject.defineProperties(DisplayObject.prototype, {\n\n /**\n * Set this to true if you want this display object to be cached as a bitmap.\n * This basically takes a snap shot of the display object as it is at that moment. It can provide a performance benefit for complex static displayObjects.\n * To remove simply set this property to 'false'\n *\n * @member {boolean}\n * @memberof PIXI.DisplayObject#\n */\n cacheAsBitmap: {\n get: function ()\n {\n return this._cacheAsBitmap;\n },\n set: function (value)\n {\n if (this._cacheAsBitmap === value)\n {\n return;\n }\n\n this._cacheAsBitmap = value;\n\n var data;\n\n if (value)\n {\n\n if(!this._cacheData)\n {\n this._cacheData = new CacheData();\n }\n\n data = this._cacheData;\n\n data.originalRenderWebGL = this.renderWebGL;\n data.originalRenderCanvas = this.renderCanvas;\n\n data.originalUpdateTransform = this.updateTransform;\n data.originalGetBounds = this.getBounds;\n\n data.originalDestroy = this.destroy;\n\n data.originalContainsPoint = this.containsPoint;\n\n data.originalMask = this._mask;\n data.originalFilterArea = this.filterArea;\n\n\n\n this.renderWebGL = this._renderCachedWebGL;\n this.renderCanvas = this._renderCachedCanvas;\n\n this.destroy = this._cacheAsBitmapDestroy;\n\n }\n else\n {\n data = this._cacheData;\n\n if (data.sprite)\n {\n this._destroyCachedDisplayObject();\n }\n\n\n this.renderWebGL = data.originalRenderWebGL;\n this.renderCanvas = data.originalRenderCanvas;\n this.getBounds = data.originalGetBounds;\n\n this.destroy = data.originalDestroy;\n\n this.updateTransform = data.originalUpdateTransform;\n this.containsPoint = data.originalContainsPoint;\n\n this._mask = data.originalMask;\n this.filterArea = data.originalFilterArea;\n }\n }\n }\n});\n/**\n* Renders a cached version of the sprite with WebGL\n*\n* @param renderer {PIXI.WebGLRenderer} the WebGL renderer\n* @private\n*/\nDisplayObject.prototype._renderCachedWebGL = function (renderer)\n{\n if (!this.visible || this.worldAlpha <= 0 || !this.renderable)\n {\n return;\n }\n\n this._initCachedDisplayObject( renderer );\n\n this._cacheData.sprite._transformID = -1;\n this._cacheData.sprite.worldAlpha = this.worldAlpha;\n this._cacheData.sprite._renderWebGL(renderer);\n};\n\n/**\n* Prepares the WebGL renderer to cache the sprite\n*\n* @param renderer {PIXI.WebGLRenderer} the WebGL renderer\n* @private\n*/\nDisplayObject.prototype._initCachedDisplayObject = function (renderer)\n{\n if(this._cacheData && this._cacheData.sprite)\n {\n return;\n }\n\n // first we flush anything left in the renderer (otherwise it would get rendered to the cached texture)\n renderer.currentRenderer.flush();\n //this.filters= [];\n // next we find the dimensions of the untransformed object\n // this function also calls updatetransform on all its children as part of the measuring. This means we don't need to update the transform again in this function\n // TODO pass an object to clone too? saves having to create a new one each time!\n var bounds = this.getLocalBounds().clone();\n\n // add some padding!\n if(this._filters)\n {\n var padding = this._filters[0].padding;\n bounds.x -= padding;\n bounds.y -= padding;\n\n bounds.width += padding * 2;\n bounds.height += padding * 2;\n }\n\n // for now we cache the current renderTarget that the webGL renderer is currently using.\n // this could be more elegent..\n var cachedRenderTarget = renderer._activeRenderTarget;\n // We also store the filter stack - I will definitely look to change how this works a little later down the line.\n var stack = renderer.filterManager.filterStack;\n\n // this renderTexture will be used to store the cached DisplayObject\n\n var renderTexture = core.RenderTexture.create(bounds.width | 0, bounds.height | 0);\n\n // need to set //\n var m = _tempMatrix;\n m.tx = -bounds.x;\n m.ty = -bounds.y;\n\n // reset\n this.transform.worldTransform.identity();\n\n // set all properties to there original so we can render to a texture\n this.renderWebGL = this._cacheData.originalRenderWebGL;\n\n renderer.render(this, renderTexture, true, m, true);\n // now restore the state be setting the new properties\n\n renderer.bindRenderTarget(cachedRenderTarget);\n\n renderer.filterManager.filterStack = stack;\n\n this.renderWebGL = this._renderCachedWebGL;\n this.updateTransform = this.displayObjectUpdateTransform;\n this.getBounds = this._getCachedBounds;\n\n this._mask = null;\n this.filterArea = null;\n\n // create our cached sprite\n var cachedSprite = new core.Sprite(renderTexture);\n cachedSprite.transform.worldTransform = this.transform.worldTransform;\n cachedSprite.anchor.x = -( bounds.x / bounds.width );\n cachedSprite.anchor.y = -( bounds.y / bounds.height );\n\n this._cacheData.sprite = cachedSprite;\n\n this.transform._parentID = -1;\n // restore the transform of the cached sprite to avoid the nasty flicker..\n this.updateTransform();\n\n // map the hit test..\n this.containsPoint = cachedSprite.containsPoint.bind(cachedSprite);\n};\n\n/**\n* Renders a cached version of the sprite with canvas\n*\n* @param renderer {PIXI.CanvasRenderer} the Canvas renderer\n* @private\n*/\nDisplayObject.prototype._renderCachedCanvas = function (renderer)\n{\n if (!this.visible || this.worldAlpha <= 0 || !this.renderable)\n {\n return;\n }\n\n this._initCachedDisplayObjectCanvas( renderer );\n\n this._cacheData.sprite.worldAlpha = this.worldAlpha;\n\n this._cacheData.sprite.renderCanvas(renderer);\n};\n\n//TODO this can be the same as the webGL verison.. will need to do a little tweaking first though..\n/**\n* Prepares the Canvas renderer to cache the sprite\n*\n* @param renderer {PIXI.CanvasRenderer} the Canvas renderer\n* @private\n*/\nDisplayObject.prototype._initCachedDisplayObjectCanvas = function (renderer)\n{\n if(this._cacheData && this._cacheData.sprite)\n {\n return;\n }\n\n //get bounds actually transforms the object for us already!\n var bounds = this.getLocalBounds();\n\n var cachedRenderTarget = renderer.context;\n\n var renderTexture = new core.RenderTexture.create(bounds.width | 0, bounds.height | 0);\n\n // need to set //\n var m = _tempMatrix;\n this.transform.worldTransform.copy(m);\n m.invert();\n\n m.tx -= bounds.x;\n m.ty -= bounds.y;\n\n //m.append(this.transform.worldTransform.)\n // set all properties to there original so we can render to a texture\n this.renderCanvas = this._cacheData.originalRenderCanvas;\n\n //renderTexture.render(this, m, true);\n renderer.render(this, renderTexture, true, m, false);\n\n // now restore the state be setting the new properties\n renderer.context = cachedRenderTarget;\n\n this.renderCanvas = this._renderCachedCanvas;\n this.updateTransform = this.displayObjectUpdateTransform;\n this.getBounds = this._getCachedBounds;\n\n this._mask = null;\n this.filterArea = null;\n\n // create our cached sprite\n var cachedSprite = new core.Sprite(renderTexture);\n cachedSprite.transform.worldTransform = this.transform.worldTransform;\n cachedSprite.anchor.x = -( bounds.x / bounds.width );\n cachedSprite.anchor.y = -( bounds.y / bounds.height );\n\n this.updateTransform();\n\n this._cacheData.sprite = cachedSprite;\n\n this.containsPoint = cachedSprite.containsPoint.bind(cachedSprite);\n};\n\n/**\n* Calculates the bounds of the cached sprite\n*\n* @private\n*/\nDisplayObject.prototype._getCachedBounds = function ()\n{\n this._cacheData.sprite._currentBounds = null;\n\n return this._cacheData.sprite.getBounds();\n};\n\n/**\n* Destroys the cached sprite.\n*\n* @private\n*/\nDisplayObject.prototype._destroyCachedDisplayObject = function ()\n{\n this._cacheData.sprite._texture.destroy(true);\n this._cacheData.sprite = null;\n};\n\nDisplayObject.prototype._cacheAsBitmapDestroy = function ()\n{\n this.cacheAsBitmap = false;\n this.destroy();\n};\n","var core = require('../core');\n\n/**\n * The instance name of the object.\n *\n * @memberof PIXI.DisplayObject#\n * @member {string}\n */\ncore.DisplayObject.prototype.name = null;\n\n/**\n* Returns the display object in the container\n*\n* @memberof PIXI.Container#\n* @param name {string} instance name\n* @return {PIXI.DisplayObject}\n*/\ncore.Container.prototype.getChildByName = function (name)\n{\n for (var i = 0; i < this.children.length; i++)\n {\n if (this.children[i].name === name)\n {\n return this.children[i];\n }\n }\n return null;\n};\n","var core = require('../core');\n\n/**\n* Returns the global position of the displayObject\n*\n* @memberof PIXI.DisplayObject#\n* @param point {Point} the point to write the global value to. If null a new point will be returned\n* @return {Point}\n*/\ncore.DisplayObject.prototype.getGlobalPosition = function (point)\n{\n point = point || new core.Point();\n\n if(this.parent)\n {\n this.displayObjectUpdateTransform();\n\n point.x = this.worldTransform.tx;\n point.y = this.worldTransform.ty;\n }\n else\n {\n point.x = this.position.x;\n point.y = this.position.y;\n }\n\n return point;\n};\n","/**\n * @file Main export of the PIXI extras library\n * @author Mat Groves \n * @copyright 2013-2015 GoodBoyDigital\n * @license {@link https://github.com/pixijs/pixi.js/blob/master/LICENSE|MIT License}\n */\n\nrequire('./cacheAsBitmap');\nrequire('./getChildByName');\nrequire('./getGlobalPosition');\n\n/**\n * @namespace PIXI.extras\n */\nmodule.exports = {\n MovieClip: require('./MovieClip'),\n TilingSprite: require('./TilingSprite'),\n BitmapText: require('./BitmapText')\n};\n","var Shader = require('../../core/Shader');\n\n\n/**\n * @class\n * @extends PIXI.Shader\n * @memberof PIXI.mesh\n * @param gl {PIXI.Shader} The WebGL shader manager this shader works for.\n */\nfunction TilingShader(gl)\n{\n Shader.call(this,\n gl,\n \"#define GLSLIFY 1\\nattribute vec2 aVertexPosition;\\nattribute vec2 aTextureCoord;\\n\\nuniform mat3 projectionMatrix;\\nuniform mat3 translationMatrix;\\n\\nuniform vec4 uFrame;\\nuniform vec4 uTransform;\\n\\nvarying vec2 vTextureCoord;\\n\\nvoid main(void)\\n{\\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\\n\\n vec2 coord = aTextureCoord;\\n coord -= uTransform.xy;\\n coord /= uTransform.zw;\\n vTextureCoord = coord;\\n}\\n\",\n \"#define GLSLIFY 1\\nvarying vec2 vTextureCoord;\\n\\nuniform sampler2D uSampler;\\nuniform vec4 uColor;\\nuniform vec4 uFrame;\\nuniform vec2 uPixelSize;\\n\\nvoid main(void)\\n{\\n\\n \\tvec2 coord = mod(vTextureCoord, uFrame.zw);\\n \\tcoord = clamp(coord, uPixelSize, uFrame.zw - uPixelSize);\\n \\tcoord += uFrame.xy;\\n\\n \\tvec4 sample = texture2D(uSampler, coord);\\n \\tvec4 color = vec4(uColor.rgb * uColor.a, uColor.a);\\n\\n \\tgl_FragColor = sample * color ;\\n}\\n\"\n );\n}\n\nTilingShader.prototype = Object.create(Shader.prototype);\nTilingShader.prototype.constructor = TilingShader;\nmodule.exports = TilingShader;\n\n","var core = require('../../core'),\n BlurXFilter = require('./BlurXFilter'),\n BlurYFilter = require('./BlurYFilter');\n\n/**\n * The BlurFilter applies a Gaussian blur to an object.\n * The strength of the blur can be set for x- and y-axis separately.\n *\n * @class\n * @extends PIXI.Filter\n * @memberof PIXI.filters\n */\nfunction BlurFilter(strength, quality, resolution)\n{\n core.Filter.call(this);\n\n this.blurXFilter = new BlurXFilter();\n this.blurYFilter = new BlurYFilter();\n this.resolution = 1;\n\n this.padding = 0;\n this.resolution = resolution || 1;\n this.quality = quality || 4;\n this.blur = strength || 8;\n}\n\nBlurFilter.prototype = Object.create(core.Filter.prototype);\nBlurFilter.prototype.constructor = BlurFilter;\nmodule.exports = BlurFilter;\n\nBlurFilter.prototype.apply = function (filterManager, input, output)\n{\n\n var renderTarget = filterManager.getRenderTarget(true);\n\n this.blurXFilter.apply(filterManager, input, renderTarget, true);\n this.blurYFilter.apply(filterManager, renderTarget, output, false);\n\n filterManager.returnRenderTarget(renderTarget);\n};\n\nObject.defineProperties(BlurFilter.prototype, {\n /**\n * Sets the strength of both the blurX and blurY properties simultaneously\n *\n * @member {number}\n * @memberOf PIXI.filters.BlurFilter#\n * @default 2\n */\n blur: {\n get: function ()\n {\n return this.blurXFilter.blur;\n },\n set: function (value)\n {\n this.blurXFilter.blur = this.blurYFilter.blur = value;\n this.padding = Math.max( Math.abs(this.blurYFilter.strength), Math.abs(this.blurYFilter.strength)) * 2;\n }\n },\n\n /**\n * Sets the number of passes for blur. More passes means higher quaility bluring.\n *\n * @member {number}\n * @memberof PIXI.filters.BlurYFilter#\n * @default 1\n */\n quality: {\n get: function ()\n {\n return this.blurXFilter.quality;\n },\n set: function (value)\n {\n\n this.blurXFilter.quality = this.blurYFilter.quality = value;\n }\n },\n\n /**\n * Sets the strength of the blurX property\n *\n * @member {number}\n * @memberOf PIXI.filters.BlurFilter#\n * @default 2\n */\n blurX: {\n get: function ()\n {\n return this.blurXFilter.blur;\n },\n set: function (value)\n {\n this.blurXFilter.blur = value;\n this.padding = Math.max( Math.abs(this.blurYFilter.strength), Math.abs(this.blurYFilter.strength)) * 2;\n }\n },\n\n /**\n * Sets the strength of the blurY property\n *\n * @member {number}\n * @memberOf PIXI.filters.BlurFilter#\n * @default 2\n */\n blurY: {\n get: function ()\n {\n return this.blurYFilter.blur;\n },\n set: function (value)\n {\n this.blurYFilter.blur = value;\n this.padding = Math.max( Math.abs(this.blurYFilter.strength), Math.abs(this.blurYFilter.strength)) * 2;\n }\n }\n});\n","var core = require('../../core');\nvar generateBlurVertSource = require('./generateBlurVertSource');\nvar generateBlurFragSource = require('./generateBlurFragSource');\nvar getMaxBlurKernelSize = require('./getMaxBlurKernelSize');\n\n/**\n * The BlurXFilter applies a horizontal Gaussian blur to an object.\n *\n * @class\n * @extends PIXI.Filter\n * @memberof PIXI.filters\n */\nfunction BlurXFilter(strength, quality, resolution)\n{\n var vertSrc = generateBlurVertSource(5, true);\n var fragSrc = generateBlurFragSource(5);\n\n core.Filter.call(this,\n // vertex shader\n vertSrc,\n // fragment shader\n fragSrc\n );\n\n this.resolution = resolution || 1;\n\n this._quality = 0;\n\n this.quality = quality || 4;\n this.strength = strength || 8;\n\n this.firstRun = true;\n\n}\n\nBlurXFilter.prototype = Object.create(core.Filter.prototype);\nBlurXFilter.prototype.constructor = BlurXFilter;\nmodule.exports = BlurXFilter;\n\nBlurXFilter.prototype.apply = function (filterManager, input, output, clear)\n{\n if(this.firstRun)\n {\n var gl = filterManager.renderer.gl;\n var kernelSize = getMaxBlurKernelSize(gl);\n\n this.vertexSrc = generateBlurVertSource(kernelSize, true);\n this.fragmentSrc = generateBlurFragSource(kernelSize);\n\n this.firstRun = false;\n }\n\n this.uniforms.strength = (1/output.size.width) * (output.size.width/input.size.width); /// // * 2 //4//this.strength / 4 / this.passes * (input.frame.width / input.size.width);\n\n // screen space!\n this.uniforms.strength *= this.strength;\n this.uniforms.strength /= this.passes;// / this.passes//Math.pow(1, this.passes);\n\n if(this.passes === 1)\n {\n filterManager.applyFilter(this, input, output, clear);\n }\n else\n {\n var renderTarget = filterManager.getRenderTarget(true);\n var flip = input;\n var flop = renderTarget;\n\n for(var i = 0; i < this.passes-1; i++)\n {\n filterManager.applyFilter(this, flip, flop, true);\n\n var temp = flop;\n flop = flip;\n flip = temp;\n }\n\n filterManager.applyFilter(this, flip, output, clear);\n\n filterManager.returnRenderTarget(renderTarget);\n }\n};\n\n\nObject.defineProperties(BlurXFilter.prototype, {\n /**\n * Sets the strength of both the blur.\n *\n * @member {number}\n * @memberof PIXI.filters.BlurXFilter#\n * @default 16\n */\n blur: {\n get: function ()\n {\n return this.strength;\n },\n set: function (value)\n {\n this.padding = Math.abs(value) * 2;\n this.strength = value;\n }\n },\n\n /**\n * Sets the quality of the blur by modifying the number of passes. More passes means higher quaility bluring but the lower the performance.\n *\n * @member {number}\n * @memberof PIXI.filters.BlurXFilter#\n * @default 4\n */\n quality: {\n get: function ()\n {\n return this._quality;\n },\n set: function (value)\n {\n this._quality = value;\n this.passes = value;\n }\n }\n});\n","var core = require('../../core');\nvar generateBlurVertSource = require('./generateBlurVertSource');\nvar generateBlurFragSource = require('./generateBlurFragSource');\nvar getMaxBlurKernelSize = require('./getMaxBlurKernelSize');\n\n/**\n * The BlurYFilter applies a horizontal Gaussian blur to an object.\n *\n * @class\n * @extends PIXI.Filter\n * @memberof PIXI.filters\n */\nfunction BlurYFilter(strength, quality, resolution)\n{\n var vertSrc = generateBlurVertSource(5, false);\n var fragSrc = generateBlurFragSource(5);\n\n core.Filter.call(this,\n // vertex shader\n vertSrc,\n // fragment shader\n fragSrc\n );\n\n this.resolution = resolution || 1;\n\n this._quality = 0;\n\n this.quality = quality || 4;\n this.strength = strength || 8;\n\n this.firstRun = true;\n}\n\nBlurYFilter.prototype = Object.create(core.Filter.prototype);\nBlurYFilter.prototype.constructor = BlurYFilter;\nmodule.exports = BlurYFilter;\n\nBlurYFilter.prototype.apply = function (filterManager, input, output, clear)\n{\n if(this.firstRun)\n {\n var gl = filterManager.renderer.gl;\n var kernelSize = getMaxBlurKernelSize(gl);\n\n this.vertexSrc = generateBlurVertSource(kernelSize, false);\n this.fragmentSrc = generateBlurFragSource(kernelSize);\n\n this.firstRun = false;\n }\n\n this.uniforms.strength = (1/output.size.height) * (output.size.height/input.size.height); /// // * 2 //4//this.strength / 4 / this.passes * (input.frame.width / input.size.width);\n\n this.uniforms.strength *= this.strength;\n this.uniforms.strength /= this.passes;\n\n if(this.passes === 1)\n {\n filterManager.applyFilter(this, input, output, clear);\n }\n else\n {\n var renderTarget = filterManager.getRenderTarget(true);\n var flip = input;\n var flop = renderTarget;\n\n for(var i = 0; i < this.passes-1; i++)\n {\n filterManager.applyFilter(this, flip, flop, true);\n\n var temp = flop;\n flop = flip;\n flip = temp;\n }\n\n filterManager.applyFilter(this, flip, output, clear);\n\n filterManager.returnRenderTarget(renderTarget);\n }\n};\n\n\nObject.defineProperties(BlurYFilter.prototype, {\n /**\n * Sets the strength of both the blur.\n *\n * @member {number}\n * @memberof PIXI.filters.BlurYFilter#\n * @default 2\n */\n blur: {\n get: function ()\n {\n return this.strength;\n },\n set: function (value)\n {\n this.padding = Math.abs(value) * 2;\n this.strength = value;\n }\n },\n\n /**\n * Sets the quality of the blur by modifying the number of passes. More passes means higher quaility bluring but the lower the performance.\n *\n * @member {number}\n * @memberof PIXI.filters.BlurXFilter#\n * @default 4\n */\n quality: {\n get: function ()\n {\n return this._quality;\n },\n set: function (value)\n {\n this._quality = value;\n this.passes = value;\n }\n }\n});\n","var GAUSSIAN_VALUES = {\n\t5:[0.153388, 0.221461, 0.250301],\n\t7:[0.071303, 0.131514, 0.189879, 0.214607],\n\t9:[0.028532, 0.067234, 0.124009, 0.179044, 0.20236],\n\t11:[0.0093, 0.028002, 0.065984, 0.121703, 0.175713, 0.198596],\n\t13:[0.002406, 0.009255, 0.027867, 0.065666, 0.121117, 0.174868, 0.197641],\n 15:[0.000489, 0.002403, 0.009246, 0.02784, 0.065602, 0.120999, 0.174697, 0.197448]\n};\n\nvar fragTemplate = [\n\t'varying vec2 vBlurTexCoords[%size%];',\n\t'uniform sampler2D uSampler;',\n\n\t'void main(void)',\n\t'{',\n\t'\tgl_FragColor = vec4(0.0);',\n\t'\t%blur%',\n\t'}'\n\n].join('\\n');\n\nvar generateFragBlurSource = function(kernelSize)\n{\n var kernel = GAUSSIAN_VALUES[kernelSize];\n var halfLength = kernel.length;\n\n var fragSource = fragTemplate;\n\n var blurLoop = '';\n var template = 'gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;';\n\t\tvar value;\n\n for (var i = 0; i < kernelSize; i++)\n {\n \tvar blur = template.replace('%index%', i);\n\n \tvalue = i;\n\n \tif(i >= halfLength)\n \t{\n \t\tvalue = kernelSize - i - 1;\n \t}\n\n\n \tblur = blur.replace('%value%', kernel[value]);\n\n \tblurLoop += blur;\n \tblurLoop += '\\n';\n }\n\n fragSource = fragSource.replace('%blur%', blurLoop);\n fragSource = fragSource.replace('%size%', kernelSize);\n\n\n return fragSource;\n};\n\n\n\nmodule.exports = generateFragBlurSource;\n","\nvar vertTemplate = [\n\t'attribute vec2 aVertexPosition;',\n\t'attribute vec2 aTextureCoord;',\n\n\t'uniform float strength;',\n\t'uniform mat3 projectionMatrix;',\n\n\t'varying vec2 vBlurTexCoords[%size%];',\n\n\t'void main(void)',\n\t'{',\n\t 'gl_Position = vec4((projectionMatrix * vec3((aVertexPosition), 1.0)).xy, 0.0, 1.0);',\n\t\t'%blur%',\n\t'}'\n].join('\\n');\n\nvar generateVertBlurSource = function(kernelSize, x)\n{\n var halfLength = Math.ceil(kernelSize/2);\n\n var vertSource = vertTemplate;\n\n var blurLoop = '';\n var template;\n var value;\n\n if(x)\n {\n \ttemplate = 'vBlurTexCoords[%index%] = aTextureCoord + vec2(%sampleIndex% * strength, 0.0);';\n }\n else\n {\n \ttemplate = 'vBlurTexCoords[%index%] = aTextureCoord + vec2(0.0, %sampleIndex% * strength);';\n\n }\n\n\n for (var i = 0; i < kernelSize; i++)\n {\n \tvar blur = template.replace('%index%', i);\n\n \tvalue = i;\n\n \tif(i >= halfLength)\n \t{\n \t\tvalue = kernelSize - i - 1;\n \t}\n\n \tblur = blur.replace('%sampleIndex%', (i - (halfLength-1)) + '.0');\n\n \tblurLoop += blur;\n \tblurLoop += '\\n';\n }\n\n vertSource = vertSource.replace('%blur%', blurLoop);\n vertSource = vertSource.replace('%size%', kernelSize);\n\n return vertSource;\n};\n\n\n\nmodule.exports = generateVertBlurSource;\n","\n\nvar getMaxKernelSize = function(gl)\n{\n var maxVaryings = ( gl.getParameter(gl.MAX_VARYING_VECTORS) );\n var kernelSize = 15;\n\n while(kernelSize > maxVaryings)\n {\n kernelSize -= 2;\n }\n\n return kernelSize;\n};\n\nmodule.exports = getMaxKernelSize;\n","var core = require('../../core');\n// @see https://github.com/substack/brfs/issues/25\n\n\n/**\n * The ColorMatrixFilter class lets you apply a 5x4 matrix transformation on the RGBA\n * color and alpha values of every pixel on your displayObject to produce a result\n * with a new set of RGBA color and alpha values. It's pretty powerful!\n *\n * ```js\n * var colorMatrix = new PIXI.ColorMatrixFilter();\n * container.filters = [colorMatrix];\n * colorMatrix.contrast(2);\n * ```\n * @author Clément Chenebault \n * @class\n * @extends PIXI.Filter\n * @memberof PIXI.filters\n */\nfunction ColorMatrixFilter()\n{\n core.Filter.call(this,\n // vertex shader\n \"#define GLSLIFY 1\\nattribute vec2 aVertexPosition;\\nattribute vec2 aTextureCoord;\\n\\nuniform mat3 projectionMatrix;\\n\\nvarying vec2 vTextureCoord;\\n\\nvoid main(void)\\n{\\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\\n vTextureCoord = aTextureCoord;\\n}\",\n // fragment shader\n \"#define GLSLIFY 1\\nvarying vec2 vTextureCoord;\\nuniform sampler2D uSampler;\\nuniform float m[20];\\n\\nvoid main(void)\\n{\\n\\n vec4 c = texture2D(uSampler, vTextureCoord);\\n\\n gl_FragColor.r = (m[0] * c.r);\\n gl_FragColor.r += (m[1] * c.g);\\n gl_FragColor.r += (m[2] * c.b);\\n gl_FragColor.r += (m[3] * c.a);\\n gl_FragColor.r += m[4] * c.a;\\n\\n gl_FragColor.g = (m[5] * c.r);\\n gl_FragColor.g += (m[6] * c.g);\\n gl_FragColor.g += (m[7] * c.b);\\n gl_FragColor.g += (m[8] * c.a);\\n gl_FragColor.g += m[9] * c.a;\\n\\n gl_FragColor.b = (m[10] * c.r);\\n gl_FragColor.b += (m[11] * c.g);\\n gl_FragColor.b += (m[12] * c.b);\\n gl_FragColor.b += (m[13] * c.a);\\n gl_FragColor.b += m[14] * c.a;\\n\\n gl_FragColor.a = (m[15] * c.r);\\n gl_FragColor.a += (m[16] * c.g);\\n gl_FragColor.a += (m[17] * c.b);\\n gl_FragColor.a += (m[18] * c.a);\\n gl_FragColor.a += m[19] * c.a;\\n\\n// gl_FragColor = vec4(m[0]);\\n}\\n\"\n );\n\n this.uniforms.m = [\n 1, 0, 0, 0, 0,\n 0, 1, 0, 0, 0,\n 0, 0, 1, 0, 0,\n 0, 0, 0, 1, 0];\n\n\n}\n\nColorMatrixFilter.prototype = Object.create(core.Filter.prototype);\nColorMatrixFilter.prototype.constructor = ColorMatrixFilter;\nmodule.exports = ColorMatrixFilter;\n\n\n/**\n * Transforms current matrix and set the new one\n *\n * @param matrix {number[]} (mat 5x4)\n * @param multiply {boolean} if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix\n */\nColorMatrixFilter.prototype._loadMatrix = function (matrix, multiply)\n{\n multiply = !!multiply;\n\n var newMatrix = matrix;\n\n if (multiply) {\n this._multiply(newMatrix, this.uniforms.m, matrix);\n newMatrix = this._colorMatrix(newMatrix);\n }\n\n // set the new matrix\n this.uniforms.m = newMatrix;\n};\n\n/**\n * Multiplies two mat5's\n *\n * @param out {number[]} (mat 5x4) the receiving matrix\n * @param a {number[]} (mat 5x4) the first operand\n * @param b {number[]} (mat 5x4) the second operand\n * @returns out {number[]} (mat 5x4)\n */\nColorMatrixFilter.prototype._multiply = function (out, a, b)\n{\n\n // Red Channel\n out[0] = (a[0] * b[0]) + (a[1] * b[5]) + (a[2] * b[10]) + (a[3] * b[15]);\n out[1] = (a[0] * b[1]) + (a[1] * b[6]) + (a[2] * b[11]) + (a[3] * b[16]);\n out[2] = (a[0] * b[2]) + (a[1] * b[7]) + (a[2] * b[12]) + (a[3] * b[17]);\n out[3] = (a[0] * b[3]) + (a[1] * b[8]) + (a[2] * b[13]) + (a[3] * b[18]);\n out[4] = (a[0] * b[4]) + (a[1] * b[9]) + (a[2] * b[14]) + (a[3] * b[19]);\n\n // Green Channel\n out[5] = (a[5] * b[0]) + (a[6] * b[5]) + (a[7] * b[10]) + (a[8] * b[15]);\n out[6] = (a[5] * b[1]) + (a[6] * b[6]) + (a[7] * b[11]) + (a[8] * b[16]);\n out[7] = (a[5] * b[2]) + (a[6] * b[7]) + (a[7] * b[12]) + (a[8] * b[17]);\n out[8] = (a[5] * b[3]) + (a[6] * b[8]) + (a[7] * b[13]) + (a[8] * b[18]);\n out[9] = (a[5] * b[4]) + (a[6] * b[9]) + (a[7] * b[14]) + (a[8] * b[19]);\n\n // Blue Channel\n out[10] = (a[10] * b[0]) + (a[11] * b[5]) + (a[12] * b[10]) + (a[13] * b[15]);\n out[11] = (a[10] * b[1]) + (a[11] * b[6]) + (a[12] * b[11]) + (a[13] * b[16]);\n out[12] = (a[10] * b[2]) + (a[11] * b[7]) + (a[12] * b[12]) + (a[13] * b[17]);\n out[13] = (a[10] * b[3]) + (a[11] * b[8]) + (a[12] * b[13]) + (a[13] * b[18]);\n out[14] = (a[10] * b[4]) + (a[11] * b[9]) + (a[12] * b[14]) + (a[13] * b[19]);\n\n // Alpha Channel\n out[15] = (a[15] * b[0]) + (a[16] * b[5]) + (a[17] * b[10]) + (a[18] * b[15]);\n out[16] = (a[15] * b[1]) + (a[16] * b[6]) + (a[17] * b[11]) + (a[18] * b[16]);\n out[17] = (a[15] * b[2]) + (a[16] * b[7]) + (a[17] * b[12]) + (a[18] * b[17]);\n out[18] = (a[15] * b[3]) + (a[16] * b[8]) + (a[17] * b[13]) + (a[18] * b[18]);\n out[19] = (a[15] * b[4]) + (a[16] * b[9]) + (a[17] * b[14]) + (a[18] * b[19]);\n\n return out;\n};\n\n/**\n * Create a Float32 Array and normalize the offset component to 0-1\n *\n * @param matrix {number[]} (mat 5x4)\n * @return m {number[]} (mat 5x4) with all values between 0-1\n */\nColorMatrixFilter.prototype._colorMatrix = function (matrix)\n{\n // Create a Float32 Array and normalize the offset component to 0-1\n var m = new Float32Array(matrix);\n m[4] /= 255;\n m[9] /= 255;\n m[14] /= 255;\n m[19] /= 255;\n\n return m;\n};\n\n/**\n * Adjusts brightness\n *\n * @param b {number} value of the brigthness (0 is black)\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.brightness = function (b, multiply)\n{\n var matrix = [\n b, 0, 0, 0, 0,\n 0, b, 0, 0, 0,\n 0, 0, b, 0, 0,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n/**\n * Set the matrices in grey scales\n *\n * @param scale {number} value of the grey (0 is black)\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.greyscale = function (scale, multiply)\n{\n var matrix = [\n scale, scale, scale, 0, 0,\n scale, scale, scale, 0, 0,\n scale, scale, scale, 0, 0,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n//Americanized alias\nColorMatrixFilter.prototype.grayscale = ColorMatrixFilter.prototype.greyscale;\n\n/**\n * Set the black and white matrice\n * Multiply the current matrix\n *\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.blackAndWhite = function (multiply)\n{\n var matrix = [\n 0.3, 0.6, 0.1, 0, 0,\n 0.3, 0.6, 0.1, 0, 0,\n 0.3, 0.6, 0.1, 0, 0,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n/**\n * Set the hue property of the color\n *\n * @param rotation {number} in degrees\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.hue = function (rotation, multiply)\n{\n rotation = (rotation || 0) / 180 * Math.PI;\n\n var cosR = Math.cos(rotation),\n sinR = Math.sin(rotation),\n sqrt = Math.sqrt;\n\n /*a good approximation for hue rotation\n This matrix is far better than the versions with magic luminance constants\n formerly used here, but also used in the starling framework (flash) and known from this\n old part of the internet: quasimondo.com/archives/000565.php\n\n This new matrix is based on rgb cube rotation in space. Look here for a more descriptive\n implementation as a shader not a general matrix:\n https://github.com/evanw/glfx.js/blob/58841c23919bd59787effc0333a4897b43835412/src/filters/adjust/huesaturation.js\n\n This is the source for the code:\n see http://stackoverflow.com/questions/8507885/shift-hue-of-an-rgb-color/8510751#8510751\n */\n\n var w = 1/3, sqrW = sqrt(w);//weight is\n\n var a00 = cosR + (1.0 - cosR) * w;\n var a01 = w * (1.0 - cosR) - sqrW * sinR;\n var a02 = w * (1.0 - cosR) + sqrW * sinR;\n\n var a10 = w * (1.0 - cosR) + sqrW * sinR;\n var a11 = cosR + w*(1.0 - cosR);\n var a12 = w * (1.0 - cosR) - sqrW * sinR;\n\n var a20 = w * (1.0 - cosR) - sqrW * sinR;\n var a21 = w * (1.0 - cosR) + sqrW * sinR;\n var a22 = cosR + w * (1.0 - cosR);\n\n\n var matrix = [\n a00, a01, a02, 0, 0,\n a10, a11, a12, 0, 0,\n a20, a21, a22, 0, 0,\n 0, 0, 0, 1, 0,\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n\n/**\n * Set the contrast matrix, increase the separation between dark and bright\n * Increase contrast : shadows darker and highlights brighter\n * Decrease contrast : bring the shadows up and the highlights down\n *\n * @param amount {number} value of the contrast\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.contrast = function (amount, multiply)\n{\n var v = (amount || 0) + 1;\n var o = -128 * (v - 1);\n\n var matrix = [\n v, 0, 0, 0, o,\n 0, v, 0, 0, o,\n 0, 0, v, 0, o,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n/**\n * Set the saturation matrix, increase the separation between colors\n * Increase saturation : increase contrast, brightness, and sharpness\n *\n * @param [amount=0] {number}\n * @param [multiply] {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.saturate = function (amount, multiply)\n{\n var x = (amount || 0) * 2 / 3 + 1;\n var y = ((x - 1) * -0.5);\n\n var matrix = [\n x, y, y, 0, 0,\n y, x, y, 0, 0,\n y, y, x, 0, 0,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n/**\n * Desaturate image (remove color)\n *\n * Call the saturate function\n *\n */\nColorMatrixFilter.prototype.desaturate = function () // jshint unused:false\n{\n this.saturate(-1);\n};\n\n/**\n * Negative image (inverse of classic rgb matrix)\n *\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.negative = function (multiply)\n{\n var matrix = [\n 0, 1, 1, 0, 0,\n 1, 0, 1, 0, 0,\n 1, 1, 0, 0, 0,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n/**\n * Sepia image\n *\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.sepia = function (multiply)\n{\n var matrix = [\n 0.393, 0.7689999, 0.18899999, 0, 0,\n 0.349, 0.6859999, 0.16799999, 0, 0,\n 0.272, 0.5339999, 0.13099999, 0, 0,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n/**\n * Color motion picture process invented in 1916 (thanks Dominic Szablewski)\n *\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.technicolor = function (multiply)\n{\n var matrix = [\n 1.9125277891456083, -0.8545344976951645, -0.09155508482755585, 0, 11.793603434377337,\n -0.3087833385928097, 1.7658908555458428, -0.10601743074722245, 0, -70.35205161461398,\n -0.231103377548616, -0.7501899197440212, 1.847597816108189, 0, 30.950940869491138,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n/**\n * Polaroid filter\n *\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.polaroid = function (multiply)\n{\n var matrix = [\n 1.438, -0.062, -0.062, 0, 0,\n -0.122, 1.378, -0.122, 0, 0,\n -0.016, -0.016, 1.483, 0, 0,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n/**\n * Filter who transforms : Red -> Blue and Blue -> Red\n *\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.toBGR = function (multiply)\n{\n var matrix = [\n 0, 0, 1, 0, 0,\n 0, 1, 0, 0, 0,\n 1, 0, 0, 0, 0,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n/**\n * Color reversal film introduced by Eastman Kodak in 1935. (thanks Dominic Szablewski)\n *\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.kodachrome = function (multiply)\n{\n var matrix = [\n 1.1285582396593525, -0.3967382283601348, -0.03992559172921793, 0, 63.72958762196502,\n -0.16404339962244616, 1.0835251566291304, -0.05498805115633132, 0, 24.732407896706203,\n -0.16786010706155763, -0.5603416277695248, 1.6014850761964943, 0, 35.62982807460946,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n/**\n * Brown delicious browni filter (thanks Dominic Szablewski)\n *\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.browni = function (multiply)\n{\n var matrix = [\n 0.5997023498159715, 0.34553243048391263, -0.2708298674538042, 0, 47.43192855600873,\n -0.037703249837783157, 0.8609577587992641, 0.15059552388459913, 0, -36.96841498319127,\n 0.24113635128153335, -0.07441037908422492, 0.44972182064877153, 0, -7.562075277591283,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n/*\n * Vintage filter (thanks Dominic Szablewski)\n *\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.vintage = function (multiply)\n{\n var matrix = [\n 0.6279345635605994, 0.3202183420819367, -0.03965408211312453, 0, 9.651285835294123,\n 0.02578397704808868, 0.6441188644374771, 0.03259127616149294, 0, 7.462829176470591,\n 0.0466055556782719, -0.0851232987247891, 0.5241648018700465, 0, 5.159190588235296,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n/*\n * We don't know exactly what it does, kind of gradient map, but funny to play with!\n *\n * @param desaturation {number}\n * @param toned {number}\n * @param lightColor {string} (example : \"0xFFE580\")\n * @param darkColor {string} (example : \"0xFFE580\")\n *\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.colorTone = function (desaturation, toned, lightColor, darkColor, multiply)\n{\n desaturation = desaturation || 0.2;\n toned = toned || 0.15;\n lightColor = lightColor || 0xFFE580;\n darkColor = darkColor || 0x338000;\n\n var lR = ((lightColor >> 16) & 0xFF) / 255;\n var lG = ((lightColor >> 8) & 0xFF) / 255;\n var lB = (lightColor & 0xFF) / 255;\n\n var dR = ((darkColor >> 16) & 0xFF) / 255;\n var dG = ((darkColor >> 8) & 0xFF) / 255;\n var dB = (darkColor & 0xFF) / 255;\n\n var matrix = [\n 0.3, 0.59, 0.11, 0, 0,\n lR, lG, lB, desaturation, 0,\n dR, dG, dB, toned, 0,\n lR - dR, lG - dG, lB - dB, 0, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n/*\n * Night effect\n *\n * @param intensity {number}\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.night = function (intensity, multiply)\n{\n intensity = intensity || 0.1;\n var matrix = [\n intensity * ( -2.0), -intensity, 0, 0, 0,\n -intensity, 0, intensity, 0, 0,\n 0, intensity, intensity * 2.0, 0, 0,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n\n/*\n * Predator effect\n *\n * Erase the current matrix by setting a new indepent one\n *\n * @param amount {number} how much the predator feels his future victim\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.predator = function (amount, multiply)\n{\n var matrix = [\n 11.224130630493164 * amount, -4.794486999511719 * amount, -2.8746118545532227 * amount, 0 * amount, 0.40342438220977783 * amount,\n -3.6330697536468506 * amount, 9.193157196044922 * amount, -2.951810836791992 * amount, 0 * amount, -1.316135048866272 * amount,\n -3.2184197902679443 * amount, -4.2375030517578125 * amount, 7.476448059082031 * amount, 0 * amount, 0.8044459223747253 * amount,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n/*\n * LSD effect\n *\n * Multiply the current matrix\n *\n * @param amount {number} How crazy is your effect\n * @param multiply {boolean} refer to ._loadMatrix() method\n */\nColorMatrixFilter.prototype.lsd = function (multiply)\n{\n var matrix = [\n 2, -0.4, 0.5, 0, 0,\n -0.5, 2, -0.4, 0, 0,\n -0.4, -0.5, 3, 0, 0,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, multiply);\n};\n\n/*\n * Erase the current matrix by setting the default one\n *\n */\nColorMatrixFilter.prototype.reset = function ()\n{\n var matrix = [\n 1, 0, 0, 0, 0,\n 0, 1, 0, 0, 0,\n 0, 0, 1, 0, 0,\n 0, 0, 0, 1, 0\n ];\n\n this._loadMatrix(matrix, false);\n};\n\n\nObject.defineProperties(ColorMatrixFilter.prototype, {\n /**\n * Sets the matrix of the color matrix filter\n *\n * @member {number[]}\n * @memberof PIXI.filters.ColorMatrixFilter#\n * @default [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]\n */\n matrix: {\n get: function ()\n {\n return this.uniforms.m;\n },\n set: function (value)\n {\n this.uniforms.m = value;\n }\n }\n});\n","var core = require('../../core');\n\n\n/**\n * The DisplacementFilter 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 to offset the x and the g property of the texture is used to offset the y.\n *\n * @class\n * @extends PIXI.Filter\n * @memberof PIXI.filters\n * @param sprite {PIXI.Sprite} The sprite used for the displacement map. (make sure its added to the scene!)\n * @param scale {number} The scale of the displacement\n */\nfunction DisplacementFilter(sprite, scale)\n{\n var maskMatrix = new core.Matrix();\n sprite.renderable = false;\n\n core.Filter.call(this,\n // vertex shader\n// glslify('./displacement.vert'),\n \"#define GLSLIFY 1\\nattribute vec2 aVertexPosition;\\nattribute vec2 aTextureCoord;\\n\\nuniform mat3 projectionMatrix;\\nuniform mat3 filterMatrix;\\n\\nvarying vec2 vTextureCoord;\\nvarying vec2 vFilterCoord;\\n\\nvoid main(void)\\n{\\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\\n vFilterCoord = ( filterMatrix * vec3( aTextureCoord, 1.0) ).xy;\\n vTextureCoord = aTextureCoord;\\n}\",\n // fragment shader\n \"#define GLSLIFY 1\\nvarying vec2 vFilterCoord;\\nvarying vec2 vTextureCoord;\\n\\nuniform vec2 scale;\\n\\nuniform sampler2D uSampler;\\nuniform sampler2D mapSampler;\\n\\nuniform vec4 filterClamp;\\n\\nvoid main(void)\\n{\\n vec4 map = texture2D(mapSampler, vFilterCoord);\\n\\n map -= 0.5;\\n map.xy *= scale;\\n\\n gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), filterClamp.xy, filterClamp.zw));\\n}\\n\"\n\n );\n\n this.maskSprite = sprite;\n this.maskMatrix = maskMatrix;\n\n this.uniforms.mapSampler = sprite.texture;\n this.uniforms.filterMatrix = maskMatrix.toArray(true);\n this.uniforms.scale = { x: 1, y: 1 };\n\n if (scale === null || scale === undefined)\n {\n scale = 20;\n }\n\n this.scale = new core.Point(scale, scale);\n}\n\nDisplacementFilter.prototype = Object.create(core.Filter.prototype);\nDisplacementFilter.prototype.constructor = DisplacementFilter;\nmodule.exports = DisplacementFilter;\n\nDisplacementFilter.prototype.apply = function (filterManager, input, output)\n{\n var ratio = (1/output.destinationFrame.width) * (output.size.width/input.size.width); /// // * 2 //4//this.strength / 4 / this.passes * (input.frame.width / input.size.width);\n\n this.uniforms.filterMatrix = filterManager.calculateSpriteMatrix(this.maskMatrix, this.maskSprite);\n this.uniforms.scale.x = this.scale.x * ratio;\n this.uniforms.scale.y = this.scale.y * ratio;\n\n // draw the filter...\n filterManager.applyFilter(this, input, output);\n};\n\n\nObject.defineProperties(DisplacementFilter.prototype, {\n /**\n * The texture used for the displacement map. Must be power of 2 sized texture.\n *\n * @member {PIXI.Texture}\n * @memberof PIXI.filters.DisplacementFilter#\n */\n map: {\n get: function ()\n {\n return this.uniforms.mapSampler;\n },\n set: function (value)\n {\n this.uniforms.mapSampler = value;\n\n }\n }\n});\n","var core = require('../../core');\n\n\n/**\n *\n * Basic FXAA implementation based on the code on geeks3d.com with the\n * modification that the texture2DLod stuff was removed since it's\n * unsupported by WebGL.\n *\n * @see https://github.com/mitsuhiko/webgl-meincraft\n *\n * @class\n * @extends PIXI.Filter\n * @memberof PIXI\n *\n */\nfunction FXAAFilter()\n{\n //TODO - needs work\n core.Filter.call(this,\n\n // vertex shader\n \"#define GLSLIFY 1\\nattribute vec2 aVertexPosition;\\nattribute vec2 aTextureCoord;\\n\\nuniform mat3 projectionMatrix;\\n\\nvarying vec2 v_rgbNW;\\nvarying vec2 v_rgbNE;\\nvarying vec2 v_rgbSW;\\nvarying vec2 v_rgbSE;\\nvarying vec2 v_rgbM;\\n\\nuniform vec4 filterArea;\\n\\nvarying vec2 vTextureCoord;\\n\\nvec2 mapCoord( vec2 coord )\\n{\\n coord *= filterArea.xy;\\n coord += filterArea.zw;\\n\\n return coord;\\n}\\n\\nvec2 unmapCoord( vec2 coord )\\n{\\n coord -= filterArea.zw;\\n coord /= filterArea.xy;\\n\\n return coord;\\n}\\n\\nvoid texcoords(vec2 fragCoord, vec2 resolution,\\n out vec2 v_rgbNW, out vec2 v_rgbNE,\\n out vec2 v_rgbSW, out vec2 v_rgbSE,\\n out vec2 v_rgbM) {\\n vec2 inverseVP = 1.0 / resolution.xy;\\n v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\\n v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\\n v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\\n v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\\n v_rgbM = vec2(fragCoord * inverseVP);\\n}\\n\\nvoid main(void) {\\n\\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\\n\\n vTextureCoord = aTextureCoord;\\n\\n vec2 fragCoord = vTextureCoord * filterArea.xy;\\n\\n texcoords(fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\\n}\",\n // fragment shader\n \"#define GLSLIFY 1\\nvarying vec2 v_rgbNW;\\nvarying vec2 v_rgbNE;\\nvarying vec2 v_rgbSW;\\nvarying vec2 v_rgbSE;\\nvarying vec2 v_rgbM;\\n\\nvarying vec2 vTextureCoord;\\nuniform sampler2D uSampler;\\nuniform vec4 filterArea;\\n\\n/**\\n Basic FXAA implementation based on the code on geeks3d.com with the\\n modification that the texture2DLod stuff was removed since it's\\n unsupported by WebGL.\\n \\n --\\n \\n From:\\n https://github.com/mitsuhiko/webgl-meincraft\\n \\n Copyright (c) 2011 by Armin Ronacher.\\n \\n Some rights reserved.\\n \\n Redistribution and use in source and binary forms, with or without\\n modification, are permitted provided that the following conditions are\\n met:\\n \\n * Redistributions of source code must retain the above copyright\\n notice, this list of conditions and the following disclaimer.\\n \\n * Redistributions in binary form must reproduce the above\\n copyright notice, this list of conditions and the following\\n disclaimer in the documentation and/or other materials provided\\n with the distribution.\\n \\n * The names of the contributors may not be used to endorse or\\n promote products derived from this software without specific\\n prior written permission.\\n \\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\\n \\\"AS IS\\\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\\n */\\n\\n#ifndef FXAA_REDUCE_MIN\\n#define FXAA_REDUCE_MIN (1.0/ 128.0)\\n#endif\\n#ifndef FXAA_REDUCE_MUL\\n#define FXAA_REDUCE_MUL (1.0 / 8.0)\\n#endif\\n#ifndef FXAA_SPAN_MAX\\n#define FXAA_SPAN_MAX 8.0\\n#endif\\n\\n//optimized version for mobile, where dependent\\n//texture reads can be a bottleneck\\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 resolution,\\n vec2 v_rgbNW, vec2 v_rgbNE,\\n vec2 v_rgbSW, vec2 v_rgbSE,\\n vec2 v_rgbM) {\\n vec4 color;\\n mediump vec2 inverseVP = vec2(1.0 / resolution.x, 1.0 / resolution.y);\\n vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\\n vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\\n vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\\n vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\\n vec4 texColor = texture2D(tex, v_rgbM);\\n vec3 rgbM = texColor.xyz;\\n vec3 luma = vec3(0.299, 0.587, 0.114);\\n float lumaNW = dot(rgbNW, luma);\\n float lumaNE = dot(rgbNE, luma);\\n float lumaSW = dot(rgbSW, luma);\\n float lumaSE = dot(rgbSE, luma);\\n float lumaM = dot(rgbM, luma);\\n float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\\n float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\\n \\n mediump vec2 dir;\\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\\n \\n float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\\n (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\\n \\n float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\\n dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\\n max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\\n dir * rcpDirMin)) * inverseVP;\\n \\n vec3 rgbA = 0.5 * (\\n texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\\n texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\\n vec3 rgbB = rgbA * 0.5 + 0.25 * (\\n texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\\n texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\\n \\n float lumaB = dot(rgbB, luma);\\n if ((lumaB < lumaMin) || (lumaB > lumaMax))\\n color = vec4(rgbA, texColor.a);\\n else\\n color = vec4(rgbB, texColor.a);\\n return color;\\n}\\n\\nvoid main() {\\n\\n \\tvec2 fragCoord = vTextureCoord * filterArea.xy;\\n\\n \\tvec4 color;\\n\\n color = fxaa(uSampler, fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\\n\\n \\tgl_FragColor = color;\\n}\\n\"\n );\n\n}\n\nFXAAFilter.prototype = Object.create(core.Filter.prototype);\nFXAAFilter.prototype.constructor = FXAAFilter;\n\nmodule.exports = FXAAFilter;\n","/**\n * @file Main export of the PIXI filters library\n * @author Mat Groves \n * @copyright 2013-2015 GoodBoyDigital\n * @license {@link https://github.com/pixijs/pixi.js/blob/master/LICENSE|MIT License}\n */\n\n/**\n * @namespace PIXI.filters\n */\nmodule.exports = {\n FXAAFilter: require('./fxaa/FXAAFilter'),\n NoiseFilter: require('./noise/NoiseFilter'),\n DisplacementFilter: require('./displacement/DisplacementFilter'),\n BlurFilter: require('./blur/BlurFilter'),\n BlurXFilter: require('./blur/BlurXFilter'),\n BlurYFilter: require('./blur/BlurYFilter'),\n ColorMatrixFilter: require('./colormatrix/ColorMatrixFilter'),\n VoidFilter: require('./void/VoidFilter')\n};\n","var core = require('../../core');\n\n\n/**\n * @author Vico @vicocotea\n * original filter: https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/noise.js\n */\n\n/**\n * A Noise effect filter.\n *\n * @class\n * @extends PIXI.Filter\n * @memberof PIXI.filters\n */\nfunction NoiseFilter()\n{\n core.Filter.call(this,\n // vertex shader\n \"#define GLSLIFY 1\\nattribute vec2 aVertexPosition;\\nattribute vec2 aTextureCoord;\\n\\nuniform mat3 projectionMatrix;\\n\\nvarying vec2 vTextureCoord;\\n\\nvoid main(void)\\n{\\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\\n vTextureCoord = aTextureCoord;\\n}\",\n // fragment shader\n \"precision highp float;\\n#define GLSLIFY 1\\n\\nvarying vec2 vTextureCoord;\\nvarying vec4 vColor;\\n\\nuniform float noise;\\nuniform sampler2D uSampler;\\n\\nfloat rand(vec2 co)\\n{\\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\\n}\\n\\nvoid main()\\n{\\n vec4 color = texture2D(uSampler, vTextureCoord);\\n\\n float diff = (rand(gl_FragCoord.xy) - 0.5) * noise;\\n\\n color.r += diff;\\n color.g += diff;\\n color.b += diff;\\n\\n gl_FragColor = color;\\n}\\n\"\n );\n\n this.noise = 0.5;\n}\n\nNoiseFilter.prototype = Object.create(core.Filter.prototype);\nNoiseFilter.prototype.constructor = NoiseFilter;\nmodule.exports = NoiseFilter;\n\nObject.defineProperties(NoiseFilter.prototype, {\n /**\n * The amount of noise to apply.\n *\n * @member {number}\n * @memberof PIXI.filters.NoiseFilter#\n * @default 0.5\n */\n noise: {\n get: function ()\n {\n return this.uniforms.noise;\n },\n set: function (value)\n {\n this.uniforms.noise = value;\n }\n }\n});\n","var core = require('../../core');\n// @see https://github.com/substack/brfs/issues/25\n\n\n/**\n * Does nothing. Very handy.\n *\n * @class\n * @extends PIXI.Filter\n * @memberof PIXI.filters\n */\nfunction VoidFilter()\n{\n core.Filter.call(this,\n // vertex shader\n \"#define GLSLIFY 1\\nattribute vec2 aVertexPosition;\\nattribute vec2 aTextureCoord;\\n\\nuniform mat3 projectionMatrix;\\n\\nvarying vec2 vTextureCoord;\\n\\nvoid main(void)\\n{\\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\\n vTextureCoord = aTextureCoord;\\n}\",\n // fragment shader\n \"#define GLSLIFY 1\\nvarying vec2 vTextureCoord;\\n\\nuniform sampler2D uSampler;\\n\\nvoid main(void)\\n{\\n gl_FragColor = texture2D(uSampler, vTextureCoord);\\n}\\n\"\n );\n\n this.glShaderKey = 'void';\n}\n\nVoidFilter.prototype = Object.create(core.Filter.prototype);\nVoidFilter.prototype.constructor = VoidFilter;\nmodule.exports = VoidFilter;\n","var core = require('../core');\n\n/**\n * Holds all information related to an Interaction event\n *\n * @class\n * @memberof PIXI.interaction\n */\nfunction InteractionData()\n{\n /**\n * This point stores the global coords of where the touch/mouse event happened\n *\n * @member {PIXI.Point}\n */\n this.global = new core.Point();\n\n /**\n * The target Sprite that was interacted with\n *\n * @member {PIXI.Sprite}\n */\n this.target = null;\n\n /**\n * When passed to an event handler, this will be the original DOM Event that was captured\n *\n * @member {Event}\n */\n this.originalEvent = null;\n}\n\nInteractionData.prototype.constructor = InteractionData;\nmodule.exports = InteractionData;\n\n/**\n * This will return the local coordinates of the specified displayObject for this InteractionData\n *\n * @param displayObject {PIXI.DisplayObject} The DisplayObject that you would like the local coords off\n * @param [point] {PIXI.Point} A Point object in which to store the value, optional (otherwise will create a new point)\n * @param [globalPos] {PIXI.Point} A Point object containing your custom global coords, optional (otherwise will use the current global coords)\n * @return {PIXI.Point} A point containing the coordinates of the InteractionData position relative to the DisplayObject\n */\nInteractionData.prototype.getLocalPosition = function (displayObject, point, globalPos)\n{\n return displayObject.worldTransform.applyInverse(globalPos || this.global, point);\n};\n","var core = require('../core'),\n InteractionData = require('./InteractionData'),\n EventEmitter = require('eventemitter3');\n\n// Mix interactiveTarget into core.DisplayObject.prototype\nObject.assign(\n core.DisplayObject.prototype,\n require('./interactiveTarget')\n);\n\n/**\n * The interaction manager deals with mouse and touch events. Any DisplayObject can be interactive\n * if its interactive parameter is set to true\n * This manager also supports multitouch.\n *\n * @class\n * @extends EventEmitter\n * @memberof PIXI.interaction\n * @param renderer {PIXI.CanvasRenderer|PIXI.WebGLRenderer} A reference to the current renderer\n * @param [options] {object}\n * @param [options.autoPreventDefault=true] {boolean} Should the manager automatically prevent default browser actions.\n * @param [options.interactionFrequency=10] {number} Frequency increases the interaction events will be checked.\n */\nfunction InteractionManager(renderer, options)\n{\n EventEmitter.call(this);\n\n options = options || {};\n\n /**\n * The renderer this interaction manager works for.\n *\n * @member {PIXI.SystemRenderer}\n */\n this.renderer = renderer;\n\n /**\n * Should default browser actions automatically be prevented.\n *\n * @member {boolean}\n * @default true\n */\n this.autoPreventDefault = options.autoPreventDefault !== undefined ? options.autoPreventDefault : true;\n\n /**\n * As this frequency increases the interaction events will be checked more often.\n *\n * @member {number}\n * @default 10\n */\n this.interactionFrequency = options.interactionFrequency || 10;\n\n /**\n * The mouse data\n *\n * @member {PIXI.interaction.InteractionData}\n */\n this.mouse = new InteractionData();\n\n // setting the pointer to start off far off screen will mean that mouse over does\n // not get called before we even move the mouse.\n this.mouse.global.set(-999999);\n\n /**\n * An event data object to handle all the event tracking/dispatching\n *\n * @member {object}\n */\n this.eventData = {\n stopped: false,\n target: null,\n type: null,\n data: this.mouse,\n stopPropagation:function(){\n this.stopped = true;\n }\n };\n\n /**\n * Tiny little interactiveData pool !\n *\n * @member {PIXI.interaction.InteractionData[]}\n */\n this.interactiveDataPool = [];\n\n /**\n * The DOM element to bind to.\n *\n * @member {HTMLElement}\n * @private\n */\n this.interactionDOMElement = null;\n\n /**\n * This property determins if mousemove and touchmove events are fired only when the cursror is over the object\n * Setting to true will make things work more in line with how the DOM verison works.\n * Setting to false can make things easier for things like dragging\n * It is currently set to false as this is how pixi used to work. This will be set to true in future versions of pixi.\n * @member {boolean}\n * @private\n */\n this.moveWhenInside = false;\n\n /**\n * Have events been attached to the dom element?\n *\n * @member {boolean}\n * @private\n */\n this.eventsAdded = false;\n\n //this will make it so that you don't have to call bind all the time\n\n /**\n * @member {Function}\n * @private\n */\n this.onMouseUp = this.onMouseUp.bind(this);\n this.processMouseUp = this.processMouseUp.bind( this );\n\n\n /**\n * @member {Function}\n * @private\n */\n this.onMouseDown = this.onMouseDown.bind(this);\n this.processMouseDown = this.processMouseDown.bind( this );\n\n /**\n * @member {Function}\n * @private\n */\n this.onMouseMove = this.onMouseMove.bind( this );\n this.processMouseMove = this.processMouseMove.bind( this );\n\n /**\n * @member {Function}\n * @private\n */\n this.onMouseOut = this.onMouseOut.bind(this);\n this.processMouseOverOut = this.processMouseOverOut.bind( this );\n\n /**\n * @member {Function}\n * @private\n */\n this.onMouseOver = this.onMouseOver.bind(this);\n\n\n /**\n * @member {Function}\n * @private\n */\n this.onTouchStart = this.onTouchStart.bind(this);\n this.processTouchStart = this.processTouchStart.bind(this);\n\n /**\n * @member {Function}\n * @private\n */\n this.onTouchEnd = this.onTouchEnd.bind(this);\n this.processTouchEnd = this.processTouchEnd.bind(this);\n\n /**\n * @member {Function}\n * @private\n */\n this.onTouchMove = this.onTouchMove.bind(this);\n this.processTouchMove = this.processTouchMove.bind(this);\n\n /**\n * Every update cursor will be reset to this value, if some element wont override it in its hitTest\n * @member {string}\n * @default 'inherit'\n */\n this.defaultCursorStyle = 'inherit';\n\n /**\n * The css style of the cursor that is being used\n * @member {string}\n */\n this.currentCursorStyle = 'inherit';\n\n /**\n * Internal cached var\n * @member {PIXI.Point}\n * @private\n */\n this._tempPoint = new core.Point();\n\n\n /**\n * The current resolution / device pixel ratio.\n * @member {number}\n * @default 1\n */\n this.resolution = 1;\n\n this.setTargetElement(this.renderer.view, this.renderer.resolution);\n\n /**\n * Fired when a pointing device button (usually a mouse button) is pressed on the display object.\n * \n * @memberof PIXI.interaction.InteractionManager#\n * @event mousedown\n */\n\n /**\n * Fired when a pointing device secondary button (usually a mouse right-button) is pressed on the display object.\n * \n * @memberof PIXI.interaction.InteractionManager#\n * @event rightdown\n */\n\n /**\n * Fired when a pointing device button (usually a mouse button) is released over the display object.\n * \n * @memberof PIXI.interaction.InteractionManager#\n * @event mouseup\n */\n\n /**\n * Fired when a pointing device secondary button (usually a mouse right-button) is released over the display object.\n * \n * @memberof PIXI.interaction.InteractionManager#\n * @event rightup\n */\n\n /**\n * Fired when a pointing device button (usually a mouse button) is pressed and released on the display object.\n * \n * @event click\n * @memberof PIXI.interaction.InteractionManager#\n */\n\n /**\n * Fired when a pointing device secondary button (usually a mouse right-button) is pressed and released on the display object.\n * \n * @event rightclick\n * @memberof PIXI.interaction.InteractionManager#\n */\n\n /**\n * Fired when a pointing device button (usually a mouse button) is released outside the display object that initially registered a [mousedown]{@link PIXI.interaction.InteractionManager#event:mousedown}.\n * \n * @event mouseupoutside\n * @memberof PIXI.interaction.InteractionManager#\n */\n\n /**\n * Fired when a pointing device secondary button (usually a mouse right-button) is released outside the display object that initially \n * registered a [rightdown]{@link PIXI.interaction.InteractionManager#event:rightdown}.\n * \n * @event rightupoutside\n * @memberof PIXI.interaction.InteractionManager#\n */\n\n /**\n * Fired when a pointing device (usually a mouse) is moved while over the display object\n * \n * @event mousemove\n * @memberof PIXI.interaction.InteractionManager#\n */\n\n /**\n * Fired when a pointing device (usually a mouse) is moved onto the display object\n * \n * @event mouseover\n * @memberof PIXI.interaction.InteractionManager#\n */\n\n /**\n * Fired when a pointing device (usually a mouse) is moved off the display object\n * \n * @event mouseout\n * @memberof PIXI.interaction.InteractionManager#\n */\n\n /**\n * Fired when a touch point is placed on the display object.\n * \n * @event touchstart\n * @memberof PIXI.interaction.InteractionManager#\n */\n\n /**\n * Fired when a touch point is removed from the display object.\n * \n * @event touchend\n * @memberof PIXI.interaction.InteractionManager#\n */\n\n /**\n * Fired when a touch point is placed and removed from the display object.\n * \n * @event tap\n * @memberof PIXI.interaction.InteractionManager#\n */\n\n /**\n * Fired when a touch point is removed outside of the display object that initially registered a [touchstart]{@link PIXI.interaction.InteractionManager#event:touchstart}.\n * \n * @event touchendoutside\n * @memberof PIXI.interaction.InteractionManager#\n */\n\n /**\n * Fired when a touch point is moved along the display object.\n * \n * @event touchmove\n * @memberof PIXI.interaction.InteractionManager#\n */\n}\n\nInteractionManager.prototype = Object.create(EventEmitter.prototype);\nInteractionManager.prototype.constructor = InteractionManager;\nmodule.exports = InteractionManager;\n\n/**\n * Sets the DOM element which will receive mouse/touch events. This is useful for when you have\n * other DOM elements on top of the renderers Canvas element. With this you'll be bale to deletegate\n * another DOM element to receive those events.\n *\n * @param element {HTMLElement} the DOM element which will receive mouse and touch events.\n * @param [resolution=1] {number} The resolution / device pixel ratio of the new element (relative to the canvas).\n * @private\n */\nInteractionManager.prototype.setTargetElement = function (element, resolution)\n{\n this.removeEvents();\n\n this.interactionDOMElement = element;\n\n this.resolution = resolution || 1;\n\n this.addEvents();\n};\n\n/**\n * Registers all the DOM events\n *\n * @private\n */\nInteractionManager.prototype.addEvents = function ()\n{\n if (!this.interactionDOMElement)\n {\n return;\n }\n\n core.ticker.shared.add(this.update, this);\n\n if (window.navigator.msPointerEnabled)\n {\n this.interactionDOMElement.style['-ms-content-zooming'] = 'none';\n this.interactionDOMElement.style['-ms-touch-action'] = 'none';\n }\n\n window.document.addEventListener('mousemove', this.onMouseMove, true);\n this.interactionDOMElement.addEventListener('mousedown', this.onMouseDown, true);\n this.interactionDOMElement.addEventListener('mouseout', this.onMouseOut, true);\n this.interactionDOMElement.addEventListener('mouseover', this.onMouseOver, true);\n\n this.interactionDOMElement.addEventListener('touchstart', this.onTouchStart, true);\n this.interactionDOMElement.addEventListener('touchend', this.onTouchEnd, true);\n this.interactionDOMElement.addEventListener('touchmove', this.onTouchMove, true);\n\n window.addEventListener('mouseup', this.onMouseUp, true);\n\n this.eventsAdded = true;\n};\n\n/**\n * Removes all the DOM events that were previously registered\n *\n * @private\n */\nInteractionManager.prototype.removeEvents = function ()\n{\n if (!this.interactionDOMElement)\n {\n return;\n }\n\n core.ticker.shared.remove(this.update);\n\n if (window.navigator.msPointerEnabled)\n {\n this.interactionDOMElement.style['-ms-content-zooming'] = '';\n this.interactionDOMElement.style['-ms-touch-action'] = '';\n }\n\n window.document.removeEventListener('mousemove', this.onMouseMove, true);\n this.interactionDOMElement.removeEventListener('mousedown', this.onMouseDown, true);\n this.interactionDOMElement.removeEventListener('mouseout', this.onMouseOut, true);\n this.interactionDOMElement.removeEventListener('mouseover', this.onMouseOver, true);\n\n this.interactionDOMElement.removeEventListener('touchstart', this.onTouchStart, true);\n this.interactionDOMElement.removeEventListener('touchend', this.onTouchEnd, true);\n this.interactionDOMElement.removeEventListener('touchmove', this.onTouchMove, true);\n\n this.interactionDOMElement = null;\n\n window.removeEventListener('mouseup', this.onMouseUp, true);\n\n this.eventsAdded = false;\n};\n\n/**\n * Updates the state of interactive objects.\n * Invoked by a throttled ticker update from\n * {@link PIXI.ticker.shared}.\n *\n * @param deltaTime {number} time delta since last tick\n */\nInteractionManager.prototype.update = function (deltaTime)\n{\n this._deltaTime += deltaTime;\n\n if (this._deltaTime < this.interactionFrequency)\n {\n return;\n }\n\n this._deltaTime = 0;\n\n if (!this.interactionDOMElement)\n {\n return;\n }\n\n // if the user move the mouse this check has already been dfone using the mouse move!\n if(this.didMove)\n {\n this.didMove = false;\n return;\n }\n\n this.cursor = this.defaultCursorStyle;\n\n this.processInteractive(this.mouse.global, this.renderer._lastObjectRendered, this.processMouseOverOut, true );\n\n if (this.currentCursorStyle !== this.cursor)\n {\n this.currentCursorStyle = this.cursor;\n this.interactionDOMElement.style.cursor = this.cursor;\n }\n\n //TODO\n};\n\n/**\n * Dispatches an event on the display object that was interacted with\n *\n * @param displayObject {PIXI.Container|PIXI.Sprite|PIXI.extras.TilingSprite} the display object in question\n * @param eventString {string} the name of the event (e.g, mousedown)\n * @param eventData {object} the event data object\n * @private\n */\nInteractionManager.prototype.dispatchEvent = function ( displayObject, eventString, eventData )\n{\n if(!eventData.stopped)\n {\n eventData.target = displayObject;\n eventData.type = eventString;\n\n displayObject.emit( eventString, eventData );\n\n if( displayObject[eventString] )\n {\n displayObject[eventString]( eventData );\n }\n }\n};\n\n/**\n * Maps x and y coords from a DOM object and maps them correctly to the pixi view. The resulting value is stored in the point.\n * This takes into account the fact that the DOM element could be scaled and positioned anywhere on the screen.\n *\n * @param {PIXI.Point} point the point that the result will be stored in\n * @param {number} x the x coord of the position to map\n * @param {number} y the y coord of the position to map\n */\nInteractionManager.prototype.mapPositionToPoint = function ( point, x, y )\n{\n var rect;\n // IE 11 fix\n if(!this.interactionDOMElement.parentElement)\n {\n rect = { x: 0, y: 0, width: 0, height: 0 };\n } else {\n rect = this.interactionDOMElement.getBoundingClientRect();\n }\n\n point.x = ( ( x - rect.left ) * (this.interactionDOMElement.width / rect.width ) ) / this.resolution;\n point.y = ( ( y - rect.top ) * (this.interactionDOMElement.height / rect.height ) ) / this.resolution;\n};\n\n/**\n * This function is provides a neat way of crawling through the scene graph and running a specified function on all interactive objects it finds.\n * It will also take care of hit testing the interactive objects and passes the hit across in the function.\n *\n * @param point {PIXI.Point} the point that is tested for collision\n * @param displayObject {PIXI.Container|PIXI.Sprite|PIXI.extras.TilingSprite} the displayObject that will be hit test (recurcsivly crawls its children)\n * @param [func] {Function} the function that will be called on each interactive object. The displayObject and hit will be passed to the function\n * @param [hitTest] {boolean} this indicates if the objects inside should be hit test against the point\n * @param [interactive] {boolean} Whether the displayObject is interactive\n * @return {boolean} returns true if the displayObject hit the point\n */\nInteractionManager.prototype.processInteractive = function (point, displayObject, func, hitTest, interactive)\n{\n if(!displayObject || !displayObject.visible)\n {\n return false;\n }\n\n // Took a little while to rework this function correctly! But now it is done and nice and optimised. ^_^\n //\n // This function will now loop through all objects and then only hit test the objects it HAS to, not all of them. MUCH faster..\n // An object will be hit test if the following is true:\n //\n // 1: It is interactive.\n // 2: It belongs to a parent that is interactive AND one of the parents children have not already been hit.\n //\n // As another little optimisation once an interactive object has been hit we can carry on through the scenegraph, but we know that there will be no more hits! So we can avoid extra hit tests\n // A final optimisation is that an object is not hit test directly if a child has already been hit.\n\n var hit = false,\n interactiveParent = interactive = displayObject.interactive || interactive;\n\n\n\n\n // if the displayobject has a hitArea, then it does not need to hitTest children.\n if(displayObject.hitArea)\n {\n interactiveParent = false;\n }\n\n // it has a mask! Then lets hit test that before continuing..\n if(hitTest && displayObject._mask)\n {\n if(!displayObject._mask.containsPoint(point))\n {\n hitTest = false;\n }\n }\n\n // it has a filterArea! Same as mask but easier, its a rectangle\n if(hitTest && displayObject.filterArea)\n {\n if(!displayObject.filterArea.contains(point.x, point.y))\n {\n hitTest = false;\n }\n }\n\n // ** FREE TIP **! If an object is not interactive or has no buttons in it (such as a game scene!) set interactiveChildren to false for that displayObject.\n // This will allow pixi to completly ignore and bypass checking the displayObjects children.\n if(displayObject.interactiveChildren)\n {\n var children = displayObject.children;\n\n for (var i = children.length-1; i >= 0; i--)\n {\n var child = children[i];\n\n // time to get recursive.. if this function will return if somthing is hit..\n if(this.processInteractive(point, child, func, hitTest, interactiveParent))\n {\n // its a good idea to check if a child has lost its parent.\n // this means it has been removed whilst looping so its best\n if(!child.parent)\n {\n continue;\n }\n\n hit = true;\n\n // we no longer need to hit test any more objects in this container as we we now know the parent has been hit\n interactiveParent = false;\n\n // If the child is interactive , that means that the object hit was actually interactive and not just the child of an interactive object.\n // This means we no longer need to hit test anything else. We still need to run through all objects, but we don't need to perform any hit tests.\n\n //{\n hitTest = false;\n //}\n\n // we can break now as we have hit an object.\n }\n }\n }\n\n\n\n // no point running this if the item is not interactive or does not have an interactive parent.\n if(interactive)\n {\n // if we are hit testing (as in we have no hit any objects yet)\n // We also don't need to worry about hit testing if once of the displayObjects children has already been hit!\n if(hitTest && !hit)\n {\n\n if(displayObject.hitArea)\n {\n displayObject.worldTransform.applyInverse(point, this._tempPoint);\n hit = displayObject.hitArea.contains( this._tempPoint.x, this._tempPoint.y );\n }\n else if(displayObject.containsPoint)\n {\n hit = displayObject.containsPoint(point);\n }\n\n\n }\n\n if(displayObject.interactive)\n {\n func(displayObject, hit);\n }\n }\n\n return hit;\n\n};\n\n\n/**\n * Is called when the mouse button is pressed down on the renderer element\n *\n * @param event {Event} The DOM event of a mouse button being pressed down\n * @private\n */\nInteractionManager.prototype.onMouseDown = function (event)\n{\n this.mouse.originalEvent = event;\n this.eventData.data = this.mouse;\n this.eventData.stopped = false;\n\n // Update internal mouse reference\n this.mapPositionToPoint( this.mouse.global, event.clientX, event.clientY);\n\n if (this.autoPreventDefault)\n {\n this.mouse.originalEvent.preventDefault();\n }\n\n this.processInteractive(this.mouse.global, this.renderer._lastObjectRendered, this.processMouseDown, true );\n\n var isRightButton = event.button === 2 || event.which === 3;\n this.emit(isRightButton ? 'rightdown' : 'mousedown', this.eventData);\n};\n\n/**\n * Processes the result of the mouse down check and dispatches the event if need be\n *\n * @param displayObject {PIXI.Container|PIXI.Sprite|PIXI.extras.TilingSprite} The display object that was tested\n * @param hit {boolean} the result of the hit test on the dispay object\n * @private\n */\nInteractionManager.prototype.processMouseDown = function ( displayObject, hit )\n{\n var e = this.mouse.originalEvent;\n\n var isRightButton = e.button === 2 || e.which === 3;\n\n if(hit)\n {\n displayObject[ isRightButton ? '_isRightDown' : '_isLeftDown' ] = true;\n this.dispatchEvent( displayObject, isRightButton ? 'rightdown' : 'mousedown', this.eventData );\n }\n};\n\n/**\n * Is called when the mouse button is released on the renderer element\n *\n * @param event {Event} The DOM event of a mouse button being released\n * @private\n */\nInteractionManager.prototype.onMouseUp = function (event)\n{\n this.mouse.originalEvent = event;\n this.eventData.data = this.mouse;\n this.eventData.stopped = false;\n\n // Update internal mouse reference\n this.mapPositionToPoint( this.mouse.global, event.clientX, event.clientY);\n\n this.processInteractive(this.mouse.global, this.renderer._lastObjectRendered, this.processMouseUp, true );\n\n var isRightButton = event.button === 2 || event.which === 3;\n this.emit(isRightButton ? 'rightup' : 'mouseup', this.eventData);\n};\n\n/**\n * Processes the result of the mouse up check and dispatches the event if need be\n *\n * @param displayObject {PIXI.Container|PIXI.Sprite|PIXI.extras.TilingSprite} The display object that was tested\n * @param hit {boolean} the result of the hit test on the display object\n * @private\n */\nInteractionManager.prototype.processMouseUp = function ( displayObject, hit )\n{\n var e = this.mouse.originalEvent;\n\n var isRightButton = e.button === 2 || e.which === 3;\n var isDown = isRightButton ? '_isRightDown' : '_isLeftDown';\n\n if(hit)\n {\n this.dispatchEvent( displayObject, isRightButton ? 'rightup' : 'mouseup', this.eventData );\n\n if( displayObject[ isDown ] )\n {\n displayObject[ isDown ] = false;\n this.dispatchEvent( displayObject, isRightButton ? 'rightclick' : 'click', this.eventData );\n }\n }\n else\n {\n if( displayObject[ isDown ] )\n {\n displayObject[ isDown ] = false;\n this.dispatchEvent( displayObject, isRightButton ? 'rightupoutside' : 'mouseupoutside', this.eventData );\n }\n }\n};\n\n\n/**\n * Is called when the mouse moves across the renderer element\n *\n * @param event {Event} The DOM event of the mouse moving\n * @private\n */\nInteractionManager.prototype.onMouseMove = function (event)\n{\n this.mouse.originalEvent = event;\n this.eventData.data = this.mouse;\n this.eventData.stopped = false;\n\n this.mapPositionToPoint( this.mouse.global, event.clientX, event.clientY);\n\n this.didMove = true;\n\n this.cursor = this.defaultCursorStyle;\n\n this.processInteractive(this.mouse.global, this.renderer._lastObjectRendered, this.processMouseMove, true );\n\n this.emit('mousemove', this.eventData);\n\n if (this.currentCursorStyle !== this.cursor)\n {\n this.currentCursorStyle = this.cursor;\n this.interactionDOMElement.style.cursor = this.cursor;\n }\n\n //TODO BUG for parents ineractive object (border order issue)\n};\n\n/**\n * Processes the result of the mouse move check and dispatches the event if need be\n *\n * @param displayObject {PIXI.Container|PIXI.Sprite|PIXI.extras.TilingSprite} The display object that was tested\n * @param hit {boolean} the result of the hit test on the display object\n * @private\n */\nInteractionManager.prototype.processMouseMove = function ( displayObject, hit )\n{\n this.processMouseOverOut(displayObject, hit);\n\n // only display on mouse over\n if(!this.moveWhenInside || hit)\n {\n this.dispatchEvent( displayObject, 'mousemove', this.eventData);\n }\n};\n\n\n/**\n * Is called when the mouse is moved out of the renderer element\n *\n * @param event {Event} The DOM event of a mouse being moved out\n * @private\n */\nInteractionManager.prototype.onMouseOut = function (event)\n{\n this.mouse.originalEvent = event;\n this.eventData.data = this.mouse;\n this.eventData.stopped = false;\n\n // Update internal mouse reference\n this.mapPositionToPoint( this.mouse.global, event.clientX, event.clientY);\n\n this.interactionDOMElement.style.cursor = this.defaultCursorStyle;\n\n // TODO optimize by not check EVERY TIME! maybe half as often? //\n this.mapPositionToPoint( this.mouse.global, event.clientX, event.clientY );\n\n this.processInteractive( this.mouse.global, this.renderer._lastObjectRendered, this.processMouseOverOut, false );\n\n this.emit('mouseout', this.eventData);\n};\n\n/**\n * Processes the result of the mouse over/out check and dispatches the event if need be\n *\n * @param displayObject {PIXI.Container|PIXI.Sprite|PIXI.extras.TilingSprite} The display object that was tested\n * @param hit {boolean} the result of the hit test on the display object\n * @private\n */\nInteractionManager.prototype.processMouseOverOut = function ( displayObject, hit )\n{\n if(hit)\n {\n if(!displayObject._over)\n {\n displayObject._over = true;\n this.dispatchEvent( displayObject, 'mouseover', this.eventData );\n }\n\n if (displayObject.buttonMode)\n {\n this.cursor = displayObject.defaultCursor;\n }\n }\n else\n {\n if(displayObject._over)\n {\n displayObject._over = false;\n this.dispatchEvent( displayObject, 'mouseout', this.eventData);\n }\n }\n};\n\n/**\n * Is called when the mouse enters the renderer element area\n *\n * @param event {Event} The DOM event of the mouse moving into the renderer view\n * @private\n */\nInteractionManager.prototype.onMouseOver = function(event)\n{\n this.mouse.originalEvent = event;\n this.eventData.data = this.mouse;\n this.eventData.stopped = false;\n\n\tthis.emit('mouseover', this.eventData);\n};\n\n\n/**\n * Is called when a touch is started on the renderer element\n *\n * @param event {Event} The DOM event of a touch starting on the renderer view\n * @private\n */\nInteractionManager.prototype.onTouchStart = function (event)\n{\n if (this.autoPreventDefault)\n {\n event.preventDefault();\n }\n\n var changedTouches = event.changedTouches;\n var cLength = changedTouches.length;\n\n for (var i=0; i < cLength; i++)\n {\n var touchEvent = changedTouches[i];\n //TODO POOL\n var touchData = this.getTouchData( touchEvent );\n\n touchData.originalEvent = event;\n\n this.eventData.data = touchData;\n this.eventData.stopped = false;\n\n this.processInteractive( touchData.global, this.renderer._lastObjectRendered, this.processTouchStart, true );\n\n this.emit('touchstart', this.eventData);\n\n this.returnTouchData( touchData );\n }\n};\n\n/**\n * Processes the result of a touch check and dispatches the event if need be\n *\n * @param displayObject {PIXI.Container|PIXI.Sprite|PIXI.extras.TilingSprite} The display object that was tested\n * @param hit {boolean} the result of the hit test on the display object\n * @private\n */\nInteractionManager.prototype.processTouchStart = function ( displayObject, hit )\n{\n if(hit)\n {\n displayObject._touchDown = true;\n this.dispatchEvent( displayObject, 'touchstart', this.eventData );\n }\n};\n\n\n/**\n * Is called when a touch ends on the renderer element\n *\n * @param event {Event} The DOM event of a touch ending on the renderer view\n * @private\n */\nInteractionManager.prototype.onTouchEnd = function (event)\n{\n if (this.autoPreventDefault)\n {\n event.preventDefault();\n }\n\n var changedTouches = event.changedTouches;\n var cLength = changedTouches.length;\n\n for (var i=0; i < cLength; i++)\n {\n var touchEvent = changedTouches[i];\n\n var touchData = this.getTouchData( touchEvent );\n\n touchData.originalEvent = event;\n\n //TODO this should be passed along.. no set\n this.eventData.data = touchData;\n this.eventData.stopped = false;\n\n\n this.processInteractive( touchData.global, this.renderer._lastObjectRendered, this.processTouchEnd, true );\n\n this.emit('touchend', this.eventData);\n\n this.returnTouchData( touchData );\n }\n};\n\n/**\n * Processes the result of the end of a touch and dispatches the event if need be\n *\n * @param displayObject {PIXI.Container|PIXI.Sprite|PIXI.extras.TilingSprite} The display object that was tested\n * @param hit {boolean} the result of the hit test on the display object\n * @private\n */\nInteractionManager.prototype.processTouchEnd = function ( displayObject, hit )\n{\n if(hit)\n {\n this.dispatchEvent( displayObject, 'touchend', this.eventData );\n\n if( displayObject._touchDown )\n {\n displayObject._touchDown = false;\n this.dispatchEvent( displayObject, 'tap', this.eventData );\n }\n }\n else\n {\n if( displayObject._touchDown )\n {\n displayObject._touchDown = false;\n this.dispatchEvent( displayObject, 'touchendoutside', this.eventData );\n }\n }\n};\n\n/**\n * Is called when a touch is moved across the renderer element\n *\n * @param event {Event} The DOM event of a touch moving across the renderer view\n * @private\n */\nInteractionManager.prototype.onTouchMove = function (event)\n{\n if (this.autoPreventDefault)\n {\n event.preventDefault();\n }\n\n var changedTouches = event.changedTouches;\n var cLength = changedTouches.length;\n\n for (var i=0; i < cLength; i++)\n {\n var touchEvent = changedTouches[i];\n\n var touchData = this.getTouchData( touchEvent );\n\n touchData.originalEvent = event;\n\n this.eventData.data = touchData;\n this.eventData.stopped = false;\n\n this.processInteractive( touchData.global, this.renderer._lastObjectRendered, this.processTouchMove, this.moveWhenInside );\n\n this.emit('touchmove', this.eventData);\n\n this.returnTouchData( touchData );\n }\n};\n\n/**\n * Processes the result of a touch move check and dispatches the event if need be\n *\n * @param displayObject {PIXI.Container|PIXI.Sprite|PIXI.extras.TilingSprite} The display object that was tested\n * @param hit {boolean} the result of the hit test on the display object\n * @private\n */\nInteractionManager.prototype.processTouchMove = function ( displayObject, hit )\n{\n if(!this.moveWhenInside || hit)\n {\n this.dispatchEvent( displayObject, 'touchmove', this.eventData);\n }\n};\n\n/**\n * Grabs an interaction data object from the internal pool\n *\n * @param touchEvent {object} The touch event we need to pair with an interactionData object\n *\n * @private\n */\nInteractionManager.prototype.getTouchData = function (touchEvent)\n{\n var touchData = this.interactiveDataPool.pop();\n\n if(!touchData)\n {\n touchData = new InteractionData();\n }\n\n touchData.identifier = touchEvent.identifier;\n this.mapPositionToPoint( touchData.global, touchEvent.clientX, touchEvent.clientY );\n\n if(navigator.isCocoonJS)\n {\n touchData.global.x = touchData.global.x / this.resolution;\n touchData.global.y = touchData.global.y / this.resolution;\n }\n\n touchEvent.globalX = touchData.global.x;\n touchEvent.globalY = touchData.global.y;\n\n return touchData;\n};\n\n/**\n * Returns an interaction data object to the internal pool\n *\n * @param touchData {PIXI.interaction.InteractionData} The touch data object we want to return to the pool\n *\n * @private\n */\nInteractionManager.prototype.returnTouchData = function ( touchData )\n{\n this.interactiveDataPool.push( touchData );\n};\n\n/**\n * Destroys the interaction manager\n *\n */\nInteractionManager.prototype.destroy = function () {\n this.removeEvents();\n\n this.removeAllListeners();\n\n this.renderer = null;\n\n this.mouse = null;\n\n this.eventData = null;\n\n this.interactiveDataPool = null;\n\n this.interactionDOMElement = null;\n\n this.onMouseUp = null;\n this.processMouseUp = null;\n\n\n this.onMouseDown = null;\n this.processMouseDown = null;\n\n this.onMouseMove = null;\n this.processMouseMove = null;\n\n this.onMouseOut = null;\n this.processMouseOverOut = null;\n\n this.onMouseOver = null;\n\n this.onTouchStart = null;\n this.processTouchStart = null;\n\n this.onTouchEnd = null;\n this.processTouchEnd = null;\n\n this.onTouchMove = null;\n this.processTouchMove = null;\n\n this._tempPoint = null;\n};\n\ncore.WebGLRenderer.registerPlugin('interaction', InteractionManager);\ncore.CanvasRenderer.registerPlugin('interaction', InteractionManager);\n","/**\n * @file Main export of the PIXI interactions library\n * @author Mat Groves \n * @copyright 2013-2015 GoodBoyDigital\n * @license {@link https://github.com/pixijs/pixi.js/blob/master/LICENSE|MIT License}\n */\n\n/**\n * @namespace PIXI.interaction\n */\nmodule.exports = {\n InteractionData: require('./InteractionData'),\n InteractionManager: require('./InteractionManager'),\n interactiveTarget: require('./interactiveTarget')\n};\n","/**\n * Default property values of interactive objects\n * Used by {@link PIXI.interaction.InteractionManager} to automatically give all DisplayObjects these properties\n *\n * @mixin\n * @memberof PIXI.interaction\n * @example\n * function MyObject() {}\n *\n * Object.assign(\n * MyObject.prototype,\n * PIXI.interaction.interactiveTarget\n * );\n */\nvar interactiveTarget = {\n /**\n * Determines if the displayObject be clicked/touched\n * \n * @inner {boolean}\n */\n interactive: false,\n \n /**\n * Determines if the children to the displayObject can be clicked/touched\n * Setting this to false allows pixi to bypass a recursive hitTest function \n * \n * @inner {boolean}\n */\n interactiveChildren: true,\n \n /**\n * Interaction shape. Children will be hit first, then this shape will be checked.\n * Setting this will cause this shape to be checked in hit tests rather than the displayObject's bounds.\n * \n * @inner {PIXI.Rectangle|PIXI.Circle|PIXI.Ellipse|PIXI.Polygon|PIXI.RoundedRectangle}\n */\n hitArea: null,\n \n /**\n * If enabled, the mouse cursor will change when hovered over the displayObject if it is interactive \n *\n * @inner {boolean}\n */\n buttonMode: false,\n \n /**\n * If buttonMode is enabled, this defines what CSS cursor property is used when the mouse cursor is hovered over the displayObject\n * https://developer.mozilla.org/en/docs/Web/CSS/cursor\n * \n * @inner {string}\n */\n defaultCursor: 'pointer',\n\n // some internal checks..\n /**\n * Internal check to detect if the mouse cursor is hovered over the displayObject\n * \n * @inner {boolean}\n * @private\n */\n _over: false,\n \n /**\n * Internal check to detect if the left mouse button is pressed on the displayObject\n * \n * @inner {boolean}\n * @private\n */\n _isLeftDown: false,\n \n /**\n * Internal check to detect if the right mouse button is pressed on the displayObject\n * \n * @inner {boolean}\n * @private\n */\n _isRightDown: false,\n \n /**\n * Internal check to detect if a user has touched the displayObject\n * \n * @inner {boolean}\n * @private\n */\n _touchDown: false\n };\n\nmodule.exports = interactiveTarget;\n","var Resource = require('resource-loader').Resource,\n core = require('../core'),\n extras = require('../extras'),\n path = require('path');\n\n\nfunction parse(resource, texture) {\n var data = {};\n var info = resource.data.getElementsByTagName('info')[0];\n var common = resource.data.getElementsByTagName('common')[0];\n\n data.font = info.getAttribute('face');\n data.size = parseInt(info.getAttribute('size'), 10);\n data.lineHeight = parseInt(common.getAttribute('lineHeight'), 10);\n data.chars = {};\n\n //parse letters\n var letters = resource.data.getElementsByTagName('char');\n\n for (var i = 0; i < letters.length; i++)\n {\n var charCode = parseInt(letters[i].getAttribute('id'), 10);\n\n var textureRect = new core.Rectangle(\n parseInt(letters[i].getAttribute('x'), 10) + texture.frame.x,\n parseInt(letters[i].getAttribute('y'), 10) + texture.frame.y,\n parseInt(letters[i].getAttribute('width'), 10),\n parseInt(letters[i].getAttribute('height'), 10)\n );\n\n data.chars[charCode] = {\n xOffset: parseInt(letters[i].getAttribute('xoffset'), 10),\n yOffset: parseInt(letters[i].getAttribute('yoffset'), 10),\n xAdvance: parseInt(letters[i].getAttribute('xadvance'), 10),\n kerning: {},\n texture: new core.Texture(texture.baseTexture, textureRect)\n\n };\n }\n\n //parse kernings\n var kernings = resource.data.getElementsByTagName('kerning');\n for (i = 0; i < kernings.length; i++)\n {\n var first = parseInt(kernings[i].getAttribute('first'), 10);\n var second = parseInt(kernings[i].getAttribute('second'), 10);\n var amount = parseInt(kernings[i].getAttribute('amount'), 10);\n\n if(data.chars[second])\n {\n data.chars[second].kerning[first] = amount;\n }\n }\n\n resource.bitmapFont = data;\n\n // I'm leaving this as a temporary fix so we can test the bitmap fonts in v3\n // but it's very likely to change\n extras.BitmapText.fonts[data.font] = data;\n}\n\n\nmodule.exports = function ()\n{\n return function (resource, next)\n {\n // skip if no data or not xml data\n if (!resource.data || !resource.isXml)\n {\n return next();\n }\n\n // skip if not bitmap font data, using some silly duck-typing\n if (\n resource.data.getElementsByTagName('page').length === 0 ||\n resource.data.getElementsByTagName('info').length === 0 ||\n resource.data.getElementsByTagName('info')[0].getAttribute('face') === null\n )\n {\n return next();\n }\n\n var xmlUrl = !resource.isDataUrl ? path.dirname(resource.url) : '';\n\n if (resource.isDataUrl) {\n if (xmlUrl === '.') {\n xmlUrl = '';\n }\n\n if (this.baseUrl && xmlUrl) {\n // if baseurl has a trailing slash then add one to xmlUrl so the replace works below\n if (this.baseUrl.charAt(this.baseUrl.length - 1) === '/') {\n xmlUrl += '/';\n }\n\n // remove baseUrl from xmlUrl\n xmlUrl = xmlUrl.replace(this.baseUrl, '');\n }\n }\n \n // if there is an xmlUrl now, it needs a trailing slash. Ensure that it does if the string isn't empty.\n if (xmlUrl && xmlUrl.charAt(xmlUrl.length - 1) !== '/') {\n xmlUrl += '/';\n }\n \n var textureUrl = xmlUrl + resource.data.getElementsByTagName('page')[0].getAttribute('file');\n if (core.utils.TextureCache[textureUrl]) {\n //reuse existing texture\n parse(resource, core.utils.TextureCache[textureUrl]);\n next();\n }\n else {\n var loadOptions = {\n crossOrigin: resource.crossOrigin,\n loadType: Resource.LOAD_TYPE.IMAGE,\n metadata: resource.metadata.imageMetadata\n };\n // load the texture for the font\n this.add(resource.name + '_image', textureUrl, loadOptions, function (res) {\n parse(resource, res.texture);\n next();\n });\n }\n };\n};\n","/**\n * @file Main export of the PIXI loaders library\n * @author Mat Groves \n * @copyright 2013-2015 GoodBoyDigital\n * @license {@link https://github.com/pixijs/pixi.js/blob/master/LICENSE|MIT License}\n */\n\n/**\n * @namespace PIXI.loaders\n */\nmodule.exports = {\n Loader: require('./loader'),\n\n // parsers\n bitmapFontParser: require('./bitmapFontParser'),\n spritesheetParser: require('./spritesheetParser'),\n textureParser: require('./textureParser'),\n Resource: require('resource-loader').Resource\n};\n","var ResourceLoader = require('resource-loader'),\n textureParser = require('./textureParser'),\n spritesheetParser = require('./spritesheetParser'),\n bitmapFontParser = require('./bitmapFontParser');\n\n/**\n *\n * The new loader, extends Resource Loader by Chad Engler : https://github.com/englercj/resource-loader\n *\n * ```js\n * var loader = PIXI.loader; // pixi exposes a premade instance for you to use.\n * //or\n * var loader = new PIXI.loaders.Loader(); // you can also create your own if you want\n *\n * loader.add('bunny',\"data/bunny.png\");\n *\n * loader.once('complete',onAssetsLoaded);\n *\n * loader.load();\n * ```\n *\n * @class\n * @extends module:resource-loader.ResourceLoader\n * @memberof PIXI.loaders\n * @param [baseUrl=''] {string} The base url for all resources loaded by this loader.\n * @param [concurrency=10] {number} The number of resources to load concurrently.\n * @see https://github.com/englercj/resource-loader\n */\nfunction Loader(baseUrl, concurrency)\n{\n ResourceLoader.call(this, baseUrl, concurrency);\n\n for (var i = 0; i < Loader._pixiMiddleware.length; ++i) {\n this.use(Loader._pixiMiddleware[i]());\n }\n}\n\nLoader.prototype = Object.create(ResourceLoader.prototype);\nLoader.prototype.constructor = Loader;\n\nmodule.exports = Loader;\n\nLoader._pixiMiddleware = [\n // parse any blob into more usable objects (e.g. Image)\n ResourceLoader.middleware.parsing.blob,\n // parse any Image objects into textures\n textureParser,\n // parse any spritesheet data into multiple textures\n spritesheetParser,\n // parse any spritesheet data into multiple textures\n bitmapFontParser\n];\n\nLoader.addPixiMiddleware = function (fn) {\n Loader._pixiMiddleware.push(fn);\n};\n\n// Add custom extentions\nvar Resource = ResourceLoader.Resource;\n\nResource.setExtensionXhrType('fnt', Resource.XHR_RESPONSE_TYPE.DOCUMENT);\n","var Resource = require('resource-loader').Resource,\n path = require('path'),\n core = require('../core');\n\nvar BATCH_SIZE = 1000;\n\nmodule.exports = function ()\n{\n return function (resource, next)\n {\n var resourcePath;\n var imageResourceName = resource.name + '_image';\n\n // skip if no data, its not json, it isn't spritesheet data, or the image resource already exists\n if (!resource.data || !resource.isJson || !resource.data.frames || this.resources[imageResourceName])\n {\n return next();\n }\n\n var loadOptions = {\n crossOrigin: resource.crossOrigin,\n loadType: Resource.LOAD_TYPE.IMAGE,\n metadata: resource.metadata.imageMetadata\n };\n\n // Prepend url path unless the resource image is a data url\n if (resource.isDataUrl)\n {\n resourcePath = resource.data.meta.image;\n }\n else\n {\n resourcePath = path.dirname(resource.url.replace(this.baseUrl, '')) + '/' + resource.data.meta.image;\n }\n\n // load the image for this sheet\n this.add(imageResourceName, resourcePath, loadOptions, function (res)\n {\n resource.textures = {};\n\n var frames = resource.data.frames;\n var frameKeys = Object.keys(frames);\n var resolution = core.utils.getResolutionOfUrl(resource.url);\n var batchIndex = 0;\n\n function processFrames(initialFrameIndex, maxFrames)\n {\n var frameIndex = initialFrameIndex;\n\n while (frameIndex - initialFrameIndex < maxFrames && frameIndex < frameKeys.length)\n {\n var i = frameKeys[frameIndex];\n var rect = frames[i].frame;\n\n if (rect)\n {\n\n var frame = null;\n var trim = null;\n var orig = new core.Rectangle(0, 0, frames[i].sourceSize.w / resolution, frames[i].sourceSize.h / resolution);\n\n if (frames[i].rotated) {\n frame = new core.Rectangle(rect.x / resolution, rect.y / resolution, rect.h / resolution, rect.w / resolution);\n }\n else {\n frame = new core.Rectangle(rect.x / resolution, rect.y / resolution, rect.w / resolution, rect.h / resolution);\n }\n\n // Check to see if the sprite is trimmed\n if (frames[i].trimmed)\n {\n trim = new core.Rectangle(\n frames[i].spriteSourceSize.x / resolution,\n frames[i].spriteSourceSize.y / resolution,\n frames[i].spriteSourceSize.w / resolution,\n frames[i].spriteSourceSize.h / resolution\n );\n }\n\n resource.textures[i] = new core.Texture(res.texture.baseTexture, frame, orig, trim, frames[i].rotated ? 2 : 0);\n\n // lets also add the frame to pixi's global cache for fromFrame and fromImage functions\n core.utils.TextureCache[i] = resource.textures[i];\n\n }\n\n frameIndex++;\n }\n }\n\n function shouldProcessNextBatch()\n {\n return batchIndex * BATCH_SIZE < frameKeys.length;\n }\n\n function processNextBatch(done)\n {\n processFrames(batchIndex * BATCH_SIZE, BATCH_SIZE);\n batchIndex++;\n setTimeout(done, 0);\n }\n\n function iteration() {\n processNextBatch(function() {\n if (shouldProcessNextBatch()) {\n iteration();\n } else {\n next();\n }\n });\n }\n\n if (frameKeys.length <= BATCH_SIZE)\n {\n processFrames(0, BATCH_SIZE);\n next();\n }\n else\n {\n iteration();\n }\n });\n };\n};\n","var core = require('../core');\n\nmodule.exports = function ()\n{\n return function (resource, next)\n {\n // create a new texture if the data is an Image object\n if (resource.data && resource.isImage)\n {\n var baseTexture = new core.BaseTexture(resource.data, null, core.utils.getResolutionOfUrl(resource.url));\n baseTexture.imageUrl = resource.url;\n resource.texture = new core.Texture(baseTexture);\n // lets also add the frame to pixi's global cache for fromFrame and fromImage fucntions\n core.utils.BaseTextureCache[resource.url] = baseTexture;\n core.utils.TextureCache[resource.url] = resource.texture;\n }\n\n next();\n };\n};\n","var core = require('../core'),\n glCore = require('pixi-gl-core'),\n Shader = require('./webgl/MeshShader'),\n tempPoint = new core.Point(),\n tempPolygon = new core.Polygon();\n\n/**\n * Base mesh class\n * @class\n * @extends PIXI.Container\n * @memberof PIXI.mesh\n * @param texture {PIXI.Texture} The texture to use\n * @param [vertices] {Float32Array} if you want to specify the vertices\n * @param [uvs] {Float32Array} if you want to specify the uvs\n * @param [indices] {Uint16Array} if you want to specify the indices\n * @param [drawMode] {number} the drawMode, can be any of the Mesh.DRAW_MODES consts\n */\nfunction Mesh(texture, vertices, uvs, indices, drawMode)\n{\n core.Container.call(this);\n\n /**\n * The texture of the Mesh\n *\n * @member {PIXI.Texture}\n * @private\n */\n this._texture = null;\n\n /**\n * The Uvs of the Mesh\n *\n * @member {Float32Array}\n */\n this.uvs = uvs || new Float32Array([0, 0,\n 1, 0,\n 1, 1,\n 0, 1]);\n\n /**\n * An array of vertices\n *\n * @member {Float32Array}\n */\n this.vertices = vertices || new Float32Array([0, 0,\n 100, 0,\n 100, 100,\n 0, 100]);\n\n /*\n * @member {Uint16Array} An array containing the indices of the vertices\n */\n // TODO auto generate this based on draw mode!\n this.indices = indices || new Uint16Array([0, 1, 3, 2]);\n\n /**\n * Whether the Mesh is dirty or not\n *\n * @member {number}\n */\n this.dirty = 0;\n this.indexDirty = 0;\n\n /**\n * The blend mode to be applied to the sprite. Set to `PIXI.BLEND_MODES.NORMAL` to remove any blend mode.\n *\n * @member {number}\n * @default PIXI.BLEND_MODES.NORMAL\n * @see PIXI.BLEND_MODES\n */\n this.blendMode = core.BLEND_MODES.NORMAL;\n\n /**\n * Triangles in canvas mode are automatically antialiased, use this value to force triangles to overlap a bit with each other.\n *\n * @member {number}\n */\n this.canvasPadding = 0;\n\n /**\n * The way the Mesh should be drawn, can be any of the {@link PIXI.mesh.Mesh.DRAW_MODES} consts\n *\n * @member {number}\n * @see PIXI.mesh.Mesh.DRAW_MODES\n */\n this.drawMode = drawMode || Mesh.DRAW_MODES.TRIANGLE_MESH;\n\n // run texture setter;\n this.texture = texture;\n\n /**\n * The default shader that is used if a mesh doesn't have a more specific one.\n *\n * @member {PIXI.Shader}\n */\n this.shader = null;\n\n\n /**\n * The tint applied to the mesh. This is a [r,g,b] value. A value of [1,1,1] will remove any tint effect.\n *\n * @member {number}\n * @memberof PIXI.mesh.Mesh#\n */\n this.tintRgb = new Float32Array([1, 1, 1]);\n\n this._glDatas = [];\n}\n\n// constructor\nMesh.prototype = Object.create(core.Container.prototype);\nMesh.prototype.constructor = Mesh;\nmodule.exports = Mesh;\n\nObject.defineProperties(Mesh.prototype, {\n /**\n * The texture that the sprite is using\n *\n * @member {PIXI.Texture}\n * @memberof PIXI.mesh.Mesh#\n */\n texture: {\n get: function ()\n {\n return this._texture;\n },\n set: function (value)\n {\n if (this._texture === value)\n {\n return;\n }\n\n this._texture = value;\n\n if (value)\n {\n // wait for the texture to load\n if (value.baseTexture.hasLoaded)\n {\n this._onTextureUpdate();\n }\n else\n {\n value.once('update', this._onTextureUpdate, this);\n }\n }\n }\n },\n /**\n * The tint applied to the mesh. This is a hex value. A value of 0xFFFFFF will remove any tint effect.\n *\n * @member {number}\n * @memberof PIXI.mesh.Mesh#\n * @default 0xFFFFFF\n */\n tint: {\n get: function() {\n return core.utils.rgb2hex(this.tintRgb);\n },\n set: function(value) {\n this.tintRgb = core.utils.hex2rgb(value, this.tintRgb);\n }\n }\n});\n\n/**\n * Renders the object using the WebGL renderer\n *\n * @param renderer {PIXI.WebGLRenderer} a reference to the WebGL renderer\n * @private\n */\nMesh.prototype._renderWebGL = function (renderer)\n{\n // get rid of any thing that may be batching.\n renderer.flush();\n\n // renderer.plugins.mesh.render(this);\n var gl = renderer.gl;\n var glData = this._glDatas[renderer.CONTEXT_UID];\n\n if(!glData)\n {\n glData = {\n shader:new Shader(gl),\n vertexBuffer:glCore.GLBuffer.createVertexBuffer(gl, this.vertices, gl.STREAM_DRAW),\n uvBuffer:glCore.GLBuffer.createVertexBuffer(gl, this.uvs, gl.STREAM_DRAW),\n indexBuffer:glCore.GLBuffer.createIndexBuffer(gl, this.indices, gl.STATIC_DRAW),\n // build the vao object that will render..\n vao:new glCore.VertexArrayObject(gl),\n dirty:this.dirty,\n indexDirty:this.indexDirty\n };\n\n // build the vao object that will render..\n glData.vao = new glCore.VertexArrayObject(gl)\n .addIndex(glData.indexBuffer)\n .addAttribute(glData.vertexBuffer, glData.shader.attributes.aVertexPosition, gl.FLOAT, false, 2 * 4, 0)\n .addAttribute(glData.uvBuffer, glData.shader.attributes.aTextureCoord, gl.FLOAT, false, 2 * 4, 0);\n\n this._glDatas[renderer.CONTEXT_UID] = glData;\n\n\n }\n\n if(this.dirty !== glData.dirty)\n {\n glData.dirty = this.dirty;\n glData.uvBuffer.upload();\n\n }\n\n if(this.indexDirty !== glData.indexDirty)\n {\n glData.indexDirty = this.indexDirty;\n glData.indexBuffer.upload();\n }\n\n glData.vertexBuffer.upload();\n\n renderer.bindShader(glData.shader);\n renderer.bindTexture(this._texture, 0);\n renderer.state.setBlendMode(this.blendMode);\n\n glData.shader.uniforms.translationMatrix = this.worldTransform.toArray(true);\n glData.shader.uniforms.alpha = this.worldAlpha;\n glData.shader.uniforms.tint = this.tintRgb;\n\n var drawMode = this.drawMode === Mesh.DRAW_MODES.TRIANGLE_MESH ? gl.TRIANGLE_STRIP : gl.TRIANGLES;\n\n glData.vao.bind()\n .draw(drawMode, this.indices.length)\n .unbind();\n};\n\n/**\n * Renders the object using the Canvas renderer\n *\n * @param renderer {PIXI.CanvasRenderer}\n * @private\n */\nMesh.prototype._renderCanvas = function (renderer)\n{\n var context = renderer.context;\n\n var transform = this.worldTransform;\n var res = renderer.resolution;\n\n if (renderer.roundPixels)\n {\n context.setTransform(transform.a * res, transform.b * res, transform.c * res, transform.d * res, (transform.tx * res) | 0, (transform.ty * res) | 0);\n }\n else\n {\n context.setTransform(transform.a * res, transform.b * res, transform.c * res, transform.d * res, transform.tx * res, transform.ty * res);\n }\n\n if (this.drawMode === Mesh.DRAW_MODES.TRIANGLE_MESH)\n {\n this._renderCanvasTriangleMesh(context);\n }\n else\n {\n this._renderCanvasTriangles(context);\n }\n};\n\n/**\n * Draws the object in Triangle Mesh mode using canvas\n *\n * @param context {CanvasRenderingContext2D} the current drawing context\n * @private\n */\nMesh.prototype._renderCanvasTriangleMesh = function (context)\n{\n // draw triangles!!\n var vertices = this.vertices;\n var uvs = this.uvs;\n\n var length = vertices.length / 2;\n // this.count++;\n\n for (var i = 0; i < length - 2; i++)\n {\n // draw some triangles!\n var index = i * 2;\n this._renderCanvasDrawTriangle(context, vertices, uvs, index, (index + 2), (index + 4));\n }\n};\n\n/**\n * Draws the object in triangle mode using canvas\n *\n * @param context {CanvasRenderingContext2D} the current drawing context\n * @private\n */\nMesh.prototype._renderCanvasTriangles = function (context)\n{\n // draw triangles!!\n var vertices = this.vertices;\n var uvs = this.uvs;\n var indices = this.indices;\n\n var length = indices.length;\n // this.count++;\n\n for (var i = 0; i < length; i += 3)\n {\n // draw some triangles!\n var index0 = indices[i] * 2, index1 = indices[i + 1] * 2, index2 = indices[i + 2] * 2;\n this._renderCanvasDrawTriangle(context, vertices, uvs, index0, index1, index2);\n }\n};\n\n/**\n * Draws one of the triangles that form this Mesh\n *\n * @param context {CanvasRenderingContext2D} the current drawing context\n * @param vertices {Float32Array} a reference to the vertices of the Mesh\n * @param uvs {Float32Array} a reference to the uvs of the Mesh\n * @param index0 {number} the index of the first vertex\n * @param index1 {number} the index of the second vertex\n * @param index2 {number} the index of the third vertex\n * @private\n */\nMesh.prototype._renderCanvasDrawTriangle = function (context, vertices, uvs, index0, index1, index2)\n{\n var base = this._texture.baseTexture;\n var textureSource = base.source;\n var textureWidth = base.width;\n var textureHeight = base.height;\n\n var x0 = vertices[index0], x1 = vertices[index1], x2 = vertices[index2];\n var y0 = vertices[index0 + 1], y1 = vertices[index1 + 1], y2 = vertices[index2 + 1];\n\n var u0 = uvs[index0] * base.width, u1 = uvs[index1] * base.width, u2 = uvs[index2] * base.width;\n var v0 = uvs[index0 + 1] * base.height, v1 = uvs[index1 + 1] * base.height, v2 = uvs[index2 + 1] * base.height;\n\n if (this.canvasPadding > 0)\n {\n var paddingX = this.canvasPadding / this.worldTransform.a;\n var paddingY = this.canvasPadding / this.worldTransform.d;\n var centerX = (x0 + x1 + x2) / 3;\n var centerY = (y0 + y1 + y2) / 3;\n\n var normX = x0 - centerX;\n var normY = y0 - centerY;\n\n var dist = Math.sqrt(normX * normX + normY * normY);\n x0 = centerX + (normX / dist) * (dist + paddingX);\n y0 = centerY + (normY / dist) * (dist + paddingY);\n\n //\n\n normX = x1 - centerX;\n normY = y1 - centerY;\n\n dist = Math.sqrt(normX * normX + normY * normY);\n x1 = centerX + (normX / dist) * (dist + paddingX);\n y1 = centerY + (normY / dist) * (dist + paddingY);\n\n normX = x2 - centerX;\n normY = y2 - centerY;\n\n dist = Math.sqrt(normX * normX + normY * normY);\n x2 = centerX + (normX / dist) * (dist + paddingX);\n y2 = centerY + (normY / dist) * (dist + paddingY);\n }\n\n context.save();\n context.beginPath();\n\n\n context.moveTo(x0, y0);\n context.lineTo(x1, y1);\n context.lineTo(x2, y2);\n\n context.closePath();\n\n context.clip();\n\n // Compute matrix transform\n var delta = (u0 * v1) + (v0 * u2) + (u1 * v2) - (v1 * u2) - (v0 * u1) - (u0 * v2);\n var deltaA = (x0 * v1) + (v0 * x2) + (x1 * v2) - (v1 * x2) - (v0 * x1) - (x0 * v2);\n var deltaB = (u0 * x1) + (x0 * u2) + (u1 * x2) - (x1 * u2) - (x0 * u1) - (u0 * x2);\n var deltaC = (u0 * v1 * x2) + (v0 * x1 * u2) + (x0 * u1 * v2) - (x0 * v1 * u2) - (v0 * u1 * x2) - (u0 * x1 * v2);\n var deltaD = (y0 * v1) + (v0 * y2) + (y1 * v2) - (v1 * y2) - (v0 * y1) - (y0 * v2);\n var deltaE = (u0 * y1) + (y0 * u2) + (u1 * y2) - (y1 * u2) - (y0 * u1) - (u0 * y2);\n var deltaF = (u0 * v1 * y2) + (v0 * y1 * u2) + (y0 * u1 * v2) - (y0 * v1 * u2) - (v0 * u1 * y2) - (u0 * y1 * v2);\n\n context.transform(deltaA / delta, deltaD / delta,\n deltaB / delta, deltaE / delta,\n deltaC / delta, deltaF / delta);\n\n context.drawImage(textureSource, 0, 0, textureWidth * base.resolution, textureHeight * base.resolution, 0, 0, textureWidth, textureHeight);\n context.restore();\n};\n\n\n\n/**\n * Renders a flat Mesh\n *\n * @param Mesh {PIXI.mesh.Mesh} The Mesh to render\n * @private\n */\nMesh.prototype.renderMeshFlat = function (Mesh)\n{\n var context = this.context;\n var vertices = Mesh.vertices;\n\n var length = vertices.length/2;\n // this.count++;\n\n context.beginPath();\n for (var i=1; i < length-2; i++)\n {\n // draw some triangles!\n var index = i*2;\n\n var x0 = vertices[index], x1 = vertices[index+2], x2 = vertices[index+4];\n var y0 = vertices[index+1], y1 = vertices[index+3], y2 = vertices[index+5];\n\n context.moveTo(x0, y0);\n context.lineTo(x1, y1);\n context.lineTo(x2, y2);\n }\n\n context.fillStyle = '#FF0000';\n context.fill();\n context.closePath();\n};\n\n/**\n * When the texture is updated, this event will fire to update the scale and frame\n *\n * @private\n */\nMesh.prototype._onTextureUpdate = function ()\n{\n\n};\n\n/**\n * Returns the bounds of the mesh as a rectangle. The bounds calculation takes the worldTransform into account.\n *\n * @param [matrix=this.worldTransform] {PIXI.Matrix} the transformation matrix of the sprite\n * @return {PIXI.Rectangle} the framing rectangle\n */\nMesh.prototype._calculateBounds = function ()\n{\n //TODO - we can cache local bounds and use them if they are dirty (like graphics)\n this._bounds.addVertices(this.transform, this.vertices, 0, this.vertices.length);\n};\n\n/**\n * Tests if a point is inside this mesh. Works only for TRIANGLE_MESH\n *\n * @param point {PIXI.Point} the point to test\n * @return {boolean} the result of the test\n */\nMesh.prototype.containsPoint = function( point ) {\n if (!this.getBounds().contains(point.x, point.y)) {\n return false;\n }\n this.worldTransform.applyInverse(point, tempPoint);\n\n var vertices = this.vertices;\n var points = tempPolygon.points;\n\n var indices = this.indices;\n var len = this.indices.length;\n var step = this.drawMode === Mesh.DRAW_MODES.TRIANGLES ? 3 : 1;\n for (var i=0;i+2\n * A B\n * +---+----------------------+---+\n * C | 1 | 2 | 3 |\n * +---+----------------------+---+\n * | | | |\n * | 4 | 5 | 6 |\n * | | | |\n * +---+----------------------+---+\n * D | 7 | 8 | 9 |\n * +---+----------------------+---+\n\n * When changing this objects width and/or height:\n * areas 1 3 7 and 9 will remain unscaled.\n * areas 2 and 8 will be stretched horizontally\n * areas 4 and 6 will be stretched vertically\n * area 5 will be stretched both horizontally and vertically\n * \n *\n * @class\n * @extends PIXI.mesh.Plane\n * @memberof PIXI.mesh\n * @param {PIXI.Texture} texture - The texture to use on the NineSlicePlane.\n * @param {int} [leftWidth=10] size of the left vertical bar (A)\n * @param {int} [topHeight=10] size of the top horizontal bar (C)\n * @param {int} [rightWidth=10] size of the right vertical bar (B)\n * @param {int} [bottomHeight=10] size of the bottom horizontal bar (D)\n *\n */\nfunction NineSlicePlane(texture, leftWidth, topHeight, rightWidth, bottomHeight)\n{\n Plane.call(this, texture, 4, 4);\n\n var uvs = this.uvs;\n // right and bottom uv's are always 1\n uvs[6] = uvs[14] = uvs[22] = uvs[30] = 1;\n uvs[25] = uvs[27] = uvs[29] = uvs[31] = 1;\n\n this._origWidth = texture.width;\n this._origHeight = texture.height;\n this._uvw = 1 / this._origWidth;\n this._uvh = 1 / this._origHeight;\n /**\n * The width of the NineSlicePlane, setting this will actually modify the vertices and UV's of this plane\n *\n * @member {number}\n * @memberof PIXI.NineSlicePlane#\n * @override\n */\n this.width = texture.width;\n /**\n * The height of the NineSlicePlane, setting this will actually modify the vertices and UV's of this plane\n *\n * @member {number}\n * @memberof PIXI.NineSlicePlane#\n * @override\n */\n this.height = texture.height;\n\n uvs[2] = uvs[10] = uvs[18] = uvs[26] = this._uvw * leftWidth;\n uvs[4] = uvs[12] = uvs[20] = uvs[28] = 1 - this._uvw * rightWidth;\n uvs[9] = uvs[11] = uvs[13] = uvs[15] = this._uvh * topHeight;\n uvs[17] = uvs[19] = uvs[21] = uvs[23] = 1 - this._uvh * bottomHeight;\n\n /**\n * The width of the left column (a)\n *\n * @member {number}\n */\n this.leftWidth = typeof leftWidth !== 'undefined' ? leftWidth : DEFAULT_BORDER_SIZE;\n /**\n * The width of the right column (b)\n *\n * @member {number}\n */\n this.rightWidth = typeof rightWidth !== 'undefined' ? rightWidth : DEFAULT_BORDER_SIZE;\n /**\n * The height of the top row (c)\n *\n * @member {number}\n */\n this.topHeight = typeof topHeight !== 'undefined' ? topHeight : DEFAULT_BORDER_SIZE;\n /**\n * The height of the bottom row (d)\n *\n * @member {number}\n */\n this.bottomHeight = typeof bottomHeight !== 'undefined' ? bottomHeight : DEFAULT_BORDER_SIZE;\n}\n\n\n// constructor\nNineSlicePlane.prototype = Object.create( Plane.prototype );\nNineSlicePlane.prototype.constructor = NineSlicePlane;\nmodule.exports = NineSlicePlane;\n\nObject.defineProperties(NineSlicePlane.prototype, {\n /**\n * The width of the NineSlicePlane, setting this will actually modify the vertices and UV's of this plane\n *\n * @member {number}\n * @memberof PIXI.NineSlicePlane#\n * @override\n */\n width: {\n get: function ()\n {\n return this._width;\n },\n set: function (value)\n {\n this._width = value;\n this.updateVerticalVertices();\n }\n },\n\n /**\n * The height of the NineSlicePlane, setting this will actually modify the vertices and UV's of this plane\n *\n * @member {number}\n * @memberof PIXI.NineSlicePlane#\n * @override\n */\n height: {\n get: function ()\n {\n return this._height;\n },\n set: function (value)\n {\n this._height = value;\n this.updateHorizontalVertices();\n }\n },\n\n /**\n * The width of the left column\n *\n * @member {number}\n */\n leftWidth: {\n get: function()\n {\n return this._leftWidth;\n },\n set: function (value)\n {\n this._leftWidth = value;\n var uvs = this.uvs;\n var vertices = this.vertices;\n uvs[2] = uvs[10] = uvs[18] = uvs[26] = this._uvw * value;\n vertices[2] = vertices[10] = vertices[18] = vertices[26] = value;\n this.dirty=true;\n }\n },\n /**\n * The width of the right column\n *\n * @member {number}\n */\n rightWidth: {\n get: function()\n {\n return this._rightWidth;\n },\n set: function (value)\n {\n this._rightWidth = value;\n var uvs = this.uvs;\n var vertices = this.vertices;\n uvs[4] = uvs[12] = uvs[20] = uvs[28] = 1 - this._uvw * value;\n vertices[4] = vertices[12] = vertices[20] = vertices[28] = this._width - value;\n this.dirty=true;\n }\n },\n /**\n * The height of the top row\n *\n * @member {number}\n */\n topHeight: {\n get: function()\n {\n return this._topHeight;\n },\n set: function (value)\n {\n this._topHeight = value;\n var uvs = this.uvs;\n var vertices = this.vertices;\n uvs[9] = uvs[11] = uvs[13] = uvs[15] = this._uvh * value;\n vertices[9] = vertices[11] = vertices[13] = vertices[15] = value;\n this.dirty=true;\n }\n },\n /**\n * The height of the bottom row\n *\n * @member {number}\n */\n bottomHeight: {\n get: function()\n {\n return this._bottomHeight;\n },\n set: function (value)\n {\n this._bottomHeight = value;\n var uvs = this.uvs;\n var vertices = this.vertices;\n uvs[17] = uvs[19] = uvs[21] = uvs[23] = 1 - this._uvh * value;\n vertices[17] = vertices[19] = vertices[21] = vertices[23] = this._height - value;\n this.dirty=true;\n }\n }\n});\n\nNineSlicePlane.prototype.updateHorizontalVertices = function() {\n var vertices = this.vertices;\n vertices[9] = vertices[11] = vertices[13] = vertices[15] = this._topHeight;\n vertices[17] = vertices[19] = vertices[21] = vertices[23] = this._height - this._bottomHeight;\n vertices[25] = vertices[27] = vertices[29] = vertices[31] = this._height;\n};\n\nNineSlicePlane.prototype.updateVerticalVertices = function() {\n var vertices = this.vertices;\n vertices[2] = vertices[10] = vertices[18] = vertices[26] = this._leftWidth;\n vertices[4] = vertices[12] = vertices[20] = vertices[28] = this._width - this._rightWidth;\n vertices[6] = vertices[14] = vertices[22] = vertices[30] = this._width ;\n};\n\n/**\n * Renders the object using the Canvas renderer\n *\n * @param renderer {PIXI.CanvasRenderer}\n * @private\n */\nNineSlicePlane.prototype._renderCanvas= function (renderer)\n{\n var context = renderer.context;\n context.globalAlpha = this.worldAlpha;\n\n var transform = this.worldTransform;\n var res = renderer.resolution;\n\n if (renderer.roundPixels)\n {\n context.setTransform(transform.a * res, transform.b * res, transform.c * res, transform.d * res, (transform.tx * res) | 0, (transform.ty * res) | 0);\n }\n else\n {\n context.setTransform(transform.a * res, transform.b * res, transform.c * res, transform.d * res, transform.tx * res, transform.ty * res);\n }\n \n var base = this._texture.baseTexture;\n var textureSource = base.source;\n var w = base.width;\n var h = base.height;\n \n this.drawSegment(context, textureSource, w, h, 0, 1, 10, 11);\n this.drawSegment(context, textureSource, w, h, 2, 3, 12, 13);\n this.drawSegment(context, textureSource, w, h, 4, 5, 14, 15);\n this.drawSegment(context, textureSource, w, h, 8, 9, 18, 19);\n this.drawSegment(context, textureSource, w, h, 10, 11, 20, 21);\n this.drawSegment(context, textureSource, w, h, 12, 13, 22, 23);\n this.drawSegment(context, textureSource, w, h, 16, 17, 26, 27);\n this.drawSegment(context, textureSource, w, h, 18, 19, 28, 29);\n this.drawSegment(context, textureSource, w, h, 20, 21, 30, 31);\n};\n\n/**\n * Renders one segment of the plane.\n * to mimic the exact drawing behavior of stretching the image like WebGL does, we need to make sure\n * that the source area is at least 1 pixel in size, otherwise nothing gets drawn when a slice size of 0 is used.\n *\n * @param context\n * @param textureSource\n * @param w\twidth of the texture\n * @param h height of the texture\n * @param x1 \n * @param y1\t\n * @param x2\n * @param y2\n * @private\n */\nNineSlicePlane.prototype.drawSegment= function (context, textureSource, w, h, x1, y1, x2, y2)\n{\n // otherwise you get weird results when using slices of that are 0 wide or high.\n var uvs = this.uvs;\n var vertices = this.vertices;\n \n var sw = (uvs[x2]-uvs[x1]) * w;\n var sh = (uvs[y2]-uvs[y1]) * h;\n var dw = vertices[x2] - vertices[x1];\n var dh = vertices[y2] - vertices[y1];\n \n // make sure the source is at least 1 pixel wide and high, otherwise nothing will be drawn.\n if (sw<1) {\n sw=1;\n }\n if (sh<1) {\n sh=1;\n }\n // make sure destination is at least 1 pixel wide and high, otherwise you get lines when rendering close to original size.\n if (dw<1) {\n dw=1;\n }\n if (dh<1) {\n dh=1;\n }\n context.drawImage(textureSource, uvs[x1] * w, uvs[y1] * h, sw, sh, vertices[x1], vertices[y1], dw, dh);\n};\n","var Mesh = require('./Mesh');\n\n/**\n * The Plane allows you to draw a texture across several points and them manipulate these points\n *\n *```js\n * for (var i = 0; i < 20; i++) {\n * points.push(new PIXI.Point(i * 50, 0));\n * };\n * var Plane = new PIXI.Plane(PIXI.Texture.fromImage(\"snake.png\"), points);\n * ```\n *\n * @class\n * @extends PIXI.mesh.Mesh\n * @memberof PIXI.mesh\n * @param {PIXI.Texture} texture - The texture to use on the Plane.\n * @param {number} verticesX - The number of vertices in the x-axis\n * @param {number} verticesY - The number of vertices in the y-axis\n *\n */\nfunction Plane(texture, verticesX, verticesY)\n{\n Mesh.call(this, texture);\n\n /**\n * Tracker for if the Plane is ready to be drawn. Needed because Mesh ctor can\n * call _onTextureUpdated which could call refresh too early.\n *\n * @member {boolean}\n * @private\n */\n this._ready = true;\n\n this.verticesX = verticesX || 10;\n this.verticesY = verticesY || 10;\n\n this.drawMode = Mesh.DRAW_MODES.TRIANGLES;\n this.refresh();\n\n}\n\n\n// constructor\nPlane.prototype = Object.create( Mesh.prototype );\nPlane.prototype.constructor = Plane;\nmodule.exports = Plane;\n\n/**\n * Refreshes\n *\n */\nPlane.prototype.refresh = function()\n{\n var total = this.verticesX * this.verticesY;\n var verts = [];\n var colors = [];\n var uvs = [];\n var indices = [];\n var texture = this.texture;\n\n var segmentsX = this.verticesX - 1;\n var segmentsY = this.verticesY - 1;\n var i = 0;\n\n var sizeX = texture.width / segmentsX;\n var sizeY = texture.height / segmentsY;\n\n for (i = 0; i < total; i++) {\n\n var x = (i % this.verticesX);\n var y = ( (i / this.verticesX ) | 0 );\n\n\n verts.push((x * sizeX),\n (y * sizeY));\n\n // this works for rectangular textures.\n uvs.push(texture._uvs.x0 + (texture._uvs.x1 - texture._uvs.x0) * (x / (this.verticesX-1)), texture._uvs.y0 + (texture._uvs.y3-texture._uvs.y0) * (y/ (this.verticesY-1)));\n }\n\n // cons\n\n var totalSub = segmentsX * segmentsY;\n\n for (i = 0; i < totalSub; i++) {\n\n var xpos = i % segmentsX;\n var ypos = (i / segmentsX ) | 0;\n\n\n var value = (ypos * this.verticesX) + xpos;\n var value2 = (ypos * this.verticesX) + xpos + 1;\n var value3 = ((ypos+1) * this.verticesX) + xpos;\n var value4 = ((ypos+1) * this.verticesX) + xpos + 1;\n\n indices.push(value, value2, value3);\n indices.push(value2, value4, value3);\n }\n\n\n //console.log(indices)\n this.vertices = new Float32Array(verts);\n this.uvs = new Float32Array(uvs);\n this.colors = new Float32Array(colors);\n this.indices = new Uint16Array(indices);\n\n this.indexDirty = true;\n};\n\n/**\n * Clear texture UVs when new texture is set\n *\n * @private\n */\nPlane.prototype._onTextureUpdate = function ()\n{\n Mesh.prototype._onTextureUpdate.call(this);\n\n // wait for the Plane ctor to finish before calling refresh\n if (this._ready) {\n this.refresh();\n }\n};\n","var Mesh = require('./Mesh');\nvar core = require('../core');\n\n/**\n * The rope allows you to draw a texture across several points and them manipulate these points\n *\n *```js\n * for (var i = 0; i < 20; i++) {\n * points.push(new PIXI.Point(i * 50, 0));\n * };\n * var rope = new PIXI.Rope(PIXI.Texture.fromImage(\"snake.png\"), points);\n * ```\n *\n * @class\n * @extends PIXI.mesh.Mesh\n * @memberof PIXI.mesh\n * @param {PIXI.Texture} texture - The texture to use on the rope.\n * @param {PIXI.Point[]} points - An array of {@link PIXI.Point} objects to construct this rope.\n *\n */\nfunction Rope(texture, points)\n{\n Mesh.call(this, texture);\n\n /*\n * @member {PIXI.Point[]} An array of points that determine the rope\n */\n this.points = points;\n\n /*\n * @member {Float32Array} An array of vertices used to construct this rope.\n */\n this.vertices = new Float32Array(points.length * 4);\n\n /*\n * @member {Float32Array} The WebGL Uvs of the rope.\n */\n this.uvs = new Float32Array(points.length * 4);\n\n /*\n * @member {Float32Array} An array containing the color components\n */\n this.colors = new Float32Array(points.length * 2);\n\n /*\n * @member {Uint16Array} An array containing the indices of the vertices\n */\n this.indices = new Uint16Array(points.length * 2);\n\n /**\n * Tracker for if the rope is ready to be drawn. Needed because Mesh ctor can\n * call _onTextureUpdated which could call refresh too early.\n *\n * @member {boolean}\n * @private\n */\n this._ready = true;\n\n this.refresh();\n}\n\n\n// constructor\nRope.prototype = Object.create(Mesh.prototype);\nRope.prototype.constructor = Rope;\nmodule.exports = Rope;\n\n/**\n * Refreshes\n *\n */\nRope.prototype.refresh = function ()\n{\n var points = this.points;\n\n // if too little points, or texture hasn't got UVs set yet just move on.\n if (points.length < 1 || !this._texture._uvs)\n {\n return;\n }\n\n var uvs = this.uvs;\n\n var indices = this.indices;\n var colors = this.colors;\n\n var textureUvs = this._texture._uvs;\n var offset = new core.Point(textureUvs.x0, textureUvs.y0);\n var factor = new core.Point(textureUvs.x2 - textureUvs.x0, textureUvs.y2 - textureUvs.y0);\n\n uvs[0] = 0 + offset.x;\n uvs[1] = 0 + offset.y;\n uvs[2] = 0 + offset.x;\n uvs[3] = 1 * factor.y + offset.y;\n\n colors[0] = 1;\n colors[1] = 1;\n\n indices[0] = 0;\n indices[1] = 1;\n\n var total = points.length,\n point, index, amount;\n\n for (var i = 1; i < total; i++)\n {\n point = points[i];\n index = i * 4;\n // time to do some smart drawing!\n amount = i / (total-1);\n\n uvs[index] = amount * factor.x + offset.x;\n uvs[index+1] = 0 + offset.y;\n\n uvs[index+2] = amount * factor.x + offset.x;\n uvs[index+3] = 1 * factor.y + offset.y;\n\n index = i * 2;\n colors[index] = 1;\n colors[index+1] = 1;\n\n index = i * 2;\n indices[index] = index;\n indices[index + 1] = index + 1;\n }\n\n this.dirty = true;\n this.indexDirty = true;\n};\n\n/**\n * Clear texture UVs when new texture is set\n *\n * @private\n */\nRope.prototype._onTextureUpdate = function ()\n{\n\n Mesh.prototype._onTextureUpdate.call(this);\n\n // wait for the Rope ctor to finish before calling refresh\n if (this._ready) {\n this.refresh();\n }\n};\n\n/**\n * Updates the object transform for rendering\n *\n * @private\n */\nRope.prototype.updateTransform = function ()\n{\n var points = this.points;\n\n if (points.length < 1)\n {\n return;\n }\n\n var lastPoint = points[0];\n var nextPoint;\n var perpX = 0;\n var perpY = 0;\n\n // this.count -= 0.2;\n\n var vertices = this.vertices;\n var total = points.length,\n point, index, ratio, perpLength, num;\n\n for (var i = 0; i < total; i++)\n {\n point = points[i];\n index = i * 4;\n\n if (i < points.length-1)\n {\n nextPoint = points[i+1];\n }\n else\n {\n nextPoint = point;\n }\n\n perpY = -(nextPoint.x - lastPoint.x);\n perpX = nextPoint.y - lastPoint.y;\n\n ratio = (1 - (i / (total-1))) * 10;\n\n if (ratio > 1)\n {\n ratio = 1;\n }\n\n perpLength = Math.sqrt(perpX * perpX + perpY * perpY);\n num = this._texture.height / 2; //(20 + Math.abs(Math.sin((i + this.count) * 0.3) * 50) )* ratio;\n perpX /= perpLength;\n perpY /= perpLength;\n\n perpX *= num;\n perpY *= num;\n\n vertices[index] = point.x + perpX;\n vertices[index+1] = point.y + perpY;\n vertices[index+2] = point.x - perpX;\n vertices[index+3] = point.y - perpY;\n\n lastPoint = point;\n }\n\n this.containerUpdateTransform();\n};\n","/**\n * @file Main export of the PIXI extras library\n * @author Mat Groves \n * @copyright 2013-2015 GoodBoyDigital\n * @license {@link https://github.com/pixijs/pixi.js/blob/master/LICENSE|MIT License}\n */\n\n/**\n * @namespace PIXI.mesh\n */\nmodule.exports = {\n Mesh: require('./Mesh'),\n Plane: require('./Plane'),\n NineSlicePlane: require('./NineSlicePlane'),\n Rope: require('./Rope'),\n MeshShader: require('./webgl/MeshShader')\n};\n","var Shader = require('../../core/Shader');\n\n/**\n * @class\n * @extends PIXI.Shader\n * @memberof PIXI.mesh\n * @param gl {PIXI.Shader} TODO: Find a good explanation for this.\n */\nfunction MeshShader(gl)\n{\n Shader.call(this,\n gl,\n // vertex shader\n [\n 'attribute vec2 aVertexPosition;',\n 'attribute vec2 aTextureCoord;',\n\n 'uniform mat3 translationMatrix;',\n 'uniform mat3 projectionMatrix;',\n\n 'varying vec2 vTextureCoord;',\n\n 'void main(void){',\n ' gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);',\n ' vTextureCoord = aTextureCoord;',\n '}'\n ].join('\\n'),\n [\n 'varying vec2 vTextureCoord;',\n 'uniform float alpha;',\n 'uniform vec3 tint;',\n\n 'uniform sampler2D uSampler;',\n\n 'void main(void){',\n ' gl_FragColor = texture2D(uSampler, vTextureCoord) * vec4(tint * alpha, alpha);',\n // ' gl_FragColor = vec4(1.0);',\n '}'\n ].join('\\n')\n );\n}\n\nMeshShader.prototype = Object.create(Shader.prototype);\nMeshShader.prototype.constructor = MeshShader;\nmodule.exports = MeshShader;\n\n","var core = require('../core');\n\n/**\n * The ParticleContainer class is a really fast version of the Container built solely for speed,\n * so use when you need a lot of sprites or particles. The tradeoff of the ParticleContainer is that advanced\n * functionality will not work. ParticleContainer implements only the basic object transform (position, scale, rotation).\n * Any other functionality like tinting, masking, etc will not work on sprites in this batch.\n *\n * It's extremely easy to use :\n *\n * ```js\n * var container = new ParticleContainer();\n *\n * for (var i = 0; i < 100; ++i)\n * {\n * var sprite = new PIXI.Sprite.fromImage(\"myImage.png\");\n * container.addChild(sprite);\n * }\n * ```\n *\n * And here you have a hundred sprites that will be renderer at the speed of light.\n *\n * @class\n * @extends PIXI.Container\n * @memberof PIXI.particles\n * @param [maxSize=15000] {number} The maximum number of particles that can be renderer by the container.\n * @param [properties] {object} The properties of children that should be uploaded to the gpu and applied.\n * @param [properties.scale=false] {boolean} When true, scale be uploaded and applied.\n * @param [properties.position=true] {boolean} When true, position be uploaded and applied.\n * @param [properties.rotation=false] {boolean} When true, rotation be uploaded and applied.\n * @param [properties.uvs=false] {boolean} When true, uvs be uploaded and applied.\n * @param [properties.alpha=false] {boolean} When true, alpha be uploaded and applied.\n * @param [batchSize=15000] {number} Number of particles per batch.\n */\nfunction ParticleContainer(maxSize, properties, batchSize)\n{\n core.Container.call(this);\n\n batchSize = batchSize || 15000; //CONST.SPRITE_BATCH_SIZE; // 2000 is a nice balance between mobile / desktop\n maxSize = maxSize || 15000;\n\n // Making sure the batch size is valid\n // 65535 is max vertex index in the index buffer (see ParticleRenderer)\n // so max number of particles is 65536 / 4 = 16384\n var maxBatchSize = 16384;\n if (batchSize > maxBatchSize) {\n batchSize = maxBatchSize;\n }\n\n if (batchSize > maxSize) {\n batchSize = maxSize;\n }\n\n /**\n * Set properties to be dynamic (true) / static (false)\n *\n * @member {boolean[]}\n * @private\n */\n this._properties = [false, true, false, false, false];\n\n /**\n * @member {number}\n * @private\n */\n this._maxSize = maxSize;\n\n /**\n * @member {number}\n * @private\n */\n this._batchSize = batchSize;\n\n /**\n * @member {WebGLBuffer}\n * @private\n */\n this._glBuffers = [];\n\n /**\n * @member {number}\n * @private\n */\n this._bufferToUpdate = 0;\n\n /**\n * @member {boolean}\n *\n */\n this.interactiveChildren = false;\n\n /**\n * The blend mode to be applied to the sprite. Apply a value of `PIXI.BLEND_MODES.NORMAL` to reset the blend mode.\n *\n * @member {number}\n * @default PIXI.BLEND_MODES.NORMAL\n * @see PIXI.BLEND_MODES\n */\n this.blendMode = core.BLEND_MODES.NORMAL;\n\n /**\n * Used for canvas renderering. If true then the elements will be positioned at the nearest pixel. This provides a nice speed boost.\n *\n * @member {boolean}\n * @default true;\n */\n this.roundPixels = true;\n\n this.baseTexture = null;\n\n this.setProperties(properties);\n}\n\nParticleContainer.prototype = Object.create(core.Container.prototype);\nParticleContainer.prototype.constructor = ParticleContainer;\nmodule.exports = ParticleContainer;\n\n/**\n * Sets the private properties array to dynamic / static based on the passed properties object\n *\n * @param properties {object} The properties to be uploaded\n */\nParticleContainer.prototype.setProperties = function(properties)\n{\n if ( properties ) {\n this._properties[0] = 'scale' in properties ? !!properties.scale : this._properties[0];\n this._properties[1] = 'position' in properties ? !!properties.position : this._properties[1];\n this._properties[2] = 'rotation' in properties ? !!properties.rotation : this._properties[2];\n this._properties[3] = 'uvs' in properties ? !!properties.uvs : this._properties[3];\n this._properties[4] = 'alpha' in properties ? !!properties.alpha : this._properties[4];\n }\n};\n\n/**\n * Updates the object transform for rendering\n *\n * @private\n */\nParticleContainer.prototype.updateTransform = function ()\n{\n\n // TODO don't need to!\n this.displayObjectUpdateTransform();\n // PIXI.Container.prototype.updateTransform.call( this );\n};\n\n/**\n * Renders the container using the WebGL renderer\n *\n * @param renderer {PIXI.WebGLRenderer} The webgl renderer\n * @private\n */\nParticleContainer.prototype.renderWebGL = function (renderer)\n{\n if (!this.visible || this.worldAlpha <= 0 || !this.children.length || !this.renderable)\n {\n return;\n }\n\n\n if(!this.baseTexture)\n {\n this.baseTexture = this.children[0]._texture.baseTexture;\n if(!this.baseTexture.hasLoaded)\n {\n this.baseTexture.once('update', function(){\n this.onChildrenChange(0);\n }, this);\n }\n }\n\n\n renderer.setObjectRenderer( renderer.plugins.particle );\n renderer.plugins.particle.render( this );\n};\n\n/**\n * Set the flag that static data should be updated to true\n *\n * @private\n */\nParticleContainer.prototype.onChildrenChange = function (smallestChildIndex)\n{\n var bufferIndex = Math.floor(smallestChildIndex / this._batchSize);\n if (bufferIndex < this._bufferToUpdate) {\n this._bufferToUpdate = bufferIndex;\n }\n};\n\n/**\n * Renders the object using the Canvas renderer\n *\n * @param renderer {PIXI.CanvasRenderer} The canvas renderer\n * @private\n */\nParticleContainer.prototype.renderCanvas = function (renderer)\n{\n if (!this.visible || this.worldAlpha <= 0 || !this.children.length || !this.renderable)\n {\n return;\n }\n\n var context = renderer.context;\n var transform = this.worldTransform;\n var isRotated = true;\n\n var positionX = 0;\n var positionY = 0;\n\n var finalWidth = 0;\n var finalHeight = 0;\n\n var compositeOperation = renderer.blendModes[this.blendMode];\n if (compositeOperation !== context.globalCompositeOperation)\n {\n context.globalCompositeOperation = compositeOperation;\n }\n\n context.globalAlpha = this.worldAlpha;\n\n this.displayObjectUpdateTransform();\n\n for (var i = 0; i < this.children.length; ++i)\n {\n var child = this.children[i];\n\n if (!child.visible)\n {\n continue;\n }\n\n var frame = child.texture.frame;\n\n context.globalAlpha = this.worldAlpha * child.alpha;\n\n if (child.rotation % (Math.PI * 2) === 0)\n {\n // this is the fastest way to optimise! - if rotation is 0 then we can avoid any kind of setTransform call\n if (isRotated)\n {\n context.setTransform(\n transform.a,\n transform.b,\n transform.c,\n transform.d,\n transform.tx * renderer.resolution,\n transform.ty * renderer.resolution\n );\n\n isRotated = false;\n }\n\n positionX = ((child.anchor.x) * (-frame.width * child.scale.x) + child.position.x + 0.5);\n positionY = ((child.anchor.y) * (-frame.height * child.scale.y) + child.position.y + 0.5);\n\n finalWidth = frame.width * child.scale.x;\n finalHeight = frame.height * child.scale.y;\n\n }\n else\n {\n if (!isRotated)\n {\n isRotated = true;\n }\n\n child.displayObjectUpdateTransform();\n\n var childTransform = child.worldTransform;\n\n if (renderer.roundPixels)\n {\n context.setTransform(\n childTransform.a,\n childTransform.b,\n childTransform.c,\n childTransform.d,\n (childTransform.tx * renderer.resolution) | 0,\n (childTransform.ty * renderer.resolution) | 0\n );\n }\n else\n {\n context.setTransform(\n childTransform.a,\n childTransform.b,\n childTransform.c,\n childTransform.d,\n childTransform.tx * renderer.resolution,\n childTransform.ty * renderer.resolution\n );\n }\n\n positionX = ((child.anchor.x) * (-frame.width) + 0.5);\n positionY = ((child.anchor.y) * (-frame.height) + 0.5);\n\n finalWidth = frame.width;\n finalHeight = frame.height;\n }\n\n var resolution = child.texture.baseTexture.resolution;\n\n context.drawImage(\n child.texture.baseTexture.source,\n frame.x * resolution,\n frame.y * resolution,\n frame.width * resolution,\n frame.height * resolution,\n positionX * resolution,\n positionY * resolution,\n finalWidth * resolution,\n finalHeight * resolution\n );\n }\n};\n\n/**\n * Destroys the container\n *\n */\nParticleContainer.prototype.destroy = function () {\n core.Container.prototype.destroy.apply(this, arguments);\n\n if (this._buffers) {\n for (var i = 0; i < this._buffers.length; ++i) {\n this._buffers[i].destroy();\n }\n }\n\n this._properties = null;\n this._buffers = null;\n};\n","/**\n * @file Main export of the PIXI extras library\n * @author Mat Groves \n * @copyright 2013-2015 GoodBoyDigital\n * @license {@link https://github.com/pixijs/pixi.js/blob/master/LICENSE|MIT License}\n */\n\n/**\n * @namespace PIXI.particles\n */\nmodule.exports = {\n\tParticleContainer: require('./ParticleContainer'),\n ParticleRenderer: \t\t\t require('./webgl/ParticleRenderer')\n};\n","var glCore = require('pixi-gl-core'),\n createIndicesForQuads = require('../../core/utils/createIndicesForQuads');\n\n/**\n * @author Mat Groves\n *\n * Big thanks to the very clever Matt DesLauriers https://github.com/mattdesl/\n * for creating the original pixi version!\n * Also a thanks to https://github.com/bchevalier for tweaking the tint and alpha so that they now share 4 bytes on the vertex buffer\n *\n * Heavily inspired by LibGDX's ParticleBuffer:\n * https://github.com/libgdx/libgdx/blob/master/gdx/src/com/badlogic/gdx/graphics/g2d/ParticleBuffer.java\n */\n\n/**\n * The particle buffer manages the static and dynamic buffers for a particle container.\n *\n * @class\n * @private\n * @memberof PIXI\n */\nfunction ParticleBuffer(gl, properties, dynamicPropertyFlags, size)\n{\n /**\n * The current WebGL drawing context.\n *\n * @member {WebGLRenderingContext}\n */\n this.gl = gl;\n\n /**\n * Size of a single vertex.\n *\n * @member {number}\n */\n this.vertSize = 2;\n\n /**\n * Size of a single vertex in bytes.\n *\n * @member {number}\n */\n this.vertByteSize = this.vertSize * 4;\n\n /**\n * The number of particles the buffer can hold\n *\n * @member {number}\n */\n this.size = size;\n\n /**\n * A list of the properties that are dynamic.\n *\n * @member {object[]}\n */\n this.dynamicProperties = [];\n\n /**\n * A list of the properties that are static.\n *\n * @member {object[]}\n */\n this.staticProperties = [];\n\n for (var i = 0; i < properties.length; i++)\n {\n var property = properties[i];\n\n // Make copy of properties object so that when we edit the offset it doesn't\n // change all other instances of the object literal\n property = \n {\n attribute:property.attribute,\n size:property.size,\n uploadFunction:property.uploadFunction,\n offset:property.offset\n };\n\n if(dynamicPropertyFlags[i])\n {\n this.dynamicProperties.push(property);\n }\n else\n {\n this.staticProperties.push(property);\n }\n }\n\n this.staticStride = 0;\n this.staticBuffer = null;\n this.staticData = null;\n\n this.dynamicStride = 0;\n this.dynamicBuffer = null;\n this.dynamicData = null;\n\n this.initBuffers();\n\n}\n\nParticleBuffer.prototype.constructor = ParticleBuffer;\nmodule.exports = ParticleBuffer;\n\n/**\n * Sets up the renderer context and necessary buffers.\n *\n * @private\n */\nParticleBuffer.prototype.initBuffers = function ()\n{\n var gl = this.gl;\n var i;\n var property;\n\n var dynamicOffset = 0;\n\n\n /**\n * Holds the indices of the geometry (quads) to draw\n *\n * @member {Uint16Array}\n */\n this.indices = createIndicesForQuads(this.size);\n this.indexBuffer = glCore.GLBuffer.createIndexBuffer(gl, this.indices, gl.STATIC_DRAW);\n\n\n this.dynamicStride = 0;\n\n for (i = 0; i < this.dynamicProperties.length; i++)\n {\n property = this.dynamicProperties[i];\n\n property.offset = dynamicOffset;\n dynamicOffset += property.size;\n this.dynamicStride += property.size;\n }\n\n this.dynamicData = new Float32Array( this.size * this.dynamicStride * 4);\n this.dynamicBuffer = glCore.GLBuffer.createVertexBuffer(gl, this.dynamicData, gl.STREAM_DRAW);\n\n // static //\n var staticOffset = 0;\n this.staticStride = 0;\n\n for (i = 0; i < this.staticProperties.length; i++)\n {\n property = this.staticProperties[i];\n\n property.offset = staticOffset;\n staticOffset += property.size;\n this.staticStride += property.size;\n\n\n }\n\n this.staticData = new Float32Array( this.size * this.staticStride * 4);\n this.staticBuffer = glCore.GLBuffer.createVertexBuffer(gl, this.staticData, gl.STATIC_DRAW);\n\n\n this.vao = new glCore.VertexArrayObject(gl)\n .addIndex(this.indexBuffer);\n\n for (i = 0; i < this.dynamicProperties.length; i++)\n {\n property = this.dynamicProperties[i];\n this.vao.addAttribute(this.dynamicBuffer, property.attribute, gl.FLOAT, false, this.dynamicStride * 4, property.offset * 4);\n }\n\n for (i = 0; i < this.staticProperties.length; i++)\n {\n property = this.staticProperties[i];\n this.vao.addAttribute(this.staticBuffer, property.attribute, gl.FLOAT, false, this.staticStride * 4, property.offset * 4);\n }\n};\n\n/**\n * Uploads the dynamic properties.\n *\n */\nParticleBuffer.prototype.uploadDynamic = function(children, startIndex, amount)\n{\n for (var i = 0; i < this.dynamicProperties.length; i++)\n {\n var property = this.dynamicProperties[i];\n property.uploadFunction(children, startIndex, amount, this.dynamicData, this.dynamicStride, property.offset);\n }\n\n this.dynamicBuffer.upload();\n};\n\n/**\n * Uploads the static properties.\n *\n */\nParticleBuffer.prototype.uploadStatic = function(children, startIndex, amount)\n{\n for (var i = 0; i < this.staticProperties.length; i++)\n {\n var property = this.staticProperties[i];\n property.uploadFunction(children, startIndex, amount, this.staticData, this.staticStride, property.offset);\n }\n\n this.staticBuffer.upload();\n};\n\n/**\n * Binds the buffers to the GPU\n *\n */\nParticleBuffer.prototype.bind = function ()\n{\n this.vao.bind();\n};\n\n/**\n * Destroys the ParticleBuffer.\n *\n */\nParticleBuffer.prototype.destroy = function ()\n{\n this.dynamicProperties = null;\n this.dynamicData = null;\n this.dynamicBuffer.destroy();\n\n this.staticProperties = null;\n this.staticData = null;\n this.staticBuffer.destroy();\n};\n","var core = require('../../core'),\n ParticleShader = require('./ParticleShader'),\n ParticleBuffer = require('./ParticleBuffer');\n\n/**\n * @author Mat Groves\n *\n * Big thanks to the very clever Matt DesLauriers https://github.com/mattdesl/\n * for creating the original pixi version!\n * Also a thanks to https://github.com/bchevalier for tweaking the tint and alpha so that they now share 4 bytes on the vertex buffer\n *\n * Heavily inspired by LibGDX's ParticleRenderer:\n * https://github.com/libgdx/libgdx/blob/master/gdx/src/com/badlogic/gdx/graphics/g2d/ParticleRenderer.java\n */\n\n/**\n *\n * @class\n * @private\n * @memberof PIXI\n * @param renderer {PIXI.WebGLRenderer} The renderer this sprite batch works for.\n */\nfunction ParticleRenderer(renderer)\n{\n core.ObjectRenderer.call(this, renderer);\n\n // 65535 is max vertex index in the index buffer (see ParticleRenderer)\n // so max number of particles is 65536 / 4 = 16384\n // and max number of element in the index buffer is 16384 * 6 = 98304\n // Creating a full index buffer, overhead is 98304 * 2 = 196Ko\n // var numIndices = 98304;\n\n /**\n * The default shader that is used if a sprite doesn't have a more specific one.\n *\n * @member {PIXI.Shader}\n */\n this.shader = null;\n\n this.indexBuffer = null;\n\n this.properties = null;\n\n this.tempMatrix = new core.Matrix();\n\n this.CONTEXT_UID = 0;\n}\n\nParticleRenderer.prototype = Object.create(core.ObjectRenderer.prototype);\nParticleRenderer.prototype.constructor = ParticleRenderer;\nmodule.exports = ParticleRenderer;\n\ncore.WebGLRenderer.registerPlugin('particle', ParticleRenderer);\n\n/**\n * When there is a WebGL context change\n *\n * @private\n */\nParticleRenderer.prototype.onContextChange = function ()\n{\n var gl = this.renderer.gl;\n\n this.CONTEXT_UID = this.renderer.CONTEXT_UID;\n\n // setup default shader\n this.shader = new ParticleShader(gl);\n\n this.properties = [\n // verticesData\n {\n attribute:this.shader.attributes.aVertexPosition,\n size:2,\n uploadFunction:this.uploadVertices,\n offset:0\n },\n // positionData\n {\n attribute:this.shader.attributes.aPositionCoord,\n size:2,\n uploadFunction:this.uploadPosition,\n offset:0\n },\n // rotationData\n {\n attribute:this.shader.attributes.aRotation,\n size:1,\n uploadFunction:this.uploadRotation,\n offset:0\n },\n // uvsData\n {\n attribute:this.shader.attributes.aTextureCoord,\n size:2,\n uploadFunction:this.uploadUvs,\n offset:0\n },\n // alphaData\n {\n attribute:this.shader.attributes.aColor,\n size:1,\n uploadFunction:this.uploadAlpha,\n offset:0\n }\n ];\n\n};\n\n/**\n * Starts a new particle batch.\n *\n */\nParticleRenderer.prototype.start = function ()\n{\n this.renderer.bindShader(this.shader);\n};\n\n\n/**\n * Renders the particle container object.\n *\n * @param container {PIXI.ParticleContainer} The container to render using this ParticleRenderer\n */\nParticleRenderer.prototype.render = function (container)\n{\n var children = container.children,\n totalChildren = children.length,\n maxSize = container._maxSize,\n batchSize = container._batchSize;\n\n if(totalChildren === 0)\n {\n return;\n }\n else if(totalChildren > maxSize)\n {\n totalChildren = maxSize;\n }\n\n var buffers = container._glBuffers[this.renderer.CONTEXT_UID];\n\n if(!buffers)\n {\n buffers = container._glBuffers[this.renderer.CONTEXT_UID] = this.generateBuffers( container );\n }\n\n // if the uvs have not updated then no point rendering just yet!\n this.renderer.setBlendMode(container.blendMode);\n\n var gl = this.renderer.gl;\n\n var m = container.worldTransform.copy( this.tempMatrix );\n m.prepend( this.renderer._activeRenderTarget.projectionMatrix );\n this.shader.uniforms.projectionMatrix = m.toArray(true);\n this.shader.uniforms.uAlpha = container.worldAlpha;\n\n\n // make sure the texture is bound..\n var baseTexture = children[0]._texture.baseTexture;\n\n this.renderer.bindTexture(baseTexture);\n\n // now lets upload and render the buffers..\n for (var i = 0, j = 0; i < totalChildren; i += batchSize, j += 1)\n {\n var amount = ( totalChildren - i);\n if(amount > batchSize)\n {\n amount = batchSize;\n }\n\n var buffer = buffers[j];\n\n // we always upload the dynamic\n buffer.uploadDynamic(children, i, amount);\n\n // we only upload the static content when we have to!\n if(container._bufferToUpdate === j)\n {\n buffer.uploadStatic(children, i, amount);\n container._bufferToUpdate = j + 1;\n }\n\n // bind the buffer\n buffer.vao.bind()\n .draw(gl.TRIANGLES, amount * 6)\n .unbind();\n\n // now draw those suckas!\n // gl.drawElements(gl.TRIANGLES, amount * 6, gl.UNSIGNED_SHORT, 0);\n // this.renderer.drawCount++;\n }\n};\n\n/**\n * Creates one particle buffer for each child in the container we want to render and updates internal properties\n *\n * @param container {PIXI.ParticleContainer} The container to render using this ParticleRenderer\n */\nParticleRenderer.prototype.generateBuffers = function (container)\n{\n var gl = this.renderer.gl,\n buffers = [],\n size = container._maxSize,\n batchSize = container._batchSize,\n dynamicPropertyFlags = container._properties,\n i;\n\n for (i = 0; i < size; i += batchSize)\n {\n buffers.push(new ParticleBuffer(gl, this.properties, dynamicPropertyFlags, batchSize));\n }\n\n return buffers;\n};\n\n/**\n * Uploads the verticies.\n *\n * @param children {PIXI.DisplayObject[]} the array of display objects to render\n * @param startIndex {number} the index to start from in the children array\n * @param amount {number} the amount of children that will have their vertices uploaded\n * @param array {number[]}\n * @param stride {number}\n * @param offset {number}\n */\nParticleRenderer.prototype.uploadVertices = function (children, startIndex, amount, array, stride, offset)\n{\n var sprite,\n texture,\n trim,\n orig,\n sx,\n sy,\n w0, w1, h0, h1;\n\n for (var i = 0; i < amount; i++) {\n\n sprite = children[startIndex + i];\n texture = sprite._texture;\n sx = sprite.scale.x;\n sy = sprite.scale.y;\n trim = texture.trim;\n orig = texture.orig;\n\n if (trim)\n {\n // if the sprite is trimmed and is not a tilingsprite then we need to add the extra space before transforming the sprite coords..\n w1 = trim.x - sprite.anchor.x * orig.width;\n w0 = w1 + trim.width;\n\n h1 = trim.y - sprite.anchor.y * orig.height;\n h0 = h1 + trim.height;\n\n }\n else\n {\n w0 = (orig.width ) * (1-sprite.anchor.x);\n w1 = (orig.width ) * -sprite.anchor.x;\n\n h0 = orig.height * (1-sprite.anchor.y);\n h1 = orig.height * -sprite.anchor.y;\n }\n\n array[offset] = w1 * sx;\n array[offset + 1] = h1 * sy;\n\n array[offset + stride] = w0 * sx;\n array[offset + stride + 1] = h1 * sy;\n\n array[offset + stride * 2] = w0 * sx;\n array[offset + stride * 2 + 1] = h0 * sy;\n\n array[offset + stride * 3] = w1 * sx;\n array[offset + stride * 3 + 1] = h0 * sy;\n\n offset += stride * 4;\n }\n\n};\n\n/**\n *\n * @param children {PIXI.DisplayObject[]} the array of display objects to render\n * @param startIndex {number} the index to start from in the children array\n * @param amount {number} the amount of children that will have their positions uploaded\n * @param array {number[]}\n * @param stride {number}\n * @param offset {number}\n */\nParticleRenderer.prototype.uploadPosition = function (children,startIndex, amount, array, stride, offset)\n{\n for (var i = 0; i < amount; i++)\n {\n var spritePosition = children[startIndex + i].position;\n\n array[offset] = spritePosition.x;\n array[offset + 1] = spritePosition.y;\n\n array[offset + stride] = spritePosition.x;\n array[offset + stride + 1] = spritePosition.y;\n\n array[offset + stride * 2] = spritePosition.x;\n array[offset + stride * 2 + 1] = spritePosition.y;\n\n array[offset + stride * 3] = spritePosition.x;\n array[offset + stride * 3 + 1] = spritePosition.y;\n\n offset += stride * 4;\n }\n\n};\n\n/**\n *\n * @param children {PIXI.DisplayObject[]} the array of display objects to render\n * @param startIndex {number} the index to start from in the children array\n * @param amount {number} the amount of children that will have their rotation uploaded\n * @param array {number[]}\n * @param stride {number}\n * @param offset {number}\n */\nParticleRenderer.prototype.uploadRotation = function (children,startIndex, amount, array, stride, offset)\n{\n for (var i = 0; i < amount; i++)\n {\n var spriteRotation = children[startIndex + i].rotation;\n\n\n array[offset] = spriteRotation;\n array[offset + stride] = spriteRotation;\n array[offset + stride * 2] = spriteRotation;\n array[offset + stride * 3] = spriteRotation;\n\n offset += stride * 4;\n }\n};\n\n/**\n *\n * @param children {PIXI.DisplayObject[]} the array of display objects to render\n * @param startIndex {number} the index to start from in the children array\n * @param amount {number} the amount of children that will have their Uvs uploaded\n * @param array {number[]}\n * @param stride {number}\n * @param offset {number}\n */\nParticleRenderer.prototype.uploadUvs = function (children,startIndex, amount, array, stride, offset)\n{\n for (var i = 0; i < amount; i++)\n {\n var textureUvs = children[startIndex + i]._texture._uvs;\n\n if (textureUvs)\n {\n array[offset] = textureUvs.x0;\n array[offset + 1] = textureUvs.y0;\n\n array[offset + stride] = textureUvs.x1;\n array[offset + stride + 1] = textureUvs.y1;\n\n array[offset + stride * 2] = textureUvs.x2;\n array[offset + stride * 2 + 1] = textureUvs.y2;\n\n array[offset + stride * 3] = textureUvs.x3;\n array[offset + stride * 3 + 1] = textureUvs.y3;\n\n offset += stride * 4;\n }\n else\n {\n //TODO you know this can be easier!\n array[offset] = 0;\n array[offset + 1] = 0;\n\n array[offset + stride] = 0;\n array[offset + stride + 1] = 0;\n\n array[offset + stride * 2] = 0;\n array[offset + stride * 2 + 1] = 0;\n\n array[offset + stride * 3] = 0;\n array[offset + stride * 3 + 1] = 0;\n\n offset += stride * 4;\n }\n }\n};\n\n/**\n *\n * @param children {PIXI.DisplayObject[]} the array of display objects to render\n * @param startIndex {number} the index to start from in the children array\n * @param amount {number} the amount of children that will have their alpha uploaded\n * @param array {number[]}\n * @param stride {number}\n * @param offset {number}\n */\nParticleRenderer.prototype.uploadAlpha = function (children,startIndex, amount, array, stride, offset)\n{\n for (var i = 0; i < amount; i++)\n {\n var spriteAlpha = children[startIndex + i].alpha;\n\n array[offset] = spriteAlpha;\n array[offset + stride] = spriteAlpha;\n array[offset + stride * 2] = spriteAlpha;\n array[offset + stride * 3] = spriteAlpha;\n\n offset += stride * 4;\n }\n};\n\n\n/**\n * Destroys the ParticleRenderer.\n *\n */\nParticleRenderer.prototype.destroy = function ()\n{\n if (this.renderer.gl) {\n this.renderer.gl.deleteBuffer(this.indexBuffer);\n }\n core.ObjectRenderer.prototype.destroy.apply(this, arguments);\n\n this.shader.destroy();\n\n this.indices = null;\n this.tempMatrix = null;\n};\n","var Shader = require('../../core/Shader');\n\n/**\n * @class\n * @extends PIXI.Shader\n * @memberof PIXI\n * @param gl {PIXI.Shader} The webgl shader manager this shader works for.\n */\nfunction ParticleShader(gl)\n{\n Shader.call(this,\n gl,\n // vertex shader\n [\n 'attribute vec2 aVertexPosition;',\n 'attribute vec2 aTextureCoord;',\n 'attribute float aColor;',\n\n 'attribute vec2 aPositionCoord;',\n 'attribute vec2 aScale;',\n 'attribute float aRotation;',\n\n 'uniform mat3 projectionMatrix;',\n\n 'varying vec2 vTextureCoord;',\n 'varying float vColor;',\n\n 'void main(void){',\n ' vec2 v = aVertexPosition;',\n\n ' v.x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);',\n ' v.y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);',\n ' v = v + aPositionCoord;',\n\n ' gl_Position = vec4((projectionMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);',\n\n ' vTextureCoord = aTextureCoord;',\n ' vColor = aColor;',\n '}'\n ].join('\\n'),\n // hello\n [\n 'varying vec2 vTextureCoord;',\n 'varying float vColor;',\n\n 'uniform sampler2D uSampler;',\n 'uniform float uAlpha;',\n\n 'void main(void){',\n ' vec4 color = texture2D(uSampler, vTextureCoord) * vColor * uAlpha;',\n ' if (color.a == 0.0) discard;',\n ' gl_FragColor = color;',\n '}'\n ].join('\\n')\n );\n\n // TEMP HACK\n\n}\n\nParticleShader.prototype = Object.create(Shader.prototype);\nParticleShader.prototype.constructor = ParticleShader;\n\nmodule.exports = ParticleShader;\n"],"sourceRoot":"/source/"}