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. Its text is lined up in it as the paragraph's alignment says

    x: number

    Where the room for the line starts across the page

    y: number

    Where the top of the line is down the page