CSSRGB.d.ts 870 B

1234567891011121314151617181920212223242526
  1. import type { CSSColorPercent, CSSColorRGBComp } from './CSSColorValue';
  2. import { CSSColorValue } from './CSSColorValue';
  3. import type { Nested, ParenLess } from './types';
  4. /**
  5. * The CSSRGB class represents the CSS rgb()/rgba() functions.
  6. *
  7. * @see https://drafts.css-houdini.org/css-typed-om-1/#cssrgb
  8. */
  9. export declare class CSSRGB extends CSSColorValue {
  10. r: CSSColorRGBComp;
  11. g: CSSColorRGBComp;
  12. b: CSSColorRGBComp;
  13. alpha: CSSColorPercent;
  14. /**
  15. * 'transparent' & 'none' has the same rgba data
  16. */
  17. isNone: boolean;
  18. constructor(r: CSSColorRGBComp, g: CSSColorRGBComp, b: CSSColorRGBComp, alpha?: CSSColorPercent,
  19. /**
  20. * 'transparent' & 'none' has the same rgba data
  21. */
  22. isNone?: boolean);
  23. clone(): CSSRGB;
  24. buildCSSText(n: Nested, p: ParenLess, result: string): string;
  25. }
  26. //# sourceMappingURL=CSSRGB.d.ts.map