Skip to main content

Interface: ParagraphOptions

Defined in: mobjects/text/Paragraph.ts:6

Options for creating a Paragraph mobject

Extends

Properties

alignment?

optional alignment: "center" | "left" | "right" | "justify"

Defined in: mobjects/text/Paragraph.ts:10

Text alignment within the paragraph. Default: 'left'


color?

optional color: string

Defined in: mobjects/text/Text.ts:22

Text color as CSS color string. Default: '#ffffff'

Inherited from

TextOptions.color


fillOpacity?

optional fillOpacity: number

Defined in: mobjects/text/Text.ts:24

Fill opacity from 0 to 1. Default: 1

Inherited from

TextOptions.fillOpacity


fontFamily?

optional fontFamily: string

Defined in: mobjects/text/Text.ts:16

Font family. Default: 'CMU Serif, Georgia, Times New Roman, serif' (Manim-like)

Inherited from

TextOptions.fontFamily


fontSize?

optional fontSize: number

Defined in: mobjects/text/Text.ts:14

Font size in pixels. Default: 48

Inherited from

TextOptions.fontSize


fontStyle?

optional fontStyle: string

Defined in: mobjects/text/Text.ts:20

Font style ('normal' | 'italic'). Default: 'normal'

Inherited from

TextOptions.fontStyle


fontUrl?

optional fontUrl: string

Defined in: mobjects/text/Text.ts:34

URL to a font file (OTF/TTF) for glyph vector extraction. When provided, loadGlyphs() can extract glyph outlines for stroke-draw animation.

Inherited from

TextOptions.fontUrl


fontWeight?

optional fontWeight: string | number

Defined in: mobjects/text/Text.ts:18

Font weight. Default: 'normal'

Inherited from

TextOptions.fontWeight


letterSpacing?

optional letterSpacing: number

Defined in: mobjects/text/Text.ts:30

Letter spacing in pixels. Default: 0

Inherited from

TextOptions.letterSpacing


lineHeight?

optional lineHeight: number

Defined in: mobjects/text/Text.ts:28

Line height multiplier. Default: 1.2

Inherited from

TextOptions.lineHeight


strokeWidth?

optional strokeWidth: number

Defined in: mobjects/text/Text.ts:26

Stroke width for outlined text. Default: 0

Inherited from

TextOptions.strokeWidth


text

text: string

Defined in: mobjects/text/Text.ts:12

The text content to display

Inherited from

TextOptions.text


textAlign?

optional textAlign: "center" | "left" | "right"

Defined in: mobjects/text/Text.ts:32

Text alignment. Default: 'center'

Inherited from

TextOptions.textAlign


width?

optional width: number

Defined in: mobjects/text/Paragraph.ts:8

Maximum width in world units for text wrapping