Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this._height = height;
/**
* Canvas pattern
*
* @type {CanvasPattern}
* @private
*/
this._canvasPattern = null;
/**
* matrix that is applied to UV to get the coords in Texture normalized space to coords in BaseTexture space
*
* @member {PIXI.TextureMatrix}
*/
this.uvMatrix = texture.uvMatrix || new TextureMatrix(texture);
/**
* Plugin that is responsible for rendering this element.
* Allows to customize the rendering process without overriding '_render' method.
*
* @member {string}
* @default 'tilingSprite'
*/
this.pluginName = 'tilingSprite';
/**
* Whether or not anchor affects uvs
*
* @member {boolean}
* @default false
*/
/**
* Only do update if tint or alpha changes.
* @member {boolean}
* @private
* @default false
*/
this._colorDirty = false;
/**
* TextureMatrix instance for this Mesh, used to track Texture changes
*
* @member {PIXI.TextureMatrix}
* @readonly
*/
this.uvMatrix = new TextureMatrix(uSampler);
/**
* `true` if shader can be batch with the renderer's batch system.
* @member {boolean}
* @default true
*/
this.batchable = options.program === undefined;
/**
* Renderer plugin for batching
*
* @member {string}
* @default 'batch'
*/
this.pluginName = options.pluginName;