Socket
Socket
Sign inDemoInstall

@ant-design/fast-color

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ant-design/fast-color - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

20

es/FastColor.d.ts

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc