-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathRCPCHChart.types.ts
29 lines (28 loc) · 1.34 KB
/
RCPCHChart.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
import { Measurement } from '../interfaces/RCPCHMeasurementObject';
import { MidParentalHeightObject } from '../interfaces/MidParentalHeightObject';
import { AxisStyle, CentileStyle, ChartStyle, GridlineStyle, MeasurementStyle, SDSStyle } from '../interfaces/StyleObjects';
import { ClientMeasurementObject } from '../interfaces/ClientMeasurementObject';
export interface RCPCHChartProps {
title: string;
measurementMethod: 'height' | 'weight' | 'ofc' | 'bmi';
reference: 'uk-who' | 'turner' | 'trisomy-21';
sex: 'male' | 'female';
measurements: ClientMeasurementObject;
midParentalHeightData?: MidParentalHeightObject | undefined;
enableZoom?: boolean;
chartType?: 'centile' | 'sds';
enableExport?: boolean | undefined;
exportChartCallback(svg?: any): any;
clinicianFocus?: boolean | undefined | null;
theme?: 'monochrome' | 'traditional' | 'tanner1' | 'tanner2' | 'tanner3' | 'custom';
height?: number
width?: number
customThemeStyles?: {
chartStyle?: ChartStyle
axisStyle?: AxisStyle
gridlineStyle?: GridlineStyle
measurementStyle?: MeasurementStyle
centileStyle?: CentileStyle
sdsStyle?: SDSStyle
} // individual styles to override in each theme. If 'custom' theme is selected, 'monochrome' styles are defaulted and styles passed here override them
}