Interface: ParagraphOptions
Defined in: mobjects/text/Paragraph.ts:6
Options for creating a Paragraph mobject
Extends
Properties
alignment?
optionalalignment:"center"|"left"|"right"|"justify"
Defined in: mobjects/text/Paragraph.ts:10
Text alignment within the paragraph. Default: 'left'
color?
optionalcolor:string
Defined in: mobjects/text/Text.ts:27
Text color as CSS color string. Default: '#ffffff'
Inherited from
fillOpacity?
optionalfillOpacity:number
Defined in: mobjects/text/Text.ts:29
Fill opacity from 0 to 1. Default: 1
Inherited from
fontFamily?
optionalfontFamily:string
Defined in: mobjects/text/Text.ts:21
Font family. Default: 'CMU Serif, Georgia, Times New Roman, serif' (Manim-like)
Inherited from
fontSize?
optionalfontSize:number
Defined in: mobjects/text/Text.ts:19
Font size in points. Default: 48
Inherited from
fontStyle?
optionalfontStyle:string
Defined in: mobjects/text/Text.ts:25
Font style ('normal' | 'italic'). Default: 'normal'
Inherited from
fontUrl?
optionalfontUrl:string
Defined in: mobjects/text/Text.ts:39
URL to a font file (OTF/TTF) for glyph vector extraction. When provided, loadGlyphs() can extract glyph outlines for stroke-draw animation.
Inherited from
fontWeight?
optionalfontWeight:string|number
Defined in: mobjects/text/Text.ts:23
Font weight. Default: 'normal'
Inherited from
letterSpacing?
optionalletterSpacing:number
Defined in: mobjects/text/Text.ts:35
Letter spacing in pixels. Default: 0
Inherited from
lineHeight?
optionallineHeight:number
Defined in: mobjects/text/Text.ts:33
Line height multiplier. Default: 1.2
Inherited from
strokeWidth?
optionalstrokeWidth:number
Defined in: mobjects/text/Text.ts:31
Stroke width for outlined text. Default: 0
Inherited from
text
text:
string
Defined in: mobjects/text/Text.ts:17
The text content to display
Inherited from
textAlign?
optionaltextAlign:"center"|"left"|"right"
Defined in: mobjects/text/Text.ts:37
Text alignment. Default: 'center'
Inherited from
width?
optionalwidth:number
Defined in: mobjects/text/Paragraph.ts:8
Maximum width in world units for text wrapping