UNPKG

react-cie-1931

Version:
53 lines (48 loc) 1.31 kB
import { default as default_2 } from 'react'; declare const ChromaticityDiagram: default_2.FC<ChromaticityDiagramProps>; export { ChromaticityDiagram } export default ChromaticityDiagram; export declare interface ChromaticityDiagramProps { /** * Array of color spaces to display */ colorSpaces?: ColorSpace[]; /** * Color for the axis labels (defaults to '#000000') */ axisLabelColor?: string; /** * Color for the grid lines (defaults to 'rgba(0, 0, 0, 0.2)') */ gridLineColor?: string; /** * Width for the grid lines (defaults to 1) */ gridLineWidth?: number; /** * Whether to show the Planckian locus (defaults to false) */ showPlanckianLocus?: boolean; /** * Color for the Planckian locus line (defaults to '#000000') */ planckianLocusColor?: string; /** * Target color space for rendering ('srgb' or 'display-p3'). Defaults to 'srgb'. */ colorSpace?: "srgb" | "display-p3"; } declare interface ColorSpace { name: string; rgb: { r: [number, number]; g: [number, number]; b: [number, number]; }; whitepoint: { x: number; y: number; }; color?: string; } export { }