@rcpch/digital-growth-charts-react-component-library
Version:
A React component library for the RCPCH digital growth charts using Rollup, TypeScript and Styled-Components
25 lines (24 loc) • 903 B
TypeScript
import { ClientMeasurementObject } from '../interfaces/ClientMeasurementObject';
import { MidParentalHeightObject } from '../interfaces/MidParentalHeightObject';
export interface SDSChartProps {
chartsVersion: string;
reference: 'uk-who' | 'turner' | 'trisomy-21' | 'cdc' | 'trisomy-21-aap' | 'who';
title: string;
subtitle: string;
measurementMethod: 'height' | 'weight' | 'ofc' | 'bmi';
childMeasurements: ClientMeasurementObject | undefined;
allowDuplicates?: boolean;
midParentalHeightData?: MidParentalHeightObject | undefined;
sex: 'male' | 'female';
enableZoom: boolean;
styles: {
[key: string]: any;
};
height?: number;
width?: number;
textScaleFactor?: number;
enableExport: boolean;
exportChartCallback(svg: any): any;
clinicianFocus?: boolean | undefined | null;
logoVariant?: 'top' | 'bottom' | 'legend';
}