Atrium — shared contracts and the typesetting engine
    Preparing search index...

    Interface LineBreak

    One chosen break, with the arithmetic that chose it.

    interface LineBreak {
        at: "kern" | "glue" | "penalty" | "disc" | "end";
        badness: number;
        demerits: number;
        fitness: Fitness;
        hyphen: boolean;
        line: number;
        overfull: number;
        penalty: number;
        position: number;
        ratio: number;
        totalDemerits: number;
    }
    Index
    at: "kern" | "glue" | "penalty" | "disc" | "end"
    badness: number

    The badness the breaker judged this line by. On the third pass that includes \emergencystretch, which the packed line does not contain — so a line chosen there can be reported underfull despite a small badness here. That is TeX's behaviour, and the reason \emergencystretch turns overfull boxes into underfull ones.

    demerits: number

    Demerits of this line alone.

    fitness: Fitness
    hyphen: boolean

    True when taking this break put a hyphen on the page — a discretionary with something in its pre. Distinct from TeX's break_type, which also counts a flagged penalty and the paragraph's own end.

    line: number

    1-based line number.

    overfull: number

    Points the packed line overflows its measure by. 0 for a line that fits.

    penalty: number

    The penalty charged for breaking here, after TeX's clamping.

    position: number

    Index in LineBreakResult.hlist of the node broken at; hlist.length at the paragraph's end.

    ratio: number

    The packed line's glue ratio; read together with the box's glueSet.sign.

    totalDemerits: number

    Running total — the quantity total fit minimises.