docx
    Preparing search index...

    Type Alias LineLayout

    A line of a paragraph on a page. Lengths are in pixels, 96 to the inch, from the top left corner of the page.

    type LineLayout = {
        height: number;
        text: string;
        textWidth: number;
        width: number;
        x: number;
        y: number;
    }
    Index
    height: number

    How tall the line is, with the paragraph's line spacing

    text: string

    The text on the line, with the spaces where it wraps and a tab as \t. A picture or a break adds nothing to it, so the texts of a paragraph's lines, one after the other, are its text

    textWidth: number

    How far its text goes from where the line starts, without the spaces at its end

    width: number

    How wide the room for the line is: its column, or the page's text, less the paragraph's indents, or the room beside a drawing that text flows around. Its text is lined up in it as the paragraph's alignment says, but for an equation alone in its paragraph, which Word lines up as the equation's own justification says (m:jc, or the document's m:defJc), centred unless that says otherwise. A line with text on both sides of a drawing is two lines with the same y, the left first

    x: number

    Where the room for the line starts across the page: beside a drawing that text flows around, where that room starts

    y: number

    Where the top of the line is down the page