@pixi/canvas-renderer
Advanced tools
Comparing version 7.2.3 to 7.2.4
@@ -7,2 +7,3 @@ 'use strict'; | ||
let canUseNewCanvasBlendModesValue; | ||
function createColoredCanvas(color) { | ||
@@ -19,2 +20,5 @@ const canvas = core.settings.ADAPTER.createCanvas(6, 1); | ||
} | ||
if (canUseNewCanvasBlendModesValue !== void 0) { | ||
return canUseNewCanvasBlendModesValue; | ||
} | ||
const magenta = createColoredCanvas("#ff00ff"); | ||
@@ -29,6 +33,8 @@ const yellow = createColoredCanvas("#ffff00"); | ||
if (!imageData) { | ||
return false; | ||
canUseNewCanvasBlendModesValue = false; | ||
} else { | ||
const data = imageData.data; | ||
canUseNewCanvasBlendModesValue = data[0] === 255 && data[1] === 0 && data[2] === 0; | ||
} | ||
const data = imageData.data; | ||
return data[0] === 255 && data[1] === 0 && data[2] === 0; | ||
return canUseNewCanvasBlendModesValue; | ||
} | ||
@@ -35,0 +41,0 @@ |
{ | ||
"name": "@pixi/canvas-renderer", | ||
"version": "7.2.3", | ||
"version": "7.2.4", | ||
"main": "lib/index.js", | ||
@@ -39,4 +39,4 @@ "module": "lib/index.mjs", | ||
"peerDependencies": { | ||
"@pixi/core": "7.2.3" | ||
"@pixi/core": "7.2.4" | ||
} | ||
} |
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
265023
2068