Package version:

Interface DocumentLine

A content line object consisting of an adjacent sequence of content elements, such as words and selection marks.

Hierarchy

Properties

content: string

Concatenated content of the contained elements in reading order.

polygon?: Point2D[]

Bounding polygon of the entity.

spans: DocumentSpan[]

Location of the line in the reading order concatenated content.

words: (() => IterableIterator<DocumentWord>)

Type declaration

    • (): IterableIterator<DocumentWord>
    • Compute the DocumentWords that are related to this line.

      This function produces a lazy iterator that will yield one word before computing the next.

      Returns IterableIterator<DocumentWord>

Generated using TypeDoc