Skip to main content

Version 1, Update 134

textWrapStyle

textWrapStyle is a new paragraph-level property on TextNode that controls how text wraps within each paragraph. Pair it with getRangeTextWrapStyle and setRangeTextWrapStyle to get and set the value on character ranges, and read or write it via TextStyle to apply it across a saved text style.

New types

  • TextWrapStyle: 'AUTO' (default), 'BALANCE' (equalized line lengths), or 'PRETTY' (fewer orphaned words).

New properties and methods