@daybrush/utils
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -278,5 +278,7 @@ var prefixes = ["webkit", "ms", "moz", "o"]; | ||
case HSLA: | ||
for (var i = 1; i < length; ++i) { | ||
for (var i = 0; i < length; ++i) { | ||
if (arr[i].indexOf("%") !== -1) { | ||
colorArr[i] = parseFloat(arr[i]) / 100; | ||
} else { | ||
colorArr[i] = parseFloat(arr[i]); | ||
} | ||
@@ -283,0 +285,0 @@ } // hsl, hsla to rgba |
@@ -282,5 +282,7 @@ 'use strict'; | ||
case HSLA: | ||
for (var i = 1; i < length; ++i) { | ||
for (var i = 0; i < length; ++i) { | ||
if (arr[i].indexOf("%") !== -1) { | ||
colorArr[i] = parseFloat(arr[i]) / 100; | ||
} else { | ||
colorArr[i] = parseFloat(arr[i]); | ||
} | ||
@@ -287,0 +289,0 @@ } // hsl, hsla to rgba |
{ | ||
"name": "@daybrush/utils", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "utils for daybrush", | ||
@@ -5,0 +5,0 @@ "main": "dist/utils.js", |
@@ -142,5 +142,7 @@ import { RGB, RGBA, HSL, HSLA } from "./consts"; | ||
case HSLA: | ||
for (let i = 1; i < length; ++i) { | ||
for (let i = 0; i < length; ++i) { | ||
if (arr[i].indexOf("%") !== -1) { | ||
colorArr[i] = parseFloat(arr[i]) / 100; | ||
} else { | ||
colorArr[i] = parseFloat(arr[i]); | ||
} | ||
@@ -147,0 +149,0 @@ } |
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
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
64782
1098