Socket
Socket
Sign inDemoInstall

@types/culori

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/culori - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

334

culori/fn/index.d.ts

@@ -1,66 +0,66 @@

export { default as modeA98 } from '../src/a98/definition';
export { default as modeCubehelix } from '../src/cubehelix/definition';
export { default as modeDlab } from '../src/dlab/definition';
export { default as modeDlch } from '../src/dlch/definition';
export { default as modeHsi } from '../src/hsi/definition';
export { default as modeHsl } from '../src/hsl/definition';
export { default as modeHsv } from '../src/hsv/definition';
export { default as modeHwb } from '../src/hwb/definition';
export { default as modeJab } from '../src/jab/definition';
export { default as modeJch } from '../src/jch/definition';
export { default as modeLab } from '../src/lab/definition';
export { default as modeLab65 } from '../src/lab65/definition';
export { default as modeLch } from '../src/lch/definition';
export { default as modeLch65 } from '../src/lch65/definition';
export { default as modeLchuv } from '../src/lchuv/definition';
export { default as modeLrgb } from '../src/lrgb/definition';
export { default as modeLuv } from '../src/luv/definition';
export { default as modeOkhsl } from '../src/okhsl/modeOkhsl';
export { default as modeOkhsv } from '../src/okhsv/modeOkhsv';
export { default as modeOklab } from '../src/oklab/definition';
export { default as modeOklch } from '../src/oklch/definition';
export { default as modeP3 } from '../src/p3/definition';
export { default as modeProphoto } from '../src/prophoto/definition';
export { default as modeRec2020 } from '../src/rec2020/definition';
export { default as modeRgb } from '../src/rgb/definition';
export { default as modeXyz50 } from '../src/xyz50/definition';
export { default as modeXyz65 } from '../src/xyz65/definition';
export { default as modeYiq } from '../src/yiq/definition';
export { default as modeA98 } from "../src/a98/definition";
export { default as modeCubehelix } from "../src/cubehelix/definition";
export { default as modeDlab } from "../src/dlab/definition";
export { default as modeDlch } from "../src/dlch/definition";
export { default as modeHsi } from "../src/hsi/definition";
export { default as modeHsl } from "../src/hsl/definition";
export { default as modeHsv } from "../src/hsv/definition";
export { default as modeHwb } from "../src/hwb/definition";
export { default as modeJab } from "../src/jab/definition";
export { default as modeJch } from "../src/jch/definition";
export { default as modeLab } from "../src/lab/definition";
export { default as modeLab65 } from "../src/lab65/definition";
export { default as modeLch } from "../src/lch/definition";
export { default as modeLch65 } from "../src/lch65/definition";
export { default as modeLchuv } from "../src/lchuv/definition";
export { default as modeLrgb } from "../src/lrgb/definition";
export { default as modeLuv } from "../src/luv/definition";
export { default as modeOkhsl } from "../src/okhsl/modeOkhsl";
export { default as modeOkhsv } from "../src/okhsv/modeOkhsv";
export { default as modeOklab } from "../src/oklab/definition";
export { default as modeOklch } from "../src/oklch/definition";
export { default as modeP3 } from "../src/p3/definition";
export { default as modeProphoto } from "../src/prophoto/definition";
export { default as modeRec2020 } from "../src/rec2020/definition";
export { default as modeRgb } from "../src/rgb/definition";
export { default as modeXyz50 } from "../src/xyz50/definition";
export { default as modeXyz65 } from "../src/xyz65/definition";
export { default as modeYiq } from "../src/yiq/definition";
export { default as converter } from '../src/converter';
export { default as converter } from "../src/converter";
export {
formatCss,
formatHex,
formatHex8,
formatHsl,
formatRgb,
serializeHex,
serializeHex8,
serializeHsl,
serializeRgb,
serializeHsl,
formatHex,
formatHex8,
formatRgb,
formatHsl,
formatCss,
} from '../src/formatter';
} from "../src/formatter";
export { default as colorsNamed } from '../src/colors/named';
export { default as blend } from '../src/blend';
export { default as random } from '../src/random';
export { default as blend } from "../src/blend";
export { default as colorsNamed } from "../src/colors/named";
export { default as random } from "../src/random";
export { fixupHueShorter, fixupHueLonger, fixupHueIncreasing, fixupHueDecreasing } from '../src/fixup/hue';
export { fixupHueDecreasing, fixupHueIncreasing, fixupHueLonger, fixupHueShorter } from "../src/fixup/hue";
export { fixupAlpha } from '../src/fixup/alpha';
export { fixupAlpha } from "../src/fixup/alpha";
export { mapper, mapAlphaMultiply, mapAlphaDivide, mapTransferLinear, mapTransferGamma } from '../src/map';
export { mapAlphaDivide, mapAlphaMultiply, mapper, mapTransferGamma, mapTransferLinear } from "../src/map";
export { average, averageAngle, averageNumber } from '../src/average';
export { average, averageAngle, averageNumber } from "../src/average";
export { default as round } from '../src/round';
export { interpolate, interpolateWith, interpolateWithPremultipliedAlpha } from '../src/interpolate/interpolate';
export { interpolate, interpolateWith, interpolateWithPremultipliedAlpha } from "../src/interpolate/interpolate";
export { default as round } from "../src/round";
export { interpolatorLinear } from '../src/interpolate/linear';
export { interpolatorLinear } from "../src/interpolate/linear";
export { interpolatorPiecewise } from '../src/interpolate/piecewise';
export { interpolatorPiecewise } from "../src/interpolate/piecewise";
export { interpolatorSplineBasis, interpolatorSplineBasisClosed } from '../src/interpolate/splineBasis';
export { interpolatorSplineBasis, interpolatorSplineBasisClosed } from "../src/interpolate/splineBasis";
export { interpolatorSplineNatural, interpolatorSplineNaturalClosed } from '../src/interpolate/splineNatural';
export { interpolatorSplineNatural, interpolatorSplineNaturalClosed } from "../src/interpolate/splineNatural";

@@ -71,14 +71,13 @@ export {

interpolatorSplineMonotoneClosed,
} from '../src/interpolate/splineMonotone';
} from "../src/interpolate/splineMonotone";
export { default as lerp } from '../src/interpolate/lerp';
export { default as samples } from '../src/samples';
export { default as displayable } from '../src/displayable';
export { clampRgb, clampChroma } from '../src/clamp';
export { default as nearest } from '../src/nearest';
export { useMode, getMode, useParser, removeParser } from '../src/modes';
export { default as parse } from '../src/parse';
export { clampChroma, clampRgb } from "../src/clamp";
export { default as displayable } from "../src/displayable";
export { default as lerp } from "../src/interpolate/lerp";
export { getMode, removeParser, useMode, useParser } from "../src/modes";
export { default as nearest } from "../src/nearest";
export { default as parse } from "../src/parse";
export { default as samples } from "../src/samples";
export {
differenceEuclidean,
differenceCie76,

@@ -88,8 +87,9 @@ differenceCie94,

differenceCmc,
differenceHyab,
differenceHueSaturation,
differenceEuclidean,
differenceHueChroma,
differenceHueNaive,
differenceHueSaturation,
differenceHyab,
differenceKotsarenkoRamos,
} from '../src/difference';
} from "../src/difference";

@@ -99,117 +99,117 @@ export {

filterContrast,
filterSepia,
filterGrayscale,
filterHueRotate,
filterInvert,
filterSaturate,
filterGrayscale,
filterHueRotate,
} from '../src/filter';
filterSepia,
} from "../src/filter";
export { filterDeficiencyProt, filterDeficiencyDeuter, filterDeficiencyTrit } from '../src/deficiency';
export { filterDeficiencyDeuter, filterDeficiencyProt, filterDeficiencyTrit } from "../src/deficiency";
export { default as easingMidpoint } from '../src/easing/midpoint';
export { default as easingSmoothstep } from '../src/easing/smoothstep';
export { default as easingSmootherstep } from '../src/easing/smootherstep';
export { default as easingInOutSine } from '../src/easing/inOutSine';
export { default as easingGamma } from '../src/easing/gamma';
export { default as easingGamma } from "../src/easing/gamma";
export { default as easingInOutSine } from "../src/easing/inOutSine";
export { default as easingMidpoint } from "../src/easing/midpoint";
export { default as easingSmootherstep } from "../src/easing/smootherstep";
export { default as easingSmoothstep } from "../src/easing/smoothstep";
export { luminance as wcagLuminance, contrast as wcagContrast } from '../src/wcag';
export { contrast as wcagContrast, luminance as wcagLuminance } from "../src/wcag";
export { default as parseHsl } from '../src/hsl/parseHsl';
export { default as parseHwb } from '../src/hwb/parseHwb';
export { default as parseLab } from '../src/lab/parseLab';
export { default as parseLch } from '../src/lch/parseLch';
export { default as parseNamed } from '../src/rgb/parseNamed';
export { default as parseTransparent } from '../src/rgb/parseTransparent';
export { default as parseHex } from '../src/rgb/parseHex';
export { default as parseRgb } from '../src/rgb/parseRgb';
export { default as parseHsl } from "../src/hsl/parseHsl";
export { default as parseHwb } from "../src/hwb/parseHwb";
export { default as parseLab } from "../src/lab/parseLab";
export { default as parseLch } from "../src/lch/parseLch";
export { default as parseHex } from "../src/rgb/parseHex";
export { default as parseNamed } from "../src/rgb/parseNamed";
export { default as parseRgb } from "../src/rgb/parseRgb";
export { default as parseTransparent } from "../src/rgb/parseTransparent";
export { default as convertA98ToXyz65 } from '../src/a98/convertA98ToXyz65';
export { default as convertCubehelixToRgb } from '../src/cubehelix/convertCubehelixToRgb';
export { default as convertDlchToLab65 } from '../src/dlch/convertDlchToLab65';
export { default as convertHsiToRgb } from '../src/hsi/convertHsiToRgb';
export { default as convertHslToRgb } from '../src/hsl/convertHslToRgb';
export { default as convertHsvToRgb } from '../src/hsv/convertHsvToRgb';
export { default as convertHwbToRgb } from '../src/hwb/convertHwbToRgb';
export { default as convertJabToJch } from '../src/jch/convertJabToJch';
export { default as convertJabToRgb } from '../src/jab/convertJabToRgb';
export { default as convertJabToXyz65 } from '../src/jab/convertJabToXyz65';
export { default as convertJchToJab } from '../src/jch/convertJchToJab';
export { default as convertLab65ToDlch } from '../src/dlch/convertLab65ToDlch';
export { default as convertLab65ToRgb } from '../src/lab65/convertLab65ToRgb';
export { default as convertLab65ToXyz65 } from '../src/lab65/convertLab65ToXyz65';
export { default as convertLabToLch } from '../src/lch/convertLabToLch';
export { default as convertLabToRgb } from '../src/lab/convertLabToRgb';
export { default as convertLabToXyz50 } from '../src/lab/convertLabToXyz50';
export { default as convertLchToLab } from '../src/lch/convertLchToLab';
export { default as convertLchuvToLuv } from '../src/lchuv/convertLchuvToLuv';
export { default as convertLrgbToOklab } from '../src/oklab/convertLrgbToOklab';
export { default as convertLrgbToRgb } from '../src/lrgb/convertLrgbToRgb';
export { default as convertLuvToLchuv } from '../src/lchuv/convertLuvToLchuv';
export { default as convertLuvToXyz50 } from '../src/luv/convertLuvToXyz50';
export { default as convertOkhslToOklab } from '../src/okhsl/convertOkhslToOklab';
export { default as convertOkhsvToOklab } from '../src/okhsv/convertOkhsvToOklab';
export { default as convertOklabToLrgb } from '../src/oklab/convertOklabToLrgb';
export { default as convertOklabToOkhsl } from '../src/okhsl/convertOklabToOkhsl';
export { default as convertOklabToOkhsv } from '../src/okhsv/convertOklabToOkhsv';
export { default as convertOklabToRgb } from '../src/oklab/convertOklabToRgb';
export { default as convertP3ToXyz65 } from '../src/p3/convertP3ToXyz65';
export { default as convertProphotoToXyz50 } from '../src/prophoto/convertProphotoToXyz50';
export { default as convertRec2020ToXyz65 } from '../src/rec2020/convertRec2020ToXyz65';
export { default as convertRgbToCubehelix } from '../src/cubehelix/convertRgbToCubehelix';
export { default as convertRgbToHsi } from '../src/hsi/convertRgbToHsi';
export { default as convertRgbToHsl } from '../src/hsl/convertRgbToHsl';
export { default as convertRgbToHsv } from '../src/hsv/convertRgbToHsv';
export { default as convertRgbToHwb } from '../src/hwb/convertRgbToHwb';
export { default as convertRgbToJab } from '../src/jab/convertRgbToJab';
export { default as convertRgbToLab } from '../src/lab/convertRgbToLab';
export { default as convertRgbToLab65 } from '../src/lab65/convertRgbToLab65';
export { default as convertRgbToLrgb } from '../src/lrgb/convertRgbToLrgb';
export { default as convertRgbToOklab } from '../src/oklab/convertRgbToOklab';
export { default as convertRgbToXyz50 } from '../src/xyz50/convertRgbToXyz50';
export { default as convertRgbToXyz65 } from '../src/xyz65/convertRgbToXyz65';
export { default as convertRgbToYiq } from '../src/yiq/convertRgbToYiq';
export { default as convertXyz65ToA98 } from '../src/a98/convertXyz65ToA98';
export { default as convertXyz65ToJab } from '../src/jab/convertXyz65ToJab';
export { default as convertXyz65ToLab65 } from '../src/lab65/convertXyz65ToLab65';
export { default as convertXyz65ToP3 } from '../src/p3/convertXyz65ToP3';
export { default as convertXyz65ToRec2020 } from '../src/rec2020/convertXyz65ToRec2020';
export { default as convertXyz65ToRgb } from '../src/xyz65/convertXyz65ToRgb';
export { default as convertXyz65ToXyz50 } from '../src/xyz65/convertXyz65ToXyz50';
export { default as convertXyz50ToLab } from '../src/lab/convertXyz50ToLab';
export { default as convertXyz50ToLuv } from '../src/luv/convertXyz50ToLuv';
export { default as convertXyz50ToProphoto } from '../src/prophoto/convertXyz50ToProphoto';
export { default as convertXyz50ToRgb } from '../src/xyz50/convertXyz50ToRgb';
export { default as convertXyz50ToXyz65 } from '../src/xyz65/convertXyz50ToXyz65';
export { default as convertYiqToRgb } from '../src/yiq/convertYiqToRgb';
export { default as convertA98ToXyz65 } from "../src/a98/convertA98ToXyz65";
export { default as convertXyz65ToA98 } from "../src/a98/convertXyz65ToA98";
export { default as convertCubehelixToRgb } from "../src/cubehelix/convertCubehelixToRgb";
export { default as convertRgbToCubehelix } from "../src/cubehelix/convertRgbToCubehelix";
export { default as convertDlchToLab65 } from "../src/dlch/convertDlchToLab65";
export { default as convertLab65ToDlch } from "../src/dlch/convertLab65ToDlch";
export { default as convertHsiToRgb } from "../src/hsi/convertHsiToRgb";
export { default as convertRgbToHsi } from "../src/hsi/convertRgbToHsi";
export { default as convertHslToRgb } from "../src/hsl/convertHslToRgb";
export { default as convertRgbToHsl } from "../src/hsl/convertRgbToHsl";
export { default as convertHsvToRgb } from "../src/hsv/convertHsvToRgb";
export { default as convertRgbToHsv } from "../src/hsv/convertRgbToHsv";
export { default as convertHwbToRgb } from "../src/hwb/convertHwbToRgb";
export { default as convertRgbToHwb } from "../src/hwb/convertRgbToHwb";
export { default as convertJabToRgb } from "../src/jab/convertJabToRgb";
export { default as convertJabToXyz65 } from "../src/jab/convertJabToXyz65";
export { default as convertRgbToJab } from "../src/jab/convertRgbToJab";
export { default as convertXyz65ToJab } from "../src/jab/convertXyz65ToJab";
export { default as convertJabToJch } from "../src/jch/convertJabToJch";
export { default as convertJchToJab } from "../src/jch/convertJchToJab";
export { default as convertLabToRgb } from "../src/lab/convertLabToRgb";
export { default as convertLabToXyz50 } from "../src/lab/convertLabToXyz50";
export { default as convertRgbToLab } from "../src/lab/convertRgbToLab";
export { default as convertXyz50ToLab } from "../src/lab/convertXyz50ToLab";
export { default as convertLab65ToRgb } from "../src/lab65/convertLab65ToRgb";
export { default as convertLab65ToXyz65 } from "../src/lab65/convertLab65ToXyz65";
export { default as convertRgbToLab65 } from "../src/lab65/convertRgbToLab65";
export { default as convertXyz65ToLab65 } from "../src/lab65/convertXyz65ToLab65";
export { default as convertLabToLch } from "../src/lch/convertLabToLch";
export { default as convertLchToLab } from "../src/lch/convertLchToLab";
export { default as convertLchuvToLuv } from "../src/lchuv/convertLchuvToLuv";
export { default as convertLuvToLchuv } from "../src/lchuv/convertLuvToLchuv";
export { default as convertLrgbToRgb } from "../src/lrgb/convertLrgbToRgb";
export { default as convertRgbToLrgb } from "../src/lrgb/convertRgbToLrgb";
export { default as convertLuvToXyz50 } from "../src/luv/convertLuvToXyz50";
export { default as convertXyz50ToLuv } from "../src/luv/convertXyz50ToLuv";
export { default as convertOkhslToOklab } from "../src/okhsl/convertOkhslToOklab";
export { default as convertOklabToOkhsl } from "../src/okhsl/convertOklabToOkhsl";
export { default as convertOkhsvToOklab } from "../src/okhsv/convertOkhsvToOklab";
export { default as convertOklabToOkhsv } from "../src/okhsv/convertOklabToOkhsv";
export { default as convertLrgbToOklab } from "../src/oklab/convertLrgbToOklab";
export { default as convertOklabToLrgb } from "../src/oklab/convertOklabToLrgb";
export { default as convertOklabToRgb } from "../src/oklab/convertOklabToRgb";
export { default as convertRgbToOklab } from "../src/oklab/convertRgbToOklab";
export { default as convertP3ToXyz65 } from "../src/p3/convertP3ToXyz65";
export { default as convertXyz65ToP3 } from "../src/p3/convertXyz65ToP3";
export { default as convertProphotoToXyz50 } from "../src/prophoto/convertProphotoToXyz50";
export { default as convertXyz50ToProphoto } from "../src/prophoto/convertXyz50ToProphoto";
export { default as convertRec2020ToXyz65 } from "../src/rec2020/convertRec2020ToXyz65";
export { default as convertXyz65ToRec2020 } from "../src/rec2020/convertXyz65ToRec2020";
export { default as convertRgbToXyz50 } from "../src/xyz50/convertRgbToXyz50";
export { default as convertXyz50ToRgb } from "../src/xyz50/convertXyz50ToRgb";
export { default as convertRgbToXyz65 } from "../src/xyz65/convertRgbToXyz65";
export { default as convertXyz50ToXyz65 } from "../src/xyz65/convertXyz50ToXyz65";
export { default as convertXyz65ToRgb } from "../src/xyz65/convertXyz65ToRgb";
export { default as convertXyz65ToXyz50 } from "../src/xyz65/convertXyz65ToXyz50";
export { default as convertRgbToYiq } from "../src/yiq/convertRgbToYiq";
export { default as convertYiqToRgb } from "../src/yiq/convertYiqToRgb";
/* Types */
export { Color, Mode } from '../src/common';
export type { A98 } from '../src/a98/types';
export type { Cubehelix } from '../src/cubehelix/types';
export type { Dlab } from '../src/dlab/types';
export type { Dlch } from '../src/dlch/types';
export type { Hsi } from '../src/hsi/types';
export type { Hsl } from '../src/hsl/types';
export type { Hsv } from '../src/hsv/types';
export type { Hwb } from '../src/hwb/types';
export type { Jab } from '../src/jab/types';
export type { Jch } from '../src/jch/types';
export type { Lab } from '../src/lab/types';
export type { Lab65 } from '../src/lab65/types';
export type { Lch } from '../src/lch/types';
export type { Lch65 } from '../src/lch65/types';
export type { Lchuv } from '../src/lchuv/types';
export type { Lrgb } from '../src/lrgb/types';
export type { Luv } from '../src/luv/types';
export type { Okhsl } from '../src/okhsl/types';
export type { Okhsv } from '../src/okhsv/types';
export type { Oklab } from '../src/oklab/types';
export type { Oklch } from '../src/oklch/types';
export type { P3 } from '../src/p3/types';
export type { Prophoto } from '../src/prophoto/types';
export type { Rec2020 } from '../src/rec2020/types';
export type { Rgb } from '../src/rgb/types';
export type { Xyz50 } from '../src/xyz50/types';
export type { Xyz65 } from '../src/xyz65/types';
export type { Yiq } from '../src/yiq/types';
export type { A98 } from "../src/a98/types";
export { Color, Mode } from "../src/common";
export type { Cubehelix } from "../src/cubehelix/types";
export type { Dlab } from "../src/dlab/types";
export type { Dlch } from "../src/dlch/types";
export type { Hsi } from "../src/hsi/types";
export type { Hsl } from "../src/hsl/types";
export type { Hsv } from "../src/hsv/types";
export type { Hwb } from "../src/hwb/types";
export type { Jab } from "../src/jab/types";
export type { Jch } from "../src/jch/types";
export type { Lab } from "../src/lab/types";
export type { Lab65 } from "../src/lab65/types";
export type { Lch } from "../src/lch/types";
export type { Lch65 } from "../src/lch65/types";
export type { Lchuv } from "../src/lchuv/types";
export type { Lrgb } from "../src/lrgb/types";
export type { Luv } from "../src/luv/types";
export type { Okhsl } from "../src/okhsl/types";
export type { Okhsv } from "../src/okhsv/types";
export type { Oklab } from "../src/oklab/types";
export type { Oklch } from "../src/oklch/types";
export type { P3 } from "../src/p3/types";
export type { Prophoto } from "../src/prophoto/types";
export type { Rec2020 } from "../src/rec2020/types";
export type { Rgb } from "../src/rgb/types";
export type { Xyz50 } from "../src/xyz50/types";
export type { Xyz65 } from "../src/xyz65/types";
export type { Yiq } from "../src/yiq/types";

@@ -6,69 +6,69 @@ // Type definitions for culori 2.0

import modeA98 from './src/a98/definition';
import modeCubehelix from './src/cubehelix/definition';
import modeDlab from './src/dlab/definition';
import modeDlch from './src/dlch/definition';
import modeHsi from './src/hsi/definition';
import modeHsl from './src/hsl/definition';
import modeHsv from './src/hsv/definition';
import modeHwb from './src/hwb/definition';
import modeJab from './src/jab/definition';
import modeJch from './src/jch/definition';
import modeLab from './src/lab/definition';
import modeLab65 from './src/lab65/definition';
import modeLch from './src/lch/definition';
import modeLch65 from './src/lch65/definition';
import modeLchuv from './src/lchuv/definition';
import modeLrgb from './src/lrgb/definition';
import modeLuv from './src/luv/definition';
import modeOkhsl from './src/okhsl/modeOkhsl';
import modeOkhsv from './src/okhsv/modeOkhsv';
import modeOklab from './src/oklab/definition';
import modeOklch from './src/oklch/definition';
import modeP3 from './src/p3/definition';
import modeProphoto from './src/prophoto/definition';
import modeRec2020 from './src/rec2020/definition';
import modeRgb from './src/rgb/definition';
import modeXyz50 from './src/xyz50/definition';
import modeXyz65 from './src/xyz65/definition';
import modeYiq from './src/yiq/definition';
import { useMode } from './src/modes';
import { ConvertFn } from './src/converter';
import modeA98 from "./src/a98/definition";
import { ConvertFn } from "./src/converter";
import modeCubehelix from "./src/cubehelix/definition";
import modeDlab from "./src/dlab/definition";
import modeDlch from "./src/dlch/definition";
import modeHsi from "./src/hsi/definition";
import modeHsl from "./src/hsl/definition";
import modeHsv from "./src/hsv/definition";
import modeHwb from "./src/hwb/definition";
import modeJab from "./src/jab/definition";
import modeJch from "./src/jch/definition";
import modeLab from "./src/lab/definition";
import modeLab65 from "./src/lab65/definition";
import modeLch from "./src/lch/definition";
import modeLch65 from "./src/lch65/definition";
import modeLchuv from "./src/lchuv/definition";
import modeLrgb from "./src/lrgb/definition";
import modeLuv from "./src/luv/definition";
import { useMode } from "./src/modes";
import modeOkhsl from "./src/okhsl/modeOkhsl";
import modeOkhsv from "./src/okhsv/modeOkhsv";
import modeOklab from "./src/oklab/definition";
import modeOklch from "./src/oklch/definition";
import modeP3 from "./src/p3/definition";
import modeProphoto from "./src/prophoto/definition";
import modeRec2020 from "./src/rec2020/definition";
import modeRgb from "./src/rgb/definition";
import modeXyz50 from "./src/xyz50/definition";
import modeXyz65 from "./src/xyz65/definition";
import modeYiq from "./src/yiq/definition";
export { default as converter } from './src/converter';
export { default as converter } from "./src/converter";
export {
formatCss,
formatHex,
formatHex8,
formatHsl,
formatRgb,
serializeHex,
serializeHex8,
serializeHsl,
serializeRgb,
serializeHsl,
formatHex,
formatHex8,
formatRgb,
formatHsl,
formatCss,
} from './src/formatter';
} from "./src/formatter";
export { default as colorsNamed } from './src/colors/named';
export { default as blend } from './src/blend';
export { default as random } from './src/random';
export { default as blend } from "./src/blend";
export { default as colorsNamed } from "./src/colors/named";
export { default as random } from "./src/random";
export { fixupHueShorter, fixupHueLonger, fixupHueIncreasing, fixupHueDecreasing } from './src/fixup/hue';
export { fixupHueDecreasing, fixupHueIncreasing, fixupHueLonger, fixupHueShorter } from "./src/fixup/hue";
export { fixupAlpha } from './src/fixup/alpha';
export { fixupAlpha } from "./src/fixup/alpha";
export { mapper, mapAlphaMultiply, mapAlphaDivide, mapTransferLinear, mapTransferGamma } from './src/map';
export { mapAlphaDivide, mapAlphaMultiply, mapper, mapTransferGamma, mapTransferLinear } from "./src/map";
export { average, averageAngle, averageNumber } from './src/average';
export { average, averageAngle, averageNumber } from "./src/average";
export { default as round } from './src/round';
export { interpolate, interpolateWith, interpolateWithPremultipliedAlpha } from './src/interpolate/interpolate';
export { interpolate, interpolateWith, interpolateWithPremultipliedAlpha } from "./src/interpolate/interpolate";
export { default as round } from "./src/round";
export { interpolatorLinear } from './src/interpolate/linear';
export { interpolatorLinear } from "./src/interpolate/linear";
export { interpolatorPiecewise } from './src/interpolate/piecewise';
export { interpolatorPiecewise } from "./src/interpolate/piecewise";
export { interpolatorSplineBasis, interpolatorSplineBasisClosed } from './src/interpolate/splineBasis';
export { interpolatorSplineBasis, interpolatorSplineBasisClosed } from "./src/interpolate/splineBasis";
export { interpolatorSplineNatural, interpolatorSplineNaturalClosed } from './src/interpolate/splineNatural';
export { interpolatorSplineNatural, interpolatorSplineNaturalClosed } from "./src/interpolate/splineNatural";

@@ -79,14 +79,13 @@ export {

interpolatorSplineMonotoneClosed,
} from './src/interpolate/splineMonotone';
} from "./src/interpolate/splineMonotone";
export { default as lerp } from './src/interpolate/lerp';
export { default as samples } from './src/samples';
export { default as displayable } from './src/displayable';
export { clampRgb, clampChroma } from './src/clamp';
export { default as nearest } from './src/nearest';
export { useMode, getMode, useParser, removeParser } from './src/modes';
export { default as parse } from './src/parse';
export { clampChroma, clampRgb } from "./src/clamp";
export { default as displayable } from "./src/displayable";
export { default as lerp } from "./src/interpolate/lerp";
export { getMode, removeParser, useMode, useParser } from "./src/modes";
export { default as nearest } from "./src/nearest";
export { default as parse } from "./src/parse";
export { default as samples } from "./src/samples";
export {
differenceEuclidean,
differenceCie76,

@@ -96,8 +95,9 @@ differenceCie94,

differenceCmc,
differenceHyab,
differenceHueSaturation,
differenceEuclidean,
differenceHueChroma,
differenceHueNaive,
differenceHueSaturation,
differenceHyab,
differenceKotsarenkoRamos,
} from './src/difference';
} from "./src/difference";

@@ -107,86 +107,86 @@ export {

filterContrast,
filterSepia,
filterGrayscale,
filterHueRotate,
filterInvert,
filterSaturate,
filterGrayscale,
filterHueRotate,
} from './src/filter';
filterSepia,
} from "./src/filter";
export { filterDeficiencyProt, filterDeficiencyDeuter, filterDeficiencyTrit } from './src/deficiency';
export { filterDeficiencyDeuter, filterDeficiencyProt, filterDeficiencyTrit } from "./src/deficiency";
export { default as easingMidpoint } from './src/easing/midpoint';
export { default as easingSmoothstep } from './src/easing/smoothstep';
export { default as easingSmootherstep } from './src/easing/smootherstep';
export { default as easingInOutSine } from './src/easing/inOutSine';
export { default as easingGamma } from './src/easing/gamma';
export { default as easingGamma } from "./src/easing/gamma";
export { default as easingInOutSine } from "./src/easing/inOutSine";
export { default as easingMidpoint } from "./src/easing/midpoint";
export { default as easingSmootherstep } from "./src/easing/smootherstep";
export { default as easingSmoothstep } from "./src/easing/smoothstep";
export { luminance as wcagLuminance, contrast as wcagContrast } from './src/wcag';
export { contrast as wcagContrast, luminance as wcagLuminance } from "./src/wcag";
export { default as parseHsl } from './src/hsl/parseHsl';
export { default as parseHwb } from './src/hwb/parseHwb';
export { default as parseLab } from './src/lab/parseLab';
export { default as parseLch } from './src/lch/parseLch';
export { default as parseNamed } from './src/rgb/parseNamed';
export { default as parseTransparent } from './src/rgb/parseTransparent';
export { default as parseHex } from './src/rgb/parseHex';
export { default as parseRgb } from './src/rgb/parseRgb';
export { default as parseHsl } from "./src/hsl/parseHsl";
export { default as parseHwb } from "./src/hwb/parseHwb";
export { default as parseLab } from "./src/lab/parseLab";
export { default as parseLch } from "./src/lch/parseLch";
export { default as parseHex } from "./src/rgb/parseHex";
export { default as parseNamed } from "./src/rgb/parseNamed";
export { default as parseRgb } from "./src/rgb/parseRgb";
export { default as parseTransparent } from "./src/rgb/parseTransparent";
export { default as convertA98ToXyz65 } from './src/a98/convertA98ToXyz65';
export { default as convertCubehelixToRgb } from './src/cubehelix/convertCubehelixToRgb';
export { default as convertDlchToLab65 } from './src/dlch/convertDlchToLab65';
export { default as convertHsiToRgb } from './src/hsi/convertHsiToRgb';
export { default as convertHslToRgb } from './src/hsl/convertHslToRgb';
export { default as convertHsvToRgb } from './src/hsv/convertHsvToRgb';
export { default as convertHwbToRgb } from './src/hwb/convertHwbToRgb';
export { default as convertJabToJch } from './src/jch/convertJabToJch';
export { default as convertJabToRgb } from './src/jab/convertJabToRgb';
export { default as convertJabToXyz65 } from './src/jab/convertJabToXyz65';
export { default as convertJchToJab } from './src/jch/convertJchToJab';
export { default as convertLab65ToDlch } from './src/dlch/convertLab65ToDlch';
export { default as convertLab65ToRgb } from './src/lab65/convertLab65ToRgb';
export { default as convertLab65ToXyz65 } from './src/lab65/convertLab65ToXyz65';
export { default as convertLabToLch } from './src/lch/convertLabToLch';
export { default as convertLabToRgb } from './src/lab/convertLabToRgb';
export { default as convertLabToXyz50 } from './src/lab/convertLabToXyz50';
export { default as convertLchToLab } from './src/lch/convertLchToLab';
export { default as convertLchuvToLuv } from './src/lchuv/convertLchuvToLuv';
export { default as convertLrgbToOklab } from './src/oklab/convertLrgbToOklab';
export { default as convertLrgbToRgb } from './src/lrgb/convertLrgbToRgb';
export { default as convertLuvToLchuv } from './src/lchuv/convertLuvToLchuv';
export { default as convertLuvToXyz50 } from './src/luv/convertLuvToXyz50';
export { default as convertOkhslToOklab } from './src/okhsl/convertOkhslToOklab';
export { default as convertOkhsvToOklab } from './src/okhsv/convertOkhsvToOklab';
export { default as convertOklabToLrgb } from './src/oklab/convertOklabToLrgb';
export { default as convertOklabToOkhsl } from './src/okhsl/convertOklabToOkhsl';
export { default as convertOklabToOkhsv } from './src/okhsv/convertOklabToOkhsv';
export { default as convertOklabToRgb } from './src/oklab/convertOklabToRgb';
export { default as convertP3ToXyz65 } from './src/p3/convertP3ToXyz65';
export { default as convertProphotoToXyz50 } from './src/prophoto/convertProphotoToXyz50';
export { default as convertRec2020ToXyz65 } from './src/rec2020/convertRec2020ToXyz65';
export { default as convertRgbToCubehelix } from './src/cubehelix/convertRgbToCubehelix';
export { default as convertRgbToHsi } from './src/hsi/convertRgbToHsi';
export { default as convertRgbToHsl } from './src/hsl/convertRgbToHsl';
export { default as convertRgbToHsv } from './src/hsv/convertRgbToHsv';
export { default as convertRgbToHwb } from './src/hwb/convertRgbToHwb';
export { default as convertRgbToJab } from './src/jab/convertRgbToJab';
export { default as convertRgbToLab } from './src/lab/convertRgbToLab';
export { default as convertRgbToLab65 } from './src/lab65/convertRgbToLab65';
export { default as convertRgbToLrgb } from './src/lrgb/convertRgbToLrgb';
export { default as convertRgbToOklab } from './src/oklab/convertRgbToOklab';
export { default as convertRgbToXyz50 } from './src/xyz50/convertRgbToXyz50';
export { default as convertRgbToXyz65 } from './src/xyz65/convertRgbToXyz65';
export { default as convertRgbToYiq } from './src/yiq/convertRgbToYiq';
export { default as convertXyz65ToA98 } from './src/a98/convertXyz65ToA98';
export { default as convertXyz65ToJab } from './src/jab/convertXyz65ToJab';
export { default as convertXyz65ToLab65 } from './src/lab65/convertXyz65ToLab65';
export { default as convertXyz65ToP3 } from './src/p3/convertXyz65ToP3';
export { default as convertXyz65ToRec2020 } from './src/rec2020/convertXyz65ToRec2020';
export { default as convertXyz65ToRgb } from './src/xyz65/convertXyz65ToRgb';
export { default as convertXyz65ToXyz50 } from './src/xyz65/convertXyz65ToXyz50';
export { default as convertXyz50ToLab } from './src/lab/convertXyz50ToLab';
export { default as convertXyz50ToLuv } from './src/luv/convertXyz50ToLuv';
export { default as convertXyz50ToProphoto } from './src/prophoto/convertXyz50ToProphoto';
export { default as convertXyz50ToRgb } from './src/xyz50/convertXyz50ToRgb';
export { default as convertXyz50ToXyz65 } from './src/xyz65/convertXyz50ToXyz65';
export { default as convertYiqToRgb } from './src/yiq/convertYiqToRgb';
export { default as convertA98ToXyz65 } from "./src/a98/convertA98ToXyz65";
export { default as convertXyz65ToA98 } from "./src/a98/convertXyz65ToA98";
export { default as convertCubehelixToRgb } from "./src/cubehelix/convertCubehelixToRgb";
export { default as convertRgbToCubehelix } from "./src/cubehelix/convertRgbToCubehelix";
export { default as convertDlchToLab65 } from "./src/dlch/convertDlchToLab65";
export { default as convertLab65ToDlch } from "./src/dlch/convertLab65ToDlch";
export { default as convertHsiToRgb } from "./src/hsi/convertHsiToRgb";
export { default as convertRgbToHsi } from "./src/hsi/convertRgbToHsi";
export { default as convertHslToRgb } from "./src/hsl/convertHslToRgb";
export { default as convertRgbToHsl } from "./src/hsl/convertRgbToHsl";
export { default as convertHsvToRgb } from "./src/hsv/convertHsvToRgb";
export { default as convertRgbToHsv } from "./src/hsv/convertRgbToHsv";
export { default as convertHwbToRgb } from "./src/hwb/convertHwbToRgb";
export { default as convertRgbToHwb } from "./src/hwb/convertRgbToHwb";
export { default as convertJabToRgb } from "./src/jab/convertJabToRgb";
export { default as convertJabToXyz65 } from "./src/jab/convertJabToXyz65";
export { default as convertRgbToJab } from "./src/jab/convertRgbToJab";
export { default as convertXyz65ToJab } from "./src/jab/convertXyz65ToJab";
export { default as convertJabToJch } from "./src/jch/convertJabToJch";
export { default as convertJchToJab } from "./src/jch/convertJchToJab";
export { default as convertLabToRgb } from "./src/lab/convertLabToRgb";
export { default as convertLabToXyz50 } from "./src/lab/convertLabToXyz50";
export { default as convertRgbToLab } from "./src/lab/convertRgbToLab";
export { default as convertXyz50ToLab } from "./src/lab/convertXyz50ToLab";
export { default as convertLab65ToRgb } from "./src/lab65/convertLab65ToRgb";
export { default as convertLab65ToXyz65 } from "./src/lab65/convertLab65ToXyz65";
export { default as convertRgbToLab65 } from "./src/lab65/convertRgbToLab65";
export { default as convertXyz65ToLab65 } from "./src/lab65/convertXyz65ToLab65";
export { default as convertLabToLch } from "./src/lch/convertLabToLch";
export { default as convertLchToLab } from "./src/lch/convertLchToLab";
export { default as convertLchuvToLuv } from "./src/lchuv/convertLchuvToLuv";
export { default as convertLuvToLchuv } from "./src/lchuv/convertLuvToLchuv";
export { default as convertLrgbToRgb } from "./src/lrgb/convertLrgbToRgb";
export { default as convertRgbToLrgb } from "./src/lrgb/convertRgbToLrgb";
export { default as convertLuvToXyz50 } from "./src/luv/convertLuvToXyz50";
export { default as convertXyz50ToLuv } from "./src/luv/convertXyz50ToLuv";
export { default as convertOkhslToOklab } from "./src/okhsl/convertOkhslToOklab";
export { default as convertOklabToOkhsl } from "./src/okhsl/convertOklabToOkhsl";
export { default as convertOkhsvToOklab } from "./src/okhsv/convertOkhsvToOklab";
export { default as convertOklabToOkhsv } from "./src/okhsv/convertOklabToOkhsv";
export { default as convertLrgbToOklab } from "./src/oklab/convertLrgbToOklab";
export { default as convertOklabToLrgb } from "./src/oklab/convertOklabToLrgb";
export { default as convertOklabToRgb } from "./src/oklab/convertOklabToRgb";
export { default as convertRgbToOklab } from "./src/oklab/convertRgbToOklab";
export { default as convertP3ToXyz65 } from "./src/p3/convertP3ToXyz65";
export { default as convertXyz65ToP3 } from "./src/p3/convertXyz65ToP3";
export { default as convertProphotoToXyz50 } from "./src/prophoto/convertProphotoToXyz50";
export { default as convertXyz50ToProphoto } from "./src/prophoto/convertXyz50ToProphoto";
export { default as convertRec2020ToXyz65 } from "./src/rec2020/convertRec2020ToXyz65";
export { default as convertXyz65ToRec2020 } from "./src/rec2020/convertXyz65ToRec2020";
export { default as convertRgbToXyz50 } from "./src/xyz50/convertRgbToXyz50";
export { default as convertXyz50ToRgb } from "./src/xyz50/convertXyz50ToRgb";
export { default as convertRgbToXyz65 } from "./src/xyz65/convertRgbToXyz65";
export { default as convertXyz50ToXyz65 } from "./src/xyz65/convertXyz50ToXyz65";
export { default as convertXyz65ToRgb } from "./src/xyz65/convertXyz65ToRgb";
export { default as convertXyz65ToXyz50 } from "./src/xyz65/convertXyz65ToXyz50";
export { default as convertRgbToYiq } from "./src/yiq/convertRgbToYiq";
export { default as convertYiqToRgb } from "./src/yiq/convertYiqToRgb";

@@ -224,62 +224,62 @@ export {

export const a98: ConvertFn<'a98'>;
export const cubehelix: ConvertFn<'cubehelix'>;
export const dlab: ConvertFn<'dlab'>;
export const dlch: ConvertFn<'dlch'>;
export const hsi: ConvertFn<'hsi'>;
export const hsl: ConvertFn<'hsl'>;
export const hsv: ConvertFn<'hsv'>;
export const hwb: ConvertFn<'hwb'>;
export const jab: ConvertFn<'jab'>;
export const jch: ConvertFn<'jch'>;
export const lab: ConvertFn<'lab'>;
export const lab65: ConvertFn<'lab65'>;
export const lch: ConvertFn<'lch'>;
export const lch65: ConvertFn<'lch65'>;
export const lchuv: ConvertFn<'lchuv'>;
export const lrgb: ConvertFn<'lrgb'>;
export const luv: ConvertFn<'luv'>;
export const okhsl: ConvertFn<'okhsl'>;
export const okhsv: ConvertFn<'okhsv'>;
export const oklab: ConvertFn<'oklab'>;
export const oklch: ConvertFn<'oklch'>;
export const p3: ConvertFn<'p3'>;
export const prophoto: ConvertFn<'prophoto'>;
export const rec2020: ConvertFn<'rec2020'>;
export const a98: ConvertFn<"a98">;
export const cubehelix: ConvertFn<"cubehelix">;
export const dlab: ConvertFn<"dlab">;
export const dlch: ConvertFn<"dlch">;
export const hsi: ConvertFn<"hsi">;
export const hsl: ConvertFn<"hsl">;
export const hsv: ConvertFn<"hsv">;
export const hwb: ConvertFn<"hwb">;
export const jab: ConvertFn<"jab">;
export const jch: ConvertFn<"jch">;
export const lab: ConvertFn<"lab">;
export const lab65: ConvertFn<"lab65">;
export const lch: ConvertFn<"lch">;
export const lch65: ConvertFn<"lch65">;
export const lchuv: ConvertFn<"lchuv">;
export const lrgb: ConvertFn<"lrgb">;
export const luv: ConvertFn<"luv">;
export const okhsl: ConvertFn<"okhsl">;
export const okhsv: ConvertFn<"okhsv">;
export const oklab: ConvertFn<"oklab">;
export const oklch: ConvertFn<"oklch">;
export const p3: ConvertFn<"p3">;
export const prophoto: ConvertFn<"prophoto">;
export const rec2020: ConvertFn<"rec2020">;
// tslint:disable-next-line:use-default-type-parameter
export const rgb: ConvertFn<'rgb'>;
export const xyz50: ConvertFn<'xyz50'>;
export const xyz65: ConvertFn<'xyz65'>;
export const yiq: ConvertFn<'yiq'>;
export const rgb: ConvertFn<"rgb">;
export const xyz50: ConvertFn<"xyz50">;
export const xyz65: ConvertFn<"xyz65">;
export const yiq: ConvertFn<"yiq">;
/* Types */
export { Color, Mode } from './src/common';
export type { A98 } from './src/a98/types';
export type { Cubehelix } from './src/cubehelix/types';
export type { Dlab } from './src/dlab/types';
export type { Dlch } from './src/dlch/types';
export type { Hsi } from './src/hsi/types';
export type { Hsl } from './src/hsl/types';
export type { Hsv } from './src/hsv/types';
export type { Hwb } from './src/hwb/types';
export type { Jab } from './src/jab/types';
export type { Jch } from './src/jch/types';
export type { Lab } from './src/lab/types';
export type { Lab65 } from './src/lab65/types';
export type { Lch } from './src/lch/types';
export type { Lch65 } from './src/lch65/types';
export type { Lchuv } from './src/lchuv/types';
export type { Lrgb } from './src/lrgb/types';
export type { Luv } from './src/luv/types';
export type { Okhsl } from './src/okhsl/types';
export type { Okhsv } from './src/okhsv/types';
export type { Oklab } from './src/oklab/types';
export type { Oklch } from './src/oklch/types';
export type { P3 } from './src/p3/types';
export type { Prophoto } from './src/prophoto/types';
export type { Rec2020 } from './src/rec2020/types';
export type { Rgb } from './src/rgb/types';
export type { Xyz50 } from './src/xyz50/types';
export type { Xyz65 } from './src/xyz65/types';
export type { Yiq } from './src/yiq/types';
export type { A98 } from "./src/a98/types";
export { Color, Mode } from "./src/common";
export type { Cubehelix } from "./src/cubehelix/types";
export type { Dlab } from "./src/dlab/types";
export type { Dlch } from "./src/dlch/types";
export type { Hsi } from "./src/hsi/types";
export type { Hsl } from "./src/hsl/types";
export type { Hsv } from "./src/hsv/types";
export type { Hwb } from "./src/hwb/types";
export type { Jab } from "./src/jab/types";
export type { Jch } from "./src/jch/types";
export type { Lab } from "./src/lab/types";
export type { Lab65 } from "./src/lab65/types";
export type { Lch } from "./src/lch/types";
export type { Lch65 } from "./src/lch65/types";
export type { Lchuv } from "./src/lchuv/types";
export type { Lrgb } from "./src/lrgb/types";
export type { Luv } from "./src/luv/types";
export type { Okhsl } from "./src/okhsl/types";
export type { Okhsv } from "./src/okhsv/types";
export type { Oklab } from "./src/oklab/types";
export type { Oklch } from "./src/oklch/types";
export type { P3 } from "./src/p3/types";
export type { Prophoto } from "./src/prophoto/types";
export type { Rec2020 } from "./src/rec2020/types";
export type { Rgb } from "./src/rgb/types";
export type { Xyz50 } from "./src/xyz50/types";
export type { Xyz65 } from "./src/xyz65/types";
export type { Yiq } from "./src/yiq/types";
{
"name": "@types/culori",
"version": "2.0.0",
"version": "2.0.1",
"description": "TypeScript definitions for culori",

@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/culori",

"dependencies": {},
"typesPublisherContentHash": "0fd2ed6db724ffbdd8fa77d14720def244b4272ba6d5c38d73bb49e6ac31557f",
"typeScriptVersion": "4.2"
"typesPublisherContentHash": "7563258f59338b4ea17e8df0159f476e548f8ed18259bada071556243734d7ed",
"typeScriptVersion": "4.3"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Tue, 14 Mar 2023 22:02:38 GMT
* Last updated: Mon, 04 Sep 2023 15:41:31 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

@@ -1,6 +0,6 @@

import { A98 } from './types';
import { Xyz50 } from '../xyz50/types';
import { Xyz50 } from "../xyz50/types";
import { A98 } from "./types";
declare function convertA98ToXyz65(color: Omit<A98, 'mode'>): Xyz50;
declare function convertA98ToXyz65(color: Omit<A98, "mode">): Xyz50;
export default convertA98ToXyz65;

@@ -1,6 +0,6 @@

import { Xyz65 } from '../xyz65/types';
import { A98 } from './types';
import { Xyz65 } from "../xyz65/types";
import { A98 } from "./types";
declare function convertXyz65ToA98(color: Omit<Xyz65, 'mode'>): A98;
declare function convertXyz65ToA98(color: Omit<Xyz65, "mode">): A98;
export default convertXyz65ToA98;

@@ -1,14 +0,14 @@

import rgb from '../rgb/definition';
import convertA98ToXyz65 from './convertA98ToXyz65';
import convertXyz65ToA98 from './convertXyz65ToA98';
import { Rgb } from '../rgb/types';
import { A98 } from './types';
import rgb from "../rgb/definition";
import { Rgb } from "../rgb/types";
import convertA98ToXyz65 from "./convertA98ToXyz65";
import convertXyz65ToA98 from "./convertXyz65ToA98";
import { A98 } from "./types";
interface A98DefinitionMixin {
mode: 'a98';
parse: ['a98-rgb'];
serialize: 'a98-rgb';
mode: "a98";
parse: ["a98-rgb"];
serialize: "a98-rgb";
fromMode: {
rgb: (color: Omit<Rgb, 'mode'>) => A98;
rgb: (color: Omit<Rgb, "mode">) => A98;
xyz65: typeof convertXyz65ToA98;

@@ -18,3 +18,3 @@ };

toMode: {
rgb: (color: Omit<A98, 'mode'>) => Rgb;
rgb: (color: Omit<A98, "mode">) => Rgb;
xyz65: typeof convertA98ToXyz65;

@@ -21,0 +21,0 @@ };

export interface A98 {
mode: 'a98';
mode: "a98";
r: number;

@@ -4,0 +4,0 @@ g: number;

@@ -1,3 +0,3 @@

import { Color, FindColorByMode, Mode, NonEmptyArray, OverridesFunction, OverridesObject } from './common';
import { Rgb } from './rgb/types';
import { Color, FindColorByMode, Mode, NonEmptyArray, OverridesFunction, OverridesObject } from "./common";
import { Rgb } from "./rgb/types";

@@ -11,3 +11,3 @@ declare function averageAngle(val: number[]): number;

mode?: undefined,
overrides?: OverridesFunction | OverridesObject<'rgb'>,
overrides?: OverridesFunction | OverridesObject<"rgb">,
): Rgb;

@@ -14,0 +14,0 @@ declare function average<M extends Mode>(

@@ -1,17 +0,17 @@

import { Color, FindColorByMode, Mode, NonEmptyArray } from './common';
import { Rgb } from './rgb/types';
import { Color, FindColorByMode, Mode, NonEmptyArray } from "./common";
import { Rgb } from "./rgb/types";
type BlendTypes =
| 'normal'
| 'multiply'
| 'screen'
| 'hard-light'
| 'overlay'
| 'darken'
| 'lighten'
| 'color-dodge'
| 'color-burn'
| 'soft-light'
| 'difference'
| 'exclusion';
| "normal"
| "multiply"
| "screen"
| "hard-light"
| "overlay"
| "darken"
| "lighten"
| "color-dodge"
| "color-burn"
| "soft-light"
| "difference"
| "exclusion";

@@ -18,0 +18,0 @@ type BlendingFunction = (backdrop: number, source: number) => number;

@@ -1,2 +0,2 @@

import { Color, Mode } from './common';
import { Color, Mode } from "./common";

@@ -3,0 +3,0 @@ export function clampRgb(color: string): Color | undefined;

@@ -1,29 +0,29 @@

import { A98 } from './a98/types';
import { Cubehelix } from './cubehelix/types';
import { Dlab } from './dlab/types';
import { Dlch } from './dlch/types';
import { Hsi } from './hsi/types';
import { Hsl } from './hsl/types';
import { Hsv } from './hsv/types';
import { Hwb } from './hwb/types';
import { Jab } from './jab/types';
import { Jch } from './jch/types';
import { Lab } from './lab/types';
import { Lab65 } from './lab65/types';
import { Lch } from './lch/types';
import { Lch65 } from './lch65/types';
import { Lchuv } from './lchuv/types';
import { Lrgb } from './lrgb/types';
import { Luv } from './luv/types';
import { Okhsl } from './okhsl/types';
import { Okhsv } from './okhsv/types';
import { Oklab } from './oklab/types';
import { Oklch } from './oklch/types';
import { P3 } from './p3/types';
import { Prophoto } from './prophoto/types';
import { Rec2020 } from './rec2020/types';
import { Rgb } from './rgb/types';
import { Xyz50 } from './xyz50/types';
import { Xyz65 } from './xyz65/types';
import { Yiq } from './yiq/types';
import { A98 } from "./a98/types";
import { Cubehelix } from "./cubehelix/types";
import { Dlab } from "./dlab/types";
import { Dlch } from "./dlch/types";
import { Hsi } from "./hsi/types";
import { Hsl } from "./hsl/types";
import { Hsv } from "./hsv/types";
import { Hwb } from "./hwb/types";
import { Jab } from "./jab/types";
import { Jch } from "./jch/types";
import { Lab } from "./lab/types";
import { Lab65 } from "./lab65/types";
import { Lch } from "./lch/types";
import { Lch65 } from "./lch65/types";
import { Lchuv } from "./lchuv/types";
import { Lrgb } from "./lrgb/types";
import { Luv } from "./luv/types";
import { Okhsl } from "./okhsl/types";
import { Okhsv } from "./okhsv/types";
import { Oklab } from "./oklab/types";
import { Oklch } from "./oklch/types";
import { P3 } from "./p3/types";
import { Prophoto } from "./prophoto/types";
import { Rec2020 } from "./rec2020/types";
import { Rgb } from "./rgb/types";
import { Xyz50 } from "./xyz50/types";
import { Xyz65 } from "./xyz65/types";
import { Yiq } from "./yiq/types";

@@ -62,12 +62,14 @@ export type Color =

export type Mode = Color['mode'];
export type Mode = Color["mode"];
export type FindColorByMode<M extends Mode, C extends Color = Color> = C extends { mode: M } ? C : never;
export type TakeColorChannels<M extends Mode> = Omit<FindColorByMode<M>, 'mode'>;
export type TakeColorChannels<M extends Mode> = Omit<FindColorByMode<M>, "mode">;
export type OverridesFunction = (values: number[], channel: string) => number;
export type OverridesObject<M extends Mode> = Partial<{
[P in keyof TakeColorChannels<M>]: OverridesFunction;
}>;
export type OverridesObject<M extends Mode> = Partial<
{
[P in keyof TakeColorChannels<M>]: OverridesFunction;
}
>;

@@ -1,4 +0,4 @@

import { Color, FindColorByMode, Mode } from './common';
import { Color, FindColorByMode, Mode } from "./common";
export interface ConvertFn<M extends Mode = 'rgb'> {
export interface ConvertFn<M extends Mode = "rgb"> {
(color: undefined, target_mode?: M): undefined;

@@ -5,0 +5,0 @@ (color: Color, target_mode?: M): FindColorByMode<M>;

@@ -1,6 +0,6 @@

import { Cubehelix } from './types';
import { Rgb } from '../rgb/types';
import { Rgb } from "../rgb/types";
import { Cubehelix } from "./types";
declare function convertCubehelixToRgb(color: Omit<Cubehelix, 'mode'>): Rgb;
declare function convertCubehelixToRgb(color: Omit<Cubehelix, "mode">): Rgb;
export default convertCubehelixToRgb;

@@ -1,6 +0,6 @@

import { Rgb } from '../rgb/types';
import { Cubehelix } from './types';
import { Rgb } from "../rgb/types";
import { Cubehelix } from "./types";
declare function convertRgbToCubehelix(color: Omit<Rgb, 'mode'>): Cubehelix;
declare function convertRgbToCubehelix(color: Omit<Rgb, "mode">): Cubehelix;
export default convertRgbToCubehelix;

@@ -1,14 +0,14 @@

import { fixupHueShorter } from '../fixup/hue';
import { fixupAlpha } from '../fixup/alpha';
import { interpolatorLinear } from '../interpolate/linear';
import convertRgbToCubehelix from './convertRgbToCubehelix';
import convertCubehelixToRgb from './convertCubehelixToRgb';
import { differenceHueSaturation } from '../difference';
import { averageAngle } from '../average';
import { averageAngle } from "../average";
import { differenceHueSaturation } from "../difference";
import { fixupAlpha } from "../fixup/alpha";
import { fixupHueShorter } from "../fixup/hue";
import { interpolatorLinear } from "../interpolate/linear";
import convertCubehelixToRgb from "./convertCubehelixToRgb";
import convertRgbToCubehelix from "./convertRgbToCubehelix";
declare const definition: {
mode: 'cubehelix';
channels: ['h', 's', 'l', 'alpha'];
parse: ['--cubehelix'];
serialize: '--cubehelix';
mode: "cubehelix";
channels: ["h", "s", "l", "alpha"];
parse: ["--cubehelix"];
serialize: "--cubehelix";

@@ -15,0 +15,0 @@ ranges: {

export interface Cubehelix {
mode: 'cubehelix';
mode: "cubehelix";
h?: number;

@@ -4,0 +4,0 @@ s: number | undefined;

@@ -1,2 +0,2 @@

import { Color } from './common';
import { Color } from "./common";

@@ -9,2 +9,2 @@ type FilterDeficiencyFactory = (severity: number) => <C extends Color>(color: C) => C;

export { filterDeficiencyProt, filterDeficiencyDeuter, filterDeficiencyTrit };
export { filterDeficiencyDeuter, filterDeficiencyProt, filterDeficiencyTrit };

@@ -1,2 +0,2 @@

import { Color, Mode } from './common';
import { Color, Mode } from "./common";

@@ -26,6 +26,2 @@ declare function differenceHueChroma(colorA: { h: number; c: number }, colorB: { h: number; c: number }): number;

export {
differenceHueChroma,
differenceHueSaturation,
differenceHueNaive,
differenceEuclidean,
differenceCie76,

@@ -35,4 +31,8 @@ differenceCie94,

differenceCmc,
differenceEuclidean,
differenceHueChroma,
differenceHueNaive,
differenceHueSaturation,
differenceHyab,
differenceKotsarenkoRamos,
};

@@ -1,3 +0,3 @@

import { Color } from './common';
import { Color } from "./common";
export default function displayable(color: Color | string): boolean;

@@ -1,24 +0,24 @@

import { interpolatorLinear } from '../interpolate/linear';
import { fixupAlpha } from '../fixup/alpha';
import { Dlab } from './types';
import { Lab65 } from '../lab65/types';
import { Rgb } from '../rgb/types';
import { fixupAlpha } from "../fixup/alpha";
import { interpolatorLinear } from "../interpolate/linear";
import { Lab65 } from "../lab65/types";
import { Rgb } from "../rgb/types";
import { Dlab } from "./types";
declare const definition: {
mode: 'dlab';
mode: "dlab";
parse: ['--din99o-lab'];
serialize: '--din99o-lab';
parse: ["--din99o-lab"];
serialize: "--din99o-lab";
toMode: {
lab65: (c: Omit<Dlab, 'mode'>) => Lab65;
rgb: (c: Omit<Dlab, 'mode'>) => Rgb;
lab65: (c: Omit<Dlab, "mode">) => Lab65;
rgb: (c: Omit<Dlab, "mode">) => Rgb;
};
fromMode: {
lab65: (c: Omit<Lab65, 'mode'>) => Dlab;
rgb: (c: Omit<Rgb, 'mode'>) => Dlab;
lab65: (c: Omit<Lab65, "mode">) => Dlab;
rgb: (c: Omit<Rgb, "mode">) => Dlab;
};
channels: ['l', 'a', 'b', 'alpha'];
channels: ["l", "a", "b", "alpha"];

@@ -25,0 +25,0 @@ ranges: {

export interface Dlab {
mode: 'dlab';
mode: "dlab";
l: number;

@@ -4,0 +4,0 @@ a: number;

@@ -1,6 +0,6 @@

import { Dlch } from './types';
import { Lab65 } from '../lab65/types';
import { Lab65 } from "../lab65/types";
import { Dlch } from "./types";
declare function convertDlchToLab65(color: Omit<Dlch, 'mode'>): Lab65;
declare function convertDlchToLab65(color: Omit<Dlch, "mode">): Lab65;
export default convertDlchToLab65;

@@ -1,6 +0,6 @@

import { Lab65 } from '../lab65/types';
import { Dlch } from './types';
import { Lab65 } from "../lab65/types";
import { Dlch } from "./types";
declare function convertLab65ToDlch(color: Omit<Lab65, 'mode'>): Dlch;
declare function convertLab65ToDlch(color: Omit<Lab65, "mode">): Dlch;
export default convertLab65ToDlch;

@@ -1,23 +0,23 @@

import convertDlchToLab65 from './convertDlchToLab65';
import convertLab65ToDlch from './convertLab65ToDlch';
import convertDlchToLab65 from "./convertDlchToLab65";
import convertLab65ToDlch from "./convertLab65ToDlch";
import { fixupHueShorter } from '../fixup/hue';
import { fixupAlpha } from '../fixup/alpha';
import { interpolatorLinear } from '../interpolate/linear';
import { differenceHueChroma } from '../difference';
import { averageAngle } from '../average';
import { Dlab } from '../dlab/types';
import { Dlch } from './types';
import { Rgb } from '../rgb/types';
import { averageAngle } from "../average";
import { differenceHueChroma } from "../difference";
import { Dlab } from "../dlab/types";
import { fixupAlpha } from "../fixup/alpha";
import { fixupHueShorter } from "../fixup/hue";
import { interpolatorLinear } from "../interpolate/linear";
import { Rgb } from "../rgb/types";
import { Dlch } from "./types";
declare const definition: {
mode: 'dlch';
mode: "dlch";
parse: ['--din99o-lch'];
serialize: '--din99o-lch';
parse: ["--din99o-lch"];
serialize: "--din99o-lch";
toMode: {
lab65: typeof convertDlchToLab65;
dlab: (c: Omit<Dlch, 'mode'>) => Dlab;
rgb: (c: Omit<Dlch, 'mode'>) => Rgb;
dlab: (c: Omit<Dlch, "mode">) => Dlab;
rgb: (c: Omit<Dlch, "mode">) => Rgb;
};

@@ -27,7 +27,7 @@

lab65: typeof convertLab65ToDlch;
dlab: (c: Omit<Dlab, 'mode'>) => Dlch;
rgb: (c: Omit<Rgb, 'mode'>) => Dlch;
dlab: (c: Omit<Dlab, "mode">) => Dlch;
rgb: (c: Omit<Rgb, "mode">) => Dlch;
};
channels: ['l', 'c', 'h', 'alpha'];
channels: ["l", "c", "h", "alpha"];

@@ -34,0 +34,0 @@ ranges: {

export interface Dlch {
mode: 'dlch';
mode: "dlch";
l: number;

@@ -4,0 +4,0 @@ c: number;

@@ -1,3 +0,3 @@

import { Mode } from './common';
import { ColorToSameColorMapper } from './map';
import { Mode } from "./common";
import { ColorToSameColorMapper } from "./map";

@@ -17,7 +17,7 @@ type Filter = (amt?: number, mode?: Mode) => ColorToSameColorMapper;

filterContrast,
filterSepia,
filterSaturate,
filterGrayscale,
filterHueRotate,
filterInvert,
filterHueRotate,
filterSaturate,
filterSepia,
};

@@ -6,2 +6,2 @@ declare function fixupHueShorter(arr: number[]): number[];

export { fixupHueShorter, fixupHueLonger, fixupHueIncreasing, fixupHueDecreasing };
export { fixupHueDecreasing, fixupHueIncreasing, fixupHueLonger, fixupHueShorter };

@@ -1,10 +0,10 @@

import { Color } from './common';
import { Rgb } from './rgb/types';
import { Hsl } from './hsl/types';
import { Color } from "./common";
import { Hsl } from "./hsl/types";
import { Rgb } from "./rgb/types";
export function serializeHex(color: undefined): undefined;
export function serializeHex(color: Omit<Rgb, 'alpha'>): string;
export function serializeHex(color: Omit<Rgb, "alpha">): string;
export function serializeHex8(color: undefined): undefined;
export function serializeHex8(color: Omit<Rgb, 'mode'>): string;
export function serializeHex8(color: Omit<Rgb, "mode">): string;

@@ -11,0 +11,0 @@ export function serializeRgb(color: undefined): undefined;

@@ -1,4 +0,4 @@

import { Hsi } from './types';
import { Rgb } from '../rgb/types';
import { Rgb } from "../rgb/types";
import { Hsi } from "./types";
export default function convertHsiToRgb(color: Omit<Hsi, 'mode'>): Rgb;
export default function convertHsiToRgb(color: Omit<Hsi, "mode">): Rgb;

@@ -1,4 +0,4 @@

import { Rgb } from '../rgb/types';
import { Hsi } from './types';
import { Rgb } from "../rgb/types";
import { Hsi } from "./types";
export default function convertRgbToHsi(color: Omit<Rgb, 'mode'>): Hsi;
export default function convertRgbToHsi(color: Omit<Rgb, "mode">): Hsi;

@@ -1,11 +0,11 @@

import convertHsiToRgb from './convertHsiToRgb';
import convertRgbToHsi from './convertRgbToHsi';
import { fixupHueShorter } from '../fixup/hue';
import { fixupAlpha } from '../fixup/alpha';
import { interpolatorLinear } from '../interpolate/linear';
import { differenceHueSaturation } from '../difference';
import { averageAngle } from '../average';
import { averageAngle } from "../average";
import { differenceHueSaturation } from "../difference";
import { fixupAlpha } from "../fixup/alpha";
import { fixupHueShorter } from "../fixup/hue";
import { interpolatorLinear } from "../interpolate/linear";
import convertHsiToRgb from "./convertHsiToRgb";
import convertRgbToHsi from "./convertRgbToHsi";
declare const definition: {
mode: 'hsi';
mode: "hsi";

@@ -16,4 +16,4 @@ toMode: {

parse: ['--hsi'];
serialize: '--hsi';
parse: ["--hsi"];
serialize: "--hsi";

@@ -24,3 +24,3 @@ fromMode: {

channels: ['h', 's', 'i', 'alpha'];
channels: ["h", "s", "i", "alpha"];

@@ -27,0 +27,0 @@ ranges: {

export interface Hsi {
mode: 'hsi';
mode: "hsi";
h?: number;

@@ -4,0 +4,0 @@ s: number;

@@ -1,4 +0,4 @@

import { Hsl } from './types';
import { Rgb } from '../rgb/types';
import { Rgb } from "../rgb/types";
import { Hsl } from "./types";
export default function convertHslToRgb(color: Omit<Hsl, 'mode'>): Rgb;
export default function convertHslToRgb(color: Omit<Hsl, "mode">): Rgb;

@@ -1,4 +0,4 @@

import { Rgb } from '../rgb/types';
import { Hsl } from './types';
import { Rgb } from "../rgb/types";
import { Hsl } from "./types";
export default function convertRgbToHsl(color: Omit<Rgb, 'mode'>): Hsl;
export default function convertRgbToHsl(color: Omit<Rgb, "mode">): Hsl;

@@ -1,13 +0,13 @@

import convertHslToRgb from './convertHslToRgb';
import convertRgbToHsl from './convertRgbToHsl';
import parseHsl from './parseHsl';
import { fixupHueShorter } from '../fixup/hue';
import { fixupAlpha } from '../fixup/alpha';
import { interpolatorLinear } from '../interpolate/linear';
import { differenceHueSaturation } from '../difference';
import { averageAngle } from '../average';
import { Hsl } from './types';
import { averageAngle } from "../average";
import { differenceHueSaturation } from "../difference";
import { fixupAlpha } from "../fixup/alpha";
import { fixupHueShorter } from "../fixup/hue";
import { interpolatorLinear } from "../interpolate/linear";
import convertHslToRgb from "./convertHslToRgb";
import convertRgbToHsl from "./convertRgbToHsl";
import parseHsl from "./parseHsl";
import { Hsl } from "./types";
declare const definition: {
mode: 'hsl';
mode: "hsl";

@@ -22,3 +22,3 @@ toMode: {

channels: ['h', 's', 'l', 'alpha'];
channels: ["h", "s", "l", "alpha"];

@@ -30,3 +30,3 @@ ranges: {

parse: [typeof parseHsl];
serialize: (c: Omit<Hsl, 'mode'>) => string;
serialize: (c: Omit<Hsl, "mode">) => string;

@@ -33,0 +33,0 @@ interpolate: {

@@ -1,3 +0,3 @@

import { Hsl } from './types';
import { Hsl } from "./types";
export default function parseHsl(color: string): Hsl;
export interface Hsl {
mode: 'hsl';
mode: "hsl";
h?: number;

@@ -4,0 +4,0 @@ s: number;

@@ -1,4 +0,4 @@

import { Hsv } from './types';
import { Rgb } from '../rgb/types';
import { Rgb } from "../rgb/types";
import { Hsv } from "./types";
export default function convertHsvToRgb(color: Omit<Hsv, 'mode'>): Rgb;
export default function convertHsvToRgb(color: Omit<Hsv, "mode">): Rgb;

@@ -1,4 +0,4 @@

import { Rgb } from '../rgb/types';
import { Hsv } from './types';
import { Rgb } from "../rgb/types";
import { Hsv } from "./types";
export default function convertRgbToHsv(color: Omit<Rgb, 'mode'>): Hsv;
export default function convertRgbToHsv(color: Omit<Rgb, "mode">): Hsv;

@@ -1,11 +0,11 @@

import convertHsvToRgb from './convertHsvToRgb';
import convertRgbToHsv from './convertRgbToHsv';
import { fixupHueShorter } from '../fixup/hue';
import { fixupAlpha } from '../fixup/alpha';
import { interpolatorLinear } from '../interpolate/linear';
import { differenceHueSaturation } from '../difference';
import { averageAngle } from '../average';
import { averageAngle } from "../average";
import { differenceHueSaturation } from "../difference";
import { fixupAlpha } from "../fixup/alpha";
import { fixupHueShorter } from "../fixup/hue";
import { interpolatorLinear } from "../interpolate/linear";
import convertHsvToRgb from "./convertHsvToRgb";
import convertRgbToHsv from "./convertRgbToHsv";
declare const definition: {
mode: 'hsv';
mode: "hsv";

@@ -16,4 +16,4 @@ toMode: {

parse: ['--hsv'];
serialize: '--hsv';
parse: ["--hsv"];
serialize: "--hsv";

@@ -24,3 +24,3 @@ fromMode: {

channels: ['h', 's', 'v', 'alpha'];
channels: ["h", "s", "v", "alpha"];

@@ -27,0 +27,0 @@ ranges: {

export interface Hsv {
mode: 'hsv';
mode: "hsv";
h?: number;

@@ -4,0 +4,0 @@ s: number;

@@ -1,4 +0,4 @@

import { Hwb } from './types';
import { Rgb } from '../rgb/types';
import { Rgb } from "../rgb/types";
import { Hwb } from "./types";
export default function convertHwbToRgb(color: Hwb): Rgb;

@@ -1,4 +0,4 @@

import { Rgb } from '../rgb/types';
import { Hwb } from './types';
import { Rgb } from "../rgb/types";
import { Hwb } from "./types";
export default function convertRgbToHwb(color: Omit<Rgb, 'mode'>): Hwb;
export default function convertRgbToHwb(color: Omit<Rgb, "mode">): Hwb;

@@ -1,13 +0,13 @@

import convertHwbToRgb from './convertHwbToRgb';
import convertRgbToHwb from './convertRgbToHwb';
import parseHwb from './parseHwb';
import { fixupHueShorter } from '../fixup/hue';
import { fixupAlpha } from '../fixup/alpha';
import { interpolatorLinear } from '../interpolate/linear';
import { differenceHueNaive } from '../difference';
import { averageAngle } from '../average';
import { Hwb } from './types';
import { averageAngle } from "../average";
import { differenceHueNaive } from "../difference";
import { fixupAlpha } from "../fixup/alpha";
import { fixupHueShorter } from "../fixup/hue";
import { interpolatorLinear } from "../interpolate/linear";
import convertHwbToRgb from "./convertHwbToRgb";
import convertRgbToHwb from "./convertRgbToHwb";
import parseHwb from "./parseHwb";
import { Hwb } from "./types";
declare const definition: {
mode: 'hwb';
mode: "hwb";

@@ -22,3 +22,3 @@ toMode: {

channels: ['h', 'w', 'b', 'alpha'];
channels: ["h", "w", "b", "alpha"];

@@ -30,3 +30,3 @@ ranges: {

parse: [typeof parseHwb];
serialize: (c: Omit<Hwb, 'mode'>) => string;
serialize: (c: Omit<Hwb, "mode">) => string;

@@ -33,0 +33,0 @@ interpolate: {

@@ -1,2 +0,2 @@

import { Hwb } from './types';
import { Hwb } from "./types";

@@ -3,0 +3,0 @@ declare function parseHwb(color: string): Hwb | undefined;

export interface Hwb {
mode: 'hwb';
mode: "hwb";
h?: number;

@@ -4,0 +4,0 @@ w: number;

@@ -1,3 +0,3 @@

import { Color, FindColorByMode, Mode, OverridesObject, TakeColorChannels } from '../common';
import { MapFn } from '../map';
import { Color, FindColorByMode, Mode, OverridesObject, TakeColorChannels } from "../common";
import { MapFn } from "../map";

@@ -31,3 +31,3 @@ type ColorPosition = [Color | string, number];

declare function interpolate<M extends Mode = 'rgb'>(
declare function interpolate<M extends Mode = "rgb">(
colors: ColorsParameter,

@@ -34,0 +34,0 @@ mode?: M,

@@ -1,3 +0,3 @@

import { interpolatorPiecewise } from './piecewise';
import { interpolatorPiecewise } from "./piecewise";
export const interpolatorLinear: ReturnType<typeof interpolatorPiecewise>;

@@ -1,2 +0,2 @@

import { Interpolator } from './Interpolator';
import { Interpolator } from "./Interpolator";

@@ -3,0 +3,0 @@ export const interpolatorSplineBasis: Interpolator;

@@ -1,2 +0,2 @@

import { Interpolator } from './Interpolator';
import { Interpolator } from "./Interpolator";

@@ -3,0 +3,0 @@ export const interpolatorSplineMonotone: Interpolator;

@@ -1,4 +0,4 @@

import { Interpolator } from './Interpolator';
import { Interpolator } from "./Interpolator";
export const interpolatorSplineNatural: Interpolator;
export const interpolatorSplineNaturalClosed: Interpolator;

@@ -1,6 +0,6 @@

import { Jab } from './types';
import { Rgb } from '../rgb/types';
import { Rgb } from "../rgb/types";
import { Jab } from "./types";
declare function convertJabToRgb(color: Omit<Jab, 'mode'>): Rgb;
declare function convertJabToRgb(color: Omit<Jab, "mode">): Rgb;
export default convertJabToRgb;

@@ -1,6 +0,6 @@

import { Jab } from './types';
import { Xyz65 } from '../xyz65/types';
import { Xyz65 } from "../xyz65/types";
import { Jab } from "./types";
declare function convertJabToXyz65(color: Omit<Jab, 'mode'>): Xyz65;
declare function convertJabToXyz65(color: Omit<Jab, "mode">): Xyz65;
export default convertJabToXyz65;

@@ -1,6 +0,6 @@

import { Rgb } from '../rgb/types';
import { Jab } from './types';
import { Rgb } from "../rgb/types";
import { Jab } from "./types";
declare function convertRgbToJab(color: Omit<Rgb, 'mode'>): Jab;
declare function convertRgbToJab(color: Omit<Rgb, "mode">): Jab;
export default convertRgbToJab;

@@ -1,6 +0,6 @@

import { Xyz65 } from '../xyz65/types';
import { Jab } from './types';
import { Xyz65 } from "../xyz65/types";
import { Jab } from "./types";
declare function convertXyz65ToJab(color: Omit<Xyz65, 'mode'>): Jab;
declare function convertXyz65ToJab(color: Omit<Xyz65, "mode">): Jab;
export default convertXyz65ToJab;

@@ -1,15 +0,15 @@

import convertXyz65ToJab from './convertXyz65ToJab';
import convertJabToXyz65 from './convertJabToXyz65';
import convertRgbToJab from './convertRgbToJab';
import convertJabToRgb from './convertJabToRgb';
import convertJabToRgb from "./convertJabToRgb";
import convertJabToXyz65 from "./convertJabToXyz65";
import convertRgbToJab from "./convertRgbToJab";
import convertXyz65ToJab from "./convertXyz65ToJab";
import { interpolatorLinear } from '../interpolate/linear';
import { fixupAlpha } from '../fixup/alpha';
import { fixupAlpha } from "../fixup/alpha";
import { interpolatorLinear } from "../interpolate/linear";
declare const definition: {
mode: 'jab';
channels: ['j', 'a', 'b', 'alpha'];
mode: "jab";
channels: ["j", "a", "b", "alpha"];
parse: ['--jzazbz'];
serialize: '--jzazbz';
parse: ["--jzazbz"];
serialize: "--jzazbz";

@@ -16,0 +16,0 @@ fromMode: {

export interface Jab {
mode: 'jab';
mode: "jab";
j: number;

@@ -4,0 +4,0 @@ a: number;

@@ -1,6 +0,6 @@

import { Jab } from '../jab/types';
import { Jch } from './types';
import { Jab } from "../jab/types";
import { Jch } from "./types";
declare function convertJabToJch(color: Omit<Jab, 'mode'>): Jch;
declare function convertJabToJch(color: Omit<Jab, "mode">): Jch;
export default convertJabToJch;

@@ -1,6 +0,6 @@

import { Jch } from './types';
import { Jab } from '../jab/types';
import { Jab } from "../jab/types";
import { Jch } from "./types";
declare function convertJchToJab(color: Omit<Jch, 'mode'>): Jab;
declare function convertJchToJab(color: Omit<Jch, "mode">): Jab;
export default convertJchToJab;

@@ -1,29 +0,29 @@

import convertJabToJch from './convertJabToJch';
import convertJchToJab from './convertJchToJab';
import convertJabToJch from "./convertJabToJch";
import convertJchToJab from "./convertJchToJab";
import { fixupHueShorter } from '../fixup/hue';
import { fixupAlpha } from '../fixup/alpha';
import { interpolatorLinear } from '../interpolate/linear';
import { differenceHueChroma } from '../difference';
import { averageAngle } from '../average';
import { Rgb } from '../rgb/types';
import { Jch } from './types';
import { averageAngle } from "../average";
import { differenceHueChroma } from "../difference";
import { fixupAlpha } from "../fixup/alpha";
import { fixupHueShorter } from "../fixup/hue";
import { interpolatorLinear } from "../interpolate/linear";
import { Rgb } from "../rgb/types";
import { Jch } from "./types";
declare const definition: {
mode: 'jch';
mode: "jch";
parse: ['--jzczhz'];
serialize: '--jzczhz';
parse: ["--jzczhz"];
serialize: "--jzczhz";
toMode: {
jab: typeof convertJchToJab;
rgb: (c: Omit<Jch, 'mode'>) => Rgb;
rgb: (c: Omit<Jch, "mode">) => Rgb;
};
fromMode: {
rgb: (c: Omit<Rgb, 'mode'>) => Jch;
rgb: (c: Omit<Rgb, "mode">) => Jch;
jab: typeof convertJabToJch;
};
channels: ['j', 'c', 'h', 'alpha'];
channels: ["j", "c", "h", "alpha"];

@@ -30,0 +30,0 @@ ranges: {

export interface Jch {
mode: 'jch';
mode: "jch";
j: number;

@@ -4,0 +4,0 @@ c: number;

@@ -1,6 +0,6 @@

import { Rgb } from '../rgb/types';
import { Lab } from './types';
import { Rgb } from "../rgb/types";
import { Lab } from "./types";
declare function convertLabToRgb(color: Omit<Lab, 'mode'>): Rgb;
declare function convertLabToRgb(color: Omit<Lab, "mode">): Rgb;
export default convertLabToRgb;

@@ -1,6 +0,6 @@

import { Lab } from './types';
import { Xyz50 } from '../xyz50/types';
import { Xyz50 } from "../xyz50/types";
import { Lab } from "./types";
declare function convertLabToXyz50(color: Omit<Lab, 'mode'>): Xyz50;
declare function convertLabToXyz50(color: Omit<Lab, "mode">): Xyz50;
export default convertLabToXyz50;

@@ -1,6 +0,6 @@

import { Rgb } from '../rgb/types';
import { Lab } from './types';
import { Rgb } from "../rgb/types";
import { Lab } from "./types";
declare function convertRgbToLab(color: Omit<Rgb, 'mode'>): Lab;
declare function convertRgbToLab(color: Omit<Rgb, "mode">): Lab;
export default convertRgbToLab;

@@ -1,6 +0,6 @@

import { Xyz50 } from '../xyz50/types';
import { Lab } from './types';
import { Xyz50 } from "../xyz50/types";
import { Lab } from "./types";
declare function convertXyz50ToLab(color: Omit<Xyz50, 'mode'>): Lab;
declare function convertXyz50ToLab(color: Omit<Xyz50, "mode">): Lab;
export default convertXyz50ToLab;

@@ -1,12 +0,12 @@

import convertLabToRgb from './convertLabToRgb';
import convertLabToXyz50 from './convertLabToXyz50';
import convertRgbToLab from './convertRgbToLab';
import convertXyz50ToLab from './convertXyz50ToLab';
import parseLab from './parseLab';
import { interpolatorLinear } from '../interpolate/linear';
import { fixupAlpha } from '../fixup/alpha';
import { Lab } from './types';
import { fixupAlpha } from "../fixup/alpha";
import { interpolatorLinear } from "../interpolate/linear";
import convertLabToRgb from "./convertLabToRgb";
import convertLabToXyz50 from "./convertLabToXyz50";
import convertRgbToLab from "./convertRgbToLab";
import convertXyz50ToLab from "./convertXyz50ToLab";
import parseLab from "./parseLab";
import { Lab } from "./types";
declare const definition: {
mode: 'lab';
mode: "lab";

@@ -23,3 +23,3 @@ toMode: {

channels: ['l', 'a', 'b', 'alpha'];
channels: ["l", "a", "b", "alpha"];

@@ -33,3 +33,3 @@ ranges: {

parse: [typeof parseLab];
serialize: (c: Omit<Lab, 'mode'>) => string;
serialize: (c: Omit<Lab, "mode">) => string;

@@ -36,0 +36,0 @@ interpolate: {

@@ -1,2 +0,2 @@

import { Lab } from './types';
import { Lab } from "./types";

@@ -3,0 +3,0 @@ declare function parseLab(color: string): Lab;

export interface Lab {
mode: 'lab';
mode: "lab";
l: number;

@@ -4,0 +4,0 @@ a: number;

@@ -1,6 +0,6 @@

import { Lab65 } from './types';
import { Rgb } from '../rgb/types';
import { Rgb } from "../rgb/types";
import { Lab65 } from "./types";
declare function convertLab65ToRgb(color: Omit<Lab65, 'mode'>): Rgb;
declare function convertLab65ToRgb(color: Omit<Lab65, "mode">): Rgb;
export default convertLab65ToRgb;

@@ -1,6 +0,6 @@

import { Lab65 } from './types';
import { Xyz65 } from '../xyz65/types';
import { Xyz65 } from "../xyz65/types";
import { Lab65 } from "./types";
declare function convertLab65ToXyz65(color: Omit<Lab65, 'mode'>): Xyz65;
declare function convertLab65ToXyz65(color: Omit<Lab65, "mode">): Xyz65;
export default convertLab65ToXyz65;

@@ -1,6 +0,6 @@

import { Rgb } from '../rgb/types';
import { Lab65 } from './types';
import { Rgb } from "../rgb/types";
import { Lab65 } from "./types";
declare function convertRgbToLab65(color: Omit<Rgb, 'mode'>): Lab65;
declare function convertRgbToLab65(color: Omit<Rgb, "mode">): Lab65;
export default convertRgbToLab65;

@@ -1,6 +0,6 @@

import { Xyz65 } from '../xyz65/types';
import { Lab65 } from './types';
import { Xyz65 } from "../xyz65/types";
import { Lab65 } from "./types";
declare function convertXyz65ToLab65(color: Omit<Xyz65, 'mode'>): Lab65;
declare function convertXyz65ToLab65(color: Omit<Xyz65, "mode">): Lab65;
export default convertXyz65ToLab65;

@@ -1,12 +0,12 @@

import convertLab65ToRgb from './convertLab65ToRgb';
import convertLab65ToXyz65 from './convertLab65ToXyz65';
import convertRgbToLab65 from './convertRgbToLab65';
import convertXyz65ToLab65 from './convertXyz65ToLab65';
import lab from '../lab/definition';
import lab from "../lab/definition";
import convertLab65ToRgb from "./convertLab65ToRgb";
import convertLab65ToXyz65 from "./convertLab65ToXyz65";
import convertRgbToLab65 from "./convertRgbToLab65";
import convertXyz65ToLab65 from "./convertXyz65ToLab65";
interface Lab65DefinitionMixin {
mode: 'lab65';
mode: "lab65";
parse: ['--lab-d65'];
serialize: '--lab-d65';
parse: ["--lab-d65"];
serialize: "--lab-d65";

@@ -13,0 +13,0 @@ toMode: {

export interface Lab65 {
mode: 'lab65';
mode: "lab65";
l: number;

@@ -4,0 +4,0 @@ a: number;

@@ -1,6 +0,6 @@

import { Lab } from '../lab/types';
import { FindColorByMode } from '../common';
import { FindColorByMode } from "../common";
import { Lab } from "../lab/types";
declare function convertLabToLch<M extends 'dlch' | 'lch65' | 'oklch' | 'lch' = 'lch'>(
color: Omit<Lab, 'mode'>,
declare function convertLabToLch<M extends "dlch" | "lch65" | "oklch" | "lch" = "lch">(
color: Omit<Lab, "mode">,
mode?: M,

@@ -7,0 +7,0 @@ ): FindColorByMode<M>;

@@ -1,6 +0,6 @@

import { Lch } from './types';
import { Lab } from '../lab/types';
import { Lab } from "../lab/types";
import { Lch } from "./types";
declare function convertLchToLab(color: Omit<Lch, 'mode'>): Lab;
declare function convertLchToLab(color: Omit<Lch, "mode">): Lab;
export default convertLchToLab;

@@ -1,26 +0,26 @@

import convertLabToLch from './convertLabToLch';
import convertLchToLab from './convertLchToLab';
import parseLch from './parseLch';
import { fixupHueShorter } from '../fixup/hue';
import { fixupAlpha } from '../fixup/alpha';
import { interpolatorLinear } from '../interpolate/linear';
import { differenceHueChroma } from '../difference';
import { averageAngle } from '../average';
import { Lch } from './types';
import { Rgb } from '../rgb/types';
import { averageAngle } from "../average";
import { differenceHueChroma } from "../difference";
import { fixupAlpha } from "../fixup/alpha";
import { fixupHueShorter } from "../fixup/hue";
import { interpolatorLinear } from "../interpolate/linear";
import { Rgb } from "../rgb/types";
import convertLabToLch from "./convertLabToLch";
import convertLchToLab from "./convertLchToLab";
import parseLch from "./parseLch";
import { Lch } from "./types";
declare const definition: {
mode: 'lch';
mode: "lch";
toMode: {
lab: typeof convertLchToLab;
rgb: (c: Omit<Lch, 'mode'>) => Rgb;
rgb: (c: Omit<Lch, "mode">) => Rgb;
};
fromMode: {
rgb: (c: Omit<Rgb, 'mode'>) => Lch;
rgb: (c: Omit<Rgb, "mode">) => Lch;
lab: typeof convertLabToLch;
};
channels: ['l', 'c', 'h', 'alpha'];
channels: ["l", "c", "h", "alpha"];

@@ -34,3 +34,3 @@ ranges: {

parse: [typeof parseLch];
serialize: (c: Omit<Lch, 'mode'>) => string;
serialize: (c: Omit<Lch, "mode">) => string;

@@ -37,0 +37,0 @@ interpolate: {

@@ -1,2 +0,2 @@

import { Lch } from './types';
import { Lch } from "./types";

@@ -3,0 +3,0 @@ declare function parseLch(color: string): Lch;

export interface Lch {
mode: 'lch';
mode: "lch";
l: number;

@@ -4,0 +4,0 @@ c: number;

@@ -1,21 +0,21 @@

import lch from '../lch/definition';
import { Lch } from '../lch/types';
import { Lab65 } from '../lab65/types';
import { Rgb } from '../rgb/types';
import { Lch65 } from './types';
import { Lab65 } from "../lab65/types";
import lch from "../lch/definition";
import { Lch } from "../lch/types";
import { Rgb } from "../rgb/types";
import { Lch65 } from "./types";
interface Lch65DefinitionMixin {
mode: 'lch65';
mode: "lch65";
parse: ['--lch-d65'];
serialize: '--lch-d65';
parse: ["--lch-d65"];
serialize: "--lch-d65";
toMode: {
lab65: (c: Omit<Lch, 'mode'>) => Lab65;
rgb: (c: Omit<Lch, 'mode'>) => Rgb;
lab65: (c: Omit<Lch, "mode">) => Lab65;
rgb: (c: Omit<Lch, "mode">) => Rgb;
};
fromMode: {
rgb: (c: Omit<Rgb, 'mode'>) => Lch65;
lab65: (c: Omit<Lab65, 'mode'>) => Lch65;
rgb: (c: Omit<Rgb, "mode">) => Lch65;
lab65: (c: Omit<Lab65, "mode">) => Lch65;
};

@@ -22,0 +22,0 @@

export interface Lch65 {
mode: 'lch65';
mode: "lch65";
l: number;

@@ -4,0 +4,0 @@ c: number;

@@ -1,6 +0,6 @@

import { Lchuv } from './types';
import { Luv } from '../luv/types';
import { Luv } from "../luv/types";
import { Lchuv } from "./types";
declare function convertLchuvToLuv(color: Omit<Lchuv, 'mode'>): Luv;
declare function convertLchuvToLuv(color: Omit<Lchuv, "mode">): Luv;
export default convertLchuvToLuv;

@@ -1,6 +0,6 @@

import { Luv } from '../luv/types';
import { Lchuv } from './types';
import { Luv } from "../luv/types";
import { Lchuv } from "./types";
declare function convertLuvToLchuv(color: Omit<Luv, 'mode'>): Lchuv;
declare function convertLuvToLchuv(color: Omit<Luv, "mode">): Lchuv;
export default convertLuvToLchuv;

@@ -1,14 +0,14 @@

import convertLuvToLchuv from './convertLuvToLchuv';
import convertLchuvToLuv from './convertLchuvToLuv';
import convertXyz50ToRgb from '../xyz50/convertXyz50ToRgb';
import convertRgbToXyz50 from '../xyz50/convertRgbToXyz50';
import convertRgbToXyz50 from "../xyz50/convertRgbToXyz50";
import convertXyz50ToRgb from "../xyz50/convertXyz50ToRgb";
import convertLchuvToLuv from "./convertLchuvToLuv";
import convertLuvToLchuv from "./convertLuvToLchuv";
import { fixupHueShorter } from '../fixup/hue';
import { fixupAlpha } from '../fixup/alpha';
import { interpolatorLinear } from '../interpolate/linear';
import { differenceHueChroma } from '../difference';
import { averageAngle } from '../average';
import { averageAngle } from "../average";
import { differenceHueChroma } from "../difference";
import { fixupAlpha } from "../fixup/alpha";
import { fixupHueShorter } from "../fixup/hue";
import { interpolatorLinear } from "../interpolate/linear";
declare const definition: {
mode: 'lchuv';
mode: "lchuv";

@@ -25,6 +25,6 @@ toMode: {

channels: ['l', 'c', 'h', 'alpha'];
channels: ["l", "c", "h", "alpha"];
parse: ['--lchuv'];
serialize: '--lchuv';
parse: ["--lchuv"];
serialize: "--lchuv";

@@ -31,0 +31,0 @@ ranges: {

export interface Lchuv {
mode: 'lchuv';
mode: "lchuv";
l: number;

@@ -4,0 +4,0 @@ c: number;

@@ -1,6 +0,6 @@

import { Lrgb } from './types';
import { FindColorByMode, Mode } from '../common';
import { FindColorByMode, Mode } from "../common";
import { Lrgb } from "./types";
declare function convertLrgbToRgb<M extends Mode = 'rgb'>(color: Omit<Lrgb, 'mode'>, mode?: M): FindColorByMode<M>;
declare function convertLrgbToRgb<M extends Mode = "rgb">(color: Omit<Lrgb, "mode">, mode?: M): FindColorByMode<M>;
export default convertLrgbToRgb;

@@ -1,6 +0,6 @@

import { Rgb } from '../rgb/types';
import { Lrgb } from './types';
import { Rgb } from "../rgb/types";
import { Lrgb } from "./types";
declare function convertRgbToLrgb(color: Omit<Rgb, 'mode'>): Lrgb;
declare function convertRgbToLrgb(color: Omit<Rgb, "mode">): Lrgb;
export default convertRgbToLrgb;

@@ -1,7 +0,7 @@

import rgb from '../rgb/definition';
import convertRgbToLrgb from './convertRgbToLrgb';
import convertLrgbToRgb from './convertLrgbToRgb';
import rgb from "../rgb/definition";
import convertLrgbToRgb from "./convertLrgbToRgb";
import convertRgbToLrgb from "./convertRgbToLrgb";
interface LrgbDefinitionMixin {
mode: 'lrgb';
mode: "lrgb";

@@ -16,4 +16,4 @@ toMode: {

parse: ['--srgb-linear'];
serialize: '--srgb-linear';
parse: ["--srgb-linear"];
serialize: "--srgb-linear";
}

@@ -20,0 +20,0 @@

export interface Lrgb {
mode: 'lrgb';
mode: "lrgb";
r: number;

@@ -4,0 +4,0 @@ g: number;

@@ -1,6 +0,6 @@

import { Luv } from './types';
import { Xyz50 } from '../xyz50/types';
import { Xyz50 } from "../xyz50/types";
import { Luv } from "./types";
declare function convertLuvToXyz50(color: Omit<Luv, 'mode'>): Xyz50;
declare function convertLuvToXyz50(color: Omit<Luv, "mode">): Xyz50;
export default convertLuvToXyz50;

@@ -1,6 +0,6 @@

import { Xyz50 } from '../xyz50/types';
import { Luv } from './types';
import { Xyz50 } from "../xyz50/types";
import { Luv } from "./types";
declare function convertXyz50ToLuv(color: Omit<Xyz50, 'mode'>): Luv;
declare function convertXyz50ToLuv(color: Omit<Xyz50, "mode">): Luv;
export default convertXyz50ToLuv;

@@ -1,15 +0,15 @@

import convertXyz50ToLuv from './convertXyz50ToLuv';
import convertLuvToXyz50 from './convertLuvToXyz50';
import convertLuvToXyz50 from "./convertLuvToXyz50";
import convertXyz50ToLuv from "./convertXyz50ToLuv";
import { interpolatorLinear } from '../interpolate/linear';
import { fixupAlpha } from '../fixup/alpha';
import { Luv } from './types';
import { Rgb } from '../rgb/types';
import { fixupAlpha } from "../fixup/alpha";
import { interpolatorLinear } from "../interpolate/linear";
import { Rgb } from "../rgb/types";
import { Luv } from "./types";
declare const definition: {
mode: 'luv';
mode: "luv";
toMode: {
xyz50: typeof convertLuvToXyz50;
rgb: (c: Omit<Luv, 'mode'>) => Rgb;
rgb: (c: Omit<Luv, "mode">) => Rgb;
};

@@ -19,9 +19,9 @@

xyz50: typeof convertXyz50ToLuv;
rgb: (c: Omit<Rgb, 'mode'>) => Luv;
rgb: (c: Omit<Rgb, "mode">) => Luv;
};
channels: ['l', 'u', 'v', 'alpha'];
channels: ["l", "u", "v", "alpha"];
parse: ['--luv'];
serialize: '--luv';
parse: ["--luv"];
serialize: "--luv";

@@ -28,0 +28,0 @@ ranges: {

export interface Luv {
mode: 'luv';
mode: "luv";
l: number;

@@ -4,0 +4,0 @@ u: number;

@@ -1,3 +0,3 @@

import { Color, FindColorByMode, Mode } from './common';
import { Rgb } from './rgb/types';
import { Color, FindColorByMode, Mode } from "./common";
import { Rgb } from "./rgb/types";

@@ -28,4 +28,4 @@ type Channel = string;

declare function mapper(fn: MapFn<'rgb'>, mode?: undefined, preserve_mode?: false): ColorToRgbMapper;
declare function mapper(fn: MapFn<'rgb'>, mode: undefined, preserve_mode: true): ColorToSameColorMapper;
declare function mapper(fn: MapFn<"rgb">, mode?: undefined, preserve_mode?: false): ColorToRgbMapper;
declare function mapper(fn: MapFn<"rgb">, mode: undefined, preserve_mode: true): ColorToSameColorMapper;
declare function mapper<M extends Mode>(fn: MapFn<M>, mode: M, preserve_mode?: false): ColorToPredefinedColorMapper<M>;

@@ -46,2 +46,2 @@ declare function mapper<M extends Mode>(fn: MapFn<M>, mode: M, preserve_mode: true): ColorToSameColorMapper;

export { mapper, mapAlphaMultiply, mapAlphaDivide, mapTransferLinear, mapTransferGamma };
export { mapAlphaDivide, mapAlphaMultiply, mapper, mapTransferGamma, mapTransferLinear };

@@ -1,36 +0,36 @@

import { ConvertFn } from './converter.js';
import { Color, FindColorByMode, Mode } from './common';
import { Color, FindColorByMode, Mode } from "./common";
import { ConvertFn } from "./converter.js";
import modeA98 from './a98/definition';
import modeCubehelix from './cubehelix/definition';
import modeDlab from './dlab/definition';
import modeDlch from './dlch/definition';
import modeHsi from './hsi/definition';
import modeHsl from './hsl/definition';
import modeHsv from './hsv/definition';
import modeHwb from './hwb/definition';
import modeJab from './jab/definition';
import modeJch from './jch/definition';
import modeLab from './lab/definition';
import modeLab65 from './lab65/definition';
import modeLch from './lch/definition';
import modeLch65 from './lch65/definition';
import modeLchuv from './lchuv/definition';
import modeLrgb from './lrgb/definition';
import modeLuv from './luv/definition';
import modeOkhsl from './okhsl/modeOkhsl';
import modeOkhsv from './okhsv/modeOkhsv';
import modeOklab from './oklab/definition';
import modeOklch from './oklch/definition';
import modeP3 from './p3/definition';
import modeProphoto from './prophoto/definition';
import modeRec2020 from './rec2020/definition';
import modeRgb from './rgb/definition';
import modeXyz50 from './xyz50/definition';
import modeXyz65 from './xyz65/definition';
import modeYiq from './yiq/definition';
import modeA98 from "./a98/definition";
import modeCubehelix from "./cubehelix/definition";
import modeDlab from "./dlab/definition";
import modeDlch from "./dlch/definition";
import modeHsi from "./hsi/definition";
import modeHsl from "./hsl/definition";
import modeHsv from "./hsv/definition";
import modeHwb from "./hwb/definition";
import modeJab from "./jab/definition";
import modeJch from "./jch/definition";
import modeLab from "./lab/definition";
import modeLab65 from "./lab65/definition";
import modeLch from "./lch/definition";
import modeLch65 from "./lch65/definition";
import modeLchuv from "./lchuv/definition";
import modeLrgb from "./lrgb/definition";
import modeLuv from "./luv/definition";
import modeOkhsl from "./okhsl/modeOkhsl";
import modeOkhsv from "./okhsv/modeOkhsv";
import modeOklab from "./oklab/definition";
import modeOklch from "./oklch/definition";
import modeP3 from "./p3/definition";
import modeProphoto from "./prophoto/definition";
import modeRec2020 from "./rec2020/definition";
import modeRgb from "./rgb/definition";
import modeXyz50 from "./xyz50/definition";
import modeXyz65 from "./xyz65/definition";
import modeYiq from "./yiq/definition";
type Converters = {
[K1 in Mode]: {
[K2 in Mode]: ((c: Omit<FindColorByMode<K1>, 'mode'>) => FindColorByMode<K2>) | undefined;
[K2 in Mode]: ((c: Omit<FindColorByMode<K1>, "mode">) => FindColorByMode<K2>) | undefined;
};

@@ -76,3 +76,3 @@ };

declare function useMode<D extends Definition>(_definition: D): ConvertFn<D['mode']>;
declare function useMode<D extends Definition>(_definition: D): ConvertFn<D["mode"]>;

@@ -87,2 +87,2 @@ declare function getMode<M extends Mode>(mode: M): FindDefinitionByMode<M>;

export { useMode, getMode, useParser, removeParser, converters, parsers, colorProfiles };
export { colorProfiles, converters, getMode, parsers, removeParser, useMode, useParser };

@@ -1,3 +0,3 @@

import { DiffFn } from './difference';
import { Color } from './common';
import { Color } from "./common";
import { DiffFn } from "./difference";

@@ -4,0 +4,0 @@ type PositiveNumber = number;

@@ -1,6 +0,6 @@

import { Okhsl } from './types';
import { Oklab } from '../oklab/types';
import { Oklab } from "../oklab/types";
import { Okhsl } from "./types";
declare function convertOkhslToOklab(hsl: Omit<Okhsl, 'mode'>): Oklab;
declare function convertOkhslToOklab(hsl: Omit<Okhsl, "mode">): Oklab;
export default convertOkhslToOklab;

@@ -1,6 +0,6 @@

import { Oklab } from '../oklab/types';
import { Okhsl } from './types';
import { Oklab } from "../oklab/types";
import { Okhsl } from "./types";
declare function convertOklabToOkhsl(color: Omit<Oklab, 'mode'>): Okhsl;
declare function convertOklabToOkhsl(color: Omit<Oklab, "mode">): Okhsl;
export default convertOklabToOkhsl;

@@ -1,20 +0,20 @@

import convertOklabToOkhsl from './convertOklabToOkhsl';
import convertOkhslToOklab from './convertOkhslToOklab';
import convertOkhslToOklab from "./convertOkhslToOklab";
import convertOklabToOkhsl from "./convertOklabToOkhsl";
import modeHsl from '../hsl/definition';
import { Rgb } from '../rgb/types';
import { Okhsl } from './types';
import modeHsl from "../hsl/definition";
import { Rgb } from "../rgb/types";
import { Okhsl } from "./types";
interface OkhslDefinitionMixin {
mode: 'okhsl';
channels: ['h', 's', 'l', 'alpha'];
parse: ['--okhsl'];
serialize: '--okhsl';
mode: "okhsl";
channels: ["h", "s", "l", "alpha"];
parse: ["--okhsl"];
serialize: "--okhsl";
fromMode: {
oklab: typeof convertOklabToOkhsl;
rgb: (c: Omit<Rgb, 'mode'>) => Okhsl;
rgb: (c: Omit<Rgb, "mode">) => Okhsl;
};
toMode: {
oklab: typeof convertOkhslToOklab;
rgb: (c: Omit<Okhsl, 'mode'>) => Rgb;
rgb: (c: Omit<Okhsl, "mode">) => Rgb;
};

@@ -21,0 +21,0 @@ }

export interface Okhsl {
mode: 'okhsl';
mode: "okhsl";
h?: number;

@@ -4,0 +4,0 @@ s: number;

@@ -1,6 +0,6 @@

import { Okhsv } from './types';
import { Oklab } from '../oklab/types';
import { Oklab } from "../oklab/types";
import { Okhsv } from "./types";
declare function convertOkhsvToOklab(color: Omit<Okhsv, 'mode'>): Oklab;
declare function convertOkhsvToOklab(color: Omit<Okhsv, "mode">): Oklab;
export default convertOkhsvToOklab;

@@ -1,6 +0,6 @@

import { Oklab } from '../oklab/types';
import { Okhsv } from './types';
import { Oklab } from "../oklab/types";
import { Okhsv } from "./types";
declare function convertOklabToOkhsv(color: Omit<Oklab, 'mode'>): Okhsv;
declare function convertOklabToOkhsv(color: Omit<Oklab, "mode">): Okhsv;
export default convertOklabToOkhsv;

@@ -1,20 +0,20 @@

import convertOklabToOkhsv from './convertOklabToOkhsv';
import convertOkhsvToOklab from './convertOkhsvToOklab';
import convertOkhsvToOklab from "./convertOkhsvToOklab";
import convertOklabToOkhsv from "./convertOklabToOkhsv";
import modeHsv from '../hsv/definition';
import { Okhsv } from './types';
import { Rgb } from '../rgb/types';
import modeHsv from "../hsv/definition";
import { Rgb } from "../rgb/types";
import { Okhsv } from "./types";
interface OkhsvDefinitionMixin {
mode: 'okhsv';
channels: ['h', 's', 'v', 'alpha'];
parse: ['--okhsv'];
serialize: '--okhsv';
mode: "okhsv";
channels: ["h", "s", "v", "alpha"];
parse: ["--okhsv"];
serialize: "--okhsv";
fromMode: {
oklab: typeof convertOklabToOkhsv;
rgb: (color: Omit<Rgb, 'mode'>) => Okhsv;
rgb: (color: Omit<Rgb, "mode">) => Okhsv;
};
toMode: {
oklab: typeof convertOkhsvToOklab;
rgb: (color: Omit<Okhsv, 'mode'>) => Rgb;
rgb: (color: Omit<Okhsv, "mode">) => Rgb;
};

@@ -21,0 +21,0 @@ }

export interface Okhsv {
mode: 'okhsv';
mode: "okhsv";
h?: number;

@@ -4,0 +4,0 @@ s: number;

@@ -1,6 +0,6 @@

import { Lrgb } from '../lrgb/types';
import { Oklab } from './types';
import { Lrgb } from "../lrgb/types";
import { Oklab } from "./types";
declare function convertLrgbToOklab(color: Omit<Lrgb, 'mode'>): Oklab;
declare function convertLrgbToOklab(color: Omit<Lrgb, "mode">): Oklab;
export default convertLrgbToOklab;

@@ -1,6 +0,6 @@

import { Oklab } from './types';
import { Lrgb } from '../lrgb/types';
import { Lrgb } from "../lrgb/types";
import { Oklab } from "./types";
declare function convertOklabToLrgb(color: Omit<Oklab, 'mode'>): Lrgb;
declare function convertOklabToLrgb(color: Omit<Oklab, "mode">): Lrgb;
export default convertOklabToLrgb;

@@ -1,6 +0,6 @@

import { Oklab } from './types';
import { Rgb } from '../rgb/types';
import { Rgb } from "../rgb/types";
import { Oklab } from "./types";
declare function convertOklabToRgb(color: Omit<Oklab, 'mode'>): Rgb;
declare function convertOklabToRgb(color: Omit<Oklab, "mode">): Rgb;
export default convertOklabToRgb;

@@ -1,6 +0,6 @@

import { Rgb } from '../rgb/types';
import { Oklab } from './types';
import { Rgb } from "../rgb/types";
import { Oklab } from "./types";
declare function convertRgbToOklab(color: Omit<Rgb, 'mode'>): Oklab;
declare function convertRgbToOklab(color: Omit<Rgb, "mode">): Oklab;
export default convertRgbToOklab;

@@ -1,10 +0,10 @@

import convertOklabToLrgb from './convertOklabToLrgb';
import convertLrgbToOklab from './convertLrgbToOklab';
import convertRgbToOklab from './convertRgbToOklab';
import convertOklabToRgb from './convertOklabToRgb';
import convertLrgbToOklab from "./convertLrgbToOklab";
import convertOklabToLrgb from "./convertOklabToLrgb";
import convertOklabToRgb from "./convertOklabToRgb";
import convertRgbToOklab from "./convertRgbToOklab";
import lab from '../lab/definition';
import lab from "../lab/definition";
interface OklabDefinitionMixin {
mode: 'oklab';
mode: "oklab";

@@ -27,4 +27,4 @@ toMode: {

parse: ['--oklab'];
serialize: '--oklab';
parse: ["--oklab"];
serialize: "--oklab";
}

@@ -31,0 +31,0 @@

export interface Oklab {
mode: 'oklab';
mode: "oklab";
l: number;

@@ -4,0 +4,0 @@ a: number;

@@ -1,21 +0,21 @@

import lch from '../lch/definition';
import { Oklch } from './types';
import { Oklab } from '../oklab/types';
import { Rgb } from '../rgb/types';
import lch from "../lch/definition";
import { Oklab } from "../oklab/types";
import { Rgb } from "../rgb/types";
import { Oklch } from "./types";
interface OklchDefinitionMixin {
mode: 'oklch';
mode: "oklch";
toMode: {
oklab: (c: Omit<Oklch, 'mode'>) => Oklab;
rgb: (c: Omit<Oklch, 'mode'>) => Rgb;
oklab: (c: Omit<Oklch, "mode">) => Oklab;
rgb: (c: Omit<Oklch, "mode">) => Rgb;
};
fromMode: {
rgb: (c: Omit<Rgb, 'mode'>) => Oklch;
oklab: (c: Omit<Oklab, 'mode'>) => Oklch;
rgb: (c: Omit<Rgb, "mode">) => Oklch;
oklab: (c: Omit<Oklab, "mode">) => Oklch;
};
parse: ['--oklch'];
serialize: '--oklch';
parse: ["--oklch"];
serialize: "--oklch";

@@ -22,0 +22,0 @@ ranges: {

export interface Oklch {
mode: 'oklch';
mode: "oklch";
l: number;

@@ -4,0 +4,0 @@ c: number;

@@ -1,6 +0,6 @@

import { P3 } from './types';
import { Xyz65 } from '../xyz65/types';
import { Xyz65 } from "../xyz65/types";
import { P3 } from "./types";
declare function convertP3ToXyz65(color: Omit<P3, 'mode'>): Xyz65;
declare function convertP3ToXyz65(color: Omit<P3, "mode">): Xyz65;
export default convertP3ToXyz65;

@@ -1,6 +0,6 @@

import { Xyz65 } from '../xyz65/types';
import { P3 } from './types';
import { Xyz65 } from "../xyz65/types";
import { P3 } from "./types";
declare function convertXyz65ToP3(color: Omit<Xyz65, 'mode'>): P3;
declare function convertXyz65ToP3(color: Omit<Xyz65, "mode">): P3;
export default convertXyz65ToP3;

@@ -1,14 +0,14 @@

import rgb from '../rgb/definition';
import convertP3ToXyz65 from './convertP3ToXyz65';
import convertXyz65ToP3 from './convertXyz65ToP3';
import { Rgb } from '../rgb/types';
import { P3 } from './types';
import rgb from "../rgb/definition";
import { Rgb } from "../rgb/types";
import convertP3ToXyz65 from "./convertP3ToXyz65";
import convertXyz65ToP3 from "./convertXyz65ToP3";
import { P3 } from "./types";
interface P3DefinitionMixin {
mode: 'p3';
parse: ['display-p3'];
serialize: 'display-p3';
mode: "p3";
parse: ["display-p3"];
serialize: "display-p3";
fromMode: {
rgb: (color: Omit<Rgb, 'mode'>) => P3;
rgb: (color: Omit<Rgb, "mode">) => P3;
xyz65: typeof convertXyz65ToP3;

@@ -18,3 +18,3 @@ };

toMode: {
rgb: (color: Omit<P3, 'mode'>) => Rgb;
rgb: (color: Omit<P3, "mode">) => Rgb;
xyz65: typeof convertP3ToXyz65;

@@ -21,0 +21,0 @@ };

export interface P3 {
mode: 'p3';
mode: "p3";
r: number;

@@ -4,0 +4,0 @@ g: number;

@@ -1,3 +0,3 @@

import { Color } from './common';
import { Color } from "./common";
export default function parse(color: string): Color | undefined;

@@ -1,6 +0,6 @@

import { Prophoto } from './types';
import { Xyz50 } from '../xyz50/types';
import { Xyz50 } from "../xyz50/types";
import { Prophoto } from "./types";
declare function convertProphotoToXyz50(color: Omit<Prophoto, 'mode'>): Xyz50;
declare function convertProphotoToXyz50(color: Omit<Prophoto, "mode">): Xyz50;
export default convertProphotoToXyz50;

@@ -1,6 +0,6 @@

import { Xyz50 } from '../xyz50/types';
import { Prophoto } from './types';
import { Xyz50 } from "../xyz50/types";
import { Prophoto } from "./types";
declare function convertXyz50ToProphoto(color: Omit<Xyz50, 'mode'>): Prophoto;
declare function convertXyz50ToProphoto(color: Omit<Xyz50, "mode">): Prophoto;
export default convertXyz50ToProphoto;

@@ -1,17 +0,17 @@

import rgb from '../rgb/definition';
import rgb from "../rgb/definition";
import convertXyz50ToProphoto from './convertXyz50ToProphoto';
import convertProphotoToXyz50 from './convertProphotoToXyz50';
import convertProphotoToXyz50 from "./convertProphotoToXyz50";
import convertXyz50ToProphoto from "./convertXyz50ToProphoto";
import { Rgb } from '../rgb/types';
import { Prophoto } from './types';
import { Rgb } from "../rgb/types";
import { Prophoto } from "./types";
interface ProphotoDefinitionMixin {
mode: 'prophoto';
parse: ['prophoto-rgb'];
serialize: 'prophoto-rgb';
mode: "prophoto";
parse: ["prophoto-rgb"];
serialize: "prophoto-rgb";
fromMode: {
xyz50: typeof convertXyz50ToProphoto;
rgb: (rgb: Omit<Rgb, 'mode'>) => Prophoto;
rgb: (rgb: Omit<Rgb, "mode">) => Prophoto;
};

@@ -21,3 +21,3 @@

xyz50: typeof convertProphotoToXyz50;
rgb: (rgb: Omit<Prophoto, 'mode'>) => Rgb;
rgb: (rgb: Omit<Prophoto, "mode">) => Rgb;
};

@@ -24,0 +24,0 @@ }

export interface Prophoto {
mode: 'prophoto';
mode: "prophoto";
r: number;

@@ -4,0 +4,0 @@ g: number;

@@ -1,13 +0,15 @@

import { TakeColorChannels, Mode, FindColorByMode } from './common';
import { Rgb } from './rgb/types';
import { FindColorByMode, Mode, TakeColorChannels } from "./common";
import { Rgb } from "./rgb/types";
type NumberOrRange = number | [number, number];
type Constraints<M extends Mode> = Partial<{
[P in keyof TakeColorChannels<M>]: NumberOrRange;
}>;
type Constraints<M extends Mode> = Partial<
{
[P in keyof TakeColorChannels<M>]: NumberOrRange;
}
>;
declare function random<M extends Mode>(mode: M, constraints?: Constraints<M>): FindColorByMode<M>;
declare function random(mode?: undefined, constraints?: Constraints<'rgb'>): Rgb;
declare function random(mode?: undefined, constraints?: Constraints<"rgb">): Rgb;
export default random;

@@ -1,6 +0,6 @@

import { Rec2020 } from './types';
import { Xyz65 } from '../xyz65/types';
import { Xyz65 } from "../xyz65/types";
import { Rec2020 } from "./types";
declare function convertRec2020ToXyz65(color: Omit<Rec2020, 'mode'>): Xyz65;
declare function convertRec2020ToXyz65(color: Omit<Rec2020, "mode">): Xyz65;
export default convertRec2020ToXyz65;

@@ -1,6 +0,6 @@

import { Xyz65 } from '../xyz65/types';
import { Rec2020 } from './types';
import { Xyz65 } from "../xyz65/types";
import { Rec2020 } from "./types";
declare function convertXyz65ToRec2020(color: Omit<Xyz65, 'mode'>): Rec2020;
declare function convertXyz65ToRec2020(color: Omit<Xyz65, "mode">): Rec2020;
export default convertXyz65ToRec2020;

@@ -1,11 +0,11 @@

import rgb from '../rgb/definition';
import rgb from "../rgb/definition";
import convertXyz65ToRec2020 from './convertXyz65ToRec2020';
import convertRec2020ToXyz65 from './convertRec2020ToXyz65';
import convertRec2020ToXyz65 from "./convertRec2020ToXyz65";
import convertXyz65ToRec2020 from "./convertXyz65ToRec2020";
import { Rec2020 } from './types';
import { Rgb } from '../rgb/types';
import { Rgb } from "../rgb/types";
import { Rec2020 } from "./types";
interface Rec2020DefinitionMixin {
mode: 'rec2020';
mode: "rec2020";

@@ -19,7 +19,7 @@ fromMode: {

xyz65: typeof convertRec2020ToXyz65;
rgb: (color: Omit<Rec2020, 'mode'>) => Rgb;
rgb: (color: Omit<Rec2020, "mode">) => Rgb;
};
parse: ['rec2020'];
serialize: 'rec2020';
parse: ["rec2020"];
serialize: "rec2020";
}

@@ -26,0 +26,0 @@

export interface Rec2020 {
mode: 'rec2020';
mode: "rec2020";
r: number;

@@ -4,0 +4,0 @@ g: number;

@@ -1,13 +0,13 @@

import parseHex from './parseHex';
import parseNamed from './parseNamed';
import parseRgb from './parseRgb';
import parseTransparent from './parseTransparent';
import { interpolatorLinear } from '../interpolate/linear';
import { fixupAlpha } from '../fixup/alpha';
import { fixupAlpha } from "../fixup/alpha";
import { interpolatorLinear } from "../interpolate/linear";
import parseHex from "./parseHex";
import parseNamed from "./parseNamed";
import parseRgb from "./parseRgb";
import parseTransparent from "./parseTransparent";
declare const definition: {
mode: 'rgb';
channels: ['r', 'g', 'b', 'alpha'];
parse: [typeof parseHex, typeof parseRgb, typeof parseNamed, typeof parseTransparent, 'srgb'];
serialize: 'srgb';
mode: "rgb";
channels: ["r", "g", "b", "alpha"];
parse: [typeof parseHex, typeof parseRgb, typeof parseNamed, typeof parseTransparent, "srgb"];
serialize: "srgb";

@@ -14,0 +14,0 @@ interpolate: {

@@ -1,2 +0,2 @@

import { Color } from '../common';
import { Color } from "../common";

@@ -3,0 +3,0 @@ declare function parseHex(color: string): Color;

@@ -1,3 +0,3 @@

import named from '../colors/named';
import { Color } from '../common';
import named from "../colors/named";
import { Color } from "../common";

@@ -4,0 +4,0 @@ declare function parseNamed(color: keyof typeof named): Color;

@@ -1,2 +0,2 @@

import { Rgb } from './types';
import { Rgb } from "./types";

@@ -3,0 +3,0 @@ declare function parseRgb(color: string): Rgb;

export default parseTransparent;
declare function parseTransparent(str: 'transparent'): {
mode: 'rgb';
declare function parseTransparent(str: "transparent"): {
mode: "rgb";
r: 0;

@@ -6,0 +6,0 @@ g: 0;

export interface Rgb {
mode: 'rgb';
mode: "rgb";
r: number;

@@ -4,0 +4,0 @@ g: number;

@@ -1,2 +0,2 @@

import { Color } from './common';
import { Color } from "./common";

@@ -3,0 +3,0 @@ export function luminance(color: Color | string): number;

@@ -1,6 +0,6 @@

import { Rgb } from '../rgb/types';
import { Xyz50 } from './types';
import { Rgb } from "../rgb/types";
import { Xyz50 } from "./types";
declare function convertRgbToXyz50(rgb: Omit<Rgb, 'mode'>): Xyz50;
declare function convertRgbToXyz50(rgb: Omit<Rgb, "mode">): Xyz50;
export default convertRgbToXyz50;

@@ -1,6 +0,6 @@

import { Xyz50 } from './types';
import { Rgb } from '../rgb/types';
import { Rgb } from "../rgb/types";
import { Xyz50 } from "./types";
declare function convertXyz50ToRgb(color: Omit<Xyz50, 'mode'>): Rgb;
declare function convertXyz50ToRgb(color: Omit<Xyz50, "mode">): Rgb;
export default convertXyz50ToRgb;

@@ -1,12 +0,12 @@

import convertXyz50ToRgb from './convertXyz50ToRgb';
import convertXyz50ToLab from '../lab/convertXyz50ToLab';
import convertRgbToXyz50 from './convertRgbToXyz50';
import convertLabToXyz50 from '../lab/convertLabToXyz50';
import { interpolatorLinear } from '../interpolate/linear';
import { fixupAlpha } from '../fixup/alpha';
import { fixupAlpha } from "../fixup/alpha";
import { interpolatorLinear } from "../interpolate/linear";
import convertLabToXyz50 from "../lab/convertLabToXyz50";
import convertXyz50ToLab from "../lab/convertXyz50ToLab";
import convertRgbToXyz50 from "./convertRgbToXyz50";
import convertXyz50ToRgb from "./convertXyz50ToRgb";
declare const definition: {
mode: 'xyz50';
parse: ['xyz-d50', '--xyz-d50'];
serialize: 'xyz-d50';
mode: "xyz50";
parse: ["xyz-d50", "--xyz-d50"];
serialize: "xyz-d50";

@@ -23,3 +23,3 @@ toMode: {

channels: ['x', 'y', 'z', 'alpha'];
channels: ["x", "y", "z", "alpha"];

@@ -26,0 +26,0 @@ ranges: {

export interface Xyz50 {
mode: 'xyz50';
mode: "xyz50";
x: number;

@@ -4,0 +4,0 @@ y: number;

@@ -1,6 +0,6 @@

import { Rgb } from '../rgb/types';
import { Xyz65 } from './types';
import { Rgb } from "../rgb/types";
import { Xyz65 } from "./types";
declare function convertRgbToXyz65(color: Omit<Rgb, 'mode'>): Xyz65;
declare function convertRgbToXyz65(color: Omit<Rgb, "mode">): Xyz65;
export default convertRgbToXyz65;

@@ -1,6 +0,6 @@

import { Xyz50 } from '../xyz50/types';
import { Xyz65 } from './types';
import { Xyz50 } from "../xyz50/types";
import { Xyz65 } from "./types";
declare function convertXyz50ToXyz65(color: Omit<Xyz50, 'mode'>): Xyz65;
declare function convertXyz50ToXyz65(color: Omit<Xyz50, "mode">): Xyz65;
export default convertXyz50ToXyz65;

@@ -1,6 +0,6 @@

import { Xyz65 } from './types';
import { Rgb } from '../rgb/types';
import { Rgb } from "../rgb/types";
import { Xyz65 } from "./types";
declare function convertXyz65ToRgb(color: Omit<Xyz65, 'mode'>): Rgb;
declare function convertXyz65ToRgb(color: Omit<Xyz65, "mode">): Rgb;
export default convertXyz65ToRgb;

@@ -1,6 +0,6 @@

import { Xyz65 } from './types';
import { Xyz50 } from '../xyz50/types';
import { Xyz50 } from "../xyz50/types";
import { Xyz65 } from "./types";
declare function convertXyz65ToXyz50(color: Omit<Xyz65, 'mode'>): Xyz50;
declare function convertXyz65ToXyz50(color: Omit<Xyz65, "mode">): Xyz50;
export default convertXyz65ToXyz50;

@@ -1,12 +0,12 @@

import convertXyz65ToRgb from './convertXyz65ToRgb';
import convertRgbToXyz65 from './convertRgbToXyz65';
import convertRgbToXyz65 from "./convertRgbToXyz65";
import convertXyz65ToRgb from "./convertXyz65ToRgb";
import convertXyz65ToXyz50 from './convertXyz65ToXyz50';
import convertXyz50ToXyz65 from './convertXyz50ToXyz65';
import convertXyz50ToXyz65 from "./convertXyz50ToXyz65";
import convertXyz65ToXyz50 from "./convertXyz65ToXyz50";
import { interpolatorLinear } from '../interpolate/linear';
import { fixupAlpha } from '../fixup/alpha';
import { fixupAlpha } from "../fixup/alpha";
import { interpolatorLinear } from "../interpolate/linear";
declare const definition: {
mode: 'xyz65';
mode: "xyz65";

@@ -29,6 +29,6 @@ toMode: {

channels: ['x', 'y', 'z', 'alpha'];
channels: ["x", "y", "z", "alpha"];
parse: ['xyz', 'xyz-d65', '--xyz-d65'];
serialize: 'xyz-d65';
parse: ["xyz", "xyz-d65", "--xyz-d65"];
serialize: "xyz-d65";

@@ -35,0 +35,0 @@ interpolate: {

export interface Xyz65 {
mode: 'xyz65';
mode: "xyz65";
x: number;

@@ -4,0 +4,0 @@ y: number;

@@ -1,6 +0,6 @@

import { Rgb } from '../rgb/types';
import { Yiq } from './types';
import { Rgb } from "../rgb/types";
import { Yiq } from "./types";
declare function convertRgbToYiq(color: Omit<Rgb, 'mode'>): Yiq;
declare function convertRgbToYiq(color: Omit<Rgb, "mode">): Yiq;
export default convertRgbToYiq;

@@ -1,6 +0,6 @@

import { Yiq } from './types';
import { Rgb } from '../rgb/types';
import { Rgb } from "../rgb/types";
import { Yiq } from "./types";
declare function convertYiqToRgb(color: Omit<Yiq, 'mode'>): Rgb;
declare function convertYiqToRgb(color: Omit<Yiq, "mode">): Rgb;
export default convertYiqToRgb;

@@ -1,8 +0,8 @@

import convertRgbToYiq from './convertRgbToYiq';
import convertYiqToRgb from './convertYiqToRgb';
import { interpolatorLinear } from '../interpolate/linear';
import { fixupAlpha } from '../fixup/alpha';
import { fixupAlpha } from "../fixup/alpha";
import { interpolatorLinear } from "../interpolate/linear";
import convertRgbToYiq from "./convertRgbToYiq";
import convertYiqToRgb from "./convertYiqToRgb";
declare const definition: {
mode: 'yiq';
mode: "yiq";

@@ -17,6 +17,6 @@ toMode: {

channels: ['y', 'i', 'q', 'alpha'];
channels: ["y", "i", "q", "alpha"];
parse: ['--yiq'];
serialize: '--yiq';
parse: ["--yiq"];
serialize: "--yiq";

@@ -23,0 +23,0 @@ ranges: {

export interface Yiq {
mode: 'yiq';
mode: "yiq";
y: number;

@@ -4,0 +4,0 @@ i: number;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc