CaCu indicators: one selector for the cytology and HPV genotype views, grouped bars and genotype labels

This commit is contained in:
Angel Capetillo Zavala
2026-12-01 17:15:10 -06:00
parent 81894a3777
commit e1e8da6093
12 changed files with 785 additions and 215 deletions
+10 -1
View File
@@ -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[] }