Options
All
  • Public
  • Public/Protected
  • All
Menu

Options related to the splitting of very long text nodes.

Hierarchy

  • IEpubTextNodeSplitOptions

Index

Properties

Optional enableTextSplit

enableTextSplit?: boolean

Sets whether the reading system should split long text nodes into shorter nodes.

Some publications with very long text nodes take a very long time to reflow. Setting this option to true will significantly reduce the time it takes to reflow such a publication.

The trade-off is that when a text node is split, the text after the split will appear on a new line in the rendered content. The reading system will attempt to split at a sentence divider, to make the split as unnoticeable as possible.

default

false

Optional maxTextNodeLength

maxTextNodeLength?: number

Sets the maximum length of text nodes in the publication. Nodes longer than this number will be split into text nodes of the provided length.

This option has no effect unless enableTextSplit has been set to true.

default

5000

int

Generated using TypeDoc