MCPcopy Create free account
hub / github.com/adobe/react-spectrum / constructor

Method constructor

packages/react-stately/src/color/Color.ts:653–660  ·  view source on GitHub ↗
(
    private hue: number,
    private saturation: number,
    private lightness: number,
    private alpha: number
  )

Source from the content-addressed store, hash-verified

651
652class HSLColor extends Color {
653 constructor(
654 private hue: number,
655 private saturation: number,
656 private lightness: number,
657 private alpha: number
658 ) {
659 super();
660 }
661
662 static parse(value: string): HSLColor | void {
663 let m: RegExpMatchArray | null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected