Skip to content

vyaz-monorepo / core/src / HardBreakPiece

Interface: HardBreakPiece ​

Defined in: core/src/compile/ParagraphCompiler.ts:208

One line-break-free piece of a paragraph — see splitParagraphAtHardBreaks.

Properties ​

endsWithBreak ​

endsWithBreak: boolean

Defined in: core/src/compile/ParagraphCompiler.ts:216

The piece is followed by a \n (which belongs to it, after its text).


paragraph ​

paragraph: Paragraph

Defined in: core/src/compile/ParagraphCompiler.ts:210

The piece as a paragraph of its own (whitespace already collapsed for pre-line).


sourceStart ​

sourceStart: number

Defined in: core/src/compile/ParagraphCompiler.ts:212

Offset of the piece in the source paragraph text (children texts joined).


sourceTexts ​

sourceTexts: string[]

Defined in: core/src/compile/ParagraphCompiler.ts:214

Source text of each of paragraph.children, before collapsing.

Released under the MIT License.