@jiaminghi/color
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -1,5 +0,5 @@ | ||
# 0.0.1-alpha (2019-04-03) | ||
# 0.0.1-alpha (2019-04-04) | ||
### Features | ||
### Publish | ||
* **enhance:** | ||
* **version:** V 0.0.1-alpha |
@@ -185,5 +185,7 @@ const hexReg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/ | ||
return rgbaValue | ||
rgbaValue = rgbaValue | ||
.map((v, i) => (i === 3 ? v : v - 25 * percent)) | ||
.map(v => (v < 0 ? 0 : v)) | ||
return getColorFromRgbValue(rgbaValue) | ||
} | ||
@@ -202,5 +204,7 @@ | ||
return rgbaValue | ||
rgbaValue = rgbaValue | ||
.map((v, i) => (i === 3 ? v : v + 25 * percent)) | ||
.map(v => (v > 255 ? 255 : v)) | ||
return getColorFromRgbValue(rgbaValue) | ||
} | ||
@@ -207,0 +211,0 @@ |
{ | ||
"name": "@jiaminghi/color", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"author": "JiaMing <743192023@qq.com>", | ||
@@ -19,8 +19,10 @@ "description": "Color extension", | ||
"keywords": [ | ||
"bezierCurve", | ||
"polyline", | ||
"smoothline", | ||
"length" | ||
"color", | ||
"hex", | ||
"rgb", | ||
"bgba", | ||
"darken", | ||
"lighten" | ||
], | ||
"homepage": "https://github.com/jiaming743/Color#readme" | ||
} |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
18081
8
160
0
259