-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathCentileChart.types.ts
37 lines (35 loc) · 1.25 KB
/
CentileChart.types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { Measurement } from '../interfaces/RCPCHMeasurementObject';
import { MidParentalHeightObject } from '../interfaces/MidParentalHeightObject';
export type ComputedData = {
centileData: null | any[];
maxDomains: any;
computedDomains: any;
chartScaleType: 'prem' | 'infant' | 'smallChild' | 'biggerChild';
pointsForCentileLabels: { x: number; y: number; centile: string }[];
updateCentileData: boolean;
};
export type Results = {
centileData: null | any[];
computedDomains: any;
maxDomains: any;
chartScaleType: 'prem' | 'infant' | 'smallChild' | 'biggerChild';
pointsForCentileLabels: { x: number; y: number; centile: string }[];
};
export interface CentileChartProps {
chartsVersion?: string;
reference: 'uk-who' | 'turner' | 'trisomy-21';
title: string;
subtitle: string;
measurementMethod: 'height' | 'weight' | 'ofc' | 'bmi';
sex: 'male' | 'female';
childMeasurements: Measurement[];
midParentalHeightData?: MidParentalHeightObject | null;
enableZoom?: boolean;
styles: { [key: string]: any };
width?: number;
height?: number;
textScaleFactor?: number;
enableExport?: boolean;
exportChartCallback(svg: any): any;
clinicianFocus?: boolean | undefined | null;
}