Skip to content

happypdf / WordBreak

Type Alias: WordBreak

ts
type WordBreak = "normal" | "keep-all";

Defined in: src/api/text/wrap.ts:29

How words that are wider than maxWidth on their own are handled.

  • normal — break inside the word (between graphemes) so it fits.
  • keep-all — never break inside a word; let it overflow.

MIT Licensed. A fork of pdf-lib.