All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Made
ColorConvert
accept hex values in upper case
LICENSE
file
README.md
package.json
- Moved helper types into own file (
src/types.d.ts
) - removed comments from
tsconfig.json
- Setter for attribute
red
- Setter for attribute
green
- Setter for attribute
blue
- Setter for attribute
alpha
- Private static method
#hslToRgb
- Setter for attribute
hue
- Setter for attribute
saturation
- Setter for attribute
lightness
- Private static method
#parseHsl
now uses new private static method#hslToRgb
- Added this changelog
- Added README
- Post install script to automatically transpile typescript code
luminance
attribute, showing the relative lumincance as a float (0..1)calculateLuminance
method, calculating the relative luminance according to diffrent lumincane algorithmsLuminanceAlgorithm
enum
- Added dist/ directory to
.gitignore
red
attribute, showing the rgb red value as a float (1..255)green
attribute, showing the rgb green value as a float (1..255)blue
attribute, showing the rgb blue value as a float (1..255)hue
attribute, showing the hsl hue value as a float in degreessaturation
attribute, showing the hsl saturation value as a float (0..1)lightness
attribute, showing the hsl lightness value as a float (0..1)rgb
attribute, representing a rgb stringrgba
attribute, representing a rgba stringhex
attribute, representing a hex stringhexa
attribute, representing a hex string with alpha valuehsl
attribute, representing a hsl stringhsla
attribute, representing a hsla stringtoRgb
method, returning a rgb stringtoRgba
method, returning a rgba stringtoHex
method, returning a hex stringtoHsl
method, returning a hsl stringtoHsla
method, returning a hsla string- static
isRgbString
method, checking whether the input string is a valid rgb(a) string - static
isHexString
method, checking whether the input string is a valid hex(a) string - static
isHslString
method, checking whether the input string is a valid hsl(a) string - static
isCssColorName
method, checking whether the input string is a valid css color name [Symbol.toPrimitive]
method, returning…- the integer value of the hex color string when hint is
'number'
- the hsl string when hint is
'string'
- boolean whether lightness is greater than 0.5 when hint is
'default'
- the integer value of the hex color string when hint is
[Symbol.toStringTag]
method, returning'ColorConvert'