IFClite TypeScript API
    Preparing search index...

    Type Alias SectionSpec

    SectionSpec:
        | { kind: "text"; text: string; variant?: "body"
        | "caption" }
        | { kind: "callout"; text: string; title?: string; tone?: Tone }
        | { items: StatSpec[]; kind: "stats" }
        | {
            columns: ColumnSpec[];
            groupBy?: string;
            kind: "table";
            maxRows?: number;
            query?: IfcQuerySpec;
            rows?: RowSpec[];
            sort?: { dir?: "asc" | "desc"; path: string };
            title?: string;
        }
        | {
            kind: "list";
            label?: string;
            query?: IfcQuerySpec;
            refs?: string[];
            title?: string;
        }
        | {
            aggregate?: "count"
            | "sum";
            chart?: "bar" | "pie";
            data?: ChartDatum[];
            groupBy: string;
            kind: "chart";
            path?: string;
            query?: IfcQuerySpec;
            title?: string;
        }
        | {
            apply?: "manual"
            | "onShow";
            by: string;
            data?: { color: string; label: string; refs?: string[] }[];
            kind: "legend";
            query?: IfcQuerySpec;
            title?: string;
        }
        | {
            actions: ViewerAction[];
            color?: string;
            followUps?: { label: string; prompt: string }[];
            kind: "actions";
            query?: IfcQuerySpec;
            refs?: string[];
        }
        | { entity: string; kind: "entity"; sections?: string[] }