@jiaminghi/c-render
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -0,1 +1,7 @@ | ||
# 0.3.3-alpha (2019-06-06) | ||
### Bug Fixes | ||
- **Style:** `opacity` is invalid for `gradientColor`. | ||
# 0.3.2-alpha (2019-06-03) | ||
@@ -2,0 +8,0 @@ |
@@ -349,4 +349,14 @@ import { getRgbaValue, getColorFromRgbValue } from '@jiaminghi/color' | ||
let { gradientColor, gradientParams, gradientType, gradientWith, gradientStops } = style | ||
let { gradientColor, gradientParams, gradientType, gradientWith, gradientStops, opacity } = style | ||
gradientColor = gradientColor.map(color => { | ||
let colorOpacity = color[3] * opacity | ||
let clonedColor = [...color] | ||
clonedColor[3] = colorOpacity | ||
return clonedColor | ||
}) | ||
gradientColor = gradientColor.map(c => getColorFromRgbValue(c)) | ||
@@ -353,0 +363,0 @@ |
{ | ||
"name": "@jiaminghi/c-render", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"author": "JiaMing <743192023@qq.com>", | ||
@@ -5,0 +5,0 @@ "description": "Canvas-based vector graphics rendering plugin", |
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
142342
1821