@ant-design/fast-color
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -31,6 +31,6 @@ import type { ColorInput, HSL, HSV, RGB } from './types'; | ||
constructor(input: ColorInput); | ||
setR(value: number): FastColor; | ||
setG(value: number): FastColor; | ||
setB(value: number): FastColor; | ||
setA(value: number): FastColor; | ||
setR(value: number): this; | ||
setG(value: number): this; | ||
setB(value: number): this; | ||
setA(value: number): this; | ||
setHue(value: number): this; | ||
@@ -52,4 +52,4 @@ /** | ||
getBrightness(): number; | ||
darken(amount?: number): FastColor; | ||
lighten(amount?: number): FastColor; | ||
darken(amount?: number): this; | ||
lighten(amount?: number): this; | ||
/** | ||
@@ -59,3 +59,3 @@ * Mix the current color a given amount with another color, from 0 to 100. | ||
*/ | ||
mix(input: ColorInput, amount?: number): FastColor; | ||
mix(input: ColorInput, amount?: number): this; | ||
/** | ||
@@ -65,3 +65,3 @@ * Mix the color with pure white, from 0 to 100. | ||
*/ | ||
tint(amount?: number): FastColor; | ||
tint(amount?: number): this; | ||
/** | ||
@@ -71,4 +71,4 @@ * Mix the color with pure black, from 0 to 100. | ||
*/ | ||
shade(amount?: number): FastColor; | ||
onBackground(background: ColorInput): FastColor; | ||
shade(amount?: number): this; | ||
onBackground(background: ColorInput): this; | ||
isDark(): boolean; | ||
@@ -75,0 +75,0 @@ isLight(): boolean; |
@@ -31,6 +31,6 @@ import type { ColorInput, HSL, HSV, RGB } from './types'; | ||
constructor(input: ColorInput); | ||
setR(value: number): FastColor; | ||
setG(value: number): FastColor; | ||
setB(value: number): FastColor; | ||
setA(value: number): FastColor; | ||
setR(value: number): this; | ||
setG(value: number): this; | ||
setB(value: number): this; | ||
setA(value: number): this; | ||
setHue(value: number): this; | ||
@@ -52,4 +52,4 @@ /** | ||
getBrightness(): number; | ||
darken(amount?: number): FastColor; | ||
lighten(amount?: number): FastColor; | ||
darken(amount?: number): this; | ||
lighten(amount?: number): this; | ||
/** | ||
@@ -59,3 +59,3 @@ * Mix the current color a given amount with another color, from 0 to 100. | ||
*/ | ||
mix(input: ColorInput, amount?: number): FastColor; | ||
mix(input: ColorInput, amount?: number): this; | ||
/** | ||
@@ -65,3 +65,3 @@ * Mix the color with pure white, from 0 to 100. | ||
*/ | ||
tint(amount?: number): FastColor; | ||
tint(amount?: number): this; | ||
/** | ||
@@ -71,4 +71,4 @@ * Mix the color with pure black, from 0 to 100. | ||
*/ | ||
shade(amount?: number): FastColor; | ||
onBackground(background: ColorInput): FastColor; | ||
shade(amount?: number): this; | ||
onBackground(background: ColorInput): this; | ||
isDark(): boolean; | ||
@@ -75,0 +75,0 @@ isLight(): boolean; |
{ | ||
"name": "@ant-design/fast-color", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "fast and small color class", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
42765