@pixi/canvas-graphics
Advanced tools
Comparing version 7.1.2 to 7.2.0-beta
@@ -39,5 +39,3 @@ 'use strict'; | ||
let contextStrokeStyle; | ||
const tintR = (graphics.tint >> 16 & 255) / 255; | ||
const tintG = (graphics.tint >> 8 & 255) / 255; | ||
const tintB = (graphics.tint & 255) / 255; | ||
const tint = core.Color.shared.setValue(graphics.tint).toArray(); | ||
for (let i = 0; i < graphicsData.length; i++) { | ||
@@ -54,8 +52,6 @@ const data = graphicsData[i]; | ||
if (fillStyle.visible) { | ||
const fillTint = ((fillColor >> 16 & 255) / 255 * tintR * 255 << 16) + ((fillColor >> 8 & 255) / 255 * tintG * 255 << 8) + (fillColor & 255) / 255 * tintB * 255; | ||
contextFillStyle = this._calcCanvasStyle(fillStyle, fillTint); | ||
contextFillStyle = this._calcCanvasStyle(fillStyle, core.Color.shared.setValue(fillColor).multiply(tint).toNumber()); | ||
} | ||
if (lineStyle.visible) { | ||
const lineTint = ((lineColor >> 16 & 255) / 255 * tintR * 255 << 16) + ((lineColor >> 8 & 255) / 255 * tintG * 255 << 8) + (lineColor & 255) / 255 * tintB * 255; | ||
contextStrokeStyle = this._calcCanvasStyle(lineStyle, lineTint); | ||
contextStrokeStyle = this._calcCanvasStyle(lineStyle, core.Color.shared.setValue(lineColor).multiply(tint).toNumber()); | ||
} | ||
@@ -62,0 +58,0 @@ context.lineWidth = lineStyle.width; |
{ | ||
"name": "@pixi/canvas-graphics", | ||
"version": "7.1.2", | ||
"version": "7.2.0-beta", | ||
"main": "lib/index.js", | ||
@@ -43,4 +43,3 @@ "module": "lib/index.mjs", | ||
"@pixi/graphics" | ||
], | ||
"gitHead": "27e65c73bb36a06fd00d6da5bf460bbee9f6c984" | ||
] | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
149784
1066
1