@pixi/canvas-sprite-tiling
Advanced tools
Comparing version 7.2.0-beta to 7.2.0-beta.2
@@ -20,7 +20,7 @@ 'use strict'; | ||
const baseTextureResolution = baseTexture.resolution; | ||
if (this._textureID !== this._texture._updateID || this._cachedTint !== this.tint) { | ||
if (this._textureID !== this._texture._updateID || this._cachedTint !== this.tintValue) { | ||
this._textureID = this._texture._updateID; | ||
const tempCanvas = new core.utils.CanvasRenderTarget(texture._frame.width, texture._frame.height, baseTextureResolution); | ||
if (this.tint !== 16777215) { | ||
this._tintedCanvas = canvasRenderer.canvasUtils.getTintedCanvas(this, this.tint); | ||
if (this.tintValue !== 16777215) { | ||
this._tintedCanvas = canvasRenderer.canvasUtils.getTintedCanvas(this, this.tintValue); | ||
tempCanvas.context.drawImage(this._tintedCanvas, 0, 0); | ||
@@ -30,3 +30,3 @@ } else { | ||
} | ||
this._cachedTint = this.tint; | ||
this._cachedTint = this.tintValue; | ||
this._canvasPattern = tempCanvas.context.createPattern(tempCanvas.canvas, "repeat"); | ||
@@ -33,0 +33,0 @@ } |
{ | ||
"name": "@pixi/canvas-sprite-tiling", | ||
"version": "7.2.0-beta", | ||
"version": "7.2.0-beta.2", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "module": "lib/index.mjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28176