projecte_ionic/node_modules/colord/plugins/cmyk.d.ts
2022-02-09 18:30:03 +01:00

25 lines
871 B
TypeScript
Executable file

import { CmykaColor } from "../types";
import { Plugin } from "../extend";
declare module "../colord" {
interface Colord {
/**
* Converts a color to CMYK color space and returns an object.
* https://drafts.csswg.org/css-color/#cmyk-colors
* https://lea.verou.me/2009/03/cmyk-colors-in-css-useful-or-useless/
*/
toCmyk(): CmykaColor;
/**
* Converts a color to CMYK color space and returns a string.
* https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/device-cmyk()
*/
toCmykString(): string;
}
}
/**
* A plugin adding support for CMYK color space.
* https://lea.verou.me/2009/03/cmyk-colors-in-css-useful-or-useless/
* https://en.wikipedia.org/wiki/CMYK_color_model
*/
declare const cmykPlugin: Plugin;
export default cmykPlugin;