@uiw/color-convert
Advanced tools
Comparing version 2.1.1 to 2.2.0
@@ -59,2 +59,3 @@ export type ObjectColor = RgbColor | HslColor | HsvColor | RgbaColor | HslaColor | HsvaColor; | ||
export declare const rgbaToHexa: ({ r, g, b, a }: RgbaColor) => string; | ||
export type HexColor = `#${string}`; | ||
export declare const hexToHsva: (hex: string) => HsvaColor; | ||
@@ -61,0 +62,0 @@ export declare const hexToRgba: (hex: string) => RgbaColor; |
@@ -59,2 +59,3 @@ export type ObjectColor = RgbColor | HslColor | HsvColor | RgbaColor | HslaColor | HsvaColor; | ||
export declare const rgbaToHexa: ({ r, g, b, a }: RgbaColor) => string; | ||
export type HexColor = `#${string}`; | ||
export declare const hexToHsva: (hex: string) => HsvaColor; | ||
@@ -61,0 +62,0 @@ export declare const hexToRgba: (hex: string) => RgbaColor; |
{ | ||
"name": "@uiw/color-convert", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "Color Convert", | ||
@@ -5,0 +5,0 @@ "author": "Kenny Wong <wowohoo@qq.com>", |
@@ -190,3 +190,3 @@ const RGB_MAX = 255; | ||
}; | ||
export type HexColor = `#${string}`; | ||
export const hexToHsva = (hex: string): HsvaColor => rgbaToHsva(hexToRgba(hex)); | ||
@@ -193,0 +193,0 @@ export const hexToRgba = (hex: string): RgbaColor => { |
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
47287
1226