vyaz-monorepo / core/src / ParagraphStyle
Interface: ParagraphStyle
Defined in: core/src/types/Document.ts:451
Block-level style for a paragraph.
Controls alignment, spacing, indentation, and line-breaking rules for all runs inside the paragraph.
See
Properties
alignment
alignment:
TextAlignment
Defined in: core/src/types/Document.ts:453
Horizontal text alignment.
hyphens?
optionalhyphens?:boolean
Defined in: core/src/types/Document.ts:509
Experimental
Whether hyphenation is allowed. Accepted in the type but ignored by the layout engine (no-op until implemented).
indent?
optionalindent?:number
Defined in: core/src/types/Document.ts:471
Left indent (first-line indent / "red line") in px. Applies only to the first line of the paragraph.
Todo
Rename or alias as textIndent for consistency with CSS.
leftIndent?
optionalleftIndent?:number
Defined in: core/src/types/Document.ts:473
Left margin for the whole paragraph in px.
letterSpacing?
optionalletterSpacing?:number
Defined in: core/src/types/Document.ts:484
Letter-spacing (tracking) for the whole paragraph in px.
lineBreak?
optionallineBreak?:LineBreak
Defined in: core/src/types/Document.ts:499
Experimental
Line-break strictness (CJK). Accepted in the type but ignored by the layout engine (no-op until implemented).
lineHeight
lineHeight:
number
Defined in: core/src/types/Document.ts:460
Line height as a multiplier relative to the font size. E.g. 1.4 means 1.4× the computed font height.
Todo
Support for absolute px values via a lineHeightUnit field.
listRestart?
optionallistRestart?:boolean
Defined in: core/src/types/Document.ts:531
Whether to restart numbering for this paragraph. Only has effect when listStyle.type === 'number'. When true, the auto-numbering counter resets to listStyle.startNumber || 1 for this paragraph and subsequent ones in the same sequence.
listStyle?
optionallistStyle?:ListStyle
Defined in: core/src/types/Document.ts:523
List marker configuration (bullet or numbered). When set, the paragraph is treated as a list item.
overflowWrap?
optionaloverflowWrap?:OverflowWrap
Defined in: core/src/types/Document.ts:504
Experimental
Overflow-wrap / word-wrap behaviour. Accepted in the type but ignored by the layout engine (no-op until implemented).
rightIndent?
optionalrightIndent?:number
Defined in: core/src/types/Document.ts:475
Right margin for the whole paragraph in px.
spaceAfter
spaceAfter:
number
Defined in: core/src/types/Document.ts:464
Space after this paragraph (bottom margin) in px.
spaceBefore
spaceBefore:
number
Defined in: core/src/types/Document.ts:462
Space before this paragraph (top margin) in px.
textAlignLast?
optionaltextAlignLast?:TextAlignLast
Defined in: core/src/types/Document.ts:489
Experimental
Alignment of the last line of a justified paragraph. Accepted in the type but ignored by the layout engine (no-op until implemented).
textIndent?
optionaltextIndent?:number
Defined in: core/src/types/Document.ts:482
Experimental
Indentation of the first line in px. If set, overrides the generic indent for the first line.
Accepted in the type but ignored by the layout engine (no-op until implemented).
whiteSpace?
optionalwhiteSpace?:WhiteSpace
Defined in: core/src/types/Document.ts:517
CSS white-space behaviour:
'normal': collapse whitespace, auto-wrap.'nowrap': collapse whitespace, no wrap.'pre': preserve whitespace, wrap on newline only.'pre-line': collapse whitespace, wrap on newline and auto-wrap.
wordBreak?
optionalwordBreak?:WordBreak
Defined in: core/src/types/Document.ts:494
Experimental
Word-break rules (CJK / non-CJK). Accepted in the type but ignored by the layout engine (no-op until implemented).
