super-color
Advanced tools
Comparing version 1.0.3 to 1.0.4
import { SuperColorAttr, SuperColorFormat, SuperHexColor, SuperHslaColor, SuperHsvaColor, SuperRgbaColor } from './types'; | ||
export declare class SuperColor { | ||
r: number; | ||
g: number; | ||
b: number; | ||
h: number; | ||
sLightness: number; | ||
l: number; | ||
sValue: number; | ||
v: number; | ||
a: number; | ||
format: SuperColorFormat; | ||
private r; | ||
private g; | ||
private b; | ||
private h; | ||
private sLightness; | ||
private l; | ||
private sValue; | ||
private v; | ||
private a; | ||
private format; | ||
constructor(color: string | SuperColorAttr); | ||
getFormat(): string; | ||
setFormat(format: SuperColorFormat): void; | ||
@@ -15,0 +16,0 @@ setAlpha(alpha: number): void; |
@@ -51,2 +51,5 @@ "use strict"; | ||
} | ||
getFormat() { | ||
return this.format; | ||
} | ||
setFormat(format) { | ||
@@ -53,0 +56,0 @@ this.format = format; |
{ | ||
"name": "super-color", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Small & Fast Color conversion library.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
71199
948