@pixi/text-bitmap
Advanced tools
Comparing version 7.1.2 to 7.2.0-beta
@@ -24,6 +24,5 @@ 'use strict'; | ||
const dropShadowColor = style.dropShadowColor; | ||
const rgb = core.utils.hex2rgb(typeof dropShadowColor === "number" ? dropShadowColor : core.utils.string2hex(dropShadowColor)); | ||
const dropShadowBlur = style.dropShadowBlur * resolution; | ||
const dropShadowDistance = style.dropShadowDistance * resolution; | ||
context.shadowColor = `rgba(${rgb[0] * 255},${rgb[1] * 255},${rgb[2] * 255},${style.dropShadowAlpha})`; | ||
context.shadowColor = core.Color.shared.setValue(dropShadowColor).setAlpha(style.dropShadowAlpha).toRgbaString(); | ||
context.shadowBlur = dropShadowBlur; | ||
@@ -30,0 +29,0 @@ context.shadowOffsetX = Math.cos(style.dropShadowAngle) * dropShadowDistance; |
{ | ||
"name": "@pixi/text-bitmap", | ||
"version": "7.1.2", | ||
"version": "7.2.0-beta", | ||
"main": "lib/index.js", | ||
@@ -44,4 +44,3 @@ "module": "lib/index.mjs", | ||
"@pixi/text" | ||
], | ||
"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
352651
2977
1