PixiDom - v1.0.0
    Preparing search index...

    Function layoutText

    • Lay out text into lines, breaking on \n and soft-wrapping to wrapWidth when provided. Soft wraps prefer the last space on the line (the space stays at the end of the wrapped line, as browsers do); words wider than wrapWidth break mid-word, and a line always accepts at least one character so layout cannot stall.

      Parameters

      Returns TextLayout