@thangk/easythemer
Version:
Easily generate shades from a colour palette for use in your app
25 lines (24 loc) • 706 B
TypeScript
import type { HSL } from "../types";
/**
* Validates HSL values
* @param hslInput HSL values to validate
* @getters getResult(), getHSLInput(), hasErrors(), getErrorsList()
* @result HSL values object or null
*/
export default class ValidateHSLValues {
private result;
private errors;
private errmsg;
private hslInput;
constructor(hslInput: HSL);
get getResult(): HSL | null;
get getHSLInput(): HSL;
get hasErrors(): boolean;
get getErrorsList(): string[];
private addError;
private setErrorState;
private showErrors;
isHueOutOfRange(): boolean;
isSaturationOutOfRange(): boolean;
isLightnessOutOfRange(): boolean;
}