/*! * @pixi/sprite - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/sprite is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ this.PIXI=this.PIXI||{};var _pixi_sprite=function(t,e,i,r,s,n,o){"use strict";var h=function(t,e){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},h(t,e)};var a=new s.Point,u=new Uint16Array([0,1,2,0,2,3]),_=function(t){function _(r){var o=t.call(this)||this;return o._anchor=new s.ObservablePoint(o._onAnchorUpdate,o,r?r.defaultAnchor.x:0,r?r.defaultAnchor.y:0),o._texture=null,o._width=0,o._height=0,o._tint=null,o._tintRGB=null,o.tint=16777215,o.blendMode=e.BLEND_MODES.NORMAL,o._cachedTint=16777215,o.uvs=null,o.texture=r||i.Texture.EMPTY,o.vertexData=new Float32Array(8),o.vertexTrimmedData=null,o._transformID=-1,o._textureID=-1,o._transformTrimmedID=-1,o._textureTrimmedID=-1,o.indices=u,o.pluginName="batch",o.isSprite=!0,o._roundPixels=n.settings.ROUND_PIXELS,o}return function(t,e){function i(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(_,t),_.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=o.sign(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=o.sign(this.scale.y)*this._height/this._texture.orig.height)},_.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},_.prototype.calculateVertices=function(){var t=this._texture;if(this._transformID!==this.transform._worldID||this._textureID!==t._updateID){this._textureID!==t._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=t._updateID;var e=this.transform.worldTransform,i=e.a,r=e.b,s=e.c,o=e.d,h=e.tx,a=e.ty,u=this.vertexData,_=t.trim,c=t.orig,l=this._anchor,d=0,x=0,p=0,f=0;if(_?(d=(x=_.x-l._x*c.width)+_.width,p=(f=_.y-l._y*c.height)+_.height):(d=(x=-l._x*c.width)+c.width,p=(f=-l._y*c.height)+c.height),u[0]=i*x+s*f+h,u[1]=o*f+r*x+a,u[2]=i*d+s*f+h,u[3]=o*f+r*d+a,u[4]=i*d+s*p+h,u[5]=o*p+r*d+a,u[6]=i*x+s*p+h,u[7]=o*p+r*x+a,this._roundPixels)for(var m=n.settings.RESOLUTION,g=0;g=r&&a.x=s&&a.y>16)+(65280&t)+((255&t)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=t||i.Texture.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,t&&(t.baseTexture.valid?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),_}(r.Container);return t.Sprite=_,Object.defineProperty(t,"__esModule",{value:!0}),t}({},PIXI,PIXI,PIXI,PIXI,PIXI,PIXI.utils);Object.assign(this.PIXI,_pixi_sprite); //# sourceMappingURL=sprite.min.js.map