CaCu indicators: one selector for the cytology and HPV genotype views, grouped bars and genotype labels
This commit is contained in:
@@ -27,11 +27,20 @@ export interface ReadingsCard {
|
||||
headline?: string;
|
||||
note?: string;
|
||||
modes: Mode[];
|
||||
/** in a `columns` section with `views`: takes the mode whose label the section's selector chose */
|
||||
follows?: boolean;
|
||||
}
|
||||
export type Section =
|
||||
| ReadingsCard
|
||||
/** Cards side by side; the last one alone when odd. */
|
||||
| { kind: 'columns'; title: string; sections: ReadingsCard[] }
|
||||
| {
|
||||
kind: 'columns';
|
||||
title: string;
|
||||
sections: ReadingsCard[];
|
||||
/** one selector for the cards that `follow` it: the labels of their modes, the first by default */
|
||||
views?: string[];
|
||||
viewsLabel?: string;
|
||||
}
|
||||
/** One section at a time. */
|
||||
| { kind: 'choice'; title: string; choices: { label: string; section: ReadingsCard }[] }
|
||||
| { kind: 'figures'; title?: string; figures: FigureSpec[] }
|
||||
|
||||
Reference in New Issue
Block a user